studyStudent.vue 758 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299
  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. class="deleteImg1"
  3826. src="../assets/evaEnglish.png"
  3827. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3828. alt
  3829. />
  3830. <img
  3831. class="deleteImg deleteImg2"
  3832. src="../assets/deleteworks.png"
  3833. v-if="
  3834. w.userid == userid || tType == 1 || tType == 4
  3835. "
  3836. @click.stop="deleteWorks(w.wid)"
  3837. alt
  3838. />
  3839. </div>
  3840. </div>
  3841. </div>
  3842. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3843. 未提交
  3844. </div>
  3845. <div
  3846. class="noWorksS"
  3847. v-if="noWorksS && noWorksS[toolIndex].length"
  3848. >
  3849. <div
  3850. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3851. :key="sIndex"
  3852. class="noWorksName"
  3853. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3854. >
  3855. {{ s.student }}
  3856. </div>
  3857. </div>
  3858. </div>
  3859. <div
  3860. v-if="
  3861. tType &&
  3862. ((tType == 2 && sIsOpen == true) ||
  3863. tType == 1 ||
  3864. tType == 4) &&
  3865. tool.tool.indexOf(15) != -1
  3866. "
  3867. class="worksBox"
  3868. >
  3869. <div
  3870. class="zuoyeYulan"
  3871. v-if="
  3872. worksStudent.length &&
  3873. worksStudent[toolIndex].length > 0
  3874. "
  3875. >
  3876. <div class="worksTop">
  3877. <div>作业预览</div>
  3878. <div
  3879. class="corOpen"
  3880. @click="contract(toolIndex)"
  3881. v-if="
  3882. worksStudent[toolIndex].length > 6 &&
  3883. isCloseList[toolIndex].isClose == 0
  3884. "
  3885. >
  3886. 折叠
  3887. </div>
  3888. <div
  3889. class="corOpen"
  3890. @click="contract(toolIndex)"
  3891. v-if="isCloseList[toolIndex].isClose == 1"
  3892. >
  3893. 展开
  3894. </div>
  3895. </div>
  3896. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3897. </div>
  3898. <div
  3899. class="group_workBox"
  3900. v-for="(g, gindex) in courseGroup.group"
  3901. :key="gindex"
  3902. >
  3903. <div class="group_box">
  3904. <div class="group_title">
  3905. <el-tooltip
  3906. class="item"
  3907. effect="light"
  3908. :content="g.name"
  3909. placement="top"
  3910. >
  3911. <div class="group_name">{{ g.name }}</div>
  3912. </el-tooltip>
  3913. </div>
  3914. <div
  3915. class="group_work"
  3916. v-if="
  3917. g.works &&
  3918. g.works.length &&
  3919. g.works[toolIndex].length
  3920. "
  3921. >
  3922. <div
  3923. class="works"
  3924. v-for="(w, wIndex) in g.works[toolIndex]"
  3925. :key="wIndex"
  3926. >
  3927. <div
  3928. class="workImg"
  3929. style="
  3930. border-radius: 15px;
  3931. box-shadow: #eee 0px 0px 5px 5px;
  3932. "
  3933. >
  3934. <div
  3935. class="answerBg"
  3936. style="border-radius: 15px 15px 0 0"
  3937. @click="
  3938. commentOther(w, toolIndex, wIndex, null, g.id)
  3939. "
  3940. >
  3941. <div class="answerContent">
  3942. {{ JSON.parse(w.works)[0].answer }}
  3943. </div>
  3944. <div
  3945. class="answerScore"
  3946. v-if="w.score"
  3947. @click.stop="openScore(w)"
  3948. :class="{
  3949. rightW:
  3950. w.userid == userid ||
  3951. tType == 1 ||
  3952. tType == 4,
  3953. }"
  3954. >
  3955. {{ JSON.parse(w.score).wScore }}分
  3956. </div>
  3957. <div
  3958. class="answerScore"
  3959. @click.stop="openScore(w)"
  3960. v-else-if="courseDetail.userid == userid"
  3961. :class="{
  3962. rightW:
  3963. w.userid == userid ||
  3964. tType == 1 ||
  3965. tType == 4,
  3966. }"
  3967. >
  3968. 评分
  3969. </div>
  3970. <img
  3971. class="deleteImg"
  3972. src="../assets/deleteworks.png"
  3973. v-if="
  3974. w.userid == userid ||
  3975. tType == 1 ||
  3976. tType == 4
  3977. "
  3978. @click.stop="deleteWorks(w.wid)"
  3979. alt
  3980. />
  3981. </div>
  3982. <div class="comment">
  3983. <div class="worksName">
  3984. <div>{{ w.sName }}</div>
  3985. </div>
  3986. <div class="commentList">
  3987. <div
  3988. class="commentImg"
  3989. @click="
  3990. isLikes(w.wid, userid, 1, null, w.isLikes)
  3991. "
  3992. >
  3993. <img
  3994. :src="w.isLikes == true ? likes : noLikes"
  3995. alt=""
  3996. />
  3997. </div>
  3998. <div>{{ w.likesCount }}</div>
  3999. </div>
  4000. <div
  4001. class="commentList"
  4002. style="margin-right: 15px"
  4003. >
  4004. <div
  4005. class="commentImg"
  4006. @click="
  4007. commentOther(
  4008. w,
  4009. toolIndex,
  4010. wIndex,
  4011. null,
  4012. g.id
  4013. )
  4014. "
  4015. >
  4016. <img
  4017. src="../assets/icon/comment/comment.png"
  4018. alt=""
  4019. />
  4020. </div>
  4021. <div>{{ w.commentCount }}</div>
  4022. </div>
  4023. </div>
  4024. </div>
  4025. </div>
  4026. </div>
  4027. <div class="group_work" v-else>暂无提交作业</div>
  4028. </div>
  4029. </div>
  4030. <div
  4031. class="worksDetailBox"
  4032. v-if="
  4033. worksStudent.length &&
  4034. worksStudent[toolIndex].length > 0
  4035. "
  4036. >
  4037. <div
  4038. class="works"
  4039. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4040. 0
  4041. ? worksStudent[toolIndex]
  4042. : worksStudent[toolIndex].slice(0, 6)"
  4043. :key="wIndex"
  4044. >
  4045. <div
  4046. class="workImg"
  4047. style="
  4048. border-radius: 15px;
  4049. box-shadow: #eee 0px 0px 5px 5px;
  4050. "
  4051. >
  4052. <!-- <img
  4053. src="../assets/icon/works/noImg.png"
  4054. @click="openTools(15, toolIndex, taskCount, w.works)"
  4055. alt=""
  4056. />-->
  4057. <div
  4058. class="answerBg"
  4059. style="border-radius: 15px 15px 0 0"
  4060. @click="commentOther(w, toolIndex, wIndex)"
  4061. >
  4062. <!-- <div>{{ w.sName }}</div> -->
  4063. <div class="answerContent">
  4064. {{ JSON.parse(w.works)[0].answer }}
  4065. </div>
  4066. <div
  4067. class="answerScore"
  4068. v-if="w.score"
  4069. @click.stop="openScore(w)"
  4070. :class="{
  4071. rightW:
  4072. w.userid == userid ||
  4073. tType == 1 ||
  4074. tType == 4,
  4075. }"
  4076. >
  4077. {{ JSON.parse(w.score).wScore }}分
  4078. </div>
  4079. <div
  4080. class="answerScore"
  4081. @click.stop="openScore(w)"
  4082. v-else-if="courseDetail.userid == userid"
  4083. :class="{
  4084. rightW:
  4085. w.userid == userid ||
  4086. tType == 1 ||
  4087. tType == 4,
  4088. }"
  4089. >
  4090. 评分
  4091. </div>
  4092. <img
  4093. class="deleteImg"
  4094. src="../assets/deleteworks.png"
  4095. v-if="
  4096. w.userid == userid || tType == 1 || tType == 4
  4097. "
  4098. @click.stop="deleteWorks(w.wid)"
  4099. alt
  4100. />
  4101. </div>
  4102. <div class="comment">
  4103. <div class="worksName">
  4104. <div>{{ w.sName }}</div>
  4105. </div>
  4106. <div class="commentList">
  4107. <div
  4108. class="commentImg"
  4109. @click="
  4110. isLikes(w.wid, userid, 1, null, w.isLikes)
  4111. "
  4112. >
  4113. <img
  4114. :src="w.isLikes == true ? likes : noLikes"
  4115. alt=""
  4116. />
  4117. </div>
  4118. <div>{{ w.likesCount }}</div>
  4119. </div>
  4120. <div class="commentList" style="margin-right: 15px">
  4121. <div
  4122. class="commentImg"
  4123. @click="commentOther(w, toolIndex, wIndex)"
  4124. >
  4125. <img
  4126. src="../assets/icon/comment/comment.png"
  4127. alt=""
  4128. />
  4129. </div>
  4130. <div>{{ w.commentCount }}</div>
  4131. </div>
  4132. </div>
  4133. </div>
  4134. </div>
  4135. </div>
  4136. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4137. 未提交
  4138. </div>
  4139. <div
  4140. class="noWorksS"
  4141. v-if="noWorksS && noWorksS[toolIndex].length"
  4142. >
  4143. <div
  4144. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4145. :key="sIndex"
  4146. class="noWorksName"
  4147. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4148. >
  4149. {{ s.student }}
  4150. </div>
  4151. </div>
  4152. </div>
  4153. <div
  4154. v-if="
  4155. tType &&
  4156. ((tType == 2 && sIsOpen == true) ||
  4157. tType == 1 ||
  4158. tType == 4) &&
  4159. tool.tool.indexOf(1) != -1
  4160. "
  4161. class="worksBox"
  4162. >
  4163. <div
  4164. class="zuoyeYulan"
  4165. v-if="
  4166. worksStudent.length &&
  4167. worksStudent[toolIndex].length > 0
  4168. "
  4169. >
  4170. <div class="worksTop">
  4171. <div>作业预览</div>
  4172. <div
  4173. class="corOpen"
  4174. @click="contract(toolIndex)"
  4175. v-if="
  4176. worksStudent[toolIndex].length > 6 &&
  4177. isCloseList[toolIndex].isClose == 0
  4178. "
  4179. >
  4180. 折叠
  4181. </div>
  4182. <div
  4183. class="corOpen"
  4184. @click="contract(toolIndex)"
  4185. v-if="isCloseList[toolIndex].isClose == 1"
  4186. >
  4187. 展开
  4188. </div>
  4189. </div>
  4190. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4191. </div>
  4192. <div
  4193. class="group_workBox"
  4194. v-for="(g, gindex) in courseGroup.group"
  4195. :key="gindex"
  4196. >
  4197. <div class="group_box">
  4198. <div class="group_title">
  4199. <el-tooltip
  4200. class="item"
  4201. effect="light"
  4202. :content="g.name"
  4203. placement="top"
  4204. >
  4205. <div class="group_name">{{ g.name }}</div>
  4206. </el-tooltip>
  4207. </div>
  4208. <div
  4209. class="group_work"
  4210. v-if="
  4211. g.works &&
  4212. g.works.length &&
  4213. g.works[toolIndex].length
  4214. "
  4215. >
  4216. <div
  4217. class="works"
  4218. style="
  4219. width: 200px;
  4220. height: 140px;
  4221. margin: 10px 10px 10px 0;
  4222. border-radius: 15px;
  4223. box-shadow: 0 0 6px 1px #dfdada;
  4224. "
  4225. v-for="(w, wIndex) in g.works[toolIndex]"
  4226. :key="wIndex"
  4227. :class="w.type == 1 ? 'isTypeOne' : ''"
  4228. >
  4229. <div class="workImg">
  4230. <img
  4231. :src="w.works"
  4232. @click="previewImg(w.works)"
  4233. alt
  4234. />
  4235. <div
  4236. class="answerScore"
  4237. v-if="w.score"
  4238. @click.stop="openScore(w)"
  4239. :class="{
  4240. rightW:
  4241. w.userid == userid ||
  4242. tType == 1 ||
  4243. tType == 4,
  4244. }"
  4245. >
  4246. {{ JSON.parse(w.score).wScore }}分
  4247. </div>
  4248. <div
  4249. class="answerScore"
  4250. @click.stop="openScore(w)"
  4251. v-else-if="courseDetail.userid == userid"
  4252. :class="{
  4253. rightW:
  4254. w.userid == userid ||
  4255. tType == 1 ||
  4256. tType == 4,
  4257. }"
  4258. >
  4259. 评分
  4260. </div>
  4261. <img
  4262. class="deleteImg"
  4263. src="../assets/deleteworks.png"
  4264. v-if="
  4265. w.userid == userid || tType == 1 || tType == 4
  4266. "
  4267. @click.stop="deleteWorks(w.wid)"
  4268. alt
  4269. />
  4270. </div>
  4271. <div class="comment" style="min-width: 200px">
  4272. <div class="worksName">
  4273. <div>{{ w.sName }}</div>
  4274. </div>
  4275. <div class="commentList">
  4276. <div class="commentList">
  4277. <div
  4278. class="commentImg"
  4279. @click="
  4280. isLikes(w.wid, userid, 1, null, w.isLikes)
  4281. "
  4282. >
  4283. <img
  4284. :src="w.isLikes == true ? likes : noLikes"
  4285. alt=""
  4286. />
  4287. </div>
  4288. <div>{{ w.likesCount }}</div>
  4289. </div>
  4290. <div
  4291. class="commentList"
  4292. style="margin-right: 15px"
  4293. >
  4294. <div
  4295. class="commentImg"
  4296. @click="
  4297. commentOther(
  4298. w,
  4299. toolIndex,
  4300. wIndex,
  4301. null,
  4302. g.id
  4303. )
  4304. "
  4305. >
  4306. <img
  4307. src="../assets/icon/comment/comment.png"
  4308. alt=""
  4309. />
  4310. </div>
  4311. <div>{{ w.commentCount }}</div>
  4312. </div>
  4313. </div>
  4314. </div>
  4315. </div>
  4316. </div>
  4317. <div class="group_work" v-else>暂无提交作业</div>
  4318. </div>
  4319. </div>
  4320. <div
  4321. class="worksDetailBox"
  4322. v-if="
  4323. worksStudent.length &&
  4324. worksStudent[toolIndex].length > 0
  4325. "
  4326. >
  4327. <div
  4328. class="works"
  4329. style="
  4330. width: 200px;
  4331. height: 140px;
  4332. margin: 10px 10px 10px 0;
  4333. border-radius: 15px;
  4334. box-shadow: 0 0 6px 1px #dfdada;
  4335. "
  4336. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4337. 0
  4338. ? worksStudent[toolIndex]
  4339. : worksStudent[toolIndex].slice(0, 6)"
  4340. :key="wIndex"
  4341. >
  4342. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4343. <div class="workImg">
  4344. <img
  4345. :src="w.works"
  4346. @click="previewImg(w.works)"
  4347. alt
  4348. />
  4349. <div
  4350. class="answerScore"
  4351. v-if="w.score"
  4352. @click.stop="openScore(w)"
  4353. :class="{
  4354. rightW:
  4355. w.userid == userid || tType == 1 || tType == 4,
  4356. }"
  4357. >
  4358. {{ JSON.parse(w.score).wScore }}分
  4359. </div>
  4360. <div
  4361. class="answerScore"
  4362. @click.stop="openScore(w)"
  4363. v-else-if="courseDetail.userid == userid"
  4364. :class="{
  4365. rightW:
  4366. w.userid == userid || tType == 1 || tType == 4,
  4367. }"
  4368. >
  4369. 评分
  4370. </div>
  4371. <img
  4372. class="deleteImg"
  4373. src="../assets/deleteworks.png"
  4374. v-if="
  4375. w.userid == userid || tType == 1 || tType == 4
  4376. "
  4377. @click.stop="deleteWorks(w.wid)"
  4378. alt
  4379. />
  4380. </div>
  4381. <div class="comment" style="min-width: 200px">
  4382. <div class="worksName">
  4383. <div>{{ w.sName }}</div>
  4384. </div>
  4385. <div class="commentList">
  4386. <div class="commentList">
  4387. <div
  4388. class="commentImg"
  4389. @click="
  4390. isLikes(w.wid, userid, 1, null, w.isLikes)
  4391. "
  4392. >
  4393. <img
  4394. :src="w.isLikes == true ? likes : noLikes"
  4395. alt=""
  4396. />
  4397. </div>
  4398. <div>{{ w.likesCount }}</div>
  4399. </div>
  4400. <div class="commentList" style="margin-right: 15px">
  4401. <div
  4402. class="commentImg"
  4403. @click="commentOther(w, toolIndex, wIndex)"
  4404. >
  4405. <img
  4406. src="../assets/icon/comment/comment.png"
  4407. alt=""
  4408. />
  4409. </div>
  4410. <div>{{ w.commentCount }}</div>
  4411. </div>
  4412. </div>
  4413. </div>
  4414. </div>
  4415. </div>
  4416. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4417. 未提交
  4418. </div>
  4419. <div
  4420. class="noWorksS"
  4421. v-if="noWorksS && noWorksS[toolIndex].length"
  4422. >
  4423. <div
  4424. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4425. :key="sIndex"
  4426. class="noWorksName"
  4427. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4428. >
  4429. {{ s.student }}
  4430. </div>
  4431. </div>
  4432. </div>
  4433. <div
  4434. v-if="
  4435. tType &&
  4436. ((tType == 2 && sIsOpen == true) ||
  4437. tType == 1 ||
  4438. tType == 4) &&
  4439. tool.tool.indexOf(3) != -1
  4440. "
  4441. class="worksBox"
  4442. >
  4443. <div
  4444. class="zuoyeYulan"
  4445. v-if="
  4446. worksStudent.length &&
  4447. worksStudent[toolIndex].length > 0
  4448. "
  4449. >
  4450. <div class="worksTop">
  4451. <div>作业预览</div>
  4452. <div
  4453. class="corOpen"
  4454. @click="contract(toolIndex)"
  4455. v-if="
  4456. worksStudent[toolIndex].length > 6 &&
  4457. isCloseList[toolIndex].isClose == 0
  4458. "
  4459. >
  4460. 折叠
  4461. </div>
  4462. <div
  4463. class="corOpen"
  4464. @click="contract(toolIndex)"
  4465. v-if="isCloseList[toolIndex].isClose == 1"
  4466. >
  4467. 展开
  4468. </div>
  4469. </div>
  4470. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4471. </div>
  4472. <div
  4473. class="group_workBox"
  4474. v-for="(g, gindex) in courseGroup.group"
  4475. :key="gindex"
  4476. >
  4477. <div class="group_box">
  4478. <div class="group_title">
  4479. <el-tooltip
  4480. class="item"
  4481. effect="light"
  4482. :content="g.name"
  4483. placement="top"
  4484. >
  4485. <div class="group_name">{{ g.name }}</div>
  4486. </el-tooltip>
  4487. </div>
  4488. <div
  4489. class="group_work"
  4490. v-if="
  4491. g.works &&
  4492. g.works.length &&
  4493. g.works[toolIndex].length
  4494. "
  4495. >
  4496. <div
  4497. class="works"
  4498. style="
  4499. width: 200px;
  4500. height: 140px;
  4501. margin: 10px 10px 10px 0;
  4502. border-radius: 15px;
  4503. box-shadow: 0 0 6px 1px #dfdada;
  4504. "
  4505. v-for="(w, wIndex) in g.works[toolIndex]"
  4506. :key="wIndex"
  4507. :class="w.type == 1 ? 'isTypeOne' : ''"
  4508. >
  4509. <div class="workImg">
  4510. <img
  4511. :src="w.works"
  4512. @click="previewImg(w.works)"
  4513. alt
  4514. />
  4515. <div
  4516. class="answerScore"
  4517. v-if="w.score"
  4518. @click.stop="openScore(w)"
  4519. :class="{
  4520. rightW:
  4521. w.userid == userid ||
  4522. tType == 1 ||
  4523. tType == 4,
  4524. }"
  4525. >
  4526. {{ JSON.parse(w.score).wScore }}分
  4527. </div>
  4528. <div
  4529. class="answerScore"
  4530. @click.stop="openScore(w)"
  4531. v-else-if="courseDetail.userid == userid"
  4532. :class="{
  4533. rightW:
  4534. w.userid == userid ||
  4535. tType == 1 ||
  4536. tType == 4,
  4537. }"
  4538. >
  4539. 评分
  4540. </div>
  4541. <img
  4542. class="deleteImg"
  4543. src="../assets/deleteworks.png"
  4544. v-if="
  4545. w.userid == userid || tType == 1 || tType == 4
  4546. "
  4547. @click.stop="deleteWorks(w.wid)"
  4548. alt
  4549. />
  4550. </div>
  4551. <div class="comment" style="min-width: 200px">
  4552. <div class="worksName">
  4553. <div>{{ w.sName }}</div>
  4554. </div>
  4555. <div class="commentList">
  4556. <div class="commentList">
  4557. <div
  4558. class="commentImg"
  4559. @click="
  4560. isLikes(w.wid, userid, 1, null, w.isLikes)
  4561. "
  4562. >
  4563. <img
  4564. :src="w.isLikes == true ? likes : noLikes"
  4565. alt=""
  4566. />
  4567. </div>
  4568. <div>{{ w.likesCount }}</div>
  4569. </div>
  4570. <div
  4571. class="commentList"
  4572. style="margin-right: 15px"
  4573. >
  4574. <div
  4575. class="commentImg"
  4576. @click="
  4577. commentOther(
  4578. w,
  4579. toolIndex,
  4580. wIndex,
  4581. null,
  4582. g.id
  4583. )
  4584. "
  4585. >
  4586. <img
  4587. src="../assets/icon/comment/comment.png"
  4588. alt=""
  4589. />
  4590. </div>
  4591. <div>{{ w.commentCount }}</div>
  4592. </div>
  4593. </div>
  4594. </div>
  4595. </div>
  4596. </div>
  4597. <div class="group_work" v-else>暂无提交作业</div>
  4598. </div>
  4599. </div>
  4600. <div
  4601. class="worksDetailBox"
  4602. v-if="
  4603. worksStudent.length &&
  4604. worksStudent[toolIndex].length > 0
  4605. "
  4606. >
  4607. <div
  4608. class="works"
  4609. style="
  4610. width: 200px;
  4611. height: 140px;
  4612. margin: 10px 10px 10px 0;
  4613. border-radius: 15px;
  4614. box-shadow: 0 0 6px 1px #dfdada;
  4615. "
  4616. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4617. 0
  4618. ? worksStudent[toolIndex]
  4619. : worksStudent[toolIndex].slice(0, 6)"
  4620. :key="wIndex"
  4621. >
  4622. <!-- @click="previewImg(w.works)" -->
  4623. <div class="workImg">
  4624. <img
  4625. :src="w.works"
  4626. @click="previewImg(w.works)"
  4627. alt
  4628. />
  4629. <div
  4630. class="answerScore"
  4631. v-if="w.score"
  4632. @click.stop="openScore(w)"
  4633. :class="{
  4634. rightW:
  4635. w.userid == userid || tType == 1 || tType == 4,
  4636. }"
  4637. >
  4638. {{ JSON.parse(w.score).wScore }}分
  4639. </div>
  4640. <div
  4641. class="answerScore"
  4642. @click.stop="openScore(w)"
  4643. v-else-if="courseDetail.userid == userid"
  4644. :class="{
  4645. rightW:
  4646. w.userid == userid || tType == 1 || tType == 4,
  4647. }"
  4648. >
  4649. 评分
  4650. </div>
  4651. <img
  4652. class="deleteImg"
  4653. src="../assets/deleteworks.png"
  4654. v-if="
  4655. w.userid == userid || tType == 1 || tType == 4
  4656. "
  4657. @click.stop="deleteWorks(w.wid)"
  4658. alt
  4659. />
  4660. </div>
  4661. <div class="comment" style="min-width: 200px">
  4662. <div class="worksName">
  4663. <div>{{ w.sName }}</div>
  4664. </div>
  4665. <div class="commentList">
  4666. <div class="commentList">
  4667. <div
  4668. class="commentImg"
  4669. @click="
  4670. isLikes(w.wid, userid, 1, null, w.isLikes)
  4671. "
  4672. >
  4673. <img
  4674. :src="w.isLikes == true ? likes : noLikes"
  4675. alt=""
  4676. />
  4677. </div>
  4678. <div>{{ w.likesCount }}</div>
  4679. </div>
  4680. <div class="commentList" style="margin-right: 15px">
  4681. <div
  4682. class="commentImg"
  4683. @click="commentOther(w, toolIndex, wIndex)"
  4684. >
  4685. <img
  4686. src="../assets/icon/comment/comment.png"
  4687. alt=""
  4688. />
  4689. </div>
  4690. <div>{{ w.commentCount }}</div>
  4691. </div>
  4692. </div>
  4693. </div>
  4694. </div>
  4695. </div>
  4696. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4697. 未提交
  4698. </div>
  4699. <div
  4700. class="noWorksS"
  4701. v-if="noWorksS && noWorksS[toolIndex].length"
  4702. >
  4703. <div
  4704. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4705. :key="sIndex"
  4706. class="noWorksName"
  4707. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4708. >
  4709. {{ s.student }}
  4710. </div>
  4711. </div>
  4712. </div>
  4713. <div
  4714. v-if="
  4715. tType &&
  4716. ((tType == 2 && sIsOpen == true) ||
  4717. tType == 1 ||
  4718. tType == 4) &&
  4719. tool.tool.indexOf(6) != -1
  4720. "
  4721. class="worksBox"
  4722. >
  4723. <div
  4724. class="zuoyeYulan"
  4725. v-if="
  4726. worksStudent.length &&
  4727. worksStudent[toolIndex].length > 0
  4728. "
  4729. >
  4730. <div class="worksTop">
  4731. <div>作业预览</div>
  4732. <div
  4733. class="corOpen"
  4734. @click="contract(toolIndex)"
  4735. v-if="
  4736. worksStudent[toolIndex].length > 6 &&
  4737. isCloseList[toolIndex].isClose == 0
  4738. "
  4739. >
  4740. 折叠
  4741. </div>
  4742. <div
  4743. class="corOpen"
  4744. @click="contract(toolIndex)"
  4745. v-if="isCloseList[toolIndex].isClose == 1"
  4746. >
  4747. 展开
  4748. </div>
  4749. </div>
  4750. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4751. </div>
  4752. <div
  4753. class="group_workBox"
  4754. v-for="(g, gindex) in courseGroup.group"
  4755. :key="gindex"
  4756. >
  4757. <div class="group_box">
  4758. <div class="group_title">
  4759. <el-tooltip
  4760. class="item"
  4761. effect="light"
  4762. :content="g.name"
  4763. placement="top"
  4764. >
  4765. <div class="group_name">{{ g.name }}</div>
  4766. </el-tooltip>
  4767. </div>
  4768. <div
  4769. class="group_work"
  4770. v-if="
  4771. g.works &&
  4772. g.works.length &&
  4773. g.works[toolIndex].length
  4774. "
  4775. >
  4776. <div
  4777. class="works"
  4778. style="
  4779. width: 200px;
  4780. height: 140px;
  4781. margin: 10px 10px 10px 0;
  4782. border-radius: 15px;
  4783. box-shadow: 0 0 6px 1px #dfdada;
  4784. "
  4785. v-for="(w, wIndex) in g.works[toolIndex]"
  4786. :key="wIndex"
  4787. :class="w.type == 1 ? 'isTypeOne' : ''"
  4788. >
  4789. <div class="workImg">
  4790. <img
  4791. :src="w.works"
  4792. @click="previewImg(w.works)"
  4793. alt
  4794. />
  4795. <div
  4796. class="answerScore"
  4797. v-if="w.score"
  4798. @click.stop="openScore(w)"
  4799. :class="{
  4800. rightW:
  4801. w.userid == userid ||
  4802. tType == 1 ||
  4803. tType == 4,
  4804. }"
  4805. >
  4806. {{ JSON.parse(w.score).wScore }}分
  4807. </div>
  4808. <div
  4809. class="answerScore"
  4810. @click.stop="openScore(w)"
  4811. v-else-if="courseDetail.userid == userid"
  4812. :class="{
  4813. rightW:
  4814. w.userid == userid ||
  4815. tType == 1 ||
  4816. tType == 4,
  4817. }"
  4818. >
  4819. 评分
  4820. </div>
  4821. <img
  4822. class="deleteImg"
  4823. src="../assets/deleteworks.png"
  4824. v-if="
  4825. w.userid == userid || tType == 1 || tType == 4
  4826. "
  4827. @click.stop="deleteWorks(w.wid)"
  4828. alt
  4829. />
  4830. </div>
  4831. <div class="comment" style="min-width: 200px">
  4832. <div class="worksName">
  4833. <div>{{ w.sName }}</div>
  4834. </div>
  4835. <div class="commentList">
  4836. <div class="commentList">
  4837. <div
  4838. class="commentImg"
  4839. @click="
  4840. isLikes(w.wid, userid, 1, null, w.isLikes)
  4841. "
  4842. >
  4843. <img
  4844. :src="w.isLikes == true ? likes : noLikes"
  4845. alt=""
  4846. />
  4847. </div>
  4848. <div>{{ w.likesCount }}</div>
  4849. </div>
  4850. <div
  4851. class="commentList"
  4852. style="margin-right: 15px"
  4853. >
  4854. <div
  4855. class="commentImg"
  4856. @click="
  4857. commentOther(
  4858. w,
  4859. toolIndex,
  4860. wIndex,
  4861. null,
  4862. g.id
  4863. )
  4864. "
  4865. >
  4866. <img
  4867. src="../assets/icon/comment/comment.png"
  4868. alt=""
  4869. />
  4870. </div>
  4871. <div>{{ w.commentCount }}</div>
  4872. </div>
  4873. </div>
  4874. </div>
  4875. </div>
  4876. </div>
  4877. <div class="group_work" v-else>暂无提交作业</div>
  4878. </div>
  4879. </div>
  4880. <div
  4881. class="worksDetailBox"
  4882. v-if="
  4883. worksStudent.length &&
  4884. worksStudent[toolIndex].length > 0
  4885. "
  4886. >
  4887. <div
  4888. class="works"
  4889. style="
  4890. width: 200px;
  4891. height: 140px;
  4892. margin: 10px 10px 10px 0;
  4893. border-radius: 15px;
  4894. box-shadow: 0 0 6px 1px #dfdada;
  4895. "
  4896. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4897. 0
  4898. ? worksStudent[toolIndex]
  4899. : worksStudent[toolIndex].slice(0, 6)"
  4900. :key="wIndex"
  4901. >
  4902. <!-- @click="previewImg(w.works)" -->
  4903. <div class="workImg">
  4904. <img
  4905. :src="w.works"
  4906. @click="previewImg(w.works)"
  4907. alt
  4908. />
  4909. <div
  4910. class="answerScore"
  4911. v-if="w.score"
  4912. @click.stop="openScore(w)"
  4913. :class="{
  4914. rightW:
  4915. w.userid == userid || tType == 1 || tType == 4,
  4916. }"
  4917. >
  4918. {{ JSON.parse(w.score).wScore }}分
  4919. </div>
  4920. <div
  4921. class="answerScore"
  4922. @click.stop="openScore(w)"
  4923. v-else-if="courseDetail.userid == userid"
  4924. :class="{
  4925. rightW:
  4926. w.userid == userid || tType == 1 || tType == 4,
  4927. }"
  4928. >
  4929. 评分
  4930. </div>
  4931. <img
  4932. class="deleteImg"
  4933. src="../assets/deleteworks.png"
  4934. v-if="
  4935. w.userid == userid || tType == 1 || tType == 4
  4936. "
  4937. @click.stop="deleteWorks(w.wid)"
  4938. alt
  4939. />
  4940. </div>
  4941. <div class="comment" style="min-width: 200px">
  4942. <div class="worksName">
  4943. <div>{{ w.sName }}</div>
  4944. </div>
  4945. <div class="commentList">
  4946. <div class="commentList">
  4947. <div
  4948. class="commentImg"
  4949. @click="
  4950. isLikes(w.wid, userid, 1, null, w.isLikes)
  4951. "
  4952. >
  4953. <img
  4954. :src="w.isLikes == true ? likes : noLikes"
  4955. alt=""
  4956. />
  4957. </div>
  4958. <div>{{ w.likesCount }}</div>
  4959. </div>
  4960. <div class="commentList" style="margin-right: 15px">
  4961. <div
  4962. class="commentImg"
  4963. @click="commentOther(w, toolIndex, wIndex)"
  4964. >
  4965. <img
  4966. src="../assets/icon/comment/comment.png"
  4967. alt=""
  4968. />
  4969. </div>
  4970. <div>{{ w.commentCount }}</div>
  4971. </div>
  4972. </div>
  4973. </div>
  4974. </div>
  4975. </div>
  4976. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4977. 未提交
  4978. </div>
  4979. <div
  4980. class="noWorksS"
  4981. v-if="noWorksS && noWorksS[toolIndex].length"
  4982. >
  4983. <div
  4984. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4985. :key="sIndex"
  4986. class="noWorksName"
  4987. >
  4988. {{ s.student }}
  4989. </div>
  4990. </div>
  4991. </div>
  4992. <div
  4993. v-if="
  4994. tType &&
  4995. ((tType == 2 && sIsOpen == true) ||
  4996. tType == 1 ||
  4997. tType == 4) &&
  4998. tool.tool.indexOf(7) != -1
  4999. "
  5000. class="worksBox"
  5001. >
  5002. <div
  5003. class="zuoyeYulan"
  5004. v-if="
  5005. worksStudent.length &&
  5006. worksStudent[toolIndex].length > 0
  5007. "
  5008. >
  5009. <div class="worksTop">
  5010. <div>作业预览</div>
  5011. <div
  5012. class="corOpen"
  5013. @click="contract(toolIndex)"
  5014. v-if="
  5015. worksStudent[toolIndex].length > 6 &&
  5016. isCloseList[toolIndex].isClose == 0
  5017. "
  5018. >
  5019. 折叠
  5020. </div>
  5021. <div
  5022. class="corOpen"
  5023. @click="contract(toolIndex)"
  5024. v-if="isCloseList[toolIndex].isClose == 1"
  5025. >
  5026. 展开
  5027. </div>
  5028. </div>
  5029. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5030. </div>
  5031. <div
  5032. class="group_workBox"
  5033. v-for="(g, gindex) in courseGroup.group"
  5034. :key="gindex"
  5035. >
  5036. <div class="group_box">
  5037. <div class="group_title">
  5038. <el-tooltip
  5039. class="item"
  5040. effect="light"
  5041. :content="g.name"
  5042. placement="top"
  5043. >
  5044. <div class="group_name">{{ g.name }}</div>
  5045. </el-tooltip>
  5046. </div>
  5047. <div
  5048. class="group_work"
  5049. v-if="
  5050. g.works &&
  5051. g.works.length &&
  5052. g.works[toolIndex].length
  5053. "
  5054. >
  5055. <div
  5056. class="works"
  5057. style="
  5058. width: 200px;
  5059. height: 140px;
  5060. margin: 10px 10px 10px 0;
  5061. border-radius: 15px;
  5062. box-shadow: 0 0 6px 1px #dfdada;
  5063. "
  5064. v-for="(w, wIndex) in g.works[toolIndex]"
  5065. :key="wIndex"
  5066. :class="w.type == 1 ? 'isTypeOne' : ''"
  5067. >
  5068. <div class="workImg">
  5069. <img
  5070. :src="w.works"
  5071. @click="previewImg(w.works)"
  5072. alt
  5073. />
  5074. <div
  5075. class="answerScore"
  5076. v-if="w.score"
  5077. @click.stop="openScore(w)"
  5078. :class="{
  5079. rightW:
  5080. w.userid == userid ||
  5081. tType == 1 ||
  5082. tType == 4,
  5083. }"
  5084. >
  5085. {{ JSON.parse(w.score).wScore }}分
  5086. </div>
  5087. <div
  5088. class="answerScore"
  5089. @click.stop="openScore(w)"
  5090. v-else-if="courseDetail.userid == userid"
  5091. :class="{
  5092. rightW:
  5093. w.userid == userid ||
  5094. tType == 1 ||
  5095. tType == 4,
  5096. }"
  5097. >
  5098. 评分
  5099. </div>
  5100. <img
  5101. class="deleteImg"
  5102. src="../assets/deleteworks.png"
  5103. v-if="
  5104. w.userid == userid || tType == 1 || tType == 4
  5105. "
  5106. @click.stop="deleteWorks(w.wid)"
  5107. alt
  5108. />
  5109. </div>
  5110. <div class="comment" style="min-width: 200px">
  5111. <div class="worksName">
  5112. <div>{{ w.sName }}</div>
  5113. </div>
  5114. <div class="commentList">
  5115. <div class="commentList">
  5116. <div
  5117. class="commentImg"
  5118. @click="
  5119. isLikes(w.wid, userid, 1, null, w.isLikes)
  5120. "
  5121. >
  5122. <img
  5123. :src="w.isLikes == true ? likes : noLikes"
  5124. alt=""
  5125. />
  5126. </div>
  5127. <div>{{ w.likesCount }}</div>
  5128. </div>
  5129. <div
  5130. class="commentList"
  5131. style="margin-right: 15px"
  5132. >
  5133. <div
  5134. class="commentImg"
  5135. @click="
  5136. commentOther(
  5137. w,
  5138. toolIndex,
  5139. wIndex,
  5140. null,
  5141. g.id
  5142. )
  5143. "
  5144. >
  5145. <img
  5146. src="../assets/icon/comment/comment.png"
  5147. alt=""
  5148. />
  5149. </div>
  5150. <div>{{ w.commentCount }}</div>
  5151. </div>
  5152. </div>
  5153. </div>
  5154. </div>
  5155. </div>
  5156. <div class="group_work" v-else>暂无提交作业</div>
  5157. </div>
  5158. </div>
  5159. <div
  5160. class="worksDetailBox"
  5161. v-if="
  5162. worksStudent.length &&
  5163. worksStudent[toolIndex].length > 0
  5164. "
  5165. >
  5166. <div
  5167. class="works"
  5168. style="
  5169. width: 200px;
  5170. height: 140px;
  5171. margin: 10px 10px 10px 0;
  5172. border-radius: 15px;
  5173. box-shadow: 0 0 6px 1px #dfdada;
  5174. "
  5175. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5176. 0
  5177. ? worksStudent[toolIndex]
  5178. : worksStudent[toolIndex].slice(0, 6)"
  5179. :key="wIndex"
  5180. >
  5181. <!-- @click="previewImg(w.works)" -->
  5182. <div class="workImg">
  5183. <img
  5184. :src="w.works"
  5185. @click="previewImg(w.works)"
  5186. alt
  5187. />
  5188. <div
  5189. class="answerScore"
  5190. v-if="w.score"
  5191. @click.stop="openScore(w)"
  5192. :class="{
  5193. rightW:
  5194. w.userid == userid || tType == 1 || tType == 4,
  5195. }"
  5196. >
  5197. {{ JSON.parse(w.score).wScore }}分
  5198. </div>
  5199. <div
  5200. class="answerScore"
  5201. @click.stop="openScore(w)"
  5202. v-else-if="courseDetail.userid == userid"
  5203. :class="{
  5204. rightW:
  5205. w.userid == userid || tType == 1 || tType == 4,
  5206. }"
  5207. >
  5208. 评分
  5209. </div>
  5210. <img
  5211. class="deleteImg"
  5212. src="../assets/deleteworks.png"
  5213. v-if="
  5214. w.userid == userid || tType == 1 || tType == 4
  5215. "
  5216. @click.stop="deleteWorks(w.wid)"
  5217. alt
  5218. />
  5219. </div>
  5220. <div class="comment" style="min-width: 200px">
  5221. <div class="worksName">
  5222. <div>{{ w.sName }}</div>
  5223. </div>
  5224. <div class="commentList">
  5225. <div class="commentList">
  5226. <div
  5227. class="commentImg"
  5228. @click="
  5229. isLikes(w.wid, userid, 1, null, w.isLikes)
  5230. "
  5231. >
  5232. <img
  5233. :src="w.isLikes == true ? likes : noLikes"
  5234. alt=""
  5235. />
  5236. </div>
  5237. <div>{{ w.likesCount }}</div>
  5238. </div>
  5239. <div class="commentList" style="margin-right: 15px">
  5240. <div
  5241. class="commentImg"
  5242. @click="commentOther(w, toolIndex, wIndex)"
  5243. >
  5244. <img
  5245. src="../assets/icon/comment/comment.png"
  5246. alt=""
  5247. />
  5248. </div>
  5249. <div>{{ w.commentCount }}</div>
  5250. </div>
  5251. </div>
  5252. </div>
  5253. </div>
  5254. </div>
  5255. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5256. 未提交
  5257. </div>
  5258. <div
  5259. class="noWorksS"
  5260. v-if="noWorksS && noWorksS[toolIndex].length"
  5261. >
  5262. <div
  5263. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5264. :key="sIndex"
  5265. class="noWorksName"
  5266. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5267. >
  5268. {{ s.student }}
  5269. </div>
  5270. </div>
  5271. </div>
  5272. <div
  5273. v-if="
  5274. tType &&
  5275. ((tType == 2 && sIsOpen == true) ||
  5276. tType == 1 ||
  5277. tType == 4) &&
  5278. tool.tool.indexOf(26) != -1
  5279. "
  5280. class="worksBox"
  5281. >
  5282. <div
  5283. class="zuoyeYulan"
  5284. v-if="
  5285. worksStudent.length &&
  5286. worksStudent[toolIndex].length > 0
  5287. "
  5288. >
  5289. <div class="worksTop">
  5290. <div>作业预览</div>
  5291. <div
  5292. class="corOpen"
  5293. @click="contract(toolIndex)"
  5294. v-if="
  5295. worksStudent[toolIndex].length > 6 &&
  5296. isCloseList[toolIndex].isClose == 0
  5297. "
  5298. >
  5299. 折叠
  5300. </div>
  5301. <div
  5302. class="corOpen"
  5303. @click="contract(toolIndex)"
  5304. v-if="isCloseList[toolIndex].isClose == 1"
  5305. >
  5306. 展开
  5307. </div>
  5308. </div>
  5309. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5310. </div>
  5311. <div
  5312. class="worksDetailBox"
  5313. v-if="
  5314. worksStudent.length &&
  5315. worksStudent[toolIndex].length > 0
  5316. "
  5317. >
  5318. <div
  5319. class="works"
  5320. style="width: 240px; height: 140px; overflow: hidden"
  5321. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5322. 0
  5323. ? worksStudent[toolIndex]
  5324. : worksStudent[toolIndex].slice(0, 6)"
  5325. :key="wIndex"
  5326. :class="w.type == 1 ? 'isTypeOne' : ''"
  5327. >
  5328. <div class="workImg" v-if="w.type == 0">
  5329. <img
  5330. :src="w.works"
  5331. @click="previewImg(w.works)"
  5332. alt
  5333. />
  5334. <img
  5335. class="deleteImg"
  5336. src="../assets/deleteworks.png"
  5337. v-if="
  5338. w.userid == userid || tType == 1 || tType == 4
  5339. "
  5340. @click.stop="deleteWorks(w.wid)"
  5341. alt
  5342. />
  5343. </div>
  5344. <div class="workImg" v-if="w.type == 1">
  5345. <img :src="word" @click="openFile(w.works)" alt />
  5346. <img
  5347. class="deleteImg"
  5348. src="../assets/deleteworks.png"
  5349. v-if="
  5350. w.userid == userid || tType == 1 || tType == 4
  5351. "
  5352. @click.stop="deleteWorks(w.wid)"
  5353. alt
  5354. />
  5355. </div>
  5356. <div class="worksName">
  5357. <div>{{ w.sName }}</div>
  5358. </div>
  5359. </div>
  5360. </div>
  5361. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5362. 未提交
  5363. </div>
  5364. <div
  5365. class="noWorksS"
  5366. v-if="noWorksS && noWorksS[toolIndex].length"
  5367. >
  5368. <div
  5369. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5370. :key="sIndex"
  5371. class="noWorksName"
  5372. >
  5373. {{ s.student }}
  5374. </div>
  5375. </div>
  5376. </div>
  5377. <div
  5378. v-if="
  5379. tType &&
  5380. ((tType == 2 && sIsOpen == true) ||
  5381. tType == 1 ||
  5382. tType == 4) &&
  5383. tool.tool.indexOf(40) != -1
  5384. "
  5385. class="worksBox"
  5386. >
  5387. <div
  5388. class="zuoyeYulan"
  5389. v-if="
  5390. worksStudent.length &&
  5391. worksStudent[toolIndex].length > 0
  5392. "
  5393. >
  5394. <div class="worksTop">
  5395. <div>作业预览</div>
  5396. <div
  5397. class="corOpen"
  5398. @click="contract(toolIndex)"
  5399. v-if="
  5400. worksStudent[toolIndex].length > 6 &&
  5401. isCloseList[toolIndex].isClose == 0
  5402. "
  5403. >
  5404. 折叠
  5405. </div>
  5406. <div
  5407. class="corOpen"
  5408. @click="contract(toolIndex)"
  5409. v-if="isCloseList[toolIndex].isClose == 1"
  5410. >
  5411. 展开
  5412. </div>
  5413. </div>
  5414. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5415. </div>
  5416. <div
  5417. class="worksDetailBox"
  5418. v-if="
  5419. worksStudent.length &&
  5420. worksStudent[toolIndex].length > 0
  5421. "
  5422. >
  5423. <div
  5424. class="works"
  5425. style="
  5426. width: 200px;
  5427. height: 140px;
  5428. margin: 10px 10px 10px 0;
  5429. border-radius: 15px;
  5430. box-shadow: 0 0 6px 1px #dfdada;
  5431. "
  5432. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5433. 0
  5434. ? worksStudent[toolIndex]
  5435. : worksStudent[toolIndex].slice(0, 6)"
  5436. :key="wIndex"
  5437. :class="w.type == 1 ? 'isTypeOne' : ''"
  5438. >
  5439. <div class="workImg">
  5440. <img
  5441. src="../assets/icon/works/noImg.png"
  5442. @click="openPj(w.works, toolIndex)"
  5443. alt
  5444. />
  5445. <img
  5446. class="deleteImg"
  5447. src="../assets/deleteworks.png"
  5448. v-if="
  5449. w.userid == userid || tType == 1 || tType == 4
  5450. "
  5451. @click.stop="deleteWorks(w.wid)"
  5452. alt
  5453. />
  5454. </div>
  5455. <div class="comment" style="min-width: 200px">
  5456. <div class="worksName">
  5457. <div>{{ w.sName }}</div>
  5458. </div>
  5459. <div class="commentList">
  5460. <div class="commentList">
  5461. <div
  5462. class="commentImg"
  5463. @click="
  5464. isLikes(w.wid, userid, 1, null, w.isLikes)
  5465. "
  5466. >
  5467. <img
  5468. :src="w.isLikes == true ? likes : noLikes"
  5469. alt=""
  5470. />
  5471. </div>
  5472. <div>{{ w.likesCount }}</div>
  5473. </div>
  5474. <div class="commentList" style="margin-right: 15px">
  5475. <div
  5476. class="commentImg"
  5477. @click="commentOther(w, toolIndex, wIndex)"
  5478. >
  5479. <img
  5480. src="../assets/icon/comment/comment.png"
  5481. alt=""
  5482. />
  5483. </div>
  5484. <div>{{ w.commentCount }}</div>
  5485. </div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. </div>
  5490. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5491. 未提交
  5492. </div>
  5493. <div
  5494. class="noWorksS"
  5495. v-if="noWorksS && noWorksS[toolIndex].length"
  5496. >
  5497. <div
  5498. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5499. :key="sIndex"
  5500. class="noWorksName"
  5501. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5502. >
  5503. {{ s.student }}
  5504. </div>
  5505. </div>
  5506. </div>
  5507. <div
  5508. v-if="
  5509. tType &&
  5510. tType == 2 &&
  5511. !sIsOpen &&
  5512. tool.tool.indexOf(40) != -1
  5513. "
  5514. class="worksBox"
  5515. >
  5516. <div
  5517. class="zuoyeYulan"
  5518. v-if="workStudent[toolIndex].length > 0"
  5519. >
  5520. <span class="worksTitle">作业预览</span>
  5521. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5522. </div>
  5523. <div
  5524. class="worksDetailBox"
  5525. v-if="workStudent[toolIndex].length > 0"
  5526. >
  5527. <div
  5528. class="works"
  5529. style="
  5530. width: 200px;
  5531. height: 140px;
  5532. margin: 10px 10px 10px 0;
  5533. "
  5534. v-for="(w, wIndex) in workStudent[toolIndex]"
  5535. :key="wIndex"
  5536. >
  5537. <div class="workImg">
  5538. <img
  5539. src="../assets/icon/works/noImg.png"
  5540. @click="openPj(w.works, toolIndex)"
  5541. alt
  5542. />
  5543. <img
  5544. class="deleteImg"
  5545. src="../assets/deleteworks.png"
  5546. v-if="
  5547. w.userid == userid || tType == 1 || tType == 4
  5548. "
  5549. @click.stop="deleteWorks(w.wid)"
  5550. alt
  5551. />
  5552. </div>
  5553. <div class="worksName">
  5554. <div>{{ w.sName }}</div>
  5555. </div>
  5556. </div>
  5557. </div>
  5558. </div>
  5559. <div
  5560. v-if="
  5561. tType &&
  5562. ((tType == 2 && sIsOpen == true) ||
  5563. tType == 1 ||
  5564. tType == 4) &&
  5565. tool.tool.indexOf(41) != -1
  5566. "
  5567. >
  5568. <AnswerData2
  5569. v-if="
  5570. worksStudent.length &&
  5571. worksStudent[toolIndex].length > 0
  5572. "
  5573. :problemJson="tool.selectJson.answer"
  5574. :people="worksStudent[toolIndex]"
  5575. ></AnswerData2>
  5576. </div>
  5577. <div
  5578. v-if="
  5579. tType &&
  5580. ((tType == 2 && sIsOpen == true) ||
  5581. tType == 1 ||
  5582. tType == 4) &&
  5583. tool.tool.indexOf(41) != -1
  5584. "
  5585. class="worksBox"
  5586. >
  5587. <div
  5588. class="zuoyeYulan"
  5589. v-if="
  5590. worksStudent.length &&
  5591. worksStudent[toolIndex].length > 0
  5592. "
  5593. >
  5594. <div class="worksTop">
  5595. <div>作业预览</div>
  5596. <div
  5597. class="corOpen"
  5598. @click="contract(toolIndex)"
  5599. v-if="
  5600. worksStudent[toolIndex].length > 6 &&
  5601. isCloseList[toolIndex].isClose == 0
  5602. "
  5603. >
  5604. 折叠
  5605. </div>
  5606. <div
  5607. class="corOpen"
  5608. @click="contract(toolIndex)"
  5609. v-if="isCloseList[toolIndex].isClose == 1"
  5610. >
  5611. 展开
  5612. </div>
  5613. </div>
  5614. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5615. </div>
  5616. <div
  5617. class="worksDetailBox"
  5618. v-if="
  5619. worksStudent.length &&
  5620. worksStudent[toolIndex].length > 0
  5621. "
  5622. >
  5623. <div
  5624. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5625. 0
  5626. ? worksStudent[toolIndex]
  5627. : worksStudent[toolIndex].slice(0, 6)"
  5628. :key="wIndex"
  5629. class="isWorksName2"
  5630. @click="openXz(w, toolIndex)"
  5631. >
  5632. {{ w.sName }}
  5633. <img
  5634. class="deleteImg deleteImg2"
  5635. src="../assets/deleteworks.png"
  5636. v-if="w.userid == userid || tType == 1 || tType == 4"
  5637. @click.stop="deleteWorks(w.wid)"
  5638. alt
  5639. />
  5640. </div>
  5641. <!-- <div
  5642. class="works"
  5643. style="
  5644. width: 200px;
  5645. height: 140px;
  5646. margin: 10px 10px 10px 0;
  5647. border-radius: 15px;
  5648. box-shadow: 0 0 6px 1px #dfdada;
  5649. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5650. :class="w.type == 5 ? 'isTypeOne' : ''">
  5651. <div class="workImg">
  5652. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5653. </div>
  5654. <div class="worksName">
  5655. <div>{{ w.sName }}</div>
  5656. </div>
  5657. </div> -->
  5658. </div>
  5659. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5660. 未提交
  5661. </div>
  5662. <div
  5663. class="noWorksS"
  5664. v-if="noWorksS && noWorksS[toolIndex].length"
  5665. >
  5666. <div
  5667. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5668. :key="sIndex"
  5669. class="noWorksName"
  5670. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5671. >
  5672. {{ s.student }}
  5673. </div>
  5674. </div>
  5675. </div>
  5676. <div
  5677. v-if="
  5678. tType &&
  5679. tType == 2 &&
  5680. !sIsOpen &&
  5681. tool.tool.indexOf(41) != -1
  5682. "
  5683. class="worksBox"
  5684. >
  5685. <div
  5686. class="zuoyeYulan"
  5687. v-if="workStudent[toolIndex].length > 0"
  5688. >
  5689. <span class="worksTitle">作业预览</span>
  5690. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5691. </div>
  5692. <div
  5693. class="worksDetailBox"
  5694. v-if="workStudent[toolIndex].length > 0"
  5695. >
  5696. <div
  5697. class="works"
  5698. style="
  5699. width: 200px;
  5700. height: 140px;
  5701. margin: 10px 10px 10px 0;
  5702. "
  5703. v-for="(w, wIndex) in workStudent[toolIndex]"
  5704. :key="wIndex"
  5705. >
  5706. <div class="workImg">
  5707. <img
  5708. src="../assets/icon/works/noImg.png"
  5709. @click="openXz(w, toolIndex)"
  5710. alt
  5711. />
  5712. <img
  5713. class="deleteImg"
  5714. src="../assets/deleteworks.png"
  5715. v-if="
  5716. w.userid == userid || tType == 1 || tType == 4
  5717. "
  5718. @click.stop="deleteWorks(w.wid)"
  5719. alt
  5720. />
  5721. </div>
  5722. <div class="worksName">
  5723. <div>{{ w.sName }}</div>
  5724. </div>
  5725. </div>
  5726. </div>
  5727. </div>
  5728. <div v-if="false" class="xuan_right_box">
  5729. <div
  5730. class="tool_right_box"
  5731. v-for="(item, index) in tool.sentenceList"
  5732. :key="index"
  5733. >
  5734. <div>
  5735. <span
  5736. style="word-break: break-all; white-space: normal"
  5737. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5738. >
  5739. </div>
  5740. <div class="right_box_xuan">
  5741. <span>正确率</span>
  5742. <span>{{
  5743. (checkJson[toolIndex][index].right
  5744. ? checkJson[toolIndex][index].right
  5745. : 0) + "%"
  5746. }}</span>
  5747. </div>
  5748. <div class="right_box_xuan">
  5749. <span>答对人数</span>
  5750. <span>{{
  5751. checkJson[toolIndex][index].rightPerson.length
  5752. }}</span>
  5753. </div>
  5754. </div>
  5755. </div>
  5756. <div
  5757. v-if="
  5758. tType &&
  5759. ((tType == 2 && sIsOpen == true) ||
  5760. tType == 1 ||
  5761. tType == 4) &&
  5762. tool.tool.indexOf(47) != -1
  5763. "
  5764. >
  5765. <AnswerData
  5766. v-if="
  5767. checkJson[toolIndex].length &&
  5768. (tool.sentenceList || tool.sentenceList.length > 0)
  5769. "
  5770. :people="checkJson[toolIndex]"
  5771. ></AnswerData>
  5772. </div>
  5773. <div
  5774. v-if="
  5775. tType &&
  5776. tType == 2 &&
  5777. !sIsOpen &&
  5778. tool.tool.indexOf(47) != -1
  5779. "
  5780. class="worksBox"
  5781. >
  5782. <div
  5783. class="zuoyeYulan"
  5784. v-if="workStudent[toolIndex].length > 0"
  5785. >
  5786. <span class="worksTitle">作业预览</span>
  5787. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5788. </div>
  5789. <div
  5790. class="worksDetailBox"
  5791. v-if="workStudent[toolIndex].length > 0"
  5792. >
  5793. <div
  5794. class="works"
  5795. style="
  5796. width: 200px;
  5797. height: 140px;
  5798. margin: 10px 10px 10px 0;
  5799. "
  5800. v-for="(w, wIndex) in workStudent[toolIndex]"
  5801. :key="wIndex"
  5802. >
  5803. <!-- @click="openXz(w, toolIndex)" -->
  5804. <div class="workImg" @click="openSen(w, toolIndex)">
  5805. <img src="../assets/icon/works/noImg.png" alt />
  5806. <img
  5807. class="deleteImg"
  5808. src="../assets/deleteworks.png"
  5809. v-if="
  5810. w.userid == userid || tType == 1 || tType == 4
  5811. "
  5812. @click.stop="deleteWorks(w.wid)"
  5813. alt
  5814. />
  5815. </div>
  5816. <div class="worksName">
  5817. <div>
  5818. {{ w.sName }}
  5819. </div>
  5820. </div>
  5821. </div>
  5822. </div>
  5823. </div>
  5824. <div
  5825. v-if="
  5826. tType &&
  5827. ((tType == 2 && sIsOpen == true) ||
  5828. tType == 1 ||
  5829. tType == 4) &&
  5830. tool.tool.indexOf(47) != -1
  5831. "
  5832. class="worksBox"
  5833. >
  5834. <div
  5835. class="zuoyeYulan"
  5836. v-if="
  5837. worksStudent.length &&
  5838. worksStudent[toolIndex].length > 0
  5839. "
  5840. >
  5841. <div class="worksTop">
  5842. <div>作业预览</div>
  5843. <div
  5844. class="corOpen"
  5845. @click="contract(toolIndex)"
  5846. v-if="
  5847. worksStudent[toolIndex].length > 6 &&
  5848. isCloseList[toolIndex].isClose == 0
  5849. "
  5850. >
  5851. 折叠
  5852. </div>
  5853. <div
  5854. class="corOpen"
  5855. @click="contract(toolIndex)"
  5856. v-if="isCloseList[toolIndex].isClose == 1"
  5857. >
  5858. 展开
  5859. </div>
  5860. </div>
  5861. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5862. </div>
  5863. <div
  5864. class="worksDetailBox"
  5865. v-if="
  5866. worksStudent.length &&
  5867. worksStudent[toolIndex].length > 0
  5868. "
  5869. >
  5870. <!-- @click="openXz(w, toolIndex)" -->
  5871. <div
  5872. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5873. 0
  5874. ? worksStudent[toolIndex]
  5875. : worksStudent[toolIndex].slice(0, 6)"
  5876. :key="wIndex"
  5877. class="isWorksName2"
  5878. @click="openSen(w, toolIndex)"
  5879. >
  5880. {{ w.sName }}
  5881. <img
  5882. class="deleteImg deleteImg2"
  5883. src="../assets/deleteworks.png"
  5884. v-if="w.userid == userid || tType == 1 || tType == 4"
  5885. @click.stop="deleteWorks(w.wid)"
  5886. alt
  5887. />
  5888. </div>
  5889. </div>
  5890. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5891. 未提交
  5892. </div>
  5893. <div
  5894. class="noWorksS"
  5895. v-if="noWorksS && noWorksS[toolIndex].length"
  5896. >
  5897. <div
  5898. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5899. :key="sIndex"
  5900. class="noWorksName"
  5901. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5902. >
  5903. {{ s.student }}
  5904. </div>
  5905. </div>
  5906. </div>
  5907. <div
  5908. v-if="
  5909. tType &&
  5910. ((tType == 2 && sIsOpen == true) ||
  5911. tType == 1 ||
  5912. tType == 4) &&
  5913. tool.tool.indexOf(48) != -1
  5914. "
  5915. class="worksBox"
  5916. >
  5917. <div
  5918. class="zuoyeYulan"
  5919. v-if="
  5920. worksStudent.length &&
  5921. worksStudent[toolIndex].length > 0
  5922. "
  5923. >
  5924. <div class="worksTop">
  5925. <div>作业预览</div>
  5926. <div
  5927. class="corOpen"
  5928. @click="contract(toolIndex)"
  5929. v-if="
  5930. worksStudent[toolIndex].length > 6 &&
  5931. isCloseList[toolIndex].isClose == 0
  5932. "
  5933. >
  5934. 折叠
  5935. </div>
  5936. <div
  5937. class="corOpen"
  5938. @click="contract(toolIndex)"
  5939. v-if="isCloseList[toolIndex].isClose == 1"
  5940. >
  5941. 展开
  5942. </div>
  5943. </div>
  5944. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5945. </div>
  5946. <div
  5947. class="worksDetailBox"
  5948. v-if="
  5949. worksStudent.length &&
  5950. worksStudent[toolIndex].length > 0
  5951. "
  5952. >
  5953. <div
  5954. class="works"
  5955. style="
  5956. width: 200px;
  5957. height: 140px;
  5958. margin: 10px 10px 10px 0;
  5959. border-radius: 15px;
  5960. box-shadow: 0 0 6px 1px #dfdada;
  5961. "
  5962. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5963. 0
  5964. ? worksStudent[toolIndex]
  5965. : worksStudent[toolIndex].slice(0, 6)"
  5966. :key="wIndex"
  5967. :class="w.type == 1 ? 'isTypeOne' : ''"
  5968. >
  5969. <div class="workImg">
  5970. <img :src="word" @click="openTable(w)" alt />
  5971. <!-- @click="openFile(w.works)" -->
  5972. <div
  5973. class="answerScore"
  5974. v-if="w.score"
  5975. @click.stop="openScore(w)"
  5976. :class="{
  5977. rightW:
  5978. w.userid == userid ||
  5979. tType == 1 ||
  5980. tType == 4 ||
  5981. w.ateacher == userid,
  5982. }"
  5983. >
  5984. {{ JSON.parse(w.score).wScore }}分
  5985. </div>
  5986. <div
  5987. class="answerScore"
  5988. @click.stop="openScore(w)"
  5989. v-else-if="courseDetail.userid == userid"
  5990. :class="{
  5991. rightW:
  5992. w.userid == userid ||
  5993. tType == 1 ||
  5994. tType == 4 ||
  5995. w.ateacher == userid,
  5996. }"
  5997. >
  5998. 评分
  5999. </div>
  6000. <img
  6001. class="deleteImg"
  6002. src="../assets/deleteworks.png"
  6003. v-if="
  6004. w.userid == userid || tType == 1 || tType == 4
  6005. "
  6006. @click.stop="deleteWorks(w.wid)"
  6007. alt
  6008. />
  6009. </div>
  6010. <div class="comment" style="min-width: 200px">
  6011. <div class="worksName">
  6012. <div>{{ w.sName }}</div>
  6013. </div>
  6014. <div class="commentList">
  6015. <div class="commentList">
  6016. <div
  6017. class="commentImg"
  6018. @click="
  6019. isLikes(w.wid, userid, 1, null, w.isLikes)
  6020. "
  6021. >
  6022. <img
  6023. :src="w.isLikes == true ? likes : noLikes"
  6024. alt=""
  6025. />
  6026. </div>
  6027. <div>{{ w.likesCount }}</div>
  6028. </div>
  6029. <div class="commentList" style="margin-right: 15px">
  6030. <div
  6031. class="commentImg"
  6032. @click="commentOther(w, toolIndex, wIndex)"
  6033. >
  6034. <img
  6035. src="../assets/icon/comment/comment.png"
  6036. alt=""
  6037. />
  6038. </div>
  6039. <div>{{ w.commentCount }}</div>
  6040. </div>
  6041. </div>
  6042. </div>
  6043. </div>
  6044. </div>
  6045. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6046. 未提交
  6047. </div>
  6048. <div
  6049. class="noWorksS"
  6050. v-if="noWorksS && noWorksS[toolIndex].length"
  6051. >
  6052. <div
  6053. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6054. :key="sIndex"
  6055. class="noWorksName"
  6056. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6057. >
  6058. {{ s.student }}
  6059. </div>
  6060. </div>
  6061. </div>
  6062. <div
  6063. v-if="
  6064. tType &&
  6065. tType == 2 &&
  6066. !sIsOpen &&
  6067. tool.tool.indexOf(48) != -1
  6068. "
  6069. class="worksBox"
  6070. >
  6071. <div
  6072. class="zuoyeYulan"
  6073. v-if="workStudent[toolIndex].length > 0"
  6074. >
  6075. <span class="worksTitle">作业预览</span>
  6076. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6077. </div>
  6078. <div
  6079. class="worksDetailBox"
  6080. v-if="workStudent[toolIndex].length > 0"
  6081. >
  6082. <div
  6083. class="works"
  6084. style="
  6085. width: 200px;
  6086. height: 140px;
  6087. margin: 10px 10px 10px 0;
  6088. box-shadow: 0 0 6px 1px #dfdada;
  6089. "
  6090. v-for="(w, wIndex) in workStudent[toolIndex]"
  6091. :key="wIndex"
  6092. >
  6093. <div class="workImg">
  6094. <img :src="word" @click="openTable(w)" alt />
  6095. <div
  6096. class="answerScore"
  6097. v-if="w.score"
  6098. @click.stop="openScore(w)"
  6099. :class="{
  6100. rightW:
  6101. w.userid == userid || tType == 1 || tType == 4,
  6102. }"
  6103. >
  6104. {{ JSON.parse(w.score).wScore }}分
  6105. </div>
  6106. <div
  6107. class="answerScore"
  6108. @click.stop="openScore(w)"
  6109. v-else-if="courseDetail.userid == userid"
  6110. :class="{
  6111. rightW:
  6112. w.userid == userid || tType == 1 || tType == 4,
  6113. }"
  6114. >
  6115. 评分
  6116. </div>
  6117. <img
  6118. class="deleteImg"
  6119. src="../assets/deleteworks.png"
  6120. v-if="
  6121. w.userid == userid || tType == 1 || tType == 4
  6122. "
  6123. @click.stop="deleteWorks(w.wid)"
  6124. alt
  6125. />
  6126. </div>
  6127. <div class="worksName">
  6128. <div>{{ w.sName }}</div>
  6129. </div>
  6130. </div>
  6131. </div>
  6132. </div>
  6133. <div
  6134. v-if="
  6135. tType &&
  6136. ((tType == 2 && sIsOpen == true) ||
  6137. tType == 1 ||
  6138. tType == 4) &&
  6139. tool.tool.indexOf(52) != -1
  6140. "
  6141. class="worksBox"
  6142. >
  6143. <div
  6144. class="zuoyeYulan"
  6145. v-if="
  6146. worksStudent.length &&
  6147. worksStudent[toolIndex].length > 0
  6148. "
  6149. >
  6150. <div class="worksTop">
  6151. <div>作业预览</div>
  6152. <div
  6153. class="corOpen"
  6154. @click="contract(toolIndex)"
  6155. v-if="
  6156. worksStudent[toolIndex].length > 6 &&
  6157. isCloseList[toolIndex].isClose == 0
  6158. "
  6159. >
  6160. 折叠
  6161. </div>
  6162. <div
  6163. class="corOpen"
  6164. @click="contract(toolIndex)"
  6165. v-if="isCloseList[toolIndex].isClose == 1"
  6166. >
  6167. 展开
  6168. </div>
  6169. </div>
  6170. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6171. </div>
  6172. <div
  6173. class="worksDetailBox"
  6174. v-if="
  6175. worksStudent.length &&
  6176. worksStudent[toolIndex].length > 0
  6177. "
  6178. >
  6179. <div
  6180. class="works"
  6181. style="
  6182. width: 200px;
  6183. height: 140px;
  6184. margin: 10px 10px 10px 0;
  6185. border-radius: 15px;
  6186. box-shadow: 0 0 6px 1px #dfdada;
  6187. "
  6188. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6189. 0
  6190. ? worksStudent[toolIndex]
  6191. : worksStudent[toolIndex].slice(0, 6)"
  6192. :key="wIndex"
  6193. :class="w.type == 1 ? 'isTypeOne' : ''"
  6194. >
  6195. <div class="workImg">
  6196. <img :src="word" @click="openWord(w)" alt />
  6197. <!-- @click="openFile(w.works)" -->
  6198. <div
  6199. class="answerScore"
  6200. v-if="w.score"
  6201. @click.stop="openScore(w)"
  6202. :class="{
  6203. rightW:
  6204. w.userid == userid ||
  6205. tType == 1 ||
  6206. tType == 4 ||
  6207. w.ateacher == userid,
  6208. }"
  6209. >
  6210. {{ JSON.parse(w.score).wScore }}分
  6211. </div>
  6212. <div
  6213. class="answerScore"
  6214. @click.stop="openScore(w)"
  6215. v-else-if="courseDetail.userid == userid"
  6216. :class="{
  6217. rightW:
  6218. w.userid == userid ||
  6219. tType == 1 ||
  6220. tType == 4 ||
  6221. w.ateacher == userid,
  6222. }"
  6223. >
  6224. 评分
  6225. </div>
  6226. <img
  6227. class="deleteImg"
  6228. src="../assets/deleteworks.png"
  6229. v-if="
  6230. w.userid == userid || tType == 1 || tType == 4
  6231. "
  6232. @click.stop="deleteWorks(w.wid)"
  6233. alt
  6234. />
  6235. </div>
  6236. <div class="comment" style="min-width: 200px">
  6237. <div class="worksName">
  6238. <div>{{ w.sName }}</div>
  6239. </div>
  6240. <div class="commentList">
  6241. <div class="commentList">
  6242. <div
  6243. class="commentImg"
  6244. @click="
  6245. isLikes(w.wid, userid, 1, null, w.isLikes)
  6246. "
  6247. >
  6248. <img
  6249. :src="w.isLikes == true ? likes : noLikes"
  6250. alt=""
  6251. />
  6252. </div>
  6253. <div>{{ w.likesCount }}</div>
  6254. </div>
  6255. <div class="commentList" style="margin-right: 15px">
  6256. <div
  6257. class="commentImg"
  6258. @click="commentOther(w, toolIndex, wIndex)"
  6259. >
  6260. <img
  6261. src="../assets/icon/comment/comment.png"
  6262. alt=""
  6263. />
  6264. </div>
  6265. <div>{{ w.commentCount }}</div>
  6266. </div>
  6267. </div>
  6268. </div>
  6269. </div>
  6270. </div>
  6271. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6272. 未提交
  6273. </div>
  6274. <div
  6275. class="noWorksS"
  6276. v-if="noWorksS && noWorksS[toolIndex].length"
  6277. >
  6278. <div
  6279. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6280. :key="sIndex"
  6281. class="noWorksName"
  6282. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6283. >
  6284. {{ s.student }}
  6285. </div>
  6286. </div>
  6287. </div>
  6288. <div
  6289. v-if="
  6290. tType &&
  6291. tType == 2 &&
  6292. !sIsOpen &&
  6293. tool.tool.indexOf(52) != -1
  6294. "
  6295. class="worksBox"
  6296. >
  6297. <div
  6298. class="zuoyeYulan"
  6299. v-if="workStudent[toolIndex].length > 0"
  6300. >
  6301. <span class="worksTitle">作业预览</span>
  6302. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6303. </div>
  6304. <div
  6305. class="worksDetailBox"
  6306. v-if="workStudent[toolIndex].length > 0"
  6307. >
  6308. <div
  6309. class="works"
  6310. style="
  6311. width: 200px;
  6312. height: 140px;
  6313. margin: 10px 10px 10px 0;
  6314. box-shadow: 0 0 6px 1px #dfdada;
  6315. "
  6316. v-for="(w, wIndex) in workStudent[toolIndex]"
  6317. :key="wIndex"
  6318. >
  6319. <div class="workImg">
  6320. <img :src="word" @click="openWord(w)" alt />
  6321. <div
  6322. class="answerScore"
  6323. v-if="w.score"
  6324. @click.stop="openScore(w)"
  6325. :class="{
  6326. rightW:
  6327. w.userid == userid || tType == 1 || tType == 4,
  6328. }"
  6329. >
  6330. {{ JSON.parse(w.score).wScore }}分
  6331. </div>
  6332. <div
  6333. class="answerScore"
  6334. @click.stop="openScore(w)"
  6335. v-else-if="courseDetail.userid == userid"
  6336. :class="{
  6337. rightW:
  6338. w.userid == userid || tType == 1 || tType == 4,
  6339. }"
  6340. >
  6341. 评分
  6342. </div>
  6343. <img
  6344. class="deleteImg"
  6345. src="../assets/deleteworks.png"
  6346. v-if="
  6347. w.userid == userid || tType == 1 || tType == 4
  6348. "
  6349. @click.stop="deleteWorks(w.wid)"
  6350. alt
  6351. />
  6352. </div>
  6353. <div class="worksName">
  6354. <div>{{ w.sName }}</div>
  6355. </div>
  6356. </div>
  6357. </div>
  6358. </div>
  6359. <div
  6360. v-if="tool.tool.indexOf(49) != -1"
  6361. class="xuan_right_box"
  6362. style="margin: 0 15px 0 25px; width: 93%"
  6363. >
  6364. <div
  6365. v-if="courseDetail.userid == userid"
  6366. style="
  6367. display: flex;
  6368. justify-content: flex-end;
  6369. margin-right: 10px;
  6370. "
  6371. >
  6372. <el-button
  6373. type="primary"
  6374. size="small"
  6375. @click="addTools(49, toolIndex, taskCount)"
  6376. >分组设置</el-button
  6377. >
  6378. </div>
  6379. <div
  6380. v-if="groupStudentUid[toolIndex]"
  6381. class="group_staic_box"
  6382. >
  6383. <div
  6384. v-for="(gp, gd) in tool.groupJson.group"
  6385. :key="gd"
  6386. class="group_staic"
  6387. >
  6388. <span> {{ gp.name }}</span>
  6389. <span>
  6390. 目前人数{{
  6391. groupStudentUid[toolIndex][gd].length
  6392. }}人</span
  6393. >
  6394. </div>
  6395. </div>
  6396. </div>
  6397. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6398. <div
  6399. class="zuoyeYulan"
  6400. v-if="
  6401. worksStudent.length &&
  6402. worksStudent[toolIndex].length > 0
  6403. "
  6404. >
  6405. <span class="worksTitle">作业预览</span>
  6406. </div>
  6407. <div>
  6408. <div
  6409. class="group_workBox"
  6410. v-for="(g, gindex) in tool.groupJson.group"
  6411. :key="gindex"
  6412. >
  6413. <div
  6414. class="group_box"
  6415. v-if="
  6416. groupStudentUid[toolIndex] &&
  6417. worksStudent[toolIndex] &&
  6418. (worksStudent[toolIndex][gindex].length ||
  6419. groupStudentUid[toolIndex][gindex].indexOf(
  6420. userid
  6421. ) != -1)
  6422. "
  6423. >
  6424. <div class="group_title">
  6425. <el-tooltip
  6426. class="item"
  6427. effect="light"
  6428. :content="g.name"
  6429. placement="top"
  6430. >
  6431. <div class="group_name">{{ g.name }}</div>
  6432. </el-tooltip>
  6433. <el-button
  6434. type="primary"
  6435. v-if="
  6436. groupStudentUid[toolIndex][gindex].indexOf(
  6437. userid
  6438. ) != -1
  6439. "
  6440. @click="groupUpload(toolIndex, taskCount, gindex)"
  6441. >上传作业</el-button
  6442. >
  6443. </div>
  6444. <div class="group_work">
  6445. <div
  6446. class="works"
  6447. style="
  6448. width: 200px;
  6449. height: 140px;
  6450. margin: 10px 10px 10px 0;
  6451. border-radius: 15px;
  6452. box-shadow: 0 0 6px 1px #dfdada;
  6453. "
  6454. v-for="(w, wIndex) in worksStudent[toolIndex][
  6455. gindex
  6456. ]"
  6457. :key="wIndex"
  6458. :class="w.type == 1 ? 'isTypeOne' : ''"
  6459. >
  6460. <div class="workImg" v-if="w.type == 0">
  6461. <img
  6462. :src="w.works"
  6463. @click="previewImg(w.works)"
  6464. alt
  6465. />
  6466. <div
  6467. class="answerScore"
  6468. v-if="w.score"
  6469. @click.stop="openScore(w)"
  6470. :class="{
  6471. rightW:
  6472. w.userid == userid ||
  6473. tType == 1 ||
  6474. tType == 4 ||
  6475. w.ateacher == userid,
  6476. }"
  6477. >
  6478. {{ JSON.parse(w.score).wScore }}分
  6479. </div>
  6480. <div
  6481. class="answerScore"
  6482. @click.stop="openScore(w)"
  6483. v-else-if="courseDetail.userid == userid"
  6484. :class="{
  6485. rightW:
  6486. w.userid == userid ||
  6487. tType == 1 ||
  6488. tType == 4 ||
  6489. w.ateacher == userid,
  6490. }"
  6491. >
  6492. 评分
  6493. </div>
  6494. <img
  6495. class="deleteImg"
  6496. src="../assets/deleteworks.png"
  6497. v-if="
  6498. w.userid == userid ||
  6499. tType == 1 ||
  6500. tType == 4
  6501. "
  6502. @click.stop="deleteWorks(w.wid)"
  6503. alt
  6504. />
  6505. </div>
  6506. <div class="workImg" v-if="w.type == 1">
  6507. <img
  6508. :src="word"
  6509. @click="openFile(w.works)"
  6510. alt
  6511. />
  6512. <!-- @click="openFile(w.works)" -->
  6513. <div
  6514. class="answerScore"
  6515. v-if="w.score"
  6516. @click.stop="openScore(w)"
  6517. :class="{
  6518. rightW:
  6519. w.userid == userid ||
  6520. tType == 1 ||
  6521. tType == 4 ||
  6522. w.ateacher == userid,
  6523. }"
  6524. >
  6525. {{ JSON.parse(w.score).wScore }}分
  6526. </div>
  6527. <div
  6528. class="answerScore"
  6529. @click.stop="openScore(w)"
  6530. v-else-if="courseDetail.userid == userid"
  6531. :class="{
  6532. rightW:
  6533. w.userid == userid ||
  6534. tType == 1 ||
  6535. tType == 4 ||
  6536. w.ateacher == userid,
  6537. }"
  6538. >
  6539. 评分
  6540. </div>
  6541. <img
  6542. class="deleteImg"
  6543. src="../assets/deleteworks.png"
  6544. v-if="
  6545. w.userid == userid ||
  6546. tType == 1 ||
  6547. tType == 4
  6548. "
  6549. @click.stop="deleteWorks(w.wid)"
  6550. alt
  6551. />
  6552. </div>
  6553. <div class="workImg" v-if="w.type == 3">
  6554. <img
  6555. style="cursor: pointer"
  6556. :src="video"
  6557. @click="openVideo(w)"
  6558. alt
  6559. />
  6560. <!-- @click="openVideo(w.works)" -->
  6561. <div
  6562. class="answerScore"
  6563. v-if="w.score"
  6564. @click.stop="openScore(w)"
  6565. :class="{
  6566. rightW:
  6567. w.userid == userid ||
  6568. tType == 1 ||
  6569. tType == 4 ||
  6570. w.ateacher == userid,
  6571. }"
  6572. >
  6573. {{ JSON.parse(w.score).wScore }}分
  6574. </div>
  6575. <div
  6576. class="answerScore"
  6577. @click.stop="openScore(w)"
  6578. v-else-if="courseDetail.userid == userid"
  6579. :class="{
  6580. rightW:
  6581. w.userid == userid ||
  6582. tType == 1 ||
  6583. tType == 4 ||
  6584. w.ateacher == userid,
  6585. }"
  6586. >
  6587. 评分
  6588. </div>
  6589. <img
  6590. class="deleteImg"
  6591. src="../assets/deleteworks.png"
  6592. v-if="
  6593. w.userid == userid ||
  6594. tType == 1 ||
  6595. tType == 4
  6596. "
  6597. @click.stop="deleteWorks(w.wid)"
  6598. alt
  6599. />
  6600. </div>
  6601. <div class="workImg" v-if="w.type == 12">
  6602. <img
  6603. style="cursor: pointer"
  6604. :src="word2"
  6605. @click="downloadFile(w.works)"
  6606. alt
  6607. />
  6608. <!-- @click="openVideo(w.works)" -->
  6609. <div
  6610. class="answerScore"
  6611. v-if="w.score"
  6612. @click.stop="openScore(w)"
  6613. :class="{
  6614. rightW:
  6615. w.userid == userid ||
  6616. tType == 1 ||
  6617. tType == 4 ||
  6618. w.ateacher == userid,
  6619. }"
  6620. >
  6621. {{ JSON.parse(w.score).wScore }}分
  6622. </div>
  6623. <div
  6624. class="answerScore"
  6625. @click.stop="openScore(w)"
  6626. v-else-if="courseDetail.userid == userid"
  6627. :class="{
  6628. rightW:
  6629. w.userid == userid ||
  6630. tType == 1 ||
  6631. tType == 4 ||
  6632. w.ateacher == userid,
  6633. }"
  6634. >
  6635. 评分
  6636. </div>
  6637. <img
  6638. class="deleteImg"
  6639. src="../assets/deleteworks.png"
  6640. v-if="
  6641. w.userid == userid ||
  6642. tType == 1 ||
  6643. tType == 4
  6644. "
  6645. @click.stop="deleteWorks(w.wid)"
  6646. alt
  6647. />
  6648. </div>
  6649. <div class="comment" style="min-width: 200px">
  6650. <div class="worksName">
  6651. <div>{{ w.sName }}</div>
  6652. </div>
  6653. <div class="commentList">
  6654. <div class="commentList">
  6655. <div
  6656. class="commentImg"
  6657. @click="
  6658. isLikes(
  6659. w.wid,
  6660. userid,
  6661. 1,
  6662. null,
  6663. w.isLikes
  6664. )
  6665. "
  6666. >
  6667. <img
  6668. :src="
  6669. w.isLikes == true ? likes : noLikes
  6670. "
  6671. alt=""
  6672. />
  6673. </div>
  6674. <div>{{ w.likesCount }}</div>
  6675. </div>
  6676. <div
  6677. class="commentList"
  6678. style="margin-right: 15px"
  6679. >
  6680. <div
  6681. class="commentImg"
  6682. @click="
  6683. commentOther(
  6684. w,
  6685. toolIndex,
  6686. wIndex,
  6687. gindex
  6688. )
  6689. "
  6690. >
  6691. <img
  6692. src="../assets/icon/comment/comment.png"
  6693. alt=""
  6694. />
  6695. </div>
  6696. <div>{{ w.commentCount }}</div>
  6697. </div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. </div>
  6702. </div>
  6703. </div>
  6704. </div>
  6705. </div>
  6706. </div>
  6707. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6708. 上传文件
  6709. <input
  6710. type="file"
  6711. accept="image/png, image/gif, image/jpeg"
  6712. style="display: none"
  6713. @change="beforeUpload1($event, 2, index)"
  6714. />
  6715. </div>-->
  6716. </div>
  6717. </div>
  6718. <!-- <div
  6719. class="vedioBox"
  6720. style="margin-top: 10px"
  6721. v-if="
  6722. courseDetail.userid == userid ||
  6723. (courseDetail.course_teacher &&
  6724. courseDetail.course_teacher.indexOf(userid) != -1)
  6725. "
  6726. :style="{
  6727. borderRadius:
  6728. !(
  6729. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6730. .toolChoose[0].tool &&
  6731. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6732. .toolChoose[0].tool.length > 0
  6733. ) &&
  6734. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6735. .taskDetail == '' &&
  6736. vChapterData[taskCount].length == 0 &&
  6737. fileC[taskCount].length == 0
  6738. ? '0 0 20px 20px'
  6739. : '20px',
  6740. }"
  6741. >
  6742. <div
  6743. class="queTop"
  6744. @click="isClose = !isClose"
  6745. style="
  6746. padding: 15px 0 15px 37px;
  6747. justify-content: space-between;
  6748. "
  6749. >
  6750. <div class="queTopTitle">新增工具</div>
  6751. <div class="queTopRight">
  6752. <div class="queTopClose" v-if="isClose == 0">
  6753. 展开
  6754. <div class="closeImg">
  6755. <img src="../assets/icon/newIcon/close.png" alt="" />
  6756. </div>
  6757. </div>
  6758. <div class="queTopClose" v-if="isClose == 1">
  6759. 折叠
  6760. <div class="openImg">
  6761. <img src="../assets/icon/newIcon/open.png" alt="" />
  6762. </div>
  6763. </div>
  6764. <el-button
  6765. style="margin: 0 30px 0 auto"
  6766. type="primary"
  6767. size="small"
  6768. v-if="isClose == 1 && checktoolArray.length > 0"
  6769. @click.stop="addToolChoose"
  6770. >确定</el-button
  6771. >
  6772. </div>
  6773. </div>
  6774. <div
  6775. class="tool_work_box"
  6776. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6777. >
  6778. <div class="tool_box">
  6779. <div class="tool_type_box">
  6780. <div class="chooseWho">
  6781. <div
  6782. :class="toolType == 0 ? 'isChooseActive' : ''"
  6783. @click="(toolType = 0), $forceUpdate()"
  6784. >
  6785. 互动类
  6786. </div>
  6787. <div
  6788. :class="toolType == 1 ? 'isChooseActive' : ''"
  6789. @click="(toolType = 1), $forceUpdate()"
  6790. >
  6791. 思维类
  6792. </div>
  6793. <div
  6794. :class="toolType == 2 ? 'isChooseActive' : ''"
  6795. @click="(toolType = 2), $forceUpdate()"
  6796. >
  6797. 测评类
  6798. </div>
  6799. <div
  6800. :class="toolType == 3 ? 'isChooseActive' : ''"
  6801. @click="(toolType = 3), $forceUpdate()"
  6802. >
  6803. 编程类
  6804. </div>
  6805. <div
  6806. :class="toolType == 5 ? 'isChooseActive' : ''"
  6807. @click="(toolType = 5), $forceUpdate()"
  6808. >
  6809. 学科类
  6810. </div>
  6811. </div>
  6812. </div>
  6813. <div>
  6814. <div class="toolSort" v-if="toolType == 0">
  6815. <div class="tool">
  6816. <div class="whiteBIcon" @click="addTools2(10)">
  6817. <img
  6818. src="../assets/icon/thirdToolList/time.png"
  6819. alt
  6820. />
  6821. <div style="margin: 5px 0">倒计时</div>
  6822. </div>
  6823. <div class="check" @click="addTools2(10)">
  6824. <img
  6825. src="../assets/icon/checkNo.png"
  6826. alt
  6827. v-if="checktoolArray.indexOf(10) == -1"
  6828. />
  6829. <div class="checkDiv" v-else>
  6830. <img src="../assets/icon/checkedIs.png" alt /><span
  6831. >已选择</span
  6832. >
  6833. </div>
  6834. </div>
  6835. </div>
  6836. <div class="tool">
  6837. <div class="whiteBIcon" @click="addTools2(65)">
  6838. <img
  6839. src="../assets/icon/firstToolList/pickPeople.png"
  6840. alt
  6841. />
  6842. <div style="margin: 5px 0">挑人</div>
  6843. </div>
  6844. <div class="check" @click="addTools2(65)">
  6845. <img
  6846. src="../assets/icon/checkNo.png"
  6847. alt
  6848. v-if="checktoolArray.indexOf(65) == -1"
  6849. />
  6850. <div class="checkDiv" v-else>
  6851. <img src="../assets/icon/checkedIs.png" alt /><span
  6852. >已选择</span
  6853. >
  6854. </div>
  6855. </div>
  6856. </div>
  6857. </div>
  6858. <div class="toolSort" v-if="toolType == 1">
  6859. <div class="tool">
  6860. <div class="whiteBIcon" @click="addTools2(7)">
  6861. <img
  6862. src="../assets/icon/secondToolList/mindNetwork.png"
  6863. alt
  6864. />
  6865. <div style="margin: 5px 0">思维网格</div>
  6866. </div>
  6867. <div class="check" @click="addTools2(7)">
  6868. <img
  6869. src="../assets/icon/checkNo.png"
  6870. alt
  6871. v-if="checktoolArray.indexOf(7) == -1"
  6872. />
  6873. <div class="checkDiv" v-else>
  6874. <img src="../assets/icon/checkedIs.png" alt /><span
  6875. >已选择</span
  6876. >
  6877. </div>
  6878. </div>
  6879. </div>
  6880. <div class="tool">
  6881. <div class="whiteBIcon" @click="addTools2(1)">
  6882. <img
  6883. src="../assets/icon/secondToolList/whiteBoard.png"
  6884. alt
  6885. />
  6886. <div style="margin: 5px 0">电子白板</div>
  6887. </div>
  6888. <div class="check" @click="addTools2(1)">
  6889. <img
  6890. src="../assets/icon/checkNo.png"
  6891. alt
  6892. v-if="checktoolArray.indexOf(1) == -1"
  6893. />
  6894. <div class="checkDiv" v-else>
  6895. <img src="../assets/icon/checkedIs.png" alt /><span
  6896. >已选择</span
  6897. >
  6898. </div>
  6899. </div>
  6900. </div>
  6901. <div class="tool">
  6902. <div class="whiteBIcon" @click="addTools2(52)">
  6903. <img
  6904. src="../assets/icon/fourthToolList/text.png"
  6905. alt
  6906. />
  6907. <div style="margin: 5px 0">文档</div>
  6908. </div>
  6909. <div class="check" @click="addTools2(52)">
  6910. <img
  6911. src="../assets/icon/checkNo.png"
  6912. alt
  6913. v-if="checktoolArray.indexOf(52) == -1"
  6914. />
  6915. <div class="checkDiv" v-else>
  6916. <img src="../assets/icon/checkedIs.png" alt /><span
  6917. >已选择</span
  6918. >
  6919. </div>
  6920. </div>
  6921. </div>
  6922. <div class="tool">
  6923. <div class="whiteBIcon" @click="addTools2(3)">
  6924. <img
  6925. src="../assets/icon/secondToolList/mindMapping.png"
  6926. alt
  6927. />
  6928. <div style="margin: 5px 0">思维导图</div>
  6929. </div>
  6930. <div class="check" @click="addTools2(3)">
  6931. <img
  6932. src="../assets/icon/checkNo.png"
  6933. alt
  6934. v-if="checktoolArray.indexOf(3) == -1"
  6935. />
  6936. <div class="checkDiv" v-else>
  6937. <img src="../assets/icon/checkedIs.png" alt /><span
  6938. >已选择</span
  6939. >
  6940. </div>
  6941. </div>
  6942. </div>
  6943. <div class="tool">
  6944. <div class="whiteBIcon" @click="addTools2(48)">
  6945. <img
  6946. src="../assets/icon/fourthToolList/table.png"
  6947. alt
  6948. />
  6949. <div style="margin: 5px 0">表格</div>
  6950. </div>
  6951. <div class="check" @click="addTools2(48)">
  6952. <img
  6953. src="../assets/icon/checkNo.png"
  6954. alt
  6955. v-if="checktoolArray.indexOf(48) == -1"
  6956. />
  6957. <div class="checkDiv" v-else>
  6958. <img src="../assets/icon/checkedIs.png" alt /><span
  6959. >已选择</span
  6960. >
  6961. </div>
  6962. </div>
  6963. </div>
  6964. </div>
  6965. <div class="toolSort" v-if="toolType == 6">
  6966. <div v-show="tooC == 49">
  6967. <img
  6968. @click="addTools(tooC, toolIndex, taskCount)"
  6969. src="../assets/icon/fourthToolList/group.png"
  6970. alt
  6971. />
  6972. <div style="margin: 5px 0">学生分组</div>
  6973. </div>
  6974. </div>
  6975. <div class="toolSort" v-if="toolType == 2">
  6976. <div class="tool">
  6977. <div class="whiteBIcon" @click="addTools2(16)">
  6978. <img
  6979. src="../assets/icon/thirdToolList/work.png"
  6980. alt
  6981. />
  6982. <div style="margin: 5px 0">作业提交</div>
  6983. </div>
  6984. <div class="check" @click="addTools2(16)">
  6985. <img
  6986. src="../assets/icon/checkNo.png"
  6987. alt
  6988. v-if="checktoolArray.indexOf(16) == -1"
  6989. />
  6990. <div class="checkDiv" v-else>
  6991. <img src="../assets/icon/checkedIs.png" alt /><span
  6992. >已选择</span
  6993. >
  6994. </div>
  6995. </div>
  6996. </div>
  6997. <div class="tool">
  6998. <div class="whiteBIcon" @click="addTools2(50)">
  6999. <img
  7000. src="../assets/icon/thirdToolList/plwork.png"
  7001. alt
  7002. />
  7003. <div style="margin: 5px 0">批量上传</div>
  7004. </div>
  7005. <div class="check" @click="addTools2(50)">
  7006. <img
  7007. src="../assets/icon/checkNo.png"
  7008. alt
  7009. v-if="checktoolArray.indexOf(50) == -1"
  7010. />
  7011. <div class="checkDiv" v-else>
  7012. <img src="../assets/icon/checkedIs.png" alt /><span
  7013. >已选择</span
  7014. >
  7015. </div>
  7016. </div>
  7017. </div>
  7018. </div>
  7019. <div class="toolSort" v-if="toolType == 3">
  7020. <div class="tool">
  7021. <div class="whiteBIcon" @click="addTools2(18)">
  7022. <img
  7023. src="../assets/icon/thirdToolList/trainPlatform.png"
  7024. alt
  7025. />
  7026. <div style="margin: 5px 0">训练平台</div>
  7027. </div>
  7028. <div class="check" @click="addTools2(18)">
  7029. <img
  7030. src="../assets/icon/checkNo.png"
  7031. alt
  7032. v-if="checktoolArray.indexOf(18) == -1"
  7033. />
  7034. <div class="checkDiv" v-else>
  7035. <img src="../assets/icon/checkedIs.png" alt /><span
  7036. >已选择</span
  7037. >
  7038. </div>
  7039. </div>
  7040. </div>
  7041. <div class="tool">
  7042. <div class="whiteBIcon" @click="addTools2(21)">
  7043. <img
  7044. src="../assets/icon/fourthToolList/program.png"
  7045. alt
  7046. />
  7047. <div style="margin: 5px 0">AIoT Blockly</div>
  7048. </div>
  7049. <div class="check" @click="addTools2(21)">
  7050. <img
  7051. src="../assets/icon/checkNo.png"
  7052. alt
  7053. v-if="checktoolArray.indexOf(21) == -1"
  7054. />
  7055. <div class="checkDiv" v-else>
  7056. <img src="../assets/icon/checkedIs.png" alt /><span
  7057. >已选择</span
  7058. >
  7059. </div>
  7060. </div>
  7061. </div>
  7062. <div class="tool">
  7063. <div class="whiteBIcon" @click="addTools2(23)">
  7064. <img
  7065. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7066. alt
  7067. />
  7068. <div style="margin: 5px 0">AI Python</div>
  7069. </div>
  7070. <div class="check" @click="addTools2(23)">
  7071. <img
  7072. src="../assets/icon/checkNo.png"
  7073. alt
  7074. v-if="checktoolArray.indexOf(23) == -1"
  7075. />
  7076. <div class="checkDiv" v-else>
  7077. <img src="../assets/icon/checkedIs.png" alt /><span
  7078. >已选择</span
  7079. >
  7080. </div>
  7081. </div>
  7082. </div>
  7083. <div class="tool">
  7084. <div class="whiteBIcon" @click="addTools2(24)">
  7085. <img
  7086. src="../assets/icon/fourthToolList/AIprogram.png"
  7087. alt
  7088. />
  7089. <div style="margin: 5px 0">AI Blockly</div>
  7090. </div>
  7091. <div class="check" @click="addTools2(24)">
  7092. <img
  7093. src="../assets/icon/checkNo.png"
  7094. alt
  7095. v-if="checktoolArray.indexOf(24) == -1"
  7096. />
  7097. <div class="checkDiv" v-else>
  7098. <img src="../assets/icon/checkedIs.png" alt /><span
  7099. >已选择</span
  7100. >
  7101. </div>
  7102. </div>
  7103. </div>
  7104. <div class="tool">
  7105. <div class="whiteBIcon" @click="addTools2(32)">
  7106. <img
  7107. src="../assets/icon/thirdToolList/code.png"
  7108. alt
  7109. />
  7110. <div style="margin: 5px 0">源码编辑</div>
  7111. </div>
  7112. <div class="check" @click="addTools2(32)">
  7113. <img
  7114. src="../assets/icon/checkNo.png"
  7115. alt
  7116. v-if="checktoolArray.indexOf(32) == -1"
  7117. />
  7118. <div class="checkDiv" v-else>
  7119. <img src="../assets/icon/checkedIs.png" alt /><span
  7120. >已选择</span
  7121. >
  7122. </div>
  7123. </div>
  7124. </div>
  7125. <div class="tool">
  7126. <div class="whiteBIcon" @click="addTools2(57)">
  7127. <img
  7128. src="../assets/icon/fourthToolList/cocopi.png"
  7129. alt
  7130. />
  7131. <div style="margin: 5px 0">CocoPi</div>
  7132. </div>
  7133. <div class="check" @click="addTools2(57)">
  7134. <img
  7135. src="../assets/icon/checkNo.png"
  7136. alt
  7137. v-if="checktoolArray.indexOf(57) == -1"
  7138. />
  7139. <div class="checkDiv" v-else>
  7140. <img src="../assets/icon/checkedIs.png" alt /><span
  7141. >已选择</span
  7142. >
  7143. </div>
  7144. </div>
  7145. </div>
  7146. <div class="tool">
  7147. <div class="whiteBIcon" @click="addTools2(63)">
  7148. <img
  7149. src="../assets/icon/fourthToolList/Wood.png"
  7150. alt
  7151. />
  7152. <div style="margin: 5px 0">海龟编程</div>
  7153. </div>
  7154. <div class="check" @click="addTools2(63)">
  7155. <img
  7156. src="../assets/icon/checkNo.png"
  7157. alt
  7158. v-if="checktoolArray.indexOf(63) == -1"
  7159. />
  7160. <div class="checkDiv" v-else>
  7161. <img src="../assets/icon/checkedIs.png" alt /><span
  7162. >已选择</span
  7163. >
  7164. </div>
  7165. </div>
  7166. </div>
  7167. </div>
  7168. <div class="toolSort" v-if="toolType == 5">
  7169. <div class="tool">
  7170. <div class="whiteBIcon" @click="addTools2(28)">
  7171. <img
  7172. src="../assets/icon/secondToolList/translation.png"
  7173. alt
  7174. />
  7175. <div style="margin: 5px 0">翻译</div>
  7176. </div>
  7177. <div class="check" @click="addTools2(28)">
  7178. <img
  7179. src="../assets/icon/checkNo.png"
  7180. alt
  7181. v-if="checktoolArray.indexOf(28) == -1"
  7182. />
  7183. <div class="checkDiv" v-else>
  7184. <img src="../assets/icon/checkedIs.png" alt /><span
  7185. >已选择</span
  7186. >
  7187. </div>
  7188. </div>
  7189. </div>
  7190. <div class="tool">
  7191. <div class="whiteBIcon" @click="addTools2(31)">
  7192. <img
  7193. src="../assets/icon/secondToolList/networkPanel.png"
  7194. alt
  7195. />
  7196. <div style="margin: 5px 0">数字画板</div>
  7197. </div>
  7198. <div class="check" @click="addTools2(31)">
  7199. <img
  7200. src="../assets/icon/checkNo.png"
  7201. alt
  7202. v-if="checktoolArray.indexOf(31) == -1"
  7203. />
  7204. <div class="checkDiv" v-else>
  7205. <img src="../assets/icon/checkedIs.png" alt /><span
  7206. >已选择</span
  7207. >
  7208. </div>
  7209. </div>
  7210. </div>
  7211. <div class="tool">
  7212. <div class="whiteBIcon" @click="addTools2(39)">
  7213. <img
  7214. src="../assets/icon/secondToolList/GeoGebra.png"
  7215. alt
  7216. />
  7217. <div style="margin: 5px 0">GeoGebra</div>
  7218. </div>
  7219. <div class="check" @click="addTools2(39)">
  7220. <img
  7221. src="../assets/icon/checkNo.png"
  7222. alt
  7223. v-if="checktoolArray.indexOf(39) == -1"
  7224. />
  7225. <div class="checkDiv" v-else>
  7226. <img src="../assets/icon/checkedIs.png" alt /><span
  7227. >已选择</span
  7228. >
  7229. </div>
  7230. </div>
  7231. </div>
  7232. <div class="tool">
  7233. <div class="whiteBIcon" @click="addTools2(66)">
  7234. <img
  7235. src="../assets/icon/secondToolList/formulaEdi.png"
  7236. alt
  7237. />
  7238. <div style="margin: 5px 0">公式编辑</div>
  7239. </div>
  7240. <div class="check" @click="addTools2(66)">
  7241. <img
  7242. src="../assets/icon/checkNo.png"
  7243. alt
  7244. v-if="checktoolArray.indexOf(66) == -1"
  7245. />
  7246. <div class="checkDiv" v-else>
  7247. <img src="../assets/icon/checkedIs.png" alt /><span
  7248. >已选择</span
  7249. >
  7250. </div>
  7251. </div>
  7252. </div>
  7253. <div class="tool">
  7254. <div class="whiteBIcon" @click="addTools2(67)">
  7255. <img
  7256. src="../assets/icon/secondToolList/molStr.png"
  7257. alt
  7258. />
  7259. <div style="margin: 5px 0">分子结构</div>
  7260. </div>
  7261. <div class="check" @click="addTools2(67)">
  7262. <img
  7263. src="../assets/icon/checkNo.png"
  7264. alt
  7265. v-if="checktoolArray.indexOf(67) == -1"
  7266. />
  7267. <div class="checkDiv" v-else>
  7268. <img src="../assets/icon/checkedIs.png" alt /><span
  7269. >已选择</span
  7270. >
  7271. </div>
  7272. </div>
  7273. </div>
  7274. <div class="tool">
  7275. <div class="whiteBIcon" @click="addTools2(68)">
  7276. <img
  7277. src="../assets/icon/secondToolList/timeAxis.png"
  7278. alt
  7279. />
  7280. <div style="margin: 5px 0">时间轴</div>
  7281. </div>
  7282. <div class="check" @click="addTools2(68)">
  7283. <img
  7284. src="../assets/icon/checkNo.png"
  7285. alt
  7286. v-if="checktoolArray.indexOf(68) == -1"
  7287. />
  7288. <div class="checkDiv" v-else>
  7289. <img src="../assets/icon/checkedIs.png" alt /><span
  7290. >已选择</span
  7291. >
  7292. </div>
  7293. </div>
  7294. </div>
  7295. </div>
  7296. <div class="toolSort" v-if="toolType == 7">
  7297. <div class="tool">
  7298. <div class="whiteBIcon" @click="addTools2(40)">
  7299. <img
  7300. src="../assets/icon/secondToolList/eval.png"
  7301. alt
  7302. />
  7303. <div style="margin: 5px 0">个人评价</div>
  7304. </div>
  7305. <div class="check" @click="addTools2(40)">
  7306. <img
  7307. src="../assets/icon/checkNo.png"
  7308. alt
  7309. v-if="checktoolArray.indexOf(40) == -1"
  7310. />
  7311. <div class="checkDiv" v-else>
  7312. <img src="../assets/icon/checkedIs.png" alt /><span
  7313. >已选择</span
  7314. >
  7315. </div>
  7316. </div>
  7317. </div>
  7318. </div>
  7319. <div class="toolSort" v-if="toolType == 4">
  7320. <div class="tool">
  7321. <div class="whiteBIcon" @click="addTools2(26)">
  7322. <img
  7323. src="../assets/icon/thirdToolList/courseDesign.png"
  7324. alt
  7325. />
  7326. <div style="margin: 5px 0">课程设计</div>
  7327. </div>
  7328. <div class="check" @click="addTools2(26)">
  7329. <img
  7330. src="../assets/icon/checkNo.png"
  7331. alt
  7332. v-if="checktoolArray.indexOf(26) == -1"
  7333. />
  7334. <div class="checkDiv" v-else>
  7335. <img src="../assets/icon/checkedIs.png" alt /><span
  7336. >已选择</span
  7337. >
  7338. </div>
  7339. </div>
  7340. </div>
  7341. <div class="tool">
  7342. <div class="whiteBIcon" @click="addTools2(25)">
  7343. <img
  7344. src="../assets/icon/thirdToolList/evalua.png"
  7345. alt
  7346. />
  7347. <div style="margin: 5px 0">目标管理</div>
  7348. </div>
  7349. <div class="check" @click="addTools2(25)">
  7350. <img
  7351. src="../assets/icon/checkNo.png"
  7352. alt
  7353. v-if="checktoolArray.indexOf(25) == -1"
  7354. />
  7355. <div class="checkDiv" v-else>
  7356. <img src="../assets/icon/checkedIs.png" alt /><span
  7357. >已选择</span
  7358. >
  7359. </div>
  7360. </div>
  7361. </div>
  7362. </div>
  7363. </div>
  7364. </div>
  7365. </div>
  7366. </div> -->
  7367. <div
  7368. class="vedioBox"
  7369. style="margin-top: 10px; border-radius: 20px"
  7370. v-if="
  7371. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7372. .eList &&
  7373. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7374. .eList.length &&
  7375. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7376. .eList.length > 0 &&
  7377. tType != 2
  7378. "
  7379. >
  7380. <div
  7381. class="queTop"
  7382. style="
  7383. font-size: 20px;
  7384. padding: 15px 0 15px 37px;
  7385. font-weight: bold;
  7386. "
  7387. >
  7388. <!-- <div class="question" style="width: 30px">
  7389. <img src="../assets/icon/toolIcon.png" alt />
  7390. </div>
  7391. <div class="queTitle">
  7392. <div>工具</div>
  7393. </div>-->
  7394. 评一评
  7395. </div>
  7396. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7397. <div class="elist_input">
  7398. <el-table
  7399. :data="
  7400. chapInfoList[courseType].chapterInfo[0].taskJson[
  7401. taskCount
  7402. ].eList
  7403. "
  7404. :header-cell-style="{ background: '#F0F4FA' }"
  7405. :row-class-name="tableRowClassName"
  7406. border
  7407. stripe
  7408. style="width: 100%"
  7409. >
  7410. <el-table-column
  7411. label="评价名称"
  7412. width="180"
  7413. align="center"
  7414. >
  7415. <template slot-scope="scope"
  7416. ><div>{{ scope.row.value }}</div></template
  7417. >
  7418. </el-table-column>
  7419. <el-table-column
  7420. label="评价描述"
  7421. width="180"
  7422. align="center"
  7423. >
  7424. <template slot-scope="scope"
  7425. ><div>
  7426. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7427. </div></template
  7428. >
  7429. </el-table-column>
  7430. <el-table-column label="目标" align="center">
  7431. <template slot-scope="scope"
  7432. ><div>
  7433. {{
  7434. scope.row.target
  7435. ? scope.row.target[scope.row.target.length - 1]
  7436. : "-"
  7437. }}
  7438. </div></template
  7439. ></el-table-column
  7440. >
  7441. </el-table>
  7442. <!-- <div
  7443. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7444. .chapterInfo[0].taskJson[taskCount].eList"
  7445. :key="eIndex"
  7446. class="elist_input_box"
  7447. >
  7448. <div style="width: 95%">
  7449. <div
  7450. style="
  7451. display: flex;
  7452. flex-direction: row;
  7453. flex-wrap: nowrap;
  7454. align-items: center;
  7455. "
  7456. >
  7457. <div style="max-width: calc(100% - 285px)">
  7458. <span>{{ eItem.value }}</span>
  7459. </div>
  7460. <div
  7461. style="
  7462. padding-left: 25px;
  7463. display: flex;
  7464. flex-direction: row;
  7465. align-items: center;
  7466. "
  7467. >
  7468. <el-rate
  7469. v-model="eItem.score"
  7470. :colors="colors"
  7471. disabled
  7472. ></el-rate>
  7473. </div>
  7474. </div>
  7475. <div class="elist_inptu_text" style="padding-left: 10px">
  7476. <span v-if="eItem.detail != ''">{{
  7477. eItem.detail
  7478. }}</span>
  7479. <span v-else style="color: #b2b1b3; font-size: 14px"
  7480. >暂无描述...</span
  7481. >
  7482. </div>
  7483. </div>
  7484. </div> -->
  7485. </div>
  7486. <div
  7487. v-if="evalua"
  7488. style="
  7489. border: 1px solid #e5e5e5;
  7490. max-width: 650px;
  7491. width: 100%;
  7492. margin-top: 20px;
  7493. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7494. "
  7495. >
  7496. <div class="e_add_top">
  7497. <div class="e_add_title">
  7498. <span>目标管理名称</span>
  7499. <span>{{ eTitle }}</span>
  7500. <img
  7501. src="../assets/line.png"
  7502. class="cru_line"
  7503. style="
  7504. width: 125px;
  7505. height: 20px;
  7506. bottom: -10px;
  7507. left: 120px;
  7508. "
  7509. />
  7510. <!-- <el-input
  7511. v-model="eTitle"
  7512. placeholder="请输入名称"
  7513. @change="setMindData"
  7514. ></el-input>-->
  7515. </div>
  7516. </div>
  7517. <div class="e_add_content">
  7518. <div class="e_add_list_pbox">
  7519. <div class="e_add_list_pbox_title">
  7520. <span class="type_title">切换模式</span>
  7521. <div class="type_content">
  7522. <span
  7523. :class="{ active: typeMode == 1 }"
  7524. @click="typeMode = 1"
  7525. >目标树</span
  7526. >
  7527. <span
  7528. :class="{ active: typeMode == 2 }"
  7529. @click="typeMode = 2"
  7530. >目标罗盘</span
  7531. >
  7532. <!-- <span
  7533. :class="{ active: typeMode == 3 }"
  7534. @click="typeMode = 3"
  7535. >目标看板</span
  7536. > -->
  7537. </div>
  7538. </div>
  7539. <div class="e_add_list_pbox_content">
  7540. <Mind
  7541. :showBar="false"
  7542. :mindData="data"
  7543. style="width: 100%"
  7544. v-show="typeMode == 1"
  7545. ></Mind>
  7546. <Sunburst
  7547. :Josn="eJson"
  7548. :num="eJSONNum"
  7549. style="width: 100%"
  7550. v-if="typeMode == 2"
  7551. ></Sunburst>
  7552. <SeeBoard
  7553. :Josn="eJson"
  7554. :num="eJSONNum"
  7555. :ename="eTitle"
  7556. style="width: 100%"
  7557. v-if="typeMode == 3"
  7558. >
  7559. </SeeBoard>
  7560. </div>
  7561. </div>
  7562. </div>
  7563. </div>
  7564. </div>
  7565. </div>
  7566. <!-- <div
  7567. class="project_box"
  7568. style="margin-top: 15px; padding-bottom: 30px"
  7569. >
  7570. <div
  7571. style="
  7572. display: flex;
  7573. flex-wrap: nowrap;
  7574. flex-direction: column;
  7575. position: relative;
  7576. "
  7577. >
  7578. <div class="queTop">
  7579. <div class="question">
  7580. <img src="../assets/icon/homeWork.png" alt="" />
  7581. </div>
  7582. <div class="queTitle">
  7583. <div>作业提交<span>(提交图文视频等)</span></div>
  7584. <div>:任务:{{ task.task }}</div>
  7585. </div>
  7586. </div>
  7587. <div class="ediBottom">
  7588. <div
  7589. class="addEditor"
  7590. style="margin-top: 23px"
  7591. @click="openAddWork"
  7592. v-if="!isNoHomeWork"
  7593. >
  7594. 选择文件
  7595. </div>
  7596. <div
  7597. class="addEditor"
  7598. style="margin-top: 23px"
  7599. @click="openAddWork"
  7600. v-else
  7601. >
  7602. 已提交
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>-->
  7607. </div>
  7608. </div>
  7609. <el-dialog
  7610. title="作业提交"
  7611. :visible.sync="dialogVisible"
  7612. :append-to-body="true"
  7613. width="500px"
  7614. :before-close="handleClose"
  7615. class="dialog_change"
  7616. >
  7617. <div class="marginT">
  7618. <div>上传文件</div>
  7619. <div
  7620. class="chapter_add"
  7621. @click="addImg($event)"
  7622. v-if="studyJuri[0].cover.length == 0"
  7623. >
  7624. <div class="up_photo">
  7625. <img src="../assets/icon/uploadImg.png" alt />
  7626. </div>
  7627. <!-- <input
  7628. type="file"
  7629. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7630. style="display: none"
  7631. @change="beforeUpload1($event, 1)"
  7632. /> -->
  7633. <input
  7634. type="file"
  7635. accept="*"
  7636. style="display: none"
  7637. @change="beforeUpload1($event, 1)"
  7638. />
  7639. <!-- <input
  7640. type="file"
  7641. accept="image/*"
  7642. capture="camera"
  7643. style="display: none"
  7644. @change="beforeUpload1($event, 1)"
  7645. /> -->
  7646. </div>
  7647. <div
  7648. class="chapter_add"
  7649. style="
  7650. display: flex;
  7651. width: 100%;
  7652. flex-direction: row;
  7653. flex-wrap: wrap;
  7654. justify-content: flex-start;
  7655. padding: 15px 0;
  7656. "
  7657. v-if="studyJuri[0].cover.length > 0"
  7658. >
  7659. <div class="upCover">
  7660. <img
  7661. :src="studyJuri[0].cover[0].url"
  7662. alt
  7663. v-if="fileType == 0"
  7664. />
  7665. <img :src="word" alt v-else-if="fileType == 1" />
  7666. <img :src="video" alt v-else-if="fileType == 2" />
  7667. <img :src="word2" alt v-else-if="fileType == 3" />
  7668. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7669. <div class="deleteWord" @click="clean(1)">
  7670. <img src="../assets/icon/deleteWorks.png" alt />
  7671. </div>
  7672. </div>
  7673. </div>
  7674. </div>
  7675. <div
  7676. class="upload_send"
  7677. @click="addCourseWorks(taskCount)"
  7678. v-if="!proVisible"
  7679. >
  7680. 提交
  7681. </div>
  7682. </el-dialog>
  7683. </div>
  7684. </div>
  7685. <div
  7686. class="pButton"
  7687. @click="(pzDialog = true), selectPz()"
  7688. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7689. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7690. >
  7691. <!-- 批 -->
  7692. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7693. </div>
  7694. <div v-if="pzDialog == true" class="newDialogCss">
  7695. <div class="pzTop2">
  7696. <!-- <div>批注</div>
  7697. <div @click="pzDialog = false">
  7698. <img src="../assets/close1.png" alt="" />
  7699. </div> -->
  7700. <div class="checkbox">
  7701. <div class="check" style="font-size: 25px; position: unset">
  7702. 评课笔记
  7703. </div>
  7704. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7705. <el-option label="时间降序" :value="1"></el-option>
  7706. <el-option label="时间升序" :value="2"></el-option>
  7707. <el-option label="我的评课" :value="3"></el-option>
  7708. </el-select>
  7709. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7710. </div>
  7711. </div>
  7712. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7713. <div class="pzListBox" v-if="pzList && pzList.length">
  7714. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7715. <div class="pzNavTop">
  7716. <div>批</div>
  7717. <div>
  7718. {{
  7719. pz.username && pz.username.length > 5
  7720. ? pz.username.substring(0, 5) + "..."
  7721. : pz.username
  7722. }}的批注
  7723. </div>
  7724. <div
  7725. class="pzDelete"
  7726. v-if="pz.userid == userid"
  7727. @click="deletePz(pz.id)"
  7728. >
  7729. 删除
  7730. </div>
  7731. </div>
  7732. <div
  7733. @click="checkImg(getImgList(pz.content))"
  7734. class="pzContent cont"
  7735. v-html="pz.content"
  7736. v-if="pz.type == '1'"
  7737. ></div>
  7738. <div class="pzContent" v-if="pz.type == '2'">
  7739. <audio :src="pz.content" controls="controls" ref="audio">
  7740. Your browser does not support the audio element.
  7741. </audio>
  7742. </div>
  7743. <div class="pzContent" v-if="pz.type == '3'">
  7744. <img
  7745. :src="pz.content"
  7746. style="width: 90%; margin: 0 auto; display: block"
  7747. @click="previewImg(pz.content)"
  7748. />
  7749. </div>
  7750. <div class="timeAndReply">
  7751. <div class="time">
  7752. {{ pz.time }}
  7753. </div>
  7754. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7755. </div>
  7756. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7757. <div
  7758. v-for="(h, hIndex) in pz.hfList"
  7759. :key="hIndex"
  7760. class="hfItem"
  7761. >
  7762. <div class="whoReplyWho">
  7763. <div class="hfName">{{ h.username }}</div>
  7764. <div class="hfImg">
  7765. <img src="../assets/icon/newIcons/right.png" alt="" />
  7766. </div>
  7767. <div class="hfName">{{ pz.username }}</div>
  7768. </div>
  7769. <div class="hfContent" v-html="h.content"></div>
  7770. <div class="hfBottom">
  7771. <div class="hfTime">{{ h.time }}</div>
  7772. <div
  7773. class="deleteHfItem"
  7774. @click="deleteReply(h.id)"
  7775. v-if="userid == h.userid"
  7776. >
  7777. <img src="../assets/icon/newIcons/delete.png" alt="" />
  7778. </div>
  7779. </div>
  7780. </div>
  7781. </div>
  7782. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7783. <div class="replyInput">
  7784. <el-input v-model="reply[pzIndex]"></el-input>
  7785. </div>
  7786. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7787. </div> -->
  7788. </div>
  7789. </div>
  7790. <div class="noPz" v-else>
  7791. <img src="../assets/icon/noPz.png" alt="" />
  7792. </div>
  7793. <div class="addPzButton">
  7794. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7795. 添加批注
  7796. </div>
  7797. <!-- <div class="img1">
  7798. <div @click="(addPzDialog = true), (pzType = 2)">
  7799. <img src="../assets/audio.png" /><span>音频</span>
  7800. </div>
  7801. </div> -->
  7802. </div>
  7803. </div>
  7804. </div>
  7805. <div
  7806. v-if="toolDialogVisible == true"
  7807. class="toolMask"
  7808. @click="toolDialogVisible = false"
  7809. ></div>
  7810. <div v-if="toolDialogVisible == true" class="addToolCss">
  7811. <div class="toolTop">
  7812. <div style="font-weight: bold">新增工具</div>
  7813. <div @click="toolDialogVisible = false">
  7814. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  7815. </div>
  7816. </div>
  7817. <div class="tool_box">
  7818. <div class="tool_type_box">
  7819. <div class="chooseWho">
  7820. <div
  7821. :class="toolType == 0 ? 'isChooseActive' : ''"
  7822. @click="(toolType = 0), $forceUpdate()"
  7823. >
  7824. 互动类
  7825. </div>
  7826. <div
  7827. :class="toolType == 1 ? 'isChooseActive' : ''"
  7828. @click="(toolType = 1), $forceUpdate()"
  7829. >
  7830. 思维类
  7831. </div>
  7832. <div
  7833. :class="toolType == 2 ? 'isChooseActive' : ''"
  7834. @click="(toolType = 2), $forceUpdate()"
  7835. >
  7836. 测评类
  7837. </div>
  7838. <div
  7839. :class="toolType == 3 ? 'isChooseActive' : ''"
  7840. @click="(toolType = 3), $forceUpdate()"
  7841. >
  7842. 编程类
  7843. </div>
  7844. <div
  7845. :class="toolType == 5 ? 'isChooseActive' : ''"
  7846. @click="(toolType = 5), $forceUpdate()"
  7847. >
  7848. 学科类
  7849. </div>
  7850. </div>
  7851. </div>
  7852. <div>
  7853. <div class="toolSort" v-if="toolType == 0">
  7854. <div
  7855. class="tool"
  7856. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7857. @click="addTools2(10)"
  7858. >
  7859. <div class="whiteBIcon">
  7860. <img src="../assets/icon/thirdToolList/time.png" alt />
  7861. <div style="margin: 5px 0">倒计时</div>
  7862. </div>
  7863. <div class="check">
  7864. <div
  7865. v-if="checktoolArray.indexOf(10) == -1"
  7866. class="noChoose"
  7867. ></div>
  7868. <div v-else class="isChoose"></div>
  7869. </div>
  7870. </div>
  7871. <div
  7872. class="tool"
  7873. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7874. @click="addTools2(65)"
  7875. >
  7876. <div class="whiteBIcon">
  7877. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  7878. <div style="margin: 5px 0">挑人</div>
  7879. </div>
  7880. <div class="check">
  7881. <div
  7882. v-if="checktoolArray.indexOf(65) == -1"
  7883. class="noChoose"
  7884. ></div>
  7885. <div v-else class="isChoose"></div>
  7886. </div>
  7887. </div>
  7888. </div>
  7889. <div class="toolSort" v-if="toolType == 1">
  7890. <div
  7891. class="tool"
  7892. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7893. @click="addTools2(7)"
  7894. >
  7895. <div class="whiteBIcon">
  7896. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  7897. <div style="margin: 5px 0">思维网格</div>
  7898. </div>
  7899. <div class="check">
  7900. <div
  7901. v-if="checktoolArray.indexOf(7) == -1"
  7902. class="noChoose"
  7903. ></div>
  7904. <div v-else class="isChoose"></div>
  7905. </div>
  7906. </div>
  7907. <div
  7908. class="tool"
  7909. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7910. @click="addTools2(1)"
  7911. >
  7912. <div class="whiteBIcon">
  7913. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  7914. <div style="margin: 5px 0">电子白板</div>
  7915. </div>
  7916. <div class="check">
  7917. <div
  7918. v-if="checktoolArray.indexOf(1) == -1"
  7919. class="noChoose"
  7920. ></div>
  7921. <div v-else class="isChoose"></div>
  7922. </div>
  7923. </div>
  7924. <div
  7925. class="tool"
  7926. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7927. @click="addTools2(52)"
  7928. >
  7929. <div class="whiteBIcon">
  7930. <img src="../assets/icon/fourthToolList/text.png" alt />
  7931. <div style="margin: 5px 0">文档</div>
  7932. </div>
  7933. <div class="check">
  7934. <div
  7935. v-if="checktoolArray.indexOf(52) == -1"
  7936. class="noChoose"
  7937. ></div>
  7938. <div v-else class="isChoose"></div>
  7939. </div>
  7940. </div>
  7941. <div
  7942. class="tool"
  7943. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7944. @click="addTools2(3)"
  7945. >
  7946. <div class="whiteBIcon">
  7947. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  7948. <div style="margin: 5px 0">思维导图</div>
  7949. </div>
  7950. <div class="check">
  7951. <div
  7952. v-if="checktoolArray.indexOf(3) == -1"
  7953. class="noChoose"
  7954. ></div>
  7955. <div v-else class="isChoose"></div>
  7956. </div>
  7957. </div>
  7958. <div
  7959. class="tool"
  7960. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7961. @click="addTools2(48)"
  7962. >
  7963. <div class="whiteBIcon">
  7964. <img src="../assets/icon/fourthToolList/table.png" alt />
  7965. <div style="margin: 5px 0">表格</div>
  7966. </div>
  7967. <div class="check">
  7968. <div
  7969. v-if="checktoolArray.indexOf(48) == -1"
  7970. class="noChoose"
  7971. ></div>
  7972. <div v-else class="isChoose"></div>
  7973. </div>
  7974. </div>
  7975. </div>
  7976. <div class="toolSort" v-if="toolType == 6">
  7977. <div v-show="tooC == 49">
  7978. <img
  7979. @click="addTools(tooC, toolIndex, taskCount)"
  7980. src="../assets/icon/fourthToolList/group.png"
  7981. alt
  7982. />
  7983. <div style="margin: 5px 0">学生分组</div>
  7984. </div>
  7985. </div>
  7986. <div class="toolSort" v-if="toolType == 2">
  7987. <div
  7988. class="tool"
  7989. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7990. @click="addTools2(16)"
  7991. >
  7992. <div class="whiteBIcon">
  7993. <img src="../assets/icon/thirdToolList/work.png" alt />
  7994. <div style="margin: 5px 0">作业提交</div>
  7995. </div>
  7996. <div class="check">
  7997. <div
  7998. v-if="checktoolArray.indexOf(16) == -1"
  7999. class="noChoose"
  8000. ></div>
  8001. <div v-else class="isChoose"></div>
  8002. </div>
  8003. </div>
  8004. <div
  8005. class="tool"
  8006. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8007. @click="addTools2(50)"
  8008. >
  8009. <div class="whiteBIcon">
  8010. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8011. <div style="margin: 5px 0">批量上传</div>
  8012. </div>
  8013. <div class="check">
  8014. <div
  8015. v-if="checktoolArray.indexOf(50) == -1"
  8016. class="noChoose"
  8017. ></div>
  8018. <div v-else class="isChoose"></div>
  8019. </div>
  8020. </div>
  8021. </div>
  8022. <div class="toolSort" v-if="toolType == 3">
  8023. <div
  8024. class="tool"
  8025. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8026. @click="addTools2(18)"
  8027. >
  8028. <div class="whiteBIcon">
  8029. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8030. <div style="margin: 5px 0">训练平台</div>
  8031. </div>
  8032. <div class="check">
  8033. <div
  8034. v-if="checktoolArray.indexOf(18) == -1"
  8035. class="noChoose"
  8036. ></div>
  8037. <div v-else class="isChoose"></div>
  8038. </div>
  8039. </div>
  8040. <div
  8041. class="tool"
  8042. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8043. @click="addTools2(21)"
  8044. >
  8045. <div class="whiteBIcon">
  8046. <img src="../assets/icon/fourthToolList/program.png" alt />
  8047. <div style="margin: 5px 0">AIoT Blockly</div>
  8048. </div>
  8049. <div class="check">
  8050. <div
  8051. v-if="checktoolArray.indexOf(21) == -1"
  8052. class="noChoose"
  8053. ></div>
  8054. <div v-else class="isChoose"></div>
  8055. </div>
  8056. </div>
  8057. <div
  8058. class="tool"
  8059. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8060. @click="addTools2(23)"
  8061. >
  8062. <div class="whiteBIcon">
  8063. <img
  8064. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8065. alt
  8066. />
  8067. <div style="margin: 5px 0">AI Python</div>
  8068. </div>
  8069. <div class="check">
  8070. <div
  8071. v-if="checktoolArray.indexOf(23) == -1"
  8072. class="noChoose"
  8073. ></div>
  8074. <div v-else class="isChoose"></div>
  8075. </div>
  8076. </div>
  8077. <div
  8078. class="tool"
  8079. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8080. @click="addTools2(24)"
  8081. >
  8082. <div class="whiteBIcon">
  8083. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8084. <div style="margin: 5px 0">AI Blockly</div>
  8085. </div>
  8086. <div class="check">
  8087. <div
  8088. v-if="checktoolArray.indexOf(24) == -1"
  8089. class="noChoose"
  8090. ></div>
  8091. <div v-else class="isChoose"></div>
  8092. </div>
  8093. </div>
  8094. <div
  8095. class="tool"
  8096. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8097. @click="addTools2(32)"
  8098. >
  8099. <div class="whiteBIcon">
  8100. <img src="../assets/icon/thirdToolList/code.png" alt />
  8101. <div style="margin: 5px 0">源码编辑</div>
  8102. </div>
  8103. <div class="check">
  8104. <div
  8105. v-if="checktoolArray.indexOf(32) == -1"
  8106. class="noChoose"
  8107. ></div>
  8108. <div v-else class="isChoose"></div>
  8109. </div>
  8110. </div>
  8111. <div
  8112. class="tool"
  8113. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8114. @click="addTools2(57)"
  8115. >
  8116. <div class="whiteBIcon">
  8117. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8118. <div style="margin: 5px 0">CocoPi</div>
  8119. </div>
  8120. <div class="check">
  8121. <div
  8122. v-if="checktoolArray.indexOf(57) == -1"
  8123. class="noChoose"
  8124. ></div>
  8125. <div v-else class="isChoose"></div>
  8126. </div>
  8127. </div>
  8128. <div
  8129. class="tool"
  8130. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8131. @click="addTools2(63)"
  8132. >
  8133. <div class="whiteBIcon">
  8134. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8135. <div style="margin: 5px 0">海龟编程</div>
  8136. </div>
  8137. <div class="check">
  8138. <div
  8139. v-if="checktoolArray.indexOf(63) == -1"
  8140. class="noChoose"
  8141. ></div>
  8142. <div v-else class="isChoose"></div>
  8143. </div>
  8144. </div>
  8145. </div>
  8146. <div class="toolSort" v-if="toolType == 7">
  8147. <div
  8148. class="tool"
  8149. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8150. @click="addTools2(40)"
  8151. >
  8152. <div class="whiteBIcon">
  8153. <img src="../assets/icon/secondToolList/eval.png" alt />
  8154. <div style="margin: 5px 0">个人评价</div>
  8155. </div>
  8156. <div class="check">
  8157. <div
  8158. v-if="checktoolArray.indexOf(40) == -1"
  8159. class="noChoose"
  8160. ></div>
  8161. <div v-else class="isChoose"></div>
  8162. </div>
  8163. </div>
  8164. </div>
  8165. <div class="toolSort" v-if="toolType == 5">
  8166. <div
  8167. class="tool"
  8168. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8169. @click="addTools2(28)"
  8170. >
  8171. <div class="whiteBIcon">
  8172. <img src="../assets/icon/secondToolList/translation.png" alt />
  8173. <div style="margin: 5px 0">翻译</div>
  8174. </div>
  8175. <div class="check">
  8176. <div
  8177. v-if="checktoolArray.indexOf(28) == -1"
  8178. class="noChoose"
  8179. ></div>
  8180. <div v-else class="isChoose"></div>
  8181. </div>
  8182. </div>
  8183. <div
  8184. class="tool"
  8185. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8186. @click="addTools2(31)"
  8187. >
  8188. <div class="whiteBIcon">
  8189. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8190. <div style="margin: 5px 0">数字画板</div>
  8191. </div>
  8192. <div class="check">
  8193. <div
  8194. v-if="checktoolArray.indexOf(31) == -1"
  8195. class="noChoose"
  8196. ></div>
  8197. <div v-else class="isChoose"></div>
  8198. </div>
  8199. </div>
  8200. <div
  8201. class="tool"
  8202. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8203. @click="addTools2(39)"
  8204. >
  8205. <div class="whiteBIcon">
  8206. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8207. <div style="margin: 5px 0">GeoGebra</div>
  8208. </div>
  8209. <div class="check">
  8210. <div
  8211. v-if="checktoolArray.indexOf(39) == -1"
  8212. class="noChoose"
  8213. ></div>
  8214. <div v-else class="isChoose"></div>
  8215. </div>
  8216. </div>
  8217. <div
  8218. class="tool"
  8219. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8220. @click="addTools2(66)"
  8221. >
  8222. <div class="whiteBIcon">
  8223. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8224. <div style="margin: 5px 0">公式编辑</div>
  8225. </div>
  8226. <div class="check">
  8227. <div
  8228. v-if="checktoolArray.indexOf(66) == -1"
  8229. class="noChoose"
  8230. ></div>
  8231. <div v-else class="isChoose"></div>
  8232. </div>
  8233. </div>
  8234. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8235. <div class="whiteBIcon" @click="addTools2(67)">
  8236. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8237. <div style="margin: 5px 0">分子结构</div>
  8238. </div>
  8239. <div class="check" @click="addTools2(67)">
  8240. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8241. <div v-else class="isChoose"></div>
  8242. </div>
  8243. </div> -->
  8244. <div
  8245. class="tool"
  8246. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8247. @click="addTools2(68)"
  8248. >
  8249. <div class="whiteBIcon">
  8250. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8251. <div style="margin: 5px 0">时间轴</div>
  8252. </div>
  8253. <div class="check">
  8254. <div
  8255. v-if="checktoolArray.indexOf(68) == -1"
  8256. class="noChoose"
  8257. ></div>
  8258. <div v-else class="isChoose"></div>
  8259. </div>
  8260. </div>
  8261. <!-- <div
  8262. class="tool"
  8263. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8264. @click="addTools2(69)"
  8265. >
  8266. <div class="whiteBIcon">
  8267. <img src="../assets/icon/secondToolList/english.png" alt />
  8268. <div style="margin: 5px 0">英语写作</div>
  8269. </div>
  8270. <div class="check">
  8271. <div
  8272. v-if="checktoolArray.indexOf(69) == -1"
  8273. class="noChoose"
  8274. ></div>
  8275. <div v-else class="isChoose"></div>
  8276. </div>
  8277. </div> -->
  8278. </div>
  8279. <div class="toolSort" v-if="toolType == 4">
  8280. <div
  8281. class="tool"
  8282. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8283. @click="addTools2(26)"
  8284. >
  8285. <div class="whiteBIcon">
  8286. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8287. <div style="margin: 5px 0">课程设计</div>
  8288. </div>
  8289. <div class="check">
  8290. <div
  8291. v-if="checktoolArray.indexOf(26) == -1"
  8292. class="noChoose"
  8293. ></div>
  8294. <div v-else class="isChoose"></div>
  8295. </div>
  8296. </div>
  8297. <div
  8298. class="tool"
  8299. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8300. @click="addTools2(25)"
  8301. >
  8302. <div class="whiteBIcon">
  8303. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8304. <div style="margin: 5px 0">目标管理</div>
  8305. </div>
  8306. <div class="check">
  8307. <div
  8308. v-if="checktoolArray.indexOf(25) == -1"
  8309. class="noChoose"
  8310. ></div>
  8311. <div v-else class="isChoose"></div>
  8312. </div>
  8313. </div>
  8314. </div>
  8315. </div>
  8316. </div>
  8317. <span
  8318. slot="footer"
  8319. class="dialog-footer"
  8320. style="display: block; text-align: center; padding: 0 0 10px 0"
  8321. >
  8322. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8323. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8324. </span>
  8325. </div>
  8326. <div
  8327. v-if="replyDialogVisible == true"
  8328. class="addDialogCss"
  8329. v-el-drag-dialog
  8330. >
  8331. <div class="pzTop">
  8332. <div class="teacherPz">
  8333. <div class="teacherPzImg">
  8334. <img src="../assets/icon/teacherPz.png" alt="" />
  8335. </div>
  8336. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8337. </div>
  8338. <div @click="replyDialogVisible = false">
  8339. <img src="../assets/close1.png" class="pzClose" alt="" />
  8340. </div>
  8341. </div>
  8342. <div class="addPzBox">
  8343. <!-- <div class="addPzCheck">
  8344. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8345. >文本</span
  8346. >
  8347. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8348. >音频</span
  8349. >
  8350. </div> -->
  8351. <div style="height: calc(100% - 50px)">
  8352. <editor-bar
  8353. class="binfo_input pzConText"
  8354. style="width: 100% !important; margin: 0 auto"
  8355. placeholder="请输入回复描述"
  8356. v-model="reply"
  8357. @change="change"
  8358. ></editor-bar>
  8359. </div>
  8360. <div class="addTextCss" @click="addHf">确定</div>
  8361. </div>
  8362. </div>
  8363. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8364. <div class="pzTop">
  8365. <div class="teacherPz">
  8366. <div class="teacherPzImg">
  8367. <img src="../assets/icon/teacherPz.png" alt="" />
  8368. </div>
  8369. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8370. </div>
  8371. <div @click="addPzDialog = false">
  8372. <img src="../assets/close1.png" class="pzClose" alt="" />
  8373. </div>
  8374. </div>
  8375. <div class="addPzBox">
  8376. <div class="addPzCheck">
  8377. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8378. >文本</span
  8379. >
  8380. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8381. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8382. >音频</span
  8383. >
  8384. </div>
  8385. <div style="height: calc(100% - 95px)">
  8386. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8387. v-if="pzType == 1"></textarea> -->
  8388. <editor-bar
  8389. class="binfo_input pzConText"
  8390. style="width: 100% !important"
  8391. placeholder="请输入任务描述"
  8392. v-model="pzConText"
  8393. @change="change"
  8394. v-if="pzType == 1"
  8395. ></editor-bar>
  8396. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8397. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8398. <div @click="addImg($event)">
  8399. <el-button type="primary">上传图片</el-button>
  8400. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8401. @change="beforeUpload1($event, 4)" />
  8402. </div>
  8403. </div> -->
  8404. </div>
  8405. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8406. 确定
  8407. </div>
  8408. </div>
  8409. </div>
  8410. <div v-if="proVisible" class="mask">
  8411. <div class="progressBox">
  8412. <!-- <div id="closePro" class="closeCss">
  8413. <img src="../assets/icon/close.png" alt />
  8414. </div> -->
  8415. <div class="lbox">
  8416. <img src="../assets/loading.gif" />上传中,请稍后
  8417. </div>
  8418. <div style="margin-bottom: 10px">
  8419. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8420. </div>
  8421. <el-progress
  8422. :text-inside="true"
  8423. :stroke-width="20"
  8424. :percentage="progress"
  8425. style="width: 80%"
  8426. ></el-progress>
  8427. </div>
  8428. </div>
  8429. <div v-if="proVisible2" class="mask">
  8430. <div class="progressBox">
  8431. <div class="lbox">
  8432. <img src="../assets/loading.gif" />上传中,请稍后
  8433. </div>
  8434. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8435. </div>
  8436. </div>
  8437. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8438. <img width="100%" :src="dialogImageUrl" alt />
  8439. </el-dialog>
  8440. <el-dialog
  8441. :title="noteName != '' ? noteName : '查看问卷'"
  8442. :visible.sync="dialogVisible5"
  8443. :append-to-body="true"
  8444. width="1000px"
  8445. :before-close="handleClose"
  8446. class="dialog_diy dialog_diy3"
  8447. >
  8448. <div>
  8449. <div
  8450. class="a_add_title"
  8451. style="
  8452. display: flex;
  8453. flex-direction: row;
  8454. align-items: center;
  8455. justify-content: center;
  8456. "
  8457. >
  8458. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8459. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8460. </div>
  8461. <div class="a_addBox">
  8462. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8463. 题目内容
  8464. </div>
  8465. <div
  8466. class="a_add_box"
  8467. v-for="(item1, index1) in askJson.askCount"
  8468. :key="index1"
  8469. >
  8470. <div class="a_add_head">
  8471. <div style="display: flex">
  8472. <span class="askIndex"> {{ index1 + 1 }}</span>
  8473. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8474. </div>
  8475. <img
  8476. v-if="askJson.askJson[index1].img"
  8477. :src="askJson.askJson[index1].img"
  8478. style="height: 300px; margin-top: 10px; max-width: 100%"
  8479. />
  8480. </div>
  8481. <div class="a_add_body">
  8482. <div class="a_add_input">
  8483. <el-radio-group
  8484. v-model="radio[index1]"
  8485. v-if="
  8486. askJson.askJson[index1].type == '1' ||
  8487. !askJson.askJson[index1].type
  8488. "
  8489. >
  8490. <el-radio
  8491. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8492. .checkList"
  8493. :key="checkIndex"
  8494. :label="checkIndex"
  8495. :disabled="isAnswer"
  8496. class="redioStyle"
  8497. ><span v-html="item2"></span
  8498. ></el-radio>
  8499. </el-radio-group>
  8500. <el-checkbox-group
  8501. v-model="radio[index1]"
  8502. v-if="askJson.askJson[index1].type == '2'"
  8503. >
  8504. <el-checkbox
  8505. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8506. .checkList"
  8507. :key="checkIndex1"
  8508. :label="checkIndex1"
  8509. :disabled="isAnswer"
  8510. class="redioStyle"
  8511. ><span v-html="item2"></span>
  8512. </el-checkbox>
  8513. </el-checkbox-group>
  8514. </div>
  8515. </div>
  8516. </div>
  8517. </div>
  8518. </div>
  8519. <span slot="footer" class="dialog-footer">
  8520. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8521. >取 消</el-button
  8522. >
  8523. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8524. >确 定</el-button
  8525. >
  8526. </span>
  8527. </el-dialog>
  8528. <el-dialog
  8529. :title="noteName != '' ? noteName : '查看问卷'"
  8530. :visible.sync="dialogVisible5Teacher"
  8531. :append-to-body="true"
  8532. width="1000px"
  8533. :before-close="handleClose"
  8534. class="dialog_diy dialog_diy3"
  8535. >
  8536. <div>
  8537. <div class="w_name">
  8538. 学生姓名:<span>{{ sStudent.student }}</span>
  8539. </div>
  8540. <div
  8541. class="a_add_title"
  8542. style="
  8543. display: flex;
  8544. flex-direction: row;
  8545. align-items: center;
  8546. justify-content: center;
  8547. "
  8548. >
  8549. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8550. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8551. </div>
  8552. <div class="a_addBox">
  8553. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8554. 题目内容
  8555. </div>
  8556. <div
  8557. class="a_add_box"
  8558. v-for="(item1, index1) in askJson.askCount"
  8559. :key="index1"
  8560. >
  8561. <div class="a_add_head">
  8562. <div style="display: flex">
  8563. <span class="askIndex">{{ index1 + 1 }}</span>
  8564. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8565. </div>
  8566. <img
  8567. v-if="askJson.askJson[index1].img"
  8568. :src="askJson.askJson[index1].img"
  8569. style="height: 300px; margin-top: 10px; max-width: 100%"
  8570. />
  8571. </div>
  8572. <div class="a_add_body">
  8573. <div class="a_add_input">
  8574. <el-radio-group
  8575. v-model="radio[index1]"
  8576. v-if="
  8577. askJson.askJson[index1].type == '1' ||
  8578. !askJson.askJson[index1].type
  8579. "
  8580. >
  8581. <el-radio
  8582. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8583. .checkList"
  8584. :key="checkIndex"
  8585. :label="checkIndex"
  8586. :disabled="isAnswer"
  8587. class="redioStyle"
  8588. ><span v-html="item2"></span
  8589. ></el-radio>
  8590. </el-radio-group>
  8591. <el-checkbox-group
  8592. v-model="radio[index1]"
  8593. v-if="askJson.askJson[index1].type == '2'"
  8594. >
  8595. <el-checkbox
  8596. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8597. .checkList"
  8598. :key="checkIndex1"
  8599. :label="checkIndex1"
  8600. :disabled="isAnswer"
  8601. class="redioStyle"
  8602. ><span v-html="item2"></span>
  8603. </el-checkbox>
  8604. </el-checkbox-group>
  8605. </div>
  8606. </div>
  8607. </div>
  8608. </div>
  8609. </div>
  8610. <span slot="footer" class="dialog-footer">
  8611. <el-button
  8612. @click="dialogVisible5Teacher = false"
  8613. v-show="noteName == ''"
  8614. >取 消</el-button
  8615. >
  8616. <el-button
  8617. type="primary"
  8618. @click="addStudentAskTeacher"
  8619. v-show="noteName == ''"
  8620. >确 定</el-button
  8621. >
  8622. </span>
  8623. </el-dialog>
  8624. <el-dialog
  8625. :title="noteName != '' ? noteName : '查看选择题'"
  8626. :visible.sync="dialogVisibleChoice"
  8627. :append-to-body="true"
  8628. width="1000px"
  8629. :before-close="handleClose"
  8630. class="dialog_diy dialog_diy3"
  8631. >
  8632. <div>
  8633. <!-- <div class="a_add_title" style="
  8634. display: flex;
  8635. flex-direction: row;
  8636. align-items: center;
  8637. justify-content: center;
  8638. ">
  8639. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8640. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8641. </div> -->
  8642. <div class="a_addBox">
  8643. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8644. 题目内容
  8645. </div>
  8646. <div
  8647. class="a_add_box"
  8648. v-for="(item1, index1) in testJson.testCount"
  8649. :key="index1"
  8650. >
  8651. <div class="a_add_head">
  8652. <div style="display: flex">
  8653. <span class="askIndex">{{ index1 + 1 }}</span>
  8654. <div
  8655. v-if="testJson.testJson[index1].type == '1'"
  8656. style="margin-right: 5px; min-width: 70px"
  8657. >
  8658. (单选题)
  8659. </div>
  8660. <div
  8661. v-if="testJson.testJson[index1].type == '2'"
  8662. style="margin-right: 5px; min-width: 70px"
  8663. >
  8664. (多选题)
  8665. </div>
  8666. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8667. </div>
  8668. <img
  8669. v-if="testJson.testJson[index1].img"
  8670. :src="testJson.testJson[index1].img"
  8671. style="height: 300px; margin-top: 10px; max-width: 100%"
  8672. />
  8673. </div>
  8674. <div
  8675. class="timuImgBox"
  8676. v-if="
  8677. testJson.testJson[index1].timuList &&
  8678. testJson.testJson[index1].timuList.length
  8679. "
  8680. >
  8681. <div
  8682. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8683. :key="tIndex"
  8684. class="timuImg"
  8685. @click.stop="previewImg(timg.src)"
  8686. >
  8687. <img :src="timg.src" alt="" />
  8688. </div>
  8689. </div>
  8690. <div class="a_add_body">
  8691. <div class="a_add_input">
  8692. <el-radio-group
  8693. v-model="radio[index1]"
  8694. v-if="testJson.testJson[index1].type == '1'"
  8695. >
  8696. <div class="radioBox">
  8697. <el-radio
  8698. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8699. .checkList"
  8700. :key="checkIndex"
  8701. :label="checkIndex"
  8702. :disabled="isAnswer"
  8703. class="redioStyle"
  8704. >
  8705. <div
  8706. style="margin-right: 10px"
  8707. v-if="item2 && item2.imgType && item2.imgType == 1"
  8708. >
  8709. <div class="inImg" @click.stop="previewImg(item2.src)">
  8710. <img :src="item2.src" alt="" />
  8711. </div>
  8712. </div>
  8713. <span v-else v-html="item2"></span>
  8714. </el-radio>
  8715. </div>
  8716. </el-radio-group>
  8717. <el-checkbox-group
  8718. v-model="radio[index1]"
  8719. v-if="testJson.testJson[index1].type == '2'"
  8720. >
  8721. <div class="radioBox">
  8722. <el-checkbox
  8723. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8724. .checkList"
  8725. :key="checkIndex"
  8726. :label="checkIndex"
  8727. :disabled="isAnswer"
  8728. class="redioStyle"
  8729. >
  8730. <div
  8731. style="margin-right: 10px"
  8732. v-if="item2 && item2.imgType && item2.imgType == 1"
  8733. >
  8734. <div class="inImg" @click.stop="previewImg(item2.src)">
  8735. <img :src="item2.src" alt="" />
  8736. </div>
  8737. </div>
  8738. <span v-else v-html="item2"></span>
  8739. </el-checkbox>
  8740. </div>
  8741. </el-checkbox-group>
  8742. </div>
  8743. </div>
  8744. </div>
  8745. </div>
  8746. </div>
  8747. <span slot="footer" class="dialog-footer">
  8748. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8749. >取 消</el-button
  8750. >
  8751. <el-button
  8752. type="primary"
  8753. @click="addStudentTest"
  8754. v-show="noteName == ''"
  8755. >确 定</el-button
  8756. >
  8757. </span>
  8758. </el-dialog>
  8759. <el-dialog
  8760. :title="noteName != '' ? noteName : '查看选择题'"
  8761. :visible.sync="dialogVisibleChoiceTeacher"
  8762. :append-to-body="true"
  8763. width="1000px"
  8764. :before-close="handleClose"
  8765. class="dialog_diy dialog_diy3"
  8766. >
  8767. <div>
  8768. <div class="w_name">
  8769. 学生姓名:<span>{{ sStudent.student }}</span>
  8770. </div>
  8771. <div class="a_addBox">
  8772. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8773. 题目内容
  8774. </div>
  8775. <div
  8776. class="a_add_box"
  8777. v-for="(item1, index1) in testJson.testCount"
  8778. :key="index1"
  8779. >
  8780. <div class="a_add_head">
  8781. <div style="display: flex">
  8782. <span class="askIndex">{{ index1 + 1 }}</span>
  8783. <div
  8784. v-if="testJson.testJson[index1].type == '1'"
  8785. style="margin-right: 5px; min-width: 70px"
  8786. >
  8787. (单选题)
  8788. </div>
  8789. <div
  8790. v-if="testJson.testJson[index1].type == '2'"
  8791. style="margin-right: 5px; min-width: 70px"
  8792. >
  8793. (多选题)
  8794. </div>
  8795. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8796. </div>
  8797. <img
  8798. v-if="testJson.testJson[index1].img"
  8799. :src="testJson.testJson[index1].img"
  8800. style="height: 300px; margin-top: 10px; max-width: 100%"
  8801. />
  8802. </div>
  8803. <div
  8804. class="timuImgBox"
  8805. v-if="
  8806. testJson.testJson[index1].timuList &&
  8807. testJson.testJson[index1].timuList.length
  8808. "
  8809. >
  8810. <div
  8811. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8812. :key="tIndex"
  8813. class="timuImg"
  8814. @click.stop="previewImg(timg.src)"
  8815. >
  8816. <img :src="timg.src" alt="" />
  8817. </div>
  8818. </div>
  8819. <div class="a_add_body">
  8820. <div class="a_add_input">
  8821. <el-radio-group
  8822. v-model="radio[index1]"
  8823. v-if="testJson.testJson[index1].type == '1'"
  8824. >
  8825. <div class="radioBox">
  8826. <el-radio
  8827. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8828. .checkList"
  8829. :key="checkIndex"
  8830. :label="checkIndex"
  8831. :disabled="isAnswer"
  8832. class="redioStyle"
  8833. >
  8834. <div
  8835. style="margin-right: 10px"
  8836. v-if="item2 && item2.imgType && item2.imgType == 1"
  8837. >
  8838. <div class="inImg" @click.stop="previewImg(item2.src)">
  8839. <img :src="item2.src" alt="" />
  8840. </div>
  8841. </div>
  8842. <span v-else v-html="item2"></span>
  8843. </el-radio>
  8844. </div>
  8845. </el-radio-group>
  8846. <el-checkbox-group
  8847. v-model="radio[index1]"
  8848. v-if="testJson.testJson[index1].type == '2'"
  8849. >
  8850. <div class="radioBox">
  8851. <el-checkbox
  8852. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8853. .checkList"
  8854. :key="checkIndex"
  8855. :label="checkIndex"
  8856. :disabled="isAnswer"
  8857. class="redioStyle"
  8858. >
  8859. <div
  8860. style="margin-right: 10px"
  8861. v-if="item2 && item2.imgType && item2.imgType == 1"
  8862. >
  8863. <div class="inImg" @click.stop="previewImg(item2.src)">
  8864. <img :src="item2.src" alt="" />
  8865. </div>
  8866. </div>
  8867. <span v-else v-html="item2"></span>
  8868. </el-checkbox>
  8869. </div>
  8870. </el-checkbox-group>
  8871. </div>
  8872. </div>
  8873. </div>
  8874. </div>
  8875. </div>
  8876. <span slot="footer" class="dialog-footer">
  8877. <el-button
  8878. @click="dialogVisibleChoiceTeacher = false"
  8879. v-show="noteName == ''"
  8880. >取 消</el-button
  8881. >
  8882. <el-button
  8883. type="primary"
  8884. @click="addStudentTestTeacher"
  8885. v-show="noteName == ''"
  8886. >确 定</el-button
  8887. >
  8888. </span>
  8889. </el-dialog>
  8890. <el-dialog
  8891. title="查看富文本"
  8892. :visible.sync="dialogVisible1"
  8893. :append-to-body="true"
  8894. width="500px"
  8895. :before-close="handleClose"
  8896. class="dialog_diy textCss"
  8897. >
  8898. <el-form style="font-size: 20px">
  8899. <el-form-item label="文本标题" class="textTitle">
  8900. <div style="font-size: 20px">{{ text.name }}</div>
  8901. </el-form-item>
  8902. <div>富文本内容</div>
  8903. <div
  8904. v-html="text.url"
  8905. style="font-size: 18px; padding: 40px 0 0 0"
  8906. ></div>
  8907. </el-form>
  8908. <span slot="footer" class="dialog-footer">
  8909. <el-button type="primary" @click="dialogVisible1 = false"
  8910. >确定</el-button
  8911. >
  8912. </span>
  8913. </el-dialog>
  8914. <el-dialog
  8915. title="文件预览"
  8916. :visible.sync="dialogVisible3"
  8917. width="50%"
  8918. :before-close="handleClose"
  8919. class="dialog_diy"
  8920. :class="{ fullStyle: full }"
  8921. >
  8922. <div slot="title" class="header-title">
  8923. <div style="color: #fff">文件预览</div>
  8924. <div style="position: absolute; top: 19px; right: 50px">
  8925. <img
  8926. src="../assets/full.png"
  8927. style="height: 16px; cursor: pointer"
  8928. alt=""
  8929. @click="fullTools"
  8930. />
  8931. </div>
  8932. </div>
  8933. <pdf
  8934. v-if="showPDF"
  8935. :pdfUrl="pptImgUrl"
  8936. style="width: 100%; height: 520px; overflow: auto"
  8937. :class="{ fullStyle: full }"
  8938. ></pdf>
  8939. <iframe
  8940. v-else
  8941. :src="pptImgUrl"
  8942. frameborder="0"
  8943. width="100%"
  8944. height="600"
  8945. :class="{ fullStyle: full }"
  8946. ></iframe>
  8947. </el-dialog>
  8948. <el-dialog
  8949. title="文件预览"
  8950. :visible.sync="dialogVisible6"
  8951. width="50%"
  8952. :before-close="handleClose"
  8953. class="dialog_diy"
  8954. >
  8955. <iframe
  8956. :src="pptImgUrl1"
  8957. frameborder="0"
  8958. width="100%"
  8959. height="600"
  8960. ></iframe>
  8961. </el-dialog>
  8962. <el-dialog
  8963. title="提示"
  8964. :visible.sync="dialogVisible4"
  8965. :append-to-body="true"
  8966. width="800px"
  8967. :before-close="handleClose"
  8968. class="dialog_diy notice"
  8969. >
  8970. <div>此功能暂未开放!</div>
  8971. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8972. </el-dialog>
  8973. <el-dialog
  8974. title="问答"
  8975. :visible.sync="answerDialogVisible"
  8976. :append-to-body="true"
  8977. width="800px"
  8978. :before-close="handleClose"
  8979. class="dialog_diy"
  8980. >
  8981. <div>
  8982. <div
  8983. style="
  8984. display: flex;
  8985. flex-wrap: nowrap;
  8986. flex-direction: column;
  8987. position: relative;
  8988. "
  8989. >
  8990. <div class="queTop" style="padding: 20px 0 20px 0">
  8991. <div class="question">
  8992. <img src="../assets/icon/question.png" alt />
  8993. </div>
  8994. <div class="queTitle">
  8995. <div style="width: 90px; min-width: 90px">提问:</div>
  8996. <div>{{ answerQ }}</div>
  8997. </div>
  8998. </div>
  8999. <div class="ediBottom">
  9000. <textarea
  9001. rows="6"
  9002. class="binfo_input"
  9003. cols
  9004. style="width: 95%; height: 120px"
  9005. v-model="questionAnswer"
  9006. ></textarea>
  9007. </div>
  9008. </div>
  9009. </div>
  9010. <div slot="footer">
  9011. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9012. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9013. </div>
  9014. </el-dialog>
  9015. <el-dialog
  9016. title="问答"
  9017. :visible.sync="answerDialogVisibleTeacher"
  9018. :append-to-body="true"
  9019. width="800px"
  9020. :before-close="handleClose"
  9021. class="dialog_diy"
  9022. >
  9023. <div>
  9024. <div class="w_name">
  9025. 学生姓名:<span>{{ sStudent.student }}</span>
  9026. </div>
  9027. <div
  9028. style="
  9029. display: flex;
  9030. flex-wrap: nowrap;
  9031. flex-direction: column;
  9032. position: relative;
  9033. "
  9034. >
  9035. <div class="queTop" style="padding: 20px 0 20px 0">
  9036. <div class="question">
  9037. <img src="../assets/icon/question.png" alt />
  9038. </div>
  9039. <div class="queTitle">
  9040. <div style="width: 90px; min-width: 90px">提问:</div>
  9041. <div>{{ answerQ }}</div>
  9042. </div>
  9043. </div>
  9044. <div class="ediBottom">
  9045. <textarea
  9046. rows="6"
  9047. class="binfo_input"
  9048. cols
  9049. style="width: 95%; height: 120px"
  9050. v-model="questionAnswer"
  9051. ></textarea>
  9052. </div>
  9053. </div>
  9054. </div>
  9055. <div slot="footer">
  9056. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9057. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9058. </div>
  9059. </el-dialog>
  9060. <el-dialog
  9061. title="倒计时"
  9062. :visible.sync="timeDialogVisible"
  9063. :append-to-body="true"
  9064. width="800px"
  9065. :before-close="handleClose"
  9066. class="dialog_diy"
  9067. >
  9068. <div>
  9069. <div style="margin-bottom: 20px; color: #999">
  9070. 提示:点击“+”或“-”修改倒计时时长。
  9071. </div>
  9072. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9073. </div>
  9074. <div slot="footer">
  9075. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9076. </div>
  9077. </el-dialog>
  9078. <el-dialog
  9079. title="权限设置"
  9080. :visible.sync="juriVisible"
  9081. :append-to-body="true"
  9082. width="400px"
  9083. :before-close="handleClose"
  9084. class="dialog_diy"
  9085. >
  9086. <div>
  9087. <div class="open_box">
  9088. <div class="switch_box">
  9089. <span>允许学生查看所有作业</span>
  9090. <el-switch
  9091. v-model="sIsOpen"
  9092. active-text=""
  9093. class="switchCss"
  9094. @change="updateSLook"
  9095. ></el-switch>
  9096. </div>
  9097. <div
  9098. class="switch_box"
  9099. v-if="
  9100. courseDetail.userid == userid ||
  9101. (courseDetail.course_teacher &&
  9102. courseDetail.course_teacher.indexOf(userid) != -1)
  9103. "
  9104. >
  9105. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9106. <span>禁止学生查看所有阶段</span>
  9107. <el-switch
  9108. v-model="IsLookOpen"
  9109. active-text=""
  9110. class="switchCss"
  9111. @change="updateLookOpen"
  9112. ></el-switch>
  9113. </div>
  9114. <div class="switch_box" v-if="courseDetail.userid == userid">
  9115. <span>开启跟随模式</span>
  9116. <el-switch
  9117. v-model="IsFollow"
  9118. active-text=""
  9119. class="switchCss"
  9120. @change="updateFollow"
  9121. ></el-switch>
  9122. </div>
  9123. </div>
  9124. </div>
  9125. <div slot="footer">
  9126. <el-button
  9127. style="background: #409efe; color: #fff"
  9128. @click="juriVisible = false"
  9129. >关 闭</el-button
  9130. >
  9131. </div>
  9132. </el-dialog>
  9133. <el-dialog
  9134. title="查看视频"
  9135. :visible.sync="videoVisible"
  9136. :append-to-body="true"
  9137. width="1000px"
  9138. :before-close="handleClose"
  9139. class="dialog_diy1"
  9140. >
  9141. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9142. <video-player
  9143. class="video-player vjs-custom-skin"
  9144. :playsinline="true"
  9145. :options="videoDetail"
  9146. @play="onPlayerPlay($event)"
  9147. style="width: 100%; height: 100%"
  9148. ></video-player>
  9149. </div>
  9150. <div slot="footer">
  9151. <el-button
  9152. style="background: #409efe; color: #fff"
  9153. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9154. >
  9155. 关 闭</el-button
  9156. >
  9157. </div>
  9158. </el-dialog>
  9159. <el-dialog
  9160. title="查看详情"
  9161. :visible.sync="commentDialogVisible"
  9162. :append-to-body="true"
  9163. width="800px"
  9164. :before-close="handleClose"
  9165. class="dialog_diy"
  9166. >
  9167. <div class="commentTop">
  9168. <div class="studentDetail">
  9169. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9170. <div class="nameAndTime">
  9171. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9172. <div>{{ commentDetail.time }}</div>
  9173. </div>
  9174. <div
  9175. class="returnBtn"
  9176. style="margin-left: auto; width: 80px"
  9177. v-if="
  9178. commentDetail.works &&
  9179. commentDetail.type == 0 &&
  9180. (tType == 1 || tType == 4)
  9181. "
  9182. @click="
  9183. showPicturePaint(
  9184. commentDetail.img ? commentDetail.img : commentDetail.works
  9185. )
  9186. "
  9187. >
  9188. 教师批注
  9189. </div>
  9190. </div>
  9191. <div
  9192. class="worksAnswer"
  9193. v-if="commentDetail.works && commentDetail.type == 2"
  9194. >
  9195. {{ JSON.parse(commentDetail.works)[0].answer }}
  9196. </div>
  9197. <div
  9198. class="worksAnswer"
  9199. v-if="commentDetail.works && commentDetail.type == 1"
  9200. >
  9201. <img
  9202. src="../assets/teacherWork.png"
  9203. v-if="commentDetail.ateacher"
  9204. class="w_teachert"
  9205. />
  9206. <pdf
  9207. v-if="showPDF"
  9208. :pdfUrl="pptImgUrl"
  9209. style="width: 100%; height: 520px; overflow: auto"
  9210. :class="{ fullStyle: full }"
  9211. ></pdf>
  9212. <iframe
  9213. v-else
  9214. :src="pptImgUrl"
  9215. frameborder="0"
  9216. width="100%"
  9217. height="600"
  9218. :class="{ fullStyle: full }"
  9219. ></iframe>
  9220. </div>
  9221. <div
  9222. class="worksAnswer"
  9223. v-if="commentDetail.works && commentDetail.type == 0"
  9224. >
  9225. <img
  9226. src="../assets/teacherWork.png"
  9227. v-if="commentDetail.ateacher"
  9228. class="w_teachert"
  9229. style="right: 105px"
  9230. />
  9231. <img
  9232. :src="commentDetail.works"
  9233. alt=""
  9234. @click="previewImg(commentDetail.works)"
  9235. />
  9236. </div>
  9237. <div
  9238. class="worksAnswer"
  9239. v-if="commentDetail.works && commentDetail.type == 3"
  9240. >
  9241. <img
  9242. src="../assets/teacherWork.png"
  9243. v-if="commentDetail.ateacher"
  9244. class="w_teachert"
  9245. />
  9246. <video-player
  9247. class="video-player vjs-custom-skin"
  9248. :playsinline="true"
  9249. :options="videoDetail"
  9250. @play="onPlayerPlay($event)"
  9251. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9252. ></video-player>
  9253. </div>
  9254. <div
  9255. class="worksAnswer"
  9256. v-if="commentDetail.works && commentDetail.type == 10"
  9257. >
  9258. <div class="cont" v-html="commentDetail.works.text"></div>
  9259. </div>
  9260. <div
  9261. class="worksAnswer codeFileBox"
  9262. v-if="commentDetail.works && commentDetail.type == 12"
  9263. @click="downloadFile(commentDetail.works)"
  9264. >
  9265. <img src="../assets/icon/codeFile.png" />
  9266. <div>点击下载文件</div>
  9267. </div>
  9268. <div
  9269. class="worksAnswer codeFileBox"
  9270. v-if="commentDetail.works && commentDetail.type == 15"
  9271. @click="
  9272. openCocoPi(
  9273. 57,
  9274. commentIndexJson.toolIndex,
  9275. commentDetail.userid,
  9276. commentDetail.sName
  9277. )
  9278. "
  9279. >
  9280. <img src="../assets/icon/codeFile.png" />
  9281. <div>点击打开CocoPi</div>
  9282. </div>
  9283. <div
  9284. class="worksAnswer"
  9285. v-if="commentDetail.works && commentDetail.type == 13"
  9286. >
  9287. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9288. </div>
  9289. <div
  9290. class="worksAnswer"
  9291. v-if="commentDetail.works && commentDetail.type == 4"
  9292. >
  9293. <div class="evalCss">
  9294. <div class="nav">请选择星星进行评分</div>
  9295. <div class="middleBox" v-if="eScore.eStar">
  9296. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9297. <div class="nameAndrate">
  9298. <div>{{ e.value }}</div>
  9299. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9300. </div>
  9301. <div v-if="e.detail">{{ e.detail }}</div>
  9302. </div>
  9303. <div class="bz">
  9304. <textarea
  9305. disabled
  9306. rows="4"
  9307. class="pj"
  9308. style="
  9309. padding: 10px 5px;
  9310. width: 70%;
  9311. background: #f7f6f9;
  9312. font-size: 14px;
  9313. text-indent: 10px;
  9314. color: #000;
  9315. "
  9316. cols
  9317. v-model="eScore.eBzText"
  9318. placeholder="请输入评价内容..."
  9319. ></textarea>
  9320. </div>
  9321. </div>
  9322. </div>
  9323. </div>
  9324. <div class="comment">
  9325. <div class="commentList">
  9326. <div class="commentImg">
  9327. <img
  9328. @click="
  9329. isLikes(
  9330. commentDetail.wid,
  9331. userid,
  9332. 1,
  9333. null,
  9334. commentDetail.isLikes
  9335. )
  9336. "
  9337. :src="commentDetail.isLikes == true ? likes : noLikes"
  9338. alt=""
  9339. />
  9340. </div>
  9341. <div>{{ commentDetail.likesCount }}</div>
  9342. </div>
  9343. <div class="commentList">
  9344. <div class="commentImg">
  9345. <img src="../assets/icon/comment/comment.png" alt="" />
  9346. </div>
  9347. <div>{{ commentDetail.commentCount }}</div>
  9348. </div>
  9349. </div>
  9350. <div class="drawPBox" v-if="commentDetail.img">
  9351. <span>教师批注</span>
  9352. <img
  9353. :src="commentDetail.img"
  9354. alt=""
  9355. @click="previewImg(commentDetail.img)"
  9356. />
  9357. <span
  9358. class="deleteImg"
  9359. v-if="tType == 1 || tType == 4"
  9360. @click.stop="deletePicturePaint(commentDetail.wid)"
  9361. style="
  9362. font-size: 14px;
  9363. width: auto !important;
  9364. color: #b4b4b4;
  9365. top: unset;
  9366. bottom: 0;
  9367. border: none;
  9368. padding: 0;
  9369. height: auto !important;
  9370. margin: 0;
  9371. "
  9372. >删除</span
  9373. >
  9374. </div>
  9375. </div>
  9376. <div class="commentBox">
  9377. <div class="pl">评论:</div>
  9378. <div style="max-height: 200px; overflow: auto">
  9379. <div
  9380. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9381. style="padding: 10px 0 0 0"
  9382. >
  9383. <div
  9384. class="studentDetail"
  9385. style="padding-top: 10px"
  9386. v-for="(co, coIndex) in commentDetail.commentJson"
  9387. :key="coIndex"
  9388. >
  9389. <div class="tx" style="min-width: 50px">
  9390. <img src="../assets/avatar.png" alt="" />
  9391. </div>
  9392. <div class="plPerson">
  9393. <div class="plName">
  9394. <div>{{ co.commentPeople }}</div>
  9395. <div style="margin-left: 5px">
  9396. {{ co.commentTime }}
  9397. </div>
  9398. <div
  9399. class="deleteComment"
  9400. v-if="userid == co.userid"
  9401. @click="deleteComment(co.wid)"
  9402. >
  9403. 删除
  9404. </div>
  9405. </div>
  9406. <div class="plContent">{{ co.commentText }}</div>
  9407. </div>
  9408. </div>
  9409. </div>
  9410. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9411. </div>
  9412. </div>
  9413. <div style="margin-top: 10px">
  9414. <div class="displayBox">
  9415. <div
  9416. style="
  9417. color: #556db4;
  9418. font-size: 14px;
  9419. font-weight: bold;
  9420. padding-bottom: 10px;
  9421. "
  9422. >
  9423. 评价
  9424. </div>
  9425. <div class="easy_comment" v-if="false">
  9426. <div
  9427. v-for="(p, pIndex) in PlTextList"
  9428. :key="pIndex"
  9429. @click="fastText(p, 1)"
  9430. >
  9431. {{ p }}
  9432. </div>
  9433. </div>
  9434. </div>
  9435. <div>
  9436. <textarea
  9437. rows="3"
  9438. class="pj"
  9439. style="padding: 10px 5px"
  9440. cols
  9441. v-model="commentText"
  9442. placeholder="请输入评论"
  9443. ></textarea>
  9444. </div>
  9445. </div>
  9446. <div slot="footer">
  9447. <el-button
  9448. @click="
  9449. (commentDialogVisible = false),
  9450. (commentIndexJson = {}),
  9451. videoDetail.sources && videoDetail.sources[0]
  9452. ? (videoDetail.sources[0].src = '')
  9453. : ''
  9454. "
  9455. >取 消</el-button
  9456. >
  9457. <el-button
  9458. type="primary"
  9459. @click="addComment(commentDetail.wid, userid, 2)"
  9460. >确 定</el-button
  9461. >
  9462. </div>
  9463. </el-dialog>
  9464. <el-dialog
  9465. title="查看文档"
  9466. :visible.sync="fullDialogVisible"
  9467. :append-to-body="true"
  9468. width="100%"
  9469. :before-close="handleClose"
  9470. :show-close="false"
  9471. class="dialog_diy full_diy"
  9472. :class="{ full_diy2: fulltype == 3 }"
  9473. >
  9474. <div slot="title" class="header-title">
  9475. <div style="color: #fff">查看文档</div>
  9476. <div
  9477. @click="fullDialogVisible = false"
  9478. style="
  9479. cursor: pointer;
  9480. position: absolute;
  9481. top: 20px;
  9482. right: 20px;
  9483. color: #fff;
  9484. "
  9485. >
  9486. 退出全屏
  9487. </div>
  9488. </div>
  9489. <div style="height: 100%">
  9490. <div
  9491. class="wheel"
  9492. v-if="
  9493. fulltype == 2 &&
  9494. fullUrl.indexOf(
  9495. 'https://view.officeapps.live.com/op/view.aspx?src='
  9496. ) != -1
  9497. "
  9498. style="width: 95%; margin: 0 auto"
  9499. >
  9500. <iframe
  9501. style="width: 100%; height: 100%; border: none"
  9502. :src="fullUrl"
  9503. ></iframe>
  9504. </div>
  9505. <iframe
  9506. v-else-if="fulltype == 2"
  9507. style="width: 100%; height: 100%; border: none"
  9508. :src="fullUrl"
  9509. security="restricted"
  9510. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9511. ></iframe>
  9512. <pdf
  9513. v-else-if="fulltype == 3"
  9514. :pdfUrl="fullUrl"
  9515. style="width: 100%; height: 100%; overflow: auto"
  9516. ></pdf>
  9517. <div
  9518. class="wheel"
  9519. v-if="fulltype == 1"
  9520. style="
  9521. box-shadow: 0 0 6px 1px #f2f2f2;
  9522. width: 100%;
  9523. background: #f1f1f1;
  9524. "
  9525. >
  9526. <div class="title" style="width: 100%; box-sizing: border-box">
  9527. 查看文档
  9528. </div>
  9529. <el-form class="textBox" style="height: 90%">
  9530. <el-form-item class="textTitle">
  9531. <div style="font-size: 22px">
  9532. {{ fullUrl.name }}
  9533. </div>
  9534. </el-form-item>
  9535. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9536. <div
  9537. v-html="fullUrl.url"
  9538. class="textContent"
  9539. style="height: auto"
  9540. ></div>
  9541. </el-form>
  9542. </div>
  9543. </div>
  9544. <!-- <div slot="footer">
  9545. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9546. </div> -->
  9547. </el-dialog>
  9548. <el-dialog
  9549. title="个人评价"
  9550. :visible.sync="studentEvalDialogVisible"
  9551. :append-to-body="true"
  9552. width="800px"
  9553. :before-close="handleClose"
  9554. class="dialog_diy"
  9555. >
  9556. <div class="evalCss">
  9557. <div class="nav">请选择星星进行评分</div>
  9558. <div class="middleBox" v-if="eScore.eStar">
  9559. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9560. <div class="nameAndrate">
  9561. <div>{{ e.value }}</div>
  9562. <el-rate
  9563. v-model="eScore.eStar[eIndex]"
  9564. :disabled="isStar"
  9565. ></el-rate>
  9566. </div>
  9567. <div v-if="e.detail">{{ e.detail }}</div>
  9568. </div>
  9569. <div class="easy_comment" v-if="false">
  9570. <div
  9571. v-for="(p, pIndex) in PlTextList"
  9572. :key="pIndex"
  9573. @click="fastText(p, 2)"
  9574. >
  9575. {{ p }}
  9576. </div>
  9577. </div>
  9578. <div class="bz">
  9579. <textarea
  9580. :disabled="isStar"
  9581. rows="4"
  9582. class="pj"
  9583. style="
  9584. padding: 10px 5px;
  9585. width: 70%;
  9586. background: #f7f6f9;
  9587. font-size: 14px;
  9588. text-indent: 10px;
  9589. "
  9590. cols
  9591. v-model="eScore.eBzText"
  9592. placeholder="请输入评价内容..."
  9593. ></textarea>
  9594. </div>
  9595. </div>
  9596. </div>
  9597. <div slot="footer">
  9598. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9599. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9600. >确 定</el-button
  9601. >
  9602. </div>
  9603. </el-dialog>
  9604. <el-dialog
  9605. title="个人评价"
  9606. :visible.sync="studentEvalDialogVisibleTeacher"
  9607. :append-to-body="true"
  9608. width="800px"
  9609. :before-close="handleClose"
  9610. class="dialog_diy"
  9611. >
  9612. <div class="w_name">
  9613. 学生姓名:<span>{{ sStudent.student }}</span>
  9614. </div>
  9615. <div class="evalCss">
  9616. <div class="nav">请选择星星进行评分</div>
  9617. <div class="middleBox" v-if="eScore.eStar">
  9618. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9619. <div class="nameAndrate">
  9620. <div>{{ e.value }}</div>
  9621. <el-rate
  9622. v-model="eScore.eStar[eIndex]"
  9623. :disabled="isStar"
  9624. ></el-rate>
  9625. </div>
  9626. <div v-if="e.detail">{{ e.detail }}</div>
  9627. </div>
  9628. <div class="easy_comment" v-if="false">
  9629. <div
  9630. v-for="(p, pIndex) in PlTextList"
  9631. :key="pIndex"
  9632. @click="fastText(p, 2)"
  9633. >
  9634. {{ p }}
  9635. </div>
  9636. </div>
  9637. <div class="bz">
  9638. <textarea
  9639. :disabled="isStar"
  9640. rows="4"
  9641. class="pj"
  9642. style="
  9643. padding: 10px 5px;
  9644. width: 70%;
  9645. background: #f7f6f9;
  9646. font-size: 14px;
  9647. text-indent: 10px;
  9648. "
  9649. cols
  9650. v-model="eScore.eBzText"
  9651. placeholder="请输入评价内容..."
  9652. ></textarea>
  9653. </div>
  9654. </div>
  9655. </div>
  9656. <div slot="footer">
  9657. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9658. >取 消</el-button
  9659. >
  9660. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9661. >确 定</el-button
  9662. >
  9663. </div>
  9664. </el-dialog>
  9665. <el-dialog
  9666. title="选择匹配"
  9667. :visible.sync="dialogVisibleSelect"
  9668. :append-to-body="true"
  9669. width="90%"
  9670. :before-close="handleClose"
  9671. class="dialog_diy dialog_diy3"
  9672. >
  9673. <div v-if="selectJson">
  9674. <div class="select_box2">
  9675. <div class="select_box2_title">
  9676. <div>选择匹配</div>
  9677. <div>请选择对应的答案进行答题!</div>
  9678. </div>
  9679. <div class="select_box2_box">
  9680. <div class="select_box2_img">
  9681. <img
  9682. :src="selectJson.url"
  9683. @click="previewImg(selectJson.url)"
  9684. alt=""
  9685. />
  9686. </div>
  9687. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9688. <div style="padding-top: 15px">
  9689. <div class="select_answer_title" v-if="isSelect">
  9690. {{ selectAnswer.stu }}
  9691. </div>
  9692. <div class="select_answer_title" v-else>
  9693. 根据题目选择对应答案
  9694. </div>
  9695. <div
  9696. class="select_box2_answer_box"
  9697. v-for="(item2, checkIndex) in selectJson.select"
  9698. :key="checkIndex"
  9699. >
  9700. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9701. <el-select
  9702. :disabled="isSelect"
  9703. v-model="selectAnswer.answer[checkIndex]"
  9704. placeholder="请选择正确答案"
  9705. >
  9706. <el-option
  9707. v-for="(e, eIndex) in selectJson.select"
  9708. :key="eIndex"
  9709. :label="e"
  9710. :value="eIndex"
  9711. >
  9712. </el-option>
  9713. </el-select>
  9714. </div>
  9715. </div>
  9716. <div
  9717. class="rightAnswerCss"
  9718. v-if="isSelect && (tType == 1 || tType == 4)"
  9719. >
  9720. <div
  9721. v-for="(a, aIndex) in selectJson.answer"
  9722. :key="aIndex"
  9723. class="rightAnswer"
  9724. >
  9725. <div
  9726. v-if="selectAnswer.answer[aIndex] === a"
  9727. style="color: #767de1"
  9728. >
  9729. 回答正确
  9730. </div>
  9731. <div v-else>回答错误</div>
  9732. <div
  9733. style="margin-left: 10px"
  9734. v-if="selectAnswer.answer[aIndex] !== a"
  9735. >
  9736. 正确答案:
  9737. </div>
  9738. <div
  9739. :class="
  9740. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9741. "
  9742. >
  9743. {{ selectJson.select[a] }}
  9744. </div>
  9745. </div>
  9746. </div>
  9747. </div>
  9748. <div class="upAnswerCss">
  9749. <el-button
  9750. type="primary"
  9751. @click="addSelectAnswer"
  9752. v-if="!isSelect"
  9753. >提交答案</el-button
  9754. >
  9755. </div>
  9756. </div>
  9757. </div>
  9758. </div>
  9759. </el-dialog>
  9760. <el-dialog
  9761. title="选择匹配"
  9762. :visible.sync="dialogVisibleSelectTeacher"
  9763. :append-to-body="true"
  9764. width="90%"
  9765. :before-close="handleClose"
  9766. class="dialog_diy dialog_diy3"
  9767. >
  9768. <div v-if="selectJson">
  9769. <div class="w_name">
  9770. 学生姓名:<span>{{ sStudent.student }}</span>
  9771. </div>
  9772. <div class="select_box2">
  9773. <div class="select_box2_title">
  9774. <div>选择匹配</div>
  9775. <div>请选择对应的答案进行答题!</div>
  9776. </div>
  9777. <div class="select_box2_box">
  9778. <div class="select_box2_img">
  9779. <img
  9780. :src="selectJson.url"
  9781. @click="previewImg(selectJson.url)"
  9782. alt=""
  9783. />
  9784. </div>
  9785. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9786. <div style="padding-top: 15px">
  9787. <div class="select_answer_title" v-if="isSelect">
  9788. {{ selectAnswer.stu }}
  9789. </div>
  9790. <div class="select_answer_title" v-else>
  9791. 根据题目选择对应答案
  9792. </div>
  9793. <div
  9794. class="select_box2_answer_box"
  9795. v-for="(item2, checkIndex) in selectJson.select"
  9796. :key="checkIndex"
  9797. >
  9798. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9799. <el-select
  9800. :disabled="isSelect"
  9801. v-model="selectAnswer.answer[checkIndex]"
  9802. placeholder="请选择正确答案"
  9803. >
  9804. <el-option
  9805. v-for="(e, eIndex) in selectJson.select"
  9806. :key="eIndex"
  9807. :label="e"
  9808. :value="eIndex"
  9809. >
  9810. </el-option>
  9811. </el-select>
  9812. </div>
  9813. </div>
  9814. <div
  9815. class="rightAnswerCss"
  9816. v-if="isSelect && (tType == 1 || tType == 4)"
  9817. >
  9818. <div
  9819. v-for="(a, aIndex) in selectJson.answer"
  9820. :key="aIndex"
  9821. class="rightAnswer"
  9822. >
  9823. <div
  9824. v-if="selectAnswer.answer[aIndex] === a"
  9825. style="color: #767de1"
  9826. >
  9827. 回答正确
  9828. </div>
  9829. <div v-else>回答错误</div>
  9830. <div
  9831. style="margin-left: 10px"
  9832. v-if="selectAnswer.answer[aIndex] !== a"
  9833. >
  9834. 正确答案:
  9835. </div>
  9836. <div
  9837. :class="
  9838. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9839. "
  9840. >
  9841. {{ selectJson.select[a] }}
  9842. </div>
  9843. </div>
  9844. </div>
  9845. </div>
  9846. <div class="upAnswerCss">
  9847. <el-button
  9848. type="primary"
  9849. @click="addSelectAnswerTeacher"
  9850. v-if="!isSelect"
  9851. >提交答案</el-button
  9852. >
  9853. </div>
  9854. </div>
  9855. </div>
  9856. </div>
  9857. </el-dialog>
  9858. <el-dialog
  9859. title="教师评分"
  9860. :visible.sync="dialogVisibleScore"
  9861. :append-to-body="true"
  9862. width="800px"
  9863. :before-close="handleClose"
  9864. class="dialog_diy"
  9865. >
  9866. <div>
  9867. <div class="studentDetail">
  9868. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9869. <div class="nameAndTime">
  9870. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9871. <div>{{ commentDetail.time }}</div>
  9872. </div>
  9873. </div>
  9874. <div
  9875. class="worksAnswer"
  9876. v-if="commentDetail.works && commentDetail.type == 2"
  9877. >
  9878. {{ JSON.parse(commentDetail.works)[0].answer }}
  9879. </div>
  9880. <div
  9881. class="worksAnswer"
  9882. v-if="commentDetail.works && commentDetail.type == 1"
  9883. >
  9884. <pdf
  9885. v-if="showPDF"
  9886. :pdfUrl="pptImgUrl"
  9887. style="width: 100%; height: 520px; overflow: auto"
  9888. :class="{ fullStyle: full }"
  9889. ></pdf>
  9890. <iframe
  9891. v-else
  9892. :src="pptImgUrl"
  9893. frameborder="0"
  9894. width="100%"
  9895. height="600"
  9896. :class="{ fullStyle: full }"
  9897. ></iframe>
  9898. </div>
  9899. <div
  9900. class="worksAnswer"
  9901. v-if="commentDetail.works && commentDetail.type == 0"
  9902. >
  9903. <img
  9904. :src="commentDetail.works"
  9905. alt=""
  9906. @click="previewImg(commentDetail.works)"
  9907. />
  9908. </div>
  9909. <div
  9910. class="worksAnswer"
  9911. v-if="commentDetail.works && commentDetail.type == 3"
  9912. >
  9913. <video-player
  9914. class="video-player vjs-custom-skin"
  9915. :playsinline="true"
  9916. :options="videoDetail"
  9917. @play="onPlayerPlay($event)"
  9918. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9919. ></video-player>
  9920. </div>
  9921. <div
  9922. class="worksAnswer codeFileBox"
  9923. v-if="commentDetail.works && commentDetail.type == 12"
  9924. @click="downloadFile(commentDetail.works)"
  9925. >
  9926. <img src="../assets/icon/codeFile.png" />
  9927. <div>点击下载文件</div>
  9928. </div>
  9929. <div
  9930. class="worksAnswer codeFileBox"
  9931. v-if="commentDetail.works && commentDetail.type == 15"
  9932. @click="
  9933. openCocoPi(
  9934. 57,
  9935. commentIndexJson.toolIndex,
  9936. commentDetail.userid,
  9937. commentDetail.sName
  9938. )
  9939. "
  9940. >
  9941. <img src="../assets/icon/codeFile.png" />
  9942. <div>点击打开CocoPi</div>
  9943. </div>
  9944. <div
  9945. class="worksAnswer"
  9946. v-if="commentDetail.works && commentDetail.type == 13"
  9947. >
  9948. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9949. </div>
  9950. <div class="scoreBox">
  9951. <span class="t">请输入分数</span>
  9952. <el-input-number
  9953. :disabled="courseDetail.userid != userid"
  9954. v-model="wScore"
  9955. :controls="false"
  9956. :min="0"
  9957. :max="100"
  9958. ></el-input-number>
  9959. </div>
  9960. <div class="scoreDetailBox">
  9961. <span class="t">评分评论</span>
  9962. <el-input
  9963. type="textarea"
  9964. :rows="5"
  9965. :disabled="courseDetail.userid != userid"
  9966. resize="none"
  9967. v-model="scoreDetail"
  9968. placeholder="请输入对学生的评价"
  9969. >
  9970. </el-input>
  9971. </div>
  9972. </div>
  9973. <span slot="footer" class="dialog-footer">
  9974. <el-button
  9975. @click="
  9976. (dialogVisibleScore = false),
  9977. (commentIndexJson = {}),
  9978. videoDetail.sources && videoDetail.sources[0]
  9979. ? (videoDetail.sources[0].src = '')
  9980. : ''
  9981. "
  9982. >取 消</el-button
  9983. >
  9984. <el-button
  9985. type="primary"
  9986. v-if="courseDetail.userid == userid"
  9987. @click="scoreWork(commentDetail.wid)"
  9988. >确 定
  9989. </el-button>
  9990. </span>
  9991. </el-dialog>
  9992. <el-dialog
  9993. title="排序"
  9994. :visible.sync="dialogVisibleSentence"
  9995. :append-to-body="true"
  9996. width="1000px"
  9997. :before-close="handleClose"
  9998. class="dialog_diy dialog_diy3"
  9999. >
  10000. <div>
  10001. <div class="sentenBox">
  10002. <div
  10003. v-for="(st, stIndex) in sentenceList"
  10004. :key="stIndex"
  10005. style="padding-bottom: 20px"
  10006. >
  10007. <div
  10008. style="padding: 15px 0 10px 20px"
  10009. class="sentenceTitle"
  10010. :index="stIndex + 1"
  10011. >
  10012. 题目{{ stIndex + 1 }}:请选择正确顺序
  10013. </div>
  10014. <div class="cardList" v-if="st.chooseSenList">
  10015. <div class="cardBox">
  10016. <div
  10017. v-for="(r, rIndex) in st.chooseSenList"
  10018. :key="rIndex"
  10019. @click="returnCard(r, stIndex, rIndex)"
  10020. >
  10021. <el-tooltip
  10022. class="item"
  10023. effect="light"
  10024. :content="r"
  10025. placement="top"
  10026. v-if="r != '' && r != undefined"
  10027. >
  10028. <div
  10029. :class="{
  10030. isCard: r,
  10031. isChooseCard: r == '' || r == undefined,
  10032. }"
  10033. >
  10034. <div>{{ r }}</div>
  10035. </div>
  10036. </el-tooltip>
  10037. <div
  10038. :class="{
  10039. isCard: r,
  10040. isChooseCard: r == '' || r == undefined,
  10041. }"
  10042. v-else
  10043. >
  10044. <div>{{ r }}</div>
  10045. </div>
  10046. </div>
  10047. </div>
  10048. </div>
  10049. <div class="cardList" v-if="st.addChangeSen">
  10050. <div class="cardBox">
  10051. <div
  10052. v-for="(s, sIndex) in st.addChangeSen"
  10053. :key="sIndex"
  10054. @click="setRightAnswer(s, stIndex, sIndex)"
  10055. >
  10056. <el-tooltip
  10057. class="item"
  10058. effect="light"
  10059. :content="s"
  10060. placement="top"
  10061. v-if="s != '' && s != undefined"
  10062. >
  10063. <div
  10064. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10065. >
  10066. <div>{{ s }}</div>
  10067. </div>
  10068. </el-tooltip>
  10069. <div
  10070. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10071. v-else
  10072. >
  10073. <div>{{ s }}</div>
  10074. </div>
  10075. </div>
  10076. </div>
  10077. </div>
  10078. </div>
  10079. </div>
  10080. </div>
  10081. <span slot="footer" class="dialog-footer">
  10082. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10083. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10084. </span>
  10085. </el-dialog>
  10086. <el-dialog
  10087. title="排序"
  10088. :visible.sync="dialogVisibleSentenceTeacher"
  10089. :append-to-body="true"
  10090. width="1000px"
  10091. :before-close="handleClose"
  10092. class="dialog_diy dialog_diy3"
  10093. >
  10094. <div>
  10095. <div class="w_name">
  10096. 学生姓名:<span>{{ sStudent.student }}</span>
  10097. </div>
  10098. <div class="sentenBox">
  10099. <div
  10100. v-for="(st, stIndex) in sentenceList"
  10101. :key="stIndex"
  10102. style="padding-bottom: 20px"
  10103. >
  10104. <div
  10105. style="padding: 15px 0 10px 20px"
  10106. class="sentenceTitle"
  10107. :index="stIndex + 1"
  10108. >
  10109. 题目{{ stIndex + 1 }}:请选择正确顺序
  10110. </div>
  10111. <div class="cardList" v-if="st.chooseSenList">
  10112. <div class="cardBox">
  10113. <div
  10114. v-for="(r, rIndex) in st.chooseSenList"
  10115. :key="rIndex"
  10116. @click="returnCard(r, stIndex, rIndex)"
  10117. >
  10118. <el-tooltip
  10119. class="item"
  10120. effect="light"
  10121. :content="r"
  10122. placement="top"
  10123. v-if="r != '' && r != undefined"
  10124. >
  10125. <div
  10126. :class="{
  10127. isCard: r,
  10128. isChooseCard: r == '' || r == undefined,
  10129. }"
  10130. >
  10131. <div>{{ r }}</div>
  10132. </div>
  10133. </el-tooltip>
  10134. <div
  10135. :class="{
  10136. isCard: r,
  10137. isChooseCard: r == '' || r == undefined,
  10138. }"
  10139. v-else
  10140. >
  10141. <div>{{ r }}</div>
  10142. </div>
  10143. </div>
  10144. </div>
  10145. </div>
  10146. <div class="cardList" v-if="st.addChangeSen">
  10147. <div class="cardBox">
  10148. <div
  10149. v-for="(s, sIndex) in st.addChangeSen"
  10150. :key="sIndex"
  10151. @click="setRightAnswer(s, stIndex, sIndex)"
  10152. >
  10153. <el-tooltip
  10154. class="item"
  10155. effect="light"
  10156. :content="s"
  10157. placement="top"
  10158. v-if="s != '' && s != undefined"
  10159. >
  10160. <div
  10161. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10162. >
  10163. <div>{{ s }}</div>
  10164. </div>
  10165. </el-tooltip>
  10166. <div
  10167. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10168. v-else
  10169. >
  10170. <div>{{ s }}</div>
  10171. </div>
  10172. </div>
  10173. </div>
  10174. </div>
  10175. </div>
  10176. </div>
  10177. </div>
  10178. <span slot="footer" class="dialog-footer">
  10179. <el-button @click="dialogVisibleSentenceTeacher = false"
  10180. >取 消</el-button
  10181. >
  10182. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10183. </span>
  10184. </el-dialog>
  10185. <el-dialog
  10186. title="排序"
  10187. :visible.sync="dialogVisibleSentence1"
  10188. :append-to-body="true"
  10189. width="1000px"
  10190. :before-close="handleClose"
  10191. class="dialog_diy dialog_diy3"
  10192. >
  10193. <div>
  10194. <div class="sentenBox">
  10195. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10196. {{ sentenceList1.stuName }}的作业
  10197. </div>
  10198. <div
  10199. v-for="(st, stIndex) in sentenceList1"
  10200. :key="stIndex"
  10201. style="padding-bottom: 20px"
  10202. >
  10203. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10204. 第{{ stIndex + 1 }}题
  10205. </div>
  10206. <div class="isWrong">
  10207. <div class="cardList1" v-if="st.chooseSenList">
  10208. <div class="cardBox">
  10209. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10210. <el-tooltip
  10211. class="item"
  10212. effect="light"
  10213. :content="s"
  10214. placement="top"
  10215. >
  10216. <div class="isCard">
  10217. <div>{{ s }}</div>
  10218. </div>
  10219. </el-tooltip>
  10220. </div>
  10221. </div>
  10222. <div class="cardAnswerBox">
  10223. 组成句子:{{ st.chooseSenList.join(" ") }}
  10224. </div>
  10225. </div>
  10226. <div v-if="tType == 2" class="isTj">
  10227. <div class="isTjImg">
  10228. <img src="../assets/icon/conSentences/right.png" alt="" />
  10229. </div>
  10230. <div>已提交</div>
  10231. </div>
  10232. <div
  10233. class="answerRight isTj"
  10234. v-if="
  10235. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10236. (tType == 1 || tType == 4)
  10237. "
  10238. >
  10239. <div class="isTjImg">
  10240. <img src="../assets/icon/conSentences/right.png" alt="" />
  10241. </div>
  10242. <div>回答正确</div>
  10243. </div>
  10244. <div
  10245. class="answerRight isTj"
  10246. v-if="
  10247. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10248. (tType == 1 || tType == 4)
  10249. "
  10250. >
  10251. <div class="isTjImg">
  10252. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10253. </div>
  10254. <div>回答错误</div>
  10255. </div>
  10256. </div>
  10257. <div
  10258. v-if="
  10259. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10260. (tType == 1 || tType == 4)
  10261. "
  10262. >
  10263. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10264. <div
  10265. class="cardList"
  10266. v-if="st.rightAnswer"
  10267. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10268. >
  10269. <div class="cardBox">
  10270. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10271. <el-tooltip
  10272. class="item"
  10273. effect="light"
  10274. :content="r"
  10275. placement="top"
  10276. >
  10277. <div class="isCard1">
  10278. <div>{{ r }}</div>
  10279. </div>
  10280. </el-tooltip>
  10281. </div>
  10282. </div>
  10283. <div class="cardAnswerBox">
  10284. 组成句子:{{ st.rightAnswer.join(" ") }}
  10285. </div>
  10286. </div>
  10287. </div>
  10288. </div>
  10289. </div>
  10290. </div>
  10291. <span slot="footer" class="dialog-footer">
  10292. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10293. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10294. >确 定</el-button
  10295. >
  10296. </span>
  10297. </el-dialog>
  10298. <el-dialog
  10299. title="教师提交作业"
  10300. :visible.sync="dialogVisibleWorks"
  10301. :append-to-body="true"
  10302. width="500px"
  10303. :before-close="handleClose"
  10304. class="dialog_change"
  10305. >
  10306. <div class="marginT">
  10307. <div class="w_name">
  10308. 学生姓名:<span>{{ sStudent.student }}</span>
  10309. </div>
  10310. <div>上传文件</div>
  10311. <div
  10312. class="chapter_add"
  10313. @click="addImg($event)"
  10314. v-if="studyJuri[0].cover.length == 0"
  10315. >
  10316. <div class="up_photo">
  10317. <img src="../assets/uploadImg2.png" alt />
  10318. </div>
  10319. <!-- <input
  10320. type="file"
  10321. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10322. style="display: none"
  10323. @change="beforeUpload1($event, 1)"
  10324. /> -->
  10325. <input
  10326. type="file"
  10327. accept="*"
  10328. style="display: none"
  10329. @change="beforeUpload1($event, 1)"
  10330. />
  10331. </div>
  10332. <!-- capture="camera" -->
  10333. <div
  10334. class="chapter_add"
  10335. style="
  10336. display: flex;
  10337. width: 100%;
  10338. flex-direction: row;
  10339. flex-wrap: wrap;
  10340. justify-content: flex-start;
  10341. padding: 15px 0;
  10342. "
  10343. v-if="studyJuri[0].cover.length > 0"
  10344. >
  10345. <div class="upCover">
  10346. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10347. <img :src="word" alt v-else-if="fileType == 1" />
  10348. <img :src="video" alt v-else-if="fileType == 2" />
  10349. <img :src="word2" alt v-else-if="fileType == 3" />
  10350. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10351. <div class="deleteWord" @click="clean(1)">
  10352. <img src="../assets/icon/deleteWorks.png" alt />
  10353. </div>
  10354. </div>
  10355. </div>
  10356. </div>
  10357. <div
  10358. class="upload_send"
  10359. @click="addCourseWorksTeacher(taskCount)"
  10360. v-if="!proVisible"
  10361. >
  10362. 提交
  10363. </div>
  10364. </el-dialog>
  10365. <ImgDraw
  10366. :drawShow="drawShow"
  10367. @closeDraw="closeDraw"
  10368. @addImgDraw="addImgDraw"
  10369. :bg="bg"
  10370. ></ImgDraw>
  10371. <el-dialog
  10372. title="表格"
  10373. :visible.sync="dialogVisibleTable"
  10374. :append-to-body="true"
  10375. width="95%"
  10376. :before-close="handleClose"
  10377. class="dialog_diy"
  10378. >
  10379. <el-form>
  10380. <div
  10381. style="
  10382. display: flex;
  10383. align-items: center;
  10384. justify-content: space-between;
  10385. "
  10386. >
  10387. <span>表格内容</span>
  10388. <el-button type="primary" size="small" @click="returnTableText"
  10389. >还原模板</el-button
  10390. >
  10391. </div>
  10392. <Table
  10393. v-model="tableJson.text"
  10394. @change="change"
  10395. v-if="dialogVisibleTable"
  10396. ></Table>
  10397. </el-form>
  10398. <span slot="footer" class="dialog-footer">
  10399. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10400. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10401. </span>
  10402. </el-dialog>
  10403. <el-dialog
  10404. title="表格"
  10405. :visible.sync="dialogVisibleTableTeacher"
  10406. :append-to-body="true"
  10407. width="95%"
  10408. :before-close="handleClose"
  10409. class="dialog_diy"
  10410. >
  10411. <el-form>
  10412. <div class="w_name">
  10413. 学生姓名:<span>{{ sStudent.student }}</span>
  10414. </div>
  10415. <div>表格内容</div>
  10416. <Table
  10417. v-model="tableJson.text"
  10418. @change="change"
  10419. v-if="dialogVisibleTableTeacher"
  10420. ></Table>
  10421. </el-form>
  10422. <span slot="footer" class="dialog-footer">
  10423. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10424. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10425. </span>
  10426. </el-dialog>
  10427. <el-dialog
  10428. title="文档"
  10429. :visible.sync="dialogVisibleWord"
  10430. :append-to-body="true"
  10431. width="95%"
  10432. :before-close="handleClose"
  10433. class="dialog_diy"
  10434. >
  10435. <el-form>
  10436. <div
  10437. style="
  10438. display: flex;
  10439. align-items: center;
  10440. justify-content: space-between;
  10441. "
  10442. >
  10443. <span>文档内容</span>
  10444. <el-button type="primary" size="small" @click="returnWordText"
  10445. >还原模板</el-button
  10446. >
  10447. </div>
  10448. <editor-bar
  10449. v-model="wordJson.text"
  10450. v-if="dialogVisibleWord"
  10451. ></editor-bar>
  10452. </el-form>
  10453. <span slot="footer" class="dialog-footer">
  10454. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10455. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10456. </span>
  10457. </el-dialog>
  10458. <el-dialog
  10459. title="文档"
  10460. :visible.sync="dialogVisibleWordTeacher"
  10461. :append-to-body="true"
  10462. width="95%"
  10463. :before-close="handleClose"
  10464. class="dialog_diy"
  10465. >
  10466. <el-form>
  10467. <div class="w_name">
  10468. 学生姓名:<span>{{ sStudent.student }}</span>
  10469. </div>
  10470. <div>文档内容</div>
  10471. <editor-bar
  10472. v-model="wordJson.text"
  10473. v-if="dialogVisibleWordTeacher"
  10474. ></editor-bar>
  10475. </el-form>
  10476. <span slot="footer" class="dialog-footer">
  10477. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10478. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10479. </span>
  10480. </el-dialog>
  10481. <el-dialog
  10482. title="表格"
  10483. :visible.sync="dialogVisibleTable2"
  10484. :append-to-body="true"
  10485. width="95%"
  10486. :before-close="handleClose"
  10487. class="dialog_diy"
  10488. >
  10489. <el-form>
  10490. <div class="cont" v-html="tableJson.text"></div>
  10491. </el-form>
  10492. <span slot="footer" class="dialog-footer">
  10493. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10494. </span>
  10495. </el-dialog>
  10496. <el-dialog
  10497. title="文档"
  10498. :visible.sync="dialogVisibleTable3"
  10499. :append-to-body="true"
  10500. width="95%"
  10501. :before-close="handleClose"
  10502. class="dialog_diy"
  10503. >
  10504. <el-form>
  10505. <div class="cont" v-html="tableJson.text"></div>
  10506. </el-form>
  10507. <span slot="footer" class="dialog-footer">
  10508. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10509. </span>
  10510. </el-dialog>
  10511. <el-dialog
  10512. title="分组设置"
  10513. :visible.sync="dialogVisibleGroup"
  10514. :append-to-body="true"
  10515. width="95%"
  10516. :before-close="handleClose"
  10517. class="dialog_diy"
  10518. >
  10519. <div v-if="dialogVisibleGroup">
  10520. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10521. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10522. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10523. </div>
  10524. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10525. @click="lockChair">
  10526. 锁定位置
  10527. </div>
  10528. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10529. 解锁位置
  10530. </div> -->
  10531. <div class="group_switch">
  10532. <span>开放选座</span>
  10533. <el-switch
  10534. v-model="islock"
  10535. active-text=""
  10536. class="switchCss"
  10537. @change="lockChair"
  10538. ></el-switch>
  10539. </div>
  10540. <div
  10541. type="primary"
  10542. @click="updateGroup"
  10543. class="returnBtn"
  10544. style="background-color: #225bc7"
  10545. >
  10546. 分组设置
  10547. </div>
  10548. </div>
  10549. <div>
  10550. <div
  10551. class="g_d_box"
  10552. v-if="groupJson.group && groupStudent[toolindex]"
  10553. >
  10554. <div
  10555. class="g_d_group"
  10556. v-for="(g, gindex) in groupJson.group"
  10557. :key="gindex"
  10558. >
  10559. <div class="g_d_group_chair">
  10560. <div v-if="groupJson.number > 1">
  10561. <span
  10562. :class="{
  10563. isChair:
  10564. groupStudent[toolindex][gindex] &&
  10565. groupStudent[toolindex][gindex][0],
  10566. updateChair:
  10567. courseDetail.userid == userid &&
  10568. groupStudent[toolindex][gindex] &&
  10569. groupStudent[toolindex][gindex][0] &&
  10570. groupJson.islock == 2,
  10571. }"
  10572. ><span
  10573. class="updateChairBtn"
  10574. @click="
  10575. updateGroupChair(
  10576. groupStudent[toolindex][gindex] &&
  10577. groupStudent[toolindex][gindex][0]
  10578. )
  10579. "
  10580. >修改</span
  10581. ></span
  10582. ><span>{{
  10583. groupStudent[toolindex][gindex] &&
  10584. groupStudent[toolindex][gindex][0]
  10585. ? groupStudent[toolindex][gindex] &&
  10586. groupStudent[toolindex][gindex][0].name
  10587. : "空位置"
  10588. }}</span>
  10589. </div>
  10590. <div v-if="groupJson.number > 4">
  10591. <span
  10592. :class="{
  10593. isChair:
  10594. groupStudent[toolindex][gindex] &&
  10595. groupStudent[toolindex][gindex][4],
  10596. updateChair:
  10597. courseDetail.userid == userid &&
  10598. groupStudent[toolindex][gindex] &&
  10599. groupStudent[toolindex][gindex][4] &&
  10600. groupJson.islock == 2,
  10601. }"
  10602. ><span
  10603. class="updateChairBtn"
  10604. @click="
  10605. updateGroupChair(
  10606. groupStudent[toolindex][gindex] &&
  10607. groupStudent[toolindex][gindex][4]
  10608. )
  10609. "
  10610. >修改</span
  10611. ></span
  10612. ><span>{{
  10613. groupStudent[toolindex][gindex] &&
  10614. groupStudent[toolindex][gindex][4]
  10615. ? groupStudent[toolindex][gindex] &&
  10616. groupStudent[toolindex][gindex][4].name
  10617. : "空位置"
  10618. }}</span>
  10619. </div>
  10620. <div v-if="groupJson.number > 8">
  10621. <span
  10622. :class="{
  10623. isChair:
  10624. groupStudent[toolindex][gindex] &&
  10625. groupStudent[toolindex][gindex][8],
  10626. updateChair:
  10627. courseDetail.userid == userid &&
  10628. groupStudent[toolindex][gindex] &&
  10629. groupStudent[toolindex][gindex][8] &&
  10630. groupJson.islock == 2,
  10631. }"
  10632. ><span
  10633. class="updateChairBtn"
  10634. @click="
  10635. updateGroupChair(
  10636. groupStudent[toolindex][gindex] &&
  10637. groupStudent[toolindex][gindex][8]
  10638. )
  10639. "
  10640. >修改</span
  10641. ></span
  10642. ><span>{{
  10643. groupStudent[toolindex][gindex] &&
  10644. groupStudent[toolindex][gindex][8]
  10645. ? groupStudent[toolindex][gindex] &&
  10646. groupStudent[toolindex][gindex][8].name
  10647. : "空位置"
  10648. }}</span>
  10649. </div>
  10650. </div>
  10651. <div class="g_d_group_tableBox">
  10652. <div class="g_d_group_chair2">
  10653. <div v-if="groupJson.number > 2">
  10654. <span
  10655. :class="{
  10656. isChair:
  10657. groupStudent[toolindex][gindex] &&
  10658. groupStudent[toolindex][gindex][2],
  10659. updateChair:
  10660. courseDetail.userid == userid &&
  10661. groupStudent[toolindex][gindex] &&
  10662. groupStudent[toolindex][gindex][2] &&
  10663. groupJson.islock == 2,
  10664. }"
  10665. ><span
  10666. class="updateChairBtn"
  10667. @click="
  10668. updateGroupChair(
  10669. groupStudent[toolindex][gindex] &&
  10670. groupStudent[toolindex][gindex][2]
  10671. )
  10672. "
  10673. >修改</span
  10674. ></span
  10675. ><span>{{
  10676. groupStudent[toolindex][gindex] &&
  10677. groupStudent[toolindex][gindex][2]
  10678. ? groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][2].name
  10680. : "空位置"
  10681. }}</span>
  10682. </div>
  10683. <div v-if="groupJson.number > 6">
  10684. <span
  10685. :class="{
  10686. isChair:
  10687. groupStudent[toolindex][gindex] &&
  10688. groupStudent[toolindex][gindex][6],
  10689. updateChair:
  10690. courseDetail.userid == userid &&
  10691. groupStudent[toolindex][gindex] &&
  10692. groupStudent[toolindex][gindex][6] &&
  10693. groupJson.islock == 2,
  10694. }"
  10695. ><span
  10696. class="updateChairBtn"
  10697. @click="
  10698. updateGroupChair(
  10699. groupStudent[toolindex][gindex] &&
  10700. groupStudent[toolindex][gindex][6]
  10701. )
  10702. "
  10703. >修改</span
  10704. ></span
  10705. ><span>{{
  10706. groupStudent[toolindex][gindex] &&
  10707. groupStudent[toolindex][gindex][6]
  10708. ? groupStudent[toolindex][gindex] &&
  10709. groupStudent[toolindex][gindex][6].name
  10710. : "空位置"
  10711. }}</span>
  10712. </div>
  10713. </div>
  10714. <div class="g_d_group_table">
  10715. <div>
  10716. {{ g.name }}
  10717. </div>
  10718. <div>
  10719. <div
  10720. v-if="
  10721. courseDetail.userid == userid && groupJson.islock == 2
  10722. "
  10723. @click="deleteGroupChair(gindex)"
  10724. >
  10725. 移除组员
  10726. </div>
  10727. <div
  10728. @click="selectGroup(gindex)"
  10729. v-else-if="
  10730. groupStudentUid[toolindex] &&
  10731. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10732. "
  10733. >
  10734. 加入分组
  10735. </div>
  10736. <div
  10737. @click="
  10738. exitGroup(
  10739. groupStudent[toolindex][gindex] &&
  10740. groupStudent[toolindex][gindex][
  10741. groupStudentUid[toolindex][gindex].indexOf(userid)
  10742. ].id
  10743. )
  10744. "
  10745. v-else-if="
  10746. groupStudentUid[toolindex] &&
  10747. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10748. "
  10749. >
  10750. 退出分组
  10751. </div>
  10752. </div>
  10753. </div>
  10754. <div class="g_d_group_chair2">
  10755. <div v-if="groupJson.number > 3">
  10756. <span
  10757. :class="{
  10758. isChair:
  10759. groupStudent[toolindex][gindex] &&
  10760. groupStudent[toolindex][gindex][3],
  10761. updateChair:
  10762. courseDetail.userid == userid &&
  10763. groupStudent[toolindex][gindex] &&
  10764. groupStudent[toolindex][gindex][3] &&
  10765. groupJson.islock == 2,
  10766. }"
  10767. ><span
  10768. class="updateChairBtn"
  10769. @click="
  10770. updateGroupChair(
  10771. groupStudent[toolindex][gindex] &&
  10772. groupStudent[toolindex][gindex][3]
  10773. )
  10774. "
  10775. >修改</span
  10776. ></span
  10777. ><span>{{
  10778. groupStudent[toolindex][gindex] &&
  10779. groupStudent[toolindex][gindex][3]
  10780. ? groupStudent[toolindex][gindex] &&
  10781. groupStudent[toolindex][gindex][3].name
  10782. : "空位置"
  10783. }}</span>
  10784. </div>
  10785. <div v-if="groupJson.number > 7">
  10786. <span
  10787. :class="{
  10788. isChair:
  10789. groupStudent[toolindex][gindex] &&
  10790. groupStudent[toolindex][gindex][7],
  10791. updateChair:
  10792. courseDetail.userid == userid &&
  10793. groupStudent[toolindex][gindex] &&
  10794. groupStudent[toolindex][gindex][7] &&
  10795. groupJson.islock == 2,
  10796. }"
  10797. ><span
  10798. class="updateChairBtn"
  10799. @click="
  10800. updateGroupChair(
  10801. groupStudent[toolindex][gindex] &&
  10802. groupStudent[toolindex][gindex][7]
  10803. )
  10804. "
  10805. >修改</span
  10806. ></span
  10807. ><span>{{
  10808. groupStudent[toolindex][gindex] &&
  10809. groupStudent[toolindex][gindex][7]
  10810. ? groupStudent[toolindex][gindex] &&
  10811. groupStudent[toolindex][gindex][7].name
  10812. : "空位置"
  10813. }}</span>
  10814. </div>
  10815. </div>
  10816. </div>
  10817. <div class="g_d_group_chair">
  10818. <div v-if="groupJson.number > 1">
  10819. <span
  10820. :class="{
  10821. isChair:
  10822. groupStudent[toolindex][gindex] &&
  10823. groupStudent[toolindex][gindex][1],
  10824. updateChair:
  10825. courseDetail.userid == userid &&
  10826. groupStudent[toolindex][gindex] &&
  10827. groupStudent[toolindex][gindex][1] &&
  10828. groupJson.islock == 2,
  10829. }"
  10830. ><span
  10831. class="updateChairBtn"
  10832. @click="
  10833. updateGroupChair(
  10834. groupStudent[toolindex][gindex] &&
  10835. groupStudent[toolindex][gindex][1]
  10836. )
  10837. "
  10838. >修改</span
  10839. ></span
  10840. ><span>{{
  10841. groupStudent[toolindex][gindex] &&
  10842. groupStudent[toolindex][gindex][1]
  10843. ? groupStudent[toolindex][gindex] &&
  10844. groupStudent[toolindex][gindex][1].name
  10845. : "空位置"
  10846. }}</span>
  10847. </div>
  10848. <div v-if="groupJson.number > 5">
  10849. <span
  10850. :class="{
  10851. isChair:
  10852. groupStudent[toolindex][gindex] &&
  10853. groupStudent[toolindex][gindex][5],
  10854. updateChair:
  10855. courseDetail.userid == userid &&
  10856. groupStudent[toolindex][gindex] &&
  10857. groupStudent[toolindex][gindex][5] &&
  10858. groupJson.islock == 2,
  10859. }"
  10860. ><span
  10861. class="updateChairBtn"
  10862. @click="
  10863. updateGroupChair(
  10864. groupStudent[toolindex][gindex] &&
  10865. groupStudent[toolindex][gindex][5]
  10866. )
  10867. "
  10868. >修改</span
  10869. ></span
  10870. ><span>{{
  10871. groupStudent[toolindex][gindex] &&
  10872. groupStudent[toolindex][gindex][5]
  10873. ? groupStudent[toolindex][gindex] &&
  10874. groupStudent[toolindex][gindex][5].name
  10875. : "空位置"
  10876. }}</span>
  10877. </div>
  10878. <div v-if="groupJson.number > 9">
  10879. <span
  10880. :class="{
  10881. isChair:
  10882. groupStudent[toolindex][gindex] &&
  10883. groupStudent[toolindex][gindex][9],
  10884. updateChair:
  10885. courseDetail.userid == userid &&
  10886. groupStudent[toolindex][gindex] &&
  10887. groupStudent[toolindex][gindex][9] &&
  10888. groupJson.islock == 2,
  10889. }"
  10890. ><span
  10891. class="updateChairBtn"
  10892. @click="
  10893. updateGroupChair(
  10894. groupStudent[toolindex][gindex] &&
  10895. groupStudent[toolindex][gindex][9]
  10896. )
  10897. "
  10898. >修改</span
  10899. ></span
  10900. ><span>{{
  10901. groupStudent[toolindex][gindex] &&
  10902. groupStudent[toolindex][gindex][9]
  10903. ? groupStudent[toolindex][gindex] &&
  10904. groupStudent[toolindex][gindex][9].name
  10905. : "空位置"
  10906. }}</span>
  10907. </div>
  10908. </div>
  10909. </div>
  10910. </div>
  10911. </div>
  10912. </div>
  10913. <span slot="footer" class="dialog-footer">
  10914. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10915. </span>
  10916. </el-dialog>
  10917. <el-dialog
  10918. title="分组设置"
  10919. :visible.sync="dialogVisibleGroup2"
  10920. :append-to-body="true"
  10921. width="650px"
  10922. :before-close="handleClose"
  10923. class="dialog_diy"
  10924. >
  10925. <div class="groupBox">
  10926. <div v-if="groupJson2.group" class="groupContent">
  10927. <div class="groupTitle">请设置小组数量及名称</div>
  10928. <div
  10929. v-for="(item, index) in groupJson2.group"
  10930. :key="index"
  10931. class="groupName"
  10932. >
  10933. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10934. <el-input
  10935. v-model="item.name"
  10936. placeholder="请输入名称..."
  10937. style="width: 250px"
  10938. ></el-input>
  10939. <!-- <div class="groupBtn">
  10940. <el-button type="primary" size="small" @click="addGroup(index)">
  10941. 添加</el-button>
  10942. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10943. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10944. </div> -->
  10945. </div>
  10946. </div>
  10947. <div class="groupContent">
  10948. <div class="groupTitle">请设置每组人数</div>
  10949. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10950. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10951. <el-input
  10952. v-model="groupJson.number"
  10953. style="width: 150px"
  10954. placeholder="请输入2-10的数字"
  10955. @change="numberPan"
  10956. ></el-input>
  10957. </div>
  10958. </div>
  10959. <span slot="footer" class="dialog-footer">
  10960. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10961. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10962. </span>
  10963. </el-dialog>
  10964. <el-dialog
  10965. title="作业提交"
  10966. :visible.sync="dialogVisibleGroupWork"
  10967. :append-to-body="true"
  10968. width="500px"
  10969. :before-close="handleClose"
  10970. class="dialog_change"
  10971. >
  10972. <div class="marginT">
  10973. <div>上传文件</div>
  10974. <div
  10975. class="chapter_add"
  10976. @click="addImg($event)"
  10977. v-if="studyJuri[0].cover.length == 0"
  10978. >
  10979. <div class="up_photo">
  10980. <img src="../assets/icon/uploadImg.png" alt />
  10981. </div>
  10982. <!-- <input
  10983. type="file"
  10984. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10985. style="display: none"
  10986. @change="beforeUpload1($event, 1)"
  10987. /> -->
  10988. <input
  10989. type="file"
  10990. accept="*"
  10991. style="display: none"
  10992. @change="beforeUpload1($event, 1)"
  10993. />
  10994. </div>
  10995. <!-- capture="camera" -->
  10996. <div
  10997. class="chapter_add"
  10998. style="
  10999. display: flex;
  11000. width: 100%;
  11001. flex-direction: row;
  11002. flex-wrap: wrap;
  11003. justify-content: flex-start;
  11004. padding: 15px 0;
  11005. "
  11006. v-if="studyJuri[0].cover.length > 0"
  11007. >
  11008. <div class="upCover">
  11009. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11010. <img :src="word" alt v-else-if="fileType == 1" />
  11011. <img :src="video" alt v-else-if="fileType == 2" />
  11012. <img :src="word2" alt v-else-if="fileType == 3" />
  11013. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11014. <div class="deleteWord" @click="clean(1)">
  11015. <img src="../assets/icon/deleteWorks.png" alt />
  11016. </div>
  11017. </div>
  11018. </div>
  11019. </div>
  11020. <div
  11021. class="upload_send"
  11022. @click="addCourseWorks2(taskCount)"
  11023. v-if="!proVisible"
  11024. >
  11025. 提交
  11026. </div>
  11027. </el-dialog>
  11028. <el-dialog
  11029. title="修改分组"
  11030. :visible.sync="dialogVisibleUpdateGroup"
  11031. :append-to-body="true"
  11032. width="350px"
  11033. :before-close="handleClose"
  11034. class="dialog_diy"
  11035. >
  11036. <div>
  11037. <h2>
  11038. {{ this.updateGroupUser.name }}
  11039. </h2>
  11040. <div style="color: rgb(171 171 171); margin-top: 10px">
  11041. 请选择要进入的分组
  11042. </div>
  11043. <el-radio-group v-model="checkChair">
  11044. <el-radio
  11045. style="display: block; margin-top: 20px"
  11046. v-for="(item, index) in updateGroupArray"
  11047. :label="item.label"
  11048. :key="index"
  11049. >{{ item.name }}</el-radio
  11050. >
  11051. </el-radio-group>
  11052. </div>
  11053. <span slot="footer" class="dialog-footer">
  11054. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11055. <el-button type="primary" @click="updateChair">确定</el-button>
  11056. </span>
  11057. </el-dialog>
  11058. <el-dialog
  11059. title="移除组员"
  11060. :visible.sync="dialogVisibleDeleteGroup"
  11061. :append-to-body="true"
  11062. width="350px"
  11063. :before-close="handleClose"
  11064. class="dialog_diy"
  11065. >
  11066. <div>
  11067. <h2>
  11068. {{ this.deleteGroupArray.name }}
  11069. </h2>
  11070. <div style="color: rgb(171 171 171); margin-top: 10px">
  11071. 请选择要删除的组员
  11072. </div>
  11073. <el-checkbox-group v-model="checkDeleteGroup">
  11074. <el-checkbox
  11075. style="display: flex; margin-top: 20px"
  11076. v-for="(item, index) in deleteGroupUser"
  11077. :label="item.userid"
  11078. :key="index"
  11079. >{{ item.name }}</el-checkbox
  11080. >
  11081. </el-checkbox-group>
  11082. </div>
  11083. <span slot="footer" class="dialog-footer">
  11084. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11085. <el-button type="primary" @click="deleteChair">确定</el-button>
  11086. </span>
  11087. </el-dialog>
  11088. <el-dialog
  11089. title="批量上传"
  11090. :visible.sync="dialogVisiblePl"
  11091. :append-to-body="true"
  11092. width="700px"
  11093. :before-close="handleClose"
  11094. class="dialog_change"
  11095. >
  11096. <div class="marginT">
  11097. <div class="plworkBox">
  11098. <div
  11099. class="chapter_add"
  11100. style="
  11101. display: flex;
  11102. width: 150px;
  11103. flex-direction: row;
  11104. flex-wrap: wrap;
  11105. justify-content: flex-start;
  11106. margin: 0 10px 10px 0;
  11107. "
  11108. v-for="(item, index) in plworkFile"
  11109. :key="index"
  11110. >
  11111. <div class="upCover2">
  11112. <img
  11113. :src="item.url"
  11114. alt
  11115. v-if="item.fileType == 1"
  11116. @click="previewImg(item.url)"
  11117. />
  11118. <img :src="word" alt v-else-if="item.fileType == 4" />
  11119. <img :src="video" alt v-else />
  11120. <!-- <span class="picName">{{ item.name }}</span> -->
  11121. <!-- <el-input
  11122. v-model="item.username"
  11123. placeholder="请输入学生名字"
  11124. style="margin-top: 10px"
  11125. ></el-input> -->
  11126. <div
  11127. class="pl_select_box"
  11128. @click="
  11129. getUpdateMore(true, checkUpload(), item.username, index)
  11130. "
  11131. >
  11132. {{ getSName(item.username) }}
  11133. </div>
  11134. <!-- <el-select
  11135. style="margin-top: 10px"
  11136. v-model="item.username"
  11137. filterable
  11138. allow-create
  11139. placeholder="请选择学生"
  11140. >
  11141. <el-option
  11142. v-for="item1 in checkUpload()"
  11143. :key="item1.userid"
  11144. :label="item1.name ? item1.name : item1.username"
  11145. :value="item1.userid"
  11146. >
  11147. </el-option>
  11148. </el-select> -->
  11149. <div class="deleteWord" @click="clean2(index)">
  11150. <img src="../assets/icon/deleteWorks.png" alt />
  11151. </div>
  11152. </div>
  11153. </div>
  11154. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11155. <div class="up_photo2">
  11156. <img src="../assets/icon/plwork.png" alt />
  11157. <span>点击上传文件</span>
  11158. </div>
  11159. <input
  11160. type="file"
  11161. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11162. multiple="multiple"
  11163. style="display: none"
  11164. @change="beforeUpload3($event, 6)"
  11165. />
  11166. </div>
  11167. </div>
  11168. </div>
  11169. <!-- capture="camera" -->
  11170. <div
  11171. class="upload_send"
  11172. @click="addCourseWorksPl(taskCount)"
  11173. v-if="!proVisible2"
  11174. >
  11175. 提交
  11176. </div>
  11177. </el-dialog>
  11178. <el-dialog
  11179. title="修改名称"
  11180. :visible.sync="dialogVisibleSname"
  11181. width="500px"
  11182. :before-close="handleClose"
  11183. class="dialog_diy"
  11184. center
  11185. >
  11186. <div
  11187. style="
  11188. text-align: center;
  11189. display: flex;
  11190. align-items: center;
  11191. justify-content: center;
  11192. "
  11193. >
  11194. <span class="tian1">名称</span>
  11195. <div
  11196. class="pl_select_box"
  11197. style="margin-left: 10px; width: 200px"
  11198. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11199. >
  11200. {{ getSName(worksSName) }}
  11201. </div>
  11202. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11203. placeholder="请选择学生">
  11204. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11205. :value="item.userid">
  11206. </el-option>
  11207. </el-select> -->
  11208. <!-- <el-input
  11209. v-model="worksSName"
  11210. style="width: 250px; margin: 15px 0px"
  11211. ></el-input> -->
  11212. </div>
  11213. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11214. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11215. <el-button type="primary" @click="updateName">确 定</el-button>
  11216. </span>
  11217. </el-dialog>
  11218. <el-dialog
  11219. title="英语写作"
  11220. :visible.sync="engDialogVisible"
  11221. :append-to-body="true"
  11222. width="800px"
  11223. :before-close="handleClose"
  11224. class="dialog_diy"
  11225. >
  11226. <onlineWrite
  11227. v-if="engDialogVisible"
  11228. @setEnglish="setEnglishList"
  11229. :englishList="englishList"
  11230. :myAnswerList1="myAnswerList1"
  11231. ></onlineWrite>
  11232. <span slot="footer" class="dialog-footer">
  11233. <el-button @click="engDialogVisible = false">取 消</el-button>
  11234. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11235. </span>
  11236. </el-dialog>
  11237. <el-dialog
  11238. title="英语写作"
  11239. :visible.sync="engUpdateDialogVisible"
  11240. :append-to-body="true"
  11241. width="800px"
  11242. :before-close="handleClose"
  11243. class="dialog_diy fullStyle"
  11244. >
  11245. <div class="engUpBox">
  11246. <div class="engUpTop">
  11247. <div class="engTitle">
  11248. <div>作文题目:</div>
  11249. <div>{{ englishList1.engTitle }}</div>
  11250. </div>
  11251. <div class="engText">
  11252. <div>作文题目:</div>
  11253. <div class="cont" v-html="englishList1.englishText" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11254. </div>
  11255. </div>
  11256. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11257. <div class="oldBox">
  11258. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11259. <div class="oldText">
  11260. <div class="detailBox">
  11261. <div class="oldDetail">
  11262. <div>标题:</div>
  11263. <div>{{ oldEnglishJson.engTitle }} </div>
  11264. </div>
  11265. <div class="oldDetail1">
  11266. <div>正文:</div>
  11267. <div v-html="oldEnglishJson.engText"></div>
  11268. </div>
  11269. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11270. <div>图片:</div>
  11271. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11272. </div>
  11273. </div>
  11274. </div>
  11275. </div>
  11276. <div class="oldBox" v-if="userMes[0].type == 2">
  11277. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11278. <div class="oldText">
  11279. <div class="detailBox">
  11280. <div class="oldDetail">
  11281. <div>标题:</div>
  11282. <el-input v-model="newEnglishList.engTitle" />
  11283. </div>
  11284. <div class="oldDetail">
  11285. <div>正文:</div>
  11286. <el-input type="textarea"
  11287. :rows="10"
  11288. resize="none" v-model="newEnglishList.engText" />
  11289. </div>
  11290. </div>
  11291. </div>
  11292. </div>
  11293. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11294. <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">
  11295. <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>
  11296. <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>
  11297. </div>
  11298. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11299. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11300. <div class="detailBox">
  11301. <div class="oldDetail">
  11302. <div>标题:</div>
  11303. <el-input v-model="oldEnglishJson1.engTitle" />
  11304. </div>
  11305. <div class="oldDetail">
  11306. <div>正文:</div>
  11307. <el-input type="textarea"
  11308. :rows="10"
  11309. resize="none" v-model="oldEnglishJson1.engText" />
  11310. </div>
  11311. </div>
  11312. </div>
  11313. <div class="oldText" v-else-if="newEngIndex == -1">
  11314. <div class="detailBox">
  11315. <div class="oldDetail">
  11316. <div>标题:</div>
  11317. <el-input v-model="newEnglishList.engTitle" />
  11318. </div>
  11319. <div class="oldDetail">
  11320. <div>正文:</div>
  11321. <el-input type="textarea"
  11322. :rows="10"
  11323. resize="none" v-model="newEnglishList.engText" />
  11324. </div>
  11325. </div>
  11326. </div>
  11327. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11328. <div class="detailBox">
  11329. <div class="oldDetail">
  11330. <div>标题:</div>
  11331. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11332. <el-input v-else v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11333. </div>
  11334. <div class="oldDetail">
  11335. <div>正文:</div>
  11336. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11337. <el-input v-else type="textarea"
  11338. :rows="10"
  11339. resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11340. </div>
  11341. </div>
  11342. </div>
  11343. </div>
  11344. </div>
  11345. </div>
  11346. <span slot="footer" class="dialog-footer">
  11347. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11348. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11349. </span>
  11350. </el-dialog>
  11351. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid"></englishEva>
  11352. <interVideo
  11353. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11354. :videoJson="videoJson"
  11355. :userid="userid"
  11356. :id="id"
  11357. :courseType="courseType"
  11358. :taskCount="taskCount"
  11359. :toolindex="toolindex"
  11360. ></interVideo>
  11361. <UpdateMore
  11362. :dialogVisibleMember.sync="dialogVisibleMember"
  11363. :cList="uploadStudentJuri"
  11364. :userid="userid"
  11365. :searchTN="worksSName2"
  11366. @setPlname="setPlname"
  11367. ></UpdateMore>
  11368. <wordCloud
  11369. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11370. :data="wordCloudData"
  11371. ></wordCloud>
  11372. <el-dialog
  11373. title="挑人"
  11374. :visible.sync="dialogVisiblePickPeople"
  11375. width="650px"
  11376. :before-close="handleClose"
  11377. class="dialog_diy"
  11378. center
  11379. >
  11380. <div class="pick_box">
  11381. <div
  11382. class="noWorksName"
  11383. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11384. v-for="(item, index) in uploadStudentJuri"
  11385. :key="index"
  11386. @click="pickStudent(item)"
  11387. >
  11388. {{ item.name }}
  11389. </div>
  11390. </div>
  11391. </el-dialog>
  11392. </div>
  11393. </template>
  11394. <script>
  11395. import "../common/aws-sdk-2.235.1.min.js";
  11396. // import pdf from "./components/pdf3";
  11397. import pdf from "./components/vpdf";
  11398. import AskStatic from "./components/askStatic";
  11399. import AskStatic2 from "./components/askStatic2";
  11400. import AnswerData2 from "./components/answerData2";
  11401. import AnswerData from "./components/answerData";
  11402. import EditorBar from "./tools/wangEnduit.vue";
  11403. import Table from "./tools/table.vue";
  11404. import Time from "./tools/time.vue";
  11405. import Mind from "./tools/jsmind.vue";
  11406. import Sunburst from "./tools/sunburst";
  11407. import SeeBoard from "./tools/seeBoard";
  11408. import * as imageConversion from "image-conversion";
  11409. import Audio from "./components/audio.vue";
  11410. import ImgDraw from "./tools/imgDraw/imgDraw";
  11411. import { Empty } from "element-ui";
  11412. import RecordRTC from "recordrtc";
  11413. import interVideo from "./interVideo/index.vue";
  11414. import UpdateMore from "./updateMore/updateMore.vue";
  11415. import wordCloud from "./wordCloud/index.vue";
  11416. import axios from "axios";
  11417. import JSZip from "jszip";
  11418. import FileSaver from "file-saver";
  11419. import onlineWrite from "./components/onlineWrite";
  11420. import englishEva from "./components/englishEva";
  11421. const getFile = (url) => {
  11422. return new Promise((resolve, reject) => {
  11423. axios({
  11424. method: "get",
  11425. url,
  11426. responseType: "blob",
  11427. })
  11428. .then((data) => {
  11429. resolve({ data: data.data });
  11430. })
  11431. .catch((error) => {
  11432. resolve({ data: 1 });
  11433. // reject(error.toString());
  11434. });
  11435. });
  11436. };
  11437. export default {
  11438. components: {
  11439. EditorBar,
  11440. Time,
  11441. pdf,
  11442. AskStatic,
  11443. AskStatic2,
  11444. Mind,
  11445. Sunburst,
  11446. SeeBoard,
  11447. AnswerData2,
  11448. AnswerData,
  11449. Audio,
  11450. ImgDraw,
  11451. Table,
  11452. interVideo,
  11453. UpdateMore,
  11454. wordCloud,
  11455. onlineWrite,
  11456. englishEva,
  11457. },
  11458. data() {
  11459. return {
  11460. bg: null,
  11461. drawShow: false,
  11462. dialogVisible: false,
  11463. dialogVisiblePl: false,
  11464. commentDialogVisible: false,
  11465. dialogVisibleMember: false,
  11466. dialogVisibleWordCloud: false,
  11467. videoVisible: false,
  11468. isStar: false,
  11469. studentEvalDialogVisible: false,
  11470. studentEvalDialogVisibleTeacher: false,
  11471. dialogVisibleSelect: false,
  11472. dialogVisibleSelectTeacher: false,
  11473. dialogVisibleScore: false,
  11474. dialogVisibleSentence: false,
  11475. dialogVisibleSentenceTeacher: false,
  11476. dialogVisibleSentence1: false,
  11477. dialogVisibleWorks: false,
  11478. dialogVisibleTable: false,
  11479. dialogVisibleTableTeacher: false,
  11480. dialogVisibleWord: false,
  11481. dialogVisibleWordTeacher: false,
  11482. dialogVisibleTable2: false,
  11483. dialogVisibleTable3: false,
  11484. dialogVisibleGroupWork: false,
  11485. dialogVisibleUpdateGroup: false,
  11486. dialogVisibleDeleteGroup: false,
  11487. dialogVisibleSname: false,
  11488. dialogVisibleVideo: false,
  11489. dialogVisiblePickPeople: false,
  11490. engDialogVisible: false,
  11491. engUpdateDialogVisible: false,
  11492. engEvaDialogVisible: false,
  11493. evaEngJson: {
  11494. username: "",
  11495. teacherJson: {},
  11496. studentJson: {},
  11497. },
  11498. isNoUserid:false,
  11499. engListLength:0,
  11500. engWid:"",
  11501. newEnglishList:{
  11502. engTitle:"",
  11503. engText:"",
  11504. },
  11505. newEnglishList1:[],
  11506. oldEnglishJson:{},
  11507. oldEnglishJson1:{},
  11508. englishList1:{},
  11509. englishList:{},
  11510. myAnswerList1:{},
  11511. topHeight:0,
  11512. newEngIndex:-1,
  11513. englishToolIndex:0,
  11514. worksSName: "",
  11515. classJuri: [],
  11516. uploadStudentJuri: [],
  11517. uploadCid: "",
  11518. snameWid: "",
  11519. sStudent: {},
  11520. sTool: "",
  11521. bzText: "",
  11522. commentDetail: [],
  11523. selectAnswer: [],
  11524. videoDetail: {},
  11525. selectJson: {},
  11526. eScore: { eBzText: "", eStar: [] },
  11527. id: this.$route.query.courseId,
  11528. userid: this.$route.query.userid,
  11529. classId: this.$route.query.cid,
  11530. // courseTypeLine: this.$route.query.type,
  11531. oid: this.$route.query.oid,
  11532. org: this.$route.query.org,
  11533. tType: this.$route.query.tType,
  11534. courseType: this.$route.query.type,
  11535. screenType: this.$route.query.screenType,
  11536. tcid2: this.$route.query.tcid,
  11537. tcid: "",
  11538. pptImgUrl: "",
  11539. pptImgUrl1: "",
  11540. commentText: "",
  11541. full: false,
  11542. sIsOpen: false,
  11543. IsLookOpen: false,
  11544. IsFollow: false,
  11545. pzDialog: false,
  11546. contentDialog: false,
  11547. mlDialog: false,
  11548. type: 1,
  11549. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11550. sentenceList1: [],
  11551. tableJson: [],
  11552. tableJsonO: [],
  11553. wordJson: [],
  11554. wordJsonO: [],
  11555. vedio: [],
  11556. text: [],
  11557. textList: [],
  11558. line: [],
  11559. lineList: [],
  11560. chapTools: [],
  11561. chapToolList: [],
  11562. file: [],
  11563. fileC: [],
  11564. vedioTime: [],
  11565. upToolImg: "",
  11566. preTime: 0,
  11567. rateList: {
  11568. ca: 0,
  11569. },
  11570. rateParams: [],
  11571. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11572. studyJuri: [
  11573. {
  11574. content: "",
  11575. cover: [],
  11576. upVedio: [],
  11577. upFile: [],
  11578. },
  11579. ],
  11580. isClose: 0,
  11581. plworkFile: [],
  11582. mr: require("../assets/vedioPic.png"),
  11583. word: require("../assets/icon/isWord.png"),
  11584. word2: require("../assets/icon/word2.png"),
  11585. video: require("../assets/icon/isVideo.png"),
  11586. noLikes: require("../assets/icon/comment/noLikes.png"),
  11587. likes: require("../assets/icon/comment/likes.png"),
  11588. scoreImg: require("../assets/score.png"),
  11589. courseDetail: {},
  11590. reply: "",
  11591. isSelect: false,
  11592. chapInfo: [],
  11593. chapInfoList: [],
  11594. taskCount: 0,
  11595. imgList: [],
  11596. noImgList: [],
  11597. pzList: [],
  11598. timeWorkList: [],
  11599. PlTextList: [
  11600. "Excellent!",
  11601. "nice!",
  11602. "很有创意!",
  11603. "还不错哦~",
  11604. "继续努力哦~",
  11605. ],
  11606. isClickNav: "",
  11607. navId: "",
  11608. playerOptions: {
  11609. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11610. autoplay: false, //如果true,浏览器准备好时开始回放。
  11611. muted: false, // 默认情况下将会消除任何音频。
  11612. loop: false, // 导致视频一结束就重新开始。
  11613. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11614. language: "zh-CN",
  11615. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11616. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11617. sources: [
  11618. {
  11619. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11620. src: "", //url地址require("../../assets/media/aaa.mp4")
  11621. },
  11622. ],
  11623. // poster: require("../../assets/tu31.png"), //你的封面地址
  11624. // poster: dataRes.imgUrl, //你的封面地址
  11625. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11626. controlBar: {
  11627. timeDivider: true, //当前时间和持续时间的分隔符
  11628. durationDisplay: true, //显示持续时间
  11629. remainingTimeDisplay: false, //是否显示剩余时间功能
  11630. fullscreenToggle: true, //全屏按钮
  11631. },
  11632. },
  11633. playerOptions1: {
  11634. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11635. autoplay: false, //如果true,浏览器准备好时开始回放。
  11636. muted: false, // 默认情况下将会消除任何音频。
  11637. loop: false, // 导致视频一结束就重新开始。
  11638. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11639. language: "zh-CN",
  11640. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11641. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11642. sources: [
  11643. {
  11644. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11645. src: "", //url地址require("../../assets/media/aaa.mp4")
  11646. },
  11647. ],
  11648. // poster: require("../../assets/tu31.png"), //你的封面地址
  11649. // poster: dataRes.imgUrl, //你的封面地址
  11650. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11651. controlBar: {
  11652. timeDivider: true, //当前时间和持续时间的分隔符
  11653. durationDisplay: true, //显示持续时间
  11654. remainingTimeDisplay: false, //是否显示剩余时间功能
  11655. fullscreenToggle: true, //全屏按钮
  11656. },
  11657. },
  11658. playerO: {},
  11659. noneBtnImg: false,
  11660. proVisible: false,
  11661. proVisible2: false,
  11662. progress: 0,
  11663. isFinishSize: 0,
  11664. isAllSize: 0,
  11665. questionAnswer: "",
  11666. answerQ: "", //问答标题
  11667. rateJson: [],
  11668. wbCount: 0,
  11669. wordCount: 0,
  11670. mindCount: 0,
  11671. askCount: 0,
  11672. noteCount: 0,
  11673. mindNetWorkCount: 0,
  11674. libraryCount: 0,
  11675. workCount: 0,
  11676. timeCount: 0,
  11677. answerCount: 0,
  11678. trainCount: 0,
  11679. evalCount: 0,
  11680. dialogImageUrl: "",
  11681. pictureDialog: false,
  11682. toolTypeList: [],
  11683. dialogVisible1: false,
  11684. dialogVisible2: false,
  11685. dialogVisible3: false,
  11686. dialogVisible6: false,
  11687. dialogVisible4: false,
  11688. isNoHomeWork: false,
  11689. dialogVisible5: false,
  11690. dialogVisible5Teacher: false,
  11691. dialogVisibleChoice: false,
  11692. dialogVisibleChoiceTeacher: false,
  11693. answerDialogVisible: false,
  11694. answerDialogVisibleTeacher: false,
  11695. juriVisible: false,
  11696. timeDialogVisible: false,
  11697. replyDialogVisible: false,
  11698. toolDialogVisible: false,
  11699. replyIndex: 0,
  11700. replyPid: "",
  11701. radio: [],
  11702. isAsk: false,
  11703. askJson: {
  11704. askCount: 1,
  11705. askTitle: "",
  11706. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11707. },
  11708. testJson: {},
  11709. checkJson: [],
  11710. askList: [],
  11711. answerList: [],
  11712. navList: [],
  11713. addPzDialog: false,
  11714. pzConText: "",
  11715. worksStudent: [],
  11716. isCloseList: [],
  11717. workStudent: [],
  11718. groupStudent: [],
  11719. groupStudentUid: [],
  11720. noWorksS: [],
  11721. isWorksS: [],
  11722. noWorksStudent: [],
  11723. toolindex: 0,
  11724. toolDetailIndex: null,
  11725. groupIndex: 0,
  11726. workTypeB: false,
  11727. workTypeC: false,
  11728. isAnswer: false,
  11729. isHovered: false,
  11730. isHovered1: false,
  11731. isHovered2: false,
  11732. timer: null,
  11733. opertimer: null,
  11734. showType: 0,
  11735. fileType: 0,
  11736. showPDF: false,
  11737. noteName: "",
  11738. evaJuri: [],
  11739. evalua: "",
  11740. eTitle: "",
  11741. eName: "",
  11742. eJson: {},
  11743. fid: "", //一级
  11744. sid: "", //二级
  11745. tid: "", //二级
  11746. typeMode: 1,
  11747. eJSONNum: 0,
  11748. Etype: 1,
  11749. data: {
  11750. meta: {
  11751. name: "example",
  11752. author: "dd@163.com",
  11753. version: "0.2",
  11754. },
  11755. format: "node_array",
  11756. data: [{ id: "root", isroot: true, topic: "" }],
  11757. },
  11758. fullDialogVisible: false,
  11759. fulltype: "",
  11760. fullUrl: "",
  11761. commentIndexJson: {},
  11762. Stbodywidth: 0,
  11763. ispzType: 0,
  11764. pzType: 1,
  11765. wScore: 0,
  11766. scoreDetail: "",
  11767. videoStart: false,
  11768. recorder: null,
  11769. groupJson: {},
  11770. islock: false,
  11771. groupJson2: {},
  11772. dialogVisibleGroup: false,
  11773. dialogVisibleGroup2: false,
  11774. updateGroupArray: [],
  11775. updateGroupUser: {},
  11776. deleteGroupUser: [],
  11777. deleteGroupArray: {},
  11778. checkChair: "",
  11779. checkDeleteGroup: [],
  11780. inviteCode: "",
  11781. courseGroupStudent: [],
  11782. courseGroupStudentUid: [],
  11783. courseGroup: {},
  11784. isGroup: false,
  11785. // toolIndex: null,
  11786. tool: {},
  11787. isWorkTool: [
  11788. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11789. ], //, 40
  11790. videoJson: {},
  11791. toolType: 0,
  11792. checktoolArray: [],
  11793. vChapterData: [],
  11794. isUpdateToolDetail: false,
  11795. isUpdateToolDetail1: false,
  11796. updateToolDetailInner: "",
  11797. checkboxList: [],
  11798. plIndex: "",
  11799. worksSName2: "",
  11800. worksSid: "",
  11801. wordCloudData: [],
  11802. isPickStudent: [],
  11803. pzStype: 1,
  11804. myAnList: {},
  11805. userMes:{},
  11806. };
  11807. },
  11808. methods: {
  11809. setEnglishList(engList) {
  11810. this.myAnList = engList;
  11811. },
  11812. addToolChoose() {
  11813. if (!this.checktoolArray.length) {
  11814. this.$message.error("请选择要添加的任务");
  11815. return;
  11816. }
  11817. if (
  11818. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11819. this.taskCount
  11820. ].toolChoose[0].tool.length
  11821. ) {
  11822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11823. this.taskCount
  11824. ].toolChoose[0].tool = this.checktoolArray;
  11825. } else {
  11826. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11827. this.taskCount
  11828. ].toolChoose.push({
  11829. tool: this.checktoolArray,
  11830. toolDetail: "",
  11831. toolType: 0,
  11832. askCount: 1,
  11833. askTitle: "",
  11834. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11835. });
  11836. }
  11837. let params = [
  11838. {
  11839. cid: this.id,
  11840. chapters: JSON.stringify(this.chapInfoList),
  11841. uid: this.userid,
  11842. unitIndex: this.courseType,
  11843. },
  11844. ];
  11845. this.ajax
  11846. .post(this.$store.state.api + "updateWorkNew4", params)
  11847. .then((res) => {
  11848. this.$message({
  11849. message: "添加成功",
  11850. type: "success",
  11851. });
  11852. this.checktoolArray = [];
  11853. this.getCourseDetail(2);
  11854. this.checkBz(
  11855. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11856. this.taskCount
  11857. ].toolChoose.length - 1
  11858. );
  11859. this.toolDialogVisible = false;
  11860. this.refreshCourse();
  11861. this.$forceUpdate();
  11862. })
  11863. .catch((err) => {
  11864. console.error(err);
  11865. });
  11866. },
  11867. checkBz(index) {
  11868. this.isUpdateToolDetail = false;
  11869. this.$forceUpdate();
  11870. setTimeout(() => {
  11871. document.scrollingElement.scrollTop =
  11872. document.querySelectorAll(".filebox")[index].offsetTop +
  11873. document.querySelector(".student_body").offsetTop;
  11874. }, 500);
  11875. },
  11876. updateToolDetail(i) {
  11877. this.toolDetailIndex = i;
  11878. if (!this.isUpdateToolDetail1) {
  11879. this.isUpdateToolDetail1 = true;
  11880. this.updateToolDetailInner = JSON.parse(
  11881. JSON.stringify(
  11882. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11883. this.taskCount
  11884. ].toolChoose[i].toolDetail
  11885. )
  11886. );
  11887. } else {
  11888. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11889. this.taskCount
  11890. ].toolChoose[i].toolDetail = JSON.parse(
  11891. JSON.stringify(this.updateToolDetailInner)
  11892. );
  11893. let params = [
  11894. {
  11895. cid: this.id,
  11896. chapters: JSON.stringify(this.chapInfoList),
  11897. uid: this.userid,
  11898. unitIndex: this.courseType,
  11899. },
  11900. ];
  11901. this.ajax
  11902. .post(this.$store.state.api + "updateWorkNew4", params)
  11903. .then((res) => {
  11904. this.isUpdateToolDetail1 = false;
  11905. this.$message({
  11906. message: "修改成功",
  11907. type: "success",
  11908. });
  11909. this.toolDetailIndex = null;
  11910. this.updateToolDetailInner = "";
  11911. this.getCourseDetail(2);
  11912. this.$forceUpdate();
  11913. })
  11914. .catch((err) => {
  11915. console.error(err);
  11916. });
  11917. }
  11918. },
  11919. jumpGj(i, j, k, l) {
  11920. for (var z = 0; z < this.navList.length; z++) {
  11921. for (var q = 0; q < this.navList[z].task.length; q++) {
  11922. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11923. this.navList[z].task[q].tool[w].isTool = false;
  11924. }
  11925. }
  11926. }
  11927. this.navList[i].task[j].tool[k].isTool =
  11928. !this.navList[i].task[j].tool[k].isTool;
  11929. var a = document.scrollingElement;
  11930. let target = document.querySelector(`#gj${k}`);
  11931. if (target) {
  11932. target.scrollIntoView(true);
  11933. setTimeout(() => {
  11934. a.scrollTop = a.scrollTop - 150;
  11935. }, 0);
  11936. }
  11937. if (l) {
  11938. this.courseType = i;
  11939. this.navId = l;
  11940. this.taskCount = j;
  11941. this.selectPz();
  11942. this.getHomeWork();
  11943. this.getCourseDetail(2);
  11944. }
  11945. // var b = this.$refs["bz" + k][0];
  11946. // a.scrollTop = b.offsetTop;
  11947. },
  11948. addTools2(i) {
  11949. if (i == 4) {
  11950. // this.openTools2(4);
  11951. this.$message.error("暂未开放");
  11952. return;
  11953. }
  11954. if (i == 45) {
  11955. // this.openTools2(45);
  11956. this.$message.error("暂未开放");
  11957. return;
  11958. }
  11959. if (i == 47) {
  11960. // this.openTools2(47);
  11961. this.$message.error("暂未开放");
  11962. return;
  11963. }
  11964. if (i == 49) {
  11965. // this.openTools2(49);
  11966. this.$message.error("暂未开放");
  11967. return;
  11968. }
  11969. if (i == 62) {
  11970. // this.openTools(itemTaskIndex, 62, toolIndex);
  11971. this.$message.error("暂未开放");
  11972. return;
  11973. }
  11974. if (i == 15) {
  11975. // this.openTools(itemTaskIndex, 15, toolIndex);
  11976. this.$message.error("暂未开放");
  11977. return;
  11978. }
  11979. if (i == 40) {
  11980. // this.openTools(itemTaskIndex, 40, toolIndex);
  11981. this.$message.error("暂未开放");
  11982. return;
  11983. }
  11984. if (i == 41) {
  11985. // this.openTools(itemTaskIndex, 41, toolIndex);
  11986. this.$message.error("暂未开放");
  11987. return;
  11988. }
  11989. if (i == 42) {
  11990. // this.openTools(itemTaskIndex, 42, toolIndex);
  11991. this.$message.error("暂未开放");
  11992. return;
  11993. }
  11994. if (this.checktoolArray.length > 0) {
  11995. if (this.checktoolArray.indexOf(i) != -1) {
  11996. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11997. } else {
  11998. this.checktoolArray = [];
  11999. this.checktoolArray.push(i);
  12000. }
  12001. } else {
  12002. this.checktoolArray.push(i);
  12003. }
  12004. this.$forceUpdate();
  12005. },
  12006. jump() {
  12007. window.parent.postMessage({ tools: "43" }, "*");
  12008. },
  12009. getUpdateMore(f, checkboxList, searchTN, index) {
  12010. this.dialogVisibleMember = f;
  12011. this.checkboxList = checkboxList;
  12012. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12013. this.plIndex = index;
  12014. },
  12015. setPlname(a) {
  12016. if (this.plworkFile.length) {
  12017. this.plworkFile[this.plIndex].username = a;
  12018. } else {
  12019. this.worksSName = a;
  12020. }
  12021. this.dialogVisibleMember = false;
  12022. },
  12023. previewImg(url) {
  12024. this.$hevueImgPreview(url);
  12025. },
  12026. checkImg(list) {
  12027. if (!list.length) {
  12028. return;
  12029. }
  12030. this.$hevueImgPreview({
  12031. multiple: true, // 开启多图预览模式
  12032. imgList: list, // 需要预览的多图数组
  12033. });
  12034. },
  12035. change(val) {
  12036. console.log(val);
  12037. },
  12038. goTo(path) {
  12039. this.$router.push(path);
  12040. },
  12041. handlePictureCardPreview(url) {
  12042. this.dialogImageUrl = url;
  12043. this.pictureDialog = true;
  12044. },
  12045. clean(type) {
  12046. if (type == 1) {
  12047. this.studyJuri[0].cover.splice(0, 1);
  12048. } else if (type == 2) {
  12049. this.studyJuri[0].upVedio.splice(0, 1);
  12050. } else {
  12051. this.studyJuri[0].upFile.splice(0, 1);
  12052. }
  12053. },
  12054. clean2(index) {
  12055. this.plworkFile.splice(index, 1);
  12056. },
  12057. handleClose(done) {
  12058. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12059. this.videoDetail.sources[0].src = "";
  12060. }
  12061. this.commentIndexJson = {};
  12062. done();
  12063. },
  12064. fullTools() {
  12065. this.full = !this.full;
  12066. },
  12067. imgChange(file, fileList, type) {
  12068. if (type == 1) {
  12069. var _tmp = this.studyJuri[0].cover;
  12070. } else if (type == 2) {
  12071. var _tmp = this.studyJuri[0].upVedio;
  12072. } else {
  12073. var _tmp = this.studyJuri[0].upFile;
  12074. }
  12075. this.noneBtnImg = _tmp.length >= 1;
  12076. },
  12077. setContent(bool) {
  12078. this.contentDialog = bool;
  12079. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12080. document.querySelector(".workd_media").style.height = "650px";
  12081. } else if (document.querySelector(".workd_media")) {
  12082. document.querySelector(".workd_media").style.height = "auto";
  12083. }
  12084. },
  12085. setContent2(bool) {
  12086. this.mlDialog = bool;
  12087. if (
  12088. bool &&
  12089. this.contentDialog &&
  12090. document.querySelector(".workd_media")
  12091. ) {
  12092. document.querySelector(".workd_media").style.height = "650px";
  12093. } else if (document.querySelector(".workd_media")) {
  12094. document.querySelector(".workd_media").style.height = "auto";
  12095. }
  12096. },
  12097. openToolAll() {
  12098. this.toolDialogVisible = true;
  12099. },
  12100. addImg(e) {
  12101. var el = e.currentTarget;
  12102. // this.$message.success('触发上传')
  12103. el.getElementsByTagName("input")[0].click();
  12104. e.target.value = "";
  12105. },
  12106. addSelectAnswer() {
  12107. let params = [
  12108. {
  12109. uid: this.userid,
  12110. cid: this.id,
  12111. stage: this.courseType,
  12112. task: this.taskCount,
  12113. tool: this.toolindex,
  12114. content: this.selectAnswer.answer,
  12115. type: 7,
  12116. },
  12117. ];
  12118. this.ajax
  12119. .post(this.$store.state.api + "addCourseWorks", params)
  12120. .then((res) => {
  12121. this.$message({
  12122. message: "提交成功",
  12123. type: "success",
  12124. });
  12125. this.dialogVisibleSelect = false;
  12126. // this.selectAnswer = {};
  12127. this.selectSWorks();
  12128. this.selectStudent();
  12129. })
  12130. .catch((err) => {
  12131. this.$message.error("提交失败");
  12132. console.error(err);
  12133. });
  12134. },
  12135. addSelectAnswerTeacher() {
  12136. let params = [
  12137. {
  12138. uid: this.sStudent.userid,
  12139. cid: this.id,
  12140. stage: this.courseType,
  12141. task: this.taskCount,
  12142. tool: this.toolindex,
  12143. content: this.selectAnswer.answer,
  12144. type: 7,
  12145. },
  12146. ];
  12147. this.ajax
  12148. .post(this.$store.state.api + "addCourseWorks", params)
  12149. .then((res) => {
  12150. this.$message({
  12151. message: "提交成功",
  12152. type: "success",
  12153. });
  12154. this.dialogVisibleSelectTeacher = false;
  12155. // this.selectAnswer = {};
  12156. this.selectSWorks();
  12157. this.selectStudent();
  12158. })
  12159. .catch((err) => {
  12160. this.$message.error("提交失败");
  12161. console.error(err);
  12162. });
  12163. },
  12164. addSenWorks() {
  12165. for (var i = 0; i < this.sentenceList.length; i++) {
  12166. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12167. if (
  12168. this.sentenceList[i].chooseSenList[j] == undefined ||
  12169. this.sentenceList[i].chooseSenList[j] == ""
  12170. ) {
  12171. this.$message.error("请将答案填写完整!");
  12172. return;
  12173. }
  12174. }
  12175. }
  12176. let params = [
  12177. {
  12178. uid: this.userid,
  12179. cid: this.id,
  12180. stage: this.courseType,
  12181. task: this.taskCount,
  12182. tool: this.toolindex,
  12183. content: JSON.stringify(this.sentenceList),
  12184. type: 9,
  12185. },
  12186. ];
  12187. this.ajax
  12188. .post(this.$store.state.api + "addCourseWorks", params)
  12189. .then((res) => {
  12190. this.$message({
  12191. message: "提交成功",
  12192. type: "success",
  12193. });
  12194. this.dialogVisibleSentence = false;
  12195. // this.selectAnswer = {};
  12196. this.selectSWorks();
  12197. this.selectStudent();
  12198. })
  12199. .catch((err) => {
  12200. this.$message.error("提交失败");
  12201. console.error(err);
  12202. });
  12203. },
  12204. addSenWorksTeacher() {
  12205. for (var i = 0; i < this.sentenceList.length; i++) {
  12206. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12207. if (
  12208. this.sentenceList[i].chooseSenList[j] == undefined ||
  12209. this.sentenceList[i].chooseSenList[j] == ""
  12210. ) {
  12211. this.$message.error("请将答案填写完整!");
  12212. return;
  12213. }
  12214. }
  12215. }
  12216. let params = [
  12217. {
  12218. uid: this.sStudent.userid,
  12219. cid: this.id,
  12220. stage: this.courseType,
  12221. task: this.taskCount,
  12222. tool: this.toolindex,
  12223. content: JSON.stringify(this.sentenceList),
  12224. type: 9,
  12225. },
  12226. ];
  12227. this.ajax
  12228. .post(this.$store.state.api + "addCourseWorks", params)
  12229. .then((res) => {
  12230. this.$message({
  12231. message: "提交成功",
  12232. type: "success",
  12233. });
  12234. this.dialogVisibleSentenceTeacher = false;
  12235. // this.selectAnswer = {};
  12236. this.selectSWorks();
  12237. this.selectStudent();
  12238. })
  12239. .catch((err) => {
  12240. this.$message.error("提交失败");
  12241. console.error(err);
  12242. });
  12243. },
  12244. returnTableText() {
  12245. this.$confirm("确定还原此模板吗?", "提示", {
  12246. confirmButtonText: "确定",
  12247. cancelButtonText: "取消",
  12248. type: "warning",
  12249. })
  12250. .then(() => {
  12251. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12252. })
  12253. .catch(() => {});
  12254. },
  12255. addTableWorks() {
  12256. let params = [
  12257. {
  12258. uid: this.userid,
  12259. cid: this.id,
  12260. stage: this.courseType,
  12261. task: this.taskCount,
  12262. tool: this.toolindex,
  12263. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12264. type: 10,
  12265. },
  12266. ];
  12267. this.ajax
  12268. .post(this.$store.state.api + "addCourseWorks", params)
  12269. .then((res) => {
  12270. this.$message({
  12271. message: "提交成功",
  12272. type: "success",
  12273. });
  12274. this.dialogVisibleTable = false;
  12275. // this.selectAnswer = {};
  12276. this.selectSWorks();
  12277. this.selectStudent();
  12278. })
  12279. .catch((err) => {
  12280. this.$message.error("提交失败");
  12281. console.error(err);
  12282. });
  12283. },
  12284. tableRowClassName({ row, rowIndex }) {
  12285. if ((rowIndex + 1) % 2 === 0) {
  12286. return "even_row";
  12287. } else {
  12288. return "";
  12289. }
  12290. },
  12291. addTableWorksTeacher() {
  12292. let params = [
  12293. {
  12294. uid: this.sStudent.userid,
  12295. cid: this.id,
  12296. stage: this.courseType,
  12297. task: this.taskCount,
  12298. tool: this.toolindex,
  12299. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12300. type: 10,
  12301. },
  12302. ];
  12303. this.ajax
  12304. .post(this.$store.state.api + "addCourseWorks", params)
  12305. .then((res) => {
  12306. this.$message({
  12307. message: "提交成功",
  12308. type: "success",
  12309. });
  12310. this.dialogVisibleTableTeacher = false;
  12311. // this.selectAnswer = {};
  12312. this.selectSWorks();
  12313. this.selectStudent();
  12314. })
  12315. .catch((err) => {
  12316. this.$message.error("提交失败");
  12317. console.error(err);
  12318. });
  12319. },
  12320. returnWordText() {
  12321. this.$confirm("确定还原此模板吗?", "提示", {
  12322. confirmButtonText: "确定",
  12323. cancelButtonText: "取消",
  12324. type: "warning",
  12325. })
  12326. .then(() => {
  12327. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12328. })
  12329. .catch(() => {});
  12330. },
  12331. addWordWorks() {
  12332. let params = [
  12333. {
  12334. uid: this.userid,
  12335. cid: this.id,
  12336. stage: this.courseType,
  12337. task: this.taskCount,
  12338. tool: this.toolindex,
  12339. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12340. type: 13,
  12341. atool: 52,
  12342. },
  12343. ];
  12344. this.ajax
  12345. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12346. .then((res) => {
  12347. this.$message({
  12348. message: "提交成功",
  12349. type: "success",
  12350. });
  12351. this.dialogVisibleWord = false;
  12352. // this.selectAnswer = {};
  12353. this.selectSWorks();
  12354. this.selectStudent();
  12355. })
  12356. .catch((err) => {
  12357. this.$message.error("提交失败");
  12358. console.error(err);
  12359. });
  12360. },
  12361. addWordWorksTeacher() {
  12362. let params = [
  12363. {
  12364. uid: this.sStudent.userid,
  12365. cid: this.id,
  12366. stage: this.courseType,
  12367. task: this.taskCount,
  12368. tool: this.toolindex,
  12369. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12370. type: 13,
  12371. atool: 52,
  12372. },
  12373. ];
  12374. this.ajax
  12375. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12376. .then((res) => {
  12377. this.$message({
  12378. message: "提交成功",
  12379. type: "success",
  12380. });
  12381. this.dialogVisibleWordTeacher = false;
  12382. // this.selectAnswer = {};
  12383. this.selectSWorks();
  12384. this.selectStudent();
  12385. })
  12386. .catch((err) => {
  12387. this.$message.error("提交失败");
  12388. console.error(err);
  12389. });
  12390. },
  12391. addCourseWorks(i) {
  12392. var typesql;
  12393. if (this.fileType === 0) {
  12394. typesql = 1;
  12395. } else if (this.fileType === 1) {
  12396. typesql = 4;
  12397. } else if (this.fileType === 2) {
  12398. typesql = 5;
  12399. } else if (this.fileType === 3) {
  12400. typesql = 12;
  12401. }
  12402. if (!this.studyJuri[0].cover[0].url) {
  12403. this.$message.error("请上传文件");
  12404. return;
  12405. }
  12406. let params = [
  12407. {
  12408. uid: this.userid,
  12409. cid: this.id,
  12410. stage: this.courseType,
  12411. task: i,
  12412. tool: this.toolindex,
  12413. content: this.studyJuri[0].cover[0].url,
  12414. type: typesql,
  12415. },
  12416. ];
  12417. this.ajax
  12418. .post(this.$store.state.api + "addCourseWorksR", params)
  12419. .then((res) => {
  12420. this.$message({
  12421. message: "提交成功",
  12422. type: "success",
  12423. });
  12424. this.studyJuri[0].cover = [];
  12425. this.dialogVisible = false;
  12426. this.getCourseDetail(2);
  12427. })
  12428. .catch((err) => {
  12429. this.$message.error("提交失败");
  12430. console.error(err);
  12431. });
  12432. },
  12433. addCourseWorksPl(i) {
  12434. let _files = this.plworkFile;
  12435. var c = 1;
  12436. for (var k = 0; k < _files.length; k++) {
  12437. if (!_files[k].username) {
  12438. c = 2;
  12439. }
  12440. }
  12441. if (c == 2) {
  12442. this.$message.error("请填写学生姓名");
  12443. return;
  12444. }
  12445. let params = [
  12446. {
  12447. ateacher: this.userid,
  12448. cid: this.id,
  12449. stage: this.courseType,
  12450. task: i,
  12451. tool: this.toolindex,
  12452. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12453. },
  12454. ];
  12455. this.ajax
  12456. .post(this.$store.state.api + "addCourseWorksPl", params)
  12457. .then((res) => {
  12458. this.$message({
  12459. message: "提交成功",
  12460. type: "success",
  12461. });
  12462. this.plworkFile = [];
  12463. this.dialogVisiblePl = false;
  12464. this.getCourseDetail(2);
  12465. })
  12466. .catch((err) => {
  12467. this.$message.error("提交失败");
  12468. console.error(err);
  12469. });
  12470. },
  12471. addCourseWorks2(i) {
  12472. var typesql;
  12473. if (this.fileType === 0) {
  12474. typesql = 0;
  12475. } else if (this.fileType === 1) {
  12476. typesql = 1;
  12477. } else if (this.fileType === 2) {
  12478. typesql = 3;
  12479. } else if (this.fileType === 3) {
  12480. typesql = 12;
  12481. }
  12482. if (!this.studyJuri[0].cover[0].url) {
  12483. this.$message.error("请上传文件");
  12484. return;
  12485. }
  12486. let params = [
  12487. {
  12488. uid: this.userid,
  12489. cid: this.id,
  12490. stage: this.courseType,
  12491. task: i,
  12492. tool: this.toolindex,
  12493. content: JSON.stringify({
  12494. type: typesql,
  12495. groupIndex: this.groupIndex,
  12496. url: this.studyJuri[0].cover[0].url,
  12497. }).replaceAll(/%/g, "%25"),
  12498. type: 11,
  12499. atool: 49,
  12500. text: "",
  12501. },
  12502. ];
  12503. this.ajax
  12504. .post(this.$store.state.api + "addCourseWorks5", params)
  12505. .then((res) => {
  12506. this.$message({
  12507. message: "提交成功",
  12508. type: "success",
  12509. });
  12510. this.studyJuri[0].cover = [];
  12511. this.dialogVisibleGroupWork = false;
  12512. this.getCourseDetail(2);
  12513. })
  12514. .catch((err) => {
  12515. this.$message.error("提交失败");
  12516. console.error(err);
  12517. });
  12518. },
  12519. addEnglishWork() {
  12520. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12521. this.$message.error("请输入作文标题和正文!");
  12522. return;
  12523. }
  12524. let params = [
  12525. {
  12526. uid: this.userid,
  12527. cid: this.id,
  12528. stage: this.courseType,
  12529. task: this.taskCount,
  12530. tool: this.englishToolIndex,
  12531. content: JSON.stringify(this.myAnList),
  12532. type: 16,
  12533. atool: 69,
  12534. text: "",
  12535. },
  12536. ];
  12537. this.ajax
  12538. .post(this.$store.state.api + "addCourseWorks5", params)
  12539. .then((res) => {
  12540. this.$message({
  12541. message: "提交成功",
  12542. type: "success",
  12543. });
  12544. this.myAnList = {};
  12545. this.englishList = {};
  12546. this.englishToolIndex = 0;
  12547. this.engDialogVisible = false;
  12548. this.selectSWorks();
  12549. this.selectStudent();
  12550. })
  12551. .catch((err) => {
  12552. this.$message.error("提交失败");
  12553. console.error(err);
  12554. });
  12555. },
  12556. addCourseWorksGong(i, data, tool) {
  12557. let params = [
  12558. {
  12559. uid: this.userid,
  12560. cid: this.id,
  12561. stage: this.courseType,
  12562. task: this.taskCount,
  12563. tool: i,
  12564. content: data,
  12565. type: 12,
  12566. atool: tool,
  12567. text: "",
  12568. },
  12569. ];
  12570. this.ajax
  12571. .post(this.$store.state.api + "addCourseWorks5", params)
  12572. .then((res) => {
  12573. this.$message({
  12574. message: "提交成功",
  12575. type: "success",
  12576. });
  12577. this.studyJuri[0].cover = [];
  12578. this.selectSWorks();
  12579. this.selectStudent();
  12580. })
  12581. .catch((err) => {
  12582. this.$message.error("提交失败");
  12583. console.error(err);
  12584. });
  12585. },
  12586. addCourseWorksGongTeacher(i, data, tool) {
  12587. let params = [
  12588. {
  12589. uid: this.sStudent.userid,
  12590. cid: this.id,
  12591. stage: this.courseType,
  12592. task: this.taskCount,
  12593. tool: i,
  12594. content: data,
  12595. type: 12,
  12596. atool: tool,
  12597. text: "",
  12598. },
  12599. ];
  12600. this.ajax
  12601. .post(this.$store.state.api + "addCourseWorks5", params)
  12602. .then((res) => {
  12603. this.$message({
  12604. message: "提交成功",
  12605. type: "success",
  12606. });
  12607. this.studyJuri[0].cover = [];
  12608. this.dialogVisibleWorks = false;
  12609. this.selectSWorks();
  12610. this.selectStudent();
  12611. })
  12612. .catch((err) => {
  12613. this.$message.error("提交失败");
  12614. console.error(err);
  12615. });
  12616. },
  12617. addCourseWorksGongPl(i, data, tool, type) {
  12618. let params = [
  12619. {
  12620. uid: this.sStudent.userid,
  12621. cid: this.id,
  12622. stage: this.courseType,
  12623. task: this.taskCount,
  12624. tool: i,
  12625. content: data,
  12626. type: type,
  12627. atool: tool,
  12628. text: "",
  12629. },
  12630. ];
  12631. this.ajax
  12632. .post(this.$store.state.api + "addCourseWorks5", params)
  12633. .then((res) => {
  12634. this.$message({
  12635. message: "提交成功",
  12636. type: "success",
  12637. });
  12638. this.studyJuri[0].cover = [];
  12639. this.dialogVisibleWorks = false;
  12640. this.selectSWorks();
  12641. this.selectStudent();
  12642. })
  12643. .catch((err) => {
  12644. this.$message.error("提交失败");
  12645. console.error(err);
  12646. });
  12647. },
  12648. addCourseWorksTeacher(i) {
  12649. var typesql;
  12650. if (this.sTool == 32) {
  12651. this.addCourseWorksGongTeacher(
  12652. this.toolindex,
  12653. this.studyJuri[0].cover[0].url,
  12654. this.sTool
  12655. );
  12656. return;
  12657. }
  12658. if (this.fileType === 0) {
  12659. typesql = 1;
  12660. } else if (this.fileType === 1) {
  12661. typesql = 4;
  12662. } else if (this.fileType === 2) {
  12663. typesql = 5;
  12664. } else if (this.fileType === 3) {
  12665. typesql = 12;
  12666. }
  12667. if (this.sTool == 50) {
  12668. this.addCourseWorksGongPl(
  12669. this.toolindex,
  12670. this.studyJuri[0].cover[0].url,
  12671. this.sTool,
  12672. typesql
  12673. );
  12674. return;
  12675. }
  12676. if (!this.studyJuri[0].cover[0].url) {
  12677. this.$message.error("请上传文件");
  12678. return;
  12679. }
  12680. let params = [
  12681. {
  12682. uid: this.sStudent.userid,
  12683. cid: this.id,
  12684. stage: this.courseType,
  12685. task: i,
  12686. tool: this.toolindex,
  12687. content: this.studyJuri[0].cover[0].url,
  12688. type: typesql,
  12689. ateacher: this.userid,
  12690. },
  12691. ];
  12692. this.ajax
  12693. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12694. .then((res) => {
  12695. this.$message({
  12696. message: "提交成功",
  12697. type: "success",
  12698. });
  12699. this.studyJuri[0].cover = [];
  12700. this.dialogVisibleWorks = false;
  12701. this.getCourseDetail(2);
  12702. })
  12703. .catch((err) => {
  12704. this.$message.error("提交失败");
  12705. console.error(err);
  12706. });
  12707. },
  12708. selectUploadStudent(type) {
  12709. const loading = this.$loading.service({
  12710. background: "rgba(255, 255, 255, 0.7)",
  12711. target: document.body,
  12712. });
  12713. let params = {
  12714. cid: this.uploadCid,
  12715. oid: this.oid,
  12716. cn: "",
  12717. };
  12718. this.ajax
  12719. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12720. .then((res) => {
  12721. loading.close();
  12722. var studentK = [];
  12723. if (this.isWorksS[this.toolindex].length > 0) {
  12724. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12725. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12726. }
  12727. studentK = studentK.join(",");
  12728. }
  12729. this.uploadStudentJuri = res.data[0].filter((el) => {
  12730. return studentK.indexOf(el.userid) == -1;
  12731. });
  12732. if (this.worksSName && this.worksSid) {
  12733. this.uploadStudentJuri.push({
  12734. userid: this.worksSid,
  12735. name: this.worksSName,
  12736. });
  12737. }
  12738. if (type == 1) {
  12739. this.plworkFile = [];
  12740. this.dialogVisibleSname = true;
  12741. } else if (type == 2) {
  12742. this.dialogVisiblePl = true;
  12743. }
  12744. })
  12745. .catch((err) => {
  12746. loading.close();
  12747. console.error(err);
  12748. });
  12749. },
  12750. selectPickStudent() {
  12751. const loading = this.$loading.service({
  12752. background: "rgba(255, 255, 255, 0.7)",
  12753. target: document.body,
  12754. });
  12755. let params = {
  12756. cid: this.uploadCid,
  12757. oid: this.oid,
  12758. cn: "",
  12759. };
  12760. this.ajax
  12761. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12762. .then((res) => {
  12763. loading.close();
  12764. this.uploadStudentJuri = res.data[0];
  12765. this.dialogVisiblePickPeople = true;
  12766. })
  12767. .catch((err) => {
  12768. loading.close();
  12769. console.error(err);
  12770. });
  12771. },
  12772. arrayToArray(arrayo, arrayt) {
  12773. let array1 = arrayo;
  12774. let array2 = arrayt;
  12775. let commonElements = [];
  12776. for (let i = 0; i < array1.length; i++) {
  12777. for (let j = 0; j < array2.length; j++) {
  12778. if (array1[i] === array2[j]) {
  12779. commonElements.push(array1[i]);
  12780. }
  12781. }
  12782. }
  12783. return commonElements;
  12784. },
  12785. selectWorksStudent() {
  12786. let params = {
  12787. oid: this.oid,
  12788. cid: this.courseDetail.juri,
  12789. };
  12790. this.ajax
  12791. .get(this.$store.state.api + "selectWorksStudent", params)
  12792. .then((res) => {
  12793. var a = res.data[0];
  12794. for (var i = 0; i < this.isWorksS.length; i++) {
  12795. this.noWorksS[i] = [];
  12796. var studentK = [];
  12797. if (this.isWorksS[i].length > 0) {
  12798. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12799. studentK.push(this.isWorksS[i][z].uid);
  12800. }
  12801. studentK = studentK.join(",");
  12802. for (var j = 0; j < a.length; j++) {
  12803. if (studentK.indexOf(a[j].userid) == -1) {
  12804. if (this.tcid) {
  12805. // a[j].classid.indexOf(this.tcid) != -1
  12806. if (
  12807. this.arrayToArray(
  12808. a[j].classid.split(","),
  12809. this.tcid.split(",")
  12810. ).length
  12811. ) {
  12812. this.noWorksS[i].push({
  12813. student: a[j].name,
  12814. userid: a[j].userid,
  12815. });
  12816. }
  12817. } else {
  12818. this.noWorksS[i].push({
  12819. student: a[j].name,
  12820. userid: a[j].userid,
  12821. });
  12822. }
  12823. }
  12824. }
  12825. } else {
  12826. for (var k = 0; k < a.length; k++) {
  12827. if (this.tcid) {
  12828. if (
  12829. this.arrayToArray(
  12830. a[k].classid.split(","),
  12831. this.tcid.split(",")
  12832. ).length
  12833. ) {
  12834. this.noWorksS[i].push({
  12835. student: a[k].name,
  12836. userid: a[k].userid,
  12837. });
  12838. }
  12839. } else {
  12840. this.noWorksS[i].push({
  12841. student: a[k].name,
  12842. userid: a[k].userid,
  12843. });
  12844. }
  12845. }
  12846. }
  12847. }
  12848. this.$forceUpdate();
  12849. if (
  12850. Object.keys(this.commentDetail).length &&
  12851. Object.keys(this.commentIndexJson).length &&
  12852. !this.dialogVisibleScore
  12853. ) {
  12854. let a = 1;
  12855. let c = this.commentIndexJson;
  12856. if (
  12857. this.commentIndexJson.gindex ||
  12858. this.commentIndexJson.gindex === 0
  12859. ) {
  12860. for (
  12861. var i = 0;
  12862. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12863. i++
  12864. ) {
  12865. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12866. groupA: for (var k = 0; k < _el.length; k++) {
  12867. let el = _el[k];
  12868. if (el.wid == this.commentDetail.wid) {
  12869. a = 2;
  12870. this.commentOther(
  12871. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12872. this.commentIndexJson.toolIndex,
  12873. k,
  12874. this.commentIndexJson.gindex
  12875. );
  12876. break groupA;
  12877. }
  12878. }
  12879. }
  12880. if (a === 1) {
  12881. this.commentDetail = [];
  12882. this.commentIndexJson = {};
  12883. this.commentDialogVisible = false;
  12884. this.$message("此作业已被删除");
  12885. }
  12886. } else {
  12887. if (this.isGroup && this.commentIndexJson.gid) {
  12888. groupA: for (
  12889. var i = 0;
  12890. i < this.courseGroup.group.length;
  12891. i++
  12892. ) {
  12893. let _group = this.courseGroup.group[i];
  12894. if (_group.id == this.commentIndexJson.gid) {
  12895. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12896. for (var k = 0; k < _el2.length; k++) {
  12897. let el2 = _el2[k];
  12898. if (el2.wid == this.commentDetail.wid) {
  12899. a = 2;
  12900. this.commentOther(
  12901. _el2[k],
  12902. this.commentIndexJson.toolIndex,
  12903. k,
  12904. null,
  12905. this.commentIndexJson.gid
  12906. );
  12907. break groupA;
  12908. }
  12909. }
  12910. }
  12911. }
  12912. }
  12913. if (a == 1) {
  12914. for (
  12915. var i = 0;
  12916. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12917. i++
  12918. ) {
  12919. let el =
  12920. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12921. if (el.wid == this.commentDetail.wid) {
  12922. a = 2;
  12923. this.commentOther(
  12924. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12925. this.commentIndexJson.toolIndex,
  12926. i
  12927. );
  12928. break;
  12929. }
  12930. }
  12931. }
  12932. if (a === 1) {
  12933. this.commentDetail = [];
  12934. this.commentIndexJson = {};
  12935. this.commentDialogVisible = false;
  12936. this.$message("此作业已被删除");
  12937. }
  12938. }
  12939. }
  12940. })
  12941. .catch((err) => {
  12942. console.error(err);
  12943. });
  12944. },
  12945. selectStudent() {
  12946. //学生查看自己作业
  12947. let params = {
  12948. uid: this.userid,
  12949. cid: this.id,
  12950. s: this.courseType,
  12951. t: this.taskCount,
  12952. };
  12953. this.ajax
  12954. .get(this.$store.state.api + "selectStudentWorks", params)
  12955. .then((res) => {
  12956. var a =
  12957. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12958. this.taskCount
  12959. ].toolChoose;
  12960. var b = res.data[0];
  12961. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12962. var y = [
  12963. "AVI",
  12964. "NAVI",
  12965. "MPEG",
  12966. "ASF",
  12967. "MOV",
  12968. "WMV",
  12969. "3GP",
  12970. "RM",
  12971. "RMVB",
  12972. "FLV",
  12973. "F4V",
  12974. "H.264",
  12975. "H.265",
  12976. "REAL VIDEO",
  12977. "MKV",
  12978. "WebM",
  12979. "HDDVD",
  12980. "MP4",
  12981. "MPG",
  12982. "M4V",
  12983. "MGV",
  12984. "OGV",
  12985. "QTM",
  12986. "STR",
  12987. "AMC",
  12988. "DVX",
  12989. "EVO",
  12990. "DAT",
  12991. "OGG",
  12992. "OGM",
  12993. ];
  12994. for (var i = 0; i < a.length; i++) {
  12995. this.workStudent[i] = [];
  12996. for (var j = 0; j < b.length; j++) {
  12997. if (i == b[j].tool) {
  12998. if (
  12999. (b[j].type == 1 ||
  13000. b[j].type == 4 ||
  13001. b[j].type == 5 ||
  13002. b[j].type == 6 ||
  13003. b[j].type == 12 ||
  13004. b[j].type == 7) &&
  13005. a[i].tool[0] != 15 &&
  13006. a[i].tool[0] != 4 &&
  13007. a[i].tool[0] != 45 &&
  13008. a[i].tool[0] != 50 &&
  13009. a[i].tool[0] != 32 &&
  13010. a[i].tool[0] != 57 &&
  13011. a[i].tool[0] != 52 &&
  13012. a[i].tool[0] != 69
  13013. ) {
  13014. if (
  13015. c.indexOf(
  13016. b[j].content
  13017. .split(".")
  13018. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13019. ) != -1 &&
  13020. a[i].tool[0] == 16 &&
  13021. b[j].atool != 50
  13022. ) {
  13023. this.workStudent[i].push({
  13024. works: b[j].content,
  13025. sName: b[j].name,
  13026. score: b[j].score,
  13027. img: b[j].img,
  13028. type: 1,
  13029. time: b[j].time,
  13030. userid: b[j].userid,
  13031. wid: b[j].id,
  13032. });
  13033. } else if (
  13034. y.indexOf(
  13035. b[j].content
  13036. .split(".")
  13037. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13038. ) != -1 &&
  13039. a[i].tool[0] == 16 &&
  13040. b[j].atool != 50
  13041. ) {
  13042. this.workStudent[i].push({
  13043. userid: b[j].userid,
  13044. wid: b[j].id,
  13045. works: b[j].content,
  13046. sName: b[j].name,
  13047. score: b[j].score,
  13048. img: b[j].img,
  13049. type: 3,
  13050. time: b[j].time,
  13051. });
  13052. } else if (b[j].type == 6 && b[j].atool != 50) {
  13053. this.workStudent[i].push({
  13054. userid: b[j].userid,
  13055. wid: b[j].id,
  13056. works: b[j].content,
  13057. sName: b[j].name,
  13058. score: b[j].score,
  13059. img: b[j].img,
  13060. type: 4,
  13061. time: b[j].time,
  13062. });
  13063. } else if (b[j].type == 7 && b[j].atool != 50) {
  13064. this.workStudent[i].push({
  13065. userid: b[j].userid,
  13066. wid: b[j].id,
  13067. works: b[j].content,
  13068. sName: b[j].name,
  13069. score: b[j].score,
  13070. img: b[j].img,
  13071. type: 5,
  13072. time: b[j].time,
  13073. });
  13074. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13075. this.workStudent[i].push({
  13076. works: b[j].content,
  13077. sName: b[j].name,
  13078. score: b[j].score,
  13079. img: b[j].img,
  13080. type: 12,
  13081. time: b[j].time,
  13082. userid: b[j].userid,
  13083. wid: b[j].id,
  13084. });
  13085. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13086. this.workStudent[i].push({
  13087. works: b[j].content,
  13088. sName: b[j].name,
  13089. score: b[j].score,
  13090. img: b[j].img,
  13091. type: 0,
  13092. time: b[j].time,
  13093. userid: b[j].userid,
  13094. wid: b[j].id,
  13095. });
  13096. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13097. this.workStudent[i].push({
  13098. works: b[j].content,
  13099. sName: b[j].name,
  13100. score: b[j].score,
  13101. img: b[j].img,
  13102. type: 0,
  13103. time: b[j].time,
  13104. userid: b[j].userid,
  13105. wid: b[j].id,
  13106. });
  13107. }
  13108. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13109. this.workStudent[i].push({
  13110. works: b[j].content,
  13111. sName: b[j].name,
  13112. score: b[j].score,
  13113. img: b[j].img,
  13114. type: 2,
  13115. time: b[j].time,
  13116. userid: b[j].userid,
  13117. wid: b[j].id,
  13118. });
  13119. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13120. //问卷
  13121. this.workStudent[i].push({
  13122. works: b[j].content,
  13123. sName: b[j].name,
  13124. score: b[j].score,
  13125. img: b[j].img,
  13126. type: 2,
  13127. time: b[j].time,
  13128. userid: b[j].userid,
  13129. wid: b[j].id,
  13130. });
  13131. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13132. //选择题
  13133. this.workStudent[i].push({
  13134. works: b[j].content,
  13135. sName: b[j].name,
  13136. score: b[j].score,
  13137. img: b[j].img,
  13138. type: 8,
  13139. time: b[j].time,
  13140. userid: b[j].userid,
  13141. wid: b[j].id,
  13142. });
  13143. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13144. //选择题
  13145. this.workStudent[i].push({
  13146. works: b[j].content,
  13147. sName: b[j].name,
  13148. score: b[j].score,
  13149. img: b[j].img,
  13150. type: 9,
  13151. time: b[j].time,
  13152. userid: b[j].userid,
  13153. wid: b[j].id,
  13154. });
  13155. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13156. //选择题
  13157. this.workStudent[i].push({
  13158. works: b[j].content,
  13159. sName: b[j].name,
  13160. score: b[j].score,
  13161. img: b[j].img,
  13162. type: 10,
  13163. time: b[j].time,
  13164. userid: b[j].userid,
  13165. wid: b[j].id,
  13166. });
  13167. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13168. //选择题
  13169. this.workStudent[i].push({
  13170. works: b[j].content,
  13171. sName: b[j].name,
  13172. score: b[j].score,
  13173. img: b[j].img,
  13174. type: 13,
  13175. time: b[j].time,
  13176. userid: b[j].userid,
  13177. wid: b[j].id,
  13178. });
  13179. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13180. //选择题
  13181. this.workStudent[i].push({
  13182. works: b[j].content,
  13183. sName: b[j].name,
  13184. score: b[j].score,
  13185. img: b[j].img,
  13186. type: 12,
  13187. time: b[j].time,
  13188. userid: b[j].userid,
  13189. wid: b[j].id,
  13190. });
  13191. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13192. //选择题
  13193. this.workStudent[i].push({
  13194. works: b[j].content,
  13195. sName: b[j].name,
  13196. score: b[j].score,
  13197. img: b[j].img,
  13198. type: 12,
  13199. time: b[j].time,
  13200. userid: b[j].userid,
  13201. wid: b[j].id,
  13202. });
  13203. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13204. //选择题
  13205. this.workStudent[i].push({
  13206. works: b[j].content,
  13207. sName: b[j].name,
  13208. score: b[j].score,
  13209. img: b[j].img,
  13210. type: 15,
  13211. time: b[j].time,
  13212. userid: b[j].userid,
  13213. wid: b[j].id,
  13214. });
  13215. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13216. //英语写作
  13217. this.workStudent[i].push({
  13218. works: b[j].content,
  13219. sName: b[j].name,
  13220. score: b[j].score,
  13221. img: b[j].img,
  13222. type: 16,
  13223. time: b[j].time,
  13224. userid: b[j].userid,
  13225. wid: b[j].id,
  13226. });
  13227. }
  13228. }
  13229. }
  13230. }
  13231. })
  13232. .catch((err) => {
  13233. console.error(err);
  13234. });
  13235. },
  13236. openVideo(w) {
  13237. this.videoDetail = {};
  13238. this.playerOptions1.sources[0].src = w.works;
  13239. this.videoDetail = this.playerOptions1;
  13240. this.videoVisible = true;
  13241. },
  13242. isLikes(wid, uid, t, c, isLikes) {
  13243. if (isLikes == false) {
  13244. let params = [
  13245. {
  13246. wid: wid,
  13247. lid: uid,
  13248. t: t,
  13249. c: c,
  13250. },
  13251. ];
  13252. this.ajax
  13253. .post(this.$store.state.api + "insertComment", params)
  13254. .then((res) => {
  13255. this.$message({
  13256. message: "点赞成功",
  13257. type: "success",
  13258. });
  13259. this.selectSWorks();
  13260. this.selectStudent();
  13261. })
  13262. .catch((err) => {
  13263. this.$message.error("点赞失败");
  13264. console.error(err);
  13265. });
  13266. } else {
  13267. let params = {
  13268. wid: wid,
  13269. lid: uid,
  13270. type: t,
  13271. };
  13272. this.ajax
  13273. .get(this.$store.state.api + "deleteComment", params)
  13274. .then((res) => {
  13275. this.$message({
  13276. message: "取消点赞成功",
  13277. type: "success",
  13278. });
  13279. this.selectSWorks();
  13280. this.selectStudent();
  13281. })
  13282. .catch((err) => {
  13283. console.error(err);
  13284. });
  13285. }
  13286. },
  13287. deleteComment(wid) {
  13288. this.$confirm("确定删除此评论吗?", "提示", {
  13289. confirmButtonText: "确定",
  13290. cancelButtonText: "取消",
  13291. type: "warning",
  13292. })
  13293. .then(() => {
  13294. let params = {
  13295. id: wid,
  13296. };
  13297. this.ajax
  13298. .get(this.$store.state.api + "deleteComment2", params)
  13299. .then((res) => {
  13300. this.$message({
  13301. message: "删除评论成功",
  13302. type: "success",
  13303. });
  13304. this.selectSWorks();
  13305. this.selectStudent();
  13306. })
  13307. .catch((err) => {
  13308. console.error(err);
  13309. });
  13310. })
  13311. .catch(() => {});
  13312. },
  13313. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13314. this.commentIndexJson = {
  13315. toolIndex: toolIndex,
  13316. wIndex: wIndex,
  13317. gindex: gindex,
  13318. gid: gid,
  13319. };
  13320. this.commentDetail = [];
  13321. this.commentDialogVisible = true;
  13322. this.commentDetail = w;
  13323. if (w.works && w.type == 1) {
  13324. this.pptImgUrl = "";
  13325. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13326. if (
  13327. a.indexOf(
  13328. w.works
  13329. .split(".")
  13330. [w.works.split(".").length - 1].toLocaleUpperCase()
  13331. ) != -1
  13332. ) {
  13333. this.pptImgUrl =
  13334. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13335. this.showPDF = false;
  13336. } else if (
  13337. w.works
  13338. .split(".")
  13339. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13340. ) {
  13341. this.pptImgUrl = w.works;
  13342. this.showPDF = true;
  13343. }
  13344. } else if (w.works && w.type == 3) {
  13345. this.videoDetail = {};
  13346. this.playerOptions1.sources[0].src = w.works;
  13347. this.videoDetail = this.playerOptions1;
  13348. // this.videoVisible = true;
  13349. } else if (w.works && w.type == 4) {
  13350. this.eScore = JSON.parse(w.works);
  13351. this.rateJson =
  13352. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13353. this.taskCount
  13354. ].toolChoose[toolIndex].rateJson;
  13355. } else if (w.works && w.type == 10) {
  13356. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13357. } else if (w.works && w.type == 13) {
  13358. this.wordJson =
  13359. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13360. this.taskCount
  13361. ].toolChoose[toolIndex].wordJson;
  13362. }
  13363. },
  13364. openScore(w) {
  13365. this.wScore = 0;
  13366. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13367. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13368. this.commentDetail = [];
  13369. this.dialogVisibleScore = true;
  13370. this.commentDetail = w;
  13371. if (w.works && w.type == 1) {
  13372. this.pptImgUrl = "";
  13373. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13374. if (
  13375. a.indexOf(
  13376. w.works
  13377. .split(".")
  13378. [w.works.split(".").length - 1].toLocaleUpperCase()
  13379. ) != -1
  13380. ) {
  13381. this.pptImgUrl =
  13382. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13383. this.showPDF = false;
  13384. } else if (
  13385. w.works
  13386. .split(".")
  13387. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13388. ) {
  13389. this.pptImgUrl = w.works;
  13390. this.showPDF = true;
  13391. }
  13392. } else if (w.works && w.type == 3) {
  13393. this.videoDetail = {};
  13394. this.playerOptions1.sources[0].src = w.works;
  13395. this.videoDetail = this.playerOptions1;
  13396. }
  13397. },
  13398. addComment(wid, uid, t) {
  13399. if (this.commentText == "") {
  13400. this.$message.error("请输入评论");
  13401. return;
  13402. }
  13403. let params2 = [
  13404. {
  13405. wid: wid,
  13406. lid: uid,
  13407. t: t,
  13408. },
  13409. ];
  13410. this.ajax
  13411. .post(this.$store.state.api + "getComment", params2)
  13412. .then((res) => {
  13413. if (res.data[0].length > 0) {
  13414. this.$message.error("一个作业只能评论一条");
  13415. } else {
  13416. let params = [
  13417. {
  13418. wid: wid,
  13419. lid: uid,
  13420. t: t,
  13421. c: this.commentText,
  13422. },
  13423. ];
  13424. this.ajax
  13425. .post(this.$store.state.api + "insertComment", params)
  13426. .then((res) => {
  13427. this.$message({
  13428. message: "评论成功",
  13429. type: "success",
  13430. });
  13431. this.commentText = "";
  13432. this.selectSWorks();
  13433. this.selectStudent();
  13434. })
  13435. .catch((err) => {
  13436. this.$message.error("评论失败");
  13437. console.error(err);
  13438. });
  13439. }
  13440. })
  13441. .catch((err) => {
  13442. // this.$message.error("评论失败");
  13443. console.error(err);
  13444. });
  13445. },
  13446. scoreWork(wid) {
  13447. if (this.wScore == 0) {
  13448. this.$message.error("请评分");
  13449. return;
  13450. }
  13451. let params = [
  13452. {
  13453. wid: wid,
  13454. score: JSON.stringify({
  13455. wScore: this.wScore,
  13456. detail: this.scoreDetail,
  13457. }),
  13458. },
  13459. ];
  13460. this.ajax
  13461. .post(this.$store.state.api + "scoreWork", params)
  13462. .then((res) => {
  13463. this.$message({
  13464. message: "评分成功",
  13465. type: "success",
  13466. });
  13467. this.wScore = 0;
  13468. this.scoreDetail = "";
  13469. this.dialogVisibleScore = false;
  13470. this.selectSWorks();
  13471. this.selectStudent();
  13472. })
  13473. .catch((err) => {
  13474. this.$message.error("评分失败");
  13475. console.error(err);
  13476. });
  13477. },
  13478. openXz(w, i) {
  13479. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13480. .taskJson[this.taskCount].toolChoose[i].selectJson
  13481. ? JSON.parse(
  13482. JSON.stringify(
  13483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13484. this.taskCount
  13485. ].toolChoose[i].selectJson
  13486. )
  13487. )
  13488. : { url: "", select: [], answer: [] };
  13489. var a = w.works.split(",");
  13490. for (var k = 0; k < a.length; k++) {
  13491. a[k] = parseInt(a[k]);
  13492. }
  13493. this.selectAnswer = { answer: a, stu: w.sName };
  13494. this.isSelect = true;
  13495. this.dialogVisibleSelect = true;
  13496. },
  13497. openSen(w, i) {
  13498. this.sentenceList1 = JSON.parse(w.works);
  13499. this.sentenceList1.stuName = w.sName;
  13500. this.dialogVisibleSentence1 = true;
  13501. },
  13502. openPj(w, toolindex) {
  13503. this.isStar = true;
  13504. this.eScore = JSON.parse(w);
  13505. this.rateJson =
  13506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13507. this.taskCount
  13508. ].toolChoose[toolindex].rateJson;
  13509. this.studentEvalDialogVisible = true;
  13510. },
  13511. openEnglishEva(id,i){
  13512. let params = {
  13513. wid: id
  13514. };
  13515. this.ajax
  13516. .get(this.$store.state.api + "selectEngWork", params)
  13517. .then((res) => {
  13518. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13519. this.evaEngJson.username = res.data[0][0].username;
  13520. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13521. .toolChoose[i].englishList;
  13522. this.engEvaDialogVisible = true;
  13523. })
  13524. .catch((err) => {
  13525. console.error(err);
  13526. });
  13527. },
  13528. deleteWorks(id) {
  13529. this.$confirm("确定删除此作业吗?", "提示", {
  13530. confirmButtonText: "确定",
  13531. cancelButtonText: "取消",
  13532. type: "warning",
  13533. })
  13534. .then(() => {
  13535. let params = [
  13536. {
  13537. id: id,
  13538. },
  13539. ];
  13540. this.ajax
  13541. .post(this.$store.state.api + "deleteCourseWork", params)
  13542. .then((res) => {
  13543. this.$message({
  13544. message: "删除成功",
  13545. type: "success",
  13546. });
  13547. this.selectStudent();
  13548. this.selectSWorks();
  13549. this.selectSLook();
  13550. })
  13551. .catch((err) => {
  13552. this.$message.error("网络异常");
  13553. console.error(err);
  13554. });
  13555. })
  13556. .catch(() => {});
  13557. },
  13558. selectSWorks(gindex) {
  13559. //教师查看全部作业
  13560. let params = {
  13561. cid: this.id,
  13562. s: this.courseType,
  13563. t: this.taskCount,
  13564. };
  13565. this.ajax
  13566. .get(this.$store.state.api + "selectSWorks", params)
  13567. .then((res) => {
  13568. var a =
  13569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13570. this.taskCount
  13571. ].toolChoose;
  13572. var b = res.data[0];
  13573. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13574. var y = [
  13575. "AVI",
  13576. "NAVI",
  13577. "MPEG",
  13578. "ASF",
  13579. "MOV",
  13580. "WMV",
  13581. "3GP",
  13582. "RM",
  13583. "RMVB",
  13584. "FLV",
  13585. "F4V",
  13586. "H.264",
  13587. "H.265",
  13588. "REAL VIDEO",
  13589. "MKV",
  13590. "WebM",
  13591. "HDDVD",
  13592. "MP4",
  13593. "MPG",
  13594. "M4V",
  13595. "MGV",
  13596. "OGV",
  13597. "QTM",
  13598. "STR",
  13599. "AMC",
  13600. "DVX",
  13601. "EVO",
  13602. "DAT",
  13603. "OGG",
  13604. "OGM",
  13605. ];
  13606. var d = res.data[1];
  13607. var e = res.data[2];
  13608. var f = res.data[3];
  13609. let _worksStudent = [];
  13610. var _worksStudent2 = [];
  13611. for (var i = 0; i < a.length; i++) {
  13612. _worksStudent[i] = [];
  13613. _worksStudent2[i] = [];
  13614. if (
  13615. !this.isCloseList[i] ||
  13616. this.isCloseList[i].isClose == undefined
  13617. ) {
  13618. this.isCloseList[i] = { isClose: 0 };
  13619. }
  13620. this.groupStudent[i] = [];
  13621. this.groupStudentUid[i] = [];
  13622. if (this.isGroup) {
  13623. for (
  13624. var groupI = 0;
  13625. groupI < this.courseGroup.group.length;
  13626. groupI++
  13627. ) {
  13628. this.courseGroup.group[groupI].works[i] = [];
  13629. }
  13630. }
  13631. this.isWorksS[i] = [];
  13632. this.checkJson[i] = [];
  13633. if (a[i].tool[0] == 49) {
  13634. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13635. this.groupStudent[i][gA] = [];
  13636. this.groupStudentUid[i][gA] = [];
  13637. _worksStudent[i][gA] = [];
  13638. _worksStudent2[i][gA] = [];
  13639. this.isCloseList[i][gA] = [];
  13640. for (var g = 0; g < f.length; g++) {
  13641. if (
  13642. f[g].ttype == 2 &&
  13643. this.tcid &&
  13644. this.arrayToArray(
  13645. f[g].classid.split(","),
  13646. this.tcid.split(",")
  13647. ).length == 0
  13648. ) {
  13649. continue;
  13650. }
  13651. if (gA == f[g].group && f[g].tool == i) {
  13652. this.groupStudent[i][gA].push(f[g]);
  13653. this.groupStudentUid[i][gA].push(f[g].userid);
  13654. }
  13655. }
  13656. }
  13657. this.$forceUpdate();
  13658. }
  13659. for (var j = 0; j < b.length; j++) {
  13660. if (
  13661. b[j].ttype == 2 &&
  13662. this.tcid &&
  13663. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13664. .length == 0
  13665. ) {
  13666. continue;
  13667. }
  13668. var likesCount = 0;
  13669. var commentCount = 0;
  13670. var isLikes = false;
  13671. var commentJson = [];
  13672. var data = b[j];
  13673. if (i == b[j].tool) {
  13674. if (data.type == 2 && a[i].tool[0] == 4) {
  13675. // if(JSON.parse(data.content)[0].anwer){
  13676. var checkL =
  13677. JSON.parse(data.content)[0].anwer instanceof Array
  13678. ? JSON.parse(data.content)[0].anwer
  13679. : JSON.parse(data.content)[0].anwer.split(",");
  13680. for (var z = 0; z < checkL.length; z++) {
  13681. if (!this.checkJson[i][z]) {
  13682. this.checkJson[i].push({
  13683. checkCount: [],
  13684. checkPerson: [],
  13685. rightPerson: [],
  13686. });
  13687. }
  13688. if (!this.checkJson[i][z].checkCount.length) {
  13689. this.checkJson[i][z].checkCount = [];
  13690. let _askItemCount = JSON.parse(data.content)[0].askJson
  13691. .askJson[z].askItem;
  13692. for (var aic = 0; aic < _askItemCount; aic++) {
  13693. this.checkJson[i][z].checkCount.push(0);
  13694. }
  13695. }
  13696. if (checkL[z] instanceof Array) {
  13697. if (
  13698. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13699. checkL[z].sort().join(",")
  13700. ) {
  13701. this.checkJson[i][z].rightPerson.push(data.name);
  13702. }
  13703. for (var q = 0; q < checkL[z].length; q++) {
  13704. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13705. ? this.checkJson[i][z].checkPerson[
  13706. parseInt(checkL[z][q])
  13707. ].push(data.name)
  13708. : (this.checkJson[i][z].checkPerson[
  13709. parseInt(checkL[z][q])
  13710. ] = [data.name]);
  13711. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13712. ? this.checkJson[i][z].checkCount[
  13713. parseInt(checkL[z][q])
  13714. ]++
  13715. : (this.checkJson[i][z].checkCount[
  13716. parseInt(checkL[z][q])
  13717. ] = 1);
  13718. }
  13719. } else {
  13720. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13721. this.checkJson[i][z].rightPerson.push(data.name);
  13722. }
  13723. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13724. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13725. ? this.checkJson[i][z].checkPerson[
  13726. parseInt(checkL[z])
  13727. ].push(data.name)
  13728. : (this.checkJson[i][z].checkPerson[
  13729. parseInt(checkL[z])
  13730. ] = [data.name]);
  13731. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13732. ? this.checkJson[i][z].checkCount[
  13733. parseInt(checkL[z])
  13734. ]++
  13735. : (this.checkJson[i][z].checkCount[
  13736. parseInt(checkL[z])
  13737. ] = 1);
  13738. }
  13739. }
  13740. }
  13741. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13742. var checkL = JSON.parse(data.content)[0].anwer;
  13743. for (var z = 0; z < checkL.length; z++) {
  13744. if (!this.checkJson[i][z]) {
  13745. this.checkJson[i].push({
  13746. checkCount: [],
  13747. checkPerson: [],
  13748. rightPerson: [],
  13749. });
  13750. }
  13751. if (!this.checkJson[i][z].checkCount.length) {
  13752. this.checkJson[i][z].checkCount = [];
  13753. let _askItemCount = JSON.parse(data.content)[0].testJson
  13754. .testJson[z].testItem;
  13755. for (var aic = 0; aic < _askItemCount; aic++) {
  13756. this.checkJson[i][z].checkCount.push(0);
  13757. }
  13758. }
  13759. if (checkL[z] instanceof Array) {
  13760. if (
  13761. JSON.parse(data.content)[0]
  13762. .testJson.testJson[z].answer.sort()
  13763. .join(",") == checkL[z].sort().join(",")
  13764. ) {
  13765. this.checkJson[i][z].rightPerson.push(data.name);
  13766. }
  13767. for (var q = 0; q < checkL[z].length; q++) {
  13768. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13769. ? this.checkJson[i][z].checkPerson[
  13770. parseInt(checkL[z][q])
  13771. ].push(data.name)
  13772. : (this.checkJson[i][z].checkPerson[
  13773. parseInt(checkL[z][q])
  13774. ] = [data.name]);
  13775. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13776. ? this.checkJson[i][z].checkCount[
  13777. parseInt(checkL[z][q])
  13778. ]++
  13779. : (this.checkJson[i][z].checkCount[
  13780. parseInt(checkL[z][q])
  13781. ] = 1);
  13782. }
  13783. } else {
  13784. if (
  13785. JSON.parse(data.content)[0].testJson.testJson[z]
  13786. .answer == checkL[z]
  13787. ) {
  13788. this.checkJson[i][z].rightPerson.push(data.name);
  13789. }
  13790. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13791. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13792. ? this.checkJson[i][z].checkPerson[
  13793. parseInt(checkL[z])
  13794. ].push(data.name)
  13795. : (this.checkJson[i][z].checkPerson[
  13796. parseInt(checkL[z])
  13797. ] = [data.name]);
  13798. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13799. ? this.checkJson[i][z].checkCount[
  13800. parseInt(checkL[z])
  13801. ]++
  13802. : (this.checkJson[i][z].checkCount[
  13803. parseInt(checkL[z])
  13804. ] = 1);
  13805. }
  13806. }
  13807. }
  13808. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13809. var checkL = JSON.parse(data.content);
  13810. for (var z = 0; z < checkL.length; z++) {
  13811. if (!this.checkJson[i][z]) {
  13812. this.checkJson[i].push({
  13813. checkCount: [],
  13814. checkPerson: [],
  13815. rightPerson: [],
  13816. });
  13817. }
  13818. this.checkJson[i][z].checkPerson.push(data.name);
  13819. if (
  13820. checkL[z].chooseSenList.toString() ==
  13821. checkL[z].rightAnswer.toString()
  13822. ) {
  13823. this.checkJson[i][z].rightPerson.push(data.name);
  13824. }
  13825. }
  13826. }
  13827. for (var k = 0; k < d.length; k++) {
  13828. //点赞
  13829. if (d[k].workId == b[j].id) {
  13830. likesCount++;
  13831. if (d[k].likesId == this.userid) {
  13832. isLikes = true;
  13833. }
  13834. }
  13835. }
  13836. for (var l = 0; l < e.length; l++) {
  13837. //评论
  13838. if (e[l].workId == b[j].id) {
  13839. if (e[l].comment != "") {
  13840. commentCount++;
  13841. commentJson.push({
  13842. commentText: e[l].comment,
  13843. commentTime: e[l].commentTime,
  13844. commentPeople: e[l].commentPeople,
  13845. userid: e[l].userid,
  13846. wid: e[l].id,
  13847. });
  13848. }
  13849. }
  13850. }
  13851. if (
  13852. (b[j].type == 1 ||
  13853. b[j].type == 4 ||
  13854. b[j].type == 5 ||
  13855. b[j].type == 6 ||
  13856. b[j].type == 12 ||
  13857. b[j].type == 7) &&
  13858. a[i].tool[0] != 15 &&
  13859. a[i].tool[0] != 4 &&
  13860. a[i].tool[0] != 45 &&
  13861. a[i].tool[0] != 50 &&
  13862. a[i].tool[0] != 32 &&
  13863. a[i].tool[0] != 57 &&
  13864. a[i].tool[0] != 52
  13865. ) {
  13866. if (
  13867. c.indexOf(
  13868. b[j].content
  13869. .split(".")
  13870. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13871. ) != -1 &&
  13872. a[i].tool[0] == 16 &&
  13873. b[j].atool != 50
  13874. ) {
  13875. let _works = {
  13876. userid: b[j].userid,
  13877. ateacher: b[j].ateacher,
  13878. wid: b[j].id,
  13879. works: b[j].content,
  13880. sName: b[j].name,
  13881. type: 1,
  13882. time: b[j].time,
  13883. score: b[j].score,
  13884. img: b[j].img,
  13885. likesCount: likesCount,
  13886. commentCount: commentCount,
  13887. isLikes: isLikes,
  13888. commentJson: commentJson,
  13889. };
  13890. if (this.isGroup) {
  13891. let isGw = 1;
  13892. for (
  13893. var groupI = 0;
  13894. groupI < this.courseGroup.group.length;
  13895. groupI++
  13896. ) {
  13897. let gid = this.courseGroup.group[groupI].id;
  13898. if (
  13899. this.courseGroupStudentUid[gid].indexOf(
  13900. b[j].userid
  13901. ) != -1
  13902. ) {
  13903. isGw = 2;
  13904. this.courseGroup.group[groupI].works[i].push(_works);
  13905. break;
  13906. }
  13907. }
  13908. if (isGw == 1) {
  13909. _worksStudent[i].push(_works);
  13910. }
  13911. } else {
  13912. _worksStudent[i].push(_works);
  13913. }
  13914. _worksStudent2[i].push(_works);
  13915. this.isWorksS[i].push({
  13916. uid: b[j].userid,
  13917. sName: b[j].name,
  13918. });
  13919. } else if (
  13920. y.indexOf(
  13921. b[j].content
  13922. .split(".")
  13923. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13924. ) != -1 &&
  13925. a[i].tool[0] == 16 &&
  13926. b[j].atool != 50
  13927. ) {
  13928. let _works = {
  13929. userid: b[j].userid,
  13930. ateacher: b[j].ateacher,
  13931. wid: b[j].id,
  13932. works: b[j].content,
  13933. sName: b[j].name,
  13934. type: 3,
  13935. time: b[j].time,
  13936. score: b[j].score,
  13937. img: b[j].img,
  13938. likesCount: likesCount,
  13939. commentCount: commentCount,
  13940. isLikes: isLikes,
  13941. commentJson: commentJson,
  13942. };
  13943. if (this.isGroup) {
  13944. let isGw = 1;
  13945. for (
  13946. var groupI = 0;
  13947. groupI < this.courseGroup.group.length;
  13948. groupI++
  13949. ) {
  13950. let gid = this.courseGroup.group[groupI].id;
  13951. if (
  13952. this.courseGroupStudentUid[gid].indexOf(
  13953. b[j].userid
  13954. ) != -1
  13955. ) {
  13956. isGw = 2;
  13957. this.courseGroup.group[groupI].works[i].push(_works);
  13958. break;
  13959. }
  13960. }
  13961. if (isGw == 1) {
  13962. _worksStudent[i].push(_works);
  13963. }
  13964. } else {
  13965. _worksStudent[i].push(_works);
  13966. }
  13967. _worksStudent2[i].push(_works);
  13968. this.isWorksS[i].push({
  13969. uid: b[j].userid,
  13970. sName: b[j].name,
  13971. });
  13972. } else if (b[j].type == 6 && b[j].atool != 50) {
  13973. let _works = {
  13974. userid: b[j].userid,
  13975. ateacher: b[j].ateacher,
  13976. wid: b[j].id,
  13977. works: b[j].content,
  13978. sName: b[j].name,
  13979. type: 4,
  13980. time: b[j].time,
  13981. score: b[j].score,
  13982. img: b[j].img,
  13983. likesCount: likesCount,
  13984. commentCount: commentCount,
  13985. isLikes: isLikes,
  13986. commentJson: commentJson,
  13987. };
  13988. _worksStudent[i].push(_works);
  13989. _worksStudent2[i].push(_works);
  13990. this.isWorksS[i].push({
  13991. uid: b[j].userid,
  13992. sName: b[j].name,
  13993. });
  13994. } else if (b[j].type == 7 && b[j].atool != 50) {
  13995. let _work = {
  13996. userid: b[j].userid,
  13997. ateacher: b[j].ateacher,
  13998. wid: b[j].id,
  13999. works: b[j].content,
  14000. sName: b[j].name,
  14001. type: 5,
  14002. time: b[j].time,
  14003. score: b[j].score,
  14004. img: b[j].img,
  14005. likesCount: likesCount,
  14006. commentCount: commentCount,
  14007. isLikes: isLikes,
  14008. commentJson: commentJson,
  14009. };
  14010. _worksStudent[i].push(_work);
  14011. _worksStudent2[i].push(_work);
  14012. this.isWorksS[i].push({
  14013. uid: b[j].userid,
  14014. sName: b[j].name,
  14015. });
  14016. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14017. let _works = {
  14018. userid: b[j].userid,
  14019. ateacher: b[j].ateacher,
  14020. wid: b[j].id,
  14021. works: b[j].content,
  14022. sName: b[j].name,
  14023. type: 12,
  14024. time: b[j].time,
  14025. score: b[j].score,
  14026. img: b[j].img,
  14027. likesCount: likesCount,
  14028. commentCount: commentCount,
  14029. isLikes: isLikes,
  14030. commentJson: commentJson,
  14031. };
  14032. if (this.isGroup) {
  14033. let isGw = 1;
  14034. for (
  14035. var groupI = 0;
  14036. groupI < this.courseGroup.group.length;
  14037. groupI++
  14038. ) {
  14039. let gid = this.courseGroup.group[groupI].id;
  14040. if (
  14041. this.courseGroupStudentUid[gid].indexOf(
  14042. b[j].userid
  14043. ) != -1
  14044. ) {
  14045. isGw = 2;
  14046. this.courseGroup.group[groupI].works[i].push(_works);
  14047. break;
  14048. }
  14049. }
  14050. if (isGw == 1) {
  14051. _worksStudent[i].push(_works);
  14052. }
  14053. } else {
  14054. _worksStudent[i].push(_works);
  14055. }
  14056. _worksStudent2[i].push(_works);
  14057. this.isWorksS[i].push({
  14058. uid: b[j].userid,
  14059. sName: b[j].name,
  14060. });
  14061. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14062. let _works = {
  14063. userid: b[j].userid,
  14064. ateacher: b[j].ateacher,
  14065. wid: b[j].id,
  14066. works: b[j].content,
  14067. sName: b[j].name,
  14068. type: 0,
  14069. time: b[j].time,
  14070. score: b[j].score,
  14071. img: b[j].img,
  14072. likesCount: likesCount,
  14073. commentCount: commentCount,
  14074. isLikes: isLikes,
  14075. commentJson: commentJson,
  14076. };
  14077. if (this.isGroup) {
  14078. let isGw = 1;
  14079. for (
  14080. var groupI = 0;
  14081. groupI < this.courseGroup.group.length;
  14082. groupI++
  14083. ) {
  14084. let gid = this.courseGroup.group[groupI].id;
  14085. if (
  14086. this.courseGroupStudentUid[gid].indexOf(
  14087. b[j].userid
  14088. ) != -1
  14089. ) {
  14090. isGw = 2;
  14091. this.courseGroup.group[groupI].works[i].push(_works);
  14092. break;
  14093. }
  14094. }
  14095. if (isGw == 1) {
  14096. _worksStudent[i].push(_works);
  14097. }
  14098. } else {
  14099. _worksStudent[i].push(_works);
  14100. }
  14101. _worksStudent2[i].push(_works);
  14102. this.isWorksS[i].push({
  14103. uid: b[j].userid,
  14104. sName: b[j].name,
  14105. });
  14106. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14107. let _works = {
  14108. userid: b[j].userid,
  14109. ateacher: b[j].ateacher,
  14110. wid: b[j].id,
  14111. works: b[j].content,
  14112. sName: b[j].name,
  14113. type: 0,
  14114. time: b[j].time,
  14115. score: b[j].score,
  14116. img: b[j].img,
  14117. likesCount: likesCount,
  14118. commentCount: commentCount,
  14119. isLikes: isLikes,
  14120. commentJson: commentJson,
  14121. };
  14122. if (this.isGroup) {
  14123. let isGw = 1;
  14124. for (
  14125. var groupI = 0;
  14126. groupI < this.courseGroup.group.length;
  14127. groupI++
  14128. ) {
  14129. let gid = this.courseGroup.group[groupI].id;
  14130. if (
  14131. this.courseGroupStudentUid[gid].indexOf(
  14132. b[j].userid
  14133. ) != -1
  14134. ) {
  14135. isGw = 2;
  14136. this.courseGroup.group[groupI].works[i].push(_works);
  14137. break;
  14138. }
  14139. }
  14140. if (isGw == 1) {
  14141. _worksStudent[i].push(_works);
  14142. }
  14143. } else {
  14144. _worksStudent[i].push(_works);
  14145. }
  14146. _worksStudent2[i].push(_works);
  14147. this.isWorksS[i].push({
  14148. uid: b[j].userid,
  14149. sName: b[j].name,
  14150. });
  14151. }
  14152. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14153. let _works = {
  14154. userid: b[j].userid,
  14155. ateacher: b[j].ateacher,
  14156. wid: b[j].id,
  14157. works: b[j].content,
  14158. sName: b[j].name,
  14159. type: 2,
  14160. time: b[j].time,
  14161. score: b[j].score,
  14162. img: b[j].img,
  14163. likesCount: likesCount,
  14164. commentCount: commentCount,
  14165. isLikes: isLikes,
  14166. commentJson: commentJson,
  14167. };
  14168. if (this.isGroup) {
  14169. let isGw = 1;
  14170. for (
  14171. var groupI = 0;
  14172. groupI < this.courseGroup.group.length;
  14173. groupI++
  14174. ) {
  14175. let gid = this.courseGroup.group[groupI].id;
  14176. if (
  14177. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14178. -1
  14179. ) {
  14180. isGw = 2;
  14181. this.courseGroup.group[groupI].works[i].push(_works);
  14182. break;
  14183. }
  14184. }
  14185. if (isGw == 1) {
  14186. _worksStudent[i].push(_works);
  14187. }
  14188. } else {
  14189. _worksStudent[i].push(_works);
  14190. }
  14191. _worksStudent2[i].push(_works);
  14192. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14193. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14194. //问卷
  14195. let _work = {
  14196. userid: b[j].userid,
  14197. ateacher: b[j].ateacher,
  14198. wid: b[j].id,
  14199. works: b[j].content,
  14200. sName: b[j].name,
  14201. type: 2,
  14202. time: b[j].time,
  14203. score: b[j].score,
  14204. img: b[j].img,
  14205. likesCount: likesCount,
  14206. commentCount: commentCount,
  14207. isLikes: isLikes,
  14208. commentJson: commentJson,
  14209. };
  14210. _worksStudent[i].push(_work);
  14211. _worksStudent2[i].push(_work);
  14212. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14213. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14214. //选择题
  14215. let _work = {
  14216. userid: b[j].userid,
  14217. ateacher: b[j].ateacher,
  14218. wid: b[j].id,
  14219. works: b[j].content,
  14220. sName: b[j].name,
  14221. type: 8,
  14222. time: b[j].time,
  14223. score: b[j].score,
  14224. img: b[j].img,
  14225. likesCount: likesCount,
  14226. commentCount: commentCount,
  14227. isLikes: isLikes,
  14228. commentJson: commentJson,
  14229. };
  14230. _worksStudent[i].push(_work);
  14231. _worksStudent2[i].push(_work);
  14232. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14233. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14234. //选择题
  14235. let _work = {
  14236. userid: b[j].userid,
  14237. ateacher: b[j].ateacher,
  14238. wid: b[j].id,
  14239. works: b[j].content,
  14240. sName: b[j].name,
  14241. type: 9,
  14242. time: b[j].time,
  14243. score: b[j].score,
  14244. img: b[j].img,
  14245. likesCount: likesCount,
  14246. commentCount: commentCount,
  14247. isLikes: isLikes,
  14248. commentJson: commentJson,
  14249. };
  14250. _worksStudent[i].push(_work);
  14251. _worksStudent2[i].push(_work);
  14252. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14253. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14254. //选择题
  14255. let _work = {
  14256. userid: b[j].userid,
  14257. ateacher: b[j].ateacher,
  14258. wid: b[j].id,
  14259. works: b[j].content,
  14260. sName: b[j].name,
  14261. type: 10,
  14262. time: b[j].time,
  14263. score: b[j].score,
  14264. img: b[j].img,
  14265. likesCount: likesCount,
  14266. commentCount: commentCount,
  14267. isLikes: isLikes,
  14268. commentJson: commentJson,
  14269. };
  14270. _worksStudent[i].push(_work);
  14271. _worksStudent2[i].push(_work);
  14272. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14273. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14274. //选择题
  14275. let _work = {
  14276. userid: b[j].userid,
  14277. ateacher: b[j].ateacher,
  14278. wid: b[j].id,
  14279. works: b[j].content,
  14280. sName: b[j].name,
  14281. type: 13,
  14282. time: b[j].time,
  14283. score: b[j].score,
  14284. img: b[j].img,
  14285. likesCount: likesCount,
  14286. commentCount: commentCount,
  14287. isLikes: isLikes,
  14288. commentJson: commentJson,
  14289. };
  14290. _worksStudent[i].push(_work);
  14291. _worksStudent2[i].push(_work);
  14292. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14293. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14294. //选择题
  14295. let _work = {
  14296. userid: b[j].userid,
  14297. ateacher: b[j].ateacher,
  14298. wid: b[j].id,
  14299. works: b[j].content,
  14300. sName: b[j].name,
  14301. type: 16,
  14302. time: b[j].time,
  14303. score: b[j].score,
  14304. img: b[j].img,
  14305. likesCount: likesCount,
  14306. commentCount: commentCount,
  14307. isLikes: isLikes,
  14308. commentJson: commentJson,
  14309. };
  14310. _worksStudent[i].push(_work);
  14311. _worksStudent2[i].push(_work);
  14312. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14313. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14314. let _gindex = JSON.parse(b[j].content);
  14315. if (
  14316. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14317. b[j].userid
  14318. ) != -1
  14319. ) {
  14320. let _work = {
  14321. userid: b[j].userid,
  14322. ateacher: b[j].ateacher,
  14323. wid: b[j].id,
  14324. works: _gindex.url,
  14325. sName: b[j].name,
  14326. type: _gindex.type,
  14327. time: b[j].time,
  14328. score: b[j].score,
  14329. img: b[j].img,
  14330. likesCount: likesCount,
  14331. commentCount: commentCount,
  14332. isLikes: isLikes,
  14333. commentJson: commentJson,
  14334. };
  14335. _worksStudent[i][_gindex.groupIndex].push(_work);
  14336. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14337. }
  14338. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14339. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14340. let _work = {
  14341. userid: b[j].userid,
  14342. ateacher: b[j].ateacher,
  14343. wid: b[j].id,
  14344. works: b[j].content,
  14345. sName: b[j].name ? b[j].name : b[j].userid,
  14346. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14347. time: b[j].time,
  14348. score: b[j].score,
  14349. img: b[j].img,
  14350. likesCount: likesCount,
  14351. commentCount: commentCount,
  14352. isLikes: isLikes,
  14353. commentJson: commentJson,
  14354. };
  14355. _worksStudent[i].push(_work);
  14356. _worksStudent2[i].push(_work);
  14357. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14358. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14359. let _work = {
  14360. userid: b[j].userid,
  14361. ateacher: b[j].ateacher,
  14362. wid: b[j].id,
  14363. works: b[j].content,
  14364. sName: b[j].name ? b[j].name : b[j].userid,
  14365. type: 12,
  14366. time: b[j].time,
  14367. score: b[j].score,
  14368. img: b[j].img,
  14369. likesCount: likesCount,
  14370. commentCount: commentCount,
  14371. isLikes: isLikes,
  14372. commentJson: commentJson,
  14373. };
  14374. _worksStudent[i].push(_work);
  14375. _worksStudent2[i].push(_work);
  14376. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14377. } else if (
  14378. a[i].tool[0] == 57 &&
  14379. b[j].atool == 57 &&
  14380. b[j].type == 12
  14381. ) {
  14382. let _work = {
  14383. userid: b[j].userid,
  14384. ateacher: b[j].ateacher,
  14385. wid: b[j].id,
  14386. works: b[j].content,
  14387. sName: b[j].name ? b[j].name : b[j].userid,
  14388. type: 12,
  14389. time: b[j].time,
  14390. score: b[j].score,
  14391. img: b[j].img,
  14392. likesCount: likesCount,
  14393. commentCount: commentCount,
  14394. isLikes: isLikes,
  14395. commentJson: commentJson,
  14396. };
  14397. _worksStudent[i].push(_work);
  14398. _worksStudent2[i].push(_work);
  14399. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14400. } else if (
  14401. a[i].tool[0] == 57 &&
  14402. b[j].atool == 57 &&
  14403. b[j].type == 15
  14404. ) {
  14405. let _work = {
  14406. userid: b[j].userid,
  14407. ateacher: b[j].ateacher,
  14408. wid: b[j].id,
  14409. works: b[j].content,
  14410. sName: b[j].name ? b[j].name : b[j].userid,
  14411. type: 15,
  14412. time: b[j].time,
  14413. score: b[j].score,
  14414. img: b[j].img,
  14415. likesCount: likesCount,
  14416. commentCount: commentCount,
  14417. isLikes: isLikes,
  14418. commentJson: commentJson,
  14419. };
  14420. _worksStudent[i].push(_work);
  14421. _worksStudent2[i].push(_work);
  14422. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14423. }
  14424. }
  14425. }
  14426. if (_worksStudent[i] && _worksStudent[i].length) {
  14427. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14428. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14429. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14430. var scoreA = parseFloat(jscoreA);
  14431. var scoreB = parseFloat(jscoreB);
  14432. if (scoreA == scoreB) {
  14433. return b.likesCount - a.likesCount;
  14434. }
  14435. return scoreB - scoreA;
  14436. });
  14437. if (this.isGroup) {
  14438. for (
  14439. var groupI = 0;
  14440. groupI < this.courseGroup.group.length;
  14441. groupI++
  14442. ) {
  14443. this.courseGroup.group[groupI].works[i] =
  14444. this.courseGroup.group[groupI].works[i].sort(function (
  14445. a,
  14446. b
  14447. ) {
  14448. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14449. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14450. var scoreA = parseFloat(jscoreA);
  14451. var scoreB = parseFloat(jscoreB);
  14452. if (scoreA == scoreB) {
  14453. return b.likesCount - a.likesCount;
  14454. }
  14455. return scoreB - scoreA;
  14456. });
  14457. }
  14458. }
  14459. }
  14460. }
  14461. this.timeWorkList = _worksStudent2;
  14462. for (var i = 0; i < a.length; i++) {
  14463. for (var j = 0; j < b.length; j++) {
  14464. var data = b[j];
  14465. if (i == b[j].tool) {
  14466. if (data.type == 2 || data.type == 8) {
  14467. for (var z = 0; z < this.checkJson[i].length; z++) {
  14468. this.checkJson[i][z].checkPerent = [];
  14469. this.checkJson[i][z].right = Math.round(
  14470. (this.checkJson[i][z].rightPerson.length /
  14471. parseInt(_worksStudent[i].length)) *
  14472. 100
  14473. );
  14474. let aaaa = this.checkJson[i][z];
  14475. for (
  14476. var k = 0;
  14477. k < this.checkJson[i][z].checkCount.length;
  14478. k++
  14479. ) {
  14480. this.checkJson[i][z].checkPerent.push(
  14481. Math.round(
  14482. (this.checkJson[i][z].checkCount[k] /
  14483. parseInt(_worksStudent[i].length)) *
  14484. 100
  14485. )
  14486. );
  14487. }
  14488. }
  14489. } else if (data.type == 9) {
  14490. for (var z = 0; z < this.checkJson[i].length; z++) {
  14491. this.checkJson[i][z].checkPerent = [];
  14492. this.checkJson[i][z].right = Math.round(
  14493. (this.checkJson[i][z].rightPerson.length /
  14494. this.checkJson[i][z].checkPerson.length) *
  14495. 100
  14496. );
  14497. }
  14498. }
  14499. }
  14500. }
  14501. }
  14502. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14503. this.joinGroup(gindex);
  14504. }
  14505. this.worksStudent = _worksStudent;
  14506. this.selectWorksStudent();
  14507. })
  14508. .catch((err) => {
  14509. console.error(err);
  14510. });
  14511. },
  14512. pngToWhiteBg(file) {
  14513. const _file = file;
  14514. let read = new FileReader();
  14515. read.readAsDataURL(file); // 文件转base64
  14516. return new Promise((resolve, reject) => {
  14517. read.onload = (e) => {
  14518. let img = new Image();
  14519. img.src = e.target.result;
  14520. img.onload = async () => {
  14521. // 生成canvas
  14522. let canvas = document.createElement("canvas");
  14523. let context = canvas.getContext("2d");
  14524. // 绘制图片到canvas上
  14525. canvas.width = img.width;
  14526. canvas.height = img.height;
  14527. // 在canvas绘制前填充白色背景
  14528. context.fillStyle = "#fff";
  14529. context.fillRect(0, 0, canvas.width, canvas.height);
  14530. context.drawImage(img, 0, 0);
  14531. let base64 = canvas.toDataURL(file["type"], 1);
  14532. let newFile = this.dataUrlToFile(base64, _file);
  14533. resolve(newFile);
  14534. };
  14535. };
  14536. });
  14537. },
  14538. dataUrlToFile(dataurl, file) {
  14539. let arr = dataurl.split(","),
  14540. mime = arr[0].match(/:(.*?);/)[1],
  14541. bstr = atob(arr[1]),
  14542. n = bstr.length,
  14543. u8arr = new Uint8Array(n);
  14544. while (n--) {
  14545. u8arr[n] = bstr.charCodeAt(n);
  14546. }
  14547. // return new Blob([u8arr], { type: mime });
  14548. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14549. type: mime,
  14550. });
  14551. },
  14552. async beforeUpload1(event, type, i) {
  14553. // this.$message.success('进入上传')
  14554. var file = "";
  14555. if (type == 5) {
  14556. file = event;
  14557. } else {
  14558. file = event.target.files[0];
  14559. }
  14560. var credentials = {
  14561. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14562. secretAccessKey: "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",
  14563. }; //秘钥形式的登录上传
  14564. window.AWS.config.update(credentials);
  14565. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14566. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14567. var _this = this;
  14568. _this.progress = 0;
  14569. _this.proVisible = true;
  14570. _this.isFinishSize = 0;
  14571. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14572. var b = [
  14573. "DOC",
  14574. "DOCX",
  14575. "DOCM",
  14576. "DOTM",
  14577. "DOTX",
  14578. "PPTX",
  14579. "PPSX",
  14580. "PPT",
  14581. "PPS",
  14582. "PPTM",
  14583. "POTM",
  14584. "PPAM",
  14585. "POTX",
  14586. "PPSM",
  14587. ];
  14588. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14589. var photoA = [
  14590. "BMP",
  14591. "GIF",
  14592. "PNG",
  14593. "JPGE",
  14594. "JPEG",
  14595. "JPG",
  14596. "TIF",
  14597. "PCX",
  14598. "TGA",
  14599. "EXIF",
  14600. "FPX",
  14601. "SVG",
  14602. "APNG",
  14603. ];
  14604. // if (
  14605. // b.indexOf(
  14606. // file.name
  14607. // .split(".")
  14608. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14609. // ) != -1
  14610. // ) {
  14611. // if (file.size / 1024 / 1024 > 10) {
  14612. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14613. // return;
  14614. // }
  14615. // } else if (
  14616. // excelA.indexOf(
  14617. // file.name
  14618. // .split(".")
  14619. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14620. // ) != "-1"
  14621. // ) {
  14622. // if (file.size / 1024 / 1024 > 5) {
  14623. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14624. // return;
  14625. // }
  14626. // }
  14627. if (
  14628. photoA.indexOf(
  14629. file.name
  14630. .split(".")
  14631. [file.name.split(".").length - 1].toLocaleUpperCase()
  14632. ) != -1 &&
  14633. type != 4
  14634. ) {
  14635. // const blob = await imageConversion.compress(file, 0.8)
  14636. file = await this.pngToWhiteBg(file);
  14637. const blob = await imageConversion.compressAccurately(file, 256);
  14638. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14639. file = new File([blob], file.name, { type: file.type });
  14640. }
  14641. if (file) {
  14642. var params = {
  14643. Key:
  14644. file.name.split(".")[0] +
  14645. new Date().getTime() +
  14646. "." +
  14647. file.name.split(".")[file.name.split(".").length - 1],
  14648. ContentType: file.type,
  14649. Body: file,
  14650. "Access-Control-Allow-Credentials": "*",
  14651. ACL: "public-read",
  14652. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14653. var options = {
  14654. // partSize: 2048 * 1024 * 1024,
  14655. partSize: 1024 * 1024 * 1024,
  14656. queueSize: 2,
  14657. leavePartsOnError: true,
  14658. };
  14659. bucket
  14660. .upload(params, options)
  14661. .on("httpUploadProgress", function (evt) {
  14662. //这里可以写进度条
  14663. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14664. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14665. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14666. })
  14667. .send(function (err, data) {
  14668. _this.progress = 100;
  14669. _this.isFinishSize = _this.isAllSize;
  14670. setTimeout(() => {
  14671. _this.proVisible = false;
  14672. }, 1000);
  14673. if (err) {
  14674. var a = _this.$refs.upload1.uploadFiles;
  14675. a.splice(a.length - 1, a.length);
  14676. _this.$message.error("上传失败");
  14677. } else {
  14678. // _this.$message.success('上传成功')
  14679. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14680. var c = [
  14681. "AVI",
  14682. "NAVI",
  14683. "MPEG",
  14684. "ASF",
  14685. "MOV",
  14686. "WMV",
  14687. "3GP",
  14688. "RM",
  14689. "RMVB",
  14690. "FLV",
  14691. "F4V",
  14692. "H.264",
  14693. "H.265",
  14694. "REAL VIDEO",
  14695. "MKV",
  14696. "WebM",
  14697. "HDDVD",
  14698. "MP4",
  14699. "MPG",
  14700. "M4V",
  14701. "MGV",
  14702. "OGV",
  14703. "QTM",
  14704. "STR",
  14705. "AMC",
  14706. "DVX",
  14707. "EVO",
  14708. "DAT",
  14709. "OGG",
  14710. "OGM",
  14711. ];
  14712. if (type == 1) {
  14713. _this.studyJuri[0].cover.push({
  14714. name: file.name,
  14715. url: data.Location,
  14716. uid: file.uid,
  14717. });
  14718. if (
  14719. c.indexOf(
  14720. _this.studyJuri[0].cover[0].url
  14721. .split(".")
  14722. [
  14723. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14724. ].toLocaleUpperCase()
  14725. ) != -1
  14726. ) {
  14727. _this.fileType = 2;
  14728. } else if (
  14729. b.indexOf(
  14730. _this.studyJuri[0].cover[0].url
  14731. .split(".")
  14732. [
  14733. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14734. ].toLocaleUpperCase()
  14735. ) != -1
  14736. ) {
  14737. _this.fileType = 1;
  14738. } else if (
  14739. photoA.indexOf(
  14740. _this.studyJuri[0].cover[0].url
  14741. .split(".")
  14742. [
  14743. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14744. ].toLocaleUpperCase()
  14745. ) != -1
  14746. ) {
  14747. _this.fileType = 0;
  14748. } else {
  14749. _this.fileType = 3;
  14750. }
  14751. _this.imgChange(null, null, type);
  14752. } else if (type == 2) {
  14753. _this.upToolImg = data.Location;
  14754. _this.imgChange(null, null, type);
  14755. _this.addCourseWorks(i);
  14756. } else if (type == 4) {
  14757. _this.addPz("3", data.Location);
  14758. } else if (type == 5) {
  14759. _this.addImgDrawImG(data.Location);
  14760. } else if (type == 6) {
  14761. var _ftype = 1;
  14762. if (
  14763. c.indexOf(
  14764. data.Location.split(".")[
  14765. data.Location.split(".").length - 1
  14766. ].toLocaleUpperCase()
  14767. ) != -1
  14768. ) {
  14769. _ftype = 5;
  14770. } else if (
  14771. b.indexOf(
  14772. data.Location.split(".")[
  14773. data.Location.split(".").length - 1
  14774. ].toLocaleUpperCase()
  14775. ) != -1
  14776. ) {
  14777. _ftype = 4;
  14778. } else {
  14779. _ftype = 1;
  14780. }
  14781. _this.plworkFile.push({
  14782. name: file.name,
  14783. url: data.Location,
  14784. uid: file.uid,
  14785. fileType: _ftype,
  14786. username:
  14787. _this.plworkFile.length > 10
  14788. ? _this.plworkFile.length + 1
  14789. : "0" + (_this.plworkFile.length + 1),
  14790. });
  14791. } else if (type == 7) {
  14792. _this.addCourseWorksGong(i, data.Location, 32);
  14793. } else if (type == 8) {
  14794. _this.addCourseWorksGong(i, data.Location, 57);
  14795. }
  14796. _this.imgChange(null, null, type);
  14797. console.log(data.Location);
  14798. // _this.$message.success('上传成功'+data.Location)
  14799. }
  14800. });
  14801. }
  14802. },
  14803. async beforeUpload3(event, type, i) {
  14804. // this.$message.success('进入上传')
  14805. let file = "";
  14806. let cfindex2 = 0;
  14807. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14808. file = event.target.files[cfindex];
  14809. var credentials = {
  14810. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14811. secretAccessKey: "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",
  14812. }; //秘钥形式的登录上传
  14813. window.AWS.config.update(credentials);
  14814. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14815. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14816. var _this = this;
  14817. // _this.progress = 0;
  14818. _this.proVisible2 = true;
  14819. var b = [
  14820. "DOC",
  14821. "DOCX",
  14822. "DOCM",
  14823. "DOTM",
  14824. "DOTX",
  14825. "PPTX",
  14826. "PPSX",
  14827. "PPT",
  14828. "PPS",
  14829. "PPTM",
  14830. "POTM",
  14831. "PPAM",
  14832. "POTX",
  14833. "PPSM",
  14834. ];
  14835. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14836. var photoA = [
  14837. "BMP",
  14838. "GIF",
  14839. "PNG",
  14840. "JPGE",
  14841. "JPG",
  14842. "TIF",
  14843. "PCX",
  14844. "TGA",
  14845. "EXIF",
  14846. "FPX",
  14847. "SVG",
  14848. "APNG",
  14849. ];
  14850. if (
  14851. photoA.indexOf(
  14852. file.name
  14853. .split(".")
  14854. [file.name.split(".").length - 1].toLocaleUpperCase()
  14855. ) != -1 &&
  14856. type != 4
  14857. ) {
  14858. // const blob = await imageConversion.compress(file, 0.8)
  14859. file = await this.pngToWhiteBg(file);
  14860. const blob = await imageConversion.compressAccurately(file, 256);
  14861. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14862. file = new File([blob], file.name, { type: file.type });
  14863. }
  14864. if (file) {
  14865. var params = {
  14866. Key:
  14867. file.name.split(".")[0] +
  14868. new Date().getTime() +
  14869. "." +
  14870. file.name.split(".")[file.name.split(".").length - 1],
  14871. ContentType: file.type,
  14872. Body: file,
  14873. "Access-Control-Allow-Credentials": "*",
  14874. ACL: "public-read",
  14875. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14876. var options = {
  14877. // partSize: 2048 * 1024 * 1024,
  14878. partSize: 1024 * 1024 * 1024,
  14879. queueSize: 2,
  14880. leavePartsOnError: true,
  14881. };
  14882. bucket
  14883. .upload(params, options)
  14884. .on("httpUploadProgress", function (evt) {
  14885. //这里可以写进度条
  14886. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14887. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14888. })
  14889. .send(function (err, data) {
  14890. // _this.progress = 100;
  14891. cfindex2++;
  14892. setTimeout(() => {
  14893. if (
  14894. cfindex2 == event.target.files.length - 1 ||
  14895. cfindex2 > event.target.files.length - 1
  14896. ) {
  14897. _this.proVisible2 = false;
  14898. }
  14899. }, 1000);
  14900. if (err) {
  14901. var a = _this.$refs.upload1.uploadFiles;
  14902. a.splice(a.length - 1, a.length);
  14903. _this.$message.error("上传失败");
  14904. } else {
  14905. // _this.$message.success('上传成功')
  14906. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14907. var c = [
  14908. "AVI",
  14909. "NAVI",
  14910. "MPEG",
  14911. "ASF",
  14912. "MOV",
  14913. "WMV",
  14914. "3GP",
  14915. "RM",
  14916. "RMVB",
  14917. "FLV",
  14918. "F4V",
  14919. "H.264",
  14920. "H.265",
  14921. "REAL VIDEO",
  14922. "MKV",
  14923. "WebM",
  14924. "HDDVD",
  14925. "MP4",
  14926. "MPG",
  14927. "M4V",
  14928. "MGV",
  14929. "OGV",
  14930. "QTM",
  14931. "STR",
  14932. "AMC",
  14933. "DVX",
  14934. "EVO",
  14935. "DAT",
  14936. "OGG",
  14937. "OGM",
  14938. ];
  14939. if (type == 1) {
  14940. _this.studyJuri[0].cover.push({
  14941. name: file.name,
  14942. url: data.Location,
  14943. uid: file.uid,
  14944. });
  14945. if (
  14946. c.indexOf(
  14947. _this.studyJuri[0].cover[0].url
  14948. .split(".")
  14949. [
  14950. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14951. ].toLocaleUpperCase()
  14952. ) != -1
  14953. ) {
  14954. _this.fileType = 2;
  14955. } else if (
  14956. b.indexOf(
  14957. _this.studyJuri[0].cover[0].url
  14958. .split(".")
  14959. [
  14960. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14961. ].toLocaleUpperCase()
  14962. ) != -1
  14963. ) {
  14964. _this.fileType = 1;
  14965. } else {
  14966. _this.fileType = 0;
  14967. }
  14968. _this.imgChange(null, null, type);
  14969. } else if (type == 2) {
  14970. _this.upToolImg = data.Location;
  14971. _this.imgChange(null, null, type);
  14972. _this.addCourseWorks(i);
  14973. } else if (type == 4) {
  14974. _this.addPz("3", data.Location);
  14975. } else if (type == 5) {
  14976. _this.addImgDrawImG(data.Location);
  14977. } else if (type == 6) {
  14978. var _ftype = 1;
  14979. if (
  14980. c.indexOf(
  14981. data.Location.split(".")[
  14982. data.Location.split(".").length - 1
  14983. ].toLocaleUpperCase()
  14984. ) != -1
  14985. ) {
  14986. _ftype = 5;
  14987. } else if (
  14988. b.indexOf(
  14989. data.Location.split(".")[
  14990. data.Location.split(".").length - 1
  14991. ].toLocaleUpperCase()
  14992. ) != -1
  14993. ) {
  14994. _ftype = 4;
  14995. } else {
  14996. _ftype = 1;
  14997. }
  14998. _this.plworkFile.push({
  14999. name: file.name,
  15000. url: data.Location,
  15001. uid: file.uid,
  15002. fileType: _ftype,
  15003. username:
  15004. _this.plworkFile.length + 1 > 9
  15005. ? _this.plworkFile.length + 1
  15006. : "0" + (_this.plworkFile.length + 1),
  15007. });
  15008. }
  15009. _this.imgChange(null, null, type);
  15010. console.log(data.Location);
  15011. // _this.$message.success('上传成功'+data.Location)
  15012. }
  15013. });
  15014. }
  15015. }
  15016. },
  15017. beforeUpload2(event, type) {
  15018. var file = event.target.files[0];
  15019. var credentials = {
  15020. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15021. secretAccessKey: "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",
  15022. }; //秘钥形式的登录上传
  15023. window.AWS.config.update(credentials);
  15024. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15025. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15026. var _this = this;
  15027. _this.progress = 0;
  15028. _this.proVisible = true;
  15029. if (file) {
  15030. var params = {
  15031. Key:
  15032. file.name.split(".")[0] +
  15033. new Date().getTime() +
  15034. "." +
  15035. file.name.split(".")[file.name.split(".").length - 1],
  15036. ContentType: file.type,
  15037. Body: file,
  15038. "Access-Control-Allow-Credentials": "*",
  15039. ACL: "public-read",
  15040. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15041. var options = {
  15042. partSize: 2048 * 1024 * 1024,
  15043. queueSize: 2,
  15044. leavePartsOnError: true,
  15045. };
  15046. bucket
  15047. .upload(params, options)
  15048. .on("httpUploadProgress", function (evt) {
  15049. //这里可以写进度条
  15050. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15051. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15052. })
  15053. .send(function (err, data) {
  15054. _this.progress = 100;
  15055. setTimeout(() => {
  15056. _this.proVisible = false;
  15057. }, 1000);
  15058. if (err) {
  15059. var a = _this.$refs.upload1.uploadFiles;
  15060. a.splice(a.length - 1, a.length);
  15061. _this.$message.error("上传失败");
  15062. } else {
  15063. if (type == 2) {
  15064. _this.studyJuri[0].upVedio.push({
  15065. name: file.name,
  15066. url: data.Location,
  15067. uid: file.uid,
  15068. });
  15069. _this.imgChange(null, null, type);
  15070. } else if (type == 3) {
  15071. _this.studyJuri[0].upFile.push({
  15072. name: file.name,
  15073. url: data.Location,
  15074. uid: file.uid,
  15075. });
  15076. _this.imgChange(null, null, type);
  15077. }
  15078. console.log(data.Location);
  15079. }
  15080. });
  15081. }
  15082. },
  15083. allScrell() {
  15084. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15085. },
  15086. nextOrpreSteps(t) {
  15087. if (this.IsFollow && this.tType == 2) {
  15088. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15089. return;
  15090. }
  15091. var b = this.chapInfoList.length - 1;
  15092. if (t == 0) {
  15093. if (this.courseType == 0) {
  15094. if (this.taskCount == 0) {
  15095. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15096. if (this.IsLookOpen) {
  15097. if (
  15098. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15099. ) {
  15100. if (
  15101. this.courseDetail.userid != this.userid &&
  15102. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15103. ) {
  15104. this.$message.error("任务未解锁");
  15105. } else {
  15106. this.$message.error("上一任务未解锁");
  15107. }
  15108. return;
  15109. }
  15110. }
  15111. this.navList[this.courseType].isOpen = false;
  15112. this.courseType = b;
  15113. this.taskCount =
  15114. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15115. .length - 1;
  15116. this.navList[this.courseType].isOpen = true;
  15117. } else {
  15118. this.taskCount--;
  15119. }
  15120. } else {
  15121. if (this.taskCount == 0) {
  15122. this.navList[this.courseType].isOpen = false;
  15123. this.courseType--;
  15124. this.taskCount =
  15125. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15126. .length - 1;
  15127. this.navList[this.courseType].isOpen = true;
  15128. } else {
  15129. this.taskCount--;
  15130. }
  15131. }
  15132. } else {
  15133. if (this.courseType == b) {
  15134. if (
  15135. this.taskCount ==
  15136. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15137. 1
  15138. ) {
  15139. this.navList[this.courseType].isOpen = false;
  15140. this.courseType = 0;
  15141. this.taskCount = 0;
  15142. this.navList[this.courseType].isOpen = true;
  15143. } else {
  15144. var bbb = parseInt(this.taskCount) + 1;
  15145. if (
  15146. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15147. .isLook &&
  15148. this.courseDetail.userid != this.userid &&
  15149. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15150. this.IsLookOpen
  15151. ) {
  15152. this.$message.error("任务未解锁");
  15153. return;
  15154. }
  15155. this.taskCount++;
  15156. if (this.IsLookOpen) {
  15157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15158. this.taskCount
  15159. ].isLook = true;
  15160. this.addCourseState(3);
  15161. }
  15162. }
  15163. } else {
  15164. if (
  15165. this.taskCount ==
  15166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15167. 1
  15168. ) {
  15169. var bbb = parseInt(this.courseType) + 1;
  15170. if (
  15171. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15172. this.courseDetail.userid != this.userid &&
  15173. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15174. this.IsLookOpen
  15175. ) {
  15176. this.$message.error("任务未解锁");
  15177. return;
  15178. }
  15179. this.navList[this.courseType].isOpen = false;
  15180. this.courseType++;
  15181. this.taskCount = 0;
  15182. this.navList[this.courseType].isOpen = true;
  15183. } else {
  15184. var bbb = parseInt(this.taskCount) + 1;
  15185. if (
  15186. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15187. .isLook &&
  15188. this.courseDetail.userid != this.userid &&
  15189. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15190. this.IsLookOpen
  15191. ) {
  15192. this.$message.error("任务未解锁");
  15193. return;
  15194. }
  15195. this.taskCount++;
  15196. }
  15197. if (this.IsLookOpen) {
  15198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15199. this.taskCount
  15200. ].isLook = true;
  15201. this.addCourseState(3);
  15202. }
  15203. }
  15204. // if (
  15205. // this.taskCount ==
  15206. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15207. // ) {
  15208. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15209. // } else {
  15210. // this.taskCount++;
  15211. // }
  15212. }
  15213. document.scrollingElement.scrollTop = 0;
  15214. this.showType = 0;
  15215. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15216. // if (this.vedio[this.taskCount].length > 0) {
  15217. // var a =
  15218. // document.getElementsByClassName("box_course")[this.taskCount]
  15219. // .offsetHeight;
  15220. // document.getElementsByClassName("vedioList")[
  15221. // this.taskCount
  15222. // ].style.height = a + "px";
  15223. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15224. // a - 40 + "px";
  15225. // }
  15226. this.isNoHomeWork = false;
  15227. (this.studyJuri = [
  15228. {
  15229. content: "",
  15230. cover: [],
  15231. upVedio: [],
  15232. upFile: [],
  15233. },
  15234. ]),
  15235. (this.radio = []);
  15236. this.isClickNav = "";
  15237. this.selectPz();
  15238. this.getHomeWork();
  15239. this.getCourseDetail(2);
  15240. this.$forceUpdate();
  15241. },
  15242. openTask(s, n, i) {
  15243. if (this.IsFollow && this.tType == 2) {
  15244. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15245. return;
  15246. }
  15247. if (this.IsLookOpen) {
  15248. if (
  15249. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15250. this.courseDetail.userid != this.userid &&
  15251. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15252. ) {
  15253. this.$message.error("任务未解锁");
  15254. return;
  15255. }
  15256. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15257. if (
  15258. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15259. .isLook
  15260. ) {
  15261. this.$message.error("上一任务未解锁");
  15262. return;
  15263. }
  15264. } else if (s > this.courseType) {
  15265. if (n > 0) {
  15266. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15267. this.$message.error("上一任务未解锁");
  15268. return;
  15269. }
  15270. } else {
  15271. if (
  15272. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15273. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15274. ].isLook
  15275. ) {
  15276. this.$message.error("上一任务未解锁");
  15277. return;
  15278. }
  15279. }
  15280. }
  15281. }
  15282. if (this.navList[s].task[n].isOpen == true) {
  15283. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15284. return;
  15285. }
  15286. this.courseType = s;
  15287. this.navId = i;
  15288. this.taskCount = n;
  15289. this.navList[this.courseType].task[this.taskCount].isOpen =
  15290. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15291. if (this.IsLookOpen) {
  15292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15293. this.taskCount
  15294. ].isLook = true;
  15295. this.addCourseState(3);
  15296. }
  15297. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15298. this.isCloseList[ci].isClose = 0;
  15299. }
  15300. this.showType = 0;
  15301. this.isNoHomeWork = false;
  15302. (this.studyJuri = [
  15303. {
  15304. content: "",
  15305. cover: [],
  15306. upVedio: [],
  15307. upFile: [],
  15308. },
  15309. ]),
  15310. (this.radio = []);
  15311. document.scrollingElement.scrollTop = 0;
  15312. // setTimeout(() => {
  15313. // let a = document.getElementById(i);
  15314. // if (a.offsetTop - 110 == 0) {
  15315. // window.scrollTo(0, 0);
  15316. // } else {
  15317. // window.scrollTo(0, a.offsetTop);
  15318. // }
  15319. // }, 0);
  15320. this.selectPz();
  15321. this.getHomeWork();
  15322. this.getCourseDetail(2);
  15323. },
  15324. get(i) {
  15325. if (this.IsFollow && this.tType == 2) {
  15326. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15327. return;
  15328. }
  15329. // for(var k=0;k<this.navList.length;k++){
  15330. // this.navList[k].isOpen = false;
  15331. // }
  15332. // this.navList[i].isOpen = true;
  15333. this.navList[i].isOpen = !this.navList[i].isOpen;
  15334. if (this.navList[i].isOpen) {
  15335. this.openTask(i, 0, i + "-0");
  15336. }
  15337. },
  15338. addQuestion() {
  15339. this.answerList.push({
  15340. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15341. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15342. });
  15343. let params = [
  15344. {
  15345. uid: this.userid,
  15346. cid: this.id,
  15347. stage: this.courseType,
  15348. task: this.taskCount,
  15349. tool: this.toolindex,
  15350. content: JSON.stringify(this.answerList),
  15351. type: 3,
  15352. },
  15353. ];
  15354. this.ajax
  15355. .post(this.$store.state.api + "addCourseWorks", params)
  15356. .then((res) => {
  15357. this.$message({
  15358. message: "提交成功",
  15359. type: "success",
  15360. });
  15361. this.answerList = [];
  15362. this.answerDialogVisible = false;
  15363. this.selectStudent();
  15364. this.selectSWorks();
  15365. this.selectSLook();
  15366. })
  15367. .catch((err) => {
  15368. this.$message.error("提交失败");
  15369. console.error(err);
  15370. });
  15371. },
  15372. addQuestionTeacher() {
  15373. this.answerList.push({
  15374. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15375. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15376. });
  15377. let params = [
  15378. {
  15379. uid: this.sStudent.userid,
  15380. cid: this.id,
  15381. stage: this.courseType,
  15382. task: this.taskCount,
  15383. tool: this.toolindex,
  15384. content: JSON.stringify(this.answerList),
  15385. type: 3,
  15386. ateacher: this.userid,
  15387. },
  15388. ];
  15389. this.ajax
  15390. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15391. .then((res) => {
  15392. this.$message({
  15393. message: "提交成功",
  15394. type: "success",
  15395. });
  15396. this.answerList = [];
  15397. this.questionAnswer = "";
  15398. this.answerDialogVisibleTeacher = false;
  15399. this.selectStudent();
  15400. this.selectSWorks();
  15401. this.selectSLook();
  15402. })
  15403. .catch((err) => {
  15404. this.$message.error("提交失败");
  15405. console.error(err);
  15406. });
  15407. },
  15408. refreshCourse() {
  15409. // window.location.reload();
  15410. this.navList = [];
  15411. this.getCourseDetail(1);
  15412. },
  15413. getCourseDetail(type, gindex) {
  15414. let loading;
  15415. if (type != 2) {
  15416. loading = this.$loading.service({
  15417. background: "rgba(255, 255, 255, 0.7)",
  15418. target: document.querySelector(".student_table"),
  15419. });
  15420. }
  15421. // this.navList[0].isOpen = false;
  15422. // this.navList[this.courseType].isOpen = true;
  15423. // this.courseType = this.courseTypeLine;
  15424. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15425. let params = {
  15426. courseId: this.id,
  15427. };
  15428. this.ajax
  15429. .get(this.$store.state.api + "selectCourseDetail3", params)
  15430. .then((res) => {
  15431. if (type != 2) {
  15432. loading.close();
  15433. if (
  15434. this.courseType >
  15435. JSON.parse(res.data[0][0].chapters).length - 1
  15436. ) {
  15437. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15438. }
  15439. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15440. .chapterInfo[0].taskJson;
  15441. var b = [
  15442. "AVI",
  15443. "NAVI",
  15444. "MPEG",
  15445. "ASF",
  15446. "MOV",
  15447. "WMV",
  15448. "3GP",
  15449. "RM",
  15450. "RMVB",
  15451. "FLV",
  15452. "F4V",
  15453. "H.264",
  15454. "H.265",
  15455. "REAL VIDEO",
  15456. "MKV",
  15457. "WebM",
  15458. "HDDVD",
  15459. "MP4",
  15460. "MPG",
  15461. "M4V",
  15462. "MGV",
  15463. "OGV",
  15464. "QTM",
  15465. "STR",
  15466. "AMC",
  15467. "DVX",
  15468. "EVO",
  15469. "DAT",
  15470. "OGG",
  15471. "OGM",
  15472. "MP3",
  15473. ];
  15474. let _chapterData = [];
  15475. for (var i = 0; i < a.length; i++) {
  15476. var c = a[i].chapterData;
  15477. this.vedio[i] = [];
  15478. this.textList[i] = [];
  15479. this.lineList[i] = [];
  15480. this.chapToolList[i] = [];
  15481. this.file[i] = [];
  15482. this.fileC[i] = [];
  15483. _chapterData[i] = c.filter((el) => {
  15484. return el.type != 12;
  15485. });
  15486. this.fileC[i] = c.filter((el) => {
  15487. return el.type == 12;
  15488. });
  15489. // else if (c[j].type == 12) {
  15490. // this.fileC[i].push(c[j]);
  15491. // }
  15492. for (var j = 0; j < c.length; j++) {
  15493. if (c[j].type == 7) {
  15494. this.chapToolList[i].push(c[j]);
  15495. } else if (c[j].type == 8 || c[j].type == 14) {
  15496. this.lineList[i].push(c[j]);
  15497. } else if (c[j].type == 6) {
  15498. this.textList[i].push(c[j]);
  15499. } else {
  15500. if (
  15501. b.indexOf(
  15502. c[j].url
  15503. .split(".")
  15504. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15505. ) != -1
  15506. ) {
  15507. this.vedio[i].push(c[j]);
  15508. } else {
  15509. this.file[i].push(c[j]);
  15510. }
  15511. }
  15512. }
  15513. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15514. d.sources[0].src =
  15515. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15516. this.playerO[i] = d;
  15517. }
  15518. this.courseDetail = res.data[0][0];
  15519. this.tcid = this.arrayToArray(
  15520. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15521. this.tcid2 ? this.tcid2.split(",") : []
  15522. ).join(",");
  15523. this.evalua = res.data[0][0].evaId;
  15524. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15525. this.courseType
  15526. ];
  15527. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15528. if (this.tcid && res.data[1].length) {
  15529. let _inviteA = [];
  15530. for (var ik = 0; ik < res.data[1].length; ik++) {
  15531. _inviteA.push({
  15532. cid: res.data[1][ik].classid,
  15533. ic: res.data[1][ik].code,
  15534. });
  15535. }
  15536. for (var ik = 0; ik < _inviteA.length; ik++) {
  15537. if (
  15538. this.arrayToArray(
  15539. _inviteA[ik].cid.split(","),
  15540. this.tcid.split(",")
  15541. ).length
  15542. ) {
  15543. this.inviteCode = _inviteA[ik].ic;
  15544. break;
  15545. }
  15546. }
  15547. }
  15548. for (var l = 0; l < this.chapInfoList.length; l++) {
  15549. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15550. for (var m = 0; m < w.length; m++) {
  15551. w[m].id = l + "-" + m;
  15552. }
  15553. }
  15554. if (
  15555. _chapterData[this.taskCount].length &&
  15556. _chapterData[this.taskCount][0].type == 2
  15557. ) {
  15558. this.showType = 0;
  15559. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15560. } else {
  15561. if (_chapterData[this.taskCount].length > 0) {
  15562. let _url = _chapterData[this.taskCount][0].url;
  15563. if (
  15564. _chapterData[this.taskCount][0].type == 8 ||
  15565. _chapterData[this.taskCount][0].type == 14
  15566. ) {
  15567. this.showType = 2;
  15568. if (
  15569. _url.indexOf("https://") == -1 &&
  15570. _url.indexOf("http://") == -1
  15571. ) {
  15572. _url = "https://" + _url;
  15573. }
  15574. this.pptImgUrl1 = _url;
  15575. } else if (_chapterData[this.taskCount][0].type == 3) {
  15576. if (
  15577. _url
  15578. .split(".")
  15579. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15580. ) {
  15581. this.showType = 3;
  15582. this.pptImgUrl1 = _url;
  15583. } else if (
  15584. this.isAssetTypeAnImage(
  15585. _url
  15586. .split(".")
  15587. [_url.split(".").length - 1].toLocaleLowerCase()
  15588. )
  15589. ) {
  15590. this.showType = 4;
  15591. this.pptImgUrl1 = _url;
  15592. } else {
  15593. this.showType = 2;
  15594. this.pptImgUrl1 =
  15595. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15596. _url;
  15597. }
  15598. } else if (_chapterData[this.taskCount][0].type == 13) {
  15599. this.showType = 4;
  15600. this.pptImgUrl1 = _url;
  15601. } else if (_chapterData[this.taskCount][0].type == 6) {
  15602. this.showType = 1;
  15603. this.text = this.textList[this.taskCount][0];
  15604. }
  15605. }
  15606. }
  15607. this.isClickNav = 0;
  15608. if (
  15609. !_chapterData[this.taskCount].length ||
  15610. _chapterData[this.taskCount][0].type == 12
  15611. ) {
  15612. this.isClickNav = "";
  15613. this.showType = "";
  15614. }
  15615. this.vChapterData = _chapterData;
  15616. } else {
  15617. this.showType = 0;
  15618. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15619. .chapterInfo[0].taskJson;
  15620. var b = [
  15621. "AVI",
  15622. "NAVI",
  15623. "MPEG",
  15624. "ASF",
  15625. "MOV",
  15626. "WMV",
  15627. "3GP",
  15628. "RM",
  15629. "RMVB",
  15630. "FLV",
  15631. "F4V",
  15632. "H.264",
  15633. "H.265",
  15634. "REAL VIDEO",
  15635. "MKV",
  15636. "WebM",
  15637. "HDDVD",
  15638. "MP4",
  15639. "MPG",
  15640. "M4V",
  15641. "MGV",
  15642. "OGV",
  15643. "QTM",
  15644. "STR",
  15645. "AMC",
  15646. "DVX",
  15647. "EVO",
  15648. "DAT",
  15649. "OGG",
  15650. "OGM",
  15651. "MP3",
  15652. ];
  15653. let _chapterData = [];
  15654. for (var i = 0; i < a.length; i++) {
  15655. var c = a[i].chapterData;
  15656. this.vedio[i] = [];
  15657. this.textList[i] = [];
  15658. this.lineList[i] = [];
  15659. this.chapToolList[i] = [];
  15660. this.file[i] = [];
  15661. this.fileC[i] = [];
  15662. _chapterData[i] = c.filter((el) => {
  15663. return el.type != 12;
  15664. });
  15665. this.fileC[i] = c.filter((el) => {
  15666. return el.type == 12;
  15667. });
  15668. for (var j = 0; j < c.length; j++) {
  15669. if (c[j].type == 7) {
  15670. this.chapToolList[i].push(c[j]);
  15671. } else if (c[j].type == 8 || c[j].type == 14) {
  15672. this.lineList[i].push(c[j]);
  15673. } else if (c[j].type == 6) {
  15674. this.textList[i].push(c[j]);
  15675. } else {
  15676. if (
  15677. b.indexOf(
  15678. c[j].url
  15679. .split(".")
  15680. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15681. ) != -1
  15682. ) {
  15683. this.vedio[i].push(c[j]);
  15684. } else {
  15685. this.file[i].push(c[j]);
  15686. }
  15687. }
  15688. }
  15689. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15690. d.sources[0].src =
  15691. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15692. this.playerO[i] = d;
  15693. }
  15694. if (
  15695. _chapterData[this.taskCount].length &&
  15696. _chapterData[this.taskCount][0].type == 2
  15697. ) {
  15698. this.showType = 0;
  15699. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15700. } else {
  15701. if (_chapterData[this.taskCount].length > 0) {
  15702. let _url = _chapterData[this.taskCount][0].url;
  15703. if (
  15704. _chapterData[this.taskCount][0].type == 8 ||
  15705. _chapterData[this.taskCount][0].type == 14
  15706. ) {
  15707. this.showType = 2;
  15708. if (
  15709. _url.indexOf("https://") == -1 &&
  15710. _url.indexOf("http://") == -1
  15711. ) {
  15712. _url = "https://" + _url;
  15713. }
  15714. this.pptImgUrl1 = _url;
  15715. } else if (_chapterData[this.taskCount][0].type == 3) {
  15716. if (
  15717. _url
  15718. .split(".")
  15719. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15720. ) {
  15721. this.showType = 3;
  15722. this.pptImgUrl1 = _url;
  15723. } else if (
  15724. this.isAssetTypeAnImage(
  15725. _url
  15726. .split(".")
  15727. [_url.split(".").length - 1].toLocaleLowerCase()
  15728. )
  15729. ) {
  15730. this.showType = 4;
  15731. this.pptImgUrl1 = _url;
  15732. } else {
  15733. this.showType = 2;
  15734. this.pptImgUrl1 =
  15735. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15736. _url;
  15737. }
  15738. } else if (_chapterData[this.taskCount][0].type == 13) {
  15739. this.showType = 4;
  15740. this.pptImgUrl1 = _url;
  15741. } else if (_chapterData[this.taskCount][0].type == 6) {
  15742. this.showType = 1;
  15743. this.text = this.textList[this.taskCount][0];
  15744. }
  15745. }
  15746. }
  15747. this.isClickNav = 0;
  15748. if (
  15749. !_chapterData[this.taskCount].length ||
  15750. _chapterData[this.taskCount][0].type == 12
  15751. ) {
  15752. this.isClickNav = "";
  15753. this.showType = "";
  15754. }
  15755. this.vChapterData = _chapterData;
  15756. this.$forceUpdate();
  15757. }
  15758. // else {
  15759. // this.courseDetail = res.data[0][0];
  15760. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15761. // }
  15762. let _this = this;
  15763. if (_this.timer) {
  15764. clearInterval(_this.timer);
  15765. _this.timer = null;
  15766. }
  15767. if (_this.tcid) {
  15768. _this.getCourseGroup(gindex);
  15769. } else {
  15770. _this.selectSWorks(gindex);
  15771. }
  15772. _this.selectStudent();
  15773. _this.selectSLook();
  15774. _this.getPick();
  15775. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15776. _this.setCTask();
  15777. }
  15778. if (_this.dialogVisibleGroup) {
  15779. _this.groupJson =
  15780. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15781. _this.taskCount
  15782. ].toolChoose[_this.toolindex].groupJson;
  15783. }
  15784. _this.$nextTick(() => {
  15785. setTimeout(() => {
  15786. _this.checkEva();
  15787. }, 1000);
  15788. });
  15789. _this.timer = setInterval(function () {
  15790. // _this.getCourseDetail(2);
  15791. if (_this.tcid) {
  15792. _this.getCourseGroup(gindex);
  15793. } else {
  15794. _this.selectSWorks(gindex);
  15795. }
  15796. _this.selectStudent();
  15797. _this.selectSLook();
  15798. _this.getPick();
  15799. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15800. _this.setCTask();
  15801. }
  15802. if (_this.dialogVisibleGroup) {
  15803. _this.groupJson =
  15804. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15805. _this.taskCount
  15806. ].toolChoose[_this.toolindex].groupJson;
  15807. }
  15808. if (_this.tType == 4 || _this.ispzType == 4) {
  15809. _this.selectPz();
  15810. }
  15811. }, 5000);
  15812. _this.$nextTick(function () {
  15813. setTimeout(() => {
  15814. // var a =
  15815. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15816. // document.getElementsByClassName("vedioList")[0].style.height =
  15817. // a + "px";
  15818. // document.getElementsByClassName("navBox")[0].style.height =
  15819. // a - 40 + "px";
  15820. // if (_this.vedio[_this.taskCount].length > 0) {
  15821. // _this.vedioTime = [];
  15822. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15823. // _this.vedioTime[i] = document.getElementsByClassName(
  15824. // "vjs-duration-display"
  15825. // )[i].textContent;
  15826. // }
  15827. // }
  15828. }, 1000);
  15829. });
  15830. })
  15831. .catch((err) => {
  15832. loading.close();
  15833. console.error(err);
  15834. });
  15835. },
  15836. getCourseGroup(gindex) {
  15837. let params = {
  15838. cid: this.id,
  15839. classid: this.tcid ? this.tcid : "1",
  15840. };
  15841. this.ajax
  15842. .get(this.$store.state.api + "getCourseGroup", params)
  15843. .then((res) => {
  15844. if (res.data && res.data[0].length) {
  15845. if (!this.isGroup) {
  15846. let courseGroup = JSON.parse(res.data[0][0].group);
  15847. courseGroup.group = courseGroup.group.filter((el) => {
  15848. el.works = [];
  15849. return el;
  15850. });
  15851. if (courseGroup.isopen == 2) {
  15852. this.isGroup = false;
  15853. this.selectSWorks(gindex);
  15854. return;
  15855. }
  15856. this.courseGroup = courseGroup;
  15857. let groupPerson = res.data[1];
  15858. let group = JSON.parse(res.data[0][0].group).group;
  15859. let courseGroupStudent = {};
  15860. let courseGroupStudentUid = {};
  15861. for (var i = 0; i < group.length; i++) {
  15862. courseGroupStudent[group[i].id] = [];
  15863. courseGroupStudentUid[group[i].id] = [];
  15864. for (var j = 0; j < groupPerson.length; j++) {
  15865. if (groupPerson[j].groupCid == group[i].id) {
  15866. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15867. courseGroupStudentUid[group[i].id].push(
  15868. groupPerson[j].userid
  15869. );
  15870. }
  15871. }
  15872. }
  15873. this.courseGroupStudent = courseGroupStudent;
  15874. this.courseGroupStudentUid = courseGroupStudentUid;
  15875. }
  15876. if (this.courseGroup.isopen == 2) {
  15877. this.isGroup = false;
  15878. } else {
  15879. this.isGroup = true;
  15880. }
  15881. this.selectSWorks(gindex);
  15882. } else {
  15883. this.selectSWorks(gindex);
  15884. this.isGroup = false;
  15885. }
  15886. })
  15887. .catch((err) => {
  15888. // this.$message.error("网络不佳");
  15889. console.error(err);
  15890. });
  15891. },
  15892. setOperationTime() {
  15893. let _this = this;
  15894. if (_this.opertimer) {
  15895. clearInterval(_this.opertimer);
  15896. _this.opertimer = null;
  15897. }
  15898. _this.opertimer = setInterval(() => {
  15899. _this.setoTime("600");
  15900. }, 600000);
  15901. },
  15902. setoTime(time) {
  15903. let params = [
  15904. {
  15905. uid: this.userid,
  15906. cid: this.id,
  15907. type: "2",
  15908. time: time,
  15909. },
  15910. ];
  15911. this.ajax
  15912. .post(this.$store.state.api + "addOperationTimeT2", params)
  15913. .then((res) => {})
  15914. .catch((err) => {
  15915. console.error(err);
  15916. });
  15917. },
  15918. addPz(type, content) {
  15919. if (type == "1" && this.pzConText == "") {
  15920. this.$message.error("批注不能为空!");
  15921. return;
  15922. }
  15923. let params = [
  15924. {
  15925. cid: this.id,
  15926. uid: this.userid,
  15927. s: this.courseType,
  15928. t: this.taskCount,
  15929. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15930. type: type,
  15931. },
  15932. ];
  15933. this.ajax
  15934. .post(this.$store.state.api + "addPz2", params)
  15935. .then((res) => {
  15936. this.$message({
  15937. message: "添加成功",
  15938. type: "success",
  15939. });
  15940. this.pzConText = "";
  15941. this.addPzDialog = false;
  15942. this.selectPz();
  15943. })
  15944. .catch((err) => {
  15945. this.$message.error("添加失败");
  15946. console.error(err);
  15947. });
  15948. },
  15949. setReplyIndex(id, i) {
  15950. this.replyIndex = i;
  15951. this.replyPid = id;
  15952. this.replyDialogVisible = true;
  15953. },
  15954. addHf() {
  15955. if (this.reply == "") {
  15956. this.$message.error("回复不能为空!");
  15957. return;
  15958. }
  15959. let params = [
  15960. {
  15961. cid: this.id,
  15962. uid: this.userid,
  15963. s: this.courseType,
  15964. t: this.taskCount,
  15965. type: "1",
  15966. ct: 2,
  15967. pid: this.replyPid,
  15968. c: this.reply.replaceAll(/%/g, "%25"),
  15969. },
  15970. ];
  15971. this.ajax
  15972. .post(this.$store.state.api + "addHf", params)
  15973. .then((res) => {
  15974. this.reply = "";
  15975. this.$message({
  15976. message: "回复成功",
  15977. type: "success",
  15978. });
  15979. this.replyDialogVisible = false;
  15980. this.selectPz();
  15981. })
  15982. .catch((err) => {
  15983. this.$message.error("回复失败");
  15984. console.error(err);
  15985. });
  15986. },
  15987. deletePz(id) {
  15988. this.$confirm("确定删除此批注吗?", "提示", {
  15989. confirmButtonText: "确定",
  15990. cancelButtonText: "取消",
  15991. type: "warning",
  15992. })
  15993. .then(() => {
  15994. let params = [
  15995. {
  15996. id: id,
  15997. },
  15998. ];
  15999. this.ajax
  16000. .post(this.$store.state.api + "deletePz", params)
  16001. .then((res) => {
  16002. this.$message({
  16003. message: "删除成功",
  16004. type: "success",
  16005. });
  16006. this.selectPz();
  16007. })
  16008. .catch((err) => {
  16009. this.$message.error("网络异常");
  16010. console.error(err);
  16011. });
  16012. })
  16013. .catch(() => {});
  16014. },
  16015. deleteReply(id) {
  16016. this.$confirm("确定删除此回复吗?", "提示", {
  16017. confirmButtonText: "确定",
  16018. cancelButtonText: "取消",
  16019. type: "warning",
  16020. })
  16021. .then(() => {
  16022. let params = [
  16023. {
  16024. id: id,
  16025. },
  16026. ];
  16027. this.ajax
  16028. .post(this.$store.state.api + "deleteReply", params)
  16029. .then((res) => {
  16030. this.$message({
  16031. message: "删除成功",
  16032. type: "success",
  16033. });
  16034. this.selectPz();
  16035. })
  16036. .catch((err) => {
  16037. this.$message.error("网络异常");
  16038. console.error(err);
  16039. });
  16040. })
  16041. .catch(() => {});
  16042. },
  16043. setPz() {
  16044. if (this.ispzType == 4) {
  16045. this.ispzType = 0;
  16046. this.pzDialog = false;
  16047. return;
  16048. }
  16049. this.ispzType = 4;
  16050. this.pzDialog = true;
  16051. this.selectPz();
  16052. },
  16053. selectPz() {
  16054. let params = {
  16055. cid: this.id,
  16056. s: this.courseType,
  16057. t: this.taskCount,
  16058. type: this.pzStype,
  16059. uid: this.userid,
  16060. };
  16061. this.ajax
  16062. .get(this.$store.state.api + "selectPzListType", params)
  16063. .then((res) => {
  16064. this.pzList = res.data[0];
  16065. var a = res.data[1];
  16066. for (var i = 0; i < a.length; i++) {
  16067. for (var j = 0; j < this.pzList.length; j++) {
  16068. if (!this.pzList[j].hfList) {
  16069. this.pzList[j].hfList = [];
  16070. }
  16071. if (a[i].pid == this.pzList[j].id) {
  16072. this.pzList[j].hfList.push(a[i]);
  16073. }
  16074. }
  16075. }
  16076. })
  16077. .catch((err) => {
  16078. console.error(err);
  16079. });
  16080. },
  16081. // selectHf() {
  16082. // let params = {
  16083. // cid: this.id,
  16084. // s: this.courseType,
  16085. // t: this.taskCount,
  16086. // };
  16087. // this.ajax
  16088. // .get(this.$store.state.api + "selectHfList", params)
  16089. // .then((res) => {
  16090. // var a = res.data[0];
  16091. // for (var i = 0; i < a.length; i++) {
  16092. // for (var j = 0; j < this.pzList.length; j++) {
  16093. // if (!this.pzList[i].hfList) {
  16094. // this.pzList[i].hfList = [];
  16095. // }
  16096. // if (a[i].pid == this.pzList[j].id) {
  16097. // this.pzList[i].hfList.push(a[i]);
  16098. // }
  16099. // }
  16100. // }
  16101. // })
  16102. // .catch((err) => {
  16103. // console.error(err);
  16104. // });
  16105. // },
  16106. updateSLook() {
  16107. let params = {
  16108. sopen: this.sIsOpen == false ? 1 : 2,
  16109. cid: this.id,
  16110. };
  16111. this.ajax
  16112. .get(this.$store.state.api + "updateCourseSLook", params)
  16113. .then((res) => {
  16114. if (this.sIsOpen == true) {
  16115. this.$message({
  16116. message: "权限设置成功",
  16117. type: "success",
  16118. });
  16119. } else {
  16120. this.$message({
  16121. message: "权限关闭成功",
  16122. type: "success",
  16123. });
  16124. }
  16125. })
  16126. .catch((err) => {
  16127. console.error(err);
  16128. });
  16129. },
  16130. updateFollow() {
  16131. let params = [
  16132. {
  16133. sopen: this.IsFollow == false ? 1 : 2,
  16134. cid: this.id,
  16135. },
  16136. ];
  16137. this.ajax
  16138. .post(this.$store.state.api + "updateCourseFollow", params)
  16139. .then((res) => {
  16140. if (this.IsFollow == true) {
  16141. this.$message({
  16142. message: "开启成功",
  16143. type: "success",
  16144. });
  16145. } else {
  16146. this.$message({
  16147. message: "关闭成功",
  16148. type: "success",
  16149. });
  16150. }
  16151. this.setCTask();
  16152. })
  16153. .catch((err) => {
  16154. console.error(err);
  16155. });
  16156. },
  16157. setCTask() {
  16158. let params = [
  16159. {
  16160. sopen: this.courseType + "-" + this.taskCount,
  16161. cid: this.id,
  16162. },
  16163. ];
  16164. this.ajax
  16165. .post(this.$store.state.api + "updateCourseFollowC", params)
  16166. .then((res) => {})
  16167. .catch((err) => {
  16168. console.error(err);
  16169. });
  16170. },
  16171. updateLookOpen() {
  16172. let params = [
  16173. {
  16174. sopen: this.IsLookOpen == false ? 1 : 2,
  16175. cid: this.id,
  16176. },
  16177. ];
  16178. this.ajax
  16179. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16180. .then((res) => {
  16181. if (this.IsLookOpen == true) {
  16182. // if (this.courseType != 0 && this.taskCount != 0) {
  16183. // this.openTask(0, 0, "0-0");
  16184. // }
  16185. this.$message({
  16186. message: "权限设置成功",
  16187. type: "success",
  16188. });
  16189. } else {
  16190. this.$message({
  16191. message: "权限关闭成功",
  16192. type: "success",
  16193. });
  16194. }
  16195. this.getCourseState(2);
  16196. })
  16197. .catch((err) => {
  16198. console.error(err);
  16199. });
  16200. },
  16201. selectSLook() {
  16202. let params = {
  16203. cid: this.id,
  16204. };
  16205. this.ajax
  16206. .get(this.$store.state.api + "selectCourseSLook", params)
  16207. .then((res) => {
  16208. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16209. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16210. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16211. if (!this.IsLookOpen) {
  16212. this.setNavList();
  16213. } else {
  16214. this.getCourseState(1);
  16215. }
  16216. if (this.IsFollow && this.tType == 2) {
  16217. this.setContent2(false);
  16218. let _followC = res.data[0][0].followC.split("-");
  16219. if (
  16220. this.courseType != _followC[0] ||
  16221. this.taskCount != _followC[1]
  16222. ) {
  16223. this.navList[this.courseType].isOpen = false;
  16224. this.courseType = _followC[0];
  16225. this.navList[this.courseType].isOpen = true;
  16226. this.taskCount = parseInt(_followC[1]);
  16227. this.navId = res.data[0][0].followC;
  16228. document.scrollingElement.scrollTop = 0;
  16229. this.getCourseDetail(2);
  16230. }
  16231. }
  16232. })
  16233. .catch((err) => {
  16234. console.error(err);
  16235. });
  16236. },
  16237. setNavList() {
  16238. if (this.navList.length == 0) {
  16239. this.navList = [];
  16240. var copyList = [];
  16241. for (var l = 0; l < this.chapInfoList.length; l++) {
  16242. var q = this.chapInfoList[l].dyName;
  16243. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16244. var e;
  16245. copyList.push({
  16246. dyName: q,
  16247. isOpen: l === 0 ? true : false,
  16248. task: [],
  16249. });
  16250. for (var r = 0; r < w.length; r++) {
  16251. e = w[r].task;
  16252. if (this.chapInfoList[l].easy == 1) {
  16253. copyList[l].task.push({
  16254. taskName: q,
  16255. id: l + "-" + r,
  16256. isLook: w[r].isLook,
  16257. isOpen: r === 0 ? true : false,
  16258. tool: [],
  16259. });
  16260. } else {
  16261. copyList[l].task.push({
  16262. taskName: e,
  16263. id: l + "-" + r,
  16264. isLook: w[r].isLook,
  16265. isOpen: r === 0 ? true : false,
  16266. tool: [],
  16267. });
  16268. }
  16269. var t = w[r].toolChoose;
  16270. for (var k = 0; k < t.length; k++) {
  16271. var tool = t[k].tool[0];
  16272. copyList[l].task[r].tool.push({
  16273. tool: tool,
  16274. isTool: false,
  16275. });
  16276. }
  16277. // this.navId = this.navId ? this.navId : l + "-" + r;
  16278. // this.navId = l + "-" + r;
  16279. }
  16280. }
  16281. this.navList = copyList;
  16282. this.navList[0].isOpen = false;
  16283. this.navList[this.courseType].isOpen = true;
  16284. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16285. } else {
  16286. this.setNavList2();
  16287. }
  16288. },
  16289. setNavList2() {
  16290. for (var l = 0; l < this.chapInfoList.length; l++) {
  16291. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16292. for (var r = 0; r < w.length; r++) {
  16293. this.navList[l].task[r].isLook = w[r].isLook;
  16294. }
  16295. }
  16296. if (
  16297. this.IsLookOpen &&
  16298. !this.navList[this.courseType].task[this.taskCount].isLook
  16299. ) {
  16300. this.openTask(0, 0, "0-0");
  16301. }
  16302. this.$forceUpdate();
  16303. },
  16304. getCourseState(type) {
  16305. let params = {
  16306. cid: this.id,
  16307. };
  16308. this.ajax
  16309. .get(this.$store.state.api + "getCourseState", params)
  16310. .then((res) => {
  16311. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16312. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16313. this.setNavList();
  16314. this.$forceUpdate();
  16315. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16316. this.addCourseState(2);
  16317. } else {
  16318. this.addCourseState(1);
  16319. }
  16320. })
  16321. .catch((err) => {
  16322. console.error(err);
  16323. });
  16324. },
  16325. addCourseState(type) {
  16326. let _state = this.chapInfoList;
  16327. // this.courseType this.taskCount
  16328. if (type == 1 || type == 2) {
  16329. for (var i = 0; i < _state.length; i++) {
  16330. let el = _state[i].chapterInfo[0].taskJson;
  16331. for (var j = 0; j < el.length; j++) {
  16332. // if (i == 0 && j == 0) {
  16333. // el[j].isLook = true;
  16334. // } else {
  16335. // el[j].isLook = false;
  16336. // }
  16337. if (
  16338. this.courseType > i ||
  16339. (this.courseType == i && this.taskCount + 1 > j)
  16340. ) {
  16341. el[j].isLook = true;
  16342. } else {
  16343. el[j].isLook = false;
  16344. }
  16345. }
  16346. }
  16347. }
  16348. let params = [
  16349. {
  16350. cid: this.id,
  16351. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16352. },
  16353. ];
  16354. this.ajax
  16355. .post(
  16356. this.$store.state.api +
  16357. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16358. params
  16359. )
  16360. .then((res) => {
  16361. if (this.IsLookOpen) {
  16362. this.setNavList();
  16363. }
  16364. if (type == 3 && type == 2) {
  16365. this.getCourseState(1);
  16366. }
  16367. })
  16368. .catch((err) => {
  16369. console.error(err);
  16370. });
  16371. },
  16372. getHomeWork() {
  16373. let params = {
  16374. cid: this.id,
  16375. stage: this.courseType,
  16376. task: this.taskCount,
  16377. uid: this.userid,
  16378. };
  16379. this.ajax
  16380. .get(this.$store.state.api + "selectWork", params)
  16381. .then((res) => {
  16382. if (res.data[0].length > 0) {
  16383. this.studyJuri = JSON.parse(res.data[0][0].content);
  16384. this.isNoHomeWork = true;
  16385. }
  16386. })
  16387. .catch((err) => {
  16388. console.error(err);
  16389. });
  16390. },
  16391. isAssetTypeAnImage(ext) {
  16392. return (
  16393. [
  16394. "png",
  16395. "jpg",
  16396. "jpeg",
  16397. "bmp",
  16398. "gif",
  16399. "webp",
  16400. "psd",
  16401. "svg",
  16402. "tiff",
  16403. ].indexOf(ext) !== -1
  16404. );
  16405. },
  16406. switchVideo(media) {
  16407. this.playerO = {};
  16408. this.playerOptions.poster = "";
  16409. this.playerOptions.sources[0].src = media;
  16410. this.playerO = this.playerOptions;
  16411. },
  16412. onPlayerPlay() {},
  16413. onPlayerTimeupdate(player) {
  16414. let gklog = player.cache_.currentTime; //当前播放的秒数
  16415. let a = player.cache_.duration; //视频的总时长
  16416. let gklog2 = parseInt(gklog);
  16417. // if(gklog2 == '3'){
  16418. // player.pause()
  16419. // setTimeout(()=>{
  16420. // player.currentTime(gklog2+1)
  16421. // player.play()
  16422. // },1000)
  16423. // }
  16424. console.log(" onPlayerTimeupdate!", gklog);
  16425. console.log(" onPlayerTimeupdate!", gklog2);
  16426. },
  16427. lookVedio(u, i) {
  16428. this.isClickNav = "";
  16429. // this.playerOptions.sources[0].src = u;
  16430. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16431. d.sources[0].src = u;
  16432. this.playerO[this.taskCount] = d;
  16433. this.showType = 0;
  16434. // this.isClickNav = "video" + i;
  16435. this.isClickNav = i;
  16436. this.$forceUpdate();
  16437. },
  16438. lookText(i, t) {
  16439. this.isClickNav = "";
  16440. // this.text = this.textList[i][t];
  16441. this.text = this.vChapterData[i][t];
  16442. // this.dialogVisible1 = true;
  16443. this.showType = 1;
  16444. // this.isClickNav = "text" + t;
  16445. this.isClickNav = t;
  16446. },
  16447. lookTools(i, t) {
  16448. this.chapTools = this.chapToolList[i][t];
  16449. this.dialogVisible2 = true;
  16450. },
  16451. openFile(f) {
  16452. this.pptImgUrl = "";
  16453. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16454. if (
  16455. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16456. -1
  16457. ) {
  16458. this.pptImgUrl =
  16459. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16460. this.showPDF = false;
  16461. this.dialogVisible3 = true;
  16462. } else if (
  16463. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16464. ) {
  16465. this.pptImgUrl = f;
  16466. this.showPDF = true;
  16467. this.dialogVisible3 = true;
  16468. }
  16469. },
  16470. openTable(f) {
  16471. this.tableJson = JSON.parse(f.works);
  16472. this.dialogVisibleTable2 = true;
  16473. },
  16474. openWord(f) {
  16475. this.tableJson = JSON.parse(f.works);
  16476. this.dialogVisibleTable3 = true;
  16477. },
  16478. doUrl(url, i) {
  16479. this.isClickNav = "";
  16480. this.pptImgUrl1 = "";
  16481. this.showType = 2;
  16482. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16483. url = "https://" + url;
  16484. }
  16485. this.pptImgUrl1 = "";
  16486. setTimeout(() => {
  16487. this.pptImgUrl1 = url;
  16488. }, 500);
  16489. // this.isClickNav = "line" + i;
  16490. this.isClickNav = i;
  16491. this.$forceUpdate();
  16492. },
  16493. checkPhoto(f, i) {
  16494. this.showType = 4;
  16495. this.pptImgUrl1 = f.url;
  16496. this.isClickNav = i;
  16497. this.$forceUpdate();
  16498. },
  16499. downFile(f, i) {
  16500. this.isClickNav = "";
  16501. this.pptImgUrl1 = "";
  16502. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16503. if (
  16504. a.indexOf(
  16505. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16506. ) != -1
  16507. ) {
  16508. this.pptImgUrl1 =
  16509. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16510. // this.dialogVisible3 = true;
  16511. this.showType = 2;
  16512. } else if (
  16513. this.isAssetTypeAnImage(
  16514. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16515. )
  16516. ) {
  16517. this.showType = 4;
  16518. this.pptImgUrl1 = f.url;
  16519. } else if (
  16520. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16521. "PDF"
  16522. ) {
  16523. this.pptImgUrl1 = f.url;
  16524. // this.dialogVisible3 = true;
  16525. this.showType = 3;
  16526. } else {
  16527. window.open(this.file[i].url);
  16528. }
  16529. // this.isClickNav = "word" + i;
  16530. this.isClickNav = i;
  16531. },
  16532. downFileList(i) {
  16533. window.open(this.noImgList[i].url);
  16534. },
  16535. openAddWork() {
  16536. this.dialogVisible = true;
  16537. },
  16538. addBzWorks() {
  16539. let params = [
  16540. {
  16541. uid: this.userid,
  16542. cid: this.id,
  16543. stage: this.courseType,
  16544. task: this.taskCount,
  16545. tool: this.toolindex,
  16546. content: JSON.stringify(this.eScore),
  16547. type: 6,
  16548. },
  16549. ];
  16550. this.ajax
  16551. .post(this.$store.state.api + "addCourseWorks", params)
  16552. .then((res) => {
  16553. this.$message({
  16554. message: "提交成功",
  16555. type: "success",
  16556. });
  16557. this.eScore = { eBzText: "", eStar: [] };
  16558. this.studentEvalDialogVisible = false;
  16559. this.selectSWorks();
  16560. })
  16561. .catch((err) => {
  16562. this.$message.error("提交失败");
  16563. console.error(err);
  16564. });
  16565. },
  16566. addBzWorksTeacher() {
  16567. let params = [
  16568. {
  16569. uid: this.sStudent.userid,
  16570. cid: this.id,
  16571. stage: this.courseType,
  16572. task: this.taskCount,
  16573. tool: this.toolindex,
  16574. content: JSON.stringify(this.eScore),
  16575. type: 6,
  16576. },
  16577. ];
  16578. this.ajax
  16579. .post(this.$store.state.api + "addCourseWorks", params)
  16580. .then((res) => {
  16581. this.$message({
  16582. message: "提交成功",
  16583. type: "success",
  16584. });
  16585. this.eScore = { eBzText: "", eStar: [] };
  16586. this.studentEvalDialogVisibleTeacher = false;
  16587. this.selectSWorks();
  16588. })
  16589. .catch((err) => {
  16590. this.$message.error("提交失败");
  16591. console.error(err);
  16592. });
  16593. },
  16594. addStudentAsk() {
  16595. if (!this.radio.length) {
  16596. this.$message.error("请选择选项");
  16597. return;
  16598. }
  16599. for (var i = 0; i < this.askJson.askCount; i++) {
  16600. if (
  16601. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16602. (this.radio[i] !== 0 && !this.radio[i])
  16603. ) {
  16604. this.$message.error("请选择选项");
  16605. return;
  16606. }
  16607. }
  16608. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16609. let params = [
  16610. {
  16611. uid: this.userid,
  16612. cid: this.id,
  16613. stage: this.courseType,
  16614. task: this.taskCount,
  16615. tool: this.toolindex,
  16616. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16617. type: 2,
  16618. },
  16619. ];
  16620. this.ajax
  16621. .post(this.$store.state.api + "addCourseWorks", params)
  16622. .then((res) => {
  16623. this.$message({
  16624. message: "提交成功",
  16625. type: "success",
  16626. });
  16627. this.askList = [];
  16628. this.dialogVisible5 = false;
  16629. this.selectStudent();
  16630. this.selectSWorks();
  16631. this.selectSLook();
  16632. })
  16633. .catch((err) => {
  16634. this.$message.error("提交失败");
  16635. console.error(err);
  16636. });
  16637. },
  16638. addStudentAskTeacher() {
  16639. if (!this.radio.length) {
  16640. this.$message.error("请选择选项");
  16641. return;
  16642. }
  16643. for (var i = 0; i < this.askJson.askCount; i++) {
  16644. if (
  16645. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16646. (this.radio[i] !== 0 && !this.radio[i])
  16647. ) {
  16648. this.$message.error("请选择选项");
  16649. return;
  16650. }
  16651. }
  16652. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16653. let params = [
  16654. {
  16655. uid: this.sStudent.userid,
  16656. cid: this.id,
  16657. stage: this.courseType,
  16658. task: this.taskCount,
  16659. tool: this.toolindex,
  16660. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16661. type: 2,
  16662. },
  16663. ];
  16664. this.ajax
  16665. .post(this.$store.state.api + "addCourseWorks", params)
  16666. .then((res) => {
  16667. this.$message({
  16668. message: "提交成功",
  16669. type: "success",
  16670. });
  16671. this.askList = [];
  16672. this.dialogVisible5Teacher = false;
  16673. this.selectStudent();
  16674. this.selectSWorks();
  16675. this.selectSLook();
  16676. })
  16677. .catch((err) => {
  16678. this.$message.error("提交失败");
  16679. console.error(err);
  16680. });
  16681. },
  16682. addStudentTest() {
  16683. if (!this.radio.length) {
  16684. this.$message.error("请选择选项");
  16685. return;
  16686. }
  16687. for (var i = 0; i < this.testJson.testCount; i++) {
  16688. if (
  16689. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16690. (this.radio[i] !== 0 && !this.radio[i])
  16691. ) {
  16692. this.$message.error("请选择选项");
  16693. return;
  16694. }
  16695. }
  16696. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16697. let params = [
  16698. {
  16699. uid: this.userid,
  16700. cid: this.id,
  16701. stage: this.courseType,
  16702. task: this.taskCount,
  16703. tool: this.toolindex,
  16704. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16705. type: 8,
  16706. },
  16707. ];
  16708. this.ajax
  16709. .post(this.$store.state.api + "addCourseWorks", params)
  16710. .then((res) => {
  16711. this.$message({
  16712. message: "提交成功",
  16713. type: "success",
  16714. });
  16715. this.askList = [];
  16716. this.dialogVisibleChoice = false;
  16717. this.selectStudent();
  16718. this.selectSWorks();
  16719. this.selectSLook();
  16720. })
  16721. .catch((err) => {
  16722. this.$message.error("提交失败");
  16723. console.error(err);
  16724. });
  16725. },
  16726. addStudentTestTeacher() {
  16727. if (!this.radio.length) {
  16728. this.$message.error("请选择选项");
  16729. return;
  16730. }
  16731. for (var i = 0; i < this.testJson.testCount; i++) {
  16732. if (
  16733. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16734. (this.radio[i] !== 0 && !this.radio[i])
  16735. ) {
  16736. this.$message.error("请选择选项");
  16737. return;
  16738. }
  16739. }
  16740. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16741. let params = [
  16742. {
  16743. uid: this.sStudent.userid,
  16744. cid: this.id,
  16745. stage: this.courseType,
  16746. task: this.taskCount,
  16747. tool: this.toolindex,
  16748. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16749. type: 8,
  16750. },
  16751. ];
  16752. this.ajax
  16753. .post(this.$store.state.api + "addCourseWorks", params)
  16754. .then((res) => {
  16755. this.$message({
  16756. message: "提交成功",
  16757. type: "success",
  16758. });
  16759. this.askList = [];
  16760. this.dialogVisibleChoiceTeacher = false;
  16761. this.selectStudent();
  16762. this.selectSWorks();
  16763. this.selectSLook();
  16764. })
  16765. .catch((err) => {
  16766. this.$message.error("提交失败");
  16767. console.error(err);
  16768. });
  16769. },
  16770. addWork() {
  16771. if (this.studyJuri[0].content == "") {
  16772. this.$message.error("请将信息填写完整");
  16773. return;
  16774. } else if (this.studyJuri[0].cover.length == 0) {
  16775. this.$message.error("请将信息填写完整");
  16776. return;
  16777. } else if (this.studyJuri[0].upVedio.length == 0) {
  16778. this.$message.error("请将信息填写完整");
  16779. return;
  16780. }
  16781. if (this.isNoHomeWork) {
  16782. this.$confirm(
  16783. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16784. "提示",
  16785. {
  16786. confirmButtonText: "确定",
  16787. cancelButtonText: "取消",
  16788. type: "warning",
  16789. }
  16790. )
  16791. .then(() => {
  16792. let params = [
  16793. {
  16794. uid: this.userid,
  16795. cid: this.id,
  16796. stage: this.courseType,
  16797. task: this.taskCount,
  16798. content: JSON.stringify(this.studyJuri),
  16799. },
  16800. ];
  16801. this.ajax
  16802. .post(this.$store.state.api + "addWorks", params)
  16803. .then((res) => {
  16804. this.$message({
  16805. message: "提交成功",
  16806. type: "success",
  16807. });
  16808. this.isNoHomeWork = true;
  16809. this.dialogVisible = false;
  16810. })
  16811. .catch((err) => {
  16812. this.$message.error("提交失败");
  16813. console.error(err);
  16814. });
  16815. })
  16816. .catch(() => {});
  16817. } else {
  16818. let params = [
  16819. {
  16820. uid: this.userid,
  16821. cid: this.id,
  16822. stage: this.courseType,
  16823. task: this.taskCount,
  16824. content: JSON.stringify(this.studyJuri),
  16825. },
  16826. ];
  16827. this.ajax
  16828. .post(this.$store.state.api + "addWorks", params)
  16829. .then((res) => {
  16830. this.$message({
  16831. message: "提交成功",
  16832. type: "success",
  16833. });
  16834. this.isNoHomeWork = true;
  16835. this.dialogVisible = false;
  16836. })
  16837. .catch((err) => {
  16838. this.$message.error("提交失败");
  16839. console.error(err);
  16840. });
  16841. }
  16842. },
  16843. selectCount() {
  16844. let params = {
  16845. cid: this.id,
  16846. chid: this.courseType,
  16847. uid: this.userid,
  16848. };
  16849. this.ajax
  16850. .get(this.$store.state.api + "selectToolsCount", params)
  16851. .then((res) => {
  16852. for (var i = 0; i < res.data[0].length; i++) {
  16853. if (res.data[0][i].tools == 1) {
  16854. this.wbCount = res.data[0][i].count;
  16855. } else if (res.data[0][i].tools == 2) {
  16856. this.wordCount = res.data[0][i].count;
  16857. } else if (res.data[0][i].tools == 3) {
  16858. this.mindCount = res.data[0][i].count;
  16859. } else if (res.data[0][i].tools == 4) {
  16860. this.askCount = res.data[0][i].count;
  16861. } else if (res.data[0][i].tools == 6) {
  16862. this.noteCount = res.data[0][i].count;
  16863. } else if (res.data[0][i].tools == 7) {
  16864. this.mindNetWorkCount = res.data[0][i].count;
  16865. } else if (res.data[0][i].tools == 8) {
  16866. this.libraryCount = res.data[0][i].count;
  16867. } else if (res.data[0][i].tools == 16) {
  16868. this.workCount = res.data[0][i].count;
  16869. } else if (res.data[0][i].tools == 10) {
  16870. this.timeCount = res.data[0][i].count;
  16871. } else if (res.data[0][i].tools == 15) {
  16872. this.answerCount = res.data[0][i].count;
  16873. } else if (res.data[0][i].tools == 18) {
  16874. this.trainCount = res.data[0][i].count;
  16875. }
  16876. }
  16877. })
  16878. .catch((err) => {
  16879. console.error(err);
  16880. });
  16881. },
  16882. openTools(t, i, index, c, sName,id) {
  16883. var z = JSON.parse(c);
  16884. this.noteName = sName;
  16885. if (t == 4) {
  16886. this.radio = [];
  16887. this.isAnswer = false;
  16888. let b = z[0].anwer;
  16889. this.radio = b;
  16890. this.askJson = z[0].askJson;
  16891. this.isAnswer = true;
  16892. this.dialogVisible5 = true;
  16893. } else if (t == 45) {
  16894. this.radio = [];
  16895. this.isAnswer = false;
  16896. let b = z[0].anwer;
  16897. this.radio = b;
  16898. this.testJson = z[0].testJson;
  16899. this.isAnswer = true;
  16900. this.dialogVisibleChoice = true;
  16901. }else if(t == 69){
  16902. this.oldEnglishJson1 = {}
  16903. this.oldEnglishJson = {}
  16904. this.englishList1 = {}
  16905. this.newEngIndex = -1;
  16906. this.isNoUserid = false;
  16907. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16908. .toolChoose[i].englishList;
  16909. this.oldEnglishJson = z;
  16910. this.engWid = id;
  16911. this.newEnglishList = { engTitle:"",engText:"" }
  16912. this.newEnglishList1 = []
  16913. this.selectEngC(id,z);
  16914. }
  16915. // else if (t == 15) {
  16916. // this.answerQ = "";
  16917. // this.questionAnswer = "";
  16918. // this.answerQ = z[0].answerTitle;
  16919. // this.questionAnswer = z[0].answer;
  16920. // this.answerDialogVisible = true;
  16921. // }
  16922. },
  16923. fastText(p, t) {
  16924. if (t == 1) {
  16925. this.commentText += p;
  16926. } else {
  16927. this.eScore.eBzText += p;
  16928. }
  16929. },
  16930. addTools(t, i, index) {
  16931. var a = 0;
  16932. // this.taskCount = index;
  16933. this.toolindex = i;
  16934. if (t == 1) {
  16935. if (this.wbCount > 0) {
  16936. this.updateCount(this.wbCount, t);
  16937. } else {
  16938. this.wbCount++;
  16939. a = this.wbCount;
  16940. this.toolsCount(a, t);
  16941. }
  16942. window.parent.postMessage(
  16943. {
  16944. tools: "1",
  16945. cid: this.id,
  16946. stage: this.courseType,
  16947. task: this.taskCount,
  16948. tool: i,
  16949. },
  16950. "*"
  16951. );
  16952. } else if (t == 2) {
  16953. if (this.wordCount > 0) {
  16954. this.updateCount(this.wordCount, t);
  16955. } else {
  16956. this.wordCount++;
  16957. a = this.wordCount;
  16958. this.toolsCount(a, t);
  16959. }
  16960. window.parent.postMessage({ tools: "2" }, "*");
  16961. } else if (t == 3) {
  16962. if (this.mindCount > 0) {
  16963. this.updateCount(this.mindCount, t);
  16964. } else {
  16965. this.mindCount++;
  16966. a = this.mindCount;
  16967. this.toolsCount(a, t);
  16968. }
  16969. window.parent.postMessage(
  16970. {
  16971. tools: "3",
  16972. cid: this.id,
  16973. stage: this.courseType,
  16974. task: this.taskCount,
  16975. tool: i,
  16976. },
  16977. "*"
  16978. );
  16979. } else if (t == 4) {
  16980. this.radio = [];
  16981. this.noteName = "";
  16982. this.isAnswer = false;
  16983. if (this.askCount > 0) {
  16984. this.updateCount(this.askCount, t);
  16985. } else {
  16986. this.askCount++;
  16987. a = this.askCount;
  16988. this.toolsCount(a, t);
  16989. }
  16990. if (!this.dialogVisible2) {
  16991. this.askJson.askJson =
  16992. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16993. index
  16994. ].toolChoose[i].askJson;
  16995. this.askJson.askTitle =
  16996. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16997. index
  16998. ].toolChoose[i].askTitle;
  16999. this.askJson.askCount =
  17000. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17001. index
  17002. ].toolChoose[i].askCount;
  17003. } else {
  17004. this.askJson.askJson = this.chapTools.askJson.askJson;
  17005. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17006. this.askJson.askCount = this.chapTools.askJson.askCount;
  17007. }
  17008. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17009. if (this.askJson.askJson[k].type == "2") {
  17010. this.radio.push([]);
  17011. } else {
  17012. this.radio.push("");
  17013. }
  17014. }
  17015. this.dialogVisible5 = true;
  17016. // window.parent.postMessage({ tools: "4" }, "*");
  17017. } else if (t == 45) {
  17018. this.noteName = "";
  17019. this.radio = [];
  17020. this.isAnswer = false;
  17021. if (this.askCount > 0) {
  17022. this.updateCount(this.askCount, t);
  17023. } else {
  17024. this.askCount++;
  17025. a = this.askCount;
  17026. this.toolsCount(a, t);
  17027. }
  17028. this.testJson =
  17029. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17030. index
  17031. ].toolChoose[i].testJson;
  17032. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17033. if (this.testJson.testJson[k].type == "2") {
  17034. this.radio.push([]);
  17035. } else {
  17036. this.radio.push("");
  17037. }
  17038. }
  17039. this.dialogVisibleChoice = true;
  17040. // window.parent.postMessage({ tools: "4" }, "*");
  17041. } else if (t == 5) {
  17042. if (this.scoreCount > 0) {
  17043. this.updateCount(this.scoreCount, t);
  17044. } else {
  17045. this.scoreCount++;
  17046. a = this.scoreCount;
  17047. this.toolsCount(a, t);
  17048. }
  17049. this.dialogVisible4 = true;
  17050. // window.parent.postMessage({ tools: "5" }, "*");
  17051. } else if (t == 6) {
  17052. if (this.noteCount > 0) {
  17053. this.updateCount(this.noteCount, t);
  17054. } else {
  17055. this.noteCount++;
  17056. a = this.noteCount;
  17057. this.toolsCount(a, t);
  17058. }
  17059. window.parent.postMessage(
  17060. {
  17061. tools: "6",
  17062. cid: this.id,
  17063. stage: this.courseType,
  17064. task: this.taskCount,
  17065. tool: i,
  17066. },
  17067. "*"
  17068. );
  17069. } else if (t == 7) {
  17070. if (this.mindNetWorkCount > 0) {
  17071. this.updateCount(this.mindNetWorkCount, t);
  17072. } else {
  17073. this.mindNetWorkCount++;
  17074. a = this.mindNetWorkCount;
  17075. this.toolsCount(a, t);
  17076. }
  17077. window.parent.postMessage(
  17078. {
  17079. tools: "7",
  17080. cid: this.id,
  17081. stage: this.courseType,
  17082. task: this.taskCount,
  17083. tool: i,
  17084. },
  17085. "*"
  17086. );
  17087. } else if (t == 16) {
  17088. if (this.workCount > 0) {
  17089. this.updateCount(this.workCount, t);
  17090. } else {
  17091. this.workCount++;
  17092. a = this.workCount;
  17093. this.toolsCount(a, t);
  17094. }
  17095. this.dialogVisible = true;
  17096. } else if (t == 50) {
  17097. if (this.tType == 2) {
  17098. this.$message.error("不支持学生使用");
  17099. return;
  17100. }
  17101. this.plworkFile = [];
  17102. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17103. if (!this.uploadCid) {
  17104. this.$message.error(
  17105. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17106. );
  17107. return;
  17108. }
  17109. // this.uploadCid =
  17110. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17111. // index
  17112. // ].toolChoose[i].uploadJson[0];
  17113. this.selectUploadStudent(2);
  17114. } else if (t == 8) {
  17115. if (this.libraryCount > 0) {
  17116. this.updateCount(this.libraryCount, t);
  17117. } else {
  17118. this.libraryCount++;
  17119. a = this.libraryCount;
  17120. this.toolsCount(a, t);
  17121. }
  17122. window.parent.postMessage({ tools: "8" }, "*");
  17123. } else if (t == 17) {
  17124. if (this.libraryCount > 0) {
  17125. this.updateCount(this.libraryCount, t);
  17126. } else {
  17127. this.libraryCount++;
  17128. a = this.libraryCount;
  17129. this.toolsCount(a, t);
  17130. }
  17131. window.parent.postMessage({ tools: "17" }, "*");
  17132. } else if (t == 18) {
  17133. if (this.trainCount > 0) {
  17134. this.updateCount(this.trainCount, t);
  17135. } else {
  17136. this.trainCount++;
  17137. a = this.trainCount;
  17138. this.toolsCount(a, t);
  17139. }
  17140. window.parent.postMessage({ tools: "18" }, "*");
  17141. } else if (t == 10) {
  17142. if (this.timeCount > 0) {
  17143. this.updateCount(this.timeCount, t);
  17144. } else {
  17145. this.timeCount++;
  17146. a = this.timeCount;
  17147. this.toolsCount(a, t);
  17148. }
  17149. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17150. .taskJson[index].toolChoose[i].preTime
  17151. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17152. .toolChoose[i].preTime
  17153. : "";
  17154. this.timeDialogVisible = true;
  17155. } else if (t == 15) {
  17156. this.answerQ = "";
  17157. this.questionAnswer = "";
  17158. if (this.answerCount > 0) {
  17159. this.updateCount(this.answerCount, t);
  17160. } else {
  17161. this.answerCount++;
  17162. a = this.answerCount;
  17163. this.toolsCount(a, t);
  17164. }
  17165. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17166. .taskJson[index].toolChoose[i].answerQ
  17167. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17168. .toolChoose[i].answerQ
  17169. : "";
  17170. this.answerDialogVisible = true;
  17171. } else if (t == 21) {
  17172. window.parent.postMessage({ tools: "21" }, "*");
  17173. } else if (t == 22) {
  17174. window.parent.postMessage({ tools: "22" }, "*");
  17175. } else if (t == 23) {
  17176. window.parent.postMessage({ tools: "23" }, "*");
  17177. } else if (t == 24) {
  17178. window.parent.postMessage({ tools: "24" }, "*");
  17179. } else if (t == 25) {
  17180. window.parent.postMessage({ tools: "25" }, "*");
  17181. } else if (t == 31) {
  17182. window.parent.postMessage({ tools: "31" }, "*");
  17183. } else if (t == 28) {
  17184. window.parent.postMessage({ tools: "28" }, "*");
  17185. } else if (t == 37) {
  17186. window.parent.postMessage({ tools: "37" }, "*");
  17187. } else if (t == 38) {
  17188. window.parent.postMessage({ tools: "38" }, "*");
  17189. } else if (t == 39) {
  17190. window.parent.postMessage({ tools: "39" }, "*");
  17191. } else if (t == 32) {
  17192. window.parent.postMessage({ tools: "32" }, "*");
  17193. } else if (t == 66) {
  17194. window.parent.postMessage({ tools: "66" }, "*");
  17195. } else if (t == 67) {
  17196. window.parent.postMessage({ tools: "67" }, "*");
  17197. } else if (t == 68) {
  17198. window.parent.postMessage({ tools: "68" }, "*");
  17199. } else if (t == 57) {
  17200. // window.parent.postMessage({ tools: "57" }, "*");
  17201. window.parent.postMessage(
  17202. {
  17203. tools: "57u",
  17204. cid: this.id,
  17205. stage: this.courseType,
  17206. task: this.taskCount,
  17207. tool: i,
  17208. },
  17209. "*"
  17210. );
  17211. } else if (t == 58) {
  17212. window.parent.postMessage({ tools: "58" }, "*");
  17213. } else if (t == 59) {
  17214. window.parent.postMessage({ tools: "59" }, "*");
  17215. } else if (t == 60) {
  17216. window.parent.postMessage({ tools: "60" }, "*");
  17217. } else if (t == 61) {
  17218. window.parent.postMessage({ tools: "61" }, "*");
  17219. } else if (t == 63) {
  17220. window.parent.postMessage({ tools: "63" }, "*");
  17221. } else if (t == 69) {
  17222. if (this.worksStudent[i].length) {
  17223. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17224. if (this.userid == this.worksStudent[i][k].userid) {
  17225. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17226. break;
  17227. } else {
  17228. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17229. }
  17230. }
  17231. } else {
  17232. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17233. }
  17234. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17235. .taskJson[index].toolChoose[i].englishList
  17236. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17237. .toolChoose[i].englishList
  17238. : {};
  17239. this.englishToolIndex = i;
  17240. this.engDialogVisible = true;
  17241. } else if (t == 65) {
  17242. if (this.tType == 2) {
  17243. this.$message.error("不支持学生使用");
  17244. return;
  17245. }
  17246. this.uploadCid = this.tcid;
  17247. if (!this.uploadCid) {
  17248. this.$message.error(
  17249. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17250. );
  17251. return;
  17252. }
  17253. this.selectPickStudent();
  17254. } else if (t == 26) {
  17255. window.parent.postMessage(
  17256. {
  17257. tools: "26",
  17258. cid: this.id,
  17259. stage: this.courseType,
  17260. task: this.taskCount,
  17261. tool: i,
  17262. },
  17263. "*"
  17264. );
  17265. } else if (t == 40) {
  17266. if (this.evalCount > 0) {
  17267. this.updateCount(this.evalCount, t);
  17268. } else {
  17269. this.evalCount++;
  17270. a = this.evalCount;
  17271. this.toolsCount(a, t);
  17272. }
  17273. this.eScore = { eBzText: "", eStar: [] };
  17274. if (this.worksStudent[i].length) {
  17275. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17276. if (this.userid == this.worksStudent[i][k].userid) {
  17277. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17278. this.rateJson =
  17279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17280. index
  17281. ].toolChoose[i].rateJson;
  17282. break;
  17283. } else {
  17284. this.rateJson =
  17285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17286. index
  17287. ].toolChoose[i].rateJson;
  17288. }
  17289. }
  17290. } else {
  17291. this.rateJson =
  17292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17293. index
  17294. ].toolChoose[i].rateJson;
  17295. }
  17296. this.isStar = false;
  17297. this.studentEvalDialogVisible = true;
  17298. } else if (t == 41) {
  17299. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17300. .taskJson[index].toolChoose[i].selectJson
  17301. ? JSON.parse(
  17302. JSON.stringify(
  17303. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17304. index
  17305. ].toolChoose[i].selectJson
  17306. )
  17307. )
  17308. : { url: "", select: [], answer: [] };
  17309. if (this.worksStudent[i].length) {
  17310. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17311. if (this.userid == this.worksStudent[i][k].userid) {
  17312. var a = this.worksStudent[i][k].works.split(",");
  17313. for (var ki = 0; ki < a.length; ki++) {
  17314. a[ki] = parseInt(a[ki]);
  17315. }
  17316. this.selectAnswer = {
  17317. answer: a,
  17318. stu: this.worksStudent[i][k].sName,
  17319. };
  17320. break;
  17321. } else {
  17322. this.selectAnswer = { answer: [], stu: "" };
  17323. }
  17324. }
  17325. } else {
  17326. this.selectAnswer = { answer: [], stu: "" };
  17327. }
  17328. this.isSelect = false;
  17329. this.dialogVisibleSelect = true;
  17330. } else if (t == 44) {
  17331. window.parent.postMessage({ tools: "44" }, "*");
  17332. } else if (t == 47) {
  17333. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17334. .taskJson[index].toolChoose[i].sentenceList
  17335. ? JSON.parse(
  17336. JSON.stringify(
  17337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17338. index
  17339. ].toolChoose[i].sentenceList
  17340. )
  17341. )
  17342. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17343. for (var q = 0; q < this.sentenceList.length; q++) {
  17344. this.sentenceList[q].chooseSenList = [];
  17345. this.sentenceList[q].addChangeSen = [];
  17346. this.sentenceList[q].addChangeSen = JSON.parse(
  17347. JSON.stringify(this.sentenceList[q].addSentence)
  17348. );
  17349. this.sentenceList[q].chooseSenList.length =
  17350. this.sentenceList[q].rightAnswer.length;
  17351. }
  17352. this.dialogVisibleSentence = true;
  17353. } else if (t == 48) {
  17354. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17355. .taskJson[index].toolChoose[i].tableJson
  17356. ? JSON.parse(
  17357. JSON.stringify(
  17358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17359. index
  17360. ].toolChoose[i].tableJson
  17361. )
  17362. )
  17363. : { text: "" };
  17364. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17365. if (this.worksStudent[i].length) {
  17366. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17367. if (this.userid == this.worksStudent[i][k].userid) {
  17368. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17369. break;
  17370. }
  17371. }
  17372. }
  17373. this.dialogVisibleTable = true;
  17374. } else if (t == 52) {
  17375. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17376. .taskJson[index].toolChoose[i].wordJson
  17377. ? JSON.parse(
  17378. JSON.stringify(
  17379. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17380. index
  17381. ].toolChoose[i].wordJson
  17382. )
  17383. )
  17384. : { text: "" };
  17385. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17386. if (this.worksStudent[i].length) {
  17387. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17388. if (this.userid == this.worksStudent[i][k].userid) {
  17389. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17390. break;
  17391. }
  17392. }
  17393. }
  17394. this.dialogVisibleWord = true;
  17395. } else if (t == 49) {
  17396. this.groupJson =
  17397. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17398. index
  17399. ].toolChoose[i].groupJson;
  17400. this.islock = this.groupJson.islock == 1 ? true : false;
  17401. this.dialogVisibleGroup = true;
  17402. } else if (t == 62) {
  17403. this.videoJson =
  17404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17405. index
  17406. ].toolChoose[i].videoJson;
  17407. this.dialogVisibleVideo = true;
  17408. }
  17409. },
  17410. teacherWorkSubmit(t, i, index, s) {
  17411. this.sStudent = s;
  17412. this.toolindex = i;
  17413. this.sTool = t;
  17414. if (this.tType !== "1" && this.tType !== "4") {
  17415. return;
  17416. }
  17417. if (t == 16 || t == 32 || t == 50) {
  17418. this.dialogVisibleWorks = true;
  17419. } else if (t == 15) {
  17420. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17421. .taskJson[index].toolChoose[i].answerQ
  17422. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17423. .toolChoose[i].answerQ
  17424. : "";
  17425. this.questionAnswer = "";
  17426. this.answerDialogVisibleTeacher = true; //问答
  17427. } else if (t == 52) {
  17428. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17429. .taskJson[index].toolChoose[i].wordJson
  17430. ? JSON.parse(
  17431. JSON.stringify(
  17432. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17433. index
  17434. ].toolChoose[i].wordJson
  17435. )
  17436. )
  17437. : { text: "" };
  17438. if (this.worksStudent[i].length) {
  17439. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17440. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17441. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17442. break;
  17443. }
  17444. }
  17445. }
  17446. this.dialogVisibleWordTeacher = true; //文档
  17447. } else if (t == 4) {
  17448. this.radio = [];
  17449. this.noteName = "";
  17450. this.isAnswer = false;
  17451. if (this.askCount > 0) {
  17452. this.updateCount(this.askCount, t);
  17453. } else {
  17454. this.askCount++;
  17455. a = this.askCount;
  17456. this.toolsCount(a, t);
  17457. }
  17458. if (!this.dialogVisible2) {
  17459. this.askJson.askJson =
  17460. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17461. index
  17462. ].toolChoose[i].askJson;
  17463. this.askJson.askTitle =
  17464. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17465. index
  17466. ].toolChoose[i].askTitle;
  17467. this.askJson.askCount =
  17468. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17469. index
  17470. ].toolChoose[i].askCount;
  17471. } else {
  17472. this.askJson.askJson = this.chapTools.askJson.askJson;
  17473. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17474. this.askJson.askCount = this.chapTools.askJson.askCount;
  17475. }
  17476. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17477. if (this.askJson.askJson[k].type == "2") {
  17478. this.radio.push([]);
  17479. } else {
  17480. this.radio.push("");
  17481. }
  17482. }
  17483. this.dialogVisible5Teacher = true;
  17484. } else if (t == 45) {
  17485. this.noteName = "";
  17486. this.radio = [];
  17487. this.isAnswer = false;
  17488. if (this.askCount > 0) {
  17489. this.updateCount(this.askCount, t);
  17490. } else {
  17491. this.askCount++;
  17492. a = this.askCount;
  17493. this.toolsCount(a, t);
  17494. }
  17495. this.testJson =
  17496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17497. index
  17498. ].toolChoose[i].testJson;
  17499. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17500. if (this.testJson.testJson[k].type == "2") {
  17501. this.radio.push([]);
  17502. } else {
  17503. this.radio.push("");
  17504. }
  17505. }
  17506. this.dialogVisibleChoiceTeacher = true;
  17507. } else if (t == 41) {
  17508. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17509. .taskJson[index].toolChoose[i].selectJson
  17510. ? JSON.parse(
  17511. JSON.stringify(
  17512. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17513. index
  17514. ].toolChoose[i].selectJson
  17515. )
  17516. )
  17517. : { url: "", select: [], answer: [] };
  17518. if (this.worksStudent[i].length) {
  17519. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17520. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17521. var a = this.worksStudent[i][k].works.split(",");
  17522. for (var ki = 0; ki < a.length; ki++) {
  17523. a[ki] = parseInt(a[ki]);
  17524. }
  17525. this.selectAnswer = {
  17526. answer: a,
  17527. stu: this.worksStudent[i][k].sName,
  17528. };
  17529. break;
  17530. } else {
  17531. this.selectAnswer = { answer: [], stu: "" };
  17532. }
  17533. }
  17534. } else {
  17535. this.selectAnswer = { answer: [], stu: "" };
  17536. }
  17537. this.isSelect = false;
  17538. this.dialogVisibleSelectTeacher = true;
  17539. } else if (t == 47) {
  17540. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17541. .taskJson[index].toolChoose[i].sentenceList
  17542. ? JSON.parse(
  17543. JSON.stringify(
  17544. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17545. index
  17546. ].toolChoose[i].sentenceList
  17547. )
  17548. )
  17549. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17550. for (var q = 0; q < this.sentenceList.length; q++) {
  17551. this.sentenceList[q].chooseSenList = [];
  17552. this.sentenceList[q].addChangeSen = [];
  17553. this.sentenceList[q].addChangeSen = JSON.parse(
  17554. JSON.stringify(this.sentenceList[q].addSentence)
  17555. );
  17556. this.sentenceList[q].chooseSenList.length =
  17557. this.sentenceList[q].rightAnswer.length;
  17558. }
  17559. this.dialogVisibleSentenceTeacher = true;
  17560. } else if (t == 48) {
  17561. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17562. .taskJson[index].toolChoose[i].tableJson
  17563. ? JSON.parse(
  17564. JSON.stringify(
  17565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17566. index
  17567. ].toolChoose[i].tableJson
  17568. )
  17569. )
  17570. : { text: "" };
  17571. if (this.worksStudent[i].length) {
  17572. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17573. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17574. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17575. break;
  17576. }
  17577. }
  17578. }
  17579. this.dialogVisibleTableTeacher = true;
  17580. } else if (t == 40) {
  17581. if (this.evalCount > 0) {
  17582. this.updateCount(this.evalCount, t);
  17583. } else {
  17584. this.evalCount++;
  17585. a = this.evalCount;
  17586. this.toolsCount(a, t);
  17587. }
  17588. this.eScore = { eBzText: "", eStar: [] };
  17589. if (this.worksStudent[i].length) {
  17590. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17591. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17592. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17593. this.rateJson =
  17594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17595. index
  17596. ].toolChoose[i].rateJson;
  17597. break;
  17598. } else {
  17599. this.rateJson =
  17600. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17601. index
  17602. ].toolChoose[i].rateJson;
  17603. }
  17604. }
  17605. } else {
  17606. this.rateJson =
  17607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17608. index
  17609. ].toolChoose[i].rateJson;
  17610. }
  17611. this.isStar = false;
  17612. this.studentEvalDialogVisibleTeacher = true;
  17613. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17614. window.parent.postMessage(
  17615. {
  17616. tools: t + "teacher",
  17617. cid: this.id,
  17618. stage: this.courseType,
  17619. task: this.taskCount,
  17620. tool: i,
  17621. student: this.sStudent,
  17622. },
  17623. "*"
  17624. );
  17625. }
  17626. },
  17627. openCocoPi(tool, i, uid, uname) {
  17628. let student = {
  17629. userid: uid,
  17630. student: uname,
  17631. };
  17632. if (tool == 57) {
  17633. window.parent.postMessage(
  17634. {
  17635. tools: tool + "teacher",
  17636. cid: this.id,
  17637. stage: this.courseType,
  17638. task: this.taskCount,
  17639. tool: i,
  17640. student: student,
  17641. },
  17642. "*"
  17643. );
  17644. }
  17645. },
  17646. setRightAnswer(s, i, j) {
  17647. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17648. if (
  17649. this.sentenceList[i].chooseSenList[q] == undefined ||
  17650. this.sentenceList[i].chooseSenList[q] == ""
  17651. ) {
  17652. this.sentenceList[i].chooseSenList[q] = s;
  17653. this.sentenceList[i].addChangeSen[j] = "";
  17654. break;
  17655. }
  17656. }
  17657. this.$forceUpdate();
  17658. },
  17659. returnCard(r, i, j) {
  17660. var a = this.sentenceList[i].addSentence.indexOf(r);
  17661. this.sentenceList[i].chooseSenList[j] = "";
  17662. this.sentenceList[i].addChangeSen[a] = r;
  17663. this.$forceUpdate();
  17664. },
  17665. // addSentenceTool() {
  17666. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17667. // this.taskCount
  17668. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17669. // this.sentenceList = [
  17670. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17671. // ];
  17672. // this.dialogVisibleSentence = false;
  17673. // },
  17674. toolsCount(a, t) {
  17675. let params = {
  17676. cid: this.id,
  17677. chid: this.courseType,
  17678. uid: this.userid,
  17679. tid: t,
  17680. count: a,
  17681. };
  17682. this.ajax
  17683. .get(this.$store.state.api + "insertToolsCount", params)
  17684. .then((res) => {
  17685. this.selectCount();
  17686. })
  17687. .catch((err) => {
  17688. console.error(err);
  17689. });
  17690. },
  17691. updateCount(c, t) {
  17692. c++;
  17693. let params = {
  17694. cid: this.id,
  17695. chid: this.courseType,
  17696. uid: this.userid,
  17697. tid: t,
  17698. count: c,
  17699. };
  17700. this.ajax
  17701. .get(this.$store.state.api + "updateToolsCount", params)
  17702. .then((res) => {
  17703. this.selectCount();
  17704. })
  17705. .catch((err) => {
  17706. console.error(err);
  17707. });
  17708. },
  17709. checkEva() {
  17710. if (this.evalua != "") {
  17711. for (var i = 0; i < this.evaJuri.length; i++) {
  17712. if (this.evalua == this.evaJuri[i].id) {
  17713. this.eTitle = this.evaJuri[i].title;
  17714. this.eJson = JSON.parse(this.evaJuri[i].content);
  17715. }
  17716. }
  17717. this.$forceUpdate();
  17718. setTimeout(() => {
  17719. this.setMindData();
  17720. }, 0);
  17721. }
  17722. },
  17723. selectEva() {
  17724. let params = {
  17725. oid: this.oid,
  17726. };
  17727. this.ajax
  17728. .get(this.$store.state.api + "selectAllEvaluation", params)
  17729. .then((res) => {
  17730. this.evaJuri = res.data[0];
  17731. })
  17732. .catch((err) => {
  17733. console.error(err);
  17734. });
  17735. },
  17736. setMindData() {
  17737. this.data.data = [];
  17738. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17739. let _eJson = Object.keys(this.eJson);
  17740. let _e = this.eJson;
  17741. for (let i = 0; i < _eJson.length; i++) {
  17742. let element = _e[_eJson[i]];
  17743. this.data.data.push({
  17744. id: element.id,
  17745. parentid: "root",
  17746. topic: element.name,
  17747. });
  17748. let _eJsonc = Object.keys(element.child);
  17749. let _e2 = element.child;
  17750. for (let j = 0; j < _eJsonc.length; j++) {
  17751. let _ec = _e2[_eJsonc[j]];
  17752. this.data.data.push({
  17753. id: _ec.id,
  17754. parentid: element.id,
  17755. topic: _ec.name,
  17756. });
  17757. let _eJsonz = Object.keys(_ec.child);
  17758. let _e3 = _ec.child;
  17759. for (let z = 0; z < _eJsonz.length; z++) {
  17760. let _ez = _e3[_eJsonz[z]];
  17761. this.data.data.push({
  17762. id: _ez.id,
  17763. parentid: _ec.id,
  17764. topic: _ez.name,
  17765. });
  17766. }
  17767. }
  17768. }
  17769. this.$forceUpdate();
  17770. },
  17771. checkFileFull(type, url) {
  17772. this.fullDialogVisible = true;
  17773. this.fulltype = type;
  17774. this.fullUrl = url;
  17775. },
  17776. checkFileFull1(t, f) {
  17777. this.fullDialogVisible = true;
  17778. if (t == 6) {
  17779. this.fulltype = 1;
  17780. this.fullUrl = JSON.parse(JSON.stringify(f));
  17781. } else if (t == 8) {
  17782. this.fulltype = 2;
  17783. this.fullUrl = f.url;
  17784. } else if (
  17785. t == 3 &&
  17786. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17787. "PDF"
  17788. ) {
  17789. this.fulltype = 3;
  17790. this.fullUrl = f.url;
  17791. } else if (t == 3) {
  17792. this.fulltype = 2;
  17793. this.fullUrl =
  17794. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17795. }
  17796. },
  17797. openSname(n, id, i, uid) {
  17798. this.snameWid = id;
  17799. this.worksSName = n;
  17800. this.worksSid = uid == n ? "" : uid;
  17801. this.toolindex = i;
  17802. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17803. if (!this.uploadCid) {
  17804. this.$message.error(
  17805. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17806. );
  17807. return;
  17808. }
  17809. this.selectUploadStudent(1);
  17810. },
  17811. updateName() {
  17812. let params = {
  17813. n: this.worksSName,
  17814. cid: this.snameWid,
  17815. };
  17816. this.ajax
  17817. .get(this.$store.state.api + "updateCourseWorksName", params)
  17818. .then((res) => {
  17819. this.$message({
  17820. message: "修改成功",
  17821. type: "success",
  17822. });
  17823. this.dialogVisibleSname = false;
  17824. this.getCourseDetail(2);
  17825. this.snameWid = "";
  17826. this.worksSName = "";
  17827. })
  17828. .catch((err) => {
  17829. console.error(err);
  17830. });
  17831. },
  17832. downloadFile2(f) {
  17833. // const loading = this.$loading.service({
  17834. // background: "rgba(255, 255, 255, 0.7)",
  17835. // target: document.body,
  17836. // text: "文件加载中...",
  17837. // });
  17838. // let url2 = f.url;
  17839. // let _url2 = "";
  17840. // if (
  17841. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17842. // ) {
  17843. // _url2 = url2.split(
  17844. // "https://view.officeapps.live.com/op/view.aspx?src="
  17845. // )[1];
  17846. // } else {
  17847. // _url2 = url2;
  17848. // }
  17849. // let params = {
  17850. // url: _url2,
  17851. // name: f.name,
  17852. // };
  17853. // this.ajax
  17854. // .get(this.$store.state.api + "download", params)
  17855. // .then((res) => {
  17856. // loading.close();
  17857. // let content = res.data.data.data;
  17858. // let ab = new ArrayBuffer(content.length);
  17859. // let view = new Uint8Array(ab);
  17860. // for (var i = 0; i < content.length; ++i) {
  17861. // view[i] = content[i];
  17862. // }
  17863. // let elink = document.createElement("a");
  17864. // elink.download = f.name;
  17865. // elink.style.display = "none";
  17866. // let blob = new Blob([ab], {
  17867. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17868. // });
  17869. // elink.href = URL.createObjectURL(blob);
  17870. // document.body.appendChild(elink);
  17871. // elink.click();
  17872. // document.body.removeChild(elink);
  17873. // })
  17874. // .catch((err) => {
  17875. // loading.close();
  17876. // console.error(err);
  17877. // });
  17878. let url = f.url;
  17879. let _this = this;
  17880. let _url = "";
  17881. if (
  17882. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17883. ) {
  17884. _url = url.split(
  17885. "https://view.officeapps.live.com/op/view.aspx?src="
  17886. )[1];
  17887. } else {
  17888. _url = url;
  17889. }
  17890. const loading = _this.$loading.service({
  17891. background: "rgba(255, 255, 255, 0.7)",
  17892. target: document.body,
  17893. text: "文件加载中...",
  17894. });
  17895. let x = new XMLHttpRequest();
  17896. x.open("GET", _url, true);
  17897. x.responseType = "blob";
  17898. x.onload = function () {
  17899. loading.close();
  17900. let url = window.URL.createObjectURL(new Blob([x.response]));
  17901. let a = document.createElement("a");
  17902. a.name = f.name;
  17903. a.href = url;
  17904. a.download = f.name;
  17905. a.click();
  17906. };
  17907. x.send();
  17908. },
  17909. downloadFile(url) {
  17910. let _this = this;
  17911. let _url = "";
  17912. if (
  17913. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17914. ) {
  17915. _url = url.split(
  17916. "https://view.officeapps.live.com/op/view.aspx?src="
  17917. )[1];
  17918. } else {
  17919. _url = url;
  17920. }
  17921. const x = new XMLHttpRequest();
  17922. x.open("GET", _url, true);
  17923. x.responseType = "blob";
  17924. const loading = _this.$loading.service({
  17925. background: "rgba(255, 255, 255, 0.7)",
  17926. target: document.body,
  17927. text: "文件加载中...",
  17928. });
  17929. // _this.$message.success("文件下载中...");
  17930. x.onload = function (e) {
  17931. loading.close();
  17932. let content = x.response;
  17933. let elink = document.createElement("a");
  17934. elink.download = decodeURI(
  17935. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17936. );
  17937. elink.style.display = "none";
  17938. let blob = new Blob([content]);
  17939. elink.href = URL.createObjectURL(blob);
  17940. document.body.appendChild(elink);
  17941. elink.click();
  17942. document.body.removeChild(elink);
  17943. };
  17944. x.send();
  17945. },
  17946. openLine(url) {
  17947. window.open(url);
  17948. },
  17949. resize() {
  17950. if (document.getElementsByClassName("box_course").length) {
  17951. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17952. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17953. if (this.showType == 2 || this.showType == 3) {
  17954. document.getElementsByClassName("navBox")[0].style.height =
  17955. a - 40 + 46 + "px";
  17956. } else {
  17957. document.getElementsByClassName("navBox")[0].style.height =
  17958. a - 40 + "px";
  17959. }
  17960. }
  17961. this.Stbodywidth =
  17962. document.getElementsByClassName("student_body").length &&
  17963. document.getElementsByClassName("student_body")[0].offsetWidth;
  17964. },
  17965. closeDraw() {
  17966. this.bg = null;
  17967. this.drawShow = false;
  17968. },
  17969. showPicturePaint(url) {
  17970. let params = {
  17971. img: url,
  17972. };
  17973. this.ajax
  17974. .get(this.$store.state.api + "imgToBase64", params)
  17975. .then((res) => {
  17976. this.drawShow = true;
  17977. this.bg = res.data[0].img;
  17978. })
  17979. .catch((err) => {
  17980. console.error(err);
  17981. });
  17982. },
  17983. addImgDraw(base64) {
  17984. let file = { name: "批注图.png" };
  17985. let img = this.dataUrlToFile(base64, file);
  17986. this.beforeUpload1(img, 5);
  17987. },
  17988. addImgDrawImG(url) {
  17989. // console.log(url);
  17990. let params = [
  17991. {
  17992. wid: this.commentDetail.wid,
  17993. img: url,
  17994. },
  17995. ];
  17996. this.ajax
  17997. .post(this.$store.state.api + "updateCourseWorks", params)
  17998. .then((res) => {
  17999. this.$message({
  18000. message: "提交成功",
  18001. type: "success",
  18002. });
  18003. this.drawShow = false;
  18004. this.bg = "";
  18005. this.selectSWorks();
  18006. this.selectStudent();
  18007. })
  18008. .catch((err) => {
  18009. this.$message.error("提交失败");
  18010. console.error(err);
  18011. });
  18012. },
  18013. deletePicturePaint() {
  18014. this.$confirm("确定删除此批注吗?", "提示", {
  18015. confirmButtonText: "确定",
  18016. cancelButtonText: "取消",
  18017. type: "warning",
  18018. })
  18019. .then(() => {
  18020. let params = [
  18021. {
  18022. wid: this.commentDetail.wid,
  18023. img: "",
  18024. },
  18025. ];
  18026. this.ajax
  18027. .post(this.$store.state.api + "updateCourseWorks", params)
  18028. .then((res) => {
  18029. this.$message({
  18030. message: "删除成功",
  18031. type: "success",
  18032. });
  18033. this.selectSWorks();
  18034. this.selectStudent();
  18035. })
  18036. .catch((err) => {
  18037. this.$message.error("删除失败");
  18038. console.error(err);
  18039. });
  18040. })
  18041. .catch(() => {});
  18042. },
  18043. getAudioVideo(constraintsData) {
  18044. if (navigator.mediaDevices === undefined) {
  18045. navigator.mediaDevices = {};
  18046. }
  18047. if (navigator.mediaDevices.getUserMedia === undefined) {
  18048. navigator.mediaDevices.getUserMedia = function (constraints) {
  18049. // 首先,如果有getUserMedia的话,就获得它
  18050. var getUserMedia =
  18051. navigator.getUserMedia ||
  18052. navigator.webkitGetUserMedia ||
  18053. navigator.mozGetUserMedia ||
  18054. navigator.msGetUserMedia;
  18055. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18056. if (!getUserMedia) {
  18057. return Promise.reject({ code: 404 });
  18058. }
  18059. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18060. return new Promise(function (resolve, reject) {
  18061. getUserMedia.call(navigator, constraints, resolve, reject);
  18062. });
  18063. };
  18064. }
  18065. return navigator.mediaDevices.getUserMedia(constraintsData);
  18066. },
  18067. /**
  18068. * 开始录制
  18069. */
  18070. startRecording(callback) {
  18071. let _function = (screenStream) => {
  18072. this.addStreamStopListener(screenStream, () => {
  18073. console.log("流停止监听");
  18074. this.stopRecording();
  18075. this.$emit("streamStop", {});
  18076. // this.stopRecording();
  18077. });
  18078. var options = {
  18079. type: "video",
  18080. mimeType: "video/webm",
  18081. disableLogs: false,
  18082. getNativeBlob: false, // enable it for longer recordings
  18083. ignoreMutedMedia: false,
  18084. };
  18085. // this.video.srcObject = screenStream;
  18086. this.recorder = RecordRTC(screenStream, options);
  18087. this.recorder.startRecording();
  18088. this.recorder.screen = screenStream;
  18089. this.videoStart = true;
  18090. // callback(true);
  18091. };
  18092. this.getAudioVideo({ audio: true })
  18093. .then((res) => {
  18094. this.captureScreen(_function, true);
  18095. console.log("已点击允许,开启成功");
  18096. })
  18097. .catch((err) => {
  18098. // console.log('浏览器不支持,请更换浏览器')
  18099. // } else {
  18100. this.captureScreen(_function, false);
  18101. console.log("请检查是否存在麦克风");
  18102. });
  18103. },
  18104. /**
  18105. * 停止录制
  18106. */
  18107. stopRecording(callback) {
  18108. this.recorder.stopRecording(() => {
  18109. // this.video.src = this.video.srcObject = null;
  18110. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18111. const url = URL.createObjectURL(this.recorder.getBlob());
  18112. const a = document.createElement("a"); //this.fileName+
  18113. let videoFile = new File(
  18114. [this.recorder.getBlob()],
  18115. this.courseDetail.title + "录屏.mp4",
  18116. {
  18117. type: "video/mp4",
  18118. }
  18119. );
  18120. let downloadUrl = URL.createObjectURL(videoFile);
  18121. document.body.appendChild(a);
  18122. a.style.display = "none";
  18123. a.href = url;
  18124. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18125. a.click();
  18126. this.recorder.screen.stop();
  18127. this.recorder.destroy();
  18128. this.recorder = null;
  18129. this.videoStart = false;
  18130. // callback(false);
  18131. });
  18132. },
  18133. //初始化
  18134. captureScreen(callback, type) {
  18135. if (navigator.getDisplayMedia) {
  18136. //录制结束,文件下载
  18137. navigator
  18138. .getDisplayMedia({
  18139. video: true,
  18140. })
  18141. .then((screenStream) => {
  18142. if (type) {
  18143. navigator.mediaDevices
  18144. .getUserMedia({ audio: true })
  18145. .then((mic) => {
  18146. screenStream.addTrack(mic.getTracks()[0]);
  18147. callback(screenStream);
  18148. });
  18149. } else {
  18150. callback(screenStream);
  18151. }
  18152. })
  18153. .catch(function (error) {
  18154. console.log("error", error);
  18155. });
  18156. } else if (navigator.mediaDevices.getDisplayMedia) {
  18157. navigator.mediaDevices
  18158. .getDisplayMedia({
  18159. video: true,
  18160. })
  18161. .then((screenStream) => {
  18162. if (type) {
  18163. navigator.mediaDevices
  18164. .getUserMedia({ audio: true })
  18165. .then((mic) => {
  18166. screenStream.addTrack(mic.getTracks()[0]);
  18167. callback(screenStream);
  18168. });
  18169. } else {
  18170. callback(screenStream);
  18171. }
  18172. })
  18173. .catch(function (error) {
  18174. console.log("error", error);
  18175. });
  18176. } else {
  18177. var error = "getDisplayMedia API are not supported in this browser.";
  18178. console.log("error", error);
  18179. alert(error);
  18180. }
  18181. },
  18182. //流监听
  18183. addStreamStopListener(stream, callback) {
  18184. stream.addEventListener(
  18185. "ended",
  18186. function () {
  18187. callback();
  18188. callback = function () {};
  18189. },
  18190. false
  18191. );
  18192. stream.addEventListener(
  18193. "inactive",
  18194. function () {
  18195. callback();
  18196. callback = function () {};
  18197. },
  18198. false
  18199. );
  18200. stream.getTracks().forEach(function (track) {
  18201. track.addEventListener(
  18202. "ended",
  18203. function () {
  18204. callback();
  18205. callback = function () {};
  18206. },
  18207. false
  18208. );
  18209. track.addEventListener(
  18210. "inactive",
  18211. function () {
  18212. callback();
  18213. callback = function () {};
  18214. },
  18215. false
  18216. );
  18217. });
  18218. },
  18219. updateGroup() {
  18220. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18221. this.dialogVisibleGroup2 = true;
  18222. },
  18223. numberPan() {
  18224. if (
  18225. /[^\d]/.test(this.groupJson.number) ||
  18226. this.groupJson.number < 2 ||
  18227. this.groupJson.number > 10
  18228. ) {
  18229. this.$message.error("请输入2-10的数字");
  18230. this.groupJson.number = "";
  18231. }
  18232. },
  18233. updateGroupJson() {
  18234. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18235. if (
  18236. this.groupStudentUid[this.toolindex][i].length >
  18237. this.groupJson2.number
  18238. ) {
  18239. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18240. return;
  18241. }
  18242. }
  18243. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18244. this.islock = this.groupJson.islock == 1 ? true : false;
  18245. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18246. this.taskCount
  18247. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18248. let params = [
  18249. {
  18250. cid: this.id,
  18251. chapters: JSON.stringify(this.chapInfoList),
  18252. uid: this.userid,
  18253. unitIndex: this.courseType,
  18254. },
  18255. ];
  18256. this.ajax
  18257. .post(this.$store.state.api + "updateWorkNew4", params)
  18258. .then((res) => {
  18259. this.$message.success("设置成功");
  18260. this.getCourseDetail(2);
  18261. this.dialogVisibleGroup2 = false;
  18262. this.groupJson2 = {};
  18263. this.$forceUpdate();
  18264. })
  18265. .catch((err) => {
  18266. this.$message.error("网络不佳");
  18267. console.error(err);
  18268. });
  18269. },
  18270. lockChair() {
  18271. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18272. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18273. this.updateGroupJson();
  18274. },
  18275. selectGroup(index) {
  18276. this.getCourseDetail(2, index);
  18277. },
  18278. joinGroup(index) {
  18279. if (this.groupJson.islock == 2) {
  18280. this.$message.error("位置已被锁定,无法加入");
  18281. return;
  18282. }
  18283. if (
  18284. this.groupStudent[this.toolindex][index].length >
  18285. this.groupJson.number ||
  18286. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18287. ) {
  18288. this.$message.error("位置已满,无法加入");
  18289. return;
  18290. }
  18291. let params = [
  18292. {
  18293. cid: this.id,
  18294. stage: this.courseType,
  18295. task: this.taskCount,
  18296. tool: this.toolindex,
  18297. g: index,
  18298. uid: this.userid,
  18299. },
  18300. ];
  18301. this.ajax
  18302. .post(this.$store.state.api + "joinGroup", params)
  18303. .then((res) => {
  18304. this.$message.success("加入成功");
  18305. this.getCourseDetail(2);
  18306. })
  18307. .catch((err) => {
  18308. this.$message.error("网络不佳");
  18309. console.error(err);
  18310. });
  18311. },
  18312. exitGroup(id) {
  18313. if (this.groupJson.islock == 2) {
  18314. this.$message.error("位置已被锁定,无法退出");
  18315. return;
  18316. }
  18317. let params = [
  18318. {
  18319. gid: id,
  18320. },
  18321. ];
  18322. this.ajax
  18323. .post(this.$store.state.api + "exitGroup", params)
  18324. .then((res) => {
  18325. this.$message.success("退出成功");
  18326. this.getCourseDetail(2);
  18327. })
  18328. .catch((err) => {
  18329. this.$message.error("网络不佳");
  18330. console.error(err);
  18331. });
  18332. },
  18333. groupUpload(index, task, gindex) {
  18334. this.taskCount = task;
  18335. this.toolindex = index;
  18336. this.groupIndex = gindex;
  18337. this.dialogVisibleGroupWork = true;
  18338. },
  18339. updateGroupChair(user) {
  18340. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18341. el.label = index;
  18342. return index != user.group;
  18343. });
  18344. this.updateGroupUser = user;
  18345. this.dialogVisibleUpdateGroup = true;
  18346. },
  18347. updateChair() {
  18348. if (
  18349. this.groupStudent[this.toolindex][this.checkChair].length >
  18350. this.groupJson.number ||
  18351. this.groupStudent[this.toolindex][this.checkChair].length ==
  18352. this.groupJson.number
  18353. ) {
  18354. this.$message.error("位置已满,无法加入");
  18355. return;
  18356. }
  18357. let params = [
  18358. {
  18359. cid: this.id,
  18360. stage: this.courseType,
  18361. task: this.taskCount,
  18362. tool: this.toolindex,
  18363. g: this.checkChair,
  18364. uid: this.updateGroupUser.userid,
  18365. },
  18366. ];
  18367. this.ajax
  18368. .post(this.$store.state.api + "joinGroup", params)
  18369. .then((res) => {
  18370. this.$message.success("修改成功");
  18371. this.updateGroupUser = {};
  18372. this.checkChair = "";
  18373. this.updateGroupArray = {};
  18374. this.dialogVisibleUpdateGroup = false;
  18375. this.getCourseDetail(2);
  18376. })
  18377. .catch((err) => {
  18378. this.$message.error("网络不佳");
  18379. console.error(err);
  18380. });
  18381. },
  18382. deleteGroupChair(gindex) {
  18383. this.checkDeleteGroup = [];
  18384. this.deleteGroupUser = JSON.parse(
  18385. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18386. );
  18387. this.deleteGroupArray = this.groupJson.group[gindex];
  18388. this.groupIndex = gindex;
  18389. this.dialogVisibleDeleteGroup = true;
  18390. },
  18391. async deleteChair() {
  18392. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18393. const gid =
  18394. this.groupStudent[this.toolindex][this.groupIndex][
  18395. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18396. this.checkDeleteGroup[i]
  18397. )
  18398. ];
  18399. let params = [
  18400. {
  18401. gid: gid.id,
  18402. },
  18403. ];
  18404. var a = await this.deleteChairA(params);
  18405. if (i == this.checkDeleteGroup.length - 1) {
  18406. this.$message.success("退出成功");
  18407. this.dialogVisibleDeleteGroup = false;
  18408. this.deleteGroupUser = [];
  18409. this.deleteGroupArray = {};
  18410. this.groupIndex = "";
  18411. this.checkDeleteGroup = [];
  18412. this.getCourseDetail(2);
  18413. }
  18414. }
  18415. },
  18416. deleteChairA(params) {
  18417. return new Promise((resolve, reject) => {
  18418. this.ajax
  18419. .post(this.$store.state.api + "exitGroup", params)
  18420. .then((res) => {
  18421. resolve(1);
  18422. })
  18423. .catch((err) => {
  18424. this.$message.error("网络不佳");
  18425. console.error(err);
  18426. });
  18427. });
  18428. },
  18429. contract(i) {
  18430. if (this.isCloseList[i].isClose == 0) {
  18431. this.isCloseList[i].isClose = 1;
  18432. } else {
  18433. this.isCloseList[i].isClose = 0;
  18434. }
  18435. this.$forceUpdate();
  18436. },
  18437. openWordCloud(toolindex) {
  18438. let array = [];
  18439. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18440. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18441. array.push({ name: works });
  18442. }
  18443. if (this.isGroup) {
  18444. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18445. let works = this.courseGroup.group[i].works[toolindex];
  18446. for (var j = 0; j < works.length; j++) {
  18447. let answer = JSON.parse(works[j].works)[0].answer;
  18448. array.push({ name: answer });
  18449. }
  18450. }
  18451. }
  18452. this.wordCloudData = array;
  18453. this.dialogVisibleWordCloud = true;
  18454. },
  18455. uploadWorks(i) {
  18456. this.$confirm("确定导出作业吗?", "提示", {
  18457. confirmButtonText: "确定",
  18458. cancelButtonText: "取消",
  18459. type: "warning",
  18460. })
  18461. .then(() => {
  18462. const loading = this.$loading.service({
  18463. background: "rgba(255, 255, 255, 0.7)",
  18464. target: document.body,
  18465. text: "文件加载中...",
  18466. });
  18467. const _worksStudent = this.worksStudent;
  18468. let url = [];
  18469. var counts = {};
  18470. for (var l = 0; l < _worksStudent[i].length; l++) {
  18471. var item = _worksStudent[i][l];
  18472. var name = item.sName;
  18473. if (!counts.hasOwnProperty(name)) {
  18474. counts[name] = 0;
  18475. } else {
  18476. counts[name]++;
  18477. }
  18478. if (counts[name] > 0) {
  18479. item.sName += " (" + counts[name] + ")";
  18480. }
  18481. }
  18482. for (var l = 0; l < _worksStudent[i].length; l++) {
  18483. var item = _worksStudent[i][l];
  18484. if (
  18485. item.works.indexOf(
  18486. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18487. ) !== -1 &&
  18488. item.works.indexOf("img") === -1
  18489. ) {
  18490. url.push({ name: item.sName, url: item.works });
  18491. }
  18492. }
  18493. // var toolList = [
  18494. // { name: "电子白板", tool: 1 },
  18495. // { name: "思维导图", tool: 3 },
  18496. // { name: "协同文档", tool: 6 },
  18497. // { name: "思维网格", tool: 7 },
  18498. // { name: "素材库", tool: 8 },
  18499. // { name: "学习资料", tool: 17 },
  18500. // { name: "便签", tool: 2 },
  18501. // { name: "问卷调查", tool: 4 },
  18502. // { name: "选择题", tool: 45 },
  18503. // { name: "倒计时", tool: 10 },
  18504. // { name: "问答", tool: 15 },
  18505. // { name: "课程设计", tool: 26 },
  18506. // { name: "训练服务器", tool: 18 },
  18507. // { name: "作业提交", tool: 16 },
  18508. // { name: "批量上传", tool: 50 },
  18509. // { name: "AIoT Blockly", tool: 21 },
  18510. // { name: "AI Python", tool: 23 },
  18511. // { name: "AI Blockly", tool: 24 },
  18512. // { name: "目标管理", tool: 25 },
  18513. // { name: "数学画板", tool: 31 },
  18514. // { name: "翻译", tool: 28 },
  18515. // { name: "魔盒识字", tool: 37 },
  18516. // { name: "数学画板", tool: 31 },
  18517. // { name: "24点", tool: 38 },
  18518. // { name: "GeoGebra", tool: 39 },
  18519. // { name: "源码编辑", tool: 32 },
  18520. // { name: "个人评价", tool: 40 },
  18521. // { name: "选择匹配", tool: 41 },
  18522. // { name: "汉字宫", tool: 44 },
  18523. // { name: "排序", tool: 47 },
  18524. // { name: "表格", tool: 48 },
  18525. // { name: "文档", tool: 52 },
  18526. // { name: "学生分组", tool: 49 },
  18527. // { name: "CocoPi", tool: 57 },
  18528. // { name: "模拟驾驶", tool: 58 },
  18529. // { name: "路径搜索", tool: 59 },
  18530. // { name: "深度学习", tool: 60 },
  18531. // { name: "全历史", tool: 61 },
  18532. // { name: "交互视频", tool: 62 },
  18533. // { name: "海龟编程", tool: 63 },
  18534. // { name: "挑人", tool: 65 },
  18535. // { name: "公式编辑", tool: 66 },
  18536. // { name: "分子结构", tool: 67 },
  18537. // { name: "时间轴", tool: 68 },
  18538. // ];
  18539. // var toolName = "";
  18540. // for(var w = 0;w<toolList.length;w++){
  18541. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18542. // toolName = toolList[w].name;
  18543. // }
  18544. // }
  18545. console.log(url);
  18546. this.downLoadAll(url, loading);
  18547. })
  18548. .catch(() => {});
  18549. },
  18550. downLoadAll(url, loading) {
  18551. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18552. const zip = new JSZip();
  18553. const cache = {};
  18554. const promises = [];
  18555. data.forEach((item) => {
  18556. const promise = getFile(item.url).then((data) => {
  18557. if (data.data != 1) {
  18558. // 下载文件, 并存成ArrayBuffer对象
  18559. const file_name =
  18560. item.name +
  18561. "." +
  18562. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18563. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18564. cache[file_name] = data.data;
  18565. }
  18566. });
  18567. promises.push(promise);
  18568. });
  18569. Promise.all(promises).then(() => {
  18570. zip.generateAsync({ type: "blob" }).then((content) => {
  18571. // 生成二进制流
  18572. FileSaver.saveAs(
  18573. content,
  18574. this.courseDetail.title + "-" + "作业提交工具.zip"
  18575. ); // 利用file-saver保存文件 自定义文件名
  18576. setTimeout(() => {
  18577. loading.close();
  18578. }, 2000);
  18579. });
  18580. });
  18581. },
  18582. pickStudent(stu) {
  18583. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18584. return;
  18585. }
  18586. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18587. confirmButtonText: "确定",
  18588. cancelButtonText: "取消",
  18589. type: "warning",
  18590. })
  18591. .then(() => {
  18592. let params = [
  18593. {
  18594. uid: stu.userid,
  18595. cid: this.id,
  18596. stage: this.courseType,
  18597. task: this.taskCount,
  18598. tool: this.toolindex,
  18599. },
  18600. ];
  18601. this.ajax
  18602. .post(this.$store.state.api + "updateCoursePick", params)
  18603. .then((res) => {
  18604. this.$message.success("操作成功");
  18605. this.getPick();
  18606. })
  18607. .catch((err) => {
  18608. this.$message.error("网络不佳");
  18609. console.error(err);
  18610. });
  18611. })
  18612. .catch(() => {});
  18613. },
  18614. selectUser(){
  18615. let params = {
  18616. userid: this.userid,
  18617. };
  18618. this.ajax
  18619. .get(this.$store.state.api + "selectUser", params)
  18620. .then((res) => {
  18621. this.userMes = res.data[0];
  18622. })
  18623. .catch((err) => {
  18624. console.error(err);
  18625. });
  18626. },
  18627. setEngText(i){
  18628. this.newEngIndex = i;
  18629. this.$forceUpdate();
  18630. },
  18631. addCorrect(){
  18632. this.$confirm("你确定提交批改嘛?", "提示", {
  18633. confirmButtonText: "确定",
  18634. showCancelButton: false,
  18635. closeOnClickModal: false,
  18636. type: "warning",
  18637. })
  18638. .then(() => {
  18639. let params = {
  18640. cid: this.id,
  18641. s: parseInt(this.courseType),
  18642. t: this.taskCount,
  18643. tool: this.toolindex,
  18644. wid: this.engWid,
  18645. c: this.userid,
  18646. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18647. };
  18648. this.ajax
  18649. .get(this.$store.state.api + "addEngC", params)
  18650. .then((res) => {
  18651. this.$message.success("提交成功");
  18652. this.engUpdateDialogVisible = false;
  18653. })
  18654. .catch((err) => {
  18655. console.error(err);
  18656. });
  18657. })
  18658. .catch(() => {});
  18659. },
  18660. selectEngC(id,z){
  18661. let params = {
  18662. workid: id,
  18663. };
  18664. this.ajax
  18665. .get(this.$store.state.api + "selectEngC", params)
  18666. .then((res) => {
  18667. if(res.data[0].length == 0){
  18668. this.newEnglishList.engTitle = z.engTitle;
  18669. this.newEnglishList.engText = z.engText;
  18670. }else{
  18671. var a = res.data[0];
  18672. if(this.userMes[0].type == 2){
  18673. var snum = 0;
  18674. for(var i = 0;i<a.length;i++){
  18675. if(this.userMes[0].userid == a[i].correct){
  18676. this.newEnglishList = JSON.parse(a[i].cWork);
  18677. snum = 1;
  18678. }
  18679. }
  18680. if(snum == 0){
  18681. this.newEnglishList = { engTitle:"",engText:"" };
  18682. this.newEnglishList.engTitle = z.engTitle;
  18683. this.newEnglishList.engText = z.engText;
  18684. }
  18685. }else if(this.userMes[0].type == 1){
  18686. var num = 0;
  18687. for(var w= 0;w<a.length;w++){
  18688. if(this.userMes[0].userid == a[w].correct){
  18689. num = 1;
  18690. }
  18691. }
  18692. if(num == 0){
  18693. this.isNoUserid = true;
  18694. var c = JSON.parse(JSON.stringify(z));
  18695. this.oldEnglishJson1 = c;
  18696. }else{
  18697. this.isNoUserid = false;
  18698. }
  18699. var b = a.sort((item, index) => {
  18700. if (item.correct === this.userMes[0].userid) {
  18701. return -1; // 将a移到前面
  18702. } else if (index.correct === this.userMes[0].userid) {
  18703. return 1; // 将b移到前面
  18704. } else {
  18705. return 0; // 保持默认顺序
  18706. }
  18707. });
  18708. this.newEnglishList1 = b;
  18709. }
  18710. }
  18711. this.engUpdateDialogVisible = true;
  18712. this.$forceUpdate();
  18713. setTimeout(() => {
  18714. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18715. if(this.newEnglishList1.length > 0){
  18716. if(this.isNoUserid == true){
  18717. this.engListLength = this.newEnglishList1.length + 1;
  18718. this.newEngIndex = -1;
  18719. }else{
  18720. this.engListLength = this.newEnglishList1.length;
  18721. this.newEngIndex = 0;
  18722. }
  18723. }
  18724. }, 500);
  18725. })
  18726. .catch((err) => {
  18727. console.error(err);
  18728. });
  18729. },
  18730. getPick() {
  18731. let params = {
  18732. cid: this.id,
  18733. };
  18734. this.ajax
  18735. .get(this.$store.state.api + "getPick", params)
  18736. .then((res) => {
  18737. let array = [];
  18738. for (var i = 0; i < res.data[0].length; i++) {
  18739. array.push(res.data[0][i].userid);
  18740. }
  18741. this.isPickStudent = array;
  18742. if (array.indexOf(this.userid) !== -1) {
  18743. this.$confirm("你被老师选到啦!", "提示", {
  18744. confirmButtonText: "确定",
  18745. showCancelButton: false,
  18746. closeOnClickModal: false,
  18747. type: "warning",
  18748. })
  18749. .then(() => {
  18750. let pa = [
  18751. {
  18752. uid: this.userid,
  18753. cid: this.id,
  18754. },
  18755. ];
  18756. this.ajax
  18757. .post(this.$store.state.api + "deletePick", pa)
  18758. .then((res) => {
  18759. this.getPick();
  18760. })
  18761. .catch((err) => {
  18762. this.$message.error("网络不佳");
  18763. console.error(err);
  18764. });
  18765. })
  18766. .catch(() => {});
  18767. }
  18768. })
  18769. .catch((err) => {
  18770. this.$message.error("网络不佳");
  18771. console.error(err);
  18772. });
  18773. },
  18774. },
  18775. directives: {
  18776. // 使用局部注册指令的方式
  18777. resize: {
  18778. // 指令的名称
  18779. bind(el, binding) {
  18780. // el为绑定的元素,binding为绑定给指令的对象
  18781. let width = "",
  18782. height = "";
  18783. function isReize() {
  18784. const style = document.defaultView.getComputedStyle(el);
  18785. if (width !== style.width || height !== style.height) {
  18786. binding.value(); // 关键
  18787. }
  18788. width = style.width;
  18789. height = style.height;
  18790. }
  18791. el.__vueSetInterval__ = setInterval(isReize, 300);
  18792. },
  18793. unbind(el) {
  18794. clearInterval(el.__vueSetInterval__);
  18795. },
  18796. },
  18797. },
  18798. beforeDestroy() {
  18799. window.onresize = null;
  18800. clearInterval(this.timer);
  18801. this.timer = null;
  18802. clearInterval(this.opertimer);
  18803. this.opertimer = null;
  18804. },
  18805. computed: {
  18806. contentConvent() {
  18807. return function (c) {
  18808. return c
  18809. ? c
  18810. .replaceAll(/\r\n/g, "<br/>")
  18811. .replaceAll(/\n/g, "<br/>")
  18812. .replaceAll(/\s/g, " &nbsp")
  18813. : "";
  18814. };
  18815. },
  18816. checkUpload() {
  18817. return function () {
  18818. var studentK = [];
  18819. if (this.plworkFile.length > 0) {
  18820. for (var z = 0; z < this.plworkFile.length; z++) {
  18821. studentK.push(this.plworkFile[z].username);
  18822. }
  18823. studentK = studentK.join(",");
  18824. }
  18825. var a = this.uploadStudentJuri.filter((el) => {
  18826. return studentK.indexOf(el.userid) == -1;
  18827. });
  18828. return a;
  18829. };
  18830. },
  18831. getSName() {
  18832. return function (name) {
  18833. var check = name;
  18834. this.uploadStudentJuri.forEach((el) => {
  18835. if (el.userid == check) {
  18836. check = el.name ? el.name : el.username;
  18837. }
  18838. });
  18839. return check;
  18840. };
  18841. },
  18842. getImgList() {
  18843. return function (val) {
  18844. let srcList = []; // 定义一个数组用来接收后面的img地址
  18845. val.replace(
  18846. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18847. function (match, capture) {
  18848. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18849. srcList.push(capture);
  18850. }
  18851. );
  18852. return srcList;
  18853. };
  18854. },
  18855. },
  18856. mounted() {
  18857. document.body.addEventListener("click", (e) => {
  18858. if (this.isUpdateToolDetail1) {
  18859. this.updateToolDetail(this.toolDetailIndex);
  18860. }
  18861. });
  18862. if (this.screenType == 2) {
  18863. window.parent.postMessage({ allScreen: 4 }, "*");
  18864. } else if (this.screenType == 3) {
  18865. window.parent.postMessage({ allScreen: 5 }, "*");
  18866. } else if (this.screenType == 1) {
  18867. window.parent.postMessage({ allScreen: 6 }, "*");
  18868. }
  18869. this.setOperationTime();
  18870. this.selectEva();
  18871. this.getCourseDetail();
  18872. this.selectCount();
  18873. this.getHomeWork();
  18874. this.selectUser();
  18875. this.contentDialog = true;
  18876. this.setContent2(true);
  18877. if (this.tType == 4) {
  18878. this.pzDialog = true;
  18879. this.selectPz();
  18880. }
  18881. document.scrollingElement.scrollTop = 0;
  18882. window.addEventListener("resize", () => {
  18883. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18884. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18885. if (this.showType == 2 || this.showType == 3) {
  18886. document.getElementsByClassName("navBox")[0].style.height =
  18887. a - 40 + 46 + "px";
  18888. } else {
  18889. document.getElementsByClassName("navBox")[0].style.height =
  18890. a - 40 + "px";
  18891. }
  18892. });
  18893. let _this = this;
  18894. setTimeout(() => {
  18895. // _this.vedioTime = [];
  18896. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18897. // _this.vedioTime[i] = document.getElementsByClassName(
  18898. // "vjs-duration-display"
  18899. // )[i].textContent;
  18900. // }
  18901. }, 1000);
  18902. },
  18903. };
  18904. </script>
  18905. <style scoped>
  18906. @media screen and (max-width: 1280px) {
  18907. /* .courseIndex > div:first-child(2) {
  18908. width: 15% !important;
  18909. } */
  18910. /* .navText {
  18911. width: 120px !important;
  18912. } */
  18913. .evaCss {
  18914. flex-direction: column !important;
  18915. align-items: center !important;
  18916. }
  18917. .elist_input {
  18918. width: 90% !important;
  18919. }
  18920. .dialog_diy1 >>> .el-dialog {
  18921. width: 100% !important;
  18922. }
  18923. .rightWidthCss {
  18924. width: 100% !important;
  18925. }
  18926. .dialog_diy3 >>> .el-dialog {
  18927. width: 100% !important;
  18928. }
  18929. .addToolCss {
  18930. right: 0 !important;
  18931. width: 100% !important;
  18932. min-width: unset !important;
  18933. }
  18934. }
  18935. .evaCssMax {
  18936. flex-direction: column !important;
  18937. align-items: center !important;
  18938. }
  18939. .dialog_diy >>> .el-dialog {
  18940. margin-top: 10vh !important;
  18941. }
  18942. .body_student {
  18943. width: 77%;
  18944. height: 100%;
  18945. position: absolute;
  18946. left: 22%;
  18947. top: 0;
  18948. }
  18949. .student_head {
  18950. width: 100%;
  18951. margin: 20px auto 0;
  18952. padding-bottom: 20px;
  18953. display: flex;
  18954. flex-direction: column;
  18955. flex-wrap: nowrap;
  18956. align-items: flex-start;
  18957. justify-content: flex-start;
  18958. }
  18959. .pb_left {
  18960. width: 20%;
  18961. margin-right: 10px;
  18962. background: rgb(255, 255, 255);
  18963. position: fixed;
  18964. height: calc(100% - 40px);
  18965. border-radius: 20px;
  18966. padding-bottom: 15px;
  18967. box-sizing: border-box;
  18968. }
  18969. .wheel > img,
  18970. .project > img,
  18971. .star > img,
  18972. .evaluate > img,
  18973. .up_photo > img,
  18974. .chapter_add > img,
  18975. .deleteWord > img,
  18976. .question > img,
  18977. .homework > img {
  18978. width: 100%;
  18979. height: 100%;
  18980. }
  18981. .upCover > img {
  18982. width: 131px;
  18983. height: 69px;
  18984. object-fit: cover;
  18985. }
  18986. .upCover {
  18987. width: calc(100% / 3.5);
  18988. position: relative;
  18989. margin: 0 15px 10px 0;
  18990. display: flex;
  18991. flex-direction: column;
  18992. flex-wrap: nowrap;
  18993. justify-content: center;
  18994. align-content: center;
  18995. align-items: center;
  18996. height: fit-content;
  18997. }
  18998. .upCover2 {
  18999. width: 100%;
  19000. position: relative;
  19001. margin: 0 15px 10px 0;
  19002. display: flex;
  19003. flex-direction: column;
  19004. flex-wrap: nowrap;
  19005. justify-content: center;
  19006. align-content: center;
  19007. align-items: center;
  19008. }
  19009. .upCover2 > img {
  19010. width: 100%;
  19011. height: 90px;
  19012. object-fit: contain;
  19013. }
  19014. .chapter_add {
  19015. width: 120px;
  19016. position: relative;
  19017. text-align: center;
  19018. }
  19019. .isAddThings {
  19020. margin-top: 20px;
  19021. position: relative;
  19022. text-align: center;
  19023. background: #f7f8fa;
  19024. height: 90px;
  19025. width: 90px;
  19026. display: flex;
  19027. flex-direction: column;
  19028. justify-content: center;
  19029. }
  19030. .deleteWord {
  19031. width: 22px;
  19032. height: 22px;
  19033. position: absolute;
  19034. right: -5px;
  19035. top: -5px;
  19036. cursor: pointer;
  19037. }
  19038. .box_course {
  19039. /* width: 60%; */
  19040. width: calc(100% - 300px);
  19041. }
  19042. .wheel {
  19043. width: 100%;
  19044. /* height: 100%; */
  19045. height: 650px;
  19046. }
  19047. .right_box {
  19048. display: flex;
  19049. flex-direction: column;
  19050. margin-left: 30px;
  19051. justify-content: space-around;
  19052. }
  19053. .right_box_title {
  19054. font-size: 23px;
  19055. }
  19056. .people {
  19057. display: flex;
  19058. }
  19059. .student_body {
  19060. width: 100%;
  19061. margin: 0 auto;
  19062. margin-top: 10px;
  19063. padding: 0 0 20px;
  19064. }
  19065. .study_top {
  19066. margin-top: 100px;
  19067. width: 100%;
  19068. height: auto;
  19069. padding-bottom: 20px;
  19070. }
  19071. .study_top .checkbox {
  19072. display: flex;
  19073. align-items: center;
  19074. padding: 15px 0 15px 30px;
  19075. flex: 0 0 auto;
  19076. font-weight: bold;
  19077. border-bottom: 1px solid #eee;
  19078. }
  19079. .study_top .check {
  19080. padding-bottom: 5px;
  19081. text-align: center;
  19082. cursor: pointer;
  19083. height: 30px;
  19084. box-sizing: border-box;
  19085. display: flex;
  19086. }
  19087. .study_top .checked {
  19088. border-bottom: 4px solid #3fc6a0;
  19089. padding-bottom: 5px;
  19090. color: #3fc6a0;
  19091. display: flex;
  19092. height: 35px;
  19093. }
  19094. .study_top .checked > div,
  19095. .study_top .check > div {
  19096. margin-right: 5px;
  19097. }
  19098. .videoTop {
  19099. display: flex;
  19100. flex-direction: row;
  19101. justify-content: space-between;
  19102. background: #fff;
  19103. align-items: center;
  19104. width: 95%;
  19105. padding: 20px;
  19106. }
  19107. .filebox {
  19108. display: flex;
  19109. flex-wrap: wrap;
  19110. flex-direction: column;
  19111. padding: 0 0 5px;
  19112. position: relative;
  19113. }
  19114. .filebox:before {
  19115. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19116. position: absolute;
  19117. top: 20px;
  19118. left: 13px;
  19119. border-left: 2px dotted #cad1dc;
  19120. height: calc(100% - 15px);
  19121. }
  19122. .toolHeng2 > div:last-child::before {
  19123. height: calc(100% - 43px);
  19124. }
  19125. .filebox .tooldetail {
  19126. width: calc(100% - 280px);
  19127. margin: 0px 12px;
  19128. padding: 12px 25px 0 13px;
  19129. line-height: 30px;
  19130. word-break: break-word;
  19131. background: #ffffff;
  19132. border-radius: 8px 8px 8px 8px;
  19133. opacity: 1;
  19134. border: 1px solid #cad1dc;
  19135. }
  19136. .file {
  19137. display: flex;
  19138. flex-direction: column;
  19139. align-items: center;
  19140. justify-content: center;
  19141. cursor: pointer;
  19142. width: 200px;
  19143. }
  19144. .file div {
  19145. margin-top: 10px;
  19146. width: 150px;
  19147. text-align: center;
  19148. overflow: hidden;
  19149. white-space: nowrap;
  19150. text-overflow: ellipsis;
  19151. }
  19152. .media {
  19153. display: flex;
  19154. flex-direction: column;
  19155. align-items: center;
  19156. justify-content: center;
  19157. margin: 0 20px 20px 0;
  19158. cursor: pointer;
  19159. margin: 12px 0 5px 15px;
  19160. overflow: hidden;
  19161. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19162. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19163. box-sizing: border-box;
  19164. }
  19165. .media img {
  19166. height: 90px;
  19167. width: 160px;
  19168. object-fit: cover;
  19169. }
  19170. .media .title {
  19171. padding: 5px;
  19172. text-align: left;
  19173. width: 100%;
  19174. box-sizing: border-box;
  19175. }
  19176. .media .btn {
  19177. width: 100%;
  19178. height: 35px;
  19179. line-height: 35px;
  19180. color: #fff;
  19181. background: #606060;
  19182. text-align: center;
  19183. overflow: hidden;
  19184. white-space: nowrap;
  19185. text-overflow: ellipsis;
  19186. }
  19187. .detail_content_top {
  19188. width: 100%;
  19189. padding: 25px 0 25px 0;
  19190. }
  19191. .detail_title {
  19192. text-align: center;
  19193. font-size: 24px;
  19194. }
  19195. .detail_time {
  19196. font-size: 13px;
  19197. padding: 15px 0 0 40px;
  19198. }
  19199. .detail_content {
  19200. line-height: 2pc;
  19201. width: 90%;
  19202. margin: 0 auto;
  19203. padding-top: 30px;
  19204. text-indent: 30px;
  19205. overflow: auto;
  19206. height: 200px;
  19207. }
  19208. .score_box >>> .el-rate {
  19209. margin-left: 10px;
  19210. }
  19211. .dialog_change >>> .el-dialog {
  19212. border-radius: 5px;
  19213. }
  19214. .dialog_change >>> .el-dialog__header {
  19215. background: #f2f2f2;
  19216. text-align: center;
  19217. }
  19218. .dialog_change >>> .el-dialog__title {
  19219. line-height: 5px;
  19220. }
  19221. .dialog_change >>> .el-dialog__body {
  19222. background: #fff;
  19223. padding: 10px 20px;
  19224. }
  19225. .score_box {
  19226. display: flex;
  19227. align-items: center;
  19228. margin-bottom: 18px;
  19229. margin-top: 20px;
  19230. }
  19231. .up_photo {
  19232. width: 120px;
  19233. cursor: pointer;
  19234. margin-top: 10px;
  19235. }
  19236. .up_photo2 {
  19237. width: 180px;
  19238. box-sizing: border-box;
  19239. min-width: 180px;
  19240. height: 180px;
  19241. max-height: 180px;
  19242. min-height: 180px;
  19243. cursor: pointer;
  19244. display: flex;
  19245. flex-direction: column;
  19246. align-items: center;
  19247. justify-content: center;
  19248. background: rgb(242, 246, 255);
  19249. /* padding: 25px; */
  19250. margin-bottom: 10px;
  19251. }
  19252. .up_photo2 img {
  19253. width: 50%;
  19254. height: auto;
  19255. }
  19256. .up_photo2 span {
  19257. color: #898989;
  19258. }
  19259. .plworkBox {
  19260. display: flex;
  19261. align-items: center;
  19262. margin-top: 10px;
  19263. flex-wrap: wrap;
  19264. }
  19265. .upload_send {
  19266. margin: 30px auto 30px;
  19267. width: 60%;
  19268. background: #3681fc;
  19269. text-align: center;
  19270. height: 35px;
  19271. line-height: 35px;
  19272. color: #fff;
  19273. border-radius: 5px;
  19274. cursor: pointer;
  19275. }
  19276. .marginT {
  19277. margin-top: 20px;
  19278. }
  19279. .cd_content_steps {
  19280. display: flex;
  19281. width: 90%;
  19282. justify-content: space-around;
  19283. border-top: 1px solid #eeeeee;
  19284. }
  19285. .cd_steps_box {
  19286. display: flex;
  19287. justify-content: center;
  19288. align-items: center;
  19289. flex-direction: column;
  19290. cursor: pointer;
  19291. }
  19292. .first {
  19293. display: flex;
  19294. align-items: center;
  19295. margin: 15px 0 20px 0;
  19296. font-size: 20px;
  19297. }
  19298. .first > div:nth-child(2) {
  19299. font-size: 16px !important;
  19300. padding-left: 10px;
  19301. line-height: 26px;
  19302. box-sizing: border-box;
  19303. }
  19304. .blue_box_one {
  19305. text-align: center;
  19306. color: #fff;
  19307. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19308. border-radius: 7px;
  19309. margin: 10px;
  19310. cursor: pointer;
  19311. width: 95%;
  19312. height: 45px;
  19313. display: flex;
  19314. flex-direction: row;
  19315. justify-content: flex-start;
  19316. align-items: center;
  19317. }
  19318. .blue_box_one > div:nth-child(1) {
  19319. line-height: 30px;
  19320. margin: 0 5px 0 10px;
  19321. width: 30%;
  19322. min-width: 70px;
  19323. border-radius: 4px;
  19324. }
  19325. .blue_box_one > div:nth-child(2) {
  19326. white-space: nowrap;
  19327. text-overflow: ellipsis;
  19328. overflow: hidden;
  19329. word-break: break-all;
  19330. width: 70%;
  19331. text-align: left;
  19332. margin-right: 10px;
  19333. max-width: calc(100% - 85px);
  19334. }
  19335. .blue_box_one > div:nth-child(2):hover {
  19336. overflow: hidden;
  19337. text-overflow: ellipsis;
  19338. white-space: nowrap;
  19339. cursor: pointer;
  19340. }
  19341. .upFile {
  19342. margin: 0 auto;
  19343. width: 120px;
  19344. background: #3681fc;
  19345. color: #fff;
  19346. height: 30px;
  19347. text-align: center;
  19348. line-height: 30px;
  19349. border-radius: 5px;
  19350. font-size: 14px;
  19351. cursor: pointer;
  19352. }
  19353. .courseTitle {
  19354. width: 85%;
  19355. margin: 10px auto 20px auto;
  19356. display: flex;
  19357. flex-direction: row;
  19358. align-items: center;
  19359. justify-content: space-between;
  19360. text-align: center;
  19361. }
  19362. .courseTitle .ctitle {
  19363. font-size: 20px;
  19364. font-weight: bold;
  19365. color: #0e1e33;
  19366. white-space: nowrap;
  19367. overflow: hidden;
  19368. text-overflow: ellipsis;
  19369. }
  19370. .inviteBox {
  19371. font-size: 14px;
  19372. margin-top: 5px;
  19373. color: #a6cbff;
  19374. text-align: center;
  19375. }
  19376. .courseTitle >>> .el-tooltip {
  19377. width: 100%;
  19378. white-space: nowrap;
  19379. overflow: hidden;
  19380. text-overflow: ellipsis;
  19381. word-break: break-word;
  19382. }
  19383. .ml {
  19384. margin-left: 20px;
  19385. color: #5b7dba;
  19386. border-left: 3px solid #5b7dba;
  19387. padding-left: 5px;
  19388. font-weight: bold;
  19389. }
  19390. .return {
  19391. width: 2rem;
  19392. height: 2rem;
  19393. cursor: pointer;
  19394. }
  19395. .return > img {
  19396. width: 100%;
  19397. height: 100%;
  19398. }
  19399. .returnBtn {
  19400. width: 86px;
  19401. height: 36px;
  19402. background: #3681fc;
  19403. border-radius: 4px;
  19404. color: #fff;
  19405. text-align: center;
  19406. line-height: 36px;
  19407. margin-right: 20px;
  19408. cursor: pointer;
  19409. font-size: 14px;
  19410. font-weight: 400;
  19411. display: flex;
  19412. flex-direction: row;
  19413. flex-wrap: nowrap;
  19414. align-items: center;
  19415. justify-content: center;
  19416. }
  19417. .reBtnIcon,
  19418. .commentIcon,
  19419. .vedioIcon,
  19420. .vedioIcon1 {
  19421. /* width: 36px; */
  19422. height: 36px;
  19423. border-radius: 4px;
  19424. position: relative;
  19425. /* background: #e0eafb; */
  19426. background: #0061ff;
  19427. cursor: pointer;
  19428. margin-right: 12px;
  19429. display: flex;
  19430. align-items: center;
  19431. padding: 0 10px;
  19432. box-sizing: border-box;
  19433. font-size: 14px;
  19434. color: #fff;
  19435. }
  19436. .reBtnIcon::before,
  19437. .commentIcon::before,
  19438. .vedioIcon::before,
  19439. .vedioIcon1::before {
  19440. content: "";
  19441. display: block;
  19442. background-size: 100% 100%;
  19443. background-repeat: no-repeat;
  19444. width: 20px;
  19445. height: 20px;
  19446. margin-right: 5px;
  19447. /* position: absolute; */
  19448. /* top: 8px;
  19449. left: 8px; */
  19450. }
  19451. .vedioIcon1 {
  19452. background: #f63564;
  19453. }
  19454. .reBtnIcon::before {
  19455. background-image: url("../assets/icon/newIcons/refresh.png");
  19456. }
  19457. .commentIcon::before {
  19458. background-image: url("../assets/icon/newIcons/comment.png");
  19459. }
  19460. .vedioIcon::before {
  19461. background-image: url("../assets/icon/newIcons/transcribe.png");
  19462. }
  19463. .vedioIcon1::before {
  19464. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  19465. background-image: url("../assets/icon/newIcons/transcribe.png");
  19466. }
  19467. .tool {
  19468. display: flex;
  19469. flex-direction: column;
  19470. flex-wrap: nowrap;
  19471. width: 13%;
  19472. margin: 0 30px;
  19473. align-items: center;
  19474. position: relative;
  19475. padding: 10px 25px;
  19476. cursor: pointer;
  19477. }
  19478. .whiteBIcon {
  19479. width: 150px;
  19480. }
  19481. .whiteBIcon > img {
  19482. width: 100%;
  19483. height: 100%;
  19484. }
  19485. .mask {
  19486. background-color: rgba(0, 0, 0, 0);
  19487. position: fixed;
  19488. top: 0;
  19489. left: 0;
  19490. width: 100%;
  19491. height: 100%;
  19492. z-index: 20000;
  19493. display: flex;
  19494. align-items: center;
  19495. justify-content: center;
  19496. }
  19497. .progressBox {
  19498. width: 500px;
  19499. height: 180px;
  19500. background: #fff;
  19501. border-radius: 10px;
  19502. box-shadow: 0 0 6px 1px #bfbfbf;
  19503. display: flex;
  19504. align-items: center;
  19505. justify-content: center;
  19506. flex-direction: column;
  19507. position: relative;
  19508. color: #6c6c6c;
  19509. }
  19510. .progressBox >>> .el-progress-bar__outer {
  19511. background-color: #d1dfff !important;
  19512. }
  19513. .progressBox .lbox {
  19514. height: 50px;
  19515. font-size: 19px;
  19516. display: flex;
  19517. align-items: center;
  19518. color: #747474;
  19519. }
  19520. .progressBox .lbox img {
  19521. width: 40px;
  19522. margin-right: 20px;
  19523. }
  19524. .closeCss {
  19525. position: absolute;
  19526. top: 8px;
  19527. right: 8px;
  19528. cursor: pointer;
  19529. width: 20px;
  19530. height: 20px;
  19531. }
  19532. .closeCss > img {
  19533. width: 100%;
  19534. height: 100%;
  19535. }
  19536. .uploadVedio {
  19537. display: flex;
  19538. flex-direction: column;
  19539. flex-wrap: nowrap;
  19540. justify-content: center;
  19541. align-items: center;
  19542. margin: 0 15px 10px 0;
  19543. }
  19544. .uploadVedio > img {
  19545. width: 30px;
  19546. height: 30px;
  19547. }
  19548. .uploadVedio > span {
  19549. white-space: nowrap;
  19550. overflow: hidden;
  19551. text-overflow: ellipsis;
  19552. width: 75px;
  19553. margin-top: 7px;
  19554. }
  19555. .picName {
  19556. white-space: nowrap;
  19557. overflow: hidden;
  19558. text-overflow: ellipsis;
  19559. width: 75px;
  19560. margin-top: 7px;
  19561. }
  19562. .new_top {
  19563. display: flex;
  19564. background: #fff;
  19565. flex-direction: row;
  19566. justify-content: flex-start;
  19567. align-items: center;
  19568. height: 60px;
  19569. position: fixed;
  19570. top: 20px;
  19571. left: 22%;
  19572. width: 77%;
  19573. z-index: 999;
  19574. border-radius: 12px 12px 0 0;
  19575. border-bottom: 1px solid #cad1dc;
  19576. padding: 10px 0;
  19577. }
  19578. .new_topFixed {
  19579. width: 100%;
  19580. height: 40px;
  19581. position: fixed;
  19582. top: 0px;
  19583. display: block;
  19584. background: #f2f2f2;
  19585. z-index: 998;
  19586. }
  19587. .before {
  19588. position: absolute;
  19589. background: #c3dad4;
  19590. width: 6px;
  19591. height: 100%;
  19592. }
  19593. .courseIndex {
  19594. display: flex;
  19595. flex-direction: row;
  19596. align-items: center;
  19597. width: calc(100% - 745px);
  19598. }
  19599. .courseIndex > div:nth-child(1) {
  19600. margin: 0 0 0 10px;
  19601. font-size: 20px;
  19602. min-width: 100px;
  19603. font-weight: bold;
  19604. border-left: 4px solid #3363b9;
  19605. height: 32px;
  19606. text-align: center;
  19607. line-height: 35px;
  19608. }
  19609. .courseIndex > div:nth-child(2) {
  19610. font-size: 20px;
  19611. /* width: 300px; */
  19612. max-width: calc(100% - 105px);
  19613. white-space: nowrap;
  19614. overflow: hidden;
  19615. text-overflow: ellipsis;
  19616. }
  19617. .courseIndex > div:nth-child(3) {
  19618. border-bottom: 1px solid #d7d7d7;
  19619. padding-bottom: 5px;
  19620. background: #3681fc;
  19621. width: 55px;
  19622. min-width: 55px;
  19623. border-radius: 5px;
  19624. color: #fff;
  19625. text-align: center;
  19626. height: 20px;
  19627. line-height: 26px;
  19628. font-size: 14px;
  19629. margin: 0 0 0 10px;
  19630. }
  19631. .course_text {
  19632. padding: 20px 0 0 15px;
  19633. text-indent: 30px;
  19634. width: 80%;
  19635. min-height: 20px;
  19636. }
  19637. .vedioList {
  19638. background: #f2f2f2;
  19639. border: 1px solid #ececec;
  19640. /* width: 38.8%; */
  19641. width: 300px;
  19642. height: 445px;
  19643. border-radius: 10px;
  19644. overflow: hidden;
  19645. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19646. }
  19647. .vedioNav {
  19648. margin: 10px 0 0 15px;
  19649. border-bottom: 1px solid #d7d7d7;
  19650. padding-bottom: 5px;
  19651. background: #3681fc;
  19652. width: 55px;
  19653. min-width: 55px;
  19654. border-radius: 5px;
  19655. color: #fff;
  19656. text-align: center;
  19657. height: 20px;
  19658. line-height: 26px;
  19659. font-size: 14px;
  19660. }
  19661. .queTop {
  19662. display: flex;
  19663. padding: 20px 0 20px 30px;
  19664. width: 100%;
  19665. flex-direction: row;
  19666. justify-content: flex-start;
  19667. align-items: center;
  19668. box-sizing: border-box;
  19669. }
  19670. .queTopTitle {
  19671. display: flex;
  19672. flex-direction: row;
  19673. flex-wrap: nowrap;
  19674. align-items: center;
  19675. font-weight: bold;
  19676. font-size: 20px;
  19677. color: rgb(14, 30, 51);
  19678. }
  19679. .queTopTitle::before {
  19680. content: "";
  19681. width: 2px;
  19682. height: 22px;
  19683. background: #3681fc;
  19684. border-radius: 3px;
  19685. display: block;
  19686. margin: 2px 6px 0 0;
  19687. }
  19688. .queTopRight {
  19689. display: flex;
  19690. flex-direction: row;
  19691. flex-wrap: nowrap;
  19692. align-items: center;
  19693. }
  19694. .queTopClose {
  19695. margin-right: 20px;
  19696. cursor: pointer;
  19697. position: relative;
  19698. display: flex;
  19699. }
  19700. .closeImg,
  19701. .openImg {
  19702. width: 25px;
  19703. height: 25px;
  19704. position: absolute;
  19705. left: -20px;
  19706. top: -1px;
  19707. }
  19708. .closeImg > img,
  19709. .openImg > img {
  19710. width: 100%;
  19711. height: 100%;
  19712. }
  19713. .question {
  19714. width: 40px;
  19715. margin-right: 10px;
  19716. margin-top: 7px;
  19717. }
  19718. .queTitle {
  19719. margin-left: 5px;
  19720. font-size: 25px;
  19721. display: flex;
  19722. align-items: center;
  19723. }
  19724. .addEditor {
  19725. width: 100px;
  19726. height: 30px;
  19727. background: #42cda6;
  19728. color: #fff;
  19729. border-radius: 5px;
  19730. text-align: center;
  19731. line-height: 30px;
  19732. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19733. cursor: pointer;
  19734. }
  19735. /* .vedioName {
  19736. cursor: pointer;
  19737. margin: 0px 0px 10px 5px;
  19738. white-space: nowrap;
  19739. overflow: hidden;
  19740. text-overflow: ellipsis;
  19741. width: 100%;
  19742. } */
  19743. .vedioTime {
  19744. width: 35px;
  19745. position: absolute;
  19746. color: #fff;
  19747. bottom: 0px;
  19748. right: 0px;
  19749. text-align: center;
  19750. background: #46411f;
  19751. height: 20px;
  19752. font-size: 14px;
  19753. line-height: 20px;
  19754. }
  19755. .homework {
  19756. width: 200px;
  19757. display: flex;
  19758. flex-direction: column;
  19759. flex-wrap: nowrap;
  19760. align-items: center;
  19761. cursor: pointer;
  19762. }
  19763. .homebox {
  19764. display: flex;
  19765. flex-wrap: wrap;
  19766. flex-direction: row;
  19767. justify-content: flex-start;
  19768. align-items: center;
  19769. padding: 15px 0;
  19770. }
  19771. .isChooseActive {
  19772. color: #3681fc !important;
  19773. font-weight: bold !important;
  19774. }
  19775. .chooseWho {
  19776. display: flex;
  19777. width: 100%;
  19778. flex-direction: row;
  19779. flex-wrap: nowrap;
  19780. justify-content: flex-start;
  19781. padding-bottom: 10px;
  19782. }
  19783. .chooseWho > div {
  19784. cursor: pointer;
  19785. padding-bottom: 10px;
  19786. margin: 0 30px 0 0;
  19787. font-weight: 400;
  19788. color: #0e1e33;
  19789. }
  19790. .addPoint > div > img {
  19791. cursor: pointer;
  19792. width: 85px;
  19793. border-radius: 15px;
  19794. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19795. }
  19796. .addPoint > div {
  19797. display: flex;
  19798. flex-direction: column;
  19799. flex-wrap: nowrap;
  19800. align-items: center;
  19801. }
  19802. .isBorder > div {
  19803. margin: 0 0 10px 0;
  19804. align-items: flex-start !important;
  19805. }
  19806. .noiframeBox {
  19807. display: flex;
  19808. flex-wrap: wrap;
  19809. }
  19810. .iframeBox iframe {
  19811. width: 100%;
  19812. height: 800px;
  19813. border: none;
  19814. margin-bottom: 20px;
  19815. border: 1px solid #ccc;
  19816. }
  19817. .upload_toolBtn {
  19818. background: #3681fc;
  19819. color: #fff;
  19820. width: 110px;
  19821. text-align: center;
  19822. height: 35px;
  19823. line-height: 35px;
  19824. font-size: 14px;
  19825. border-radius: 5px;
  19826. cursor: pointer;
  19827. position: absolute;
  19828. right: 10px;
  19829. bottom: 0;
  19830. }
  19831. .binfo_input,
  19832. .pj {
  19833. font: inherit;
  19834. color: currentColor;
  19835. width: 100%;
  19836. margin: 0;
  19837. padding: 15px 14px;
  19838. display: block;
  19839. min-width: 0;
  19840. outline: none;
  19841. box-sizing: content-box;
  19842. background: none;
  19843. -webkit-tap-highlight-color: transparent;
  19844. border: 1px solid rgba(0, 0, 0, 0.23);
  19845. border-radius: 4px;
  19846. box-sizing: border-box;
  19847. resize: none;
  19848. }
  19849. .binfo_input:focus-visible {
  19850. border: 1px solid rgba(61, 103, 188);
  19851. }
  19852. .dialog_diy >>> .el-dialog__header,
  19853. .dialog_diy1 >>> .el-dialog__header {
  19854. background: #454545 !important;
  19855. padding: 15px 20px;
  19856. }
  19857. .dialog_diy >>> .el-dialog__title,
  19858. .dialog_diy1 >>> .el-dialog__title {
  19859. color: #fff;
  19860. }
  19861. .dialog_diy >>> .el-dialog__headerbtn,
  19862. .dialog_diy1 >>> .el-dialog__headerbtn {
  19863. top: 19px;
  19864. }
  19865. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19866. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19867. color: #fff;
  19868. }
  19869. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19870. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19871. color: #fff;
  19872. }
  19873. .dialog_diy1 >>> .el-dialog__body {
  19874. padding: 0;
  19875. }
  19876. .dialog_diy >>> .el-dialog__body,
  19877. .dialog_diy >>> .el-dialog__footer,
  19878. .dialog_diy1 >>> .el-dialog__footer {
  19879. background: #fafafa;
  19880. }
  19881. .a_addBox {
  19882. padding: 0 0 0 15px;
  19883. }
  19884. .a_add_box {
  19885. padding: 10px;
  19886. background: #fff;
  19887. margin-bottom: 10px;
  19888. border-radius: 5px;
  19889. box-shadow: 0 0 5px 0 #d5d5d5;
  19890. }
  19891. .a_add_head {
  19892. display: flex;
  19893. align-items: flex-start;
  19894. /* justify-content: space-between; */
  19895. flex-direction: column;
  19896. /* flex-direction: row; */
  19897. margin: 10px 0 20px 0;
  19898. font-size: 18px;
  19899. width: 100%;
  19900. }
  19901. .askIndex {
  19902. background: #3681fc;
  19903. border-radius: 50%;
  19904. color: #fff;
  19905. width: 25px;
  19906. height: 25px;
  19907. min-width: 25px;
  19908. min-height: 25px;
  19909. text-align: center;
  19910. line-height: 25px;
  19911. margin-right: 5px;
  19912. }
  19913. .a_add_head .a_add_head_input {
  19914. width: 300px;
  19915. }
  19916. .a_add_head .a_add_head_div {
  19917. display: flex;
  19918. align-items: center;
  19919. justify-content: space-between;
  19920. }
  19921. .a_add_body {
  19922. display: flex;
  19923. align-items: center;
  19924. }
  19925. .a_add_input {
  19926. display: flex;
  19927. align-items: center;
  19928. flex-wrap: wrap;
  19929. width: 100%;
  19930. }
  19931. .a_add_input >>> .el-radio-group,
  19932. .a_add_input >>> .el-checkbox-group {
  19933. width: 100%;
  19934. }
  19935. .a_add_input >>> .el-radio,
  19936. .a_add_input >>> .el-checkbox {
  19937. display: flex;
  19938. flex-direction: row;
  19939. flex-wrap: nowrap;
  19940. align-items: center;
  19941. padding: 15px 0;
  19942. }
  19943. .a_add_input >>> .el-radio:not(:last-child),
  19944. .a_add_input >>> .el-checkbox:not(:last-child) {
  19945. width: 100%;
  19946. border-bottom: 1px solid #efefef;
  19947. }
  19948. .redioStyle >>> .el-radio__label {
  19949. font-size: 18px;
  19950. }
  19951. .redioStyle >>> .el-radio__label > span,
  19952. .redioStyle >>> .el-checkbox__label > span {
  19953. word-break: break-all;
  19954. white-space: normal;
  19955. }
  19956. .redioStyle >>> .el-checkbox__label {
  19957. font-size: 18px;
  19958. }
  19959. .toolHeng2 {
  19960. width: 100%;
  19961. padding-left: 37px;
  19962. box-sizing: border-box;
  19963. }
  19964. .workNav {
  19965. font-size: 20px;
  19966. font-weight: bold;
  19967. color: #0e1e33;
  19968. display: flex;
  19969. flex-direction: row;
  19970. flex-wrap: nowrap;
  19971. align-items: center;
  19972. padding: 15px 0 15px 0;
  19973. }
  19974. .workNav::before {
  19975. content: "";
  19976. width: 2px;
  19977. height: 22px;
  19978. background: #3681fc;
  19979. border-radius: 3px;
  19980. display: block;
  19981. margin: 2px 6px 0 0;
  19982. }
  19983. .toolHeng {
  19984. display: flex;
  19985. flex-direction: row;
  19986. flex-wrap: wrap;
  19987. justify-content: flex-start;
  19988. align-items: center;
  19989. width: 100%;
  19990. }
  19991. .toolHeng > div {
  19992. padding-left: 20px;
  19993. }
  19994. .isWidth {
  19995. width: 20%;
  19996. }
  19997. .textTitle {
  19998. display: flex;
  19999. flex-direction: row;
  20000. flex-wrap: nowrap;
  20001. align-items: center;
  20002. width: 95%;
  20003. }
  20004. .textTitle >>> .el-form-item__label {
  20005. font-size: 22px;
  20006. color: #918f8f;
  20007. width: 100px;
  20008. }
  20009. .textTitle >>> .el-form-item__content {
  20010. width: calc(100% - 100px);
  20011. }
  20012. .textCss >>> .el-dialog {
  20013. width: 800px !important;
  20014. height: 400px;
  20015. background: #fafafa;
  20016. }
  20017. .textCss >>> .el-dialog__body {
  20018. margin: 55px 8% 0 8%;
  20019. padding: 0 !important;
  20020. }
  20021. .textCss >>> .el-dialog__footer {
  20022. padding-top: 38px;
  20023. }
  20024. .toolsCss >>> .el-dialog__body {
  20025. padding: 20px;
  20026. }
  20027. .lineCss >>> .el-dialog__body {
  20028. display: flex;
  20029. flex-direction: row;
  20030. align-items: center;
  20031. justify-content: center;
  20032. }
  20033. .newNav {
  20034. display: flex;
  20035. flex-direction: row;
  20036. align-items: baseline;
  20037. justify-content: flex-start;
  20038. }
  20039. .navListItem {
  20040. width: 280px;
  20041. height: 50px;
  20042. margin: 0px auto 10px;
  20043. display: flex;
  20044. flex-direction: row;
  20045. flex-wrap: nowrap;
  20046. align-items: center;
  20047. justify-content: space-between;
  20048. background: #f0f4fa;
  20049. border-radius: 6px 6px 6px 6px;
  20050. }
  20051. .navText {
  20052. cursor: pointer;
  20053. white-space: nowrap;
  20054. overflow: hidden;
  20055. text-overflow: ellipsis;
  20056. width: 220px;
  20057. padding: 0 10px;
  20058. font-weight: 400;
  20059. color: #0e1e33;
  20060. }
  20061. .downIcon {
  20062. width: 20px;
  20063. min-width: 20px;
  20064. height: 20px;
  20065. margin-right: 15px;
  20066. cursor: pointer;
  20067. }
  20068. .downIcon > img {
  20069. width: 100%;
  20070. height: 100%;
  20071. }
  20072. .noVedio {
  20073. display: flex;
  20074. flex-direction: row;
  20075. justify-content: center;
  20076. align-content: center;
  20077. }
  20078. .noNavText {
  20079. cursor: pointer;
  20080. margin: 0px 0px 10px 5px;
  20081. width: 112px;
  20082. }
  20083. .listNoVedio {
  20084. margin: 0 0 0 30px;
  20085. width: 97%;
  20086. }
  20087. .video-player >>> .video-js {
  20088. height: 100%;
  20089. }
  20090. .hangVedioList {
  20091. width: 90% !important;
  20092. height: 150px !important;
  20093. margin: 20px 0 0 30px;
  20094. }
  20095. .hangVedio {
  20096. width: 100%;
  20097. height: 170px !important;
  20098. align-items: flex-start !important;
  20099. }
  20100. .hangHand {
  20101. height: 150px !important;
  20102. }
  20103. .twoChild {
  20104. width: 95%;
  20105. margin: 10px;
  20106. border-radius: 5px;
  20107. background: #f2f2f2;
  20108. display: flex;
  20109. flex-direction: column;
  20110. flex-wrap: nowrap;
  20111. justify-content: flex-start;
  20112. align-items: flex-start;
  20113. transition: all 0.5s;
  20114. overflow: hidden;
  20115. height: 0;
  20116. background: #e7f3ff;
  20117. }
  20118. .twoChild > div:nth-child(1) {
  20119. margin-top: 5px;
  20120. }
  20121. .navChild {
  20122. width: 100%;
  20123. cursor: pointer;
  20124. margin-bottom: 10px;
  20125. position: relative;
  20126. }
  20127. .navChild img {
  20128. position: absolute;
  20129. right: 11px;
  20130. width: 15px;
  20131. top: 50%;
  20132. transform: translateY(-50%);
  20133. }
  20134. .navActive,
  20135. .toolActive {
  20136. height: auto !important;
  20137. overflow: auto !important;
  20138. /* padding-bottom: 16px; */
  20139. }
  20140. .toolActive {
  20141. padding: 0;
  20142. }
  20143. .navTask {
  20144. display: flex;
  20145. flex-direction: row;
  20146. flex-wrap: nowrap;
  20147. align-items: center;
  20148. align-content: flex-start;
  20149. height: 40px;
  20150. justify-content: flex-start;
  20151. padding: 0 10px;
  20152. width: 100%;
  20153. box-sizing: border-box;
  20154. }
  20155. .navTaskname {
  20156. white-space: nowrap;
  20157. text-overflow: ellipsis;
  20158. overflow: hidden;
  20159. word-break: break-all;
  20160. padding-left: 5px;
  20161. }
  20162. .openTaskActive {
  20163. background-color: #e0eafb !important;
  20164. color: #0061ff;
  20165. }
  20166. .iframeName {
  20167. margin: 5px 0;
  20168. border-left: 4px solid #41c4a4;
  20169. padding-left: 4px;
  20170. }
  20171. .toolTitle {
  20172. margin: 0px 0px 20px;
  20173. font-size: 20px;
  20174. font-weight: 500;
  20175. border-left: 4px solid #41c4a4;
  20176. padding-left: 4px;
  20177. }
  20178. .cru_selectBox {
  20179. overflow: auto;
  20180. width: 95%;
  20181. margin: 17px auto 0;
  20182. height: calc(100% - 40px - 21px - 20px - 17px);
  20183. background: #fff;
  20184. border-radius: 8px;
  20185. }
  20186. .cru_selectBox::-webkit-scrollbar,
  20187. .study_top::-webkit-scrollbar,
  20188. .textContent::-webkit-scrollbar {
  20189. /*滚动条整体样式*/
  20190. width: 6px;
  20191. /*高宽分别对应横竖滚动条的尺寸*/
  20192. height: 6px;
  20193. }
  20194. /*定义滚动条轨道 内阴影+圆角*/
  20195. .cru_selectBox::-webkit-scrollbar-track,
  20196. .study_top::-webkit-scrollbar-track,
  20197. .textContent::-webkit-scrollbar {
  20198. border-radius: 10px;
  20199. background-color: #b8bdc9;
  20200. }
  20201. /*定义滑块 内阴影+圆角*/
  20202. .cru_selectBox::-webkit-scrollbar-thumb,
  20203. .study_top::-webkit-scrollbar-thumb,
  20204. .textContent::-webkit-scrollbar-thumb {
  20205. border-radius: 10px;
  20206. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20207. background-color: #2c5ab3;
  20208. }
  20209. .vedioBox {
  20210. border-radius: 0 0 20px 20px;
  20211. background: #fff;
  20212. overflow: auto;
  20213. }
  20214. .taskBox {
  20215. width: 98%;
  20216. background: #f0f4fa;
  20217. margin: 10px auto;
  20218. padding: 0 10px;
  20219. border-radius: 4px;
  20220. box-sizing: border-box;
  20221. }
  20222. .vedioTaskBox {
  20223. width: 100%;
  20224. display: flex;
  20225. flex-direction: row;
  20226. flex-wrap: nowrap;
  20227. align-items: flex-start;
  20228. position: relative;
  20229. }
  20230. .toolBox {
  20231. margin: 15px 0 0 25px;
  20232. display: flex;
  20233. position: relative;
  20234. padding: 18px 20px;
  20235. border-top-left-radius: 5px;
  20236. border-top-right-radius: 5px;
  20237. width: 90%;
  20238. }
  20239. .btnAll {
  20240. position: absolute;
  20241. right: 0;
  20242. display: flex;
  20243. flex-direction: row;
  20244. flex-wrap: nowrap;
  20245. align-items: center;
  20246. }
  20247. .btnLeft,
  20248. .btnRight {
  20249. display: flex;
  20250. flex-direction: row;
  20251. flex-wrap: nowrap;
  20252. align-items: center;
  20253. padding: 5px 0;
  20254. }
  20255. .btnLeft {
  20256. border-right: 1px solid #cad1dc;
  20257. }
  20258. .btnLeft > .custom-tooltip {
  20259. background: #3681fc;
  20260. color: #fff;
  20261. }
  20262. .last:hover {
  20263. background: #3383fa !important;
  20264. color: #fff;
  20265. border: 1px solid #3383fa !important;
  20266. }
  20267. .last,
  20268. .returnBtn1 {
  20269. width: 90px;
  20270. height: 36px;
  20271. background: #ffffff;
  20272. border-radius: 4px;
  20273. border: 1px solid #0061ff;
  20274. color: #0061ff;
  20275. cursor: pointer;
  20276. display: flex;
  20277. flex-direction: row;
  20278. flex-wrap: nowrap;
  20279. align-items: center;
  20280. justify-content: center;
  20281. margin-left: 12px;
  20282. }
  20283. .returnBtn1 {
  20284. background: #f0f4fa;
  20285. border-radius: 4px;
  20286. border: 1px solid #cad1dc;
  20287. margin: 0 12px;
  20288. }
  20289. .lastImg {
  20290. min-width: 15px;
  20291. width: 15px;
  20292. height: 15px;
  20293. }
  20294. .lastText {
  20295. padding: 0 5px 2px 5px;
  20296. box-sizing: border-box;
  20297. font-size: 14px;
  20298. }
  20299. .lastImg > img {
  20300. width: 100%;
  20301. height: 100%;
  20302. }
  20303. /* .vedioTimeBox {
  20304. display: flex;
  20305. flex-direction: row;
  20306. align-items: center;
  20307. flex-wrap: nowrap;
  20308. position: relative;
  20309. } */
  20310. .navBox {
  20311. background: #fff;
  20312. height: calc(100% - 40px);
  20313. overflow-y: auto;
  20314. overflow-x: hidden;
  20315. }
  20316. .worksBox {
  20317. margin: 0 0 10px 25px;
  20318. border-bottom: 1px solid #eeeeee;
  20319. padding: 18px 20px;
  20320. border-radius: 4px;
  20321. width: 90%;
  20322. }
  20323. .worksBTitle {
  20324. font-size: 20px;
  20325. padding-bottom: 15px;
  20326. border-bottom: 1px solid #eeeeee;
  20327. display: flex;
  20328. align-items: center;
  20329. }
  20330. .greenBox {
  20331. width: 5px;
  20332. height: 30px;
  20333. background: #63b6fa;
  20334. margin-right: 5px;
  20335. }
  20336. .worksDetailBox {
  20337. display: flex;
  20338. width: 100%;
  20339. flex-direction: row;
  20340. flex-wrap: wrap;
  20341. align-items: flex-end;
  20342. justify-content: flex-start;
  20343. padding: 15px 0;
  20344. }
  20345. .works {
  20346. display: flex;
  20347. flex-direction: column;
  20348. flex-wrap: nowrap;
  20349. align-items: flex-start;
  20350. justify-content: flex-start;
  20351. align-content: center;
  20352. max-width: 240px;
  20353. width: calc(100% / 3 - 10px);
  20354. height: auto;
  20355. margin-right: 10px;
  20356. margin-bottom: 10px;
  20357. overflow: hidden;
  20358. height: 140px;
  20359. box-shadow: 0 0 6px 1px #dfdada;
  20360. border-radius: 15px;
  20361. }
  20362. .workImg {
  20363. width: 100%;
  20364. /* height: calc(100% - 40px); */
  20365. height: 105px;
  20366. position: relative;
  20367. }
  20368. .workImg > img {
  20369. width: 100%;
  20370. height: 100%;
  20371. object-fit: contain;
  20372. cursor: pointer;
  20373. }
  20374. .worksName {
  20375. height: 40px;
  20376. line-height: 40px;
  20377. display: flex;
  20378. width: 100%;
  20379. flex-direction: row;
  20380. flex-wrap: nowrap;
  20381. justify-content: space-between;
  20382. align-items: center;
  20383. margin: 0 0 0 10px;
  20384. }
  20385. .worksName > div:nth-child(1) {
  20386. width: 110px;
  20387. white-space: nowrap;
  20388. overflow: hidden;
  20389. text-overflow: ellipsis;
  20390. }
  20391. .worksName > div:nth-child(2) {
  20392. color: #b7b4b5;
  20393. }
  20394. .noWorksS {
  20395. padding: 15px 0;
  20396. display: flex;
  20397. flex-direction: row;
  20398. flex-wrap: wrap;
  20399. align-items: center;
  20400. justify-content: flex-start;
  20401. }
  20402. .noWorksName,
  20403. .isWorksName,
  20404. .isWorksName2 {
  20405. background: #ddebf8;
  20406. color: #000;
  20407. width: 90px;
  20408. height: 25px;
  20409. text-align: center;
  20410. line-height: 25px;
  20411. border-radius: 4px;
  20412. margin: 10px 15px 10px 0;
  20413. white-space: nowrap;
  20414. overflow: hidden;
  20415. padding: 5px;
  20416. text-overflow: ellipsis;
  20417. cursor: pointer;
  20418. border: 1px solid #ddebf8;
  20419. }
  20420. .noWorksName {
  20421. background: #fff;
  20422. color: #0061ff;
  20423. border: 1px solid #0061ff;
  20424. }
  20425. .isWorksName2 {
  20426. width: 100px;
  20427. height: 40px;
  20428. line-height: 40px;
  20429. position: relative;
  20430. background: #dae6f9;
  20431. }
  20432. .isWorksName {
  20433. background: #e7ebf1 !important;
  20434. width: 100px;
  20435. height: 40px;
  20436. line-height: 40px;
  20437. position: relative;
  20438. color: #acb4bf;
  20439. border: 1px solid #cad1dc !important;
  20440. }
  20441. .isSelectName,
  20442. .noWorksName:hover {
  20443. background: #3383fa !important;
  20444. color: #fff !important;
  20445. border: 1px solid #3383fa !important;
  20446. }
  20447. .title {
  20448. background: #1e5cc9;
  20449. /* width: 98%; */
  20450. height: 45px;
  20451. color: #fff;
  20452. line-height: 45px;
  20453. padding-left: 20px;
  20454. box-sizing: border-box;
  20455. }
  20456. .textBox {
  20457. font-size: 20px;
  20458. width: 90%;
  20459. display: flex;
  20460. flex-direction: column;
  20461. align-items: center;
  20462. margin: 20px auto 0;
  20463. max-height: calc(100% - 75px);
  20464. overflow: auto;
  20465. }
  20466. .textContent {
  20467. font-size: 18px;
  20468. width: 95%;
  20469. max-width: 95%;
  20470. }
  20471. .answerBg {
  20472. background: url("../assets/icon/answerBgNew.png") no-repeat;
  20473. background-size: 100% 100%;
  20474. width: 100%;
  20475. height: 100%;
  20476. color: #fff;
  20477. text-align: center;
  20478. display: flex;
  20479. flex-direction: column;
  20480. flex-wrap: nowrap;
  20481. align-items: center;
  20482. position: relative;
  20483. justify-content: center;
  20484. }
  20485. .answerBg > div:nth-child(1) {
  20486. /* font-size: 22px;
  20487. padding: 25px 0 10px; */
  20488. }
  20489. .answerContent {
  20490. width: 215px;
  20491. max-height: 60px;
  20492. word-break: break-all;
  20493. text-align: center;
  20494. /* white-space: nowrap; */
  20495. overflow: hidden;
  20496. text-overflow: ellipsis;
  20497. /* padding: 23px 0 0; */
  20498. -webkit-line-clamp: 3;
  20499. -webkit-box-orient: vertical;
  20500. display: -webkit-box;
  20501. font-size: 15px;
  20502. cursor: pointer;
  20503. }
  20504. .elist_input_box {
  20505. display: flex;
  20506. align-items: flex-start;
  20507. flex-wrap: nowrap;
  20508. padding: 10px 0 15px 30px;
  20509. flex-direction: column;
  20510. }
  20511. .elist_input {
  20512. /* width: 40%; */
  20513. width: 45%;
  20514. margin: 20px;
  20515. }
  20516. .elist_input .elist_input_box input {
  20517. font: inherit;
  20518. color: currentColor;
  20519. width: 200px;
  20520. padding: 8px 14px;
  20521. display: block;
  20522. min-width: 0;
  20523. outline: none;
  20524. border: 1px solid rgba(0, 0, 0, 0.23);
  20525. border-radius: 4px;
  20526. box-sizing: border-box;
  20527. background: #fff;
  20528. margin: 0 20px 0 0;
  20529. }
  20530. .elist_input .elist_input_box span {
  20531. height: 36px;
  20532. line-height: 36px;
  20533. color: rgb(82, 82, 82);
  20534. }
  20535. .elist_input .elist_input_box .remove {
  20536. height: 20px;
  20537. width: 20px;
  20538. background-size: 100% 100%;
  20539. background-position: unset;
  20540. margin-left: 5px;
  20541. }
  20542. .elist_input_box >>> .el-rate {
  20543. display: flex;
  20544. height: 36px;
  20545. align-items: center;
  20546. }
  20547. .elist_input_box .elist_inptu_text {
  20548. min-height: 50px;
  20549. /* width: 500px;
  20550. max-height: 150px; */
  20551. width: 100%;
  20552. line-height: 50px;
  20553. color: rgb(82, 82, 82);
  20554. overflow: auto;
  20555. text-indent: 5px;
  20556. background: #f7f6f9;
  20557. border-radius: 10px;
  20558. }
  20559. .elist_input_box .elist_inptu_text input {
  20560. width: 500px;
  20561. }
  20562. .elist_input_box >>> .el-rate__icon {
  20563. font-size: 24px;
  20564. }
  20565. .isClick {
  20566. background: #4d9def;
  20567. }
  20568. .bzBox {
  20569. display: flex;
  20570. flex-direction: row;
  20571. align-items: center;
  20572. }
  20573. .bzBox .yCss {
  20574. width: 7px;
  20575. height: 7px;
  20576. background: #fff;
  20577. margin: 0 16px 0 6px;
  20578. border-radius: 50%;
  20579. border: 5px solid #3681fc;
  20580. z-index: 99;
  20581. }
  20582. .bzBox > div:nth-child(2) {
  20583. font-size: 18px;
  20584. font-weight: bold;
  20585. color: #0e1e33;
  20586. }
  20587. .navTitile {
  20588. padding: 0 0px 0 15px;
  20589. font-size: 16px;
  20590. font-weight: bold;
  20591. color: #0e1e33;
  20592. height: 40px;
  20593. line-height: 40px;
  20594. }
  20595. .isTypeOne {
  20596. width: 240px;
  20597. height: 170px;
  20598. /* border: 1px solid #f8f8f8; */
  20599. border-radius: 10px;
  20600. box-shadow: 0 0 6px 1px #dfdada;
  20601. }
  20602. .e_add_top {
  20603. display: flex;
  20604. justify-content: space-between;
  20605. padding: 20px 20px 0 20px;
  20606. border-radius: 3px;
  20607. background: #fff;
  20608. }
  20609. .e_add_title2 {
  20610. display: flex;
  20611. align-items: center;
  20612. }
  20613. .e_add_title2 span {
  20614. width: 40px;
  20615. }
  20616. .e_add_title {
  20617. display: flex;
  20618. align-items: center;
  20619. color: #b8b8b8;
  20620. font-size: 18px;
  20621. position: relative;
  20622. height: 40px;
  20623. }
  20624. .e_add_title span {
  20625. margin-right: 10px;
  20626. }
  20627. .e_add_title .el_input {
  20628. width: 300px;
  20629. }
  20630. .e_add_title >>> .el-input__inner {
  20631. width: 400px;
  20632. }
  20633. .e_add_btn {
  20634. }
  20635. .e_add_content {
  20636. display: flex;
  20637. width: 100%;
  20638. max-width: 650px;
  20639. height: 550px;
  20640. }
  20641. .e_add_list {
  20642. background: #fff;
  20643. height: 500px;
  20644. width: 210px;
  20645. position: relative;
  20646. margin: 15px 5px 0 0;
  20647. flex-shrink: 0;
  20648. display: flex;
  20649. flex-direction: column;
  20650. }
  20651. .e_add_list_title {
  20652. font-size: 20px;
  20653. width: 100%;
  20654. box-sizing: border-box;
  20655. padding: 15px 40px;
  20656. text-align: center;
  20657. border-bottom: 1px solid #eaeaea;
  20658. position: relative;
  20659. display: flex;
  20660. align-items: center;
  20661. justify-content: center;
  20662. height: 57px;
  20663. background: #f6f6f6;
  20664. }
  20665. .e_add_list_title span {
  20666. overflow: hidden;
  20667. white-space: nowrap;
  20668. text-overflow: ellipsis;
  20669. }
  20670. .e_add_list_title img {
  20671. position: absolute;
  20672. right: 15px;
  20673. width: 25px;
  20674. cursor: pointer;
  20675. top: 50%;
  20676. transform: translateY(-50%);
  20677. }
  20678. .e_add_list_body {
  20679. height: calc(100% - 187px);
  20680. overflow: auto;
  20681. }
  20682. .e_add_list_child {
  20683. width: 100%;
  20684. display: flex;
  20685. align-items: center;
  20686. justify-content: center;
  20687. position: relative;
  20688. box-sizing: border-box;
  20689. padding: 15px 40px;
  20690. text-align: center;
  20691. }
  20692. .e_add_list_child span {
  20693. overflow: hidden;
  20694. white-space: nowrap;
  20695. text-overflow: ellipsis;
  20696. cursor: pointer;
  20697. }
  20698. .e_add_list_child img {
  20699. position: absolute;
  20700. right: 10px;
  20701. width: 21px;
  20702. cursor: pointer;
  20703. top: 50%;
  20704. transform: translateY(-50%);
  20705. }
  20706. .e_add_list_child + .e_add_list_child {
  20707. border-top: 1px solid #eaeaea;
  20708. }
  20709. .e_add_list_child .active {
  20710. color: #409eff;
  20711. }
  20712. .e_add_list_btn {
  20713. position: absolute;
  20714. bottom: 0;
  20715. height: 50px;
  20716. background: rgb(120, 120, 254);
  20717. width: 100%;
  20718. color: #fff;
  20719. font-size: 16px;
  20720. text-align: center;
  20721. line-height: 50px;
  20722. cursor: pointer;
  20723. }
  20724. .e_add_list_detail {
  20725. position: absolute;
  20726. bottom: 0;
  20727. height: 130px;
  20728. background: rgb(120, 120, 254);
  20729. width: 100%;
  20730. color: #fff;
  20731. font-size: 16px;
  20732. display: flex;
  20733. align-items: center;
  20734. justify-content: center;
  20735. }
  20736. .e_add_list_detail textarea {
  20737. height: 90%;
  20738. width: 95%;
  20739. border: none;
  20740. resize: none;
  20741. outline: none;
  20742. padding: 5px;
  20743. box-sizing: border-box;
  20744. }
  20745. .e_add_list_pbox {
  20746. width: 100%;
  20747. max-width: 650px;
  20748. /* height: 600px; */
  20749. }
  20750. .e_add_list_pbox_title {
  20751. height: 50px;
  20752. background: #fff;
  20753. display: flex;
  20754. align-items: center;
  20755. width: 100%;
  20756. box-sizing: border-box;
  20757. padding: 0 20px;
  20758. }
  20759. .type_title {
  20760. font-size: 18px;
  20761. font-weight: 700;
  20762. }
  20763. .type_content {
  20764. font-size: 16px;
  20765. margin-left: 30px;
  20766. }
  20767. .type_content span + span {
  20768. margin-left: 20px;
  20769. }
  20770. .type_content span {
  20771. cursor: pointer;
  20772. padding-bottom: 5px;
  20773. box-sizing: border-box;
  20774. }
  20775. .type_content .active {
  20776. color: #409eff;
  20777. border-bottom: 2px solid #409eff;
  20778. }
  20779. .e_add_list_pbox_content {
  20780. height: calc(100% - 50px);
  20781. display: flex;
  20782. align-items: center;
  20783. width: 100%;
  20784. background: #fff;
  20785. }
  20786. .evaCss {
  20787. display: flex;
  20788. flex-direction: row;
  20789. flex-wrap: nowrap;
  20790. align-items: flex-start;
  20791. padding: 0 0 20px;
  20792. }
  20793. .cru_line {
  20794. position: absolute;
  20795. bottom: 0px;
  20796. transition: all 0.5s;
  20797. left: 0px;
  20798. width: 125px;
  20799. margin-left: -25px;
  20800. }
  20801. .isNoMessage {
  20802. width: 20%;
  20803. margin: 25% auto 0;
  20804. }
  20805. .isNoMessage > img {
  20806. width: 100%;
  20807. height: 100%;
  20808. }
  20809. .fullStyle >>> .el-dialog__body {
  20810. height: 100% !important;
  20811. }
  20812. .fullStyle >>> .el-dialog,
  20813. .fullStyle {
  20814. width: 100% !important;
  20815. max-width: 100% !important;
  20816. height: 100% !important;
  20817. margin: 0 !important;
  20818. }
  20819. .full_diy >>> .el-dialog {
  20820. margin: 0 !important;
  20821. height: 100%;
  20822. padding: 4px;
  20823. }
  20824. .full_diy >>> .el-dialog__body {
  20825. height: calc(100% - 100px);
  20826. }
  20827. .full_diy2 >>> .el-dialog__body {
  20828. height: calc(100% - 50px);
  20829. padding: 0;
  20830. }
  20831. .switchCss {
  20832. /* width: 100%; */
  20833. display: flex;
  20834. flex-direction: row;
  20835. flex-wrap: nowrap;
  20836. align-items: center;
  20837. /* justify-content: center; */
  20838. }
  20839. .isClickNav {
  20840. /* color: #499eef; */
  20841. color: #000;
  20842. }
  20843. .commentImg {
  20844. width: 25px;
  20845. height: 25px;
  20846. cursor: pointer;
  20847. }
  20848. .commentImg > img {
  20849. width: 100%;
  20850. height: 100%;
  20851. }
  20852. .comment {
  20853. background: #f9f9f9;
  20854. border-radius: 0 0 4px 4px;
  20855. display: flex;
  20856. flex-direction: row;
  20857. flex-wrap: nowrap;
  20858. align-items: center;
  20859. justify-content: flex-end;
  20860. height: 35px;
  20861. }
  20862. .commentList {
  20863. display: flex;
  20864. flex-direction: row;
  20865. flex-wrap: nowrap;
  20866. align-items: center;
  20867. justify-content: center;
  20868. align-content: center;
  20869. /* margin-left: 15px; */
  20870. /* margin-left: 8px; */
  20871. }
  20872. .scoreImg {
  20873. width: 17px;
  20874. height: 17px;
  20875. }
  20876. .studentDetail {
  20877. display: flex;
  20878. flex-direction: row;
  20879. flex-wrap: nowrap;
  20880. /* align-items: center; */
  20881. align-items: flex-start;
  20882. }
  20883. .tx {
  20884. width: 50px;
  20885. }
  20886. .tx > img {
  20887. width: 100%;
  20888. height: 100%;
  20889. }
  20890. .nameAndTime {
  20891. display: flex;
  20892. flex-direction: column;
  20893. flex-wrap: nowrap;
  20894. align-items: flex-start;
  20895. margin-left: 10px;
  20896. }
  20897. .worksAnswer {
  20898. color: #4078dd;
  20899. margin: 10px 0;
  20900. font-size: 16px;
  20901. position: relative;
  20902. }
  20903. .worksAnswer > img {
  20904. width: 500px;
  20905. height: 300px;
  20906. object-fit: contain;
  20907. margin: 0 auto;
  20908. display: block;
  20909. }
  20910. .commentTop {
  20911. border-bottom: 1px solid #eaeaea;
  20912. padding-bottom: 10px;
  20913. }
  20914. .commentBox {
  20915. padding-top: 15px;
  20916. }
  20917. .pl {
  20918. font-size: 18px;
  20919. }
  20920. .plPerson {
  20921. width: 100%;
  20922. }
  20923. .plName {
  20924. display: flex;
  20925. flex-direction: row;
  20926. flex-wrap: nowrap;
  20927. align-items: baseline;
  20928. color: #78787a;
  20929. width: 100%;
  20930. }
  20931. .deleteComment {
  20932. cursor: pointer;
  20933. margin-left: auto;
  20934. color: #237ade;
  20935. }
  20936. .plContent {
  20937. margin-top: 5px;
  20938. }
  20939. .evalCss {
  20940. background: #fff;
  20941. font-size: 18px;
  20942. }
  20943. .nav {
  20944. color: #9d9d9d;
  20945. padding: 5px 0 15px 20px;
  20946. }
  20947. .middleBox {
  20948. padding: 5px 0 15px 20px;
  20949. }
  20950. .pfBox {
  20951. padding-bottom: 30px;
  20952. }
  20953. .nameAndrate {
  20954. display: flex;
  20955. flex-direction: row;
  20956. flex-wrap: nowrap;
  20957. align-items: center;
  20958. padding-bottom: 10px;
  20959. height: 30px;
  20960. line-height: 30px;
  20961. }
  20962. .nameAndrate > div {
  20963. margin-left: 10px;
  20964. color: #000;
  20965. height: 30px;
  20966. }
  20967. .nameAndrate >>> .el-rate__icon {
  20968. font-size: 28px !important;
  20969. }
  20970. .pfBox > div:nth-child(2) {
  20971. background: #f7f6f9;
  20972. width: 400px;
  20973. min-height: 45px;
  20974. border-radius: 10px;
  20975. font-size: 16px;
  20976. display: flex;
  20977. flex-wrap: wrap;
  20978. align-items: center;
  20979. padding: 10px 20px;
  20980. box-sizing: border-box;
  20981. color: #000;
  20982. }
  20983. .bz {
  20984. display: flex;
  20985. flex-direction: row;
  20986. flex-wrap: nowrap;
  20987. align-items: flex-start;
  20988. }
  20989. .bz > div {
  20990. padding: 0 10px;
  20991. }
  20992. .select_box2_title {
  20993. background: #fff;
  20994. border-radius: 5px;
  20995. padding: 15px 10px;
  20996. box-sizing: border-box;
  20997. margin-bottom: 10px;
  20998. display: flex;
  20999. flex-direction: row;
  21000. flex-wrap: nowrap;
  21001. align-items: center;
  21002. }
  21003. .select_box2_title > div:nth-child(2) {
  21004. margin-left: 10px;
  21005. color: #c4c4c4;
  21006. }
  21007. .select_box2_box {
  21008. display: flex;
  21009. height: 500px;
  21010. }
  21011. .select_box2_img {
  21012. width: calc(100% - 310px);
  21013. height: 100%;
  21014. overflow: auto;
  21015. background: #fff;
  21016. border-radius: 5px;
  21017. }
  21018. .select_box2_img img {
  21019. width: 100%;
  21020. }
  21021. .select_box2_answer {
  21022. background: #fff;
  21023. margin-left: 10px;
  21024. border-radius: 5px;
  21025. width: 300px;
  21026. overflow: auto;
  21027. height: 90%;
  21028. display: flex;
  21029. flex-direction: column;
  21030. align-items: flex-start;
  21031. padding-top: 10px;
  21032. box-sizing: border-box;
  21033. position: relative;
  21034. }
  21035. .select_answer_title {
  21036. padding: 0 0 15px 20px;
  21037. color: #c4c4c4;
  21038. }
  21039. .select_box2_answer_box {
  21040. margin: 0 0 10px 20px;
  21041. width: 85%;
  21042. display: flex;
  21043. flex-direction: row;
  21044. flex-wrap: nowrap;
  21045. align-items: center;
  21046. }
  21047. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21048. color: #000;
  21049. }
  21050. .upAnswerCss {
  21051. position: absolute;
  21052. bottom: 15px;
  21053. right: 15px;
  21054. }
  21055. .upAnswerCss >>> .el-button {
  21056. width: 95px;
  21057. height: 35px;
  21058. line-height: 35px;
  21059. padding: 0;
  21060. }
  21061. .rightWidthCss {
  21062. width: 60%;
  21063. display: flex;
  21064. flex-direction: row;
  21065. align-items: flex-start;
  21066. }
  21067. .rightAnswer {
  21068. display: flex;
  21069. flex-direction: row;
  21070. flex-wrap: nowrap;
  21071. align-items: center;
  21072. color: red;
  21073. margin-bottom: 31px;
  21074. }
  21075. .rightAnswerCss {
  21076. display: flex;
  21077. flex-direction: column;
  21078. flex-wrap: nowrap;
  21079. padding-top: 60px;
  21080. }
  21081. .blueCss {
  21082. color: #767de1;
  21083. margin-left: 10px;
  21084. }
  21085. .redCss {
  21086. color: red;
  21087. }
  21088. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21089. color: rgb(0 123 255) !important;
  21090. }
  21091. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21092. color: rgb(0 123 255) !important;
  21093. }
  21094. .zuoyeYulan {
  21095. padding-top: 0;
  21096. font-size: 18px;
  21097. display: flex;
  21098. align-items: flex-end;
  21099. }
  21100. .buttonA {
  21101. margin-left: 10px;
  21102. padding: 0;
  21103. }
  21104. .displayBox {
  21105. margin-bottom: 10px;
  21106. display: block;
  21107. border-bottom: 3px solid #eee;
  21108. display: flex;
  21109. align-items: center;
  21110. }
  21111. .easy_comment {
  21112. width: calc(100% - 90px);
  21113. margin-left: 10px;
  21114. display: flex;
  21115. flex-wrap: wrap;
  21116. }
  21117. .easy_comment > div {
  21118. border: 1px solid #4a4a4a;
  21119. color: #666;
  21120. border-radius: 15px;
  21121. padding: 5px 10px;
  21122. font-size: 16px;
  21123. margin-bottom: 10px;
  21124. margin-right: 5px;
  21125. cursor: pointer;
  21126. }
  21127. .easy_comment div:hover {
  21128. border: 1px solid #f7ba2a;
  21129. color: #c69217;
  21130. }
  21131. .xuan_right_box {
  21132. padding: 10px 0;
  21133. background: #f0f4fa;
  21134. margin: 0 15px 0 25px;
  21135. border-bottom-left-radius: 5px;
  21136. border-bottom-right-radius: 5px;
  21137. width: 91.5%;
  21138. }
  21139. .tool_right_box {
  21140. display: flex;
  21141. align-items: center;
  21142. }
  21143. .tool_right_box + .tool_right_box {
  21144. margin-top: 10px;
  21145. }
  21146. .right_box_xuan {
  21147. background: rgb(0 123 255);
  21148. color: #fff;
  21149. border-radius: 5px;
  21150. padding: 5px;
  21151. margin-left: 10px;
  21152. min-width: 95px;
  21153. }
  21154. .pButton:hover {
  21155. opacity: 1 !important;
  21156. }
  21157. .pButton {
  21158. position: fixed;
  21159. text-align: center;
  21160. cursor: pointer;
  21161. z-index: 999;
  21162. right: 20px;
  21163. top: 110px;
  21164. width: 50px;
  21165. height: 50px;
  21166. display: flex;
  21167. align-items: center;
  21168. justify-content: center;
  21169. border-radius: 5px;
  21170. }
  21171. .pzClass {
  21172. width: calc(100% - 340px);
  21173. }
  21174. .newDialogCss {
  21175. /* position: fixed;
  21176. right: 5%;
  21177. top: 50%;
  21178. width: 340px;
  21179. transform: translateY(-50%);
  21180. height: 60%;
  21181. box-shadow: 0px 0 8px 0px #555555;
  21182. border-radius: 15px;
  21183. z-index: 999; */
  21184. position: fixed;
  21185. right: 20px;
  21186. top: 101px;
  21187. width: 330px;
  21188. height: calc(100% - 80px);
  21189. z-index: 999;
  21190. background: #fff;
  21191. border-top-right-radius: 0px;
  21192. border-bottom-right-radius: 0px;
  21193. overflow: hidden;
  21194. }
  21195. .pzTop {
  21196. color: #fff;
  21197. background: #000;
  21198. display: flex;
  21199. flex-direction: row;
  21200. flex-wrap: nowrap;
  21201. align-items: center;
  21202. justify-content: space-between;
  21203. height: 40px;
  21204. border-radius: 15px 15px 0 0;
  21205. user-select: none;
  21206. }
  21207. .pzTop2 .checkbox {
  21208. display: flex;
  21209. align-items: center;
  21210. padding: 5px 30px;
  21211. flex: 0 0 auto;
  21212. font-weight: bold;
  21213. border-bottom: 1px solid #eee;
  21214. justify-content: space-between;
  21215. }
  21216. .pzTop2 .check {
  21217. text-align: center;
  21218. cursor: pointer;
  21219. box-sizing: border-box;
  21220. display: flex;
  21221. }
  21222. .pzTop2 img {
  21223. width: 25px;
  21224. cursor: pointer;
  21225. }
  21226. .pzTop > div:nth-child(1) {
  21227. padding-left: 10px;
  21228. }
  21229. .pzTop > div:nth-child(2) {
  21230. width: 15px;
  21231. height: 15px;
  21232. padding-right: 10px;
  21233. cursor: pointer;
  21234. }
  21235. .pzTop > div:nth-child(2) > img {
  21236. width: 100%;
  21237. height: 100%;
  21238. }
  21239. .pzBox,
  21240. .noPzBox {
  21241. height: calc(100% - 60px);
  21242. /* background: #ededed; */
  21243. background: #fff;
  21244. /* border-radius: 0 0 15px 15px; */
  21245. }
  21246. .noPzBox {
  21247. display: flex;
  21248. flex-direction: column;
  21249. flex-wrap: nowrap;
  21250. justify-content: center;
  21251. align-items: center;
  21252. }
  21253. .pzList {
  21254. background: #f7f7f7;
  21255. width: 90%;
  21256. margin: 0 auto 15px;
  21257. border-radius: 5px;
  21258. }
  21259. .pzNavTop {
  21260. display: flex;
  21261. flex-direction: row;
  21262. flex-wrap: nowrap;
  21263. padding: 10px 10px 0 10px;
  21264. align-items: center;
  21265. }
  21266. .pzDelete {
  21267. cursor: pointer;
  21268. margin-left: auto;
  21269. font-size: 14px;
  21270. color: #afafaf;
  21271. }
  21272. .pzNavTop > div:nth-child(1) {
  21273. background: #3760af;
  21274. width: 35px;
  21275. height: 35px;
  21276. color: #fff;
  21277. text-align: center;
  21278. line-height: 35px;
  21279. border-radius: 50%;
  21280. font-size: 14px;
  21281. }
  21282. .pzNavTop > div:nth-child(2) {
  21283. font-size: 18px;
  21284. color: #959595;
  21285. margin-left: 5px;
  21286. }
  21287. .pzContent {
  21288. padding: 10px;
  21289. word-break: break-word;
  21290. }
  21291. .pzContent audio {
  21292. width: 100%;
  21293. }
  21294. .pzContent audio::-webkit-media-controls-panel {
  21295. background: #fff;
  21296. }
  21297. .pzContent >>> img {
  21298. max-width: 100%;
  21299. }
  21300. .pzListBox {
  21301. padding-top: 15px;
  21302. height: calc(100% - 110px);
  21303. overflow: auto;
  21304. }
  21305. .addPzButton {
  21306. position: relative;
  21307. margin-top: 3px;
  21308. width: 100%;
  21309. }
  21310. .addPzButton .img1 {
  21311. position: absolute;
  21312. top: 50%;
  21313. right: 25px;
  21314. transform: translateY(-50%);
  21315. height: 100%;
  21316. display: flex;
  21317. align-items: center;
  21318. }
  21319. .addPzButton .img1 div {
  21320. display: flex;
  21321. }
  21322. .addPzButton .img1 div img {
  21323. width: 28px;
  21324. margin-left: 10px;
  21325. cursor: pointer;
  21326. }
  21327. .addPzButton .img1 div span {
  21328. font-size: 14px;
  21329. margin: 4px 0 0 3px;
  21330. color: #afafaf;
  21331. }
  21332. .addPz {
  21333. background: #4b79ce;
  21334. width: 100px;
  21335. color: #fff;
  21336. font-size: 12px;
  21337. height: 30px;
  21338. margin: 0 auto;
  21339. text-align: center;
  21340. line-height: 30px;
  21341. border-radius: 10px;
  21342. cursor: pointer;
  21343. }
  21344. .addDialogCss {
  21345. position: fixed;
  21346. width: 600px;
  21347. height: 70%;
  21348. min-height: 450px;
  21349. box-shadow: 0px 0 8px 0px #555555;
  21350. border-radius: 15px;
  21351. z-index: 999;
  21352. left: 50%;
  21353. top: 50%;
  21354. margin: -18% 0 0 -300px;
  21355. }
  21356. .teacherPz {
  21357. display: flex;
  21358. flex-direction: row;
  21359. align-items: center;
  21360. flex-wrap: nowrap;
  21361. }
  21362. .teacherPzImg {
  21363. width: 30px;
  21364. height: 30px;
  21365. }
  21366. .teacherPzImg > img {
  21367. width: 100%;
  21368. height: 100%;
  21369. }
  21370. .addPzBox {
  21371. height: calc(100% - 40px);
  21372. background: #ededed;
  21373. border-bottom-left-radius: 15px;
  21374. border-bottom-right-radius: 15px;
  21375. }
  21376. .pzAudioClass {
  21377. margin: 15px 14px;
  21378. background: #fff;
  21379. height: 100%;
  21380. display: flex;
  21381. justify-content: center;
  21382. align-items: center;
  21383. }
  21384. .pzConText {
  21385. width: 95%;
  21386. height: 100%;
  21387. margin: 10px auto 0;
  21388. border: none;
  21389. background: #fff;
  21390. border-radius: 0px;
  21391. }
  21392. .pzConText >>> .text {
  21393. height: calc(100% - 82px);
  21394. }
  21395. .addTextCss {
  21396. background: #4b79ce;
  21397. width: 80px;
  21398. height: 30px;
  21399. text-align: center;
  21400. color: #fff;
  21401. line-height: 30px;
  21402. border-radius: 10px;
  21403. margin: 10px auto 0;
  21404. cursor: pointer;
  21405. }
  21406. .pzConText:focus-visible {
  21407. border: none !important;
  21408. }
  21409. .maxWidth {
  21410. width: 1000px;
  21411. }
  21412. .noPz {
  21413. width: 150px;
  21414. margin: 0 auto 20%;
  21415. }
  21416. .noPz > img {
  21417. width: 100%;
  21418. height: 100%;
  21419. }
  21420. .timeAndReply {
  21421. display: flex;
  21422. flex-direction: row;
  21423. flex-wrap: nowrap;
  21424. justify-content: space-between;
  21425. align-items: center;
  21426. font-size: 14px;
  21427. box-sizing: border-box;
  21428. padding: 0 10px 10px 0px;
  21429. }
  21430. .timeAndReply .time {
  21431. color: #bfbfbf;
  21432. padding: 0 0 0 10px;
  21433. box-sizing: border-box;
  21434. }
  21435. .timeAndReply > div:last-child {
  21436. cursor: pointer;
  21437. color: #777;
  21438. }
  21439. /* table 样式 */
  21440. .cont >>> table {
  21441. border-top: 1px solid #ccc;
  21442. border-left: 1px solid #ccc;
  21443. }
  21444. .cont >>> table td,
  21445. .cont >>> table th {
  21446. border-bottom: 1px solid #ccc;
  21447. border-right: 1px solid #ccc;
  21448. /* padding: 20px 5px; */
  21449. padding: 5px 10px;
  21450. max-width: 0px;
  21451. height: 30px;
  21452. vertical-align: baseline;
  21453. box-sizing: border-box;
  21454. }
  21455. .cont >>> table th {
  21456. border-bottom: 2px solid #ccc;
  21457. text-align: center;
  21458. }
  21459. /* blockquote 样式 */
  21460. .cont >>> blockquote {
  21461. display: block;
  21462. border-left: 8px solid #d0e5f2;
  21463. padding: 5px 10px;
  21464. margin: 10px 0;
  21465. line-height: 1.4;
  21466. font-size: 100%;
  21467. background-color: #f1f1f1;
  21468. }
  21469. /* code 样式 */
  21470. .cont >>> code {
  21471. display: inline-block;
  21472. /* *display: inline; */
  21473. zoom: 1;
  21474. background-color: #f1f1f1;
  21475. border-radius: 3px;
  21476. padding: 3px 5px;
  21477. margin: 0 3px;
  21478. }
  21479. .cont >>> pre code {
  21480. display: block;
  21481. }
  21482. /* ul ol 样式 */
  21483. .cont >>> ul,
  21484. ol {
  21485. margin: 10px 0 10px 20px;
  21486. }
  21487. .addPzCheck {
  21488. display: flex;
  21489. flex-direction: row;
  21490. flex-wrap: nowrap;
  21491. padding: 10px 15px 0;
  21492. }
  21493. .addPzCheck span {
  21494. cursor: pointer;
  21495. padding-bottom: 5px;
  21496. font-weight: bold;
  21497. }
  21498. .addPzCheck span + span {
  21499. margin-left: 10px;
  21500. }
  21501. .addPzCheck .isChooseActive {
  21502. color: #3e88f4;
  21503. border-bottom: 2px solid #2f80f3;
  21504. }
  21505. /* code 样式 */
  21506. .cont {
  21507. /* -webkit-user-modify: read-write; */
  21508. overflow-wrap: break-word;
  21509. -webkit-line-break: after-white-space;
  21510. }
  21511. .scoreBox,
  21512. .scoreDetailBox {
  21513. display: flex;
  21514. align-items: center;
  21515. justify-content: flex-start;
  21516. margin-top: 20px;
  21517. font-size: 18px;
  21518. width: 100%;
  21519. }
  21520. .scoreBox .t,
  21521. .scoreDetailBox .t {
  21522. margin-right: 10px;
  21523. width: 100px;
  21524. text-align: right;
  21525. }
  21526. .scoreDetailBox {
  21527. align-items: flex-start;
  21528. }
  21529. .scoreDetailBox >>> .el-textarea {
  21530. width: calc(100% - 200px);
  21531. }
  21532. .scoreBox >>> .el-input {
  21533. width: 130px;
  21534. font-size: 38px;
  21535. }
  21536. .scoreBox >>> .el-input__inner {
  21537. height: 60px;
  21538. }
  21539. .answerScore {
  21540. position: absolute;
  21541. top: 10px;
  21542. right: 10px;
  21543. background: #0000008f;
  21544. border-radius: 5px;
  21545. padding: 3px 5px;
  21546. font-size: 14px;
  21547. color: #fff;
  21548. cursor: pointer;
  21549. }
  21550. .open_box .switch_box {
  21551. width: 100%;
  21552. margin: 0 auto;
  21553. display: flex;
  21554. justify-content: space-between;
  21555. }
  21556. .open_box .switch_box + .switch_box {
  21557. margin-top: 10px;
  21558. }
  21559. .deleteImg,.deleteImg1 {
  21560. width: 25px !important;
  21561. height: 25px !important;
  21562. cursor: pointer;
  21563. position: absolute;
  21564. top: 10px;
  21565. right: 10px;
  21566. }
  21567. .deleteImg2 {
  21568. width: 23px !important;
  21569. height: 23px !important;
  21570. top: 5px;
  21571. right: 5px;
  21572. }
  21573. .deleteImg1{
  21574. width: 23px !important;
  21575. height: 23px !important;
  21576. top: 5px !important;
  21577. right: 30px !important;
  21578. }
  21579. .rightW {
  21580. right: 40px;
  21581. }
  21582. .drawPBox {
  21583. display: flex;
  21584. flex-direction: column;
  21585. position: relative;
  21586. }
  21587. .drawPBox span {
  21588. font-size: 18px;
  21589. color: #606266;
  21590. padding-bottom: 10px;
  21591. margin: 10px 0;
  21592. border-bottom: 1px solid #eaeaea;
  21593. }
  21594. .drawPBox img {
  21595. width: 500px;
  21596. height: 300px;
  21597. object-fit: contain;
  21598. cursor: pointer;
  21599. margin: 0 auto;
  21600. }
  21601. .sentenBox {
  21602. background: #fff;
  21603. height: 450px;
  21604. overflow: auto;
  21605. background-image: url("../assets/icon/conSentences/stuBg.png");
  21606. background-position: 102%;
  21607. background-repeat: no-repeat;
  21608. background-size: 60%;
  21609. }
  21610. .addSen {
  21611. background: #409efe;
  21612. width: 90px;
  21613. color: #fff;
  21614. height: 35px;
  21615. text-align: center;
  21616. line-height: 35px;
  21617. border-radius: 5px;
  21618. float: right;
  21619. margin: 10px 20px 0 0;
  21620. cursor: pointer;
  21621. }
  21622. .sentenTop {
  21623. display: flex;
  21624. flex-direction: row;
  21625. flex-wrap: nowrap;
  21626. align-items: center;
  21627. padding: 55px 0 0 20px;
  21628. box-sizing: border-box;
  21629. }
  21630. .sentenTop > div:nth-child(2) {
  21631. width: 300px;
  21632. margin: 0 15px;
  21633. }
  21634. .sentenTop > div:nth-child(3) {
  21635. background: #409efe;
  21636. color: #fff;
  21637. width: 65px;
  21638. height: 35px;
  21639. text-align: center;
  21640. line-height: 35px;
  21641. border-radius: 5px;
  21642. cursor: pointer;
  21643. }
  21644. .cardList,
  21645. .cardList1 {
  21646. padding: 10px 0 10px 0;
  21647. display: flex;
  21648. flex-direction: row;
  21649. flex-wrap: wrap;
  21650. align-items: center;
  21651. box-sizing: border-box;
  21652. border-bottom: 1px solid #f4f4f4;
  21653. width: 98%;
  21654. margin: 0 auto;
  21655. min-width: 60%;
  21656. max-width: 85%;
  21657. }
  21658. .cardList1 {
  21659. padding: 10px 0 10px 10px !important;
  21660. margin: 0 !important;
  21661. }
  21662. .cardBox {
  21663. display: flex;
  21664. flex-direction: row;
  21665. flex-wrap: wrap;
  21666. align-items: center;
  21667. align-content: center;
  21668. }
  21669. .cardBox > div {
  21670. margin-bottom: 10px;
  21671. }
  21672. .isCard,
  21673. .isChooseCard,
  21674. .noCard,
  21675. .isCard1 {
  21676. width: 130px;
  21677. height: 60px;
  21678. text-align: center;
  21679. line-height: 60px;
  21680. font-size: 20px;
  21681. cursor: pointer;
  21682. background-image: url("../assets/icon/conSentences/titleBorder.png");
  21683. background-size: cover;
  21684. transition: all 2s;
  21685. margin-right: 20px;
  21686. }
  21687. .isCard > div,
  21688. .noCard > div,
  21689. .isCard1 > div {
  21690. white-space: nowrap;
  21691. overflow: hidden;
  21692. text-overflow: ellipsis;
  21693. width: 75%;
  21694. margin: 0 auto;
  21695. }
  21696. .noCard {
  21697. background-image: none;
  21698. }
  21699. .isCard1 {
  21700. background-image: url("../assets/icon/conSentences/answerBorder.png");
  21701. }
  21702. .isChooseCard {
  21703. background-image: none;
  21704. border: 1px dashed #b9b9b9;
  21705. border-radius: 10px;
  21706. }
  21707. .card {
  21708. width: 130px;
  21709. height: 60px;
  21710. }
  21711. .card > img {
  21712. width: 100%;
  21713. height: 100%;
  21714. }
  21715. .rightCardBox {
  21716. margin: 10px 0 0 10px;
  21717. }
  21718. .rightCardBox > div:nth-child(1) {
  21719. margin-bottom: 10px;
  21720. }
  21721. .cardCss {
  21722. display: flex;
  21723. flex-direction: column;
  21724. flex-wrap: nowrap;
  21725. align-items: center;
  21726. border-bottom: 3px solid #b4c3d3;
  21727. padding: 0 0 5px 0;
  21728. margin-right: 10px;
  21729. }
  21730. .cardCss > div:nth-child(2) {
  21731. background: #5b7b9d;
  21732. color: #fff;
  21733. width: 20px;
  21734. height: 20px;
  21735. border-radius: 50%;
  21736. text-align: center;
  21737. line-height: 20px;
  21738. }
  21739. .isWrong {
  21740. display: flex;
  21741. flex-direction: row;
  21742. flex-wrap: nowrap;
  21743. align-content: center;
  21744. align-items: center;
  21745. }
  21746. .answerRight {
  21747. width: 25%;
  21748. }
  21749. .isTj {
  21750. display: flex;
  21751. flex-direction: row;
  21752. flex-wrap: nowrap;
  21753. align-items: center;
  21754. }
  21755. .isTj > div:nth-child(2) {
  21756. color: #727070;
  21757. margin-left: 10px;
  21758. }
  21759. .isTjImg {
  21760. width: 30px;
  21761. height: 30px;
  21762. }
  21763. .isTjImg > img {
  21764. width: 100%;
  21765. height: 100%;
  21766. }
  21767. .cardAnswerBox {
  21768. font-size: 18px;
  21769. width: 97%;
  21770. border: 5px;
  21771. padding: 0;
  21772. border-radius: 5px;
  21773. margin: 10px auto;
  21774. word-break: break-word;
  21775. }
  21776. .w_name {
  21777. margin-bottom: 10px;
  21778. }
  21779. .w_name span {
  21780. font-size: 16px;
  21781. }
  21782. .w_teachert {
  21783. width: 50px !important;
  21784. position: absolute;
  21785. height: auto !important;
  21786. z-index: 10;
  21787. right: 25px;
  21788. top: -25px;
  21789. }
  21790. .group_workBox {
  21791. }
  21792. .group_workBox + .group_workBox {
  21793. margin-top: 20px;
  21794. }
  21795. .group_box {
  21796. padding-bottom: 20px;
  21797. border-bottom: 2px solid #f0f0f0;
  21798. margin-top: 10px;
  21799. }
  21800. .group_title {
  21801. display: flex;
  21802. align-items: center;
  21803. justify-content: space-between;
  21804. width: 95%;
  21805. }
  21806. .group_name {
  21807. background-image: url(../assets/icon/groupN.png);
  21808. width: 220px;
  21809. background-size: 100% 100%;
  21810. height: 67px;
  21811. padding: 0 20px 0 43px;
  21812. box-sizing: border-box;
  21813. line-height: 63px;
  21814. color: #fff;
  21815. overflow: hidden;
  21816. white-space: nowrap;
  21817. text-overflow: ellipsis;
  21818. }
  21819. .group_work {
  21820. width: 100%;
  21821. padding: 0 10px;
  21822. box-sizing: border-box;
  21823. display: flex;
  21824. flex-wrap: wrap;
  21825. }
  21826. .g_d_box {
  21827. display: flex;
  21828. flex-flow: wrap;
  21829. justify-content: space-around;
  21830. }
  21831. .g_d_box .isChair {
  21832. background-image: url(../assets/avatar.png) !important;
  21833. }
  21834. .g_d_group {
  21835. width: 500px;
  21836. margin-bottom: 80px;
  21837. }
  21838. .g_d_group_chair {
  21839. display: flex;
  21840. align-items: center;
  21841. justify-content: center;
  21842. }
  21843. .g_d_group_chair > div + div {
  21844. margin-left: 30px;
  21845. }
  21846. .g_d_group_chair > div,
  21847. .g_d_group_chair2 > div {
  21848. display: flex;
  21849. flex-direction: column;
  21850. align-items: center;
  21851. }
  21852. .g_d_group_chair > div > span:nth-child(1),
  21853. .g_d_group_chair2 > div > span:nth-child(1) {
  21854. background-image: url(../assets/icon/chair.png);
  21855. width: 50px;
  21856. height: 50px;
  21857. display: block;
  21858. background-size: 100% 100%;
  21859. }
  21860. .g_d_group_tableBox {
  21861. display: flex;
  21862. align-items: center;
  21863. justify-content: center;
  21864. }
  21865. .g_d_group_chair2 {
  21866. display: flex;
  21867. flex-direction: column;
  21868. align-items: center;
  21869. justify-content: center;
  21870. }
  21871. .g_d_group_chair2 > div + div {
  21872. margin-top: 10px;
  21873. }
  21874. .g_d_group_table {
  21875. background-image: url(../assets/icon/groupBg.png);
  21876. width: 354px;
  21877. height: 196px;
  21878. background-size: 100% 100%;
  21879. display: flex;
  21880. align-items: center;
  21881. justify-content: center;
  21882. flex-direction: column;
  21883. color: #fff;
  21884. }
  21885. .g_d_group_table > div:nth-child(1) {
  21886. font-size: 24px;
  21887. margin-bottom: 5px;
  21888. }
  21889. .g_d_group_table > div:nth-child(2) div {
  21890. cursor: pointer;
  21891. background: #2e77bf;
  21892. padding: 4px 10px;
  21893. border-radius: 5px;
  21894. }
  21895. .groupBox {
  21896. }
  21897. .groupContent + .groupContent {
  21898. margin-top: 30px;
  21899. }
  21900. .groupTitle {
  21901. font-size: 24px;
  21902. color: rgb(80, 80, 80);
  21903. margin-bottom: 20px;
  21904. }
  21905. .groupName {
  21906. display: flex;
  21907. align-items: center;
  21908. }
  21909. .groupn {
  21910. font-size: 15px;
  21911. margin-right: 10px;
  21912. }
  21913. .groupName + .groupName {
  21914. margin-top: 15px;
  21915. }
  21916. .groupBtn {
  21917. margin-left: 10px;
  21918. }
  21919. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21920. text-align: left;
  21921. }
  21922. .g_d_btnBox {
  21923. display: flex;
  21924. justify-content: flex-end;
  21925. align-items: center;
  21926. margin-bottom: 20px;
  21927. }
  21928. .updateChair {
  21929. position: relative;
  21930. }
  21931. .updateChairBtn {
  21932. position: absolute;
  21933. width: 50px;
  21934. height: 50px;
  21935. overflow: hidden;
  21936. /* display: flex; */
  21937. align-items: center;
  21938. justify-content: center;
  21939. background: #00000087;
  21940. color: #fff;
  21941. border-radius: 50px;
  21942. display: none;
  21943. cursor: pointer;
  21944. }
  21945. .updateChair:hover .updateChairBtn {
  21946. display: flex;
  21947. }
  21948. .group_staic_box {
  21949. display: flex;
  21950. padding: 30px 40px 10px;
  21951. flex-wrap: wrap;
  21952. }
  21953. .group_staic {
  21954. /* width: 50%; */
  21955. margin-bottom: 20px;
  21956. display: flex;
  21957. align-items: center;
  21958. }
  21959. .group_staic span:nth-child(1) {
  21960. width: 150px;
  21961. text-align: right;
  21962. margin-right: 15px;
  21963. }
  21964. .group_staic span:nth-child(2) {
  21965. background: rgb(0 123 255);
  21966. color: #fff;
  21967. border-radius: 5px;
  21968. padding: 5px;
  21969. }
  21970. .codeFileBox {
  21971. height: 300px;
  21972. background: #fff;
  21973. display: flex;
  21974. align-items: center;
  21975. justify-content: center;
  21976. }
  21977. .codeFileBox img {
  21978. width: 200px;
  21979. margin: 0;
  21980. height: auto;
  21981. }
  21982. .codeFileBox div {
  21983. background: rgb(80, 142, 226);
  21984. color: #fff;
  21985. padding: 10px 20px;
  21986. border-radius: 25px;
  21987. cursor: pointer;
  21988. margin-left: 15px;
  21989. }
  21990. .radioBox {
  21991. display: flex;
  21992. flex-direction: column;
  21993. flex-wrap: nowrap;
  21994. align-items: flex-start;
  21995. }
  21996. .radioBox > div {
  21997. margin: 10px 0 0 10px;
  21998. }
  21999. /* .radioBox >>> .el-radio__input,
  22000. .radioBox >>> .el-checkbox__inner {
  22001. margin-left: 10px;
  22002. } */
  22003. .radioBox >>> .el-radio__label,
  22004. .radioBox >>> .el-checkbox__label {
  22005. display: flex;
  22006. align-items: center;
  22007. width: 100%;
  22008. }
  22009. .radioBox >>> .el-radio__label > span {
  22010. width: 100%;
  22011. display: -webkit-box;
  22012. overflow: hidden;
  22013. white-space: normal !important;
  22014. text-overflow: ellipsis;
  22015. word-wrap: break-word;
  22016. }
  22017. .inImg {
  22018. width: 100px;
  22019. cursor: pointer;
  22020. }
  22021. .inImg > img {
  22022. width: 100%;
  22023. height: 100%;
  22024. object-fit: cover;
  22025. }
  22026. .timuImgBox {
  22027. margin: 10px 0;
  22028. display: flex;
  22029. flex-direction: column;
  22030. flex-wrap: wrap;
  22031. align-items: flex-start;
  22032. }
  22033. .timuImg {
  22034. width: 150px;
  22035. margin: 5px 0;
  22036. cursor: pointer;
  22037. }
  22038. .timuImg > img {
  22039. width: 100%;
  22040. height: 100%;
  22041. object-fit: cover;
  22042. }
  22043. .worksTop {
  22044. display: flex;
  22045. flex-direction: row;
  22046. align-items: flex-end;
  22047. }
  22048. .worksTitle{
  22049. display: flex;
  22050. flex-direction: row;
  22051. flex-wrap: nowrap;
  22052. align-items: center;
  22053. }
  22054. .worksTitle::before,.worksTop::before{
  22055. content: '';
  22056. display: block;
  22057. width: 3px;
  22058. height: 20px;
  22059. background: #0061FF;
  22060. border-radius: 3px;
  22061. margin: 0 5px 0 0;
  22062. }
  22063. .corOpen {
  22064. margin: 0 0 0 10px;
  22065. font-size: 14px;
  22066. cursor: pointer;
  22067. color: #505050;
  22068. }
  22069. .corOpen:hover {
  22070. color: #499eef;
  22071. }
  22072. .navCorOpenBox {
  22073. display: flex;
  22074. flex-direction: row;
  22075. align-items: center;
  22076. justify-content: space-between;
  22077. height: 55px;
  22078. background: #ffffff;
  22079. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22080. border-radius: 8px 8px 0px 0px;
  22081. z-index: 9;
  22082. position: relative;
  22083. }
  22084. .navCorOpen {
  22085. padding-right: 15px;
  22086. cursor: pointer;
  22087. width: 45px;
  22088. display: flex;
  22089. }
  22090. .navCorOpen > img {
  22091. width: 100%;
  22092. height: 100%;
  22093. }
  22094. .mlImg {
  22095. width: 45px !important;
  22096. min-width: 45px;
  22097. cursor: pointer;
  22098. transform: rotate(180deg);
  22099. }
  22100. .mlImg > img {
  22101. width: 100%;
  22102. height: 100%;
  22103. }
  22104. .navLeftCss {
  22105. width: 100% !important;
  22106. left: 0 !important;
  22107. }
  22108. .isContentCss {
  22109. width: 100% !important;
  22110. }
  22111. .isAllWidth {
  22112. width: 100% !important;
  22113. }
  22114. .group_switch {
  22115. margin-right: 10px;
  22116. height: 30px;
  22117. display: flex;
  22118. align-items: center;
  22119. }
  22120. .group_switch > span {
  22121. margin-right: 5px;
  22122. }
  22123. .fileC_box {
  22124. padding-top: 15px;
  22125. }
  22126. .fileC_box > .fileC_title {
  22127. padding: 10px 5px 14px 11px;
  22128. border-top: 1px solid #cad1dc;
  22129. font-size: 14px;
  22130. font-weight: 400;
  22131. color: #cad1dc;
  22132. width: 88%;
  22133. margin: 0 auto;
  22134. }
  22135. .pl_select_box {
  22136. height: 40px;
  22137. line-height: 40px;
  22138. width: 100%;
  22139. cursor: pointer;
  22140. padding: 0 20px;
  22141. box-sizing: border-box;
  22142. border-radius: 5px;
  22143. border: 1px solid #d6d6d6;
  22144. white-space: nowrap;
  22145. overflow: hidden;
  22146. text-overflow: ellipsis;
  22147. background: #fff;
  22148. text-align: left;
  22149. }
  22150. .newButton {
  22151. width: 102px;
  22152. height: 36px;
  22153. background: #e7ebf1;
  22154. border-radius: 4px;
  22155. color: #0e1e33;
  22156. font-weight: 400;
  22157. font-size: 14px;
  22158. border: none;
  22159. float: right;
  22160. margin-left: 10px;
  22161. }
  22162. .el-table >>> .even_row {
  22163. background-color: #f0f4fa;
  22164. }
  22165. .stageBoxCss,
  22166. .stageBoxIsCss {
  22167. display: flex;
  22168. flex-direction: row;
  22169. flex-wrap: nowrap;
  22170. align-items: center;
  22171. height: 50px;
  22172. border-bottom: 1px solid #e2f5fc;
  22173. cursor: pointer;
  22174. width: 100%;
  22175. }
  22176. .stageBoxIsCss {
  22177. background: #0061ff;
  22178. color: #fff;
  22179. border-radius: 8px;
  22180. }
  22181. .stageItemTitle {
  22182. display: flex;
  22183. flex-direction: row;
  22184. flex-wrap: nowrap;
  22185. align-items: center;
  22186. margin-left: 15px;
  22187. width: calc(100% - 50px);
  22188. }
  22189. .stageNav{
  22190. /* font-weight: bold; */
  22191. }
  22192. .stageItemTitle > div:first-child {
  22193. min-width: 55px;
  22194. }
  22195. .stageItemTitle > div:last-child {
  22196. max-width: 242px;
  22197. white-space: nowrap;
  22198. overflow: hidden;
  22199. text-overflow: ellipsis;
  22200. word-break: break-word;
  22201. width: calc(100% - 55px);
  22202. }
  22203. .closeTri,
  22204. .closeTri1 {
  22205. min-width: 15px;
  22206. width: 15px;
  22207. height: 15px;
  22208. }
  22209. .closeTri1 {
  22210. padding-left: 10px;
  22211. cursor: pointer;
  22212. }
  22213. .closeTri > img,
  22214. .closeTri1 > img {
  22215. width: 100%;
  22216. height: 100%;
  22217. }
  22218. .noToolBlue {
  22219. min-width: 10px;
  22220. width: 10px;
  22221. height: 10px;
  22222. background: #0061ff;
  22223. border-radius: 50%;
  22224. margin-left: 13px;
  22225. }
  22226. .stageChild,
  22227. .toolChild {
  22228. height: 0;
  22229. overflow: hidden;
  22230. transition: all 0.5s;
  22231. }
  22232. .toolChild {
  22233. margin: 0 0 0 17px;
  22234. padding: 0 0 0 20px;
  22235. border-left: 1px solid #d7d7d7;
  22236. }
  22237. .gjCss {
  22238. display: flex;
  22239. flex-direction: row;
  22240. flex-wrap: nowrap;
  22241. align-items: center;
  22242. padding: 15px 0;
  22243. box-sizing: border-box;
  22244. font-size: 14px;
  22245. cursor: pointer;
  22246. }
  22247. .toolChild > div {
  22248. position: relative;
  22249. }
  22250. .toolChild > div::before {
  22251. content: "";
  22252. width: 15px;
  22253. height: 1px;
  22254. background: #cad1dc;
  22255. position: absolute;
  22256. top: 24px;
  22257. left: -20px;
  22258. display: block;
  22259. }
  22260. .isGjCss {
  22261. color: #0061ff;
  22262. }
  22263. .navItem {
  22264. background: #ffffff;
  22265. border-radius: 4px;
  22266. width: 100%;
  22267. margin: 10px auto;
  22268. position: relative;
  22269. height: 40px;
  22270. display: flex;
  22271. flex-direction: row;
  22272. flex-wrap: nowrap;
  22273. align-items: center;
  22274. }
  22275. .navItemList {
  22276. display: flex;
  22277. flex-direction: row;
  22278. flex-wrap: nowrap;
  22279. align-items: center;
  22280. padding: 0 13px;
  22281. cursor: pointer;
  22282. width: calc(100% - 60px);
  22283. height: 100%;
  22284. }
  22285. .navItemList > div:first-child {
  22286. min-width: 60px;
  22287. }
  22288. .navItemList > div:last-child {
  22289. width: calc(100% - 80px);
  22290. white-space: nowrap;
  22291. overflow: hidden;
  22292. text-overflow: ellipsis;
  22293. word-break: break-word;
  22294. }
  22295. /* .isItemList > div {
  22296. color: #fff !important;
  22297. } */
  22298. .tool_work_box {
  22299. width: 100%;
  22300. padding: 0 37px 0;
  22301. box-sizing: border-box;
  22302. }
  22303. .tool_box {
  22304. width: 100%;
  22305. padding: 0 0 0 20px;
  22306. }
  22307. .tool_type_box {
  22308. display: flex;
  22309. flex-direction: row;
  22310. align-items: baseline;
  22311. flex-wrap: nowrap;
  22312. justify-content: flex-start;
  22313. position: relative;
  22314. }
  22315. .toolSort {
  22316. display: flex;
  22317. flex-direction: row;
  22318. flex-wrap: wrap;
  22319. justify-content: flex-start;
  22320. align-items: flex-start;
  22321. padding: 0 0 15px 0;
  22322. }
  22323. .toolSort > div {
  22324. margin: 0 10px 0 0;
  22325. width: 135px;
  22326. box-sizing: border-box;
  22327. border: 2px solid transparent;
  22328. }
  22329. .tools {
  22330. width: 100%;
  22331. display: flex;
  22332. flex-direction: column;
  22333. flex-wrap: nowrap;
  22334. align-items: flex-start;
  22335. }
  22336. .whiteBIcon {
  22337. width: fit-content;
  22338. cursor: pointer;
  22339. display: flex;
  22340. flex-direction: column;
  22341. flex-wrap: nowrap;
  22342. align-items: center;
  22343. font-size: 14px;
  22344. }
  22345. .tool:hover {
  22346. border: 2px solid #a5c7ff;
  22347. border-radius: 5px;
  22348. }
  22349. .whiteBIcon > img {
  22350. width: 65px;
  22351. height: 100%;
  22352. }
  22353. .whiteBIcon > img {
  22354. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22355. border-radius: 15px;
  22356. }
  22357. .check {
  22358. /* width: 20px;
  22359. height: 20px; */
  22360. cursor: pointer;
  22361. margin: 10px 0;
  22362. position: absolute;
  22363. right: 2px;
  22364. top: -5px;
  22365. }
  22366. .noChoose,
  22367. .isChoose {
  22368. width: 15px;
  22369. height: 15px;
  22370. border-radius: 50%;
  22371. border: 1px solid #adadad;
  22372. }
  22373. .isChoose {
  22374. border: 4px solid #0363ff !important;
  22375. width: 10px;
  22376. height: 10px;
  22377. }
  22378. .isToolChoose {
  22379. border: 2px solid #5394ff !important;
  22380. border-radius: 5px;
  22381. box-shadow: 0 0 6px 0px #5394ff;
  22382. }
  22383. .checkDiv {
  22384. display: flex;
  22385. align-items: center;
  22386. }
  22387. .checkDiv span {
  22388. margin-left: 5px;
  22389. color: #858585;
  22390. }
  22391. .check img {
  22392. width: 20px;
  22393. height: 20px;
  22394. }
  22395. .lockTaskIcon {
  22396. width: 20px;
  22397. height: 20px;
  22398. position: absolute;
  22399. right: 10px;
  22400. top: 5px;
  22401. }
  22402. .lockTaskIcon > img {
  22403. width: 100%;
  22404. height: 100%;
  22405. }
  22406. .pick_box {
  22407. display: flex;
  22408. align-items: flex-start;
  22409. flex-wrap: wrap;
  22410. }
  22411. .selectBox {
  22412. width: 110px;
  22413. margin-left: 10px;
  22414. margin: 0 10px 0 auto;
  22415. }
  22416. .selectBox >>> .el-input__inner {
  22417. height: 30px;
  22418. line-height: 30px;
  22419. }
  22420. .selectBox >>> .el-input__icon {
  22421. line-height: 30px;
  22422. }
  22423. .sentenceTitle {
  22424. display: flex;
  22425. flex-direction: row;
  22426. flex-wrap: nowrap;
  22427. align-items: center;
  22428. }
  22429. .sentenceTitle::before {
  22430. content: attr(index);
  22431. background: #3681fc;
  22432. border-radius: 50%;
  22433. color: #fff;
  22434. width: 25px;
  22435. height: 25px;
  22436. min-width: 25px;
  22437. min-height: 25px;
  22438. text-align: center;
  22439. line-height: 25px;
  22440. margin-right: 5px;
  22441. }
  22442. .hfBox {
  22443. padding: 10px;
  22444. box-sizing: border-box;
  22445. }
  22446. .whoReplyWho {
  22447. display: flex;
  22448. flex-direction: row;
  22449. flex-wrap: nowrap;
  22450. align-items: baseline;
  22451. justify-content: flex-start;
  22452. }
  22453. .hfBottom {
  22454. display: flex;
  22455. flex-direction: row;
  22456. flex-wrap: nowrap;
  22457. align-items: center;
  22458. justify-content: space-between;
  22459. font-size: 14px;
  22460. }
  22461. .deleteHfItem {
  22462. cursor: pointer;
  22463. width: 20px;
  22464. height: 20px;
  22465. }
  22466. .deleteHfItem > img {
  22467. width: 100%;
  22468. height: 100%;
  22469. }
  22470. .whoReplyWho > .hfImg {
  22471. width: 12px;
  22472. height: 12px;
  22473. margin: 0 5px;
  22474. }
  22475. .whoReplyWho > .hfImg > img {
  22476. width: 100%;
  22477. height: 100%;
  22478. }
  22479. .hfContent {
  22480. padding-top: 10px;
  22481. box-sizing: border-box;
  22482. display: -webkit-box;
  22483. overflow: hidden;
  22484. white-space: normal !important;
  22485. text-overflow: ellipsis;
  22486. word-wrap: break-word;
  22487. -webkit-box-orient: vertical;
  22488. }
  22489. .hfTime {
  22490. text-align: left;
  22491. box-sizing: border-box;
  22492. padding: 10px 0 10px 0px;
  22493. color: #bfbfbf;
  22494. font-size: 14px;
  22495. }
  22496. .btnAllNT {
  22497. position: fixed;
  22498. bottom: 100px;
  22499. right: 40px;
  22500. z-index: 999;
  22501. display: flex;
  22502. flex-direction: row;
  22503. }
  22504. .btnAllNT > img {
  22505. cursor: pointer;
  22506. width: 80px;
  22507. }
  22508. .toolMask {
  22509. position: fixed;
  22510. width: 100%;
  22511. height: 100%;
  22512. background: #3f3c3c;
  22513. opacity: 0.5;
  22514. top: 0;
  22515. left: 0;
  22516. z-index: 999;
  22517. }
  22518. .addToolCss {
  22519. position: fixed;
  22520. z-index: 999;
  22521. background: #fff;
  22522. right: 5%;
  22523. bottom: 18%;
  22524. min-width: 1035px;
  22525. min-height: 300px;
  22526. border-radius: 10px;
  22527. box-shadow: 0 0 8px 1px #b2b2b2;
  22528. }
  22529. .toolTop {
  22530. display: flex;
  22531. flex-direction: row;
  22532. flex-wrap: nowrap;
  22533. justify-content: space-between;
  22534. align-items: center;
  22535. padding: 20px;
  22536. }
  22537. .toolTop > div:nth-child(2) {
  22538. width: 15px;
  22539. height: 15px;
  22540. padding-right: 10px;
  22541. cursor: pointer;
  22542. }
  22543. .toolTop > div:nth-child(2) > img {
  22544. width: 100%;
  22545. height: 100%;
  22546. }
  22547. .fullStyle>>>.el-dialog__body {
  22548. height: calc(100% - 125px) !important;
  22549. box-sizing: border-box;
  22550. padding: 30px 0 !important;
  22551. background: #fff !important;
  22552. }
  22553. .fullStyle>>>.el-dialog {
  22554. width: 100% !important;
  22555. max-width: 100% !important;
  22556. height: 100% !important;
  22557. margin: 0 !important;
  22558. }
  22559. .fullStyle {
  22560. width: 100% !important;
  22561. max-width: 100% !important;
  22562. height: 100% !important;
  22563. margin: 0 auto !important;
  22564. }
  22565. .fullStyle>>>.el-dialog__footer{
  22566. background: #fff !important;
  22567. }
  22568. .engUpBox {
  22569. width: 100%;
  22570. height: 100%;
  22571. }
  22572. .engTitle,
  22573. .engText {
  22574. display: flex;
  22575. flex-direction: row;
  22576. flex-wrap: nowrap;
  22577. align-items: flex-start;
  22578. padding: 0 20px 20px 20px;
  22579. box-sizing: border-box;
  22580. }
  22581. .engTitle > .div:first-child,
  22582. .engText > div:first-child {
  22583. min-width: 75px;
  22584. }
  22585. .correctBox{
  22586. width: 100%;
  22587. display: flex;
  22588. flex-direction: row;
  22589. flex-wrap: nowrap;
  22590. align-items: flex-start;
  22591. }
  22592. .oldBox{
  22593. width: 50%;
  22594. height: 100%;
  22595. display: flex;
  22596. flex-direction: column;
  22597. flex-wrap: nowrap;
  22598. align-items: center;
  22599. border-top: 1px solid #d9d9d9;
  22600. border-left: 1px solid #d9d9d9;
  22601. border-right: 1px solid #d9d9d9;
  22602. }
  22603. .oldBox>div:first-child{
  22604. width: 100%;
  22605. text-align: center;
  22606. background: #d9d9d9;
  22607. height: 35px;
  22608. line-height: 35px;
  22609. font-weight: bold;
  22610. }
  22611. .oldText{
  22612. width: 100%;
  22613. height: 100%;
  22614. display: flex;
  22615. flex-direction: column;
  22616. flex-wrap: nowrap;
  22617. align-content: center;
  22618. justify-content: center;
  22619. align-items: center;
  22620. }
  22621. .detailBox{
  22622. width: 50%;
  22623. padding: 10px;
  22624. background: #f6f6f6;
  22625. border-radius: 5px;
  22626. }
  22627. .oldDetail,.oldDetail1{
  22628. padding-bottom: 30px;
  22629. }
  22630. .oldDetail1>div:last-child{
  22631. max-height: 200px;
  22632. overflow: auto;
  22633. }
  22634. .oldImg{
  22635. width:30px;
  22636. height: 30px;
  22637. }
  22638. .oldImg>img{
  22639. width: 100%;
  22640. height: 100%;
  22641. }
  22642. .allName{
  22643. min-width: 200px;
  22644. white-space: nowrap;
  22645. overflow: hidden;
  22646. text-overflow: ellipsis;
  22647. word-break: break-word;
  22648. cursor: pointer;
  22649. text-align: center;
  22650. border: 1px solid #bcc2cc;
  22651. box-sizing: border-box;
  22652. }
  22653. .engUpTop{
  22654. max-height: 300px;
  22655. overflow: auto;
  22656. }
  22657. </style>