studyStudent.vue 759 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305
  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. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div>
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div class="courseTitle">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 15px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="nav.isOpen"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img src="../../assets/icon/newIcons/bDown.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img src="../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. </div>
  168. <div
  169. v-if="nav.tool[0].tool != undefined"
  170. class="toolChild"
  171. :class="{ toolActive: nav.isOpen }"
  172. >
  173. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  174. <div
  175. class="gjCss"
  176. :class="{
  177. isGjCss: t.isTool,
  178. }"
  179. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  180. >
  181. <div>工具{{ toolIndex2 + 1 }}:</div>
  182. <div v-if="t.tool == 58">模拟驾驶</div>
  183. <div v-if="t.tool == 59">路径搜索</div>
  184. <div v-if="t.tool == 60">深度学习</div>
  185. <div v-if="t.tool == 10">倒计时</div>
  186. <div v-if="t.tool == 65">挑人</div>
  187. <div v-if="t.tool == 7">思维网格</div>
  188. <div v-if="t.tool == 1">电子白板</div>
  189. <div v-if="t.tool == 52">文档</div>
  190. <div v-if="t.tool == 3">思维导图</div>
  191. <div v-if="t.tool == 48">表格</div>
  192. <div v-if="t.tool == 49">学生分组</div>
  193. <div v-if="t.tool == 4">问卷调查</div>
  194. <div v-if="t.tool == 45">选择题</div>
  195. <div v-if="t.tool == 15">问答</div>
  196. <div v-if="t.tool == 16">作业提交</div>
  197. <div v-if="t.tool == 50">批量上传</div>
  198. <div v-if="t.tool == 41">选择匹配</div>
  199. <div v-if="t.tool == 47">排序</div>
  200. <div v-if="t.tool == 40">个人评价</div>
  201. <div v-if="t.tool == 18">训练平台</div>
  202. <div v-if="t.tool == 21">AIoT Blockly</div>
  203. <div v-if="t.tool == 23">AI Python</div>
  204. <div v-if="t.tool == 24">AI Blockly</div>
  205. <div v-if="t.tool == 32">源码编辑</div>
  206. <div v-if="t.tool == 57">CocoPi</div>
  207. <div v-if="t.tool == 63">海龟编程</div>
  208. <div v-if="t.tool == 28">翻译</div>
  209. <div v-if="t.tool == 31">数字画板</div>
  210. <div v-if="t.tool == 39">GeoGebra</div>
  211. <div v-if="t.tool == 66">公式编辑</div>
  212. <div v-if="t.tool == 67">分子结构</div>
  213. <div v-if="t.tool == 68">时间轴</div>
  214. <div v-if="t.tool == 69">英语写作</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  227. <div class="new_topFixed"></div>
  228. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  229. <div class="courseIndex">
  230. <div>任务{{ taskCount + 1 }}</div>
  231. <el-tooltip
  232. effect="light"
  233. :content="
  234. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  235. "
  236. placement="top"
  237. >
  238. <div>
  239. {{
  240. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  241. .task
  242. }}
  243. </div>
  244. </el-tooltip>
  245. </div>
  246. <div class="btnAll">
  247. <div class="btnLeft">
  248. <el-tooltip effect="light" content="刷新" placement="top">
  249. <div class="reBtnIcon" @click="refreshCourse">
  250. <span>刷新</span>
  251. </div>
  252. </el-tooltip>
  253. <el-tooltip effect="light" content="评论" placement="top">
  254. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  255. <span>评论</span>
  256. </div>
  257. </el-tooltip>
  258. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  259. <el-tooltip effect="light" content="录制" placement="top">
  260. <div class="vedioIcon" @click="startRecording">
  261. <span>录制</span>
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div v-else-if="tType == 1 || tType == 4">
  266. <el-tooltip effect="light" content="下载" placement="top">
  267. <div class="vedioIcon1" @click="stopRecording">
  268. <span>下载</span>
  269. </div>
  270. </el-tooltip>
  271. </div>
  272. </div>
  273. <div class="btnRight">
  274. <div
  275. class="last"
  276. @click="nextOrpreSteps(0)"
  277. v-if="!(IsFollow && tType == 2)"
  278. @mouseover="isHovered = true"
  279. @mouseout="isHovered = false"
  280. >
  281. <div class="lastImg">
  282. <img
  283. :src="
  284. isHovered
  285. ? require('../../assets/icon/newIcons/whiteLast.png')
  286. : require('../../assets/icon/newIcons/last.png')
  287. "
  288. alt=""
  289. />
  290. </div>
  291. <div class="lastText">上一步</div>
  292. </div>
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(1)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered1 = true"
  298. @mouseout="isHovered1 = false"
  299. >
  300. <div class="lastText">下一步</div>
  301. <div class="lastImg">
  302. <img
  303. :src="
  304. isHovered1
  305. ? require('../../assets/icon/newIcons/whiteNext.png')
  306. : require('../../assets/icon/newIcons/next.png')
  307. "
  308. alt=""
  309. />
  310. </div>
  311. </div>
  312. <!-- <div
  313. class="last"
  314. @click="juriVisible = true"
  315. v-if="tType == 1"
  316. @mouseover="isHovered2 = true"
  317. @mouseout="isHovered2 = false"
  318. >
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered2
  323. ? require('../../assets/icon/newIcons/whiteLock.png')
  324. : require('../../assets/icon/newIcons/lock.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. <div class="lastText">权限</div>
  330. </div> -->
  331. <div
  332. class="returnBtn1 returnIcon"
  333. @click.stop="
  334. goTo(
  335. '/courseDetail?userid=' +
  336. userid +
  337. '&oid=' +
  338. oid +
  339. '&org=' +
  340. org +
  341. '&cid=' +
  342. classId +
  343. '&courseId=' +
  344. id +
  345. '&tType=' +
  346. tType +
  347. '&screenType=' +
  348. screenType
  349. )
  350. "
  351. >
  352. <div class="lastImg">
  353. <img src="../../assets/icon/newIcon/return.png" alt="" />
  354. </div>
  355. <div class="lastText" style="color: #000">返回</div>
  356. </div>
  357. </div>
  358. <!-- <div
  359. class="returnBtn lockIcon"
  360. @click="juriVisible = true"
  361. v-if="tType == 1"
  362. >
  363. 权限
  364. </div>
  365. <div
  366. class="returnBtn vedioIcon"
  367. @click="startRecording"
  368. v-if="!videoStart && (tType == 1 || tType == 4)"
  369. >
  370. 录制
  371. </div>
  372. <div
  373. class="returnBtn"
  374. @click="stopRecording"
  375. v-else-if="tType == 1 || tType == 4"
  376. style="background: #ee5255"
  377. >
  378. 下载
  379. </div>
  380. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  381. 评论
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="nextOrpreSteps(0)"
  386. v-if="!(IsFollow && tType == 2)"
  387. >
  388. 上一步
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="nextOrpreSteps(1)"
  393. v-if="!(IsFollow && tType == 2)"
  394. >
  395. 下一步
  396. </div>
  397. <div class="returnBtn" @click="refreshCourse">刷新</div>
  398. <div
  399. class="returnBtn returnIcon"
  400. @click.stop="
  401. goTo(
  402. '/courseDetail?userid=' +
  403. userid +
  404. '&oid=' +
  405. oid +
  406. '&org=' +
  407. org +
  408. '&cid=' +
  409. classId +
  410. '&courseId=' +
  411. id +
  412. '&tType=' +
  413. tType +
  414. '&screenType=' +
  415. screenType
  416. )
  417. "
  418. >
  419. 返回
  420. </div> -->
  421. </div>
  422. </div>
  423. <div
  424. class="isNoMessage"
  425. v-if="
  426. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .chapterData.length == 0 &&
  428. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  429. .toolChoose[0].tool.length == 0 &&
  430. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  431. .taskDetail == '' &&
  432. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .eList &&
  434. !(
  435. courseDetail.userid == userid ||
  436. (courseDetail.course_teacher &&
  437. courseDetail.course_teacher.indexOf(userid) != -1)
  438. )
  439. "
  440. >
  441. <img src="../../assets/icon/isNoMessage.png" alt />
  442. </div>
  443. <div class="study_top" :class="{ pzClass: pzDialog }">
  444. <div
  445. class="vedioBox"
  446. v-if="
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail != '' ||
  449. vChapterData[0].length > 0 ||
  450. fileC[0].length > 0
  451. "
  452. style="border-radius: 0 0 20px 20px"
  453. >
  454. <div
  455. class="taskBox"
  456. v-if="
  457. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  458. .taskDetail != ''
  459. "
  460. >
  461. <div
  462. style="
  463. display: flex;
  464. flex-wrap: nowrap;
  465. flex-direction: column;
  466. position: relative;
  467. "
  468. >
  469. <div
  470. style="
  471. padding: 15px 0;
  472. line-height: 29px;
  473. font-size: 18px;
  474. color: #0e1e33;
  475. "
  476. class="cont"
  477. v-if="
  478. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  479. .taskDetail != ''
  480. "
  481. v-html="
  482. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  483. .taskDetail
  484. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  485. taskCount
  486. ].taskDetail
  487. : '暂无描述'
  488. "
  489. ></div>
  490. </div>
  491. </div>
  492. <div
  493. class="student_head"
  494. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  495. >
  496. <div class="vedioTaskBox">
  497. <div
  498. :class="
  499. contentDialog == false
  500. ? 'box_course isContentCss'
  501. : 'box_course'
  502. "
  503. v-if="
  504. vChapterData.length > 0 &&
  505. vChapterData[0] &&
  506. showType !== ''
  507. "
  508. >
  509. <div class="wheel" style="height: auto" v-if="showType === 0">
  510. <div
  511. class="workd_media"
  512. style="height: 650px; width: calc(100% - 50px)"
  513. >
  514. <video-player
  515. class="video-player vjs-custom-skin"
  516. :class="contentDialog == false ? 'isAllWidth' : ''"
  517. :playsinline="true"
  518. :options="playerO[0]"
  519. @play="onPlayerPlay($event)"
  520. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  521. ></video-player>
  522. </div>
  523. </div>
  524. <div
  525. class="wheel"
  526. v-if="showType == 1"
  527. style="
  528. box-shadow: 0 0 6px 1px #f2f2f2;
  529. width: 95%;
  530. margin: 0 auto;
  531. background: #f1f1f1;
  532. "
  533. >
  534. <div class="title">查看文档</div>
  535. <el-form class="textBox">
  536. <el-form-item class="textTitle">
  537. <div style="font-size: 22px">
  538. {{ text.name }}
  539. </div>
  540. </el-form-item>
  541. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  542. <div v-html="text.url" class="textContent cont"></div>
  543. </el-form>
  544. </div>
  545. <div
  546. class="wheel"
  547. v-if="
  548. pptImgUrl1.indexOf(
  549. 'https://view.officeapps.live.com/op/view.aspx?src='
  550. ) != -1 && showType == 2
  551. "
  552. style="width: 95%; margin: 0 auto"
  553. >
  554. <iframe
  555. style="width: 100%; height: 100%; border: none"
  556. :src="pptImgUrl1"
  557. ></iframe>
  558. </div>
  559. <div
  560. class="wheel"
  561. v-else-if="showType == 2"
  562. style="width: 95%; margin: 0 auto"
  563. >
  564. <iframe
  565. style="width: 100%; height: 100%; border: none"
  566. security="restricted"
  567. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  568. :src="pptImgUrl1"
  569. ></iframe>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-if="showType == 3"
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <pdf
  577. :pdfUrl="pptImgUrl1"
  578. style="width: 100%; height: 100%; overflow: auto"
  579. ></pdf>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 4"
  584. style="width: 95%; margin: 0 auto"
  585. >
  586. <el-image
  587. :src="pptImgUrl1"
  588. fit="contain"
  589. style="width: 100%; height: 100%; cursor: pointer"
  590. @click="previewImg(pptImgUrl1)"
  591. ></el-image>
  592. </div>
  593. </div>
  594. <div
  595. class="pButton"
  596. style="position: absolute; right: 20px; top: 0; z-index: 998"
  597. v-if="!contentDialog"
  598. @click="setContent(true)"
  599. >
  600. <!-- 批 -->
  601. <img
  602. src="../../assets/icon/newIcons/isLeft.png"
  603. style="width: 45px"
  604. alt=""
  605. />
  606. </div>
  607. <div
  608. v-if="contentDialog == true"
  609. :style="{
  610. width:
  611. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  612. showType === ''
  613. ? 'calc(100%)'
  614. : '300px',
  615. margin:
  616. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  617. showType === ''
  618. ? '0 15px'
  619. : '0 15px 0 0',
  620. }"
  621. >
  622. <div
  623. class="vedioList"
  624. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  625. style="height: 650px"
  626. >
  627. <div class="navCorOpenBox">
  628. <div class="navTitile">内容列表:</div>
  629. <div class="navCorOpen" @click="setContent(false)">
  630. <img
  631. src="../../assets/icon/newIcons/isRight.png"
  632. alt=""
  633. />
  634. </div>
  635. </div>
  636. <div class="navBox">
  637. <div
  638. v-show="
  639. vChapterData[0].length > 0 || fileC[0].length > 0
  640. "
  641. style="padding: 10px 0 25px 0"
  642. >
  643. <div
  644. class="vedioTimeBox"
  645. v-for="(vitem, vindex) in vChapterData[0]"
  646. :key="vindex + '1'"
  647. >
  648. <div class="navListItem" v-if="vitem.type == 2">
  649. <div
  650. @click="lookVedio(vitem.url, vindex)"
  651. class="navText"
  652. :class="isClickNav == vindex ? 'isClickNav' : ''"
  653. >
  654. <span v-if="vitem.text">{{ vitem.text }}-</span
  655. >{{ vitem.name }}
  656. </div>
  657. <div class="downIcon" @click="downloadFile2(vitem)">
  658. <img
  659. src="../../assets/icon/newIcon/down.png"
  660. alt
  661. />
  662. </div>
  663. </div>
  664. <div class="navListItem" v-if="vitem.type == 6">
  665. <div
  666. @click="lookText(0, vindex)"
  667. class="navText"
  668. :class="isClickNav == vindex ? 'isClickNav' : ''"
  669. >
  670. {{ vitem.name }}.doc
  671. </div>
  672. <div
  673. class="downIcon"
  674. @click="checkFileFull1(vitem.type, vitem)"
  675. >
  676. <img
  677. src="../../assets/icon/newIcon/allScreen.png"
  678. alt
  679. />
  680. </div>
  681. </div>
  682. <div
  683. class="navListItem"
  684. v-if="vitem.type == 8 || vitem.type == 14"
  685. >
  686. <div
  687. @click="doUrl(vitem.url, vindex)"
  688. class="navText"
  689. :class="isClickNav == vindex ? 'isClickNav' : ''"
  690. >
  691. {{ vitem.title ? vitem.title : vitem.url }}
  692. </div>
  693. <div
  694. class="downIcon"
  695. @click="checkFileFull1(vitem.type, vitem)"
  696. >
  697. <img
  698. src="../../assets/icon/newIcon/allScreen.png"
  699. alt
  700. />
  701. </div>
  702. </div>
  703. <div class="navListItem" v-if="vitem.type == 3">
  704. <div
  705. @click="downFile(vitem, vindex)"
  706. class="navText"
  707. :class="isClickNav == vindex ? 'isClickNav' : ''"
  708. >
  709. <span v-if="vitem.text">{{ vitem.text }}-</span
  710. >{{ vitem.name }}
  711. </div>
  712. <div class="downIcon" @click="downloadFile2(vitem)">
  713. <img
  714. src="../../assets/icon/newIcon/down.png"
  715. alt
  716. />
  717. </div>
  718. <div
  719. class="downIcon"
  720. @click="checkFileFull1(vitem.type, vitem)"
  721. >
  722. <img
  723. src="../../assets/icon/newIcon/allScreen.png"
  724. alt
  725. />
  726. </div>
  727. </div>
  728. <div class="navListItem" v-if="vitem.type == 12">
  729. <div class="navText" @click="downloadFile2(vitem)">
  730. <span v-if="vitem.text">{{ vitem.text }}-</span
  731. >{{ vitem.name }}
  732. </div>
  733. <div class="downIcon" @click="downloadFile2(vitem)">
  734. <img
  735. src="../../assets/icon/newIcon/down.png"
  736. alt
  737. />
  738. </div>
  739. <div
  740. class="downIcon"
  741. @click="checkFileFull1(vitem.type, vitem)"
  742. >
  743. <img
  744. src="../../assets/icon/newIcon/allScreen.png"
  745. alt
  746. />
  747. </div>
  748. </div>
  749. <div class="navListItem" v-if="vitem.type == 13">
  750. <div
  751. class="navText"
  752. @click="checkPhoto(vitem, vindex)"
  753. :class="isClickNav == vindex ? 'isClickNav' : ''"
  754. >
  755. {{ vitem.name }}
  756. </div>
  757. <div class="downIcon" @click="downloadFile2(vitem)">
  758. <img
  759. src="../../assets/icon/newIcon/down.png"
  760. alt
  761. />
  762. </div>
  763. </div>
  764. </div>
  765. <div class="fileC_box" v-if="fileC[0].length > 0">
  766. <div class="fileC_title">以下文件不支持预览</div>
  767. <div
  768. class="vedioTimeBox"
  769. v-for="(vitem, vindex) in fileC[0]"
  770. :key="vindex + '1'"
  771. >
  772. <div class="navListItem" v-if="vitem.type == 12">
  773. <div class="navText" style="color: #acb4bf">
  774. <span v-if="vitem.text">{{ vitem.text }}-</span
  775. >{{ vitem.name }}
  776. </div>
  777. <div
  778. class="downIcon"
  779. @click="downloadFile2(vitem)"
  780. >
  781. <img
  782. src="../../assets/icon/newIcon/down.png"
  783. alt
  784. />
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. </div>
  790. </div>
  791. </div>
  792. </div>
  793. </div>
  794. <div style="width: calc(100% - 315px)">
  795. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  796. <!-- <el-button
  797. type="primary"
  798. class="newButton"
  799. @click="checkFileFull(showType, pptImgUrl1)"
  800. >全屏查看</el-button
  801. >
  802. <el-button
  803. type="primary"
  804. class="newButton"
  805. @click="downloadFile(pptImgUrl1)"
  806. v-if="showType != 2"
  807. >文件下载</el-button
  808. > -->
  809. <el-button
  810. v-if="
  811. showType == 2 &&
  812. pptImgUrl1.indexOf(
  813. 'https://view.officeapps.live.com/op/view.aspx?src='
  814. ) == -1
  815. "
  816. type="primary"
  817. class="newButton"
  818. @click="openLine(pptImgUrl1)"
  819. >打开链接
  820. </el-button>
  821. </div>
  822. <!-- <div
  823. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  824. v-if="showType == 1"
  825. >
  826. <el-button
  827. type="primary"
  828. class="newButton"
  829. @click="checkFileFull(showType, text)"
  830. >全屏查看</el-button
  831. >
  832. </div> -->
  833. </div>
  834. </div>
  835. </div>
  836. <div class="student_body" v-resize="resize">
  837. <div
  838. class="vedioBox"
  839. :style="{
  840. borderRadius:
  841. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  842. .taskDetail == '' &&
  843. vChapterData[taskCount].length == 0 &&
  844. fileC[taskCount].length == 0
  845. ? '0 0 20px 20px'
  846. : '20px',
  847. }"
  848. v-if="
  849. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  850. .toolChoose[0].tool &&
  851. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  852. .toolChoose[0].tool.length > 0
  853. "
  854. >
  855. <div
  856. class="toolHeng2"
  857. style="position: relative"
  858. v-if="
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool &&
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool.length &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div class="workNav">工作区</div>
  868. <div
  869. class="filebox"
  870. style="flex-wrap: nowrap"
  871. v-for="(tool, toolIndex) in chapInfoList[courseType]
  872. .chapterInfo[0].taskJson[taskCount].toolChoose"
  873. :key="toolIndex"
  874. >
  875. <div class="bzBox">
  876. <div class="yCss"></div>
  877. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  878. 步骤{{ toolIndex + 1 }}
  879. </div>
  880. <div
  881. v-if="timeWorkList[toolIndex].length > 0"
  882. style="margin: 0 0 0 10px"
  883. >
  884. {{
  885. timeWorkList[toolIndex][0].time
  886. ? "时间:" + timeWorkList[toolIndex][0].time
  887. : ""
  888. }}
  889. </div>
  890. </div>
  891. <div class="toolBox">
  892. <div>
  893. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  894. :key="indexTool"-->
  895. <!-- <div class="iframeBox">
  896. <div
  897. class="addPoint isBorder"
  898. v-for="(tooC, toolCIndex) in tool.tool"
  899. :key="toolCIndex"
  900. >
  901. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  902. <div
  903. class="iframeName"
  904. >
  905. 电子白板
  906. </div>
  907. <iframe
  908. src="https://iwb.cocorobo.cn/"
  909. ref="whiteBoard"
  910. ></iframe>
  911. </div>
  912. </div>
  913. </div>-->
  914. <div class="noiframeBox">
  915. <div
  916. class="addPoint"
  917. v-for="(tooC, toolCIndex) in tool.tool"
  918. :key="toolCIndex"
  919. >
  920. <div v-if="tooC == 1">
  921. <img
  922. src="../../assets/icon/secondToolList/whiteBoard.png"
  923. alt
  924. @click="addTools(tooC, toolIndex, taskCount)"
  925. />
  926. <div style="margin: 5px 0">电子白板</div>
  927. </div>
  928. <div v-if="tooC == 3">
  929. <img
  930. src="../../assets/icon/secondToolList/mindMapping.png"
  931. alt
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. />
  934. <div style="margin: 5px 0">思维导图</div>
  935. </div>
  936. <div v-if="tooC == 6">
  937. <img
  938. src="../../assets/icon/secondToolList/doc.png"
  939. alt
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. />
  942. <div style="margin: 5px 0">协同文档</div>
  943. </div>
  944. <div v-if="tooC == 7">
  945. <img
  946. src="../../assets/icon/secondToolList/mindNetwork.png"
  947. alt
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. />
  950. <div style="margin: 5px 0">思维网格</div>
  951. </div>
  952. <div v-if="tooC == 8">
  953. <img
  954. src="../../assets/icon/secondToolList/library.png"
  955. alt
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. />
  958. <div style="margin: 5px 0">素材库</div>
  959. </div>
  960. <div v-if="tooC == 17">
  961. <img
  962. src="../../assets/icon/secondToolList/library.png"
  963. alt
  964. @click="addTools(tooC, toolIndex, taskCount)"
  965. />
  966. <div style="margin: 5px 0">学习资料</div>
  967. </div>
  968. <div v-if="tooC == 2">
  969. <img
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. src="../../assets/icon/secondToolList/note.png"
  972. alt
  973. />
  974. <div style="margin: 5px 0">便签</div>
  975. </div>
  976. <div v-if="tooC == 4">
  977. <img
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. src="../../assets/icon/thirdToolList/ask.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">问卷调查</div>
  983. </div>
  984. <div v-if="tooC == 45">
  985. <img
  986. @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../../assets/icon/thirdToolList/choose.png"
  988. alt
  989. />
  990. <div style="margin: 5px 0">选择题</div>
  991. </div>
  992. <!-- <div v-if="tooC == 5">
  993. <img
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. src="../../assets/icon/thirdToolList/score.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">量规评分</div>
  999. </div> -->
  1000. <div v-if="tooC == 10">
  1001. <img
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. src="../../assets/icon/thirdToolList/time.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">倒计时</div>
  1007. </div>
  1008. <div v-if="tooC == 15">
  1009. <img
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. src="../../assets/icon/thirdToolList/answer.png"
  1012. alt
  1013. />
  1014. <div style="margin: 5px 0">问答</div>
  1015. </div>
  1016. <div v-if="tooC == 26">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../../assets/icon/thirdToolList/courseDesign.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">课程设计</div>
  1023. </div>
  1024. <div v-if="tooC == 18">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">训练服务器</div>
  1031. </div>
  1032. <div v-if="tooC == 16">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../../assets/icon/thirdToolList/work.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">作业提交</div>
  1039. </div>
  1040. <div v-if="tooC == 50">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../../assets/icon/thirdToolList/plwork.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">批量上传</div>
  1047. </div>
  1048. <div v-if="tooC == 21">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../../assets/icon/fourthToolList/program.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">AIoT Blockly</div>
  1055. </div>
  1056. <!-- <div v-if="tooC == 22">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../../assets/icon/fourthToolList/program.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">AI体验</div>
  1063. </div> -->
  1064. <div v-if="tooC == 23">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">AI Python</div>
  1071. </div>
  1072. <div v-if="tooC == 24">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/fourthToolList/AIprogram.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">AI Blockly</div>
  1079. </div>
  1080. <div v-if="tooC == 25">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/evalua.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">目标管理</div>
  1087. </div>
  1088. <div v-if="tooC == 31">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/secondToolList/networkPanel.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">数学画板</div>
  1095. </div>
  1096. <div v-if="tooC == 28">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/secondToolList/translation.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">翻译</div>
  1103. </div>
  1104. <div v-if="tooC == 37">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/secondToolList/mohe.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">魔盒识字</div>
  1111. </div>
  1112. <div v-if="tooC == 38">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../../assets/icon/secondToolList/24game.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">24点</div>
  1119. </div>
  1120. <div v-if="tooC == 39">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../../assets/icon/secondToolList/GeoGebra.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">GeoGebra</div>
  1127. </div>
  1128. <div v-if="tooC == 32">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/thirdToolList/code.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">源码编辑</div>
  1135. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1136. style="position: absolute;left: 110px;bottom: 30px;">
  1137. 上传文件
  1138. <input type="file" accept="*" style="display: none"
  1139. @change="beforeUpload1($event, 7, toolIndex)" />
  1140. </div> -->
  1141. </div>
  1142. <div v-if="tooC == 40">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../../assets/icon/secondToolList/eval.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">个人评价</div>
  1149. </div>
  1150. <div v-if="tooC == 41">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/thirdToolList/select.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">选择匹配</div>
  1157. </div>
  1158. <div v-if="tooC == 44">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/hanClass.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">汉字宫</div>
  1165. </div>
  1166. <div v-if="tooC == 47">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/fourthToolList/conSentences.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">排序</div>
  1173. </div>
  1174. <div v-if="tooC == 48">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/table.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">表格</div>
  1181. </div>
  1182. <div v-if="tooC == 52">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../../assets/icon/fourthToolList/text.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">文档</div>
  1189. </div>
  1190. <div v-if="tooC == 49">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../../assets/icon/fourthToolList/group.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">学生分组</div>
  1197. </div>
  1198. <div v-if="tooC == 57">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/fourthToolList/cocopi.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">CocoPi</div>
  1205. </div>
  1206. <div v-if="tooC == 58">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/fourthToolList/car.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">模拟驾驶</div>
  1213. </div>
  1214. <div v-if="tooC == 59">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/fourthToolList/lineSearch.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">路径搜索</div>
  1221. </div>
  1222. <div v-if="tooC == 60">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../../assets/icon/fourthToolList/deepLearning.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">深度学习</div>
  1229. </div>
  1230. <div v-if="tooC == 61">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../../assets/icon/fourthToolList/allHistory.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">全历史</div>
  1237. </div>
  1238. <div v-if="tooC == 62">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../../assets/icon/fourthToolList/interVideo.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">交互视频</div>
  1245. </div>
  1246. <div v-if="tooC == 63">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/fourthToolList/Wood.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">海龟编程</div>
  1253. </div>
  1254. <div v-if="tooC == 65">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/firstToolList/pickPeople.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">挑人</div>
  1261. </div>
  1262. <div v-if="tooC == 66">
  1263. <img
  1264. @click="addTools(tooC, toolIndex, taskCount)"
  1265. src="../../assets/icon/secondToolList/formulaEdi.png"
  1266. alt
  1267. />
  1268. <div style="margin: 5px 0">公式编辑</div>
  1269. </div>
  1270. <div v-if="tooC == 67">
  1271. <img
  1272. @click="addTools(tooC, toolIndex, taskCount)"
  1273. src="../../assets/icon/secondToolList/molStr.png"
  1274. alt
  1275. />
  1276. <div style="margin: 5px 0">分子结构</div>
  1277. </div>
  1278. <div v-if="tooC == 68">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../../assets/icon/secondToolList/timeAxis.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">时间轴</div>
  1285. </div>
  1286. <div v-if="tooC == 69">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../../assets/icon/secondToolList/english.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">英语写作</div>
  1293. </div>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1298. <!-- <div class="toolTitle">工具描述</div> -->
  1299. <div
  1300. v-html="contentConvent(tool.toolDetail)"
  1301. v-if="toolDetailIndex != toolIndex"
  1302. @click.stop="updateToolDetail(toolIndex)"
  1303. ></div>
  1304. <div v-else @click.stop="">
  1305. <el-input
  1306. type="textarea"
  1307. :rows="3"
  1308. resize="none"
  1309. v-model="updateToolDetailInner"
  1310. placeholder="请输入任务描述"
  1311. ></el-input>
  1312. </div>
  1313. </div>
  1314. <el-button
  1315. type="primary"
  1316. v-if="tool.tool[0] == 32"
  1317. style="position: absolute; right: 30px; top: 30px"
  1318. @click="addImg($event)"
  1319. >上传作业<input
  1320. type="file"
  1321. accept="*"
  1322. style="display: none"
  1323. @change="beforeUpload1($event, 7, toolIndex)"
  1324. /></el-button>
  1325. <el-button
  1326. type="primary"
  1327. v-if="tool.tool[0] == 15"
  1328. style="position: absolute; right: 30px; top: 30px"
  1329. @click="openWordCloud(toolIndex)"
  1330. >生成词云</el-button
  1331. >
  1332. <el-button
  1333. type="primary"
  1334. v-if="
  1335. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1336. "
  1337. style="position: absolute; right: 30px; top: 30px"
  1338. @click="uploadWorks(toolIndex)"
  1339. >导出作业</el-button
  1340. >
  1341. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1342. position: absolute;
  1343. right: 30px;
  1344. transform: translateY(-130%);
  1345. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1346. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1347. </div>
  1348. <div
  1349. v-if="
  1350. tType &&
  1351. tType == 2 &&
  1352. !sIsOpen &&
  1353. tool.tool.indexOf(16) != -1
  1354. "
  1355. class="worksBox"
  1356. >
  1357. <div
  1358. class="zuoyeYulan"
  1359. v-if="workStudent[toolIndex].length > 0"
  1360. >
  1361. <span class="worksTitle">作业预览</span>
  1362. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1363. </div>
  1364. <div
  1365. class="worksDetailBox"
  1366. v-if="workStudent[toolIndex].length > 0"
  1367. >
  1368. <div
  1369. class="works"
  1370. style="
  1371. width: 200px;
  1372. height: 140px;
  1373. margin: 10px 10px 10px 0;
  1374. box-shadow: 0 0 6px 1px #dfdada;
  1375. "
  1376. v-for="(w, wIndex) in workStudent[toolIndex]"
  1377. :key="wIndex"
  1378. >
  1379. <div class="workImg" v-if="w.type == 0">
  1380. <img
  1381. :src="w.works"
  1382. @click="previewImg(w.works)"
  1383. alt
  1384. />
  1385. <div
  1386. class="answerScore"
  1387. v-if="w.score"
  1388. @click.stop="openScore(w)"
  1389. :class="{
  1390. rightW:
  1391. w.userid == userid || tType == 1 || tType == 4,
  1392. }"
  1393. >
  1394. {{ JSON.parse(w.score).wScore }}分
  1395. </div>
  1396. <div
  1397. class="answerScore"
  1398. @click.stop="openScore(w)"
  1399. v-else-if="courseDetail.userid == userid"
  1400. :class="{
  1401. rightW:
  1402. w.userid == userid || tType == 1 || tType == 4,
  1403. }"
  1404. >
  1405. 评分
  1406. </div>
  1407. <img
  1408. class="deleteImg"
  1409. src="../../assets/deleteworks.png"
  1410. v-if="
  1411. w.userid == userid || tType == 1 || tType == 4
  1412. "
  1413. @click.stop="deleteWorks(w.wid)"
  1414. alt
  1415. />
  1416. </div>
  1417. <div class="workImg" v-if="w.type == 1">
  1418. <img :src="word" @click="openFile(w.works)" alt />
  1419. <div
  1420. class="answerScore"
  1421. v-if="w.score"
  1422. @click.stop="openScore(w)"
  1423. :class="{
  1424. rightW:
  1425. w.userid == userid || tType == 1 || tType == 4,
  1426. }"
  1427. >
  1428. {{ JSON.parse(w.score).wScore }}分
  1429. </div>
  1430. <div
  1431. class="answerScore"
  1432. @click.stop="openScore(w)"
  1433. v-else-if="courseDetail.userid == userid"
  1434. :class="{
  1435. rightW:
  1436. w.userid == userid || tType == 1 || tType == 4,
  1437. }"
  1438. >
  1439. 评分
  1440. </div>
  1441. <img
  1442. class="deleteImg"
  1443. src="../../assets/deleteworks.png"
  1444. v-if="
  1445. w.userid == userid || tType == 1 || tType == 4
  1446. "
  1447. @click.stop="deleteWorks(w.wid)"
  1448. alt
  1449. />
  1450. </div>
  1451. <div class="workImg" v-if="w.type == 3">
  1452. <img
  1453. style="cursor: pointer"
  1454. :src="video"
  1455. @click="openVideo(w)"
  1456. alt
  1457. />
  1458. <div
  1459. class="answerScore"
  1460. v-if="w.score"
  1461. @click.stop="openScore(w)"
  1462. :class="{
  1463. rightW:
  1464. w.userid == userid || tType == 1 || tType == 4,
  1465. }"
  1466. >
  1467. {{ JSON.parse(w.score).wScore }}分
  1468. </div>
  1469. <div
  1470. class="answerScore"
  1471. @click.stop="openScore(w)"
  1472. v-else-if="courseDetail.userid == userid"
  1473. :class="{
  1474. rightW:
  1475. w.userid == userid || tType == 1 || tType == 4,
  1476. }"
  1477. >
  1478. 评分
  1479. </div>
  1480. <img
  1481. class="deleteImg"
  1482. src="../../assets/deleteworks.png"
  1483. v-if="
  1484. w.userid == userid || tType == 1 || tType == 4
  1485. "
  1486. @click.stop="deleteWorks(w.wid)"
  1487. alt
  1488. />
  1489. </div>
  1490. <div class="workImg" v-if="w.type == 12">
  1491. <img
  1492. style="cursor: pointer"
  1493. :src="word2"
  1494. @click="downloadFile(w.works)"
  1495. alt
  1496. />
  1497. <div
  1498. class="answerScore"
  1499. v-if="w.score"
  1500. @click.stop="openScore(w)"
  1501. :class="{
  1502. rightW:
  1503. w.userid == userid || tType == 1 || tType == 4,
  1504. }"
  1505. >
  1506. {{ JSON.parse(w.score).wScore }}分
  1507. </div>
  1508. <div
  1509. class="answerScore"
  1510. @click.stop="openScore(w)"
  1511. v-else-if="courseDetail.userid == userid"
  1512. :class="{
  1513. rightW:
  1514. w.userid == userid || tType == 1 || tType == 4,
  1515. }"
  1516. >
  1517. 评分
  1518. </div>
  1519. <img
  1520. class="deleteImg"
  1521. src="../../assets/deleteworks.png"
  1522. v-if="
  1523. w.userid == userid || tType == 1 || tType == 4
  1524. "
  1525. @click.stop="deleteWorks(w.wid)"
  1526. alt
  1527. />
  1528. </div>
  1529. <div class="worksName">
  1530. <div>{{ w.sName }}</div>
  1531. </div>
  1532. </div>
  1533. </div>
  1534. </div>
  1535. <div
  1536. v-if="
  1537. tType &&
  1538. tType == 2 &&
  1539. !sIsOpen &&
  1540. tool.tool.indexOf(32) != -1
  1541. "
  1542. class="worksBox"
  1543. >
  1544. <div
  1545. class="zuoyeYulan"
  1546. v-if="workStudent[toolIndex].length > 0"
  1547. >
  1548. <span class="worksTitle">作业预览</span>
  1549. </div>
  1550. <div
  1551. class="worksDetailBox"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <div
  1555. class="works"
  1556. style="
  1557. width: 200px;
  1558. height: 140px;
  1559. margin: 10px 10px 10px 0;
  1560. box-shadow: 0 0 6px 1px #dfdada;
  1561. "
  1562. v-for="(w, wIndex) in workStudent[toolIndex]"
  1563. :key="wIndex"
  1564. >
  1565. <div class="workImg">
  1566. <img
  1567. :src="word2"
  1568. @click="downloadFile(w.works)"
  1569. alt
  1570. />
  1571. <div
  1572. class="answerScore"
  1573. v-if="w.score"
  1574. @click.stop="openScore(w)"
  1575. :class="{
  1576. rightW:
  1577. w.userid == userid || tType == 1 || tType == 4,
  1578. }"
  1579. >
  1580. {{ JSON.parse(w.score).wScore }}分
  1581. </div>
  1582. <div
  1583. class="answerScore"
  1584. @click.stop="openScore(w)"
  1585. v-else-if="courseDetail.userid == userid"
  1586. :class="{
  1587. rightW:
  1588. w.userid == userid || tType == 1 || tType == 4,
  1589. }"
  1590. >
  1591. 评分
  1592. </div>
  1593. <img
  1594. class="deleteImg"
  1595. src="../../assets/deleteworks.png"
  1596. v-if="
  1597. w.userid == userid || tType == 1 || tType == 4
  1598. "
  1599. @click.stop="deleteWorks(w.wid)"
  1600. alt
  1601. />
  1602. </div>
  1603. <div class="worksName">
  1604. <div>{{ w.sName }}</div>
  1605. </div>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. <div
  1610. v-if="
  1611. tType &&
  1612. tType == 2 &&
  1613. !sIsOpen &&
  1614. tool.tool.indexOf(57) != -1
  1615. "
  1616. class="worksBox"
  1617. >
  1618. <div
  1619. class="zuoyeYulan"
  1620. v-if="workStudent[toolIndex].length > 0"
  1621. >
  1622. <span class="worksTitle">作业预览</span>
  1623. </div>
  1624. <div
  1625. class="worksDetailBox"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <div
  1629. class="works"
  1630. style="
  1631. width: 200px;
  1632. height: 140px;
  1633. margin: 10px 10px 10px 0;
  1634. box-shadow: 0 0 6px 1px #dfdada;
  1635. "
  1636. v-for="(w, wIndex) in workStudent[toolIndex]"
  1637. :key="wIndex"
  1638. >
  1639. <div class="workImg">
  1640. <img
  1641. :src="word2"
  1642. @click="downloadFile(w.works)"
  1643. v-if="w.type == 12"
  1644. alt
  1645. />
  1646. <img
  1647. :src="word2"
  1648. @click="
  1649. openCocoPi(57, toolIndex, w.userid, w.sName)
  1650. "
  1651. v-else-if="w.type == 15"
  1652. alt
  1653. />
  1654. <div
  1655. class="answerScore"
  1656. v-if="w.score"
  1657. @click.stop="openScore(w)"
  1658. :class="{
  1659. rightW:
  1660. w.userid == userid || tType == 1 || tType == 4,
  1661. }"
  1662. >
  1663. {{ JSON.parse(w.score).wScore }}分
  1664. </div>
  1665. <div
  1666. class="answerScore"
  1667. @click.stop="openScore(w)"
  1668. v-else-if="courseDetail.userid == userid"
  1669. :class="{
  1670. rightW:
  1671. w.userid == userid || tType == 1 || tType == 4,
  1672. }"
  1673. >
  1674. 评分
  1675. </div>
  1676. <img
  1677. class="deleteImg"
  1678. src="../../assets/deleteworks.png"
  1679. v-if="
  1680. w.userid == userid || tType == 1 || tType == 4
  1681. "
  1682. @click.stop="deleteWorks(w.wid)"
  1683. alt
  1684. />
  1685. </div>
  1686. <div class="worksName">
  1687. <div>{{ w.sName }}</div>
  1688. </div>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. <div
  1693. v-if="
  1694. tType &&
  1695. tType == 2 &&
  1696. !sIsOpen &&
  1697. tool.tool.indexOf(4) != -1
  1698. "
  1699. class="worksBox"
  1700. >
  1701. <div
  1702. class="zuoyeYulan"
  1703. v-if="workStudent[toolIndex].length > 0"
  1704. >
  1705. <span class="worksTitle">作业预览</span>
  1706. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1707. </div>
  1708. <div
  1709. class="worksDetailBox"
  1710. v-if="workStudent[toolIndex].length > 0"
  1711. >
  1712. <div
  1713. class="isWorksName2"
  1714. v-for="(w, wIndex) in workStudent[toolIndex]"
  1715. :key="wIndex"
  1716. @click="
  1717. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1718. "
  1719. >
  1720. {{ w.sName }}
  1721. <img
  1722. class="deleteImg deleteImg2"
  1723. src="../../assets/deleteworks.png"
  1724. v-if="w.userid == userid || tType == 1 || tType == 4"
  1725. @click.stop="deleteWorks(w.wid)"
  1726. alt
  1727. />
  1728. </div>
  1729. <!-- <div
  1730. class="works"
  1731. style="
  1732. width: 200px;
  1733. height: 140px;
  1734. border-radius: 10px;
  1735. box-shadow: 0 0 6px 1px #dfdada;
  1736. overflow: hidden;
  1737. "
  1738. v-for="(w, wIndex) in workStudent[toolIndex]"
  1739. :key="wIndex"
  1740. >
  1741. <div class="workImg">
  1742. <img
  1743. src="../../assets/icon/works/noImg.png"
  1744. @click="
  1745. openTools(
  1746. 4,
  1747. toolIndex,
  1748. taskCount,
  1749. w.works,
  1750. w.sName
  1751. )
  1752. "
  1753. alt
  1754. />
  1755. </div>
  1756. <div class="worksName">
  1757. <div>{{ w.sName }}</div>
  1758. <div>{{ w.time }}</div>
  1759. </div>
  1760. </div> -->
  1761. </div>
  1762. </div>
  1763. <div
  1764. v-if="
  1765. tType &&
  1766. tType == 2 &&
  1767. !sIsOpen &&
  1768. tool.tool.indexOf(45) != -1
  1769. "
  1770. class="worksBox"
  1771. >
  1772. <div
  1773. class="zuoyeYulan"
  1774. v-if="workStudent[toolIndex].length > 0"
  1775. >
  1776. <span class="worksTitle">作业预览</span>
  1777. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1778. </div>
  1779. <div
  1780. class="worksDetailBox"
  1781. v-if="workStudent[toolIndex].length > 0"
  1782. >
  1783. <div
  1784. class="isWorksName2"
  1785. v-for="(w, wIndex) in workStudent[toolIndex]"
  1786. :key="wIndex"
  1787. @click="
  1788. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1789. "
  1790. >
  1791. {{ w.sName }}
  1792. <img
  1793. class="deleteImg deleteImg2"
  1794. src="../../assets/deleteworks.png"
  1795. v-if="w.userid == userid || tType == 1 || tType == 4"
  1796. @click.stop="deleteWorks(w.wid)"
  1797. alt
  1798. />
  1799. </div>
  1800. </div>
  1801. </div>
  1802. <div
  1803. v-if="
  1804. tType &&
  1805. tType == 2 &&
  1806. !sIsOpen &&
  1807. tool.tool.indexOf(69) != -1
  1808. "
  1809. class="worksBox"
  1810. >
  1811. <div
  1812. class="zuoyeYulan"
  1813. v-if="workStudent[toolIndex].length > 0"
  1814. >
  1815. <span class="worksTitle">作业预览</span>
  1816. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1817. </div>
  1818. <div
  1819. class="worksDetailBox"
  1820. v-if="workStudent[toolIndex].length > 0"
  1821. >
  1822. <div
  1823. class="isWorksName2"
  1824. v-for="(w, wIndex) in workStudent[toolIndex]"
  1825. :key="wIndex"
  1826. @click="
  1827. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1828. "
  1829. >
  1830. {{ w.sName }}
  1831. <img
  1832. class="deleteImg deleteImg2"
  1833. src="../../assets/deleteworks.png"
  1834. v-if="w.userid == userid || tType == 1 || tType == 4"
  1835. @click.stop="deleteWorks(w.wid)"
  1836. alt
  1837. />
  1838. </div>
  1839. </div>
  1840. </div>
  1841. <div
  1842. v-if="
  1843. tType &&
  1844. tType == 2 &&
  1845. !sIsOpen &&
  1846. tool.tool.indexOf(15) != -1
  1847. "
  1848. class="worksBox"
  1849. >
  1850. <div
  1851. class="zuoyeYulan"
  1852. v-if="workStudent[toolIndex].length > 0"
  1853. >
  1854. <span class="worksTitle">作业预览</span>
  1855. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1856. </div>
  1857. <div
  1858. class="worksDetailBox"
  1859. v-if="workStudent[toolIndex].length > 0"
  1860. >
  1861. <div
  1862. class="works"
  1863. v-for="(w, wIndex) in workStudent[toolIndex]"
  1864. :key="wIndex"
  1865. >
  1866. <div class="workImg">
  1867. <!-- <img
  1868. src="../../assets/icon/works/noImg.png"
  1869. @click="openTools(15, toolIndex, taskCount, w.works)"
  1870. alt=""
  1871. />-->
  1872. <div class="answerBg">
  1873. <!-- <div>{{ w.sName }}</div> -->
  1874. <el-tooltip
  1875. class="item"
  1876. effect="light"
  1877. :content="JSON.parse(w.works)[0].answer"
  1878. placement="top"
  1879. >
  1880. <div class="answerContent">
  1881. {{ JSON.parse(w.works)[0].answer }}
  1882. </div>
  1883. </el-tooltip>
  1884. <div
  1885. class="answerScore"
  1886. v-if="w.score"
  1887. @click.stop="openScore(w)"
  1888. :class="{
  1889. rightW:
  1890. w.userid == userid ||
  1891. tType == 1 ||
  1892. tType == 4,
  1893. }"
  1894. >
  1895. {{ JSON.parse(w.score).wScore }}分
  1896. </div>
  1897. <div
  1898. class="answerScore"
  1899. @click.stop="openScore(w)"
  1900. v-else-if="courseDetail.userid == userid"
  1901. :class="{
  1902. rightW:
  1903. w.userid == userid ||
  1904. tType == 1 ||
  1905. tType == 4,
  1906. }"
  1907. >
  1908. 评分
  1909. </div>
  1910. <img
  1911. class="deleteImg"
  1912. src="../../assets/deleteworks.png"
  1913. v-if="
  1914. w.userid == userid || tType == 1 || tType == 4
  1915. "
  1916. @click.stop="deleteWorks(w.wid)"
  1917. alt
  1918. />
  1919. </div>
  1920. <div class="comment">
  1921. <div class="worksName">
  1922. <div>{{ w.sName }}</div>
  1923. </div>
  1924. </div>
  1925. </div>
  1926. </div>
  1927. </div>
  1928. </div>
  1929. <div
  1930. v-if="
  1931. tType &&
  1932. tType == 2 &&
  1933. !sIsOpen &&
  1934. tool.tool.indexOf(1) != -1
  1935. "
  1936. class="worksBox"
  1937. >
  1938. <div
  1939. class="zuoyeYulan"
  1940. v-if="workStudent[toolIndex].length > 0"
  1941. >
  1942. <span class="worksTitle">作业预览</span>
  1943. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1944. </div>
  1945. <div
  1946. class="worksDetailBox"
  1947. v-if="workStudent[toolIndex].length > 0"
  1948. >
  1949. <div
  1950. class="works"
  1951. style="
  1952. width: 200px;
  1953. height: 140px;
  1954. margin: 10px 10px 10px 0;
  1955. box-shadow: 0 0 6px 1px #dfdada;
  1956. "
  1957. v-for="(w, wIndex) in workStudent[toolIndex]"
  1958. :key="wIndex"
  1959. >
  1960. <div class="workImg">
  1961. <img
  1962. :src="w.works"
  1963. @click="previewImg(w.works)"
  1964. alt
  1965. />
  1966. <div
  1967. class="answerScore"
  1968. v-if="w.score"
  1969. @click.stop="openScore(w)"
  1970. :class="{
  1971. rightW:
  1972. w.userid == userid || tType == 1 || tType == 4,
  1973. }"
  1974. >
  1975. {{ JSON.parse(w.score).wScore }}分
  1976. </div>
  1977. <div
  1978. class="answerScore"
  1979. @click.stop="openScore(w)"
  1980. v-else-if="courseDetail.userid == userid"
  1981. :class="{
  1982. rightW:
  1983. w.userid == userid || tType == 1 || tType == 4,
  1984. }"
  1985. >
  1986. 评分
  1987. </div>
  1988. <img
  1989. class="deleteImg"
  1990. src="../../assets/deleteworks.png"
  1991. v-if="
  1992. w.userid == userid || tType == 1 || tType == 4
  1993. "
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. <div class="worksName">
  1999. <div>{{ w.sName }}</div>
  2000. </div>
  2001. </div>
  2002. </div>
  2003. </div>
  2004. <div
  2005. v-if="
  2006. tType &&
  2007. tType == 2 &&
  2008. !sIsOpen &&
  2009. tool.tool.indexOf(3) != -1
  2010. "
  2011. class="worksBox"
  2012. >
  2013. <div
  2014. class="zuoyeYulan"
  2015. v-if="workStudent[toolIndex].length > 0"
  2016. >
  2017. <span class="worksTitle">作业预览</span>
  2018. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2019. </div>
  2020. <div
  2021. class="worksDetailBox"
  2022. v-if="workStudent[toolIndex].length > 0"
  2023. >
  2024. <div
  2025. class="works"
  2026. style="
  2027. width: 200px;
  2028. height: 140px;
  2029. margin: 10px 10px 10px 0;
  2030. box-shadow: 0 0 6px 1px #dfdada;
  2031. "
  2032. v-for="(w, wIndex) in workStudent[toolIndex]"
  2033. :key="wIndex"
  2034. >
  2035. <div class="workImg">
  2036. <img
  2037. :src="w.works"
  2038. @click="previewImg(w.works)"
  2039. alt
  2040. />
  2041. <div
  2042. class="answerScore"
  2043. v-if="w.score"
  2044. @click.stop="openScore(w)"
  2045. :class="{
  2046. rightW:
  2047. w.userid == userid || tType == 1 || tType == 4,
  2048. }"
  2049. >
  2050. {{ JSON.parse(w.score).wScore }}分
  2051. </div>
  2052. <div
  2053. class="answerScore"
  2054. @click.stop="openScore(w)"
  2055. v-else-if="courseDetail.userid == userid"
  2056. :class="{
  2057. rightW:
  2058. w.userid == userid || tType == 1 || tType == 4,
  2059. }"
  2060. >
  2061. 评分
  2062. </div>
  2063. <img
  2064. class="deleteImg"
  2065. src="../../assets/deleteworks.png"
  2066. v-if="
  2067. w.userid == userid || tType == 1 || tType == 4
  2068. "
  2069. @click.stop="deleteWorks(w.wid)"
  2070. alt
  2071. />
  2072. </div>
  2073. <div class="worksName">
  2074. <div>{{ w.sName }}</div>
  2075. </div>
  2076. </div>
  2077. </div>
  2078. </div>
  2079. <div
  2080. v-if="
  2081. tType &&
  2082. tType == 2 &&
  2083. !sIsOpen &&
  2084. tool.tool.indexOf(6) != -1
  2085. "
  2086. class="worksBox"
  2087. >
  2088. <div
  2089. class="zuoyeYulan"
  2090. v-if="workStudent[toolIndex].length > 0"
  2091. >
  2092. <span class="worksTitle">作业预览</span>
  2093. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2094. </div>
  2095. <div
  2096. class="worksDetailBox"
  2097. v-if="workStudent[toolIndex].length > 0"
  2098. >
  2099. <div
  2100. class="works"
  2101. style="
  2102. width: 200px;
  2103. height: 140px;
  2104. margin: 10px 10px 10px 0;
  2105. box-shadow: 0 0 6px 1px #dfdada;
  2106. "
  2107. v-for="(w, wIndex) in workStudent[toolIndex]"
  2108. :key="wIndex"
  2109. >
  2110. <div class="workImg">
  2111. <img
  2112. :src="w.works"
  2113. @click="previewImg(w.works)"
  2114. alt
  2115. />
  2116. <div
  2117. class="answerScore"
  2118. v-if="w.score"
  2119. @click.stop="openScore(w)"
  2120. :class="{
  2121. rightW:
  2122. w.userid == userid || tType == 1 || tType == 4,
  2123. }"
  2124. >
  2125. {{ JSON.parse(w.score).wScore }}分
  2126. </div>
  2127. <div
  2128. class="answerScore"
  2129. @click.stop="openScore(w)"
  2130. v-else-if="courseDetail.userid == userid"
  2131. :class="{
  2132. rightW:
  2133. w.userid == userid || tType == 1 || tType == 4,
  2134. }"
  2135. >
  2136. 评分
  2137. </div>
  2138. <img
  2139. class="deleteImg"
  2140. src="../../assets/deleteworks.png"
  2141. v-if="
  2142. w.userid == userid || tType == 1 || tType == 4
  2143. "
  2144. @click.stop="deleteWorks(w.wid)"
  2145. alt
  2146. />
  2147. </div>
  2148. <div class="worksName">
  2149. <div>{{ w.sName }}</div>
  2150. </div>
  2151. </div>
  2152. </div>
  2153. </div>
  2154. <div
  2155. v-if="
  2156. tType &&
  2157. tType == 2 &&
  2158. !sIsOpen &&
  2159. tool.tool.indexOf(7) != -1
  2160. "
  2161. class="worksBox"
  2162. >
  2163. <div
  2164. class="zuoyeYulan"
  2165. v-if="workStudent[toolIndex].length > 0"
  2166. >
  2167. <span class="worksTitle">作业预览</span>
  2168. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2169. </div>
  2170. <div
  2171. class="worksDetailBox"
  2172. v-if="workStudent[toolIndex].length > 0"
  2173. >
  2174. <div
  2175. class="works"
  2176. style="
  2177. width: 200px;
  2178. height: 140px;
  2179. margin: 10px 10px 10px 0;
  2180. box-shadow: 0 0 6px 1px #dfdada;
  2181. "
  2182. v-for="(w, wIndex) in workStudent[toolIndex]"
  2183. :key="wIndex"
  2184. >
  2185. <div class="workImg">
  2186. <img
  2187. :src="w.works"
  2188. @click="previewImg(w.works)"
  2189. alt
  2190. />
  2191. <div
  2192. class="answerScore"
  2193. v-if="w.score"
  2194. @click.stop="openScore(w)"
  2195. :class="{
  2196. rightW:
  2197. w.userid == userid || tType == 1 || tType == 4,
  2198. }"
  2199. >
  2200. {{ JSON.parse(w.score).wScore }}分
  2201. </div>
  2202. <div
  2203. class="answerScore"
  2204. @click.stop="openScore(w)"
  2205. v-else-if="courseDetail.userid == userid"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid || tType == 1 || tType == 4,
  2209. }"
  2210. >
  2211. 评分
  2212. </div>
  2213. <img
  2214. class="deleteImg"
  2215. src="../../assets/deleteworks.png"
  2216. v-if="
  2217. w.userid == userid || tType == 1 || tType == 4
  2218. "
  2219. @click.stop="deleteWorks(w.wid)"
  2220. alt
  2221. />
  2222. </div>
  2223. <div class="worksName">
  2224. <div>{{ w.sName }}</div>
  2225. </div>
  2226. </div>
  2227. </div>
  2228. </div>
  2229. <div
  2230. v-if="
  2231. tType &&
  2232. tType == 2 &&
  2233. !sIsOpen &&
  2234. tool.tool.indexOf(26) != -1
  2235. "
  2236. class="worksBox"
  2237. >
  2238. <div
  2239. class="zuoyeYulan"
  2240. v-if="workStudent[toolIndex].length > 0"
  2241. >
  2242. <span class="worksTitle">作业预览</span>
  2243. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2244. </div>
  2245. <div
  2246. class="worksDetailBox"
  2247. v-if="workStudent[toolIndex].length > 0"
  2248. >
  2249. <div
  2250. class="works"
  2251. style="
  2252. width: 200px;
  2253. height: 140px;
  2254. margin: 10px 10px 10px 0;
  2255. box-shadow: 0 0 6px 1px #dfdada;
  2256. "
  2257. v-for="(w, wIndex) in workStudent[toolIndex]"
  2258. :key="wIndex"
  2259. >
  2260. <div class="workImg">
  2261. <img
  2262. :src="w.works"
  2263. @click="previewImg(w.works)"
  2264. alt
  2265. />
  2266. <img
  2267. class="deleteImg"
  2268. src="../../assets/deleteworks.png"
  2269. v-if="
  2270. w.userid == userid || tType == 1 || tType == 4
  2271. "
  2272. @click.stop="deleteWorks(w.wid)"
  2273. alt
  2274. />
  2275. </div>
  2276. <div class="worksName">
  2277. <div>{{ w.sName }}</div>
  2278. </div>
  2279. </div>
  2280. </div>
  2281. </div>
  2282. <div
  2283. v-if="
  2284. tType &&
  2285. ((tType == 2 && sIsOpen == true) ||
  2286. tType == 1 ||
  2287. tType == 4) &&
  2288. tool.tool.indexOf(16) != -1
  2289. "
  2290. class="worksBox"
  2291. >
  2292. <div
  2293. class="zuoyeYulan"
  2294. v-if="
  2295. worksStudent.length &&
  2296. worksStudent[toolIndex].length > 0
  2297. "
  2298. >
  2299. <div class="worksTop">
  2300. <div>作业预览</div>
  2301. <div
  2302. class="corOpen"
  2303. @click="contract(toolIndex)"
  2304. v-if="
  2305. worksStudent[toolIndex].length > 6 &&
  2306. isCloseList[toolIndex].isClose == 0
  2307. "
  2308. >
  2309. 折叠
  2310. </div>
  2311. <div
  2312. class="corOpen"
  2313. @click="contract(toolIndex)"
  2314. v-if="isCloseList[toolIndex].isClose == 1"
  2315. >
  2316. 展开
  2317. </div>
  2318. </div>
  2319. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2320. </div>
  2321. <div
  2322. class="group_workBox"
  2323. v-for="(g, gindex) in courseGroup.group"
  2324. :key="gindex"
  2325. >
  2326. <div class="group_box">
  2327. <div class="group_title">
  2328. <el-tooltip
  2329. class="item"
  2330. effect="light"
  2331. :content="g.name"
  2332. placement="top"
  2333. >
  2334. <div class="group_name">{{ g.name }}</div>
  2335. </el-tooltip>
  2336. </div>
  2337. <div
  2338. class="group_work"
  2339. v-if="
  2340. g.works &&
  2341. g.works.length &&
  2342. g.works[toolIndex].length
  2343. "
  2344. >
  2345. <div
  2346. class="works"
  2347. style="
  2348. width: 200px;
  2349. height: 140px;
  2350. margin: 10px 10px 10px 0;
  2351. border-radius: 15px;
  2352. box-shadow: 0 0 6px 1px #dfdada;
  2353. "
  2354. v-for="(w, wIndex) in g.works[toolIndex]"
  2355. :key="wIndex"
  2356. :class="w.type == 1 ? 'isTypeOne' : ''"
  2357. >
  2358. <div class="workImg" v-if="w.type == 0">
  2359. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2360. <img
  2361. :src="w.works"
  2362. @click="previewImg(w.works)"
  2363. alt
  2364. />
  2365. <div
  2366. class="answerScore"
  2367. v-if="w.score"
  2368. @click.stop="openScore(w)"
  2369. :class="{
  2370. rightW:
  2371. w.userid == userid ||
  2372. tType == 1 ||
  2373. tType == 4 ||
  2374. w.ateacher == userid,
  2375. }"
  2376. >
  2377. {{ JSON.parse(w.score).wScore }}分
  2378. </div>
  2379. <div
  2380. class="answerScore"
  2381. @click.stop="openScore(w)"
  2382. v-else-if="courseDetail.userid == userid"
  2383. :class="{
  2384. rightW:
  2385. w.userid == userid ||
  2386. tType == 1 ||
  2387. tType == 4 ||
  2388. w.ateacher == userid,
  2389. }"
  2390. >
  2391. 评分
  2392. </div>
  2393. <img
  2394. class="deleteImg"
  2395. src="../../assets/deleteworks.png"
  2396. v-if="
  2397. w.userid == userid || tType == 1 || tType == 4
  2398. "
  2399. @click.stop="deleteWorks(w.wid)"
  2400. alt
  2401. />
  2402. </div>
  2403. <div class="workImg" v-if="w.type == 1">
  2404. <img :src="word" @click="openFile(w.works)" alt />
  2405. <!-- @click="openFile(w.works)" -->
  2406. <div
  2407. class="answerScore"
  2408. v-if="w.score"
  2409. @click.stop="openScore(w)"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid ||
  2413. tType == 1 ||
  2414. tType == 4 ||
  2415. w.ateacher == userid,
  2416. }"
  2417. >
  2418. {{ JSON.parse(w.score).wScore }}分
  2419. </div>
  2420. <div
  2421. class="answerScore"
  2422. @click.stop="openScore(w)"
  2423. v-else-if="courseDetail.userid == userid"
  2424. :class="{
  2425. rightW:
  2426. w.userid == userid ||
  2427. tType == 1 ||
  2428. tType == 4 ||
  2429. w.ateacher == userid,
  2430. }"
  2431. >
  2432. 评分
  2433. </div>
  2434. <img
  2435. class="deleteImg"
  2436. src="../../assets/deleteworks.png"
  2437. v-if="
  2438. w.userid == userid || tType == 1 || tType == 4
  2439. "
  2440. @click.stop="deleteWorks(w.wid)"
  2441. alt
  2442. />
  2443. </div>
  2444. <div class="workImg" v-if="w.type == 3">
  2445. <img
  2446. style="cursor: pointer"
  2447. :src="video"
  2448. @click="openVideo(w)"
  2449. alt
  2450. />
  2451. <!-- @click="openVideo(w.works)" -->
  2452. <div
  2453. class="answerScore"
  2454. v-if="w.score"
  2455. @click.stop="openScore(w)"
  2456. :class="{
  2457. rightW:
  2458. w.userid == userid ||
  2459. tType == 1 ||
  2460. tType == 4 ||
  2461. w.ateacher == userid,
  2462. }"
  2463. >
  2464. {{ JSON.parse(w.score).wScore }}分
  2465. </div>
  2466. <div
  2467. class="answerScore"
  2468. @click.stop="openScore(w)"
  2469. v-else-if="courseDetail.userid == userid"
  2470. :class="{
  2471. rightW:
  2472. w.userid == userid ||
  2473. tType == 1 ||
  2474. tType == 4 ||
  2475. w.ateacher == userid,
  2476. }"
  2477. >
  2478. 评分
  2479. </div>
  2480. <img
  2481. class="deleteImg"
  2482. src="../../assets/deleteworks.png"
  2483. v-if="
  2484. w.userid == userid || tType == 1 || tType == 4
  2485. "
  2486. @click.stop="deleteWorks(w.wid)"
  2487. alt
  2488. />
  2489. </div>
  2490. <div class="workImg" v-if="w.type == 12">
  2491. <img
  2492. style="cursor: pointer"
  2493. :src="word2"
  2494. @click="downloadFile(w.works)"
  2495. alt
  2496. />
  2497. <!-- @click="openVideo(w.works)" -->
  2498. <div
  2499. class="answerScore"
  2500. v-if="w.score"
  2501. @click.stop="openScore(w)"
  2502. :class="{
  2503. rightW:
  2504. w.userid == userid ||
  2505. tType == 1 ||
  2506. tType == 4 ||
  2507. w.ateacher == userid,
  2508. }"
  2509. >
  2510. {{ JSON.parse(w.score).wScore }}分
  2511. </div>
  2512. <div
  2513. class="answerScore"
  2514. @click.stop="openScore(w)"
  2515. v-else-if="courseDetail.userid == userid"
  2516. :class="{
  2517. rightW:
  2518. w.userid == userid ||
  2519. tType == 1 ||
  2520. tType == 4 ||
  2521. w.ateacher == userid,
  2522. }"
  2523. >
  2524. 评分
  2525. </div>
  2526. <img
  2527. class="deleteImg"
  2528. src="../../assets/deleteworks.png"
  2529. v-if="
  2530. w.userid == userid || tType == 1 || tType == 4
  2531. "
  2532. @click.stop="deleteWorks(w.wid)"
  2533. alt
  2534. />
  2535. </div>
  2536. <div class="comment" style="min-width: 200px">
  2537. <div class="worksName">
  2538. <div>{{ w.sName }}</div>
  2539. </div>
  2540. <div class="commentList">
  2541. <div class="commentList">
  2542. <div
  2543. class="commentImg"
  2544. @click="
  2545. isLikes(w.wid, userid, 1, null, w.isLikes)
  2546. "
  2547. >
  2548. <img
  2549. :src="w.isLikes == true ? likes : noLikes"
  2550. alt=""
  2551. />
  2552. </div>
  2553. <div>{{ w.likesCount }}</div>
  2554. </div>
  2555. <div
  2556. class="commentList"
  2557. style="margin-right: 15px"
  2558. >
  2559. <div
  2560. class="commentImg"
  2561. @click="
  2562. commentOther(
  2563. w,
  2564. toolIndex,
  2565. wIndex,
  2566. null,
  2567. g.id
  2568. )
  2569. "
  2570. >
  2571. <img
  2572. src="../../assets/icon/comment/comment.png"
  2573. alt=""
  2574. />
  2575. </div>
  2576. <div>{{ w.commentCount }}</div>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. <div class="group_work" v-else>暂无提交作业</div>
  2583. </div>
  2584. </div>
  2585. <div
  2586. class="worksDetailBox"
  2587. v-if="
  2588. worksStudent.length &&
  2589. worksStudent[toolIndex].length > 0
  2590. "
  2591. >
  2592. <div
  2593. class="works"
  2594. style="
  2595. width: 200px;
  2596. height: 140px;
  2597. margin: 10px 10px 10px 0;
  2598. border-radius: 15px;
  2599. box-shadow: 0 0 6px 1px #dfdada;
  2600. "
  2601. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2602. 0
  2603. ? worksStudent[toolIndex]
  2604. : worksStudent[toolIndex].slice(0, 6)"
  2605. :key="wIndex"
  2606. :class="w.type == 1 ? 'isTypeOne' : ''"
  2607. >
  2608. <div class="workImg" v-if="w.type == 0">
  2609. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2610. <img
  2611. :src="w.works"
  2612. @click="previewImg(w.works)"
  2613. alt
  2614. />
  2615. <div
  2616. class="answerScore"
  2617. v-if="w.score"
  2618. @click.stop="openScore(w)"
  2619. :class="{
  2620. rightW:
  2621. w.userid == userid ||
  2622. tType == 1 ||
  2623. tType == 4 ||
  2624. w.ateacher == userid,
  2625. }"
  2626. >
  2627. {{ JSON.parse(w.score).wScore }}分
  2628. </div>
  2629. <div
  2630. class="answerScore"
  2631. @click.stop="openScore(w)"
  2632. v-else-if="courseDetail.userid == userid"
  2633. :class="{
  2634. rightW:
  2635. w.userid == userid ||
  2636. tType == 1 ||
  2637. tType == 4 ||
  2638. w.ateacher == userid,
  2639. }"
  2640. >
  2641. 评分
  2642. </div>
  2643. <img
  2644. class="deleteImg"
  2645. src="../../assets/deleteworks.png"
  2646. v-if="
  2647. w.userid == userid || tType == 1 || tType == 4
  2648. "
  2649. @click.stop="deleteWorks(w.wid)"
  2650. alt
  2651. />
  2652. </div>
  2653. <div class="workImg" v-if="w.type == 1">
  2654. <img :src="word" @click="openFile(w.works)" alt />
  2655. <!-- @click="openFile(w.works)" -->
  2656. <div
  2657. class="answerScore"
  2658. v-if="w.score"
  2659. @click.stop="openScore(w)"
  2660. :class="{
  2661. rightW:
  2662. w.userid == userid ||
  2663. tType == 1 ||
  2664. tType == 4 ||
  2665. w.ateacher == userid,
  2666. }"
  2667. >
  2668. {{ JSON.parse(w.score).wScore }}分
  2669. </div>
  2670. <div
  2671. class="answerScore"
  2672. @click.stop="openScore(w)"
  2673. v-else-if="courseDetail.userid == userid"
  2674. :class="{
  2675. rightW:
  2676. w.userid == userid ||
  2677. tType == 1 ||
  2678. tType == 4 ||
  2679. w.ateacher == userid,
  2680. }"
  2681. >
  2682. 评分
  2683. </div>
  2684. <img
  2685. class="deleteImg"
  2686. src="../../assets/deleteworks.png"
  2687. v-if="
  2688. w.userid == userid || tType == 1 || tType == 4
  2689. "
  2690. @click.stop="deleteWorks(w.wid)"
  2691. alt
  2692. />
  2693. </div>
  2694. <div class="workImg" v-if="w.type == 3">
  2695. <img
  2696. style="cursor: pointer"
  2697. :src="video"
  2698. @click="openVideo(w)"
  2699. alt
  2700. />
  2701. <!-- @click="openVideo(w.works)" -->
  2702. <div
  2703. class="answerScore"
  2704. v-if="w.score"
  2705. @click.stop="openScore(w)"
  2706. :class="{
  2707. rightW:
  2708. w.userid == userid ||
  2709. tType == 1 ||
  2710. tType == 4 ||
  2711. w.ateacher == userid,
  2712. }"
  2713. >
  2714. {{ JSON.parse(w.score).wScore }}分
  2715. </div>
  2716. <div
  2717. class="answerScore"
  2718. @click.stop="openScore(w)"
  2719. v-else-if="courseDetail.userid == userid"
  2720. :class="{
  2721. rightW:
  2722. w.userid == userid ||
  2723. tType == 1 ||
  2724. tType == 4 ||
  2725. w.ateacher == userid,
  2726. }"
  2727. >
  2728. 评分
  2729. </div>
  2730. <img
  2731. class="deleteImg"
  2732. src="../../assets/deleteworks.png"
  2733. v-if="
  2734. w.userid == userid || tType == 1 || tType == 4
  2735. "
  2736. @click.stop="deleteWorks(w.wid)"
  2737. alt
  2738. />
  2739. </div>
  2740. <div class="workImg" v-if="w.type == 12">
  2741. <img
  2742. style="cursor: pointer"
  2743. :src="word2"
  2744. @click="downloadFile(w.works)"
  2745. alt
  2746. />
  2747. <!-- @click="openVideo(w.works)" -->
  2748. <div
  2749. class="answerScore"
  2750. v-if="w.score"
  2751. @click.stop="openScore(w)"
  2752. :class="{
  2753. rightW:
  2754. w.userid == userid ||
  2755. tType == 1 ||
  2756. tType == 4 ||
  2757. w.ateacher == userid,
  2758. }"
  2759. >
  2760. {{ JSON.parse(w.score).wScore }}分
  2761. </div>
  2762. <div
  2763. class="answerScore"
  2764. @click.stop="openScore(w)"
  2765. v-else-if="courseDetail.userid == userid"
  2766. :class="{
  2767. rightW:
  2768. w.userid == userid ||
  2769. tType == 1 ||
  2770. tType == 4 ||
  2771. w.ateacher == userid,
  2772. }"
  2773. >
  2774. 评分
  2775. </div>
  2776. <img
  2777. class="deleteImg"
  2778. src="../../assets/deleteworks.png"
  2779. v-if="
  2780. w.userid == userid || tType == 1 || tType == 4
  2781. "
  2782. @click.stop="deleteWorks(w.wid)"
  2783. alt
  2784. />
  2785. </div>
  2786. <div class="comment" style="min-width: 200px">
  2787. <div class="worksName">
  2788. <div>{{ w.sName }}</div>
  2789. </div>
  2790. <div class="commentList">
  2791. <div class="commentList">
  2792. <div
  2793. class="commentImg"
  2794. @click="
  2795. isLikes(w.wid, userid, 1, null, w.isLikes)
  2796. "
  2797. >
  2798. <img
  2799. :src="w.isLikes == true ? likes : noLikes"
  2800. alt=""
  2801. />
  2802. </div>
  2803. <div>{{ w.likesCount }}</div>
  2804. </div>
  2805. <div class="commentList" style="margin-right: 15px">
  2806. <div
  2807. class="commentImg"
  2808. @click="commentOther(w, toolIndex, wIndex)"
  2809. >
  2810. <img
  2811. src="../../assets/icon/comment/comment.png"
  2812. alt=""
  2813. />
  2814. </div>
  2815. <div>{{ w.commentCount }}</div>
  2816. </div>
  2817. </div>
  2818. </div>
  2819. </div>
  2820. </div>
  2821. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2822. 未提交
  2823. </div>
  2824. <div
  2825. class="noWorksS"
  2826. v-if="noWorksS && noWorksS[toolIndex].length"
  2827. >
  2828. <div
  2829. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2830. :key="sIndex"
  2831. class="noWorksName"
  2832. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2833. >
  2834. {{ s.student }}
  2835. </div>
  2836. </div>
  2837. </div>
  2838. <div
  2839. v-if="
  2840. tType &&
  2841. ((tType == 2 && sIsOpen == true) ||
  2842. tType == 1 ||
  2843. tType == 4) &&
  2844. tool.tool.indexOf(32) != -1
  2845. "
  2846. class="worksBox"
  2847. >
  2848. <div
  2849. class="zuoyeYulan"
  2850. v-if="
  2851. worksStudent.length &&
  2852. worksStudent[toolIndex].length > 0
  2853. "
  2854. >
  2855. <div class="worksTop">
  2856. <div>作业预览</div>
  2857. <div
  2858. class="corOpen"
  2859. @click="contract(toolIndex)"
  2860. v-if="
  2861. worksStudent[toolIndex].length > 6 &&
  2862. isCloseList[toolIndex].isClose == 0
  2863. "
  2864. >
  2865. 折叠
  2866. </div>
  2867. <div
  2868. class="corOpen"
  2869. @click="contract(toolIndex)"
  2870. v-if="isCloseList[toolIndex].isClose == 1"
  2871. >
  2872. 展开
  2873. </div>
  2874. </div>
  2875. </div>
  2876. <div
  2877. class="worksDetailBox"
  2878. v-if="
  2879. worksStudent.length &&
  2880. worksStudent[toolIndex].length > 0
  2881. "
  2882. >
  2883. <div
  2884. class="works"
  2885. style="
  2886. width: 200px;
  2887. height: 140px;
  2888. margin: 10px 10px 10px 0;
  2889. border-radius: 15px;
  2890. box-shadow: 0 0 6px 1px #dfdada;
  2891. "
  2892. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2893. 0
  2894. ? worksStudent[toolIndex]
  2895. : worksStudent[toolIndex].slice(0, 6)"
  2896. :key="wIndex"
  2897. :class="w.type == 1 ? 'isTypeOne' : ''"
  2898. >
  2899. <div class="workImg">
  2900. <img
  2901. :src="word2"
  2902. @click="downloadFile(w.works)"
  2903. alt
  2904. />
  2905. <div
  2906. class="answerScore"
  2907. v-if="w.score"
  2908. @click.stop="openScore(w)"
  2909. :class="{
  2910. rightW:
  2911. w.userid == userid ||
  2912. tType == 1 ||
  2913. tType == 4 ||
  2914. w.ateacher == userid,
  2915. }"
  2916. >
  2917. {{ JSON.parse(w.score).wScore }}分
  2918. </div>
  2919. <div
  2920. class="answerScore"
  2921. @click.stop="openScore(w)"
  2922. v-else-if="courseDetail.userid == userid"
  2923. :class="{
  2924. rightW:
  2925. w.userid == userid ||
  2926. tType == 1 ||
  2927. tType == 4 ||
  2928. w.ateacher == userid,
  2929. }"
  2930. >
  2931. 评分
  2932. </div>
  2933. <img
  2934. class="deleteImg"
  2935. src="../../assets/deleteworks.png"
  2936. v-if="
  2937. w.userid == userid || tType == 1 || tType == 4
  2938. "
  2939. @click.stop="deleteWorks(w.wid)"
  2940. alt
  2941. />
  2942. </div>
  2943. <div class="comment" style="min-width: 200px">
  2944. <div class="worksName">
  2945. <div>{{ w.sName }}</div>
  2946. </div>
  2947. <div class="commentList">
  2948. <div class="commentList">
  2949. <div
  2950. class="commentImg"
  2951. @click="
  2952. isLikes(w.wid, userid, 1, null, w.isLikes)
  2953. "
  2954. >
  2955. <img
  2956. :src="w.isLikes == true ? likes : noLikes"
  2957. alt=""
  2958. />
  2959. </div>
  2960. <div>{{ w.likesCount }}</div>
  2961. </div>
  2962. <div class="commentList" style="margin-right: 15px">
  2963. <div
  2964. class="commentImg"
  2965. @click="commentOther(w, toolIndex, wIndex)"
  2966. >
  2967. <img
  2968. src="../../assets/icon/comment/comment.png"
  2969. alt=""
  2970. />
  2971. </div>
  2972. <div>{{ w.commentCount }}</div>
  2973. </div>
  2974. </div>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2979. 未提交
  2980. </div>
  2981. <div
  2982. class="noWorksS"
  2983. v-if="noWorksS && noWorksS[toolIndex].length"
  2984. >
  2985. <div
  2986. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2987. :key="sIndex"
  2988. class="noWorksName"
  2989. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2990. >
  2991. {{ s.student }}
  2992. </div>
  2993. </div>
  2994. </div>
  2995. <div
  2996. v-if="
  2997. tType &&
  2998. ((tType == 2 && sIsOpen == true) ||
  2999. tType == 1 ||
  3000. tType == 4) &&
  3001. tool.tool.indexOf(57) != -1
  3002. "
  3003. class="worksBox"
  3004. >
  3005. <div
  3006. class="zuoyeYulan"
  3007. v-if="
  3008. worksStudent.length &&
  3009. worksStudent[toolIndex].length > 0
  3010. "
  3011. >
  3012. <div class="worksTop">
  3013. <div>作业预览</div>
  3014. <div
  3015. class="corOpen"
  3016. @click="contract(toolIndex)"
  3017. v-if="
  3018. worksStudent[toolIndex].length > 6 &&
  3019. isCloseList[toolIndex].isClose == 0
  3020. "
  3021. >
  3022. 折叠
  3023. </div>
  3024. <div
  3025. class="corOpen"
  3026. @click="contract(toolIndex)"
  3027. v-if="isCloseList[toolIndex].isClose == 1"
  3028. >
  3029. 展开
  3030. </div>
  3031. </div>
  3032. </div>
  3033. <div
  3034. class="worksDetailBox"
  3035. v-if="
  3036. worksStudent.length &&
  3037. worksStudent[toolIndex].length > 0
  3038. "
  3039. >
  3040. <div
  3041. class="works"
  3042. style="
  3043. width: 200px;
  3044. height: 140px;
  3045. margin: 10px 10px 10px 0;
  3046. border-radius: 15px;
  3047. box-shadow: 0 0 6px 1px #dfdada;
  3048. "
  3049. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3050. 0
  3051. ? worksStudent[toolIndex]
  3052. : worksStudent[toolIndex].slice(0, 6)"
  3053. :key="wIndex"
  3054. :class="w.type == 1 ? 'isTypeOne' : ''"
  3055. >
  3056. <div class="workImg">
  3057. <img
  3058. :src="word2"
  3059. @click="downloadFile(w.works)"
  3060. v-if="w.type == 12"
  3061. alt
  3062. />
  3063. <img
  3064. :src="word2"
  3065. @click="
  3066. openCocoPi(57, toolIndex, w.userid, w.sName)
  3067. "
  3068. v-else-if="w.type == 15"
  3069. alt
  3070. />
  3071. <div
  3072. class="answerScore"
  3073. v-if="w.score"
  3074. @click.stop="openScore(w)"
  3075. :class="{
  3076. rightW:
  3077. w.userid == userid ||
  3078. tType == 1 ||
  3079. tType == 4 ||
  3080. w.ateacher == userid,
  3081. }"
  3082. >
  3083. {{ JSON.parse(w.score).wScore }}分
  3084. </div>
  3085. <div
  3086. class="answerScore"
  3087. @click.stop="openScore(w)"
  3088. v-else-if="courseDetail.userid == userid"
  3089. :class="{
  3090. rightW:
  3091. w.userid == userid ||
  3092. tType == 1 ||
  3093. tType == 4 ||
  3094. w.ateacher == userid,
  3095. }"
  3096. >
  3097. 评分
  3098. </div>
  3099. <img
  3100. class="deleteImg"
  3101. src="../../assets/deleteworks.png"
  3102. v-if="
  3103. w.userid == userid || tType == 1 || tType == 4
  3104. "
  3105. @click.stop="deleteWorks(w.wid)"
  3106. alt
  3107. />
  3108. </div>
  3109. <div class="comment" style="min-width: 200px">
  3110. <div class="worksName">
  3111. <div>{{ w.sName }}</div>
  3112. </div>
  3113. <div class="commentList">
  3114. <div class="commentList">
  3115. <div
  3116. class="commentImg"
  3117. @click="
  3118. isLikes(w.wid, userid, 1, null, w.isLikes)
  3119. "
  3120. >
  3121. <img
  3122. :src="w.isLikes == true ? likes : noLikes"
  3123. alt=""
  3124. />
  3125. </div>
  3126. <div>{{ w.likesCount }}</div>
  3127. </div>
  3128. <div class="commentList" style="margin-right: 15px">
  3129. <div
  3130. class="commentImg"
  3131. @click="commentOther(w, toolIndex, wIndex)"
  3132. >
  3133. <img
  3134. src="../../assets/icon/comment/comment.png"
  3135. alt=""
  3136. />
  3137. </div>
  3138. <div>{{ w.commentCount }}</div>
  3139. </div>
  3140. </div>
  3141. </div>
  3142. </div>
  3143. </div>
  3144. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3145. 未提交
  3146. </div>
  3147. <div
  3148. class="noWorksS"
  3149. v-if="noWorksS && noWorksS[toolIndex].length"
  3150. >
  3151. <div
  3152. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3153. :key="sIndex"
  3154. class="noWorksName"
  3155. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3156. >
  3157. {{ s.student }}
  3158. </div>
  3159. </div>
  3160. </div>
  3161. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3162. <div
  3163. class="zuoyeYulan"
  3164. v-if="
  3165. worksStudent.length &&
  3166. worksStudent[toolIndex].length > 0
  3167. "
  3168. >
  3169. <span class="worksTitle">作业预览</span>
  3170. <div
  3171. class="corOpen"
  3172. @click="contract(toolIndex)"
  3173. v-if="
  3174. worksStudent[toolIndex].length > 6 &&
  3175. isCloseList[toolIndex].isClose == 0
  3176. "
  3177. >
  3178. 折叠
  3179. </div>
  3180. <div
  3181. class="corOpen"
  3182. @click="contract(toolIndex)"
  3183. v-if="isCloseList[toolIndex].isClose == 1"
  3184. >
  3185. 展开
  3186. </div>
  3187. </div>
  3188. <div
  3189. class="worksDetailBox"
  3190. v-if="
  3191. worksStudent.length &&
  3192. worksStudent[toolIndex].length > 0
  3193. "
  3194. >
  3195. <div
  3196. class="works"
  3197. style="
  3198. width: 200px;
  3199. height: 140px;
  3200. margin: 10px 10px 10px 0;
  3201. border-radius: 15px;
  3202. box-shadow: 0 0 6px 1px #dfdada;
  3203. "
  3204. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3205. 0
  3206. ? worksStudent[toolIndex]
  3207. : worksStudent[toolIndex].slice(0, 6)"
  3208. :key="wIndex"
  3209. :class="w.type == 1 ? 'isTypeOne' : ''"
  3210. >
  3211. <div class="workImg" v-if="w.type == 0">
  3212. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3213. <img
  3214. :src="w.works"
  3215. @click="previewImg(w.works)"
  3216. alt
  3217. />
  3218. <div
  3219. class="answerScore"
  3220. v-if="w.score"
  3221. @click.stop="openScore(w)"
  3222. :class="{
  3223. rightW:
  3224. w.userid == userid ||
  3225. tType == 1 ||
  3226. tType == 4 ||
  3227. w.ateacher == userid,
  3228. }"
  3229. >
  3230. {{ JSON.parse(w.score).wScore }}分
  3231. </div>
  3232. <div
  3233. class="answerScore"
  3234. @click.stop="openScore(w)"
  3235. v-else-if="courseDetail.userid == userid"
  3236. :class="{
  3237. rightW:
  3238. w.userid == userid ||
  3239. tType == 1 ||
  3240. tType == 4 ||
  3241. w.ateacher == userid,
  3242. }"
  3243. >
  3244. 评分
  3245. </div>
  3246. <img
  3247. class="deleteImg"
  3248. src="../../assets/deleteworks.png"
  3249. v-if="
  3250. w.userid == userid || tType == 1 || tType == 4
  3251. "
  3252. @click.stop="deleteWorks(w.wid)"
  3253. alt
  3254. />
  3255. </div>
  3256. <div
  3257. class="workImg"
  3258. style="cursor: pointer"
  3259. v-if="w.type == 1"
  3260. >
  3261. <img :src="word" @click="openFile(w.works)" alt />
  3262. <!-- @click="openFile(w.works)" -->
  3263. <div
  3264. class="answerScore"
  3265. v-if="w.score"
  3266. @click.stop="openScore(w)"
  3267. :class="{
  3268. rightW:
  3269. w.userid == userid ||
  3270. tType == 1 ||
  3271. tType == 4 ||
  3272. w.ateacher == userid,
  3273. }"
  3274. >
  3275. {{ JSON.parse(w.score).wScore }}分
  3276. </div>
  3277. <div
  3278. class="answerScore"
  3279. @click.stop="openScore(w)"
  3280. v-else-if="courseDetail.userid == userid"
  3281. :class="{
  3282. rightW:
  3283. w.userid == userid ||
  3284. tType == 1 ||
  3285. tType == 4 ||
  3286. w.ateacher == userid,
  3287. }"
  3288. >
  3289. 评分
  3290. </div>
  3291. <img
  3292. class="deleteImg"
  3293. src="../../assets/deleteworks.png"
  3294. v-if="
  3295. w.userid == userid || tType == 1 || tType == 4
  3296. "
  3297. @click.stop="deleteWorks(w.wid)"
  3298. alt
  3299. />
  3300. </div>
  3301. <div class="workImg" v-if="w.type == 3">
  3302. <img
  3303. style="cursor: pointer"
  3304. :src="video"
  3305. @click="openVideo(w)"
  3306. alt
  3307. />
  3308. <!-- @click="openVideo(w.works)" -->
  3309. <div
  3310. class="answerScore"
  3311. v-if="w.score"
  3312. @click.stop="openScore(w)"
  3313. :class="{
  3314. rightW:
  3315. w.userid == userid ||
  3316. tType == 1 ||
  3317. tType == 4 ||
  3318. w.ateacher == userid,
  3319. }"
  3320. >
  3321. {{ JSON.parse(w.score).wScore }}分
  3322. </div>
  3323. <div
  3324. class="answerScore"
  3325. @click.stop="openScore(w)"
  3326. v-else-if="courseDetail.userid == userid"
  3327. :class="{
  3328. rightW:
  3329. w.userid == userid ||
  3330. tType == 1 ||
  3331. tType == 4 ||
  3332. w.ateacher == userid,
  3333. }"
  3334. >
  3335. 评分
  3336. </div>
  3337. <img
  3338. class="deleteImg"
  3339. src="../../assets/deleteworks.png"
  3340. v-if="
  3341. w.userid == userid || tType == 1 || tType == 4
  3342. "
  3343. @click.stop="deleteWorks(w.wid)"
  3344. alt
  3345. />
  3346. </div>
  3347. <div class="comment" style="min-width: 200px">
  3348. <div class="worksName">
  3349. <div
  3350. style="cursor: pointer"
  3351. @click="
  3352. openSname(w.sName, w.wid, toolIndex, w.userid)
  3353. "
  3354. >
  3355. {{ w.sName }}
  3356. </div>
  3357. </div>
  3358. <div class="commentList">
  3359. <div class="commentList">
  3360. <div
  3361. class="commentImg"
  3362. @click="
  3363. isLikes(w.wid, userid, 1, null, w.isLikes)
  3364. "
  3365. >
  3366. <img
  3367. :src="w.isLikes == true ? likes : noLikes"
  3368. alt=""
  3369. />
  3370. </div>
  3371. <div>{{ w.likesCount }}</div>
  3372. </div>
  3373. <div class="commentList" style="margin-right: 15px">
  3374. <div
  3375. class="commentImg"
  3376. @click="commentOther(w, toolIndex, wIndex)"
  3377. >
  3378. <img
  3379. src="../../assets/icon/comment/comment.png"
  3380. alt=""
  3381. />
  3382. </div>
  3383. <div>{{ w.commentCount }}</div>
  3384. </div>
  3385. </div>
  3386. </div>
  3387. </div>
  3388. </div>
  3389. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3390. 未提交
  3391. </div>
  3392. <div
  3393. class="noWorksS"
  3394. v-if="noWorksS && noWorksS[toolIndex].length"
  3395. >
  3396. <div
  3397. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3398. :key="sIndex"
  3399. class="noWorksName"
  3400. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3401. >
  3402. {{ s.student }}
  3403. </div>
  3404. </div>
  3405. </div>
  3406. <div
  3407. v-if="
  3408. tType &&
  3409. ((tType == 2 && sIsOpen == true) ||
  3410. tType == 1 ||
  3411. tType == 4) &&
  3412. tool.tool.indexOf(4) != -1 &&
  3413. (tool.askJson[0].answer ||
  3414. tool.askJson[0].answer === 0) &&
  3415. checkJson[toolIndex].length
  3416. "
  3417. class="xuan_right_box"
  3418. >
  3419. <div
  3420. class="tool_right_box"
  3421. v-for="(item, index) in tool.askJson"
  3422. :key="index"
  3423. >
  3424. <div style="width: calc(100% - 30px);">
  3425. <el-tooltip
  3426. effect="light"
  3427. :content="index + 1 + '、' + item.askstitle"
  3428. placement="top"
  3429. popper-class="text_tooltip"
  3430. >
  3431. <div
  3432. style="
  3433. width: calc(100% - 130px);
  3434. display: block;
  3435. white-space: nowrap;
  3436. overflow: hidden;
  3437. text-overflow: ellipsis;
  3438. word-break: break-word;
  3439. cursor: pointer;
  3440. "
  3441. >
  3442. {{ index + 1 + "、" + item.askstitle }}
  3443. </div>
  3444. </el-tooltip>
  3445. </div>
  3446. <div class="right_box_xuan">
  3447. <span>正确率</span>
  3448. <span>{{
  3449. (checkJson[toolIndex][index].right
  3450. ? checkJson[toolIndex][index].right
  3451. : 0) + "%"
  3452. }}</span>
  3453. </div>
  3454. </div>
  3455. </div>
  3456. <div
  3457. class="xuan_right_box"
  3458. style="background: unset; padding: 0 10px"
  3459. v-if="
  3460. tType &&
  3461. ((tType == 2 && sIsOpen == true) ||
  3462. tType == 1 ||
  3463. tType == 4) &&
  3464. tool.tool.indexOf(4) != -1
  3465. "
  3466. >
  3467. <AskStatic
  3468. v-if="
  3469. worksStudent.length &&
  3470. worksStudent[toolIndex].length > 0
  3471. "
  3472. :askJSON="tool"
  3473. :checkJson="checkJson[toolIndex]"
  3474. ></AskStatic>
  3475. </div>
  3476. <div
  3477. v-if="
  3478. tType &&
  3479. ((tType == 2 && sIsOpen == true) ||
  3480. tType == 1 ||
  3481. tType == 4) &&
  3482. tool.tool.indexOf(4) != -1
  3483. "
  3484. class="worksBox"
  3485. >
  3486. <div
  3487. class="zuoyeYulan"
  3488. v-if="
  3489. worksStudent.length &&
  3490. worksStudent[toolIndex].length > 0
  3491. "
  3492. >
  3493. <div class="worksTop">
  3494. <div>作业预览</div>
  3495. <div
  3496. class="corOpen"
  3497. @click="contract(toolIndex)"
  3498. v-if="
  3499. worksStudent[toolIndex].length > 6 &&
  3500. isCloseList[toolIndex].isClose == 0
  3501. "
  3502. >
  3503. 折叠
  3504. </div>
  3505. <div
  3506. class="corOpen"
  3507. @click="contract(toolIndex)"
  3508. v-if="isCloseList[toolIndex].isClose == 1"
  3509. >
  3510. 展开
  3511. </div>
  3512. </div>
  3513. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3514. </div>
  3515. <div>
  3516. <div
  3517. class="worksDetailBox"
  3518. v-if="
  3519. worksStudent.length &&
  3520. worksStudent[toolIndex].length > 0
  3521. "
  3522. >
  3523. <div
  3524. v-for="(w, wIndex) in isCloseList[toolIndex]
  3525. .isClose == 0
  3526. ? worksStudent[toolIndex]
  3527. : worksStudent[toolIndex].slice(0, 6)"
  3528. :key="wIndex"
  3529. class="isWorksName2"
  3530. @click="
  3531. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3532. "
  3533. >
  3534. {{ w.sName }}
  3535. <img
  3536. class="deleteImg deleteImg2"
  3537. src="../../assets/deleteworks.png"
  3538. v-if="
  3539. w.userid == userid || tType == 1 || tType == 4
  3540. "
  3541. @click.stop="deleteWorks(w.wid)"
  3542. alt
  3543. />
  3544. </div>
  3545. <!-- <div class="works" style="
  3546. width: 200px;
  3547. height: 140px;
  3548. border-radius: 10px;
  3549. box-shadow: 0 0 6px 1px #dfdada;
  3550. overflow: hidden;
  3551. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3552. <div class="workImg">
  3553. <img src="../../assets/icon/works/noImg.png" @click="
  3554. openTools(
  3555. 4,
  3556. toolIndex,
  3557. taskCount,
  3558. w.works,
  3559. w.sName
  3560. )
  3561. " alt />
  3562. </div>
  3563. <div class="worksName">
  3564. <div>{{ w.sName }}</div>
  3565. <div>{{ w.time }}</div>
  3566. </div>
  3567. </div> -->
  3568. </div>
  3569. </div>
  3570. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3571. 未提交
  3572. </div>
  3573. <div
  3574. class="noWorksS"
  3575. v-if="noWorksS && noWorksS[toolIndex].length"
  3576. >
  3577. <div
  3578. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3579. :key="sIndex"
  3580. class="noWorksName"
  3581. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3582. >
  3583. {{ s.student }}
  3584. </div>
  3585. </div>
  3586. </div>
  3587. <div
  3588. v-if="
  3589. tType &&
  3590. ((tType == 2 && sIsOpen == true) ||
  3591. tType == 1 ||
  3592. tType == 4) &&
  3593. tool.tool.indexOf(45) != -1 &&
  3594. (tool.testJson.testJson[0].answer ||
  3595. tool.testJson.testJson[0].answer === 0) &&
  3596. checkJson[toolIndex].length
  3597. "
  3598. class="xuan_right_box"
  3599. >
  3600. <div
  3601. class="tool_right_box"
  3602. v-for="(item, index) in tool.testJson.testJson"
  3603. :key="index"
  3604. >
  3605. <div class="right_box_xuan" style="margin-right: 10px">
  3606. <span>正确率</span>
  3607. <span>{{
  3608. (checkJson[toolIndex][index].right
  3609. ? checkJson[toolIndex][index].right
  3610. : 0) + "%"
  3611. }}</span>
  3612. </div>
  3613. <div style="width: calc(100% - 30px);">
  3614. <el-tooltip
  3615. effect="light"
  3616. :content="index + 1 + '、' + item.teststitle"
  3617. placement="top"
  3618. popper-class="text_tooltip"
  3619. >
  3620. <div
  3621. style="
  3622. width: calc(100% - 130px);
  3623. display: block;
  3624. white-space: nowrap;
  3625. overflow: hidden;
  3626. text-overflow: ellipsis;
  3627. word-break: break-word;
  3628. cursor: pointer;
  3629. "
  3630. >
  3631. {{ index + 1 + "、" + item.teststitle }}
  3632. </div>
  3633. </el-tooltip>
  3634. </div>
  3635. </div>
  3636. </div>
  3637. <div
  3638. class="xuan_right_box"
  3639. style="background: unset; padding: 0 10px; width: 91.5%"
  3640. v-if="
  3641. tType &&
  3642. ((tType == 2 && sIsOpen == true) ||
  3643. tType == 1 ||
  3644. tType == 4) &&
  3645. tool.tool.indexOf(45) != -1
  3646. "
  3647. >
  3648. <AskStatic2
  3649. v-if="
  3650. worksStudent.length &&
  3651. worksStudent[toolIndex].length > 0
  3652. "
  3653. :askJSON="tool"
  3654. :checkJson="checkJson[toolIndex]"
  3655. ></AskStatic2>
  3656. </div>
  3657. <div
  3658. v-if="
  3659. tType &&
  3660. ((tType == 2 && sIsOpen == true) ||
  3661. tType == 1 ||
  3662. tType == 4) &&
  3663. tool.tool.indexOf(45) != -1
  3664. "
  3665. class="worksBox"
  3666. >
  3667. <div
  3668. class="zuoyeYulan"
  3669. v-if="
  3670. worksStudent.length &&
  3671. worksStudent[toolIndex].length > 0
  3672. "
  3673. >
  3674. <div class="worksTop">
  3675. <div>作业预览</div>
  3676. <div
  3677. class="corOpen"
  3678. @click="contract(toolIndex)"
  3679. v-if="
  3680. worksStudent[toolIndex].length > 6 &&
  3681. isCloseList[toolIndex].isClose == 0
  3682. "
  3683. >
  3684. 折叠
  3685. </div>
  3686. <div
  3687. class="corOpen"
  3688. @click="contract(toolIndex)"
  3689. v-if="isCloseList[toolIndex].isClose == 1"
  3690. >
  3691. 展开
  3692. </div>
  3693. </div>
  3694. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3695. </div>
  3696. <div>
  3697. <div
  3698. class="worksDetailBox"
  3699. v-if="
  3700. worksStudent.length &&
  3701. worksStudent[toolIndex].length > 0
  3702. "
  3703. >
  3704. <div
  3705. v-for="(w, wIndex) in isCloseList[toolIndex]
  3706. .isClose == 0
  3707. ? worksStudent[toolIndex]
  3708. : worksStudent[toolIndex].slice(0, 6)"
  3709. :key="wIndex"
  3710. class="isWorksName2"
  3711. @click="
  3712. openTools(
  3713. 45,
  3714. toolIndex,
  3715. taskCount,
  3716. w.works,
  3717. w.sName
  3718. )
  3719. "
  3720. >
  3721. {{ w.sName }}
  3722. <img
  3723. class="deleteImg deleteImg2"
  3724. src="../../assets/deleteworks.png"
  3725. v-if="
  3726. w.userid == userid || tType == 1 || tType == 4
  3727. "
  3728. @click.stop="deleteWorks(w.wid)"
  3729. alt
  3730. />
  3731. </div>
  3732. </div>
  3733. </div>
  3734. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3735. 未提交
  3736. </div>
  3737. <div
  3738. class="noWorksS"
  3739. v-if="noWorksS && noWorksS[toolIndex].length"
  3740. >
  3741. <div
  3742. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3743. :key="sIndex"
  3744. class="noWorksName"
  3745. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3746. >
  3747. {{ s.student }}
  3748. </div>
  3749. </div>
  3750. </div>
  3751. <div
  3752. v-if="
  3753. tType &&
  3754. ((tType == 2 && sIsOpen == true) ||
  3755. tType == 1 ||
  3756. tType == 4) &&
  3757. tool.tool.indexOf(69) != -1
  3758. "
  3759. class="worksBox"
  3760. >
  3761. <div
  3762. class="zuoyeYulan"
  3763. v-if="
  3764. worksStudent.length &&
  3765. worksStudent[toolIndex].length > 0
  3766. "
  3767. >
  3768. <div class="worksTop">
  3769. <div>作业预览</div>
  3770. <div
  3771. class="corOpen"
  3772. @click="contract(toolIndex)"
  3773. v-if="
  3774. worksStudent[toolIndex].length > 6 &&
  3775. isCloseList[toolIndex].isClose == 0
  3776. "
  3777. >
  3778. 折叠
  3779. </div>
  3780. <div
  3781. class="corOpen"
  3782. @click="contract(toolIndex)"
  3783. v-if="isCloseList[toolIndex].isClose == 1"
  3784. >
  3785. 展开
  3786. </div>
  3787. </div>
  3788. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3789. </div>
  3790. <div>
  3791. <div
  3792. class="worksDetailBox"
  3793. v-if="
  3794. worksStudent.length &&
  3795. worksStudent[toolIndex].length > 0
  3796. "
  3797. >
  3798. <div
  3799. v-for="(w, wIndex) in isCloseList[toolIndex]
  3800. .isClose == 0
  3801. ? worksStudent[toolIndex]
  3802. : worksStudent[toolIndex].slice(0, 6)"
  3803. :key="wIndex"
  3804. class="isWorksName2"
  3805. style="width: 150px;height: 50px;line-height: 50px;"
  3806. @click="
  3807. openTools(
  3808. 69,
  3809. toolIndex,
  3810. taskCount,
  3811. w.works,
  3812. w.sName,
  3813. w.wid
  3814. )
  3815. "
  3816. >
  3817. {{ w.sName }}
  3818. <img
  3819. v-show="false"
  3820. class="deleteImg1"
  3821. src="../../assets/evaEnglish.png"
  3822. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3823. alt
  3824. />
  3825. <img
  3826. class="deleteImg deleteImg2"
  3827. src="../../assets/deleteworks.png"
  3828. v-if="
  3829. w.userid == userid || tType == 1 || tType == 4
  3830. "
  3831. @click.stop="deleteWorks(w.wid)"
  3832. alt
  3833. />
  3834. </div>
  3835. </div>
  3836. </div>
  3837. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3838. 未提交
  3839. </div>
  3840. <div
  3841. class="noWorksS"
  3842. v-if="noWorksS && noWorksS[toolIndex].length"
  3843. >
  3844. <div
  3845. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3846. :key="sIndex"
  3847. class="noWorksName"
  3848. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3849. >
  3850. {{ s.student }}
  3851. </div>
  3852. </div>
  3853. </div>
  3854. <div
  3855. v-if="
  3856. tType &&
  3857. ((tType == 2 && sIsOpen == true) ||
  3858. tType == 1 ||
  3859. tType == 4) &&
  3860. tool.tool.indexOf(15) != -1
  3861. "
  3862. class="worksBox"
  3863. >
  3864. <div
  3865. class="zuoyeYulan"
  3866. v-if="
  3867. worksStudent.length &&
  3868. worksStudent[toolIndex].length > 0
  3869. "
  3870. >
  3871. <div class="worksTop">
  3872. <div>作业预览</div>
  3873. <div
  3874. class="corOpen"
  3875. @click="contract(toolIndex)"
  3876. v-if="
  3877. worksStudent[toolIndex].length > 6 &&
  3878. isCloseList[toolIndex].isClose == 0
  3879. "
  3880. >
  3881. 折叠
  3882. </div>
  3883. <div
  3884. class="corOpen"
  3885. @click="contract(toolIndex)"
  3886. v-if="isCloseList[toolIndex].isClose == 1"
  3887. >
  3888. 展开
  3889. </div>
  3890. </div>
  3891. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3892. </div>
  3893. <div
  3894. class="group_workBox"
  3895. v-for="(g, gindex) in courseGroup.group"
  3896. :key="gindex"
  3897. >
  3898. <div class="group_box">
  3899. <div class="group_title">
  3900. <el-tooltip
  3901. class="item"
  3902. effect="light"
  3903. :content="g.name"
  3904. placement="top"
  3905. >
  3906. <div class="group_name">{{ g.name }}</div>
  3907. </el-tooltip>
  3908. </div>
  3909. <div
  3910. class="group_work"
  3911. v-if="
  3912. g.works &&
  3913. g.works.length &&
  3914. g.works[toolIndex].length
  3915. "
  3916. >
  3917. <div
  3918. class="works"
  3919. v-for="(w, wIndex) in g.works[toolIndex]"
  3920. :key="wIndex"
  3921. >
  3922. <div
  3923. class="workImg"
  3924. style="
  3925. border-radius: 15px;
  3926. box-shadow: #eee 0px 0px 5px 5px;
  3927. "
  3928. >
  3929. <div
  3930. class="answerBg"
  3931. style="border-radius: 15px 15px 0 0"
  3932. @click="
  3933. commentOther(w, toolIndex, wIndex, null, g.id)
  3934. "
  3935. >
  3936. <div class="answerContent">
  3937. {{ JSON.parse(w.works)[0].answer }}
  3938. </div>
  3939. <div
  3940. class="answerScore"
  3941. v-if="w.score"
  3942. @click.stop="openScore(w)"
  3943. :class="{
  3944. rightW:
  3945. w.userid == userid ||
  3946. tType == 1 ||
  3947. tType == 4,
  3948. }"
  3949. >
  3950. {{ JSON.parse(w.score).wScore }}分
  3951. </div>
  3952. <div
  3953. class="answerScore"
  3954. @click.stop="openScore(w)"
  3955. v-else-if="courseDetail.userid == userid"
  3956. :class="{
  3957. rightW:
  3958. w.userid == userid ||
  3959. tType == 1 ||
  3960. tType == 4,
  3961. }"
  3962. >
  3963. 评分
  3964. </div>
  3965. <img
  3966. class="deleteImg"
  3967. src="../../assets/deleteworks.png"
  3968. v-if="
  3969. w.userid == userid ||
  3970. tType == 1 ||
  3971. tType == 4
  3972. "
  3973. @click.stop="deleteWorks(w.wid)"
  3974. alt
  3975. />
  3976. </div>
  3977. <div class="comment">
  3978. <div class="worksName">
  3979. <div>{{ w.sName }}</div>
  3980. </div>
  3981. <div class="commentList">
  3982. <div
  3983. class="commentImg"
  3984. @click="
  3985. isLikes(w.wid, userid, 1, null, w.isLikes)
  3986. "
  3987. >
  3988. <img
  3989. :src="w.isLikes == true ? likes : noLikes"
  3990. alt=""
  3991. />
  3992. </div>
  3993. <div>{{ w.likesCount }}</div>
  3994. </div>
  3995. <div
  3996. class="commentList"
  3997. style="margin-right: 15px"
  3998. >
  3999. <div
  4000. class="commentImg"
  4001. @click="
  4002. commentOther(
  4003. w,
  4004. toolIndex,
  4005. wIndex,
  4006. null,
  4007. g.id
  4008. )
  4009. "
  4010. >
  4011. <img
  4012. src="../../assets/icon/comment/comment.png"
  4013. alt=""
  4014. />
  4015. </div>
  4016. <div>{{ w.commentCount }}</div>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. </div>
  4021. </div>
  4022. <div class="group_work" v-else>暂无提交作业</div>
  4023. </div>
  4024. </div>
  4025. <div
  4026. class="worksDetailBox"
  4027. v-if="
  4028. worksStudent.length &&
  4029. worksStudent[toolIndex].length > 0
  4030. "
  4031. >
  4032. <div
  4033. class="works"
  4034. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4035. 0
  4036. ? worksStudent[toolIndex]
  4037. : worksStudent[toolIndex].slice(0, 6)"
  4038. :key="wIndex"
  4039. >
  4040. <div
  4041. class="workImg"
  4042. style="
  4043. border-radius: 15px;
  4044. box-shadow: #eee 0px 0px 5px 5px;
  4045. "
  4046. >
  4047. <!-- <img
  4048. src="../../assets/icon/works/noImg.png"
  4049. @click="openTools(15, toolIndex, taskCount, w.works)"
  4050. alt=""
  4051. />-->
  4052. <div
  4053. class="answerBg"
  4054. style="border-radius: 15px 15px 0 0"
  4055. @click="commentOther(w, toolIndex, wIndex)"
  4056. >
  4057. <!-- <div>{{ w.sName }}</div> -->
  4058. <div class="answerContent">
  4059. {{ JSON.parse(w.works)[0].answer }}
  4060. </div>
  4061. <div
  4062. class="answerScore"
  4063. v-if="w.score"
  4064. @click.stop="openScore(w)"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4,
  4070. }"
  4071. >
  4072. {{ JSON.parse(w.score).wScore }}分
  4073. </div>
  4074. <div
  4075. class="answerScore"
  4076. @click.stop="openScore(w)"
  4077. v-else-if="courseDetail.userid == userid"
  4078. :class="{
  4079. rightW:
  4080. w.userid == userid ||
  4081. tType == 1 ||
  4082. tType == 4,
  4083. }"
  4084. >
  4085. 评分
  4086. </div>
  4087. <img
  4088. class="deleteImg"
  4089. src="../../assets/deleteworks.png"
  4090. v-if="
  4091. w.userid == userid || tType == 1 || tType == 4
  4092. "
  4093. @click.stop="deleteWorks(w.wid)"
  4094. alt
  4095. />
  4096. </div>
  4097. <div class="comment">
  4098. <div class="worksName">
  4099. <div>{{ w.sName }}</div>
  4100. </div>
  4101. <div class="commentList">
  4102. <div
  4103. class="commentImg"
  4104. @click="
  4105. isLikes(w.wid, userid, 1, null, w.isLikes)
  4106. "
  4107. >
  4108. <img
  4109. :src="w.isLikes == true ? likes : noLikes"
  4110. alt=""
  4111. />
  4112. </div>
  4113. <div>{{ w.likesCount }}</div>
  4114. </div>
  4115. <div class="commentList" style="margin-right: 15px">
  4116. <div
  4117. class="commentImg"
  4118. @click="commentOther(w, toolIndex, wIndex)"
  4119. >
  4120. <img
  4121. src="../../assets/icon/comment/comment.png"
  4122. alt=""
  4123. />
  4124. </div>
  4125. <div>{{ w.commentCount }}</div>
  4126. </div>
  4127. </div>
  4128. </div>
  4129. </div>
  4130. </div>
  4131. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4132. 未提交
  4133. </div>
  4134. <div
  4135. class="noWorksS"
  4136. v-if="noWorksS && noWorksS[toolIndex].length"
  4137. >
  4138. <div
  4139. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4140. :key="sIndex"
  4141. class="noWorksName"
  4142. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4143. >
  4144. {{ s.student }}
  4145. </div>
  4146. </div>
  4147. </div>
  4148. <div
  4149. v-if="
  4150. tType &&
  4151. ((tType == 2 && sIsOpen == true) ||
  4152. tType == 1 ||
  4153. tType == 4) &&
  4154. tool.tool.indexOf(1) != -1
  4155. "
  4156. class="worksBox"
  4157. >
  4158. <div
  4159. class="zuoyeYulan"
  4160. v-if="
  4161. worksStudent.length &&
  4162. worksStudent[toolIndex].length > 0
  4163. "
  4164. >
  4165. <div class="worksTop">
  4166. <div>作业预览</div>
  4167. <div
  4168. class="corOpen"
  4169. @click="contract(toolIndex)"
  4170. v-if="
  4171. worksStudent[toolIndex].length > 6 &&
  4172. isCloseList[toolIndex].isClose == 0
  4173. "
  4174. >
  4175. 折叠
  4176. </div>
  4177. <div
  4178. class="corOpen"
  4179. @click="contract(toolIndex)"
  4180. v-if="isCloseList[toolIndex].isClose == 1"
  4181. >
  4182. 展开
  4183. </div>
  4184. </div>
  4185. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4186. </div>
  4187. <div
  4188. class="group_workBox"
  4189. v-for="(g, gindex) in courseGroup.group"
  4190. :key="gindex"
  4191. >
  4192. <div class="group_box">
  4193. <div class="group_title">
  4194. <el-tooltip
  4195. class="item"
  4196. effect="light"
  4197. :content="g.name"
  4198. placement="top"
  4199. >
  4200. <div class="group_name">{{ g.name }}</div>
  4201. </el-tooltip>
  4202. </div>
  4203. <div
  4204. class="group_work"
  4205. v-if="
  4206. g.works &&
  4207. g.works.length &&
  4208. g.works[toolIndex].length
  4209. "
  4210. >
  4211. <div
  4212. class="works"
  4213. style="
  4214. width: 200px;
  4215. height: 140px;
  4216. margin: 10px 10px 10px 0;
  4217. border-radius: 15px;
  4218. box-shadow: 0 0 6px 1px #dfdada;
  4219. "
  4220. v-for="(w, wIndex) in g.works[toolIndex]"
  4221. :key="wIndex"
  4222. :class="w.type == 1 ? 'isTypeOne' : ''"
  4223. >
  4224. <div class="workImg">
  4225. <img
  4226. :src="w.works"
  4227. @click="previewImg(w.works)"
  4228. alt
  4229. />
  4230. <div
  4231. class="answerScore"
  4232. v-if="w.score"
  4233. @click.stop="openScore(w)"
  4234. :class="{
  4235. rightW:
  4236. w.userid == userid ||
  4237. tType == 1 ||
  4238. tType == 4,
  4239. }"
  4240. >
  4241. {{ JSON.parse(w.score).wScore }}分
  4242. </div>
  4243. <div
  4244. class="answerScore"
  4245. @click.stop="openScore(w)"
  4246. v-else-if="courseDetail.userid == userid"
  4247. :class="{
  4248. rightW:
  4249. w.userid == userid ||
  4250. tType == 1 ||
  4251. tType == 4,
  4252. }"
  4253. >
  4254. 评分
  4255. </div>
  4256. <img
  4257. class="deleteImg"
  4258. src="../../assets/deleteworks.png"
  4259. v-if="
  4260. w.userid == userid || tType == 1 || tType == 4
  4261. "
  4262. @click.stop="deleteWorks(w.wid)"
  4263. alt
  4264. />
  4265. </div>
  4266. <div class="comment" style="min-width: 200px">
  4267. <div class="worksName">
  4268. <div>{{ w.sName }}</div>
  4269. </div>
  4270. <div class="commentList">
  4271. <div class="commentList">
  4272. <div
  4273. class="commentImg"
  4274. @click="
  4275. isLikes(w.wid, userid, 1, null, w.isLikes)
  4276. "
  4277. >
  4278. <img
  4279. :src="w.isLikes == true ? likes : noLikes"
  4280. alt=""
  4281. />
  4282. </div>
  4283. <div>{{ w.likesCount }}</div>
  4284. </div>
  4285. <div
  4286. class="commentList"
  4287. style="margin-right: 15px"
  4288. >
  4289. <div
  4290. class="commentImg"
  4291. @click="
  4292. commentOther(
  4293. w,
  4294. toolIndex,
  4295. wIndex,
  4296. null,
  4297. g.id
  4298. )
  4299. "
  4300. >
  4301. <img
  4302. src="../../assets/icon/comment/comment.png"
  4303. alt=""
  4304. />
  4305. </div>
  4306. <div>{{ w.commentCount }}</div>
  4307. </div>
  4308. </div>
  4309. </div>
  4310. </div>
  4311. </div>
  4312. <div class="group_work" v-else>暂无提交作业</div>
  4313. </div>
  4314. </div>
  4315. <div
  4316. class="worksDetailBox"
  4317. v-if="
  4318. worksStudent.length &&
  4319. worksStudent[toolIndex].length > 0
  4320. "
  4321. >
  4322. <div
  4323. class="works"
  4324. style="
  4325. width: 200px;
  4326. height: 140px;
  4327. margin: 10px 10px 10px 0;
  4328. border-radius: 15px;
  4329. box-shadow: 0 0 6px 1px #dfdada;
  4330. "
  4331. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4332. 0
  4333. ? worksStudent[toolIndex]
  4334. : worksStudent[toolIndex].slice(0, 6)"
  4335. :key="wIndex"
  4336. >
  4337. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4338. <div class="workImg">
  4339. <img
  4340. :src="w.works"
  4341. @click="previewImg(w.works)"
  4342. alt
  4343. />
  4344. <div
  4345. class="answerScore"
  4346. v-if="w.score"
  4347. @click.stop="openScore(w)"
  4348. :class="{
  4349. rightW:
  4350. w.userid == userid || tType == 1 || tType == 4,
  4351. }"
  4352. >
  4353. {{ JSON.parse(w.score).wScore }}分
  4354. </div>
  4355. <div
  4356. class="answerScore"
  4357. @click.stop="openScore(w)"
  4358. v-else-if="courseDetail.userid == userid"
  4359. :class="{
  4360. rightW:
  4361. w.userid == userid || tType == 1 || tType == 4,
  4362. }"
  4363. >
  4364. 评分
  4365. </div>
  4366. <img
  4367. class="deleteImg"
  4368. src="../../assets/deleteworks.png"
  4369. v-if="
  4370. w.userid == userid || tType == 1 || tType == 4
  4371. "
  4372. @click.stop="deleteWorks(w.wid)"
  4373. alt
  4374. />
  4375. </div>
  4376. <div class="comment" style="min-width: 200px">
  4377. <div class="worksName">
  4378. <div>{{ w.sName }}</div>
  4379. </div>
  4380. <div class="commentList">
  4381. <div class="commentList">
  4382. <div
  4383. class="commentImg"
  4384. @click="
  4385. isLikes(w.wid, userid, 1, null, w.isLikes)
  4386. "
  4387. >
  4388. <img
  4389. :src="w.isLikes == true ? likes : noLikes"
  4390. alt=""
  4391. />
  4392. </div>
  4393. <div>{{ w.likesCount }}</div>
  4394. </div>
  4395. <div class="commentList" style="margin-right: 15px">
  4396. <div
  4397. class="commentImg"
  4398. @click="commentOther(w, toolIndex, wIndex)"
  4399. >
  4400. <img
  4401. src="../../assets/icon/comment/comment.png"
  4402. alt=""
  4403. />
  4404. </div>
  4405. <div>{{ w.commentCount }}</div>
  4406. </div>
  4407. </div>
  4408. </div>
  4409. </div>
  4410. </div>
  4411. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4412. 未提交
  4413. </div>
  4414. <div
  4415. class="noWorksS"
  4416. v-if="noWorksS && noWorksS[toolIndex].length"
  4417. >
  4418. <div
  4419. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4420. :key="sIndex"
  4421. class="noWorksName"
  4422. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4423. >
  4424. {{ s.student }}
  4425. </div>
  4426. </div>
  4427. </div>
  4428. <div
  4429. v-if="
  4430. tType &&
  4431. ((tType == 2 && sIsOpen == true) ||
  4432. tType == 1 ||
  4433. tType == 4) &&
  4434. tool.tool.indexOf(3) != -1
  4435. "
  4436. class="worksBox"
  4437. >
  4438. <div
  4439. class="zuoyeYulan"
  4440. v-if="
  4441. worksStudent.length &&
  4442. worksStudent[toolIndex].length > 0
  4443. "
  4444. >
  4445. <div class="worksTop">
  4446. <div>作业预览</div>
  4447. <div
  4448. class="corOpen"
  4449. @click="contract(toolIndex)"
  4450. v-if="
  4451. worksStudent[toolIndex].length > 6 &&
  4452. isCloseList[toolIndex].isClose == 0
  4453. "
  4454. >
  4455. 折叠
  4456. </div>
  4457. <div
  4458. class="corOpen"
  4459. @click="contract(toolIndex)"
  4460. v-if="isCloseList[toolIndex].isClose == 1"
  4461. >
  4462. 展开
  4463. </div>
  4464. </div>
  4465. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4466. </div>
  4467. <div
  4468. class="group_workBox"
  4469. v-for="(g, gindex) in courseGroup.group"
  4470. :key="gindex"
  4471. >
  4472. <div class="group_box">
  4473. <div class="group_title">
  4474. <el-tooltip
  4475. class="item"
  4476. effect="light"
  4477. :content="g.name"
  4478. placement="top"
  4479. >
  4480. <div class="group_name">{{ g.name }}</div>
  4481. </el-tooltip>
  4482. </div>
  4483. <div
  4484. class="group_work"
  4485. v-if="
  4486. g.works &&
  4487. g.works.length &&
  4488. g.works[toolIndex].length
  4489. "
  4490. >
  4491. <div
  4492. class="works"
  4493. style="
  4494. width: 200px;
  4495. height: 140px;
  4496. margin: 10px 10px 10px 0;
  4497. border-radius: 15px;
  4498. box-shadow: 0 0 6px 1px #dfdada;
  4499. "
  4500. v-for="(w, wIndex) in g.works[toolIndex]"
  4501. :key="wIndex"
  4502. :class="w.type == 1 ? 'isTypeOne' : ''"
  4503. >
  4504. <div class="workImg">
  4505. <img
  4506. :src="w.works"
  4507. @click="previewImg(w.works)"
  4508. alt
  4509. />
  4510. <div
  4511. class="answerScore"
  4512. v-if="w.score"
  4513. @click.stop="openScore(w)"
  4514. :class="{
  4515. rightW:
  4516. w.userid == userid ||
  4517. tType == 1 ||
  4518. tType == 4,
  4519. }"
  4520. >
  4521. {{ JSON.parse(w.score).wScore }}分
  4522. </div>
  4523. <div
  4524. class="answerScore"
  4525. @click.stop="openScore(w)"
  4526. v-else-if="courseDetail.userid == userid"
  4527. :class="{
  4528. rightW:
  4529. w.userid == userid ||
  4530. tType == 1 ||
  4531. tType == 4,
  4532. }"
  4533. >
  4534. 评分
  4535. </div>
  4536. <img
  4537. class="deleteImg"
  4538. src="../../assets/deleteworks.png"
  4539. v-if="
  4540. w.userid == userid || tType == 1 || tType == 4
  4541. "
  4542. @click.stop="deleteWorks(w.wid)"
  4543. alt
  4544. />
  4545. </div>
  4546. <div class="comment" style="min-width: 200px">
  4547. <div class="worksName">
  4548. <div>{{ w.sName }}</div>
  4549. </div>
  4550. <div class="commentList">
  4551. <div class="commentList">
  4552. <div
  4553. class="commentImg"
  4554. @click="
  4555. isLikes(w.wid, userid, 1, null, w.isLikes)
  4556. "
  4557. >
  4558. <img
  4559. :src="w.isLikes == true ? likes : noLikes"
  4560. alt=""
  4561. />
  4562. </div>
  4563. <div>{{ w.likesCount }}</div>
  4564. </div>
  4565. <div
  4566. class="commentList"
  4567. style="margin-right: 15px"
  4568. >
  4569. <div
  4570. class="commentImg"
  4571. @click="
  4572. commentOther(
  4573. w,
  4574. toolIndex,
  4575. wIndex,
  4576. null,
  4577. g.id
  4578. )
  4579. "
  4580. >
  4581. <img
  4582. src="../../assets/icon/comment/comment.png"
  4583. alt=""
  4584. />
  4585. </div>
  4586. <div>{{ w.commentCount }}</div>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. </div>
  4591. </div>
  4592. <div class="group_work" v-else>暂无提交作业</div>
  4593. </div>
  4594. </div>
  4595. <div
  4596. class="worksDetailBox"
  4597. v-if="
  4598. worksStudent.length &&
  4599. worksStudent[toolIndex].length > 0
  4600. "
  4601. >
  4602. <div
  4603. class="works"
  4604. style="
  4605. width: 200px;
  4606. height: 140px;
  4607. margin: 10px 10px 10px 0;
  4608. border-radius: 15px;
  4609. box-shadow: 0 0 6px 1px #dfdada;
  4610. "
  4611. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4612. 0
  4613. ? worksStudent[toolIndex]
  4614. : worksStudent[toolIndex].slice(0, 6)"
  4615. :key="wIndex"
  4616. >
  4617. <!-- @click="previewImg(w.works)" -->
  4618. <div class="workImg">
  4619. <img
  4620. :src="w.works"
  4621. @click="previewImg(w.works)"
  4622. alt
  4623. />
  4624. <div
  4625. class="answerScore"
  4626. v-if="w.score"
  4627. @click.stop="openScore(w)"
  4628. :class="{
  4629. rightW:
  4630. w.userid == userid || tType == 1 || tType == 4,
  4631. }"
  4632. >
  4633. {{ JSON.parse(w.score).wScore }}分
  4634. </div>
  4635. <div
  4636. class="answerScore"
  4637. @click.stop="openScore(w)"
  4638. v-else-if="courseDetail.userid == userid"
  4639. :class="{
  4640. rightW:
  4641. w.userid == userid || tType == 1 || tType == 4,
  4642. }"
  4643. >
  4644. 评分
  4645. </div>
  4646. <img
  4647. class="deleteImg"
  4648. src="../../assets/deleteworks.png"
  4649. v-if="
  4650. w.userid == userid || tType == 1 || tType == 4
  4651. "
  4652. @click.stop="deleteWorks(w.wid)"
  4653. alt
  4654. />
  4655. </div>
  4656. <div class="comment" style="min-width: 200px">
  4657. <div class="worksName">
  4658. <div>{{ w.sName }}</div>
  4659. </div>
  4660. <div class="commentList">
  4661. <div class="commentList">
  4662. <div
  4663. class="commentImg"
  4664. @click="
  4665. isLikes(w.wid, userid, 1, null, w.isLikes)
  4666. "
  4667. >
  4668. <img
  4669. :src="w.isLikes == true ? likes : noLikes"
  4670. alt=""
  4671. />
  4672. </div>
  4673. <div>{{ w.likesCount }}</div>
  4674. </div>
  4675. <div class="commentList" style="margin-right: 15px">
  4676. <div
  4677. class="commentImg"
  4678. @click="commentOther(w, toolIndex, wIndex)"
  4679. >
  4680. <img
  4681. src="../../assets/icon/comment/comment.png"
  4682. alt=""
  4683. />
  4684. </div>
  4685. <div>{{ w.commentCount }}</div>
  4686. </div>
  4687. </div>
  4688. </div>
  4689. </div>
  4690. </div>
  4691. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4692. 未提交
  4693. </div>
  4694. <div
  4695. class="noWorksS"
  4696. v-if="noWorksS && noWorksS[toolIndex].length"
  4697. >
  4698. <div
  4699. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4700. :key="sIndex"
  4701. class="noWorksName"
  4702. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4703. >
  4704. {{ s.student }}
  4705. </div>
  4706. </div>
  4707. </div>
  4708. <div
  4709. v-if="
  4710. tType &&
  4711. ((tType == 2 && sIsOpen == true) ||
  4712. tType == 1 ||
  4713. tType == 4) &&
  4714. tool.tool.indexOf(6) != -1
  4715. "
  4716. class="worksBox"
  4717. >
  4718. <div
  4719. class="zuoyeYulan"
  4720. v-if="
  4721. worksStudent.length &&
  4722. worksStudent[toolIndex].length > 0
  4723. "
  4724. >
  4725. <div class="worksTop">
  4726. <div>作业预览</div>
  4727. <div
  4728. class="corOpen"
  4729. @click="contract(toolIndex)"
  4730. v-if="
  4731. worksStudent[toolIndex].length > 6 &&
  4732. isCloseList[toolIndex].isClose == 0
  4733. "
  4734. >
  4735. 折叠
  4736. </div>
  4737. <div
  4738. class="corOpen"
  4739. @click="contract(toolIndex)"
  4740. v-if="isCloseList[toolIndex].isClose == 1"
  4741. >
  4742. 展开
  4743. </div>
  4744. </div>
  4745. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4746. </div>
  4747. <div
  4748. class="group_workBox"
  4749. v-for="(g, gindex) in courseGroup.group"
  4750. :key="gindex"
  4751. >
  4752. <div class="group_box">
  4753. <div class="group_title">
  4754. <el-tooltip
  4755. class="item"
  4756. effect="light"
  4757. :content="g.name"
  4758. placement="top"
  4759. >
  4760. <div class="group_name">{{ g.name }}</div>
  4761. </el-tooltip>
  4762. </div>
  4763. <div
  4764. class="group_work"
  4765. v-if="
  4766. g.works &&
  4767. g.works.length &&
  4768. g.works[toolIndex].length
  4769. "
  4770. >
  4771. <div
  4772. class="works"
  4773. style="
  4774. width: 200px;
  4775. height: 140px;
  4776. margin: 10px 10px 10px 0;
  4777. border-radius: 15px;
  4778. box-shadow: 0 0 6px 1px #dfdada;
  4779. "
  4780. v-for="(w, wIndex) in g.works[toolIndex]"
  4781. :key="wIndex"
  4782. :class="w.type == 1 ? 'isTypeOne' : ''"
  4783. >
  4784. <div class="workImg">
  4785. <img
  4786. :src="w.works"
  4787. @click="previewImg(w.works)"
  4788. alt
  4789. />
  4790. <div
  4791. class="answerScore"
  4792. v-if="w.score"
  4793. @click.stop="openScore(w)"
  4794. :class="{
  4795. rightW:
  4796. w.userid == userid ||
  4797. tType == 1 ||
  4798. tType == 4,
  4799. }"
  4800. >
  4801. {{ JSON.parse(w.score).wScore }}分
  4802. </div>
  4803. <div
  4804. class="answerScore"
  4805. @click.stop="openScore(w)"
  4806. v-else-if="courseDetail.userid == userid"
  4807. :class="{
  4808. rightW:
  4809. w.userid == userid ||
  4810. tType == 1 ||
  4811. tType == 4,
  4812. }"
  4813. >
  4814. 评分
  4815. </div>
  4816. <img
  4817. class="deleteImg"
  4818. src="../../assets/deleteworks.png"
  4819. v-if="
  4820. w.userid == userid || tType == 1 || tType == 4
  4821. "
  4822. @click.stop="deleteWorks(w.wid)"
  4823. alt
  4824. />
  4825. </div>
  4826. <div class="comment" style="min-width: 200px">
  4827. <div class="worksName">
  4828. <div>{{ w.sName }}</div>
  4829. </div>
  4830. <div class="commentList">
  4831. <div class="commentList">
  4832. <div
  4833. class="commentImg"
  4834. @click="
  4835. isLikes(w.wid, userid, 1, null, w.isLikes)
  4836. "
  4837. >
  4838. <img
  4839. :src="w.isLikes == true ? likes : noLikes"
  4840. alt=""
  4841. />
  4842. </div>
  4843. <div>{{ w.likesCount }}</div>
  4844. </div>
  4845. <div
  4846. class="commentList"
  4847. style="margin-right: 15px"
  4848. >
  4849. <div
  4850. class="commentImg"
  4851. @click="
  4852. commentOther(
  4853. w,
  4854. toolIndex,
  4855. wIndex,
  4856. null,
  4857. g.id
  4858. )
  4859. "
  4860. >
  4861. <img
  4862. src="../../assets/icon/comment/comment.png"
  4863. alt=""
  4864. />
  4865. </div>
  4866. <div>{{ w.commentCount }}</div>
  4867. </div>
  4868. </div>
  4869. </div>
  4870. </div>
  4871. </div>
  4872. <div class="group_work" v-else>暂无提交作业</div>
  4873. </div>
  4874. </div>
  4875. <div
  4876. class="worksDetailBox"
  4877. v-if="
  4878. worksStudent.length &&
  4879. worksStudent[toolIndex].length > 0
  4880. "
  4881. >
  4882. <div
  4883. class="works"
  4884. style="
  4885. width: 200px;
  4886. height: 140px;
  4887. margin: 10px 10px 10px 0;
  4888. border-radius: 15px;
  4889. box-shadow: 0 0 6px 1px #dfdada;
  4890. "
  4891. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4892. 0
  4893. ? worksStudent[toolIndex]
  4894. : worksStudent[toolIndex].slice(0, 6)"
  4895. :key="wIndex"
  4896. >
  4897. <!-- @click="previewImg(w.works)" -->
  4898. <div class="workImg">
  4899. <img
  4900. :src="w.works"
  4901. @click="previewImg(w.works)"
  4902. alt
  4903. />
  4904. <div
  4905. class="answerScore"
  4906. v-if="w.score"
  4907. @click.stop="openScore(w)"
  4908. :class="{
  4909. rightW:
  4910. w.userid == userid || tType == 1 || tType == 4,
  4911. }"
  4912. >
  4913. {{ JSON.parse(w.score).wScore }}分
  4914. </div>
  4915. <div
  4916. class="answerScore"
  4917. @click.stop="openScore(w)"
  4918. v-else-if="courseDetail.userid == userid"
  4919. :class="{
  4920. rightW:
  4921. w.userid == userid || tType == 1 || tType == 4,
  4922. }"
  4923. >
  4924. 评分
  4925. </div>
  4926. <img
  4927. class="deleteImg"
  4928. src="../../assets/deleteworks.png"
  4929. v-if="
  4930. w.userid == userid || tType == 1 || tType == 4
  4931. "
  4932. @click.stop="deleteWorks(w.wid)"
  4933. alt
  4934. />
  4935. </div>
  4936. <div class="comment" style="min-width: 200px">
  4937. <div class="worksName">
  4938. <div>{{ w.sName }}</div>
  4939. </div>
  4940. <div class="commentList">
  4941. <div class="commentList">
  4942. <div
  4943. class="commentImg"
  4944. @click="
  4945. isLikes(w.wid, userid, 1, null, w.isLikes)
  4946. "
  4947. >
  4948. <img
  4949. :src="w.isLikes == true ? likes : noLikes"
  4950. alt=""
  4951. />
  4952. </div>
  4953. <div>{{ w.likesCount }}</div>
  4954. </div>
  4955. <div class="commentList" style="margin-right: 15px">
  4956. <div
  4957. class="commentImg"
  4958. @click="commentOther(w, toolIndex, wIndex)"
  4959. >
  4960. <img
  4961. src="../../assets/icon/comment/comment.png"
  4962. alt=""
  4963. />
  4964. </div>
  4965. <div>{{ w.commentCount }}</div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. </div>
  4970. </div>
  4971. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4972. 未提交
  4973. </div>
  4974. <div
  4975. class="noWorksS"
  4976. v-if="noWorksS && noWorksS[toolIndex].length"
  4977. >
  4978. <div
  4979. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4980. :key="sIndex"
  4981. class="noWorksName"
  4982. >
  4983. {{ s.student }}
  4984. </div>
  4985. </div>
  4986. </div>
  4987. <div
  4988. v-if="
  4989. tType &&
  4990. ((tType == 2 && sIsOpen == true) ||
  4991. tType == 1 ||
  4992. tType == 4) &&
  4993. tool.tool.indexOf(7) != -1
  4994. "
  4995. class="worksBox"
  4996. >
  4997. <div
  4998. class="zuoyeYulan"
  4999. v-if="
  5000. worksStudent.length &&
  5001. worksStudent[toolIndex].length > 0
  5002. "
  5003. >
  5004. <div class="worksTop">
  5005. <div>作业预览</div>
  5006. <div
  5007. class="corOpen"
  5008. @click="contract(toolIndex)"
  5009. v-if="
  5010. worksStudent[toolIndex].length > 6 &&
  5011. isCloseList[toolIndex].isClose == 0
  5012. "
  5013. >
  5014. 折叠
  5015. </div>
  5016. <div
  5017. class="corOpen"
  5018. @click="contract(toolIndex)"
  5019. v-if="isCloseList[toolIndex].isClose == 1"
  5020. >
  5021. 展开
  5022. </div>
  5023. </div>
  5024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5025. </div>
  5026. <div
  5027. class="group_workBox"
  5028. v-for="(g, gindex) in courseGroup.group"
  5029. :key="gindex"
  5030. >
  5031. <div class="group_box">
  5032. <div class="group_title">
  5033. <el-tooltip
  5034. class="item"
  5035. effect="light"
  5036. :content="g.name"
  5037. placement="top"
  5038. >
  5039. <div class="group_name">{{ g.name }}</div>
  5040. </el-tooltip>
  5041. </div>
  5042. <div
  5043. class="group_work"
  5044. v-if="
  5045. g.works &&
  5046. g.works.length &&
  5047. g.works[toolIndex].length
  5048. "
  5049. >
  5050. <div
  5051. class="works"
  5052. style="
  5053. width: 200px;
  5054. height: 140px;
  5055. margin: 10px 10px 10px 0;
  5056. border-radius: 15px;
  5057. box-shadow: 0 0 6px 1px #dfdada;
  5058. "
  5059. v-for="(w, wIndex) in g.works[toolIndex]"
  5060. :key="wIndex"
  5061. :class="w.type == 1 ? 'isTypeOne' : ''"
  5062. >
  5063. <div class="workImg">
  5064. <img
  5065. :src="w.works"
  5066. @click="previewImg(w.works)"
  5067. alt
  5068. />
  5069. <div
  5070. class="answerScore"
  5071. v-if="w.score"
  5072. @click.stop="openScore(w)"
  5073. :class="{
  5074. rightW:
  5075. w.userid == userid ||
  5076. tType == 1 ||
  5077. tType == 4,
  5078. }"
  5079. >
  5080. {{ JSON.parse(w.score).wScore }}分
  5081. </div>
  5082. <div
  5083. class="answerScore"
  5084. @click.stop="openScore(w)"
  5085. v-else-if="courseDetail.userid == userid"
  5086. :class="{
  5087. rightW:
  5088. w.userid == userid ||
  5089. tType == 1 ||
  5090. tType == 4,
  5091. }"
  5092. >
  5093. 评分
  5094. </div>
  5095. <img
  5096. class="deleteImg"
  5097. src="../../assets/deleteworks.png"
  5098. v-if="
  5099. w.userid == userid || tType == 1 || tType == 4
  5100. "
  5101. @click.stop="deleteWorks(w.wid)"
  5102. alt
  5103. />
  5104. </div>
  5105. <div class="comment" style="min-width: 200px">
  5106. <div class="worksName">
  5107. <div>{{ w.sName }}</div>
  5108. </div>
  5109. <div class="commentList">
  5110. <div class="commentList">
  5111. <div
  5112. class="commentImg"
  5113. @click="
  5114. isLikes(w.wid, userid, 1, null, w.isLikes)
  5115. "
  5116. >
  5117. <img
  5118. :src="w.isLikes == true ? likes : noLikes"
  5119. alt=""
  5120. />
  5121. </div>
  5122. <div>{{ w.likesCount }}</div>
  5123. </div>
  5124. <div
  5125. class="commentList"
  5126. style="margin-right: 15px"
  5127. >
  5128. <div
  5129. class="commentImg"
  5130. @click="
  5131. commentOther(
  5132. w,
  5133. toolIndex,
  5134. wIndex,
  5135. null,
  5136. g.id
  5137. )
  5138. "
  5139. >
  5140. <img
  5141. src="../../assets/icon/comment/comment.png"
  5142. alt=""
  5143. />
  5144. </div>
  5145. <div>{{ w.commentCount }}</div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. </div>
  5150. </div>
  5151. <div class="group_work" v-else>暂无提交作业</div>
  5152. </div>
  5153. </div>
  5154. <div
  5155. class="worksDetailBox"
  5156. v-if="
  5157. worksStudent.length &&
  5158. worksStudent[toolIndex].length > 0
  5159. "
  5160. >
  5161. <div
  5162. class="works"
  5163. style="
  5164. width: 200px;
  5165. height: 140px;
  5166. margin: 10px 10px 10px 0;
  5167. border-radius: 15px;
  5168. box-shadow: 0 0 6px 1px #dfdada;
  5169. "
  5170. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5171. 0
  5172. ? worksStudent[toolIndex]
  5173. : worksStudent[toolIndex].slice(0, 6)"
  5174. :key="wIndex"
  5175. >
  5176. <!-- @click="previewImg(w.works)" -->
  5177. <div class="workImg">
  5178. <img
  5179. :src="w.works"
  5180. @click="previewImg(w.works)"
  5181. alt
  5182. />
  5183. <div
  5184. class="answerScore"
  5185. v-if="w.score"
  5186. @click.stop="openScore(w)"
  5187. :class="{
  5188. rightW:
  5189. w.userid == userid || tType == 1 || tType == 4,
  5190. }"
  5191. >
  5192. {{ JSON.parse(w.score).wScore }}分
  5193. </div>
  5194. <div
  5195. class="answerScore"
  5196. @click.stop="openScore(w)"
  5197. v-else-if="courseDetail.userid == userid"
  5198. :class="{
  5199. rightW:
  5200. w.userid == userid || tType == 1 || tType == 4,
  5201. }"
  5202. >
  5203. 评分
  5204. </div>
  5205. <img
  5206. class="deleteImg"
  5207. src="../../assets/deleteworks.png"
  5208. v-if="
  5209. w.userid == userid || tType == 1 || tType == 4
  5210. "
  5211. @click.stop="deleteWorks(w.wid)"
  5212. alt
  5213. />
  5214. </div>
  5215. <div class="comment" style="min-width: 200px">
  5216. <div class="worksName">
  5217. <div>{{ w.sName }}</div>
  5218. </div>
  5219. <div class="commentList">
  5220. <div class="commentList">
  5221. <div
  5222. class="commentImg"
  5223. @click="
  5224. isLikes(w.wid, userid, 1, null, w.isLikes)
  5225. "
  5226. >
  5227. <img
  5228. :src="w.isLikes == true ? likes : noLikes"
  5229. alt=""
  5230. />
  5231. </div>
  5232. <div>{{ w.likesCount }}</div>
  5233. </div>
  5234. <div class="commentList" style="margin-right: 15px">
  5235. <div
  5236. class="commentImg"
  5237. @click="commentOther(w, toolIndex, wIndex)"
  5238. >
  5239. <img
  5240. src="../../assets/icon/comment/comment.png"
  5241. alt=""
  5242. />
  5243. </div>
  5244. <div>{{ w.commentCount }}</div>
  5245. </div>
  5246. </div>
  5247. </div>
  5248. </div>
  5249. </div>
  5250. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5251. 未提交
  5252. </div>
  5253. <div
  5254. class="noWorksS"
  5255. v-if="noWorksS && noWorksS[toolIndex].length"
  5256. >
  5257. <div
  5258. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5259. :key="sIndex"
  5260. class="noWorksName"
  5261. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5262. >
  5263. {{ s.student }}
  5264. </div>
  5265. </div>
  5266. </div>
  5267. <div
  5268. v-if="
  5269. tType &&
  5270. ((tType == 2 && sIsOpen == true) ||
  5271. tType == 1 ||
  5272. tType == 4) &&
  5273. tool.tool.indexOf(26) != -1
  5274. "
  5275. class="worksBox"
  5276. >
  5277. <div
  5278. class="zuoyeYulan"
  5279. v-if="
  5280. worksStudent.length &&
  5281. worksStudent[toolIndex].length > 0
  5282. "
  5283. >
  5284. <div class="worksTop">
  5285. <div>作业预览</div>
  5286. <div
  5287. class="corOpen"
  5288. @click="contract(toolIndex)"
  5289. v-if="
  5290. worksStudent[toolIndex].length > 6 &&
  5291. isCloseList[toolIndex].isClose == 0
  5292. "
  5293. >
  5294. 折叠
  5295. </div>
  5296. <div
  5297. class="corOpen"
  5298. @click="contract(toolIndex)"
  5299. v-if="isCloseList[toolIndex].isClose == 1"
  5300. >
  5301. 展开
  5302. </div>
  5303. </div>
  5304. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5305. </div>
  5306. <div
  5307. class="worksDetailBox"
  5308. v-if="
  5309. worksStudent.length &&
  5310. worksStudent[toolIndex].length > 0
  5311. "
  5312. >
  5313. <div
  5314. class="works"
  5315. style="width: 240px; height: 140px; overflow: hidden"
  5316. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5317. 0
  5318. ? worksStudent[toolIndex]
  5319. : worksStudent[toolIndex].slice(0, 6)"
  5320. :key="wIndex"
  5321. :class="w.type == 1 ? 'isTypeOne' : ''"
  5322. >
  5323. <div class="workImg" v-if="w.type == 0">
  5324. <img
  5325. :src="w.works"
  5326. @click="previewImg(w.works)"
  5327. alt
  5328. />
  5329. <img
  5330. class="deleteImg"
  5331. src="../../assets/deleteworks.png"
  5332. v-if="
  5333. w.userid == userid || tType == 1 || tType == 4
  5334. "
  5335. @click.stop="deleteWorks(w.wid)"
  5336. alt
  5337. />
  5338. </div>
  5339. <div class="workImg" v-if="w.type == 1">
  5340. <img :src="word" @click="openFile(w.works)" alt />
  5341. <img
  5342. class="deleteImg"
  5343. src="../../assets/deleteworks.png"
  5344. v-if="
  5345. w.userid == userid || tType == 1 || tType == 4
  5346. "
  5347. @click.stop="deleteWorks(w.wid)"
  5348. alt
  5349. />
  5350. </div>
  5351. <div class="worksName">
  5352. <div>{{ w.sName }}</div>
  5353. </div>
  5354. </div>
  5355. </div>
  5356. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5357. 未提交
  5358. </div>
  5359. <div
  5360. class="noWorksS"
  5361. v-if="noWorksS && noWorksS[toolIndex].length"
  5362. >
  5363. <div
  5364. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5365. :key="sIndex"
  5366. class="noWorksName"
  5367. >
  5368. {{ s.student }}
  5369. </div>
  5370. </div>
  5371. </div>
  5372. <div
  5373. v-if="
  5374. tType &&
  5375. ((tType == 2 && sIsOpen == true) ||
  5376. tType == 1 ||
  5377. tType == 4) &&
  5378. tool.tool.indexOf(40) != -1
  5379. "
  5380. class="worksBox"
  5381. >
  5382. <div
  5383. class="zuoyeYulan"
  5384. v-if="
  5385. worksStudent.length &&
  5386. worksStudent[toolIndex].length > 0
  5387. "
  5388. >
  5389. <div class="worksTop">
  5390. <div>作业预览</div>
  5391. <div
  5392. class="corOpen"
  5393. @click="contract(toolIndex)"
  5394. v-if="
  5395. worksStudent[toolIndex].length > 6 &&
  5396. isCloseList[toolIndex].isClose == 0
  5397. "
  5398. >
  5399. 折叠
  5400. </div>
  5401. <div
  5402. class="corOpen"
  5403. @click="contract(toolIndex)"
  5404. v-if="isCloseList[toolIndex].isClose == 1"
  5405. >
  5406. 展开
  5407. </div>
  5408. </div>
  5409. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5410. </div>
  5411. <div
  5412. class="worksDetailBox"
  5413. v-if="
  5414. worksStudent.length &&
  5415. worksStudent[toolIndex].length > 0
  5416. "
  5417. >
  5418. <div
  5419. class="works"
  5420. style="
  5421. width: 200px;
  5422. height: 140px;
  5423. margin: 10px 10px 10px 0;
  5424. border-radius: 15px;
  5425. box-shadow: 0 0 6px 1px #dfdada;
  5426. "
  5427. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5428. 0
  5429. ? worksStudent[toolIndex]
  5430. : worksStudent[toolIndex].slice(0, 6)"
  5431. :key="wIndex"
  5432. :class="w.type == 1 ? 'isTypeOne' : ''"
  5433. >
  5434. <div class="workImg">
  5435. <img
  5436. src="../../assets/icon/works/noImg.png"
  5437. @click="openPj(w.works, toolIndex)"
  5438. alt
  5439. />
  5440. <img
  5441. class="deleteImg"
  5442. src="../../assets/deleteworks.png"
  5443. v-if="
  5444. w.userid == userid || tType == 1 || tType == 4
  5445. "
  5446. @click.stop="deleteWorks(w.wid)"
  5447. alt
  5448. />
  5449. </div>
  5450. <div class="comment" style="min-width: 200px">
  5451. <div class="worksName">
  5452. <div>{{ w.sName }}</div>
  5453. </div>
  5454. <div class="commentList">
  5455. <div class="commentList">
  5456. <div
  5457. class="commentImg"
  5458. @click="
  5459. isLikes(w.wid, userid, 1, null, w.isLikes)
  5460. "
  5461. >
  5462. <img
  5463. :src="w.isLikes == true ? likes : noLikes"
  5464. alt=""
  5465. />
  5466. </div>
  5467. <div>{{ w.likesCount }}</div>
  5468. </div>
  5469. <div class="commentList" style="margin-right: 15px">
  5470. <div
  5471. class="commentImg"
  5472. @click="commentOther(w, toolIndex, wIndex)"
  5473. >
  5474. <img
  5475. src="../../assets/icon/comment/comment.png"
  5476. alt=""
  5477. />
  5478. </div>
  5479. <div>{{ w.commentCount }}</div>
  5480. </div>
  5481. </div>
  5482. </div>
  5483. </div>
  5484. </div>
  5485. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5486. 未提交
  5487. </div>
  5488. <div
  5489. class="noWorksS"
  5490. v-if="noWorksS && noWorksS[toolIndex].length"
  5491. >
  5492. <div
  5493. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5494. :key="sIndex"
  5495. class="noWorksName"
  5496. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5497. >
  5498. {{ s.student }}
  5499. </div>
  5500. </div>
  5501. </div>
  5502. <div
  5503. v-if="
  5504. tType &&
  5505. tType == 2 &&
  5506. !sIsOpen &&
  5507. tool.tool.indexOf(40) != -1
  5508. "
  5509. class="worksBox"
  5510. >
  5511. <div
  5512. class="zuoyeYulan"
  5513. v-if="workStudent[toolIndex].length > 0"
  5514. >
  5515. <span class="worksTitle">作业预览</span>
  5516. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5517. </div>
  5518. <div
  5519. class="worksDetailBox"
  5520. v-if="workStudent[toolIndex].length > 0"
  5521. >
  5522. <div
  5523. class="works"
  5524. style="
  5525. width: 200px;
  5526. height: 140px;
  5527. margin: 10px 10px 10px 0;
  5528. "
  5529. v-for="(w, wIndex) in workStudent[toolIndex]"
  5530. :key="wIndex"
  5531. >
  5532. <div class="workImg">
  5533. <img
  5534. src="../../assets/icon/works/noImg.png"
  5535. @click="openPj(w.works, toolIndex)"
  5536. alt
  5537. />
  5538. <img
  5539. class="deleteImg"
  5540. src="../../assets/deleteworks.png"
  5541. v-if="
  5542. w.userid == userid || tType == 1 || tType == 4
  5543. "
  5544. @click.stop="deleteWorks(w.wid)"
  5545. alt
  5546. />
  5547. </div>
  5548. <div class="worksName">
  5549. <div>{{ w.sName }}</div>
  5550. </div>
  5551. </div>
  5552. </div>
  5553. </div>
  5554. <div
  5555. v-if="
  5556. tType &&
  5557. ((tType == 2 && sIsOpen == true) ||
  5558. tType == 1 ||
  5559. tType == 4) &&
  5560. tool.tool.indexOf(41) != -1
  5561. "
  5562. >
  5563. <AnswerData2
  5564. v-if="
  5565. worksStudent.length &&
  5566. worksStudent[toolIndex].length > 0
  5567. "
  5568. :problemJson="tool.selectJson.answer"
  5569. :people="worksStudent[toolIndex]"
  5570. ></AnswerData2>
  5571. </div>
  5572. <div
  5573. v-if="
  5574. tType &&
  5575. ((tType == 2 && sIsOpen == true) ||
  5576. tType == 1 ||
  5577. tType == 4) &&
  5578. tool.tool.indexOf(41) != -1
  5579. "
  5580. class="worksBox"
  5581. >
  5582. <div
  5583. class="zuoyeYulan"
  5584. v-if="
  5585. worksStudent.length &&
  5586. worksStudent[toolIndex].length > 0
  5587. "
  5588. >
  5589. <div class="worksTop">
  5590. <div>作业预览</div>
  5591. <div
  5592. class="corOpen"
  5593. @click="contract(toolIndex)"
  5594. v-if="
  5595. worksStudent[toolIndex].length > 6 &&
  5596. isCloseList[toolIndex].isClose == 0
  5597. "
  5598. >
  5599. 折叠
  5600. </div>
  5601. <div
  5602. class="corOpen"
  5603. @click="contract(toolIndex)"
  5604. v-if="isCloseList[toolIndex].isClose == 1"
  5605. >
  5606. 展开
  5607. </div>
  5608. </div>
  5609. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5610. </div>
  5611. <div
  5612. class="worksDetailBox"
  5613. v-if="
  5614. worksStudent.length &&
  5615. worksStudent[toolIndex].length > 0
  5616. "
  5617. >
  5618. <div
  5619. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5620. 0
  5621. ? worksStudent[toolIndex]
  5622. : worksStudent[toolIndex].slice(0, 6)"
  5623. :key="wIndex"
  5624. class="isWorksName2"
  5625. @click="openXz(w, toolIndex)"
  5626. >
  5627. {{ w.sName }}
  5628. <img
  5629. class="deleteImg deleteImg2"
  5630. src="../../assets/deleteworks.png"
  5631. v-if="w.userid == userid || tType == 1 || tType == 4"
  5632. @click.stop="deleteWorks(w.wid)"
  5633. alt
  5634. />
  5635. </div>
  5636. <!-- <div
  5637. class="works"
  5638. style="
  5639. width: 200px;
  5640. height: 140px;
  5641. margin: 10px 10px 10px 0;
  5642. border-radius: 15px;
  5643. box-shadow: 0 0 6px 1px #dfdada;
  5644. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5645. :class="w.type == 5 ? 'isTypeOne' : ''">
  5646. <div class="workImg">
  5647. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5648. </div>
  5649. <div class="worksName">
  5650. <div>{{ w.sName }}</div>
  5651. </div>
  5652. </div> -->
  5653. </div>
  5654. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5655. 未提交
  5656. </div>
  5657. <div
  5658. class="noWorksS"
  5659. v-if="noWorksS && noWorksS[toolIndex].length"
  5660. >
  5661. <div
  5662. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5663. :key="sIndex"
  5664. class="noWorksName"
  5665. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5666. >
  5667. {{ s.student }}
  5668. </div>
  5669. </div>
  5670. </div>
  5671. <div
  5672. v-if="
  5673. tType &&
  5674. tType == 2 &&
  5675. !sIsOpen &&
  5676. tool.tool.indexOf(41) != -1
  5677. "
  5678. class="worksBox"
  5679. >
  5680. <div
  5681. class="zuoyeYulan"
  5682. v-if="workStudent[toolIndex].length > 0"
  5683. >
  5684. <span class="worksTitle">作业预览</span>
  5685. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5686. </div>
  5687. <div
  5688. class="worksDetailBox"
  5689. v-if="workStudent[toolIndex].length > 0"
  5690. >
  5691. <div
  5692. class="works"
  5693. style="
  5694. width: 200px;
  5695. height: 140px;
  5696. margin: 10px 10px 10px 0;
  5697. "
  5698. v-for="(w, wIndex) in workStudent[toolIndex]"
  5699. :key="wIndex"
  5700. >
  5701. <div class="workImg">
  5702. <img
  5703. src="../../assets/icon/works/noImg.png"
  5704. @click="openXz(w, toolIndex)"
  5705. alt
  5706. />
  5707. <img
  5708. class="deleteImg"
  5709. src="../../assets/deleteworks.png"
  5710. v-if="
  5711. w.userid == userid || tType == 1 || tType == 4
  5712. "
  5713. @click.stop="deleteWorks(w.wid)"
  5714. alt
  5715. />
  5716. </div>
  5717. <div class="worksName">
  5718. <div>{{ w.sName }}</div>
  5719. </div>
  5720. </div>
  5721. </div>
  5722. </div>
  5723. <div v-if="false" class="xuan_right_box">
  5724. <div
  5725. class="tool_right_box"
  5726. v-for="(item, index) in tool.sentenceList"
  5727. :key="index"
  5728. >
  5729. <div>
  5730. <span
  5731. style="word-break: break-all; white-space: normal"
  5732. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5733. >
  5734. </div>
  5735. <div class="right_box_xuan">
  5736. <span>正确率</span>
  5737. <span>{{
  5738. (checkJson[toolIndex][index].right
  5739. ? checkJson[toolIndex][index].right
  5740. : 0) + "%"
  5741. }}</span>
  5742. </div>
  5743. <div class="right_box_xuan">
  5744. <span>答对人数</span>
  5745. <span>{{
  5746. checkJson[toolIndex][index].rightPerson.length
  5747. }}</span>
  5748. </div>
  5749. </div>
  5750. </div>
  5751. <div
  5752. v-if="
  5753. tType &&
  5754. ((tType == 2 && sIsOpen == true) ||
  5755. tType == 1 ||
  5756. tType == 4) &&
  5757. tool.tool.indexOf(47) != -1
  5758. "
  5759. >
  5760. <AnswerData
  5761. v-if="
  5762. checkJson[toolIndex].length &&
  5763. (tool.sentenceList || tool.sentenceList.length > 0)
  5764. "
  5765. :people="checkJson[toolIndex]"
  5766. ></AnswerData>
  5767. </div>
  5768. <div
  5769. v-if="
  5770. tType &&
  5771. tType == 2 &&
  5772. !sIsOpen &&
  5773. tool.tool.indexOf(47) != -1
  5774. "
  5775. class="worksBox"
  5776. >
  5777. <div
  5778. class="zuoyeYulan"
  5779. v-if="workStudent[toolIndex].length > 0"
  5780. >
  5781. <span class="worksTitle">作业预览</span>
  5782. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5783. </div>
  5784. <div
  5785. class="worksDetailBox"
  5786. v-if="workStudent[toolIndex].length > 0"
  5787. >
  5788. <div
  5789. class="works"
  5790. style="
  5791. width: 200px;
  5792. height: 140px;
  5793. margin: 10px 10px 10px 0;
  5794. "
  5795. v-for="(w, wIndex) in workStudent[toolIndex]"
  5796. :key="wIndex"
  5797. >
  5798. <!-- @click="openXz(w, toolIndex)" -->
  5799. <div class="workImg" @click="openSen(w, toolIndex)">
  5800. <img src="../../assets/icon/works/noImg.png" alt />
  5801. <img
  5802. class="deleteImg"
  5803. src="../../assets/deleteworks.png"
  5804. v-if="
  5805. w.userid == userid || tType == 1 || tType == 4
  5806. "
  5807. @click.stop="deleteWorks(w.wid)"
  5808. alt
  5809. />
  5810. </div>
  5811. <div class="worksName">
  5812. <div>
  5813. {{ w.sName }}
  5814. </div>
  5815. </div>
  5816. </div>
  5817. </div>
  5818. </div>
  5819. <div
  5820. v-if="
  5821. tType &&
  5822. ((tType == 2 && sIsOpen == true) ||
  5823. tType == 1 ||
  5824. tType == 4) &&
  5825. tool.tool.indexOf(47) != -1
  5826. "
  5827. class="worksBox"
  5828. >
  5829. <div
  5830. class="zuoyeYulan"
  5831. v-if="
  5832. worksStudent.length &&
  5833. worksStudent[toolIndex].length > 0
  5834. "
  5835. >
  5836. <div class="worksTop">
  5837. <div>作业预览</div>
  5838. <div
  5839. class="corOpen"
  5840. @click="contract(toolIndex)"
  5841. v-if="
  5842. worksStudent[toolIndex].length > 6 &&
  5843. isCloseList[toolIndex].isClose == 0
  5844. "
  5845. >
  5846. 折叠
  5847. </div>
  5848. <div
  5849. class="corOpen"
  5850. @click="contract(toolIndex)"
  5851. v-if="isCloseList[toolIndex].isClose == 1"
  5852. >
  5853. 展开
  5854. </div>
  5855. </div>
  5856. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5857. </div>
  5858. <div
  5859. class="worksDetailBox"
  5860. v-if="
  5861. worksStudent.length &&
  5862. worksStudent[toolIndex].length > 0
  5863. "
  5864. >
  5865. <!-- @click="openXz(w, toolIndex)" -->
  5866. <div
  5867. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5868. 0
  5869. ? worksStudent[toolIndex]
  5870. : worksStudent[toolIndex].slice(0, 6)"
  5871. :key="wIndex"
  5872. class="isWorksName2"
  5873. @click="openSen(w, toolIndex)"
  5874. >
  5875. {{ w.sName }}
  5876. <img
  5877. class="deleteImg deleteImg2"
  5878. src="../../assets/deleteworks.png"
  5879. v-if="w.userid == userid || tType == 1 || tType == 4"
  5880. @click.stop="deleteWorks(w.wid)"
  5881. alt
  5882. />
  5883. </div>
  5884. </div>
  5885. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5886. 未提交
  5887. </div>
  5888. <div
  5889. class="noWorksS"
  5890. v-if="noWorksS && noWorksS[toolIndex].length"
  5891. >
  5892. <div
  5893. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5894. :key="sIndex"
  5895. class="noWorksName"
  5896. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5897. >
  5898. {{ s.student }}
  5899. </div>
  5900. </div>
  5901. </div>
  5902. <div
  5903. v-if="
  5904. tType &&
  5905. ((tType == 2 && sIsOpen == true) ||
  5906. tType == 1 ||
  5907. tType == 4) &&
  5908. tool.tool.indexOf(48) != -1
  5909. "
  5910. class="worksBox"
  5911. >
  5912. <div
  5913. class="zuoyeYulan"
  5914. v-if="
  5915. worksStudent.length &&
  5916. worksStudent[toolIndex].length > 0
  5917. "
  5918. >
  5919. <div class="worksTop">
  5920. <div>作业预览</div>
  5921. <div
  5922. class="corOpen"
  5923. @click="contract(toolIndex)"
  5924. v-if="
  5925. worksStudent[toolIndex].length > 6 &&
  5926. isCloseList[toolIndex].isClose == 0
  5927. "
  5928. >
  5929. 折叠
  5930. </div>
  5931. <div
  5932. class="corOpen"
  5933. @click="contract(toolIndex)"
  5934. v-if="isCloseList[toolIndex].isClose == 1"
  5935. >
  5936. 展开
  5937. </div>
  5938. </div>
  5939. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5940. </div>
  5941. <div
  5942. class="worksDetailBox"
  5943. v-if="
  5944. worksStudent.length &&
  5945. worksStudent[toolIndex].length > 0
  5946. "
  5947. >
  5948. <div
  5949. class="works"
  5950. style="
  5951. width: 200px;
  5952. height: 140px;
  5953. margin: 10px 10px 10px 0;
  5954. border-radius: 15px;
  5955. box-shadow: 0 0 6px 1px #dfdada;
  5956. "
  5957. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5958. 0
  5959. ? worksStudent[toolIndex]
  5960. : worksStudent[toolIndex].slice(0, 6)"
  5961. :key="wIndex"
  5962. :class="w.type == 1 ? 'isTypeOne' : ''"
  5963. >
  5964. <div class="workImg">
  5965. <img :src="word" @click="openTable(w)" alt />
  5966. <!-- @click="openFile(w.works)" -->
  5967. <div
  5968. class="answerScore"
  5969. v-if="w.score"
  5970. @click.stop="openScore(w)"
  5971. :class="{
  5972. rightW:
  5973. w.userid == userid ||
  5974. tType == 1 ||
  5975. tType == 4 ||
  5976. w.ateacher == userid,
  5977. }"
  5978. >
  5979. {{ JSON.parse(w.score).wScore }}分
  5980. </div>
  5981. <div
  5982. class="answerScore"
  5983. @click.stop="openScore(w)"
  5984. v-else-if="courseDetail.userid == userid"
  5985. :class="{
  5986. rightW:
  5987. w.userid == userid ||
  5988. tType == 1 ||
  5989. tType == 4 ||
  5990. w.ateacher == userid,
  5991. }"
  5992. >
  5993. 评分
  5994. </div>
  5995. <img
  5996. class="deleteImg"
  5997. src="../../assets/deleteworks.png"
  5998. v-if="
  5999. w.userid == userid || tType == 1 || tType == 4
  6000. "
  6001. @click.stop="deleteWorks(w.wid)"
  6002. alt
  6003. />
  6004. </div>
  6005. <div class="comment" style="min-width: 200px">
  6006. <div class="worksName">
  6007. <div>{{ w.sName }}</div>
  6008. </div>
  6009. <div class="commentList">
  6010. <div class="commentList">
  6011. <div
  6012. class="commentImg"
  6013. @click="
  6014. isLikes(w.wid, userid, 1, null, w.isLikes)
  6015. "
  6016. >
  6017. <img
  6018. :src="w.isLikes == true ? likes : noLikes"
  6019. alt=""
  6020. />
  6021. </div>
  6022. <div>{{ w.likesCount }}</div>
  6023. </div>
  6024. <div class="commentList" style="margin-right: 15px">
  6025. <div
  6026. class="commentImg"
  6027. @click="commentOther(w, toolIndex, wIndex)"
  6028. >
  6029. <img
  6030. src="../../assets/icon/comment/comment.png"
  6031. alt=""
  6032. />
  6033. </div>
  6034. <div>{{ w.commentCount }}</div>
  6035. </div>
  6036. </div>
  6037. </div>
  6038. </div>
  6039. </div>
  6040. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6041. 未提交
  6042. </div>
  6043. <div
  6044. class="noWorksS"
  6045. v-if="noWorksS && noWorksS[toolIndex].length"
  6046. >
  6047. <div
  6048. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6049. :key="sIndex"
  6050. class="noWorksName"
  6051. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6052. >
  6053. {{ s.student }}
  6054. </div>
  6055. </div>
  6056. </div>
  6057. <div
  6058. v-if="
  6059. tType &&
  6060. tType == 2 &&
  6061. !sIsOpen &&
  6062. tool.tool.indexOf(48) != -1
  6063. "
  6064. class="worksBox"
  6065. >
  6066. <div
  6067. class="zuoyeYulan"
  6068. v-if="workStudent[toolIndex].length > 0"
  6069. >
  6070. <span class="worksTitle">作业预览</span>
  6071. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6072. </div>
  6073. <div
  6074. class="worksDetailBox"
  6075. v-if="workStudent[toolIndex].length > 0"
  6076. >
  6077. <div
  6078. class="works"
  6079. style="
  6080. width: 200px;
  6081. height: 140px;
  6082. margin: 10px 10px 10px 0;
  6083. box-shadow: 0 0 6px 1px #dfdada;
  6084. "
  6085. v-for="(w, wIndex) in workStudent[toolIndex]"
  6086. :key="wIndex"
  6087. >
  6088. <div class="workImg">
  6089. <img :src="word" @click="openTable(w)" alt />
  6090. <div
  6091. class="answerScore"
  6092. v-if="w.score"
  6093. @click.stop="openScore(w)"
  6094. :class="{
  6095. rightW:
  6096. w.userid == userid || tType == 1 || tType == 4,
  6097. }"
  6098. >
  6099. {{ JSON.parse(w.score).wScore }}分
  6100. </div>
  6101. <div
  6102. class="answerScore"
  6103. @click.stop="openScore(w)"
  6104. v-else-if="courseDetail.userid == userid"
  6105. :class="{
  6106. rightW:
  6107. w.userid == userid || tType == 1 || tType == 4,
  6108. }"
  6109. >
  6110. 评分
  6111. </div>
  6112. <img
  6113. class="deleteImg"
  6114. src="../../assets/deleteworks.png"
  6115. v-if="
  6116. w.userid == userid || tType == 1 || tType == 4
  6117. "
  6118. @click.stop="deleteWorks(w.wid)"
  6119. alt
  6120. />
  6121. </div>
  6122. <div class="worksName">
  6123. <div>{{ w.sName }}</div>
  6124. </div>
  6125. </div>
  6126. </div>
  6127. </div>
  6128. <div
  6129. v-if="
  6130. tType &&
  6131. ((tType == 2 && sIsOpen == true) ||
  6132. tType == 1 ||
  6133. tType == 4) &&
  6134. tool.tool.indexOf(52) != -1
  6135. "
  6136. class="worksBox"
  6137. >
  6138. <div
  6139. class="zuoyeYulan"
  6140. v-if="
  6141. worksStudent.length &&
  6142. worksStudent[toolIndex].length > 0
  6143. "
  6144. >
  6145. <div class="worksTop">
  6146. <div>作业预览</div>
  6147. <div
  6148. class="corOpen"
  6149. @click="contract(toolIndex)"
  6150. v-if="
  6151. worksStudent[toolIndex].length > 6 &&
  6152. isCloseList[toolIndex].isClose == 0
  6153. "
  6154. >
  6155. 折叠
  6156. </div>
  6157. <div
  6158. class="corOpen"
  6159. @click="contract(toolIndex)"
  6160. v-if="isCloseList[toolIndex].isClose == 1"
  6161. >
  6162. 展开
  6163. </div>
  6164. </div>
  6165. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6166. </div>
  6167. <div
  6168. class="worksDetailBox"
  6169. v-if="
  6170. worksStudent.length &&
  6171. worksStudent[toolIndex].length > 0
  6172. "
  6173. >
  6174. <div
  6175. class="works"
  6176. style="
  6177. width: 200px;
  6178. height: 140px;
  6179. margin: 10px 10px 10px 0;
  6180. border-radius: 15px;
  6181. box-shadow: 0 0 6px 1px #dfdada;
  6182. "
  6183. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6184. 0
  6185. ? worksStudent[toolIndex]
  6186. : worksStudent[toolIndex].slice(0, 6)"
  6187. :key="wIndex"
  6188. :class="w.type == 1 ? 'isTypeOne' : ''"
  6189. >
  6190. <div class="workImg">
  6191. <img :src="word" @click="openWord(w)" alt />
  6192. <!-- @click="openFile(w.works)" -->
  6193. <div
  6194. class="answerScore"
  6195. v-if="w.score"
  6196. @click.stop="openScore(w)"
  6197. :class="{
  6198. rightW:
  6199. w.userid == userid ||
  6200. tType == 1 ||
  6201. tType == 4 ||
  6202. w.ateacher == userid,
  6203. }"
  6204. >
  6205. {{ JSON.parse(w.score).wScore }}分
  6206. </div>
  6207. <div
  6208. class="answerScore"
  6209. @click.stop="openScore(w)"
  6210. v-else-if="courseDetail.userid == userid"
  6211. :class="{
  6212. rightW:
  6213. w.userid == userid ||
  6214. tType == 1 ||
  6215. tType == 4 ||
  6216. w.ateacher == userid,
  6217. }"
  6218. >
  6219. 评分
  6220. </div>
  6221. <img
  6222. class="deleteImg"
  6223. src="../../assets/deleteworks.png"
  6224. v-if="
  6225. w.userid == userid || tType == 1 || tType == 4
  6226. "
  6227. @click.stop="deleteWorks(w.wid)"
  6228. alt
  6229. />
  6230. </div>
  6231. <div class="comment" style="min-width: 200px">
  6232. <div class="worksName">
  6233. <div>{{ w.sName }}</div>
  6234. </div>
  6235. <div class="commentList">
  6236. <div class="commentList">
  6237. <div
  6238. class="commentImg"
  6239. @click="
  6240. isLikes(w.wid, userid, 1, null, w.isLikes)
  6241. "
  6242. >
  6243. <img
  6244. :src="w.isLikes == true ? likes : noLikes"
  6245. alt=""
  6246. />
  6247. </div>
  6248. <div>{{ w.likesCount }}</div>
  6249. </div>
  6250. <div class="commentList" style="margin-right: 15px">
  6251. <div
  6252. class="commentImg"
  6253. @click="commentOther(w, toolIndex, wIndex)"
  6254. >
  6255. <img
  6256. src="../../assets/icon/comment/comment.png"
  6257. alt=""
  6258. />
  6259. </div>
  6260. <div>{{ w.commentCount }}</div>
  6261. </div>
  6262. </div>
  6263. </div>
  6264. </div>
  6265. </div>
  6266. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6267. 未提交
  6268. </div>
  6269. <div
  6270. class="noWorksS"
  6271. v-if="noWorksS && noWorksS[toolIndex].length"
  6272. >
  6273. <div
  6274. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6275. :key="sIndex"
  6276. class="noWorksName"
  6277. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6278. >
  6279. {{ s.student }}
  6280. </div>
  6281. </div>
  6282. </div>
  6283. <div
  6284. v-if="
  6285. tType &&
  6286. tType == 2 &&
  6287. !sIsOpen &&
  6288. tool.tool.indexOf(52) != -1
  6289. "
  6290. class="worksBox"
  6291. >
  6292. <div
  6293. class="zuoyeYulan"
  6294. v-if="workStudent[toolIndex].length > 0"
  6295. >
  6296. <span class="worksTitle">作业预览</span>
  6297. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6298. </div>
  6299. <div
  6300. class="worksDetailBox"
  6301. v-if="workStudent[toolIndex].length > 0"
  6302. >
  6303. <div
  6304. class="works"
  6305. style="
  6306. width: 200px;
  6307. height: 140px;
  6308. margin: 10px 10px 10px 0;
  6309. box-shadow: 0 0 6px 1px #dfdada;
  6310. "
  6311. v-for="(w, wIndex) in workStudent[toolIndex]"
  6312. :key="wIndex"
  6313. >
  6314. <div class="workImg">
  6315. <img :src="word" @click="openWord(w)" alt />
  6316. <div
  6317. class="answerScore"
  6318. v-if="w.score"
  6319. @click.stop="openScore(w)"
  6320. :class="{
  6321. rightW:
  6322. w.userid == userid || tType == 1 || tType == 4,
  6323. }"
  6324. >
  6325. {{ JSON.parse(w.score).wScore }}分
  6326. </div>
  6327. <div
  6328. class="answerScore"
  6329. @click.stop="openScore(w)"
  6330. v-else-if="courseDetail.userid == userid"
  6331. :class="{
  6332. rightW:
  6333. w.userid == userid || tType == 1 || tType == 4,
  6334. }"
  6335. >
  6336. 评分
  6337. </div>
  6338. <img
  6339. class="deleteImg"
  6340. src="../../assets/deleteworks.png"
  6341. v-if="
  6342. w.userid == userid || tType == 1 || tType == 4
  6343. "
  6344. @click.stop="deleteWorks(w.wid)"
  6345. alt
  6346. />
  6347. </div>
  6348. <div class="worksName">
  6349. <div>{{ w.sName }}</div>
  6350. </div>
  6351. </div>
  6352. </div>
  6353. </div>
  6354. <div
  6355. v-if="tool.tool.indexOf(49) != -1"
  6356. class="xuan_right_box"
  6357. style="margin: 0 15px 0 25px; width: 93%"
  6358. >
  6359. <div
  6360. v-if="courseDetail.userid == userid"
  6361. style="
  6362. display: flex;
  6363. justify-content: flex-end;
  6364. margin-right: 10px;
  6365. "
  6366. >
  6367. <el-button
  6368. type="primary"
  6369. size="small"
  6370. @click="addTools(49, toolIndex, taskCount)"
  6371. >分组设置</el-button
  6372. >
  6373. </div>
  6374. <div
  6375. v-if="groupStudentUid[toolIndex]"
  6376. class="group_staic_box"
  6377. >
  6378. <div
  6379. v-for="(gp, gd) in tool.groupJson.group"
  6380. :key="gd"
  6381. class="group_staic"
  6382. >
  6383. <span> {{ gp.name }}</span>
  6384. <span>
  6385. 目前人数{{
  6386. groupStudentUid[toolIndex][gd].length
  6387. }}人</span
  6388. >
  6389. </div>
  6390. </div>
  6391. </div>
  6392. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6393. <div
  6394. class="zuoyeYulan"
  6395. v-if="
  6396. worksStudent.length &&
  6397. worksStudent[toolIndex].length > 0
  6398. "
  6399. >
  6400. <span class="worksTitle">作业预览</span>
  6401. </div>
  6402. <div>
  6403. <div
  6404. class="group_workBox"
  6405. v-for="(g, gindex) in tool.groupJson.group"
  6406. :key="gindex"
  6407. >
  6408. <div
  6409. class="group_box"
  6410. v-if="
  6411. groupStudentUid[toolIndex] &&
  6412. worksStudent[toolIndex] &&
  6413. (worksStudent[toolIndex][gindex].length ||
  6414. groupStudentUid[toolIndex][gindex].indexOf(
  6415. userid
  6416. ) != -1)
  6417. "
  6418. >
  6419. <div class="group_title">
  6420. <el-tooltip
  6421. class="item"
  6422. effect="light"
  6423. :content="g.name"
  6424. placement="top"
  6425. >
  6426. <div class="group_name">{{ g.name }}</div>
  6427. </el-tooltip>
  6428. <el-button
  6429. type="primary"
  6430. v-if="
  6431. groupStudentUid[toolIndex][gindex].indexOf(
  6432. userid
  6433. ) != -1
  6434. "
  6435. @click="groupUpload(toolIndex, taskCount, gindex)"
  6436. >上传作业</el-button
  6437. >
  6438. </div>
  6439. <div class="group_work">
  6440. <div
  6441. class="works"
  6442. style="
  6443. width: 200px;
  6444. height: 140px;
  6445. margin: 10px 10px 10px 0;
  6446. border-radius: 15px;
  6447. box-shadow: 0 0 6px 1px #dfdada;
  6448. "
  6449. v-for="(w, wIndex) in worksStudent[toolIndex][
  6450. gindex
  6451. ]"
  6452. :key="wIndex"
  6453. :class="w.type == 1 ? 'isTypeOne' : ''"
  6454. >
  6455. <div class="workImg" v-if="w.type == 0">
  6456. <img
  6457. :src="w.works"
  6458. @click="previewImg(w.works)"
  6459. alt
  6460. />
  6461. <div
  6462. class="answerScore"
  6463. v-if="w.score"
  6464. @click.stop="openScore(w)"
  6465. :class="{
  6466. rightW:
  6467. w.userid == userid ||
  6468. tType == 1 ||
  6469. tType == 4 ||
  6470. w.ateacher == userid,
  6471. }"
  6472. >
  6473. {{ JSON.parse(w.score).wScore }}分
  6474. </div>
  6475. <div
  6476. class="answerScore"
  6477. @click.stop="openScore(w)"
  6478. v-else-if="courseDetail.userid == userid"
  6479. :class="{
  6480. rightW:
  6481. w.userid == userid ||
  6482. tType == 1 ||
  6483. tType == 4 ||
  6484. w.ateacher == userid,
  6485. }"
  6486. >
  6487. 评分
  6488. </div>
  6489. <img
  6490. class="deleteImg"
  6491. src="../../assets/deleteworks.png"
  6492. v-if="
  6493. w.userid == userid ||
  6494. tType == 1 ||
  6495. tType == 4
  6496. "
  6497. @click.stop="deleteWorks(w.wid)"
  6498. alt
  6499. />
  6500. </div>
  6501. <div class="workImg" v-if="w.type == 1">
  6502. <img
  6503. :src="word"
  6504. @click="openFile(w.works)"
  6505. alt
  6506. />
  6507. <!-- @click="openFile(w.works)" -->
  6508. <div
  6509. class="answerScore"
  6510. v-if="w.score"
  6511. @click.stop="openScore(w)"
  6512. :class="{
  6513. rightW:
  6514. w.userid == userid ||
  6515. tType == 1 ||
  6516. tType == 4 ||
  6517. w.ateacher == userid,
  6518. }"
  6519. >
  6520. {{ JSON.parse(w.score).wScore }}分
  6521. </div>
  6522. <div
  6523. class="answerScore"
  6524. @click.stop="openScore(w)"
  6525. v-else-if="courseDetail.userid == userid"
  6526. :class="{
  6527. rightW:
  6528. w.userid == userid ||
  6529. tType == 1 ||
  6530. tType == 4 ||
  6531. w.ateacher == userid,
  6532. }"
  6533. >
  6534. 评分
  6535. </div>
  6536. <img
  6537. class="deleteImg"
  6538. src="../../assets/deleteworks.png"
  6539. v-if="
  6540. w.userid == userid ||
  6541. tType == 1 ||
  6542. tType == 4
  6543. "
  6544. @click.stop="deleteWorks(w.wid)"
  6545. alt
  6546. />
  6547. </div>
  6548. <div class="workImg" v-if="w.type == 3">
  6549. <img
  6550. style="cursor: pointer"
  6551. :src="video"
  6552. @click="openVideo(w)"
  6553. alt
  6554. />
  6555. <!-- @click="openVideo(w.works)" -->
  6556. <div
  6557. class="answerScore"
  6558. v-if="w.score"
  6559. @click.stop="openScore(w)"
  6560. :class="{
  6561. rightW:
  6562. w.userid == userid ||
  6563. tType == 1 ||
  6564. tType == 4 ||
  6565. w.ateacher == userid,
  6566. }"
  6567. >
  6568. {{ JSON.parse(w.score).wScore }}分
  6569. </div>
  6570. <div
  6571. class="answerScore"
  6572. @click.stop="openScore(w)"
  6573. v-else-if="courseDetail.userid == userid"
  6574. :class="{
  6575. rightW:
  6576. w.userid == userid ||
  6577. tType == 1 ||
  6578. tType == 4 ||
  6579. w.ateacher == userid,
  6580. }"
  6581. >
  6582. 评分
  6583. </div>
  6584. <img
  6585. class="deleteImg"
  6586. src="../../assets/deleteworks.png"
  6587. v-if="
  6588. w.userid == userid ||
  6589. tType == 1 ||
  6590. tType == 4
  6591. "
  6592. @click.stop="deleteWorks(w.wid)"
  6593. alt
  6594. />
  6595. </div>
  6596. <div class="workImg" v-if="w.type == 12">
  6597. <img
  6598. style="cursor: pointer"
  6599. :src="word2"
  6600. @click="downloadFile(w.works)"
  6601. alt
  6602. />
  6603. <!-- @click="openVideo(w.works)" -->
  6604. <div
  6605. class="answerScore"
  6606. v-if="w.score"
  6607. @click.stop="openScore(w)"
  6608. :class="{
  6609. rightW:
  6610. w.userid == userid ||
  6611. tType == 1 ||
  6612. tType == 4 ||
  6613. w.ateacher == userid,
  6614. }"
  6615. >
  6616. {{ JSON.parse(w.score).wScore }}分
  6617. </div>
  6618. <div
  6619. class="answerScore"
  6620. @click.stop="openScore(w)"
  6621. v-else-if="courseDetail.userid == userid"
  6622. :class="{
  6623. rightW:
  6624. w.userid == userid ||
  6625. tType == 1 ||
  6626. tType == 4 ||
  6627. w.ateacher == userid,
  6628. }"
  6629. >
  6630. 评分
  6631. </div>
  6632. <img
  6633. class="deleteImg"
  6634. src="../../assets/deleteworks.png"
  6635. v-if="
  6636. w.userid == userid ||
  6637. tType == 1 ||
  6638. tType == 4
  6639. "
  6640. @click.stop="deleteWorks(w.wid)"
  6641. alt
  6642. />
  6643. </div>
  6644. <div class="comment" style="min-width: 200px">
  6645. <div class="worksName">
  6646. <div>{{ w.sName }}</div>
  6647. </div>
  6648. <div class="commentList">
  6649. <div class="commentList">
  6650. <div
  6651. class="commentImg"
  6652. @click="
  6653. isLikes(
  6654. w.wid,
  6655. userid,
  6656. 1,
  6657. null,
  6658. w.isLikes
  6659. )
  6660. "
  6661. >
  6662. <img
  6663. :src="
  6664. w.isLikes == true ? likes : noLikes
  6665. "
  6666. alt=""
  6667. />
  6668. </div>
  6669. <div>{{ w.likesCount }}</div>
  6670. </div>
  6671. <div
  6672. class="commentList"
  6673. style="margin-right: 15px"
  6674. >
  6675. <div
  6676. class="commentImg"
  6677. @click="
  6678. commentOther(
  6679. w,
  6680. toolIndex,
  6681. wIndex,
  6682. gindex
  6683. )
  6684. "
  6685. >
  6686. <img
  6687. src="../../assets/icon/comment/comment.png"
  6688. alt=""
  6689. />
  6690. </div>
  6691. <div>{{ w.commentCount }}</div>
  6692. </div>
  6693. </div>
  6694. </div>
  6695. </div>
  6696. </div>
  6697. </div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. </div>
  6702. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6703. 上传文件
  6704. <input
  6705. type="file"
  6706. accept="image/png, image/gif, image/jpeg"
  6707. style="display: none"
  6708. @change="beforeUpload1($event, 2, index)"
  6709. />
  6710. </div>-->
  6711. </div>
  6712. </div>
  6713. <!-- <div
  6714. class="vedioBox"
  6715. style="margin-top: 10px"
  6716. v-if="
  6717. courseDetail.userid == userid ||
  6718. (courseDetail.course_teacher &&
  6719. courseDetail.course_teacher.indexOf(userid) != -1)
  6720. "
  6721. :style="{
  6722. borderRadius:
  6723. !(
  6724. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6725. .toolChoose[0].tool &&
  6726. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6727. .toolChoose[0].tool.length > 0
  6728. ) &&
  6729. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6730. .taskDetail == '' &&
  6731. vChapterData[taskCount].length == 0 &&
  6732. fileC[taskCount].length == 0
  6733. ? '0 0 20px 20px'
  6734. : '20px',
  6735. }"
  6736. >
  6737. <div
  6738. class="queTop"
  6739. @click="isClose = !isClose"
  6740. style="
  6741. padding: 15px 0 15px 37px;
  6742. justify-content: space-between;
  6743. "
  6744. >
  6745. <div class="queTopTitle">新增工具</div>
  6746. <div class="queTopRight">
  6747. <div class="queTopClose" v-if="isClose == 0">
  6748. 展开
  6749. <div class="closeImg">
  6750. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6751. </div>
  6752. </div>
  6753. <div class="queTopClose" v-if="isClose == 1">
  6754. 折叠
  6755. <div class="openImg">
  6756. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6757. </div>
  6758. </div>
  6759. <el-button
  6760. style="margin: 0 30px 0 auto"
  6761. type="primary"
  6762. size="small"
  6763. v-if="isClose == 1 && checktoolArray.length > 0"
  6764. @click.stop="addToolChoose"
  6765. >确定</el-button
  6766. >
  6767. </div>
  6768. </div>
  6769. <div
  6770. class="tool_work_box"
  6771. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6772. >
  6773. <div class="tool_box">
  6774. <div class="tool_type_box">
  6775. <div class="chooseWho">
  6776. <div
  6777. :class="toolType == 0 ? 'isChooseActive' : ''"
  6778. @click="(toolType = 0), $forceUpdate()"
  6779. >
  6780. 互动类
  6781. </div>
  6782. <div
  6783. :class="toolType == 1 ? 'isChooseActive' : ''"
  6784. @click="(toolType = 1), $forceUpdate()"
  6785. >
  6786. 思维类
  6787. </div>
  6788. <div
  6789. :class="toolType == 2 ? 'isChooseActive' : ''"
  6790. @click="(toolType = 2), $forceUpdate()"
  6791. >
  6792. 测评类
  6793. </div>
  6794. <div
  6795. :class="toolType == 3 ? 'isChooseActive' : ''"
  6796. @click="(toolType = 3), $forceUpdate()"
  6797. >
  6798. 编程类
  6799. </div>
  6800. <div
  6801. :class="toolType == 5 ? 'isChooseActive' : ''"
  6802. @click="(toolType = 5), $forceUpdate()"
  6803. >
  6804. 学科类
  6805. </div>
  6806. </div>
  6807. </div>
  6808. <div>
  6809. <div class="toolSort" v-if="toolType == 0">
  6810. <div class="tool">
  6811. <div class="whiteBIcon" @click="addTools2(10)">
  6812. <img
  6813. src="../../assets/icon/thirdToolList/time.png"
  6814. alt
  6815. />
  6816. <div style="margin: 5px 0">倒计时</div>
  6817. </div>
  6818. <div class="check" @click="addTools2(10)">
  6819. <img
  6820. src="../../assets/icon/checkNo.png"
  6821. alt
  6822. v-if="checktoolArray.indexOf(10) == -1"
  6823. />
  6824. <div class="checkDiv" v-else>
  6825. <img src="../../assets/icon/checkedIs.png" alt /><span
  6826. >已选择</span
  6827. >
  6828. </div>
  6829. </div>
  6830. </div>
  6831. <div class="tool">
  6832. <div class="whiteBIcon" @click="addTools2(65)">
  6833. <img
  6834. src="../../assets/icon/firstToolList/pickPeople.png"
  6835. alt
  6836. />
  6837. <div style="margin: 5px 0">挑人</div>
  6838. </div>
  6839. <div class="check" @click="addTools2(65)">
  6840. <img
  6841. src="../../assets/icon/checkNo.png"
  6842. alt
  6843. v-if="checktoolArray.indexOf(65) == -1"
  6844. />
  6845. <div class="checkDiv" v-else>
  6846. <img src="../../assets/icon/checkedIs.png" alt /><span
  6847. >已选择</span
  6848. >
  6849. </div>
  6850. </div>
  6851. </div>
  6852. </div>
  6853. <div class="toolSort" v-if="toolType == 1">
  6854. <div class="tool">
  6855. <div class="whiteBIcon" @click="addTools2(7)">
  6856. <img
  6857. src="../../assets/icon/secondToolList/mindNetwork.png"
  6858. alt
  6859. />
  6860. <div style="margin: 5px 0">思维网格</div>
  6861. </div>
  6862. <div class="check" @click="addTools2(7)">
  6863. <img
  6864. src="../../assets/icon/checkNo.png"
  6865. alt
  6866. v-if="checktoolArray.indexOf(7) == -1"
  6867. />
  6868. <div class="checkDiv" v-else>
  6869. <img src="../../assets/icon/checkedIs.png" alt /><span
  6870. >已选择</span
  6871. >
  6872. </div>
  6873. </div>
  6874. </div>
  6875. <div class="tool">
  6876. <div class="whiteBIcon" @click="addTools2(1)">
  6877. <img
  6878. src="../../assets/icon/secondToolList/whiteBoard.png"
  6879. alt
  6880. />
  6881. <div style="margin: 5px 0">电子白板</div>
  6882. </div>
  6883. <div class="check" @click="addTools2(1)">
  6884. <img
  6885. src="../../assets/icon/checkNo.png"
  6886. alt
  6887. v-if="checktoolArray.indexOf(1) == -1"
  6888. />
  6889. <div class="checkDiv" v-else>
  6890. <img src="../../assets/icon/checkedIs.png" alt /><span
  6891. >已选择</span
  6892. >
  6893. </div>
  6894. </div>
  6895. </div>
  6896. <div class="tool">
  6897. <div class="whiteBIcon" @click="addTools2(52)">
  6898. <img
  6899. src="../../assets/icon/fourthToolList/text.png"
  6900. alt
  6901. />
  6902. <div style="margin: 5px 0">文档</div>
  6903. </div>
  6904. <div class="check" @click="addTools2(52)">
  6905. <img
  6906. src="../../assets/icon/checkNo.png"
  6907. alt
  6908. v-if="checktoolArray.indexOf(52) == -1"
  6909. />
  6910. <div class="checkDiv" v-else>
  6911. <img src="../../assets/icon/checkedIs.png" alt /><span
  6912. >已选择</span
  6913. >
  6914. </div>
  6915. </div>
  6916. </div>
  6917. <div class="tool">
  6918. <div class="whiteBIcon" @click="addTools2(3)">
  6919. <img
  6920. src="../../assets/icon/secondToolList/mindMapping.png"
  6921. alt
  6922. />
  6923. <div style="margin: 5px 0">思维导图</div>
  6924. </div>
  6925. <div class="check" @click="addTools2(3)">
  6926. <img
  6927. src="../../assets/icon/checkNo.png"
  6928. alt
  6929. v-if="checktoolArray.indexOf(3) == -1"
  6930. />
  6931. <div class="checkDiv" v-else>
  6932. <img src="../../assets/icon/checkedIs.png" alt /><span
  6933. >已选择</span
  6934. >
  6935. </div>
  6936. </div>
  6937. </div>
  6938. <div class="tool">
  6939. <div class="whiteBIcon" @click="addTools2(48)">
  6940. <img
  6941. src="../../assets/icon/fourthToolList/table.png"
  6942. alt
  6943. />
  6944. <div style="margin: 5px 0">表格</div>
  6945. </div>
  6946. <div class="check" @click="addTools2(48)">
  6947. <img
  6948. src="../../assets/icon/checkNo.png"
  6949. alt
  6950. v-if="checktoolArray.indexOf(48) == -1"
  6951. />
  6952. <div class="checkDiv" v-else>
  6953. <img src="../../assets/icon/checkedIs.png" alt /><span
  6954. >已选择</span
  6955. >
  6956. </div>
  6957. </div>
  6958. </div>
  6959. </div>
  6960. <div class="toolSort" v-if="toolType == 6">
  6961. <div v-show="tooC == 49">
  6962. <img
  6963. @click="addTools(tooC, toolIndex, taskCount)"
  6964. src="../../assets/icon/fourthToolList/group.png"
  6965. alt
  6966. />
  6967. <div style="margin: 5px 0">学生分组</div>
  6968. </div>
  6969. </div>
  6970. <div class="toolSort" v-if="toolType == 2">
  6971. <div class="tool">
  6972. <div class="whiteBIcon" @click="addTools2(16)">
  6973. <img
  6974. src="../../assets/icon/thirdToolList/work.png"
  6975. alt
  6976. />
  6977. <div style="margin: 5px 0">作业提交</div>
  6978. </div>
  6979. <div class="check" @click="addTools2(16)">
  6980. <img
  6981. src="../../assets/icon/checkNo.png"
  6982. alt
  6983. v-if="checktoolArray.indexOf(16) == -1"
  6984. />
  6985. <div class="checkDiv" v-else>
  6986. <img src="../../assets/icon/checkedIs.png" alt /><span
  6987. >已选择</span
  6988. >
  6989. </div>
  6990. </div>
  6991. </div>
  6992. <div class="tool">
  6993. <div class="whiteBIcon" @click="addTools2(50)">
  6994. <img
  6995. src="../../assets/icon/thirdToolList/plwork.png"
  6996. alt
  6997. />
  6998. <div style="margin: 5px 0">批量上传</div>
  6999. </div>
  7000. <div class="check" @click="addTools2(50)">
  7001. <img
  7002. src="../../assets/icon/checkNo.png"
  7003. alt
  7004. v-if="checktoolArray.indexOf(50) == -1"
  7005. />
  7006. <div class="checkDiv" v-else>
  7007. <img src="../../assets/icon/checkedIs.png" alt /><span
  7008. >已选择</span
  7009. >
  7010. </div>
  7011. </div>
  7012. </div>
  7013. </div>
  7014. <div class="toolSort" v-if="toolType == 3">
  7015. <div class="tool">
  7016. <div class="whiteBIcon" @click="addTools2(18)">
  7017. <img
  7018. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7019. alt
  7020. />
  7021. <div style="margin: 5px 0">训练平台</div>
  7022. </div>
  7023. <div class="check" @click="addTools2(18)">
  7024. <img
  7025. src="../../assets/icon/checkNo.png"
  7026. alt
  7027. v-if="checktoolArray.indexOf(18) == -1"
  7028. />
  7029. <div class="checkDiv" v-else>
  7030. <img src="../../assets/icon/checkedIs.png" alt /><span
  7031. >已选择</span
  7032. >
  7033. </div>
  7034. </div>
  7035. </div>
  7036. <div class="tool">
  7037. <div class="whiteBIcon" @click="addTools2(21)">
  7038. <img
  7039. src="../../assets/icon/fourthToolList/program.png"
  7040. alt
  7041. />
  7042. <div style="margin: 5px 0">AIoT Blockly</div>
  7043. </div>
  7044. <div class="check" @click="addTools2(21)">
  7045. <img
  7046. src="../../assets/icon/checkNo.png"
  7047. alt
  7048. v-if="checktoolArray.indexOf(21) == -1"
  7049. />
  7050. <div class="checkDiv" v-else>
  7051. <img src="../../assets/icon/checkedIs.png" alt /><span
  7052. >已选择</span
  7053. >
  7054. </div>
  7055. </div>
  7056. </div>
  7057. <div class="tool">
  7058. <div class="whiteBIcon" @click="addTools2(23)">
  7059. <img
  7060. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7061. alt
  7062. />
  7063. <div style="margin: 5px 0">AI Python</div>
  7064. </div>
  7065. <div class="check" @click="addTools2(23)">
  7066. <img
  7067. src="../../assets/icon/checkNo.png"
  7068. alt
  7069. v-if="checktoolArray.indexOf(23) == -1"
  7070. />
  7071. <div class="checkDiv" v-else>
  7072. <img src="../../assets/icon/checkedIs.png" alt /><span
  7073. >已选择</span
  7074. >
  7075. </div>
  7076. </div>
  7077. </div>
  7078. <div class="tool">
  7079. <div class="whiteBIcon" @click="addTools2(24)">
  7080. <img
  7081. src="../../assets/icon/fourthToolList/AIprogram.png"
  7082. alt
  7083. />
  7084. <div style="margin: 5px 0">AI Blockly</div>
  7085. </div>
  7086. <div class="check" @click="addTools2(24)">
  7087. <img
  7088. src="../../assets/icon/checkNo.png"
  7089. alt
  7090. v-if="checktoolArray.indexOf(24) == -1"
  7091. />
  7092. <div class="checkDiv" v-else>
  7093. <img src="../../assets/icon/checkedIs.png" alt /><span
  7094. >已选择</span
  7095. >
  7096. </div>
  7097. </div>
  7098. </div>
  7099. <div class="tool">
  7100. <div class="whiteBIcon" @click="addTools2(32)">
  7101. <img
  7102. src="../../assets/icon/thirdToolList/code.png"
  7103. alt
  7104. />
  7105. <div style="margin: 5px 0">源码编辑</div>
  7106. </div>
  7107. <div class="check" @click="addTools2(32)">
  7108. <img
  7109. src="../../assets/icon/checkNo.png"
  7110. alt
  7111. v-if="checktoolArray.indexOf(32) == -1"
  7112. />
  7113. <div class="checkDiv" v-else>
  7114. <img src="../../assets/icon/checkedIs.png" alt /><span
  7115. >已选择</span
  7116. >
  7117. </div>
  7118. </div>
  7119. </div>
  7120. <div class="tool">
  7121. <div class="whiteBIcon" @click="addTools2(57)">
  7122. <img
  7123. src="../../assets/icon/fourthToolList/cocopi.png"
  7124. alt
  7125. />
  7126. <div style="margin: 5px 0">CocoPi</div>
  7127. </div>
  7128. <div class="check" @click="addTools2(57)">
  7129. <img
  7130. src="../../assets/icon/checkNo.png"
  7131. alt
  7132. v-if="checktoolArray.indexOf(57) == -1"
  7133. />
  7134. <div class="checkDiv" v-else>
  7135. <img src="../../assets/icon/checkedIs.png" alt /><span
  7136. >已选择</span
  7137. >
  7138. </div>
  7139. </div>
  7140. </div>
  7141. <div class="tool">
  7142. <div class="whiteBIcon" @click="addTools2(63)">
  7143. <img
  7144. src="../../assets/icon/fourthToolList/Wood.png"
  7145. alt
  7146. />
  7147. <div style="margin: 5px 0">海龟编程</div>
  7148. </div>
  7149. <div class="check" @click="addTools2(63)">
  7150. <img
  7151. src="../../assets/icon/checkNo.png"
  7152. alt
  7153. v-if="checktoolArray.indexOf(63) == -1"
  7154. />
  7155. <div class="checkDiv" v-else>
  7156. <img src="../../assets/icon/checkedIs.png" alt /><span
  7157. >已选择</span
  7158. >
  7159. </div>
  7160. </div>
  7161. </div>
  7162. </div>
  7163. <div class="toolSort" v-if="toolType == 5">
  7164. <div class="tool">
  7165. <div class="whiteBIcon" @click="addTools2(28)">
  7166. <img
  7167. src="../../assets/icon/secondToolList/translation.png"
  7168. alt
  7169. />
  7170. <div style="margin: 5px 0">翻译</div>
  7171. </div>
  7172. <div class="check" @click="addTools2(28)">
  7173. <img
  7174. src="../../assets/icon/checkNo.png"
  7175. alt
  7176. v-if="checktoolArray.indexOf(28) == -1"
  7177. />
  7178. <div class="checkDiv" v-else>
  7179. <img src="../../assets/icon/checkedIs.png" alt /><span
  7180. >已选择</span
  7181. >
  7182. </div>
  7183. </div>
  7184. </div>
  7185. <div class="tool">
  7186. <div class="whiteBIcon" @click="addTools2(31)">
  7187. <img
  7188. src="../../assets/icon/secondToolList/networkPanel.png"
  7189. alt
  7190. />
  7191. <div style="margin: 5px 0">数字画板</div>
  7192. </div>
  7193. <div class="check" @click="addTools2(31)">
  7194. <img
  7195. src="../../assets/icon/checkNo.png"
  7196. alt
  7197. v-if="checktoolArray.indexOf(31) == -1"
  7198. />
  7199. <div class="checkDiv" v-else>
  7200. <img src="../../assets/icon/checkedIs.png" alt /><span
  7201. >已选择</span
  7202. >
  7203. </div>
  7204. </div>
  7205. </div>
  7206. <div class="tool">
  7207. <div class="whiteBIcon" @click="addTools2(39)">
  7208. <img
  7209. src="../../assets/icon/secondToolList/GeoGebra.png"
  7210. alt
  7211. />
  7212. <div style="margin: 5px 0">GeoGebra</div>
  7213. </div>
  7214. <div class="check" @click="addTools2(39)">
  7215. <img
  7216. src="../../assets/icon/checkNo.png"
  7217. alt
  7218. v-if="checktoolArray.indexOf(39) == -1"
  7219. />
  7220. <div class="checkDiv" v-else>
  7221. <img src="../../assets/icon/checkedIs.png" alt /><span
  7222. >已选择</span
  7223. >
  7224. </div>
  7225. </div>
  7226. </div>
  7227. <div class="tool">
  7228. <div class="whiteBIcon" @click="addTools2(66)">
  7229. <img
  7230. src="../../assets/icon/secondToolList/formulaEdi.png"
  7231. alt
  7232. />
  7233. <div style="margin: 5px 0">公式编辑</div>
  7234. </div>
  7235. <div class="check" @click="addTools2(66)">
  7236. <img
  7237. src="../../assets/icon/checkNo.png"
  7238. alt
  7239. v-if="checktoolArray.indexOf(66) == -1"
  7240. />
  7241. <div class="checkDiv" v-else>
  7242. <img src="../../assets/icon/checkedIs.png" alt /><span
  7243. >已选择</span
  7244. >
  7245. </div>
  7246. </div>
  7247. </div>
  7248. <div class="tool">
  7249. <div class="whiteBIcon" @click="addTools2(67)">
  7250. <img
  7251. src="../../assets/icon/secondToolList/molStr.png"
  7252. alt
  7253. />
  7254. <div style="margin: 5px 0">分子结构</div>
  7255. </div>
  7256. <div class="check" @click="addTools2(67)">
  7257. <img
  7258. src="../../assets/icon/checkNo.png"
  7259. alt
  7260. v-if="checktoolArray.indexOf(67) == -1"
  7261. />
  7262. <div class="checkDiv" v-else>
  7263. <img src="../../assets/icon/checkedIs.png" alt /><span
  7264. >已选择</span
  7265. >
  7266. </div>
  7267. </div>
  7268. </div>
  7269. <div class="tool">
  7270. <div class="whiteBIcon" @click="addTools2(68)">
  7271. <img
  7272. src="../../assets/icon/secondToolList/timeAxis.png"
  7273. alt
  7274. />
  7275. <div style="margin: 5px 0">时间轴</div>
  7276. </div>
  7277. <div class="check" @click="addTools2(68)">
  7278. <img
  7279. src="../../assets/icon/checkNo.png"
  7280. alt
  7281. v-if="checktoolArray.indexOf(68) == -1"
  7282. />
  7283. <div class="checkDiv" v-else>
  7284. <img src="../../assets/icon/checkedIs.png" alt /><span
  7285. >已选择</span
  7286. >
  7287. </div>
  7288. </div>
  7289. </div>
  7290. </div>
  7291. <div class="toolSort" v-if="toolType == 7">
  7292. <div class="tool">
  7293. <div class="whiteBIcon" @click="addTools2(40)">
  7294. <img
  7295. src="../../assets/icon/secondToolList/eval.png"
  7296. alt
  7297. />
  7298. <div style="margin: 5px 0">个人评价</div>
  7299. </div>
  7300. <div class="check" @click="addTools2(40)">
  7301. <img
  7302. src="../../assets/icon/checkNo.png"
  7303. alt
  7304. v-if="checktoolArray.indexOf(40) == -1"
  7305. />
  7306. <div class="checkDiv" v-else>
  7307. <img src="../../assets/icon/checkedIs.png" alt /><span
  7308. >已选择</span
  7309. >
  7310. </div>
  7311. </div>
  7312. </div>
  7313. </div>
  7314. <div class="toolSort" v-if="toolType == 4">
  7315. <div class="tool">
  7316. <div class="whiteBIcon" @click="addTools2(26)">
  7317. <img
  7318. src="../../assets/icon/thirdToolList/courseDesign.png"
  7319. alt
  7320. />
  7321. <div style="margin: 5px 0">课程设计</div>
  7322. </div>
  7323. <div class="check" @click="addTools2(26)">
  7324. <img
  7325. src="../../assets/icon/checkNo.png"
  7326. alt
  7327. v-if="checktoolArray.indexOf(26) == -1"
  7328. />
  7329. <div class="checkDiv" v-else>
  7330. <img src="../../assets/icon/checkedIs.png" alt /><span
  7331. >已选择</span
  7332. >
  7333. </div>
  7334. </div>
  7335. </div>
  7336. <div class="tool">
  7337. <div class="whiteBIcon" @click="addTools2(25)">
  7338. <img
  7339. src="../../assets/icon/thirdToolList/evalua.png"
  7340. alt
  7341. />
  7342. <div style="margin: 5px 0">目标管理</div>
  7343. </div>
  7344. <div class="check" @click="addTools2(25)">
  7345. <img
  7346. src="../../assets/icon/checkNo.png"
  7347. alt
  7348. v-if="checktoolArray.indexOf(25) == -1"
  7349. />
  7350. <div class="checkDiv" v-else>
  7351. <img src="../../assets/icon/checkedIs.png" alt /><span
  7352. >已选择</span
  7353. >
  7354. </div>
  7355. </div>
  7356. </div>
  7357. </div>
  7358. </div>
  7359. </div>
  7360. </div>
  7361. </div> -->
  7362. <div
  7363. class="vedioBox"
  7364. style="margin-top: 10px; border-radius: 20px"
  7365. v-if="
  7366. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7367. .eList &&
  7368. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7369. .eList.length &&
  7370. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7371. .eList.length > 0 &&
  7372. tType != 2
  7373. "
  7374. >
  7375. <div
  7376. class="queTop"
  7377. style="
  7378. font-size: 20px;
  7379. padding: 15px 0 15px 37px;
  7380. font-weight: bold;
  7381. "
  7382. >
  7383. <!-- <div class="question" style="width: 30px">
  7384. <img src="../../assets/icon/toolIcon.png" alt />
  7385. </div>
  7386. <div class="queTitle">
  7387. <div>工具</div>
  7388. </div>-->
  7389. 评一评
  7390. </div>
  7391. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7392. <div class="elist_input">
  7393. <el-table
  7394. :data="
  7395. chapInfoList[courseType].chapterInfo[0].taskJson[
  7396. taskCount
  7397. ].eList
  7398. "
  7399. :header-cell-style="{ background: '#F0F4FA' }"
  7400. :row-class-name="tableRowClassName"
  7401. border
  7402. stripe
  7403. style="width: 100%"
  7404. >
  7405. <el-table-column
  7406. label="评价名称"
  7407. width="180"
  7408. align="center"
  7409. >
  7410. <template slot-scope="scope"
  7411. ><div>{{ scope.row.value }}</div></template
  7412. >
  7413. </el-table-column>
  7414. <el-table-column
  7415. label="评价描述"
  7416. width="180"
  7417. align="center"
  7418. >
  7419. <template slot-scope="scope"
  7420. ><div>
  7421. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7422. </div></template
  7423. >
  7424. </el-table-column>
  7425. <el-table-column label="目标" align="center">
  7426. <template slot-scope="scope"
  7427. ><div>
  7428. {{
  7429. scope.row.target
  7430. ? scope.row.target[scope.row.target.length - 1]
  7431. : "-"
  7432. }}
  7433. </div></template
  7434. ></el-table-column
  7435. >
  7436. </el-table>
  7437. <!-- <div
  7438. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7439. .chapterInfo[0].taskJson[taskCount].eList"
  7440. :key="eIndex"
  7441. class="elist_input_box"
  7442. >
  7443. <div style="width: 95%">
  7444. <div
  7445. style="
  7446. display: flex;
  7447. flex-direction: row;
  7448. flex-wrap: nowrap;
  7449. align-items: center;
  7450. "
  7451. >
  7452. <div style="max-width: calc(100% - 285px)">
  7453. <span>{{ eItem.value }}</span>
  7454. </div>
  7455. <div
  7456. style="
  7457. padding-left: 25px;
  7458. display: flex;
  7459. flex-direction: row;
  7460. align-items: center;
  7461. "
  7462. >
  7463. <el-rate
  7464. v-model="eItem.score"
  7465. :colors="colors"
  7466. disabled
  7467. ></el-rate>
  7468. </div>
  7469. </div>
  7470. <div class="elist_inptu_text" style="padding-left: 10px">
  7471. <span v-if="eItem.detail != ''">{{
  7472. eItem.detail
  7473. }}</span>
  7474. <span v-else style="color: #b2b1b3; font-size: 14px"
  7475. >暂无描述...</span
  7476. >
  7477. </div>
  7478. </div>
  7479. </div> -->
  7480. </div>
  7481. <div
  7482. v-if="evalua"
  7483. style="
  7484. border: 1px solid #e5e5e5;
  7485. max-width: 650px;
  7486. width: 100%;
  7487. margin-top: 20px;
  7488. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7489. "
  7490. >
  7491. <div class="e_add_top">
  7492. <div class="e_add_title">
  7493. <span>目标管理名称</span>
  7494. <span>{{ eTitle }}</span>
  7495. <img
  7496. src="../../assets/line.png"
  7497. class="cru_line"
  7498. style="
  7499. width: 125px;
  7500. height: 20px;
  7501. bottom: -10px;
  7502. left: 120px;
  7503. "
  7504. />
  7505. <!-- <el-input
  7506. v-model="eTitle"
  7507. placeholder="请输入名称"
  7508. @change="setMindData"
  7509. ></el-input>-->
  7510. </div>
  7511. </div>
  7512. <div class="e_add_content">
  7513. <div class="e_add_list_pbox">
  7514. <div class="e_add_list_pbox_title">
  7515. <span class="type_title">切换模式</span>
  7516. <div class="type_content">
  7517. <span
  7518. :class="{ active: typeMode == 1 }"
  7519. @click="typeMode = 1"
  7520. >目标树</span
  7521. >
  7522. <span
  7523. :class="{ active: typeMode == 2 }"
  7524. @click="typeMode = 2"
  7525. >目标罗盘</span
  7526. >
  7527. <span
  7528. :class="{ active: typeMode == 3 }"
  7529. @click="typeMode = 3"
  7530. >目标看板</span
  7531. >
  7532. </div>
  7533. </div>
  7534. <div class="e_add_list_pbox_content">
  7535. <Mind
  7536. :showBar="false"
  7537. :mindData="data"
  7538. style="width: 100%"
  7539. v-show="typeMode == 1"
  7540. ></Mind>
  7541. <Sunburst
  7542. :Josn="eJson"
  7543. :num="eJSONNum"
  7544. style="width: 100%"
  7545. v-if="typeMode == 2"
  7546. ></Sunburst>
  7547. <SeeBoard
  7548. :Josn="eJson"
  7549. :num="eJSONNum"
  7550. :ename="eTitle"
  7551. style="width: 100%"
  7552. v-if="typeMode == 3"
  7553. >
  7554. </SeeBoard>
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. </div>
  7560. </div>
  7561. <!-- <div
  7562. class="project_box"
  7563. style="margin-top: 15px; padding-bottom: 30px"
  7564. >
  7565. <div
  7566. style="
  7567. display: flex;
  7568. flex-wrap: nowrap;
  7569. flex-direction: column;
  7570. position: relative;
  7571. "
  7572. >
  7573. <div class="queTop">
  7574. <div class="question">
  7575. <img src="../../assets/icon/homeWork.png" alt="" />
  7576. </div>
  7577. <div class="queTitle">
  7578. <div>作业提交<span>(提交图文视频等)</span></div>
  7579. <div>:任务:{{ task.task }}</div>
  7580. </div>
  7581. </div>
  7582. <div class="ediBottom">
  7583. <div
  7584. class="addEditor"
  7585. style="margin-top: 23px"
  7586. @click="openAddWork"
  7587. v-if="!isNoHomeWork"
  7588. >
  7589. 选择文件
  7590. </div>
  7591. <div
  7592. class="addEditor"
  7593. style="margin-top: 23px"
  7594. @click="openAddWork"
  7595. v-else
  7596. >
  7597. 已提交
  7598. </div>
  7599. </div>
  7600. </div>
  7601. </div>-->
  7602. </div>
  7603. </div>
  7604. <el-dialog
  7605. title="作业提交"
  7606. :visible.sync="dialogVisible"
  7607. :append-to-body="true"
  7608. width="500px"
  7609. :before-close="handleClose"
  7610. class="dialog_change"
  7611. >
  7612. <div class="marginT">
  7613. <div>上传文件</div>
  7614. <div
  7615. class="chapter_add"
  7616. @click="addImg($event)"
  7617. v-if="studyJuri[0].cover.length == 0"
  7618. >
  7619. <div class="up_photo">
  7620. <img src="../../assets/icon/uploadImg.png" alt />
  7621. </div>
  7622. <!-- <input
  7623. type="file"
  7624. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7625. style="display: none"
  7626. @change="beforeUpload1($event, 1)"
  7627. /> -->
  7628. <input
  7629. type="file"
  7630. accept="*"
  7631. style="display: none"
  7632. @change="beforeUpload1($event, 1)"
  7633. />
  7634. <!-- <input
  7635. type="file"
  7636. accept="image/*"
  7637. capture="camera"
  7638. style="display: none"
  7639. @change="beforeUpload1($event, 1)"
  7640. /> -->
  7641. </div>
  7642. <div
  7643. class="chapter_add"
  7644. style="
  7645. display: flex;
  7646. width: 100%;
  7647. flex-direction: row;
  7648. flex-wrap: wrap;
  7649. justify-content: flex-start;
  7650. padding: 15px 0;
  7651. "
  7652. v-if="studyJuri[0].cover.length > 0"
  7653. >
  7654. <div class="upCover">
  7655. <img
  7656. :src="studyJuri[0].cover[0].url"
  7657. alt
  7658. v-if="fileType == 0"
  7659. />
  7660. <img :src="word" alt v-else-if="fileType == 1" />
  7661. <img :src="video" alt v-else-if="fileType == 2" />
  7662. <img :src="word2" alt v-else-if="fileType == 3" />
  7663. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7664. <div class="deleteWord" @click="clean(1)">
  7665. <img src="../../assets/icon/deleteWorks.png" alt />
  7666. </div>
  7667. </div>
  7668. </div>
  7669. </div>
  7670. <div
  7671. class="upload_send"
  7672. @click="addCourseWorks(taskCount)"
  7673. v-if="!proVisible"
  7674. >
  7675. 提交
  7676. </div>
  7677. </el-dialog>
  7678. </div>
  7679. </div>
  7680. <div
  7681. class="pButton"
  7682. @click="(pzDialog = true), selectPz()"
  7683. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7684. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7685. >
  7686. <!-- 批 -->
  7687. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7688. </div>
  7689. <div v-if="pzDialog == true" class="newDialogCss">
  7690. <div class="pzTop2">
  7691. <!-- <div>批注</div>
  7692. <div @click="pzDialog = false">
  7693. <img src="../../assets/close1.png" alt="" />
  7694. </div> -->
  7695. <div class="checkbox">
  7696. <div class="check" style="font-size: 25px; position: unset">
  7697. 评课笔记
  7698. </div>
  7699. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7700. <el-option label="时间降序" :value="1"></el-option>
  7701. <el-option label="时间升序" :value="2"></el-option>
  7702. <el-option label="我的评课" :value="3"></el-option>
  7703. </el-select>
  7704. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7705. </div>
  7706. </div>
  7707. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7708. <div class="pzListBox" v-if="pzList && pzList.length">
  7709. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7710. <div class="pzNavTop">
  7711. <div>批</div>
  7712. <div>
  7713. {{
  7714. pz.username && pz.username.length > 5
  7715. ? pz.username.substring(0, 5) + "..."
  7716. : pz.username
  7717. }}的批注
  7718. </div>
  7719. <div
  7720. class="pzDelete"
  7721. v-if="pz.userid == userid"
  7722. @click="deletePz(pz.id)"
  7723. >
  7724. 删除
  7725. </div>
  7726. </div>
  7727. <div
  7728. @click="checkImg(getImgList(pz.content))"
  7729. class="pzContent cont"
  7730. v-html="pz.content"
  7731. v-if="pz.type == '1'"
  7732. ></div>
  7733. <div class="pzContent" v-if="pz.type == '2'">
  7734. <audio :src="pz.content" controls="controls" ref="audio">
  7735. Your browser does not support the audio element.
  7736. </audio>
  7737. </div>
  7738. <div class="pzContent" v-if="pz.type == '3'">
  7739. <img
  7740. :src="pz.content"
  7741. style="width: 90%; margin: 0 auto; display: block"
  7742. @click="previewImg(pz.content)"
  7743. />
  7744. </div>
  7745. <div class="timeAndReply">
  7746. <div class="time">
  7747. {{ pz.time }}
  7748. </div>
  7749. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7750. </div>
  7751. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7752. <div
  7753. v-for="(h, hIndex) in pz.hfList"
  7754. :key="hIndex"
  7755. class="hfItem"
  7756. >
  7757. <div class="whoReplyWho">
  7758. <div class="hfName">{{ h.username }}</div>
  7759. <div class="hfImg">
  7760. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7761. </div>
  7762. <div class="hfName">{{ pz.username }}</div>
  7763. </div>
  7764. <div class="hfContent" v-html="h.content"></div>
  7765. <div class="hfBottom">
  7766. <div class="hfTime">{{ h.time }}</div>
  7767. <div
  7768. class="deleteHfItem"
  7769. @click="deleteReply(h.id)"
  7770. v-if="userid == h.userid"
  7771. >
  7772. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7773. </div>
  7774. </div>
  7775. </div>
  7776. </div>
  7777. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7778. <div class="replyInput">
  7779. <el-input v-model="reply[pzIndex]"></el-input>
  7780. </div>
  7781. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7782. </div> -->
  7783. </div>
  7784. </div>
  7785. <div class="noPz" v-else>
  7786. <img src="../../assets/icon/noPz.png" alt="" />
  7787. </div>
  7788. <div class="addPzButton">
  7789. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7790. 添加批注
  7791. </div>
  7792. <!-- <div class="img1">
  7793. <div @click="(addPzDialog = true), (pzType = 2)">
  7794. <img src="../../assets/audio.png" /><span>音频</span>
  7795. </div>
  7796. </div> -->
  7797. </div>
  7798. </div>
  7799. </div>
  7800. <div
  7801. v-if="toolDialogVisible == true"
  7802. class="toolMask"
  7803. @click="toolDialogVisible = false"
  7804. ></div>
  7805. <div v-if="toolDialogVisible == true" class="addToolCss">
  7806. <div class="toolTop">
  7807. <div style="font-weight: bold">新增工具</div>
  7808. <div @click="toolDialogVisible = false">
  7809. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7810. </div>
  7811. </div>
  7812. <div class="tool_box">
  7813. <div class="tool_type_box">
  7814. <div class="chooseWho">
  7815. <div
  7816. :class="toolType == 0 ? 'isChooseActive' : ''"
  7817. @click="(toolType = 0), $forceUpdate()"
  7818. >
  7819. 互动类
  7820. </div>
  7821. <div
  7822. :class="toolType == 1 ? 'isChooseActive' : ''"
  7823. @click="(toolType = 1), $forceUpdate()"
  7824. >
  7825. 思维类
  7826. </div>
  7827. <div
  7828. :class="toolType == 2 ? 'isChooseActive' : ''"
  7829. @click="(toolType = 2), $forceUpdate()"
  7830. >
  7831. 测评类
  7832. </div>
  7833. <div
  7834. :class="toolType == 3 ? 'isChooseActive' : ''"
  7835. @click="(toolType = 3), $forceUpdate()"
  7836. >
  7837. 编程类
  7838. </div>
  7839. <div
  7840. :class="toolType == 5 ? 'isChooseActive' : ''"
  7841. @click="(toolType = 5), $forceUpdate()"
  7842. >
  7843. 学科类
  7844. </div>
  7845. </div>
  7846. </div>
  7847. <div>
  7848. <div class="toolSort" v-if="toolType == 0">
  7849. <div
  7850. class="tool"
  7851. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7852. @click="addTools2(10)"
  7853. >
  7854. <div class="whiteBIcon">
  7855. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7856. <div style="margin: 5px 0">倒计时</div>
  7857. </div>
  7858. <div class="check">
  7859. <div
  7860. v-if="checktoolArray.indexOf(10) == -1"
  7861. class="noChoose"
  7862. ></div>
  7863. <div v-else class="isChoose"></div>
  7864. </div>
  7865. </div>
  7866. <div
  7867. class="tool"
  7868. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7869. @click="addTools2(65)"
  7870. >
  7871. <div class="whiteBIcon">
  7872. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7873. <div style="margin: 5px 0">挑人</div>
  7874. </div>
  7875. <div class="check">
  7876. <div
  7877. v-if="checktoolArray.indexOf(65) == -1"
  7878. class="noChoose"
  7879. ></div>
  7880. <div v-else class="isChoose"></div>
  7881. </div>
  7882. </div>
  7883. </div>
  7884. <div class="toolSort" v-if="toolType == 1">
  7885. <div
  7886. class="tool"
  7887. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7888. @click="addTools2(7)"
  7889. >
  7890. <div class="whiteBIcon">
  7891. <img
  7892. src="../../assets/icon/secondToolList/mindNetwork.png"
  7893. alt
  7894. />
  7895. <div style="margin: 5px 0">思维网格</div>
  7896. </div>
  7897. <div class="check">
  7898. <div
  7899. v-if="checktoolArray.indexOf(7) == -1"
  7900. class="noChoose"
  7901. ></div>
  7902. <div v-else class="isChoose"></div>
  7903. </div>
  7904. </div>
  7905. <div
  7906. class="tool"
  7907. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7908. @click="addTools2(1)"
  7909. >
  7910. <div class="whiteBIcon">
  7911. <img
  7912. src="../../assets/icon/secondToolList/whiteBoard.png"
  7913. alt
  7914. />
  7915. <div style="margin: 5px 0">电子白板</div>
  7916. </div>
  7917. <div class="check">
  7918. <div
  7919. v-if="checktoolArray.indexOf(1) == -1"
  7920. class="noChoose"
  7921. ></div>
  7922. <div v-else class="isChoose"></div>
  7923. </div>
  7924. </div>
  7925. <div
  7926. class="tool"
  7927. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7928. @click="addTools2(52)"
  7929. >
  7930. <div class="whiteBIcon">
  7931. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7932. <div style="margin: 5px 0">文档</div>
  7933. </div>
  7934. <div class="check">
  7935. <div
  7936. v-if="checktoolArray.indexOf(52) == -1"
  7937. class="noChoose"
  7938. ></div>
  7939. <div v-else class="isChoose"></div>
  7940. </div>
  7941. </div>
  7942. <div
  7943. class="tool"
  7944. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7945. @click="addTools2(3)"
  7946. >
  7947. <div class="whiteBIcon">
  7948. <img
  7949. src="../../assets/icon/secondToolList/mindMapping.png"
  7950. alt
  7951. />
  7952. <div style="margin: 5px 0">思维导图</div>
  7953. </div>
  7954. <div class="check">
  7955. <div
  7956. v-if="checktoolArray.indexOf(3) == -1"
  7957. class="noChoose"
  7958. ></div>
  7959. <div v-else class="isChoose"></div>
  7960. </div>
  7961. </div>
  7962. <div
  7963. class="tool"
  7964. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7965. @click="addTools2(48)"
  7966. >
  7967. <div class="whiteBIcon">
  7968. <img src="../../assets/icon/fourthToolList/table.png" alt />
  7969. <div style="margin: 5px 0">表格</div>
  7970. </div>
  7971. <div class="check">
  7972. <div
  7973. v-if="checktoolArray.indexOf(48) == -1"
  7974. class="noChoose"
  7975. ></div>
  7976. <div v-else class="isChoose"></div>
  7977. </div>
  7978. </div>
  7979. </div>
  7980. <div class="toolSort" v-if="toolType == 6">
  7981. <div v-show="tooC == 49">
  7982. <img
  7983. @click="addTools(tooC, toolIndex, taskCount)"
  7984. src="../../assets/icon/fourthToolList/group.png"
  7985. alt
  7986. />
  7987. <div style="margin: 5px 0">学生分组</div>
  7988. </div>
  7989. </div>
  7990. <div class="toolSort" v-if="toolType == 2">
  7991. <div
  7992. class="tool"
  7993. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7994. @click="addTools2(16)"
  7995. >
  7996. <div class="whiteBIcon">
  7997. <img src="../../assets/icon/thirdToolList/work.png" alt />
  7998. <div style="margin: 5px 0">作业提交</div>
  7999. </div>
  8000. <div class="check">
  8001. <div
  8002. v-if="checktoolArray.indexOf(16) == -1"
  8003. class="noChoose"
  8004. ></div>
  8005. <div v-else class="isChoose"></div>
  8006. </div>
  8007. </div>
  8008. <div
  8009. class="tool"
  8010. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8011. @click="addTools2(50)"
  8012. >
  8013. <div class="whiteBIcon">
  8014. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8015. <div style="margin: 5px 0">批量上传</div>
  8016. </div>
  8017. <div class="check">
  8018. <div
  8019. v-if="checktoolArray.indexOf(50) == -1"
  8020. class="noChoose"
  8021. ></div>
  8022. <div v-else class="isChoose"></div>
  8023. </div>
  8024. </div>
  8025. </div>
  8026. <div class="toolSort" v-if="toolType == 3">
  8027. <div
  8028. class="tool"
  8029. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8030. @click="addTools2(18)"
  8031. >
  8032. <div class="whiteBIcon">
  8033. <img
  8034. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8035. alt
  8036. />
  8037. <div style="margin: 5px 0">训练平台</div>
  8038. </div>
  8039. <div class="check">
  8040. <div
  8041. v-if="checktoolArray.indexOf(18) == -1"
  8042. class="noChoose"
  8043. ></div>
  8044. <div v-else class="isChoose"></div>
  8045. </div>
  8046. </div>
  8047. <div
  8048. class="tool"
  8049. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8050. @click="addTools2(21)"
  8051. >
  8052. <div class="whiteBIcon">
  8053. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8054. <div style="margin: 5px 0">AIoT Blockly</div>
  8055. </div>
  8056. <div class="check">
  8057. <div
  8058. v-if="checktoolArray.indexOf(21) == -1"
  8059. class="noChoose"
  8060. ></div>
  8061. <div v-else class="isChoose"></div>
  8062. </div>
  8063. </div>
  8064. <div
  8065. class="tool"
  8066. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8067. @click="addTools2(23)"
  8068. >
  8069. <div class="whiteBIcon">
  8070. <img
  8071. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8072. alt
  8073. />
  8074. <div style="margin: 5px 0">AI Python</div>
  8075. </div>
  8076. <div class="check">
  8077. <div
  8078. v-if="checktoolArray.indexOf(23) == -1"
  8079. class="noChoose"
  8080. ></div>
  8081. <div v-else class="isChoose"></div>
  8082. </div>
  8083. </div>
  8084. <div
  8085. class="tool"
  8086. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8087. @click="addTools2(24)"
  8088. >
  8089. <div class="whiteBIcon">
  8090. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8091. <div style="margin: 5px 0">AI Blockly</div>
  8092. </div>
  8093. <div class="check">
  8094. <div
  8095. v-if="checktoolArray.indexOf(24) == -1"
  8096. class="noChoose"
  8097. ></div>
  8098. <div v-else class="isChoose"></div>
  8099. </div>
  8100. </div>
  8101. <div
  8102. class="tool"
  8103. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8104. @click="addTools2(32)"
  8105. >
  8106. <div class="whiteBIcon">
  8107. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8108. <div style="margin: 5px 0">源码编辑</div>
  8109. </div>
  8110. <div class="check">
  8111. <div
  8112. v-if="checktoolArray.indexOf(32) == -1"
  8113. class="noChoose"
  8114. ></div>
  8115. <div v-else class="isChoose"></div>
  8116. </div>
  8117. </div>
  8118. <div
  8119. class="tool"
  8120. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8121. @click="addTools2(57)"
  8122. >
  8123. <div class="whiteBIcon">
  8124. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8125. <div style="margin: 5px 0">CocoPi</div>
  8126. </div>
  8127. <div class="check">
  8128. <div
  8129. v-if="checktoolArray.indexOf(57) == -1"
  8130. class="noChoose"
  8131. ></div>
  8132. <div v-else class="isChoose"></div>
  8133. </div>
  8134. </div>
  8135. <div
  8136. class="tool"
  8137. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8138. @click="addTools2(63)"
  8139. >
  8140. <div class="whiteBIcon">
  8141. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8142. <div style="margin: 5px 0">海龟编程</div>
  8143. </div>
  8144. <div class="check">
  8145. <div
  8146. v-if="checktoolArray.indexOf(63) == -1"
  8147. class="noChoose"
  8148. ></div>
  8149. <div v-else class="isChoose"></div>
  8150. </div>
  8151. </div>
  8152. </div>
  8153. <div class="toolSort" v-if="toolType == 7">
  8154. <div
  8155. class="tool"
  8156. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8157. @click="addTools2(40)"
  8158. >
  8159. <div class="whiteBIcon">
  8160. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8161. <div style="margin: 5px 0">个人评价</div>
  8162. </div>
  8163. <div class="check">
  8164. <div
  8165. v-if="checktoolArray.indexOf(40) == -1"
  8166. class="noChoose"
  8167. ></div>
  8168. <div v-else class="isChoose"></div>
  8169. </div>
  8170. </div>
  8171. </div>
  8172. <div class="toolSort" v-if="toolType == 5">
  8173. <div
  8174. class="tool"
  8175. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8176. @click="addTools2(28)"
  8177. >
  8178. <div class="whiteBIcon">
  8179. <img
  8180. src="../../assets/icon/secondToolList/translation.png"
  8181. alt
  8182. />
  8183. <div style="margin: 5px 0">翻译</div>
  8184. </div>
  8185. <div class="check">
  8186. <div
  8187. v-if="checktoolArray.indexOf(28) == -1"
  8188. class="noChoose"
  8189. ></div>
  8190. <div v-else class="isChoose"></div>
  8191. </div>
  8192. </div>
  8193. <div
  8194. class="tool"
  8195. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8196. @click="addTools2(31)"
  8197. >
  8198. <div class="whiteBIcon">
  8199. <img
  8200. src="../../assets/icon/secondToolList/networkPanel.png"
  8201. alt
  8202. />
  8203. <div style="margin: 5px 0">数字画板</div>
  8204. </div>
  8205. <div class="check">
  8206. <div
  8207. v-if="checktoolArray.indexOf(31) == -1"
  8208. class="noChoose"
  8209. ></div>
  8210. <div v-else class="isChoose"></div>
  8211. </div>
  8212. </div>
  8213. <div
  8214. class="tool"
  8215. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8216. @click="addTools2(39)"
  8217. >
  8218. <div class="whiteBIcon">
  8219. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8220. <div style="margin: 5px 0">GeoGebra</div>
  8221. </div>
  8222. <div class="check">
  8223. <div
  8224. v-if="checktoolArray.indexOf(39) == -1"
  8225. class="noChoose"
  8226. ></div>
  8227. <div v-else class="isChoose"></div>
  8228. </div>
  8229. </div>
  8230. <div
  8231. class="tool"
  8232. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8233. @click="addTools2(66)"
  8234. >
  8235. <div class="whiteBIcon">
  8236. <img
  8237. src="../../assets/icon/secondToolList/formulaEdi.png"
  8238. alt
  8239. />
  8240. <div style="margin: 5px 0">公式编辑</div>
  8241. </div>
  8242. <div class="check">
  8243. <div
  8244. v-if="checktoolArray.indexOf(66) == -1"
  8245. class="noChoose"
  8246. ></div>
  8247. <div v-else class="isChoose"></div>
  8248. </div>
  8249. </div>
  8250. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8251. <div class="whiteBIcon" @click="addTools2(67)">
  8252. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8253. <div style="margin: 5px 0">分子结构</div>
  8254. </div>
  8255. <div class="check" @click="addTools2(67)">
  8256. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8257. <div v-else class="isChoose"></div>
  8258. </div>
  8259. </div> -->
  8260. <div
  8261. class="tool"
  8262. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8263. @click="addTools2(68)"
  8264. >
  8265. <div class="whiteBIcon">
  8266. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8267. <div style="margin: 5px 0">时间轴</div>
  8268. </div>
  8269. <div class="check">
  8270. <div
  8271. v-if="checktoolArray.indexOf(68) == -1"
  8272. class="noChoose"
  8273. ></div>
  8274. <div v-else class="isChoose"></div>
  8275. </div>
  8276. </div>
  8277. <!-- <div
  8278. class="tool"
  8279. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8280. @click="addTools2(69)"
  8281. >
  8282. <div class="whiteBIcon">
  8283. <img src="../../assets/icon/secondToolList/english.png" alt />
  8284. <div style="margin: 5px 0">英语写作</div>
  8285. </div>
  8286. <div class="check">
  8287. <div
  8288. v-if="checktoolArray.indexOf(69) == -1"
  8289. class="noChoose"
  8290. ></div>
  8291. <div v-else class="isChoose"></div>
  8292. </div>
  8293. </div> -->
  8294. </div>
  8295. <div class="toolSort" v-if="toolType == 4">
  8296. <div
  8297. class="tool"
  8298. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8299. @click="addTools2(26)"
  8300. >
  8301. <div class="whiteBIcon">
  8302. <img
  8303. src="../../assets/icon/thirdToolList/courseDesign.png"
  8304. alt
  8305. />
  8306. <div style="margin: 5px 0">课程设计</div>
  8307. </div>
  8308. <div class="check">
  8309. <div
  8310. v-if="checktoolArray.indexOf(26) == -1"
  8311. class="noChoose"
  8312. ></div>
  8313. <div v-else class="isChoose"></div>
  8314. </div>
  8315. </div>
  8316. <div
  8317. class="tool"
  8318. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8319. @click="addTools2(25)"
  8320. >
  8321. <div class="whiteBIcon">
  8322. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8323. <div style="margin: 5px 0">目标管理</div>
  8324. </div>
  8325. <div class="check">
  8326. <div
  8327. v-if="checktoolArray.indexOf(25) == -1"
  8328. class="noChoose"
  8329. ></div>
  8330. <div v-else class="isChoose"></div>
  8331. </div>
  8332. </div>
  8333. </div>
  8334. </div>
  8335. </div>
  8336. <span
  8337. slot="footer"
  8338. class="dialog-footer"
  8339. style="display: block; text-align: center; padding: 0 0 10px 0"
  8340. >
  8341. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8342. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8343. </span>
  8344. </div>
  8345. <div
  8346. v-if="replyDialogVisible == true"
  8347. class="addDialogCss"
  8348. v-el-drag-dialog
  8349. >
  8350. <div class="pzTop">
  8351. <div class="teacherPz">
  8352. <div class="teacherPzImg">
  8353. <img src="../../assets/icon/teacherPz.png" alt="" />
  8354. </div>
  8355. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8356. </div>
  8357. <div @click="replyDialogVisible = false">
  8358. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8359. </div>
  8360. </div>
  8361. <div class="addPzBox">
  8362. <!-- <div class="addPzCheck">
  8363. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8364. >文本</span
  8365. >
  8366. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8367. >音频</span
  8368. >
  8369. </div> -->
  8370. <div style="height: calc(100% - 50px)">
  8371. <editor-bar
  8372. class="binfo_input pzConText"
  8373. style="width: 100% !important; margin: 0 auto"
  8374. placeholder="请输入回复描述"
  8375. v-model="reply"
  8376. @change="change"
  8377. ></editor-bar>
  8378. </div>
  8379. <div class="addTextCss" @click="addHf">确定</div>
  8380. </div>
  8381. </div>
  8382. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8383. <div class="pzTop">
  8384. <div class="teacherPz">
  8385. <div class="teacherPzImg">
  8386. <img src="../../assets/icon/teacherPz.png" alt="" />
  8387. </div>
  8388. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8389. </div>
  8390. <div @click="addPzDialog = false">
  8391. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8392. </div>
  8393. </div>
  8394. <div class="addPzBox">
  8395. <div class="addPzCheck">
  8396. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8397. >文本</span
  8398. >
  8399. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8400. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8401. >音频</span
  8402. >
  8403. </div>
  8404. <div style="height: calc(100% - 95px)">
  8405. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8406. v-if="pzType == 1"></textarea> -->
  8407. <editor-bar
  8408. class="binfo_input pzConText"
  8409. style="width: 100% !important"
  8410. placeholder="请输入任务描述"
  8411. v-model="pzConText"
  8412. @change="change"
  8413. v-if="pzType == 1"
  8414. ></editor-bar>
  8415. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8416. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8417. <div @click="addImg($event)">
  8418. <el-button type="primary">上传图片</el-button>
  8419. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8420. @change="beforeUpload1($event, 4)" />
  8421. </div>
  8422. </div> -->
  8423. </div>
  8424. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8425. 确定
  8426. </div>
  8427. </div>
  8428. </div>
  8429. <div v-if="proVisible" class="mask">
  8430. <div class="progressBox">
  8431. <!-- <div id="closePro" class="closeCss">
  8432. <img src="../../assets/icon/close.png" alt />
  8433. </div> -->
  8434. <div class="lbox">
  8435. <img src="../../assets/loading.gif" />上传中,请稍后
  8436. </div>
  8437. <div style="margin-bottom: 10px">
  8438. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8439. </div>
  8440. <el-progress
  8441. :text-inside="true"
  8442. :stroke-width="20"
  8443. :percentage="progress"
  8444. style="width: 80%"
  8445. ></el-progress>
  8446. </div>
  8447. </div>
  8448. <div v-if="proVisible2" class="mask">
  8449. <div class="progressBox">
  8450. <div class="lbox">
  8451. <img src="../../assets/loading.gif" />上传中,请稍后
  8452. </div>
  8453. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8454. </div>
  8455. </div>
  8456. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8457. <img width="100%" :src="dialogImageUrl" alt />
  8458. </el-dialog>
  8459. <el-dialog
  8460. :title="noteName != '' ? noteName : '查看问卷'"
  8461. :visible.sync="dialogVisible5"
  8462. :append-to-body="true"
  8463. width="1000px"
  8464. :before-close="handleClose"
  8465. class="dialog_diy dialog_diy3"
  8466. >
  8467. <div>
  8468. <div
  8469. class="a_add_title"
  8470. style="
  8471. display: flex;
  8472. flex-direction: row;
  8473. align-items: center;
  8474. justify-content: center;
  8475. "
  8476. >
  8477. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8478. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8479. </div>
  8480. <div class="a_addBox">
  8481. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8482. 题目内容
  8483. </div>
  8484. <div
  8485. class="a_add_box"
  8486. v-for="(item1, index1) in askJson.askCount"
  8487. :key="index1"
  8488. >
  8489. <div class="a_add_head">
  8490. <div style="display: flex">
  8491. <span class="askIndex"> {{ index1 + 1 }}</span>
  8492. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8493. </div>
  8494. <img
  8495. v-if="askJson.askJson[index1].img"
  8496. :src="askJson.askJson[index1].img"
  8497. style="height: 300px; margin-top: 10px; max-width: 100%"
  8498. />
  8499. </div>
  8500. <div class="a_add_body">
  8501. <div class="a_add_input">
  8502. <el-radio-group
  8503. v-model="radio[index1]"
  8504. v-if="
  8505. askJson.askJson[index1].type == '1' ||
  8506. !askJson.askJson[index1].type
  8507. "
  8508. >
  8509. <el-radio
  8510. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8511. .checkList"
  8512. :key="checkIndex"
  8513. :label="checkIndex"
  8514. :disabled="isAnswer"
  8515. class="redioStyle"
  8516. ><span v-html="item2"></span
  8517. ></el-radio>
  8518. </el-radio-group>
  8519. <el-checkbox-group
  8520. v-model="radio[index1]"
  8521. v-if="askJson.askJson[index1].type == '2'"
  8522. >
  8523. <el-checkbox
  8524. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8525. .checkList"
  8526. :key="checkIndex1"
  8527. :label="checkIndex1"
  8528. :disabled="isAnswer"
  8529. class="redioStyle"
  8530. ><span v-html="item2"></span>
  8531. </el-checkbox>
  8532. </el-checkbox-group>
  8533. </div>
  8534. </div>
  8535. </div>
  8536. </div>
  8537. </div>
  8538. <span slot="footer" class="dialog-footer">
  8539. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8540. >取 消</el-button
  8541. >
  8542. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8543. >确 定</el-button
  8544. >
  8545. </span>
  8546. </el-dialog>
  8547. <el-dialog
  8548. :title="noteName != '' ? noteName : '查看问卷'"
  8549. :visible.sync="dialogVisible5Teacher"
  8550. :append-to-body="true"
  8551. width="1000px"
  8552. :before-close="handleClose"
  8553. class="dialog_diy dialog_diy3"
  8554. >
  8555. <div>
  8556. <div class="w_name">
  8557. 学生姓名:<span>{{ sStudent.student }}</span>
  8558. </div>
  8559. <div
  8560. class="a_add_title"
  8561. style="
  8562. display: flex;
  8563. flex-direction: row;
  8564. align-items: center;
  8565. justify-content: center;
  8566. "
  8567. >
  8568. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8569. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8570. </div>
  8571. <div class="a_addBox">
  8572. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8573. 题目内容
  8574. </div>
  8575. <div
  8576. class="a_add_box"
  8577. v-for="(item1, index1) in askJson.askCount"
  8578. :key="index1"
  8579. >
  8580. <div class="a_add_head">
  8581. <div style="display: flex">
  8582. <span class="askIndex">{{ index1 + 1 }}</span>
  8583. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8584. </div>
  8585. <img
  8586. v-if="askJson.askJson[index1].img"
  8587. :src="askJson.askJson[index1].img"
  8588. style="height: 300px; margin-top: 10px; max-width: 100%"
  8589. />
  8590. </div>
  8591. <div class="a_add_body">
  8592. <div class="a_add_input">
  8593. <el-radio-group
  8594. v-model="radio[index1]"
  8595. v-if="
  8596. askJson.askJson[index1].type == '1' ||
  8597. !askJson.askJson[index1].type
  8598. "
  8599. >
  8600. <el-radio
  8601. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8602. .checkList"
  8603. :key="checkIndex"
  8604. :label="checkIndex"
  8605. :disabled="isAnswer"
  8606. class="redioStyle"
  8607. ><span v-html="item2"></span
  8608. ></el-radio>
  8609. </el-radio-group>
  8610. <el-checkbox-group
  8611. v-model="radio[index1]"
  8612. v-if="askJson.askJson[index1].type == '2'"
  8613. >
  8614. <el-checkbox
  8615. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8616. .checkList"
  8617. :key="checkIndex1"
  8618. :label="checkIndex1"
  8619. :disabled="isAnswer"
  8620. class="redioStyle"
  8621. ><span v-html="item2"></span>
  8622. </el-checkbox>
  8623. </el-checkbox-group>
  8624. </div>
  8625. </div>
  8626. </div>
  8627. </div>
  8628. </div>
  8629. <span slot="footer" class="dialog-footer">
  8630. <el-button
  8631. @click="dialogVisible5Teacher = false"
  8632. v-show="noteName == ''"
  8633. >取 消</el-button
  8634. >
  8635. <el-button
  8636. type="primary"
  8637. @click="addStudentAskTeacher"
  8638. v-show="noteName == ''"
  8639. >确 定</el-button
  8640. >
  8641. </span>
  8642. </el-dialog>
  8643. <el-dialog
  8644. :title="noteName != '' ? noteName : '查看选择题'"
  8645. :visible.sync="dialogVisibleChoice"
  8646. :append-to-body="true"
  8647. width="1000px"
  8648. :before-close="handleClose"
  8649. class="dialog_diy dialog_diy3"
  8650. >
  8651. <div>
  8652. <!-- <div class="a_add_title" style="
  8653. display: flex;
  8654. flex-direction: row;
  8655. align-items: center;
  8656. justify-content: center;
  8657. ">
  8658. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8659. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8660. </div> -->
  8661. <div class="a_addBox">
  8662. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8663. 题目内容
  8664. </div>
  8665. <div
  8666. class="a_add_box"
  8667. v-for="(item1, index1) in testJson.testCount"
  8668. :key="index1"
  8669. >
  8670. <div class="a_add_head">
  8671. <div style="display: flex">
  8672. <span class="askIndex">{{ index1 + 1 }}</span>
  8673. <div
  8674. v-if="testJson.testJson[index1].type == '1'"
  8675. style="margin-right: 5px; min-width: 70px"
  8676. >
  8677. (单选题)
  8678. </div>
  8679. <div
  8680. v-if="testJson.testJson[index1].type == '2'"
  8681. style="margin-right: 5px; min-width: 70px"
  8682. >
  8683. (多选题)
  8684. </div>
  8685. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8686. </div>
  8687. <img
  8688. v-if="testJson.testJson[index1].img"
  8689. :src="testJson.testJson[index1].img"
  8690. style="height: 300px; margin-top: 10px; max-width: 100%"
  8691. />
  8692. </div>
  8693. <div
  8694. class="timuImgBox"
  8695. v-if="
  8696. testJson.testJson[index1].timuList &&
  8697. testJson.testJson[index1].timuList.length
  8698. "
  8699. >
  8700. <div
  8701. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8702. :key="tIndex"
  8703. class="timuImg"
  8704. @click.stop="previewImg(timg.src)"
  8705. >
  8706. <img :src="timg.src" alt="" />
  8707. </div>
  8708. </div>
  8709. <div class="a_add_body">
  8710. <div class="a_add_input">
  8711. <el-radio-group
  8712. v-model="radio[index1]"
  8713. v-if="testJson.testJson[index1].type == '1'"
  8714. >
  8715. <div class="radioBox">
  8716. <el-radio
  8717. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8718. .checkList"
  8719. :key="checkIndex"
  8720. :label="checkIndex"
  8721. :disabled="isAnswer"
  8722. class="redioStyle"
  8723. >
  8724. <div
  8725. style="margin-right: 10px"
  8726. v-if="item2 && item2.imgType && item2.imgType == 1"
  8727. >
  8728. <div class="inImg" @click.stop="previewImg(item2.src)">
  8729. <img :src="item2.src" alt="" />
  8730. </div>
  8731. </div>
  8732. <span v-else v-html="item2"></span>
  8733. </el-radio>
  8734. </div>
  8735. </el-radio-group>
  8736. <el-checkbox-group
  8737. v-model="radio[index1]"
  8738. v-if="testJson.testJson[index1].type == '2'"
  8739. >
  8740. <div class="radioBox">
  8741. <el-checkbox
  8742. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8743. .checkList"
  8744. :key="checkIndex"
  8745. :label="checkIndex"
  8746. :disabled="isAnswer"
  8747. class="redioStyle"
  8748. >
  8749. <div
  8750. style="margin-right: 10px"
  8751. v-if="item2 && item2.imgType && item2.imgType == 1"
  8752. >
  8753. <div class="inImg" @click.stop="previewImg(item2.src)">
  8754. <img :src="item2.src" alt="" />
  8755. </div>
  8756. </div>
  8757. <span v-else v-html="item2"></span>
  8758. </el-checkbox>
  8759. </div>
  8760. </el-checkbox-group>
  8761. </div>
  8762. </div>
  8763. </div>
  8764. </div>
  8765. </div>
  8766. <span slot="footer" class="dialog-footer">
  8767. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8768. >取 消</el-button
  8769. >
  8770. <el-button
  8771. type="primary"
  8772. @click="addStudentTest"
  8773. v-show="noteName == ''"
  8774. >确 定</el-button
  8775. >
  8776. </span>
  8777. </el-dialog>
  8778. <el-dialog
  8779. :title="noteName != '' ? noteName : '查看选择题'"
  8780. :visible.sync="dialogVisibleChoiceTeacher"
  8781. :append-to-body="true"
  8782. width="1000px"
  8783. :before-close="handleClose"
  8784. class="dialog_diy dialog_diy3"
  8785. >
  8786. <div>
  8787. <div class="w_name">
  8788. 学生姓名:<span>{{ sStudent.student }}</span>
  8789. </div>
  8790. <div class="a_addBox">
  8791. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8792. 题目内容
  8793. </div>
  8794. <div
  8795. class="a_add_box"
  8796. v-for="(item1, index1) in testJson.testCount"
  8797. :key="index1"
  8798. >
  8799. <div class="a_add_head">
  8800. <div style="display: flex">
  8801. <span class="askIndex">{{ index1 + 1 }}</span>
  8802. <div
  8803. v-if="testJson.testJson[index1].type == '1'"
  8804. style="margin-right: 5px; min-width: 70px"
  8805. >
  8806. (单选题)
  8807. </div>
  8808. <div
  8809. v-if="testJson.testJson[index1].type == '2'"
  8810. style="margin-right: 5px; min-width: 70px"
  8811. >
  8812. (多选题)
  8813. </div>
  8814. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8815. </div>
  8816. <img
  8817. v-if="testJson.testJson[index1].img"
  8818. :src="testJson.testJson[index1].img"
  8819. style="height: 300px; margin-top: 10px; max-width: 100%"
  8820. />
  8821. </div>
  8822. <div
  8823. class="timuImgBox"
  8824. v-if="
  8825. testJson.testJson[index1].timuList &&
  8826. testJson.testJson[index1].timuList.length
  8827. "
  8828. >
  8829. <div
  8830. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8831. :key="tIndex"
  8832. class="timuImg"
  8833. @click.stop="previewImg(timg.src)"
  8834. >
  8835. <img :src="timg.src" alt="" />
  8836. </div>
  8837. </div>
  8838. <div class="a_add_body">
  8839. <div class="a_add_input">
  8840. <el-radio-group
  8841. v-model="radio[index1]"
  8842. v-if="testJson.testJson[index1].type == '1'"
  8843. >
  8844. <div class="radioBox">
  8845. <el-radio
  8846. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8847. .checkList"
  8848. :key="checkIndex"
  8849. :label="checkIndex"
  8850. :disabled="isAnswer"
  8851. class="redioStyle"
  8852. >
  8853. <div
  8854. style="margin-right: 10px"
  8855. v-if="item2 && item2.imgType && item2.imgType == 1"
  8856. >
  8857. <div class="inImg" @click.stop="previewImg(item2.src)">
  8858. <img :src="item2.src" alt="" />
  8859. </div>
  8860. </div>
  8861. <span v-else v-html="item2"></span>
  8862. </el-radio>
  8863. </div>
  8864. </el-radio-group>
  8865. <el-checkbox-group
  8866. v-model="radio[index1]"
  8867. v-if="testJson.testJson[index1].type == '2'"
  8868. >
  8869. <div class="radioBox">
  8870. <el-checkbox
  8871. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8872. .checkList"
  8873. :key="checkIndex"
  8874. :label="checkIndex"
  8875. :disabled="isAnswer"
  8876. class="redioStyle"
  8877. >
  8878. <div
  8879. style="margin-right: 10px"
  8880. v-if="item2 && item2.imgType && item2.imgType == 1"
  8881. >
  8882. <div class="inImg" @click.stop="previewImg(item2.src)">
  8883. <img :src="item2.src" alt="" />
  8884. </div>
  8885. </div>
  8886. <span v-else v-html="item2"></span>
  8887. </el-checkbox>
  8888. </div>
  8889. </el-checkbox-group>
  8890. </div>
  8891. </div>
  8892. </div>
  8893. </div>
  8894. </div>
  8895. <span slot="footer" class="dialog-footer">
  8896. <el-button
  8897. @click="dialogVisibleChoiceTeacher = false"
  8898. v-show="noteName == ''"
  8899. >取 消</el-button
  8900. >
  8901. <el-button
  8902. type="primary"
  8903. @click="addStudentTestTeacher"
  8904. v-show="noteName == ''"
  8905. >确 定</el-button
  8906. >
  8907. </span>
  8908. </el-dialog>
  8909. <el-dialog
  8910. title="查看富文本"
  8911. :visible.sync="dialogVisible1"
  8912. :append-to-body="true"
  8913. width="500px"
  8914. :before-close="handleClose"
  8915. class="dialog_diy textCss"
  8916. >
  8917. <el-form style="font-size: 20px">
  8918. <el-form-item label="文本标题" class="textTitle">
  8919. <div style="font-size: 20px">{{ text.name }}</div>
  8920. </el-form-item>
  8921. <div>富文本内容</div>
  8922. <div
  8923. v-html="text.url"
  8924. style="font-size: 18px; padding: 40px 0 0 0"
  8925. ></div>
  8926. </el-form>
  8927. <span slot="footer" class="dialog-footer">
  8928. <el-button type="primary" @click="dialogVisible1 = false"
  8929. >确定</el-button
  8930. >
  8931. </span>
  8932. </el-dialog>
  8933. <el-dialog
  8934. title="文件预览"
  8935. :visible.sync="dialogVisible3"
  8936. width="50%"
  8937. :before-close="handleClose"
  8938. class="dialog_diy"
  8939. :class="{ fullStyle: full }"
  8940. >
  8941. <div slot="title" class="header-title">
  8942. <div style="color: #fff">文件预览</div>
  8943. <div style="position: absolute; top: 19px; right: 50px">
  8944. <img
  8945. src="../../assets/full.png"
  8946. style="height: 16px; cursor: pointer"
  8947. alt=""
  8948. @click="fullTools"
  8949. />
  8950. </div>
  8951. </div>
  8952. <pdf
  8953. v-if="showPDF"
  8954. :pdfUrl="pptImgUrl"
  8955. style="width: 100%; height: 520px; overflow: auto"
  8956. :class="{ fullStyle: full }"
  8957. ></pdf>
  8958. <iframe
  8959. v-else
  8960. :src="pptImgUrl"
  8961. frameborder="0"
  8962. width="100%"
  8963. height="600"
  8964. :class="{ fullStyle: full }"
  8965. ></iframe>
  8966. </el-dialog>
  8967. <el-dialog
  8968. title="文件预览"
  8969. :visible.sync="dialogVisible6"
  8970. width="50%"
  8971. :before-close="handleClose"
  8972. class="dialog_diy"
  8973. >
  8974. <iframe
  8975. :src="pptImgUrl1"
  8976. frameborder="0"
  8977. width="100%"
  8978. height="600"
  8979. ></iframe>
  8980. </el-dialog>
  8981. <el-dialog
  8982. title="提示"
  8983. :visible.sync="dialogVisible4"
  8984. :append-to-body="true"
  8985. width="800px"
  8986. :before-close="handleClose"
  8987. class="dialog_diy notice"
  8988. >
  8989. <div>此功能暂未开放!</div>
  8990. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8991. </el-dialog>
  8992. <el-dialog
  8993. title="问答"
  8994. :visible.sync="answerDialogVisible"
  8995. :append-to-body="true"
  8996. width="800px"
  8997. :before-close="handleClose"
  8998. class="dialog_diy"
  8999. >
  9000. <div>
  9001. <div
  9002. style="
  9003. display: flex;
  9004. flex-wrap: nowrap;
  9005. flex-direction: column;
  9006. position: relative;
  9007. "
  9008. >
  9009. <div class="queTop" style="padding: 20px 0 20px 0">
  9010. <div class="question">
  9011. <img src="../../assets/icon/question.png" alt />
  9012. </div>
  9013. <div class="queTitle">
  9014. <div style="width: 90px; min-width: 90px">提问:</div>
  9015. <div>{{ answerQ }}</div>
  9016. </div>
  9017. </div>
  9018. <div class="ediBottom">
  9019. <textarea
  9020. rows="6"
  9021. class="binfo_input"
  9022. cols
  9023. style="width: 95%; height: 120px"
  9024. v-model="questionAnswer"
  9025. ></textarea>
  9026. </div>
  9027. </div>
  9028. </div>
  9029. <div slot="footer">
  9030. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9031. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9032. </div>
  9033. </el-dialog>
  9034. <el-dialog
  9035. title="问答"
  9036. :visible.sync="answerDialogVisibleTeacher"
  9037. :append-to-body="true"
  9038. width="800px"
  9039. :before-close="handleClose"
  9040. class="dialog_diy"
  9041. >
  9042. <div>
  9043. <div class="w_name">
  9044. 学生姓名:<span>{{ sStudent.student }}</span>
  9045. </div>
  9046. <div
  9047. style="
  9048. display: flex;
  9049. flex-wrap: nowrap;
  9050. flex-direction: column;
  9051. position: relative;
  9052. "
  9053. >
  9054. <div class="queTop" style="padding: 20px 0 20px 0">
  9055. <div class="question">
  9056. <img src="../../assets/icon/question.png" alt />
  9057. </div>
  9058. <div class="queTitle">
  9059. <div style="width: 90px; min-width: 90px">提问:</div>
  9060. <div>{{ answerQ }}</div>
  9061. </div>
  9062. </div>
  9063. <div class="ediBottom">
  9064. <textarea
  9065. rows="6"
  9066. class="binfo_input"
  9067. cols
  9068. style="width: 95%; height: 120px"
  9069. v-model="questionAnswer"
  9070. ></textarea>
  9071. </div>
  9072. </div>
  9073. </div>
  9074. <div slot="footer">
  9075. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9076. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9077. </div>
  9078. </el-dialog>
  9079. <el-dialog
  9080. title="倒计时"
  9081. :visible.sync="timeDialogVisible"
  9082. :append-to-body="true"
  9083. width="800px"
  9084. :before-close="handleClose"
  9085. class="dialog_diy"
  9086. >
  9087. <div>
  9088. <div style="margin-bottom: 20px; color: #999">
  9089. 提示:点击“+”或“-”修改倒计时时长。
  9090. </div>
  9091. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9092. </div>
  9093. <div slot="footer">
  9094. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9095. </div>
  9096. </el-dialog>
  9097. <el-dialog
  9098. title="权限设置"
  9099. :visible.sync="juriVisible"
  9100. :append-to-body="true"
  9101. width="400px"
  9102. :before-close="handleClose"
  9103. class="dialog_diy"
  9104. >
  9105. <div>
  9106. <div class="open_box">
  9107. <div class="switch_box">
  9108. <span>允许学生查看所有作业</span>
  9109. <el-switch
  9110. v-model="sIsOpen"
  9111. active-text=""
  9112. class="switchCss"
  9113. @change="updateSLook"
  9114. ></el-switch>
  9115. </div>
  9116. <div
  9117. class="switch_box"
  9118. v-if="
  9119. courseDetail.userid == userid ||
  9120. (courseDetail.course_teacher &&
  9121. courseDetail.course_teacher.indexOf(userid) != -1)
  9122. "
  9123. >
  9124. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9125. <span>禁止学生查看所有阶段</span>
  9126. <el-switch
  9127. v-model="IsLookOpen"
  9128. active-text=""
  9129. class="switchCss"
  9130. @change="updateLookOpen"
  9131. ></el-switch>
  9132. </div>
  9133. <div class="switch_box" v-if="courseDetail.userid == userid">
  9134. <span>开启跟随模式</span>
  9135. <el-switch
  9136. v-model="IsFollow"
  9137. active-text=""
  9138. class="switchCss"
  9139. @change="updateFollow"
  9140. ></el-switch>
  9141. </div>
  9142. </div>
  9143. </div>
  9144. <div slot="footer">
  9145. <el-button
  9146. style="background: #409efe; color: #fff"
  9147. @click="juriVisible = false"
  9148. >关 闭</el-button
  9149. >
  9150. </div>
  9151. </el-dialog>
  9152. <el-dialog
  9153. title="查看视频"
  9154. :visible.sync="videoVisible"
  9155. :append-to-body="true"
  9156. width="1000px"
  9157. :before-close="handleClose"
  9158. class="dialog_diy1"
  9159. >
  9160. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9161. <video-player
  9162. class="video-player vjs-custom-skin"
  9163. :playsinline="true"
  9164. :options="videoDetail"
  9165. @play="onPlayerPlay($event)"
  9166. style="width: 100%; height: 100%"
  9167. ></video-player>
  9168. </div>
  9169. <div slot="footer">
  9170. <el-button
  9171. style="background: #409efe; color: #fff"
  9172. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9173. >
  9174. 关 闭</el-button
  9175. >
  9176. </div>
  9177. </el-dialog>
  9178. <el-dialog
  9179. title="查看详情"
  9180. :visible.sync="commentDialogVisible"
  9181. :append-to-body="true"
  9182. width="800px"
  9183. :before-close="handleClose"
  9184. class="dialog_diy"
  9185. >
  9186. <div class="commentTop">
  9187. <div class="studentDetail">
  9188. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9189. <div class="nameAndTime">
  9190. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9191. <div>{{ commentDetail.time }}</div>
  9192. </div>
  9193. <div
  9194. class="returnBtn"
  9195. style="margin-left: auto; width: 80px"
  9196. v-if="
  9197. commentDetail.works &&
  9198. commentDetail.type == 0 &&
  9199. (tType == 1 || tType == 4)
  9200. "
  9201. @click="
  9202. showPicturePaint(
  9203. commentDetail.img ? commentDetail.img : commentDetail.works
  9204. )
  9205. "
  9206. >
  9207. 教师批注
  9208. </div>
  9209. </div>
  9210. <div
  9211. class="worksAnswer"
  9212. v-if="commentDetail.works && commentDetail.type == 2"
  9213. >
  9214. {{ JSON.parse(commentDetail.works)[0].answer }}
  9215. </div>
  9216. <div
  9217. class="worksAnswer"
  9218. v-if="commentDetail.works && commentDetail.type == 1"
  9219. >
  9220. <img
  9221. src="../../assets/teacherWork.png"
  9222. v-if="commentDetail.ateacher"
  9223. class="w_teachert"
  9224. />
  9225. <pdf
  9226. v-if="showPDF"
  9227. :pdfUrl="pptImgUrl"
  9228. style="width: 100%; height: 520px; overflow: auto"
  9229. :class="{ fullStyle: full }"
  9230. ></pdf>
  9231. <iframe
  9232. v-else
  9233. :src="pptImgUrl"
  9234. frameborder="0"
  9235. width="100%"
  9236. height="600"
  9237. :class="{ fullStyle: full }"
  9238. ></iframe>
  9239. </div>
  9240. <div
  9241. class="worksAnswer"
  9242. v-if="commentDetail.works && commentDetail.type == 0"
  9243. >
  9244. <img
  9245. src="../../assets/teacherWork.png"
  9246. v-if="commentDetail.ateacher"
  9247. class="w_teachert"
  9248. style="right: 105px"
  9249. />
  9250. <img
  9251. :src="commentDetail.works"
  9252. alt=""
  9253. @click="previewImg(commentDetail.works)"
  9254. />
  9255. </div>
  9256. <div
  9257. class="worksAnswer"
  9258. v-if="commentDetail.works && commentDetail.type == 3"
  9259. >
  9260. <img
  9261. src="../../assets/teacherWork.png"
  9262. v-if="commentDetail.ateacher"
  9263. class="w_teachert"
  9264. />
  9265. <video-player
  9266. class="video-player vjs-custom-skin"
  9267. :playsinline="true"
  9268. :options="videoDetail"
  9269. @play="onPlayerPlay($event)"
  9270. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9271. ></video-player>
  9272. </div>
  9273. <div
  9274. class="worksAnswer"
  9275. v-if="commentDetail.works && commentDetail.type == 10"
  9276. >
  9277. <div class="cont" v-html="commentDetail.works.text"></div>
  9278. </div>
  9279. <div
  9280. class="worksAnswer codeFileBox"
  9281. v-if="commentDetail.works && commentDetail.type == 12"
  9282. @click="downloadFile(commentDetail.works)"
  9283. >
  9284. <img src="../../assets/icon/codeFile.png" />
  9285. <div>点击下载文件</div>
  9286. </div>
  9287. <div
  9288. class="worksAnswer codeFileBox"
  9289. v-if="commentDetail.works && commentDetail.type == 15"
  9290. @click="
  9291. openCocoPi(
  9292. 57,
  9293. commentIndexJson.toolIndex,
  9294. commentDetail.userid,
  9295. commentDetail.sName
  9296. )
  9297. "
  9298. >
  9299. <img src="../../assets/icon/codeFile.png" />
  9300. <div>点击打开CocoPi</div>
  9301. </div>
  9302. <div
  9303. class="worksAnswer"
  9304. v-if="commentDetail.works && commentDetail.type == 13"
  9305. >
  9306. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9307. </div>
  9308. <div
  9309. class="worksAnswer"
  9310. v-if="commentDetail.works && commentDetail.type == 4"
  9311. >
  9312. <div class="evalCss">
  9313. <div class="nav">请选择星星进行评分</div>
  9314. <div class="middleBox" v-if="eScore.eStar">
  9315. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9316. <div class="nameAndrate">
  9317. <div>{{ e.value }}</div>
  9318. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9319. </div>
  9320. <div v-if="e.detail">{{ e.detail }}</div>
  9321. </div>
  9322. <div class="bz">
  9323. <textarea
  9324. disabled
  9325. rows="4"
  9326. class="pj"
  9327. style="
  9328. padding: 10px 5px;
  9329. width: 70%;
  9330. background: #f7f6f9;
  9331. font-size: 14px;
  9332. text-indent: 10px;
  9333. color: #000;
  9334. "
  9335. cols
  9336. v-model="eScore.eBzText"
  9337. placeholder="请输入评价内容..."
  9338. ></textarea>
  9339. </div>
  9340. </div>
  9341. </div>
  9342. </div>
  9343. <div class="comment">
  9344. <div class="commentList">
  9345. <div class="commentImg">
  9346. <img
  9347. @click="
  9348. isLikes(
  9349. commentDetail.wid,
  9350. userid,
  9351. 1,
  9352. null,
  9353. commentDetail.isLikes
  9354. )
  9355. "
  9356. :src="commentDetail.isLikes == true ? likes : noLikes"
  9357. alt=""
  9358. />
  9359. </div>
  9360. <div>{{ commentDetail.likesCount }}</div>
  9361. </div>
  9362. <div class="commentList">
  9363. <div class="commentImg">
  9364. <img src="../../assets/icon/comment/comment.png" alt="" />
  9365. </div>
  9366. <div>{{ commentDetail.commentCount }}</div>
  9367. </div>
  9368. </div>
  9369. <div class="drawPBox" v-if="commentDetail.img">
  9370. <span>教师批注</span>
  9371. <img
  9372. :src="commentDetail.img"
  9373. alt=""
  9374. @click="previewImg(commentDetail.img)"
  9375. />
  9376. <span
  9377. class="deleteImg"
  9378. v-if="tType == 1 || tType == 4"
  9379. @click.stop="deletePicturePaint(commentDetail.wid)"
  9380. style="
  9381. font-size: 14px;
  9382. width: auto !important;
  9383. color: #b4b4b4;
  9384. top: unset;
  9385. bottom: 0;
  9386. border: none;
  9387. padding: 0;
  9388. height: auto !important;
  9389. margin: 0;
  9390. "
  9391. >删除</span
  9392. >
  9393. </div>
  9394. </div>
  9395. <div class="commentBox">
  9396. <div class="pl">评论:</div>
  9397. <div style="max-height: 200px; overflow: auto">
  9398. <div
  9399. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9400. style="padding: 10px 0 0 0"
  9401. >
  9402. <div
  9403. class="studentDetail"
  9404. style="padding-top: 10px"
  9405. v-for="(co, coIndex) in commentDetail.commentJson"
  9406. :key="coIndex"
  9407. >
  9408. <div class="tx" style="min-width: 50px">
  9409. <img src="../../assets/avatar.png" alt="" />
  9410. </div>
  9411. <div class="plPerson">
  9412. <div class="plName">
  9413. <div>{{ co.commentPeople }}</div>
  9414. <div style="margin-left: 5px">
  9415. {{ co.commentTime }}
  9416. </div>
  9417. <div
  9418. class="deleteComment"
  9419. v-if="userid == co.userid"
  9420. @click="deleteComment(co.wid)"
  9421. >
  9422. 删除
  9423. </div>
  9424. </div>
  9425. <div class="plContent">{{ co.commentText }}</div>
  9426. </div>
  9427. </div>
  9428. </div>
  9429. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9430. </div>
  9431. </div>
  9432. <div style="margin-top: 10px">
  9433. <div class="displayBox">
  9434. <div
  9435. style="
  9436. color: #556db4;
  9437. font-size: 14px;
  9438. font-weight: bold;
  9439. padding-bottom: 10px;
  9440. "
  9441. >
  9442. 评价
  9443. </div>
  9444. <div class="easy_comment" v-if="false">
  9445. <div
  9446. v-for="(p, pIndex) in PlTextList"
  9447. :key="pIndex"
  9448. @click="fastText(p, 1)"
  9449. >
  9450. {{ p }}
  9451. </div>
  9452. </div>
  9453. </div>
  9454. <div>
  9455. <textarea
  9456. rows="3"
  9457. class="pj"
  9458. style="padding: 10px 5px"
  9459. cols
  9460. v-model="commentText"
  9461. placeholder="请输入评论"
  9462. ></textarea>
  9463. </div>
  9464. </div>
  9465. <div slot="footer">
  9466. <el-button
  9467. @click="
  9468. (commentDialogVisible = false),
  9469. (commentIndexJson = {}),
  9470. videoDetail.sources && videoDetail.sources[0]
  9471. ? (videoDetail.sources[0].src = '')
  9472. : ''
  9473. "
  9474. >取 消</el-button
  9475. >
  9476. <el-button
  9477. type="primary"
  9478. @click="addComment(commentDetail.wid, userid, 2)"
  9479. >确 定</el-button
  9480. >
  9481. </div>
  9482. </el-dialog>
  9483. <el-dialog
  9484. title="查看文档"
  9485. :visible.sync="fullDialogVisible"
  9486. :append-to-body="true"
  9487. width="100%"
  9488. :before-close="handleClose"
  9489. :show-close="false"
  9490. class="dialog_diy full_diy"
  9491. :class="{ full_diy2: fulltype == 3 }"
  9492. >
  9493. <div slot="title" class="header-title">
  9494. <div style="color: #fff">查看文档</div>
  9495. <div
  9496. @click="fullDialogVisible = false"
  9497. style="
  9498. cursor: pointer;
  9499. position: absolute;
  9500. top: 20px;
  9501. right: 20px;
  9502. color: #fff;
  9503. "
  9504. >
  9505. 退出全屏
  9506. </div>
  9507. </div>
  9508. <div style="height: 100%">
  9509. <div
  9510. class="wheel"
  9511. v-if="
  9512. fulltype == 2 &&
  9513. fullUrl.indexOf(
  9514. 'https://view.officeapps.live.com/op/view.aspx?src='
  9515. ) != -1
  9516. "
  9517. style="width: 95%; margin: 0 auto"
  9518. >
  9519. <iframe
  9520. style="width: 100%; height: 100%; border: none"
  9521. :src="fullUrl"
  9522. ></iframe>
  9523. </div>
  9524. <iframe
  9525. v-else-if="fulltype == 2"
  9526. style="width: 100%; height: 100%; border: none"
  9527. :src="fullUrl"
  9528. security="restricted"
  9529. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9530. ></iframe>
  9531. <pdf
  9532. v-else-if="fulltype == 3"
  9533. :pdfUrl="fullUrl"
  9534. style="width: 100%; height: 100%; overflow: auto"
  9535. ></pdf>
  9536. <div
  9537. class="wheel"
  9538. v-if="fulltype == 1"
  9539. style="
  9540. box-shadow: 0 0 6px 1px #f2f2f2;
  9541. width: 100%;
  9542. background: #f1f1f1;
  9543. "
  9544. >
  9545. <div class="title" style="width: 100%; box-sizing: border-box">
  9546. 查看文档
  9547. </div>
  9548. <el-form class="textBox" style="height: 90%">
  9549. <el-form-item class="textTitle">
  9550. <div style="font-size: 22px">
  9551. {{ fullUrl.name }}
  9552. </div>
  9553. </el-form-item>
  9554. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9555. <div
  9556. v-html="fullUrl.url"
  9557. class="textContent"
  9558. style="height: auto"
  9559. ></div>
  9560. </el-form>
  9561. </div>
  9562. </div>
  9563. <!-- <div slot="footer">
  9564. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9565. </div> -->
  9566. </el-dialog>
  9567. <el-dialog
  9568. title="个人评价"
  9569. :visible.sync="studentEvalDialogVisible"
  9570. :append-to-body="true"
  9571. width="800px"
  9572. :before-close="handleClose"
  9573. class="dialog_diy"
  9574. >
  9575. <div class="evalCss">
  9576. <div class="nav">请选择星星进行评分</div>
  9577. <div class="middleBox" v-if="eScore.eStar">
  9578. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9579. <div class="nameAndrate">
  9580. <div>{{ e.value }}</div>
  9581. <el-rate
  9582. v-model="eScore.eStar[eIndex]"
  9583. :disabled="isStar"
  9584. ></el-rate>
  9585. </div>
  9586. <div v-if="e.detail">{{ e.detail }}</div>
  9587. </div>
  9588. <div class="easy_comment" v-if="false">
  9589. <div
  9590. v-for="(p, pIndex) in PlTextList"
  9591. :key="pIndex"
  9592. @click="fastText(p, 2)"
  9593. >
  9594. {{ p }}
  9595. </div>
  9596. </div>
  9597. <div class="bz">
  9598. <textarea
  9599. :disabled="isStar"
  9600. rows="4"
  9601. class="pj"
  9602. style="
  9603. padding: 10px 5px;
  9604. width: 70%;
  9605. background: #f7f6f9;
  9606. font-size: 14px;
  9607. text-indent: 10px;
  9608. "
  9609. cols
  9610. v-model="eScore.eBzText"
  9611. placeholder="请输入评价内容..."
  9612. ></textarea>
  9613. </div>
  9614. </div>
  9615. </div>
  9616. <div slot="footer">
  9617. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9618. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9619. >确 定</el-button
  9620. >
  9621. </div>
  9622. </el-dialog>
  9623. <el-dialog
  9624. title="个人评价"
  9625. :visible.sync="studentEvalDialogVisibleTeacher"
  9626. :append-to-body="true"
  9627. width="800px"
  9628. :before-close="handleClose"
  9629. class="dialog_diy"
  9630. >
  9631. <div class="w_name">
  9632. 学生姓名:<span>{{ sStudent.student }}</span>
  9633. </div>
  9634. <div class="evalCss">
  9635. <div class="nav">请选择星星进行评分</div>
  9636. <div class="middleBox" v-if="eScore.eStar">
  9637. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9638. <div class="nameAndrate">
  9639. <div>{{ e.value }}</div>
  9640. <el-rate
  9641. v-model="eScore.eStar[eIndex]"
  9642. :disabled="isStar"
  9643. ></el-rate>
  9644. </div>
  9645. <div v-if="e.detail">{{ e.detail }}</div>
  9646. </div>
  9647. <div class="easy_comment" v-if="false">
  9648. <div
  9649. v-for="(p, pIndex) in PlTextList"
  9650. :key="pIndex"
  9651. @click="fastText(p, 2)"
  9652. >
  9653. {{ p }}
  9654. </div>
  9655. </div>
  9656. <div class="bz">
  9657. <textarea
  9658. :disabled="isStar"
  9659. rows="4"
  9660. class="pj"
  9661. style="
  9662. padding: 10px 5px;
  9663. width: 70%;
  9664. background: #f7f6f9;
  9665. font-size: 14px;
  9666. text-indent: 10px;
  9667. "
  9668. cols
  9669. v-model="eScore.eBzText"
  9670. placeholder="请输入评价内容..."
  9671. ></textarea>
  9672. </div>
  9673. </div>
  9674. </div>
  9675. <div slot="footer">
  9676. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9677. >取 消</el-button
  9678. >
  9679. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9680. >确 定</el-button
  9681. >
  9682. </div>
  9683. </el-dialog>
  9684. <el-dialog
  9685. title="选择匹配"
  9686. :visible.sync="dialogVisibleSelect"
  9687. :append-to-body="true"
  9688. width="90%"
  9689. :before-close="handleClose"
  9690. class="dialog_diy dialog_diy3"
  9691. >
  9692. <div v-if="selectJson">
  9693. <div class="select_box2">
  9694. <div class="select_box2_title">
  9695. <div>选择匹配</div>
  9696. <div>请选择对应的答案进行答题!</div>
  9697. </div>
  9698. <div class="select_box2_box">
  9699. <div class="select_box2_img">
  9700. <img
  9701. :src="selectJson.url"
  9702. @click="previewImg(selectJson.url)"
  9703. alt=""
  9704. />
  9705. </div>
  9706. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9707. <div style="padding-top: 15px">
  9708. <div class="select_answer_title" v-if="isSelect">
  9709. {{ selectAnswer.stu }}
  9710. </div>
  9711. <div class="select_answer_title" v-else>
  9712. 根据题目选择对应答案
  9713. </div>
  9714. <div
  9715. class="select_box2_answer_box"
  9716. v-for="(item2, checkIndex) in selectJson.select"
  9717. :key="checkIndex"
  9718. >
  9719. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9720. <el-select
  9721. :disabled="isSelect"
  9722. v-model="selectAnswer.answer[checkIndex]"
  9723. placeholder="请选择正确答案"
  9724. >
  9725. <el-option
  9726. v-for="(e, eIndex) in selectJson.select"
  9727. :key="eIndex"
  9728. :label="e"
  9729. :value="eIndex"
  9730. >
  9731. </el-option>
  9732. </el-select>
  9733. </div>
  9734. </div>
  9735. <div
  9736. class="rightAnswerCss"
  9737. v-if="isSelect && (tType == 1 || tType == 4)"
  9738. >
  9739. <div
  9740. v-for="(a, aIndex) in selectJson.answer"
  9741. :key="aIndex"
  9742. class="rightAnswer"
  9743. >
  9744. <div
  9745. v-if="selectAnswer.answer[aIndex] === a"
  9746. style="color: #767de1"
  9747. >
  9748. 回答正确
  9749. </div>
  9750. <div v-else>回答错误</div>
  9751. <div
  9752. style="margin-left: 10px"
  9753. v-if="selectAnswer.answer[aIndex] !== a"
  9754. >
  9755. 正确答案:
  9756. </div>
  9757. <div
  9758. :class="
  9759. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9760. "
  9761. >
  9762. {{ selectJson.select[a] }}
  9763. </div>
  9764. </div>
  9765. </div>
  9766. </div>
  9767. <div class="upAnswerCss">
  9768. <el-button
  9769. type="primary"
  9770. @click="addSelectAnswer"
  9771. v-if="!isSelect"
  9772. >提交答案</el-button
  9773. >
  9774. </div>
  9775. </div>
  9776. </div>
  9777. </div>
  9778. </el-dialog>
  9779. <el-dialog
  9780. title="选择匹配"
  9781. :visible.sync="dialogVisibleSelectTeacher"
  9782. :append-to-body="true"
  9783. width="90%"
  9784. :before-close="handleClose"
  9785. class="dialog_diy dialog_diy3"
  9786. >
  9787. <div v-if="selectJson">
  9788. <div class="w_name">
  9789. 学生姓名:<span>{{ sStudent.student }}</span>
  9790. </div>
  9791. <div class="select_box2">
  9792. <div class="select_box2_title">
  9793. <div>选择匹配</div>
  9794. <div>请选择对应的答案进行答题!</div>
  9795. </div>
  9796. <div class="select_box2_box">
  9797. <div class="select_box2_img">
  9798. <img
  9799. :src="selectJson.url"
  9800. @click="previewImg(selectJson.url)"
  9801. alt=""
  9802. />
  9803. </div>
  9804. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9805. <div style="padding-top: 15px">
  9806. <div class="select_answer_title" v-if="isSelect">
  9807. {{ selectAnswer.stu }}
  9808. </div>
  9809. <div class="select_answer_title" v-else>
  9810. 根据题目选择对应答案
  9811. </div>
  9812. <div
  9813. class="select_box2_answer_box"
  9814. v-for="(item2, checkIndex) in selectJson.select"
  9815. :key="checkIndex"
  9816. >
  9817. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9818. <el-select
  9819. :disabled="isSelect"
  9820. v-model="selectAnswer.answer[checkIndex]"
  9821. placeholder="请选择正确答案"
  9822. >
  9823. <el-option
  9824. v-for="(e, eIndex) in selectJson.select"
  9825. :key="eIndex"
  9826. :label="e"
  9827. :value="eIndex"
  9828. >
  9829. </el-option>
  9830. </el-select>
  9831. </div>
  9832. </div>
  9833. <div
  9834. class="rightAnswerCss"
  9835. v-if="isSelect && (tType == 1 || tType == 4)"
  9836. >
  9837. <div
  9838. v-for="(a, aIndex) in selectJson.answer"
  9839. :key="aIndex"
  9840. class="rightAnswer"
  9841. >
  9842. <div
  9843. v-if="selectAnswer.answer[aIndex] === a"
  9844. style="color: #767de1"
  9845. >
  9846. 回答正确
  9847. </div>
  9848. <div v-else>回答错误</div>
  9849. <div
  9850. style="margin-left: 10px"
  9851. v-if="selectAnswer.answer[aIndex] !== a"
  9852. >
  9853. 正确答案:
  9854. </div>
  9855. <div
  9856. :class="
  9857. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9858. "
  9859. >
  9860. {{ selectJson.select[a] }}
  9861. </div>
  9862. </div>
  9863. </div>
  9864. </div>
  9865. <div class="upAnswerCss">
  9866. <el-button
  9867. type="primary"
  9868. @click="addSelectAnswerTeacher"
  9869. v-if="!isSelect"
  9870. >提交答案</el-button
  9871. >
  9872. </div>
  9873. </div>
  9874. </div>
  9875. </div>
  9876. </el-dialog>
  9877. <el-dialog
  9878. title="教师评分"
  9879. :visible.sync="dialogVisibleScore"
  9880. :append-to-body="true"
  9881. width="800px"
  9882. :before-close="handleClose"
  9883. class="dialog_diy"
  9884. >
  9885. <div>
  9886. <div class="studentDetail">
  9887. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9888. <div class="nameAndTime">
  9889. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9890. <div>{{ commentDetail.time }}</div>
  9891. </div>
  9892. </div>
  9893. <div
  9894. class="worksAnswer"
  9895. v-if="commentDetail.works && commentDetail.type == 2"
  9896. >
  9897. {{ JSON.parse(commentDetail.works)[0].answer }}
  9898. </div>
  9899. <div
  9900. class="worksAnswer"
  9901. v-if="commentDetail.works && commentDetail.type == 1"
  9902. >
  9903. <pdf
  9904. v-if="showPDF"
  9905. :pdfUrl="pptImgUrl"
  9906. style="width: 100%; height: 520px; overflow: auto"
  9907. :class="{ fullStyle: full }"
  9908. ></pdf>
  9909. <iframe
  9910. v-else
  9911. :src="pptImgUrl"
  9912. frameborder="0"
  9913. width="100%"
  9914. height="600"
  9915. :class="{ fullStyle: full }"
  9916. ></iframe>
  9917. </div>
  9918. <div
  9919. class="worksAnswer"
  9920. v-if="commentDetail.works && commentDetail.type == 0"
  9921. >
  9922. <img
  9923. :src="commentDetail.works"
  9924. alt=""
  9925. @click="previewImg(commentDetail.works)"
  9926. />
  9927. </div>
  9928. <div
  9929. class="worksAnswer"
  9930. v-if="commentDetail.works && commentDetail.type == 3"
  9931. >
  9932. <video-player
  9933. class="video-player vjs-custom-skin"
  9934. :playsinline="true"
  9935. :options="videoDetail"
  9936. @play="onPlayerPlay($event)"
  9937. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9938. ></video-player>
  9939. </div>
  9940. <div
  9941. class="worksAnswer codeFileBox"
  9942. v-if="commentDetail.works && commentDetail.type == 12"
  9943. @click="downloadFile(commentDetail.works)"
  9944. >
  9945. <img src="../../assets/icon/codeFile.png" />
  9946. <div>点击下载文件</div>
  9947. </div>
  9948. <div
  9949. class="worksAnswer codeFileBox"
  9950. v-if="commentDetail.works && commentDetail.type == 15"
  9951. @click="
  9952. openCocoPi(
  9953. 57,
  9954. commentIndexJson.toolIndex,
  9955. commentDetail.userid,
  9956. commentDetail.sName
  9957. )
  9958. "
  9959. >
  9960. <img src="../../assets/icon/codeFile.png" />
  9961. <div>点击打开CocoPi</div>
  9962. </div>
  9963. <div
  9964. class="worksAnswer"
  9965. v-if="commentDetail.works && commentDetail.type == 13"
  9966. >
  9967. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9968. </div>
  9969. <div class="scoreBox">
  9970. <span class="t">请输入分数</span>
  9971. <el-input-number
  9972. :disabled="courseDetail.userid != userid"
  9973. v-model="wScore"
  9974. :controls="false"
  9975. :min="0"
  9976. :max="100"
  9977. ></el-input-number>
  9978. </div>
  9979. <div class="scoreDetailBox">
  9980. <span class="t">评分评论</span>
  9981. <el-input
  9982. type="textarea"
  9983. :rows="5"
  9984. :disabled="courseDetail.userid != userid"
  9985. resize="none"
  9986. v-model="scoreDetail"
  9987. placeholder="请输入对学生的评价"
  9988. >
  9989. </el-input>
  9990. </div>
  9991. </div>
  9992. <span slot="footer" class="dialog-footer">
  9993. <el-button
  9994. @click="
  9995. (dialogVisibleScore = false),
  9996. (commentIndexJson = {}),
  9997. videoDetail.sources && videoDetail.sources[0]
  9998. ? (videoDetail.sources[0].src = '')
  9999. : ''
  10000. "
  10001. >取 消</el-button
  10002. >
  10003. <el-button
  10004. type="primary"
  10005. v-if="courseDetail.userid == userid"
  10006. @click="scoreWork(commentDetail.wid)"
  10007. >确 定
  10008. </el-button>
  10009. </span>
  10010. </el-dialog>
  10011. <el-dialog
  10012. title="排序"
  10013. :visible.sync="dialogVisibleSentence"
  10014. :append-to-body="true"
  10015. width="1000px"
  10016. :before-close="handleClose"
  10017. class="dialog_diy dialog_diy3"
  10018. >
  10019. <div>
  10020. <div class="sentenBox">
  10021. <div
  10022. v-for="(st, stIndex) in sentenceList"
  10023. :key="stIndex"
  10024. style="padding-bottom: 20px"
  10025. >
  10026. <div
  10027. style="padding: 15px 0 10px 20px"
  10028. class="sentenceTitle"
  10029. :index="stIndex + 1"
  10030. >
  10031. 题目{{ stIndex + 1 }}:请选择正确顺序
  10032. </div>
  10033. <div class="cardList" v-if="st.chooseSenList">
  10034. <div class="cardBox">
  10035. <div
  10036. v-for="(r, rIndex) in st.chooseSenList"
  10037. :key="rIndex"
  10038. @click="returnCard(r, stIndex, rIndex)"
  10039. >
  10040. <el-tooltip
  10041. class="item"
  10042. effect="light"
  10043. :content="r"
  10044. placement="top"
  10045. v-if="r != '' && r != undefined"
  10046. >
  10047. <div
  10048. :class="{
  10049. isCard: r,
  10050. isChooseCard: r == '' || r == undefined,
  10051. }"
  10052. >
  10053. <div>{{ r }}</div>
  10054. </div>
  10055. </el-tooltip>
  10056. <div
  10057. :class="{
  10058. isCard: r,
  10059. isChooseCard: r == '' || r == undefined,
  10060. }"
  10061. v-else
  10062. >
  10063. <div>{{ r }}</div>
  10064. </div>
  10065. </div>
  10066. </div>
  10067. </div>
  10068. <div class="cardList" v-if="st.addChangeSen">
  10069. <div class="cardBox">
  10070. <div
  10071. v-for="(s, sIndex) in st.addChangeSen"
  10072. :key="sIndex"
  10073. @click="setRightAnswer(s, stIndex, sIndex)"
  10074. >
  10075. <el-tooltip
  10076. class="item"
  10077. effect="light"
  10078. :content="s"
  10079. placement="top"
  10080. v-if="s != '' && s != undefined"
  10081. >
  10082. <div
  10083. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10084. >
  10085. <div>{{ s }}</div>
  10086. </div>
  10087. </el-tooltip>
  10088. <div
  10089. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10090. v-else
  10091. >
  10092. <div>{{ s }}</div>
  10093. </div>
  10094. </div>
  10095. </div>
  10096. </div>
  10097. </div>
  10098. </div>
  10099. </div>
  10100. <span slot="footer" class="dialog-footer">
  10101. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10102. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10103. </span>
  10104. </el-dialog>
  10105. <el-dialog
  10106. title="排序"
  10107. :visible.sync="dialogVisibleSentenceTeacher"
  10108. :append-to-body="true"
  10109. width="1000px"
  10110. :before-close="handleClose"
  10111. class="dialog_diy dialog_diy3"
  10112. >
  10113. <div>
  10114. <div class="w_name">
  10115. 学生姓名:<span>{{ sStudent.student }}</span>
  10116. </div>
  10117. <div class="sentenBox">
  10118. <div
  10119. v-for="(st, stIndex) in sentenceList"
  10120. :key="stIndex"
  10121. style="padding-bottom: 20px"
  10122. >
  10123. <div
  10124. style="padding: 15px 0 10px 20px"
  10125. class="sentenceTitle"
  10126. :index="stIndex + 1"
  10127. >
  10128. 题目{{ stIndex + 1 }}:请选择正确顺序
  10129. </div>
  10130. <div class="cardList" v-if="st.chooseSenList">
  10131. <div class="cardBox">
  10132. <div
  10133. v-for="(r, rIndex) in st.chooseSenList"
  10134. :key="rIndex"
  10135. @click="returnCard(r, stIndex, rIndex)"
  10136. >
  10137. <el-tooltip
  10138. class="item"
  10139. effect="light"
  10140. :content="r"
  10141. placement="top"
  10142. v-if="r != '' && r != undefined"
  10143. >
  10144. <div
  10145. :class="{
  10146. isCard: r,
  10147. isChooseCard: r == '' || r == undefined,
  10148. }"
  10149. >
  10150. <div>{{ r }}</div>
  10151. </div>
  10152. </el-tooltip>
  10153. <div
  10154. :class="{
  10155. isCard: r,
  10156. isChooseCard: r == '' || r == undefined,
  10157. }"
  10158. v-else
  10159. >
  10160. <div>{{ r }}</div>
  10161. </div>
  10162. </div>
  10163. </div>
  10164. </div>
  10165. <div class="cardList" v-if="st.addChangeSen">
  10166. <div class="cardBox">
  10167. <div
  10168. v-for="(s, sIndex) in st.addChangeSen"
  10169. :key="sIndex"
  10170. @click="setRightAnswer(s, stIndex, sIndex)"
  10171. >
  10172. <el-tooltip
  10173. class="item"
  10174. effect="light"
  10175. :content="s"
  10176. placement="top"
  10177. v-if="s != '' && s != undefined"
  10178. >
  10179. <div
  10180. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10181. >
  10182. <div>{{ s }}</div>
  10183. </div>
  10184. </el-tooltip>
  10185. <div
  10186. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10187. v-else
  10188. >
  10189. <div>{{ s }}</div>
  10190. </div>
  10191. </div>
  10192. </div>
  10193. </div>
  10194. </div>
  10195. </div>
  10196. </div>
  10197. <span slot="footer" class="dialog-footer">
  10198. <el-button @click="dialogVisibleSentenceTeacher = false"
  10199. >取 消</el-button
  10200. >
  10201. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10202. </span>
  10203. </el-dialog>
  10204. <el-dialog
  10205. title="排序"
  10206. :visible.sync="dialogVisibleSentence1"
  10207. :append-to-body="true"
  10208. width="1000px"
  10209. :before-close="handleClose"
  10210. class="dialog_diy dialog_diy3"
  10211. >
  10212. <div>
  10213. <div class="sentenBox">
  10214. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10215. {{ sentenceList1.stuName }}的作业
  10216. </div>
  10217. <div
  10218. v-for="(st, stIndex) in sentenceList1"
  10219. :key="stIndex"
  10220. style="padding-bottom: 20px"
  10221. >
  10222. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10223. 第{{ stIndex + 1 }}题
  10224. </div>
  10225. <div class="isWrong">
  10226. <div class="cardList1" v-if="st.chooseSenList">
  10227. <div class="cardBox">
  10228. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10229. <el-tooltip
  10230. class="item"
  10231. effect="light"
  10232. :content="s"
  10233. placement="top"
  10234. >
  10235. <div class="isCard">
  10236. <div>{{ s }}</div>
  10237. </div>
  10238. </el-tooltip>
  10239. </div>
  10240. </div>
  10241. <div class="cardAnswerBox">
  10242. 组成句子:{{ st.chooseSenList.join(" ") }}
  10243. </div>
  10244. </div>
  10245. <div v-if="tType == 2" class="isTj">
  10246. <div class="isTjImg">
  10247. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10248. </div>
  10249. <div>已提交</div>
  10250. </div>
  10251. <div
  10252. class="answerRight isTj"
  10253. v-if="
  10254. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10255. (tType == 1 || tType == 4)
  10256. "
  10257. >
  10258. <div class="isTjImg">
  10259. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10260. </div>
  10261. <div>回答正确</div>
  10262. </div>
  10263. <div
  10264. class="answerRight isTj"
  10265. v-if="
  10266. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10267. (tType == 1 || tType == 4)
  10268. "
  10269. >
  10270. <div class="isTjImg">
  10271. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10272. </div>
  10273. <div>回答错误</div>
  10274. </div>
  10275. </div>
  10276. <div
  10277. v-if="
  10278. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10279. (tType == 1 || tType == 4)
  10280. "
  10281. >
  10282. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10283. <div
  10284. class="cardList"
  10285. v-if="st.rightAnswer"
  10286. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10287. >
  10288. <div class="cardBox">
  10289. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10290. <el-tooltip
  10291. class="item"
  10292. effect="light"
  10293. :content="r"
  10294. placement="top"
  10295. >
  10296. <div class="isCard1">
  10297. <div>{{ r }}</div>
  10298. </div>
  10299. </el-tooltip>
  10300. </div>
  10301. </div>
  10302. <div class="cardAnswerBox">
  10303. 组成句子:{{ st.rightAnswer.join(" ") }}
  10304. </div>
  10305. </div>
  10306. </div>
  10307. </div>
  10308. </div>
  10309. </div>
  10310. <span slot="footer" class="dialog-footer">
  10311. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10312. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10313. >确 定</el-button
  10314. >
  10315. </span>
  10316. </el-dialog>
  10317. <el-dialog
  10318. title="教师提交作业"
  10319. :visible.sync="dialogVisibleWorks"
  10320. :append-to-body="true"
  10321. width="500px"
  10322. :before-close="handleClose"
  10323. class="dialog_change"
  10324. >
  10325. <div class="marginT">
  10326. <div class="w_name">
  10327. 学生姓名:<span>{{ sStudent.student }}</span>
  10328. </div>
  10329. <div>上传文件</div>
  10330. <div
  10331. class="chapter_add"
  10332. @click="addImg($event)"
  10333. v-if="studyJuri[0].cover.length == 0"
  10334. >
  10335. <div class="up_photo">
  10336. <img src="../../assets/uploadImg2.png" alt />
  10337. </div>
  10338. <!-- <input
  10339. type="file"
  10340. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10341. style="display: none"
  10342. @change="beforeUpload1($event, 1)"
  10343. /> -->
  10344. <input
  10345. type="file"
  10346. accept="*"
  10347. style="display: none"
  10348. @change="beforeUpload1($event, 1)"
  10349. />
  10350. </div>
  10351. <!-- capture="camera" -->
  10352. <div
  10353. class="chapter_add"
  10354. style="
  10355. display: flex;
  10356. width: 100%;
  10357. flex-direction: row;
  10358. flex-wrap: wrap;
  10359. justify-content: flex-start;
  10360. padding: 15px 0;
  10361. "
  10362. v-if="studyJuri[0].cover.length > 0"
  10363. >
  10364. <div class="upCover">
  10365. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10366. <img :src="word" alt v-else-if="fileType == 1" />
  10367. <img :src="video" alt v-else-if="fileType == 2" />
  10368. <img :src="word2" alt v-else-if="fileType == 3" />
  10369. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10370. <div class="deleteWord" @click="clean(1)">
  10371. <img src="../../assets/icon/deleteWorks.png" alt />
  10372. </div>
  10373. </div>
  10374. </div>
  10375. </div>
  10376. <div
  10377. class="upload_send"
  10378. @click="addCourseWorksTeacher(taskCount)"
  10379. v-if="!proVisible"
  10380. >
  10381. 提交
  10382. </div>
  10383. </el-dialog>
  10384. <ImgDraw
  10385. :drawShow="drawShow"
  10386. @closeDraw="closeDraw"
  10387. @addImgDraw="addImgDraw"
  10388. :bg="bg"
  10389. ></ImgDraw>
  10390. <el-dialog
  10391. title="表格"
  10392. :visible.sync="dialogVisibleTable"
  10393. :append-to-body="true"
  10394. width="95%"
  10395. :before-close="handleClose"
  10396. class="dialog_diy"
  10397. >
  10398. <el-form>
  10399. <div
  10400. style="
  10401. display: flex;
  10402. align-items: center;
  10403. justify-content: space-between;
  10404. "
  10405. >
  10406. <span>表格内容</span>
  10407. <el-button type="primary" size="small" @click="returnTableText"
  10408. >还原模板</el-button
  10409. >
  10410. </div>
  10411. <Table
  10412. v-model="tableJson.text"
  10413. @change="change"
  10414. v-if="dialogVisibleTable"
  10415. ></Table>
  10416. </el-form>
  10417. <span slot="footer" class="dialog-footer">
  10418. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10419. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10420. </span>
  10421. </el-dialog>
  10422. <el-dialog
  10423. title="表格"
  10424. :visible.sync="dialogVisibleTableTeacher"
  10425. :append-to-body="true"
  10426. width="95%"
  10427. :before-close="handleClose"
  10428. class="dialog_diy"
  10429. >
  10430. <el-form>
  10431. <div class="w_name">
  10432. 学生姓名:<span>{{ sStudent.student }}</span>
  10433. </div>
  10434. <div>表格内容</div>
  10435. <Table
  10436. v-model="tableJson.text"
  10437. @change="change"
  10438. v-if="dialogVisibleTableTeacher"
  10439. ></Table>
  10440. </el-form>
  10441. <span slot="footer" class="dialog-footer">
  10442. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10443. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10444. </span>
  10445. </el-dialog>
  10446. <el-dialog
  10447. title="文档"
  10448. :visible.sync="dialogVisibleWord"
  10449. :append-to-body="true"
  10450. width="95%"
  10451. :before-close="handleClose"
  10452. class="dialog_diy"
  10453. >
  10454. <el-form>
  10455. <div
  10456. style="
  10457. display: flex;
  10458. align-items: center;
  10459. justify-content: space-between;
  10460. "
  10461. >
  10462. <span>文档内容</span>
  10463. <el-button type="primary" size="small" @click="returnWordText"
  10464. >还原模板</el-button
  10465. >
  10466. </div>
  10467. <editor-bar
  10468. v-model="wordJson.text"
  10469. v-if="dialogVisibleWord"
  10470. ></editor-bar>
  10471. </el-form>
  10472. <span slot="footer" class="dialog-footer">
  10473. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10474. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10475. </span>
  10476. </el-dialog>
  10477. <el-dialog
  10478. title="文档"
  10479. :visible.sync="dialogVisibleWordTeacher"
  10480. :append-to-body="true"
  10481. width="95%"
  10482. :before-close="handleClose"
  10483. class="dialog_diy"
  10484. >
  10485. <el-form>
  10486. <div class="w_name">
  10487. 学生姓名:<span>{{ sStudent.student }}</span>
  10488. </div>
  10489. <div>文档内容</div>
  10490. <editor-bar
  10491. v-model="wordJson.text"
  10492. v-if="dialogVisibleWordTeacher"
  10493. ></editor-bar>
  10494. </el-form>
  10495. <span slot="footer" class="dialog-footer">
  10496. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10497. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10498. </span>
  10499. </el-dialog>
  10500. <el-dialog
  10501. title="表格"
  10502. :visible.sync="dialogVisibleTable2"
  10503. :append-to-body="true"
  10504. width="95%"
  10505. :before-close="handleClose"
  10506. class="dialog_diy"
  10507. >
  10508. <el-form>
  10509. <div class="cont" v-html="tableJson.text"></div>
  10510. </el-form>
  10511. <span slot="footer" class="dialog-footer">
  10512. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10513. </span>
  10514. </el-dialog>
  10515. <el-dialog
  10516. title="文档"
  10517. :visible.sync="dialogVisibleTable3"
  10518. :append-to-body="true"
  10519. width="95%"
  10520. :before-close="handleClose"
  10521. class="dialog_diy"
  10522. >
  10523. <el-form>
  10524. <div class="cont" v-html="tableJson.text"></div>
  10525. </el-form>
  10526. <span slot="footer" class="dialog-footer">
  10527. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10528. </span>
  10529. </el-dialog>
  10530. <el-dialog
  10531. title="分组设置"
  10532. :visible.sync="dialogVisibleGroup"
  10533. :append-to-body="true"
  10534. width="95%"
  10535. :before-close="handleClose"
  10536. class="dialog_diy"
  10537. >
  10538. <div v-if="dialogVisibleGroup">
  10539. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10540. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10541. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10542. </div>
  10543. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10544. @click="lockChair">
  10545. 锁定位置
  10546. </div>
  10547. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10548. 解锁位置
  10549. </div> -->
  10550. <div class="group_switch">
  10551. <span>开放选座</span>
  10552. <el-switch
  10553. v-model="islock"
  10554. active-text=""
  10555. class="switchCss"
  10556. @change="lockChair"
  10557. ></el-switch>
  10558. </div>
  10559. <div
  10560. type="primary"
  10561. @click="updateGroup"
  10562. class="returnBtn"
  10563. style="background-color: #225bc7"
  10564. >
  10565. 分组设置
  10566. </div>
  10567. </div>
  10568. <div>
  10569. <div
  10570. class="g_d_box"
  10571. v-if="groupJson.group && groupStudent[toolindex]"
  10572. >
  10573. <div
  10574. class="g_d_group"
  10575. v-for="(g, gindex) in groupJson.group"
  10576. :key="gindex"
  10577. >
  10578. <div class="g_d_group_chair">
  10579. <div v-if="groupJson.number > 1">
  10580. <span
  10581. :class="{
  10582. isChair:
  10583. groupStudent[toolindex][gindex] &&
  10584. groupStudent[toolindex][gindex][0],
  10585. updateChair:
  10586. courseDetail.userid == userid &&
  10587. groupStudent[toolindex][gindex] &&
  10588. groupStudent[toolindex][gindex][0] &&
  10589. groupJson.islock == 2,
  10590. }"
  10591. ><span
  10592. class="updateChairBtn"
  10593. @click="
  10594. updateGroupChair(
  10595. groupStudent[toolindex][gindex] &&
  10596. groupStudent[toolindex][gindex][0]
  10597. )
  10598. "
  10599. >修改</span
  10600. ></span
  10601. ><span>{{
  10602. groupStudent[toolindex][gindex] &&
  10603. groupStudent[toolindex][gindex][0]
  10604. ? groupStudent[toolindex][gindex] &&
  10605. groupStudent[toolindex][gindex][0].name
  10606. : "空位置"
  10607. }}</span>
  10608. </div>
  10609. <div v-if="groupJson.number > 4">
  10610. <span
  10611. :class="{
  10612. isChair:
  10613. groupStudent[toolindex][gindex] &&
  10614. groupStudent[toolindex][gindex][4],
  10615. updateChair:
  10616. courseDetail.userid == userid &&
  10617. groupStudent[toolindex][gindex] &&
  10618. groupStudent[toolindex][gindex][4] &&
  10619. groupJson.islock == 2,
  10620. }"
  10621. ><span
  10622. class="updateChairBtn"
  10623. @click="
  10624. updateGroupChair(
  10625. groupStudent[toolindex][gindex] &&
  10626. groupStudent[toolindex][gindex][4]
  10627. )
  10628. "
  10629. >修改</span
  10630. ></span
  10631. ><span>{{
  10632. groupStudent[toolindex][gindex] &&
  10633. groupStudent[toolindex][gindex][4]
  10634. ? groupStudent[toolindex][gindex] &&
  10635. groupStudent[toolindex][gindex][4].name
  10636. : "空位置"
  10637. }}</span>
  10638. </div>
  10639. <div v-if="groupJson.number > 8">
  10640. <span
  10641. :class="{
  10642. isChair:
  10643. groupStudent[toolindex][gindex] &&
  10644. groupStudent[toolindex][gindex][8],
  10645. updateChair:
  10646. courseDetail.userid == userid &&
  10647. groupStudent[toolindex][gindex] &&
  10648. groupStudent[toolindex][gindex][8] &&
  10649. groupJson.islock == 2,
  10650. }"
  10651. ><span
  10652. class="updateChairBtn"
  10653. @click="
  10654. updateGroupChair(
  10655. groupStudent[toolindex][gindex] &&
  10656. groupStudent[toolindex][gindex][8]
  10657. )
  10658. "
  10659. >修改</span
  10660. ></span
  10661. ><span>{{
  10662. groupStudent[toolindex][gindex] &&
  10663. groupStudent[toolindex][gindex][8]
  10664. ? groupStudent[toolindex][gindex] &&
  10665. groupStudent[toolindex][gindex][8].name
  10666. : "空位置"
  10667. }}</span>
  10668. </div>
  10669. </div>
  10670. <div class="g_d_group_tableBox">
  10671. <div class="g_d_group_chair2">
  10672. <div v-if="groupJson.number > 2">
  10673. <span
  10674. :class="{
  10675. isChair:
  10676. groupStudent[toolindex][gindex] &&
  10677. groupStudent[toolindex][gindex][2],
  10678. updateChair:
  10679. courseDetail.userid == userid &&
  10680. groupStudent[toolindex][gindex] &&
  10681. groupStudent[toolindex][gindex][2] &&
  10682. groupJson.islock == 2,
  10683. }"
  10684. ><span
  10685. class="updateChairBtn"
  10686. @click="
  10687. updateGroupChair(
  10688. groupStudent[toolindex][gindex] &&
  10689. groupStudent[toolindex][gindex][2]
  10690. )
  10691. "
  10692. >修改</span
  10693. ></span
  10694. ><span>{{
  10695. groupStudent[toolindex][gindex] &&
  10696. groupStudent[toolindex][gindex][2]
  10697. ? groupStudent[toolindex][gindex] &&
  10698. groupStudent[toolindex][gindex][2].name
  10699. : "空位置"
  10700. }}</span>
  10701. </div>
  10702. <div v-if="groupJson.number > 6">
  10703. <span
  10704. :class="{
  10705. isChair:
  10706. groupStudent[toolindex][gindex] &&
  10707. groupStudent[toolindex][gindex][6],
  10708. updateChair:
  10709. courseDetail.userid == userid &&
  10710. groupStudent[toolindex][gindex] &&
  10711. groupStudent[toolindex][gindex][6] &&
  10712. groupJson.islock == 2,
  10713. }"
  10714. ><span
  10715. class="updateChairBtn"
  10716. @click="
  10717. updateGroupChair(
  10718. groupStudent[toolindex][gindex] &&
  10719. groupStudent[toolindex][gindex][6]
  10720. )
  10721. "
  10722. >修改</span
  10723. ></span
  10724. ><span>{{
  10725. groupStudent[toolindex][gindex] &&
  10726. groupStudent[toolindex][gindex][6]
  10727. ? groupStudent[toolindex][gindex] &&
  10728. groupStudent[toolindex][gindex][6].name
  10729. : "空位置"
  10730. }}</span>
  10731. </div>
  10732. </div>
  10733. <div class="g_d_group_table">
  10734. <div>
  10735. {{ g.name }}
  10736. </div>
  10737. <div>
  10738. <div
  10739. v-if="
  10740. courseDetail.userid == userid && groupJson.islock == 2
  10741. "
  10742. @click="deleteGroupChair(gindex)"
  10743. >
  10744. 移除组员
  10745. </div>
  10746. <div
  10747. @click="selectGroup(gindex)"
  10748. v-else-if="
  10749. groupStudentUid[toolindex] &&
  10750. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10751. "
  10752. >
  10753. 加入分组
  10754. </div>
  10755. <div
  10756. @click="
  10757. exitGroup(
  10758. groupStudent[toolindex][gindex] &&
  10759. groupStudent[toolindex][gindex][
  10760. groupStudentUid[toolindex][gindex].indexOf(userid)
  10761. ].id
  10762. )
  10763. "
  10764. v-else-if="
  10765. groupStudentUid[toolindex] &&
  10766. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10767. "
  10768. >
  10769. 退出分组
  10770. </div>
  10771. </div>
  10772. </div>
  10773. <div class="g_d_group_chair2">
  10774. <div v-if="groupJson.number > 3">
  10775. <span
  10776. :class="{
  10777. isChair:
  10778. groupStudent[toolindex][gindex] &&
  10779. groupStudent[toolindex][gindex][3],
  10780. updateChair:
  10781. courseDetail.userid == userid &&
  10782. groupStudent[toolindex][gindex] &&
  10783. groupStudent[toolindex][gindex][3] &&
  10784. groupJson.islock == 2,
  10785. }"
  10786. ><span
  10787. class="updateChairBtn"
  10788. @click="
  10789. updateGroupChair(
  10790. groupStudent[toolindex][gindex] &&
  10791. groupStudent[toolindex][gindex][3]
  10792. )
  10793. "
  10794. >修改</span
  10795. ></span
  10796. ><span>{{
  10797. groupStudent[toolindex][gindex] &&
  10798. groupStudent[toolindex][gindex][3]
  10799. ? groupStudent[toolindex][gindex] &&
  10800. groupStudent[toolindex][gindex][3].name
  10801. : "空位置"
  10802. }}</span>
  10803. </div>
  10804. <div v-if="groupJson.number > 7">
  10805. <span
  10806. :class="{
  10807. isChair:
  10808. groupStudent[toolindex][gindex] &&
  10809. groupStudent[toolindex][gindex][7],
  10810. updateChair:
  10811. courseDetail.userid == userid &&
  10812. groupStudent[toolindex][gindex] &&
  10813. groupStudent[toolindex][gindex][7] &&
  10814. groupJson.islock == 2,
  10815. }"
  10816. ><span
  10817. class="updateChairBtn"
  10818. @click="
  10819. updateGroupChair(
  10820. groupStudent[toolindex][gindex] &&
  10821. groupStudent[toolindex][gindex][7]
  10822. )
  10823. "
  10824. >修改</span
  10825. ></span
  10826. ><span>{{
  10827. groupStudent[toolindex][gindex] &&
  10828. groupStudent[toolindex][gindex][7]
  10829. ? groupStudent[toolindex][gindex] &&
  10830. groupStudent[toolindex][gindex][7].name
  10831. : "空位置"
  10832. }}</span>
  10833. </div>
  10834. </div>
  10835. </div>
  10836. <div class="g_d_group_chair">
  10837. <div v-if="groupJson.number > 1">
  10838. <span
  10839. :class="{
  10840. isChair:
  10841. groupStudent[toolindex][gindex] &&
  10842. groupStudent[toolindex][gindex][1],
  10843. updateChair:
  10844. courseDetail.userid == userid &&
  10845. groupStudent[toolindex][gindex] &&
  10846. groupStudent[toolindex][gindex][1] &&
  10847. groupJson.islock == 2,
  10848. }"
  10849. ><span
  10850. class="updateChairBtn"
  10851. @click="
  10852. updateGroupChair(
  10853. groupStudent[toolindex][gindex] &&
  10854. groupStudent[toolindex][gindex][1]
  10855. )
  10856. "
  10857. >修改</span
  10858. ></span
  10859. ><span>{{
  10860. groupStudent[toolindex][gindex] &&
  10861. groupStudent[toolindex][gindex][1]
  10862. ? groupStudent[toolindex][gindex] &&
  10863. groupStudent[toolindex][gindex][1].name
  10864. : "空位置"
  10865. }}</span>
  10866. </div>
  10867. <div v-if="groupJson.number > 5">
  10868. <span
  10869. :class="{
  10870. isChair:
  10871. groupStudent[toolindex][gindex] &&
  10872. groupStudent[toolindex][gindex][5],
  10873. updateChair:
  10874. courseDetail.userid == userid &&
  10875. groupStudent[toolindex][gindex] &&
  10876. groupStudent[toolindex][gindex][5] &&
  10877. groupJson.islock == 2,
  10878. }"
  10879. ><span
  10880. class="updateChairBtn"
  10881. @click="
  10882. updateGroupChair(
  10883. groupStudent[toolindex][gindex] &&
  10884. groupStudent[toolindex][gindex][5]
  10885. )
  10886. "
  10887. >修改</span
  10888. ></span
  10889. ><span>{{
  10890. groupStudent[toolindex][gindex] &&
  10891. groupStudent[toolindex][gindex][5]
  10892. ? groupStudent[toolindex][gindex] &&
  10893. groupStudent[toolindex][gindex][5].name
  10894. : "空位置"
  10895. }}</span>
  10896. </div>
  10897. <div v-if="groupJson.number > 9">
  10898. <span
  10899. :class="{
  10900. isChair:
  10901. groupStudent[toolindex][gindex] &&
  10902. groupStudent[toolindex][gindex][9],
  10903. updateChair:
  10904. courseDetail.userid == userid &&
  10905. groupStudent[toolindex][gindex] &&
  10906. groupStudent[toolindex][gindex][9] &&
  10907. groupJson.islock == 2,
  10908. }"
  10909. ><span
  10910. class="updateChairBtn"
  10911. @click="
  10912. updateGroupChair(
  10913. groupStudent[toolindex][gindex] &&
  10914. groupStudent[toolindex][gindex][9]
  10915. )
  10916. "
  10917. >修改</span
  10918. ></span
  10919. ><span>{{
  10920. groupStudent[toolindex][gindex] &&
  10921. groupStudent[toolindex][gindex][9]
  10922. ? groupStudent[toolindex][gindex] &&
  10923. groupStudent[toolindex][gindex][9].name
  10924. : "空位置"
  10925. }}</span>
  10926. </div>
  10927. </div>
  10928. </div>
  10929. </div>
  10930. </div>
  10931. </div>
  10932. <span slot="footer" class="dialog-footer">
  10933. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10934. </span>
  10935. </el-dialog>
  10936. <el-dialog
  10937. title="分组设置"
  10938. :visible.sync="dialogVisibleGroup2"
  10939. :append-to-body="true"
  10940. width="650px"
  10941. :before-close="handleClose"
  10942. class="dialog_diy"
  10943. >
  10944. <div class="groupBox">
  10945. <div v-if="groupJson2.group" class="groupContent">
  10946. <div class="groupTitle">请设置小组数量及名称</div>
  10947. <div
  10948. v-for="(item, index) in groupJson2.group"
  10949. :key="index"
  10950. class="groupName"
  10951. >
  10952. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10953. <el-input
  10954. v-model="item.name"
  10955. placeholder="请输入名称..."
  10956. style="width: 250px"
  10957. ></el-input>
  10958. <!-- <div class="groupBtn">
  10959. <el-button type="primary" size="small" @click="addGroup(index)">
  10960. 添加</el-button>
  10961. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10962. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10963. </div> -->
  10964. </div>
  10965. </div>
  10966. <div class="groupContent">
  10967. <div class="groupTitle">请设置每组人数</div>
  10968. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10969. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10970. <el-input
  10971. v-model="groupJson.number"
  10972. style="width: 150px"
  10973. placeholder="请输入2-10的数字"
  10974. @change="numberPan"
  10975. ></el-input>
  10976. </div>
  10977. </div>
  10978. <span slot="footer" class="dialog-footer">
  10979. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10980. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10981. </span>
  10982. </el-dialog>
  10983. <el-dialog
  10984. title="作业提交"
  10985. :visible.sync="dialogVisibleGroupWork"
  10986. :append-to-body="true"
  10987. width="500px"
  10988. :before-close="handleClose"
  10989. class="dialog_change"
  10990. >
  10991. <div class="marginT">
  10992. <div>上传文件</div>
  10993. <div
  10994. class="chapter_add"
  10995. @click="addImg($event)"
  10996. v-if="studyJuri[0].cover.length == 0"
  10997. >
  10998. <div class="up_photo">
  10999. <img src="../../assets/icon/uploadImg.png" alt />
  11000. </div>
  11001. <!-- <input
  11002. type="file"
  11003. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11004. style="display: none"
  11005. @change="beforeUpload1($event, 1)"
  11006. /> -->
  11007. <input
  11008. type="file"
  11009. accept="*"
  11010. style="display: none"
  11011. @change="beforeUpload1($event, 1)"
  11012. />
  11013. </div>
  11014. <!-- capture="camera" -->
  11015. <div
  11016. class="chapter_add"
  11017. style="
  11018. display: flex;
  11019. width: 100%;
  11020. flex-direction: row;
  11021. flex-wrap: wrap;
  11022. justify-content: flex-start;
  11023. padding: 15px 0;
  11024. "
  11025. v-if="studyJuri[0].cover.length > 0"
  11026. >
  11027. <div class="upCover">
  11028. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11029. <img :src="word" alt v-else-if="fileType == 1" />
  11030. <img :src="video" alt v-else-if="fileType == 2" />
  11031. <img :src="word2" alt v-else-if="fileType == 3" />
  11032. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11033. <div class="deleteWord" @click="clean(1)">
  11034. <img src="../../assets/icon/deleteWorks.png" alt />
  11035. </div>
  11036. </div>
  11037. </div>
  11038. </div>
  11039. <div
  11040. class="upload_send"
  11041. @click="addCourseWorks2(taskCount)"
  11042. v-if="!proVisible"
  11043. >
  11044. 提交
  11045. </div>
  11046. </el-dialog>
  11047. <el-dialog
  11048. title="修改分组"
  11049. :visible.sync="dialogVisibleUpdateGroup"
  11050. :append-to-body="true"
  11051. width="350px"
  11052. :before-close="handleClose"
  11053. class="dialog_diy"
  11054. >
  11055. <div>
  11056. <h2>
  11057. {{ this.updateGroupUser.name }}
  11058. </h2>
  11059. <div style="color: rgb(171 171 171); margin-top: 10px">
  11060. 请选择要进入的分组
  11061. </div>
  11062. <el-radio-group v-model="checkChair">
  11063. <el-radio
  11064. style="display: block; margin-top: 20px"
  11065. v-for="(item, index) in updateGroupArray"
  11066. :label="item.label"
  11067. :key="index"
  11068. >{{ item.name }}</el-radio
  11069. >
  11070. </el-radio-group>
  11071. </div>
  11072. <span slot="footer" class="dialog-footer">
  11073. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11074. <el-button type="primary" @click="updateChair">确定</el-button>
  11075. </span>
  11076. </el-dialog>
  11077. <el-dialog
  11078. title="移除组员"
  11079. :visible.sync="dialogVisibleDeleteGroup"
  11080. :append-to-body="true"
  11081. width="350px"
  11082. :before-close="handleClose"
  11083. class="dialog_diy"
  11084. >
  11085. <div>
  11086. <h2>
  11087. {{ this.deleteGroupArray.name }}
  11088. </h2>
  11089. <div style="color: rgb(171 171 171); margin-top: 10px">
  11090. 请选择要删除的组员
  11091. </div>
  11092. <el-checkbox-group v-model="checkDeleteGroup">
  11093. <el-checkbox
  11094. style="display: flex; margin-top: 20px"
  11095. v-for="(item, index) in deleteGroupUser"
  11096. :label="item.userid"
  11097. :key="index"
  11098. >{{ item.name }}</el-checkbox
  11099. >
  11100. </el-checkbox-group>
  11101. </div>
  11102. <span slot="footer" class="dialog-footer">
  11103. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11104. <el-button type="primary" @click="deleteChair">确定</el-button>
  11105. </span>
  11106. </el-dialog>
  11107. <el-dialog
  11108. title="批量上传"
  11109. :visible.sync="dialogVisiblePl"
  11110. :append-to-body="true"
  11111. width="700px"
  11112. :before-close="handleClose"
  11113. class="dialog_change"
  11114. >
  11115. <div class="marginT">
  11116. <div class="plworkBox">
  11117. <div
  11118. class="chapter_add"
  11119. style="
  11120. display: flex;
  11121. width: 150px;
  11122. flex-direction: row;
  11123. flex-wrap: wrap;
  11124. justify-content: flex-start;
  11125. margin: 0 10px 10px 0;
  11126. "
  11127. v-for="(item, index) in plworkFile"
  11128. :key="index"
  11129. >
  11130. <div class="upCover2">
  11131. <img
  11132. :src="item.url"
  11133. alt
  11134. v-if="item.fileType == 1"
  11135. @click="previewImg(item.url)"
  11136. />
  11137. <img :src="word" alt v-else-if="item.fileType == 4" />
  11138. <img :src="video" alt v-else />
  11139. <!-- <span class="picName">{{ item.name }}</span> -->
  11140. <!-- <el-input
  11141. v-model="item.username"
  11142. placeholder="请输入学生名字"
  11143. style="margin-top: 10px"
  11144. ></el-input> -->
  11145. <div
  11146. class="pl_select_box"
  11147. @click="
  11148. getUpdateMore(true, checkUpload(), item.username, index)
  11149. "
  11150. >
  11151. {{ getSName(item.username) }}
  11152. </div>
  11153. <!-- <el-select
  11154. style="margin-top: 10px"
  11155. v-model="item.username"
  11156. filterable
  11157. allow-create
  11158. placeholder="请选择学生"
  11159. >
  11160. <el-option
  11161. v-for="item1 in checkUpload()"
  11162. :key="item1.userid"
  11163. :label="item1.name ? item1.name : item1.username"
  11164. :value="item1.userid"
  11165. >
  11166. </el-option>
  11167. </el-select> -->
  11168. <div class="deleteWord" @click="clean2(index)">
  11169. <img src="../../assets/icon/deleteWorks.png" alt />
  11170. </div>
  11171. </div>
  11172. </div>
  11173. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11174. <div class="up_photo2">
  11175. <img src="../../assets/icon/plwork.png" alt />
  11176. <span>点击上传文件</span>
  11177. </div>
  11178. <input
  11179. type="file"
  11180. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11181. multiple="multiple"
  11182. style="display: none"
  11183. @change="beforeUpload3($event, 6)"
  11184. />
  11185. </div>
  11186. </div>
  11187. </div>
  11188. <!-- capture="camera" -->
  11189. <div
  11190. class="upload_send"
  11191. @click="addCourseWorksPl(taskCount)"
  11192. v-if="!proVisible2"
  11193. >
  11194. 提交
  11195. </div>
  11196. </el-dialog>
  11197. <el-dialog
  11198. title="修改名称"
  11199. :visible.sync="dialogVisibleSname"
  11200. width="500px"
  11201. :before-close="handleClose"
  11202. class="dialog_diy"
  11203. center
  11204. >
  11205. <div
  11206. style="
  11207. text-align: center;
  11208. display: flex;
  11209. align-items: center;
  11210. justify-content: center;
  11211. "
  11212. >
  11213. <span class="tian1">名称</span>
  11214. <div
  11215. class="pl_select_box"
  11216. style="margin-left: 10px; width: 200px"
  11217. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11218. >
  11219. {{ getSName(worksSName) }}
  11220. </div>
  11221. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11222. placeholder="请选择学生">
  11223. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11224. :value="item.userid">
  11225. </el-option>
  11226. </el-select> -->
  11227. <!-- <el-input
  11228. v-model="worksSName"
  11229. style="width: 250px; margin: 15px 0px"
  11230. ></el-input> -->
  11231. </div>
  11232. <span slot="footer" class="dialog-footer">
  11233. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11234. <el-button type="primary" @click="updateName">确 定</el-button>
  11235. </span>
  11236. </el-dialog>
  11237. <el-dialog
  11238. title="英语写作"
  11239. :visible.sync="engDialogVisible"
  11240. :append-to-body="true"
  11241. width="800px"
  11242. :before-close="handleClose"
  11243. class="dialog_diy"
  11244. >
  11245. <onlineWrite
  11246. v-if="engDialogVisible"
  11247. @setEnglish="setEnglishList"
  11248. :englishList="englishList"
  11249. :myAnswerList1="myAnswerList1"
  11250. ></onlineWrite>
  11251. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11252. <el-button @click="engDialogVisible = false">取 消</el-button>
  11253. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11254. </span>
  11255. </el-dialog>
  11256. <el-dialog
  11257. title="英语写作"
  11258. :visible.sync="engUpdateDialogVisible"
  11259. :append-to-body="true"
  11260. width="800px"
  11261. :before-close="handleClose"
  11262. class="dialog_diy fullStyle"
  11263. >
  11264. <div class="engUpBox">
  11265. <div class="engUpTop">
  11266. <div class="engTitle">
  11267. <div>作文题目:</div>
  11268. <div>{{ englishList1.engTitle }}</div>
  11269. </div>
  11270. <div class="engText">
  11271. <div>作文题目:</div>
  11272. <div class="cont" v-html="englishList1.englishText" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11273. </div>
  11274. </div>
  11275. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11276. <div class="oldBox">
  11277. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11278. <div class="oldText">
  11279. <div class="detailBox">
  11280. <div class="oldDetail">
  11281. <div>标题:</div>
  11282. <div>{{ oldEnglishJson.engTitle }} </div>
  11283. </div>
  11284. <div class="oldDetail1">
  11285. <div>正文:</div>
  11286. <div v-html="oldEnglishJson.engText"></div>
  11287. </div>
  11288. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11289. <div>图片:</div>
  11290. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11291. </div>
  11292. </div>
  11293. </div>
  11294. </div>
  11295. <div class="oldBox" v-if="userMes[0].type == 2">
  11296. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11297. <div class="oldText">
  11298. <div class="detailBox">
  11299. <div class="oldDetail">
  11300. <div>标题:</div>
  11301. <el-input v-model="newEnglishList.engTitle" />
  11302. </div>
  11303. <div class="oldDetail">
  11304. <div>正文:</div>
  11305. <el-input type="textarea"
  11306. :rows="10"
  11307. resize="none" v-model="newEnglishList.engText" />
  11308. </div>
  11309. </div>
  11310. </div>
  11311. </div>
  11312. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11313. <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">
  11314. <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>
  11315. <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>
  11316. </div>
  11317. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11318. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11319. <div class="detailBox">
  11320. <div class="oldDetail">
  11321. <div>标题:</div>
  11322. <el-input v-model="oldEnglishJson1.engTitle" />
  11323. </div>
  11324. <div class="oldDetail">
  11325. <div>正文:</div>
  11326. <el-input type="textarea"
  11327. :rows="10"
  11328. resize="none" v-model="oldEnglishJson1.engText" />
  11329. </div>
  11330. </div>
  11331. </div>
  11332. <div class="oldText" v-else-if="newEngIndex == -1">
  11333. <div class="detailBox">
  11334. <div class="oldDetail">
  11335. <div>标题:</div>
  11336. <el-input v-model="newEnglishList.engTitle" />
  11337. </div>
  11338. <div class="oldDetail">
  11339. <div>正文:</div>
  11340. <el-input type="textarea"
  11341. :rows="10"
  11342. resize="none" v-model="newEnglishList.engText" />
  11343. </div>
  11344. </div>
  11345. </div>
  11346. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11347. <div class="detailBox">
  11348. <div class="oldDetail">
  11349. <div>标题:</div>
  11350. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11351. <el-input v-else v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11352. </div>
  11353. <div class="oldDetail">
  11354. <div>正文:</div>
  11355. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11356. <el-input v-else type="textarea"
  11357. :rows="10"
  11358. resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11359. </div>
  11360. </div>
  11361. </div>
  11362. </div>
  11363. </div>
  11364. </div>
  11365. <span slot="footer" class="dialog-footer">
  11366. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11367. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11368. </span>
  11369. </el-dialog>
  11370. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible"></englishEva>
  11371. <interVideo
  11372. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11373. :videoJson="videoJson"
  11374. :userid="userid"
  11375. :id="id"
  11376. :courseType="courseType"
  11377. :taskCount="taskCount"
  11378. :toolindex="toolindex"
  11379. ></interVideo>
  11380. <UpdateMore
  11381. :dialogVisibleMember.sync="dialogVisibleMember"
  11382. :cList="uploadStudentJuri"
  11383. :userid="userid"
  11384. :searchTN="worksSName2"
  11385. @setPlname="setPlname"
  11386. ></UpdateMore>
  11387. <wordCloud
  11388. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11389. :data="wordCloudData"
  11390. ></wordCloud>
  11391. <el-dialog
  11392. title="挑人"
  11393. :visible.sync="dialogVisiblePickPeople"
  11394. width="650px"
  11395. :before-close="handleClose"
  11396. class="dialog_diy"
  11397. center
  11398. >
  11399. <div class="pick_box">
  11400. <div
  11401. class="noWorksName"
  11402. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11403. v-for="(item, index) in uploadStudentJuri"
  11404. :key="index"
  11405. @click="pickStudent(item)"
  11406. >
  11407. {{ item.name }}
  11408. </div>
  11409. </div>
  11410. </el-dialog>
  11411. </div>
  11412. </template>
  11413. <script>
  11414. import "../../common/aws-sdk-2.235.1.min.js";
  11415. // import pdf from "../components/pdf3";
  11416. import pdf from "../components/vpdf";
  11417. import AskStatic from "../components/askStatic";
  11418. import AskStatic2 from "../components/askStatic2";
  11419. import AnswerData2 from "../components/answerData2";
  11420. import AnswerData from "../components/answerData";
  11421. import EditorBar from "../tools/wangEnduit.vue";
  11422. import Table from "../tools/table.vue";
  11423. import Time from "../tools/time.vue";
  11424. import Mind from "../tools/jsmind.vue";
  11425. import Sunburst from "../tools/sunburst";
  11426. import SeeBoard from "../tools/seeBoard";
  11427. import * as imageConversion from "image-conversion";
  11428. import Audio from "../components/audio.vue";
  11429. import ImgDraw from "../tools/imgDraw/imgDraw";
  11430. import { Empty } from "element-ui";
  11431. import RecordRTC from "recordrtc";
  11432. import interVideo from "../interVideo/index.vue";
  11433. import UpdateMore from "../updateMore/updateMore.vue";
  11434. import wordCloud from "../wordCloud/index.vue";
  11435. import axios from "axios";
  11436. import JSZip from "jszip";
  11437. import FileSaver from "file-saver";
  11438. import onlineWrite from "./commpont/onlineWrite";
  11439. import englishEva from "../components/englishEva";
  11440. const getFile = (url) => {
  11441. return new Promise((resolve, reject) => {
  11442. axios({
  11443. method: "get",
  11444. url,
  11445. responseType: "blob",
  11446. })
  11447. .then((data) => {
  11448. resolve({ data: data.data });
  11449. })
  11450. .catch((error) => {
  11451. resolve({ data: 1 });
  11452. // reject(error.toString());
  11453. });
  11454. });
  11455. };
  11456. export default {
  11457. components: {
  11458. EditorBar,
  11459. Time,
  11460. pdf,
  11461. AskStatic,
  11462. AskStatic2,
  11463. Mind,
  11464. Sunburst,
  11465. SeeBoard,
  11466. AnswerData2,
  11467. AnswerData,
  11468. Audio,
  11469. ImgDraw,
  11470. Table,
  11471. interVideo,
  11472. UpdateMore,
  11473. wordCloud,
  11474. onlineWrite,
  11475. englishEva,
  11476. },
  11477. data() {
  11478. return {
  11479. bg: null,
  11480. drawShow: false,
  11481. dialogVisible: false,
  11482. dialogVisiblePl: false,
  11483. commentDialogVisible: false,
  11484. dialogVisibleMember: false,
  11485. dialogVisibleWordCloud: false,
  11486. videoVisible: false,
  11487. isStar: false,
  11488. studentEvalDialogVisible: false,
  11489. studentEvalDialogVisibleTeacher: false,
  11490. dialogVisibleSelect: false,
  11491. dialogVisibleSelectTeacher: false,
  11492. dialogVisibleScore: false,
  11493. dialogVisibleSentence: false,
  11494. dialogVisibleSentenceTeacher: false,
  11495. dialogVisibleSentence1: false,
  11496. dialogVisibleWorks: false,
  11497. dialogVisibleTable: false,
  11498. dialogVisibleTableTeacher: false,
  11499. dialogVisibleWord: false,
  11500. dialogVisibleWordTeacher: false,
  11501. dialogVisibleTable2: false,
  11502. dialogVisibleTable3: false,
  11503. dialogVisibleGroupWork: false,
  11504. dialogVisibleUpdateGroup: false,
  11505. dialogVisibleDeleteGroup: false,
  11506. dialogVisibleSname: false,
  11507. dialogVisibleVideo: false,
  11508. dialogVisiblePickPeople: false,
  11509. worksSName: "",
  11510. classJuri: [],
  11511. uploadStudentJuri: [],
  11512. uploadCid: "",
  11513. snameWid: "",
  11514. sStudent: {},
  11515. sTool: "",
  11516. bzText: "",
  11517. commentDetail: [],
  11518. selectAnswer: [],
  11519. videoDetail: {},
  11520. selectJson: {},
  11521. eScore: { eBzText: "", eStar: [] },
  11522. id: this.$route.query.courseId,
  11523. userid: this.$route.query.userid,
  11524. classId: this.$route.query.cid,
  11525. // courseTypeLine: this.$route.query.type,
  11526. oid: this.$route.query.oid,
  11527. org: this.$route.query.org,
  11528. tType: this.$route.query.tType,
  11529. courseType: this.$route.query.type,
  11530. screenType: this.$route.query.screenType,
  11531. tcid2: this.$route.query.tcid,
  11532. tcid: "",
  11533. pptImgUrl: "",
  11534. pptImgUrl1: "",
  11535. commentText: "",
  11536. full: false,
  11537. sIsOpen: false,
  11538. IsLookOpen: false,
  11539. IsFollow: false,
  11540. pzDialog: false,
  11541. contentDialog: false,
  11542. mlDialog: false,
  11543. type: 1,
  11544. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11545. sentenceList1: [],
  11546. tableJson: [],
  11547. tableJsonO: [],
  11548. wordJson: [],
  11549. wordJsonO: [],
  11550. vedio: [],
  11551. text: [],
  11552. textList: [],
  11553. line: [],
  11554. lineList: [],
  11555. chapTools: [],
  11556. chapToolList: [],
  11557. file: [],
  11558. fileC: [],
  11559. vedioTime: [],
  11560. upToolImg: "",
  11561. preTime: 0,
  11562. rateList: {
  11563. ca: 0,
  11564. },
  11565. rateParams: [],
  11566. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11567. studyJuri: [
  11568. {
  11569. content: "",
  11570. cover: [],
  11571. upVedio: [],
  11572. upFile: [],
  11573. },
  11574. ],
  11575. isClose: 0,
  11576. plworkFile: [],
  11577. mr: require("../../assets/vedioPic.png"),
  11578. word: require("../../assets/icon/isWord.png"),
  11579. word2: require("../../assets/icon/word2.png"),
  11580. video: require("../../assets/icon/isVideo.png"),
  11581. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11582. likes: require("../../assets/icon/comment/likes.png"),
  11583. scoreImg: require("../../assets/score.png"),
  11584. courseDetail: {},
  11585. reply: "",
  11586. isSelect: false,
  11587. chapInfo: [],
  11588. chapInfoList: [],
  11589. taskCount: 0,
  11590. imgList: [],
  11591. noImgList: [],
  11592. pzList: [],
  11593. timeWorkList: [],
  11594. PlTextList: [
  11595. "Excellent!",
  11596. "nice!",
  11597. "很有创意!",
  11598. "还不错哦~",
  11599. "继续努力哦~",
  11600. ],
  11601. isClickNav: "",
  11602. navId: "",
  11603. playerOptions: {
  11604. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11605. autoplay: false, //如果true,浏览器准备好时开始回放。
  11606. muted: false, // 默认情况下将会消除任何音频。
  11607. loop: false, // 导致视频一结束就重新开始。
  11608. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11609. language: "zh-CN",
  11610. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11611. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11612. sources: [
  11613. {
  11614. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11615. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11616. },
  11617. ],
  11618. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11619. // poster: dataRes.imgUrl, //你的封面地址
  11620. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11621. controlBar: {
  11622. timeDivider: true, //当前时间和持续时间的分隔符
  11623. durationDisplay: true, //显示持续时间
  11624. remainingTimeDisplay: false, //是否显示剩余时间功能
  11625. fullscreenToggle: true, //全屏按钮
  11626. },
  11627. },
  11628. playerOptions1: {
  11629. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11630. autoplay: false, //如果true,浏览器准备好时开始回放。
  11631. muted: false, // 默认情况下将会消除任何音频。
  11632. loop: false, // 导致视频一结束就重新开始。
  11633. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11634. language: "zh-CN",
  11635. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11636. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11637. sources: [
  11638. {
  11639. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11640. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11641. },
  11642. ],
  11643. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11644. // poster: dataRes.imgUrl, //你的封面地址
  11645. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11646. controlBar: {
  11647. timeDivider: true, //当前时间和持续时间的分隔符
  11648. durationDisplay: true, //显示持续时间
  11649. remainingTimeDisplay: false, //是否显示剩余时间功能
  11650. fullscreenToggle: true, //全屏按钮
  11651. },
  11652. },
  11653. playerO: {},
  11654. noneBtnImg: false,
  11655. proVisible: false,
  11656. proVisible2: false,
  11657. progress: 0,
  11658. isFinishSize: 0,
  11659. isAllSize: 0,
  11660. questionAnswer: "",
  11661. answerQ: "", //问答标题
  11662. rateJson: [],
  11663. wbCount: 0,
  11664. wordCount: 0,
  11665. mindCount: 0,
  11666. askCount: 0,
  11667. noteCount: 0,
  11668. mindNetWorkCount: 0,
  11669. libraryCount: 0,
  11670. workCount: 0,
  11671. timeCount: 0,
  11672. answerCount: 0,
  11673. trainCount: 0,
  11674. evalCount: 0,
  11675. dialogImageUrl: "",
  11676. pictureDialog: false,
  11677. toolTypeList: [],
  11678. dialogVisible1: false,
  11679. dialogVisible2: false,
  11680. dialogVisible3: false,
  11681. dialogVisible6: false,
  11682. dialogVisible4: false,
  11683. isNoHomeWork: false,
  11684. dialogVisible5: false,
  11685. dialogVisible5Teacher: false,
  11686. dialogVisibleChoice: false,
  11687. dialogVisibleChoiceTeacher: false,
  11688. answerDialogVisible: false,
  11689. answerDialogVisibleTeacher: false,
  11690. juriVisible: false,
  11691. timeDialogVisible: false,
  11692. replyDialogVisible: false,
  11693. toolDialogVisible: false,
  11694. engDialogVisible: false,
  11695. engUpdateDialogVisible:false,
  11696. engEvaDialogVisible: false,
  11697. evaEngJson: {
  11698. username: "",
  11699. teacherJson: {},
  11700. studentJson: {},
  11701. },
  11702. isNoUserid:false,
  11703. engListLength:0,
  11704. engWid:"",
  11705. newEnglishList:{
  11706. engTitle:"",
  11707. engText:"",
  11708. },
  11709. newEnglishList1:[],
  11710. oldEnglishJson:{},
  11711. oldEnglishJson1:{},
  11712. englishList1:{},
  11713. englishList:{},
  11714. myAnswerList1:{},
  11715. topHeight:0,
  11716. newEngIndex:-1,
  11717. englishToolIndex:0,
  11718. userMes:{},
  11719. englishToolIndex:0,
  11720. replyIndex: 0,
  11721. replyPid: "",
  11722. radio: [],
  11723. isAsk: false,
  11724. askJson: {
  11725. askCount: 1,
  11726. askTitle: "",
  11727. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11728. },
  11729. testJson: {},
  11730. englishList: {},
  11731. topHeight:0,
  11732. checkJson: [],
  11733. askList: [],
  11734. answerList: [],
  11735. navList: [],
  11736. addPzDialog: false,
  11737. pzConText: "",
  11738. worksStudent: [],
  11739. isCloseList: [],
  11740. workStudent: [],
  11741. groupStudent: [],
  11742. groupStudentUid: [],
  11743. noWorksS: [],
  11744. isWorksS: [],
  11745. noWorksStudent: [],
  11746. toolindex: 0,
  11747. toolDetailIndex: null,
  11748. groupIndex: 0,
  11749. workTypeB: false,
  11750. workTypeC: false,
  11751. isAnswer: false,
  11752. isHovered: false,
  11753. isHovered1: false,
  11754. isHovered2: false,
  11755. timer: null,
  11756. opertimer: null,
  11757. showType: 0,
  11758. fileType: 0,
  11759. showPDF: false,
  11760. noteName: "",
  11761. evaJuri: [],
  11762. evalua: "",
  11763. eTitle: "",
  11764. eName: "",
  11765. eJson: {},
  11766. fid: "", //一级
  11767. sid: "", //二级
  11768. tid: "", //二级
  11769. typeMode: 1,
  11770. eJSONNum: 0,
  11771. Etype: 1,
  11772. data: {
  11773. meta: {
  11774. name: "example",
  11775. author: "dd@163.com",
  11776. version: "0.2",
  11777. },
  11778. format: "node_array",
  11779. data: [{ id: "root", isroot: true, topic: "" }],
  11780. },
  11781. fullDialogVisible: false,
  11782. fulltype: "",
  11783. fullUrl: "",
  11784. commentIndexJson: {},
  11785. Stbodywidth: 0,
  11786. ispzType: 0,
  11787. pzType: 1,
  11788. wScore: 0,
  11789. scoreDetail: "",
  11790. videoStart: false,
  11791. recorder: null,
  11792. groupJson: {},
  11793. islock: false,
  11794. groupJson2: {},
  11795. dialogVisibleGroup: false,
  11796. dialogVisibleGroup2: false,
  11797. updateGroupArray: [],
  11798. updateGroupUser: {},
  11799. deleteGroupUser: [],
  11800. deleteGroupArray: {},
  11801. checkChair: "",
  11802. checkDeleteGroup: [],
  11803. inviteCode: "",
  11804. courseGroupStudent: [],
  11805. courseGroupStudentUid: [],
  11806. courseGroup: {},
  11807. isGroup: false,
  11808. toolIndex: null,
  11809. tool: {},
  11810. isWorkTool: [
  11811. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11812. ], //, 40
  11813. videoJson: {},
  11814. toolType: 0,
  11815. checktoolArray: [],
  11816. vChapterData: [],
  11817. isUpdateToolDetail: false,
  11818. isUpdateToolDetail1: false,
  11819. updateToolDetailInner: "",
  11820. checkboxList: [],
  11821. plIndex: "",
  11822. worksSName2: "",
  11823. worksSid: "",
  11824. wordCloudData: [],
  11825. isPickStudent: [],
  11826. pzStype: 1,
  11827. myAnList: {},
  11828. };
  11829. },
  11830. methods: {
  11831. setEnglishList(engList) {
  11832. this.myAnList = engList;
  11833. },
  11834. addToolChoose() {
  11835. if (!this.checktoolArray.length) {
  11836. this.$message.error("请选择要添加的任务");
  11837. return;
  11838. }
  11839. if (
  11840. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11841. this.taskCount
  11842. ].toolChoose[0].tool.length
  11843. ) {
  11844. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11845. this.taskCount
  11846. ].toolChoose[0].tool = this.checktoolArray;
  11847. } else {
  11848. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11849. this.taskCount
  11850. ].toolChoose.push({
  11851. tool: this.checktoolArray,
  11852. toolDetail: "",
  11853. toolType: 0,
  11854. askCount: 1,
  11855. askTitle: "",
  11856. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11857. });
  11858. }
  11859. let params = [
  11860. {
  11861. cid: this.id,
  11862. chapters: JSON.stringify(this.chapInfoList),
  11863. uid: this.userid,
  11864. unitIndex: this.courseType,
  11865. },
  11866. ];
  11867. this.ajax
  11868. .post(this.$store.state.api + "updateWorkNew4", params)
  11869. .then((res) => {
  11870. this.$message({
  11871. message: "添加成功",
  11872. type: "success",
  11873. });
  11874. this.checktoolArray = [];
  11875. this.getCourseDetail(2);
  11876. this.checkBz(
  11877. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11878. this.taskCount
  11879. ].toolChoose.length - 1
  11880. );
  11881. this.toolDialogVisible = false;
  11882. this.refreshCourse();
  11883. this.$forceUpdate();
  11884. })
  11885. .catch((err) => {
  11886. console.error(err);
  11887. });
  11888. },
  11889. checkBz(index) {
  11890. this.isUpdateToolDetail = false;
  11891. this.$forceUpdate();
  11892. setTimeout(() => {
  11893. document.scrollingElement.scrollTop =
  11894. document.querySelectorAll(".filebox")[index].offsetTop +
  11895. document.querySelector(".student_body").offsetTop;
  11896. }, 500);
  11897. },
  11898. updateToolDetail(i) {
  11899. this.toolDetailIndex = i;
  11900. if (!this.isUpdateToolDetail1) {
  11901. this.isUpdateToolDetail1 = true;
  11902. this.updateToolDetailInner = JSON.parse(
  11903. JSON.stringify(
  11904. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11905. this.taskCount
  11906. ].toolChoose[i].toolDetail
  11907. )
  11908. );
  11909. } else {
  11910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11911. this.taskCount
  11912. ].toolChoose[i].toolDetail = JSON.parse(
  11913. JSON.stringify(this.updateToolDetailInner)
  11914. );
  11915. let params = [
  11916. {
  11917. cid: this.id,
  11918. chapters: JSON.stringify(this.chapInfoList),
  11919. uid: this.userid,
  11920. unitIndex: this.courseType,
  11921. },
  11922. ];
  11923. this.ajax
  11924. .post(this.$store.state.api + "updateWorkNew4", params)
  11925. .then((res) => {
  11926. this.isUpdateToolDetail1 = false;
  11927. this.$message({
  11928. message: "修改成功",
  11929. type: "success",
  11930. });
  11931. this.toolDetailIndex = null;
  11932. this.updateToolDetailInner = "";
  11933. this.getCourseDetail(2);
  11934. this.$forceUpdate();
  11935. })
  11936. .catch((err) => {
  11937. console.error(err);
  11938. });
  11939. }
  11940. },
  11941. jumpGj(i, j, k, l) {
  11942. for (var z = 0; z < this.navList.length; z++) {
  11943. for (var q = 0; q < this.navList[z].task.length; q++) {
  11944. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11945. this.navList[z].task[q].tool[w].isTool = false;
  11946. }
  11947. }
  11948. }
  11949. console.log(this.navList);
  11950. this.navList[i].task[j].tool[k].isTool =
  11951. !this.navList[i].task[j].tool[k].isTool;
  11952. var a = document.scrollingElement;
  11953. let target = document.querySelector(`#gj${k}`);
  11954. if (target) {
  11955. target.scrollIntoView(true);
  11956. setTimeout(() => {
  11957. a.scrollTop = a.scrollTop - 150;
  11958. }, 0);
  11959. }
  11960. if (l) {
  11961. this.courseType = i;
  11962. this.navId = l;
  11963. this.taskCount = j;
  11964. this.selectPz();
  11965. this.getHomeWork();
  11966. this.getCourseDetail(2);
  11967. }
  11968. // var b = this.$refs["bz" + k][0];
  11969. // a.scrollTop = b.offsetTop;
  11970. },
  11971. addTools2(i) {
  11972. if (i == 4) {
  11973. // this.openTools2(4);
  11974. this.$message.error("暂未开放");
  11975. return;
  11976. }
  11977. if (i == 45) {
  11978. // this.openTools2(45);
  11979. this.$message.error("暂未开放");
  11980. return;
  11981. }
  11982. if (i == 47) {
  11983. // this.openTools2(47);
  11984. this.$message.error("暂未开放");
  11985. return;
  11986. }
  11987. if (i == 49) {
  11988. // this.openTools2(49);
  11989. this.$message.error("暂未开放");
  11990. return;
  11991. }
  11992. if (i == 62) {
  11993. // this.openTools(itemTaskIndex, 62, toolIndex);
  11994. this.$message.error("暂未开放");
  11995. return;
  11996. }
  11997. if (i == 15) {
  11998. // this.openTools(itemTaskIndex, 15, toolIndex);
  11999. this.$message.error("暂未开放");
  12000. return;
  12001. }
  12002. if (i == 40) {
  12003. // this.openTools(itemTaskIndex, 40, toolIndex);
  12004. this.$message.error("暂未开放");
  12005. return;
  12006. }
  12007. if (i == 41) {
  12008. // this.openTools(itemTaskIndex, 41, toolIndex);
  12009. this.$message.error("暂未开放");
  12010. return;
  12011. }
  12012. if (i == 42) {
  12013. // this.openTools(itemTaskIndex, 42, toolIndex);
  12014. this.$message.error("暂未开放");
  12015. return;
  12016. }
  12017. if (this.checktoolArray.length > 0) {
  12018. if (this.checktoolArray.indexOf(i) != -1) {
  12019. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12020. } else {
  12021. this.checktoolArray = [];
  12022. this.checktoolArray.push(i);
  12023. }
  12024. } else {
  12025. this.checktoolArray.push(i);
  12026. }
  12027. this.$forceUpdate();
  12028. },
  12029. jump() {
  12030. window.parent.postMessage({ tools: "43" }, "*");
  12031. },
  12032. getUpdateMore(f, checkboxList, searchTN, index) {
  12033. this.dialogVisibleMember = f;
  12034. this.checkboxList = checkboxList;
  12035. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12036. this.plIndex = index;
  12037. },
  12038. setPlname(a) {
  12039. if (this.plworkFile.length) {
  12040. this.plworkFile[this.plIndex].username = a;
  12041. } else {
  12042. this.worksSName = a;
  12043. }
  12044. this.dialogVisibleMember = false;
  12045. },
  12046. previewImg(url) {
  12047. this.$hevueImgPreview(url);
  12048. },
  12049. checkImg(list) {
  12050. if (!list.length) {
  12051. return;
  12052. }
  12053. this.$hevueImgPreview({
  12054. multiple: true, // 开启多图预览模式
  12055. imgList: list, // 需要预览的多图数组
  12056. });
  12057. },
  12058. change(val) {
  12059. console.log(val);
  12060. },
  12061. goTo(path) {
  12062. this.$router.push(path);
  12063. },
  12064. handlePictureCardPreview(url) {
  12065. this.dialogImageUrl = url;
  12066. this.pictureDialog = true;
  12067. },
  12068. clean(type) {
  12069. if (type == 1) {
  12070. this.studyJuri[0].cover.splice(0, 1);
  12071. } else if (type == 2) {
  12072. this.studyJuri[0].upVedio.splice(0, 1);
  12073. } else {
  12074. this.studyJuri[0].upFile.splice(0, 1);
  12075. }
  12076. },
  12077. clean2(index) {
  12078. this.plworkFile.splice(index, 1);
  12079. },
  12080. handleClose(done) {
  12081. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12082. this.videoDetail.sources[0].src = "";
  12083. }
  12084. this.commentIndexJson = {};
  12085. done();
  12086. },
  12087. fullTools() {
  12088. this.full = !this.full;
  12089. },
  12090. imgChange(file, fileList, type) {
  12091. if (type == 1) {
  12092. var _tmp = this.studyJuri[0].cover;
  12093. } else if (type == 2) {
  12094. var _tmp = this.studyJuri[0].upVedio;
  12095. } else {
  12096. var _tmp = this.studyJuri[0].upFile;
  12097. }
  12098. this.noneBtnImg = _tmp.length >= 1;
  12099. },
  12100. setContent(bool) {
  12101. this.contentDialog = bool;
  12102. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12103. document.querySelector(".workd_media").style.height = "650px";
  12104. } else if (document.querySelector(".workd_media")) {
  12105. document.querySelector(".workd_media").style.height = "auto";
  12106. }
  12107. },
  12108. setContent2(bool) {
  12109. this.mlDialog = bool;
  12110. if (
  12111. bool &&
  12112. this.contentDialog &&
  12113. document.querySelector(".workd_media")
  12114. ) {
  12115. document.querySelector(".workd_media").style.height = "650px";
  12116. } else if (document.querySelector(".workd_media")) {
  12117. document.querySelector(".workd_media").style.height = "auto";
  12118. }
  12119. },
  12120. openToolAll() {
  12121. this.toolDialogVisible = true;
  12122. },
  12123. addImg(e) {
  12124. var el = e.currentTarget;
  12125. // this.$message.success('触发上传')
  12126. el.getElementsByTagName("input")[0].click();
  12127. e.target.value = "";
  12128. },
  12129. addSelectAnswer() {
  12130. let params = [
  12131. {
  12132. uid: this.userid,
  12133. cid: this.id,
  12134. stage: this.courseType,
  12135. task: this.taskCount,
  12136. tool: this.toolindex,
  12137. content: this.selectAnswer.answer,
  12138. type: 7,
  12139. },
  12140. ];
  12141. this.ajax
  12142. .post(this.$store.state.api + "addCourseWorks", params)
  12143. .then((res) => {
  12144. this.$message({
  12145. message: "提交成功",
  12146. type: "success",
  12147. });
  12148. this.dialogVisibleSelect = false;
  12149. // this.selectAnswer = {};
  12150. this.selectSWorks();
  12151. this.selectStudent();
  12152. })
  12153. .catch((err) => {
  12154. this.$message.error("提交失败");
  12155. console.error(err);
  12156. });
  12157. },
  12158. addSelectAnswerTeacher() {
  12159. let params = [
  12160. {
  12161. uid: this.sStudent.userid,
  12162. cid: this.id,
  12163. stage: this.courseType,
  12164. task: this.taskCount,
  12165. tool: this.toolindex,
  12166. content: this.selectAnswer.answer,
  12167. type: 7,
  12168. },
  12169. ];
  12170. this.ajax
  12171. .post(this.$store.state.api + "addCourseWorks", params)
  12172. .then((res) => {
  12173. this.$message({
  12174. message: "提交成功",
  12175. type: "success",
  12176. });
  12177. this.dialogVisibleSelectTeacher = false;
  12178. // this.selectAnswer = {};
  12179. this.selectSWorks();
  12180. this.selectStudent();
  12181. })
  12182. .catch((err) => {
  12183. this.$message.error("提交失败");
  12184. console.error(err);
  12185. });
  12186. },
  12187. addSenWorks() {
  12188. for (var i = 0; i < this.sentenceList.length; i++) {
  12189. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12190. if (
  12191. this.sentenceList[i].chooseSenList[j] == undefined ||
  12192. this.sentenceList[i].chooseSenList[j] == ""
  12193. ) {
  12194. this.$message.error("请将答案填写完整!");
  12195. return;
  12196. }
  12197. }
  12198. }
  12199. let params = [
  12200. {
  12201. uid: this.userid,
  12202. cid: this.id,
  12203. stage: this.courseType,
  12204. task: this.taskCount,
  12205. tool: this.toolindex,
  12206. content: JSON.stringify(this.sentenceList),
  12207. type: 9,
  12208. },
  12209. ];
  12210. this.ajax
  12211. .post(this.$store.state.api + "addCourseWorks", params)
  12212. .then((res) => {
  12213. this.$message({
  12214. message: "提交成功",
  12215. type: "success",
  12216. });
  12217. this.dialogVisibleSentence = false;
  12218. // this.selectAnswer = {};
  12219. this.selectSWorks();
  12220. this.selectStudent();
  12221. })
  12222. .catch((err) => {
  12223. this.$message.error("提交失败");
  12224. console.error(err);
  12225. });
  12226. },
  12227. addSenWorksTeacher() {
  12228. for (var i = 0; i < this.sentenceList.length; i++) {
  12229. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12230. if (
  12231. this.sentenceList[i].chooseSenList[j] == undefined ||
  12232. this.sentenceList[i].chooseSenList[j] == ""
  12233. ) {
  12234. this.$message.error("请将答案填写完整!");
  12235. return;
  12236. }
  12237. }
  12238. }
  12239. let params = [
  12240. {
  12241. uid: this.sStudent.userid,
  12242. cid: this.id,
  12243. stage: this.courseType,
  12244. task: this.taskCount,
  12245. tool: this.toolindex,
  12246. content: JSON.stringify(this.sentenceList),
  12247. type: 9,
  12248. },
  12249. ];
  12250. this.ajax
  12251. .post(this.$store.state.api + "addCourseWorks", params)
  12252. .then((res) => {
  12253. this.$message({
  12254. message: "提交成功",
  12255. type: "success",
  12256. });
  12257. this.dialogVisibleSentenceTeacher = false;
  12258. // this.selectAnswer = {};
  12259. this.selectSWorks();
  12260. this.selectStudent();
  12261. })
  12262. .catch((err) => {
  12263. this.$message.error("提交失败");
  12264. console.error(err);
  12265. });
  12266. },
  12267. returnTableText() {
  12268. this.$confirm("确定还原此模板吗?", "提示", {
  12269. confirmButtonText: "确定",
  12270. cancelButtonText: "取消",
  12271. type: "warning",
  12272. })
  12273. .then(() => {
  12274. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12275. })
  12276. .catch(() => {});
  12277. },
  12278. addTableWorks() {
  12279. let params = [
  12280. {
  12281. uid: this.userid,
  12282. cid: this.id,
  12283. stage: this.courseType,
  12284. task: this.taskCount,
  12285. tool: this.toolindex,
  12286. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12287. type: 10,
  12288. },
  12289. ];
  12290. this.ajax
  12291. .post(this.$store.state.api + "addCourseWorks", params)
  12292. .then((res) => {
  12293. this.$message({
  12294. message: "提交成功",
  12295. type: "success",
  12296. });
  12297. this.dialogVisibleTable = false;
  12298. // this.selectAnswer = {};
  12299. this.selectSWorks();
  12300. this.selectStudent();
  12301. })
  12302. .catch((err) => {
  12303. this.$message.error("提交失败");
  12304. console.error(err);
  12305. });
  12306. },
  12307. tableRowClassName({ row, rowIndex }) {
  12308. if ((rowIndex + 1) % 2 === 0) {
  12309. return "even_row";
  12310. } else {
  12311. return "";
  12312. }
  12313. },
  12314. addTableWorksTeacher() {
  12315. let params = [
  12316. {
  12317. uid: this.sStudent.userid,
  12318. cid: this.id,
  12319. stage: this.courseType,
  12320. task: this.taskCount,
  12321. tool: this.toolindex,
  12322. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12323. type: 10,
  12324. },
  12325. ];
  12326. this.ajax
  12327. .post(this.$store.state.api + "addCourseWorks", params)
  12328. .then((res) => {
  12329. this.$message({
  12330. message: "提交成功",
  12331. type: "success",
  12332. });
  12333. this.dialogVisibleTableTeacher = false;
  12334. // this.selectAnswer = {};
  12335. this.selectSWorks();
  12336. this.selectStudent();
  12337. })
  12338. .catch((err) => {
  12339. this.$message.error("提交失败");
  12340. console.error(err);
  12341. });
  12342. },
  12343. returnWordText() {
  12344. this.$confirm("确定还原此模板吗?", "提示", {
  12345. confirmButtonText: "确定",
  12346. cancelButtonText: "取消",
  12347. type: "warning",
  12348. })
  12349. .then(() => {
  12350. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12351. })
  12352. .catch(() => {});
  12353. },
  12354. addWordWorks() {
  12355. let params = [
  12356. {
  12357. uid: this.userid,
  12358. cid: this.id,
  12359. stage: this.courseType,
  12360. task: this.taskCount,
  12361. tool: this.toolindex,
  12362. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12363. type: 13,
  12364. atool: 52,
  12365. },
  12366. ];
  12367. this.ajax
  12368. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12369. .then((res) => {
  12370. this.$message({
  12371. message: "提交成功",
  12372. type: "success",
  12373. });
  12374. this.dialogVisibleWord = false;
  12375. // this.selectAnswer = {};
  12376. this.selectSWorks();
  12377. this.selectStudent();
  12378. })
  12379. .catch((err) => {
  12380. this.$message.error("提交失败");
  12381. console.error(err);
  12382. });
  12383. },
  12384. addWordWorksTeacher() {
  12385. let params = [
  12386. {
  12387. uid: this.sStudent.userid,
  12388. cid: this.id,
  12389. stage: this.courseType,
  12390. task: this.taskCount,
  12391. tool: this.toolindex,
  12392. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12393. type: 13,
  12394. atool: 52,
  12395. },
  12396. ];
  12397. this.ajax
  12398. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12399. .then((res) => {
  12400. this.$message({
  12401. message: "提交成功",
  12402. type: "success",
  12403. });
  12404. this.dialogVisibleWordTeacher = false;
  12405. // this.selectAnswer = {};
  12406. this.selectSWorks();
  12407. this.selectStudent();
  12408. })
  12409. .catch((err) => {
  12410. this.$message.error("提交失败");
  12411. console.error(err);
  12412. });
  12413. },
  12414. addCourseWorks(i) {
  12415. var typesql;
  12416. if (this.fileType === 0) {
  12417. typesql = 1;
  12418. } else if (this.fileType === 1) {
  12419. typesql = 4;
  12420. } else if (this.fileType === 2) {
  12421. typesql = 5;
  12422. } else if (this.fileType === 3) {
  12423. typesql = 12;
  12424. }
  12425. if (!this.studyJuri[0].cover[0].url) {
  12426. this.$message.error("请上传文件");
  12427. return;
  12428. }
  12429. let params = [
  12430. {
  12431. uid: this.userid,
  12432. cid: this.id,
  12433. stage: this.courseType,
  12434. task: i,
  12435. tool: this.toolindex,
  12436. content: this.studyJuri[0].cover[0].url,
  12437. type: typesql,
  12438. },
  12439. ];
  12440. this.ajax
  12441. .post(this.$store.state.api + "addCourseWorksR", params)
  12442. .then((res) => {
  12443. this.$message({
  12444. message: "提交成功",
  12445. type: "success",
  12446. });
  12447. this.studyJuri[0].cover = [];
  12448. this.dialogVisible = false;
  12449. this.getCourseDetail(2);
  12450. })
  12451. .catch((err) => {
  12452. this.$message.error("提交失败");
  12453. console.error(err);
  12454. });
  12455. },
  12456. addCourseWorksPl(i) {
  12457. let _files = this.plworkFile;
  12458. var c = 1;
  12459. for (var k = 0; k < _files.length; k++) {
  12460. if (!_files[k].username) {
  12461. c = 2;
  12462. }
  12463. }
  12464. if (c == 2) {
  12465. this.$message.error("请填写学生姓名");
  12466. return;
  12467. }
  12468. let params = [
  12469. {
  12470. ateacher: this.userid,
  12471. cid: this.id,
  12472. stage: this.courseType,
  12473. task: i,
  12474. tool: this.toolindex,
  12475. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12476. },
  12477. ];
  12478. this.ajax
  12479. .post(this.$store.state.api + "addCourseWorksPl", params)
  12480. .then((res) => {
  12481. this.$message({
  12482. message: "提交成功",
  12483. type: "success",
  12484. });
  12485. this.plworkFile = [];
  12486. this.dialogVisiblePl = false;
  12487. this.getCourseDetail(2);
  12488. })
  12489. .catch((err) => {
  12490. this.$message.error("提交失败");
  12491. console.error(err);
  12492. });
  12493. },
  12494. addCourseWorks2(i) {
  12495. var typesql;
  12496. if (this.fileType === 0) {
  12497. typesql = 0;
  12498. } else if (this.fileType === 1) {
  12499. typesql = 1;
  12500. } else if (this.fileType === 2) {
  12501. typesql = 3;
  12502. } else if (this.fileType === 3) {
  12503. typesql = 12;
  12504. }
  12505. if (!this.studyJuri[0].cover[0].url) {
  12506. this.$message.error("请上传文件");
  12507. return;
  12508. }
  12509. let params = [
  12510. {
  12511. uid: this.userid,
  12512. cid: this.id,
  12513. stage: this.courseType,
  12514. task: i,
  12515. tool: this.toolindex,
  12516. content: JSON.stringify({
  12517. type: typesql,
  12518. groupIndex: this.groupIndex,
  12519. url: this.studyJuri[0].cover[0].url,
  12520. }).replaceAll(/%/g, "%25"),
  12521. type: 11,
  12522. atool: 49,
  12523. text: "",
  12524. },
  12525. ];
  12526. this.ajax
  12527. .post(this.$store.state.api + "addCourseWorks5", params)
  12528. .then((res) => {
  12529. this.$message({
  12530. message: "提交成功",
  12531. type: "success",
  12532. });
  12533. this.studyJuri[0].cover = [];
  12534. this.dialogVisibleGroupWork = false;
  12535. this.getCourseDetail(2);
  12536. })
  12537. .catch((err) => {
  12538. this.$message.error("提交失败");
  12539. console.error(err);
  12540. });
  12541. },
  12542. addEnglishWork() {
  12543. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12544. this.$message.error("请输入作文标题和正文!");
  12545. return;
  12546. }
  12547. let params = [
  12548. {
  12549. uid: this.userid,
  12550. cid: this.id,
  12551. stage: this.courseType,
  12552. task: this.taskCount,
  12553. tool: this.englishToolIndex,
  12554. content: JSON.stringify(this.myAnList),
  12555. type: 16,
  12556. atool: 69,
  12557. text: "",
  12558. },
  12559. ];
  12560. this.ajax
  12561. .post(this.$store.state.api + "addCourseWorks5", params)
  12562. .then((res) => {
  12563. this.$message({
  12564. message: "提交成功",
  12565. type: "success",
  12566. });
  12567. this.myAnList = {};
  12568. this.englishList = {};
  12569. this.englishToolIndex = 0;
  12570. this.engDialogVisible = false;
  12571. this.selectSWorks();
  12572. this.selectStudent();
  12573. })
  12574. .catch((err) => {
  12575. this.$message.error("提交失败");
  12576. console.error(err);
  12577. });
  12578. },
  12579. addCourseWorksGong(i, data, tool) {
  12580. let params = [
  12581. {
  12582. uid: this.userid,
  12583. cid: this.id,
  12584. stage: this.courseType,
  12585. task: this.taskCount,
  12586. tool: i,
  12587. content: data,
  12588. type: 12,
  12589. atool: tool,
  12590. text: "",
  12591. },
  12592. ];
  12593. this.ajax
  12594. .post(this.$store.state.api + "addCourseWorks5", params)
  12595. .then((res) => {
  12596. this.$message({
  12597. message: "提交成功",
  12598. type: "success",
  12599. });
  12600. this.studyJuri[0].cover = [];
  12601. this.selectSWorks();
  12602. this.selectStudent();
  12603. })
  12604. .catch((err) => {
  12605. this.$message.error("提交失败");
  12606. console.error(err);
  12607. });
  12608. },
  12609. addCourseWorksGongTeacher(i, data, tool) {
  12610. let params = [
  12611. {
  12612. uid: this.sStudent.userid,
  12613. cid: this.id,
  12614. stage: this.courseType,
  12615. task: this.taskCount,
  12616. tool: i,
  12617. content: data,
  12618. type: 12,
  12619. atool: tool,
  12620. text: "",
  12621. },
  12622. ];
  12623. this.ajax
  12624. .post(this.$store.state.api + "addCourseWorks5", params)
  12625. .then((res) => {
  12626. this.$message({
  12627. message: "提交成功",
  12628. type: "success",
  12629. });
  12630. this.studyJuri[0].cover = [];
  12631. this.dialogVisibleWorks = false;
  12632. this.selectSWorks();
  12633. this.selectStudent();
  12634. })
  12635. .catch((err) => {
  12636. this.$message.error("提交失败");
  12637. console.error(err);
  12638. });
  12639. },
  12640. addCourseWorksGongPl(i, data, tool, type) {
  12641. let params = [
  12642. {
  12643. uid: this.sStudent.userid,
  12644. cid: this.id,
  12645. stage: this.courseType,
  12646. task: this.taskCount,
  12647. tool: i,
  12648. content: data,
  12649. type: type,
  12650. atool: tool,
  12651. text: "",
  12652. },
  12653. ];
  12654. this.ajax
  12655. .post(this.$store.state.api + "addCourseWorks5", params)
  12656. .then((res) => {
  12657. this.$message({
  12658. message: "提交成功",
  12659. type: "success",
  12660. });
  12661. this.studyJuri[0].cover = [];
  12662. this.dialogVisibleWorks = false;
  12663. this.selectSWorks();
  12664. this.selectStudent();
  12665. })
  12666. .catch((err) => {
  12667. this.$message.error("提交失败");
  12668. console.error(err);
  12669. });
  12670. },
  12671. addCourseWorksTeacher(i) {
  12672. var typesql;
  12673. if (this.sTool == 32) {
  12674. this.addCourseWorksGongTeacher(
  12675. this.toolindex,
  12676. this.studyJuri[0].cover[0].url,
  12677. this.sTool
  12678. );
  12679. return;
  12680. }
  12681. if (this.fileType === 0) {
  12682. typesql = 1;
  12683. } else if (this.fileType === 1) {
  12684. typesql = 4;
  12685. } else if (this.fileType === 2) {
  12686. typesql = 5;
  12687. } else if (this.fileType === 3) {
  12688. typesql = 12;
  12689. }
  12690. if (this.sTool == 50) {
  12691. this.addCourseWorksGongPl(
  12692. this.toolindex,
  12693. this.studyJuri[0].cover[0].url,
  12694. this.sTool,
  12695. typesql
  12696. );
  12697. return;
  12698. }
  12699. if (!this.studyJuri[0].cover[0].url) {
  12700. this.$message.error("请上传文件");
  12701. return;
  12702. }
  12703. let params = [
  12704. {
  12705. uid: this.sStudent.userid,
  12706. cid: this.id,
  12707. stage: this.courseType,
  12708. task: i,
  12709. tool: this.toolindex,
  12710. content: this.studyJuri[0].cover[0].url,
  12711. type: typesql,
  12712. ateacher: this.userid,
  12713. },
  12714. ];
  12715. this.ajax
  12716. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12717. .then((res) => {
  12718. this.$message({
  12719. message: "提交成功",
  12720. type: "success",
  12721. });
  12722. this.studyJuri[0].cover = [];
  12723. this.dialogVisibleWorks = false;
  12724. this.getCourseDetail(2);
  12725. })
  12726. .catch((err) => {
  12727. this.$message.error("提交失败");
  12728. console.error(err);
  12729. });
  12730. },
  12731. selectUploadStudent(type) {
  12732. const loading = this.$loading.service({
  12733. background: "rgba(255, 255, 255, 0.7)",
  12734. target: document.body,
  12735. });
  12736. let params = {
  12737. cid: this.uploadCid,
  12738. oid: this.oid,
  12739. cn: "",
  12740. };
  12741. this.ajax
  12742. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12743. .then((res) => {
  12744. loading.close();
  12745. var studentK = [];
  12746. if (this.isWorksS[this.toolindex].length > 0) {
  12747. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12748. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12749. }
  12750. studentK = studentK.join(",");
  12751. }
  12752. this.uploadStudentJuri = res.data[0].filter((el) => {
  12753. return studentK.indexOf(el.userid) == -1;
  12754. });
  12755. if (this.worksSName && this.worksSid) {
  12756. this.uploadStudentJuri.push({
  12757. userid: this.worksSid,
  12758. name: this.worksSName,
  12759. });
  12760. }
  12761. if (type == 1) {
  12762. this.plworkFile = [];
  12763. this.dialogVisibleSname = true;
  12764. } else if (type == 2) {
  12765. this.dialogVisiblePl = true;
  12766. }
  12767. })
  12768. .catch((err) => {
  12769. loading.close();
  12770. console.error(err);
  12771. });
  12772. },
  12773. selectPickStudent() {
  12774. const loading = this.$loading.service({
  12775. background: "rgba(255, 255, 255, 0.7)",
  12776. target: document.body,
  12777. });
  12778. let params = {
  12779. cid: this.uploadCid,
  12780. oid: this.oid,
  12781. cn: "",
  12782. };
  12783. this.ajax
  12784. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12785. .then((res) => {
  12786. loading.close();
  12787. this.uploadStudentJuri = res.data[0];
  12788. this.dialogVisiblePickPeople = true;
  12789. })
  12790. .catch((err) => {
  12791. loading.close();
  12792. console.error(err);
  12793. });
  12794. },
  12795. arrayToArray(arrayo, arrayt) {
  12796. let array1 = arrayo;
  12797. let array2 = arrayt;
  12798. let commonElements = [];
  12799. for (let i = 0; i < array1.length; i++) {
  12800. for (let j = 0; j < array2.length; j++) {
  12801. if (array1[i] === array2[j]) {
  12802. commonElements.push(array1[i]);
  12803. }
  12804. }
  12805. }
  12806. return commonElements;
  12807. },
  12808. selectWorksStudent() {
  12809. let params = {
  12810. oid: this.oid,
  12811. cid: this.courseDetail.juri,
  12812. };
  12813. this.ajax
  12814. .get(this.$store.state.api + "selectWorksStudent", params)
  12815. .then((res) => {
  12816. var a = res.data[0];
  12817. for (var i = 0; i < this.isWorksS.length; i++) {
  12818. this.noWorksS[i] = [];
  12819. var studentK = [];
  12820. if (this.isWorksS[i].length > 0) {
  12821. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12822. studentK.push(this.isWorksS[i][z].uid);
  12823. }
  12824. studentK = studentK.join(",");
  12825. for (var j = 0; j < a.length; j++) {
  12826. if (studentK.indexOf(a[j].userid) == -1) {
  12827. if (this.tcid) {
  12828. // a[j].classid.indexOf(this.tcid) != -1
  12829. if (
  12830. this.arrayToArray(
  12831. a[j].classid.split(","),
  12832. this.tcid.split(",")
  12833. ).length
  12834. ) {
  12835. this.noWorksS[i].push({
  12836. student: a[j].name,
  12837. userid: a[j].userid,
  12838. });
  12839. }
  12840. } else {
  12841. this.noWorksS[i].push({
  12842. student: a[j].name,
  12843. userid: a[j].userid,
  12844. });
  12845. }
  12846. }
  12847. }
  12848. } else {
  12849. for (var k = 0; k < a.length; k++) {
  12850. if (this.tcid) {
  12851. if (
  12852. this.arrayToArray(
  12853. a[k].classid.split(","),
  12854. this.tcid.split(",")
  12855. ).length
  12856. ) {
  12857. this.noWorksS[i].push({
  12858. student: a[k].name,
  12859. userid: a[k].userid,
  12860. });
  12861. }
  12862. } else {
  12863. this.noWorksS[i].push({
  12864. student: a[k].name,
  12865. userid: a[k].userid,
  12866. });
  12867. }
  12868. }
  12869. }
  12870. }
  12871. this.$forceUpdate();
  12872. if (
  12873. Object.keys(this.commentDetail).length &&
  12874. Object.keys(this.commentIndexJson).length &&
  12875. !this.dialogVisibleScore
  12876. ) {
  12877. let a = 1;
  12878. let c = this.commentIndexJson;
  12879. if (
  12880. this.commentIndexJson.gindex ||
  12881. this.commentIndexJson.gindex === 0
  12882. ) {
  12883. for (
  12884. var i = 0;
  12885. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12886. i++
  12887. ) {
  12888. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12889. groupA: for (var k = 0; k < _el.length; k++) {
  12890. let el = _el[k];
  12891. if (el.wid == this.commentDetail.wid) {
  12892. a = 2;
  12893. this.commentOther(
  12894. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12895. this.commentIndexJson.toolIndex,
  12896. k,
  12897. this.commentIndexJson.gindex
  12898. );
  12899. break groupA;
  12900. }
  12901. }
  12902. }
  12903. if (a === 1) {
  12904. this.commentDetail = [];
  12905. this.commentIndexJson = {};
  12906. this.commentDialogVisible = false;
  12907. this.$message("此作业已被删除");
  12908. }
  12909. } else {
  12910. if (this.isGroup && this.commentIndexJson.gid) {
  12911. groupA: for (
  12912. var i = 0;
  12913. i < this.courseGroup.group.length;
  12914. i++
  12915. ) {
  12916. let _group = this.courseGroup.group[i];
  12917. if (_group.id == this.commentIndexJson.gid) {
  12918. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12919. for (var k = 0; k < _el2.length; k++) {
  12920. let el2 = _el2[k];
  12921. if (el2.wid == this.commentDetail.wid) {
  12922. a = 2;
  12923. this.commentOther(
  12924. _el2[k],
  12925. this.commentIndexJson.toolIndex,
  12926. k,
  12927. null,
  12928. this.commentIndexJson.gid
  12929. );
  12930. break groupA;
  12931. }
  12932. }
  12933. }
  12934. }
  12935. }
  12936. if (a == 1) {
  12937. for (
  12938. var i = 0;
  12939. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12940. i++
  12941. ) {
  12942. let el =
  12943. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12944. if (el.wid == this.commentDetail.wid) {
  12945. a = 2;
  12946. this.commentOther(
  12947. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12948. this.commentIndexJson.toolIndex,
  12949. i
  12950. );
  12951. break;
  12952. }
  12953. }
  12954. }
  12955. if (a === 1) {
  12956. this.commentDetail = [];
  12957. this.commentIndexJson = {};
  12958. this.commentDialogVisible = false;
  12959. this.$message("此作业已被删除");
  12960. }
  12961. }
  12962. }
  12963. })
  12964. .catch((err) => {
  12965. console.error(err);
  12966. });
  12967. },
  12968. selectStudent() {
  12969. //学生查看自己作业
  12970. let params = {
  12971. uid: this.userid,
  12972. cid: this.id,
  12973. s: this.courseType,
  12974. t: this.taskCount,
  12975. };
  12976. this.ajax
  12977. .get(this.$store.state.api + "selectStudentWorks", params)
  12978. .then((res) => {
  12979. var a =
  12980. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12981. this.taskCount
  12982. ].toolChoose;
  12983. var b = res.data[0];
  12984. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12985. var y = [
  12986. "AVI",
  12987. "NAVI",
  12988. "MPEG",
  12989. "ASF",
  12990. "MOV",
  12991. "WMV",
  12992. "3GP",
  12993. "RM",
  12994. "RMVB",
  12995. "FLV",
  12996. "F4V",
  12997. "H.264",
  12998. "H.265",
  12999. "REAL VIDEO",
  13000. "MKV",
  13001. "WebM",
  13002. "HDDVD",
  13003. "MP4",
  13004. "MPG",
  13005. "M4V",
  13006. "MGV",
  13007. "OGV",
  13008. "QTM",
  13009. "STR",
  13010. "AMC",
  13011. "DVX",
  13012. "EVO",
  13013. "DAT",
  13014. "OGG",
  13015. "OGM",
  13016. ];
  13017. for (var i = 0; i < a.length; i++) {
  13018. this.workStudent[i] = [];
  13019. for (var j = 0; j < b.length; j++) {
  13020. if (i == b[j].tool) {
  13021. if (
  13022. (b[j].type == 1 ||
  13023. b[j].type == 4 ||
  13024. b[j].type == 5 ||
  13025. b[j].type == 6 ||
  13026. b[j].type == 12 ||
  13027. b[j].type == 7) &&
  13028. a[i].tool[0] != 15 &&
  13029. a[i].tool[0] != 4 &&
  13030. a[i].tool[0] != 45 &&
  13031. a[i].tool[0] != 50 &&
  13032. a[i].tool[0] != 32 &&
  13033. a[i].tool[0] != 57 &&
  13034. a[i].tool[0] != 52 &&
  13035. a[i].tool[0] != 69
  13036. ) {
  13037. if (
  13038. c.indexOf(
  13039. b[j].content
  13040. .split(".")
  13041. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13042. ) != -1 &&
  13043. a[i].tool[0] == 16 &&
  13044. b[j].atool != 50
  13045. ) {
  13046. this.workStudent[i].push({
  13047. works: b[j].content,
  13048. sName: b[j].name,
  13049. score: b[j].score,
  13050. img: b[j].img,
  13051. type: 1,
  13052. time: b[j].time,
  13053. userid: b[j].userid,
  13054. wid: b[j].id,
  13055. });
  13056. } else if (
  13057. y.indexOf(
  13058. b[j].content
  13059. .split(".")
  13060. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13061. ) != -1 &&
  13062. a[i].tool[0] == 16 &&
  13063. b[j].atool != 50
  13064. ) {
  13065. this.workStudent[i].push({
  13066. userid: b[j].userid,
  13067. wid: b[j].id,
  13068. works: b[j].content,
  13069. sName: b[j].name,
  13070. score: b[j].score,
  13071. img: b[j].img,
  13072. type: 3,
  13073. time: b[j].time,
  13074. });
  13075. } else if (b[j].type == 6 && b[j].atool != 50) {
  13076. this.workStudent[i].push({
  13077. userid: b[j].userid,
  13078. wid: b[j].id,
  13079. works: b[j].content,
  13080. sName: b[j].name,
  13081. score: b[j].score,
  13082. img: b[j].img,
  13083. type: 4,
  13084. time: b[j].time,
  13085. });
  13086. } else if (b[j].type == 7 && b[j].atool != 50) {
  13087. this.workStudent[i].push({
  13088. userid: b[j].userid,
  13089. wid: b[j].id,
  13090. works: b[j].content,
  13091. sName: b[j].name,
  13092. score: b[j].score,
  13093. img: b[j].img,
  13094. type: 5,
  13095. time: b[j].time,
  13096. });
  13097. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13098. this.workStudent[i].push({
  13099. works: b[j].content,
  13100. sName: b[j].name,
  13101. score: b[j].score,
  13102. img: b[j].img,
  13103. type: 12,
  13104. time: b[j].time,
  13105. userid: b[j].userid,
  13106. wid: b[j].id,
  13107. });
  13108. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  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: 0,
  13115. time: b[j].time,
  13116. userid: b[j].userid,
  13117. wid: b[j].id,
  13118. });
  13119. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13120. this.workStudent[i].push({
  13121. works: b[j].content,
  13122. sName: b[j].name,
  13123. score: b[j].score,
  13124. img: b[j].img,
  13125. type: 0,
  13126. time: b[j].time,
  13127. userid: b[j].userid,
  13128. wid: b[j].id,
  13129. });
  13130. }
  13131. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13132. this.workStudent[i].push({
  13133. works: b[j].content,
  13134. sName: b[j].name,
  13135. score: b[j].score,
  13136. img: b[j].img,
  13137. type: 2,
  13138. time: b[j].time,
  13139. userid: b[j].userid,
  13140. wid: b[j].id,
  13141. });
  13142. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13143. //问卷
  13144. this.workStudent[i].push({
  13145. works: b[j].content,
  13146. sName: b[j].name,
  13147. score: b[j].score,
  13148. img: b[j].img,
  13149. type: 2,
  13150. time: b[j].time,
  13151. userid: b[j].userid,
  13152. wid: b[j].id,
  13153. });
  13154. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13155. //选择题
  13156. this.workStudent[i].push({
  13157. works: b[j].content,
  13158. sName: b[j].name,
  13159. score: b[j].score,
  13160. img: b[j].img,
  13161. type: 8,
  13162. time: b[j].time,
  13163. userid: b[j].userid,
  13164. wid: b[j].id,
  13165. });
  13166. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13167. //选择题
  13168. this.workStudent[i].push({
  13169. works: b[j].content,
  13170. sName: b[j].name,
  13171. score: b[j].score,
  13172. img: b[j].img,
  13173. type: 9,
  13174. time: b[j].time,
  13175. userid: b[j].userid,
  13176. wid: b[j].id,
  13177. });
  13178. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13179. //选择题
  13180. this.workStudent[i].push({
  13181. works: b[j].content,
  13182. sName: b[j].name,
  13183. score: b[j].score,
  13184. img: b[j].img,
  13185. type: 10,
  13186. time: b[j].time,
  13187. userid: b[j].userid,
  13188. wid: b[j].id,
  13189. });
  13190. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13191. //选择题
  13192. this.workStudent[i].push({
  13193. works: b[j].content,
  13194. sName: b[j].name,
  13195. score: b[j].score,
  13196. img: b[j].img,
  13197. type: 13,
  13198. time: b[j].time,
  13199. userid: b[j].userid,
  13200. wid: b[j].id,
  13201. });
  13202. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13203. //选择题
  13204. this.workStudent[i].push({
  13205. works: b[j].content,
  13206. sName: b[j].name,
  13207. score: b[j].score,
  13208. img: b[j].img,
  13209. type: 12,
  13210. time: b[j].time,
  13211. userid: b[j].userid,
  13212. wid: b[j].id,
  13213. });
  13214. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13215. //选择题
  13216. this.workStudent[i].push({
  13217. works: b[j].content,
  13218. sName: b[j].name,
  13219. score: b[j].score,
  13220. img: b[j].img,
  13221. type: 12,
  13222. time: b[j].time,
  13223. userid: b[j].userid,
  13224. wid: b[j].id,
  13225. });
  13226. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13227. //选择题
  13228. this.workStudent[i].push({
  13229. works: b[j].content,
  13230. sName: b[j].name,
  13231. score: b[j].score,
  13232. img: b[j].img,
  13233. type: 15,
  13234. time: b[j].time,
  13235. userid: b[j].userid,
  13236. wid: b[j].id,
  13237. });
  13238. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13239. //英语写作
  13240. this.workStudent[i].push({
  13241. works: b[j].content,
  13242. sName: b[j].name,
  13243. score: b[j].score,
  13244. img: b[j].img,
  13245. type: 16,
  13246. time: b[j].time,
  13247. userid: b[j].userid,
  13248. wid: b[j].id,
  13249. });
  13250. }
  13251. }
  13252. }
  13253. }
  13254. })
  13255. .catch((err) => {
  13256. console.error(err);
  13257. });
  13258. },
  13259. openVideo(w) {
  13260. this.videoDetail = {};
  13261. this.playerOptions1.sources[0].src = w.works;
  13262. this.videoDetail = this.playerOptions1;
  13263. this.videoVisible = true;
  13264. },
  13265. isLikes(wid, uid, t, c, isLikes) {
  13266. if (isLikes == false) {
  13267. let params = [
  13268. {
  13269. wid: wid,
  13270. lid: uid,
  13271. t: t,
  13272. c: c,
  13273. },
  13274. ];
  13275. this.ajax
  13276. .post(this.$store.state.api + "insertComment", params)
  13277. .then((res) => {
  13278. this.$message({
  13279. message: "点赞成功",
  13280. type: "success",
  13281. });
  13282. this.selectSWorks();
  13283. this.selectStudent();
  13284. })
  13285. .catch((err) => {
  13286. this.$message.error("点赞失败");
  13287. console.error(err);
  13288. });
  13289. } else {
  13290. let params = {
  13291. wid: wid,
  13292. lid: uid,
  13293. type: t,
  13294. };
  13295. this.ajax
  13296. .get(this.$store.state.api + "deleteComment", params)
  13297. .then((res) => {
  13298. this.$message({
  13299. message: "取消点赞成功",
  13300. type: "success",
  13301. });
  13302. this.selectSWorks();
  13303. this.selectStudent();
  13304. })
  13305. .catch((err) => {
  13306. console.error(err);
  13307. });
  13308. }
  13309. },
  13310. deleteComment(wid) {
  13311. this.$confirm("确定删除此评论吗?", "提示", {
  13312. confirmButtonText: "确定",
  13313. cancelButtonText: "取消",
  13314. type: "warning",
  13315. })
  13316. .then(() => {
  13317. let params = {
  13318. id: wid,
  13319. };
  13320. this.ajax
  13321. .get(this.$store.state.api + "deleteComment2", params)
  13322. .then((res) => {
  13323. this.$message({
  13324. message: "删除评论成功",
  13325. type: "success",
  13326. });
  13327. this.selectSWorks();
  13328. this.selectStudent();
  13329. })
  13330. .catch((err) => {
  13331. console.error(err);
  13332. });
  13333. })
  13334. .catch(() => {});
  13335. },
  13336. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13337. this.commentIndexJson = {
  13338. toolIndex: toolIndex,
  13339. wIndex: wIndex,
  13340. gindex: gindex,
  13341. gid: gid,
  13342. };
  13343. this.commentDetail = [];
  13344. this.commentDialogVisible = true;
  13345. this.commentDetail = w;
  13346. if (w.works && w.type == 1) {
  13347. this.pptImgUrl = "";
  13348. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13349. if (
  13350. a.indexOf(
  13351. w.works
  13352. .split(".")
  13353. [w.works.split(".").length - 1].toLocaleUpperCase()
  13354. ) != -1
  13355. ) {
  13356. this.pptImgUrl =
  13357. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13358. this.showPDF = false;
  13359. } else if (
  13360. w.works
  13361. .split(".")
  13362. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13363. ) {
  13364. this.pptImgUrl = w.works;
  13365. this.showPDF = true;
  13366. }
  13367. } else if (w.works && w.type == 3) {
  13368. this.videoDetail = {};
  13369. this.playerOptions1.sources[0].src = w.works;
  13370. this.videoDetail = this.playerOptions1;
  13371. // this.videoVisible = true;
  13372. } else if (w.works && w.type == 4) {
  13373. this.eScore = JSON.parse(w.works);
  13374. this.rateJson =
  13375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13376. this.taskCount
  13377. ].toolChoose[toolIndex].rateJson;
  13378. } else if (w.works && w.type == 10) {
  13379. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13380. } else if (w.works && w.type == 13) {
  13381. this.wordJson =
  13382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13383. this.taskCount
  13384. ].toolChoose[toolIndex].wordJson;
  13385. }
  13386. },
  13387. openScore(w) {
  13388. this.wScore = 0;
  13389. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13390. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13391. this.commentDetail = [];
  13392. this.dialogVisibleScore = true;
  13393. this.commentDetail = w;
  13394. if (w.works && w.type == 1) {
  13395. this.pptImgUrl = "";
  13396. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13397. if (
  13398. a.indexOf(
  13399. w.works
  13400. .split(".")
  13401. [w.works.split(".").length - 1].toLocaleUpperCase()
  13402. ) != -1
  13403. ) {
  13404. this.pptImgUrl =
  13405. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13406. this.showPDF = false;
  13407. } else if (
  13408. w.works
  13409. .split(".")
  13410. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13411. ) {
  13412. this.pptImgUrl = w.works;
  13413. this.showPDF = true;
  13414. }
  13415. } else if (w.works && w.type == 3) {
  13416. this.videoDetail = {};
  13417. this.playerOptions1.sources[0].src = w.works;
  13418. this.videoDetail = this.playerOptions1;
  13419. }
  13420. },
  13421. addComment(wid, uid, t) {
  13422. if (this.commentText == "") {
  13423. this.$message.error("请输入评论");
  13424. return;
  13425. }
  13426. let params2 = [
  13427. {
  13428. wid: wid,
  13429. lid: uid,
  13430. t: t,
  13431. },
  13432. ];
  13433. this.ajax
  13434. .post(this.$store.state.api + "getComment", params2)
  13435. .then((res) => {
  13436. if (res.data[0].length > 0) {
  13437. this.$message.error("一个作业只能评论一条");
  13438. } else {
  13439. let params = [
  13440. {
  13441. wid: wid,
  13442. lid: uid,
  13443. t: t,
  13444. c: this.commentText,
  13445. },
  13446. ];
  13447. this.ajax
  13448. .post(this.$store.state.api + "insertComment", params)
  13449. .then((res) => {
  13450. this.$message({
  13451. message: "评论成功",
  13452. type: "success",
  13453. });
  13454. this.commentText = "";
  13455. this.selectSWorks();
  13456. this.selectStudent();
  13457. })
  13458. .catch((err) => {
  13459. this.$message.error("评论失败");
  13460. console.error(err);
  13461. });
  13462. }
  13463. })
  13464. .catch((err) => {
  13465. // this.$message.error("评论失败");
  13466. console.error(err);
  13467. });
  13468. },
  13469. scoreWork(wid) {
  13470. if (this.wScore == 0) {
  13471. this.$message.error("请评分");
  13472. return;
  13473. }
  13474. let params = [
  13475. {
  13476. wid: wid,
  13477. score: JSON.stringify({
  13478. wScore: this.wScore,
  13479. detail: this.scoreDetail,
  13480. }),
  13481. },
  13482. ];
  13483. this.ajax
  13484. .post(this.$store.state.api + "scoreWork", params)
  13485. .then((res) => {
  13486. this.$message({
  13487. message: "评分成功",
  13488. type: "success",
  13489. });
  13490. this.wScore = 0;
  13491. this.scoreDetail = "";
  13492. this.dialogVisibleScore = false;
  13493. this.selectSWorks();
  13494. this.selectStudent();
  13495. })
  13496. .catch((err) => {
  13497. this.$message.error("评分失败");
  13498. console.error(err);
  13499. });
  13500. },
  13501. openXz(w, i) {
  13502. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13503. .taskJson[this.taskCount].toolChoose[i].selectJson
  13504. ? JSON.parse(
  13505. JSON.stringify(
  13506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13507. this.taskCount
  13508. ].toolChoose[i].selectJson
  13509. )
  13510. )
  13511. : { url: "", select: [], answer: [] };
  13512. var a = w.works.split(",");
  13513. for (var k = 0; k < a.length; k++) {
  13514. a[k] = parseInt(a[k]);
  13515. }
  13516. this.selectAnswer = { answer: a, stu: w.sName };
  13517. this.isSelect = true;
  13518. this.dialogVisibleSelect = true;
  13519. },
  13520. openSen(w, i) {
  13521. this.sentenceList1 = JSON.parse(w.works);
  13522. this.sentenceList1.stuName = w.sName;
  13523. this.dialogVisibleSentence1 = true;
  13524. },
  13525. openPj(w, toolindex) {
  13526. this.isStar = true;
  13527. this.eScore = JSON.parse(w);
  13528. this.rateJson =
  13529. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13530. this.taskCount
  13531. ].toolChoose[toolindex].rateJson;
  13532. this.studentEvalDialogVisible = true;
  13533. },
  13534. openEnglishEva(id,i){
  13535. let params = {
  13536. wid: id
  13537. };
  13538. this.ajax
  13539. .get(this.$store.state.api + "selectEngWork", params)
  13540. .then((res) => {
  13541. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13542. this.evaEngJson.username = res.data[0][0].username;
  13543. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13544. .toolChoose[i].englishList;
  13545. this.engEvaDialogVisible = true;
  13546. })
  13547. .catch((err) => {
  13548. console.error(err);
  13549. });
  13550. },
  13551. deleteWorks(id) {
  13552. this.$confirm("确定删除此作业吗?", "提示", {
  13553. confirmButtonText: "确定",
  13554. cancelButtonText: "取消",
  13555. type: "warning",
  13556. })
  13557. .then(() => {
  13558. let params = [
  13559. {
  13560. id: id,
  13561. },
  13562. ];
  13563. this.ajax
  13564. .post(this.$store.state.api + "deleteCourseWork", params)
  13565. .then((res) => {
  13566. this.$message({
  13567. message: "删除成功",
  13568. type: "success",
  13569. });
  13570. this.selectStudent();
  13571. this.selectSWorks();
  13572. this.selectSLook();
  13573. })
  13574. .catch((err) => {
  13575. this.$message.error("网络异常");
  13576. console.error(err);
  13577. });
  13578. })
  13579. .catch(() => {});
  13580. },
  13581. selectSWorks(gindex) {
  13582. //教师查看全部作业
  13583. let params = {
  13584. cid: this.id,
  13585. s: this.courseType,
  13586. t: this.taskCount,
  13587. };
  13588. this.ajax
  13589. .get(this.$store.state.api + "selectSWorks", params)
  13590. .then((res) => {
  13591. var a =
  13592. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13593. this.taskCount
  13594. ].toolChoose;
  13595. var b = res.data[0];
  13596. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13597. var y = [
  13598. "AVI",
  13599. "NAVI",
  13600. "MPEG",
  13601. "ASF",
  13602. "MOV",
  13603. "WMV",
  13604. "3GP",
  13605. "RM",
  13606. "RMVB",
  13607. "FLV",
  13608. "F4V",
  13609. "H.264",
  13610. "H.265",
  13611. "REAL VIDEO",
  13612. "MKV",
  13613. "WebM",
  13614. "HDDVD",
  13615. "MP4",
  13616. "MPG",
  13617. "M4V",
  13618. "MGV",
  13619. "OGV",
  13620. "QTM",
  13621. "STR",
  13622. "AMC",
  13623. "DVX",
  13624. "EVO",
  13625. "DAT",
  13626. "OGG",
  13627. "OGM",
  13628. ];
  13629. var d = res.data[1];
  13630. var e = res.data[2];
  13631. var f = res.data[3];
  13632. let _worksStudent = [];
  13633. var _worksStudent2 = [];
  13634. for (var i = 0; i < a.length; i++) {
  13635. _worksStudent[i] = [];
  13636. _worksStudent2[i] = [];
  13637. if (
  13638. !this.isCloseList[i] ||
  13639. this.isCloseList[i].isClose == undefined
  13640. ) {
  13641. this.isCloseList[i] = { isClose: 0 };
  13642. }
  13643. this.groupStudent[i] = [];
  13644. this.groupStudentUid[i] = [];
  13645. if (this.isGroup) {
  13646. for (
  13647. var groupI = 0;
  13648. groupI < this.courseGroup.group.length;
  13649. groupI++
  13650. ) {
  13651. this.courseGroup.group[groupI].works[i] = [];
  13652. }
  13653. }
  13654. this.isWorksS[i] = [];
  13655. this.checkJson[i] = [];
  13656. if (a[i].tool[0] == 49) {
  13657. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13658. this.groupStudent[i][gA] = [];
  13659. this.groupStudentUid[i][gA] = [];
  13660. _worksStudent[i][gA] = [];
  13661. _worksStudent2[i][gA] = [];
  13662. this.isCloseList[i][gA] = [];
  13663. for (var g = 0; g < f.length; g++) {
  13664. if (
  13665. f[g].ttype == 2 &&
  13666. this.tcid &&
  13667. this.arrayToArray(
  13668. f[g].classid.split(","),
  13669. this.tcid.split(",")
  13670. ).length == 0
  13671. ) {
  13672. continue;
  13673. }
  13674. if (gA == f[g].group && f[g].tool == i) {
  13675. this.groupStudent[i][gA].push(f[g]);
  13676. this.groupStudentUid[i][gA].push(f[g].userid);
  13677. }
  13678. }
  13679. }
  13680. this.$forceUpdate();
  13681. }
  13682. for (var j = 0; j < b.length; j++) {
  13683. if (
  13684. b[j].ttype == 2 &&
  13685. this.tcid &&
  13686. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13687. .length == 0
  13688. ) {
  13689. continue;
  13690. }
  13691. var likesCount = 0;
  13692. var commentCount = 0;
  13693. var isLikes = false;
  13694. var commentJson = [];
  13695. var data = b[j];
  13696. if (i == b[j].tool) {
  13697. if (data.type == 2 && a[i].tool[0] == 4) {
  13698. // if(JSON.parse(data.content)[0].anwer){
  13699. var checkL =
  13700. JSON.parse(data.content)[0].anwer instanceof Array
  13701. ? JSON.parse(data.content)[0].anwer
  13702. : JSON.parse(data.content)[0].anwer.split(",");
  13703. for (var z = 0; z < checkL.length; z++) {
  13704. if (!this.checkJson[i][z]) {
  13705. this.checkJson[i].push({
  13706. checkCount: [],
  13707. checkPerson: [],
  13708. rightPerson: [],
  13709. });
  13710. }
  13711. if (!this.checkJson[i][z].checkCount.length) {
  13712. this.checkJson[i][z].checkCount = [];
  13713. let _askItemCount = JSON.parse(data.content)[0].askJson
  13714. .askJson[z].askItem;
  13715. for (var aic = 0; aic < _askItemCount; aic++) {
  13716. this.checkJson[i][z].checkCount.push(0);
  13717. }
  13718. }
  13719. if (checkL[z] instanceof Array) {
  13720. if (
  13721. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13722. checkL[z].sort().join(",")
  13723. ) {
  13724. this.checkJson[i][z].rightPerson.push(data.name);
  13725. }
  13726. for (var q = 0; q < checkL[z].length; q++) {
  13727. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13728. ? this.checkJson[i][z].checkPerson[
  13729. parseInt(checkL[z][q])
  13730. ].push(data.name)
  13731. : (this.checkJson[i][z].checkPerson[
  13732. parseInt(checkL[z][q])
  13733. ] = [data.name]);
  13734. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13735. ? this.checkJson[i][z].checkCount[
  13736. parseInt(checkL[z][q])
  13737. ]++
  13738. : (this.checkJson[i][z].checkCount[
  13739. parseInt(checkL[z][q])
  13740. ] = 1);
  13741. }
  13742. } else {
  13743. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13744. this.checkJson[i][z].rightPerson.push(data.name);
  13745. }
  13746. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13747. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13748. ? this.checkJson[i][z].checkPerson[
  13749. parseInt(checkL[z])
  13750. ].push(data.name)
  13751. : (this.checkJson[i][z].checkPerson[
  13752. parseInt(checkL[z])
  13753. ] = [data.name]);
  13754. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13755. ? this.checkJson[i][z].checkCount[
  13756. parseInt(checkL[z])
  13757. ]++
  13758. : (this.checkJson[i][z].checkCount[
  13759. parseInt(checkL[z])
  13760. ] = 1);
  13761. }
  13762. }
  13763. }
  13764. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13765. var checkL = JSON.parse(data.content)[0].anwer;
  13766. for (var z = 0; z < checkL.length; z++) {
  13767. if (!this.checkJson[i][z]) {
  13768. this.checkJson[i].push({
  13769. checkCount: [],
  13770. checkPerson: [],
  13771. rightPerson: [],
  13772. });
  13773. }
  13774. if (!this.checkJson[i][z].checkCount.length) {
  13775. this.checkJson[i][z].checkCount = [];
  13776. let _askItemCount = JSON.parse(data.content)[0].testJson
  13777. .testJson[z].testItem;
  13778. for (var aic = 0; aic < _askItemCount; aic++) {
  13779. this.checkJson[i][z].checkCount.push(0);
  13780. }
  13781. }
  13782. if (checkL[z] instanceof Array) {
  13783. if (
  13784. JSON.parse(data.content)[0]
  13785. .testJson.testJson[z].answer.sort()
  13786. .join(",") == checkL[z].sort().join(",")
  13787. ) {
  13788. this.checkJson[i][z].rightPerson.push(data.name);
  13789. }
  13790. for (var q = 0; q < checkL[z].length; q++) {
  13791. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13792. ? this.checkJson[i][z].checkPerson[
  13793. parseInt(checkL[z][q])
  13794. ].push(data.name)
  13795. : (this.checkJson[i][z].checkPerson[
  13796. parseInt(checkL[z][q])
  13797. ] = [data.name]);
  13798. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13799. ? this.checkJson[i][z].checkCount[
  13800. parseInt(checkL[z][q])
  13801. ]++
  13802. : (this.checkJson[i][z].checkCount[
  13803. parseInt(checkL[z][q])
  13804. ] = 1);
  13805. }
  13806. } else {
  13807. if (
  13808. JSON.parse(data.content)[0].testJson.testJson[z]
  13809. .answer == checkL[z]
  13810. ) {
  13811. this.checkJson[i][z].rightPerson.push(data.name);
  13812. }
  13813. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13814. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13815. ? this.checkJson[i][z].checkPerson[
  13816. parseInt(checkL[z])
  13817. ].push(data.name)
  13818. : (this.checkJson[i][z].checkPerson[
  13819. parseInt(checkL[z])
  13820. ] = [data.name]);
  13821. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13822. ? this.checkJson[i][z].checkCount[
  13823. parseInt(checkL[z])
  13824. ]++
  13825. : (this.checkJson[i][z].checkCount[
  13826. parseInt(checkL[z])
  13827. ] = 1);
  13828. }
  13829. }
  13830. }
  13831. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13832. var checkL = JSON.parse(data.content);
  13833. for (var z = 0; z < checkL.length; z++) {
  13834. if (!this.checkJson[i][z]) {
  13835. this.checkJson[i].push({
  13836. checkCount: [],
  13837. checkPerson: [],
  13838. rightPerson: [],
  13839. });
  13840. }
  13841. this.checkJson[i][z].checkPerson.push(data.name);
  13842. if (
  13843. checkL[z].chooseSenList.toString() ==
  13844. checkL[z].rightAnswer.toString()
  13845. ) {
  13846. this.checkJson[i][z].rightPerson.push(data.name);
  13847. }
  13848. }
  13849. }
  13850. for (var k = 0; k < d.length; k++) {
  13851. //点赞
  13852. if (d[k].workId == b[j].id) {
  13853. likesCount++;
  13854. if (d[k].likesId == this.userid) {
  13855. isLikes = true;
  13856. }
  13857. }
  13858. }
  13859. for (var l = 0; l < e.length; l++) {
  13860. //评论
  13861. if (e[l].workId == b[j].id) {
  13862. if (e[l].comment != "") {
  13863. commentCount++;
  13864. commentJson.push({
  13865. commentText: e[l].comment,
  13866. commentTime: e[l].commentTime,
  13867. commentPeople: e[l].commentPeople,
  13868. userid: e[l].userid,
  13869. wid: e[l].id,
  13870. });
  13871. }
  13872. }
  13873. }
  13874. if (
  13875. (b[j].type == 1 ||
  13876. b[j].type == 4 ||
  13877. b[j].type == 5 ||
  13878. b[j].type == 6 ||
  13879. b[j].type == 12 ||
  13880. b[j].type == 7) &&
  13881. a[i].tool[0] != 15 &&
  13882. a[i].tool[0] != 4 &&
  13883. a[i].tool[0] != 45 &&
  13884. a[i].tool[0] != 50 &&
  13885. a[i].tool[0] != 32 &&
  13886. a[i].tool[0] != 57 &&
  13887. a[i].tool[0] != 52
  13888. ) {
  13889. if (
  13890. c.indexOf(
  13891. b[j].content
  13892. .split(".")
  13893. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13894. ) != -1 &&
  13895. a[i].tool[0] == 16 &&
  13896. b[j].atool != 50
  13897. ) {
  13898. let _works = {
  13899. userid: b[j].userid,
  13900. ateacher: b[j].ateacher,
  13901. wid: b[j].id,
  13902. works: b[j].content,
  13903. sName: b[j].name,
  13904. type: 1,
  13905. time: b[j].time,
  13906. score: b[j].score,
  13907. img: b[j].img,
  13908. likesCount: likesCount,
  13909. commentCount: commentCount,
  13910. isLikes: isLikes,
  13911. commentJson: commentJson,
  13912. };
  13913. if (this.isGroup) {
  13914. let isGw = 1;
  13915. for (
  13916. var groupI = 0;
  13917. groupI < this.courseGroup.group.length;
  13918. groupI++
  13919. ) {
  13920. let gid = this.courseGroup.group[groupI].id;
  13921. if (
  13922. this.courseGroupStudentUid[gid].indexOf(
  13923. b[j].userid
  13924. ) != -1
  13925. ) {
  13926. isGw = 2;
  13927. this.courseGroup.group[groupI].works[i].push(_works);
  13928. break;
  13929. }
  13930. }
  13931. if (isGw == 1) {
  13932. _worksStudent[i].push(_works);
  13933. }
  13934. } else {
  13935. _worksStudent[i].push(_works);
  13936. }
  13937. _worksStudent2[i].push(_works);
  13938. this.isWorksS[i].push({
  13939. uid: b[j].userid,
  13940. sName: b[j].name,
  13941. });
  13942. } else if (
  13943. y.indexOf(
  13944. b[j].content
  13945. .split(".")
  13946. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13947. ) != -1 &&
  13948. a[i].tool[0] == 16 &&
  13949. b[j].atool != 50
  13950. ) {
  13951. let _works = {
  13952. userid: b[j].userid,
  13953. ateacher: b[j].ateacher,
  13954. wid: b[j].id,
  13955. works: b[j].content,
  13956. sName: b[j].name,
  13957. type: 3,
  13958. time: b[j].time,
  13959. score: b[j].score,
  13960. img: b[j].img,
  13961. likesCount: likesCount,
  13962. commentCount: commentCount,
  13963. isLikes: isLikes,
  13964. commentJson: commentJson,
  13965. };
  13966. if (this.isGroup) {
  13967. let isGw = 1;
  13968. for (
  13969. var groupI = 0;
  13970. groupI < this.courseGroup.group.length;
  13971. groupI++
  13972. ) {
  13973. let gid = this.courseGroup.group[groupI].id;
  13974. if (
  13975. this.courseGroupStudentUid[gid].indexOf(
  13976. b[j].userid
  13977. ) != -1
  13978. ) {
  13979. isGw = 2;
  13980. this.courseGroup.group[groupI].works[i].push(_works);
  13981. break;
  13982. }
  13983. }
  13984. if (isGw == 1) {
  13985. _worksStudent[i].push(_works);
  13986. }
  13987. } else {
  13988. _worksStudent[i].push(_works);
  13989. }
  13990. _worksStudent2[i].push(_works);
  13991. this.isWorksS[i].push({
  13992. uid: b[j].userid,
  13993. sName: b[j].name,
  13994. });
  13995. } else if (b[j].type == 6 && b[j].atool != 50) {
  13996. let _works = {
  13997. userid: b[j].userid,
  13998. ateacher: b[j].ateacher,
  13999. wid: b[j].id,
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. type: 4,
  14003. time: b[j].time,
  14004. score: b[j].score,
  14005. img: b[j].img,
  14006. likesCount: likesCount,
  14007. commentCount: commentCount,
  14008. isLikes: isLikes,
  14009. commentJson: commentJson,
  14010. };
  14011. _worksStudent[i].push(_works);
  14012. _worksStudent2[i].push(_works);
  14013. this.isWorksS[i].push({
  14014. uid: b[j].userid,
  14015. sName: b[j].name,
  14016. });
  14017. } else if (b[j].type == 7 && b[j].atool != 50) {
  14018. let _work = {
  14019. userid: b[j].userid,
  14020. ateacher: b[j].ateacher,
  14021. wid: b[j].id,
  14022. works: b[j].content,
  14023. sName: b[j].name,
  14024. type: 5,
  14025. time: b[j].time,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. likesCount: likesCount,
  14029. commentCount: commentCount,
  14030. isLikes: isLikes,
  14031. commentJson: commentJson,
  14032. };
  14033. _worksStudent[i].push(_work);
  14034. _worksStudent2[i].push(_work);
  14035. this.isWorksS[i].push({
  14036. uid: b[j].userid,
  14037. sName: b[j].name,
  14038. });
  14039. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14040. let _works = {
  14041. userid: b[j].userid,
  14042. ateacher: b[j].ateacher,
  14043. wid: b[j].id,
  14044. works: b[j].content,
  14045. sName: b[j].name,
  14046. type: 12,
  14047. time: b[j].time,
  14048. score: b[j].score,
  14049. img: b[j].img,
  14050. likesCount: likesCount,
  14051. commentCount: commentCount,
  14052. isLikes: isLikes,
  14053. commentJson: commentJson,
  14054. };
  14055. if (this.isGroup) {
  14056. let isGw = 1;
  14057. for (
  14058. var groupI = 0;
  14059. groupI < this.courseGroup.group.length;
  14060. groupI++
  14061. ) {
  14062. let gid = this.courseGroup.group[groupI].id;
  14063. if (
  14064. this.courseGroupStudentUid[gid].indexOf(
  14065. b[j].userid
  14066. ) != -1
  14067. ) {
  14068. isGw = 2;
  14069. this.courseGroup.group[groupI].works[i].push(_works);
  14070. break;
  14071. }
  14072. }
  14073. if (isGw == 1) {
  14074. _worksStudent[i].push(_works);
  14075. }
  14076. } else {
  14077. _worksStudent[i].push(_works);
  14078. }
  14079. _worksStudent2[i].push(_works);
  14080. this.isWorksS[i].push({
  14081. uid: b[j].userid,
  14082. sName: b[j].name,
  14083. });
  14084. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14085. let _works = {
  14086. userid: b[j].userid,
  14087. ateacher: b[j].ateacher,
  14088. wid: b[j].id,
  14089. works: b[j].content,
  14090. sName: b[j].name,
  14091. type: 0,
  14092. time: b[j].time,
  14093. score: b[j].score,
  14094. img: b[j].img,
  14095. likesCount: likesCount,
  14096. commentCount: commentCount,
  14097. isLikes: isLikes,
  14098. commentJson: commentJson,
  14099. };
  14100. if (this.isGroup) {
  14101. let isGw = 1;
  14102. for (
  14103. var groupI = 0;
  14104. groupI < this.courseGroup.group.length;
  14105. groupI++
  14106. ) {
  14107. let gid = this.courseGroup.group[groupI].id;
  14108. if (
  14109. this.courseGroupStudentUid[gid].indexOf(
  14110. b[j].userid
  14111. ) != -1
  14112. ) {
  14113. isGw = 2;
  14114. this.courseGroup.group[groupI].works[i].push(_works);
  14115. break;
  14116. }
  14117. }
  14118. if (isGw == 1) {
  14119. _worksStudent[i].push(_works);
  14120. }
  14121. } else {
  14122. _worksStudent[i].push(_works);
  14123. }
  14124. _worksStudent2[i].push(_works);
  14125. this.isWorksS[i].push({
  14126. uid: b[j].userid,
  14127. sName: b[j].name,
  14128. });
  14129. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14130. let _works = {
  14131. userid: b[j].userid,
  14132. ateacher: b[j].ateacher,
  14133. wid: b[j].id,
  14134. works: b[j].content,
  14135. sName: b[j].name,
  14136. type: 0,
  14137. time: b[j].time,
  14138. score: b[j].score,
  14139. img: b[j].img,
  14140. likesCount: likesCount,
  14141. commentCount: commentCount,
  14142. isLikes: isLikes,
  14143. commentJson: commentJson,
  14144. };
  14145. if (this.isGroup) {
  14146. let isGw = 1;
  14147. for (
  14148. var groupI = 0;
  14149. groupI < this.courseGroup.group.length;
  14150. groupI++
  14151. ) {
  14152. let gid = this.courseGroup.group[groupI].id;
  14153. if (
  14154. this.courseGroupStudentUid[gid].indexOf(
  14155. b[j].userid
  14156. ) != -1
  14157. ) {
  14158. isGw = 2;
  14159. this.courseGroup.group[groupI].works[i].push(_works);
  14160. break;
  14161. }
  14162. }
  14163. if (isGw == 1) {
  14164. _worksStudent[i].push(_works);
  14165. }
  14166. } else {
  14167. _worksStudent[i].push(_works);
  14168. }
  14169. _worksStudent2[i].push(_works);
  14170. this.isWorksS[i].push({
  14171. uid: b[j].userid,
  14172. sName: b[j].name,
  14173. });
  14174. }
  14175. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14176. let _works = {
  14177. userid: b[j].userid,
  14178. ateacher: b[j].ateacher,
  14179. wid: b[j].id,
  14180. works: b[j].content,
  14181. sName: b[j].name,
  14182. type: 2,
  14183. time: b[j].time,
  14184. score: b[j].score,
  14185. img: b[j].img,
  14186. likesCount: likesCount,
  14187. commentCount: commentCount,
  14188. isLikes: isLikes,
  14189. commentJson: commentJson,
  14190. };
  14191. if (this.isGroup) {
  14192. let isGw = 1;
  14193. for (
  14194. var groupI = 0;
  14195. groupI < this.courseGroup.group.length;
  14196. groupI++
  14197. ) {
  14198. let gid = this.courseGroup.group[groupI].id;
  14199. if (
  14200. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14201. -1
  14202. ) {
  14203. isGw = 2;
  14204. this.courseGroup.group[groupI].works[i].push(_works);
  14205. break;
  14206. }
  14207. }
  14208. if (isGw == 1) {
  14209. _worksStudent[i].push(_works);
  14210. }
  14211. } else {
  14212. _worksStudent[i].push(_works);
  14213. }
  14214. _worksStudent2[i].push(_works);
  14215. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14216. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14217. //问卷
  14218. let _work = {
  14219. userid: b[j].userid,
  14220. ateacher: b[j].ateacher,
  14221. wid: b[j].id,
  14222. works: b[j].content,
  14223. sName: b[j].name,
  14224. type: 2,
  14225. time: b[j].time,
  14226. score: b[j].score,
  14227. img: b[j].img,
  14228. likesCount: likesCount,
  14229. commentCount: commentCount,
  14230. isLikes: isLikes,
  14231. commentJson: commentJson,
  14232. };
  14233. _worksStudent[i].push(_work);
  14234. _worksStudent2[i].push(_work);
  14235. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14236. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14237. //选择题
  14238. let _work = {
  14239. userid: b[j].userid,
  14240. ateacher: b[j].ateacher,
  14241. wid: b[j].id,
  14242. works: b[j].content,
  14243. sName: b[j].name,
  14244. type: 8,
  14245. time: b[j].time,
  14246. score: b[j].score,
  14247. img: b[j].img,
  14248. likesCount: likesCount,
  14249. commentCount: commentCount,
  14250. isLikes: isLikes,
  14251. commentJson: commentJson,
  14252. };
  14253. _worksStudent[i].push(_work);
  14254. _worksStudent2[i].push(_work);
  14255. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14256. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14257. //选择题
  14258. let _work = {
  14259. userid: b[j].userid,
  14260. ateacher: b[j].ateacher,
  14261. wid: b[j].id,
  14262. works: b[j].content,
  14263. sName: b[j].name,
  14264. type: 9,
  14265. time: b[j].time,
  14266. score: b[j].score,
  14267. img: b[j].img,
  14268. likesCount: likesCount,
  14269. commentCount: commentCount,
  14270. isLikes: isLikes,
  14271. commentJson: commentJson,
  14272. };
  14273. _worksStudent[i].push(_work);
  14274. _worksStudent2[i].push(_work);
  14275. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14276. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14277. //选择题
  14278. let _work = {
  14279. userid: b[j].userid,
  14280. ateacher: b[j].ateacher,
  14281. wid: b[j].id,
  14282. works: b[j].content,
  14283. sName: b[j].name,
  14284. type: 10,
  14285. time: b[j].time,
  14286. score: b[j].score,
  14287. img: b[j].img,
  14288. likesCount: likesCount,
  14289. commentCount: commentCount,
  14290. isLikes: isLikes,
  14291. commentJson: commentJson,
  14292. };
  14293. _worksStudent[i].push(_work);
  14294. _worksStudent2[i].push(_work);
  14295. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14296. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14297. //选择题
  14298. let _work = {
  14299. userid: b[j].userid,
  14300. ateacher: b[j].ateacher,
  14301. wid: b[j].id,
  14302. works: b[j].content,
  14303. sName: b[j].name,
  14304. type: 13,
  14305. time: b[j].time,
  14306. score: b[j].score,
  14307. img: b[j].img,
  14308. likesCount: likesCount,
  14309. commentCount: commentCount,
  14310. isLikes: isLikes,
  14311. commentJson: commentJson,
  14312. };
  14313. _worksStudent[i].push(_work);
  14314. _worksStudent2[i].push(_work);
  14315. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14316. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14317. //选择题
  14318. let _work = {
  14319. userid: b[j].userid,
  14320. ateacher: b[j].ateacher,
  14321. wid: b[j].id,
  14322. works: b[j].content,
  14323. sName: b[j].name,
  14324. type: 16,
  14325. time: b[j].time,
  14326. score: b[j].score,
  14327. img: b[j].img,
  14328. likesCount: likesCount,
  14329. commentCount: commentCount,
  14330. isLikes: isLikes,
  14331. commentJson: commentJson,
  14332. };
  14333. _worksStudent[i].push(_work);
  14334. _worksStudent2[i].push(_work);
  14335. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14336. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14337. let _gindex = JSON.parse(b[j].content);
  14338. if (
  14339. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14340. b[j].userid
  14341. ) != -1
  14342. ) {
  14343. let _work = {
  14344. userid: b[j].userid,
  14345. ateacher: b[j].ateacher,
  14346. wid: b[j].id,
  14347. works: _gindex.url,
  14348. sName: b[j].name,
  14349. type: _gindex.type,
  14350. time: b[j].time,
  14351. score: b[j].score,
  14352. img: b[j].img,
  14353. likesCount: likesCount,
  14354. commentCount: commentCount,
  14355. isLikes: isLikes,
  14356. commentJson: commentJson,
  14357. };
  14358. _worksStudent[i][_gindex.groupIndex].push(_work);
  14359. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14360. }
  14361. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14362. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14363. let _work = {
  14364. userid: b[j].userid,
  14365. ateacher: b[j].ateacher,
  14366. wid: b[j].id,
  14367. works: b[j].content,
  14368. sName: b[j].name ? b[j].name : b[j].userid,
  14369. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14370. time: b[j].time,
  14371. score: b[j].score,
  14372. img: b[j].img,
  14373. likesCount: likesCount,
  14374. commentCount: commentCount,
  14375. isLikes: isLikes,
  14376. commentJson: commentJson,
  14377. };
  14378. _worksStudent[i].push(_work);
  14379. _worksStudent2[i].push(_work);
  14380. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14381. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  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 == 12
  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: 12,
  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. } else if (
  14424. a[i].tool[0] == 57 &&
  14425. b[j].atool == 57 &&
  14426. b[j].type == 15
  14427. ) {
  14428. let _work = {
  14429. userid: b[j].userid,
  14430. ateacher: b[j].ateacher,
  14431. wid: b[j].id,
  14432. works: b[j].content,
  14433. sName: b[j].name ? b[j].name : b[j].userid,
  14434. type: 15,
  14435. time: b[j].time,
  14436. score: b[j].score,
  14437. img: b[j].img,
  14438. likesCount: likesCount,
  14439. commentCount: commentCount,
  14440. isLikes: isLikes,
  14441. commentJson: commentJson,
  14442. };
  14443. _worksStudent[i].push(_work);
  14444. _worksStudent2[i].push(_work);
  14445. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14446. }
  14447. }
  14448. }
  14449. if (_worksStudent[i] && _worksStudent[i].length) {
  14450. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14451. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14452. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14453. var scoreA = parseFloat(jscoreA);
  14454. var scoreB = parseFloat(jscoreB);
  14455. if (scoreA == scoreB) {
  14456. return b.likesCount - a.likesCount;
  14457. }
  14458. return scoreB - scoreA;
  14459. });
  14460. if (this.isGroup) {
  14461. for (
  14462. var groupI = 0;
  14463. groupI < this.courseGroup.group.length;
  14464. groupI++
  14465. ) {
  14466. this.courseGroup.group[groupI].works[i] =
  14467. this.courseGroup.group[groupI].works[i].sort(function (
  14468. a,
  14469. b
  14470. ) {
  14471. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14472. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14473. var scoreA = parseFloat(jscoreA);
  14474. var scoreB = parseFloat(jscoreB);
  14475. if (scoreA == scoreB) {
  14476. return b.likesCount - a.likesCount;
  14477. }
  14478. return scoreB - scoreA;
  14479. });
  14480. }
  14481. }
  14482. }
  14483. }
  14484. this.timeWorkList = _worksStudent2;
  14485. for (var i = 0; i < a.length; i++) {
  14486. for (var j = 0; j < b.length; j++) {
  14487. var data = b[j];
  14488. if (i == b[j].tool) {
  14489. if (data.type == 2 || data.type == 8) {
  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. parseInt(_worksStudent[i].length)) *
  14495. 100
  14496. );
  14497. let aaaa = this.checkJson[i][z];
  14498. for (
  14499. var k = 0;
  14500. k < this.checkJson[i][z].checkCount.length;
  14501. k++
  14502. ) {
  14503. this.checkJson[i][z].checkPerent.push(
  14504. Math.round(
  14505. (this.checkJson[i][z].checkCount[k] /
  14506. parseInt(_worksStudent[i].length)) *
  14507. 100
  14508. )
  14509. );
  14510. }
  14511. }
  14512. } else if (data.type == 9) {
  14513. for (var z = 0; z < this.checkJson[i].length; z++) {
  14514. this.checkJson[i][z].checkPerent = [];
  14515. this.checkJson[i][z].right = Math.round(
  14516. (this.checkJson[i][z].rightPerson.length /
  14517. this.checkJson[i][z].checkPerson.length) *
  14518. 100
  14519. );
  14520. }
  14521. }
  14522. }
  14523. }
  14524. }
  14525. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14526. this.joinGroup(gindex);
  14527. }
  14528. this.worksStudent = _worksStudent;
  14529. this.selectWorksStudent();
  14530. })
  14531. .catch((err) => {
  14532. console.error(err);
  14533. });
  14534. },
  14535. pngToWhiteBg(file) {
  14536. const _file = file;
  14537. let read = new FileReader();
  14538. read.readAsDataURL(file); // 文件转base64
  14539. return new Promise((resolve, reject) => {
  14540. read.onload = (e) => {
  14541. let img = new Image();
  14542. img.src = e.target.result;
  14543. img.onload = async () => {
  14544. // 生成canvas
  14545. let canvas = document.createElement("canvas");
  14546. let context = canvas.getContext("2d");
  14547. // 绘制图片到canvas上
  14548. canvas.width = img.width;
  14549. canvas.height = img.height;
  14550. // 在canvas绘制前填充白色背景
  14551. context.fillStyle = "#fff";
  14552. context.fillRect(0, 0, canvas.width, canvas.height);
  14553. context.drawImage(img, 0, 0);
  14554. let base64 = canvas.toDataURL(file["type"], 1);
  14555. let newFile = this.dataUrlToFile(base64, _file);
  14556. resolve(newFile);
  14557. };
  14558. };
  14559. });
  14560. },
  14561. dataUrlToFile(dataurl, file) {
  14562. let arr = dataurl.split(","),
  14563. mime = arr[0].match(/:(.*?);/)[1],
  14564. bstr = atob(arr[1]),
  14565. n = bstr.length,
  14566. u8arr = new Uint8Array(n);
  14567. while (n--) {
  14568. u8arr[n] = bstr.charCodeAt(n);
  14569. }
  14570. // return new Blob([u8arr], { type: mime });
  14571. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14572. type: mime,
  14573. });
  14574. },
  14575. async beforeUpload1(event, type, i) {
  14576. // this.$message.success('进入上传')
  14577. var file = "";
  14578. if (type == 5) {
  14579. file = event;
  14580. } else {
  14581. file = event.target.files[0];
  14582. }
  14583. var credentials = {
  14584. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14585. secretAccessKey: "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",
  14586. }; //秘钥形式的登录上传
  14587. window.AWS.config.update(credentials);
  14588. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14589. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14590. var _this = this;
  14591. _this.progress = 0;
  14592. _this.proVisible = true;
  14593. _this.isFinishSize = 0;
  14594. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14595. var b = [
  14596. "DOC",
  14597. "DOCX",
  14598. "DOCM",
  14599. "DOTM",
  14600. "DOTX",
  14601. "PPTX",
  14602. "PPSX",
  14603. "PPT",
  14604. "PPS",
  14605. "PPTM",
  14606. "POTM",
  14607. "PPAM",
  14608. "POTX",
  14609. "PPSM",
  14610. ];
  14611. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14612. var photoA = [
  14613. "BMP",
  14614. "GIF",
  14615. "PNG",
  14616. "JPGE",
  14617. "JPEG",
  14618. "JPG",
  14619. "TIF",
  14620. "PCX",
  14621. "TGA",
  14622. "EXIF",
  14623. "FPX",
  14624. "SVG",
  14625. "APNG",
  14626. ];
  14627. // if (
  14628. // b.indexOf(
  14629. // file.name
  14630. // .split(".")
  14631. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14632. // ) != -1
  14633. // ) {
  14634. // if (file.size / 1024 / 1024 > 10) {
  14635. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14636. // return;
  14637. // }
  14638. // } else if (
  14639. // excelA.indexOf(
  14640. // file.name
  14641. // .split(".")
  14642. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14643. // ) != "-1"
  14644. // ) {
  14645. // if (file.size / 1024 / 1024 > 5) {
  14646. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14647. // return;
  14648. // }
  14649. // }
  14650. if (
  14651. photoA.indexOf(
  14652. file.name
  14653. .split(".")
  14654. [file.name.split(".").length - 1].toLocaleUpperCase()
  14655. ) != -1 &&
  14656. type != 4
  14657. ) {
  14658. // const blob = await imageConversion.compress(file, 0.8)
  14659. file = await this.pngToWhiteBg(file);
  14660. const blob = await imageConversion.compressAccurately(file, 256);
  14661. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14662. file = new File([blob], file.name, { type: file.type });
  14663. }
  14664. if (file) {
  14665. var params = {
  14666. Key:
  14667. file.name.split(".")[0] +
  14668. new Date().getTime() +
  14669. "." +
  14670. file.name.split(".")[file.name.split(".").length - 1],
  14671. ContentType: file.type,
  14672. Body: file,
  14673. "Access-Control-Allow-Credentials": "*",
  14674. ACL: "public-read",
  14675. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14676. var options = {
  14677. // partSize: 2048 * 1024 * 1024,
  14678. partSize: 1024 * 1024 * 1024,
  14679. queueSize: 2,
  14680. leavePartsOnError: true,
  14681. };
  14682. bucket
  14683. .upload(params, options)
  14684. .on("httpUploadProgress", function (evt) {
  14685. //这里可以写进度条
  14686. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14687. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14688. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14689. })
  14690. .send(function (err, data) {
  14691. _this.progress = 100;
  14692. _this.isFinishSize = _this.isAllSize;
  14693. setTimeout(() => {
  14694. _this.proVisible = false;
  14695. }, 1000);
  14696. if (err) {
  14697. var a = _this.$refs.upload1.uploadFiles;
  14698. a.splice(a.length - 1, a.length);
  14699. _this.$message.error("上传失败");
  14700. } else {
  14701. // _this.$message.success('上传成功')
  14702. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14703. var c = [
  14704. "AVI",
  14705. "NAVI",
  14706. "MPEG",
  14707. "ASF",
  14708. "MOV",
  14709. "WMV",
  14710. "3GP",
  14711. "RM",
  14712. "RMVB",
  14713. "FLV",
  14714. "F4V",
  14715. "H.264",
  14716. "H.265",
  14717. "REAL VIDEO",
  14718. "MKV",
  14719. "WebM",
  14720. "HDDVD",
  14721. "MP4",
  14722. "MPG",
  14723. "M4V",
  14724. "MGV",
  14725. "OGV",
  14726. "QTM",
  14727. "STR",
  14728. "AMC",
  14729. "DVX",
  14730. "EVO",
  14731. "DAT",
  14732. "OGG",
  14733. "OGM",
  14734. ];
  14735. if (type == 1) {
  14736. _this.studyJuri[0].cover.push({
  14737. name: file.name,
  14738. url: data.Location,
  14739. uid: file.uid,
  14740. });
  14741. if (
  14742. c.indexOf(
  14743. _this.studyJuri[0].cover[0].url
  14744. .split(".")
  14745. [
  14746. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14747. ].toLocaleUpperCase()
  14748. ) != -1
  14749. ) {
  14750. _this.fileType = 2;
  14751. } else if (
  14752. b.indexOf(
  14753. _this.studyJuri[0].cover[0].url
  14754. .split(".")
  14755. [
  14756. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14757. ].toLocaleUpperCase()
  14758. ) != -1
  14759. ) {
  14760. _this.fileType = 1;
  14761. } else if (
  14762. photoA.indexOf(
  14763. _this.studyJuri[0].cover[0].url
  14764. .split(".")
  14765. [
  14766. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14767. ].toLocaleUpperCase()
  14768. ) != -1
  14769. ) {
  14770. _this.fileType = 0;
  14771. } else {
  14772. _this.fileType = 3;
  14773. }
  14774. _this.imgChange(null, null, type);
  14775. } else if (type == 2) {
  14776. _this.upToolImg = data.Location;
  14777. _this.imgChange(null, null, type);
  14778. _this.addCourseWorks(i);
  14779. } else if (type == 4) {
  14780. _this.addPz("3", data.Location);
  14781. } else if (type == 5) {
  14782. _this.addImgDrawImG(data.Location);
  14783. } else if (type == 6) {
  14784. var _ftype = 1;
  14785. if (
  14786. c.indexOf(
  14787. data.Location.split(".")[
  14788. data.Location.split(".").length - 1
  14789. ].toLocaleUpperCase()
  14790. ) != -1
  14791. ) {
  14792. _ftype = 5;
  14793. } else if (
  14794. b.indexOf(
  14795. data.Location.split(".")[
  14796. data.Location.split(".").length - 1
  14797. ].toLocaleUpperCase()
  14798. ) != -1
  14799. ) {
  14800. _ftype = 4;
  14801. } else {
  14802. _ftype = 1;
  14803. }
  14804. _this.plworkFile.push({
  14805. name: file.name,
  14806. url: data.Location,
  14807. uid: file.uid,
  14808. fileType: _ftype,
  14809. username:
  14810. _this.plworkFile.length > 10
  14811. ? _this.plworkFile.length + 1
  14812. : "0" + (_this.plworkFile.length + 1),
  14813. });
  14814. } else if (type == 7) {
  14815. _this.addCourseWorksGong(i, data.Location, 32);
  14816. } else if (type == 8) {
  14817. _this.addCourseWorksGong(i, data.Location, 57);
  14818. }
  14819. _this.imgChange(null, null, type);
  14820. console.log(data.Location);
  14821. // _this.$message.success('上传成功'+data.Location)
  14822. }
  14823. });
  14824. }
  14825. },
  14826. async beforeUpload3(event, type, i) {
  14827. // this.$message.success('进入上传')
  14828. let file = "";
  14829. let cfindex2 = 0;
  14830. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14831. file = event.target.files[cfindex];
  14832. var credentials = {
  14833. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14834. secretAccessKey: "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",
  14835. }; //秘钥形式的登录上传
  14836. window.AWS.config.update(credentials);
  14837. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14838. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14839. var _this = this;
  14840. // _this.progress = 0;
  14841. _this.proVisible2 = true;
  14842. var b = [
  14843. "DOC",
  14844. "DOCX",
  14845. "DOCM",
  14846. "DOTM",
  14847. "DOTX",
  14848. "PPTX",
  14849. "PPSX",
  14850. "PPT",
  14851. "PPS",
  14852. "PPTM",
  14853. "POTM",
  14854. "PPAM",
  14855. "POTX",
  14856. "PPSM",
  14857. ];
  14858. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14859. var photoA = [
  14860. "BMP",
  14861. "GIF",
  14862. "PNG",
  14863. "JPGE",
  14864. "JPG",
  14865. "TIF",
  14866. "PCX",
  14867. "TGA",
  14868. "EXIF",
  14869. "FPX",
  14870. "SVG",
  14871. "APNG",
  14872. ];
  14873. if (
  14874. photoA.indexOf(
  14875. file.name
  14876. .split(".")
  14877. [file.name.split(".").length - 1].toLocaleUpperCase()
  14878. ) != -1 &&
  14879. type != 4
  14880. ) {
  14881. // const blob = await imageConversion.compress(file, 0.8)
  14882. file = await this.pngToWhiteBg(file);
  14883. const blob = await imageConversion.compressAccurately(file, 256);
  14884. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14885. file = new File([blob], file.name, { type: file.type });
  14886. }
  14887. if (file) {
  14888. var params = {
  14889. Key:
  14890. file.name.split(".")[0] +
  14891. new Date().getTime() +
  14892. "." +
  14893. file.name.split(".")[file.name.split(".").length - 1],
  14894. ContentType: file.type,
  14895. Body: file,
  14896. "Access-Control-Allow-Credentials": "*",
  14897. ACL: "public-read",
  14898. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14899. var options = {
  14900. // partSize: 2048 * 1024 * 1024,
  14901. partSize: 1024 * 1024 * 1024,
  14902. queueSize: 2,
  14903. leavePartsOnError: true,
  14904. };
  14905. bucket
  14906. .upload(params, options)
  14907. .on("httpUploadProgress", function (evt) {
  14908. //这里可以写进度条
  14909. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14910. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14911. })
  14912. .send(function (err, data) {
  14913. // _this.progress = 100;
  14914. cfindex2++;
  14915. setTimeout(() => {
  14916. if (
  14917. cfindex2 == event.target.files.length - 1 ||
  14918. cfindex2 > event.target.files.length - 1
  14919. ) {
  14920. _this.proVisible2 = false;
  14921. }
  14922. }, 1000);
  14923. if (err) {
  14924. var a = _this.$refs.upload1.uploadFiles;
  14925. a.splice(a.length - 1, a.length);
  14926. _this.$message.error("上传失败");
  14927. } else {
  14928. // _this.$message.success('上传成功')
  14929. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14930. var c = [
  14931. "AVI",
  14932. "NAVI",
  14933. "MPEG",
  14934. "ASF",
  14935. "MOV",
  14936. "WMV",
  14937. "3GP",
  14938. "RM",
  14939. "RMVB",
  14940. "FLV",
  14941. "F4V",
  14942. "H.264",
  14943. "H.265",
  14944. "REAL VIDEO",
  14945. "MKV",
  14946. "WebM",
  14947. "HDDVD",
  14948. "MP4",
  14949. "MPG",
  14950. "M4V",
  14951. "MGV",
  14952. "OGV",
  14953. "QTM",
  14954. "STR",
  14955. "AMC",
  14956. "DVX",
  14957. "EVO",
  14958. "DAT",
  14959. "OGG",
  14960. "OGM",
  14961. ];
  14962. if (type == 1) {
  14963. _this.studyJuri[0].cover.push({
  14964. name: file.name,
  14965. url: data.Location,
  14966. uid: file.uid,
  14967. });
  14968. if (
  14969. c.indexOf(
  14970. _this.studyJuri[0].cover[0].url
  14971. .split(".")
  14972. [
  14973. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14974. ].toLocaleUpperCase()
  14975. ) != -1
  14976. ) {
  14977. _this.fileType = 2;
  14978. } else if (
  14979. b.indexOf(
  14980. _this.studyJuri[0].cover[0].url
  14981. .split(".")
  14982. [
  14983. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14984. ].toLocaleUpperCase()
  14985. ) != -1
  14986. ) {
  14987. _this.fileType = 1;
  14988. } else {
  14989. _this.fileType = 0;
  14990. }
  14991. _this.imgChange(null, null, type);
  14992. } else if (type == 2) {
  14993. _this.upToolImg = data.Location;
  14994. _this.imgChange(null, null, type);
  14995. _this.addCourseWorks(i);
  14996. } else if (type == 4) {
  14997. _this.addPz("3", data.Location);
  14998. } else if (type == 5) {
  14999. _this.addImgDrawImG(data.Location);
  15000. } else if (type == 6) {
  15001. var _ftype = 1;
  15002. if (
  15003. c.indexOf(
  15004. data.Location.split(".")[
  15005. data.Location.split(".").length - 1
  15006. ].toLocaleUpperCase()
  15007. ) != -1
  15008. ) {
  15009. _ftype = 5;
  15010. } else if (
  15011. b.indexOf(
  15012. data.Location.split(".")[
  15013. data.Location.split(".").length - 1
  15014. ].toLocaleUpperCase()
  15015. ) != -1
  15016. ) {
  15017. _ftype = 4;
  15018. } else {
  15019. _ftype = 1;
  15020. }
  15021. _this.plworkFile.push({
  15022. name: file.name,
  15023. url: data.Location,
  15024. uid: file.uid,
  15025. fileType: _ftype,
  15026. username:
  15027. _this.plworkFile.length + 1 > 9
  15028. ? _this.plworkFile.length + 1
  15029. : "0" + (_this.plworkFile.length + 1),
  15030. });
  15031. }
  15032. _this.imgChange(null, null, type);
  15033. console.log(data.Location);
  15034. // _this.$message.success('上传成功'+data.Location)
  15035. }
  15036. });
  15037. }
  15038. }
  15039. },
  15040. beforeUpload2(event, type) {
  15041. var file = event.target.files[0];
  15042. var credentials = {
  15043. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15044. secretAccessKey: "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",
  15045. }; //秘钥形式的登录上传
  15046. window.AWS.config.update(credentials);
  15047. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15048. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15049. var _this = this;
  15050. _this.progress = 0;
  15051. _this.proVisible = true;
  15052. if (file) {
  15053. var params = {
  15054. Key:
  15055. file.name.split(".")[0] +
  15056. new Date().getTime() +
  15057. "." +
  15058. file.name.split(".")[file.name.split(".").length - 1],
  15059. ContentType: file.type,
  15060. Body: file,
  15061. "Access-Control-Allow-Credentials": "*",
  15062. ACL: "public-read",
  15063. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15064. var options = {
  15065. partSize: 2048 * 1024 * 1024,
  15066. queueSize: 2,
  15067. leavePartsOnError: true,
  15068. };
  15069. bucket
  15070. .upload(params, options)
  15071. .on("httpUploadProgress", function (evt) {
  15072. //这里可以写进度条
  15073. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15074. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15075. })
  15076. .send(function (err, data) {
  15077. _this.progress = 100;
  15078. setTimeout(() => {
  15079. _this.proVisible = false;
  15080. }, 1000);
  15081. if (err) {
  15082. var a = _this.$refs.upload1.uploadFiles;
  15083. a.splice(a.length - 1, a.length);
  15084. _this.$message.error("上传失败");
  15085. } else {
  15086. if (type == 2) {
  15087. _this.studyJuri[0].upVedio.push({
  15088. name: file.name,
  15089. url: data.Location,
  15090. uid: file.uid,
  15091. });
  15092. _this.imgChange(null, null, type);
  15093. } else if (type == 3) {
  15094. _this.studyJuri[0].upFile.push({
  15095. name: file.name,
  15096. url: data.Location,
  15097. uid: file.uid,
  15098. });
  15099. _this.imgChange(null, null, type);
  15100. }
  15101. console.log(data.Location);
  15102. }
  15103. });
  15104. }
  15105. },
  15106. allScrell() {
  15107. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15108. },
  15109. nextOrpreSteps(t) {
  15110. if (this.IsFollow && this.tType == 2) {
  15111. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15112. return;
  15113. }
  15114. var b = this.chapInfoList.length - 1;
  15115. if (t == 0) {
  15116. if (this.courseType == 0) {
  15117. if (this.taskCount == 0) {
  15118. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15119. if (this.IsLookOpen) {
  15120. if (
  15121. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15122. ) {
  15123. if (
  15124. this.courseDetail.userid != this.userid &&
  15125. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15126. ) {
  15127. this.$message.error("任务未解锁");
  15128. } else {
  15129. this.$message.error("上一任务未解锁");
  15130. }
  15131. return;
  15132. }
  15133. }
  15134. this.navList[this.courseType].isOpen = false;
  15135. this.courseType = b;
  15136. this.taskCount =
  15137. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15138. .length - 1;
  15139. this.navList[this.courseType].isOpen = true;
  15140. } else {
  15141. this.taskCount--;
  15142. }
  15143. } else {
  15144. if (this.taskCount == 0) {
  15145. this.navList[this.courseType].isOpen = false;
  15146. this.courseType--;
  15147. this.taskCount =
  15148. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15149. .length - 1;
  15150. this.navList[this.courseType].isOpen = true;
  15151. } else {
  15152. this.taskCount--;
  15153. }
  15154. }
  15155. } else {
  15156. if (this.courseType == b) {
  15157. if (
  15158. this.taskCount ==
  15159. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15160. 1
  15161. ) {
  15162. this.navList[this.courseType].isOpen = false;
  15163. this.courseType = 0;
  15164. this.taskCount = 0;
  15165. this.navList[this.courseType].isOpen = true;
  15166. } else {
  15167. var bbb = parseInt(this.taskCount) + 1;
  15168. if (
  15169. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15170. .isLook &&
  15171. this.courseDetail.userid != this.userid &&
  15172. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15173. this.IsLookOpen
  15174. ) {
  15175. this.$message.error("任务未解锁");
  15176. return;
  15177. }
  15178. this.taskCount++;
  15179. if (this.IsLookOpen) {
  15180. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15181. this.taskCount
  15182. ].isLook = true;
  15183. this.addCourseState(3);
  15184. }
  15185. }
  15186. } else {
  15187. if (
  15188. this.taskCount ==
  15189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15190. 1
  15191. ) {
  15192. var bbb = parseInt(this.courseType) + 1;
  15193. if (
  15194. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15195. this.courseDetail.userid != this.userid &&
  15196. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15197. this.IsLookOpen
  15198. ) {
  15199. this.$message.error("任务未解锁");
  15200. return;
  15201. }
  15202. this.navList[this.courseType].isOpen = false;
  15203. this.courseType++;
  15204. this.taskCount = 0;
  15205. this.navList[this.courseType].isOpen = true;
  15206. } else {
  15207. var bbb = parseInt(this.taskCount) + 1;
  15208. if (
  15209. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15210. .isLook &&
  15211. this.courseDetail.userid != this.userid &&
  15212. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15213. this.IsLookOpen
  15214. ) {
  15215. this.$message.error("任务未解锁");
  15216. return;
  15217. }
  15218. this.taskCount++;
  15219. }
  15220. if (this.IsLookOpen) {
  15221. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15222. this.taskCount
  15223. ].isLook = true;
  15224. this.addCourseState(3);
  15225. }
  15226. }
  15227. // if (
  15228. // this.taskCount ==
  15229. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15230. // ) {
  15231. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15232. // } else {
  15233. // this.taskCount++;
  15234. // }
  15235. }
  15236. document.scrollingElement.scrollTop = 0;
  15237. this.showType = 0;
  15238. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15239. // if (this.vedio[this.taskCount].length > 0) {
  15240. // var a =
  15241. // document.getElementsByClassName("box_course")[this.taskCount]
  15242. // .offsetHeight;
  15243. // document.getElementsByClassName("vedioList")[
  15244. // this.taskCount
  15245. // ].style.height = a + "px";
  15246. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15247. // a - 40 + "px";
  15248. // }
  15249. this.isNoHomeWork = false;
  15250. (this.studyJuri = [
  15251. {
  15252. content: "",
  15253. cover: [],
  15254. upVedio: [],
  15255. upFile: [],
  15256. },
  15257. ]),
  15258. (this.radio = []);
  15259. this.isClickNav = "";
  15260. this.selectPz();
  15261. this.getHomeWork();
  15262. this.getCourseDetail(2);
  15263. this.$forceUpdate();
  15264. },
  15265. openTask(s, n, i) {
  15266. if (this.IsFollow && this.tType == 2) {
  15267. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15268. return;
  15269. }
  15270. if (this.IsLookOpen) {
  15271. if (
  15272. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15273. this.courseDetail.userid != this.userid &&
  15274. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15275. ) {
  15276. this.$message.error("任务未解锁");
  15277. return;
  15278. }
  15279. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15280. if (
  15281. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15282. .isLook
  15283. ) {
  15284. this.$message.error("上一任务未解锁");
  15285. return;
  15286. }
  15287. } else if (s > this.courseType) {
  15288. if (n > 0) {
  15289. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15290. this.$message.error("上一任务未解锁");
  15291. return;
  15292. }
  15293. } else {
  15294. if (
  15295. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15296. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15297. ].isLook
  15298. ) {
  15299. this.$message.error("上一任务未解锁");
  15300. return;
  15301. }
  15302. }
  15303. }
  15304. }
  15305. if (this.navList[s].task[n].isOpen == true) {
  15306. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15307. return;
  15308. }
  15309. this.courseType = s;
  15310. this.navId = i;
  15311. this.taskCount = n;
  15312. this.navList[this.courseType].task[this.taskCount].isOpen =
  15313. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15314. if (this.IsLookOpen) {
  15315. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15316. this.taskCount
  15317. ].isLook = true;
  15318. this.addCourseState(3);
  15319. }
  15320. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15321. this.isCloseList[ci].isClose = 0;
  15322. }
  15323. this.showType = 0;
  15324. this.isNoHomeWork = false;
  15325. (this.studyJuri = [
  15326. {
  15327. content: "",
  15328. cover: [],
  15329. upVedio: [],
  15330. upFile: [],
  15331. },
  15332. ]),
  15333. (this.radio = []);
  15334. document.scrollingElement.scrollTop = 0;
  15335. // setTimeout(() => {
  15336. // let a = document.getElementById(i);
  15337. // if (a.offsetTop - 110 == 0) {
  15338. // window.scrollTo(0, 0);
  15339. // } else {
  15340. // window.scrollTo(0, a.offsetTop);
  15341. // }
  15342. // }, 0);
  15343. this.selectPz();
  15344. this.getHomeWork();
  15345. this.getCourseDetail(2);
  15346. },
  15347. get(i) {
  15348. if (this.IsFollow && this.tType == 2) {
  15349. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15350. return;
  15351. }
  15352. // for(var k=0;k<this.navList.length;k++){
  15353. // this.navList[k].isOpen = false;
  15354. // }
  15355. // this.navList[i].isOpen = true;
  15356. this.navList[i].isOpen = !this.navList[i].isOpen;
  15357. if (this.navList[i].isOpen) {
  15358. this.openTask(i, 0, i + "-0");
  15359. }
  15360. },
  15361. addQuestion() {
  15362. this.answerList.push({
  15363. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15364. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15365. });
  15366. let params = [
  15367. {
  15368. uid: this.userid,
  15369. cid: this.id,
  15370. stage: this.courseType,
  15371. task: this.taskCount,
  15372. tool: this.toolindex,
  15373. content: JSON.stringify(this.answerList),
  15374. type: 3,
  15375. },
  15376. ];
  15377. this.ajax
  15378. .post(this.$store.state.api + "addCourseWorks", params)
  15379. .then((res) => {
  15380. this.$message({
  15381. message: "提交成功",
  15382. type: "success",
  15383. });
  15384. this.answerList = [];
  15385. this.answerDialogVisible = false;
  15386. this.selectStudent();
  15387. this.selectSWorks();
  15388. this.selectSLook();
  15389. })
  15390. .catch((err) => {
  15391. this.$message.error("提交失败");
  15392. console.error(err);
  15393. });
  15394. },
  15395. addQuestionTeacher() {
  15396. this.answerList.push({
  15397. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15398. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15399. });
  15400. let params = [
  15401. {
  15402. uid: this.sStudent.userid,
  15403. cid: this.id,
  15404. stage: this.courseType,
  15405. task: this.taskCount,
  15406. tool: this.toolindex,
  15407. content: JSON.stringify(this.answerList),
  15408. type: 3,
  15409. ateacher: this.userid,
  15410. },
  15411. ];
  15412. this.ajax
  15413. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15414. .then((res) => {
  15415. this.$message({
  15416. message: "提交成功",
  15417. type: "success",
  15418. });
  15419. this.answerList = [];
  15420. this.questionAnswer = "";
  15421. this.answerDialogVisibleTeacher = false;
  15422. this.selectStudent();
  15423. this.selectSWorks();
  15424. this.selectSLook();
  15425. })
  15426. .catch((err) => {
  15427. this.$message.error("提交失败");
  15428. console.error(err);
  15429. });
  15430. },
  15431. refreshCourse() {
  15432. // window.location.reload();
  15433. this.navList = [];
  15434. this.getCourseDetail(1);
  15435. },
  15436. getCourseDetail(type, gindex) {
  15437. let loading;
  15438. if (type != 2) {
  15439. loading = this.$loading.service({
  15440. background: "rgba(255, 255, 255, 0.7)",
  15441. target: document.querySelector(".student_table"),
  15442. });
  15443. }
  15444. // this.navList[0].isOpen = false;
  15445. // this.navList[this.courseType].isOpen = true;
  15446. // this.courseType = this.courseTypeLine;
  15447. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15448. let params = {
  15449. courseId: this.id,
  15450. };
  15451. this.ajax
  15452. .get(this.$store.state.api + "selectCourseDetail3", params)
  15453. .then((res) => {
  15454. if (type != 2) {
  15455. loading.close();
  15456. if (
  15457. this.courseType >
  15458. JSON.parse(res.data[0][0].chapters).length - 1
  15459. ) {
  15460. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15461. }
  15462. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15463. .chapterInfo[0].taskJson;
  15464. var b = [
  15465. "AVI",
  15466. "NAVI",
  15467. "MPEG",
  15468. "ASF",
  15469. "MOV",
  15470. "WMV",
  15471. "3GP",
  15472. "RM",
  15473. "RMVB",
  15474. "FLV",
  15475. "F4V",
  15476. "H.264",
  15477. "H.265",
  15478. "REAL VIDEO",
  15479. "MKV",
  15480. "WebM",
  15481. "HDDVD",
  15482. "MP4",
  15483. "MPG",
  15484. "M4V",
  15485. "MGV",
  15486. "OGV",
  15487. "QTM",
  15488. "STR",
  15489. "AMC",
  15490. "DVX",
  15491. "EVO",
  15492. "DAT",
  15493. "OGG",
  15494. "OGM",
  15495. "MP3",
  15496. ];
  15497. let _chapterData = [];
  15498. for (var i = 0; i < a.length; i++) {
  15499. var c = a[i].chapterData;
  15500. this.vedio[i] = [];
  15501. this.textList[i] = [];
  15502. this.lineList[i] = [];
  15503. this.chapToolList[i] = [];
  15504. this.file[i] = [];
  15505. this.fileC[i] = [];
  15506. _chapterData[i] = c.filter((el) => {
  15507. return el.type != 12;
  15508. });
  15509. this.fileC[i] = c.filter((el) => {
  15510. return el.type == 12;
  15511. });
  15512. // else if (c[j].type == 12) {
  15513. // this.fileC[i].push(c[j]);
  15514. // }
  15515. for (var j = 0; j < c.length; j++) {
  15516. if (c[j].type == 7) {
  15517. this.chapToolList[i].push(c[j]);
  15518. } else if (c[j].type == 8 || c[j].type == 14) {
  15519. this.lineList[i].push(c[j]);
  15520. } else if (c[j].type == 6) {
  15521. this.textList[i].push(c[j]);
  15522. } else {
  15523. if (
  15524. b.indexOf(
  15525. c[j].url
  15526. .split(".")
  15527. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15528. ) != -1
  15529. ) {
  15530. this.vedio[i].push(c[j]);
  15531. } else {
  15532. this.file[i].push(c[j]);
  15533. }
  15534. }
  15535. }
  15536. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15537. d.sources[0].src =
  15538. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15539. this.playerO[i] = d;
  15540. }
  15541. this.courseDetail = res.data[0][0];
  15542. this.tcid = this.arrayToArray(
  15543. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15544. this.tcid2 ? this.tcid2.split(",") : []
  15545. ).join(",");
  15546. this.evalua = res.data[0][0].evaId;
  15547. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15548. this.courseType
  15549. ];
  15550. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15551. if (this.tcid && res.data[1].length) {
  15552. let _inviteA = [];
  15553. for (var ik = 0; ik < res.data[1].length; ik++) {
  15554. _inviteA.push({
  15555. cid: res.data[1][ik].classid,
  15556. ic: res.data[1][ik].code,
  15557. });
  15558. }
  15559. for (var ik = 0; ik < _inviteA.length; ik++) {
  15560. if (
  15561. this.arrayToArray(
  15562. _inviteA[ik].cid.split(","),
  15563. this.tcid.split(",")
  15564. ).length
  15565. ) {
  15566. this.inviteCode = _inviteA[ik].ic;
  15567. break;
  15568. }
  15569. }
  15570. }
  15571. for (var l = 0; l < this.chapInfoList.length; l++) {
  15572. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15573. for (var m = 0; m < w.length; m++) {
  15574. w[m].id = l + "-" + m;
  15575. }
  15576. }
  15577. let taskCount = 0;
  15578. if (
  15579. _chapterData[taskCount].length &&
  15580. _chapterData[taskCount][0].type == 2
  15581. ) {
  15582. this.showType = 0;
  15583. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15584. } else {
  15585. if (_chapterData[taskCount].length > 0) {
  15586. let _url = _chapterData[taskCount][0].url;
  15587. if (
  15588. _chapterData[taskCount][0].type == 8 ||
  15589. _chapterData[taskCount][0].type == 14
  15590. ) {
  15591. this.showType = 2;
  15592. if (
  15593. _url.indexOf("https://") == -1 &&
  15594. _url.indexOf("http://") == -1
  15595. ) {
  15596. _url = "https://" + _url;
  15597. }
  15598. this.pptImgUrl1 = _url;
  15599. } else if (_chapterData[taskCount][0].type == 3) {
  15600. if (
  15601. _url
  15602. .split(".")
  15603. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15604. ) {
  15605. this.showType = 3;
  15606. this.pptImgUrl1 = _url;
  15607. } else if (
  15608. this.isAssetTypeAnImage(
  15609. _url
  15610. .split(".")
  15611. [_url.split(".").length - 1].toLocaleLowerCase()
  15612. )
  15613. ) {
  15614. this.showType = 4;
  15615. this.pptImgUrl1 = _url;
  15616. } else {
  15617. this.showType = 2;
  15618. this.pptImgUrl1 =
  15619. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15620. _url;
  15621. }
  15622. } else if (_chapterData[taskCount][0].type == 13) {
  15623. this.showType = 4;
  15624. this.pptImgUrl1 = _url;
  15625. } else if (_chapterData[taskCount][0].type == 6) {
  15626. this.showType = 1;
  15627. this.text = this.textList[taskCount][0];
  15628. }
  15629. }
  15630. }
  15631. this.isClickNav = 0;
  15632. if (
  15633. !_chapterData[taskCount].length ||
  15634. _chapterData[taskCount][0].type == 12
  15635. ) {
  15636. this.isClickNav = "";
  15637. this.showType = "";
  15638. }
  15639. this.vChapterData = _chapterData;
  15640. } else {
  15641. this.showType = 0;
  15642. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15643. .chapterInfo[0].taskJson;
  15644. var b = [
  15645. "AVI",
  15646. "NAVI",
  15647. "MPEG",
  15648. "ASF",
  15649. "MOV",
  15650. "WMV",
  15651. "3GP",
  15652. "RM",
  15653. "RMVB",
  15654. "FLV",
  15655. "F4V",
  15656. "H.264",
  15657. "H.265",
  15658. "REAL VIDEO",
  15659. "MKV",
  15660. "WebM",
  15661. "HDDVD",
  15662. "MP4",
  15663. "MPG",
  15664. "M4V",
  15665. "MGV",
  15666. "OGV",
  15667. "QTM",
  15668. "STR",
  15669. "AMC",
  15670. "DVX",
  15671. "EVO",
  15672. "DAT",
  15673. "OGG",
  15674. "OGM",
  15675. "MP3",
  15676. ];
  15677. let _chapterData = [];
  15678. for (var i = 0; i < a.length; i++) {
  15679. var c = a[i].chapterData;
  15680. this.vedio[i] = [];
  15681. this.textList[i] = [];
  15682. this.lineList[i] = [];
  15683. this.chapToolList[i] = [];
  15684. this.file[i] = [];
  15685. this.fileC[i] = [];
  15686. _chapterData[i] = c.filter((el) => {
  15687. return el.type != 12;
  15688. });
  15689. this.fileC[i] = c.filter((el) => {
  15690. return el.type == 12;
  15691. });
  15692. for (var j = 0; j < c.length; j++) {
  15693. if (c[j].type == 7) {
  15694. this.chapToolList[i].push(c[j]);
  15695. } else if (c[j].type == 8 || c[j].type == 14) {
  15696. this.lineList[i].push(c[j]);
  15697. } else if (c[j].type == 6) {
  15698. this.textList[i].push(c[j]);
  15699. } else {
  15700. if (
  15701. b.indexOf(
  15702. c[j].url
  15703. .split(".")
  15704. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15705. ) != -1
  15706. ) {
  15707. this.vedio[i].push(c[j]);
  15708. } else {
  15709. this.file[i].push(c[j]);
  15710. }
  15711. }
  15712. }
  15713. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15714. d.sources[0].src =
  15715. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15716. this.playerO[i] = d;
  15717. }
  15718. let taskCount = 0;
  15719. if (
  15720. _chapterData[taskCount].length &&
  15721. _chapterData[taskCount][0].type == 2
  15722. ) {
  15723. this.showType = 0;
  15724. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15725. } else {
  15726. if (_chapterData[taskCount].length > 0) {
  15727. let _url = _chapterData[taskCount][0].url;
  15728. if (
  15729. _chapterData[taskCount][0].type == 8 ||
  15730. _chapterData[taskCount][0].type == 14
  15731. ) {
  15732. this.showType = 2;
  15733. if (
  15734. _url.indexOf("https://") == -1 &&
  15735. _url.indexOf("http://") == -1
  15736. ) {
  15737. _url = "https://" + _url;
  15738. }
  15739. this.pptImgUrl1 = _url;
  15740. } else if (_chapterData[taskCount][0].type == 3) {
  15741. if (
  15742. _url
  15743. .split(".")
  15744. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15745. ) {
  15746. this.showType = 3;
  15747. this.pptImgUrl1 = _url;
  15748. } else if (
  15749. this.isAssetTypeAnImage(
  15750. _url
  15751. .split(".")
  15752. [_url.split(".").length - 1].toLocaleLowerCase()
  15753. )
  15754. ) {
  15755. this.showType = 4;
  15756. this.pptImgUrl1 = _url;
  15757. } else {
  15758. this.showType = 2;
  15759. this.pptImgUrl1 =
  15760. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15761. _url;
  15762. }
  15763. } else if (_chapterData[taskCount][0].type == 13) {
  15764. this.showType = 4;
  15765. this.pptImgUrl1 = _url;
  15766. } else if (_chapterData[taskCount][0].type == 6) {
  15767. this.showType = 1;
  15768. this.text = this.textList[taskCount][0];
  15769. }
  15770. }
  15771. }
  15772. this.isClickNav = 0;
  15773. if (
  15774. !_chapterData[taskCount].length ||
  15775. _chapterData[taskCount][0].type == 12
  15776. ) {
  15777. this.isClickNav = "";
  15778. this.showType = "";
  15779. }
  15780. this.vChapterData = _chapterData;
  15781. this.$forceUpdate();
  15782. }
  15783. // else {
  15784. // this.courseDetail = res.data[0][0];
  15785. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15786. // }
  15787. let _this = this;
  15788. if (_this.timer) {
  15789. clearInterval(_this.timer);
  15790. _this.timer = null;
  15791. }
  15792. if (_this.tcid) {
  15793. _this.getCourseGroup(gindex);
  15794. } else {
  15795. _this.selectSWorks(gindex);
  15796. }
  15797. _this.selectStudent();
  15798. _this.selectSLook();
  15799. _this.getPick();
  15800. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15801. _this.setCTask();
  15802. }
  15803. if (_this.dialogVisibleGroup) {
  15804. _this.groupJson =
  15805. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15806. _this.taskCount
  15807. ].toolChoose[_this.toolindex].groupJson;
  15808. }
  15809. _this.$nextTick(() => {
  15810. setTimeout(() => {
  15811. _this.checkEva();
  15812. }, 1000);
  15813. });
  15814. _this.timer = setInterval(function () {
  15815. // _this.getCourseDetail(2);
  15816. if (_this.tcid) {
  15817. _this.getCourseGroup(gindex);
  15818. } else {
  15819. _this.selectSWorks(gindex);
  15820. }
  15821. _this.selectStudent();
  15822. _this.selectSLook();
  15823. _this.getPick();
  15824. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15825. _this.setCTask();
  15826. }
  15827. if (_this.dialogVisibleGroup) {
  15828. _this.groupJson =
  15829. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15830. _this.taskCount
  15831. ].toolChoose[_this.toolindex].groupJson;
  15832. }
  15833. if (_this.tType == 4 || _this.ispzType == 4) {
  15834. _this.selectPz();
  15835. }
  15836. }, 5000);
  15837. _this.$nextTick(function () {
  15838. setTimeout(() => {
  15839. // var a =
  15840. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15841. // document.getElementsByClassName("vedioList")[0].style.height =
  15842. // a + "px";
  15843. // document.getElementsByClassName("navBox")[0].style.height =
  15844. // a - 40 + "px";
  15845. // if (_this.vedio[_this.taskCount].length > 0) {
  15846. // _this.vedioTime = [];
  15847. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15848. // _this.vedioTime[i] = document.getElementsByClassName(
  15849. // "vjs-duration-display"
  15850. // )[i].textContent;
  15851. // }
  15852. // }
  15853. }, 1000);
  15854. });
  15855. })
  15856. .catch((err) => {
  15857. loading.close();
  15858. console.error(err);
  15859. });
  15860. },
  15861. getCourseGroup(gindex) {
  15862. let params = {
  15863. cid: this.id,
  15864. classid: this.tcid ? this.tcid : "1",
  15865. };
  15866. this.ajax
  15867. .get(this.$store.state.api + "getCourseGroup", params)
  15868. .then((res) => {
  15869. if (res.data && res.data[0].length) {
  15870. if (!this.isGroup) {
  15871. let courseGroup = JSON.parse(res.data[0][0].group);
  15872. courseGroup.group = courseGroup.group.filter((el) => {
  15873. el.works = [];
  15874. return el;
  15875. });
  15876. if (courseGroup.isopen == 2) {
  15877. this.isGroup = false;
  15878. this.selectSWorks(gindex);
  15879. return;
  15880. }
  15881. this.courseGroup = courseGroup;
  15882. let groupPerson = res.data[1];
  15883. let group = JSON.parse(res.data[0][0].group).group;
  15884. let courseGroupStudent = {};
  15885. let courseGroupStudentUid = {};
  15886. for (var i = 0; i < group.length; i++) {
  15887. courseGroupStudent[group[i].id] = [];
  15888. courseGroupStudentUid[group[i].id] = [];
  15889. for (var j = 0; j < groupPerson.length; j++) {
  15890. if (groupPerson[j].groupCid == group[i].id) {
  15891. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15892. courseGroupStudentUid[group[i].id].push(
  15893. groupPerson[j].userid
  15894. );
  15895. }
  15896. }
  15897. }
  15898. this.courseGroupStudent = courseGroupStudent;
  15899. this.courseGroupStudentUid = courseGroupStudentUid;
  15900. }
  15901. if (this.courseGroup.isopen == 2) {
  15902. this.isGroup = false;
  15903. } else {
  15904. this.isGroup = true;
  15905. }
  15906. this.selectSWorks(gindex);
  15907. } else {
  15908. this.selectSWorks(gindex);
  15909. this.isGroup = false;
  15910. }
  15911. })
  15912. .catch((err) => {
  15913. // this.$message.error("网络不佳");
  15914. console.error(err);
  15915. });
  15916. },
  15917. setOperationTime() {
  15918. let _this = this;
  15919. if (_this.opertimer) {
  15920. clearInterval(_this.opertimer);
  15921. _this.opertimer = null;
  15922. }
  15923. _this.opertimer = setInterval(() => {
  15924. _this.setoTime("600");
  15925. }, 600000);
  15926. },
  15927. setoTime(time) {
  15928. let params = [
  15929. {
  15930. uid: this.userid,
  15931. cid: this.id,
  15932. type: "2",
  15933. time: time,
  15934. },
  15935. ];
  15936. this.ajax
  15937. .post(this.$store.state.api + "addOperationTimeT2", params)
  15938. .then((res) => {})
  15939. .catch((err) => {
  15940. console.error(err);
  15941. });
  15942. },
  15943. addPz(type, content) {
  15944. if (type == "1" && this.pzConText == "") {
  15945. this.$message.error("批注不能为空!");
  15946. return;
  15947. }
  15948. let params = [
  15949. {
  15950. cid: this.id,
  15951. uid: this.userid,
  15952. s: this.courseType,
  15953. t: this.taskCount,
  15954. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15955. type: type,
  15956. },
  15957. ];
  15958. this.ajax
  15959. .post(this.$store.state.api + "addPz2", params)
  15960. .then((res) => {
  15961. this.$message({
  15962. message: "添加成功",
  15963. type: "success",
  15964. });
  15965. this.pzConText = "";
  15966. this.addPzDialog = false;
  15967. this.selectPz();
  15968. })
  15969. .catch((err) => {
  15970. this.$message.error("添加失败");
  15971. console.error(err);
  15972. });
  15973. },
  15974. setReplyIndex(id, i) {
  15975. this.replyIndex = i;
  15976. this.replyPid = id;
  15977. this.replyDialogVisible = true;
  15978. },
  15979. addHf() {
  15980. if (this.reply == "") {
  15981. this.$message.error("回复不能为空!");
  15982. return;
  15983. }
  15984. let params = [
  15985. {
  15986. cid: this.id,
  15987. uid: this.userid,
  15988. s: this.courseType,
  15989. t: this.taskCount,
  15990. type: "1",
  15991. ct: 2,
  15992. pid: this.replyPid,
  15993. c: this.reply.replaceAll(/%/g, "%25"),
  15994. },
  15995. ];
  15996. this.ajax
  15997. .post(this.$store.state.api + "addHf", params)
  15998. .then((res) => {
  15999. this.reply = "";
  16000. this.$message({
  16001. message: "回复成功",
  16002. type: "success",
  16003. });
  16004. this.replyDialogVisible = false;
  16005. this.selectPz();
  16006. })
  16007. .catch((err) => {
  16008. this.$message.error("回复失败");
  16009. console.error(err);
  16010. });
  16011. },
  16012. deletePz(id) {
  16013. this.$confirm("确定删除此批注吗?", "提示", {
  16014. confirmButtonText: "确定",
  16015. cancelButtonText: "取消",
  16016. type: "warning",
  16017. })
  16018. .then(() => {
  16019. let params = [
  16020. {
  16021. id: id,
  16022. },
  16023. ];
  16024. this.ajax
  16025. .post(this.$store.state.api + "deletePz", params)
  16026. .then((res) => {
  16027. this.$message({
  16028. message: "删除成功",
  16029. type: "success",
  16030. });
  16031. this.selectPz();
  16032. })
  16033. .catch((err) => {
  16034. this.$message.error("网络异常");
  16035. console.error(err);
  16036. });
  16037. })
  16038. .catch(() => {});
  16039. },
  16040. deleteReply(id) {
  16041. this.$confirm("确定删除此回复吗?", "提示", {
  16042. confirmButtonText: "确定",
  16043. cancelButtonText: "取消",
  16044. type: "warning",
  16045. })
  16046. .then(() => {
  16047. let params = [
  16048. {
  16049. id: id,
  16050. },
  16051. ];
  16052. this.ajax
  16053. .post(this.$store.state.api + "deleteReply", params)
  16054. .then((res) => {
  16055. this.$message({
  16056. message: "删除成功",
  16057. type: "success",
  16058. });
  16059. this.selectPz();
  16060. })
  16061. .catch((err) => {
  16062. this.$message.error("网络异常");
  16063. console.error(err);
  16064. });
  16065. })
  16066. .catch(() => {});
  16067. },
  16068. setPz() {
  16069. if (this.ispzType == 4) {
  16070. this.ispzType = 0;
  16071. this.pzDialog = false;
  16072. return;
  16073. }
  16074. this.ispzType = 4;
  16075. this.pzDialog = true;
  16076. this.selectPz();
  16077. },
  16078. selectPz() {
  16079. let params = {
  16080. cid: this.id,
  16081. s: this.courseType,
  16082. t: this.taskCount,
  16083. type: this.pzStype,
  16084. uid: this.userid,
  16085. };
  16086. this.ajax
  16087. .get(this.$store.state.api + "selectPzListType", params)
  16088. .then((res) => {
  16089. this.pzList = res.data[0];
  16090. var a = res.data[1];
  16091. for (var i = 0; i < a.length; i++) {
  16092. for (var j = 0; j < this.pzList.length; j++) {
  16093. if (!this.pzList[j].hfList) {
  16094. this.pzList[j].hfList = [];
  16095. }
  16096. if (a[i].pid == this.pzList[j].id) {
  16097. this.pzList[j].hfList.push(a[i]);
  16098. }
  16099. }
  16100. }
  16101. })
  16102. .catch((err) => {
  16103. console.error(err);
  16104. });
  16105. },
  16106. // selectHf() {
  16107. // let params = {
  16108. // cid: this.id,
  16109. // s: this.courseType,
  16110. // t: this.taskCount,
  16111. // };
  16112. // this.ajax
  16113. // .get(this.$store.state.api + "selectHfList", params)
  16114. // .then((res) => {
  16115. // var a = res.data[0];
  16116. // for (var i = 0; i < a.length; i++) {
  16117. // for (var j = 0; j < this.pzList.length; j++) {
  16118. // if (!this.pzList[i].hfList) {
  16119. // this.pzList[i].hfList = [];
  16120. // }
  16121. // if (a[i].pid == this.pzList[j].id) {
  16122. // this.pzList[i].hfList.push(a[i]);
  16123. // }
  16124. // }
  16125. // }
  16126. // })
  16127. // .catch((err) => {
  16128. // console.error(err);
  16129. // });
  16130. // },
  16131. updateSLook() {
  16132. let params = {
  16133. sopen: this.sIsOpen == false ? 1 : 2,
  16134. cid: this.id,
  16135. };
  16136. this.ajax
  16137. .get(this.$store.state.api + "updateCourseSLook", params)
  16138. .then((res) => {
  16139. if (this.sIsOpen == true) {
  16140. this.$message({
  16141. message: "权限设置成功",
  16142. type: "success",
  16143. });
  16144. } else {
  16145. this.$message({
  16146. message: "权限关闭成功",
  16147. type: "success",
  16148. });
  16149. }
  16150. })
  16151. .catch((err) => {
  16152. console.error(err);
  16153. });
  16154. },
  16155. updateFollow() {
  16156. let params = [
  16157. {
  16158. sopen: this.IsFollow == false ? 1 : 2,
  16159. cid: this.id,
  16160. },
  16161. ];
  16162. this.ajax
  16163. .post(this.$store.state.api + "updateCourseFollow", params)
  16164. .then((res) => {
  16165. if (this.IsFollow == true) {
  16166. this.$message({
  16167. message: "开启成功",
  16168. type: "success",
  16169. });
  16170. } else {
  16171. this.$message({
  16172. message: "关闭成功",
  16173. type: "success",
  16174. });
  16175. }
  16176. this.setCTask();
  16177. })
  16178. .catch((err) => {
  16179. console.error(err);
  16180. });
  16181. },
  16182. setCTask() {
  16183. let params = [
  16184. {
  16185. sopen: this.courseType + "-" + this.taskCount,
  16186. cid: this.id,
  16187. },
  16188. ];
  16189. this.ajax
  16190. .post(this.$store.state.api + "updateCourseFollowC", params)
  16191. .then((res) => {})
  16192. .catch((err) => {
  16193. console.error(err);
  16194. });
  16195. },
  16196. updateLookOpen() {
  16197. let params = [
  16198. {
  16199. sopen: this.IsLookOpen == false ? 1 : 2,
  16200. cid: this.id,
  16201. },
  16202. ];
  16203. this.ajax
  16204. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16205. .then((res) => {
  16206. if (this.IsLookOpen == true) {
  16207. // if (this.courseType != 0 && this.taskCount != 0) {
  16208. // this.openTask(0, 0, "0-0");
  16209. // }
  16210. this.$message({
  16211. message: "权限设置成功",
  16212. type: "success",
  16213. });
  16214. } else {
  16215. this.$message({
  16216. message: "权限关闭成功",
  16217. type: "success",
  16218. });
  16219. }
  16220. this.getCourseState(2);
  16221. })
  16222. .catch((err) => {
  16223. console.error(err);
  16224. });
  16225. },
  16226. selectSLook() {
  16227. let params = {
  16228. cid: this.id,
  16229. };
  16230. this.ajax
  16231. .get(this.$store.state.api + "selectCourseSLook", params)
  16232. .then((res) => {
  16233. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16234. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16235. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16236. if (!this.IsLookOpen) {
  16237. this.setNavList();
  16238. } else {
  16239. this.getCourseState(1);
  16240. }
  16241. if (this.IsFollow && this.tType == 2) {
  16242. this.setContent2(false);
  16243. let _followC = res.data[0][0].followC.split("-");
  16244. if (
  16245. this.courseType != _followC[0] ||
  16246. this.taskCount != _followC[1]
  16247. ) {
  16248. this.navList[this.courseType].isOpen = false;
  16249. this.courseType = _followC[0];
  16250. this.navList[this.courseType].isOpen = true;
  16251. this.taskCount = parseInt(_followC[1]);
  16252. this.navId = res.data[0][0].followC;
  16253. document.scrollingElement.scrollTop = 0;
  16254. this.getCourseDetail(2);
  16255. }
  16256. }
  16257. })
  16258. .catch((err) => {
  16259. console.error(err);
  16260. });
  16261. },
  16262. setNavList() {
  16263. if (this.navList.length == 0) {
  16264. this.navList = [];
  16265. var copyList = [];
  16266. for (var l = 0; l < this.chapInfoList.length; l++) {
  16267. var q = this.chapInfoList[l].dyName;
  16268. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16269. var e;
  16270. copyList.push({
  16271. dyName: q,
  16272. isOpen: l === 0 ? true : false,
  16273. task: [],
  16274. });
  16275. for (var r = 0; r < w.length; r++) {
  16276. e = w[r].task;
  16277. if (this.chapInfoList[l].easy == 1) {
  16278. copyList[l].task.push({
  16279. taskName: q,
  16280. id: l + "-" + r,
  16281. isLook: w[r].isLook,
  16282. isOpen: r === 0 ? true : false,
  16283. tool: [],
  16284. });
  16285. } else {
  16286. copyList[l].task.push({
  16287. taskName: e,
  16288. id: l + "-" + r,
  16289. isLook: w[r].isLook,
  16290. isOpen: r === 0 ? true : false,
  16291. tool: [],
  16292. });
  16293. }
  16294. var t = w[r].toolChoose;
  16295. for (var k = 0; k < t.length; k++) {
  16296. var tool = t[k].tool[0];
  16297. copyList[l].task[r].tool.push({
  16298. tool: tool,
  16299. isTool: false,
  16300. });
  16301. }
  16302. // this.navId = this.navId ? this.navId : l + "-" + r;
  16303. // this.navId = l + "-" + r;
  16304. }
  16305. }
  16306. this.navList = copyList;
  16307. this.navList[0].isOpen = false;
  16308. this.navList[this.courseType].isOpen = true;
  16309. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16310. } else {
  16311. this.setNavList2();
  16312. }
  16313. },
  16314. setNavList2() {
  16315. for (var l = 0; l < this.chapInfoList.length; l++) {
  16316. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16317. for (var r = 0; r < w.length; r++) {
  16318. this.navList[l].task[r].isLook = w[r].isLook;
  16319. }
  16320. }
  16321. if (
  16322. this.IsLookOpen &&
  16323. !this.navList[this.courseType].task[this.taskCount].isLook
  16324. ) {
  16325. this.openTask(0, 0, "0-0");
  16326. }
  16327. this.$forceUpdate();
  16328. },
  16329. getCourseState(type) {
  16330. let params = {
  16331. cid: this.id,
  16332. };
  16333. this.ajax
  16334. .get(this.$store.state.api + "getCourseState", params)
  16335. .then((res) => {
  16336. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16337. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16338. this.setNavList();
  16339. this.$forceUpdate();
  16340. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16341. this.addCourseState(2);
  16342. } else {
  16343. this.addCourseState(1);
  16344. }
  16345. })
  16346. .catch((err) => {
  16347. console.error(err);
  16348. });
  16349. },
  16350. addCourseState(type) {
  16351. let _state = this.chapInfoList;
  16352. // this.courseType this.taskCount
  16353. if (type == 1 || type == 2) {
  16354. for (var i = 0; i < _state.length; i++) {
  16355. let el = _state[i].chapterInfo[0].taskJson;
  16356. for (var j = 0; j < el.length; j++) {
  16357. // if (i == 0 && j == 0) {
  16358. // el[j].isLook = true;
  16359. // } else {
  16360. // el[j].isLook = false;
  16361. // }
  16362. if (
  16363. this.courseType > i ||
  16364. (this.courseType == i && this.taskCount + 1 > j)
  16365. ) {
  16366. el[j].isLook = true;
  16367. } else {
  16368. el[j].isLook = false;
  16369. }
  16370. }
  16371. }
  16372. }
  16373. let params = [
  16374. {
  16375. cid: this.id,
  16376. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16377. },
  16378. ];
  16379. this.ajax
  16380. .post(
  16381. this.$store.state.api +
  16382. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16383. params
  16384. )
  16385. .then((res) => {
  16386. if (this.IsLookOpen) {
  16387. this.setNavList();
  16388. }
  16389. if (type == 3 && type == 2) {
  16390. this.getCourseState(1);
  16391. }
  16392. })
  16393. .catch((err) => {
  16394. console.error(err);
  16395. });
  16396. },
  16397. getHomeWork() {
  16398. let params = {
  16399. cid: this.id,
  16400. stage: this.courseType,
  16401. task: this.taskCount,
  16402. uid: this.userid,
  16403. };
  16404. this.ajax
  16405. .get(this.$store.state.api + "selectWork", params)
  16406. .then((res) => {
  16407. if (res.data[0].length > 0) {
  16408. this.studyJuri = JSON.parse(res.data[0][0].content);
  16409. this.isNoHomeWork = true;
  16410. }
  16411. })
  16412. .catch((err) => {
  16413. console.error(err);
  16414. });
  16415. },
  16416. isAssetTypeAnImage(ext) {
  16417. return (
  16418. [
  16419. "png",
  16420. "jpg",
  16421. "jpeg",
  16422. "bmp",
  16423. "gif",
  16424. "webp",
  16425. "psd",
  16426. "svg",
  16427. "tiff",
  16428. ].indexOf(ext) !== -1
  16429. );
  16430. },
  16431. switchVideo(media) {
  16432. this.playerO = {};
  16433. this.playerOptions.poster = "";
  16434. this.playerOptions.sources[0].src = media;
  16435. this.playerO = this.playerOptions;
  16436. },
  16437. onPlayerPlay() {},
  16438. onPlayerTimeupdate(player) {
  16439. let gklog = player.cache_.currentTime; //当前播放的秒数
  16440. let a = player.cache_.duration; //视频的总时长
  16441. let gklog2 = parseInt(gklog);
  16442. // if(gklog2 == '3'){
  16443. // player.pause()
  16444. // setTimeout(()=>{
  16445. // player.currentTime(gklog2+1)
  16446. // player.play()
  16447. // },1000)
  16448. // }
  16449. console.log(" onPlayerTimeupdate!", gklog);
  16450. console.log(" onPlayerTimeupdate!", gklog2);
  16451. },
  16452. lookVedio(u, i) {
  16453. this.isClickNav = "";
  16454. // this.playerOptions.sources[0].src = u;
  16455. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16456. d.sources[0].src = u;
  16457. this.playerO[0] = d;
  16458. this.showType = 0;
  16459. // this.isClickNav = "video" + i;
  16460. this.isClickNav = i;
  16461. this.$forceUpdate();
  16462. },
  16463. lookText(i, t) {
  16464. this.isClickNav = "";
  16465. // this.text = this.textList[i][t];
  16466. this.text = this.vChapterData[i][t];
  16467. // this.dialogVisible1 = true;
  16468. this.showType = 1;
  16469. // this.isClickNav = "text" + t;
  16470. this.isClickNav = t;
  16471. },
  16472. lookTools(i, t) {
  16473. this.chapTools = this.chapToolList[i][t];
  16474. this.dialogVisible2 = true;
  16475. },
  16476. openFile(f) {
  16477. this.pptImgUrl = "";
  16478. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16479. if (
  16480. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16481. -1
  16482. ) {
  16483. this.pptImgUrl =
  16484. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16485. this.showPDF = false;
  16486. this.dialogVisible3 = true;
  16487. } else if (
  16488. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16489. ) {
  16490. this.pptImgUrl = f;
  16491. this.showPDF = true;
  16492. this.dialogVisible3 = true;
  16493. }
  16494. },
  16495. openTable(f) {
  16496. this.tableJson = JSON.parse(f.works);
  16497. this.dialogVisibleTable2 = true;
  16498. },
  16499. openWord(f) {
  16500. this.tableJson = JSON.parse(f.works);
  16501. this.dialogVisibleTable3 = true;
  16502. },
  16503. doUrl(url, i) {
  16504. this.isClickNav = "";
  16505. this.pptImgUrl1 = "";
  16506. this.showType = 2;
  16507. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16508. url = "https://" + url;
  16509. }
  16510. this.pptImgUrl1 = "";
  16511. setTimeout(() => {
  16512. this.pptImgUrl1 = url;
  16513. }, 500);
  16514. // this.isClickNav = "line" + i;
  16515. this.isClickNav = i;
  16516. this.$forceUpdate();
  16517. },
  16518. checkPhoto(f, i) {
  16519. this.showType = 4;
  16520. this.pptImgUrl1 = f.url;
  16521. this.isClickNav = i;
  16522. this.$forceUpdate();
  16523. },
  16524. downFile(f, i) {
  16525. this.isClickNav = "";
  16526. this.pptImgUrl1 = "";
  16527. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16528. if (
  16529. a.indexOf(
  16530. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16531. ) != -1
  16532. ) {
  16533. this.pptImgUrl1 =
  16534. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16535. // this.dialogVisible3 = true;
  16536. this.showType = 2;
  16537. } else if (
  16538. this.isAssetTypeAnImage(
  16539. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16540. )
  16541. ) {
  16542. this.showType = 4;
  16543. this.pptImgUrl1 = f.url;
  16544. } else if (
  16545. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16546. "PDF"
  16547. ) {
  16548. this.pptImgUrl1 = f.url;
  16549. // this.dialogVisible3 = true;
  16550. this.showType = 3;
  16551. } else {
  16552. window.open(this.file[i].url);
  16553. }
  16554. // this.isClickNav = "word" + i;
  16555. this.isClickNav = i;
  16556. },
  16557. downFileList(i) {
  16558. window.open(this.noImgList[i].url);
  16559. },
  16560. openAddWork() {
  16561. this.dialogVisible = true;
  16562. },
  16563. addBzWorks() {
  16564. let params = [
  16565. {
  16566. uid: this.userid,
  16567. cid: this.id,
  16568. stage: this.courseType,
  16569. task: this.taskCount,
  16570. tool: this.toolindex,
  16571. content: JSON.stringify(this.eScore),
  16572. type: 6,
  16573. },
  16574. ];
  16575. this.ajax
  16576. .post(this.$store.state.api + "addCourseWorks", params)
  16577. .then((res) => {
  16578. this.$message({
  16579. message: "提交成功",
  16580. type: "success",
  16581. });
  16582. this.eScore = { eBzText: "", eStar: [] };
  16583. this.studentEvalDialogVisible = false;
  16584. this.selectSWorks();
  16585. })
  16586. .catch((err) => {
  16587. this.$message.error("提交失败");
  16588. console.error(err);
  16589. });
  16590. },
  16591. addBzWorksTeacher() {
  16592. let params = [
  16593. {
  16594. uid: this.sStudent.userid,
  16595. cid: this.id,
  16596. stage: this.courseType,
  16597. task: this.taskCount,
  16598. tool: this.toolindex,
  16599. content: JSON.stringify(this.eScore),
  16600. type: 6,
  16601. },
  16602. ];
  16603. this.ajax
  16604. .post(this.$store.state.api + "addCourseWorks", params)
  16605. .then((res) => {
  16606. this.$message({
  16607. message: "提交成功",
  16608. type: "success",
  16609. });
  16610. this.eScore = { eBzText: "", eStar: [] };
  16611. this.studentEvalDialogVisibleTeacher = false;
  16612. this.selectSWorks();
  16613. })
  16614. .catch((err) => {
  16615. this.$message.error("提交失败");
  16616. console.error(err);
  16617. });
  16618. },
  16619. addStudentAsk() {
  16620. if (!this.radio.length) {
  16621. this.$message.error("请选择选项");
  16622. return;
  16623. }
  16624. for (var i = 0; i < this.askJson.askCount; i++) {
  16625. if (
  16626. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16627. (this.radio[i] !== 0 && !this.radio[i])
  16628. ) {
  16629. this.$message.error("请选择选项");
  16630. return;
  16631. }
  16632. }
  16633. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16634. let params = [
  16635. {
  16636. uid: this.userid,
  16637. cid: this.id,
  16638. stage: this.courseType,
  16639. task: this.taskCount,
  16640. tool: this.toolindex,
  16641. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16642. type: 2,
  16643. },
  16644. ];
  16645. this.ajax
  16646. .post(this.$store.state.api + "addCourseWorks", params)
  16647. .then((res) => {
  16648. this.$message({
  16649. message: "提交成功",
  16650. type: "success",
  16651. });
  16652. this.askList = [];
  16653. this.dialogVisible5 = false;
  16654. this.selectStudent();
  16655. this.selectSWorks();
  16656. this.selectSLook();
  16657. })
  16658. .catch((err) => {
  16659. this.$message.error("提交失败");
  16660. console.error(err);
  16661. });
  16662. },
  16663. addStudentAskTeacher() {
  16664. if (!this.radio.length) {
  16665. this.$message.error("请选择选项");
  16666. return;
  16667. }
  16668. for (var i = 0; i < this.askJson.askCount; i++) {
  16669. if (
  16670. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16671. (this.radio[i] !== 0 && !this.radio[i])
  16672. ) {
  16673. this.$message.error("请选择选项");
  16674. return;
  16675. }
  16676. }
  16677. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16678. let params = [
  16679. {
  16680. uid: this.sStudent.userid,
  16681. cid: this.id,
  16682. stage: this.courseType,
  16683. task: this.taskCount,
  16684. tool: this.toolindex,
  16685. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16686. type: 2,
  16687. },
  16688. ];
  16689. this.ajax
  16690. .post(this.$store.state.api + "addCourseWorks", params)
  16691. .then((res) => {
  16692. this.$message({
  16693. message: "提交成功",
  16694. type: "success",
  16695. });
  16696. this.askList = [];
  16697. this.dialogVisible5Teacher = false;
  16698. this.selectStudent();
  16699. this.selectSWorks();
  16700. this.selectSLook();
  16701. })
  16702. .catch((err) => {
  16703. this.$message.error("提交失败");
  16704. console.error(err);
  16705. });
  16706. },
  16707. addStudentTest() {
  16708. if (!this.radio.length) {
  16709. this.$message.error("请选择选项");
  16710. return;
  16711. }
  16712. for (var i = 0; i < this.testJson.testCount; i++) {
  16713. if (
  16714. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16715. (this.radio[i] !== 0 && !this.radio[i])
  16716. ) {
  16717. this.$message.error("请选择选项");
  16718. return;
  16719. }
  16720. }
  16721. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16722. let params = [
  16723. {
  16724. uid: this.userid,
  16725. cid: this.id,
  16726. stage: this.courseType,
  16727. task: this.taskCount,
  16728. tool: this.toolindex,
  16729. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16730. type: 8,
  16731. },
  16732. ];
  16733. this.ajax
  16734. .post(this.$store.state.api + "addCourseWorks", params)
  16735. .then((res) => {
  16736. this.$message({
  16737. message: "提交成功",
  16738. type: "success",
  16739. });
  16740. this.askList = [];
  16741. this.dialogVisibleChoice = false;
  16742. this.selectStudent();
  16743. this.selectSWorks();
  16744. this.selectSLook();
  16745. })
  16746. .catch((err) => {
  16747. this.$message.error("提交失败");
  16748. console.error(err);
  16749. });
  16750. },
  16751. addStudentTestTeacher() {
  16752. if (!this.radio.length) {
  16753. this.$message.error("请选择选项");
  16754. return;
  16755. }
  16756. for (var i = 0; i < this.testJson.testCount; i++) {
  16757. if (
  16758. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16759. (this.radio[i] !== 0 && !this.radio[i])
  16760. ) {
  16761. this.$message.error("请选择选项");
  16762. return;
  16763. }
  16764. }
  16765. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16766. let params = [
  16767. {
  16768. uid: this.sStudent.userid,
  16769. cid: this.id,
  16770. stage: this.courseType,
  16771. task: this.taskCount,
  16772. tool: this.toolindex,
  16773. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16774. type: 8,
  16775. },
  16776. ];
  16777. this.ajax
  16778. .post(this.$store.state.api + "addCourseWorks", params)
  16779. .then((res) => {
  16780. this.$message({
  16781. message: "提交成功",
  16782. type: "success",
  16783. });
  16784. this.askList = [];
  16785. this.dialogVisibleChoiceTeacher = false;
  16786. this.selectStudent();
  16787. this.selectSWorks();
  16788. this.selectSLook();
  16789. })
  16790. .catch((err) => {
  16791. this.$message.error("提交失败");
  16792. console.error(err);
  16793. });
  16794. },
  16795. addWork() {
  16796. if (this.studyJuri[0].content == "") {
  16797. this.$message.error("请将信息填写完整");
  16798. return;
  16799. } else if (this.studyJuri[0].cover.length == 0) {
  16800. this.$message.error("请将信息填写完整");
  16801. return;
  16802. } else if (this.studyJuri[0].upVedio.length == 0) {
  16803. this.$message.error("请将信息填写完整");
  16804. return;
  16805. }
  16806. if (this.isNoHomeWork) {
  16807. this.$confirm(
  16808. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16809. "提示",
  16810. {
  16811. confirmButtonText: "确定",
  16812. cancelButtonText: "取消",
  16813. type: "warning",
  16814. }
  16815. )
  16816. .then(() => {
  16817. let params = [
  16818. {
  16819. uid: this.userid,
  16820. cid: this.id,
  16821. stage: this.courseType,
  16822. task: this.taskCount,
  16823. content: JSON.stringify(this.studyJuri),
  16824. },
  16825. ];
  16826. this.ajax
  16827. .post(this.$store.state.api + "addWorks", params)
  16828. .then((res) => {
  16829. this.$message({
  16830. message: "提交成功",
  16831. type: "success",
  16832. });
  16833. this.isNoHomeWork = true;
  16834. this.dialogVisible = false;
  16835. })
  16836. .catch((err) => {
  16837. this.$message.error("提交失败");
  16838. console.error(err);
  16839. });
  16840. })
  16841. .catch(() => {});
  16842. } else {
  16843. let params = [
  16844. {
  16845. uid: this.userid,
  16846. cid: this.id,
  16847. stage: this.courseType,
  16848. task: this.taskCount,
  16849. content: JSON.stringify(this.studyJuri),
  16850. },
  16851. ];
  16852. this.ajax
  16853. .post(this.$store.state.api + "addWorks", params)
  16854. .then((res) => {
  16855. this.$message({
  16856. message: "提交成功",
  16857. type: "success",
  16858. });
  16859. this.isNoHomeWork = true;
  16860. this.dialogVisible = false;
  16861. })
  16862. .catch((err) => {
  16863. this.$message.error("提交失败");
  16864. console.error(err);
  16865. });
  16866. }
  16867. },
  16868. selectCount() {
  16869. let params = {
  16870. cid: this.id,
  16871. chid: this.courseType,
  16872. uid: this.userid,
  16873. };
  16874. this.ajax
  16875. .get(this.$store.state.api + "selectToolsCount", params)
  16876. .then((res) => {
  16877. for (var i = 0; i < res.data[0].length; i++) {
  16878. if (res.data[0][i].tools == 1) {
  16879. this.wbCount = res.data[0][i].count;
  16880. } else if (res.data[0][i].tools == 2) {
  16881. this.wordCount = res.data[0][i].count;
  16882. } else if (res.data[0][i].tools == 3) {
  16883. this.mindCount = res.data[0][i].count;
  16884. } else if (res.data[0][i].tools == 4) {
  16885. this.askCount = res.data[0][i].count;
  16886. } else if (res.data[0][i].tools == 6) {
  16887. this.noteCount = res.data[0][i].count;
  16888. } else if (res.data[0][i].tools == 7) {
  16889. this.mindNetWorkCount = res.data[0][i].count;
  16890. } else if (res.data[0][i].tools == 8) {
  16891. this.libraryCount = res.data[0][i].count;
  16892. } else if (res.data[0][i].tools == 16) {
  16893. this.workCount = res.data[0][i].count;
  16894. } else if (res.data[0][i].tools == 10) {
  16895. this.timeCount = res.data[0][i].count;
  16896. } else if (res.data[0][i].tools == 15) {
  16897. this.answerCount = res.data[0][i].count;
  16898. } else if (res.data[0][i].tools == 18) {
  16899. this.trainCount = res.data[0][i].count;
  16900. }
  16901. }
  16902. })
  16903. .catch((err) => {
  16904. console.error(err);
  16905. });
  16906. },
  16907. openTools(t, i, index, c, sName,id) {
  16908. var z = JSON.parse(c);
  16909. this.noteName = sName;
  16910. if (t == 4) {
  16911. this.radio = [];
  16912. this.isAnswer = false;
  16913. let b = z[0].anwer;
  16914. this.radio = b;
  16915. this.askJson = z[0].askJson;
  16916. this.isAnswer = true;
  16917. this.dialogVisible5 = true;
  16918. } else if (t == 45) {
  16919. this.radio = [];
  16920. this.isAnswer = false;
  16921. let b = z[0].anwer;
  16922. this.radio = b;
  16923. this.testJson = z[0].testJson;
  16924. this.isAnswer = true;
  16925. this.dialogVisibleChoice = true;
  16926. }else if(t == 69){
  16927. this.oldEnglishJson1 = {}
  16928. this.oldEnglishJson = {}
  16929. this.englishList1 = {}
  16930. this.newEngIndex = -1;
  16931. this.isNoUserid = false;
  16932. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16933. .toolChoose[i].englishList;
  16934. this.oldEnglishJson = z;
  16935. this.engWid = id;
  16936. this.newEnglishList = { engTitle:"",engText:"" }
  16937. this.newEnglishList1 = []
  16938. this.selectEngC(id,z);
  16939. }
  16940. // else if (t == 15) {
  16941. // this.answerQ = "";
  16942. // this.questionAnswer = "";
  16943. // this.answerQ = z[0].answerTitle;
  16944. // this.questionAnswer = z[0].answer;
  16945. // this.answerDialogVisible = true;
  16946. // }
  16947. },
  16948. fastText(p, t) {
  16949. if (t == 1) {
  16950. this.commentText += p;
  16951. } else {
  16952. this.eScore.eBzText += p;
  16953. }
  16954. },
  16955. addTools(t, i, index) {
  16956. var a = 0;
  16957. // this.taskCount = index;
  16958. this.toolindex = i;
  16959. if (t == 1) {
  16960. if (this.wbCount > 0) {
  16961. this.updateCount(this.wbCount, t);
  16962. } else {
  16963. this.wbCount++;
  16964. a = this.wbCount;
  16965. this.toolsCount(a, t);
  16966. }
  16967. window.parent.postMessage(
  16968. {
  16969. tools: "1",
  16970. cid: this.id,
  16971. stage: this.courseType,
  16972. task: this.taskCount,
  16973. tool: i,
  16974. },
  16975. "*"
  16976. );
  16977. } else if (t == 2) {
  16978. if (this.wordCount > 0) {
  16979. this.updateCount(this.wordCount, t);
  16980. } else {
  16981. this.wordCount++;
  16982. a = this.wordCount;
  16983. this.toolsCount(a, t);
  16984. }
  16985. window.parent.postMessage({ tools: "2" }, "*");
  16986. } else if (t == 3) {
  16987. if (this.mindCount > 0) {
  16988. this.updateCount(this.mindCount, t);
  16989. } else {
  16990. this.mindCount++;
  16991. a = this.mindCount;
  16992. this.toolsCount(a, t);
  16993. }
  16994. window.parent.postMessage(
  16995. {
  16996. tools: "3",
  16997. cid: this.id,
  16998. stage: this.courseType,
  16999. task: this.taskCount,
  17000. tool: i,
  17001. },
  17002. "*"
  17003. );
  17004. } else if (t == 4) {
  17005. this.radio = [];
  17006. this.noteName = "";
  17007. this.isAnswer = false;
  17008. if (this.askCount > 0) {
  17009. this.updateCount(this.askCount, t);
  17010. } else {
  17011. this.askCount++;
  17012. a = this.askCount;
  17013. this.toolsCount(a, t);
  17014. }
  17015. if (!this.dialogVisible2) {
  17016. this.askJson.askJson =
  17017. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17018. index
  17019. ].toolChoose[i].askJson;
  17020. this.askJson.askTitle =
  17021. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17022. index
  17023. ].toolChoose[i].askTitle;
  17024. this.askJson.askCount =
  17025. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17026. index
  17027. ].toolChoose[i].askCount;
  17028. } else {
  17029. this.askJson.askJson = this.chapTools.askJson.askJson;
  17030. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17031. this.askJson.askCount = this.chapTools.askJson.askCount;
  17032. }
  17033. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17034. if (this.askJson.askJson[k].type == "2") {
  17035. this.radio.push([]);
  17036. } else {
  17037. this.radio.push("");
  17038. }
  17039. }
  17040. this.dialogVisible5 = true;
  17041. // window.parent.postMessage({ tools: "4" }, "*");
  17042. } else if (t == 45) {
  17043. this.noteName = "";
  17044. this.radio = [];
  17045. this.isAnswer = false;
  17046. if (this.askCount > 0) {
  17047. this.updateCount(this.askCount, t);
  17048. } else {
  17049. this.askCount++;
  17050. a = this.askCount;
  17051. this.toolsCount(a, t);
  17052. }
  17053. this.testJson =
  17054. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17055. index
  17056. ].toolChoose[i].testJson;
  17057. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17058. if (this.testJson.testJson[k].type == "2") {
  17059. this.radio.push([]);
  17060. } else {
  17061. this.radio.push("");
  17062. }
  17063. }
  17064. this.dialogVisibleChoice = true;
  17065. // window.parent.postMessage({ tools: "4" }, "*");
  17066. } else if (t == 5) {
  17067. if (this.scoreCount > 0) {
  17068. this.updateCount(this.scoreCount, t);
  17069. } else {
  17070. this.scoreCount++;
  17071. a = this.scoreCount;
  17072. this.toolsCount(a, t);
  17073. }
  17074. this.dialogVisible4 = true;
  17075. // window.parent.postMessage({ tools: "5" }, "*");
  17076. } else if (t == 6) {
  17077. if (this.noteCount > 0) {
  17078. this.updateCount(this.noteCount, t);
  17079. } else {
  17080. this.noteCount++;
  17081. a = this.noteCount;
  17082. this.toolsCount(a, t);
  17083. }
  17084. window.parent.postMessage(
  17085. {
  17086. tools: "6",
  17087. cid: this.id,
  17088. stage: this.courseType,
  17089. task: this.taskCount,
  17090. tool: i,
  17091. },
  17092. "*"
  17093. );
  17094. } else if (t == 7) {
  17095. if (this.mindNetWorkCount > 0) {
  17096. this.updateCount(this.mindNetWorkCount, t);
  17097. } else {
  17098. this.mindNetWorkCount++;
  17099. a = this.mindNetWorkCount;
  17100. this.toolsCount(a, t);
  17101. }
  17102. window.parent.postMessage(
  17103. {
  17104. tools: "7",
  17105. cid: this.id,
  17106. stage: this.courseType,
  17107. task: this.taskCount,
  17108. tool: i,
  17109. },
  17110. "*"
  17111. );
  17112. } else if (t == 16) {
  17113. if (this.workCount > 0) {
  17114. this.updateCount(this.workCount, t);
  17115. } else {
  17116. this.workCount++;
  17117. a = this.workCount;
  17118. this.toolsCount(a, t);
  17119. }
  17120. this.dialogVisible = true;
  17121. } else if (t == 50) {
  17122. if (this.tType == 2) {
  17123. this.$message.error("不支持学生使用");
  17124. return;
  17125. }
  17126. this.plworkFile = [];
  17127. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17128. if (!this.uploadCid) {
  17129. this.$message.error(
  17130. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17131. );
  17132. return;
  17133. }
  17134. // this.uploadCid =
  17135. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17136. // index
  17137. // ].toolChoose[i].uploadJson[0];
  17138. this.selectUploadStudent(2);
  17139. } else if (t == 8) {
  17140. if (this.libraryCount > 0) {
  17141. this.updateCount(this.libraryCount, t);
  17142. } else {
  17143. this.libraryCount++;
  17144. a = this.libraryCount;
  17145. this.toolsCount(a, t);
  17146. }
  17147. window.parent.postMessage({ tools: "8" }, "*");
  17148. } else if (t == 17) {
  17149. if (this.libraryCount > 0) {
  17150. this.updateCount(this.libraryCount, t);
  17151. } else {
  17152. this.libraryCount++;
  17153. a = this.libraryCount;
  17154. this.toolsCount(a, t);
  17155. }
  17156. window.parent.postMessage({ tools: "17" }, "*");
  17157. } else if (t == 18) {
  17158. if (this.trainCount > 0) {
  17159. this.updateCount(this.trainCount, t);
  17160. } else {
  17161. this.trainCount++;
  17162. a = this.trainCount;
  17163. this.toolsCount(a, t);
  17164. }
  17165. window.parent.postMessage({ tools: "18" }, "*");
  17166. } else if (t == 10) {
  17167. if (this.timeCount > 0) {
  17168. this.updateCount(this.timeCount, t);
  17169. } else {
  17170. this.timeCount++;
  17171. a = this.timeCount;
  17172. this.toolsCount(a, t);
  17173. }
  17174. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17175. .taskJson[index].toolChoose[i].preTime
  17176. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17177. .toolChoose[i].preTime
  17178. : "";
  17179. this.timeDialogVisible = true;
  17180. } else if (t == 15) {
  17181. this.answerQ = "";
  17182. this.questionAnswer = "";
  17183. if (this.answerCount > 0) {
  17184. this.updateCount(this.answerCount, t);
  17185. } else {
  17186. this.answerCount++;
  17187. a = this.answerCount;
  17188. this.toolsCount(a, t);
  17189. }
  17190. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17191. .taskJson[index].toolChoose[i].answerQ
  17192. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17193. .toolChoose[i].answerQ
  17194. : "";
  17195. this.answerDialogVisible = true;
  17196. } else if (t == 21) {
  17197. window.parent.postMessage({ tools: "21" }, "*");
  17198. } else if (t == 22) {
  17199. window.parent.postMessage({ tools: "22" }, "*");
  17200. } else if (t == 23) {
  17201. window.parent.postMessage({ tools: "23" }, "*");
  17202. } else if (t == 24) {
  17203. window.parent.postMessage({ tools: "24" }, "*");
  17204. } else if (t == 25) {
  17205. window.parent.postMessage({ tools: "25" }, "*");
  17206. } else if (t == 31) {
  17207. window.parent.postMessage({ tools: "31" }, "*");
  17208. } else if (t == 28) {
  17209. window.parent.postMessage({ tools: "28" }, "*");
  17210. } else if (t == 37) {
  17211. window.parent.postMessage({ tools: "37" }, "*");
  17212. } else if (t == 38) {
  17213. window.parent.postMessage({ tools: "38" }, "*");
  17214. } else if (t == 39) {
  17215. window.parent.postMessage({ tools: "39" }, "*");
  17216. } else if (t == 32) {
  17217. window.parent.postMessage({ tools: "32" }, "*");
  17218. } else if (t == 66) {
  17219. window.parent.postMessage({ tools: "66" }, "*");
  17220. } else if (t == 67) {
  17221. window.parent.postMessage({ tools: "67" }, "*");
  17222. } else if (t == 68) {
  17223. window.parent.postMessage({ tools: "68" }, "*");
  17224. } else if (t == 57) {
  17225. // window.parent.postMessage({ tools: "57" }, "*");
  17226. window.parent.postMessage(
  17227. {
  17228. tools: "57u",
  17229. cid: this.id,
  17230. stage: this.courseType,
  17231. task: this.taskCount,
  17232. tool: i,
  17233. },
  17234. "*"
  17235. );
  17236. } else if (t == 58) {
  17237. window.parent.postMessage({ tools: "58" }, "*");
  17238. } else if (t == 59) {
  17239. window.parent.postMessage({ tools: "59" }, "*");
  17240. } else if (t == 60) {
  17241. window.parent.postMessage({ tools: "60" }, "*");
  17242. } else if (t == 61) {
  17243. window.parent.postMessage({ tools: "61" }, "*");
  17244. } else if (t == 63) {
  17245. window.parent.postMessage({ tools: "63" }, "*");
  17246. } else if (t == 69) {
  17247. if (this.worksStudent[i].length) {
  17248. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17249. if (this.userid == this.worksStudent[i][k].userid) {
  17250. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17251. break;
  17252. } else {
  17253. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17254. }
  17255. }
  17256. } else {
  17257. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17258. }
  17259. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17260. .taskJson[index].toolChoose[i].englishList
  17261. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17262. .toolChoose[i].englishList
  17263. : {};
  17264. this.englishToolIndex = i;
  17265. this.engDialogVisible = true;
  17266. } else if (t == 65) {
  17267. if (this.tType == 2) {
  17268. this.$message.error("不支持学生使用");
  17269. return;
  17270. }
  17271. this.uploadCid = this.tcid;
  17272. if (!this.uploadCid) {
  17273. this.$message.error(
  17274. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17275. );
  17276. return;
  17277. }
  17278. this.selectPickStudent();
  17279. } else if (t == 26) {
  17280. window.parent.postMessage(
  17281. {
  17282. tools: "26",
  17283. cid: this.id,
  17284. stage: this.courseType,
  17285. task: this.taskCount,
  17286. tool: i,
  17287. },
  17288. "*"
  17289. );
  17290. } else if (t == 40) {
  17291. if (this.evalCount > 0) {
  17292. this.updateCount(this.evalCount, t);
  17293. } else {
  17294. this.evalCount++;
  17295. a = this.evalCount;
  17296. this.toolsCount(a, t);
  17297. }
  17298. this.eScore = { eBzText: "", eStar: [] };
  17299. if (this.worksStudent[i].length) {
  17300. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17301. if (this.userid == this.worksStudent[i][k].userid) {
  17302. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17303. this.rateJson =
  17304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17305. index
  17306. ].toolChoose[i].rateJson;
  17307. break;
  17308. } else {
  17309. this.rateJson =
  17310. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17311. index
  17312. ].toolChoose[i].rateJson;
  17313. }
  17314. }
  17315. } else {
  17316. this.rateJson =
  17317. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17318. index
  17319. ].toolChoose[i].rateJson;
  17320. }
  17321. this.isStar = false;
  17322. this.studentEvalDialogVisible = true;
  17323. } else if (t == 41) {
  17324. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17325. .taskJson[index].toolChoose[i].selectJson
  17326. ? JSON.parse(
  17327. JSON.stringify(
  17328. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17329. index
  17330. ].toolChoose[i].selectJson
  17331. )
  17332. )
  17333. : { url: "", select: [], answer: [] };
  17334. if (this.worksStudent[i].length) {
  17335. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17336. if (this.userid == this.worksStudent[i][k].userid) {
  17337. var a = this.worksStudent[i][k].works.split(",");
  17338. for (var ki = 0; ki < a.length; ki++) {
  17339. a[ki] = parseInt(a[ki]);
  17340. }
  17341. this.selectAnswer = {
  17342. answer: a,
  17343. stu: this.worksStudent[i][k].sName,
  17344. };
  17345. break;
  17346. } else {
  17347. this.selectAnswer = { answer: [], stu: "" };
  17348. }
  17349. }
  17350. } else {
  17351. this.selectAnswer = { answer: [], stu: "" };
  17352. }
  17353. this.isSelect = false;
  17354. this.dialogVisibleSelect = true;
  17355. } else if (t == 44) {
  17356. window.parent.postMessage({ tools: "44" }, "*");
  17357. } else if (t == 47) {
  17358. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17359. .taskJson[index].toolChoose[i].sentenceList
  17360. ? JSON.parse(
  17361. JSON.stringify(
  17362. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17363. index
  17364. ].toolChoose[i].sentenceList
  17365. )
  17366. )
  17367. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17368. for (var q = 0; q < this.sentenceList.length; q++) {
  17369. this.sentenceList[q].chooseSenList = [];
  17370. this.sentenceList[q].addChangeSen = [];
  17371. this.sentenceList[q].addChangeSen = JSON.parse(
  17372. JSON.stringify(this.sentenceList[q].addSentence)
  17373. );
  17374. this.sentenceList[q].chooseSenList.length =
  17375. this.sentenceList[q].rightAnswer.length;
  17376. }
  17377. this.dialogVisibleSentence = true;
  17378. } else if (t == 48) {
  17379. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17380. .taskJson[index].toolChoose[i].tableJson
  17381. ? JSON.parse(
  17382. JSON.stringify(
  17383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17384. index
  17385. ].toolChoose[i].tableJson
  17386. )
  17387. )
  17388. : { text: "" };
  17389. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17390. if (this.worksStudent[i].length) {
  17391. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17392. if (this.userid == this.worksStudent[i][k].userid) {
  17393. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17394. break;
  17395. }
  17396. }
  17397. }
  17398. this.dialogVisibleTable = true;
  17399. } else if (t == 52) {
  17400. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17401. .taskJson[index].toolChoose[i].wordJson
  17402. ? JSON.parse(
  17403. JSON.stringify(
  17404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17405. index
  17406. ].toolChoose[i].wordJson
  17407. )
  17408. )
  17409. : { text: "" };
  17410. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17411. if (this.worksStudent[i].length) {
  17412. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17413. if (this.userid == this.worksStudent[i][k].userid) {
  17414. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17415. break;
  17416. }
  17417. }
  17418. }
  17419. this.dialogVisibleWord = true;
  17420. } else if (t == 49) {
  17421. this.groupJson =
  17422. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17423. index
  17424. ].toolChoose[i].groupJson;
  17425. this.islock = this.groupJson.islock == 1 ? true : false;
  17426. this.dialogVisibleGroup = true;
  17427. } else if (t == 62) {
  17428. this.videoJson =
  17429. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17430. index
  17431. ].toolChoose[i].videoJson;
  17432. this.dialogVisibleVideo = true;
  17433. }
  17434. },
  17435. teacherWorkSubmit(t, i, index, s) {
  17436. this.sStudent = s;
  17437. this.toolindex = i;
  17438. this.sTool = t;
  17439. if (this.tType !== "1" && this.tType !== "4") {
  17440. return;
  17441. }
  17442. if (t == 16 || t == 32 || t == 50) {
  17443. this.dialogVisibleWorks = true;
  17444. } else if (t == 15) {
  17445. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17446. .taskJson[index].toolChoose[i].answerQ
  17447. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17448. .toolChoose[i].answerQ
  17449. : "";
  17450. this.questionAnswer = "";
  17451. this.answerDialogVisibleTeacher = true; //问答
  17452. } else if (t == 52) {
  17453. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17454. .taskJson[index].toolChoose[i].wordJson
  17455. ? JSON.parse(
  17456. JSON.stringify(
  17457. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17458. index
  17459. ].toolChoose[i].wordJson
  17460. )
  17461. )
  17462. : { text: "" };
  17463. if (this.worksStudent[i].length) {
  17464. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17465. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17466. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17467. break;
  17468. }
  17469. }
  17470. }
  17471. this.dialogVisibleWordTeacher = true; //文档
  17472. } else if (t == 4) {
  17473. this.radio = [];
  17474. this.noteName = "";
  17475. this.isAnswer = false;
  17476. if (this.askCount > 0) {
  17477. this.updateCount(this.askCount, t);
  17478. } else {
  17479. this.askCount++;
  17480. a = this.askCount;
  17481. this.toolsCount(a, t);
  17482. }
  17483. if (!this.dialogVisible2) {
  17484. this.askJson.askJson =
  17485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17486. index
  17487. ].toolChoose[i].askJson;
  17488. this.askJson.askTitle =
  17489. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17490. index
  17491. ].toolChoose[i].askTitle;
  17492. this.askJson.askCount =
  17493. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17494. index
  17495. ].toolChoose[i].askCount;
  17496. } else {
  17497. this.askJson.askJson = this.chapTools.askJson.askJson;
  17498. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17499. this.askJson.askCount = this.chapTools.askJson.askCount;
  17500. }
  17501. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17502. if (this.askJson.askJson[k].type == "2") {
  17503. this.radio.push([]);
  17504. } else {
  17505. this.radio.push("");
  17506. }
  17507. }
  17508. this.dialogVisible5Teacher = true;
  17509. } else if (t == 45) {
  17510. this.noteName = "";
  17511. this.radio = [];
  17512. this.isAnswer = false;
  17513. if (this.askCount > 0) {
  17514. this.updateCount(this.askCount, t);
  17515. } else {
  17516. this.askCount++;
  17517. a = this.askCount;
  17518. this.toolsCount(a, t);
  17519. }
  17520. this.testJson =
  17521. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17522. index
  17523. ].toolChoose[i].testJson;
  17524. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17525. if (this.testJson.testJson[k].type == "2") {
  17526. this.radio.push([]);
  17527. } else {
  17528. this.radio.push("");
  17529. }
  17530. }
  17531. this.dialogVisibleChoiceTeacher = true;
  17532. } else if (t == 41) {
  17533. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17534. .taskJson[index].toolChoose[i].selectJson
  17535. ? JSON.parse(
  17536. JSON.stringify(
  17537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17538. index
  17539. ].toolChoose[i].selectJson
  17540. )
  17541. )
  17542. : { url: "", select: [], answer: [] };
  17543. if (this.worksStudent[i].length) {
  17544. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17545. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17546. var a = this.worksStudent[i][k].works.split(",");
  17547. for (var ki = 0; ki < a.length; ki++) {
  17548. a[ki] = parseInt(a[ki]);
  17549. }
  17550. this.selectAnswer = {
  17551. answer: a,
  17552. stu: this.worksStudent[i][k].sName,
  17553. };
  17554. break;
  17555. } else {
  17556. this.selectAnswer = { answer: [], stu: "" };
  17557. }
  17558. }
  17559. } else {
  17560. this.selectAnswer = { answer: [], stu: "" };
  17561. }
  17562. this.isSelect = false;
  17563. this.dialogVisibleSelectTeacher = true;
  17564. } else if (t == 47) {
  17565. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17566. .taskJson[index].toolChoose[i].sentenceList
  17567. ? JSON.parse(
  17568. JSON.stringify(
  17569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17570. index
  17571. ].toolChoose[i].sentenceList
  17572. )
  17573. )
  17574. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17575. for (var q = 0; q < this.sentenceList.length; q++) {
  17576. this.sentenceList[q].chooseSenList = [];
  17577. this.sentenceList[q].addChangeSen = [];
  17578. this.sentenceList[q].addChangeSen = JSON.parse(
  17579. JSON.stringify(this.sentenceList[q].addSentence)
  17580. );
  17581. this.sentenceList[q].chooseSenList.length =
  17582. this.sentenceList[q].rightAnswer.length;
  17583. }
  17584. this.dialogVisibleSentenceTeacher = true;
  17585. } else if (t == 48) {
  17586. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17587. .taskJson[index].toolChoose[i].tableJson
  17588. ? JSON.parse(
  17589. JSON.stringify(
  17590. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17591. index
  17592. ].toolChoose[i].tableJson
  17593. )
  17594. )
  17595. : { text: "" };
  17596. if (this.worksStudent[i].length) {
  17597. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17598. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17599. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17600. break;
  17601. }
  17602. }
  17603. }
  17604. this.dialogVisibleTableTeacher = true;
  17605. } else if (t == 40) {
  17606. if (this.evalCount > 0) {
  17607. this.updateCount(this.evalCount, t);
  17608. } else {
  17609. this.evalCount++;
  17610. a = this.evalCount;
  17611. this.toolsCount(a, t);
  17612. }
  17613. this.eScore = { eBzText: "", eStar: [] };
  17614. if (this.worksStudent[i].length) {
  17615. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17616. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17617. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17618. this.rateJson =
  17619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17620. index
  17621. ].toolChoose[i].rateJson;
  17622. break;
  17623. } else {
  17624. this.rateJson =
  17625. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17626. index
  17627. ].toolChoose[i].rateJson;
  17628. }
  17629. }
  17630. } else {
  17631. this.rateJson =
  17632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17633. index
  17634. ].toolChoose[i].rateJson;
  17635. }
  17636. this.isStar = false;
  17637. this.studentEvalDialogVisibleTeacher = true;
  17638. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17639. window.parent.postMessage(
  17640. {
  17641. tools: t + "teacher",
  17642. cid: this.id,
  17643. stage: this.courseType,
  17644. task: this.taskCount,
  17645. tool: i,
  17646. student: this.sStudent,
  17647. },
  17648. "*"
  17649. );
  17650. }
  17651. },
  17652. openCocoPi(tool, i, uid, uname) {
  17653. let student = {
  17654. userid: uid,
  17655. student: uname,
  17656. };
  17657. if (tool == 57) {
  17658. window.parent.postMessage(
  17659. {
  17660. tools: tool + "teacher",
  17661. cid: this.id,
  17662. stage: this.courseType,
  17663. task: this.taskCount,
  17664. tool: i,
  17665. student: student,
  17666. },
  17667. "*"
  17668. );
  17669. }
  17670. },
  17671. setRightAnswer(s, i, j) {
  17672. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17673. if (
  17674. this.sentenceList[i].chooseSenList[q] == undefined ||
  17675. this.sentenceList[i].chooseSenList[q] == ""
  17676. ) {
  17677. this.sentenceList[i].chooseSenList[q] = s;
  17678. this.sentenceList[i].addChangeSen[j] = "";
  17679. break;
  17680. }
  17681. }
  17682. this.$forceUpdate();
  17683. },
  17684. returnCard(r, i, j) {
  17685. var a = this.sentenceList[i].addSentence.indexOf(r);
  17686. this.sentenceList[i].chooseSenList[j] = "";
  17687. this.sentenceList[i].addChangeSen[a] = r;
  17688. this.$forceUpdate();
  17689. },
  17690. // addSentenceTool() {
  17691. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17692. // this.taskCount
  17693. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17694. // this.sentenceList = [
  17695. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17696. // ];
  17697. // this.dialogVisibleSentence = false;
  17698. // },
  17699. toolsCount(a, t) {
  17700. let params = {
  17701. cid: this.id,
  17702. chid: this.courseType,
  17703. uid: this.userid,
  17704. tid: t,
  17705. count: a,
  17706. };
  17707. this.ajax
  17708. .get(this.$store.state.api + "insertToolsCount", params)
  17709. .then((res) => {
  17710. this.selectCount();
  17711. })
  17712. .catch((err) => {
  17713. console.error(err);
  17714. });
  17715. },
  17716. updateCount(c, t) {
  17717. c++;
  17718. let params = {
  17719. cid: this.id,
  17720. chid: this.courseType,
  17721. uid: this.userid,
  17722. tid: t,
  17723. count: c,
  17724. };
  17725. this.ajax
  17726. .get(this.$store.state.api + "updateToolsCount", params)
  17727. .then((res) => {
  17728. this.selectCount();
  17729. })
  17730. .catch((err) => {
  17731. console.error(err);
  17732. });
  17733. },
  17734. checkEva() {
  17735. if (this.evalua != "") {
  17736. for (var i = 0; i < this.evaJuri.length; i++) {
  17737. if (this.evalua == this.evaJuri[i].id) {
  17738. this.eTitle = this.evaJuri[i].title;
  17739. this.eJson = JSON.parse(this.evaJuri[i].content);
  17740. }
  17741. }
  17742. this.$forceUpdate();
  17743. setTimeout(() => {
  17744. this.setMindData();
  17745. }, 0);
  17746. }
  17747. },
  17748. selectEva() {
  17749. let params = {
  17750. oid: this.oid,
  17751. };
  17752. this.ajax
  17753. .get(this.$store.state.api + "selectAllEvaluation", params)
  17754. .then((res) => {
  17755. this.evaJuri = res.data[0];
  17756. })
  17757. .catch((err) => {
  17758. console.error(err);
  17759. });
  17760. },
  17761. setMindData() {
  17762. this.data.data = [];
  17763. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17764. let _eJson = Object.keys(this.eJson);
  17765. let _e = this.eJson;
  17766. for (let i = 0; i < _eJson.length; i++) {
  17767. let element = _e[_eJson[i]];
  17768. this.data.data.push({
  17769. id: element.id,
  17770. parentid: "root",
  17771. topic: element.name,
  17772. });
  17773. let _eJsonc = Object.keys(element.child);
  17774. let _e2 = element.child;
  17775. for (let j = 0; j < _eJsonc.length; j++) {
  17776. let _ec = _e2[_eJsonc[j]];
  17777. this.data.data.push({
  17778. id: _ec.id,
  17779. parentid: element.id,
  17780. topic: _ec.name,
  17781. });
  17782. let _eJsonz = Object.keys(_ec.child);
  17783. let _e3 = _ec.child;
  17784. for (let z = 0; z < _eJsonz.length; z++) {
  17785. let _ez = _e3[_eJsonz[z]];
  17786. this.data.data.push({
  17787. id: _ez.id,
  17788. parentid: _ec.id,
  17789. topic: _ez.name,
  17790. });
  17791. }
  17792. }
  17793. }
  17794. this.$forceUpdate();
  17795. },
  17796. checkFileFull(type, url) {
  17797. this.fullDialogVisible = true;
  17798. this.fulltype = type;
  17799. this.fullUrl = url;
  17800. },
  17801. checkFileFull1(t, f) {
  17802. this.fullDialogVisible = true;
  17803. if (t == 6) {
  17804. this.fulltype = 1;
  17805. this.fullUrl = JSON.parse(JSON.stringify(f));
  17806. } else if (t == 8) {
  17807. this.fulltype = 2;
  17808. this.fullUrl = f.url;
  17809. } else if (
  17810. t == 3 &&
  17811. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17812. "PDF"
  17813. ) {
  17814. this.fulltype = 3;
  17815. this.fullUrl = f.url;
  17816. } else if (t == 3) {
  17817. this.fulltype = 2;
  17818. this.fullUrl =
  17819. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17820. }
  17821. },
  17822. openSname(n, id, i, uid) {
  17823. this.snameWid = id;
  17824. this.worksSName = n;
  17825. this.worksSid = uid == n ? "" : uid;
  17826. this.toolindex = i;
  17827. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17828. if (!this.uploadCid) {
  17829. this.$message.error(
  17830. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17831. );
  17832. return;
  17833. }
  17834. this.selectUploadStudent(1);
  17835. },
  17836. updateName() {
  17837. let params = {
  17838. n: this.worksSName,
  17839. cid: this.snameWid,
  17840. };
  17841. this.ajax
  17842. .get(this.$store.state.api + "updateCourseWorksName", params)
  17843. .then((res) => {
  17844. this.$message({
  17845. message: "修改成功",
  17846. type: "success",
  17847. });
  17848. this.dialogVisibleSname = false;
  17849. this.getCourseDetail(2);
  17850. this.snameWid = "";
  17851. this.worksSName = "";
  17852. })
  17853. .catch((err) => {
  17854. console.error(err);
  17855. });
  17856. },
  17857. downloadFile2(f) {
  17858. // const loading = this.$loading.service({
  17859. // background: "rgba(255, 255, 255, 0.7)",
  17860. // target: document.body,
  17861. // text: "文件加载中...",
  17862. // });
  17863. // let url2 = f.url;
  17864. // let _url2 = "";
  17865. // if (
  17866. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17867. // ) {
  17868. // _url2 = url2.split(
  17869. // "https://view.officeapps.live.com/op/view.aspx?src="
  17870. // )[1];
  17871. // } else {
  17872. // _url2 = url2;
  17873. // }
  17874. // let params = {
  17875. // url: _url2,
  17876. // name: f.name,
  17877. // };
  17878. // this.ajax
  17879. // .get(this.$store.state.api + "download", params)
  17880. // .then((res) => {
  17881. // loading.close();
  17882. // let content = res.data.data.data;
  17883. // let ab = new ArrayBuffer(content.length);
  17884. // let view = new Uint8Array(ab);
  17885. // for (var i = 0; i < content.length; ++i) {
  17886. // view[i] = content[i];
  17887. // }
  17888. // let elink = document.createElement("a");
  17889. // elink.download = f.name;
  17890. // elink.style.display = "none";
  17891. // let blob = new Blob([ab], {
  17892. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17893. // });
  17894. // elink.href = URL.createObjectURL(blob);
  17895. // document.body.appendChild(elink);
  17896. // elink.click();
  17897. // document.body.removeChild(elink);
  17898. // })
  17899. // .catch((err) => {
  17900. // loading.close();
  17901. // console.error(err);
  17902. // });
  17903. let url = f.url;
  17904. let _this = this;
  17905. let _url = "";
  17906. if (
  17907. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17908. ) {
  17909. _url = url.split(
  17910. "https://view.officeapps.live.com/op/view.aspx?src="
  17911. )[1];
  17912. } else {
  17913. _url = url;
  17914. }
  17915. const loading = _this.$loading.service({
  17916. background: "rgba(255, 255, 255, 0.7)",
  17917. target: document.body,
  17918. text: "文件加载中...",
  17919. });
  17920. let x = new XMLHttpRequest();
  17921. x.open("GET", _url, true);
  17922. x.responseType = "blob";
  17923. x.onload = function () {
  17924. loading.close();
  17925. let url = window.URL.createObjectURL(new Blob([x.response]));
  17926. let a = document.createElement("a");
  17927. a.name = f.name;
  17928. a.href = url;
  17929. a.download = f.name;
  17930. a.click();
  17931. };
  17932. x.send();
  17933. },
  17934. downloadFile(url) {
  17935. let _this = this;
  17936. let _url = "";
  17937. if (
  17938. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17939. ) {
  17940. _url = url.split(
  17941. "https://view.officeapps.live.com/op/view.aspx?src="
  17942. )[1];
  17943. } else {
  17944. _url = url;
  17945. }
  17946. const x = new XMLHttpRequest();
  17947. x.open("GET", _url, true);
  17948. x.responseType = "blob";
  17949. const loading = _this.$loading.service({
  17950. background: "rgba(255, 255, 255, 0.7)",
  17951. target: document.body,
  17952. text: "文件加载中...",
  17953. });
  17954. // _this.$message.success("文件下载中...");
  17955. x.onload = function (e) {
  17956. loading.close();
  17957. let content = x.response;
  17958. let elink = document.createElement("a");
  17959. elink.download = decodeURI(
  17960. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17961. );
  17962. elink.style.display = "none";
  17963. let blob = new Blob([content]);
  17964. elink.href = URL.createObjectURL(blob);
  17965. document.body.appendChild(elink);
  17966. elink.click();
  17967. document.body.removeChild(elink);
  17968. };
  17969. x.send();
  17970. },
  17971. openLine(url) {
  17972. window.open(url);
  17973. },
  17974. resize() {
  17975. if (document.getElementsByClassName("box_course").length) {
  17976. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17977. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17978. if (this.showType == 2 || this.showType == 3) {
  17979. document.getElementsByClassName("navBox")[0].style.height =
  17980. a - 40 + 46 + "px";
  17981. } else {
  17982. document.getElementsByClassName("navBox")[0].style.height =
  17983. a - 40 + "px";
  17984. }
  17985. }
  17986. this.Stbodywidth =
  17987. document.getElementsByClassName("student_body").length &&
  17988. document.getElementsByClassName("student_body")[0].offsetWidth;
  17989. },
  17990. closeDraw() {
  17991. this.bg = null;
  17992. this.drawShow = false;
  17993. },
  17994. showPicturePaint(url) {
  17995. let params = {
  17996. img: url,
  17997. };
  17998. this.ajax
  17999. .get(this.$store.state.api + "imgToBase64", params)
  18000. .then((res) => {
  18001. this.drawShow = true;
  18002. this.bg = res.data[0].img;
  18003. })
  18004. .catch((err) => {
  18005. console.error(err);
  18006. });
  18007. },
  18008. addImgDraw(base64) {
  18009. let file = { name: "批注图.png" };
  18010. let img = this.dataUrlToFile(base64, file);
  18011. this.beforeUpload1(img, 5);
  18012. },
  18013. addImgDrawImG(url) {
  18014. // console.log(url);
  18015. let params = [
  18016. {
  18017. wid: this.commentDetail.wid,
  18018. img: url,
  18019. },
  18020. ];
  18021. this.ajax
  18022. .post(this.$store.state.api + "updateCourseWorks", params)
  18023. .then((res) => {
  18024. this.$message({
  18025. message: "提交成功",
  18026. type: "success",
  18027. });
  18028. this.drawShow = false;
  18029. this.bg = "";
  18030. this.selectSWorks();
  18031. this.selectStudent();
  18032. })
  18033. .catch((err) => {
  18034. this.$message.error("提交失败");
  18035. console.error(err);
  18036. });
  18037. },
  18038. deletePicturePaint() {
  18039. this.$confirm("确定删除此批注吗?", "提示", {
  18040. confirmButtonText: "确定",
  18041. cancelButtonText: "取消",
  18042. type: "warning",
  18043. })
  18044. .then(() => {
  18045. let params = [
  18046. {
  18047. wid: this.commentDetail.wid,
  18048. img: "",
  18049. },
  18050. ];
  18051. this.ajax
  18052. .post(this.$store.state.api + "updateCourseWorks", params)
  18053. .then((res) => {
  18054. this.$message({
  18055. message: "删除成功",
  18056. type: "success",
  18057. });
  18058. this.selectSWorks();
  18059. this.selectStudent();
  18060. })
  18061. .catch((err) => {
  18062. this.$message.error("删除失败");
  18063. console.error(err);
  18064. });
  18065. })
  18066. .catch(() => {});
  18067. },
  18068. getAudioVideo(constraintsData) {
  18069. if (navigator.mediaDevices === undefined) {
  18070. navigator.mediaDevices = {};
  18071. }
  18072. if (navigator.mediaDevices.getUserMedia === undefined) {
  18073. navigator.mediaDevices.getUserMedia = function (constraints) {
  18074. // 首先,如果有getUserMedia的话,就获得它
  18075. var getUserMedia =
  18076. navigator.getUserMedia ||
  18077. navigator.webkitGetUserMedia ||
  18078. navigator.mozGetUserMedia ||
  18079. navigator.msGetUserMedia;
  18080. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18081. if (!getUserMedia) {
  18082. return Promise.reject({ code: 404 });
  18083. }
  18084. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18085. return new Promise(function (resolve, reject) {
  18086. getUserMedia.call(navigator, constraints, resolve, reject);
  18087. });
  18088. };
  18089. }
  18090. return navigator.mediaDevices.getUserMedia(constraintsData);
  18091. },
  18092. /**
  18093. * 开始录制
  18094. */
  18095. startRecording(callback) {
  18096. let _function = (screenStream) => {
  18097. this.addStreamStopListener(screenStream, () => {
  18098. console.log("流停止监听");
  18099. this.stopRecording();
  18100. this.$emit("streamStop", {});
  18101. // this.stopRecording();
  18102. });
  18103. var options = {
  18104. type: "video",
  18105. mimeType: "video/webm",
  18106. disableLogs: false,
  18107. getNativeBlob: false, // enable it for longer recordings
  18108. ignoreMutedMedia: false,
  18109. };
  18110. // this.video.srcObject = screenStream;
  18111. this.recorder = RecordRTC(screenStream, options);
  18112. this.recorder.startRecording();
  18113. this.recorder.screen = screenStream;
  18114. this.videoStart = true;
  18115. // callback(true);
  18116. };
  18117. this.getAudioVideo({ audio: true })
  18118. .then((res) => {
  18119. this.captureScreen(_function, true);
  18120. console.log("已点击允许,开启成功");
  18121. })
  18122. .catch((err) => {
  18123. // console.log('浏览器不支持,请更换浏览器')
  18124. // } else {
  18125. this.captureScreen(_function, false);
  18126. console.log("请检查是否存在麦克风");
  18127. });
  18128. },
  18129. /**
  18130. * 停止录制
  18131. */
  18132. stopRecording(callback) {
  18133. this.recorder.stopRecording(() => {
  18134. // this.video.src = this.video.srcObject = null;
  18135. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18136. const url = URL.createObjectURL(this.recorder.getBlob());
  18137. const a = document.createElement("a"); //this.fileName+
  18138. let videoFile = new File(
  18139. [this.recorder.getBlob()],
  18140. this.courseDetail.title + "录屏.mp4",
  18141. {
  18142. type: "video/mp4",
  18143. }
  18144. );
  18145. let downloadUrl = URL.createObjectURL(videoFile);
  18146. document.body.appendChild(a);
  18147. a.style.display = "none";
  18148. a.href = url;
  18149. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18150. a.click();
  18151. this.recorder.screen.stop();
  18152. this.recorder.destroy();
  18153. this.recorder = null;
  18154. this.videoStart = false;
  18155. // callback(false);
  18156. });
  18157. },
  18158. //初始化
  18159. captureScreen(callback, type) {
  18160. if (navigator.getDisplayMedia) {
  18161. //录制结束,文件下载
  18162. navigator
  18163. .getDisplayMedia({
  18164. video: true,
  18165. })
  18166. .then((screenStream) => {
  18167. if (type) {
  18168. navigator.mediaDevices
  18169. .getUserMedia({ audio: true })
  18170. .then((mic) => {
  18171. screenStream.addTrack(mic.getTracks()[0]);
  18172. callback(screenStream);
  18173. });
  18174. } else {
  18175. callback(screenStream);
  18176. }
  18177. })
  18178. .catch(function (error) {
  18179. console.log("error", error);
  18180. });
  18181. } else if (navigator.mediaDevices.getDisplayMedia) {
  18182. navigator.mediaDevices
  18183. .getDisplayMedia({
  18184. video: true,
  18185. })
  18186. .then((screenStream) => {
  18187. if (type) {
  18188. navigator.mediaDevices
  18189. .getUserMedia({ audio: true })
  18190. .then((mic) => {
  18191. screenStream.addTrack(mic.getTracks()[0]);
  18192. callback(screenStream);
  18193. });
  18194. } else {
  18195. callback(screenStream);
  18196. }
  18197. })
  18198. .catch(function (error) {
  18199. console.log("error", error);
  18200. });
  18201. } else {
  18202. var error = "getDisplayMedia API are not supported in this browser.";
  18203. console.log("error", error);
  18204. alert(error);
  18205. }
  18206. },
  18207. //流监听
  18208. addStreamStopListener(stream, callback) {
  18209. stream.addEventListener(
  18210. "ended",
  18211. function () {
  18212. callback();
  18213. callback = function () {};
  18214. },
  18215. false
  18216. );
  18217. stream.addEventListener(
  18218. "inactive",
  18219. function () {
  18220. callback();
  18221. callback = function () {};
  18222. },
  18223. false
  18224. );
  18225. stream.getTracks().forEach(function (track) {
  18226. track.addEventListener(
  18227. "ended",
  18228. function () {
  18229. callback();
  18230. callback = function () {};
  18231. },
  18232. false
  18233. );
  18234. track.addEventListener(
  18235. "inactive",
  18236. function () {
  18237. callback();
  18238. callback = function () {};
  18239. },
  18240. false
  18241. );
  18242. });
  18243. },
  18244. updateGroup() {
  18245. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18246. this.dialogVisibleGroup2 = true;
  18247. },
  18248. numberPan() {
  18249. if (
  18250. /[^\d]/.test(this.groupJson.number) ||
  18251. this.groupJson.number < 2 ||
  18252. this.groupJson.number > 10
  18253. ) {
  18254. this.$message.error("请输入2-10的数字");
  18255. this.groupJson.number = "";
  18256. }
  18257. },
  18258. updateGroupJson() {
  18259. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18260. if (
  18261. this.groupStudentUid[this.toolindex][i].length >
  18262. this.groupJson2.number
  18263. ) {
  18264. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18265. return;
  18266. }
  18267. }
  18268. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18269. this.islock = this.groupJson.islock == 1 ? true : false;
  18270. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18271. this.taskCount
  18272. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18273. let params = [
  18274. {
  18275. cid: this.id,
  18276. chapters: JSON.stringify(this.chapInfoList),
  18277. uid: this.userid,
  18278. unitIndex: this.courseType,
  18279. },
  18280. ];
  18281. this.ajax
  18282. .post(this.$store.state.api + "updateWorkNew4", params)
  18283. .then((res) => {
  18284. this.$message.success("设置成功");
  18285. this.getCourseDetail(2);
  18286. this.dialogVisibleGroup2 = false;
  18287. this.groupJson2 = {};
  18288. this.$forceUpdate();
  18289. })
  18290. .catch((err) => {
  18291. this.$message.error("网络不佳");
  18292. console.error(err);
  18293. });
  18294. },
  18295. lockChair() {
  18296. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18297. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18298. this.updateGroupJson();
  18299. },
  18300. selectGroup(index) {
  18301. this.getCourseDetail(2, index);
  18302. },
  18303. joinGroup(index) {
  18304. if (this.groupJson.islock == 2) {
  18305. this.$message.error("位置已被锁定,无法加入");
  18306. return;
  18307. }
  18308. if (
  18309. this.groupStudent[this.toolindex][index].length >
  18310. this.groupJson.number ||
  18311. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18312. ) {
  18313. this.$message.error("位置已满,无法加入");
  18314. return;
  18315. }
  18316. let params = [
  18317. {
  18318. cid: this.id,
  18319. stage: this.courseType,
  18320. task: this.taskCount,
  18321. tool: this.toolindex,
  18322. g: index,
  18323. uid: this.userid,
  18324. },
  18325. ];
  18326. this.ajax
  18327. .post(this.$store.state.api + "joinGroup", params)
  18328. .then((res) => {
  18329. this.$message.success("加入成功");
  18330. this.getCourseDetail(2);
  18331. })
  18332. .catch((err) => {
  18333. this.$message.error("网络不佳");
  18334. console.error(err);
  18335. });
  18336. },
  18337. exitGroup(id) {
  18338. if (this.groupJson.islock == 2) {
  18339. this.$message.error("位置已被锁定,无法退出");
  18340. return;
  18341. }
  18342. let params = [
  18343. {
  18344. gid: id,
  18345. },
  18346. ];
  18347. this.ajax
  18348. .post(this.$store.state.api + "exitGroup", params)
  18349. .then((res) => {
  18350. this.$message.success("退出成功");
  18351. this.getCourseDetail(2);
  18352. })
  18353. .catch((err) => {
  18354. this.$message.error("网络不佳");
  18355. console.error(err);
  18356. });
  18357. },
  18358. groupUpload(index, task, gindex) {
  18359. this.taskCount = task;
  18360. this.toolindex = index;
  18361. this.groupIndex = gindex;
  18362. this.dialogVisibleGroupWork = true;
  18363. },
  18364. updateGroupChair(user) {
  18365. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18366. el.label = index;
  18367. return index != user.group;
  18368. });
  18369. this.updateGroupUser = user;
  18370. this.dialogVisibleUpdateGroup = true;
  18371. },
  18372. updateChair() {
  18373. if (
  18374. this.groupStudent[this.toolindex][this.checkChair].length >
  18375. this.groupJson.number ||
  18376. this.groupStudent[this.toolindex][this.checkChair].length ==
  18377. this.groupJson.number
  18378. ) {
  18379. this.$message.error("位置已满,无法加入");
  18380. return;
  18381. }
  18382. let params = [
  18383. {
  18384. cid: this.id,
  18385. stage: this.courseType,
  18386. task: this.taskCount,
  18387. tool: this.toolindex,
  18388. g: this.checkChair,
  18389. uid: this.updateGroupUser.userid,
  18390. },
  18391. ];
  18392. this.ajax
  18393. .post(this.$store.state.api + "joinGroup", params)
  18394. .then((res) => {
  18395. this.$message.success("修改成功");
  18396. this.updateGroupUser = {};
  18397. this.checkChair = "";
  18398. this.updateGroupArray = {};
  18399. this.dialogVisibleUpdateGroup = false;
  18400. this.getCourseDetail(2);
  18401. })
  18402. .catch((err) => {
  18403. this.$message.error("网络不佳");
  18404. console.error(err);
  18405. });
  18406. },
  18407. deleteGroupChair(gindex) {
  18408. this.checkDeleteGroup = [];
  18409. this.deleteGroupUser = JSON.parse(
  18410. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18411. );
  18412. this.deleteGroupArray = this.groupJson.group[gindex];
  18413. this.groupIndex = gindex;
  18414. this.dialogVisibleDeleteGroup = true;
  18415. },
  18416. async deleteChair() {
  18417. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18418. const gid =
  18419. this.groupStudent[this.toolindex][this.groupIndex][
  18420. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18421. this.checkDeleteGroup[i]
  18422. )
  18423. ];
  18424. let params = [
  18425. {
  18426. gid: gid.id,
  18427. },
  18428. ];
  18429. var a = await this.deleteChairA(params);
  18430. if (i == this.checkDeleteGroup.length - 1) {
  18431. this.$message.success("退出成功");
  18432. this.dialogVisibleDeleteGroup = false;
  18433. this.deleteGroupUser = [];
  18434. this.deleteGroupArray = {};
  18435. this.groupIndex = "";
  18436. this.checkDeleteGroup = [];
  18437. this.getCourseDetail(2);
  18438. }
  18439. }
  18440. },
  18441. deleteChairA(params) {
  18442. return new Promise((resolve, reject) => {
  18443. this.ajax
  18444. .post(this.$store.state.api + "exitGroup", params)
  18445. .then((res) => {
  18446. resolve(1);
  18447. })
  18448. .catch((err) => {
  18449. this.$message.error("网络不佳");
  18450. console.error(err);
  18451. });
  18452. });
  18453. },
  18454. contract(i) {
  18455. if (this.isCloseList[i].isClose == 0) {
  18456. this.isCloseList[i].isClose = 1;
  18457. } else {
  18458. this.isCloseList[i].isClose = 0;
  18459. }
  18460. this.$forceUpdate();
  18461. },
  18462. openWordCloud(toolindex) {
  18463. let array = [];
  18464. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18465. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18466. array.push({ name: works });
  18467. }
  18468. if (this.isGroup) {
  18469. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18470. let works = this.courseGroup.group[i].works[toolindex];
  18471. for (var j = 0; j < works.length; j++) {
  18472. let answer = JSON.parse(works[j].works)[0].answer;
  18473. array.push({ name: answer });
  18474. }
  18475. }
  18476. }
  18477. this.wordCloudData = array;
  18478. this.dialogVisibleWordCloud = true;
  18479. },
  18480. uploadWorks(i) {
  18481. this.$confirm("确定导出作业吗?", "提示", {
  18482. confirmButtonText: "确定",
  18483. cancelButtonText: "取消",
  18484. type: "warning",
  18485. })
  18486. .then(() => {
  18487. const loading = this.$loading.service({
  18488. background: "rgba(255, 255, 255, 0.7)",
  18489. target: document.body,
  18490. text: "文件加载中...",
  18491. });
  18492. const _worksStudent = this.worksStudent;
  18493. let url = [];
  18494. var counts = {};
  18495. for (var l = 0; l < _worksStudent[i].length; l++) {
  18496. var item = _worksStudent[i][l];
  18497. var name = item.sName;
  18498. if (!counts.hasOwnProperty(name)) {
  18499. counts[name] = 0;
  18500. } else {
  18501. counts[name]++;
  18502. }
  18503. if (counts[name] > 0) {
  18504. item.sName += " (" + counts[name] + ")";
  18505. }
  18506. }
  18507. for (var l = 0; l < _worksStudent[i].length; l++) {
  18508. var item = _worksStudent[i][l];
  18509. if (
  18510. item.works.indexOf(
  18511. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18512. ) !== -1 &&
  18513. item.works.indexOf("img") === -1
  18514. ) {
  18515. url.push({ name: item.sName, url: item.works });
  18516. }
  18517. }
  18518. // var toolList = [
  18519. // { name: "电子白板", tool: 1 },
  18520. // { name: "思维导图", tool: 3 },
  18521. // { name: "协同文档", tool: 6 },
  18522. // { name: "思维网格", tool: 7 },
  18523. // { name: "素材库", tool: 8 },
  18524. // { name: "学习资料", tool: 17 },
  18525. // { name: "便签", tool: 2 },
  18526. // { name: "问卷调查", tool: 4 },
  18527. // { name: "选择题", tool: 45 },
  18528. // { name: "倒计时", tool: 10 },
  18529. // { name: "问答", tool: 15 },
  18530. // { name: "课程设计", tool: 26 },
  18531. // { name: "训练服务器", tool: 18 },
  18532. // { name: "作业提交", tool: 16 },
  18533. // { name: "批量上传", tool: 50 },
  18534. // { name: "AIoT Blockly", tool: 21 },
  18535. // { name: "AI Python", tool: 23 },
  18536. // { name: "AI Blockly", tool: 24 },
  18537. // { name: "目标管理", tool: 25 },
  18538. // { name: "数学画板", tool: 31 },
  18539. // { name: "翻译", tool: 28 },
  18540. // { name: "魔盒识字", tool: 37 },
  18541. // { name: "数学画板", tool: 31 },
  18542. // { name: "24点", tool: 38 },
  18543. // { name: "GeoGebra", tool: 39 },
  18544. // { name: "源码编辑", tool: 32 },
  18545. // { name: "个人评价", tool: 40 },
  18546. // { name: "选择匹配", tool: 41 },
  18547. // { name: "汉字宫", tool: 44 },
  18548. // { name: "排序", tool: 47 },
  18549. // { name: "表格", tool: 48 },
  18550. // { name: "文档", tool: 52 },
  18551. // { name: "学生分组", tool: 49 },
  18552. // { name: "CocoPi", tool: 57 },
  18553. // { name: "模拟驾驶", tool: 58 },
  18554. // { name: "路径搜索", tool: 59 },
  18555. // { name: "深度学习", tool: 60 },
  18556. // { name: "全历史", tool: 61 },
  18557. // { name: "交互视频", tool: 62 },
  18558. // { name: "海龟编程", tool: 63 },
  18559. // { name: "挑人", tool: 65 },
  18560. // { name: "公式编辑", tool: 66 },
  18561. // { name: "分子结构", tool: 67 },
  18562. // { name: "时间轴", tool: 68 },
  18563. // ];
  18564. // var toolName = "";
  18565. // for(var w = 0;w<toolList.length;w++){
  18566. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18567. // toolName = toolList[w].name;
  18568. // }
  18569. // }
  18570. console.log(url);
  18571. this.downLoadAll(url, loading);
  18572. })
  18573. .catch(() => {});
  18574. },
  18575. downLoadAll(url, loading) {
  18576. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18577. const zip = new JSZip();
  18578. const cache = {};
  18579. const promises = [];
  18580. data.forEach((item) => {
  18581. const promise = getFile(item.url).then((data) => {
  18582. if (data.data != 1) {
  18583. // 下载文件, 并存成ArrayBuffer对象
  18584. const file_name =
  18585. item.name +
  18586. "." +
  18587. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18588. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18589. cache[file_name] = data.data;
  18590. }
  18591. });
  18592. promises.push(promise);
  18593. });
  18594. Promise.all(promises).then(() => {
  18595. zip.generateAsync({ type: "blob" }).then((content) => {
  18596. // 生成二进制流
  18597. FileSaver.saveAs(
  18598. content,
  18599. this.courseDetail.title + "-" + "作业提交工具.zip"
  18600. ); // 利用file-saver保存文件 自定义文件名
  18601. setTimeout(() => {
  18602. loading.close();
  18603. }, 2000);
  18604. });
  18605. });
  18606. },
  18607. pickStudent(stu) {
  18608. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18609. return;
  18610. }
  18611. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18612. confirmButtonText: "确定",
  18613. cancelButtonText: "取消",
  18614. type: "warning",
  18615. })
  18616. .then(() => {
  18617. let params = [
  18618. {
  18619. uid: stu.userid,
  18620. cid: this.id,
  18621. stage: this.courseType,
  18622. task: this.taskCount,
  18623. tool: this.toolindex,
  18624. },
  18625. ];
  18626. this.ajax
  18627. .post(this.$store.state.api + "updateCoursePick", params)
  18628. .then((res) => {
  18629. this.$message.success("操作成功");
  18630. this.getPick();
  18631. })
  18632. .catch((err) => {
  18633. this.$message.error("网络不佳");
  18634. console.error(err);
  18635. });
  18636. })
  18637. .catch(() => {});
  18638. },
  18639. selectUser(){
  18640. let params = {
  18641. userid: this.userid,
  18642. };
  18643. this.ajax
  18644. .get(this.$store.state.api + "selectUser", params)
  18645. .then((res) => {
  18646. this.userMes = res.data[0];
  18647. })
  18648. .catch((err) => {
  18649. console.error(err);
  18650. });
  18651. },
  18652. setEngText(i){
  18653. this.newEngIndex = i;
  18654. this.$forceUpdate();
  18655. },
  18656. addCorrect(){
  18657. this.$confirm("你确定提交批改嘛?", "提示", {
  18658. confirmButtonText: "确定",
  18659. showCancelButton: false,
  18660. closeOnClickModal: false,
  18661. type: "warning",
  18662. })
  18663. .then(() => {
  18664. let params = {
  18665. cid: this.id,
  18666. s: parseInt(this.courseType),
  18667. t: this.taskCount,
  18668. tool: this.toolindex,
  18669. wid: this.engWid,
  18670. c: this.userid,
  18671. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18672. };
  18673. this.ajax
  18674. .get(this.$store.state.api + "addEngC", params)
  18675. .then((res) => {
  18676. this.$message.success("提交成功");
  18677. this.engUpdateDialogVisible = false;
  18678. })
  18679. .catch((err) => {
  18680. console.error(err);
  18681. });
  18682. })
  18683. .catch(() => {});
  18684. },
  18685. selectEngC(id,z){
  18686. let params = {
  18687. workid: id,
  18688. };
  18689. this.ajax
  18690. .get(this.$store.state.api + "selectEngC", params)
  18691. .then((res) => {
  18692. if(res.data[0].length == 0){
  18693. this.newEnglishList.engTitle = z.engTitle;
  18694. this.newEnglishList.engText = z.engText;
  18695. }else{
  18696. var a = res.data[0];
  18697. if(this.userMes[0].type == 2){
  18698. var snum = 0;
  18699. for(var i = 0;i<a.length;i++){
  18700. if(this.userMes[0].userid == a[i].correct){
  18701. this.newEnglishList = JSON.parse(a[i].cWork);
  18702. snum = 1;
  18703. }
  18704. }
  18705. if(snum == 0){
  18706. this.newEnglishList = { engTitle:"",engText:"" };
  18707. this.newEnglishList.engTitle = z.engTitle;
  18708. this.newEnglishList.engText = z.engText;
  18709. }
  18710. }else if(this.userMes[0].type == 1){
  18711. var num = 0;
  18712. for(var w= 0;w<a.length;w++){
  18713. if(this.userMes[0].userid == a[w].correct){
  18714. num = 1;
  18715. }
  18716. }
  18717. if(num == 0){
  18718. this.isNoUserid = true;
  18719. var c = JSON.parse(JSON.stringify(z));
  18720. this.oldEnglishJson1 = c;
  18721. }else{
  18722. this.isNoUserid = false;
  18723. }
  18724. var b = a.sort((item, index) => {
  18725. if (item.correct === this.userMes[0].userid) {
  18726. return -1; // 将a移到前面
  18727. } else if (index.correct === this.userMes[0].userid) {
  18728. return 1; // 将b移到前面
  18729. } else {
  18730. return 0; // 保持默认顺序
  18731. }
  18732. });
  18733. this.newEnglishList1 = b;
  18734. }
  18735. }
  18736. this.engUpdateDialogVisible = true;
  18737. this.$forceUpdate();
  18738. setTimeout(() => {
  18739. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18740. if(this.newEnglishList1.length > 0){
  18741. if(this.isNoUserid == true){
  18742. this.engListLength = this.newEnglishList1.length + 1;
  18743. this.newEngIndex = -1;
  18744. }else{
  18745. this.engListLength = this.newEnglishList1.length;
  18746. this.newEngIndex = 0;
  18747. }
  18748. }
  18749. }, 500);
  18750. })
  18751. .catch((err) => {
  18752. console.error(err);
  18753. });
  18754. },
  18755. getPick() {
  18756. let params = {
  18757. cid: this.id,
  18758. };
  18759. this.ajax
  18760. .get(this.$store.state.api + "getPick", params)
  18761. .then((res) => {
  18762. let array = [];
  18763. for (var i = 0; i < res.data[0].length; i++) {
  18764. array.push(res.data[0][i].userid);
  18765. }
  18766. this.isPickStudent = array;
  18767. if (array.indexOf(this.userid) !== -1) {
  18768. this.$confirm("你被老师选到啦!", "提示", {
  18769. confirmButtonText: "确定",
  18770. showCancelButton: false,
  18771. closeOnClickModal: false,
  18772. type: "warning",
  18773. })
  18774. .then(() => {
  18775. let pa = [
  18776. {
  18777. uid: this.userid,
  18778. cid: this.id,
  18779. },
  18780. ];
  18781. this.ajax
  18782. .post(this.$store.state.api + "deletePick", pa)
  18783. .then((res) => {
  18784. this.getPick();
  18785. })
  18786. .catch((err) => {
  18787. this.$message.error("网络不佳");
  18788. console.error(err);
  18789. });
  18790. })
  18791. .catch(() => {});
  18792. }
  18793. })
  18794. .catch((err) => {
  18795. this.$message.error("网络不佳");
  18796. console.error(err);
  18797. });
  18798. },
  18799. },
  18800. directives: {
  18801. // 使用局部注册指令的方式
  18802. resize: {
  18803. // 指令的名称
  18804. bind(el, binding) {
  18805. // el为绑定的元素,binding为绑定给指令的对象
  18806. let width = "",
  18807. height = "";
  18808. function isReize() {
  18809. const style = document.defaultView.getComputedStyle(el);
  18810. if (width !== style.width || height !== style.height) {
  18811. binding.value(); // 关键
  18812. }
  18813. width = style.width;
  18814. height = style.height;
  18815. }
  18816. el.__vueSetInterval__ = setInterval(isReize, 300);
  18817. },
  18818. unbind(el) {
  18819. clearInterval(el.__vueSetInterval__);
  18820. },
  18821. },
  18822. },
  18823. beforeDestroy() {
  18824. window.onresize = null;
  18825. clearInterval(this.timer);
  18826. this.timer = null;
  18827. clearInterval(this.opertimer);
  18828. this.opertimer = null;
  18829. },
  18830. computed: {
  18831. getHeight(){
  18832. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18833. },
  18834. contentConvent() {
  18835. return function (c) {
  18836. return c
  18837. ? c
  18838. .replaceAll(/\r\n/g, "<br/>")
  18839. .replaceAll(/\n/g, "<br/>")
  18840. .replaceAll(/\s/g, " &nbsp")
  18841. : "";
  18842. };
  18843. },
  18844. checkUpload() {
  18845. return function () {
  18846. var studentK = [];
  18847. if (this.plworkFile.length > 0) {
  18848. for (var z = 0; z < this.plworkFile.length; z++) {
  18849. studentK.push(this.plworkFile[z].username);
  18850. }
  18851. studentK = studentK.join(",");
  18852. }
  18853. var a = this.uploadStudentJuri.filter((el) => {
  18854. return studentK.indexOf(el.userid) == -1;
  18855. });
  18856. return a;
  18857. };
  18858. },
  18859. getSName() {
  18860. return function (name) {
  18861. var check = name;
  18862. this.uploadStudentJuri.forEach((el) => {
  18863. if (el.userid == check) {
  18864. check = el.name ? el.name : el.username;
  18865. }
  18866. });
  18867. return check;
  18868. };
  18869. },
  18870. getImgList() {
  18871. return function (val) {
  18872. let srcList = []; // 定义一个数组用来接收后面的img地址
  18873. val.replace(
  18874. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18875. function (match, capture) {
  18876. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18877. srcList.push(capture);
  18878. }
  18879. );
  18880. return srcList;
  18881. };
  18882. },
  18883. },
  18884. mounted() {
  18885. document.body.addEventListener("click", (e) => {
  18886. if (this.isUpdateToolDetail1) {
  18887. this.updateToolDetail(this.toolDetailIndex);
  18888. }
  18889. });
  18890. if (this.screenType == 2) {
  18891. window.parent.postMessage({ allScreen: 4 }, "*");
  18892. } else if (this.screenType == 3) {
  18893. window.parent.postMessage({ allScreen: 5 }, "*");
  18894. } else if (this.screenType == 1) {
  18895. window.parent.postMessage({ allScreen: 6 }, "*");
  18896. }
  18897. this.setOperationTime();
  18898. this.selectEva();
  18899. this.getCourseDetail();
  18900. this.selectCount();
  18901. this.getHomeWork();
  18902. this.selectUser();
  18903. this.contentDialog = true;
  18904. this.setContent2(true);
  18905. if (this.tType == 4) {
  18906. this.pzDialog = true;
  18907. this.selectPz();
  18908. }
  18909. document.scrollingElement.scrollTop = 0;
  18910. window.addEventListener("resize", () => {
  18911. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18912. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18913. if (this.showType == 2 || this.showType == 3) {
  18914. document.getElementsByClassName("navBox")[0].style.height =
  18915. a - 40 + 46 + "px";
  18916. } else {
  18917. document.getElementsByClassName("navBox")[0].style.height =
  18918. a - 40 + "px";
  18919. }
  18920. });
  18921. let _this = this;
  18922. setTimeout(() => {
  18923. // _this.vedioTime = [];
  18924. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18925. // _this.vedioTime[i] = document.getElementsByClassName(
  18926. // "vjs-duration-display"
  18927. // )[i].textContent;
  18928. // }
  18929. }, 1000);
  18930. },
  18931. };
  18932. </script>
  18933. <style scoped>
  18934. @media screen and (max-width: 1280px) {
  18935. /* .courseIndex > div:first-child(2) {
  18936. width: 15% !important;
  18937. } */
  18938. /* .navText {
  18939. width: 120px !important;
  18940. } */
  18941. .evaCss {
  18942. flex-direction: column !important;
  18943. align-items: center !important;
  18944. }
  18945. .elist_input {
  18946. width: 90% !important;
  18947. }
  18948. .dialog_diy1 >>> .el-dialog {
  18949. width: 100% !important;
  18950. }
  18951. .rightWidthCss {
  18952. width: 100% !important;
  18953. }
  18954. .dialog_diy3 >>> .el-dialog {
  18955. width: 100% !important;
  18956. }
  18957. .addToolCss {
  18958. right: 0 !important;
  18959. width: 100% !important;
  18960. min-width: unset !important;
  18961. }
  18962. }
  18963. .evaCssMax {
  18964. flex-direction: column !important;
  18965. align-items: center !important;
  18966. }
  18967. .dialog_diy >>> .el-dialog {
  18968. margin-top: 10vh !important;
  18969. }
  18970. .body_student {
  18971. width: 77%;
  18972. height: 100%;
  18973. position: absolute;
  18974. left: 22%;
  18975. top: 0;
  18976. }
  18977. .student_head {
  18978. width: 100%;
  18979. margin: 20px auto 0;
  18980. padding-bottom: 20px;
  18981. display: flex;
  18982. flex-direction: column;
  18983. flex-wrap: nowrap;
  18984. align-items: flex-start;
  18985. justify-content: flex-start;
  18986. }
  18987. .pb_left {
  18988. width: 20%;
  18989. margin-right: 10px;
  18990. background: rgb(255, 255, 255);
  18991. position: fixed;
  18992. height: calc(100% - 40px);
  18993. border-radius: 20px;
  18994. padding-bottom: 15px;
  18995. box-sizing: border-box;
  18996. }
  18997. .wheel > img,
  18998. .project > img,
  18999. .star > img,
  19000. .evaluate > img,
  19001. .up_photo > img,
  19002. .chapter_add > img,
  19003. .deleteWord > img,
  19004. .question > img,
  19005. .homework > img {
  19006. width: 100%;
  19007. height: 100%;
  19008. }
  19009. .upCover > img {
  19010. width: 131px;
  19011. height: 69px;
  19012. object-fit: cover;
  19013. }
  19014. .upCover {
  19015. width: calc(100% / 3.5);
  19016. position: relative;
  19017. margin: 0 15px 10px 0;
  19018. display: flex;
  19019. flex-direction: column;
  19020. flex-wrap: nowrap;
  19021. justify-content: center;
  19022. align-content: center;
  19023. align-items: center;
  19024. height: fit-content;
  19025. }
  19026. .upCover2 {
  19027. width: 100%;
  19028. position: relative;
  19029. margin: 0 15px 10px 0;
  19030. display: flex;
  19031. flex-direction: column;
  19032. flex-wrap: nowrap;
  19033. justify-content: center;
  19034. align-content: center;
  19035. align-items: center;
  19036. }
  19037. .upCover2 > img {
  19038. width: 100%;
  19039. height: 90px;
  19040. object-fit: contain;
  19041. }
  19042. .chapter_add {
  19043. width: 120px;
  19044. position: relative;
  19045. text-align: center;
  19046. }
  19047. .isAddThings {
  19048. margin-top: 20px;
  19049. position: relative;
  19050. text-align: center;
  19051. background: #f7f8fa;
  19052. height: 90px;
  19053. width: 90px;
  19054. display: flex;
  19055. flex-direction: column;
  19056. justify-content: center;
  19057. }
  19058. .deleteWord {
  19059. width: 22px;
  19060. height: 22px;
  19061. position: absolute;
  19062. right: -5px;
  19063. top: -5px;
  19064. cursor: pointer;
  19065. }
  19066. .box_course {
  19067. /* width: 60%; */
  19068. width: calc(100% - 300px);
  19069. }
  19070. .wheel {
  19071. width: 100%;
  19072. /* height: 100%; */
  19073. height: 650px;
  19074. }
  19075. .right_box {
  19076. display: flex;
  19077. flex-direction: column;
  19078. margin-left: 30px;
  19079. justify-content: space-around;
  19080. }
  19081. .right_box_title {
  19082. font-size: 23px;
  19083. }
  19084. .people {
  19085. display: flex;
  19086. }
  19087. .student_body {
  19088. width: 100%;
  19089. margin: 0 auto;
  19090. margin-top: 10px;
  19091. padding: 0 0 20px;
  19092. }
  19093. .study_top {
  19094. margin-top: 100px;
  19095. width: 100%;
  19096. height: auto;
  19097. padding-bottom: 20px;
  19098. }
  19099. .study_top .checkbox {
  19100. display: flex;
  19101. align-items: center;
  19102. padding: 15px 0 15px 30px;
  19103. flex: 0 0 auto;
  19104. font-weight: bold;
  19105. border-bottom: 1px solid #eee;
  19106. }
  19107. .study_top .check {
  19108. padding-bottom: 5px;
  19109. text-align: center;
  19110. cursor: pointer;
  19111. height: 30px;
  19112. box-sizing: border-box;
  19113. display: flex;
  19114. }
  19115. .study_top .checked {
  19116. border-bottom: 4px solid #3fc6a0;
  19117. padding-bottom: 5px;
  19118. color: #3fc6a0;
  19119. display: flex;
  19120. height: 35px;
  19121. }
  19122. .study_top .checked > div,
  19123. .study_top .check > div {
  19124. margin-right: 5px;
  19125. }
  19126. .videoTop {
  19127. display: flex;
  19128. flex-direction: row;
  19129. justify-content: space-between;
  19130. background: #fff;
  19131. align-items: center;
  19132. width: 95%;
  19133. padding: 20px;
  19134. }
  19135. .filebox {
  19136. display: flex;
  19137. flex-wrap: wrap;
  19138. flex-direction: column;
  19139. padding: 0 0 5px;
  19140. position: relative;
  19141. }
  19142. .filebox:before {
  19143. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19144. position: absolute;
  19145. top: 20px;
  19146. left: 13px;
  19147. border-left: 2px dotted #cad1dc;
  19148. height: calc(100% - 15px);
  19149. }
  19150. .toolHeng2 > div:last-child::before {
  19151. height: calc(100% - 43px);
  19152. }
  19153. .filebox .tooldetail {
  19154. width: calc(100% - 280px);
  19155. margin: 0px 12px;
  19156. padding: 12px 25px 0 13px;
  19157. line-height: 30px;
  19158. word-break: break-word;
  19159. background: #ffffff;
  19160. border-radius: 8px 8px 8px 8px;
  19161. opacity: 1;
  19162. border: 1px solid #cad1dc;
  19163. }
  19164. .file {
  19165. display: flex;
  19166. flex-direction: column;
  19167. align-items: center;
  19168. justify-content: center;
  19169. cursor: pointer;
  19170. width: 200px;
  19171. }
  19172. .file div {
  19173. margin-top: 10px;
  19174. width: 150px;
  19175. text-align: center;
  19176. overflow: hidden;
  19177. white-space: nowrap;
  19178. text-overflow: ellipsis;
  19179. }
  19180. .media {
  19181. display: flex;
  19182. flex-direction: column;
  19183. align-items: center;
  19184. justify-content: center;
  19185. margin: 0 20px 20px 0;
  19186. cursor: pointer;
  19187. margin: 12px 0 5px 15px;
  19188. overflow: hidden;
  19189. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19190. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19191. box-sizing: border-box;
  19192. }
  19193. .media img {
  19194. height: 90px;
  19195. width: 160px;
  19196. object-fit: cover;
  19197. }
  19198. .media .title {
  19199. padding: 5px;
  19200. text-align: left;
  19201. width: 100%;
  19202. box-sizing: border-box;
  19203. }
  19204. .media .btn {
  19205. width: 100%;
  19206. height: 35px;
  19207. line-height: 35px;
  19208. color: #fff;
  19209. background: #606060;
  19210. text-align: center;
  19211. overflow: hidden;
  19212. white-space: nowrap;
  19213. text-overflow: ellipsis;
  19214. }
  19215. .detail_content_top {
  19216. width: 100%;
  19217. padding: 25px 0 25px 0;
  19218. }
  19219. .detail_title {
  19220. text-align: center;
  19221. font-size: 24px;
  19222. }
  19223. .detail_time {
  19224. font-size: 13px;
  19225. padding: 15px 0 0 40px;
  19226. }
  19227. .detail_content {
  19228. line-height: 2pc;
  19229. width: 90%;
  19230. margin: 0 auto;
  19231. padding-top: 30px;
  19232. text-indent: 30px;
  19233. overflow: auto;
  19234. height: 200px;
  19235. }
  19236. .score_box >>> .el-rate {
  19237. margin-left: 10px;
  19238. }
  19239. .dialog_change >>> .el-dialog {
  19240. border-radius: 5px;
  19241. }
  19242. .dialog_change >>> .el-dialog__header {
  19243. background: #f2f2f2;
  19244. text-align: center;
  19245. }
  19246. .dialog_change >>> .el-dialog__title {
  19247. line-height: 5px;
  19248. }
  19249. .dialog_change >>> .el-dialog__body {
  19250. background: #fff;
  19251. padding: 10px 20px;
  19252. }
  19253. .score_box {
  19254. display: flex;
  19255. align-items: center;
  19256. margin-bottom: 18px;
  19257. margin-top: 20px;
  19258. }
  19259. .up_photo {
  19260. width: 120px;
  19261. cursor: pointer;
  19262. margin-top: 10px;
  19263. }
  19264. .up_photo2 {
  19265. width: 180px;
  19266. box-sizing: border-box;
  19267. min-width: 180px;
  19268. height: 180px;
  19269. max-height: 180px;
  19270. min-height: 180px;
  19271. cursor: pointer;
  19272. display: flex;
  19273. flex-direction: column;
  19274. align-items: center;
  19275. justify-content: center;
  19276. background: rgb(242, 246, 255);
  19277. /* padding: 25px; */
  19278. margin-bottom: 10px;
  19279. }
  19280. .up_photo2 img {
  19281. width: 50%;
  19282. height: auto;
  19283. }
  19284. .up_photo2 span {
  19285. color: #898989;
  19286. }
  19287. .plworkBox {
  19288. display: flex;
  19289. align-items: center;
  19290. margin-top: 10px;
  19291. flex-wrap: wrap;
  19292. }
  19293. .upload_send {
  19294. margin: 30px auto 30px;
  19295. width: 60%;
  19296. background: #3681fc;
  19297. text-align: center;
  19298. height: 35px;
  19299. line-height: 35px;
  19300. color: #fff;
  19301. border-radius: 5px;
  19302. cursor: pointer;
  19303. }
  19304. .marginT {
  19305. margin-top: 20px;
  19306. }
  19307. .cd_content_steps {
  19308. display: flex;
  19309. width: 90%;
  19310. justify-content: space-around;
  19311. border-top: 1px solid #eeeeee;
  19312. }
  19313. .cd_steps_box {
  19314. display: flex;
  19315. justify-content: center;
  19316. align-items: center;
  19317. flex-direction: column;
  19318. cursor: pointer;
  19319. }
  19320. .first {
  19321. display: flex;
  19322. align-items: center;
  19323. margin: 15px 0 20px 0;
  19324. font-size: 20px;
  19325. }
  19326. .first > div:nth-child(2) {
  19327. font-size: 16px !important;
  19328. padding-left: 10px;
  19329. line-height: 26px;
  19330. box-sizing: border-box;
  19331. }
  19332. .blue_box_one {
  19333. text-align: center;
  19334. color: #fff;
  19335. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19336. border-radius: 7px;
  19337. margin: 10px;
  19338. cursor: pointer;
  19339. width: 95%;
  19340. height: 45px;
  19341. display: flex;
  19342. flex-direction: row;
  19343. justify-content: flex-start;
  19344. align-items: center;
  19345. }
  19346. .blue_box_one > div:nth-child(1) {
  19347. line-height: 30px;
  19348. margin: 0 5px 0 10px;
  19349. width: 30%;
  19350. min-width: 70px;
  19351. border-radius: 4px;
  19352. }
  19353. .blue_box_one > div:nth-child(2) {
  19354. white-space: nowrap;
  19355. text-overflow: ellipsis;
  19356. overflow: hidden;
  19357. word-break: break-all;
  19358. width: 70%;
  19359. text-align: left;
  19360. margin-right: 10px;
  19361. max-width: calc(100% - 85px);
  19362. }
  19363. .blue_box_one > div:nth-child(2):hover {
  19364. overflow: hidden;
  19365. text-overflow: ellipsis;
  19366. white-space: nowrap;
  19367. cursor: pointer;
  19368. }
  19369. .upFile {
  19370. margin: 0 auto;
  19371. width: 120px;
  19372. background: #3681fc;
  19373. color: #fff;
  19374. height: 30px;
  19375. text-align: center;
  19376. line-height: 30px;
  19377. border-radius: 5px;
  19378. font-size: 14px;
  19379. cursor: pointer;
  19380. }
  19381. .courseTitle {
  19382. width: 85%;
  19383. margin: 10px auto 20px auto;
  19384. display: flex;
  19385. flex-direction: row;
  19386. align-items: center;
  19387. justify-content: space-between;
  19388. text-align: center;
  19389. }
  19390. .courseTitle .ctitle {
  19391. font-size: 20px;
  19392. font-weight: bold;
  19393. color: #0e1e33;
  19394. white-space: nowrap;
  19395. overflow: hidden;
  19396. text-overflow: ellipsis;
  19397. }
  19398. .inviteBox {
  19399. font-size: 14px;
  19400. margin-top: 5px;
  19401. color: #a6cbff;
  19402. text-align: center;
  19403. }
  19404. .courseTitle >>> .el-tooltip {
  19405. width: 100%;
  19406. white-space: nowrap;
  19407. overflow: hidden;
  19408. text-overflow: ellipsis;
  19409. word-break: break-word;
  19410. }
  19411. .ml {
  19412. margin-left: 20px;
  19413. color: #5b7dba;
  19414. border-left: 3px solid #5b7dba;
  19415. padding-left: 5px;
  19416. font-weight: bold;
  19417. }
  19418. .return {
  19419. width: 2rem;
  19420. height: 2rem;
  19421. cursor: pointer;
  19422. }
  19423. .return > img {
  19424. width: 100%;
  19425. height: 100%;
  19426. }
  19427. .returnBtn {
  19428. width: 86px;
  19429. height: 36px;
  19430. background: #3681fc;
  19431. border-radius: 4px;
  19432. color: #fff;
  19433. text-align: center;
  19434. line-height: 36px;
  19435. margin-right: 20px;
  19436. cursor: pointer;
  19437. font-size: 14px;
  19438. font-weight: 400;
  19439. display: flex;
  19440. flex-direction: row;
  19441. flex-wrap: nowrap;
  19442. align-items: center;
  19443. justify-content: center;
  19444. }
  19445. .reBtnIcon,
  19446. .commentIcon,
  19447. .vedioIcon,
  19448. .vedioIcon1 {
  19449. /* width: 36px; */
  19450. height: 36px;
  19451. border-radius: 4px;
  19452. position: relative;
  19453. /* background: #e0eafb; */
  19454. background: #0061ff;
  19455. cursor: pointer;
  19456. margin-right: 12px;
  19457. display: flex;
  19458. align-items: center;
  19459. padding: 0 10px;
  19460. box-sizing: border-box;
  19461. font-size: 14px;
  19462. color: #fff;
  19463. }
  19464. .reBtnIcon::before,
  19465. .commentIcon::before,
  19466. .vedioIcon::before,
  19467. .vedioIcon1::before {
  19468. content: "";
  19469. display: block;
  19470. background-size: 100% 100%;
  19471. background-repeat: no-repeat;
  19472. width: 20px;
  19473. height: 20px;
  19474. margin-right: 5px;
  19475. /* position: absolute; */
  19476. /* top: 8px;
  19477. left: 8px; */
  19478. }
  19479. .vedioIcon1 {
  19480. background: #f63564;
  19481. }
  19482. .reBtnIcon::before {
  19483. background-image: url("../../assets/icon/newIcons/refresh.png");
  19484. }
  19485. .commentIcon::before {
  19486. background-image: url("../../assets/icon/newIcons/comment.png");
  19487. }
  19488. .vedioIcon::before {
  19489. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19490. }
  19491. .vedioIcon1::before {
  19492. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19493. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19494. }
  19495. .tool {
  19496. display: flex;
  19497. flex-direction: column;
  19498. flex-wrap: nowrap;
  19499. width: 13%;
  19500. margin: 0 30px;
  19501. align-items: center;
  19502. position: relative;
  19503. padding: 10px 25px;
  19504. cursor: pointer;
  19505. }
  19506. .whiteBIcon {
  19507. width: 150px;
  19508. }
  19509. .whiteBIcon > img {
  19510. width: 100%;
  19511. height: 100%;
  19512. }
  19513. .mask {
  19514. background-color: rgba(0, 0, 0, 0);
  19515. position: fixed;
  19516. top: 0;
  19517. left: 0;
  19518. width: 100%;
  19519. height: 100%;
  19520. z-index: 20000;
  19521. display: flex;
  19522. align-items: center;
  19523. justify-content: center;
  19524. }
  19525. .progressBox {
  19526. width: 500px;
  19527. height: 180px;
  19528. background: #fff;
  19529. border-radius: 10px;
  19530. box-shadow: 0 0 6px 1px #bfbfbf;
  19531. display: flex;
  19532. align-items: center;
  19533. justify-content: center;
  19534. flex-direction: column;
  19535. position: relative;
  19536. color: #6c6c6c;
  19537. }
  19538. .progressBox >>> .el-progress-bar__outer {
  19539. background-color: #d1dfff !important;
  19540. }
  19541. .progressBox .lbox {
  19542. height: 50px;
  19543. font-size: 19px;
  19544. display: flex;
  19545. align-items: center;
  19546. color: #747474;
  19547. }
  19548. .progressBox .lbox img {
  19549. width: 40px;
  19550. margin-right: 20px;
  19551. }
  19552. .closeCss {
  19553. position: absolute;
  19554. top: 8px;
  19555. right: 8px;
  19556. cursor: pointer;
  19557. width: 20px;
  19558. height: 20px;
  19559. }
  19560. .closeCss > img {
  19561. width: 100%;
  19562. height: 100%;
  19563. }
  19564. .uploadVedio {
  19565. display: flex;
  19566. flex-direction: column;
  19567. flex-wrap: nowrap;
  19568. justify-content: center;
  19569. align-items: center;
  19570. margin: 0 15px 10px 0;
  19571. }
  19572. .uploadVedio > img {
  19573. width: 30px;
  19574. height: 30px;
  19575. }
  19576. .uploadVedio > span {
  19577. white-space: nowrap;
  19578. overflow: hidden;
  19579. text-overflow: ellipsis;
  19580. width: 75px;
  19581. margin-top: 7px;
  19582. }
  19583. .picName {
  19584. white-space: nowrap;
  19585. overflow: hidden;
  19586. text-overflow: ellipsis;
  19587. width: 75px;
  19588. margin-top: 7px;
  19589. }
  19590. .new_top {
  19591. display: flex;
  19592. background: #fff;
  19593. flex-direction: row;
  19594. justify-content: flex-start;
  19595. align-items: center;
  19596. height: 60px;
  19597. position: fixed;
  19598. top: 20px;
  19599. left: 22%;
  19600. width: 77%;
  19601. z-index: 999;
  19602. border-radius: 12px 12px 0 0;
  19603. border-bottom: 1px solid #cad1dc;
  19604. padding: 10px 0;
  19605. }
  19606. .new_topFixed {
  19607. width: 100%;
  19608. height: 40px;
  19609. position: fixed;
  19610. top: 0px;
  19611. display: block;
  19612. background: #f2f2f2;
  19613. z-index: 998;
  19614. }
  19615. .before {
  19616. position: absolute;
  19617. background: #c3dad4;
  19618. width: 6px;
  19619. height: 100%;
  19620. }
  19621. .courseIndex {
  19622. display: flex;
  19623. flex-direction: row;
  19624. align-items: center;
  19625. width: calc(100% - 745px);
  19626. }
  19627. .courseIndex > div:nth-child(1) {
  19628. margin: 0 0 0 10px;
  19629. font-size: 20px;
  19630. min-width: 100px;
  19631. font-weight: bold;
  19632. border-left: 4px solid #3363b9;
  19633. height: 32px;
  19634. text-align: center;
  19635. line-height: 35px;
  19636. }
  19637. .courseIndex > div:nth-child(2) {
  19638. font-size: 20px;
  19639. /* width: 300px; */
  19640. max-width: calc(100% - 105px);
  19641. white-space: nowrap;
  19642. overflow: hidden;
  19643. text-overflow: ellipsis;
  19644. }
  19645. .courseIndex > div:nth-child(3) {
  19646. border-bottom: 1px solid #d7d7d7;
  19647. padding-bottom: 5px;
  19648. background: #3681fc;
  19649. width: 55px;
  19650. min-width: 55px;
  19651. border-radius: 5px;
  19652. color: #fff;
  19653. text-align: center;
  19654. height: 20px;
  19655. line-height: 26px;
  19656. font-size: 14px;
  19657. margin: 0 0 0 10px;
  19658. }
  19659. .course_text {
  19660. padding: 20px 0 0 15px;
  19661. text-indent: 30px;
  19662. width: 80%;
  19663. min-height: 20px;
  19664. }
  19665. .vedioList {
  19666. background: #f2f2f2;
  19667. border: 1px solid #ececec;
  19668. /* width: 38.8%; */
  19669. width: 300px;
  19670. height: 445px;
  19671. border-radius: 10px;
  19672. overflow: hidden;
  19673. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19674. }
  19675. .vedioNav {
  19676. margin: 10px 0 0 15px;
  19677. border-bottom: 1px solid #d7d7d7;
  19678. padding-bottom: 5px;
  19679. background: #3681fc;
  19680. width: 55px;
  19681. min-width: 55px;
  19682. border-radius: 5px;
  19683. color: #fff;
  19684. text-align: center;
  19685. height: 20px;
  19686. line-height: 26px;
  19687. font-size: 14px;
  19688. }
  19689. .queTop {
  19690. display: flex;
  19691. padding: 20px 0 20px 30px;
  19692. width: 100%;
  19693. flex-direction: row;
  19694. justify-content: flex-start;
  19695. align-items: center;
  19696. box-sizing: border-box;
  19697. }
  19698. .queTopTitle {
  19699. display: flex;
  19700. flex-direction: row;
  19701. flex-wrap: nowrap;
  19702. align-items: center;
  19703. font-weight: bold;
  19704. font-size: 20px;
  19705. color: rgb(14, 30, 51);
  19706. }
  19707. .queTopTitle::before {
  19708. content: "";
  19709. width: 2px;
  19710. height: 22px;
  19711. background: #3681fc;
  19712. border-radius: 3px;
  19713. display: block;
  19714. margin: 2px 6px 0 0;
  19715. }
  19716. .queTopRight {
  19717. display: flex;
  19718. flex-direction: row;
  19719. flex-wrap: nowrap;
  19720. align-items: center;
  19721. }
  19722. .queTopClose {
  19723. margin-right: 20px;
  19724. cursor: pointer;
  19725. position: relative;
  19726. display: flex;
  19727. }
  19728. .closeImg,
  19729. .openImg {
  19730. width: 25px;
  19731. height: 25px;
  19732. position: absolute;
  19733. left: -20px;
  19734. top: -1px;
  19735. }
  19736. .closeImg > img,
  19737. .openImg > img {
  19738. width: 100%;
  19739. height: 100%;
  19740. }
  19741. .question {
  19742. width: 40px;
  19743. margin-right: 10px;
  19744. margin-top: 7px;
  19745. }
  19746. .queTitle {
  19747. margin-left: 5px;
  19748. font-size: 25px;
  19749. display: flex;
  19750. align-items: center;
  19751. }
  19752. .addEditor {
  19753. width: 100px;
  19754. height: 30px;
  19755. background: #42cda6;
  19756. color: #fff;
  19757. border-radius: 5px;
  19758. text-align: center;
  19759. line-height: 30px;
  19760. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19761. cursor: pointer;
  19762. }
  19763. /* .vedioName {
  19764. cursor: pointer;
  19765. margin: 0px 0px 10px 5px;
  19766. white-space: nowrap;
  19767. overflow: hidden;
  19768. text-overflow: ellipsis;
  19769. width: 100%;
  19770. } */
  19771. .vedioTime {
  19772. width: 35px;
  19773. position: absolute;
  19774. color: #fff;
  19775. bottom: 0px;
  19776. right: 0px;
  19777. text-align: center;
  19778. background: #46411f;
  19779. height: 20px;
  19780. font-size: 14px;
  19781. line-height: 20px;
  19782. }
  19783. .homework {
  19784. width: 200px;
  19785. display: flex;
  19786. flex-direction: column;
  19787. flex-wrap: nowrap;
  19788. align-items: center;
  19789. cursor: pointer;
  19790. }
  19791. .homebox {
  19792. display: flex;
  19793. flex-wrap: wrap;
  19794. flex-direction: row;
  19795. justify-content: flex-start;
  19796. align-items: center;
  19797. padding: 15px 0;
  19798. }
  19799. .isChooseActive {
  19800. color: #3681fc !important;
  19801. font-weight: bold !important;
  19802. }
  19803. .chooseWho {
  19804. display: flex;
  19805. width: 100%;
  19806. flex-direction: row;
  19807. flex-wrap: nowrap;
  19808. justify-content: flex-start;
  19809. padding-bottom: 10px;
  19810. }
  19811. .chooseWho > div {
  19812. cursor: pointer;
  19813. padding-bottom: 10px;
  19814. margin: 0 30px 0 0;
  19815. font-weight: 400;
  19816. color: #0e1e33;
  19817. }
  19818. .addPoint > div > img {
  19819. cursor: pointer;
  19820. width: 85px;
  19821. border-radius: 15px;
  19822. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19823. }
  19824. .addPoint > div {
  19825. display: flex;
  19826. flex-direction: column;
  19827. flex-wrap: nowrap;
  19828. align-items: center;
  19829. }
  19830. .isBorder > div {
  19831. margin: 0 0 10px 0;
  19832. align-items: flex-start !important;
  19833. }
  19834. .noiframeBox {
  19835. display: flex;
  19836. flex-wrap: wrap;
  19837. }
  19838. .iframeBox iframe {
  19839. width: 100%;
  19840. height: 800px;
  19841. border: none;
  19842. margin-bottom: 20px;
  19843. border: 1px solid #ccc;
  19844. }
  19845. .upload_toolBtn {
  19846. background: #3681fc;
  19847. color: #fff;
  19848. width: 110px;
  19849. text-align: center;
  19850. height: 35px;
  19851. line-height: 35px;
  19852. font-size: 14px;
  19853. border-radius: 5px;
  19854. cursor: pointer;
  19855. position: absolute;
  19856. right: 10px;
  19857. bottom: 0;
  19858. }
  19859. .binfo_input,
  19860. .pj {
  19861. font: inherit;
  19862. color: currentColor;
  19863. width: 100%;
  19864. margin: 0;
  19865. padding: 15px 14px;
  19866. display: block;
  19867. min-width: 0;
  19868. outline: none;
  19869. box-sizing: content-box;
  19870. background: none;
  19871. -webkit-tap-highlight-color: transparent;
  19872. border: 1px solid rgba(0, 0, 0, 0.23);
  19873. border-radius: 4px;
  19874. box-sizing: border-box;
  19875. resize: none;
  19876. }
  19877. .binfo_input:focus-visible {
  19878. border: 1px solid rgba(61, 103, 188);
  19879. }
  19880. .dialog_diy >>> .el-dialog__header,
  19881. .dialog_diy1 >>> .el-dialog__header {
  19882. background: #454545 !important;
  19883. padding: 15px 20px;
  19884. }
  19885. .dialog_diy >>> .el-dialog__title,
  19886. .dialog_diy1 >>> .el-dialog__title {
  19887. color: #fff;
  19888. }
  19889. .dialog_diy >>> .el-dialog__headerbtn,
  19890. .dialog_diy1 >>> .el-dialog__headerbtn {
  19891. top: 19px;
  19892. }
  19893. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19894. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19895. color: #fff;
  19896. }
  19897. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19898. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19899. color: #fff;
  19900. }
  19901. .dialog_diy1 >>> .el-dialog__body {
  19902. padding: 0;
  19903. }
  19904. .dialog_diy >>> .el-dialog__body,
  19905. .dialog_diy >>> .el-dialog__footer,
  19906. .dialog_diy1 >>> .el-dialog__footer {
  19907. background: #fafafa;
  19908. }
  19909. .a_addBox {
  19910. padding: 0 0 0 15px;
  19911. }
  19912. .a_add_box {
  19913. padding: 10px;
  19914. background: #fff;
  19915. margin-bottom: 10px;
  19916. border-radius: 5px;
  19917. box-shadow: 0 0 5px 0 #d5d5d5;
  19918. }
  19919. .a_add_head {
  19920. display: flex;
  19921. align-items: flex-start;
  19922. /* justify-content: space-between; */
  19923. flex-direction: column;
  19924. /* flex-direction: row; */
  19925. margin: 10px 0 20px 0;
  19926. font-size: 18px;
  19927. width: 100%;
  19928. }
  19929. .askIndex {
  19930. background: #3681fc;
  19931. border-radius: 50%;
  19932. color: #fff;
  19933. width: 25px;
  19934. height: 25px;
  19935. min-width: 25px;
  19936. min-height: 25px;
  19937. text-align: center;
  19938. line-height: 25px;
  19939. margin-right: 5px;
  19940. }
  19941. .a_add_head .a_add_head_input {
  19942. width: 300px;
  19943. }
  19944. .a_add_head .a_add_head_div {
  19945. display: flex;
  19946. align-items: center;
  19947. justify-content: space-between;
  19948. }
  19949. .a_add_body {
  19950. display: flex;
  19951. align-items: center;
  19952. }
  19953. .a_add_input {
  19954. display: flex;
  19955. align-items: center;
  19956. flex-wrap: wrap;
  19957. width: 100%;
  19958. }
  19959. .a_add_input >>> .el-radio-group,
  19960. .a_add_input >>> .el-checkbox-group {
  19961. width: 100%;
  19962. }
  19963. .a_add_input >>> .el-radio,
  19964. .a_add_input >>> .el-checkbox {
  19965. display: flex;
  19966. flex-direction: row;
  19967. flex-wrap: nowrap;
  19968. align-items: center;
  19969. padding: 15px 0;
  19970. }
  19971. .a_add_input >>> .el-radio:not(:last-child),
  19972. .a_add_input >>> .el-checkbox:not(:last-child) {
  19973. width: 100%;
  19974. border-bottom: 1px solid #efefef;
  19975. }
  19976. .redioStyle >>> .el-radio__label {
  19977. font-size: 18px;
  19978. }
  19979. .redioStyle >>> .el-radio__label > span,
  19980. .redioStyle >>> .el-checkbox__label > span {
  19981. word-break: break-all;
  19982. white-space: normal;
  19983. }
  19984. .redioStyle >>> .el-checkbox__label {
  19985. font-size: 18px;
  19986. }
  19987. .toolHeng2 {
  19988. width: 100%;
  19989. padding-left: 37px;
  19990. box-sizing: border-box;
  19991. }
  19992. .workNav {
  19993. font-size: 20px;
  19994. font-weight: bold;
  19995. color: #0e1e33;
  19996. display: flex;
  19997. flex-direction: row;
  19998. flex-wrap: nowrap;
  19999. align-items: center;
  20000. padding: 15px 0 15px 0;
  20001. }
  20002. .workNav::before {
  20003. content: "";
  20004. width: 2px;
  20005. height: 22px;
  20006. background: #3681fc;
  20007. border-radius: 3px;
  20008. display: block;
  20009. margin: 2px 6px 0 0;
  20010. }
  20011. .toolHeng {
  20012. display: flex;
  20013. flex-direction: row;
  20014. flex-wrap: wrap;
  20015. justify-content: flex-start;
  20016. align-items: center;
  20017. width: 100%;
  20018. }
  20019. .toolHeng > div {
  20020. padding-left: 20px;
  20021. }
  20022. .isWidth {
  20023. width: 20%;
  20024. }
  20025. .textTitle {
  20026. display: flex;
  20027. flex-direction: row;
  20028. flex-wrap: nowrap;
  20029. align-items: center;
  20030. width: 95%;
  20031. }
  20032. .textTitle >>> .el-form-item__label {
  20033. font-size: 22px;
  20034. color: #918f8f;
  20035. width: 100px;
  20036. }
  20037. .textTitle >>> .el-form-item__content {
  20038. width: calc(100% - 100px);
  20039. }
  20040. .textCss >>> .el-dialog {
  20041. width: 800px !important;
  20042. height: 400px;
  20043. background: #fafafa;
  20044. }
  20045. .textCss >>> .el-dialog__body {
  20046. margin: 55px 8% 0 8%;
  20047. padding: 0 !important;
  20048. }
  20049. .textCss >>> .el-dialog__footer {
  20050. padding-top: 38px;
  20051. }
  20052. .toolsCss >>> .el-dialog__body {
  20053. padding: 20px;
  20054. }
  20055. .lineCss >>> .el-dialog__body {
  20056. display: flex;
  20057. flex-direction: row;
  20058. align-items: center;
  20059. justify-content: center;
  20060. }
  20061. .newNav {
  20062. display: flex;
  20063. flex-direction: row;
  20064. align-items: baseline;
  20065. justify-content: flex-start;
  20066. }
  20067. .navListItem {
  20068. width: 280px;
  20069. height: 50px;
  20070. margin: 0px auto 10px;
  20071. display: flex;
  20072. flex-direction: row;
  20073. flex-wrap: nowrap;
  20074. align-items: center;
  20075. justify-content: space-between;
  20076. background: #f0f4fa;
  20077. border-radius: 6px 6px 6px 6px;
  20078. }
  20079. .navText {
  20080. cursor: pointer;
  20081. white-space: nowrap;
  20082. overflow: hidden;
  20083. text-overflow: ellipsis;
  20084. width: 220px;
  20085. padding: 0 10px;
  20086. font-weight: 400;
  20087. color: #0e1e33;
  20088. }
  20089. .downIcon {
  20090. width: 20px;
  20091. min-width: 20px;
  20092. height: 20px;
  20093. margin-right: 15px;
  20094. cursor: pointer;
  20095. }
  20096. .downIcon > img {
  20097. width: 100%;
  20098. height: 100%;
  20099. }
  20100. .noVedio {
  20101. display: flex;
  20102. flex-direction: row;
  20103. justify-content: center;
  20104. align-content: center;
  20105. }
  20106. .noNavText {
  20107. cursor: pointer;
  20108. margin: 0px 0px 10px 5px;
  20109. width: 112px;
  20110. }
  20111. .listNoVedio {
  20112. margin: 0 0 0 30px;
  20113. width: 97%;
  20114. }
  20115. .video-player >>> .video-js {
  20116. height: 100%;
  20117. }
  20118. .hangVedioList {
  20119. width: 90% !important;
  20120. height: 150px !important;
  20121. margin: 20px 0 0 30px;
  20122. }
  20123. .hangVedio {
  20124. width: 100%;
  20125. height: 170px !important;
  20126. align-items: flex-start !important;
  20127. }
  20128. .hangHand {
  20129. height: 150px !important;
  20130. }
  20131. .twoChild {
  20132. width: 95%;
  20133. margin: 10px;
  20134. border-radius: 5px;
  20135. background: #f2f2f2;
  20136. display: flex;
  20137. flex-direction: column;
  20138. flex-wrap: nowrap;
  20139. justify-content: flex-start;
  20140. align-items: flex-start;
  20141. transition: all 0.5s;
  20142. overflow: hidden;
  20143. height: 0;
  20144. background: #e7f3ff;
  20145. }
  20146. .twoChild > div:nth-child(1) {
  20147. margin-top: 5px;
  20148. }
  20149. .navChild {
  20150. width: 100%;
  20151. cursor: pointer;
  20152. margin-bottom: 10px;
  20153. position: relative;
  20154. }
  20155. .navChild img {
  20156. position: absolute;
  20157. right: 11px;
  20158. width: 15px;
  20159. top: 50%;
  20160. transform: translateY(-50%);
  20161. }
  20162. .navActive,
  20163. .toolActive {
  20164. height: auto !important;
  20165. overflow: auto !important;
  20166. /* padding-bottom: 16px; */
  20167. }
  20168. .toolActive {
  20169. padding: 0;
  20170. }
  20171. .navTask {
  20172. display: flex;
  20173. flex-direction: row;
  20174. flex-wrap: nowrap;
  20175. align-items: center;
  20176. align-content: flex-start;
  20177. height: 40px;
  20178. justify-content: flex-start;
  20179. padding: 0 10px;
  20180. width: 100%;
  20181. box-sizing: border-box;
  20182. }
  20183. .navTaskname {
  20184. white-space: nowrap;
  20185. text-overflow: ellipsis;
  20186. overflow: hidden;
  20187. word-break: break-all;
  20188. padding-left: 5px;
  20189. }
  20190. .openTaskActive {
  20191. background-color: #e0eafb !important;
  20192. color: #0061ff;
  20193. }
  20194. .iframeName {
  20195. margin: 5px 0;
  20196. border-left: 4px solid #41c4a4;
  20197. padding-left: 4px;
  20198. }
  20199. .toolTitle {
  20200. margin: 0px 0px 20px;
  20201. font-size: 20px;
  20202. font-weight: 500;
  20203. border-left: 4px solid #41c4a4;
  20204. padding-left: 4px;
  20205. }
  20206. .cru_selectBox {
  20207. overflow: auto;
  20208. width: 95%;
  20209. margin: 17px auto 0;
  20210. height: calc(100% - 40px - 21px - 20px - 17px);
  20211. background: #fff;
  20212. border-radius: 8px;
  20213. }
  20214. .cru_selectBox::-webkit-scrollbar,
  20215. .study_top::-webkit-scrollbar,
  20216. .textContent::-webkit-scrollbar {
  20217. /*滚动条整体样式*/
  20218. width: 6px;
  20219. /*高宽分别对应横竖滚动条的尺寸*/
  20220. height: 6px;
  20221. }
  20222. /*定义滚动条轨道 内阴影+圆角*/
  20223. .cru_selectBox::-webkit-scrollbar-track,
  20224. .study_top::-webkit-scrollbar-track,
  20225. .textContent::-webkit-scrollbar {
  20226. border-radius: 10px;
  20227. background-color: #b8bdc9;
  20228. }
  20229. /*定义滑块 内阴影+圆角*/
  20230. .cru_selectBox::-webkit-scrollbar-thumb,
  20231. .study_top::-webkit-scrollbar-thumb,
  20232. .textContent::-webkit-scrollbar-thumb {
  20233. border-radius: 10px;
  20234. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20235. background-color: #2c5ab3;
  20236. }
  20237. .vedioBox {
  20238. border-radius: 0 0 20px 20px;
  20239. background: #fff;
  20240. overflow: auto;
  20241. }
  20242. .taskBox {
  20243. width: 98%;
  20244. background: #f0f4fa;
  20245. margin: 10px auto;
  20246. padding: 0 10px;
  20247. border-radius: 4px;
  20248. box-sizing: border-box;
  20249. }
  20250. .vedioTaskBox {
  20251. width: 100%;
  20252. display: flex;
  20253. flex-direction: row;
  20254. flex-wrap: nowrap;
  20255. align-items: flex-start;
  20256. position: relative;
  20257. }
  20258. .toolBox {
  20259. margin: 15px 0 0 25px;
  20260. display: flex;
  20261. position: relative;
  20262. padding: 18px 20px;
  20263. border-top-left-radius: 5px;
  20264. border-top-right-radius: 5px;
  20265. width: 90%;
  20266. }
  20267. .btnAll {
  20268. position: absolute;
  20269. right: 0;
  20270. display: flex;
  20271. flex-direction: row;
  20272. flex-wrap: nowrap;
  20273. align-items: center;
  20274. }
  20275. .btnLeft,
  20276. .btnRight {
  20277. display: flex;
  20278. flex-direction: row;
  20279. flex-wrap: nowrap;
  20280. align-items: center;
  20281. padding: 5px 0;
  20282. }
  20283. .btnLeft {
  20284. border-right: 1px solid #cad1dc;
  20285. }
  20286. .btnLeft > .custom-tooltip {
  20287. background: #3681fc;
  20288. color: #fff;
  20289. }
  20290. .last:hover {
  20291. background: #3383fa !important;
  20292. color: #fff;
  20293. border: 1px solid #3383fa !important;
  20294. }
  20295. .last,
  20296. .returnBtn1 {
  20297. width: 90px;
  20298. height: 36px;
  20299. background: #ffffff;
  20300. border-radius: 4px;
  20301. border: 1px solid #0061ff;
  20302. color: #0061ff;
  20303. cursor: pointer;
  20304. display: flex;
  20305. flex-direction: row;
  20306. flex-wrap: nowrap;
  20307. align-items: center;
  20308. justify-content: center;
  20309. margin-left: 12px;
  20310. }
  20311. .returnBtn1 {
  20312. background: #f0f4fa;
  20313. border-radius: 4px;
  20314. border: 1px solid #cad1dc;
  20315. margin: 0 12px;
  20316. }
  20317. .lastImg {
  20318. min-width: 15px;
  20319. width: 15px;
  20320. height: 15px;
  20321. }
  20322. .lastText {
  20323. padding: 0 5px 2px 5px;
  20324. box-sizing: border-box;
  20325. font-size: 14px;
  20326. }
  20327. .lastImg > img {
  20328. width: 100%;
  20329. height: 100%;
  20330. }
  20331. /* .vedioTimeBox {
  20332. display: flex;
  20333. flex-direction: row;
  20334. align-items: center;
  20335. flex-wrap: nowrap;
  20336. position: relative;
  20337. } */
  20338. .navBox {
  20339. background: #fff;
  20340. height: calc(100% - 40px);
  20341. overflow-y: auto;
  20342. overflow-x: hidden;
  20343. }
  20344. .worksBox {
  20345. margin: 0 0 10px 25px;
  20346. border-bottom: 1px solid #eeeeee;
  20347. padding: 18px 20px;
  20348. border-radius: 4px;
  20349. width: 90%;
  20350. }
  20351. .worksBTitle {
  20352. font-size: 20px;
  20353. padding-bottom: 15px;
  20354. border-bottom: 1px solid #eeeeee;
  20355. display: flex;
  20356. align-items: center;
  20357. }
  20358. .greenBox {
  20359. width: 5px;
  20360. height: 30px;
  20361. background: #63b6fa;
  20362. margin-right: 5px;
  20363. }
  20364. .worksDetailBox {
  20365. display: flex;
  20366. width: 100%;
  20367. flex-direction: row;
  20368. flex-wrap: wrap;
  20369. align-items: flex-end;
  20370. justify-content: flex-start;
  20371. padding: 15px 0;
  20372. }
  20373. .works {
  20374. display: flex;
  20375. flex-direction: column;
  20376. flex-wrap: nowrap;
  20377. align-items: flex-start;
  20378. justify-content: flex-start;
  20379. align-content: center;
  20380. max-width: 240px;
  20381. width: calc(100% / 3 - 10px);
  20382. height: auto;
  20383. margin-right: 10px;
  20384. margin-bottom: 10px;
  20385. overflow: hidden;
  20386. height: 140px;
  20387. box-shadow: 0 0 6px 1px #dfdada;
  20388. border-radius: 15px;
  20389. }
  20390. .workImg {
  20391. width: 100%;
  20392. /* height: calc(100% - 40px); */
  20393. height: 105px;
  20394. position: relative;
  20395. }
  20396. .workImg > img {
  20397. width: 100%;
  20398. height: 100%;
  20399. object-fit: contain;
  20400. cursor: pointer;
  20401. }
  20402. .worksName {
  20403. height: 40px;
  20404. line-height: 40px;
  20405. display: flex;
  20406. width: 100%;
  20407. flex-direction: row;
  20408. flex-wrap: nowrap;
  20409. justify-content: space-between;
  20410. align-items: center;
  20411. margin: 0 0 0 10px;
  20412. }
  20413. .worksName > div:nth-child(1) {
  20414. width: 110px;
  20415. white-space: nowrap;
  20416. overflow: hidden;
  20417. text-overflow: ellipsis;
  20418. }
  20419. .worksName > div:nth-child(2) {
  20420. color: #b7b4b5;
  20421. }
  20422. .noWorksS {
  20423. padding: 15px 0;
  20424. display: flex;
  20425. flex-direction: row;
  20426. flex-wrap: wrap;
  20427. align-items: center;
  20428. justify-content: flex-start;
  20429. }
  20430. .noWorksName,
  20431. .isWorksName,
  20432. .isWorksName2 {
  20433. background: #ddebf8;
  20434. color: #000;
  20435. width: 90px;
  20436. height: 25px;
  20437. text-align: center;
  20438. line-height: 25px;
  20439. border-radius: 4px;
  20440. margin: 10px 15px 10px 0;
  20441. white-space: nowrap;
  20442. overflow: hidden;
  20443. padding: 5px;
  20444. text-overflow: ellipsis;
  20445. cursor: pointer;
  20446. border: 1px solid #ddebf8;
  20447. }
  20448. .noWorksName {
  20449. background: #fff;
  20450. color: #0061ff;
  20451. border: 1px solid #0061ff;
  20452. }
  20453. .isWorksName2 {
  20454. width: 100px;
  20455. height: 40px;
  20456. line-height: 40px;
  20457. position: relative;
  20458. background: #dae6f9;
  20459. }
  20460. .isWorksName {
  20461. background: #e7ebf1 !important;
  20462. width: 100px;
  20463. height: 40px;
  20464. line-height: 40px;
  20465. position: relative;
  20466. color: #acb4bf;
  20467. border: 1px solid #cad1dc !important;
  20468. }
  20469. .isSelectName,
  20470. .noWorksName:hover {
  20471. background: #3383fa !important;
  20472. color: #fff !important;
  20473. border: 1px solid #3383fa !important;
  20474. }
  20475. .title {
  20476. background: #1e5cc9;
  20477. /* width: 98%; */
  20478. height: 45px;
  20479. color: #fff;
  20480. line-height: 45px;
  20481. padding-left: 20px;
  20482. box-sizing: border-box;
  20483. }
  20484. .textBox {
  20485. font-size: 20px;
  20486. width: 90%;
  20487. display: flex;
  20488. flex-direction: column;
  20489. align-items: center;
  20490. margin: 20px auto 0;
  20491. max-height: calc(100% - 75px);
  20492. overflow: auto;
  20493. }
  20494. .textContent {
  20495. font-size: 18px;
  20496. width: 95%;
  20497. max-width: 95%;
  20498. }
  20499. .answerBg {
  20500. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20501. background-size: 100% 100%;
  20502. width: 100%;
  20503. height: 100%;
  20504. color: #fff;
  20505. text-align: center;
  20506. display: flex;
  20507. flex-direction: column;
  20508. flex-wrap: nowrap;
  20509. align-items: center;
  20510. position: relative;
  20511. justify-content: center;
  20512. }
  20513. .answerBg > div:nth-child(1) {
  20514. /* font-size: 22px;
  20515. padding: 25px 0 10px; */
  20516. }
  20517. .answerContent {
  20518. width: 215px;
  20519. max-height: 60px;
  20520. word-break: break-all;
  20521. text-align: center;
  20522. /* white-space: nowrap; */
  20523. overflow: hidden;
  20524. text-overflow: ellipsis;
  20525. /* padding: 23px 0 0; */
  20526. -webkit-line-clamp: 3;
  20527. -webkit-box-orient: vertical;
  20528. display: -webkit-box;
  20529. font-size: 15px;
  20530. cursor: pointer;
  20531. }
  20532. .elist_input_box {
  20533. display: flex;
  20534. align-items: flex-start;
  20535. flex-wrap: nowrap;
  20536. padding: 10px 0 15px 30px;
  20537. flex-direction: column;
  20538. }
  20539. .elist_input {
  20540. /* width: 40%; */
  20541. width: 45%;
  20542. margin: 20px;
  20543. }
  20544. .elist_input .elist_input_box input {
  20545. font: inherit;
  20546. color: currentColor;
  20547. width: 200px;
  20548. padding: 8px 14px;
  20549. display: block;
  20550. min-width: 0;
  20551. outline: none;
  20552. border: 1px solid rgba(0, 0, 0, 0.23);
  20553. border-radius: 4px;
  20554. box-sizing: border-box;
  20555. background: #fff;
  20556. margin: 0 20px 0 0;
  20557. }
  20558. .elist_input .elist_input_box span {
  20559. height: 36px;
  20560. line-height: 36px;
  20561. color: rgb(82, 82, 82);
  20562. }
  20563. .elist_input .elist_input_box .remove {
  20564. height: 20px;
  20565. width: 20px;
  20566. background-size: 100% 100%;
  20567. background-position: unset;
  20568. margin-left: 5px;
  20569. }
  20570. .elist_input_box >>> .el-rate {
  20571. display: flex;
  20572. height: 36px;
  20573. align-items: center;
  20574. }
  20575. .elist_input_box .elist_inptu_text {
  20576. min-height: 50px;
  20577. /* width: 500px;
  20578. max-height: 150px; */
  20579. width: 100%;
  20580. line-height: 50px;
  20581. color: rgb(82, 82, 82);
  20582. overflow: auto;
  20583. text-indent: 5px;
  20584. background: #f7f6f9;
  20585. border-radius: 10px;
  20586. }
  20587. .elist_input_box .elist_inptu_text input {
  20588. width: 500px;
  20589. }
  20590. .elist_input_box >>> .el-rate__icon {
  20591. font-size: 24px;
  20592. }
  20593. .isClick {
  20594. background: #4d9def;
  20595. }
  20596. .bzBox {
  20597. display: flex;
  20598. flex-direction: row;
  20599. align-items: center;
  20600. }
  20601. .bzBox .yCss {
  20602. width: 7px;
  20603. height: 7px;
  20604. background: #fff;
  20605. margin: 0 16px 0 6px;
  20606. border-radius: 50%;
  20607. border: 5px solid #3681fc;
  20608. z-index: 99;
  20609. }
  20610. .bzBox > div:nth-child(2) {
  20611. font-size: 18px;
  20612. font-weight: bold;
  20613. color: #0e1e33;
  20614. }
  20615. .navTitile {
  20616. padding: 0 0px 0 15px;
  20617. font-size: 16px;
  20618. font-weight: bold;
  20619. color: #0e1e33;
  20620. height: 40px;
  20621. line-height: 40px;
  20622. }
  20623. .isTypeOne {
  20624. width: 240px;
  20625. height: 170px;
  20626. /* border: 1px solid #f8f8f8; */
  20627. border-radius: 10px;
  20628. box-shadow: 0 0 6px 1px #dfdada;
  20629. }
  20630. .e_add_top {
  20631. display: flex;
  20632. justify-content: space-between;
  20633. padding: 20px 20px 0 20px;
  20634. border-radius: 3px;
  20635. background: #fff;
  20636. }
  20637. .e_add_title2 {
  20638. display: flex;
  20639. align-items: center;
  20640. }
  20641. .e_add_title2 span {
  20642. width: 40px;
  20643. }
  20644. .e_add_title {
  20645. display: flex;
  20646. align-items: center;
  20647. color: #b8b8b8;
  20648. font-size: 18px;
  20649. position: relative;
  20650. height: 40px;
  20651. }
  20652. .e_add_title span {
  20653. margin-right: 10px;
  20654. }
  20655. .e_add_title .el_input {
  20656. width: 300px;
  20657. }
  20658. .e_add_title >>> .el-input__inner {
  20659. width: 400px;
  20660. }
  20661. .e_add_btn {
  20662. }
  20663. .e_add_content {
  20664. display: flex;
  20665. width: 100%;
  20666. max-width: 650px;
  20667. height: 550px;
  20668. }
  20669. .e_add_list {
  20670. background: #fff;
  20671. height: 500px;
  20672. width: 210px;
  20673. position: relative;
  20674. margin: 15px 5px 0 0;
  20675. flex-shrink: 0;
  20676. display: flex;
  20677. flex-direction: column;
  20678. }
  20679. .e_add_list_title {
  20680. font-size: 20px;
  20681. width: 100%;
  20682. box-sizing: border-box;
  20683. padding: 15px 40px;
  20684. text-align: center;
  20685. border-bottom: 1px solid #eaeaea;
  20686. position: relative;
  20687. display: flex;
  20688. align-items: center;
  20689. justify-content: center;
  20690. height: 57px;
  20691. background: #f6f6f6;
  20692. }
  20693. .e_add_list_title span {
  20694. overflow: hidden;
  20695. white-space: nowrap;
  20696. text-overflow: ellipsis;
  20697. }
  20698. .e_add_list_title img {
  20699. position: absolute;
  20700. right: 15px;
  20701. width: 25px;
  20702. cursor: pointer;
  20703. top: 50%;
  20704. transform: translateY(-50%);
  20705. }
  20706. .e_add_list_body {
  20707. height: calc(100% - 187px);
  20708. overflow: auto;
  20709. }
  20710. .e_add_list_child {
  20711. width: 100%;
  20712. display: flex;
  20713. align-items: center;
  20714. justify-content: center;
  20715. position: relative;
  20716. box-sizing: border-box;
  20717. padding: 15px 40px;
  20718. text-align: center;
  20719. }
  20720. .e_add_list_child span {
  20721. overflow: hidden;
  20722. white-space: nowrap;
  20723. text-overflow: ellipsis;
  20724. cursor: pointer;
  20725. }
  20726. .e_add_list_child img {
  20727. position: absolute;
  20728. right: 10px;
  20729. width: 21px;
  20730. cursor: pointer;
  20731. top: 50%;
  20732. transform: translateY(-50%);
  20733. }
  20734. .e_add_list_child + .e_add_list_child {
  20735. border-top: 1px solid #eaeaea;
  20736. }
  20737. .e_add_list_child .active {
  20738. color: #409eff;
  20739. }
  20740. .e_add_list_btn {
  20741. position: absolute;
  20742. bottom: 0;
  20743. height: 50px;
  20744. background: rgb(120, 120, 254);
  20745. width: 100%;
  20746. color: #fff;
  20747. font-size: 16px;
  20748. text-align: center;
  20749. line-height: 50px;
  20750. cursor: pointer;
  20751. }
  20752. .e_add_list_detail {
  20753. position: absolute;
  20754. bottom: 0;
  20755. height: 130px;
  20756. background: rgb(120, 120, 254);
  20757. width: 100%;
  20758. color: #fff;
  20759. font-size: 16px;
  20760. display: flex;
  20761. align-items: center;
  20762. justify-content: center;
  20763. }
  20764. .e_add_list_detail textarea {
  20765. height: 90%;
  20766. width: 95%;
  20767. border: none;
  20768. resize: none;
  20769. outline: none;
  20770. padding: 5px;
  20771. box-sizing: border-box;
  20772. }
  20773. .e_add_list_pbox {
  20774. width: 100%;
  20775. max-width: 650px;
  20776. /* height: 600px; */
  20777. }
  20778. .e_add_list_pbox_title {
  20779. height: 50px;
  20780. background: #fff;
  20781. display: flex;
  20782. align-items: center;
  20783. width: 100%;
  20784. box-sizing: border-box;
  20785. padding: 0 20px;
  20786. }
  20787. .type_title {
  20788. font-size: 18px;
  20789. font-weight: 700;
  20790. }
  20791. .type_content {
  20792. font-size: 16px;
  20793. margin-left: 30px;
  20794. }
  20795. .type_content span + span {
  20796. margin-left: 20px;
  20797. }
  20798. .type_content span {
  20799. cursor: pointer;
  20800. padding-bottom: 5px;
  20801. box-sizing: border-box;
  20802. }
  20803. .type_content .active {
  20804. color: #409eff;
  20805. border-bottom: 2px solid #409eff;
  20806. }
  20807. .e_add_list_pbox_content {
  20808. height: calc(100% - 50px);
  20809. display: flex;
  20810. align-items: center;
  20811. width: 100%;
  20812. background: #fff;
  20813. }
  20814. .evaCss {
  20815. display: flex;
  20816. flex-direction: row;
  20817. flex-wrap: nowrap;
  20818. align-items: flex-start;
  20819. padding: 0 0 20px;
  20820. }
  20821. .cru_line {
  20822. position: absolute;
  20823. bottom: 0px;
  20824. transition: all 0.5s;
  20825. left: 0px;
  20826. width: 125px;
  20827. margin-left: -25px;
  20828. }
  20829. .isNoMessage {
  20830. width: 20%;
  20831. margin: 25% auto 0;
  20832. }
  20833. .isNoMessage > img {
  20834. width: 100%;
  20835. height: 100%;
  20836. }
  20837. .fullStyle >>> .el-dialog__body {
  20838. height: 100% !important;
  20839. }
  20840. .fullStyle >>> .el-dialog,
  20841. .fullStyle {
  20842. width: 100% !important;
  20843. max-width: 100% !important;
  20844. height: 100% !important;
  20845. margin: 0 !important;
  20846. }
  20847. .full_diy >>> .el-dialog {
  20848. margin: 0 !important;
  20849. height: 100%;
  20850. padding: 4px;
  20851. }
  20852. .full_diy >>> .el-dialog__body {
  20853. height: calc(100% - 100px);
  20854. }
  20855. .full_diy2 >>> .el-dialog__body {
  20856. height: calc(100% - 50px);
  20857. padding: 0;
  20858. }
  20859. .switchCss {
  20860. /* width: 100%; */
  20861. display: flex;
  20862. flex-direction: row;
  20863. flex-wrap: nowrap;
  20864. align-items: center;
  20865. /* justify-content: center; */
  20866. }
  20867. .isClickNav {
  20868. /* color: #499eef; */
  20869. color: #000;
  20870. }
  20871. .commentImg {
  20872. width: 25px;
  20873. height: 25px;
  20874. cursor: pointer;
  20875. }
  20876. .commentImg > img {
  20877. width: 100%;
  20878. height: 100%;
  20879. }
  20880. .comment {
  20881. background: #f9f9f9;
  20882. border-radius: 0 0 4px 4px;
  20883. display: flex;
  20884. flex-direction: row;
  20885. flex-wrap: nowrap;
  20886. align-items: center;
  20887. justify-content: flex-end;
  20888. height: 35px;
  20889. }
  20890. .commentList {
  20891. display: flex;
  20892. flex-direction: row;
  20893. flex-wrap: nowrap;
  20894. align-items: center;
  20895. justify-content: center;
  20896. align-content: center;
  20897. /* margin-left: 15px; */
  20898. /* margin-left: 8px; */
  20899. }
  20900. .scoreImg {
  20901. width: 17px;
  20902. height: 17px;
  20903. }
  20904. .studentDetail {
  20905. display: flex;
  20906. flex-direction: row;
  20907. flex-wrap: nowrap;
  20908. /* align-items: center; */
  20909. align-items: flex-start;
  20910. }
  20911. .tx {
  20912. width: 50px;
  20913. }
  20914. .tx > img {
  20915. width: 100%;
  20916. height: 100%;
  20917. }
  20918. .nameAndTime {
  20919. display: flex;
  20920. flex-direction: column;
  20921. flex-wrap: nowrap;
  20922. align-items: flex-start;
  20923. margin-left: 10px;
  20924. }
  20925. .worksAnswer {
  20926. color: #4078dd;
  20927. margin: 10px 0;
  20928. font-size: 16px;
  20929. position: relative;
  20930. }
  20931. .worksAnswer > img {
  20932. width: 500px;
  20933. height: 300px;
  20934. object-fit: contain;
  20935. margin: 0 auto;
  20936. display: block;
  20937. }
  20938. .commentTop {
  20939. border-bottom: 1px solid #eaeaea;
  20940. padding-bottom: 10px;
  20941. }
  20942. .commentBox {
  20943. padding-top: 15px;
  20944. }
  20945. .pl {
  20946. font-size: 18px;
  20947. }
  20948. .plPerson {
  20949. width: 100%;
  20950. }
  20951. .plName {
  20952. display: flex;
  20953. flex-direction: row;
  20954. flex-wrap: nowrap;
  20955. align-items: baseline;
  20956. color: #78787a;
  20957. width: 100%;
  20958. }
  20959. .deleteComment {
  20960. cursor: pointer;
  20961. margin-left: auto;
  20962. color: #237ade;
  20963. }
  20964. .plContent {
  20965. margin-top: 5px;
  20966. }
  20967. .evalCss {
  20968. background: #fff;
  20969. font-size: 18px;
  20970. }
  20971. .nav {
  20972. color: #9d9d9d;
  20973. padding: 5px 0 15px 20px;
  20974. }
  20975. .middleBox {
  20976. padding: 5px 0 15px 20px;
  20977. }
  20978. .pfBox {
  20979. padding-bottom: 30px;
  20980. }
  20981. .nameAndrate {
  20982. display: flex;
  20983. flex-direction: row;
  20984. flex-wrap: nowrap;
  20985. align-items: center;
  20986. padding-bottom: 10px;
  20987. height: 30px;
  20988. line-height: 30px;
  20989. }
  20990. .nameAndrate > div {
  20991. margin-left: 10px;
  20992. color: #000;
  20993. height: 30px;
  20994. }
  20995. .nameAndrate >>> .el-rate__icon {
  20996. font-size: 28px !important;
  20997. }
  20998. .pfBox > div:nth-child(2) {
  20999. background: #f7f6f9;
  21000. width: 400px;
  21001. min-height: 45px;
  21002. border-radius: 10px;
  21003. font-size: 16px;
  21004. display: flex;
  21005. flex-wrap: wrap;
  21006. align-items: center;
  21007. padding: 10px 20px;
  21008. box-sizing: border-box;
  21009. color: #000;
  21010. }
  21011. .bz {
  21012. display: flex;
  21013. flex-direction: row;
  21014. flex-wrap: nowrap;
  21015. align-items: flex-start;
  21016. }
  21017. .bz > div {
  21018. padding: 0 10px;
  21019. }
  21020. .select_box2_title {
  21021. background: #fff;
  21022. border-radius: 5px;
  21023. padding: 15px 10px;
  21024. box-sizing: border-box;
  21025. margin-bottom: 10px;
  21026. display: flex;
  21027. flex-direction: row;
  21028. flex-wrap: nowrap;
  21029. align-items: center;
  21030. }
  21031. .select_box2_title > div:nth-child(2) {
  21032. margin-left: 10px;
  21033. color: #c4c4c4;
  21034. }
  21035. .select_box2_box {
  21036. display: flex;
  21037. height: 500px;
  21038. }
  21039. .select_box2_img {
  21040. width: calc(100% - 310px);
  21041. height: 100%;
  21042. overflow: auto;
  21043. background: #fff;
  21044. border-radius: 5px;
  21045. }
  21046. .select_box2_img img {
  21047. width: 100%;
  21048. }
  21049. .select_box2_answer {
  21050. background: #fff;
  21051. margin-left: 10px;
  21052. border-radius: 5px;
  21053. width: 300px;
  21054. overflow: auto;
  21055. height: 90%;
  21056. display: flex;
  21057. flex-direction: column;
  21058. align-items: flex-start;
  21059. padding-top: 10px;
  21060. box-sizing: border-box;
  21061. position: relative;
  21062. }
  21063. .select_answer_title {
  21064. padding: 0 0 15px 20px;
  21065. color: #c4c4c4;
  21066. }
  21067. .select_box2_answer_box {
  21068. margin: 0 0 10px 20px;
  21069. width: 85%;
  21070. display: flex;
  21071. flex-direction: row;
  21072. flex-wrap: nowrap;
  21073. align-items: center;
  21074. }
  21075. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21076. color: #000;
  21077. }
  21078. .upAnswerCss {
  21079. position: absolute;
  21080. bottom: 15px;
  21081. right: 15px;
  21082. }
  21083. .upAnswerCss >>> .el-button {
  21084. width: 95px;
  21085. height: 35px;
  21086. line-height: 35px;
  21087. padding: 0;
  21088. }
  21089. .rightWidthCss {
  21090. width: 60%;
  21091. display: flex;
  21092. flex-direction: row;
  21093. align-items: flex-start;
  21094. }
  21095. .rightAnswer {
  21096. display: flex;
  21097. flex-direction: row;
  21098. flex-wrap: nowrap;
  21099. align-items: center;
  21100. color: red;
  21101. margin-bottom: 31px;
  21102. }
  21103. .rightAnswerCss {
  21104. display: flex;
  21105. flex-direction: column;
  21106. flex-wrap: nowrap;
  21107. padding-top: 60px;
  21108. }
  21109. .blueCss {
  21110. color: #767de1;
  21111. margin-left: 10px;
  21112. }
  21113. .redCss {
  21114. color: red;
  21115. }
  21116. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21117. color: rgb(0 123 255) !important;
  21118. }
  21119. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21120. color: rgb(0 123 255) !important;
  21121. }
  21122. .zuoyeYulan {
  21123. padding-top: 0;
  21124. font-size: 18px;
  21125. display: flex;
  21126. align-items: flex-end;
  21127. }
  21128. .buttonA {
  21129. margin-left: 10px;
  21130. padding: 0;
  21131. }
  21132. .displayBox {
  21133. margin-bottom: 10px;
  21134. display: block;
  21135. border-bottom: 3px solid #eee;
  21136. display: flex;
  21137. align-items: center;
  21138. }
  21139. .easy_comment {
  21140. width: calc(100% - 90px);
  21141. margin-left: 10px;
  21142. display: flex;
  21143. flex-wrap: wrap;
  21144. }
  21145. .easy_comment > div {
  21146. border: 1px solid #4a4a4a;
  21147. color: #666;
  21148. border-radius: 15px;
  21149. padding: 5px 10px;
  21150. font-size: 16px;
  21151. margin-bottom: 10px;
  21152. margin-right: 5px;
  21153. cursor: pointer;
  21154. }
  21155. .easy_comment div:hover {
  21156. border: 1px solid #f7ba2a;
  21157. color: #c69217;
  21158. }
  21159. .xuan_right_box {
  21160. padding: 10px 0;
  21161. background: #f0f4fa;
  21162. margin: 0 15px 0 25px;
  21163. border-bottom-left-radius: 5px;
  21164. border-bottom-right-radius: 5px;
  21165. width: 91.5%;
  21166. }
  21167. .tool_right_box {
  21168. display: flex;
  21169. align-items: center;
  21170. }
  21171. .tool_right_box + .tool_right_box {
  21172. margin-top: 10px;
  21173. }
  21174. .right_box_xuan {
  21175. background: rgb(0 123 255);
  21176. color: #fff;
  21177. border-radius: 5px;
  21178. padding: 5px;
  21179. margin-left: 10px;
  21180. min-width: 95px;
  21181. }
  21182. .pButton:hover {
  21183. opacity: 1 !important;
  21184. }
  21185. .pButton {
  21186. position: fixed;
  21187. text-align: center;
  21188. cursor: pointer;
  21189. z-index: 999;
  21190. right: 20px;
  21191. top: 110px;
  21192. width: 50px;
  21193. height: 50px;
  21194. display: flex;
  21195. align-items: center;
  21196. justify-content: center;
  21197. border-radius: 5px;
  21198. }
  21199. .pzClass {
  21200. width: calc(100% - 340px);
  21201. }
  21202. .newDialogCss {
  21203. /* position: fixed;
  21204. right: 5%;
  21205. top: 50%;
  21206. width: 340px;
  21207. transform: translateY(-50%);
  21208. height: 60%;
  21209. box-shadow: 0px 0 8px 0px #555555;
  21210. border-radius: 15px;
  21211. z-index: 999; */
  21212. position: fixed;
  21213. right: 20px;
  21214. top: 101px;
  21215. width: 330px;
  21216. height: calc(100% - 80px);
  21217. z-index: 999;
  21218. background: #fff;
  21219. border-top-right-radius: 0px;
  21220. border-bottom-right-radius: 0px;
  21221. overflow: hidden;
  21222. }
  21223. .pzTop {
  21224. color: #fff;
  21225. background: #000;
  21226. display: flex;
  21227. flex-direction: row;
  21228. flex-wrap: nowrap;
  21229. align-items: center;
  21230. justify-content: space-between;
  21231. height: 40px;
  21232. border-radius: 15px 15px 0 0;
  21233. user-select: none;
  21234. }
  21235. .pzTop2 .checkbox {
  21236. display: flex;
  21237. align-items: center;
  21238. padding: 5px 30px;
  21239. flex: 0 0 auto;
  21240. font-weight: bold;
  21241. border-bottom: 1px solid #eee;
  21242. justify-content: space-between;
  21243. }
  21244. .pzTop2 .check {
  21245. text-align: center;
  21246. cursor: pointer;
  21247. box-sizing: border-box;
  21248. display: flex;
  21249. }
  21250. .pzTop2 img {
  21251. width: 25px;
  21252. cursor: pointer;
  21253. }
  21254. .pzTop > div:nth-child(1) {
  21255. padding-left: 10px;
  21256. }
  21257. .pzTop > div:nth-child(2) {
  21258. width: 15px;
  21259. height: 15px;
  21260. padding-right: 10px;
  21261. cursor: pointer;
  21262. }
  21263. .pzTop > div:nth-child(2) > img {
  21264. width: 100%;
  21265. height: 100%;
  21266. }
  21267. .pzBox,
  21268. .noPzBox {
  21269. height: calc(100% - 60px);
  21270. /* background: #ededed; */
  21271. background: #fff;
  21272. /* border-radius: 0 0 15px 15px; */
  21273. }
  21274. .noPzBox {
  21275. display: flex;
  21276. flex-direction: column;
  21277. flex-wrap: nowrap;
  21278. justify-content: center;
  21279. align-items: center;
  21280. }
  21281. .pzList {
  21282. background: #f7f7f7;
  21283. width: 90%;
  21284. margin: 0 auto 15px;
  21285. border-radius: 5px;
  21286. }
  21287. .pzNavTop {
  21288. display: flex;
  21289. flex-direction: row;
  21290. flex-wrap: nowrap;
  21291. padding: 10px 10px 0 10px;
  21292. align-items: center;
  21293. }
  21294. .pzDelete {
  21295. cursor: pointer;
  21296. margin-left: auto;
  21297. font-size: 14px;
  21298. color: #afafaf;
  21299. }
  21300. .pzNavTop > div:nth-child(1) {
  21301. background: #3760af;
  21302. width: 35px;
  21303. height: 35px;
  21304. color: #fff;
  21305. text-align: center;
  21306. line-height: 35px;
  21307. border-radius: 50%;
  21308. font-size: 14px;
  21309. }
  21310. .pzNavTop > div:nth-child(2) {
  21311. font-size: 18px;
  21312. color: #959595;
  21313. margin-left: 5px;
  21314. }
  21315. .pzContent {
  21316. padding: 10px;
  21317. word-break: break-word;
  21318. }
  21319. .pzContent audio {
  21320. width: 100%;
  21321. }
  21322. .pzContent audio::-webkit-media-controls-panel {
  21323. background: #fff;
  21324. }
  21325. .pzContent >>> img {
  21326. max-width: 100%;
  21327. }
  21328. .pzListBox {
  21329. padding-top: 15px;
  21330. height: calc(100% - 110px);
  21331. overflow: auto;
  21332. }
  21333. .addPzButton {
  21334. position: relative;
  21335. margin-top: 3px;
  21336. width: 100%;
  21337. }
  21338. .addPzButton .img1 {
  21339. position: absolute;
  21340. top: 50%;
  21341. right: 25px;
  21342. transform: translateY(-50%);
  21343. height: 100%;
  21344. display: flex;
  21345. align-items: center;
  21346. }
  21347. .addPzButton .img1 div {
  21348. display: flex;
  21349. }
  21350. .addPzButton .img1 div img {
  21351. width: 28px;
  21352. margin-left: 10px;
  21353. cursor: pointer;
  21354. }
  21355. .addPzButton .img1 div span {
  21356. font-size: 14px;
  21357. margin: 4px 0 0 3px;
  21358. color: #afafaf;
  21359. }
  21360. .addPz {
  21361. background: #4b79ce;
  21362. width: 100px;
  21363. color: #fff;
  21364. font-size: 12px;
  21365. height: 30px;
  21366. margin: 0 auto;
  21367. text-align: center;
  21368. line-height: 30px;
  21369. border-radius: 10px;
  21370. cursor: pointer;
  21371. }
  21372. .addDialogCss {
  21373. position: fixed;
  21374. width: 600px;
  21375. height: 70%;
  21376. min-height: 450px;
  21377. box-shadow: 0px 0 8px 0px #555555;
  21378. border-radius: 15px;
  21379. z-index: 999;
  21380. left: 50%;
  21381. top: 50%;
  21382. margin: -18% 0 0 -300px;
  21383. }
  21384. .teacherPz {
  21385. display: flex;
  21386. flex-direction: row;
  21387. align-items: center;
  21388. flex-wrap: nowrap;
  21389. }
  21390. .teacherPzImg {
  21391. width: 30px;
  21392. height: 30px;
  21393. }
  21394. .teacherPzImg > img {
  21395. width: 100%;
  21396. height: 100%;
  21397. }
  21398. .addPzBox {
  21399. height: calc(100% - 40px);
  21400. background: #ededed;
  21401. border-bottom-left-radius: 15px;
  21402. border-bottom-right-radius: 15px;
  21403. }
  21404. .pzAudioClass {
  21405. margin: 15px 14px;
  21406. background: #fff;
  21407. height: 100%;
  21408. display: flex;
  21409. justify-content: center;
  21410. align-items: center;
  21411. }
  21412. .pzConText {
  21413. width: 95%;
  21414. height: 100%;
  21415. margin: 10px auto 0;
  21416. border: none;
  21417. background: #fff;
  21418. border-radius: 0px;
  21419. }
  21420. .pzConText >>> .text {
  21421. height: calc(100% - 82px);
  21422. }
  21423. .addTextCss {
  21424. background: #4b79ce;
  21425. width: 80px;
  21426. height: 30px;
  21427. text-align: center;
  21428. color: #fff;
  21429. line-height: 30px;
  21430. border-radius: 10px;
  21431. margin: 10px auto 0;
  21432. cursor: pointer;
  21433. }
  21434. .pzConText:focus-visible {
  21435. border: none !important;
  21436. }
  21437. .maxWidth {
  21438. width: 1000px;
  21439. }
  21440. .noPz {
  21441. width: 150px;
  21442. margin: 0 auto 20%;
  21443. }
  21444. .noPz > img {
  21445. width: 100%;
  21446. height: 100%;
  21447. }
  21448. .timeAndReply {
  21449. display: flex;
  21450. flex-direction: row;
  21451. flex-wrap: nowrap;
  21452. justify-content: space-between;
  21453. align-items: center;
  21454. font-size: 14px;
  21455. box-sizing: border-box;
  21456. padding: 0 10px 10px 0px;
  21457. }
  21458. .timeAndReply .time {
  21459. color: #bfbfbf;
  21460. padding: 0 0 0 10px;
  21461. box-sizing: border-box;
  21462. }
  21463. .timeAndReply > div:last-child {
  21464. cursor: pointer;
  21465. color: #777;
  21466. }
  21467. /* table 样式 */
  21468. .cont >>> table {
  21469. border-top: 1px solid #ccc;
  21470. border-left: 1px solid #ccc;
  21471. }
  21472. .cont >>> table td,
  21473. .cont >>> table th {
  21474. border-bottom: 1px solid #ccc;
  21475. border-right: 1px solid #ccc;
  21476. /* padding: 20px 5px; */
  21477. padding: 5px 10px;
  21478. max-width: 0px;
  21479. height: 30px;
  21480. vertical-align: baseline;
  21481. box-sizing: border-box;
  21482. }
  21483. .cont >>> table th {
  21484. border-bottom: 2px solid #ccc;
  21485. text-align: center;
  21486. }
  21487. /* blockquote 样式 */
  21488. .cont >>> blockquote {
  21489. display: block;
  21490. border-left: 8px solid #d0e5f2;
  21491. padding: 5px 10px;
  21492. margin: 10px 0;
  21493. line-height: 1.4;
  21494. font-size: 100%;
  21495. background-color: #f1f1f1;
  21496. }
  21497. /* code 样式 */
  21498. .cont >>> code {
  21499. display: inline-block;
  21500. /* *display: inline; */
  21501. zoom: 1;
  21502. background-color: #f1f1f1;
  21503. border-radius: 3px;
  21504. padding: 3px 5px;
  21505. margin: 0 3px;
  21506. }
  21507. .cont >>> pre code {
  21508. display: block;
  21509. }
  21510. /* ul ol 样式 */
  21511. .cont >>> ul,
  21512. ol {
  21513. margin: 10px 0 10px 20px;
  21514. }
  21515. .addPzCheck {
  21516. display: flex;
  21517. flex-direction: row;
  21518. flex-wrap: nowrap;
  21519. padding: 10px 15px 0;
  21520. }
  21521. .addPzCheck span {
  21522. cursor: pointer;
  21523. padding-bottom: 5px;
  21524. font-weight: bold;
  21525. }
  21526. .addPzCheck span + span {
  21527. margin-left: 10px;
  21528. }
  21529. .addPzCheck .isChooseActive {
  21530. color: #3e88f4;
  21531. border-bottom: 2px solid #2f80f3;
  21532. }
  21533. /* code 样式 */
  21534. .cont {
  21535. /* -webkit-user-modify: read-write; */
  21536. overflow-wrap: break-word;
  21537. -webkit-line-break: after-white-space;
  21538. }
  21539. .scoreBox,
  21540. .scoreDetailBox {
  21541. display: flex;
  21542. align-items: center;
  21543. justify-content: flex-start;
  21544. margin-top: 20px;
  21545. font-size: 18px;
  21546. width: 100%;
  21547. }
  21548. .scoreBox .t,
  21549. .scoreDetailBox .t {
  21550. margin-right: 10px;
  21551. width: 100px;
  21552. text-align: right;
  21553. }
  21554. .scoreDetailBox {
  21555. align-items: flex-start;
  21556. }
  21557. .scoreDetailBox >>> .el-textarea {
  21558. width: calc(100% - 200px);
  21559. }
  21560. .scoreBox >>> .el-input {
  21561. width: 130px;
  21562. font-size: 38px;
  21563. }
  21564. .scoreBox >>> .el-input__inner {
  21565. height: 60px;
  21566. }
  21567. .answerScore {
  21568. position: absolute;
  21569. top: 10px;
  21570. right: 10px;
  21571. background: #0000008f;
  21572. border-radius: 5px;
  21573. padding: 3px 5px;
  21574. font-size: 14px;
  21575. color: #fff;
  21576. cursor: pointer;
  21577. }
  21578. .open_box .switch_box {
  21579. width: 100%;
  21580. margin: 0 auto;
  21581. display: flex;
  21582. justify-content: space-between;
  21583. }
  21584. .open_box .switch_box + .switch_box {
  21585. margin-top: 10px;
  21586. }
  21587. .deleteImg,.deleteImg1 {
  21588. width: 25px !important;
  21589. height: 25px !important;
  21590. cursor: pointer;
  21591. position: absolute;
  21592. top: 10px;
  21593. right: 10px;
  21594. }
  21595. .deleteImg2 {
  21596. width: 23px !important;
  21597. height: 23px !important;
  21598. top: 5px;
  21599. right: 5px;
  21600. }
  21601. .deleteImg1{
  21602. width: 23px !important;
  21603. height: 23px !important;
  21604. top: 5px !important;
  21605. right: 30px !important;
  21606. }
  21607. .rightW {
  21608. right: 40px;
  21609. }
  21610. .drawPBox {
  21611. display: flex;
  21612. flex-direction: column;
  21613. position: relative;
  21614. }
  21615. .drawPBox span {
  21616. font-size: 18px;
  21617. color: #606266;
  21618. padding-bottom: 10px;
  21619. margin: 10px 0;
  21620. border-bottom: 1px solid #eaeaea;
  21621. }
  21622. .drawPBox img {
  21623. width: 500px;
  21624. height: 300px;
  21625. object-fit: contain;
  21626. cursor: pointer;
  21627. margin: 0 auto;
  21628. }
  21629. .sentenBox {
  21630. background: #fff;
  21631. height: 450px;
  21632. overflow: auto;
  21633. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21634. background-position: 102%;
  21635. background-repeat: no-repeat;
  21636. background-size: 60%;
  21637. }
  21638. .addSen {
  21639. background: #409efe;
  21640. width: 90px;
  21641. color: #fff;
  21642. height: 35px;
  21643. text-align: center;
  21644. line-height: 35px;
  21645. border-radius: 5px;
  21646. float: right;
  21647. margin: 10px 20px 0 0;
  21648. cursor: pointer;
  21649. }
  21650. .sentenTop {
  21651. display: flex;
  21652. flex-direction: row;
  21653. flex-wrap: nowrap;
  21654. align-items: center;
  21655. padding: 55px 0 0 20px;
  21656. box-sizing: border-box;
  21657. }
  21658. .sentenTop > div:nth-child(2) {
  21659. width: 300px;
  21660. margin: 0 15px;
  21661. }
  21662. .sentenTop > div:nth-child(3) {
  21663. background: #409efe;
  21664. color: #fff;
  21665. width: 65px;
  21666. height: 35px;
  21667. text-align: center;
  21668. line-height: 35px;
  21669. border-radius: 5px;
  21670. cursor: pointer;
  21671. }
  21672. .cardList,
  21673. .cardList1 {
  21674. padding: 10px 0 10px 0;
  21675. display: flex;
  21676. flex-direction: row;
  21677. flex-wrap: wrap;
  21678. align-items: center;
  21679. box-sizing: border-box;
  21680. border-bottom: 1px solid #f4f4f4;
  21681. width: 98%;
  21682. margin: 0 auto;
  21683. min-width: 60%;
  21684. max-width: 85%;
  21685. }
  21686. .cardList1 {
  21687. padding: 10px 0 10px 10px !important;
  21688. margin: 0 !important;
  21689. }
  21690. .cardBox {
  21691. display: flex;
  21692. flex-direction: row;
  21693. flex-wrap: wrap;
  21694. align-items: center;
  21695. align-content: center;
  21696. }
  21697. .cardBox > div {
  21698. margin-bottom: 10px;
  21699. }
  21700. .isCard,
  21701. .isChooseCard,
  21702. .noCard,
  21703. .isCard1 {
  21704. width: 130px;
  21705. height: 60px;
  21706. text-align: center;
  21707. line-height: 60px;
  21708. font-size: 20px;
  21709. cursor: pointer;
  21710. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21711. background-size: cover;
  21712. transition: all 2s;
  21713. margin-right: 20px;
  21714. }
  21715. .isCard > div,
  21716. .noCard > div,
  21717. .isCard1 > div {
  21718. white-space: nowrap;
  21719. overflow: hidden;
  21720. text-overflow: ellipsis;
  21721. width: 75%;
  21722. margin: 0 auto;
  21723. }
  21724. .noCard {
  21725. background-image: none;
  21726. }
  21727. .isCard1 {
  21728. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21729. }
  21730. .isChooseCard {
  21731. background-image: none;
  21732. border: 1px dashed #b9b9b9;
  21733. border-radius: 10px;
  21734. }
  21735. .card {
  21736. width: 130px;
  21737. height: 60px;
  21738. }
  21739. .card > img {
  21740. width: 100%;
  21741. height: 100%;
  21742. }
  21743. .rightCardBox {
  21744. margin: 10px 0 0 10px;
  21745. }
  21746. .rightCardBox > div:nth-child(1) {
  21747. margin-bottom: 10px;
  21748. }
  21749. .cardCss {
  21750. display: flex;
  21751. flex-direction: column;
  21752. flex-wrap: nowrap;
  21753. align-items: center;
  21754. border-bottom: 3px solid #b4c3d3;
  21755. padding: 0 0 5px 0;
  21756. margin-right: 10px;
  21757. }
  21758. .cardCss > div:nth-child(2) {
  21759. background: #5b7b9d;
  21760. color: #fff;
  21761. width: 20px;
  21762. height: 20px;
  21763. border-radius: 50%;
  21764. text-align: center;
  21765. line-height: 20px;
  21766. }
  21767. .isWrong {
  21768. display: flex;
  21769. flex-direction: row;
  21770. flex-wrap: nowrap;
  21771. align-content: center;
  21772. align-items: center;
  21773. }
  21774. .answerRight {
  21775. width: 25%;
  21776. }
  21777. .isTj {
  21778. display: flex;
  21779. flex-direction: row;
  21780. flex-wrap: nowrap;
  21781. align-items: center;
  21782. }
  21783. .isTj > div:nth-child(2) {
  21784. color: #727070;
  21785. margin-left: 10px;
  21786. }
  21787. .isTjImg {
  21788. width: 30px;
  21789. height: 30px;
  21790. }
  21791. .isTjImg > img {
  21792. width: 100%;
  21793. height: 100%;
  21794. }
  21795. .cardAnswerBox {
  21796. font-size: 18px;
  21797. width: 97%;
  21798. border: 5px;
  21799. padding: 0;
  21800. border-radius: 5px;
  21801. margin: 10px auto;
  21802. word-break: break-word;
  21803. }
  21804. .w_name {
  21805. margin-bottom: 10px;
  21806. }
  21807. .w_name span {
  21808. font-size: 16px;
  21809. }
  21810. .w_teachert {
  21811. width: 50px !important;
  21812. position: absolute;
  21813. height: auto !important;
  21814. z-index: 10;
  21815. right: 25px;
  21816. top: -25px;
  21817. }
  21818. .group_workBox {
  21819. }
  21820. .group_workBox + .group_workBox {
  21821. margin-top: 20px;
  21822. }
  21823. .group_box {
  21824. padding-bottom: 20px;
  21825. border-bottom: 2px solid #f0f0f0;
  21826. margin-top: 10px;
  21827. }
  21828. .group_title {
  21829. display: flex;
  21830. align-items: center;
  21831. justify-content: space-between;
  21832. width: 95%;
  21833. }
  21834. .group_name {
  21835. background-image: url(../../assets/icon/groupN.png);
  21836. width: 220px;
  21837. background-size: 100% 100%;
  21838. height: 67px;
  21839. padding: 0 20px 0 43px;
  21840. box-sizing: border-box;
  21841. line-height: 63px;
  21842. color: #fff;
  21843. overflow: hidden;
  21844. white-space: nowrap;
  21845. text-overflow: ellipsis;
  21846. }
  21847. .group_work {
  21848. width: 100%;
  21849. padding: 0 10px;
  21850. box-sizing: border-box;
  21851. display: flex;
  21852. flex-wrap: wrap;
  21853. }
  21854. .g_d_box {
  21855. display: flex;
  21856. flex-flow: wrap;
  21857. justify-content: space-around;
  21858. }
  21859. .g_d_box .isChair {
  21860. background-image: url(../../assets/avatar.png) !important;
  21861. }
  21862. .g_d_group {
  21863. width: 500px;
  21864. margin-bottom: 80px;
  21865. }
  21866. .g_d_group_chair {
  21867. display: flex;
  21868. align-items: center;
  21869. justify-content: center;
  21870. }
  21871. .g_d_group_chair > div + div {
  21872. margin-left: 30px;
  21873. }
  21874. .g_d_group_chair > div,
  21875. .g_d_group_chair2 > div {
  21876. display: flex;
  21877. flex-direction: column;
  21878. align-items: center;
  21879. }
  21880. .g_d_group_chair > div > span:nth-child(1),
  21881. .g_d_group_chair2 > div > span:nth-child(1) {
  21882. background-image: url(../../assets/icon/chair.png);
  21883. width: 50px;
  21884. height: 50px;
  21885. display: block;
  21886. background-size: 100% 100%;
  21887. }
  21888. .g_d_group_tableBox {
  21889. display: flex;
  21890. align-items: center;
  21891. justify-content: center;
  21892. }
  21893. .g_d_group_chair2 {
  21894. display: flex;
  21895. flex-direction: column;
  21896. align-items: center;
  21897. justify-content: center;
  21898. }
  21899. .g_d_group_chair2 > div + div {
  21900. margin-top: 10px;
  21901. }
  21902. .g_d_group_table {
  21903. background-image: url(../../assets/icon/groupBg.png);
  21904. width: 354px;
  21905. height: 196px;
  21906. background-size: 100% 100%;
  21907. display: flex;
  21908. align-items: center;
  21909. justify-content: center;
  21910. flex-direction: column;
  21911. color: #fff;
  21912. }
  21913. .g_d_group_table > div:nth-child(1) {
  21914. font-size: 24px;
  21915. margin-bottom: 5px;
  21916. }
  21917. .g_d_group_table > div:nth-child(2) div {
  21918. cursor: pointer;
  21919. background: #2e77bf;
  21920. padding: 4px 10px;
  21921. border-radius: 5px;
  21922. }
  21923. .groupBox {
  21924. }
  21925. .groupContent + .groupContent {
  21926. margin-top: 30px;
  21927. }
  21928. .groupTitle {
  21929. font-size: 24px;
  21930. color: rgb(80, 80, 80);
  21931. margin-bottom: 20px;
  21932. }
  21933. .groupName {
  21934. display: flex;
  21935. align-items: center;
  21936. }
  21937. .groupn {
  21938. font-size: 15px;
  21939. margin-right: 10px;
  21940. }
  21941. .groupName + .groupName {
  21942. margin-top: 15px;
  21943. }
  21944. .groupBtn {
  21945. margin-left: 10px;
  21946. }
  21947. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21948. text-align: left;
  21949. }
  21950. .g_d_btnBox {
  21951. display: flex;
  21952. justify-content: flex-end;
  21953. align-items: center;
  21954. margin-bottom: 20px;
  21955. }
  21956. .updateChair {
  21957. position: relative;
  21958. }
  21959. .updateChairBtn {
  21960. position: absolute;
  21961. width: 50px;
  21962. height: 50px;
  21963. overflow: hidden;
  21964. /* display: flex; */
  21965. align-items: center;
  21966. justify-content: center;
  21967. background: #00000087;
  21968. color: #fff;
  21969. border-radius: 50px;
  21970. display: none;
  21971. cursor: pointer;
  21972. }
  21973. .updateChair:hover .updateChairBtn {
  21974. display: flex;
  21975. }
  21976. .group_staic_box {
  21977. display: flex;
  21978. padding: 30px 40px 10px;
  21979. flex-wrap: wrap;
  21980. }
  21981. .group_staic {
  21982. /* width: 50%; */
  21983. margin-bottom: 20px;
  21984. display: flex;
  21985. align-items: center;
  21986. }
  21987. .group_staic span:nth-child(1) {
  21988. width: 150px;
  21989. text-align: right;
  21990. margin-right: 15px;
  21991. }
  21992. .group_staic span:nth-child(2) {
  21993. background: rgb(0 123 255);
  21994. color: #fff;
  21995. border-radius: 5px;
  21996. padding: 5px;
  21997. }
  21998. .codeFileBox {
  21999. height: 300px;
  22000. background: #fff;
  22001. display: flex;
  22002. align-items: center;
  22003. justify-content: center;
  22004. }
  22005. .codeFileBox img {
  22006. width: 200px;
  22007. margin: 0;
  22008. height: auto;
  22009. }
  22010. .codeFileBox div {
  22011. background: rgb(80, 142, 226);
  22012. color: #fff;
  22013. padding: 10px 20px;
  22014. border-radius: 25px;
  22015. cursor: pointer;
  22016. margin-left: 15px;
  22017. }
  22018. .radioBox {
  22019. display: flex;
  22020. flex-direction: column;
  22021. flex-wrap: nowrap;
  22022. align-items: flex-start;
  22023. }
  22024. .radioBox > div {
  22025. margin: 10px 0 0 10px;
  22026. }
  22027. /* .radioBox >>> .el-radio__input,
  22028. .radioBox >>> .el-checkbox__inner {
  22029. margin-left: 10px;
  22030. } */
  22031. .radioBox >>> .el-radio__label,
  22032. .radioBox >>> .el-checkbox__label {
  22033. display: flex;
  22034. align-items: center;
  22035. width: 100%;
  22036. }
  22037. .radioBox >>> .el-radio__label > span {
  22038. width: 100%;
  22039. display: -webkit-box;
  22040. overflow: hidden;
  22041. white-space: normal !important;
  22042. text-overflow: ellipsis;
  22043. word-wrap: break-word;
  22044. }
  22045. .inImg {
  22046. width: 100px;
  22047. cursor: pointer;
  22048. }
  22049. .inImg > img {
  22050. width: 100%;
  22051. height: 100%;
  22052. object-fit: cover;
  22053. }
  22054. .timuImgBox {
  22055. margin: 10px 0;
  22056. display: flex;
  22057. flex-direction: column;
  22058. flex-wrap: wrap;
  22059. align-items: flex-start;
  22060. }
  22061. .timuImg {
  22062. width: 150px;
  22063. margin: 5px 0;
  22064. cursor: pointer;
  22065. }
  22066. .timuImg > img {
  22067. width: 100%;
  22068. height: 100%;
  22069. object-fit: cover;
  22070. }
  22071. .worksTop {
  22072. display: flex;
  22073. flex-direction: row;
  22074. align-items: flex-end;
  22075. }
  22076. .worksTitle {
  22077. display: flex;
  22078. flex-direction: row;
  22079. flex-wrap: nowrap;
  22080. align-items: center;
  22081. }
  22082. .worksTitle::before,
  22083. .worksTop::before {
  22084. content: "";
  22085. display: block;
  22086. width: 3px;
  22087. height: 20px;
  22088. background: #0061ff;
  22089. border-radius: 3px;
  22090. margin: 0 5px 0 0;
  22091. }
  22092. .corOpen {
  22093. margin: 0 0 0 10px;
  22094. font-size: 14px;
  22095. cursor: pointer;
  22096. color: #505050;
  22097. }
  22098. .corOpen:hover {
  22099. color: #499eef;
  22100. }
  22101. .navCorOpenBox {
  22102. display: flex;
  22103. flex-direction: row;
  22104. align-items: center;
  22105. justify-content: space-between;
  22106. height: 55px;
  22107. background: #ffffff;
  22108. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22109. border-radius: 8px 8px 0px 0px;
  22110. z-index: 9;
  22111. position: relative;
  22112. }
  22113. .navCorOpen {
  22114. padding-right: 15px;
  22115. cursor: pointer;
  22116. width: 45px;
  22117. display: flex;
  22118. }
  22119. .navCorOpen > img {
  22120. width: 100%;
  22121. height: 100%;
  22122. }
  22123. .mlImg {
  22124. width: 45px !important;
  22125. min-width: 45px;
  22126. cursor: pointer;
  22127. transform: rotate(180deg);
  22128. }
  22129. .mlImg > img {
  22130. width: 100%;
  22131. height: 100%;
  22132. }
  22133. .navLeftCss {
  22134. width: 100% !important;
  22135. left: 0 !important;
  22136. }
  22137. .isContentCss {
  22138. width: 100% !important;
  22139. }
  22140. .isAllWidth {
  22141. width: 100% !important;
  22142. }
  22143. .group_switch {
  22144. margin-right: 10px;
  22145. height: 30px;
  22146. display: flex;
  22147. align-items: center;
  22148. }
  22149. .group_switch > span {
  22150. margin-right: 5px;
  22151. }
  22152. .fileC_box {
  22153. padding-top: 15px;
  22154. }
  22155. .fileC_box > .fileC_title {
  22156. padding: 10px 5px 14px 11px;
  22157. border-top: 1px solid #cad1dc;
  22158. font-size: 14px;
  22159. font-weight: 400;
  22160. color: #cad1dc;
  22161. width: 88%;
  22162. margin: 0 auto;
  22163. }
  22164. .pl_select_box {
  22165. height: 40px;
  22166. line-height: 40px;
  22167. width: 100%;
  22168. cursor: pointer;
  22169. padding: 0 20px;
  22170. box-sizing: border-box;
  22171. border-radius: 5px;
  22172. border: 1px solid #d6d6d6;
  22173. white-space: nowrap;
  22174. overflow: hidden;
  22175. text-overflow: ellipsis;
  22176. background: #fff;
  22177. text-align: left;
  22178. }
  22179. .newButton {
  22180. width: 102px;
  22181. height: 36px;
  22182. background: #e7ebf1;
  22183. border-radius: 4px;
  22184. color: #0e1e33;
  22185. font-weight: 400;
  22186. font-size: 14px;
  22187. border: none;
  22188. float: right;
  22189. margin-left: 10px;
  22190. }
  22191. .el-table >>> .even_row {
  22192. background-color: #f0f4fa;
  22193. }
  22194. .stageBoxCss,
  22195. .stageBoxIsCss {
  22196. display: flex;
  22197. flex-direction: row;
  22198. flex-wrap: nowrap;
  22199. align-items: center;
  22200. height: 50px;
  22201. border-bottom: 1px solid #e2f5fc;
  22202. cursor: pointer;
  22203. width: 100%;
  22204. }
  22205. .stageBoxIsCss {
  22206. background: #0061ff;
  22207. color: #fff;
  22208. border-radius: 8px;
  22209. }
  22210. .closeTri,
  22211. .closeTri1 {
  22212. min-width: 15px;
  22213. width: 15px;
  22214. height: 15px;
  22215. }
  22216. .closeTri1 {
  22217. padding-left: 10px;
  22218. cursor: pointer;
  22219. }
  22220. .closeTri > img,
  22221. .closeTri1 > img {
  22222. width: 100%;
  22223. height: 100%;
  22224. }
  22225. .noToolBlue {
  22226. min-width: 10px;
  22227. width: 10px;
  22228. height: 10px;
  22229. background: #0061ff;
  22230. border-radius: 50%;
  22231. margin-left: 13px;
  22232. }
  22233. .stageChild,
  22234. .toolChild {
  22235. height: 0;
  22236. overflow: hidden;
  22237. transition: all 0.5s;
  22238. }
  22239. .toolChild {
  22240. margin: 0 0 0 17px;
  22241. padding: 0 0 0 20px;
  22242. border-left: 1px solid #d7d7d7;
  22243. }
  22244. .gjCss {
  22245. display: flex;
  22246. flex-direction: row;
  22247. flex-wrap: nowrap;
  22248. align-items: center;
  22249. padding: 15px 0;
  22250. box-sizing: border-box;
  22251. font-size: 14px;
  22252. cursor: pointer;
  22253. }
  22254. .toolChild > div {
  22255. position: relative;
  22256. }
  22257. .toolChild > div::before {
  22258. content: "";
  22259. width: 15px;
  22260. height: 1px;
  22261. background: #cad1dc;
  22262. position: absolute;
  22263. top: 24px;
  22264. left: -20px;
  22265. display: block;
  22266. }
  22267. .isGjCss {
  22268. color: #0061ff;
  22269. }
  22270. .navItem {
  22271. background: #ffffff;
  22272. border-radius: 4px;
  22273. width: 100%;
  22274. margin: 10px auto;
  22275. position: relative;
  22276. height: 40px;
  22277. display: flex;
  22278. flex-direction: row;
  22279. flex-wrap: nowrap;
  22280. align-items: center;
  22281. }
  22282. .navItemList {
  22283. display: flex;
  22284. flex-direction: row;
  22285. flex-wrap: nowrap;
  22286. align-items: center;
  22287. padding: 0 13px;
  22288. cursor: pointer;
  22289. width: calc(100% - 60px);
  22290. height: 100%;
  22291. }
  22292. .navItemList > div:first-child {
  22293. min-width: 60px;
  22294. }
  22295. .navItemList > div:last-child {
  22296. width: calc(100% - 80px);
  22297. white-space: nowrap;
  22298. overflow: hidden;
  22299. text-overflow: ellipsis;
  22300. word-break: break-word;
  22301. }
  22302. /* .isItemList > div {
  22303. color: #fff !important;
  22304. } */
  22305. .tool_work_box {
  22306. width: 100%;
  22307. padding: 0 37px 0;
  22308. box-sizing: border-box;
  22309. }
  22310. .tool_box {
  22311. width: 100%;
  22312. padding: 0 0 0 20px;
  22313. }
  22314. .tool_type_box {
  22315. display: flex;
  22316. flex-direction: row;
  22317. align-items: baseline;
  22318. flex-wrap: nowrap;
  22319. justify-content: flex-start;
  22320. position: relative;
  22321. }
  22322. .toolSort {
  22323. display: flex;
  22324. flex-direction: row;
  22325. flex-wrap: wrap;
  22326. justify-content: flex-start;
  22327. align-items: flex-start;
  22328. padding: 0 0 15px 0;
  22329. }
  22330. .toolSort > div {
  22331. margin: 0 10px 0 0;
  22332. width: 135px;
  22333. box-sizing: border-box;
  22334. border: 2px solid transparent;
  22335. }
  22336. .tools {
  22337. width: 100%;
  22338. display: flex;
  22339. flex-direction: column;
  22340. flex-wrap: nowrap;
  22341. align-items: flex-start;
  22342. }
  22343. .whiteBIcon {
  22344. width: fit-content;
  22345. cursor: pointer;
  22346. display: flex;
  22347. flex-direction: column;
  22348. flex-wrap: nowrap;
  22349. align-items: center;
  22350. font-size: 14px;
  22351. }
  22352. .tool:hover {
  22353. border: 2px solid #a5c7ff;
  22354. border-radius: 5px;
  22355. }
  22356. .whiteBIcon > img {
  22357. width: 65px;
  22358. height: 100%;
  22359. }
  22360. .whiteBIcon > img {
  22361. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22362. border-radius: 15px;
  22363. }
  22364. .check {
  22365. /* width: 20px;
  22366. height: 20px; */
  22367. cursor: pointer;
  22368. margin: 10px 0;
  22369. position: absolute;
  22370. right: 2px;
  22371. top: -5px;
  22372. }
  22373. .noChoose,
  22374. .isChoose {
  22375. width: 15px;
  22376. height: 15px;
  22377. border-radius: 50%;
  22378. border: 1px solid #adadad;
  22379. }
  22380. .isChoose {
  22381. border: 4px solid #0363ff !important;
  22382. width: 10px;
  22383. height: 10px;
  22384. }
  22385. .isToolChoose {
  22386. border: 2px solid #5394ff !important;
  22387. border-radius: 5px;
  22388. box-shadow: 0 0 6px 0px #5394ff;
  22389. }
  22390. .checkDiv {
  22391. display: flex;
  22392. align-items: center;
  22393. }
  22394. .checkDiv span {
  22395. margin-left: 5px;
  22396. color: #858585;
  22397. }
  22398. .check img {
  22399. width: 20px;
  22400. height: 20px;
  22401. }
  22402. .lockTaskIcon {
  22403. width: 20px;
  22404. height: 20px;
  22405. position: absolute;
  22406. right: 10px;
  22407. top: 10px;
  22408. }
  22409. .lockTaskIcon > img {
  22410. width: 100%;
  22411. height: 100%;
  22412. }
  22413. .pick_box {
  22414. display: flex;
  22415. align-items: flex-start;
  22416. flex-wrap: wrap;
  22417. }
  22418. .selectBox {
  22419. width: 110px;
  22420. margin-left: 10px;
  22421. margin: 0 10px 0 auto;
  22422. }
  22423. .selectBox >>> .el-input__inner {
  22424. height: 30px;
  22425. line-height: 30px;
  22426. }
  22427. .selectBox >>> .el-input__icon {
  22428. line-height: 30px;
  22429. }
  22430. .sentenceTitle {
  22431. display: flex;
  22432. flex-direction: row;
  22433. flex-wrap: nowrap;
  22434. align-items: center;
  22435. }
  22436. .sentenceTitle::before {
  22437. content: attr(index);
  22438. background: #3681fc;
  22439. border-radius: 50%;
  22440. color: #fff;
  22441. width: 25px;
  22442. height: 25px;
  22443. min-width: 25px;
  22444. min-height: 25px;
  22445. text-align: center;
  22446. line-height: 25px;
  22447. margin-right: 5px;
  22448. }
  22449. .hfBox {
  22450. padding: 10px;
  22451. box-sizing: border-box;
  22452. }
  22453. .whoReplyWho {
  22454. display: flex;
  22455. flex-direction: row;
  22456. flex-wrap: nowrap;
  22457. align-items: baseline;
  22458. justify-content: flex-start;
  22459. }
  22460. .hfBottom {
  22461. display: flex;
  22462. flex-direction: row;
  22463. flex-wrap: nowrap;
  22464. align-items: center;
  22465. justify-content: space-between;
  22466. font-size: 14px;
  22467. }
  22468. .deleteHfItem {
  22469. cursor: pointer;
  22470. width: 20px;
  22471. height: 20px;
  22472. }
  22473. .deleteHfItem > img {
  22474. width: 100%;
  22475. height: 100%;
  22476. }
  22477. .whoReplyWho > .hfImg {
  22478. width: 12px;
  22479. height: 12px;
  22480. margin: 0 5px;
  22481. }
  22482. .whoReplyWho > .hfImg > img {
  22483. width: 100%;
  22484. height: 100%;
  22485. }
  22486. .hfContent {
  22487. padding-top: 10px;
  22488. box-sizing: border-box;
  22489. display: -webkit-box;
  22490. overflow: hidden;
  22491. white-space: normal !important;
  22492. text-overflow: ellipsis;
  22493. word-wrap: break-word;
  22494. -webkit-box-orient: vertical;
  22495. }
  22496. .hfTime {
  22497. text-align: left;
  22498. box-sizing: border-box;
  22499. padding: 10px 0 10px 0px;
  22500. color: #bfbfbf;
  22501. font-size: 14px;
  22502. }
  22503. .btnAllNT {
  22504. position: fixed;
  22505. bottom: 100px;
  22506. right: 40px;
  22507. z-index: 999;
  22508. display: flex;
  22509. flex-direction: row;
  22510. }
  22511. .btnAllNT > img {
  22512. cursor: pointer;
  22513. width: 80px;
  22514. }
  22515. .toolMask {
  22516. position: fixed;
  22517. width: 100%;
  22518. height: 100%;
  22519. background: #3f3c3c;
  22520. opacity: 0.5;
  22521. top: 0;
  22522. left: 0;
  22523. z-index: 999;
  22524. }
  22525. .addToolCss {
  22526. position: fixed;
  22527. z-index: 999;
  22528. background: #fff;
  22529. right: 5%;
  22530. bottom: 18%;
  22531. min-width: 1035px;
  22532. min-height: 300px;
  22533. border-radius: 10px;
  22534. box-shadow: 0 0 8px 1px #b2b2b2;
  22535. }
  22536. .toolTop {
  22537. display: flex;
  22538. flex-direction: row;
  22539. flex-wrap: nowrap;
  22540. justify-content: space-between;
  22541. align-items: center;
  22542. padding: 20px;
  22543. }
  22544. .toolTop > div:nth-child(2) {
  22545. width: 15px;
  22546. height: 15px;
  22547. padding-right: 10px;
  22548. cursor: pointer;
  22549. }
  22550. .toolTop > div:nth-child(2) > img {
  22551. width: 100%;
  22552. height: 100%;
  22553. }
  22554. .fullStyle>>>.el-dialog__body {
  22555. height: calc(100% - 125px) !important;
  22556. box-sizing: border-box;
  22557. padding: 30px 0 !important;
  22558. background: #fff !important;
  22559. }
  22560. .fullStyle>>>.el-dialog {
  22561. width: 100% !important;
  22562. max-width: 100% !important;
  22563. height: 100% !important;
  22564. margin: 0 !important;
  22565. }
  22566. .fullStyle {
  22567. width: 100% !important;
  22568. max-width: 100% !important;
  22569. height: 100% !important;
  22570. margin: 0 auto !important;
  22571. }
  22572. .fullStyle>>>.el-dialog__footer{
  22573. background: #fff !important;
  22574. }
  22575. .engUpBox {
  22576. width: 100%;
  22577. height: 100%;
  22578. }
  22579. .engTitle,
  22580. .engText {
  22581. display: flex;
  22582. flex-direction: row;
  22583. flex-wrap: nowrap;
  22584. align-items: flex-start;
  22585. padding: 0 20px 20px 20px;
  22586. box-sizing: border-box;
  22587. }
  22588. .engTitle > .div:first-child,
  22589. .engText > div:first-child {
  22590. min-width: 75px;
  22591. }
  22592. .correctBox{
  22593. width: 100%;
  22594. display: flex;
  22595. flex-direction: row;
  22596. flex-wrap: nowrap;
  22597. align-items: flex-start;
  22598. }
  22599. .oldBox{
  22600. width: 50%;
  22601. height: 100%;
  22602. display: flex;
  22603. flex-direction: column;
  22604. flex-wrap: nowrap;
  22605. align-items: center;
  22606. border-top: 1px solid #d9d9d9;
  22607. border-left: 1px solid #d9d9d9;
  22608. border-right: 1px solid #d9d9d9;
  22609. }
  22610. .oldBox>div:first-child{
  22611. width: 100%;
  22612. text-align: center;
  22613. background: #d9d9d9;
  22614. height: 35px;
  22615. line-height: 35px;
  22616. font-weight: bold;
  22617. }
  22618. .oldText{
  22619. width: 100%;
  22620. height: 100%;
  22621. display: flex;
  22622. flex-direction: column;
  22623. flex-wrap: nowrap;
  22624. align-content: center;
  22625. justify-content: center;
  22626. align-items: center;
  22627. }
  22628. .detailBox{
  22629. width: 50%;
  22630. padding: 10px;
  22631. background: #f6f6f6;
  22632. border-radius: 5px;
  22633. }
  22634. .oldDetail,.oldDetail1{
  22635. padding-bottom: 30px;
  22636. }
  22637. .oldDetail1>div:last-child{
  22638. max-height: 200px;
  22639. overflow: auto;
  22640. }
  22641. .oldImg{
  22642. width:30px;
  22643. height: 30px;
  22644. }
  22645. .oldImg>img{
  22646. width: 100%;
  22647. height: 100%;
  22648. }
  22649. .allName{
  22650. min-width: 200px;
  22651. white-space: nowrap;
  22652. overflow: hidden;
  22653. text-overflow: ellipsis;
  22654. word-break: break-word;
  22655. cursor: pointer;
  22656. text-align: center;
  22657. border: 1px solid #bcc2cc;
  22658. box-sizing: border-box;
  22659. }
  22660. .engUpTop{
  22661. max-height: 300px;
  22662. overflow: auto;
  22663. }
  22664. </style>