studyStudent.vue 758 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276
  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. @click="
  3806. openTools(
  3807. 69,
  3808. toolIndex,
  3809. taskCount,
  3810. w.works,
  3811. w.sName,
  3812. w.wid
  3813. )
  3814. "
  3815. >
  3816. {{ w.sName }}
  3817. <img
  3818. class="deleteImg deleteImg2"
  3819. src="../../assets/deleteworks.png"
  3820. v-if="
  3821. w.userid == userid || tType == 1 || tType == 4
  3822. "
  3823. @click.stop="deleteWorks(w.wid)"
  3824. alt
  3825. />
  3826. </div>
  3827. </div>
  3828. </div>
  3829. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3830. 未提交
  3831. </div>
  3832. <div
  3833. class="noWorksS"
  3834. v-if="noWorksS && noWorksS[toolIndex].length"
  3835. >
  3836. <div
  3837. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3838. :key="sIndex"
  3839. class="noWorksName"
  3840. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3841. >
  3842. {{ s.student }}
  3843. </div>
  3844. </div>
  3845. </div>
  3846. <div
  3847. v-if="
  3848. tType &&
  3849. ((tType == 2 && sIsOpen == true) ||
  3850. tType == 1 ||
  3851. tType == 4) &&
  3852. tool.tool.indexOf(15) != -1
  3853. "
  3854. class="worksBox"
  3855. >
  3856. <div
  3857. class="zuoyeYulan"
  3858. v-if="
  3859. worksStudent.length &&
  3860. worksStudent[toolIndex].length > 0
  3861. "
  3862. >
  3863. <div class="worksTop">
  3864. <div>作业预览</div>
  3865. <div
  3866. class="corOpen"
  3867. @click="contract(toolIndex)"
  3868. v-if="
  3869. worksStudent[toolIndex].length > 6 &&
  3870. isCloseList[toolIndex].isClose == 0
  3871. "
  3872. >
  3873. 折叠
  3874. </div>
  3875. <div
  3876. class="corOpen"
  3877. @click="contract(toolIndex)"
  3878. v-if="isCloseList[toolIndex].isClose == 1"
  3879. >
  3880. 展开
  3881. </div>
  3882. </div>
  3883. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3884. </div>
  3885. <div
  3886. class="group_workBox"
  3887. v-for="(g, gindex) in courseGroup.group"
  3888. :key="gindex"
  3889. >
  3890. <div class="group_box">
  3891. <div class="group_title">
  3892. <el-tooltip
  3893. class="item"
  3894. effect="light"
  3895. :content="g.name"
  3896. placement="top"
  3897. >
  3898. <div class="group_name">{{ g.name }}</div>
  3899. </el-tooltip>
  3900. </div>
  3901. <div
  3902. class="group_work"
  3903. v-if="
  3904. g.works &&
  3905. g.works.length &&
  3906. g.works[toolIndex].length
  3907. "
  3908. >
  3909. <div
  3910. class="works"
  3911. v-for="(w, wIndex) in g.works[toolIndex]"
  3912. :key="wIndex"
  3913. >
  3914. <div
  3915. class="workImg"
  3916. style="
  3917. border-radius: 15px;
  3918. box-shadow: #eee 0px 0px 5px 5px;
  3919. "
  3920. >
  3921. <div
  3922. class="answerBg"
  3923. style="border-radius: 15px 15px 0 0"
  3924. @click="
  3925. commentOther(w, toolIndex, wIndex, null, g.id)
  3926. "
  3927. >
  3928. <div class="answerContent">
  3929. {{ JSON.parse(w.works)[0].answer }}
  3930. </div>
  3931. <div
  3932. class="answerScore"
  3933. v-if="w.score"
  3934. @click.stop="openScore(w)"
  3935. :class="{
  3936. rightW:
  3937. w.userid == userid ||
  3938. tType == 1 ||
  3939. tType == 4,
  3940. }"
  3941. >
  3942. {{ JSON.parse(w.score).wScore }}分
  3943. </div>
  3944. <div
  3945. class="answerScore"
  3946. @click.stop="openScore(w)"
  3947. v-else-if="courseDetail.userid == userid"
  3948. :class="{
  3949. rightW:
  3950. w.userid == userid ||
  3951. tType == 1 ||
  3952. tType == 4,
  3953. }"
  3954. >
  3955. 评分
  3956. </div>
  3957. <img
  3958. class="deleteImg"
  3959. src="../../assets/deleteworks.png"
  3960. v-if="
  3961. w.userid == userid ||
  3962. tType == 1 ||
  3963. tType == 4
  3964. "
  3965. @click.stop="deleteWorks(w.wid)"
  3966. alt
  3967. />
  3968. </div>
  3969. <div class="comment">
  3970. <div class="worksName">
  3971. <div>{{ w.sName }}</div>
  3972. </div>
  3973. <div class="commentList">
  3974. <div
  3975. class="commentImg"
  3976. @click="
  3977. isLikes(w.wid, userid, 1, null, w.isLikes)
  3978. "
  3979. >
  3980. <img
  3981. :src="w.isLikes == true ? likes : noLikes"
  3982. alt=""
  3983. />
  3984. </div>
  3985. <div>{{ w.likesCount }}</div>
  3986. </div>
  3987. <div
  3988. class="commentList"
  3989. style="margin-right: 15px"
  3990. >
  3991. <div
  3992. class="commentImg"
  3993. @click="
  3994. commentOther(
  3995. w,
  3996. toolIndex,
  3997. wIndex,
  3998. null,
  3999. g.id
  4000. )
  4001. "
  4002. >
  4003. <img
  4004. src="../../assets/icon/comment/comment.png"
  4005. alt=""
  4006. />
  4007. </div>
  4008. <div>{{ w.commentCount }}</div>
  4009. </div>
  4010. </div>
  4011. </div>
  4012. </div>
  4013. </div>
  4014. <div class="group_work" v-else>暂无提交作业</div>
  4015. </div>
  4016. </div>
  4017. <div
  4018. class="worksDetailBox"
  4019. v-if="
  4020. worksStudent.length &&
  4021. worksStudent[toolIndex].length > 0
  4022. "
  4023. >
  4024. <div
  4025. class="works"
  4026. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4027. 0
  4028. ? worksStudent[toolIndex]
  4029. : worksStudent[toolIndex].slice(0, 6)"
  4030. :key="wIndex"
  4031. >
  4032. <div
  4033. class="workImg"
  4034. style="
  4035. border-radius: 15px;
  4036. box-shadow: #eee 0px 0px 5px 5px;
  4037. "
  4038. >
  4039. <!-- <img
  4040. src="../../assets/icon/works/noImg.png"
  4041. @click="openTools(15, toolIndex, taskCount, w.works)"
  4042. alt=""
  4043. />-->
  4044. <div
  4045. class="answerBg"
  4046. style="border-radius: 15px 15px 0 0"
  4047. @click="commentOther(w, toolIndex, wIndex)"
  4048. >
  4049. <!-- <div>{{ w.sName }}</div> -->
  4050. <div class="answerContent">
  4051. {{ JSON.parse(w.works)[0].answer }}
  4052. </div>
  4053. <div
  4054. class="answerScore"
  4055. v-if="w.score"
  4056. @click.stop="openScore(w)"
  4057. :class="{
  4058. rightW:
  4059. w.userid == userid ||
  4060. tType == 1 ||
  4061. tType == 4,
  4062. }"
  4063. >
  4064. {{ JSON.parse(w.score).wScore }}分
  4065. </div>
  4066. <div
  4067. class="answerScore"
  4068. @click.stop="openScore(w)"
  4069. v-else-if="courseDetail.userid == userid"
  4070. :class="{
  4071. rightW:
  4072. w.userid == userid ||
  4073. tType == 1 ||
  4074. tType == 4,
  4075. }"
  4076. >
  4077. 评分
  4078. </div>
  4079. <img
  4080. class="deleteImg"
  4081. src="../../assets/deleteworks.png"
  4082. v-if="
  4083. w.userid == userid || tType == 1 || tType == 4
  4084. "
  4085. @click.stop="deleteWorks(w.wid)"
  4086. alt
  4087. />
  4088. </div>
  4089. <div class="comment">
  4090. <div class="worksName">
  4091. <div>{{ w.sName }}</div>
  4092. </div>
  4093. <div class="commentList">
  4094. <div
  4095. class="commentImg"
  4096. @click="
  4097. isLikes(w.wid, userid, 1, null, w.isLikes)
  4098. "
  4099. >
  4100. <img
  4101. :src="w.isLikes == true ? likes : noLikes"
  4102. alt=""
  4103. />
  4104. </div>
  4105. <div>{{ w.likesCount }}</div>
  4106. </div>
  4107. <div class="commentList" style="margin-right: 15px">
  4108. <div
  4109. class="commentImg"
  4110. @click="commentOther(w, toolIndex, wIndex)"
  4111. >
  4112. <img
  4113. src="../../assets/icon/comment/comment.png"
  4114. alt=""
  4115. />
  4116. </div>
  4117. <div>{{ w.commentCount }}</div>
  4118. </div>
  4119. </div>
  4120. </div>
  4121. </div>
  4122. </div>
  4123. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4124. 未提交
  4125. </div>
  4126. <div
  4127. class="noWorksS"
  4128. v-if="noWorksS && noWorksS[toolIndex].length"
  4129. >
  4130. <div
  4131. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4132. :key="sIndex"
  4133. class="noWorksName"
  4134. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4135. >
  4136. {{ s.student }}
  4137. </div>
  4138. </div>
  4139. </div>
  4140. <div
  4141. v-if="
  4142. tType &&
  4143. ((tType == 2 && sIsOpen == true) ||
  4144. tType == 1 ||
  4145. tType == 4) &&
  4146. tool.tool.indexOf(1) != -1
  4147. "
  4148. class="worksBox"
  4149. >
  4150. <div
  4151. class="zuoyeYulan"
  4152. v-if="
  4153. worksStudent.length &&
  4154. worksStudent[toolIndex].length > 0
  4155. "
  4156. >
  4157. <div class="worksTop">
  4158. <div>作业预览</div>
  4159. <div
  4160. class="corOpen"
  4161. @click="contract(toolIndex)"
  4162. v-if="
  4163. worksStudent[toolIndex].length > 6 &&
  4164. isCloseList[toolIndex].isClose == 0
  4165. "
  4166. >
  4167. 折叠
  4168. </div>
  4169. <div
  4170. class="corOpen"
  4171. @click="contract(toolIndex)"
  4172. v-if="isCloseList[toolIndex].isClose == 1"
  4173. >
  4174. 展开
  4175. </div>
  4176. </div>
  4177. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4178. </div>
  4179. <div
  4180. class="group_workBox"
  4181. v-for="(g, gindex) in courseGroup.group"
  4182. :key="gindex"
  4183. >
  4184. <div class="group_box">
  4185. <div class="group_title">
  4186. <el-tooltip
  4187. class="item"
  4188. effect="light"
  4189. :content="g.name"
  4190. placement="top"
  4191. >
  4192. <div class="group_name">{{ g.name }}</div>
  4193. </el-tooltip>
  4194. </div>
  4195. <div
  4196. class="group_work"
  4197. v-if="
  4198. g.works &&
  4199. g.works.length &&
  4200. g.works[toolIndex].length
  4201. "
  4202. >
  4203. <div
  4204. class="works"
  4205. style="
  4206. width: 200px;
  4207. height: 140px;
  4208. margin: 10px 10px 10px 0;
  4209. border-radius: 15px;
  4210. box-shadow: 0 0 6px 1px #dfdada;
  4211. "
  4212. v-for="(w, wIndex) in g.works[toolIndex]"
  4213. :key="wIndex"
  4214. :class="w.type == 1 ? 'isTypeOne' : ''"
  4215. >
  4216. <div class="workImg">
  4217. <img
  4218. :src="w.works"
  4219. @click="previewImg(w.works)"
  4220. alt
  4221. />
  4222. <div
  4223. class="answerScore"
  4224. v-if="w.score"
  4225. @click.stop="openScore(w)"
  4226. :class="{
  4227. rightW:
  4228. w.userid == userid ||
  4229. tType == 1 ||
  4230. tType == 4,
  4231. }"
  4232. >
  4233. {{ JSON.parse(w.score).wScore }}分
  4234. </div>
  4235. <div
  4236. class="answerScore"
  4237. @click.stop="openScore(w)"
  4238. v-else-if="courseDetail.userid == userid"
  4239. :class="{
  4240. rightW:
  4241. w.userid == userid ||
  4242. tType == 1 ||
  4243. tType == 4,
  4244. }"
  4245. >
  4246. 评分
  4247. </div>
  4248. <img
  4249. class="deleteImg"
  4250. src="../../assets/deleteworks.png"
  4251. v-if="
  4252. w.userid == userid || tType == 1 || tType == 4
  4253. "
  4254. @click.stop="deleteWorks(w.wid)"
  4255. alt
  4256. />
  4257. </div>
  4258. <div class="comment" style="min-width: 200px">
  4259. <div class="worksName">
  4260. <div>{{ w.sName }}</div>
  4261. </div>
  4262. <div class="commentList">
  4263. <div class="commentList">
  4264. <div
  4265. class="commentImg"
  4266. @click="
  4267. isLikes(w.wid, userid, 1, null, w.isLikes)
  4268. "
  4269. >
  4270. <img
  4271. :src="w.isLikes == true ? likes : noLikes"
  4272. alt=""
  4273. />
  4274. </div>
  4275. <div>{{ w.likesCount }}</div>
  4276. </div>
  4277. <div
  4278. class="commentList"
  4279. style="margin-right: 15px"
  4280. >
  4281. <div
  4282. class="commentImg"
  4283. @click="
  4284. commentOther(
  4285. w,
  4286. toolIndex,
  4287. wIndex,
  4288. null,
  4289. g.id
  4290. )
  4291. "
  4292. >
  4293. <img
  4294. src="../../assets/icon/comment/comment.png"
  4295. alt=""
  4296. />
  4297. </div>
  4298. <div>{{ w.commentCount }}</div>
  4299. </div>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. </div>
  4304. <div class="group_work" v-else>暂无提交作业</div>
  4305. </div>
  4306. </div>
  4307. <div
  4308. class="worksDetailBox"
  4309. v-if="
  4310. worksStudent.length &&
  4311. worksStudent[toolIndex].length > 0
  4312. "
  4313. >
  4314. <div
  4315. class="works"
  4316. style="
  4317. width: 200px;
  4318. height: 140px;
  4319. margin: 10px 10px 10px 0;
  4320. border-radius: 15px;
  4321. box-shadow: 0 0 6px 1px #dfdada;
  4322. "
  4323. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4324. 0
  4325. ? worksStudent[toolIndex]
  4326. : worksStudent[toolIndex].slice(0, 6)"
  4327. :key="wIndex"
  4328. >
  4329. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4330. <div class="workImg">
  4331. <img
  4332. :src="w.works"
  4333. @click="previewImg(w.works)"
  4334. alt
  4335. />
  4336. <div
  4337. class="answerScore"
  4338. v-if="w.score"
  4339. @click.stop="openScore(w)"
  4340. :class="{
  4341. rightW:
  4342. w.userid == userid || tType == 1 || tType == 4,
  4343. }"
  4344. >
  4345. {{ JSON.parse(w.score).wScore }}分
  4346. </div>
  4347. <div
  4348. class="answerScore"
  4349. @click.stop="openScore(w)"
  4350. v-else-if="courseDetail.userid == userid"
  4351. :class="{
  4352. rightW:
  4353. w.userid == userid || tType == 1 || tType == 4,
  4354. }"
  4355. >
  4356. 评分
  4357. </div>
  4358. <img
  4359. class="deleteImg"
  4360. src="../../assets/deleteworks.png"
  4361. v-if="
  4362. w.userid == userid || tType == 1 || tType == 4
  4363. "
  4364. @click.stop="deleteWorks(w.wid)"
  4365. alt
  4366. />
  4367. </div>
  4368. <div class="comment" style="min-width: 200px">
  4369. <div class="worksName">
  4370. <div>{{ w.sName }}</div>
  4371. </div>
  4372. <div class="commentList">
  4373. <div class="commentList">
  4374. <div
  4375. class="commentImg"
  4376. @click="
  4377. isLikes(w.wid, userid, 1, null, w.isLikes)
  4378. "
  4379. >
  4380. <img
  4381. :src="w.isLikes == true ? likes : noLikes"
  4382. alt=""
  4383. />
  4384. </div>
  4385. <div>{{ w.likesCount }}</div>
  4386. </div>
  4387. <div class="commentList" style="margin-right: 15px">
  4388. <div
  4389. class="commentImg"
  4390. @click="commentOther(w, toolIndex, wIndex)"
  4391. >
  4392. <img
  4393. src="../../assets/icon/comment/comment.png"
  4394. alt=""
  4395. />
  4396. </div>
  4397. <div>{{ w.commentCount }}</div>
  4398. </div>
  4399. </div>
  4400. </div>
  4401. </div>
  4402. </div>
  4403. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4404. 未提交
  4405. </div>
  4406. <div
  4407. class="noWorksS"
  4408. v-if="noWorksS && noWorksS[toolIndex].length"
  4409. >
  4410. <div
  4411. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4412. :key="sIndex"
  4413. class="noWorksName"
  4414. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4415. >
  4416. {{ s.student }}
  4417. </div>
  4418. </div>
  4419. </div>
  4420. <div
  4421. v-if="
  4422. tType &&
  4423. ((tType == 2 && sIsOpen == true) ||
  4424. tType == 1 ||
  4425. tType == 4) &&
  4426. tool.tool.indexOf(3) != -1
  4427. "
  4428. class="worksBox"
  4429. >
  4430. <div
  4431. class="zuoyeYulan"
  4432. v-if="
  4433. worksStudent.length &&
  4434. worksStudent[toolIndex].length > 0
  4435. "
  4436. >
  4437. <div class="worksTop">
  4438. <div>作业预览</div>
  4439. <div
  4440. class="corOpen"
  4441. @click="contract(toolIndex)"
  4442. v-if="
  4443. worksStudent[toolIndex].length > 6 &&
  4444. isCloseList[toolIndex].isClose == 0
  4445. "
  4446. >
  4447. 折叠
  4448. </div>
  4449. <div
  4450. class="corOpen"
  4451. @click="contract(toolIndex)"
  4452. v-if="isCloseList[toolIndex].isClose == 1"
  4453. >
  4454. 展开
  4455. </div>
  4456. </div>
  4457. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4458. </div>
  4459. <div
  4460. class="group_workBox"
  4461. v-for="(g, gindex) in courseGroup.group"
  4462. :key="gindex"
  4463. >
  4464. <div class="group_box">
  4465. <div class="group_title">
  4466. <el-tooltip
  4467. class="item"
  4468. effect="light"
  4469. :content="g.name"
  4470. placement="top"
  4471. >
  4472. <div class="group_name">{{ g.name }}</div>
  4473. </el-tooltip>
  4474. </div>
  4475. <div
  4476. class="group_work"
  4477. v-if="
  4478. g.works &&
  4479. g.works.length &&
  4480. g.works[toolIndex].length
  4481. "
  4482. >
  4483. <div
  4484. class="works"
  4485. style="
  4486. width: 200px;
  4487. height: 140px;
  4488. margin: 10px 10px 10px 0;
  4489. border-radius: 15px;
  4490. box-shadow: 0 0 6px 1px #dfdada;
  4491. "
  4492. v-for="(w, wIndex) in g.works[toolIndex]"
  4493. :key="wIndex"
  4494. :class="w.type == 1 ? 'isTypeOne' : ''"
  4495. >
  4496. <div class="workImg">
  4497. <img
  4498. :src="w.works"
  4499. @click="previewImg(w.works)"
  4500. alt
  4501. />
  4502. <div
  4503. class="answerScore"
  4504. v-if="w.score"
  4505. @click.stop="openScore(w)"
  4506. :class="{
  4507. rightW:
  4508. w.userid == userid ||
  4509. tType == 1 ||
  4510. tType == 4,
  4511. }"
  4512. >
  4513. {{ JSON.parse(w.score).wScore }}分
  4514. </div>
  4515. <div
  4516. class="answerScore"
  4517. @click.stop="openScore(w)"
  4518. v-else-if="courseDetail.userid == userid"
  4519. :class="{
  4520. rightW:
  4521. w.userid == userid ||
  4522. tType == 1 ||
  4523. tType == 4,
  4524. }"
  4525. >
  4526. 评分
  4527. </div>
  4528. <img
  4529. class="deleteImg"
  4530. src="../../assets/deleteworks.png"
  4531. v-if="
  4532. w.userid == userid || tType == 1 || tType == 4
  4533. "
  4534. @click.stop="deleteWorks(w.wid)"
  4535. alt
  4536. />
  4537. </div>
  4538. <div class="comment" style="min-width: 200px">
  4539. <div class="worksName">
  4540. <div>{{ w.sName }}</div>
  4541. </div>
  4542. <div class="commentList">
  4543. <div class="commentList">
  4544. <div
  4545. class="commentImg"
  4546. @click="
  4547. isLikes(w.wid, userid, 1, null, w.isLikes)
  4548. "
  4549. >
  4550. <img
  4551. :src="w.isLikes == true ? likes : noLikes"
  4552. alt=""
  4553. />
  4554. </div>
  4555. <div>{{ w.likesCount }}</div>
  4556. </div>
  4557. <div
  4558. class="commentList"
  4559. style="margin-right: 15px"
  4560. >
  4561. <div
  4562. class="commentImg"
  4563. @click="
  4564. commentOther(
  4565. w,
  4566. toolIndex,
  4567. wIndex,
  4568. null,
  4569. g.id
  4570. )
  4571. "
  4572. >
  4573. <img
  4574. src="../../assets/icon/comment/comment.png"
  4575. alt=""
  4576. />
  4577. </div>
  4578. <div>{{ w.commentCount }}</div>
  4579. </div>
  4580. </div>
  4581. </div>
  4582. </div>
  4583. </div>
  4584. <div class="group_work" v-else>暂无提交作业</div>
  4585. </div>
  4586. </div>
  4587. <div
  4588. class="worksDetailBox"
  4589. v-if="
  4590. worksStudent.length &&
  4591. worksStudent[toolIndex].length > 0
  4592. "
  4593. >
  4594. <div
  4595. class="works"
  4596. style="
  4597. width: 200px;
  4598. height: 140px;
  4599. margin: 10px 10px 10px 0;
  4600. border-radius: 15px;
  4601. box-shadow: 0 0 6px 1px #dfdada;
  4602. "
  4603. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4604. 0
  4605. ? worksStudent[toolIndex]
  4606. : worksStudent[toolIndex].slice(0, 6)"
  4607. :key="wIndex"
  4608. >
  4609. <!-- @click="previewImg(w.works)" -->
  4610. <div class="workImg">
  4611. <img
  4612. :src="w.works"
  4613. @click="previewImg(w.works)"
  4614. alt
  4615. />
  4616. <div
  4617. class="answerScore"
  4618. v-if="w.score"
  4619. @click.stop="openScore(w)"
  4620. :class="{
  4621. rightW:
  4622. w.userid == userid || tType == 1 || tType == 4,
  4623. }"
  4624. >
  4625. {{ JSON.parse(w.score).wScore }}分
  4626. </div>
  4627. <div
  4628. class="answerScore"
  4629. @click.stop="openScore(w)"
  4630. v-else-if="courseDetail.userid == userid"
  4631. :class="{
  4632. rightW:
  4633. w.userid == userid || tType == 1 || tType == 4,
  4634. }"
  4635. >
  4636. 评分
  4637. </div>
  4638. <img
  4639. class="deleteImg"
  4640. src="../../assets/deleteworks.png"
  4641. v-if="
  4642. w.userid == userid || tType == 1 || tType == 4
  4643. "
  4644. @click.stop="deleteWorks(w.wid)"
  4645. alt
  4646. />
  4647. </div>
  4648. <div class="comment" style="min-width: 200px">
  4649. <div class="worksName">
  4650. <div>{{ w.sName }}</div>
  4651. </div>
  4652. <div class="commentList">
  4653. <div class="commentList">
  4654. <div
  4655. class="commentImg"
  4656. @click="
  4657. isLikes(w.wid, userid, 1, null, w.isLikes)
  4658. "
  4659. >
  4660. <img
  4661. :src="w.isLikes == true ? likes : noLikes"
  4662. alt=""
  4663. />
  4664. </div>
  4665. <div>{{ w.likesCount }}</div>
  4666. </div>
  4667. <div class="commentList" style="margin-right: 15px">
  4668. <div
  4669. class="commentImg"
  4670. @click="commentOther(w, toolIndex, wIndex)"
  4671. >
  4672. <img
  4673. src="../../assets/icon/comment/comment.png"
  4674. alt=""
  4675. />
  4676. </div>
  4677. <div>{{ w.commentCount }}</div>
  4678. </div>
  4679. </div>
  4680. </div>
  4681. </div>
  4682. </div>
  4683. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4684. 未提交
  4685. </div>
  4686. <div
  4687. class="noWorksS"
  4688. v-if="noWorksS && noWorksS[toolIndex].length"
  4689. >
  4690. <div
  4691. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4692. :key="sIndex"
  4693. class="noWorksName"
  4694. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4695. >
  4696. {{ s.student }}
  4697. </div>
  4698. </div>
  4699. </div>
  4700. <div
  4701. v-if="
  4702. tType &&
  4703. ((tType == 2 && sIsOpen == true) ||
  4704. tType == 1 ||
  4705. tType == 4) &&
  4706. tool.tool.indexOf(6) != -1
  4707. "
  4708. class="worksBox"
  4709. >
  4710. <div
  4711. class="zuoyeYulan"
  4712. v-if="
  4713. worksStudent.length &&
  4714. worksStudent[toolIndex].length > 0
  4715. "
  4716. >
  4717. <div class="worksTop">
  4718. <div>作业预览</div>
  4719. <div
  4720. class="corOpen"
  4721. @click="contract(toolIndex)"
  4722. v-if="
  4723. worksStudent[toolIndex].length > 6 &&
  4724. isCloseList[toolIndex].isClose == 0
  4725. "
  4726. >
  4727. 折叠
  4728. </div>
  4729. <div
  4730. class="corOpen"
  4731. @click="contract(toolIndex)"
  4732. v-if="isCloseList[toolIndex].isClose == 1"
  4733. >
  4734. 展开
  4735. </div>
  4736. </div>
  4737. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4738. </div>
  4739. <div
  4740. class="group_workBox"
  4741. v-for="(g, gindex) in courseGroup.group"
  4742. :key="gindex"
  4743. >
  4744. <div class="group_box">
  4745. <div class="group_title">
  4746. <el-tooltip
  4747. class="item"
  4748. effect="light"
  4749. :content="g.name"
  4750. placement="top"
  4751. >
  4752. <div class="group_name">{{ g.name }}</div>
  4753. </el-tooltip>
  4754. </div>
  4755. <div
  4756. class="group_work"
  4757. v-if="
  4758. g.works &&
  4759. g.works.length &&
  4760. g.works[toolIndex].length
  4761. "
  4762. >
  4763. <div
  4764. class="works"
  4765. style="
  4766. width: 200px;
  4767. height: 140px;
  4768. margin: 10px 10px 10px 0;
  4769. border-radius: 15px;
  4770. box-shadow: 0 0 6px 1px #dfdada;
  4771. "
  4772. v-for="(w, wIndex) in g.works[toolIndex]"
  4773. :key="wIndex"
  4774. :class="w.type == 1 ? 'isTypeOne' : ''"
  4775. >
  4776. <div class="workImg">
  4777. <img
  4778. :src="w.works"
  4779. @click="previewImg(w.works)"
  4780. alt
  4781. />
  4782. <div
  4783. class="answerScore"
  4784. v-if="w.score"
  4785. @click.stop="openScore(w)"
  4786. :class="{
  4787. rightW:
  4788. w.userid == userid ||
  4789. tType == 1 ||
  4790. tType == 4,
  4791. }"
  4792. >
  4793. {{ JSON.parse(w.score).wScore }}分
  4794. </div>
  4795. <div
  4796. class="answerScore"
  4797. @click.stop="openScore(w)"
  4798. v-else-if="courseDetail.userid == userid"
  4799. :class="{
  4800. rightW:
  4801. w.userid == userid ||
  4802. tType == 1 ||
  4803. tType == 4,
  4804. }"
  4805. >
  4806. 评分
  4807. </div>
  4808. <img
  4809. class="deleteImg"
  4810. src="../../assets/deleteworks.png"
  4811. v-if="
  4812. w.userid == userid || tType == 1 || tType == 4
  4813. "
  4814. @click.stop="deleteWorks(w.wid)"
  4815. alt
  4816. />
  4817. </div>
  4818. <div class="comment" style="min-width: 200px">
  4819. <div class="worksName">
  4820. <div>{{ w.sName }}</div>
  4821. </div>
  4822. <div class="commentList">
  4823. <div class="commentList">
  4824. <div
  4825. class="commentImg"
  4826. @click="
  4827. isLikes(w.wid, userid, 1, null, w.isLikes)
  4828. "
  4829. >
  4830. <img
  4831. :src="w.isLikes == true ? likes : noLikes"
  4832. alt=""
  4833. />
  4834. </div>
  4835. <div>{{ w.likesCount }}</div>
  4836. </div>
  4837. <div
  4838. class="commentList"
  4839. style="margin-right: 15px"
  4840. >
  4841. <div
  4842. class="commentImg"
  4843. @click="
  4844. commentOther(
  4845. w,
  4846. toolIndex,
  4847. wIndex,
  4848. null,
  4849. g.id
  4850. )
  4851. "
  4852. >
  4853. <img
  4854. src="../../assets/icon/comment/comment.png"
  4855. alt=""
  4856. />
  4857. </div>
  4858. <div>{{ w.commentCount }}</div>
  4859. </div>
  4860. </div>
  4861. </div>
  4862. </div>
  4863. </div>
  4864. <div class="group_work" v-else>暂无提交作业</div>
  4865. </div>
  4866. </div>
  4867. <div
  4868. class="worksDetailBox"
  4869. v-if="
  4870. worksStudent.length &&
  4871. worksStudent[toolIndex].length > 0
  4872. "
  4873. >
  4874. <div
  4875. class="works"
  4876. style="
  4877. width: 200px;
  4878. height: 140px;
  4879. margin: 10px 10px 10px 0;
  4880. border-radius: 15px;
  4881. box-shadow: 0 0 6px 1px #dfdada;
  4882. "
  4883. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4884. 0
  4885. ? worksStudent[toolIndex]
  4886. : worksStudent[toolIndex].slice(0, 6)"
  4887. :key="wIndex"
  4888. >
  4889. <!-- @click="previewImg(w.works)" -->
  4890. <div class="workImg">
  4891. <img
  4892. :src="w.works"
  4893. @click="previewImg(w.works)"
  4894. alt
  4895. />
  4896. <div
  4897. class="answerScore"
  4898. v-if="w.score"
  4899. @click.stop="openScore(w)"
  4900. :class="{
  4901. rightW:
  4902. w.userid == userid || tType == 1 || tType == 4,
  4903. }"
  4904. >
  4905. {{ JSON.parse(w.score).wScore }}分
  4906. </div>
  4907. <div
  4908. class="answerScore"
  4909. @click.stop="openScore(w)"
  4910. v-else-if="courseDetail.userid == userid"
  4911. :class="{
  4912. rightW:
  4913. w.userid == userid || tType == 1 || tType == 4,
  4914. }"
  4915. >
  4916. 评分
  4917. </div>
  4918. <img
  4919. class="deleteImg"
  4920. src="../../assets/deleteworks.png"
  4921. v-if="
  4922. w.userid == userid || tType == 1 || tType == 4
  4923. "
  4924. @click.stop="deleteWorks(w.wid)"
  4925. alt
  4926. />
  4927. </div>
  4928. <div class="comment" style="min-width: 200px">
  4929. <div class="worksName">
  4930. <div>{{ w.sName }}</div>
  4931. </div>
  4932. <div class="commentList">
  4933. <div class="commentList">
  4934. <div
  4935. class="commentImg"
  4936. @click="
  4937. isLikes(w.wid, userid, 1, null, w.isLikes)
  4938. "
  4939. >
  4940. <img
  4941. :src="w.isLikes == true ? likes : noLikes"
  4942. alt=""
  4943. />
  4944. </div>
  4945. <div>{{ w.likesCount }}</div>
  4946. </div>
  4947. <div class="commentList" style="margin-right: 15px">
  4948. <div
  4949. class="commentImg"
  4950. @click="commentOther(w, toolIndex, wIndex)"
  4951. >
  4952. <img
  4953. src="../../assets/icon/comment/comment.png"
  4954. alt=""
  4955. />
  4956. </div>
  4957. <div>{{ w.commentCount }}</div>
  4958. </div>
  4959. </div>
  4960. </div>
  4961. </div>
  4962. </div>
  4963. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4964. 未提交
  4965. </div>
  4966. <div
  4967. class="noWorksS"
  4968. v-if="noWorksS && noWorksS[toolIndex].length"
  4969. >
  4970. <div
  4971. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4972. :key="sIndex"
  4973. class="noWorksName"
  4974. >
  4975. {{ s.student }}
  4976. </div>
  4977. </div>
  4978. </div>
  4979. <div
  4980. v-if="
  4981. tType &&
  4982. ((tType == 2 && sIsOpen == true) ||
  4983. tType == 1 ||
  4984. tType == 4) &&
  4985. tool.tool.indexOf(7) != -1
  4986. "
  4987. class="worksBox"
  4988. >
  4989. <div
  4990. class="zuoyeYulan"
  4991. v-if="
  4992. worksStudent.length &&
  4993. worksStudent[toolIndex].length > 0
  4994. "
  4995. >
  4996. <div class="worksTop">
  4997. <div>作业预览</div>
  4998. <div
  4999. class="corOpen"
  5000. @click="contract(toolIndex)"
  5001. v-if="
  5002. worksStudent[toolIndex].length > 6 &&
  5003. isCloseList[toolIndex].isClose == 0
  5004. "
  5005. >
  5006. 折叠
  5007. </div>
  5008. <div
  5009. class="corOpen"
  5010. @click="contract(toolIndex)"
  5011. v-if="isCloseList[toolIndex].isClose == 1"
  5012. >
  5013. 展开
  5014. </div>
  5015. </div>
  5016. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5017. </div>
  5018. <div
  5019. class="group_workBox"
  5020. v-for="(g, gindex) in courseGroup.group"
  5021. :key="gindex"
  5022. >
  5023. <div class="group_box">
  5024. <div class="group_title">
  5025. <el-tooltip
  5026. class="item"
  5027. effect="light"
  5028. :content="g.name"
  5029. placement="top"
  5030. >
  5031. <div class="group_name">{{ g.name }}</div>
  5032. </el-tooltip>
  5033. </div>
  5034. <div
  5035. class="group_work"
  5036. v-if="
  5037. g.works &&
  5038. g.works.length &&
  5039. g.works[toolIndex].length
  5040. "
  5041. >
  5042. <div
  5043. class="works"
  5044. style="
  5045. width: 200px;
  5046. height: 140px;
  5047. margin: 10px 10px 10px 0;
  5048. border-radius: 15px;
  5049. box-shadow: 0 0 6px 1px #dfdada;
  5050. "
  5051. v-for="(w, wIndex) in g.works[toolIndex]"
  5052. :key="wIndex"
  5053. :class="w.type == 1 ? 'isTypeOne' : ''"
  5054. >
  5055. <div class="workImg">
  5056. <img
  5057. :src="w.works"
  5058. @click="previewImg(w.works)"
  5059. alt
  5060. />
  5061. <div
  5062. class="answerScore"
  5063. v-if="w.score"
  5064. @click.stop="openScore(w)"
  5065. :class="{
  5066. rightW:
  5067. w.userid == userid ||
  5068. tType == 1 ||
  5069. tType == 4,
  5070. }"
  5071. >
  5072. {{ JSON.parse(w.score).wScore }}分
  5073. </div>
  5074. <div
  5075. class="answerScore"
  5076. @click.stop="openScore(w)"
  5077. v-else-if="courseDetail.userid == userid"
  5078. :class="{
  5079. rightW:
  5080. w.userid == userid ||
  5081. tType == 1 ||
  5082. tType == 4,
  5083. }"
  5084. >
  5085. 评分
  5086. </div>
  5087. <img
  5088. class="deleteImg"
  5089. src="../../assets/deleteworks.png"
  5090. v-if="
  5091. w.userid == userid || tType == 1 || tType == 4
  5092. "
  5093. @click.stop="deleteWorks(w.wid)"
  5094. alt
  5095. />
  5096. </div>
  5097. <div class="comment" style="min-width: 200px">
  5098. <div class="worksName">
  5099. <div>{{ w.sName }}</div>
  5100. </div>
  5101. <div class="commentList">
  5102. <div class="commentList">
  5103. <div
  5104. class="commentImg"
  5105. @click="
  5106. isLikes(w.wid, userid, 1, null, w.isLikes)
  5107. "
  5108. >
  5109. <img
  5110. :src="w.isLikes == true ? likes : noLikes"
  5111. alt=""
  5112. />
  5113. </div>
  5114. <div>{{ w.likesCount }}</div>
  5115. </div>
  5116. <div
  5117. class="commentList"
  5118. style="margin-right: 15px"
  5119. >
  5120. <div
  5121. class="commentImg"
  5122. @click="
  5123. commentOther(
  5124. w,
  5125. toolIndex,
  5126. wIndex,
  5127. null,
  5128. g.id
  5129. )
  5130. "
  5131. >
  5132. <img
  5133. src="../../assets/icon/comment/comment.png"
  5134. alt=""
  5135. />
  5136. </div>
  5137. <div>{{ w.commentCount }}</div>
  5138. </div>
  5139. </div>
  5140. </div>
  5141. </div>
  5142. </div>
  5143. <div class="group_work" v-else>暂无提交作业</div>
  5144. </div>
  5145. </div>
  5146. <div
  5147. class="worksDetailBox"
  5148. v-if="
  5149. worksStudent.length &&
  5150. worksStudent[toolIndex].length > 0
  5151. "
  5152. >
  5153. <div
  5154. class="works"
  5155. style="
  5156. width: 200px;
  5157. height: 140px;
  5158. margin: 10px 10px 10px 0;
  5159. border-radius: 15px;
  5160. box-shadow: 0 0 6px 1px #dfdada;
  5161. "
  5162. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5163. 0
  5164. ? worksStudent[toolIndex]
  5165. : worksStudent[toolIndex].slice(0, 6)"
  5166. :key="wIndex"
  5167. >
  5168. <!-- @click="previewImg(w.works)" -->
  5169. <div class="workImg">
  5170. <img
  5171. :src="w.works"
  5172. @click="previewImg(w.works)"
  5173. alt
  5174. />
  5175. <div
  5176. class="answerScore"
  5177. v-if="w.score"
  5178. @click.stop="openScore(w)"
  5179. :class="{
  5180. rightW:
  5181. w.userid == userid || tType == 1 || tType == 4,
  5182. }"
  5183. >
  5184. {{ JSON.parse(w.score).wScore }}分
  5185. </div>
  5186. <div
  5187. class="answerScore"
  5188. @click.stop="openScore(w)"
  5189. v-else-if="courseDetail.userid == userid"
  5190. :class="{
  5191. rightW:
  5192. w.userid == userid || tType == 1 || tType == 4,
  5193. }"
  5194. >
  5195. 评分
  5196. </div>
  5197. <img
  5198. class="deleteImg"
  5199. src="../../assets/deleteworks.png"
  5200. v-if="
  5201. w.userid == userid || tType == 1 || tType == 4
  5202. "
  5203. @click.stop="deleteWorks(w.wid)"
  5204. alt
  5205. />
  5206. </div>
  5207. <div class="comment" style="min-width: 200px">
  5208. <div class="worksName">
  5209. <div>{{ w.sName }}</div>
  5210. </div>
  5211. <div class="commentList">
  5212. <div class="commentList">
  5213. <div
  5214. class="commentImg"
  5215. @click="
  5216. isLikes(w.wid, userid, 1, null, w.isLikes)
  5217. "
  5218. >
  5219. <img
  5220. :src="w.isLikes == true ? likes : noLikes"
  5221. alt=""
  5222. />
  5223. </div>
  5224. <div>{{ w.likesCount }}</div>
  5225. </div>
  5226. <div class="commentList" style="margin-right: 15px">
  5227. <div
  5228. class="commentImg"
  5229. @click="commentOther(w, toolIndex, wIndex)"
  5230. >
  5231. <img
  5232. src="../../assets/icon/comment/comment.png"
  5233. alt=""
  5234. />
  5235. </div>
  5236. <div>{{ w.commentCount }}</div>
  5237. </div>
  5238. </div>
  5239. </div>
  5240. </div>
  5241. </div>
  5242. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5243. 未提交
  5244. </div>
  5245. <div
  5246. class="noWorksS"
  5247. v-if="noWorksS && noWorksS[toolIndex].length"
  5248. >
  5249. <div
  5250. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5251. :key="sIndex"
  5252. class="noWorksName"
  5253. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5254. >
  5255. {{ s.student }}
  5256. </div>
  5257. </div>
  5258. </div>
  5259. <div
  5260. v-if="
  5261. tType &&
  5262. ((tType == 2 && sIsOpen == true) ||
  5263. tType == 1 ||
  5264. tType == 4) &&
  5265. tool.tool.indexOf(26) != -1
  5266. "
  5267. class="worksBox"
  5268. >
  5269. <div
  5270. class="zuoyeYulan"
  5271. v-if="
  5272. worksStudent.length &&
  5273. worksStudent[toolIndex].length > 0
  5274. "
  5275. >
  5276. <div class="worksTop">
  5277. <div>作业预览</div>
  5278. <div
  5279. class="corOpen"
  5280. @click="contract(toolIndex)"
  5281. v-if="
  5282. worksStudent[toolIndex].length > 6 &&
  5283. isCloseList[toolIndex].isClose == 0
  5284. "
  5285. >
  5286. 折叠
  5287. </div>
  5288. <div
  5289. class="corOpen"
  5290. @click="contract(toolIndex)"
  5291. v-if="isCloseList[toolIndex].isClose == 1"
  5292. >
  5293. 展开
  5294. </div>
  5295. </div>
  5296. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5297. </div>
  5298. <div
  5299. class="worksDetailBox"
  5300. v-if="
  5301. worksStudent.length &&
  5302. worksStudent[toolIndex].length > 0
  5303. "
  5304. >
  5305. <div
  5306. class="works"
  5307. style="width: 240px; height: 140px; overflow: hidden"
  5308. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5309. 0
  5310. ? worksStudent[toolIndex]
  5311. : worksStudent[toolIndex].slice(0, 6)"
  5312. :key="wIndex"
  5313. :class="w.type == 1 ? 'isTypeOne' : ''"
  5314. >
  5315. <div class="workImg" v-if="w.type == 0">
  5316. <img
  5317. :src="w.works"
  5318. @click="previewImg(w.works)"
  5319. alt
  5320. />
  5321. <img
  5322. class="deleteImg"
  5323. src="../../assets/deleteworks.png"
  5324. v-if="
  5325. w.userid == userid || tType == 1 || tType == 4
  5326. "
  5327. @click.stop="deleteWorks(w.wid)"
  5328. alt
  5329. />
  5330. </div>
  5331. <div class="workImg" v-if="w.type == 1">
  5332. <img :src="word" @click="openFile(w.works)" alt />
  5333. <img
  5334. class="deleteImg"
  5335. src="../../assets/deleteworks.png"
  5336. v-if="
  5337. w.userid == userid || tType == 1 || tType == 4
  5338. "
  5339. @click.stop="deleteWorks(w.wid)"
  5340. alt
  5341. />
  5342. </div>
  5343. <div class="worksName">
  5344. <div>{{ w.sName }}</div>
  5345. </div>
  5346. </div>
  5347. </div>
  5348. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5349. 未提交
  5350. </div>
  5351. <div
  5352. class="noWorksS"
  5353. v-if="noWorksS && noWorksS[toolIndex].length"
  5354. >
  5355. <div
  5356. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5357. :key="sIndex"
  5358. class="noWorksName"
  5359. >
  5360. {{ s.student }}
  5361. </div>
  5362. </div>
  5363. </div>
  5364. <div
  5365. v-if="
  5366. tType &&
  5367. ((tType == 2 && sIsOpen == true) ||
  5368. tType == 1 ||
  5369. tType == 4) &&
  5370. tool.tool.indexOf(40) != -1
  5371. "
  5372. class="worksBox"
  5373. >
  5374. <div
  5375. class="zuoyeYulan"
  5376. v-if="
  5377. worksStudent.length &&
  5378. worksStudent[toolIndex].length > 0
  5379. "
  5380. >
  5381. <div class="worksTop">
  5382. <div>作业预览</div>
  5383. <div
  5384. class="corOpen"
  5385. @click="contract(toolIndex)"
  5386. v-if="
  5387. worksStudent[toolIndex].length > 6 &&
  5388. isCloseList[toolIndex].isClose == 0
  5389. "
  5390. >
  5391. 折叠
  5392. </div>
  5393. <div
  5394. class="corOpen"
  5395. @click="contract(toolIndex)"
  5396. v-if="isCloseList[toolIndex].isClose == 1"
  5397. >
  5398. 展开
  5399. </div>
  5400. </div>
  5401. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5402. </div>
  5403. <div
  5404. class="worksDetailBox"
  5405. v-if="
  5406. worksStudent.length &&
  5407. worksStudent[toolIndex].length > 0
  5408. "
  5409. >
  5410. <div
  5411. class="works"
  5412. style="
  5413. width: 200px;
  5414. height: 140px;
  5415. margin: 10px 10px 10px 0;
  5416. border-radius: 15px;
  5417. box-shadow: 0 0 6px 1px #dfdada;
  5418. "
  5419. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5420. 0
  5421. ? worksStudent[toolIndex]
  5422. : worksStudent[toolIndex].slice(0, 6)"
  5423. :key="wIndex"
  5424. :class="w.type == 1 ? 'isTypeOne' : ''"
  5425. >
  5426. <div class="workImg">
  5427. <img
  5428. src="../../assets/icon/works/noImg.png"
  5429. @click="openPj(w.works, toolIndex)"
  5430. alt
  5431. />
  5432. <img
  5433. class="deleteImg"
  5434. src="../../assets/deleteworks.png"
  5435. v-if="
  5436. w.userid == userid || tType == 1 || tType == 4
  5437. "
  5438. @click.stop="deleteWorks(w.wid)"
  5439. alt
  5440. />
  5441. </div>
  5442. <div class="comment" style="min-width: 200px">
  5443. <div class="worksName">
  5444. <div>{{ w.sName }}</div>
  5445. </div>
  5446. <div class="commentList">
  5447. <div class="commentList">
  5448. <div
  5449. class="commentImg"
  5450. @click="
  5451. isLikes(w.wid, userid, 1, null, w.isLikes)
  5452. "
  5453. >
  5454. <img
  5455. :src="w.isLikes == true ? likes : noLikes"
  5456. alt=""
  5457. />
  5458. </div>
  5459. <div>{{ w.likesCount }}</div>
  5460. </div>
  5461. <div class="commentList" style="margin-right: 15px">
  5462. <div
  5463. class="commentImg"
  5464. @click="commentOther(w, toolIndex, wIndex)"
  5465. >
  5466. <img
  5467. src="../../assets/icon/comment/comment.png"
  5468. alt=""
  5469. />
  5470. </div>
  5471. <div>{{ w.commentCount }}</div>
  5472. </div>
  5473. </div>
  5474. </div>
  5475. </div>
  5476. </div>
  5477. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5478. 未提交
  5479. </div>
  5480. <div
  5481. class="noWorksS"
  5482. v-if="noWorksS && noWorksS[toolIndex].length"
  5483. >
  5484. <div
  5485. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5486. :key="sIndex"
  5487. class="noWorksName"
  5488. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5489. >
  5490. {{ s.student }}
  5491. </div>
  5492. </div>
  5493. </div>
  5494. <div
  5495. v-if="
  5496. tType &&
  5497. tType == 2 &&
  5498. !sIsOpen &&
  5499. tool.tool.indexOf(40) != -1
  5500. "
  5501. class="worksBox"
  5502. >
  5503. <div
  5504. class="zuoyeYulan"
  5505. v-if="workStudent[toolIndex].length > 0"
  5506. >
  5507. <span class="worksTitle">作业预览</span>
  5508. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5509. </div>
  5510. <div
  5511. class="worksDetailBox"
  5512. v-if="workStudent[toolIndex].length > 0"
  5513. >
  5514. <div
  5515. class="works"
  5516. style="
  5517. width: 200px;
  5518. height: 140px;
  5519. margin: 10px 10px 10px 0;
  5520. "
  5521. v-for="(w, wIndex) in workStudent[toolIndex]"
  5522. :key="wIndex"
  5523. >
  5524. <div class="workImg">
  5525. <img
  5526. src="../../assets/icon/works/noImg.png"
  5527. @click="openPj(w.works, toolIndex)"
  5528. alt
  5529. />
  5530. <img
  5531. class="deleteImg"
  5532. src="../../assets/deleteworks.png"
  5533. v-if="
  5534. w.userid == userid || tType == 1 || tType == 4
  5535. "
  5536. @click.stop="deleteWorks(w.wid)"
  5537. alt
  5538. />
  5539. </div>
  5540. <div class="worksName">
  5541. <div>{{ w.sName }}</div>
  5542. </div>
  5543. </div>
  5544. </div>
  5545. </div>
  5546. <div
  5547. v-if="
  5548. tType &&
  5549. ((tType == 2 && sIsOpen == true) ||
  5550. tType == 1 ||
  5551. tType == 4) &&
  5552. tool.tool.indexOf(41) != -1
  5553. "
  5554. >
  5555. <AnswerData2
  5556. v-if="
  5557. worksStudent.length &&
  5558. worksStudent[toolIndex].length > 0
  5559. "
  5560. :problemJson="tool.selectJson.answer"
  5561. :people="worksStudent[toolIndex]"
  5562. ></AnswerData2>
  5563. </div>
  5564. <div
  5565. v-if="
  5566. tType &&
  5567. ((tType == 2 && sIsOpen == true) ||
  5568. tType == 1 ||
  5569. tType == 4) &&
  5570. tool.tool.indexOf(41) != -1
  5571. "
  5572. class="worksBox"
  5573. >
  5574. <div
  5575. class="zuoyeYulan"
  5576. v-if="
  5577. worksStudent.length &&
  5578. worksStudent[toolIndex].length > 0
  5579. "
  5580. >
  5581. <div class="worksTop">
  5582. <div>作业预览</div>
  5583. <div
  5584. class="corOpen"
  5585. @click="contract(toolIndex)"
  5586. v-if="
  5587. worksStudent[toolIndex].length > 6 &&
  5588. isCloseList[toolIndex].isClose == 0
  5589. "
  5590. >
  5591. 折叠
  5592. </div>
  5593. <div
  5594. class="corOpen"
  5595. @click="contract(toolIndex)"
  5596. v-if="isCloseList[toolIndex].isClose == 1"
  5597. >
  5598. 展开
  5599. </div>
  5600. </div>
  5601. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5602. </div>
  5603. <div
  5604. class="worksDetailBox"
  5605. v-if="
  5606. worksStudent.length &&
  5607. worksStudent[toolIndex].length > 0
  5608. "
  5609. >
  5610. <div
  5611. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5612. 0
  5613. ? worksStudent[toolIndex]
  5614. : worksStudent[toolIndex].slice(0, 6)"
  5615. :key="wIndex"
  5616. class="isWorksName2"
  5617. @click="openXz(w, toolIndex)"
  5618. >
  5619. {{ w.sName }}
  5620. <img
  5621. class="deleteImg deleteImg2"
  5622. src="../../assets/deleteworks.png"
  5623. v-if="w.userid == userid || tType == 1 || tType == 4"
  5624. @click.stop="deleteWorks(w.wid)"
  5625. alt
  5626. />
  5627. </div>
  5628. <!-- <div
  5629. class="works"
  5630. style="
  5631. width: 200px;
  5632. height: 140px;
  5633. margin: 10px 10px 10px 0;
  5634. border-radius: 15px;
  5635. box-shadow: 0 0 6px 1px #dfdada;
  5636. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5637. :class="w.type == 5 ? 'isTypeOne' : ''">
  5638. <div class="workImg">
  5639. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5640. </div>
  5641. <div class="worksName">
  5642. <div>{{ w.sName }}</div>
  5643. </div>
  5644. </div> -->
  5645. </div>
  5646. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5647. 未提交
  5648. </div>
  5649. <div
  5650. class="noWorksS"
  5651. v-if="noWorksS && noWorksS[toolIndex].length"
  5652. >
  5653. <div
  5654. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5655. :key="sIndex"
  5656. class="noWorksName"
  5657. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5658. >
  5659. {{ s.student }}
  5660. </div>
  5661. </div>
  5662. </div>
  5663. <div
  5664. v-if="
  5665. tType &&
  5666. tType == 2 &&
  5667. !sIsOpen &&
  5668. tool.tool.indexOf(41) != -1
  5669. "
  5670. class="worksBox"
  5671. >
  5672. <div
  5673. class="zuoyeYulan"
  5674. v-if="workStudent[toolIndex].length > 0"
  5675. >
  5676. <span class="worksTitle">作业预览</span>
  5677. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5678. </div>
  5679. <div
  5680. class="worksDetailBox"
  5681. v-if="workStudent[toolIndex].length > 0"
  5682. >
  5683. <div
  5684. class="works"
  5685. style="
  5686. width: 200px;
  5687. height: 140px;
  5688. margin: 10px 10px 10px 0;
  5689. "
  5690. v-for="(w, wIndex) in workStudent[toolIndex]"
  5691. :key="wIndex"
  5692. >
  5693. <div class="workImg">
  5694. <img
  5695. src="../../assets/icon/works/noImg.png"
  5696. @click="openXz(w, toolIndex)"
  5697. alt
  5698. />
  5699. <img
  5700. class="deleteImg"
  5701. src="../../assets/deleteworks.png"
  5702. v-if="
  5703. w.userid == userid || tType == 1 || tType == 4
  5704. "
  5705. @click.stop="deleteWorks(w.wid)"
  5706. alt
  5707. />
  5708. </div>
  5709. <div class="worksName">
  5710. <div>{{ w.sName }}</div>
  5711. </div>
  5712. </div>
  5713. </div>
  5714. </div>
  5715. <div v-if="false" class="xuan_right_box">
  5716. <div
  5717. class="tool_right_box"
  5718. v-for="(item, index) in tool.sentenceList"
  5719. :key="index"
  5720. >
  5721. <div>
  5722. <span
  5723. style="word-break: break-all; white-space: normal"
  5724. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5725. >
  5726. </div>
  5727. <div class="right_box_xuan">
  5728. <span>正确率</span>
  5729. <span>{{
  5730. (checkJson[toolIndex][index].right
  5731. ? checkJson[toolIndex][index].right
  5732. : 0) + "%"
  5733. }}</span>
  5734. </div>
  5735. <div class="right_box_xuan">
  5736. <span>答对人数</span>
  5737. <span>{{
  5738. checkJson[toolIndex][index].rightPerson.length
  5739. }}</span>
  5740. </div>
  5741. </div>
  5742. </div>
  5743. <div
  5744. v-if="
  5745. tType &&
  5746. ((tType == 2 && sIsOpen == true) ||
  5747. tType == 1 ||
  5748. tType == 4) &&
  5749. tool.tool.indexOf(47) != -1
  5750. "
  5751. >
  5752. <AnswerData
  5753. v-if="
  5754. checkJson[toolIndex].length &&
  5755. (tool.sentenceList || tool.sentenceList.length > 0)
  5756. "
  5757. :people="checkJson[toolIndex]"
  5758. ></AnswerData>
  5759. </div>
  5760. <div
  5761. v-if="
  5762. tType &&
  5763. tType == 2 &&
  5764. !sIsOpen &&
  5765. tool.tool.indexOf(47) != -1
  5766. "
  5767. class="worksBox"
  5768. >
  5769. <div
  5770. class="zuoyeYulan"
  5771. v-if="workStudent[toolIndex].length > 0"
  5772. >
  5773. <span class="worksTitle">作业预览</span>
  5774. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5775. </div>
  5776. <div
  5777. class="worksDetailBox"
  5778. v-if="workStudent[toolIndex].length > 0"
  5779. >
  5780. <div
  5781. class="works"
  5782. style="
  5783. width: 200px;
  5784. height: 140px;
  5785. margin: 10px 10px 10px 0;
  5786. "
  5787. v-for="(w, wIndex) in workStudent[toolIndex]"
  5788. :key="wIndex"
  5789. >
  5790. <!-- @click="openXz(w, toolIndex)" -->
  5791. <div class="workImg" @click="openSen(w, toolIndex)">
  5792. <img src="../../assets/icon/works/noImg.png" alt />
  5793. <img
  5794. class="deleteImg"
  5795. src="../../assets/deleteworks.png"
  5796. v-if="
  5797. w.userid == userid || tType == 1 || tType == 4
  5798. "
  5799. @click.stop="deleteWorks(w.wid)"
  5800. alt
  5801. />
  5802. </div>
  5803. <div class="worksName">
  5804. <div>
  5805. {{ w.sName }}
  5806. </div>
  5807. </div>
  5808. </div>
  5809. </div>
  5810. </div>
  5811. <div
  5812. v-if="
  5813. tType &&
  5814. ((tType == 2 && sIsOpen == true) ||
  5815. tType == 1 ||
  5816. tType == 4) &&
  5817. tool.tool.indexOf(47) != -1
  5818. "
  5819. class="worksBox"
  5820. >
  5821. <div
  5822. class="zuoyeYulan"
  5823. v-if="
  5824. worksStudent.length &&
  5825. worksStudent[toolIndex].length > 0
  5826. "
  5827. >
  5828. <div class="worksTop">
  5829. <div>作业预览</div>
  5830. <div
  5831. class="corOpen"
  5832. @click="contract(toolIndex)"
  5833. v-if="
  5834. worksStudent[toolIndex].length > 6 &&
  5835. isCloseList[toolIndex].isClose == 0
  5836. "
  5837. >
  5838. 折叠
  5839. </div>
  5840. <div
  5841. class="corOpen"
  5842. @click="contract(toolIndex)"
  5843. v-if="isCloseList[toolIndex].isClose == 1"
  5844. >
  5845. 展开
  5846. </div>
  5847. </div>
  5848. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5849. </div>
  5850. <div
  5851. class="worksDetailBox"
  5852. v-if="
  5853. worksStudent.length &&
  5854. worksStudent[toolIndex].length > 0
  5855. "
  5856. >
  5857. <!-- @click="openXz(w, toolIndex)" -->
  5858. <div
  5859. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5860. 0
  5861. ? worksStudent[toolIndex]
  5862. : worksStudent[toolIndex].slice(0, 6)"
  5863. :key="wIndex"
  5864. class="isWorksName2"
  5865. @click="openSen(w, toolIndex)"
  5866. >
  5867. {{ w.sName }}
  5868. <img
  5869. class="deleteImg deleteImg2"
  5870. src="../../assets/deleteworks.png"
  5871. v-if="w.userid == userid || tType == 1 || tType == 4"
  5872. @click.stop="deleteWorks(w.wid)"
  5873. alt
  5874. />
  5875. </div>
  5876. </div>
  5877. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5878. 未提交
  5879. </div>
  5880. <div
  5881. class="noWorksS"
  5882. v-if="noWorksS && noWorksS[toolIndex].length"
  5883. >
  5884. <div
  5885. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5886. :key="sIndex"
  5887. class="noWorksName"
  5888. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5889. >
  5890. {{ s.student }}
  5891. </div>
  5892. </div>
  5893. </div>
  5894. <div
  5895. v-if="
  5896. tType &&
  5897. ((tType == 2 && sIsOpen == true) ||
  5898. tType == 1 ||
  5899. tType == 4) &&
  5900. tool.tool.indexOf(48) != -1
  5901. "
  5902. class="worksBox"
  5903. >
  5904. <div
  5905. class="zuoyeYulan"
  5906. v-if="
  5907. worksStudent.length &&
  5908. worksStudent[toolIndex].length > 0
  5909. "
  5910. >
  5911. <div class="worksTop">
  5912. <div>作业预览</div>
  5913. <div
  5914. class="corOpen"
  5915. @click="contract(toolIndex)"
  5916. v-if="
  5917. worksStudent[toolIndex].length > 6 &&
  5918. isCloseList[toolIndex].isClose == 0
  5919. "
  5920. >
  5921. 折叠
  5922. </div>
  5923. <div
  5924. class="corOpen"
  5925. @click="contract(toolIndex)"
  5926. v-if="isCloseList[toolIndex].isClose == 1"
  5927. >
  5928. 展开
  5929. </div>
  5930. </div>
  5931. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5932. </div>
  5933. <div
  5934. class="worksDetailBox"
  5935. v-if="
  5936. worksStudent.length &&
  5937. worksStudent[toolIndex].length > 0
  5938. "
  5939. >
  5940. <div
  5941. class="works"
  5942. style="
  5943. width: 200px;
  5944. height: 140px;
  5945. margin: 10px 10px 10px 0;
  5946. border-radius: 15px;
  5947. box-shadow: 0 0 6px 1px #dfdada;
  5948. "
  5949. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5950. 0
  5951. ? worksStudent[toolIndex]
  5952. : worksStudent[toolIndex].slice(0, 6)"
  5953. :key="wIndex"
  5954. :class="w.type == 1 ? 'isTypeOne' : ''"
  5955. >
  5956. <div class="workImg">
  5957. <img :src="word" @click="openTable(w)" alt />
  5958. <!-- @click="openFile(w.works)" -->
  5959. <div
  5960. class="answerScore"
  5961. v-if="w.score"
  5962. @click.stop="openScore(w)"
  5963. :class="{
  5964. rightW:
  5965. w.userid == userid ||
  5966. tType == 1 ||
  5967. tType == 4 ||
  5968. w.ateacher == userid,
  5969. }"
  5970. >
  5971. {{ JSON.parse(w.score).wScore }}分
  5972. </div>
  5973. <div
  5974. class="answerScore"
  5975. @click.stop="openScore(w)"
  5976. v-else-if="courseDetail.userid == userid"
  5977. :class="{
  5978. rightW:
  5979. w.userid == userid ||
  5980. tType == 1 ||
  5981. tType == 4 ||
  5982. w.ateacher == userid,
  5983. }"
  5984. >
  5985. 评分
  5986. </div>
  5987. <img
  5988. class="deleteImg"
  5989. src="../../assets/deleteworks.png"
  5990. v-if="
  5991. w.userid == userid || tType == 1 || tType == 4
  5992. "
  5993. @click.stop="deleteWorks(w.wid)"
  5994. alt
  5995. />
  5996. </div>
  5997. <div class="comment" style="min-width: 200px">
  5998. <div class="worksName">
  5999. <div>{{ w.sName }}</div>
  6000. </div>
  6001. <div class="commentList">
  6002. <div class="commentList">
  6003. <div
  6004. class="commentImg"
  6005. @click="
  6006. isLikes(w.wid, userid, 1, null, w.isLikes)
  6007. "
  6008. >
  6009. <img
  6010. :src="w.isLikes == true ? likes : noLikes"
  6011. alt=""
  6012. />
  6013. </div>
  6014. <div>{{ w.likesCount }}</div>
  6015. </div>
  6016. <div class="commentList" style="margin-right: 15px">
  6017. <div
  6018. class="commentImg"
  6019. @click="commentOther(w, toolIndex, wIndex)"
  6020. >
  6021. <img
  6022. src="../../assets/icon/comment/comment.png"
  6023. alt=""
  6024. />
  6025. </div>
  6026. <div>{{ w.commentCount }}</div>
  6027. </div>
  6028. </div>
  6029. </div>
  6030. </div>
  6031. </div>
  6032. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6033. 未提交
  6034. </div>
  6035. <div
  6036. class="noWorksS"
  6037. v-if="noWorksS && noWorksS[toolIndex].length"
  6038. >
  6039. <div
  6040. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6041. :key="sIndex"
  6042. class="noWorksName"
  6043. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6044. >
  6045. {{ s.student }}
  6046. </div>
  6047. </div>
  6048. </div>
  6049. <div
  6050. v-if="
  6051. tType &&
  6052. tType == 2 &&
  6053. !sIsOpen &&
  6054. tool.tool.indexOf(48) != -1
  6055. "
  6056. class="worksBox"
  6057. >
  6058. <div
  6059. class="zuoyeYulan"
  6060. v-if="workStudent[toolIndex].length > 0"
  6061. >
  6062. <span class="worksTitle">作业预览</span>
  6063. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6064. </div>
  6065. <div
  6066. class="worksDetailBox"
  6067. v-if="workStudent[toolIndex].length > 0"
  6068. >
  6069. <div
  6070. class="works"
  6071. style="
  6072. width: 200px;
  6073. height: 140px;
  6074. margin: 10px 10px 10px 0;
  6075. box-shadow: 0 0 6px 1px #dfdada;
  6076. "
  6077. v-for="(w, wIndex) in workStudent[toolIndex]"
  6078. :key="wIndex"
  6079. >
  6080. <div class="workImg">
  6081. <img :src="word" @click="openTable(w)" alt />
  6082. <div
  6083. class="answerScore"
  6084. v-if="w.score"
  6085. @click.stop="openScore(w)"
  6086. :class="{
  6087. rightW:
  6088. w.userid == userid || tType == 1 || tType == 4,
  6089. }"
  6090. >
  6091. {{ JSON.parse(w.score).wScore }}分
  6092. </div>
  6093. <div
  6094. class="answerScore"
  6095. @click.stop="openScore(w)"
  6096. v-else-if="courseDetail.userid == userid"
  6097. :class="{
  6098. rightW:
  6099. w.userid == userid || tType == 1 || tType == 4,
  6100. }"
  6101. >
  6102. 评分
  6103. </div>
  6104. <img
  6105. class="deleteImg"
  6106. src="../../assets/deleteworks.png"
  6107. v-if="
  6108. w.userid == userid || tType == 1 || tType == 4
  6109. "
  6110. @click.stop="deleteWorks(w.wid)"
  6111. alt
  6112. />
  6113. </div>
  6114. <div class="worksName">
  6115. <div>{{ w.sName }}</div>
  6116. </div>
  6117. </div>
  6118. </div>
  6119. </div>
  6120. <div
  6121. v-if="
  6122. tType &&
  6123. ((tType == 2 && sIsOpen == true) ||
  6124. tType == 1 ||
  6125. tType == 4) &&
  6126. tool.tool.indexOf(52) != -1
  6127. "
  6128. class="worksBox"
  6129. >
  6130. <div
  6131. class="zuoyeYulan"
  6132. v-if="
  6133. worksStudent.length &&
  6134. worksStudent[toolIndex].length > 0
  6135. "
  6136. >
  6137. <div class="worksTop">
  6138. <div>作业预览</div>
  6139. <div
  6140. class="corOpen"
  6141. @click="contract(toolIndex)"
  6142. v-if="
  6143. worksStudent[toolIndex].length > 6 &&
  6144. isCloseList[toolIndex].isClose == 0
  6145. "
  6146. >
  6147. 折叠
  6148. </div>
  6149. <div
  6150. class="corOpen"
  6151. @click="contract(toolIndex)"
  6152. v-if="isCloseList[toolIndex].isClose == 1"
  6153. >
  6154. 展开
  6155. </div>
  6156. </div>
  6157. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6158. </div>
  6159. <div
  6160. class="worksDetailBox"
  6161. v-if="
  6162. worksStudent.length &&
  6163. worksStudent[toolIndex].length > 0
  6164. "
  6165. >
  6166. <div
  6167. class="works"
  6168. style="
  6169. width: 200px;
  6170. height: 140px;
  6171. margin: 10px 10px 10px 0;
  6172. border-radius: 15px;
  6173. box-shadow: 0 0 6px 1px #dfdada;
  6174. "
  6175. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6176. 0
  6177. ? worksStudent[toolIndex]
  6178. : worksStudent[toolIndex].slice(0, 6)"
  6179. :key="wIndex"
  6180. :class="w.type == 1 ? 'isTypeOne' : ''"
  6181. >
  6182. <div class="workImg">
  6183. <img :src="word" @click="openWord(w)" alt />
  6184. <!-- @click="openFile(w.works)" -->
  6185. <div
  6186. class="answerScore"
  6187. v-if="w.score"
  6188. @click.stop="openScore(w)"
  6189. :class="{
  6190. rightW:
  6191. w.userid == userid ||
  6192. tType == 1 ||
  6193. tType == 4 ||
  6194. w.ateacher == userid,
  6195. }"
  6196. >
  6197. {{ JSON.parse(w.score).wScore }}分
  6198. </div>
  6199. <div
  6200. class="answerScore"
  6201. @click.stop="openScore(w)"
  6202. v-else-if="courseDetail.userid == userid"
  6203. :class="{
  6204. rightW:
  6205. w.userid == userid ||
  6206. tType == 1 ||
  6207. tType == 4 ||
  6208. w.ateacher == userid,
  6209. }"
  6210. >
  6211. 评分
  6212. </div>
  6213. <img
  6214. class="deleteImg"
  6215. src="../../assets/deleteworks.png"
  6216. v-if="
  6217. w.userid == userid || tType == 1 || tType == 4
  6218. "
  6219. @click.stop="deleteWorks(w.wid)"
  6220. alt
  6221. />
  6222. </div>
  6223. <div class="comment" style="min-width: 200px">
  6224. <div class="worksName">
  6225. <div>{{ w.sName }}</div>
  6226. </div>
  6227. <div class="commentList">
  6228. <div class="commentList">
  6229. <div
  6230. class="commentImg"
  6231. @click="
  6232. isLikes(w.wid, userid, 1, null, w.isLikes)
  6233. "
  6234. >
  6235. <img
  6236. :src="w.isLikes == true ? likes : noLikes"
  6237. alt=""
  6238. />
  6239. </div>
  6240. <div>{{ w.likesCount }}</div>
  6241. </div>
  6242. <div class="commentList" style="margin-right: 15px">
  6243. <div
  6244. class="commentImg"
  6245. @click="commentOther(w, toolIndex, wIndex)"
  6246. >
  6247. <img
  6248. src="../../assets/icon/comment/comment.png"
  6249. alt=""
  6250. />
  6251. </div>
  6252. <div>{{ w.commentCount }}</div>
  6253. </div>
  6254. </div>
  6255. </div>
  6256. </div>
  6257. </div>
  6258. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6259. 未提交
  6260. </div>
  6261. <div
  6262. class="noWorksS"
  6263. v-if="noWorksS && noWorksS[toolIndex].length"
  6264. >
  6265. <div
  6266. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6267. :key="sIndex"
  6268. class="noWorksName"
  6269. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6270. >
  6271. {{ s.student }}
  6272. </div>
  6273. </div>
  6274. </div>
  6275. <div
  6276. v-if="
  6277. tType &&
  6278. tType == 2 &&
  6279. !sIsOpen &&
  6280. tool.tool.indexOf(52) != -1
  6281. "
  6282. class="worksBox"
  6283. >
  6284. <div
  6285. class="zuoyeYulan"
  6286. v-if="workStudent[toolIndex].length > 0"
  6287. >
  6288. <span class="worksTitle">作业预览</span>
  6289. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6290. </div>
  6291. <div
  6292. class="worksDetailBox"
  6293. v-if="workStudent[toolIndex].length > 0"
  6294. >
  6295. <div
  6296. class="works"
  6297. style="
  6298. width: 200px;
  6299. height: 140px;
  6300. margin: 10px 10px 10px 0;
  6301. box-shadow: 0 0 6px 1px #dfdada;
  6302. "
  6303. v-for="(w, wIndex) in workStudent[toolIndex]"
  6304. :key="wIndex"
  6305. >
  6306. <div class="workImg">
  6307. <img :src="word" @click="openWord(w)" alt />
  6308. <div
  6309. class="answerScore"
  6310. v-if="w.score"
  6311. @click.stop="openScore(w)"
  6312. :class="{
  6313. rightW:
  6314. w.userid == userid || tType == 1 || tType == 4,
  6315. }"
  6316. >
  6317. {{ JSON.parse(w.score).wScore }}分
  6318. </div>
  6319. <div
  6320. class="answerScore"
  6321. @click.stop="openScore(w)"
  6322. v-else-if="courseDetail.userid == userid"
  6323. :class="{
  6324. rightW:
  6325. w.userid == userid || tType == 1 || tType == 4,
  6326. }"
  6327. >
  6328. 评分
  6329. </div>
  6330. <img
  6331. class="deleteImg"
  6332. src="../../assets/deleteworks.png"
  6333. v-if="
  6334. w.userid == userid || tType == 1 || tType == 4
  6335. "
  6336. @click.stop="deleteWorks(w.wid)"
  6337. alt
  6338. />
  6339. </div>
  6340. <div class="worksName">
  6341. <div>{{ w.sName }}</div>
  6342. </div>
  6343. </div>
  6344. </div>
  6345. </div>
  6346. <div
  6347. v-if="tool.tool.indexOf(49) != -1"
  6348. class="xuan_right_box"
  6349. style="margin: 0 15px 0 25px; width: 93%"
  6350. >
  6351. <div
  6352. v-if="courseDetail.userid == userid"
  6353. style="
  6354. display: flex;
  6355. justify-content: flex-end;
  6356. margin-right: 10px;
  6357. "
  6358. >
  6359. <el-button
  6360. type="primary"
  6361. size="small"
  6362. @click="addTools(49, toolIndex, taskCount)"
  6363. >分组设置</el-button
  6364. >
  6365. </div>
  6366. <div
  6367. v-if="groupStudentUid[toolIndex]"
  6368. class="group_staic_box"
  6369. >
  6370. <div
  6371. v-for="(gp, gd) in tool.groupJson.group"
  6372. :key="gd"
  6373. class="group_staic"
  6374. >
  6375. <span> {{ gp.name }}</span>
  6376. <span>
  6377. 目前人数{{
  6378. groupStudentUid[toolIndex][gd].length
  6379. }}人</span
  6380. >
  6381. </div>
  6382. </div>
  6383. </div>
  6384. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6385. <div
  6386. class="zuoyeYulan"
  6387. v-if="
  6388. worksStudent.length &&
  6389. worksStudent[toolIndex].length > 0
  6390. "
  6391. >
  6392. <span class="worksTitle">作业预览</span>
  6393. </div>
  6394. <div>
  6395. <div
  6396. class="group_workBox"
  6397. v-for="(g, gindex) in tool.groupJson.group"
  6398. :key="gindex"
  6399. >
  6400. <div
  6401. class="group_box"
  6402. v-if="
  6403. groupStudentUid[toolIndex] &&
  6404. worksStudent[toolIndex] &&
  6405. (worksStudent[toolIndex][gindex].length ||
  6406. groupStudentUid[toolIndex][gindex].indexOf(
  6407. userid
  6408. ) != -1)
  6409. "
  6410. >
  6411. <div class="group_title">
  6412. <el-tooltip
  6413. class="item"
  6414. effect="light"
  6415. :content="g.name"
  6416. placement="top"
  6417. >
  6418. <div class="group_name">{{ g.name }}</div>
  6419. </el-tooltip>
  6420. <el-button
  6421. type="primary"
  6422. v-if="
  6423. groupStudentUid[toolIndex][gindex].indexOf(
  6424. userid
  6425. ) != -1
  6426. "
  6427. @click="groupUpload(toolIndex, taskCount, gindex)"
  6428. >上传作业</el-button
  6429. >
  6430. </div>
  6431. <div class="group_work">
  6432. <div
  6433. class="works"
  6434. style="
  6435. width: 200px;
  6436. height: 140px;
  6437. margin: 10px 10px 10px 0;
  6438. border-radius: 15px;
  6439. box-shadow: 0 0 6px 1px #dfdada;
  6440. "
  6441. v-for="(w, wIndex) in worksStudent[toolIndex][
  6442. gindex
  6443. ]"
  6444. :key="wIndex"
  6445. :class="w.type == 1 ? 'isTypeOne' : ''"
  6446. >
  6447. <div class="workImg" v-if="w.type == 0">
  6448. <img
  6449. :src="w.works"
  6450. @click="previewImg(w.works)"
  6451. alt
  6452. />
  6453. <div
  6454. class="answerScore"
  6455. v-if="w.score"
  6456. @click.stop="openScore(w)"
  6457. :class="{
  6458. rightW:
  6459. w.userid == userid ||
  6460. tType == 1 ||
  6461. tType == 4 ||
  6462. w.ateacher == userid,
  6463. }"
  6464. >
  6465. {{ JSON.parse(w.score).wScore }}分
  6466. </div>
  6467. <div
  6468. class="answerScore"
  6469. @click.stop="openScore(w)"
  6470. v-else-if="courseDetail.userid == userid"
  6471. :class="{
  6472. rightW:
  6473. w.userid == userid ||
  6474. tType == 1 ||
  6475. tType == 4 ||
  6476. w.ateacher == userid,
  6477. }"
  6478. >
  6479. 评分
  6480. </div>
  6481. <img
  6482. class="deleteImg"
  6483. src="../../assets/deleteworks.png"
  6484. v-if="
  6485. w.userid == userid ||
  6486. tType == 1 ||
  6487. tType == 4
  6488. "
  6489. @click.stop="deleteWorks(w.wid)"
  6490. alt
  6491. />
  6492. </div>
  6493. <div class="workImg" v-if="w.type == 1">
  6494. <img
  6495. :src="word"
  6496. @click="openFile(w.works)"
  6497. alt
  6498. />
  6499. <!-- @click="openFile(w.works)" -->
  6500. <div
  6501. class="answerScore"
  6502. v-if="w.score"
  6503. @click.stop="openScore(w)"
  6504. :class="{
  6505. rightW:
  6506. w.userid == userid ||
  6507. tType == 1 ||
  6508. tType == 4 ||
  6509. w.ateacher == userid,
  6510. }"
  6511. >
  6512. {{ JSON.parse(w.score).wScore }}分
  6513. </div>
  6514. <div
  6515. class="answerScore"
  6516. @click.stop="openScore(w)"
  6517. v-else-if="courseDetail.userid == userid"
  6518. :class="{
  6519. rightW:
  6520. w.userid == userid ||
  6521. tType == 1 ||
  6522. tType == 4 ||
  6523. w.ateacher == userid,
  6524. }"
  6525. >
  6526. 评分
  6527. </div>
  6528. <img
  6529. class="deleteImg"
  6530. src="../../assets/deleteworks.png"
  6531. v-if="
  6532. w.userid == userid ||
  6533. tType == 1 ||
  6534. tType == 4
  6535. "
  6536. @click.stop="deleteWorks(w.wid)"
  6537. alt
  6538. />
  6539. </div>
  6540. <div class="workImg" v-if="w.type == 3">
  6541. <img
  6542. style="cursor: pointer"
  6543. :src="video"
  6544. @click="openVideo(w)"
  6545. alt
  6546. />
  6547. <!-- @click="openVideo(w.works)" -->
  6548. <div
  6549. class="answerScore"
  6550. v-if="w.score"
  6551. @click.stop="openScore(w)"
  6552. :class="{
  6553. rightW:
  6554. w.userid == userid ||
  6555. tType == 1 ||
  6556. tType == 4 ||
  6557. w.ateacher == userid,
  6558. }"
  6559. >
  6560. {{ JSON.parse(w.score).wScore }}分
  6561. </div>
  6562. <div
  6563. class="answerScore"
  6564. @click.stop="openScore(w)"
  6565. v-else-if="courseDetail.userid == userid"
  6566. :class="{
  6567. rightW:
  6568. w.userid == userid ||
  6569. tType == 1 ||
  6570. tType == 4 ||
  6571. w.ateacher == userid,
  6572. }"
  6573. >
  6574. 评分
  6575. </div>
  6576. <img
  6577. class="deleteImg"
  6578. src="../../assets/deleteworks.png"
  6579. v-if="
  6580. w.userid == userid ||
  6581. tType == 1 ||
  6582. tType == 4
  6583. "
  6584. @click.stop="deleteWorks(w.wid)"
  6585. alt
  6586. />
  6587. </div>
  6588. <div class="workImg" v-if="w.type == 12">
  6589. <img
  6590. style="cursor: pointer"
  6591. :src="word2"
  6592. @click="downloadFile(w.works)"
  6593. alt
  6594. />
  6595. <!-- @click="openVideo(w.works)" -->
  6596. <div
  6597. class="answerScore"
  6598. v-if="w.score"
  6599. @click.stop="openScore(w)"
  6600. :class="{
  6601. rightW:
  6602. w.userid == userid ||
  6603. tType == 1 ||
  6604. tType == 4 ||
  6605. w.ateacher == userid,
  6606. }"
  6607. >
  6608. {{ JSON.parse(w.score).wScore }}分
  6609. </div>
  6610. <div
  6611. class="answerScore"
  6612. @click.stop="openScore(w)"
  6613. v-else-if="courseDetail.userid == userid"
  6614. :class="{
  6615. rightW:
  6616. w.userid == userid ||
  6617. tType == 1 ||
  6618. tType == 4 ||
  6619. w.ateacher == userid,
  6620. }"
  6621. >
  6622. 评分
  6623. </div>
  6624. <img
  6625. class="deleteImg"
  6626. src="../../assets/deleteworks.png"
  6627. v-if="
  6628. w.userid == userid ||
  6629. tType == 1 ||
  6630. tType == 4
  6631. "
  6632. @click.stop="deleteWorks(w.wid)"
  6633. alt
  6634. />
  6635. </div>
  6636. <div class="comment" style="min-width: 200px">
  6637. <div class="worksName">
  6638. <div>{{ w.sName }}</div>
  6639. </div>
  6640. <div class="commentList">
  6641. <div class="commentList">
  6642. <div
  6643. class="commentImg"
  6644. @click="
  6645. isLikes(
  6646. w.wid,
  6647. userid,
  6648. 1,
  6649. null,
  6650. w.isLikes
  6651. )
  6652. "
  6653. >
  6654. <img
  6655. :src="
  6656. w.isLikes == true ? likes : noLikes
  6657. "
  6658. alt=""
  6659. />
  6660. </div>
  6661. <div>{{ w.likesCount }}</div>
  6662. </div>
  6663. <div
  6664. class="commentList"
  6665. style="margin-right: 15px"
  6666. >
  6667. <div
  6668. class="commentImg"
  6669. @click="
  6670. commentOther(
  6671. w,
  6672. toolIndex,
  6673. wIndex,
  6674. gindex
  6675. )
  6676. "
  6677. >
  6678. <img
  6679. src="../../assets/icon/comment/comment.png"
  6680. alt=""
  6681. />
  6682. </div>
  6683. <div>{{ w.commentCount }}</div>
  6684. </div>
  6685. </div>
  6686. </div>
  6687. </div>
  6688. </div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. </div>
  6694. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6695. 上传文件
  6696. <input
  6697. type="file"
  6698. accept="image/png, image/gif, image/jpeg"
  6699. style="display: none"
  6700. @change="beforeUpload1($event, 2, index)"
  6701. />
  6702. </div>-->
  6703. </div>
  6704. </div>
  6705. <!-- <div
  6706. class="vedioBox"
  6707. style="margin-top: 10px"
  6708. v-if="
  6709. courseDetail.userid == userid ||
  6710. (courseDetail.course_teacher &&
  6711. courseDetail.course_teacher.indexOf(userid) != -1)
  6712. "
  6713. :style="{
  6714. borderRadius:
  6715. !(
  6716. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6717. .toolChoose[0].tool &&
  6718. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6719. .toolChoose[0].tool.length > 0
  6720. ) &&
  6721. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6722. .taskDetail == '' &&
  6723. vChapterData[taskCount].length == 0 &&
  6724. fileC[taskCount].length == 0
  6725. ? '0 0 20px 20px'
  6726. : '20px',
  6727. }"
  6728. >
  6729. <div
  6730. class="queTop"
  6731. @click="isClose = !isClose"
  6732. style="
  6733. padding: 15px 0 15px 37px;
  6734. justify-content: space-between;
  6735. "
  6736. >
  6737. <div class="queTopTitle">新增工具</div>
  6738. <div class="queTopRight">
  6739. <div class="queTopClose" v-if="isClose == 0">
  6740. 展开
  6741. <div class="closeImg">
  6742. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6743. </div>
  6744. </div>
  6745. <div class="queTopClose" v-if="isClose == 1">
  6746. 折叠
  6747. <div class="openImg">
  6748. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6749. </div>
  6750. </div>
  6751. <el-button
  6752. style="margin: 0 30px 0 auto"
  6753. type="primary"
  6754. size="small"
  6755. v-if="isClose == 1 && checktoolArray.length > 0"
  6756. @click.stop="addToolChoose"
  6757. >确定</el-button
  6758. >
  6759. </div>
  6760. </div>
  6761. <div
  6762. class="tool_work_box"
  6763. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6764. >
  6765. <div class="tool_box">
  6766. <div class="tool_type_box">
  6767. <div class="chooseWho">
  6768. <div
  6769. :class="toolType == 0 ? 'isChooseActive' : ''"
  6770. @click="(toolType = 0), $forceUpdate()"
  6771. >
  6772. 互动类
  6773. </div>
  6774. <div
  6775. :class="toolType == 1 ? 'isChooseActive' : ''"
  6776. @click="(toolType = 1), $forceUpdate()"
  6777. >
  6778. 思维类
  6779. </div>
  6780. <div
  6781. :class="toolType == 2 ? 'isChooseActive' : ''"
  6782. @click="(toolType = 2), $forceUpdate()"
  6783. >
  6784. 测评类
  6785. </div>
  6786. <div
  6787. :class="toolType == 3 ? 'isChooseActive' : ''"
  6788. @click="(toolType = 3), $forceUpdate()"
  6789. >
  6790. 编程类
  6791. </div>
  6792. <div
  6793. :class="toolType == 5 ? 'isChooseActive' : ''"
  6794. @click="(toolType = 5), $forceUpdate()"
  6795. >
  6796. 学科类
  6797. </div>
  6798. </div>
  6799. </div>
  6800. <div>
  6801. <div class="toolSort" v-if="toolType == 0">
  6802. <div class="tool">
  6803. <div class="whiteBIcon" @click="addTools2(10)">
  6804. <img
  6805. src="../../assets/icon/thirdToolList/time.png"
  6806. alt
  6807. />
  6808. <div style="margin: 5px 0">倒计时</div>
  6809. </div>
  6810. <div class="check" @click="addTools2(10)">
  6811. <img
  6812. src="../../assets/icon/checkNo.png"
  6813. alt
  6814. v-if="checktoolArray.indexOf(10) == -1"
  6815. />
  6816. <div class="checkDiv" v-else>
  6817. <img src="../../assets/icon/checkedIs.png" alt /><span
  6818. >已选择</span
  6819. >
  6820. </div>
  6821. </div>
  6822. </div>
  6823. <div class="tool">
  6824. <div class="whiteBIcon" @click="addTools2(65)">
  6825. <img
  6826. src="../../assets/icon/firstToolList/pickPeople.png"
  6827. alt
  6828. />
  6829. <div style="margin: 5px 0">挑人</div>
  6830. </div>
  6831. <div class="check" @click="addTools2(65)">
  6832. <img
  6833. src="../../assets/icon/checkNo.png"
  6834. alt
  6835. v-if="checktoolArray.indexOf(65) == -1"
  6836. />
  6837. <div class="checkDiv" v-else>
  6838. <img src="../../assets/icon/checkedIs.png" alt /><span
  6839. >已选择</span
  6840. >
  6841. </div>
  6842. </div>
  6843. </div>
  6844. </div>
  6845. <div class="toolSort" v-if="toolType == 1">
  6846. <div class="tool">
  6847. <div class="whiteBIcon" @click="addTools2(7)">
  6848. <img
  6849. src="../../assets/icon/secondToolList/mindNetwork.png"
  6850. alt
  6851. />
  6852. <div style="margin: 5px 0">思维网格</div>
  6853. </div>
  6854. <div class="check" @click="addTools2(7)">
  6855. <img
  6856. src="../../assets/icon/checkNo.png"
  6857. alt
  6858. v-if="checktoolArray.indexOf(7) == -1"
  6859. />
  6860. <div class="checkDiv" v-else>
  6861. <img src="../../assets/icon/checkedIs.png" alt /><span
  6862. >已选择</span
  6863. >
  6864. </div>
  6865. </div>
  6866. </div>
  6867. <div class="tool">
  6868. <div class="whiteBIcon" @click="addTools2(1)">
  6869. <img
  6870. src="../../assets/icon/secondToolList/whiteBoard.png"
  6871. alt
  6872. />
  6873. <div style="margin: 5px 0">电子白板</div>
  6874. </div>
  6875. <div class="check" @click="addTools2(1)">
  6876. <img
  6877. src="../../assets/icon/checkNo.png"
  6878. alt
  6879. v-if="checktoolArray.indexOf(1) == -1"
  6880. />
  6881. <div class="checkDiv" v-else>
  6882. <img src="../../assets/icon/checkedIs.png" alt /><span
  6883. >已选择</span
  6884. >
  6885. </div>
  6886. </div>
  6887. </div>
  6888. <div class="tool">
  6889. <div class="whiteBIcon" @click="addTools2(52)">
  6890. <img
  6891. src="../../assets/icon/fourthToolList/text.png"
  6892. alt
  6893. />
  6894. <div style="margin: 5px 0">文档</div>
  6895. </div>
  6896. <div class="check" @click="addTools2(52)">
  6897. <img
  6898. src="../../assets/icon/checkNo.png"
  6899. alt
  6900. v-if="checktoolArray.indexOf(52) == -1"
  6901. />
  6902. <div class="checkDiv" v-else>
  6903. <img src="../../assets/icon/checkedIs.png" alt /><span
  6904. >已选择</span
  6905. >
  6906. </div>
  6907. </div>
  6908. </div>
  6909. <div class="tool">
  6910. <div class="whiteBIcon" @click="addTools2(3)">
  6911. <img
  6912. src="../../assets/icon/secondToolList/mindMapping.png"
  6913. alt
  6914. />
  6915. <div style="margin: 5px 0">思维导图</div>
  6916. </div>
  6917. <div class="check" @click="addTools2(3)">
  6918. <img
  6919. src="../../assets/icon/checkNo.png"
  6920. alt
  6921. v-if="checktoolArray.indexOf(3) == -1"
  6922. />
  6923. <div class="checkDiv" v-else>
  6924. <img src="../../assets/icon/checkedIs.png" alt /><span
  6925. >已选择</span
  6926. >
  6927. </div>
  6928. </div>
  6929. </div>
  6930. <div class="tool">
  6931. <div class="whiteBIcon" @click="addTools2(48)">
  6932. <img
  6933. src="../../assets/icon/fourthToolList/table.png"
  6934. alt
  6935. />
  6936. <div style="margin: 5px 0">表格</div>
  6937. </div>
  6938. <div class="check" @click="addTools2(48)">
  6939. <img
  6940. src="../../assets/icon/checkNo.png"
  6941. alt
  6942. v-if="checktoolArray.indexOf(48) == -1"
  6943. />
  6944. <div class="checkDiv" v-else>
  6945. <img src="../../assets/icon/checkedIs.png" alt /><span
  6946. >已选择</span
  6947. >
  6948. </div>
  6949. </div>
  6950. </div>
  6951. </div>
  6952. <div class="toolSort" v-if="toolType == 6">
  6953. <div v-show="tooC == 49">
  6954. <img
  6955. @click="addTools(tooC, toolIndex, taskCount)"
  6956. src="../../assets/icon/fourthToolList/group.png"
  6957. alt
  6958. />
  6959. <div style="margin: 5px 0">学生分组</div>
  6960. </div>
  6961. </div>
  6962. <div class="toolSort" v-if="toolType == 2">
  6963. <div class="tool">
  6964. <div class="whiteBIcon" @click="addTools2(16)">
  6965. <img
  6966. src="../../assets/icon/thirdToolList/work.png"
  6967. alt
  6968. />
  6969. <div style="margin: 5px 0">作业提交</div>
  6970. </div>
  6971. <div class="check" @click="addTools2(16)">
  6972. <img
  6973. src="../../assets/icon/checkNo.png"
  6974. alt
  6975. v-if="checktoolArray.indexOf(16) == -1"
  6976. />
  6977. <div class="checkDiv" v-else>
  6978. <img src="../../assets/icon/checkedIs.png" alt /><span
  6979. >已选择</span
  6980. >
  6981. </div>
  6982. </div>
  6983. </div>
  6984. <div class="tool">
  6985. <div class="whiteBIcon" @click="addTools2(50)">
  6986. <img
  6987. src="../../assets/icon/thirdToolList/plwork.png"
  6988. alt
  6989. />
  6990. <div style="margin: 5px 0">批量上传</div>
  6991. </div>
  6992. <div class="check" @click="addTools2(50)">
  6993. <img
  6994. src="../../assets/icon/checkNo.png"
  6995. alt
  6996. v-if="checktoolArray.indexOf(50) == -1"
  6997. />
  6998. <div class="checkDiv" v-else>
  6999. <img src="../../assets/icon/checkedIs.png" alt /><span
  7000. >已选择</span
  7001. >
  7002. </div>
  7003. </div>
  7004. </div>
  7005. </div>
  7006. <div class="toolSort" v-if="toolType == 3">
  7007. <div class="tool">
  7008. <div class="whiteBIcon" @click="addTools2(18)">
  7009. <img
  7010. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7011. alt
  7012. />
  7013. <div style="margin: 5px 0">训练平台</div>
  7014. </div>
  7015. <div class="check" @click="addTools2(18)">
  7016. <img
  7017. src="../../assets/icon/checkNo.png"
  7018. alt
  7019. v-if="checktoolArray.indexOf(18) == -1"
  7020. />
  7021. <div class="checkDiv" v-else>
  7022. <img src="../../assets/icon/checkedIs.png" alt /><span
  7023. >已选择</span
  7024. >
  7025. </div>
  7026. </div>
  7027. </div>
  7028. <div class="tool">
  7029. <div class="whiteBIcon" @click="addTools2(21)">
  7030. <img
  7031. src="../../assets/icon/fourthToolList/program.png"
  7032. alt
  7033. />
  7034. <div style="margin: 5px 0">AIoT Blockly</div>
  7035. </div>
  7036. <div class="check" @click="addTools2(21)">
  7037. <img
  7038. src="../../assets/icon/checkNo.png"
  7039. alt
  7040. v-if="checktoolArray.indexOf(21) == -1"
  7041. />
  7042. <div class="checkDiv" v-else>
  7043. <img src="../../assets/icon/checkedIs.png" alt /><span
  7044. >已选择</span
  7045. >
  7046. </div>
  7047. </div>
  7048. </div>
  7049. <div class="tool">
  7050. <div class="whiteBIcon" @click="addTools2(23)">
  7051. <img
  7052. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7053. alt
  7054. />
  7055. <div style="margin: 5px 0">AI Python</div>
  7056. </div>
  7057. <div class="check" @click="addTools2(23)">
  7058. <img
  7059. src="../../assets/icon/checkNo.png"
  7060. alt
  7061. v-if="checktoolArray.indexOf(23) == -1"
  7062. />
  7063. <div class="checkDiv" v-else>
  7064. <img src="../../assets/icon/checkedIs.png" alt /><span
  7065. >已选择</span
  7066. >
  7067. </div>
  7068. </div>
  7069. </div>
  7070. <div class="tool">
  7071. <div class="whiteBIcon" @click="addTools2(24)">
  7072. <img
  7073. src="../../assets/icon/fourthToolList/AIprogram.png"
  7074. alt
  7075. />
  7076. <div style="margin: 5px 0">AI Blockly</div>
  7077. </div>
  7078. <div class="check" @click="addTools2(24)">
  7079. <img
  7080. src="../../assets/icon/checkNo.png"
  7081. alt
  7082. v-if="checktoolArray.indexOf(24) == -1"
  7083. />
  7084. <div class="checkDiv" v-else>
  7085. <img src="../../assets/icon/checkedIs.png" alt /><span
  7086. >已选择</span
  7087. >
  7088. </div>
  7089. </div>
  7090. </div>
  7091. <div class="tool">
  7092. <div class="whiteBIcon" @click="addTools2(32)">
  7093. <img
  7094. src="../../assets/icon/thirdToolList/code.png"
  7095. alt
  7096. />
  7097. <div style="margin: 5px 0">源码编辑</div>
  7098. </div>
  7099. <div class="check" @click="addTools2(32)">
  7100. <img
  7101. src="../../assets/icon/checkNo.png"
  7102. alt
  7103. v-if="checktoolArray.indexOf(32) == -1"
  7104. />
  7105. <div class="checkDiv" v-else>
  7106. <img src="../../assets/icon/checkedIs.png" alt /><span
  7107. >已选择</span
  7108. >
  7109. </div>
  7110. </div>
  7111. </div>
  7112. <div class="tool">
  7113. <div class="whiteBIcon" @click="addTools2(57)">
  7114. <img
  7115. src="../../assets/icon/fourthToolList/cocopi.png"
  7116. alt
  7117. />
  7118. <div style="margin: 5px 0">CocoPi</div>
  7119. </div>
  7120. <div class="check" @click="addTools2(57)">
  7121. <img
  7122. src="../../assets/icon/checkNo.png"
  7123. alt
  7124. v-if="checktoolArray.indexOf(57) == -1"
  7125. />
  7126. <div class="checkDiv" v-else>
  7127. <img src="../../assets/icon/checkedIs.png" alt /><span
  7128. >已选择</span
  7129. >
  7130. </div>
  7131. </div>
  7132. </div>
  7133. <div class="tool">
  7134. <div class="whiteBIcon" @click="addTools2(63)">
  7135. <img
  7136. src="../../assets/icon/fourthToolList/Wood.png"
  7137. alt
  7138. />
  7139. <div style="margin: 5px 0">海龟编程</div>
  7140. </div>
  7141. <div class="check" @click="addTools2(63)">
  7142. <img
  7143. src="../../assets/icon/checkNo.png"
  7144. alt
  7145. v-if="checktoolArray.indexOf(63) == -1"
  7146. />
  7147. <div class="checkDiv" v-else>
  7148. <img src="../../assets/icon/checkedIs.png" alt /><span
  7149. >已选择</span
  7150. >
  7151. </div>
  7152. </div>
  7153. </div>
  7154. </div>
  7155. <div class="toolSort" v-if="toolType == 5">
  7156. <div class="tool">
  7157. <div class="whiteBIcon" @click="addTools2(28)">
  7158. <img
  7159. src="../../assets/icon/secondToolList/translation.png"
  7160. alt
  7161. />
  7162. <div style="margin: 5px 0">翻译</div>
  7163. </div>
  7164. <div class="check" @click="addTools2(28)">
  7165. <img
  7166. src="../../assets/icon/checkNo.png"
  7167. alt
  7168. v-if="checktoolArray.indexOf(28) == -1"
  7169. />
  7170. <div class="checkDiv" v-else>
  7171. <img src="../../assets/icon/checkedIs.png" alt /><span
  7172. >已选择</span
  7173. >
  7174. </div>
  7175. </div>
  7176. </div>
  7177. <div class="tool">
  7178. <div class="whiteBIcon" @click="addTools2(31)">
  7179. <img
  7180. src="../../assets/icon/secondToolList/networkPanel.png"
  7181. alt
  7182. />
  7183. <div style="margin: 5px 0">数字画板</div>
  7184. </div>
  7185. <div class="check" @click="addTools2(31)">
  7186. <img
  7187. src="../../assets/icon/checkNo.png"
  7188. alt
  7189. v-if="checktoolArray.indexOf(31) == -1"
  7190. />
  7191. <div class="checkDiv" v-else>
  7192. <img src="../../assets/icon/checkedIs.png" alt /><span
  7193. >已选择</span
  7194. >
  7195. </div>
  7196. </div>
  7197. </div>
  7198. <div class="tool">
  7199. <div class="whiteBIcon" @click="addTools2(39)">
  7200. <img
  7201. src="../../assets/icon/secondToolList/GeoGebra.png"
  7202. alt
  7203. />
  7204. <div style="margin: 5px 0">GeoGebra</div>
  7205. </div>
  7206. <div class="check" @click="addTools2(39)">
  7207. <img
  7208. src="../../assets/icon/checkNo.png"
  7209. alt
  7210. v-if="checktoolArray.indexOf(39) == -1"
  7211. />
  7212. <div class="checkDiv" v-else>
  7213. <img src="../../assets/icon/checkedIs.png" alt /><span
  7214. >已选择</span
  7215. >
  7216. </div>
  7217. </div>
  7218. </div>
  7219. <div class="tool">
  7220. <div class="whiteBIcon" @click="addTools2(66)">
  7221. <img
  7222. src="../../assets/icon/secondToolList/formulaEdi.png"
  7223. alt
  7224. />
  7225. <div style="margin: 5px 0">公式编辑</div>
  7226. </div>
  7227. <div class="check" @click="addTools2(66)">
  7228. <img
  7229. src="../../assets/icon/checkNo.png"
  7230. alt
  7231. v-if="checktoolArray.indexOf(66) == -1"
  7232. />
  7233. <div class="checkDiv" v-else>
  7234. <img src="../../assets/icon/checkedIs.png" alt /><span
  7235. >已选择</span
  7236. >
  7237. </div>
  7238. </div>
  7239. </div>
  7240. <div class="tool">
  7241. <div class="whiteBIcon" @click="addTools2(67)">
  7242. <img
  7243. src="../../assets/icon/secondToolList/molStr.png"
  7244. alt
  7245. />
  7246. <div style="margin: 5px 0">分子结构</div>
  7247. </div>
  7248. <div class="check" @click="addTools2(67)">
  7249. <img
  7250. src="../../assets/icon/checkNo.png"
  7251. alt
  7252. v-if="checktoolArray.indexOf(67) == -1"
  7253. />
  7254. <div class="checkDiv" v-else>
  7255. <img src="../../assets/icon/checkedIs.png" alt /><span
  7256. >已选择</span
  7257. >
  7258. </div>
  7259. </div>
  7260. </div>
  7261. <div class="tool">
  7262. <div class="whiteBIcon" @click="addTools2(68)">
  7263. <img
  7264. src="../../assets/icon/secondToolList/timeAxis.png"
  7265. alt
  7266. />
  7267. <div style="margin: 5px 0">时间轴</div>
  7268. </div>
  7269. <div class="check" @click="addTools2(68)">
  7270. <img
  7271. src="../../assets/icon/checkNo.png"
  7272. alt
  7273. v-if="checktoolArray.indexOf(68) == -1"
  7274. />
  7275. <div class="checkDiv" v-else>
  7276. <img src="../../assets/icon/checkedIs.png" alt /><span
  7277. >已选择</span
  7278. >
  7279. </div>
  7280. </div>
  7281. </div>
  7282. </div>
  7283. <div class="toolSort" v-if="toolType == 7">
  7284. <div class="tool">
  7285. <div class="whiteBIcon" @click="addTools2(40)">
  7286. <img
  7287. src="../../assets/icon/secondToolList/eval.png"
  7288. alt
  7289. />
  7290. <div style="margin: 5px 0">个人评价</div>
  7291. </div>
  7292. <div class="check" @click="addTools2(40)">
  7293. <img
  7294. src="../../assets/icon/checkNo.png"
  7295. alt
  7296. v-if="checktoolArray.indexOf(40) == -1"
  7297. />
  7298. <div class="checkDiv" v-else>
  7299. <img src="../../assets/icon/checkedIs.png" alt /><span
  7300. >已选择</span
  7301. >
  7302. </div>
  7303. </div>
  7304. </div>
  7305. </div>
  7306. <div class="toolSort" v-if="toolType == 4">
  7307. <div class="tool">
  7308. <div class="whiteBIcon" @click="addTools2(26)">
  7309. <img
  7310. src="../../assets/icon/thirdToolList/courseDesign.png"
  7311. alt
  7312. />
  7313. <div style="margin: 5px 0">课程设计</div>
  7314. </div>
  7315. <div class="check" @click="addTools2(26)">
  7316. <img
  7317. src="../../assets/icon/checkNo.png"
  7318. alt
  7319. v-if="checktoolArray.indexOf(26) == -1"
  7320. />
  7321. <div class="checkDiv" v-else>
  7322. <img src="../../assets/icon/checkedIs.png" alt /><span
  7323. >已选择</span
  7324. >
  7325. </div>
  7326. </div>
  7327. </div>
  7328. <div class="tool">
  7329. <div class="whiteBIcon" @click="addTools2(25)">
  7330. <img
  7331. src="../../assets/icon/thirdToolList/evalua.png"
  7332. alt
  7333. />
  7334. <div style="margin: 5px 0">目标管理</div>
  7335. </div>
  7336. <div class="check" @click="addTools2(25)">
  7337. <img
  7338. src="../../assets/icon/checkNo.png"
  7339. alt
  7340. v-if="checktoolArray.indexOf(25) == -1"
  7341. />
  7342. <div class="checkDiv" v-else>
  7343. <img src="../../assets/icon/checkedIs.png" alt /><span
  7344. >已选择</span
  7345. >
  7346. </div>
  7347. </div>
  7348. </div>
  7349. </div>
  7350. </div>
  7351. </div>
  7352. </div>
  7353. </div> -->
  7354. <div
  7355. class="vedioBox"
  7356. style="margin-top: 10px; border-radius: 20px"
  7357. v-if="
  7358. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7359. .eList &&
  7360. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7361. .eList.length &&
  7362. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7363. .eList.length > 0 &&
  7364. tType != 2
  7365. "
  7366. >
  7367. <div
  7368. class="queTop"
  7369. style="
  7370. font-size: 20px;
  7371. padding: 15px 0 15px 37px;
  7372. font-weight: bold;
  7373. "
  7374. >
  7375. <!-- <div class="question" style="width: 30px">
  7376. <img src="../../assets/icon/toolIcon.png" alt />
  7377. </div>
  7378. <div class="queTitle">
  7379. <div>工具</div>
  7380. </div>-->
  7381. 评一评
  7382. </div>
  7383. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7384. <div class="elist_input">
  7385. <el-table
  7386. :data="
  7387. chapInfoList[courseType].chapterInfo[0].taskJson[
  7388. taskCount
  7389. ].eList
  7390. "
  7391. :header-cell-style="{ background: '#F0F4FA' }"
  7392. :row-class-name="tableRowClassName"
  7393. border
  7394. stripe
  7395. style="width: 100%"
  7396. >
  7397. <el-table-column
  7398. label="评价名称"
  7399. width="180"
  7400. align="center"
  7401. >
  7402. <template slot-scope="scope"
  7403. ><div>{{ scope.row.value }}</div></template
  7404. >
  7405. </el-table-column>
  7406. <el-table-column
  7407. label="评价描述"
  7408. width="180"
  7409. align="center"
  7410. >
  7411. <template slot-scope="scope"
  7412. ><div>
  7413. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7414. </div></template
  7415. >
  7416. </el-table-column>
  7417. <el-table-column label="目标" align="center">
  7418. <template slot-scope="scope"
  7419. ><div>
  7420. {{
  7421. scope.row.target
  7422. ? scope.row.target[scope.row.target.length - 1]
  7423. : "-"
  7424. }}
  7425. </div></template
  7426. ></el-table-column
  7427. >
  7428. </el-table>
  7429. <!-- <div
  7430. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7431. .chapterInfo[0].taskJson[taskCount].eList"
  7432. :key="eIndex"
  7433. class="elist_input_box"
  7434. >
  7435. <div style="width: 95%">
  7436. <div
  7437. style="
  7438. display: flex;
  7439. flex-direction: row;
  7440. flex-wrap: nowrap;
  7441. align-items: center;
  7442. "
  7443. >
  7444. <div style="max-width: calc(100% - 285px)">
  7445. <span>{{ eItem.value }}</span>
  7446. </div>
  7447. <div
  7448. style="
  7449. padding-left: 25px;
  7450. display: flex;
  7451. flex-direction: row;
  7452. align-items: center;
  7453. "
  7454. >
  7455. <el-rate
  7456. v-model="eItem.score"
  7457. :colors="colors"
  7458. disabled
  7459. ></el-rate>
  7460. </div>
  7461. </div>
  7462. <div class="elist_inptu_text" style="padding-left: 10px">
  7463. <span v-if="eItem.detail != ''">{{
  7464. eItem.detail
  7465. }}</span>
  7466. <span v-else style="color: #b2b1b3; font-size: 14px"
  7467. >暂无描述...</span
  7468. >
  7469. </div>
  7470. </div>
  7471. </div> -->
  7472. </div>
  7473. <div
  7474. v-if="evalua"
  7475. style="
  7476. border: 1px solid #e5e5e5;
  7477. max-width: 650px;
  7478. width: 100%;
  7479. margin-top: 20px;
  7480. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7481. "
  7482. >
  7483. <div class="e_add_top">
  7484. <div class="e_add_title">
  7485. <span>目标管理名称</span>
  7486. <span>{{ eTitle }}</span>
  7487. <img
  7488. src="../../assets/line.png"
  7489. class="cru_line"
  7490. style="
  7491. width: 125px;
  7492. height: 20px;
  7493. bottom: -10px;
  7494. left: 120px;
  7495. "
  7496. />
  7497. <!-- <el-input
  7498. v-model="eTitle"
  7499. placeholder="请输入名称"
  7500. @change="setMindData"
  7501. ></el-input>-->
  7502. </div>
  7503. </div>
  7504. <div class="e_add_content">
  7505. <div class="e_add_list_pbox">
  7506. <div class="e_add_list_pbox_title">
  7507. <span class="type_title">切换模式</span>
  7508. <div class="type_content">
  7509. <span
  7510. :class="{ active: typeMode == 1 }"
  7511. @click="typeMode = 1"
  7512. >目标树</span
  7513. >
  7514. <span
  7515. :class="{ active: typeMode == 2 }"
  7516. @click="typeMode = 2"
  7517. >目标罗盘</span
  7518. >
  7519. <span
  7520. :class="{ active: typeMode == 3 }"
  7521. @click="typeMode = 3"
  7522. >目标看板</span
  7523. >
  7524. </div>
  7525. </div>
  7526. <div class="e_add_list_pbox_content">
  7527. <Mind
  7528. :showBar="false"
  7529. :mindData="data"
  7530. style="width: 100%"
  7531. v-show="typeMode == 1"
  7532. ></Mind>
  7533. <Sunburst
  7534. :Josn="eJson"
  7535. :num="eJSONNum"
  7536. style="width: 100%"
  7537. v-if="typeMode == 2"
  7538. ></Sunburst>
  7539. <SeeBoard
  7540. :Josn="eJson"
  7541. :num="eJSONNum"
  7542. :ename="eTitle"
  7543. style="width: 100%"
  7544. v-if="typeMode == 3"
  7545. >
  7546. </SeeBoard>
  7547. </div>
  7548. </div>
  7549. </div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. <!-- <div
  7554. class="project_box"
  7555. style="margin-top: 15px; padding-bottom: 30px"
  7556. >
  7557. <div
  7558. style="
  7559. display: flex;
  7560. flex-wrap: nowrap;
  7561. flex-direction: column;
  7562. position: relative;
  7563. "
  7564. >
  7565. <div class="queTop">
  7566. <div class="question">
  7567. <img src="../../assets/icon/homeWork.png" alt="" />
  7568. </div>
  7569. <div class="queTitle">
  7570. <div>作业提交<span>(提交图文视频等)</span></div>
  7571. <div>:任务:{{ task.task }}</div>
  7572. </div>
  7573. </div>
  7574. <div class="ediBottom">
  7575. <div
  7576. class="addEditor"
  7577. style="margin-top: 23px"
  7578. @click="openAddWork"
  7579. v-if="!isNoHomeWork"
  7580. >
  7581. 选择文件
  7582. </div>
  7583. <div
  7584. class="addEditor"
  7585. style="margin-top: 23px"
  7586. @click="openAddWork"
  7587. v-else
  7588. >
  7589. 已提交
  7590. </div>
  7591. </div>
  7592. </div>
  7593. </div>-->
  7594. </div>
  7595. </div>
  7596. <el-dialog
  7597. title="作业提交"
  7598. :visible.sync="dialogVisible"
  7599. :append-to-body="true"
  7600. width="500px"
  7601. :before-close="handleClose"
  7602. class="dialog_change"
  7603. >
  7604. <div class="marginT">
  7605. <div>上传文件</div>
  7606. <div
  7607. class="chapter_add"
  7608. @click="addImg($event)"
  7609. v-if="studyJuri[0].cover.length == 0"
  7610. >
  7611. <div class="up_photo">
  7612. <img src="../../assets/icon/uploadImg.png" alt />
  7613. </div>
  7614. <!-- <input
  7615. type="file"
  7616. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7617. style="display: none"
  7618. @change="beforeUpload1($event, 1)"
  7619. /> -->
  7620. <input
  7621. type="file"
  7622. accept="*"
  7623. style="display: none"
  7624. @change="beforeUpload1($event, 1)"
  7625. />
  7626. <!-- <input
  7627. type="file"
  7628. accept="image/*"
  7629. capture="camera"
  7630. style="display: none"
  7631. @change="beforeUpload1($event, 1)"
  7632. /> -->
  7633. </div>
  7634. <div
  7635. class="chapter_add"
  7636. style="
  7637. display: flex;
  7638. width: 100%;
  7639. flex-direction: row;
  7640. flex-wrap: wrap;
  7641. justify-content: flex-start;
  7642. padding: 15px 0;
  7643. "
  7644. v-if="studyJuri[0].cover.length > 0"
  7645. >
  7646. <div class="upCover">
  7647. <img
  7648. :src="studyJuri[0].cover[0].url"
  7649. alt
  7650. v-if="fileType == 0"
  7651. />
  7652. <img :src="word" alt v-else-if="fileType == 1" />
  7653. <img :src="video" alt v-else-if="fileType == 2" />
  7654. <img :src="word2" alt v-else-if="fileType == 3" />
  7655. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7656. <div class="deleteWord" @click="clean(1)">
  7657. <img src="../../assets/icon/deleteWorks.png" alt />
  7658. </div>
  7659. </div>
  7660. </div>
  7661. </div>
  7662. <div
  7663. class="upload_send"
  7664. @click="addCourseWorks(taskCount)"
  7665. v-if="!proVisible"
  7666. >
  7667. 提交
  7668. </div>
  7669. </el-dialog>
  7670. </div>
  7671. </div>
  7672. <div
  7673. class="pButton"
  7674. @click="(pzDialog = true), selectPz()"
  7675. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7676. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7677. >
  7678. <!-- 批 -->
  7679. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7680. </div>
  7681. <div v-if="pzDialog == true" class="newDialogCss">
  7682. <div class="pzTop2">
  7683. <!-- <div>批注</div>
  7684. <div @click="pzDialog = false">
  7685. <img src="../../assets/close1.png" alt="" />
  7686. </div> -->
  7687. <div class="checkbox">
  7688. <div class="check" style="font-size: 25px; position: unset">
  7689. 评课笔记
  7690. </div>
  7691. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7692. <el-option label="时间降序" :value="1"></el-option>
  7693. <el-option label="时间升序" :value="2"></el-option>
  7694. <el-option label="我的评课" :value="3"></el-option>
  7695. </el-select>
  7696. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7697. </div>
  7698. </div>
  7699. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7700. <div class="pzListBox" v-if="pzList && pzList.length">
  7701. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7702. <div class="pzNavTop">
  7703. <div>批</div>
  7704. <div>
  7705. {{
  7706. pz.username && pz.username.length > 5
  7707. ? pz.username.substring(0, 5) + "..."
  7708. : pz.username
  7709. }}的批注
  7710. </div>
  7711. <div
  7712. class="pzDelete"
  7713. v-if="pz.userid == userid"
  7714. @click="deletePz(pz.id)"
  7715. >
  7716. 删除
  7717. </div>
  7718. </div>
  7719. <div
  7720. @click="checkImg(getImgList(pz.content))"
  7721. class="pzContent cont"
  7722. v-html="pz.content"
  7723. v-if="pz.type == '1'"
  7724. ></div>
  7725. <div class="pzContent" v-if="pz.type == '2'">
  7726. <audio :src="pz.content" controls="controls" ref="audio">
  7727. Your browser does not support the audio element.
  7728. </audio>
  7729. </div>
  7730. <div class="pzContent" v-if="pz.type == '3'">
  7731. <img
  7732. :src="pz.content"
  7733. style="width: 90%; margin: 0 auto; display: block"
  7734. @click="previewImg(pz.content)"
  7735. />
  7736. </div>
  7737. <div class="timeAndReply">
  7738. <div class="time">
  7739. {{ pz.time }}
  7740. </div>
  7741. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7742. </div>
  7743. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7744. <div
  7745. v-for="(h, hIndex) in pz.hfList"
  7746. :key="hIndex"
  7747. class="hfItem"
  7748. >
  7749. <div class="whoReplyWho">
  7750. <div class="hfName">{{ h.username }}</div>
  7751. <div class="hfImg">
  7752. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7753. </div>
  7754. <div class="hfName">{{ pz.username }}</div>
  7755. </div>
  7756. <div class="hfContent" v-html="h.content"></div>
  7757. <div class="hfBottom">
  7758. <div class="hfTime">{{ h.time }}</div>
  7759. <div
  7760. class="deleteHfItem"
  7761. @click="deleteReply(h.id)"
  7762. v-if="userid == h.userid"
  7763. >
  7764. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7765. </div>
  7766. </div>
  7767. </div>
  7768. </div>
  7769. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7770. <div class="replyInput">
  7771. <el-input v-model="reply[pzIndex]"></el-input>
  7772. </div>
  7773. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7774. </div> -->
  7775. </div>
  7776. </div>
  7777. <div class="noPz" v-else>
  7778. <img src="../../assets/icon/noPz.png" alt="" />
  7779. </div>
  7780. <div class="addPzButton">
  7781. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7782. 添加批注
  7783. </div>
  7784. <!-- <div class="img1">
  7785. <div @click="(addPzDialog = true), (pzType = 2)">
  7786. <img src="../../assets/audio.png" /><span>音频</span>
  7787. </div>
  7788. </div> -->
  7789. </div>
  7790. </div>
  7791. </div>
  7792. <div
  7793. v-if="toolDialogVisible == true"
  7794. class="toolMask"
  7795. @click="toolDialogVisible = false"
  7796. ></div>
  7797. <div v-if="toolDialogVisible == true" class="addToolCss">
  7798. <div class="toolTop">
  7799. <div style="font-weight: bold">新增工具</div>
  7800. <div @click="toolDialogVisible = false">
  7801. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7802. </div>
  7803. </div>
  7804. <div class="tool_box">
  7805. <div class="tool_type_box">
  7806. <div class="chooseWho">
  7807. <div
  7808. :class="toolType == 0 ? 'isChooseActive' : ''"
  7809. @click="(toolType = 0), $forceUpdate()"
  7810. >
  7811. 互动类
  7812. </div>
  7813. <div
  7814. :class="toolType == 1 ? 'isChooseActive' : ''"
  7815. @click="(toolType = 1), $forceUpdate()"
  7816. >
  7817. 思维类
  7818. </div>
  7819. <div
  7820. :class="toolType == 2 ? 'isChooseActive' : ''"
  7821. @click="(toolType = 2), $forceUpdate()"
  7822. >
  7823. 测评类
  7824. </div>
  7825. <div
  7826. :class="toolType == 3 ? 'isChooseActive' : ''"
  7827. @click="(toolType = 3), $forceUpdate()"
  7828. >
  7829. 编程类
  7830. </div>
  7831. <div
  7832. :class="toolType == 5 ? 'isChooseActive' : ''"
  7833. @click="(toolType = 5), $forceUpdate()"
  7834. >
  7835. 学科类
  7836. </div>
  7837. </div>
  7838. </div>
  7839. <div>
  7840. <div class="toolSort" v-if="toolType == 0">
  7841. <div
  7842. class="tool"
  7843. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7844. @click="addTools2(10)"
  7845. >
  7846. <div class="whiteBIcon">
  7847. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7848. <div style="margin: 5px 0">倒计时</div>
  7849. </div>
  7850. <div class="check">
  7851. <div
  7852. v-if="checktoolArray.indexOf(10) == -1"
  7853. class="noChoose"
  7854. ></div>
  7855. <div v-else class="isChoose"></div>
  7856. </div>
  7857. </div>
  7858. <div
  7859. class="tool"
  7860. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7861. @click="addTools2(65)"
  7862. >
  7863. <div class="whiteBIcon">
  7864. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7865. <div style="margin: 5px 0">挑人</div>
  7866. </div>
  7867. <div class="check">
  7868. <div
  7869. v-if="checktoolArray.indexOf(65) == -1"
  7870. class="noChoose"
  7871. ></div>
  7872. <div v-else class="isChoose"></div>
  7873. </div>
  7874. </div>
  7875. </div>
  7876. <div class="toolSort" v-if="toolType == 1">
  7877. <div
  7878. class="tool"
  7879. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7880. @click="addTools2(7)"
  7881. >
  7882. <div class="whiteBIcon">
  7883. <img
  7884. src="../../assets/icon/secondToolList/mindNetwork.png"
  7885. alt
  7886. />
  7887. <div style="margin: 5px 0">思维网格</div>
  7888. </div>
  7889. <div class="check">
  7890. <div
  7891. v-if="checktoolArray.indexOf(7) == -1"
  7892. class="noChoose"
  7893. ></div>
  7894. <div v-else class="isChoose"></div>
  7895. </div>
  7896. </div>
  7897. <div
  7898. class="tool"
  7899. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7900. @click="addTools2(1)"
  7901. >
  7902. <div class="whiteBIcon">
  7903. <img
  7904. src="../../assets/icon/secondToolList/whiteBoard.png"
  7905. alt
  7906. />
  7907. <div style="margin: 5px 0">电子白板</div>
  7908. </div>
  7909. <div class="check">
  7910. <div
  7911. v-if="checktoolArray.indexOf(1) == -1"
  7912. class="noChoose"
  7913. ></div>
  7914. <div v-else class="isChoose"></div>
  7915. </div>
  7916. </div>
  7917. <div
  7918. class="tool"
  7919. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7920. @click="addTools2(52)"
  7921. >
  7922. <div class="whiteBIcon">
  7923. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7924. <div style="margin: 5px 0">文档</div>
  7925. </div>
  7926. <div class="check">
  7927. <div
  7928. v-if="checktoolArray.indexOf(52) == -1"
  7929. class="noChoose"
  7930. ></div>
  7931. <div v-else class="isChoose"></div>
  7932. </div>
  7933. </div>
  7934. <div
  7935. class="tool"
  7936. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7937. @click="addTools2(3)"
  7938. >
  7939. <div class="whiteBIcon">
  7940. <img
  7941. src="../../assets/icon/secondToolList/mindMapping.png"
  7942. alt
  7943. />
  7944. <div style="margin: 5px 0">思维导图</div>
  7945. </div>
  7946. <div class="check">
  7947. <div
  7948. v-if="checktoolArray.indexOf(3) == -1"
  7949. class="noChoose"
  7950. ></div>
  7951. <div v-else class="isChoose"></div>
  7952. </div>
  7953. </div>
  7954. <div
  7955. class="tool"
  7956. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7957. @click="addTools2(48)"
  7958. >
  7959. <div class="whiteBIcon">
  7960. <img src="../../assets/icon/fourthToolList/table.png" alt />
  7961. <div style="margin: 5px 0">表格</div>
  7962. </div>
  7963. <div class="check">
  7964. <div
  7965. v-if="checktoolArray.indexOf(48) == -1"
  7966. class="noChoose"
  7967. ></div>
  7968. <div v-else class="isChoose"></div>
  7969. </div>
  7970. </div>
  7971. </div>
  7972. <div class="toolSort" v-if="toolType == 6">
  7973. <div v-show="tooC == 49">
  7974. <img
  7975. @click="addTools(tooC, toolIndex, taskCount)"
  7976. src="../../assets/icon/fourthToolList/group.png"
  7977. alt
  7978. />
  7979. <div style="margin: 5px 0">学生分组</div>
  7980. </div>
  7981. </div>
  7982. <div class="toolSort" v-if="toolType == 2">
  7983. <div
  7984. class="tool"
  7985. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7986. @click="addTools2(16)"
  7987. >
  7988. <div class="whiteBIcon">
  7989. <img src="../../assets/icon/thirdToolList/work.png" alt />
  7990. <div style="margin: 5px 0">作业提交</div>
  7991. </div>
  7992. <div class="check">
  7993. <div
  7994. v-if="checktoolArray.indexOf(16) == -1"
  7995. class="noChoose"
  7996. ></div>
  7997. <div v-else class="isChoose"></div>
  7998. </div>
  7999. </div>
  8000. <div
  8001. class="tool"
  8002. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8003. @click="addTools2(50)"
  8004. >
  8005. <div class="whiteBIcon">
  8006. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8007. <div style="margin: 5px 0">批量上传</div>
  8008. </div>
  8009. <div class="check">
  8010. <div
  8011. v-if="checktoolArray.indexOf(50) == -1"
  8012. class="noChoose"
  8013. ></div>
  8014. <div v-else class="isChoose"></div>
  8015. </div>
  8016. </div>
  8017. </div>
  8018. <div class="toolSort" v-if="toolType == 3">
  8019. <div
  8020. class="tool"
  8021. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8022. @click="addTools2(18)"
  8023. >
  8024. <div class="whiteBIcon">
  8025. <img
  8026. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8027. alt
  8028. />
  8029. <div style="margin: 5px 0">训练平台</div>
  8030. </div>
  8031. <div class="check">
  8032. <div
  8033. v-if="checktoolArray.indexOf(18) == -1"
  8034. class="noChoose"
  8035. ></div>
  8036. <div v-else class="isChoose"></div>
  8037. </div>
  8038. </div>
  8039. <div
  8040. class="tool"
  8041. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8042. @click="addTools2(21)"
  8043. >
  8044. <div class="whiteBIcon">
  8045. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8046. <div style="margin: 5px 0">AIoT Blockly</div>
  8047. </div>
  8048. <div class="check">
  8049. <div
  8050. v-if="checktoolArray.indexOf(21) == -1"
  8051. class="noChoose"
  8052. ></div>
  8053. <div v-else class="isChoose"></div>
  8054. </div>
  8055. </div>
  8056. <div
  8057. class="tool"
  8058. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8059. @click="addTools2(23)"
  8060. >
  8061. <div class="whiteBIcon">
  8062. <img
  8063. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8064. alt
  8065. />
  8066. <div style="margin: 5px 0">AI Python</div>
  8067. </div>
  8068. <div class="check">
  8069. <div
  8070. v-if="checktoolArray.indexOf(23) == -1"
  8071. class="noChoose"
  8072. ></div>
  8073. <div v-else class="isChoose"></div>
  8074. </div>
  8075. </div>
  8076. <div
  8077. class="tool"
  8078. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8079. @click="addTools2(24)"
  8080. >
  8081. <div class="whiteBIcon">
  8082. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8083. <div style="margin: 5px 0">AI Blockly</div>
  8084. </div>
  8085. <div class="check">
  8086. <div
  8087. v-if="checktoolArray.indexOf(24) == -1"
  8088. class="noChoose"
  8089. ></div>
  8090. <div v-else class="isChoose"></div>
  8091. </div>
  8092. </div>
  8093. <div
  8094. class="tool"
  8095. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8096. @click="addTools2(32)"
  8097. >
  8098. <div class="whiteBIcon">
  8099. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8100. <div style="margin: 5px 0">源码编辑</div>
  8101. </div>
  8102. <div class="check">
  8103. <div
  8104. v-if="checktoolArray.indexOf(32) == -1"
  8105. class="noChoose"
  8106. ></div>
  8107. <div v-else class="isChoose"></div>
  8108. </div>
  8109. </div>
  8110. <div
  8111. class="tool"
  8112. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8113. @click="addTools2(57)"
  8114. >
  8115. <div class="whiteBIcon">
  8116. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8117. <div style="margin: 5px 0">CocoPi</div>
  8118. </div>
  8119. <div class="check">
  8120. <div
  8121. v-if="checktoolArray.indexOf(57) == -1"
  8122. class="noChoose"
  8123. ></div>
  8124. <div v-else class="isChoose"></div>
  8125. </div>
  8126. </div>
  8127. <div
  8128. class="tool"
  8129. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8130. @click="addTools2(63)"
  8131. >
  8132. <div class="whiteBIcon">
  8133. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8134. <div style="margin: 5px 0">海龟编程</div>
  8135. </div>
  8136. <div class="check">
  8137. <div
  8138. v-if="checktoolArray.indexOf(63) == -1"
  8139. class="noChoose"
  8140. ></div>
  8141. <div v-else class="isChoose"></div>
  8142. </div>
  8143. </div>
  8144. </div>
  8145. <div class="toolSort" v-if="toolType == 7">
  8146. <div
  8147. class="tool"
  8148. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8149. @click="addTools2(40)"
  8150. >
  8151. <div class="whiteBIcon">
  8152. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8153. <div style="margin: 5px 0">个人评价</div>
  8154. </div>
  8155. <div class="check">
  8156. <div
  8157. v-if="checktoolArray.indexOf(40) == -1"
  8158. class="noChoose"
  8159. ></div>
  8160. <div v-else class="isChoose"></div>
  8161. </div>
  8162. </div>
  8163. </div>
  8164. <div class="toolSort" v-if="toolType == 5">
  8165. <div
  8166. class="tool"
  8167. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8168. @click="addTools2(28)"
  8169. >
  8170. <div class="whiteBIcon">
  8171. <img
  8172. src="../../assets/icon/secondToolList/translation.png"
  8173. alt
  8174. />
  8175. <div style="margin: 5px 0">翻译</div>
  8176. </div>
  8177. <div class="check">
  8178. <div
  8179. v-if="checktoolArray.indexOf(28) == -1"
  8180. class="noChoose"
  8181. ></div>
  8182. <div v-else class="isChoose"></div>
  8183. </div>
  8184. </div>
  8185. <div
  8186. class="tool"
  8187. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8188. @click="addTools2(31)"
  8189. >
  8190. <div class="whiteBIcon">
  8191. <img
  8192. src="../../assets/icon/secondToolList/networkPanel.png"
  8193. alt
  8194. />
  8195. <div style="margin: 5px 0">数字画板</div>
  8196. </div>
  8197. <div class="check">
  8198. <div
  8199. v-if="checktoolArray.indexOf(31) == -1"
  8200. class="noChoose"
  8201. ></div>
  8202. <div v-else class="isChoose"></div>
  8203. </div>
  8204. </div>
  8205. <div
  8206. class="tool"
  8207. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8208. @click="addTools2(39)"
  8209. >
  8210. <div class="whiteBIcon">
  8211. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8212. <div style="margin: 5px 0">GeoGebra</div>
  8213. </div>
  8214. <div class="check">
  8215. <div
  8216. v-if="checktoolArray.indexOf(39) == -1"
  8217. class="noChoose"
  8218. ></div>
  8219. <div v-else class="isChoose"></div>
  8220. </div>
  8221. </div>
  8222. <div
  8223. class="tool"
  8224. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8225. @click="addTools2(66)"
  8226. >
  8227. <div class="whiteBIcon">
  8228. <img
  8229. src="../../assets/icon/secondToolList/formulaEdi.png"
  8230. alt
  8231. />
  8232. <div style="margin: 5px 0">公式编辑</div>
  8233. </div>
  8234. <div class="check">
  8235. <div
  8236. v-if="checktoolArray.indexOf(66) == -1"
  8237. class="noChoose"
  8238. ></div>
  8239. <div v-else class="isChoose"></div>
  8240. </div>
  8241. </div>
  8242. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8243. <div class="whiteBIcon" @click="addTools2(67)">
  8244. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8245. <div style="margin: 5px 0">分子结构</div>
  8246. </div>
  8247. <div class="check" @click="addTools2(67)">
  8248. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8249. <div v-else class="isChoose"></div>
  8250. </div>
  8251. </div> -->
  8252. <div
  8253. class="tool"
  8254. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8255. @click="addTools2(68)"
  8256. >
  8257. <div class="whiteBIcon">
  8258. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8259. <div style="margin: 5px 0">时间轴</div>
  8260. </div>
  8261. <div class="check">
  8262. <div
  8263. v-if="checktoolArray.indexOf(68) == -1"
  8264. class="noChoose"
  8265. ></div>
  8266. <div v-else class="isChoose"></div>
  8267. </div>
  8268. </div>
  8269. <!-- <div
  8270. class="tool"
  8271. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8272. @click="addTools2(69)"
  8273. >
  8274. <div class="whiteBIcon">
  8275. <img src="../../assets/icon/secondToolList/english.png" alt />
  8276. <div style="margin: 5px 0">英语写作</div>
  8277. </div>
  8278. <div class="check">
  8279. <div
  8280. v-if="checktoolArray.indexOf(69) == -1"
  8281. class="noChoose"
  8282. ></div>
  8283. <div v-else class="isChoose"></div>
  8284. </div>
  8285. </div> -->
  8286. </div>
  8287. <div class="toolSort" v-if="toolType == 4">
  8288. <div
  8289. class="tool"
  8290. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8291. @click="addTools2(26)"
  8292. >
  8293. <div class="whiteBIcon">
  8294. <img
  8295. src="../../assets/icon/thirdToolList/courseDesign.png"
  8296. alt
  8297. />
  8298. <div style="margin: 5px 0">课程设计</div>
  8299. </div>
  8300. <div class="check">
  8301. <div
  8302. v-if="checktoolArray.indexOf(26) == -1"
  8303. class="noChoose"
  8304. ></div>
  8305. <div v-else class="isChoose"></div>
  8306. </div>
  8307. </div>
  8308. <div
  8309. class="tool"
  8310. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8311. @click="addTools2(25)"
  8312. >
  8313. <div class="whiteBIcon">
  8314. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8315. <div style="margin: 5px 0">目标管理</div>
  8316. </div>
  8317. <div class="check">
  8318. <div
  8319. v-if="checktoolArray.indexOf(25) == -1"
  8320. class="noChoose"
  8321. ></div>
  8322. <div v-else class="isChoose"></div>
  8323. </div>
  8324. </div>
  8325. </div>
  8326. </div>
  8327. </div>
  8328. <span
  8329. slot="footer"
  8330. class="dialog-footer"
  8331. style="display: block; text-align: center; padding: 0 0 10px 0"
  8332. >
  8333. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8334. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8335. </span>
  8336. </div>
  8337. <div
  8338. v-if="replyDialogVisible == true"
  8339. class="addDialogCss"
  8340. v-el-drag-dialog
  8341. >
  8342. <div class="pzTop">
  8343. <div class="teacherPz">
  8344. <div class="teacherPzImg">
  8345. <img src="../../assets/icon/teacherPz.png" alt="" />
  8346. </div>
  8347. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8348. </div>
  8349. <div @click="replyDialogVisible = false">
  8350. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8351. </div>
  8352. </div>
  8353. <div class="addPzBox">
  8354. <!-- <div class="addPzCheck">
  8355. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8356. >文本</span
  8357. >
  8358. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8359. >音频</span
  8360. >
  8361. </div> -->
  8362. <div style="height: calc(100% - 50px)">
  8363. <editor-bar
  8364. class="binfo_input pzConText"
  8365. style="width: 100% !important; margin: 0 auto"
  8366. placeholder="请输入回复描述"
  8367. v-model="reply"
  8368. @change="change"
  8369. ></editor-bar>
  8370. </div>
  8371. <div class="addTextCss" @click="addHf">确定</div>
  8372. </div>
  8373. </div>
  8374. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8375. <div class="pzTop">
  8376. <div class="teacherPz">
  8377. <div class="teacherPzImg">
  8378. <img src="../../assets/icon/teacherPz.png" alt="" />
  8379. </div>
  8380. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8381. </div>
  8382. <div @click="addPzDialog = false">
  8383. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8384. </div>
  8385. </div>
  8386. <div class="addPzBox">
  8387. <div class="addPzCheck">
  8388. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8389. >文本</span
  8390. >
  8391. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8392. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8393. >音频</span
  8394. >
  8395. </div>
  8396. <div style="height: calc(100% - 95px)">
  8397. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8398. v-if="pzType == 1"></textarea> -->
  8399. <editor-bar
  8400. class="binfo_input pzConText"
  8401. style="width: 100% !important"
  8402. placeholder="请输入任务描述"
  8403. v-model="pzConText"
  8404. @change="change"
  8405. v-if="pzType == 1"
  8406. ></editor-bar>
  8407. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8408. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8409. <div @click="addImg($event)">
  8410. <el-button type="primary">上传图片</el-button>
  8411. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8412. @change="beforeUpload1($event, 4)" />
  8413. </div>
  8414. </div> -->
  8415. </div>
  8416. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8417. 确定
  8418. </div>
  8419. </div>
  8420. </div>
  8421. <div v-if="proVisible" class="mask">
  8422. <div class="progressBox">
  8423. <!-- <div id="closePro" class="closeCss">
  8424. <img src="../../assets/icon/close.png" alt />
  8425. </div> -->
  8426. <div class="lbox">
  8427. <img src="../../assets/loading.gif" />上传中,请稍后
  8428. </div>
  8429. <div style="margin-bottom: 10px">
  8430. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8431. </div>
  8432. <el-progress
  8433. :text-inside="true"
  8434. :stroke-width="20"
  8435. :percentage="progress"
  8436. style="width: 80%"
  8437. ></el-progress>
  8438. </div>
  8439. </div>
  8440. <div v-if="proVisible2" class="mask">
  8441. <div class="progressBox">
  8442. <div class="lbox">
  8443. <img src="../../assets/loading.gif" />上传中,请稍后
  8444. </div>
  8445. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8446. </div>
  8447. </div>
  8448. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8449. <img width="100%" :src="dialogImageUrl" alt />
  8450. </el-dialog>
  8451. <el-dialog
  8452. :title="noteName != '' ? noteName : '查看问卷'"
  8453. :visible.sync="dialogVisible5"
  8454. :append-to-body="true"
  8455. width="1000px"
  8456. :before-close="handleClose"
  8457. class="dialog_diy dialog_diy3"
  8458. >
  8459. <div>
  8460. <div
  8461. class="a_add_title"
  8462. style="
  8463. display: flex;
  8464. flex-direction: row;
  8465. align-items: center;
  8466. justify-content: center;
  8467. "
  8468. >
  8469. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8470. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8471. </div>
  8472. <div class="a_addBox">
  8473. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8474. 题目内容
  8475. </div>
  8476. <div
  8477. class="a_add_box"
  8478. v-for="(item1, index1) in askJson.askCount"
  8479. :key="index1"
  8480. >
  8481. <div class="a_add_head">
  8482. <div style="display: flex">
  8483. <span class="askIndex"> {{ index1 + 1 }}</span>
  8484. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8485. </div>
  8486. <img
  8487. v-if="askJson.askJson[index1].img"
  8488. :src="askJson.askJson[index1].img"
  8489. style="height: 300px; margin-top: 10px; max-width: 100%"
  8490. />
  8491. </div>
  8492. <div class="a_add_body">
  8493. <div class="a_add_input">
  8494. <el-radio-group
  8495. v-model="radio[index1]"
  8496. v-if="
  8497. askJson.askJson[index1].type == '1' ||
  8498. !askJson.askJson[index1].type
  8499. "
  8500. >
  8501. <el-radio
  8502. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8503. .checkList"
  8504. :key="checkIndex"
  8505. :label="checkIndex"
  8506. :disabled="isAnswer"
  8507. class="redioStyle"
  8508. ><span v-html="item2"></span
  8509. ></el-radio>
  8510. </el-radio-group>
  8511. <el-checkbox-group
  8512. v-model="radio[index1]"
  8513. v-if="askJson.askJson[index1].type == '2'"
  8514. >
  8515. <el-checkbox
  8516. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8517. .checkList"
  8518. :key="checkIndex1"
  8519. :label="checkIndex1"
  8520. :disabled="isAnswer"
  8521. class="redioStyle"
  8522. ><span v-html="item2"></span>
  8523. </el-checkbox>
  8524. </el-checkbox-group>
  8525. </div>
  8526. </div>
  8527. </div>
  8528. </div>
  8529. </div>
  8530. <span slot="footer" class="dialog-footer">
  8531. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8532. >取 消</el-button
  8533. >
  8534. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8535. >确 定</el-button
  8536. >
  8537. </span>
  8538. </el-dialog>
  8539. <el-dialog
  8540. :title="noteName != '' ? noteName : '查看问卷'"
  8541. :visible.sync="dialogVisible5Teacher"
  8542. :append-to-body="true"
  8543. width="1000px"
  8544. :before-close="handleClose"
  8545. class="dialog_diy dialog_diy3"
  8546. >
  8547. <div>
  8548. <div class="w_name">
  8549. 学生姓名:<span>{{ sStudent.student }}</span>
  8550. </div>
  8551. <div
  8552. class="a_add_title"
  8553. style="
  8554. display: flex;
  8555. flex-direction: row;
  8556. align-items: center;
  8557. justify-content: center;
  8558. "
  8559. >
  8560. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8561. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8562. </div>
  8563. <div class="a_addBox">
  8564. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8565. 题目内容
  8566. </div>
  8567. <div
  8568. class="a_add_box"
  8569. v-for="(item1, index1) in askJson.askCount"
  8570. :key="index1"
  8571. >
  8572. <div class="a_add_head">
  8573. <div style="display: flex">
  8574. <span class="askIndex">{{ index1 + 1 }}</span>
  8575. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8576. </div>
  8577. <img
  8578. v-if="askJson.askJson[index1].img"
  8579. :src="askJson.askJson[index1].img"
  8580. style="height: 300px; margin-top: 10px; max-width: 100%"
  8581. />
  8582. </div>
  8583. <div class="a_add_body">
  8584. <div class="a_add_input">
  8585. <el-radio-group
  8586. v-model="radio[index1]"
  8587. v-if="
  8588. askJson.askJson[index1].type == '1' ||
  8589. !askJson.askJson[index1].type
  8590. "
  8591. >
  8592. <el-radio
  8593. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8594. .checkList"
  8595. :key="checkIndex"
  8596. :label="checkIndex"
  8597. :disabled="isAnswer"
  8598. class="redioStyle"
  8599. ><span v-html="item2"></span
  8600. ></el-radio>
  8601. </el-radio-group>
  8602. <el-checkbox-group
  8603. v-model="radio[index1]"
  8604. v-if="askJson.askJson[index1].type == '2'"
  8605. >
  8606. <el-checkbox
  8607. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8608. .checkList"
  8609. :key="checkIndex1"
  8610. :label="checkIndex1"
  8611. :disabled="isAnswer"
  8612. class="redioStyle"
  8613. ><span v-html="item2"></span>
  8614. </el-checkbox>
  8615. </el-checkbox-group>
  8616. </div>
  8617. </div>
  8618. </div>
  8619. </div>
  8620. </div>
  8621. <span slot="footer" class="dialog-footer">
  8622. <el-button
  8623. @click="dialogVisible5Teacher = false"
  8624. v-show="noteName == ''"
  8625. >取 消</el-button
  8626. >
  8627. <el-button
  8628. type="primary"
  8629. @click="addStudentAskTeacher"
  8630. v-show="noteName == ''"
  8631. >确 定</el-button
  8632. >
  8633. </span>
  8634. </el-dialog>
  8635. <el-dialog
  8636. :title="noteName != '' ? noteName : '查看选择题'"
  8637. :visible.sync="dialogVisibleChoice"
  8638. :append-to-body="true"
  8639. width="1000px"
  8640. :before-close="handleClose"
  8641. class="dialog_diy dialog_diy3"
  8642. >
  8643. <div>
  8644. <!-- <div class="a_add_title" style="
  8645. display: flex;
  8646. flex-direction: row;
  8647. align-items: center;
  8648. justify-content: center;
  8649. ">
  8650. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8651. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8652. </div> -->
  8653. <div class="a_addBox">
  8654. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8655. 题目内容
  8656. </div>
  8657. <div
  8658. class="a_add_box"
  8659. v-for="(item1, index1) in testJson.testCount"
  8660. :key="index1"
  8661. >
  8662. <div class="a_add_head">
  8663. <div style="display: flex">
  8664. <span class="askIndex">{{ index1 + 1 }}</span>
  8665. <div
  8666. v-if="testJson.testJson[index1].type == '1'"
  8667. style="margin-right: 5px; min-width: 70px"
  8668. >
  8669. (单选题)
  8670. </div>
  8671. <div
  8672. v-if="testJson.testJson[index1].type == '2'"
  8673. style="margin-right: 5px; min-width: 70px"
  8674. >
  8675. (多选题)
  8676. </div>
  8677. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8678. </div>
  8679. <img
  8680. v-if="testJson.testJson[index1].img"
  8681. :src="testJson.testJson[index1].img"
  8682. style="height: 300px; margin-top: 10px; max-width: 100%"
  8683. />
  8684. </div>
  8685. <div
  8686. class="timuImgBox"
  8687. v-if="
  8688. testJson.testJson[index1].timuList &&
  8689. testJson.testJson[index1].timuList.length
  8690. "
  8691. >
  8692. <div
  8693. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8694. :key="tIndex"
  8695. class="timuImg"
  8696. @click.stop="previewImg(timg.src)"
  8697. >
  8698. <img :src="timg.src" alt="" />
  8699. </div>
  8700. </div>
  8701. <div class="a_add_body">
  8702. <div class="a_add_input">
  8703. <el-radio-group
  8704. v-model="radio[index1]"
  8705. v-if="testJson.testJson[index1].type == '1'"
  8706. >
  8707. <div class="radioBox">
  8708. <el-radio
  8709. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8710. .checkList"
  8711. :key="checkIndex"
  8712. :label="checkIndex"
  8713. :disabled="isAnswer"
  8714. class="redioStyle"
  8715. >
  8716. <div
  8717. style="margin-right: 10px"
  8718. v-if="item2 && item2.imgType && item2.imgType == 1"
  8719. >
  8720. <div class="inImg" @click.stop="previewImg(item2.src)">
  8721. <img :src="item2.src" alt="" />
  8722. </div>
  8723. </div>
  8724. <span v-else v-html="item2"></span>
  8725. </el-radio>
  8726. </div>
  8727. </el-radio-group>
  8728. <el-checkbox-group
  8729. v-model="radio[index1]"
  8730. v-if="testJson.testJson[index1].type == '2'"
  8731. >
  8732. <div class="radioBox">
  8733. <el-checkbox
  8734. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8735. .checkList"
  8736. :key="checkIndex"
  8737. :label="checkIndex"
  8738. :disabled="isAnswer"
  8739. class="redioStyle"
  8740. >
  8741. <div
  8742. style="margin-right: 10px"
  8743. v-if="item2 && item2.imgType && item2.imgType == 1"
  8744. >
  8745. <div class="inImg" @click.stop="previewImg(item2.src)">
  8746. <img :src="item2.src" alt="" />
  8747. </div>
  8748. </div>
  8749. <span v-else v-html="item2"></span>
  8750. </el-checkbox>
  8751. </div>
  8752. </el-checkbox-group>
  8753. </div>
  8754. </div>
  8755. </div>
  8756. </div>
  8757. </div>
  8758. <span slot="footer" class="dialog-footer">
  8759. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8760. >取 消</el-button
  8761. >
  8762. <el-button
  8763. type="primary"
  8764. @click="addStudentTest"
  8765. v-show="noteName == ''"
  8766. >确 定</el-button
  8767. >
  8768. </span>
  8769. </el-dialog>
  8770. <el-dialog
  8771. :title="noteName != '' ? noteName : '查看选择题'"
  8772. :visible.sync="dialogVisibleChoiceTeacher"
  8773. :append-to-body="true"
  8774. width="1000px"
  8775. :before-close="handleClose"
  8776. class="dialog_diy dialog_diy3"
  8777. >
  8778. <div>
  8779. <div class="w_name">
  8780. 学生姓名:<span>{{ sStudent.student }}</span>
  8781. </div>
  8782. <div class="a_addBox">
  8783. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8784. 题目内容
  8785. </div>
  8786. <div
  8787. class="a_add_box"
  8788. v-for="(item1, index1) in testJson.testCount"
  8789. :key="index1"
  8790. >
  8791. <div class="a_add_head">
  8792. <div style="display: flex">
  8793. <span class="askIndex">{{ index1 + 1 }}</span>
  8794. <div
  8795. v-if="testJson.testJson[index1].type == '1'"
  8796. style="margin-right: 5px; min-width: 70px"
  8797. >
  8798. (单选题)
  8799. </div>
  8800. <div
  8801. v-if="testJson.testJson[index1].type == '2'"
  8802. style="margin-right: 5px; min-width: 70px"
  8803. >
  8804. (多选题)
  8805. </div>
  8806. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8807. </div>
  8808. <img
  8809. v-if="testJson.testJson[index1].img"
  8810. :src="testJson.testJson[index1].img"
  8811. style="height: 300px; margin-top: 10px; max-width: 100%"
  8812. />
  8813. </div>
  8814. <div
  8815. class="timuImgBox"
  8816. v-if="
  8817. testJson.testJson[index1].timuList &&
  8818. testJson.testJson[index1].timuList.length
  8819. "
  8820. >
  8821. <div
  8822. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8823. :key="tIndex"
  8824. class="timuImg"
  8825. @click.stop="previewImg(timg.src)"
  8826. >
  8827. <img :src="timg.src" alt="" />
  8828. </div>
  8829. </div>
  8830. <div class="a_add_body">
  8831. <div class="a_add_input">
  8832. <el-radio-group
  8833. v-model="radio[index1]"
  8834. v-if="testJson.testJson[index1].type == '1'"
  8835. >
  8836. <div class="radioBox">
  8837. <el-radio
  8838. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8839. .checkList"
  8840. :key="checkIndex"
  8841. :label="checkIndex"
  8842. :disabled="isAnswer"
  8843. class="redioStyle"
  8844. >
  8845. <div
  8846. style="margin-right: 10px"
  8847. v-if="item2 && item2.imgType && item2.imgType == 1"
  8848. >
  8849. <div class="inImg" @click.stop="previewImg(item2.src)">
  8850. <img :src="item2.src" alt="" />
  8851. </div>
  8852. </div>
  8853. <span v-else v-html="item2"></span>
  8854. </el-radio>
  8855. </div>
  8856. </el-radio-group>
  8857. <el-checkbox-group
  8858. v-model="radio[index1]"
  8859. v-if="testJson.testJson[index1].type == '2'"
  8860. >
  8861. <div class="radioBox">
  8862. <el-checkbox
  8863. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8864. .checkList"
  8865. :key="checkIndex"
  8866. :label="checkIndex"
  8867. :disabled="isAnswer"
  8868. class="redioStyle"
  8869. >
  8870. <div
  8871. style="margin-right: 10px"
  8872. v-if="item2 && item2.imgType && item2.imgType == 1"
  8873. >
  8874. <div class="inImg" @click.stop="previewImg(item2.src)">
  8875. <img :src="item2.src" alt="" />
  8876. </div>
  8877. </div>
  8878. <span v-else v-html="item2"></span>
  8879. </el-checkbox>
  8880. </div>
  8881. </el-checkbox-group>
  8882. </div>
  8883. </div>
  8884. </div>
  8885. </div>
  8886. </div>
  8887. <span slot="footer" class="dialog-footer">
  8888. <el-button
  8889. @click="dialogVisibleChoiceTeacher = false"
  8890. v-show="noteName == ''"
  8891. >取 消</el-button
  8892. >
  8893. <el-button
  8894. type="primary"
  8895. @click="addStudentTestTeacher"
  8896. v-show="noteName == ''"
  8897. >确 定</el-button
  8898. >
  8899. </span>
  8900. </el-dialog>
  8901. <el-dialog
  8902. title="查看富文本"
  8903. :visible.sync="dialogVisible1"
  8904. :append-to-body="true"
  8905. width="500px"
  8906. :before-close="handleClose"
  8907. class="dialog_diy textCss"
  8908. >
  8909. <el-form style="font-size: 20px">
  8910. <el-form-item label="文本标题" class="textTitle">
  8911. <div style="font-size: 20px">{{ text.name }}</div>
  8912. </el-form-item>
  8913. <div>富文本内容</div>
  8914. <div
  8915. v-html="text.url"
  8916. style="font-size: 18px; padding: 40px 0 0 0"
  8917. ></div>
  8918. </el-form>
  8919. <span slot="footer" class="dialog-footer">
  8920. <el-button type="primary" @click="dialogVisible1 = false"
  8921. >确定</el-button
  8922. >
  8923. </span>
  8924. </el-dialog>
  8925. <el-dialog
  8926. title="文件预览"
  8927. :visible.sync="dialogVisible3"
  8928. width="50%"
  8929. :before-close="handleClose"
  8930. class="dialog_diy"
  8931. :class="{ fullStyle: full }"
  8932. >
  8933. <div slot="title" class="header-title">
  8934. <div style="color: #fff">文件预览</div>
  8935. <div style="position: absolute; top: 19px; right: 50px">
  8936. <img
  8937. src="../../assets/full.png"
  8938. style="height: 16px; cursor: pointer"
  8939. alt=""
  8940. @click="fullTools"
  8941. />
  8942. </div>
  8943. </div>
  8944. <pdf
  8945. v-if="showPDF"
  8946. :pdfUrl="pptImgUrl"
  8947. style="width: 100%; height: 520px; overflow: auto"
  8948. :class="{ fullStyle: full }"
  8949. ></pdf>
  8950. <iframe
  8951. v-else
  8952. :src="pptImgUrl"
  8953. frameborder="0"
  8954. width="100%"
  8955. height="600"
  8956. :class="{ fullStyle: full }"
  8957. ></iframe>
  8958. </el-dialog>
  8959. <el-dialog
  8960. title="文件预览"
  8961. :visible.sync="dialogVisible6"
  8962. width="50%"
  8963. :before-close="handleClose"
  8964. class="dialog_diy"
  8965. >
  8966. <iframe
  8967. :src="pptImgUrl1"
  8968. frameborder="0"
  8969. width="100%"
  8970. height="600"
  8971. ></iframe>
  8972. </el-dialog>
  8973. <el-dialog
  8974. title="提示"
  8975. :visible.sync="dialogVisible4"
  8976. :append-to-body="true"
  8977. width="800px"
  8978. :before-close="handleClose"
  8979. class="dialog_diy notice"
  8980. >
  8981. <div>此功能暂未开放!</div>
  8982. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8983. </el-dialog>
  8984. <el-dialog
  8985. title="问答"
  8986. :visible.sync="answerDialogVisible"
  8987. :append-to-body="true"
  8988. width="800px"
  8989. :before-close="handleClose"
  8990. class="dialog_diy"
  8991. >
  8992. <div>
  8993. <div
  8994. style="
  8995. display: flex;
  8996. flex-wrap: nowrap;
  8997. flex-direction: column;
  8998. position: relative;
  8999. "
  9000. >
  9001. <div class="queTop" style="padding: 20px 0 20px 0">
  9002. <div class="question">
  9003. <img src="../../assets/icon/question.png" alt />
  9004. </div>
  9005. <div class="queTitle">
  9006. <div style="width: 90px; min-width: 90px">提问:</div>
  9007. <div>{{ answerQ }}</div>
  9008. </div>
  9009. </div>
  9010. <div class="ediBottom">
  9011. <textarea
  9012. rows="6"
  9013. class="binfo_input"
  9014. cols
  9015. style="width: 95%; height: 120px"
  9016. v-model="questionAnswer"
  9017. ></textarea>
  9018. </div>
  9019. </div>
  9020. </div>
  9021. <div slot="footer">
  9022. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9023. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9024. </div>
  9025. </el-dialog>
  9026. <el-dialog
  9027. title="问答"
  9028. :visible.sync="answerDialogVisibleTeacher"
  9029. :append-to-body="true"
  9030. width="800px"
  9031. :before-close="handleClose"
  9032. class="dialog_diy"
  9033. >
  9034. <div>
  9035. <div class="w_name">
  9036. 学生姓名:<span>{{ sStudent.student }}</span>
  9037. </div>
  9038. <div
  9039. style="
  9040. display: flex;
  9041. flex-wrap: nowrap;
  9042. flex-direction: column;
  9043. position: relative;
  9044. "
  9045. >
  9046. <div class="queTop" style="padding: 20px 0 20px 0">
  9047. <div class="question">
  9048. <img src="../../assets/icon/question.png" alt />
  9049. </div>
  9050. <div class="queTitle">
  9051. <div style="width: 90px; min-width: 90px">提问:</div>
  9052. <div>{{ answerQ }}</div>
  9053. </div>
  9054. </div>
  9055. <div class="ediBottom">
  9056. <textarea
  9057. rows="6"
  9058. class="binfo_input"
  9059. cols
  9060. style="width: 95%; height: 120px"
  9061. v-model="questionAnswer"
  9062. ></textarea>
  9063. </div>
  9064. </div>
  9065. </div>
  9066. <div slot="footer">
  9067. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9068. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9069. </div>
  9070. </el-dialog>
  9071. <el-dialog
  9072. title="倒计时"
  9073. :visible.sync="timeDialogVisible"
  9074. :append-to-body="true"
  9075. width="800px"
  9076. :before-close="handleClose"
  9077. class="dialog_diy"
  9078. >
  9079. <div>
  9080. <div style="margin-bottom: 20px; color: #999">
  9081. 提示:点击“+”或“-”修改倒计时时长。
  9082. </div>
  9083. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9084. </div>
  9085. <div slot="footer">
  9086. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9087. </div>
  9088. </el-dialog>
  9089. <el-dialog
  9090. title="权限设置"
  9091. :visible.sync="juriVisible"
  9092. :append-to-body="true"
  9093. width="400px"
  9094. :before-close="handleClose"
  9095. class="dialog_diy"
  9096. >
  9097. <div>
  9098. <div class="open_box">
  9099. <div class="switch_box">
  9100. <span>允许学生查看所有作业</span>
  9101. <el-switch
  9102. v-model="sIsOpen"
  9103. active-text=""
  9104. class="switchCss"
  9105. @change="updateSLook"
  9106. ></el-switch>
  9107. </div>
  9108. <div
  9109. class="switch_box"
  9110. v-if="
  9111. courseDetail.userid == userid ||
  9112. (courseDetail.course_teacher &&
  9113. courseDetail.course_teacher.indexOf(userid) != -1)
  9114. "
  9115. >
  9116. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9117. <span>禁止学生查看所有阶段</span>
  9118. <el-switch
  9119. v-model="IsLookOpen"
  9120. active-text=""
  9121. class="switchCss"
  9122. @change="updateLookOpen"
  9123. ></el-switch>
  9124. </div>
  9125. <div class="switch_box" v-if="courseDetail.userid == userid">
  9126. <span>开启跟随模式</span>
  9127. <el-switch
  9128. v-model="IsFollow"
  9129. active-text=""
  9130. class="switchCss"
  9131. @change="updateFollow"
  9132. ></el-switch>
  9133. </div>
  9134. </div>
  9135. </div>
  9136. <div slot="footer">
  9137. <el-button
  9138. style="background: #409efe; color: #fff"
  9139. @click="juriVisible = false"
  9140. >关 闭</el-button
  9141. >
  9142. </div>
  9143. </el-dialog>
  9144. <el-dialog
  9145. title="查看视频"
  9146. :visible.sync="videoVisible"
  9147. :append-to-body="true"
  9148. width="1000px"
  9149. :before-close="handleClose"
  9150. class="dialog_diy1"
  9151. >
  9152. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9153. <video-player
  9154. class="video-player vjs-custom-skin"
  9155. :playsinline="true"
  9156. :options="videoDetail"
  9157. @play="onPlayerPlay($event)"
  9158. style="width: 100%; height: 100%"
  9159. ></video-player>
  9160. </div>
  9161. <div slot="footer">
  9162. <el-button
  9163. style="background: #409efe; color: #fff"
  9164. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9165. >
  9166. 关 闭</el-button
  9167. >
  9168. </div>
  9169. </el-dialog>
  9170. <el-dialog
  9171. title="查看详情"
  9172. :visible.sync="commentDialogVisible"
  9173. :append-to-body="true"
  9174. width="800px"
  9175. :before-close="handleClose"
  9176. class="dialog_diy"
  9177. >
  9178. <div class="commentTop">
  9179. <div class="studentDetail">
  9180. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9181. <div class="nameAndTime">
  9182. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9183. <div>{{ commentDetail.time }}</div>
  9184. </div>
  9185. <div
  9186. class="returnBtn"
  9187. style="margin-left: auto; width: 80px"
  9188. v-if="
  9189. commentDetail.works &&
  9190. commentDetail.type == 0 &&
  9191. (tType == 1 || tType == 4)
  9192. "
  9193. @click="
  9194. showPicturePaint(
  9195. commentDetail.img ? commentDetail.img : commentDetail.works
  9196. )
  9197. "
  9198. >
  9199. 教师批注
  9200. </div>
  9201. </div>
  9202. <div
  9203. class="worksAnswer"
  9204. v-if="commentDetail.works && commentDetail.type == 2"
  9205. >
  9206. {{ JSON.parse(commentDetail.works)[0].answer }}
  9207. </div>
  9208. <div
  9209. class="worksAnswer"
  9210. v-if="commentDetail.works && commentDetail.type == 1"
  9211. >
  9212. <img
  9213. src="../../assets/teacherWork.png"
  9214. v-if="commentDetail.ateacher"
  9215. class="w_teachert"
  9216. />
  9217. <pdf
  9218. v-if="showPDF"
  9219. :pdfUrl="pptImgUrl"
  9220. style="width: 100%; height: 520px; overflow: auto"
  9221. :class="{ fullStyle: full }"
  9222. ></pdf>
  9223. <iframe
  9224. v-else
  9225. :src="pptImgUrl"
  9226. frameborder="0"
  9227. width="100%"
  9228. height="600"
  9229. :class="{ fullStyle: full }"
  9230. ></iframe>
  9231. </div>
  9232. <div
  9233. class="worksAnswer"
  9234. v-if="commentDetail.works && commentDetail.type == 0"
  9235. >
  9236. <img
  9237. src="../../assets/teacherWork.png"
  9238. v-if="commentDetail.ateacher"
  9239. class="w_teachert"
  9240. style="right: 105px"
  9241. />
  9242. <img
  9243. :src="commentDetail.works"
  9244. alt=""
  9245. @click="previewImg(commentDetail.works)"
  9246. />
  9247. </div>
  9248. <div
  9249. class="worksAnswer"
  9250. v-if="commentDetail.works && commentDetail.type == 3"
  9251. >
  9252. <img
  9253. src="../../assets/teacherWork.png"
  9254. v-if="commentDetail.ateacher"
  9255. class="w_teachert"
  9256. />
  9257. <video-player
  9258. class="video-player vjs-custom-skin"
  9259. :playsinline="true"
  9260. :options="videoDetail"
  9261. @play="onPlayerPlay($event)"
  9262. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9263. ></video-player>
  9264. </div>
  9265. <div
  9266. class="worksAnswer"
  9267. v-if="commentDetail.works && commentDetail.type == 10"
  9268. >
  9269. <div class="cont" v-html="commentDetail.works.text"></div>
  9270. </div>
  9271. <div
  9272. class="worksAnswer codeFileBox"
  9273. v-if="commentDetail.works && commentDetail.type == 12"
  9274. @click="downloadFile(commentDetail.works)"
  9275. >
  9276. <img src="../../assets/icon/codeFile.png" />
  9277. <div>点击下载文件</div>
  9278. </div>
  9279. <div
  9280. class="worksAnswer codeFileBox"
  9281. v-if="commentDetail.works && commentDetail.type == 15"
  9282. @click="
  9283. openCocoPi(
  9284. 57,
  9285. commentIndexJson.toolIndex,
  9286. commentDetail.userid,
  9287. commentDetail.sName
  9288. )
  9289. "
  9290. >
  9291. <img src="../../assets/icon/codeFile.png" />
  9292. <div>点击打开CocoPi</div>
  9293. </div>
  9294. <div
  9295. class="worksAnswer"
  9296. v-if="commentDetail.works && commentDetail.type == 13"
  9297. >
  9298. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9299. </div>
  9300. <div
  9301. class="worksAnswer"
  9302. v-if="commentDetail.works && commentDetail.type == 4"
  9303. >
  9304. <div class="evalCss">
  9305. <div class="nav">请选择星星进行评分</div>
  9306. <div class="middleBox" v-if="eScore.eStar">
  9307. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9308. <div class="nameAndrate">
  9309. <div>{{ e.value }}</div>
  9310. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9311. </div>
  9312. <div v-if="e.detail">{{ e.detail }}</div>
  9313. </div>
  9314. <div class="bz">
  9315. <textarea
  9316. disabled
  9317. rows="4"
  9318. class="pj"
  9319. style="
  9320. padding: 10px 5px;
  9321. width: 70%;
  9322. background: #f7f6f9;
  9323. font-size: 14px;
  9324. text-indent: 10px;
  9325. color: #000;
  9326. "
  9327. cols
  9328. v-model="eScore.eBzText"
  9329. placeholder="请输入评价内容..."
  9330. ></textarea>
  9331. </div>
  9332. </div>
  9333. </div>
  9334. </div>
  9335. <div class="comment">
  9336. <div class="commentList">
  9337. <div class="commentImg">
  9338. <img
  9339. @click="
  9340. isLikes(
  9341. commentDetail.wid,
  9342. userid,
  9343. 1,
  9344. null,
  9345. commentDetail.isLikes
  9346. )
  9347. "
  9348. :src="commentDetail.isLikes == true ? likes : noLikes"
  9349. alt=""
  9350. />
  9351. </div>
  9352. <div>{{ commentDetail.likesCount }}</div>
  9353. </div>
  9354. <div class="commentList">
  9355. <div class="commentImg">
  9356. <img src="../../assets/icon/comment/comment.png" alt="" />
  9357. </div>
  9358. <div>{{ commentDetail.commentCount }}</div>
  9359. </div>
  9360. </div>
  9361. <div class="drawPBox" v-if="commentDetail.img">
  9362. <span>教师批注</span>
  9363. <img
  9364. :src="commentDetail.img"
  9365. alt=""
  9366. @click="previewImg(commentDetail.img)"
  9367. />
  9368. <span
  9369. class="deleteImg"
  9370. v-if="tType == 1 || tType == 4"
  9371. @click.stop="deletePicturePaint(commentDetail.wid)"
  9372. style="
  9373. font-size: 14px;
  9374. width: auto !important;
  9375. color: #b4b4b4;
  9376. top: unset;
  9377. bottom: 0;
  9378. border: none;
  9379. padding: 0;
  9380. height: auto !important;
  9381. margin: 0;
  9382. "
  9383. >删除</span
  9384. >
  9385. </div>
  9386. </div>
  9387. <div class="commentBox">
  9388. <div class="pl">评论:</div>
  9389. <div style="max-height: 200px; overflow: auto">
  9390. <div
  9391. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9392. style="padding: 10px 0 0 0"
  9393. >
  9394. <div
  9395. class="studentDetail"
  9396. style="padding-top: 10px"
  9397. v-for="(co, coIndex) in commentDetail.commentJson"
  9398. :key="coIndex"
  9399. >
  9400. <div class="tx" style="min-width: 50px">
  9401. <img src="../../assets/avatar.png" alt="" />
  9402. </div>
  9403. <div class="plPerson">
  9404. <div class="plName">
  9405. <div>{{ co.commentPeople }}</div>
  9406. <div style="margin-left: 5px">
  9407. {{ co.commentTime }}
  9408. </div>
  9409. <div
  9410. class="deleteComment"
  9411. v-if="userid == co.userid"
  9412. @click="deleteComment(co.wid)"
  9413. >
  9414. 删除
  9415. </div>
  9416. </div>
  9417. <div class="plContent">{{ co.commentText }}</div>
  9418. </div>
  9419. </div>
  9420. </div>
  9421. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9422. </div>
  9423. </div>
  9424. <div style="margin-top: 10px">
  9425. <div class="displayBox">
  9426. <div
  9427. style="
  9428. color: #556db4;
  9429. font-size: 14px;
  9430. font-weight: bold;
  9431. padding-bottom: 10px;
  9432. "
  9433. >
  9434. 评价
  9435. </div>
  9436. <div class="easy_comment" v-if="false">
  9437. <div
  9438. v-for="(p, pIndex) in PlTextList"
  9439. :key="pIndex"
  9440. @click="fastText(p, 1)"
  9441. >
  9442. {{ p }}
  9443. </div>
  9444. </div>
  9445. </div>
  9446. <div>
  9447. <textarea
  9448. rows="3"
  9449. class="pj"
  9450. style="padding: 10px 5px"
  9451. cols
  9452. v-model="commentText"
  9453. placeholder="请输入评论"
  9454. ></textarea>
  9455. </div>
  9456. </div>
  9457. <div slot="footer">
  9458. <el-button
  9459. @click="
  9460. (commentDialogVisible = false),
  9461. (commentIndexJson = {}),
  9462. videoDetail.sources && videoDetail.sources[0]
  9463. ? (videoDetail.sources[0].src = '')
  9464. : ''
  9465. "
  9466. >取 消</el-button
  9467. >
  9468. <el-button
  9469. type="primary"
  9470. @click="addComment(commentDetail.wid, userid, 2)"
  9471. >确 定</el-button
  9472. >
  9473. </div>
  9474. </el-dialog>
  9475. <el-dialog
  9476. title="查看文档"
  9477. :visible.sync="fullDialogVisible"
  9478. :append-to-body="true"
  9479. width="100%"
  9480. :before-close="handleClose"
  9481. :show-close="false"
  9482. class="dialog_diy full_diy"
  9483. :class="{ full_diy2: fulltype == 3 }"
  9484. >
  9485. <div slot="title" class="header-title">
  9486. <div style="color: #fff">查看文档</div>
  9487. <div
  9488. @click="fullDialogVisible = false"
  9489. style="
  9490. cursor: pointer;
  9491. position: absolute;
  9492. top: 20px;
  9493. right: 20px;
  9494. color: #fff;
  9495. "
  9496. >
  9497. 退出全屏
  9498. </div>
  9499. </div>
  9500. <div style="height: 100%">
  9501. <div
  9502. class="wheel"
  9503. v-if="
  9504. fulltype == 2 &&
  9505. fullUrl.indexOf(
  9506. 'https://view.officeapps.live.com/op/view.aspx?src='
  9507. ) != -1
  9508. "
  9509. style="width: 95%; margin: 0 auto"
  9510. >
  9511. <iframe
  9512. style="width: 100%; height: 100%; border: none"
  9513. :src="fullUrl"
  9514. ></iframe>
  9515. </div>
  9516. <iframe
  9517. v-else-if="fulltype == 2"
  9518. style="width: 100%; height: 100%; border: none"
  9519. :src="fullUrl"
  9520. security="restricted"
  9521. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9522. ></iframe>
  9523. <pdf
  9524. v-else-if="fulltype == 3"
  9525. :pdfUrl="fullUrl"
  9526. style="width: 100%; height: 100%; overflow: auto"
  9527. ></pdf>
  9528. <div
  9529. class="wheel"
  9530. v-if="fulltype == 1"
  9531. style="
  9532. box-shadow: 0 0 6px 1px #f2f2f2;
  9533. width: 100%;
  9534. background: #f1f1f1;
  9535. "
  9536. >
  9537. <div class="title" style="width: 100%; box-sizing: border-box">
  9538. 查看文档
  9539. </div>
  9540. <el-form class="textBox" style="height: 90%">
  9541. <el-form-item class="textTitle">
  9542. <div style="font-size: 22px">
  9543. {{ fullUrl.name }}
  9544. </div>
  9545. </el-form-item>
  9546. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9547. <div
  9548. v-html="fullUrl.url"
  9549. class="textContent"
  9550. style="height: auto"
  9551. ></div>
  9552. </el-form>
  9553. </div>
  9554. </div>
  9555. <!-- <div slot="footer">
  9556. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9557. </div> -->
  9558. </el-dialog>
  9559. <el-dialog
  9560. title="个人评价"
  9561. :visible.sync="studentEvalDialogVisible"
  9562. :append-to-body="true"
  9563. width="800px"
  9564. :before-close="handleClose"
  9565. class="dialog_diy"
  9566. >
  9567. <div class="evalCss">
  9568. <div class="nav">请选择星星进行评分</div>
  9569. <div class="middleBox" v-if="eScore.eStar">
  9570. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9571. <div class="nameAndrate">
  9572. <div>{{ e.value }}</div>
  9573. <el-rate
  9574. v-model="eScore.eStar[eIndex]"
  9575. :disabled="isStar"
  9576. ></el-rate>
  9577. </div>
  9578. <div v-if="e.detail">{{ e.detail }}</div>
  9579. </div>
  9580. <div class="easy_comment" v-if="false">
  9581. <div
  9582. v-for="(p, pIndex) in PlTextList"
  9583. :key="pIndex"
  9584. @click="fastText(p, 2)"
  9585. >
  9586. {{ p }}
  9587. </div>
  9588. </div>
  9589. <div class="bz">
  9590. <textarea
  9591. :disabled="isStar"
  9592. rows="4"
  9593. class="pj"
  9594. style="
  9595. padding: 10px 5px;
  9596. width: 70%;
  9597. background: #f7f6f9;
  9598. font-size: 14px;
  9599. text-indent: 10px;
  9600. "
  9601. cols
  9602. v-model="eScore.eBzText"
  9603. placeholder="请输入评价内容..."
  9604. ></textarea>
  9605. </div>
  9606. </div>
  9607. </div>
  9608. <div slot="footer">
  9609. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9610. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9611. >确 定</el-button
  9612. >
  9613. </div>
  9614. </el-dialog>
  9615. <el-dialog
  9616. title="个人评价"
  9617. :visible.sync="studentEvalDialogVisibleTeacher"
  9618. :append-to-body="true"
  9619. width="800px"
  9620. :before-close="handleClose"
  9621. class="dialog_diy"
  9622. >
  9623. <div class="w_name">
  9624. 学生姓名:<span>{{ sStudent.student }}</span>
  9625. </div>
  9626. <div class="evalCss">
  9627. <div class="nav">请选择星星进行评分</div>
  9628. <div class="middleBox" v-if="eScore.eStar">
  9629. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9630. <div class="nameAndrate">
  9631. <div>{{ e.value }}</div>
  9632. <el-rate
  9633. v-model="eScore.eStar[eIndex]"
  9634. :disabled="isStar"
  9635. ></el-rate>
  9636. </div>
  9637. <div v-if="e.detail">{{ e.detail }}</div>
  9638. </div>
  9639. <div class="easy_comment" v-if="false">
  9640. <div
  9641. v-for="(p, pIndex) in PlTextList"
  9642. :key="pIndex"
  9643. @click="fastText(p, 2)"
  9644. >
  9645. {{ p }}
  9646. </div>
  9647. </div>
  9648. <div class="bz">
  9649. <textarea
  9650. :disabled="isStar"
  9651. rows="4"
  9652. class="pj"
  9653. style="
  9654. padding: 10px 5px;
  9655. width: 70%;
  9656. background: #f7f6f9;
  9657. font-size: 14px;
  9658. text-indent: 10px;
  9659. "
  9660. cols
  9661. v-model="eScore.eBzText"
  9662. placeholder="请输入评价内容..."
  9663. ></textarea>
  9664. </div>
  9665. </div>
  9666. </div>
  9667. <div slot="footer">
  9668. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9669. >取 消</el-button
  9670. >
  9671. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9672. >确 定</el-button
  9673. >
  9674. </div>
  9675. </el-dialog>
  9676. <el-dialog
  9677. title="选择匹配"
  9678. :visible.sync="dialogVisibleSelect"
  9679. :append-to-body="true"
  9680. width="90%"
  9681. :before-close="handleClose"
  9682. class="dialog_diy dialog_diy3"
  9683. >
  9684. <div v-if="selectJson">
  9685. <div class="select_box2">
  9686. <div class="select_box2_title">
  9687. <div>选择匹配</div>
  9688. <div>请选择对应的答案进行答题!</div>
  9689. </div>
  9690. <div class="select_box2_box">
  9691. <div class="select_box2_img">
  9692. <img
  9693. :src="selectJson.url"
  9694. @click="previewImg(selectJson.url)"
  9695. alt=""
  9696. />
  9697. </div>
  9698. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9699. <div style="padding-top: 15px">
  9700. <div class="select_answer_title" v-if="isSelect">
  9701. {{ selectAnswer.stu }}
  9702. </div>
  9703. <div class="select_answer_title" v-else>
  9704. 根据题目选择对应答案
  9705. </div>
  9706. <div
  9707. class="select_box2_answer_box"
  9708. v-for="(item2, checkIndex) in selectJson.select"
  9709. :key="checkIndex"
  9710. >
  9711. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9712. <el-select
  9713. :disabled="isSelect"
  9714. v-model="selectAnswer.answer[checkIndex]"
  9715. placeholder="请选择正确答案"
  9716. >
  9717. <el-option
  9718. v-for="(e, eIndex) in selectJson.select"
  9719. :key="eIndex"
  9720. :label="e"
  9721. :value="eIndex"
  9722. >
  9723. </el-option>
  9724. </el-select>
  9725. </div>
  9726. </div>
  9727. <div
  9728. class="rightAnswerCss"
  9729. v-if="isSelect && (tType == 1 || tType == 4)"
  9730. >
  9731. <div
  9732. v-for="(a, aIndex) in selectJson.answer"
  9733. :key="aIndex"
  9734. class="rightAnswer"
  9735. >
  9736. <div
  9737. v-if="selectAnswer.answer[aIndex] === a"
  9738. style="color: #767de1"
  9739. >
  9740. 回答正确
  9741. </div>
  9742. <div v-else>回答错误</div>
  9743. <div
  9744. style="margin-left: 10px"
  9745. v-if="selectAnswer.answer[aIndex] !== a"
  9746. >
  9747. 正确答案:
  9748. </div>
  9749. <div
  9750. :class="
  9751. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9752. "
  9753. >
  9754. {{ selectJson.select[a] }}
  9755. </div>
  9756. </div>
  9757. </div>
  9758. </div>
  9759. <div class="upAnswerCss">
  9760. <el-button
  9761. type="primary"
  9762. @click="addSelectAnswer"
  9763. v-if="!isSelect"
  9764. >提交答案</el-button
  9765. >
  9766. </div>
  9767. </div>
  9768. </div>
  9769. </div>
  9770. </el-dialog>
  9771. <el-dialog
  9772. title="选择匹配"
  9773. :visible.sync="dialogVisibleSelectTeacher"
  9774. :append-to-body="true"
  9775. width="90%"
  9776. :before-close="handleClose"
  9777. class="dialog_diy dialog_diy3"
  9778. >
  9779. <div v-if="selectJson">
  9780. <div class="w_name">
  9781. 学生姓名:<span>{{ sStudent.student }}</span>
  9782. </div>
  9783. <div class="select_box2">
  9784. <div class="select_box2_title">
  9785. <div>选择匹配</div>
  9786. <div>请选择对应的答案进行答题!</div>
  9787. </div>
  9788. <div class="select_box2_box">
  9789. <div class="select_box2_img">
  9790. <img
  9791. :src="selectJson.url"
  9792. @click="previewImg(selectJson.url)"
  9793. alt=""
  9794. />
  9795. </div>
  9796. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9797. <div style="padding-top: 15px">
  9798. <div class="select_answer_title" v-if="isSelect">
  9799. {{ selectAnswer.stu }}
  9800. </div>
  9801. <div class="select_answer_title" v-else>
  9802. 根据题目选择对应答案
  9803. </div>
  9804. <div
  9805. class="select_box2_answer_box"
  9806. v-for="(item2, checkIndex) in selectJson.select"
  9807. :key="checkIndex"
  9808. >
  9809. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9810. <el-select
  9811. :disabled="isSelect"
  9812. v-model="selectAnswer.answer[checkIndex]"
  9813. placeholder="请选择正确答案"
  9814. >
  9815. <el-option
  9816. v-for="(e, eIndex) in selectJson.select"
  9817. :key="eIndex"
  9818. :label="e"
  9819. :value="eIndex"
  9820. >
  9821. </el-option>
  9822. </el-select>
  9823. </div>
  9824. </div>
  9825. <div
  9826. class="rightAnswerCss"
  9827. v-if="isSelect && (tType == 1 || tType == 4)"
  9828. >
  9829. <div
  9830. v-for="(a, aIndex) in selectJson.answer"
  9831. :key="aIndex"
  9832. class="rightAnswer"
  9833. >
  9834. <div
  9835. v-if="selectAnswer.answer[aIndex] === a"
  9836. style="color: #767de1"
  9837. >
  9838. 回答正确
  9839. </div>
  9840. <div v-else>回答错误</div>
  9841. <div
  9842. style="margin-left: 10px"
  9843. v-if="selectAnswer.answer[aIndex] !== a"
  9844. >
  9845. 正确答案:
  9846. </div>
  9847. <div
  9848. :class="
  9849. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9850. "
  9851. >
  9852. {{ selectJson.select[a] }}
  9853. </div>
  9854. </div>
  9855. </div>
  9856. </div>
  9857. <div class="upAnswerCss">
  9858. <el-button
  9859. type="primary"
  9860. @click="addSelectAnswerTeacher"
  9861. v-if="!isSelect"
  9862. >提交答案</el-button
  9863. >
  9864. </div>
  9865. </div>
  9866. </div>
  9867. </div>
  9868. </el-dialog>
  9869. <el-dialog
  9870. title="教师评分"
  9871. :visible.sync="dialogVisibleScore"
  9872. :append-to-body="true"
  9873. width="800px"
  9874. :before-close="handleClose"
  9875. class="dialog_diy"
  9876. >
  9877. <div>
  9878. <div class="studentDetail">
  9879. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9880. <div class="nameAndTime">
  9881. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9882. <div>{{ commentDetail.time }}</div>
  9883. </div>
  9884. </div>
  9885. <div
  9886. class="worksAnswer"
  9887. v-if="commentDetail.works && commentDetail.type == 2"
  9888. >
  9889. {{ JSON.parse(commentDetail.works)[0].answer }}
  9890. </div>
  9891. <div
  9892. class="worksAnswer"
  9893. v-if="commentDetail.works && commentDetail.type == 1"
  9894. >
  9895. <pdf
  9896. v-if="showPDF"
  9897. :pdfUrl="pptImgUrl"
  9898. style="width: 100%; height: 520px; overflow: auto"
  9899. :class="{ fullStyle: full }"
  9900. ></pdf>
  9901. <iframe
  9902. v-else
  9903. :src="pptImgUrl"
  9904. frameborder="0"
  9905. width="100%"
  9906. height="600"
  9907. :class="{ fullStyle: full }"
  9908. ></iframe>
  9909. </div>
  9910. <div
  9911. class="worksAnswer"
  9912. v-if="commentDetail.works && commentDetail.type == 0"
  9913. >
  9914. <img
  9915. :src="commentDetail.works"
  9916. alt=""
  9917. @click="previewImg(commentDetail.works)"
  9918. />
  9919. </div>
  9920. <div
  9921. class="worksAnswer"
  9922. v-if="commentDetail.works && commentDetail.type == 3"
  9923. >
  9924. <video-player
  9925. class="video-player vjs-custom-skin"
  9926. :playsinline="true"
  9927. :options="videoDetail"
  9928. @play="onPlayerPlay($event)"
  9929. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9930. ></video-player>
  9931. </div>
  9932. <div
  9933. class="worksAnswer codeFileBox"
  9934. v-if="commentDetail.works && commentDetail.type == 12"
  9935. @click="downloadFile(commentDetail.works)"
  9936. >
  9937. <img src="../../assets/icon/codeFile.png" />
  9938. <div>点击下载文件</div>
  9939. </div>
  9940. <div
  9941. class="worksAnswer codeFileBox"
  9942. v-if="commentDetail.works && commentDetail.type == 15"
  9943. @click="
  9944. openCocoPi(
  9945. 57,
  9946. commentIndexJson.toolIndex,
  9947. commentDetail.userid,
  9948. commentDetail.sName
  9949. )
  9950. "
  9951. >
  9952. <img src="../../assets/icon/codeFile.png" />
  9953. <div>点击打开CocoPi</div>
  9954. </div>
  9955. <div
  9956. class="worksAnswer"
  9957. v-if="commentDetail.works && commentDetail.type == 13"
  9958. >
  9959. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9960. </div>
  9961. <div class="scoreBox">
  9962. <span class="t">请输入分数</span>
  9963. <el-input-number
  9964. :disabled="courseDetail.userid != userid"
  9965. v-model="wScore"
  9966. :controls="false"
  9967. :min="0"
  9968. :max="100"
  9969. ></el-input-number>
  9970. </div>
  9971. <div class="scoreDetailBox">
  9972. <span class="t">评分评论</span>
  9973. <el-input
  9974. type="textarea"
  9975. :rows="5"
  9976. :disabled="courseDetail.userid != userid"
  9977. resize="none"
  9978. v-model="scoreDetail"
  9979. placeholder="请输入对学生的评价"
  9980. >
  9981. </el-input>
  9982. </div>
  9983. </div>
  9984. <span slot="footer" class="dialog-footer">
  9985. <el-button
  9986. @click="
  9987. (dialogVisibleScore = false),
  9988. (commentIndexJson = {}),
  9989. videoDetail.sources && videoDetail.sources[0]
  9990. ? (videoDetail.sources[0].src = '')
  9991. : ''
  9992. "
  9993. >取 消</el-button
  9994. >
  9995. <el-button
  9996. type="primary"
  9997. v-if="courseDetail.userid == userid"
  9998. @click="scoreWork(commentDetail.wid)"
  9999. >确 定
  10000. </el-button>
  10001. </span>
  10002. </el-dialog>
  10003. <el-dialog
  10004. title="排序"
  10005. :visible.sync="dialogVisibleSentence"
  10006. :append-to-body="true"
  10007. width="1000px"
  10008. :before-close="handleClose"
  10009. class="dialog_diy dialog_diy3"
  10010. >
  10011. <div>
  10012. <div class="sentenBox">
  10013. <div
  10014. v-for="(st, stIndex) in sentenceList"
  10015. :key="stIndex"
  10016. style="padding-bottom: 20px"
  10017. >
  10018. <div
  10019. style="padding: 15px 0 10px 20px"
  10020. class="sentenceTitle"
  10021. :index="stIndex + 1"
  10022. >
  10023. 题目{{ stIndex + 1 }}:请选择正确顺序
  10024. </div>
  10025. <div class="cardList" v-if="st.chooseSenList">
  10026. <div class="cardBox">
  10027. <div
  10028. v-for="(r, rIndex) in st.chooseSenList"
  10029. :key="rIndex"
  10030. @click="returnCard(r, stIndex, rIndex)"
  10031. >
  10032. <el-tooltip
  10033. class="item"
  10034. effect="light"
  10035. :content="r"
  10036. placement="top"
  10037. v-if="r != '' && r != undefined"
  10038. >
  10039. <div
  10040. :class="{
  10041. isCard: r,
  10042. isChooseCard: r == '' || r == undefined,
  10043. }"
  10044. >
  10045. <div>{{ r }}</div>
  10046. </div>
  10047. </el-tooltip>
  10048. <div
  10049. :class="{
  10050. isCard: r,
  10051. isChooseCard: r == '' || r == undefined,
  10052. }"
  10053. v-else
  10054. >
  10055. <div>{{ r }}</div>
  10056. </div>
  10057. </div>
  10058. </div>
  10059. </div>
  10060. <div class="cardList" v-if="st.addChangeSen">
  10061. <div class="cardBox">
  10062. <div
  10063. v-for="(s, sIndex) in st.addChangeSen"
  10064. :key="sIndex"
  10065. @click="setRightAnswer(s, stIndex, sIndex)"
  10066. >
  10067. <el-tooltip
  10068. class="item"
  10069. effect="light"
  10070. :content="s"
  10071. placement="top"
  10072. v-if="s != '' && s != undefined"
  10073. >
  10074. <div
  10075. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10076. >
  10077. <div>{{ s }}</div>
  10078. </div>
  10079. </el-tooltip>
  10080. <div
  10081. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10082. v-else
  10083. >
  10084. <div>{{ s }}</div>
  10085. </div>
  10086. </div>
  10087. </div>
  10088. </div>
  10089. </div>
  10090. </div>
  10091. </div>
  10092. <span slot="footer" class="dialog-footer">
  10093. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10094. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10095. </span>
  10096. </el-dialog>
  10097. <el-dialog
  10098. title="排序"
  10099. :visible.sync="dialogVisibleSentenceTeacher"
  10100. :append-to-body="true"
  10101. width="1000px"
  10102. :before-close="handleClose"
  10103. class="dialog_diy dialog_diy3"
  10104. >
  10105. <div>
  10106. <div class="w_name">
  10107. 学生姓名:<span>{{ sStudent.student }}</span>
  10108. </div>
  10109. <div class="sentenBox">
  10110. <div
  10111. v-for="(st, stIndex) in sentenceList"
  10112. :key="stIndex"
  10113. style="padding-bottom: 20px"
  10114. >
  10115. <div
  10116. style="padding: 15px 0 10px 20px"
  10117. class="sentenceTitle"
  10118. :index="stIndex + 1"
  10119. >
  10120. 题目{{ stIndex + 1 }}:请选择正确顺序
  10121. </div>
  10122. <div class="cardList" v-if="st.chooseSenList">
  10123. <div class="cardBox">
  10124. <div
  10125. v-for="(r, rIndex) in st.chooseSenList"
  10126. :key="rIndex"
  10127. @click="returnCard(r, stIndex, rIndex)"
  10128. >
  10129. <el-tooltip
  10130. class="item"
  10131. effect="light"
  10132. :content="r"
  10133. placement="top"
  10134. v-if="r != '' && r != undefined"
  10135. >
  10136. <div
  10137. :class="{
  10138. isCard: r,
  10139. isChooseCard: r == '' || r == undefined,
  10140. }"
  10141. >
  10142. <div>{{ r }}</div>
  10143. </div>
  10144. </el-tooltip>
  10145. <div
  10146. :class="{
  10147. isCard: r,
  10148. isChooseCard: r == '' || r == undefined,
  10149. }"
  10150. v-else
  10151. >
  10152. <div>{{ r }}</div>
  10153. </div>
  10154. </div>
  10155. </div>
  10156. </div>
  10157. <div class="cardList" v-if="st.addChangeSen">
  10158. <div class="cardBox">
  10159. <div
  10160. v-for="(s, sIndex) in st.addChangeSen"
  10161. :key="sIndex"
  10162. @click="setRightAnswer(s, stIndex, sIndex)"
  10163. >
  10164. <el-tooltip
  10165. class="item"
  10166. effect="light"
  10167. :content="s"
  10168. placement="top"
  10169. v-if="s != '' && s != undefined"
  10170. >
  10171. <div
  10172. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10173. >
  10174. <div>{{ s }}</div>
  10175. </div>
  10176. </el-tooltip>
  10177. <div
  10178. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10179. v-else
  10180. >
  10181. <div>{{ s }}</div>
  10182. </div>
  10183. </div>
  10184. </div>
  10185. </div>
  10186. </div>
  10187. </div>
  10188. </div>
  10189. <span slot="footer" class="dialog-footer">
  10190. <el-button @click="dialogVisibleSentenceTeacher = false"
  10191. >取 消</el-button
  10192. >
  10193. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10194. </span>
  10195. </el-dialog>
  10196. <el-dialog
  10197. title="排序"
  10198. :visible.sync="dialogVisibleSentence1"
  10199. :append-to-body="true"
  10200. width="1000px"
  10201. :before-close="handleClose"
  10202. class="dialog_diy dialog_diy3"
  10203. >
  10204. <div>
  10205. <div class="sentenBox">
  10206. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10207. {{ sentenceList1.stuName }}的作业
  10208. </div>
  10209. <div
  10210. v-for="(st, stIndex) in sentenceList1"
  10211. :key="stIndex"
  10212. style="padding-bottom: 20px"
  10213. >
  10214. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10215. 第{{ stIndex + 1 }}题
  10216. </div>
  10217. <div class="isWrong">
  10218. <div class="cardList1" v-if="st.chooseSenList">
  10219. <div class="cardBox">
  10220. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10221. <el-tooltip
  10222. class="item"
  10223. effect="light"
  10224. :content="s"
  10225. placement="top"
  10226. >
  10227. <div class="isCard">
  10228. <div>{{ s }}</div>
  10229. </div>
  10230. </el-tooltip>
  10231. </div>
  10232. </div>
  10233. <div class="cardAnswerBox">
  10234. 组成句子:{{ st.chooseSenList.join(" ") }}
  10235. </div>
  10236. </div>
  10237. <div v-if="tType == 2" class="isTj">
  10238. <div class="isTjImg">
  10239. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10240. </div>
  10241. <div>已提交</div>
  10242. </div>
  10243. <div
  10244. class="answerRight isTj"
  10245. v-if="
  10246. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10247. (tType == 1 || tType == 4)
  10248. "
  10249. >
  10250. <div class="isTjImg">
  10251. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10252. </div>
  10253. <div>回答正确</div>
  10254. </div>
  10255. <div
  10256. class="answerRight isTj"
  10257. v-if="
  10258. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10259. (tType == 1 || tType == 4)
  10260. "
  10261. >
  10262. <div class="isTjImg">
  10263. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10264. </div>
  10265. <div>回答错误</div>
  10266. </div>
  10267. </div>
  10268. <div
  10269. v-if="
  10270. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10271. (tType == 1 || tType == 4)
  10272. "
  10273. >
  10274. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10275. <div
  10276. class="cardList"
  10277. v-if="st.rightAnswer"
  10278. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10279. >
  10280. <div class="cardBox">
  10281. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10282. <el-tooltip
  10283. class="item"
  10284. effect="light"
  10285. :content="r"
  10286. placement="top"
  10287. >
  10288. <div class="isCard1">
  10289. <div>{{ r }}</div>
  10290. </div>
  10291. </el-tooltip>
  10292. </div>
  10293. </div>
  10294. <div class="cardAnswerBox">
  10295. 组成句子:{{ st.rightAnswer.join(" ") }}
  10296. </div>
  10297. </div>
  10298. </div>
  10299. </div>
  10300. </div>
  10301. </div>
  10302. <span slot="footer" class="dialog-footer">
  10303. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10304. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10305. >确 定</el-button
  10306. >
  10307. </span>
  10308. </el-dialog>
  10309. <el-dialog
  10310. title="教师提交作业"
  10311. :visible.sync="dialogVisibleWorks"
  10312. :append-to-body="true"
  10313. width="500px"
  10314. :before-close="handleClose"
  10315. class="dialog_change"
  10316. >
  10317. <div class="marginT">
  10318. <div class="w_name">
  10319. 学生姓名:<span>{{ sStudent.student }}</span>
  10320. </div>
  10321. <div>上传文件</div>
  10322. <div
  10323. class="chapter_add"
  10324. @click="addImg($event)"
  10325. v-if="studyJuri[0].cover.length == 0"
  10326. >
  10327. <div class="up_photo">
  10328. <img src="../../assets/uploadImg2.png" alt />
  10329. </div>
  10330. <!-- <input
  10331. type="file"
  10332. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10333. style="display: none"
  10334. @change="beforeUpload1($event, 1)"
  10335. /> -->
  10336. <input
  10337. type="file"
  10338. accept="*"
  10339. style="display: none"
  10340. @change="beforeUpload1($event, 1)"
  10341. />
  10342. </div>
  10343. <!-- capture="camera" -->
  10344. <div
  10345. class="chapter_add"
  10346. style="
  10347. display: flex;
  10348. width: 100%;
  10349. flex-direction: row;
  10350. flex-wrap: wrap;
  10351. justify-content: flex-start;
  10352. padding: 15px 0;
  10353. "
  10354. v-if="studyJuri[0].cover.length > 0"
  10355. >
  10356. <div class="upCover">
  10357. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10358. <img :src="word" alt v-else-if="fileType == 1" />
  10359. <img :src="video" alt v-else-if="fileType == 2" />
  10360. <img :src="word2" alt v-else-if="fileType == 3" />
  10361. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10362. <div class="deleteWord" @click="clean(1)">
  10363. <img src="../../assets/icon/deleteWorks.png" alt />
  10364. </div>
  10365. </div>
  10366. </div>
  10367. </div>
  10368. <div
  10369. class="upload_send"
  10370. @click="addCourseWorksTeacher(taskCount)"
  10371. v-if="!proVisible"
  10372. >
  10373. 提交
  10374. </div>
  10375. </el-dialog>
  10376. <ImgDraw
  10377. :drawShow="drawShow"
  10378. @closeDraw="closeDraw"
  10379. @addImgDraw="addImgDraw"
  10380. :bg="bg"
  10381. ></ImgDraw>
  10382. <el-dialog
  10383. title="表格"
  10384. :visible.sync="dialogVisibleTable"
  10385. :append-to-body="true"
  10386. width="95%"
  10387. :before-close="handleClose"
  10388. class="dialog_diy"
  10389. >
  10390. <el-form>
  10391. <div
  10392. style="
  10393. display: flex;
  10394. align-items: center;
  10395. justify-content: space-between;
  10396. "
  10397. >
  10398. <span>表格内容</span>
  10399. <el-button type="primary" size="small" @click="returnTableText"
  10400. >还原模板</el-button
  10401. >
  10402. </div>
  10403. <Table
  10404. v-model="tableJson.text"
  10405. @change="change"
  10406. v-if="dialogVisibleTable"
  10407. ></Table>
  10408. </el-form>
  10409. <span slot="footer" class="dialog-footer">
  10410. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10411. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10412. </span>
  10413. </el-dialog>
  10414. <el-dialog
  10415. title="表格"
  10416. :visible.sync="dialogVisibleTableTeacher"
  10417. :append-to-body="true"
  10418. width="95%"
  10419. :before-close="handleClose"
  10420. class="dialog_diy"
  10421. >
  10422. <el-form>
  10423. <div class="w_name">
  10424. 学生姓名:<span>{{ sStudent.student }}</span>
  10425. </div>
  10426. <div>表格内容</div>
  10427. <Table
  10428. v-model="tableJson.text"
  10429. @change="change"
  10430. v-if="dialogVisibleTableTeacher"
  10431. ></Table>
  10432. </el-form>
  10433. <span slot="footer" class="dialog-footer">
  10434. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10435. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10436. </span>
  10437. </el-dialog>
  10438. <el-dialog
  10439. title="文档"
  10440. :visible.sync="dialogVisibleWord"
  10441. :append-to-body="true"
  10442. width="95%"
  10443. :before-close="handleClose"
  10444. class="dialog_diy"
  10445. >
  10446. <el-form>
  10447. <div
  10448. style="
  10449. display: flex;
  10450. align-items: center;
  10451. justify-content: space-between;
  10452. "
  10453. >
  10454. <span>文档内容</span>
  10455. <el-button type="primary" size="small" @click="returnWordText"
  10456. >还原模板</el-button
  10457. >
  10458. </div>
  10459. <editor-bar
  10460. v-model="wordJson.text"
  10461. v-if="dialogVisibleWord"
  10462. ></editor-bar>
  10463. </el-form>
  10464. <span slot="footer" class="dialog-footer">
  10465. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10466. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10467. </span>
  10468. </el-dialog>
  10469. <el-dialog
  10470. title="文档"
  10471. :visible.sync="dialogVisibleWordTeacher"
  10472. :append-to-body="true"
  10473. width="95%"
  10474. :before-close="handleClose"
  10475. class="dialog_diy"
  10476. >
  10477. <el-form>
  10478. <div class="w_name">
  10479. 学生姓名:<span>{{ sStudent.student }}</span>
  10480. </div>
  10481. <div>文档内容</div>
  10482. <editor-bar
  10483. v-model="wordJson.text"
  10484. v-if="dialogVisibleWordTeacher"
  10485. ></editor-bar>
  10486. </el-form>
  10487. <span slot="footer" class="dialog-footer">
  10488. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10489. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10490. </span>
  10491. </el-dialog>
  10492. <el-dialog
  10493. title="表格"
  10494. :visible.sync="dialogVisibleTable2"
  10495. :append-to-body="true"
  10496. width="95%"
  10497. :before-close="handleClose"
  10498. class="dialog_diy"
  10499. >
  10500. <el-form>
  10501. <div class="cont" v-html="tableJson.text"></div>
  10502. </el-form>
  10503. <span slot="footer" class="dialog-footer">
  10504. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10505. </span>
  10506. </el-dialog>
  10507. <el-dialog
  10508. title="文档"
  10509. :visible.sync="dialogVisibleTable3"
  10510. :append-to-body="true"
  10511. width="95%"
  10512. :before-close="handleClose"
  10513. class="dialog_diy"
  10514. >
  10515. <el-form>
  10516. <div class="cont" v-html="tableJson.text"></div>
  10517. </el-form>
  10518. <span slot="footer" class="dialog-footer">
  10519. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10520. </span>
  10521. </el-dialog>
  10522. <el-dialog
  10523. title="分组设置"
  10524. :visible.sync="dialogVisibleGroup"
  10525. :append-to-body="true"
  10526. width="95%"
  10527. :before-close="handleClose"
  10528. class="dialog_diy"
  10529. >
  10530. <div v-if="dialogVisibleGroup">
  10531. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10532. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10533. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10534. </div>
  10535. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10536. @click="lockChair">
  10537. 锁定位置
  10538. </div>
  10539. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10540. 解锁位置
  10541. </div> -->
  10542. <div class="group_switch">
  10543. <span>开放选座</span>
  10544. <el-switch
  10545. v-model="islock"
  10546. active-text=""
  10547. class="switchCss"
  10548. @change="lockChair"
  10549. ></el-switch>
  10550. </div>
  10551. <div
  10552. type="primary"
  10553. @click="updateGroup"
  10554. class="returnBtn"
  10555. style="background-color: #225bc7"
  10556. >
  10557. 分组设置
  10558. </div>
  10559. </div>
  10560. <div>
  10561. <div
  10562. class="g_d_box"
  10563. v-if="groupJson.group && groupStudent[toolindex]"
  10564. >
  10565. <div
  10566. class="g_d_group"
  10567. v-for="(g, gindex) in groupJson.group"
  10568. :key="gindex"
  10569. >
  10570. <div class="g_d_group_chair">
  10571. <div v-if="groupJson.number > 1">
  10572. <span
  10573. :class="{
  10574. isChair:
  10575. groupStudent[toolindex][gindex] &&
  10576. groupStudent[toolindex][gindex][0],
  10577. updateChair:
  10578. courseDetail.userid == userid &&
  10579. groupStudent[toolindex][gindex] &&
  10580. groupStudent[toolindex][gindex][0] &&
  10581. groupJson.islock == 2,
  10582. }"
  10583. ><span
  10584. class="updateChairBtn"
  10585. @click="
  10586. updateGroupChair(
  10587. groupStudent[toolindex][gindex] &&
  10588. groupStudent[toolindex][gindex][0]
  10589. )
  10590. "
  10591. >修改</span
  10592. ></span
  10593. ><span>{{
  10594. groupStudent[toolindex][gindex] &&
  10595. groupStudent[toolindex][gindex][0]
  10596. ? groupStudent[toolindex][gindex] &&
  10597. groupStudent[toolindex][gindex][0].name
  10598. : "空位置"
  10599. }}</span>
  10600. </div>
  10601. <div v-if="groupJson.number > 4">
  10602. <span
  10603. :class="{
  10604. isChair:
  10605. groupStudent[toolindex][gindex] &&
  10606. groupStudent[toolindex][gindex][4],
  10607. updateChair:
  10608. courseDetail.userid == userid &&
  10609. groupStudent[toolindex][gindex] &&
  10610. groupStudent[toolindex][gindex][4] &&
  10611. groupJson.islock == 2,
  10612. }"
  10613. ><span
  10614. class="updateChairBtn"
  10615. @click="
  10616. updateGroupChair(
  10617. groupStudent[toolindex][gindex] &&
  10618. groupStudent[toolindex][gindex][4]
  10619. )
  10620. "
  10621. >修改</span
  10622. ></span
  10623. ><span>{{
  10624. groupStudent[toolindex][gindex] &&
  10625. groupStudent[toolindex][gindex][4]
  10626. ? groupStudent[toolindex][gindex] &&
  10627. groupStudent[toolindex][gindex][4].name
  10628. : "空位置"
  10629. }}</span>
  10630. </div>
  10631. <div v-if="groupJson.number > 8">
  10632. <span
  10633. :class="{
  10634. isChair:
  10635. groupStudent[toolindex][gindex] &&
  10636. groupStudent[toolindex][gindex][8],
  10637. updateChair:
  10638. courseDetail.userid == userid &&
  10639. groupStudent[toolindex][gindex] &&
  10640. groupStudent[toolindex][gindex][8] &&
  10641. groupJson.islock == 2,
  10642. }"
  10643. ><span
  10644. class="updateChairBtn"
  10645. @click="
  10646. updateGroupChair(
  10647. groupStudent[toolindex][gindex] &&
  10648. groupStudent[toolindex][gindex][8]
  10649. )
  10650. "
  10651. >修改</span
  10652. ></span
  10653. ><span>{{
  10654. groupStudent[toolindex][gindex] &&
  10655. groupStudent[toolindex][gindex][8]
  10656. ? groupStudent[toolindex][gindex] &&
  10657. groupStudent[toolindex][gindex][8].name
  10658. : "空位置"
  10659. }}</span>
  10660. </div>
  10661. </div>
  10662. <div class="g_d_group_tableBox">
  10663. <div class="g_d_group_chair2">
  10664. <div v-if="groupJson.number > 2">
  10665. <span
  10666. :class="{
  10667. isChair:
  10668. groupStudent[toolindex][gindex] &&
  10669. groupStudent[toolindex][gindex][2],
  10670. updateChair:
  10671. courseDetail.userid == userid &&
  10672. groupStudent[toolindex][gindex] &&
  10673. groupStudent[toolindex][gindex][2] &&
  10674. groupJson.islock == 2,
  10675. }"
  10676. ><span
  10677. class="updateChairBtn"
  10678. @click="
  10679. updateGroupChair(
  10680. groupStudent[toolindex][gindex] &&
  10681. groupStudent[toolindex][gindex][2]
  10682. )
  10683. "
  10684. >修改</span
  10685. ></span
  10686. ><span>{{
  10687. groupStudent[toolindex][gindex] &&
  10688. groupStudent[toolindex][gindex][2]
  10689. ? groupStudent[toolindex][gindex] &&
  10690. groupStudent[toolindex][gindex][2].name
  10691. : "空位置"
  10692. }}</span>
  10693. </div>
  10694. <div v-if="groupJson.number > 6">
  10695. <span
  10696. :class="{
  10697. isChair:
  10698. groupStudent[toolindex][gindex] &&
  10699. groupStudent[toolindex][gindex][6],
  10700. updateChair:
  10701. courseDetail.userid == userid &&
  10702. groupStudent[toolindex][gindex] &&
  10703. groupStudent[toolindex][gindex][6] &&
  10704. groupJson.islock == 2,
  10705. }"
  10706. ><span
  10707. class="updateChairBtn"
  10708. @click="
  10709. updateGroupChair(
  10710. groupStudent[toolindex][gindex] &&
  10711. groupStudent[toolindex][gindex][6]
  10712. )
  10713. "
  10714. >修改</span
  10715. ></span
  10716. ><span>{{
  10717. groupStudent[toolindex][gindex] &&
  10718. groupStudent[toolindex][gindex][6]
  10719. ? groupStudent[toolindex][gindex] &&
  10720. groupStudent[toolindex][gindex][6].name
  10721. : "空位置"
  10722. }}</span>
  10723. </div>
  10724. </div>
  10725. <div class="g_d_group_table">
  10726. <div>
  10727. {{ g.name }}
  10728. </div>
  10729. <div>
  10730. <div
  10731. v-if="
  10732. courseDetail.userid == userid && groupJson.islock == 2
  10733. "
  10734. @click="deleteGroupChair(gindex)"
  10735. >
  10736. 移除组员
  10737. </div>
  10738. <div
  10739. @click="selectGroup(gindex)"
  10740. v-else-if="
  10741. groupStudentUid[toolindex] &&
  10742. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10743. "
  10744. >
  10745. 加入分组
  10746. </div>
  10747. <div
  10748. @click="
  10749. exitGroup(
  10750. groupStudent[toolindex][gindex] &&
  10751. groupStudent[toolindex][gindex][
  10752. groupStudentUid[toolindex][gindex].indexOf(userid)
  10753. ].id
  10754. )
  10755. "
  10756. v-else-if="
  10757. groupStudentUid[toolindex] &&
  10758. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10759. "
  10760. >
  10761. 退出分组
  10762. </div>
  10763. </div>
  10764. </div>
  10765. <div class="g_d_group_chair2">
  10766. <div v-if="groupJson.number > 3">
  10767. <span
  10768. :class="{
  10769. isChair:
  10770. groupStudent[toolindex][gindex] &&
  10771. groupStudent[toolindex][gindex][3],
  10772. updateChair:
  10773. courseDetail.userid == userid &&
  10774. groupStudent[toolindex][gindex] &&
  10775. groupStudent[toolindex][gindex][3] &&
  10776. groupJson.islock == 2,
  10777. }"
  10778. ><span
  10779. class="updateChairBtn"
  10780. @click="
  10781. updateGroupChair(
  10782. groupStudent[toolindex][gindex] &&
  10783. groupStudent[toolindex][gindex][3]
  10784. )
  10785. "
  10786. >修改</span
  10787. ></span
  10788. ><span>{{
  10789. groupStudent[toolindex][gindex] &&
  10790. groupStudent[toolindex][gindex][3]
  10791. ? groupStudent[toolindex][gindex] &&
  10792. groupStudent[toolindex][gindex][3].name
  10793. : "空位置"
  10794. }}</span>
  10795. </div>
  10796. <div v-if="groupJson.number > 7">
  10797. <span
  10798. :class="{
  10799. isChair:
  10800. groupStudent[toolindex][gindex] &&
  10801. groupStudent[toolindex][gindex][7],
  10802. updateChair:
  10803. courseDetail.userid == userid &&
  10804. groupStudent[toolindex][gindex] &&
  10805. groupStudent[toolindex][gindex][7] &&
  10806. groupJson.islock == 2,
  10807. }"
  10808. ><span
  10809. class="updateChairBtn"
  10810. @click="
  10811. updateGroupChair(
  10812. groupStudent[toolindex][gindex] &&
  10813. groupStudent[toolindex][gindex][7]
  10814. )
  10815. "
  10816. >修改</span
  10817. ></span
  10818. ><span>{{
  10819. groupStudent[toolindex][gindex] &&
  10820. groupStudent[toolindex][gindex][7]
  10821. ? groupStudent[toolindex][gindex] &&
  10822. groupStudent[toolindex][gindex][7].name
  10823. : "空位置"
  10824. }}</span>
  10825. </div>
  10826. </div>
  10827. </div>
  10828. <div class="g_d_group_chair">
  10829. <div v-if="groupJson.number > 1">
  10830. <span
  10831. :class="{
  10832. isChair:
  10833. groupStudent[toolindex][gindex] &&
  10834. groupStudent[toolindex][gindex][1],
  10835. updateChair:
  10836. courseDetail.userid == userid &&
  10837. groupStudent[toolindex][gindex] &&
  10838. groupStudent[toolindex][gindex][1] &&
  10839. groupJson.islock == 2,
  10840. }"
  10841. ><span
  10842. class="updateChairBtn"
  10843. @click="
  10844. updateGroupChair(
  10845. groupStudent[toolindex][gindex] &&
  10846. groupStudent[toolindex][gindex][1]
  10847. )
  10848. "
  10849. >修改</span
  10850. ></span
  10851. ><span>{{
  10852. groupStudent[toolindex][gindex] &&
  10853. groupStudent[toolindex][gindex][1]
  10854. ? groupStudent[toolindex][gindex] &&
  10855. groupStudent[toolindex][gindex][1].name
  10856. : "空位置"
  10857. }}</span>
  10858. </div>
  10859. <div v-if="groupJson.number > 5">
  10860. <span
  10861. :class="{
  10862. isChair:
  10863. groupStudent[toolindex][gindex] &&
  10864. groupStudent[toolindex][gindex][5],
  10865. updateChair:
  10866. courseDetail.userid == userid &&
  10867. groupStudent[toolindex][gindex] &&
  10868. groupStudent[toolindex][gindex][5] &&
  10869. groupJson.islock == 2,
  10870. }"
  10871. ><span
  10872. class="updateChairBtn"
  10873. @click="
  10874. updateGroupChair(
  10875. groupStudent[toolindex][gindex] &&
  10876. groupStudent[toolindex][gindex][5]
  10877. )
  10878. "
  10879. >修改</span
  10880. ></span
  10881. ><span>{{
  10882. groupStudent[toolindex][gindex] &&
  10883. groupStudent[toolindex][gindex][5]
  10884. ? groupStudent[toolindex][gindex] &&
  10885. groupStudent[toolindex][gindex][5].name
  10886. : "空位置"
  10887. }}</span>
  10888. </div>
  10889. <div v-if="groupJson.number > 9">
  10890. <span
  10891. :class="{
  10892. isChair:
  10893. groupStudent[toolindex][gindex] &&
  10894. groupStudent[toolindex][gindex][9],
  10895. updateChair:
  10896. courseDetail.userid == userid &&
  10897. groupStudent[toolindex][gindex] &&
  10898. groupStudent[toolindex][gindex][9] &&
  10899. groupJson.islock == 2,
  10900. }"
  10901. ><span
  10902. class="updateChairBtn"
  10903. @click="
  10904. updateGroupChair(
  10905. groupStudent[toolindex][gindex] &&
  10906. groupStudent[toolindex][gindex][9]
  10907. )
  10908. "
  10909. >修改</span
  10910. ></span
  10911. ><span>{{
  10912. groupStudent[toolindex][gindex] &&
  10913. groupStudent[toolindex][gindex][9]
  10914. ? groupStudent[toolindex][gindex] &&
  10915. groupStudent[toolindex][gindex][9].name
  10916. : "空位置"
  10917. }}</span>
  10918. </div>
  10919. </div>
  10920. </div>
  10921. </div>
  10922. </div>
  10923. </div>
  10924. <span slot="footer" class="dialog-footer">
  10925. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10926. </span>
  10927. </el-dialog>
  10928. <el-dialog
  10929. title="分组设置"
  10930. :visible.sync="dialogVisibleGroup2"
  10931. :append-to-body="true"
  10932. width="650px"
  10933. :before-close="handleClose"
  10934. class="dialog_diy"
  10935. >
  10936. <div class="groupBox">
  10937. <div v-if="groupJson2.group" class="groupContent">
  10938. <div class="groupTitle">请设置小组数量及名称</div>
  10939. <div
  10940. v-for="(item, index) in groupJson2.group"
  10941. :key="index"
  10942. class="groupName"
  10943. >
  10944. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10945. <el-input
  10946. v-model="item.name"
  10947. placeholder="请输入名称..."
  10948. style="width: 250px"
  10949. ></el-input>
  10950. <!-- <div class="groupBtn">
  10951. <el-button type="primary" size="small" @click="addGroup(index)">
  10952. 添加</el-button>
  10953. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10954. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10955. </div> -->
  10956. </div>
  10957. </div>
  10958. <div class="groupContent">
  10959. <div class="groupTitle">请设置每组人数</div>
  10960. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10961. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10962. <el-input
  10963. v-model="groupJson.number"
  10964. style="width: 150px"
  10965. placeholder="请输入2-10的数字"
  10966. @change="numberPan"
  10967. ></el-input>
  10968. </div>
  10969. </div>
  10970. <span slot="footer" class="dialog-footer">
  10971. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10972. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10973. </span>
  10974. </el-dialog>
  10975. <el-dialog
  10976. title="作业提交"
  10977. :visible.sync="dialogVisibleGroupWork"
  10978. :append-to-body="true"
  10979. width="500px"
  10980. :before-close="handleClose"
  10981. class="dialog_change"
  10982. >
  10983. <div class="marginT">
  10984. <div>上传文件</div>
  10985. <div
  10986. class="chapter_add"
  10987. @click="addImg($event)"
  10988. v-if="studyJuri[0].cover.length == 0"
  10989. >
  10990. <div class="up_photo">
  10991. <img src="../../assets/icon/uploadImg.png" alt />
  10992. </div>
  10993. <!-- <input
  10994. type="file"
  10995. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10996. style="display: none"
  10997. @change="beforeUpload1($event, 1)"
  10998. /> -->
  10999. <input
  11000. type="file"
  11001. accept="*"
  11002. style="display: none"
  11003. @change="beforeUpload1($event, 1)"
  11004. />
  11005. </div>
  11006. <!-- capture="camera" -->
  11007. <div
  11008. class="chapter_add"
  11009. style="
  11010. display: flex;
  11011. width: 100%;
  11012. flex-direction: row;
  11013. flex-wrap: wrap;
  11014. justify-content: flex-start;
  11015. padding: 15px 0;
  11016. "
  11017. v-if="studyJuri[0].cover.length > 0"
  11018. >
  11019. <div class="upCover">
  11020. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11021. <img :src="word" alt v-else-if="fileType == 1" />
  11022. <img :src="video" alt v-else-if="fileType == 2" />
  11023. <img :src="word2" alt v-else-if="fileType == 3" />
  11024. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11025. <div class="deleteWord" @click="clean(1)">
  11026. <img src="../../assets/icon/deleteWorks.png" alt />
  11027. </div>
  11028. </div>
  11029. </div>
  11030. </div>
  11031. <div
  11032. class="upload_send"
  11033. @click="addCourseWorks2(taskCount)"
  11034. v-if="!proVisible"
  11035. >
  11036. 提交
  11037. </div>
  11038. </el-dialog>
  11039. <el-dialog
  11040. title="修改分组"
  11041. :visible.sync="dialogVisibleUpdateGroup"
  11042. :append-to-body="true"
  11043. width="350px"
  11044. :before-close="handleClose"
  11045. class="dialog_diy"
  11046. >
  11047. <div>
  11048. <h2>
  11049. {{ this.updateGroupUser.name }}
  11050. </h2>
  11051. <div style="color: rgb(171 171 171); margin-top: 10px">
  11052. 请选择要进入的分组
  11053. </div>
  11054. <el-radio-group v-model="checkChair">
  11055. <el-radio
  11056. style="display: block; margin-top: 20px"
  11057. v-for="(item, index) in updateGroupArray"
  11058. :label="item.label"
  11059. :key="index"
  11060. >{{ item.name }}</el-radio
  11061. >
  11062. </el-radio-group>
  11063. </div>
  11064. <span slot="footer" class="dialog-footer">
  11065. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11066. <el-button type="primary" @click="updateChair">确定</el-button>
  11067. </span>
  11068. </el-dialog>
  11069. <el-dialog
  11070. title="移除组员"
  11071. :visible.sync="dialogVisibleDeleteGroup"
  11072. :append-to-body="true"
  11073. width="350px"
  11074. :before-close="handleClose"
  11075. class="dialog_diy"
  11076. >
  11077. <div>
  11078. <h2>
  11079. {{ this.deleteGroupArray.name }}
  11080. </h2>
  11081. <div style="color: rgb(171 171 171); margin-top: 10px">
  11082. 请选择要删除的组员
  11083. </div>
  11084. <el-checkbox-group v-model="checkDeleteGroup">
  11085. <el-checkbox
  11086. style="display: flex; margin-top: 20px"
  11087. v-for="(item, index) in deleteGroupUser"
  11088. :label="item.userid"
  11089. :key="index"
  11090. >{{ item.name }}</el-checkbox
  11091. >
  11092. </el-checkbox-group>
  11093. </div>
  11094. <span slot="footer" class="dialog-footer">
  11095. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11096. <el-button type="primary" @click="deleteChair">确定</el-button>
  11097. </span>
  11098. </el-dialog>
  11099. <el-dialog
  11100. title="批量上传"
  11101. :visible.sync="dialogVisiblePl"
  11102. :append-to-body="true"
  11103. width="700px"
  11104. :before-close="handleClose"
  11105. class="dialog_change"
  11106. >
  11107. <div class="marginT">
  11108. <div class="plworkBox">
  11109. <div
  11110. class="chapter_add"
  11111. style="
  11112. display: flex;
  11113. width: 150px;
  11114. flex-direction: row;
  11115. flex-wrap: wrap;
  11116. justify-content: flex-start;
  11117. margin: 0 10px 10px 0;
  11118. "
  11119. v-for="(item, index) in plworkFile"
  11120. :key="index"
  11121. >
  11122. <div class="upCover2">
  11123. <img
  11124. :src="item.url"
  11125. alt
  11126. v-if="item.fileType == 1"
  11127. @click="previewImg(item.url)"
  11128. />
  11129. <img :src="word" alt v-else-if="item.fileType == 4" />
  11130. <img :src="video" alt v-else />
  11131. <!-- <span class="picName">{{ item.name }}</span> -->
  11132. <!-- <el-input
  11133. v-model="item.username"
  11134. placeholder="请输入学生名字"
  11135. style="margin-top: 10px"
  11136. ></el-input> -->
  11137. <div
  11138. class="pl_select_box"
  11139. @click="
  11140. getUpdateMore(true, checkUpload(), item.username, index)
  11141. "
  11142. >
  11143. {{ getSName(item.username) }}
  11144. </div>
  11145. <!-- <el-select
  11146. style="margin-top: 10px"
  11147. v-model="item.username"
  11148. filterable
  11149. allow-create
  11150. placeholder="请选择学生"
  11151. >
  11152. <el-option
  11153. v-for="item1 in checkUpload()"
  11154. :key="item1.userid"
  11155. :label="item1.name ? item1.name : item1.username"
  11156. :value="item1.userid"
  11157. >
  11158. </el-option>
  11159. </el-select> -->
  11160. <div class="deleteWord" @click="clean2(index)">
  11161. <img src="../../assets/icon/deleteWorks.png" alt />
  11162. </div>
  11163. </div>
  11164. </div>
  11165. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11166. <div class="up_photo2">
  11167. <img src="../../assets/icon/plwork.png" alt />
  11168. <span>点击上传文件</span>
  11169. </div>
  11170. <input
  11171. type="file"
  11172. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11173. multiple="multiple"
  11174. style="display: none"
  11175. @change="beforeUpload3($event, 6)"
  11176. />
  11177. </div>
  11178. </div>
  11179. </div>
  11180. <!-- capture="camera" -->
  11181. <div
  11182. class="upload_send"
  11183. @click="addCourseWorksPl(taskCount)"
  11184. v-if="!proVisible2"
  11185. >
  11186. 提交
  11187. </div>
  11188. </el-dialog>
  11189. <el-dialog
  11190. title="修改名称"
  11191. :visible.sync="dialogVisibleSname"
  11192. width="500px"
  11193. :before-close="handleClose"
  11194. class="dialog_diy"
  11195. center
  11196. >
  11197. <div
  11198. style="
  11199. text-align: center;
  11200. display: flex;
  11201. align-items: center;
  11202. justify-content: center;
  11203. "
  11204. >
  11205. <span class="tian1">名称</span>
  11206. <div
  11207. class="pl_select_box"
  11208. style="margin-left: 10px; width: 200px"
  11209. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11210. >
  11211. {{ getSName(worksSName) }}
  11212. </div>
  11213. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11214. placeholder="请选择学生">
  11215. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11216. :value="item.userid">
  11217. </el-option>
  11218. </el-select> -->
  11219. <!-- <el-input
  11220. v-model="worksSName"
  11221. style="width: 250px; margin: 15px 0px"
  11222. ></el-input> -->
  11223. </div>
  11224. <span slot="footer" class="dialog-footer">
  11225. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11226. <el-button type="primary" @click="updateName">确 定</el-button>
  11227. </span>
  11228. </el-dialog>
  11229. <el-dialog
  11230. title="英语写作"
  11231. :visible.sync="engDialogVisible"
  11232. :append-to-body="true"
  11233. width="800px"
  11234. :before-close="handleClose"
  11235. class="dialog_diy"
  11236. >
  11237. <onlineWrite
  11238. v-if="engDialogVisible"
  11239. @setEnglish="setEnglishList"
  11240. :englishList="englishList"
  11241. :myAnswerList1="myAnswerList1"
  11242. ></onlineWrite>
  11243. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11244. <el-button @click="engDialogVisible = false">取 消</el-button>
  11245. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11246. </span>
  11247. </el-dialog>
  11248. <el-dialog
  11249. title="英语写作"
  11250. :visible.sync="engUpdateDialogVisible"
  11251. :append-to-body="true"
  11252. width="800px"
  11253. :before-close="handleClose"
  11254. class="dialog_diy fullStyle"
  11255. >
  11256. <div class="engUpBox">
  11257. <div class="engUpTop">
  11258. <div class="engTitle">
  11259. <div>作文题目:</div>
  11260. <div>{{ englishList1.engTitle }}</div>
  11261. </div>
  11262. <div class="engText">
  11263. <div>作文题目:</div>
  11264. <div class="cont" v-html="englishList1.englishText"></div>
  11265. </div>
  11266. </div>
  11267. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11268. <div class="oldBox">
  11269. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11270. <div class="oldText">
  11271. <div class="detailBox">
  11272. <div class="oldDetail">
  11273. <div>标题:</div>
  11274. <div>{{ oldEnglishJson.engTitle }} </div>
  11275. </div>
  11276. <div class="oldDetail">
  11277. <div>正文:</div>
  11278. <div v-html="oldEnglishJson.engText"></div>
  11279. </div>
  11280. </div>
  11281. </div>
  11282. </div>
  11283. <div class="oldBox" v-if="userMes[0].type == 2">
  11284. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11285. <div class="oldText">
  11286. <div class="detailBox">
  11287. <div class="oldDetail">
  11288. <div>标题:</div>
  11289. <el-input v-model="newEnglishList.engTitle" />
  11290. </div>
  11291. <div class="oldDetail">
  11292. <div>正文:</div>
  11293. <el-input type="textarea"
  11294. :rows="10"
  11295. resize="none" v-model="newEnglishList.engText" />
  11296. </div>
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11301. <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">
  11302. <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>
  11303. <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>
  11304. </div>
  11305. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11306. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11307. <div class="detailBox">
  11308. <div class="oldDetail">
  11309. <div>标题:</div>
  11310. <el-input v-model="oldEnglishJson1.engTitle" />
  11311. </div>
  11312. <div class="oldDetail">
  11313. <div>正文:</div>
  11314. <el-input type="textarea"
  11315. :rows="10"
  11316. resize="none" v-model="oldEnglishJson1.engText" />
  11317. </div>
  11318. </div>
  11319. </div>
  11320. <div class="oldText" v-else-if="newEngIndex == -1">
  11321. <div class="detailBox">
  11322. <div class="oldDetail">
  11323. <div>标题:</div>
  11324. <el-input v-model="newEnglishList.engTitle" />
  11325. </div>
  11326. <div class="oldDetail">
  11327. <div>正文:</div>
  11328. <el-input type="textarea"
  11329. :rows="10"
  11330. resize="none" v-model="newEnglishList.engText" />
  11331. </div>
  11332. </div>
  11333. </div>
  11334. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11335. <div class="detailBox">
  11336. <div class="oldDetail">
  11337. <div>标题:</div>
  11338. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11339. <el-input v-else v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11340. </div>
  11341. <div class="oldDetail">
  11342. <div>正文:</div>
  11343. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11344. <el-input v-else type="textarea"
  11345. :rows="10"
  11346. resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11347. </div>
  11348. </div>
  11349. </div>
  11350. </div>
  11351. </div>
  11352. </div>
  11353. <span slot="footer" class="dialog-footer">
  11354. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11355. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11356. </span>
  11357. </el-dialog>
  11358. <interVideo
  11359. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11360. :videoJson="videoJson"
  11361. :userid="userid"
  11362. :id="id"
  11363. :courseType="courseType"
  11364. :taskCount="taskCount"
  11365. :toolindex="toolindex"
  11366. ></interVideo>
  11367. <UpdateMore
  11368. :dialogVisibleMember.sync="dialogVisibleMember"
  11369. :cList="uploadStudentJuri"
  11370. :userid="userid"
  11371. :searchTN="worksSName2"
  11372. @setPlname="setPlname"
  11373. ></UpdateMore>
  11374. <wordCloud
  11375. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11376. :data="wordCloudData"
  11377. ></wordCloud>
  11378. <el-dialog
  11379. title="挑人"
  11380. :visible.sync="dialogVisiblePickPeople"
  11381. width="650px"
  11382. :before-close="handleClose"
  11383. class="dialog_diy"
  11384. center
  11385. >
  11386. <div class="pick_box">
  11387. <div
  11388. class="noWorksName"
  11389. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11390. v-for="(item, index) in uploadStudentJuri"
  11391. :key="index"
  11392. @click="pickStudent(item)"
  11393. >
  11394. {{ item.name }}
  11395. </div>
  11396. </div>
  11397. </el-dialog>
  11398. </div>
  11399. </template>
  11400. <script>
  11401. import "../../common/aws-sdk-2.235.1.min.js";
  11402. // import pdf from "../components/pdf3";
  11403. import pdf from "../components/vpdf";
  11404. import AskStatic from "../components/askStatic";
  11405. import AskStatic2 from "../components/askStatic2";
  11406. import AnswerData2 from "../components/answerData2";
  11407. import AnswerData from "../components/answerData";
  11408. import EditorBar from "../tools/wangEnduit.vue";
  11409. import Table from "../tools/table.vue";
  11410. import Time from "../tools/time.vue";
  11411. import Mind from "../tools/jsmind.vue";
  11412. import Sunburst from "../tools/sunburst";
  11413. import SeeBoard from "../tools/seeBoard";
  11414. import * as imageConversion from "image-conversion";
  11415. import Audio from "../components/audio.vue";
  11416. import ImgDraw from "../tools/imgDraw/imgDraw";
  11417. import { Empty } from "element-ui";
  11418. import RecordRTC from "recordrtc";
  11419. import interVideo from "../interVideo/index.vue";
  11420. import UpdateMore from "../updateMore/updateMore.vue";
  11421. import wordCloud from "../wordCloud/index.vue";
  11422. import axios from "axios";
  11423. import JSZip from "jszip";
  11424. import FileSaver from "file-saver";
  11425. import onlineWrite from "./commpont/onlineWrite";
  11426. const getFile = (url) => {
  11427. return new Promise((resolve, reject) => {
  11428. axios({
  11429. method: "get",
  11430. url,
  11431. responseType: "blob",
  11432. })
  11433. .then((data) => {
  11434. resolve({ data: data.data });
  11435. })
  11436. .catch((error) => {
  11437. resolve({ data: 1 });
  11438. // reject(error.toString());
  11439. });
  11440. });
  11441. };
  11442. export default {
  11443. components: {
  11444. EditorBar,
  11445. Time,
  11446. pdf,
  11447. AskStatic,
  11448. AskStatic2,
  11449. Mind,
  11450. Sunburst,
  11451. SeeBoard,
  11452. AnswerData2,
  11453. AnswerData,
  11454. Audio,
  11455. ImgDraw,
  11456. Table,
  11457. interVideo,
  11458. UpdateMore,
  11459. wordCloud,
  11460. onlineWrite,
  11461. },
  11462. data() {
  11463. return {
  11464. bg: null,
  11465. drawShow: false,
  11466. dialogVisible: false,
  11467. dialogVisiblePl: false,
  11468. commentDialogVisible: false,
  11469. dialogVisibleMember: false,
  11470. dialogVisibleWordCloud: false,
  11471. videoVisible: false,
  11472. isStar: false,
  11473. studentEvalDialogVisible: false,
  11474. studentEvalDialogVisibleTeacher: false,
  11475. dialogVisibleSelect: false,
  11476. dialogVisibleSelectTeacher: false,
  11477. dialogVisibleScore: false,
  11478. dialogVisibleSentence: false,
  11479. dialogVisibleSentenceTeacher: false,
  11480. dialogVisibleSentence1: false,
  11481. dialogVisibleWorks: false,
  11482. dialogVisibleTable: false,
  11483. dialogVisibleTableTeacher: false,
  11484. dialogVisibleWord: false,
  11485. dialogVisibleWordTeacher: false,
  11486. dialogVisibleTable2: false,
  11487. dialogVisibleTable3: false,
  11488. dialogVisibleGroupWork: false,
  11489. dialogVisibleUpdateGroup: false,
  11490. dialogVisibleDeleteGroup: false,
  11491. dialogVisibleSname: false,
  11492. dialogVisibleVideo: false,
  11493. dialogVisiblePickPeople: false,
  11494. worksSName: "",
  11495. classJuri: [],
  11496. uploadStudentJuri: [],
  11497. uploadCid: "",
  11498. snameWid: "",
  11499. sStudent: {},
  11500. sTool: "",
  11501. bzText: "",
  11502. commentDetail: [],
  11503. selectAnswer: [],
  11504. videoDetail: {},
  11505. selectJson: {},
  11506. eScore: { eBzText: "", eStar: [] },
  11507. id: this.$route.query.courseId,
  11508. userid: this.$route.query.userid,
  11509. classId: this.$route.query.cid,
  11510. // courseTypeLine: this.$route.query.type,
  11511. oid: this.$route.query.oid,
  11512. org: this.$route.query.org,
  11513. tType: this.$route.query.tType,
  11514. courseType: this.$route.query.type,
  11515. screenType: this.$route.query.screenType,
  11516. tcid2: this.$route.query.tcid,
  11517. tcid: "",
  11518. pptImgUrl: "",
  11519. pptImgUrl1: "",
  11520. commentText: "",
  11521. full: false,
  11522. sIsOpen: false,
  11523. IsLookOpen: false,
  11524. IsFollow: false,
  11525. pzDialog: false,
  11526. contentDialog: false,
  11527. mlDialog: false,
  11528. type: 1,
  11529. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11530. sentenceList1: [],
  11531. tableJson: [],
  11532. tableJsonO: [],
  11533. wordJson: [],
  11534. wordJsonO: [],
  11535. vedio: [],
  11536. text: [],
  11537. textList: [],
  11538. line: [],
  11539. lineList: [],
  11540. chapTools: [],
  11541. chapToolList: [],
  11542. file: [],
  11543. fileC: [],
  11544. vedioTime: [],
  11545. upToolImg: "",
  11546. preTime: 0,
  11547. rateList: {
  11548. ca: 0,
  11549. },
  11550. rateParams: [],
  11551. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11552. studyJuri: [
  11553. {
  11554. content: "",
  11555. cover: [],
  11556. upVedio: [],
  11557. upFile: [],
  11558. },
  11559. ],
  11560. isClose: 0,
  11561. plworkFile: [],
  11562. mr: require("../../assets/vedioPic.png"),
  11563. word: require("../../assets/icon/isWord.png"),
  11564. word2: require("../../assets/icon/word2.png"),
  11565. video: require("../../assets/icon/isVideo.png"),
  11566. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11567. likes: require("../../assets/icon/comment/likes.png"),
  11568. scoreImg: require("../../assets/score.png"),
  11569. courseDetail: {},
  11570. reply: "",
  11571. isSelect: false,
  11572. chapInfo: [],
  11573. chapInfoList: [],
  11574. taskCount: 0,
  11575. imgList: [],
  11576. noImgList: [],
  11577. pzList: [],
  11578. timeWorkList: [],
  11579. PlTextList: [
  11580. "Excellent!",
  11581. "nice!",
  11582. "很有创意!",
  11583. "还不错哦~",
  11584. "继续努力哦~",
  11585. ],
  11586. isClickNav: "",
  11587. navId: "",
  11588. playerOptions: {
  11589. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11590. autoplay: false, //如果true,浏览器准备好时开始回放。
  11591. muted: false, // 默认情况下将会消除任何音频。
  11592. loop: false, // 导致视频一结束就重新开始。
  11593. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11594. language: "zh-CN",
  11595. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11596. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11597. sources: [
  11598. {
  11599. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11600. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11601. },
  11602. ],
  11603. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11604. // poster: dataRes.imgUrl, //你的封面地址
  11605. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11606. controlBar: {
  11607. timeDivider: true, //当前时间和持续时间的分隔符
  11608. durationDisplay: true, //显示持续时间
  11609. remainingTimeDisplay: false, //是否显示剩余时间功能
  11610. fullscreenToggle: true, //全屏按钮
  11611. },
  11612. },
  11613. playerOptions1: {
  11614. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11615. autoplay: false, //如果true,浏览器准备好时开始回放。
  11616. muted: false, // 默认情况下将会消除任何音频。
  11617. loop: false, // 导致视频一结束就重新开始。
  11618. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11619. language: "zh-CN",
  11620. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11621. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11622. sources: [
  11623. {
  11624. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11625. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11626. },
  11627. ],
  11628. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11629. // poster: dataRes.imgUrl, //你的封面地址
  11630. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11631. controlBar: {
  11632. timeDivider: true, //当前时间和持续时间的分隔符
  11633. durationDisplay: true, //显示持续时间
  11634. remainingTimeDisplay: false, //是否显示剩余时间功能
  11635. fullscreenToggle: true, //全屏按钮
  11636. },
  11637. },
  11638. playerO: {},
  11639. noneBtnImg: false,
  11640. proVisible: false,
  11641. proVisible2: false,
  11642. progress: 0,
  11643. isFinishSize: 0,
  11644. isAllSize: 0,
  11645. questionAnswer: "",
  11646. answerQ: "", //问答标题
  11647. rateJson: [],
  11648. wbCount: 0,
  11649. wordCount: 0,
  11650. mindCount: 0,
  11651. askCount: 0,
  11652. noteCount: 0,
  11653. mindNetWorkCount: 0,
  11654. libraryCount: 0,
  11655. workCount: 0,
  11656. timeCount: 0,
  11657. answerCount: 0,
  11658. trainCount: 0,
  11659. evalCount: 0,
  11660. dialogImageUrl: "",
  11661. pictureDialog: false,
  11662. toolTypeList: [],
  11663. dialogVisible1: false,
  11664. dialogVisible2: false,
  11665. dialogVisible3: false,
  11666. dialogVisible6: false,
  11667. dialogVisible4: false,
  11668. isNoHomeWork: false,
  11669. dialogVisible5: false,
  11670. dialogVisible5Teacher: false,
  11671. dialogVisibleChoice: false,
  11672. dialogVisibleChoiceTeacher: false,
  11673. answerDialogVisible: false,
  11674. answerDialogVisibleTeacher: false,
  11675. juriVisible: false,
  11676. timeDialogVisible: false,
  11677. replyDialogVisible: false,
  11678. toolDialogVisible: false,
  11679. engDialogVisible: false,
  11680. engUpdateDialogVisible:false,
  11681. isNoUserid:false,
  11682. engListLength:0,
  11683. engWid:"",
  11684. newEnglishList:{
  11685. engTitle:"",
  11686. engText:"",
  11687. },
  11688. newEnglishList1:[],
  11689. oldEnglishJson:{},
  11690. oldEnglishJson1:{},
  11691. englishList1:{},
  11692. englishList:{},
  11693. myAnswerList1:{},
  11694. topHeight:0,
  11695. newEngIndex:-1,
  11696. englishToolIndex:0,
  11697. userMes:{},
  11698. englishToolIndex:0,
  11699. replyIndex: 0,
  11700. replyPid: "",
  11701. radio: [],
  11702. isAsk: false,
  11703. askJson: {
  11704. askCount: 1,
  11705. askTitle: "",
  11706. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11707. },
  11708. testJson: {},
  11709. englishList: {},
  11710. topHeight:0,
  11711. checkJson: [],
  11712. askList: [],
  11713. answerList: [],
  11714. navList: [],
  11715. addPzDialog: false,
  11716. pzConText: "",
  11717. worksStudent: [],
  11718. isCloseList: [],
  11719. workStudent: [],
  11720. groupStudent: [],
  11721. groupStudentUid: [],
  11722. noWorksS: [],
  11723. isWorksS: [],
  11724. noWorksStudent: [],
  11725. toolindex: 0,
  11726. toolDetailIndex: null,
  11727. groupIndex: 0,
  11728. workTypeB: false,
  11729. workTypeC: false,
  11730. isAnswer: false,
  11731. isHovered: false,
  11732. isHovered1: false,
  11733. isHovered2: false,
  11734. timer: null,
  11735. opertimer: null,
  11736. showType: 0,
  11737. fileType: 0,
  11738. showPDF: false,
  11739. noteName: "",
  11740. evaJuri: [],
  11741. evalua: "",
  11742. eTitle: "",
  11743. eName: "",
  11744. eJson: {},
  11745. fid: "", //一级
  11746. sid: "", //二级
  11747. tid: "", //二级
  11748. typeMode: 1,
  11749. eJSONNum: 0,
  11750. Etype: 1,
  11751. data: {
  11752. meta: {
  11753. name: "example",
  11754. author: "dd@163.com",
  11755. version: "0.2",
  11756. },
  11757. format: "node_array",
  11758. data: [{ id: "root", isroot: true, topic: "" }],
  11759. },
  11760. fullDialogVisible: false,
  11761. fulltype: "",
  11762. fullUrl: "",
  11763. commentIndexJson: {},
  11764. Stbodywidth: 0,
  11765. ispzType: 0,
  11766. pzType: 1,
  11767. wScore: 0,
  11768. scoreDetail: "",
  11769. videoStart: false,
  11770. recorder: null,
  11771. groupJson: {},
  11772. islock: false,
  11773. groupJson2: {},
  11774. dialogVisibleGroup: false,
  11775. dialogVisibleGroup2: false,
  11776. updateGroupArray: [],
  11777. updateGroupUser: {},
  11778. deleteGroupUser: [],
  11779. deleteGroupArray: {},
  11780. checkChair: "",
  11781. checkDeleteGroup: [],
  11782. inviteCode: "",
  11783. courseGroupStudent: [],
  11784. courseGroupStudentUid: [],
  11785. courseGroup: {},
  11786. isGroup: false,
  11787. toolIndex: null,
  11788. tool: {},
  11789. isWorkTool: [
  11790. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11791. ], //, 40
  11792. videoJson: {},
  11793. toolType: 0,
  11794. checktoolArray: [],
  11795. vChapterData: [],
  11796. isUpdateToolDetail: false,
  11797. isUpdateToolDetail1: false,
  11798. updateToolDetailInner: "",
  11799. checkboxList: [],
  11800. plIndex: "",
  11801. worksSName2: "",
  11802. worksSid: "",
  11803. wordCloudData: [],
  11804. isPickStudent: [],
  11805. pzStype: 1,
  11806. myAnList: {},
  11807. };
  11808. },
  11809. methods: {
  11810. setEnglishList(engList) {
  11811. this.myAnList = engList;
  11812. },
  11813. addToolChoose() {
  11814. if (!this.checktoolArray.length) {
  11815. this.$message.error("请选择要添加的任务");
  11816. return;
  11817. }
  11818. if (
  11819. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11820. this.taskCount
  11821. ].toolChoose[0].tool.length
  11822. ) {
  11823. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11824. this.taskCount
  11825. ].toolChoose[0].tool = this.checktoolArray;
  11826. } else {
  11827. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11828. this.taskCount
  11829. ].toolChoose.push({
  11830. tool: this.checktoolArray,
  11831. toolDetail: "",
  11832. toolType: 0,
  11833. askCount: 1,
  11834. askTitle: "",
  11835. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11836. });
  11837. }
  11838. let params = [
  11839. {
  11840. cid: this.id,
  11841. chapters: JSON.stringify(this.chapInfoList),
  11842. uid: this.userid,
  11843. unitIndex: this.courseType,
  11844. },
  11845. ];
  11846. this.ajax
  11847. .post(this.$store.state.api + "updateWorkNew4", params)
  11848. .then((res) => {
  11849. this.$message({
  11850. message: "添加成功",
  11851. type: "success",
  11852. });
  11853. this.checktoolArray = [];
  11854. this.getCourseDetail(2);
  11855. this.checkBz(
  11856. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11857. this.taskCount
  11858. ].toolChoose.length - 1
  11859. );
  11860. this.toolDialogVisible = false;
  11861. this.refreshCourse();
  11862. this.$forceUpdate();
  11863. })
  11864. .catch((err) => {
  11865. console.error(err);
  11866. });
  11867. },
  11868. checkBz(index) {
  11869. this.isUpdateToolDetail = false;
  11870. this.$forceUpdate();
  11871. setTimeout(() => {
  11872. document.scrollingElement.scrollTop =
  11873. document.querySelectorAll(".filebox")[index].offsetTop +
  11874. document.querySelector(".student_body").offsetTop;
  11875. }, 500);
  11876. },
  11877. updateToolDetail(i) {
  11878. this.toolDetailIndex = i;
  11879. if (!this.isUpdateToolDetail1) {
  11880. this.isUpdateToolDetail1 = true;
  11881. this.updateToolDetailInner = JSON.parse(
  11882. JSON.stringify(
  11883. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11884. this.taskCount
  11885. ].toolChoose[i].toolDetail
  11886. )
  11887. );
  11888. } else {
  11889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11890. this.taskCount
  11891. ].toolChoose[i].toolDetail = JSON.parse(
  11892. JSON.stringify(this.updateToolDetailInner)
  11893. );
  11894. let params = [
  11895. {
  11896. cid: this.id,
  11897. chapters: JSON.stringify(this.chapInfoList),
  11898. uid: this.userid,
  11899. unitIndex: this.courseType,
  11900. },
  11901. ];
  11902. this.ajax
  11903. .post(this.$store.state.api + "updateWorkNew4", params)
  11904. .then((res) => {
  11905. this.isUpdateToolDetail1 = false;
  11906. this.$message({
  11907. message: "修改成功",
  11908. type: "success",
  11909. });
  11910. this.toolDetailIndex = null;
  11911. this.updateToolDetailInner = "";
  11912. this.getCourseDetail(2);
  11913. this.$forceUpdate();
  11914. })
  11915. .catch((err) => {
  11916. console.error(err);
  11917. });
  11918. }
  11919. },
  11920. jumpGj(i, j, k, l) {
  11921. for (var z = 0; z < this.navList.length; z++) {
  11922. for (var q = 0; q < this.navList[z].task.length; q++) {
  11923. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11924. this.navList[z].task[q].tool[w].isTool = false;
  11925. }
  11926. }
  11927. }
  11928. console.log(this.navList);
  11929. this.navList[i].task[j].tool[k].isTool =
  11930. !this.navList[i].task[j].tool[k].isTool;
  11931. var a = document.scrollingElement;
  11932. let target = document.querySelector(`#gj${k}`);
  11933. if (target) {
  11934. target.scrollIntoView(true);
  11935. setTimeout(() => {
  11936. a.scrollTop = a.scrollTop - 150;
  11937. }, 0);
  11938. }
  11939. if (l) {
  11940. this.courseType = i;
  11941. this.navId = l;
  11942. this.taskCount = j;
  11943. this.selectPz();
  11944. this.getHomeWork();
  11945. this.getCourseDetail(2);
  11946. }
  11947. // var b = this.$refs["bz" + k][0];
  11948. // a.scrollTop = b.offsetTop;
  11949. },
  11950. addTools2(i) {
  11951. if (i == 4) {
  11952. // this.openTools2(4);
  11953. this.$message.error("暂未开放");
  11954. return;
  11955. }
  11956. if (i == 45) {
  11957. // this.openTools2(45);
  11958. this.$message.error("暂未开放");
  11959. return;
  11960. }
  11961. if (i == 47) {
  11962. // this.openTools2(47);
  11963. this.$message.error("暂未开放");
  11964. return;
  11965. }
  11966. if (i == 49) {
  11967. // this.openTools2(49);
  11968. this.$message.error("暂未开放");
  11969. return;
  11970. }
  11971. if (i == 62) {
  11972. // this.openTools(itemTaskIndex, 62, toolIndex);
  11973. this.$message.error("暂未开放");
  11974. return;
  11975. }
  11976. if (i == 15) {
  11977. // this.openTools(itemTaskIndex, 15, toolIndex);
  11978. this.$message.error("暂未开放");
  11979. return;
  11980. }
  11981. if (i == 40) {
  11982. // this.openTools(itemTaskIndex, 40, toolIndex);
  11983. this.$message.error("暂未开放");
  11984. return;
  11985. }
  11986. if (i == 41) {
  11987. // this.openTools(itemTaskIndex, 41, toolIndex);
  11988. this.$message.error("暂未开放");
  11989. return;
  11990. }
  11991. if (i == 42) {
  11992. // this.openTools(itemTaskIndex, 42, toolIndex);
  11993. this.$message.error("暂未开放");
  11994. return;
  11995. }
  11996. if (this.checktoolArray.length > 0) {
  11997. if (this.checktoolArray.indexOf(i) != -1) {
  11998. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11999. } else {
  12000. this.checktoolArray = [];
  12001. this.checktoolArray.push(i);
  12002. }
  12003. } else {
  12004. this.checktoolArray.push(i);
  12005. }
  12006. this.$forceUpdate();
  12007. },
  12008. jump() {
  12009. window.parent.postMessage({ tools: "43" }, "*");
  12010. },
  12011. getUpdateMore(f, checkboxList, searchTN, index) {
  12012. this.dialogVisibleMember = f;
  12013. this.checkboxList = checkboxList;
  12014. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12015. this.plIndex = index;
  12016. },
  12017. setPlname(a) {
  12018. if (this.plworkFile.length) {
  12019. this.plworkFile[this.plIndex].username = a;
  12020. } else {
  12021. this.worksSName = a;
  12022. }
  12023. this.dialogVisibleMember = false;
  12024. },
  12025. previewImg(url) {
  12026. this.$hevueImgPreview(url);
  12027. },
  12028. checkImg(list) {
  12029. if (!list.length) {
  12030. return;
  12031. }
  12032. this.$hevueImgPreview({
  12033. multiple: true, // 开启多图预览模式
  12034. imgList: list, // 需要预览的多图数组
  12035. });
  12036. },
  12037. change(val) {
  12038. console.log(val);
  12039. },
  12040. goTo(path) {
  12041. this.$router.push(path);
  12042. },
  12043. handlePictureCardPreview(url) {
  12044. this.dialogImageUrl = url;
  12045. this.pictureDialog = true;
  12046. },
  12047. clean(type) {
  12048. if (type == 1) {
  12049. this.studyJuri[0].cover.splice(0, 1);
  12050. } else if (type == 2) {
  12051. this.studyJuri[0].upVedio.splice(0, 1);
  12052. } else {
  12053. this.studyJuri[0].upFile.splice(0, 1);
  12054. }
  12055. },
  12056. clean2(index) {
  12057. this.plworkFile.splice(index, 1);
  12058. },
  12059. handleClose(done) {
  12060. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12061. this.videoDetail.sources[0].src = "";
  12062. }
  12063. this.commentIndexJson = {};
  12064. done();
  12065. },
  12066. fullTools() {
  12067. this.full = !this.full;
  12068. },
  12069. imgChange(file, fileList, type) {
  12070. if (type == 1) {
  12071. var _tmp = this.studyJuri[0].cover;
  12072. } else if (type == 2) {
  12073. var _tmp = this.studyJuri[0].upVedio;
  12074. } else {
  12075. var _tmp = this.studyJuri[0].upFile;
  12076. }
  12077. this.noneBtnImg = _tmp.length >= 1;
  12078. },
  12079. setContent(bool) {
  12080. this.contentDialog = bool;
  12081. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12082. document.querySelector(".workd_media").style.height = "650px";
  12083. } else if (document.querySelector(".workd_media")) {
  12084. document.querySelector(".workd_media").style.height = "auto";
  12085. }
  12086. },
  12087. setContent2(bool) {
  12088. this.mlDialog = bool;
  12089. if (
  12090. bool &&
  12091. this.contentDialog &&
  12092. document.querySelector(".workd_media")
  12093. ) {
  12094. document.querySelector(".workd_media").style.height = "650px";
  12095. } else if (document.querySelector(".workd_media")) {
  12096. document.querySelector(".workd_media").style.height = "auto";
  12097. }
  12098. },
  12099. openToolAll() {
  12100. this.toolDialogVisible = true;
  12101. },
  12102. addImg(e) {
  12103. var el = e.currentTarget;
  12104. // this.$message.success('触发上传')
  12105. el.getElementsByTagName("input")[0].click();
  12106. e.target.value = "";
  12107. },
  12108. addSelectAnswer() {
  12109. let params = [
  12110. {
  12111. uid: this.userid,
  12112. cid: this.id,
  12113. stage: this.courseType,
  12114. task: this.taskCount,
  12115. tool: this.toolindex,
  12116. content: this.selectAnswer.answer,
  12117. type: 7,
  12118. },
  12119. ];
  12120. this.ajax
  12121. .post(this.$store.state.api + "addCourseWorks", params)
  12122. .then((res) => {
  12123. this.$message({
  12124. message: "提交成功",
  12125. type: "success",
  12126. });
  12127. this.dialogVisibleSelect = false;
  12128. // this.selectAnswer = {};
  12129. this.selectSWorks();
  12130. this.selectStudent();
  12131. })
  12132. .catch((err) => {
  12133. this.$message.error("提交失败");
  12134. console.error(err);
  12135. });
  12136. },
  12137. addSelectAnswerTeacher() {
  12138. let params = [
  12139. {
  12140. uid: this.sStudent.userid,
  12141. cid: this.id,
  12142. stage: this.courseType,
  12143. task: this.taskCount,
  12144. tool: this.toolindex,
  12145. content: this.selectAnswer.answer,
  12146. type: 7,
  12147. },
  12148. ];
  12149. this.ajax
  12150. .post(this.$store.state.api + "addCourseWorks", params)
  12151. .then((res) => {
  12152. this.$message({
  12153. message: "提交成功",
  12154. type: "success",
  12155. });
  12156. this.dialogVisibleSelectTeacher = false;
  12157. // this.selectAnswer = {};
  12158. this.selectSWorks();
  12159. this.selectStudent();
  12160. })
  12161. .catch((err) => {
  12162. this.$message.error("提交失败");
  12163. console.error(err);
  12164. });
  12165. },
  12166. addSenWorks() {
  12167. for (var i = 0; i < this.sentenceList.length; i++) {
  12168. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12169. if (
  12170. this.sentenceList[i].chooseSenList[j] == undefined ||
  12171. this.sentenceList[i].chooseSenList[j] == ""
  12172. ) {
  12173. this.$message.error("请将答案填写完整!");
  12174. return;
  12175. }
  12176. }
  12177. }
  12178. let params = [
  12179. {
  12180. uid: this.userid,
  12181. cid: this.id,
  12182. stage: this.courseType,
  12183. task: this.taskCount,
  12184. tool: this.toolindex,
  12185. content: JSON.stringify(this.sentenceList),
  12186. type: 9,
  12187. },
  12188. ];
  12189. this.ajax
  12190. .post(this.$store.state.api + "addCourseWorks", params)
  12191. .then((res) => {
  12192. this.$message({
  12193. message: "提交成功",
  12194. type: "success",
  12195. });
  12196. this.dialogVisibleSentence = false;
  12197. // this.selectAnswer = {};
  12198. this.selectSWorks();
  12199. this.selectStudent();
  12200. })
  12201. .catch((err) => {
  12202. this.$message.error("提交失败");
  12203. console.error(err);
  12204. });
  12205. },
  12206. addSenWorksTeacher() {
  12207. for (var i = 0; i < this.sentenceList.length; i++) {
  12208. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12209. if (
  12210. this.sentenceList[i].chooseSenList[j] == undefined ||
  12211. this.sentenceList[i].chooseSenList[j] == ""
  12212. ) {
  12213. this.$message.error("请将答案填写完整!");
  12214. return;
  12215. }
  12216. }
  12217. }
  12218. let params = [
  12219. {
  12220. uid: this.sStudent.userid,
  12221. cid: this.id,
  12222. stage: this.courseType,
  12223. task: this.taskCount,
  12224. tool: this.toolindex,
  12225. content: JSON.stringify(this.sentenceList),
  12226. type: 9,
  12227. },
  12228. ];
  12229. this.ajax
  12230. .post(this.$store.state.api + "addCourseWorks", params)
  12231. .then((res) => {
  12232. this.$message({
  12233. message: "提交成功",
  12234. type: "success",
  12235. });
  12236. this.dialogVisibleSentenceTeacher = false;
  12237. // this.selectAnswer = {};
  12238. this.selectSWorks();
  12239. this.selectStudent();
  12240. })
  12241. .catch((err) => {
  12242. this.$message.error("提交失败");
  12243. console.error(err);
  12244. });
  12245. },
  12246. returnTableText() {
  12247. this.$confirm("确定还原此模板吗?", "提示", {
  12248. confirmButtonText: "确定",
  12249. cancelButtonText: "取消",
  12250. type: "warning",
  12251. })
  12252. .then(() => {
  12253. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12254. })
  12255. .catch(() => {});
  12256. },
  12257. addTableWorks() {
  12258. let params = [
  12259. {
  12260. uid: this.userid,
  12261. cid: this.id,
  12262. stage: this.courseType,
  12263. task: this.taskCount,
  12264. tool: this.toolindex,
  12265. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12266. type: 10,
  12267. },
  12268. ];
  12269. this.ajax
  12270. .post(this.$store.state.api + "addCourseWorks", params)
  12271. .then((res) => {
  12272. this.$message({
  12273. message: "提交成功",
  12274. type: "success",
  12275. });
  12276. this.dialogVisibleTable = false;
  12277. // this.selectAnswer = {};
  12278. this.selectSWorks();
  12279. this.selectStudent();
  12280. })
  12281. .catch((err) => {
  12282. this.$message.error("提交失败");
  12283. console.error(err);
  12284. });
  12285. },
  12286. tableRowClassName({ row, rowIndex }) {
  12287. if ((rowIndex + 1) % 2 === 0) {
  12288. return "even_row";
  12289. } else {
  12290. return "";
  12291. }
  12292. },
  12293. addTableWorksTeacher() {
  12294. let params = [
  12295. {
  12296. uid: this.sStudent.userid,
  12297. cid: this.id,
  12298. stage: this.courseType,
  12299. task: this.taskCount,
  12300. tool: this.toolindex,
  12301. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12302. type: 10,
  12303. },
  12304. ];
  12305. this.ajax
  12306. .post(this.$store.state.api + "addCourseWorks", params)
  12307. .then((res) => {
  12308. this.$message({
  12309. message: "提交成功",
  12310. type: "success",
  12311. });
  12312. this.dialogVisibleTableTeacher = false;
  12313. // this.selectAnswer = {};
  12314. this.selectSWorks();
  12315. this.selectStudent();
  12316. })
  12317. .catch((err) => {
  12318. this.$message.error("提交失败");
  12319. console.error(err);
  12320. });
  12321. },
  12322. returnWordText() {
  12323. this.$confirm("确定还原此模板吗?", "提示", {
  12324. confirmButtonText: "确定",
  12325. cancelButtonText: "取消",
  12326. type: "warning",
  12327. })
  12328. .then(() => {
  12329. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12330. })
  12331. .catch(() => {});
  12332. },
  12333. addWordWorks() {
  12334. let params = [
  12335. {
  12336. uid: this.userid,
  12337. cid: this.id,
  12338. stage: this.courseType,
  12339. task: this.taskCount,
  12340. tool: this.toolindex,
  12341. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12342. type: 13,
  12343. atool: 52,
  12344. },
  12345. ];
  12346. this.ajax
  12347. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12348. .then((res) => {
  12349. this.$message({
  12350. message: "提交成功",
  12351. type: "success",
  12352. });
  12353. this.dialogVisibleWord = false;
  12354. // this.selectAnswer = {};
  12355. this.selectSWorks();
  12356. this.selectStudent();
  12357. })
  12358. .catch((err) => {
  12359. this.$message.error("提交失败");
  12360. console.error(err);
  12361. });
  12362. },
  12363. addWordWorksTeacher() {
  12364. let params = [
  12365. {
  12366. uid: this.sStudent.userid,
  12367. cid: this.id,
  12368. stage: this.courseType,
  12369. task: this.taskCount,
  12370. tool: this.toolindex,
  12371. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12372. type: 13,
  12373. atool: 52,
  12374. },
  12375. ];
  12376. this.ajax
  12377. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12378. .then((res) => {
  12379. this.$message({
  12380. message: "提交成功",
  12381. type: "success",
  12382. });
  12383. this.dialogVisibleWordTeacher = false;
  12384. // this.selectAnswer = {};
  12385. this.selectSWorks();
  12386. this.selectStudent();
  12387. })
  12388. .catch((err) => {
  12389. this.$message.error("提交失败");
  12390. console.error(err);
  12391. });
  12392. },
  12393. addCourseWorks(i) {
  12394. var typesql;
  12395. if (this.fileType === 0) {
  12396. typesql = 1;
  12397. } else if (this.fileType === 1) {
  12398. typesql = 4;
  12399. } else if (this.fileType === 2) {
  12400. typesql = 5;
  12401. } else if (this.fileType === 3) {
  12402. typesql = 12;
  12403. }
  12404. if (!this.studyJuri[0].cover[0].url) {
  12405. this.$message.error("请上传文件");
  12406. return;
  12407. }
  12408. let params = [
  12409. {
  12410. uid: this.userid,
  12411. cid: this.id,
  12412. stage: this.courseType,
  12413. task: i,
  12414. tool: this.toolindex,
  12415. content: this.studyJuri[0].cover[0].url,
  12416. type: typesql,
  12417. },
  12418. ];
  12419. this.ajax
  12420. .post(this.$store.state.api + "addCourseWorksR", params)
  12421. .then((res) => {
  12422. this.$message({
  12423. message: "提交成功",
  12424. type: "success",
  12425. });
  12426. this.studyJuri[0].cover = [];
  12427. this.dialogVisible = false;
  12428. this.getCourseDetail(2);
  12429. })
  12430. .catch((err) => {
  12431. this.$message.error("提交失败");
  12432. console.error(err);
  12433. });
  12434. },
  12435. addCourseWorksPl(i) {
  12436. let _files = this.plworkFile;
  12437. var c = 1;
  12438. for (var k = 0; k < _files.length; k++) {
  12439. if (!_files[k].username) {
  12440. c = 2;
  12441. }
  12442. }
  12443. if (c == 2) {
  12444. this.$message.error("请填写学生姓名");
  12445. return;
  12446. }
  12447. let params = [
  12448. {
  12449. ateacher: this.userid,
  12450. cid: this.id,
  12451. stage: this.courseType,
  12452. task: i,
  12453. tool: this.toolindex,
  12454. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12455. },
  12456. ];
  12457. this.ajax
  12458. .post(this.$store.state.api + "addCourseWorksPl", params)
  12459. .then((res) => {
  12460. this.$message({
  12461. message: "提交成功",
  12462. type: "success",
  12463. });
  12464. this.plworkFile = [];
  12465. this.dialogVisiblePl = false;
  12466. this.getCourseDetail(2);
  12467. })
  12468. .catch((err) => {
  12469. this.$message.error("提交失败");
  12470. console.error(err);
  12471. });
  12472. },
  12473. addCourseWorks2(i) {
  12474. var typesql;
  12475. if (this.fileType === 0) {
  12476. typesql = 0;
  12477. } else if (this.fileType === 1) {
  12478. typesql = 1;
  12479. } else if (this.fileType === 2) {
  12480. typesql = 3;
  12481. } else if (this.fileType === 3) {
  12482. typesql = 12;
  12483. }
  12484. if (!this.studyJuri[0].cover[0].url) {
  12485. this.$message.error("请上传文件");
  12486. return;
  12487. }
  12488. let params = [
  12489. {
  12490. uid: this.userid,
  12491. cid: this.id,
  12492. stage: this.courseType,
  12493. task: i,
  12494. tool: this.toolindex,
  12495. content: JSON.stringify({
  12496. type: typesql,
  12497. groupIndex: this.groupIndex,
  12498. url: this.studyJuri[0].cover[0].url,
  12499. }).replaceAll(/%/g, "%25"),
  12500. type: 11,
  12501. atool: 49,
  12502. text: "",
  12503. },
  12504. ];
  12505. this.ajax
  12506. .post(this.$store.state.api + "addCourseWorks5", params)
  12507. .then((res) => {
  12508. this.$message({
  12509. message: "提交成功",
  12510. type: "success",
  12511. });
  12512. this.studyJuri[0].cover = [];
  12513. this.dialogVisibleGroupWork = false;
  12514. this.getCourseDetail(2);
  12515. })
  12516. .catch((err) => {
  12517. this.$message.error("提交失败");
  12518. console.error(err);
  12519. });
  12520. },
  12521. addEnglishWork() {
  12522. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12523. this.$message.error("请输入作文标题和正文!");
  12524. return;
  12525. }
  12526. let params = [
  12527. {
  12528. uid: this.userid,
  12529. cid: this.id,
  12530. stage: this.courseType,
  12531. task: this.taskCount,
  12532. tool: this.englishToolIndex,
  12533. content: JSON.stringify(this.myAnList),
  12534. type: 16,
  12535. atool: 69,
  12536. text: "",
  12537. },
  12538. ];
  12539. this.ajax
  12540. .post(this.$store.state.api + "addCourseWorks5", params)
  12541. .then((res) => {
  12542. this.$message({
  12543. message: "提交成功",
  12544. type: "success",
  12545. });
  12546. this.myAnList = {};
  12547. this.englishList = {};
  12548. this.englishToolIndex = 0;
  12549. this.engDialogVisible = false;
  12550. this.selectSWorks();
  12551. this.selectStudent();
  12552. })
  12553. .catch((err) => {
  12554. this.$message.error("提交失败");
  12555. console.error(err);
  12556. });
  12557. },
  12558. addCourseWorksGong(i, data, tool) {
  12559. let params = [
  12560. {
  12561. uid: this.userid,
  12562. cid: this.id,
  12563. stage: this.courseType,
  12564. task: this.taskCount,
  12565. tool: i,
  12566. content: data,
  12567. type: 12,
  12568. atool: tool,
  12569. text: "",
  12570. },
  12571. ];
  12572. this.ajax
  12573. .post(this.$store.state.api + "addCourseWorks5", params)
  12574. .then((res) => {
  12575. this.$message({
  12576. message: "提交成功",
  12577. type: "success",
  12578. });
  12579. this.studyJuri[0].cover = [];
  12580. this.selectSWorks();
  12581. this.selectStudent();
  12582. })
  12583. .catch((err) => {
  12584. this.$message.error("提交失败");
  12585. console.error(err);
  12586. });
  12587. },
  12588. addCourseWorksGongTeacher(i, data, tool) {
  12589. let params = [
  12590. {
  12591. uid: this.sStudent.userid,
  12592. cid: this.id,
  12593. stage: this.courseType,
  12594. task: this.taskCount,
  12595. tool: i,
  12596. content: data,
  12597. type: 12,
  12598. atool: tool,
  12599. text: "",
  12600. },
  12601. ];
  12602. this.ajax
  12603. .post(this.$store.state.api + "addCourseWorks5", params)
  12604. .then((res) => {
  12605. this.$message({
  12606. message: "提交成功",
  12607. type: "success",
  12608. });
  12609. this.studyJuri[0].cover = [];
  12610. this.dialogVisibleWorks = false;
  12611. this.selectSWorks();
  12612. this.selectStudent();
  12613. })
  12614. .catch((err) => {
  12615. this.$message.error("提交失败");
  12616. console.error(err);
  12617. });
  12618. },
  12619. addCourseWorksGongPl(i, data, tool, type) {
  12620. let params = [
  12621. {
  12622. uid: this.sStudent.userid,
  12623. cid: this.id,
  12624. stage: this.courseType,
  12625. task: this.taskCount,
  12626. tool: i,
  12627. content: data,
  12628. type: type,
  12629. atool: tool,
  12630. text: "",
  12631. },
  12632. ];
  12633. this.ajax
  12634. .post(this.$store.state.api + "addCourseWorks5", params)
  12635. .then((res) => {
  12636. this.$message({
  12637. message: "提交成功",
  12638. type: "success",
  12639. });
  12640. this.studyJuri[0].cover = [];
  12641. this.dialogVisibleWorks = false;
  12642. this.selectSWorks();
  12643. this.selectStudent();
  12644. })
  12645. .catch((err) => {
  12646. this.$message.error("提交失败");
  12647. console.error(err);
  12648. });
  12649. },
  12650. addCourseWorksTeacher(i) {
  12651. var typesql;
  12652. if (this.sTool == 32) {
  12653. this.addCourseWorksGongTeacher(
  12654. this.toolindex,
  12655. this.studyJuri[0].cover[0].url,
  12656. this.sTool
  12657. );
  12658. return;
  12659. }
  12660. if (this.fileType === 0) {
  12661. typesql = 1;
  12662. } else if (this.fileType === 1) {
  12663. typesql = 4;
  12664. } else if (this.fileType === 2) {
  12665. typesql = 5;
  12666. } else if (this.fileType === 3) {
  12667. typesql = 12;
  12668. }
  12669. if (this.sTool == 50) {
  12670. this.addCourseWorksGongPl(
  12671. this.toolindex,
  12672. this.studyJuri[0].cover[0].url,
  12673. this.sTool,
  12674. typesql
  12675. );
  12676. return;
  12677. }
  12678. if (!this.studyJuri[0].cover[0].url) {
  12679. this.$message.error("请上传文件");
  12680. return;
  12681. }
  12682. let params = [
  12683. {
  12684. uid: this.sStudent.userid,
  12685. cid: this.id,
  12686. stage: this.courseType,
  12687. task: i,
  12688. tool: this.toolindex,
  12689. content: this.studyJuri[0].cover[0].url,
  12690. type: typesql,
  12691. ateacher: this.userid,
  12692. },
  12693. ];
  12694. this.ajax
  12695. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12696. .then((res) => {
  12697. this.$message({
  12698. message: "提交成功",
  12699. type: "success",
  12700. });
  12701. this.studyJuri[0].cover = [];
  12702. this.dialogVisibleWorks = false;
  12703. this.getCourseDetail(2);
  12704. })
  12705. .catch((err) => {
  12706. this.$message.error("提交失败");
  12707. console.error(err);
  12708. });
  12709. },
  12710. selectUploadStudent(type) {
  12711. const loading = this.$loading.service({
  12712. background: "rgba(255, 255, 255, 0.7)",
  12713. target: document.body,
  12714. });
  12715. let params = {
  12716. cid: this.uploadCid,
  12717. oid: this.oid,
  12718. cn: "",
  12719. };
  12720. this.ajax
  12721. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12722. .then((res) => {
  12723. loading.close();
  12724. var studentK = [];
  12725. if (this.isWorksS[this.toolindex].length > 0) {
  12726. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12727. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12728. }
  12729. studentK = studentK.join(",");
  12730. }
  12731. this.uploadStudentJuri = res.data[0].filter((el) => {
  12732. return studentK.indexOf(el.userid) == -1;
  12733. });
  12734. if (this.worksSName && this.worksSid) {
  12735. this.uploadStudentJuri.push({
  12736. userid: this.worksSid,
  12737. name: this.worksSName,
  12738. });
  12739. }
  12740. if (type == 1) {
  12741. this.plworkFile = [];
  12742. this.dialogVisibleSname = true;
  12743. } else if (type == 2) {
  12744. this.dialogVisiblePl = true;
  12745. }
  12746. })
  12747. .catch((err) => {
  12748. loading.close();
  12749. console.error(err);
  12750. });
  12751. },
  12752. selectPickStudent() {
  12753. const loading = this.$loading.service({
  12754. background: "rgba(255, 255, 255, 0.7)",
  12755. target: document.body,
  12756. });
  12757. let params = {
  12758. cid: this.uploadCid,
  12759. oid: this.oid,
  12760. cn: "",
  12761. };
  12762. this.ajax
  12763. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12764. .then((res) => {
  12765. loading.close();
  12766. this.uploadStudentJuri = res.data[0];
  12767. this.dialogVisiblePickPeople = true;
  12768. })
  12769. .catch((err) => {
  12770. loading.close();
  12771. console.error(err);
  12772. });
  12773. },
  12774. arrayToArray(arrayo, arrayt) {
  12775. let array1 = arrayo;
  12776. let array2 = arrayt;
  12777. let commonElements = [];
  12778. for (let i = 0; i < array1.length; i++) {
  12779. for (let j = 0; j < array2.length; j++) {
  12780. if (array1[i] === array2[j]) {
  12781. commonElements.push(array1[i]);
  12782. }
  12783. }
  12784. }
  12785. return commonElements;
  12786. },
  12787. selectWorksStudent() {
  12788. let params = {
  12789. oid: this.oid,
  12790. cid: this.courseDetail.juri,
  12791. };
  12792. this.ajax
  12793. .get(this.$store.state.api + "selectWorksStudent", params)
  12794. .then((res) => {
  12795. var a = res.data[0];
  12796. for (var i = 0; i < this.isWorksS.length; i++) {
  12797. this.noWorksS[i] = [];
  12798. var studentK = [];
  12799. if (this.isWorksS[i].length > 0) {
  12800. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12801. studentK.push(this.isWorksS[i][z].uid);
  12802. }
  12803. studentK = studentK.join(",");
  12804. for (var j = 0; j < a.length; j++) {
  12805. if (studentK.indexOf(a[j].userid) == -1) {
  12806. if (this.tcid) {
  12807. // a[j].classid.indexOf(this.tcid) != -1
  12808. if (
  12809. this.arrayToArray(
  12810. a[j].classid.split(","),
  12811. this.tcid.split(",")
  12812. ).length
  12813. ) {
  12814. this.noWorksS[i].push({
  12815. student: a[j].name,
  12816. userid: a[j].userid,
  12817. });
  12818. }
  12819. } else {
  12820. this.noWorksS[i].push({
  12821. student: a[j].name,
  12822. userid: a[j].userid,
  12823. });
  12824. }
  12825. }
  12826. }
  12827. } else {
  12828. for (var k = 0; k < a.length; k++) {
  12829. if (this.tcid) {
  12830. if (
  12831. this.arrayToArray(
  12832. a[k].classid.split(","),
  12833. this.tcid.split(",")
  12834. ).length
  12835. ) {
  12836. this.noWorksS[i].push({
  12837. student: a[k].name,
  12838. userid: a[k].userid,
  12839. });
  12840. }
  12841. } else {
  12842. this.noWorksS[i].push({
  12843. student: a[k].name,
  12844. userid: a[k].userid,
  12845. });
  12846. }
  12847. }
  12848. }
  12849. }
  12850. this.$forceUpdate();
  12851. if (
  12852. Object.keys(this.commentDetail).length &&
  12853. Object.keys(this.commentIndexJson).length &&
  12854. !this.dialogVisibleScore
  12855. ) {
  12856. let a = 1;
  12857. let c = this.commentIndexJson;
  12858. if (
  12859. this.commentIndexJson.gindex ||
  12860. this.commentIndexJson.gindex === 0
  12861. ) {
  12862. for (
  12863. var i = 0;
  12864. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12865. i++
  12866. ) {
  12867. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12868. groupA: for (var k = 0; k < _el.length; k++) {
  12869. let el = _el[k];
  12870. if (el.wid == this.commentDetail.wid) {
  12871. a = 2;
  12872. this.commentOther(
  12873. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12874. this.commentIndexJson.toolIndex,
  12875. k,
  12876. this.commentIndexJson.gindex
  12877. );
  12878. break groupA;
  12879. }
  12880. }
  12881. }
  12882. if (a === 1) {
  12883. this.commentDetail = [];
  12884. this.commentIndexJson = {};
  12885. this.commentDialogVisible = false;
  12886. this.$message("此作业已被删除");
  12887. }
  12888. } else {
  12889. if (this.isGroup && this.commentIndexJson.gid) {
  12890. groupA: for (
  12891. var i = 0;
  12892. i < this.courseGroup.group.length;
  12893. i++
  12894. ) {
  12895. let _group = this.courseGroup.group[i];
  12896. if (_group.id == this.commentIndexJson.gid) {
  12897. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12898. for (var k = 0; k < _el2.length; k++) {
  12899. let el2 = _el2[k];
  12900. if (el2.wid == this.commentDetail.wid) {
  12901. a = 2;
  12902. this.commentOther(
  12903. _el2[k],
  12904. this.commentIndexJson.toolIndex,
  12905. k,
  12906. null,
  12907. this.commentIndexJson.gid
  12908. );
  12909. break groupA;
  12910. }
  12911. }
  12912. }
  12913. }
  12914. }
  12915. if (a == 1) {
  12916. for (
  12917. var i = 0;
  12918. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12919. i++
  12920. ) {
  12921. let el =
  12922. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12923. if (el.wid == this.commentDetail.wid) {
  12924. a = 2;
  12925. this.commentOther(
  12926. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12927. this.commentIndexJson.toolIndex,
  12928. i
  12929. );
  12930. break;
  12931. }
  12932. }
  12933. }
  12934. if (a === 1) {
  12935. this.commentDetail = [];
  12936. this.commentIndexJson = {};
  12937. this.commentDialogVisible = false;
  12938. this.$message("此作业已被删除");
  12939. }
  12940. }
  12941. }
  12942. })
  12943. .catch((err) => {
  12944. console.error(err);
  12945. });
  12946. },
  12947. selectStudent() {
  12948. //学生查看自己作业
  12949. let params = {
  12950. uid: this.userid,
  12951. cid: this.id,
  12952. s: this.courseType,
  12953. t: this.taskCount,
  12954. };
  12955. this.ajax
  12956. .get(this.$store.state.api + "selectStudentWorks", params)
  12957. .then((res) => {
  12958. var a =
  12959. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12960. this.taskCount
  12961. ].toolChoose;
  12962. var b = res.data[0];
  12963. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12964. var y = [
  12965. "AVI",
  12966. "NAVI",
  12967. "MPEG",
  12968. "ASF",
  12969. "MOV",
  12970. "WMV",
  12971. "3GP",
  12972. "RM",
  12973. "RMVB",
  12974. "FLV",
  12975. "F4V",
  12976. "H.264",
  12977. "H.265",
  12978. "REAL VIDEO",
  12979. "MKV",
  12980. "WebM",
  12981. "HDDVD",
  12982. "MP4",
  12983. "MPG",
  12984. "M4V",
  12985. "MGV",
  12986. "OGV",
  12987. "QTM",
  12988. "STR",
  12989. "AMC",
  12990. "DVX",
  12991. "EVO",
  12992. "DAT",
  12993. "OGG",
  12994. "OGM",
  12995. ];
  12996. for (var i = 0; i < a.length; i++) {
  12997. this.workStudent[i] = [];
  12998. for (var j = 0; j < b.length; j++) {
  12999. if (i == b[j].tool) {
  13000. if (
  13001. (b[j].type == 1 ||
  13002. b[j].type == 4 ||
  13003. b[j].type == 5 ||
  13004. b[j].type == 6 ||
  13005. b[j].type == 12 ||
  13006. b[j].type == 7) &&
  13007. a[i].tool[0] != 15 &&
  13008. a[i].tool[0] != 4 &&
  13009. a[i].tool[0] != 45 &&
  13010. a[i].tool[0] != 50 &&
  13011. a[i].tool[0] != 32 &&
  13012. a[i].tool[0] != 57 &&
  13013. a[i].tool[0] != 52 &&
  13014. a[i].tool[0] != 69
  13015. ) {
  13016. if (
  13017. c.indexOf(
  13018. b[j].content
  13019. .split(".")
  13020. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13021. ) != -1 &&
  13022. a[i].tool[0] == 16 &&
  13023. b[j].atool != 50
  13024. ) {
  13025. this.workStudent[i].push({
  13026. works: b[j].content,
  13027. sName: b[j].name,
  13028. score: b[j].score,
  13029. img: b[j].img,
  13030. type: 1,
  13031. time: b[j].time,
  13032. userid: b[j].userid,
  13033. wid: b[j].id,
  13034. });
  13035. } else if (
  13036. y.indexOf(
  13037. b[j].content
  13038. .split(".")
  13039. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13040. ) != -1 &&
  13041. a[i].tool[0] == 16 &&
  13042. b[j].atool != 50
  13043. ) {
  13044. this.workStudent[i].push({
  13045. userid: b[j].userid,
  13046. wid: b[j].id,
  13047. works: b[j].content,
  13048. sName: b[j].name,
  13049. score: b[j].score,
  13050. img: b[j].img,
  13051. type: 3,
  13052. time: b[j].time,
  13053. });
  13054. } else if (b[j].type == 6 && b[j].atool != 50) {
  13055. this.workStudent[i].push({
  13056. userid: b[j].userid,
  13057. wid: b[j].id,
  13058. works: b[j].content,
  13059. sName: b[j].name,
  13060. score: b[j].score,
  13061. img: b[j].img,
  13062. type: 4,
  13063. time: b[j].time,
  13064. });
  13065. } else if (b[j].type == 7 && b[j].atool != 50) {
  13066. this.workStudent[i].push({
  13067. userid: b[j].userid,
  13068. wid: b[j].id,
  13069. works: b[j].content,
  13070. sName: b[j].name,
  13071. score: b[j].score,
  13072. img: b[j].img,
  13073. type: 5,
  13074. time: b[j].time,
  13075. });
  13076. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13077. this.workStudent[i].push({
  13078. works: b[j].content,
  13079. sName: b[j].name,
  13080. score: b[j].score,
  13081. img: b[j].img,
  13082. type: 12,
  13083. time: b[j].time,
  13084. userid: b[j].userid,
  13085. wid: b[j].id,
  13086. });
  13087. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13088. this.workStudent[i].push({
  13089. works: b[j].content,
  13090. sName: b[j].name,
  13091. score: b[j].score,
  13092. img: b[j].img,
  13093. type: 0,
  13094. time: b[j].time,
  13095. userid: b[j].userid,
  13096. wid: b[j].id,
  13097. });
  13098. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13099. this.workStudent[i].push({
  13100. works: b[j].content,
  13101. sName: b[j].name,
  13102. score: b[j].score,
  13103. img: b[j].img,
  13104. type: 0,
  13105. time: b[j].time,
  13106. userid: b[j].userid,
  13107. wid: b[j].id,
  13108. });
  13109. }
  13110. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13111. this.workStudent[i].push({
  13112. works: b[j].content,
  13113. sName: b[j].name,
  13114. score: b[j].score,
  13115. img: b[j].img,
  13116. type: 2,
  13117. time: b[j].time,
  13118. userid: b[j].userid,
  13119. wid: b[j].id,
  13120. });
  13121. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13122. //问卷
  13123. this.workStudent[i].push({
  13124. works: b[j].content,
  13125. sName: b[j].name,
  13126. score: b[j].score,
  13127. img: b[j].img,
  13128. type: 2,
  13129. time: b[j].time,
  13130. userid: b[j].userid,
  13131. wid: b[j].id,
  13132. });
  13133. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13134. //选择题
  13135. this.workStudent[i].push({
  13136. works: b[j].content,
  13137. sName: b[j].name,
  13138. score: b[j].score,
  13139. img: b[j].img,
  13140. type: 8,
  13141. time: b[j].time,
  13142. userid: b[j].userid,
  13143. wid: b[j].id,
  13144. });
  13145. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13146. //选择题
  13147. this.workStudent[i].push({
  13148. works: b[j].content,
  13149. sName: b[j].name,
  13150. score: b[j].score,
  13151. img: b[j].img,
  13152. type: 9,
  13153. time: b[j].time,
  13154. userid: b[j].userid,
  13155. wid: b[j].id,
  13156. });
  13157. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13158. //选择题
  13159. this.workStudent[i].push({
  13160. works: b[j].content,
  13161. sName: b[j].name,
  13162. score: b[j].score,
  13163. img: b[j].img,
  13164. type: 10,
  13165. time: b[j].time,
  13166. userid: b[j].userid,
  13167. wid: b[j].id,
  13168. });
  13169. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13170. //选择题
  13171. this.workStudent[i].push({
  13172. works: b[j].content,
  13173. sName: b[j].name,
  13174. score: b[j].score,
  13175. img: b[j].img,
  13176. type: 13,
  13177. time: b[j].time,
  13178. userid: b[j].userid,
  13179. wid: b[j].id,
  13180. });
  13181. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13182. //选择题
  13183. this.workStudent[i].push({
  13184. works: b[j].content,
  13185. sName: b[j].name,
  13186. score: b[j].score,
  13187. img: b[j].img,
  13188. type: 12,
  13189. time: b[j].time,
  13190. userid: b[j].userid,
  13191. wid: b[j].id,
  13192. });
  13193. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13194. //选择题
  13195. this.workStudent[i].push({
  13196. works: b[j].content,
  13197. sName: b[j].name,
  13198. score: b[j].score,
  13199. img: b[j].img,
  13200. type: 12,
  13201. time: b[j].time,
  13202. userid: b[j].userid,
  13203. wid: b[j].id,
  13204. });
  13205. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13206. //选择题
  13207. this.workStudent[i].push({
  13208. works: b[j].content,
  13209. sName: b[j].name,
  13210. score: b[j].score,
  13211. img: b[j].img,
  13212. type: 15,
  13213. time: b[j].time,
  13214. userid: b[j].userid,
  13215. wid: b[j].id,
  13216. });
  13217. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13218. //英语写作
  13219. this.workStudent[i].push({
  13220. works: b[j].content,
  13221. sName: b[j].name,
  13222. score: b[j].score,
  13223. img: b[j].img,
  13224. type: 16,
  13225. time: b[j].time,
  13226. userid: b[j].userid,
  13227. wid: b[j].id,
  13228. });
  13229. }
  13230. }
  13231. }
  13232. }
  13233. })
  13234. .catch((err) => {
  13235. console.error(err);
  13236. });
  13237. },
  13238. openVideo(w) {
  13239. this.videoDetail = {};
  13240. this.playerOptions1.sources[0].src = w.works;
  13241. this.videoDetail = this.playerOptions1;
  13242. this.videoVisible = true;
  13243. },
  13244. isLikes(wid, uid, t, c, isLikes) {
  13245. if (isLikes == false) {
  13246. let params = [
  13247. {
  13248. wid: wid,
  13249. lid: uid,
  13250. t: t,
  13251. c: c,
  13252. },
  13253. ];
  13254. this.ajax
  13255. .post(this.$store.state.api + "insertComment", params)
  13256. .then((res) => {
  13257. this.$message({
  13258. message: "点赞成功",
  13259. type: "success",
  13260. });
  13261. this.selectSWorks();
  13262. this.selectStudent();
  13263. })
  13264. .catch((err) => {
  13265. this.$message.error("点赞失败");
  13266. console.error(err);
  13267. });
  13268. } else {
  13269. let params = {
  13270. wid: wid,
  13271. lid: uid,
  13272. type: t,
  13273. };
  13274. this.ajax
  13275. .get(this.$store.state.api + "deleteComment", params)
  13276. .then((res) => {
  13277. this.$message({
  13278. message: "取消点赞成功",
  13279. type: "success",
  13280. });
  13281. this.selectSWorks();
  13282. this.selectStudent();
  13283. })
  13284. .catch((err) => {
  13285. console.error(err);
  13286. });
  13287. }
  13288. },
  13289. deleteComment(wid) {
  13290. this.$confirm("确定删除此评论吗?", "提示", {
  13291. confirmButtonText: "确定",
  13292. cancelButtonText: "取消",
  13293. type: "warning",
  13294. })
  13295. .then(() => {
  13296. let params = {
  13297. id: wid,
  13298. };
  13299. this.ajax
  13300. .get(this.$store.state.api + "deleteComment2", params)
  13301. .then((res) => {
  13302. this.$message({
  13303. message: "删除评论成功",
  13304. type: "success",
  13305. });
  13306. this.selectSWorks();
  13307. this.selectStudent();
  13308. })
  13309. .catch((err) => {
  13310. console.error(err);
  13311. });
  13312. })
  13313. .catch(() => {});
  13314. },
  13315. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13316. this.commentIndexJson = {
  13317. toolIndex: toolIndex,
  13318. wIndex: wIndex,
  13319. gindex: gindex,
  13320. gid: gid,
  13321. };
  13322. this.commentDetail = [];
  13323. this.commentDialogVisible = true;
  13324. this.commentDetail = w;
  13325. if (w.works && w.type == 1) {
  13326. this.pptImgUrl = "";
  13327. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13328. if (
  13329. a.indexOf(
  13330. w.works
  13331. .split(".")
  13332. [w.works.split(".").length - 1].toLocaleUpperCase()
  13333. ) != -1
  13334. ) {
  13335. this.pptImgUrl =
  13336. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13337. this.showPDF = false;
  13338. } else if (
  13339. w.works
  13340. .split(".")
  13341. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13342. ) {
  13343. this.pptImgUrl = w.works;
  13344. this.showPDF = true;
  13345. }
  13346. } else if (w.works && w.type == 3) {
  13347. this.videoDetail = {};
  13348. this.playerOptions1.sources[0].src = w.works;
  13349. this.videoDetail = this.playerOptions1;
  13350. // this.videoVisible = true;
  13351. } else if (w.works && w.type == 4) {
  13352. this.eScore = JSON.parse(w.works);
  13353. this.rateJson =
  13354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13355. this.taskCount
  13356. ].toolChoose[toolIndex].rateJson;
  13357. } else if (w.works && w.type == 10) {
  13358. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13359. } else if (w.works && w.type == 13) {
  13360. this.wordJson =
  13361. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13362. this.taskCount
  13363. ].toolChoose[toolIndex].wordJson;
  13364. }
  13365. },
  13366. openScore(w) {
  13367. this.wScore = 0;
  13368. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13369. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13370. this.commentDetail = [];
  13371. this.dialogVisibleScore = true;
  13372. this.commentDetail = w;
  13373. if (w.works && w.type == 1) {
  13374. this.pptImgUrl = "";
  13375. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13376. if (
  13377. a.indexOf(
  13378. w.works
  13379. .split(".")
  13380. [w.works.split(".").length - 1].toLocaleUpperCase()
  13381. ) != -1
  13382. ) {
  13383. this.pptImgUrl =
  13384. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13385. this.showPDF = false;
  13386. } else if (
  13387. w.works
  13388. .split(".")
  13389. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13390. ) {
  13391. this.pptImgUrl = w.works;
  13392. this.showPDF = true;
  13393. }
  13394. } else if (w.works && w.type == 3) {
  13395. this.videoDetail = {};
  13396. this.playerOptions1.sources[0].src = w.works;
  13397. this.videoDetail = this.playerOptions1;
  13398. }
  13399. },
  13400. addComment(wid, uid, t) {
  13401. if (this.commentText == "") {
  13402. this.$message.error("请输入评论");
  13403. return;
  13404. }
  13405. let params2 = [
  13406. {
  13407. wid: wid,
  13408. lid: uid,
  13409. t: t,
  13410. },
  13411. ];
  13412. this.ajax
  13413. .post(this.$store.state.api + "getComment", params2)
  13414. .then((res) => {
  13415. if (res.data[0].length > 0) {
  13416. this.$message.error("一个作业只能评论一条");
  13417. } else {
  13418. let params = [
  13419. {
  13420. wid: wid,
  13421. lid: uid,
  13422. t: t,
  13423. c: this.commentText,
  13424. },
  13425. ];
  13426. this.ajax
  13427. .post(this.$store.state.api + "insertComment", params)
  13428. .then((res) => {
  13429. this.$message({
  13430. message: "评论成功",
  13431. type: "success",
  13432. });
  13433. this.commentText = "";
  13434. this.selectSWorks();
  13435. this.selectStudent();
  13436. })
  13437. .catch((err) => {
  13438. this.$message.error("评论失败");
  13439. console.error(err);
  13440. });
  13441. }
  13442. })
  13443. .catch((err) => {
  13444. // this.$message.error("评论失败");
  13445. console.error(err);
  13446. });
  13447. },
  13448. scoreWork(wid) {
  13449. if (this.wScore == 0) {
  13450. this.$message.error("请评分");
  13451. return;
  13452. }
  13453. let params = [
  13454. {
  13455. wid: wid,
  13456. score: JSON.stringify({
  13457. wScore: this.wScore,
  13458. detail: this.scoreDetail,
  13459. }),
  13460. },
  13461. ];
  13462. this.ajax
  13463. .post(this.$store.state.api + "scoreWork", params)
  13464. .then((res) => {
  13465. this.$message({
  13466. message: "评分成功",
  13467. type: "success",
  13468. });
  13469. this.wScore = 0;
  13470. this.scoreDetail = "";
  13471. this.dialogVisibleScore = false;
  13472. this.selectSWorks();
  13473. this.selectStudent();
  13474. })
  13475. .catch((err) => {
  13476. this.$message.error("评分失败");
  13477. console.error(err);
  13478. });
  13479. },
  13480. openXz(w, i) {
  13481. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13482. .taskJson[this.taskCount].toolChoose[i].selectJson
  13483. ? JSON.parse(
  13484. JSON.stringify(
  13485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13486. this.taskCount
  13487. ].toolChoose[i].selectJson
  13488. )
  13489. )
  13490. : { url: "", select: [], answer: [] };
  13491. var a = w.works.split(",");
  13492. for (var k = 0; k < a.length; k++) {
  13493. a[k] = parseInt(a[k]);
  13494. }
  13495. this.selectAnswer = { answer: a, stu: w.sName };
  13496. this.isSelect = true;
  13497. this.dialogVisibleSelect = true;
  13498. },
  13499. openSen(w, i) {
  13500. this.sentenceList1 = JSON.parse(w.works);
  13501. this.sentenceList1.stuName = w.sName;
  13502. this.dialogVisibleSentence1 = true;
  13503. },
  13504. openPj(w, toolindex) {
  13505. this.isStar = true;
  13506. this.eScore = JSON.parse(w);
  13507. this.rateJson =
  13508. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13509. this.taskCount
  13510. ].toolChoose[toolindex].rateJson;
  13511. this.studentEvalDialogVisible = true;
  13512. },
  13513. deleteWorks(id) {
  13514. this.$confirm("确定删除此作业吗?", "提示", {
  13515. confirmButtonText: "确定",
  13516. cancelButtonText: "取消",
  13517. type: "warning",
  13518. })
  13519. .then(() => {
  13520. let params = [
  13521. {
  13522. id: id,
  13523. },
  13524. ];
  13525. this.ajax
  13526. .post(this.$store.state.api + "deleteCourseWork", params)
  13527. .then((res) => {
  13528. this.$message({
  13529. message: "删除成功",
  13530. type: "success",
  13531. });
  13532. this.selectStudent();
  13533. this.selectSWorks();
  13534. this.selectSLook();
  13535. })
  13536. .catch((err) => {
  13537. this.$message.error("网络异常");
  13538. console.error(err);
  13539. });
  13540. })
  13541. .catch(() => {});
  13542. },
  13543. selectSWorks(gindex) {
  13544. //教师查看全部作业
  13545. let params = {
  13546. cid: this.id,
  13547. s: this.courseType,
  13548. t: this.taskCount,
  13549. };
  13550. this.ajax
  13551. .get(this.$store.state.api + "selectSWorks", params)
  13552. .then((res) => {
  13553. var a =
  13554. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13555. this.taskCount
  13556. ].toolChoose;
  13557. var b = res.data[0];
  13558. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13559. var y = [
  13560. "AVI",
  13561. "NAVI",
  13562. "MPEG",
  13563. "ASF",
  13564. "MOV",
  13565. "WMV",
  13566. "3GP",
  13567. "RM",
  13568. "RMVB",
  13569. "FLV",
  13570. "F4V",
  13571. "H.264",
  13572. "H.265",
  13573. "REAL VIDEO",
  13574. "MKV",
  13575. "WebM",
  13576. "HDDVD",
  13577. "MP4",
  13578. "MPG",
  13579. "M4V",
  13580. "MGV",
  13581. "OGV",
  13582. "QTM",
  13583. "STR",
  13584. "AMC",
  13585. "DVX",
  13586. "EVO",
  13587. "DAT",
  13588. "OGG",
  13589. "OGM",
  13590. ];
  13591. var d = res.data[1];
  13592. var e = res.data[2];
  13593. var f = res.data[3];
  13594. let _worksStudent = [];
  13595. var _worksStudent2 = [];
  13596. for (var i = 0; i < a.length; i++) {
  13597. _worksStudent[i] = [];
  13598. _worksStudent2[i] = [];
  13599. if (
  13600. !this.isCloseList[i] ||
  13601. this.isCloseList[i].isClose == undefined
  13602. ) {
  13603. this.isCloseList[i] = { isClose: 0 };
  13604. }
  13605. this.groupStudent[i] = [];
  13606. this.groupStudentUid[i] = [];
  13607. if (this.isGroup) {
  13608. for (
  13609. var groupI = 0;
  13610. groupI < this.courseGroup.group.length;
  13611. groupI++
  13612. ) {
  13613. this.courseGroup.group[groupI].works[i] = [];
  13614. }
  13615. }
  13616. this.isWorksS[i] = [];
  13617. this.checkJson[i] = [];
  13618. if (a[i].tool[0] == 49) {
  13619. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13620. this.groupStudent[i][gA] = [];
  13621. this.groupStudentUid[i][gA] = [];
  13622. _worksStudent[i][gA] = [];
  13623. _worksStudent2[i][gA] = [];
  13624. this.isCloseList[i][gA] = [];
  13625. for (var g = 0; g < f.length; g++) {
  13626. if (
  13627. f[g].ttype == 2 &&
  13628. this.tcid &&
  13629. this.arrayToArray(
  13630. f[g].classid.split(","),
  13631. this.tcid.split(",")
  13632. ).length == 0
  13633. ) {
  13634. continue;
  13635. }
  13636. if (gA == f[g].group && f[g].tool == i) {
  13637. this.groupStudent[i][gA].push(f[g]);
  13638. this.groupStudentUid[i][gA].push(f[g].userid);
  13639. }
  13640. }
  13641. }
  13642. this.$forceUpdate();
  13643. }
  13644. for (var j = 0; j < b.length; j++) {
  13645. if (
  13646. b[j].ttype == 2 &&
  13647. this.tcid &&
  13648. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13649. .length == 0
  13650. ) {
  13651. continue;
  13652. }
  13653. var likesCount = 0;
  13654. var commentCount = 0;
  13655. var isLikes = false;
  13656. var commentJson = [];
  13657. var data = b[j];
  13658. if (i == b[j].tool) {
  13659. if (data.type == 2 && a[i].tool[0] == 4) {
  13660. // if(JSON.parse(data.content)[0].anwer){
  13661. var checkL =
  13662. JSON.parse(data.content)[0].anwer instanceof Array
  13663. ? JSON.parse(data.content)[0].anwer
  13664. : JSON.parse(data.content)[0].anwer.split(",");
  13665. for (var z = 0; z < checkL.length; z++) {
  13666. if (!this.checkJson[i][z]) {
  13667. this.checkJson[i].push({
  13668. checkCount: [],
  13669. checkPerson: [],
  13670. rightPerson: [],
  13671. });
  13672. }
  13673. if (!this.checkJson[i][z].checkCount.length) {
  13674. this.checkJson[i][z].checkCount = [];
  13675. let _askItemCount = JSON.parse(data.content)[0].askJson
  13676. .askJson[z].askItem;
  13677. for (var aic = 0; aic < _askItemCount; aic++) {
  13678. this.checkJson[i][z].checkCount.push(0);
  13679. }
  13680. }
  13681. if (checkL[z] instanceof Array) {
  13682. if (
  13683. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13684. checkL[z].sort().join(",")
  13685. ) {
  13686. this.checkJson[i][z].rightPerson.push(data.name);
  13687. }
  13688. for (var q = 0; q < checkL[z].length; q++) {
  13689. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13690. ? this.checkJson[i][z].checkPerson[
  13691. parseInt(checkL[z][q])
  13692. ].push(data.name)
  13693. : (this.checkJson[i][z].checkPerson[
  13694. parseInt(checkL[z][q])
  13695. ] = [data.name]);
  13696. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13697. ? this.checkJson[i][z].checkCount[
  13698. parseInt(checkL[z][q])
  13699. ]++
  13700. : (this.checkJson[i][z].checkCount[
  13701. parseInt(checkL[z][q])
  13702. ] = 1);
  13703. }
  13704. } else {
  13705. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13706. this.checkJson[i][z].rightPerson.push(data.name);
  13707. }
  13708. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13709. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13710. ? this.checkJson[i][z].checkPerson[
  13711. parseInt(checkL[z])
  13712. ].push(data.name)
  13713. : (this.checkJson[i][z].checkPerson[
  13714. parseInt(checkL[z])
  13715. ] = [data.name]);
  13716. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13717. ? this.checkJson[i][z].checkCount[
  13718. parseInt(checkL[z])
  13719. ]++
  13720. : (this.checkJson[i][z].checkCount[
  13721. parseInt(checkL[z])
  13722. ] = 1);
  13723. }
  13724. }
  13725. }
  13726. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13727. var checkL = JSON.parse(data.content)[0].anwer;
  13728. for (var z = 0; z < checkL.length; z++) {
  13729. if (!this.checkJson[i][z]) {
  13730. this.checkJson[i].push({
  13731. checkCount: [],
  13732. checkPerson: [],
  13733. rightPerson: [],
  13734. });
  13735. }
  13736. if (!this.checkJson[i][z].checkCount.length) {
  13737. this.checkJson[i][z].checkCount = [];
  13738. let _askItemCount = JSON.parse(data.content)[0].testJson
  13739. .testJson[z].testItem;
  13740. for (var aic = 0; aic < _askItemCount; aic++) {
  13741. this.checkJson[i][z].checkCount.push(0);
  13742. }
  13743. }
  13744. if (checkL[z] instanceof Array) {
  13745. if (
  13746. JSON.parse(data.content)[0]
  13747. .testJson.testJson[z].answer.sort()
  13748. .join(",") == checkL[z].sort().join(",")
  13749. ) {
  13750. this.checkJson[i][z].rightPerson.push(data.name);
  13751. }
  13752. for (var q = 0; q < checkL[z].length; q++) {
  13753. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13754. ? this.checkJson[i][z].checkPerson[
  13755. parseInt(checkL[z][q])
  13756. ].push(data.name)
  13757. : (this.checkJson[i][z].checkPerson[
  13758. parseInt(checkL[z][q])
  13759. ] = [data.name]);
  13760. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13761. ? this.checkJson[i][z].checkCount[
  13762. parseInt(checkL[z][q])
  13763. ]++
  13764. : (this.checkJson[i][z].checkCount[
  13765. parseInt(checkL[z][q])
  13766. ] = 1);
  13767. }
  13768. } else {
  13769. if (
  13770. JSON.parse(data.content)[0].testJson.testJson[z]
  13771. .answer == checkL[z]
  13772. ) {
  13773. this.checkJson[i][z].rightPerson.push(data.name);
  13774. }
  13775. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13776. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13777. ? this.checkJson[i][z].checkPerson[
  13778. parseInt(checkL[z])
  13779. ].push(data.name)
  13780. : (this.checkJson[i][z].checkPerson[
  13781. parseInt(checkL[z])
  13782. ] = [data.name]);
  13783. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13784. ? this.checkJson[i][z].checkCount[
  13785. parseInt(checkL[z])
  13786. ]++
  13787. : (this.checkJson[i][z].checkCount[
  13788. parseInt(checkL[z])
  13789. ] = 1);
  13790. }
  13791. }
  13792. }
  13793. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13794. var checkL = JSON.parse(data.content);
  13795. for (var z = 0; z < checkL.length; z++) {
  13796. if (!this.checkJson[i][z]) {
  13797. this.checkJson[i].push({
  13798. checkCount: [],
  13799. checkPerson: [],
  13800. rightPerson: [],
  13801. });
  13802. }
  13803. this.checkJson[i][z].checkPerson.push(data.name);
  13804. if (
  13805. checkL[z].chooseSenList.toString() ==
  13806. checkL[z].rightAnswer.toString()
  13807. ) {
  13808. this.checkJson[i][z].rightPerson.push(data.name);
  13809. }
  13810. }
  13811. }
  13812. for (var k = 0; k < d.length; k++) {
  13813. //点赞
  13814. if (d[k].workId == b[j].id) {
  13815. likesCount++;
  13816. if (d[k].likesId == this.userid) {
  13817. isLikes = true;
  13818. }
  13819. }
  13820. }
  13821. for (var l = 0; l < e.length; l++) {
  13822. //评论
  13823. if (e[l].workId == b[j].id) {
  13824. if (e[l].comment != "") {
  13825. commentCount++;
  13826. commentJson.push({
  13827. commentText: e[l].comment,
  13828. commentTime: e[l].commentTime,
  13829. commentPeople: e[l].commentPeople,
  13830. userid: e[l].userid,
  13831. wid: e[l].id,
  13832. });
  13833. }
  13834. }
  13835. }
  13836. if (
  13837. (b[j].type == 1 ||
  13838. b[j].type == 4 ||
  13839. b[j].type == 5 ||
  13840. b[j].type == 6 ||
  13841. b[j].type == 12 ||
  13842. b[j].type == 7) &&
  13843. a[i].tool[0] != 15 &&
  13844. a[i].tool[0] != 4 &&
  13845. a[i].tool[0] != 45 &&
  13846. a[i].tool[0] != 50 &&
  13847. a[i].tool[0] != 32 &&
  13848. a[i].tool[0] != 57 &&
  13849. a[i].tool[0] != 52
  13850. ) {
  13851. if (
  13852. c.indexOf(
  13853. b[j].content
  13854. .split(".")
  13855. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13856. ) != -1 &&
  13857. a[i].tool[0] == 16 &&
  13858. b[j].atool != 50
  13859. ) {
  13860. let _works = {
  13861. userid: b[j].userid,
  13862. ateacher: b[j].ateacher,
  13863. wid: b[j].id,
  13864. works: b[j].content,
  13865. sName: b[j].name,
  13866. type: 1,
  13867. time: b[j].time,
  13868. score: b[j].score,
  13869. img: b[j].img,
  13870. likesCount: likesCount,
  13871. commentCount: commentCount,
  13872. isLikes: isLikes,
  13873. commentJson: commentJson,
  13874. };
  13875. if (this.isGroup) {
  13876. let isGw = 1;
  13877. for (
  13878. var groupI = 0;
  13879. groupI < this.courseGroup.group.length;
  13880. groupI++
  13881. ) {
  13882. let gid = this.courseGroup.group[groupI].id;
  13883. if (
  13884. this.courseGroupStudentUid[gid].indexOf(
  13885. b[j].userid
  13886. ) != -1
  13887. ) {
  13888. isGw = 2;
  13889. this.courseGroup.group[groupI].works[i].push(_works);
  13890. break;
  13891. }
  13892. }
  13893. if (isGw == 1) {
  13894. _worksStudent[i].push(_works);
  13895. }
  13896. } else {
  13897. _worksStudent[i].push(_works);
  13898. }
  13899. _worksStudent2[i].push(_works);
  13900. this.isWorksS[i].push({
  13901. uid: b[j].userid,
  13902. sName: b[j].name,
  13903. });
  13904. } else if (
  13905. y.indexOf(
  13906. b[j].content
  13907. .split(".")
  13908. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13909. ) != -1 &&
  13910. a[i].tool[0] == 16 &&
  13911. b[j].atool != 50
  13912. ) {
  13913. let _works = {
  13914. userid: b[j].userid,
  13915. ateacher: b[j].ateacher,
  13916. wid: b[j].id,
  13917. works: b[j].content,
  13918. sName: b[j].name,
  13919. type: 3,
  13920. time: b[j].time,
  13921. score: b[j].score,
  13922. img: b[j].img,
  13923. likesCount: likesCount,
  13924. commentCount: commentCount,
  13925. isLikes: isLikes,
  13926. commentJson: commentJson,
  13927. };
  13928. if (this.isGroup) {
  13929. let isGw = 1;
  13930. for (
  13931. var groupI = 0;
  13932. groupI < this.courseGroup.group.length;
  13933. groupI++
  13934. ) {
  13935. let gid = this.courseGroup.group[groupI].id;
  13936. if (
  13937. this.courseGroupStudentUid[gid].indexOf(
  13938. b[j].userid
  13939. ) != -1
  13940. ) {
  13941. isGw = 2;
  13942. this.courseGroup.group[groupI].works[i].push(_works);
  13943. break;
  13944. }
  13945. }
  13946. if (isGw == 1) {
  13947. _worksStudent[i].push(_works);
  13948. }
  13949. } else {
  13950. _worksStudent[i].push(_works);
  13951. }
  13952. _worksStudent2[i].push(_works);
  13953. this.isWorksS[i].push({
  13954. uid: b[j].userid,
  13955. sName: b[j].name,
  13956. });
  13957. } else if (b[j].type == 6 && b[j].atool != 50) {
  13958. let _works = {
  13959. userid: b[j].userid,
  13960. ateacher: b[j].ateacher,
  13961. wid: b[j].id,
  13962. works: b[j].content,
  13963. sName: b[j].name,
  13964. type: 4,
  13965. time: b[j].time,
  13966. score: b[j].score,
  13967. img: b[j].img,
  13968. likesCount: likesCount,
  13969. commentCount: commentCount,
  13970. isLikes: isLikes,
  13971. commentJson: commentJson,
  13972. };
  13973. _worksStudent[i].push(_works);
  13974. _worksStudent2[i].push(_works);
  13975. this.isWorksS[i].push({
  13976. uid: b[j].userid,
  13977. sName: b[j].name,
  13978. });
  13979. } else if (b[j].type == 7 && b[j].atool != 50) {
  13980. let _work = {
  13981. userid: b[j].userid,
  13982. ateacher: b[j].ateacher,
  13983. wid: b[j].id,
  13984. works: b[j].content,
  13985. sName: b[j].name,
  13986. type: 5,
  13987. time: b[j].time,
  13988. score: b[j].score,
  13989. img: b[j].img,
  13990. likesCount: likesCount,
  13991. commentCount: commentCount,
  13992. isLikes: isLikes,
  13993. commentJson: commentJson,
  13994. };
  13995. _worksStudent[i].push(_work);
  13996. _worksStudent2[i].push(_work);
  13997. this.isWorksS[i].push({
  13998. uid: b[j].userid,
  13999. sName: b[j].name,
  14000. });
  14001. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14002. let _works = {
  14003. userid: b[j].userid,
  14004. ateacher: b[j].ateacher,
  14005. wid: b[j].id,
  14006. works: b[j].content,
  14007. sName: b[j].name,
  14008. type: 12,
  14009. time: b[j].time,
  14010. score: b[j].score,
  14011. img: b[j].img,
  14012. likesCount: likesCount,
  14013. commentCount: commentCount,
  14014. isLikes: isLikes,
  14015. commentJson: commentJson,
  14016. };
  14017. if (this.isGroup) {
  14018. let isGw = 1;
  14019. for (
  14020. var groupI = 0;
  14021. groupI < this.courseGroup.group.length;
  14022. groupI++
  14023. ) {
  14024. let gid = this.courseGroup.group[groupI].id;
  14025. if (
  14026. this.courseGroupStudentUid[gid].indexOf(
  14027. b[j].userid
  14028. ) != -1
  14029. ) {
  14030. isGw = 2;
  14031. this.courseGroup.group[groupI].works[i].push(_works);
  14032. break;
  14033. }
  14034. }
  14035. if (isGw == 1) {
  14036. _worksStudent[i].push(_works);
  14037. }
  14038. } else {
  14039. _worksStudent[i].push(_works);
  14040. }
  14041. _worksStudent2[i].push(_works);
  14042. this.isWorksS[i].push({
  14043. uid: b[j].userid,
  14044. sName: b[j].name,
  14045. });
  14046. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14047. let _works = {
  14048. userid: b[j].userid,
  14049. ateacher: b[j].ateacher,
  14050. wid: b[j].id,
  14051. works: b[j].content,
  14052. sName: b[j].name,
  14053. type: 0,
  14054. time: b[j].time,
  14055. score: b[j].score,
  14056. img: b[j].img,
  14057. likesCount: likesCount,
  14058. commentCount: commentCount,
  14059. isLikes: isLikes,
  14060. commentJson: commentJson,
  14061. };
  14062. if (this.isGroup) {
  14063. let isGw = 1;
  14064. for (
  14065. var groupI = 0;
  14066. groupI < this.courseGroup.group.length;
  14067. groupI++
  14068. ) {
  14069. let gid = this.courseGroup.group[groupI].id;
  14070. if (
  14071. this.courseGroupStudentUid[gid].indexOf(
  14072. b[j].userid
  14073. ) != -1
  14074. ) {
  14075. isGw = 2;
  14076. this.courseGroup.group[groupI].works[i].push(_works);
  14077. break;
  14078. }
  14079. }
  14080. if (isGw == 1) {
  14081. _worksStudent[i].push(_works);
  14082. }
  14083. } else {
  14084. _worksStudent[i].push(_works);
  14085. }
  14086. _worksStudent2[i].push(_works);
  14087. this.isWorksS[i].push({
  14088. uid: b[j].userid,
  14089. sName: b[j].name,
  14090. });
  14091. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14092. let _works = {
  14093. userid: b[j].userid,
  14094. ateacher: b[j].ateacher,
  14095. wid: b[j].id,
  14096. works: b[j].content,
  14097. sName: b[j].name,
  14098. type: 0,
  14099. time: b[j].time,
  14100. score: b[j].score,
  14101. img: b[j].img,
  14102. likesCount: likesCount,
  14103. commentCount: commentCount,
  14104. isLikes: isLikes,
  14105. commentJson: commentJson,
  14106. };
  14107. if (this.isGroup) {
  14108. let isGw = 1;
  14109. for (
  14110. var groupI = 0;
  14111. groupI < this.courseGroup.group.length;
  14112. groupI++
  14113. ) {
  14114. let gid = this.courseGroup.group[groupI].id;
  14115. if (
  14116. this.courseGroupStudentUid[gid].indexOf(
  14117. b[j].userid
  14118. ) != -1
  14119. ) {
  14120. isGw = 2;
  14121. this.courseGroup.group[groupI].works[i].push(_works);
  14122. break;
  14123. }
  14124. }
  14125. if (isGw == 1) {
  14126. _worksStudent[i].push(_works);
  14127. }
  14128. } else {
  14129. _worksStudent[i].push(_works);
  14130. }
  14131. _worksStudent2[i].push(_works);
  14132. this.isWorksS[i].push({
  14133. uid: b[j].userid,
  14134. sName: b[j].name,
  14135. });
  14136. }
  14137. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14138. let _works = {
  14139. userid: b[j].userid,
  14140. ateacher: b[j].ateacher,
  14141. wid: b[j].id,
  14142. works: b[j].content,
  14143. sName: b[j].name,
  14144. type: 2,
  14145. time: b[j].time,
  14146. score: b[j].score,
  14147. img: b[j].img,
  14148. likesCount: likesCount,
  14149. commentCount: commentCount,
  14150. isLikes: isLikes,
  14151. commentJson: commentJson,
  14152. };
  14153. if (this.isGroup) {
  14154. let isGw = 1;
  14155. for (
  14156. var groupI = 0;
  14157. groupI < this.courseGroup.group.length;
  14158. groupI++
  14159. ) {
  14160. let gid = this.courseGroup.group[groupI].id;
  14161. if (
  14162. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14163. -1
  14164. ) {
  14165. isGw = 2;
  14166. this.courseGroup.group[groupI].works[i].push(_works);
  14167. break;
  14168. }
  14169. }
  14170. if (isGw == 1) {
  14171. _worksStudent[i].push(_works);
  14172. }
  14173. } else {
  14174. _worksStudent[i].push(_works);
  14175. }
  14176. _worksStudent2[i].push(_works);
  14177. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14178. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14179. //问卷
  14180. let _work = {
  14181. userid: b[j].userid,
  14182. ateacher: b[j].ateacher,
  14183. wid: b[j].id,
  14184. works: b[j].content,
  14185. sName: b[j].name,
  14186. type: 2,
  14187. time: b[j].time,
  14188. score: b[j].score,
  14189. img: b[j].img,
  14190. likesCount: likesCount,
  14191. commentCount: commentCount,
  14192. isLikes: isLikes,
  14193. commentJson: commentJson,
  14194. };
  14195. _worksStudent[i].push(_work);
  14196. _worksStudent2[i].push(_work);
  14197. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14198. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14199. //选择题
  14200. let _work = {
  14201. userid: b[j].userid,
  14202. ateacher: b[j].ateacher,
  14203. wid: b[j].id,
  14204. works: b[j].content,
  14205. sName: b[j].name,
  14206. type: 8,
  14207. time: b[j].time,
  14208. score: b[j].score,
  14209. img: b[j].img,
  14210. likesCount: likesCount,
  14211. commentCount: commentCount,
  14212. isLikes: isLikes,
  14213. commentJson: commentJson,
  14214. };
  14215. _worksStudent[i].push(_work);
  14216. _worksStudent2[i].push(_work);
  14217. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14218. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14219. //选择题
  14220. let _work = {
  14221. userid: b[j].userid,
  14222. ateacher: b[j].ateacher,
  14223. wid: b[j].id,
  14224. works: b[j].content,
  14225. sName: b[j].name,
  14226. type: 9,
  14227. time: b[j].time,
  14228. score: b[j].score,
  14229. img: b[j].img,
  14230. likesCount: likesCount,
  14231. commentCount: commentCount,
  14232. isLikes: isLikes,
  14233. commentJson: commentJson,
  14234. };
  14235. _worksStudent[i].push(_work);
  14236. _worksStudent2[i].push(_work);
  14237. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14238. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14239. //选择题
  14240. let _work = {
  14241. userid: b[j].userid,
  14242. ateacher: b[j].ateacher,
  14243. wid: b[j].id,
  14244. works: b[j].content,
  14245. sName: b[j].name,
  14246. type: 10,
  14247. time: b[j].time,
  14248. score: b[j].score,
  14249. img: b[j].img,
  14250. likesCount: likesCount,
  14251. commentCount: commentCount,
  14252. isLikes: isLikes,
  14253. commentJson: commentJson,
  14254. };
  14255. _worksStudent[i].push(_work);
  14256. _worksStudent2[i].push(_work);
  14257. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14258. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14259. //选择题
  14260. let _work = {
  14261. userid: b[j].userid,
  14262. ateacher: b[j].ateacher,
  14263. wid: b[j].id,
  14264. works: b[j].content,
  14265. sName: b[j].name,
  14266. type: 13,
  14267. time: b[j].time,
  14268. score: b[j].score,
  14269. img: b[j].img,
  14270. likesCount: likesCount,
  14271. commentCount: commentCount,
  14272. isLikes: isLikes,
  14273. commentJson: commentJson,
  14274. };
  14275. _worksStudent[i].push(_work);
  14276. _worksStudent2[i].push(_work);
  14277. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14278. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14279. //选择题
  14280. let _work = {
  14281. userid: b[j].userid,
  14282. ateacher: b[j].ateacher,
  14283. wid: b[j].id,
  14284. works: b[j].content,
  14285. sName: b[j].name,
  14286. type: 16,
  14287. time: b[j].time,
  14288. score: b[j].score,
  14289. img: b[j].img,
  14290. likesCount: likesCount,
  14291. commentCount: commentCount,
  14292. isLikes: isLikes,
  14293. commentJson: commentJson,
  14294. };
  14295. _worksStudent[i].push(_work);
  14296. _worksStudent2[i].push(_work);
  14297. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14298. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14299. let _gindex = JSON.parse(b[j].content);
  14300. if (
  14301. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14302. b[j].userid
  14303. ) != -1
  14304. ) {
  14305. let _work = {
  14306. userid: b[j].userid,
  14307. ateacher: b[j].ateacher,
  14308. wid: b[j].id,
  14309. works: _gindex.url,
  14310. sName: b[j].name,
  14311. type: _gindex.type,
  14312. time: b[j].time,
  14313. score: b[j].score,
  14314. img: b[j].img,
  14315. likesCount: likesCount,
  14316. commentCount: commentCount,
  14317. isLikes: isLikes,
  14318. commentJson: commentJson,
  14319. };
  14320. _worksStudent[i][_gindex.groupIndex].push(_work);
  14321. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14322. }
  14323. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14324. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14325. let _work = {
  14326. userid: b[j].userid,
  14327. ateacher: b[j].ateacher,
  14328. wid: b[j].id,
  14329. works: b[j].content,
  14330. sName: b[j].name ? b[j].name : b[j].userid,
  14331. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14332. time: b[j].time,
  14333. score: b[j].score,
  14334. img: b[j].img,
  14335. likesCount: likesCount,
  14336. commentCount: commentCount,
  14337. isLikes: isLikes,
  14338. commentJson: commentJson,
  14339. };
  14340. _worksStudent[i].push(_work);
  14341. _worksStudent2[i].push(_work);
  14342. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14343. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14344. let _work = {
  14345. userid: b[j].userid,
  14346. ateacher: b[j].ateacher,
  14347. wid: b[j].id,
  14348. works: b[j].content,
  14349. sName: b[j].name ? b[j].name : b[j].userid,
  14350. type: 12,
  14351. time: b[j].time,
  14352. score: b[j].score,
  14353. img: b[j].img,
  14354. likesCount: likesCount,
  14355. commentCount: commentCount,
  14356. isLikes: isLikes,
  14357. commentJson: commentJson,
  14358. };
  14359. _worksStudent[i].push(_work);
  14360. _worksStudent2[i].push(_work);
  14361. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14362. } else if (
  14363. a[i].tool[0] == 57 &&
  14364. b[j].atool == 57 &&
  14365. b[j].type == 12
  14366. ) {
  14367. let _work = {
  14368. userid: b[j].userid,
  14369. ateacher: b[j].ateacher,
  14370. wid: b[j].id,
  14371. works: b[j].content,
  14372. sName: b[j].name ? b[j].name : b[j].userid,
  14373. type: 12,
  14374. time: b[j].time,
  14375. score: b[j].score,
  14376. img: b[j].img,
  14377. likesCount: likesCount,
  14378. commentCount: commentCount,
  14379. isLikes: isLikes,
  14380. commentJson: commentJson,
  14381. };
  14382. _worksStudent[i].push(_work);
  14383. _worksStudent2[i].push(_work);
  14384. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14385. } else if (
  14386. a[i].tool[0] == 57 &&
  14387. b[j].atool == 57 &&
  14388. b[j].type == 15
  14389. ) {
  14390. let _work = {
  14391. userid: b[j].userid,
  14392. ateacher: b[j].ateacher,
  14393. wid: b[j].id,
  14394. works: b[j].content,
  14395. sName: b[j].name ? b[j].name : b[j].userid,
  14396. type: 15,
  14397. time: b[j].time,
  14398. score: b[j].score,
  14399. img: b[j].img,
  14400. likesCount: likesCount,
  14401. commentCount: commentCount,
  14402. isLikes: isLikes,
  14403. commentJson: commentJson,
  14404. };
  14405. _worksStudent[i].push(_work);
  14406. _worksStudent2[i].push(_work);
  14407. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14408. }
  14409. }
  14410. }
  14411. if (_worksStudent[i] && _worksStudent[i].length) {
  14412. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14413. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14414. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14415. var scoreA = parseFloat(jscoreA);
  14416. var scoreB = parseFloat(jscoreB);
  14417. if (scoreA == scoreB) {
  14418. return b.likesCount - a.likesCount;
  14419. }
  14420. return scoreB - scoreA;
  14421. });
  14422. if (this.isGroup) {
  14423. for (
  14424. var groupI = 0;
  14425. groupI < this.courseGroup.group.length;
  14426. groupI++
  14427. ) {
  14428. this.courseGroup.group[groupI].works[i] =
  14429. this.courseGroup.group[groupI].works[i].sort(function (
  14430. a,
  14431. b
  14432. ) {
  14433. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14434. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14435. var scoreA = parseFloat(jscoreA);
  14436. var scoreB = parseFloat(jscoreB);
  14437. if (scoreA == scoreB) {
  14438. return b.likesCount - a.likesCount;
  14439. }
  14440. return scoreB - scoreA;
  14441. });
  14442. }
  14443. }
  14444. }
  14445. }
  14446. this.timeWorkList = _worksStudent2;
  14447. for (var i = 0; i < a.length; i++) {
  14448. for (var j = 0; j < b.length; j++) {
  14449. var data = b[j];
  14450. if (i == b[j].tool) {
  14451. if (data.type == 2 || data.type == 8) {
  14452. for (var z = 0; z < this.checkJson[i].length; z++) {
  14453. this.checkJson[i][z].checkPerent = [];
  14454. this.checkJson[i][z].right = Math.round(
  14455. (this.checkJson[i][z].rightPerson.length /
  14456. parseInt(_worksStudent[i].length)) *
  14457. 100
  14458. );
  14459. let aaaa = this.checkJson[i][z];
  14460. for (
  14461. var k = 0;
  14462. k < this.checkJson[i][z].checkCount.length;
  14463. k++
  14464. ) {
  14465. this.checkJson[i][z].checkPerent.push(
  14466. Math.round(
  14467. (this.checkJson[i][z].checkCount[k] /
  14468. parseInt(_worksStudent[i].length)) *
  14469. 100
  14470. )
  14471. );
  14472. }
  14473. }
  14474. } else if (data.type == 9) {
  14475. for (var z = 0; z < this.checkJson[i].length; z++) {
  14476. this.checkJson[i][z].checkPerent = [];
  14477. this.checkJson[i][z].right = Math.round(
  14478. (this.checkJson[i][z].rightPerson.length /
  14479. this.checkJson[i][z].checkPerson.length) *
  14480. 100
  14481. );
  14482. }
  14483. }
  14484. }
  14485. }
  14486. }
  14487. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14488. this.joinGroup(gindex);
  14489. }
  14490. this.worksStudent = _worksStudent;
  14491. this.selectWorksStudent();
  14492. })
  14493. .catch((err) => {
  14494. console.error(err);
  14495. });
  14496. },
  14497. pngToWhiteBg(file) {
  14498. const _file = file;
  14499. let read = new FileReader();
  14500. read.readAsDataURL(file); // 文件转base64
  14501. return new Promise((resolve, reject) => {
  14502. read.onload = (e) => {
  14503. let img = new Image();
  14504. img.src = e.target.result;
  14505. img.onload = async () => {
  14506. // 生成canvas
  14507. let canvas = document.createElement("canvas");
  14508. let context = canvas.getContext("2d");
  14509. // 绘制图片到canvas上
  14510. canvas.width = img.width;
  14511. canvas.height = img.height;
  14512. // 在canvas绘制前填充白色背景
  14513. context.fillStyle = "#fff";
  14514. context.fillRect(0, 0, canvas.width, canvas.height);
  14515. context.drawImage(img, 0, 0);
  14516. let base64 = canvas.toDataURL(file["type"], 1);
  14517. let newFile = this.dataUrlToFile(base64, _file);
  14518. resolve(newFile);
  14519. };
  14520. };
  14521. });
  14522. },
  14523. dataUrlToFile(dataurl, file) {
  14524. let arr = dataurl.split(","),
  14525. mime = arr[0].match(/:(.*?);/)[1],
  14526. bstr = atob(arr[1]),
  14527. n = bstr.length,
  14528. u8arr = new Uint8Array(n);
  14529. while (n--) {
  14530. u8arr[n] = bstr.charCodeAt(n);
  14531. }
  14532. // return new Blob([u8arr], { type: mime });
  14533. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14534. type: mime,
  14535. });
  14536. },
  14537. async beforeUpload1(event, type, i) {
  14538. // this.$message.success('进入上传')
  14539. var file = "";
  14540. if (type == 5) {
  14541. file = event;
  14542. } else {
  14543. file = event.target.files[0];
  14544. }
  14545. var credentials = {
  14546. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14547. secretAccessKey: "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",
  14548. }; //秘钥形式的登录上传
  14549. window.AWS.config.update(credentials);
  14550. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14551. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14552. var _this = this;
  14553. _this.progress = 0;
  14554. _this.proVisible = true;
  14555. _this.isFinishSize = 0;
  14556. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14557. var b = [
  14558. "DOC",
  14559. "DOCX",
  14560. "DOCM",
  14561. "DOTM",
  14562. "DOTX",
  14563. "PPTX",
  14564. "PPSX",
  14565. "PPT",
  14566. "PPS",
  14567. "PPTM",
  14568. "POTM",
  14569. "PPAM",
  14570. "POTX",
  14571. "PPSM",
  14572. ];
  14573. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14574. var photoA = [
  14575. "BMP",
  14576. "GIF",
  14577. "PNG",
  14578. "JPGE",
  14579. "JPEG",
  14580. "JPG",
  14581. "TIF",
  14582. "PCX",
  14583. "TGA",
  14584. "EXIF",
  14585. "FPX",
  14586. "SVG",
  14587. "APNG",
  14588. ];
  14589. // if (
  14590. // b.indexOf(
  14591. // file.name
  14592. // .split(".")
  14593. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14594. // ) != -1
  14595. // ) {
  14596. // if (file.size / 1024 / 1024 > 10) {
  14597. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14598. // return;
  14599. // }
  14600. // } else if (
  14601. // excelA.indexOf(
  14602. // file.name
  14603. // .split(".")
  14604. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14605. // ) != "-1"
  14606. // ) {
  14607. // if (file.size / 1024 / 1024 > 5) {
  14608. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14609. // return;
  14610. // }
  14611. // }
  14612. if (
  14613. photoA.indexOf(
  14614. file.name
  14615. .split(".")
  14616. [file.name.split(".").length - 1].toLocaleUpperCase()
  14617. ) != -1 &&
  14618. type != 4
  14619. ) {
  14620. // const blob = await imageConversion.compress(file, 0.8)
  14621. file = await this.pngToWhiteBg(file);
  14622. const blob = await imageConversion.compressAccurately(file, 256);
  14623. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14624. file = new File([blob], file.name, { type: file.type });
  14625. }
  14626. if (file) {
  14627. var params = {
  14628. Key:
  14629. file.name.split(".")[0] +
  14630. new Date().getTime() +
  14631. "." +
  14632. file.name.split(".")[file.name.split(".").length - 1],
  14633. ContentType: file.type,
  14634. Body: file,
  14635. "Access-Control-Allow-Credentials": "*",
  14636. ACL: "public-read",
  14637. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14638. var options = {
  14639. // partSize: 2048 * 1024 * 1024,
  14640. partSize: 1024 * 1024 * 1024,
  14641. queueSize: 2,
  14642. leavePartsOnError: true,
  14643. };
  14644. bucket
  14645. .upload(params, options)
  14646. .on("httpUploadProgress", function (evt) {
  14647. //这里可以写进度条
  14648. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14649. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14650. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14651. })
  14652. .send(function (err, data) {
  14653. _this.progress = 100;
  14654. _this.isFinishSize = _this.isAllSize;
  14655. setTimeout(() => {
  14656. _this.proVisible = false;
  14657. }, 1000);
  14658. if (err) {
  14659. var a = _this.$refs.upload1.uploadFiles;
  14660. a.splice(a.length - 1, a.length);
  14661. _this.$message.error("上传失败");
  14662. } else {
  14663. // _this.$message.success('上传成功')
  14664. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14665. var c = [
  14666. "AVI",
  14667. "NAVI",
  14668. "MPEG",
  14669. "ASF",
  14670. "MOV",
  14671. "WMV",
  14672. "3GP",
  14673. "RM",
  14674. "RMVB",
  14675. "FLV",
  14676. "F4V",
  14677. "H.264",
  14678. "H.265",
  14679. "REAL VIDEO",
  14680. "MKV",
  14681. "WebM",
  14682. "HDDVD",
  14683. "MP4",
  14684. "MPG",
  14685. "M4V",
  14686. "MGV",
  14687. "OGV",
  14688. "QTM",
  14689. "STR",
  14690. "AMC",
  14691. "DVX",
  14692. "EVO",
  14693. "DAT",
  14694. "OGG",
  14695. "OGM",
  14696. ];
  14697. if (type == 1) {
  14698. _this.studyJuri[0].cover.push({
  14699. name: file.name,
  14700. url: data.Location,
  14701. uid: file.uid,
  14702. });
  14703. if (
  14704. c.indexOf(
  14705. _this.studyJuri[0].cover[0].url
  14706. .split(".")
  14707. [
  14708. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14709. ].toLocaleUpperCase()
  14710. ) != -1
  14711. ) {
  14712. _this.fileType = 2;
  14713. } else if (
  14714. b.indexOf(
  14715. _this.studyJuri[0].cover[0].url
  14716. .split(".")
  14717. [
  14718. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14719. ].toLocaleUpperCase()
  14720. ) != -1
  14721. ) {
  14722. _this.fileType = 1;
  14723. } else if (
  14724. photoA.indexOf(
  14725. _this.studyJuri[0].cover[0].url
  14726. .split(".")
  14727. [
  14728. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14729. ].toLocaleUpperCase()
  14730. ) != -1
  14731. ) {
  14732. _this.fileType = 0;
  14733. } else {
  14734. _this.fileType = 3;
  14735. }
  14736. _this.imgChange(null, null, type);
  14737. } else if (type == 2) {
  14738. _this.upToolImg = data.Location;
  14739. _this.imgChange(null, null, type);
  14740. _this.addCourseWorks(i);
  14741. } else if (type == 4) {
  14742. _this.addPz("3", data.Location);
  14743. } else if (type == 5) {
  14744. _this.addImgDrawImG(data.Location);
  14745. } else if (type == 6) {
  14746. var _ftype = 1;
  14747. if (
  14748. c.indexOf(
  14749. data.Location.split(".")[
  14750. data.Location.split(".").length - 1
  14751. ].toLocaleUpperCase()
  14752. ) != -1
  14753. ) {
  14754. _ftype = 5;
  14755. } else if (
  14756. b.indexOf(
  14757. data.Location.split(".")[
  14758. data.Location.split(".").length - 1
  14759. ].toLocaleUpperCase()
  14760. ) != -1
  14761. ) {
  14762. _ftype = 4;
  14763. } else {
  14764. _ftype = 1;
  14765. }
  14766. _this.plworkFile.push({
  14767. name: file.name,
  14768. url: data.Location,
  14769. uid: file.uid,
  14770. fileType: _ftype,
  14771. username:
  14772. _this.plworkFile.length > 10
  14773. ? _this.plworkFile.length + 1
  14774. : "0" + (_this.plworkFile.length + 1),
  14775. });
  14776. } else if (type == 7) {
  14777. _this.addCourseWorksGong(i, data.Location, 32);
  14778. } else if (type == 8) {
  14779. _this.addCourseWorksGong(i, data.Location, 57);
  14780. }
  14781. _this.imgChange(null, null, type);
  14782. console.log(data.Location);
  14783. // _this.$message.success('上传成功'+data.Location)
  14784. }
  14785. });
  14786. }
  14787. },
  14788. async beforeUpload3(event, type, i) {
  14789. // this.$message.success('进入上传')
  14790. let file = "";
  14791. let cfindex2 = 0;
  14792. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14793. file = event.target.files[cfindex];
  14794. var credentials = {
  14795. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14796. secretAccessKey: "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",
  14797. }; //秘钥形式的登录上传
  14798. window.AWS.config.update(credentials);
  14799. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14800. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14801. var _this = this;
  14802. // _this.progress = 0;
  14803. _this.proVisible2 = true;
  14804. var b = [
  14805. "DOC",
  14806. "DOCX",
  14807. "DOCM",
  14808. "DOTM",
  14809. "DOTX",
  14810. "PPTX",
  14811. "PPSX",
  14812. "PPT",
  14813. "PPS",
  14814. "PPTM",
  14815. "POTM",
  14816. "PPAM",
  14817. "POTX",
  14818. "PPSM",
  14819. ];
  14820. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14821. var photoA = [
  14822. "BMP",
  14823. "GIF",
  14824. "PNG",
  14825. "JPGE",
  14826. "JPG",
  14827. "TIF",
  14828. "PCX",
  14829. "TGA",
  14830. "EXIF",
  14831. "FPX",
  14832. "SVG",
  14833. "APNG",
  14834. ];
  14835. if (
  14836. photoA.indexOf(
  14837. file.name
  14838. .split(".")
  14839. [file.name.split(".").length - 1].toLocaleUpperCase()
  14840. ) != -1 &&
  14841. type != 4
  14842. ) {
  14843. // const blob = await imageConversion.compress(file, 0.8)
  14844. file = await this.pngToWhiteBg(file);
  14845. const blob = await imageConversion.compressAccurately(file, 256);
  14846. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14847. file = new File([blob], file.name, { type: file.type });
  14848. }
  14849. if (file) {
  14850. var params = {
  14851. Key:
  14852. file.name.split(".")[0] +
  14853. new Date().getTime() +
  14854. "." +
  14855. file.name.split(".")[file.name.split(".").length - 1],
  14856. ContentType: file.type,
  14857. Body: file,
  14858. "Access-Control-Allow-Credentials": "*",
  14859. ACL: "public-read",
  14860. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14861. var options = {
  14862. // partSize: 2048 * 1024 * 1024,
  14863. partSize: 1024 * 1024 * 1024,
  14864. queueSize: 2,
  14865. leavePartsOnError: true,
  14866. };
  14867. bucket
  14868. .upload(params, options)
  14869. .on("httpUploadProgress", function (evt) {
  14870. //这里可以写进度条
  14871. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14872. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14873. })
  14874. .send(function (err, data) {
  14875. // _this.progress = 100;
  14876. cfindex2++;
  14877. setTimeout(() => {
  14878. if (
  14879. cfindex2 == event.target.files.length - 1 ||
  14880. cfindex2 > event.target.files.length - 1
  14881. ) {
  14882. _this.proVisible2 = false;
  14883. }
  14884. }, 1000);
  14885. if (err) {
  14886. var a = _this.$refs.upload1.uploadFiles;
  14887. a.splice(a.length - 1, a.length);
  14888. _this.$message.error("上传失败");
  14889. } else {
  14890. // _this.$message.success('上传成功')
  14891. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14892. var c = [
  14893. "AVI",
  14894. "NAVI",
  14895. "MPEG",
  14896. "ASF",
  14897. "MOV",
  14898. "WMV",
  14899. "3GP",
  14900. "RM",
  14901. "RMVB",
  14902. "FLV",
  14903. "F4V",
  14904. "H.264",
  14905. "H.265",
  14906. "REAL VIDEO",
  14907. "MKV",
  14908. "WebM",
  14909. "HDDVD",
  14910. "MP4",
  14911. "MPG",
  14912. "M4V",
  14913. "MGV",
  14914. "OGV",
  14915. "QTM",
  14916. "STR",
  14917. "AMC",
  14918. "DVX",
  14919. "EVO",
  14920. "DAT",
  14921. "OGG",
  14922. "OGM",
  14923. ];
  14924. if (type == 1) {
  14925. _this.studyJuri[0].cover.push({
  14926. name: file.name,
  14927. url: data.Location,
  14928. uid: file.uid,
  14929. });
  14930. if (
  14931. c.indexOf(
  14932. _this.studyJuri[0].cover[0].url
  14933. .split(".")
  14934. [
  14935. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14936. ].toLocaleUpperCase()
  14937. ) != -1
  14938. ) {
  14939. _this.fileType = 2;
  14940. } else if (
  14941. b.indexOf(
  14942. _this.studyJuri[0].cover[0].url
  14943. .split(".")
  14944. [
  14945. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14946. ].toLocaleUpperCase()
  14947. ) != -1
  14948. ) {
  14949. _this.fileType = 1;
  14950. } else {
  14951. _this.fileType = 0;
  14952. }
  14953. _this.imgChange(null, null, type);
  14954. } else if (type == 2) {
  14955. _this.upToolImg = data.Location;
  14956. _this.imgChange(null, null, type);
  14957. _this.addCourseWorks(i);
  14958. } else if (type == 4) {
  14959. _this.addPz("3", data.Location);
  14960. } else if (type == 5) {
  14961. _this.addImgDrawImG(data.Location);
  14962. } else if (type == 6) {
  14963. var _ftype = 1;
  14964. if (
  14965. c.indexOf(
  14966. data.Location.split(".")[
  14967. data.Location.split(".").length - 1
  14968. ].toLocaleUpperCase()
  14969. ) != -1
  14970. ) {
  14971. _ftype = 5;
  14972. } else if (
  14973. b.indexOf(
  14974. data.Location.split(".")[
  14975. data.Location.split(".").length - 1
  14976. ].toLocaleUpperCase()
  14977. ) != -1
  14978. ) {
  14979. _ftype = 4;
  14980. } else {
  14981. _ftype = 1;
  14982. }
  14983. _this.plworkFile.push({
  14984. name: file.name,
  14985. url: data.Location,
  14986. uid: file.uid,
  14987. fileType: _ftype,
  14988. username:
  14989. _this.plworkFile.length + 1 > 9
  14990. ? _this.plworkFile.length + 1
  14991. : "0" + (_this.plworkFile.length + 1),
  14992. });
  14993. }
  14994. _this.imgChange(null, null, type);
  14995. console.log(data.Location);
  14996. // _this.$message.success('上传成功'+data.Location)
  14997. }
  14998. });
  14999. }
  15000. }
  15001. },
  15002. beforeUpload2(event, type) {
  15003. var file = event.target.files[0];
  15004. var credentials = {
  15005. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15006. secretAccessKey: "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",
  15007. }; //秘钥形式的登录上传
  15008. window.AWS.config.update(credentials);
  15009. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15010. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15011. var _this = this;
  15012. _this.progress = 0;
  15013. _this.proVisible = true;
  15014. if (file) {
  15015. var params = {
  15016. Key:
  15017. file.name.split(".")[0] +
  15018. new Date().getTime() +
  15019. "." +
  15020. file.name.split(".")[file.name.split(".").length - 1],
  15021. ContentType: file.type,
  15022. Body: file,
  15023. "Access-Control-Allow-Credentials": "*",
  15024. ACL: "public-read",
  15025. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15026. var options = {
  15027. partSize: 2048 * 1024 * 1024,
  15028. queueSize: 2,
  15029. leavePartsOnError: true,
  15030. };
  15031. bucket
  15032. .upload(params, options)
  15033. .on("httpUploadProgress", function (evt) {
  15034. //这里可以写进度条
  15035. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15036. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15037. })
  15038. .send(function (err, data) {
  15039. _this.progress = 100;
  15040. setTimeout(() => {
  15041. _this.proVisible = false;
  15042. }, 1000);
  15043. if (err) {
  15044. var a = _this.$refs.upload1.uploadFiles;
  15045. a.splice(a.length - 1, a.length);
  15046. _this.$message.error("上传失败");
  15047. } else {
  15048. if (type == 2) {
  15049. _this.studyJuri[0].upVedio.push({
  15050. name: file.name,
  15051. url: data.Location,
  15052. uid: file.uid,
  15053. });
  15054. _this.imgChange(null, null, type);
  15055. } else if (type == 3) {
  15056. _this.studyJuri[0].upFile.push({
  15057. name: file.name,
  15058. url: data.Location,
  15059. uid: file.uid,
  15060. });
  15061. _this.imgChange(null, null, type);
  15062. }
  15063. console.log(data.Location);
  15064. }
  15065. });
  15066. }
  15067. },
  15068. allScrell() {
  15069. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15070. },
  15071. nextOrpreSteps(t) {
  15072. if (this.IsFollow && this.tType == 2) {
  15073. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15074. return;
  15075. }
  15076. var b = this.chapInfoList.length - 1;
  15077. if (t == 0) {
  15078. if (this.courseType == 0) {
  15079. if (this.taskCount == 0) {
  15080. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15081. if (this.IsLookOpen) {
  15082. if (
  15083. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15084. ) {
  15085. if (
  15086. this.courseDetail.userid != this.userid &&
  15087. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15088. ) {
  15089. this.$message.error("任务未解锁");
  15090. } else {
  15091. this.$message.error("上一任务未解锁");
  15092. }
  15093. return;
  15094. }
  15095. }
  15096. this.navList[this.courseType].isOpen = false;
  15097. this.courseType = b;
  15098. this.taskCount =
  15099. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15100. .length - 1;
  15101. this.navList[this.courseType].isOpen = true;
  15102. } else {
  15103. this.taskCount--;
  15104. }
  15105. } else {
  15106. if (this.taskCount == 0) {
  15107. this.navList[this.courseType].isOpen = false;
  15108. this.courseType--;
  15109. this.taskCount =
  15110. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15111. .length - 1;
  15112. this.navList[this.courseType].isOpen = true;
  15113. } else {
  15114. this.taskCount--;
  15115. }
  15116. }
  15117. } else {
  15118. if (this.courseType == b) {
  15119. if (
  15120. this.taskCount ==
  15121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15122. 1
  15123. ) {
  15124. this.navList[this.courseType].isOpen = false;
  15125. this.courseType = 0;
  15126. this.taskCount = 0;
  15127. this.navList[this.courseType].isOpen = true;
  15128. } else {
  15129. var bbb = parseInt(this.taskCount) + 1;
  15130. if (
  15131. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15132. .isLook &&
  15133. this.courseDetail.userid != this.userid &&
  15134. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15135. this.IsLookOpen
  15136. ) {
  15137. this.$message.error("任务未解锁");
  15138. return;
  15139. }
  15140. this.taskCount++;
  15141. if (this.IsLookOpen) {
  15142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15143. this.taskCount
  15144. ].isLook = true;
  15145. this.addCourseState(3);
  15146. }
  15147. }
  15148. } else {
  15149. if (
  15150. this.taskCount ==
  15151. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15152. 1
  15153. ) {
  15154. var bbb = parseInt(this.courseType) + 1;
  15155. if (
  15156. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15157. this.courseDetail.userid != this.userid &&
  15158. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15159. this.IsLookOpen
  15160. ) {
  15161. this.$message.error("任务未解锁");
  15162. return;
  15163. }
  15164. this.navList[this.courseType].isOpen = false;
  15165. this.courseType++;
  15166. this.taskCount = 0;
  15167. this.navList[this.courseType].isOpen = true;
  15168. } else {
  15169. var bbb = parseInt(this.taskCount) + 1;
  15170. if (
  15171. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15172. .isLook &&
  15173. this.courseDetail.userid != this.userid &&
  15174. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15175. this.IsLookOpen
  15176. ) {
  15177. this.$message.error("任务未解锁");
  15178. return;
  15179. }
  15180. this.taskCount++;
  15181. }
  15182. if (this.IsLookOpen) {
  15183. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15184. this.taskCount
  15185. ].isLook = true;
  15186. this.addCourseState(3);
  15187. }
  15188. }
  15189. // if (
  15190. // this.taskCount ==
  15191. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15192. // ) {
  15193. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15194. // } else {
  15195. // this.taskCount++;
  15196. // }
  15197. }
  15198. document.scrollingElement.scrollTop = 0;
  15199. this.showType = 0;
  15200. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15201. // if (this.vedio[this.taskCount].length > 0) {
  15202. // var a =
  15203. // document.getElementsByClassName("box_course")[this.taskCount]
  15204. // .offsetHeight;
  15205. // document.getElementsByClassName("vedioList")[
  15206. // this.taskCount
  15207. // ].style.height = a + "px";
  15208. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15209. // a - 40 + "px";
  15210. // }
  15211. this.isNoHomeWork = false;
  15212. (this.studyJuri = [
  15213. {
  15214. content: "",
  15215. cover: [],
  15216. upVedio: [],
  15217. upFile: [],
  15218. },
  15219. ]),
  15220. (this.radio = []);
  15221. this.isClickNav = "";
  15222. this.selectPz();
  15223. this.getHomeWork();
  15224. this.getCourseDetail(2);
  15225. this.$forceUpdate();
  15226. },
  15227. openTask(s, n, i) {
  15228. if (this.IsFollow && this.tType == 2) {
  15229. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15230. return;
  15231. }
  15232. if (this.IsLookOpen) {
  15233. if (
  15234. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15235. this.courseDetail.userid != this.userid &&
  15236. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15237. ) {
  15238. this.$message.error("任务未解锁");
  15239. return;
  15240. }
  15241. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15242. if (
  15243. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15244. .isLook
  15245. ) {
  15246. this.$message.error("上一任务未解锁");
  15247. return;
  15248. }
  15249. } else if (s > this.courseType) {
  15250. if (n > 0) {
  15251. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15252. this.$message.error("上一任务未解锁");
  15253. return;
  15254. }
  15255. } else {
  15256. if (
  15257. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15258. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15259. ].isLook
  15260. ) {
  15261. this.$message.error("上一任务未解锁");
  15262. return;
  15263. }
  15264. }
  15265. }
  15266. }
  15267. if (this.navList[s].task[n].isOpen == true) {
  15268. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15269. return;
  15270. }
  15271. this.courseType = s;
  15272. this.navId = i;
  15273. this.taskCount = n;
  15274. this.navList[this.courseType].task[this.taskCount].isOpen =
  15275. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15276. if (this.IsLookOpen) {
  15277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15278. this.taskCount
  15279. ].isLook = true;
  15280. this.addCourseState(3);
  15281. }
  15282. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15283. this.isCloseList[ci].isClose = 0;
  15284. }
  15285. this.showType = 0;
  15286. this.isNoHomeWork = false;
  15287. (this.studyJuri = [
  15288. {
  15289. content: "",
  15290. cover: [],
  15291. upVedio: [],
  15292. upFile: [],
  15293. },
  15294. ]),
  15295. (this.radio = []);
  15296. document.scrollingElement.scrollTop = 0;
  15297. // setTimeout(() => {
  15298. // let a = document.getElementById(i);
  15299. // if (a.offsetTop - 110 == 0) {
  15300. // window.scrollTo(0, 0);
  15301. // } else {
  15302. // window.scrollTo(0, a.offsetTop);
  15303. // }
  15304. // }, 0);
  15305. this.selectPz();
  15306. this.getHomeWork();
  15307. this.getCourseDetail(2);
  15308. },
  15309. get(i) {
  15310. if (this.IsFollow && this.tType == 2) {
  15311. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15312. return;
  15313. }
  15314. // for(var k=0;k<this.navList.length;k++){
  15315. // this.navList[k].isOpen = false;
  15316. // }
  15317. // this.navList[i].isOpen = true;
  15318. this.navList[i].isOpen = !this.navList[i].isOpen;
  15319. if (this.navList[i].isOpen) {
  15320. this.openTask(i, 0, i + "-0");
  15321. }
  15322. },
  15323. addQuestion() {
  15324. this.answerList.push({
  15325. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15326. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15327. });
  15328. let params = [
  15329. {
  15330. uid: this.userid,
  15331. cid: this.id,
  15332. stage: this.courseType,
  15333. task: this.taskCount,
  15334. tool: this.toolindex,
  15335. content: JSON.stringify(this.answerList),
  15336. type: 3,
  15337. },
  15338. ];
  15339. this.ajax
  15340. .post(this.$store.state.api + "addCourseWorks", params)
  15341. .then((res) => {
  15342. this.$message({
  15343. message: "提交成功",
  15344. type: "success",
  15345. });
  15346. this.answerList = [];
  15347. this.answerDialogVisible = false;
  15348. this.selectStudent();
  15349. this.selectSWorks();
  15350. this.selectSLook();
  15351. })
  15352. .catch((err) => {
  15353. this.$message.error("提交失败");
  15354. console.error(err);
  15355. });
  15356. },
  15357. addQuestionTeacher() {
  15358. this.answerList.push({
  15359. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15360. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15361. });
  15362. let params = [
  15363. {
  15364. uid: this.sStudent.userid,
  15365. cid: this.id,
  15366. stage: this.courseType,
  15367. task: this.taskCount,
  15368. tool: this.toolindex,
  15369. content: JSON.stringify(this.answerList),
  15370. type: 3,
  15371. ateacher: this.userid,
  15372. },
  15373. ];
  15374. this.ajax
  15375. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15376. .then((res) => {
  15377. this.$message({
  15378. message: "提交成功",
  15379. type: "success",
  15380. });
  15381. this.answerList = [];
  15382. this.questionAnswer = "";
  15383. this.answerDialogVisibleTeacher = false;
  15384. this.selectStudent();
  15385. this.selectSWorks();
  15386. this.selectSLook();
  15387. })
  15388. .catch((err) => {
  15389. this.$message.error("提交失败");
  15390. console.error(err);
  15391. });
  15392. },
  15393. refreshCourse() {
  15394. // window.location.reload();
  15395. this.navList = [];
  15396. this.getCourseDetail(1);
  15397. },
  15398. getCourseDetail(type, gindex) {
  15399. let loading;
  15400. if (type != 2) {
  15401. loading = this.$loading.service({
  15402. background: "rgba(255, 255, 255, 0.7)",
  15403. target: document.querySelector(".student_table"),
  15404. });
  15405. }
  15406. // this.navList[0].isOpen = false;
  15407. // this.navList[this.courseType].isOpen = true;
  15408. // this.courseType = this.courseTypeLine;
  15409. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15410. let params = {
  15411. courseId: this.id,
  15412. };
  15413. this.ajax
  15414. .get(this.$store.state.api + "selectCourseDetail3", params)
  15415. .then((res) => {
  15416. if (type != 2) {
  15417. loading.close();
  15418. if (
  15419. this.courseType >
  15420. JSON.parse(res.data[0][0].chapters).length - 1
  15421. ) {
  15422. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15423. }
  15424. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15425. .chapterInfo[0].taskJson;
  15426. var b = [
  15427. "AVI",
  15428. "NAVI",
  15429. "MPEG",
  15430. "ASF",
  15431. "MOV",
  15432. "WMV",
  15433. "3GP",
  15434. "RM",
  15435. "RMVB",
  15436. "FLV",
  15437. "F4V",
  15438. "H.264",
  15439. "H.265",
  15440. "REAL VIDEO",
  15441. "MKV",
  15442. "WebM",
  15443. "HDDVD",
  15444. "MP4",
  15445. "MPG",
  15446. "M4V",
  15447. "MGV",
  15448. "OGV",
  15449. "QTM",
  15450. "STR",
  15451. "AMC",
  15452. "DVX",
  15453. "EVO",
  15454. "DAT",
  15455. "OGG",
  15456. "OGM",
  15457. "MP3",
  15458. ];
  15459. let _chapterData = [];
  15460. for (var i = 0; i < a.length; i++) {
  15461. var c = a[i].chapterData;
  15462. this.vedio[i] = [];
  15463. this.textList[i] = [];
  15464. this.lineList[i] = [];
  15465. this.chapToolList[i] = [];
  15466. this.file[i] = [];
  15467. this.fileC[i] = [];
  15468. _chapterData[i] = c.filter((el) => {
  15469. return el.type != 12;
  15470. });
  15471. this.fileC[i] = c.filter((el) => {
  15472. return el.type == 12;
  15473. });
  15474. // else if (c[j].type == 12) {
  15475. // this.fileC[i].push(c[j]);
  15476. // }
  15477. for (var j = 0; j < c.length; j++) {
  15478. if (c[j].type == 7) {
  15479. this.chapToolList[i].push(c[j]);
  15480. } else if (c[j].type == 8 || c[j].type == 14) {
  15481. this.lineList[i].push(c[j]);
  15482. } else if (c[j].type == 6) {
  15483. this.textList[i].push(c[j]);
  15484. } else {
  15485. if (
  15486. b.indexOf(
  15487. c[j].url
  15488. .split(".")
  15489. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15490. ) != -1
  15491. ) {
  15492. this.vedio[i].push(c[j]);
  15493. } else {
  15494. this.file[i].push(c[j]);
  15495. }
  15496. }
  15497. }
  15498. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15499. d.sources[0].src =
  15500. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15501. this.playerO[i] = d;
  15502. }
  15503. this.courseDetail = res.data[0][0];
  15504. this.tcid = this.arrayToArray(
  15505. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15506. this.tcid2 ? this.tcid2.split(",") : []
  15507. ).join(",");
  15508. this.evalua = res.data[0][0].evaId;
  15509. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15510. this.courseType
  15511. ];
  15512. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15513. if (this.tcid && res.data[1].length) {
  15514. let _inviteA = [];
  15515. for (var ik = 0; ik < res.data[1].length; ik++) {
  15516. _inviteA.push({
  15517. cid: res.data[1][ik].classid,
  15518. ic: res.data[1][ik].code,
  15519. });
  15520. }
  15521. for (var ik = 0; ik < _inviteA.length; ik++) {
  15522. if (
  15523. this.arrayToArray(
  15524. _inviteA[ik].cid.split(","),
  15525. this.tcid.split(",")
  15526. ).length
  15527. ) {
  15528. this.inviteCode = _inviteA[ik].ic;
  15529. break;
  15530. }
  15531. }
  15532. }
  15533. for (var l = 0; l < this.chapInfoList.length; l++) {
  15534. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15535. for (var m = 0; m < w.length; m++) {
  15536. w[m].id = l + "-" + m;
  15537. }
  15538. }
  15539. let taskCount = 0;
  15540. if (
  15541. _chapterData[taskCount].length &&
  15542. _chapterData[taskCount][0].type == 2
  15543. ) {
  15544. this.showType = 0;
  15545. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15546. } else {
  15547. if (_chapterData[taskCount].length > 0) {
  15548. let _url = _chapterData[taskCount][0].url;
  15549. if (
  15550. _chapterData[taskCount][0].type == 8 ||
  15551. _chapterData[taskCount][0].type == 14
  15552. ) {
  15553. this.showType = 2;
  15554. if (
  15555. _url.indexOf("https://") == -1 &&
  15556. _url.indexOf("http://") == -1
  15557. ) {
  15558. _url = "https://" + _url;
  15559. }
  15560. this.pptImgUrl1 = _url;
  15561. } else if (_chapterData[taskCount][0].type == 3) {
  15562. if (
  15563. _url
  15564. .split(".")
  15565. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15566. ) {
  15567. this.showType = 3;
  15568. this.pptImgUrl1 = _url;
  15569. } else if (
  15570. this.isAssetTypeAnImage(
  15571. _url
  15572. .split(".")
  15573. [_url.split(".").length - 1].toLocaleLowerCase()
  15574. )
  15575. ) {
  15576. this.showType = 4;
  15577. this.pptImgUrl1 = _url;
  15578. } else {
  15579. this.showType = 2;
  15580. this.pptImgUrl1 =
  15581. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15582. _url;
  15583. }
  15584. } else if (_chapterData[taskCount][0].type == 13) {
  15585. this.showType = 4;
  15586. this.pptImgUrl1 = _url;
  15587. } else if (_chapterData[taskCount][0].type == 6) {
  15588. this.showType = 1;
  15589. this.text = this.textList[taskCount][0];
  15590. }
  15591. }
  15592. }
  15593. this.isClickNav = 0;
  15594. if (
  15595. !_chapterData[taskCount].length ||
  15596. _chapterData[taskCount][0].type == 12
  15597. ) {
  15598. this.isClickNav = "";
  15599. this.showType = "";
  15600. }
  15601. this.vChapterData = _chapterData;
  15602. } else {
  15603. this.showType = 0;
  15604. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15605. .chapterInfo[0].taskJson;
  15606. var b = [
  15607. "AVI",
  15608. "NAVI",
  15609. "MPEG",
  15610. "ASF",
  15611. "MOV",
  15612. "WMV",
  15613. "3GP",
  15614. "RM",
  15615. "RMVB",
  15616. "FLV",
  15617. "F4V",
  15618. "H.264",
  15619. "H.265",
  15620. "REAL VIDEO",
  15621. "MKV",
  15622. "WebM",
  15623. "HDDVD",
  15624. "MP4",
  15625. "MPG",
  15626. "M4V",
  15627. "MGV",
  15628. "OGV",
  15629. "QTM",
  15630. "STR",
  15631. "AMC",
  15632. "DVX",
  15633. "EVO",
  15634. "DAT",
  15635. "OGG",
  15636. "OGM",
  15637. "MP3",
  15638. ];
  15639. let _chapterData = [];
  15640. for (var i = 0; i < a.length; i++) {
  15641. var c = a[i].chapterData;
  15642. this.vedio[i] = [];
  15643. this.textList[i] = [];
  15644. this.lineList[i] = [];
  15645. this.chapToolList[i] = [];
  15646. this.file[i] = [];
  15647. this.fileC[i] = [];
  15648. _chapterData[i] = c.filter((el) => {
  15649. return el.type != 12;
  15650. });
  15651. this.fileC[i] = c.filter((el) => {
  15652. return el.type == 12;
  15653. });
  15654. for (var j = 0; j < c.length; j++) {
  15655. if (c[j].type == 7) {
  15656. this.chapToolList[i].push(c[j]);
  15657. } else if (c[j].type == 8 || c[j].type == 14) {
  15658. this.lineList[i].push(c[j]);
  15659. } else if (c[j].type == 6) {
  15660. this.textList[i].push(c[j]);
  15661. } else {
  15662. if (
  15663. b.indexOf(
  15664. c[j].url
  15665. .split(".")
  15666. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15667. ) != -1
  15668. ) {
  15669. this.vedio[i].push(c[j]);
  15670. } else {
  15671. this.file[i].push(c[j]);
  15672. }
  15673. }
  15674. }
  15675. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15676. d.sources[0].src =
  15677. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15678. this.playerO[i] = d;
  15679. }
  15680. let taskCount = 0;
  15681. if (
  15682. _chapterData[taskCount].length &&
  15683. _chapterData[taskCount][0].type == 2
  15684. ) {
  15685. this.showType = 0;
  15686. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15687. } else {
  15688. if (_chapterData[taskCount].length > 0) {
  15689. let _url = _chapterData[taskCount][0].url;
  15690. if (
  15691. _chapterData[taskCount][0].type == 8 ||
  15692. _chapterData[taskCount][0].type == 14
  15693. ) {
  15694. this.showType = 2;
  15695. if (
  15696. _url.indexOf("https://") == -1 &&
  15697. _url.indexOf("http://") == -1
  15698. ) {
  15699. _url = "https://" + _url;
  15700. }
  15701. this.pptImgUrl1 = _url;
  15702. } else if (_chapterData[taskCount][0].type == 3) {
  15703. if (
  15704. _url
  15705. .split(".")
  15706. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15707. ) {
  15708. this.showType = 3;
  15709. this.pptImgUrl1 = _url;
  15710. } else if (
  15711. this.isAssetTypeAnImage(
  15712. _url
  15713. .split(".")
  15714. [_url.split(".").length - 1].toLocaleLowerCase()
  15715. )
  15716. ) {
  15717. this.showType = 4;
  15718. this.pptImgUrl1 = _url;
  15719. } else {
  15720. this.showType = 2;
  15721. this.pptImgUrl1 =
  15722. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15723. _url;
  15724. }
  15725. } else if (_chapterData[taskCount][0].type == 13) {
  15726. this.showType = 4;
  15727. this.pptImgUrl1 = _url;
  15728. } else if (_chapterData[taskCount][0].type == 6) {
  15729. this.showType = 1;
  15730. this.text = this.textList[taskCount][0];
  15731. }
  15732. }
  15733. }
  15734. this.isClickNav = 0;
  15735. if (
  15736. !_chapterData[taskCount].length ||
  15737. _chapterData[taskCount][0].type == 12
  15738. ) {
  15739. this.isClickNav = "";
  15740. this.showType = "";
  15741. }
  15742. this.vChapterData = _chapterData;
  15743. this.$forceUpdate();
  15744. }
  15745. // else {
  15746. // this.courseDetail = res.data[0][0];
  15747. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15748. // }
  15749. let _this = this;
  15750. if (_this.timer) {
  15751. clearInterval(_this.timer);
  15752. _this.timer = null;
  15753. }
  15754. if (_this.tcid) {
  15755. _this.getCourseGroup(gindex);
  15756. } else {
  15757. _this.selectSWorks(gindex);
  15758. }
  15759. _this.selectStudent();
  15760. _this.selectSLook();
  15761. _this.getPick();
  15762. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15763. _this.setCTask();
  15764. }
  15765. if (_this.dialogVisibleGroup) {
  15766. _this.groupJson =
  15767. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15768. _this.taskCount
  15769. ].toolChoose[_this.toolindex].groupJson;
  15770. }
  15771. _this.$nextTick(() => {
  15772. setTimeout(() => {
  15773. _this.checkEva();
  15774. }, 1000);
  15775. });
  15776. _this.timer = setInterval(function () {
  15777. // _this.getCourseDetail(2);
  15778. if (_this.tcid) {
  15779. _this.getCourseGroup(gindex);
  15780. } else {
  15781. _this.selectSWorks(gindex);
  15782. }
  15783. _this.selectStudent();
  15784. _this.selectSLook();
  15785. _this.getPick();
  15786. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15787. _this.setCTask();
  15788. }
  15789. if (_this.dialogVisibleGroup) {
  15790. _this.groupJson =
  15791. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15792. _this.taskCount
  15793. ].toolChoose[_this.toolindex].groupJson;
  15794. }
  15795. if (_this.tType == 4 || _this.ispzType == 4) {
  15796. _this.selectPz();
  15797. }
  15798. }, 5000);
  15799. _this.$nextTick(function () {
  15800. setTimeout(() => {
  15801. // var a =
  15802. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15803. // document.getElementsByClassName("vedioList")[0].style.height =
  15804. // a + "px";
  15805. // document.getElementsByClassName("navBox")[0].style.height =
  15806. // a - 40 + "px";
  15807. // if (_this.vedio[_this.taskCount].length > 0) {
  15808. // _this.vedioTime = [];
  15809. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15810. // _this.vedioTime[i] = document.getElementsByClassName(
  15811. // "vjs-duration-display"
  15812. // )[i].textContent;
  15813. // }
  15814. // }
  15815. }, 1000);
  15816. });
  15817. })
  15818. .catch((err) => {
  15819. loading.close();
  15820. console.error(err);
  15821. });
  15822. },
  15823. getCourseGroup(gindex) {
  15824. let params = {
  15825. cid: this.id,
  15826. classid: this.tcid ? this.tcid : "1",
  15827. };
  15828. this.ajax
  15829. .get(this.$store.state.api + "getCourseGroup", params)
  15830. .then((res) => {
  15831. if (res.data && res.data[0].length) {
  15832. if (!this.isGroup) {
  15833. let courseGroup = JSON.parse(res.data[0][0].group);
  15834. courseGroup.group = courseGroup.group.filter((el) => {
  15835. el.works = [];
  15836. return el;
  15837. });
  15838. if (courseGroup.isopen == 2) {
  15839. this.isGroup = false;
  15840. this.selectSWorks(gindex);
  15841. return;
  15842. }
  15843. this.courseGroup = courseGroup;
  15844. let groupPerson = res.data[1];
  15845. let group = JSON.parse(res.data[0][0].group).group;
  15846. let courseGroupStudent = {};
  15847. let courseGroupStudentUid = {};
  15848. for (var i = 0; i < group.length; i++) {
  15849. courseGroupStudent[group[i].id] = [];
  15850. courseGroupStudentUid[group[i].id] = [];
  15851. for (var j = 0; j < groupPerson.length; j++) {
  15852. if (groupPerson[j].groupCid == group[i].id) {
  15853. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15854. courseGroupStudentUid[group[i].id].push(
  15855. groupPerson[j].userid
  15856. );
  15857. }
  15858. }
  15859. }
  15860. this.courseGroupStudent = courseGroupStudent;
  15861. this.courseGroupStudentUid = courseGroupStudentUid;
  15862. }
  15863. if (this.courseGroup.isopen == 2) {
  15864. this.isGroup = false;
  15865. } else {
  15866. this.isGroup = true;
  15867. }
  15868. this.selectSWorks(gindex);
  15869. } else {
  15870. this.selectSWorks(gindex);
  15871. this.isGroup = false;
  15872. }
  15873. })
  15874. .catch((err) => {
  15875. // this.$message.error("网络不佳");
  15876. console.error(err);
  15877. });
  15878. },
  15879. setOperationTime() {
  15880. let _this = this;
  15881. if (_this.opertimer) {
  15882. clearInterval(_this.opertimer);
  15883. _this.opertimer = null;
  15884. }
  15885. _this.opertimer = setInterval(() => {
  15886. _this.setoTime("600");
  15887. }, 600000);
  15888. },
  15889. setoTime(time) {
  15890. let params = [
  15891. {
  15892. uid: this.userid,
  15893. cid: this.id,
  15894. type: "2",
  15895. time: time,
  15896. },
  15897. ];
  15898. this.ajax
  15899. .post(this.$store.state.api + "addOperationTimeT2", params)
  15900. .then((res) => {})
  15901. .catch((err) => {
  15902. console.error(err);
  15903. });
  15904. },
  15905. addPz(type, content) {
  15906. if (type == "1" && this.pzConText == "") {
  15907. this.$message.error("批注不能为空!");
  15908. return;
  15909. }
  15910. let params = [
  15911. {
  15912. cid: this.id,
  15913. uid: this.userid,
  15914. s: this.courseType,
  15915. t: this.taskCount,
  15916. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15917. type: type,
  15918. },
  15919. ];
  15920. this.ajax
  15921. .post(this.$store.state.api + "addPz2", params)
  15922. .then((res) => {
  15923. this.$message({
  15924. message: "添加成功",
  15925. type: "success",
  15926. });
  15927. this.pzConText = "";
  15928. this.addPzDialog = false;
  15929. this.selectPz();
  15930. })
  15931. .catch((err) => {
  15932. this.$message.error("添加失败");
  15933. console.error(err);
  15934. });
  15935. },
  15936. setReplyIndex(id, i) {
  15937. this.replyIndex = i;
  15938. this.replyPid = id;
  15939. this.replyDialogVisible = true;
  15940. },
  15941. addHf() {
  15942. if (this.reply == "") {
  15943. this.$message.error("回复不能为空!");
  15944. return;
  15945. }
  15946. let params = [
  15947. {
  15948. cid: this.id,
  15949. uid: this.userid,
  15950. s: this.courseType,
  15951. t: this.taskCount,
  15952. type: "1",
  15953. ct: 2,
  15954. pid: this.replyPid,
  15955. c: this.reply.replaceAll(/%/g, "%25"),
  15956. },
  15957. ];
  15958. this.ajax
  15959. .post(this.$store.state.api + "addHf", params)
  15960. .then((res) => {
  15961. this.reply = "";
  15962. this.$message({
  15963. message: "回复成功",
  15964. type: "success",
  15965. });
  15966. this.replyDialogVisible = false;
  15967. this.selectPz();
  15968. })
  15969. .catch((err) => {
  15970. this.$message.error("回复失败");
  15971. console.error(err);
  15972. });
  15973. },
  15974. deletePz(id) {
  15975. this.$confirm("确定删除此批注吗?", "提示", {
  15976. confirmButtonText: "确定",
  15977. cancelButtonText: "取消",
  15978. type: "warning",
  15979. })
  15980. .then(() => {
  15981. let params = [
  15982. {
  15983. id: id,
  15984. },
  15985. ];
  15986. this.ajax
  15987. .post(this.$store.state.api + "deletePz", params)
  15988. .then((res) => {
  15989. this.$message({
  15990. message: "删除成功",
  15991. type: "success",
  15992. });
  15993. this.selectPz();
  15994. })
  15995. .catch((err) => {
  15996. this.$message.error("网络异常");
  15997. console.error(err);
  15998. });
  15999. })
  16000. .catch(() => {});
  16001. },
  16002. deleteReply(id) {
  16003. this.$confirm("确定删除此回复吗?", "提示", {
  16004. confirmButtonText: "确定",
  16005. cancelButtonText: "取消",
  16006. type: "warning",
  16007. })
  16008. .then(() => {
  16009. let params = [
  16010. {
  16011. id: id,
  16012. },
  16013. ];
  16014. this.ajax
  16015. .post(this.$store.state.api + "deleteReply", params)
  16016. .then((res) => {
  16017. this.$message({
  16018. message: "删除成功",
  16019. type: "success",
  16020. });
  16021. this.selectPz();
  16022. })
  16023. .catch((err) => {
  16024. this.$message.error("网络异常");
  16025. console.error(err);
  16026. });
  16027. })
  16028. .catch(() => {});
  16029. },
  16030. setPz() {
  16031. if (this.ispzType == 4) {
  16032. this.ispzType = 0;
  16033. this.pzDialog = false;
  16034. return;
  16035. }
  16036. this.ispzType = 4;
  16037. this.pzDialog = true;
  16038. this.selectPz();
  16039. },
  16040. selectPz() {
  16041. let params = {
  16042. cid: this.id,
  16043. s: this.courseType,
  16044. t: this.taskCount,
  16045. type: this.pzStype,
  16046. uid: this.userid,
  16047. };
  16048. this.ajax
  16049. .get(this.$store.state.api + "selectPzListType", params)
  16050. .then((res) => {
  16051. this.pzList = res.data[0];
  16052. var a = res.data[1];
  16053. for (var i = 0; i < a.length; i++) {
  16054. for (var j = 0; j < this.pzList.length; j++) {
  16055. if (!this.pzList[j].hfList) {
  16056. this.pzList[j].hfList = [];
  16057. }
  16058. if (a[i].pid == this.pzList[j].id) {
  16059. this.pzList[j].hfList.push(a[i]);
  16060. }
  16061. }
  16062. }
  16063. })
  16064. .catch((err) => {
  16065. console.error(err);
  16066. });
  16067. },
  16068. // selectHf() {
  16069. // let params = {
  16070. // cid: this.id,
  16071. // s: this.courseType,
  16072. // t: this.taskCount,
  16073. // };
  16074. // this.ajax
  16075. // .get(this.$store.state.api + "selectHfList", params)
  16076. // .then((res) => {
  16077. // var a = res.data[0];
  16078. // for (var i = 0; i < a.length; i++) {
  16079. // for (var j = 0; j < this.pzList.length; j++) {
  16080. // if (!this.pzList[i].hfList) {
  16081. // this.pzList[i].hfList = [];
  16082. // }
  16083. // if (a[i].pid == this.pzList[j].id) {
  16084. // this.pzList[i].hfList.push(a[i]);
  16085. // }
  16086. // }
  16087. // }
  16088. // })
  16089. // .catch((err) => {
  16090. // console.error(err);
  16091. // });
  16092. // },
  16093. updateSLook() {
  16094. let params = {
  16095. sopen: this.sIsOpen == false ? 1 : 2,
  16096. cid: this.id,
  16097. };
  16098. this.ajax
  16099. .get(this.$store.state.api + "updateCourseSLook", params)
  16100. .then((res) => {
  16101. if (this.sIsOpen == true) {
  16102. this.$message({
  16103. message: "权限设置成功",
  16104. type: "success",
  16105. });
  16106. } else {
  16107. this.$message({
  16108. message: "权限关闭成功",
  16109. type: "success",
  16110. });
  16111. }
  16112. })
  16113. .catch((err) => {
  16114. console.error(err);
  16115. });
  16116. },
  16117. updateFollow() {
  16118. let params = [
  16119. {
  16120. sopen: this.IsFollow == false ? 1 : 2,
  16121. cid: this.id,
  16122. },
  16123. ];
  16124. this.ajax
  16125. .post(this.$store.state.api + "updateCourseFollow", params)
  16126. .then((res) => {
  16127. if (this.IsFollow == true) {
  16128. this.$message({
  16129. message: "开启成功",
  16130. type: "success",
  16131. });
  16132. } else {
  16133. this.$message({
  16134. message: "关闭成功",
  16135. type: "success",
  16136. });
  16137. }
  16138. this.setCTask();
  16139. })
  16140. .catch((err) => {
  16141. console.error(err);
  16142. });
  16143. },
  16144. setCTask() {
  16145. let params = [
  16146. {
  16147. sopen: this.courseType + "-" + this.taskCount,
  16148. cid: this.id,
  16149. },
  16150. ];
  16151. this.ajax
  16152. .post(this.$store.state.api + "updateCourseFollowC", params)
  16153. .then((res) => {})
  16154. .catch((err) => {
  16155. console.error(err);
  16156. });
  16157. },
  16158. updateLookOpen() {
  16159. let params = [
  16160. {
  16161. sopen: this.IsLookOpen == false ? 1 : 2,
  16162. cid: this.id,
  16163. },
  16164. ];
  16165. this.ajax
  16166. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16167. .then((res) => {
  16168. if (this.IsLookOpen == true) {
  16169. // if (this.courseType != 0 && this.taskCount != 0) {
  16170. // this.openTask(0, 0, "0-0");
  16171. // }
  16172. this.$message({
  16173. message: "权限设置成功",
  16174. type: "success",
  16175. });
  16176. } else {
  16177. this.$message({
  16178. message: "权限关闭成功",
  16179. type: "success",
  16180. });
  16181. }
  16182. this.getCourseState(2);
  16183. })
  16184. .catch((err) => {
  16185. console.error(err);
  16186. });
  16187. },
  16188. selectSLook() {
  16189. let params = {
  16190. cid: this.id,
  16191. };
  16192. this.ajax
  16193. .get(this.$store.state.api + "selectCourseSLook", params)
  16194. .then((res) => {
  16195. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16196. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16197. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16198. if (!this.IsLookOpen) {
  16199. this.setNavList();
  16200. } else {
  16201. this.getCourseState(1);
  16202. }
  16203. if (this.IsFollow && this.tType == 2) {
  16204. this.setContent2(false);
  16205. let _followC = res.data[0][0].followC.split("-");
  16206. if (
  16207. this.courseType != _followC[0] ||
  16208. this.taskCount != _followC[1]
  16209. ) {
  16210. this.navList[this.courseType].isOpen = false;
  16211. this.courseType = _followC[0];
  16212. this.navList[this.courseType].isOpen = true;
  16213. this.taskCount = parseInt(_followC[1]);
  16214. this.navId = res.data[0][0].followC;
  16215. document.scrollingElement.scrollTop = 0;
  16216. this.getCourseDetail(2);
  16217. }
  16218. }
  16219. })
  16220. .catch((err) => {
  16221. console.error(err);
  16222. });
  16223. },
  16224. setNavList() {
  16225. if (this.navList.length == 0) {
  16226. this.navList = [];
  16227. var copyList = [];
  16228. for (var l = 0; l < this.chapInfoList.length; l++) {
  16229. var q = this.chapInfoList[l].dyName;
  16230. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16231. var e;
  16232. copyList.push({
  16233. dyName: q,
  16234. isOpen: l === 0 ? true : false,
  16235. task: [],
  16236. });
  16237. for (var r = 0; r < w.length; r++) {
  16238. e = w[r].task;
  16239. if (this.chapInfoList[l].easy == 1) {
  16240. copyList[l].task.push({
  16241. taskName: q,
  16242. id: l + "-" + r,
  16243. isLook: w[r].isLook,
  16244. isOpen: r === 0 ? true : false,
  16245. tool: [],
  16246. });
  16247. } else {
  16248. copyList[l].task.push({
  16249. taskName: e,
  16250. id: l + "-" + r,
  16251. isLook: w[r].isLook,
  16252. isOpen: r === 0 ? true : false,
  16253. tool: [],
  16254. });
  16255. }
  16256. var t = w[r].toolChoose;
  16257. for (var k = 0; k < t.length; k++) {
  16258. var tool = t[k].tool[0];
  16259. copyList[l].task[r].tool.push({
  16260. tool: tool,
  16261. isTool: false,
  16262. });
  16263. }
  16264. // this.navId = this.navId ? this.navId : l + "-" + r;
  16265. // this.navId = l + "-" + r;
  16266. }
  16267. }
  16268. this.navList = copyList;
  16269. this.navList[0].isOpen = false;
  16270. this.navList[this.courseType].isOpen = true;
  16271. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16272. } else {
  16273. this.setNavList2();
  16274. }
  16275. },
  16276. setNavList2() {
  16277. for (var l = 0; l < this.chapInfoList.length; l++) {
  16278. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16279. for (var r = 0; r < w.length; r++) {
  16280. this.navList[l].task[r].isLook = w[r].isLook;
  16281. }
  16282. }
  16283. if (
  16284. this.IsLookOpen &&
  16285. !this.navList[this.courseType].task[this.taskCount].isLook
  16286. ) {
  16287. this.openTask(0, 0, "0-0");
  16288. }
  16289. this.$forceUpdate();
  16290. },
  16291. getCourseState(type) {
  16292. let params = {
  16293. cid: this.id,
  16294. };
  16295. this.ajax
  16296. .get(this.$store.state.api + "getCourseState", params)
  16297. .then((res) => {
  16298. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16299. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16300. this.setNavList();
  16301. this.$forceUpdate();
  16302. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16303. this.addCourseState(2);
  16304. } else {
  16305. this.addCourseState(1);
  16306. }
  16307. })
  16308. .catch((err) => {
  16309. console.error(err);
  16310. });
  16311. },
  16312. addCourseState(type) {
  16313. let _state = this.chapInfoList;
  16314. // this.courseType this.taskCount
  16315. if (type == 1 || type == 2) {
  16316. for (var i = 0; i < _state.length; i++) {
  16317. let el = _state[i].chapterInfo[0].taskJson;
  16318. for (var j = 0; j < el.length; j++) {
  16319. // if (i == 0 && j == 0) {
  16320. // el[j].isLook = true;
  16321. // } else {
  16322. // el[j].isLook = false;
  16323. // }
  16324. if (
  16325. this.courseType > i ||
  16326. (this.courseType == i && this.taskCount + 1 > j)
  16327. ) {
  16328. el[j].isLook = true;
  16329. } else {
  16330. el[j].isLook = false;
  16331. }
  16332. }
  16333. }
  16334. }
  16335. let params = [
  16336. {
  16337. cid: this.id,
  16338. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16339. },
  16340. ];
  16341. this.ajax
  16342. .post(
  16343. this.$store.state.api +
  16344. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16345. params
  16346. )
  16347. .then((res) => {
  16348. if (this.IsLookOpen) {
  16349. this.setNavList();
  16350. }
  16351. if (type == 3 && type == 2) {
  16352. this.getCourseState(1);
  16353. }
  16354. })
  16355. .catch((err) => {
  16356. console.error(err);
  16357. });
  16358. },
  16359. getHomeWork() {
  16360. let params = {
  16361. cid: this.id,
  16362. stage: this.courseType,
  16363. task: this.taskCount,
  16364. uid: this.userid,
  16365. };
  16366. this.ajax
  16367. .get(this.$store.state.api + "selectWork", params)
  16368. .then((res) => {
  16369. if (res.data[0].length > 0) {
  16370. this.studyJuri = JSON.parse(res.data[0][0].content);
  16371. this.isNoHomeWork = true;
  16372. }
  16373. })
  16374. .catch((err) => {
  16375. console.error(err);
  16376. });
  16377. },
  16378. isAssetTypeAnImage(ext) {
  16379. return (
  16380. [
  16381. "png",
  16382. "jpg",
  16383. "jpeg",
  16384. "bmp",
  16385. "gif",
  16386. "webp",
  16387. "psd",
  16388. "svg",
  16389. "tiff",
  16390. ].indexOf(ext) !== -1
  16391. );
  16392. },
  16393. switchVideo(media) {
  16394. this.playerO = {};
  16395. this.playerOptions.poster = "";
  16396. this.playerOptions.sources[0].src = media;
  16397. this.playerO = this.playerOptions;
  16398. },
  16399. onPlayerPlay() {},
  16400. onPlayerTimeupdate(player) {
  16401. let gklog = player.cache_.currentTime; //当前播放的秒数
  16402. let a = player.cache_.duration; //视频的总时长
  16403. let gklog2 = parseInt(gklog);
  16404. // if(gklog2 == '3'){
  16405. // player.pause()
  16406. // setTimeout(()=>{
  16407. // player.currentTime(gklog2+1)
  16408. // player.play()
  16409. // },1000)
  16410. // }
  16411. console.log(" onPlayerTimeupdate!", gklog);
  16412. console.log(" onPlayerTimeupdate!", gklog2);
  16413. },
  16414. lookVedio(u, i) {
  16415. this.isClickNav = "";
  16416. // this.playerOptions.sources[0].src = u;
  16417. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16418. d.sources[0].src = u;
  16419. this.playerO[0] = d;
  16420. this.showType = 0;
  16421. // this.isClickNav = "video" + i;
  16422. this.isClickNav = i;
  16423. this.$forceUpdate();
  16424. },
  16425. lookText(i, t) {
  16426. this.isClickNav = "";
  16427. // this.text = this.textList[i][t];
  16428. this.text = this.vChapterData[i][t];
  16429. // this.dialogVisible1 = true;
  16430. this.showType = 1;
  16431. // this.isClickNav = "text" + t;
  16432. this.isClickNav = t;
  16433. },
  16434. lookTools(i, t) {
  16435. this.chapTools = this.chapToolList[i][t];
  16436. this.dialogVisible2 = true;
  16437. },
  16438. openFile(f) {
  16439. this.pptImgUrl = "";
  16440. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16441. if (
  16442. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16443. -1
  16444. ) {
  16445. this.pptImgUrl =
  16446. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16447. this.showPDF = false;
  16448. this.dialogVisible3 = true;
  16449. } else if (
  16450. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16451. ) {
  16452. this.pptImgUrl = f;
  16453. this.showPDF = true;
  16454. this.dialogVisible3 = true;
  16455. }
  16456. },
  16457. openTable(f) {
  16458. this.tableJson = JSON.parse(f.works);
  16459. this.dialogVisibleTable2 = true;
  16460. },
  16461. openWord(f) {
  16462. this.tableJson = JSON.parse(f.works);
  16463. this.dialogVisibleTable3 = true;
  16464. },
  16465. doUrl(url, i) {
  16466. this.isClickNav = "";
  16467. this.pptImgUrl1 = "";
  16468. this.showType = 2;
  16469. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16470. url = "https://" + url;
  16471. }
  16472. this.pptImgUrl1 = "";
  16473. setTimeout(() => {
  16474. this.pptImgUrl1 = url;
  16475. }, 500);
  16476. // this.isClickNav = "line" + i;
  16477. this.isClickNav = i;
  16478. this.$forceUpdate();
  16479. },
  16480. checkPhoto(f, i) {
  16481. this.showType = 4;
  16482. this.pptImgUrl1 = f.url;
  16483. this.isClickNav = i;
  16484. this.$forceUpdate();
  16485. },
  16486. downFile(f, i) {
  16487. this.isClickNav = "";
  16488. this.pptImgUrl1 = "";
  16489. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16490. if (
  16491. a.indexOf(
  16492. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16493. ) != -1
  16494. ) {
  16495. this.pptImgUrl1 =
  16496. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16497. // this.dialogVisible3 = true;
  16498. this.showType = 2;
  16499. } else if (
  16500. this.isAssetTypeAnImage(
  16501. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16502. )
  16503. ) {
  16504. this.showType = 4;
  16505. this.pptImgUrl1 = f.url;
  16506. } else if (
  16507. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16508. "PDF"
  16509. ) {
  16510. this.pptImgUrl1 = f.url;
  16511. // this.dialogVisible3 = true;
  16512. this.showType = 3;
  16513. } else {
  16514. window.open(this.file[i].url);
  16515. }
  16516. // this.isClickNav = "word" + i;
  16517. this.isClickNav = i;
  16518. },
  16519. downFileList(i) {
  16520. window.open(this.noImgList[i].url);
  16521. },
  16522. openAddWork() {
  16523. this.dialogVisible = true;
  16524. },
  16525. addBzWorks() {
  16526. let params = [
  16527. {
  16528. uid: this.userid,
  16529. cid: this.id,
  16530. stage: this.courseType,
  16531. task: this.taskCount,
  16532. tool: this.toolindex,
  16533. content: JSON.stringify(this.eScore),
  16534. type: 6,
  16535. },
  16536. ];
  16537. this.ajax
  16538. .post(this.$store.state.api + "addCourseWorks", params)
  16539. .then((res) => {
  16540. this.$message({
  16541. message: "提交成功",
  16542. type: "success",
  16543. });
  16544. this.eScore = { eBzText: "", eStar: [] };
  16545. this.studentEvalDialogVisible = false;
  16546. this.selectSWorks();
  16547. })
  16548. .catch((err) => {
  16549. this.$message.error("提交失败");
  16550. console.error(err);
  16551. });
  16552. },
  16553. addBzWorksTeacher() {
  16554. let params = [
  16555. {
  16556. uid: this.sStudent.userid,
  16557. cid: this.id,
  16558. stage: this.courseType,
  16559. task: this.taskCount,
  16560. tool: this.toolindex,
  16561. content: JSON.stringify(this.eScore),
  16562. type: 6,
  16563. },
  16564. ];
  16565. this.ajax
  16566. .post(this.$store.state.api + "addCourseWorks", params)
  16567. .then((res) => {
  16568. this.$message({
  16569. message: "提交成功",
  16570. type: "success",
  16571. });
  16572. this.eScore = { eBzText: "", eStar: [] };
  16573. this.studentEvalDialogVisibleTeacher = false;
  16574. this.selectSWorks();
  16575. })
  16576. .catch((err) => {
  16577. this.$message.error("提交失败");
  16578. console.error(err);
  16579. });
  16580. },
  16581. addStudentAsk() {
  16582. if (!this.radio.length) {
  16583. this.$message.error("请选择选项");
  16584. return;
  16585. }
  16586. for (var i = 0; i < this.askJson.askCount; i++) {
  16587. if (
  16588. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16589. (this.radio[i] !== 0 && !this.radio[i])
  16590. ) {
  16591. this.$message.error("请选择选项");
  16592. return;
  16593. }
  16594. }
  16595. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16596. let params = [
  16597. {
  16598. uid: this.userid,
  16599. cid: this.id,
  16600. stage: this.courseType,
  16601. task: this.taskCount,
  16602. tool: this.toolindex,
  16603. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16604. type: 2,
  16605. },
  16606. ];
  16607. this.ajax
  16608. .post(this.$store.state.api + "addCourseWorks", params)
  16609. .then((res) => {
  16610. this.$message({
  16611. message: "提交成功",
  16612. type: "success",
  16613. });
  16614. this.askList = [];
  16615. this.dialogVisible5 = false;
  16616. this.selectStudent();
  16617. this.selectSWorks();
  16618. this.selectSLook();
  16619. })
  16620. .catch((err) => {
  16621. this.$message.error("提交失败");
  16622. console.error(err);
  16623. });
  16624. },
  16625. addStudentAskTeacher() {
  16626. if (!this.radio.length) {
  16627. this.$message.error("请选择选项");
  16628. return;
  16629. }
  16630. for (var i = 0; i < this.askJson.askCount; i++) {
  16631. if (
  16632. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16633. (this.radio[i] !== 0 && !this.radio[i])
  16634. ) {
  16635. this.$message.error("请选择选项");
  16636. return;
  16637. }
  16638. }
  16639. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16640. let params = [
  16641. {
  16642. uid: this.sStudent.userid,
  16643. cid: this.id,
  16644. stage: this.courseType,
  16645. task: this.taskCount,
  16646. tool: this.toolindex,
  16647. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16648. type: 2,
  16649. },
  16650. ];
  16651. this.ajax
  16652. .post(this.$store.state.api + "addCourseWorks", params)
  16653. .then((res) => {
  16654. this.$message({
  16655. message: "提交成功",
  16656. type: "success",
  16657. });
  16658. this.askList = [];
  16659. this.dialogVisible5Teacher = false;
  16660. this.selectStudent();
  16661. this.selectSWorks();
  16662. this.selectSLook();
  16663. })
  16664. .catch((err) => {
  16665. this.$message.error("提交失败");
  16666. console.error(err);
  16667. });
  16668. },
  16669. addStudentTest() {
  16670. if (!this.radio.length) {
  16671. this.$message.error("请选择选项");
  16672. return;
  16673. }
  16674. for (var i = 0; i < this.testJson.testCount; i++) {
  16675. if (
  16676. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16677. (this.radio[i] !== 0 && !this.radio[i])
  16678. ) {
  16679. this.$message.error("请选择选项");
  16680. return;
  16681. }
  16682. }
  16683. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16684. let params = [
  16685. {
  16686. uid: this.userid,
  16687. cid: this.id,
  16688. stage: this.courseType,
  16689. task: this.taskCount,
  16690. tool: this.toolindex,
  16691. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16692. type: 8,
  16693. },
  16694. ];
  16695. this.ajax
  16696. .post(this.$store.state.api + "addCourseWorks", params)
  16697. .then((res) => {
  16698. this.$message({
  16699. message: "提交成功",
  16700. type: "success",
  16701. });
  16702. this.askList = [];
  16703. this.dialogVisibleChoice = false;
  16704. this.selectStudent();
  16705. this.selectSWorks();
  16706. this.selectSLook();
  16707. })
  16708. .catch((err) => {
  16709. this.$message.error("提交失败");
  16710. console.error(err);
  16711. });
  16712. },
  16713. addStudentTestTeacher() {
  16714. if (!this.radio.length) {
  16715. this.$message.error("请选择选项");
  16716. return;
  16717. }
  16718. for (var i = 0; i < this.testJson.testCount; i++) {
  16719. if (
  16720. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16721. (this.radio[i] !== 0 && !this.radio[i])
  16722. ) {
  16723. this.$message.error("请选择选项");
  16724. return;
  16725. }
  16726. }
  16727. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16728. let params = [
  16729. {
  16730. uid: this.sStudent.userid,
  16731. cid: this.id,
  16732. stage: this.courseType,
  16733. task: this.taskCount,
  16734. tool: this.toolindex,
  16735. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16736. type: 8,
  16737. },
  16738. ];
  16739. this.ajax
  16740. .post(this.$store.state.api + "addCourseWorks", params)
  16741. .then((res) => {
  16742. this.$message({
  16743. message: "提交成功",
  16744. type: "success",
  16745. });
  16746. this.askList = [];
  16747. this.dialogVisibleChoiceTeacher = false;
  16748. this.selectStudent();
  16749. this.selectSWorks();
  16750. this.selectSLook();
  16751. })
  16752. .catch((err) => {
  16753. this.$message.error("提交失败");
  16754. console.error(err);
  16755. });
  16756. },
  16757. addWork() {
  16758. if (this.studyJuri[0].content == "") {
  16759. this.$message.error("请将信息填写完整");
  16760. return;
  16761. } else if (this.studyJuri[0].cover.length == 0) {
  16762. this.$message.error("请将信息填写完整");
  16763. return;
  16764. } else if (this.studyJuri[0].upVedio.length == 0) {
  16765. this.$message.error("请将信息填写完整");
  16766. return;
  16767. }
  16768. if (this.isNoHomeWork) {
  16769. this.$confirm(
  16770. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16771. "提示",
  16772. {
  16773. confirmButtonText: "确定",
  16774. cancelButtonText: "取消",
  16775. type: "warning",
  16776. }
  16777. )
  16778. .then(() => {
  16779. let params = [
  16780. {
  16781. uid: this.userid,
  16782. cid: this.id,
  16783. stage: this.courseType,
  16784. task: this.taskCount,
  16785. content: JSON.stringify(this.studyJuri),
  16786. },
  16787. ];
  16788. this.ajax
  16789. .post(this.$store.state.api + "addWorks", params)
  16790. .then((res) => {
  16791. this.$message({
  16792. message: "提交成功",
  16793. type: "success",
  16794. });
  16795. this.isNoHomeWork = true;
  16796. this.dialogVisible = false;
  16797. })
  16798. .catch((err) => {
  16799. this.$message.error("提交失败");
  16800. console.error(err);
  16801. });
  16802. })
  16803. .catch(() => {});
  16804. } else {
  16805. let params = [
  16806. {
  16807. uid: this.userid,
  16808. cid: this.id,
  16809. stage: this.courseType,
  16810. task: this.taskCount,
  16811. content: JSON.stringify(this.studyJuri),
  16812. },
  16813. ];
  16814. this.ajax
  16815. .post(this.$store.state.api + "addWorks", params)
  16816. .then((res) => {
  16817. this.$message({
  16818. message: "提交成功",
  16819. type: "success",
  16820. });
  16821. this.isNoHomeWork = true;
  16822. this.dialogVisible = false;
  16823. })
  16824. .catch((err) => {
  16825. this.$message.error("提交失败");
  16826. console.error(err);
  16827. });
  16828. }
  16829. },
  16830. selectCount() {
  16831. let params = {
  16832. cid: this.id,
  16833. chid: this.courseType,
  16834. uid: this.userid,
  16835. };
  16836. this.ajax
  16837. .get(this.$store.state.api + "selectToolsCount", params)
  16838. .then((res) => {
  16839. for (var i = 0; i < res.data[0].length; i++) {
  16840. if (res.data[0][i].tools == 1) {
  16841. this.wbCount = res.data[0][i].count;
  16842. } else if (res.data[0][i].tools == 2) {
  16843. this.wordCount = res.data[0][i].count;
  16844. } else if (res.data[0][i].tools == 3) {
  16845. this.mindCount = res.data[0][i].count;
  16846. } else if (res.data[0][i].tools == 4) {
  16847. this.askCount = res.data[0][i].count;
  16848. } else if (res.data[0][i].tools == 6) {
  16849. this.noteCount = res.data[0][i].count;
  16850. } else if (res.data[0][i].tools == 7) {
  16851. this.mindNetWorkCount = res.data[0][i].count;
  16852. } else if (res.data[0][i].tools == 8) {
  16853. this.libraryCount = res.data[0][i].count;
  16854. } else if (res.data[0][i].tools == 16) {
  16855. this.workCount = res.data[0][i].count;
  16856. } else if (res.data[0][i].tools == 10) {
  16857. this.timeCount = res.data[0][i].count;
  16858. } else if (res.data[0][i].tools == 15) {
  16859. this.answerCount = res.data[0][i].count;
  16860. } else if (res.data[0][i].tools == 18) {
  16861. this.trainCount = res.data[0][i].count;
  16862. }
  16863. }
  16864. })
  16865. .catch((err) => {
  16866. console.error(err);
  16867. });
  16868. },
  16869. openTools(t, i, index, c, sName,id) {
  16870. var z = JSON.parse(c);
  16871. this.noteName = sName;
  16872. if (t == 4) {
  16873. this.radio = [];
  16874. this.isAnswer = false;
  16875. let b = z[0].anwer;
  16876. this.radio = b;
  16877. this.askJson = z[0].askJson;
  16878. this.isAnswer = true;
  16879. this.dialogVisible5 = true;
  16880. } else if (t == 45) {
  16881. this.radio = [];
  16882. this.isAnswer = false;
  16883. let b = z[0].anwer;
  16884. this.radio = b;
  16885. this.testJson = z[0].testJson;
  16886. this.isAnswer = true;
  16887. this.dialogVisibleChoice = true;
  16888. }else if(t == 69){
  16889. this.oldEnglishJson1 = {}
  16890. this.oldEnglishJson = {}
  16891. this.englishList1 = {}
  16892. this.newEngIndex = -1;
  16893. this.isNoUserid = false;
  16894. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16895. .toolChoose[i].englishList;
  16896. this.oldEnglishJson = z;
  16897. this.engWid = id;
  16898. this.newEnglishList = { engTitle:"",engText:"" }
  16899. this.newEnglishList1 = []
  16900. this.selectEngC(id,z);
  16901. }
  16902. // else if (t == 15) {
  16903. // this.answerQ = "";
  16904. // this.questionAnswer = "";
  16905. // this.answerQ = z[0].answerTitle;
  16906. // this.questionAnswer = z[0].answer;
  16907. // this.answerDialogVisible = true;
  16908. // }
  16909. },
  16910. fastText(p, t) {
  16911. if (t == 1) {
  16912. this.commentText += p;
  16913. } else {
  16914. this.eScore.eBzText += p;
  16915. }
  16916. },
  16917. addTools(t, i, index) {
  16918. var a = 0;
  16919. // this.taskCount = index;
  16920. this.toolindex = i;
  16921. if (t == 1) {
  16922. if (this.wbCount > 0) {
  16923. this.updateCount(this.wbCount, t);
  16924. } else {
  16925. this.wbCount++;
  16926. a = this.wbCount;
  16927. this.toolsCount(a, t);
  16928. }
  16929. window.parent.postMessage(
  16930. {
  16931. tools: "1",
  16932. cid: this.id,
  16933. stage: this.courseType,
  16934. task: this.taskCount,
  16935. tool: i,
  16936. },
  16937. "*"
  16938. );
  16939. } else if (t == 2) {
  16940. if (this.wordCount > 0) {
  16941. this.updateCount(this.wordCount, t);
  16942. } else {
  16943. this.wordCount++;
  16944. a = this.wordCount;
  16945. this.toolsCount(a, t);
  16946. }
  16947. window.parent.postMessage({ tools: "2" }, "*");
  16948. } else if (t == 3) {
  16949. if (this.mindCount > 0) {
  16950. this.updateCount(this.mindCount, t);
  16951. } else {
  16952. this.mindCount++;
  16953. a = this.mindCount;
  16954. this.toolsCount(a, t);
  16955. }
  16956. window.parent.postMessage(
  16957. {
  16958. tools: "3",
  16959. cid: this.id,
  16960. stage: this.courseType,
  16961. task: this.taskCount,
  16962. tool: i,
  16963. },
  16964. "*"
  16965. );
  16966. } else if (t == 4) {
  16967. this.radio = [];
  16968. this.noteName = "";
  16969. this.isAnswer = false;
  16970. if (this.askCount > 0) {
  16971. this.updateCount(this.askCount, t);
  16972. } else {
  16973. this.askCount++;
  16974. a = this.askCount;
  16975. this.toolsCount(a, t);
  16976. }
  16977. if (!this.dialogVisible2) {
  16978. this.askJson.askJson =
  16979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16980. index
  16981. ].toolChoose[i].askJson;
  16982. this.askJson.askTitle =
  16983. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16984. index
  16985. ].toolChoose[i].askTitle;
  16986. this.askJson.askCount =
  16987. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16988. index
  16989. ].toolChoose[i].askCount;
  16990. } else {
  16991. this.askJson.askJson = this.chapTools.askJson.askJson;
  16992. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16993. this.askJson.askCount = this.chapTools.askJson.askCount;
  16994. }
  16995. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16996. if (this.askJson.askJson[k].type == "2") {
  16997. this.radio.push([]);
  16998. } else {
  16999. this.radio.push("");
  17000. }
  17001. }
  17002. this.dialogVisible5 = true;
  17003. // window.parent.postMessage({ tools: "4" }, "*");
  17004. } else if (t == 45) {
  17005. this.noteName = "";
  17006. this.radio = [];
  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. this.testJson =
  17016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17017. index
  17018. ].toolChoose[i].testJson;
  17019. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17020. if (this.testJson.testJson[k].type == "2") {
  17021. this.radio.push([]);
  17022. } else {
  17023. this.radio.push("");
  17024. }
  17025. }
  17026. this.dialogVisibleChoice = true;
  17027. // window.parent.postMessage({ tools: "4" }, "*");
  17028. } else if (t == 5) {
  17029. if (this.scoreCount > 0) {
  17030. this.updateCount(this.scoreCount, t);
  17031. } else {
  17032. this.scoreCount++;
  17033. a = this.scoreCount;
  17034. this.toolsCount(a, t);
  17035. }
  17036. this.dialogVisible4 = true;
  17037. // window.parent.postMessage({ tools: "5" }, "*");
  17038. } else if (t == 6) {
  17039. if (this.noteCount > 0) {
  17040. this.updateCount(this.noteCount, t);
  17041. } else {
  17042. this.noteCount++;
  17043. a = this.noteCount;
  17044. this.toolsCount(a, t);
  17045. }
  17046. window.parent.postMessage(
  17047. {
  17048. tools: "6",
  17049. cid: this.id,
  17050. stage: this.courseType,
  17051. task: this.taskCount,
  17052. tool: i,
  17053. },
  17054. "*"
  17055. );
  17056. } else if (t == 7) {
  17057. if (this.mindNetWorkCount > 0) {
  17058. this.updateCount(this.mindNetWorkCount, t);
  17059. } else {
  17060. this.mindNetWorkCount++;
  17061. a = this.mindNetWorkCount;
  17062. this.toolsCount(a, t);
  17063. }
  17064. window.parent.postMessage(
  17065. {
  17066. tools: "7",
  17067. cid: this.id,
  17068. stage: this.courseType,
  17069. task: this.taskCount,
  17070. tool: i,
  17071. },
  17072. "*"
  17073. );
  17074. } else if (t == 16) {
  17075. if (this.workCount > 0) {
  17076. this.updateCount(this.workCount, t);
  17077. } else {
  17078. this.workCount++;
  17079. a = this.workCount;
  17080. this.toolsCount(a, t);
  17081. }
  17082. this.dialogVisible = true;
  17083. } else if (t == 50) {
  17084. if (this.tType == 2) {
  17085. this.$message.error("不支持学生使用");
  17086. return;
  17087. }
  17088. this.plworkFile = [];
  17089. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17090. if (!this.uploadCid) {
  17091. this.$message.error(
  17092. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17093. );
  17094. return;
  17095. }
  17096. // this.uploadCid =
  17097. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17098. // index
  17099. // ].toolChoose[i].uploadJson[0];
  17100. this.selectUploadStudent(2);
  17101. } else if (t == 8) {
  17102. if (this.libraryCount > 0) {
  17103. this.updateCount(this.libraryCount, t);
  17104. } else {
  17105. this.libraryCount++;
  17106. a = this.libraryCount;
  17107. this.toolsCount(a, t);
  17108. }
  17109. window.parent.postMessage({ tools: "8" }, "*");
  17110. } else if (t == 17) {
  17111. if (this.libraryCount > 0) {
  17112. this.updateCount(this.libraryCount, t);
  17113. } else {
  17114. this.libraryCount++;
  17115. a = this.libraryCount;
  17116. this.toolsCount(a, t);
  17117. }
  17118. window.parent.postMessage({ tools: "17" }, "*");
  17119. } else if (t == 18) {
  17120. if (this.trainCount > 0) {
  17121. this.updateCount(this.trainCount, t);
  17122. } else {
  17123. this.trainCount++;
  17124. a = this.trainCount;
  17125. this.toolsCount(a, t);
  17126. }
  17127. window.parent.postMessage({ tools: "18" }, "*");
  17128. } else if (t == 10) {
  17129. if (this.timeCount > 0) {
  17130. this.updateCount(this.timeCount, t);
  17131. } else {
  17132. this.timeCount++;
  17133. a = this.timeCount;
  17134. this.toolsCount(a, t);
  17135. }
  17136. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17137. .taskJson[index].toolChoose[i].preTime
  17138. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17139. .toolChoose[i].preTime
  17140. : "";
  17141. this.timeDialogVisible = true;
  17142. } else if (t == 15) {
  17143. this.answerQ = "";
  17144. this.questionAnswer = "";
  17145. if (this.answerCount > 0) {
  17146. this.updateCount(this.answerCount, t);
  17147. } else {
  17148. this.answerCount++;
  17149. a = this.answerCount;
  17150. this.toolsCount(a, t);
  17151. }
  17152. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17153. .taskJson[index].toolChoose[i].answerQ
  17154. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17155. .toolChoose[i].answerQ
  17156. : "";
  17157. this.answerDialogVisible = true;
  17158. } else if (t == 21) {
  17159. window.parent.postMessage({ tools: "21" }, "*");
  17160. } else if (t == 22) {
  17161. window.parent.postMessage({ tools: "22" }, "*");
  17162. } else if (t == 23) {
  17163. window.parent.postMessage({ tools: "23" }, "*");
  17164. } else if (t == 24) {
  17165. window.parent.postMessage({ tools: "24" }, "*");
  17166. } else if (t == 25) {
  17167. window.parent.postMessage({ tools: "25" }, "*");
  17168. } else if (t == 31) {
  17169. window.parent.postMessage({ tools: "31" }, "*");
  17170. } else if (t == 28) {
  17171. window.parent.postMessage({ tools: "28" }, "*");
  17172. } else if (t == 37) {
  17173. window.parent.postMessage({ tools: "37" }, "*");
  17174. } else if (t == 38) {
  17175. window.parent.postMessage({ tools: "38" }, "*");
  17176. } else if (t == 39) {
  17177. window.parent.postMessage({ tools: "39" }, "*");
  17178. } else if (t == 32) {
  17179. window.parent.postMessage({ tools: "32" }, "*");
  17180. } else if (t == 66) {
  17181. window.parent.postMessage({ tools: "66" }, "*");
  17182. } else if (t == 67) {
  17183. window.parent.postMessage({ tools: "67" }, "*");
  17184. } else if (t == 68) {
  17185. window.parent.postMessage({ tools: "68" }, "*");
  17186. } else if (t == 57) {
  17187. // window.parent.postMessage({ tools: "57" }, "*");
  17188. window.parent.postMessage(
  17189. {
  17190. tools: "57u",
  17191. cid: this.id,
  17192. stage: this.courseType,
  17193. task: this.taskCount,
  17194. tool: i,
  17195. },
  17196. "*"
  17197. );
  17198. } else if (t == 58) {
  17199. window.parent.postMessage({ tools: "58" }, "*");
  17200. } else if (t == 59) {
  17201. window.parent.postMessage({ tools: "59" }, "*");
  17202. } else if (t == 60) {
  17203. window.parent.postMessage({ tools: "60" }, "*");
  17204. } else if (t == 61) {
  17205. window.parent.postMessage({ tools: "61" }, "*");
  17206. } else if (t == 63) {
  17207. window.parent.postMessage({ tools: "63" }, "*");
  17208. } else if (t == 69) {
  17209. if (this.worksStudent[i].length) {
  17210. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17211. if (this.userid == this.worksStudent[i][k].userid) {
  17212. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17213. break;
  17214. } else {
  17215. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17216. }
  17217. }
  17218. } else {
  17219. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17220. }
  17221. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17222. .taskJson[index].toolChoose[i].englishList
  17223. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17224. .toolChoose[i].englishList
  17225. : {};
  17226. this.englishToolIndex = i;
  17227. this.engDialogVisible = true;
  17228. } else if (t == 65) {
  17229. if (this.tType == 2) {
  17230. this.$message.error("不支持学生使用");
  17231. return;
  17232. }
  17233. this.uploadCid = this.tcid;
  17234. if (!this.uploadCid) {
  17235. this.$message.error(
  17236. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17237. );
  17238. return;
  17239. }
  17240. this.selectPickStudent();
  17241. } else if (t == 26) {
  17242. window.parent.postMessage(
  17243. {
  17244. tools: "26",
  17245. cid: this.id,
  17246. stage: this.courseType,
  17247. task: this.taskCount,
  17248. tool: i,
  17249. },
  17250. "*"
  17251. );
  17252. } else if (t == 40) {
  17253. if (this.evalCount > 0) {
  17254. this.updateCount(this.evalCount, t);
  17255. } else {
  17256. this.evalCount++;
  17257. a = this.evalCount;
  17258. this.toolsCount(a, t);
  17259. }
  17260. this.eScore = { eBzText: "", eStar: [] };
  17261. if (this.worksStudent[i].length) {
  17262. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17263. if (this.userid == this.worksStudent[i][k].userid) {
  17264. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17265. this.rateJson =
  17266. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17267. index
  17268. ].toolChoose[i].rateJson;
  17269. break;
  17270. } else {
  17271. this.rateJson =
  17272. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17273. index
  17274. ].toolChoose[i].rateJson;
  17275. }
  17276. }
  17277. } else {
  17278. this.rateJson =
  17279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17280. index
  17281. ].toolChoose[i].rateJson;
  17282. }
  17283. this.isStar = false;
  17284. this.studentEvalDialogVisible = true;
  17285. } else if (t == 41) {
  17286. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17287. .taskJson[index].toolChoose[i].selectJson
  17288. ? JSON.parse(
  17289. JSON.stringify(
  17290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17291. index
  17292. ].toolChoose[i].selectJson
  17293. )
  17294. )
  17295. : { url: "", select: [], answer: [] };
  17296. if (this.worksStudent[i].length) {
  17297. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17298. if (this.userid == this.worksStudent[i][k].userid) {
  17299. var a = this.worksStudent[i][k].works.split(",");
  17300. for (var ki = 0; ki < a.length; ki++) {
  17301. a[ki] = parseInt(a[ki]);
  17302. }
  17303. this.selectAnswer = {
  17304. answer: a,
  17305. stu: this.worksStudent[i][k].sName,
  17306. };
  17307. break;
  17308. } else {
  17309. this.selectAnswer = { answer: [], stu: "" };
  17310. }
  17311. }
  17312. } else {
  17313. this.selectAnswer = { answer: [], stu: "" };
  17314. }
  17315. this.isSelect = false;
  17316. this.dialogVisibleSelect = true;
  17317. } else if (t == 44) {
  17318. window.parent.postMessage({ tools: "44" }, "*");
  17319. } else if (t == 47) {
  17320. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17321. .taskJson[index].toolChoose[i].sentenceList
  17322. ? JSON.parse(
  17323. JSON.stringify(
  17324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17325. index
  17326. ].toolChoose[i].sentenceList
  17327. )
  17328. )
  17329. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17330. for (var q = 0; q < this.sentenceList.length; q++) {
  17331. this.sentenceList[q].chooseSenList = [];
  17332. this.sentenceList[q].addChangeSen = [];
  17333. this.sentenceList[q].addChangeSen = JSON.parse(
  17334. JSON.stringify(this.sentenceList[q].addSentence)
  17335. );
  17336. this.sentenceList[q].chooseSenList.length =
  17337. this.sentenceList[q].rightAnswer.length;
  17338. }
  17339. this.dialogVisibleSentence = true;
  17340. } else if (t == 48) {
  17341. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17342. .taskJson[index].toolChoose[i].tableJson
  17343. ? JSON.parse(
  17344. JSON.stringify(
  17345. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17346. index
  17347. ].toolChoose[i].tableJson
  17348. )
  17349. )
  17350. : { text: "" };
  17351. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17352. if (this.worksStudent[i].length) {
  17353. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17354. if (this.userid == this.worksStudent[i][k].userid) {
  17355. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17356. break;
  17357. }
  17358. }
  17359. }
  17360. this.dialogVisibleTable = true;
  17361. } else if (t == 52) {
  17362. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17363. .taskJson[index].toolChoose[i].wordJson
  17364. ? JSON.parse(
  17365. JSON.stringify(
  17366. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17367. index
  17368. ].toolChoose[i].wordJson
  17369. )
  17370. )
  17371. : { text: "" };
  17372. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17373. if (this.worksStudent[i].length) {
  17374. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17375. if (this.userid == this.worksStudent[i][k].userid) {
  17376. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17377. break;
  17378. }
  17379. }
  17380. }
  17381. this.dialogVisibleWord = true;
  17382. } else if (t == 49) {
  17383. this.groupJson =
  17384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17385. index
  17386. ].toolChoose[i].groupJson;
  17387. this.islock = this.groupJson.islock == 1 ? true : false;
  17388. this.dialogVisibleGroup = true;
  17389. } else if (t == 62) {
  17390. this.videoJson =
  17391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17392. index
  17393. ].toolChoose[i].videoJson;
  17394. this.dialogVisibleVideo = true;
  17395. }
  17396. },
  17397. teacherWorkSubmit(t, i, index, s) {
  17398. this.sStudent = s;
  17399. this.toolindex = i;
  17400. this.sTool = t;
  17401. if (this.tType !== "1" && this.tType !== "4") {
  17402. return;
  17403. }
  17404. if (t == 16 || t == 32 || t == 50) {
  17405. this.dialogVisibleWorks = true;
  17406. } else if (t == 15) {
  17407. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17408. .taskJson[index].toolChoose[i].answerQ
  17409. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17410. .toolChoose[i].answerQ
  17411. : "";
  17412. this.questionAnswer = "";
  17413. this.answerDialogVisibleTeacher = true; //问答
  17414. } else if (t == 52) {
  17415. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17416. .taskJson[index].toolChoose[i].wordJson
  17417. ? JSON.parse(
  17418. JSON.stringify(
  17419. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17420. index
  17421. ].toolChoose[i].wordJson
  17422. )
  17423. )
  17424. : { text: "" };
  17425. if (this.worksStudent[i].length) {
  17426. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17427. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17428. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17429. break;
  17430. }
  17431. }
  17432. }
  17433. this.dialogVisibleWordTeacher = true; //文档
  17434. } else if (t == 4) {
  17435. this.radio = [];
  17436. this.noteName = "";
  17437. this.isAnswer = false;
  17438. if (this.askCount > 0) {
  17439. this.updateCount(this.askCount, t);
  17440. } else {
  17441. this.askCount++;
  17442. a = this.askCount;
  17443. this.toolsCount(a, t);
  17444. }
  17445. if (!this.dialogVisible2) {
  17446. this.askJson.askJson =
  17447. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17448. index
  17449. ].toolChoose[i].askJson;
  17450. this.askJson.askTitle =
  17451. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17452. index
  17453. ].toolChoose[i].askTitle;
  17454. this.askJson.askCount =
  17455. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17456. index
  17457. ].toolChoose[i].askCount;
  17458. } else {
  17459. this.askJson.askJson = this.chapTools.askJson.askJson;
  17460. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17461. this.askJson.askCount = this.chapTools.askJson.askCount;
  17462. }
  17463. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17464. if (this.askJson.askJson[k].type == "2") {
  17465. this.radio.push([]);
  17466. } else {
  17467. this.radio.push("");
  17468. }
  17469. }
  17470. this.dialogVisible5Teacher = true;
  17471. } else if (t == 45) {
  17472. this.noteName = "";
  17473. this.radio = [];
  17474. this.isAnswer = false;
  17475. if (this.askCount > 0) {
  17476. this.updateCount(this.askCount, t);
  17477. } else {
  17478. this.askCount++;
  17479. a = this.askCount;
  17480. this.toolsCount(a, t);
  17481. }
  17482. this.testJson =
  17483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17484. index
  17485. ].toolChoose[i].testJson;
  17486. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17487. if (this.testJson.testJson[k].type == "2") {
  17488. this.radio.push([]);
  17489. } else {
  17490. this.radio.push("");
  17491. }
  17492. }
  17493. this.dialogVisibleChoiceTeacher = true;
  17494. } else if (t == 41) {
  17495. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17496. .taskJson[index].toolChoose[i].selectJson
  17497. ? JSON.parse(
  17498. JSON.stringify(
  17499. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17500. index
  17501. ].toolChoose[i].selectJson
  17502. )
  17503. )
  17504. : { url: "", select: [], answer: [] };
  17505. if (this.worksStudent[i].length) {
  17506. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17507. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17508. var a = this.worksStudent[i][k].works.split(",");
  17509. for (var ki = 0; ki < a.length; ki++) {
  17510. a[ki] = parseInt(a[ki]);
  17511. }
  17512. this.selectAnswer = {
  17513. answer: a,
  17514. stu: this.worksStudent[i][k].sName,
  17515. };
  17516. break;
  17517. } else {
  17518. this.selectAnswer = { answer: [], stu: "" };
  17519. }
  17520. }
  17521. } else {
  17522. this.selectAnswer = { answer: [], stu: "" };
  17523. }
  17524. this.isSelect = false;
  17525. this.dialogVisibleSelectTeacher = true;
  17526. } else if (t == 47) {
  17527. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17528. .taskJson[index].toolChoose[i].sentenceList
  17529. ? JSON.parse(
  17530. JSON.stringify(
  17531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17532. index
  17533. ].toolChoose[i].sentenceList
  17534. )
  17535. )
  17536. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17537. for (var q = 0; q < this.sentenceList.length; q++) {
  17538. this.sentenceList[q].chooseSenList = [];
  17539. this.sentenceList[q].addChangeSen = [];
  17540. this.sentenceList[q].addChangeSen = JSON.parse(
  17541. JSON.stringify(this.sentenceList[q].addSentence)
  17542. );
  17543. this.sentenceList[q].chooseSenList.length =
  17544. this.sentenceList[q].rightAnswer.length;
  17545. }
  17546. this.dialogVisibleSentenceTeacher = true;
  17547. } else if (t == 48) {
  17548. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17549. .taskJson[index].toolChoose[i].tableJson
  17550. ? JSON.parse(
  17551. JSON.stringify(
  17552. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17553. index
  17554. ].toolChoose[i].tableJson
  17555. )
  17556. )
  17557. : { text: "" };
  17558. if (this.worksStudent[i].length) {
  17559. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17560. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17561. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17562. break;
  17563. }
  17564. }
  17565. }
  17566. this.dialogVisibleTableTeacher = true;
  17567. } else if (t == 40) {
  17568. if (this.evalCount > 0) {
  17569. this.updateCount(this.evalCount, t);
  17570. } else {
  17571. this.evalCount++;
  17572. a = this.evalCount;
  17573. this.toolsCount(a, t);
  17574. }
  17575. this.eScore = { eBzText: "", eStar: [] };
  17576. if (this.worksStudent[i].length) {
  17577. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17578. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17579. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17580. this.rateJson =
  17581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17582. index
  17583. ].toolChoose[i].rateJson;
  17584. break;
  17585. } else {
  17586. this.rateJson =
  17587. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17588. index
  17589. ].toolChoose[i].rateJson;
  17590. }
  17591. }
  17592. } else {
  17593. this.rateJson =
  17594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17595. index
  17596. ].toolChoose[i].rateJson;
  17597. }
  17598. this.isStar = false;
  17599. this.studentEvalDialogVisibleTeacher = true;
  17600. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17601. window.parent.postMessage(
  17602. {
  17603. tools: t + "teacher",
  17604. cid: this.id,
  17605. stage: this.courseType,
  17606. task: this.taskCount,
  17607. tool: i,
  17608. student: this.sStudent,
  17609. },
  17610. "*"
  17611. );
  17612. }
  17613. },
  17614. openCocoPi(tool, i, uid, uname) {
  17615. let student = {
  17616. userid: uid,
  17617. student: uname,
  17618. };
  17619. if (tool == 57) {
  17620. window.parent.postMessage(
  17621. {
  17622. tools: tool + "teacher",
  17623. cid: this.id,
  17624. stage: this.courseType,
  17625. task: this.taskCount,
  17626. tool: i,
  17627. student: student,
  17628. },
  17629. "*"
  17630. );
  17631. }
  17632. },
  17633. setRightAnswer(s, i, j) {
  17634. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17635. if (
  17636. this.sentenceList[i].chooseSenList[q] == undefined ||
  17637. this.sentenceList[i].chooseSenList[q] == ""
  17638. ) {
  17639. this.sentenceList[i].chooseSenList[q] = s;
  17640. this.sentenceList[i].addChangeSen[j] = "";
  17641. break;
  17642. }
  17643. }
  17644. this.$forceUpdate();
  17645. },
  17646. returnCard(r, i, j) {
  17647. var a = this.sentenceList[i].addSentence.indexOf(r);
  17648. this.sentenceList[i].chooseSenList[j] = "";
  17649. this.sentenceList[i].addChangeSen[a] = r;
  17650. this.$forceUpdate();
  17651. },
  17652. // addSentenceTool() {
  17653. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17654. // this.taskCount
  17655. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17656. // this.sentenceList = [
  17657. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17658. // ];
  17659. // this.dialogVisibleSentence = false;
  17660. // },
  17661. toolsCount(a, t) {
  17662. let params = {
  17663. cid: this.id,
  17664. chid: this.courseType,
  17665. uid: this.userid,
  17666. tid: t,
  17667. count: a,
  17668. };
  17669. this.ajax
  17670. .get(this.$store.state.api + "insertToolsCount", params)
  17671. .then((res) => {
  17672. this.selectCount();
  17673. })
  17674. .catch((err) => {
  17675. console.error(err);
  17676. });
  17677. },
  17678. updateCount(c, t) {
  17679. c++;
  17680. let params = {
  17681. cid: this.id,
  17682. chid: this.courseType,
  17683. uid: this.userid,
  17684. tid: t,
  17685. count: c,
  17686. };
  17687. this.ajax
  17688. .get(this.$store.state.api + "updateToolsCount", params)
  17689. .then((res) => {
  17690. this.selectCount();
  17691. })
  17692. .catch((err) => {
  17693. console.error(err);
  17694. });
  17695. },
  17696. checkEva() {
  17697. if (this.evalua != "") {
  17698. for (var i = 0; i < this.evaJuri.length; i++) {
  17699. if (this.evalua == this.evaJuri[i].id) {
  17700. this.eTitle = this.evaJuri[i].title;
  17701. this.eJson = JSON.parse(this.evaJuri[i].content);
  17702. }
  17703. }
  17704. this.$forceUpdate();
  17705. setTimeout(() => {
  17706. this.setMindData();
  17707. }, 0);
  17708. }
  17709. },
  17710. selectEva() {
  17711. let params = {
  17712. oid: this.oid,
  17713. };
  17714. this.ajax
  17715. .get(this.$store.state.api + "selectAllEvaluation", params)
  17716. .then((res) => {
  17717. this.evaJuri = res.data[0];
  17718. })
  17719. .catch((err) => {
  17720. console.error(err);
  17721. });
  17722. },
  17723. setMindData() {
  17724. this.data.data = [];
  17725. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17726. let _eJson = Object.keys(this.eJson);
  17727. let _e = this.eJson;
  17728. for (let i = 0; i < _eJson.length; i++) {
  17729. let element = _e[_eJson[i]];
  17730. this.data.data.push({
  17731. id: element.id,
  17732. parentid: "root",
  17733. topic: element.name,
  17734. });
  17735. let _eJsonc = Object.keys(element.child);
  17736. let _e2 = element.child;
  17737. for (let j = 0; j < _eJsonc.length; j++) {
  17738. let _ec = _e2[_eJsonc[j]];
  17739. this.data.data.push({
  17740. id: _ec.id,
  17741. parentid: element.id,
  17742. topic: _ec.name,
  17743. });
  17744. let _eJsonz = Object.keys(_ec.child);
  17745. let _e3 = _ec.child;
  17746. for (let z = 0; z < _eJsonz.length; z++) {
  17747. let _ez = _e3[_eJsonz[z]];
  17748. this.data.data.push({
  17749. id: _ez.id,
  17750. parentid: _ec.id,
  17751. topic: _ez.name,
  17752. });
  17753. }
  17754. }
  17755. }
  17756. this.$forceUpdate();
  17757. },
  17758. checkFileFull(type, url) {
  17759. this.fullDialogVisible = true;
  17760. this.fulltype = type;
  17761. this.fullUrl = url;
  17762. },
  17763. checkFileFull1(t, f) {
  17764. this.fullDialogVisible = true;
  17765. if (t == 6) {
  17766. this.fulltype = 1;
  17767. this.fullUrl = JSON.parse(JSON.stringify(f));
  17768. } else if (t == 8) {
  17769. this.fulltype = 2;
  17770. this.fullUrl = f.url;
  17771. } else if (
  17772. t == 3 &&
  17773. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17774. "PDF"
  17775. ) {
  17776. this.fulltype = 3;
  17777. this.fullUrl = f.url;
  17778. } else if (t == 3) {
  17779. this.fulltype = 2;
  17780. this.fullUrl =
  17781. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17782. }
  17783. },
  17784. openSname(n, id, i, uid) {
  17785. this.snameWid = id;
  17786. this.worksSName = n;
  17787. this.worksSid = uid == n ? "" : uid;
  17788. this.toolindex = i;
  17789. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17790. if (!this.uploadCid) {
  17791. this.$message.error(
  17792. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17793. );
  17794. return;
  17795. }
  17796. this.selectUploadStudent(1);
  17797. },
  17798. updateName() {
  17799. let params = {
  17800. n: this.worksSName,
  17801. cid: this.snameWid,
  17802. };
  17803. this.ajax
  17804. .get(this.$store.state.api + "updateCourseWorksName", params)
  17805. .then((res) => {
  17806. this.$message({
  17807. message: "修改成功",
  17808. type: "success",
  17809. });
  17810. this.dialogVisibleSname = false;
  17811. this.getCourseDetail(2);
  17812. this.snameWid = "";
  17813. this.worksSName = "";
  17814. })
  17815. .catch((err) => {
  17816. console.error(err);
  17817. });
  17818. },
  17819. downloadFile2(f) {
  17820. // const loading = this.$loading.service({
  17821. // background: "rgba(255, 255, 255, 0.7)",
  17822. // target: document.body,
  17823. // text: "文件加载中...",
  17824. // });
  17825. // let url2 = f.url;
  17826. // let _url2 = "";
  17827. // if (
  17828. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17829. // ) {
  17830. // _url2 = url2.split(
  17831. // "https://view.officeapps.live.com/op/view.aspx?src="
  17832. // )[1];
  17833. // } else {
  17834. // _url2 = url2;
  17835. // }
  17836. // let params = {
  17837. // url: _url2,
  17838. // name: f.name,
  17839. // };
  17840. // this.ajax
  17841. // .get(this.$store.state.api + "download", params)
  17842. // .then((res) => {
  17843. // loading.close();
  17844. // let content = res.data.data.data;
  17845. // let ab = new ArrayBuffer(content.length);
  17846. // let view = new Uint8Array(ab);
  17847. // for (var i = 0; i < content.length; ++i) {
  17848. // view[i] = content[i];
  17849. // }
  17850. // let elink = document.createElement("a");
  17851. // elink.download = f.name;
  17852. // elink.style.display = "none";
  17853. // let blob = new Blob([ab], {
  17854. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17855. // });
  17856. // elink.href = URL.createObjectURL(blob);
  17857. // document.body.appendChild(elink);
  17858. // elink.click();
  17859. // document.body.removeChild(elink);
  17860. // })
  17861. // .catch((err) => {
  17862. // loading.close();
  17863. // console.error(err);
  17864. // });
  17865. let url = f.url;
  17866. let _this = this;
  17867. let _url = "";
  17868. if (
  17869. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17870. ) {
  17871. _url = url.split(
  17872. "https://view.officeapps.live.com/op/view.aspx?src="
  17873. )[1];
  17874. } else {
  17875. _url = url;
  17876. }
  17877. const loading = _this.$loading.service({
  17878. background: "rgba(255, 255, 255, 0.7)",
  17879. target: document.body,
  17880. text: "文件加载中...",
  17881. });
  17882. let x = new XMLHttpRequest();
  17883. x.open("GET", _url, true);
  17884. x.responseType = "blob";
  17885. x.onload = function () {
  17886. loading.close();
  17887. let url = window.URL.createObjectURL(new Blob([x.response]));
  17888. let a = document.createElement("a");
  17889. a.name = f.name;
  17890. a.href = url;
  17891. a.download = f.name;
  17892. a.click();
  17893. };
  17894. x.send();
  17895. },
  17896. downloadFile(url) {
  17897. let _this = this;
  17898. let _url = "";
  17899. if (
  17900. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17901. ) {
  17902. _url = url.split(
  17903. "https://view.officeapps.live.com/op/view.aspx?src="
  17904. )[1];
  17905. } else {
  17906. _url = url;
  17907. }
  17908. const x = new XMLHttpRequest();
  17909. x.open("GET", _url, true);
  17910. x.responseType = "blob";
  17911. const loading = _this.$loading.service({
  17912. background: "rgba(255, 255, 255, 0.7)",
  17913. target: document.body,
  17914. text: "文件加载中...",
  17915. });
  17916. // _this.$message.success("文件下载中...");
  17917. x.onload = function (e) {
  17918. loading.close();
  17919. let content = x.response;
  17920. let elink = document.createElement("a");
  17921. elink.download = decodeURI(
  17922. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17923. );
  17924. elink.style.display = "none";
  17925. let blob = new Blob([content]);
  17926. elink.href = URL.createObjectURL(blob);
  17927. document.body.appendChild(elink);
  17928. elink.click();
  17929. document.body.removeChild(elink);
  17930. };
  17931. x.send();
  17932. },
  17933. openLine(url) {
  17934. window.open(url);
  17935. },
  17936. resize() {
  17937. if (document.getElementsByClassName("box_course").length) {
  17938. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17939. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17940. if (this.showType == 2 || this.showType == 3) {
  17941. document.getElementsByClassName("navBox")[0].style.height =
  17942. a - 40 + 46 + "px";
  17943. } else {
  17944. document.getElementsByClassName("navBox")[0].style.height =
  17945. a - 40 + "px";
  17946. }
  17947. }
  17948. this.Stbodywidth =
  17949. document.getElementsByClassName("student_body").length &&
  17950. document.getElementsByClassName("student_body")[0].offsetWidth;
  17951. },
  17952. closeDraw() {
  17953. this.bg = null;
  17954. this.drawShow = false;
  17955. },
  17956. showPicturePaint(url) {
  17957. let params = {
  17958. img: url,
  17959. };
  17960. this.ajax
  17961. .get(this.$store.state.api + "imgToBase64", params)
  17962. .then((res) => {
  17963. this.drawShow = true;
  17964. this.bg = res.data[0].img;
  17965. })
  17966. .catch((err) => {
  17967. console.error(err);
  17968. });
  17969. },
  17970. addImgDraw(base64) {
  17971. let file = { name: "批注图.png" };
  17972. let img = this.dataUrlToFile(base64, file);
  17973. this.beforeUpload1(img, 5);
  17974. },
  17975. addImgDrawImG(url) {
  17976. // console.log(url);
  17977. let params = [
  17978. {
  17979. wid: this.commentDetail.wid,
  17980. img: url,
  17981. },
  17982. ];
  17983. this.ajax
  17984. .post(this.$store.state.api + "updateCourseWorks", params)
  17985. .then((res) => {
  17986. this.$message({
  17987. message: "提交成功",
  17988. type: "success",
  17989. });
  17990. this.drawShow = false;
  17991. this.bg = "";
  17992. this.selectSWorks();
  17993. this.selectStudent();
  17994. })
  17995. .catch((err) => {
  17996. this.$message.error("提交失败");
  17997. console.error(err);
  17998. });
  17999. },
  18000. deletePicturePaint() {
  18001. this.$confirm("确定删除此批注吗?", "提示", {
  18002. confirmButtonText: "确定",
  18003. cancelButtonText: "取消",
  18004. type: "warning",
  18005. })
  18006. .then(() => {
  18007. let params = [
  18008. {
  18009. wid: this.commentDetail.wid,
  18010. img: "",
  18011. },
  18012. ];
  18013. this.ajax
  18014. .post(this.$store.state.api + "updateCourseWorks", params)
  18015. .then((res) => {
  18016. this.$message({
  18017. message: "删除成功",
  18018. type: "success",
  18019. });
  18020. this.selectSWorks();
  18021. this.selectStudent();
  18022. })
  18023. .catch((err) => {
  18024. this.$message.error("删除失败");
  18025. console.error(err);
  18026. });
  18027. })
  18028. .catch(() => {});
  18029. },
  18030. getAudioVideo(constraintsData) {
  18031. if (navigator.mediaDevices === undefined) {
  18032. navigator.mediaDevices = {};
  18033. }
  18034. if (navigator.mediaDevices.getUserMedia === undefined) {
  18035. navigator.mediaDevices.getUserMedia = function (constraints) {
  18036. // 首先,如果有getUserMedia的话,就获得它
  18037. var getUserMedia =
  18038. navigator.getUserMedia ||
  18039. navigator.webkitGetUserMedia ||
  18040. navigator.mozGetUserMedia ||
  18041. navigator.msGetUserMedia;
  18042. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18043. if (!getUserMedia) {
  18044. return Promise.reject({ code: 404 });
  18045. }
  18046. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18047. return new Promise(function (resolve, reject) {
  18048. getUserMedia.call(navigator, constraints, resolve, reject);
  18049. });
  18050. };
  18051. }
  18052. return navigator.mediaDevices.getUserMedia(constraintsData);
  18053. },
  18054. /**
  18055. * 开始录制
  18056. */
  18057. startRecording(callback) {
  18058. let _function = (screenStream) => {
  18059. this.addStreamStopListener(screenStream, () => {
  18060. console.log("流停止监听");
  18061. this.stopRecording();
  18062. this.$emit("streamStop", {});
  18063. // this.stopRecording();
  18064. });
  18065. var options = {
  18066. type: "video",
  18067. mimeType: "video/webm",
  18068. disableLogs: false,
  18069. getNativeBlob: false, // enable it for longer recordings
  18070. ignoreMutedMedia: false,
  18071. };
  18072. // this.video.srcObject = screenStream;
  18073. this.recorder = RecordRTC(screenStream, options);
  18074. this.recorder.startRecording();
  18075. this.recorder.screen = screenStream;
  18076. this.videoStart = true;
  18077. // callback(true);
  18078. };
  18079. this.getAudioVideo({ audio: true })
  18080. .then((res) => {
  18081. this.captureScreen(_function, true);
  18082. console.log("已点击允许,开启成功");
  18083. })
  18084. .catch((err) => {
  18085. // console.log('浏览器不支持,请更换浏览器')
  18086. // } else {
  18087. this.captureScreen(_function, false);
  18088. console.log("请检查是否存在麦克风");
  18089. });
  18090. },
  18091. /**
  18092. * 停止录制
  18093. */
  18094. stopRecording(callback) {
  18095. this.recorder.stopRecording(() => {
  18096. // this.video.src = this.video.srcObject = null;
  18097. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18098. const url = URL.createObjectURL(this.recorder.getBlob());
  18099. const a = document.createElement("a"); //this.fileName+
  18100. let videoFile = new File(
  18101. [this.recorder.getBlob()],
  18102. this.courseDetail.title + "录屏.mp4",
  18103. {
  18104. type: "video/mp4",
  18105. }
  18106. );
  18107. let downloadUrl = URL.createObjectURL(videoFile);
  18108. document.body.appendChild(a);
  18109. a.style.display = "none";
  18110. a.href = url;
  18111. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18112. a.click();
  18113. this.recorder.screen.stop();
  18114. this.recorder.destroy();
  18115. this.recorder = null;
  18116. this.videoStart = false;
  18117. // callback(false);
  18118. });
  18119. },
  18120. //初始化
  18121. captureScreen(callback, type) {
  18122. if (navigator.getDisplayMedia) {
  18123. //录制结束,文件下载
  18124. navigator
  18125. .getDisplayMedia({
  18126. video: true,
  18127. })
  18128. .then((screenStream) => {
  18129. if (type) {
  18130. navigator.mediaDevices
  18131. .getUserMedia({ audio: true })
  18132. .then((mic) => {
  18133. screenStream.addTrack(mic.getTracks()[0]);
  18134. callback(screenStream);
  18135. });
  18136. } else {
  18137. callback(screenStream);
  18138. }
  18139. })
  18140. .catch(function (error) {
  18141. console.log("error", error);
  18142. });
  18143. } else if (navigator.mediaDevices.getDisplayMedia) {
  18144. navigator.mediaDevices
  18145. .getDisplayMedia({
  18146. video: true,
  18147. })
  18148. .then((screenStream) => {
  18149. if (type) {
  18150. navigator.mediaDevices
  18151. .getUserMedia({ audio: true })
  18152. .then((mic) => {
  18153. screenStream.addTrack(mic.getTracks()[0]);
  18154. callback(screenStream);
  18155. });
  18156. } else {
  18157. callback(screenStream);
  18158. }
  18159. })
  18160. .catch(function (error) {
  18161. console.log("error", error);
  18162. });
  18163. } else {
  18164. var error = "getDisplayMedia API are not supported in this browser.";
  18165. console.log("error", error);
  18166. alert(error);
  18167. }
  18168. },
  18169. //流监听
  18170. addStreamStopListener(stream, callback) {
  18171. stream.addEventListener(
  18172. "ended",
  18173. function () {
  18174. callback();
  18175. callback = function () {};
  18176. },
  18177. false
  18178. );
  18179. stream.addEventListener(
  18180. "inactive",
  18181. function () {
  18182. callback();
  18183. callback = function () {};
  18184. },
  18185. false
  18186. );
  18187. stream.getTracks().forEach(function (track) {
  18188. track.addEventListener(
  18189. "ended",
  18190. function () {
  18191. callback();
  18192. callback = function () {};
  18193. },
  18194. false
  18195. );
  18196. track.addEventListener(
  18197. "inactive",
  18198. function () {
  18199. callback();
  18200. callback = function () {};
  18201. },
  18202. false
  18203. );
  18204. });
  18205. },
  18206. updateGroup() {
  18207. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18208. this.dialogVisibleGroup2 = true;
  18209. },
  18210. numberPan() {
  18211. if (
  18212. /[^\d]/.test(this.groupJson.number) ||
  18213. this.groupJson.number < 2 ||
  18214. this.groupJson.number > 10
  18215. ) {
  18216. this.$message.error("请输入2-10的数字");
  18217. this.groupJson.number = "";
  18218. }
  18219. },
  18220. updateGroupJson() {
  18221. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18222. if (
  18223. this.groupStudentUid[this.toolindex][i].length >
  18224. this.groupJson2.number
  18225. ) {
  18226. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18227. return;
  18228. }
  18229. }
  18230. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18231. this.islock = this.groupJson.islock == 1 ? true : false;
  18232. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18233. this.taskCount
  18234. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18235. let params = [
  18236. {
  18237. cid: this.id,
  18238. chapters: JSON.stringify(this.chapInfoList),
  18239. uid: this.userid,
  18240. unitIndex: this.courseType,
  18241. },
  18242. ];
  18243. this.ajax
  18244. .post(this.$store.state.api + "updateWorkNew4", params)
  18245. .then((res) => {
  18246. this.$message.success("设置成功");
  18247. this.getCourseDetail(2);
  18248. this.dialogVisibleGroup2 = false;
  18249. this.groupJson2 = {};
  18250. this.$forceUpdate();
  18251. })
  18252. .catch((err) => {
  18253. this.$message.error("网络不佳");
  18254. console.error(err);
  18255. });
  18256. },
  18257. lockChair() {
  18258. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18259. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18260. this.updateGroupJson();
  18261. },
  18262. selectGroup(index) {
  18263. this.getCourseDetail(2, index);
  18264. },
  18265. joinGroup(index) {
  18266. if (this.groupJson.islock == 2) {
  18267. this.$message.error("位置已被锁定,无法加入");
  18268. return;
  18269. }
  18270. if (
  18271. this.groupStudent[this.toolindex][index].length >
  18272. this.groupJson.number ||
  18273. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18274. ) {
  18275. this.$message.error("位置已满,无法加入");
  18276. return;
  18277. }
  18278. let params = [
  18279. {
  18280. cid: this.id,
  18281. stage: this.courseType,
  18282. task: this.taskCount,
  18283. tool: this.toolindex,
  18284. g: index,
  18285. uid: this.userid,
  18286. },
  18287. ];
  18288. this.ajax
  18289. .post(this.$store.state.api + "joinGroup", params)
  18290. .then((res) => {
  18291. this.$message.success("加入成功");
  18292. this.getCourseDetail(2);
  18293. })
  18294. .catch((err) => {
  18295. this.$message.error("网络不佳");
  18296. console.error(err);
  18297. });
  18298. },
  18299. exitGroup(id) {
  18300. if (this.groupJson.islock == 2) {
  18301. this.$message.error("位置已被锁定,无法退出");
  18302. return;
  18303. }
  18304. let params = [
  18305. {
  18306. gid: id,
  18307. },
  18308. ];
  18309. this.ajax
  18310. .post(this.$store.state.api + "exitGroup", params)
  18311. .then((res) => {
  18312. this.$message.success("退出成功");
  18313. this.getCourseDetail(2);
  18314. })
  18315. .catch((err) => {
  18316. this.$message.error("网络不佳");
  18317. console.error(err);
  18318. });
  18319. },
  18320. groupUpload(index, task, gindex) {
  18321. this.taskCount = task;
  18322. this.toolindex = index;
  18323. this.groupIndex = gindex;
  18324. this.dialogVisibleGroupWork = true;
  18325. },
  18326. updateGroupChair(user) {
  18327. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18328. el.label = index;
  18329. return index != user.group;
  18330. });
  18331. this.updateGroupUser = user;
  18332. this.dialogVisibleUpdateGroup = true;
  18333. },
  18334. updateChair() {
  18335. if (
  18336. this.groupStudent[this.toolindex][this.checkChair].length >
  18337. this.groupJson.number ||
  18338. this.groupStudent[this.toolindex][this.checkChair].length ==
  18339. this.groupJson.number
  18340. ) {
  18341. this.$message.error("位置已满,无法加入");
  18342. return;
  18343. }
  18344. let params = [
  18345. {
  18346. cid: this.id,
  18347. stage: this.courseType,
  18348. task: this.taskCount,
  18349. tool: this.toolindex,
  18350. g: this.checkChair,
  18351. uid: this.updateGroupUser.userid,
  18352. },
  18353. ];
  18354. this.ajax
  18355. .post(this.$store.state.api + "joinGroup", params)
  18356. .then((res) => {
  18357. this.$message.success("修改成功");
  18358. this.updateGroupUser = {};
  18359. this.checkChair = "";
  18360. this.updateGroupArray = {};
  18361. this.dialogVisibleUpdateGroup = false;
  18362. this.getCourseDetail(2);
  18363. })
  18364. .catch((err) => {
  18365. this.$message.error("网络不佳");
  18366. console.error(err);
  18367. });
  18368. },
  18369. deleteGroupChair(gindex) {
  18370. this.checkDeleteGroup = [];
  18371. this.deleteGroupUser = JSON.parse(
  18372. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18373. );
  18374. this.deleteGroupArray = this.groupJson.group[gindex];
  18375. this.groupIndex = gindex;
  18376. this.dialogVisibleDeleteGroup = true;
  18377. },
  18378. async deleteChair() {
  18379. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18380. const gid =
  18381. this.groupStudent[this.toolindex][this.groupIndex][
  18382. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18383. this.checkDeleteGroup[i]
  18384. )
  18385. ];
  18386. let params = [
  18387. {
  18388. gid: gid.id,
  18389. },
  18390. ];
  18391. var a = await this.deleteChairA(params);
  18392. if (i == this.checkDeleteGroup.length - 1) {
  18393. this.$message.success("退出成功");
  18394. this.dialogVisibleDeleteGroup = false;
  18395. this.deleteGroupUser = [];
  18396. this.deleteGroupArray = {};
  18397. this.groupIndex = "";
  18398. this.checkDeleteGroup = [];
  18399. this.getCourseDetail(2);
  18400. }
  18401. }
  18402. },
  18403. deleteChairA(params) {
  18404. return new Promise((resolve, reject) => {
  18405. this.ajax
  18406. .post(this.$store.state.api + "exitGroup", params)
  18407. .then((res) => {
  18408. resolve(1);
  18409. })
  18410. .catch((err) => {
  18411. this.$message.error("网络不佳");
  18412. console.error(err);
  18413. });
  18414. });
  18415. },
  18416. contract(i) {
  18417. if (this.isCloseList[i].isClose == 0) {
  18418. this.isCloseList[i].isClose = 1;
  18419. } else {
  18420. this.isCloseList[i].isClose = 0;
  18421. }
  18422. this.$forceUpdate();
  18423. },
  18424. openWordCloud(toolindex) {
  18425. let array = [];
  18426. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18427. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18428. array.push({ name: works });
  18429. }
  18430. if (this.isGroup) {
  18431. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18432. let works = this.courseGroup.group[i].works[toolindex];
  18433. for (var j = 0; j < works.length; j++) {
  18434. let answer = JSON.parse(works[j].works)[0].answer;
  18435. array.push({ name: answer });
  18436. }
  18437. }
  18438. }
  18439. this.wordCloudData = array;
  18440. this.dialogVisibleWordCloud = true;
  18441. },
  18442. uploadWorks(i) {
  18443. this.$confirm("确定导出作业吗?", "提示", {
  18444. confirmButtonText: "确定",
  18445. cancelButtonText: "取消",
  18446. type: "warning",
  18447. })
  18448. .then(() => {
  18449. const loading = this.$loading.service({
  18450. background: "rgba(255, 255, 255, 0.7)",
  18451. target: document.body,
  18452. text: "文件加载中...",
  18453. });
  18454. const _worksStudent = this.worksStudent;
  18455. let url = [];
  18456. var counts = {};
  18457. for (var l = 0; l < _worksStudent[i].length; l++) {
  18458. var item = _worksStudent[i][l];
  18459. var name = item.sName;
  18460. if (!counts.hasOwnProperty(name)) {
  18461. counts[name] = 0;
  18462. } else {
  18463. counts[name]++;
  18464. }
  18465. if (counts[name] > 0) {
  18466. item.sName += " (" + counts[name] + ")";
  18467. }
  18468. }
  18469. for (var l = 0; l < _worksStudent[i].length; l++) {
  18470. var item = _worksStudent[i][l];
  18471. if (
  18472. item.works.indexOf(
  18473. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18474. ) !== -1 &&
  18475. item.works.indexOf("img") === -1
  18476. ) {
  18477. url.push({ name: item.sName, url: item.works });
  18478. }
  18479. }
  18480. // var toolList = [
  18481. // { name: "电子白板", tool: 1 },
  18482. // { name: "思维导图", tool: 3 },
  18483. // { name: "协同文档", tool: 6 },
  18484. // { name: "思维网格", tool: 7 },
  18485. // { name: "素材库", tool: 8 },
  18486. // { name: "学习资料", tool: 17 },
  18487. // { name: "便签", tool: 2 },
  18488. // { name: "问卷调查", tool: 4 },
  18489. // { name: "选择题", tool: 45 },
  18490. // { name: "倒计时", tool: 10 },
  18491. // { name: "问答", tool: 15 },
  18492. // { name: "课程设计", tool: 26 },
  18493. // { name: "训练服务器", tool: 18 },
  18494. // { name: "作业提交", tool: 16 },
  18495. // { name: "批量上传", tool: 50 },
  18496. // { name: "AIoT Blockly", tool: 21 },
  18497. // { name: "AI Python", tool: 23 },
  18498. // { name: "AI Blockly", tool: 24 },
  18499. // { name: "目标管理", tool: 25 },
  18500. // { name: "数学画板", tool: 31 },
  18501. // { name: "翻译", tool: 28 },
  18502. // { name: "魔盒识字", tool: 37 },
  18503. // { name: "数学画板", tool: 31 },
  18504. // { name: "24点", tool: 38 },
  18505. // { name: "GeoGebra", tool: 39 },
  18506. // { name: "源码编辑", tool: 32 },
  18507. // { name: "个人评价", tool: 40 },
  18508. // { name: "选择匹配", tool: 41 },
  18509. // { name: "汉字宫", tool: 44 },
  18510. // { name: "排序", tool: 47 },
  18511. // { name: "表格", tool: 48 },
  18512. // { name: "文档", tool: 52 },
  18513. // { name: "学生分组", tool: 49 },
  18514. // { name: "CocoPi", tool: 57 },
  18515. // { name: "模拟驾驶", tool: 58 },
  18516. // { name: "路径搜索", tool: 59 },
  18517. // { name: "深度学习", tool: 60 },
  18518. // { name: "全历史", tool: 61 },
  18519. // { name: "交互视频", tool: 62 },
  18520. // { name: "海龟编程", tool: 63 },
  18521. // { name: "挑人", tool: 65 },
  18522. // { name: "公式编辑", tool: 66 },
  18523. // { name: "分子结构", tool: 67 },
  18524. // { name: "时间轴", tool: 68 },
  18525. // ];
  18526. // var toolName = "";
  18527. // for(var w = 0;w<toolList.length;w++){
  18528. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18529. // toolName = toolList[w].name;
  18530. // }
  18531. // }
  18532. console.log(url);
  18533. this.downLoadAll(url, loading);
  18534. })
  18535. .catch(() => {});
  18536. },
  18537. downLoadAll(url, loading) {
  18538. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18539. const zip = new JSZip();
  18540. const cache = {};
  18541. const promises = [];
  18542. data.forEach((item) => {
  18543. const promise = getFile(item.url).then((data) => {
  18544. if (data.data != 1) {
  18545. // 下载文件, 并存成ArrayBuffer对象
  18546. const file_name =
  18547. item.name +
  18548. "." +
  18549. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18550. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18551. cache[file_name] = data.data;
  18552. }
  18553. });
  18554. promises.push(promise);
  18555. });
  18556. Promise.all(promises).then(() => {
  18557. zip.generateAsync({ type: "blob" }).then((content) => {
  18558. // 生成二进制流
  18559. FileSaver.saveAs(
  18560. content,
  18561. this.courseDetail.title + "-" + "作业提交工具.zip"
  18562. ); // 利用file-saver保存文件 自定义文件名
  18563. setTimeout(() => {
  18564. loading.close();
  18565. }, 2000);
  18566. });
  18567. });
  18568. },
  18569. pickStudent(stu) {
  18570. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18571. return;
  18572. }
  18573. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18574. confirmButtonText: "确定",
  18575. cancelButtonText: "取消",
  18576. type: "warning",
  18577. })
  18578. .then(() => {
  18579. let params = [
  18580. {
  18581. uid: stu.userid,
  18582. cid: this.id,
  18583. stage: this.courseType,
  18584. task: this.taskCount,
  18585. tool: this.toolindex,
  18586. },
  18587. ];
  18588. this.ajax
  18589. .post(this.$store.state.api + "updateCoursePick", params)
  18590. .then((res) => {
  18591. this.$message.success("操作成功");
  18592. this.getPick();
  18593. })
  18594. .catch((err) => {
  18595. this.$message.error("网络不佳");
  18596. console.error(err);
  18597. });
  18598. })
  18599. .catch(() => {});
  18600. },
  18601. selectUser(){
  18602. let params = {
  18603. userid: this.userid,
  18604. };
  18605. this.ajax
  18606. .get(this.$store.state.api + "selectUser", params)
  18607. .then((res) => {
  18608. this.userMes = res.data[0];
  18609. })
  18610. .catch((err) => {
  18611. console.error(err);
  18612. });
  18613. },
  18614. setEngText(i){
  18615. this.newEngIndex = i;
  18616. this.$forceUpdate();
  18617. },
  18618. addCorrect(){
  18619. this.$confirm("你确定提交批改嘛?", "提示", {
  18620. confirmButtonText: "确定",
  18621. showCancelButton: false,
  18622. closeOnClickModal: false,
  18623. type: "warning",
  18624. })
  18625. .then(() => {
  18626. let params = {
  18627. cid: this.id,
  18628. s: parseInt(this.courseType),
  18629. t: this.taskCount,
  18630. tool: this.toolindex,
  18631. wid: this.engWid,
  18632. c: this.userid,
  18633. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18634. };
  18635. this.ajax
  18636. .get(this.$store.state.api + "addEngC", params)
  18637. .then((res) => {
  18638. this.$message.success("提交成功");
  18639. this.engUpdateDialogVisible = false;
  18640. })
  18641. .catch((err) => {
  18642. console.error(err);
  18643. });
  18644. })
  18645. .catch(() => {});
  18646. },
  18647. selectEngC(id,z){
  18648. let params = {
  18649. workid: id,
  18650. };
  18651. this.ajax
  18652. .get(this.$store.state.api + "selectEngC", params)
  18653. .then((res) => {
  18654. if(res.data[0].length == 0){
  18655. this.newEnglishList.engTitle = z.engTitle;
  18656. this.newEnglishList.engText = z.engText;
  18657. }else{
  18658. var a = res.data[0];
  18659. if(this.userMes[0].type == 2){
  18660. var snum = 0;
  18661. for(var i = 0;i<a.length;i++){
  18662. if(this.userMes[0].userid == a[i].correct){
  18663. this.newEnglishList = JSON.parse(a[i].cWork);
  18664. snum = 1;
  18665. }
  18666. }
  18667. if(snum == 0){
  18668. this.newEnglishList = { engTitle:"",engText:"" };
  18669. this.newEnglishList.engTitle = z.engTitle;
  18670. this.newEnglishList.engText = z.engText;
  18671. }
  18672. }else if(this.userMes[0].type == 1){
  18673. var num = 0;
  18674. for(var w= 0;w<a.length;w++){
  18675. if(this.userMes[0].userid == a[w].correct){
  18676. num = 1;
  18677. }
  18678. }
  18679. if(num == 0){
  18680. this.isNoUserid = true;
  18681. var c = JSON.parse(JSON.stringify(z));
  18682. this.oldEnglishJson1 = c;
  18683. }else{
  18684. this.isNoUserid = false;
  18685. }
  18686. var b = a.sort((item, index) => {
  18687. if (item.correct === this.userMes[0].userid) {
  18688. return -1; // 将a移到前面
  18689. } else if (index.correct === this.userMes[0].userid) {
  18690. return 1; // 将b移到前面
  18691. } else {
  18692. return 0; // 保持默认顺序
  18693. }
  18694. });
  18695. this.newEnglishList1 = b;
  18696. }
  18697. }
  18698. this.engUpdateDialogVisible = true;
  18699. this.$forceUpdate();
  18700. setTimeout(() => {
  18701. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18702. if(this.newEnglishList1.length > 0){
  18703. if(this.isNoUserid == true){
  18704. this.engListLength = this.newEnglishList1.length + 1;
  18705. this.newEngIndex = -1;
  18706. }else{
  18707. this.engListLength = this.newEnglishList1.length;
  18708. this.newEngIndex = 0;
  18709. }
  18710. }
  18711. }, 500);
  18712. })
  18713. .catch((err) => {
  18714. console.error(err);
  18715. });
  18716. },
  18717. getPick() {
  18718. let params = {
  18719. cid: this.id,
  18720. };
  18721. this.ajax
  18722. .get(this.$store.state.api + "getPick", params)
  18723. .then((res) => {
  18724. let array = [];
  18725. for (var i = 0; i < res.data[0].length; i++) {
  18726. array.push(res.data[0][i].userid);
  18727. }
  18728. this.isPickStudent = array;
  18729. if (array.indexOf(this.userid) !== -1) {
  18730. this.$confirm("你被老师选到啦!", "提示", {
  18731. confirmButtonText: "确定",
  18732. showCancelButton: false,
  18733. closeOnClickModal: false,
  18734. type: "warning",
  18735. })
  18736. .then(() => {
  18737. let pa = [
  18738. {
  18739. uid: this.userid,
  18740. cid: this.id,
  18741. },
  18742. ];
  18743. this.ajax
  18744. .post(this.$store.state.api + "deletePick", pa)
  18745. .then((res) => {
  18746. this.getPick();
  18747. })
  18748. .catch((err) => {
  18749. this.$message.error("网络不佳");
  18750. console.error(err);
  18751. });
  18752. })
  18753. .catch(() => {});
  18754. }
  18755. })
  18756. .catch((err) => {
  18757. this.$message.error("网络不佳");
  18758. console.error(err);
  18759. });
  18760. },
  18761. },
  18762. directives: {
  18763. // 使用局部注册指令的方式
  18764. resize: {
  18765. // 指令的名称
  18766. bind(el, binding) {
  18767. // el为绑定的元素,binding为绑定给指令的对象
  18768. let width = "",
  18769. height = "";
  18770. function isReize() {
  18771. const style = document.defaultView.getComputedStyle(el);
  18772. if (width !== style.width || height !== style.height) {
  18773. binding.value(); // 关键
  18774. }
  18775. width = style.width;
  18776. height = style.height;
  18777. }
  18778. el.__vueSetInterval__ = setInterval(isReize, 300);
  18779. },
  18780. unbind(el) {
  18781. clearInterval(el.__vueSetInterval__);
  18782. },
  18783. },
  18784. },
  18785. beforeDestroy() {
  18786. window.onresize = null;
  18787. clearInterval(this.timer);
  18788. this.timer = null;
  18789. clearInterval(this.opertimer);
  18790. this.opertimer = null;
  18791. },
  18792. computed: {
  18793. getHeight(){
  18794. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18795. },
  18796. contentConvent() {
  18797. return function (c) {
  18798. return c
  18799. ? c
  18800. .replaceAll(/\r\n/g, "<br/>")
  18801. .replaceAll(/\n/g, "<br/>")
  18802. .replaceAll(/\s/g, " &nbsp")
  18803. : "";
  18804. };
  18805. },
  18806. checkUpload() {
  18807. return function () {
  18808. var studentK = [];
  18809. if (this.plworkFile.length > 0) {
  18810. for (var z = 0; z < this.plworkFile.length; z++) {
  18811. studentK.push(this.plworkFile[z].username);
  18812. }
  18813. studentK = studentK.join(",");
  18814. }
  18815. var a = this.uploadStudentJuri.filter((el) => {
  18816. return studentK.indexOf(el.userid) == -1;
  18817. });
  18818. return a;
  18819. };
  18820. },
  18821. getSName() {
  18822. return function (name) {
  18823. var check = name;
  18824. this.uploadStudentJuri.forEach((el) => {
  18825. if (el.userid == check) {
  18826. check = el.name ? el.name : el.username;
  18827. }
  18828. });
  18829. return check;
  18830. };
  18831. },
  18832. getImgList() {
  18833. return function (val) {
  18834. let srcList = []; // 定义一个数组用来接收后面的img地址
  18835. val.replace(
  18836. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18837. function (match, capture) {
  18838. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18839. srcList.push(capture);
  18840. }
  18841. );
  18842. return srcList;
  18843. };
  18844. },
  18845. },
  18846. mounted() {
  18847. document.body.addEventListener("click", (e) => {
  18848. if (this.isUpdateToolDetail1) {
  18849. this.updateToolDetail(this.toolDetailIndex);
  18850. }
  18851. });
  18852. if (this.screenType == 2) {
  18853. window.parent.postMessage({ allScreen: 4 }, "*");
  18854. } else if (this.screenType == 3) {
  18855. window.parent.postMessage({ allScreen: 5 }, "*");
  18856. } else if (this.screenType == 1) {
  18857. window.parent.postMessage({ allScreen: 6 }, "*");
  18858. }
  18859. this.setOperationTime();
  18860. this.selectEva();
  18861. this.getCourseDetail();
  18862. this.selectCount();
  18863. this.getHomeWork();
  18864. this.selectUser();
  18865. this.contentDialog = true;
  18866. this.setContent2(true);
  18867. if (this.tType == 4) {
  18868. this.pzDialog = true;
  18869. this.selectPz();
  18870. }
  18871. document.scrollingElement.scrollTop = 0;
  18872. window.addEventListener("resize", () => {
  18873. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18874. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18875. if (this.showType == 2 || this.showType == 3) {
  18876. document.getElementsByClassName("navBox")[0].style.height =
  18877. a - 40 + 46 + "px";
  18878. } else {
  18879. document.getElementsByClassName("navBox")[0].style.height =
  18880. a - 40 + "px";
  18881. }
  18882. });
  18883. let _this = this;
  18884. setTimeout(() => {
  18885. // _this.vedioTime = [];
  18886. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18887. // _this.vedioTime[i] = document.getElementsByClassName(
  18888. // "vjs-duration-display"
  18889. // )[i].textContent;
  18890. // }
  18891. }, 1000);
  18892. },
  18893. };
  18894. </script>
  18895. <style scoped>
  18896. @media screen and (max-width: 1280px) {
  18897. /* .courseIndex > div:first-child(2) {
  18898. width: 15% !important;
  18899. } */
  18900. /* .navText {
  18901. width: 120px !important;
  18902. } */
  18903. .evaCss {
  18904. flex-direction: column !important;
  18905. align-items: center !important;
  18906. }
  18907. .elist_input {
  18908. width: 90% !important;
  18909. }
  18910. .dialog_diy1 >>> .el-dialog {
  18911. width: 100% !important;
  18912. }
  18913. .rightWidthCss {
  18914. width: 100% !important;
  18915. }
  18916. .dialog_diy3 >>> .el-dialog {
  18917. width: 100% !important;
  18918. }
  18919. .addToolCss {
  18920. right: 0 !important;
  18921. width: 100% !important;
  18922. min-width: unset !important;
  18923. }
  18924. /* .textTitle >>> .el-form-item__label {
  18925. width: 150px !important;
  18926. } */
  18927. /* .stageItemTitle > div:last-child{
  18928. max-width: 50px;
  18929. } */
  18930. }
  18931. .evaCssMax {
  18932. flex-direction: column !important;
  18933. align-items: center !important;
  18934. }
  18935. .dialog_diy >>> .el-dialog {
  18936. margin-top: 10vh !important;
  18937. }
  18938. .body_student {
  18939. width: 77%;
  18940. height: 100%;
  18941. position: absolute;
  18942. left: 22%;
  18943. top: 0;
  18944. }
  18945. .student_head {
  18946. width: 100%;
  18947. margin: 20px auto 0;
  18948. padding-bottom: 20px;
  18949. display: flex;
  18950. flex-direction: column;
  18951. flex-wrap: nowrap;
  18952. align-items: flex-start;
  18953. justify-content: flex-start;
  18954. }
  18955. .pb_left {
  18956. width: 20%;
  18957. margin-right: 10px;
  18958. background: rgb(255, 255, 255);
  18959. position: fixed;
  18960. height: calc(100% - 40px);
  18961. border-radius: 20px;
  18962. padding-bottom: 15px;
  18963. box-sizing: border-box;
  18964. }
  18965. .wheel > img,
  18966. .project > img,
  18967. .star > img,
  18968. .evaluate > img,
  18969. .up_photo > img,
  18970. .chapter_add > img,
  18971. .deleteWord > img,
  18972. .question > img,
  18973. .homework > img {
  18974. width: 100%;
  18975. height: 100%;
  18976. }
  18977. .upCover > img {
  18978. width: 131px;
  18979. height: 69px;
  18980. object-fit: cover;
  18981. }
  18982. .upCover {
  18983. width: calc(100% / 3.5);
  18984. position: relative;
  18985. margin: 0 15px 10px 0;
  18986. display: flex;
  18987. flex-direction: column;
  18988. flex-wrap: nowrap;
  18989. justify-content: center;
  18990. align-content: center;
  18991. align-items: center;
  18992. height: fit-content;
  18993. }
  18994. .upCover2 {
  18995. width: 100%;
  18996. position: relative;
  18997. margin: 0 15px 10px 0;
  18998. display: flex;
  18999. flex-direction: column;
  19000. flex-wrap: nowrap;
  19001. justify-content: center;
  19002. align-content: center;
  19003. align-items: center;
  19004. }
  19005. .upCover2 > img {
  19006. width: 100%;
  19007. height: 90px;
  19008. object-fit: contain;
  19009. }
  19010. .chapter_add {
  19011. width: 120px;
  19012. position: relative;
  19013. text-align: center;
  19014. }
  19015. .isAddThings {
  19016. margin-top: 20px;
  19017. position: relative;
  19018. text-align: center;
  19019. background: #f7f8fa;
  19020. height: 90px;
  19021. width: 90px;
  19022. display: flex;
  19023. flex-direction: column;
  19024. justify-content: center;
  19025. }
  19026. .deleteWord {
  19027. width: 22px;
  19028. height: 22px;
  19029. position: absolute;
  19030. right: -5px;
  19031. top: -5px;
  19032. cursor: pointer;
  19033. }
  19034. .box_course {
  19035. /* width: 60%; */
  19036. width: calc(100% - 300px);
  19037. }
  19038. .wheel {
  19039. width: 100%;
  19040. /* height: 100%; */
  19041. height: 650px;
  19042. }
  19043. .right_box {
  19044. display: flex;
  19045. flex-direction: column;
  19046. margin-left: 30px;
  19047. justify-content: space-around;
  19048. }
  19049. .right_box_title {
  19050. font-size: 23px;
  19051. }
  19052. .people {
  19053. display: flex;
  19054. }
  19055. .student_body {
  19056. width: 100%;
  19057. margin: 0 auto;
  19058. margin-top: 10px;
  19059. padding: 0 0 20px;
  19060. }
  19061. .study_top {
  19062. margin-top: 100px;
  19063. width: 100%;
  19064. height: auto;
  19065. padding-bottom: 20px;
  19066. }
  19067. .study_top .checkbox {
  19068. display: flex;
  19069. align-items: center;
  19070. padding: 15px 0 15px 30px;
  19071. flex: 0 0 auto;
  19072. font-weight: bold;
  19073. border-bottom: 1px solid #eee;
  19074. }
  19075. .study_top .check {
  19076. padding-bottom: 5px;
  19077. text-align: center;
  19078. cursor: pointer;
  19079. height: 30px;
  19080. box-sizing: border-box;
  19081. display: flex;
  19082. }
  19083. .study_top .checked {
  19084. border-bottom: 4px solid #3fc6a0;
  19085. padding-bottom: 5px;
  19086. color: #3fc6a0;
  19087. display: flex;
  19088. height: 35px;
  19089. }
  19090. .study_top .checked > div,
  19091. .study_top .check > div {
  19092. margin-right: 5px;
  19093. }
  19094. .videoTop {
  19095. display: flex;
  19096. flex-direction: row;
  19097. justify-content: space-between;
  19098. background: #fff;
  19099. align-items: center;
  19100. width: 95%;
  19101. padding: 20px;
  19102. }
  19103. .filebox {
  19104. display: flex;
  19105. flex-wrap: wrap;
  19106. flex-direction: column;
  19107. padding: 0 0 5px;
  19108. position: relative;
  19109. }
  19110. .filebox:before {
  19111. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19112. position: absolute;
  19113. top: 20px;
  19114. left: 13px;
  19115. border-left: 2px dotted #cad1dc;
  19116. height: calc(100% - 15px);
  19117. }
  19118. .toolHeng2 > div:last-child::before {
  19119. height: calc(100% - 43px);
  19120. }
  19121. .filebox .tooldetail {
  19122. width: calc(100% - 280px);
  19123. margin: 0px 12px;
  19124. padding: 12px 25px 0 13px;
  19125. line-height: 30px;
  19126. word-break: break-word;
  19127. background: #ffffff;
  19128. border-radius: 8px 8px 8px 8px;
  19129. opacity: 1;
  19130. border: 1px solid #cad1dc;
  19131. }
  19132. .file {
  19133. display: flex;
  19134. flex-direction: column;
  19135. align-items: center;
  19136. justify-content: center;
  19137. cursor: pointer;
  19138. width: 200px;
  19139. }
  19140. .file div {
  19141. margin-top: 10px;
  19142. width: 150px;
  19143. text-align: center;
  19144. overflow: hidden;
  19145. white-space: nowrap;
  19146. text-overflow: ellipsis;
  19147. }
  19148. .media {
  19149. display: flex;
  19150. flex-direction: column;
  19151. align-items: center;
  19152. justify-content: center;
  19153. margin: 0 20px 20px 0;
  19154. cursor: pointer;
  19155. margin: 12px 0 5px 15px;
  19156. overflow: hidden;
  19157. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19158. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19159. box-sizing: border-box;
  19160. }
  19161. .media img {
  19162. height: 90px;
  19163. width: 160px;
  19164. object-fit: cover;
  19165. }
  19166. .media .title {
  19167. padding: 5px;
  19168. text-align: left;
  19169. width: 100%;
  19170. box-sizing: border-box;
  19171. }
  19172. .media .btn {
  19173. width: 100%;
  19174. height: 35px;
  19175. line-height: 35px;
  19176. color: #fff;
  19177. background: #606060;
  19178. text-align: center;
  19179. overflow: hidden;
  19180. white-space: nowrap;
  19181. text-overflow: ellipsis;
  19182. }
  19183. .detail_content_top {
  19184. width: 100%;
  19185. padding: 25px 0 25px 0;
  19186. }
  19187. .detail_title {
  19188. text-align: center;
  19189. font-size: 24px;
  19190. }
  19191. .detail_time {
  19192. font-size: 13px;
  19193. padding: 15px 0 0 40px;
  19194. }
  19195. .detail_content {
  19196. line-height: 2pc;
  19197. width: 90%;
  19198. margin: 0 auto;
  19199. padding-top: 30px;
  19200. text-indent: 30px;
  19201. overflow: auto;
  19202. height: 200px;
  19203. }
  19204. .score_box >>> .el-rate {
  19205. margin-left: 10px;
  19206. }
  19207. .dialog_change >>> .el-dialog {
  19208. border-radius: 5px;
  19209. }
  19210. .dialog_change >>> .el-dialog__header {
  19211. background: #f2f2f2;
  19212. text-align: center;
  19213. }
  19214. .dialog_change >>> .el-dialog__title {
  19215. line-height: 5px;
  19216. }
  19217. .dialog_change >>> .el-dialog__body {
  19218. background: #fff;
  19219. padding: 10px 20px;
  19220. }
  19221. .score_box {
  19222. display: flex;
  19223. align-items: center;
  19224. margin-bottom: 18px;
  19225. margin-top: 20px;
  19226. }
  19227. .up_photo {
  19228. width: 120px;
  19229. cursor: pointer;
  19230. margin-top: 10px;
  19231. }
  19232. .up_photo2 {
  19233. width: 180px;
  19234. box-sizing: border-box;
  19235. min-width: 180px;
  19236. height: 180px;
  19237. max-height: 180px;
  19238. min-height: 180px;
  19239. cursor: pointer;
  19240. display: flex;
  19241. flex-direction: column;
  19242. align-items: center;
  19243. justify-content: center;
  19244. background: rgb(242, 246, 255);
  19245. /* padding: 25px; */
  19246. margin-bottom: 10px;
  19247. }
  19248. .up_photo2 img {
  19249. width: 50%;
  19250. height: auto;
  19251. }
  19252. .up_photo2 span {
  19253. color: #898989;
  19254. }
  19255. .plworkBox {
  19256. display: flex;
  19257. align-items: center;
  19258. margin-top: 10px;
  19259. flex-wrap: wrap;
  19260. }
  19261. .upload_send {
  19262. margin: 30px auto 30px;
  19263. width: 60%;
  19264. background: #3681fc;
  19265. text-align: center;
  19266. height: 35px;
  19267. line-height: 35px;
  19268. color: #fff;
  19269. border-radius: 5px;
  19270. cursor: pointer;
  19271. }
  19272. .marginT {
  19273. margin-top: 20px;
  19274. }
  19275. .cd_content_steps {
  19276. display: flex;
  19277. width: 90%;
  19278. justify-content: space-around;
  19279. border-top: 1px solid #eeeeee;
  19280. }
  19281. .cd_steps_box {
  19282. display: flex;
  19283. justify-content: center;
  19284. align-items: center;
  19285. flex-direction: column;
  19286. cursor: pointer;
  19287. }
  19288. .first {
  19289. display: flex;
  19290. align-items: center;
  19291. margin: 15px 0 20px 0;
  19292. font-size: 20px;
  19293. }
  19294. .first > div:nth-child(2) {
  19295. font-size: 16px !important;
  19296. padding-left: 10px;
  19297. line-height: 26px;
  19298. box-sizing: border-box;
  19299. }
  19300. .blue_box_one {
  19301. text-align: center;
  19302. color: #fff;
  19303. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19304. border-radius: 7px;
  19305. margin: 10px;
  19306. cursor: pointer;
  19307. width: 95%;
  19308. height: 45px;
  19309. display: flex;
  19310. flex-direction: row;
  19311. justify-content: flex-start;
  19312. align-items: center;
  19313. }
  19314. .blue_box_one > div:nth-child(1) {
  19315. line-height: 30px;
  19316. margin: 0 5px 0 10px;
  19317. width: 30%;
  19318. min-width: 70px;
  19319. border-radius: 4px;
  19320. }
  19321. .blue_box_one > div:nth-child(2) {
  19322. white-space: nowrap;
  19323. text-overflow: ellipsis;
  19324. overflow: hidden;
  19325. word-break: break-all;
  19326. width: 70%;
  19327. text-align: left;
  19328. margin-right: 10px;
  19329. max-width: calc(100% - 85px);
  19330. }
  19331. .blue_box_one > div:nth-child(2):hover {
  19332. overflow: hidden;
  19333. text-overflow: ellipsis;
  19334. white-space: nowrap;
  19335. cursor: pointer;
  19336. }
  19337. .upFile {
  19338. margin: 0 auto;
  19339. width: 120px;
  19340. background: #3681fc;
  19341. color: #fff;
  19342. height: 30px;
  19343. text-align: center;
  19344. line-height: 30px;
  19345. border-radius: 5px;
  19346. font-size: 14px;
  19347. cursor: pointer;
  19348. }
  19349. .courseTitle {
  19350. width: 85%;
  19351. margin: 10px auto 20px auto;
  19352. display: flex;
  19353. flex-direction: row;
  19354. align-items: center;
  19355. justify-content: space-between;
  19356. text-align: center;
  19357. }
  19358. .courseTitle .ctitle {
  19359. font-size: 20px;
  19360. font-weight: bold;
  19361. color: #0e1e33;
  19362. white-space: nowrap;
  19363. overflow: hidden;
  19364. text-overflow: ellipsis;
  19365. }
  19366. .inviteBox {
  19367. font-size: 14px;
  19368. margin-top: 5px;
  19369. color: #a6cbff;
  19370. text-align: center;
  19371. }
  19372. .courseTitle >>> .el-tooltip {
  19373. width: 100%;
  19374. white-space: nowrap;
  19375. overflow: hidden;
  19376. text-overflow: ellipsis;
  19377. word-break: break-word;
  19378. }
  19379. .ml {
  19380. margin-left: 20px;
  19381. color: #5b7dba;
  19382. border-left: 3px solid #5b7dba;
  19383. padding-left: 5px;
  19384. font-weight: bold;
  19385. }
  19386. .return {
  19387. width: 2rem;
  19388. height: 2rem;
  19389. cursor: pointer;
  19390. }
  19391. .return > img {
  19392. width: 100%;
  19393. height: 100%;
  19394. }
  19395. .returnBtn {
  19396. width: 86px;
  19397. height: 36px;
  19398. background: #3681fc;
  19399. border-radius: 4px;
  19400. color: #fff;
  19401. text-align: center;
  19402. line-height: 36px;
  19403. margin-right: 20px;
  19404. cursor: pointer;
  19405. font-size: 14px;
  19406. font-weight: 400;
  19407. display: flex;
  19408. flex-direction: row;
  19409. flex-wrap: nowrap;
  19410. align-items: center;
  19411. justify-content: center;
  19412. }
  19413. .reBtnIcon,
  19414. .commentIcon,
  19415. .vedioIcon,
  19416. .vedioIcon1 {
  19417. /* width: 36px; */
  19418. height: 36px;
  19419. border-radius: 4px;
  19420. position: relative;
  19421. /* background: #e0eafb; */
  19422. background: #0061ff;
  19423. cursor: pointer;
  19424. margin-right: 12px;
  19425. display: flex;
  19426. align-items: center;
  19427. padding: 0 10px;
  19428. box-sizing: border-box;
  19429. font-size: 14px;
  19430. color: #fff;
  19431. }
  19432. .reBtnIcon::before,
  19433. .commentIcon::before,
  19434. .vedioIcon::before,
  19435. .vedioIcon1::before {
  19436. content: "";
  19437. display: block;
  19438. background-size: 100% 100%;
  19439. background-repeat: no-repeat;
  19440. width: 20px;
  19441. height: 20px;
  19442. margin-right: 5px;
  19443. /* position: absolute; */
  19444. /* top: 8px;
  19445. left: 8px; */
  19446. }
  19447. .vedioIcon1 {
  19448. background: #f63564;
  19449. }
  19450. .reBtnIcon::before {
  19451. background-image: url("../../assets/icon/newIcons/refresh.png");
  19452. }
  19453. .commentIcon::before {
  19454. background-image: url("../../assets/icon/newIcons/comment.png");
  19455. }
  19456. .vedioIcon::before {
  19457. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19458. }
  19459. .vedioIcon1::before {
  19460. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19461. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19462. }
  19463. .tool {
  19464. display: flex;
  19465. flex-direction: column;
  19466. flex-wrap: nowrap;
  19467. width: 13%;
  19468. margin: 0 30px;
  19469. align-items: center;
  19470. position: relative;
  19471. padding: 10px 25px;
  19472. cursor: pointer;
  19473. }
  19474. .whiteBIcon {
  19475. width: 150px;
  19476. }
  19477. .whiteBIcon > img {
  19478. width: 100%;
  19479. height: 100%;
  19480. }
  19481. .mask {
  19482. background-color: rgba(0, 0, 0, 0);
  19483. position: fixed;
  19484. top: 0;
  19485. left: 0;
  19486. width: 100%;
  19487. height: 100%;
  19488. z-index: 20000;
  19489. display: flex;
  19490. align-items: center;
  19491. justify-content: center;
  19492. }
  19493. .progressBox {
  19494. width: 500px;
  19495. height: 180px;
  19496. background: #fff;
  19497. border-radius: 10px;
  19498. box-shadow: 0 0 6px 1px #bfbfbf;
  19499. display: flex;
  19500. align-items: center;
  19501. justify-content: center;
  19502. flex-direction: column;
  19503. position: relative;
  19504. color: #6c6c6c;
  19505. }
  19506. .progressBox >>> .el-progress-bar__outer {
  19507. background-color: #d1dfff !important;
  19508. }
  19509. .progressBox .lbox {
  19510. height: 50px;
  19511. font-size: 19px;
  19512. display: flex;
  19513. align-items: center;
  19514. color: #747474;
  19515. }
  19516. .progressBox .lbox img {
  19517. width: 40px;
  19518. margin-right: 20px;
  19519. }
  19520. .closeCss {
  19521. position: absolute;
  19522. top: 8px;
  19523. right: 8px;
  19524. cursor: pointer;
  19525. width: 20px;
  19526. height: 20px;
  19527. }
  19528. .closeCss > img {
  19529. width: 100%;
  19530. height: 100%;
  19531. }
  19532. .uploadVedio {
  19533. display: flex;
  19534. flex-direction: column;
  19535. flex-wrap: nowrap;
  19536. justify-content: center;
  19537. align-items: center;
  19538. margin: 0 15px 10px 0;
  19539. }
  19540. .uploadVedio > img {
  19541. width: 30px;
  19542. height: 30px;
  19543. }
  19544. .uploadVedio > span {
  19545. white-space: nowrap;
  19546. overflow: hidden;
  19547. text-overflow: ellipsis;
  19548. width: 75px;
  19549. margin-top: 7px;
  19550. }
  19551. .picName {
  19552. white-space: nowrap;
  19553. overflow: hidden;
  19554. text-overflow: ellipsis;
  19555. width: 75px;
  19556. margin-top: 7px;
  19557. }
  19558. .new_top {
  19559. display: flex;
  19560. background: #fff;
  19561. flex-direction: row;
  19562. justify-content: flex-start;
  19563. align-items: center;
  19564. height: 60px;
  19565. position: fixed;
  19566. top: 20px;
  19567. left: 22%;
  19568. width: 77%;
  19569. z-index: 999;
  19570. border-radius: 12px 12px 0 0;
  19571. border-bottom: 1px solid #cad1dc;
  19572. padding: 10px 0;
  19573. }
  19574. .new_topFixed {
  19575. width: 100%;
  19576. height: 40px;
  19577. position: fixed;
  19578. top: 0px;
  19579. display: block;
  19580. background: #f2f2f2;
  19581. z-index: 998;
  19582. }
  19583. .before {
  19584. position: absolute;
  19585. background: #c3dad4;
  19586. width: 6px;
  19587. height: 100%;
  19588. }
  19589. .courseIndex {
  19590. display: flex;
  19591. flex-direction: row;
  19592. align-items: center;
  19593. width: calc(100% - 745px);
  19594. }
  19595. .courseIndex > div:nth-child(1) {
  19596. margin: 0 0 0 10px;
  19597. font-size: 20px;
  19598. min-width: 100px;
  19599. font-weight: bold;
  19600. border-left: 4px solid #3363b9;
  19601. height: 32px;
  19602. text-align: center;
  19603. line-height: 35px;
  19604. }
  19605. .courseIndex > div:nth-child(2) {
  19606. font-size: 20px;
  19607. /* width: 300px; */
  19608. max-width: calc(100% - 105px);
  19609. white-space: nowrap;
  19610. overflow: hidden;
  19611. text-overflow: ellipsis;
  19612. }
  19613. .courseIndex > div:nth-child(3) {
  19614. border-bottom: 1px solid #d7d7d7;
  19615. padding-bottom: 5px;
  19616. background: #3681fc;
  19617. width: 55px;
  19618. min-width: 55px;
  19619. border-radius: 5px;
  19620. color: #fff;
  19621. text-align: center;
  19622. height: 20px;
  19623. line-height: 26px;
  19624. font-size: 14px;
  19625. margin: 0 0 0 10px;
  19626. }
  19627. .course_text {
  19628. padding: 20px 0 0 15px;
  19629. text-indent: 30px;
  19630. width: 80%;
  19631. min-height: 20px;
  19632. }
  19633. .vedioList {
  19634. background: #f2f2f2;
  19635. border: 1px solid #ececec;
  19636. /* width: 38.8%; */
  19637. width: 300px;
  19638. height: 445px;
  19639. border-radius: 10px;
  19640. overflow: hidden;
  19641. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19642. }
  19643. .vedioNav {
  19644. margin: 10px 0 0 15px;
  19645. border-bottom: 1px solid #d7d7d7;
  19646. padding-bottom: 5px;
  19647. background: #3681fc;
  19648. width: 55px;
  19649. min-width: 55px;
  19650. border-radius: 5px;
  19651. color: #fff;
  19652. text-align: center;
  19653. height: 20px;
  19654. line-height: 26px;
  19655. font-size: 14px;
  19656. }
  19657. .queTop {
  19658. display: flex;
  19659. padding: 20px 0 20px 30px;
  19660. width: 100%;
  19661. flex-direction: row;
  19662. justify-content: flex-start;
  19663. align-items: center;
  19664. box-sizing: border-box;
  19665. }
  19666. .queTopTitle {
  19667. display: flex;
  19668. flex-direction: row;
  19669. flex-wrap: nowrap;
  19670. align-items: center;
  19671. font-weight: bold;
  19672. font-size: 20px;
  19673. color: rgb(14, 30, 51);
  19674. }
  19675. .queTopTitle::before {
  19676. content: "";
  19677. width: 2px;
  19678. height: 22px;
  19679. background: #3681fc;
  19680. border-radius: 3px;
  19681. display: block;
  19682. margin: 2px 6px 0 0;
  19683. }
  19684. .queTopRight {
  19685. display: flex;
  19686. flex-direction: row;
  19687. flex-wrap: nowrap;
  19688. align-items: center;
  19689. }
  19690. .queTopClose {
  19691. margin-right: 20px;
  19692. cursor: pointer;
  19693. position: relative;
  19694. display: flex;
  19695. }
  19696. .closeImg,
  19697. .openImg {
  19698. width: 25px;
  19699. height: 25px;
  19700. position: absolute;
  19701. left: -20px;
  19702. top: -1px;
  19703. }
  19704. .closeImg > img,
  19705. .openImg > img {
  19706. width: 100%;
  19707. height: 100%;
  19708. }
  19709. .question {
  19710. width: 40px;
  19711. margin-right: 10px;
  19712. margin-top: 7px;
  19713. }
  19714. .queTitle {
  19715. margin-left: 5px;
  19716. font-size: 25px;
  19717. display: flex;
  19718. align-items: center;
  19719. }
  19720. .addEditor {
  19721. width: 100px;
  19722. height: 30px;
  19723. background: #42cda6;
  19724. color: #fff;
  19725. border-radius: 5px;
  19726. text-align: center;
  19727. line-height: 30px;
  19728. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19729. cursor: pointer;
  19730. }
  19731. /* .vedioName {
  19732. cursor: pointer;
  19733. margin: 0px 0px 10px 5px;
  19734. white-space: nowrap;
  19735. overflow: hidden;
  19736. text-overflow: ellipsis;
  19737. width: 100%;
  19738. } */
  19739. .vedioTime {
  19740. width: 35px;
  19741. position: absolute;
  19742. color: #fff;
  19743. bottom: 0px;
  19744. right: 0px;
  19745. text-align: center;
  19746. background: #46411f;
  19747. height: 20px;
  19748. font-size: 14px;
  19749. line-height: 20px;
  19750. }
  19751. .homework {
  19752. width: 200px;
  19753. display: flex;
  19754. flex-direction: column;
  19755. flex-wrap: nowrap;
  19756. align-items: center;
  19757. cursor: pointer;
  19758. }
  19759. .homebox {
  19760. display: flex;
  19761. flex-wrap: wrap;
  19762. flex-direction: row;
  19763. justify-content: flex-start;
  19764. align-items: center;
  19765. padding: 15px 0;
  19766. }
  19767. .isChooseActive {
  19768. color: #3681fc !important;
  19769. font-weight: bold !important;
  19770. }
  19771. .chooseWho {
  19772. display: flex;
  19773. width: 100%;
  19774. flex-direction: row;
  19775. flex-wrap: nowrap;
  19776. justify-content: flex-start;
  19777. padding-bottom: 10px;
  19778. }
  19779. .chooseWho > div {
  19780. cursor: pointer;
  19781. padding-bottom: 10px;
  19782. margin: 0 30px 0 0;
  19783. font-weight: 400;
  19784. color: #0e1e33;
  19785. }
  19786. .addPoint > div > img {
  19787. cursor: pointer;
  19788. width: 85px;
  19789. border-radius: 15px;
  19790. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19791. }
  19792. .addPoint > div {
  19793. display: flex;
  19794. flex-direction: column;
  19795. flex-wrap: nowrap;
  19796. align-items: center;
  19797. }
  19798. .isBorder > div {
  19799. margin: 0 0 10px 0;
  19800. align-items: flex-start !important;
  19801. }
  19802. .noiframeBox {
  19803. display: flex;
  19804. flex-wrap: wrap;
  19805. }
  19806. .iframeBox iframe {
  19807. width: 100%;
  19808. height: 800px;
  19809. border: none;
  19810. margin-bottom: 20px;
  19811. border: 1px solid #ccc;
  19812. }
  19813. .upload_toolBtn {
  19814. background: #3681fc;
  19815. color: #fff;
  19816. width: 110px;
  19817. text-align: center;
  19818. height: 35px;
  19819. line-height: 35px;
  19820. font-size: 14px;
  19821. border-radius: 5px;
  19822. cursor: pointer;
  19823. position: absolute;
  19824. right: 10px;
  19825. bottom: 0;
  19826. }
  19827. .binfo_input,
  19828. .pj {
  19829. font: inherit;
  19830. color: currentColor;
  19831. width: 100%;
  19832. margin: 0;
  19833. padding: 15px 14px;
  19834. display: block;
  19835. min-width: 0;
  19836. outline: none;
  19837. box-sizing: content-box;
  19838. background: none;
  19839. -webkit-tap-highlight-color: transparent;
  19840. border: 1px solid rgba(0, 0, 0, 0.23);
  19841. border-radius: 4px;
  19842. box-sizing: border-box;
  19843. resize: none;
  19844. }
  19845. .binfo_input:focus-visible {
  19846. border: 1px solid rgba(61, 103, 188);
  19847. }
  19848. .dialog_diy >>> .el-dialog__header,
  19849. .dialog_diy1 >>> .el-dialog__header {
  19850. background: #454545 !important;
  19851. padding: 15px 20px;
  19852. }
  19853. .dialog_diy >>> .el-dialog__title,
  19854. .dialog_diy1 >>> .el-dialog__title {
  19855. color: #fff;
  19856. }
  19857. .dialog_diy >>> .el-dialog__headerbtn,
  19858. .dialog_diy1 >>> .el-dialog__headerbtn {
  19859. top: 19px;
  19860. }
  19861. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19862. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19863. color: #fff;
  19864. }
  19865. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19866. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19867. color: #fff;
  19868. }
  19869. .dialog_diy1 >>> .el-dialog__body {
  19870. padding: 0;
  19871. }
  19872. .dialog_diy >>> .el-dialog__body,
  19873. .dialog_diy >>> .el-dialog__footer,
  19874. .dialog_diy1 >>> .el-dialog__footer {
  19875. background: #fafafa;
  19876. }
  19877. .a_addBox {
  19878. padding: 0 0 0 15px;
  19879. }
  19880. .a_add_box {
  19881. padding: 10px;
  19882. background: #fff;
  19883. margin-bottom: 10px;
  19884. border-radius: 5px;
  19885. box-shadow: 0 0 5px 0 #d5d5d5;
  19886. }
  19887. .a_add_head {
  19888. display: flex;
  19889. align-items: flex-start;
  19890. /* justify-content: space-between; */
  19891. flex-direction: column;
  19892. /* flex-direction: row; */
  19893. margin: 10px 0 20px 0;
  19894. font-size: 18px;
  19895. width: 100%;
  19896. }
  19897. .askIndex {
  19898. background: #3681fc;
  19899. border-radius: 50%;
  19900. color: #fff;
  19901. width: 25px;
  19902. height: 25px;
  19903. min-width: 25px;
  19904. min-height: 25px;
  19905. text-align: center;
  19906. line-height: 25px;
  19907. margin-right: 5px;
  19908. }
  19909. .a_add_head .a_add_head_input {
  19910. width: 300px;
  19911. }
  19912. .a_add_head .a_add_head_div {
  19913. display: flex;
  19914. align-items: center;
  19915. justify-content: space-between;
  19916. }
  19917. .a_add_body {
  19918. display: flex;
  19919. align-items: center;
  19920. }
  19921. .a_add_input {
  19922. display: flex;
  19923. align-items: center;
  19924. flex-wrap: wrap;
  19925. width: 100%;
  19926. }
  19927. .a_add_input >>> .el-radio-group,
  19928. .a_add_input >>> .el-checkbox-group {
  19929. width: 100%;
  19930. }
  19931. .a_add_input >>> .el-radio,
  19932. .a_add_input >>> .el-checkbox {
  19933. display: flex;
  19934. flex-direction: row;
  19935. flex-wrap: nowrap;
  19936. align-items: center;
  19937. padding: 15px 0;
  19938. }
  19939. .a_add_input >>> .el-radio:not(:last-child),
  19940. .a_add_input >>> .el-checkbox:not(:last-child) {
  19941. width: 100%;
  19942. border-bottom: 1px solid #efefef;
  19943. }
  19944. .redioStyle >>> .el-radio__label {
  19945. font-size: 18px;
  19946. }
  19947. .redioStyle >>> .el-radio__label > span,
  19948. .redioStyle >>> .el-checkbox__label > span {
  19949. word-break: break-all;
  19950. white-space: normal;
  19951. }
  19952. .redioStyle >>> .el-checkbox__label {
  19953. font-size: 18px;
  19954. }
  19955. .toolHeng2 {
  19956. width: 100%;
  19957. padding-left: 37px;
  19958. box-sizing: border-box;
  19959. }
  19960. .workNav {
  19961. font-size: 20px;
  19962. font-weight: bold;
  19963. color: #0e1e33;
  19964. display: flex;
  19965. flex-direction: row;
  19966. flex-wrap: nowrap;
  19967. align-items: center;
  19968. padding: 15px 0 15px 0;
  19969. }
  19970. .workNav::before {
  19971. content: "";
  19972. width: 2px;
  19973. height: 22px;
  19974. background: #3681fc;
  19975. border-radius: 3px;
  19976. display: block;
  19977. margin: 2px 6px 0 0;
  19978. }
  19979. .toolHeng {
  19980. display: flex;
  19981. flex-direction: row;
  19982. flex-wrap: wrap;
  19983. justify-content: flex-start;
  19984. align-items: center;
  19985. width: 100%;
  19986. }
  19987. .toolHeng > div {
  19988. padding-left: 20px;
  19989. }
  19990. .isWidth {
  19991. width: 20%;
  19992. }
  19993. .textTitle {
  19994. display: flex;
  19995. flex-direction: row;
  19996. flex-wrap: nowrap;
  19997. align-items: center;
  19998. width: 95%;
  19999. }
  20000. .textTitle >>> .el-form-item__label {
  20001. font-size: 22px;
  20002. color: #918f8f;
  20003. width: 100px;
  20004. }
  20005. .textTitle >>> .el-form-item__content {
  20006. width: calc(100% - 100px);
  20007. }
  20008. .textCss >>> .el-dialog {
  20009. width: 800px !important;
  20010. height: 400px;
  20011. background: #fafafa;
  20012. }
  20013. .textCss >>> .el-dialog__body {
  20014. margin: 55px 8% 0 8%;
  20015. padding: 0 !important;
  20016. }
  20017. .textCss >>> .el-dialog__footer {
  20018. padding-top: 38px;
  20019. }
  20020. .toolsCss >>> .el-dialog__body {
  20021. padding: 20px;
  20022. }
  20023. .lineCss >>> .el-dialog__body {
  20024. display: flex;
  20025. flex-direction: row;
  20026. align-items: center;
  20027. justify-content: center;
  20028. }
  20029. .newNav {
  20030. display: flex;
  20031. flex-direction: row;
  20032. align-items: baseline;
  20033. justify-content: flex-start;
  20034. }
  20035. .navListItem {
  20036. width: 280px;
  20037. height: 50px;
  20038. margin: 0px auto 10px;
  20039. display: flex;
  20040. flex-direction: row;
  20041. flex-wrap: nowrap;
  20042. align-items: center;
  20043. justify-content: space-between;
  20044. background: #f0f4fa;
  20045. border-radius: 6px 6px 6px 6px;
  20046. }
  20047. .navText {
  20048. cursor: pointer;
  20049. white-space: nowrap;
  20050. overflow: hidden;
  20051. text-overflow: ellipsis;
  20052. width: 220px;
  20053. padding: 0 10px;
  20054. font-weight: 400;
  20055. color: #0e1e33;
  20056. }
  20057. .downIcon {
  20058. width: 20px;
  20059. min-width: 20px;
  20060. height: 20px;
  20061. margin-right: 15px;
  20062. cursor: pointer;
  20063. }
  20064. .downIcon > img {
  20065. width: 100%;
  20066. height: 100%;
  20067. }
  20068. .noVedio {
  20069. display: flex;
  20070. flex-direction: row;
  20071. justify-content: center;
  20072. align-content: center;
  20073. }
  20074. .noNavText {
  20075. cursor: pointer;
  20076. margin: 0px 0px 10px 5px;
  20077. width: 112px;
  20078. }
  20079. .listNoVedio {
  20080. margin: 0 0 0 30px;
  20081. width: 97%;
  20082. }
  20083. .video-player >>> .video-js {
  20084. height: 100%;
  20085. }
  20086. .hangVedioList {
  20087. width: 90% !important;
  20088. height: 150px !important;
  20089. margin: 20px 0 0 30px;
  20090. }
  20091. .hangVedio {
  20092. width: 100%;
  20093. height: 170px !important;
  20094. align-items: flex-start !important;
  20095. }
  20096. .hangHand {
  20097. height: 150px !important;
  20098. }
  20099. .twoChild {
  20100. width: 95%;
  20101. margin: 10px;
  20102. border-radius: 5px;
  20103. background: #f2f2f2;
  20104. display: flex;
  20105. flex-direction: column;
  20106. flex-wrap: nowrap;
  20107. justify-content: flex-start;
  20108. align-items: flex-start;
  20109. transition: all 0.5s;
  20110. overflow: hidden;
  20111. height: 0;
  20112. background: #e7f3ff;
  20113. }
  20114. .twoChild > div:nth-child(1) {
  20115. margin-top: 5px;
  20116. }
  20117. .navChild {
  20118. width: 100%;
  20119. cursor: pointer;
  20120. margin-bottom: 10px;
  20121. position: relative;
  20122. }
  20123. .navChild img {
  20124. position: absolute;
  20125. right: 11px;
  20126. width: 15px;
  20127. top: 50%;
  20128. transform: translateY(-50%);
  20129. }
  20130. .navActive,
  20131. .toolActive {
  20132. height: auto !important;
  20133. overflow: auto !important;
  20134. /* padding-bottom: 16px; */
  20135. }
  20136. .toolActive {
  20137. padding: 0;
  20138. }
  20139. .navTask {
  20140. display: flex;
  20141. flex-direction: row;
  20142. flex-wrap: nowrap;
  20143. align-items: center;
  20144. align-content: flex-start;
  20145. height: 40px;
  20146. justify-content: flex-start;
  20147. padding: 0 10px;
  20148. width: 100%;
  20149. box-sizing: border-box;
  20150. }
  20151. .navTaskname {
  20152. white-space: nowrap;
  20153. text-overflow: ellipsis;
  20154. overflow: hidden;
  20155. word-break: break-all;
  20156. padding-left: 5px;
  20157. }
  20158. .openTaskActive {
  20159. background-color: #e0eafb !important;
  20160. color: #0061ff;
  20161. }
  20162. .iframeName {
  20163. margin: 5px 0;
  20164. border-left: 4px solid #41c4a4;
  20165. padding-left: 4px;
  20166. }
  20167. .toolTitle {
  20168. margin: 0px 0px 20px;
  20169. font-size: 20px;
  20170. font-weight: 500;
  20171. border-left: 4px solid #41c4a4;
  20172. padding-left: 4px;
  20173. }
  20174. .cru_selectBox {
  20175. overflow: auto;
  20176. width: 95%;
  20177. margin: 17px auto 0;
  20178. height: calc(100% - 40px - 21px - 20px - 17px);
  20179. background: #fff;
  20180. border-radius: 8px;
  20181. }
  20182. .cru_selectBox::-webkit-scrollbar,
  20183. .study_top::-webkit-scrollbar,
  20184. .textContent::-webkit-scrollbar {
  20185. /*滚动条整体样式*/
  20186. width: 6px;
  20187. /*高宽分别对应横竖滚动条的尺寸*/
  20188. height: 6px;
  20189. }
  20190. /*定义滚动条轨道 内阴影+圆角*/
  20191. .cru_selectBox::-webkit-scrollbar-track,
  20192. .study_top::-webkit-scrollbar-track,
  20193. .textContent::-webkit-scrollbar {
  20194. border-radius: 10px;
  20195. background-color: #b8bdc9;
  20196. }
  20197. /*定义滑块 内阴影+圆角*/
  20198. .cru_selectBox::-webkit-scrollbar-thumb,
  20199. .study_top::-webkit-scrollbar-thumb,
  20200. .textContent::-webkit-scrollbar-thumb {
  20201. border-radius: 10px;
  20202. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20203. background-color: #2c5ab3;
  20204. }
  20205. .vedioBox {
  20206. border-radius: 0 0 20px 20px;
  20207. background: #fff;
  20208. overflow: auto;
  20209. }
  20210. .taskBox {
  20211. width: 98%;
  20212. background: #f0f4fa;
  20213. margin: 10px auto;
  20214. padding: 0 10px;
  20215. border-radius: 4px;
  20216. box-sizing: border-box;
  20217. }
  20218. .vedioTaskBox {
  20219. width: 100%;
  20220. display: flex;
  20221. flex-direction: row;
  20222. flex-wrap: nowrap;
  20223. align-items: flex-start;
  20224. position: relative;
  20225. }
  20226. .toolBox {
  20227. margin: 15px 0 0 25px;
  20228. display: flex;
  20229. position: relative;
  20230. padding: 18px 20px;
  20231. border-top-left-radius: 5px;
  20232. border-top-right-radius: 5px;
  20233. width: 90%;
  20234. }
  20235. .btnAll {
  20236. position: absolute;
  20237. right: 0;
  20238. display: flex;
  20239. flex-direction: row;
  20240. flex-wrap: nowrap;
  20241. align-items: center;
  20242. }
  20243. .btnLeft,
  20244. .btnRight {
  20245. display: flex;
  20246. flex-direction: row;
  20247. flex-wrap: nowrap;
  20248. align-items: center;
  20249. padding: 5px 0;
  20250. }
  20251. .btnLeft {
  20252. border-right: 1px solid #cad1dc;
  20253. }
  20254. .btnLeft > .custom-tooltip {
  20255. background: #3681fc;
  20256. color: #fff;
  20257. }
  20258. .last:hover {
  20259. background: #3383fa !important;
  20260. color: #fff;
  20261. border: 1px solid #3383fa !important;
  20262. }
  20263. .last,
  20264. .returnBtn1 {
  20265. width: 90px;
  20266. height: 36px;
  20267. background: #ffffff;
  20268. border-radius: 4px;
  20269. border: 1px solid #0061ff;
  20270. color: #0061ff;
  20271. cursor: pointer;
  20272. display: flex;
  20273. flex-direction: row;
  20274. flex-wrap: nowrap;
  20275. align-items: center;
  20276. justify-content: center;
  20277. margin-left: 12px;
  20278. }
  20279. .returnBtn1 {
  20280. background: #f0f4fa;
  20281. border-radius: 4px;
  20282. border: 1px solid #cad1dc;
  20283. margin: 0 12px;
  20284. }
  20285. .lastImg {
  20286. min-width: 15px;
  20287. width: 15px;
  20288. height: 15px;
  20289. }
  20290. .lastText {
  20291. padding: 0 5px 2px 5px;
  20292. box-sizing: border-box;
  20293. font-size: 14px;
  20294. }
  20295. .lastImg > img {
  20296. width: 100%;
  20297. height: 100%;
  20298. }
  20299. /* .vedioTimeBox {
  20300. display: flex;
  20301. flex-direction: row;
  20302. align-items: center;
  20303. flex-wrap: nowrap;
  20304. position: relative;
  20305. } */
  20306. .navBox {
  20307. background: #fff;
  20308. height: calc(100% - 40px);
  20309. overflow-y: auto;
  20310. overflow-x: hidden;
  20311. }
  20312. .worksBox {
  20313. margin: 0 0 10px 25px;
  20314. border-bottom: 1px solid #eeeeee;
  20315. padding: 18px 20px;
  20316. border-radius: 4px;
  20317. width: 90%;
  20318. }
  20319. .worksBTitle {
  20320. font-size: 20px;
  20321. padding-bottom: 15px;
  20322. border-bottom: 1px solid #eeeeee;
  20323. display: flex;
  20324. align-items: center;
  20325. }
  20326. .greenBox {
  20327. width: 5px;
  20328. height: 30px;
  20329. background: #63b6fa;
  20330. margin-right: 5px;
  20331. }
  20332. .worksDetailBox {
  20333. display: flex;
  20334. width: 100%;
  20335. flex-direction: row;
  20336. flex-wrap: wrap;
  20337. align-items: flex-end;
  20338. justify-content: flex-start;
  20339. padding: 15px 0;
  20340. }
  20341. .works {
  20342. display: flex;
  20343. flex-direction: column;
  20344. flex-wrap: nowrap;
  20345. align-items: flex-start;
  20346. justify-content: flex-start;
  20347. align-content: center;
  20348. max-width: 240px;
  20349. width: calc(100% / 3 - 10px);
  20350. height: auto;
  20351. margin-right: 10px;
  20352. margin-bottom: 10px;
  20353. overflow: hidden;
  20354. height: 140px;
  20355. box-shadow: 0 0 6px 1px #dfdada;
  20356. border-radius: 15px;
  20357. }
  20358. .workImg {
  20359. width: 100%;
  20360. /* height: calc(100% - 40px); */
  20361. height: 105px;
  20362. position: relative;
  20363. }
  20364. .workImg > img {
  20365. width: 100%;
  20366. height: 100%;
  20367. object-fit: contain;
  20368. cursor: pointer;
  20369. }
  20370. .worksName {
  20371. height: 40px;
  20372. line-height: 40px;
  20373. display: flex;
  20374. width: 100%;
  20375. flex-direction: row;
  20376. flex-wrap: nowrap;
  20377. justify-content: space-between;
  20378. align-items: center;
  20379. margin: 0 0 0 10px;
  20380. }
  20381. .worksName > div:nth-child(1) {
  20382. width: 110px;
  20383. white-space: nowrap;
  20384. overflow: hidden;
  20385. text-overflow: ellipsis;
  20386. }
  20387. .worksName > div:nth-child(2) {
  20388. color: #b7b4b5;
  20389. }
  20390. .noWorksS {
  20391. padding: 15px 0;
  20392. display: flex;
  20393. flex-direction: row;
  20394. flex-wrap: wrap;
  20395. align-items: center;
  20396. justify-content: flex-start;
  20397. }
  20398. .noWorksName,
  20399. .isWorksName,
  20400. .isWorksName2 {
  20401. background: #ddebf8;
  20402. color: #000;
  20403. width: 90px;
  20404. height: 25px;
  20405. text-align: center;
  20406. line-height: 25px;
  20407. border-radius: 4px;
  20408. margin: 10px 15px 10px 0;
  20409. white-space: nowrap;
  20410. overflow: hidden;
  20411. padding: 5px;
  20412. text-overflow: ellipsis;
  20413. cursor: pointer;
  20414. border: 1px solid #ddebf8;
  20415. }
  20416. .noWorksName {
  20417. background: #fff;
  20418. color: #0061ff;
  20419. border: 1px solid #0061ff;
  20420. }
  20421. .isWorksName2 {
  20422. width: 100px;
  20423. height: 40px;
  20424. line-height: 40px;
  20425. position: relative;
  20426. background: #dae6f9;
  20427. }
  20428. .isWorksName {
  20429. background: #e7ebf1 !important;
  20430. width: 100px;
  20431. height: 40px;
  20432. line-height: 40px;
  20433. position: relative;
  20434. color: #acb4bf;
  20435. border: 1px solid #cad1dc !important;
  20436. }
  20437. .isSelectName,
  20438. .noWorksName:hover {
  20439. background: #3383fa !important;
  20440. color: #fff !important;
  20441. border: 1px solid #3383fa !important;
  20442. }
  20443. .title {
  20444. background: #1e5cc9;
  20445. /* width: 98%; */
  20446. height: 45px;
  20447. color: #fff;
  20448. line-height: 45px;
  20449. padding-left: 20px;
  20450. box-sizing: border-box;
  20451. }
  20452. .textBox {
  20453. font-size: 20px;
  20454. width: 90%;
  20455. display: flex;
  20456. flex-direction: column;
  20457. align-items: center;
  20458. margin: 20px auto 0;
  20459. max-height: calc(100% - 75px);
  20460. overflow: auto;
  20461. }
  20462. .textContent {
  20463. font-size: 18px;
  20464. width: 95%;
  20465. max-width: 95%;
  20466. }
  20467. .answerBg {
  20468. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20469. background-size: 100% 100%;
  20470. width: 100%;
  20471. height: 100%;
  20472. color: #fff;
  20473. text-align: center;
  20474. display: flex;
  20475. flex-direction: column;
  20476. flex-wrap: nowrap;
  20477. align-items: center;
  20478. position: relative;
  20479. justify-content: center;
  20480. }
  20481. .answerBg > div:nth-child(1) {
  20482. /* font-size: 22px;
  20483. padding: 25px 0 10px; */
  20484. }
  20485. .answerContent {
  20486. width: 215px;
  20487. max-height: 60px;
  20488. word-break: break-all;
  20489. text-align: center;
  20490. /* white-space: nowrap; */
  20491. overflow: hidden;
  20492. text-overflow: ellipsis;
  20493. /* padding: 23px 0 0; */
  20494. -webkit-line-clamp: 3;
  20495. -webkit-box-orient: vertical;
  20496. display: -webkit-box;
  20497. font-size: 15px;
  20498. cursor: pointer;
  20499. }
  20500. .elist_input_box {
  20501. display: flex;
  20502. align-items: flex-start;
  20503. flex-wrap: nowrap;
  20504. padding: 10px 0 15px 30px;
  20505. flex-direction: column;
  20506. }
  20507. .elist_input {
  20508. /* width: 40%; */
  20509. width: 45%;
  20510. margin: 20px;
  20511. }
  20512. .elist_input .elist_input_box input {
  20513. font: inherit;
  20514. color: currentColor;
  20515. width: 200px;
  20516. padding: 8px 14px;
  20517. display: block;
  20518. min-width: 0;
  20519. outline: none;
  20520. border: 1px solid rgba(0, 0, 0, 0.23);
  20521. border-radius: 4px;
  20522. box-sizing: border-box;
  20523. background: #fff;
  20524. margin: 0 20px 0 0;
  20525. }
  20526. .elist_input .elist_input_box span {
  20527. height: 36px;
  20528. line-height: 36px;
  20529. color: rgb(82, 82, 82);
  20530. }
  20531. .elist_input .elist_input_box .remove {
  20532. height: 20px;
  20533. width: 20px;
  20534. background-size: 100% 100%;
  20535. background-position: unset;
  20536. margin-left: 5px;
  20537. }
  20538. .elist_input_box >>> .el-rate {
  20539. display: flex;
  20540. height: 36px;
  20541. align-items: center;
  20542. }
  20543. .elist_input_box .elist_inptu_text {
  20544. min-height: 50px;
  20545. /* width: 500px;
  20546. max-height: 150px; */
  20547. width: 100%;
  20548. line-height: 50px;
  20549. color: rgb(82, 82, 82);
  20550. overflow: auto;
  20551. text-indent: 5px;
  20552. background: #f7f6f9;
  20553. border-radius: 10px;
  20554. }
  20555. .elist_input_box .elist_inptu_text input {
  20556. width: 500px;
  20557. }
  20558. .elist_input_box >>> .el-rate__icon {
  20559. font-size: 24px;
  20560. }
  20561. .isClick {
  20562. background: #4d9def;
  20563. }
  20564. .bzBox {
  20565. display: flex;
  20566. flex-direction: row;
  20567. align-items: center;
  20568. }
  20569. .bzBox .yCss {
  20570. width: 7px;
  20571. height: 7px;
  20572. background: #fff;
  20573. margin: 0 16px 0 6px;
  20574. border-radius: 50%;
  20575. border: 5px solid #3681fc;
  20576. z-index: 99;
  20577. }
  20578. .bzBox > div:nth-child(2) {
  20579. font-size: 18px;
  20580. font-weight: bold;
  20581. color: #0e1e33;
  20582. }
  20583. .navTitile {
  20584. padding: 0 0px 0 15px;
  20585. font-size: 16px;
  20586. font-weight: bold;
  20587. color: #0e1e33;
  20588. height: 40px;
  20589. line-height: 40px;
  20590. }
  20591. .isTypeOne {
  20592. width: 240px;
  20593. height: 170px;
  20594. /* border: 1px solid #f8f8f8; */
  20595. border-radius: 10px;
  20596. box-shadow: 0 0 6px 1px #dfdada;
  20597. }
  20598. .e_add_top {
  20599. display: flex;
  20600. justify-content: space-between;
  20601. padding: 20px 20px 0 20px;
  20602. border-radius: 3px;
  20603. background: #fff;
  20604. }
  20605. .e_add_title2 {
  20606. display: flex;
  20607. align-items: center;
  20608. }
  20609. .e_add_title2 span {
  20610. width: 40px;
  20611. }
  20612. .e_add_title {
  20613. display: flex;
  20614. align-items: center;
  20615. color: #b8b8b8;
  20616. font-size: 18px;
  20617. position: relative;
  20618. height: 40px;
  20619. }
  20620. .e_add_title span {
  20621. margin-right: 10px;
  20622. }
  20623. .e_add_title .el_input {
  20624. width: 300px;
  20625. }
  20626. .e_add_title >>> .el-input__inner {
  20627. width: 400px;
  20628. }
  20629. .e_add_btn {
  20630. }
  20631. .e_add_content {
  20632. display: flex;
  20633. width: 100%;
  20634. max-width: 650px;
  20635. height: 550px;
  20636. }
  20637. .e_add_list {
  20638. background: #fff;
  20639. height: 500px;
  20640. width: 210px;
  20641. position: relative;
  20642. margin: 15px 5px 0 0;
  20643. flex-shrink: 0;
  20644. display: flex;
  20645. flex-direction: column;
  20646. }
  20647. .e_add_list_title {
  20648. font-size: 20px;
  20649. width: 100%;
  20650. box-sizing: border-box;
  20651. padding: 15px 40px;
  20652. text-align: center;
  20653. border-bottom: 1px solid #eaeaea;
  20654. position: relative;
  20655. display: flex;
  20656. align-items: center;
  20657. justify-content: center;
  20658. height: 57px;
  20659. background: #f6f6f6;
  20660. }
  20661. .e_add_list_title span {
  20662. overflow: hidden;
  20663. white-space: nowrap;
  20664. text-overflow: ellipsis;
  20665. }
  20666. .e_add_list_title img {
  20667. position: absolute;
  20668. right: 15px;
  20669. width: 25px;
  20670. cursor: pointer;
  20671. top: 50%;
  20672. transform: translateY(-50%);
  20673. }
  20674. .e_add_list_body {
  20675. height: calc(100% - 187px);
  20676. overflow: auto;
  20677. }
  20678. .e_add_list_child {
  20679. width: 100%;
  20680. display: flex;
  20681. align-items: center;
  20682. justify-content: center;
  20683. position: relative;
  20684. box-sizing: border-box;
  20685. padding: 15px 40px;
  20686. text-align: center;
  20687. }
  20688. .e_add_list_child span {
  20689. overflow: hidden;
  20690. white-space: nowrap;
  20691. text-overflow: ellipsis;
  20692. cursor: pointer;
  20693. }
  20694. .e_add_list_child img {
  20695. position: absolute;
  20696. right: 10px;
  20697. width: 21px;
  20698. cursor: pointer;
  20699. top: 50%;
  20700. transform: translateY(-50%);
  20701. }
  20702. .e_add_list_child + .e_add_list_child {
  20703. border-top: 1px solid #eaeaea;
  20704. }
  20705. .e_add_list_child .active {
  20706. color: #409eff;
  20707. }
  20708. .e_add_list_btn {
  20709. position: absolute;
  20710. bottom: 0;
  20711. height: 50px;
  20712. background: rgb(120, 120, 254);
  20713. width: 100%;
  20714. color: #fff;
  20715. font-size: 16px;
  20716. text-align: center;
  20717. line-height: 50px;
  20718. cursor: pointer;
  20719. }
  20720. .e_add_list_detail {
  20721. position: absolute;
  20722. bottom: 0;
  20723. height: 130px;
  20724. background: rgb(120, 120, 254);
  20725. width: 100%;
  20726. color: #fff;
  20727. font-size: 16px;
  20728. display: flex;
  20729. align-items: center;
  20730. justify-content: center;
  20731. }
  20732. .e_add_list_detail textarea {
  20733. height: 90%;
  20734. width: 95%;
  20735. border: none;
  20736. resize: none;
  20737. outline: none;
  20738. padding: 5px;
  20739. box-sizing: border-box;
  20740. }
  20741. .e_add_list_pbox {
  20742. width: 100%;
  20743. max-width: 650px;
  20744. /* height: 600px; */
  20745. }
  20746. .e_add_list_pbox_title {
  20747. height: 50px;
  20748. background: #fff;
  20749. display: flex;
  20750. align-items: center;
  20751. width: 100%;
  20752. box-sizing: border-box;
  20753. padding: 0 20px;
  20754. }
  20755. .type_title {
  20756. font-size: 18px;
  20757. font-weight: 700;
  20758. }
  20759. .type_content {
  20760. font-size: 16px;
  20761. margin-left: 30px;
  20762. }
  20763. .type_content span + span {
  20764. margin-left: 20px;
  20765. }
  20766. .type_content span {
  20767. cursor: pointer;
  20768. padding-bottom: 5px;
  20769. box-sizing: border-box;
  20770. }
  20771. .type_content .active {
  20772. color: #409eff;
  20773. border-bottom: 2px solid #409eff;
  20774. }
  20775. .e_add_list_pbox_content {
  20776. height: calc(100% - 50px);
  20777. display: flex;
  20778. align-items: center;
  20779. width: 100%;
  20780. background: #fff;
  20781. }
  20782. .evaCss {
  20783. display: flex;
  20784. flex-direction: row;
  20785. flex-wrap: nowrap;
  20786. align-items: flex-start;
  20787. padding: 0 0 20px;
  20788. }
  20789. .cru_line {
  20790. position: absolute;
  20791. bottom: 0px;
  20792. transition: all 0.5s;
  20793. left: 0px;
  20794. width: 125px;
  20795. margin-left: -25px;
  20796. }
  20797. .isNoMessage {
  20798. width: 20%;
  20799. margin: 25% auto 0;
  20800. }
  20801. .isNoMessage > img {
  20802. width: 100%;
  20803. height: 100%;
  20804. }
  20805. .fullStyle >>> .el-dialog__body {
  20806. height: 100% !important;
  20807. }
  20808. .fullStyle >>> .el-dialog,
  20809. .fullStyle {
  20810. width: 100% !important;
  20811. max-width: 100% !important;
  20812. height: 100% !important;
  20813. margin: 0 !important;
  20814. }
  20815. .full_diy >>> .el-dialog {
  20816. margin: 0 !important;
  20817. height: 100%;
  20818. padding: 4px;
  20819. }
  20820. .full_diy >>> .el-dialog__body {
  20821. height: calc(100% - 100px);
  20822. }
  20823. .full_diy2 >>> .el-dialog__body {
  20824. height: calc(100% - 50px);
  20825. padding: 0;
  20826. }
  20827. .switchCss {
  20828. /* width: 100%; */
  20829. display: flex;
  20830. flex-direction: row;
  20831. flex-wrap: nowrap;
  20832. align-items: center;
  20833. /* justify-content: center; */
  20834. }
  20835. .isClickNav {
  20836. /* color: #499eef; */
  20837. color: #000;
  20838. }
  20839. .commentImg {
  20840. width: 25px;
  20841. height: 25px;
  20842. cursor: pointer;
  20843. }
  20844. .commentImg > img {
  20845. width: 100%;
  20846. height: 100%;
  20847. }
  20848. .comment {
  20849. background: #f9f9f9;
  20850. border-radius: 0 0 4px 4px;
  20851. display: flex;
  20852. flex-direction: row;
  20853. flex-wrap: nowrap;
  20854. align-items: center;
  20855. justify-content: flex-end;
  20856. height: 35px;
  20857. }
  20858. .commentList {
  20859. display: flex;
  20860. flex-direction: row;
  20861. flex-wrap: nowrap;
  20862. align-items: center;
  20863. justify-content: center;
  20864. align-content: center;
  20865. /* margin-left: 15px; */
  20866. /* margin-left: 8px; */
  20867. }
  20868. .scoreImg {
  20869. width: 17px;
  20870. height: 17px;
  20871. }
  20872. .studentDetail {
  20873. display: flex;
  20874. flex-direction: row;
  20875. flex-wrap: nowrap;
  20876. /* align-items: center; */
  20877. align-items: flex-start;
  20878. }
  20879. .tx {
  20880. width: 50px;
  20881. }
  20882. .tx > img {
  20883. width: 100%;
  20884. height: 100%;
  20885. }
  20886. .nameAndTime {
  20887. display: flex;
  20888. flex-direction: column;
  20889. flex-wrap: nowrap;
  20890. align-items: flex-start;
  20891. margin-left: 10px;
  20892. }
  20893. .worksAnswer {
  20894. color: #4078dd;
  20895. margin: 10px 0;
  20896. font-size: 16px;
  20897. position: relative;
  20898. }
  20899. .worksAnswer > img {
  20900. width: 500px;
  20901. height: 300px;
  20902. object-fit: contain;
  20903. margin: 0 auto;
  20904. display: block;
  20905. }
  20906. .commentTop {
  20907. border-bottom: 1px solid #eaeaea;
  20908. padding-bottom: 10px;
  20909. }
  20910. .commentBox {
  20911. padding-top: 15px;
  20912. }
  20913. .pl {
  20914. font-size: 18px;
  20915. }
  20916. .plPerson {
  20917. width: 100%;
  20918. }
  20919. .plName {
  20920. display: flex;
  20921. flex-direction: row;
  20922. flex-wrap: nowrap;
  20923. align-items: baseline;
  20924. color: #78787a;
  20925. width: 100%;
  20926. }
  20927. .deleteComment {
  20928. cursor: pointer;
  20929. margin-left: auto;
  20930. color: #237ade;
  20931. }
  20932. .plContent {
  20933. margin-top: 5px;
  20934. }
  20935. .evalCss {
  20936. background: #fff;
  20937. font-size: 18px;
  20938. }
  20939. .nav {
  20940. color: #9d9d9d;
  20941. padding: 5px 0 15px 20px;
  20942. }
  20943. .middleBox {
  20944. padding: 5px 0 15px 20px;
  20945. }
  20946. .pfBox {
  20947. padding-bottom: 30px;
  20948. }
  20949. .nameAndrate {
  20950. display: flex;
  20951. flex-direction: row;
  20952. flex-wrap: nowrap;
  20953. align-items: center;
  20954. padding-bottom: 10px;
  20955. height: 30px;
  20956. line-height: 30px;
  20957. }
  20958. .nameAndrate > div {
  20959. margin-left: 10px;
  20960. color: #000;
  20961. height: 30px;
  20962. }
  20963. .nameAndrate >>> .el-rate__icon {
  20964. font-size: 28px !important;
  20965. }
  20966. .pfBox > div:nth-child(2) {
  20967. background: #f7f6f9;
  20968. width: 400px;
  20969. min-height: 45px;
  20970. border-radius: 10px;
  20971. font-size: 16px;
  20972. display: flex;
  20973. flex-wrap: wrap;
  20974. align-items: center;
  20975. padding: 10px 20px;
  20976. box-sizing: border-box;
  20977. color: #000;
  20978. }
  20979. .bz {
  20980. display: flex;
  20981. flex-direction: row;
  20982. flex-wrap: nowrap;
  20983. align-items: flex-start;
  20984. }
  20985. .bz > div {
  20986. padding: 0 10px;
  20987. }
  20988. .select_box2_title {
  20989. background: #fff;
  20990. border-radius: 5px;
  20991. padding: 15px 10px;
  20992. box-sizing: border-box;
  20993. margin-bottom: 10px;
  20994. display: flex;
  20995. flex-direction: row;
  20996. flex-wrap: nowrap;
  20997. align-items: center;
  20998. }
  20999. .select_box2_title > div:nth-child(2) {
  21000. margin-left: 10px;
  21001. color: #c4c4c4;
  21002. }
  21003. .select_box2_box {
  21004. display: flex;
  21005. height: 500px;
  21006. }
  21007. .select_box2_img {
  21008. width: calc(100% - 310px);
  21009. height: 100%;
  21010. overflow: auto;
  21011. background: #fff;
  21012. border-radius: 5px;
  21013. }
  21014. .select_box2_img img {
  21015. width: 100%;
  21016. }
  21017. .select_box2_answer {
  21018. background: #fff;
  21019. margin-left: 10px;
  21020. border-radius: 5px;
  21021. width: 300px;
  21022. overflow: auto;
  21023. height: 90%;
  21024. display: flex;
  21025. flex-direction: column;
  21026. align-items: flex-start;
  21027. padding-top: 10px;
  21028. box-sizing: border-box;
  21029. position: relative;
  21030. }
  21031. .select_answer_title {
  21032. padding: 0 0 15px 20px;
  21033. color: #c4c4c4;
  21034. }
  21035. .select_box2_answer_box {
  21036. margin: 0 0 10px 20px;
  21037. width: 85%;
  21038. display: flex;
  21039. flex-direction: row;
  21040. flex-wrap: nowrap;
  21041. align-items: center;
  21042. }
  21043. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21044. color: #000;
  21045. }
  21046. .upAnswerCss {
  21047. position: absolute;
  21048. bottom: 15px;
  21049. right: 15px;
  21050. }
  21051. .upAnswerCss >>> .el-button {
  21052. width: 95px;
  21053. height: 35px;
  21054. line-height: 35px;
  21055. padding: 0;
  21056. }
  21057. .rightWidthCss {
  21058. width: 60%;
  21059. display: flex;
  21060. flex-direction: row;
  21061. align-items: flex-start;
  21062. }
  21063. .rightAnswer {
  21064. display: flex;
  21065. flex-direction: row;
  21066. flex-wrap: nowrap;
  21067. align-items: center;
  21068. color: red;
  21069. margin-bottom: 31px;
  21070. }
  21071. .rightAnswerCss {
  21072. display: flex;
  21073. flex-direction: column;
  21074. flex-wrap: nowrap;
  21075. padding-top: 60px;
  21076. }
  21077. .blueCss {
  21078. color: #767de1;
  21079. margin-left: 10px;
  21080. }
  21081. .redCss {
  21082. color: red;
  21083. }
  21084. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21085. color: rgb(0 123 255) !important;
  21086. }
  21087. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21088. color: rgb(0 123 255) !important;
  21089. }
  21090. .zuoyeYulan {
  21091. padding-top: 0;
  21092. font-size: 18px;
  21093. display: flex;
  21094. align-items: flex-end;
  21095. }
  21096. .buttonA {
  21097. margin-left: 10px;
  21098. padding: 0;
  21099. }
  21100. .displayBox {
  21101. margin-bottom: 10px;
  21102. display: block;
  21103. border-bottom: 3px solid #eee;
  21104. display: flex;
  21105. align-items: center;
  21106. }
  21107. .easy_comment {
  21108. width: calc(100% - 90px);
  21109. margin-left: 10px;
  21110. display: flex;
  21111. flex-wrap: wrap;
  21112. }
  21113. .easy_comment > div {
  21114. border: 1px solid #4a4a4a;
  21115. color: #666;
  21116. border-radius: 15px;
  21117. padding: 5px 10px;
  21118. font-size: 16px;
  21119. margin-bottom: 10px;
  21120. margin-right: 5px;
  21121. cursor: pointer;
  21122. }
  21123. .easy_comment div:hover {
  21124. border: 1px solid #f7ba2a;
  21125. color: #c69217;
  21126. }
  21127. .xuan_right_box {
  21128. padding: 10px 0;
  21129. background: #f0f4fa;
  21130. margin: 0 15px 0 25px;
  21131. border-bottom-left-radius: 5px;
  21132. border-bottom-right-radius: 5px;
  21133. width: 91.5%;
  21134. }
  21135. .tool_right_box {
  21136. display: flex;
  21137. align-items: center;
  21138. }
  21139. .tool_right_box + .tool_right_box {
  21140. margin-top: 10px;
  21141. }
  21142. .right_box_xuan {
  21143. background: rgb(0 123 255);
  21144. color: #fff;
  21145. border-radius: 5px;
  21146. padding: 5px;
  21147. margin-left: 10px;
  21148. min-width: 95px;
  21149. }
  21150. .pButton:hover {
  21151. opacity: 1 !important;
  21152. }
  21153. .pButton {
  21154. position: fixed;
  21155. text-align: center;
  21156. cursor: pointer;
  21157. z-index: 999;
  21158. right: 20px;
  21159. top: 110px;
  21160. width: 50px;
  21161. height: 50px;
  21162. display: flex;
  21163. align-items: center;
  21164. justify-content: center;
  21165. border-radius: 5px;
  21166. }
  21167. .pzClass {
  21168. width: calc(100% - 340px);
  21169. }
  21170. .newDialogCss {
  21171. /* position: fixed;
  21172. right: 5%;
  21173. top: 50%;
  21174. width: 340px;
  21175. transform: translateY(-50%);
  21176. height: 60%;
  21177. box-shadow: 0px 0 8px 0px #555555;
  21178. border-radius: 15px;
  21179. z-index: 999; */
  21180. position: fixed;
  21181. right: 20px;
  21182. top: 101px;
  21183. width: 330px;
  21184. height: calc(100% - 80px);
  21185. z-index: 999;
  21186. background: #fff;
  21187. border-top-right-radius: 0px;
  21188. border-bottom-right-radius: 0px;
  21189. overflow: hidden;
  21190. }
  21191. .pzTop {
  21192. color: #fff;
  21193. background: #000;
  21194. display: flex;
  21195. flex-direction: row;
  21196. flex-wrap: nowrap;
  21197. align-items: center;
  21198. justify-content: space-between;
  21199. height: 40px;
  21200. border-radius: 15px 15px 0 0;
  21201. user-select: none;
  21202. }
  21203. .pzTop2 .checkbox {
  21204. display: flex;
  21205. align-items: center;
  21206. padding: 5px 30px;
  21207. flex: 0 0 auto;
  21208. font-weight: bold;
  21209. border-bottom: 1px solid #eee;
  21210. justify-content: space-between;
  21211. }
  21212. .pzTop2 .check {
  21213. text-align: center;
  21214. cursor: pointer;
  21215. box-sizing: border-box;
  21216. display: flex;
  21217. }
  21218. .pzTop2 img {
  21219. width: 25px;
  21220. cursor: pointer;
  21221. }
  21222. .pzTop > div:nth-child(1) {
  21223. padding-left: 10px;
  21224. }
  21225. .pzTop > div:nth-child(2) {
  21226. width: 15px;
  21227. height: 15px;
  21228. padding-right: 10px;
  21229. cursor: pointer;
  21230. }
  21231. .pzTop > div:nth-child(2) > img {
  21232. width: 100%;
  21233. height: 100%;
  21234. }
  21235. .pzBox,
  21236. .noPzBox {
  21237. height: calc(100% - 60px);
  21238. /* background: #ededed; */
  21239. background: #fff;
  21240. /* border-radius: 0 0 15px 15px; */
  21241. }
  21242. .noPzBox {
  21243. display: flex;
  21244. flex-direction: column;
  21245. flex-wrap: nowrap;
  21246. justify-content: center;
  21247. align-items: center;
  21248. }
  21249. .pzList {
  21250. background: #f7f7f7;
  21251. width: 90%;
  21252. margin: 0 auto 15px;
  21253. border-radius: 5px;
  21254. }
  21255. .pzNavTop {
  21256. display: flex;
  21257. flex-direction: row;
  21258. flex-wrap: nowrap;
  21259. padding: 10px 10px 0 10px;
  21260. align-items: center;
  21261. }
  21262. .pzDelete {
  21263. cursor: pointer;
  21264. margin-left: auto;
  21265. font-size: 14px;
  21266. color: #afafaf;
  21267. }
  21268. .pzNavTop > div:nth-child(1) {
  21269. background: #3760af;
  21270. width: 35px;
  21271. height: 35px;
  21272. color: #fff;
  21273. text-align: center;
  21274. line-height: 35px;
  21275. border-radius: 50%;
  21276. font-size: 14px;
  21277. }
  21278. .pzNavTop > div:nth-child(2) {
  21279. font-size: 18px;
  21280. color: #959595;
  21281. margin-left: 5px;
  21282. }
  21283. .pzContent {
  21284. padding: 10px;
  21285. word-break: break-word;
  21286. }
  21287. .pzContent audio {
  21288. width: 100%;
  21289. }
  21290. .pzContent audio::-webkit-media-controls-panel {
  21291. background: #fff;
  21292. }
  21293. .pzContent >>> img {
  21294. max-width: 100%;
  21295. }
  21296. .pzListBox {
  21297. padding-top: 15px;
  21298. height: calc(100% - 110px);
  21299. overflow: auto;
  21300. }
  21301. .addPzButton {
  21302. position: relative;
  21303. margin-top: 3px;
  21304. width: 100%;
  21305. }
  21306. .addPzButton .img1 {
  21307. position: absolute;
  21308. top: 50%;
  21309. right: 25px;
  21310. transform: translateY(-50%);
  21311. height: 100%;
  21312. display: flex;
  21313. align-items: center;
  21314. }
  21315. .addPzButton .img1 div {
  21316. display: flex;
  21317. }
  21318. .addPzButton .img1 div img {
  21319. width: 28px;
  21320. margin-left: 10px;
  21321. cursor: pointer;
  21322. }
  21323. .addPzButton .img1 div span {
  21324. font-size: 14px;
  21325. margin: 4px 0 0 3px;
  21326. color: #afafaf;
  21327. }
  21328. .addPz {
  21329. background: #4b79ce;
  21330. width: 100px;
  21331. color: #fff;
  21332. font-size: 12px;
  21333. height: 30px;
  21334. margin: 0 auto;
  21335. text-align: center;
  21336. line-height: 30px;
  21337. border-radius: 10px;
  21338. cursor: pointer;
  21339. }
  21340. .addDialogCss {
  21341. position: fixed;
  21342. width: 600px;
  21343. height: 70%;
  21344. min-height: 450px;
  21345. box-shadow: 0px 0 8px 0px #555555;
  21346. border-radius: 15px;
  21347. z-index: 999;
  21348. left: 50%;
  21349. top: 50%;
  21350. margin: -18% 0 0 -300px;
  21351. }
  21352. .teacherPz {
  21353. display: flex;
  21354. flex-direction: row;
  21355. align-items: center;
  21356. flex-wrap: nowrap;
  21357. }
  21358. .teacherPzImg {
  21359. width: 30px;
  21360. height: 30px;
  21361. }
  21362. .teacherPzImg > img {
  21363. width: 100%;
  21364. height: 100%;
  21365. }
  21366. .addPzBox {
  21367. height: calc(100% - 40px);
  21368. background: #ededed;
  21369. border-bottom-left-radius: 15px;
  21370. border-bottom-right-radius: 15px;
  21371. }
  21372. .pzAudioClass {
  21373. margin: 15px 14px;
  21374. background: #fff;
  21375. height: 100%;
  21376. display: flex;
  21377. justify-content: center;
  21378. align-items: center;
  21379. }
  21380. .pzConText {
  21381. width: 95%;
  21382. height: 100%;
  21383. margin: 10px auto 0;
  21384. border: none;
  21385. background: #fff;
  21386. border-radius: 0px;
  21387. }
  21388. .pzConText >>> .text {
  21389. height: calc(100% - 82px);
  21390. }
  21391. .addTextCss {
  21392. background: #4b79ce;
  21393. width: 80px;
  21394. height: 30px;
  21395. text-align: center;
  21396. color: #fff;
  21397. line-height: 30px;
  21398. border-radius: 10px;
  21399. margin: 10px auto 0;
  21400. cursor: pointer;
  21401. }
  21402. .pzConText:focus-visible {
  21403. border: none !important;
  21404. }
  21405. .maxWidth {
  21406. width: 1000px;
  21407. }
  21408. .noPz {
  21409. width: 150px;
  21410. margin: 0 auto 20%;
  21411. }
  21412. .noPz > img {
  21413. width: 100%;
  21414. height: 100%;
  21415. }
  21416. .timeAndReply {
  21417. display: flex;
  21418. flex-direction: row;
  21419. flex-wrap: nowrap;
  21420. justify-content: space-between;
  21421. align-items: center;
  21422. font-size: 14px;
  21423. box-sizing: border-box;
  21424. padding: 0 10px 10px 0px;
  21425. }
  21426. .timeAndReply .time {
  21427. color: #bfbfbf;
  21428. padding: 0 0 0 10px;
  21429. box-sizing: border-box;
  21430. }
  21431. .timeAndReply > div:last-child {
  21432. cursor: pointer;
  21433. color: #777;
  21434. }
  21435. /* table 样式 */
  21436. .cont >>> table {
  21437. border-top: 1px solid #ccc;
  21438. border-left: 1px solid #ccc;
  21439. }
  21440. .cont >>> table td,
  21441. .cont >>> table th {
  21442. border-bottom: 1px solid #ccc;
  21443. border-right: 1px solid #ccc;
  21444. /* padding: 20px 5px; */
  21445. padding: 5px 10px;
  21446. max-width: 0px;
  21447. height: 30px;
  21448. vertical-align: baseline;
  21449. box-sizing: border-box;
  21450. }
  21451. .cont >>> table th {
  21452. border-bottom: 2px solid #ccc;
  21453. text-align: center;
  21454. }
  21455. /* blockquote 样式 */
  21456. .cont >>> blockquote {
  21457. display: block;
  21458. border-left: 8px solid #d0e5f2;
  21459. padding: 5px 10px;
  21460. margin: 10px 0;
  21461. line-height: 1.4;
  21462. font-size: 100%;
  21463. background-color: #f1f1f1;
  21464. }
  21465. /* code 样式 */
  21466. .cont >>> code {
  21467. display: inline-block;
  21468. /* *display: inline; */
  21469. zoom: 1;
  21470. background-color: #f1f1f1;
  21471. border-radius: 3px;
  21472. padding: 3px 5px;
  21473. margin: 0 3px;
  21474. }
  21475. .cont >>> pre code {
  21476. display: block;
  21477. }
  21478. /* ul ol 样式 */
  21479. .cont >>> ul,
  21480. ol {
  21481. margin: 10px 0 10px 20px;
  21482. }
  21483. .addPzCheck {
  21484. display: flex;
  21485. flex-direction: row;
  21486. flex-wrap: nowrap;
  21487. padding: 10px 15px 0;
  21488. }
  21489. .addPzCheck span {
  21490. cursor: pointer;
  21491. padding-bottom: 5px;
  21492. font-weight: bold;
  21493. }
  21494. .addPzCheck span + span {
  21495. margin-left: 10px;
  21496. }
  21497. .addPzCheck .isChooseActive {
  21498. color: #3e88f4;
  21499. border-bottom: 2px solid #2f80f3;
  21500. }
  21501. /* code 样式 */
  21502. .cont {
  21503. /* -webkit-user-modify: read-write; */
  21504. overflow-wrap: break-word;
  21505. -webkit-line-break: after-white-space;
  21506. }
  21507. .scoreBox,
  21508. .scoreDetailBox {
  21509. display: flex;
  21510. align-items: center;
  21511. justify-content: flex-start;
  21512. margin-top: 20px;
  21513. font-size: 18px;
  21514. width: 100%;
  21515. }
  21516. .scoreBox .t,
  21517. .scoreDetailBox .t {
  21518. margin-right: 10px;
  21519. width: 100px;
  21520. text-align: right;
  21521. }
  21522. .scoreDetailBox {
  21523. align-items: flex-start;
  21524. }
  21525. .scoreDetailBox >>> .el-textarea {
  21526. width: calc(100% - 200px);
  21527. }
  21528. .scoreBox >>> .el-input {
  21529. width: 130px;
  21530. font-size: 38px;
  21531. }
  21532. .scoreBox >>> .el-input__inner {
  21533. height: 60px;
  21534. }
  21535. .answerScore {
  21536. position: absolute;
  21537. top: 10px;
  21538. right: 10px;
  21539. background: #0000008f;
  21540. border-radius: 5px;
  21541. padding: 3px 5px;
  21542. font-size: 14px;
  21543. color: #fff;
  21544. cursor: pointer;
  21545. }
  21546. .open_box .switch_box {
  21547. width: 100%;
  21548. margin: 0 auto;
  21549. display: flex;
  21550. justify-content: space-between;
  21551. }
  21552. .open_box .switch_box + .switch_box {
  21553. margin-top: 10px;
  21554. }
  21555. .deleteImg {
  21556. width: 25px !important;
  21557. height: 25px !important;
  21558. cursor: pointer;
  21559. position: absolute;
  21560. top: 10px;
  21561. right: 10px;
  21562. }
  21563. .deleteImg2 {
  21564. width: 15px !important;
  21565. height: 15px !important;
  21566. top: 5px;
  21567. right: 5px;
  21568. }
  21569. .rightW {
  21570. right: 40px;
  21571. }
  21572. .drawPBox {
  21573. display: flex;
  21574. flex-direction: column;
  21575. position: relative;
  21576. }
  21577. .drawPBox span {
  21578. font-size: 18px;
  21579. color: #606266;
  21580. padding-bottom: 10px;
  21581. margin: 10px 0;
  21582. border-bottom: 1px solid #eaeaea;
  21583. }
  21584. .drawPBox img {
  21585. width: 500px;
  21586. height: 300px;
  21587. object-fit: contain;
  21588. cursor: pointer;
  21589. margin: 0 auto;
  21590. }
  21591. .sentenBox {
  21592. background: #fff;
  21593. height: 450px;
  21594. overflow: auto;
  21595. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21596. background-position: 102%;
  21597. background-repeat: no-repeat;
  21598. background-size: 60%;
  21599. }
  21600. .addSen {
  21601. background: #409efe;
  21602. width: 90px;
  21603. color: #fff;
  21604. height: 35px;
  21605. text-align: center;
  21606. line-height: 35px;
  21607. border-radius: 5px;
  21608. float: right;
  21609. margin: 10px 20px 0 0;
  21610. cursor: pointer;
  21611. }
  21612. .sentenTop {
  21613. display: flex;
  21614. flex-direction: row;
  21615. flex-wrap: nowrap;
  21616. align-items: center;
  21617. padding: 55px 0 0 20px;
  21618. box-sizing: border-box;
  21619. }
  21620. .sentenTop > div:nth-child(2) {
  21621. width: 300px;
  21622. margin: 0 15px;
  21623. }
  21624. .sentenTop > div:nth-child(3) {
  21625. background: #409efe;
  21626. color: #fff;
  21627. width: 65px;
  21628. height: 35px;
  21629. text-align: center;
  21630. line-height: 35px;
  21631. border-radius: 5px;
  21632. cursor: pointer;
  21633. }
  21634. .cardList,
  21635. .cardList1 {
  21636. padding: 10px 0 10px 0;
  21637. display: flex;
  21638. flex-direction: row;
  21639. flex-wrap: wrap;
  21640. align-items: center;
  21641. box-sizing: border-box;
  21642. border-bottom: 1px solid #f4f4f4;
  21643. width: 98%;
  21644. margin: 0 auto;
  21645. min-width: 60%;
  21646. max-width: 85%;
  21647. }
  21648. .cardList1 {
  21649. padding: 10px 0 10px 10px !important;
  21650. margin: 0 !important;
  21651. }
  21652. .cardBox {
  21653. display: flex;
  21654. flex-direction: row;
  21655. flex-wrap: wrap;
  21656. align-items: center;
  21657. align-content: center;
  21658. }
  21659. .cardBox > div {
  21660. margin-bottom: 10px;
  21661. }
  21662. .isCard,
  21663. .isChooseCard,
  21664. .noCard,
  21665. .isCard1 {
  21666. width: 130px;
  21667. height: 60px;
  21668. text-align: center;
  21669. line-height: 60px;
  21670. font-size: 20px;
  21671. cursor: pointer;
  21672. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21673. background-size: cover;
  21674. transition: all 2s;
  21675. margin-right: 20px;
  21676. }
  21677. .isCard > div,
  21678. .noCard > div,
  21679. .isCard1 > div {
  21680. white-space: nowrap;
  21681. overflow: hidden;
  21682. text-overflow: ellipsis;
  21683. width: 75%;
  21684. margin: 0 auto;
  21685. }
  21686. .noCard {
  21687. background-image: none;
  21688. }
  21689. .isCard1 {
  21690. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21691. }
  21692. .isChooseCard {
  21693. background-image: none;
  21694. border: 1px dashed #b9b9b9;
  21695. border-radius: 10px;
  21696. }
  21697. .card {
  21698. width: 130px;
  21699. height: 60px;
  21700. }
  21701. .card > img {
  21702. width: 100%;
  21703. height: 100%;
  21704. }
  21705. .rightCardBox {
  21706. margin: 10px 0 0 10px;
  21707. }
  21708. .rightCardBox > div:nth-child(1) {
  21709. margin-bottom: 10px;
  21710. }
  21711. .cardCss {
  21712. display: flex;
  21713. flex-direction: column;
  21714. flex-wrap: nowrap;
  21715. align-items: center;
  21716. border-bottom: 3px solid #b4c3d3;
  21717. padding: 0 0 5px 0;
  21718. margin-right: 10px;
  21719. }
  21720. .cardCss > div:nth-child(2) {
  21721. background: #5b7b9d;
  21722. color: #fff;
  21723. width: 20px;
  21724. height: 20px;
  21725. border-radius: 50%;
  21726. text-align: center;
  21727. line-height: 20px;
  21728. }
  21729. .isWrong {
  21730. display: flex;
  21731. flex-direction: row;
  21732. flex-wrap: nowrap;
  21733. align-content: center;
  21734. align-items: center;
  21735. }
  21736. .answerRight {
  21737. width: 25%;
  21738. }
  21739. .isTj {
  21740. display: flex;
  21741. flex-direction: row;
  21742. flex-wrap: nowrap;
  21743. align-items: center;
  21744. }
  21745. .isTj > div:nth-child(2) {
  21746. color: #727070;
  21747. margin-left: 10px;
  21748. }
  21749. .isTjImg {
  21750. width: 30px;
  21751. height: 30px;
  21752. }
  21753. .isTjImg > img {
  21754. width: 100%;
  21755. height: 100%;
  21756. }
  21757. .cardAnswerBox {
  21758. font-size: 18px;
  21759. width: 97%;
  21760. border: 5px;
  21761. padding: 0;
  21762. border-radius: 5px;
  21763. margin: 10px auto;
  21764. word-break: break-word;
  21765. }
  21766. .w_name {
  21767. margin-bottom: 10px;
  21768. }
  21769. .w_name span {
  21770. font-size: 16px;
  21771. }
  21772. .w_teachert {
  21773. width: 50px !important;
  21774. position: absolute;
  21775. height: auto !important;
  21776. z-index: 10;
  21777. right: 25px;
  21778. top: -25px;
  21779. }
  21780. .group_workBox {
  21781. }
  21782. .group_workBox + .group_workBox {
  21783. margin-top: 20px;
  21784. }
  21785. .group_box {
  21786. padding-bottom: 20px;
  21787. border-bottom: 2px solid #f0f0f0;
  21788. margin-top: 10px;
  21789. }
  21790. .group_title {
  21791. display: flex;
  21792. align-items: center;
  21793. justify-content: space-between;
  21794. width: 95%;
  21795. }
  21796. .group_name {
  21797. background-image: url(../../assets/icon/groupN.png);
  21798. width: 220px;
  21799. background-size: 100% 100%;
  21800. height: 67px;
  21801. padding: 0 20px 0 43px;
  21802. box-sizing: border-box;
  21803. line-height: 63px;
  21804. color: #fff;
  21805. overflow: hidden;
  21806. white-space: nowrap;
  21807. text-overflow: ellipsis;
  21808. }
  21809. .group_work {
  21810. width: 100%;
  21811. padding: 0 10px;
  21812. box-sizing: border-box;
  21813. display: flex;
  21814. flex-wrap: wrap;
  21815. }
  21816. .g_d_box {
  21817. display: flex;
  21818. flex-flow: wrap;
  21819. justify-content: space-around;
  21820. }
  21821. .g_d_box .isChair {
  21822. background-image: url(../../assets/avatar.png) !important;
  21823. }
  21824. .g_d_group {
  21825. width: 500px;
  21826. margin-bottom: 80px;
  21827. }
  21828. .g_d_group_chair {
  21829. display: flex;
  21830. align-items: center;
  21831. justify-content: center;
  21832. }
  21833. .g_d_group_chair > div + div {
  21834. margin-left: 30px;
  21835. }
  21836. .g_d_group_chair > div,
  21837. .g_d_group_chair2 > div {
  21838. display: flex;
  21839. flex-direction: column;
  21840. align-items: center;
  21841. }
  21842. .g_d_group_chair > div > span:nth-child(1),
  21843. .g_d_group_chair2 > div > span:nth-child(1) {
  21844. background-image: url(../../assets/icon/chair.png);
  21845. width: 50px;
  21846. height: 50px;
  21847. display: block;
  21848. background-size: 100% 100%;
  21849. }
  21850. .g_d_group_tableBox {
  21851. display: flex;
  21852. align-items: center;
  21853. justify-content: center;
  21854. }
  21855. .g_d_group_chair2 {
  21856. display: flex;
  21857. flex-direction: column;
  21858. align-items: center;
  21859. justify-content: center;
  21860. }
  21861. .g_d_group_chair2 > div + div {
  21862. margin-top: 10px;
  21863. }
  21864. .g_d_group_table {
  21865. background-image: url(../../assets/icon/groupBg.png);
  21866. width: 354px;
  21867. height: 196px;
  21868. background-size: 100% 100%;
  21869. display: flex;
  21870. align-items: center;
  21871. justify-content: center;
  21872. flex-direction: column;
  21873. color: #fff;
  21874. }
  21875. .g_d_group_table > div:nth-child(1) {
  21876. font-size: 24px;
  21877. margin-bottom: 5px;
  21878. }
  21879. .g_d_group_table > div:nth-child(2) div {
  21880. cursor: pointer;
  21881. background: #2e77bf;
  21882. padding: 4px 10px;
  21883. border-radius: 5px;
  21884. }
  21885. .groupBox {
  21886. }
  21887. .groupContent + .groupContent {
  21888. margin-top: 30px;
  21889. }
  21890. .groupTitle {
  21891. font-size: 24px;
  21892. color: rgb(80, 80, 80);
  21893. margin-bottom: 20px;
  21894. }
  21895. .groupName {
  21896. display: flex;
  21897. align-items: center;
  21898. }
  21899. .groupn {
  21900. font-size: 15px;
  21901. margin-right: 10px;
  21902. }
  21903. .groupName + .groupName {
  21904. margin-top: 15px;
  21905. }
  21906. .groupBtn {
  21907. margin-left: 10px;
  21908. }
  21909. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21910. text-align: left;
  21911. }
  21912. .g_d_btnBox {
  21913. display: flex;
  21914. justify-content: flex-end;
  21915. align-items: center;
  21916. margin-bottom: 20px;
  21917. }
  21918. .updateChair {
  21919. position: relative;
  21920. }
  21921. .updateChairBtn {
  21922. position: absolute;
  21923. width: 50px;
  21924. height: 50px;
  21925. overflow: hidden;
  21926. /* display: flex; */
  21927. align-items: center;
  21928. justify-content: center;
  21929. background: #00000087;
  21930. color: #fff;
  21931. border-radius: 50px;
  21932. display: none;
  21933. cursor: pointer;
  21934. }
  21935. .updateChair:hover .updateChairBtn {
  21936. display: flex;
  21937. }
  21938. .group_staic_box {
  21939. display: flex;
  21940. padding: 30px 40px 10px;
  21941. flex-wrap: wrap;
  21942. }
  21943. .group_staic {
  21944. /* width: 50%; */
  21945. margin-bottom: 20px;
  21946. display: flex;
  21947. align-items: center;
  21948. }
  21949. .group_staic span:nth-child(1) {
  21950. width: 150px;
  21951. text-align: right;
  21952. margin-right: 15px;
  21953. }
  21954. .group_staic span:nth-child(2) {
  21955. background: rgb(0 123 255);
  21956. color: #fff;
  21957. border-radius: 5px;
  21958. padding: 5px;
  21959. }
  21960. .codeFileBox {
  21961. height: 300px;
  21962. background: #fff;
  21963. display: flex;
  21964. align-items: center;
  21965. justify-content: center;
  21966. }
  21967. .codeFileBox img {
  21968. width: 200px;
  21969. margin: 0;
  21970. height: auto;
  21971. }
  21972. .codeFileBox div {
  21973. background: rgb(80, 142, 226);
  21974. color: #fff;
  21975. padding: 10px 20px;
  21976. border-radius: 25px;
  21977. cursor: pointer;
  21978. margin-left: 15px;
  21979. }
  21980. .radioBox {
  21981. display: flex;
  21982. flex-direction: column;
  21983. flex-wrap: nowrap;
  21984. align-items: flex-start;
  21985. }
  21986. .radioBox > div {
  21987. margin: 10px 0 0 10px;
  21988. }
  21989. /* .radioBox >>> .el-radio__input,
  21990. .radioBox >>> .el-checkbox__inner {
  21991. margin-left: 10px;
  21992. } */
  21993. .radioBox >>> .el-radio__label,
  21994. .radioBox >>> .el-checkbox__label {
  21995. display: flex;
  21996. align-items: center;
  21997. width: 100%;
  21998. }
  21999. .radioBox >>> .el-radio__label > span {
  22000. width: 100%;
  22001. display: -webkit-box;
  22002. overflow: hidden;
  22003. white-space: normal !important;
  22004. text-overflow: ellipsis;
  22005. word-wrap: break-word;
  22006. }
  22007. .inImg {
  22008. width: 100px;
  22009. cursor: pointer;
  22010. }
  22011. .inImg > img {
  22012. width: 100%;
  22013. height: 100%;
  22014. object-fit: cover;
  22015. }
  22016. .timuImgBox {
  22017. margin: 10px 0;
  22018. display: flex;
  22019. flex-direction: column;
  22020. flex-wrap: wrap;
  22021. align-items: flex-start;
  22022. }
  22023. .timuImg {
  22024. width: 150px;
  22025. margin: 5px 0;
  22026. cursor: pointer;
  22027. }
  22028. .timuImg > img {
  22029. width: 100%;
  22030. height: 100%;
  22031. object-fit: cover;
  22032. }
  22033. .worksTop {
  22034. display: flex;
  22035. flex-direction: row;
  22036. align-items: flex-end;
  22037. }
  22038. .worksTitle {
  22039. display: flex;
  22040. flex-direction: row;
  22041. flex-wrap: nowrap;
  22042. align-items: center;
  22043. }
  22044. .worksTitle::before,
  22045. .worksTop::before {
  22046. content: "";
  22047. display: block;
  22048. width: 3px;
  22049. height: 20px;
  22050. background: #0061ff;
  22051. border-radius: 3px;
  22052. margin: 0 5px 0 0;
  22053. }
  22054. .corOpen {
  22055. margin: 0 0 0 10px;
  22056. font-size: 14px;
  22057. cursor: pointer;
  22058. color: #505050;
  22059. }
  22060. .corOpen:hover {
  22061. color: #499eef;
  22062. }
  22063. .navCorOpenBox {
  22064. display: flex;
  22065. flex-direction: row;
  22066. align-items: center;
  22067. justify-content: space-between;
  22068. height: 55px;
  22069. background: #ffffff;
  22070. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22071. border-radius: 8px 8px 0px 0px;
  22072. z-index: 9;
  22073. position: relative;
  22074. }
  22075. .navCorOpen {
  22076. padding-right: 15px;
  22077. cursor: pointer;
  22078. width: 45px;
  22079. display: flex;
  22080. }
  22081. .navCorOpen > img {
  22082. width: 100%;
  22083. height: 100%;
  22084. }
  22085. .mlImg {
  22086. width: 45px !important;
  22087. min-width: 45px;
  22088. cursor: pointer;
  22089. transform: rotate(180deg);
  22090. }
  22091. .mlImg > img {
  22092. width: 100%;
  22093. height: 100%;
  22094. }
  22095. .navLeftCss {
  22096. width: 100% !important;
  22097. left: 0 !important;
  22098. }
  22099. .isContentCss {
  22100. width: 100% !important;
  22101. }
  22102. .isAllWidth {
  22103. width: 100% !important;
  22104. }
  22105. .group_switch {
  22106. margin-right: 10px;
  22107. height: 30px;
  22108. display: flex;
  22109. align-items: center;
  22110. }
  22111. .group_switch > span {
  22112. margin-right: 5px;
  22113. }
  22114. .fileC_box {
  22115. padding-top: 15px;
  22116. }
  22117. .fileC_box > .fileC_title {
  22118. padding: 10px 5px 14px 11px;
  22119. border-top: 1px solid #cad1dc;
  22120. font-size: 14px;
  22121. font-weight: 400;
  22122. color: #cad1dc;
  22123. width: 88%;
  22124. margin: 0 auto;
  22125. }
  22126. .pl_select_box {
  22127. height: 40px;
  22128. line-height: 40px;
  22129. width: 100%;
  22130. cursor: pointer;
  22131. padding: 0 20px;
  22132. box-sizing: border-box;
  22133. border-radius: 5px;
  22134. border: 1px solid #d6d6d6;
  22135. white-space: nowrap;
  22136. overflow: hidden;
  22137. text-overflow: ellipsis;
  22138. background: #fff;
  22139. text-align: left;
  22140. }
  22141. .newButton {
  22142. width: 102px;
  22143. height: 36px;
  22144. background: #e7ebf1;
  22145. border-radius: 4px;
  22146. color: #0e1e33;
  22147. font-weight: 400;
  22148. font-size: 14px;
  22149. border: none;
  22150. float: right;
  22151. margin-left: 10px;
  22152. }
  22153. .el-table >>> .even_row {
  22154. background-color: #f0f4fa;
  22155. }
  22156. .stageBoxCss,
  22157. .stageBoxIsCss {
  22158. display: flex;
  22159. flex-direction: row;
  22160. flex-wrap: nowrap;
  22161. align-items: center;
  22162. height: 50px;
  22163. border-bottom: 1px solid #e2f5fc;
  22164. cursor: pointer;
  22165. width: 100%;
  22166. }
  22167. .stageBoxIsCss {
  22168. background: #0061ff;
  22169. color: #fff;
  22170. border-radius: 8px;
  22171. }
  22172. .stageItemTitle {
  22173. display: flex;
  22174. flex-direction: row;
  22175. flex-wrap: nowrap;
  22176. align-items: center;
  22177. margin-left: 15px;
  22178. width: calc(100% - 50px);
  22179. }
  22180. .stageItemTitle > div:first-child {
  22181. font-size: 16px;
  22182. font-weight: bold;
  22183. min-width: 55px;
  22184. }
  22185. .stageItemTitle > div:last-child {
  22186. font-size: 15px;
  22187. font-weight: 600;
  22188. max-width: 242px;
  22189. white-space: nowrap;
  22190. overflow: hidden;
  22191. text-overflow: ellipsis;
  22192. word-break: break-word;
  22193. width: calc(100% - 55px);
  22194. }
  22195. .closeTri,
  22196. .closeTri1 {
  22197. min-width: 15px;
  22198. width: 15px;
  22199. height: 15px;
  22200. }
  22201. .closeTri1 {
  22202. padding-left: 10px;
  22203. cursor: pointer;
  22204. }
  22205. .closeTri > img,
  22206. .closeTri1 > img {
  22207. width: 100%;
  22208. height: 100%;
  22209. }
  22210. .noToolBlue {
  22211. min-width: 10px;
  22212. width: 10px;
  22213. height: 10px;
  22214. background: #0061ff;
  22215. border-radius: 50%;
  22216. margin-left: 13px;
  22217. }
  22218. .stageChild,
  22219. .toolChild {
  22220. height: 0;
  22221. overflow: hidden;
  22222. transition: all 0.5s;
  22223. }
  22224. .toolChild {
  22225. margin: 0 0 0 17px;
  22226. padding: 0 0 0 20px;
  22227. border-left: 1px solid #d7d7d7;
  22228. }
  22229. .gjCss {
  22230. display: flex;
  22231. flex-direction: row;
  22232. flex-wrap: nowrap;
  22233. align-items: center;
  22234. padding: 15px 0;
  22235. box-sizing: border-box;
  22236. font-size: 14px;
  22237. cursor: pointer;
  22238. }
  22239. .toolChild > div {
  22240. position: relative;
  22241. }
  22242. .toolChild > div::before {
  22243. content: "";
  22244. width: 15px;
  22245. height: 1px;
  22246. background: #cad1dc;
  22247. position: absolute;
  22248. top: 24px;
  22249. left: -20px;
  22250. display: block;
  22251. }
  22252. .isGjCss {
  22253. color: #0061ff;
  22254. }
  22255. .navItem {
  22256. background: #ffffff;
  22257. border-radius: 4px;
  22258. width: 100%;
  22259. margin: 10px auto 0;
  22260. position: relative;
  22261. height: 40px;
  22262. display: flex;
  22263. flex-direction: row;
  22264. flex-wrap: nowrap;
  22265. align-items: center;
  22266. }
  22267. .navItemList {
  22268. display: flex;
  22269. flex-direction: row;
  22270. flex-wrap: nowrap;
  22271. align-items: center;
  22272. padding: 0 13px;
  22273. cursor: pointer;
  22274. width: calc(100% - 60px);
  22275. height: 100%;
  22276. }
  22277. .navItemList > div:first-child {
  22278. min-width: 60px;
  22279. }
  22280. .navItemList > div:last-child {
  22281. width: calc(100% - 80px);
  22282. white-space: nowrap;
  22283. overflow: hidden;
  22284. text-overflow: ellipsis;
  22285. word-break: break-word;
  22286. }
  22287. /* .isItemList > div {
  22288. color: #fff !important;
  22289. } */
  22290. .tool_work_box {
  22291. width: 100%;
  22292. padding: 0 37px 0;
  22293. box-sizing: border-box;
  22294. }
  22295. .tool_box {
  22296. width: 100%;
  22297. padding: 0 0 0 20px;
  22298. }
  22299. .tool_type_box {
  22300. display: flex;
  22301. flex-direction: row;
  22302. align-items: baseline;
  22303. flex-wrap: nowrap;
  22304. justify-content: flex-start;
  22305. position: relative;
  22306. }
  22307. .toolSort {
  22308. display: flex;
  22309. flex-direction: row;
  22310. flex-wrap: wrap;
  22311. justify-content: flex-start;
  22312. align-items: flex-start;
  22313. padding: 0 0 15px 0;
  22314. }
  22315. .toolSort > div {
  22316. margin: 0 10px 0 0;
  22317. width: 135px;
  22318. box-sizing: border-box;
  22319. border: 2px solid transparent;
  22320. }
  22321. .tools {
  22322. width: 100%;
  22323. display: flex;
  22324. flex-direction: column;
  22325. flex-wrap: nowrap;
  22326. align-items: flex-start;
  22327. }
  22328. .whiteBIcon {
  22329. width: fit-content;
  22330. cursor: pointer;
  22331. display: flex;
  22332. flex-direction: column;
  22333. flex-wrap: nowrap;
  22334. align-items: center;
  22335. font-size: 14px;
  22336. }
  22337. .tool:hover {
  22338. border: 2px solid #a5c7ff;
  22339. border-radius: 5px;
  22340. }
  22341. .whiteBIcon > img {
  22342. width: 65px;
  22343. height: 100%;
  22344. }
  22345. .whiteBIcon > img {
  22346. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22347. border-radius: 15px;
  22348. }
  22349. .check {
  22350. /* width: 20px;
  22351. height: 20px; */
  22352. cursor: pointer;
  22353. margin: 10px 0;
  22354. position: absolute;
  22355. right: 2px;
  22356. top: -5px;
  22357. }
  22358. .noChoose,
  22359. .isChoose {
  22360. width: 15px;
  22361. height: 15px;
  22362. border-radius: 50%;
  22363. border: 1px solid #adadad;
  22364. }
  22365. .isChoose {
  22366. border: 4px solid #0363ff !important;
  22367. width: 10px;
  22368. height: 10px;
  22369. }
  22370. .isToolChoose {
  22371. border: 2px solid #5394ff !important;
  22372. border-radius: 5px;
  22373. box-shadow: 0 0 6px 0px #5394ff;
  22374. }
  22375. .checkDiv {
  22376. display: flex;
  22377. align-items: center;
  22378. }
  22379. .checkDiv span {
  22380. margin-left: 5px;
  22381. color: #858585;
  22382. }
  22383. .check img {
  22384. width: 20px;
  22385. height: 20px;
  22386. }
  22387. .lockTaskIcon {
  22388. width: 20px;
  22389. height: 20px;
  22390. position: absolute;
  22391. right: 10px;
  22392. top: 10px;
  22393. }
  22394. .lockTaskIcon > img {
  22395. width: 100%;
  22396. height: 100%;
  22397. }
  22398. .pick_box {
  22399. display: flex;
  22400. align-items: flex-start;
  22401. flex-wrap: wrap;
  22402. }
  22403. .selectBox {
  22404. width: 110px;
  22405. margin-left: 10px;
  22406. margin: 0 10px 0 auto;
  22407. }
  22408. .selectBox >>> .el-input__inner {
  22409. height: 30px;
  22410. line-height: 30px;
  22411. }
  22412. .selectBox >>> .el-input__icon {
  22413. line-height: 30px;
  22414. }
  22415. .sentenceTitle {
  22416. display: flex;
  22417. flex-direction: row;
  22418. flex-wrap: nowrap;
  22419. align-items: center;
  22420. }
  22421. .sentenceTitle::before {
  22422. content: attr(index);
  22423. background: #3681fc;
  22424. border-radius: 50%;
  22425. color: #fff;
  22426. width: 25px;
  22427. height: 25px;
  22428. min-width: 25px;
  22429. min-height: 25px;
  22430. text-align: center;
  22431. line-height: 25px;
  22432. margin-right: 5px;
  22433. }
  22434. .hfBox {
  22435. padding: 10px;
  22436. box-sizing: border-box;
  22437. }
  22438. .whoReplyWho {
  22439. display: flex;
  22440. flex-direction: row;
  22441. flex-wrap: nowrap;
  22442. align-items: baseline;
  22443. justify-content: flex-start;
  22444. }
  22445. .hfBottom {
  22446. display: flex;
  22447. flex-direction: row;
  22448. flex-wrap: nowrap;
  22449. align-items: center;
  22450. justify-content: space-between;
  22451. font-size: 14px;
  22452. }
  22453. .deleteHfItem {
  22454. cursor: pointer;
  22455. width: 20px;
  22456. height: 20px;
  22457. }
  22458. .deleteHfItem > img {
  22459. width: 100%;
  22460. height: 100%;
  22461. }
  22462. .whoReplyWho > .hfImg {
  22463. width: 12px;
  22464. height: 12px;
  22465. margin: 0 5px;
  22466. }
  22467. .whoReplyWho > .hfImg > img {
  22468. width: 100%;
  22469. height: 100%;
  22470. }
  22471. .hfContent {
  22472. padding-top: 10px;
  22473. box-sizing: border-box;
  22474. display: -webkit-box;
  22475. overflow: hidden;
  22476. white-space: normal !important;
  22477. text-overflow: ellipsis;
  22478. word-wrap: break-word;
  22479. -webkit-box-orient: vertical;
  22480. }
  22481. .hfTime {
  22482. text-align: left;
  22483. box-sizing: border-box;
  22484. padding: 10px 0 10px 0px;
  22485. color: #bfbfbf;
  22486. font-size: 14px;
  22487. }
  22488. .btnAllNT {
  22489. position: fixed;
  22490. bottom: 100px;
  22491. right: 40px;
  22492. z-index: 999;
  22493. display: flex;
  22494. flex-direction: row;
  22495. }
  22496. .btnAllNT > img {
  22497. cursor: pointer;
  22498. width: 80px;
  22499. }
  22500. .toolMask {
  22501. position: fixed;
  22502. width: 100%;
  22503. height: 100%;
  22504. background: #3f3c3c;
  22505. opacity: 0.5;
  22506. top: 0;
  22507. left: 0;
  22508. z-index: 999;
  22509. }
  22510. .addToolCss {
  22511. position: fixed;
  22512. z-index: 999;
  22513. background: #fff;
  22514. right: 5%;
  22515. bottom: 18%;
  22516. min-width: 1035px;
  22517. min-height: 300px;
  22518. border-radius: 10px;
  22519. box-shadow: 0 0 8px 1px #b2b2b2;
  22520. }
  22521. .toolTop {
  22522. display: flex;
  22523. flex-direction: row;
  22524. flex-wrap: nowrap;
  22525. justify-content: space-between;
  22526. align-items: center;
  22527. padding: 20px;
  22528. }
  22529. .toolTop > div:nth-child(2) {
  22530. width: 15px;
  22531. height: 15px;
  22532. padding-right: 10px;
  22533. cursor: pointer;
  22534. }
  22535. .toolTop > div:nth-child(2) > img {
  22536. width: 100%;
  22537. height: 100%;
  22538. }
  22539. .fullStyle>>>.el-dialog__body {
  22540. height: calc(100% - 125px) !important;
  22541. box-sizing: border-box;
  22542. padding: 30px 0 !important;
  22543. background: #fff !important;
  22544. }
  22545. .fullStyle>>>.el-dialog {
  22546. width: 100% !important;
  22547. max-width: 100% !important;
  22548. height: 100% !important;
  22549. margin: 0 !important;
  22550. }
  22551. .fullStyle {
  22552. width: 100% !important;
  22553. max-width: 100% !important;
  22554. height: 100% !important;
  22555. margin: 0 auto !important;
  22556. }
  22557. .fullStyle>>>.el-dialog__footer{
  22558. background: #fff !important;
  22559. }
  22560. .engUpBox {
  22561. width: 100%;
  22562. height: 100%;
  22563. }
  22564. .engTitle,
  22565. .engText {
  22566. display: flex;
  22567. flex-direction: row;
  22568. flex-wrap: nowrap;
  22569. align-items: flex-start;
  22570. padding: 0 20px 20px 20px;
  22571. box-sizing: border-box;
  22572. }
  22573. .engTitle > .div:first-child,
  22574. .engText > div:first-child {
  22575. min-width: 75px;
  22576. }
  22577. .correctBox{
  22578. width: 100%;
  22579. display: flex;
  22580. flex-direction: row;
  22581. flex-wrap: nowrap;
  22582. align-items: flex-start;
  22583. }
  22584. .oldBox{
  22585. width: 50%;
  22586. height: 100%;
  22587. display: flex;
  22588. flex-direction: column;
  22589. flex-wrap: nowrap;
  22590. align-items: center;
  22591. border-top: 1px solid #d9d9d9;
  22592. border-left: 1px solid #d9d9d9;
  22593. border-right: 1px solid #d9d9d9;
  22594. }
  22595. .oldBox>div:first-child{
  22596. width: 100%;
  22597. text-align: center;
  22598. background: #d9d9d9;
  22599. height: 35px;
  22600. line-height: 35px;
  22601. font-weight: bold;
  22602. }
  22603. .oldText{
  22604. width: 100%;
  22605. height: 100%;
  22606. display: flex;
  22607. flex-direction: column;
  22608. flex-wrap: nowrap;
  22609. align-content: center;
  22610. justify-content: center;
  22611. align-items: center;
  22612. }
  22613. .detailBox{
  22614. width: 50%;
  22615. padding: 10px;
  22616. background: #f6f6f6;
  22617. border-radius: 5px;
  22618. }
  22619. .oldDetail{
  22620. padding-bottom: 30px;
  22621. }
  22622. .allName{
  22623. min-width: 200px;
  22624. white-space: nowrap;
  22625. overflow: hidden;
  22626. text-overflow: ellipsis;
  22627. word-break: break-word;
  22628. cursor: pointer;
  22629. text-align: center;
  22630. border: 1px solid #bcc2cc;
  22631. box-sizing: border-box;
  22632. }
  22633. .engUpTop{
  22634. max-height: 300px;
  22635. overflow: auto;
  22636. }
  22637. </style>