studyStudent.vue 698 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 900px;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. "
  13. >
  14. <div class="btnAllNT">
  15. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  16. <img
  17. src="../../assets/icon/learn/last.png"
  18. @click="nextOrpreSteps(0)"
  19. />
  20. <img
  21. src="../../assets/icon/learn/next.png"
  22. @click="nextOrpreSteps(1)"
  23. />
  24. <img
  25. src="../../assets/icon/learn/return.png"
  26. @click.stop="
  27. goTo(
  28. '/courseDetail?userid=' +
  29. userid +
  30. '&oid=' +
  31. oid +
  32. '&org=' +
  33. org +
  34. '&cid=' +
  35. classId +
  36. '&courseId=' +
  37. id +
  38. '&tType=' +
  39. tType +
  40. '&screenType=' +
  41. screenType
  42. )
  43. "
  44. />
  45. </div>
  46. <div
  47. class="pButton"
  48. style="
  49. left: 0;
  50. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  51. top: 140px;
  52. "
  53. v-if="mlDialog == false"
  54. @click="setContent2(true)"
  55. >
  56. <!-- 批 , getCourseDetail()-->
  57. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  58. </div>
  59. <div class="pb_left" v-else>
  60. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  61. <div
  62. style="border-bottom: 1px solid #cad1dc; padding: 13px 0; width: 100%"
  63. >
  64. <div class="courseTitle">
  65. <div style="max-width: calc(100% - 40px); width: auto">
  66. <el-tooltip
  67. effect="light"
  68. :content="courseDetail.title"
  69. placement="top"
  70. >
  71. <div class="ctitle">
  72. {{ courseDetail.title }}
  73. </div>
  74. </el-tooltip>
  75. </div>
  76. <el-tooltip effect="light" content="收缩" placement="top">
  77. <div class="mlImg" @click="setContent2(false)">
  78. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  79. </div>
  80. </el-tooltip>
  81. </div>
  82. </div>
  83. <div class="cru_selectBox">
  84. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  85. <div class="stageChild" :class="{ navActive: item.isOpen }">
  86. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  87. <div
  88. class="navItem"
  89. :class="{
  90. openTaskActive:
  91. navIndex == taskCount &&
  92. nav.id == navId &&
  93. stageIndex == courseType,
  94. }"
  95. >
  96. <div
  97. @click="openTask(stageIndex, navIndex, nav.id)"
  98. class="navItemList"
  99. :class="{
  100. isItemList:
  101. navIndex == taskCount &&
  102. nav.id == navId &&
  103. stageIndex == courseType,
  104. }"
  105. >
  106. <div>任务{{ navIndex + 1 }}:</div>
  107. <el-tooltip
  108. effect="light"
  109. :content="nav.taskName"
  110. placement="top"
  111. >
  112. <div
  113. :style="{
  114. width:
  115. IsLookOpen && !nav.isLook
  116. ? 'calc(100% - 75px)'
  117. : 'auto',
  118. }"
  119. >
  120. {{ nav.taskName }}
  121. </div>
  122. </el-tooltip>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  131. <div
  132. class="new_top"
  133. style="
  134. position: fixed;
  135. top: 20px;
  136. left: 22%;
  137. width: 77%;
  138. z-index: 999;
  139. border-radius: 12px 12px 0 0;
  140. border-bottom: 1px solid #cad1dc;
  141. padding: 10px 0;
  142. "
  143. :class="{ navLeftCss: !mlDialog }"
  144. >
  145. <div class="courseIndex">
  146. <div>任务{{ taskCount + 1 }}</div>
  147. <el-tooltip
  148. effect="light"
  149. :content="
  150. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  151. "
  152. placement="top"
  153. >
  154. <div>
  155. {{
  156. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  157. .task
  158. }}
  159. </div>
  160. </el-tooltip>
  161. </div>
  162. <div class="btnAll">
  163. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  164. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  165. <div class="returnBtn" @click="refreshCourse">刷新</div>
  166. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  167. 评论
  168. </div>
  169. <div
  170. class="returnBtn vedioIcon"
  171. @click="startRecording"
  172. v-if="!videoStart && (tType == 1 || tType == 4)"
  173. >
  174. 录制
  175. </div>
  176. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  177. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  178. 开始录制
  179. </div>
  180. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  181. style="background: #ee5255">
  182. 下载录制
  183. </div>
  184. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  185. 权限
  186. </div> -->
  187. <div
  188. class="returnBtn returnIcon"
  189. @click.stop="
  190. goTo(
  191. '/courseDetail?userid=' +
  192. userid +
  193. '&oid=' +
  194. oid +
  195. '&org=' +
  196. org +
  197. '&cid=' +
  198. classId +
  199. '&courseId=' +
  200. id +
  201. '&tType=' +
  202. tType +
  203. '&screenType=' +
  204. screenType
  205. )
  206. "
  207. >
  208. 返回
  209. </div>
  210. </div>
  211. </div>
  212. <div
  213. class="isNoMessage"
  214. v-if="
  215. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  216. .chapterData.length == 0 &&
  217. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  218. .toolChoose[0].tool.length == 0 &&
  219. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  220. .taskDetail == '' &&
  221. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  222. .eList &&
  223. !(
  224. courseDetail.userid == userid ||
  225. (courseDetail.course_teacher &&
  226. courseDetail.course_teacher.indexOf(userid) != -1)
  227. )
  228. "
  229. >
  230. <img src="../../assets/icon/isNoMessage.png" alt />
  231. </div>
  232. <div class="study_top" :class="{ pzClass: pzDialog }">
  233. <div
  234. class="vedioBox"
  235. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  236. >
  237. <div
  238. class="student_head"
  239. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  240. >
  241. <div class="vedioTaskBox">
  242. <div
  243. :class="
  244. contentDialog == false
  245. ? 'box_course isContentCss'
  246. : 'box_course'
  247. "
  248. v-if="
  249. vChapterData.length > 0 &&
  250. vChapterData[0] &&
  251. showType !== ''
  252. "
  253. >
  254. <div class="wheel" style="height: auto" v-if="showType === 0">
  255. <div
  256. class="workd_media"
  257. style="height: 650px; width: calc(100% - 50px)"
  258. >
  259. <video-player
  260. class="video-player vjs-custom-skin"
  261. :class="contentDialog == false ? 'isAllWidth' : ''"
  262. :playsinline="true"
  263. :options="playerO[0]"
  264. @play="onPlayerPlay($event)"
  265. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  266. ></video-player>
  267. </div>
  268. </div>
  269. <div
  270. class="wheel"
  271. v-if="showType == 1"
  272. style="
  273. box-shadow: 0 0 6px 1px #f2f2f2;
  274. width: 95%;
  275. margin: 0 auto;
  276. background: #f1f1f1;
  277. "
  278. >
  279. <div class="title">查看文档</div>
  280. <el-form class="textBox">
  281. <el-form-item class="textTitle">
  282. <div style="font-size: 22px">
  283. {{ text.name }}
  284. </div>
  285. </el-form-item>
  286. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  287. <div v-html="text.url" class="textContent cont"></div>
  288. </el-form>
  289. </div>
  290. <div
  291. class="wheel"
  292. v-if="
  293. pptImgUrl1.indexOf(
  294. 'https://view.officeapps.live.com/op/view.aspx?src='
  295. ) != -1 && showType == 2
  296. "
  297. style="width: 95%; margin: 0 auto"
  298. >
  299. <iframe
  300. style="width: 100%; height: 100%; border: none"
  301. :src="pptImgUrl1"
  302. ></iframe>
  303. </div>
  304. <div
  305. class="wheel"
  306. v-else-if="showType == 2"
  307. style="width: 95%; margin: 0 auto"
  308. >
  309. <iframe
  310. style="width: 100%; height: 100%; border: none"
  311. security="restricted"
  312. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  313. :src="pptImgUrl1"
  314. ></iframe>
  315. </div>
  316. <div
  317. class="wheel"
  318. v-if="showType == 3"
  319. style="width: 95%; margin: 0 auto"
  320. >
  321. <pdf
  322. :pdfUrl="pptImgUrl1"
  323. style="width: 100%; height: 100%; overflow: auto"
  324. ></pdf>
  325. </div>
  326. <div
  327. class="wheel"
  328. v-if="showType == 4"
  329. style="width: 95%; margin: 0 auto"
  330. >
  331. <el-image
  332. :src="pptImgUrl1"
  333. fit="contain"
  334. style="width: 100%; height: 100%; cursor: pointer"
  335. @click="previewImg(pptImgUrl1)"
  336. ></el-image>
  337. </div>
  338. </div>
  339. <div
  340. class="pButton"
  341. style="
  342. position: absolute;
  343. right: 20px;
  344. top: 0;
  345. background: #205cc6;
  346. z-index: 998;
  347. opacity: 0.8;
  348. "
  349. v-if="!contentDialog"
  350. @click="setContent(true)"
  351. >
  352. <!-- 批 -->
  353. <img
  354. src="../../assets/mlBtn.png"
  355. style="width: 25px"
  356. alt=""
  357. />
  358. </div>
  359. <div
  360. v-if="contentDialog == true"
  361. :style="{
  362. width:
  363. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  364. showType === ''
  365. ? 'calc(100%)'
  366. : '300px',
  367. margin:
  368. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  369. showType === ''
  370. ? '0 15px'
  371. : '0 15px 0 0',
  372. }"
  373. >
  374. <div
  375. class="vedioList"
  376. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  377. style="height: 650px"
  378. >
  379. <div class="navCorOpenBox">
  380. <div class="navTitile">内容列表:</div>
  381. <div class="navCorOpen" @click="setContent(false)">
  382. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  383. </div>
  384. </div>
  385. <div class="navBox">
  386. <div
  387. v-show="
  388. vChapterData[0].length > 0 || fileC[0].length > 0
  389. "
  390. style="padding: 10px 0 25px 0"
  391. >
  392. <div
  393. class="vedioTimeBox"
  394. v-for="(vitem, vindex) in vChapterData[0]"
  395. :key="vindex + '1'"
  396. >
  397. <div class="navListItem" v-if="vitem.type == 2">
  398. <div
  399. @click="lookVedio(vitem.url, vindex)"
  400. class="navText"
  401. :class="isClickNav == vindex ? 'isClickNav' : ''"
  402. >
  403. <span v-if="vitem.text">{{ vitem.text }}-</span
  404. >{{ vitem.name }}
  405. </div>
  406. <div class="downIcon" @click="downloadFile2(vitem)">
  407. <img
  408. src="../../assets/icon/newIcon/down.png"
  409. alt
  410. />
  411. </div>
  412. </div>
  413. <div class="navListItem" v-if="vitem.type == 6">
  414. <div
  415. @click="lookText(taskCount, vindex)"
  416. class="navText"
  417. :class="isClickNav == vindex ? 'isClickNav' : ''"
  418. >
  419. {{ vitem.name }}.doc
  420. </div>
  421. <div class="downIcon" @click="downloadFile2(vitem)">
  422. <img
  423. src="../../assets/icon/newIcon/down.png"
  424. alt
  425. />
  426. </div>
  427. </div>
  428. <div class="navListItem" v-if="vitem.type == 8">
  429. <div
  430. @click="doUrl(vitem.url, vindex)"
  431. class="navText"
  432. :class="isClickNav == vindex ? 'isClickNav' : ''"
  433. >
  434. {{ vitem.title ? vitem.title : vitem.url }}
  435. </div>
  436. <div class="downIcon" @click="downloadFile2(vitem)">
  437. <img
  438. src="../../assets/icon/newIcon/down.png"
  439. alt
  440. />
  441. </div>
  442. </div>
  443. <div class="navListItem" v-if="vitem.type == 3">
  444. <div
  445. @click="downFile(vitem, vindex)"
  446. class="navText"
  447. :class="isClickNav == vindex ? 'isClickNav' : ''"
  448. >
  449. <span v-if="vitem.text">{{ vitem.text }}-</span
  450. >{{ vitem.name }}
  451. </div>
  452. <div class="downIcon" @click="downloadFile2(vitem)">
  453. <img
  454. src="../../assets/icon/newIcon/down.png"
  455. alt
  456. />
  457. </div>
  458. </div>
  459. <div class="navListItem" v-if="vitem.type == 12">
  460. <div class="navText" @click="downloadFile2(vitem)">
  461. <span v-if="vitem.text">{{ vitem.text }}-</span
  462. >{{ vitem.name }}
  463. </div>
  464. <div class="downIcon" @click="downloadFile2(vitem)">
  465. <img
  466. src="../../assets/icon/newIcon/down.png"
  467. alt
  468. />
  469. </div>
  470. </div>
  471. <div class="navListItem" v-if="vitem.type == 13">
  472. <div
  473. class="navText"
  474. @click="checkPhoto(vitem, vindex)"
  475. :class="isClickNav == vindex ? 'isClickNav' : ''"
  476. >
  477. {{ vitem.name }}
  478. </div>
  479. <div class="downIcon" @click="downloadFile2(vitem)">
  480. <img
  481. src="../../assets/icon/newIcon/down.png"
  482. alt
  483. />
  484. </div>
  485. </div>
  486. </div>
  487. <div class="fileC_box" v-if="fileC[0].length > 0">
  488. <div class="fileC_title">以下文件不支持预览</div>
  489. <div
  490. class="vedioTimeBox"
  491. v-for="(vitem, vindex) in fileC[0]"
  492. :key="vindex + '1'"
  493. >
  494. <div class="navListItem" v-if="vitem.type == 12">
  495. <div class="navText" style="color: #acb4bf">
  496. <span v-if="vitem.text">{{ vitem.text }}-</span
  497. >{{ vitem.name }}
  498. </div>
  499. <div
  500. class="downIcon"
  501. @click="downloadFile2(vitem)"
  502. >
  503. <img
  504. src="../../assets/icon/newIcon/down.png"
  505. alt
  506. />
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. <div style="width: calc(100% - 315px)">
  517. <div
  518. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  519. v-if="showType == 2 || showType == 3"
  520. >
  521. <el-button
  522. type="primary"
  523. class="newButton"
  524. @click="checkFileFull(showType, pptImgUrl1)"
  525. >全屏查看</el-button
  526. >
  527. <el-button
  528. type="primary"
  529. class="newButton"
  530. @click="downloadFile(pptImgUrl1)"
  531. v-if="showType != 2"
  532. >文件下载</el-button
  533. >
  534. <el-button
  535. v-if="
  536. showType == 2 &&
  537. pptImgUrl1.indexOf(
  538. 'https://view.officeapps.live.com/op/view.aspx?src='
  539. ) == -1
  540. "
  541. type="primary"
  542. class="newButton"
  543. @click="openLine(pptImgUrl1)"
  544. >打开链接
  545. </el-button>
  546. </div>
  547. <div
  548. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  549. v-if="showType == 1"
  550. >
  551. <el-button
  552. type="primary"
  553. class="newButton"
  554. @click="checkFileFull(showType, text)"
  555. >全屏查看</el-button
  556. >
  557. </div>
  558. </div>
  559. </div>
  560. </div>
  561. <div
  562. class="student_body"
  563. v-resize="resize"
  564. :style="{
  565. borderRadius:
  566. vChapterData[0].length == 0 && fileC[0].length == 0
  567. ? '0 0 20px 20px'
  568. : '20px',
  569. }"
  570. v-if="
  571. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  572. .toolChoose[0].tool &&
  573. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  574. .toolChoose[0].tool.length > 0) ||
  575. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  576. .taskDetail != '' ||
  577. courseDetail.userid == userid ||
  578. (courseDetail.course_teacher &&
  579. courseDetail.course_teacher.indexOf(userid) != -1)
  580. "
  581. >
  582. <div
  583. class="taskBox"
  584. v-if="
  585. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  586. .taskDetail != ''
  587. "
  588. :style="
  589. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  590. .toolChoose[0].tool &&
  591. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  592. .toolChoose[0].tool.length &&
  593. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  594. .toolChoose[0].tool.length > 0
  595. ? 'border-bottom: 1px solid #cad1dc'
  596. : ''
  597. "
  598. >
  599. <div
  600. style="
  601. display: flex;
  602. flex-wrap: nowrap;
  603. flex-direction: column;
  604. position: relative;
  605. "
  606. >
  607. <div
  608. style="padding: 15px 0; line-height: 29px; font-size: 18px"
  609. class="cont"
  610. v-if="
  611. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  612. .taskDetail != ''
  613. "
  614. v-html="
  615. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  616. .taskDetail
  617. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  618. taskCount
  619. ].taskDetail
  620. : '暂无描述'
  621. "
  622. ></div>
  623. </div>
  624. </div>
  625. <div
  626. class="vedioBox"
  627. v-if="
  628. courseDetail.userid == userid ||
  629. (courseDetail.course_teacher &&
  630. courseDetail.course_teacher.indexOf(userid) != -1)
  631. "
  632. >
  633. <div
  634. class="queTop"
  635. style="
  636. padding: 15px 0 15px 37px;
  637. font-weight: bold;
  638. font-size: 20px;
  639. color: #0e1e33;
  640. "
  641. >
  642. 工具栏
  643. <el-button
  644. style="margin: 0 30px 0 auto"
  645. type="primary"
  646. size="small"
  647. @click="addToolChoose"
  648. >确定</el-button
  649. >
  650. </div>
  651. <div class="tool_work_box">
  652. <div class="tool_box">
  653. <div class="tool_type_box">
  654. <div class="chooseWho">
  655. <div :class="toolType == 0 ? 'isChooseActive' : ''
  656. " @click="(toolType = 0), $forceUpdate()">
  657. 互动类
  658. </div>
  659. <div
  660. :class="toolType == 1 ? 'isChooseActive' : ''"
  661. @click="(toolType = 1), $forceUpdate()"
  662. >
  663. 思维类
  664. </div>
  665. <!-- <div
  666. :class="toolType == 6 ? 'isChooseActive' : ''"
  667. @click="(toolType = 6), $forceUpdate()"
  668. >
  669. 协作类
  670. </div> -->
  671. <div
  672. :class="toolType == 2 ? 'isChooseActive' : ''"
  673. @click="(toolType = 2), $forceUpdate()"
  674. >
  675. 测评类
  676. </div>
  677. <!-- <div
  678. :class="toolType == 7 ? 'isChooseActive' : ''"
  679. @click="(toolType = 7), $forceUpdate()"
  680. >
  681. 评价类
  682. </div> -->
  683. <div
  684. :class="toolType == 3 ? 'isChooseActive' : ''"
  685. @click="(toolType = 3), $forceUpdate()"
  686. >
  687. 学科类
  688. </div>
  689. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  690. " @click="(toolType = 5), $forceUpdate()">
  691. 学科类
  692. </div>
  693. <div :class="toolType == 4 ? 'isChooseActive' : ''
  694. " @click="(toolType = 4), $forceUpdate()">
  695. 其他
  696. </div> -->
  697. </div>
  698. </div>
  699. <div>
  700. <div class="toolSort" v-if="toolType == 0">
  701. <div class="tool">
  702. <div class="whiteBIcon" @click="addTools2(10)">
  703. <img
  704. src="../../assets/icon/thirdToolList/time.png"
  705. alt
  706. />
  707. <div style="margin: 5px 0">倒计时</div>
  708. </div>
  709. <div class="check" @click="addTools2(10)">
  710. <img
  711. src="../../assets/icon/checkNo.png"
  712. alt
  713. v-if="checktoolArray.indexOf(10) == -1"
  714. />
  715. <div class="checkDiv" v-else>
  716. <img
  717. src="../../assets/icon/checkedIs.png"
  718. alt
  719. /><span>已选择</span>
  720. </div>
  721. </div>
  722. </div>
  723. </div>
  724. <div class="toolSort" v-if="toolType == 1">
  725. <div class="tool">
  726. <div class="whiteBIcon" @click="addTools2(7)">
  727. <img
  728. src="../../assets/icon/secondToolList/mindNetwork.png"
  729. alt
  730. />
  731. <div style="margin: 5px 0">思维网格</div>
  732. </div>
  733. <div class="check" @click="addTools2(7)">
  734. <img
  735. src="../../assets/icon/checkNo.png"
  736. alt
  737. v-if="checktoolArray.indexOf(7) == -1"
  738. />
  739. <div class="checkDiv" v-else>
  740. <img
  741. src="../../assets/icon/checkedIs.png"
  742. alt
  743. /><span>已选择</span>
  744. </div>
  745. </div>
  746. </div>
  747. <div class="tool">
  748. <div class="whiteBIcon" @click="addTools2(1)">
  749. <img
  750. src="../../assets/icon/secondToolList/whiteBoard.png"
  751. alt
  752. />
  753. <div style="margin: 5px 0">电子白板</div>
  754. </div>
  755. <div class="check" @click="addTools2(1)">
  756. <img
  757. src="../../assets/icon/checkNo.png"
  758. alt
  759. v-if="checktoolArray.indexOf(1) == -1"
  760. />
  761. <div class="checkDiv" v-else>
  762. <img
  763. src="../../assets/icon/checkedIs.png"
  764. alt
  765. /><span>已选择</span>
  766. </div>
  767. </div>
  768. </div>
  769. <div class="tool">
  770. <div class="whiteBIcon" @click="addTools2(52)">
  771. <img
  772. src="../../assets/icon/fourthToolList/text.png"
  773. alt
  774. />
  775. <div style="margin: 5px 0">文档</div>
  776. </div>
  777. <div class="check" @click="addTools2(52)">
  778. <img
  779. src="../../assets/icon/checkNo.png"
  780. alt
  781. v-if="checktoolArray.indexOf(52) == -1"
  782. />
  783. <div class="checkDiv" v-else>
  784. <img
  785. src="../../assets/icon/checkedIs.png"
  786. alt
  787. /><span>已选择</span>
  788. </div>
  789. </div>
  790. </div>
  791. <div class="tool">
  792. <div class="whiteBIcon" @click="addTools2(3)">
  793. <img
  794. src="../../assets/icon/secondToolList/mindMapping.png"
  795. alt
  796. />
  797. <div style="margin: 5px 0">思维导图</div>
  798. </div>
  799. <div class="check" @click="addTools2(3)">
  800. <img
  801. src="../../assets/icon/checkNo.png"
  802. alt
  803. v-if="checktoolArray.indexOf(3) == -1"
  804. />
  805. <div class="checkDiv" v-else>
  806. <img
  807. src="../../assets/icon/checkedIs.png"
  808. alt
  809. /><span>已选择</span>
  810. </div>
  811. </div>
  812. </div>
  813. <div class="tool">
  814. <div class="whiteBIcon" @click="addTools2(48)">
  815. <img
  816. src="../../assets/icon/fourthToolList/table.png"
  817. alt
  818. />
  819. <div style="margin: 5px 0">表格</div>
  820. </div>
  821. <div class="check" @click="addTools2(48)">
  822. <img
  823. src="../../assets/icon/checkNo.png"
  824. alt
  825. v-if="checktoolArray.indexOf(48) == -1"
  826. />
  827. <div class="checkDiv" v-else>
  828. <img
  829. src="../../assets/icon/checkedIs.png"
  830. alt
  831. /><span>已选择</span>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. <div class="toolSort" v-if="toolType == 6">
  837. <div class="tool">
  838. <div class="whiteBIcon" @click="addTools2(49)">
  839. <img
  840. src="../../assets/icon/fourthToolList/group.png"
  841. alt
  842. />
  843. <div style="margin: 5px 0">学生分组</div>
  844. </div>
  845. <div class="check" @click="addTools2(49)">
  846. <img
  847. src="../../assets/icon/checkNo.png"
  848. alt
  849. v-if="checktoolArray.indexOf(49) == -1"
  850. />
  851. <div class="checkDiv" v-else>
  852. <img
  853. src="../../assets/icon/checkedIs.png"
  854. alt
  855. /><span>已选择</span>
  856. </div>
  857. </div>
  858. </div>
  859. </div>
  860. <div class="toolSort" v-if="toolType == 2">
  861. <div class="tool">
  862. <div class="whiteBIcon" @click="addTools2(16)">
  863. <img
  864. src="../../assets/icon/thirdToolList/work.png"
  865. alt
  866. />
  867. <div style="margin: 5px 0">作业提交</div>
  868. </div>
  869. <div class="check" @click="addTools2(16)">
  870. <img
  871. src="../../assets/icon/checkNo.png"
  872. alt
  873. v-if="checktoolArray.indexOf(16) == -1"
  874. />
  875. <div class="checkDiv" v-else>
  876. <img
  877. src="../../assets/icon/checkedIs.png"
  878. alt
  879. /><span>已选择</span>
  880. </div>
  881. </div>
  882. </div>
  883. <div class="tool">
  884. <div class="whiteBIcon" @click="addTools2(50)">
  885. <img
  886. src="../../assets/icon/thirdToolList/plwork.png"
  887. alt
  888. />
  889. <div style="margin: 5px 0">批量上传</div>
  890. </div>
  891. <div class="check" @click="addTools2(50)">
  892. <img
  893. src="../../assets/icon/checkNo.png"
  894. alt
  895. v-if="checktoolArray.indexOf(50) == -1"
  896. />
  897. <div class="checkDiv" v-else>
  898. <img
  899. src="../../assets/icon/checkedIs.png"
  900. alt
  901. /><span>已选择</span>
  902. </div>
  903. </div>
  904. </div>
  905. </div>
  906. <div class="toolSort" v-if="toolType == 3">
  907. <div class="tool">
  908. <div class="whiteBIcon" @click="addTools2(18)">
  909. <img
  910. src="../../assets/icon/thirdToolList/trainPlatform.png"
  911. alt
  912. />
  913. <div style="margin: 5px 0">训练平台</div>
  914. </div>
  915. <div class="check" @click="addTools2(18)">
  916. <img
  917. src="../../assets/icon/checkNo.png"
  918. alt
  919. v-if="checktoolArray.indexOf(18) == -1"
  920. />
  921. <div class="checkDiv" v-else>
  922. <img
  923. src="../../assets/icon/checkedIs.png"
  924. alt
  925. /><span>已选择</span>
  926. </div>
  927. </div>
  928. </div>
  929. <div class="tool">
  930. <div class="whiteBIcon" @click="addTools2(21)">
  931. <img
  932. src="../../assets/icon/fourthToolList/program.png"
  933. alt
  934. />
  935. <div style="margin: 5px 0">编程平台</div>
  936. </div>
  937. <div class="check" @click="addTools2(21)">
  938. <img
  939. src="../../assets/icon/checkNo.png"
  940. alt
  941. v-if="checktoolArray.indexOf(21) == -1"
  942. />
  943. <div class="checkDiv" v-else>
  944. <img
  945. src="../../assets/icon/checkedIs.png"
  946. alt
  947. /><span>已选择</span>
  948. </div>
  949. </div>
  950. </div>
  951. <div class="tool">
  952. <div class="whiteBIcon" @click="addTools2(22)">
  953. <img
  954. src="../../assets/icon/fourthToolList/AIprogram2.png"
  955. alt
  956. />
  957. <div style="margin: 5px 0">AI体验</div>
  958. </div>
  959. <div class="check" @click="addTools2(22)">
  960. <img
  961. src="../../assets/icon/checkNo.png"
  962. alt
  963. v-if="checktoolArray.indexOf(22) == -1"
  964. />
  965. <div class="checkDiv" v-else>
  966. <img
  967. src="../../assets/icon/checkedIs.png"
  968. alt
  969. /><span>已选择</span>
  970. </div>
  971. </div>
  972. </div>
  973. <div class="tool">
  974. <div class="whiteBIcon" @click="addTools2(23)">
  975. <img
  976. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  977. alt
  978. />
  979. <div style="margin: 5px 0">Python</div>
  980. </div>
  981. <div class="check" @click="addTools2(23)">
  982. <img
  983. src="../../assets/icon/checkNo.png"
  984. alt
  985. v-if="checktoolArray.indexOf(23) == -1"
  986. />
  987. <div class="checkDiv" v-else>
  988. <img
  989. src="../../assets/icon/checkedIs.png"
  990. alt
  991. /><span>已选择</span>
  992. </div>
  993. </div>
  994. </div>
  995. <div class="tool">
  996. <div class="whiteBIcon" @click="addTools2(24)">
  997. <img
  998. src="../../assets/icon/fourthToolList/AIprogram.png"
  999. alt
  1000. />
  1001. <div style="margin: 5px 0">AI平台</div>
  1002. </div>
  1003. <div class="check" @click="addTools2(24)">
  1004. <img
  1005. src="../../assets/icon/checkNo.png"
  1006. alt
  1007. v-if="checktoolArray.indexOf(24) == -1"
  1008. />
  1009. <div class="checkDiv" v-else>
  1010. <img
  1011. src="../../assets/icon/checkedIs.png"
  1012. alt
  1013. /><span>已选择</span>
  1014. </div>
  1015. </div>
  1016. </div>
  1017. <div class="tool">
  1018. <div class="whiteBIcon" @click="addTools2(32)">
  1019. <img
  1020. src="../../assets/icon/thirdToolList/code.png"
  1021. alt
  1022. />
  1023. <div style="margin: 5px 0">源码编辑</div>
  1024. </div>
  1025. <div class="check" @click="addTools2(32)">
  1026. <img
  1027. src="../../assets/icon/checkNo.png"
  1028. alt
  1029. v-if="checktoolArray.indexOf(32) == -1"
  1030. />
  1031. <div class="checkDiv" v-else>
  1032. <img
  1033. src="../../assets/icon/checkedIs.png"
  1034. alt
  1035. /><span>已选择</span>
  1036. </div>
  1037. </div>
  1038. </div>
  1039. <div class="tool">
  1040. <div class="whiteBIcon" @click="addTools2(57)">
  1041. <img
  1042. src="../../assets/icon/fourthToolList/cocopi.png"
  1043. alt
  1044. />
  1045. <div style="margin: 5px 0">CocoPi</div>
  1046. </div>
  1047. <div class="check" @click="addTools2(57)">
  1048. <img
  1049. src="../../assets/icon/checkNo.png"
  1050. alt
  1051. v-if="checktoolArray.indexOf(57) == -1"
  1052. />
  1053. <div class="checkDiv" v-else>
  1054. <img
  1055. src="../../assets/icon/checkedIs.png"
  1056. alt
  1057. /><span>已选择</span>
  1058. </div>
  1059. </div>
  1060. </div>
  1061. <div class="tool">
  1062. <div class="whiteBIcon" @click="addTools2(63)">
  1063. <img
  1064. src="../../assets/icon/fourthToolList/Wood.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">海龟编程</div>
  1068. </div>
  1069. <div class="check" @click="addTools2(63)">
  1070. <img
  1071. src="../../assets/icon/checkNo.png"
  1072. alt
  1073. v-if="checktoolArray.indexOf(63) == -1"
  1074. />
  1075. <div class="checkDiv" v-else>
  1076. <img
  1077. src="../../assets/icon/checkedIs.png"
  1078. alt
  1079. /><span>已选择</span>
  1080. </div>
  1081. </div>
  1082. </div>
  1083. </div>
  1084. <div class="toolSort" v-if="toolType == 7">
  1085. <div class="tool">
  1086. <div class="whiteBIcon" @click="addTools2(40)">
  1087. <img
  1088. src="../../assets/icon/secondToolList/eval.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">个人评价</div>
  1092. </div>
  1093. <div class="check" @click="addTools2(40)">
  1094. <img
  1095. src="../../assets/icon/checkNo.png"
  1096. alt
  1097. v-if="checktoolArray.indexOf(40) == -1"
  1098. />
  1099. <div class="checkDiv" v-else>
  1100. <img
  1101. src="../../assets/icon/checkedIs.png"
  1102. alt
  1103. /><span>已选择</span>
  1104. </div>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. <div class="toolSort" v-if="toolType == 5">
  1109. <div class="tool">
  1110. <div class="whiteBIcon" @click="addTools2(28)">
  1111. <img
  1112. src="../../assets/icon/secondToolList/translation.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">翻译</div>
  1116. </div>
  1117. <div class="check" @click="addTools2(28)">
  1118. <img
  1119. src="../../assets/icon/checkNo.png"
  1120. alt
  1121. v-if="checktoolArray.indexOf(28) == -1"
  1122. />
  1123. <div class="checkDiv" v-else>
  1124. <img
  1125. src="../../assets/icon/checkedIs.png"
  1126. alt
  1127. /><span>已选择</span>
  1128. </div>
  1129. </div>
  1130. </div>
  1131. <div class="tool">
  1132. <div class="whiteBIcon" @click="addTools2(37)">
  1133. <img
  1134. src="../../assets/icon/secondToolList/mohe.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">魔盒识字</div>
  1138. </div>
  1139. <div class="check" @click="addTools2(37)">
  1140. <img
  1141. src="../../assets/icon/checkNo.png"
  1142. alt
  1143. v-if="checktoolArray.indexOf(37) == -1"
  1144. />
  1145. <div class="checkDiv" v-else>
  1146. <img
  1147. src="../../assets/icon/checkedIs.png"
  1148. alt
  1149. /><span>已选择</span>
  1150. </div>
  1151. </div>
  1152. </div>
  1153. <div class="tool">
  1154. <div class="whiteBIcon" @click="addTools2(38)">
  1155. <img
  1156. src="../../assets/icon/secondToolList/24game.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">24点</div>
  1160. </div>
  1161. <div class="check" @click="addTools2(38)">
  1162. <img
  1163. src="../../assets/icon/checkNo.png"
  1164. alt
  1165. v-if="checktoolArray.indexOf(38) == -1"
  1166. />
  1167. <div class="checkDiv" v-else>
  1168. <img
  1169. src="../../assets/icon/checkedIs.png"
  1170. alt
  1171. /><span>已选择</span>
  1172. </div>
  1173. </div>
  1174. </div>
  1175. <div class="tool">
  1176. <div class="whiteBIcon" @click="addTools2(31)">
  1177. <img
  1178. src="../../assets/icon/secondToolList/networkPanel.png"
  1179. alt
  1180. />
  1181. <div style="margin: 5px 0">数学画板</div>
  1182. </div>
  1183. <div class="check" @click="addTools2(31)">
  1184. <img
  1185. src="../../assets/icon/checkNo.png"
  1186. alt
  1187. v-if="checktoolArray.indexOf(31) == -1"
  1188. />
  1189. <div class="checkDiv" v-else>
  1190. <img
  1191. src="../../assets/icon/checkedIs.png"
  1192. alt
  1193. /><span>已选择</span>
  1194. </div>
  1195. </div>
  1196. </div>
  1197. <div class="tool">
  1198. <div class="whiteBIcon" @click="addTools2(39)">
  1199. <img
  1200. src="../../assets/icon/secondToolList/GeoGebra.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">GeoGebra</div>
  1204. </div>
  1205. <div class="check" @click="addTools2(39)">
  1206. <img
  1207. src="../../assets/icon/checkNo.png"
  1208. alt
  1209. v-if="checktoolArray.indexOf(39) == -1"
  1210. />
  1211. <div class="checkDiv" v-else>
  1212. <img
  1213. src="../../assets/icon/checkedIs.png"
  1214. alt
  1215. /><span>已选择</span>
  1216. </div>
  1217. </div>
  1218. </div>
  1219. <div class="tool">
  1220. <div class="whiteBIcon" @click="addTools2(58)">
  1221. <img
  1222. src="../../assets/icon/fourthToolList/car.png"
  1223. alt
  1224. />
  1225. <div style="margin: 5px 0">模拟驾驶</div>
  1226. </div>
  1227. <div class="check" @click="addTools2(58)">
  1228. <img
  1229. src="../../assets/icon/checkNo.png"
  1230. alt
  1231. v-if="checktoolArray.indexOf(58) == -1"
  1232. />
  1233. <div class="checkDiv" v-else>
  1234. <img
  1235. src="../../assets/icon/checkedIs.png"
  1236. alt
  1237. /><span>已选择</span>
  1238. </div>
  1239. </div>
  1240. </div>
  1241. <div class="tool">
  1242. <div class="whiteBIcon" @click="addTools2(59)">
  1243. <img
  1244. src="../../assets/icon/fourthToolList/lineSearch.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">路径搜索</div>
  1248. </div>
  1249. <div class="check" @click="addTools2(59)">
  1250. <img
  1251. src="../../assets/icon/checkNo.png"
  1252. alt
  1253. v-if="checktoolArray.indexOf(59) == -1"
  1254. />
  1255. <div class="checkDiv" v-else>
  1256. <img
  1257. src="../../assets/icon/checkedIs.png"
  1258. alt
  1259. /><span>已选择</span>
  1260. </div>
  1261. </div>
  1262. </div>
  1263. <div class="tool">
  1264. <div class="whiteBIcon" @click="addTools2(60)">
  1265. <img
  1266. src="../../assets/icon/fourthToolList/deepLearning.png"
  1267. alt
  1268. />
  1269. <div style="margin: 5px 0">深度学习</div>
  1270. </div>
  1271. <div class="check" @click="addTools2(60)">
  1272. <img
  1273. src="../../assets/icon/checkNo.png"
  1274. alt
  1275. v-if="checktoolArray.indexOf(60) == -1"
  1276. />
  1277. <div class="checkDiv" v-else>
  1278. <img
  1279. src="../../assets/icon/checkedIs.png"
  1280. alt
  1281. /><span>已选择</span>
  1282. </div>
  1283. </div>
  1284. </div>
  1285. <div class="tool">
  1286. <div class="whiteBIcon" @click="addTools2(61)">
  1287. <img
  1288. src="../../assets/icon/fourthToolList/allHistory.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">全历史</div>
  1292. </div>
  1293. <div class="check" @click="addTools2(61)">
  1294. <img
  1295. src="../../assets/icon/checkNo.png"
  1296. alt
  1297. v-if="checktoolArray.indexOf(61) == -1"
  1298. />
  1299. <div class="checkDiv" v-else>
  1300. <img
  1301. src="../../assets/icon/checkedIs.png"
  1302. alt
  1303. /><span>已选择</span>
  1304. </div>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. <div class="toolSort" v-if="toolType == 4">
  1309. <div class="tool">
  1310. <div class="whiteBIcon" @click="addTools2(26)">
  1311. <img
  1312. src="../../assets/icon/thirdToolList/courseDesign.png"
  1313. alt
  1314. />
  1315. <div style="margin: 5px 0">课程设计</div>
  1316. </div>
  1317. <div class="check" @click="addTools2(26)">
  1318. <img
  1319. src="../../assets/icon/checkNo.png"
  1320. alt
  1321. v-if="checktoolArray.indexOf(26) == -1"
  1322. />
  1323. <div class="checkDiv" v-else>
  1324. <img
  1325. src="../../assets/icon/checkedIs.png"
  1326. alt
  1327. /><span>已选择</span>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. <div class="tool">
  1332. <div class="whiteBIcon" @click="addTools2(25)">
  1333. <img
  1334. src="../../assets/icon/thirdToolList/evalua.png"
  1335. alt
  1336. />
  1337. <div style="margin: 5px 0">目标管理</div>
  1338. </div>
  1339. <div class="check" @click="addTools2(25)">
  1340. <img
  1341. src="../../assets/icon/checkNo.png"
  1342. alt
  1343. v-if="checktoolArray.indexOf(25) == -1"
  1344. />
  1345. <div class="checkDiv" v-else>
  1346. <img
  1347. src="../../assets/icon/checkedIs.png"
  1348. alt
  1349. /><span>已选择</span>
  1350. </div>
  1351. </div>
  1352. </div>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. </div>
  1358. <div
  1359. class="vedioBox"
  1360. v-if="
  1361. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1362. .toolChoose[0].tool &&
  1363. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1364. .toolChoose[0].tool.length &&
  1365. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1366. .toolChoose[0].tool.length > 0
  1367. "
  1368. >
  1369. <div
  1370. class="queTop"
  1371. style="
  1372. font-size: 20px;
  1373. padding: 15px 0 15px 37px;
  1374. font-weight: bold;
  1375. "
  1376. >
  1377. 工作区
  1378. </div>
  1379. <div class="toolHeng2" style="position: relative">
  1380. <div
  1381. class="filebox"
  1382. style="flex-wrap: nowrap; margin: 0 37px"
  1383. v-if="
  1384. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1385. .toolChoose.length
  1386. "
  1387. >
  1388. <div class="choiceBox">
  1389. <div class="bzChild" style="margin-right: 20px">
  1390. <span>步骤选择:</span>
  1391. </div>
  1392. <div class="bzTypeBox">
  1393. <div
  1394. class="bzChild"
  1395. v-for="(bz, bzIndex) in chapInfoList[courseType]
  1396. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1397. :key="bzIndex"
  1398. :class="{ active: toolIndex == bzIndex }"
  1399. @click="checkBz(bzIndex)"
  1400. >
  1401. <span>步骤{{ bzIndex + 1 }}</span>
  1402. </div>
  1403. </div>
  1404. </div>
  1405. <div class="bzBox">
  1406. <div class="yCss"></div>
  1407. <div>步骤{{ toolIndex + 1 }}</div>
  1408. <div
  1409. style="margin: 0 72px 0 auto"
  1410. v-if="courseDetail.userid == userid"
  1411. >
  1412. <el-button
  1413. type="primary"
  1414. size="mini"
  1415. @click="updateToolDetail"
  1416. >{{
  1417. !isUpdateToolDetail ? "编辑" : "确认修改"
  1418. }}</el-button
  1419. >
  1420. </div>
  1421. </div>
  1422. <div class="toolBox">
  1423. <div class="toolBoxSteps" @click="nextToolindex('last')">
  1424. <img src="../../assets/icon/leftIcon.png" />
  1425. </div>
  1426. <div class="toolBoxSteps" @click="nextToolindex('next')">
  1427. <img src="../../assets/icon/rightIcon.png" />
  1428. </div>
  1429. <div>
  1430. <div class="noiframeBox">
  1431. <div
  1432. class="addPoint"
  1433. v-for="(tooC, toolCIndex) in tool.tool"
  1434. :key="toolCIndex"
  1435. >
  1436. <div v-show="tooC == 1">
  1437. <img
  1438. src="../../assets/icon/secondToolList/whiteBoard.png"
  1439. alt
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. />
  1442. <div style="margin: 5px 0">电子白板</div>
  1443. </div>
  1444. <div v-show="tooC == 3">
  1445. <img
  1446. src="../../assets/icon/secondToolList/mindMapping.png"
  1447. alt
  1448. @click="addTools(tooC, toolIndex, taskCount)"
  1449. />
  1450. <div style="margin: 5px 0">思维导图</div>
  1451. </div>
  1452. <div v-show="tooC == 6">
  1453. <img
  1454. src="../../assets/icon/secondToolList/doc.png"
  1455. alt
  1456. @click="addTools(tooC, toolIndex, taskCount)"
  1457. />
  1458. <div style="margin: 5px 0">协同文档</div>
  1459. </div>
  1460. <div v-show="tooC == 7">
  1461. <img
  1462. src="../../assets/icon/secondToolList/mindNetwork.png"
  1463. alt
  1464. @click="addTools(tooC, toolIndex, taskCount)"
  1465. />
  1466. <div style="margin: 5px 0">思维网格</div>
  1467. </div>
  1468. <div v-show="tooC == 8">
  1469. <img
  1470. src="../../assets/icon/secondToolList/library.png"
  1471. alt
  1472. @click="addTools(tooC, toolIndex, taskCount)"
  1473. />
  1474. <div style="margin: 5px 0">素材库</div>
  1475. </div>
  1476. <div v-show="tooC == 17">
  1477. <img
  1478. src="../../assets/icon/secondToolList/library.png"
  1479. alt
  1480. @click="addTools(tooC, toolIndex, taskCount)"
  1481. />
  1482. <div style="margin: 5px 0">学习资料</div>
  1483. </div>
  1484. <div v-show="tooC == 2">
  1485. <img
  1486. @click="addTools(tooC, toolIndex, taskCount)"
  1487. src="../../assets/icon/secondToolList/note.png"
  1488. alt
  1489. />
  1490. <div style="margin: 5px 0">便签</div>
  1491. </div>
  1492. <div v-show="tooC == 4">
  1493. <img
  1494. @click="addTools(tooC, toolIndex, taskCount)"
  1495. src="../../assets/icon/thirdToolList/ask.png"
  1496. alt
  1497. />
  1498. <div style="margin: 5px 0">问卷调查</div>
  1499. </div>
  1500. <div v-show="tooC == 45">
  1501. <img
  1502. @click="addTools(tooC, toolIndex, taskCount)"
  1503. src="../../assets/icon/thirdToolList/choose.png"
  1504. alt
  1505. />
  1506. <div style="margin: 5px 0">选择题</div>
  1507. </div>
  1508. <!-- <div v-show="tooC == 5">
  1509. <img
  1510. @click="addTools(tooC, toolIndex, taskCount)"
  1511. src="../../assets/icon/thirdToolList/score.png"
  1512. alt
  1513. />
  1514. <div style="margin: 5px 0">量规评分</div>
  1515. </div> -->
  1516. <div v-show="tooC == 10">
  1517. <img
  1518. @click="addTools(tooC, toolIndex, taskCount)"
  1519. src="../../assets/icon/thirdToolList/time.png"
  1520. alt
  1521. />
  1522. <div style="margin: 5px 0">倒计时</div>
  1523. </div>
  1524. <div v-show="tooC == 15">
  1525. <img
  1526. @click="addTools(tooC, toolIndex, taskCount)"
  1527. src="../../assets/icon/thirdToolList/answer.png"
  1528. alt
  1529. />
  1530. <div style="margin: 5px 0">问答工具</div>
  1531. </div>
  1532. <div v-show="tooC == 26">
  1533. <img
  1534. @click="addTools(tooC, toolIndex, taskCount)"
  1535. src="../../assets/icon/thirdToolList/courseDesign.png"
  1536. alt
  1537. />
  1538. <div style="margin: 5px 0">课程设计</div>
  1539. </div>
  1540. <div v-show="tooC == 18">
  1541. <img
  1542. @click="addTools(tooC, toolIndex, taskCount)"
  1543. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1544. alt
  1545. />
  1546. <div style="margin: 5px 0">训练服务器</div>
  1547. </div>
  1548. <div v-show="tooC == 16">
  1549. <img
  1550. @click="addTools(tooC, toolIndex, taskCount)"
  1551. src="../../assets/icon/thirdToolList/work.png"
  1552. alt
  1553. />
  1554. <div style="margin: 5px 0">作业提交</div>
  1555. </div>
  1556. <div v-show="tooC == 50">
  1557. <img
  1558. @click="addTools(tooC, toolIndex, taskCount)"
  1559. src="../../assets/icon/thirdToolList/plwork.png"
  1560. alt
  1561. />
  1562. <div style="margin: 5px 0">批量上传</div>
  1563. </div>
  1564. <div v-show="tooC == 21">
  1565. <img
  1566. @click="addTools(tooC, toolIndex, taskCount)"
  1567. src="../../assets/icon/fourthToolList/program.png"
  1568. alt
  1569. />
  1570. <div style="margin: 5px 0">编程平台</div>
  1571. </div>
  1572. <div v-show="tooC == 22">
  1573. <img
  1574. @click="addTools(tooC, toolIndex, taskCount)"
  1575. src="../../assets/icon/fourthToolList/program.png"
  1576. alt
  1577. />
  1578. <div style="margin: 5px 0">AI体验</div>
  1579. </div>
  1580. <div v-show="tooC == 23">
  1581. <img
  1582. @click="addTools(tooC, toolIndex, taskCount)"
  1583. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1584. alt
  1585. />
  1586. <div style="margin: 5px 0">Python</div>
  1587. </div>
  1588. <div v-show="tooC == 24">
  1589. <img
  1590. @click="addTools(tooC, toolIndex, taskCount)"
  1591. src="../../assets/icon/fourthToolList/AIprogram.png"
  1592. alt
  1593. />
  1594. <div style="margin: 5px 0">AI平台</div>
  1595. </div>
  1596. <div v-show="tooC == 25">
  1597. <img
  1598. @click="addTools(tooC, toolIndex, taskCount)"
  1599. src="../../assets/icon/thirdToolList/evalua.png"
  1600. alt
  1601. />
  1602. <div style="margin: 5px 0">目标管理</div>
  1603. </div>
  1604. <div v-show="tooC == 31">
  1605. <img
  1606. @click="addTools(tooC, toolIndex, taskCount)"
  1607. src="../../assets/icon/secondToolList/networkPanel.png"
  1608. alt
  1609. />
  1610. <div style="margin: 5px 0">数学画板</div>
  1611. </div>
  1612. <div v-show="tooC == 28">
  1613. <img
  1614. @click="addTools(tooC, toolIndex, taskCount)"
  1615. src="../../assets/icon/secondToolList/translation.png"
  1616. alt
  1617. />
  1618. <div style="margin: 5px 0">翻译</div>
  1619. </div>
  1620. <div v-show="tooC == 37">
  1621. <img
  1622. @click="addTools(tooC, toolIndex, taskCount)"
  1623. src="../../assets/icon/secondToolList/mohe.png"
  1624. alt
  1625. />
  1626. <div style="margin: 5px 0">魔盒识字</div>
  1627. </div>
  1628. <div v-show="tooC == 38">
  1629. <img
  1630. @click="addTools(tooC, toolIndex, taskCount)"
  1631. src="../../assets/icon/secondToolList/24game.png"
  1632. alt
  1633. />
  1634. <div style="margin: 5px 0">24点</div>
  1635. </div>
  1636. <div v-show="tooC == 39">
  1637. <img
  1638. @click="addTools(tooC, toolIndex, taskCount)"
  1639. src="../../assets/icon/secondToolList/GeoGebra.png"
  1640. alt
  1641. />
  1642. <div style="margin: 5px 0">GeoGebra</div>
  1643. </div>
  1644. <div v-show="tooC == 32">
  1645. <img
  1646. @click="addTools(tooC, toolIndex, taskCount)"
  1647. src="../../assets/icon/thirdToolList/code.png"
  1648. alt
  1649. />
  1650. <div style="margin: 5px 0">源码编辑</div>
  1651. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1652. style="position: absolute;left: 110px;bottom: 30px;">
  1653. 上传文件
  1654. <input type="file" accept="*" style="display: none"
  1655. @change="beforeUpload1($event, 7, toolIndex)" />
  1656. </div> -->
  1657. </div>
  1658. <!-- <div v-show="tooC == 40">
  1659. <img @click="addTools(tooC, toolIndex, taskCount)"
  1660. src="../../assets/icon/secondToolList/eval.png" alt />
  1661. <div style="margin: 5px 0">个人评价</div>
  1662. </div> -->
  1663. <div v-show="tooC == 41">
  1664. <img
  1665. @click="addTools(tooC, toolIndex, taskCount)"
  1666. src="../../assets/icon/thirdToolList/select.png"
  1667. alt
  1668. />
  1669. <div style="margin: 5px 0">选择填空</div>
  1670. </div>
  1671. <div v-show="tooC == 44">
  1672. <img
  1673. @click="addTools(tooC, toolIndex, taskCount)"
  1674. src="../../assets/icon/thirdToolList/hanClass.png"
  1675. alt
  1676. />
  1677. <div style="margin: 5px 0">汉字宫</div>
  1678. </div>
  1679. <div v-show="tooC == 47">
  1680. <img
  1681. @click="addTools(tooC, toolIndex, taskCount)"
  1682. src="../../assets/icon/fourthToolList/conSentences.png"
  1683. alt
  1684. />
  1685. <div style="margin: 5px 0">连词成句</div>
  1686. </div>
  1687. <div v-show="tooC == 48">
  1688. <img
  1689. @click="addTools(tooC, toolIndex, taskCount)"
  1690. src="../../assets/icon/fourthToolList/table.png"
  1691. alt
  1692. />
  1693. <div style="margin: 5px 0">表格</div>
  1694. </div>
  1695. <div v-show="tooC == 52">
  1696. <img
  1697. @click="addTools(tooC, toolIndex, taskCount)"
  1698. src="../../assets/icon/fourthToolList/text.png"
  1699. alt
  1700. />
  1701. <div style="margin: 5px 0">文档</div>
  1702. </div>
  1703. <!-- <div v-show="tooC == 49">
  1704. <img @click="addTools(tooC, toolIndex, taskCount)"
  1705. src="../../assets/icon/fourthToolList/group.png" alt />
  1706. <div style="margin: 5px 0">学生分组</div>
  1707. </div> -->
  1708. <div v-show="tooC == 57">
  1709. <img
  1710. @click="addTools(tooC, toolIndex, taskCount)"
  1711. src="../../assets/icon/fourthToolList/cocopi.png"
  1712. alt
  1713. />
  1714. <div style="margin: 5px 0">CocoPi</div>
  1715. </div>
  1716. <div v-show="tooC == 58">
  1717. <img
  1718. @click="addTools(tooC, toolIndex, taskCount)"
  1719. src="../../assets/icon/fourthToolList/car.png"
  1720. alt
  1721. />
  1722. <div style="margin: 5px 0">模拟驾驶</div>
  1723. </div>
  1724. <div v-show="tooC == 59">
  1725. <img
  1726. @click="addTools(tooC, toolIndex, taskCount)"
  1727. src="../../assets/icon/fourthToolList/lineSearch.png"
  1728. alt
  1729. />
  1730. <div style="margin: 5px 0">路径搜索</div>
  1731. </div>
  1732. <div v-show="tooC == 60">
  1733. <img
  1734. @click="addTools(tooC, toolIndex, taskCount)"
  1735. src="../../assets/icon/fourthToolList/deepLearning.png"
  1736. alt
  1737. />
  1738. <div style="margin: 5px 0">深度学习</div>
  1739. </div>
  1740. <div v-show="tooC == 61">
  1741. <img
  1742. @click="addTools(tooC, toolIndex, taskCount)"
  1743. src="../../assets/icon/fourthToolList/allHistory.png"
  1744. alt
  1745. />
  1746. <div style="margin: 5px 0">全历史</div>
  1747. </div>
  1748. <div v-show="tooC == 62">
  1749. <img
  1750. @click="addTools(tooC, toolIndex, taskCount)"
  1751. src="../../assets/icon/fourthToolList/interVideo.png"
  1752. alt
  1753. />
  1754. <div style="margin: 5px 0">交互视频</div>
  1755. </div>
  1756. <div v-show="tooC == 63">
  1757. <img
  1758. @click="addTools(tooC, toolIndex, taskCount)"
  1759. src="../../assets/icon/fourthToolList/Wood.png"
  1760. alt
  1761. />
  1762. <div style="margin: 5px 0">海龟编程</div>
  1763. </div>
  1764. </div>
  1765. </div>
  1766. </div>
  1767. <div class="tooldetail">
  1768. <!-- <div class="toolTitle">工具描述</div> -->
  1769. <div
  1770. style="height: 100%"
  1771. v-html="
  1772. contentConvent(
  1773. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1774. )
  1775. "
  1776. v-if="!isUpdateToolDetail"
  1777. @click="updateToolDetail"
  1778. ></div>
  1779. <div v-else>
  1780. <el-input
  1781. type="textarea"
  1782. :rows="3"
  1783. resize="none"
  1784. v-model="updateToolDetailInner"
  1785. placeholder="请输入任务描述"
  1786. ></el-input>
  1787. </div>
  1788. </div>
  1789. <el-button
  1790. type="primary"
  1791. v-if="tool.tool[0] == 32"
  1792. style="
  1793. position: absolute;
  1794. right: 30px;
  1795. transform: translateY(-130%);
  1796. "
  1797. @click="addImg($event)"
  1798. >上传作业<input
  1799. type="file"
  1800. accept="*"
  1801. style="display: none"
  1802. @change="beforeUpload1($event, 7, toolIndex)"
  1803. /></el-button>
  1804. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1805. position: absolute;
  1806. right: 30px;
  1807. transform: translateY(-130%);
  1808. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1809. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1810. </div>
  1811. </div>
  1812. </div>
  1813. </div>
  1814. <div
  1815. class="vedioBox"
  1816. v-if="
  1817. arrayToArray(tool.tool, isWorkTool).length &&
  1818. worksTeacher.length &&
  1819. worksTeacher[toolIndex].length &&
  1820. false
  1821. "
  1822. >
  1823. <div
  1824. class="queTop"
  1825. style="
  1826. font-size: 20px;
  1827. padding: 15px 0 15px 37px;
  1828. font-weight: bold;
  1829. "
  1830. >
  1831. 教师工作区
  1832. </div>
  1833. <div class="tool_work_box">
  1834. <div
  1835. v-if="
  1836. tType &&
  1837. ((tType == 2 && sIsOpen == true) ||
  1838. tType == 1 ||
  1839. tType == 4) &&
  1840. tool.tool.indexOf(16) != -1
  1841. "
  1842. class="worksBox"
  1843. >
  1844. <div
  1845. class="zuoyeYulan"
  1846. v-if="
  1847. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1848. "
  1849. >
  1850. <div class="worksTop">
  1851. <div>作业预览</div>
  1852. </div>
  1853. </div>
  1854. <div
  1855. class="worksDetailBox"
  1856. v-if="
  1857. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1858. "
  1859. >
  1860. <div
  1861. class="works"
  1862. style="
  1863. width: 200px;
  1864. height: 140px;
  1865. margin: 10px 10px 10px 0;
  1866. border-radius: 15px;
  1867. box-shadow: 0 0 6px 1px #dfdada;
  1868. "
  1869. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1870. :key="wIndex"
  1871. :class="w.type == 1 ? 'isTypeOne' : ''"
  1872. >
  1873. <div class="workImg" v-if="w.type == 0">
  1874. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1875. <img :src="w.works" @click="previewImg(w.works)" alt />
  1876. <div
  1877. class="answerScore"
  1878. v-if="w.score"
  1879. @click.stop="openScore(w)"
  1880. :class="{
  1881. rightW:
  1882. w.userid == userid ||
  1883. tType == 1 ||
  1884. tType == 4 ||
  1885. w.ateacher == userid,
  1886. }"
  1887. >
  1888. {{ JSON.parse(w.score).wScore }}分
  1889. </div>
  1890. <div
  1891. class="answerScore"
  1892. @click.stop="openScore(w)"
  1893. v-else-if="courseDetail.userid == userid"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid ||
  1897. tType == 1 ||
  1898. tType == 4 ||
  1899. w.ateacher == userid,
  1900. }"
  1901. >
  1902. 评分
  1903. </div>
  1904. <img
  1905. class="deleteImg"
  1906. src="../../assets/deleteworks.png"
  1907. v-if="w.userid == userid || tType == 1 || tType == 4"
  1908. @click.stop="deleteWorks(w.wid)"
  1909. alt
  1910. />
  1911. </div>
  1912. <div class="workImg" v-if="w.type == 1">
  1913. <img :src="word" @click="openFile(w.works)" alt />
  1914. <!-- @click="openFile(w.works)" -->
  1915. <div
  1916. class="answerScore"
  1917. v-if="w.score"
  1918. @click.stop="openScore(w)"
  1919. :class="{
  1920. rightW:
  1921. w.userid == userid ||
  1922. tType == 1 ||
  1923. tType == 4 ||
  1924. w.ateacher == userid,
  1925. }"
  1926. >
  1927. {{ JSON.parse(w.score).wScore }}分
  1928. </div>
  1929. <div
  1930. class="answerScore"
  1931. @click.stop="openScore(w)"
  1932. v-else-if="courseDetail.userid == userid"
  1933. :class="{
  1934. rightW:
  1935. w.userid == userid ||
  1936. tType == 1 ||
  1937. tType == 4 ||
  1938. w.ateacher == userid,
  1939. }"
  1940. >
  1941. 评分
  1942. </div>
  1943. <img
  1944. class="deleteImg"
  1945. src="../../assets/deleteworks.png"
  1946. v-if="w.userid == userid || tType == 1 || tType == 4"
  1947. @click.stop="deleteWorks(w.wid)"
  1948. alt
  1949. />
  1950. </div>
  1951. <div class="workImg" v-if="w.type == 3">
  1952. <img
  1953. style="cursor: pointer"
  1954. :src="video"
  1955. @click="openVideo(w)"
  1956. alt
  1957. />
  1958. <!-- @click="openVideo(w.works)" -->
  1959. <div
  1960. class="answerScore"
  1961. v-if="w.score"
  1962. @click.stop="openScore(w)"
  1963. :class="{
  1964. rightW:
  1965. w.userid == userid ||
  1966. tType == 1 ||
  1967. tType == 4 ||
  1968. w.ateacher == userid,
  1969. }"
  1970. >
  1971. {{ JSON.parse(w.score).wScore }}分
  1972. </div>
  1973. <div
  1974. class="answerScore"
  1975. @click.stop="openScore(w)"
  1976. v-else-if="courseDetail.userid == userid"
  1977. :class="{
  1978. rightW:
  1979. w.userid == userid ||
  1980. tType == 1 ||
  1981. tType == 4 ||
  1982. w.ateacher == userid,
  1983. }"
  1984. >
  1985. 评分
  1986. </div>
  1987. <img
  1988. class="deleteImg"
  1989. src="../../assets/deleteworks.png"
  1990. v-if="w.userid == userid || tType == 1 || tType == 4"
  1991. @click.stop="deleteWorks(w.wid)"
  1992. alt
  1993. />
  1994. </div>
  1995. <div class="workImg" v-if="w.type == 12">
  1996. <img
  1997. style="cursor: pointer"
  1998. :src="word2"
  1999. @click="downloadFile(w.works)"
  2000. alt
  2001. />
  2002. <!-- @click="openVideo(w.works)" -->
  2003. <div
  2004. class="answerScore"
  2005. v-if="w.score"
  2006. @click.stop="openScore(w)"
  2007. :class="{
  2008. rightW:
  2009. w.userid == userid ||
  2010. tType == 1 ||
  2011. tType == 4 ||
  2012. w.ateacher == userid,
  2013. }"
  2014. >
  2015. {{ JSON.parse(w.score).wScore }}分
  2016. </div>
  2017. <div
  2018. class="answerScore"
  2019. @click.stop="openScore(w)"
  2020. v-else-if="courseDetail.userid == userid"
  2021. :class="{
  2022. rightW:
  2023. w.userid == userid ||
  2024. tType == 1 ||
  2025. tType == 4 ||
  2026. w.ateacher == userid,
  2027. }"
  2028. >
  2029. 评分
  2030. </div>
  2031. <img
  2032. class="deleteImg"
  2033. src="../../assets/deleteworks.png"
  2034. v-if="w.userid == userid || tType == 1 || tType == 4"
  2035. @click.stop="deleteWorks(w.wid)"
  2036. alt
  2037. />
  2038. </div>
  2039. <div class="comment" style="min-width: 200px">
  2040. <div class="worksName">
  2041. <div>{{ w.sName }}</div>
  2042. </div>
  2043. <div class="commentList">
  2044. <div class="commentList">
  2045. <div
  2046. class="commentImg"
  2047. @click="
  2048. isLikes(w.wid, userid, 1, null, w.isLikes)
  2049. "
  2050. >
  2051. <img
  2052. :src="w.isLikes == true ? likes : noLikes"
  2053. alt=""
  2054. />
  2055. </div>
  2056. <div>{{ w.likesCount }}</div>
  2057. </div>
  2058. <div class="commentList" style="margin-right: 15px">
  2059. <div
  2060. class="commentImg"
  2061. @click="commentOther(w, toolIndex, wIndex)"
  2062. >
  2063. <img
  2064. src="../../assets/icon/comment/comment.png"
  2065. alt=""
  2066. />
  2067. </div>
  2068. <div>{{ w.commentCount }}</div>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. </div>
  2073. </div>
  2074. </div>
  2075. <div
  2076. v-if="
  2077. tType &&
  2078. ((tType == 2 && sIsOpen == true) ||
  2079. tType == 1 ||
  2080. tType == 4) &&
  2081. tool.tool.indexOf(32) != -1
  2082. "
  2083. class="worksBox"
  2084. >
  2085. <div
  2086. class="zuoyeYulan"
  2087. v-if="
  2088. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2089. "
  2090. >
  2091. <div class="worksTop">
  2092. <div>作业预览</div>
  2093. </div>
  2094. </div>
  2095. <div
  2096. class="worksDetailBox"
  2097. v-if="
  2098. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2099. "
  2100. >
  2101. <div
  2102. class="works"
  2103. style="
  2104. width: 200px;
  2105. height: 140px;
  2106. margin: 10px 10px 10px 0;
  2107. border-radius: 15px;
  2108. box-shadow: 0 0 6px 1px #dfdada;
  2109. "
  2110. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2111. :key="wIndex"
  2112. :class="w.type == 1 ? 'isTypeOne' : ''"
  2113. >
  2114. <div class="workImg">
  2115. <img :src="word2" @click="downloadFile(w.works)" alt />
  2116. <div
  2117. class="answerScore"
  2118. v-if="w.score"
  2119. @click.stop="openScore(w)"
  2120. :class="{
  2121. rightW:
  2122. w.userid == userid ||
  2123. tType == 1 ||
  2124. tType == 4 ||
  2125. w.ateacher == userid,
  2126. }"
  2127. >
  2128. {{ JSON.parse(w.score).wScore }}分
  2129. </div>
  2130. <div
  2131. class="answerScore"
  2132. @click.stop="openScore(w)"
  2133. v-else-if="courseDetail.userid == userid"
  2134. :class="{
  2135. rightW:
  2136. w.userid == userid ||
  2137. tType == 1 ||
  2138. tType == 4 ||
  2139. w.ateacher == userid,
  2140. }"
  2141. >
  2142. 评分
  2143. </div>
  2144. <img
  2145. class="deleteImg"
  2146. src="../../assets/deleteworks.png"
  2147. v-if="w.userid == userid || tType == 1 || tType == 4"
  2148. @click.stop="deleteWorks(w.wid)"
  2149. alt
  2150. />
  2151. </div>
  2152. <div class="comment" style="min-width: 200px">
  2153. <div class="worksName">
  2154. <div>{{ w.sName }}</div>
  2155. </div>
  2156. <div class="commentList">
  2157. <div class="commentList">
  2158. <div
  2159. class="commentImg"
  2160. @click="
  2161. isLikes(w.wid, userid, 1, null, w.isLikes)
  2162. "
  2163. >
  2164. <img
  2165. :src="w.isLikes == true ? likes : noLikes"
  2166. alt=""
  2167. />
  2168. </div>
  2169. <div>{{ w.likesCount }}</div>
  2170. </div>
  2171. <div class="commentList" style="margin-right: 15px">
  2172. <div
  2173. class="commentImg"
  2174. @click="commentOther(w, toolIndex, wIndex)"
  2175. >
  2176. <img
  2177. src="../../assets/icon/comment/comment.png"
  2178. alt=""
  2179. />
  2180. </div>
  2181. <div>{{ w.commentCount }}</div>
  2182. </div>
  2183. </div>
  2184. </div>
  2185. </div>
  2186. </div>
  2187. </div>
  2188. <div
  2189. v-if="
  2190. tType &&
  2191. ((tType == 2 && sIsOpen == true) ||
  2192. tType == 1 ||
  2193. tType == 4) &&
  2194. tool.tool.indexOf(57) != -1
  2195. "
  2196. class="worksBox"
  2197. >
  2198. <div
  2199. class="zuoyeYulan"
  2200. v-if="
  2201. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2202. "
  2203. >
  2204. <div class="worksTop">
  2205. <div>作业预览</div>
  2206. </div>
  2207. </div>
  2208. <div
  2209. class="worksDetailBox"
  2210. v-if="
  2211. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2212. "
  2213. >
  2214. <div
  2215. class="works"
  2216. style="
  2217. width: 200px;
  2218. height: 140px;
  2219. margin: 10px 10px 10px 0;
  2220. border-radius: 15px;
  2221. box-shadow: 0 0 6px 1px #dfdada;
  2222. "
  2223. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2224. :key="wIndex"
  2225. :class="w.type == 1 ? 'isTypeOne' : ''"
  2226. >
  2227. <div class="workImg">
  2228. <img
  2229. :src="word2"
  2230. @click="downloadFile(w.works)"
  2231. v-if="w.type == 12"
  2232. alt
  2233. />
  2234. <img
  2235. :src="word2"
  2236. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  2237. v-else-if="w.type == 15"
  2238. alt
  2239. />
  2240. <div
  2241. class="answerScore"
  2242. v-if="w.score"
  2243. @click.stop="openScore(w)"
  2244. :class="{
  2245. rightW:
  2246. w.userid == userid ||
  2247. tType == 1 ||
  2248. tType == 4 ||
  2249. w.ateacher == userid,
  2250. }"
  2251. >
  2252. {{ JSON.parse(w.score).wScore }}分
  2253. </div>
  2254. <div
  2255. class="answerScore"
  2256. @click.stop="openScore(w)"
  2257. v-else-if="courseDetail.userid == userid"
  2258. :class="{
  2259. rightW:
  2260. w.userid == userid ||
  2261. tType == 1 ||
  2262. tType == 4 ||
  2263. w.ateacher == userid,
  2264. }"
  2265. >
  2266. 评分
  2267. </div>
  2268. <img
  2269. class="deleteImg"
  2270. src="../../assets/deleteworks.png"
  2271. v-if="w.userid == userid || tType == 1 || tType == 4"
  2272. @click.stop="deleteWorks(w.wid)"
  2273. alt
  2274. />
  2275. </div>
  2276. <div class="comment" style="min-width: 200px">
  2277. <div class="worksName">
  2278. <div>{{ w.sName }}</div>
  2279. </div>
  2280. <div class="commentList">
  2281. <div class="commentList">
  2282. <div
  2283. class="commentImg"
  2284. @click="
  2285. isLikes(w.wid, userid, 1, null, w.isLikes)
  2286. "
  2287. >
  2288. <img
  2289. :src="w.isLikes == true ? likes : noLikes"
  2290. alt=""
  2291. />
  2292. </div>
  2293. <div>{{ w.likesCount }}</div>
  2294. </div>
  2295. <div class="commentList" style="margin-right: 15px">
  2296. <div
  2297. class="commentImg"
  2298. @click="commentOther(w, toolIndex, wIndex)"
  2299. >
  2300. <img
  2301. src="../../assets/icon/comment/comment.png"
  2302. alt=""
  2303. />
  2304. </div>
  2305. <div>{{ w.commentCount }}</div>
  2306. </div>
  2307. </div>
  2308. </div>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2313. <div
  2314. class="zuoyeYulan"
  2315. v-if="
  2316. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2317. "
  2318. >
  2319. <span>作业预览</span>
  2320. </div>
  2321. <div
  2322. class="worksDetailBox"
  2323. v-if="
  2324. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2325. "
  2326. >
  2327. <div
  2328. class="works"
  2329. style="
  2330. width: 200px;
  2331. height: 140px;
  2332. margin: 10px 10px 10px 0;
  2333. border-radius: 15px;
  2334. box-shadow: 0 0 6px 1px #dfdada;
  2335. "
  2336. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2337. :key="wIndex"
  2338. :class="w.type == 1 ? 'isTypeOne' : ''"
  2339. >
  2340. <div class="workImg" v-if="w.type == 0">
  2341. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2342. <img :src="w.works" @click="previewImg(w.works)" alt />
  2343. <div
  2344. class="answerScore"
  2345. v-if="w.score"
  2346. @click.stop="openScore(w)"
  2347. :class="{
  2348. rightW:
  2349. w.userid == userid ||
  2350. tType == 1 ||
  2351. tType == 4 ||
  2352. w.ateacher == userid,
  2353. }"
  2354. >
  2355. {{ JSON.parse(w.score).wScore }}分
  2356. </div>
  2357. <div
  2358. class="answerScore"
  2359. @click.stop="openScore(w)"
  2360. v-else-if="courseDetail.userid == userid"
  2361. :class="{
  2362. rightW:
  2363. w.userid == userid ||
  2364. tType == 1 ||
  2365. tType == 4 ||
  2366. w.ateacher == userid,
  2367. }"
  2368. >
  2369. 评分
  2370. </div>
  2371. <img
  2372. class="deleteImg"
  2373. src="../../assets/deleteworks.png"
  2374. v-if="w.userid == userid || tType == 1 || tType == 4"
  2375. @click.stop="deleteWorks(w.wid)"
  2376. alt
  2377. />
  2378. </div>
  2379. <div
  2380. class="workImg"
  2381. style="cursor: pointer"
  2382. v-if="w.type == 1"
  2383. >
  2384. <img :src="word" @click="openFile(w.works)" alt />
  2385. <!-- @click="openFile(w.works)" -->
  2386. <div
  2387. class="answerScore"
  2388. v-if="w.score"
  2389. @click.stop="openScore(w)"
  2390. :class="{
  2391. rightW:
  2392. w.userid == userid ||
  2393. tType == 1 ||
  2394. tType == 4 ||
  2395. w.ateacher == userid,
  2396. }"
  2397. >
  2398. {{ JSON.parse(w.score).wScore }}分
  2399. </div>
  2400. <div
  2401. class="answerScore"
  2402. @click.stop="openScore(w)"
  2403. v-else-if="courseDetail.userid == userid"
  2404. :class="{
  2405. rightW:
  2406. w.userid == userid ||
  2407. tType == 1 ||
  2408. tType == 4 ||
  2409. w.ateacher == userid,
  2410. }"
  2411. >
  2412. 评分
  2413. </div>
  2414. <img
  2415. class="deleteImg"
  2416. src="../../assets/deleteworks.png"
  2417. v-if="w.userid == userid || tType == 1 || tType == 4"
  2418. @click.stop="deleteWorks(w.wid)"
  2419. alt
  2420. />
  2421. </div>
  2422. <div class="workImg" v-if="w.type == 3">
  2423. <img
  2424. style="cursor: pointer"
  2425. :src="video"
  2426. @click="openVideo(w)"
  2427. alt
  2428. />
  2429. <!-- @click="openVideo(w.works)" -->
  2430. <div
  2431. class="answerScore"
  2432. v-if="w.score"
  2433. @click.stop="openScore(w)"
  2434. :class="{
  2435. rightW:
  2436. w.userid == userid ||
  2437. tType == 1 ||
  2438. tType == 4 ||
  2439. w.ateacher == userid,
  2440. }"
  2441. >
  2442. {{ JSON.parse(w.score).wScore }}分
  2443. </div>
  2444. <div
  2445. class="answerScore"
  2446. @click.stop="openScore(w)"
  2447. v-else-if="courseDetail.userid == userid"
  2448. :class="{
  2449. rightW:
  2450. w.userid == userid ||
  2451. tType == 1 ||
  2452. tType == 4 ||
  2453. w.ateacher == userid,
  2454. }"
  2455. >
  2456. 评分
  2457. </div>
  2458. <img
  2459. class="deleteImg"
  2460. src="../../assets/deleteworks.png"
  2461. v-if="w.userid == userid || tType == 1 || tType == 4"
  2462. @click.stop="deleteWorks(w.wid)"
  2463. alt
  2464. />
  2465. </div>
  2466. <div class="comment" style="min-width: 200px">
  2467. <div class="worksName">
  2468. <div
  2469. style="cursor: pointer"
  2470. @click="
  2471. openSname(w.sName, w.wid, toolIndex, w.userid)
  2472. "
  2473. >
  2474. {{ w.sName }}
  2475. </div>
  2476. </div>
  2477. <div class="commentList">
  2478. <div class="commentList">
  2479. <div
  2480. class="commentImg"
  2481. @click="
  2482. isLikes(w.wid, userid, 1, null, w.isLikes)
  2483. "
  2484. >
  2485. <img
  2486. :src="w.isLikes == true ? likes : noLikes"
  2487. alt=""
  2488. />
  2489. </div>
  2490. <div>{{ w.likesCount }}</div>
  2491. </div>
  2492. <div class="commentList" style="margin-right: 15px">
  2493. <div
  2494. class="commentImg"
  2495. @click="commentOther(w, toolIndex, wIndex)"
  2496. >
  2497. <img
  2498. src="../../assets/icon/comment/comment.png"
  2499. alt=""
  2500. />
  2501. </div>
  2502. <div>{{ w.commentCount }}</div>
  2503. </div>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. </div>
  2509. <div
  2510. v-if="
  2511. tType &&
  2512. ((tType == 2 && sIsOpen == true) ||
  2513. tType == 1 ||
  2514. tType == 4) &&
  2515. tool.tool.indexOf(4) != -1
  2516. "
  2517. class="worksBox"
  2518. >
  2519. <div
  2520. class="zuoyeYulan"
  2521. v-if="
  2522. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2523. "
  2524. >
  2525. <div class="worksTop">
  2526. <div>作业预览</div>
  2527. </div>
  2528. </div>
  2529. <div>
  2530. <div
  2531. class="worksDetailBox"
  2532. v-if="
  2533. worksTeacher.length &&
  2534. worksTeacher[toolIndex].length > 0
  2535. "
  2536. >
  2537. <div
  2538. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2539. :key="wIndex"
  2540. class="isWorksName"
  2541. @click="
  2542. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2543. "
  2544. >
  2545. {{ w.sName }}
  2546. <img
  2547. class="deleteImg deleteImg2"
  2548. src="../../assets/deleteworks.png"
  2549. v-if="w.userid == userid || tType == 1 || tType == 4"
  2550. @click.stop="deleteWorks(w.wid)"
  2551. alt
  2552. />
  2553. </div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div
  2558. v-if="
  2559. tType &&
  2560. ((tType == 2 && sIsOpen == true) ||
  2561. tType == 1 ||
  2562. tType == 4) &&
  2563. tool.tool.indexOf(45) != -1
  2564. "
  2565. class="worksBox"
  2566. >
  2567. <div
  2568. class="zuoyeYulan"
  2569. v-if="
  2570. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2571. "
  2572. >
  2573. <div class="worksTop">
  2574. <div>作业预览</div>
  2575. </div>
  2576. </div>
  2577. <div>
  2578. <div
  2579. class="worksDetailBox"
  2580. v-if="
  2581. worksTeacher.length &&
  2582. worksTeacher[toolIndex].length > 0
  2583. "
  2584. >
  2585. <div
  2586. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2587. :key="wIndex"
  2588. class="isWorksName"
  2589. @click="
  2590. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2591. "
  2592. >
  2593. {{ w.sName }}
  2594. <img
  2595. class="deleteImg deleteImg2"
  2596. src="../../assets/deleteworks.png"
  2597. v-if="w.userid == userid || tType == 1 || tType == 4"
  2598. @click.stop="deleteWorks(w.wid)"
  2599. alt
  2600. />
  2601. </div>
  2602. </div>
  2603. </div>
  2604. </div>
  2605. <div
  2606. v-if="
  2607. tType &&
  2608. ((tType == 2 && sIsOpen == true) ||
  2609. tType == 1 ||
  2610. tType == 4) &&
  2611. tool.tool.indexOf(15) != -1
  2612. "
  2613. class="worksBox"
  2614. >
  2615. <div
  2616. class="zuoyeYulan"
  2617. v-if="
  2618. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2619. "
  2620. >
  2621. <div class="worksTop">
  2622. <div>作业预览</div>
  2623. </div>
  2624. </div>
  2625. <div
  2626. class="worksDetailBox"
  2627. v-if="
  2628. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2629. "
  2630. >
  2631. <div
  2632. class="works"
  2633. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2634. :key="wIndex"
  2635. >
  2636. <div
  2637. class="workImg"
  2638. style="
  2639. border-radius: 15px;
  2640. box-shadow: #eee 0px 0px 5px 5px;
  2641. "
  2642. >
  2643. <!-- <img
  2644. src="../../assets/icon/works/noImg.png"
  2645. @click="openTools(15, toolIndex, taskCount, w.works)"
  2646. alt=""
  2647. />-->
  2648. <div
  2649. class="answerBg"
  2650. style="border-radius: 15px 15px 0 0"
  2651. @click="commentOther(w, toolIndex, wIndex)"
  2652. >
  2653. <!-- <div>{{ w.sName }}</div> -->
  2654. <div class="answerContent">
  2655. {{ JSON.parse(w.works)[0].answer }}
  2656. </div>
  2657. <div
  2658. class="answerScore"
  2659. v-if="w.score"
  2660. @click.stop="openScore(w)"
  2661. :class="{
  2662. rightW:
  2663. w.userid == userid || tType == 1 || tType == 4,
  2664. }"
  2665. >
  2666. {{ JSON.parse(w.score).wScore }}分
  2667. </div>
  2668. <div
  2669. class="answerScore"
  2670. @click.stop="openScore(w)"
  2671. v-else-if="courseDetail.userid == userid"
  2672. :class="{
  2673. rightW:
  2674. w.userid == userid || tType == 1 || tType == 4,
  2675. }"
  2676. >
  2677. 评分
  2678. </div>
  2679. <img
  2680. class="deleteImg"
  2681. src="../../assets/deleteworks.png"
  2682. v-if="
  2683. w.userid == userid || tType == 1 || tType == 4
  2684. "
  2685. @click.stop="deleteWorks(w.wid)"
  2686. alt
  2687. />
  2688. </div>
  2689. <div class="comment">
  2690. <div class="worksName">
  2691. <div>{{ w.sName }}</div>
  2692. </div>
  2693. <div class="commentList">
  2694. <div
  2695. class="commentImg"
  2696. @click="
  2697. isLikes(w.wid, userid, 1, null, w.isLikes)
  2698. "
  2699. >
  2700. <img
  2701. :src="w.isLikes == true ? likes : noLikes"
  2702. alt=""
  2703. />
  2704. </div>
  2705. <div>{{ w.likesCount }}</div>
  2706. </div>
  2707. <div class="commentList" style="margin-right: 15px">
  2708. <div
  2709. class="commentImg"
  2710. @click="commentOther(w, toolIndex, wIndex)"
  2711. >
  2712. <img
  2713. src="../../assets/icon/comment/comment.png"
  2714. alt=""
  2715. />
  2716. </div>
  2717. <div>{{ w.commentCount }}</div>
  2718. </div>
  2719. </div>
  2720. </div>
  2721. </div>
  2722. </div>
  2723. </div>
  2724. <div
  2725. v-if="
  2726. tType &&
  2727. ((tType == 2 && sIsOpen == true) ||
  2728. tType == 1 ||
  2729. tType == 4) &&
  2730. tool.tool.indexOf(1) != -1
  2731. "
  2732. class="worksBox"
  2733. >
  2734. <div
  2735. class="zuoyeYulan"
  2736. v-if="
  2737. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2738. "
  2739. >
  2740. <div class="worksTop">
  2741. <div>作业预览</div>
  2742. </div>
  2743. </div>
  2744. <div
  2745. class="worksDetailBox"
  2746. v-if="
  2747. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2748. "
  2749. >
  2750. <div
  2751. class="works"
  2752. style="
  2753. width: 200px;
  2754. height: 140px;
  2755. margin: 10px 10px 10px 0;
  2756. border-radius: 15px;
  2757. box-shadow: 0 0 6px 1px #dfdada;
  2758. "
  2759. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2760. :key="wIndex"
  2761. >
  2762. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2763. <div class="workImg">
  2764. <img :src="w.works" @click="previewImg(w.works)" alt />
  2765. <div
  2766. class="answerScore"
  2767. v-if="w.score"
  2768. @click.stop="openScore(w)"
  2769. :class="{
  2770. rightW:
  2771. w.userid == userid || tType == 1 || tType == 4,
  2772. }"
  2773. >
  2774. {{ JSON.parse(w.score).wScore }}分
  2775. </div>
  2776. <div
  2777. class="answerScore"
  2778. @click.stop="openScore(w)"
  2779. v-else-if="courseDetail.userid == userid"
  2780. :class="{
  2781. rightW:
  2782. w.userid == userid || tType == 1 || tType == 4,
  2783. }"
  2784. >
  2785. 评分
  2786. </div>
  2787. <img
  2788. class="deleteImg"
  2789. src="../../assets/deleteworks.png"
  2790. v-if="w.userid == userid || tType == 1 || tType == 4"
  2791. @click.stop="deleteWorks(w.wid)"
  2792. alt
  2793. />
  2794. </div>
  2795. <div class="comment" style="min-width: 200px">
  2796. <div class="worksName">
  2797. <div>{{ w.sName }}</div>
  2798. </div>
  2799. <div class="commentList">
  2800. <div class="commentList">
  2801. <div
  2802. class="commentImg"
  2803. @click="
  2804. isLikes(w.wid, userid, 1, null, w.isLikes)
  2805. "
  2806. >
  2807. <img
  2808. :src="w.isLikes == true ? likes : noLikes"
  2809. alt=""
  2810. />
  2811. </div>
  2812. <div>{{ w.likesCount }}</div>
  2813. </div>
  2814. <div class="commentList" style="margin-right: 15px">
  2815. <div
  2816. class="commentImg"
  2817. @click="commentOther(w, toolIndex, wIndex)"
  2818. >
  2819. <img
  2820. src="../../assets/icon/comment/comment.png"
  2821. alt=""
  2822. />
  2823. </div>
  2824. <div>{{ w.commentCount }}</div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. </div>
  2829. </div>
  2830. </div>
  2831. <div
  2832. v-if="
  2833. tType &&
  2834. ((tType == 2 && sIsOpen == true) ||
  2835. tType == 1 ||
  2836. tType == 4) &&
  2837. tool.tool.indexOf(3) != -1
  2838. "
  2839. class="worksBox"
  2840. >
  2841. <div
  2842. class="zuoyeYulan"
  2843. v-if="
  2844. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2845. "
  2846. >
  2847. <div class="worksTop">
  2848. <div>作业预览</div>
  2849. </div>
  2850. </div>
  2851. <div
  2852. class="worksDetailBox"
  2853. v-if="
  2854. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2855. "
  2856. >
  2857. <div
  2858. class="works"
  2859. style="
  2860. width: 200px;
  2861. height: 140px;
  2862. margin: 10px 10px 10px 0;
  2863. border-radius: 15px;
  2864. box-shadow: 0 0 6px 1px #dfdada;
  2865. "
  2866. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2867. :key="wIndex"
  2868. >
  2869. <!-- @click="previewImg(w.works)" -->
  2870. <div class="workImg">
  2871. <img :src="w.works" @click="previewImg(w.works)" alt />
  2872. <div
  2873. class="answerScore"
  2874. v-if="w.score"
  2875. @click.stop="openScore(w)"
  2876. :class="{
  2877. rightW:
  2878. w.userid == userid || tType == 1 || tType == 4,
  2879. }"
  2880. >
  2881. {{ JSON.parse(w.score).wScore }}分
  2882. </div>
  2883. <div
  2884. class="answerScore"
  2885. @click.stop="openScore(w)"
  2886. v-else-if="courseDetail.userid == userid"
  2887. :class="{
  2888. rightW:
  2889. w.userid == userid || tType == 1 || tType == 4,
  2890. }"
  2891. >
  2892. 评分
  2893. </div>
  2894. <img
  2895. class="deleteImg"
  2896. src="../../assets/deleteworks.png"
  2897. v-if="w.userid == userid || tType == 1 || tType == 4"
  2898. @click.stop="deleteWorks(w.wid)"
  2899. alt
  2900. />
  2901. </div>
  2902. <div class="comment" style="min-width: 200px">
  2903. <div class="worksName">
  2904. <div>{{ w.sName }}</div>
  2905. </div>
  2906. <div class="commentList">
  2907. <div class="commentList">
  2908. <div
  2909. class="commentImg"
  2910. @click="
  2911. isLikes(w.wid, userid, 1, null, w.isLikes)
  2912. "
  2913. >
  2914. <img
  2915. :src="w.isLikes == true ? likes : noLikes"
  2916. alt=""
  2917. />
  2918. </div>
  2919. <div>{{ w.likesCount }}</div>
  2920. </div>
  2921. <div class="commentList" style="margin-right: 15px">
  2922. <div
  2923. class="commentImg"
  2924. @click="commentOther(w, toolIndex, wIndex)"
  2925. >
  2926. <img
  2927. src="../../assets/icon/comment/comment.png"
  2928. alt=""
  2929. />
  2930. </div>
  2931. <div>{{ w.commentCount }}</div>
  2932. </div>
  2933. </div>
  2934. </div>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. <div
  2939. v-if="
  2940. tType &&
  2941. ((tType == 2 && sIsOpen == true) ||
  2942. tType == 1 ||
  2943. tType == 4) &&
  2944. tool.tool.indexOf(6) != -1
  2945. "
  2946. class="worksBox"
  2947. >
  2948. <div
  2949. class="zuoyeYulan"
  2950. v-if="
  2951. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2952. "
  2953. >
  2954. <div class="worksTop">
  2955. <div>作业预览</div>
  2956. </div>
  2957. </div>
  2958. <div
  2959. class="worksDetailBox"
  2960. v-if="
  2961. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2962. "
  2963. >
  2964. <div
  2965. class="works"
  2966. style="
  2967. width: 200px;
  2968. height: 140px;
  2969. margin: 10px 10px 10px 0;
  2970. border-radius: 15px;
  2971. box-shadow: 0 0 6px 1px #dfdada;
  2972. "
  2973. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2974. :key="wIndex"
  2975. >
  2976. <!-- @click="previewImg(w.works)" -->
  2977. <div class="workImg">
  2978. <img :src="w.works" @click="previewImg(w.works)" alt />
  2979. <div
  2980. class="answerScore"
  2981. v-if="w.score"
  2982. @click.stop="openScore(w)"
  2983. :class="{
  2984. rightW:
  2985. w.userid == userid || tType == 1 || tType == 4,
  2986. }"
  2987. >
  2988. {{ JSON.parse(w.score).wScore }}分
  2989. </div>
  2990. <div
  2991. class="answerScore"
  2992. @click.stop="openScore(w)"
  2993. v-else-if="courseDetail.userid == userid"
  2994. :class="{
  2995. rightW:
  2996. w.userid == userid || tType == 1 || tType == 4,
  2997. }"
  2998. >
  2999. 评分
  3000. </div>
  3001. <img
  3002. class="deleteImg"
  3003. src="../../assets/deleteworks.png"
  3004. v-if="w.userid == userid || tType == 1 || tType == 4"
  3005. @click.stop="deleteWorks(w.wid)"
  3006. alt
  3007. />
  3008. </div>
  3009. <div class="comment" style="min-width: 200px">
  3010. <div class="worksName">
  3011. <div>{{ w.sName }}</div>
  3012. </div>
  3013. <div class="commentList">
  3014. <div class="commentList">
  3015. <div
  3016. class="commentImg"
  3017. @click="
  3018. isLikes(w.wid, userid, 1, null, w.isLikes)
  3019. "
  3020. >
  3021. <img
  3022. :src="w.isLikes == true ? likes : noLikes"
  3023. alt=""
  3024. />
  3025. </div>
  3026. <div>{{ w.likesCount }}</div>
  3027. </div>
  3028. <div class="commentList" style="margin-right: 15px">
  3029. <div
  3030. class="commentImg"
  3031. @click="commentOther(w, toolIndex, wIndex)"
  3032. >
  3033. <img
  3034. src="../../assets/icon/comment/comment.png"
  3035. alt=""
  3036. />
  3037. </div>
  3038. <div>{{ w.commentCount }}</div>
  3039. </div>
  3040. </div>
  3041. </div>
  3042. </div>
  3043. </div>
  3044. </div>
  3045. <div
  3046. v-if="
  3047. tType &&
  3048. ((tType == 2 && sIsOpen == true) ||
  3049. tType == 1 ||
  3050. tType == 4) &&
  3051. tool.tool.indexOf(7) != -1
  3052. "
  3053. class="worksBox"
  3054. >
  3055. <div
  3056. class="zuoyeYulan"
  3057. v-if="
  3058. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3059. "
  3060. >
  3061. <div class="worksTop">
  3062. <div>作业预览</div>
  3063. </div>
  3064. </div>
  3065. <div
  3066. class="worksDetailBox"
  3067. v-if="
  3068. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3069. "
  3070. >
  3071. <div
  3072. class="works"
  3073. style="
  3074. width: 200px;
  3075. height: 140px;
  3076. margin: 10px 10px 10px 0;
  3077. border-radius: 15px;
  3078. box-shadow: 0 0 6px 1px #dfdada;
  3079. "
  3080. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3081. :key="wIndex"
  3082. >
  3083. <!-- @click="previewImg(w.works)" -->
  3084. <div class="workImg">
  3085. <img :src="w.works" @click="previewImg(w.works)" alt />
  3086. <div
  3087. class="answerScore"
  3088. v-if="w.score"
  3089. @click.stop="openScore(w)"
  3090. :class="{
  3091. rightW:
  3092. w.userid == userid || tType == 1 || tType == 4,
  3093. }"
  3094. >
  3095. {{ JSON.parse(w.score).wScore }}分
  3096. </div>
  3097. <div
  3098. class="answerScore"
  3099. @click.stop="openScore(w)"
  3100. v-else-if="courseDetail.userid == userid"
  3101. :class="{
  3102. rightW:
  3103. w.userid == userid || tType == 1 || tType == 4,
  3104. }"
  3105. >
  3106. 评分
  3107. </div>
  3108. <img
  3109. class="deleteImg"
  3110. src="../../assets/deleteworks.png"
  3111. v-if="w.userid == userid || tType == 1 || tType == 4"
  3112. @click.stop="deleteWorks(w.wid)"
  3113. alt
  3114. />
  3115. </div>
  3116. <div class="comment" style="min-width: 200px">
  3117. <div class="worksName">
  3118. <div>{{ w.sName }}</div>
  3119. </div>
  3120. <div class="commentList">
  3121. <div class="commentList">
  3122. <div
  3123. class="commentImg"
  3124. @click="
  3125. isLikes(w.wid, userid, 1, null, w.isLikes)
  3126. "
  3127. >
  3128. <img
  3129. :src="w.isLikes == true ? likes : noLikes"
  3130. alt=""
  3131. />
  3132. </div>
  3133. <div>{{ w.likesCount }}</div>
  3134. </div>
  3135. <div class="commentList" style="margin-right: 15px">
  3136. <div
  3137. class="commentImg"
  3138. @click="commentOther(w, toolIndex, wIndex)"
  3139. >
  3140. <img
  3141. src="../../assets/icon/comment/comment.png"
  3142. alt=""
  3143. />
  3144. </div>
  3145. <div>{{ w.commentCount }}</div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. </div>
  3152. <div
  3153. v-if="
  3154. tType &&
  3155. ((tType == 2 && sIsOpen == true) ||
  3156. tType == 1 ||
  3157. tType == 4) &&
  3158. tool.tool.indexOf(26) != -1
  3159. "
  3160. class="worksBox"
  3161. >
  3162. <div
  3163. class="zuoyeYulan"
  3164. v-if="
  3165. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3166. "
  3167. >
  3168. <div class="worksTop">
  3169. <div>作业预览</div>
  3170. </div>
  3171. </div>
  3172. <div
  3173. class="worksDetailBox"
  3174. v-if="
  3175. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3176. "
  3177. >
  3178. <div
  3179. class="works"
  3180. style="width: 240px; height: 140px; overflow: hidden"
  3181. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3182. :key="wIndex"
  3183. :class="w.type == 1 ? 'isTypeOne' : ''"
  3184. >
  3185. <div class="workImg" v-if="w.type == 0">
  3186. <img :src="w.works" @click="previewImg(w.works)" alt />
  3187. <img
  3188. class="deleteImg"
  3189. src="../../assets/deleteworks.png"
  3190. v-if="w.userid == userid || tType == 1 || tType == 4"
  3191. @click.stop="deleteWorks(w.wid)"
  3192. alt
  3193. />
  3194. </div>
  3195. <div class="workImg" v-if="w.type == 1">
  3196. <img :src="word" @click="openFile(w.works)" alt />
  3197. <img
  3198. class="deleteImg"
  3199. src="../../assets/deleteworks.png"
  3200. v-if="w.userid == userid || tType == 1 || tType == 4"
  3201. @click.stop="deleteWorks(w.wid)"
  3202. alt
  3203. />
  3204. </div>
  3205. <div class="worksName">
  3206. <div>{{ w.sName }}</div>
  3207. </div>
  3208. </div>
  3209. </div>
  3210. </div>
  3211. <div
  3212. v-if="
  3213. tType &&
  3214. ((tType == 2 && sIsOpen == true) ||
  3215. tType == 1 ||
  3216. tType == 4) &&
  3217. tool.tool.indexOf(40) != -1
  3218. "
  3219. class="worksBox"
  3220. >
  3221. <div
  3222. class="zuoyeYulan"
  3223. v-if="
  3224. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3225. "
  3226. >
  3227. <div class="worksTop">
  3228. <div>作业预览</div>
  3229. </div>
  3230. </div>
  3231. <div
  3232. class="worksDetailBox"
  3233. v-if="
  3234. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3235. "
  3236. >
  3237. <div
  3238. class="works"
  3239. style="
  3240. width: 200px;
  3241. height: 140px;
  3242. margin: 10px 10px 10px 0;
  3243. border-radius: 15px;
  3244. box-shadow: 0 0 6px 1px #dfdada;
  3245. "
  3246. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3247. :key="wIndex"
  3248. :class="w.type == 1 ? 'isTypeOne' : ''"
  3249. >
  3250. <div class="workImg">
  3251. <img
  3252. src="../../assets/icon/works/noImg.png"
  3253. @click="openPj(w.works, toolIndex)"
  3254. alt
  3255. />
  3256. <img
  3257. class="deleteImg"
  3258. src="../../assets/deleteworks.png"
  3259. v-if="w.userid == userid || tType == 1 || tType == 4"
  3260. @click.stop="deleteWorks(w.wid)"
  3261. alt
  3262. />
  3263. </div>
  3264. <div class="comment" style="min-width: 200px">
  3265. <div class="worksName">
  3266. <div>{{ w.sName }}</div>
  3267. </div>
  3268. <div class="commentList">
  3269. <div class="commentList">
  3270. <div
  3271. class="commentImg"
  3272. @click="
  3273. isLikes(w.wid, userid, 1, null, w.isLikes)
  3274. "
  3275. >
  3276. <img
  3277. :src="w.isLikes == true ? likes : noLikes"
  3278. alt=""
  3279. />
  3280. </div>
  3281. <div>{{ w.likesCount }}</div>
  3282. </div>
  3283. <div class="commentList" style="margin-right: 15px">
  3284. <div
  3285. class="commentImg"
  3286. @click="commentOther(w, toolIndex, wIndex)"
  3287. >
  3288. <img
  3289. src="../../assets/icon/comment/comment.png"
  3290. alt=""
  3291. />
  3292. </div>
  3293. <div>{{ w.commentCount }}</div>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. <div
  3301. v-if="
  3302. tType &&
  3303. ((tType == 2 && sIsOpen == true) ||
  3304. tType == 1 ||
  3305. tType == 4) &&
  3306. tool.tool.indexOf(41) != -1
  3307. "
  3308. class="worksBox"
  3309. >
  3310. <div
  3311. class="zuoyeYulan"
  3312. v-if="
  3313. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3314. "
  3315. >
  3316. <div class="worksTop">
  3317. <div>作业预览</div>
  3318. </div>
  3319. </div>
  3320. <div
  3321. class="worksDetailBox"
  3322. v-if="
  3323. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3324. "
  3325. >
  3326. <div
  3327. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3328. :key="wIndex"
  3329. class="isWorksName"
  3330. @click="openXz(w, toolIndex)"
  3331. >
  3332. {{ w.sName }}
  3333. <img
  3334. class="deleteImg deleteImg2"
  3335. src="../../assets/deleteworks.png"
  3336. v-if="w.userid == userid || tType == 1 || tType == 4"
  3337. @click.stop="deleteWorks(w.wid)"
  3338. alt
  3339. />
  3340. </div>
  3341. </div>
  3342. </div>
  3343. <div
  3344. v-if="
  3345. tType &&
  3346. ((tType == 2 && sIsOpen == true) ||
  3347. tType == 1 ||
  3348. tType == 4) &&
  3349. tool.tool.indexOf(47) != -1
  3350. "
  3351. class="worksBox"
  3352. >
  3353. <div
  3354. class="zuoyeYulan"
  3355. v-if="
  3356. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3357. "
  3358. >
  3359. <div class="worksTop">
  3360. <div>作业预览</div>
  3361. </div>
  3362. </div>
  3363. <div
  3364. class="worksDetailBox"
  3365. v-if="
  3366. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3367. "
  3368. >
  3369. <!-- @click="openXz(w, toolIndex)" -->
  3370. <div
  3371. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3372. :key="wIndex"
  3373. class="isWorksName"
  3374. @click="openSen(w, toolIndex)"
  3375. >
  3376. {{ w.sName }}
  3377. <img
  3378. class="deleteImg deleteImg2"
  3379. src="../../assets/deleteworks.png"
  3380. v-if="w.userid == userid || tType == 1 || tType == 4"
  3381. @click.stop="deleteWorks(w.wid)"
  3382. alt
  3383. />
  3384. </div>
  3385. </div>
  3386. </div>
  3387. <div
  3388. v-if="
  3389. tType &&
  3390. ((tType == 2 && sIsOpen == true) ||
  3391. tType == 1 ||
  3392. tType == 4) &&
  3393. tool.tool.indexOf(48) != -1
  3394. "
  3395. class="worksBox"
  3396. >
  3397. <div
  3398. class="zuoyeYulan"
  3399. v-if="
  3400. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3401. "
  3402. >
  3403. <div class="worksTop">
  3404. <div>作业预览</div>
  3405. </div>
  3406. </div>
  3407. <div
  3408. class="worksDetailBox"
  3409. v-if="
  3410. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3411. "
  3412. >
  3413. <div
  3414. class="works"
  3415. style="
  3416. width: 200px;
  3417. height: 140px;
  3418. margin: 10px 10px 10px 0;
  3419. border-radius: 15px;
  3420. box-shadow: 0 0 6px 1px #dfdada;
  3421. "
  3422. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3423. :key="wIndex"
  3424. :class="w.type == 1 ? 'isTypeOne' : ''"
  3425. >
  3426. <div class="workImg">
  3427. <img :src="word" @click="openTable(w)" alt />
  3428. <!-- @click="openFile(w.works)" -->
  3429. <div
  3430. class="answerScore"
  3431. v-if="w.score"
  3432. @click.stop="openScore(w)"
  3433. :class="{
  3434. rightW:
  3435. w.userid == userid ||
  3436. tType == 1 ||
  3437. tType == 4 ||
  3438. w.ateacher == userid,
  3439. }"
  3440. >
  3441. {{ JSON.parse(w.score).wScore }}分
  3442. </div>
  3443. <div
  3444. class="answerScore"
  3445. @click.stop="openScore(w)"
  3446. v-else-if="courseDetail.userid == userid"
  3447. :class="{
  3448. rightW:
  3449. w.userid == userid ||
  3450. tType == 1 ||
  3451. tType == 4 ||
  3452. w.ateacher == userid,
  3453. }"
  3454. >
  3455. 评分
  3456. </div>
  3457. <img
  3458. class="deleteImg"
  3459. src="../../assets/deleteworks.png"
  3460. v-if="w.userid == userid || tType == 1 || tType == 4"
  3461. @click.stop="deleteWorks(w.wid)"
  3462. alt
  3463. />
  3464. </div>
  3465. <div class="comment" style="min-width: 200px">
  3466. <div class="worksName">
  3467. <div>{{ w.sName }}</div>
  3468. </div>
  3469. <div class="commentList">
  3470. <div class="commentList">
  3471. <div
  3472. class="commentImg"
  3473. @click="
  3474. isLikes(w.wid, userid, 1, null, w.isLikes)
  3475. "
  3476. >
  3477. <img
  3478. :src="w.isLikes == true ? likes : noLikes"
  3479. alt=""
  3480. />
  3481. </div>
  3482. <div>{{ w.likesCount }}</div>
  3483. </div>
  3484. <div class="commentList" style="margin-right: 15px">
  3485. <div
  3486. class="commentImg"
  3487. @click="commentOther(w, toolIndex, wIndex)"
  3488. >
  3489. <img
  3490. src="../../assets/icon/comment/comment.png"
  3491. alt=""
  3492. />
  3493. </div>
  3494. <div>{{ w.commentCount }}</div>
  3495. </div>
  3496. </div>
  3497. </div>
  3498. </div>
  3499. </div>
  3500. </div>
  3501. <div
  3502. v-if="
  3503. tType &&
  3504. ((tType == 2 && sIsOpen == true) ||
  3505. tType == 1 ||
  3506. tType == 4) &&
  3507. tool.tool.indexOf(52) != -1
  3508. "
  3509. class="worksBox"
  3510. >
  3511. <div
  3512. class="zuoyeYulan"
  3513. v-if="
  3514. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3515. "
  3516. >
  3517. <div class="worksTop">
  3518. <div>作业预览</div>
  3519. </div>
  3520. </div>
  3521. <div
  3522. class="worksDetailBox"
  3523. v-if="
  3524. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3525. "
  3526. >
  3527. <div
  3528. class="works"
  3529. style="
  3530. width: 200px;
  3531. height: 140px;
  3532. margin: 10px 10px 10px 0;
  3533. border-radius: 15px;
  3534. box-shadow: 0 0 6px 1px #dfdada;
  3535. "
  3536. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3537. :key="wIndex"
  3538. :class="w.type == 1 ? 'isTypeOne' : ''"
  3539. >
  3540. <div class="workImg">
  3541. <img :src="word" @click="openWord(w)" alt />
  3542. <!-- @click="openFile(w.works)" -->
  3543. <div
  3544. class="answerScore"
  3545. v-if="w.score"
  3546. @click.stop="openScore(w)"
  3547. :class="{
  3548. rightW:
  3549. w.userid == userid ||
  3550. tType == 1 ||
  3551. tType == 4 ||
  3552. w.ateacher == userid,
  3553. }"
  3554. >
  3555. {{ JSON.parse(w.score).wScore }}分
  3556. </div>
  3557. <div
  3558. class="answerScore"
  3559. @click.stop="openScore(w)"
  3560. v-else-if="courseDetail.userid == userid"
  3561. :class="{
  3562. rightW:
  3563. w.userid == userid ||
  3564. tType == 1 ||
  3565. tType == 4 ||
  3566. w.ateacher == userid,
  3567. }"
  3568. >
  3569. 评分
  3570. </div>
  3571. <img
  3572. class="deleteImg"
  3573. src="../../assets/deleteworks.png"
  3574. v-if="w.userid == userid || tType == 1 || tType == 4"
  3575. @click.stop="deleteWorks(w.wid)"
  3576. alt
  3577. />
  3578. </div>
  3579. <div class="comment" style="min-width: 200px">
  3580. <div class="worksName">
  3581. <div>{{ w.sName }}</div>
  3582. </div>
  3583. <div class="commentList">
  3584. <div class="commentList">
  3585. <div
  3586. class="commentImg"
  3587. @click="
  3588. isLikes(w.wid, userid, 1, null, w.isLikes)
  3589. "
  3590. >
  3591. <img
  3592. :src="w.isLikes == true ? likes : noLikes"
  3593. alt=""
  3594. />
  3595. </div>
  3596. <div>{{ w.likesCount }}</div>
  3597. </div>
  3598. <div class="commentList" style="margin-right: 15px">
  3599. <div
  3600. class="commentImg"
  3601. @click="commentOther(w, toolIndex, wIndex)"
  3602. >
  3603. <img
  3604. src="../../assets/icon/comment/comment.png"
  3605. alt=""
  3606. />
  3607. </div>
  3608. <div>{{ w.commentCount }}</div>
  3609. </div>
  3610. </div>
  3611. </div>
  3612. </div>
  3613. </div>
  3614. </div>
  3615. </div>
  3616. </div>
  3617. <div class="vedioBox">
  3618. <div
  3619. v-if="
  3620. tType &&
  3621. ((tType == 2 && sIsOpen == true) ||
  3622. tType == 1 ||
  3623. tType == 4) &&
  3624. tool.tool.indexOf(4) != -1 &&
  3625. worksStudent.length &&
  3626. worksStudent[toolIndex].length &&
  3627. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3628. checkJson[toolIndex].length
  3629. "
  3630. class="xuan_right_box"
  3631. >
  3632. <div
  3633. class="tool_right_box"
  3634. v-for="(item, index) in tool.askJson"
  3635. :key="index"
  3636. >
  3637. <div>
  3638. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3639. </div>
  3640. <div class="right_box_xuan">
  3641. <span>正确率</span>
  3642. <span>{{
  3643. (checkJson[toolIndex][index].right
  3644. ? checkJson[toolIndex][index].right
  3645. : 0) + "%"
  3646. }}</span>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. <div
  3651. class="xuan_right_box"
  3652. style="background: unset"
  3653. v-if="
  3654. tType &&
  3655. ((tType == 2 && sIsOpen == true) ||
  3656. tType == 1 ||
  3657. tType == 4) &&
  3658. tool.tool.indexOf(4) != -1 &&
  3659. worksStudent.length &&
  3660. worksStudent[toolIndex].length
  3661. "
  3662. >
  3663. <AskStatic
  3664. v-if="
  3665. worksStudent.length && worksStudent[toolIndex].length > 0
  3666. "
  3667. :askJSON="tool"
  3668. :checkJson="checkJson[toolIndex]"
  3669. ></AskStatic>
  3670. </div>
  3671. <div
  3672. v-if="
  3673. tType &&
  3674. ((tType == 2 && sIsOpen == true) ||
  3675. tType == 1 ||
  3676. tType == 4) &&
  3677. tool.tool.indexOf(45) != -1 &&
  3678. worksStudent.length &&
  3679. worksStudent[toolIndex].length &&
  3680. (tool.testJson.testJson[0].answer ||
  3681. tool.testJson.testJson[0].answer === 0) &&
  3682. checkJson[toolIndex].length
  3683. "
  3684. class="xuan_right_box"
  3685. >
  3686. <div
  3687. class="tool_right_box"
  3688. v-for="(item, index) in tool.testJson.testJson"
  3689. :key="index"
  3690. >
  3691. <div>
  3692. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3693. </div>
  3694. <div class="right_box_xuan">
  3695. <span>正确率</span>
  3696. <span>{{
  3697. (checkJson[toolIndex][index].right
  3698. ? checkJson[toolIndex][index].right
  3699. : 0) + "%"
  3700. }}</span>
  3701. </div>
  3702. </div>
  3703. </div>
  3704. <div
  3705. class="xuan_right_box"
  3706. style="background: unset"
  3707. v-if="
  3708. tType &&
  3709. ((tType == 2 && sIsOpen == true) ||
  3710. tType == 1 ||
  3711. tType == 4) &&
  3712. tool.tool.indexOf(45) != -1 &&
  3713. worksStudent.length &&
  3714. worksStudent[toolIndex].length
  3715. "
  3716. >
  3717. <AskStatic2
  3718. v-if="
  3719. worksStudent.length && worksStudent[toolIndex].length > 0
  3720. "
  3721. :askJSON="tool"
  3722. :checkJson="checkJson[toolIndex]"
  3723. ></AskStatic2>
  3724. </div>
  3725. <div
  3726. v-if="
  3727. tType &&
  3728. ((tType == 2 && sIsOpen == true) ||
  3729. tType == 1 ||
  3730. tType == 4) &&
  3731. tool.tool.indexOf(41) != -1
  3732. "
  3733. >
  3734. <AnswerData2
  3735. v-if="
  3736. worksStudent.length && worksStudent[toolIndex].length > 0
  3737. "
  3738. :problemJson="tool.selectJson.answer"
  3739. :people="worksStudent[toolIndex]"
  3740. ></AnswerData2>
  3741. </div>
  3742. <div
  3743. v-if="
  3744. tType &&
  3745. ((tType == 2 && sIsOpen == true) ||
  3746. tType == 1 ||
  3747. tType == 4) &&
  3748. tool.tool.indexOf(47) != -1
  3749. "
  3750. >
  3751. <AnswerData
  3752. v-if="
  3753. checkJson[toolIndex].length &&
  3754. (tool.sentenceList || tool.sentenceList.length > 0)
  3755. "
  3756. :people="checkJson[toolIndex]"
  3757. ></AnswerData>
  3758. </div>
  3759. </div>
  3760. <div
  3761. class="vedioBox"
  3762. v-if="
  3763. noWorksS[toolIndex].length &&
  3764. arrayToArray(tool.tool, isWorkTool).length &&
  3765. false
  3766. "
  3767. >
  3768. <div
  3769. class="queTop"
  3770. style="
  3771. font-size: 20px;
  3772. padding: 15px 0 15px 37px;
  3773. font-weight: bold;
  3774. "
  3775. >
  3776. 学生工作区
  3777. </div>
  3778. <div class="tool_work_box">
  3779. <div
  3780. v-if="
  3781. tType &&
  3782. ((tType == 2 && sIsOpen == true) ||
  3783. tType == 1 ||
  3784. tType == 4) &&
  3785. tool.tool.indexOf(16) != -1
  3786. "
  3787. class="worksBox"
  3788. >
  3789. <div
  3790. class="zuoyeYulan"
  3791. v-if="
  3792. worksStudent2.length &&
  3793. worksStudent2[toolIndex].length > 0
  3794. "
  3795. >
  3796. <div class="worksTop">
  3797. <div>作业预览</div>
  3798. <div
  3799. class="corOpen"
  3800. @click="contract(toolIndex)"
  3801. v-if="
  3802. worksStudent2[toolIndex].length > 6 &&
  3803. isCloseList[toolIndex].isClose == 0
  3804. "
  3805. >
  3806. 收缩
  3807. </div>
  3808. <div
  3809. class="corOpen"
  3810. @click="contract(toolIndex)"
  3811. v-if="isCloseList[toolIndex].isClose == 1"
  3812. >
  3813. 展开
  3814. </div>
  3815. </div>
  3816. </div>
  3817. <div
  3818. class="worksDetailBox"
  3819. v-if="
  3820. worksStudent2.length &&
  3821. worksStudent2[toolIndex].length > 0
  3822. "
  3823. >
  3824. <div
  3825. class="works"
  3826. style="
  3827. width: 200px;
  3828. height: 140px;
  3829. margin: 10px 10px 10px 0;
  3830. border-radius: 15px;
  3831. box-shadow: 0 0 6px 1px #dfdada;
  3832. "
  3833. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3834. ? worksStudent2[toolIndex]
  3835. : worksStudent2[toolIndex].slice(0, 6)"
  3836. :key="wIndex"
  3837. :class="w.type == 1 ? 'isTypeOne' : ''"
  3838. >
  3839. <div class="workImg" v-if="w.type == 0">
  3840. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3841. <img :src="w.works" @click="previewImg(w.works)" alt />
  3842. <div
  3843. class="answerScore"
  3844. v-if="w.score"
  3845. @click.stop="openScore(w)"
  3846. :class="{
  3847. rightW:
  3848. w.userid == userid ||
  3849. tType == 1 ||
  3850. tType == 4 ||
  3851. w.ateacher == userid,
  3852. }"
  3853. >
  3854. {{ JSON.parse(w.score).wScore }}分
  3855. </div>
  3856. <div
  3857. class="answerScore"
  3858. @click.stop="openScore(w)"
  3859. v-else-if="courseDetail.userid == userid"
  3860. :class="{
  3861. rightW:
  3862. w.userid == userid ||
  3863. tType == 1 ||
  3864. tType == 4 ||
  3865. w.ateacher == userid,
  3866. }"
  3867. >
  3868. 评分
  3869. </div>
  3870. <img
  3871. class="deleteImg"
  3872. src="../../assets/deleteworks.png"
  3873. v-if="w.userid == userid || tType == 1 || tType == 4"
  3874. @click.stop="deleteWorks(w.wid)"
  3875. alt
  3876. />
  3877. </div>
  3878. <div class="workImg" v-if="w.type == 1">
  3879. <img :src="word" @click="openFile(w.works)" alt />
  3880. <!-- @click="openFile(w.works)" -->
  3881. <div
  3882. class="answerScore"
  3883. v-if="w.score"
  3884. @click.stop="openScore(w)"
  3885. :class="{
  3886. rightW:
  3887. w.userid == userid ||
  3888. tType == 1 ||
  3889. tType == 4 ||
  3890. w.ateacher == userid,
  3891. }"
  3892. >
  3893. {{ JSON.parse(w.score).wScore }}分
  3894. </div>
  3895. <div
  3896. class="answerScore"
  3897. @click.stop="openScore(w)"
  3898. v-else-if="courseDetail.userid == userid"
  3899. :class="{
  3900. rightW:
  3901. w.userid == userid ||
  3902. tType == 1 ||
  3903. tType == 4 ||
  3904. w.ateacher == userid,
  3905. }"
  3906. >
  3907. 评分
  3908. </div>
  3909. <img
  3910. class="deleteImg"
  3911. src="../../assets/deleteworks.png"
  3912. v-if="w.userid == userid || tType == 1 || tType == 4"
  3913. @click.stop="deleteWorks(w.wid)"
  3914. alt
  3915. />
  3916. </div>
  3917. <div class="workImg" v-if="w.type == 3">
  3918. <img
  3919. style="cursor: pointer"
  3920. :src="video"
  3921. @click="openVideo(w)"
  3922. alt
  3923. />
  3924. <!-- @click="openVideo(w.works)" -->
  3925. <div
  3926. class="answerScore"
  3927. v-if="w.score"
  3928. @click.stop="openScore(w)"
  3929. :class="{
  3930. rightW:
  3931. w.userid == userid ||
  3932. tType == 1 ||
  3933. tType == 4 ||
  3934. w.ateacher == userid,
  3935. }"
  3936. >
  3937. {{ JSON.parse(w.score).wScore }}分
  3938. </div>
  3939. <div
  3940. class="answerScore"
  3941. @click.stop="openScore(w)"
  3942. v-else-if="courseDetail.userid == userid"
  3943. :class="{
  3944. rightW:
  3945. w.userid == userid ||
  3946. tType == 1 ||
  3947. tType == 4 ||
  3948. w.ateacher == userid,
  3949. }"
  3950. >
  3951. 评分
  3952. </div>
  3953. <img
  3954. class="deleteImg"
  3955. src="../../assets/deleteworks.png"
  3956. v-if="w.userid == userid || tType == 1 || tType == 4"
  3957. @click.stop="deleteWorks(w.wid)"
  3958. alt
  3959. />
  3960. </div>
  3961. <div class="workImg" v-if="w.type == 12">
  3962. <img
  3963. style="cursor: pointer"
  3964. :src="word2"
  3965. @click="downloadFile(w.works)"
  3966. alt
  3967. />
  3968. <!-- @click="openVideo(w.works)" -->
  3969. <div
  3970. class="answerScore"
  3971. v-if="w.score"
  3972. @click.stop="openScore(w)"
  3973. :class="{
  3974. rightW:
  3975. w.userid == userid ||
  3976. tType == 1 ||
  3977. tType == 4 ||
  3978. w.ateacher == userid,
  3979. }"
  3980. >
  3981. {{ JSON.parse(w.score).wScore }}分
  3982. </div>
  3983. <div
  3984. class="answerScore"
  3985. @click.stop="openScore(w)"
  3986. v-else-if="courseDetail.userid == userid"
  3987. :class="{
  3988. rightW:
  3989. w.userid == userid ||
  3990. tType == 1 ||
  3991. tType == 4 ||
  3992. w.ateacher == userid,
  3993. }"
  3994. >
  3995. 评分
  3996. </div>
  3997. <img
  3998. class="deleteImg"
  3999. src="../../assets/deleteworks.png"
  4000. v-if="w.userid == userid || tType == 1 || tType == 4"
  4001. @click.stop="deleteWorks(w.wid)"
  4002. alt
  4003. />
  4004. </div>
  4005. <div class="comment" style="min-width: 200px">
  4006. <div class="worksName">
  4007. <div>{{ w.sName }}</div>
  4008. </div>
  4009. <div class="commentList">
  4010. <div class="commentList">
  4011. <div
  4012. class="commentImg"
  4013. @click="
  4014. isLikes(w.wid, userid, 1, null, w.isLikes)
  4015. "
  4016. >
  4017. <img
  4018. :src="w.isLikes == true ? likes : noLikes"
  4019. alt=""
  4020. />
  4021. </div>
  4022. <div>{{ w.likesCount }}</div>
  4023. </div>
  4024. <div class="commentList" style="margin-right: 15px">
  4025. <div
  4026. class="commentImg"
  4027. @click="commentOther(w, toolIndex, wIndex)"
  4028. >
  4029. <img
  4030. src="../../assets/icon/comment/comment.png"
  4031. alt=""
  4032. />
  4033. </div>
  4034. <div>{{ w.commentCount }}</div>
  4035. </div>
  4036. </div>
  4037. </div>
  4038. </div>
  4039. </div>
  4040. <div class="noWorksS">
  4041. <div
  4042. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4043. :key="sIndex"
  4044. class="noWorksName"
  4045. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4046. :class="{ isWork: s.type == '2' }"
  4047. >
  4048. {{ s.student }}
  4049. </div>
  4050. </div>
  4051. </div>
  4052. <div
  4053. v-if="
  4054. tType &&
  4055. ((tType == 2 && sIsOpen == true) ||
  4056. tType == 1 ||
  4057. tType == 4) &&
  4058. tool.tool.indexOf(32) != -1
  4059. "
  4060. class="worksBox"
  4061. >
  4062. <div
  4063. class="zuoyeYulan"
  4064. v-if="
  4065. worksStudent2.length &&
  4066. worksStudent2[toolIndex].length > 0
  4067. "
  4068. >
  4069. <div class="worksTop">
  4070. <div>作业预览</div>
  4071. <div
  4072. class="corOpen"
  4073. @click="contract(toolIndex)"
  4074. v-if="
  4075. worksStudent2[toolIndex].length > 6 &&
  4076. isCloseList[toolIndex].isClose == 0
  4077. "
  4078. >
  4079. 收缩
  4080. </div>
  4081. <div
  4082. class="corOpen"
  4083. @click="contract(toolIndex)"
  4084. v-if="isCloseList[toolIndex].isClose == 1"
  4085. >
  4086. 展开
  4087. </div>
  4088. </div>
  4089. </div>
  4090. <div
  4091. class="worksDetailBox"
  4092. v-if="
  4093. worksStudent2.length &&
  4094. worksStudent2[toolIndex].length > 0
  4095. "
  4096. >
  4097. <div
  4098. class="works"
  4099. style="
  4100. width: 200px;
  4101. height: 140px;
  4102. margin: 10px 10px 10px 0;
  4103. border-radius: 15px;
  4104. box-shadow: 0 0 6px 1px #dfdada;
  4105. "
  4106. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4107. ? worksStudent2[toolIndex]
  4108. : worksStudent2[toolIndex].slice(0, 6)"
  4109. :key="wIndex"
  4110. :class="w.type == 1 ? 'isTypeOne' : ''"
  4111. >
  4112. <div class="workImg">
  4113. <img :src="word2" @click="downloadFile(w.works)" alt />
  4114. <div
  4115. class="answerScore"
  4116. v-if="w.score"
  4117. @click.stop="openScore(w)"
  4118. :class="{
  4119. rightW:
  4120. w.userid == userid ||
  4121. tType == 1 ||
  4122. tType == 4 ||
  4123. w.ateacher == userid,
  4124. }"
  4125. >
  4126. {{ JSON.parse(w.score).wScore }}分
  4127. </div>
  4128. <div
  4129. class="answerScore"
  4130. @click.stop="openScore(w)"
  4131. v-else-if="courseDetail.userid == userid"
  4132. :class="{
  4133. rightW:
  4134. w.userid == userid ||
  4135. tType == 1 ||
  4136. tType == 4 ||
  4137. w.ateacher == userid,
  4138. }"
  4139. >
  4140. 评分
  4141. </div>
  4142. <img
  4143. class="deleteImg"
  4144. src="../../assets/deleteworks.png"
  4145. v-if="w.userid == userid || tType == 1 || tType == 4"
  4146. @click.stop="deleteWorks(w.wid)"
  4147. alt
  4148. />
  4149. </div>
  4150. <div class="comment" style="min-width: 200px">
  4151. <div class="worksName">
  4152. <div>{{ w.sName }}</div>
  4153. </div>
  4154. <div class="commentList">
  4155. <div class="commentList">
  4156. <div
  4157. class="commentImg"
  4158. @click="
  4159. isLikes(w.wid, userid, 1, null, w.isLikes)
  4160. "
  4161. >
  4162. <img
  4163. :src="w.isLikes == true ? likes : noLikes"
  4164. alt=""
  4165. />
  4166. </div>
  4167. <div>{{ w.likesCount }}</div>
  4168. </div>
  4169. <div class="commentList" style="margin-right: 15px">
  4170. <div
  4171. class="commentImg"
  4172. @click="commentOther(w, toolIndex, wIndex)"
  4173. >
  4174. <img
  4175. src="../../assets/icon/comment/comment.png"
  4176. alt=""
  4177. />
  4178. </div>
  4179. <div>{{ w.commentCount }}</div>
  4180. </div>
  4181. </div>
  4182. </div>
  4183. </div>
  4184. </div>
  4185. <div class="noWorksS">
  4186. <div
  4187. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4188. :key="sIndex"
  4189. class="noWorksName"
  4190. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4191. :class="{ isWork: s.type == '2' }"
  4192. >
  4193. {{ s.student }}
  4194. </div>
  4195. </div>
  4196. </div>
  4197. <div
  4198. v-if="
  4199. tType &&
  4200. ((tType == 2 && sIsOpen == true) ||
  4201. tType == 1 ||
  4202. tType == 4) &&
  4203. tool.tool.indexOf(57) != -1
  4204. "
  4205. class="worksBox"
  4206. >
  4207. <div
  4208. class="zuoyeYulan"
  4209. v-if="
  4210. worksStudent2.length &&
  4211. worksStudent2[toolIndex].length > 0
  4212. "
  4213. >
  4214. <div class="worksTop">
  4215. <div>作业预览</div>
  4216. <div
  4217. class="corOpen"
  4218. @click="contract(toolIndex)"
  4219. v-if="
  4220. worksStudent2[toolIndex].length > 6 &&
  4221. isCloseList[toolIndex].isClose == 0
  4222. "
  4223. >
  4224. 收缩
  4225. </div>
  4226. <div
  4227. class="corOpen"
  4228. @click="contract(toolIndex)"
  4229. v-if="isCloseList[toolIndex].isClose == 1"
  4230. >
  4231. 展开
  4232. </div>
  4233. </div>
  4234. </div>
  4235. <div
  4236. class="worksDetailBox"
  4237. v-if="
  4238. worksStudent2.length &&
  4239. worksStudent2[toolIndex].length > 0
  4240. "
  4241. >
  4242. <div
  4243. class="works"
  4244. style="
  4245. width: 200px;
  4246. height: 140px;
  4247. margin: 10px 10px 10px 0;
  4248. border-radius: 15px;
  4249. box-shadow: 0 0 6px 1px #dfdada;
  4250. "
  4251. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4252. ? worksStudent2[toolIndex]
  4253. : worksStudent2[toolIndex].slice(0, 6)"
  4254. :key="wIndex"
  4255. :class="w.type == 1 ? 'isTypeOne' : ''"
  4256. >
  4257. <div class="workImg">
  4258. <img
  4259. :src="word2"
  4260. @click="downloadFile(w.works)"
  4261. v-if="w.type == 12"
  4262. alt
  4263. />
  4264. <img
  4265. :src="word2"
  4266. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  4267. v-else-if="w.type == 15"
  4268. alt
  4269. />
  4270. <div
  4271. class="answerScore"
  4272. v-if="w.score"
  4273. @click.stop="openScore(w)"
  4274. :class="{
  4275. rightW:
  4276. w.userid == userid ||
  4277. tType == 1 ||
  4278. tType == 4 ||
  4279. w.ateacher == userid,
  4280. }"
  4281. >
  4282. {{ JSON.parse(w.score).wScore }}分
  4283. </div>
  4284. <div
  4285. class="answerScore"
  4286. @click.stop="openScore(w)"
  4287. v-else-if="courseDetail.userid == userid"
  4288. :class="{
  4289. rightW:
  4290. w.userid == userid ||
  4291. tType == 1 ||
  4292. tType == 4 ||
  4293. w.ateacher == userid,
  4294. }"
  4295. >
  4296. 评分
  4297. </div>
  4298. <img
  4299. class="deleteImg"
  4300. src="../../assets/deleteworks.png"
  4301. v-if="w.userid == userid || tType == 1 || tType == 4"
  4302. @click.stop="deleteWorks(w.wid)"
  4303. alt
  4304. />
  4305. </div>
  4306. <div class="comment" style="min-width: 200px">
  4307. <div class="worksName">
  4308. <div>{{ w.sName }}</div>
  4309. </div>
  4310. <div class="commentList">
  4311. <div class="commentList">
  4312. <div
  4313. class="commentImg"
  4314. @click="
  4315. isLikes(w.wid, userid, 1, null, w.isLikes)
  4316. "
  4317. >
  4318. <img
  4319. :src="w.isLikes == true ? likes : noLikes"
  4320. alt=""
  4321. />
  4322. </div>
  4323. <div>{{ w.likesCount }}</div>
  4324. </div>
  4325. <div class="commentList" style="margin-right: 15px">
  4326. <div
  4327. class="commentImg"
  4328. @click="commentOther(w, toolIndex, wIndex)"
  4329. >
  4330. <img
  4331. src="../../assets/icon/comment/comment.png"
  4332. alt=""
  4333. />
  4334. </div>
  4335. <div>{{ w.commentCount }}</div>
  4336. </div>
  4337. </div>
  4338. </div>
  4339. </div>
  4340. </div>
  4341. <div class="noWorksS">
  4342. <div
  4343. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4344. :key="sIndex"
  4345. class="noWorksName"
  4346. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4347. :class="{ isWork: s.type == '2' }"
  4348. >
  4349. {{ s.student }}
  4350. </div>
  4351. </div>
  4352. </div>
  4353. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4354. <div
  4355. class="zuoyeYulan"
  4356. v-if="
  4357. worksStudent2.length &&
  4358. worksStudent2[toolIndex].length > 0
  4359. "
  4360. >
  4361. <span>作业预览</span>
  4362. <div
  4363. class="corOpen"
  4364. @click="contract(toolIndex)"
  4365. v-if="
  4366. worksStudent2[toolIndex].length > 6 &&
  4367. isCloseList[toolIndex].isClose == 0
  4368. "
  4369. >
  4370. 收缩
  4371. </div>
  4372. <div
  4373. class="corOpen"
  4374. @click="contract(toolIndex)"
  4375. v-if="isCloseList[toolIndex].isClose == 1"
  4376. >
  4377. 展开
  4378. </div>
  4379. </div>
  4380. <div
  4381. class="worksDetailBox"
  4382. v-if="
  4383. worksStudent2.length &&
  4384. worksStudent2[toolIndex].length > 0
  4385. "
  4386. >
  4387. <div
  4388. class="works"
  4389. style="
  4390. width: 200px;
  4391. height: 140px;
  4392. margin: 10px 10px 10px 0;
  4393. border-radius: 15px;
  4394. box-shadow: 0 0 6px 1px #dfdada;
  4395. "
  4396. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4397. ? worksStudent2[toolIndex]
  4398. : worksStudent2[toolIndex].slice(0, 6)"
  4399. :key="wIndex"
  4400. :class="w.type == 1 ? 'isTypeOne' : ''"
  4401. >
  4402. <div class="workImg" v-if="w.type == 0">
  4403. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4404. <img :src="w.works" @click="previewImg(w.works)" alt />
  4405. <div
  4406. class="answerScore"
  4407. v-if="w.score"
  4408. @click.stop="openScore(w)"
  4409. :class="{
  4410. rightW:
  4411. w.userid == userid ||
  4412. tType == 1 ||
  4413. tType == 4 ||
  4414. w.ateacher == userid,
  4415. }"
  4416. >
  4417. {{ JSON.parse(w.score).wScore }}分
  4418. </div>
  4419. <div
  4420. class="answerScore"
  4421. @click.stop="openScore(w)"
  4422. v-else-if="courseDetail.userid == userid"
  4423. :class="{
  4424. rightW:
  4425. w.userid == userid ||
  4426. tType == 1 ||
  4427. tType == 4 ||
  4428. w.ateacher == userid,
  4429. }"
  4430. >
  4431. 评分
  4432. </div>
  4433. <img
  4434. class="deleteImg"
  4435. src="../../assets/deleteworks.png"
  4436. v-if="w.userid == userid || tType == 1 || tType == 4"
  4437. @click.stop="deleteWorks(w.wid)"
  4438. alt
  4439. />
  4440. </div>
  4441. <div
  4442. class="workImg"
  4443. style="cursor: pointer"
  4444. v-if="w.type == 1"
  4445. >
  4446. <img :src="word" @click="openFile(w.works)" alt />
  4447. <!-- @click="openFile(w.works)" -->
  4448. <div
  4449. class="answerScore"
  4450. v-if="w.score"
  4451. @click.stop="openScore(w)"
  4452. :class="{
  4453. rightW:
  4454. w.userid == userid ||
  4455. tType == 1 ||
  4456. tType == 4 ||
  4457. w.ateacher == userid,
  4458. }"
  4459. >
  4460. {{ JSON.parse(w.score).wScore }}分
  4461. </div>
  4462. <div
  4463. class="answerScore"
  4464. @click.stop="openScore(w)"
  4465. v-else-if="courseDetail.userid == userid"
  4466. :class="{
  4467. rightW:
  4468. w.userid == userid ||
  4469. tType == 1 ||
  4470. tType == 4 ||
  4471. w.ateacher == userid,
  4472. }"
  4473. >
  4474. 评分
  4475. </div>
  4476. <img
  4477. class="deleteImg"
  4478. src="../../assets/deleteworks.png"
  4479. v-if="w.userid == userid || tType == 1 || tType == 4"
  4480. @click.stop="deleteWorks(w.wid)"
  4481. alt
  4482. />
  4483. </div>
  4484. <div class="workImg" v-if="w.type == 3">
  4485. <img
  4486. style="cursor: pointer"
  4487. :src="video"
  4488. @click="openVideo(w)"
  4489. alt
  4490. />
  4491. <!-- @click="openVideo(w.works)" -->
  4492. <div
  4493. class="answerScore"
  4494. v-if="w.score"
  4495. @click.stop="openScore(w)"
  4496. :class="{
  4497. rightW:
  4498. w.userid == userid ||
  4499. tType == 1 ||
  4500. tType == 4 ||
  4501. w.ateacher == userid,
  4502. }"
  4503. >
  4504. {{ JSON.parse(w.score).wScore }}分
  4505. </div>
  4506. <div
  4507. class="answerScore"
  4508. @click.stop="openScore(w)"
  4509. v-else-if="courseDetail.userid == userid"
  4510. :class="{
  4511. rightW:
  4512. w.userid == userid ||
  4513. tType == 1 ||
  4514. tType == 4 ||
  4515. w.ateacher == userid,
  4516. }"
  4517. >
  4518. 评分
  4519. </div>
  4520. <img
  4521. class="deleteImg"
  4522. src="../../assets/deleteworks.png"
  4523. v-if="w.userid == userid || tType == 1 || tType == 4"
  4524. @click.stop="deleteWorks(w.wid)"
  4525. alt
  4526. />
  4527. </div>
  4528. <div class="comment" style="min-width: 200px">
  4529. <div class="worksName">
  4530. <div
  4531. style="cursor: pointer"
  4532. @click="
  4533. openSname(w.sName, w.wid, toolIndex, w.userid)
  4534. "
  4535. >
  4536. {{ w.sName }}
  4537. </div>
  4538. </div>
  4539. <div class="commentList">
  4540. <div class="commentList">
  4541. <div
  4542. class="commentImg"
  4543. @click="
  4544. isLikes(w.wid, userid, 1, null, w.isLikes)
  4545. "
  4546. >
  4547. <img
  4548. :src="w.isLikes == true ? likes : noLikes"
  4549. alt=""
  4550. />
  4551. </div>
  4552. <div>{{ w.likesCount }}</div>
  4553. </div>
  4554. <div class="commentList" style="margin-right: 15px">
  4555. <div
  4556. class="commentImg"
  4557. @click="commentOther(w, toolIndex, wIndex)"
  4558. >
  4559. <img
  4560. src="../../assets/icon/comment/comment.png"
  4561. alt=""
  4562. />
  4563. </div>
  4564. <div>{{ w.commentCount }}</div>
  4565. </div>
  4566. </div>
  4567. </div>
  4568. </div>
  4569. </div>
  4570. <div class="noWorksS">
  4571. <div
  4572. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4573. :key="sIndex"
  4574. class="noWorksName"
  4575. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4576. :class="{ isWork: s.type == '2' }"
  4577. >
  4578. {{ s.student }}
  4579. </div>
  4580. </div>
  4581. </div>
  4582. <div
  4583. v-if="
  4584. tType &&
  4585. ((tType == 2 && sIsOpen == true) ||
  4586. tType == 1 ||
  4587. tType == 4) &&
  4588. tool.tool.indexOf(4) != -1
  4589. "
  4590. class="worksBox"
  4591. >
  4592. <div
  4593. class="zuoyeYulan"
  4594. v-if="
  4595. worksStudent2.length &&
  4596. worksStudent2[toolIndex].length > 0
  4597. "
  4598. >
  4599. <div class="worksTop">
  4600. <div>作业预览</div>
  4601. <div
  4602. class="corOpen"
  4603. @click="contract(toolIndex)"
  4604. v-if="
  4605. worksStudent2[toolIndex].length > 6 &&
  4606. isCloseList[toolIndex].isClose == 0
  4607. "
  4608. >
  4609. 收缩
  4610. </div>
  4611. <div
  4612. class="corOpen"
  4613. @click="contract(toolIndex)"
  4614. v-if="isCloseList[toolIndex].isClose == 1"
  4615. >
  4616. 展开
  4617. </div>
  4618. </div>
  4619. </div>
  4620. <div>
  4621. <div
  4622. class="worksDetailBox"
  4623. v-if="
  4624. worksStudent2.length &&
  4625. worksStudent2[toolIndex].length > 0
  4626. "
  4627. >
  4628. <div
  4629. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4630. 0
  4631. ? worksStudent2[toolIndex]
  4632. : worksStudent2[toolIndex].slice(0, 6)"
  4633. :key="wIndex"
  4634. class="isWorksName"
  4635. @click="
  4636. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4637. "
  4638. >
  4639. {{ w.sName }}
  4640. <img
  4641. class="deleteImg deleteImg2"
  4642. src="../../assets/deleteworks.png"
  4643. v-if="w.userid == userid || tType == 1 || tType == 4"
  4644. @click.stop="deleteWorks(w.wid)"
  4645. alt
  4646. />
  4647. </div>
  4648. </div>
  4649. </div>
  4650. <div class="noWorksS">
  4651. <div
  4652. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4653. :key="sIndex"
  4654. class="noWorksName"
  4655. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4656. :class="{ isWork: s.type == '2' }"
  4657. >
  4658. {{ s.student }}
  4659. </div>
  4660. </div>
  4661. </div>
  4662. <div
  4663. v-if="
  4664. tType &&
  4665. ((tType == 2 && sIsOpen == true) ||
  4666. tType == 1 ||
  4667. tType == 4) &&
  4668. tool.tool.indexOf(45) != -1
  4669. "
  4670. class="worksBox"
  4671. >
  4672. <div
  4673. class="zuoyeYulan"
  4674. v-if="
  4675. worksStudent2.length &&
  4676. worksStudent2[toolIndex].length > 0
  4677. "
  4678. >
  4679. <div class="worksTop">
  4680. <div>作业预览</div>
  4681. <div
  4682. class="corOpen"
  4683. @click="contract(toolIndex)"
  4684. v-if="
  4685. worksStudent2[toolIndex].length > 6 &&
  4686. isCloseList[toolIndex].isClose == 0
  4687. "
  4688. >
  4689. 收缩
  4690. </div>
  4691. <div
  4692. class="corOpen"
  4693. @click="contract(toolIndex)"
  4694. v-if="isCloseList[toolIndex].isClose == 1"
  4695. >
  4696. 展开
  4697. </div>
  4698. </div>
  4699. </div>
  4700. <div>
  4701. <div
  4702. class="worksDetailBox"
  4703. v-if="
  4704. worksStudent2.length &&
  4705. worksStudent2[toolIndex].length > 0
  4706. "
  4707. >
  4708. <div
  4709. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4710. 0
  4711. ? worksStudent2[toolIndex]
  4712. : worksStudent2[toolIndex].slice(0, 6)"
  4713. :key="wIndex"
  4714. class="isWorksName"
  4715. @click="
  4716. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4717. "
  4718. >
  4719. {{ w.sName }}
  4720. <img
  4721. class="deleteImg deleteImg2"
  4722. src="../../assets/deleteworks.png"
  4723. v-if="w.userid == userid || tType == 1 || tType == 4"
  4724. @click.stop="deleteWorks(w.wid)"
  4725. alt
  4726. />
  4727. </div>
  4728. </div>
  4729. </div>
  4730. <div class="noWorksS">
  4731. <div
  4732. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4733. :key="sIndex"
  4734. class="noWorksName"
  4735. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4736. :class="{ isWork: s.type == '2' }"
  4737. >
  4738. {{ s.student }}
  4739. </div>
  4740. </div>
  4741. </div>
  4742. <div
  4743. v-if="
  4744. tType &&
  4745. ((tType == 2 && sIsOpen == true) ||
  4746. tType == 1 ||
  4747. tType == 4) &&
  4748. tool.tool.indexOf(15) != -1
  4749. "
  4750. class="worksBox"
  4751. >
  4752. <div
  4753. class="zuoyeYulan"
  4754. v-if="
  4755. worksStudent2.length &&
  4756. worksStudent2[toolIndex].length > 0
  4757. "
  4758. >
  4759. <div class="worksTop">
  4760. <div>作业预览</div>
  4761. <div
  4762. class="corOpen"
  4763. @click="contract(toolIndex)"
  4764. v-if="
  4765. worksStudent2[toolIndex].length > 6 &&
  4766. isCloseList[toolIndex].isClose == 0
  4767. "
  4768. >
  4769. 收缩
  4770. </div>
  4771. <div
  4772. class="corOpen"
  4773. @click="contract(toolIndex)"
  4774. v-if="isCloseList[toolIndex].isClose == 1"
  4775. >
  4776. 展开
  4777. </div>
  4778. </div>
  4779. </div>
  4780. <div
  4781. class="worksDetailBox"
  4782. v-if="
  4783. worksStudent2.length &&
  4784. worksStudent2[toolIndex].length > 0
  4785. "
  4786. >
  4787. <div
  4788. class="works"
  4789. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4790. ? worksStudent2[toolIndex]
  4791. : worksStudent2[toolIndex].slice(0, 6)"
  4792. :key="wIndex"
  4793. >
  4794. <div
  4795. class="workImg"
  4796. style="
  4797. border-radius: 15px;
  4798. box-shadow: #eee 0px 0px 5px 5px;
  4799. "
  4800. >
  4801. <!-- <img
  4802. src="../../assets/icon/works/noImg.png"
  4803. @click="openTools(15, toolIndex, taskCount, w.works)"
  4804. alt=""
  4805. />-->
  4806. <div
  4807. class="answerBg"
  4808. style="border-radius: 15px 15px 0 0"
  4809. @click="commentOther(w, toolIndex, wIndex)"
  4810. >
  4811. <!-- <div>{{ w.sName }}</div> -->
  4812. <div class="answerContent">
  4813. {{ JSON.parse(w.works)[0].answer }}
  4814. </div>
  4815. <div
  4816. class="answerScore"
  4817. v-if="w.score"
  4818. @click.stop="openScore(w)"
  4819. :class="{
  4820. rightW:
  4821. w.userid == userid || tType == 1 || tType == 4,
  4822. }"
  4823. >
  4824. {{ JSON.parse(w.score).wScore }}分
  4825. </div>
  4826. <div
  4827. class="answerScore"
  4828. @click.stop="openScore(w)"
  4829. v-else-if="courseDetail.userid == userid"
  4830. :class="{
  4831. rightW:
  4832. w.userid == userid || tType == 1 || tType == 4,
  4833. }"
  4834. >
  4835. 评分
  4836. </div>
  4837. <img
  4838. class="deleteImg"
  4839. src="../../assets/deleteworks.png"
  4840. v-if="
  4841. w.userid == userid || tType == 1 || tType == 4
  4842. "
  4843. @click.stop="deleteWorks(w.wid)"
  4844. alt
  4845. />
  4846. </div>
  4847. <div class="comment">
  4848. <div class="worksName">
  4849. <div>{{ w.sName }}</div>
  4850. </div>
  4851. <div class="commentList">
  4852. <div
  4853. class="commentImg"
  4854. @click="
  4855. isLikes(w.wid, userid, 1, null, w.isLikes)
  4856. "
  4857. >
  4858. <img
  4859. :src="w.isLikes == true ? likes : noLikes"
  4860. alt=""
  4861. />
  4862. </div>
  4863. <div>{{ w.likesCount }}</div>
  4864. </div>
  4865. <div class="commentList" style="margin-right: 15px">
  4866. <div
  4867. class="commentImg"
  4868. @click="commentOther(w, toolIndex, wIndex)"
  4869. >
  4870. <img
  4871. src="../../assets/icon/comment/comment.png"
  4872. alt=""
  4873. />
  4874. </div>
  4875. <div>{{ w.commentCount }}</div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. </div>
  4880. </div>
  4881. <div class="noWorksS">
  4882. <div
  4883. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4884. :key="sIndex"
  4885. class="noWorksName"
  4886. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4887. :class="{ isWork: s.type == '2' }"
  4888. >
  4889. {{ s.student }}
  4890. </div>
  4891. </div>
  4892. </div>
  4893. <div
  4894. v-if="
  4895. tType &&
  4896. ((tType == 2 && sIsOpen == true) ||
  4897. tType == 1 ||
  4898. tType == 4) &&
  4899. tool.tool.indexOf(1) != -1
  4900. "
  4901. class="worksBox"
  4902. >
  4903. <div
  4904. class="zuoyeYulan"
  4905. v-if="
  4906. worksStudent2.length &&
  4907. worksStudent2[toolIndex].length > 0
  4908. "
  4909. >
  4910. <div class="worksTop">
  4911. <div>作业预览</div>
  4912. <div
  4913. class="corOpen"
  4914. @click="contract(toolIndex)"
  4915. v-if="
  4916. worksStudent2[toolIndex].length > 6 &&
  4917. isCloseList[toolIndex].isClose == 0
  4918. "
  4919. >
  4920. 收缩
  4921. </div>
  4922. <div
  4923. class="corOpen"
  4924. @click="contract(toolIndex)"
  4925. v-if="isCloseList[toolIndex].isClose == 1"
  4926. >
  4927. 展开
  4928. </div>
  4929. </div>
  4930. </div>
  4931. <div
  4932. class="worksDetailBox"
  4933. v-if="
  4934. worksStudent2.length &&
  4935. worksStudent2[toolIndex].length > 0
  4936. "
  4937. >
  4938. <div
  4939. class="works"
  4940. style="
  4941. width: 200px;
  4942. height: 140px;
  4943. margin: 10px 10px 10px 0;
  4944. border-radius: 15px;
  4945. box-shadow: 0 0 6px 1px #dfdada;
  4946. "
  4947. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4948. ? worksStudent2[toolIndex]
  4949. : worksStudent2[toolIndex].slice(0, 6)"
  4950. :key="wIndex"
  4951. >
  4952. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4953. <div class="workImg">
  4954. <img :src="w.works" @click="previewImg(w.works)" alt />
  4955. <div
  4956. class="answerScore"
  4957. v-if="w.score"
  4958. @click.stop="openScore(w)"
  4959. :class="{
  4960. rightW:
  4961. w.userid == userid || tType == 1 || tType == 4,
  4962. }"
  4963. >
  4964. {{ JSON.parse(w.score).wScore }}分
  4965. </div>
  4966. <div
  4967. class="answerScore"
  4968. @click.stop="openScore(w)"
  4969. v-else-if="courseDetail.userid == userid"
  4970. :class="{
  4971. rightW:
  4972. w.userid == userid || tType == 1 || tType == 4,
  4973. }"
  4974. >
  4975. 评分
  4976. </div>
  4977. <img
  4978. class="deleteImg"
  4979. src="../../assets/deleteworks.png"
  4980. v-if="w.userid == userid || tType == 1 || tType == 4"
  4981. @click.stop="deleteWorks(w.wid)"
  4982. alt
  4983. />
  4984. </div>
  4985. <div class="comment" style="min-width: 200px">
  4986. <div class="worksName">
  4987. <div>{{ w.sName }}</div>
  4988. </div>
  4989. <div class="commentList">
  4990. <div class="commentList">
  4991. <div
  4992. class="commentImg"
  4993. @click="
  4994. isLikes(w.wid, userid, 1, null, w.isLikes)
  4995. "
  4996. >
  4997. <img
  4998. :src="w.isLikes == true ? likes : noLikes"
  4999. alt=""
  5000. />
  5001. </div>
  5002. <div>{{ w.likesCount }}</div>
  5003. </div>
  5004. <div class="commentList" style="margin-right: 15px">
  5005. <div
  5006. class="commentImg"
  5007. @click="commentOther(w, toolIndex, wIndex)"
  5008. >
  5009. <img
  5010. src="../../assets/icon/comment/comment.png"
  5011. alt=""
  5012. />
  5013. </div>
  5014. <div>{{ w.commentCount }}</div>
  5015. </div>
  5016. </div>
  5017. </div>
  5018. </div>
  5019. </div>
  5020. <div class="noWorksS">
  5021. <div
  5022. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5023. :key="sIndex"
  5024. class="noWorksName"
  5025. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5026. :class="{ isWork: s.type == '2' }"
  5027. >
  5028. {{ s.student }}
  5029. </div>
  5030. </div>
  5031. </div>
  5032. <div
  5033. v-if="
  5034. tType &&
  5035. ((tType == 2 && sIsOpen == true) ||
  5036. tType == 1 ||
  5037. tType == 4) &&
  5038. tool.tool.indexOf(3) != -1
  5039. "
  5040. class="worksBox"
  5041. >
  5042. <div
  5043. class="zuoyeYulan"
  5044. v-if="
  5045. worksStudent2.length &&
  5046. worksStudent2[toolIndex].length > 0
  5047. "
  5048. >
  5049. <div class="worksTop">
  5050. <div>作业预览</div>
  5051. <div
  5052. class="corOpen"
  5053. @click="contract(toolIndex)"
  5054. v-if="
  5055. worksStudent2[toolIndex].length > 6 &&
  5056. isCloseList[toolIndex].isClose == 0
  5057. "
  5058. >
  5059. 收缩
  5060. </div>
  5061. <div
  5062. class="corOpen"
  5063. @click="contract(toolIndex)"
  5064. v-if="isCloseList[toolIndex].isClose == 1"
  5065. >
  5066. 展开
  5067. </div>
  5068. </div>
  5069. </div>
  5070. <div
  5071. class="worksDetailBox"
  5072. v-if="
  5073. worksStudent2.length &&
  5074. worksStudent2[toolIndex].length > 0
  5075. "
  5076. >
  5077. <div
  5078. class="works"
  5079. style="
  5080. width: 200px;
  5081. height: 140px;
  5082. margin: 10px 10px 10px 0;
  5083. border-radius: 15px;
  5084. box-shadow: 0 0 6px 1px #dfdada;
  5085. "
  5086. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5087. ? worksStudent2[toolIndex]
  5088. : worksStudent2[toolIndex].slice(0, 6)"
  5089. :key="wIndex"
  5090. >
  5091. <!-- @click="previewImg(w.works)" -->
  5092. <div class="workImg">
  5093. <img :src="w.works" @click="previewImg(w.works)" alt />
  5094. <div
  5095. class="answerScore"
  5096. v-if="w.score"
  5097. @click.stop="openScore(w)"
  5098. :class="{
  5099. rightW:
  5100. w.userid == userid || tType == 1 || tType == 4,
  5101. }"
  5102. >
  5103. {{ JSON.parse(w.score).wScore }}分
  5104. </div>
  5105. <div
  5106. class="answerScore"
  5107. @click.stop="openScore(w)"
  5108. v-else-if="courseDetail.userid == userid"
  5109. :class="{
  5110. rightW:
  5111. w.userid == userid || tType == 1 || tType == 4,
  5112. }"
  5113. >
  5114. 评分
  5115. </div>
  5116. <img
  5117. class="deleteImg"
  5118. src="../../assets/deleteworks.png"
  5119. v-if="w.userid == userid || tType == 1 || tType == 4"
  5120. @click.stop="deleteWorks(w.wid)"
  5121. alt
  5122. />
  5123. </div>
  5124. <div class="comment" style="min-width: 200px">
  5125. <div class="worksName">
  5126. <div>{{ w.sName }}</div>
  5127. </div>
  5128. <div class="commentList">
  5129. <div class="commentList">
  5130. <div
  5131. class="commentImg"
  5132. @click="
  5133. isLikes(w.wid, userid, 1, null, w.isLikes)
  5134. "
  5135. >
  5136. <img
  5137. :src="w.isLikes == true ? likes : noLikes"
  5138. alt=""
  5139. />
  5140. </div>
  5141. <div>{{ w.likesCount }}</div>
  5142. </div>
  5143. <div class="commentList" style="margin-right: 15px">
  5144. <div
  5145. class="commentImg"
  5146. @click="commentOther(w, toolIndex, wIndex)"
  5147. >
  5148. <img
  5149. src="../../assets/icon/comment/comment.png"
  5150. alt=""
  5151. />
  5152. </div>
  5153. <div>{{ w.commentCount }}</div>
  5154. </div>
  5155. </div>
  5156. </div>
  5157. </div>
  5158. </div>
  5159. <div class="noWorksS">
  5160. <div
  5161. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5162. :key="sIndex"
  5163. class="noWorksName"
  5164. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5165. :class="{ isWork: s.type == '2' }"
  5166. >
  5167. {{ s.student }}
  5168. </div>
  5169. </div>
  5170. </div>
  5171. <div
  5172. v-if="
  5173. tType &&
  5174. ((tType == 2 && sIsOpen == true) ||
  5175. tType == 1 ||
  5176. tType == 4) &&
  5177. tool.tool.indexOf(6) != -1
  5178. "
  5179. class="worksBox"
  5180. >
  5181. <div
  5182. class="zuoyeYulan"
  5183. v-if="
  5184. worksStudent2.length &&
  5185. worksStudent2[toolIndex].length > 0
  5186. "
  5187. >
  5188. <div class="worksTop">
  5189. <div>作业预览</div>
  5190. <div
  5191. class="corOpen"
  5192. @click="contract(toolIndex)"
  5193. v-if="
  5194. worksStudent[toolIndex].length > 6 &&
  5195. isCloseList[toolIndex].isClose == 0
  5196. "
  5197. >
  5198. 收缩
  5199. </div>
  5200. <div
  5201. class="corOpen"
  5202. @click="contract(toolIndex)"
  5203. v-if="isCloseList[toolIndex].isClose == 1"
  5204. >
  5205. 展开
  5206. </div>
  5207. </div>
  5208. </div>
  5209. <div
  5210. class="worksDetailBox"
  5211. v-if="
  5212. worksStudent2.length &&
  5213. worksStudent2[toolIndex].length > 0
  5214. "
  5215. >
  5216. <div
  5217. class="works"
  5218. style="
  5219. width: 200px;
  5220. height: 140px;
  5221. margin: 10px 10px 10px 0;
  5222. border-radius: 15px;
  5223. box-shadow: 0 0 6px 1px #dfdada;
  5224. "
  5225. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5226. ? worksStudent2[toolIndex]
  5227. : worksStudent2[toolIndex].slice(0, 6)"
  5228. :key="wIndex"
  5229. >
  5230. <!-- @click="previewImg(w.works)" -->
  5231. <div class="workImg">
  5232. <img :src="w.works" @click="previewImg(w.works)" alt />
  5233. <div
  5234. class="answerScore"
  5235. v-if="w.score"
  5236. @click.stop="openScore(w)"
  5237. :class="{
  5238. rightW:
  5239. w.userid == userid || tType == 1 || tType == 4,
  5240. }"
  5241. >
  5242. {{ JSON.parse(w.score).wScore }}分
  5243. </div>
  5244. <div
  5245. class="answerScore"
  5246. @click.stop="openScore(w)"
  5247. v-else-if="courseDetail.userid == userid"
  5248. :class="{
  5249. rightW:
  5250. w.userid == userid || tType == 1 || tType == 4,
  5251. }"
  5252. >
  5253. 评分
  5254. </div>
  5255. <img
  5256. class="deleteImg"
  5257. src="../../assets/deleteworks.png"
  5258. v-if="w.userid == userid || tType == 1 || tType == 4"
  5259. @click.stop="deleteWorks(w.wid)"
  5260. alt
  5261. />
  5262. </div>
  5263. <div class="comment" style="min-width: 200px">
  5264. <div class="worksName">
  5265. <div>{{ w.sName }}</div>
  5266. </div>
  5267. <div class="commentList">
  5268. <div class="commentList">
  5269. <div
  5270. class="commentImg"
  5271. @click="
  5272. isLikes(w.wid, userid, 1, null, w.isLikes)
  5273. "
  5274. >
  5275. <img
  5276. :src="w.isLikes == true ? likes : noLikes"
  5277. alt=""
  5278. />
  5279. </div>
  5280. <div>{{ w.likesCount }}</div>
  5281. </div>
  5282. <div class="commentList" style="margin-right: 15px">
  5283. <div
  5284. class="commentImg"
  5285. @click="commentOther(w, toolIndex, wIndex)"
  5286. >
  5287. <img
  5288. src="../../assets/icon/comment/comment.png"
  5289. alt=""
  5290. />
  5291. </div>
  5292. <div>{{ w.commentCount }}</div>
  5293. </div>
  5294. </div>
  5295. </div>
  5296. </div>
  5297. </div>
  5298. <div class="noWorksS">
  5299. <div
  5300. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5301. :key="sIndex"
  5302. class="noWorksName"
  5303. :class="{ isWork: s.type == '2' }"
  5304. >
  5305. {{ s.student }}
  5306. </div>
  5307. </div>
  5308. </div>
  5309. <div
  5310. v-if="
  5311. tType &&
  5312. ((tType == 2 && sIsOpen == true) ||
  5313. tType == 1 ||
  5314. tType == 4) &&
  5315. tool.tool.indexOf(7) != -1
  5316. "
  5317. class="worksBox"
  5318. >
  5319. <div
  5320. class="zuoyeYulan"
  5321. v-if="
  5322. worksStudent2.length &&
  5323. worksStudent2[toolIndex].length > 0
  5324. "
  5325. >
  5326. <div class="worksTop">
  5327. <div>作业预览</div>
  5328. <div
  5329. class="corOpen"
  5330. @click="contract(toolIndex)"
  5331. v-if="
  5332. worksStudent2[toolIndex].length > 6 &&
  5333. isCloseList[toolIndex].isClose == 0
  5334. "
  5335. >
  5336. 收缩
  5337. </div>
  5338. <div
  5339. class="corOpen"
  5340. @click="contract(toolIndex)"
  5341. v-if="isCloseList[toolIndex].isClose == 1"
  5342. >
  5343. 展开
  5344. </div>
  5345. </div>
  5346. </div>
  5347. <div
  5348. class="worksDetailBox"
  5349. v-if="
  5350. worksStudent2.length &&
  5351. worksStudent2[toolIndex].length > 0
  5352. "
  5353. >
  5354. <div
  5355. class="works"
  5356. style="
  5357. width: 200px;
  5358. height: 140px;
  5359. margin: 10px 10px 10px 0;
  5360. border-radius: 15px;
  5361. box-shadow: 0 0 6px 1px #dfdada;
  5362. "
  5363. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5364. ? worksStudent2[toolIndex]
  5365. : worksStudent2[toolIndex].slice(0, 6)"
  5366. :key="wIndex"
  5367. >
  5368. <!-- @click="previewImg(w.works)" -->
  5369. <div class="workImg">
  5370. <img :src="w.works" @click="previewImg(w.works)" alt />
  5371. <div
  5372. class="answerScore"
  5373. v-if="w.score"
  5374. @click.stop="openScore(w)"
  5375. :class="{
  5376. rightW:
  5377. w.userid == userid || tType == 1 || tType == 4,
  5378. }"
  5379. >
  5380. {{ JSON.parse(w.score).wScore }}分
  5381. </div>
  5382. <div
  5383. class="answerScore"
  5384. @click.stop="openScore(w)"
  5385. v-else-if="courseDetail.userid == userid"
  5386. :class="{
  5387. rightW:
  5388. w.userid == userid || tType == 1 || tType == 4,
  5389. }"
  5390. >
  5391. 评分
  5392. </div>
  5393. <img
  5394. class="deleteImg"
  5395. src="../../assets/deleteworks.png"
  5396. v-if="w.userid == userid || tType == 1 || tType == 4"
  5397. @click.stop="deleteWorks(w.wid)"
  5398. alt
  5399. />
  5400. </div>
  5401. <div class="comment" style="min-width: 200px">
  5402. <div class="worksName">
  5403. <div>{{ w.sName }}</div>
  5404. </div>
  5405. <div class="commentList">
  5406. <div class="commentList">
  5407. <div
  5408. class="commentImg"
  5409. @click="
  5410. isLikes(w.wid, userid, 1, null, w.isLikes)
  5411. "
  5412. >
  5413. <img
  5414. :src="w.isLikes == true ? likes : noLikes"
  5415. alt=""
  5416. />
  5417. </div>
  5418. <div>{{ w.likesCount }}</div>
  5419. </div>
  5420. <div class="commentList" style="margin-right: 15px">
  5421. <div
  5422. class="commentImg"
  5423. @click="commentOther(w, toolIndex, wIndex)"
  5424. >
  5425. <img
  5426. src="../../assets/icon/comment/comment.png"
  5427. alt=""
  5428. />
  5429. </div>
  5430. <div>{{ w.commentCount }}</div>
  5431. </div>
  5432. </div>
  5433. </div>
  5434. </div>
  5435. </div>
  5436. <div class="noWorksS">
  5437. <div
  5438. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5439. :key="sIndex"
  5440. class="noWorksName"
  5441. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5442. :class="{ isWork: s.type == '2' }"
  5443. >
  5444. {{ s.student }}
  5445. </div>
  5446. </div>
  5447. </div>
  5448. <div
  5449. v-if="
  5450. tType &&
  5451. ((tType == 2 && sIsOpen == true) ||
  5452. tType == 1 ||
  5453. tType == 4) &&
  5454. tool.tool.indexOf(26) != -1
  5455. "
  5456. class="worksBox"
  5457. >
  5458. <div
  5459. class="zuoyeYulan"
  5460. v-if="
  5461. worksStudent2.length &&
  5462. worksStudent2[toolIndex].length > 0
  5463. "
  5464. >
  5465. <div class="worksTop">
  5466. <div>作业预览</div>
  5467. <div
  5468. class="corOpen"
  5469. @click="contract(toolIndex)"
  5470. v-if="
  5471. worksStudent2[toolIndex].length > 6 &&
  5472. isCloseList[toolIndex].isClose == 0
  5473. "
  5474. >
  5475. 收缩
  5476. </div>
  5477. <div
  5478. class="corOpen"
  5479. @click="contract(toolIndex)"
  5480. v-if="isCloseList[toolIndex].isClose == 1"
  5481. >
  5482. 展开
  5483. </div>
  5484. </div>
  5485. </div>
  5486. <div
  5487. class="worksDetailBox"
  5488. v-if="
  5489. worksStudent2.length &&
  5490. worksStudent2[toolIndex].length > 0
  5491. "
  5492. >
  5493. <div
  5494. class="works"
  5495. style="width: 240px; height: 140px; overflow: hidden"
  5496. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5497. ? worksStudent2[toolIndex]
  5498. : worksStudent2[toolIndex].slice(0, 6)"
  5499. :key="wIndex"
  5500. :class="w.type == 1 ? 'isTypeOne' : ''"
  5501. >
  5502. <div class="workImg" v-if="w.type == 0">
  5503. <img :src="w.works" @click="previewImg(w.works)" alt />
  5504. <img
  5505. class="deleteImg"
  5506. src="../../assets/deleteworks.png"
  5507. v-if="w.userid == userid || tType == 1 || tType == 4"
  5508. @click.stop="deleteWorks(w.wid)"
  5509. alt
  5510. />
  5511. </div>
  5512. <div class="workImg" v-if="w.type == 1">
  5513. <img :src="word" @click="openFile(w.works)" alt />
  5514. <img
  5515. class="deleteImg"
  5516. src="../../assets/deleteworks.png"
  5517. v-if="w.userid == userid || tType == 1 || tType == 4"
  5518. @click.stop="deleteWorks(w.wid)"
  5519. alt
  5520. />
  5521. </div>
  5522. <div class="worksName">
  5523. <div>{{ w.sName }}</div>
  5524. </div>
  5525. </div>
  5526. </div>
  5527. <div class="noWorksS">
  5528. <div
  5529. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5530. :key="sIndex"
  5531. class="noWorksName"
  5532. :class="{ isWork: s.type == '2' }"
  5533. >
  5534. {{ s.student }}
  5535. </div>
  5536. </div>
  5537. </div>
  5538. <div
  5539. v-if="
  5540. tType &&
  5541. ((tType == 2 && sIsOpen == true) ||
  5542. tType == 1 ||
  5543. tType == 4) &&
  5544. tool.tool.indexOf(40) != -1
  5545. "
  5546. class="worksBox"
  5547. >
  5548. <div
  5549. class="zuoyeYulan"
  5550. v-if="
  5551. worksStudent2.length &&
  5552. worksStudent2[toolIndex].length > 0
  5553. "
  5554. >
  5555. <div class="worksTop">
  5556. <div>作业预览</div>
  5557. <div
  5558. class="corOpen"
  5559. @click="contract(toolIndex)"
  5560. v-if="
  5561. worksStudent2[toolIndex].length > 6 &&
  5562. isCloseList[toolIndex].isClose == 0
  5563. "
  5564. >
  5565. 收缩
  5566. </div>
  5567. <div
  5568. class="corOpen"
  5569. @click="contract(toolIndex)"
  5570. v-if="isCloseList[toolIndex].isClose == 1"
  5571. >
  5572. 展开
  5573. </div>
  5574. </div>
  5575. </div>
  5576. <div
  5577. class="worksDetailBox"
  5578. v-if="
  5579. worksStudent2.length &&
  5580. worksStudent2[toolIndex].length > 0
  5581. "
  5582. >
  5583. <div
  5584. class="works"
  5585. style="
  5586. width: 200px;
  5587. height: 140px;
  5588. margin: 10px 10px 10px 0;
  5589. border-radius: 15px;
  5590. box-shadow: 0 0 6px 1px #dfdada;
  5591. "
  5592. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5593. ? worksStudent2[toolIndex]
  5594. : worksStudent2[toolIndex].slice(0, 6)"
  5595. :key="wIndex"
  5596. :class="w.type == 1 ? 'isTypeOne' : ''"
  5597. >
  5598. <div class="workImg">
  5599. <img
  5600. src="../../assets/icon/works/noImg.png"
  5601. @click="openPj(w.works, toolIndex)"
  5602. alt
  5603. />
  5604. <img
  5605. class="deleteImg"
  5606. src="../../assets/deleteworks.png"
  5607. v-if="w.userid == userid || tType == 1 || tType == 4"
  5608. @click.stop="deleteWorks(w.wid)"
  5609. alt
  5610. />
  5611. </div>
  5612. <div class="comment" style="min-width: 200px">
  5613. <div class="worksName">
  5614. <div>{{ w.sName }}</div>
  5615. </div>
  5616. <div class="commentList">
  5617. <div class="commentList">
  5618. <div
  5619. class="commentImg"
  5620. @click="
  5621. isLikes(w.wid, userid, 1, null, w.isLikes)
  5622. "
  5623. >
  5624. <img
  5625. :src="w.isLikes == true ? likes : noLikes"
  5626. alt=""
  5627. />
  5628. </div>
  5629. <div>{{ w.likesCount }}</div>
  5630. </div>
  5631. <div class="commentList" style="margin-right: 15px">
  5632. <div
  5633. class="commentImg"
  5634. @click="commentOther(w, toolIndex, wIndex)"
  5635. >
  5636. <img
  5637. src="../../assets/icon/comment/comment.png"
  5638. alt=""
  5639. />
  5640. </div>
  5641. <div>{{ w.commentCount }}</div>
  5642. </div>
  5643. </div>
  5644. </div>
  5645. </div>
  5646. </div>
  5647. <div class="noWorksS">
  5648. <div
  5649. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5650. :key="sIndex"
  5651. class="noWorksName"
  5652. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5653. :class="{ isWork: s.type == '2' }"
  5654. >
  5655. {{ s.student }}
  5656. </div>
  5657. </div>
  5658. </div>
  5659. <div
  5660. v-if="
  5661. tType &&
  5662. ((tType == 2 && sIsOpen == true) ||
  5663. tType == 1 ||
  5664. tType == 4) &&
  5665. tool.tool.indexOf(41) != -1
  5666. "
  5667. class="worksBox"
  5668. >
  5669. <div class="noWorksS">
  5670. <div
  5671. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5672. :key="sIndex"
  5673. class="noWorksName"
  5674. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5675. :class="{ isWork: s.type == '2' }"
  5676. >
  5677. {{ s.student }}
  5678. </div>
  5679. </div>
  5680. <div
  5681. class="zuoyeYulan"
  5682. v-if="
  5683. worksStudent2.length &&
  5684. worksStudent2[toolIndex].length > 0
  5685. "
  5686. >
  5687. <div class="worksTop">
  5688. <div>作业预览</div>
  5689. <div
  5690. class="corOpen"
  5691. @click="contract(toolIndex)"
  5692. v-if="
  5693. worksStudent2[toolIndex].length > 6 &&
  5694. isCloseList[toolIndex].isClose == 0
  5695. "
  5696. >
  5697. 收缩
  5698. </div>
  5699. <div
  5700. class="corOpen"
  5701. @click="contract(toolIndex)"
  5702. v-if="isCloseList[toolIndex].isClose == 1"
  5703. >
  5704. 展开
  5705. </div>
  5706. </div>
  5707. </div>
  5708. <div
  5709. class="worksDetailBox"
  5710. v-if="
  5711. worksStudent2.length &&
  5712. worksStudent2[toolIndex].length > 0
  5713. "
  5714. >
  5715. <div
  5716. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5717. ? worksStudent2[toolIndex]
  5718. : worksStudent2[toolIndex].slice(0, 6)"
  5719. :key="wIndex"
  5720. class="isWorksName"
  5721. @click="openXz(w, toolIndex)"
  5722. >
  5723. {{ w.sName }}
  5724. <img
  5725. class="deleteImg deleteImg2"
  5726. src="../../assets/deleteworks.png"
  5727. v-if="w.userid == userid || tType == 1 || tType == 4"
  5728. @click.stop="deleteWorks(w.wid)"
  5729. alt
  5730. />
  5731. </div>
  5732. </div>
  5733. </div>
  5734. <div
  5735. v-if="
  5736. tType &&
  5737. ((tType == 2 && sIsOpen == true) ||
  5738. tType == 1 ||
  5739. tType == 4) &&
  5740. tool.tool.indexOf(47) != -1
  5741. "
  5742. class="worksBox"
  5743. >
  5744. <div class="noWorksS">
  5745. <div
  5746. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5747. :key="sIndex"
  5748. class="noWorksName"
  5749. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5750. :class="{ isWork: s.type == '2' }"
  5751. >
  5752. {{ s.student }}
  5753. </div>
  5754. </div>
  5755. <div
  5756. class="zuoyeYulan"
  5757. v-if="
  5758. worksStudent2.length &&
  5759. worksStudent2[toolIndex].length > 0
  5760. "
  5761. >
  5762. <div class="worksTop">
  5763. <div>作业预览</div>
  5764. <div
  5765. class="corOpen"
  5766. @click="contract(toolIndex)"
  5767. v-if="
  5768. worksStudent2[toolIndex].length > 6 &&
  5769. isCloseList[toolIndex].isClose == 0
  5770. "
  5771. >
  5772. 收缩
  5773. </div>
  5774. <div
  5775. class="corOpen"
  5776. @click="contract(toolIndex)"
  5777. v-if="isCloseList[toolIndex].isClose == 1"
  5778. >
  5779. 展开
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <div
  5784. class="worksDetailBox"
  5785. v-if="
  5786. worksStudent2.length &&
  5787. worksStudent2[toolIndex].length > 0
  5788. "
  5789. >
  5790. <!-- @click="openXz(w, toolIndex)" -->
  5791. <div
  5792. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5793. ? worksStudent2[toolIndex]
  5794. : worksStudent2[toolIndex].slice(0, 6)"
  5795. :key="wIndex"
  5796. class="isWorksName"
  5797. @click="openSen(w, toolIndex)"
  5798. >
  5799. {{ w.sName }}
  5800. <img
  5801. class="deleteImg deleteImg2"
  5802. src="../../assets/deleteworks.png"
  5803. v-if="w.userid == userid || tType == 1 || tType == 4"
  5804. @click.stop="deleteWorks(w.wid)"
  5805. alt
  5806. />
  5807. </div>
  5808. </div>
  5809. </div>
  5810. <div
  5811. v-if="
  5812. tType &&
  5813. ((tType == 2 && sIsOpen == true) ||
  5814. tType == 1 ||
  5815. tType == 4) &&
  5816. tool.tool.indexOf(48) != -1
  5817. "
  5818. class="worksBox"
  5819. >
  5820. <div class="noWorksS">
  5821. <div
  5822. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5823. :key="sIndex"
  5824. class="noWorksName"
  5825. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5826. :class="{ isWork: s.type == '2' }"
  5827. >
  5828. {{ s.student }}
  5829. </div>
  5830. </div>
  5831. <div
  5832. class="zuoyeYulan"
  5833. v-if="
  5834. worksStudent2.length &&
  5835. worksStudent2[toolIndex].length > 0
  5836. "
  5837. >
  5838. <div class="worksTop">
  5839. <div>作业预览</div>
  5840. <div
  5841. class="corOpen"
  5842. @click="contract(toolIndex)"
  5843. v-if="
  5844. worksStudent2[toolIndex].length > 6 &&
  5845. isCloseList[toolIndex].isClose == 0
  5846. "
  5847. >
  5848. 收缩
  5849. </div>
  5850. <div
  5851. class="corOpen"
  5852. @click="contract(toolIndex)"
  5853. v-if="isCloseList[toolIndex].isClose == 1"
  5854. >
  5855. 展开
  5856. </div>
  5857. </div>
  5858. </div>
  5859. <div
  5860. class="worksDetailBox"
  5861. v-if="
  5862. worksStudent2.length &&
  5863. worksStudent2[toolIndex].length > 0
  5864. "
  5865. >
  5866. <div
  5867. class="works"
  5868. style="
  5869. width: 200px;
  5870. height: 140px;
  5871. margin: 10px 10px 10px 0;
  5872. border-radius: 15px;
  5873. box-shadow: 0 0 6px 1px #dfdada;
  5874. "
  5875. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5876. ? worksStudent2[toolIndex]
  5877. : worksStudent2[toolIndex].slice(0, 6)"
  5878. :key="wIndex"
  5879. :class="w.type == 1 ? 'isTypeOne' : ''"
  5880. >
  5881. <div class="workImg">
  5882. <img :src="word" @click="openTable(w)" alt />
  5883. <!-- @click="openFile(w.works)" -->
  5884. <div
  5885. class="answerScore"
  5886. v-if="w.score"
  5887. @click.stop="openScore(w)"
  5888. :class="{
  5889. rightW:
  5890. w.userid == userid ||
  5891. tType == 1 ||
  5892. tType == 4 ||
  5893. w.ateacher == userid,
  5894. }"
  5895. >
  5896. {{ JSON.parse(w.score).wScore }}分
  5897. </div>
  5898. <div
  5899. class="answerScore"
  5900. @click.stop="openScore(w)"
  5901. v-else-if="courseDetail.userid == userid"
  5902. :class="{
  5903. rightW:
  5904. w.userid == userid ||
  5905. tType == 1 ||
  5906. tType == 4 ||
  5907. w.ateacher == userid,
  5908. }"
  5909. >
  5910. 评分
  5911. </div>
  5912. <img
  5913. class="deleteImg"
  5914. src="../../assets/deleteworks.png"
  5915. v-if="w.userid == userid || tType == 1 || tType == 4"
  5916. @click.stop="deleteWorks(w.wid)"
  5917. alt
  5918. />
  5919. </div>
  5920. <div class="comment" style="min-width: 200px">
  5921. <div class="worksName">
  5922. <div>{{ w.sName }}</div>
  5923. </div>
  5924. <div class="commentList">
  5925. <div class="commentList">
  5926. <div
  5927. class="commentImg"
  5928. @click="
  5929. isLikes(w.wid, userid, 1, null, w.isLikes)
  5930. "
  5931. >
  5932. <img
  5933. :src="w.isLikes == true ? likes : noLikes"
  5934. alt=""
  5935. />
  5936. </div>
  5937. <div>{{ w.likesCount }}</div>
  5938. </div>
  5939. <div class="commentList" style="margin-right: 15px">
  5940. <div
  5941. class="commentImg"
  5942. @click="commentOther(w, toolIndex, wIndex)"
  5943. >
  5944. <img
  5945. src="../../assets/icon/comment/comment.png"
  5946. alt=""
  5947. />
  5948. </div>
  5949. <div>{{ w.commentCount }}</div>
  5950. </div>
  5951. </div>
  5952. </div>
  5953. </div>
  5954. </div>
  5955. </div>
  5956. <div
  5957. v-if="
  5958. tType &&
  5959. ((tType == 2 && sIsOpen == true) ||
  5960. tType == 1 ||
  5961. tType == 4) &&
  5962. tool.tool.indexOf(52) != -1
  5963. "
  5964. class="worksBox"
  5965. >
  5966. <div class="noWorksS">
  5967. <div
  5968. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5969. :key="sIndex"
  5970. class="noWorksName"
  5971. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5972. :class="{ isWork: s.type == '2' }"
  5973. >
  5974. {{ s.student }}
  5975. </div>
  5976. </div>
  5977. <div
  5978. class="zuoyeYulan"
  5979. v-if="
  5980. worksStudent2.length &&
  5981. worksStudent2[toolIndex].length > 0
  5982. "
  5983. >
  5984. <div class="worksTop">
  5985. <div>作业预览</div>
  5986. <div
  5987. class="corOpen"
  5988. @click="contract(toolIndex)"
  5989. v-if="
  5990. worksStudent2[toolIndex].length > 6 &&
  5991. isCloseList[toolIndex].isClose == 0
  5992. "
  5993. >
  5994. 收缩
  5995. </div>
  5996. <div
  5997. class="corOpen"
  5998. @click="contract(toolIndex)"
  5999. v-if="isCloseList[toolIndex].isClose == 1"
  6000. >
  6001. 展开
  6002. </div>
  6003. </div>
  6004. </div>
  6005. <div
  6006. class="worksDetailBox"
  6007. v-if="
  6008. worksStudent2.length &&
  6009. worksStudent2[toolIndex].length > 0
  6010. "
  6011. >
  6012. <div
  6013. class="works"
  6014. style="
  6015. width: 200px;
  6016. height: 140px;
  6017. margin: 10px 10px 10px 0;
  6018. border-radius: 15px;
  6019. box-shadow: 0 0 6px 1px #dfdada;
  6020. "
  6021. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6022. ? worksStudent2[toolIndex]
  6023. : worksStudent2[toolIndex].slice(0, 6)"
  6024. :key="wIndex"
  6025. :class="w.type == 1 ? 'isTypeOne' : ''"
  6026. >
  6027. <div class="workImg">
  6028. <img :src="word" @click="openWord(w)" alt />
  6029. <!-- @click="openFile(w.works)" -->
  6030. <div
  6031. class="answerScore"
  6032. v-if="w.score"
  6033. @click.stop="openScore(w)"
  6034. :class="{
  6035. rightW:
  6036. w.userid == userid ||
  6037. tType == 1 ||
  6038. tType == 4 ||
  6039. w.ateacher == userid,
  6040. }"
  6041. >
  6042. {{ JSON.parse(w.score).wScore }}分
  6043. </div>
  6044. <div
  6045. class="answerScore"
  6046. @click.stop="openScore(w)"
  6047. v-else-if="courseDetail.userid == userid"
  6048. :class="{
  6049. rightW:
  6050. w.userid == userid ||
  6051. tType == 1 ||
  6052. tType == 4 ||
  6053. w.ateacher == userid,
  6054. }"
  6055. >
  6056. 评分
  6057. </div>
  6058. <img
  6059. class="deleteImg"
  6060. src="../../assets/deleteworks.png"
  6061. v-if="w.userid == userid || tType == 1 || tType == 4"
  6062. @click.stop="deleteWorks(w.wid)"
  6063. alt
  6064. />
  6065. </div>
  6066. <div class="comment" style="min-width: 200px">
  6067. <div class="worksName">
  6068. <div>{{ w.sName }}</div>
  6069. </div>
  6070. <div class="commentList">
  6071. <div class="commentList">
  6072. <div
  6073. class="commentImg"
  6074. @click="
  6075. isLikes(w.wid, userid, 1, null, w.isLikes)
  6076. "
  6077. >
  6078. <img
  6079. :src="w.isLikes == true ? likes : noLikes"
  6080. alt=""
  6081. />
  6082. </div>
  6083. <div>{{ w.likesCount }}</div>
  6084. </div>
  6085. <div class="commentList" style="margin-right: 15px">
  6086. <div
  6087. class="commentImg"
  6088. @click="commentOther(w, toolIndex, wIndex)"
  6089. >
  6090. <img
  6091. src="../../assets/icon/comment/comment.png"
  6092. alt=""
  6093. />
  6094. </div>
  6095. <div>{{ w.commentCount }}</div>
  6096. </div>
  6097. </div>
  6098. </div>
  6099. </div>
  6100. </div>
  6101. </div>
  6102. </div>
  6103. </div>
  6104. <div
  6105. class="vedioBox"
  6106. v-if="
  6107. arrayToArray(tool.tool, isWorkTool).length &&
  6108. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  6109. "
  6110. >
  6111. <!-- <div
  6112. class="queTop"
  6113. style="
  6114. font-size: 25px;
  6115. padding: 15px 0 15px 37px;
  6116. font-weight: bold;
  6117. "
  6118. >
  6119. 工作区
  6120. </div> -->
  6121. <div class="tool_work_box">
  6122. <div
  6123. v-if="
  6124. tType &&
  6125. ((tType == 2 && sIsOpen == true) ||
  6126. tType == 1 ||
  6127. tType == 4) &&
  6128. tool.tool.indexOf(16) != -1
  6129. "
  6130. class="worksBox"
  6131. >
  6132. <div
  6133. class="zuoyeYulan"
  6134. v-if="
  6135. worksStudent.length && worksStudent[toolIndex].length > 0
  6136. "
  6137. >
  6138. <div class="worksTop">
  6139. <div>作业预览</div>
  6140. <div
  6141. class="corOpen"
  6142. @click="contract(toolIndex)"
  6143. v-if="
  6144. worksStudent[toolIndex].length > 6 &&
  6145. isCloseList[toolIndex].isClose == 0
  6146. "
  6147. >
  6148. 收缩
  6149. </div>
  6150. <div
  6151. class="corOpen"
  6152. @click="contract(toolIndex)"
  6153. v-if="isCloseList[toolIndex].isClose == 1"
  6154. >
  6155. 展开
  6156. </div>
  6157. </div>
  6158. </div>
  6159. <div
  6160. class="worksDetailBox"
  6161. v-if="
  6162. worksStudent.length && worksStudent[toolIndex].length > 0
  6163. "
  6164. >
  6165. <div
  6166. class="works"
  6167. style="
  6168. width: 200px;
  6169. height: 140px;
  6170. margin: 10px 10px 10px 0;
  6171. border-radius: 15px;
  6172. box-shadow: 0 0 6px 1px #dfdada;
  6173. "
  6174. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6175. ? worksStudent[toolIndex]
  6176. : worksStudent[toolIndex].slice(0, 6)"
  6177. :key="wIndex"
  6178. :class="w.type == 1 ? 'isTypeOne' : ''"
  6179. >
  6180. <div class="workImg" v-if="w.type == 0">
  6181. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6182. <img :src="w.works" @click="previewImg(w.works)" alt />
  6183. <div
  6184. class="answerScore"
  6185. v-if="w.score"
  6186. @click.stop="openScore(w)"
  6187. :class="{
  6188. rightW:
  6189. w.userid == userid ||
  6190. tType == 1 ||
  6191. tType == 4 ||
  6192. w.ateacher == userid,
  6193. }"
  6194. >
  6195. {{ JSON.parse(w.score).wScore }}分
  6196. </div>
  6197. <div
  6198. class="answerScore"
  6199. @click.stop="openScore(w)"
  6200. v-else-if="courseDetail.userid == userid"
  6201. :class="{
  6202. rightW:
  6203. w.userid == userid ||
  6204. tType == 1 ||
  6205. tType == 4 ||
  6206. w.ateacher == userid,
  6207. }"
  6208. >
  6209. 评分
  6210. </div>
  6211. <img
  6212. class="deleteImg"
  6213. src="../../assets/deleteworks.png"
  6214. v-if="w.userid == userid || tType == 1 || tType == 4"
  6215. @click.stop="deleteWorks(w.wid)"
  6216. alt
  6217. />
  6218. </div>
  6219. <div class="workImg" v-if="w.type == 1">
  6220. <img :src="word" @click="openFile(w.works)" alt />
  6221. <!-- @click="openFile(w.works)" -->
  6222. <div
  6223. class="answerScore"
  6224. v-if="w.score"
  6225. @click.stop="openScore(w)"
  6226. :class="{
  6227. rightW:
  6228. w.userid == userid ||
  6229. tType == 1 ||
  6230. tType == 4 ||
  6231. w.ateacher == userid,
  6232. }"
  6233. >
  6234. {{ JSON.parse(w.score).wScore }}分
  6235. </div>
  6236. <div
  6237. class="answerScore"
  6238. @click.stop="openScore(w)"
  6239. v-else-if="courseDetail.userid == userid"
  6240. :class="{
  6241. rightW:
  6242. w.userid == userid ||
  6243. tType == 1 ||
  6244. tType == 4 ||
  6245. w.ateacher == userid,
  6246. }"
  6247. >
  6248. 评分
  6249. </div>
  6250. <img
  6251. class="deleteImg"
  6252. src="../../assets/deleteworks.png"
  6253. v-if="w.userid == userid || tType == 1 || tType == 4"
  6254. @click.stop="deleteWorks(w.wid)"
  6255. alt
  6256. />
  6257. </div>
  6258. <div class="workImg" v-if="w.type == 3">
  6259. <img
  6260. style="cursor: pointer"
  6261. :src="video"
  6262. @click="openVideo(w)"
  6263. alt
  6264. />
  6265. <!-- @click="openVideo(w.works)" -->
  6266. <div
  6267. class="answerScore"
  6268. v-if="w.score"
  6269. @click.stop="openScore(w)"
  6270. :class="{
  6271. rightW:
  6272. w.userid == userid ||
  6273. tType == 1 ||
  6274. tType == 4 ||
  6275. w.ateacher == userid,
  6276. }"
  6277. >
  6278. {{ JSON.parse(w.score).wScore }}分
  6279. </div>
  6280. <div
  6281. class="answerScore"
  6282. @click.stop="openScore(w)"
  6283. v-else-if="courseDetail.userid == userid"
  6284. :class="{
  6285. rightW:
  6286. w.userid == userid ||
  6287. tType == 1 ||
  6288. tType == 4 ||
  6289. w.ateacher == userid,
  6290. }"
  6291. >
  6292. 评分
  6293. </div>
  6294. <img
  6295. class="deleteImg"
  6296. src="../../assets/deleteworks.png"
  6297. v-if="w.userid == userid || tType == 1 || tType == 4"
  6298. @click.stop="deleteWorks(w.wid)"
  6299. alt
  6300. />
  6301. </div>
  6302. <div class="workImg" v-if="w.type == 12">
  6303. <img
  6304. style="cursor: pointer"
  6305. :src="word2"
  6306. @click="downloadFile(w.works)"
  6307. alt
  6308. />
  6309. <!-- @click="openVideo(w.works)" -->
  6310. <div
  6311. class="answerScore"
  6312. v-if="w.score"
  6313. @click.stop="openScore(w)"
  6314. :class="{
  6315. rightW:
  6316. w.userid == userid ||
  6317. tType == 1 ||
  6318. tType == 4 ||
  6319. w.ateacher == userid,
  6320. }"
  6321. >
  6322. {{ JSON.parse(w.score).wScore }}分
  6323. </div>
  6324. <div
  6325. class="answerScore"
  6326. @click.stop="openScore(w)"
  6327. v-else-if="courseDetail.userid == userid"
  6328. :class="{
  6329. rightW:
  6330. w.userid == userid ||
  6331. tType == 1 ||
  6332. tType == 4 ||
  6333. w.ateacher == userid,
  6334. }"
  6335. >
  6336. 评分
  6337. </div>
  6338. <img
  6339. class="deleteImg"
  6340. src="../../assets/deleteworks.png"
  6341. v-if="w.userid == userid || tType == 1 || tType == 4"
  6342. @click.stop="deleteWorks(w.wid)"
  6343. alt
  6344. />
  6345. </div>
  6346. <div class="comment" style="min-width: 200px">
  6347. <div class="worksName">
  6348. <div>{{ w.sName }}</div>
  6349. </div>
  6350. <div class="commentList">
  6351. <div class="commentList">
  6352. <div
  6353. class="commentImg"
  6354. @click="
  6355. isLikes(w.wid, userid, 1, null, w.isLikes)
  6356. "
  6357. >
  6358. <img
  6359. :src="w.isLikes == true ? likes : noLikes"
  6360. alt=""
  6361. />
  6362. </div>
  6363. <div>{{ w.likesCount }}</div>
  6364. </div>
  6365. <div class="commentList" style="margin-right: 15px">
  6366. <div
  6367. class="commentImg"
  6368. @click="commentOther(w, toolIndex, wIndex)"
  6369. >
  6370. <img
  6371. src="../../assets/icon/comment/comment.png"
  6372. alt=""
  6373. />
  6374. </div>
  6375. <div>{{ w.commentCount }}</div>
  6376. </div>
  6377. </div>
  6378. </div>
  6379. </div>
  6380. </div>
  6381. <div class="noWorksS">
  6382. <div
  6383. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6384. :key="sIndex"
  6385. class="noWorksName"
  6386. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  6387. :class="{ isWork: s.type == '2' }"
  6388. >
  6389. {{ s.student }}
  6390. </div>
  6391. </div>
  6392. </div>
  6393. <div
  6394. v-if="
  6395. tType &&
  6396. ((tType == 2 && sIsOpen == true) ||
  6397. tType == 1 ||
  6398. tType == 4) &&
  6399. tool.tool.indexOf(32) != -1
  6400. "
  6401. class="worksBox"
  6402. >
  6403. <div
  6404. class="zuoyeYulan"
  6405. v-if="
  6406. worksStudent.length && worksStudent[toolIndex].length > 0
  6407. "
  6408. >
  6409. <div class="worksTop">
  6410. <div>作业预览</div>
  6411. <div
  6412. class="corOpen"
  6413. @click="contract(toolIndex)"
  6414. v-if="
  6415. worksStudent[toolIndex].length > 6 &&
  6416. isCloseList[toolIndex].isClose == 0
  6417. "
  6418. >
  6419. 收缩
  6420. </div>
  6421. <div
  6422. class="corOpen"
  6423. @click="contract(toolIndex)"
  6424. v-if="isCloseList[toolIndex].isClose == 1"
  6425. >
  6426. 展开
  6427. </div>
  6428. </div>
  6429. </div>
  6430. <div
  6431. class="worksDetailBox"
  6432. v-if="
  6433. worksStudent.length && worksStudent[toolIndex].length > 0
  6434. "
  6435. >
  6436. <div
  6437. class="works"
  6438. style="
  6439. width: 200px;
  6440. height: 140px;
  6441. margin: 10px 10px 10px 0;
  6442. border-radius: 15px;
  6443. box-shadow: 0 0 6px 1px #dfdada;
  6444. "
  6445. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6446. ? worksStudent[toolIndex]
  6447. : worksStudent[toolIndex].slice(0, 6)"
  6448. :key="wIndex"
  6449. :class="w.type == 1 ? 'isTypeOne' : ''"
  6450. >
  6451. <div class="workImg">
  6452. <img :src="word2" @click="downloadFile(w.works)" alt />
  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="w.userid == userid || tType == 1 || tType == 4"
  6485. @click.stop="deleteWorks(w.wid)"
  6486. alt
  6487. />
  6488. </div>
  6489. <div class="comment" style="min-width: 200px">
  6490. <div class="worksName">
  6491. <div>{{ w.sName }}</div>
  6492. </div>
  6493. <div class="commentList">
  6494. <div class="commentList">
  6495. <div
  6496. class="commentImg"
  6497. @click="
  6498. isLikes(w.wid, userid, 1, null, w.isLikes)
  6499. "
  6500. >
  6501. <img
  6502. :src="w.isLikes == true ? likes : noLikes"
  6503. alt=""
  6504. />
  6505. </div>
  6506. <div>{{ w.likesCount }}</div>
  6507. </div>
  6508. <div class="commentList" style="margin-right: 15px">
  6509. <div
  6510. class="commentImg"
  6511. @click="commentOther(w, toolIndex, wIndex)"
  6512. >
  6513. <img
  6514. src="../../assets/icon/comment/comment.png"
  6515. alt=""
  6516. />
  6517. </div>
  6518. <div>{{ w.commentCount }}</div>
  6519. </div>
  6520. </div>
  6521. </div>
  6522. </div>
  6523. </div>
  6524. <div class="noWorksS">
  6525. <div
  6526. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6527. :key="sIndex"
  6528. class="noWorksName"
  6529. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6530. :class="{ isWork: s.type == '2' }"
  6531. >
  6532. {{ s.student }}
  6533. </div>
  6534. </div>
  6535. </div>
  6536. <div
  6537. v-if="
  6538. tType &&
  6539. ((tType == 2 && sIsOpen == true) ||
  6540. tType == 1 ||
  6541. tType == 4) &&
  6542. tool.tool.indexOf(57) != -1
  6543. "
  6544. class="worksBox"
  6545. >
  6546. <div
  6547. class="zuoyeYulan"
  6548. v-if="
  6549. worksStudent.length && worksStudent[toolIndex].length > 0
  6550. "
  6551. >
  6552. <div class="worksTop">
  6553. <div>作业预览</div>
  6554. <div
  6555. class="corOpen"
  6556. @click="contract(toolIndex)"
  6557. v-if="
  6558. worksStudent[toolIndex].length > 6 &&
  6559. isCloseList[toolIndex].isClose == 0
  6560. "
  6561. >
  6562. 收缩
  6563. </div>
  6564. <div
  6565. class="corOpen"
  6566. @click="contract(toolIndex)"
  6567. v-if="isCloseList[toolIndex].isClose == 1"
  6568. >
  6569. 展开
  6570. </div>
  6571. </div>
  6572. </div>
  6573. <div
  6574. class="worksDetailBox"
  6575. v-if="
  6576. worksStudent.length && worksStudent[toolIndex].length > 0
  6577. "
  6578. >
  6579. <div
  6580. class="works"
  6581. style="
  6582. width: 200px;
  6583. height: 140px;
  6584. margin: 10px 10px 10px 0;
  6585. border-radius: 15px;
  6586. box-shadow: 0 0 6px 1px #dfdada;
  6587. "
  6588. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6589. ? worksStudent[toolIndex]
  6590. : worksStudent[toolIndex].slice(0, 6)"
  6591. :key="wIndex"
  6592. :class="w.type == 1 ? 'isTypeOne' : ''"
  6593. >
  6594. <div class="workImg">
  6595. <img
  6596. :src="word2"
  6597. @click="downloadFile(w.works)"
  6598. v-if="w.type == 12"
  6599. alt
  6600. />
  6601. <img
  6602. :src="word2"
  6603. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6604. v-else-if="w.type == 15"
  6605. alt
  6606. />
  6607. <div
  6608. class="answerScore"
  6609. v-if="w.score"
  6610. @click.stop="openScore(w)"
  6611. :class="{
  6612. rightW:
  6613. w.userid == userid ||
  6614. tType == 1 ||
  6615. tType == 4 ||
  6616. w.ateacher == userid,
  6617. }"
  6618. >
  6619. {{ JSON.parse(w.score).wScore }}分
  6620. </div>
  6621. <div
  6622. class="answerScore"
  6623. @click.stop="openScore(w)"
  6624. v-else-if="courseDetail.userid == userid"
  6625. :class="{
  6626. rightW:
  6627. w.userid == userid ||
  6628. tType == 1 ||
  6629. tType == 4 ||
  6630. w.ateacher == userid,
  6631. }"
  6632. >
  6633. 评分
  6634. </div>
  6635. <img
  6636. class="deleteImg"
  6637. src="../../assets/deleteworks.png"
  6638. v-if="w.userid == userid || tType == 1 || tType == 4"
  6639. @click.stop="deleteWorks(w.wid)"
  6640. alt
  6641. />
  6642. </div>
  6643. <div class="comment" style="min-width: 200px">
  6644. <div class="worksName">
  6645. <div>{{ w.sName }}</div>
  6646. </div>
  6647. <div class="commentList">
  6648. <div class="commentList">
  6649. <div
  6650. class="commentImg"
  6651. @click="
  6652. isLikes(w.wid, userid, 1, null, w.isLikes)
  6653. "
  6654. >
  6655. <img
  6656. :src="w.isLikes == true ? likes : noLikes"
  6657. alt=""
  6658. />
  6659. </div>
  6660. <div>{{ w.likesCount }}</div>
  6661. </div>
  6662. <div class="commentList" style="margin-right: 15px">
  6663. <div
  6664. class="commentImg"
  6665. @click="commentOther(w, toolIndex, wIndex)"
  6666. >
  6667. <img
  6668. src="../../assets/icon/comment/comment.png"
  6669. alt=""
  6670. />
  6671. </div>
  6672. <div>{{ w.commentCount }}</div>
  6673. </div>
  6674. </div>
  6675. </div>
  6676. </div>
  6677. </div>
  6678. <div class="noWorksS">
  6679. <div
  6680. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6681. :key="sIndex"
  6682. class="noWorksName"
  6683. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6684. :class="{ isWork: s.type == '2' }"
  6685. >
  6686. {{ s.student }}
  6687. </div>
  6688. </div>
  6689. </div>
  6690. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6691. <div
  6692. class="zuoyeYulan"
  6693. v-if="
  6694. worksStudent.length && worksStudent[toolIndex].length > 0
  6695. "
  6696. >
  6697. <span>作业预览</span>
  6698. <div
  6699. class="corOpen"
  6700. @click="contract(toolIndex)"
  6701. v-if="
  6702. worksStudent[toolIndex].length > 6 &&
  6703. isCloseList[toolIndex].isClose == 0
  6704. "
  6705. >
  6706. 收缩
  6707. </div>
  6708. <div
  6709. class="corOpen"
  6710. @click="contract(toolIndex)"
  6711. v-if="isCloseList[toolIndex].isClose == 1"
  6712. >
  6713. 展开
  6714. </div>
  6715. </div>
  6716. <div
  6717. class="worksDetailBox"
  6718. v-if="
  6719. worksStudent.length && worksStudent[toolIndex].length > 0
  6720. "
  6721. >
  6722. <div
  6723. class="works"
  6724. style="
  6725. width: 200px;
  6726. height: 140px;
  6727. margin: 10px 10px 10px 0;
  6728. border-radius: 15px;
  6729. box-shadow: 0 0 6px 1px #dfdada;
  6730. "
  6731. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6732. ? worksStudent[toolIndex]
  6733. : worksStudent[toolIndex].slice(0, 6)"
  6734. :key="wIndex"
  6735. :class="w.type == 1 ? 'isTypeOne' : ''"
  6736. >
  6737. <div class="workImg" v-if="w.type == 0">
  6738. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6739. <img :src="w.works" @click="previewImg(w.works)" alt />
  6740. <div
  6741. class="answerScore"
  6742. v-if="w.score"
  6743. @click.stop="openScore(w)"
  6744. :class="{
  6745. rightW:
  6746. w.userid == userid ||
  6747. tType == 1 ||
  6748. tType == 4 ||
  6749. w.ateacher == userid,
  6750. }"
  6751. >
  6752. {{ JSON.parse(w.score).wScore }}分
  6753. </div>
  6754. <div
  6755. class="answerScore"
  6756. @click.stop="openScore(w)"
  6757. v-else-if="courseDetail.userid == userid"
  6758. :class="{
  6759. rightW:
  6760. w.userid == userid ||
  6761. tType == 1 ||
  6762. tType == 4 ||
  6763. w.ateacher == userid,
  6764. }"
  6765. >
  6766. 评分
  6767. </div>
  6768. <img
  6769. class="deleteImg"
  6770. src="../../assets/deleteworks.png"
  6771. v-if="w.userid == userid || tType == 1 || tType == 4"
  6772. @click.stop="deleteWorks(w.wid)"
  6773. alt
  6774. />
  6775. </div>
  6776. <div
  6777. class="workImg"
  6778. style="cursor: pointer"
  6779. v-if="w.type == 1"
  6780. >
  6781. <img :src="word" @click="openFile(w.works)" alt />
  6782. <!-- @click="openFile(w.works)" -->
  6783. <div
  6784. class="answerScore"
  6785. v-if="w.score"
  6786. @click.stop="openScore(w)"
  6787. :class="{
  6788. rightW:
  6789. w.userid == userid ||
  6790. tType == 1 ||
  6791. tType == 4 ||
  6792. w.ateacher == userid,
  6793. }"
  6794. >
  6795. {{ JSON.parse(w.score).wScore }}分
  6796. </div>
  6797. <div
  6798. class="answerScore"
  6799. @click.stop="openScore(w)"
  6800. v-else-if="courseDetail.userid == userid"
  6801. :class="{
  6802. rightW:
  6803. w.userid == userid ||
  6804. tType == 1 ||
  6805. tType == 4 ||
  6806. w.ateacher == userid,
  6807. }"
  6808. >
  6809. 评分
  6810. </div>
  6811. <img
  6812. class="deleteImg"
  6813. src="../../assets/deleteworks.png"
  6814. v-if="w.userid == userid || tType == 1 || tType == 4"
  6815. @click.stop="deleteWorks(w.wid)"
  6816. alt
  6817. />
  6818. </div>
  6819. <div class="workImg" v-if="w.type == 3">
  6820. <img
  6821. style="cursor: pointer"
  6822. :src="video"
  6823. @click="openVideo(w)"
  6824. alt
  6825. />
  6826. <!-- @click="openVideo(w.works)" -->
  6827. <div
  6828. class="answerScore"
  6829. v-if="w.score"
  6830. @click.stop="openScore(w)"
  6831. :class="{
  6832. rightW:
  6833. w.userid == userid ||
  6834. tType == 1 ||
  6835. tType == 4 ||
  6836. w.ateacher == userid,
  6837. }"
  6838. >
  6839. {{ JSON.parse(w.score).wScore }}分
  6840. </div>
  6841. <div
  6842. class="answerScore"
  6843. @click.stop="openScore(w)"
  6844. v-else-if="courseDetail.userid == userid"
  6845. :class="{
  6846. rightW:
  6847. w.userid == userid ||
  6848. tType == 1 ||
  6849. tType == 4 ||
  6850. w.ateacher == userid,
  6851. }"
  6852. >
  6853. 评分
  6854. </div>
  6855. <img
  6856. class="deleteImg"
  6857. src="../../assets/deleteworks.png"
  6858. v-if="w.userid == userid || tType == 1 || tType == 4"
  6859. @click.stop="deleteWorks(w.wid)"
  6860. alt
  6861. />
  6862. </div>
  6863. <div class="comment" style="min-width: 200px">
  6864. <div class="worksName">
  6865. <div
  6866. style="cursor: pointer"
  6867. @click="
  6868. openSname(w.sName, w.wid, toolIndex, w.userid)
  6869. "
  6870. >
  6871. {{ w.sName }}
  6872. </div>
  6873. </div>
  6874. <div class="commentList">
  6875. <div class="commentList">
  6876. <div
  6877. class="commentImg"
  6878. @click="
  6879. isLikes(w.wid, userid, 1, null, w.isLikes)
  6880. "
  6881. >
  6882. <img
  6883. :src="w.isLikes == true ? likes : noLikes"
  6884. alt=""
  6885. />
  6886. </div>
  6887. <div>{{ w.likesCount }}</div>
  6888. </div>
  6889. <div class="commentList" style="margin-right: 15px">
  6890. <div
  6891. class="commentImg"
  6892. @click="commentOther(w, toolIndex, wIndex)"
  6893. >
  6894. <img
  6895. src="../../assets/icon/comment/comment.png"
  6896. alt=""
  6897. />
  6898. </div>
  6899. <div>{{ w.commentCount }}</div>
  6900. </div>
  6901. </div>
  6902. </div>
  6903. </div>
  6904. </div>
  6905. <div class="noWorksS">
  6906. <div
  6907. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6908. :key="sIndex"
  6909. class="noWorksName"
  6910. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6911. :class="{ isWork: s.type == '2' }"
  6912. >
  6913. {{ s.student }}
  6914. </div>
  6915. </div>
  6916. </div>
  6917. <div
  6918. v-if="
  6919. tType &&
  6920. ((tType == 2 && sIsOpen == true) ||
  6921. tType == 1 ||
  6922. tType == 4) &&
  6923. tool.tool.indexOf(4) != -1
  6924. "
  6925. class="worksBox"
  6926. >
  6927. <div
  6928. class="zuoyeYulan"
  6929. v-if="
  6930. worksStudent.length && worksStudent[toolIndex].length > 0
  6931. "
  6932. >
  6933. <div class="worksTop">
  6934. <div>作业预览</div>
  6935. <div
  6936. class="corOpen"
  6937. @click="contract(toolIndex)"
  6938. v-if="
  6939. worksStudent[toolIndex].length > 6 &&
  6940. isCloseList[toolIndex].isClose == 0
  6941. "
  6942. >
  6943. 收缩
  6944. </div>
  6945. <div
  6946. class="corOpen"
  6947. @click="contract(toolIndex)"
  6948. v-if="isCloseList[toolIndex].isClose == 1"
  6949. >
  6950. 展开
  6951. </div>
  6952. </div>
  6953. </div>
  6954. <div>
  6955. <div
  6956. class="worksDetailBox"
  6957. v-if="
  6958. worksStudent.length &&
  6959. worksStudent[toolIndex].length > 0
  6960. "
  6961. >
  6962. <div
  6963. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6964. 0
  6965. ? worksStudent[toolIndex]
  6966. : worksStudent[toolIndex].slice(0, 6)"
  6967. :key="wIndex"
  6968. class="isWorksName"
  6969. @click="
  6970. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6971. "
  6972. >
  6973. {{ w.sName }}
  6974. <img
  6975. class="deleteImg deleteImg2"
  6976. src="../../assets/deleteworks.png"
  6977. v-if="w.userid == userid || tType == 1 || tType == 4"
  6978. @click.stop="deleteWorks(w.wid)"
  6979. alt
  6980. />
  6981. </div>
  6982. </div>
  6983. </div>
  6984. <div class="noWorksS">
  6985. <div
  6986. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6987. :key="sIndex"
  6988. class="noWorksName"
  6989. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6990. :class="{ isWork: s.type == '2' }"
  6991. >
  6992. {{ s.student }}
  6993. </div>
  6994. </div>
  6995. </div>
  6996. <div
  6997. v-if="
  6998. tType &&
  6999. ((tType == 2 && sIsOpen == true) ||
  7000. tType == 1 ||
  7001. tType == 4) &&
  7002. tool.tool.indexOf(45) != -1
  7003. "
  7004. class="worksBox"
  7005. >
  7006. <div
  7007. class="zuoyeYulan"
  7008. v-if="
  7009. worksStudent.length && worksStudent[toolIndex].length > 0
  7010. "
  7011. >
  7012. <div class="worksTop">
  7013. <div>作业预览</div>
  7014. <div
  7015. class="corOpen"
  7016. @click="contract(toolIndex)"
  7017. v-if="
  7018. worksStudent[toolIndex].length > 6 &&
  7019. isCloseList[toolIndex].isClose == 0
  7020. "
  7021. >
  7022. 收缩
  7023. </div>
  7024. <div
  7025. class="corOpen"
  7026. @click="contract(toolIndex)"
  7027. v-if="isCloseList[toolIndex].isClose == 1"
  7028. >
  7029. 展开
  7030. </div>
  7031. </div>
  7032. </div>
  7033. <div>
  7034. <div
  7035. class="worksDetailBox"
  7036. v-if="
  7037. worksStudent.length &&
  7038. worksStudent[toolIndex].length > 0
  7039. "
  7040. >
  7041. <div
  7042. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7043. 0
  7044. ? worksStudent[toolIndex]
  7045. : worksStudent[toolIndex].slice(0, 6)"
  7046. :key="wIndex"
  7047. class="isWorksName"
  7048. @click="
  7049. openTools(45, toolIndex, taskCount, w.works, w.sName)
  7050. "
  7051. >
  7052. {{ w.sName }}
  7053. <img
  7054. class="deleteImg deleteImg2"
  7055. src="../../assets/deleteworks.png"
  7056. v-if="w.userid == userid || tType == 1 || tType == 4"
  7057. @click.stop="deleteWorks(w.wid)"
  7058. alt
  7059. />
  7060. </div>
  7061. </div>
  7062. </div>
  7063. <div class="noWorksS">
  7064. <div
  7065. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7066. :key="sIndex"
  7067. class="noWorksName"
  7068. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  7069. :class="{ isWork: s.type == '2' }"
  7070. >
  7071. {{ s.student }}
  7072. </div>
  7073. </div>
  7074. </div>
  7075. <div
  7076. v-if="
  7077. tType &&
  7078. ((tType == 2 && sIsOpen == true) ||
  7079. tType == 1 ||
  7080. tType == 4) &&
  7081. tool.tool.indexOf(15) != -1
  7082. "
  7083. class="worksBox"
  7084. >
  7085. <div
  7086. class="zuoyeYulan"
  7087. v-if="
  7088. worksStudent.length && worksStudent[toolIndex].length > 0
  7089. "
  7090. >
  7091. <div class="worksTop">
  7092. <div>作业预览</div>
  7093. <div
  7094. class="corOpen"
  7095. @click="contract(toolIndex)"
  7096. v-if="
  7097. worksStudent[toolIndex].length > 6 &&
  7098. isCloseList[toolIndex].isClose == 0
  7099. "
  7100. >
  7101. 收缩
  7102. </div>
  7103. <div
  7104. class="corOpen"
  7105. @click="contract(toolIndex)"
  7106. v-if="isCloseList[toolIndex].isClose == 1"
  7107. >
  7108. 展开
  7109. </div>
  7110. </div>
  7111. </div>
  7112. <div
  7113. class="worksDetailBox"
  7114. v-if="
  7115. worksStudent.length && worksStudent[toolIndex].length > 0
  7116. "
  7117. >
  7118. <div
  7119. class="works"
  7120. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7121. ? worksStudent[toolIndex]
  7122. : worksStudent[toolIndex].slice(0, 6)"
  7123. :key="wIndex"
  7124. >
  7125. <div
  7126. class="workImg"
  7127. style="
  7128. border-radius: 15px;
  7129. box-shadow: #eee 0px 0px 5px 5px;
  7130. "
  7131. >
  7132. <!-- <img
  7133. src="../../assets/icon/works/noImg.png"
  7134. @click="openTools(15, toolIndex, taskCount, w.works)"
  7135. alt=""
  7136. />-->
  7137. <div
  7138. class="answerBg"
  7139. style="border-radius: 15px 15px 0 0"
  7140. @click="commentOther(w, toolIndex, wIndex)"
  7141. >
  7142. <!-- <div>{{ w.sName }}</div> -->
  7143. <div class="answerContent">
  7144. {{ JSON.parse(w.works)[0].answer }}
  7145. </div>
  7146. <div
  7147. class="answerScore"
  7148. v-if="w.score"
  7149. @click.stop="openScore(w)"
  7150. :class="{
  7151. rightW:
  7152. w.userid == userid || tType == 1 || tType == 4,
  7153. }"
  7154. >
  7155. {{ JSON.parse(w.score).wScore }}分
  7156. </div>
  7157. <div
  7158. class="answerScore"
  7159. @click.stop="openScore(w)"
  7160. v-else-if="courseDetail.userid == userid"
  7161. :class="{
  7162. rightW:
  7163. w.userid == userid || tType == 1 || tType == 4,
  7164. }"
  7165. >
  7166. 评分
  7167. </div>
  7168. <img
  7169. class="deleteImg"
  7170. src="../../assets/deleteworks.png"
  7171. v-if="
  7172. w.userid == userid || tType == 1 || tType == 4
  7173. "
  7174. @click.stop="deleteWorks(w.wid)"
  7175. alt
  7176. />
  7177. </div>
  7178. <div class="comment">
  7179. <div class="worksName">
  7180. <div>{{ w.sName }}</div>
  7181. </div>
  7182. <div class="commentList">
  7183. <div
  7184. class="commentImg"
  7185. @click="
  7186. isLikes(w.wid, userid, 1, null, w.isLikes)
  7187. "
  7188. >
  7189. <img
  7190. :src="w.isLikes == true ? likes : noLikes"
  7191. alt=""
  7192. />
  7193. </div>
  7194. <div>{{ w.likesCount }}</div>
  7195. </div>
  7196. <div class="commentList" style="margin-right: 15px">
  7197. <div
  7198. class="commentImg"
  7199. @click="commentOther(w, toolIndex, wIndex)"
  7200. >
  7201. <img
  7202. src="../../assets/icon/comment/comment.png"
  7203. alt=""
  7204. />
  7205. </div>
  7206. <div>{{ w.commentCount }}</div>
  7207. </div>
  7208. </div>
  7209. </div>
  7210. </div>
  7211. </div>
  7212. <div class="noWorksS">
  7213. <div
  7214. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7215. :key="sIndex"
  7216. class="noWorksName"
  7217. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  7218. :class="{ isWork: s.type == '2' }"
  7219. >
  7220. {{ s.student }}
  7221. </div>
  7222. </div>
  7223. </div>
  7224. <div
  7225. v-if="
  7226. tType &&
  7227. ((tType == 2 && sIsOpen == true) ||
  7228. tType == 1 ||
  7229. tType == 4) &&
  7230. tool.tool.indexOf(1) != -1
  7231. "
  7232. class="worksBox"
  7233. >
  7234. <div
  7235. class="zuoyeYulan"
  7236. v-if="
  7237. worksStudent.length && worksStudent[toolIndex].length > 0
  7238. "
  7239. >
  7240. <div class="worksTop">
  7241. <div>作业预览</div>
  7242. <div
  7243. class="corOpen"
  7244. @click="contract(toolIndex)"
  7245. v-if="
  7246. worksStudent[toolIndex].length > 6 &&
  7247. isCloseList[toolIndex].isClose == 0
  7248. "
  7249. >
  7250. 收缩
  7251. </div>
  7252. <div
  7253. class="corOpen"
  7254. @click="contract(toolIndex)"
  7255. v-if="isCloseList[toolIndex].isClose == 1"
  7256. >
  7257. 展开
  7258. </div>
  7259. </div>
  7260. </div>
  7261. <div
  7262. class="worksDetailBox"
  7263. v-if="
  7264. worksStudent.length && worksStudent[toolIndex].length > 0
  7265. "
  7266. >
  7267. <div
  7268. class="works"
  7269. style="
  7270. width: 200px;
  7271. height: 140px;
  7272. margin: 10px 10px 10px 0;
  7273. border-radius: 15px;
  7274. box-shadow: 0 0 6px 1px #dfdada;
  7275. "
  7276. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7277. ? worksStudent[toolIndex]
  7278. : worksStudent[toolIndex].slice(0, 6)"
  7279. :key="wIndex"
  7280. >
  7281. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7282. <div class="workImg">
  7283. <img :src="w.works" @click="previewImg(w.works)" alt />
  7284. <div
  7285. class="answerScore"
  7286. v-if="w.score"
  7287. @click.stop="openScore(w)"
  7288. :class="{
  7289. rightW:
  7290. w.userid == userid || tType == 1 || tType == 4,
  7291. }"
  7292. >
  7293. {{ JSON.parse(w.score).wScore }}分
  7294. </div>
  7295. <div
  7296. class="answerScore"
  7297. @click.stop="openScore(w)"
  7298. v-else-if="courseDetail.userid == userid"
  7299. :class="{
  7300. rightW:
  7301. w.userid == userid || tType == 1 || tType == 4,
  7302. }"
  7303. >
  7304. 评分
  7305. </div>
  7306. <img
  7307. class="deleteImg"
  7308. src="../../assets/deleteworks.png"
  7309. v-if="w.userid == userid || tType == 1 || tType == 4"
  7310. @click.stop="deleteWorks(w.wid)"
  7311. alt
  7312. />
  7313. </div>
  7314. <div class="comment" style="min-width: 200px">
  7315. <div class="worksName">
  7316. <div>{{ w.sName }}</div>
  7317. </div>
  7318. <div class="commentList">
  7319. <div class="commentList">
  7320. <div
  7321. class="commentImg"
  7322. @click="
  7323. isLikes(w.wid, userid, 1, null, w.isLikes)
  7324. "
  7325. >
  7326. <img
  7327. :src="w.isLikes == true ? likes : noLikes"
  7328. alt=""
  7329. />
  7330. </div>
  7331. <div>{{ w.likesCount }}</div>
  7332. </div>
  7333. <div class="commentList" style="margin-right: 15px">
  7334. <div
  7335. class="commentImg"
  7336. @click="commentOther(w, toolIndex, wIndex)"
  7337. >
  7338. <img
  7339. src="../../assets/icon/comment/comment.png"
  7340. alt=""
  7341. />
  7342. </div>
  7343. <div>{{ w.commentCount }}</div>
  7344. </div>
  7345. </div>
  7346. </div>
  7347. </div>
  7348. </div>
  7349. <div class="noWorksS">
  7350. <div
  7351. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7352. :key="sIndex"
  7353. class="noWorksName"
  7354. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7355. :class="{ isWork: s.type == '2' }"
  7356. >
  7357. {{ s.student }}
  7358. </div>
  7359. </div>
  7360. </div>
  7361. <div
  7362. v-if="
  7363. tType &&
  7364. ((tType == 2 && sIsOpen == true) ||
  7365. tType == 1 ||
  7366. tType == 4) &&
  7367. tool.tool.indexOf(3) != -1
  7368. "
  7369. class="worksBox"
  7370. >
  7371. <div
  7372. class="zuoyeYulan"
  7373. v-if="
  7374. worksStudent.length && worksStudent[toolIndex].length > 0
  7375. "
  7376. >
  7377. <div class="worksTop">
  7378. <div>作业预览</div>
  7379. <div
  7380. class="corOpen"
  7381. @click="contract(toolIndex)"
  7382. v-if="
  7383. worksStudent[toolIndex].length > 6 &&
  7384. isCloseList[toolIndex].isClose == 0
  7385. "
  7386. >
  7387. 收缩
  7388. </div>
  7389. <div
  7390. class="corOpen"
  7391. @click="contract(toolIndex)"
  7392. v-if="isCloseList[toolIndex].isClose == 1"
  7393. >
  7394. 展开
  7395. </div>
  7396. </div>
  7397. </div>
  7398. <div
  7399. class="worksDetailBox"
  7400. v-if="
  7401. worksStudent.length && worksStudent[toolIndex].length > 0
  7402. "
  7403. >
  7404. <div
  7405. class="works"
  7406. style="
  7407. width: 200px;
  7408. height: 140px;
  7409. margin: 10px 10px 10px 0;
  7410. border-radius: 15px;
  7411. box-shadow: 0 0 6px 1px #dfdada;
  7412. "
  7413. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7414. ? worksStudent[toolIndex]
  7415. : worksStudent[toolIndex].slice(0, 6)"
  7416. :key="wIndex"
  7417. >
  7418. <!-- @click="previewImg(w.works)" -->
  7419. <div class="workImg">
  7420. <img :src="w.works" @click="previewImg(w.works)" alt />
  7421. <div
  7422. class="answerScore"
  7423. v-if="w.score"
  7424. @click.stop="openScore(w)"
  7425. :class="{
  7426. rightW:
  7427. w.userid == userid || tType == 1 || tType == 4,
  7428. }"
  7429. >
  7430. {{ JSON.parse(w.score).wScore }}分
  7431. </div>
  7432. <div
  7433. class="answerScore"
  7434. @click.stop="openScore(w)"
  7435. v-else-if="courseDetail.userid == userid"
  7436. :class="{
  7437. rightW:
  7438. w.userid == userid || tType == 1 || tType == 4,
  7439. }"
  7440. >
  7441. 评分
  7442. </div>
  7443. <img
  7444. class="deleteImg"
  7445. src="../../assets/deleteworks.png"
  7446. v-if="w.userid == userid || tType == 1 || tType == 4"
  7447. @click.stop="deleteWorks(w.wid)"
  7448. alt
  7449. />
  7450. </div>
  7451. <div class="comment" style="min-width: 200px">
  7452. <div class="worksName">
  7453. <div>{{ w.sName }}</div>
  7454. </div>
  7455. <div class="commentList">
  7456. <div class="commentList">
  7457. <div
  7458. class="commentImg"
  7459. @click="
  7460. isLikes(w.wid, userid, 1, null, w.isLikes)
  7461. "
  7462. >
  7463. <img
  7464. :src="w.isLikes == true ? likes : noLikes"
  7465. alt=""
  7466. />
  7467. </div>
  7468. <div>{{ w.likesCount }}</div>
  7469. </div>
  7470. <div class="commentList" style="margin-right: 15px">
  7471. <div
  7472. class="commentImg"
  7473. @click="commentOther(w, toolIndex, wIndex)"
  7474. >
  7475. <img
  7476. src="../../assets/icon/comment/comment.png"
  7477. alt=""
  7478. />
  7479. </div>
  7480. <div>{{ w.commentCount }}</div>
  7481. </div>
  7482. </div>
  7483. </div>
  7484. </div>
  7485. </div>
  7486. <div class="noWorksS">
  7487. <div
  7488. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7489. :key="sIndex"
  7490. class="noWorksName"
  7491. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7492. :class="{ isWork: s.type == '2' }"
  7493. >
  7494. {{ s.student }}
  7495. </div>
  7496. </div>
  7497. </div>
  7498. <div
  7499. v-if="
  7500. tType &&
  7501. ((tType == 2 && sIsOpen == true) ||
  7502. tType == 1 ||
  7503. tType == 4) &&
  7504. tool.tool.indexOf(6) != -1
  7505. "
  7506. class="worksBox"
  7507. >
  7508. <div
  7509. class="zuoyeYulan"
  7510. v-if="
  7511. worksStudent.length && worksStudent[toolIndex].length > 0
  7512. "
  7513. >
  7514. <div class="worksTop">
  7515. <div>作业预览</div>
  7516. <div
  7517. class="corOpen"
  7518. @click="contract(toolIndex)"
  7519. v-if="
  7520. worksStudent[toolIndex].length > 6 &&
  7521. isCloseList[toolIndex].isClose == 0
  7522. "
  7523. >
  7524. 收缩
  7525. </div>
  7526. <div
  7527. class="corOpen"
  7528. @click="contract(toolIndex)"
  7529. v-if="isCloseList[toolIndex].isClose == 1"
  7530. >
  7531. 展开
  7532. </div>
  7533. </div>
  7534. </div>
  7535. <div
  7536. class="worksDetailBox"
  7537. v-if="
  7538. worksStudent.length && worksStudent[toolIndex].length > 0
  7539. "
  7540. >
  7541. <div
  7542. class="works"
  7543. style="
  7544. width: 200px;
  7545. height: 140px;
  7546. margin: 10px 10px 10px 0;
  7547. border-radius: 15px;
  7548. box-shadow: 0 0 6px 1px #dfdada;
  7549. "
  7550. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7551. ? worksStudent[toolIndex]
  7552. : worksStudent[toolIndex].slice(0, 6)"
  7553. :key="wIndex"
  7554. >
  7555. <!-- @click="previewImg(w.works)" -->
  7556. <div class="workImg">
  7557. <img :src="w.works" @click="previewImg(w.works)" alt />
  7558. <div
  7559. class="answerScore"
  7560. v-if="w.score"
  7561. @click.stop="openScore(w)"
  7562. :class="{
  7563. rightW:
  7564. w.userid == userid || tType == 1 || tType == 4,
  7565. }"
  7566. >
  7567. {{ JSON.parse(w.score).wScore }}分
  7568. </div>
  7569. <div
  7570. class="answerScore"
  7571. @click.stop="openScore(w)"
  7572. v-else-if="courseDetail.userid == userid"
  7573. :class="{
  7574. rightW:
  7575. w.userid == userid || tType == 1 || tType == 4,
  7576. }"
  7577. >
  7578. 评分
  7579. </div>
  7580. <img
  7581. class="deleteImg"
  7582. src="../../assets/deleteworks.png"
  7583. v-if="w.userid == userid || tType == 1 || tType == 4"
  7584. @click.stop="deleteWorks(w.wid)"
  7585. alt
  7586. />
  7587. </div>
  7588. <div class="comment" style="min-width: 200px">
  7589. <div class="worksName">
  7590. <div>{{ w.sName }}</div>
  7591. </div>
  7592. <div class="commentList">
  7593. <div class="commentList">
  7594. <div
  7595. class="commentImg"
  7596. @click="
  7597. isLikes(w.wid, userid, 1, null, w.isLikes)
  7598. "
  7599. >
  7600. <img
  7601. :src="w.isLikes == true ? likes : noLikes"
  7602. alt=""
  7603. />
  7604. </div>
  7605. <div>{{ w.likesCount }}</div>
  7606. </div>
  7607. <div class="commentList" style="margin-right: 15px">
  7608. <div
  7609. class="commentImg"
  7610. @click="commentOther(w, toolIndex, wIndex)"
  7611. >
  7612. <img
  7613. src="../../assets/icon/comment/comment.png"
  7614. alt=""
  7615. />
  7616. </div>
  7617. <div>{{ w.commentCount }}</div>
  7618. </div>
  7619. </div>
  7620. </div>
  7621. </div>
  7622. </div>
  7623. <div class="noWorksS">
  7624. <div
  7625. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7626. :key="sIndex"
  7627. class="noWorksName"
  7628. :class="{ isWork: s.type == '2' }"
  7629. >
  7630. {{ s.student }}
  7631. </div>
  7632. </div>
  7633. </div>
  7634. <div
  7635. v-if="
  7636. tType &&
  7637. ((tType == 2 && sIsOpen == true) ||
  7638. tType == 1 ||
  7639. tType == 4) &&
  7640. tool.tool.indexOf(7) != -1
  7641. "
  7642. class="worksBox"
  7643. >
  7644. <div
  7645. class="zuoyeYulan"
  7646. v-if="
  7647. worksStudent.length && worksStudent[toolIndex].length > 0
  7648. "
  7649. >
  7650. <div class="worksTop">
  7651. <div>作业预览</div>
  7652. <div
  7653. class="corOpen"
  7654. @click="contract(toolIndex)"
  7655. v-if="
  7656. worksStudent[toolIndex].length > 6 &&
  7657. isCloseList[toolIndex].isClose == 0
  7658. "
  7659. >
  7660. 收缩
  7661. </div>
  7662. <div
  7663. class="corOpen"
  7664. @click="contract(toolIndex)"
  7665. v-if="isCloseList[toolIndex].isClose == 1"
  7666. >
  7667. 展开
  7668. </div>
  7669. </div>
  7670. </div>
  7671. <div
  7672. class="worksDetailBox"
  7673. v-if="
  7674. worksStudent.length && worksStudent[toolIndex].length > 0
  7675. "
  7676. >
  7677. <div
  7678. class="works"
  7679. style="
  7680. width: 200px;
  7681. height: 140px;
  7682. margin: 10px 10px 10px 0;
  7683. border-radius: 15px;
  7684. box-shadow: 0 0 6px 1px #dfdada;
  7685. "
  7686. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7687. ? worksStudent[toolIndex]
  7688. : worksStudent[toolIndex].slice(0, 6)"
  7689. :key="wIndex"
  7690. >
  7691. <!-- @click="previewImg(w.works)" -->
  7692. <div class="workImg">
  7693. <img :src="w.works" @click="previewImg(w.works)" alt />
  7694. <div
  7695. class="answerScore"
  7696. v-if="w.score"
  7697. @click.stop="openScore(w)"
  7698. :class="{
  7699. rightW:
  7700. w.userid == userid || tType == 1 || tType == 4,
  7701. }"
  7702. >
  7703. {{ JSON.parse(w.score).wScore }}分
  7704. </div>
  7705. <div
  7706. class="answerScore"
  7707. @click.stop="openScore(w)"
  7708. v-else-if="courseDetail.userid == userid"
  7709. :class="{
  7710. rightW:
  7711. w.userid == userid || tType == 1 || tType == 4,
  7712. }"
  7713. >
  7714. 评分
  7715. </div>
  7716. <img
  7717. class="deleteImg"
  7718. src="../../assets/deleteworks.png"
  7719. v-if="w.userid == userid || tType == 1 || tType == 4"
  7720. @click.stop="deleteWorks(w.wid)"
  7721. alt
  7722. />
  7723. </div>
  7724. <div class="comment" style="min-width: 200px">
  7725. <div class="worksName">
  7726. <div>{{ w.sName }}</div>
  7727. </div>
  7728. <div class="commentList">
  7729. <div class="commentList">
  7730. <div
  7731. class="commentImg"
  7732. @click="
  7733. isLikes(w.wid, userid, 1, null, w.isLikes)
  7734. "
  7735. >
  7736. <img
  7737. :src="w.isLikes == true ? likes : noLikes"
  7738. alt=""
  7739. />
  7740. </div>
  7741. <div>{{ w.likesCount }}</div>
  7742. </div>
  7743. <div class="commentList" style="margin-right: 15px">
  7744. <div
  7745. class="commentImg"
  7746. @click="commentOther(w, toolIndex, wIndex)"
  7747. >
  7748. <img
  7749. src="../../assets/icon/comment/comment.png"
  7750. alt=""
  7751. />
  7752. </div>
  7753. <div>{{ w.commentCount }}</div>
  7754. </div>
  7755. </div>
  7756. </div>
  7757. </div>
  7758. </div>
  7759. <div class="noWorksS">
  7760. <div
  7761. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7762. :key="sIndex"
  7763. class="noWorksName"
  7764. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7765. :class="{ isWork: s.type == '2' }"
  7766. >
  7767. {{ s.student }}
  7768. </div>
  7769. </div>
  7770. </div>
  7771. <div
  7772. v-if="
  7773. tType &&
  7774. ((tType == 2 && sIsOpen == true) ||
  7775. tType == 1 ||
  7776. tType == 4) &&
  7777. tool.tool.indexOf(26) != -1
  7778. "
  7779. class="worksBox"
  7780. >
  7781. <div
  7782. class="zuoyeYulan"
  7783. v-if="
  7784. worksStudent.length && worksStudent[toolIndex].length > 0
  7785. "
  7786. >
  7787. <div class="worksTop">
  7788. <div>作业预览</div>
  7789. <div
  7790. class="corOpen"
  7791. @click="contract(toolIndex)"
  7792. v-if="
  7793. worksStudent[toolIndex].length > 6 &&
  7794. isCloseList[toolIndex].isClose == 0
  7795. "
  7796. >
  7797. 收缩
  7798. </div>
  7799. <div
  7800. class="corOpen"
  7801. @click="contract(toolIndex)"
  7802. v-if="isCloseList[toolIndex].isClose == 1"
  7803. >
  7804. 展开
  7805. </div>
  7806. </div>
  7807. </div>
  7808. <div
  7809. class="worksDetailBox"
  7810. v-if="
  7811. worksStudent.length && worksStudent[toolIndex].length > 0
  7812. "
  7813. >
  7814. <div
  7815. class="works"
  7816. style="width: 240px; height: 140px; overflow: hidden"
  7817. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7818. ? worksStudent[toolIndex]
  7819. : worksStudent[toolIndex].slice(0, 6)"
  7820. :key="wIndex"
  7821. :class="w.type == 1 ? 'isTypeOne' : ''"
  7822. >
  7823. <div class="workImg" v-if="w.type == 0">
  7824. <img :src="w.works" @click="previewImg(w.works)" alt />
  7825. <img
  7826. class="deleteImg"
  7827. src="../../assets/deleteworks.png"
  7828. v-if="w.userid == userid || tType == 1 || tType == 4"
  7829. @click.stop="deleteWorks(w.wid)"
  7830. alt
  7831. />
  7832. </div>
  7833. <div class="workImg" v-if="w.type == 1">
  7834. <img :src="word" @click="openFile(w.works)" alt />
  7835. <img
  7836. class="deleteImg"
  7837. src="../../assets/deleteworks.png"
  7838. v-if="w.userid == userid || tType == 1 || tType == 4"
  7839. @click.stop="deleteWorks(w.wid)"
  7840. alt
  7841. />
  7842. </div>
  7843. <div class="worksName">
  7844. <div>{{ w.sName }}</div>
  7845. </div>
  7846. </div>
  7847. </div>
  7848. <div class="noWorksS">
  7849. <div
  7850. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7851. :key="sIndex"
  7852. class="noWorksName"
  7853. :class="{ isWork: s.type == '2' }"
  7854. >
  7855. {{ s.student }}
  7856. </div>
  7857. </div>
  7858. </div>
  7859. <div
  7860. v-if="
  7861. tType &&
  7862. ((tType == 2 && sIsOpen == true) ||
  7863. tType == 1 ||
  7864. tType == 4) &&
  7865. tool.tool.indexOf(40) != -1
  7866. "
  7867. class="worksBox"
  7868. >
  7869. <div
  7870. class="zuoyeYulan"
  7871. v-if="
  7872. worksStudent.length && worksStudent[toolIndex].length > 0
  7873. "
  7874. >
  7875. <div class="worksTop">
  7876. <div>作业预览</div>
  7877. <div
  7878. class="corOpen"
  7879. @click="contract(toolIndex)"
  7880. v-if="
  7881. worksStudent[toolIndex].length > 6 &&
  7882. isCloseList[toolIndex].isClose == 0
  7883. "
  7884. >
  7885. 收缩
  7886. </div>
  7887. <div
  7888. class="corOpen"
  7889. @click="contract(toolIndex)"
  7890. v-if="isCloseList[toolIndex].isClose == 1"
  7891. >
  7892. 展开
  7893. </div>
  7894. </div>
  7895. </div>
  7896. <div
  7897. class="worksDetailBox"
  7898. v-if="
  7899. worksStudent.length && worksStudent[toolIndex].length > 0
  7900. "
  7901. >
  7902. <div
  7903. class="works"
  7904. style="
  7905. width: 200px;
  7906. height: 140px;
  7907. margin: 10px 10px 10px 0;
  7908. border-radius: 15px;
  7909. box-shadow: 0 0 6px 1px #dfdada;
  7910. "
  7911. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7912. ? worksStudent[toolIndex]
  7913. : worksStudent[toolIndex].slice(0, 6)"
  7914. :key="wIndex"
  7915. :class="w.type == 1 ? 'isTypeOne' : ''"
  7916. >
  7917. <div class="workImg">
  7918. <img
  7919. src="../../assets/icon/works/noImg.png"
  7920. @click="openPj(w.works, toolIndex)"
  7921. alt
  7922. />
  7923. <img
  7924. class="deleteImg"
  7925. src="../../assets/deleteworks.png"
  7926. v-if="w.userid == userid || tType == 1 || tType == 4"
  7927. @click.stop="deleteWorks(w.wid)"
  7928. alt
  7929. />
  7930. </div>
  7931. <div class="comment" style="min-width: 200px">
  7932. <div class="worksName">
  7933. <div>{{ w.sName }}</div>
  7934. </div>
  7935. <div class="commentList">
  7936. <div class="commentList">
  7937. <div
  7938. class="commentImg"
  7939. @click="
  7940. isLikes(w.wid, userid, 1, null, w.isLikes)
  7941. "
  7942. >
  7943. <img
  7944. :src="w.isLikes == true ? likes : noLikes"
  7945. alt=""
  7946. />
  7947. </div>
  7948. <div>{{ w.likesCount }}</div>
  7949. </div>
  7950. <div class="commentList" style="margin-right: 15px">
  7951. <div
  7952. class="commentImg"
  7953. @click="commentOther(w, toolIndex, wIndex)"
  7954. >
  7955. <img
  7956. src="../../assets/icon/comment/comment.png"
  7957. alt=""
  7958. />
  7959. </div>
  7960. <div>{{ w.commentCount }}</div>
  7961. </div>
  7962. </div>
  7963. </div>
  7964. </div>
  7965. </div>
  7966. <div class="noWorksS">
  7967. <div
  7968. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7969. :key="sIndex"
  7970. class="noWorksName"
  7971. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7972. :class="{ isWork: s.type == '2' }"
  7973. >
  7974. {{ s.student }}
  7975. </div>
  7976. </div>
  7977. </div>
  7978. <div
  7979. v-if="
  7980. tType &&
  7981. ((tType == 2 && sIsOpen == true) ||
  7982. tType == 1 ||
  7983. tType == 4) &&
  7984. tool.tool.indexOf(41) != -1
  7985. "
  7986. class="worksBox"
  7987. >
  7988. <div class="noWorksS">
  7989. <div
  7990. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7991. :key="sIndex"
  7992. class="noWorksName"
  7993. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7994. :class="{ isWork: s.type == '2' }"
  7995. >
  7996. {{ s.student }}
  7997. </div>
  7998. </div>
  7999. <div
  8000. class="zuoyeYulan"
  8001. v-if="
  8002. worksStudent.length && worksStudent[toolIndex].length > 0
  8003. "
  8004. >
  8005. <div class="worksTop">
  8006. <div>作业预览</div>
  8007. <div
  8008. class="corOpen"
  8009. @click="contract(toolIndex)"
  8010. v-if="
  8011. worksStudent[toolIndex].length > 6 &&
  8012. isCloseList[toolIndex].isClose == 0
  8013. "
  8014. >
  8015. 收缩
  8016. </div>
  8017. <div
  8018. class="corOpen"
  8019. @click="contract(toolIndex)"
  8020. v-if="isCloseList[toolIndex].isClose == 1"
  8021. >
  8022. 展开
  8023. </div>
  8024. </div>
  8025. </div>
  8026. <div
  8027. class="worksDetailBox"
  8028. v-if="
  8029. worksStudent.length && worksStudent[toolIndex].length > 0
  8030. "
  8031. >
  8032. <div
  8033. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8034. ? worksStudent[toolIndex]
  8035. : worksStudent[toolIndex].slice(0, 6)"
  8036. :key="wIndex"
  8037. class="isWorksName"
  8038. @click="openXz(w, toolIndex)"
  8039. >
  8040. {{ w.sName }}
  8041. <img
  8042. class="deleteImg deleteImg2"
  8043. src="../../assets/deleteworks.png"
  8044. v-if="w.userid == userid || tType == 1 || tType == 4"
  8045. @click.stop="deleteWorks(w.wid)"
  8046. alt
  8047. />
  8048. </div>
  8049. </div>
  8050. </div>
  8051. <div
  8052. v-if="
  8053. tType &&
  8054. ((tType == 2 && sIsOpen == true) ||
  8055. tType == 1 ||
  8056. tType == 4) &&
  8057. tool.tool.indexOf(47) != -1
  8058. "
  8059. class="worksBox"
  8060. >
  8061. <div class="noWorksS">
  8062. <div
  8063. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8064. :key="sIndex"
  8065. class="noWorksName"
  8066. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8067. :class="{ isWork: s.type == '2' }"
  8068. >
  8069. {{ s.student }}
  8070. </div>
  8071. </div>
  8072. <div
  8073. class="zuoyeYulan"
  8074. v-if="
  8075. worksStudent.length && worksStudent[toolIndex].length > 0
  8076. "
  8077. >
  8078. <div class="worksTop">
  8079. <div>作业预览</div>
  8080. <div
  8081. class="corOpen"
  8082. @click="contract(toolIndex)"
  8083. v-if="
  8084. worksStudent[toolIndex].length > 6 &&
  8085. isCloseList[toolIndex].isClose == 0
  8086. "
  8087. >
  8088. 收缩
  8089. </div>
  8090. <div
  8091. class="corOpen"
  8092. @click="contract(toolIndex)"
  8093. v-if="isCloseList[toolIndex].isClose == 1"
  8094. >
  8095. 展开
  8096. </div>
  8097. </div>
  8098. </div>
  8099. <div
  8100. class="worksDetailBox"
  8101. v-if="
  8102. worksStudent.length && worksStudent[toolIndex].length > 0
  8103. "
  8104. >
  8105. <!-- @click="openXz(w, toolIndex)" -->
  8106. <div
  8107. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8108. ? worksStudent[toolIndex]
  8109. : worksStudent[toolIndex].slice(0, 6)"
  8110. :key="wIndex"
  8111. class="isWorksName"
  8112. @click="openSen(w, toolIndex)"
  8113. >
  8114. {{ w.sName }}
  8115. <img
  8116. class="deleteImg deleteImg2"
  8117. src="../../assets/deleteworks.png"
  8118. v-if="w.userid == userid || tType == 1 || tType == 4"
  8119. @click.stop="deleteWorks(w.wid)"
  8120. alt
  8121. />
  8122. </div>
  8123. </div>
  8124. </div>
  8125. <div
  8126. v-if="
  8127. tType &&
  8128. ((tType == 2 && sIsOpen == true) ||
  8129. tType == 1 ||
  8130. tType == 4) &&
  8131. tool.tool.indexOf(48) != -1
  8132. "
  8133. class="worksBox"
  8134. >
  8135. <div class="noWorksS">
  8136. <div
  8137. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8138. :key="sIndex"
  8139. class="noWorksName"
  8140. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  8141. :class="{ isWork: s.type == '2' }"
  8142. >
  8143. {{ s.student }}
  8144. </div>
  8145. </div>
  8146. <div
  8147. class="zuoyeYulan"
  8148. v-if="
  8149. worksStudent.length && worksStudent[toolIndex].length > 0
  8150. "
  8151. >
  8152. <div class="worksTop">
  8153. <div>作业预览</div>
  8154. <div
  8155. class="corOpen"
  8156. @click="contract(toolIndex)"
  8157. v-if="
  8158. worksStudent[toolIndex].length > 6 &&
  8159. isCloseList[toolIndex].isClose == 0
  8160. "
  8161. >
  8162. 收缩
  8163. </div>
  8164. <div
  8165. class="corOpen"
  8166. @click="contract(toolIndex)"
  8167. v-if="isCloseList[toolIndex].isClose == 1"
  8168. >
  8169. 展开
  8170. </div>
  8171. </div>
  8172. </div>
  8173. <div
  8174. class="worksDetailBox"
  8175. v-if="
  8176. worksStudent.length && worksStudent[toolIndex].length > 0
  8177. "
  8178. >
  8179. <div
  8180. class="works"
  8181. style="
  8182. width: 200px;
  8183. height: 140px;
  8184. margin: 10px 10px 10px 0;
  8185. border-radius: 15px;
  8186. box-shadow: 0 0 6px 1px #dfdada;
  8187. "
  8188. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8189. ? worksStudent[toolIndex]
  8190. : worksStudent[toolIndex].slice(0, 6)"
  8191. :key="wIndex"
  8192. :class="w.type == 1 ? 'isTypeOne' : ''"
  8193. >
  8194. <div class="workImg">
  8195. <img :src="word" @click="openTable(w)" alt />
  8196. <!-- @click="openFile(w.works)" -->
  8197. <div
  8198. class="answerScore"
  8199. v-if="w.score"
  8200. @click.stop="openScore(w)"
  8201. :class="{
  8202. rightW:
  8203. w.userid == userid ||
  8204. tType == 1 ||
  8205. tType == 4 ||
  8206. w.ateacher == userid,
  8207. }"
  8208. >
  8209. {{ JSON.parse(w.score).wScore }}分
  8210. </div>
  8211. <div
  8212. class="answerScore"
  8213. @click.stop="openScore(w)"
  8214. v-else-if="courseDetail.userid == userid"
  8215. :class="{
  8216. rightW:
  8217. w.userid == userid ||
  8218. tType == 1 ||
  8219. tType == 4 ||
  8220. w.ateacher == userid,
  8221. }"
  8222. >
  8223. 评分
  8224. </div>
  8225. <img
  8226. class="deleteImg"
  8227. src="../../assets/deleteworks.png"
  8228. v-if="w.userid == userid || tType == 1 || tType == 4"
  8229. @click.stop="deleteWorks(w.wid)"
  8230. alt
  8231. />
  8232. </div>
  8233. <div class="comment" style="min-width: 200px">
  8234. <div class="worksName">
  8235. <div>{{ w.sName }}</div>
  8236. </div>
  8237. <div class="commentList">
  8238. <div class="commentList">
  8239. <div
  8240. class="commentImg"
  8241. @click="
  8242. isLikes(w.wid, userid, 1, null, w.isLikes)
  8243. "
  8244. >
  8245. <img
  8246. :src="w.isLikes == true ? likes : noLikes"
  8247. alt=""
  8248. />
  8249. </div>
  8250. <div>{{ w.likesCount }}</div>
  8251. </div>
  8252. <div class="commentList" style="margin-right: 15px">
  8253. <div
  8254. class="commentImg"
  8255. @click="commentOther(w, toolIndex, wIndex)"
  8256. >
  8257. <img
  8258. src="../../assets/icon/comment/comment.png"
  8259. alt=""
  8260. />
  8261. </div>
  8262. <div>{{ w.commentCount }}</div>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. </div>
  8268. </div>
  8269. <div
  8270. v-if="
  8271. tType &&
  8272. ((tType == 2 && sIsOpen == true) ||
  8273. tType == 1 ||
  8274. tType == 4) &&
  8275. tool.tool.indexOf(52) != -1
  8276. "
  8277. class="worksBox"
  8278. >
  8279. <div class="noWorksS">
  8280. <div
  8281. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8282. :key="sIndex"
  8283. class="noWorksName"
  8284. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  8285. :class="{ isWork: s.type == '2' }"
  8286. >
  8287. {{ s.student }}
  8288. </div>
  8289. </div>
  8290. <div
  8291. class="zuoyeYulan"
  8292. v-if="
  8293. worksStudent.length && worksStudent[toolIndex].length > 0
  8294. "
  8295. >
  8296. <div class="worksTop">
  8297. <div>作业预览</div>
  8298. <div
  8299. class="corOpen"
  8300. @click="contract(toolIndex)"
  8301. v-if="
  8302. worksStudent[toolIndex].length > 6 &&
  8303. isCloseList[toolIndex].isClose == 0
  8304. "
  8305. >
  8306. 收缩
  8307. </div>
  8308. <div
  8309. class="corOpen"
  8310. @click="contract(toolIndex)"
  8311. v-if="isCloseList[toolIndex].isClose == 1"
  8312. >
  8313. 展开
  8314. </div>
  8315. </div>
  8316. </div>
  8317. <div
  8318. class="worksDetailBox"
  8319. v-if="
  8320. worksStudent.length && worksStudent[toolIndex].length > 0
  8321. "
  8322. >
  8323. <div
  8324. class="works"
  8325. style="
  8326. width: 200px;
  8327. height: 140px;
  8328. margin: 10px 10px 10px 0;
  8329. border-radius: 15px;
  8330. box-shadow: 0 0 6px 1px #dfdada;
  8331. "
  8332. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8333. ? worksStudent[toolIndex]
  8334. : worksStudent[toolIndex].slice(0, 6)"
  8335. :key="wIndex"
  8336. :class="w.type == 1 ? 'isTypeOne' : ''"
  8337. >
  8338. <div class="workImg">
  8339. <img :src="word" @click="openWord(w)" alt />
  8340. <!-- @click="openFile(w.works)" -->
  8341. <div
  8342. class="answerScore"
  8343. v-if="w.score"
  8344. @click.stop="openScore(w)"
  8345. :class="{
  8346. rightW:
  8347. w.userid == userid ||
  8348. tType == 1 ||
  8349. tType == 4 ||
  8350. w.ateacher == userid,
  8351. }"
  8352. >
  8353. {{ JSON.parse(w.score).wScore }}分
  8354. </div>
  8355. <div
  8356. class="answerScore"
  8357. @click.stop="openScore(w)"
  8358. v-else-if="courseDetail.userid == userid"
  8359. :class="{
  8360. rightW:
  8361. w.userid == userid ||
  8362. tType == 1 ||
  8363. tType == 4 ||
  8364. w.ateacher == userid,
  8365. }"
  8366. >
  8367. 评分
  8368. </div>
  8369. <img
  8370. class="deleteImg"
  8371. src="../../assets/deleteworks.png"
  8372. v-if="w.userid == userid || tType == 1 || tType == 4"
  8373. @click.stop="deleteWorks(w.wid)"
  8374. alt
  8375. />
  8376. </div>
  8377. <div class="comment" style="min-width: 200px">
  8378. <div class="worksName">
  8379. <div>{{ w.sName }}</div>
  8380. </div>
  8381. <div class="commentList">
  8382. <div class="commentList">
  8383. <div
  8384. class="commentImg"
  8385. @click="
  8386. isLikes(w.wid, userid, 1, null, w.isLikes)
  8387. "
  8388. >
  8389. <img
  8390. :src="w.isLikes == true ? likes : noLikes"
  8391. alt=""
  8392. />
  8393. </div>
  8394. <div>{{ w.likesCount }}</div>
  8395. </div>
  8396. <div class="commentList" style="margin-right: 15px">
  8397. <div
  8398. class="commentImg"
  8399. @click="commentOther(w, toolIndex, wIndex)"
  8400. >
  8401. <img
  8402. src="../../assets/icon/comment/comment.png"
  8403. alt=""
  8404. />
  8405. </div>
  8406. <div>{{ w.commentCount }}</div>
  8407. </div>
  8408. </div>
  8409. </div>
  8410. </div>
  8411. </div>
  8412. </div>
  8413. </div>
  8414. </div>
  8415. <div class="vedioBox" v-if="false">
  8416. <div
  8417. class="queTop"
  8418. style="
  8419. font-size: 20px;
  8420. padding: 15px 0 15px 30px;
  8421. font-weight: bold;
  8422. "
  8423. >
  8424. 评一评
  8425. </div>
  8426. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8427. <div class="elist_input">
  8428. <div
  8429. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8430. .chapterInfo[0].taskJson[taskCount].eList"
  8431. :key="eIndex"
  8432. class="elist_input_box"
  8433. >
  8434. <div style="width: 95%">
  8435. <div
  8436. style="
  8437. display: flex;
  8438. flex-direction: row;
  8439. flex-wrap: nowrap;
  8440. align-items: center;
  8441. "
  8442. >
  8443. <div style="max-width: calc(100% - 285px)">
  8444. <span>{{ eItem.value }}</span>
  8445. </div>
  8446. <div
  8447. style="
  8448. padding-left: 25px;
  8449. display: flex;
  8450. flex-direction: row;
  8451. align-items: center;
  8452. "
  8453. >
  8454. <el-rate
  8455. v-model="eItem.score"
  8456. :colors="colors"
  8457. disabled
  8458. ></el-rate>
  8459. </div>
  8460. </div>
  8461. <div class="elist_inptu_text" style="padding-left: 10px">
  8462. <span v-if="eItem.detail != ''">{{
  8463. eItem.detail
  8464. }}</span>
  8465. <span v-else style="color: #b2b1b3; font-size: 14px"
  8466. >暂无描述...</span
  8467. >
  8468. </div>
  8469. </div>
  8470. </div>
  8471. </div>
  8472. <div
  8473. v-if="evalua"
  8474. style="
  8475. border: 1px solid #e5e5e5;
  8476. max-width: 650px;
  8477. width: 100%;
  8478. margin-top: 20px;
  8479. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8480. "
  8481. >
  8482. <div class="e_add_top">
  8483. <div class="e_add_title">
  8484. <span>目标管理名称</span>
  8485. <span>{{ eTitle }}</span>
  8486. <img
  8487. src="../../assets/line.png"
  8488. class="cru_line"
  8489. style="
  8490. width: 125px;
  8491. height: 20px;
  8492. bottom: -10px;
  8493. left: 120px;
  8494. "
  8495. />
  8496. <!-- <el-input
  8497. v-model="eTitle"
  8498. placeholder="请输入名称"
  8499. @change="setMindData"
  8500. ></el-input>-->
  8501. </div>
  8502. </div>
  8503. <div class="e_add_content">
  8504. <div class="e_add_list_pbox">
  8505. <div class="e_add_list_pbox_title">
  8506. <span class="type_title">切换模式</span>
  8507. <div class="type_content">
  8508. <span
  8509. :class="{ active: typeMode == 1 }"
  8510. @click="typeMode = 1"
  8511. >目标树</span
  8512. >
  8513. <span
  8514. :class="{ active: typeMode == 2 }"
  8515. @click="typeMode = 2"
  8516. >目标罗盘</span
  8517. >
  8518. <span
  8519. :class="{ active: typeMode == 3 }"
  8520. @click="typeMode = 3"
  8521. >目标看板</span
  8522. >
  8523. </div>
  8524. </div>
  8525. <div class="e_add_list_pbox_content">
  8526. <Mind
  8527. :showBar="false"
  8528. :mindData="data"
  8529. style="width: 100%"
  8530. v-show="typeMode == 1"
  8531. ></Mind>
  8532. <Sunburst
  8533. :Josn="eJson"
  8534. :num="eJSONNum"
  8535. style="width: 100%"
  8536. v-if="typeMode == 2"
  8537. ></Sunburst>
  8538. <SeeBoard
  8539. :Josn="eJson"
  8540. :num="eJSONNum"
  8541. :ename="eTitle"
  8542. style="width: 100%"
  8543. v-if="typeMode == 3"
  8544. >
  8545. </SeeBoard>
  8546. </div>
  8547. </div>
  8548. </div>
  8549. </div>
  8550. </div>
  8551. </div>
  8552. </div>
  8553. </div>
  8554. <el-dialog
  8555. title="作业提交"
  8556. :visible.sync="dialogVisible"
  8557. :append-to-body="true"
  8558. width="500px"
  8559. :before-close="handleClose"
  8560. class="dialog_change"
  8561. >
  8562. <div class="marginT">
  8563. <div>上传文件</div>
  8564. <div
  8565. class="chapter_add"
  8566. @click="addImg($event)"
  8567. v-if="studyJuri[0].cover.length == 0"
  8568. >
  8569. <div class="up_photo">
  8570. <img src="../../assets/icon/uploadImg.png" alt />
  8571. </div>
  8572. <!-- <input
  8573. type="file"
  8574. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8575. style="display: none"
  8576. @change="beforeUpload1($event, 1)"
  8577. /> -->
  8578. <input
  8579. type="file"
  8580. accept="*"
  8581. style="display: none"
  8582. @change="beforeUpload1($event, 1)"
  8583. />
  8584. <!-- <input
  8585. type="file"
  8586. accept="image/*"
  8587. capture="camera"
  8588. style="display: none"
  8589. @change="beforeUpload1($event, 1)"
  8590. /> -->
  8591. </div>
  8592. <div
  8593. class="chapter_add"
  8594. style="
  8595. display: flex;
  8596. width: 100%;
  8597. flex-direction: row;
  8598. flex-wrap: wrap;
  8599. justify-content: flex-start;
  8600. padding: 15px 0;
  8601. "
  8602. v-if="studyJuri[0].cover.length > 0"
  8603. >
  8604. <div class="upCover">
  8605. <img
  8606. :src="studyJuri[0].cover[0].url"
  8607. alt
  8608. v-if="fileType == 0"
  8609. />
  8610. <img :src="word" alt v-else-if="fileType == 1" />
  8611. <img :src="video" alt v-else-if="fileType == 2" />
  8612. <img :src="word2" alt v-else-if="fileType == 3" />
  8613. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8614. <div class="deleteWord" @click="clean(1)">
  8615. <img src="../../assets/icon/deleteWorks.png" alt />
  8616. </div>
  8617. </div>
  8618. </div>
  8619. </div>
  8620. <div
  8621. class="upload_send"
  8622. @click="addCourseWorks(taskCount)"
  8623. v-if="!proVisible"
  8624. >
  8625. 提交
  8626. </div>
  8627. </el-dialog>
  8628. </div>
  8629. </div>
  8630. <div
  8631. class="pButton"
  8632. @click="(pzDialog = true), selectPz()"
  8633. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8634. >
  8635. <!-- 批 -->
  8636. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8637. </div>
  8638. <div v-if="pzDialog == true" class="newDialogCss">
  8639. <div class="pzTop2">
  8640. <!-- <div>批注</div>
  8641. <div @click="pzDialog = false">
  8642. <img src="../../assets/close1.png" alt="" />
  8643. </div> -->
  8644. <div class="checkbox">
  8645. <div class="check" style="font-size: 25px">评课笔记</div>
  8646. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8647. </div>
  8648. </div>
  8649. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8650. <div class="pzListBox" v-if="pzList && pzList.length">
  8651. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8652. <div class="pzNavTop">
  8653. <div>批</div>
  8654. <div>
  8655. {{
  8656. pz.username && pz.username.length > 5
  8657. ? pz.username.substring(0, 5) + "..."
  8658. : pz.username
  8659. }}的批注
  8660. </div>
  8661. <div
  8662. class="pzDelete"
  8663. v-if="pz.userid == userid"
  8664. @click="deletePz(pz.id)"
  8665. >
  8666. 删除
  8667. </div>
  8668. </div>
  8669. <div
  8670. @click="checkImg(getImgList(pz.content))"
  8671. class="pzContent cont"
  8672. v-html="pz.content"
  8673. v-if="pz.type == '1'"
  8674. ></div>
  8675. <div class="pzContent" v-if="pz.type == '2'">
  8676. <audio :src="pz.content" controls="controls" ref="audio">
  8677. Your browser does not support the audio element.
  8678. </audio>
  8679. </div>
  8680. <div class="pzContent" v-if="pz.type == '3'">
  8681. <img
  8682. :src="pz.content"
  8683. style="width: 90%; margin: 0 auto; display: block"
  8684. @click="previewImg(pz.content)"
  8685. />
  8686. </div>
  8687. <div class="time">
  8688. {{ pz.time }}
  8689. </div>
  8690. </div>
  8691. </div>
  8692. <div class="noPz" v-else>
  8693. <img src="../../assets/icon/noPz.png" alt="" />
  8694. </div>
  8695. <div class="addPzButton">
  8696. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8697. 添加批注
  8698. </div>
  8699. <!-- <div class="img1">
  8700. <div @click="(addPzDialog = true), (pzType = 2)">
  8701. <img src="../../assets/audio.png" /><span>音频</span>
  8702. </div>
  8703. </div> -->
  8704. </div>
  8705. </div>
  8706. </div>
  8707. <div v-if="addPzDialog == true" class="addDialogCss">
  8708. <div class="pzTop">
  8709. <div class="teacherPz">
  8710. <div class="teacherPzImg">
  8711. <img src="../../assets/icon/teacherPz.png" alt="" />
  8712. </div>
  8713. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8714. </div>
  8715. <div @click="addPzDialog = false">
  8716. <img src="../../assets/close1.png" alt="" />
  8717. </div>
  8718. </div>
  8719. <div class="addPzBox">
  8720. <div class="addPzCheck">
  8721. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8722. >文本</span
  8723. >
  8724. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8725. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8726. >音频</span
  8727. >
  8728. </div>
  8729. <div style="height: calc(100% - 95px)">
  8730. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8731. v-if="pzType == 1"></textarea> -->
  8732. <editor-bar
  8733. class="binfo_input pzConText"
  8734. style="width: 100% !important"
  8735. placeholder="请输入任务描述"
  8736. v-model="pzConText"
  8737. @change="change"
  8738. v-if="pzType == 1"
  8739. ></editor-bar>
  8740. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8741. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8742. <div @click="addImg($event)">
  8743. <el-button type="primary">上传图片</el-button>
  8744. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8745. @change="beforeUpload1($event, 4)" />
  8746. </div>
  8747. </div> -->
  8748. </div>
  8749. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8750. 确定
  8751. </div>
  8752. </div>
  8753. </div>
  8754. <div v-if="proVisible" class="mask">
  8755. <div class="progressBox">
  8756. <!-- <div id="closePro" class="closeCss">
  8757. <img src="../../assets/icon/close.png" alt />
  8758. </div> -->
  8759. <div class="lbox">
  8760. <img src="../../assets/loading.gif" />上传中,请稍后
  8761. </div>
  8762. <div style="margin-bottom: 10px">
  8763. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8764. </div>
  8765. <el-progress
  8766. :text-inside="true"
  8767. :stroke-width="20"
  8768. :percentage="progress"
  8769. style="width: 80%"
  8770. ></el-progress>
  8771. </div>
  8772. </div>
  8773. <div v-if="proVisible2" class="mask">
  8774. <div class="progressBox">
  8775. <div class="lbox">
  8776. <img src="../../assets/loading.gif" />上传中,请稍后
  8777. </div>
  8778. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8779. </div>
  8780. </div>
  8781. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8782. <img width="100%" :src="dialogImageUrl" alt />
  8783. </el-dialog>
  8784. <el-dialog
  8785. :title="noteName != '' ? noteName : '查看问卷'"
  8786. :visible.sync="dialogVisible5"
  8787. :append-to-body="true"
  8788. width="1000px"
  8789. :before-close="handleClose"
  8790. class="dialog_diy dialog_diy3"
  8791. >
  8792. <div>
  8793. <div
  8794. class="a_add_title"
  8795. style="
  8796. display: flex;
  8797. flex-direction: row;
  8798. align-items: center;
  8799. justify-content: center;
  8800. "
  8801. >
  8802. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8803. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8804. </div>
  8805. <div class="a_addBox">
  8806. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8807. <div
  8808. class="a_add_box"
  8809. v-for="(item1, index1) in askJson.askCount"
  8810. :key="index1"
  8811. >
  8812. <div class="a_add_head">
  8813. <div style="display: flex">
  8814. {{ index1 + 1 + "、" }}
  8815. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8816. </div>
  8817. <img
  8818. v-if="askJson.askJson[index1].img"
  8819. :src="askJson.askJson[index1].img"
  8820. style="height: 300px; margin-top: 10px; max-width: 100%"
  8821. />
  8822. </div>
  8823. <div class="a_add_body">
  8824. <div class="a_add_input">
  8825. <el-radio-group
  8826. v-model="radio[index1]"
  8827. v-if="
  8828. askJson.askJson[index1].type == '1' ||
  8829. !askJson.askJson[index1].type
  8830. "
  8831. >
  8832. <el-radio
  8833. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8834. .checkList"
  8835. :key="checkIndex"
  8836. :label="checkIndex"
  8837. :disabled="isAnswer"
  8838. class="redioStyle"
  8839. ><span v-html="item2"></span
  8840. ></el-radio>
  8841. </el-radio-group>
  8842. <el-checkbox-group
  8843. v-model="radio[index1]"
  8844. v-if="askJson.askJson[index1].type == '2'"
  8845. >
  8846. <el-checkbox
  8847. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8848. .checkList"
  8849. :key="checkIndex1"
  8850. :label="checkIndex1"
  8851. :disabled="isAnswer"
  8852. class="redioStyle"
  8853. ><span v-html="item2"></span>
  8854. </el-checkbox>
  8855. </el-checkbox-group>
  8856. </div>
  8857. </div>
  8858. </div>
  8859. </div>
  8860. </div>
  8861. <span slot="footer" class="dialog-footer">
  8862. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8863. >取 消</el-button
  8864. >
  8865. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8866. >确 定</el-button
  8867. >
  8868. </span>
  8869. </el-dialog>
  8870. <el-dialog
  8871. :title="noteName != '' ? noteName : '查看问卷'"
  8872. :visible.sync="dialogVisible5Teacher"
  8873. :append-to-body="true"
  8874. width="1000px"
  8875. :before-close="handleClose"
  8876. class="dialog_diy dialog_diy3"
  8877. >
  8878. <div>
  8879. <div class="w_name">
  8880. 学生姓名:<span>{{ sStudent.student }}</span>
  8881. </div>
  8882. <div
  8883. class="a_add_title"
  8884. style="
  8885. display: flex;
  8886. flex-direction: row;
  8887. align-items: center;
  8888. justify-content: center;
  8889. "
  8890. >
  8891. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8892. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8893. </div>
  8894. <div class="a_addBox">
  8895. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8896. <div
  8897. class="a_add_box"
  8898. v-for="(item1, index1) in askJson.askCount"
  8899. :key="index1"
  8900. >
  8901. <div class="a_add_head">
  8902. <div style="display: flex">
  8903. {{ index1 + 1 + "、" }}
  8904. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8905. </div>
  8906. <img
  8907. v-if="askJson.askJson[index1].img"
  8908. :src="askJson.askJson[index1].img"
  8909. style="height: 300px; margin-top: 10px; max-width: 100%"
  8910. />
  8911. </div>
  8912. <div class="a_add_body">
  8913. <div class="a_add_input">
  8914. <el-radio-group
  8915. v-model="radio[index1]"
  8916. v-if="
  8917. askJson.askJson[index1].type == '1' ||
  8918. !askJson.askJson[index1].type
  8919. "
  8920. >
  8921. <el-radio
  8922. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8923. .checkList"
  8924. :key="checkIndex"
  8925. :label="checkIndex"
  8926. :disabled="isAnswer"
  8927. class="redioStyle"
  8928. ><span v-html="item2"></span
  8929. ></el-radio>
  8930. </el-radio-group>
  8931. <el-checkbox-group
  8932. v-model="radio[index1]"
  8933. v-if="askJson.askJson[index1].type == '2'"
  8934. >
  8935. <el-checkbox
  8936. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8937. .checkList"
  8938. :key="checkIndex1"
  8939. :label="checkIndex1"
  8940. :disabled="isAnswer"
  8941. class="redioStyle"
  8942. ><span v-html="item2"></span>
  8943. </el-checkbox>
  8944. </el-checkbox-group>
  8945. </div>
  8946. </div>
  8947. </div>
  8948. </div>
  8949. </div>
  8950. <span slot="footer" class="dialog-footer">
  8951. <el-button
  8952. @click="dialogVisible5Teacher = false"
  8953. v-show="noteName == ''"
  8954. >取 消</el-button
  8955. >
  8956. <el-button
  8957. type="primary"
  8958. @click="addStudentAskTeacher"
  8959. v-show="noteName == ''"
  8960. >确 定</el-button
  8961. >
  8962. </span>
  8963. </el-dialog>
  8964. <el-dialog
  8965. :title="noteName != '' ? noteName : '查看选择题'"
  8966. :visible.sync="dialogVisibleChoice"
  8967. :append-to-body="true"
  8968. width="1000px"
  8969. :before-close="handleClose"
  8970. class="dialog_diy dialog_diy3"
  8971. >
  8972. <div>
  8973. <div class="a_addBox">
  8974. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8975. <div
  8976. class="a_add_box"
  8977. v-for="(item1, index1) in testJson.testCount"
  8978. :key="index1"
  8979. >
  8980. <div class="a_add_head">
  8981. <div style="display: flex">
  8982. {{ index1 + 1 + "、" }}
  8983. <div
  8984. v-if="testJson.testJson[index1].type == '1'"
  8985. style="margin-right: 5px; min-width: 70px"
  8986. >
  8987. (单选题)
  8988. </div>
  8989. <div
  8990. v-if="testJson.testJson[index1].type == '2'"
  8991. style="margin-right: 5px; min-width: 70px"
  8992. >
  8993. (多选题)
  8994. </div>
  8995. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8996. </div>
  8997. <img
  8998. v-if="testJson.testJson[index1].img"
  8999. :src="testJson.testJson[index1].img"
  9000. style="height: 300px; margin-top: 10px; max-width: 100%"
  9001. />
  9002. </div>
  9003. <div
  9004. class="timuImgBox"
  9005. v-if="
  9006. testJson.testJson[index1].timuList &&
  9007. testJson.testJson[index1].timuList.length
  9008. "
  9009. >
  9010. <div
  9011. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9012. :key="tIndex"
  9013. class="timuImg"
  9014. @click.stop="previewImg(timg.src)"
  9015. >
  9016. <img :src="timg.src" alt="" />
  9017. </div>
  9018. </div>
  9019. <div class="a_add_body">
  9020. <div class="a_add_input">
  9021. <el-radio-group
  9022. v-model="radio[index1]"
  9023. v-if="testJson.testJson[index1].type == '1'"
  9024. >
  9025. <div class="radioBox">
  9026. <el-radio
  9027. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9028. .checkList"
  9029. :key="checkIndex"
  9030. :label="checkIndex"
  9031. :disabled="isAnswer"
  9032. class="redioStyle"
  9033. >
  9034. <div
  9035. style="margin-right: 10px"
  9036. v-if="item2 && item2.imgType && item2.imgType == 1"
  9037. >
  9038. <div class="inImg" @click.stop="previewImg(item2.src)">
  9039. <img :src="item2.src" alt="" />
  9040. </div>
  9041. </div>
  9042. <span v-else v-html="item2"></span>
  9043. </el-radio>
  9044. </div>
  9045. </el-radio-group>
  9046. <el-checkbox-group
  9047. v-model="radio[index1]"
  9048. v-if="testJson.testJson[index1].type == '2'"
  9049. >
  9050. <div class="radioBox">
  9051. <el-checkbox
  9052. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9053. .checkList"
  9054. :key="checkIndex"
  9055. :label="checkIndex"
  9056. :disabled="isAnswer"
  9057. class="redioStyle"
  9058. >
  9059. <div
  9060. style="margin-right: 10px"
  9061. v-if="item2 && item2.imgType && item2.imgType == 1"
  9062. >
  9063. <div class="inImg" @click.stop="previewImg(item2.src)">
  9064. <img :src="item2.src" alt="" />
  9065. </div>
  9066. </div>
  9067. <span v-else v-html="item2"></span>
  9068. </el-checkbox>
  9069. </div>
  9070. </el-checkbox-group>
  9071. </div>
  9072. </div>
  9073. </div>
  9074. </div>
  9075. </div>
  9076. <span slot="footer" class="dialog-footer">
  9077. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9078. >取 消</el-button
  9079. >
  9080. <el-button
  9081. type="primary"
  9082. @click="addStudentTest"
  9083. v-show="noteName == ''"
  9084. >确 定</el-button
  9085. >
  9086. </span>
  9087. </el-dialog>
  9088. <el-dialog
  9089. :title="noteName != '' ? noteName : '查看选择题'"
  9090. :visible.sync="dialogVisibleChoiceTeacher"
  9091. :append-to-body="true"
  9092. width="1000px"
  9093. :before-close="handleClose"
  9094. class="dialog_diy dialog_diy3"
  9095. >
  9096. <div>
  9097. <div class="w_name">
  9098. 学生姓名:<span>{{ sStudent.student }}</span>
  9099. </div>
  9100. <div class="a_addBox">
  9101. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9102. <div
  9103. class="a_add_box"
  9104. v-for="(item1, index1) in testJson.testCount"
  9105. :key="index1"
  9106. >
  9107. <div class="a_add_head">
  9108. <div style="display: flex">
  9109. {{ index1 + 1 + "、" }}
  9110. <div
  9111. v-if="testJson.testJson[index1].type == '1'"
  9112. style="margin-right: 5px; min-width: 70px"
  9113. >
  9114. (单选题)
  9115. </div>
  9116. <div
  9117. v-if="testJson.testJson[index1].type == '2'"
  9118. style="margin-right: 5px; min-width: 70px"
  9119. >
  9120. (多选题)
  9121. </div>
  9122. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9123. </div>
  9124. <img
  9125. v-if="testJson.testJson[index1].img"
  9126. :src="testJson.testJson[index1].img"
  9127. style="height: 300px; margin-top: 10px; max-width: 100%"
  9128. />
  9129. </div>
  9130. <div
  9131. class="timuImgBox"
  9132. v-if="
  9133. testJson.testJson[index1].timuList &&
  9134. testJson.testJson[index1].timuList.length
  9135. "
  9136. >
  9137. <div
  9138. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9139. :key="tIndex"
  9140. class="timuImg"
  9141. @click.stop="previewImg(timg.src)"
  9142. >
  9143. <img :src="timg.src" alt="" />
  9144. </div>
  9145. </div>
  9146. <div class="a_add_body">
  9147. <div class="a_add_input">
  9148. <el-radio-group
  9149. v-model="radio[index1]"
  9150. v-if="testJson.testJson[index1].type == '1'"
  9151. >
  9152. <div class="radioBox">
  9153. <el-radio
  9154. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9155. .checkList"
  9156. :key="checkIndex"
  9157. :label="checkIndex"
  9158. :disabled="isAnswer"
  9159. class="redioStyle"
  9160. >
  9161. <div
  9162. style="margin-right: 10px"
  9163. v-if="item2 && item2.imgType && item2.imgType == 1"
  9164. >
  9165. <div class="inImg" @click.stop="previewImg(item2.src)">
  9166. <img :src="item2.src" alt="" />
  9167. </div>
  9168. </div>
  9169. <span v-else v-html="item2"></span>
  9170. </el-radio>
  9171. </div>
  9172. </el-radio-group>
  9173. <el-checkbox-group
  9174. v-model="radio[index1]"
  9175. v-if="testJson.testJson[index1].type == '2'"
  9176. >
  9177. <div class="radioBox">
  9178. <el-checkbox
  9179. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9180. .checkList"
  9181. :key="checkIndex"
  9182. :label="checkIndex"
  9183. :disabled="isAnswer"
  9184. class="redioStyle"
  9185. >
  9186. <div
  9187. style="margin-right: 10px"
  9188. v-if="item2 && item2.imgType && item2.imgType == 1"
  9189. >
  9190. <div class="inImg" @click.stop="previewImg(item2.src)">
  9191. <img :src="item2.src" alt="" />
  9192. </div>
  9193. </div>
  9194. <span v-else v-html="item2"></span>
  9195. </el-checkbox>
  9196. </div>
  9197. </el-checkbox-group>
  9198. </div>
  9199. </div>
  9200. </div>
  9201. </div>
  9202. </div>
  9203. <span slot="footer" class="dialog-footer">
  9204. <el-button
  9205. @click="dialogVisibleChoiceTeacher = false"
  9206. v-show="noteName == ''"
  9207. >取 消</el-button
  9208. >
  9209. <el-button
  9210. type="primary"
  9211. @click="addStudentTestTeacher"
  9212. v-show="noteName == ''"
  9213. >确 定</el-button
  9214. >
  9215. </span>
  9216. </el-dialog>
  9217. <el-dialog
  9218. title="查看富文本"
  9219. :visible.sync="dialogVisible1"
  9220. :append-to-body="true"
  9221. width="500px"
  9222. :before-close="handleClose"
  9223. class="dialog_diy textCss"
  9224. >
  9225. <el-form style="font-size: 20px">
  9226. <el-form-item label="文本标题" class="textTitle">
  9227. <div style="font-size: 20px">{{ text.name }}</div>
  9228. </el-form-item>
  9229. <div>富文本内容</div>
  9230. <div
  9231. v-html="text.url"
  9232. style="font-size: 18px; padding: 40px 0 0 0"
  9233. ></div>
  9234. </el-form>
  9235. <span slot="footer" class="dialog-footer">
  9236. <el-button type="primary" @click="dialogVisible1 = false"
  9237. >确定</el-button
  9238. >
  9239. </span>
  9240. </el-dialog>
  9241. <el-dialog
  9242. title="文件预览"
  9243. :visible.sync="dialogVisible3"
  9244. width="50%"
  9245. :before-close="handleClose"
  9246. class="dialog_diy"
  9247. :class="{ fullStyle: full }"
  9248. >
  9249. <div slot="title" class="header-title">
  9250. <div style="color: #fff">文件预览</div>
  9251. <div style="position: absolute; top: 19px; right: 50px">
  9252. <img
  9253. src="../../assets/full.png"
  9254. style="height: 16px; cursor: pointer"
  9255. alt=""
  9256. @click="fullTools"
  9257. />
  9258. </div>
  9259. </div>
  9260. <pdf
  9261. v-if="showPDF"
  9262. :pdfUrl="pptImgUrl"
  9263. style="width: 100%; height: 520px; overflow: auto"
  9264. :class="{ fullStyle: full }"
  9265. ></pdf>
  9266. <iframe
  9267. v-else
  9268. :src="pptImgUrl"
  9269. frameborder="0"
  9270. width="100%"
  9271. height="600"
  9272. :class="{ fullStyle: full }"
  9273. ></iframe>
  9274. </el-dialog>
  9275. <el-dialog
  9276. title="文件预览"
  9277. :visible.sync="dialogVisible6"
  9278. width="50%"
  9279. :before-close="handleClose"
  9280. class="dialog_diy"
  9281. >
  9282. <iframe
  9283. :src="pptImgUrl1"
  9284. frameborder="0"
  9285. width="100%"
  9286. height="600"
  9287. ></iframe>
  9288. </el-dialog>
  9289. <el-dialog
  9290. title="提示"
  9291. :visible.sync="dialogVisible4"
  9292. :append-to-body="true"
  9293. width="800px"
  9294. :before-close="handleClose"
  9295. class="dialog_diy notice"
  9296. >
  9297. <div>此功能暂未开放!</div>
  9298. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9299. </el-dialog>
  9300. <el-dialog
  9301. title="问答"
  9302. :visible.sync="answerDialogVisible"
  9303. :append-to-body="true"
  9304. width="800px"
  9305. :before-close="handleClose"
  9306. class="dialog_diy"
  9307. >
  9308. <div>
  9309. <div
  9310. style="
  9311. display: flex;
  9312. flex-wrap: nowrap;
  9313. flex-direction: column;
  9314. position: relative;
  9315. "
  9316. >
  9317. <div class="queTop" style="padding: 20px 0 20px 0">
  9318. <div class="question">
  9319. <img src="../../assets/icon/question.png" alt />
  9320. </div>
  9321. <div class="queTitle">
  9322. <div style="width: 90px; min-width: 90px">提问:</div>
  9323. <div>{{ answerQ }}</div>
  9324. </div>
  9325. </div>
  9326. <div class="ediBottom">
  9327. <textarea
  9328. rows="6"
  9329. class="binfo_input"
  9330. cols
  9331. style="width: 95%; height: 120px"
  9332. v-model="questionAnswer"
  9333. ></textarea>
  9334. </div>
  9335. </div>
  9336. </div>
  9337. <div slot="footer">
  9338. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9339. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9340. </div>
  9341. </el-dialog>
  9342. <el-dialog
  9343. title="倒计时"
  9344. :visible.sync="timeDialogVisible"
  9345. :append-to-body="true"
  9346. width="800px"
  9347. :before-close="handleClose"
  9348. class="dialog_diy"
  9349. >
  9350. <div>
  9351. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9352. </div>
  9353. <div slot="footer">
  9354. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9355. </div>
  9356. </el-dialog>
  9357. <el-dialog
  9358. title="权限设置"
  9359. :visible.sync="juriVisible"
  9360. :append-to-body="true"
  9361. width="400px"
  9362. :before-close="handleClose"
  9363. class="dialog_diy"
  9364. >
  9365. <div>
  9366. <div class="open_box">
  9367. <div class="switch_box">
  9368. <span>允许学生查看所有作业</span>
  9369. <el-switch
  9370. v-model="sIsOpen"
  9371. active-text=""
  9372. class="switchCss"
  9373. @change="updateSLook"
  9374. ></el-switch>
  9375. </div>
  9376. <div
  9377. class="switch_box"
  9378. v-if="
  9379. courseDetail.userid == userid ||
  9380. (courseDetail.course_teacher &&
  9381. courseDetail.course_teacher.indexOf(userid) != -1)
  9382. "
  9383. >
  9384. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9385. <span>禁止学生查看所有阶段</span>
  9386. <el-switch
  9387. v-model="IsLookOpen"
  9388. active-text=""
  9389. class="switchCss"
  9390. @change="updateLookOpen"
  9391. ></el-switch>
  9392. </div>
  9393. <div class="switch_box" v-if="courseDetail.userid == userid">
  9394. <span>开启跟随模式</span>
  9395. <el-switch
  9396. v-model="IsFollow"
  9397. active-text=""
  9398. class="switchCss"
  9399. @change="updateFollow"
  9400. ></el-switch>
  9401. </div>
  9402. </div>
  9403. </div>
  9404. <div slot="footer">
  9405. <el-button
  9406. style="background: #409efe; color: #fff"
  9407. @click="juriVisible = false"
  9408. >关 闭</el-button
  9409. >
  9410. </div>
  9411. </el-dialog>
  9412. <el-dialog
  9413. title="查看视频"
  9414. :visible.sync="videoVisible"
  9415. :append-to-body="true"
  9416. width="1000px"
  9417. :before-close="handleClose"
  9418. class="dialog_diy1"
  9419. >
  9420. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9421. <video-player
  9422. class="video-player vjs-custom-skin"
  9423. :playsinline="true"
  9424. :options="videoDetail"
  9425. @play="onPlayerPlay($event)"
  9426. style="width: 100%; height: 100%"
  9427. ></video-player>
  9428. </div>
  9429. <div slot="footer">
  9430. <el-button
  9431. style="background: #409efe; color: #fff"
  9432. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9433. >
  9434. 关 闭</el-button
  9435. >
  9436. </div>
  9437. </el-dialog>
  9438. <el-dialog
  9439. title="查看详情"
  9440. :visible.sync="commentDialogVisible"
  9441. :append-to-body="true"
  9442. width="800px"
  9443. :before-close="handleClose"
  9444. class="dialog_diy"
  9445. >
  9446. <div class="commentTop">
  9447. <div class="studentDetail">
  9448. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9449. <div class="nameAndTime">
  9450. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9451. <div>{{ commentDetail.time }}</div>
  9452. </div>
  9453. <div
  9454. class="returnBtn"
  9455. style="margin-left: auto; width: 80px"
  9456. v-if="
  9457. commentDetail.works &&
  9458. commentDetail.type == 0 &&
  9459. (tType == 1 || tType == 4)
  9460. "
  9461. @click="
  9462. showPicturePaint(
  9463. commentDetail.img ? commentDetail.img : commentDetail.works
  9464. )
  9465. "
  9466. >
  9467. 教师批注
  9468. </div>
  9469. </div>
  9470. <div
  9471. class="worksAnswer"
  9472. v-if="commentDetail.works && commentDetail.type == 2"
  9473. >
  9474. {{ JSON.parse(commentDetail.works)[0].answer }}
  9475. </div>
  9476. <div
  9477. class="worksAnswer"
  9478. v-if="commentDetail.works && commentDetail.type == 1"
  9479. >
  9480. <img
  9481. src="../../assets/teacherWork.png"
  9482. v-if="commentDetail.ateacher"
  9483. class="w_teachert"
  9484. />
  9485. <pdf
  9486. v-if="showPDF"
  9487. :pdfUrl="pptImgUrl"
  9488. style="width: 100%; height: 520px; overflow: auto"
  9489. :class="{ fullStyle: full }"
  9490. ></pdf>
  9491. <iframe
  9492. v-else
  9493. :src="pptImgUrl"
  9494. frameborder="0"
  9495. width="100%"
  9496. height="600"
  9497. :class="{ fullStyle: full }"
  9498. ></iframe>
  9499. </div>
  9500. <div
  9501. class="worksAnswer"
  9502. v-if="commentDetail.works && commentDetail.type == 0"
  9503. >
  9504. <img
  9505. src="../../assets/teacherWork.png"
  9506. v-if="commentDetail.ateacher"
  9507. class="w_teachert"
  9508. style="right: 105px"
  9509. />
  9510. <img
  9511. :src="commentDetail.works"
  9512. alt=""
  9513. @click="previewImg(commentDetail.works)"
  9514. />
  9515. </div>
  9516. <div
  9517. class="worksAnswer"
  9518. v-if="commentDetail.works && commentDetail.type == 3"
  9519. >
  9520. <img
  9521. src="../../assets/teacherWork.png"
  9522. v-if="commentDetail.ateacher"
  9523. class="w_teachert"
  9524. />
  9525. <video-player
  9526. class="video-player vjs-custom-skin"
  9527. :playsinline="true"
  9528. :options="videoDetail"
  9529. @play="onPlayerPlay($event)"
  9530. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9531. ></video-player>
  9532. </div>
  9533. <div
  9534. class="worksAnswer"
  9535. v-if="commentDetail.works && commentDetail.type == 10"
  9536. >
  9537. <div class="cont" v-html="commentDetail.works.text"></div>
  9538. </div>
  9539. <div
  9540. class="worksAnswer codeFileBox"
  9541. v-if="commentDetail.works && commentDetail.type == 12"
  9542. @click="downloadFile(commentDetail.works)"
  9543. >
  9544. <img src="../../assets/icon/codeFile.png" />
  9545. <div>点击下载文件</div>
  9546. </div>
  9547. <div
  9548. class="worksAnswer codeFileBox"
  9549. v-if="commentDetail.works && commentDetail.type == 15"
  9550. @click="
  9551. openCocoPi(
  9552. 57,
  9553. commentIndexJson.toolIndex,
  9554. commentDetail.userid,
  9555. commentDetail.sName
  9556. )
  9557. "
  9558. >
  9559. <img src="../../assets/icon/codeFile.png" />
  9560. <div>点击打开CocoPi</div>
  9561. </div>
  9562. <div
  9563. class="worksAnswer"
  9564. v-if="commentDetail.works && commentDetail.type == 13"
  9565. >
  9566. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9567. </div>
  9568. <div
  9569. class="worksAnswer"
  9570. v-if="commentDetail.works && commentDetail.type == 4"
  9571. >
  9572. <div class="evalCss">
  9573. <div class="nav">请选择星星进行评分</div>
  9574. <div class="middleBox" v-if="eScore.eStar">
  9575. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9576. <div class="nameAndrate">
  9577. <div>{{ e.value }}</div>
  9578. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9579. </div>
  9580. <div v-if="e.detail">{{ e.detail }}</div>
  9581. </div>
  9582. <div class="bz">
  9583. <textarea
  9584. disabled
  9585. rows="4"
  9586. class="pj"
  9587. style="
  9588. padding: 10px 5px;
  9589. width: 70%;
  9590. background: #f7f6f9;
  9591. font-size: 14px;
  9592. text-indent: 10px;
  9593. color: #000;
  9594. "
  9595. cols
  9596. v-model="eScore.eBzText"
  9597. placeholder="请输入评价内容..."
  9598. ></textarea>
  9599. </div>
  9600. </div>
  9601. </div>
  9602. </div>
  9603. <div class="comment">
  9604. <div class="commentList">
  9605. <div class="commentImg">
  9606. <img
  9607. @click="
  9608. isLikes(
  9609. commentDetail.wid,
  9610. userid,
  9611. 1,
  9612. null,
  9613. commentDetail.isLikes
  9614. )
  9615. "
  9616. :src="commentDetail.isLikes == true ? likes : noLikes"
  9617. alt=""
  9618. />
  9619. </div>
  9620. <div>{{ commentDetail.likesCount }}</div>
  9621. </div>
  9622. <div class="commentList">
  9623. <div class="commentImg">
  9624. <img src="../../assets/icon/comment/comment.png" alt="" />
  9625. </div>
  9626. <div>{{ commentDetail.commentCount }}</div>
  9627. </div>
  9628. </div>
  9629. <div class="drawPBox" v-if="commentDetail.img">
  9630. <span>教师批注</span>
  9631. <img
  9632. :src="commentDetail.img"
  9633. alt=""
  9634. @click="previewImg(commentDetail.img)"
  9635. />
  9636. <span
  9637. class="deleteImg"
  9638. v-if="tType == 1 || tType == 4"
  9639. @click.stop="deletePicturePaint(commentDetail.wid)"
  9640. style="
  9641. font-size: 14px;
  9642. width: auto !important;
  9643. color: #b4b4b4;
  9644. top: unset;
  9645. bottom: 0;
  9646. border: none;
  9647. padding: 0;
  9648. height: auto !important;
  9649. margin: 0;
  9650. "
  9651. >删除</span
  9652. >
  9653. </div>
  9654. </div>
  9655. <div class="commentBox">
  9656. <div class="pl">评论:</div>
  9657. <div style="max-height: 200px; overflow: auto">
  9658. <div
  9659. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9660. style="padding: 10px 0 0 0"
  9661. >
  9662. <div
  9663. class="studentDetail"
  9664. style="padding-top: 10px"
  9665. v-for="(co, coIndex) in commentDetail.commentJson"
  9666. :key="coIndex"
  9667. >
  9668. <div class="tx" style="min-width: 50px">
  9669. <img src="../../assets/avatar.png" alt="" />
  9670. </div>
  9671. <div class="plPerson">
  9672. <div class="plName">
  9673. <div>{{ co.commentPeople }}</div>
  9674. <div style="margin-left: 5px">
  9675. {{ co.commentTime }}
  9676. </div>
  9677. <div
  9678. class="deleteComment"
  9679. v-if="userid == co.userid"
  9680. @click="deleteComment(co.wid)"
  9681. >
  9682. 删除
  9683. </div>
  9684. </div>
  9685. <div class="plContent">{{ co.commentText }}</div>
  9686. </div>
  9687. </div>
  9688. </div>
  9689. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9690. </div>
  9691. </div>
  9692. <div style="margin-top: 10px">
  9693. <div class="displayBox">
  9694. <div
  9695. style="
  9696. color: #556db4;
  9697. font-size: 14px;
  9698. font-weight: bold;
  9699. padding-bottom: 10px;
  9700. "
  9701. >
  9702. 评价
  9703. </div>
  9704. <div class="easy_comment" v-if="false">
  9705. <div
  9706. v-for="(p, pIndex) in PlTextList"
  9707. :key="pIndex"
  9708. @click="fastText(p, 1)"
  9709. >
  9710. {{ p }}
  9711. </div>
  9712. </div>
  9713. </div>
  9714. <div>
  9715. <textarea
  9716. rows="3"
  9717. class="pj"
  9718. style="padding: 10px 5px"
  9719. cols
  9720. v-model="commentText"
  9721. placeholder="请输入评论"
  9722. ></textarea>
  9723. </div>
  9724. </div>
  9725. <div slot="footer">
  9726. <el-button
  9727. @click="
  9728. (commentDialogVisible = false),
  9729. (commentIndexJson = {}),
  9730. videoDetail.sources && videoDetail.sources[0]
  9731. ? (videoDetail.sources[0].src = '')
  9732. : ''
  9733. "
  9734. >取 消</el-button
  9735. >
  9736. <el-button
  9737. type="primary"
  9738. @click="addComment(commentDetail.wid, userid, 2)"
  9739. >确 定</el-button
  9740. >
  9741. </div>
  9742. </el-dialog>
  9743. <el-dialog
  9744. title="查看文档"
  9745. :visible.sync="fullDialogVisible"
  9746. :append-to-body="true"
  9747. width="100%"
  9748. :before-close="handleClose"
  9749. :show-close="false"
  9750. class="dialog_diy full_diy"
  9751. :class="{ full_diy2: fulltype == 3 }"
  9752. >
  9753. <div slot="title" class="header-title">
  9754. <div style="color: #fff">查看文档</div>
  9755. <div
  9756. @click="fullDialogVisible = false"
  9757. style="
  9758. cursor: pointer;
  9759. position: absolute;
  9760. top: 20px;
  9761. right: 20px;
  9762. color: #fff;
  9763. "
  9764. >
  9765. 退出全屏
  9766. </div>
  9767. </div>
  9768. <div style="height: 100%">
  9769. <div
  9770. class="wheel"
  9771. v-if="
  9772. fullUrl.indexOf(
  9773. 'https://view.officeapps.live.com/op/view.aspx?src='
  9774. ) != -1 && fulltype == 2
  9775. "
  9776. style="width: 95%; margin: 0 auto"
  9777. >
  9778. <iframe
  9779. style="width: 100%; height: 100%; border: none"
  9780. :src="fullUrl"
  9781. ></iframe>
  9782. </div>
  9783. <iframe
  9784. v-else-if="fulltype == 2"
  9785. style="width: 100%; height: 100%; border: none"
  9786. :src="fullUrl"
  9787. security="restricted"
  9788. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9789. ></iframe>
  9790. <pdf
  9791. v-else-if="fulltype == 3"
  9792. :pdfUrl="fullUrl"
  9793. style="width: 100%; height: 100%; overflow: auto"
  9794. ></pdf>
  9795. <div
  9796. class="wheel"
  9797. v-if="fulltype == 1"
  9798. style="
  9799. box-shadow: 0 0 6px 1px #f2f2f2;
  9800. width: 100%;
  9801. background: #f1f1f1;
  9802. "
  9803. >
  9804. <div class="title" style="width: 100%; box-sizing: border-box">
  9805. 查看文档
  9806. </div>
  9807. <el-form class="textBox" style="height: 90%">
  9808. <el-form-item class="textTitle">
  9809. <div style="font-size: 22px">
  9810. {{ fullUrl.name }}
  9811. </div>
  9812. </el-form-item>
  9813. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9814. <div
  9815. v-html="fullUrl.url"
  9816. class="textContent"
  9817. style="height: auto"
  9818. ></div>
  9819. </el-form>
  9820. </div>
  9821. </div>
  9822. <!-- <div slot="footer">
  9823. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9824. </div> -->
  9825. </el-dialog>
  9826. <el-dialog
  9827. title="个人评价"
  9828. :visible.sync="studentEvalDialogVisible"
  9829. :append-to-body="true"
  9830. width="800px"
  9831. :before-close="handleClose"
  9832. class="dialog_diy"
  9833. >
  9834. <div class="evalCss">
  9835. <div class="nav">请选择星星进行评分</div>
  9836. <div class="middleBox" v-if="eScore.eStar">
  9837. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9838. <div class="nameAndrate">
  9839. <div>{{ e.value }}</div>
  9840. <el-rate
  9841. v-model="eScore.eStar[eIndex]"
  9842. :disabled="isStar"
  9843. ></el-rate>
  9844. </div>
  9845. <div v-if="e.detail">{{ e.detail }}</div>
  9846. </div>
  9847. <div class="easy_comment" v-if="false">
  9848. <div
  9849. v-for="(p, pIndex) in PlTextList"
  9850. :key="pIndex"
  9851. @click="fastText(p, 2)"
  9852. >
  9853. {{ p }}
  9854. </div>
  9855. </div>
  9856. <div class="bz">
  9857. <textarea
  9858. :disabled="isStar"
  9859. rows="4"
  9860. class="pj"
  9861. style="
  9862. padding: 10px 5px;
  9863. width: 70%;
  9864. background: #f7f6f9;
  9865. font-size: 14px;
  9866. text-indent: 10px;
  9867. "
  9868. cols
  9869. v-model="eScore.eBzText"
  9870. placeholder="请输入评价内容..."
  9871. ></textarea>
  9872. </div>
  9873. </div>
  9874. </div>
  9875. <div slot="footer">
  9876. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9877. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9878. >确 定</el-button
  9879. >
  9880. </div>
  9881. </el-dialog>
  9882. <el-dialog
  9883. title="个人评价"
  9884. :visible.sync="studentEvalDialogVisibleTeacher"
  9885. :append-to-body="true"
  9886. width="800px"
  9887. :before-close="handleClose"
  9888. class="dialog_diy"
  9889. >
  9890. <div class="w_name">
  9891. 学生姓名:<span>{{ sStudent.student }}</span>
  9892. </div>
  9893. <div class="evalCss">
  9894. <div class="nav">请选择星星进行评分</div>
  9895. <div class="middleBox" v-if="eScore.eStar">
  9896. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9897. <div class="nameAndrate">
  9898. <div>{{ e.value }}</div>
  9899. <el-rate
  9900. v-model="eScore.eStar[eIndex]"
  9901. :disabled="isStar"
  9902. ></el-rate>
  9903. </div>
  9904. <div v-if="e.detail">{{ e.detail }}</div>
  9905. </div>
  9906. <div class="easy_comment" v-if="false">
  9907. <div
  9908. v-for="(p, pIndex) in PlTextList"
  9909. :key="pIndex"
  9910. @click="fastText(p, 2)"
  9911. >
  9912. {{ p }}
  9913. </div>
  9914. </div>
  9915. <div class="bz">
  9916. <textarea
  9917. :disabled="isStar"
  9918. rows="4"
  9919. class="pj"
  9920. style="
  9921. padding: 10px 5px;
  9922. width: 70%;
  9923. background: #f7f6f9;
  9924. font-size: 14px;
  9925. text-indent: 10px;
  9926. "
  9927. cols
  9928. v-model="eScore.eBzText"
  9929. placeholder="请输入评价内容..."
  9930. ></textarea>
  9931. </div>
  9932. </div>
  9933. </div>
  9934. <div slot="footer">
  9935. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9936. >取 消</el-button
  9937. >
  9938. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9939. >确 定</el-button
  9940. >
  9941. </div>
  9942. </el-dialog>
  9943. <el-dialog
  9944. title="选择填空"
  9945. :visible.sync="dialogVisibleSelect"
  9946. :append-to-body="true"
  9947. width="90%"
  9948. :before-close="handleClose"
  9949. class="dialog_diy dialog_diy3"
  9950. >
  9951. <div v-if="selectJson">
  9952. <div class="select_box2">
  9953. <div class="select_box2_title">
  9954. <div>选择填空</div>
  9955. <div>请选择对应的答案进行答题!</div>
  9956. </div>
  9957. <div class="select_box2_box">
  9958. <div class="select_box2_img">
  9959. <img
  9960. :src="selectJson.url"
  9961. @click="previewImg(selectJson.url)"
  9962. alt=""
  9963. />
  9964. </div>
  9965. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9966. <div style="padding-top: 15px">
  9967. <div class="select_answer_title" v-if="isSelect">
  9968. {{ selectAnswer.stu }}
  9969. </div>
  9970. <div class="select_answer_title" v-else>
  9971. 根据题目选择对应答案
  9972. </div>
  9973. <div
  9974. class="select_box2_answer_box"
  9975. v-for="(item2, checkIndex) in selectJson.select"
  9976. :key="checkIndex"
  9977. >
  9978. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9979. <el-select
  9980. :disabled="isSelect"
  9981. v-model="selectAnswer.answer[checkIndex]"
  9982. placeholder="请选择正确答案"
  9983. >
  9984. <el-option
  9985. v-for="(e, eIndex) in selectJson.select"
  9986. :key="eIndex"
  9987. :label="e"
  9988. :value="eIndex"
  9989. >
  9990. </el-option>
  9991. </el-select>
  9992. </div>
  9993. </div>
  9994. <div
  9995. class="rightAnswerCss"
  9996. v-if="isSelect && (tType == 1 || tType == 4)"
  9997. >
  9998. <div
  9999. v-for="(a, aIndex) in selectJson.answer"
  10000. :key="aIndex"
  10001. class="rightAnswer"
  10002. >
  10003. <div
  10004. v-if="selectAnswer.answer[aIndex] === a"
  10005. style="color: #767de1"
  10006. >
  10007. 回答正确
  10008. </div>
  10009. <div v-else>回答错误</div>
  10010. <div
  10011. style="margin-left: 10px"
  10012. v-if="selectAnswer.answer[aIndex] !== a"
  10013. >
  10014. 正确答案:
  10015. </div>
  10016. <div
  10017. :class="
  10018. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10019. "
  10020. >
  10021. {{ selectJson.select[a] }}
  10022. </div>
  10023. </div>
  10024. </div>
  10025. </div>
  10026. <div class="upAnswerCss">
  10027. <el-button
  10028. type="primary"
  10029. @click="addSelectAnswer"
  10030. v-if="!isSelect"
  10031. >提交答案</el-button
  10032. >
  10033. </div>
  10034. </div>
  10035. </div>
  10036. </div>
  10037. </el-dialog>
  10038. <el-dialog
  10039. title="选择填空"
  10040. :visible.sync="dialogVisibleSelectTeacher"
  10041. :append-to-body="true"
  10042. width="90%"
  10043. :before-close="handleClose"
  10044. class="dialog_diy dialog_diy3"
  10045. >
  10046. <div v-if="selectJson">
  10047. <div class="w_name">
  10048. 学生姓名:<span>{{ sStudent.student }}</span>
  10049. </div>
  10050. <div class="select_box2">
  10051. <div class="select_box2_title">
  10052. <div>选择填空</div>
  10053. <div>请选择对应的答案进行答题!</div>
  10054. </div>
  10055. <div class="select_box2_box">
  10056. <div class="select_box2_img">
  10057. <img
  10058. :src="selectJson.url"
  10059. @click="previewImg(selectJson.url)"
  10060. alt=""
  10061. />
  10062. </div>
  10063. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10064. <div style="padding-top: 15px">
  10065. <div class="select_answer_title" v-if="isSelect">
  10066. {{ selectAnswer.stu }}
  10067. </div>
  10068. <div class="select_answer_title" v-else>
  10069. 根据题目选择对应答案
  10070. </div>
  10071. <div
  10072. class="select_box2_answer_box"
  10073. v-for="(item2, checkIndex) in selectJson.select"
  10074. :key="checkIndex"
  10075. >
  10076. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10077. <el-select
  10078. :disabled="isSelect"
  10079. v-model="selectAnswer.answer[checkIndex]"
  10080. placeholder="请选择正确答案"
  10081. >
  10082. <el-option
  10083. v-for="(e, eIndex) in selectJson.select"
  10084. :key="eIndex"
  10085. :label="e"
  10086. :value="eIndex"
  10087. >
  10088. </el-option>
  10089. </el-select>
  10090. </div>
  10091. </div>
  10092. <div
  10093. class="rightAnswerCss"
  10094. v-if="isSelect && (tType == 1 || tType == 4)"
  10095. >
  10096. <div
  10097. v-for="(a, aIndex) in selectJson.answer"
  10098. :key="aIndex"
  10099. class="rightAnswer"
  10100. >
  10101. <div
  10102. v-if="selectAnswer.answer[aIndex] === a"
  10103. style="color: #767de1"
  10104. >
  10105. 回答正确
  10106. </div>
  10107. <div v-else>回答错误</div>
  10108. <div
  10109. style="margin-left: 10px"
  10110. v-if="selectAnswer.answer[aIndex] !== a"
  10111. >
  10112. 正确答案:
  10113. </div>
  10114. <div
  10115. :class="
  10116. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10117. "
  10118. >
  10119. {{ selectJson.select[a] }}
  10120. </div>
  10121. </div>
  10122. </div>
  10123. </div>
  10124. <div class="upAnswerCss">
  10125. <el-button
  10126. type="primary"
  10127. @click="addSelectAnswerTeacher"
  10128. v-if="!isSelect"
  10129. >提交答案</el-button
  10130. >
  10131. </div>
  10132. </div>
  10133. </div>
  10134. </div>
  10135. </el-dialog>
  10136. <el-dialog
  10137. title="教师评分"
  10138. :visible.sync="dialogVisibleScore"
  10139. :append-to-body="true"
  10140. width="800px"
  10141. :before-close="handleClose"
  10142. class="dialog_diy"
  10143. >
  10144. <div>
  10145. <div class="studentDetail">
  10146. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10147. <div class="nameAndTime">
  10148. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10149. <div>{{ commentDetail.time }}</div>
  10150. </div>
  10151. </div>
  10152. <div
  10153. class="worksAnswer"
  10154. v-if="commentDetail.works && commentDetail.type == 2"
  10155. >
  10156. {{ JSON.parse(commentDetail.works)[0].answer }}
  10157. </div>
  10158. <div
  10159. class="worksAnswer"
  10160. v-if="commentDetail.works && commentDetail.type == 1"
  10161. >
  10162. <pdf
  10163. v-if="showPDF"
  10164. :pdfUrl="pptImgUrl"
  10165. style="width: 100%; height: 520px; overflow: auto"
  10166. :class="{ fullStyle: full }"
  10167. ></pdf>
  10168. <iframe
  10169. v-else
  10170. :src="pptImgUrl"
  10171. frameborder="0"
  10172. width="100%"
  10173. height="600"
  10174. :class="{ fullStyle: full }"
  10175. ></iframe>
  10176. </div>
  10177. <div
  10178. class="worksAnswer"
  10179. v-if="commentDetail.works && commentDetail.type == 0"
  10180. >
  10181. <img
  10182. :src="commentDetail.works"
  10183. alt=""
  10184. @click="previewImg(commentDetail.works)"
  10185. />
  10186. </div>
  10187. <div
  10188. class="worksAnswer"
  10189. v-if="commentDetail.works && commentDetail.type == 3"
  10190. >
  10191. <video-player
  10192. class="video-player vjs-custom-skin"
  10193. :playsinline="true"
  10194. :options="videoDetail"
  10195. @play="onPlayerPlay($event)"
  10196. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10197. ></video-player>
  10198. </div>
  10199. <div
  10200. class="worksAnswer codeFileBox"
  10201. v-if="commentDetail.works && commentDetail.type == 12"
  10202. @click="downloadFile(commentDetail.works)"
  10203. >
  10204. <img src="../../assets/icon/codeFile.png" />
  10205. <div>点击下载文件</div>
  10206. </div>
  10207. <div
  10208. class="worksAnswer codeFileBox"
  10209. v-if="commentDetail.works && commentDetail.type == 15"
  10210. @click="
  10211. openCocoPi(
  10212. 57,
  10213. commentIndexJson.toolIndex,
  10214. commentDetail.userid,
  10215. commentDetail.sName
  10216. )
  10217. "
  10218. >
  10219. <img src="../../assets/icon/codeFile.png" />
  10220. <div>点击打开CocoPi</div>
  10221. </div>
  10222. <div
  10223. class="worksAnswer"
  10224. v-if="commentDetail.works && commentDetail.type == 13"
  10225. >
  10226. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10227. </div>
  10228. <div class="scoreBox">
  10229. <span class="t">请输入分数</span>
  10230. <el-input-number
  10231. :disabled="courseDetail.userid != userid"
  10232. v-model="wScore"
  10233. :controls="false"
  10234. :min="0"
  10235. :max="100"
  10236. ></el-input-number>
  10237. </div>
  10238. <div class="scoreDetailBox">
  10239. <span class="t">评分评论</span>
  10240. <el-input
  10241. type="textarea"
  10242. :rows="5"
  10243. :disabled="courseDetail.userid != userid"
  10244. resize="none"
  10245. v-model="scoreDetail"
  10246. placeholder="请输入对学生的评价"
  10247. >
  10248. </el-input>
  10249. </div>
  10250. </div>
  10251. <span slot="footer" class="dialog-footer">
  10252. <el-button
  10253. @click="
  10254. (dialogVisibleScore = false),
  10255. (commentIndexJson = {}),
  10256. videoDetail.sources && videoDetail.sources[0]
  10257. ? (videoDetail.sources[0].src = '')
  10258. : ''
  10259. "
  10260. >取 消</el-button
  10261. >
  10262. <el-button
  10263. type="primary"
  10264. v-if="courseDetail.userid == userid"
  10265. @click="scoreWork(commentDetail.wid)"
  10266. >确 定
  10267. </el-button>
  10268. </span>
  10269. </el-dialog>
  10270. <el-dialog
  10271. title="连词成句"
  10272. :visible.sync="dialogVisibleSentence"
  10273. :append-to-body="true"
  10274. width="1000px"
  10275. :before-close="handleClose"
  10276. class="dialog_diy dialog_diy3"
  10277. >
  10278. <div>
  10279. <div class="sentenBox">
  10280. <div
  10281. v-for="(st, stIndex) in sentenceList"
  10282. :key="stIndex"
  10283. style="padding-bottom: 20px"
  10284. >
  10285. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10286. <div class="cardList" v-if="st.chooseSenList">
  10287. <div class="cardBox">
  10288. <div
  10289. v-for="(r, rIndex) in st.chooseSenList"
  10290. :key="rIndex"
  10291. @click="returnCard(r, stIndex, rIndex)"
  10292. >
  10293. <el-tooltip
  10294. class="item"
  10295. effect="light"
  10296. :content="r"
  10297. placement="top"
  10298. v-if="r != '' && r != undefined"
  10299. >
  10300. <div
  10301. :class="{
  10302. isCard: r,
  10303. isChooseCard: r == '' || r == undefined,
  10304. }"
  10305. >
  10306. <div>{{ r }}</div>
  10307. </div>
  10308. </el-tooltip>
  10309. <div
  10310. :class="{
  10311. isCard: r,
  10312. isChooseCard: r == '' || r == undefined,
  10313. }"
  10314. v-else
  10315. >
  10316. <div>{{ r }}</div>
  10317. </div>
  10318. </div>
  10319. </div>
  10320. </div>
  10321. <div class="cardList" v-if="st.addChangeSen">
  10322. <div class="cardBox">
  10323. <div
  10324. v-for="(s, sIndex) in st.addChangeSen"
  10325. :key="sIndex"
  10326. @click="setRightAnswer(s, stIndex, sIndex)"
  10327. >
  10328. <el-tooltip
  10329. class="item"
  10330. effect="light"
  10331. :content="s"
  10332. placement="top"
  10333. v-if="s != '' && s != undefined"
  10334. >
  10335. <div
  10336. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10337. >
  10338. <div>{{ s }}</div>
  10339. </div>
  10340. </el-tooltip>
  10341. <div
  10342. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10343. v-else
  10344. >
  10345. <div>{{ s }}</div>
  10346. </div>
  10347. </div>
  10348. </div>
  10349. </div>
  10350. </div>
  10351. </div>
  10352. </div>
  10353. <span slot="footer" class="dialog-footer">
  10354. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10355. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10356. </span>
  10357. </el-dialog>
  10358. <el-dialog
  10359. title="连词成句"
  10360. :visible.sync="dialogVisibleSentenceTeacher"
  10361. :append-to-body="true"
  10362. width="1000px"
  10363. :before-close="handleClose"
  10364. class="dialog_diy dialog_diy3"
  10365. >
  10366. <div>
  10367. <div class="w_name">
  10368. 学生姓名:<span>{{ sStudent.student }}</span>
  10369. </div>
  10370. <div class="sentenBox">
  10371. <div
  10372. v-for="(st, stIndex) in sentenceList"
  10373. :key="stIndex"
  10374. style="padding-bottom: 20px"
  10375. >
  10376. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10377. <div class="cardList" v-if="st.chooseSenList">
  10378. <div class="cardBox">
  10379. <div
  10380. v-for="(r, rIndex) in st.chooseSenList"
  10381. :key="rIndex"
  10382. @click="returnCard(r, stIndex, rIndex)"
  10383. >
  10384. <el-tooltip
  10385. class="item"
  10386. effect="light"
  10387. :content="r"
  10388. placement="top"
  10389. v-if="r != '' && r != undefined"
  10390. >
  10391. <div
  10392. :class="{
  10393. isCard: r,
  10394. isChooseCard: r == '' || r == undefined,
  10395. }"
  10396. >
  10397. <div>{{ r }}</div>
  10398. </div>
  10399. </el-tooltip>
  10400. <div
  10401. :class="{
  10402. isCard: r,
  10403. isChooseCard: r == '' || r == undefined,
  10404. }"
  10405. v-else
  10406. >
  10407. <div>{{ r }}</div>
  10408. </div>
  10409. </div>
  10410. </div>
  10411. </div>
  10412. <div class="cardList" v-if="st.addChangeSen">
  10413. <div class="cardBox">
  10414. <div
  10415. v-for="(s, sIndex) in st.addChangeSen"
  10416. :key="sIndex"
  10417. @click="setRightAnswer(s, stIndex, sIndex)"
  10418. >
  10419. <el-tooltip
  10420. class="item"
  10421. effect="light"
  10422. :content="s"
  10423. placement="top"
  10424. v-if="s != '' && s != undefined"
  10425. >
  10426. <div
  10427. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10428. >
  10429. <div>{{ s }}</div>
  10430. </div>
  10431. </el-tooltip>
  10432. <div
  10433. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10434. v-else
  10435. >
  10436. <div>{{ s }}</div>
  10437. </div>
  10438. </div>
  10439. </div>
  10440. </div>
  10441. </div>
  10442. </div>
  10443. </div>
  10444. <span slot="footer" class="dialog-footer">
  10445. <el-button @click="dialogVisibleSentenceTeacher = false"
  10446. >取 消</el-button
  10447. >
  10448. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10449. </span>
  10450. </el-dialog>
  10451. <el-dialog
  10452. title="连词成句"
  10453. :visible.sync="dialogVisibleSentence1"
  10454. :append-to-body="true"
  10455. width="1000px"
  10456. :before-close="handleClose"
  10457. class="dialog_diy dialog_diy3"
  10458. >
  10459. <div>
  10460. <div class="sentenBox">
  10461. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10462. {{ sentenceList1.stuName }}的作业
  10463. </div>
  10464. <div
  10465. v-for="(st, stIndex) in sentenceList1"
  10466. :key="stIndex"
  10467. style="padding-bottom: 20px"
  10468. >
  10469. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10470. 第{{ stIndex + 1 }}题
  10471. </div>
  10472. <div class="isWrong">
  10473. <div class="cardList1" v-if="st.chooseSenList">
  10474. <div class="cardBox">
  10475. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10476. <el-tooltip
  10477. class="item"
  10478. effect="light"
  10479. :content="s"
  10480. placement="top"
  10481. >
  10482. <div class="isCard">
  10483. <div>{{ s }}</div>
  10484. </div>
  10485. </el-tooltip>
  10486. </div>
  10487. </div>
  10488. <div class="cardAnswerBox">
  10489. 组成句子:{{ st.chooseSenList.join(" ") }}
  10490. </div>
  10491. </div>
  10492. <div
  10493. class="answerRight isTj"
  10494. v-if="
  10495. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10496. (tType == 1 || tType == 4)
  10497. "
  10498. >
  10499. <div class="isTjImg">
  10500. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10501. </div>
  10502. <div>回答正确</div>
  10503. </div>
  10504. <div
  10505. class="answerRight isTj"
  10506. v-if="
  10507. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10508. (tType == 1 || tType == 4)
  10509. "
  10510. >
  10511. <div class="isTjImg">
  10512. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10513. </div>
  10514. <div>回答错误</div>
  10515. </div>
  10516. </div>
  10517. <div
  10518. v-if="
  10519. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10520. (tType == 1 || tType == 4)
  10521. "
  10522. >
  10523. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10524. <div
  10525. class="cardList"
  10526. v-if="st.rightAnswer"
  10527. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10528. >
  10529. <div class="cardBox">
  10530. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10531. <el-tooltip
  10532. class="item"
  10533. effect="light"
  10534. :content="r"
  10535. placement="top"
  10536. >
  10537. <div class="isCard1">
  10538. <div>{{ r }}</div>
  10539. </div>
  10540. </el-tooltip>
  10541. </div>
  10542. </div>
  10543. <div class="cardAnswerBox">
  10544. 组成句子:{{ st.rightAnswer.join(" ") }}
  10545. </div>
  10546. </div>
  10547. </div>
  10548. </div>
  10549. </div>
  10550. </div>
  10551. <span slot="footer" class="dialog-footer">
  10552. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10553. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10554. >确 定</el-button
  10555. >
  10556. </span>
  10557. </el-dialog>
  10558. <el-dialog
  10559. title="提交作业"
  10560. :visible.sync="dialogVisibleWorks"
  10561. :append-to-body="true"
  10562. width="500px"
  10563. :before-close="handleClose"
  10564. class="dialog_change"
  10565. >
  10566. <div class="marginT">
  10567. <div class="w_name">
  10568. 学生姓名:<span>{{ sStudent.student }}</span>
  10569. </div>
  10570. <div>上传文件</div>
  10571. <div
  10572. class="chapter_add"
  10573. @click="addImg($event)"
  10574. v-if="studyJuri[0].cover.length == 0"
  10575. >
  10576. <div class="up_photo">
  10577. <img src="../../assets/uploadImg2.png" alt />
  10578. </div>
  10579. <!-- <input
  10580. type="file"
  10581. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10582. style="display: none"
  10583. @change="beforeUpload1($event, 1)"
  10584. /> -->
  10585. <input
  10586. type="file"
  10587. accept="*"
  10588. style="display: none"
  10589. @change="beforeUpload1($event, 1)"
  10590. />
  10591. </div>
  10592. <!-- capture="camera" -->
  10593. <div
  10594. class="chapter_add"
  10595. style="
  10596. display: flex;
  10597. width: 100%;
  10598. flex-direction: row;
  10599. flex-wrap: wrap;
  10600. justify-content: flex-start;
  10601. padding: 15px 0;
  10602. "
  10603. v-if="studyJuri[0].cover.length > 0"
  10604. >
  10605. <div class="upCover">
  10606. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10607. <img :src="word" alt v-else-if="fileType == 1" />
  10608. <img :src="video" alt v-else-if="fileType == 2" />
  10609. <img :src="word2" alt v-else-if="fileType == 3" />
  10610. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10611. <div class="deleteWord" @click="clean(1)">
  10612. <img src="../../assets/icon/deleteWorks.png" alt />
  10613. </div>
  10614. </div>
  10615. </div>
  10616. </div>
  10617. <div
  10618. class="upload_send"
  10619. @click="addCourseWorksTeacher(taskCount)"
  10620. v-if="!proVisible"
  10621. >
  10622. 提交
  10623. </div>
  10624. </el-dialog>
  10625. <el-dialog
  10626. title="问答"
  10627. :visible.sync="answerDialogVisibleTeacher"
  10628. :append-to-body="true"
  10629. width="800px"
  10630. :before-close="handleClose"
  10631. class="dialog_diy"
  10632. >
  10633. <div>
  10634. <div class="w_name">
  10635. 学生姓名:<span>{{ sStudent.student }}</span>
  10636. </div>
  10637. <div
  10638. style="
  10639. display: flex;
  10640. flex-wrap: nowrap;
  10641. flex-direction: column;
  10642. position: relative;
  10643. "
  10644. >
  10645. <div class="queTop" style="padding: 20px 0 20px 0">
  10646. <div class="question">
  10647. <img src="../../assets/icon/question.png" alt />
  10648. </div>
  10649. <div class="queTitle">
  10650. <div style="width: 90px; min-width: 90px">提问:</div>
  10651. <div>{{ answerQ }}</div>
  10652. </div>
  10653. </div>
  10654. <div class="ediBottom">
  10655. <textarea
  10656. rows="6"
  10657. class="binfo_input"
  10658. cols
  10659. style="width: 95%; height: 120px"
  10660. v-model="questionAnswer"
  10661. ></textarea>
  10662. </div>
  10663. </div>
  10664. </div>
  10665. <div slot="footer">
  10666. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10667. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10668. </div>
  10669. </el-dialog>
  10670. <ImgDraw
  10671. :drawShow="drawShow"
  10672. @closeDraw="closeDraw"
  10673. @addImgDraw="addImgDraw"
  10674. :bg="bg"
  10675. ></ImgDraw>
  10676. <el-dialog
  10677. title="表格"
  10678. :visible.sync="dialogVisibleTable"
  10679. :append-to-body="true"
  10680. width="95%"
  10681. :before-close="handleClose"
  10682. class="dialog_diy"
  10683. >
  10684. <el-form>
  10685. <div>表格内容</div>
  10686. <Table
  10687. v-model="tableJson.text"
  10688. @change="change"
  10689. v-if="dialogVisibleTable"
  10690. ></Table>
  10691. </el-form>
  10692. <span slot="footer" class="dialog-footer">
  10693. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10694. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10695. </span>
  10696. </el-dialog>
  10697. <el-dialog
  10698. title="表格"
  10699. :visible.sync="dialogVisibleTableTeacher"
  10700. :append-to-body="true"
  10701. width="95%"
  10702. :before-close="handleClose"
  10703. class="dialog_diy"
  10704. >
  10705. <el-form>
  10706. <div class="w_name">
  10707. 学生姓名:<span>{{ sStudent.student }}</span>
  10708. </div>
  10709. <div>表格内容</div>
  10710. <Table
  10711. v-model="tableJson.text"
  10712. @change="change"
  10713. v-if="dialogVisibleTableTeacher"
  10714. ></Table>
  10715. </el-form>
  10716. <span slot="footer" class="dialog-footer">
  10717. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10718. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10719. </span>
  10720. </el-dialog>
  10721. <el-dialog
  10722. title="文档"
  10723. :visible.sync="dialogVisibleWord"
  10724. :append-to-body="true"
  10725. width="95%"
  10726. :before-close="handleClose"
  10727. class="dialog_diy"
  10728. >
  10729. <el-form>
  10730. <div>文档内容</div>
  10731. <editor-bar
  10732. v-model="wordJson.text"
  10733. v-if="dialogVisibleWord"
  10734. ></editor-bar>
  10735. </el-form>
  10736. <span slot="footer" class="dialog-footer">
  10737. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10738. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10739. </span>
  10740. </el-dialog>
  10741. <el-dialog
  10742. title="文档"
  10743. :visible.sync="dialogVisibleWordTeacher"
  10744. :append-to-body="true"
  10745. width="95%"
  10746. :before-close="handleClose"
  10747. class="dialog_diy"
  10748. >
  10749. <el-form>
  10750. <div class="w_name">
  10751. 学生姓名:<span>{{ sStudent.student }}</span>
  10752. </div>
  10753. <div>文档内容</div>
  10754. <editor-bar
  10755. v-model="wordJson.text"
  10756. v-if="dialogVisibleWordTeacher"
  10757. ></editor-bar>
  10758. </el-form>
  10759. <span slot="footer" class="dialog-footer">
  10760. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10761. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10762. </span>
  10763. </el-dialog>
  10764. <el-dialog
  10765. title="表格"
  10766. :visible.sync="dialogVisibleTable2"
  10767. :append-to-body="true"
  10768. width="95%"
  10769. :before-close="handleClose"
  10770. class="dialog_diy"
  10771. >
  10772. <el-form>
  10773. <div class="cont" v-html="tableJson.text"></div>
  10774. </el-form>
  10775. <span slot="footer" class="dialog-footer">
  10776. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10777. </span>
  10778. </el-dialog>
  10779. <el-dialog
  10780. title="文档"
  10781. :visible.sync="dialogVisibleTable3"
  10782. :append-to-body="true"
  10783. width="95%"
  10784. :before-close="handleClose"
  10785. class="dialog_diy"
  10786. >
  10787. <el-form>
  10788. <div class="cont" v-html="tableJson.text"></div>
  10789. </el-form>
  10790. <span slot="footer" class="dialog-footer">
  10791. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10792. </span>
  10793. </el-dialog>
  10794. <el-dialog
  10795. title="分组设置"
  10796. :visible.sync="dialogVisibleGroup"
  10797. :append-to-body="true"
  10798. width="95%"
  10799. :before-close="handleClose"
  10800. class="dialog_diy"
  10801. >
  10802. <div v-if="dialogVisibleGroup">
  10803. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10804. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10805. 提示:需要锁定位置,才能点击头像修改座位。
  10806. </div>
  10807. <div
  10808. type="primary"
  10809. v-if="groupJson.islock == 1"
  10810. class="returnBtn"
  10811. style="background-color: #225bc7"
  10812. @click="lockChair"
  10813. >
  10814. 锁定位置
  10815. </div>
  10816. <div
  10817. type="primary"
  10818. v-else
  10819. class="returnBtn"
  10820. style="background-color: #225bc7"
  10821. @click="lockChair"
  10822. >
  10823. 解锁位置
  10824. </div>
  10825. <div
  10826. type="primary"
  10827. @click="updateGroup"
  10828. class="returnBtn"
  10829. style="background-color: #225bc7"
  10830. >
  10831. 分组设置
  10832. </div>
  10833. </div>
  10834. <div>
  10835. <div
  10836. class="g_d_box"
  10837. v-if="groupJson.group && groupStudent[toolindex]"
  10838. >
  10839. <div
  10840. class="g_d_group"
  10841. v-for="(g, gindex) in groupJson.group"
  10842. :key="gindex"
  10843. >
  10844. <div class="g_d_group_chair">
  10845. <div v-if="groupJson.number > 1">
  10846. <span
  10847. :class="{
  10848. isChair:
  10849. groupStudent[toolindex][gindex] &&
  10850. groupStudent[toolindex][gindex][0],
  10851. updateChair:
  10852. courseDetail.userid == userid &&
  10853. groupStudent[toolindex][gindex] &&
  10854. groupStudent[toolindex][gindex][0] &&
  10855. groupJson.islock == 2,
  10856. }"
  10857. ><span
  10858. class="updateChairBtn"
  10859. @click="
  10860. updateGroupChair(
  10861. groupStudent[toolindex][gindex] &&
  10862. groupStudent[toolindex][gindex][0]
  10863. )
  10864. "
  10865. >修改</span
  10866. ></span
  10867. ><span>{{
  10868. groupStudent[toolindex][gindex] &&
  10869. groupStudent[toolindex][gindex][0]
  10870. ? groupStudent[toolindex][gindex] &&
  10871. groupStudent[toolindex][gindex][0].name
  10872. : "空位置"
  10873. }}</span>
  10874. </div>
  10875. <div v-if="groupJson.number > 4">
  10876. <span
  10877. :class="{
  10878. isChair:
  10879. groupStudent[toolindex][gindex] &&
  10880. groupStudent[toolindex][gindex][4],
  10881. updateChair:
  10882. courseDetail.userid == userid &&
  10883. groupStudent[toolindex][gindex] &&
  10884. groupStudent[toolindex][gindex][4] &&
  10885. groupJson.islock == 2,
  10886. }"
  10887. ><span
  10888. class="updateChairBtn"
  10889. @click="
  10890. updateGroupChair(
  10891. groupStudent[toolindex][gindex] &&
  10892. groupStudent[toolindex][gindex][4]
  10893. )
  10894. "
  10895. >修改</span
  10896. ></span
  10897. ><span>{{
  10898. groupStudent[toolindex][gindex] &&
  10899. groupStudent[toolindex][gindex][4]
  10900. ? groupStudent[toolindex][gindex] &&
  10901. groupStudent[toolindex][gindex][4].name
  10902. : "空位置"
  10903. }}</span>
  10904. </div>
  10905. <div v-if="groupJson.number > 8">
  10906. <span
  10907. :class="{
  10908. isChair:
  10909. groupStudent[toolindex][gindex] &&
  10910. groupStudent[toolindex][gindex][8],
  10911. updateChair:
  10912. courseDetail.userid == userid &&
  10913. groupStudent[toolindex][gindex] &&
  10914. groupStudent[toolindex][gindex][8] &&
  10915. groupJson.islock == 2,
  10916. }"
  10917. ><span
  10918. class="updateChairBtn"
  10919. @click="
  10920. updateGroupChair(
  10921. groupStudent[toolindex][gindex] &&
  10922. groupStudent[toolindex][gindex][8]
  10923. )
  10924. "
  10925. >修改</span
  10926. ></span
  10927. ><span>{{
  10928. groupStudent[toolindex][gindex] &&
  10929. groupStudent[toolindex][gindex][8]
  10930. ? groupStudent[toolindex][gindex] &&
  10931. groupStudent[toolindex][gindex][8].name
  10932. : "空位置"
  10933. }}</span>
  10934. </div>
  10935. </div>
  10936. <div class="g_d_group_tableBox">
  10937. <div class="g_d_group_chair2">
  10938. <div v-if="groupJson.number > 2">
  10939. <span
  10940. :class="{
  10941. isChair:
  10942. groupStudent[toolindex][gindex] &&
  10943. groupStudent[toolindex][gindex][2],
  10944. updateChair:
  10945. courseDetail.userid == userid &&
  10946. groupStudent[toolindex][gindex] &&
  10947. groupStudent[toolindex][gindex][2] &&
  10948. groupJson.islock == 2,
  10949. }"
  10950. ><span
  10951. class="updateChairBtn"
  10952. @click="
  10953. updateGroupChair(
  10954. groupStudent[toolindex][gindex] &&
  10955. groupStudent[toolindex][gindex][2]
  10956. )
  10957. "
  10958. >修改</span
  10959. ></span
  10960. ><span>{{
  10961. groupStudent[toolindex][gindex] &&
  10962. groupStudent[toolindex][gindex][2]
  10963. ? groupStudent[toolindex][gindex] &&
  10964. groupStudent[toolindex][gindex][2].name
  10965. : "空位置"
  10966. }}</span>
  10967. </div>
  10968. <div v-if="groupJson.number > 6">
  10969. <span
  10970. :class="{
  10971. isChair:
  10972. groupStudent[toolindex][gindex] &&
  10973. groupStudent[toolindex][gindex][6],
  10974. updateChair:
  10975. courseDetail.userid == userid &&
  10976. groupStudent[toolindex][gindex] &&
  10977. groupStudent[toolindex][gindex][6] &&
  10978. groupJson.islock == 2,
  10979. }"
  10980. ><span
  10981. class="updateChairBtn"
  10982. @click="
  10983. updateGroupChair(
  10984. groupStudent[toolindex][gindex] &&
  10985. groupStudent[toolindex][gindex][6]
  10986. )
  10987. "
  10988. >修改</span
  10989. ></span
  10990. ><span>{{
  10991. groupStudent[toolindex][gindex] &&
  10992. groupStudent[toolindex][gindex][6]
  10993. ? groupStudent[toolindex][gindex] &&
  10994. groupStudent[toolindex][gindex][6].name
  10995. : "空位置"
  10996. }}</span>
  10997. </div>
  10998. </div>
  10999. <div class="g_d_group_table">
  11000. <div>
  11001. {{ g.name }}
  11002. </div>
  11003. <div>
  11004. <div
  11005. v-if="
  11006. courseDetail.userid == userid && groupJson.islock == 2
  11007. "
  11008. @click="deleteGroupChair(gindex)"
  11009. >
  11010. 移除组员
  11011. </div>
  11012. <div
  11013. @click="selectGroup(gindex)"
  11014. v-else-if="
  11015. groupStudentUid[toolindex] &&
  11016. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11017. "
  11018. >
  11019. 加入分组
  11020. </div>
  11021. <div
  11022. @click="
  11023. exitGroup(
  11024. groupStudent[toolindex][gindex] &&
  11025. groupStudent[toolindex][gindex][
  11026. groupStudentUid[toolindex][gindex].indexOf(userid)
  11027. ].id
  11028. )
  11029. "
  11030. v-else-if="
  11031. groupStudentUid[toolindex] &&
  11032. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11033. "
  11034. >
  11035. 退出分组
  11036. </div>
  11037. </div>
  11038. </div>
  11039. <div class="g_d_group_chair2">
  11040. <div v-if="groupJson.number > 3">
  11041. <span
  11042. :class="{
  11043. isChair:
  11044. groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][3],
  11046. updateChair:
  11047. courseDetail.userid == userid &&
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][3] &&
  11050. groupJson.islock == 2,
  11051. }"
  11052. ><span
  11053. class="updateChairBtn"
  11054. @click="
  11055. updateGroupChair(
  11056. groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][3]
  11058. )
  11059. "
  11060. >修改</span
  11061. ></span
  11062. ><span>{{
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][3]
  11065. ? groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][3].name
  11067. : "空位置"
  11068. }}</span>
  11069. </div>
  11070. <div v-if="groupJson.number > 7">
  11071. <span
  11072. :class="{
  11073. isChair:
  11074. groupStudent[toolindex][gindex] &&
  11075. groupStudent[toolindex][gindex][7],
  11076. updateChair:
  11077. courseDetail.userid == userid &&
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][7] &&
  11080. groupJson.islock == 2,
  11081. }"
  11082. ><span
  11083. class="updateChairBtn"
  11084. @click="
  11085. updateGroupChair(
  11086. groupStudent[toolindex][gindex] &&
  11087. groupStudent[toolindex][gindex][7]
  11088. )
  11089. "
  11090. >修改</span
  11091. ></span
  11092. ><span>{{
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][7]
  11095. ? groupStudent[toolindex][gindex] &&
  11096. groupStudent[toolindex][gindex][7].name
  11097. : "空位置"
  11098. }}</span>
  11099. </div>
  11100. </div>
  11101. </div>
  11102. <div class="g_d_group_chair">
  11103. <div v-if="groupJson.number > 1">
  11104. <span
  11105. :class="{
  11106. isChair:
  11107. groupStudent[toolindex][gindex] &&
  11108. groupStudent[toolindex][gindex][1],
  11109. updateChair:
  11110. courseDetail.userid == userid &&
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][1] &&
  11113. groupJson.islock == 2,
  11114. }"
  11115. ><span
  11116. class="updateChairBtn"
  11117. @click="
  11118. updateGroupChair(
  11119. groupStudent[toolindex][gindex] &&
  11120. groupStudent[toolindex][gindex][1]
  11121. )
  11122. "
  11123. >修改</span
  11124. ></span
  11125. ><span>{{
  11126. groupStudent[toolindex][gindex] &&
  11127. groupStudent[toolindex][gindex][1]
  11128. ? groupStudent[toolindex][gindex] &&
  11129. groupStudent[toolindex][gindex][1].name
  11130. : "空位置"
  11131. }}</span>
  11132. </div>
  11133. <div v-if="groupJson.number > 5">
  11134. <span
  11135. :class="{
  11136. isChair:
  11137. groupStudent[toolindex][gindex] &&
  11138. groupStudent[toolindex][gindex][5],
  11139. updateChair:
  11140. courseDetail.userid == userid &&
  11141. groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][5] &&
  11143. groupJson.islock == 2,
  11144. }"
  11145. ><span
  11146. class="updateChairBtn"
  11147. @click="
  11148. updateGroupChair(
  11149. groupStudent[toolindex][gindex] &&
  11150. groupStudent[toolindex][gindex][5]
  11151. )
  11152. "
  11153. >修改</span
  11154. ></span
  11155. ><span>{{
  11156. groupStudent[toolindex][gindex] &&
  11157. groupStudent[toolindex][gindex][5]
  11158. ? groupStudent[toolindex][gindex] &&
  11159. groupStudent[toolindex][gindex][5].name
  11160. : "空位置"
  11161. }}</span>
  11162. </div>
  11163. <div v-if="groupJson.number > 9">
  11164. <span
  11165. :class="{
  11166. isChair:
  11167. groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][9],
  11169. updateChair:
  11170. courseDetail.userid == userid &&
  11171. groupStudent[toolindex][gindex] &&
  11172. groupStudent[toolindex][gindex][9] &&
  11173. groupJson.islock == 2,
  11174. }"
  11175. ><span
  11176. class="updateChairBtn"
  11177. @click="
  11178. updateGroupChair(
  11179. groupStudent[toolindex][gindex] &&
  11180. groupStudent[toolindex][gindex][9]
  11181. )
  11182. "
  11183. >修改</span
  11184. ></span
  11185. ><span>{{
  11186. groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][9]
  11188. ? groupStudent[toolindex][gindex] &&
  11189. groupStudent[toolindex][gindex][9].name
  11190. : "空位置"
  11191. }}</span>
  11192. </div>
  11193. </div>
  11194. </div>
  11195. </div>
  11196. </div>
  11197. </div>
  11198. <span slot="footer" class="dialog-footer">
  11199. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11200. </span>
  11201. </el-dialog>
  11202. <el-dialog
  11203. title="分组设置"
  11204. :visible.sync="dialogVisibleGroup2"
  11205. :append-to-body="true"
  11206. width="650px"
  11207. :before-close="handleClose"
  11208. class="dialog_diy"
  11209. >
  11210. <div class="groupBox">
  11211. <div v-if="groupJson2.group" class="groupContent">
  11212. <div class="groupTitle">请设置小组数量</div>
  11213. <div
  11214. v-for="(item, index) in groupJson2.group"
  11215. :key="index"
  11216. class="groupName"
  11217. >
  11218. <span class="groupn">组{{ index + 1 }}名称:</span>
  11219. <el-input
  11220. v-model="item.name"
  11221. placeholder="请输入名称..."
  11222. style="width: 250px"
  11223. ></el-input>
  11224. <!-- <div class="groupBtn">
  11225. <el-button type="primary" size="small" @click="addGroup(index)">
  11226. 添加</el-button>
  11227. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11228. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11229. </div> -->
  11230. </div>
  11231. </div>
  11232. <div class="groupContent">
  11233. <div class="groupTitle">请设置每组人数数量</div>
  11234. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11235. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11236. <el-input-number
  11237. v-model="groupJson2.number"
  11238. :controls="false"
  11239. :min="2"
  11240. :max="10"
  11241. placeholder="2-10人以内"
  11242. ></el-input-number>
  11243. </div>
  11244. </div>
  11245. <span slot="footer" class="dialog-footer">
  11246. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11247. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11248. </span>
  11249. </el-dialog>
  11250. <el-dialog
  11251. title="作业提交"
  11252. :visible.sync="dialogVisibleGroupWork"
  11253. :append-to-body="true"
  11254. width="500px"
  11255. :before-close="handleClose"
  11256. class="dialog_change"
  11257. >
  11258. <div class="marginT">
  11259. <div>上传文件</div>
  11260. <div
  11261. class="chapter_add"
  11262. @click="addImg($event)"
  11263. v-if="studyJuri[0].cover.length == 0"
  11264. >
  11265. <div class="up_photo">
  11266. <img src="../../assets/icon/uploadImg.png" alt />
  11267. </div>
  11268. <!-- <input
  11269. type="file"
  11270. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11271. style="display: none"
  11272. @change="beforeUpload1($event, 1)"
  11273. /> -->
  11274. <input
  11275. type="file"
  11276. accept="*"
  11277. style="display: none"
  11278. @change="beforeUpload1($event, 1)"
  11279. />
  11280. </div>
  11281. <!-- capture="camera" -->
  11282. <div
  11283. class="chapter_add"
  11284. style="
  11285. display: flex;
  11286. width: 100%;
  11287. flex-direction: row;
  11288. flex-wrap: wrap;
  11289. justify-content: flex-start;
  11290. padding: 15px 0;
  11291. "
  11292. v-if="studyJuri[0].cover.length > 0"
  11293. >
  11294. <div class="upCover">
  11295. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11296. <img :src="word" alt v-else-if="fileType == 1" />
  11297. <img :src="video" alt v-else-if="fileType == 2" />
  11298. <img :src="word2" alt v-else-if="fileType == 3" />
  11299. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11300. <div class="deleteWord" @click="clean(1)">
  11301. <img src="../../assets/icon/deleteWorks.png" alt />
  11302. </div>
  11303. </div>
  11304. </div>
  11305. </div>
  11306. <div
  11307. class="upload_send"
  11308. @click="addCourseWorks2(taskCount)"
  11309. v-if="!proVisible"
  11310. >
  11311. 提交
  11312. </div>
  11313. </el-dialog>
  11314. <el-dialog
  11315. title="修改分组"
  11316. :visible.sync="dialogVisibleUpdateGroup"
  11317. :append-to-body="true"
  11318. width="350px"
  11319. :before-close="handleClose"
  11320. class="dialog_diy"
  11321. >
  11322. <div>
  11323. <h2>
  11324. {{ this.updateGroupUser.name }}
  11325. </h2>
  11326. <div style="color: rgb(171 171 171); margin-top: 10px">
  11327. 请选择要进入的分组
  11328. </div>
  11329. <el-radio-group v-model="checkChair">
  11330. <el-radio
  11331. style="display: block; margin-top: 20px"
  11332. v-for="(item, index) in updateGroupArray"
  11333. :label="item.label"
  11334. :key="index"
  11335. >{{ item.name }}</el-radio
  11336. >
  11337. </el-radio-group>
  11338. </div>
  11339. <span slot="footer" class="dialog-footer">
  11340. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11341. <el-button type="primary" @click="updateChair">确定</el-button>
  11342. </span>
  11343. </el-dialog>
  11344. <el-dialog
  11345. title="移除组员"
  11346. :visible.sync="dialogVisibleDeleteGroup"
  11347. :append-to-body="true"
  11348. width="350px"
  11349. :before-close="handleClose"
  11350. class="dialog_diy"
  11351. >
  11352. <div>
  11353. <h2>
  11354. {{ this.deleteGroupArray.name }}
  11355. </h2>
  11356. <div style="color: rgb(171 171 171); margin-top: 10px">
  11357. 请选择要删除的组员
  11358. </div>
  11359. <el-checkbox-group v-model="checkDeleteGroup">
  11360. <el-checkbox
  11361. style="display: block; margin-top: 20px"
  11362. v-for="(item, index) in deleteGroupUser"
  11363. :label="item.userid"
  11364. :key="index"
  11365. >{{ item.name }}</el-checkbox
  11366. >
  11367. </el-checkbox-group>
  11368. </div>
  11369. <span slot="footer" class="dialog-footer">
  11370. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11371. <el-button type="primary" @click="deleteChair">确定</el-button>
  11372. </span>
  11373. </el-dialog>
  11374. <el-dialog
  11375. title="批量上传"
  11376. :visible.sync="dialogVisiblePl"
  11377. :append-to-body="true"
  11378. width="700px"
  11379. :before-close="handleClose"
  11380. class="dialog_change"
  11381. >
  11382. <div class="marginT">
  11383. <div class="plworkBox">
  11384. <div
  11385. class="chapter_add"
  11386. style="
  11387. display: flex;
  11388. width: 150px;
  11389. flex-direction: row;
  11390. flex-wrap: wrap;
  11391. justify-content: flex-start;
  11392. margin: 0 10px 10px 0;
  11393. "
  11394. v-for="(item, index) in plworkFile"
  11395. :key="index"
  11396. >
  11397. <div class="upCover2">
  11398. <img
  11399. :src="item.url"
  11400. alt
  11401. v-if="item.fileType == 1"
  11402. @click="previewImg(item.url)"
  11403. />
  11404. <img :src="word" alt v-else-if="item.fileType == 4" />
  11405. <img :src="video" alt v-else />
  11406. <!-- <span class="picName">{{ item.name }}</span> -->
  11407. <!-- <el-input
  11408. v-model="item.username"
  11409. placeholder="请输入学生名字"
  11410. style="margin-top: 10px"
  11411. ></el-input> -->
  11412. <div
  11413. class="pl_select_box"
  11414. @click="
  11415. getUpdateMore(true, checkUpload(), item.username, index)
  11416. "
  11417. >
  11418. {{ getSName(item.username) }}
  11419. </div>
  11420. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11421. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11422. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11423. </el-option>
  11424. </el-select> -->
  11425. <div class="deleteWord" @click="clean2(index)">
  11426. <img src="../../assets/icon/deleteWorks.png" alt />
  11427. </div>
  11428. </div>
  11429. </div>
  11430. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11431. <div class="up_photo2">
  11432. <img src="../../assets/icon/plwork.png" alt />
  11433. <span>点击上传文件</span>
  11434. </div>
  11435. <input
  11436. type="file"
  11437. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11438. multiple="multiple"
  11439. style="display: none"
  11440. @change="beforeUpload3($event, 6)"
  11441. />
  11442. </div>
  11443. </div>
  11444. </div>
  11445. <!-- capture="camera" -->
  11446. <div
  11447. class="upload_send"
  11448. @click="addCourseWorksPl(taskCount)"
  11449. v-if="!proVisible2"
  11450. >
  11451. 提交
  11452. </div>
  11453. </el-dialog>
  11454. <el-dialog
  11455. title="修改名称"
  11456. :visible.sync="dialogVisibleSname"
  11457. width="500px"
  11458. :before-close="handleClose"
  11459. class="dialog_diy"
  11460. center
  11461. >
  11462. <div
  11463. style="
  11464. text-align: center;
  11465. display: flex;
  11466. align-items: center;
  11467. justify-content: center;
  11468. "
  11469. >
  11470. <span class="tian1">名称</span>
  11471. <div
  11472. class="pl_select_box"
  11473. style="margin-left: 10px; width: 200px"
  11474. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11475. >
  11476. {{ getSName(worksSName) }}
  11477. </div>
  11478. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11479. placeholder="请选择学生">
  11480. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11481. :value="item.userid">
  11482. </el-option>
  11483. </el-select> -->
  11484. <!-- <el-input
  11485. v-model="worksSName"
  11486. style="width: 250px; margin: 15px 0px"
  11487. ></el-input> -->
  11488. </div>
  11489. <span slot="footer" class="dialog-footer">
  11490. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11491. <el-button type="primary" @click="updateName">确 定</el-button>
  11492. </span>
  11493. </el-dialog>
  11494. <interVideo
  11495. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11496. :videoJson="videoJson"
  11497. :userid="userid"
  11498. :id="id"
  11499. :courseType="courseType"
  11500. :taskCount="taskCount"
  11501. :toolindex="toolindex"
  11502. ></interVideo>
  11503. <UpdateMore
  11504. :dialogVisibleMember.sync="dialogVisibleMember"
  11505. :cList="uploadStudentJuri"
  11506. :userid="userid"
  11507. :searchTN="worksSName2"
  11508. @setPlname="setPlname"
  11509. ></UpdateMore>
  11510. </div>
  11511. </template>
  11512. <script>
  11513. import "../../common/aws-sdk-2.235.1.min.js";
  11514. // import pdf from "../components/pdf3";
  11515. import pdf from "../components/vpdf";
  11516. import AskStatic from "../components/askStatic";
  11517. import AskStatic2 from "../components/askStatic2";
  11518. import AnswerData2 from "../components/answerData2";
  11519. import AnswerData from "../components/answerData";
  11520. import EditorBar from "../tools/wangEnduit.vue";
  11521. import Table from "../tools/table.vue";
  11522. import Time from "../tools/time.vue";
  11523. import Mind from "../tools/jsmind.vue";
  11524. import Sunburst from "../tools/sunburst";
  11525. import SeeBoard from "../tools/seeBoard";
  11526. import * as imageConversion from "image-conversion";
  11527. import Audio from "../components/audio.vue";
  11528. import ImgDraw from "../tools/imgDraw/imgDraw";
  11529. import { Empty } from "element-ui";
  11530. import RecordRTC from "recordrtc";
  11531. import interVideo from "../interVideo/index.vue";
  11532. import UpdateMore from "../updateMore/updateMore.vue";
  11533. export default {
  11534. components: {
  11535. EditorBar,
  11536. Time,
  11537. pdf,
  11538. AskStatic,
  11539. AskStatic2,
  11540. Mind,
  11541. Sunburst,
  11542. SeeBoard,
  11543. AnswerData2,
  11544. AnswerData,
  11545. Audio,
  11546. ImgDraw,
  11547. Table,
  11548. interVideo,
  11549. UpdateMore,
  11550. },
  11551. data() {
  11552. return {
  11553. bg: null,
  11554. drawShow: false,
  11555. dialogVisible: false,
  11556. dialogVisiblePl: false,
  11557. commentDialogVisible: false,
  11558. videoVisible: false,
  11559. isStar: false,
  11560. studentEvalDialogVisible: false,
  11561. studentEvalDialogVisibleTeacher: false,
  11562. dialogVisibleSelect: false,
  11563. dialogVisibleSelectTeacher: false,
  11564. dialogVisibleScore: false,
  11565. dialogVisibleSentence: false,
  11566. dialogVisibleSentenceTeacher: false,
  11567. dialogVisibleSentence1: false,
  11568. dialogVisibleWorks: false,
  11569. answerDialogVisibleTeacher: false,
  11570. dialogVisibleTable: false,
  11571. dialogVisibleTableTeacher: false,
  11572. dialogVisibleWord: false,
  11573. dialogVisibleWordTeacher: false,
  11574. dialogVisibleTable2: false,
  11575. dialogVisibleTable3: false,
  11576. dialogVisibleGroupWork: false,
  11577. dialogVisibleUpdateGroup: false,
  11578. dialogVisibleDeleteGroup: false,
  11579. dialogVisibleSname: false,
  11580. dialogVisibleVideo: false,
  11581. worksSName: "",
  11582. classJuri: [],
  11583. uploadStudentJuri: [],
  11584. uploadCid: "",
  11585. snameWid: "",
  11586. sStudent: {},
  11587. sTool: "",
  11588. bzText: "",
  11589. commentDetail: [],
  11590. selectAnswer: [],
  11591. videoDetail: {},
  11592. selectJson: {},
  11593. eScore: { eBzText: "", eStar: [] },
  11594. id: this.$route.query.courseId,
  11595. userid: this.$route.query.userid,
  11596. classId: this.$route.query.cid,
  11597. // courseTypeLine: this.$route.query.type,
  11598. oid: this.$route.query.oid,
  11599. org: this.$route.query.org,
  11600. tType: this.$route.query.tType,
  11601. courseType: this.$route.query.type,
  11602. screenType: this.$route.query.screenType,
  11603. tcid2: this.$route.query.tcid,
  11604. tcid: "",
  11605. pptImgUrl: "",
  11606. pptImgUrl1: "",
  11607. commentText: "",
  11608. full: false,
  11609. sIsOpen: false,
  11610. IsLookOpen: false,
  11611. IsFollow: false,
  11612. pzDialog: false,
  11613. contentDialog: false,
  11614. mlDialog: false,
  11615. type: 1,
  11616. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11617. sentenceList1: [],
  11618. tableJson: [],
  11619. wordJson: [],
  11620. vedio: [],
  11621. text: [],
  11622. textList: [],
  11623. line: [],
  11624. lineList: [],
  11625. chapTools: [],
  11626. chapToolList: [],
  11627. file: [],
  11628. fileC: [],
  11629. vedioTime: [],
  11630. upToolImg: "",
  11631. preTime: 0,
  11632. rateList: {
  11633. ca: 0,
  11634. },
  11635. rateParams: [],
  11636. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11637. studyJuri: [
  11638. {
  11639. content: "",
  11640. cover: [],
  11641. upVedio: [],
  11642. upFile: [],
  11643. },
  11644. ],
  11645. plworkFile: [],
  11646. mr: require("../../assets/vedioPic.png"),
  11647. word: require("../../assets/icon/isWord.png"),
  11648. word2: require("../../assets/icon/word2.png"),
  11649. video: require("../../assets/icon/isVideo.png"),
  11650. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11651. likes: require("../../assets/icon/comment/likes.png"),
  11652. scoreImg: require("../../assets/score.png"),
  11653. courseDetail: {},
  11654. isSelect: false,
  11655. chapInfo: [],
  11656. chapInfoList: [],
  11657. taskCount: 0,
  11658. imgList: [],
  11659. noImgList: [],
  11660. pzList: [],
  11661. PlTextList: [
  11662. "Excellent!",
  11663. "nice!",
  11664. "很有创意!",
  11665. "还不错哦~",
  11666. "继续努力哦~",
  11667. ],
  11668. isClickNav: "",
  11669. navId: "",
  11670. playerOptions: {
  11671. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11672. autoplay: false, //如果true,浏览器准备好时开始回放。
  11673. muted: false, // 默认情况下将会消除任何音频。
  11674. loop: false, // 导致视频一结束就重新开始。
  11675. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11676. language: "zh-CN",
  11677. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11678. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11679. sources: [
  11680. {
  11681. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11682. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11683. },
  11684. ],
  11685. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11686. // poster: dataRes.imgUrl, //你的封面地址
  11687. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11688. controlBar: {
  11689. timeDivider: true, //当前时间和持续时间的分隔符
  11690. durationDisplay: true, //显示持续时间
  11691. remainingTimeDisplay: false, //是否显示剩余时间功能
  11692. fullscreenToggle: true, //全屏按钮
  11693. },
  11694. },
  11695. playerOptions1: {
  11696. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11697. autoplay: false, //如果true,浏览器准备好时开始回放。
  11698. muted: false, // 默认情况下将会消除任何音频。
  11699. loop: false, // 导致视频一结束就重新开始。
  11700. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11701. language: "zh-CN",
  11702. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11703. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11704. sources: [
  11705. {
  11706. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11707. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11708. },
  11709. ],
  11710. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11711. // poster: dataRes.imgUrl, //你的封面地址
  11712. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11713. controlBar: {
  11714. timeDivider: true, //当前时间和持续时间的分隔符
  11715. durationDisplay: true, //显示持续时间
  11716. remainingTimeDisplay: false, //是否显示剩余时间功能
  11717. fullscreenToggle: true, //全屏按钮
  11718. },
  11719. },
  11720. playerO: {},
  11721. noneBtnImg: false,
  11722. proVisible: false,
  11723. proVisible2: false,
  11724. progress: 0,
  11725. isFinishSize: 0,
  11726. isAllSize: 0,
  11727. questionAnswer: "",
  11728. answerQ: "", //问答标题
  11729. rateJson: [],
  11730. wbCount: 0,
  11731. wordCount: 0,
  11732. mindCount: 0,
  11733. askCount: 0,
  11734. noteCount: 0,
  11735. mindNetWorkCount: 0,
  11736. libraryCount: 0,
  11737. workCount: 0,
  11738. timeCount: 0,
  11739. answerCount: 0,
  11740. trainCount: 0,
  11741. evalCount: 0,
  11742. dialogImageUrl: "",
  11743. pictureDialog: false,
  11744. toolTypeList: [],
  11745. dialogVisible1: false,
  11746. dialogVisible2: false,
  11747. dialogVisible3: false,
  11748. dialogVisible6: false,
  11749. dialogVisible4: false,
  11750. isNoHomeWork: false,
  11751. dialogVisible5: false,
  11752. dialogVisible5Teacher: false,
  11753. dialogVisibleChoice: false,
  11754. dialogVisibleChoiceTeacher: false,
  11755. answerDialogVisible: false,
  11756. juriVisible: false,
  11757. timeDialogVisible: false,
  11758. radio: [],
  11759. isAsk: false,
  11760. askJson: {
  11761. askCount: 1,
  11762. askTitle: "",
  11763. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11764. },
  11765. testJson: {},
  11766. checkJson: [],
  11767. askList: [],
  11768. answerList: [],
  11769. navList: [],
  11770. addPzDialog: false,
  11771. ispzType: 1,
  11772. pzConText: "",
  11773. worksStudent: [],
  11774. worksStudent2: [],
  11775. worksTeacher: [],
  11776. isCloseList: [],
  11777. workStudent: [],
  11778. groupStudent: [],
  11779. groupStudentUid: [],
  11780. noWorksS: [],
  11781. isWorksS: [],
  11782. noWorksStudent: [],
  11783. toolindex: 0,
  11784. groupIndex: 0,
  11785. workTypeB: false,
  11786. workTypeC: false,
  11787. isAnswer: false,
  11788. timer: null,
  11789. opertimer: null,
  11790. showType: 0,
  11791. fileType: 0,
  11792. showPDF: false,
  11793. noteName: "",
  11794. evaJuri: [],
  11795. evalua: "",
  11796. eTitle: "",
  11797. eName: "",
  11798. eJson: {},
  11799. fid: "", //一级
  11800. sid: "", //二级
  11801. tid: "", //二级
  11802. typeMode: 1,
  11803. eJSONNum: 0,
  11804. Etype: 1,
  11805. data: {
  11806. meta: {
  11807. name: "example",
  11808. author: "dd@163.com",
  11809. version: "0.2",
  11810. },
  11811. format: "node_array",
  11812. data: [{ id: "root", isroot: true, topic: "" }],
  11813. },
  11814. fullDialogVisible: false,
  11815. fulltype: "",
  11816. fullUrl: "",
  11817. commentIndexJson: {},
  11818. Stbodywidth: 0,
  11819. pzType: 1,
  11820. wScore: 0,
  11821. scoreDetail: "",
  11822. videoStart: false,
  11823. recorder: null,
  11824. groupJson: {},
  11825. groupJson2: {},
  11826. dialogVisibleGroup: false,
  11827. dialogVisibleGroup2: false,
  11828. updateGroupArray: [],
  11829. updateGroupUser: {},
  11830. deleteGroupUser: [],
  11831. deleteGroupArray: {},
  11832. checkChair: "",
  11833. checkDeleteGroup: [],
  11834. inviteCode: "",
  11835. courseGroupStudent: [],
  11836. courseGroupStudentUid: [],
  11837. courseGroup: {},
  11838. isGroup: false,
  11839. toolIndex: null,
  11840. tool: {},
  11841. isWorkTool: [
  11842. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11843. ], //, 40
  11844. videoJson: {},
  11845. toolType: 0,
  11846. checktoolArray: [],
  11847. vChapterData: [],
  11848. isUpdateToolDetail: false,
  11849. updateToolDetailInner: "",
  11850. plIndex: "",
  11851. worksSName2: "",
  11852. worksSid: "",
  11853. };
  11854. },
  11855. methods: {
  11856. jump() {
  11857. window.parent.postMessage({ tools: "43" }, "*");
  11858. },
  11859. getUpdateMore(f, checkboxList, searchTN, index) {
  11860. this.dialogVisibleMember = f;
  11861. this.checkboxList = checkboxList;
  11862. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11863. this.plIndex = index;
  11864. },
  11865. setPlname(a) {
  11866. if (this.plworkFile.length) {
  11867. this.plworkFile[this.plIndex].username = a;
  11868. } else {
  11869. this.worksSName = a;
  11870. }
  11871. this.dialogVisibleMember = false;
  11872. },
  11873. previewImg(url) {
  11874. this.$hevueImgPreview(url);
  11875. },
  11876. checkImg(list) {
  11877. if (!list.length) {
  11878. return;
  11879. }
  11880. this.$hevueImgPreview({
  11881. multiple: true, // 开启多图预览模式
  11882. imgList: list, // 需要预览的多图数组
  11883. });
  11884. },
  11885. change(val) {
  11886. console.log(val);
  11887. },
  11888. goTo(path) {
  11889. this.$router.push(path);
  11890. },
  11891. handlePictureCardPreview(url) {
  11892. this.dialogImageUrl = url;
  11893. this.pictureDialog = true;
  11894. },
  11895. clean(type) {
  11896. if (type == 1) {
  11897. this.studyJuri[0].cover.splice(0, 1);
  11898. } else if (type == 2) {
  11899. this.studyJuri[0].upVedio.splice(0, 1);
  11900. } else {
  11901. this.studyJuri[0].upFile.splice(0, 1);
  11902. }
  11903. },
  11904. clean2(index) {
  11905. this.plworkFile.splice(index, 1);
  11906. },
  11907. handleClose(done) {
  11908. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11909. this.videoDetail.sources[0].src = "";
  11910. }
  11911. this.commentIndexJson = {};
  11912. done();
  11913. },
  11914. fullTools() {
  11915. this.full = !this.full;
  11916. },
  11917. imgChange(file, fileList, type) {
  11918. if (type == 1) {
  11919. var _tmp = this.studyJuri[0].cover;
  11920. } else if (type == 2) {
  11921. var _tmp = this.studyJuri[0].upVedio;
  11922. } else {
  11923. var _tmp = this.studyJuri[0].upFile;
  11924. }
  11925. this.noneBtnImg = _tmp.length >= 1;
  11926. },
  11927. setContent(bool) {
  11928. this.contentDialog = bool;
  11929. if (bool && this.mlDialog) {
  11930. document.querySelector(".workd_media").style.height = "650px";
  11931. } else {
  11932. document.querySelector(".workd_media").style.height = "auto";
  11933. }
  11934. },
  11935. setContent2(bool) {
  11936. this.mlDialog = bool;
  11937. if (bool && this.contentDialog) {
  11938. document.querySelector(".workd_media").style.height = "650px";
  11939. } else {
  11940. document.querySelector(".workd_media").style.height = "auto";
  11941. }
  11942. },
  11943. addImg(e) {
  11944. var el = e.currentTarget;
  11945. // this.$message.success('触发上传')
  11946. el.getElementsByTagName("input")[0].click();
  11947. e.target.value = "";
  11948. },
  11949. addSelectAnswer() {
  11950. let params = [
  11951. {
  11952. uid: this.userid,
  11953. cid: this.id,
  11954. stage: this.courseType,
  11955. task: this.taskCount,
  11956. tool: this.toolindex,
  11957. content: this.selectAnswer.answer,
  11958. type: 7,
  11959. },
  11960. ];
  11961. this.ajax
  11962. .post(this.$store.state.api + "addCourseWorks", params)
  11963. .then((res) => {
  11964. this.$message({
  11965. message: "提交成功",
  11966. type: "success",
  11967. });
  11968. this.dialogVisibleSelect = false;
  11969. // this.selectAnswer = {};
  11970. this.selectSWorks();
  11971. this.selectStudent();
  11972. })
  11973. .catch((err) => {
  11974. this.$message.error("提交失败");
  11975. console.error(err);
  11976. });
  11977. },
  11978. addSelectAnswerTeacher() {
  11979. let params = [
  11980. {
  11981. uid: this.sStudent.userid,
  11982. cid: this.id,
  11983. stage: this.courseType,
  11984. task: this.taskCount,
  11985. tool: this.toolindex,
  11986. content: this.selectAnswer.answer,
  11987. type: 7,
  11988. },
  11989. ];
  11990. this.ajax
  11991. .post(this.$store.state.api + "addCourseWorks", params)
  11992. .then((res) => {
  11993. this.$message({
  11994. message: "提交成功",
  11995. type: "success",
  11996. });
  11997. this.dialogVisibleSelectTeacher = false;
  11998. // this.selectAnswer = {};
  11999. this.selectSWorks();
  12000. this.selectStudent();
  12001. })
  12002. .catch((err) => {
  12003. this.$message.error("提交失败");
  12004. console.error(err);
  12005. });
  12006. },
  12007. addSenWorks() {
  12008. for (var i = 0; i < this.sentenceList.length; i++) {
  12009. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12010. if (
  12011. this.sentenceList[i].chooseSenList[j] == undefined ||
  12012. this.sentenceList[i].chooseSenList[j] == ""
  12013. ) {
  12014. this.$message.error("请将答案填写完整!");
  12015. return;
  12016. }
  12017. }
  12018. }
  12019. let params = [
  12020. {
  12021. uid: this.userid,
  12022. cid: this.id,
  12023. stage: this.courseType,
  12024. task: this.taskCount,
  12025. tool: this.toolindex,
  12026. content: JSON.stringify(this.sentenceList),
  12027. type: 9,
  12028. },
  12029. ];
  12030. this.ajax
  12031. .post(this.$store.state.api + "addCourseWorks", params)
  12032. .then((res) => {
  12033. this.$message({
  12034. message: "提交成功",
  12035. type: "success",
  12036. });
  12037. this.dialogVisibleSentence = false;
  12038. // this.selectAnswer = {};
  12039. this.selectSWorks();
  12040. this.selectStudent();
  12041. })
  12042. .catch((err) => {
  12043. this.$message.error("提交失败");
  12044. console.error(err);
  12045. });
  12046. },
  12047. addSenWorksTeacher() {
  12048. for (var i = 0; i < this.sentenceList.length; i++) {
  12049. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12050. if (
  12051. this.sentenceList[i].chooseSenList[j] == undefined ||
  12052. this.sentenceList[i].chooseSenList[j] == ""
  12053. ) {
  12054. this.$message.error("请将答案填写完整!");
  12055. return;
  12056. }
  12057. }
  12058. }
  12059. let params = [
  12060. {
  12061. uid: this.sStudent.userid,
  12062. cid: this.id,
  12063. stage: this.courseType,
  12064. task: this.taskCount,
  12065. tool: this.toolindex,
  12066. content: JSON.stringify(this.sentenceList),
  12067. type: 9,
  12068. },
  12069. ];
  12070. this.ajax
  12071. .post(this.$store.state.api + "addCourseWorks", params)
  12072. .then((res) => {
  12073. this.$message({
  12074. message: "提交成功",
  12075. type: "success",
  12076. });
  12077. this.dialogVisibleSentenceTeacher = false;
  12078. // this.selectAnswer = {};
  12079. this.selectSWorks();
  12080. this.selectStudent();
  12081. })
  12082. .catch((err) => {
  12083. this.$message.error("提交失败");
  12084. console.error(err);
  12085. });
  12086. },
  12087. addTableWorks() {
  12088. let params = [
  12089. {
  12090. uid: this.userid,
  12091. cid: this.id,
  12092. stage: this.courseType,
  12093. task: this.taskCount,
  12094. tool: this.toolindex,
  12095. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12096. type: 10,
  12097. },
  12098. ];
  12099. this.ajax
  12100. .post(this.$store.state.api + "addCourseWorks", params)
  12101. .then((res) => {
  12102. this.$message({
  12103. message: "提交成功",
  12104. type: "success",
  12105. });
  12106. this.dialogVisibleTable = false;
  12107. // this.selectAnswer = {};
  12108. this.selectSWorks();
  12109. this.selectStudent();
  12110. })
  12111. .catch((err) => {
  12112. this.$message.error("提交失败");
  12113. console.error(err);
  12114. });
  12115. },
  12116. addTableWorksTeacher() {
  12117. let params = [
  12118. {
  12119. uid: this.sStudent.userid,
  12120. cid: this.id,
  12121. stage: this.courseType,
  12122. task: this.taskCount,
  12123. tool: this.toolindex,
  12124. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12125. type: 10,
  12126. },
  12127. ];
  12128. this.ajax
  12129. .post(this.$store.state.api + "addCourseWorks", params)
  12130. .then((res) => {
  12131. this.$message({
  12132. message: "提交成功",
  12133. type: "success",
  12134. });
  12135. this.dialogVisibleTableTeacher = false;
  12136. // this.selectAnswer = {};
  12137. this.selectSWorks();
  12138. this.selectStudent();
  12139. })
  12140. .catch((err) => {
  12141. this.$message.error("提交失败");
  12142. console.error(err);
  12143. });
  12144. },
  12145. addWordWorks() {
  12146. let params = [
  12147. {
  12148. uid: this.userid,
  12149. cid: this.id,
  12150. stage: this.courseType,
  12151. task: this.taskCount,
  12152. tool: this.toolindex,
  12153. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12154. type: 13,
  12155. atool: 52,
  12156. },
  12157. ];
  12158. console.log(params);
  12159. this.ajax
  12160. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12161. .then((res) => {
  12162. this.$message({
  12163. message: "提交成功",
  12164. type: "success",
  12165. });
  12166. this.dialogVisibleWord = false;
  12167. // this.selectAnswer = {};
  12168. this.selectSWorks();
  12169. this.selectStudent();
  12170. })
  12171. .catch((err) => {
  12172. this.$message.error("提交失败");
  12173. console.error(err);
  12174. });
  12175. },
  12176. addWordWorksTeacher() {
  12177. let params = [
  12178. {
  12179. uid: this.sStudent.userid,
  12180. cid: this.id,
  12181. stage: this.courseType,
  12182. task: this.taskCount,
  12183. tool: this.toolindex,
  12184. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12185. type: 13,
  12186. atool: 52,
  12187. },
  12188. ];
  12189. console.log(params);
  12190. this.ajax
  12191. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12192. .then((res) => {
  12193. this.$message({
  12194. message: "提交成功",
  12195. type: "success",
  12196. });
  12197. this.dialogVisibleWordTeacher = false;
  12198. // this.selectAnswer = {};
  12199. this.selectSWorks();
  12200. this.selectStudent();
  12201. })
  12202. .catch((err) => {
  12203. this.$message.error("提交失败");
  12204. console.error(err);
  12205. });
  12206. },
  12207. addCourseWorks(i) {
  12208. var typesql;
  12209. if (this.fileType === 0) {
  12210. typesql = 1;
  12211. } else if (this.fileType === 1) {
  12212. typesql = 4;
  12213. } else if (this.fileType === 2) {
  12214. typesql = 5;
  12215. } else if (this.fileType === 3) {
  12216. typesql = 12;
  12217. }
  12218. if (!this.studyJuri[0].cover[0].url) {
  12219. this.$message.error("请上传文件");
  12220. return;
  12221. }
  12222. let params = [
  12223. {
  12224. uid: this.userid,
  12225. cid: this.id,
  12226. stage: this.courseType,
  12227. task: i,
  12228. tool: this.toolindex,
  12229. content: this.studyJuri[0].cover[0].url,
  12230. type: typesql,
  12231. },
  12232. ];
  12233. this.ajax
  12234. .post(this.$store.state.api + "addCourseWorksR", params)
  12235. .then((res) => {
  12236. this.$message({
  12237. message: "提交成功",
  12238. type: "success",
  12239. });
  12240. this.studyJuri[0].cover = [];
  12241. this.dialogVisible = false;
  12242. this.getCourseDetail();
  12243. })
  12244. .catch((err) => {
  12245. this.$message.error("提交失败");
  12246. console.error(err);
  12247. });
  12248. },
  12249. addCourseWorksPl(i) {
  12250. let _files = this.plworkFile;
  12251. var c = 1;
  12252. for (var k = 0; k < _files.length; k++) {
  12253. if (!_files[k].username) {
  12254. c = 2;
  12255. }
  12256. }
  12257. if (c == 2) {
  12258. this.$message.error("请填写学生姓名");
  12259. return;
  12260. }
  12261. let params = [
  12262. {
  12263. ateacher: this.userid,
  12264. cid: this.id,
  12265. stage: this.courseType,
  12266. task: i,
  12267. tool: this.toolindex,
  12268. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12269. },
  12270. ];
  12271. this.ajax
  12272. .post(this.$store.state.api + "addCourseWorksPl", params)
  12273. .then((res) => {
  12274. this.$message({
  12275. message: "提交成功",
  12276. type: "success",
  12277. });
  12278. this.plworkFile = [];
  12279. this.dialogVisiblePl = false;
  12280. this.getCourseDetail();
  12281. })
  12282. .catch((err) => {
  12283. this.$message.error("提交失败");
  12284. console.error(err);
  12285. });
  12286. },
  12287. addCourseWorks2(i) {
  12288. var typesql;
  12289. if (this.fileType === 0) {
  12290. typesql = 0;
  12291. } else if (this.fileType === 1) {
  12292. typesql = 1;
  12293. } else if (this.fileType === 2) {
  12294. typesql = 3;
  12295. } else if (this.fileType === 3) {
  12296. typesql = 12;
  12297. }
  12298. if (!this.studyJuri[0].cover[0].url) {
  12299. this.$message.error("请上传文件");
  12300. return;
  12301. }
  12302. let params = [
  12303. {
  12304. uid: this.userid,
  12305. cid: this.id,
  12306. stage: this.courseType,
  12307. task: i,
  12308. tool: this.toolindex,
  12309. content: JSON.stringify({
  12310. type: typesql,
  12311. groupIndex: this.groupIndex,
  12312. url: this.studyJuri[0].cover[0].url,
  12313. }).replaceAll(/%/g, "%25"),
  12314. type: 11,
  12315. atool: 49,
  12316. text: "",
  12317. },
  12318. ];
  12319. this.ajax
  12320. .post(this.$store.state.api + "addCourseWorks5", params)
  12321. .then((res) => {
  12322. this.$message({
  12323. message: "提交成功",
  12324. type: "success",
  12325. });
  12326. this.studyJuri[0].cover = [];
  12327. this.dialogVisibleGroupWork = false;
  12328. this.getCourseDetail();
  12329. })
  12330. .catch((err) => {
  12331. this.$message.error("提交失败");
  12332. console.error(err);
  12333. });
  12334. },
  12335. addCourseWorksGong(i, data, tool) {
  12336. let params = [
  12337. {
  12338. uid: this.userid,
  12339. cid: this.id,
  12340. stage: this.courseType,
  12341. task: this.taskCount,
  12342. tool: i,
  12343. content: data,
  12344. type: 12,
  12345. atool: tool,
  12346. text: "",
  12347. },
  12348. ];
  12349. this.ajax
  12350. .post(this.$store.state.api + "addCourseWorks5", params)
  12351. .then((res) => {
  12352. this.$message({
  12353. message: "提交成功",
  12354. type: "success",
  12355. });
  12356. this.studyJuri[0].cover = [];
  12357. this.selectSWorks();
  12358. this.selectStudent();
  12359. })
  12360. .catch((err) => {
  12361. this.$message.error("提交失败");
  12362. console.error(err);
  12363. });
  12364. },
  12365. addCourseWorksGongTeacher(i, data, tool) {
  12366. let params = [
  12367. {
  12368. uid: this.sStudent.userid,
  12369. cid: this.id,
  12370. stage: this.courseType,
  12371. task: this.taskCount,
  12372. tool: i,
  12373. content: data,
  12374. type: 12,
  12375. atool: tool,
  12376. text: "",
  12377. },
  12378. ];
  12379. this.ajax
  12380. .post(this.$store.state.api + "addCourseWorks5", params)
  12381. .then((res) => {
  12382. this.$message({
  12383. message: "提交成功",
  12384. type: "success",
  12385. });
  12386. this.studyJuri[0].cover = [];
  12387. this.dialogVisibleWorks = false;
  12388. this.selectSWorks();
  12389. this.selectStudent();
  12390. })
  12391. .catch((err) => {
  12392. this.$message.error("提交失败");
  12393. console.error(err);
  12394. });
  12395. },
  12396. addCourseWorksGongPl(i, data, tool, type) {
  12397. let params = [
  12398. {
  12399. uid: this.sStudent.userid,
  12400. cid: this.id,
  12401. stage: this.courseType,
  12402. task: this.taskCount,
  12403. tool: i,
  12404. content: data,
  12405. type: type,
  12406. atool: tool,
  12407. text: "",
  12408. },
  12409. ];
  12410. this.ajax
  12411. .post(this.$store.state.api + "addCourseWorks5", params)
  12412. .then((res) => {
  12413. this.$message({
  12414. message: "提交成功",
  12415. type: "success",
  12416. });
  12417. this.studyJuri[0].cover = [];
  12418. this.dialogVisibleWorks = false;
  12419. this.selectSWorks();
  12420. this.selectStudent();
  12421. })
  12422. .catch((err) => {
  12423. this.$message.error("提交失败");
  12424. console.error(err);
  12425. });
  12426. },
  12427. addCourseWorksTeacher(i) {
  12428. var typesql;
  12429. if (this.sTool == 32) {
  12430. this.addCourseWorksGongTeacher(
  12431. this.toolindex,
  12432. this.studyJuri[0].cover[0].url,
  12433. this.sTool
  12434. );
  12435. return;
  12436. }
  12437. if (this.fileType === 0) {
  12438. typesql = 1;
  12439. } else if (this.fileType === 1) {
  12440. typesql = 4;
  12441. } else if (this.fileType === 2) {
  12442. typesql = 5;
  12443. } else if (this.fileType === 3) {
  12444. typesql = 12;
  12445. }
  12446. if (this.sTool == 50) {
  12447. this.addCourseWorksGongPl(
  12448. this.toolindex,
  12449. this.studyJuri[0].cover[0].url,
  12450. this.sTool,
  12451. typesql
  12452. );
  12453. return;
  12454. }
  12455. if (!this.studyJuri[0].cover[0].url) {
  12456. this.$message.error("请上传文件");
  12457. return;
  12458. }
  12459. let params = [
  12460. {
  12461. uid: this.sStudent.userid,
  12462. cid: this.id,
  12463. stage: this.courseType,
  12464. task: i,
  12465. tool: this.toolindex,
  12466. content: this.studyJuri[0].cover[0].url,
  12467. type: typesql,
  12468. ateacher: this.userid,
  12469. },
  12470. ];
  12471. this.ajax
  12472. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12473. .then((res) => {
  12474. this.$message({
  12475. message: "提交成功",
  12476. type: "success",
  12477. });
  12478. this.studyJuri[0].cover = [];
  12479. this.dialogVisibleWorks = false;
  12480. this.getCourseDetail();
  12481. })
  12482. .catch((err) => {
  12483. this.$message.error("提交失败");
  12484. console.error(err);
  12485. });
  12486. },
  12487. selectUploadStudent(type) {
  12488. const loading = this.$loading.service({
  12489. background: "rgba(255, 255, 255, 0.7)",
  12490. target: document.body,
  12491. });
  12492. let params = {
  12493. cid: this.uploadCid,
  12494. oid: this.oid,
  12495. cn: "",
  12496. };
  12497. this.ajax
  12498. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12499. .then((res) => {
  12500. loading.close();
  12501. var studentK = [];
  12502. if (this.isWorksS[this.toolindex].length > 0) {
  12503. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12504. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12505. }
  12506. studentK = studentK.join(",");
  12507. }
  12508. this.uploadStudentJuri = res.data[0].filter((el) => {
  12509. return studentK.indexOf(el.userid) == -1;
  12510. });
  12511. if (this.worksSName && this.worksSid) {
  12512. this.uploadStudentJuri.push({
  12513. userid: this.worksSid,
  12514. name: this.worksSName,
  12515. });
  12516. }
  12517. if (type == 1) {
  12518. this.plworkFile = [];
  12519. this.dialogVisibleSname = true;
  12520. } else if (type == 2) {
  12521. this.dialogVisiblePl = true;
  12522. }
  12523. })
  12524. .catch((err) => {
  12525. loading.close();
  12526. console.error(err);
  12527. });
  12528. },
  12529. arrayToArray(arrayo, arrayt) {
  12530. let array1 = arrayo;
  12531. let array2 = arrayt;
  12532. let commonElements = [];
  12533. for (let i = 0; i < array1.length; i++) {
  12534. for (let j = 0; j < array2.length; j++) {
  12535. if (array1[i] === array2[j]) {
  12536. commonElements.push(array1[i]);
  12537. }
  12538. }
  12539. }
  12540. return commonElements;
  12541. },
  12542. selectWorksStudent() {
  12543. let params = {
  12544. oid: this.oid,
  12545. cid: this.courseDetail.juri,
  12546. };
  12547. this.ajax
  12548. .get(this.$store.state.api + "selectWorksStudent", params)
  12549. .then((res) => {
  12550. var a = res.data[0];
  12551. for (var i = 0; i < this.isWorksS.length; i++) {
  12552. this.noWorksS[i] = [];
  12553. var studentK = [];
  12554. if (this.isWorksS[i].length > 0) {
  12555. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12556. studentK.push(this.isWorksS[i][z].uid);
  12557. }
  12558. studentK = studentK.join(",");
  12559. for (var j = 0; j < a.length; j++) {
  12560. // if (studentK.indexOf(a[j].userid) == -1) {
  12561. if (this.tcid) {
  12562. // a[j].classid.indexOf(this.tcid) != -1
  12563. if (
  12564. this.arrayToArray(
  12565. a[j].classid.split(","),
  12566. this.tcid.split(",")
  12567. ).length
  12568. ) {
  12569. this.noWorksS[i].push({
  12570. student: a[j].name,
  12571. userid: a[j].userid,
  12572. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12573. });
  12574. }
  12575. } else {
  12576. this.noWorksS[i].push({
  12577. student: a[j].name,
  12578. userid: a[j].userid,
  12579. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12580. });
  12581. }
  12582. // }
  12583. }
  12584. } else {
  12585. for (var k = 0; k < a.length; k++) {
  12586. if (this.tcid) {
  12587. if (
  12588. this.arrayToArray(
  12589. a[k].classid.split(","),
  12590. this.tcid.split(",")
  12591. ).length
  12592. ) {
  12593. this.noWorksS[i].push({
  12594. student: a[k].name,
  12595. userid: a[k].userid,
  12596. type: "1",
  12597. });
  12598. }
  12599. } else {
  12600. this.noWorksS[i].push({
  12601. student: a[k].name,
  12602. userid: a[k].userid,
  12603. type: "1",
  12604. });
  12605. }
  12606. }
  12607. }
  12608. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12609. // let jscoreA = parseInt(a.type);
  12610. // let jscoreB = parseInt(b.type);
  12611. // return jscoreB - jscoreA;
  12612. // });
  12613. }
  12614. this.$forceUpdate();
  12615. if (
  12616. Object.keys(this.commentDetail).length &&
  12617. Object.keys(this.commentIndexJson).length &&
  12618. !this.dialogVisibleScore
  12619. ) {
  12620. let a = 1;
  12621. let c = this.commentIndexJson;
  12622. console.log(c);
  12623. if (
  12624. this.commentIndexJson.gindex ||
  12625. this.commentIndexJson.gindex === 0
  12626. ) {
  12627. for (
  12628. var i = 0;
  12629. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12630. i++
  12631. ) {
  12632. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12633. groupA: for (var k = 0; k < _el.length; k++) {
  12634. let el = _el[k];
  12635. if (el.wid == this.commentDetail.wid) {
  12636. a = 2;
  12637. this.commentOther(
  12638. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12639. this.commentIndexJson.toolIndex,
  12640. k,
  12641. this.commentIndexJson.gindex
  12642. );
  12643. break groupA;
  12644. }
  12645. }
  12646. }
  12647. if (a === 1) {
  12648. this.commentDetail = [];
  12649. this.commentIndexJson = {};
  12650. this.commentDialogVisible = false;
  12651. this.$message("此作业已被删除");
  12652. }
  12653. } else {
  12654. if (this.isGroup && this.commentIndexJson.gid) {
  12655. groupA: for (
  12656. var i = 0;
  12657. i < this.courseGroup.group.length;
  12658. i++
  12659. ) {
  12660. let _group = this.courseGroup.group[i];
  12661. if (_group.id == this.commentIndexJson.gid) {
  12662. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12663. for (var k = 0; k < _el2.length; k++) {
  12664. let el2 = _el2[k];
  12665. if (el2.wid == this.commentDetail.wid) {
  12666. a = 2;
  12667. this.commentOther(
  12668. _el2[k],
  12669. this.commentIndexJson.toolIndex,
  12670. k,
  12671. null,
  12672. this.commentIndexJson.gid
  12673. );
  12674. break groupA;
  12675. }
  12676. }
  12677. }
  12678. }
  12679. }
  12680. if (a == 1) {
  12681. for (
  12682. var i = 0;
  12683. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12684. i++
  12685. ) {
  12686. let el =
  12687. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12688. if (el.wid == this.commentDetail.wid) {
  12689. a = 2;
  12690. this.commentOther(
  12691. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12692. this.commentIndexJson.toolIndex,
  12693. i
  12694. );
  12695. break;
  12696. }
  12697. }
  12698. }
  12699. if (a === 1) {
  12700. this.commentDetail = [];
  12701. this.commentIndexJson = {};
  12702. this.commentDialogVisible = false;
  12703. this.$message("此作业已被删除");
  12704. }
  12705. }
  12706. }
  12707. })
  12708. .catch((err) => {
  12709. console.error(err);
  12710. });
  12711. },
  12712. selectStudent() {},
  12713. openVideo(w) {
  12714. this.videoDetail = {};
  12715. this.playerOptions1.sources[0].src = w.works;
  12716. this.videoDetail = this.playerOptions1;
  12717. this.videoVisible = true;
  12718. },
  12719. isLikes(wid, uid, t, c, isLikes) {
  12720. if (isLikes == false) {
  12721. let params = [
  12722. {
  12723. wid: wid,
  12724. lid: uid,
  12725. t: t,
  12726. c: c,
  12727. },
  12728. ];
  12729. this.ajax
  12730. .post(this.$store.state.api + "insertComment", params)
  12731. .then((res) => {
  12732. this.$message({
  12733. message: "点赞成功",
  12734. type: "success",
  12735. });
  12736. this.selectSWorks();
  12737. this.selectStudent();
  12738. })
  12739. .catch((err) => {
  12740. this.$message.error("点赞失败");
  12741. console.error(err);
  12742. });
  12743. } else {
  12744. let params = {
  12745. wid: wid,
  12746. lid: uid,
  12747. type: t,
  12748. };
  12749. this.ajax
  12750. .get(this.$store.state.api + "deleteComment", params)
  12751. .then((res) => {
  12752. this.$message({
  12753. message: "取消点赞成功",
  12754. type: "success",
  12755. });
  12756. this.selectSWorks();
  12757. this.selectStudent();
  12758. })
  12759. .catch((err) => {
  12760. console.error(err);
  12761. });
  12762. }
  12763. },
  12764. deleteComment(wid) {
  12765. this.$confirm("确定删除此评论吗?", "提示", {
  12766. confirmButtonText: "确定",
  12767. cancelButtonText: "取消",
  12768. type: "warning",
  12769. })
  12770. .then(() => {
  12771. let params = {
  12772. id: wid,
  12773. };
  12774. this.ajax
  12775. .get(this.$store.state.api + "deleteComment2", params)
  12776. .then((res) => {
  12777. this.$message({
  12778. message: "删除评论成功",
  12779. type: "success",
  12780. });
  12781. this.selectSWorks();
  12782. this.selectStudent();
  12783. })
  12784. .catch((err) => {
  12785. console.error(err);
  12786. });
  12787. })
  12788. .catch(() => {});
  12789. },
  12790. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12791. this.commentIndexJson = {
  12792. toolIndex: toolIndex,
  12793. wIndex: wIndex,
  12794. gindex: gindex,
  12795. gid: gid,
  12796. };
  12797. this.commentDetail = [];
  12798. this.commentDialogVisible = true;
  12799. this.commentDetail = w;
  12800. if (w.works && w.type == 1) {
  12801. this.pptImgUrl = "";
  12802. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12803. if (
  12804. a.indexOf(
  12805. w.works
  12806. .split(".")
  12807. [w.works.split(".").length - 1].toLocaleUpperCase()
  12808. ) != -1
  12809. ) {
  12810. this.pptImgUrl =
  12811. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12812. this.showPDF = false;
  12813. } else if (
  12814. w.works
  12815. .split(".")
  12816. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12817. ) {
  12818. this.pptImgUrl = w.works;
  12819. this.showPDF = true;
  12820. }
  12821. } else if (w.works && w.type == 3) {
  12822. this.videoDetail = {};
  12823. this.playerOptions1.sources[0].src = w.works;
  12824. this.videoDetail = this.playerOptions1;
  12825. // this.videoVisible = true;
  12826. } else if (w.works && w.type == 4) {
  12827. this.eScore = JSON.parse(w.works);
  12828. this.rateJson =
  12829. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12830. this.taskCount
  12831. ].toolChoose[toolIndex].rateJson;
  12832. } else if (w.works && w.type == 10) {
  12833. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12834. } else if (w.works && w.type == 13) {
  12835. this.wordJson =
  12836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12837. this.taskCount
  12838. ].toolChoose[toolIndex].wordJson;
  12839. }
  12840. },
  12841. openScore(w) {
  12842. this.wScore = 0;
  12843. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12844. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12845. this.commentDetail = [];
  12846. this.dialogVisibleScore = true;
  12847. this.commentDetail = w;
  12848. if (w.works && w.type == 1) {
  12849. this.pptImgUrl = "";
  12850. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12851. if (
  12852. a.indexOf(
  12853. w.works
  12854. .split(".")
  12855. [w.works.split(".").length - 1].toLocaleUpperCase()
  12856. ) != -1
  12857. ) {
  12858. this.pptImgUrl =
  12859. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12860. this.showPDF = false;
  12861. } else if (
  12862. w.works
  12863. .split(".")
  12864. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12865. ) {
  12866. this.pptImgUrl = w.works;
  12867. this.showPDF = true;
  12868. }
  12869. } else if (w.works && w.type == 3) {
  12870. this.videoDetail = {};
  12871. this.playerOptions1.sources[0].src = w.works;
  12872. this.videoDetail = this.playerOptions1;
  12873. }
  12874. },
  12875. addComment(wid, uid, t) {
  12876. if (this.commentText == "") {
  12877. this.$message.error("请输入评论");
  12878. return;
  12879. }
  12880. let params2 = [
  12881. {
  12882. wid: wid,
  12883. lid: uid,
  12884. t: t,
  12885. },
  12886. ];
  12887. this.ajax
  12888. .post(this.$store.state.api + "getComment", params2)
  12889. .then((res) => {
  12890. if (res.data[0].length > 0) {
  12891. this.$message.error("一个作业只能评论一条");
  12892. } else {
  12893. let params = [
  12894. {
  12895. wid: wid,
  12896. lid: uid,
  12897. t: t,
  12898. c: this.commentText,
  12899. },
  12900. ];
  12901. this.ajax
  12902. .post(this.$store.state.api + "insertComment", params)
  12903. .then((res) => {
  12904. this.$message({
  12905. message: "评论成功",
  12906. type: "success",
  12907. });
  12908. this.commentText = "";
  12909. this.selectSWorks();
  12910. this.selectStudent();
  12911. })
  12912. .catch((err) => {
  12913. this.$message.error("评论失败");
  12914. console.error(err);
  12915. });
  12916. }
  12917. })
  12918. .catch((err) => {
  12919. // this.$message.error("评论失败");
  12920. console.error(err);
  12921. });
  12922. },
  12923. scoreWork(wid) {
  12924. if (this.wScore == 0) {
  12925. this.$message.error("请评分");
  12926. return;
  12927. }
  12928. let params = [
  12929. {
  12930. wid: wid,
  12931. score: JSON.stringify({
  12932. wScore: this.wScore,
  12933. detail: this.scoreDetail,
  12934. }),
  12935. },
  12936. ];
  12937. this.ajax
  12938. .post(this.$store.state.api + "scoreWork", params)
  12939. .then((res) => {
  12940. this.$message({
  12941. message: "评分成功",
  12942. type: "success",
  12943. });
  12944. this.wScore = 0;
  12945. this.scoreDetail = "";
  12946. this.dialogVisibleScore = false;
  12947. this.selectSWorks();
  12948. this.selectStudent();
  12949. })
  12950. .catch((err) => {
  12951. this.$message.error("评分失败");
  12952. console.error(err);
  12953. });
  12954. },
  12955. openXz(w, i) {
  12956. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  12957. .taskJson[this.taskCount].toolChoose[i].selectJson
  12958. ? JSON.parse(
  12959. JSON.stringify(
  12960. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12961. this.taskCount
  12962. ].toolChoose[i].selectJson
  12963. )
  12964. )
  12965. : { url: "", select: [], answer: [] };
  12966. var a = w.works.split(",");
  12967. for (var k = 0; k < a.length; k++) {
  12968. a[k] = parseInt(a[k]);
  12969. }
  12970. this.selectAnswer = { answer: a, stu: w.sName };
  12971. this.isSelect = true;
  12972. this.dialogVisibleSelect = true;
  12973. },
  12974. openSen(w, i) {
  12975. this.sentenceList1 = JSON.parse(w.works);
  12976. this.sentenceList1.stuName = w.sName;
  12977. this.dialogVisibleSentence1 = true;
  12978. },
  12979. openPj(w, toolindex) {
  12980. this.isStar = true;
  12981. this.eScore = JSON.parse(w);
  12982. this.rateJson =
  12983. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12984. this.taskCount
  12985. ].toolChoose[toolindex].rateJson;
  12986. this.studentEvalDialogVisible = true;
  12987. },
  12988. deleteWorks(id) {
  12989. this.$confirm("确定删除此作业吗?", "提示", {
  12990. confirmButtonText: "确定",
  12991. cancelButtonText: "取消",
  12992. type: "warning",
  12993. })
  12994. .then(() => {
  12995. let params = [
  12996. {
  12997. id: id,
  12998. },
  12999. ];
  13000. this.ajax
  13001. .post(this.$store.state.api + "deleteCourseWork", params)
  13002. .then((res) => {
  13003. this.$message({
  13004. message: "删除成功",
  13005. type: "success",
  13006. });
  13007. this.selectStudent();
  13008. this.selectSWorks();
  13009. this.selectSLook();
  13010. })
  13011. .catch((err) => {
  13012. this.$message.error("网络异常");
  13013. console.error(err);
  13014. });
  13015. })
  13016. .catch(() => {});
  13017. },
  13018. selectSWorks(gindex) {
  13019. //教师查看全部作业
  13020. let params = {
  13021. cid: this.id,
  13022. s: this.courseType,
  13023. t: this.taskCount,
  13024. };
  13025. this.ajax
  13026. .get(this.$store.state.api + "selectSWorks", params)
  13027. .then((res) => {
  13028. var a =
  13029. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13030. this.taskCount
  13031. ].toolChoose;
  13032. var b = res.data[0];
  13033. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13034. var y = [
  13035. "AVI",
  13036. "NAVI",
  13037. "MPEG",
  13038. "ASF",
  13039. "MOV",
  13040. "WMV",
  13041. "3GP",
  13042. "RM",
  13043. "RMVB",
  13044. "FLV",
  13045. "F4V",
  13046. "H.264",
  13047. "H.265",
  13048. "REAL VIDEO",
  13049. "MKV",
  13050. "WebM",
  13051. "HDDVD",
  13052. "MP4",
  13053. "MPG",
  13054. "M4V",
  13055. "MGV",
  13056. "OGV",
  13057. "QTM",
  13058. "STR",
  13059. "AMC",
  13060. "DVX",
  13061. "EVO",
  13062. "DAT",
  13063. "OGG",
  13064. "OGM",
  13065. ];
  13066. var d = res.data[1];
  13067. var e = res.data[2];
  13068. var f = res.data[3];
  13069. for (var i = 0; i < a.length; i++) {
  13070. this.worksStudent[i] = [];
  13071. this.worksTeacher[i] = [];
  13072. this.worksStudent2[i] = [];
  13073. if (
  13074. !this.isCloseList[i] ||
  13075. this.isCloseList[i].isClose == undefined
  13076. ) {
  13077. this.isCloseList[i] = { isClose: 0 };
  13078. }
  13079. this.groupStudent[i] = [];
  13080. this.groupStudentUid[i] = [];
  13081. this.isWorksS[i] = [];
  13082. this.checkJson[i] = [];
  13083. if (a[i].tool[0] == 49) {
  13084. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13085. this.groupStudent[i][gA] = [];
  13086. this.groupStudentUid[i][gA] = [];
  13087. this.worksStudent[i][gA] = [];
  13088. this.isCloseList[i][gA] = [];
  13089. for (var g = 0; g < f.length; g++) {
  13090. if (
  13091. f[g].ttype == 2 &&
  13092. this.tcid &&
  13093. this.arrayToArray(
  13094. f[g].classid.split(","),
  13095. this.tcid.split(",")
  13096. ).length == 0
  13097. ) {
  13098. continue;
  13099. }
  13100. if (gA == f[g].group && f[g].tool == i) {
  13101. this.groupStudent[i][gA].push(f[g]);
  13102. this.groupStudentUid[i][gA].push(f[g].userid);
  13103. }
  13104. }
  13105. }
  13106. this.$forceUpdate();
  13107. }
  13108. for (var j = 0; j < b.length; j++) {
  13109. if (
  13110. b[j].ttype == 2 &&
  13111. this.tcid &&
  13112. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13113. .length == 0
  13114. ) {
  13115. continue;
  13116. }
  13117. var likesCount = 0;
  13118. var commentCount = 0;
  13119. var isLikes = false;
  13120. var commentJson = [];
  13121. var data = b[j];
  13122. if (i == b[j].tool) {
  13123. if (data.type == 2 && a[i].tool[0] == 4) {
  13124. // if(JSON.parse(data.content)[0].anwer){
  13125. var checkL =
  13126. JSON.parse(data.content)[0].anwer instanceof Array
  13127. ? JSON.parse(data.content)[0].anwer
  13128. : JSON.parse(data.content)[0].anwer.split(",");
  13129. for (var z = 0; z < checkL.length; z++) {
  13130. if (!this.checkJson[i][z]) {
  13131. this.checkJson[i].push({
  13132. checkCount: [],
  13133. checkPerson: [],
  13134. rightPerson: [],
  13135. });
  13136. }
  13137. if (!this.checkJson[i][z].checkCount.length) {
  13138. this.checkJson[i][z].checkCount = [];
  13139. let _askItemCount = JSON.parse(data.content)[0].askJson
  13140. .askJson[z].askItem;
  13141. for (var aic = 0; aic < _askItemCount; aic++) {
  13142. this.checkJson[i][z].checkCount.push(0);
  13143. }
  13144. }
  13145. if (checkL[z] instanceof Array) {
  13146. if (
  13147. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13148. checkL[z].sort().join(",")
  13149. ) {
  13150. this.checkJson[i][z].rightPerson.push(data.name);
  13151. }
  13152. for (var q = 0; q < checkL[z].length; q++) {
  13153. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13154. ? this.checkJson[i][z].checkPerson[
  13155. parseInt(checkL[z][q])
  13156. ].push(data.name)
  13157. : (this.checkJson[i][z].checkPerson[
  13158. parseInt(checkL[z][q])
  13159. ] = [data.name]);
  13160. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13161. ? this.checkJson[i][z].checkCount[
  13162. parseInt(checkL[z][q])
  13163. ]++
  13164. : (this.checkJson[i][z].checkCount[
  13165. parseInt(checkL[z][q])
  13166. ] = 1);
  13167. }
  13168. } else {
  13169. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13170. this.checkJson[i][z].rightPerson.push(data.name);
  13171. }
  13172. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13173. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13174. ? this.checkJson[i][z].checkPerson[
  13175. parseInt(checkL[z])
  13176. ].push(data.name)
  13177. : (this.checkJson[i][z].checkPerson[
  13178. parseInt(checkL[z])
  13179. ] = [data.name]);
  13180. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13181. ? this.checkJson[i][z].checkCount[
  13182. parseInt(checkL[z])
  13183. ]++
  13184. : (this.checkJson[i][z].checkCount[
  13185. parseInt(checkL[z])
  13186. ] = 1);
  13187. }
  13188. }
  13189. }
  13190. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13191. var checkL = JSON.parse(data.content)[0].anwer;
  13192. for (var z = 0; z < checkL.length; z++) {
  13193. if (!this.checkJson[i][z]) {
  13194. this.checkJson[i].push({
  13195. checkCount: [],
  13196. checkPerson: [],
  13197. rightPerson: [],
  13198. });
  13199. }
  13200. if (!this.checkJson[i][z].checkCount.length) {
  13201. this.checkJson[i][z].checkCount = [];
  13202. let _askItemCount = JSON.parse(data.content)[0].testJson
  13203. .testJson[z].testItem;
  13204. console.log(_askItemCount);
  13205. for (var aic = 0; aic < _askItemCount; aic++) {
  13206. this.checkJson[i][z].checkCount.push(0);
  13207. }
  13208. }
  13209. if (checkL[z] instanceof Array) {
  13210. if (
  13211. JSON.parse(data.content)[0]
  13212. .testJson.testJson[z].answer.sort()
  13213. .join(",") == checkL[z].sort().join(",")
  13214. ) {
  13215. this.checkJson[i][z].rightPerson.push(data.name);
  13216. }
  13217. for (var q = 0; q < checkL[z].length; q++) {
  13218. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13219. ? this.checkJson[i][z].checkPerson[
  13220. parseInt(checkL[z][q])
  13221. ].push(data.name)
  13222. : (this.checkJson[i][z].checkPerson[
  13223. parseInt(checkL[z][q])
  13224. ] = [data.name]);
  13225. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13226. ? this.checkJson[i][z].checkCount[
  13227. parseInt(checkL[z][q])
  13228. ]++
  13229. : (this.checkJson[i][z].checkCount[
  13230. parseInt(checkL[z][q])
  13231. ] = 1);
  13232. }
  13233. } else {
  13234. if (
  13235. JSON.parse(data.content)[0].testJson.testJson[z]
  13236. .answer == checkL[z]
  13237. ) {
  13238. this.checkJson[i][z].rightPerson.push(data.name);
  13239. }
  13240. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13241. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13242. ? this.checkJson[i][z].checkPerson[
  13243. parseInt(checkL[z])
  13244. ].push(data.name)
  13245. : (this.checkJson[i][z].checkPerson[
  13246. parseInt(checkL[z])
  13247. ] = [data.name]);
  13248. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13249. ? this.checkJson[i][z].checkCount[
  13250. parseInt(checkL[z])
  13251. ]++
  13252. : (this.checkJson[i][z].checkCount[
  13253. parseInt(checkL[z])
  13254. ] = 1);
  13255. }
  13256. }
  13257. }
  13258. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13259. var checkL = JSON.parse(data.content);
  13260. for (var z = 0; z < checkL.length; z++) {
  13261. if (!this.checkJson[i][z]) {
  13262. this.checkJson[i].push({
  13263. checkCount: [],
  13264. checkPerson: [],
  13265. rightPerson: [],
  13266. });
  13267. }
  13268. this.checkJson[i][z].checkPerson.push(data.name);
  13269. if (
  13270. checkL[z].chooseSenList.toString() ==
  13271. checkL[z].rightAnswer.toString()
  13272. ) {
  13273. this.checkJson[i][z].rightPerson.push(data.name);
  13274. }
  13275. }
  13276. }
  13277. for (var k = 0; k < d.length; k++) {
  13278. //点赞
  13279. if (d[k].workId == b[j].id) {
  13280. likesCount++;
  13281. if (d[k].likesId == this.userid) {
  13282. isLikes = true;
  13283. }
  13284. }
  13285. }
  13286. for (var l = 0; l < e.length; l++) {
  13287. //评论
  13288. if (e[l].workId == b[j].id) {
  13289. if (e[l].comment != "") {
  13290. commentCount++;
  13291. commentJson.push({
  13292. commentText: e[l].comment,
  13293. commentTime: e[l].commentTime,
  13294. commentPeople: e[l].commentPeople,
  13295. userid: e[l].userid,
  13296. wid: e[l].id,
  13297. });
  13298. }
  13299. }
  13300. }
  13301. if (
  13302. (b[j].type == 1 ||
  13303. b[j].type == 4 ||
  13304. b[j].type == 5 ||
  13305. b[j].type == 6 ||
  13306. b[j].type == 12 ||
  13307. b[j].type == 7) &&
  13308. a[i].tool[0] != 15 &&
  13309. a[i].tool[0] != 4 &&
  13310. a[i].tool[0] != 45 &&
  13311. a[i].tool[0] != 50 &&
  13312. a[i].tool[0] != 32 &&
  13313. a[i].tool[0] != 57 &&
  13314. a[i].tool[0] != 52
  13315. ) {
  13316. if (
  13317. c.indexOf(
  13318. b[j].content
  13319. .split(".")
  13320. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13321. ) != -1 &&
  13322. a[i].tool[0] == 16 &&
  13323. b[j].atool != 50
  13324. ) {
  13325. let _works = {
  13326. userid: b[j].userid,
  13327. ateacher: b[j].ateacher,
  13328. wid: b[j].id,
  13329. works: b[j].content,
  13330. sName: b[j].name,
  13331. type: 1,
  13332. time: b[j].time,
  13333. score: b[j].score,
  13334. img: b[j].img,
  13335. likesCount: likesCount,
  13336. commentCount: commentCount,
  13337. isLikes: isLikes,
  13338. commentJson: commentJson,
  13339. };
  13340. if (b[j].ttype == 1) {
  13341. this.worksTeacher[i].push(_works);
  13342. } else {
  13343. this.worksStudent2[i].push(_works);
  13344. }
  13345. this.worksStudent[i].push(_works);
  13346. this.isWorksS[i].push({
  13347. uid: b[j].userid,
  13348. sName: b[j].name,
  13349. });
  13350. } else if (
  13351. y.indexOf(
  13352. b[j].content
  13353. .split(".")
  13354. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13355. ) != -1 &&
  13356. a[i].tool[0] == 16 &&
  13357. b[j].atool != 50
  13358. ) {
  13359. let _works = {
  13360. userid: b[j].userid,
  13361. ateacher: b[j].ateacher,
  13362. wid: b[j].id,
  13363. works: b[j].content,
  13364. sName: b[j].name,
  13365. type: 3,
  13366. time: b[j].time,
  13367. score: b[j].score,
  13368. img: b[j].img,
  13369. likesCount: likesCount,
  13370. commentCount: commentCount,
  13371. isLikes: isLikes,
  13372. commentJson: commentJson,
  13373. };
  13374. if (b[j].ttype == 1) {
  13375. this.worksTeacher[i].push(_works);
  13376. } else {
  13377. this.worksStudent2[i].push(_works);
  13378. }
  13379. this.worksStudent[i].push(_works);
  13380. this.isWorksS[i].push({
  13381. uid: b[j].userid,
  13382. sName: b[j].name,
  13383. });
  13384. } else if (b[j].type == 6 && b[j].atool != 50) {
  13385. let _works = {
  13386. userid: b[j].userid,
  13387. ateacher: b[j].ateacher,
  13388. wid: b[j].id,
  13389. works: b[j].content,
  13390. sName: b[j].name,
  13391. type: 4,
  13392. time: b[j].time,
  13393. score: b[j].score,
  13394. img: b[j].img,
  13395. likesCount: likesCount,
  13396. commentCount: commentCount,
  13397. isLikes: isLikes,
  13398. commentJson: commentJson,
  13399. };
  13400. if (b[j].ttype == 1) {
  13401. this.worksTeacher[i].push(_works);
  13402. } else {
  13403. this.worksStudent2[i].push(_works);
  13404. }
  13405. this.worksStudent[i].push(_works);
  13406. this.isWorksS[i].push({
  13407. uid: b[j].userid,
  13408. sName: b[j].name,
  13409. });
  13410. } else if (b[j].type == 7 && b[j].atool != 50) {
  13411. let _works = {
  13412. userid: b[j].userid,
  13413. ateacher: b[j].ateacher,
  13414. wid: b[j].id,
  13415. works: b[j].content,
  13416. sName: b[j].name,
  13417. type: 5,
  13418. time: b[j].time,
  13419. score: b[j].score,
  13420. img: b[j].img,
  13421. likesCount: likesCount,
  13422. commentCount: commentCount,
  13423. isLikes: isLikes,
  13424. commentJson: commentJson,
  13425. };
  13426. if (b[j].ttype == 1) {
  13427. this.worksTeacher[i].push(_works);
  13428. } else {
  13429. this.worksStudent2[i].push(_works);
  13430. }
  13431. this.worksStudent[i].push(_works);
  13432. this.isWorksS[i].push({
  13433. uid: b[j].userid,
  13434. sName: b[j].name,
  13435. });
  13436. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13437. let _works = {
  13438. userid: b[j].userid,
  13439. ateacher: b[j].ateacher,
  13440. wid: b[j].id,
  13441. works: b[j].content,
  13442. sName: b[j].name,
  13443. type: 12,
  13444. time: b[j].time,
  13445. score: b[j].score,
  13446. img: b[j].img,
  13447. likesCount: likesCount,
  13448. commentCount: commentCount,
  13449. isLikes: isLikes,
  13450. commentJson: commentJson,
  13451. };
  13452. if (b[j].ttype == 1) {
  13453. this.worksTeacher[i].push(_works);
  13454. } else {
  13455. this.worksStudent2[i].push(_works);
  13456. }
  13457. this.worksStudent[i].push(_works);
  13458. this.isWorksS[i].push({
  13459. uid: b[j].userid,
  13460. sName: b[j].name,
  13461. });
  13462. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13463. let _works = {
  13464. userid: b[j].userid,
  13465. ateacher: b[j].ateacher,
  13466. wid: b[j].id,
  13467. works: b[j].content,
  13468. sName: b[j].name,
  13469. type: 0,
  13470. time: b[j].time,
  13471. score: b[j].score,
  13472. img: b[j].img,
  13473. likesCount: likesCount,
  13474. commentCount: commentCount,
  13475. isLikes: isLikes,
  13476. commentJson: commentJson,
  13477. };
  13478. if (b[j].ttype == 1) {
  13479. this.worksTeacher[i].push(_works);
  13480. } else {
  13481. this.worksStudent2[i].push(_works);
  13482. }
  13483. this.worksStudent[i].push(_works);
  13484. this.isWorksS[i].push({
  13485. uid: b[j].userid,
  13486. sName: b[j].name,
  13487. });
  13488. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13489. let _works = {
  13490. userid: b[j].userid,
  13491. ateacher: b[j].ateacher,
  13492. wid: b[j].id,
  13493. works: b[j].content,
  13494. sName: b[j].name,
  13495. type: 0,
  13496. time: b[j].time,
  13497. score: b[j].score,
  13498. img: b[j].img,
  13499. likesCount: likesCount,
  13500. commentCount: commentCount,
  13501. isLikes: isLikes,
  13502. commentJson: commentJson,
  13503. };
  13504. if (b[j].ttype == 1) {
  13505. this.worksTeacher[i].push(_works);
  13506. } else {
  13507. this.worksStudent2[i].push(_works);
  13508. }
  13509. this.worksStudent[i].push(_works);
  13510. this.isWorksS[i].push({
  13511. uid: b[j].userid,
  13512. sName: b[j].name,
  13513. });
  13514. }
  13515. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13516. let _works = {
  13517. userid: b[j].userid,
  13518. ateacher: b[j].ateacher,
  13519. wid: b[j].id,
  13520. works: b[j].content,
  13521. sName: b[j].name,
  13522. type: 2,
  13523. time: b[j].time,
  13524. score: b[j].score,
  13525. img: b[j].img,
  13526. likesCount: likesCount,
  13527. commentCount: commentCount,
  13528. isLikes: isLikes,
  13529. commentJson: commentJson,
  13530. };
  13531. if (b[j].ttype == 1) {
  13532. this.worksTeacher[i].push(_works);
  13533. } else {
  13534. this.worksStudent2[i].push(_works);
  13535. }
  13536. this.worksStudent[i].push(_works);
  13537. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13538. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13539. //问卷
  13540. let _works = {
  13541. userid: b[j].userid,
  13542. ateacher: b[j].ateacher,
  13543. wid: b[j].id,
  13544. works: b[j].content,
  13545. sName: b[j].name,
  13546. type: 2,
  13547. time: b[j].time,
  13548. score: b[j].score,
  13549. img: b[j].img,
  13550. likesCount: likesCount,
  13551. commentCount: commentCount,
  13552. isLikes: isLikes,
  13553. commentJson: commentJson,
  13554. };
  13555. if (b[j].ttype == 1) {
  13556. this.worksTeacher[i].push(_works);
  13557. } else {
  13558. this.worksStudent2[i].push(_works);
  13559. }
  13560. this.worksStudent[i].push(_works);
  13561. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13562. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13563. //选择题
  13564. let _works = {
  13565. userid: b[j].userid,
  13566. ateacher: b[j].ateacher,
  13567. wid: b[j].id,
  13568. works: b[j].content,
  13569. sName: b[j].name,
  13570. type: 8,
  13571. time: b[j].time,
  13572. score: b[j].score,
  13573. img: b[j].img,
  13574. likesCount: likesCount,
  13575. commentCount: commentCount,
  13576. isLikes: isLikes,
  13577. commentJson: commentJson,
  13578. };
  13579. if (b[j].ttype == 1) {
  13580. this.worksTeacher[i].push(_works);
  13581. } else {
  13582. this.worksStudent2[i].push(_works);
  13583. }
  13584. this.worksStudent[i].push(_works);
  13585. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13586. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13587. //选择题
  13588. let _works = {
  13589. userid: b[j].userid,
  13590. ateacher: b[j].ateacher,
  13591. wid: b[j].id,
  13592. works: b[j].content,
  13593. sName: b[j].name,
  13594. type: 9,
  13595. time: b[j].time,
  13596. score: b[j].score,
  13597. img: b[j].img,
  13598. likesCount: likesCount,
  13599. commentCount: commentCount,
  13600. isLikes: isLikes,
  13601. commentJson: commentJson,
  13602. };
  13603. if (b[j].ttype == 1) {
  13604. this.worksTeacher[i].push(_works);
  13605. } else {
  13606. this.worksStudent2[i].push(_works);
  13607. }
  13608. this.worksStudent[i].push(_works);
  13609. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13610. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13611. //选择题
  13612. let _works = {
  13613. userid: b[j].userid,
  13614. ateacher: b[j].ateacher,
  13615. wid: b[j].id,
  13616. works: b[j].content,
  13617. sName: b[j].name,
  13618. type: 10,
  13619. time: b[j].time,
  13620. score: b[j].score,
  13621. img: b[j].img,
  13622. likesCount: likesCount,
  13623. commentCount: commentCount,
  13624. isLikes: isLikes,
  13625. commentJson: commentJson,
  13626. };
  13627. if (b[j].ttype == 1) {
  13628. this.worksTeacher[i].push(_works);
  13629. } else {
  13630. this.worksStudent2[i].push(_works);
  13631. }
  13632. this.worksStudent[i].push(_works);
  13633. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13634. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13635. //选择题
  13636. let _works = {
  13637. userid: b[j].userid,
  13638. ateacher: b[j].ateacher,
  13639. wid: b[j].id,
  13640. works: b[j].content,
  13641. sName: b[j].name,
  13642. type: 13,
  13643. time: b[j].time,
  13644. score: b[j].score,
  13645. img: b[j].img,
  13646. likesCount: likesCount,
  13647. commentCount: commentCount,
  13648. isLikes: isLikes,
  13649. commentJson: commentJson,
  13650. };
  13651. if (b[j].ttype == 1) {
  13652. this.worksTeacher[i].push(_works);
  13653. } else {
  13654. this.worksStudent2[i].push(_works);
  13655. }
  13656. this.worksStudent[i].push(_works);
  13657. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13658. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13659. let _gindex = JSON.parse(b[j].content);
  13660. if (
  13661. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13662. b[j].userid
  13663. ) != -1
  13664. ) {
  13665. this.worksStudent[i][_gindex.groupIndex].push({
  13666. userid: b[j].userid,
  13667. ateacher: b[j].ateacher,
  13668. wid: b[j].id,
  13669. works: _gindex.url,
  13670. sName: b[j].name,
  13671. type: _gindex.type,
  13672. time: b[j].time,
  13673. score: b[j].score,
  13674. img: b[j].img,
  13675. likesCount: likesCount,
  13676. commentCount: commentCount,
  13677. isLikes: isLikes,
  13678. commentJson: commentJson,
  13679. });
  13680. }
  13681. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13682. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13683. let _works = {
  13684. userid: b[j].userid,
  13685. ateacher: b[j].ateacher,
  13686. wid: b[j].id,
  13687. works: b[j].content,
  13688. sName: b[j].name ? b[j].name : b[j].userid,
  13689. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13690. time: b[j].time,
  13691. score: b[j].score,
  13692. img: b[j].img,
  13693. likesCount: likesCount,
  13694. commentCount: commentCount,
  13695. isLikes: isLikes,
  13696. commentJson: commentJson,
  13697. };
  13698. if (b[j].ttype == 1) {
  13699. this.worksTeacher[i].push(_works);
  13700. } else {
  13701. this.worksStudent2[i].push(_works);
  13702. }
  13703. this.worksStudent[i].push(_works);
  13704. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13705. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13706. let _works = {
  13707. userid: b[j].userid,
  13708. ateacher: b[j].ateacher,
  13709. wid: b[j].id,
  13710. works: b[j].content,
  13711. sName: b[j].name ? b[j].name : b[j].userid,
  13712. type: 12,
  13713. time: b[j].time,
  13714. score: b[j].score,
  13715. img: b[j].img,
  13716. likesCount: likesCount,
  13717. commentCount: commentCount,
  13718. isLikes: isLikes,
  13719. commentJson: commentJson,
  13720. };
  13721. if (b[j].ttype == 1) {
  13722. this.worksTeacher[i].push(_works);
  13723. } else {
  13724. this.worksStudent2[i].push(_works);
  13725. }
  13726. this.worksStudent[i].push(_works);
  13727. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13728. } else if (
  13729. a[i].tool[0] == 57 &&
  13730. b[j].atool == 57 &&
  13731. b[j].type == 12
  13732. ) {
  13733. let _works = {
  13734. userid: b[j].userid,
  13735. ateacher: b[j].ateacher,
  13736. wid: b[j].id,
  13737. works: b[j].content,
  13738. sName: b[j].name ? b[j].name : b[j].userid,
  13739. type: 12,
  13740. time: b[j].time,
  13741. score: b[j].score,
  13742. img: b[j].img,
  13743. likesCount: likesCount,
  13744. commentCount: commentCount,
  13745. isLikes: isLikes,
  13746. commentJson: commentJson,
  13747. };
  13748. if (b[j].ttype == 1) {
  13749. this.worksTeacher[i].push(_works);
  13750. } else {
  13751. this.worksStudent2[i].push(_works);
  13752. }
  13753. this.worksStudent[i].push(_works);
  13754. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13755. } else if (
  13756. a[i].tool[0] == 57 &&
  13757. b[j].atool == 57 &&
  13758. b[j].type == 15
  13759. ) {
  13760. let _works = {
  13761. userid: b[j].userid,
  13762. ateacher: b[j].ateacher,
  13763. wid: b[j].id,
  13764. works: b[j].content,
  13765. sName: b[j].name ? b[j].name : b[j].userid,
  13766. type: 15,
  13767. time: b[j].time,
  13768. score: b[j].score,
  13769. img: b[j].img,
  13770. likesCount: likesCount,
  13771. commentCount: commentCount,
  13772. isLikes: isLikes,
  13773. commentJson: commentJson,
  13774. };
  13775. if (b[j].ttype == 1) {
  13776. this.worksTeacher[i].push(_works);
  13777. } else {
  13778. this.worksStudent2[i].push(_works);
  13779. }
  13780. this.worksStudent[i].push(_works);
  13781. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13782. }
  13783. }
  13784. }
  13785. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13786. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13787. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13788. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13789. var scoreA = parseFloat(jscoreA);
  13790. var scoreB = parseFloat(jscoreB);
  13791. if (scoreA == scoreB) {
  13792. return b.likesCount - a.likesCount;
  13793. }
  13794. return scoreB - scoreA;
  13795. });
  13796. }
  13797. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13798. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13799. a,
  13800. b
  13801. ) {
  13802. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13803. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13804. var scoreA = parseFloat(jscoreA);
  13805. var scoreB = parseFloat(jscoreB);
  13806. if (scoreA == scoreB) {
  13807. return b.likesCount - a.likesCount;
  13808. }
  13809. return scoreB - scoreA;
  13810. });
  13811. }
  13812. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13813. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13814. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13815. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13816. var scoreA = parseFloat(jscoreA);
  13817. var scoreB = parseFloat(jscoreB);
  13818. if (scoreA == scoreB) {
  13819. return b.likesCount - a.likesCount;
  13820. }
  13821. return scoreB - scoreA;
  13822. });
  13823. }
  13824. }
  13825. for (var i = 0; i < a.length; i++) {
  13826. for (var j = 0; j < b.length; j++) {
  13827. var data = b[j];
  13828. if (i == b[j].tool) {
  13829. if (data.type == 2 || data.type == 8) {
  13830. for (var z = 0; z < this.checkJson[i].length; z++) {
  13831. this.checkJson[i][z].checkPerent = [];
  13832. this.checkJson[i][z].right = Math.round(
  13833. (this.checkJson[i][z].rightPerson.length /
  13834. parseInt(this.worksStudent[i].length)) *
  13835. 100
  13836. );
  13837. let aaaa = this.checkJson[i][z];
  13838. console.log(aaaa);
  13839. for (
  13840. var k = 0;
  13841. k < this.checkJson[i][z].checkCount.length;
  13842. k++
  13843. ) {
  13844. this.checkJson[i][z].checkPerent.push(
  13845. Math.round(
  13846. (this.checkJson[i][z].checkCount[k] /
  13847. parseInt(this.worksStudent[i].length)) *
  13848. 100
  13849. )
  13850. );
  13851. }
  13852. }
  13853. } else if (data.type == 9) {
  13854. for (var z = 0; z < this.checkJson[i].length; z++) {
  13855. this.checkJson[i][z].checkPerent = [];
  13856. this.checkJson[i][z].right = Math.round(
  13857. (this.checkJson[i][z].rightPerson.length /
  13858. this.checkJson[i][z].checkPerson.length) *
  13859. 100
  13860. );
  13861. }
  13862. }
  13863. }
  13864. }
  13865. }
  13866. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13867. this.joinGroup(gindex);
  13868. }
  13869. this.selectWorksStudent();
  13870. })
  13871. .catch((err) => {
  13872. console.error(err);
  13873. });
  13874. },
  13875. pngToWhiteBg(file) {
  13876. const _file = file;
  13877. let read = new FileReader();
  13878. read.readAsDataURL(file); // 文件转base64
  13879. return new Promise((resolve, reject) => {
  13880. read.onload = (e) => {
  13881. let img = new Image();
  13882. img.src = e.target.result;
  13883. img.onload = async () => {
  13884. // 生成canvas
  13885. let canvas = document.createElement("canvas");
  13886. let context = canvas.getContext("2d");
  13887. // 绘制图片到canvas上
  13888. canvas.width = img.width;
  13889. canvas.height = img.height;
  13890. // 在canvas绘制前填充白色背景
  13891. context.fillStyle = "#fff";
  13892. context.fillRect(0, 0, canvas.width, canvas.height);
  13893. context.drawImage(img, 0, 0);
  13894. let base64 = canvas.toDataURL(file["type"], 1);
  13895. let newFile = this.dataUrlToFile(base64, _file);
  13896. resolve(newFile);
  13897. };
  13898. };
  13899. });
  13900. },
  13901. dataUrlToFile(dataurl, file) {
  13902. let arr = dataurl.split(","),
  13903. mime = arr[0].match(/:(.*?);/)[1],
  13904. bstr = atob(arr[1]),
  13905. n = bstr.length,
  13906. u8arr = new Uint8Array(n);
  13907. while (n--) {
  13908. u8arr[n] = bstr.charCodeAt(n);
  13909. }
  13910. // return new Blob([u8arr], { type: mime });
  13911. return new File([new Blob([u8arr], { type: mime })], file.name, {
  13912. type: mime,
  13913. });
  13914. },
  13915. async beforeUpload1(event, type, i) {
  13916. // this.$message.success('进入上传')
  13917. var file = "";
  13918. if (type == 5) {
  13919. file = event;
  13920. } else {
  13921. file = event.target.files[0];
  13922. }
  13923. var credentials = {
  13924. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13925. secretAccessKey: "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",
  13926. }; //秘钥形式的登录上传
  13927. window.AWS.config.update(credentials);
  13928. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13929. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13930. var _this = this;
  13931. _this.progress = 0;
  13932. _this.proVisible = true;
  13933. _this.isFinishSize = 0;
  13934. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13935. var b = [
  13936. "DOC",
  13937. "DOCX",
  13938. "DOCM",
  13939. "DOTM",
  13940. "DOTX",
  13941. "PPTX",
  13942. "PPSX",
  13943. "PPT",
  13944. "PPS",
  13945. "PPTM",
  13946. "POTM",
  13947. "PPAM",
  13948. "POTX",
  13949. "PPSM",
  13950. ];
  13951. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13952. var photoA = [
  13953. "BMP",
  13954. "GIF",
  13955. "PNG",
  13956. "JPGE",
  13957. "JPG",
  13958. "TIF",
  13959. "PCX",
  13960. "TGA",
  13961. "EXIF",
  13962. "FPX",
  13963. "SVG",
  13964. "APNG",
  13965. ];
  13966. // if (
  13967. // b.indexOf(
  13968. // file.name
  13969. // .split(".")
  13970. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13971. // ) != -1
  13972. // ) {
  13973. // if (file.size / 1024 / 1024 > 10) {
  13974. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13975. // return;
  13976. // }
  13977. // } else if (
  13978. // excelA.indexOf(
  13979. // file.name
  13980. // .split(".")
  13981. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13982. // ) != "-1"
  13983. // ) {
  13984. // if (file.size / 1024 / 1024 > 5) {
  13985. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13986. // return;
  13987. // }
  13988. // }
  13989. if (
  13990. photoA.indexOf(
  13991. file.name
  13992. .split(".")
  13993. [file.name.split(".").length - 1].toLocaleUpperCase()
  13994. ) != -1 &&
  13995. type != 4
  13996. ) {
  13997. // const blob = await imageConversion.compress(file, 0.8)
  13998. file = await this.pngToWhiteBg(file);
  13999. const blob = await imageConversion.compressAccurately(file, 256);
  14000. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14001. file = new File([blob], file.name, { type: file.type });
  14002. }
  14003. if (file) {
  14004. var params = {
  14005. Key:
  14006. file.name.split(".")[0] +
  14007. new Date().getTime() +
  14008. "." +
  14009. file.name.split(".")[file.name.split(".").length - 1],
  14010. ContentType: file.type,
  14011. Body: file,
  14012. "Access-Control-Allow-Credentials": "*",
  14013. ACL: "public-read",
  14014. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14015. var options = {
  14016. // partSize: 2048 * 1024 * 1024,
  14017. partSize: 1024 * 1024 * 1024,
  14018. queueSize: 2,
  14019. leavePartsOnError: true,
  14020. };
  14021. bucket
  14022. .upload(params, options)
  14023. .on("httpUploadProgress", function (evt) {
  14024. //这里可以写进度条
  14025. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14026. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14027. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14028. })
  14029. .send(function (err, data) {
  14030. _this.progress = 100;
  14031. _this.isFinishSize = _this.isAllSize;
  14032. setTimeout(() => {
  14033. _this.proVisible = false;
  14034. }, 1000);
  14035. if (err) {
  14036. var a = _this.$refs.upload1.uploadFiles;
  14037. a.splice(a.length - 1, a.length);
  14038. _this.$message.error("上传失败");
  14039. } else {
  14040. // _this.$message.success('上传成功')
  14041. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14042. var c = [
  14043. "AVI",
  14044. "NAVI",
  14045. "MPEG",
  14046. "ASF",
  14047. "MOV",
  14048. "WMV",
  14049. "3GP",
  14050. "RM",
  14051. "RMVB",
  14052. "FLV",
  14053. "F4V",
  14054. "H.264",
  14055. "H.265",
  14056. "REAL VIDEO",
  14057. "MKV",
  14058. "WebM",
  14059. "HDDVD",
  14060. "MP4",
  14061. "MPG",
  14062. "M4V",
  14063. "MGV",
  14064. "OGV",
  14065. "QTM",
  14066. "STR",
  14067. "AMC",
  14068. "DVX",
  14069. "EVO",
  14070. "DAT",
  14071. "OGG",
  14072. "OGM",
  14073. ];
  14074. if (type == 1) {
  14075. _this.studyJuri[0].cover.push({
  14076. name: file.name,
  14077. url: data.Location,
  14078. uid: file.uid,
  14079. });
  14080. if (
  14081. c.indexOf(
  14082. _this.studyJuri[0].cover[0].url
  14083. .split(".")
  14084. [
  14085. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14086. ].toLocaleUpperCase()
  14087. ) != -1
  14088. ) {
  14089. _this.fileType = 2;
  14090. } else if (
  14091. b.indexOf(
  14092. _this.studyJuri[0].cover[0].url
  14093. .split(".")
  14094. [
  14095. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14096. ].toLocaleUpperCase()
  14097. ) != -1
  14098. ) {
  14099. _this.fileType = 1;
  14100. } else if (
  14101. photoA.indexOf(
  14102. _this.studyJuri[0].cover[0].url
  14103. .split(".")
  14104. [
  14105. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14106. ].toLocaleUpperCase()
  14107. ) != -1
  14108. ) {
  14109. _this.fileType = 0;
  14110. } else {
  14111. _this.fileType = 3;
  14112. }
  14113. _this.imgChange(null, null, type);
  14114. } else if (type == 2) {
  14115. _this.upToolImg = data.Location;
  14116. _this.imgChange(null, null, type);
  14117. _this.addCourseWorks(i);
  14118. } else if (type == 4) {
  14119. _this.addPz("3", data.Location);
  14120. } else if (type == 5) {
  14121. _this.addImgDrawImG(data.Location);
  14122. } else if (type == 6) {
  14123. var _ftype = 1;
  14124. if (
  14125. c.indexOf(
  14126. data.Location.split(".")[
  14127. data.Location.split(".").length - 1
  14128. ].toLocaleUpperCase()
  14129. ) != -1
  14130. ) {
  14131. _ftype = 5;
  14132. } else if (
  14133. b.indexOf(
  14134. data.Location.split(".")[
  14135. data.Location.split(".").length - 1
  14136. ].toLocaleUpperCase()
  14137. ) != -1
  14138. ) {
  14139. _ftype = 4;
  14140. } else {
  14141. _ftype = 1;
  14142. }
  14143. _this.plworkFile.push({
  14144. name: file.name,
  14145. url: data.Location,
  14146. uid: file.uid,
  14147. fileType: _ftype,
  14148. username:
  14149. _this.plworkFile.length + 1 > 10
  14150. ? _this.plworkFile.length + 1
  14151. : "0" + (_this.plworkFile.length + 1),
  14152. });
  14153. } else if (type == 7) {
  14154. _this.addCourseWorksGong(i, data.Location, 32);
  14155. } else if (type == 8) {
  14156. _this.addCourseWorksGong(i, data.Location, 57);
  14157. }
  14158. _this.imgChange(null, null, type);
  14159. console.log(data.Location);
  14160. // _this.$message.success('上传成功'+data.Location)
  14161. }
  14162. });
  14163. }
  14164. },
  14165. async beforeUpload3(event, type, i) {
  14166. // this.$message.success('进入上传')
  14167. let file = "";
  14168. let cfindex2 = 0;
  14169. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14170. file = event.target.files[cfindex];
  14171. var credentials = {
  14172. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14173. secretAccessKey: "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",
  14174. }; //秘钥形式的登录上传
  14175. window.AWS.config.update(credentials);
  14176. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14177. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14178. var _this = this;
  14179. // _this.progress = 0;
  14180. _this.proVisible2 = true;
  14181. var b = [
  14182. "DOC",
  14183. "DOCX",
  14184. "DOCM",
  14185. "DOTM",
  14186. "DOTX",
  14187. "PPTX",
  14188. "PPSX",
  14189. "PPT",
  14190. "PPS",
  14191. "PPTM",
  14192. "POTM",
  14193. "PPAM",
  14194. "POTX",
  14195. "PPSM",
  14196. ];
  14197. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14198. var photoA = [
  14199. "BMP",
  14200. "GIF",
  14201. "PNG",
  14202. "JPGE",
  14203. "JPG",
  14204. "TIF",
  14205. "PCX",
  14206. "TGA",
  14207. "EXIF",
  14208. "FPX",
  14209. "SVG",
  14210. "APNG",
  14211. ];
  14212. if (
  14213. photoA.indexOf(
  14214. file.name
  14215. .split(".")
  14216. [file.name.split(".").length - 1].toLocaleUpperCase()
  14217. ) != -1 &&
  14218. type != 4
  14219. ) {
  14220. // const blob = await imageConversion.compress(file, 0.8)
  14221. file = await this.pngToWhiteBg(file);
  14222. const blob = await imageConversion.compressAccurately(file, 256);
  14223. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14224. file = new File([blob], file.name, { type: file.type });
  14225. }
  14226. if (file) {
  14227. var params = {
  14228. Key:
  14229. file.name.split(".")[0] +
  14230. new Date().getTime() +
  14231. "." +
  14232. file.name.split(".")[file.name.split(".").length - 1],
  14233. ContentType: file.type,
  14234. Body: file,
  14235. "Access-Control-Allow-Credentials": "*",
  14236. ACL: "public-read",
  14237. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14238. var options = {
  14239. // partSize: 2048 * 1024 * 1024,
  14240. partSize: 1024 * 1024 * 1024,
  14241. queueSize: 2,
  14242. leavePartsOnError: true,
  14243. };
  14244. bucket
  14245. .upload(params, options)
  14246. .on("httpUploadProgress", function (evt) {
  14247. //这里可以写进度条
  14248. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14249. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14250. })
  14251. .send(function (err, data) {
  14252. // _this.progress = 100;
  14253. cfindex2++;
  14254. setTimeout(() => {
  14255. if (
  14256. cfindex2 == event.target.files.length - 1 ||
  14257. cfindex2 > event.target.files.length - 1
  14258. ) {
  14259. _this.proVisible2 = false;
  14260. }
  14261. }, 1000);
  14262. if (err) {
  14263. var a = _this.$refs.upload1.uploadFiles;
  14264. a.splice(a.length - 1, a.length);
  14265. _this.$message.error("上传失败");
  14266. } else {
  14267. // _this.$message.success('上传成功')
  14268. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14269. var c = [
  14270. "AVI",
  14271. "NAVI",
  14272. "MPEG",
  14273. "ASF",
  14274. "MOV",
  14275. "WMV",
  14276. "3GP",
  14277. "RM",
  14278. "RMVB",
  14279. "FLV",
  14280. "F4V",
  14281. "H.264",
  14282. "H.265",
  14283. "REAL VIDEO",
  14284. "MKV",
  14285. "WebM",
  14286. "HDDVD",
  14287. "MP4",
  14288. "MPG",
  14289. "M4V",
  14290. "MGV",
  14291. "OGV",
  14292. "QTM",
  14293. "STR",
  14294. "AMC",
  14295. "DVX",
  14296. "EVO",
  14297. "DAT",
  14298. "OGG",
  14299. "OGM",
  14300. ];
  14301. if (type == 1) {
  14302. _this.studyJuri[0].cover.push({
  14303. name: file.name,
  14304. url: data.Location,
  14305. uid: file.uid,
  14306. });
  14307. if (
  14308. c.indexOf(
  14309. _this.studyJuri[0].cover[0].url
  14310. .split(".")
  14311. [
  14312. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14313. ].toLocaleUpperCase()
  14314. ) != -1
  14315. ) {
  14316. _this.fileType = 2;
  14317. } else if (
  14318. b.indexOf(
  14319. _this.studyJuri[0].cover[0].url
  14320. .split(".")
  14321. [
  14322. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14323. ].toLocaleUpperCase()
  14324. ) != -1
  14325. ) {
  14326. _this.fileType = 1;
  14327. } else {
  14328. _this.fileType = 0;
  14329. }
  14330. _this.imgChange(null, null, type);
  14331. } else if (type == 2) {
  14332. _this.upToolImg = data.Location;
  14333. _this.imgChange(null, null, type);
  14334. _this.addCourseWorks(i);
  14335. } else if (type == 4) {
  14336. _this.addPz("3", data.Location);
  14337. } else if (type == 5) {
  14338. _this.addImgDrawImG(data.Location);
  14339. } else if (type == 6) {
  14340. var _ftype = 1;
  14341. if (
  14342. c.indexOf(
  14343. data.Location.split(".")[
  14344. data.Location.split(".").length - 1
  14345. ].toLocaleUpperCase()
  14346. ) != -1
  14347. ) {
  14348. _ftype = 5;
  14349. } else if (
  14350. b.indexOf(
  14351. data.Location.split(".")[
  14352. data.Location.split(".").length - 1
  14353. ].toLocaleUpperCase()
  14354. ) != -1
  14355. ) {
  14356. _ftype = 4;
  14357. } else {
  14358. _ftype = 1;
  14359. }
  14360. _this.plworkFile.push({
  14361. name: file.name,
  14362. url: data.Location,
  14363. uid: file.uid,
  14364. fileType: _ftype,
  14365. username:
  14366. _this.plworkFile.length + 1 > 9
  14367. ? _this.plworkFile.length + 1
  14368. : "0" + (_this.plworkFile.length + 1),
  14369. });
  14370. }
  14371. _this.imgChange(null, null, type);
  14372. console.log(data.Location);
  14373. // _this.$message.success('上传成功'+data.Location)
  14374. }
  14375. });
  14376. }
  14377. }
  14378. },
  14379. beforeUpload2(event, type) {
  14380. var file = event.target.files[0];
  14381. var credentials = {
  14382. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14383. secretAccessKey: "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",
  14384. }; //秘钥形式的登录上传
  14385. window.AWS.config.update(credentials);
  14386. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14387. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14388. var _this = this;
  14389. _this.progress = 0;
  14390. _this.proVisible = true;
  14391. if (file) {
  14392. var params = {
  14393. Key:
  14394. file.name.split(".")[0] +
  14395. new Date().getTime() +
  14396. "." +
  14397. file.name.split(".")[file.name.split(".").length - 1],
  14398. ContentType: file.type,
  14399. Body: file,
  14400. "Access-Control-Allow-Credentials": "*",
  14401. ACL: "public-read",
  14402. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14403. var options = {
  14404. partSize: 2048 * 1024 * 1024,
  14405. queueSize: 2,
  14406. leavePartsOnError: true,
  14407. };
  14408. bucket
  14409. .upload(params, options)
  14410. .on("httpUploadProgress", function (evt) {
  14411. //这里可以写进度条
  14412. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14413. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14414. })
  14415. .send(function (err, data) {
  14416. _this.progress = 100;
  14417. setTimeout(() => {
  14418. _this.proVisible = false;
  14419. }, 1000);
  14420. if (err) {
  14421. var a = _this.$refs.upload1.uploadFiles;
  14422. a.splice(a.length - 1, a.length);
  14423. _this.$message.error("上传失败");
  14424. } else {
  14425. if (type == 2) {
  14426. _this.studyJuri[0].upVedio.push({
  14427. name: file.name,
  14428. url: data.Location,
  14429. uid: file.uid,
  14430. });
  14431. _this.imgChange(null, null, type);
  14432. } else if (type == 3) {
  14433. _this.studyJuri[0].upFile.push({
  14434. name: file.name,
  14435. url: data.Location,
  14436. uid: file.uid,
  14437. });
  14438. _this.imgChange(null, null, type);
  14439. }
  14440. console.log(data.Location);
  14441. }
  14442. });
  14443. }
  14444. },
  14445. allScrell() {
  14446. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14447. },
  14448. nextToolindex(type) {
  14449. if (type == "last") {
  14450. if (this.toolIndex == 0) {
  14451. this.$message.error("已经是第一个步骤");
  14452. return;
  14453. }
  14454. this.toolIndex = this.toolIndex - 1;
  14455. this.tool =
  14456. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14457. this.taskCount
  14458. ].toolChoose[this.toolIndex];
  14459. } else if (type == "next") {
  14460. if (
  14461. this.toolIndex ==
  14462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14463. this.taskCount
  14464. ].toolChoose.length -
  14465. 1
  14466. ) {
  14467. this.$message.error("已经是最后一个步骤");
  14468. return;
  14469. }
  14470. this.toolIndex = this.toolIndex + 1;
  14471. this.tool =
  14472. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14473. this.taskCount
  14474. ].toolChoose[this.toolIndex];
  14475. }
  14476. this.$forceUpdate();
  14477. },
  14478. checkBz(index) {
  14479. this.toolIndex = index;
  14480. this.tool =
  14481. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14482. this.taskCount
  14483. ].toolChoose[this.toolIndex];
  14484. this.isUpdateToolDetail = false;
  14485. this.$forceUpdate();
  14486. },
  14487. nextOrpreSteps(t) {
  14488. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14489. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14490. return;
  14491. }
  14492. var b = this.chapInfoList.length - 1;
  14493. if (t == 0) {
  14494. if (this.courseType == 0) {
  14495. if (this.taskCount == 0) {
  14496. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14497. if (this.IsLookOpen) {
  14498. if (
  14499. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14500. ) {
  14501. if (
  14502. this.courseDetail.userid != this.userid &&
  14503. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14504. ) {
  14505. this.$message.error("任务未解锁");
  14506. } else {
  14507. this.$message.error("上一任务未解锁");
  14508. }
  14509. return;
  14510. }
  14511. }
  14512. this.navList[this.courseType].isOpen = false;
  14513. this.courseType = b;
  14514. this.taskCount =
  14515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14516. .length - 1;
  14517. this.navList[this.courseType].isOpen = true;
  14518. } else {
  14519. this.taskCount--;
  14520. }
  14521. } else {
  14522. if (this.taskCount == 0) {
  14523. this.navList[this.courseType].isOpen = false;
  14524. this.courseType--;
  14525. this.taskCount =
  14526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14527. .length - 1;
  14528. this.navList[this.courseType].isOpen = true;
  14529. } else {
  14530. this.taskCount--;
  14531. }
  14532. }
  14533. } else {
  14534. if (this.courseType == b) {
  14535. if (
  14536. this.taskCount ==
  14537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14538. 1
  14539. ) {
  14540. this.navList[this.courseType].isOpen = false;
  14541. this.courseType = 0;
  14542. this.taskCount = 0;
  14543. this.navList[this.courseType].isOpen = true;
  14544. } else {
  14545. var bbb = parseInt(this.taskCount) + 1;
  14546. if (
  14547. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14548. .isLook &&
  14549. this.courseDetail.userid != this.userid &&
  14550. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14551. this.IsLookOpen
  14552. ) {
  14553. this.$message.error("任务未解锁");
  14554. return;
  14555. }
  14556. this.taskCount++;
  14557. if (this.IsLookOpen) {
  14558. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14559. this.taskCount
  14560. ].isLook = true;
  14561. this.addCourseState(3);
  14562. }
  14563. }
  14564. } else {
  14565. if (
  14566. this.taskCount ==
  14567. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14568. 1
  14569. ) {
  14570. var bbb = parseInt(this.courseType) + 1;
  14571. if (
  14572. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14573. this.courseDetail.userid != this.userid &&
  14574. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14575. this.IsLookOpen
  14576. ) {
  14577. this.$message.error("任务未解锁");
  14578. return;
  14579. }
  14580. this.navList[this.courseType].isOpen = false;
  14581. this.courseType++;
  14582. this.taskCount = 0;
  14583. this.navList[this.courseType].isOpen = true;
  14584. } else {
  14585. var bbb = parseInt(this.taskCount) + 1;
  14586. if (
  14587. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14588. .isLook &&
  14589. this.courseDetail.userid != this.userid &&
  14590. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14591. this.IsLookOpen
  14592. ) {
  14593. this.$message.error("任务未解锁");
  14594. return;
  14595. }
  14596. this.taskCount++;
  14597. }
  14598. if (this.IsLookOpen) {
  14599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14600. this.taskCount
  14601. ].isLook = true;
  14602. this.addCourseState(3);
  14603. }
  14604. }
  14605. }
  14606. document.scrollingElement.scrollTop = 0;
  14607. // this.showType = 0;
  14608. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14609. this.toolIndex = null;
  14610. this.isNoHomeWork = false;
  14611. (this.studyJuri = [
  14612. {
  14613. content: "",
  14614. cover: [],
  14615. upVedio: [],
  14616. upFile: [],
  14617. },
  14618. ]),
  14619. (this.radio = []);
  14620. // this.isClickNav = "";
  14621. this.selectPz();
  14622. this.getHomeWork();
  14623. this.getCourseDetail(2);
  14624. this.$forceUpdate();
  14625. },
  14626. openTask(s, n, i) {
  14627. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14628. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14629. return;
  14630. }
  14631. if (this.IsLookOpen) {
  14632. if (
  14633. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14634. this.courseDetail.userid != this.userid &&
  14635. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14636. ) {
  14637. this.$message.error("任务未解锁");
  14638. return;
  14639. }
  14640. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14641. if (
  14642. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14643. .isLook
  14644. ) {
  14645. this.$message.error("上一任务未解锁");
  14646. return;
  14647. }
  14648. } else if (s > this.courseType) {
  14649. if (n > 0) {
  14650. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14651. this.$message.error("上一任务未解锁");
  14652. return;
  14653. }
  14654. } else {
  14655. if (
  14656. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14657. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14658. ].isLook
  14659. ) {
  14660. this.$message.error("上一任务未解锁");
  14661. return;
  14662. }
  14663. }
  14664. }
  14665. }
  14666. this.courseType = s;
  14667. this.navId = i;
  14668. this.taskCount = n;
  14669. if (this.IsLookOpen) {
  14670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14671. this.taskCount
  14672. ].isLook = true;
  14673. this.addCourseState(3);
  14674. }
  14675. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14676. this.isCloseList[ci].isClose = 0;
  14677. }
  14678. // this.showType = 0;
  14679. this.isNoHomeWork = false;
  14680. (this.studyJuri = [
  14681. {
  14682. content: "",
  14683. cover: [],
  14684. upVedio: [],
  14685. upFile: [],
  14686. },
  14687. ]),
  14688. (this.radio = []);
  14689. document.scrollingElement.scrollTop = 0;
  14690. this.toolIndex = null;
  14691. // setTimeout(() => {
  14692. // let a = document.getElementById(i);
  14693. // if (a.offsetTop - 110 == 0) {
  14694. // window.scrollTo(0, 0);
  14695. // } else {
  14696. // window.scrollTo(0, a.offsetTop);
  14697. // }
  14698. // }, 0);
  14699. this.selectPz();
  14700. this.getHomeWork();
  14701. this.getCourseDetail(2);
  14702. },
  14703. get(i) {
  14704. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14705. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14706. return;
  14707. }
  14708. this.navList[i].isOpen = !this.navList[i].isOpen;
  14709. },
  14710. addQuestion() {
  14711. this.answerList.push({
  14712. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14713. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14714. });
  14715. let params = [
  14716. {
  14717. uid: this.userid,
  14718. cid: this.id,
  14719. stage: this.courseType,
  14720. task: this.taskCount,
  14721. tool: this.toolindex,
  14722. content: JSON.stringify(this.answerList),
  14723. type: 3,
  14724. },
  14725. ];
  14726. this.ajax
  14727. .post(this.$store.state.api + "addCourseWorks", params)
  14728. .then((res) => {
  14729. this.$message({
  14730. message: "提交成功",
  14731. type: "success",
  14732. });
  14733. this.answerList = [];
  14734. this.questionAnswer = "";
  14735. this.answerDialogVisible = false;
  14736. this.selectStudent();
  14737. this.selectSWorks();
  14738. this.selectSLook();
  14739. })
  14740. .catch((err) => {
  14741. this.$message.error("提交失败");
  14742. console.error(err);
  14743. });
  14744. },
  14745. addQuestionTeacher() {
  14746. this.answerList.push({
  14747. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14748. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14749. });
  14750. let params = [
  14751. {
  14752. uid: this.sStudent.userid,
  14753. cid: this.id,
  14754. stage: this.courseType,
  14755. task: this.taskCount,
  14756. tool: this.toolindex,
  14757. content: JSON.stringify(this.answerList),
  14758. type: 3,
  14759. ateacher: this.userid,
  14760. },
  14761. ];
  14762. this.ajax
  14763. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14764. .then((res) => {
  14765. this.$message({
  14766. message: "提交成功",
  14767. type: "success",
  14768. });
  14769. this.answerList = [];
  14770. this.questionAnswer = "";
  14771. this.answerDialogVisibleTeacher = false;
  14772. this.selectStudent();
  14773. this.selectSWorks();
  14774. this.selectSLook();
  14775. })
  14776. .catch((err) => {
  14777. this.$message.error("提交失败");
  14778. console.error(err);
  14779. });
  14780. },
  14781. refreshCourse() {
  14782. this.navList = [];
  14783. this.getCourseDetail(1);
  14784. },
  14785. setPz() {
  14786. if (this.ispzType == 4) {
  14787. this.ispzType = 0;
  14788. this.pzDialog = false;
  14789. return;
  14790. }
  14791. this.ispzType = 4;
  14792. this.pzDialog = true;
  14793. this.selectPz();
  14794. },
  14795. getCourseDetail(type, gindex) {
  14796. let loading;
  14797. if (type != 2) {
  14798. loading = this.$loading.service({
  14799. background: "rgba(255, 255, 255, 0.7)",
  14800. target: document.querySelector(".student_table"),
  14801. });
  14802. }
  14803. let params = {
  14804. courseId: this.id,
  14805. };
  14806. this.ajax
  14807. .get(this.$store.state.api + "selectCourseDetail3", params)
  14808. .then((res) => {
  14809. if (type != 2) {
  14810. loading.close();
  14811. if (
  14812. this.courseType >
  14813. JSON.parse(res.data[0][0].chapters).length - 1
  14814. ) {
  14815. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14816. }
  14817. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14818. .chapterInfo[0].taskJson;
  14819. var b = [
  14820. "AVI",
  14821. "NAVI",
  14822. "MPEG",
  14823. "ASF",
  14824. "MOV",
  14825. "WMV",
  14826. "3GP",
  14827. "RM",
  14828. "RMVB",
  14829. "FLV",
  14830. "F4V",
  14831. "H.264",
  14832. "H.265",
  14833. "REAL VIDEO",
  14834. "MKV",
  14835. "WebM",
  14836. "HDDVD",
  14837. "MP4",
  14838. "MPG",
  14839. "M4V",
  14840. "MGV",
  14841. "OGV",
  14842. "QTM",
  14843. "STR",
  14844. "AMC",
  14845. "DVX",
  14846. "EVO",
  14847. "DAT",
  14848. "OGG",
  14849. "OGM",
  14850. "MP3",
  14851. ];
  14852. let _chapterData = [];
  14853. for (var i = 0; i < a.length; i++) {
  14854. var c = a[i].chapterData;
  14855. this.vedio[i] = [];
  14856. this.textList[i] = [];
  14857. this.lineList[i] = [];
  14858. this.chapToolList[i] = [];
  14859. this.file[i] = [];
  14860. this.fileC[i] = [];
  14861. _chapterData[i] = c.filter((el) => {
  14862. return el.type != 12;
  14863. });
  14864. this.fileC[i] = c.filter((el) => {
  14865. return el.type == 12;
  14866. });
  14867. for (var j = 0; j < c.length; j++) {
  14868. if (c[j].type == 7) {
  14869. this.chapToolList[i].push(c[j]);
  14870. } else if (c[j].type == 8) {
  14871. this.lineList[i].push(c[j]);
  14872. } else if (c[j].type == 6) {
  14873. this.textList[i].push(c[j]);
  14874. } else {
  14875. if (
  14876. b.indexOf(
  14877. c[j].url
  14878. .split(".")
  14879. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14880. ) != -1
  14881. ) {
  14882. this.vedio[i].push(c[j]);
  14883. } else {
  14884. this.file[i].push(c[j]);
  14885. }
  14886. }
  14887. }
  14888. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14889. d.sources[0].src =
  14890. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14891. this.playerO[i] = d;
  14892. }
  14893. this.courseDetail = res.data[0][0];
  14894. this.tcid = this.arrayToArray(
  14895. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14896. this.tcid2 ? this.tcid2.split(",") : []
  14897. ).join(",");
  14898. console.log(this.tcid);
  14899. this.evalua = res.data[0][0].evaId;
  14900. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  14901. this.courseType
  14902. ];
  14903. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14904. if (this.tcid && res.data[1].length) {
  14905. let _inviteA = [];
  14906. for (var ik = 0; ik < res.data[1].length; ik++) {
  14907. _inviteA.push({
  14908. cid: res.data[1][ik].classid,
  14909. ic: res.data[1][ik].code,
  14910. });
  14911. }
  14912. for (var ik = 0; ik < _inviteA.length; ik++) {
  14913. if (
  14914. this.arrayToArray(
  14915. _inviteA[ik].cid.split(","),
  14916. this.tcid.split(",")
  14917. ).length
  14918. ) {
  14919. this.inviteCode = _inviteA[ik].ic;
  14920. break;
  14921. }
  14922. }
  14923. }
  14924. for (var l = 0; l < this.chapInfoList.length; l++) {
  14925. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14926. for (var m = 0; m < w.length; m++) {
  14927. w[m].id = l + "-" + m;
  14928. }
  14929. }
  14930. let taskCount = 0;
  14931. if (
  14932. _chapterData[taskCount].length &&
  14933. _chapterData[taskCount][0].type == 2
  14934. ) {
  14935. this.showType = 0;
  14936. } else {
  14937. if (_chapterData[taskCount].length > 0) {
  14938. let _url = _chapterData[taskCount][0].url;
  14939. if (_chapterData[taskCount][0].type == 8) {
  14940. this.showType = 2;
  14941. if (
  14942. _url.indexOf("https://") == -1 &&
  14943. _url.indexOf("http://") == -1
  14944. ) {
  14945. _url = "https://" + _url;
  14946. }
  14947. this.pptImgUrl1 = _url;
  14948. } else if (_chapterData[taskCount][0].type == 3) {
  14949. if (
  14950. _url
  14951. .split(".")
  14952. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14953. ) {
  14954. this.showType = 3;
  14955. this.pptImgUrl1 = _url;
  14956. } else if (
  14957. this.isAssetTypeAnImage(
  14958. _url
  14959. .split(".")
  14960. [_url.split(".").length - 1].toLocaleLowerCase()
  14961. )
  14962. ) {
  14963. this.showType = 4;
  14964. this.pptImgUrl1 = _url;
  14965. } else {
  14966. this.showType = 2;
  14967. this.pptImgUrl1 =
  14968. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14969. _url;
  14970. }
  14971. } else if (_chapterData[this.taskCount][0].type == 13) {
  14972. this.showType = 4;
  14973. this.pptImgUrl1 = _url;
  14974. } else if (_chapterData[taskCount][0].type == 6) {
  14975. this.showType = 1;
  14976. this.text = this.textList[taskCount][0];
  14977. }
  14978. }
  14979. }
  14980. this.isClickNav = 0;
  14981. if (
  14982. !_chapterData[taskCount].length ||
  14983. _chapterData[taskCount][0].type == 12
  14984. ) {
  14985. this.isClickNav = "";
  14986. this.showType = "";
  14987. }
  14988. this.vChapterData = _chapterData;
  14989. if (
  14990. this.toolIndex == null &&
  14991. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14992. this.taskCount
  14993. ].toolChoose.length
  14994. ) {
  14995. this.toolIndex = 0;
  14996. this.tool =
  14997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14998. this.taskCount
  14999. ].toolChoose[this.toolIndex];
  15000. }
  15001. } else {
  15002. if (
  15003. this.toolIndex == null &&
  15004. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15005. this.taskCount
  15006. ].toolChoose.length
  15007. ) {
  15008. this.toolIndex = 0;
  15009. this.tool =
  15010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15011. this.taskCount
  15012. ].toolChoose[this.toolIndex];
  15013. }
  15014. }
  15015. this.isUpdateToolDetail = false;
  15016. this.$nextTick(() => {
  15017. setTimeout(() => {
  15018. this.checkEva();
  15019. }, 1000);
  15020. });
  15021. let _this = this;
  15022. if (_this.timer) {
  15023. clearInterval(_this.timer);
  15024. _this.timer = null;
  15025. }
  15026. _this.selectSWorks(gindex);
  15027. _this.selectStudent();
  15028. _this.selectSLook();
  15029. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15030. _this.setCTask();
  15031. }
  15032. if (_this.dialogVisibleGroup) {
  15033. _this.groupJson =
  15034. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15035. _this.taskCount
  15036. ].toolChoose[_this.toolindex].groupJson;
  15037. }
  15038. _this.timer = setInterval(function () {
  15039. if (_this.tcid) {
  15040. _this.getCourseGroup(gindex);
  15041. } else {
  15042. _this.selectSWorks(gindex);
  15043. }
  15044. _this.selectStudent();
  15045. _this.selectSLook();
  15046. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15047. _this.setCTask();
  15048. }
  15049. if (_this.dialogVisibleGroup) {
  15050. _this.groupJson =
  15051. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15052. _this.taskCount
  15053. ].toolChoose[_this.toolindex].groupJson;
  15054. }
  15055. if (_this.tType == 4 || _this.ispzType == 4) {
  15056. _this.selectPz();
  15057. }
  15058. }, 5000);
  15059. })
  15060. .catch((err) => {
  15061. loading.close();
  15062. console.error(err);
  15063. });
  15064. },
  15065. getCourseGroup(gindex) {
  15066. let params = {
  15067. cid: this.id,
  15068. classid: this.tcid ? this.tcid : "1",
  15069. };
  15070. this.ajax
  15071. .get(this.$store.state.api + "getCourseGroup", params)
  15072. .then((res) => {
  15073. if (res.data && res.data[0].length) {
  15074. if (!this.isGroup) {
  15075. let courseGroup = JSON.parse(res.data[0][0].group);
  15076. courseGroup.group = courseGroup.group.filter((el) => {
  15077. el.works = [];
  15078. return el;
  15079. });
  15080. this.courseGroup = courseGroup;
  15081. let groupPerson = res.data[1];
  15082. let group = JSON.parse(res.data[0][0].group).group;
  15083. let courseGroupStudent = {};
  15084. let courseGroupStudentUid = {};
  15085. for (var i = 0; i < group.length; i++) {
  15086. courseGroupStudent[group[i].id] = [];
  15087. courseGroupStudentUid[group[i].id] = [];
  15088. for (var j = 0; j < groupPerson.length; j++) {
  15089. if (groupPerson[j].groupCid == group[i].id) {
  15090. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15091. courseGroupStudentUid[group[i].id].push(
  15092. groupPerson[j].userid
  15093. );
  15094. }
  15095. }
  15096. }
  15097. this.courseGroupStudent = courseGroupStudent;
  15098. this.courseGroupStudentUid = courseGroupStudentUid;
  15099. }
  15100. this.isGroup = true;
  15101. this.selectSWorks(gindex);
  15102. } else {
  15103. this.selectSWorks(gindex);
  15104. this.isGroup = false;
  15105. }
  15106. })
  15107. .catch((err) => {
  15108. // this.$message.error("网络不佳");
  15109. console.error(err);
  15110. });
  15111. },
  15112. setOperationTime() {
  15113. let _this = this;
  15114. if (_this.opertimer) {
  15115. clearInterval(_this.opertimer);
  15116. _this.opertimer = null;
  15117. }
  15118. _this.opertimer = setInterval(() => {
  15119. _this.setoTime("600");
  15120. }, 600000);
  15121. },
  15122. setoTime(time) {
  15123. let params = [
  15124. {
  15125. uid: this.userid,
  15126. cid: this.id,
  15127. type: "2",
  15128. time: time,
  15129. },
  15130. ];
  15131. this.ajax
  15132. .post(this.$store.state.api + "addOperationTimeT2", params)
  15133. .then((res) => {})
  15134. .catch((err) => {
  15135. console.error(err);
  15136. });
  15137. },
  15138. addPz(type, content) {
  15139. if (type == "1" && this.pzConText == "") {
  15140. this.$message.error("批注不能为空!");
  15141. return;
  15142. }
  15143. let params = [
  15144. {
  15145. cid: this.id,
  15146. uid: this.userid,
  15147. s: this.courseType,
  15148. t: this.taskCount,
  15149. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15150. type: type,
  15151. },
  15152. ];
  15153. this.ajax
  15154. .post(this.$store.state.api + "addPz2", params)
  15155. .then((res) => {
  15156. this.$message({
  15157. message: "添加成功",
  15158. type: "success",
  15159. });
  15160. this.pzConText = "";
  15161. this.addPzDialog = false;
  15162. this.selectPz();
  15163. })
  15164. .catch((err) => {
  15165. this.$message.error("添加失败");
  15166. console.error(err);
  15167. });
  15168. },
  15169. deletePz(id) {
  15170. this.$confirm("确定删除此批注吗?", "提示", {
  15171. confirmButtonText: "确定",
  15172. cancelButtonText: "取消",
  15173. type: "warning",
  15174. })
  15175. .then(() => {
  15176. let params = [
  15177. {
  15178. id: id,
  15179. },
  15180. ];
  15181. this.ajax
  15182. .post(this.$store.state.api + "deletePz", params)
  15183. .then((res) => {
  15184. this.$message({
  15185. message: "删除成功",
  15186. type: "success",
  15187. });
  15188. this.selectPz();
  15189. })
  15190. .catch((err) => {
  15191. this.$message.error("网络异常");
  15192. console.error(err);
  15193. });
  15194. })
  15195. .catch(() => {});
  15196. },
  15197. selectPz() {
  15198. let params = {
  15199. cid: this.id,
  15200. s: this.courseType,
  15201. t: this.taskCount,
  15202. };
  15203. this.ajax
  15204. .get(this.$store.state.api + "selectPzList", params)
  15205. .then((res) => {
  15206. this.pzList = res.data[0];
  15207. })
  15208. .catch((err) => {
  15209. console.error(err);
  15210. });
  15211. },
  15212. updateSLook() {
  15213. let params = {
  15214. sopen: this.sIsOpen == false ? 1 : 2,
  15215. cid: this.id,
  15216. };
  15217. this.ajax
  15218. .get(this.$store.state.api + "updateCourseSLook", params)
  15219. .then((res) => {
  15220. if (this.sIsOpen == true) {
  15221. this.$message({
  15222. message: "权限设置成功",
  15223. type: "success",
  15224. });
  15225. } else {
  15226. this.$message({
  15227. message: "权限关闭成功",
  15228. type: "success",
  15229. });
  15230. }
  15231. })
  15232. .catch((err) => {
  15233. console.error(err);
  15234. });
  15235. },
  15236. updateFollow() {
  15237. let params = [
  15238. {
  15239. sopen: this.IsFollow == false ? 1 : 2,
  15240. cid: this.id,
  15241. },
  15242. ];
  15243. this.ajax
  15244. .post(this.$store.state.api + "updateCourseFollow", params)
  15245. .then((res) => {
  15246. if (this.IsFollow == true) {
  15247. this.$message({
  15248. message: "开启成功",
  15249. type: "success",
  15250. });
  15251. } else {
  15252. this.$message({
  15253. message: "关闭成功",
  15254. type: "success",
  15255. });
  15256. }
  15257. this.setCTask();
  15258. })
  15259. .catch((err) => {
  15260. console.error(err);
  15261. });
  15262. },
  15263. setCTask() {
  15264. let params = [
  15265. {
  15266. sopen: this.courseType + "-" + this.taskCount,
  15267. cid: this.id,
  15268. },
  15269. ];
  15270. this.ajax
  15271. .post(this.$store.state.api + "updateCourseFollowC", params)
  15272. .then((res) => {})
  15273. .catch((err) => {
  15274. console.error(err);
  15275. });
  15276. },
  15277. updateLookOpen() {
  15278. let params = [
  15279. {
  15280. sopen: this.IsLookOpen == false ? 1 : 2,
  15281. cid: this.id,
  15282. },
  15283. ];
  15284. this.ajax
  15285. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15286. .then((res) => {
  15287. if (this.IsLookOpen == true) {
  15288. // if (this.courseType != 0 && this.taskCount != 0) {
  15289. // this.openTask(0, 0, "0-0");
  15290. // }
  15291. this.$message({
  15292. message: "权限设置成功",
  15293. type: "success",
  15294. });
  15295. } else {
  15296. this.$message({
  15297. message: "权限关闭成功",
  15298. type: "success",
  15299. });
  15300. }
  15301. this.getCourseState(2);
  15302. })
  15303. .catch((err) => {
  15304. console.error(err);
  15305. });
  15306. },
  15307. selectSLook() {
  15308. let params = {
  15309. cid: this.id,
  15310. };
  15311. this.ajax
  15312. .get(this.$store.state.api + "selectCourseSLook", params)
  15313. .then((res) => {
  15314. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15315. this.sIsOpen = true;
  15316. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15317. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15318. if (!this.IsLookOpen) {
  15319. this.setNavList();
  15320. } else {
  15321. this.getCourseState(1);
  15322. }
  15323. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15324. let _followC = res.data[0][0].followC.split("-");
  15325. if (
  15326. this.courseType != _followC[0] ||
  15327. this.taskCount != _followC[1]
  15328. ) {
  15329. this.navList[this.courseType].isOpen = false;
  15330. this.courseType = _followC[0];
  15331. this.navList[this.courseType].isOpen = true;
  15332. this.taskCount = parseInt(_followC[1]);
  15333. this.navId = res.data[0][0].followC;
  15334. this.getCourseDetail();
  15335. }
  15336. }
  15337. })
  15338. .catch((err) => {
  15339. console.error(err);
  15340. });
  15341. },
  15342. setNavList() {
  15343. if (this.navList.length == 0) {
  15344. this.navList = [];
  15345. for (var l = 0; l < this.chapInfoList.length; l++) {
  15346. var q = this.chapInfoList[l].dyName;
  15347. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15348. var e;
  15349. this.navList.push({
  15350. dyName: q,
  15351. isOpen: l === 0 ? true : false,
  15352. task: [],
  15353. });
  15354. for (var r = 0; r < w.length; r++) {
  15355. e = w[r].task;
  15356. if (this.chapInfoList[l].easy == 1) {
  15357. this.navList[l].task.push({
  15358. taskName: q,
  15359. id: l + "-" + r,
  15360. isLook: w[r].isLook,
  15361. });
  15362. } else {
  15363. this.navList[l].task.push({
  15364. taskName: e,
  15365. id: l + "-" + r,
  15366. isLook: w[r].isLook,
  15367. });
  15368. }
  15369. // this.navId = this.navId ? this.navId : l + "-" + r;
  15370. // this.navId = l + "-" + r;
  15371. }
  15372. }
  15373. this.navList[0].isOpen = false;
  15374. this.navList[this.courseType].isOpen = true;
  15375. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15376. } else {
  15377. this.setNavList2();
  15378. }
  15379. },
  15380. setNavList2() {
  15381. for (var l = 0; l < this.chapInfoList.length; l++) {
  15382. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15383. for (var r = 0; r < w.length; r++) {
  15384. this.navList[l].task[r].isLook = w[r].isLook;
  15385. }
  15386. }
  15387. if (
  15388. this.IsLookOpen &&
  15389. !this.navList[this.courseType].task[this.taskCount].isLook
  15390. ) {
  15391. this.openTask(0, 0, "0-0");
  15392. }
  15393. this.$forceUpdate();
  15394. },
  15395. getCourseState(type) {
  15396. let params = {
  15397. cid: this.id,
  15398. };
  15399. this.ajax
  15400. .get(this.$store.state.api + "getCourseState", params)
  15401. .then((res) => {
  15402. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15403. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15404. this.setNavList();
  15405. this.$forceUpdate();
  15406. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15407. this.addCourseState(2);
  15408. } else {
  15409. this.addCourseState(1);
  15410. }
  15411. })
  15412. .catch((err) => {
  15413. console.error(err);
  15414. });
  15415. },
  15416. addCourseState(type) {
  15417. let _state = this.chapInfoList;
  15418. // this.courseType this.taskCount
  15419. if (type == 1 || type == 2) {
  15420. for (var i = 0; i < _state.length; i++) {
  15421. let el = _state[i].chapterInfo[0].taskJson;
  15422. for (var j = 0; j < el.length; j++) {
  15423. // if (i == 0 && j == 0) {
  15424. // el[j].isLook = true;
  15425. // } else {
  15426. // el[j].isLook = false;
  15427. // }
  15428. if (
  15429. this.courseType > i ||
  15430. (this.courseType == i && this.taskCount + 1 > j)
  15431. ) {
  15432. el[j].isLook = true;
  15433. } else {
  15434. el[j].isLook = false;
  15435. }
  15436. }
  15437. }
  15438. }
  15439. let params = [
  15440. {
  15441. cid: this.id,
  15442. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15443. },
  15444. ];
  15445. this.ajax
  15446. .post(
  15447. this.$store.state.api +
  15448. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15449. params
  15450. )
  15451. .then((res) => {
  15452. if (this.IsLookOpen) {
  15453. this.setNavList();
  15454. }
  15455. if (type == 3 && type == 2) {
  15456. this.getCourseState(1);
  15457. }
  15458. })
  15459. .catch((err) => {
  15460. console.error(err);
  15461. });
  15462. },
  15463. getHomeWork() {
  15464. let params = {
  15465. cid: this.id,
  15466. stage: this.courseType,
  15467. task: this.taskCount,
  15468. uid: this.userid,
  15469. };
  15470. this.ajax
  15471. .get(this.$store.state.api + "selectWork", params)
  15472. .then((res) => {
  15473. if (res.data[0].length > 0) {
  15474. this.studyJuri = JSON.parse(res.data[0][0].content);
  15475. this.isNoHomeWork = true;
  15476. }
  15477. })
  15478. .catch((err) => {
  15479. console.error(err);
  15480. });
  15481. },
  15482. isAssetTypeAnImage(ext) {
  15483. return (
  15484. [
  15485. "png",
  15486. "jpg",
  15487. "jpeg",
  15488. "bmp",
  15489. "gif",
  15490. "webp",
  15491. "psd",
  15492. "svg",
  15493. "tiff",
  15494. ].indexOf(ext) !== -1
  15495. );
  15496. },
  15497. switchVideo(media) {
  15498. this.playerO = {};
  15499. this.playerOptions.poster = "";
  15500. this.playerOptions.sources[0].src = media;
  15501. this.playerO = this.playerOptions;
  15502. },
  15503. onPlayerPlay() {},
  15504. lookVedio(u, i) {
  15505. this.isClickNav = "";
  15506. // this.playerOptions.sources[0].src = u;
  15507. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15508. d.sources[0].src = u;
  15509. this.playerO[0] = d;
  15510. this.showType = 0;
  15511. // this.isClickNav = "video" + i;
  15512. this.isClickNav = i;
  15513. this.$forceUpdate();
  15514. },
  15515. lookText(i, t) {
  15516. this.isClickNav = "";
  15517. // this.text = this.textList[i][t];
  15518. this.text = this.vChapterData[i][t];
  15519. // this.dialogVisible1 = true;
  15520. this.showType = 1;
  15521. // this.isClickNav = "text" + t;
  15522. this.isClickNav = t;
  15523. },
  15524. lookTools(i, t) {
  15525. this.chapTools = this.chapToolList[i][t];
  15526. this.dialogVisible2 = true;
  15527. },
  15528. openFile(f) {
  15529. this.pptImgUrl = "";
  15530. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15531. if (
  15532. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15533. -1
  15534. ) {
  15535. this.pptImgUrl =
  15536. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15537. this.showPDF = false;
  15538. this.dialogVisible3 = true;
  15539. } else if (
  15540. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15541. ) {
  15542. this.pptImgUrl = f;
  15543. this.showPDF = true;
  15544. this.dialogVisible3 = true;
  15545. }
  15546. },
  15547. openTable(f) {
  15548. this.tableJson = JSON.parse(f.works);
  15549. this.$forceUpdate();
  15550. this.dialogVisibleTable2 = true;
  15551. },
  15552. openWord(f) {
  15553. this.tableJson = JSON.parse(f.works);
  15554. this.$forceUpdate();
  15555. this.dialogVisibleTable3 = true;
  15556. },
  15557. doUrl(url, i) {
  15558. this.isClickNav = "";
  15559. this.pptImgUrl1 = "";
  15560. this.showType = 2;
  15561. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15562. url = "https://" + url;
  15563. }
  15564. this.pptImgUrl1 = url;
  15565. // this.isClickNav = "line" + i;
  15566. this.isClickNav = i;
  15567. },
  15568. checkPhoto(f, i) {
  15569. this.showType = 4;
  15570. this.pptImgUrl1 = f.url;
  15571. this.isClickNav = i;
  15572. this.$forceUpdate();
  15573. },
  15574. downFile(f, i) {
  15575. this.isClickNav = "";
  15576. this.pptImgUrl1 = "";
  15577. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15578. if (
  15579. a.indexOf(
  15580. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15581. ) != -1
  15582. ) {
  15583. this.pptImgUrl1 =
  15584. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15585. // this.dialogVisible3 = true;
  15586. this.showType = 2;
  15587. } else if (
  15588. this.isAssetTypeAnImage(
  15589. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15590. )
  15591. ) {
  15592. this.showType = 4;
  15593. this.pptImgUrl1 = f.url;
  15594. } else if (
  15595. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15596. "PDF"
  15597. ) {
  15598. this.pptImgUrl1 = f.url;
  15599. // this.dialogVisible3 = true;
  15600. this.showType = 3;
  15601. } else {
  15602. window.open(this.file[i].url);
  15603. }
  15604. this.isClickNav = i;
  15605. // this.isClickNav = "word" + i;
  15606. },
  15607. downFileList(i) {
  15608. window.open(this.noImgList[i].url);
  15609. },
  15610. openAddWork() {
  15611. this.dialogVisible = true;
  15612. },
  15613. addBzWorks() {
  15614. let params = [
  15615. {
  15616. uid: this.userid,
  15617. cid: this.id,
  15618. stage: this.courseType,
  15619. task: this.taskCount,
  15620. tool: this.toolindex,
  15621. content: JSON.stringify(this.eScore),
  15622. type: 6,
  15623. },
  15624. ];
  15625. this.ajax
  15626. .post(this.$store.state.api + "addCourseWorks", params)
  15627. .then((res) => {
  15628. this.$message({
  15629. message: "提交成功",
  15630. type: "success",
  15631. });
  15632. this.eScore = { eBzText: "", eStar: [] };
  15633. this.studentEvalDialogVisible = false;
  15634. this.selectSWorks();
  15635. })
  15636. .catch((err) => {
  15637. this.$message.error("提交失败");
  15638. console.error(err);
  15639. });
  15640. },
  15641. addBzWorksTeacher() {
  15642. let params = [
  15643. {
  15644. uid: this.sStudent.userid,
  15645. cid: this.id,
  15646. stage: this.courseType,
  15647. task: this.taskCount,
  15648. tool: this.toolindex,
  15649. content: JSON.stringify(this.eScore),
  15650. type: 6,
  15651. },
  15652. ];
  15653. this.ajax
  15654. .post(this.$store.state.api + "addCourseWorks", params)
  15655. .then((res) => {
  15656. this.$message({
  15657. message: "提交成功",
  15658. type: "success",
  15659. });
  15660. this.eScore = { eBzText: "", eStar: [] };
  15661. this.studentEvalDialogVisibleTeacher = false;
  15662. this.selectSWorks();
  15663. })
  15664. .catch((err) => {
  15665. this.$message.error("提交失败");
  15666. console.error(err);
  15667. });
  15668. },
  15669. addStudentAsk() {
  15670. if (!this.radio.length) {
  15671. this.$message.error("请选择选项");
  15672. return;
  15673. }
  15674. for (var i = 0; i < this.askJson.askCount; i++) {
  15675. if (
  15676. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15677. (this.radio[i] !== 0 && !this.radio[i])
  15678. ) {
  15679. this.$message.error("请选择选项");
  15680. return;
  15681. }
  15682. }
  15683. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15684. let params = [
  15685. {
  15686. uid: this.userid,
  15687. cid: this.id,
  15688. stage: this.courseType,
  15689. task: this.taskCount,
  15690. tool: this.toolindex,
  15691. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15692. type: 2,
  15693. },
  15694. ];
  15695. this.ajax
  15696. .post(this.$store.state.api + "addCourseWorks", params)
  15697. .then((res) => {
  15698. this.$message({
  15699. message: "提交成功",
  15700. type: "success",
  15701. });
  15702. this.askList = [];
  15703. this.dialogVisible5 = false;
  15704. this.selectStudent();
  15705. this.selectSWorks();
  15706. this.selectSLook();
  15707. })
  15708. .catch((err) => {
  15709. this.$message.error("提交失败");
  15710. console.error(err);
  15711. });
  15712. },
  15713. addStudentAskTeacher() {
  15714. if (!this.radio.length) {
  15715. this.$message.error("请选择选项");
  15716. return;
  15717. }
  15718. for (var i = 0; i < this.askJson.askCount; i++) {
  15719. if (
  15720. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15721. (this.radio[i] !== 0 && !this.radio[i])
  15722. ) {
  15723. this.$message.error("请选择选项");
  15724. return;
  15725. }
  15726. }
  15727. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15728. let params = [
  15729. {
  15730. uid: this.sStudent.userid,
  15731. cid: this.id,
  15732. stage: this.courseType,
  15733. task: this.taskCount,
  15734. tool: this.toolindex,
  15735. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15736. type: 2,
  15737. },
  15738. ];
  15739. this.ajax
  15740. .post(this.$store.state.api + "addCourseWorks", params)
  15741. .then((res) => {
  15742. this.$message({
  15743. message: "提交成功",
  15744. type: "success",
  15745. });
  15746. this.askList = [];
  15747. this.dialogVisible5Teacher = false;
  15748. this.selectStudent();
  15749. this.selectSWorks();
  15750. this.selectSLook();
  15751. })
  15752. .catch((err) => {
  15753. this.$message.error("提交失败");
  15754. console.error(err);
  15755. });
  15756. },
  15757. addStudentTest() {
  15758. if (!this.radio.length) {
  15759. this.$message.error("请选择选项");
  15760. return;
  15761. }
  15762. for (var i = 0; i < this.testJson.testCount; i++) {
  15763. if (
  15764. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15765. (this.radio[i] !== 0 && !this.radio[i])
  15766. ) {
  15767. this.$message.error("请选择选项");
  15768. return;
  15769. }
  15770. }
  15771. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15772. let params = [
  15773. {
  15774. uid: this.userid,
  15775. cid: this.id,
  15776. stage: this.courseType,
  15777. task: this.taskCount,
  15778. tool: this.toolindex,
  15779. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15780. type: 8,
  15781. },
  15782. ];
  15783. this.ajax
  15784. .post(this.$store.state.api + "addCourseWorks", params)
  15785. .then((res) => {
  15786. this.$message({
  15787. message: "提交成功",
  15788. type: "success",
  15789. });
  15790. this.askList = [];
  15791. this.dialogVisibleChoice = false;
  15792. this.selectStudent();
  15793. this.selectSWorks();
  15794. this.selectSLook();
  15795. })
  15796. .catch((err) => {
  15797. this.$message.error("提交失败");
  15798. console.error(err);
  15799. });
  15800. },
  15801. addStudentTestTeacher() {
  15802. if (!this.radio.length) {
  15803. this.$message.error("请选择选项");
  15804. return;
  15805. }
  15806. for (var i = 0; i < this.testJson.testCount; i++) {
  15807. if (
  15808. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15809. (this.radio[i] !== 0 && !this.radio[i])
  15810. ) {
  15811. this.$message.error("请选择选项");
  15812. return;
  15813. }
  15814. }
  15815. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15816. let params = [
  15817. {
  15818. uid: this.sStudent.userid,
  15819. cid: this.id,
  15820. stage: this.courseType,
  15821. task: this.taskCount,
  15822. tool: this.toolindex,
  15823. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15824. type: 8,
  15825. },
  15826. ];
  15827. this.ajax
  15828. .post(this.$store.state.api + "addCourseWorks", params)
  15829. .then((res) => {
  15830. this.$message({
  15831. message: "提交成功",
  15832. type: "success",
  15833. });
  15834. this.askList = [];
  15835. this.dialogVisibleChoiceTeacher = false;
  15836. this.selectStudent();
  15837. this.selectSWorks();
  15838. this.selectSLook();
  15839. })
  15840. .catch((err) => {
  15841. this.$message.error("提交失败");
  15842. console.error(err);
  15843. });
  15844. },
  15845. addWork() {
  15846. if (this.studyJuri[0].content == "") {
  15847. this.$message.error("请将信息填写完整");
  15848. return;
  15849. } else if (this.studyJuri[0].cover.length == 0) {
  15850. this.$message.error("请将信息填写完整");
  15851. return;
  15852. } else if (this.studyJuri[0].upVedio.length == 0) {
  15853. this.$message.error("请将信息填写完整");
  15854. return;
  15855. }
  15856. if (this.isNoHomeWork) {
  15857. this.$confirm(
  15858. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15859. "提示",
  15860. {
  15861. confirmButtonText: "确定",
  15862. cancelButtonText: "取消",
  15863. type: "warning",
  15864. }
  15865. )
  15866. .then(() => {
  15867. let params = [
  15868. {
  15869. uid: this.userid,
  15870. cid: this.id,
  15871. stage: this.courseType,
  15872. task: this.taskCount,
  15873. content: JSON.stringify(this.studyJuri),
  15874. },
  15875. ];
  15876. this.ajax
  15877. .post(this.$store.state.api + "addWorks", params)
  15878. .then((res) => {
  15879. this.$message({
  15880. message: "提交成功",
  15881. type: "success",
  15882. });
  15883. this.isNoHomeWork = true;
  15884. this.dialogVisible = false;
  15885. })
  15886. .catch((err) => {
  15887. this.$message.error("提交失败");
  15888. console.error(err);
  15889. });
  15890. })
  15891. .catch(() => {});
  15892. } else {
  15893. let params = [
  15894. {
  15895. uid: this.userid,
  15896. cid: this.id,
  15897. stage: this.courseType,
  15898. task: this.taskCount,
  15899. content: JSON.stringify(this.studyJuri),
  15900. },
  15901. ];
  15902. this.ajax
  15903. .post(this.$store.state.api + "addWorks", params)
  15904. .then((res) => {
  15905. this.$message({
  15906. message: "提交成功",
  15907. type: "success",
  15908. });
  15909. this.isNoHomeWork = true;
  15910. this.dialogVisible = false;
  15911. })
  15912. .catch((err) => {
  15913. this.$message.error("提交失败");
  15914. console.error(err);
  15915. });
  15916. }
  15917. },
  15918. selectCount() {
  15919. let params = {
  15920. cid: this.id,
  15921. chid: this.courseType,
  15922. uid: this.userid,
  15923. };
  15924. this.ajax
  15925. .get(this.$store.state.api + "selectToolsCount", params)
  15926. .then((res) => {
  15927. for (var i = 0; i < res.data[0].length; i++) {
  15928. if (res.data[0][i].tools == 1) {
  15929. this.wbCount = res.data[0][i].count;
  15930. } else if (res.data[0][i].tools == 2) {
  15931. this.wordCount = res.data[0][i].count;
  15932. } else if (res.data[0][i].tools == 3) {
  15933. this.mindCount = res.data[0][i].count;
  15934. } else if (res.data[0][i].tools == 4) {
  15935. this.askCount = res.data[0][i].count;
  15936. } else if (res.data[0][i].tools == 6) {
  15937. this.noteCount = res.data[0][i].count;
  15938. } else if (res.data[0][i].tools == 7) {
  15939. this.mindNetWorkCount = res.data[0][i].count;
  15940. } else if (res.data[0][i].tools == 8) {
  15941. this.libraryCount = res.data[0][i].count;
  15942. } else if (res.data[0][i].tools == 16) {
  15943. this.workCount = res.data[0][i].count;
  15944. } else if (res.data[0][i].tools == 10) {
  15945. this.timeCount = res.data[0][i].count;
  15946. } else if (res.data[0][i].tools == 15) {
  15947. this.answerCount = res.data[0][i].count;
  15948. } else if (res.data[0][i].tools == 18) {
  15949. this.trainCount = res.data[0][i].count;
  15950. }
  15951. }
  15952. })
  15953. .catch((err) => {
  15954. console.error(err);
  15955. });
  15956. },
  15957. openTools(t, i, index, c, sName) {
  15958. var z = JSON.parse(c);
  15959. this.noteName = sName;
  15960. if (t == 4) {
  15961. this.radio = [];
  15962. this.isAnswer = false;
  15963. let b = z[0].anwer;
  15964. this.radio = b;
  15965. this.askJson = z[0].askJson;
  15966. this.isAnswer = true;
  15967. this.dialogVisible5 = true;
  15968. } else if (t == 45) {
  15969. this.radio = [];
  15970. this.isAnswer = false;
  15971. let b = z[0].anwer;
  15972. this.radio = b;
  15973. this.testJson = z[0].testJson;
  15974. this.isAnswer = true;
  15975. this.dialogVisibleChoice = true;
  15976. }
  15977. // else if (t == 15) {
  15978. // this.answerQ = "";
  15979. // this.questionAnswer = "";
  15980. // this.answerQ = z[0].answerTitle;
  15981. // this.questionAnswer = z[0].answer;
  15982. // this.answerDialogVisible = true;
  15983. // }
  15984. },
  15985. fastText(p, t) {
  15986. if (t == 1) {
  15987. this.commentText += p;
  15988. } else {
  15989. this.eScore.eBzText += p;
  15990. }
  15991. },
  15992. addTools(t, i, index) {
  15993. var a = 0;
  15994. // this.taskCount = index;
  15995. this.toolindex = i;
  15996. if (t == 1) {
  15997. if (this.wbCount > 0) {
  15998. this.updateCount(this.wbCount, t);
  15999. } else {
  16000. this.wbCount++;
  16001. a = this.wbCount;
  16002. this.toolsCount(a, t);
  16003. }
  16004. window.parent.postMessage(
  16005. {
  16006. tools: "1",
  16007. cid: this.id,
  16008. stage: this.courseType,
  16009. task: this.taskCount,
  16010. tool: i,
  16011. },
  16012. "*"
  16013. );
  16014. } else if (t == 2) {
  16015. if (this.wordCount > 0) {
  16016. this.updateCount(this.wordCount, t);
  16017. } else {
  16018. this.wordCount++;
  16019. a = this.wordCount;
  16020. this.toolsCount(a, t);
  16021. }
  16022. window.parent.postMessage({ tools: "2" }, "*");
  16023. } else if (t == 3) {
  16024. if (this.mindCount > 0) {
  16025. this.updateCount(this.mindCount, t);
  16026. } else {
  16027. this.mindCount++;
  16028. a = this.mindCount;
  16029. this.toolsCount(a, t);
  16030. }
  16031. window.parent.postMessage(
  16032. {
  16033. tools: "3",
  16034. cid: this.id,
  16035. stage: this.courseType,
  16036. task: this.taskCount,
  16037. tool: i,
  16038. },
  16039. "*"
  16040. );
  16041. } else if (t == 4) {
  16042. this.radio = [];
  16043. this.noteName = "";
  16044. this.isAnswer = false;
  16045. if (this.askCount > 0) {
  16046. this.updateCount(this.askCount, t);
  16047. } else {
  16048. this.askCount++;
  16049. a = this.askCount;
  16050. this.toolsCount(a, t);
  16051. }
  16052. this.askJson.askJson =
  16053. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16054. index
  16055. ].toolChoose[i].askJson;
  16056. this.askJson.askTitle =
  16057. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16058. index
  16059. ].toolChoose[i].askTitle;
  16060. this.askJson.askCount =
  16061. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16062. index
  16063. ].toolChoose[i].askCount;
  16064. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16065. if (this.askJson.askJson[k].type == "2") {
  16066. this.radio.push([]);
  16067. } else {
  16068. this.radio.push("");
  16069. }
  16070. }
  16071. this.dialogVisible5 = true;
  16072. // window.parent.postMessage({ tools: "4" }, "*");
  16073. } else if (t == 45) {
  16074. this.noteName = "";
  16075. this.radio = [];
  16076. this.isAnswer = false;
  16077. if (this.askCount > 0) {
  16078. this.updateCount(this.askCount, t);
  16079. } else {
  16080. this.askCount++;
  16081. a = this.askCount;
  16082. this.toolsCount(a, t);
  16083. }
  16084. this.testJson =
  16085. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16086. index
  16087. ].toolChoose[i].testJson;
  16088. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16089. if (this.testJson.testJson[k].type == "2") {
  16090. this.radio.push([]);
  16091. } else {
  16092. this.radio.push("");
  16093. }
  16094. }
  16095. this.dialogVisibleChoice = true;
  16096. // window.parent.postMessage({ tools: "4" }, "*");
  16097. } else if (t == 5) {
  16098. if (this.scoreCount > 0) {
  16099. this.updateCount(this.scoreCount, t);
  16100. } else {
  16101. this.scoreCount++;
  16102. a = this.scoreCount;
  16103. this.toolsCount(a, t);
  16104. }
  16105. this.dialogVisible4 = true;
  16106. // window.parent.postMessage({ tools: "5" }, "*");
  16107. } else if (t == 6) {
  16108. if (this.noteCount > 0) {
  16109. this.updateCount(this.noteCount, t);
  16110. } else {
  16111. this.noteCount++;
  16112. a = this.noteCount;
  16113. this.toolsCount(a, t);
  16114. }
  16115. window.parent.postMessage(
  16116. {
  16117. tools: "6",
  16118. cid: this.id,
  16119. stage: this.courseType,
  16120. task: this.taskCount,
  16121. tool: i,
  16122. },
  16123. "*"
  16124. );
  16125. } else if (t == 7) {
  16126. if (this.mindNetWorkCount > 0) {
  16127. this.updateCount(this.mindNetWorkCount, t);
  16128. } else {
  16129. this.mindNetWorkCount++;
  16130. a = this.mindNetWorkCount;
  16131. this.toolsCount(a, t);
  16132. }
  16133. window.parent.postMessage(
  16134. {
  16135. tools: "7",
  16136. cid: this.id,
  16137. stage: this.courseType,
  16138. task: this.taskCount,
  16139. tool: i,
  16140. },
  16141. "*"
  16142. );
  16143. } else if (t == 16) {
  16144. if (this.workCount > 0) {
  16145. this.updateCount(this.workCount, t);
  16146. } else {
  16147. this.workCount++;
  16148. a = this.workCount;
  16149. this.toolsCount(a, t);
  16150. }
  16151. this.dialogVisible = true;
  16152. } else if (t == 50) {
  16153. if (this.tType == 2) {
  16154. this.$message.error("不支持学生使用");
  16155. return;
  16156. }
  16157. this.plworkFile = [];
  16158. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16159. if (!this.uploadCid) {
  16160. this.$message.error(
  16161. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16162. );
  16163. return;
  16164. }
  16165. this.selectUploadStudent(2);
  16166. } else if (t == 8) {
  16167. if (this.libraryCount > 0) {
  16168. this.updateCount(this.libraryCount, t);
  16169. } else {
  16170. this.libraryCount++;
  16171. a = this.libraryCount;
  16172. this.toolsCount(a, t);
  16173. }
  16174. window.parent.postMessage({ tools: "8" }, "*");
  16175. } else if (t == 17) {
  16176. if (this.libraryCount > 0) {
  16177. this.updateCount(this.libraryCount, t);
  16178. } else {
  16179. this.libraryCount++;
  16180. a = this.libraryCount;
  16181. this.toolsCount(a, t);
  16182. }
  16183. window.parent.postMessage({ tools: "17" }, "*");
  16184. } else if (t == 18) {
  16185. if (this.trainCount > 0) {
  16186. this.updateCount(this.trainCount, t);
  16187. } else {
  16188. this.trainCount++;
  16189. a = this.trainCount;
  16190. this.toolsCount(a, t);
  16191. }
  16192. window.parent.postMessage({ tools: "18" }, "*");
  16193. } else if (t == 10) {
  16194. if (this.timeCount > 0) {
  16195. this.updateCount(this.timeCount, t);
  16196. } else {
  16197. this.timeCount++;
  16198. a = this.timeCount;
  16199. this.toolsCount(a, t);
  16200. }
  16201. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16202. .taskJson[index].toolChoose[i].preTime
  16203. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16204. .toolChoose[i].preTime
  16205. : "";
  16206. this.timeDialogVisible = true;
  16207. } else if (t == 15) {
  16208. this.answerQ = "";
  16209. this.questionAnswer = "";
  16210. if (this.answerCount > 0) {
  16211. this.updateCount(this.answerCount, t);
  16212. } else {
  16213. this.answerCount++;
  16214. a = this.answerCount;
  16215. this.toolsCount(a, t);
  16216. }
  16217. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16218. .taskJson[index].toolChoose[i].answerQ
  16219. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16220. .toolChoose[i].answerQ
  16221. : "";
  16222. this.answerDialogVisible = true;
  16223. } else if (t == 21) {
  16224. window.parent.postMessage({ tools: "21" }, "*");
  16225. } else if (t == 22) {
  16226. window.parent.postMessage({ tools: "22" }, "*");
  16227. } else if (t == 23) {
  16228. window.parent.postMessage({ tools: "23" }, "*");
  16229. } else if (t == 24) {
  16230. window.parent.postMessage({ tools: "24" }, "*");
  16231. } else if (t == 25) {
  16232. window.parent.postMessage({ tools: "25" }, "*");
  16233. } else if (t == 31) {
  16234. window.parent.postMessage({ tools: "31" }, "*");
  16235. } else if (t == 28) {
  16236. window.parent.postMessage({ tools: "28" }, "*");
  16237. } else if (t == 37) {
  16238. window.parent.postMessage({ tools: "37" }, "*");
  16239. } else if (t == 38) {
  16240. window.parent.postMessage({ tools: "38" }, "*");
  16241. } else if (t == 39) {
  16242. window.parent.postMessage({ tools: "39" }, "*");
  16243. } else if (t == 32) {
  16244. window.parent.postMessage({ tools: "32" }, "*");
  16245. } else if (t == 57) {
  16246. // window.parent.postMessage({ tools: "57" }, "*");
  16247. window.parent.postMessage(
  16248. {
  16249. tools: "57u",
  16250. cid: this.id,
  16251. stage: this.courseType,
  16252. task: this.taskCount,
  16253. tool: i,
  16254. },
  16255. "*"
  16256. );
  16257. } else if (t == 58) {
  16258. window.parent.postMessage({ tools: "58" }, "*");
  16259. } else if (t == 59) {
  16260. window.parent.postMessage({ tools: "59" }, "*");
  16261. } else if (t == 60) {
  16262. window.parent.postMessage({ tools: "60" }, "*");
  16263. } else if (t == 61) {
  16264. window.parent.postMessage({ tools: "61" }, "*");
  16265. } else if (t == 63) {
  16266. window.parent.postMessage({ tools: "63" }, "*");
  16267. } else if (t == 26) {
  16268. window.parent.postMessage(
  16269. {
  16270. tools: "26",
  16271. cid: this.id,
  16272. stage: this.courseType,
  16273. task: this.taskCount,
  16274. tool: i,
  16275. },
  16276. "*"
  16277. );
  16278. } else if (t == 40) {
  16279. if (this.evalCount > 0) {
  16280. this.updateCount(this.evalCount, t);
  16281. } else {
  16282. this.evalCount++;
  16283. a = this.evalCount;
  16284. this.toolsCount(a, t);
  16285. }
  16286. this.eScore = { eBzText: "", eStar: [] };
  16287. if (this.worksStudent[i].length) {
  16288. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16289. if (this.userid == this.worksStudent[i][k].userid) {
  16290. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16291. this.rateJson =
  16292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16293. index
  16294. ].toolChoose[i].rateJson;
  16295. break;
  16296. } else {
  16297. this.rateJson =
  16298. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16299. index
  16300. ].toolChoose[i].rateJson;
  16301. }
  16302. }
  16303. } else {
  16304. this.rateJson =
  16305. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16306. index
  16307. ].toolChoose[i].rateJson;
  16308. }
  16309. this.isStar = false;
  16310. this.studentEvalDialogVisible = true;
  16311. } else if (t == 41) {
  16312. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16313. .taskJson[index].toolChoose[i].selectJson
  16314. ? JSON.parse(
  16315. JSON.stringify(
  16316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16317. index
  16318. ].toolChoose[i].selectJson
  16319. )
  16320. )
  16321. : { url: "", select: [], answer: [] };
  16322. if (this.worksStudent[i].length) {
  16323. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16324. if (this.userid == this.worksStudent[i][k].userid) {
  16325. var a = this.worksStudent[i][k].works.split(",");
  16326. for (var ki = 0; ki < a.length; ki++) {
  16327. a[ki] = parseInt(a[ki]);
  16328. }
  16329. this.selectAnswer = {
  16330. answer: a,
  16331. stu: this.worksStudent[i][k].sName,
  16332. };
  16333. break;
  16334. } else {
  16335. this.selectAnswer = { answer: [], stu: "" };
  16336. }
  16337. }
  16338. } else {
  16339. this.selectAnswer = { answer: [], stu: "" };
  16340. }
  16341. this.isSelect = false;
  16342. this.dialogVisibleSelect = true;
  16343. } else if (t == 44) {
  16344. window.parent.postMessage({ tools: "44" }, "*");
  16345. } else if (t == 47) {
  16346. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16347. .taskJson[index].toolChoose[i].sentenceList
  16348. ? JSON.parse(
  16349. JSON.stringify(
  16350. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16351. index
  16352. ].toolChoose[i].sentenceList
  16353. )
  16354. )
  16355. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16356. for (var q = 0; q < this.sentenceList.length; q++) {
  16357. this.sentenceList[q].chooseSenList = [];
  16358. this.sentenceList[q].addChangeSen = [];
  16359. this.sentenceList[q].addChangeSen = JSON.parse(
  16360. JSON.stringify(this.sentenceList[q].addSentence)
  16361. );
  16362. this.sentenceList[q].chooseSenList.length =
  16363. this.sentenceList[q].rightAnswer.length;
  16364. }
  16365. this.dialogVisibleSentence = true;
  16366. } else if (t == 48) {
  16367. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16368. .taskJson[index].toolChoose[i].tableJson
  16369. ? JSON.parse(
  16370. JSON.stringify(
  16371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16372. index
  16373. ].toolChoose[i].tableJson
  16374. )
  16375. )
  16376. : { text: "" };
  16377. if (this.worksStudent[i].length) {
  16378. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16379. if (this.userid == this.worksStudent[i][k].userid) {
  16380. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16381. break;
  16382. }
  16383. }
  16384. }
  16385. this.dialogVisibleTable = true;
  16386. } else if (t == 52) {
  16387. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16388. .taskJson[index].toolChoose[i].wordJson
  16389. ? JSON.parse(
  16390. JSON.stringify(
  16391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16392. index
  16393. ].toolChoose[i].wordJson
  16394. )
  16395. )
  16396. : { text: "" };
  16397. this.dialogVisibleWord = true;
  16398. } else if (t == 49) {
  16399. this.groupJson =
  16400. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16401. index
  16402. ].toolChoose[i].groupJson;
  16403. this.dialogVisibleGroup = true;
  16404. } else if (t == 62) {
  16405. this.videoJson =
  16406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16407. index
  16408. ].toolChoose[i].videoJson;
  16409. this.dialogVisibleVideo = true;
  16410. }
  16411. },
  16412. teacherWorkSubmit(t, i, index, s) {
  16413. this.sStudent = s;
  16414. this.sTool = t;
  16415. this.toolindex = i;
  16416. if (this.tType !== "1" && this.tType !== "4") {
  16417. return;
  16418. }
  16419. if (t == 16 || t == 32 || t == 50) {
  16420. this.dialogVisibleWorks = true; //作业提交
  16421. } else if (t == 15) {
  16422. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16423. .taskJson[index].toolChoose[i].answerQ
  16424. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16425. .toolChoose[i].answerQ
  16426. : "";
  16427. this.questionAnswer = "";
  16428. this.answerDialogVisibleTeacher = true; //问答
  16429. } else if (t == 52) {
  16430. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16431. .taskJson[index].toolChoose[i].wordJson
  16432. ? JSON.parse(
  16433. JSON.stringify(
  16434. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16435. index
  16436. ].toolChoose[i].wordJson
  16437. )
  16438. )
  16439. : { text: "" };
  16440. this.dialogVisibleWordTeacher = true; //文档
  16441. } else if (t == 4) {
  16442. this.radio = [];
  16443. this.noteName = "";
  16444. this.isAnswer = false;
  16445. if (this.askCount > 0) {
  16446. this.updateCount(this.askCount, t);
  16447. } else {
  16448. this.askCount++;
  16449. a = this.askCount;
  16450. this.toolsCount(a, t);
  16451. }
  16452. if (!this.dialogVisible2) {
  16453. this.askJson.askJson =
  16454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16455. index
  16456. ].toolChoose[i].askJson;
  16457. this.askJson.askTitle =
  16458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16459. index
  16460. ].toolChoose[i].askTitle;
  16461. this.askJson.askCount =
  16462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16463. index
  16464. ].toolChoose[i].askCount;
  16465. } else {
  16466. this.askJson.askJson = this.chapTools.askJson.askJson;
  16467. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16468. this.askJson.askCount = this.chapTools.askJson.askCount;
  16469. }
  16470. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16471. if (this.askJson.askJson[k].type == "2") {
  16472. this.radio.push([]);
  16473. } else {
  16474. this.radio.push("");
  16475. }
  16476. }
  16477. this.dialogVisible5Teacher = true;
  16478. } else if (t == 45) {
  16479. this.noteName = "";
  16480. this.radio = [];
  16481. this.isAnswer = false;
  16482. if (this.askCount > 0) {
  16483. this.updateCount(this.askCount, t);
  16484. } else {
  16485. this.askCount++;
  16486. a = this.askCount;
  16487. this.toolsCount(a, t);
  16488. }
  16489. this.testJson =
  16490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16491. index
  16492. ].toolChoose[i].testJson;
  16493. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16494. if (this.testJson.testJson[k].type == "2") {
  16495. this.radio.push([]);
  16496. } else {
  16497. this.radio.push("");
  16498. }
  16499. }
  16500. this.dialogVisibleChoiceTeacher = true;
  16501. } else if (t == 41) {
  16502. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16503. .taskJson[index].toolChoose[i].selectJson
  16504. ? JSON.parse(
  16505. JSON.stringify(
  16506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16507. index
  16508. ].toolChoose[i].selectJson
  16509. )
  16510. )
  16511. : { url: "", select: [], answer: [] };
  16512. if (this.worksStudent[i].length) {
  16513. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16514. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16515. var a = this.worksStudent[i][k].works.split(",");
  16516. for (var ki = 0; ki < a.length; ki++) {
  16517. a[ki] = parseInt(a[ki]);
  16518. }
  16519. this.selectAnswer = {
  16520. answer: a,
  16521. stu: this.worksStudent[i][k].sName,
  16522. };
  16523. break;
  16524. } else {
  16525. this.selectAnswer = { answer: [], stu: "" };
  16526. }
  16527. }
  16528. } else {
  16529. this.selectAnswer = { answer: [], stu: "" };
  16530. }
  16531. this.isSelect = false;
  16532. this.dialogVisibleSelectTeacher = true;
  16533. } else if (t == 47) {
  16534. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16535. .taskJson[index].toolChoose[i].sentenceList
  16536. ? JSON.parse(
  16537. JSON.stringify(
  16538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16539. index
  16540. ].toolChoose[i].sentenceList
  16541. )
  16542. )
  16543. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16544. for (var q = 0; q < this.sentenceList.length; q++) {
  16545. this.sentenceList[q].chooseSenList = [];
  16546. this.sentenceList[q].addChangeSen = [];
  16547. this.sentenceList[q].addChangeSen = JSON.parse(
  16548. JSON.stringify(this.sentenceList[q].addSentence)
  16549. );
  16550. this.sentenceList[q].chooseSenList.length =
  16551. this.sentenceList[q].rightAnswer.length;
  16552. }
  16553. this.dialogVisibleSentenceTeacher = true;
  16554. } else if (t == 48) {
  16555. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16556. .taskJson[index].toolChoose[i].tableJson
  16557. ? JSON.parse(
  16558. JSON.stringify(
  16559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16560. index
  16561. ].toolChoose[i].tableJson
  16562. )
  16563. )
  16564. : { text: "" };
  16565. if (this.worksStudent[i].length) {
  16566. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16567. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16568. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16569. break;
  16570. }
  16571. }
  16572. }
  16573. this.dialogVisibleTableTeacher = true;
  16574. } else if (t == 40) {
  16575. if (this.evalCount > 0) {
  16576. this.updateCount(this.evalCount, t);
  16577. } else {
  16578. this.evalCount++;
  16579. a = this.evalCount;
  16580. this.toolsCount(a, t);
  16581. }
  16582. this.eScore = { eBzText: "", eStar: [] };
  16583. if (this.worksStudent[i].length) {
  16584. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16585. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16586. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16587. this.rateJson =
  16588. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16589. index
  16590. ].toolChoose[i].rateJson;
  16591. break;
  16592. } else {
  16593. this.rateJson =
  16594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16595. index
  16596. ].toolChoose[i].rateJson;
  16597. }
  16598. }
  16599. } else {
  16600. this.rateJson =
  16601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16602. index
  16603. ].toolChoose[i].rateJson;
  16604. }
  16605. this.isStar = false;
  16606. this.studentEvalDialogVisibleTeacher = true;
  16607. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16608. window.parent.postMessage(
  16609. {
  16610. tools: t + "teacher",
  16611. cid: this.id,
  16612. stage: this.courseType,
  16613. task: this.taskCount,
  16614. tool: i,
  16615. student: this.sStudent,
  16616. },
  16617. "*"
  16618. );
  16619. }
  16620. },
  16621. openCocoPi(tool, i, uid, uname) {
  16622. let student = {
  16623. userid: uid,
  16624. student: uname,
  16625. };
  16626. if (tool == 57) {
  16627. window.parent.postMessage(
  16628. {
  16629. tools: tool + "teacher",
  16630. cid: this.id,
  16631. stage: this.courseType,
  16632. task: this.taskCount,
  16633. tool: i,
  16634. student: student,
  16635. },
  16636. "*"
  16637. );
  16638. }
  16639. },
  16640. setRightAnswer(s, i, j) {
  16641. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16642. if (
  16643. this.sentenceList[i].chooseSenList[q] == undefined ||
  16644. this.sentenceList[i].chooseSenList[q] == ""
  16645. ) {
  16646. this.sentenceList[i].chooseSenList[q] = s;
  16647. this.sentenceList[i].addChangeSen[j] = "";
  16648. break;
  16649. }
  16650. }
  16651. this.$forceUpdate();
  16652. },
  16653. returnCard(r, i, j) {
  16654. var a = this.sentenceList[i].addSentence.indexOf(r);
  16655. this.sentenceList[i].chooseSenList[j] = "";
  16656. this.sentenceList[i].addChangeSen[a] = r;
  16657. this.$forceUpdate();
  16658. },
  16659. // addSentenceTool() {
  16660. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16661. // this.taskCount
  16662. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16663. // this.sentenceList = [
  16664. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16665. // ];
  16666. // this.dialogVisibleSentence = false;
  16667. // },
  16668. toolsCount(a, t) {
  16669. let params = {
  16670. cid: this.id,
  16671. chid: this.courseType,
  16672. uid: this.userid,
  16673. tid: t,
  16674. count: a,
  16675. };
  16676. this.ajax
  16677. .get(this.$store.state.api + "insertToolsCount", params)
  16678. .then((res) => {
  16679. this.selectCount();
  16680. })
  16681. .catch((err) => {
  16682. console.error(err);
  16683. });
  16684. },
  16685. updateCount(c, t) {
  16686. c++;
  16687. let params = {
  16688. cid: this.id,
  16689. chid: this.courseType,
  16690. uid: this.userid,
  16691. tid: t,
  16692. count: c,
  16693. };
  16694. this.ajax
  16695. .get(this.$store.state.api + "updateToolsCount", params)
  16696. .then((res) => {
  16697. this.selectCount();
  16698. })
  16699. .catch((err) => {
  16700. console.error(err);
  16701. });
  16702. },
  16703. checkEva() {
  16704. if (this.evalua != "") {
  16705. for (var i = 0; i < this.evaJuri.length; i++) {
  16706. if (this.evalua == this.evaJuri[i].id) {
  16707. this.eTitle = this.evaJuri[i].title;
  16708. this.eJson = JSON.parse(this.evaJuri[i].content);
  16709. }
  16710. }
  16711. this.$forceUpdate();
  16712. setTimeout(() => {
  16713. this.setMindData();
  16714. }, 0);
  16715. }
  16716. },
  16717. selectEva() {
  16718. let params = {
  16719. oid: this.oid,
  16720. };
  16721. this.ajax
  16722. .get(this.$store.state.api + "selectAllEvaluation", params)
  16723. .then((res) => {
  16724. this.evaJuri = res.data[0];
  16725. })
  16726. .catch((err) => {
  16727. console.error(err);
  16728. });
  16729. },
  16730. setMindData() {
  16731. this.data.data = [];
  16732. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16733. let _eJson = Object.keys(this.eJson);
  16734. let _e = this.eJson;
  16735. for (let i = 0; i < _eJson.length; i++) {
  16736. let element = _e[_eJson[i]];
  16737. this.data.data.push({
  16738. id: element.id,
  16739. parentid: "root",
  16740. topic: element.name,
  16741. });
  16742. let _eJsonc = Object.keys(element.child);
  16743. let _e2 = element.child;
  16744. for (let j = 0; j < _eJsonc.length; j++) {
  16745. let _ec = _e2[_eJsonc[j]];
  16746. this.data.data.push({
  16747. id: _ec.id,
  16748. parentid: element.id,
  16749. topic: _ec.name,
  16750. });
  16751. let _eJsonz = Object.keys(_ec.child);
  16752. let _e3 = _ec.child;
  16753. for (let z = 0; z < _eJsonz.length; z++) {
  16754. let _ez = _e3[_eJsonz[z]];
  16755. this.data.data.push({
  16756. id: _ez.id,
  16757. parentid: _ec.id,
  16758. topic: _ez.name,
  16759. });
  16760. }
  16761. }
  16762. }
  16763. this.$forceUpdate();
  16764. },
  16765. checkFileFull(type, url) {
  16766. this.fullDialogVisible = true;
  16767. this.fulltype = type;
  16768. this.fullUrl = url;
  16769. },
  16770. openSname(n, id, i, uid) {
  16771. this.snameWid = id;
  16772. this.worksSName = n;
  16773. this.worksSid = uid == n ? "" : uid;
  16774. this.toolindex = i;
  16775. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16776. if (!this.uploadCid) {
  16777. this.$message.error(
  16778. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16779. );
  16780. return;
  16781. }
  16782. this.selectUploadStudent(1);
  16783. },
  16784. updateName() {
  16785. let params = {
  16786. n: this.worksSName,
  16787. cid: this.snameWid,
  16788. };
  16789. this.ajax
  16790. .get(this.$store.state.api + "updateCourseWorksName", params)
  16791. .then((res) => {
  16792. this.$message({
  16793. message: "修改成功",
  16794. type: "success",
  16795. });
  16796. this.dialogVisibleSname = false;
  16797. this.getCourseDetail();
  16798. this.snameWid = "";
  16799. this.worksSName = "";
  16800. })
  16801. .catch((err) => {
  16802. console.error(err);
  16803. });
  16804. },
  16805. downloadFile2(f) {
  16806. const loading = this.$loading.service({
  16807. background: "rgba(255, 255, 255, 0.7)",
  16808. target: document.body,
  16809. text: "文件加载中...",
  16810. });
  16811. let url2 = f.url;
  16812. let _url2 = "";
  16813. if (
  16814. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16815. ) {
  16816. _url2 = url2.split(
  16817. "https://view.officeapps.live.com/op/view.aspx?src="
  16818. )[1];
  16819. } else {
  16820. _url2 = url2;
  16821. }
  16822. let params = {
  16823. url: _url2,
  16824. name: f.name,
  16825. };
  16826. this.ajax
  16827. .get(this.$store.state.api + "download", params)
  16828. .then((res) => {
  16829. console.log(res);
  16830. loading.close();
  16831. let content = res.data.data.data;
  16832. let ab = new ArrayBuffer(content.length);
  16833. let view = new Uint8Array(ab);
  16834. for (var i = 0; i < content.length; ++i) {
  16835. view[i] = content[i];
  16836. }
  16837. let elink = document.createElement("a");
  16838. elink.download = f.name;
  16839. elink.style.display = "none";
  16840. let blob = new Blob([ab], {
  16841. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16842. });
  16843. elink.href = URL.createObjectURL(blob);
  16844. document.body.appendChild(elink);
  16845. elink.click();
  16846. document.body.removeChild(elink);
  16847. })
  16848. .catch((err) => {
  16849. loading.close();
  16850. console.error(err);
  16851. });
  16852. },
  16853. downloadFile(url) {
  16854. let _this = this;
  16855. let _url = "";
  16856. if (
  16857. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16858. ) {
  16859. _url = url.split(
  16860. "https://view.officeapps.live.com/op/view.aspx?src="
  16861. )[1];
  16862. } else {
  16863. _url = url;
  16864. }
  16865. const x = new XMLHttpRequest();
  16866. x.open("GET", _url, true);
  16867. x.responseType = "blob";
  16868. const loading = _this.$loading.service({
  16869. background: "rgba(255, 255, 255, 0.7)",
  16870. target: document.body,
  16871. text: "文件加载中...",
  16872. });
  16873. // _this.$message.success("文件下载中...");
  16874. x.onload = function (e) {
  16875. loading.close();
  16876. // const url = window.URL.createObjectURL(x.response);
  16877. // const a = document.createElement("a");
  16878. // a.href = url;
  16879. // a.target = "_blank";
  16880. // a.download = url;
  16881. // a.click();
  16882. // a.remove();
  16883. let content = x.response;
  16884. let elink = document.createElement("a");
  16885. elink.download = decodeURI(
  16886. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16887. );
  16888. elink.style.display = "none";
  16889. let blob = new Blob([content]);
  16890. elink.href = URL.createObjectURL(blob);
  16891. document.body.appendChild(elink);
  16892. elink.click();
  16893. document.body.removeChild(elink);
  16894. };
  16895. x.send();
  16896. },
  16897. openLine(url) {
  16898. window.open(url);
  16899. },
  16900. resize() {
  16901. if (document.getElementsByClassName("box_course").length) {
  16902. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16903. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16904. if (this.showType == 2 || this.showType == 3) {
  16905. document.getElementsByClassName("navBox")[0].style.height =
  16906. a - 40 + 46 + "px";
  16907. } else {
  16908. document.getElementsByClassName("navBox")[0].style.height =
  16909. a - 40 + "px";
  16910. }
  16911. }
  16912. this.Stbodywidth =
  16913. document.getElementsByClassName("student_body").length &&
  16914. document.getElementsByClassName("student_body")[0].offsetWidth;
  16915. },
  16916. closeDraw() {
  16917. this.bg = null;
  16918. this.drawShow = false;
  16919. },
  16920. showPicturePaint(url) {
  16921. let params = {
  16922. img: url,
  16923. };
  16924. this.ajax
  16925. .get(this.$store.state.api + "imgToBase64", params)
  16926. .then((res) => {
  16927. console.log(res);
  16928. this.drawShow = true;
  16929. this.bg = res.data[0].img;
  16930. })
  16931. .catch((err) => {
  16932. console.error(err);
  16933. });
  16934. },
  16935. addImgDraw(base64) {
  16936. let file = { name: "批注图.png" };
  16937. let img = this.dataUrlToFile(base64, file);
  16938. this.beforeUpload1(img, 5);
  16939. },
  16940. addImgDrawImG(url) {
  16941. // console.log(url);
  16942. let params = [
  16943. {
  16944. wid: this.commentDetail.wid,
  16945. img: url,
  16946. },
  16947. ];
  16948. this.ajax
  16949. .post(this.$store.state.api + "updateCourseWorks", params)
  16950. .then((res) => {
  16951. this.$message({
  16952. message: "提交成功",
  16953. type: "success",
  16954. });
  16955. this.drawShow = false;
  16956. this.bg = "";
  16957. this.selectSWorks();
  16958. this.selectStudent();
  16959. })
  16960. .catch((err) => {
  16961. this.$message.error("提交失败");
  16962. console.error(err);
  16963. });
  16964. },
  16965. deletePicturePaint() {
  16966. this.$confirm("确定删除此批注吗?", "提示", {
  16967. confirmButtonText: "确定",
  16968. cancelButtonText: "取消",
  16969. type: "warning",
  16970. })
  16971. .then(() => {
  16972. let params = [
  16973. {
  16974. wid: this.commentDetail.wid,
  16975. img: "",
  16976. },
  16977. ];
  16978. this.ajax
  16979. .post(this.$store.state.api + "updateCourseWorks", params)
  16980. .then((res) => {
  16981. this.$message({
  16982. message: "删除成功",
  16983. type: "success",
  16984. });
  16985. this.selectSWorks();
  16986. this.selectStudent();
  16987. })
  16988. .catch((err) => {
  16989. this.$message.error("删除失败");
  16990. console.error(err);
  16991. });
  16992. })
  16993. .catch(() => {});
  16994. },
  16995. getAudioVideo(constraintsData) {
  16996. if (navigator.mediaDevices === undefined) {
  16997. navigator.mediaDevices = {};
  16998. }
  16999. if (navigator.mediaDevices.getUserMedia === undefined) {
  17000. navigator.mediaDevices.getUserMedia = function (constraints) {
  17001. // 首先,如果有getUserMedia的话,就获得它
  17002. var getUserMedia =
  17003. navigator.getUserMedia ||
  17004. navigator.webkitGetUserMedia ||
  17005. navigator.mozGetUserMedia ||
  17006. navigator.msGetUserMedia;
  17007. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17008. if (!getUserMedia) {
  17009. return Promise.reject({ code: 404 });
  17010. }
  17011. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17012. return new Promise(function (resolve, reject) {
  17013. getUserMedia.call(navigator, constraints, resolve, reject);
  17014. });
  17015. };
  17016. }
  17017. return navigator.mediaDevices.getUserMedia(constraintsData);
  17018. },
  17019. /**
  17020. * 开始录制
  17021. */
  17022. startRecording(callback) {
  17023. let _function = (screenStream) => {
  17024. this.addStreamStopListener(screenStream, () => {
  17025. console.log("流停止监听");
  17026. this.stopRecording();
  17027. this.$emit("streamStop", {});
  17028. // this.stopRecording();
  17029. });
  17030. var options = {
  17031. type: "video",
  17032. mimeType: "video/webm",
  17033. disableLogs: false,
  17034. getNativeBlob: false, // enable it for longer recordings
  17035. ignoreMutedMedia: false,
  17036. };
  17037. // this.video.srcObject = screenStream;
  17038. this.recorder = RecordRTC(screenStream, options);
  17039. this.recorder.startRecording();
  17040. this.recorder.screen = screenStream;
  17041. this.videoStart = true;
  17042. // callback(true);
  17043. };
  17044. this.getAudioVideo({ audio: true })
  17045. .then((res) => {
  17046. this.captureScreen(_function, true);
  17047. console.log("已点击允许,开启成功");
  17048. })
  17049. .catch((err) => {
  17050. // console.log('浏览器不支持,请更换浏览器')
  17051. // } else {
  17052. this.captureScreen(_function, false);
  17053. console.log("请检查是否存在麦克风");
  17054. });
  17055. },
  17056. /**
  17057. * 停止录制
  17058. */
  17059. stopRecording(callback) {
  17060. this.recorder.stopRecording(() => {
  17061. // this.video.src = this.video.srcObject = null;
  17062. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17063. const url = URL.createObjectURL(this.recorder.getBlob());
  17064. const a = document.createElement("a"); //this.fileName+
  17065. let videoFile = new File(
  17066. [this.recorder.getBlob()],
  17067. this.courseDetail.title + "录屏.mp4",
  17068. {
  17069. type: "video/mp4",
  17070. }
  17071. );
  17072. let downloadUrl = URL.createObjectURL(videoFile);
  17073. document.body.appendChild(a);
  17074. a.style.display = "none";
  17075. a.href = url;
  17076. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17077. a.click();
  17078. this.recorder.screen.stop();
  17079. this.recorder.destroy();
  17080. this.recorder = null;
  17081. this.videoStart = false;
  17082. // callback(false);
  17083. });
  17084. },
  17085. //初始化
  17086. captureScreen(callback, type) {
  17087. if (navigator.getDisplayMedia) {
  17088. //录制结束,文件下载
  17089. navigator
  17090. .getDisplayMedia({
  17091. video: true,
  17092. })
  17093. .then((screenStream) => {
  17094. if (type) {
  17095. navigator.mediaDevices
  17096. .getUserMedia({ audio: true })
  17097. .then((mic) => {
  17098. screenStream.addTrack(mic.getTracks()[0]);
  17099. callback(screenStream);
  17100. });
  17101. } else {
  17102. callback(screenStream);
  17103. }
  17104. })
  17105. .catch(function (error) {
  17106. console.log("error", error);
  17107. });
  17108. } else if (navigator.mediaDevices.getDisplayMedia) {
  17109. navigator.mediaDevices
  17110. .getDisplayMedia({
  17111. video: true,
  17112. })
  17113. .then((screenStream) => {
  17114. if (type) {
  17115. navigator.mediaDevices
  17116. .getUserMedia({ audio: true })
  17117. .then((mic) => {
  17118. screenStream.addTrack(mic.getTracks()[0]);
  17119. callback(screenStream);
  17120. });
  17121. } else {
  17122. callback(screenStream);
  17123. }
  17124. })
  17125. .catch(function (error) {
  17126. console.log("error", error);
  17127. });
  17128. } else {
  17129. var error = "getDisplayMedia API are not supported in this browser.";
  17130. console.log("error", error);
  17131. alert(error);
  17132. }
  17133. },
  17134. //流监听
  17135. addStreamStopListener(stream, callback) {
  17136. stream.addEventListener(
  17137. "ended",
  17138. function () {
  17139. callback();
  17140. callback = function () {};
  17141. },
  17142. false
  17143. );
  17144. stream.addEventListener(
  17145. "inactive",
  17146. function () {
  17147. callback();
  17148. callback = function () {};
  17149. },
  17150. false
  17151. );
  17152. stream.getTracks().forEach(function (track) {
  17153. track.addEventListener(
  17154. "ended",
  17155. function () {
  17156. callback();
  17157. callback = function () {};
  17158. },
  17159. false
  17160. );
  17161. track.addEventListener(
  17162. "inactive",
  17163. function () {
  17164. callback();
  17165. callback = function () {};
  17166. },
  17167. false
  17168. );
  17169. });
  17170. },
  17171. updateGroup() {
  17172. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17173. this.dialogVisibleGroup2 = true;
  17174. },
  17175. updateGroupJson() {
  17176. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17177. if (
  17178. this.groupStudentUid[this.toolindex][i].length >
  17179. this.groupJson2.number
  17180. ) {
  17181. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17182. return;
  17183. }
  17184. }
  17185. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17187. this.taskCount
  17188. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17189. let params = [
  17190. {
  17191. cid: this.id,
  17192. chapters: JSON.stringify(this.chapInfoList),
  17193. uid: this.userid,
  17194. unitIndex: this.courseType,
  17195. },
  17196. ];
  17197. this.ajax
  17198. .post(this.$store.state.api + "updateWorkNew4", params)
  17199. .then((res) => {
  17200. this.$message.success("设置成功");
  17201. this.getCourseDetail(2);
  17202. this.dialogVisibleGroup2 = false;
  17203. this.groupJson2 = {};
  17204. this.$forceUpdate();
  17205. })
  17206. .catch((err) => {
  17207. this.$message.error("网络不佳");
  17208. console.error(err);
  17209. });
  17210. },
  17211. lockChair() {
  17212. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17213. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17214. this.updateGroupJson();
  17215. },
  17216. selectGroup(index) {
  17217. this.getCourseDetail(2, index);
  17218. },
  17219. joinGroup(index) {
  17220. if (this.groupJson.islock == 2) {
  17221. this.$message.error("位置已被锁定,无法加入");
  17222. return;
  17223. }
  17224. if (
  17225. this.groupStudent[this.toolindex][index].length >
  17226. this.groupJson.number ||
  17227. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17228. ) {
  17229. this.$message.error("位置已满,无法加入");
  17230. return;
  17231. }
  17232. let params = [
  17233. {
  17234. cid: this.id,
  17235. stage: this.courseType,
  17236. task: this.taskCount,
  17237. tool: this.toolindex,
  17238. g: index,
  17239. uid: this.userid,
  17240. },
  17241. ];
  17242. this.ajax
  17243. .post(this.$store.state.api + "joinGroup", params)
  17244. .then((res) => {
  17245. this.$message.success("加入成功");
  17246. this.getCourseDetail();
  17247. })
  17248. .catch((err) => {
  17249. this.$message.error("网络不佳");
  17250. console.error(err);
  17251. });
  17252. },
  17253. exitGroup(id) {
  17254. if (this.groupJson.islock == 2) {
  17255. this.$message.error("位置已被锁定,无法退出");
  17256. return;
  17257. }
  17258. let params = [
  17259. {
  17260. gid: id,
  17261. },
  17262. ];
  17263. this.ajax
  17264. .post(this.$store.state.api + "exitGroup", params)
  17265. .then((res) => {
  17266. this.$message.success("退出成功");
  17267. this.getCourseDetail();
  17268. })
  17269. .catch((err) => {
  17270. this.$message.error("网络不佳");
  17271. console.error(err);
  17272. });
  17273. },
  17274. groupUpload(index, task, gindex) {
  17275. this.taskCount = task;
  17276. this.toolindex = index;
  17277. this.groupIndex = gindex;
  17278. this.dialogVisibleGroupWork = true;
  17279. },
  17280. updateGroupChair(user) {
  17281. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17282. el.label = index;
  17283. return index != user.group;
  17284. });
  17285. this.updateGroupUser = user;
  17286. this.dialogVisibleUpdateGroup = true;
  17287. },
  17288. updateChair() {
  17289. if (
  17290. this.groupStudent[this.toolindex][this.checkChair].length >
  17291. this.groupJson.number ||
  17292. this.groupStudent[this.toolindex][this.checkChair].length ==
  17293. this.groupJson.number
  17294. ) {
  17295. this.$message.error("位置已满,无法加入");
  17296. return;
  17297. }
  17298. let params = [
  17299. {
  17300. cid: this.id,
  17301. stage: this.courseType,
  17302. task: this.taskCount,
  17303. tool: this.toolindex,
  17304. g: this.checkChair,
  17305. uid: this.updateGroupUser.userid,
  17306. },
  17307. ];
  17308. this.ajax
  17309. .post(this.$store.state.api + "joinGroup", params)
  17310. .then((res) => {
  17311. this.$message.success("修改成功");
  17312. this.updateGroupUser = {};
  17313. this.checkChair = "";
  17314. this.updateGroupArray = {};
  17315. this.dialogVisibleUpdateGroup = false;
  17316. this.getCourseDetail();
  17317. })
  17318. .catch((err) => {
  17319. this.$message.error("网络不佳");
  17320. console.error(err);
  17321. });
  17322. },
  17323. deleteGroupChair(gindex) {
  17324. this.checkDeleteGroup = [];
  17325. this.deleteGroupUser = JSON.parse(
  17326. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17327. );
  17328. this.deleteGroupArray = this.groupJson.group[gindex];
  17329. this.groupIndex = gindex;
  17330. this.dialogVisibleDeleteGroup = true;
  17331. },
  17332. async deleteChair() {
  17333. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17334. const gid =
  17335. this.groupStudent[this.toolindex][this.groupIndex][
  17336. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17337. this.checkDeleteGroup[i]
  17338. )
  17339. ];
  17340. let params = [
  17341. {
  17342. gid: gid.id,
  17343. },
  17344. ];
  17345. var a = await this.deleteChairA(params);
  17346. if (i == this.checkDeleteGroup.length - 1) {
  17347. this.$message.success("退出成功");
  17348. this.dialogVisibleDeleteGroup = false;
  17349. this.deleteGroupUser = [];
  17350. this.deleteGroupArray = {};
  17351. this.groupIndex = "";
  17352. this.checkDeleteGroup = [];
  17353. this.getCourseDetail();
  17354. }
  17355. }
  17356. },
  17357. deleteChairA(params) {
  17358. return new Promise((resolve, reject) => {
  17359. this.ajax
  17360. .post(this.$store.state.api + "exitGroup", params)
  17361. .then((res) => {
  17362. resolve(1);
  17363. })
  17364. .catch((err) => {
  17365. this.$message.error("网络不佳");
  17366. console.error(err);
  17367. });
  17368. });
  17369. },
  17370. contract(i) {
  17371. if (this.isCloseList[i].isClose == 0) {
  17372. this.isCloseList[i].isClose = 1;
  17373. } else {
  17374. this.isCloseList[i].isClose = 0;
  17375. }
  17376. this.$forceUpdate();
  17377. },
  17378. openTools2(i) {
  17379. this.$message.error("暂未开放");
  17380. return;
  17381. },
  17382. addTools2(i) {
  17383. if (i == 4) {
  17384. // this.openTools2(4);
  17385. this.$message.error("暂未开放");
  17386. return;
  17387. }
  17388. if (i == 45) {
  17389. // this.openTools2(45);
  17390. this.$message.error("暂未开放");
  17391. return;
  17392. }
  17393. if (i == 47) {
  17394. // this.openTools2(47);
  17395. this.$message.error("暂未开放");
  17396. return;
  17397. }
  17398. if (i == 49) {
  17399. // this.openTools2(49);
  17400. this.$message.error("暂未开放");
  17401. return;
  17402. }
  17403. if (i == 62) {
  17404. // this.openTools(itemTaskIndex, 62, toolIndex);
  17405. this.$message.error("暂未开放");
  17406. return;
  17407. }
  17408. if (i == 15) {
  17409. // this.openTools(itemTaskIndex, 15, toolIndex);
  17410. this.$message.error("暂未开放");
  17411. return;
  17412. }
  17413. if (i == 40) {
  17414. // this.openTools(itemTaskIndex, 40, toolIndex);
  17415. this.$message.error("暂未开放");
  17416. return;
  17417. }
  17418. if (i == 41) {
  17419. // this.openTools(itemTaskIndex, 41, toolIndex);
  17420. this.$message.error("暂未开放");
  17421. return;
  17422. }
  17423. if (i == 42) {
  17424. // this.openTools(itemTaskIndex, 42, toolIndex);
  17425. this.$message.error("暂未开放");
  17426. return;
  17427. }
  17428. if (this.checktoolArray.length > 0) {
  17429. if (this.checktoolArray.indexOf(i) != -1) {
  17430. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17431. } else {
  17432. this.checktoolArray = [];
  17433. this.checktoolArray.push(i);
  17434. }
  17435. } else {
  17436. this.checktoolArray.push(i);
  17437. }
  17438. this.$forceUpdate();
  17439. },
  17440. addToolChoose() {
  17441. if (!this.checktoolArray.length) {
  17442. this.$message.error("请选择要添加的任务");
  17443. return;
  17444. }
  17445. if (
  17446. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17447. this.taskCount
  17448. ].toolChoose[0].tool.length
  17449. ) {
  17450. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17451. this.taskCount
  17452. ].toolChoose[0].tool = this.checktoolArray;
  17453. } else {
  17454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17455. this.taskCount
  17456. ].toolChoose.push({
  17457. tool: this.checktoolArray,
  17458. toolDetail: "",
  17459. toolType: 0,
  17460. askCount: 1,
  17461. askTitle: "",
  17462. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17463. });
  17464. }
  17465. let params = [
  17466. {
  17467. cid: this.id,
  17468. chapters: JSON.stringify(this.chapInfoList),
  17469. uid: this.userid,
  17470. unitIndex: this.courseType,
  17471. },
  17472. ];
  17473. this.ajax
  17474. .post(this.$store.state.api + "updateWorkNew4", params)
  17475. .then((res) => {
  17476. this.$message({
  17477. message: "添加成功",
  17478. type: "success",
  17479. });
  17480. this.checktoolArray = [];
  17481. this.getCourseDetail(2);
  17482. this.checkBz(
  17483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17484. this.taskCount
  17485. ].toolChoose.length - 1
  17486. );
  17487. this.$forceUpdate();
  17488. })
  17489. .catch((err) => {
  17490. console.error(err);
  17491. });
  17492. },
  17493. updateToolDetail() {
  17494. if (!this.isUpdateToolDetail) {
  17495. this.isUpdateToolDetail = true;
  17496. this.updateToolDetailInner = JSON.parse(
  17497. JSON.stringify(this.tool.toolDetail)
  17498. );
  17499. } else {
  17500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17501. this.taskCount
  17502. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17503. JSON.stringify(this.updateToolDetailInner)
  17504. );
  17505. let params = [
  17506. {
  17507. cid: this.id,
  17508. chapters: JSON.stringify(this.chapInfoList),
  17509. uid: this.userid,
  17510. unitIndex: this.courseType,
  17511. },
  17512. ];
  17513. this.ajax
  17514. .post(this.$store.state.api + "updateWorkNew4", params)
  17515. .then((res) => {
  17516. this.isUpdateToolDetail = false;
  17517. this.$message({
  17518. message: "修改成功",
  17519. type: "success",
  17520. });
  17521. this.updateToolDetailInner = "";
  17522. this.getCourseDetail(2);
  17523. this.$forceUpdate();
  17524. })
  17525. .catch((err) => {
  17526. console.error(err);
  17527. });
  17528. }
  17529. },
  17530. },
  17531. directives: {
  17532. // 使用局部注册指令的方式
  17533. resize: {
  17534. // 指令的名称
  17535. bind(el, binding) {
  17536. // el为绑定的元素,binding为绑定给指令的对象
  17537. let width = "",
  17538. height = "";
  17539. function isReize() {
  17540. const style = document.defaultView.getComputedStyle(el);
  17541. if (width !== style.width || height !== style.height) {
  17542. binding.value(); // 关键
  17543. }
  17544. width = style.width;
  17545. height = style.height;
  17546. }
  17547. el.__vueSetInterval__ = setInterval(isReize, 300);
  17548. },
  17549. unbind(el) {
  17550. clearInterval(el.__vueSetInterval__);
  17551. },
  17552. },
  17553. },
  17554. beforeDestroy() {
  17555. window.onresize = null;
  17556. clearInterval(this.timer);
  17557. this.timer = null;
  17558. clearInterval(this.opertimer);
  17559. this.opertimer = null;
  17560. },
  17561. computed: {
  17562. contentConvent() {
  17563. return function (c) {
  17564. return c
  17565. ? c
  17566. .replaceAll(/\r\n/g, "<br/>")
  17567. .replaceAll(/\n/g, "<br/>")
  17568. .replaceAll(/\s/g, " &nbsp")
  17569. : "";
  17570. };
  17571. },
  17572. checkUpload() {
  17573. return function () {
  17574. var studentK = [];
  17575. if (this.plworkFile.length > 0) {
  17576. for (var z = 0; z < this.plworkFile.length; z++) {
  17577. studentK.push(this.plworkFile[z].username);
  17578. }
  17579. studentK = studentK.join(",");
  17580. }
  17581. var a = this.uploadStudentJuri.filter((el) => {
  17582. return studentK.indexOf(el.userid) == -1;
  17583. });
  17584. return a;
  17585. };
  17586. },
  17587. getSName() {
  17588. return function (name) {
  17589. var check = name;
  17590. this.uploadStudentJuri.forEach((el) => {
  17591. if (el.userid == check) {
  17592. check = el.name ? el.name : el.username;
  17593. }
  17594. });
  17595. return check;
  17596. };
  17597. },
  17598. getImgList() {
  17599. return function (val) {
  17600. let srcList = []; // 定义一个数组用来接收后面的img地址
  17601. val.replace(
  17602. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  17603. function (match, capture) {
  17604. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17605. srcList.push(capture);
  17606. }
  17607. );
  17608. return srcList;
  17609. };
  17610. },
  17611. },
  17612. mounted() {
  17613. if (this.screenType == 2) {
  17614. window.parent.postMessage({ allScreen: 4 }, "*");
  17615. } else if (this.screenType == 3) {
  17616. window.parent.postMessage({ allScreen: 5 }, "*");
  17617. } else if (this.screenType == 1) {
  17618. window.parent.postMessage({ allScreen: 6 }, "*");
  17619. }
  17620. this.setOperationTime();
  17621. this.selectEva();
  17622. this.getCourseDetail();
  17623. this.selectCount();
  17624. this.getHomeWork();
  17625. this.toolIndex = null;
  17626. this.contentDialog = true;
  17627. this.setContent2(true);
  17628. if (this.tType == 4) {
  17629. this.pzDialog = true;
  17630. this.selectPz();
  17631. }
  17632. document.scrollingElement.scrollTop = 0;
  17633. window.addEventListener("resize", () => {
  17634. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17635. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17636. if (this.showType == 2 || this.showType == 3) {
  17637. document.getElementsByClassName("navBox")[0].style.height =
  17638. a - 40 + 46 + "px";
  17639. } else {
  17640. document.getElementsByClassName("navBox")[0].style.height =
  17641. a - 40 + "px";
  17642. }
  17643. });
  17644. let _this = this;
  17645. setTimeout(() => {
  17646. // _this.vedioTime = [];
  17647. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17648. // _this.vedioTime[i] = document.getElementsByClassName(
  17649. // "vjs-duration-display"
  17650. // )[i].textContent;
  17651. // }
  17652. }, 1000);
  17653. },
  17654. };
  17655. </script>
  17656. <style scoped>
  17657. @media screen and (max-width: 1280px) {
  17658. /* .courseIndex > div:first-child(2) {
  17659. width: 15% !important;
  17660. } */
  17661. /* .navText {
  17662. width: 120px !important;
  17663. } */
  17664. .evaCss {
  17665. flex-direction: column !important;
  17666. align-items: center !important;
  17667. }
  17668. .dialog_diy1 >>> .el-dialog {
  17669. width: 100% !important;
  17670. }
  17671. .rightWidthCss {
  17672. width: 100% !important;
  17673. }
  17674. .dialog_diy3 >>> .el-dialog {
  17675. width: 100% !important;
  17676. }
  17677. /* .textTitle >>> .el-form-item__label {
  17678. width: 150px !important;
  17679. } */
  17680. }
  17681. .evaCssMax {
  17682. flex-direction: column !important;
  17683. align-items: center !important;
  17684. }
  17685. .dialog_diy >>> .el-dialog {
  17686. margin-top: 10vh !important;
  17687. }
  17688. .body_student {
  17689. width: 77%;
  17690. height: 100%;
  17691. position: absolute;
  17692. left: 22%;
  17693. top: 0;
  17694. }
  17695. .student_head {
  17696. width: 100%;
  17697. margin: 40px auto 0;
  17698. padding-bottom: 20px;
  17699. display: flex;
  17700. flex-direction: column;
  17701. flex-wrap: nowrap;
  17702. align-items: flex-start;
  17703. justify-content: flex-start;
  17704. }
  17705. .pb_left {
  17706. width: 20%;
  17707. margin-right: 10px;
  17708. background: rgb(255, 255, 255);
  17709. position: fixed;
  17710. height: calc(100% - 40px);
  17711. border-radius: 20px;
  17712. padding-bottom: 15px;
  17713. box-sizing: border-box;
  17714. }
  17715. .wheel > img,
  17716. .project > img,
  17717. .star > img,
  17718. .evaluate > img,
  17719. .up_photo > img,
  17720. .chapter_add > img,
  17721. .deleteWord > img,
  17722. .question > img,
  17723. .homework > img {
  17724. width: 100%;
  17725. height: 100%;
  17726. }
  17727. .upCover > img {
  17728. width: 131px;
  17729. height: 69px;
  17730. object-fit: cover;
  17731. }
  17732. .upCover {
  17733. width: calc(100% / 3.5);
  17734. position: relative;
  17735. margin: 0 15px 10px 0;
  17736. display: flex;
  17737. flex-direction: column;
  17738. flex-wrap: nowrap;
  17739. justify-content: center;
  17740. align-content: center;
  17741. align-items: center;
  17742. height: fit-content;
  17743. }
  17744. .upCover2 {
  17745. width: 100%;
  17746. position: relative;
  17747. margin: 0 15px 10px 0;
  17748. display: flex;
  17749. flex-direction: column;
  17750. flex-wrap: nowrap;
  17751. justify-content: center;
  17752. align-content: center;
  17753. align-items: center;
  17754. }
  17755. .upCover2 > img {
  17756. width: 100%;
  17757. height: 90px;
  17758. object-fit: contain;
  17759. }
  17760. .chapter_add {
  17761. width: 120px;
  17762. position: relative;
  17763. text-align: center;
  17764. }
  17765. .isAddThings {
  17766. margin-top: 20px;
  17767. position: relative;
  17768. text-align: center;
  17769. background: #f7f8fa;
  17770. height: 90px;
  17771. width: 90px;
  17772. display: flex;
  17773. flex-direction: column;
  17774. justify-content: center;
  17775. }
  17776. .deleteWord {
  17777. width: 22px;
  17778. height: 22px;
  17779. position: absolute;
  17780. right: -5px;
  17781. top: -5px;
  17782. cursor: pointer;
  17783. }
  17784. .box_course {
  17785. /* width: 60%; */
  17786. width: calc(100% - 300px);
  17787. }
  17788. .wheel {
  17789. width: 100%;
  17790. /* height: 100%; */
  17791. height: 650px;
  17792. }
  17793. .right_box {
  17794. display: flex;
  17795. flex-direction: column;
  17796. margin-left: 30px;
  17797. justify-content: space-around;
  17798. }
  17799. .right_box_title {
  17800. font-size: 23px;
  17801. }
  17802. .people {
  17803. display: flex;
  17804. }
  17805. .student_body {
  17806. width: 100%;
  17807. margin: 0 auto;
  17808. margin-top: 10px;
  17809. padding: 0 0 20px;
  17810. background: #fff;
  17811. border-radius: 20px;
  17812. }
  17813. .study_top {
  17814. margin-top: 100px;
  17815. width: 100%;
  17816. /* overflow: auto; */
  17817. height: auto;
  17818. padding-bottom: 20px;
  17819. }
  17820. .study_top .checkbox {
  17821. display: flex;
  17822. align-items: center;
  17823. padding: 15px 0 15px 30px;
  17824. flex: 0 0 auto;
  17825. font-weight: bold;
  17826. border-bottom: 1px solid #eee;
  17827. }
  17828. .study_top .check {
  17829. padding-bottom: 5px;
  17830. text-align: center;
  17831. cursor: pointer;
  17832. height: 30px;
  17833. box-sizing: border-box;
  17834. display: flex;
  17835. }
  17836. .study_top .checked {
  17837. border-bottom: 4px solid #3fc6a0;
  17838. padding-bottom: 5px;
  17839. color: #3fc6a0;
  17840. display: flex;
  17841. height: 35px;
  17842. }
  17843. .study_top .checked > div,
  17844. .study_top .check > div {
  17845. margin-right: 5px;
  17846. }
  17847. .videoTop {
  17848. display: flex;
  17849. flex-direction: row;
  17850. justify-content: space-between;
  17851. background: #fff;
  17852. align-items: center;
  17853. width: 95%;
  17854. padding: 20px;
  17855. }
  17856. .upbtn {
  17857. margin: 25px;
  17858. background: #70afdb;
  17859. color: #fff;
  17860. width: 120px;
  17861. text-align: center;
  17862. height: 30px;
  17863. line-height: 30px;
  17864. font-size: 13px;
  17865. border-radius: 5px;
  17866. cursor: pointer;
  17867. }
  17868. .filebox {
  17869. display: flex;
  17870. flex-wrap: wrap;
  17871. flex-direction: column;
  17872. padding: 15px 0 5px;
  17873. }
  17874. .filebox .tooldetail {
  17875. width: 100%;
  17876. margin: 0px 12px;
  17877. background: rgb(247, 247, 247);
  17878. padding: 20px;
  17879. line-height: 30px;
  17880. word-break: break-word;
  17881. }
  17882. .file {
  17883. display: flex;
  17884. flex-direction: column;
  17885. align-items: center;
  17886. justify-content: center;
  17887. cursor: pointer;
  17888. width: 200px;
  17889. }
  17890. .file div {
  17891. margin-top: 10px;
  17892. width: 150px;
  17893. text-align: center;
  17894. overflow: hidden;
  17895. white-space: nowrap;
  17896. text-overflow: ellipsis;
  17897. }
  17898. .media {
  17899. display: flex;
  17900. flex-direction: column;
  17901. align-items: center;
  17902. justify-content: center;
  17903. margin: 0 20px 20px 0;
  17904. cursor: pointer;
  17905. margin: 12px 0 5px 15px;
  17906. overflow: hidden;
  17907. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  17908. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  17909. box-sizing: border-box;
  17910. }
  17911. .media img {
  17912. height: 90px;
  17913. width: 160px;
  17914. object-fit: cover;
  17915. }
  17916. .media .title {
  17917. padding: 5px;
  17918. text-align: left;
  17919. width: 100%;
  17920. box-sizing: border-box;
  17921. }
  17922. .media .btn {
  17923. width: 100%;
  17924. height: 35px;
  17925. line-height: 35px;
  17926. color: #fff;
  17927. background: #606060;
  17928. text-align: center;
  17929. overflow: hidden;
  17930. white-space: nowrap;
  17931. text-overflow: ellipsis;
  17932. }
  17933. .detail_content_top {
  17934. width: 100%;
  17935. padding: 25px 0 25px 0;
  17936. }
  17937. .detail_title {
  17938. text-align: center;
  17939. font-size: 24px;
  17940. }
  17941. .detail_time {
  17942. font-size: 13px;
  17943. padding: 15px 0 0 40px;
  17944. }
  17945. .detail_content {
  17946. line-height: 2pc;
  17947. width: 90%;
  17948. margin: 0 auto;
  17949. padding-top: 30px;
  17950. text-indent: 30px;
  17951. overflow: auto;
  17952. height: 200px;
  17953. }
  17954. .score_box >>> .el-rate {
  17955. margin-left: 10px;
  17956. }
  17957. .dialog_change >>> .el-dialog {
  17958. border-radius: 5px;
  17959. }
  17960. .dialog_change >>> .el-dialog__header {
  17961. background: #f2f2f2;
  17962. text-align: center;
  17963. }
  17964. .dialog_change >>> .el-dialog__title {
  17965. line-height: 5px;
  17966. }
  17967. .dialog_change >>> .el-dialog__body {
  17968. background: #fff;
  17969. padding: 10px 20px;
  17970. }
  17971. .score_box {
  17972. display: flex;
  17973. align-items: center;
  17974. margin-bottom: 18px;
  17975. margin-top: 20px;
  17976. }
  17977. .up_photo {
  17978. width: 120px;
  17979. cursor: pointer;
  17980. margin-top: 10px;
  17981. }
  17982. .up_photo2 {
  17983. width: 180px;
  17984. box-sizing: border-box;
  17985. min-width: 180px;
  17986. height: 180px;
  17987. max-height: 180px;
  17988. min-height: 180px;
  17989. cursor: pointer;
  17990. display: flex;
  17991. flex-direction: column;
  17992. align-items: center;
  17993. justify-content: center;
  17994. background: rgb(242, 246, 255);
  17995. /* padding: 25px; */
  17996. margin-bottom: 10px;
  17997. }
  17998. .up_photo2 img {
  17999. width: 50%;
  18000. height: auto;
  18001. }
  18002. .up_photo2 span {
  18003. color: #898989;
  18004. }
  18005. .plworkBox {
  18006. display: flex;
  18007. align-items: center;
  18008. margin-top: 10px;
  18009. flex-wrap: wrap;
  18010. }
  18011. .upload_send {
  18012. margin: 30px auto 30px;
  18013. width: 60%;
  18014. background: #169bd6;
  18015. text-align: center;
  18016. height: 35px;
  18017. line-height: 35px;
  18018. color: #fff;
  18019. border-radius: 5px;
  18020. cursor: pointer;
  18021. }
  18022. .marginT {
  18023. margin-top: 20px;
  18024. }
  18025. .cd_content_steps {
  18026. display: flex;
  18027. width: 90%;
  18028. justify-content: space-around;
  18029. border-top: 1px solid #eeeeee;
  18030. }
  18031. .cd_steps_box {
  18032. display: flex;
  18033. justify-content: center;
  18034. align-items: center;
  18035. flex-direction: column;
  18036. cursor: pointer;
  18037. }
  18038. .first {
  18039. display: flex;
  18040. align-items: center;
  18041. margin: 15px 0 20px 0;
  18042. font-size: 20px;
  18043. }
  18044. .first > div:nth-child(2) {
  18045. font-size: 16px !important;
  18046. padding-left: 10px;
  18047. line-height: 26px;
  18048. box-sizing: border-box;
  18049. }
  18050. .blue_box_one {
  18051. text-align: center;
  18052. color: #fff;
  18053. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18054. border-radius: 7px;
  18055. margin: 10px;
  18056. cursor: pointer;
  18057. width: 95%;
  18058. height: 45px;
  18059. display: flex;
  18060. flex-direction: row;
  18061. justify-content: flex-start;
  18062. align-items: center;
  18063. }
  18064. .blue_box_one > div:nth-child(1) {
  18065. line-height: 30px;
  18066. margin: 0 5px 0 10px;
  18067. width: 30%;
  18068. min-width: 70px;
  18069. border-radius: 4px;
  18070. }
  18071. .blue_box_one > div:nth-child(2) {
  18072. white-space: nowrap;
  18073. text-overflow: ellipsis;
  18074. overflow: hidden;
  18075. word-break: break-all;
  18076. width: 70%;
  18077. text-align: left;
  18078. margin-right: 10px;
  18079. max-width: calc(100% - 85px);
  18080. }
  18081. .blue_box_one > div:nth-child(2):hover {
  18082. overflow: hidden;
  18083. text-overflow: ellipsis;
  18084. white-space: nowrap;
  18085. cursor: pointer;
  18086. }
  18087. .upFile {
  18088. margin: 0 auto;
  18089. width: 120px;
  18090. background: #70afdb;
  18091. color: #fff;
  18092. height: 30px;
  18093. text-align: center;
  18094. line-height: 30px;
  18095. border-radius: 5px;
  18096. font-size: 14px;
  18097. cursor: pointer;
  18098. }
  18099. .courseTitle {
  18100. width: 85%;
  18101. margin: 10px auto;
  18102. display: flex;
  18103. flex-direction: row;
  18104. align-items: center;
  18105. justify-content: space-between;
  18106. text-align: center;
  18107. }
  18108. .courseTitle .ctitle {
  18109. font-size: 24px;
  18110. font-weight: bold;
  18111. color: #0e1e33;
  18112. white-space: nowrap;
  18113. overflow: hidden;
  18114. text-overflow: ellipsis;
  18115. }
  18116. .courseTitle .inviteBox {
  18117. font-size: 14px;
  18118. margin-top: 5px;
  18119. color: #a6cbff;
  18120. }
  18121. .courseTitle >>> .el-tooltip {
  18122. width: 100%;
  18123. white-space: nowrap;
  18124. overflow: hidden;
  18125. text-overflow: ellipsis;
  18126. word-break: break-word;
  18127. }
  18128. .ml {
  18129. margin-left: 20px;
  18130. color: #5b7dba;
  18131. border-left: 3px solid #5b7dba;
  18132. padding-left: 5px;
  18133. font-weight: bold;
  18134. }
  18135. .return {
  18136. width: 2rem;
  18137. height: 2rem;
  18138. cursor: pointer;
  18139. }
  18140. .return > img {
  18141. width: 100%;
  18142. height: 100%;
  18143. }
  18144. .returnBtn {
  18145. width: 86px;
  18146. height: 36px;
  18147. background: #e7ebf1;
  18148. border-radius: 4px;
  18149. color: #717c8d;
  18150. text-align: center;
  18151. line-height: 36px;
  18152. margin-right: 20px;
  18153. cursor: pointer;
  18154. font-size: 14px;
  18155. font-weight: 400;
  18156. display: flex;
  18157. flex-direction: row;
  18158. flex-wrap: nowrap;
  18159. align-items: center;
  18160. justify-content: center;
  18161. }
  18162. .commentIcon::before,
  18163. .vedioIcon::before,
  18164. .lockIcon::before,
  18165. .returnIcon::before {
  18166. content: "";
  18167. display: block;
  18168. background-size: 100% 100%;
  18169. background-repeat: no-repeat;
  18170. width: 20px;
  18171. height: 20px;
  18172. margin-right: 5px;
  18173. }
  18174. .commentIcon::before {
  18175. background-image: url("../../assets/icon/newIcon/comment.png");
  18176. }
  18177. .vedioIcon::before {
  18178. background-image: url("../../assets/icon/newIcon/vedio.png");
  18179. }
  18180. .lockIcon::before {
  18181. background-image: url("../../assets/icon/newIcon/lock.png");
  18182. }
  18183. .returnIcon::before {
  18184. background-image: url("../../assets/icon/newIcon/return.png");
  18185. }
  18186. .tool {
  18187. display: flex;
  18188. flex-direction: column;
  18189. flex-wrap: nowrap;
  18190. width: 13%;
  18191. margin: 0 30px;
  18192. align-items: center;
  18193. }
  18194. .whiteBIcon {
  18195. width: 150px;
  18196. cursor: pointer;
  18197. }
  18198. .whiteBIcon > img {
  18199. width: 100%;
  18200. height: 100%;
  18201. }
  18202. .mask {
  18203. background-color: rgba(0, 0, 0, 0);
  18204. position: fixed;
  18205. top: 0;
  18206. left: 0;
  18207. width: 100%;
  18208. height: 100%;
  18209. z-index: 20000;
  18210. display: flex;
  18211. align-items: center;
  18212. justify-content: center;
  18213. }
  18214. .progressBox {
  18215. width: 500px;
  18216. height: 180px;
  18217. background: #fff;
  18218. border-radius: 10px;
  18219. box-shadow: 0 0 6px 1px #bfbfbf;
  18220. display: flex;
  18221. align-items: center;
  18222. justify-content: center;
  18223. flex-direction: column;
  18224. position: relative;
  18225. color: #6c6c6c;
  18226. }
  18227. .progressBox >>> .el-progress-bar__outer {
  18228. background-color: #d1dfff !important;
  18229. }
  18230. .progressBox .lbox {
  18231. height: 50px;
  18232. font-size: 19px;
  18233. display: flex;
  18234. align-items: center;
  18235. color: #747474;
  18236. }
  18237. .progressBox .lbox img {
  18238. width: 40px;
  18239. margin-right: 20px;
  18240. }
  18241. .closeCss {
  18242. position: absolute;
  18243. top: 8px;
  18244. right: 8px;
  18245. cursor: pointer;
  18246. width: 20px;
  18247. height: 20px;
  18248. }
  18249. .closeCss > img {
  18250. width: 100%;
  18251. height: 100%;
  18252. }
  18253. .uploadVedio {
  18254. display: flex;
  18255. flex-direction: column;
  18256. flex-wrap: nowrap;
  18257. justify-content: center;
  18258. align-items: center;
  18259. margin: 0 15px 10px 0;
  18260. }
  18261. .uploadVedio > img {
  18262. width: 30px;
  18263. height: 30px;
  18264. }
  18265. .uploadVedio > span {
  18266. white-space: nowrap;
  18267. overflow: hidden;
  18268. text-overflow: ellipsis;
  18269. width: 75px;
  18270. margin-top: 7px;
  18271. }
  18272. .picName {
  18273. white-space: nowrap;
  18274. overflow: hidden;
  18275. text-overflow: ellipsis;
  18276. width: 75px;
  18277. margin-top: 7px;
  18278. }
  18279. .new_top {
  18280. display: flex;
  18281. background: #fff;
  18282. flex-direction: row;
  18283. justify-content: flex-start;
  18284. align-items: center;
  18285. height: 60px;
  18286. position: relative;
  18287. }
  18288. .new_top::before {
  18289. content: "";
  18290. width: 100%;
  18291. height: 20px;
  18292. position: absolute;
  18293. top: -20px;
  18294. display: block;
  18295. background: #f2f2f2;
  18296. }
  18297. .before {
  18298. position: absolute;
  18299. background: #c3dad4;
  18300. width: 6px;
  18301. height: 100%;
  18302. }
  18303. .courseIndex {
  18304. display: flex;
  18305. flex-direction: row;
  18306. align-items: center;
  18307. width: calc(100% - 600px);
  18308. }
  18309. .courseIndex > div:nth-child(1) {
  18310. margin: 0 0 0 10px;
  18311. font-size: 24px;
  18312. min-width: 100px;
  18313. font-weight: bold;
  18314. border-left: 4px solid #3363b9;
  18315. height: 35px;
  18316. text-align: center;
  18317. line-height: 35px;
  18318. }
  18319. .courseIndex > div:nth-child(2) {
  18320. font-size: 23px;
  18321. /* width: 300px; */
  18322. max-width: calc(100% - 180px);
  18323. white-space: nowrap;
  18324. overflow: hidden;
  18325. text-overflow: ellipsis;
  18326. }
  18327. .courseIndex > div:nth-child(3) {
  18328. border-bottom: 1px solid #d7d7d7;
  18329. padding-bottom: 5px;
  18330. background: #49a0f0;
  18331. width: 55px;
  18332. min-width: 55px;
  18333. border-radius: 5px;
  18334. color: #fff;
  18335. text-align: center;
  18336. height: 20px;
  18337. line-height: 26px;
  18338. font-size: 14px;
  18339. margin: 0 0 0 10px;
  18340. }
  18341. .course_text {
  18342. padding: 20px 0 0 15px;
  18343. text-indent: 30px;
  18344. width: 80%;
  18345. min-height: 20px;
  18346. }
  18347. .vedioList {
  18348. background: #f2f2f2;
  18349. border: 1px solid #ececec;
  18350. /* width: 38.8%; */
  18351. width: 300px;
  18352. height: 445px;
  18353. border-radius: 10px;
  18354. overflow: hidden;
  18355. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18356. }
  18357. .vedioNav {
  18358. margin: 10px 0 0 15px;
  18359. border-bottom: 1px solid #d7d7d7;
  18360. padding-bottom: 5px;
  18361. background: #96d1ff;
  18362. width: 55px;
  18363. min-width: 55px;
  18364. border-radius: 5px;
  18365. color: #fff;
  18366. text-align: center;
  18367. height: 20px;
  18368. line-height: 26px;
  18369. font-size: 14px;
  18370. }
  18371. .queTop {
  18372. display: flex;
  18373. padding: 20px 0 20px 30px;
  18374. width: 100%;
  18375. flex-direction: row;
  18376. justify-content: flex-start;
  18377. align-items: center;
  18378. box-sizing: border-box;
  18379. }
  18380. .queTop::before {
  18381. content: "";
  18382. width: 2px;
  18383. height: 22px;
  18384. background: #3681fc;
  18385. border-radius: 3px;
  18386. display: block;
  18387. margin: 2px 6px 0 0;
  18388. }
  18389. .question {
  18390. width: 40px;
  18391. margin-right: 10px;
  18392. margin-top: 7px;
  18393. }
  18394. .queTitle {
  18395. margin-left: 5px;
  18396. font-size: 25px;
  18397. display: flex;
  18398. align-items: center;
  18399. }
  18400. .addEditor {
  18401. width: 100px;
  18402. height: 30px;
  18403. background: #42cda6;
  18404. color: #fff;
  18405. border-radius: 5px;
  18406. text-align: center;
  18407. line-height: 30px;
  18408. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18409. cursor: pointer;
  18410. }
  18411. .vedioName {
  18412. /* text-overflow: ellipsis;
  18413. top: 8px;
  18414. font-size: 14px;
  18415. overflow: hidden;
  18416. width: 100%;
  18417. word-break: break-all;
  18418. white-space: nowrap; */
  18419. cursor: pointer;
  18420. margin: 0px 0px 10px 5px;
  18421. white-space: nowrap;
  18422. overflow: hidden;
  18423. text-overflow: ellipsis;
  18424. width: 100%;
  18425. }
  18426. .vedioTime {
  18427. width: 35px;
  18428. position: absolute;
  18429. color: #fff;
  18430. bottom: 0px;
  18431. right: 0px;
  18432. text-align: center;
  18433. background: #46411f;
  18434. height: 20px;
  18435. font-size: 14px;
  18436. line-height: 20px;
  18437. }
  18438. .homework {
  18439. width: 200px;
  18440. display: flex;
  18441. flex-direction: column;
  18442. flex-wrap: nowrap;
  18443. align-items: center;
  18444. cursor: pointer;
  18445. }
  18446. .homebox {
  18447. display: flex;
  18448. flex-wrap: wrap;
  18449. flex-direction: row;
  18450. justify-content: flex-start;
  18451. align-items: center;
  18452. padding: 15px 0;
  18453. }
  18454. .chooseWho {
  18455. display: flex;
  18456. width: 100%;
  18457. flex-direction: row;
  18458. flex-wrap: nowrap;
  18459. justify-content: flex-start;
  18460. padding-bottom: 10px;
  18461. }
  18462. .chooseWho > div {
  18463. cursor: pointer;
  18464. padding-bottom: 10px;
  18465. margin: 0 30px 0 0;
  18466. font-weight: 400;
  18467. color: #0e1e33;
  18468. }
  18469. .addPoint > div > img {
  18470. cursor: pointer;
  18471. margin: 0 10px;
  18472. width: 85px;
  18473. border-radius: 15px;
  18474. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18475. }
  18476. .addPoint > div {
  18477. display: flex;
  18478. flex-direction: column;
  18479. flex-wrap: nowrap;
  18480. align-items: center;
  18481. }
  18482. .isBorder > div {
  18483. margin: 0 0 10px 0;
  18484. align-items: flex-start !important;
  18485. }
  18486. .noiframeBox {
  18487. display: flex;
  18488. flex-wrap: wrap;
  18489. }
  18490. .iframeBox iframe {
  18491. width: 100%;
  18492. height: 800px;
  18493. border: none;
  18494. margin-bottom: 20px;
  18495. border: 1px solid #ccc;
  18496. }
  18497. .upload_toolBtn {
  18498. background: #6b92c9;
  18499. color: #fff;
  18500. width: 110px;
  18501. text-align: center;
  18502. height: 35px;
  18503. line-height: 35px;
  18504. font-size: 14px;
  18505. border-radius: 5px;
  18506. cursor: pointer;
  18507. position: absolute;
  18508. right: 10px;
  18509. bottom: 0;
  18510. }
  18511. .binfo_input,
  18512. .pj {
  18513. font: inherit;
  18514. color: currentColor;
  18515. width: 100%;
  18516. margin: 0;
  18517. padding: 15px 14px;
  18518. display: block;
  18519. min-width: 0;
  18520. outline: none;
  18521. box-sizing: content-box;
  18522. background: none;
  18523. -webkit-tap-highlight-color: transparent;
  18524. border: 1px solid rgba(0, 0, 0, 0.23);
  18525. border-radius: 4px;
  18526. box-sizing: border-box;
  18527. resize: none;
  18528. }
  18529. .binfo_input:focus-visible {
  18530. border: 1px solid rgba(61, 103, 188);
  18531. }
  18532. .dialog_diy >>> .el-dialog__header,
  18533. .dialog_diy1 >>> .el-dialog__header {
  18534. background: #454545 !important;
  18535. padding: 15px 20px;
  18536. }
  18537. .dialog_diy >>> .el-dialog__title,
  18538. .dialog_diy1 >>> .el-dialog__title {
  18539. color: #fff;
  18540. }
  18541. .dialog_diy >>> .el-dialog__headerbtn,
  18542. .dialog_diy1 >>> .el-dialog__headerbtn {
  18543. top: 19px;
  18544. }
  18545. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18546. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18547. color: #fff;
  18548. }
  18549. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18550. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18551. color: #fff;
  18552. }
  18553. .dialog_diy1 >>> .el-dialog__body {
  18554. padding: 0;
  18555. }
  18556. .dialog_diy >>> .el-dialog__body,
  18557. .dialog_diy >>> .el-dialog__footer,
  18558. .dialog_diy1 >>> .el-dialog__footer {
  18559. background: #fafafa;
  18560. }
  18561. .a_addBox {
  18562. margin: 10px 0;
  18563. background: #fff;
  18564. padding: 15px;
  18565. }
  18566. .a_add_box {
  18567. border-bottom: 2px solid #eee;
  18568. padding-bottom: 10px;
  18569. }
  18570. .a_add_head {
  18571. display: flex;
  18572. align-items: flex-start;
  18573. /* justify-content: space-between; */
  18574. flex-direction: column;
  18575. /* flex-direction: row; */
  18576. margin: 10px 0 20px 0;
  18577. font-size: 18px;
  18578. width: 100%;
  18579. }
  18580. .a_add_head .a_add_head_input {
  18581. width: 300px;
  18582. }
  18583. .a_add_head .a_add_head_div {
  18584. display: flex;
  18585. align-items: center;
  18586. justify-content: space-between;
  18587. }
  18588. .a_add_body {
  18589. display: flex;
  18590. align-items: center;
  18591. }
  18592. .a_add_input {
  18593. display: flex;
  18594. align-items: center;
  18595. flex-wrap: wrap;
  18596. }
  18597. .a_add_input >>> el-radio-group {
  18598. margin: 10px 0;
  18599. }
  18600. .a_add_input >>> .el-radio,
  18601. .a_add_input >>> .el-checkbox {
  18602. margin-bottom: 10px;
  18603. display: flex;
  18604. flex-direction: row;
  18605. flex-wrap: nowrap;
  18606. align-items: center;
  18607. }
  18608. .redioStyle >>> .el-radio__label {
  18609. font-size: 18px;
  18610. }
  18611. .redioStyle >>> .el-checkbox__label {
  18612. font-size: 18px;
  18613. }
  18614. .toolHeng2 {
  18615. width: 100%;
  18616. box-sizing: border-box;
  18617. }
  18618. .toolHeng {
  18619. display: flex;
  18620. flex-direction: row;
  18621. flex-wrap: wrap;
  18622. justify-content: flex-start;
  18623. align-items: center;
  18624. width: 100%;
  18625. }
  18626. .toolHeng > div {
  18627. padding-left: 20px;
  18628. }
  18629. .isWidth {
  18630. width: 20%;
  18631. }
  18632. .textTitle {
  18633. display: flex;
  18634. flex-direction: row;
  18635. flex-wrap: nowrap;
  18636. align-items: center;
  18637. width: 95%;
  18638. }
  18639. .textTitle >>> .el-form-item__label {
  18640. font-size: 22px;
  18641. color: #918f8f;
  18642. width: 100px;
  18643. }
  18644. .textTitle >>> .el-form-item__content {
  18645. width: calc(100% - 100px);
  18646. }
  18647. .textCss >>> .el-dialog {
  18648. width: 800px !important;
  18649. height: 400px;
  18650. background: #fafafa;
  18651. }
  18652. .textCss >>> .el-dialog__body {
  18653. margin: 55px 8% 0 8%;
  18654. padding: 0 !important;
  18655. }
  18656. .textCss >>> .el-dialog__footer {
  18657. padding-top: 38px;
  18658. }
  18659. .toolsCss >>> .el-dialog__body {
  18660. padding: 20px;
  18661. }
  18662. .lineCss >>> .el-dialog__body {
  18663. display: flex;
  18664. flex-direction: row;
  18665. align-items: center;
  18666. justify-content: center;
  18667. }
  18668. .newNav {
  18669. display: flex;
  18670. flex-direction: row;
  18671. align-items: baseline;
  18672. justify-content: flex-start;
  18673. }
  18674. .navText {
  18675. cursor: pointer;
  18676. white-space: nowrap;
  18677. overflow: hidden;
  18678. text-overflow: ellipsis;
  18679. width: 220px;
  18680. padding: 0 10px;
  18681. font-weight: 400;
  18682. color: #0e1e33;
  18683. }
  18684. .noVedio {
  18685. display: flex;
  18686. flex-direction: row;
  18687. justify-content: center;
  18688. align-content: center;
  18689. }
  18690. .noNavText {
  18691. cursor: pointer;
  18692. margin: 0px 0px 10px 5px;
  18693. width: 112px;
  18694. }
  18695. .listNoVedio {
  18696. margin: 0 0 0 30px;
  18697. width: 97%;
  18698. }
  18699. .video-player >>> .video-js {
  18700. height: 100%;
  18701. }
  18702. .hangVedioList {
  18703. width: 90% !important;
  18704. height: 150px !important;
  18705. margin: 20px 0 0 30px;
  18706. }
  18707. .hangVedio {
  18708. width: 100%;
  18709. height: 170px !important;
  18710. align-items: flex-start !important;
  18711. }
  18712. .hangHand {
  18713. height: 150px !important;
  18714. }
  18715. .twoChild {
  18716. width: 95%;
  18717. margin: 10px;
  18718. border-radius: 5px;
  18719. background: #f2f2f2;
  18720. display: flex;
  18721. flex-direction: column;
  18722. flex-wrap: nowrap;
  18723. justify-content: flex-start;
  18724. align-items: flex-start;
  18725. transition: all 0.5s;
  18726. overflow: hidden;
  18727. height: 0;
  18728. background: #e7f3ff;
  18729. }
  18730. .twoChild > div:nth-child(1) {
  18731. margin-top: 5px;
  18732. }
  18733. .navChild {
  18734. width: 100%;
  18735. cursor: pointer;
  18736. margin-bottom: 10px;
  18737. position: relative;
  18738. }
  18739. .navChild img {
  18740. position: absolute;
  18741. right: 11px;
  18742. width: 15px;
  18743. top: 50%;
  18744. transform: translateY(-50%);
  18745. }
  18746. .navActive {
  18747. height: auto !important;
  18748. overflow: auto !important;
  18749. padding-bottom: 10px;
  18750. }
  18751. .navTask {
  18752. display: flex;
  18753. flex-direction: row;
  18754. flex-wrap: nowrap;
  18755. align-items: center;
  18756. align-content: flex-start;
  18757. height: 40px;
  18758. justify-content: flex-start;
  18759. padding: 0 10px;
  18760. width: 100%;
  18761. box-sizing: border-box;
  18762. }
  18763. .navTaskname {
  18764. white-space: nowrap;
  18765. text-overflow: ellipsis;
  18766. overflow: hidden;
  18767. word-break: break-all;
  18768. padding-left: 5px;
  18769. }
  18770. .openTaskActive {
  18771. color: #4386e6;
  18772. }
  18773. .iframeName {
  18774. margin: 5px 0;
  18775. border-left: 4px solid #41c4a4;
  18776. padding-left: 4px;
  18777. }
  18778. .toolTitle {
  18779. margin: 0px 0px 20px;
  18780. font-size: 20px;
  18781. font-weight: 500;
  18782. border-left: 4px solid #41c4a4;
  18783. padding-left: 4px;
  18784. }
  18785. .cru_selectBox {
  18786. overflow: auto;
  18787. width: 90%;
  18788. margin: 17px auto 0;
  18789. height: calc(100% - 40px - 21px - 20px - 17px);
  18790. }
  18791. .cru_selectBox::-webkit-scrollbar,
  18792. .study_top::-webkit-scrollbar,
  18793. .textContent::-webkit-scrollbar {
  18794. /*滚动条整体样式*/
  18795. width: 6px;
  18796. /*高宽分别对应横竖滚动条的尺寸*/
  18797. height: 6px;
  18798. }
  18799. /*定义滚动条轨道 内阴影+圆角*/
  18800. .cru_selectBox::-webkit-scrollbar-track,
  18801. .study_top::-webkit-scrollbar-track,
  18802. .textContent::-webkit-scrollbar {
  18803. border-radius: 10px;
  18804. background-color: #b8bdc9;
  18805. }
  18806. /*定义滑块 内阴影+圆角*/
  18807. .cru_selectBox::-webkit-scrollbar-thumb,
  18808. .study_top::-webkit-scrollbar-thumb,
  18809. .textContent::-webkit-scrollbar-thumb {
  18810. border-radius: 10px;
  18811. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  18812. background-color: #2c5ab3;
  18813. }
  18814. .vedioBox {
  18815. border-radius: 0 0 20px 20px;
  18816. background: #fff;
  18817. margin-bottom: 10px;
  18818. overflow: auto;
  18819. }
  18820. .taskBox {
  18821. width: 95%;
  18822. margin: 0 auto;
  18823. }
  18824. .vedioTaskBox {
  18825. width: 100%;
  18826. display: flex;
  18827. flex-direction: row;
  18828. flex-wrap: nowrap;
  18829. align-items: flex-start;
  18830. position: relative;
  18831. }
  18832. .toolBox {
  18833. padding: 30px 60px 15px;
  18834. display: flex;
  18835. position: relative;
  18836. }
  18837. .btnAll {
  18838. position: absolute;
  18839. right: 0;
  18840. display: flex;
  18841. flex-direction: row;
  18842. flex-wrap: nowrap;
  18843. align-items: center;
  18844. }
  18845. .btnAllNT {
  18846. position: fixed;
  18847. bottom: 50px;
  18848. right: 40px;
  18849. z-index: 999;
  18850. display: flex;
  18851. flex-direction: row;
  18852. }
  18853. .btnAllNT > img {
  18854. cursor: pointer;
  18855. width: 80px;
  18856. }
  18857. /* .vedioTimeBox {
  18858. display: flex;
  18859. flex-direction: row;
  18860. align-items: center;
  18861. flex-wrap: nowrap;
  18862. position: relative;
  18863. } */
  18864. .navBox {
  18865. background: #fff;
  18866. height: calc(100% - 40px);
  18867. overflow-y: auto;
  18868. overflow-x: hidden;
  18869. }
  18870. .tool_work_box {
  18871. width: 100%;
  18872. padding: 0 37px 10px;
  18873. box-sizing: border-box;
  18874. }
  18875. .worksBox {
  18876. padding: 5px 0;
  18877. border-bottom: 1px solid #eeeeee;
  18878. }
  18879. .worksBTitle {
  18880. font-size: 20px;
  18881. padding-bottom: 15px;
  18882. border-bottom: 1px solid #eeeeee;
  18883. display: flex;
  18884. align-items: center;
  18885. }
  18886. .greenBox {
  18887. width: 5px;
  18888. height: 30px;
  18889. background: #63b6fa;
  18890. margin-right: 5px;
  18891. }
  18892. .worksDetailBox {
  18893. display: flex;
  18894. width: 100%;
  18895. flex-direction: row;
  18896. flex-wrap: wrap;
  18897. align-items: flex-end;
  18898. justify-content: flex-start;
  18899. padding: 15px 0;
  18900. }
  18901. .works {
  18902. display: flex;
  18903. flex-direction: column;
  18904. flex-wrap: nowrap;
  18905. align-items: flex-start;
  18906. justify-content: flex-start;
  18907. align-content: center;
  18908. max-width: 240px;
  18909. width: calc(100% / 3 - 10px);
  18910. height: auto;
  18911. margin-right: 10px;
  18912. margin-bottom: 10px;
  18913. overflow: hidden;
  18914. height: 140px;
  18915. box-shadow: 0 0 6px 1px #dfdada;
  18916. border-radius: 15px;
  18917. }
  18918. .workImg {
  18919. width: 100%;
  18920. /* height: calc(100% - 40px); */
  18921. height: 105px;
  18922. position: relative;
  18923. }
  18924. .workImg > img {
  18925. width: 100%;
  18926. height: 100%;
  18927. object-fit: contain;
  18928. cursor: pointer;
  18929. }
  18930. .worksName {
  18931. height: 40px;
  18932. line-height: 40px;
  18933. display: flex;
  18934. width: 100%;
  18935. flex-direction: row;
  18936. flex-wrap: nowrap;
  18937. justify-content: space-between;
  18938. align-items: center;
  18939. margin: 0 0 0 10px;
  18940. }
  18941. .worksName > div:nth-child(1) {
  18942. width: 110px;
  18943. white-space: nowrap;
  18944. overflow: hidden;
  18945. text-overflow: ellipsis;
  18946. }
  18947. .worksName > div:nth-child(2) {
  18948. color: #b7b4b5;
  18949. }
  18950. .noWorksS {
  18951. padding: 15px 0 0;
  18952. display: flex;
  18953. flex-direction: row;
  18954. flex-wrap: wrap;
  18955. align-items: center;
  18956. justify-content: flex-start;
  18957. }
  18958. .noWorksS > div {
  18959. cursor: pointer;
  18960. }
  18961. .noWorksName,
  18962. .isWorksName {
  18963. background: #7cbcf1;
  18964. color: #fff;
  18965. width: 90px;
  18966. height: 25px;
  18967. text-align: center;
  18968. line-height: 25px;
  18969. border-radius: 5px;
  18970. margin: 10px 15px 10px 0;
  18971. white-space: nowrap;
  18972. overflow: hidden;
  18973. padding: 5px;
  18974. text-overflow: ellipsis;
  18975. }
  18976. .noWorksName.isWork {
  18977. background: #165d96 !important;
  18978. }
  18979. .isWorksName {
  18980. cursor: pointer;
  18981. background: #46a1eb !important;
  18982. width: 100px;
  18983. height: 40px;
  18984. line-height: 40px;
  18985. position: relative;
  18986. }
  18987. .noWorksName:hover {
  18988. background: #46a1eb !important;
  18989. }
  18990. .title {
  18991. background: #1e5cc9;
  18992. /* width: 98%; */
  18993. height: 45px;
  18994. color: #fff;
  18995. line-height: 45px;
  18996. padding-left: 20px;
  18997. box-sizing: border-box;
  18998. }
  18999. .textBox {
  19000. font-size: 20px;
  19001. width: 90%;
  19002. display: flex;
  19003. flex-direction: column;
  19004. align-items: center;
  19005. margin: 20px auto 0;
  19006. max-height: 500px;
  19007. overflow: auto;
  19008. }
  19009. .textContent {
  19010. font-size: 18px;
  19011. width: 95%;
  19012. max-width: 95%;
  19013. }
  19014. .answerBg {
  19015. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19016. background-size: 100% 100%;
  19017. width: 100%;
  19018. height: 100%;
  19019. color: #fff;
  19020. text-align: center;
  19021. display: flex;
  19022. flex-direction: column;
  19023. flex-wrap: nowrap;
  19024. align-items: center;
  19025. position: relative;
  19026. justify-content: center;
  19027. }
  19028. .answerBg > div:nth-child(1) {
  19029. /* font-size: 22px;
  19030. padding: 25px 0 10px; */
  19031. }
  19032. .answerContent {
  19033. width: 215px;
  19034. max-height: 60px;
  19035. word-break: break-all;
  19036. text-align: center;
  19037. /* white-space: nowrap; */
  19038. overflow: hidden;
  19039. text-overflow: ellipsis;
  19040. /* padding: 23px 0 0; */
  19041. -webkit-line-clamp: 3;
  19042. -webkit-box-orient: vertical;
  19043. display: -webkit-box;
  19044. font-size: 15px;
  19045. cursor: pointer;
  19046. }
  19047. .elist_input_box {
  19048. display: flex;
  19049. align-items: flex-start;
  19050. flex-wrap: nowrap;
  19051. padding: 10px 0 15px 30px;
  19052. flex-direction: column;
  19053. }
  19054. .elist_input {
  19055. /* width: 40%; */
  19056. width: 100%;
  19057. }
  19058. .elist_input .elist_input_box input {
  19059. font: inherit;
  19060. color: currentColor;
  19061. width: 200px;
  19062. padding: 8px 14px;
  19063. display: block;
  19064. min-width: 0;
  19065. outline: none;
  19066. border: 1px solid rgba(0, 0, 0, 0.23);
  19067. border-radius: 4px;
  19068. box-sizing: border-box;
  19069. background: #fff;
  19070. margin: 0 20px 0 0;
  19071. }
  19072. .elist_input .elist_input_box span {
  19073. height: 36px;
  19074. line-height: 36px;
  19075. color: rgb(82, 82, 82);
  19076. }
  19077. .elist_input .elist_input_box .remove {
  19078. height: 20px;
  19079. width: 20px;
  19080. background-size: 100% 100%;
  19081. background-position: unset;
  19082. margin-left: 5px;
  19083. }
  19084. .elist_input_box >>> .el-rate {
  19085. display: flex;
  19086. height: 36px;
  19087. align-items: center;
  19088. }
  19089. .elist_input_box .elist_inptu_text {
  19090. min-height: 50px;
  19091. /* width: 500px;
  19092. max-height: 150px; */
  19093. width: 100%;
  19094. line-height: 50px;
  19095. color: rgb(82, 82, 82);
  19096. overflow: auto;
  19097. text-indent: 5px;
  19098. background: #f7f6f9;
  19099. border-radius: 10px;
  19100. }
  19101. .elist_input_box .elist_inptu_text input {
  19102. width: 500px;
  19103. }
  19104. .elist_input_box >>> .el-rate__icon {
  19105. font-size: 24px;
  19106. }
  19107. .isClick {
  19108. background: #4d9def;
  19109. }
  19110. /*定义滚动条轨道 内阴影+圆角*/
  19111. .bzTypeBox::-webkit-scrollbar {
  19112. /*滚动条整体样式*/
  19113. width: 6px;
  19114. /*高宽分别对应横竖滚动条的尺寸*/
  19115. height: 6px;
  19116. }
  19117. /*定义滚动条轨道 内阴影+圆角*/
  19118. .bzTypeBox::-webkit-scrollbar-track {
  19119. border-radius: 10px;
  19120. background-color: rgba(0, 0, 0, 0.1);
  19121. }
  19122. /*定义滑块 内阴影+圆角*/
  19123. .bzTypeBox::-webkit-scrollbar-thumb {
  19124. border-radius: 10px;
  19125. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19126. background-color: rgba(0, 0, 0, 0.1);
  19127. }
  19128. .choiceBox {
  19129. display: flex;
  19130. margin: 20px 0;
  19131. width: 100%;
  19132. }
  19133. .bzTypeBox {
  19134. display: flex;
  19135. width: 100%;
  19136. overflow: auto;
  19137. white-space: nowrap;
  19138. }
  19139. .bzChild {
  19140. cursor: pointer;
  19141. box-sizing: border-box;
  19142. padding-bottom: 10px;
  19143. font-weight: bold;
  19144. min-width: fit-content;
  19145. }
  19146. .bzChild.active {
  19147. color: #3e88f4;
  19148. border-bottom: 2px solid #2f80f3;
  19149. }
  19150. .bzChild + .bzChild {
  19151. margin-left: 25px;
  19152. }
  19153. .bzBox {
  19154. display: flex;
  19155. flex-direction: row;
  19156. align-items: center;
  19157. }
  19158. .bzBox .yCss {
  19159. width: 14px;
  19160. height: 14px;
  19161. background: #3681fc;
  19162. margin: 0 16px 0 7px;
  19163. border-radius: 50%;
  19164. }
  19165. .bzBox > div:nth-child(2) {
  19166. font-size: 18px;
  19167. font-weight: bold;
  19168. color: #0e1e33;
  19169. }
  19170. .navTitile {
  19171. padding: 0 0px 0 15px;
  19172. font-size: 16px;
  19173. font-weight: bold;
  19174. color: #0e1e33;
  19175. height: 40px;
  19176. line-height: 40px;
  19177. }
  19178. .isTypeOne {
  19179. width: 240px;
  19180. height: 170px;
  19181. /* border: 1px solid #f8f8f8; */
  19182. border-radius: 10px;
  19183. box-shadow: 0 0 6px 1px #dfdada;
  19184. }
  19185. .e_add_top {
  19186. display: flex;
  19187. justify-content: space-between;
  19188. padding: 20px 20px 0 20px;
  19189. border-radius: 3px;
  19190. background: #fff;
  19191. }
  19192. .e_add_title2 {
  19193. display: flex;
  19194. align-items: center;
  19195. }
  19196. .e_add_title2 span {
  19197. width: 40px;
  19198. }
  19199. .e_add_title {
  19200. display: flex;
  19201. align-items: center;
  19202. color: #b8b8b8;
  19203. font-size: 18px;
  19204. position: relative;
  19205. height: 40px;
  19206. }
  19207. .e_add_title span {
  19208. margin-right: 10px;
  19209. }
  19210. .e_add_title .el_input {
  19211. width: 300px;
  19212. }
  19213. .e_add_title >>> .el-input__inner {
  19214. width: 400px;
  19215. }
  19216. .e_add_btn {
  19217. }
  19218. .e_add_content {
  19219. display: flex;
  19220. width: 100%;
  19221. max-width: 650px;
  19222. height: 550px;
  19223. }
  19224. .e_add_list {
  19225. background: #fff;
  19226. height: 500px;
  19227. width: 210px;
  19228. position: relative;
  19229. margin: 15px 5px 0 0;
  19230. flex-shrink: 0;
  19231. display: flex;
  19232. flex-direction: column;
  19233. }
  19234. .e_add_list_title {
  19235. font-size: 20px;
  19236. width: 100%;
  19237. box-sizing: border-box;
  19238. padding: 15px 40px;
  19239. text-align: center;
  19240. border-bottom: 1px solid #eaeaea;
  19241. position: relative;
  19242. display: flex;
  19243. align-items: center;
  19244. justify-content: center;
  19245. height: 57px;
  19246. background: #f6f6f6;
  19247. }
  19248. .e_add_list_title span {
  19249. overflow: hidden;
  19250. white-space: nowrap;
  19251. text-overflow: ellipsis;
  19252. }
  19253. .e_add_list_title img {
  19254. position: absolute;
  19255. right: 15px;
  19256. width: 25px;
  19257. cursor: pointer;
  19258. top: 50%;
  19259. transform: translateY(-50%);
  19260. }
  19261. .e_add_list_body {
  19262. height: calc(100% - 187px);
  19263. overflow: auto;
  19264. }
  19265. .e_add_list_child {
  19266. width: 100%;
  19267. display: flex;
  19268. align-items: center;
  19269. justify-content: center;
  19270. position: relative;
  19271. box-sizing: border-box;
  19272. padding: 15px 40px;
  19273. text-align: center;
  19274. }
  19275. .e_add_list_child span {
  19276. overflow: hidden;
  19277. white-space: nowrap;
  19278. text-overflow: ellipsis;
  19279. cursor: pointer;
  19280. }
  19281. .e_add_list_child img {
  19282. position: absolute;
  19283. right: 10px;
  19284. width: 21px;
  19285. cursor: pointer;
  19286. top: 50%;
  19287. transform: translateY(-50%);
  19288. }
  19289. .e_add_list_child + .e_add_list_child {
  19290. border-top: 1px solid #eaeaea;
  19291. }
  19292. .e_add_list_child .active {
  19293. color: #409eff;
  19294. }
  19295. .e_add_list_btn {
  19296. position: absolute;
  19297. bottom: 0;
  19298. height: 50px;
  19299. background: rgb(120, 120, 254);
  19300. width: 100%;
  19301. color: #fff;
  19302. font-size: 16px;
  19303. text-align: center;
  19304. line-height: 50px;
  19305. cursor: pointer;
  19306. }
  19307. .e_add_list_detail {
  19308. position: absolute;
  19309. bottom: 0;
  19310. height: 130px;
  19311. background: rgb(120, 120, 254);
  19312. width: 100%;
  19313. color: #fff;
  19314. font-size: 16px;
  19315. display: flex;
  19316. align-items: center;
  19317. justify-content: center;
  19318. }
  19319. .e_add_list_detail textarea {
  19320. height: 90%;
  19321. width: 95%;
  19322. border: none;
  19323. resize: none;
  19324. outline: none;
  19325. padding: 5px;
  19326. box-sizing: border-box;
  19327. }
  19328. .e_add_list_pbox {
  19329. width: 100%;
  19330. max-width: 650px;
  19331. /* height: 600px; */
  19332. }
  19333. .e_add_list_pbox_title {
  19334. height: 50px;
  19335. background: #fff;
  19336. display: flex;
  19337. align-items: center;
  19338. width: 100%;
  19339. box-sizing: border-box;
  19340. padding: 0 20px;
  19341. }
  19342. .type_title {
  19343. font-size: 18px;
  19344. font-weight: 700;
  19345. }
  19346. .type_content {
  19347. font-size: 16px;
  19348. margin-left: 30px;
  19349. }
  19350. .type_content span + span {
  19351. margin-left: 20px;
  19352. }
  19353. .type_content span {
  19354. cursor: pointer;
  19355. padding-bottom: 5px;
  19356. box-sizing: border-box;
  19357. }
  19358. .type_content .active {
  19359. color: #409eff;
  19360. border-bottom: 2px solid #409eff;
  19361. }
  19362. .e_add_list_pbox_content {
  19363. height: calc(100% - 50px);
  19364. display: flex;
  19365. align-items: center;
  19366. width: 100%;
  19367. background: #fff;
  19368. }
  19369. .evaCss {
  19370. display: flex;
  19371. flex-direction: row;
  19372. flex-wrap: nowrap;
  19373. align-items: flex-start;
  19374. }
  19375. .cru_line {
  19376. position: absolute;
  19377. bottom: 0px;
  19378. transition: all 0.5s;
  19379. left: 0px;
  19380. width: 125px;
  19381. margin-left: -25px;
  19382. }
  19383. .isNoMessage {
  19384. width: 20%;
  19385. margin: 25% auto 0;
  19386. }
  19387. .isNoMessage > img {
  19388. width: 100%;
  19389. height: 100%;
  19390. }
  19391. .fullStyle >>> .el-dialog__body {
  19392. height: 100% !important;
  19393. }
  19394. .fullStyle >>> .el-dialog,
  19395. .fullStyle {
  19396. width: 100% !important;
  19397. max-width: 100% !important;
  19398. height: 100% !important;
  19399. margin: 0 !important;
  19400. }
  19401. .full_diy >>> .el-dialog {
  19402. margin: 0 !important;
  19403. height: 100%;
  19404. padding: 4px;
  19405. }
  19406. .full_diy >>> .el-dialog__body {
  19407. height: calc(100% - 100px);
  19408. }
  19409. .full_diy2 >>> .el-dialog__body {
  19410. height: calc(100% - 50px);
  19411. padding: 0;
  19412. }
  19413. .switchCss {
  19414. /* width: 100%; */
  19415. display: flex;
  19416. flex-direction: row;
  19417. flex-wrap: nowrap;
  19418. align-items: center;
  19419. /* justify-content: center; */
  19420. }
  19421. .isClickNav {
  19422. color: #499eef;
  19423. }
  19424. .commentImg {
  19425. width: 25px;
  19426. height: 25px;
  19427. cursor: pointer;
  19428. }
  19429. .commentImg > img {
  19430. width: 100%;
  19431. height: 100%;
  19432. }
  19433. .comment {
  19434. background: #f9f9f9;
  19435. border-radius: 0 0 15px 15px;
  19436. display: flex;
  19437. flex-direction: row;
  19438. flex-wrap: nowrap;
  19439. align-items: center;
  19440. justify-content: flex-end;
  19441. height: 35px;
  19442. }
  19443. .commentList {
  19444. display: flex;
  19445. flex-direction: row;
  19446. flex-wrap: nowrap;
  19447. align-items: center;
  19448. justify-content: center;
  19449. align-content: center;
  19450. /* margin-left: 15px; */
  19451. /* margin-left: 8px; */
  19452. }
  19453. .scoreImg {
  19454. width: 17px;
  19455. height: 17px;
  19456. }
  19457. .studentDetail {
  19458. display: flex;
  19459. flex-direction: row;
  19460. flex-wrap: nowrap;
  19461. /* align-items: center; */
  19462. align-items: flex-start;
  19463. }
  19464. .tx {
  19465. width: 50px;
  19466. }
  19467. .tx > img {
  19468. width: 100%;
  19469. height: 100%;
  19470. }
  19471. .nameAndTime {
  19472. display: flex;
  19473. flex-direction: column;
  19474. flex-wrap: nowrap;
  19475. align-items: flex-start;
  19476. margin-left: 10px;
  19477. }
  19478. .worksAnswer {
  19479. color: #4078dd;
  19480. margin: 10px 0;
  19481. font-size: 16px;
  19482. position: relative;
  19483. }
  19484. .worksAnswer > img {
  19485. width: 500px;
  19486. height: 300px;
  19487. object-fit: contain;
  19488. margin: 0 auto;
  19489. display: block;
  19490. }
  19491. .commentTop {
  19492. border-bottom: 1px solid #eaeaea;
  19493. padding-bottom: 10px;
  19494. }
  19495. .commentBox {
  19496. padding-top: 15px;
  19497. }
  19498. .pl {
  19499. font-size: 18px;
  19500. }
  19501. .plPerson {
  19502. width: 100%;
  19503. }
  19504. .plName {
  19505. display: flex;
  19506. flex-direction: row;
  19507. flex-wrap: nowrap;
  19508. align-items: baseline;
  19509. color: #78787a;
  19510. width: 100%;
  19511. }
  19512. .deleteComment {
  19513. cursor: pointer;
  19514. margin-left: auto;
  19515. color: #237ade;
  19516. }
  19517. .plContent {
  19518. margin-top: 5px;
  19519. }
  19520. .evalCss {
  19521. background: #fff;
  19522. font-size: 18px;
  19523. }
  19524. .nav {
  19525. color: #9d9d9d;
  19526. padding: 5px 0 15px 20px;
  19527. }
  19528. .middleBox {
  19529. padding: 5px 0 15px 20px;
  19530. }
  19531. .pfBox {
  19532. padding-bottom: 30px;
  19533. }
  19534. .nameAndrate {
  19535. display: flex;
  19536. flex-direction: row;
  19537. flex-wrap: nowrap;
  19538. align-items: center;
  19539. padding-bottom: 10px;
  19540. height: 30px;
  19541. line-height: 30px;
  19542. }
  19543. .nameAndrate > div {
  19544. margin-left: 10px;
  19545. color: #000;
  19546. height: 30px;
  19547. }
  19548. .nameAndrate >>> .el-rate__icon {
  19549. font-size: 28px !important;
  19550. }
  19551. .pfBox > div:nth-child(2) {
  19552. background: #f7f6f9;
  19553. width: 400px;
  19554. min-height: 45px;
  19555. border-radius: 10px;
  19556. font-size: 16px;
  19557. display: flex;
  19558. flex-wrap: wrap;
  19559. align-items: center;
  19560. padding: 10px 20px;
  19561. box-sizing: border-box;
  19562. color: #000;
  19563. }
  19564. .bz {
  19565. display: flex;
  19566. flex-direction: row;
  19567. flex-wrap: nowrap;
  19568. align-items: flex-start;
  19569. }
  19570. .bz > div {
  19571. padding: 0 10px;
  19572. }
  19573. .select_box2_title {
  19574. background: #fff;
  19575. border-radius: 5px;
  19576. padding: 15px 10px;
  19577. box-sizing: border-box;
  19578. margin-bottom: 10px;
  19579. display: flex;
  19580. flex-direction: row;
  19581. flex-wrap: nowrap;
  19582. align-items: center;
  19583. }
  19584. .select_box2_title > div:nth-child(2) {
  19585. margin-left: 10px;
  19586. color: #c4c4c4;
  19587. }
  19588. .select_box2_box {
  19589. display: flex;
  19590. height: 500px;
  19591. }
  19592. .select_box2_img {
  19593. width: calc(100% - 310px);
  19594. height: 100%;
  19595. overflow: auto;
  19596. background: #fff;
  19597. border-radius: 5px;
  19598. }
  19599. .select_box2_img img {
  19600. width: 100%;
  19601. }
  19602. .select_box2_answer {
  19603. background: #fff;
  19604. margin-left: 10px;
  19605. border-radius: 5px;
  19606. width: 300px;
  19607. overflow: auto;
  19608. height: 90%;
  19609. display: flex;
  19610. flex-direction: column;
  19611. align-items: flex-start;
  19612. padding-top: 10px;
  19613. box-sizing: border-box;
  19614. position: relative;
  19615. }
  19616. .select_answer_title {
  19617. padding: 0 0 15px 20px;
  19618. color: #c4c4c4;
  19619. }
  19620. .select_box2_answer_box {
  19621. margin: 0 0 10px 20px;
  19622. width: 85%;
  19623. display: flex;
  19624. flex-direction: row;
  19625. flex-wrap: nowrap;
  19626. align-items: center;
  19627. }
  19628. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  19629. color: #000;
  19630. }
  19631. .upAnswerCss {
  19632. position: absolute;
  19633. bottom: 15px;
  19634. right: 15px;
  19635. }
  19636. .upAnswerCss >>> .el-button {
  19637. width: 95px;
  19638. height: 35px;
  19639. line-height: 35px;
  19640. padding: 0;
  19641. }
  19642. .rightWidthCss {
  19643. width: 60%;
  19644. display: flex;
  19645. flex-direction: row;
  19646. align-items: flex-start;
  19647. }
  19648. .rightAnswer {
  19649. display: flex;
  19650. flex-direction: row;
  19651. flex-wrap: nowrap;
  19652. align-items: center;
  19653. color: red;
  19654. margin-bottom: 31px;
  19655. }
  19656. .rightAnswerCss {
  19657. display: flex;
  19658. flex-direction: column;
  19659. flex-wrap: nowrap;
  19660. padding-top: 60px;
  19661. }
  19662. .blueCss {
  19663. color: #767de1;
  19664. margin-left: 10px;
  19665. }
  19666. .redCss {
  19667. color: red;
  19668. }
  19669. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19670. color: rgb(0 123 255) !important;
  19671. }
  19672. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19673. color: rgb(0 123 255) !important;
  19674. }
  19675. .zuoyeYulan {
  19676. padding-top: 15px;
  19677. font-size: 18px;
  19678. display: flex;
  19679. align-items: flex-end;
  19680. }
  19681. .buttonA {
  19682. margin-left: 10px;
  19683. padding: 0;
  19684. }
  19685. .displayBox {
  19686. margin-bottom: 10px;
  19687. display: block;
  19688. border-bottom: 3px solid #eee;
  19689. display: flex;
  19690. align-items: center;
  19691. }
  19692. .easy_comment {
  19693. width: calc(100% - 90px);
  19694. margin-left: 10px;
  19695. display: flex;
  19696. flex-wrap: wrap;
  19697. }
  19698. .easy_comment > div {
  19699. border: 1px solid #4a4a4a;
  19700. color: #666;
  19701. border-radius: 15px;
  19702. padding: 5px 10px;
  19703. font-size: 16px;
  19704. margin-bottom: 10px;
  19705. margin-right: 5px;
  19706. cursor: pointer;
  19707. }
  19708. .easy_comment div:hover {
  19709. border: 1px solid #f7ba2a;
  19710. color: #c69217;
  19711. }
  19712. .xuan_right_box {
  19713. padding: 10px;
  19714. background: rgb(247, 247, 247);
  19715. margin: 10px 12px;
  19716. border-radius: 5px;
  19717. }
  19718. .tool_right_box {
  19719. display: flex;
  19720. align-items: center;
  19721. }
  19722. .tool_right_box + .tool_right_box {
  19723. margin-top: 10px;
  19724. }
  19725. .right_box_xuan {
  19726. background: rgb(0 123 255);
  19727. color: #fff;
  19728. border-radius: 5px;
  19729. padding: 5px;
  19730. margin-left: 10px;
  19731. }
  19732. .pButton:hover {
  19733. opacity: 1 !important;
  19734. }
  19735. .pButton {
  19736. position: fixed;
  19737. /* right: 5%; */
  19738. /* bottom: 5%; */
  19739. color: #fff;
  19740. /* width: 50px;
  19741. height: 50px; */
  19742. /* border-radius: 50%; */
  19743. text-align: center;
  19744. /* line-height: 50px; */
  19745. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  19746. cursor: pointer;
  19747. z-index: 999;
  19748. right: 20px;
  19749. top: 110px;
  19750. width: 50px;
  19751. height: 50px;
  19752. background: #fff;
  19753. display: flex;
  19754. align-items: center;
  19755. justify-content: center;
  19756. box-shadow: 0px 0 8px 2px #c5c5c5;
  19757. border-radius: 5px;
  19758. }
  19759. .pzClass {
  19760. width: calc(100% - 340px);
  19761. }
  19762. .newDialogCss {
  19763. /* position: fixed;
  19764. right: 5%;
  19765. top: 50%;
  19766. width: 340px;
  19767. transform: translateY(-50%);
  19768. height: 60%;
  19769. box-shadow: 0px 0 8px 0px #555555;
  19770. border-radius: 15px;
  19771. z-index: 999; */
  19772. position: fixed;
  19773. right: 20px;
  19774. top: 101px;
  19775. width: 330px;
  19776. height: calc(100% - 80px);
  19777. z-index: 999;
  19778. background: #fff;
  19779. border-top-right-radius: 0px;
  19780. border-bottom-right-radius: 0px;
  19781. overflow: hidden;
  19782. }
  19783. .pzTop {
  19784. color: #fff;
  19785. background: #000;
  19786. display: flex;
  19787. flex-direction: row;
  19788. flex-wrap: nowrap;
  19789. align-items: center;
  19790. justify-content: space-between;
  19791. height: 40px;
  19792. border-radius: 15px 15px 0 0;
  19793. }
  19794. .pzTop2 .checkbox {
  19795. display: flex;
  19796. align-items: center;
  19797. padding: 15px 30px;
  19798. flex: 0 0 auto;
  19799. font-weight: bold;
  19800. border-bottom: 1px solid #eee;
  19801. justify-content: space-between;
  19802. }
  19803. .pzTop2 .check {
  19804. text-align: center;
  19805. cursor: pointer;
  19806. box-sizing: border-box;
  19807. display: flex;
  19808. }
  19809. .pzTop2 img {
  19810. width: 25px;
  19811. cursor: pointer;
  19812. }
  19813. .pzTop > div:nth-child(1) {
  19814. padding-left: 10px;
  19815. }
  19816. .pzTop > div:nth-child(2) {
  19817. width: 15px;
  19818. height: 15px;
  19819. padding-right: 10px;
  19820. cursor: pointer;
  19821. }
  19822. .pzTop > div:nth-child(2) > img {
  19823. width: 100%;
  19824. height: 100%;
  19825. }
  19826. .pzBox,
  19827. .noPzBox {
  19828. height: calc(100% - 60px);
  19829. /* background: #ededed; */
  19830. background: #fff;
  19831. /* border-radius: 0 0 15px 15px; */
  19832. }
  19833. .noPzBox {
  19834. display: flex;
  19835. flex-direction: column;
  19836. flex-wrap: nowrap;
  19837. justify-content: center;
  19838. align-items: center;
  19839. }
  19840. .pzList {
  19841. background: #f7f7f7;
  19842. width: 90%;
  19843. margin: 0 auto 15px;
  19844. border-radius: 5px;
  19845. }
  19846. .pzNavTop {
  19847. display: flex;
  19848. flex-direction: row;
  19849. flex-wrap: nowrap;
  19850. padding: 10px 10px 0 10px;
  19851. align-items: center;
  19852. }
  19853. .pzDelete {
  19854. cursor: pointer;
  19855. margin-left: auto;
  19856. font-size: 14px;
  19857. color: #afafaf;
  19858. }
  19859. .pzNavTop > div:nth-child(1) {
  19860. background: #3760af;
  19861. width: 35px;
  19862. height: 35px;
  19863. color: #fff;
  19864. text-align: center;
  19865. line-height: 35px;
  19866. border-radius: 50%;
  19867. font-size: 14px;
  19868. }
  19869. .pzNavTop > div:nth-child(2) {
  19870. font-size: 18px;
  19871. color: #959595;
  19872. margin-left: 5px;
  19873. }
  19874. .pzContent {
  19875. padding: 10px;
  19876. word-break: break-word;
  19877. }
  19878. .pzContent audio {
  19879. width: 100%;
  19880. }
  19881. .pzContent audio::-webkit-media-controls-panel {
  19882. background: #fff;
  19883. }
  19884. .pzContent >>> img {
  19885. max-width: 100%;
  19886. }
  19887. .pzListBox {
  19888. padding-top: 15px;
  19889. height: calc(100% - 100px);
  19890. overflow: auto;
  19891. }
  19892. .addPzButton {
  19893. position: relative;
  19894. margin-top: 3px;
  19895. width: 100%;
  19896. }
  19897. .addPzButton .img1 {
  19898. position: absolute;
  19899. top: 50%;
  19900. right: 25px;
  19901. transform: translateY(-50%);
  19902. height: 100%;
  19903. display: flex;
  19904. align-items: center;
  19905. }
  19906. .addPzButton .img1 div {
  19907. display: flex;
  19908. }
  19909. .addPzButton .img1 div img {
  19910. width: 28px;
  19911. margin-left: 10px;
  19912. cursor: pointer;
  19913. }
  19914. .addPzButton .img1 div span {
  19915. font-size: 14px;
  19916. margin: 4px 0 0 3px;
  19917. color: #afafaf;
  19918. }
  19919. .addPz {
  19920. background: #4b79ce;
  19921. width: 100px;
  19922. color: #fff;
  19923. font-size: 12px;
  19924. height: 30px;
  19925. margin: 0 auto;
  19926. text-align: center;
  19927. line-height: 30px;
  19928. border-radius: 10px;
  19929. cursor: pointer;
  19930. }
  19931. .addDialogCss {
  19932. position: fixed;
  19933. right: 37%;
  19934. top: 50%;
  19935. width: 600px;
  19936. transform: translateY(-50%);
  19937. height: 70%;
  19938. min-height: 450px;
  19939. box-shadow: 0px 0 8px 0px #555555;
  19940. border-radius: 15px;
  19941. z-index: 999;
  19942. }
  19943. .teacherPz {
  19944. display: flex;
  19945. flex-direction: row;
  19946. align-items: center;
  19947. flex-wrap: nowrap;
  19948. }
  19949. .teacherPzImg {
  19950. width: 30px;
  19951. height: 30px;
  19952. }
  19953. .teacherPzImg > img {
  19954. width: 100%;
  19955. height: 100%;
  19956. }
  19957. .addPzBox {
  19958. height: calc(100% - 40px);
  19959. background: #ededed;
  19960. }
  19961. .pzAudioClass {
  19962. margin: 15px 14px;
  19963. background: #fff;
  19964. height: 100%;
  19965. display: flex;
  19966. justify-content: center;
  19967. align-items: center;
  19968. }
  19969. .pzConText {
  19970. width: 95%;
  19971. height: 100%;
  19972. margin: 10px auto 0;
  19973. border: none;
  19974. background: #fff;
  19975. border-radius: 0px;
  19976. }
  19977. .pzConText >>> .text {
  19978. height: calc(100% - 82px);
  19979. }
  19980. .addTextCss {
  19981. background: #4b79ce;
  19982. width: 80px;
  19983. height: 30px;
  19984. text-align: center;
  19985. color: #fff;
  19986. line-height: 30px;
  19987. border-radius: 10px;
  19988. margin: 10px auto 0;
  19989. cursor: pointer;
  19990. }
  19991. .pzConText:focus-visible {
  19992. border: none !important;
  19993. }
  19994. .maxWidth {
  19995. width: 1000px;
  19996. }
  19997. .noPz {
  19998. width: 150px;
  19999. margin: 0 auto 20%;
  20000. }
  20001. .noPz > img {
  20002. width: 100%;
  20003. height: 100%;
  20004. }
  20005. .pzList .time {
  20006. text-align: right;
  20007. box-sizing: border-box;
  20008. padding: 0 10px 10px 0px;
  20009. color: #949494;
  20010. font-size: 14px;
  20011. }
  20012. /* table 样式 */
  20013. .addPzCheck {
  20014. display: flex;
  20015. flex-direction: row;
  20016. flex-wrap: nowrap;
  20017. padding: 10px 15px 0;
  20018. }
  20019. .addPzCheck span {
  20020. cursor: pointer;
  20021. padding-bottom: 5px;
  20022. font-weight: bold;
  20023. }
  20024. .addPzCheck span + span {
  20025. margin-left: 10px;
  20026. }
  20027. .addPzCheck .isChooseActive {
  20028. color: #3e88f4;
  20029. border-bottom: 2px solid #2f80f3;
  20030. }
  20031. /* code 样式 */
  20032. .scoreBox,
  20033. .scoreDetailBox {
  20034. display: flex;
  20035. align-items: center;
  20036. justify-content: flex-start;
  20037. margin-top: 20px;
  20038. font-size: 18px;
  20039. width: 100%;
  20040. }
  20041. .scoreBox .t,
  20042. .scoreDetailBox .t {
  20043. margin-right: 10px;
  20044. width: 100px;
  20045. text-align: right;
  20046. }
  20047. .scoreDetailBox {
  20048. align-items: flex-start;
  20049. }
  20050. .scoreDetailBox >>> .el-textarea {
  20051. width: calc(100% - 200px);
  20052. }
  20053. .scoreBox >>> .el-input {
  20054. width: 130px;
  20055. font-size: 38px;
  20056. }
  20057. .scoreBox >>> .el-input__inner {
  20058. height: 60px;
  20059. }
  20060. .answerScore {
  20061. position: absolute;
  20062. top: 10px;
  20063. right: 10px;
  20064. background: #0000008f;
  20065. border-radius: 5px;
  20066. padding: 3px 5px;
  20067. font-size: 14px;
  20068. color: #fff;
  20069. cursor: pointer;
  20070. }
  20071. .open_box .switch_box {
  20072. width: 100%;
  20073. margin: 0 auto;
  20074. display: flex;
  20075. justify-content: space-between;
  20076. }
  20077. .open_box .switch_box + .switch_box {
  20078. margin-top: 10px;
  20079. }
  20080. .deleteImg {
  20081. width: 25px !important;
  20082. height: 25px !important;
  20083. cursor: pointer;
  20084. position: absolute;
  20085. top: 10px;
  20086. right: 10px;
  20087. }
  20088. .deleteImg2 {
  20089. width: 15px !important;
  20090. height: 15px !important;
  20091. top: 5px;
  20092. right: 5px;
  20093. }
  20094. .rightW {
  20095. right: 40px;
  20096. }
  20097. .drawPBox {
  20098. display: flex;
  20099. flex-direction: column;
  20100. position: relative;
  20101. }
  20102. .drawPBox span {
  20103. font-size: 18px;
  20104. color: #606266;
  20105. padding-bottom: 10px;
  20106. margin: 10px 0;
  20107. border-bottom: 1px solid #eaeaea;
  20108. }
  20109. .drawPBox img {
  20110. width: 500px;
  20111. height: 300px;
  20112. object-fit: contain;
  20113. cursor: pointer;
  20114. margin: 0 auto;
  20115. }
  20116. .sentenBox {
  20117. background: #fff;
  20118. height: 450px;
  20119. overflow: auto;
  20120. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20121. background-position: 102%;
  20122. background-repeat: no-repeat;
  20123. background-size: 60%;
  20124. }
  20125. .addSen {
  20126. background: #409efe;
  20127. width: 90px;
  20128. color: #fff;
  20129. height: 35px;
  20130. text-align: center;
  20131. line-height: 35px;
  20132. border-radius: 5px;
  20133. float: right;
  20134. margin: 10px 20px 0 0;
  20135. cursor: pointer;
  20136. }
  20137. .sentenTop {
  20138. display: flex;
  20139. flex-direction: row;
  20140. flex-wrap: nowrap;
  20141. align-items: center;
  20142. padding: 55px 0 0 20px;
  20143. box-sizing: border-box;
  20144. }
  20145. .sentenTop > div:nth-child(2) {
  20146. width: 300px;
  20147. margin: 0 15px;
  20148. }
  20149. .sentenTop > div:nth-child(3) {
  20150. background: #409efe;
  20151. color: #fff;
  20152. width: 65px;
  20153. height: 35px;
  20154. text-align: center;
  20155. line-height: 35px;
  20156. border-radius: 5px;
  20157. cursor: pointer;
  20158. }
  20159. .cardList,
  20160. .cardList1 {
  20161. padding: 10px 0 10px 0;
  20162. display: flex;
  20163. flex-direction: row;
  20164. flex-wrap: wrap;
  20165. align-items: center;
  20166. box-sizing: border-box;
  20167. border-bottom: 1px solid #f4f4f4;
  20168. width: 98%;
  20169. margin: 0 auto;
  20170. min-width: 60%;
  20171. max-width: 85%;
  20172. }
  20173. .cardList1 {
  20174. padding: 10px 0 10px 10px !important;
  20175. margin: 0 !important;
  20176. }
  20177. .cardBox {
  20178. display: flex;
  20179. flex-direction: row;
  20180. flex-wrap: wrap;
  20181. align-items: center;
  20182. align-content: center;
  20183. }
  20184. .cardBox > div {
  20185. margin-bottom: 10px;
  20186. }
  20187. .isCard,
  20188. .isChooseCard,
  20189. .noCard,
  20190. .isCard1 {
  20191. width: 130px;
  20192. height: 60px;
  20193. text-align: center;
  20194. line-height: 60px;
  20195. font-size: 20px;
  20196. cursor: pointer;
  20197. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20198. background-size: cover;
  20199. transition: all 2s;
  20200. margin-right: 20px;
  20201. }
  20202. .isCard > div,
  20203. .noCard > div,
  20204. .isCard1 > div {
  20205. white-space: nowrap;
  20206. overflow: hidden;
  20207. text-overflow: ellipsis;
  20208. width: 75%;
  20209. margin: 0 auto;
  20210. }
  20211. .noCard {
  20212. background-image: none;
  20213. }
  20214. .isCard1 {
  20215. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20216. }
  20217. .isChooseCard {
  20218. background-image: none;
  20219. border: 1px dashed #b9b9b9;
  20220. border-radius: 10px;
  20221. }
  20222. .card {
  20223. width: 130px;
  20224. height: 60px;
  20225. }
  20226. .card > img {
  20227. width: 100%;
  20228. height: 100%;
  20229. }
  20230. .rightCardBox {
  20231. margin: 10px 0 0 10px;
  20232. }
  20233. .rightCardBox > div:nth-child(1) {
  20234. margin-bottom: 10px;
  20235. }
  20236. .cardCss {
  20237. display: flex;
  20238. flex-direction: column;
  20239. flex-wrap: nowrap;
  20240. align-items: center;
  20241. border-bottom: 3px solid #b4c3d3;
  20242. padding: 0 0 5px 0;
  20243. margin-right: 10px;
  20244. }
  20245. .cardCss > div:nth-child(2) {
  20246. background: #5b7b9d;
  20247. color: #fff;
  20248. width: 20px;
  20249. height: 20px;
  20250. border-radius: 50%;
  20251. text-align: center;
  20252. line-height: 20px;
  20253. }
  20254. .isWrong {
  20255. display: flex;
  20256. flex-direction: row;
  20257. flex-wrap: nowrap;
  20258. align-content: center;
  20259. align-items: center;
  20260. }
  20261. .answerRight {
  20262. width: 25%;
  20263. }
  20264. .isTj {
  20265. display: flex;
  20266. flex-direction: row;
  20267. flex-wrap: nowrap;
  20268. align-items: center;
  20269. }
  20270. .isTj > div:nth-child(2) {
  20271. color: #727070;
  20272. margin-left: 10px;
  20273. }
  20274. .isTjImg {
  20275. width: 30px;
  20276. height: 30px;
  20277. }
  20278. .isTjImg > img {
  20279. width: 100%;
  20280. height: 100%;
  20281. }
  20282. .cardAnswerBox {
  20283. font-size: 18px;
  20284. width: 97%;
  20285. border: 5px;
  20286. padding: 0;
  20287. border-radius: 5px;
  20288. margin: 10px auto;
  20289. word-break: break-word;
  20290. }
  20291. .w_name {
  20292. margin-bottom: 10px;
  20293. }
  20294. .w_name span {
  20295. font-size: 16px;
  20296. }
  20297. .w_teachert {
  20298. width: 50px !important;
  20299. position: absolute;
  20300. height: auto !important;
  20301. z-index: 10;
  20302. right: 25px;
  20303. top: -25px;
  20304. }
  20305. .group_workBox {
  20306. }
  20307. .group_workBox + .group_workBox {
  20308. margin-top: 20px;
  20309. }
  20310. .group_box {
  20311. padding-bottom: 20px;
  20312. border-bottom: 2px solid #f0f0f0;
  20313. }
  20314. .group_title {
  20315. display: flex;
  20316. align-items: center;
  20317. justify-content: space-between;
  20318. }
  20319. .group_name {
  20320. background-image: url(../../assets/icon/groupN.png);
  20321. width: 220px;
  20322. background-size: 100% 100%;
  20323. height: 67px;
  20324. padding: 0 20px 0 43px;
  20325. box-sizing: border-box;
  20326. line-height: 63px;
  20327. color: #fff;
  20328. overflow: hidden;
  20329. white-space: nowrap;
  20330. text-overflow: ellipsis;
  20331. }
  20332. .group_work {
  20333. width: 100%;
  20334. padding: 0 10px;
  20335. box-sizing: border-box;
  20336. display: flex;
  20337. flex-wrap: wrap;
  20338. }
  20339. .g_d_box {
  20340. display: flex;
  20341. flex-flow: wrap;
  20342. justify-content: space-around;
  20343. }
  20344. .g_d_box .isChair {
  20345. background-image: url(../../assets/avatar.png) !important;
  20346. }
  20347. .g_d_group {
  20348. width: 500px;
  20349. margin-bottom: 80px;
  20350. }
  20351. .g_d_group_chair {
  20352. display: flex;
  20353. align-items: center;
  20354. justify-content: center;
  20355. }
  20356. .g_d_group_chair > div + div {
  20357. margin-left: 30px;
  20358. }
  20359. .g_d_group_chair > div,
  20360. .g_d_group_chair2 > div {
  20361. display: flex;
  20362. flex-direction: column;
  20363. align-items: center;
  20364. }
  20365. .g_d_group_chair > div > span:nth-child(1),
  20366. .g_d_group_chair2 > div > span:nth-child(1) {
  20367. background-image: url(../../assets/icon/chair.png);
  20368. width: 50px;
  20369. height: 50px;
  20370. display: block;
  20371. background-size: 100% 100%;
  20372. }
  20373. .g_d_group_tableBox {
  20374. display: flex;
  20375. align-items: center;
  20376. justify-content: center;
  20377. }
  20378. .g_d_group_chair2 {
  20379. display: flex;
  20380. flex-direction: column;
  20381. align-items: center;
  20382. justify-content: center;
  20383. }
  20384. .g_d_group_chair2 > div + div {
  20385. margin-top: 10px;
  20386. }
  20387. .g_d_group_table {
  20388. background-image: url(../../assets/icon/groupBg.png);
  20389. width: 354px;
  20390. height: 196px;
  20391. background-size: 100% 100%;
  20392. display: flex;
  20393. align-items: center;
  20394. justify-content: center;
  20395. flex-direction: column;
  20396. color: #fff;
  20397. }
  20398. .g_d_group_table > div:nth-child(1) {
  20399. font-size: 24px;
  20400. margin-bottom: 5px;
  20401. }
  20402. .g_d_group_table > div:nth-child(2) div {
  20403. cursor: pointer;
  20404. background: #2e77bf;
  20405. padding: 4px 10px;
  20406. border-radius: 5px;
  20407. }
  20408. .groupBox {
  20409. }
  20410. .groupContent + .groupContent {
  20411. margin-top: 30px;
  20412. }
  20413. .groupTitle {
  20414. font-size: 24px;
  20415. color: rgb(80, 80, 80);
  20416. margin-bottom: 20px;
  20417. }
  20418. .groupName {
  20419. display: flex;
  20420. align-items: center;
  20421. }
  20422. .groupn {
  20423. font-size: 15px;
  20424. margin-right: 10px;
  20425. }
  20426. .groupName + .groupName {
  20427. margin-top: 15px;
  20428. }
  20429. .groupBtn {
  20430. margin-left: 10px;
  20431. }
  20432. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20433. text-align: left;
  20434. }
  20435. .g_d_btnBox {
  20436. display: flex;
  20437. justify-content: flex-end;
  20438. align-items: flex-end;
  20439. margin-bottom: 20px;
  20440. }
  20441. .updateChair {
  20442. position: relative;
  20443. }
  20444. .updateChairBtn {
  20445. position: absolute;
  20446. width: 50px;
  20447. height: 50px;
  20448. overflow: hidden;
  20449. /* display: flex; */
  20450. align-items: center;
  20451. justify-content: center;
  20452. background: #00000087;
  20453. color: #fff;
  20454. border-radius: 50px;
  20455. display: none;
  20456. cursor: pointer;
  20457. }
  20458. .updateChair:hover .updateChairBtn {
  20459. display: flex;
  20460. }
  20461. .group_staic_box {
  20462. display: flex;
  20463. padding: 30px 40px 10px;
  20464. flex-wrap: wrap;
  20465. }
  20466. .group_staic {
  20467. /* width: 50%; */
  20468. margin-bottom: 20px;
  20469. display: flex;
  20470. align-items: center;
  20471. }
  20472. .group_staic span:nth-child(1) {
  20473. width: 150px;
  20474. text-align: right;
  20475. margin-right: 15px;
  20476. }
  20477. .group_staic span:nth-child(2) {
  20478. background: rgb(0 123 255);
  20479. color: #fff;
  20480. border-radius: 5px;
  20481. padding: 5px;
  20482. }
  20483. .codeFileBox {
  20484. height: 300px;
  20485. background: #fff;
  20486. display: flex;
  20487. align-items: center;
  20488. justify-content: center;
  20489. }
  20490. .codeFileBox img {
  20491. width: 200px;
  20492. margin: 0;
  20493. height: auto;
  20494. }
  20495. .codeFileBox div {
  20496. background: rgb(80, 142, 226);
  20497. color: #fff;
  20498. padding: 10px 20px;
  20499. border-radius: 25px;
  20500. cursor: pointer;
  20501. margin-left: 15px;
  20502. }
  20503. .radioBox {
  20504. display: flex;
  20505. flex-direction: column;
  20506. flex-wrap: nowrap;
  20507. align-items: flex-start;
  20508. }
  20509. .radioBox > div {
  20510. margin: 10px 0 0 10px;
  20511. }
  20512. /* .radioBox >>> .el-radio__input,
  20513. .radioBox >>> .el-checkbox__inner {
  20514. margin-left: 10px;
  20515. } */
  20516. .radioBox >>> .el-radio__label,
  20517. .radioBox >>> .el-checkbox__label {
  20518. display: flex;
  20519. align-items: center;
  20520. }
  20521. .radioBox >>> .el-radio__label > span {
  20522. width: 100%;
  20523. display: -webkit-box;
  20524. overflow: hidden;
  20525. white-space: normal !important;
  20526. text-overflow: ellipsis;
  20527. word-wrap: break-word;
  20528. }
  20529. .inImg {
  20530. width: 100px;
  20531. cursor: pointer;
  20532. }
  20533. .inImg > img {
  20534. width: 100%;
  20535. height: 100%;
  20536. object-fit: cover;
  20537. }
  20538. .timuImgBox {
  20539. margin: 10px 0;
  20540. display: flex;
  20541. flex-direction: column;
  20542. flex-wrap: wrap;
  20543. align-items: flex-start;
  20544. }
  20545. .timuImg {
  20546. width: 150px;
  20547. margin: 5px 0;
  20548. cursor: pointer;
  20549. }
  20550. .timuImg > img {
  20551. width: 100%;
  20552. height: 100%;
  20553. object-fit: cover;
  20554. }
  20555. .worksTop {
  20556. display: flex;
  20557. flex-direction: row;
  20558. align-items: flex-end;
  20559. }
  20560. .corOpen {
  20561. margin: 0 0 0 10px;
  20562. font-size: 14px;
  20563. cursor: pointer;
  20564. color: #505050;
  20565. }
  20566. .corOpen:hover {
  20567. color: #499eef;
  20568. }
  20569. .navCorOpenBox {
  20570. display: flex;
  20571. flex-direction: row;
  20572. align-items: center;
  20573. justify-content: space-between;
  20574. height: 55px;
  20575. background: #ffffff;
  20576. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20577. border-radius: 8px 8px 0px 0px;
  20578. z-index: 9;
  20579. position: relative;
  20580. }
  20581. .navCorOpen {
  20582. padding-right: 15px;
  20583. cursor: pointer;
  20584. width: 20px;
  20585. display: flex;
  20586. }
  20587. .navCorOpen > img {
  20588. width: 100%;
  20589. height: 100%;
  20590. }
  20591. .mlImg {
  20592. width: 25px !important;
  20593. min-width: 25px;
  20594. cursor: pointer;
  20595. margin-top: 5px;
  20596. }
  20597. .mlImg > img {
  20598. width: 100%;
  20599. height: 100%;
  20600. }
  20601. .navLeftCss {
  20602. width: 100% !important;
  20603. left: 0 !important;
  20604. }
  20605. .isContentCss {
  20606. width: 100% !important;
  20607. }
  20608. .isAllWidth {
  20609. width: 100% !important;
  20610. }
  20611. .toolBoxSteps {
  20612. position: absolute;
  20613. top: 50%;
  20614. transform: translateY(-50%);
  20615. cursor: pointer;
  20616. width: 60px;
  20617. display: flex;
  20618. align-items: center;
  20619. justify-content: center;
  20620. }
  20621. .toolBoxSteps:nth-child(1) > img,
  20622. .toolBoxSteps:nth-child(2) > img {
  20623. width: 24px;
  20624. }
  20625. .toolBoxSteps:nth-child(1) {
  20626. left: 0;
  20627. }
  20628. .toolBoxSteps:nth-child(2) {
  20629. right: 0;
  20630. }
  20631. .isChooseActive {
  20632. color: #3681fc !important;
  20633. font-weight: bold !important;
  20634. }
  20635. .tool_box {
  20636. width: 100%;
  20637. margin-top: 20px;
  20638. }
  20639. .tool_type_box {
  20640. display: flex;
  20641. flex-direction: row;
  20642. align-items: baseline;
  20643. flex-wrap: nowrap;
  20644. justify-content: flex-start;
  20645. position: relative;
  20646. }
  20647. .toolSort {
  20648. display: flex;
  20649. flex-direction: row;
  20650. flex-wrap: wrap;
  20651. justify-content: flex-start;
  20652. align-items: flex-start;
  20653. }
  20654. .toolSort > div {
  20655. margin: 0 45px 0 0;
  20656. width: auto;
  20657. }
  20658. .tools {
  20659. width: 100%;
  20660. display: flex;
  20661. flex-direction: column;
  20662. flex-wrap: nowrap;
  20663. align-items: flex-start;
  20664. }
  20665. .whiteBIcon {
  20666. width: 80px;
  20667. cursor: pointer;
  20668. display: flex;
  20669. flex-direction: column;
  20670. flex-wrap: nowrap;
  20671. align-items: center;
  20672. }
  20673. .whiteBIcon > img {
  20674. width: 100%;
  20675. height: 100%;
  20676. }
  20677. .whiteBIcon > img {
  20678. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20679. border-radius: 15px;
  20680. }
  20681. .dia_tool_box {
  20682. display: flex;
  20683. flex-wrap: wrap;
  20684. width: 100%;
  20685. }
  20686. .dia_tool_box > div {
  20687. margin-right: 40px;
  20688. }
  20689. .check {
  20690. /* width: 20px;
  20691. height: 20px; */
  20692. cursor: pointer;
  20693. margin: 10px 0;
  20694. }
  20695. .checkDiv {
  20696. display: flex;
  20697. align-items: center;
  20698. }
  20699. .checkDiv span {
  20700. margin-left: 5px;
  20701. color: #858585;
  20702. }
  20703. .check img {
  20704. width: 20px;
  20705. height: 20px;
  20706. }
  20707. /* code 样式 */
  20708. .cont {
  20709. /* -webkit-user-modify: read-write; */
  20710. overflow-wrap: break-word;
  20711. -webkit-line-break: after-white-space;
  20712. }
  20713. /* table 样式 */
  20714. .cont >>> table {
  20715. border-top: 1px solid #ccc;
  20716. border-left: 1px solid #ccc;
  20717. }
  20718. .cont >>> table td,
  20719. .cont >>> table th {
  20720. border-bottom: 1px solid #ccc;
  20721. border-right: 1px solid #ccc;
  20722. /* padding: 20px 5px; */
  20723. padding: 5px 10px;
  20724. max-width: 0px;
  20725. height: 30px;
  20726. vertical-align: baseline;
  20727. box-sizing: border-box;
  20728. }
  20729. .cont >>> table th {
  20730. border-bottom: 2px solid #ccc;
  20731. text-align: center;
  20732. }
  20733. /* blockquote 样式 */
  20734. .cont >>> blockquote {
  20735. display: block;
  20736. border-left: 8px solid #d0e5f2;
  20737. padding: 5px 10px;
  20738. margin: 10px 0;
  20739. line-height: 1.4;
  20740. font-size: 100%;
  20741. background-color: #f1f1f1;
  20742. }
  20743. /* code 样式 */
  20744. .cont >>> code {
  20745. display: inline-block;
  20746. /* *display: inline; */
  20747. zoom: 1;
  20748. background-color: #f1f1f1;
  20749. border-radius: 3px;
  20750. padding: 3px 5px;
  20751. margin: 0 3px;
  20752. }
  20753. .cont >>> pre code {
  20754. display: block;
  20755. }
  20756. /* ul ol 样式 */
  20757. .cont >>> ul,
  20758. ol {
  20759. margin: 10px 0 10px 20px;
  20760. }
  20761. .fileC_box > .fileC_title {
  20762. padding: 10px 5px;
  20763. border-top: 1px solid #cdcdcd;
  20764. font-size: 14px;
  20765. color: #868686;
  20766. width: 88%;
  20767. margin: 0 auto;
  20768. }
  20769. .pl_select_box {
  20770. height: 40px;
  20771. line-height: 40px;
  20772. width: 100%;
  20773. cursor: pointer;
  20774. padding: 0 20px;
  20775. box-sizing: border-box;
  20776. border-radius: 5px;
  20777. border: 1px solid #d6d6d6;
  20778. white-space: nowrap;
  20779. overflow: hidden;
  20780. text-overflow: ellipsis;
  20781. background: #fff;
  20782. text-align: left;
  20783. }
  20784. .stageBoxCss {
  20785. display: flex;
  20786. flex-direction: row;
  20787. flex-wrap: nowrap;
  20788. align-items: center;
  20789. height: 50px;
  20790. border-bottom: 1px solid #e2f5fc;
  20791. cursor: pointer;
  20792. }
  20793. .stageItemTitle {
  20794. display: flex;
  20795. flex-direction: row;
  20796. flex-wrap: nowrap;
  20797. align-items: center;
  20798. margin-left: 6px;
  20799. }
  20800. .stageItemTitle > div:first-child {
  20801. color: #0e1e33;
  20802. font-size: 16px;
  20803. font-weight: bold;
  20804. }
  20805. .stageItemTitle > div:last-child {
  20806. margin-left: 10px;
  20807. font-size: 14px;
  20808. font-weight: 400;
  20809. color: #acb4bf;
  20810. }
  20811. .stageChild {
  20812. height: 0;
  20813. overflow: hidden;
  20814. transition: all 0.5s;
  20815. }
  20816. .navItem {
  20817. background: #f0f4fa;
  20818. border-radius: 8px;
  20819. width: 90%;
  20820. margin: 10px auto 0;
  20821. display: flex;
  20822. flex-direction: row;
  20823. flex-wrap: nowrap;
  20824. justify-content: flex-start;
  20825. align-items: center;
  20826. }
  20827. .navItemList {
  20828. display: flex;
  20829. flex-direction: row;
  20830. flex-wrap: nowrap;
  20831. align-items: center;
  20832. padding: 18px 13px;
  20833. cursor: pointer;
  20834. font-size: 16px;
  20835. font-weight: 400;
  20836. color: #0e1e33;
  20837. justify-content: flex-start;
  20838. width: 100%;
  20839. border-radius: 8px;
  20840. }
  20841. .navItemList > div {
  20842. font-size: 16px;
  20843. font-weight: 400;
  20844. color: #0e1e33;
  20845. }
  20846. .navItemList > div:first-child {
  20847. min-width: 60px;
  20848. }
  20849. .navItemList > div:last-child {
  20850. display: -webkit-box;
  20851. overflow: hidden;
  20852. white-space: normal !important;
  20853. text-overflow: ellipsis;
  20854. word-wrap: break-word;
  20855. -webkit-line-clamp: 2;
  20856. -webkit-box-orient: vertical;
  20857. }
  20858. .isItemList {
  20859. background: #3681fc;
  20860. }
  20861. .isItemList > div {
  20862. color: #fff;
  20863. }
  20864. .navListItem {
  20865. width: 280px;
  20866. height: 50px;
  20867. margin: 0px auto 10px;
  20868. display: flex;
  20869. flex-direction: row;
  20870. flex-wrap: nowrap;
  20871. align-items: center;
  20872. justify-content: space-between;
  20873. background: #f0f4fa;
  20874. border-radius: 6px 6px 6px 6px;
  20875. }
  20876. .downIcon {
  20877. width: 20px;
  20878. height: 20px;
  20879. margin-right: 15px;
  20880. cursor: pointer;
  20881. }
  20882. .downIcon > img {
  20883. width: 100%;
  20884. height: 100%;
  20885. }
  20886. .newButton {
  20887. width: 102px;
  20888. height: 36px;
  20889. background: #e7ebf1;
  20890. border-radius: 4px;
  20891. color: #0e1e33;
  20892. font-weight: 400;
  20893. font-size: 14px;
  20894. border: none;
  20895. float: right;
  20896. margin-left: 10px;
  20897. }
  20898. </style>