studyStudent.vue 680 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div
  14. class="pButton"
  15. style="
  16. left: 0;
  17. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18. top: 140px;
  19. "
  20. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  21. @click="setContent2(true)"
  22. >
  23. <!-- 批 , getCourseDetail()-->
  24. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  25. </div>
  26. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  27. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  28. <div
  29. style="border-bottom: 1px solid #cad1dc; padding: 13px 0; width: 100%"
  30. >
  31. <div class="courseTitle">
  32. <div style="max-width: calc(100% - 40px); width: auto">
  33. <el-tooltip
  34. effect="light"
  35. :content="courseDetail.title"
  36. placement="top"
  37. >
  38. <div class="ctitle">
  39. {{ courseDetail.title }}
  40. </div>
  41. </el-tooltip>
  42. </div>
  43. <el-tooltip effect="light" content="收缩" placement="top">
  44. <div class="mlImg" @click="setContent2(false)">
  45. <img src="../assets/icon/newIcon/mlBtn.png" alt="" />
  46. </div>
  47. </el-tooltip>
  48. </div>
  49. <div class="inviteBox" v-if="tcid && inviteCode">
  50. <div>
  51. <span>随机码:{{ inviteCode }}</span>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="cru_selectBox">
  56. <div
  57. style="
  58. background: #fff;
  59. margin: 20px 10px 10px 10px;
  60. border-radius: 8px;
  61. "
  62. v-for="(item, stageIndex) in navList"
  63. :key="stageIndex"
  64. >
  65. <div class="stageBoxCss" @click="get(stageIndex)">
  66. <div class="closeTri" v-if="item.isOpen">
  67. <img src="../assets/icon/newIcon/openTri.png" alt />
  68. </div>
  69. <div class="closeTri" v-else>
  70. <img src="../assets/icon/newIcon/closeTri.png" alt />
  71. </div>
  72. <div class="stageItemTitle">
  73. <div>阶段{{ stageIndex + 1 }}</div>
  74. <el-tooltip
  75. effect="light"
  76. :content="item.dyName"
  77. placement="top"
  78. >
  79. <div>
  80. {{ item.dyName }}
  81. </div>
  82. </el-tooltip>
  83. </div>
  84. </div>
  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 class="lockTaskIcon">
  125. <img
  126. src="../assets/lock.png"
  127. v-if="IsLookOpen && !nav.isLook"
  128. alt=""
  129. />
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  138. <div
  139. class="new_top"
  140. style="
  141. position: fixed;
  142. top: 20px;
  143. left: 22%;
  144. width: 77%;
  145. z-index: 999;
  146. border-radius: 12px 12px 0 0;
  147. border-bottom: 1px solid #cad1dc;
  148. padding: 10px 0;
  149. "
  150. :class="{ navLeftCss: !mlDialog }"
  151. >
  152. <div class="courseIndex">
  153. <div>任务{{ taskCount + 1 }}</div>
  154. <el-tooltip
  155. effect="light"
  156. :content="
  157. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  158. "
  159. placement="top"
  160. >
  161. <div>
  162. {{
  163. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  164. .task
  165. }}
  166. </div>
  167. </el-tooltip>
  168. </div>
  169. <div class="btnAll">
  170. <div
  171. class="returnBtn"
  172. @click="nextOrpreSteps(0)"
  173. v-if="!(IsFollow && tType == 2)"
  174. >
  175. 上一步
  176. </div>
  177. <div
  178. class="returnBtn"
  179. @click="nextOrpreSteps(1)"
  180. v-if="!(IsFollow && tType == 2)"
  181. >
  182. 下一步
  183. </div>
  184. <!-- <div
  185. class="returnBtn"
  186. @click="allScrell"
  187. v-if="!(IsFollow && tType == 2)"
  188. >
  189. 全屏
  190. </div> -->
  191. <div class="returnBtn" @click="refreshCourse">刷新</div>
  192. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  193. 评论
  194. </div>
  195. <div
  196. class="returnBtn vedioIcon"
  197. @click="startRecording"
  198. v-if="!videoStart && (tType == 1 || tType == 4)"
  199. >
  200. 录制
  201. </div>
  202. <div
  203. class="returnBtn"
  204. @click="stopRecording"
  205. v-else-if="tType == 1 || tType == 4"
  206. style="background: #ee5255"
  207. >
  208. 下载
  209. </div>
  210. <div
  211. class="returnBtn lockIcon"
  212. @click="juriVisible = true"
  213. v-if="tType == 1"
  214. >
  215. 权限
  216. </div>
  217. <div
  218. class="returnBtn returnIcon"
  219. @click.stop="
  220. goTo(
  221. '/courseDetail?userid=' +
  222. userid +
  223. '&oid=' +
  224. oid +
  225. '&org=' +
  226. org +
  227. '&cid=' +
  228. classId +
  229. '&courseId=' +
  230. id +
  231. '&tType=' +
  232. tType +
  233. '&screenType=' +
  234. screenType
  235. )
  236. "
  237. >
  238. 返回
  239. </div>
  240. </div>
  241. </div>
  242. <div
  243. class="isNoMessage"
  244. v-if="
  245. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  246. .chapterData.length == 0 &&
  247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  248. .toolChoose[0].tool.length == 0 &&
  249. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  250. .taskDetail == '' &&
  251. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  252. .eList &&
  253. !(
  254. courseDetail.userid == userid ||
  255. (courseDetail.course_teacher &&
  256. courseDetail.course_teacher.indexOf(userid) != -1)
  257. )
  258. "
  259. >
  260. <img src="../assets/icon/isNoMessage.png" alt />
  261. </div>
  262. <div class="study_top" :class="{ pzClass: pzDialog }">
  263. <div
  264. class="vedioBox"
  265. v-if="
  266. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  267. .taskDetail != '' || vChapterData[taskCount].length > 0 || fileC[taskCount].length > 0
  268. "
  269. style="border-radius: 0 0 20px 20px"
  270. >
  271. <div
  272. class="taskBox"
  273. v-if="
  274. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  275. .taskDetail != ''
  276. "
  277. >
  278. <div
  279. style="
  280. display: flex;
  281. flex-wrap: nowrap;
  282. flex-direction: column;
  283. position: relative;
  284. "
  285. >
  286. <div
  287. style="padding: 15px 0; line-height: 29px; font-size: 18px"
  288. class="cont"
  289. v-if="
  290. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  291. .taskDetail != ''
  292. "
  293. v-html="
  294. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  295. .taskDetail
  296. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  297. taskCount
  298. ].taskDetail
  299. : '暂无描述'
  300. "
  301. ></div>
  302. </div>
  303. </div>
  304. <div
  305. class="student_head"
  306. v-if="
  307. vChapterData[taskCount].length > 0 ||
  308. fileC[taskCount].length > 0
  309. "
  310. >
  311. <div class="vedioTaskBox">
  312. <div
  313. :class="
  314. contentDialog == false
  315. ? 'box_course isContentCss'
  316. : 'box_course'
  317. "
  318. v-if="
  319. vChapterData.length > 0 &&
  320. vChapterData[taskCount] &&
  321. showType !== ''
  322. "
  323. >
  324. <div class="wheel" style="height: auto" v-if="showType === 0">
  325. <div
  326. class="workd_media"
  327. style="height: 650px; width: calc(100% - 50px)"
  328. >
  329. <video-player
  330. class="video-player vjs-custom-skin"
  331. :class="contentDialog == false ? 'isAllWidth' : ''"
  332. :playsinline="true"
  333. :options="playerO[taskCount]"
  334. @play="onPlayerPlay($event)"
  335. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  336. ></video-player>
  337. </div>
  338. </div>
  339. <div
  340. class="wheel"
  341. v-if="showType == 1"
  342. style="
  343. box-shadow: 0 0 6px 1px #f2f2f2;
  344. width: 95%;
  345. margin: 0 auto;
  346. background: #f1f1f1;
  347. "
  348. >
  349. <div class="title">查看文档</div>
  350. <el-form class="textBox">
  351. <el-form-item class="textTitle">
  352. <div style="font-size: 22px">
  353. {{ text.name }}
  354. </div>
  355. </el-form-item>
  356. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  357. <div v-html="text.url" class="textContent cont"></div>
  358. </el-form>
  359. </div>
  360. <div
  361. class="wheel"
  362. v-if="
  363. pptImgUrl1.indexOf(
  364. 'https://view.officeapps.live.com/op/view.aspx?src='
  365. ) != -1 && showType == 2
  366. "
  367. style="width: 95%; margin: 0 auto"
  368. >
  369. <iframe
  370. style="width: 100%; height: 100%; border: none"
  371. :src="pptImgUrl1"
  372. ></iframe>
  373. </div>
  374. <div
  375. class="wheel"
  376. v-else-if="showType == 2"
  377. style="width: 95%; margin: 0 auto"
  378. >
  379. <iframe
  380. style="width: 100%; height: 100%; border: none"
  381. security="restricted"
  382. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  383. :src="pptImgUrl1"
  384. ></iframe>
  385. </div>
  386. <div
  387. class="wheel"
  388. v-if="showType == 3"
  389. style="width: 95%; margin: 0 auto"
  390. >
  391. <pdf
  392. :pdfUrl="pptImgUrl1"
  393. style="width: 100%; height: 100%; overflow: auto"
  394. ></pdf>
  395. </div>
  396. <div
  397. class="wheel"
  398. v-if="showType == 4"
  399. style="width: 95%; margin: 0 auto"
  400. >
  401. <el-image
  402. :src="pptImgUrl1"
  403. fit="contain"
  404. style="width: 100%; height: 100%; cursor: pointer"
  405. @click="previewImg(pptImgUrl1)"
  406. ></el-image>
  407. </div>
  408. </div>
  409. <div
  410. class="pButton"
  411. style="
  412. position: absolute;
  413. right: 20px;
  414. top: 0;
  415. background: #205cc6;
  416. z-index: 998;
  417. opacity: 0.8;
  418. "
  419. v-if="!contentDialog"
  420. @click="setContent(true)"
  421. >
  422. <!-- 批 -->
  423. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  424. </div>
  425. <div
  426. v-if="contentDialog == true"
  427. :style="{
  428. width:
  429. (vChapterData[taskCount].length > 0 ||
  430. fileC[taskCount].length > 0) &&
  431. showType === ''
  432. ? 'calc(100%)'
  433. : '300px',
  434. margin:
  435. (vChapterData[taskCount].length > 0 ||
  436. fileC[taskCount].length > 0) &&
  437. showType === ''
  438. ? '0 15px'
  439. : '0 15px 0 0',
  440. }"
  441. >
  442. <div
  443. class="vedioList"
  444. v-if="
  445. vChapterData[taskCount].length > 0 ||
  446. fileC[taskCount].length > 0
  447. "
  448. style="height: 650px"
  449. >
  450. <div class="navCorOpenBox">
  451. <div class="navTitile">内容列表:</div>
  452. <div class="navCorOpen" @click="setContent(false)">
  453. <img src="../assets/icon/newIcon/mlBtn.png" alt="" />
  454. </div>
  455. </div>
  456. <div class="navBox">
  457. <div
  458. v-show="
  459. vChapterData[taskCount].length > 0 ||
  460. fileC[taskCount].length > 0
  461. "
  462. style="padding: 10px 0 25px 0"
  463. >
  464. <div
  465. class="vedioTimeBox"
  466. v-for="(vitem, vindex) in vChapterData[taskCount]"
  467. :key="vindex + '1'"
  468. >
  469. <div class="navListItem" v-if="vitem.type == 2">
  470. <div
  471. @click="lookVedio(vitem.url, vindex)"
  472. class="navText"
  473. :class="isClickNav == vindex ? 'isClickNav' : ''"
  474. >
  475. <span v-if="vitem.text">{{ vitem.text }}-</span
  476. >{{ vitem.name }}
  477. </div>
  478. <div class="downIcon" @click="downloadFile2(vitem)">
  479. <img src="../assets/icon/newIcon/down.png" alt />
  480. </div>
  481. </div>
  482. <div class="navListItem" v-if="vitem.type == 6">
  483. <div
  484. @click="lookText(taskCount, vindex)"
  485. class="navText"
  486. :class="isClickNav == vindex ? 'isClickNav' : ''"
  487. >
  488. {{ vitem.name }}.doc
  489. </div>
  490. <!-- <div
  491. class="downIcon"
  492. @click="downloadFile(vitem.url)"
  493. >
  494. <img src="../assets/icon/newIcon/down.png" alt />
  495. </div> -->
  496. </div>
  497. <div class="navListItem" v-if="vitem.type == 8">
  498. <div
  499. @click="doUrl(vitem.url, vindex)"
  500. class="navText"
  501. :class="isClickNav == vindex ? 'isClickNav' : ''"
  502. >
  503. {{ vitem.title ? vitem.title : vitem.url }}
  504. </div>
  505. <!-- <div
  506. class="downIcon"
  507. @click="downloadFile(vitem.url)"
  508. >
  509. <img src="../assets/icon/newIcon/down.png" alt />
  510. </div> -->
  511. </div>
  512. <div class="navListItem" v-if="vitem.type == 3">
  513. <div
  514. @click="downFile(vitem, vindex)"
  515. class="navText"
  516. :class="isClickNav == vindex ? 'isClickNav' : ''"
  517. >
  518. <span v-if="vitem.text">{{ vitem.text }}-</span
  519. >{{ vitem.name }}
  520. </div>
  521. <div class="downIcon" @click="downloadFile2(vitem)">
  522. <img src="../assets/icon/newIcon/down.png" alt />
  523. </div>
  524. </div>
  525. <div class="navListItem" v-if="vitem.type == 12">
  526. <div class="navText" @click="downloadFile2(vitem)">
  527. <span v-if="vitem.text">{{ vitem.text }}-</span
  528. >{{ vitem.name }}
  529. </div>
  530. <div class="downIcon" @click="downloadFile2(vitem)">
  531. <img src="../assets/icon/newIcon/down.png" alt />
  532. </div>
  533. </div>
  534. <div class="navListItem" v-if="vitem.type == 13">
  535. <div
  536. class="navText"
  537. @click="checkPhoto(vitem, vindex)"
  538. :class="isClickNav == vindex ? 'isClickNav' : ''"
  539. >
  540. {{ vitem.name }}
  541. </div>
  542. <div class="downIcon" @click="downloadFile2(vitem)">
  543. <img src="../assets/icon/newIcon/down.png" alt />
  544. </div>
  545. </div>
  546. </div>
  547. <div
  548. class="fileC_box"
  549. v-if="fileC[taskCount].length > 0"
  550. >
  551. <div class="fileC_title">以下文件不支持预览</div>
  552. <div
  553. class="vedioTimeBox"
  554. v-for="(vitem, vindex) in fileC[taskCount]"
  555. :key="vindex + '1'"
  556. >
  557. <div class="navListItem" v-if="vitem.type == 12">
  558. <div class="navText" style="color: #acb4bf">
  559. <span v-if="vitem.text">{{ vitem.text }}-</span
  560. >{{ vitem.name }}
  561. </div>
  562. <div
  563. class="downIcon"
  564. @click="downloadFile2(vitem)"
  565. >
  566. <img
  567. src="../assets/icon/newIcon/down.png"
  568. alt
  569. />
  570. </div>
  571. </div>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. <div style="width: calc(100% - 315px)">
  580. <div
  581. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  582. v-if="showType == 2 || showType == 3"
  583. >
  584. <el-button
  585. type="primary"
  586. class="newButton"
  587. @click="checkFileFull(showType, pptImgUrl1)"
  588. >全屏查看</el-button
  589. >
  590. <el-button
  591. type="primary"
  592. class="newButton"
  593. @click="downloadFile(pptImgUrl1)"
  594. v-if="showType != 2"
  595. >文件下载</el-button
  596. >
  597. <el-button
  598. class="newButton"
  599. v-if="
  600. showType == 2 &&
  601. pptImgUrl1.indexOf(
  602. 'https://view.officeapps.live.com/op/view.aspx?src='
  603. ) == -1
  604. "
  605. type="primary"
  606. @click="openLine(pptImgUrl1)"
  607. >打开链接
  608. </el-button>
  609. </div>
  610. <div
  611. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  612. v-if="showType == 1"
  613. >
  614. <el-button
  615. type="primary"
  616. class="newButton"
  617. @click="checkFileFull(showType, text)"
  618. >全屏查看</el-button
  619. >
  620. </div>
  621. </div>
  622. </div>
  623. </div>
  624. <div class="student_body" v-resize="resize">
  625. <div
  626. class="vedioBox"
  627. :style="{
  628. borderRadius:
  629. vChapterData[taskCount].length == 0 &&
  630. fileC[taskCount].length == 0
  631. ? '0 0 20px 20px'
  632. : '20px',
  633. }"
  634. v-if="
  635. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  636. .toolChoose[0].tool &&
  637. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  638. .toolChoose[0].tool.length > 0) ||
  639. courseDetail.userid == userid ||
  640. (courseDetail.course_teacher &&
  641. courseDetail.course_teacher.indexOf(userid) != -1)
  642. "
  643. >
  644. <div
  645. class="vedioBox"
  646. v-if="
  647. courseDetail.userid == userid ||
  648. (courseDetail.course_teacher &&
  649. courseDetail.course_teacher.indexOf(userid) != -1)
  650. "
  651. >
  652. <div class="queTop" style="padding: 15px 0 15px 37px;justify-content: space-between">
  653. <div class="queTopTitle">工具栏</div>
  654. <div class="queTopRight">
  655. <div
  656. class="queTopClose"
  657. v-if="isClose == 0"
  658. @click="isClose = 1"
  659. >
  660. 展开
  661. <div class="closeImg"><img src="../assets/icon/newIcon/close.png" alt=""></div>
  662. </div>
  663. <div
  664. class="queTopClose"
  665. v-if="isClose == 1"
  666. @click="isClose = 0"
  667. >
  668. 收缩
  669. <div class="openImg"><img src="../assets/icon/newIcon/open.png" alt=""></div>
  670. </div>
  671. <el-button
  672. style="margin: 0 30px 0 auto"
  673. type="primary"
  674. size="small"
  675. @click="addToolChoose"
  676. >确定</el-button
  677. >
  678. </div>
  679. </div>
  680. <div
  681. class="tool_work_box"
  682. :style="isClose == 0 ? 'display:none' : 'display:block'"
  683. >
  684. <div class="tool_box">
  685. <div class="tool_type_box">
  686. <div class="chooseWho">
  687. <div
  688. :class="toolType == 0 ? 'isChooseActive' : ''"
  689. @click="(toolType = 0), $forceUpdate()"
  690. >
  691. 互动类
  692. </div>
  693. <div
  694. :class="toolType == 1 ? 'isChooseActive' : ''"
  695. @click="(toolType = 1), $forceUpdate()"
  696. >
  697. 思维类
  698. </div>
  699. <!-- <div
  700. :class="toolType == 6 ? 'isChooseActive' : ''"
  701. @click="(toolType = 6), $forceUpdate()"
  702. >
  703. 协作类
  704. </div> -->
  705. <div
  706. :class="toolType == 2 ? 'isChooseActive' : ''"
  707. @click="(toolType = 2), $forceUpdate()"
  708. >
  709. 测评类
  710. </div>
  711. <!-- <div
  712. :class="toolType == 7 ? 'isChooseActive' : ''"
  713. @click="(toolType = 7), $forceUpdate()"
  714. >
  715. 评价类
  716. </div> -->
  717. <div
  718. :class="toolType == 3 ? 'isChooseActive' : ''"
  719. @click="(toolType = 3), $forceUpdate()"
  720. >
  721. 学科类
  722. </div>
  723. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  724. " @click="(toolType = 5), $forceUpdate()">
  725. 学科类
  726. </div>
  727. <div :class="toolType == 4 ? 'isChooseActive' : ''
  728. " @click="(toolType = 4), $forceUpdate()">
  729. 其他
  730. </div> -->
  731. </div>
  732. </div>
  733. <div>
  734. <div class="toolSort" v-if="toolType == 0">
  735. <div class="tool">
  736. <div class="whiteBIcon" @click="addTools2(10)">
  737. <img
  738. src="../assets/icon/thirdToolList/time.png"
  739. alt
  740. />
  741. <div style="margin: 5px 0">倒计时</div>
  742. </div>
  743. <div class="check" @click="addTools2(10)">
  744. <img
  745. src="../assets/icon/checkNo.png"
  746. alt
  747. v-if="checktoolArray.indexOf(10) == -1"
  748. />
  749. <div class="checkDiv" v-else>
  750. <img
  751. src="../assets/icon/checkedIs.png"
  752. alt
  753. /><span>已选择</span>
  754. </div>
  755. </div>
  756. </div>
  757. <div class="tool">
  758. <div class="whiteBIcon" @click="addTools2(65)">
  759. <img
  760. src="../assets/icon/firstToolList/pickPeople.png"
  761. alt
  762. />
  763. <div style="margin: 5px 0">挑人</div>
  764. </div>
  765. <div class="check" @click="addTools2(65)">
  766. <img
  767. src="../assets/icon/checkNo.png"
  768. alt
  769. v-if="checktoolArray.indexOf(65) == -1"
  770. />
  771. <div class="checkDiv" v-else>
  772. <img
  773. src="../assets/icon/checkedIs.png"
  774. alt
  775. /><span>已选择</span>
  776. </div>
  777. </div>
  778. </div>
  779. </div>
  780. <div class="toolSort" v-if="toolType == 1">
  781. <div class="tool">
  782. <div class="whiteBIcon" @click="addTools2(7)">
  783. <img
  784. src="../assets/icon/secondToolList/mindNetwork.png"
  785. alt
  786. />
  787. <div style="margin: 5px 0">思维网格</div>
  788. </div>
  789. <div class="check" @click="addTools2(7)">
  790. <img
  791. src="../assets/icon/checkNo.png"
  792. alt
  793. v-if="checktoolArray.indexOf(7) == -1"
  794. />
  795. <div class="checkDiv" v-else>
  796. <img
  797. src="../assets/icon/checkedIs.png"
  798. alt
  799. /><span>已选择</span>
  800. </div>
  801. </div>
  802. </div>
  803. <div class="tool">
  804. <div class="whiteBIcon" @click="addTools2(1)">
  805. <img
  806. src="../assets/icon/secondToolList/whiteBoard.png"
  807. alt
  808. />
  809. <div style="margin: 5px 0">电子白板</div>
  810. </div>
  811. <div class="check" @click="addTools2(1)">
  812. <img
  813. src="../assets/icon/checkNo.png"
  814. alt
  815. v-if="checktoolArray.indexOf(1) == -1"
  816. />
  817. <div class="checkDiv" v-else>
  818. <img
  819. src="../assets/icon/checkedIs.png"
  820. alt
  821. /><span>已选择</span>
  822. </div>
  823. </div>
  824. </div>
  825. <div class="tool">
  826. <div class="whiteBIcon" @click="addTools2(52)">
  827. <img
  828. src="../assets/icon/fourthToolList/text.png"
  829. alt
  830. />
  831. <div style="margin: 5px 0">文档</div>
  832. </div>
  833. <div class="check" @click="addTools2(52)">
  834. <img
  835. src="../assets/icon/checkNo.png"
  836. alt
  837. v-if="checktoolArray.indexOf(52) == -1"
  838. />
  839. <div class="checkDiv" v-else>
  840. <img
  841. src="../assets/icon/checkedIs.png"
  842. alt
  843. /><span>已选择</span>
  844. </div>
  845. </div>
  846. </div>
  847. <div class="tool">
  848. <div class="whiteBIcon" @click="addTools2(3)">
  849. <img
  850. src="../assets/icon/secondToolList/mindMapping.png"
  851. alt
  852. />
  853. <div style="margin: 5px 0">思维导图</div>
  854. </div>
  855. <div class="check" @click="addTools2(3)">
  856. <img
  857. src="../assets/icon/checkNo.png"
  858. alt
  859. v-if="checktoolArray.indexOf(3) == -1"
  860. />
  861. <div class="checkDiv" v-else>
  862. <img
  863. src="../assets/icon/checkedIs.png"
  864. alt
  865. /><span>已选择</span>
  866. </div>
  867. </div>
  868. </div>
  869. <div class="tool">
  870. <div class="whiteBIcon" @click="addTools2(48)">
  871. <img
  872. src="../assets/icon/fourthToolList/table.png"
  873. alt
  874. />
  875. <div style="margin: 5px 0">表格</div>
  876. </div>
  877. <div class="check" @click="addTools2(48)">
  878. <img
  879. src="../assets/icon/checkNo.png"
  880. alt
  881. v-if="checktoolArray.indexOf(48) == -1"
  882. />
  883. <div class="checkDiv" v-else>
  884. <img
  885. src="../assets/icon/checkedIs.png"
  886. alt
  887. /><span>已选择</span>
  888. </div>
  889. </div>
  890. </div>
  891. </div>
  892. <div class="toolSort" v-if="toolType == 6">
  893. <div v-show="tooC == 49">
  894. <img
  895. @click="addTools(tooC, toolIndex, taskCount)"
  896. src="../assets/icon/fourthToolList/group.png"
  897. alt
  898. />
  899. <div style="margin: 5px 0">学生分组</div>
  900. </div>
  901. </div>
  902. <div class="toolSort" v-if="toolType == 2">
  903. <div class="tool">
  904. <div class="whiteBIcon" @click="addTools2(16)">
  905. <img
  906. src="../assets/icon/thirdToolList/work.png"
  907. alt
  908. />
  909. <div style="margin: 5px 0">作业提交</div>
  910. </div>
  911. <div class="check" @click="addTools2(16)">
  912. <img
  913. src="../assets/icon/checkNo.png"
  914. alt
  915. v-if="checktoolArray.indexOf(16) == -1"
  916. />
  917. <div class="checkDiv" v-else>
  918. <img
  919. src="../assets/icon/checkedIs.png"
  920. alt
  921. /><span>已选择</span>
  922. </div>
  923. </div>
  924. </div>
  925. <div class="tool">
  926. <div class="whiteBIcon" @click="addTools2(50)">
  927. <img
  928. src="../assets/icon/thirdToolList/plwork.png"
  929. alt
  930. />
  931. <div style="margin: 5px 0">批量上传</div>
  932. </div>
  933. <div class="check" @click="addTools2(50)">
  934. <img
  935. src="../assets/icon/checkNo.png"
  936. alt
  937. v-if="checktoolArray.indexOf(50) == -1"
  938. />
  939. <div class="checkDiv" v-else>
  940. <img
  941. src="../assets/icon/checkedIs.png"
  942. alt
  943. /><span>已选择</span>
  944. </div>
  945. </div>
  946. </div>
  947. </div>
  948. <div class="toolSort" v-if="toolType == 3">
  949. <div class="tool">
  950. <div class="whiteBIcon" @click="addTools2(18)">
  951. <img
  952. src="../assets/icon/thirdToolList/trainPlatform.png"
  953. alt
  954. />
  955. <div style="margin: 5px 0">训练平台</div>
  956. </div>
  957. <div class="check" @click="addTools2(18)">
  958. <img
  959. src="../assets/icon/checkNo.png"
  960. alt
  961. v-if="checktoolArray.indexOf(18) == -1"
  962. />
  963. <div class="checkDiv" v-else>
  964. <img
  965. src="../assets/icon/checkedIs.png"
  966. alt
  967. /><span>已选择</span>
  968. </div>
  969. </div>
  970. </div>
  971. <div class="tool">
  972. <div class="whiteBIcon" @click="addTools2(21)">
  973. <img
  974. src="../assets/icon/fourthToolList/program.png"
  975. alt
  976. />
  977. <div style="margin: 5px 0">编程平台</div>
  978. </div>
  979. <div class="check" @click="addTools2(21)">
  980. <img
  981. src="../assets/icon/checkNo.png"
  982. alt
  983. v-if="checktoolArray.indexOf(21) == -1"
  984. />
  985. <div class="checkDiv" v-else>
  986. <img
  987. src="../assets/icon/checkedIs.png"
  988. alt
  989. /><span>已选择</span>
  990. </div>
  991. </div>
  992. </div>
  993. <div class="tool">
  994. <div class="whiteBIcon" @click="addTools2(22)">
  995. <img
  996. src="../assets/icon/fourthToolList/AIprogram2.png"
  997. alt
  998. />
  999. <div style="margin: 5px 0">AI体验</div>
  1000. </div>
  1001. <div class="check" @click="addTools2(22)">
  1002. <img
  1003. src="../assets/icon/checkNo.png"
  1004. alt
  1005. v-if="checktoolArray.indexOf(22) == -1"
  1006. />
  1007. <div class="checkDiv" v-else>
  1008. <img
  1009. src="../assets/icon/checkedIs.png"
  1010. alt
  1011. /><span>已选择</span>
  1012. </div>
  1013. </div>
  1014. </div>
  1015. <div class="tool">
  1016. <div class="whiteBIcon" @click="addTools2(23)">
  1017. <img
  1018. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1019. alt
  1020. />
  1021. <div style="margin: 5px 0">Python</div>
  1022. </div>
  1023. <div class="check" @click="addTools2(23)">
  1024. <img
  1025. src="../assets/icon/checkNo.png"
  1026. alt
  1027. v-if="checktoolArray.indexOf(23) == -1"
  1028. />
  1029. <div class="checkDiv" v-else>
  1030. <img
  1031. src="../assets/icon/checkedIs.png"
  1032. alt
  1033. /><span>已选择</span>
  1034. </div>
  1035. </div>
  1036. </div>
  1037. <div class="tool">
  1038. <div class="whiteBIcon" @click="addTools2(24)">
  1039. <img
  1040. src="../assets/icon/fourthToolList/AIprogram.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">AI平台</div>
  1044. </div>
  1045. <div class="check" @click="addTools2(24)">
  1046. <img
  1047. src="../assets/icon/checkNo.png"
  1048. alt
  1049. v-if="checktoolArray.indexOf(24) == -1"
  1050. />
  1051. <div class="checkDiv" v-else>
  1052. <img
  1053. src="../assets/icon/checkedIs.png"
  1054. alt
  1055. /><span>已选择</span>
  1056. </div>
  1057. </div>
  1058. </div>
  1059. <div class="tool">
  1060. <div class="whiteBIcon" @click="addTools2(32)">
  1061. <img
  1062. src="../assets/icon/thirdToolList/code.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">源码编辑</div>
  1066. </div>
  1067. <div class="check" @click="addTools2(32)">
  1068. <img
  1069. src="../assets/icon/checkNo.png"
  1070. alt
  1071. v-if="checktoolArray.indexOf(32) == -1"
  1072. />
  1073. <div class="checkDiv" v-else>
  1074. <img
  1075. src="../assets/icon/checkedIs.png"
  1076. alt
  1077. /><span>已选择</span>
  1078. </div>
  1079. </div>
  1080. </div>
  1081. <div class="tool">
  1082. <div class="whiteBIcon" @click="addTools2(57)">
  1083. <img
  1084. src="../assets/icon/fourthToolList/cocopi.png"
  1085. alt
  1086. />
  1087. <div style="margin: 5px 0">CocoPi</div>
  1088. </div>
  1089. <div class="check" @click="addTools2(57)">
  1090. <img
  1091. src="../assets/icon/checkNo.png"
  1092. alt
  1093. v-if="checktoolArray.indexOf(57) == -1"
  1094. />
  1095. <div class="checkDiv" v-else>
  1096. <img
  1097. src="../assets/icon/checkedIs.png"
  1098. alt
  1099. /><span>已选择</span>
  1100. </div>
  1101. </div>
  1102. </div>
  1103. <div class="tool">
  1104. <div class="whiteBIcon" @click="addTools2(63)">
  1105. <img
  1106. src="../assets/icon/fourthToolList/Wood.png"
  1107. alt
  1108. />
  1109. <div style="margin: 5px 0">海龟编程</div>
  1110. </div>
  1111. <div class="check" @click="addTools2(63)">
  1112. <img
  1113. src="../assets/icon/checkNo.png"
  1114. alt
  1115. v-if="checktoolArray.indexOf(63) == -1"
  1116. />
  1117. <div class="checkDiv" v-else>
  1118. <img
  1119. src="../assets/icon/checkedIs.png"
  1120. alt
  1121. /><span>已选择</span>
  1122. </div>
  1123. </div>
  1124. </div>
  1125. </div>
  1126. <div class="toolSort" v-if="toolType == 7">
  1127. <div class="tool">
  1128. <div class="whiteBIcon" @click="addTools2(40)">
  1129. <img
  1130. src="../assets/icon/secondToolList/eval.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">个人评价</div>
  1134. </div>
  1135. <div class="check" @click="addTools2(40)">
  1136. <img
  1137. src="../assets/icon/checkNo.png"
  1138. alt
  1139. v-if="checktoolArray.indexOf(40) == -1"
  1140. />
  1141. <div class="checkDiv" v-else>
  1142. <img
  1143. src="../assets/icon/checkedIs.png"
  1144. alt
  1145. /><span>已选择</span>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. <div class="toolSort" v-if="toolType == 5">
  1151. <div class="tool">
  1152. <div class="whiteBIcon" @click="addTools2(28)">
  1153. <img
  1154. src="../assets/icon/secondToolList/translation.png"
  1155. alt
  1156. />
  1157. <div style="margin: 5px 0">翻译</div>
  1158. </div>
  1159. <div class="check" @click="addTools2(28)">
  1160. <img
  1161. src="../assets/icon/checkNo.png"
  1162. alt
  1163. v-if="checktoolArray.indexOf(28) == -1"
  1164. />
  1165. <div class="checkDiv" v-else>
  1166. <img
  1167. src="../assets/icon/checkedIs.png"
  1168. alt
  1169. /><span>已选择</span>
  1170. </div>
  1171. </div>
  1172. </div>
  1173. <div class="tool">
  1174. <div class="whiteBIcon" @click="addTools2(37)">
  1175. <img
  1176. src="../assets/icon/secondToolList/mohe.png"
  1177. alt
  1178. />
  1179. <div style="margin: 5px 0">魔盒识字</div>
  1180. </div>
  1181. <div class="check" @click="addTools2(37)">
  1182. <img
  1183. src="../assets/icon/checkNo.png"
  1184. alt
  1185. v-if="checktoolArray.indexOf(37) == -1"
  1186. />
  1187. <div class="checkDiv" v-else>
  1188. <img
  1189. src="../assets/icon/checkedIs.png"
  1190. alt
  1191. /><span>已选择</span>
  1192. </div>
  1193. </div>
  1194. </div>
  1195. <div class="tool">
  1196. <div class="whiteBIcon" @click="addTools2(38)">
  1197. <img
  1198. src="../assets/icon/secondToolList/24game.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">24点</div>
  1202. </div>
  1203. <div class="check" @click="addTools2(38)">
  1204. <img
  1205. src="../assets/icon/checkNo.png"
  1206. alt
  1207. v-if="checktoolArray.indexOf(38) == -1"
  1208. />
  1209. <div class="checkDiv" v-else>
  1210. <img
  1211. src="../assets/icon/checkedIs.png"
  1212. alt
  1213. /><span>已选择</span>
  1214. </div>
  1215. </div>
  1216. </div>
  1217. <div class="tool">
  1218. <div class="whiteBIcon" @click="addTools2(31)">
  1219. <img
  1220. src="../assets/icon/secondToolList/networkPanel.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">数学画板</div>
  1224. </div>
  1225. <div class="check" @click="addTools2(31)">
  1226. <img
  1227. src="../assets/icon/checkNo.png"
  1228. alt
  1229. v-if="checktoolArray.indexOf(31) == -1"
  1230. />
  1231. <div class="checkDiv" v-else>
  1232. <img
  1233. src="../assets/icon/checkedIs.png"
  1234. alt
  1235. /><span>已选择</span>
  1236. </div>
  1237. </div>
  1238. </div>
  1239. <div class="tool">
  1240. <div class="whiteBIcon" @click="addTools2(39)">
  1241. <img
  1242. src="../assets/icon/secondToolList/GeoGebra.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">GeoGebra</div>
  1246. </div>
  1247. <div class="check" @click="addTools2(39)">
  1248. <img
  1249. src="../assets/icon/checkNo.png"
  1250. alt
  1251. v-if="checktoolArray.indexOf(39) == -1"
  1252. />
  1253. <div class="checkDiv" v-else>
  1254. <img
  1255. src="../assets/icon/checkedIs.png"
  1256. alt
  1257. /><span>已选择</span>
  1258. </div>
  1259. </div>
  1260. </div>
  1261. <div class="tool">
  1262. <div class="whiteBIcon" @click="addTools2(58)">
  1263. <img
  1264. src="../assets/icon/fourthToolList/car.png"
  1265. alt
  1266. />
  1267. <div style="margin: 5px 0">模拟驾驶</div>
  1268. </div>
  1269. <div class="check" @click="addTools2(58)">
  1270. <img
  1271. src="../assets/icon/checkNo.png"
  1272. alt
  1273. v-if="checktoolArray.indexOf(58) == -1"
  1274. />
  1275. <div class="checkDiv" v-else>
  1276. <img
  1277. src="../assets/icon/checkedIs.png"
  1278. alt
  1279. /><span>已选择</span>
  1280. </div>
  1281. </div>
  1282. </div>
  1283. <div class="tool">
  1284. <div class="whiteBIcon" @click="addTools2(59)">
  1285. <img
  1286. src="../assets/icon/fourthToolList/lineSearch.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">路径搜索</div>
  1290. </div>
  1291. <div class="check" @click="addTools2(59)">
  1292. <img
  1293. src="../assets/icon/checkNo.png"
  1294. alt
  1295. v-if="checktoolArray.indexOf(59) == -1"
  1296. />
  1297. <div class="checkDiv" v-else>
  1298. <img
  1299. src="../assets/icon/checkedIs.png"
  1300. alt
  1301. /><span>已选择</span>
  1302. </div>
  1303. </div>
  1304. </div>
  1305. <div class="tool">
  1306. <div class="whiteBIcon" @click="addTools2(60)">
  1307. <img
  1308. src="../assets/icon/fourthToolList/deepLearning.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">深度学习</div>
  1312. </div>
  1313. <div class="check" @click="addTools2(60)">
  1314. <img
  1315. src="../assets/icon/checkNo.png"
  1316. alt
  1317. v-if="checktoolArray.indexOf(60) == -1"
  1318. />
  1319. <div class="checkDiv" v-else>
  1320. <img
  1321. src="../assets/icon/checkedIs.png"
  1322. alt
  1323. /><span>已选择</span>
  1324. </div>
  1325. </div>
  1326. </div>
  1327. <div class="tool">
  1328. <div class="whiteBIcon" @click="addTools2(61)">
  1329. <img
  1330. src="../assets/icon/fourthToolList/allHistory.png"
  1331. alt
  1332. />
  1333. <div style="margin: 5px 0">全历史</div>
  1334. </div>
  1335. <div class="check" @click="addTools2(61)">
  1336. <img
  1337. src="../assets/icon/checkNo.png"
  1338. alt
  1339. v-if="checktoolArray.indexOf(61) == -1"
  1340. />
  1341. <div class="checkDiv" v-else>
  1342. <img
  1343. src="../assets/icon/checkedIs.png"
  1344. alt
  1345. /><span>已选择</span>
  1346. </div>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. <div class="toolSort" v-if="toolType == 4">
  1351. <div class="tool">
  1352. <div class="whiteBIcon" @click="addTools2(26)">
  1353. <img
  1354. src="../assets/icon/thirdToolList/courseDesign.png"
  1355. alt
  1356. />
  1357. <div style="margin: 5px 0">课程设计</div>
  1358. </div>
  1359. <div class="check" @click="addTools2(26)">
  1360. <img
  1361. src="../assets/icon/checkNo.png"
  1362. alt
  1363. v-if="checktoolArray.indexOf(26) == -1"
  1364. />
  1365. <div class="checkDiv" v-else>
  1366. <img
  1367. src="../assets/icon/checkedIs.png"
  1368. alt
  1369. /><span>已选择</span>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. <div class="tool">
  1374. <div class="whiteBIcon" @click="addTools2(25)">
  1375. <img
  1376. src="../assets/icon/thirdToolList/evalua.png"
  1377. alt
  1378. />
  1379. <div style="margin: 5px 0">目标管理</div>
  1380. </div>
  1381. <div class="check" @click="addTools2(25)">
  1382. <img
  1383. src="../assets/icon/checkNo.png"
  1384. alt
  1385. v-if="checktoolArray.indexOf(25) == -1"
  1386. />
  1387. <div class="checkDiv" v-else>
  1388. <img
  1389. src="../assets/icon/checkedIs.png"
  1390. alt
  1391. /><span>已选择</span>
  1392. </div>
  1393. </div>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. </div>
  1398. </div>
  1399. </div>
  1400. <div
  1401. class="toolHeng2"
  1402. style="position: relative"
  1403. v-if="
  1404. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1405. .toolChoose[0].tool &&
  1406. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1407. .toolChoose[0].tool.length &&
  1408. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1409. .toolChoose[0].tool.length > 0
  1410. "
  1411. >
  1412. <div class="workNav">工作区</div>
  1413. <div
  1414. class="filebox"
  1415. style="flex-wrap: nowrap"
  1416. v-for="(tool, toolIndex) in chapInfoList[courseType]
  1417. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1418. :key="toolIndex"
  1419. >
  1420. <div class="bzBox">
  1421. <div class="yCss"></div>
  1422. <div>步骤{{ toolIndex + 1 }}</div>
  1423. </div>
  1424. <div class="toolBox">
  1425. <div>
  1426. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1427. :key="indexTool"-->
  1428. <!-- <div class="iframeBox">
  1429. <div
  1430. class="addPoint isBorder"
  1431. v-for="(tooC, toolCIndex) in tool.tool"
  1432. :key="toolCIndex"
  1433. >
  1434. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1435. <div
  1436. class="iframeName"
  1437. >
  1438. 电子白板
  1439. </div>
  1440. <iframe
  1441. src="https://iwb.cocorobo.cn/"
  1442. ref="whiteBoard"
  1443. ></iframe>
  1444. </div>
  1445. </div>
  1446. </div>-->
  1447. <div class="noiframeBox">
  1448. <div
  1449. class="addPoint"
  1450. v-for="(tooC, toolCIndex) in tool.tool"
  1451. :key="toolCIndex"
  1452. >
  1453. <div v-if="tooC == 1">
  1454. <img
  1455. src="../assets/icon/secondToolList/whiteBoard.png"
  1456. alt
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. />
  1459. <div style="margin: 5px 0">电子白板</div>
  1460. </div>
  1461. <div v-if="tooC == 3">
  1462. <img
  1463. src="../assets/icon/secondToolList/mindMapping.png"
  1464. alt
  1465. @click="addTools(tooC, toolIndex, taskCount)"
  1466. />
  1467. <div style="margin: 5px 0">思维导图</div>
  1468. </div>
  1469. <div v-if="tooC == 6">
  1470. <img
  1471. src="../assets/icon/secondToolList/doc.png"
  1472. alt
  1473. @click="addTools(tooC, toolIndex, taskCount)"
  1474. />
  1475. <div style="margin: 5px 0">协同文档</div>
  1476. </div>
  1477. <div v-if="tooC == 7">
  1478. <img
  1479. src="../assets/icon/secondToolList/mindNetwork.png"
  1480. alt
  1481. @click="addTools(tooC, toolIndex, taskCount)"
  1482. />
  1483. <div style="margin: 5px 0">思维网格</div>
  1484. </div>
  1485. <div v-if="tooC == 8">
  1486. <img
  1487. src="../assets/icon/secondToolList/library.png"
  1488. alt
  1489. @click="addTools(tooC, toolIndex, taskCount)"
  1490. />
  1491. <div style="margin: 5px 0">素材库</div>
  1492. </div>
  1493. <div v-if="tooC == 17">
  1494. <img
  1495. src="../assets/icon/secondToolList/library.png"
  1496. alt
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. />
  1499. <div style="margin: 5px 0">学习资料</div>
  1500. </div>
  1501. <div v-if="tooC == 2">
  1502. <img
  1503. @click="addTools(tooC, toolIndex, taskCount)"
  1504. src="../assets/icon/secondToolList/note.png"
  1505. alt
  1506. />
  1507. <div style="margin: 5px 0">便签</div>
  1508. </div>
  1509. <div v-if="tooC == 4">
  1510. <img
  1511. @click="addTools(tooC, toolIndex, taskCount)"
  1512. src="../assets/icon/thirdToolList/ask.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">问卷调查</div>
  1516. </div>
  1517. <div v-if="tooC == 45">
  1518. <img
  1519. @click="addTools(tooC, toolIndex, taskCount)"
  1520. src="../assets/icon/thirdToolList/choose.png"
  1521. alt
  1522. />
  1523. <div style="margin: 5px 0">选择题</div>
  1524. </div>
  1525. <!-- <div v-if="tooC == 5">
  1526. <img
  1527. @click="addTools(tooC, toolIndex, taskCount)"
  1528. src="../assets/icon/thirdToolList/score.png"
  1529. alt
  1530. />
  1531. <div style="margin: 5px 0">量规评分</div>
  1532. </div> -->
  1533. <div v-if="tooC == 10">
  1534. <img
  1535. @click="addTools(tooC, toolIndex, taskCount)"
  1536. src="../assets/icon/thirdToolList/time.png"
  1537. alt
  1538. />
  1539. <div style="margin: 5px 0">倒计时</div>
  1540. </div>
  1541. <div v-if="tooC == 15">
  1542. <img
  1543. @click="addTools(tooC, toolIndex, taskCount)"
  1544. src="../assets/icon/thirdToolList/answer.png"
  1545. alt
  1546. />
  1547. <div style="margin: 5px 0">问答工具</div>
  1548. </div>
  1549. <div v-if="tooC == 26">
  1550. <img
  1551. @click="addTools(tooC, toolIndex, taskCount)"
  1552. src="../assets/icon/thirdToolList/courseDesign.png"
  1553. alt
  1554. />
  1555. <div style="margin: 5px 0">课程设计</div>
  1556. </div>
  1557. <div v-if="tooC == 18">
  1558. <img
  1559. @click="addTools(tooC, toolIndex, taskCount)"
  1560. src="../assets/icon/thirdToolList/trainPlatform.png"
  1561. alt
  1562. />
  1563. <div style="margin: 5px 0">训练服务器</div>
  1564. </div>
  1565. <div v-if="tooC == 16">
  1566. <img
  1567. @click="addTools(tooC, toolIndex, taskCount)"
  1568. src="../assets/icon/thirdToolList/work.png"
  1569. alt
  1570. />
  1571. <div style="margin: 5px 0">作业提交</div>
  1572. </div>
  1573. <div v-if="tooC == 50">
  1574. <img
  1575. @click="addTools(tooC, toolIndex, taskCount)"
  1576. src="../assets/icon/thirdToolList/plwork.png"
  1577. alt
  1578. />
  1579. <div style="margin: 5px 0">批量上传</div>
  1580. </div>
  1581. <div v-if="tooC == 21">
  1582. <img
  1583. @click="addTools(tooC, toolIndex, taskCount)"
  1584. src="../assets/icon/fourthToolList/program.png"
  1585. alt
  1586. />
  1587. <div style="margin: 5px 0">编程平台</div>
  1588. </div>
  1589. <div v-if="tooC == 22">
  1590. <img
  1591. @click="addTools(tooC, toolIndex, taskCount)"
  1592. src="../assets/icon/fourthToolList/program.png"
  1593. alt
  1594. />
  1595. <div style="margin: 5px 0">AI体验</div>
  1596. </div>
  1597. <div v-if="tooC == 23">
  1598. <img
  1599. @click="addTools(tooC, toolIndex, taskCount)"
  1600. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1601. alt
  1602. />
  1603. <div style="margin: 5px 0">Python</div>
  1604. </div>
  1605. <div v-if="tooC == 24">
  1606. <img
  1607. @click="addTools(tooC, toolIndex, taskCount)"
  1608. src="../assets/icon/fourthToolList/AIprogram.png"
  1609. alt
  1610. />
  1611. <div style="margin: 5px 0">AI平台</div>
  1612. </div>
  1613. <div v-if="tooC == 25">
  1614. <img
  1615. @click="addTools(tooC, toolIndex, taskCount)"
  1616. src="../assets/icon/thirdToolList/evalua.png"
  1617. alt
  1618. />
  1619. <div style="margin: 5px 0">目标管理</div>
  1620. </div>
  1621. <div v-if="tooC == 31">
  1622. <img
  1623. @click="addTools(tooC, toolIndex, taskCount)"
  1624. src="../assets/icon/secondToolList/networkPanel.png"
  1625. alt
  1626. />
  1627. <div style="margin: 5px 0">数学画板</div>
  1628. </div>
  1629. <div v-if="tooC == 28">
  1630. <img
  1631. @click="addTools(tooC, toolIndex, taskCount)"
  1632. src="../assets/icon/secondToolList/translation.png"
  1633. alt
  1634. />
  1635. <div style="margin: 5px 0">翻译</div>
  1636. </div>
  1637. <div v-if="tooC == 37">
  1638. <img
  1639. @click="addTools(tooC, toolIndex, taskCount)"
  1640. src="../assets/icon/secondToolList/mohe.png"
  1641. alt
  1642. />
  1643. <div style="margin: 5px 0">魔盒识字</div>
  1644. </div>
  1645. <div v-if="tooC == 38">
  1646. <img
  1647. @click="addTools(tooC, toolIndex, taskCount)"
  1648. src="../assets/icon/secondToolList/24game.png"
  1649. alt
  1650. />
  1651. <div style="margin: 5px 0">24点</div>
  1652. </div>
  1653. <div v-if="tooC == 39">
  1654. <img
  1655. @click="addTools(tooC, toolIndex, taskCount)"
  1656. src="../assets/icon/secondToolList/GeoGebra.png"
  1657. alt
  1658. />
  1659. <div style="margin: 5px 0">GeoGebra</div>
  1660. </div>
  1661. <div v-if="tooC == 32">
  1662. <img
  1663. @click="addTools(tooC, toolIndex, taskCount)"
  1664. src="../assets/icon/thirdToolList/code.png"
  1665. alt
  1666. />
  1667. <div style="margin: 5px 0">源码编辑</div>
  1668. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1669. style="position: absolute;left: 110px;bottom: 30px;">
  1670. 上传文件
  1671. <input type="file" accept="*" style="display: none"
  1672. @change="beforeUpload1($event, 7, toolIndex)" />
  1673. </div> -->
  1674. </div>
  1675. <div v-if="tooC == 40">
  1676. <img
  1677. @click="addTools(tooC, toolIndex, taskCount)"
  1678. src="../assets/icon/secondToolList/eval.png"
  1679. alt
  1680. />
  1681. <div style="margin: 5px 0">个人评价</div>
  1682. </div>
  1683. <div v-if="tooC == 41">
  1684. <img
  1685. @click="addTools(tooC, toolIndex, taskCount)"
  1686. src="../assets/icon/thirdToolList/select.png"
  1687. alt
  1688. />
  1689. <div style="margin: 5px 0">选择填空</div>
  1690. </div>
  1691. <div v-if="tooC == 44">
  1692. <img
  1693. @click="addTools(tooC, toolIndex, taskCount)"
  1694. src="../assets/icon/thirdToolList/hanClass.png"
  1695. alt
  1696. />
  1697. <div style="margin: 5px 0">汉字宫</div>
  1698. </div>
  1699. <div v-if="tooC == 47">
  1700. <img
  1701. @click="addTools(tooC, toolIndex, taskCount)"
  1702. src="../assets/icon/fourthToolList/conSentences.png"
  1703. alt
  1704. />
  1705. <div style="margin: 5px 0">连词成句</div>
  1706. </div>
  1707. <div v-if="tooC == 48">
  1708. <img
  1709. @click="addTools(tooC, toolIndex, taskCount)"
  1710. src="../assets/icon/fourthToolList/table.png"
  1711. alt
  1712. />
  1713. <div style="margin: 5px 0">表格</div>
  1714. </div>
  1715. <div v-if="tooC == 52">
  1716. <img
  1717. @click="addTools(tooC, toolIndex, taskCount)"
  1718. src="../assets/icon/fourthToolList/text.png"
  1719. alt
  1720. />
  1721. <div style="margin: 5px 0">文档</div>
  1722. </div>
  1723. <div v-if="tooC == 49">
  1724. <img
  1725. @click="addTools(tooC, toolIndex, taskCount)"
  1726. src="../assets/icon/fourthToolList/group.png"
  1727. alt
  1728. />
  1729. <div style="margin: 5px 0">学生分组</div>
  1730. </div>
  1731. <div v-if="tooC == 57">
  1732. <img
  1733. @click="addTools(tooC, toolIndex, taskCount)"
  1734. src="../assets/icon/fourthToolList/cocopi.png"
  1735. alt
  1736. />
  1737. <div style="margin: 5px 0">CocoPi</div>
  1738. </div>
  1739. <div v-if="tooC == 58">
  1740. <img
  1741. @click="addTools(tooC, toolIndex, taskCount)"
  1742. src="../assets/icon/fourthToolList/car.png"
  1743. alt
  1744. />
  1745. <div style="margin: 5px 0">模拟驾驶</div>
  1746. </div>
  1747. <div v-if="tooC == 59">
  1748. <img
  1749. @click="addTools(tooC, toolIndex, taskCount)"
  1750. src="../assets/icon/fourthToolList/lineSearch.png"
  1751. alt
  1752. />
  1753. <div style="margin: 5px 0">路径搜索</div>
  1754. </div>
  1755. <div v-if="tooC == 60">
  1756. <img
  1757. @click="addTools(tooC, toolIndex, taskCount)"
  1758. src="../assets/icon/fourthToolList/deepLearning.png"
  1759. alt
  1760. />
  1761. <div style="margin: 5px 0">深度学习</div>
  1762. </div>
  1763. <div v-if="tooC == 61">
  1764. <img
  1765. @click="addTools(tooC, toolIndex, taskCount)"
  1766. src="../assets/icon/fourthToolList/allHistory.png"
  1767. alt
  1768. />
  1769. <div style="margin: 5px 0">全历史</div>
  1770. </div>
  1771. <div v-if="tooC == 62">
  1772. <img
  1773. @click="addTools(tooC, toolIndex, taskCount)"
  1774. src="../assets/icon/fourthToolList/interVideo.png"
  1775. alt
  1776. />
  1777. <div style="margin: 5px 0">交互视频</div>
  1778. </div>
  1779. <div v-if="tooC == 63">
  1780. <img
  1781. @click="addTools(tooC, toolIndex, taskCount)"
  1782. src="../assets/icon/fourthToolList/Wood.png"
  1783. alt
  1784. />
  1785. <div style="margin: 5px 0">海龟编程</div>
  1786. </div>
  1787. <div v-if="tooC == 65">
  1788. <img
  1789. @click="addTools(tooC, toolIndex, taskCount)"
  1790. src="../assets/icon/firstToolList/pickPeople.png"
  1791. alt
  1792. />
  1793. <div style="margin: 5px 0">挑人</div>
  1794. </div>
  1795. </div>
  1796. </div>
  1797. </div>
  1798. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1799. <!-- <div class="toolTitle">工具描述</div> -->
  1800. <div v-html="contentConvent(tool.toolDetail)"></div>
  1801. </div>
  1802. <el-button
  1803. type="primary"
  1804. v-if="tool.tool[0] == 32"
  1805. style="position: absolute; right: 30px; top: 30px"
  1806. @click="addImg($event)"
  1807. >上传作业<input
  1808. type="file"
  1809. accept="*"
  1810. style="display: none"
  1811. @change="beforeUpload1($event, 7, toolIndex)"
  1812. /></el-button>
  1813. <el-button
  1814. type="primary"
  1815. v-if="tool.tool[0] == 15"
  1816. style="position: absolute; right: 30px; top: 30px"
  1817. @click="openWordCloud(toolIndex)"
  1818. >生成词云</el-button
  1819. >
  1820. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1821. position: absolute;
  1822. right: 30px;
  1823. transform: translateY(-130%);
  1824. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1825. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1826. </div>
  1827. <div
  1828. v-if="
  1829. tType &&
  1830. tType == 2 &&
  1831. !sIsOpen &&
  1832. tool.tool.indexOf(16) != -1
  1833. "
  1834. class="worksBox"
  1835. >
  1836. <div
  1837. class="zuoyeYulan"
  1838. v-if="workStudent[toolIndex].length > 0"
  1839. >
  1840. <span>作业预览</span>
  1841. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1842. </div>
  1843. <div
  1844. class="worksDetailBox"
  1845. v-if="workStudent[toolIndex].length > 0"
  1846. >
  1847. <div
  1848. class="works"
  1849. style="
  1850. width: 200px;
  1851. height: 140px;
  1852. margin: 10px 10px 10px 0;
  1853. box-shadow: 0 0 6px 1px #dfdada;
  1854. "
  1855. v-for="(w, wIndex) in workStudent[toolIndex]"
  1856. :key="wIndex"
  1857. >
  1858. <div class="workImg" v-if="w.type == 0">
  1859. <img
  1860. :src="w.works"
  1861. @click="previewImg(w.works)"
  1862. alt
  1863. />
  1864. <div
  1865. class="answerScore"
  1866. v-if="w.score"
  1867. @click.stop="openScore(w)"
  1868. :class="{
  1869. rightW:
  1870. w.userid == userid || tType == 1 || tType == 4,
  1871. }"
  1872. >
  1873. {{ JSON.parse(w.score).wScore }}分
  1874. </div>
  1875. <div
  1876. class="answerScore"
  1877. @click.stop="openScore(w)"
  1878. v-else-if="courseDetail.userid == userid"
  1879. :class="{
  1880. rightW:
  1881. w.userid == userid || tType == 1 || tType == 4,
  1882. }"
  1883. >
  1884. 评分
  1885. </div>
  1886. <img
  1887. class="deleteImg"
  1888. src="../assets/deleteworks.png"
  1889. v-if="
  1890. w.userid == userid || tType == 1 || tType == 4
  1891. "
  1892. @click.stop="deleteWorks(w.wid)"
  1893. alt
  1894. />
  1895. </div>
  1896. <div class="workImg" v-if="w.type == 1">
  1897. <img :src="word" @click="openFile(w.works)" alt />
  1898. <div
  1899. class="answerScore"
  1900. v-if="w.score"
  1901. @click.stop="openScore(w)"
  1902. :class="{
  1903. rightW:
  1904. w.userid == userid || tType == 1 || tType == 4,
  1905. }"
  1906. >
  1907. {{ JSON.parse(w.score).wScore }}分
  1908. </div>
  1909. <div
  1910. class="answerScore"
  1911. @click.stop="openScore(w)"
  1912. v-else-if="courseDetail.userid == userid"
  1913. :class="{
  1914. rightW:
  1915. w.userid == userid || tType == 1 || tType == 4,
  1916. }"
  1917. >
  1918. 评分
  1919. </div>
  1920. <img
  1921. class="deleteImg"
  1922. src="../assets/deleteworks.png"
  1923. v-if="
  1924. w.userid == userid || tType == 1 || tType == 4
  1925. "
  1926. @click.stop="deleteWorks(w.wid)"
  1927. alt
  1928. />
  1929. </div>
  1930. <div class="workImg" v-if="w.type == 3">
  1931. <img
  1932. style="cursor: pointer"
  1933. :src="video"
  1934. @click="openVideo(w)"
  1935. alt
  1936. />
  1937. <div
  1938. class="answerScore"
  1939. v-if="w.score"
  1940. @click.stop="openScore(w)"
  1941. :class="{
  1942. rightW:
  1943. w.userid == userid || tType == 1 || tType == 4,
  1944. }"
  1945. >
  1946. {{ JSON.parse(w.score).wScore }}分
  1947. </div>
  1948. <div
  1949. class="answerScore"
  1950. @click.stop="openScore(w)"
  1951. v-else-if="courseDetail.userid == userid"
  1952. :class="{
  1953. rightW:
  1954. w.userid == userid || tType == 1 || tType == 4,
  1955. }"
  1956. >
  1957. 评分
  1958. </div>
  1959. <img
  1960. class="deleteImg"
  1961. src="../assets/deleteworks.png"
  1962. v-if="
  1963. w.userid == userid || tType == 1 || tType == 4
  1964. "
  1965. @click.stop="deleteWorks(w.wid)"
  1966. alt
  1967. />
  1968. </div>
  1969. <div class="workImg" v-if="w.type == 12">
  1970. <img
  1971. style="cursor: pointer"
  1972. :src="word2"
  1973. @click="downloadFile(w.works)"
  1974. alt
  1975. />
  1976. <div
  1977. class="answerScore"
  1978. v-if="w.score"
  1979. @click.stop="openScore(w)"
  1980. :class="{
  1981. rightW:
  1982. w.userid == userid || tType == 1 || tType == 4,
  1983. }"
  1984. >
  1985. {{ JSON.parse(w.score).wScore }}分
  1986. </div>
  1987. <div
  1988. class="answerScore"
  1989. @click.stop="openScore(w)"
  1990. v-else-if="courseDetail.userid == userid"
  1991. :class="{
  1992. rightW:
  1993. w.userid == userid || tType == 1 || tType == 4,
  1994. }"
  1995. >
  1996. 评分
  1997. </div>
  1998. <img
  1999. class="deleteImg"
  2000. src="../assets/deleteworks.png"
  2001. v-if="
  2002. w.userid == userid || tType == 1 || tType == 4
  2003. "
  2004. @click.stop="deleteWorks(w.wid)"
  2005. alt
  2006. />
  2007. </div>
  2008. <div class="worksName">
  2009. <div>{{ w.sName }}</div>
  2010. </div>
  2011. </div>
  2012. </div>
  2013. </div>
  2014. <div
  2015. v-if="
  2016. tType &&
  2017. tType == 2 &&
  2018. !sIsOpen &&
  2019. tool.tool.indexOf(32) != -1
  2020. "
  2021. class="worksBox"
  2022. >
  2023. <div
  2024. class="zuoyeYulan"
  2025. v-if="workStudent[toolIndex].length > 0"
  2026. >
  2027. <span>作业预览</span>
  2028. </div>
  2029. <div
  2030. class="worksDetailBox"
  2031. v-if="workStudent[toolIndex].length > 0"
  2032. >
  2033. <div
  2034. class="works"
  2035. style="
  2036. width: 200px;
  2037. height: 140px;
  2038. margin: 10px 10px 10px 0;
  2039. box-shadow: 0 0 6px 1px #dfdada;
  2040. "
  2041. v-for="(w, wIndex) in workStudent[toolIndex]"
  2042. :key="wIndex"
  2043. >
  2044. <div class="workImg">
  2045. <img
  2046. :src="word2"
  2047. @click="downloadFile(w.works)"
  2048. alt
  2049. />
  2050. <div
  2051. class="answerScore"
  2052. v-if="w.score"
  2053. @click.stop="openScore(w)"
  2054. :class="{
  2055. rightW:
  2056. w.userid == userid || tType == 1 || tType == 4,
  2057. }"
  2058. >
  2059. {{ JSON.parse(w.score).wScore }}分
  2060. </div>
  2061. <div
  2062. class="answerScore"
  2063. @click.stop="openScore(w)"
  2064. v-else-if="courseDetail.userid == userid"
  2065. :class="{
  2066. rightW:
  2067. w.userid == userid || tType == 1 || tType == 4,
  2068. }"
  2069. >
  2070. 评分
  2071. </div>
  2072. <img
  2073. class="deleteImg"
  2074. src="../assets/deleteworks.png"
  2075. v-if="
  2076. w.userid == userid || tType == 1 || tType == 4
  2077. "
  2078. @click.stop="deleteWorks(w.wid)"
  2079. alt
  2080. />
  2081. </div>
  2082. <div class="worksName">
  2083. <div>{{ w.sName }}</div>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. <div
  2089. v-if="
  2090. tType &&
  2091. tType == 2 &&
  2092. !sIsOpen &&
  2093. tool.tool.indexOf(57) != -1
  2094. "
  2095. class="worksBox"
  2096. >
  2097. <div
  2098. class="zuoyeYulan"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <span>作业预览</span>
  2102. </div>
  2103. <div
  2104. class="worksDetailBox"
  2105. v-if="workStudent[toolIndex].length > 0"
  2106. >
  2107. <div
  2108. class="works"
  2109. style="
  2110. width: 200px;
  2111. height: 140px;
  2112. margin: 10px 10px 10px 0;
  2113. box-shadow: 0 0 6px 1px #dfdada;
  2114. "
  2115. v-for="(w, wIndex) in workStudent[toolIndex]"
  2116. :key="wIndex"
  2117. >
  2118. <div class="workImg">
  2119. <img
  2120. :src="word2"
  2121. @click="downloadFile(w.works)"
  2122. v-if="w.type == 12"
  2123. alt
  2124. />
  2125. <img
  2126. :src="word2"
  2127. @click="
  2128. openCocoPi(57, toolIndex, w.userid, w.sName)
  2129. "
  2130. v-else-if="w.type == 15"
  2131. alt
  2132. />
  2133. <div
  2134. class="answerScore"
  2135. v-if="w.score"
  2136. @click.stop="openScore(w)"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4,
  2140. }"
  2141. >
  2142. {{ JSON.parse(w.score).wScore }}分
  2143. </div>
  2144. <div
  2145. class="answerScore"
  2146. @click.stop="openScore(w)"
  2147. v-else-if="courseDetail.userid == userid"
  2148. :class="{
  2149. rightW:
  2150. w.userid == userid || tType == 1 || tType == 4,
  2151. }"
  2152. >
  2153. 评分
  2154. </div>
  2155. <img
  2156. class="deleteImg"
  2157. src="../assets/deleteworks.png"
  2158. v-if="
  2159. w.userid == userid || tType == 1 || tType == 4
  2160. "
  2161. @click.stop="deleteWorks(w.wid)"
  2162. alt
  2163. />
  2164. </div>
  2165. <div class="worksName">
  2166. <div>{{ w.sName }}</div>
  2167. </div>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. <div
  2172. v-if="
  2173. tType &&
  2174. tType == 2 &&
  2175. !sIsOpen &&
  2176. tool.tool.indexOf(4) != -1
  2177. "
  2178. class="worksBox"
  2179. >
  2180. <div
  2181. class="zuoyeYulan"
  2182. v-if="workStudent[toolIndex].length > 0"
  2183. >
  2184. <span>作业预览</span>
  2185. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2186. </div>
  2187. <div
  2188. class="worksDetailBox"
  2189. v-if="workStudent[toolIndex].length > 0"
  2190. >
  2191. <div
  2192. class="isWorksName"
  2193. v-for="(w, wIndex) in workStudent[toolIndex]"
  2194. :key="wIndex"
  2195. @click="
  2196. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2197. "
  2198. >
  2199. {{ w.sName }}
  2200. <img
  2201. class="deleteImg deleteImg2"
  2202. src="../assets/deleteworks.png"
  2203. v-if="w.userid == userid || tType == 1 || tType == 4"
  2204. @click.stop="deleteWorks(w.wid)"
  2205. alt
  2206. />
  2207. </div>
  2208. <!-- <div
  2209. class="works"
  2210. style="
  2211. width: 200px;
  2212. height: 140px;
  2213. border-radius: 10px;
  2214. box-shadow: 0 0 6px 1px #dfdada;
  2215. overflow: hidden;
  2216. "
  2217. v-for="(w, wIndex) in workStudent[toolIndex]"
  2218. :key="wIndex"
  2219. >
  2220. <div class="workImg">
  2221. <img
  2222. src="../assets/icon/works/noImg.png"
  2223. @click="
  2224. openTools(
  2225. 4,
  2226. toolIndex,
  2227. taskCount,
  2228. w.works,
  2229. w.sName
  2230. )
  2231. "
  2232. alt
  2233. />
  2234. </div>
  2235. <div class="worksName">
  2236. <div>{{ w.sName }}</div>
  2237. <div>{{ w.time }}</div>
  2238. </div>
  2239. </div> -->
  2240. </div>
  2241. </div>
  2242. <div
  2243. v-if="
  2244. tType &&
  2245. tType == 2 &&
  2246. !sIsOpen &&
  2247. tool.tool.indexOf(45) != -1
  2248. "
  2249. class="worksBox"
  2250. >
  2251. <div
  2252. class="zuoyeYulan"
  2253. v-if="workStudent[toolIndex].length > 0"
  2254. >
  2255. <span>作业预览</span>
  2256. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2257. </div>
  2258. <div
  2259. class="worksDetailBox"
  2260. v-if="workStudent[toolIndex].length > 0"
  2261. >
  2262. <div
  2263. class="isWorksName"
  2264. v-for="(w, wIndex) in workStudent[toolIndex]"
  2265. :key="wIndex"
  2266. @click="
  2267. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2268. "
  2269. >
  2270. {{ w.sName }}
  2271. <img
  2272. class="deleteImg deleteImg2"
  2273. src="../assets/deleteworks.png"
  2274. v-if="w.userid == userid || tType == 1 || tType == 4"
  2275. @click.stop="deleteWorks(w.wid)"
  2276. alt
  2277. />
  2278. </div>
  2279. </div>
  2280. </div>
  2281. <div
  2282. v-if="
  2283. tType &&
  2284. tType == 2 &&
  2285. !sIsOpen &&
  2286. tool.tool.indexOf(15) != -1
  2287. "
  2288. class="worksBox"
  2289. >
  2290. <div
  2291. class="zuoyeYulan"
  2292. v-if="workStudent[toolIndex].length > 0"
  2293. >
  2294. <span>作业预览</span>
  2295. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2296. </div>
  2297. <div
  2298. class="worksDetailBox"
  2299. v-if="workStudent[toolIndex].length > 0"
  2300. >
  2301. <div
  2302. class="works"
  2303. v-for="(w, wIndex) in workStudent[toolIndex]"
  2304. :key="wIndex"
  2305. >
  2306. <div class="workImg">
  2307. <!-- <img
  2308. src="../assets/icon/works/noImg.png"
  2309. @click="openTools(15, toolIndex, taskCount, w.works)"
  2310. alt=""
  2311. />-->
  2312. <div class="answerBg">
  2313. <!-- <div>{{ w.sName }}</div> -->
  2314. <el-tooltip
  2315. class="item"
  2316. effect="light"
  2317. :content="JSON.parse(w.works)[0].answer"
  2318. placement="top"
  2319. >
  2320. <div class="answerContent">
  2321. {{ JSON.parse(w.works)[0].answer }}
  2322. </div>
  2323. </el-tooltip>
  2324. <div
  2325. class="answerScore"
  2326. v-if="w.score"
  2327. @click.stop="openScore(w)"
  2328. :class="{
  2329. rightW:
  2330. w.userid == userid ||
  2331. tType == 1 ||
  2332. tType == 4,
  2333. }"
  2334. >
  2335. {{ JSON.parse(w.score).wScore }}分
  2336. </div>
  2337. <div
  2338. class="answerScore"
  2339. @click.stop="openScore(w)"
  2340. v-else-if="courseDetail.userid == userid"
  2341. :class="{
  2342. rightW:
  2343. w.userid == userid ||
  2344. tType == 1 ||
  2345. tType == 4,
  2346. }"
  2347. >
  2348. 评分
  2349. </div>
  2350. <img
  2351. class="deleteImg"
  2352. src="../assets/deleteworks.png"
  2353. v-if="
  2354. w.userid == userid || tType == 1 || tType == 4
  2355. "
  2356. @click.stop="deleteWorks(w.wid)"
  2357. alt
  2358. />
  2359. </div>
  2360. <div class="comment">
  2361. <div class="worksName">
  2362. <div>{{ w.sName }}</div>
  2363. </div>
  2364. </div>
  2365. </div>
  2366. </div>
  2367. </div>
  2368. </div>
  2369. <div
  2370. v-if="
  2371. tType &&
  2372. tType == 2 &&
  2373. !sIsOpen &&
  2374. tool.tool.indexOf(1) != -1
  2375. "
  2376. class="worksBox"
  2377. >
  2378. <div
  2379. class="zuoyeYulan"
  2380. v-if="workStudent[toolIndex].length > 0"
  2381. >
  2382. <span>作业预览</span>
  2383. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2384. </div>
  2385. <div
  2386. class="worksDetailBox"
  2387. v-if="workStudent[toolIndex].length > 0"
  2388. >
  2389. <div
  2390. class="works"
  2391. style="
  2392. width: 200px;
  2393. height: 140px;
  2394. margin: 10px 10px 10px 0;
  2395. box-shadow: 0 0 6px 1px #dfdada;
  2396. "
  2397. v-for="(w, wIndex) in workStudent[toolIndex]"
  2398. :key="wIndex"
  2399. >
  2400. <div class="workImg">
  2401. <img
  2402. :src="w.works"
  2403. @click="previewImg(w.works)"
  2404. alt
  2405. />
  2406. <div
  2407. class="answerScore"
  2408. v-if="w.score"
  2409. @click.stop="openScore(w)"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid || tType == 1 || tType == 4,
  2413. }"
  2414. >
  2415. {{ JSON.parse(w.score).wScore }}分
  2416. </div>
  2417. <div
  2418. class="answerScore"
  2419. @click.stop="openScore(w)"
  2420. v-else-if="courseDetail.userid == userid"
  2421. :class="{
  2422. rightW:
  2423. w.userid == userid || tType == 1 || tType == 4,
  2424. }"
  2425. >
  2426. 评分
  2427. </div>
  2428. <img
  2429. class="deleteImg"
  2430. src="../assets/deleteworks.png"
  2431. v-if="
  2432. w.userid == userid || tType == 1 || tType == 4
  2433. "
  2434. @click.stop="deleteWorks(w.wid)"
  2435. alt
  2436. />
  2437. </div>
  2438. <div class="worksName">
  2439. <div>{{ w.sName }}</div>
  2440. </div>
  2441. </div>
  2442. </div>
  2443. </div>
  2444. <div
  2445. v-if="
  2446. tType &&
  2447. tType == 2 &&
  2448. !sIsOpen &&
  2449. tool.tool.indexOf(3) != -1
  2450. "
  2451. class="worksBox"
  2452. >
  2453. <div
  2454. class="zuoyeYulan"
  2455. v-if="workStudent[toolIndex].length > 0"
  2456. >
  2457. <span>作业预览</span>
  2458. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2459. </div>
  2460. <div
  2461. class="worksDetailBox"
  2462. v-if="workStudent[toolIndex].length > 0"
  2463. >
  2464. <div
  2465. class="works"
  2466. style="
  2467. width: 200px;
  2468. height: 140px;
  2469. margin: 10px 10px 10px 0;
  2470. box-shadow: 0 0 6px 1px #dfdada;
  2471. "
  2472. v-for="(w, wIndex) in workStudent[toolIndex]"
  2473. :key="wIndex"
  2474. >
  2475. <div class="workImg">
  2476. <img
  2477. :src="w.works"
  2478. @click="previewImg(w.works)"
  2479. alt
  2480. />
  2481. <div
  2482. class="answerScore"
  2483. v-if="w.score"
  2484. @click.stop="openScore(w)"
  2485. :class="{
  2486. rightW:
  2487. w.userid == userid || tType == 1 || tType == 4,
  2488. }"
  2489. >
  2490. {{ JSON.parse(w.score).wScore }}分
  2491. </div>
  2492. <div
  2493. class="answerScore"
  2494. @click.stop="openScore(w)"
  2495. v-else-if="courseDetail.userid == userid"
  2496. :class="{
  2497. rightW:
  2498. w.userid == userid || tType == 1 || tType == 4,
  2499. }"
  2500. >
  2501. 评分
  2502. </div>
  2503. <img
  2504. class="deleteImg"
  2505. src="../assets/deleteworks.png"
  2506. v-if="
  2507. w.userid == userid || tType == 1 || tType == 4
  2508. "
  2509. @click.stop="deleteWorks(w.wid)"
  2510. alt
  2511. />
  2512. </div>
  2513. <div class="worksName">
  2514. <div>{{ w.sName }}</div>
  2515. </div>
  2516. </div>
  2517. </div>
  2518. </div>
  2519. <div
  2520. v-if="
  2521. tType &&
  2522. tType == 2 &&
  2523. !sIsOpen &&
  2524. tool.tool.indexOf(6) != -1
  2525. "
  2526. class="worksBox"
  2527. >
  2528. <div
  2529. class="zuoyeYulan"
  2530. v-if="workStudent[toolIndex].length > 0"
  2531. >
  2532. <span>作业预览</span>
  2533. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2534. </div>
  2535. <div
  2536. class="worksDetailBox"
  2537. v-if="workStudent[toolIndex].length > 0"
  2538. >
  2539. <div
  2540. class="works"
  2541. style="
  2542. width: 200px;
  2543. height: 140px;
  2544. margin: 10px 10px 10px 0;
  2545. box-shadow: 0 0 6px 1px #dfdada;
  2546. "
  2547. v-for="(w, wIndex) in workStudent[toolIndex]"
  2548. :key="wIndex"
  2549. >
  2550. <div class="workImg">
  2551. <img
  2552. :src="w.works"
  2553. @click="previewImg(w.works)"
  2554. alt
  2555. />
  2556. <div
  2557. class="answerScore"
  2558. v-if="w.score"
  2559. @click.stop="openScore(w)"
  2560. :class="{
  2561. rightW:
  2562. w.userid == userid || tType == 1 || tType == 4,
  2563. }"
  2564. >
  2565. {{ JSON.parse(w.score).wScore }}分
  2566. </div>
  2567. <div
  2568. class="answerScore"
  2569. @click.stop="openScore(w)"
  2570. v-else-if="courseDetail.userid == userid"
  2571. :class="{
  2572. rightW:
  2573. w.userid == userid || tType == 1 || tType == 4,
  2574. }"
  2575. >
  2576. 评分
  2577. </div>
  2578. <img
  2579. class="deleteImg"
  2580. src="../assets/deleteworks.png"
  2581. v-if="
  2582. w.userid == userid || tType == 1 || tType == 4
  2583. "
  2584. @click.stop="deleteWorks(w.wid)"
  2585. alt
  2586. />
  2587. </div>
  2588. <div class="worksName">
  2589. <div>{{ w.sName }}</div>
  2590. </div>
  2591. </div>
  2592. </div>
  2593. </div>
  2594. <div
  2595. v-if="
  2596. tType &&
  2597. tType == 2 &&
  2598. !sIsOpen &&
  2599. tool.tool.indexOf(7) != -1
  2600. "
  2601. class="worksBox"
  2602. >
  2603. <div
  2604. class="zuoyeYulan"
  2605. v-if="workStudent[toolIndex].length > 0"
  2606. >
  2607. <span>作业预览</span>
  2608. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2609. </div>
  2610. <div
  2611. class="worksDetailBox"
  2612. v-if="workStudent[toolIndex].length > 0"
  2613. >
  2614. <div
  2615. class="works"
  2616. style="
  2617. width: 200px;
  2618. height: 140px;
  2619. margin: 10px 10px 10px 0;
  2620. box-shadow: 0 0 6px 1px #dfdada;
  2621. "
  2622. v-for="(w, wIndex) in workStudent[toolIndex]"
  2623. :key="wIndex"
  2624. >
  2625. <div class="workImg">
  2626. <img
  2627. :src="w.works"
  2628. @click="previewImg(w.works)"
  2629. alt
  2630. />
  2631. <div
  2632. class="answerScore"
  2633. v-if="w.score"
  2634. @click.stop="openScore(w)"
  2635. :class="{
  2636. rightW:
  2637. w.userid == userid || tType == 1 || tType == 4,
  2638. }"
  2639. >
  2640. {{ JSON.parse(w.score).wScore }}分
  2641. </div>
  2642. <div
  2643. class="answerScore"
  2644. @click.stop="openScore(w)"
  2645. v-else-if="courseDetail.userid == userid"
  2646. :class="{
  2647. rightW:
  2648. w.userid == userid || tType == 1 || tType == 4,
  2649. }"
  2650. >
  2651. 评分
  2652. </div>
  2653. <img
  2654. class="deleteImg"
  2655. src="../assets/deleteworks.png"
  2656. v-if="
  2657. w.userid == userid || tType == 1 || tType == 4
  2658. "
  2659. @click.stop="deleteWorks(w.wid)"
  2660. alt
  2661. />
  2662. </div>
  2663. <div class="worksName">
  2664. <div>{{ w.sName }}</div>
  2665. </div>
  2666. </div>
  2667. </div>
  2668. </div>
  2669. <div
  2670. v-if="
  2671. tType &&
  2672. tType == 2 &&
  2673. !sIsOpen &&
  2674. tool.tool.indexOf(26) != -1
  2675. "
  2676. class="worksBox"
  2677. >
  2678. <div
  2679. class="zuoyeYulan"
  2680. v-if="workStudent[toolIndex].length > 0"
  2681. >
  2682. <span>作业预览</span>
  2683. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2684. </div>
  2685. <div
  2686. class="worksDetailBox"
  2687. v-if="workStudent[toolIndex].length > 0"
  2688. >
  2689. <div
  2690. class="works"
  2691. style="
  2692. width: 200px;
  2693. height: 140px;
  2694. margin: 10px 10px 10px 0;
  2695. box-shadow: 0 0 6px 1px #dfdada;
  2696. "
  2697. v-for="(w, wIndex) in workStudent[toolIndex]"
  2698. :key="wIndex"
  2699. >
  2700. <div class="workImg">
  2701. <img
  2702. :src="w.works"
  2703. @click="previewImg(w.works)"
  2704. alt
  2705. />
  2706. <img
  2707. class="deleteImg"
  2708. src="../assets/deleteworks.png"
  2709. v-if="
  2710. w.userid == userid || tType == 1 || tType == 4
  2711. "
  2712. @click.stop="deleteWorks(w.wid)"
  2713. alt
  2714. />
  2715. </div>
  2716. <div class="worksName">
  2717. <div>{{ w.sName }}</div>
  2718. </div>
  2719. </div>
  2720. </div>
  2721. </div>
  2722. <div
  2723. v-if="
  2724. tType &&
  2725. ((tType == 2 && sIsOpen == true) ||
  2726. tType == 1 ||
  2727. tType == 4) &&
  2728. tool.tool.indexOf(16) != -1
  2729. "
  2730. class="worksBox"
  2731. >
  2732. <div
  2733. class="zuoyeYulan"
  2734. v-if="
  2735. worksStudent.length &&
  2736. worksStudent[toolIndex].length > 0
  2737. "
  2738. >
  2739. <div class="worksTop">
  2740. <div>作业预览</div>
  2741. <div
  2742. class="corOpen"
  2743. @click="contract(toolIndex)"
  2744. v-if="
  2745. worksStudent[toolIndex].length > 6 &&
  2746. isCloseList[toolIndex].isClose == 0
  2747. "
  2748. >
  2749. 收缩
  2750. </div>
  2751. <div
  2752. class="corOpen"
  2753. @click="contract(toolIndex)"
  2754. v-if="isCloseList[toolIndex].isClose == 1"
  2755. >
  2756. 展开
  2757. </div>
  2758. </div>
  2759. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2760. </div>
  2761. <div
  2762. class="group_workBox"
  2763. v-for="(g, gindex) in courseGroup.group"
  2764. :key="gindex"
  2765. >
  2766. <div class="group_box">
  2767. <div class="group_title">
  2768. <el-tooltip
  2769. class="item"
  2770. effect="light"
  2771. :content="g.name"
  2772. placement="top"
  2773. >
  2774. <div class="group_name">{{ g.name }}</div>
  2775. </el-tooltip>
  2776. </div>
  2777. <div
  2778. class="group_work"
  2779. v-if="
  2780. g.works &&
  2781. g.works.length &&
  2782. g.works[toolIndex].length
  2783. "
  2784. >
  2785. <div
  2786. class="works"
  2787. style="
  2788. width: 200px;
  2789. height: 140px;
  2790. margin: 10px 10px 10px 0;
  2791. border-radius: 15px;
  2792. box-shadow: 0 0 6px 1px #dfdada;
  2793. "
  2794. v-for="(w, wIndex) in g.works[toolIndex]"
  2795. :key="wIndex"
  2796. :class="w.type == 1 ? 'isTypeOne' : ''"
  2797. >
  2798. <div class="workImg" v-if="w.type == 0">
  2799. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2800. <img
  2801. :src="w.works"
  2802. @click="previewImg(w.works)"
  2803. alt
  2804. />
  2805. <div
  2806. class="answerScore"
  2807. v-if="w.score"
  2808. @click.stop="openScore(w)"
  2809. :class="{
  2810. rightW:
  2811. w.userid == userid ||
  2812. tType == 1 ||
  2813. tType == 4 ||
  2814. w.ateacher == userid,
  2815. }"
  2816. >
  2817. {{ JSON.parse(w.score).wScore }}分
  2818. </div>
  2819. <div
  2820. class="answerScore"
  2821. @click.stop="openScore(w)"
  2822. v-else-if="courseDetail.userid == userid"
  2823. :class="{
  2824. rightW:
  2825. w.userid == userid ||
  2826. tType == 1 ||
  2827. tType == 4 ||
  2828. w.ateacher == userid,
  2829. }"
  2830. >
  2831. 评分
  2832. </div>
  2833. <img
  2834. class="deleteImg"
  2835. src="../assets/deleteworks.png"
  2836. v-if="
  2837. w.userid == userid || tType == 1 || tType == 4
  2838. "
  2839. @click.stop="deleteWorks(w.wid)"
  2840. alt
  2841. />
  2842. </div>
  2843. <div class="workImg" v-if="w.type == 1">
  2844. <img :src="word" @click="openFile(w.works)" alt />
  2845. <!-- @click="openFile(w.works)" -->
  2846. <div
  2847. class="answerScore"
  2848. v-if="w.score"
  2849. @click.stop="openScore(w)"
  2850. :class="{
  2851. rightW:
  2852. w.userid == userid ||
  2853. tType == 1 ||
  2854. tType == 4 ||
  2855. w.ateacher == userid,
  2856. }"
  2857. >
  2858. {{ JSON.parse(w.score).wScore }}分
  2859. </div>
  2860. <div
  2861. class="answerScore"
  2862. @click.stop="openScore(w)"
  2863. v-else-if="courseDetail.userid == userid"
  2864. :class="{
  2865. rightW:
  2866. w.userid == userid ||
  2867. tType == 1 ||
  2868. tType == 4 ||
  2869. w.ateacher == userid,
  2870. }"
  2871. >
  2872. 评分
  2873. </div>
  2874. <img
  2875. class="deleteImg"
  2876. src="../assets/deleteworks.png"
  2877. v-if="
  2878. w.userid == userid || tType == 1 || tType == 4
  2879. "
  2880. @click.stop="deleteWorks(w.wid)"
  2881. alt
  2882. />
  2883. </div>
  2884. <div class="workImg" v-if="w.type == 3">
  2885. <img
  2886. style="cursor: pointer"
  2887. :src="video"
  2888. @click="openVideo(w)"
  2889. alt
  2890. />
  2891. <!-- @click="openVideo(w.works)" -->
  2892. <div
  2893. class="answerScore"
  2894. v-if="w.score"
  2895. @click.stop="openScore(w)"
  2896. :class="{
  2897. rightW:
  2898. w.userid == userid ||
  2899. tType == 1 ||
  2900. tType == 4 ||
  2901. w.ateacher == userid,
  2902. }"
  2903. >
  2904. {{ JSON.parse(w.score).wScore }}分
  2905. </div>
  2906. <div
  2907. class="answerScore"
  2908. @click.stop="openScore(w)"
  2909. v-else-if="courseDetail.userid == userid"
  2910. :class="{
  2911. rightW:
  2912. w.userid == userid ||
  2913. tType == 1 ||
  2914. tType == 4 ||
  2915. w.ateacher == userid,
  2916. }"
  2917. >
  2918. 评分
  2919. </div>
  2920. <img
  2921. class="deleteImg"
  2922. src="../assets/deleteworks.png"
  2923. v-if="
  2924. w.userid == userid || tType == 1 || tType == 4
  2925. "
  2926. @click.stop="deleteWorks(w.wid)"
  2927. alt
  2928. />
  2929. </div>
  2930. <div class="workImg" v-if="w.type == 12">
  2931. <img
  2932. style="cursor: pointer"
  2933. :src="word2"
  2934. @click="downloadFile(w.works)"
  2935. alt
  2936. />
  2937. <!-- @click="openVideo(w.works)" -->
  2938. <div
  2939. class="answerScore"
  2940. v-if="w.score"
  2941. @click.stop="openScore(w)"
  2942. :class="{
  2943. rightW:
  2944. w.userid == userid ||
  2945. tType == 1 ||
  2946. tType == 4 ||
  2947. w.ateacher == userid,
  2948. }"
  2949. >
  2950. {{ JSON.parse(w.score).wScore }}分
  2951. </div>
  2952. <div
  2953. class="answerScore"
  2954. @click.stop="openScore(w)"
  2955. v-else-if="courseDetail.userid == userid"
  2956. :class="{
  2957. rightW:
  2958. w.userid == userid ||
  2959. tType == 1 ||
  2960. tType == 4 ||
  2961. w.ateacher == userid,
  2962. }"
  2963. >
  2964. 评分
  2965. </div>
  2966. <img
  2967. class="deleteImg"
  2968. src="../assets/deleteworks.png"
  2969. v-if="
  2970. w.userid == userid || tType == 1 || tType == 4
  2971. "
  2972. @click.stop="deleteWorks(w.wid)"
  2973. alt
  2974. />
  2975. </div>
  2976. <div class="comment" style="min-width: 200px">
  2977. <div class="worksName">
  2978. <div>{{ w.sName }}</div>
  2979. </div>
  2980. <div class="commentList">
  2981. <div class="commentList">
  2982. <div
  2983. class="commentImg"
  2984. @click="
  2985. isLikes(w.wid, userid, 1, null, w.isLikes)
  2986. "
  2987. >
  2988. <img
  2989. :src="w.isLikes == true ? likes : noLikes"
  2990. alt=""
  2991. />
  2992. </div>
  2993. <div>{{ w.likesCount }}</div>
  2994. </div>
  2995. <div
  2996. class="commentList"
  2997. style="margin-right: 15px"
  2998. >
  2999. <div
  3000. class="commentImg"
  3001. @click="
  3002. commentOther(
  3003. w,
  3004. toolIndex,
  3005. wIndex,
  3006. null,
  3007. g.id
  3008. )
  3009. "
  3010. >
  3011. <img
  3012. src="../assets/icon/comment/comment.png"
  3013. alt=""
  3014. />
  3015. </div>
  3016. <div>{{ w.commentCount }}</div>
  3017. </div>
  3018. </div>
  3019. </div>
  3020. </div>
  3021. </div>
  3022. <div class="group_work" v-else>暂无提交作业</div>
  3023. </div>
  3024. </div>
  3025. <div
  3026. class="worksDetailBox"
  3027. v-if="
  3028. worksStudent.length &&
  3029. worksStudent[toolIndex].length > 0
  3030. "
  3031. >
  3032. <div
  3033. class="works"
  3034. style="
  3035. width: 200px;
  3036. height: 140px;
  3037. margin: 10px 10px 10px 0;
  3038. border-radius: 15px;
  3039. box-shadow: 0 0 6px 1px #dfdada;
  3040. "
  3041. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3042. 0
  3043. ? worksStudent[toolIndex]
  3044. : worksStudent[toolIndex].slice(0, 6)"
  3045. :key="wIndex"
  3046. :class="w.type == 1 ? 'isTypeOne' : ''"
  3047. >
  3048. <div class="workImg" v-if="w.type == 0">
  3049. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3050. <img
  3051. :src="w.works"
  3052. @click="previewImg(w.works)"
  3053. alt
  3054. />
  3055. <div
  3056. class="answerScore"
  3057. v-if="w.score"
  3058. @click.stop="openScore(w)"
  3059. :class="{
  3060. rightW:
  3061. w.userid == userid ||
  3062. tType == 1 ||
  3063. tType == 4 ||
  3064. w.ateacher == userid,
  3065. }"
  3066. >
  3067. {{ JSON.parse(w.score).wScore }}分
  3068. </div>
  3069. <div
  3070. class="answerScore"
  3071. @click.stop="openScore(w)"
  3072. v-else-if="courseDetail.userid == userid"
  3073. :class="{
  3074. rightW:
  3075. w.userid == userid ||
  3076. tType == 1 ||
  3077. tType == 4 ||
  3078. w.ateacher == userid,
  3079. }"
  3080. >
  3081. 评分
  3082. </div>
  3083. <img
  3084. class="deleteImg"
  3085. src="../assets/deleteworks.png"
  3086. v-if="
  3087. w.userid == userid || tType == 1 || tType == 4
  3088. "
  3089. @click.stop="deleteWorks(w.wid)"
  3090. alt
  3091. />
  3092. </div>
  3093. <div class="workImg" v-if="w.type == 1">
  3094. <img :src="word" @click="openFile(w.works)" alt />
  3095. <!-- @click="openFile(w.works)" -->
  3096. <div
  3097. class="answerScore"
  3098. v-if="w.score"
  3099. @click.stop="openScore(w)"
  3100. :class="{
  3101. rightW:
  3102. w.userid == userid ||
  3103. tType == 1 ||
  3104. tType == 4 ||
  3105. w.ateacher == userid,
  3106. }"
  3107. >
  3108. {{ JSON.parse(w.score).wScore }}分
  3109. </div>
  3110. <div
  3111. class="answerScore"
  3112. @click.stop="openScore(w)"
  3113. v-else-if="courseDetail.userid == userid"
  3114. :class="{
  3115. rightW:
  3116. w.userid == userid ||
  3117. tType == 1 ||
  3118. tType == 4 ||
  3119. w.ateacher == userid,
  3120. }"
  3121. >
  3122. 评分
  3123. </div>
  3124. <img
  3125. class="deleteImg"
  3126. src="../assets/deleteworks.png"
  3127. v-if="
  3128. w.userid == userid || tType == 1 || tType == 4
  3129. "
  3130. @click.stop="deleteWorks(w.wid)"
  3131. alt
  3132. />
  3133. </div>
  3134. <div class="workImg" v-if="w.type == 3">
  3135. <img
  3136. style="cursor: pointer"
  3137. :src="video"
  3138. @click="openVideo(w)"
  3139. alt
  3140. />
  3141. <!-- @click="openVideo(w.works)" -->
  3142. <div
  3143. class="answerScore"
  3144. v-if="w.score"
  3145. @click.stop="openScore(w)"
  3146. :class="{
  3147. rightW:
  3148. w.userid == userid ||
  3149. tType == 1 ||
  3150. tType == 4 ||
  3151. w.ateacher == userid,
  3152. }"
  3153. >
  3154. {{ JSON.parse(w.score).wScore }}分
  3155. </div>
  3156. <div
  3157. class="answerScore"
  3158. @click.stop="openScore(w)"
  3159. v-else-if="courseDetail.userid == userid"
  3160. :class="{
  3161. rightW:
  3162. w.userid == userid ||
  3163. tType == 1 ||
  3164. tType == 4 ||
  3165. w.ateacher == userid,
  3166. }"
  3167. >
  3168. 评分
  3169. </div>
  3170. <img
  3171. class="deleteImg"
  3172. src="../assets/deleteworks.png"
  3173. v-if="
  3174. w.userid == userid || tType == 1 || tType == 4
  3175. "
  3176. @click.stop="deleteWorks(w.wid)"
  3177. alt
  3178. />
  3179. </div>
  3180. <div class="workImg" v-if="w.type == 12">
  3181. <img
  3182. style="cursor: pointer"
  3183. :src="word2"
  3184. @click="downloadFile(w.works)"
  3185. alt
  3186. />
  3187. <!-- @click="openVideo(w.works)" -->
  3188. <div
  3189. class="answerScore"
  3190. v-if="w.score"
  3191. @click.stop="openScore(w)"
  3192. :class="{
  3193. rightW:
  3194. w.userid == userid ||
  3195. tType == 1 ||
  3196. tType == 4 ||
  3197. w.ateacher == userid,
  3198. }"
  3199. >
  3200. {{ JSON.parse(w.score).wScore }}分
  3201. </div>
  3202. <div
  3203. class="answerScore"
  3204. @click.stop="openScore(w)"
  3205. v-else-if="courseDetail.userid == userid"
  3206. :class="{
  3207. rightW:
  3208. w.userid == userid ||
  3209. tType == 1 ||
  3210. tType == 4 ||
  3211. w.ateacher == userid,
  3212. }"
  3213. >
  3214. 评分
  3215. </div>
  3216. <img
  3217. class="deleteImg"
  3218. src="../assets/deleteworks.png"
  3219. v-if="
  3220. w.userid == userid || tType == 1 || tType == 4
  3221. "
  3222. @click.stop="deleteWorks(w.wid)"
  3223. alt
  3224. />
  3225. </div>
  3226. <div class="comment" style="min-width: 200px">
  3227. <div class="worksName">
  3228. <div>{{ w.sName }}</div>
  3229. </div>
  3230. <div class="commentList">
  3231. <div class="commentList">
  3232. <div
  3233. class="commentImg"
  3234. @click="
  3235. isLikes(w.wid, userid, 1, null, w.isLikes)
  3236. "
  3237. >
  3238. <img
  3239. :src="w.isLikes == true ? likes : noLikes"
  3240. alt=""
  3241. />
  3242. </div>
  3243. <div>{{ w.likesCount }}</div>
  3244. </div>
  3245. <div class="commentList" style="margin-right: 15px">
  3246. <div
  3247. class="commentImg"
  3248. @click="commentOther(w, toolIndex, wIndex)"
  3249. >
  3250. <img
  3251. src="../assets/icon/comment/comment.png"
  3252. alt=""
  3253. />
  3254. </div>
  3255. <div>{{ w.commentCount }}</div>
  3256. </div>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. </div>
  3261. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3262. 未提交
  3263. </div>
  3264. <div class="noWorksS">
  3265. <div
  3266. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3267. :key="sIndex"
  3268. class="noWorksName"
  3269. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3270. >
  3271. {{ s.student }}
  3272. </div>
  3273. </div>
  3274. </div>
  3275. <div
  3276. v-if="
  3277. tType &&
  3278. ((tType == 2 && sIsOpen == true) ||
  3279. tType == 1 ||
  3280. tType == 4) &&
  3281. tool.tool.indexOf(32) != -1
  3282. "
  3283. class="worksBox"
  3284. >
  3285. <div
  3286. class="zuoyeYulan"
  3287. v-if="
  3288. worksStudent.length &&
  3289. worksStudent[toolIndex].length > 0
  3290. "
  3291. >
  3292. <div class="worksTop">
  3293. <div>作业预览</div>
  3294. <div
  3295. class="corOpen"
  3296. @click="contract(toolIndex)"
  3297. v-if="
  3298. worksStudent[toolIndex].length > 6 &&
  3299. isCloseList[toolIndex].isClose == 0
  3300. "
  3301. >
  3302. 收缩
  3303. </div>
  3304. <div
  3305. class="corOpen"
  3306. @click="contract(toolIndex)"
  3307. v-if="isCloseList[toolIndex].isClose == 1"
  3308. >
  3309. 展开
  3310. </div>
  3311. </div>
  3312. </div>
  3313. <div
  3314. class="worksDetailBox"
  3315. v-if="
  3316. worksStudent.length &&
  3317. worksStudent[toolIndex].length > 0
  3318. "
  3319. >
  3320. <div
  3321. class="works"
  3322. style="
  3323. width: 200px;
  3324. height: 140px;
  3325. margin: 10px 10px 10px 0;
  3326. border-radius: 15px;
  3327. box-shadow: 0 0 6px 1px #dfdada;
  3328. "
  3329. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3330. 0
  3331. ? worksStudent[toolIndex]
  3332. : worksStudent[toolIndex].slice(0, 6)"
  3333. :key="wIndex"
  3334. :class="w.type == 1 ? 'isTypeOne' : ''"
  3335. >
  3336. <div class="workImg">
  3337. <img
  3338. :src="word2"
  3339. @click="downloadFile(w.works)"
  3340. alt
  3341. />
  3342. <div
  3343. class="answerScore"
  3344. v-if="w.score"
  3345. @click.stop="openScore(w)"
  3346. :class="{
  3347. rightW:
  3348. w.userid == userid ||
  3349. tType == 1 ||
  3350. tType == 4 ||
  3351. w.ateacher == userid,
  3352. }"
  3353. >
  3354. {{ JSON.parse(w.score).wScore }}分
  3355. </div>
  3356. <div
  3357. class="answerScore"
  3358. @click.stop="openScore(w)"
  3359. v-else-if="courseDetail.userid == userid"
  3360. :class="{
  3361. rightW:
  3362. w.userid == userid ||
  3363. tType == 1 ||
  3364. tType == 4 ||
  3365. w.ateacher == userid,
  3366. }"
  3367. >
  3368. 评分
  3369. </div>
  3370. <img
  3371. class="deleteImg"
  3372. src="../assets/deleteworks.png"
  3373. v-if="
  3374. w.userid == userid || tType == 1 || tType == 4
  3375. "
  3376. @click.stop="deleteWorks(w.wid)"
  3377. alt
  3378. />
  3379. </div>
  3380. <div class="comment" style="min-width: 200px">
  3381. <div class="worksName">
  3382. <div>{{ w.sName }}</div>
  3383. </div>
  3384. <div class="commentList">
  3385. <div class="commentList">
  3386. <div
  3387. class="commentImg"
  3388. @click="
  3389. isLikes(w.wid, userid, 1, null, w.isLikes)
  3390. "
  3391. >
  3392. <img
  3393. :src="w.isLikes == true ? likes : noLikes"
  3394. alt=""
  3395. />
  3396. </div>
  3397. <div>{{ w.likesCount }}</div>
  3398. </div>
  3399. <div class="commentList" style="margin-right: 15px">
  3400. <div
  3401. class="commentImg"
  3402. @click="commentOther(w, toolIndex, wIndex)"
  3403. >
  3404. <img
  3405. src="../assets/icon/comment/comment.png"
  3406. alt=""
  3407. />
  3408. </div>
  3409. <div>{{ w.commentCount }}</div>
  3410. </div>
  3411. </div>
  3412. </div>
  3413. </div>
  3414. </div>
  3415. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3416. 未提交
  3417. </div>
  3418. <div class="noWorksS">
  3419. <div
  3420. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3421. :key="sIndex"
  3422. class="noWorksName"
  3423. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3424. >
  3425. {{ s.student }}
  3426. </div>
  3427. </div>
  3428. </div>
  3429. <div
  3430. v-if="
  3431. tType &&
  3432. ((tType == 2 && sIsOpen == true) ||
  3433. tType == 1 ||
  3434. tType == 4) &&
  3435. tool.tool.indexOf(57) != -1
  3436. "
  3437. class="worksBox"
  3438. >
  3439. <div
  3440. class="zuoyeYulan"
  3441. v-if="
  3442. worksStudent.length &&
  3443. worksStudent[toolIndex].length > 0
  3444. "
  3445. >
  3446. <div class="worksTop">
  3447. <div>作业预览</div>
  3448. <div
  3449. class="corOpen"
  3450. @click="contract(toolIndex)"
  3451. v-if="
  3452. worksStudent[toolIndex].length > 6 &&
  3453. isCloseList[toolIndex].isClose == 0
  3454. "
  3455. >
  3456. 收缩
  3457. </div>
  3458. <div
  3459. class="corOpen"
  3460. @click="contract(toolIndex)"
  3461. v-if="isCloseList[toolIndex].isClose == 1"
  3462. >
  3463. 展开
  3464. </div>
  3465. </div>
  3466. </div>
  3467. <div
  3468. class="worksDetailBox"
  3469. v-if="
  3470. worksStudent.length &&
  3471. worksStudent[toolIndex].length > 0
  3472. "
  3473. >
  3474. <div
  3475. class="works"
  3476. style="
  3477. width: 200px;
  3478. height: 140px;
  3479. margin: 10px 10px 10px 0;
  3480. border-radius: 15px;
  3481. box-shadow: 0 0 6px 1px #dfdada;
  3482. "
  3483. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3484. 0
  3485. ? worksStudent[toolIndex]
  3486. : worksStudent[toolIndex].slice(0, 6)"
  3487. :key="wIndex"
  3488. :class="w.type == 1 ? 'isTypeOne' : ''"
  3489. >
  3490. <div class="workImg">
  3491. <img
  3492. :src="word2"
  3493. @click="downloadFile(w.works)"
  3494. v-if="w.type == 12"
  3495. alt
  3496. />
  3497. <img
  3498. :src="word2"
  3499. @click="
  3500. openCocoPi(57, toolIndex, w.userid, w.sName)
  3501. "
  3502. v-else-if="w.type == 15"
  3503. alt
  3504. />
  3505. <div
  3506. class="answerScore"
  3507. v-if="w.score"
  3508. @click.stop="openScore(w)"
  3509. :class="{
  3510. rightW:
  3511. w.userid == userid ||
  3512. tType == 1 ||
  3513. tType == 4 ||
  3514. w.ateacher == userid,
  3515. }"
  3516. >
  3517. {{ JSON.parse(w.score).wScore }}分
  3518. </div>
  3519. <div
  3520. class="answerScore"
  3521. @click.stop="openScore(w)"
  3522. v-else-if="courseDetail.userid == userid"
  3523. :class="{
  3524. rightW:
  3525. w.userid == userid ||
  3526. tType == 1 ||
  3527. tType == 4 ||
  3528. w.ateacher == userid,
  3529. }"
  3530. >
  3531. 评分
  3532. </div>
  3533. <img
  3534. class="deleteImg"
  3535. src="../assets/deleteworks.png"
  3536. v-if="
  3537. w.userid == userid || tType == 1 || tType == 4
  3538. "
  3539. @click.stop="deleteWorks(w.wid)"
  3540. alt
  3541. />
  3542. </div>
  3543. <div class="comment" style="min-width: 200px">
  3544. <div class="worksName">
  3545. <div>{{ w.sName }}</div>
  3546. </div>
  3547. <div class="commentList">
  3548. <div class="commentList">
  3549. <div
  3550. class="commentImg"
  3551. @click="
  3552. isLikes(w.wid, userid, 1, null, w.isLikes)
  3553. "
  3554. >
  3555. <img
  3556. :src="w.isLikes == true ? likes : noLikes"
  3557. alt=""
  3558. />
  3559. </div>
  3560. <div>{{ w.likesCount }}</div>
  3561. </div>
  3562. <div class="commentList" style="margin-right: 15px">
  3563. <div
  3564. class="commentImg"
  3565. @click="commentOther(w, toolIndex, wIndex)"
  3566. >
  3567. <img
  3568. src="../assets/icon/comment/comment.png"
  3569. alt=""
  3570. />
  3571. </div>
  3572. <div>{{ w.commentCount }}</div>
  3573. </div>
  3574. </div>
  3575. </div>
  3576. </div>
  3577. </div>
  3578. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3579. 未提交
  3580. </div>
  3581. <div class="noWorksS">
  3582. <div
  3583. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3584. :key="sIndex"
  3585. class="noWorksName"
  3586. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3587. >
  3588. {{ s.student }}
  3589. </div>
  3590. </div>
  3591. </div>
  3592. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3593. <div
  3594. class="zuoyeYulan"
  3595. v-if="
  3596. worksStudent.length &&
  3597. worksStudent[toolIndex].length > 0
  3598. "
  3599. >
  3600. <span>作业预览</span>
  3601. <div
  3602. class="corOpen"
  3603. @click="contract(toolIndex)"
  3604. v-if="
  3605. worksStudent[toolIndex].length > 6 &&
  3606. isCloseList[toolIndex].isClose == 0
  3607. "
  3608. >
  3609. 收缩
  3610. </div>
  3611. <div
  3612. class="corOpen"
  3613. @click="contract(toolIndex)"
  3614. v-if="isCloseList[toolIndex].isClose == 1"
  3615. >
  3616. 展开
  3617. </div>
  3618. </div>
  3619. <div
  3620. class="worksDetailBox"
  3621. v-if="
  3622. worksStudent.length &&
  3623. worksStudent[toolIndex].length > 0
  3624. "
  3625. >
  3626. <div
  3627. class="works"
  3628. style="
  3629. width: 200px;
  3630. height: 140px;
  3631. margin: 10px 10px 10px 0;
  3632. border-radius: 15px;
  3633. box-shadow: 0 0 6px 1px #dfdada;
  3634. "
  3635. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3636. 0
  3637. ? worksStudent[toolIndex]
  3638. : worksStudent[toolIndex].slice(0, 6)"
  3639. :key="wIndex"
  3640. :class="w.type == 1 ? 'isTypeOne' : ''"
  3641. >
  3642. <div class="workImg" v-if="w.type == 0">
  3643. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3644. <img
  3645. :src="w.works"
  3646. @click="previewImg(w.works)"
  3647. alt
  3648. />
  3649. <div
  3650. class="answerScore"
  3651. v-if="w.score"
  3652. @click.stop="openScore(w)"
  3653. :class="{
  3654. rightW:
  3655. w.userid == userid ||
  3656. tType == 1 ||
  3657. tType == 4 ||
  3658. w.ateacher == userid,
  3659. }"
  3660. >
  3661. {{ JSON.parse(w.score).wScore }}分
  3662. </div>
  3663. <div
  3664. class="answerScore"
  3665. @click.stop="openScore(w)"
  3666. v-else-if="courseDetail.userid == userid"
  3667. :class="{
  3668. rightW:
  3669. w.userid == userid ||
  3670. tType == 1 ||
  3671. tType == 4 ||
  3672. w.ateacher == userid,
  3673. }"
  3674. >
  3675. 评分
  3676. </div>
  3677. <img
  3678. class="deleteImg"
  3679. src="../assets/deleteworks.png"
  3680. v-if="
  3681. w.userid == userid || tType == 1 || tType == 4
  3682. "
  3683. @click.stop="deleteWorks(w.wid)"
  3684. alt
  3685. />
  3686. </div>
  3687. <div
  3688. class="workImg"
  3689. style="cursor: pointer"
  3690. v-if="w.type == 1"
  3691. >
  3692. <img :src="word" @click="openFile(w.works)" alt />
  3693. <!-- @click="openFile(w.works)" -->
  3694. <div
  3695. class="answerScore"
  3696. v-if="w.score"
  3697. @click.stop="openScore(w)"
  3698. :class="{
  3699. rightW:
  3700. w.userid == userid ||
  3701. tType == 1 ||
  3702. tType == 4 ||
  3703. w.ateacher == userid,
  3704. }"
  3705. >
  3706. {{ JSON.parse(w.score).wScore }}分
  3707. </div>
  3708. <div
  3709. class="answerScore"
  3710. @click.stop="openScore(w)"
  3711. v-else-if="courseDetail.userid == userid"
  3712. :class="{
  3713. rightW:
  3714. w.userid == userid ||
  3715. tType == 1 ||
  3716. tType == 4 ||
  3717. w.ateacher == userid,
  3718. }"
  3719. >
  3720. 评分
  3721. </div>
  3722. <img
  3723. class="deleteImg"
  3724. src="../assets/deleteworks.png"
  3725. v-if="
  3726. w.userid == userid || tType == 1 || tType == 4
  3727. "
  3728. @click.stop="deleteWorks(w.wid)"
  3729. alt
  3730. />
  3731. </div>
  3732. <div class="workImg" v-if="w.type == 3">
  3733. <img
  3734. style="cursor: pointer"
  3735. :src="video"
  3736. @click="openVideo(w)"
  3737. alt
  3738. />
  3739. <!-- @click="openVideo(w.works)" -->
  3740. <div
  3741. class="answerScore"
  3742. v-if="w.score"
  3743. @click.stop="openScore(w)"
  3744. :class="{
  3745. rightW:
  3746. w.userid == userid ||
  3747. tType == 1 ||
  3748. tType == 4 ||
  3749. w.ateacher == userid,
  3750. }"
  3751. >
  3752. {{ JSON.parse(w.score).wScore }}分
  3753. </div>
  3754. <div
  3755. class="answerScore"
  3756. @click.stop="openScore(w)"
  3757. v-else-if="courseDetail.userid == userid"
  3758. :class="{
  3759. rightW:
  3760. w.userid == userid ||
  3761. tType == 1 ||
  3762. tType == 4 ||
  3763. w.ateacher == userid,
  3764. }"
  3765. >
  3766. 评分
  3767. </div>
  3768. <img
  3769. class="deleteImg"
  3770. src="../assets/deleteworks.png"
  3771. v-if="
  3772. w.userid == userid || tType == 1 || tType == 4
  3773. "
  3774. @click.stop="deleteWorks(w.wid)"
  3775. alt
  3776. />
  3777. </div>
  3778. <div class="comment" style="min-width: 200px">
  3779. <div class="worksName">
  3780. <div
  3781. style="cursor: pointer"
  3782. @click="
  3783. openSname(w.sName, w.wid, toolIndex, w.userid)
  3784. "
  3785. >
  3786. {{ w.sName }}
  3787. </div>
  3788. </div>
  3789. <div class="commentList">
  3790. <div class="commentList">
  3791. <div
  3792. class="commentImg"
  3793. @click="
  3794. isLikes(w.wid, userid, 1, null, w.isLikes)
  3795. "
  3796. >
  3797. <img
  3798. :src="w.isLikes == true ? likes : noLikes"
  3799. alt=""
  3800. />
  3801. </div>
  3802. <div>{{ w.likesCount }}</div>
  3803. </div>
  3804. <div class="commentList" style="margin-right: 15px">
  3805. <div
  3806. class="commentImg"
  3807. @click="commentOther(w, toolIndex, wIndex)"
  3808. >
  3809. <img
  3810. src="../assets/icon/comment/comment.png"
  3811. alt=""
  3812. />
  3813. </div>
  3814. <div>{{ w.commentCount }}</div>
  3815. </div>
  3816. </div>
  3817. </div>
  3818. </div>
  3819. </div>
  3820. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3821. 未提交
  3822. </div>
  3823. <div class="noWorksS">
  3824. <div
  3825. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3826. :key="sIndex"
  3827. class="noWorksName"
  3828. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3829. >
  3830. {{ s.student }}
  3831. </div>
  3832. </div>
  3833. </div>
  3834. <div
  3835. v-if="
  3836. tType &&
  3837. ((tType == 2 && sIsOpen == true) ||
  3838. tType == 1 ||
  3839. tType == 4) &&
  3840. tool.tool.indexOf(4) != -1 &&
  3841. (tool.askJson[0].answer ||
  3842. tool.askJson[0].answer === 0) &&
  3843. checkJson[toolIndex].length
  3844. "
  3845. class="xuan_right_box"
  3846. >
  3847. <div
  3848. class="tool_right_box"
  3849. v-for="(item, index) in tool.askJson"
  3850. :key="index"
  3851. >
  3852. <div>
  3853. <span style="word-break: break-all;white-space: normal;">{{ index + 1 + "、" + item.askstitle }}</span>
  3854. </div>
  3855. <div class="right_box_xuan">
  3856. <span>正确率</span>
  3857. <span>{{
  3858. (checkJson[toolIndex][index].right
  3859. ? checkJson[toolIndex][index].right
  3860. : 0) + "%"
  3861. }}</span>
  3862. </div>
  3863. </div>
  3864. </div>
  3865. <div
  3866. class="xuan_right_box"
  3867. style="background: unset"
  3868. v-if="
  3869. tType &&
  3870. ((tType == 2 && sIsOpen == true) ||
  3871. tType == 1 ||
  3872. tType == 4) &&
  3873. tool.tool.indexOf(4) != -1
  3874. "
  3875. >
  3876. <AskStatic
  3877. v-if="
  3878. worksStudent.length &&
  3879. worksStudent[toolIndex].length > 0
  3880. "
  3881. :askJSON="tool"
  3882. :checkJson="checkJson[toolIndex]"
  3883. ></AskStatic>
  3884. </div>
  3885. <div
  3886. v-if="
  3887. tType &&
  3888. ((tType == 2 && sIsOpen == true) ||
  3889. tType == 1 ||
  3890. tType == 4) &&
  3891. tool.tool.indexOf(4) != -1
  3892. "
  3893. class="worksBox"
  3894. >
  3895. <div
  3896. class="zuoyeYulan"
  3897. v-if="
  3898. worksStudent.length &&
  3899. worksStudent[toolIndex].length > 0
  3900. "
  3901. >
  3902. <div class="worksTop">
  3903. <div>作业预览</div>
  3904. <div
  3905. class="corOpen"
  3906. @click="contract(toolIndex)"
  3907. v-if="
  3908. worksStudent[toolIndex].length > 6 &&
  3909. isCloseList[toolIndex].isClose == 0
  3910. "
  3911. >
  3912. 收缩
  3913. </div>
  3914. <div
  3915. class="corOpen"
  3916. @click="contract(toolIndex)"
  3917. v-if="isCloseList[toolIndex].isClose == 1"
  3918. >
  3919. 展开
  3920. </div>
  3921. </div>
  3922. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3923. </div>
  3924. <div>
  3925. <div
  3926. class="worksDetailBox"
  3927. v-if="
  3928. worksStudent.length &&
  3929. worksStudent[toolIndex].length > 0
  3930. "
  3931. >
  3932. <div
  3933. v-for="(w, wIndex) in isCloseList[toolIndex]
  3934. .isClose == 0
  3935. ? worksStudent[toolIndex]
  3936. : worksStudent[toolIndex].slice(0, 6)"
  3937. :key="wIndex"
  3938. class="isWorksName"
  3939. @click="
  3940. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3941. "
  3942. >
  3943. {{ w.sName }}
  3944. <img
  3945. class="deleteImg deleteImg2"
  3946. src="../assets/deleteworks.png"
  3947. v-if="
  3948. w.userid == userid || tType == 1 || tType == 4
  3949. "
  3950. @click.stop="deleteWorks(w.wid)"
  3951. alt
  3952. />
  3953. </div>
  3954. <!-- <div class="works" style="
  3955. width: 200px;
  3956. height: 140px;
  3957. border-radius: 10px;
  3958. box-shadow: 0 0 6px 1px #dfdada;
  3959. overflow: hidden;
  3960. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3961. <div class="workImg">
  3962. <img src="../assets/icon/works/noImg.png" @click="
  3963. openTools(
  3964. 4,
  3965. toolIndex,
  3966. taskCount,
  3967. w.works,
  3968. w.sName
  3969. )
  3970. " alt />
  3971. </div>
  3972. <div class="worksName">
  3973. <div>{{ w.sName }}</div>
  3974. <div>{{ w.time }}</div>
  3975. </div>
  3976. </div> -->
  3977. </div>
  3978. </div>
  3979. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3980. 未提交
  3981. </div>
  3982. <div class="noWorksS">
  3983. <div
  3984. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3985. :key="sIndex"
  3986. class="noWorksName"
  3987. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3988. >
  3989. {{ s.student }}
  3990. </div>
  3991. </div>
  3992. </div>
  3993. <div
  3994. v-if="
  3995. tType &&
  3996. ((tType == 2 && sIsOpen == true) ||
  3997. tType == 1 ||
  3998. tType == 4) &&
  3999. tool.tool.indexOf(45) != -1 &&
  4000. (tool.testJson.testJson[0].answer ||
  4001. tool.testJson.testJson[0].answer === 0) &&
  4002. checkJson[toolIndex].length
  4003. "
  4004. class="xuan_right_box"
  4005. >
  4006. <div
  4007. class="tool_right_box"
  4008. v-for="(item, index) in tool.testJson.testJson"
  4009. :key="index"
  4010. >
  4011. <div class="right_box_xuan" style="margin-right: 10px;">
  4012. <span>正确率</span>
  4013. <span>{{
  4014. (checkJson[toolIndex][index].right
  4015. ? checkJson[toolIndex][index].right
  4016. : 0) + "%"
  4017. }}</span>
  4018. </div>
  4019. <div>
  4020. <span style="word-break: break-all;white-space: normal;">{{ index + 1 + "、" + item.teststitle }}</span>
  4021. </div>
  4022. </div>
  4023. </div>
  4024. <div
  4025. class="xuan_right_box"
  4026. style="background: unset"
  4027. v-if="
  4028. tType &&
  4029. ((tType == 2 && sIsOpen == true) ||
  4030. tType == 1 ||
  4031. tType == 4) &&
  4032. tool.tool.indexOf(45) != -1
  4033. "
  4034. >
  4035. <AskStatic2
  4036. v-if="
  4037. worksStudent.length &&
  4038. worksStudent[toolIndex].length > 0
  4039. "
  4040. :askJSON="tool"
  4041. :checkJson="checkJson[toolIndex]"
  4042. ></AskStatic2>
  4043. </div>
  4044. <div
  4045. v-if="
  4046. tType &&
  4047. ((tType == 2 && sIsOpen == true) ||
  4048. tType == 1 ||
  4049. tType == 4) &&
  4050. tool.tool.indexOf(45) != -1
  4051. "
  4052. class="worksBox"
  4053. >
  4054. <div
  4055. class="zuoyeYulan"
  4056. v-if="
  4057. worksStudent.length &&
  4058. worksStudent[toolIndex].length > 0
  4059. "
  4060. >
  4061. <div class="worksTop">
  4062. <div>作业预览</div>
  4063. <div
  4064. class="corOpen"
  4065. @click="contract(toolIndex)"
  4066. v-if="
  4067. worksStudent[toolIndex].length > 6 &&
  4068. isCloseList[toolIndex].isClose == 0
  4069. "
  4070. >
  4071. 收缩
  4072. </div>
  4073. <div
  4074. class="corOpen"
  4075. @click="contract(toolIndex)"
  4076. v-if="isCloseList[toolIndex].isClose == 1"
  4077. >
  4078. 展开
  4079. </div>
  4080. </div>
  4081. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4082. </div>
  4083. <div>
  4084. <div
  4085. class="worksDetailBox"
  4086. v-if="
  4087. worksStudent.length &&
  4088. worksStudent[toolIndex].length > 0
  4089. "
  4090. >
  4091. <div
  4092. v-for="(w, wIndex) in isCloseList[toolIndex]
  4093. .isClose == 0
  4094. ? worksStudent[toolIndex]
  4095. : worksStudent[toolIndex].slice(0, 6)"
  4096. :key="wIndex"
  4097. class="isWorksName"
  4098. @click="
  4099. openTools(
  4100. 45,
  4101. toolIndex,
  4102. taskCount,
  4103. w.works,
  4104. w.sName
  4105. )
  4106. "
  4107. >
  4108. {{ w.sName }}
  4109. <img
  4110. class="deleteImg deleteImg2"
  4111. src="../assets/deleteworks.png"
  4112. v-if="
  4113. w.userid == userid || tType == 1 || tType == 4
  4114. "
  4115. @click.stop="deleteWorks(w.wid)"
  4116. alt
  4117. />
  4118. </div>
  4119. </div>
  4120. </div>
  4121. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4122. 未提交
  4123. </div>
  4124. <div class="noWorksS">
  4125. <div
  4126. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4127. :key="sIndex"
  4128. class="noWorksName"
  4129. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4130. >
  4131. {{ s.student }}
  4132. </div>
  4133. </div>
  4134. </div>
  4135. <div
  4136. v-if="
  4137. tType &&
  4138. ((tType == 2 && sIsOpen == true) ||
  4139. tType == 1 ||
  4140. tType == 4) &&
  4141. tool.tool.indexOf(15) != -1
  4142. "
  4143. class="worksBox"
  4144. >
  4145. <div
  4146. class="zuoyeYulan"
  4147. v-if="
  4148. worksStudent.length &&
  4149. worksStudent[toolIndex].length > 0
  4150. "
  4151. >
  4152. <div class="worksTop">
  4153. <div>作业预览</div>
  4154. <div
  4155. class="corOpen"
  4156. @click="contract(toolIndex)"
  4157. v-if="
  4158. worksStudent[toolIndex].length > 6 &&
  4159. isCloseList[toolIndex].isClose == 0
  4160. "
  4161. >
  4162. 收缩
  4163. </div>
  4164. <div
  4165. class="corOpen"
  4166. @click="contract(toolIndex)"
  4167. v-if="isCloseList[toolIndex].isClose == 1"
  4168. >
  4169. 展开
  4170. </div>
  4171. </div>
  4172. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4173. </div>
  4174. <div
  4175. class="group_workBox"
  4176. v-for="(g, gindex) in courseGroup.group"
  4177. :key="gindex"
  4178. >
  4179. <div class="group_box">
  4180. <div class="group_title">
  4181. <el-tooltip
  4182. class="item"
  4183. effect="light"
  4184. :content="g.name"
  4185. placement="top"
  4186. >
  4187. <div class="group_name">{{ g.name }}</div>
  4188. </el-tooltip>
  4189. </div>
  4190. <div
  4191. class="group_work"
  4192. v-if="
  4193. g.works &&
  4194. g.works.length &&
  4195. g.works[toolIndex].length
  4196. "
  4197. >
  4198. <div
  4199. class="works"
  4200. v-for="(w, wIndex) in g.works[toolIndex]"
  4201. :key="wIndex"
  4202. >
  4203. <div
  4204. class="workImg"
  4205. style="
  4206. border-radius: 15px;
  4207. box-shadow: #eee 0px 0px 5px 5px;
  4208. "
  4209. >
  4210. <div
  4211. class="answerBg"
  4212. style="border-radius: 15px 15px 0 0"
  4213. @click="
  4214. commentOther(w, toolIndex, wIndex, null, g.id)
  4215. "
  4216. >
  4217. <div class="answerContent">
  4218. {{ JSON.parse(w.works)[0].answer }}
  4219. </div>
  4220. <div
  4221. class="answerScore"
  4222. v-if="w.score"
  4223. @click.stop="openScore(w)"
  4224. :class="{
  4225. rightW:
  4226. w.userid == userid ||
  4227. tType == 1 ||
  4228. tType == 4,
  4229. }"
  4230. >
  4231. {{ JSON.parse(w.score).wScore }}分
  4232. </div>
  4233. <div
  4234. class="answerScore"
  4235. @click.stop="openScore(w)"
  4236. v-else-if="courseDetail.userid == userid"
  4237. :class="{
  4238. rightW:
  4239. w.userid == userid ||
  4240. tType == 1 ||
  4241. tType == 4,
  4242. }"
  4243. >
  4244. 评分
  4245. </div>
  4246. <img
  4247. class="deleteImg"
  4248. src="../assets/deleteworks.png"
  4249. v-if="
  4250. w.userid == userid ||
  4251. tType == 1 ||
  4252. tType == 4
  4253. "
  4254. @click.stop="deleteWorks(w.wid)"
  4255. alt
  4256. />
  4257. </div>
  4258. <div class="comment">
  4259. <div class="worksName">
  4260. <div>{{ w.sName }}</div>
  4261. </div>
  4262. <div class="commentList">
  4263. <div
  4264. class="commentImg"
  4265. @click="
  4266. isLikes(w.wid, userid, 1, null, w.isLikes)
  4267. "
  4268. >
  4269. <img
  4270. :src="w.isLikes == true ? likes : noLikes"
  4271. alt=""
  4272. />
  4273. </div>
  4274. <div>{{ w.likesCount }}</div>
  4275. </div>
  4276. <div
  4277. class="commentList"
  4278. style="margin-right: 15px"
  4279. >
  4280. <div
  4281. class="commentImg"
  4282. @click="
  4283. commentOther(
  4284. w,
  4285. toolIndex,
  4286. wIndex,
  4287. null,
  4288. g.id
  4289. )
  4290. "
  4291. >
  4292. <img
  4293. src="../assets/icon/comment/comment.png"
  4294. alt=""
  4295. />
  4296. </div>
  4297. <div>{{ w.commentCount }}</div>
  4298. </div>
  4299. </div>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <div class="group_work" v-else>暂无提交作业</div>
  4304. </div>
  4305. </div>
  4306. <div
  4307. class="worksDetailBox"
  4308. v-if="
  4309. worksStudent.length &&
  4310. worksStudent[toolIndex].length > 0
  4311. "
  4312. >
  4313. <div
  4314. class="works"
  4315. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4316. 0
  4317. ? worksStudent[toolIndex]
  4318. : worksStudent[toolIndex].slice(0, 6)"
  4319. :key="wIndex"
  4320. >
  4321. <div
  4322. class="workImg"
  4323. style="
  4324. border-radius: 15px;
  4325. box-shadow: #eee 0px 0px 5px 5px;
  4326. "
  4327. >
  4328. <!-- <img
  4329. src="../assets/icon/works/noImg.png"
  4330. @click="openTools(15, toolIndex, taskCount, w.works)"
  4331. alt=""
  4332. />-->
  4333. <div
  4334. class="answerBg"
  4335. style="border-radius: 15px 15px 0 0"
  4336. @click="commentOther(w, toolIndex, wIndex)"
  4337. >
  4338. <!-- <div>{{ w.sName }}</div> -->
  4339. <div class="answerContent">
  4340. {{ JSON.parse(w.works)[0].answer }}
  4341. </div>
  4342. <div
  4343. class="answerScore"
  4344. v-if="w.score"
  4345. @click.stop="openScore(w)"
  4346. :class="{
  4347. rightW:
  4348. w.userid == userid ||
  4349. tType == 1 ||
  4350. tType == 4,
  4351. }"
  4352. >
  4353. {{ JSON.parse(w.score).wScore }}分
  4354. </div>
  4355. <div
  4356. class="answerScore"
  4357. @click.stop="openScore(w)"
  4358. v-else-if="courseDetail.userid == userid"
  4359. :class="{
  4360. rightW:
  4361. w.userid == userid ||
  4362. tType == 1 ||
  4363. tType == 4,
  4364. }"
  4365. >
  4366. 评分
  4367. </div>
  4368. <img
  4369. class="deleteImg"
  4370. src="../assets/deleteworks.png"
  4371. v-if="
  4372. w.userid == userid || tType == 1 || tType == 4
  4373. "
  4374. @click.stop="deleteWorks(w.wid)"
  4375. alt
  4376. />
  4377. </div>
  4378. <div class="comment">
  4379. <div class="worksName">
  4380. <div>{{ w.sName }}</div>
  4381. </div>
  4382. <div class="commentList">
  4383. <div
  4384. class="commentImg"
  4385. @click="
  4386. isLikes(w.wid, userid, 1, null, w.isLikes)
  4387. "
  4388. >
  4389. <img
  4390. :src="w.isLikes == true ? likes : noLikes"
  4391. alt=""
  4392. />
  4393. </div>
  4394. <div>{{ w.likesCount }}</div>
  4395. </div>
  4396. <div class="commentList" style="margin-right: 15px">
  4397. <div
  4398. class="commentImg"
  4399. @click="commentOther(w, toolIndex, wIndex)"
  4400. >
  4401. <img
  4402. src="../assets/icon/comment/comment.png"
  4403. alt=""
  4404. />
  4405. </div>
  4406. <div>{{ w.commentCount }}</div>
  4407. </div>
  4408. </div>
  4409. </div>
  4410. </div>
  4411. </div>
  4412. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4413. 未提交
  4414. </div>
  4415. <div class="noWorksS">
  4416. <div
  4417. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4418. :key="sIndex"
  4419. class="noWorksName"
  4420. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4421. >
  4422. {{ s.student }}
  4423. </div>
  4424. </div>
  4425. </div>
  4426. <div
  4427. v-if="
  4428. tType &&
  4429. ((tType == 2 && sIsOpen == true) ||
  4430. tType == 1 ||
  4431. tType == 4) &&
  4432. tool.tool.indexOf(1) != -1
  4433. "
  4434. class="worksBox"
  4435. >
  4436. <div
  4437. class="zuoyeYulan"
  4438. v-if="
  4439. worksStudent.length &&
  4440. worksStudent[toolIndex].length > 0
  4441. "
  4442. >
  4443. <div class="worksTop">
  4444. <div>作业预览</div>
  4445. <div
  4446. class="corOpen"
  4447. @click="contract(toolIndex)"
  4448. v-if="
  4449. worksStudent[toolIndex].length > 6 &&
  4450. isCloseList[toolIndex].isClose == 0
  4451. "
  4452. >
  4453. 收缩
  4454. </div>
  4455. <div
  4456. class="corOpen"
  4457. @click="contract(toolIndex)"
  4458. v-if="isCloseList[toolIndex].isClose == 1"
  4459. >
  4460. 展开
  4461. </div>
  4462. </div>
  4463. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4464. </div>
  4465. <div
  4466. class="group_workBox"
  4467. v-for="(g, gindex) in courseGroup.group"
  4468. :key="gindex"
  4469. >
  4470. <div class="group_box">
  4471. <div class="group_title">
  4472. <el-tooltip
  4473. class="item"
  4474. effect="light"
  4475. :content="g.name"
  4476. placement="top"
  4477. >
  4478. <div class="group_name">{{ g.name }}</div>
  4479. </el-tooltip>
  4480. </div>
  4481. <div
  4482. class="group_work"
  4483. v-if="
  4484. g.works &&
  4485. g.works.length &&
  4486. g.works[toolIndex].length
  4487. "
  4488. >
  4489. <div
  4490. class="works"
  4491. style="
  4492. width: 200px;
  4493. height: 140px;
  4494. margin: 10px 10px 10px 0;
  4495. border-radius: 15px;
  4496. box-shadow: 0 0 6px 1px #dfdada;
  4497. "
  4498. v-for="(w, wIndex) in g.works[toolIndex]"
  4499. :key="wIndex"
  4500. :class="w.type == 1 ? 'isTypeOne' : ''"
  4501. >
  4502. <div class="workImg">
  4503. <img
  4504. :src="w.works"
  4505. @click="previewImg(w.works)"
  4506. alt
  4507. />
  4508. <div
  4509. class="answerScore"
  4510. v-if="w.score"
  4511. @click.stop="openScore(w)"
  4512. :class="{
  4513. rightW:
  4514. w.userid == userid ||
  4515. tType == 1 ||
  4516. tType == 4,
  4517. }"
  4518. >
  4519. {{ JSON.parse(w.score).wScore }}分
  4520. </div>
  4521. <div
  4522. class="answerScore"
  4523. @click.stop="openScore(w)"
  4524. v-else-if="courseDetail.userid == userid"
  4525. :class="{
  4526. rightW:
  4527. w.userid == userid ||
  4528. tType == 1 ||
  4529. tType == 4,
  4530. }"
  4531. >
  4532. 评分
  4533. </div>
  4534. <img
  4535. class="deleteImg"
  4536. src="../assets/deleteworks.png"
  4537. v-if="
  4538. w.userid == userid || tType == 1 || tType == 4
  4539. "
  4540. @click.stop="deleteWorks(w.wid)"
  4541. alt
  4542. />
  4543. </div>
  4544. <div class="comment" style="min-width: 200px">
  4545. <div class="worksName">
  4546. <div>{{ w.sName }}</div>
  4547. </div>
  4548. <div class="commentList">
  4549. <div class="commentList">
  4550. <div
  4551. class="commentImg"
  4552. @click="
  4553. isLikes(w.wid, userid, 1, null, w.isLikes)
  4554. "
  4555. >
  4556. <img
  4557. :src="w.isLikes == true ? likes : noLikes"
  4558. alt=""
  4559. />
  4560. </div>
  4561. <div>{{ w.likesCount }}</div>
  4562. </div>
  4563. <div
  4564. class="commentList"
  4565. style="margin-right: 15px"
  4566. >
  4567. <div
  4568. class="commentImg"
  4569. @click="
  4570. commentOther(
  4571. w,
  4572. toolIndex,
  4573. wIndex,
  4574. null,
  4575. g.id
  4576. )
  4577. "
  4578. >
  4579. <img
  4580. src="../assets/icon/comment/comment.png"
  4581. alt=""
  4582. />
  4583. </div>
  4584. <div>{{ w.commentCount }}</div>
  4585. </div>
  4586. </div>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. <div class="group_work" v-else>暂无提交作业</div>
  4591. </div>
  4592. </div>
  4593. <div
  4594. class="worksDetailBox"
  4595. v-if="
  4596. worksStudent.length &&
  4597. worksStudent[toolIndex].length > 0
  4598. "
  4599. >
  4600. <div
  4601. class="works"
  4602. style="
  4603. width: 200px;
  4604. height: 140px;
  4605. margin: 10px 10px 10px 0;
  4606. border-radius: 15px;
  4607. box-shadow: 0 0 6px 1px #dfdada;
  4608. "
  4609. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4610. 0
  4611. ? worksStudent[toolIndex]
  4612. : worksStudent[toolIndex].slice(0, 6)"
  4613. :key="wIndex"
  4614. >
  4615. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4616. <div class="workImg">
  4617. <img
  4618. :src="w.works"
  4619. @click="previewImg(w.works)"
  4620. alt
  4621. />
  4622. <div
  4623. class="answerScore"
  4624. v-if="w.score"
  4625. @click.stop="openScore(w)"
  4626. :class="{
  4627. rightW:
  4628. w.userid == userid || tType == 1 || tType == 4,
  4629. }"
  4630. >
  4631. {{ JSON.parse(w.score).wScore }}分
  4632. </div>
  4633. <div
  4634. class="answerScore"
  4635. @click.stop="openScore(w)"
  4636. v-else-if="courseDetail.userid == userid"
  4637. :class="{
  4638. rightW:
  4639. w.userid == userid || tType == 1 || tType == 4,
  4640. }"
  4641. >
  4642. 评分
  4643. </div>
  4644. <img
  4645. class="deleteImg"
  4646. src="../assets/deleteworks.png"
  4647. v-if="
  4648. w.userid == userid || tType == 1 || tType == 4
  4649. "
  4650. @click.stop="deleteWorks(w.wid)"
  4651. alt
  4652. />
  4653. </div>
  4654. <div class="comment" style="min-width: 200px">
  4655. <div class="worksName">
  4656. <div>{{ w.sName }}</div>
  4657. </div>
  4658. <div class="commentList">
  4659. <div class="commentList">
  4660. <div
  4661. class="commentImg"
  4662. @click="
  4663. isLikes(w.wid, userid, 1, null, w.isLikes)
  4664. "
  4665. >
  4666. <img
  4667. :src="w.isLikes == true ? likes : noLikes"
  4668. alt=""
  4669. />
  4670. </div>
  4671. <div>{{ w.likesCount }}</div>
  4672. </div>
  4673. <div class="commentList" style="margin-right: 15px">
  4674. <div
  4675. class="commentImg"
  4676. @click="commentOther(w, toolIndex, wIndex)"
  4677. >
  4678. <img
  4679. src="../assets/icon/comment/comment.png"
  4680. alt=""
  4681. />
  4682. </div>
  4683. <div>{{ w.commentCount }}</div>
  4684. </div>
  4685. </div>
  4686. </div>
  4687. </div>
  4688. </div>
  4689. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4690. 未提交
  4691. </div>
  4692. <div class="noWorksS">
  4693. <div
  4694. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4695. :key="sIndex"
  4696. class="noWorksName"
  4697. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4698. >
  4699. {{ s.student }}
  4700. </div>
  4701. </div>
  4702. </div>
  4703. <div
  4704. v-if="
  4705. tType &&
  4706. ((tType == 2 && sIsOpen == true) ||
  4707. tType == 1 ||
  4708. tType == 4) &&
  4709. tool.tool.indexOf(3) != -1
  4710. "
  4711. class="worksBox"
  4712. >
  4713. <div
  4714. class="zuoyeYulan"
  4715. v-if="
  4716. worksStudent.length &&
  4717. worksStudent[toolIndex].length > 0
  4718. "
  4719. >
  4720. <div class="worksTop">
  4721. <div>作业预览</div>
  4722. <div
  4723. class="corOpen"
  4724. @click="contract(toolIndex)"
  4725. v-if="
  4726. worksStudent[toolIndex].length > 6 &&
  4727. isCloseList[toolIndex].isClose == 0
  4728. "
  4729. >
  4730. 收缩
  4731. </div>
  4732. <div
  4733. class="corOpen"
  4734. @click="contract(toolIndex)"
  4735. v-if="isCloseList[toolIndex].isClose == 1"
  4736. >
  4737. 展开
  4738. </div>
  4739. </div>
  4740. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4741. </div>
  4742. <div
  4743. class="group_workBox"
  4744. v-for="(g, gindex) in courseGroup.group"
  4745. :key="gindex"
  4746. >
  4747. <div class="group_box">
  4748. <div class="group_title">
  4749. <el-tooltip
  4750. class="item"
  4751. effect="light"
  4752. :content="g.name"
  4753. placement="top"
  4754. >
  4755. <div class="group_name">{{ g.name }}</div>
  4756. </el-tooltip>
  4757. </div>
  4758. <div
  4759. class="group_work"
  4760. v-if="
  4761. g.works &&
  4762. g.works.length &&
  4763. g.works[toolIndex].length
  4764. "
  4765. >
  4766. <div
  4767. class="works"
  4768. style="
  4769. width: 200px;
  4770. height: 140px;
  4771. margin: 10px 10px 10px 0;
  4772. border-radius: 15px;
  4773. box-shadow: 0 0 6px 1px #dfdada;
  4774. "
  4775. v-for="(w, wIndex) in g.works[toolIndex]"
  4776. :key="wIndex"
  4777. :class="w.type == 1 ? 'isTypeOne' : ''"
  4778. >
  4779. <div class="workImg">
  4780. <img
  4781. :src="w.works"
  4782. @click="previewImg(w.works)"
  4783. alt
  4784. />
  4785. <div
  4786. class="answerScore"
  4787. v-if="w.score"
  4788. @click.stop="openScore(w)"
  4789. :class="{
  4790. rightW:
  4791. w.userid == userid ||
  4792. tType == 1 ||
  4793. tType == 4,
  4794. }"
  4795. >
  4796. {{ JSON.parse(w.score).wScore }}分
  4797. </div>
  4798. <div
  4799. class="answerScore"
  4800. @click.stop="openScore(w)"
  4801. v-else-if="courseDetail.userid == userid"
  4802. :class="{
  4803. rightW:
  4804. w.userid == userid ||
  4805. tType == 1 ||
  4806. tType == 4,
  4807. }"
  4808. >
  4809. 评分
  4810. </div>
  4811. <img
  4812. class="deleteImg"
  4813. src="../assets/deleteworks.png"
  4814. v-if="
  4815. w.userid == userid || tType == 1 || tType == 4
  4816. "
  4817. @click.stop="deleteWorks(w.wid)"
  4818. alt
  4819. />
  4820. </div>
  4821. <div class="comment" style="min-width: 200px">
  4822. <div class="worksName">
  4823. <div>{{ w.sName }}</div>
  4824. </div>
  4825. <div class="commentList">
  4826. <div class="commentList">
  4827. <div
  4828. class="commentImg"
  4829. @click="
  4830. isLikes(w.wid, userid, 1, null, w.isLikes)
  4831. "
  4832. >
  4833. <img
  4834. :src="w.isLikes == true ? likes : noLikes"
  4835. alt=""
  4836. />
  4837. </div>
  4838. <div>{{ w.likesCount }}</div>
  4839. </div>
  4840. <div
  4841. class="commentList"
  4842. style="margin-right: 15px"
  4843. >
  4844. <div
  4845. class="commentImg"
  4846. @click="
  4847. commentOther(
  4848. w,
  4849. toolIndex,
  4850. wIndex,
  4851. null,
  4852. g.id
  4853. )
  4854. "
  4855. >
  4856. <img
  4857. src="../assets/icon/comment/comment.png"
  4858. alt=""
  4859. />
  4860. </div>
  4861. <div>{{ w.commentCount }}</div>
  4862. </div>
  4863. </div>
  4864. </div>
  4865. </div>
  4866. </div>
  4867. <div class="group_work" v-else>暂无提交作业</div>
  4868. </div>
  4869. </div>
  4870. <div
  4871. class="worksDetailBox"
  4872. v-if="
  4873. worksStudent.length &&
  4874. worksStudent[toolIndex].length > 0
  4875. "
  4876. >
  4877. <div
  4878. class="works"
  4879. style="
  4880. width: 200px;
  4881. height: 140px;
  4882. margin: 10px 10px 10px 0;
  4883. border-radius: 15px;
  4884. box-shadow: 0 0 6px 1px #dfdada;
  4885. "
  4886. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4887. 0
  4888. ? worksStudent[toolIndex]
  4889. : worksStudent[toolIndex].slice(0, 6)"
  4890. :key="wIndex"
  4891. >
  4892. <!-- @click="previewImg(w.works)" -->
  4893. <div class="workImg">
  4894. <img
  4895. :src="w.works"
  4896. @click="previewImg(w.works)"
  4897. alt
  4898. />
  4899. <div
  4900. class="answerScore"
  4901. v-if="w.score"
  4902. @click.stop="openScore(w)"
  4903. :class="{
  4904. rightW:
  4905. w.userid == userid || tType == 1 || tType == 4,
  4906. }"
  4907. >
  4908. {{ JSON.parse(w.score).wScore }}分
  4909. </div>
  4910. <div
  4911. class="answerScore"
  4912. @click.stop="openScore(w)"
  4913. v-else-if="courseDetail.userid == userid"
  4914. :class="{
  4915. rightW:
  4916. w.userid == userid || tType == 1 || tType == 4,
  4917. }"
  4918. >
  4919. 评分
  4920. </div>
  4921. <img
  4922. class="deleteImg"
  4923. src="../assets/deleteworks.png"
  4924. v-if="
  4925. w.userid == userid || tType == 1 || tType == 4
  4926. "
  4927. @click.stop="deleteWorks(w.wid)"
  4928. alt
  4929. />
  4930. </div>
  4931. <div class="comment" style="min-width: 200px">
  4932. <div class="worksName">
  4933. <div>{{ w.sName }}</div>
  4934. </div>
  4935. <div class="commentList">
  4936. <div class="commentList">
  4937. <div
  4938. class="commentImg"
  4939. @click="
  4940. isLikes(w.wid, userid, 1, null, w.isLikes)
  4941. "
  4942. >
  4943. <img
  4944. :src="w.isLikes == true ? likes : noLikes"
  4945. alt=""
  4946. />
  4947. </div>
  4948. <div>{{ w.likesCount }}</div>
  4949. </div>
  4950. <div class="commentList" style="margin-right: 15px">
  4951. <div
  4952. class="commentImg"
  4953. @click="commentOther(w, toolIndex, wIndex)"
  4954. >
  4955. <img
  4956. src="../assets/icon/comment/comment.png"
  4957. alt=""
  4958. />
  4959. </div>
  4960. <div>{{ w.commentCount }}</div>
  4961. </div>
  4962. </div>
  4963. </div>
  4964. </div>
  4965. </div>
  4966. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4967. 未提交
  4968. </div>
  4969. <div class="noWorksS">
  4970. <div
  4971. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4972. :key="sIndex"
  4973. class="noWorksName"
  4974. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4975. >
  4976. {{ s.student }}
  4977. </div>
  4978. </div>
  4979. </div>
  4980. <div
  4981. v-if="
  4982. tType &&
  4983. ((tType == 2 && sIsOpen == true) ||
  4984. tType == 1 ||
  4985. tType == 4) &&
  4986. tool.tool.indexOf(6) != -1
  4987. "
  4988. class="worksBox"
  4989. >
  4990. <div
  4991. class="zuoyeYulan"
  4992. v-if="
  4993. worksStudent.length &&
  4994. worksStudent[toolIndex].length > 0
  4995. "
  4996. >
  4997. <div class="worksTop">
  4998. <div>作业预览</div>
  4999. <div
  5000. class="corOpen"
  5001. @click="contract(toolIndex)"
  5002. v-if="
  5003. worksStudent[toolIndex].length > 6 &&
  5004. isCloseList[toolIndex].isClose == 0
  5005. "
  5006. >
  5007. 收缩
  5008. </div>
  5009. <div
  5010. class="corOpen"
  5011. @click="contract(toolIndex)"
  5012. v-if="isCloseList[toolIndex].isClose == 1"
  5013. >
  5014. 展开
  5015. </div>
  5016. </div>
  5017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5018. </div>
  5019. <div
  5020. class="group_workBox"
  5021. v-for="(g, gindex) in courseGroup.group"
  5022. :key="gindex"
  5023. >
  5024. <div class="group_box">
  5025. <div class="group_title">
  5026. <el-tooltip
  5027. class="item"
  5028. effect="light"
  5029. :content="g.name"
  5030. placement="top"
  5031. >
  5032. <div class="group_name">{{ g.name }}</div>
  5033. </el-tooltip>
  5034. </div>
  5035. <div
  5036. class="group_work"
  5037. v-if="
  5038. g.works &&
  5039. g.works.length &&
  5040. g.works[toolIndex].length
  5041. "
  5042. >
  5043. <div
  5044. class="works"
  5045. style="
  5046. width: 200px;
  5047. height: 140px;
  5048. margin: 10px 10px 10px 0;
  5049. border-radius: 15px;
  5050. box-shadow: 0 0 6px 1px #dfdada;
  5051. "
  5052. v-for="(w, wIndex) in g.works[toolIndex]"
  5053. :key="wIndex"
  5054. :class="w.type == 1 ? 'isTypeOne' : ''"
  5055. >
  5056. <div class="workImg">
  5057. <img
  5058. :src="w.works"
  5059. @click="previewImg(w.works)"
  5060. alt
  5061. />
  5062. <div
  5063. class="answerScore"
  5064. v-if="w.score"
  5065. @click.stop="openScore(w)"
  5066. :class="{
  5067. rightW:
  5068. w.userid == userid ||
  5069. tType == 1 ||
  5070. tType == 4,
  5071. }"
  5072. >
  5073. {{ JSON.parse(w.score).wScore }}分
  5074. </div>
  5075. <div
  5076. class="answerScore"
  5077. @click.stop="openScore(w)"
  5078. v-else-if="courseDetail.userid == userid"
  5079. :class="{
  5080. rightW:
  5081. w.userid == userid ||
  5082. tType == 1 ||
  5083. tType == 4,
  5084. }"
  5085. >
  5086. 评分
  5087. </div>
  5088. <img
  5089. class="deleteImg"
  5090. src="../assets/deleteworks.png"
  5091. v-if="
  5092. w.userid == userid || tType == 1 || tType == 4
  5093. "
  5094. @click.stop="deleteWorks(w.wid)"
  5095. alt
  5096. />
  5097. </div>
  5098. <div class="comment" style="min-width: 200px">
  5099. <div class="worksName">
  5100. <div>{{ w.sName }}</div>
  5101. </div>
  5102. <div class="commentList">
  5103. <div class="commentList">
  5104. <div
  5105. class="commentImg"
  5106. @click="
  5107. isLikes(w.wid, userid, 1, null, w.isLikes)
  5108. "
  5109. >
  5110. <img
  5111. :src="w.isLikes == true ? likes : noLikes"
  5112. alt=""
  5113. />
  5114. </div>
  5115. <div>{{ w.likesCount }}</div>
  5116. </div>
  5117. <div
  5118. class="commentList"
  5119. style="margin-right: 15px"
  5120. >
  5121. <div
  5122. class="commentImg"
  5123. @click="
  5124. commentOther(
  5125. w,
  5126. toolIndex,
  5127. wIndex,
  5128. null,
  5129. g.id
  5130. )
  5131. "
  5132. >
  5133. <img
  5134. src="../assets/icon/comment/comment.png"
  5135. alt=""
  5136. />
  5137. </div>
  5138. <div>{{ w.commentCount }}</div>
  5139. </div>
  5140. </div>
  5141. </div>
  5142. </div>
  5143. </div>
  5144. <div class="group_work" v-else>暂无提交作业</div>
  5145. </div>
  5146. </div>
  5147. <div
  5148. class="worksDetailBox"
  5149. v-if="
  5150. worksStudent.length &&
  5151. worksStudent[toolIndex].length > 0
  5152. "
  5153. >
  5154. <div
  5155. class="works"
  5156. style="
  5157. width: 200px;
  5158. height: 140px;
  5159. margin: 10px 10px 10px 0;
  5160. border-radius: 15px;
  5161. box-shadow: 0 0 6px 1px #dfdada;
  5162. "
  5163. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5164. 0
  5165. ? worksStudent[toolIndex]
  5166. : worksStudent[toolIndex].slice(0, 6)"
  5167. :key="wIndex"
  5168. >
  5169. <!-- @click="previewImg(w.works)" -->
  5170. <div class="workImg">
  5171. <img
  5172. :src="w.works"
  5173. @click="previewImg(w.works)"
  5174. alt
  5175. />
  5176. <div
  5177. class="answerScore"
  5178. v-if="w.score"
  5179. @click.stop="openScore(w)"
  5180. :class="{
  5181. rightW:
  5182. w.userid == userid || tType == 1 || tType == 4,
  5183. }"
  5184. >
  5185. {{ JSON.parse(w.score).wScore }}分
  5186. </div>
  5187. <div
  5188. class="answerScore"
  5189. @click.stop="openScore(w)"
  5190. v-else-if="courseDetail.userid == userid"
  5191. :class="{
  5192. rightW:
  5193. w.userid == userid || tType == 1 || tType == 4,
  5194. }"
  5195. >
  5196. 评分
  5197. </div>
  5198. <img
  5199. class="deleteImg"
  5200. src="../assets/deleteworks.png"
  5201. v-if="
  5202. w.userid == userid || tType == 1 || tType == 4
  5203. "
  5204. @click.stop="deleteWorks(w.wid)"
  5205. alt
  5206. />
  5207. </div>
  5208. <div class="comment" style="min-width: 200px">
  5209. <div class="worksName">
  5210. <div>{{ w.sName }}</div>
  5211. </div>
  5212. <div class="commentList">
  5213. <div class="commentList">
  5214. <div
  5215. class="commentImg"
  5216. @click="
  5217. isLikes(w.wid, userid, 1, null, w.isLikes)
  5218. "
  5219. >
  5220. <img
  5221. :src="w.isLikes == true ? likes : noLikes"
  5222. alt=""
  5223. />
  5224. </div>
  5225. <div>{{ w.likesCount }}</div>
  5226. </div>
  5227. <div class="commentList" style="margin-right: 15px">
  5228. <div
  5229. class="commentImg"
  5230. @click="commentOther(w, toolIndex, wIndex)"
  5231. >
  5232. <img
  5233. src="../assets/icon/comment/comment.png"
  5234. alt=""
  5235. />
  5236. </div>
  5237. <div>{{ w.commentCount }}</div>
  5238. </div>
  5239. </div>
  5240. </div>
  5241. </div>
  5242. </div>
  5243. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5244. 未提交
  5245. </div>
  5246. <div class="noWorksS">
  5247. <div
  5248. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5249. :key="sIndex"
  5250. class="noWorksName"
  5251. >
  5252. {{ s.student }}
  5253. </div>
  5254. </div>
  5255. </div>
  5256. <div
  5257. v-if="
  5258. tType &&
  5259. ((tType == 2 && sIsOpen == true) ||
  5260. tType == 1 ||
  5261. tType == 4) &&
  5262. tool.tool.indexOf(7) != -1
  5263. "
  5264. class="worksBox"
  5265. >
  5266. <div
  5267. class="zuoyeYulan"
  5268. v-if="
  5269. worksStudent.length &&
  5270. worksStudent[toolIndex].length > 0
  5271. "
  5272. >
  5273. <div class="worksTop">
  5274. <div>作业预览</div>
  5275. <div
  5276. class="corOpen"
  5277. @click="contract(toolIndex)"
  5278. v-if="
  5279. worksStudent[toolIndex].length > 6 &&
  5280. isCloseList[toolIndex].isClose == 0
  5281. "
  5282. >
  5283. 收缩
  5284. </div>
  5285. <div
  5286. class="corOpen"
  5287. @click="contract(toolIndex)"
  5288. v-if="isCloseList[toolIndex].isClose == 1"
  5289. >
  5290. 展开
  5291. </div>
  5292. </div>
  5293. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5294. </div>
  5295. <div
  5296. class="group_workBox"
  5297. v-for="(g, gindex) in courseGroup.group"
  5298. :key="gindex"
  5299. >
  5300. <div class="group_box">
  5301. <div class="group_title">
  5302. <el-tooltip
  5303. class="item"
  5304. effect="light"
  5305. :content="g.name"
  5306. placement="top"
  5307. >
  5308. <div class="group_name">{{ g.name }}</div>
  5309. </el-tooltip>
  5310. </div>
  5311. <div
  5312. class="group_work"
  5313. v-if="
  5314. g.works &&
  5315. g.works.length &&
  5316. g.works[toolIndex].length
  5317. "
  5318. >
  5319. <div
  5320. class="works"
  5321. style="
  5322. width: 200px;
  5323. height: 140px;
  5324. margin: 10px 10px 10px 0;
  5325. border-radius: 15px;
  5326. box-shadow: 0 0 6px 1px #dfdada;
  5327. "
  5328. v-for="(w, wIndex) in g.works[toolIndex]"
  5329. :key="wIndex"
  5330. :class="w.type == 1 ? 'isTypeOne' : ''"
  5331. >
  5332. <div class="workImg">
  5333. <img
  5334. :src="w.works"
  5335. @click="previewImg(w.works)"
  5336. alt
  5337. />
  5338. <div
  5339. class="answerScore"
  5340. v-if="w.score"
  5341. @click.stop="openScore(w)"
  5342. :class="{
  5343. rightW:
  5344. w.userid == userid ||
  5345. tType == 1 ||
  5346. tType == 4,
  5347. }"
  5348. >
  5349. {{ JSON.parse(w.score).wScore }}分
  5350. </div>
  5351. <div
  5352. class="answerScore"
  5353. @click.stop="openScore(w)"
  5354. v-else-if="courseDetail.userid == userid"
  5355. :class="{
  5356. rightW:
  5357. w.userid == userid ||
  5358. tType == 1 ||
  5359. tType == 4,
  5360. }"
  5361. >
  5362. 评分
  5363. </div>
  5364. <img
  5365. class="deleteImg"
  5366. src="../assets/deleteworks.png"
  5367. v-if="
  5368. w.userid == userid || tType == 1 || tType == 4
  5369. "
  5370. @click.stop="deleteWorks(w.wid)"
  5371. alt
  5372. />
  5373. </div>
  5374. <div class="comment" style="min-width: 200px">
  5375. <div class="worksName">
  5376. <div>{{ w.sName }}</div>
  5377. </div>
  5378. <div class="commentList">
  5379. <div class="commentList">
  5380. <div
  5381. class="commentImg"
  5382. @click="
  5383. isLikes(w.wid, userid, 1, null, w.isLikes)
  5384. "
  5385. >
  5386. <img
  5387. :src="w.isLikes == true ? likes : noLikes"
  5388. alt=""
  5389. />
  5390. </div>
  5391. <div>{{ w.likesCount }}</div>
  5392. </div>
  5393. <div
  5394. class="commentList"
  5395. style="margin-right: 15px"
  5396. >
  5397. <div
  5398. class="commentImg"
  5399. @click="
  5400. commentOther(
  5401. w,
  5402. toolIndex,
  5403. wIndex,
  5404. null,
  5405. g.id
  5406. )
  5407. "
  5408. >
  5409. <img
  5410. src="../assets/icon/comment/comment.png"
  5411. alt=""
  5412. />
  5413. </div>
  5414. <div>{{ w.commentCount }}</div>
  5415. </div>
  5416. </div>
  5417. </div>
  5418. </div>
  5419. </div>
  5420. <div class="group_work" v-else>暂无提交作业</div>
  5421. </div>
  5422. </div>
  5423. <div
  5424. class="worksDetailBox"
  5425. v-if="
  5426. worksStudent.length &&
  5427. worksStudent[toolIndex].length > 0
  5428. "
  5429. >
  5430. <div
  5431. class="works"
  5432. style="
  5433. width: 200px;
  5434. height: 140px;
  5435. margin: 10px 10px 10px 0;
  5436. border-radius: 15px;
  5437. box-shadow: 0 0 6px 1px #dfdada;
  5438. "
  5439. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5440. 0
  5441. ? worksStudent[toolIndex]
  5442. : worksStudent[toolIndex].slice(0, 6)"
  5443. :key="wIndex"
  5444. >
  5445. <!-- @click="previewImg(w.works)" -->
  5446. <div class="workImg">
  5447. <img
  5448. :src="w.works"
  5449. @click="previewImg(w.works)"
  5450. alt
  5451. />
  5452. <div
  5453. class="answerScore"
  5454. v-if="w.score"
  5455. @click.stop="openScore(w)"
  5456. :class="{
  5457. rightW:
  5458. w.userid == userid || tType == 1 || tType == 4,
  5459. }"
  5460. >
  5461. {{ JSON.parse(w.score).wScore }}分
  5462. </div>
  5463. <div
  5464. class="answerScore"
  5465. @click.stop="openScore(w)"
  5466. v-else-if="courseDetail.userid == userid"
  5467. :class="{
  5468. rightW:
  5469. w.userid == userid || tType == 1 || tType == 4,
  5470. }"
  5471. >
  5472. 评分
  5473. </div>
  5474. <img
  5475. class="deleteImg"
  5476. src="../assets/deleteworks.png"
  5477. v-if="
  5478. w.userid == userid || tType == 1 || tType == 4
  5479. "
  5480. @click.stop="deleteWorks(w.wid)"
  5481. alt
  5482. />
  5483. </div>
  5484. <div class="comment" style="min-width: 200px">
  5485. <div class="worksName">
  5486. <div>{{ w.sName }}</div>
  5487. </div>
  5488. <div class="commentList">
  5489. <div class="commentList">
  5490. <div
  5491. class="commentImg"
  5492. @click="
  5493. isLikes(w.wid, userid, 1, null, w.isLikes)
  5494. "
  5495. >
  5496. <img
  5497. :src="w.isLikes == true ? likes : noLikes"
  5498. alt=""
  5499. />
  5500. </div>
  5501. <div>{{ w.likesCount }}</div>
  5502. </div>
  5503. <div class="commentList" style="margin-right: 15px">
  5504. <div
  5505. class="commentImg"
  5506. @click="commentOther(w, toolIndex, wIndex)"
  5507. >
  5508. <img
  5509. src="../assets/icon/comment/comment.png"
  5510. alt=""
  5511. />
  5512. </div>
  5513. <div>{{ w.commentCount }}</div>
  5514. </div>
  5515. </div>
  5516. </div>
  5517. </div>
  5518. </div>
  5519. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5520. 未提交
  5521. </div>
  5522. <div class="noWorksS">
  5523. <div
  5524. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5525. :key="sIndex"
  5526. class="noWorksName"
  5527. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5528. >
  5529. {{ s.student }}
  5530. </div>
  5531. </div>
  5532. </div>
  5533. <div
  5534. v-if="
  5535. tType &&
  5536. ((tType == 2 && sIsOpen == true) ||
  5537. tType == 1 ||
  5538. tType == 4) &&
  5539. tool.tool.indexOf(26) != -1
  5540. "
  5541. class="worksBox"
  5542. >
  5543. <div
  5544. class="zuoyeYulan"
  5545. v-if="
  5546. worksStudent.length &&
  5547. worksStudent[toolIndex].length > 0
  5548. "
  5549. >
  5550. <div class="worksTop">
  5551. <div>作业预览</div>
  5552. <div
  5553. class="corOpen"
  5554. @click="contract(toolIndex)"
  5555. v-if="
  5556. worksStudent[toolIndex].length > 6 &&
  5557. isCloseList[toolIndex].isClose == 0
  5558. "
  5559. >
  5560. 收缩
  5561. </div>
  5562. <div
  5563. class="corOpen"
  5564. @click="contract(toolIndex)"
  5565. v-if="isCloseList[toolIndex].isClose == 1"
  5566. >
  5567. 展开
  5568. </div>
  5569. </div>
  5570. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5571. </div>
  5572. <div
  5573. class="worksDetailBox"
  5574. v-if="
  5575. worksStudent.length &&
  5576. worksStudent[toolIndex].length > 0
  5577. "
  5578. >
  5579. <div
  5580. class="works"
  5581. style="width: 240px; height: 140px; overflow: hidden"
  5582. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5583. 0
  5584. ? worksStudent[toolIndex]
  5585. : worksStudent[toolIndex].slice(0, 6)"
  5586. :key="wIndex"
  5587. :class="w.type == 1 ? 'isTypeOne' : ''"
  5588. >
  5589. <div class="workImg" v-if="w.type == 0">
  5590. <img
  5591. :src="w.works"
  5592. @click="previewImg(w.works)"
  5593. alt
  5594. />
  5595. <img
  5596. class="deleteImg"
  5597. src="../assets/deleteworks.png"
  5598. v-if="
  5599. w.userid == userid || tType == 1 || tType == 4
  5600. "
  5601. @click.stop="deleteWorks(w.wid)"
  5602. alt
  5603. />
  5604. </div>
  5605. <div class="workImg" v-if="w.type == 1">
  5606. <img :src="word" @click="openFile(w.works)" alt />
  5607. <img
  5608. class="deleteImg"
  5609. src="../assets/deleteworks.png"
  5610. v-if="
  5611. w.userid == userid || tType == 1 || tType == 4
  5612. "
  5613. @click.stop="deleteWorks(w.wid)"
  5614. alt
  5615. />
  5616. </div>
  5617. <div class="worksName">
  5618. <div>{{ w.sName }}</div>
  5619. </div>
  5620. </div>
  5621. </div>
  5622. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5623. 未提交
  5624. </div>
  5625. <div class="noWorksS">
  5626. <div
  5627. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5628. :key="sIndex"
  5629. class="noWorksName"
  5630. >
  5631. {{ s.student }}
  5632. </div>
  5633. </div>
  5634. </div>
  5635. <div
  5636. v-if="
  5637. tType &&
  5638. ((tType == 2 && sIsOpen == true) ||
  5639. tType == 1 ||
  5640. tType == 4) &&
  5641. tool.tool.indexOf(40) != -1
  5642. "
  5643. class="worksBox"
  5644. >
  5645. <div
  5646. class="zuoyeYulan"
  5647. v-if="
  5648. worksStudent.length &&
  5649. worksStudent[toolIndex].length > 0
  5650. "
  5651. >
  5652. <div class="worksTop">
  5653. <div>作业预览</div>
  5654. <div
  5655. class="corOpen"
  5656. @click="contract(toolIndex)"
  5657. v-if="
  5658. worksStudent[toolIndex].length > 6 &&
  5659. isCloseList[toolIndex].isClose == 0
  5660. "
  5661. >
  5662. 收缩
  5663. </div>
  5664. <div
  5665. class="corOpen"
  5666. @click="contract(toolIndex)"
  5667. v-if="isCloseList[toolIndex].isClose == 1"
  5668. >
  5669. 展开
  5670. </div>
  5671. </div>
  5672. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5673. </div>
  5674. <div
  5675. class="worksDetailBox"
  5676. v-if="
  5677. worksStudent.length &&
  5678. worksStudent[toolIndex].length > 0
  5679. "
  5680. >
  5681. <div
  5682. class="works"
  5683. style="
  5684. width: 200px;
  5685. height: 140px;
  5686. margin: 10px 10px 10px 0;
  5687. border-radius: 15px;
  5688. box-shadow: 0 0 6px 1px #dfdada;
  5689. "
  5690. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5691. 0
  5692. ? worksStudent[toolIndex]
  5693. : worksStudent[toolIndex].slice(0, 6)"
  5694. :key="wIndex"
  5695. :class="w.type == 1 ? 'isTypeOne' : ''"
  5696. >
  5697. <div class="workImg">
  5698. <img
  5699. src="../assets/icon/works/noImg.png"
  5700. @click="openPj(w.works, toolIndex)"
  5701. alt
  5702. />
  5703. <img
  5704. class="deleteImg"
  5705. src="../assets/deleteworks.png"
  5706. v-if="
  5707. w.userid == userid || tType == 1 || tType == 4
  5708. "
  5709. @click.stop="deleteWorks(w.wid)"
  5710. alt
  5711. />
  5712. </div>
  5713. <div class="comment" style="min-width: 200px">
  5714. <div class="worksName">
  5715. <div>{{ w.sName }}</div>
  5716. </div>
  5717. <div class="commentList">
  5718. <div class="commentList">
  5719. <div
  5720. class="commentImg"
  5721. @click="
  5722. isLikes(w.wid, userid, 1, null, w.isLikes)
  5723. "
  5724. >
  5725. <img
  5726. :src="w.isLikes == true ? likes : noLikes"
  5727. alt=""
  5728. />
  5729. </div>
  5730. <div>{{ w.likesCount }}</div>
  5731. </div>
  5732. <div class="commentList" style="margin-right: 15px">
  5733. <div
  5734. class="commentImg"
  5735. @click="commentOther(w, toolIndex, wIndex)"
  5736. >
  5737. <img
  5738. src="../assets/icon/comment/comment.png"
  5739. alt=""
  5740. />
  5741. </div>
  5742. <div>{{ w.commentCount }}</div>
  5743. </div>
  5744. </div>
  5745. </div>
  5746. </div>
  5747. </div>
  5748. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5749. 未提交
  5750. </div>
  5751. <div class="noWorksS">
  5752. <div
  5753. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5754. :key="sIndex"
  5755. class="noWorksName"
  5756. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5757. >
  5758. {{ s.student }}
  5759. </div>
  5760. </div>
  5761. </div>
  5762. <div
  5763. v-if="
  5764. tType &&
  5765. tType == 2 &&
  5766. !sIsOpen &&
  5767. tool.tool.indexOf(40) != -1
  5768. "
  5769. class="worksBox"
  5770. >
  5771. <div
  5772. class="zuoyeYulan"
  5773. v-if="workStudent[toolIndex].length > 0"
  5774. >
  5775. <span>作业预览</span>
  5776. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5777. </div>
  5778. <div
  5779. class="worksDetailBox"
  5780. v-if="workStudent[toolIndex].length > 0"
  5781. >
  5782. <div
  5783. class="works"
  5784. style="
  5785. width: 200px;
  5786. height: 140px;
  5787. margin: 10px 10px 10px 0;
  5788. "
  5789. v-for="(w, wIndex) in workStudent[toolIndex]"
  5790. :key="wIndex"
  5791. >
  5792. <div class="workImg">
  5793. <img
  5794. src="../assets/icon/works/noImg.png"
  5795. @click="openPj(w.works, toolIndex)"
  5796. alt
  5797. />
  5798. <img
  5799. class="deleteImg"
  5800. src="../assets/deleteworks.png"
  5801. v-if="
  5802. w.userid == userid || tType == 1 || tType == 4
  5803. "
  5804. @click.stop="deleteWorks(w.wid)"
  5805. alt
  5806. />
  5807. </div>
  5808. <div class="worksName">
  5809. <div>{{ w.sName }}</div>
  5810. </div>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. <div
  5815. v-if="
  5816. tType &&
  5817. ((tType == 2 && sIsOpen == true) ||
  5818. tType == 1 ||
  5819. tType == 4) &&
  5820. tool.tool.indexOf(41) != -1
  5821. "
  5822. >
  5823. <AnswerData2
  5824. v-if="
  5825. worksStudent.length &&
  5826. worksStudent[toolIndex].length > 0
  5827. "
  5828. :problemJson="tool.selectJson.answer"
  5829. :people="worksStudent[toolIndex]"
  5830. ></AnswerData2>
  5831. </div>
  5832. <div
  5833. v-if="
  5834. tType &&
  5835. ((tType == 2 && sIsOpen == true) ||
  5836. tType == 1 ||
  5837. tType == 4) &&
  5838. tool.tool.indexOf(41) != -1
  5839. "
  5840. class="worksBox"
  5841. >
  5842. <div
  5843. class="zuoyeYulan"
  5844. v-if="
  5845. worksStudent.length &&
  5846. worksStudent[toolIndex].length > 0
  5847. "
  5848. >
  5849. <div class="worksTop">
  5850. <div>作业预览</div>
  5851. <div
  5852. class="corOpen"
  5853. @click="contract(toolIndex)"
  5854. v-if="
  5855. worksStudent[toolIndex].length > 6 &&
  5856. isCloseList[toolIndex].isClose == 0
  5857. "
  5858. >
  5859. 收缩
  5860. </div>
  5861. <div
  5862. class="corOpen"
  5863. @click="contract(toolIndex)"
  5864. v-if="isCloseList[toolIndex].isClose == 1"
  5865. >
  5866. 展开
  5867. </div>
  5868. </div>
  5869. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5870. </div>
  5871. <div
  5872. class="worksDetailBox"
  5873. v-if="
  5874. worksStudent.length &&
  5875. worksStudent[toolIndex].length > 0
  5876. "
  5877. >
  5878. <div
  5879. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5880. 0
  5881. ? worksStudent[toolIndex]
  5882. : worksStudent[toolIndex].slice(0, 6)"
  5883. :key="wIndex"
  5884. class="isWorksName"
  5885. @click="openXz(w, toolIndex)"
  5886. >
  5887. {{ w.sName }}
  5888. <img
  5889. class="deleteImg deleteImg2"
  5890. src="../assets/deleteworks.png"
  5891. v-if="w.userid == userid || tType == 1 || tType == 4"
  5892. @click.stop="deleteWorks(w.wid)"
  5893. alt
  5894. />
  5895. </div>
  5896. <!-- <div
  5897. class="works"
  5898. style="
  5899. width: 200px;
  5900. height: 140px;
  5901. margin: 10px 10px 10px 0;
  5902. border-radius: 15px;
  5903. box-shadow: 0 0 6px 1px #dfdada;
  5904. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5905. :class="w.type == 5 ? 'isTypeOne' : ''">
  5906. <div class="workImg">
  5907. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5908. </div>
  5909. <div class="worksName">
  5910. <div>{{ w.sName }}</div>
  5911. </div>
  5912. </div> -->
  5913. </div>
  5914. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5915. 未提交
  5916. </div>
  5917. <div class="noWorksS">
  5918. <div
  5919. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5920. :key="sIndex"
  5921. class="noWorksName"
  5922. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5923. >
  5924. {{ s.student }}
  5925. </div>
  5926. </div>
  5927. </div>
  5928. <div
  5929. v-if="
  5930. tType &&
  5931. tType == 2 &&
  5932. !sIsOpen &&
  5933. tool.tool.indexOf(41) != -1
  5934. "
  5935. class="worksBox"
  5936. >
  5937. <div
  5938. class="zuoyeYulan"
  5939. v-if="workStudent[toolIndex].length > 0"
  5940. >
  5941. <span>作业预览</span>
  5942. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5943. </div>
  5944. <div
  5945. class="worksDetailBox"
  5946. v-if="workStudent[toolIndex].length > 0"
  5947. >
  5948. <div
  5949. class="works"
  5950. style="
  5951. width: 200px;
  5952. height: 140px;
  5953. margin: 10px 10px 10px 0;
  5954. "
  5955. v-for="(w, wIndex) in workStudent[toolIndex]"
  5956. :key="wIndex"
  5957. >
  5958. <div class="workImg">
  5959. <img
  5960. src="../assets/icon/works/noImg.png"
  5961. @click="openXz(w, toolIndex)"
  5962. alt
  5963. />
  5964. <img
  5965. class="deleteImg"
  5966. src="../assets/deleteworks.png"
  5967. v-if="
  5968. w.userid == userid || tType == 1 || tType == 4
  5969. "
  5970. @click.stop="deleteWorks(w.wid)"
  5971. alt
  5972. />
  5973. </div>
  5974. <div class="worksName">
  5975. <div>{{ w.sName }}</div>
  5976. </div>
  5977. </div>
  5978. </div>
  5979. </div>
  5980. <div v-if="false" class="xuan_right_box">
  5981. <div
  5982. class="tool_right_box"
  5983. v-for="(item, index) in tool.sentenceList"
  5984. :key="index"
  5985. >
  5986. <div>
  5987. <span style="word-break: break-all;white-space: normal;">{{ index + 1 + "、" + item.sentenceTitle }}</span>
  5988. </div>
  5989. <div class="right_box_xuan">
  5990. <span>正确率</span>
  5991. <span>{{
  5992. (checkJson[toolIndex][index].right
  5993. ? checkJson[toolIndex][index].right
  5994. : 0) + "%"
  5995. }}</span>
  5996. </div>
  5997. <div class="right_box_xuan">
  5998. <span>答对人数</span>
  5999. <span>{{
  6000. checkJson[toolIndex][index].rightPerson.length
  6001. }}</span>
  6002. </div>
  6003. </div>
  6004. </div>
  6005. <div
  6006. v-if="
  6007. tType &&
  6008. ((tType == 2 && sIsOpen == true) ||
  6009. tType == 1 ||
  6010. tType == 4) &&
  6011. tool.tool.indexOf(47) != -1
  6012. "
  6013. >
  6014. <AnswerData
  6015. v-if="
  6016. checkJson[toolIndex].length &&
  6017. (tool.sentenceList || tool.sentenceList.length > 0)
  6018. "
  6019. :people="checkJson[toolIndex]"
  6020. ></AnswerData>
  6021. </div>
  6022. <div
  6023. v-if="
  6024. tType &&
  6025. tType == 2 &&
  6026. !sIsOpen &&
  6027. tool.tool.indexOf(47) != -1
  6028. "
  6029. class="worksBox"
  6030. >
  6031. <div
  6032. class="zuoyeYulan"
  6033. v-if="workStudent[toolIndex].length > 0"
  6034. >
  6035. <span>作业预览</span>
  6036. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6037. </div>
  6038. <div
  6039. class="worksDetailBox"
  6040. v-if="workStudent[toolIndex].length > 0"
  6041. >
  6042. <div
  6043. class="works"
  6044. style="
  6045. width: 200px;
  6046. height: 140px;
  6047. margin: 10px 10px 10px 0;
  6048. "
  6049. v-for="(w, wIndex) in workStudent[toolIndex]"
  6050. :key="wIndex"
  6051. >
  6052. <!-- @click="openXz(w, toolIndex)" -->
  6053. <div class="workImg" @click="openSen(w, toolIndex)">
  6054. <img src="../assets/icon/works/noImg.png" alt />
  6055. <img
  6056. class="deleteImg"
  6057. src="../assets/deleteworks.png"
  6058. v-if="
  6059. w.userid == userid || tType == 1 || tType == 4
  6060. "
  6061. @click.stop="deleteWorks(w.wid)"
  6062. alt
  6063. />
  6064. </div>
  6065. <div class="worksName">
  6066. <div>
  6067. {{ w.sName }}
  6068. </div>
  6069. </div>
  6070. </div>
  6071. </div>
  6072. </div>
  6073. <div
  6074. v-if="
  6075. tType &&
  6076. ((tType == 2 && sIsOpen == true) ||
  6077. tType == 1 ||
  6078. tType == 4) &&
  6079. tool.tool.indexOf(47) != -1
  6080. "
  6081. class="worksBox"
  6082. >
  6083. <div
  6084. class="zuoyeYulan"
  6085. v-if="
  6086. worksStudent.length &&
  6087. worksStudent[toolIndex].length > 0
  6088. "
  6089. >
  6090. <div class="worksTop">
  6091. <div>作业预览</div>
  6092. <div
  6093. class="corOpen"
  6094. @click="contract(toolIndex)"
  6095. v-if="
  6096. worksStudent[toolIndex].length > 6 &&
  6097. isCloseList[toolIndex].isClose == 0
  6098. "
  6099. >
  6100. 收缩
  6101. </div>
  6102. <div
  6103. class="corOpen"
  6104. @click="contract(toolIndex)"
  6105. v-if="isCloseList[toolIndex].isClose == 1"
  6106. >
  6107. 展开
  6108. </div>
  6109. </div>
  6110. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6111. </div>
  6112. <div
  6113. class="worksDetailBox"
  6114. v-if="
  6115. worksStudent.length &&
  6116. worksStudent[toolIndex].length > 0
  6117. "
  6118. >
  6119. <!-- @click="openXz(w, toolIndex)" -->
  6120. <div
  6121. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6122. 0
  6123. ? worksStudent[toolIndex]
  6124. : worksStudent[toolIndex].slice(0, 6)"
  6125. :key="wIndex"
  6126. class="isWorksName"
  6127. @click="openSen(w, toolIndex)"
  6128. >
  6129. {{ w.sName }}
  6130. <img
  6131. class="deleteImg deleteImg2"
  6132. src="../assets/deleteworks.png"
  6133. v-if="w.userid == userid || tType == 1 || tType == 4"
  6134. @click.stop="deleteWorks(w.wid)"
  6135. alt
  6136. />
  6137. </div>
  6138. </div>
  6139. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6140. 未提交
  6141. </div>
  6142. <div class="noWorksS">
  6143. <div
  6144. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6145. :key="sIndex"
  6146. class="noWorksName"
  6147. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6148. >
  6149. {{ s.student }}
  6150. </div>
  6151. </div>
  6152. </div>
  6153. <div
  6154. v-if="
  6155. tType &&
  6156. ((tType == 2 && sIsOpen == true) ||
  6157. tType == 1 ||
  6158. tType == 4) &&
  6159. tool.tool.indexOf(48) != -1
  6160. "
  6161. class="worksBox"
  6162. >
  6163. <div
  6164. class="zuoyeYulan"
  6165. v-if="
  6166. worksStudent.length &&
  6167. worksStudent[toolIndex].length > 0
  6168. "
  6169. >
  6170. <div class="worksTop">
  6171. <div>作业预览</div>
  6172. <div
  6173. class="corOpen"
  6174. @click="contract(toolIndex)"
  6175. v-if="
  6176. worksStudent[toolIndex].length > 6 &&
  6177. isCloseList[toolIndex].isClose == 0
  6178. "
  6179. >
  6180. 收缩
  6181. </div>
  6182. <div
  6183. class="corOpen"
  6184. @click="contract(toolIndex)"
  6185. v-if="isCloseList[toolIndex].isClose == 1"
  6186. >
  6187. 展开
  6188. </div>
  6189. </div>
  6190. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6191. </div>
  6192. <div
  6193. class="worksDetailBox"
  6194. v-if="
  6195. worksStudent.length &&
  6196. worksStudent[toolIndex].length > 0
  6197. "
  6198. >
  6199. <div
  6200. class="works"
  6201. style="
  6202. width: 200px;
  6203. height: 140px;
  6204. margin: 10px 10px 10px 0;
  6205. border-radius: 15px;
  6206. box-shadow: 0 0 6px 1px #dfdada;
  6207. "
  6208. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6209. 0
  6210. ? worksStudent[toolIndex]
  6211. : worksStudent[toolIndex].slice(0, 6)"
  6212. :key="wIndex"
  6213. :class="w.type == 1 ? 'isTypeOne' : ''"
  6214. >
  6215. <div class="workImg">
  6216. <img :src="word" @click="openTable(w)" alt />
  6217. <!-- @click="openFile(w.works)" -->
  6218. <div
  6219. class="answerScore"
  6220. v-if="w.score"
  6221. @click.stop="openScore(w)"
  6222. :class="{
  6223. rightW:
  6224. w.userid == userid ||
  6225. tType == 1 ||
  6226. tType == 4 ||
  6227. w.ateacher == userid,
  6228. }"
  6229. >
  6230. {{ JSON.parse(w.score).wScore }}分
  6231. </div>
  6232. <div
  6233. class="answerScore"
  6234. @click.stop="openScore(w)"
  6235. v-else-if="courseDetail.userid == userid"
  6236. :class="{
  6237. rightW:
  6238. w.userid == userid ||
  6239. tType == 1 ||
  6240. tType == 4 ||
  6241. w.ateacher == userid,
  6242. }"
  6243. >
  6244. 评分
  6245. </div>
  6246. <img
  6247. class="deleteImg"
  6248. src="../assets/deleteworks.png"
  6249. v-if="
  6250. w.userid == userid || tType == 1 || tType == 4
  6251. "
  6252. @click.stop="deleteWorks(w.wid)"
  6253. alt
  6254. />
  6255. </div>
  6256. <div class="comment" style="min-width: 200px">
  6257. <div class="worksName">
  6258. <div>{{ w.sName }}</div>
  6259. </div>
  6260. <div class="commentList">
  6261. <div class="commentList">
  6262. <div
  6263. class="commentImg"
  6264. @click="
  6265. isLikes(w.wid, userid, 1, null, w.isLikes)
  6266. "
  6267. >
  6268. <img
  6269. :src="w.isLikes == true ? likes : noLikes"
  6270. alt=""
  6271. />
  6272. </div>
  6273. <div>{{ w.likesCount }}</div>
  6274. </div>
  6275. <div class="commentList" style="margin-right: 15px">
  6276. <div
  6277. class="commentImg"
  6278. @click="commentOther(w, toolIndex, wIndex)"
  6279. >
  6280. <img
  6281. src="../assets/icon/comment/comment.png"
  6282. alt=""
  6283. />
  6284. </div>
  6285. <div>{{ w.commentCount }}</div>
  6286. </div>
  6287. </div>
  6288. </div>
  6289. </div>
  6290. </div>
  6291. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6292. 未提交
  6293. </div>
  6294. <div class="noWorksS">
  6295. <div
  6296. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6297. :key="sIndex"
  6298. class="noWorksName"
  6299. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6300. >
  6301. {{ s.student }}
  6302. </div>
  6303. </div>
  6304. </div>
  6305. <div
  6306. v-if="
  6307. tType &&
  6308. tType == 2 &&
  6309. !sIsOpen &&
  6310. tool.tool.indexOf(48) != -1
  6311. "
  6312. class="worksBox"
  6313. >
  6314. <div
  6315. class="zuoyeYulan"
  6316. v-if="workStudent[toolIndex].length > 0"
  6317. >
  6318. <span>作业预览</span>
  6319. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6320. </div>
  6321. <div
  6322. class="worksDetailBox"
  6323. v-if="workStudent[toolIndex].length > 0"
  6324. >
  6325. <div
  6326. class="works"
  6327. style="
  6328. width: 200px;
  6329. height: 140px;
  6330. margin: 10px 10px 10px 0;
  6331. box-shadow: 0 0 6px 1px #dfdada;
  6332. "
  6333. v-for="(w, wIndex) in workStudent[toolIndex]"
  6334. :key="wIndex"
  6335. >
  6336. <div class="workImg">
  6337. <img :src="word" @click="openTable(w)" alt />
  6338. <div
  6339. class="answerScore"
  6340. v-if="w.score"
  6341. @click.stop="openScore(w)"
  6342. :class="{
  6343. rightW:
  6344. w.userid == userid || tType == 1 || tType == 4,
  6345. }"
  6346. >
  6347. {{ JSON.parse(w.score).wScore }}分
  6348. </div>
  6349. <div
  6350. class="answerScore"
  6351. @click.stop="openScore(w)"
  6352. v-else-if="courseDetail.userid == userid"
  6353. :class="{
  6354. rightW:
  6355. w.userid == userid || tType == 1 || tType == 4,
  6356. }"
  6357. >
  6358. 评分
  6359. </div>
  6360. <img
  6361. class="deleteImg"
  6362. src="../assets/deleteworks.png"
  6363. v-if="
  6364. w.userid == userid || tType == 1 || tType == 4
  6365. "
  6366. @click.stop="deleteWorks(w.wid)"
  6367. alt
  6368. />
  6369. </div>
  6370. <div class="worksName">
  6371. <div>{{ w.sName }}</div>
  6372. </div>
  6373. </div>
  6374. </div>
  6375. </div>
  6376. <div
  6377. v-if="
  6378. tType &&
  6379. ((tType == 2 && sIsOpen == true) ||
  6380. tType == 1 ||
  6381. tType == 4) &&
  6382. tool.tool.indexOf(52) != -1
  6383. "
  6384. class="worksBox"
  6385. >
  6386. <div
  6387. class="zuoyeYulan"
  6388. v-if="
  6389. worksStudent.length &&
  6390. worksStudent[toolIndex].length > 0
  6391. "
  6392. >
  6393. <div class="worksTop">
  6394. <div>作业预览</div>
  6395. <div
  6396. class="corOpen"
  6397. @click="contract(toolIndex)"
  6398. v-if="
  6399. worksStudent[toolIndex].length > 6 &&
  6400. isCloseList[toolIndex].isClose == 0
  6401. "
  6402. >
  6403. 收缩
  6404. </div>
  6405. <div
  6406. class="corOpen"
  6407. @click="contract(toolIndex)"
  6408. v-if="isCloseList[toolIndex].isClose == 1"
  6409. >
  6410. 展开
  6411. </div>
  6412. </div>
  6413. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6414. </div>
  6415. <div
  6416. class="worksDetailBox"
  6417. v-if="
  6418. worksStudent.length &&
  6419. worksStudent[toolIndex].length > 0
  6420. "
  6421. >
  6422. <div
  6423. class="works"
  6424. style="
  6425. width: 200px;
  6426. height: 140px;
  6427. margin: 10px 10px 10px 0;
  6428. border-radius: 15px;
  6429. box-shadow: 0 0 6px 1px #dfdada;
  6430. "
  6431. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6432. 0
  6433. ? worksStudent[toolIndex]
  6434. : worksStudent[toolIndex].slice(0, 6)"
  6435. :key="wIndex"
  6436. :class="w.type == 1 ? 'isTypeOne' : ''"
  6437. >
  6438. <div class="workImg">
  6439. <img :src="word" @click="openWord(w)" alt />
  6440. <!-- @click="openFile(w.works)" -->
  6441. <div
  6442. class="answerScore"
  6443. v-if="w.score"
  6444. @click.stop="openScore(w)"
  6445. :class="{
  6446. rightW:
  6447. w.userid == userid ||
  6448. tType == 1 ||
  6449. tType == 4 ||
  6450. w.ateacher == userid,
  6451. }"
  6452. >
  6453. {{ JSON.parse(w.score).wScore }}分
  6454. </div>
  6455. <div
  6456. class="answerScore"
  6457. @click.stop="openScore(w)"
  6458. v-else-if="courseDetail.userid == userid"
  6459. :class="{
  6460. rightW:
  6461. w.userid == userid ||
  6462. tType == 1 ||
  6463. tType == 4 ||
  6464. w.ateacher == userid,
  6465. }"
  6466. >
  6467. 评分
  6468. </div>
  6469. <img
  6470. class="deleteImg"
  6471. src="../assets/deleteworks.png"
  6472. v-if="
  6473. w.userid == userid || tType == 1 || tType == 4
  6474. "
  6475. @click.stop="deleteWorks(w.wid)"
  6476. alt
  6477. />
  6478. </div>
  6479. <div class="comment" style="min-width: 200px">
  6480. <div class="worksName">
  6481. <div>{{ w.sName }}</div>
  6482. </div>
  6483. <div class="commentList">
  6484. <div class="commentList">
  6485. <div
  6486. class="commentImg"
  6487. @click="
  6488. isLikes(w.wid, userid, 1, null, w.isLikes)
  6489. "
  6490. >
  6491. <img
  6492. :src="w.isLikes == true ? likes : noLikes"
  6493. alt=""
  6494. />
  6495. </div>
  6496. <div>{{ w.likesCount }}</div>
  6497. </div>
  6498. <div class="commentList" style="margin-right: 15px">
  6499. <div
  6500. class="commentImg"
  6501. @click="commentOther(w, toolIndex, wIndex)"
  6502. >
  6503. <img
  6504. src="../assets/icon/comment/comment.png"
  6505. alt=""
  6506. />
  6507. </div>
  6508. <div>{{ w.commentCount }}</div>
  6509. </div>
  6510. </div>
  6511. </div>
  6512. </div>
  6513. </div>
  6514. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6515. 未提交
  6516. </div>
  6517. <div class="noWorksS">
  6518. <div
  6519. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6520. :key="sIndex"
  6521. class="noWorksName"
  6522. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6523. >
  6524. {{ s.student }}
  6525. </div>
  6526. </div>
  6527. </div>
  6528. <div
  6529. v-if="
  6530. tType &&
  6531. tType == 2 &&
  6532. !sIsOpen &&
  6533. tool.tool.indexOf(52) != -1
  6534. "
  6535. class="worksBox"
  6536. >
  6537. <div
  6538. class="zuoyeYulan"
  6539. v-if="workStudent[toolIndex].length > 0"
  6540. >
  6541. <span>作业预览</span>
  6542. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6543. </div>
  6544. <div
  6545. class="worksDetailBox"
  6546. v-if="workStudent[toolIndex].length > 0"
  6547. >
  6548. <div
  6549. class="works"
  6550. style="
  6551. width: 200px;
  6552. height: 140px;
  6553. margin: 10px 10px 10px 0;
  6554. box-shadow: 0 0 6px 1px #dfdada;
  6555. "
  6556. v-for="(w, wIndex) in workStudent[toolIndex]"
  6557. :key="wIndex"
  6558. >
  6559. <div class="workImg">
  6560. <img :src="word" @click="openWord(w)" alt />
  6561. <div
  6562. class="answerScore"
  6563. v-if="w.score"
  6564. @click.stop="openScore(w)"
  6565. :class="{
  6566. rightW:
  6567. w.userid == userid || tType == 1 || tType == 4,
  6568. }"
  6569. >
  6570. {{ JSON.parse(w.score).wScore }}分
  6571. </div>
  6572. <div
  6573. class="answerScore"
  6574. @click.stop="openScore(w)"
  6575. v-else-if="courseDetail.userid == userid"
  6576. :class="{
  6577. rightW:
  6578. w.userid == userid || tType == 1 || tType == 4,
  6579. }"
  6580. >
  6581. 评分
  6582. </div>
  6583. <img
  6584. class="deleteImg"
  6585. src="../assets/deleteworks.png"
  6586. v-if="
  6587. w.userid == userid || tType == 1 || tType == 4
  6588. "
  6589. @click.stop="deleteWorks(w.wid)"
  6590. alt
  6591. />
  6592. </div>
  6593. <div class="worksName">
  6594. <div>{{ w.sName }}</div>
  6595. </div>
  6596. </div>
  6597. </div>
  6598. </div>
  6599. <div
  6600. v-if="tool.tool.indexOf(49) != -1"
  6601. class="xuan_right_box"
  6602. >
  6603. <div
  6604. v-if="courseDetail.userid == userid"
  6605. style="display: flex; justify-content: flex-end"
  6606. >
  6607. <el-button
  6608. type="primary"
  6609. size="small"
  6610. @click="addTools(49, toolIndex, taskCount)"
  6611. >分组设置</el-button
  6612. >
  6613. </div>
  6614. <div
  6615. v-if="groupStudentUid[toolIndex]"
  6616. class="group_staic_box"
  6617. >
  6618. <div
  6619. v-for="(gp, gd) in tool.groupJson.group"
  6620. :key="gd"
  6621. class="group_staic"
  6622. >
  6623. <span> {{ gp.name }}</span>
  6624. <span>
  6625. 目前人数{{
  6626. groupStudentUid[toolIndex][gd].length
  6627. }}人</span
  6628. >
  6629. </div>
  6630. </div>
  6631. </div>
  6632. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6633. <div
  6634. class="zuoyeYulan"
  6635. v-if="
  6636. worksStudent.length &&
  6637. worksStudent[toolIndex].length > 0
  6638. "
  6639. >
  6640. <span>作业预览</span>
  6641. </div>
  6642. <div>
  6643. <div
  6644. class="group_workBox"
  6645. v-for="(g, gindex) in tool.groupJson.group"
  6646. :key="gindex"
  6647. >
  6648. <div
  6649. class="group_box"
  6650. v-if="
  6651. groupStudentUid[toolIndex] &&
  6652. worksStudent[toolIndex] &&
  6653. (worksStudent[toolIndex][gindex].length ||
  6654. groupStudentUid[toolIndex][gindex].indexOf(
  6655. userid
  6656. ) != -1)
  6657. "
  6658. >
  6659. <div class="group_title">
  6660. <el-tooltip
  6661. class="item"
  6662. effect="light"
  6663. :content="g.name"
  6664. placement="top"
  6665. >
  6666. <div class="group_name">{{ g.name }}</div>
  6667. </el-tooltip>
  6668. <el-button
  6669. type="primary"
  6670. v-if="
  6671. groupStudentUid[toolIndex][gindex].indexOf(
  6672. userid
  6673. ) != -1
  6674. "
  6675. @click="groupUpload(toolIndex, taskCount, gindex)"
  6676. >上传作业</el-button
  6677. >
  6678. </div>
  6679. <div class="group_work">
  6680. <div
  6681. class="works"
  6682. style="
  6683. width: 200px;
  6684. height: 140px;
  6685. margin: 10px 10px 10px 0;
  6686. border-radius: 15px;
  6687. box-shadow: 0 0 6px 1px #dfdada;
  6688. "
  6689. v-for="(w, wIndex) in worksStudent[toolIndex][
  6690. gindex
  6691. ]"
  6692. :key="wIndex"
  6693. :class="w.type == 1 ? 'isTypeOne' : ''"
  6694. >
  6695. <div class="workImg" v-if="w.type == 0">
  6696. <img
  6697. :src="w.works"
  6698. @click="previewImg(w.works)"
  6699. alt
  6700. />
  6701. <div
  6702. class="answerScore"
  6703. v-if="w.score"
  6704. @click.stop="openScore(w)"
  6705. :class="{
  6706. rightW:
  6707. w.userid == userid ||
  6708. tType == 1 ||
  6709. tType == 4 ||
  6710. w.ateacher == userid,
  6711. }"
  6712. >
  6713. {{ JSON.parse(w.score).wScore }}分
  6714. </div>
  6715. <div
  6716. class="answerScore"
  6717. @click.stop="openScore(w)"
  6718. v-else-if="courseDetail.userid == userid"
  6719. :class="{
  6720. rightW:
  6721. w.userid == userid ||
  6722. tType == 1 ||
  6723. tType == 4 ||
  6724. w.ateacher == userid,
  6725. }"
  6726. >
  6727. 评分
  6728. </div>
  6729. <img
  6730. class="deleteImg"
  6731. src="../assets/deleteworks.png"
  6732. v-if="
  6733. w.userid == userid ||
  6734. tType == 1 ||
  6735. tType == 4
  6736. "
  6737. @click.stop="deleteWorks(w.wid)"
  6738. alt
  6739. />
  6740. </div>
  6741. <div class="workImg" v-if="w.type == 1">
  6742. <img
  6743. :src="word"
  6744. @click="openFile(w.works)"
  6745. alt
  6746. />
  6747. <!-- @click="openFile(w.works)" -->
  6748. <div
  6749. class="answerScore"
  6750. v-if="w.score"
  6751. @click.stop="openScore(w)"
  6752. :class="{
  6753. rightW:
  6754. w.userid == userid ||
  6755. tType == 1 ||
  6756. tType == 4 ||
  6757. w.ateacher == userid,
  6758. }"
  6759. >
  6760. {{ JSON.parse(w.score).wScore }}分
  6761. </div>
  6762. <div
  6763. class="answerScore"
  6764. @click.stop="openScore(w)"
  6765. v-else-if="courseDetail.userid == userid"
  6766. :class="{
  6767. rightW:
  6768. w.userid == userid ||
  6769. tType == 1 ||
  6770. tType == 4 ||
  6771. w.ateacher == userid,
  6772. }"
  6773. >
  6774. 评分
  6775. </div>
  6776. <img
  6777. class="deleteImg"
  6778. src="../assets/deleteworks.png"
  6779. v-if="
  6780. w.userid == userid ||
  6781. tType == 1 ||
  6782. tType == 4
  6783. "
  6784. @click.stop="deleteWorks(w.wid)"
  6785. alt
  6786. />
  6787. </div>
  6788. <div class="workImg" v-if="w.type == 3">
  6789. <img
  6790. style="cursor: pointer"
  6791. :src="video"
  6792. @click="openVideo(w)"
  6793. alt
  6794. />
  6795. <!-- @click="openVideo(w.works)" -->
  6796. <div
  6797. class="answerScore"
  6798. v-if="w.score"
  6799. @click.stop="openScore(w)"
  6800. :class="{
  6801. rightW:
  6802. w.userid == userid ||
  6803. tType == 1 ||
  6804. tType == 4 ||
  6805. w.ateacher == userid,
  6806. }"
  6807. >
  6808. {{ JSON.parse(w.score).wScore }}分
  6809. </div>
  6810. <div
  6811. class="answerScore"
  6812. @click.stop="openScore(w)"
  6813. v-else-if="courseDetail.userid == userid"
  6814. :class="{
  6815. rightW:
  6816. w.userid == userid ||
  6817. tType == 1 ||
  6818. tType == 4 ||
  6819. w.ateacher == userid,
  6820. }"
  6821. >
  6822. 评分
  6823. </div>
  6824. <img
  6825. class="deleteImg"
  6826. src="../assets/deleteworks.png"
  6827. v-if="
  6828. w.userid == userid ||
  6829. tType == 1 ||
  6830. tType == 4
  6831. "
  6832. @click.stop="deleteWorks(w.wid)"
  6833. alt
  6834. />
  6835. </div>
  6836. <div class="workImg" v-if="w.type == 12">
  6837. <img
  6838. style="cursor: pointer"
  6839. :src="word2"
  6840. @click="downloadFile(w.works)"
  6841. alt
  6842. />
  6843. <!-- @click="openVideo(w.works)" -->
  6844. <div
  6845. class="answerScore"
  6846. v-if="w.score"
  6847. @click.stop="openScore(w)"
  6848. :class="{
  6849. rightW:
  6850. w.userid == userid ||
  6851. tType == 1 ||
  6852. tType == 4 ||
  6853. w.ateacher == userid,
  6854. }"
  6855. >
  6856. {{ JSON.parse(w.score).wScore }}分
  6857. </div>
  6858. <div
  6859. class="answerScore"
  6860. @click.stop="openScore(w)"
  6861. v-else-if="courseDetail.userid == userid"
  6862. :class="{
  6863. rightW:
  6864. w.userid == userid ||
  6865. tType == 1 ||
  6866. tType == 4 ||
  6867. w.ateacher == userid,
  6868. }"
  6869. >
  6870. 评分
  6871. </div>
  6872. <img
  6873. class="deleteImg"
  6874. src="../assets/deleteworks.png"
  6875. v-if="
  6876. w.userid == userid ||
  6877. tType == 1 ||
  6878. tType == 4
  6879. "
  6880. @click.stop="deleteWorks(w.wid)"
  6881. alt
  6882. />
  6883. </div>
  6884. <div class="comment" style="min-width: 200px">
  6885. <div class="worksName">
  6886. <div>{{ w.sName }}</div>
  6887. </div>
  6888. <div class="commentList">
  6889. <div class="commentList">
  6890. <div
  6891. class="commentImg"
  6892. @click="
  6893. isLikes(
  6894. w.wid,
  6895. userid,
  6896. 1,
  6897. null,
  6898. w.isLikes
  6899. )
  6900. "
  6901. >
  6902. <img
  6903. :src="
  6904. w.isLikes == true ? likes : noLikes
  6905. "
  6906. alt=""
  6907. />
  6908. </div>
  6909. <div>{{ w.likesCount }}</div>
  6910. </div>
  6911. <div
  6912. class="commentList"
  6913. style="margin-right: 15px"
  6914. >
  6915. <div
  6916. class="commentImg"
  6917. @click="
  6918. commentOther(
  6919. w,
  6920. toolIndex,
  6921. wIndex,
  6922. gindex
  6923. )
  6924. "
  6925. >
  6926. <img
  6927. src="../assets/icon/comment/comment.png"
  6928. alt=""
  6929. />
  6930. </div>
  6931. <div>{{ w.commentCount }}</div>
  6932. </div>
  6933. </div>
  6934. </div>
  6935. </div>
  6936. </div>
  6937. </div>
  6938. </div>
  6939. </div>
  6940. </div>
  6941. </div>
  6942. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6943. 上传文件
  6944. <input
  6945. type="file"
  6946. accept="image/png, image/gif, image/jpeg"
  6947. style="display: none"
  6948. @change="beforeUpload1($event, 2, index)"
  6949. />
  6950. </div>-->
  6951. </div>
  6952. </div>
  6953. <div
  6954. class="vedioBox"
  6955. v-if="
  6956. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6957. .eList &&
  6958. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6959. .eList.length &&
  6960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6961. .eList.length > 0 &&
  6962. tType != 2
  6963. "
  6964. >
  6965. <div
  6966. class="queTop"
  6967. style="
  6968. font-size: 20px;
  6969. padding: 15px 0 15px 37px;
  6970. font-weight: bold;
  6971. "
  6972. >
  6973. <!-- <div class="question" style="width: 30px">
  6974. <img src="../assets/icon/toolIcon.png" alt />
  6975. </div>
  6976. <div class="queTitle">
  6977. <div>工具</div>
  6978. </div>-->
  6979. 评一评
  6980. </div>
  6981. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  6982. <div class="elist_input">
  6983. <el-table
  6984. :data="
  6985. chapInfoList[courseType].chapterInfo[0].taskJson[
  6986. taskCount
  6987. ].eList
  6988. "
  6989. :header-cell-style="{ background: '#F0F4FA' }"
  6990. :row-class-name="tableRowClassName"
  6991. border
  6992. stripe
  6993. style="width: 100%"
  6994. >
  6995. <el-table-column label="评价名称" width="180">
  6996. <template slot-scope="scope"
  6997. ><div>{{ scope.row.value }}</div></template
  6998. >
  6999. </el-table-column>
  7000. <el-table-column label="评价描述" width="180">
  7001. <template slot-scope="scope"
  7002. ><div>{{ scope.row.detail }}</div></template
  7003. >
  7004. </el-table-column>
  7005. <el-table-column label="目标">
  7006. <template slot-scope="scope"
  7007. ><div>{{ scope.row.target[0] }}</div></template
  7008. ></el-table-column
  7009. >
  7010. </el-table>
  7011. <!-- <div
  7012. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7013. .chapterInfo[0].taskJson[taskCount].eList"
  7014. :key="eIndex"
  7015. class="elist_input_box"
  7016. >
  7017. <div style="width: 95%">
  7018. <div
  7019. style="
  7020. display: flex;
  7021. flex-direction: row;
  7022. flex-wrap: nowrap;
  7023. align-items: center;
  7024. "
  7025. >
  7026. <div style="max-width: calc(100% - 285px)">
  7027. <span>{{ eItem.value }}</span>
  7028. </div>
  7029. <div
  7030. style="
  7031. padding-left: 25px;
  7032. display: flex;
  7033. flex-direction: row;
  7034. align-items: center;
  7035. "
  7036. >
  7037. <el-rate
  7038. v-model="eItem.score"
  7039. :colors="colors"
  7040. disabled
  7041. ></el-rate>
  7042. </div>
  7043. </div>
  7044. <div class="elist_inptu_text" style="padding-left: 10px">
  7045. <span v-if="eItem.detail != ''">{{
  7046. eItem.detail
  7047. }}</span>
  7048. <span v-else style="color: #b2b1b3; font-size: 14px"
  7049. >暂无描述...</span
  7050. >
  7051. </div>
  7052. </div>
  7053. </div> -->
  7054. </div>
  7055. <div
  7056. v-if="evalua"
  7057. style="
  7058. border: 1px solid #e5e5e5;
  7059. max-width: 650px;
  7060. width: 100%;
  7061. margin-top: 20px;
  7062. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7063. "
  7064. >
  7065. <div class="e_add_top">
  7066. <div class="e_add_title">
  7067. <span>目标管理名称</span>
  7068. <span>{{ eTitle }}</span>
  7069. <img
  7070. src="../assets/line.png"
  7071. class="cru_line"
  7072. style="
  7073. width: 125px;
  7074. height: 20px;
  7075. bottom: -10px;
  7076. left: 120px;
  7077. "
  7078. />
  7079. <!-- <el-input
  7080. v-model="eTitle"
  7081. placeholder="请输入名称"
  7082. @change="setMindData"
  7083. ></el-input>-->
  7084. </div>
  7085. </div>
  7086. <div class="e_add_content">
  7087. <div class="e_add_list_pbox">
  7088. <div class="e_add_list_pbox_title">
  7089. <span class="type_title">切换模式</span>
  7090. <div class="type_content">
  7091. <span
  7092. :class="{ active: typeMode == 1 }"
  7093. @click="typeMode = 1"
  7094. >目标树</span
  7095. >
  7096. <span
  7097. :class="{ active: typeMode == 2 }"
  7098. @click="typeMode = 2"
  7099. >目标罗盘</span
  7100. >
  7101. <span
  7102. :class="{ active: typeMode == 3 }"
  7103. @click="typeMode = 3"
  7104. >目标看板</span
  7105. >
  7106. </div>
  7107. </div>
  7108. <div class="e_add_list_pbox_content">
  7109. <Mind
  7110. :showBar="false"
  7111. :mindData="data"
  7112. style="width: 100%"
  7113. v-show="typeMode == 1"
  7114. ></Mind>
  7115. <Sunburst
  7116. :Josn="eJson"
  7117. :num="eJSONNum"
  7118. style="width: 100%"
  7119. v-if="typeMode == 2"
  7120. ></Sunburst>
  7121. <SeeBoard
  7122. :Josn="eJson"
  7123. :num="eJSONNum"
  7124. :ename="eTitle"
  7125. style="width: 100%"
  7126. v-if="typeMode == 3"
  7127. >
  7128. </SeeBoard>
  7129. </div>
  7130. </div>
  7131. </div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. <!-- <div
  7136. class="project_box"
  7137. style="margin-top: 15px; padding-bottom: 30px"
  7138. >
  7139. <div
  7140. style="
  7141. display: flex;
  7142. flex-wrap: nowrap;
  7143. flex-direction: column;
  7144. position: relative;
  7145. "
  7146. >
  7147. <div class="queTop">
  7148. <div class="question">
  7149. <img src="../assets/icon/homeWork.png" alt="" />
  7150. </div>
  7151. <div class="queTitle">
  7152. <div>作业提交<span>(提交图文视频等)</span></div>
  7153. <div>:任务:{{ task.task }}</div>
  7154. </div>
  7155. </div>
  7156. <div class="ediBottom">
  7157. <div
  7158. class="addEditor"
  7159. style="margin-top: 23px"
  7160. @click="openAddWork"
  7161. v-if="!isNoHomeWork"
  7162. >
  7163. 选择文件
  7164. </div>
  7165. <div
  7166. class="addEditor"
  7167. style="margin-top: 23px"
  7168. @click="openAddWork"
  7169. v-else
  7170. >
  7171. 已提交
  7172. </div>
  7173. </div>
  7174. </div>
  7175. </div>-->
  7176. </div>
  7177. </div>
  7178. <el-dialog
  7179. title="作业提交"
  7180. :visible.sync="dialogVisible"
  7181. :append-to-body="true"
  7182. width="500px"
  7183. :before-close="handleClose"
  7184. class="dialog_change"
  7185. >
  7186. <div class="marginT">
  7187. <div>上传文件</div>
  7188. <div
  7189. class="chapter_add"
  7190. @click="addImg($event)"
  7191. v-if="studyJuri[0].cover.length == 0"
  7192. >
  7193. <div class="up_photo">
  7194. <img src="../assets/icon/uploadImg.png" alt />
  7195. </div>
  7196. <!-- <input
  7197. type="file"
  7198. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7199. style="display: none"
  7200. @change="beforeUpload1($event, 1)"
  7201. /> -->
  7202. <input
  7203. type="file"
  7204. accept="*"
  7205. style="display: none"
  7206. @change="beforeUpload1($event, 1)"
  7207. />
  7208. <!-- <input
  7209. type="file"
  7210. accept="image/*"
  7211. capture="camera"
  7212. style="display: none"
  7213. @change="beforeUpload1($event, 1)"
  7214. /> -->
  7215. </div>
  7216. <div
  7217. class="chapter_add"
  7218. style="
  7219. display: flex;
  7220. width: 100%;
  7221. flex-direction: row;
  7222. flex-wrap: wrap;
  7223. justify-content: flex-start;
  7224. padding: 15px 0;
  7225. "
  7226. v-if="studyJuri[0].cover.length > 0"
  7227. >
  7228. <div class="upCover">
  7229. <img
  7230. :src="studyJuri[0].cover[0].url"
  7231. alt
  7232. v-if="fileType == 0"
  7233. />
  7234. <img :src="word" alt v-else-if="fileType == 1" />
  7235. <img :src="video" alt v-else-if="fileType == 2" />
  7236. <img :src="word2" alt v-else-if="fileType == 3" />
  7237. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7238. <div class="deleteWord" @click="clean(1)">
  7239. <img src="../assets/icon/deleteWorks.png" alt />
  7240. </div>
  7241. </div>
  7242. </div>
  7243. </div>
  7244. <div
  7245. class="upload_send"
  7246. @click="addCourseWorks(taskCount)"
  7247. v-if="!proVisible"
  7248. >
  7249. 提交
  7250. </div>
  7251. </el-dialog>
  7252. </div>
  7253. </div>
  7254. <div
  7255. class="pButton"
  7256. @click="(pzDialog = true), selectPz()"
  7257. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7258. >
  7259. <!-- 批 -->
  7260. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  7261. </div>
  7262. <div v-if="pzDialog == true" class="newDialogCss">
  7263. <div class="pzTop2">
  7264. <!-- <div>批注</div>
  7265. <div @click="pzDialog = false">
  7266. <img src="../assets/close1.png" alt="" />
  7267. </div> -->
  7268. <div class="checkbox">
  7269. <div class="check" style="font-size: 25px">评课笔记</div>
  7270. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7271. </div>
  7272. </div>
  7273. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7274. <div class="pzListBox" v-if="pzList && pzList.length">
  7275. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7276. <div class="pzNavTop">
  7277. <div>批</div>
  7278. <div>
  7279. {{
  7280. pz.username && pz.username.length > 5
  7281. ? pz.username.substring(0, 5) + "..."
  7282. : pz.username
  7283. }}的批注
  7284. </div>
  7285. <div
  7286. class="pzDelete"
  7287. v-if="pz.userid == userid"
  7288. @click="deletePz(pz.id)"
  7289. >
  7290. 删除
  7291. </div>
  7292. </div>
  7293. <div
  7294. @click="checkImg(getImgList(pz.content))"
  7295. class="pzContent cont"
  7296. v-html="pz.content"
  7297. v-if="pz.type == '1'"
  7298. ></div>
  7299. <div class="pzContent" v-if="pz.type == '2'">
  7300. <audio :src="pz.content" controls="controls" ref="audio">
  7301. Your browser does not support the audio element.
  7302. </audio>
  7303. </div>
  7304. <div class="pzContent" v-if="pz.type == '3'">
  7305. <img
  7306. :src="pz.content"
  7307. style="width: 90%; margin: 0 auto; display: block"
  7308. @click="previewImg(pz.content)"
  7309. />
  7310. </div>
  7311. <div class="time">
  7312. {{ pz.time }}
  7313. </div>
  7314. </div>
  7315. </div>
  7316. <div class="noPz" v-else>
  7317. <img src="../assets/icon/noPz.png" alt="" />
  7318. </div>
  7319. <div class="addPzButton">
  7320. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7321. 添加批注
  7322. </div>
  7323. <!-- <div class="img1">
  7324. <div @click="(addPzDialog = true), (pzType = 2)">
  7325. <img src="../assets/audio.png" /><span>音频</span>
  7326. </div>
  7327. </div> -->
  7328. </div>
  7329. </div>
  7330. </div>
  7331. <div v-if="addPzDialog == true" class="addDialogCss">
  7332. <div class="pzTop">
  7333. <div class="teacherPz">
  7334. <div class="teacherPzImg">
  7335. <img src="../assets/icon/teacherPz.png" alt="" />
  7336. </div>
  7337. <div style="margin-left: 10px; height: 25px">教师批注</div>
  7338. </div>
  7339. <div @click="addPzDialog = false">
  7340. <img src="../assets/close1.png" alt="" />
  7341. </div>
  7342. </div>
  7343. <div class="addPzBox">
  7344. <div class="addPzCheck">
  7345. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  7346. >文本</span
  7347. >
  7348. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  7349. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  7350. >音频</span
  7351. >
  7352. </div>
  7353. <div style="height: calc(100% - 95px)">
  7354. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  7355. v-if="pzType == 1"></textarea> -->
  7356. <editor-bar
  7357. class="binfo_input pzConText"
  7358. style="width: 100% !important"
  7359. placeholder="请输入任务描述"
  7360. v-model="pzConText"
  7361. @change="change"
  7362. v-if="pzType == 1"
  7363. ></editor-bar>
  7364. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  7365. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  7366. <div @click="addImg($event)">
  7367. <el-button type="primary">上传图片</el-button>
  7368. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  7369. @change="beforeUpload1($event, 4)" />
  7370. </div>
  7371. </div> -->
  7372. </div>
  7373. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  7374. 确定
  7375. </div>
  7376. </div>
  7377. </div>
  7378. <div v-if="proVisible" class="mask">
  7379. <div class="progressBox">
  7380. <!-- <div id="closePro" class="closeCss">
  7381. <img src="../assets/icon/close.png" alt />
  7382. </div> -->
  7383. <div class="lbox">
  7384. <img src="../assets/loading.gif" />上传中,请稍后
  7385. </div>
  7386. <div style="margin-bottom: 10px">
  7387. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  7388. </div>
  7389. <el-progress
  7390. :text-inside="true"
  7391. :stroke-width="20"
  7392. :percentage="progress"
  7393. style="width: 80%"
  7394. ></el-progress>
  7395. </div>
  7396. </div>
  7397. <div v-if="proVisible2" class="mask">
  7398. <div class="progressBox">
  7399. <div class="lbox">
  7400. <img src="../assets/loading.gif" />上传中,请稍后
  7401. </div>
  7402. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  7403. </div>
  7404. </div>
  7405. <el-dialog :visible.sync="pictureDialog" size="tiny">
  7406. <img width="100%" :src="dialogImageUrl" alt />
  7407. </el-dialog>
  7408. <el-dialog
  7409. :title="noteName != '' ? noteName : '查看问卷'"
  7410. :visible.sync="dialogVisible5"
  7411. :append-to-body="true"
  7412. width="1000px"
  7413. :before-close="handleClose"
  7414. class="dialog_diy dialog_diy3"
  7415. >
  7416. <div>
  7417. <div
  7418. class="a_add_title"
  7419. style="
  7420. display: flex;
  7421. flex-direction: row;
  7422. align-items: center;
  7423. justify-content: center;
  7424. "
  7425. >
  7426. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7427. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7428. </div>
  7429. <div class="a_addBox">
  7430. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7431. <div
  7432. class="a_add_box"
  7433. v-for="(item1, index1) in askJson.askCount"
  7434. :key="index1"
  7435. >
  7436. <div class="a_add_head">
  7437. <div style="display: flex">
  7438. {{ index1 + 1 + "、" }}
  7439. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7440. </div>
  7441. <img
  7442. v-if="askJson.askJson[index1].img"
  7443. :src="askJson.askJson[index1].img"
  7444. style="height: 300px; margin-top: 10px; max-width: 100%"
  7445. />
  7446. </div>
  7447. <div class="a_add_body">
  7448. <div class="a_add_input">
  7449. <el-radio-group
  7450. v-model="radio[index1]"
  7451. v-if="
  7452. askJson.askJson[index1].type == '1' ||
  7453. !askJson.askJson[index1].type
  7454. "
  7455. >
  7456. <el-radio
  7457. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7458. .checkList"
  7459. :key="checkIndex"
  7460. :label="checkIndex"
  7461. :disabled="isAnswer"
  7462. class="redioStyle"
  7463. ><span v-html="item2"></span
  7464. ></el-radio>
  7465. </el-radio-group>
  7466. <el-checkbox-group
  7467. v-model="radio[index1]"
  7468. v-if="askJson.askJson[index1].type == '2'"
  7469. >
  7470. <el-checkbox
  7471. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7472. .checkList"
  7473. :key="checkIndex1"
  7474. :label="checkIndex1"
  7475. :disabled="isAnswer"
  7476. class="redioStyle"
  7477. ><span v-html="item2"></span>
  7478. </el-checkbox>
  7479. </el-checkbox-group>
  7480. </div>
  7481. </div>
  7482. </div>
  7483. </div>
  7484. </div>
  7485. <span slot="footer" class="dialog-footer">
  7486. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  7487. >取 消</el-button
  7488. >
  7489. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  7490. >确 定</el-button
  7491. >
  7492. </span>
  7493. </el-dialog>
  7494. <el-dialog
  7495. :title="noteName != '' ? noteName : '查看问卷'"
  7496. :visible.sync="dialogVisible5Teacher"
  7497. :append-to-body="true"
  7498. width="1000px"
  7499. :before-close="handleClose"
  7500. class="dialog_diy dialog_diy3"
  7501. >
  7502. <div>
  7503. <div class="w_name">
  7504. 学生姓名:<span>{{ sStudent.student }}</span>
  7505. </div>
  7506. <div
  7507. class="a_add_title"
  7508. style="
  7509. display: flex;
  7510. flex-direction: row;
  7511. align-items: center;
  7512. justify-content: center;
  7513. "
  7514. >
  7515. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7516. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7517. </div>
  7518. <div class="a_addBox">
  7519. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7520. <div
  7521. class="a_add_box"
  7522. v-for="(item1, index1) in askJson.askCount"
  7523. :key="index1"
  7524. >
  7525. <div class="a_add_head">
  7526. <div style="display: flex">
  7527. {{ index1 + 1 + "、" }}
  7528. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7529. </div>
  7530. <img
  7531. v-if="askJson.askJson[index1].img"
  7532. :src="askJson.askJson[index1].img"
  7533. style="height: 300px; margin-top: 10px; max-width: 100%"
  7534. />
  7535. </div>
  7536. <div class="a_add_body">
  7537. <div class="a_add_input">
  7538. <el-radio-group
  7539. v-model="radio[index1]"
  7540. v-if="
  7541. askJson.askJson[index1].type == '1' ||
  7542. !askJson.askJson[index1].type
  7543. "
  7544. >
  7545. <el-radio
  7546. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7547. .checkList"
  7548. :key="checkIndex"
  7549. :label="checkIndex"
  7550. :disabled="isAnswer"
  7551. class="redioStyle"
  7552. ><span v-html="item2"></span
  7553. ></el-radio>
  7554. </el-radio-group>
  7555. <el-checkbox-group
  7556. v-model="radio[index1]"
  7557. v-if="askJson.askJson[index1].type == '2'"
  7558. >
  7559. <el-checkbox
  7560. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7561. .checkList"
  7562. :key="checkIndex1"
  7563. :label="checkIndex1"
  7564. :disabled="isAnswer"
  7565. class="redioStyle"
  7566. ><span v-html="item2"></span>
  7567. </el-checkbox>
  7568. </el-checkbox-group>
  7569. </div>
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. <span slot="footer" class="dialog-footer">
  7575. <el-button
  7576. @click="dialogVisible5Teacher = false"
  7577. v-show="noteName == ''"
  7578. >取 消</el-button
  7579. >
  7580. <el-button
  7581. type="primary"
  7582. @click="addStudentAskTeacher"
  7583. v-show="noteName == ''"
  7584. >确 定</el-button
  7585. >
  7586. </span>
  7587. </el-dialog>
  7588. <el-dialog
  7589. :title="noteName != '' ? noteName : '查看选择题'"
  7590. :visible.sync="dialogVisibleChoice"
  7591. :append-to-body="true"
  7592. width="1000px"
  7593. :before-close="handleClose"
  7594. class="dialog_diy dialog_diy3"
  7595. >
  7596. <div>
  7597. <!-- <div class="a_add_title" style="
  7598. display: flex;
  7599. flex-direction: row;
  7600. align-items: center;
  7601. justify-content: center;
  7602. ">
  7603. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7604. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  7605. </div> -->
  7606. <div class="a_addBox">
  7607. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7608. <div
  7609. class="a_add_box"
  7610. v-for="(item1, index1) in testJson.testCount"
  7611. :key="index1"
  7612. >
  7613. <div class="a_add_head">
  7614. <div style="display: flex">
  7615. {{ index1 + 1 + "、" }}
  7616. <div
  7617. v-if="testJson.testJson[index1].type == '1'"
  7618. style="margin-right: 5px; min-width: 70px"
  7619. >
  7620. (单选题)
  7621. </div>
  7622. <div
  7623. v-if="testJson.testJson[index1].type == '2'"
  7624. style="margin-right: 5px; min-width: 70px"
  7625. >
  7626. (多选题)
  7627. </div>
  7628. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7629. </div>
  7630. <img
  7631. v-if="testJson.testJson[index1].img"
  7632. :src="testJson.testJson[index1].img"
  7633. style="height: 300px; margin-top: 10px; max-width: 100%"
  7634. />
  7635. </div>
  7636. <div
  7637. class="timuImgBox"
  7638. v-if="
  7639. testJson.testJson[index1].timuList &&
  7640. testJson.testJson[index1].timuList.length
  7641. "
  7642. >
  7643. <div
  7644. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7645. :key="tIndex"
  7646. class="timuImg"
  7647. @click.stop="previewImg(timg.src)"
  7648. >
  7649. <img :src="timg.src" alt="" />
  7650. </div>
  7651. </div>
  7652. <div class="a_add_body">
  7653. <div class="a_add_input">
  7654. <el-radio-group
  7655. v-model="radio[index1]"
  7656. v-if="testJson.testJson[index1].type == '1'"
  7657. >
  7658. <div class="radioBox">
  7659. <el-radio
  7660. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7661. .checkList"
  7662. :key="checkIndex"
  7663. :label="checkIndex"
  7664. :disabled="isAnswer"
  7665. class="redioStyle"
  7666. >
  7667. <div
  7668. style="margin-right: 10px"
  7669. v-if="item2 && item2.imgType && item2.imgType == 1"
  7670. >
  7671. <div class="inImg" @click.stop="previewImg(item2.src)">
  7672. <img :src="item2.src" alt="" />
  7673. </div>
  7674. </div>
  7675. <span v-else v-html="item2"></span>
  7676. </el-radio>
  7677. </div>
  7678. </el-radio-group>
  7679. <el-checkbox-group
  7680. v-model="radio[index1]"
  7681. v-if="testJson.testJson[index1].type == '2'"
  7682. >
  7683. <div class="radioBox">
  7684. <el-checkbox
  7685. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7686. .checkList"
  7687. :key="checkIndex"
  7688. :label="checkIndex"
  7689. :disabled="isAnswer"
  7690. class="redioStyle"
  7691. >
  7692. <div
  7693. style="margin-right: 10px"
  7694. v-if="item2 && item2.imgType && item2.imgType == 1"
  7695. >
  7696. <div class="inImg" @click.stop="previewImg(item2.src)">
  7697. <img :src="item2.src" alt="" />
  7698. </div>
  7699. </div>
  7700. <span v-else v-html="item2"></span>
  7701. </el-checkbox>
  7702. </div>
  7703. </el-checkbox-group>
  7704. </div>
  7705. </div>
  7706. </div>
  7707. </div>
  7708. </div>
  7709. <span slot="footer" class="dialog-footer">
  7710. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  7711. >取 消</el-button
  7712. >
  7713. <el-button
  7714. type="primary"
  7715. @click="addStudentTest"
  7716. v-show="noteName == ''"
  7717. >确 定</el-button
  7718. >
  7719. </span>
  7720. </el-dialog>
  7721. <el-dialog
  7722. :title="noteName != '' ? noteName : '查看选择题'"
  7723. :visible.sync="dialogVisibleChoiceTeacher"
  7724. :append-to-body="true"
  7725. width="1000px"
  7726. :before-close="handleClose"
  7727. class="dialog_diy dialog_diy3"
  7728. >
  7729. <div>
  7730. <div class="w_name">
  7731. 学生姓名:<span>{{ sStudent.student }}</span>
  7732. </div>
  7733. <div class="a_addBox">
  7734. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7735. <div
  7736. class="a_add_box"
  7737. v-for="(item1, index1) in testJson.testCount"
  7738. :key="index1"
  7739. >
  7740. <div class="a_add_head">
  7741. <div style="display: flex">
  7742. {{ index1 + 1 + "、" }}
  7743. <div
  7744. v-if="testJson.testJson[index1].type == '1'"
  7745. style="margin-right: 5px; min-width: 70px"
  7746. >
  7747. (单选题)
  7748. </div>
  7749. <div
  7750. v-if="testJson.testJson[index1].type == '2'"
  7751. style="margin-right: 5px; min-width: 70px"
  7752. >
  7753. (多选题)
  7754. </div>
  7755. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7756. </div>
  7757. <img
  7758. v-if="testJson.testJson[index1].img"
  7759. :src="testJson.testJson[index1].img"
  7760. style="height: 300px; margin-top: 10px; max-width: 100%"
  7761. />
  7762. </div>
  7763. <div
  7764. class="timuImgBox"
  7765. v-if="
  7766. testJson.testJson[index1].timuList &&
  7767. testJson.testJson[index1].timuList.length
  7768. "
  7769. >
  7770. <div
  7771. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7772. :key="tIndex"
  7773. class="timuImg"
  7774. @click.stop="previewImg(timg.src)"
  7775. >
  7776. <img :src="timg.src" alt="" />
  7777. </div>
  7778. </div>
  7779. <div class="a_add_body">
  7780. <div class="a_add_input">
  7781. <el-radio-group
  7782. v-model="radio[index1]"
  7783. v-if="testJson.testJson[index1].type == '1'"
  7784. >
  7785. <div class="radioBox">
  7786. <el-radio
  7787. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7788. .checkList"
  7789. :key="checkIndex"
  7790. :label="checkIndex"
  7791. :disabled="isAnswer"
  7792. class="redioStyle"
  7793. >
  7794. <div
  7795. style="margin-right: 10px"
  7796. v-if="item2 && item2.imgType && item2.imgType == 1"
  7797. >
  7798. <div class="inImg" @click.stop="previewImg(item2.src)">
  7799. <img :src="item2.src" alt="" />
  7800. </div>
  7801. </div>
  7802. <span v-else v-html="item2"></span>
  7803. </el-radio>
  7804. </div>
  7805. </el-radio-group>
  7806. <el-checkbox-group
  7807. v-model="radio[index1]"
  7808. v-if="testJson.testJson[index1].type == '2'"
  7809. >
  7810. <div class="radioBox">
  7811. <el-checkbox
  7812. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7813. .checkList"
  7814. :key="checkIndex"
  7815. :label="checkIndex"
  7816. :disabled="isAnswer"
  7817. class="redioStyle"
  7818. >
  7819. <div
  7820. style="margin-right: 10px"
  7821. v-if="item2 && item2.imgType && item2.imgType == 1"
  7822. >
  7823. <div class="inImg" @click.stop="previewImg(item2.src)">
  7824. <img :src="item2.src" alt="" />
  7825. </div>
  7826. </div>
  7827. <span v-else v-html="item2"></span>
  7828. </el-checkbox>
  7829. </div>
  7830. </el-checkbox-group>
  7831. </div>
  7832. </div>
  7833. </div>
  7834. </div>
  7835. </div>
  7836. <span slot="footer" class="dialog-footer">
  7837. <el-button
  7838. @click="dialogVisibleChoiceTeacher = false"
  7839. v-show="noteName == ''"
  7840. >取 消</el-button
  7841. >
  7842. <el-button
  7843. type="primary"
  7844. @click="addStudentTestTeacher"
  7845. v-show="noteName == ''"
  7846. >确 定</el-button
  7847. >
  7848. </span>
  7849. </el-dialog>
  7850. <el-dialog
  7851. title="查看富文本"
  7852. :visible.sync="dialogVisible1"
  7853. :append-to-body="true"
  7854. width="500px"
  7855. :before-close="handleClose"
  7856. class="dialog_diy textCss"
  7857. >
  7858. <el-form style="font-size: 20px">
  7859. <el-form-item label="文本标题" class="textTitle">
  7860. <div style="font-size: 20px">{{ text.name }}</div>
  7861. </el-form-item>
  7862. <div>富文本内容</div>
  7863. <div
  7864. v-html="text.url"
  7865. style="font-size: 18px; padding: 40px 0 0 0"
  7866. ></div>
  7867. </el-form>
  7868. <span slot="footer" class="dialog-footer">
  7869. <el-button type="primary" @click="dialogVisible1 = false"
  7870. >确定</el-button
  7871. >
  7872. </span>
  7873. </el-dialog>
  7874. <el-dialog
  7875. title="文件预览"
  7876. :visible.sync="dialogVisible3"
  7877. width="50%"
  7878. :before-close="handleClose"
  7879. class="dialog_diy"
  7880. :class="{ fullStyle: full }"
  7881. >
  7882. <div slot="title" class="header-title">
  7883. <div style="color: #fff">文件预览</div>
  7884. <div style="position: absolute; top: 19px; right: 50px">
  7885. <img
  7886. src="../assets/full.png"
  7887. style="height: 16px; cursor: pointer"
  7888. alt=""
  7889. @click="fullTools"
  7890. />
  7891. </div>
  7892. </div>
  7893. <pdf
  7894. v-if="showPDF"
  7895. :pdfUrl="pptImgUrl"
  7896. style="width: 100%; height: 520px; overflow: auto"
  7897. :class="{ fullStyle: full }"
  7898. ></pdf>
  7899. <iframe
  7900. v-else
  7901. :src="pptImgUrl"
  7902. frameborder="0"
  7903. width="100%"
  7904. height="600"
  7905. :class="{ fullStyle: full }"
  7906. ></iframe>
  7907. </el-dialog>
  7908. <el-dialog
  7909. title="文件预览"
  7910. :visible.sync="dialogVisible6"
  7911. width="50%"
  7912. :before-close="handleClose"
  7913. class="dialog_diy"
  7914. >
  7915. <iframe
  7916. :src="pptImgUrl1"
  7917. frameborder="0"
  7918. width="100%"
  7919. height="600"
  7920. ></iframe>
  7921. </el-dialog>
  7922. <el-dialog
  7923. title="提示"
  7924. :visible.sync="dialogVisible4"
  7925. :append-to-body="true"
  7926. width="800px"
  7927. :before-close="handleClose"
  7928. class="dialog_diy notice"
  7929. >
  7930. <div>此功能暂未开放!</div>
  7931. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  7932. </el-dialog>
  7933. <el-dialog
  7934. title="问答"
  7935. :visible.sync="answerDialogVisible"
  7936. :append-to-body="true"
  7937. width="800px"
  7938. :before-close="handleClose"
  7939. class="dialog_diy"
  7940. >
  7941. <div>
  7942. <div
  7943. style="
  7944. display: flex;
  7945. flex-wrap: nowrap;
  7946. flex-direction: column;
  7947. position: relative;
  7948. "
  7949. >
  7950. <div class="queTop" style="padding: 20px 0 20px 0">
  7951. <div class="question">
  7952. <img src="../assets/icon/question.png" alt />
  7953. </div>
  7954. <div class="queTitle">
  7955. <div style="width: 90px; min-width: 90px">提问:</div>
  7956. <div>{{ answerQ }}</div>
  7957. </div>
  7958. </div>
  7959. <div class="ediBottom">
  7960. <textarea
  7961. rows="6"
  7962. class="binfo_input"
  7963. cols
  7964. style="width: 95%; height: 120px"
  7965. v-model="questionAnswer"
  7966. ></textarea>
  7967. </div>
  7968. </div>
  7969. </div>
  7970. <div slot="footer">
  7971. <el-button @click="answerDialogVisible = false">取 消</el-button>
  7972. <el-button type="primary" @click="addQuestion">提 交</el-button>
  7973. </div>
  7974. </el-dialog>
  7975. <el-dialog
  7976. title="问答"
  7977. :visible.sync="answerDialogVisibleTeacher"
  7978. :append-to-body="true"
  7979. width="800px"
  7980. :before-close="handleClose"
  7981. class="dialog_diy"
  7982. >
  7983. <div>
  7984. <div class="w_name">
  7985. 学生姓名:<span>{{ sStudent.student }}</span>
  7986. </div>
  7987. <div
  7988. style="
  7989. display: flex;
  7990. flex-wrap: nowrap;
  7991. flex-direction: column;
  7992. position: relative;
  7993. "
  7994. >
  7995. <div class="queTop" style="padding: 20px 0 20px 0">
  7996. <div class="question">
  7997. <img src="../assets/icon/question.png" alt />
  7998. </div>
  7999. <div class="queTitle">
  8000. <div style="width: 90px; min-width: 90px">提问:</div>
  8001. <div>{{ answerQ }}</div>
  8002. </div>
  8003. </div>
  8004. <div class="ediBottom">
  8005. <textarea
  8006. rows="6"
  8007. class="binfo_input"
  8008. cols
  8009. style="width: 95%; height: 120px"
  8010. v-model="questionAnswer"
  8011. ></textarea>
  8012. </div>
  8013. </div>
  8014. </div>
  8015. <div slot="footer">
  8016. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  8017. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  8018. </div>
  8019. </el-dialog>
  8020. <el-dialog
  8021. title="倒计时"
  8022. :visible.sync="timeDialogVisible"
  8023. :append-to-body="true"
  8024. width="800px"
  8025. :before-close="handleClose"
  8026. class="dialog_diy"
  8027. >
  8028. <div>
  8029. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  8030. </div>
  8031. <div slot="footer">
  8032. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  8033. </div>
  8034. </el-dialog>
  8035. <el-dialog
  8036. title="权限设置"
  8037. :visible.sync="juriVisible"
  8038. :append-to-body="true"
  8039. width="400px"
  8040. :before-close="handleClose"
  8041. class="dialog_diy"
  8042. >
  8043. <div>
  8044. <div class="open_box">
  8045. <div class="switch_box">
  8046. <span>允许学生查看所有作业</span>
  8047. <el-switch
  8048. v-model="sIsOpen"
  8049. active-text=""
  8050. class="switchCss"
  8051. @change="updateSLook"
  8052. ></el-switch>
  8053. </div>
  8054. <div
  8055. class="switch_box"
  8056. v-if="
  8057. courseDetail.userid == userid ||
  8058. (courseDetail.course_teacher &&
  8059. courseDetail.course_teacher.indexOf(userid) != -1)
  8060. "
  8061. >
  8062. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  8063. <span>禁止学生查看所有阶段</span>
  8064. <el-switch
  8065. v-model="IsLookOpen"
  8066. active-text=""
  8067. class="switchCss"
  8068. @change="updateLookOpen"
  8069. ></el-switch>
  8070. </div>
  8071. <div class="switch_box" v-if="courseDetail.userid == userid">
  8072. <span>开启跟随模式</span>
  8073. <el-switch
  8074. v-model="IsFollow"
  8075. active-text=""
  8076. class="switchCss"
  8077. @change="updateFollow"
  8078. ></el-switch>
  8079. </div>
  8080. </div>
  8081. </div>
  8082. <div slot="footer">
  8083. <el-button
  8084. style="background: #409efe; color: #fff"
  8085. @click="juriVisible = false"
  8086. >关 闭</el-button
  8087. >
  8088. </div>
  8089. </el-dialog>
  8090. <el-dialog
  8091. title="查看视频"
  8092. :visible.sync="videoVisible"
  8093. :append-to-body="true"
  8094. width="1000px"
  8095. :before-close="handleClose"
  8096. class="dialog_diy1"
  8097. >
  8098. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  8099. <video-player
  8100. class="video-player vjs-custom-skin"
  8101. :playsinline="true"
  8102. :options="videoDetail"
  8103. @play="onPlayerPlay($event)"
  8104. style="width: 100%; height: 100%"
  8105. ></video-player>
  8106. </div>
  8107. <div slot="footer">
  8108. <el-button
  8109. style="background: #409efe; color: #fff"
  8110. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  8111. >
  8112. 关 闭</el-button
  8113. >
  8114. </div>
  8115. </el-dialog>
  8116. <el-dialog
  8117. title="查看详情"
  8118. :visible.sync="commentDialogVisible"
  8119. :append-to-body="true"
  8120. width="800px"
  8121. :before-close="handleClose"
  8122. class="dialog_diy"
  8123. >
  8124. <div class="commentTop">
  8125. <div class="studentDetail">
  8126. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8127. <div class="nameAndTime">
  8128. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8129. <div>{{ commentDetail.time }}</div>
  8130. </div>
  8131. <div
  8132. class="returnBtn"
  8133. style="margin-left: auto; width: 80px"
  8134. v-if="
  8135. commentDetail.works &&
  8136. commentDetail.type == 0 &&
  8137. (tType == 1 || tType == 4)
  8138. "
  8139. @click="
  8140. showPicturePaint(
  8141. commentDetail.img ? commentDetail.img : commentDetail.works
  8142. )
  8143. "
  8144. >
  8145. 教师批注
  8146. </div>
  8147. </div>
  8148. <div
  8149. class="worksAnswer"
  8150. v-if="commentDetail.works && commentDetail.type == 2"
  8151. >
  8152. {{ JSON.parse(commentDetail.works)[0].answer }}
  8153. </div>
  8154. <div
  8155. class="worksAnswer"
  8156. v-if="commentDetail.works && commentDetail.type == 1"
  8157. >
  8158. <img
  8159. src="../assets/teacherWork.png"
  8160. v-if="commentDetail.ateacher"
  8161. class="w_teachert"
  8162. />
  8163. <pdf
  8164. v-if="showPDF"
  8165. :pdfUrl="pptImgUrl"
  8166. style="width: 100%; height: 520px; overflow: auto"
  8167. :class="{ fullStyle: full }"
  8168. ></pdf>
  8169. <iframe
  8170. v-else
  8171. :src="pptImgUrl"
  8172. frameborder="0"
  8173. width="100%"
  8174. height="600"
  8175. :class="{ fullStyle: full }"
  8176. ></iframe>
  8177. </div>
  8178. <div
  8179. class="worksAnswer"
  8180. v-if="commentDetail.works && commentDetail.type == 0"
  8181. >
  8182. <img
  8183. src="../assets/teacherWork.png"
  8184. v-if="commentDetail.ateacher"
  8185. class="w_teachert"
  8186. style="right: 105px"
  8187. />
  8188. <img
  8189. :src="commentDetail.works"
  8190. alt=""
  8191. @click="previewImg(commentDetail.works)"
  8192. />
  8193. </div>
  8194. <div
  8195. class="worksAnswer"
  8196. v-if="commentDetail.works && commentDetail.type == 3"
  8197. >
  8198. <img
  8199. src="../assets/teacherWork.png"
  8200. v-if="commentDetail.ateacher"
  8201. class="w_teachert"
  8202. />
  8203. <video-player
  8204. class="video-player vjs-custom-skin"
  8205. :playsinline="true"
  8206. :options="videoDetail"
  8207. @play="onPlayerPlay($event)"
  8208. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8209. ></video-player>
  8210. </div>
  8211. <div
  8212. class="worksAnswer"
  8213. v-if="commentDetail.works && commentDetail.type == 10"
  8214. >
  8215. <div class="cont" v-html="commentDetail.works.text"></div>
  8216. </div>
  8217. <div
  8218. class="worksAnswer codeFileBox"
  8219. v-if="commentDetail.works && commentDetail.type == 12"
  8220. @click="downloadFile(commentDetail.works)"
  8221. >
  8222. <img src="../assets/icon/codeFile.png" />
  8223. <div>点击下载文件</div>
  8224. </div>
  8225. <div
  8226. class="worksAnswer codeFileBox"
  8227. v-if="commentDetail.works && commentDetail.type == 15"
  8228. @click="
  8229. openCocoPi(
  8230. 57,
  8231. commentIndexJson.toolIndex,
  8232. commentDetail.userid,
  8233. commentDetail.sName
  8234. )
  8235. "
  8236. >
  8237. <img src="../assets/icon/codeFile.png" />
  8238. <div>点击打开CocoPi</div>
  8239. </div>
  8240. <div
  8241. class="worksAnswer"
  8242. v-if="commentDetail.works && commentDetail.type == 13"
  8243. >
  8244. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8245. </div>
  8246. <div
  8247. class="worksAnswer"
  8248. v-if="commentDetail.works && commentDetail.type == 4"
  8249. >
  8250. <div class="evalCss">
  8251. <div class="nav">请选择星星进行评分</div>
  8252. <div class="middleBox" v-if="eScore.eStar">
  8253. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8254. <div class="nameAndrate">
  8255. <div>{{ e.value }}</div>
  8256. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  8257. </div>
  8258. <div v-if="e.detail">{{ e.detail }}</div>
  8259. </div>
  8260. <div class="bz">
  8261. <textarea
  8262. disabled
  8263. rows="4"
  8264. class="pj"
  8265. style="
  8266. padding: 10px 5px;
  8267. width: 70%;
  8268. background: #f7f6f9;
  8269. font-size: 14px;
  8270. text-indent: 10px;
  8271. color: #000;
  8272. "
  8273. cols
  8274. v-model="eScore.eBzText"
  8275. placeholder="请输入评价内容..."
  8276. ></textarea>
  8277. </div>
  8278. </div>
  8279. </div>
  8280. </div>
  8281. <div class="comment">
  8282. <div class="commentList">
  8283. <div class="commentImg">
  8284. <img
  8285. @click="
  8286. isLikes(
  8287. commentDetail.wid,
  8288. userid,
  8289. 1,
  8290. null,
  8291. commentDetail.isLikes
  8292. )
  8293. "
  8294. :src="commentDetail.isLikes == true ? likes : noLikes"
  8295. alt=""
  8296. />
  8297. </div>
  8298. <div>{{ commentDetail.likesCount }}</div>
  8299. </div>
  8300. <div class="commentList">
  8301. <div class="commentImg">
  8302. <img src="../assets/icon/comment/comment.png" alt="" />
  8303. </div>
  8304. <div>{{ commentDetail.commentCount }}</div>
  8305. </div>
  8306. </div>
  8307. <div class="drawPBox" v-if="commentDetail.img">
  8308. <span>教师批注</span>
  8309. <img
  8310. :src="commentDetail.img"
  8311. alt=""
  8312. @click="previewImg(commentDetail.img)"
  8313. />
  8314. <span
  8315. class="deleteImg"
  8316. v-if="tType == 1 || tType == 4"
  8317. @click.stop="deletePicturePaint(commentDetail.wid)"
  8318. style="
  8319. font-size: 14px;
  8320. width: auto !important;
  8321. color: #b4b4b4;
  8322. top: unset;
  8323. bottom: 0;
  8324. border: none;
  8325. padding: 0;
  8326. height: auto !important;
  8327. margin: 0;
  8328. "
  8329. >删除</span
  8330. >
  8331. </div>
  8332. </div>
  8333. <div class="commentBox">
  8334. <div class="pl">评论:</div>
  8335. <div style="max-height: 200px; overflow: auto">
  8336. <div
  8337. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  8338. style="padding: 10px 0 0 0"
  8339. >
  8340. <div
  8341. class="studentDetail"
  8342. style="padding-top: 10px"
  8343. v-for="(co, coIndex) in commentDetail.commentJson"
  8344. :key="coIndex"
  8345. >
  8346. <div class="tx" style="min-width: 50px">
  8347. <img src="../assets/avatar.png" alt="" />
  8348. </div>
  8349. <div class="plPerson">
  8350. <div class="plName">
  8351. <div>{{ co.commentPeople }}</div>
  8352. <div style="margin-left: 5px">
  8353. {{ co.commentTime }}
  8354. </div>
  8355. <div
  8356. class="deleteComment"
  8357. v-if="userid == co.userid"
  8358. @click="deleteComment(co.wid)"
  8359. >
  8360. 删除
  8361. </div>
  8362. </div>
  8363. <div class="plContent">{{ co.commentText }}</div>
  8364. </div>
  8365. </div>
  8366. </div>
  8367. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  8368. </div>
  8369. </div>
  8370. <div style="margin-top: 10px">
  8371. <div class="displayBox">
  8372. <div
  8373. style="
  8374. color: #556db4;
  8375. font-size: 14px;
  8376. font-weight: bold;
  8377. padding-bottom: 10px;
  8378. "
  8379. >
  8380. 评价
  8381. </div>
  8382. <div class="easy_comment" v-if="false">
  8383. <div
  8384. v-for="(p, pIndex) in PlTextList"
  8385. :key="pIndex"
  8386. @click="fastText(p, 1)"
  8387. >
  8388. {{ p }}
  8389. </div>
  8390. </div>
  8391. </div>
  8392. <div>
  8393. <textarea
  8394. rows="3"
  8395. class="pj"
  8396. style="padding: 10px 5px"
  8397. cols
  8398. v-model="commentText"
  8399. placeholder="请输入评论"
  8400. ></textarea>
  8401. </div>
  8402. </div>
  8403. <div slot="footer">
  8404. <el-button
  8405. @click="
  8406. (commentDialogVisible = false),
  8407. (commentIndexJson = {}),
  8408. videoDetail.sources && videoDetail.sources[0]
  8409. ? (videoDetail.sources[0].src = '')
  8410. : ''
  8411. "
  8412. >取 消</el-button
  8413. >
  8414. <el-button
  8415. type="primary"
  8416. @click="addComment(commentDetail.wid, userid, 2)"
  8417. >确 定</el-button
  8418. >
  8419. </div>
  8420. </el-dialog>
  8421. <el-dialog
  8422. title="查看文档"
  8423. :visible.sync="fullDialogVisible"
  8424. :append-to-body="true"
  8425. width="100%"
  8426. :before-close="handleClose"
  8427. :show-close="false"
  8428. class="dialog_diy full_diy"
  8429. :class="{ full_diy2: fulltype == 3 }"
  8430. >
  8431. <div slot="title" class="header-title">
  8432. <div style="color: #fff">查看文档</div>
  8433. <div
  8434. @click="fullDialogVisible = false"
  8435. style="
  8436. cursor: pointer;
  8437. position: absolute;
  8438. top: 20px;
  8439. right: 20px;
  8440. color: #fff;
  8441. "
  8442. >
  8443. 退出全屏
  8444. </div>
  8445. </div>
  8446. <div style="height: 100%">
  8447. <div
  8448. class="wheel"
  8449. v-if="
  8450. fulltype == 2 &&
  8451. fullUrl.indexOf(
  8452. 'https://view.officeapps.live.com/op/view.aspx?src='
  8453. ) != -1
  8454. "
  8455. style="width: 95%; margin: 0 auto"
  8456. >
  8457. <iframe
  8458. style="width: 100%; height: 100%; border: none"
  8459. :src="fullUrl"
  8460. ></iframe>
  8461. </div>
  8462. <iframe
  8463. v-else-if="fulltype == 2"
  8464. style="width: 100%; height: 100%; border: none"
  8465. :src="fullUrl"
  8466. security="restricted"
  8467. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  8468. ></iframe>
  8469. <pdf
  8470. v-else-if="fulltype == 3"
  8471. :pdfUrl="fullUrl"
  8472. style="width: 100%; height: 100%; overflow: auto"
  8473. ></pdf>
  8474. <div
  8475. class="wheel"
  8476. v-if="fulltype == 1"
  8477. style="
  8478. box-shadow: 0 0 6px 1px #f2f2f2;
  8479. width: 100%;
  8480. background: #f1f1f1;
  8481. "
  8482. >
  8483. <div class="title" style="width: 100%; box-sizing: border-box">
  8484. 查看文档
  8485. </div>
  8486. <el-form class="textBox" style="height: 90%">
  8487. <el-form-item class="textTitle">
  8488. <div style="font-size: 22px">
  8489. {{ fullUrl.name }}
  8490. </div>
  8491. </el-form-item>
  8492. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  8493. <div
  8494. v-html="fullUrl.url"
  8495. class="textContent"
  8496. style="height: auto"
  8497. ></div>
  8498. </el-form>
  8499. </div>
  8500. </div>
  8501. <!-- <div slot="footer">
  8502. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  8503. </div> -->
  8504. </el-dialog>
  8505. <el-dialog
  8506. title="个人评价"
  8507. :visible.sync="studentEvalDialogVisible"
  8508. :append-to-body="true"
  8509. width="800px"
  8510. :before-close="handleClose"
  8511. class="dialog_diy"
  8512. >
  8513. <div class="evalCss">
  8514. <div class="nav">请选择星星进行评分</div>
  8515. <div class="middleBox" v-if="eScore.eStar">
  8516. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8517. <div class="nameAndrate">
  8518. <div>{{ e.value }}</div>
  8519. <el-rate
  8520. v-model="eScore.eStar[eIndex]"
  8521. :disabled="isStar"
  8522. ></el-rate>
  8523. </div>
  8524. <div v-if="e.detail">{{ e.detail }}</div>
  8525. </div>
  8526. <div class="easy_comment" v-if="false">
  8527. <div
  8528. v-for="(p, pIndex) in PlTextList"
  8529. :key="pIndex"
  8530. @click="fastText(p, 2)"
  8531. >
  8532. {{ p }}
  8533. </div>
  8534. </div>
  8535. <div class="bz">
  8536. <textarea
  8537. :disabled="isStar"
  8538. rows="4"
  8539. class="pj"
  8540. style="
  8541. padding: 10px 5px;
  8542. width: 70%;
  8543. background: #f7f6f9;
  8544. font-size: 14px;
  8545. text-indent: 10px;
  8546. "
  8547. cols
  8548. v-model="eScore.eBzText"
  8549. placeholder="请输入评价内容..."
  8550. ></textarea>
  8551. </div>
  8552. </div>
  8553. </div>
  8554. <div slot="footer">
  8555. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  8556. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  8557. >确 定</el-button
  8558. >
  8559. </div>
  8560. </el-dialog>
  8561. <el-dialog
  8562. title="个人评价"
  8563. :visible.sync="studentEvalDialogVisibleTeacher"
  8564. :append-to-body="true"
  8565. width="800px"
  8566. :before-close="handleClose"
  8567. class="dialog_diy"
  8568. >
  8569. <div class="w_name">
  8570. 学生姓名:<span>{{ sStudent.student }}</span>
  8571. </div>
  8572. <div class="evalCss">
  8573. <div class="nav">请选择星星进行评分</div>
  8574. <div class="middleBox" v-if="eScore.eStar">
  8575. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8576. <div class="nameAndrate">
  8577. <div>{{ e.value }}</div>
  8578. <el-rate
  8579. v-model="eScore.eStar[eIndex]"
  8580. :disabled="isStar"
  8581. ></el-rate>
  8582. </div>
  8583. <div v-if="e.detail">{{ e.detail }}</div>
  8584. </div>
  8585. <div class="easy_comment" v-if="false">
  8586. <div
  8587. v-for="(p, pIndex) in PlTextList"
  8588. :key="pIndex"
  8589. @click="fastText(p, 2)"
  8590. >
  8591. {{ p }}
  8592. </div>
  8593. </div>
  8594. <div class="bz">
  8595. <textarea
  8596. :disabled="isStar"
  8597. rows="4"
  8598. class="pj"
  8599. style="
  8600. padding: 10px 5px;
  8601. width: 70%;
  8602. background: #f7f6f9;
  8603. font-size: 14px;
  8604. text-indent: 10px;
  8605. "
  8606. cols
  8607. v-model="eScore.eBzText"
  8608. placeholder="请输入评价内容..."
  8609. ></textarea>
  8610. </div>
  8611. </div>
  8612. </div>
  8613. <div slot="footer">
  8614. <el-button @click="studentEvalDialogVisibleTeacher = false"
  8615. >取 消</el-button
  8616. >
  8617. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  8618. >确 定</el-button
  8619. >
  8620. </div>
  8621. </el-dialog>
  8622. <el-dialog
  8623. title="选择填空"
  8624. :visible.sync="dialogVisibleSelect"
  8625. :append-to-body="true"
  8626. width="90%"
  8627. :before-close="handleClose"
  8628. class="dialog_diy dialog_diy3"
  8629. >
  8630. <div v-if="selectJson">
  8631. <div class="select_box2">
  8632. <div class="select_box2_title">
  8633. <div>选择填空</div>
  8634. <div>请选择对应的答案进行答题!</div>
  8635. </div>
  8636. <div class="select_box2_box">
  8637. <div class="select_box2_img">
  8638. <img
  8639. :src="selectJson.url"
  8640. @click="previewImg(selectJson.url)"
  8641. alt=""
  8642. />
  8643. </div>
  8644. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8645. <div style="padding-top: 15px">
  8646. <div class="select_answer_title" v-if="isSelect">
  8647. {{ selectAnswer.stu }}
  8648. </div>
  8649. <div class="select_answer_title" v-else>
  8650. 根据题目选择对应答案
  8651. </div>
  8652. <div
  8653. class="select_box2_answer_box"
  8654. v-for="(item2, checkIndex) in selectJson.select"
  8655. :key="checkIndex"
  8656. >
  8657. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8658. <el-select
  8659. :disabled="isSelect"
  8660. v-model="selectAnswer.answer[checkIndex]"
  8661. placeholder="请选择正确答案"
  8662. >
  8663. <el-option
  8664. v-for="(e, eIndex) in selectJson.select"
  8665. :key="eIndex"
  8666. :label="e"
  8667. :value="eIndex"
  8668. >
  8669. </el-option>
  8670. </el-select>
  8671. </div>
  8672. </div>
  8673. <div
  8674. class="rightAnswerCss"
  8675. v-if="isSelect && (tType == 1 || tType == 4)"
  8676. >
  8677. <div
  8678. v-for="(a, aIndex) in selectJson.answer"
  8679. :key="aIndex"
  8680. class="rightAnswer"
  8681. >
  8682. <div
  8683. v-if="selectAnswer.answer[aIndex] === a"
  8684. style="color: #767de1"
  8685. >
  8686. 回答正确
  8687. </div>
  8688. <div v-else>回答错误</div>
  8689. <div
  8690. style="margin-left: 10px"
  8691. v-if="selectAnswer.answer[aIndex] !== a"
  8692. >
  8693. 正确答案:
  8694. </div>
  8695. <div
  8696. :class="
  8697. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  8698. "
  8699. >
  8700. {{ selectJson.select[a] }}
  8701. </div>
  8702. </div>
  8703. </div>
  8704. </div>
  8705. <div class="upAnswerCss">
  8706. <el-button
  8707. type="primary"
  8708. @click="addSelectAnswer"
  8709. v-if="!isSelect"
  8710. >提交答案</el-button
  8711. >
  8712. </div>
  8713. </div>
  8714. </div>
  8715. </div>
  8716. </el-dialog>
  8717. <el-dialog
  8718. title="选择填空"
  8719. :visible.sync="dialogVisibleSelectTeacher"
  8720. :append-to-body="true"
  8721. width="90%"
  8722. :before-close="handleClose"
  8723. class="dialog_diy dialog_diy3"
  8724. >
  8725. <div v-if="selectJson">
  8726. <div class="w_name">
  8727. 学生姓名:<span>{{ sStudent.student }}</span>
  8728. </div>
  8729. <div class="select_box2">
  8730. <div class="select_box2_title">
  8731. <div>选择填空</div>
  8732. <div>请选择对应的答案进行答题!</div>
  8733. </div>
  8734. <div class="select_box2_box">
  8735. <div class="select_box2_img">
  8736. <img
  8737. :src="selectJson.url"
  8738. @click="previewImg(selectJson.url)"
  8739. alt=""
  8740. />
  8741. </div>
  8742. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8743. <div style="padding-top: 15px">
  8744. <div class="select_answer_title" v-if="isSelect">
  8745. {{ selectAnswer.stu }}
  8746. </div>
  8747. <div class="select_answer_title" v-else>
  8748. 根据题目选择对应答案
  8749. </div>
  8750. <div
  8751. class="select_box2_answer_box"
  8752. v-for="(item2, checkIndex) in selectJson.select"
  8753. :key="checkIndex"
  8754. >
  8755. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8756. <el-select
  8757. :disabled="isSelect"
  8758. v-model="selectAnswer.answer[checkIndex]"
  8759. placeholder="请选择正确答案"
  8760. >
  8761. <el-option
  8762. v-for="(e, eIndex) in selectJson.select"
  8763. :key="eIndex"
  8764. :label="e"
  8765. :value="eIndex"
  8766. >
  8767. </el-option>
  8768. </el-select>
  8769. </div>
  8770. </div>
  8771. <div
  8772. class="rightAnswerCss"
  8773. v-if="isSelect && (tType == 1 || tType == 4)"
  8774. >
  8775. <div
  8776. v-for="(a, aIndex) in selectJson.answer"
  8777. :key="aIndex"
  8778. class="rightAnswer"
  8779. >
  8780. <div
  8781. v-if="selectAnswer.answer[aIndex] === a"
  8782. style="color: #767de1"
  8783. >
  8784. 回答正确
  8785. </div>
  8786. <div v-else>回答错误</div>
  8787. <div
  8788. style="margin-left: 10px"
  8789. v-if="selectAnswer.answer[aIndex] !== a"
  8790. >
  8791. 正确答案:
  8792. </div>
  8793. <div
  8794. :class="
  8795. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  8796. "
  8797. >
  8798. {{ selectJson.select[a] }}
  8799. </div>
  8800. </div>
  8801. </div>
  8802. </div>
  8803. <div class="upAnswerCss">
  8804. <el-button
  8805. type="primary"
  8806. @click="addSelectAnswerTeacher"
  8807. v-if="!isSelect"
  8808. >提交答案</el-button
  8809. >
  8810. </div>
  8811. </div>
  8812. </div>
  8813. </div>
  8814. </el-dialog>
  8815. <el-dialog
  8816. title="教师评分"
  8817. :visible.sync="dialogVisibleScore"
  8818. :append-to-body="true"
  8819. width="800px"
  8820. :before-close="handleClose"
  8821. class="dialog_diy"
  8822. >
  8823. <div>
  8824. <div class="studentDetail">
  8825. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8826. <div class="nameAndTime">
  8827. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8828. <div>{{ commentDetail.time }}</div>
  8829. </div>
  8830. </div>
  8831. <div
  8832. class="worksAnswer"
  8833. v-if="commentDetail.works && commentDetail.type == 2"
  8834. >
  8835. {{ JSON.parse(commentDetail.works)[0].answer }}
  8836. </div>
  8837. <div
  8838. class="worksAnswer"
  8839. v-if="commentDetail.works && commentDetail.type == 1"
  8840. >
  8841. <pdf
  8842. v-if="showPDF"
  8843. :pdfUrl="pptImgUrl"
  8844. style="width: 100%; height: 520px; overflow: auto"
  8845. :class="{ fullStyle: full }"
  8846. ></pdf>
  8847. <iframe
  8848. v-else
  8849. :src="pptImgUrl"
  8850. frameborder="0"
  8851. width="100%"
  8852. height="600"
  8853. :class="{ fullStyle: full }"
  8854. ></iframe>
  8855. </div>
  8856. <div
  8857. class="worksAnswer"
  8858. v-if="commentDetail.works && commentDetail.type == 0"
  8859. >
  8860. <img
  8861. :src="commentDetail.works"
  8862. alt=""
  8863. @click="previewImg(commentDetail.works)"
  8864. />
  8865. </div>
  8866. <div
  8867. class="worksAnswer"
  8868. v-if="commentDetail.works && commentDetail.type == 3"
  8869. >
  8870. <video-player
  8871. class="video-player vjs-custom-skin"
  8872. :playsinline="true"
  8873. :options="videoDetail"
  8874. @play="onPlayerPlay($event)"
  8875. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8876. ></video-player>
  8877. </div>
  8878. <div
  8879. class="worksAnswer codeFileBox"
  8880. v-if="commentDetail.works && commentDetail.type == 12"
  8881. @click="downloadFile(commentDetail.works)"
  8882. >
  8883. <img src="../assets/icon/codeFile.png" />
  8884. <div>点击下载文件</div>
  8885. </div>
  8886. <div
  8887. class="worksAnswer codeFileBox"
  8888. v-if="commentDetail.works && commentDetail.type == 15"
  8889. @click="
  8890. openCocoPi(
  8891. 57,
  8892. commentIndexJson.toolIndex,
  8893. commentDetail.userid,
  8894. commentDetail.sName
  8895. )
  8896. "
  8897. >
  8898. <img src="../assets/icon/codeFile.png" />
  8899. <div>点击打开CocoPi</div>
  8900. </div>
  8901. <div
  8902. class="worksAnswer"
  8903. v-if="commentDetail.works && commentDetail.type == 13"
  8904. >
  8905. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8906. </div>
  8907. <div class="scoreBox">
  8908. <span class="t">请输入分数</span>
  8909. <el-input-number
  8910. :disabled="courseDetail.userid != userid"
  8911. v-model="wScore"
  8912. :controls="false"
  8913. :min="0"
  8914. :max="100"
  8915. ></el-input-number>
  8916. </div>
  8917. <div class="scoreDetailBox">
  8918. <span class="t">评分评论</span>
  8919. <el-input
  8920. type="textarea"
  8921. :rows="5"
  8922. :disabled="courseDetail.userid != userid"
  8923. resize="none"
  8924. v-model="scoreDetail"
  8925. placeholder="请输入对学生的评价"
  8926. >
  8927. </el-input>
  8928. </div>
  8929. </div>
  8930. <span slot="footer" class="dialog-footer">
  8931. <el-button
  8932. @click="
  8933. (dialogVisibleScore = false),
  8934. (commentIndexJson = {}),
  8935. videoDetail.sources && videoDetail.sources[0]
  8936. ? (videoDetail.sources[0].src = '')
  8937. : ''
  8938. "
  8939. >取 消</el-button
  8940. >
  8941. <el-button
  8942. type="primary"
  8943. v-if="courseDetail.userid == userid"
  8944. @click="scoreWork(commentDetail.wid)"
  8945. >确 定
  8946. </el-button>
  8947. </span>
  8948. </el-dialog>
  8949. <el-dialog
  8950. title="连词成句"
  8951. :visible.sync="dialogVisibleSentence"
  8952. :append-to-body="true"
  8953. width="1000px"
  8954. :before-close="handleClose"
  8955. class="dialog_diy dialog_diy3"
  8956. >
  8957. <div>
  8958. <div class="sentenBox">
  8959. <div
  8960. v-for="(st, stIndex) in sentenceList"
  8961. :key="stIndex"
  8962. style="padding-bottom: 20px"
  8963. >
  8964. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8965. <div class="cardList" v-if="st.chooseSenList">
  8966. <div class="cardBox">
  8967. <div
  8968. v-for="(r, rIndex) in st.chooseSenList"
  8969. :key="rIndex"
  8970. @click="returnCard(r, stIndex, rIndex)"
  8971. >
  8972. <el-tooltip
  8973. class="item"
  8974. effect="light"
  8975. :content="r"
  8976. placement="top"
  8977. v-if="r != '' && r != undefined"
  8978. >
  8979. <div
  8980. :class="{
  8981. isCard: r,
  8982. isChooseCard: r == '' || r == undefined,
  8983. }"
  8984. >
  8985. <div>{{ r }}</div>
  8986. </div>
  8987. </el-tooltip>
  8988. <div
  8989. :class="{
  8990. isCard: r,
  8991. isChooseCard: r == '' || r == undefined,
  8992. }"
  8993. v-else
  8994. >
  8995. <div>{{ r }}</div>
  8996. </div>
  8997. </div>
  8998. </div>
  8999. </div>
  9000. <div class="cardList" v-if="st.addChangeSen">
  9001. <div class="cardBox">
  9002. <div
  9003. v-for="(s, sIndex) in st.addChangeSen"
  9004. :key="sIndex"
  9005. @click="setRightAnswer(s, stIndex, sIndex)"
  9006. >
  9007. <el-tooltip
  9008. class="item"
  9009. effect="light"
  9010. :content="s"
  9011. placement="top"
  9012. v-if="s != '' && s != undefined"
  9013. >
  9014. <div
  9015. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9016. >
  9017. <div>{{ s }}</div>
  9018. </div>
  9019. </el-tooltip>
  9020. <div
  9021. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9022. v-else
  9023. >
  9024. <div>{{ s }}</div>
  9025. </div>
  9026. </div>
  9027. </div>
  9028. </div>
  9029. </div>
  9030. </div>
  9031. </div>
  9032. <span slot="footer" class="dialog-footer">
  9033. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  9034. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  9035. </span>
  9036. </el-dialog>
  9037. <el-dialog
  9038. title="连词成句"
  9039. :visible.sync="dialogVisibleSentenceTeacher"
  9040. :append-to-body="true"
  9041. width="1000px"
  9042. :before-close="handleClose"
  9043. class="dialog_diy dialog_diy3"
  9044. >
  9045. <div>
  9046. <div class="w_name">
  9047. 学生姓名:<span>{{ sStudent.student }}</span>
  9048. </div>
  9049. <div class="sentenBox">
  9050. <div
  9051. v-for="(st, stIndex) in sentenceList"
  9052. :key="stIndex"
  9053. style="padding-bottom: 20px"
  9054. >
  9055. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  9056. <div class="cardList" v-if="st.chooseSenList">
  9057. <div class="cardBox">
  9058. <div
  9059. v-for="(r, rIndex) in st.chooseSenList"
  9060. :key="rIndex"
  9061. @click="returnCard(r, stIndex, rIndex)"
  9062. >
  9063. <el-tooltip
  9064. class="item"
  9065. effect="light"
  9066. :content="r"
  9067. placement="top"
  9068. v-if="r != '' && r != undefined"
  9069. >
  9070. <div
  9071. :class="{
  9072. isCard: r,
  9073. isChooseCard: r == '' || r == undefined,
  9074. }"
  9075. >
  9076. <div>{{ r }}</div>
  9077. </div>
  9078. </el-tooltip>
  9079. <div
  9080. :class="{
  9081. isCard: r,
  9082. isChooseCard: r == '' || r == undefined,
  9083. }"
  9084. v-else
  9085. >
  9086. <div>{{ r }}</div>
  9087. </div>
  9088. </div>
  9089. </div>
  9090. </div>
  9091. <div class="cardList" v-if="st.addChangeSen">
  9092. <div class="cardBox">
  9093. <div
  9094. v-for="(s, sIndex) in st.addChangeSen"
  9095. :key="sIndex"
  9096. @click="setRightAnswer(s, stIndex, sIndex)"
  9097. >
  9098. <el-tooltip
  9099. class="item"
  9100. effect="light"
  9101. :content="s"
  9102. placement="top"
  9103. v-if="s != '' && s != undefined"
  9104. >
  9105. <div
  9106. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9107. >
  9108. <div>{{ s }}</div>
  9109. </div>
  9110. </el-tooltip>
  9111. <div
  9112. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9113. v-else
  9114. >
  9115. <div>{{ s }}</div>
  9116. </div>
  9117. </div>
  9118. </div>
  9119. </div>
  9120. </div>
  9121. </div>
  9122. </div>
  9123. <span slot="footer" class="dialog-footer">
  9124. <el-button @click="dialogVisibleSentenceTeacher = false"
  9125. >取 消</el-button
  9126. >
  9127. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  9128. </span>
  9129. </el-dialog>
  9130. <el-dialog
  9131. title="连词成句"
  9132. :visible.sync="dialogVisibleSentence1"
  9133. :append-to-body="true"
  9134. width="1000px"
  9135. :before-close="handleClose"
  9136. class="dialog_diy dialog_diy3"
  9137. >
  9138. <div>
  9139. <div class="sentenBox">
  9140. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9141. {{ sentenceList1.stuName }}的作业
  9142. </div>
  9143. <div
  9144. v-for="(st, stIndex) in sentenceList1"
  9145. :key="stIndex"
  9146. style="padding-bottom: 20px"
  9147. >
  9148. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9149. 第{{ stIndex + 1 }}题
  9150. </div>
  9151. <div class="isWrong">
  9152. <div class="cardList1" v-if="st.chooseSenList">
  9153. <div class="cardBox">
  9154. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  9155. <el-tooltip
  9156. class="item"
  9157. effect="light"
  9158. :content="s"
  9159. placement="top"
  9160. >
  9161. <div class="isCard">
  9162. <div>{{ s }}</div>
  9163. </div>
  9164. </el-tooltip>
  9165. </div>
  9166. </div>
  9167. <div class="cardAnswerBox">
  9168. 组成句子:{{ st.chooseSenList.join(" ") }}
  9169. </div>
  9170. </div>
  9171. <div v-if="tType == 2" class="isTj">
  9172. <div class="isTjImg">
  9173. <img src="../assets/icon/conSentences/right.png" alt="" />
  9174. </div>
  9175. <div>已提交</div>
  9176. </div>
  9177. <div
  9178. class="answerRight isTj"
  9179. v-if="
  9180. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  9181. (tType == 1 || tType == 4)
  9182. "
  9183. >
  9184. <div class="isTjImg">
  9185. <img src="../assets/icon/conSentences/right.png" alt="" />
  9186. </div>
  9187. <div>回答正确</div>
  9188. </div>
  9189. <div
  9190. class="answerRight isTj"
  9191. v-if="
  9192. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9193. (tType == 1 || tType == 4)
  9194. "
  9195. >
  9196. <div class="isTjImg">
  9197. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  9198. </div>
  9199. <div>回答错误</div>
  9200. </div>
  9201. </div>
  9202. <div
  9203. v-if="
  9204. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9205. (tType == 1 || tType == 4)
  9206. "
  9207. >
  9208. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  9209. <div
  9210. class="cardList"
  9211. v-if="st.rightAnswer"
  9212. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  9213. >
  9214. <div class="cardBox">
  9215. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  9216. <el-tooltip
  9217. class="item"
  9218. effect="light"
  9219. :content="r"
  9220. placement="top"
  9221. >
  9222. <div class="isCard1">
  9223. <div>{{ r }}</div>
  9224. </div>
  9225. </el-tooltip>
  9226. </div>
  9227. </div>
  9228. <div class="cardAnswerBox">
  9229. 组成句子:{{ st.rightAnswer.join(" ") }}
  9230. </div>
  9231. </div>
  9232. </div>
  9233. </div>
  9234. </div>
  9235. </div>
  9236. <span slot="footer" class="dialog-footer">
  9237. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  9238. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  9239. >确 定</el-button
  9240. >
  9241. </span>
  9242. </el-dialog>
  9243. <el-dialog
  9244. title="教师提交作业"
  9245. :visible.sync="dialogVisibleWorks"
  9246. :append-to-body="true"
  9247. width="500px"
  9248. :before-close="handleClose"
  9249. class="dialog_change"
  9250. >
  9251. <div class="marginT">
  9252. <div class="w_name">
  9253. 学生姓名:<span>{{ sStudent.student }}</span>
  9254. </div>
  9255. <div>上传文件</div>
  9256. <div
  9257. class="chapter_add"
  9258. @click="addImg($event)"
  9259. v-if="studyJuri[0].cover.length == 0"
  9260. >
  9261. <div class="up_photo">
  9262. <img src="../assets/uploadImg2.png" alt />
  9263. </div>
  9264. <!-- <input
  9265. type="file"
  9266. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9267. style="display: none"
  9268. @change="beforeUpload1($event, 1)"
  9269. /> -->
  9270. <input
  9271. type="file"
  9272. accept="*"
  9273. style="display: none"
  9274. @change="beforeUpload1($event, 1)"
  9275. />
  9276. </div>
  9277. <!-- capture="camera" -->
  9278. <div
  9279. class="chapter_add"
  9280. style="
  9281. display: flex;
  9282. width: 100%;
  9283. flex-direction: row;
  9284. flex-wrap: wrap;
  9285. justify-content: flex-start;
  9286. padding: 15px 0;
  9287. "
  9288. v-if="studyJuri[0].cover.length > 0"
  9289. >
  9290. <div class="upCover">
  9291. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9292. <img :src="word" alt v-else-if="fileType == 1" />
  9293. <img :src="video" alt v-else-if="fileType == 2" />
  9294. <img :src="word2" alt v-else-if="fileType == 3" />
  9295. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9296. <div class="deleteWord" @click="clean(1)">
  9297. <img src="../assets/icon/deleteWorks.png" alt />
  9298. </div>
  9299. </div>
  9300. </div>
  9301. </div>
  9302. <div
  9303. class="upload_send"
  9304. @click="addCourseWorksTeacher(taskCount)"
  9305. v-if="!proVisible"
  9306. >
  9307. 提交
  9308. </div>
  9309. </el-dialog>
  9310. <ImgDraw
  9311. :drawShow="drawShow"
  9312. @closeDraw="closeDraw"
  9313. @addImgDraw="addImgDraw"
  9314. :bg="bg"
  9315. ></ImgDraw>
  9316. <el-dialog
  9317. title="表格"
  9318. :visible.sync="dialogVisibleTable"
  9319. :append-to-body="true"
  9320. width="95%"
  9321. :before-close="handleClose"
  9322. class="dialog_diy"
  9323. >
  9324. <el-form>
  9325. <div
  9326. style="
  9327. display: flex;
  9328. align-items: center;
  9329. justify-content: space-between;
  9330. "
  9331. >
  9332. <span>表格内容</span>
  9333. <el-button type="primary" size="small" @click="returnTableText"
  9334. >还原模板</el-button
  9335. >
  9336. </div>
  9337. <Table
  9338. v-model="tableJson.text"
  9339. @change="change"
  9340. v-if="dialogVisibleTable"
  9341. ></Table>
  9342. </el-form>
  9343. <span slot="footer" class="dialog-footer">
  9344. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  9345. <el-button type="primary" @click="addTableWorks">确定</el-button>
  9346. </span>
  9347. </el-dialog>
  9348. <el-dialog
  9349. title="表格"
  9350. :visible.sync="dialogVisibleTableTeacher"
  9351. :append-to-body="true"
  9352. width="95%"
  9353. :before-close="handleClose"
  9354. class="dialog_diy"
  9355. >
  9356. <el-form>
  9357. <div class="w_name">
  9358. 学生姓名:<span>{{ sStudent.student }}</span>
  9359. </div>
  9360. <div>表格内容</div>
  9361. <Table
  9362. v-model="tableJson.text"
  9363. @change="change"
  9364. v-if="dialogVisibleTableTeacher"
  9365. ></Table>
  9366. </el-form>
  9367. <span slot="footer" class="dialog-footer">
  9368. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  9369. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  9370. </span>
  9371. </el-dialog>
  9372. <el-dialog
  9373. title="文档"
  9374. :visible.sync="dialogVisibleWord"
  9375. :append-to-body="true"
  9376. width="95%"
  9377. :before-close="handleClose"
  9378. class="dialog_diy"
  9379. >
  9380. <el-form>
  9381. <div
  9382. style="
  9383. display: flex;
  9384. align-items: center;
  9385. justify-content: space-between;
  9386. "
  9387. >
  9388. <span>文档内容</span>
  9389. <el-button type="primary" size="small" @click="returnWordText"
  9390. >还原模板</el-button
  9391. >
  9392. </div>
  9393. <editor-bar
  9394. v-model="wordJson.text"
  9395. v-if="dialogVisibleWord"
  9396. ></editor-bar>
  9397. </el-form>
  9398. <span slot="footer" class="dialog-footer">
  9399. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  9400. <el-button type="primary" @click="addWordWorks">确定</el-button>
  9401. </span>
  9402. </el-dialog>
  9403. <el-dialog
  9404. title="文档"
  9405. :visible.sync="dialogVisibleWordTeacher"
  9406. :append-to-body="true"
  9407. width="95%"
  9408. :before-close="handleClose"
  9409. class="dialog_diy"
  9410. >
  9411. <el-form>
  9412. <div class="w_name">
  9413. 学生姓名:<span>{{ sStudent.student }}</span>
  9414. </div>
  9415. <div>文档内容</div>
  9416. <editor-bar
  9417. v-model="wordJson.text"
  9418. v-if="dialogVisibleWordTeacher"
  9419. ></editor-bar>
  9420. </el-form>
  9421. <span slot="footer" class="dialog-footer">
  9422. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  9423. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  9424. </span>
  9425. </el-dialog>
  9426. <el-dialog
  9427. title="表格"
  9428. :visible.sync="dialogVisibleTable2"
  9429. :append-to-body="true"
  9430. width="95%"
  9431. :before-close="handleClose"
  9432. class="dialog_diy"
  9433. >
  9434. <el-form>
  9435. <div class="cont" v-html="tableJson.text"></div>
  9436. </el-form>
  9437. <span slot="footer" class="dialog-footer">
  9438. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  9439. </span>
  9440. </el-dialog>
  9441. <el-dialog
  9442. title="文档"
  9443. :visible.sync="dialogVisibleTable3"
  9444. :append-to-body="true"
  9445. width="95%"
  9446. :before-close="handleClose"
  9447. class="dialog_diy"
  9448. >
  9449. <el-form>
  9450. <div class="cont" v-html="tableJson.text"></div>
  9451. </el-form>
  9452. <span slot="footer" class="dialog-footer">
  9453. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  9454. </span>
  9455. </el-dialog>
  9456. <el-dialog
  9457. title="分组设置"
  9458. :visible.sync="dialogVisibleGroup"
  9459. :append-to-body="true"
  9460. width="95%"
  9461. :before-close="handleClose"
  9462. class="dialog_diy"
  9463. >
  9464. <div v-if="dialogVisibleGroup">
  9465. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  9466. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  9467. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  9468. </div>
  9469. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  9470. @click="lockChair">
  9471. 锁定位置
  9472. </div>
  9473. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  9474. 解锁位置
  9475. </div> -->
  9476. <div class="group_switch">
  9477. <span>开放选座</span>
  9478. <el-switch
  9479. v-model="islock"
  9480. active-text=""
  9481. class="switchCss"
  9482. @change="lockChair"
  9483. ></el-switch>
  9484. </div>
  9485. <div
  9486. type="primary"
  9487. @click="updateGroup"
  9488. class="returnBtn"
  9489. style="background-color: #225bc7"
  9490. >
  9491. 分组设置
  9492. </div>
  9493. </div>
  9494. <div>
  9495. <div
  9496. class="g_d_box"
  9497. v-if="groupJson.group && groupStudent[toolindex]"
  9498. >
  9499. <div
  9500. class="g_d_group"
  9501. v-for="(g, gindex) in groupJson.group"
  9502. :key="gindex"
  9503. >
  9504. <div class="g_d_group_chair">
  9505. <div v-if="groupJson.number > 1">
  9506. <span
  9507. :class="{
  9508. isChair:
  9509. groupStudent[toolindex][gindex] &&
  9510. groupStudent[toolindex][gindex][0],
  9511. updateChair:
  9512. courseDetail.userid == userid &&
  9513. groupStudent[toolindex][gindex] &&
  9514. groupStudent[toolindex][gindex][0] &&
  9515. groupJson.islock == 2,
  9516. }"
  9517. ><span
  9518. class="updateChairBtn"
  9519. @click="
  9520. updateGroupChair(
  9521. groupStudent[toolindex][gindex] &&
  9522. groupStudent[toolindex][gindex][0]
  9523. )
  9524. "
  9525. >修改</span
  9526. ></span
  9527. ><span>{{
  9528. groupStudent[toolindex][gindex] &&
  9529. groupStudent[toolindex][gindex][0]
  9530. ? groupStudent[toolindex][gindex] &&
  9531. groupStudent[toolindex][gindex][0].name
  9532. : "空位置"
  9533. }}</span>
  9534. </div>
  9535. <div v-if="groupJson.number > 4">
  9536. <span
  9537. :class="{
  9538. isChair:
  9539. groupStudent[toolindex][gindex] &&
  9540. groupStudent[toolindex][gindex][4],
  9541. updateChair:
  9542. courseDetail.userid == userid &&
  9543. groupStudent[toolindex][gindex] &&
  9544. groupStudent[toolindex][gindex][4] &&
  9545. groupJson.islock == 2,
  9546. }"
  9547. ><span
  9548. class="updateChairBtn"
  9549. @click="
  9550. updateGroupChair(
  9551. groupStudent[toolindex][gindex] &&
  9552. groupStudent[toolindex][gindex][4]
  9553. )
  9554. "
  9555. >修改</span
  9556. ></span
  9557. ><span>{{
  9558. groupStudent[toolindex][gindex] &&
  9559. groupStudent[toolindex][gindex][4]
  9560. ? groupStudent[toolindex][gindex] &&
  9561. groupStudent[toolindex][gindex][4].name
  9562. : "空位置"
  9563. }}</span>
  9564. </div>
  9565. <div v-if="groupJson.number > 8">
  9566. <span
  9567. :class="{
  9568. isChair:
  9569. groupStudent[toolindex][gindex] &&
  9570. groupStudent[toolindex][gindex][8],
  9571. updateChair:
  9572. courseDetail.userid == userid &&
  9573. groupStudent[toolindex][gindex] &&
  9574. groupStudent[toolindex][gindex][8] &&
  9575. groupJson.islock == 2,
  9576. }"
  9577. ><span
  9578. class="updateChairBtn"
  9579. @click="
  9580. updateGroupChair(
  9581. groupStudent[toolindex][gindex] &&
  9582. groupStudent[toolindex][gindex][8]
  9583. )
  9584. "
  9585. >修改</span
  9586. ></span
  9587. ><span>{{
  9588. groupStudent[toolindex][gindex] &&
  9589. groupStudent[toolindex][gindex][8]
  9590. ? groupStudent[toolindex][gindex] &&
  9591. groupStudent[toolindex][gindex][8].name
  9592. : "空位置"
  9593. }}</span>
  9594. </div>
  9595. </div>
  9596. <div class="g_d_group_tableBox">
  9597. <div class="g_d_group_chair2">
  9598. <div v-if="groupJson.number > 2">
  9599. <span
  9600. :class="{
  9601. isChair:
  9602. groupStudent[toolindex][gindex] &&
  9603. groupStudent[toolindex][gindex][2],
  9604. updateChair:
  9605. courseDetail.userid == userid &&
  9606. groupStudent[toolindex][gindex] &&
  9607. groupStudent[toolindex][gindex][2] &&
  9608. groupJson.islock == 2,
  9609. }"
  9610. ><span
  9611. class="updateChairBtn"
  9612. @click="
  9613. updateGroupChair(
  9614. groupStudent[toolindex][gindex] &&
  9615. groupStudent[toolindex][gindex][2]
  9616. )
  9617. "
  9618. >修改</span
  9619. ></span
  9620. ><span>{{
  9621. groupStudent[toolindex][gindex] &&
  9622. groupStudent[toolindex][gindex][2]
  9623. ? groupStudent[toolindex][gindex] &&
  9624. groupStudent[toolindex][gindex][2].name
  9625. : "空位置"
  9626. }}</span>
  9627. </div>
  9628. <div v-if="groupJson.number > 6">
  9629. <span
  9630. :class="{
  9631. isChair:
  9632. groupStudent[toolindex][gindex] &&
  9633. groupStudent[toolindex][gindex][6],
  9634. updateChair:
  9635. courseDetail.userid == userid &&
  9636. groupStudent[toolindex][gindex] &&
  9637. groupStudent[toolindex][gindex][6] &&
  9638. groupJson.islock == 2,
  9639. }"
  9640. ><span
  9641. class="updateChairBtn"
  9642. @click="
  9643. updateGroupChair(
  9644. groupStudent[toolindex][gindex] &&
  9645. groupStudent[toolindex][gindex][6]
  9646. )
  9647. "
  9648. >修改</span
  9649. ></span
  9650. ><span>{{
  9651. groupStudent[toolindex][gindex] &&
  9652. groupStudent[toolindex][gindex][6]
  9653. ? groupStudent[toolindex][gindex] &&
  9654. groupStudent[toolindex][gindex][6].name
  9655. : "空位置"
  9656. }}</span>
  9657. </div>
  9658. </div>
  9659. <div class="g_d_group_table">
  9660. <div>
  9661. {{ g.name }}
  9662. </div>
  9663. <div>
  9664. <div
  9665. v-if="
  9666. courseDetail.userid == userid && groupJson.islock == 2
  9667. "
  9668. @click="deleteGroupChair(gindex)"
  9669. >
  9670. 移除组员
  9671. </div>
  9672. <div
  9673. @click="selectGroup(gindex)"
  9674. v-else-if="
  9675. groupStudentUid[toolindex] &&
  9676. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  9677. "
  9678. >
  9679. 加入分组
  9680. </div>
  9681. <div
  9682. @click="
  9683. exitGroup(
  9684. groupStudent[toolindex][gindex] &&
  9685. groupStudent[toolindex][gindex][
  9686. groupStudentUid[toolindex][gindex].indexOf(userid)
  9687. ].id
  9688. )
  9689. "
  9690. v-else-if="
  9691. groupStudentUid[toolindex] &&
  9692. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  9693. "
  9694. >
  9695. 退出分组
  9696. </div>
  9697. </div>
  9698. </div>
  9699. <div class="g_d_group_chair2">
  9700. <div v-if="groupJson.number > 3">
  9701. <span
  9702. :class="{
  9703. isChair:
  9704. groupStudent[toolindex][gindex] &&
  9705. groupStudent[toolindex][gindex][3],
  9706. updateChair:
  9707. courseDetail.userid == userid &&
  9708. groupStudent[toolindex][gindex] &&
  9709. groupStudent[toolindex][gindex][3] &&
  9710. groupJson.islock == 2,
  9711. }"
  9712. ><span
  9713. class="updateChairBtn"
  9714. @click="
  9715. updateGroupChair(
  9716. groupStudent[toolindex][gindex] &&
  9717. groupStudent[toolindex][gindex][3]
  9718. )
  9719. "
  9720. >修改</span
  9721. ></span
  9722. ><span>{{
  9723. groupStudent[toolindex][gindex] &&
  9724. groupStudent[toolindex][gindex][3]
  9725. ? groupStudent[toolindex][gindex] &&
  9726. groupStudent[toolindex][gindex][3].name
  9727. : "空位置"
  9728. }}</span>
  9729. </div>
  9730. <div v-if="groupJson.number > 7">
  9731. <span
  9732. :class="{
  9733. isChair:
  9734. groupStudent[toolindex][gindex] &&
  9735. groupStudent[toolindex][gindex][7],
  9736. updateChair:
  9737. courseDetail.userid == userid &&
  9738. groupStudent[toolindex][gindex] &&
  9739. groupStudent[toolindex][gindex][7] &&
  9740. groupJson.islock == 2,
  9741. }"
  9742. ><span
  9743. class="updateChairBtn"
  9744. @click="
  9745. updateGroupChair(
  9746. groupStudent[toolindex][gindex] &&
  9747. groupStudent[toolindex][gindex][7]
  9748. )
  9749. "
  9750. >修改</span
  9751. ></span
  9752. ><span>{{
  9753. groupStudent[toolindex][gindex] &&
  9754. groupStudent[toolindex][gindex][7]
  9755. ? groupStudent[toolindex][gindex] &&
  9756. groupStudent[toolindex][gindex][7].name
  9757. : "空位置"
  9758. }}</span>
  9759. </div>
  9760. </div>
  9761. </div>
  9762. <div class="g_d_group_chair">
  9763. <div v-if="groupJson.number > 1">
  9764. <span
  9765. :class="{
  9766. isChair:
  9767. groupStudent[toolindex][gindex] &&
  9768. groupStudent[toolindex][gindex][1],
  9769. updateChair:
  9770. courseDetail.userid == userid &&
  9771. groupStudent[toolindex][gindex] &&
  9772. groupStudent[toolindex][gindex][1] &&
  9773. groupJson.islock == 2,
  9774. }"
  9775. ><span
  9776. class="updateChairBtn"
  9777. @click="
  9778. updateGroupChair(
  9779. groupStudent[toolindex][gindex] &&
  9780. groupStudent[toolindex][gindex][1]
  9781. )
  9782. "
  9783. >修改</span
  9784. ></span
  9785. ><span>{{
  9786. groupStudent[toolindex][gindex] &&
  9787. groupStudent[toolindex][gindex][1]
  9788. ? groupStudent[toolindex][gindex] &&
  9789. groupStudent[toolindex][gindex][1].name
  9790. : "空位置"
  9791. }}</span>
  9792. </div>
  9793. <div v-if="groupJson.number > 5">
  9794. <span
  9795. :class="{
  9796. isChair:
  9797. groupStudent[toolindex][gindex] &&
  9798. groupStudent[toolindex][gindex][5],
  9799. updateChair:
  9800. courseDetail.userid == userid &&
  9801. groupStudent[toolindex][gindex] &&
  9802. groupStudent[toolindex][gindex][5] &&
  9803. groupJson.islock == 2,
  9804. }"
  9805. ><span
  9806. class="updateChairBtn"
  9807. @click="
  9808. updateGroupChair(
  9809. groupStudent[toolindex][gindex] &&
  9810. groupStudent[toolindex][gindex][5]
  9811. )
  9812. "
  9813. >修改</span
  9814. ></span
  9815. ><span>{{
  9816. groupStudent[toolindex][gindex] &&
  9817. groupStudent[toolindex][gindex][5]
  9818. ? groupStudent[toolindex][gindex] &&
  9819. groupStudent[toolindex][gindex][5].name
  9820. : "空位置"
  9821. }}</span>
  9822. </div>
  9823. <div v-if="groupJson.number > 9">
  9824. <span
  9825. :class="{
  9826. isChair:
  9827. groupStudent[toolindex][gindex] &&
  9828. groupStudent[toolindex][gindex][9],
  9829. updateChair:
  9830. courseDetail.userid == userid &&
  9831. groupStudent[toolindex][gindex] &&
  9832. groupStudent[toolindex][gindex][9] &&
  9833. groupJson.islock == 2,
  9834. }"
  9835. ><span
  9836. class="updateChairBtn"
  9837. @click="
  9838. updateGroupChair(
  9839. groupStudent[toolindex][gindex] &&
  9840. groupStudent[toolindex][gindex][9]
  9841. )
  9842. "
  9843. >修改</span
  9844. ></span
  9845. ><span>{{
  9846. groupStudent[toolindex][gindex] &&
  9847. groupStudent[toolindex][gindex][9]
  9848. ? groupStudent[toolindex][gindex] &&
  9849. groupStudent[toolindex][gindex][9].name
  9850. : "空位置"
  9851. }}</span>
  9852. </div>
  9853. </div>
  9854. </div>
  9855. </div>
  9856. </div>
  9857. </div>
  9858. <span slot="footer" class="dialog-footer">
  9859. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  9860. </span>
  9861. </el-dialog>
  9862. <el-dialog
  9863. title="分组设置"
  9864. :visible.sync="dialogVisibleGroup2"
  9865. :append-to-body="true"
  9866. width="650px"
  9867. :before-close="handleClose"
  9868. class="dialog_diy"
  9869. >
  9870. <div class="groupBox">
  9871. <div v-if="groupJson2.group" class="groupContent">
  9872. <div class="groupTitle">请设置小组数量</div>
  9873. <div
  9874. v-for="(item, index) in groupJson2.group"
  9875. :key="index"
  9876. class="groupName"
  9877. >
  9878. <span class="groupn">组{{ index + 1 }}名称:</span>
  9879. <el-input
  9880. v-model="item.name"
  9881. placeholder="请输入名称..."
  9882. style="width: 250px"
  9883. ></el-input>
  9884. <!-- <div class="groupBtn">
  9885. <el-button type="primary" size="small" @click="addGroup(index)">
  9886. 添加</el-button>
  9887. <el-button type="primary" size="small" @click="deleteGroup(index)"
  9888. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  9889. </div> -->
  9890. </div>
  9891. </div>
  9892. <div class="groupContent">
  9893. <div class="groupTitle">请设置每组人数数量</div>
  9894. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  9895. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  9896. <el-input-number
  9897. v-model="groupJson2.number"
  9898. :controls="false"
  9899. :min="2"
  9900. :max="10"
  9901. placeholder="2-10人以内"
  9902. ></el-input-number>
  9903. </div>
  9904. </div>
  9905. <span slot="footer" class="dialog-footer">
  9906. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  9907. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  9908. </span>
  9909. </el-dialog>
  9910. <el-dialog
  9911. title="作业提交"
  9912. :visible.sync="dialogVisibleGroupWork"
  9913. :append-to-body="true"
  9914. width="500px"
  9915. :before-close="handleClose"
  9916. class="dialog_change"
  9917. >
  9918. <div class="marginT">
  9919. <div>上传文件</div>
  9920. <div
  9921. class="chapter_add"
  9922. @click="addImg($event)"
  9923. v-if="studyJuri[0].cover.length == 0"
  9924. >
  9925. <div class="up_photo">
  9926. <img src="../assets/icon/uploadImg.png" alt />
  9927. </div>
  9928. <!-- <input
  9929. type="file"
  9930. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9931. style="display: none"
  9932. @change="beforeUpload1($event, 1)"
  9933. /> -->
  9934. <input
  9935. type="file"
  9936. accept="*"
  9937. style="display: none"
  9938. @change="beforeUpload1($event, 1)"
  9939. />
  9940. </div>
  9941. <!-- capture="camera" -->
  9942. <div
  9943. class="chapter_add"
  9944. style="
  9945. display: flex;
  9946. width: 100%;
  9947. flex-direction: row;
  9948. flex-wrap: wrap;
  9949. justify-content: flex-start;
  9950. padding: 15px 0;
  9951. "
  9952. v-if="studyJuri[0].cover.length > 0"
  9953. >
  9954. <div class="upCover">
  9955. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9956. <img :src="word" alt v-else-if="fileType == 1" />
  9957. <img :src="video" alt v-else-if="fileType == 2" />
  9958. <img :src="word2" alt v-else-if="fileType == 3" />
  9959. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9960. <div class="deleteWord" @click="clean(1)">
  9961. <img src="../assets/icon/deleteWorks.png" alt />
  9962. </div>
  9963. </div>
  9964. </div>
  9965. </div>
  9966. <div
  9967. class="upload_send"
  9968. @click="addCourseWorks2(taskCount)"
  9969. v-if="!proVisible"
  9970. >
  9971. 提交
  9972. </div>
  9973. </el-dialog>
  9974. <el-dialog
  9975. title="修改分组"
  9976. :visible.sync="dialogVisibleUpdateGroup"
  9977. :append-to-body="true"
  9978. width="350px"
  9979. :before-close="handleClose"
  9980. class="dialog_diy"
  9981. >
  9982. <div>
  9983. <h2>
  9984. {{ this.updateGroupUser.name }}
  9985. </h2>
  9986. <div style="color: rgb(171 171 171); margin-top: 10px">
  9987. 请选择要进入的分组
  9988. </div>
  9989. <el-radio-group v-model="checkChair">
  9990. <el-radio
  9991. style="display: block; margin-top: 20px"
  9992. v-for="(item, index) in updateGroupArray"
  9993. :label="item.label"
  9994. :key="index"
  9995. >{{ item.name }}</el-radio
  9996. >
  9997. </el-radio-group>
  9998. </div>
  9999. <span slot="footer" class="dialog-footer">
  10000. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  10001. <el-button type="primary" @click="updateChair">确定</el-button>
  10002. </span>
  10003. </el-dialog>
  10004. <el-dialog
  10005. title="移除组员"
  10006. :visible.sync="dialogVisibleDeleteGroup"
  10007. :append-to-body="true"
  10008. width="350px"
  10009. :before-close="handleClose"
  10010. class="dialog_diy"
  10011. >
  10012. <div>
  10013. <h2>
  10014. {{ this.deleteGroupArray.name }}
  10015. </h2>
  10016. <div style="color: rgb(171 171 171); margin-top: 10px">
  10017. 请选择要删除的组员
  10018. </div>
  10019. <el-checkbox-group v-model="checkDeleteGroup">
  10020. <el-checkbox
  10021. style="display: block; margin-top: 20px"
  10022. v-for="(item, index) in deleteGroupUser"
  10023. :label="item.userid"
  10024. :key="index"
  10025. >{{ item.name }}</el-checkbox
  10026. >
  10027. </el-checkbox-group>
  10028. </div>
  10029. <span slot="footer" class="dialog-footer">
  10030. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  10031. <el-button type="primary" @click="deleteChair">确定</el-button>
  10032. </span>
  10033. </el-dialog>
  10034. <el-dialog
  10035. title="批量上传"
  10036. :visible.sync="dialogVisiblePl"
  10037. :append-to-body="true"
  10038. width="700px"
  10039. :before-close="handleClose"
  10040. class="dialog_change"
  10041. >
  10042. <div class="marginT">
  10043. <div class="plworkBox">
  10044. <div
  10045. class="chapter_add"
  10046. style="
  10047. display: flex;
  10048. width: 150px;
  10049. flex-direction: row;
  10050. flex-wrap: wrap;
  10051. justify-content: flex-start;
  10052. margin: 0 10px 10px 0;
  10053. "
  10054. v-for="(item, index) in plworkFile"
  10055. :key="index"
  10056. >
  10057. <div class="upCover2">
  10058. <img
  10059. :src="item.url"
  10060. alt
  10061. v-if="item.fileType == 1"
  10062. @click="previewImg(item.url)"
  10063. />
  10064. <img :src="word" alt v-else-if="item.fileType == 4" />
  10065. <img :src="video" alt v-else />
  10066. <!-- <span class="picName">{{ item.name }}</span> -->
  10067. <!-- <el-input
  10068. v-model="item.username"
  10069. placeholder="请输入学生名字"
  10070. style="margin-top: 10px"
  10071. ></el-input> -->
  10072. <div
  10073. class="pl_select_box"
  10074. @click="
  10075. getUpdateMore(true, checkUpload(), item.username, index)
  10076. "
  10077. >
  10078. {{ getSName(item.username) }}
  10079. </div>
  10080. <!-- <el-select
  10081. style="margin-top: 10px"
  10082. v-model="item.username"
  10083. filterable
  10084. allow-create
  10085. placeholder="请选择学生"
  10086. >
  10087. <el-option
  10088. v-for="item1 in checkUpload()"
  10089. :key="item1.userid"
  10090. :label="item1.name ? item1.name : item1.username"
  10091. :value="item1.userid"
  10092. >
  10093. </el-option>
  10094. </el-select> -->
  10095. <div class="deleteWord" @click="clean2(index)">
  10096. <img src="../assets/icon/deleteWorks.png" alt />
  10097. </div>
  10098. </div>
  10099. </div>
  10100. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  10101. <div class="up_photo2">
  10102. <img src="../assets/icon/plwork.png" alt />
  10103. <span>点击上传文件</span>
  10104. </div>
  10105. <input
  10106. type="file"
  10107. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10108. multiple="multiple"
  10109. style="display: none"
  10110. @change="beforeUpload3($event, 6)"
  10111. />
  10112. </div>
  10113. </div>
  10114. </div>
  10115. <!-- capture="camera" -->
  10116. <div
  10117. class="upload_send"
  10118. @click="addCourseWorksPl(taskCount)"
  10119. v-if="!proVisible2"
  10120. >
  10121. 提交
  10122. </div>
  10123. </el-dialog>
  10124. <el-dialog
  10125. title="修改名称"
  10126. :visible.sync="dialogVisibleSname"
  10127. width="500px"
  10128. :before-close="handleClose"
  10129. class="dialog_diy"
  10130. center
  10131. >
  10132. <div
  10133. style="
  10134. text-align: center;
  10135. display: flex;
  10136. align-items: center;
  10137. justify-content: center;
  10138. "
  10139. >
  10140. <span class="tian1">名称</span>
  10141. <div
  10142. class="pl_select_box"
  10143. style="margin-left: 10px; width: 200px"
  10144. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  10145. >
  10146. {{ getSName(worksSName) }}
  10147. </div>
  10148. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  10149. placeholder="请选择学生">
  10150. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  10151. :value="item.userid">
  10152. </el-option>
  10153. </el-select> -->
  10154. <!-- <el-input
  10155. v-model="worksSName"
  10156. style="width: 250px; margin: 15px 0px"
  10157. ></el-input> -->
  10158. </div>
  10159. <span slot="footer" class="dialog-footer">
  10160. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  10161. <el-button type="primary" @click="updateName">确 定</el-button>
  10162. </span>
  10163. </el-dialog>
  10164. <interVideo
  10165. :dialogVisibleVideo.sync="dialogVisibleVideo"
  10166. :videoJson="videoJson"
  10167. :userid="userid"
  10168. :id="id"
  10169. :courseType="courseType"
  10170. :taskCount="taskCount"
  10171. :toolindex="toolindex"
  10172. ></interVideo>
  10173. <UpdateMore
  10174. :dialogVisibleMember.sync="dialogVisibleMember"
  10175. :cList="uploadStudentJuri"
  10176. :userid="userid"
  10177. :searchTN="worksSName2"
  10178. @setPlname="setPlname"
  10179. ></UpdateMore>
  10180. <wordCloud
  10181. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  10182. :data="wordCloudData"
  10183. ></wordCloud>
  10184. <el-dialog
  10185. title="挑人"
  10186. :visible.sync="dialogVisiblePickPeople"
  10187. width="650px"
  10188. :before-close="handleClose"
  10189. class="dialog_diy"
  10190. center
  10191. >
  10192. <div class="pick_box">
  10193. <div class="noWorksName" :class="{isSelectName: isPickStudent.indexOf(item.userid) !== -1}" v-for="(item,index) in uploadStudentJuri" :key="index" @click="pickStudent(item)">{{item.name}}</div>
  10194. </div>
  10195. </el-dialog>
  10196. </div>
  10197. </template>
  10198. <script>
  10199. import "../common/aws-sdk-2.235.1.min.js";
  10200. // import pdf from "./components/pdf3";
  10201. import pdf from "./components/vpdf";
  10202. import AskStatic from "./components/askStatic";
  10203. import AskStatic2 from "./components/askStatic2";
  10204. import AnswerData2 from "./components/answerData2";
  10205. import AnswerData from "./components/answerData";
  10206. import EditorBar from "./tools/wangEnduit.vue";
  10207. import Table from "./tools/table.vue";
  10208. import Time from "./tools/time.vue";
  10209. import Mind from "./tools/jsmind.vue";
  10210. import Sunburst from "./tools/sunburst";
  10211. import SeeBoard from "./tools/seeBoard";
  10212. import * as imageConversion from "image-conversion";
  10213. import Audio from "./components/audio.vue";
  10214. import ImgDraw from "./tools/imgDraw/imgDraw";
  10215. import { Empty } from "element-ui";
  10216. import RecordRTC from "recordrtc";
  10217. import interVideo from "./interVideo/index.vue";
  10218. import UpdateMore from "./updateMore/updateMore.vue";
  10219. import wordCloud from "./wordCloud/index.vue";
  10220. export default {
  10221. components: {
  10222. EditorBar,
  10223. Time,
  10224. pdf,
  10225. AskStatic,
  10226. AskStatic2,
  10227. Mind,
  10228. Sunburst,
  10229. SeeBoard,
  10230. AnswerData2,
  10231. AnswerData,
  10232. Audio,
  10233. ImgDraw,
  10234. Table,
  10235. interVideo,
  10236. UpdateMore,
  10237. wordCloud,
  10238. },
  10239. data() {
  10240. return {
  10241. bg: null,
  10242. drawShow: false,
  10243. dialogVisible: false,
  10244. dialogVisiblePl: false,
  10245. commentDialogVisible: false,
  10246. dialogVisibleMember: false,
  10247. dialogVisibleWordCloud: false,
  10248. videoVisible: false,
  10249. isStar: false,
  10250. studentEvalDialogVisible: false,
  10251. studentEvalDialogVisibleTeacher: false,
  10252. dialogVisibleSelect: false,
  10253. dialogVisibleSelectTeacher: false,
  10254. dialogVisibleScore: false,
  10255. dialogVisibleSentence: false,
  10256. dialogVisibleSentenceTeacher: false,
  10257. dialogVisibleSentence1: false,
  10258. dialogVisibleWorks: false,
  10259. dialogVisibleTable: false,
  10260. dialogVisibleTableTeacher: false,
  10261. dialogVisibleWord: false,
  10262. dialogVisibleWordTeacher: false,
  10263. dialogVisibleTable2: false,
  10264. dialogVisibleTable3: false,
  10265. dialogVisibleGroupWork: false,
  10266. dialogVisibleUpdateGroup: false,
  10267. dialogVisibleDeleteGroup: false,
  10268. dialogVisibleSname: false,
  10269. dialogVisibleVideo: false,
  10270. dialogVisiblePickPeople: false,
  10271. worksSName: "",
  10272. classJuri: [],
  10273. uploadStudentJuri: [],
  10274. uploadCid: "",
  10275. snameWid: "",
  10276. sStudent: {},
  10277. sTool: "",
  10278. bzText: "",
  10279. commentDetail: [],
  10280. selectAnswer: [],
  10281. videoDetail: {},
  10282. selectJson: {},
  10283. eScore: { eBzText: "", eStar: [] },
  10284. id: this.$route.query.courseId,
  10285. userid: this.$route.query.userid,
  10286. classId: this.$route.query.cid,
  10287. // courseTypeLine: this.$route.query.type,
  10288. oid: this.$route.query.oid,
  10289. org: this.$route.query.org,
  10290. tType: this.$route.query.tType,
  10291. courseType: this.$route.query.type,
  10292. screenType: this.$route.query.screenType,
  10293. tcid2: this.$route.query.tcid,
  10294. tcid: "",
  10295. pptImgUrl: "",
  10296. pptImgUrl1: "",
  10297. commentText: "",
  10298. full: false,
  10299. sIsOpen: false,
  10300. IsLookOpen: false,
  10301. IsFollow: false,
  10302. pzDialog: false,
  10303. contentDialog: false,
  10304. mlDialog: false,
  10305. type: 1,
  10306. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  10307. sentenceList1: [],
  10308. tableJson: [],
  10309. tableJsonO: [],
  10310. wordJson: [],
  10311. wordJsonO: [],
  10312. vedio: [],
  10313. text: [],
  10314. textList: [],
  10315. line: [],
  10316. lineList: [],
  10317. chapTools: [],
  10318. chapToolList: [],
  10319. file: [],
  10320. fileC: [],
  10321. vedioTime: [],
  10322. upToolImg: "",
  10323. preTime: 0,
  10324. rateList: {
  10325. ca: 0,
  10326. },
  10327. rateParams: [],
  10328. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  10329. studyJuri: [
  10330. {
  10331. content: "",
  10332. cover: [],
  10333. upVedio: [],
  10334. upFile: [],
  10335. },
  10336. ],
  10337. isClose: 0,
  10338. plworkFile: [],
  10339. mr: require("../assets/vedioPic.png"),
  10340. word: require("../assets/icon/isWord.png"),
  10341. word2: require("../assets/icon/word2.png"),
  10342. video: require("../assets/icon/isVideo.png"),
  10343. noLikes: require("../assets/icon/comment/noLikes.png"),
  10344. likes: require("../assets/icon/comment/likes.png"),
  10345. scoreImg: require("../assets/score.png"),
  10346. courseDetail: {},
  10347. isSelect: false,
  10348. chapInfo: [],
  10349. chapInfoList: [],
  10350. taskCount: 0,
  10351. imgList: [],
  10352. noImgList: [],
  10353. pzList: [],
  10354. PlTextList: [
  10355. "Excellent!",
  10356. "nice!",
  10357. "很有创意!",
  10358. "还不错哦~",
  10359. "继续努力哦~",
  10360. ],
  10361. isClickNav: "",
  10362. navId: "",
  10363. playerOptions: {
  10364. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10365. autoplay: false, //如果true,浏览器准备好时开始回放。
  10366. muted: false, // 默认情况下将会消除任何音频。
  10367. loop: false, // 导致视频一结束就重新开始。
  10368. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10369. language: "zh-CN",
  10370. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10371. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10372. sources: [
  10373. {
  10374. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10375. src: "", //url地址require("../../assets/media/aaa.mp4")
  10376. },
  10377. ],
  10378. // poster: require("../../assets/tu31.png"), //你的封面地址
  10379. // poster: dataRes.imgUrl, //你的封面地址
  10380. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10381. controlBar: {
  10382. timeDivider: true, //当前时间和持续时间的分隔符
  10383. durationDisplay: true, //显示持续时间
  10384. remainingTimeDisplay: false, //是否显示剩余时间功能
  10385. fullscreenToggle: true, //全屏按钮
  10386. },
  10387. },
  10388. playerOptions1: {
  10389. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10390. autoplay: false, //如果true,浏览器准备好时开始回放。
  10391. muted: false, // 默认情况下将会消除任何音频。
  10392. loop: false, // 导致视频一结束就重新开始。
  10393. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10394. language: "zh-CN",
  10395. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10396. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10397. sources: [
  10398. {
  10399. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10400. src: "", //url地址require("../../assets/media/aaa.mp4")
  10401. },
  10402. ],
  10403. // poster: require("../../assets/tu31.png"), //你的封面地址
  10404. // poster: dataRes.imgUrl, //你的封面地址
  10405. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10406. controlBar: {
  10407. timeDivider: true, //当前时间和持续时间的分隔符
  10408. durationDisplay: true, //显示持续时间
  10409. remainingTimeDisplay: false, //是否显示剩余时间功能
  10410. fullscreenToggle: true, //全屏按钮
  10411. },
  10412. },
  10413. playerO: {},
  10414. noneBtnImg: false,
  10415. proVisible: false,
  10416. proVisible2: false,
  10417. progress: 0,
  10418. isFinishSize: 0,
  10419. isAllSize: 0,
  10420. questionAnswer: "",
  10421. answerQ: "", //问答标题
  10422. rateJson: [],
  10423. wbCount: 0,
  10424. wordCount: 0,
  10425. mindCount: 0,
  10426. askCount: 0,
  10427. noteCount: 0,
  10428. mindNetWorkCount: 0,
  10429. libraryCount: 0,
  10430. workCount: 0,
  10431. timeCount: 0,
  10432. answerCount: 0,
  10433. trainCount: 0,
  10434. evalCount: 0,
  10435. dialogImageUrl: "",
  10436. pictureDialog: false,
  10437. toolTypeList: [],
  10438. dialogVisible1: false,
  10439. dialogVisible2: false,
  10440. dialogVisible3: false,
  10441. dialogVisible6: false,
  10442. dialogVisible4: false,
  10443. isNoHomeWork: false,
  10444. dialogVisible5: false,
  10445. dialogVisible5Teacher: false,
  10446. dialogVisibleChoice: false,
  10447. dialogVisibleChoiceTeacher: false,
  10448. answerDialogVisible: false,
  10449. answerDialogVisibleTeacher: false,
  10450. juriVisible: false,
  10451. timeDialogVisible: false,
  10452. radio: [],
  10453. isAsk: false,
  10454. askJson: {
  10455. askCount: 1,
  10456. askTitle: "",
  10457. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10458. },
  10459. testJson: {},
  10460. checkJson: [],
  10461. askList: [],
  10462. answerList: [],
  10463. navList: [],
  10464. addPzDialog: false,
  10465. pzConText: "",
  10466. worksStudent: [],
  10467. isCloseList: [],
  10468. workStudent: [],
  10469. groupStudent: [],
  10470. groupStudentUid: [],
  10471. noWorksS: [],
  10472. isWorksS: [],
  10473. noWorksStudent: [],
  10474. toolindex: 0,
  10475. groupIndex: 0,
  10476. workTypeB: false,
  10477. workTypeC: false,
  10478. isAnswer: false,
  10479. timer: null,
  10480. opertimer: null,
  10481. showType: 0,
  10482. fileType: 0,
  10483. showPDF: false,
  10484. noteName: "",
  10485. evaJuri: [],
  10486. evalua: "",
  10487. eTitle: "",
  10488. eName: "",
  10489. eJson: {},
  10490. fid: "", //一级
  10491. sid: "", //二级
  10492. tid: "", //二级
  10493. typeMode: 1,
  10494. eJSONNum: 0,
  10495. Etype: 1,
  10496. data: {
  10497. meta: {
  10498. name: "example",
  10499. author: "dd@163.com",
  10500. version: "0.2",
  10501. },
  10502. format: "node_array",
  10503. data: [{ id: "root", isroot: true, topic: "" }],
  10504. },
  10505. fullDialogVisible: false,
  10506. fulltype: "",
  10507. fullUrl: "",
  10508. commentIndexJson: {},
  10509. Stbodywidth: 0,
  10510. ispzType: 0,
  10511. pzType: 1,
  10512. wScore: 0,
  10513. scoreDetail: "",
  10514. videoStart: false,
  10515. recorder: null,
  10516. groupJson: {},
  10517. islock: false,
  10518. groupJson2: {},
  10519. dialogVisibleGroup: false,
  10520. dialogVisibleGroup2: false,
  10521. updateGroupArray: [],
  10522. updateGroupUser: {},
  10523. deleteGroupUser: [],
  10524. deleteGroupArray: {},
  10525. checkChair: "",
  10526. checkDeleteGroup: [],
  10527. inviteCode: "",
  10528. courseGroupStudent: [],
  10529. courseGroupStudentUid: [],
  10530. courseGroup: {},
  10531. isGroup: false,
  10532. toolIndex: null,
  10533. tool: {},
  10534. isWorkTool: [
  10535. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  10536. ], //, 40
  10537. videoJson: {},
  10538. toolType: 0,
  10539. checktoolArray: [],
  10540. vChapterData: [],
  10541. isUpdateToolDetail: false,
  10542. checkboxList: [],
  10543. plIndex: "",
  10544. worksSName2: "",
  10545. worksSid: "",
  10546. wordCloudData: [],
  10547. isPickStudent: [],
  10548. };
  10549. },
  10550. methods: {
  10551. addToolChoose() {
  10552. if (!this.checktoolArray.length) {
  10553. this.$message.error("请选择要添加的任务");
  10554. return;
  10555. }
  10556. if (
  10557. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10558. this.taskCount
  10559. ].toolChoose[0].tool.length
  10560. ) {
  10561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10562. this.taskCount
  10563. ].toolChoose[0].tool = this.checktoolArray;
  10564. } else {
  10565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10566. this.taskCount
  10567. ].toolChoose.push({
  10568. tool: this.checktoolArray,
  10569. toolDetail: "",
  10570. toolType: 0,
  10571. askCount: 1,
  10572. askTitle: "",
  10573. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10574. });
  10575. }
  10576. let params = [
  10577. {
  10578. cid: this.id,
  10579. chapters: JSON.stringify(this.chapInfoList),
  10580. uid: this.userid,
  10581. unitIndex: this.courseType,
  10582. },
  10583. ];
  10584. this.ajax
  10585. .post(this.$store.state.api + "updateWorkNew4", params)
  10586. .then((res) => {
  10587. this.$message({
  10588. message: "添加成功",
  10589. type: "success",
  10590. });
  10591. this.checktoolArray = [];
  10592. this.getCourseDetail(2);
  10593. this.checkBz(
  10594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10595. this.taskCount
  10596. ].toolChoose.length - 1
  10597. );
  10598. this.$forceUpdate();
  10599. })
  10600. .catch((err) => {
  10601. console.error(err);
  10602. });
  10603. },
  10604. checkBz(index) {
  10605. this.isUpdateToolDetail = false;
  10606. this.$forceUpdate();
  10607. setTimeout(() => {
  10608. document.scrollingElement.scrollTop =
  10609. document.querySelectorAll(".filebox")[index].offsetTop +
  10610. document.querySelector(".student_body").offsetTop;
  10611. }, 500);
  10612. },
  10613. addTools2(i) {
  10614. if (i == 4) {
  10615. // this.openTools2(4);
  10616. this.$message.error("暂未开放");
  10617. return;
  10618. }
  10619. if (i == 45) {
  10620. // this.openTools2(45);
  10621. this.$message.error("暂未开放");
  10622. return;
  10623. }
  10624. if (i == 47) {
  10625. // this.openTools2(47);
  10626. this.$message.error("暂未开放");
  10627. return;
  10628. }
  10629. if (i == 49) {
  10630. // this.openTools2(49);
  10631. this.$message.error("暂未开放");
  10632. return;
  10633. }
  10634. if (i == 62) {
  10635. // this.openTools(itemTaskIndex, 62, toolIndex);
  10636. this.$message.error("暂未开放");
  10637. return;
  10638. }
  10639. if (i == 15) {
  10640. // this.openTools(itemTaskIndex, 15, toolIndex);
  10641. this.$message.error("暂未开放");
  10642. return;
  10643. }
  10644. if (i == 40) {
  10645. // this.openTools(itemTaskIndex, 40, toolIndex);
  10646. this.$message.error("暂未开放");
  10647. return;
  10648. }
  10649. if (i == 41) {
  10650. // this.openTools(itemTaskIndex, 41, toolIndex);
  10651. this.$message.error("暂未开放");
  10652. return;
  10653. }
  10654. if (i == 42) {
  10655. // this.openTools(itemTaskIndex, 42, toolIndex);
  10656. this.$message.error("暂未开放");
  10657. return;
  10658. }
  10659. if (this.checktoolArray.length > 0) {
  10660. if (this.checktoolArray.indexOf(i) != -1) {
  10661. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  10662. } else {
  10663. this.checktoolArray = [];
  10664. this.checktoolArray.push(i);
  10665. }
  10666. } else {
  10667. this.checktoolArray.push(i);
  10668. }
  10669. this.$forceUpdate();
  10670. },
  10671. jump() {
  10672. window.parent.postMessage({ tools: "43" }, "*");
  10673. },
  10674. getUpdateMore(f, checkboxList, searchTN, index) {
  10675. this.dialogVisibleMember = f;
  10676. this.checkboxList = checkboxList;
  10677. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  10678. this.plIndex = index;
  10679. },
  10680. setPlname(a) {
  10681. if (this.plworkFile.length) {
  10682. this.plworkFile[this.plIndex].username = a;
  10683. } else {
  10684. this.worksSName = a;
  10685. }
  10686. this.dialogVisibleMember = false;
  10687. },
  10688. previewImg(url) {
  10689. this.$hevueImgPreview(url);
  10690. },
  10691. checkImg(list) {
  10692. if (!list.length) {
  10693. return;
  10694. }
  10695. this.$hevueImgPreview({
  10696. multiple: true, // 开启多图预览模式
  10697. imgList: list, // 需要预览的多图数组
  10698. });
  10699. },
  10700. change(val) {
  10701. console.log(val);
  10702. },
  10703. goTo(path) {
  10704. this.$router.push(path);
  10705. },
  10706. handlePictureCardPreview(url) {
  10707. this.dialogImageUrl = url;
  10708. this.pictureDialog = true;
  10709. },
  10710. clean(type) {
  10711. if (type == 1) {
  10712. this.studyJuri[0].cover.splice(0, 1);
  10713. } else if (type == 2) {
  10714. this.studyJuri[0].upVedio.splice(0, 1);
  10715. } else {
  10716. this.studyJuri[0].upFile.splice(0, 1);
  10717. }
  10718. },
  10719. clean2(index) {
  10720. this.plworkFile.splice(index, 1);
  10721. },
  10722. handleClose(done) {
  10723. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  10724. this.videoDetail.sources[0].src = "";
  10725. }
  10726. this.commentIndexJson = {};
  10727. done();
  10728. },
  10729. fullTools() {
  10730. this.full = !this.full;
  10731. },
  10732. imgChange(file, fileList, type) {
  10733. if (type == 1) {
  10734. var _tmp = this.studyJuri[0].cover;
  10735. } else if (type == 2) {
  10736. var _tmp = this.studyJuri[0].upVedio;
  10737. } else {
  10738. var _tmp = this.studyJuri[0].upFile;
  10739. }
  10740. this.noneBtnImg = _tmp.length >= 1;
  10741. },
  10742. setContent(bool) {
  10743. this.contentDialog = bool;
  10744. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  10745. document.querySelector(".workd_media").style.height = "650px";
  10746. } else if (document.querySelector(".workd_media")) {
  10747. document.querySelector(".workd_media").style.height = "auto";
  10748. }
  10749. },
  10750. setContent2(bool) {
  10751. this.mlDialog = bool;
  10752. if (
  10753. bool &&
  10754. this.contentDialog &&
  10755. document.querySelector(".workd_media")
  10756. ) {
  10757. document.querySelector(".workd_media").style.height = "650px";
  10758. } else if (document.querySelector(".workd_media")) {
  10759. document.querySelector(".workd_media").style.height = "auto";
  10760. }
  10761. },
  10762. addImg(e) {
  10763. var el = e.currentTarget;
  10764. // this.$message.success('触发上传')
  10765. el.getElementsByTagName("input")[0].click();
  10766. e.target.value = "";
  10767. },
  10768. addSelectAnswer() {
  10769. let params = [
  10770. {
  10771. uid: this.userid,
  10772. cid: this.id,
  10773. stage: this.courseType,
  10774. task: this.taskCount,
  10775. tool: this.toolindex,
  10776. content: this.selectAnswer.answer,
  10777. type: 7,
  10778. },
  10779. ];
  10780. this.ajax
  10781. .post(this.$store.state.api + "addCourseWorks", params)
  10782. .then((res) => {
  10783. this.$message({
  10784. message: "提交成功",
  10785. type: "success",
  10786. });
  10787. this.dialogVisibleSelect = false;
  10788. // this.selectAnswer = {};
  10789. this.selectSWorks();
  10790. this.selectStudent();
  10791. })
  10792. .catch((err) => {
  10793. this.$message.error("提交失败");
  10794. console.error(err);
  10795. });
  10796. },
  10797. addSelectAnswerTeacher() {
  10798. let params = [
  10799. {
  10800. uid: this.sStudent.userid,
  10801. cid: this.id,
  10802. stage: this.courseType,
  10803. task: this.taskCount,
  10804. tool: this.toolindex,
  10805. content: this.selectAnswer.answer,
  10806. type: 7,
  10807. },
  10808. ];
  10809. this.ajax
  10810. .post(this.$store.state.api + "addCourseWorks", params)
  10811. .then((res) => {
  10812. this.$message({
  10813. message: "提交成功",
  10814. type: "success",
  10815. });
  10816. this.dialogVisibleSelectTeacher = false;
  10817. // this.selectAnswer = {};
  10818. this.selectSWorks();
  10819. this.selectStudent();
  10820. })
  10821. .catch((err) => {
  10822. this.$message.error("提交失败");
  10823. console.error(err);
  10824. });
  10825. },
  10826. addSenWorks() {
  10827. for (var i = 0; i < this.sentenceList.length; i++) {
  10828. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  10829. if (
  10830. this.sentenceList[i].chooseSenList[j] == undefined ||
  10831. this.sentenceList[i].chooseSenList[j] == ""
  10832. ) {
  10833. this.$message.error("请将答案填写完整!");
  10834. return;
  10835. }
  10836. }
  10837. }
  10838. let params = [
  10839. {
  10840. uid: this.userid,
  10841. cid: this.id,
  10842. stage: this.courseType,
  10843. task: this.taskCount,
  10844. tool: this.toolindex,
  10845. content: JSON.stringify(this.sentenceList),
  10846. type: 9,
  10847. },
  10848. ];
  10849. this.ajax
  10850. .post(this.$store.state.api + "addCourseWorks", params)
  10851. .then((res) => {
  10852. this.$message({
  10853. message: "提交成功",
  10854. type: "success",
  10855. });
  10856. this.dialogVisibleSentence = false;
  10857. // this.selectAnswer = {};
  10858. this.selectSWorks();
  10859. this.selectStudent();
  10860. })
  10861. .catch((err) => {
  10862. this.$message.error("提交失败");
  10863. console.error(err);
  10864. });
  10865. },
  10866. addSenWorksTeacher() {
  10867. for (var i = 0; i < this.sentenceList.length; i++) {
  10868. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  10869. if (
  10870. this.sentenceList[i].chooseSenList[j] == undefined ||
  10871. this.sentenceList[i].chooseSenList[j] == ""
  10872. ) {
  10873. this.$message.error("请将答案填写完整!");
  10874. return;
  10875. }
  10876. }
  10877. }
  10878. let params = [
  10879. {
  10880. uid: this.sStudent.userid,
  10881. cid: this.id,
  10882. stage: this.courseType,
  10883. task: this.taskCount,
  10884. tool: this.toolindex,
  10885. content: JSON.stringify(this.sentenceList),
  10886. type: 9,
  10887. },
  10888. ];
  10889. this.ajax
  10890. .post(this.$store.state.api + "addCourseWorks", params)
  10891. .then((res) => {
  10892. this.$message({
  10893. message: "提交成功",
  10894. type: "success",
  10895. });
  10896. this.dialogVisibleSentenceTeacher = false;
  10897. // this.selectAnswer = {};
  10898. this.selectSWorks();
  10899. this.selectStudent();
  10900. })
  10901. .catch((err) => {
  10902. this.$message.error("提交失败");
  10903. console.error(err);
  10904. });
  10905. },
  10906. returnTableText() {
  10907. this.$confirm("确定还原此模板吗?", "提示", {
  10908. confirmButtonText: "确定",
  10909. cancelButtonText: "取消",
  10910. type: "warning",
  10911. })
  10912. .then(() => {
  10913. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  10914. })
  10915. .catch(() => {});
  10916. },
  10917. addTableWorks() {
  10918. let params = [
  10919. {
  10920. uid: this.userid,
  10921. cid: this.id,
  10922. stage: this.courseType,
  10923. task: this.taskCount,
  10924. tool: this.toolindex,
  10925. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  10926. type: 10,
  10927. },
  10928. ];
  10929. this.ajax
  10930. .post(this.$store.state.api + "addCourseWorks", params)
  10931. .then((res) => {
  10932. this.$message({
  10933. message: "提交成功",
  10934. type: "success",
  10935. });
  10936. this.dialogVisibleTable = false;
  10937. // this.selectAnswer = {};
  10938. this.selectSWorks();
  10939. this.selectStudent();
  10940. })
  10941. .catch((err) => {
  10942. this.$message.error("提交失败");
  10943. console.error(err);
  10944. });
  10945. },
  10946. tableRowClassName({ row, rowIndex }) {
  10947. if ((rowIndex + 1) % 2 === 0) {
  10948. return "even_row";
  10949. } else {
  10950. return "";
  10951. }
  10952. },
  10953. addTableWorksTeacher() {
  10954. let params = [
  10955. {
  10956. uid: this.sStudent.userid,
  10957. cid: this.id,
  10958. stage: this.courseType,
  10959. task: this.taskCount,
  10960. tool: this.toolindex,
  10961. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  10962. type: 10,
  10963. },
  10964. ];
  10965. this.ajax
  10966. .post(this.$store.state.api + "addCourseWorks", params)
  10967. .then((res) => {
  10968. this.$message({
  10969. message: "提交成功",
  10970. type: "success",
  10971. });
  10972. this.dialogVisibleTableTeacher = false;
  10973. // this.selectAnswer = {};
  10974. this.selectSWorks();
  10975. this.selectStudent();
  10976. })
  10977. .catch((err) => {
  10978. this.$message.error("提交失败");
  10979. console.error(err);
  10980. });
  10981. },
  10982. returnWordText() {
  10983. this.$confirm("确定还原此模板吗?", "提示", {
  10984. confirmButtonText: "确定",
  10985. cancelButtonText: "取消",
  10986. type: "warning",
  10987. })
  10988. .then(() => {
  10989. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  10990. })
  10991. .catch(() => {});
  10992. },
  10993. addWordWorks() {
  10994. let params = [
  10995. {
  10996. uid: this.userid,
  10997. cid: this.id,
  10998. stage: this.courseType,
  10999. task: this.taskCount,
  11000. tool: this.toolindex,
  11001. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  11002. type: 13,
  11003. atool: 52,
  11004. },
  11005. ];
  11006. console.log(params);
  11007. this.ajax
  11008. .post(this.$store.state.api + "addCourseWorks3-2", params)
  11009. .then((res) => {
  11010. this.$message({
  11011. message: "提交成功",
  11012. type: "success",
  11013. });
  11014. this.dialogVisibleWord = false;
  11015. // this.selectAnswer = {};
  11016. this.selectSWorks();
  11017. this.selectStudent();
  11018. })
  11019. .catch((err) => {
  11020. this.$message.error("提交失败");
  11021. console.error(err);
  11022. });
  11023. },
  11024. addWordWorksTeacher() {
  11025. let params = [
  11026. {
  11027. uid: this.sStudent.userid,
  11028. cid: this.id,
  11029. stage: this.courseType,
  11030. task: this.taskCount,
  11031. tool: this.toolindex,
  11032. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  11033. type: 13,
  11034. atool: 52,
  11035. },
  11036. ];
  11037. console.log(params);
  11038. this.ajax
  11039. .post(this.$store.state.api + "addCourseWorks3-2", params)
  11040. .then((res) => {
  11041. this.$message({
  11042. message: "提交成功",
  11043. type: "success",
  11044. });
  11045. this.dialogVisibleWordTeacher = false;
  11046. // this.selectAnswer = {};
  11047. this.selectSWorks();
  11048. this.selectStudent();
  11049. })
  11050. .catch((err) => {
  11051. this.$message.error("提交失败");
  11052. console.error(err);
  11053. });
  11054. },
  11055. addCourseWorks(i) {
  11056. var typesql;
  11057. if (this.fileType === 0) {
  11058. typesql = 1;
  11059. } else if (this.fileType === 1) {
  11060. typesql = 4;
  11061. } else if (this.fileType === 2) {
  11062. typesql = 5;
  11063. } else if (this.fileType === 3) {
  11064. typesql = 12;
  11065. }
  11066. if (!this.studyJuri[0].cover[0].url) {
  11067. this.$message.error("请上传文件");
  11068. return;
  11069. }
  11070. let params = [
  11071. {
  11072. uid: this.userid,
  11073. cid: this.id,
  11074. stage: this.courseType,
  11075. task: i,
  11076. tool: this.toolindex,
  11077. content: this.studyJuri[0].cover[0].url,
  11078. type: typesql,
  11079. },
  11080. ];
  11081. this.ajax
  11082. .post(this.$store.state.api + "addCourseWorksR", params)
  11083. .then((res) => {
  11084. this.$message({
  11085. message: "提交成功",
  11086. type: "success",
  11087. });
  11088. this.studyJuri[0].cover = [];
  11089. this.dialogVisible = false;
  11090. this.getCourseDetail(2);
  11091. })
  11092. .catch((err) => {
  11093. this.$message.error("提交失败");
  11094. console.error(err);
  11095. });
  11096. },
  11097. addCourseWorksPl(i) {
  11098. let _files = this.plworkFile;
  11099. var c = 1;
  11100. for (var k = 0; k < _files.length; k++) {
  11101. if (!_files[k].username) {
  11102. c = 2;
  11103. }
  11104. }
  11105. if (c == 2) {
  11106. this.$message.error("请填写学生姓名");
  11107. return;
  11108. }
  11109. let params = [
  11110. {
  11111. ateacher: this.userid,
  11112. cid: this.id,
  11113. stage: this.courseType,
  11114. task: i,
  11115. tool: this.toolindex,
  11116. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  11117. },
  11118. ];
  11119. this.ajax
  11120. .post(this.$store.state.api + "addCourseWorksPl", params)
  11121. .then((res) => {
  11122. this.$message({
  11123. message: "提交成功",
  11124. type: "success",
  11125. });
  11126. this.plworkFile = [];
  11127. this.dialogVisiblePl = false;
  11128. this.getCourseDetail(2);
  11129. })
  11130. .catch((err) => {
  11131. this.$message.error("提交失败");
  11132. console.error(err);
  11133. });
  11134. },
  11135. addCourseWorks2(i) {
  11136. var typesql;
  11137. if (this.fileType === 0) {
  11138. typesql = 0;
  11139. } else if (this.fileType === 1) {
  11140. typesql = 1;
  11141. } else if (this.fileType === 2) {
  11142. typesql = 3;
  11143. } else if (this.fileType === 3) {
  11144. typesql = 12;
  11145. }
  11146. if (!this.studyJuri[0].cover[0].url) {
  11147. this.$message.error("请上传文件");
  11148. return;
  11149. }
  11150. let params = [
  11151. {
  11152. uid: this.userid,
  11153. cid: this.id,
  11154. stage: this.courseType,
  11155. task: i,
  11156. tool: this.toolindex,
  11157. content: JSON.stringify({
  11158. type: typesql,
  11159. groupIndex: this.groupIndex,
  11160. url: this.studyJuri[0].cover[0].url,
  11161. }).replaceAll(/%/g, "%25"),
  11162. type: 11,
  11163. atool: 49,
  11164. text: "",
  11165. },
  11166. ];
  11167. this.ajax
  11168. .post(this.$store.state.api + "addCourseWorks5", params)
  11169. .then((res) => {
  11170. this.$message({
  11171. message: "提交成功",
  11172. type: "success",
  11173. });
  11174. this.studyJuri[0].cover = [];
  11175. this.dialogVisibleGroupWork = false;
  11176. this.getCourseDetail(2);
  11177. })
  11178. .catch((err) => {
  11179. this.$message.error("提交失败");
  11180. console.error(err);
  11181. });
  11182. },
  11183. addCourseWorksGong(i, data, tool) {
  11184. let params = [
  11185. {
  11186. uid: this.userid,
  11187. cid: this.id,
  11188. stage: this.courseType,
  11189. task: this.taskCount,
  11190. tool: i,
  11191. content: data,
  11192. type: 12,
  11193. atool: tool,
  11194. text: "",
  11195. },
  11196. ];
  11197. this.ajax
  11198. .post(this.$store.state.api + "addCourseWorks5", params)
  11199. .then((res) => {
  11200. this.$message({
  11201. message: "提交成功",
  11202. type: "success",
  11203. });
  11204. this.studyJuri[0].cover = [];
  11205. this.selectSWorks();
  11206. this.selectStudent();
  11207. })
  11208. .catch((err) => {
  11209. this.$message.error("提交失败");
  11210. console.error(err);
  11211. });
  11212. },
  11213. addCourseWorksGongTeacher(i, data, tool) {
  11214. let params = [
  11215. {
  11216. uid: this.sStudent.userid,
  11217. cid: this.id,
  11218. stage: this.courseType,
  11219. task: this.taskCount,
  11220. tool: i,
  11221. content: data,
  11222. type: 12,
  11223. atool: tool,
  11224. text: "",
  11225. },
  11226. ];
  11227. this.ajax
  11228. .post(this.$store.state.api + "addCourseWorks5", params)
  11229. .then((res) => {
  11230. this.$message({
  11231. message: "提交成功",
  11232. type: "success",
  11233. });
  11234. this.studyJuri[0].cover = [];
  11235. this.dialogVisibleWorks = false;
  11236. this.selectSWorks();
  11237. this.selectStudent();
  11238. })
  11239. .catch((err) => {
  11240. this.$message.error("提交失败");
  11241. console.error(err);
  11242. });
  11243. },
  11244. addCourseWorksGongPl(i, data, tool, type) {
  11245. let params = [
  11246. {
  11247. uid: this.sStudent.userid,
  11248. cid: this.id,
  11249. stage: this.courseType,
  11250. task: this.taskCount,
  11251. tool: i,
  11252. content: data,
  11253. type: type,
  11254. atool: tool,
  11255. text: "",
  11256. },
  11257. ];
  11258. this.ajax
  11259. .post(this.$store.state.api + "addCourseWorks5", params)
  11260. .then((res) => {
  11261. this.$message({
  11262. message: "提交成功",
  11263. type: "success",
  11264. });
  11265. this.studyJuri[0].cover = [];
  11266. this.dialogVisibleWorks = false;
  11267. this.selectSWorks();
  11268. this.selectStudent();
  11269. })
  11270. .catch((err) => {
  11271. this.$message.error("提交失败");
  11272. console.error(err);
  11273. });
  11274. },
  11275. addCourseWorksTeacher(i) {
  11276. var typesql;
  11277. if (this.sTool == 32) {
  11278. this.addCourseWorksGongTeacher(
  11279. this.toolindex,
  11280. this.studyJuri[0].cover[0].url,
  11281. this.sTool
  11282. );
  11283. return;
  11284. }
  11285. if (this.fileType === 0) {
  11286. typesql = 1;
  11287. } else if (this.fileType === 1) {
  11288. typesql = 4;
  11289. } else if (this.fileType === 2) {
  11290. typesql = 5;
  11291. } else if (this.fileType === 3) {
  11292. typesql = 12;
  11293. }
  11294. if (this.sTool == 50) {
  11295. this.addCourseWorksGongPl(
  11296. this.toolindex,
  11297. this.studyJuri[0].cover[0].url,
  11298. this.sTool,
  11299. typesql
  11300. );
  11301. return;
  11302. }
  11303. if (!this.studyJuri[0].cover[0].url) {
  11304. this.$message.error("请上传文件");
  11305. return;
  11306. }
  11307. let params = [
  11308. {
  11309. uid: this.sStudent.userid,
  11310. cid: this.id,
  11311. stage: this.courseType,
  11312. task: i,
  11313. tool: this.toolindex,
  11314. content: this.studyJuri[0].cover[0].url,
  11315. type: typesql,
  11316. ateacher: this.userid,
  11317. },
  11318. ];
  11319. this.ajax
  11320. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  11321. .then((res) => {
  11322. this.$message({
  11323. message: "提交成功",
  11324. type: "success",
  11325. });
  11326. this.studyJuri[0].cover = [];
  11327. this.dialogVisibleWorks = false;
  11328. this.getCourseDetail(2);
  11329. })
  11330. .catch((err) => {
  11331. this.$message.error("提交失败");
  11332. console.error(err);
  11333. });
  11334. },
  11335. selectUploadStudent(type) {
  11336. const loading = this.$loading.service({
  11337. background: "rgba(255, 255, 255, 0.7)",
  11338. target: document.body,
  11339. });
  11340. let params = {
  11341. cid: this.uploadCid,
  11342. oid: this.oid,
  11343. cn: "",
  11344. };
  11345. this.ajax
  11346. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  11347. .then((res) => {
  11348. loading.close();
  11349. var studentK = [];
  11350. if (this.isWorksS[this.toolindex].length > 0) {
  11351. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  11352. studentK.push(this.isWorksS[this.toolindex][z].uid);
  11353. }
  11354. studentK = studentK.join(",");
  11355. }
  11356. this.uploadStudentJuri = res.data[0].filter((el) => {
  11357. return studentK.indexOf(el.userid) == -1;
  11358. });
  11359. if (this.worksSName && this.worksSid) {
  11360. this.uploadStudentJuri.push({
  11361. userid: this.worksSid,
  11362. name: this.worksSName,
  11363. });
  11364. }
  11365. if (type == 1) {
  11366. this.plworkFile = [];
  11367. this.dialogVisibleSname = true;
  11368. } else if (type == 2) {
  11369. this.dialogVisiblePl = true;
  11370. }
  11371. })
  11372. .catch((err) => {
  11373. loading.close();
  11374. console.error(err);
  11375. });
  11376. },
  11377. selectPickStudent() {
  11378. const loading = this.$loading.service({
  11379. background: "rgba(255, 255, 255, 0.7)",
  11380. target: document.body,
  11381. });
  11382. let params = {
  11383. cid: this.uploadCid,
  11384. oid: this.oid,
  11385. cn: "",
  11386. };
  11387. this.ajax
  11388. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  11389. .then((res) => {
  11390. loading.close();
  11391. this.uploadStudentJuri = res.data[0]
  11392. this.dialogVisiblePickPeople = true;
  11393. })
  11394. .catch((err) => {
  11395. loading.close();
  11396. console.error(err);
  11397. });
  11398. },
  11399. arrayToArray(arrayo, arrayt) {
  11400. let array1 = arrayo;
  11401. let array2 = arrayt;
  11402. let commonElements = [];
  11403. for (let i = 0; i < array1.length; i++) {
  11404. for (let j = 0; j < array2.length; j++) {
  11405. if (array1[i] === array2[j]) {
  11406. commonElements.push(array1[i]);
  11407. }
  11408. }
  11409. }
  11410. return commonElements;
  11411. },
  11412. selectWorksStudent() {
  11413. let params = {
  11414. oid: this.oid,
  11415. cid: this.courseDetail.juri,
  11416. };
  11417. this.ajax
  11418. .get(this.$store.state.api + "selectWorksStudent", params)
  11419. .then((res) => {
  11420. var a = res.data[0];
  11421. for (var i = 0; i < this.isWorksS.length; i++) {
  11422. this.noWorksS[i] = [];
  11423. var studentK = [];
  11424. if (this.isWorksS[i].length > 0) {
  11425. for (var z = 0; z < this.isWorksS[i].length; z++) {
  11426. studentK.push(this.isWorksS[i][z].uid);
  11427. }
  11428. studentK = studentK.join(",");
  11429. for (var j = 0; j < a.length; j++) {
  11430. if (studentK.indexOf(a[j].userid) == -1) {
  11431. if (this.tcid) {
  11432. // a[j].classid.indexOf(this.tcid) != -1
  11433. if (
  11434. this.arrayToArray(
  11435. a[j].classid.split(","),
  11436. this.tcid.split(",")
  11437. ).length
  11438. ) {
  11439. this.noWorksS[i].push({
  11440. student: a[j].name,
  11441. userid: a[j].userid,
  11442. });
  11443. }
  11444. } else {
  11445. this.noWorksS[i].push({
  11446. student: a[j].name,
  11447. userid: a[j].userid,
  11448. });
  11449. }
  11450. }
  11451. }
  11452. } else {
  11453. for (var k = 0; k < a.length; k++) {
  11454. if (this.tcid) {
  11455. if (
  11456. this.arrayToArray(
  11457. a[k].classid.split(","),
  11458. this.tcid.split(",")
  11459. ).length
  11460. ) {
  11461. this.noWorksS[i].push({
  11462. student: a[k].name,
  11463. userid: a[k].userid,
  11464. });
  11465. }
  11466. } else {
  11467. this.noWorksS[i].push({
  11468. student: a[k].name,
  11469. userid: a[k].userid,
  11470. });
  11471. }
  11472. }
  11473. }
  11474. }
  11475. this.$forceUpdate();
  11476. if (
  11477. Object.keys(this.commentDetail).length &&
  11478. Object.keys(this.commentIndexJson).length &&
  11479. !this.dialogVisibleScore
  11480. ) {
  11481. let a = 1;
  11482. let c = this.commentIndexJson;
  11483. console.log(c);
  11484. if (
  11485. this.commentIndexJson.gindex ||
  11486. this.commentIndexJson.gindex === 0
  11487. ) {
  11488. for (
  11489. var i = 0;
  11490. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11491. i++
  11492. ) {
  11493. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  11494. groupA: for (var k = 0; k < _el.length; k++) {
  11495. let el = _el[k];
  11496. if (el.wid == this.commentDetail.wid) {
  11497. a = 2;
  11498. this.commentOther(
  11499. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  11500. this.commentIndexJson.toolIndex,
  11501. k,
  11502. this.commentIndexJson.gindex
  11503. );
  11504. break groupA;
  11505. }
  11506. }
  11507. }
  11508. if (a === 1) {
  11509. this.commentDetail = [];
  11510. this.commentIndexJson = {};
  11511. this.commentDialogVisible = false;
  11512. this.$message("此作业已被删除");
  11513. }
  11514. } else {
  11515. if (this.isGroup && this.commentIndexJson.gid) {
  11516. groupA: for (
  11517. var i = 0;
  11518. i < this.courseGroup.group.length;
  11519. i++
  11520. ) {
  11521. let _group = this.courseGroup.group[i];
  11522. if (_group.id == this.commentIndexJson.gid) {
  11523. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  11524. for (var k = 0; k < _el2.length; k++) {
  11525. let el2 = _el2[k];
  11526. if (el2.wid == this.commentDetail.wid) {
  11527. a = 2;
  11528. this.commentOther(
  11529. _el2[k],
  11530. this.commentIndexJson.toolIndex,
  11531. k,
  11532. null,
  11533. this.commentIndexJson.gid
  11534. );
  11535. break groupA;
  11536. }
  11537. }
  11538. }
  11539. }
  11540. }
  11541. if (a == 1) {
  11542. for (
  11543. var i = 0;
  11544. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11545. i++
  11546. ) {
  11547. let el =
  11548. this.worksStudent[this.commentIndexJson.toolIndex][i];
  11549. if (el.wid == this.commentDetail.wid) {
  11550. a = 2;
  11551. this.commentOther(
  11552. this.worksStudent[this.commentIndexJson.toolIndex][i],
  11553. this.commentIndexJson.toolIndex,
  11554. i
  11555. );
  11556. break;
  11557. }
  11558. }
  11559. }
  11560. if (a === 1) {
  11561. this.commentDetail = [];
  11562. this.commentIndexJson = {};
  11563. this.commentDialogVisible = false;
  11564. this.$message("此作业已被删除");
  11565. }
  11566. }
  11567. }
  11568. })
  11569. .catch((err) => {
  11570. console.error(err);
  11571. });
  11572. },
  11573. selectStudent() {
  11574. //学生查看自己作业
  11575. let params = {
  11576. uid: this.userid,
  11577. cid: this.id,
  11578. s: this.courseType,
  11579. t: this.taskCount,
  11580. };
  11581. this.ajax
  11582. .get(this.$store.state.api + "selectStudentWorks", params)
  11583. .then((res) => {
  11584. var a =
  11585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11586. this.taskCount
  11587. ].toolChoose;
  11588. var b = res.data[0];
  11589. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11590. var y = [
  11591. "AVI",
  11592. "NAVI",
  11593. "MPEG",
  11594. "ASF",
  11595. "MOV",
  11596. "WMV",
  11597. "3GP",
  11598. "RM",
  11599. "RMVB",
  11600. "FLV",
  11601. "F4V",
  11602. "H.264",
  11603. "H.265",
  11604. "REAL VIDEO",
  11605. "MKV",
  11606. "WebM",
  11607. "HDDVD",
  11608. "MP4",
  11609. "MPG",
  11610. "M4V",
  11611. "MGV",
  11612. "OGV",
  11613. "QTM",
  11614. "STR",
  11615. "AMC",
  11616. "DVX",
  11617. "EVO",
  11618. "DAT",
  11619. "OGG",
  11620. "OGM",
  11621. ];
  11622. for (var i = 0; i < a.length; i++) {
  11623. this.workStudent[i] = [];
  11624. for (var j = 0; j < b.length; j++) {
  11625. if (i == b[j].tool) {
  11626. if (
  11627. (b[j].type == 1 ||
  11628. b[j].type == 4 ||
  11629. b[j].type == 5 ||
  11630. b[j].type == 6 ||
  11631. b[j].type == 12 ||
  11632. b[j].type == 7) &&
  11633. a[i].tool[0] != 15 &&
  11634. a[i].tool[0] != 4 &&
  11635. a[i].tool[0] != 45 &&
  11636. a[i].tool[0] != 50 &&
  11637. a[i].tool[0] != 32 &&
  11638. a[i].tool[0] != 57 &&
  11639. a[i].tool[0] != 52
  11640. ) {
  11641. if (
  11642. c.indexOf(
  11643. b[j].content
  11644. .split(".")
  11645. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11646. ) != -1 &&
  11647. a[i].tool[0] == 16 &&
  11648. b[j].atool != 50
  11649. ) {
  11650. this.workStudent[i].push({
  11651. works: b[j].content,
  11652. sName: b[j].name,
  11653. score: b[j].score,
  11654. img: b[j].img,
  11655. type: 1,
  11656. time: b[j].time,
  11657. userid: b[j].userid,
  11658. wid: b[j].id,
  11659. });
  11660. } else if (
  11661. y.indexOf(
  11662. b[j].content
  11663. .split(".")
  11664. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11665. ) != -1 &&
  11666. a[i].tool[0] == 16 &&
  11667. b[j].atool != 50
  11668. ) {
  11669. this.workStudent[i].push({
  11670. userid: b[j].userid,
  11671. wid: b[j].id,
  11672. works: b[j].content,
  11673. sName: b[j].name,
  11674. score: b[j].score,
  11675. img: b[j].img,
  11676. type: 3,
  11677. time: b[j].time,
  11678. });
  11679. } else if (b[j].type == 6 && b[j].atool != 50) {
  11680. this.workStudent[i].push({
  11681. userid: b[j].userid,
  11682. wid: b[j].id,
  11683. works: b[j].content,
  11684. sName: b[j].name,
  11685. score: b[j].score,
  11686. img: b[j].img,
  11687. type: 4,
  11688. time: b[j].time,
  11689. });
  11690. } else if (b[j].type == 7 && b[j].atool != 50) {
  11691. this.workStudent[i].push({
  11692. userid: b[j].userid,
  11693. wid: b[j].id,
  11694. works: b[j].content,
  11695. sName: b[j].name,
  11696. score: b[j].score,
  11697. img: b[j].img,
  11698. type: 5,
  11699. time: b[j].time,
  11700. });
  11701. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11702. this.workStudent[i].push({
  11703. works: b[j].content,
  11704. sName: b[j].name,
  11705. score: b[j].score,
  11706. img: b[j].img,
  11707. type: 12,
  11708. time: b[j].time,
  11709. userid: b[j].userid,
  11710. wid: b[j].id,
  11711. });
  11712. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11713. this.workStudent[i].push({
  11714. works: b[j].content,
  11715. sName: b[j].name,
  11716. score: b[j].score,
  11717. img: b[j].img,
  11718. type: 0,
  11719. time: b[j].time,
  11720. userid: b[j].userid,
  11721. wid: b[j].id,
  11722. });
  11723. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11724. this.workStudent[i].push({
  11725. works: b[j].content,
  11726. sName: b[j].name,
  11727. score: b[j].score,
  11728. img: b[j].img,
  11729. type: 0,
  11730. time: b[j].time,
  11731. userid: b[j].userid,
  11732. wid: b[j].id,
  11733. });
  11734. }
  11735. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11736. this.workStudent[i].push({
  11737. works: b[j].content,
  11738. sName: b[j].name,
  11739. score: b[j].score,
  11740. img: b[j].img,
  11741. type: 2,
  11742. time: b[j].time,
  11743. userid: b[j].userid,
  11744. wid: b[j].id,
  11745. });
  11746. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  11747. //问卷
  11748. this.workStudent[i].push({
  11749. works: b[j].content,
  11750. sName: b[j].name,
  11751. score: b[j].score,
  11752. img: b[j].img,
  11753. type: 2,
  11754. time: b[j].time,
  11755. userid: b[j].userid,
  11756. wid: b[j].id,
  11757. });
  11758. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  11759. //选择题
  11760. this.workStudent[i].push({
  11761. works: b[j].content,
  11762. sName: b[j].name,
  11763. score: b[j].score,
  11764. img: b[j].img,
  11765. type: 8,
  11766. time: b[j].time,
  11767. userid: b[j].userid,
  11768. wid: b[j].id,
  11769. });
  11770. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  11771. //选择题
  11772. this.workStudent[i].push({
  11773. works: b[j].content,
  11774. sName: b[j].name,
  11775. score: b[j].score,
  11776. img: b[j].img,
  11777. type: 9,
  11778. time: b[j].time,
  11779. userid: b[j].userid,
  11780. wid: b[j].id,
  11781. });
  11782. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  11783. //选择题
  11784. this.workStudent[i].push({
  11785. works: b[j].content,
  11786. sName: b[j].name,
  11787. score: b[j].score,
  11788. img: b[j].img,
  11789. type: 10,
  11790. time: b[j].time,
  11791. userid: b[j].userid,
  11792. wid: b[j].id,
  11793. });
  11794. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  11795. //选择题
  11796. this.workStudent[i].push({
  11797. works: b[j].content,
  11798. sName: b[j].name,
  11799. score: b[j].score,
  11800. img: b[j].img,
  11801. type: 13,
  11802. time: b[j].time,
  11803. userid: b[j].userid,
  11804. wid: b[j].id,
  11805. });
  11806. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  11807. //选择题
  11808. this.workStudent[i].push({
  11809. works: b[j].content,
  11810. sName: b[j].name,
  11811. score: b[j].score,
  11812. img: b[j].img,
  11813. type: 12,
  11814. time: b[j].time,
  11815. userid: b[j].userid,
  11816. wid: b[j].id,
  11817. });
  11818. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  11819. //选择题
  11820. this.workStudent[i].push({
  11821. works: b[j].content,
  11822. sName: b[j].name,
  11823. score: b[j].score,
  11824. img: b[j].img,
  11825. type: 12,
  11826. time: b[j].time,
  11827. userid: b[j].userid,
  11828. wid: b[j].id,
  11829. });
  11830. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  11831. //选择题
  11832. this.workStudent[i].push({
  11833. works: b[j].content,
  11834. sName: b[j].name,
  11835. score: b[j].score,
  11836. img: b[j].img,
  11837. type: 15,
  11838. time: b[j].time,
  11839. userid: b[j].userid,
  11840. wid: b[j].id,
  11841. });
  11842. }
  11843. }
  11844. }
  11845. }
  11846. })
  11847. .catch((err) => {
  11848. console.error(err);
  11849. });
  11850. },
  11851. openVideo(w) {
  11852. this.videoDetail = {};
  11853. this.playerOptions1.sources[0].src = w.works;
  11854. this.videoDetail = this.playerOptions1;
  11855. this.videoVisible = true;
  11856. },
  11857. isLikes(wid, uid, t, c, isLikes) {
  11858. if (isLikes == false) {
  11859. let params = [
  11860. {
  11861. wid: wid,
  11862. lid: uid,
  11863. t: t,
  11864. c: c,
  11865. },
  11866. ];
  11867. this.ajax
  11868. .post(this.$store.state.api + "insertComment", params)
  11869. .then((res) => {
  11870. this.$message({
  11871. message: "点赞成功",
  11872. type: "success",
  11873. });
  11874. this.selectSWorks();
  11875. this.selectStudent();
  11876. })
  11877. .catch((err) => {
  11878. this.$message.error("点赞失败");
  11879. console.error(err);
  11880. });
  11881. } else {
  11882. let params = {
  11883. wid: wid,
  11884. lid: uid,
  11885. type: t,
  11886. };
  11887. this.ajax
  11888. .get(this.$store.state.api + "deleteComment", params)
  11889. .then((res) => {
  11890. this.$message({
  11891. message: "取消点赞成功",
  11892. type: "success",
  11893. });
  11894. this.selectSWorks();
  11895. this.selectStudent();
  11896. })
  11897. .catch((err) => {
  11898. console.error(err);
  11899. });
  11900. }
  11901. },
  11902. deleteComment(wid) {
  11903. this.$confirm("确定删除此评论吗?", "提示", {
  11904. confirmButtonText: "确定",
  11905. cancelButtonText: "取消",
  11906. type: "warning",
  11907. })
  11908. .then(() => {
  11909. let params = {
  11910. id: wid,
  11911. };
  11912. this.ajax
  11913. .get(this.$store.state.api + "deleteComment2", params)
  11914. .then((res) => {
  11915. this.$message({
  11916. message: "删除评论成功",
  11917. type: "success",
  11918. });
  11919. this.selectSWorks();
  11920. this.selectStudent();
  11921. })
  11922. .catch((err) => {
  11923. console.error(err);
  11924. });
  11925. })
  11926. .catch(() => {});
  11927. },
  11928. commentOther(w, toolIndex, wIndex, gindex, gid) {
  11929. this.commentIndexJson = {
  11930. toolIndex: toolIndex,
  11931. wIndex: wIndex,
  11932. gindex: gindex,
  11933. gid: gid,
  11934. };
  11935. this.commentDetail = [];
  11936. this.commentDialogVisible = true;
  11937. this.commentDetail = w;
  11938. if (w.works && w.type == 1) {
  11939. this.pptImgUrl = "";
  11940. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  11941. if (
  11942. a.indexOf(
  11943. w.works
  11944. .split(".")
  11945. [w.works.split(".").length - 1].toLocaleUpperCase()
  11946. ) != -1
  11947. ) {
  11948. this.pptImgUrl =
  11949. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  11950. this.showPDF = false;
  11951. } else if (
  11952. w.works
  11953. .split(".")
  11954. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  11955. ) {
  11956. this.pptImgUrl = w.works;
  11957. this.showPDF = true;
  11958. }
  11959. } else if (w.works && w.type == 3) {
  11960. this.videoDetail = {};
  11961. this.playerOptions1.sources[0].src = w.works;
  11962. this.videoDetail = this.playerOptions1;
  11963. // this.videoVisible = true;
  11964. } else if (w.works && w.type == 4) {
  11965. this.eScore = JSON.parse(w.works);
  11966. this.rateJson =
  11967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11968. this.taskCount
  11969. ].toolChoose[toolIndex].rateJson;
  11970. } else if (w.works && w.type == 10) {
  11971. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  11972. } else if (w.works && w.type == 13) {
  11973. this.wordJson =
  11974. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11975. this.taskCount
  11976. ].toolChoose[toolIndex].wordJson;
  11977. }
  11978. },
  11979. openScore(w) {
  11980. this.wScore = 0;
  11981. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  11982. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  11983. this.commentDetail = [];
  11984. this.dialogVisibleScore = true;
  11985. this.commentDetail = w;
  11986. if (w.works && w.type == 1) {
  11987. this.pptImgUrl = "";
  11988. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  11989. if (
  11990. a.indexOf(
  11991. w.works
  11992. .split(".")
  11993. [w.works.split(".").length - 1].toLocaleUpperCase()
  11994. ) != -1
  11995. ) {
  11996. this.pptImgUrl =
  11997. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  11998. this.showPDF = false;
  11999. } else if (
  12000. w.works
  12001. .split(".")
  12002. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12003. ) {
  12004. this.pptImgUrl = w.works;
  12005. this.showPDF = true;
  12006. }
  12007. } else if (w.works && w.type == 3) {
  12008. this.videoDetail = {};
  12009. this.playerOptions1.sources[0].src = w.works;
  12010. this.videoDetail = this.playerOptions1;
  12011. }
  12012. },
  12013. addComment(wid, uid, t) {
  12014. if (this.commentText == "") {
  12015. this.$message.error("请输入评论");
  12016. return;
  12017. }
  12018. let params2 = [
  12019. {
  12020. wid: wid,
  12021. lid: uid,
  12022. t: t,
  12023. },
  12024. ];
  12025. this.ajax
  12026. .post(this.$store.state.api + "getComment", params2)
  12027. .then((res) => {
  12028. if (res.data[0].length > 0) {
  12029. this.$message.error("一个作业只能评论一条");
  12030. } else {
  12031. let params = [
  12032. {
  12033. wid: wid,
  12034. lid: uid,
  12035. t: t,
  12036. c: this.commentText,
  12037. },
  12038. ];
  12039. this.ajax
  12040. .post(this.$store.state.api + "insertComment", params)
  12041. .then((res) => {
  12042. this.$message({
  12043. message: "评论成功",
  12044. type: "success",
  12045. });
  12046. this.commentText = "";
  12047. this.selectSWorks();
  12048. this.selectStudent();
  12049. })
  12050. .catch((err) => {
  12051. this.$message.error("评论失败");
  12052. console.error(err);
  12053. });
  12054. }
  12055. })
  12056. .catch((err) => {
  12057. // this.$message.error("评论失败");
  12058. console.error(err);
  12059. });
  12060. },
  12061. scoreWork(wid) {
  12062. if (this.wScore == 0) {
  12063. this.$message.error("请评分");
  12064. return;
  12065. }
  12066. let params = [
  12067. {
  12068. wid: wid,
  12069. score: JSON.stringify({
  12070. wScore: this.wScore,
  12071. detail: this.scoreDetail,
  12072. }),
  12073. },
  12074. ];
  12075. this.ajax
  12076. .post(this.$store.state.api + "scoreWork", params)
  12077. .then((res) => {
  12078. this.$message({
  12079. message: "评分成功",
  12080. type: "success",
  12081. });
  12082. this.wScore = 0;
  12083. this.scoreDetail = "";
  12084. this.dialogVisibleScore = false;
  12085. this.selectSWorks();
  12086. this.selectStudent();
  12087. })
  12088. .catch((err) => {
  12089. this.$message.error("评分失败");
  12090. console.error(err);
  12091. });
  12092. },
  12093. openXz(w, i) {
  12094. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  12095. .taskJson[this.taskCount].toolChoose[i].selectJson
  12096. ? JSON.parse(
  12097. JSON.stringify(
  12098. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12099. this.taskCount
  12100. ].toolChoose[i].selectJson
  12101. )
  12102. )
  12103. : { url: "", select: [], answer: [] };
  12104. var a = w.works.split(",");
  12105. for (var k = 0; k < a.length; k++) {
  12106. a[k] = parseInt(a[k]);
  12107. }
  12108. this.selectAnswer = { answer: a, stu: w.sName };
  12109. this.isSelect = true;
  12110. this.dialogVisibleSelect = true;
  12111. },
  12112. openSen(w, i) {
  12113. this.sentenceList1 = JSON.parse(w.works);
  12114. this.sentenceList1.stuName = w.sName;
  12115. this.dialogVisibleSentence1 = true;
  12116. },
  12117. openPj(w, toolindex) {
  12118. this.isStar = true;
  12119. this.eScore = JSON.parse(w);
  12120. this.rateJson =
  12121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12122. this.taskCount
  12123. ].toolChoose[toolindex].rateJson;
  12124. this.studentEvalDialogVisible = true;
  12125. },
  12126. deleteWorks(id) {
  12127. this.$confirm("确定删除此作业吗?", "提示", {
  12128. confirmButtonText: "确定",
  12129. cancelButtonText: "取消",
  12130. type: "warning",
  12131. })
  12132. .then(() => {
  12133. let params = [
  12134. {
  12135. id: id,
  12136. },
  12137. ];
  12138. this.ajax
  12139. .post(this.$store.state.api + "deleteCourseWork", params)
  12140. .then((res) => {
  12141. this.$message({
  12142. message: "删除成功",
  12143. type: "success",
  12144. });
  12145. this.selectStudent();
  12146. this.selectSWorks();
  12147. this.selectSLook();
  12148. })
  12149. .catch((err) => {
  12150. this.$message.error("网络异常");
  12151. console.error(err);
  12152. });
  12153. })
  12154. .catch(() => {});
  12155. },
  12156. selectSWorks(gindex) {
  12157. //教师查看全部作业
  12158. let params = {
  12159. cid: this.id,
  12160. s: this.courseType,
  12161. t: this.taskCount,
  12162. };
  12163. this.ajax
  12164. .get(this.$store.state.api + "selectSWorks", params)
  12165. .then((res) => {
  12166. var a =
  12167. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12168. this.taskCount
  12169. ].toolChoose;
  12170. var b = res.data[0];
  12171. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12172. var y = [
  12173. "AVI",
  12174. "NAVI",
  12175. "MPEG",
  12176. "ASF",
  12177. "MOV",
  12178. "WMV",
  12179. "3GP",
  12180. "RM",
  12181. "RMVB",
  12182. "FLV",
  12183. "F4V",
  12184. "H.264",
  12185. "H.265",
  12186. "REAL VIDEO",
  12187. "MKV",
  12188. "WebM",
  12189. "HDDVD",
  12190. "MP4",
  12191. "MPG",
  12192. "M4V",
  12193. "MGV",
  12194. "OGV",
  12195. "QTM",
  12196. "STR",
  12197. "AMC",
  12198. "DVX",
  12199. "EVO",
  12200. "DAT",
  12201. "OGG",
  12202. "OGM",
  12203. ];
  12204. var d = res.data[1];
  12205. var e = res.data[2];
  12206. var f = res.data[3];
  12207. let _worksStudent = [];
  12208. for (var i = 0; i < a.length; i++) {
  12209. _worksStudent[i] = [];
  12210. if (
  12211. !this.isCloseList[i] ||
  12212. this.isCloseList[i].isClose == undefined
  12213. ) {
  12214. this.isCloseList[i] = { isClose: 0 };
  12215. }
  12216. this.groupStudent[i] = [];
  12217. this.groupStudentUid[i] = [];
  12218. if (this.isGroup) {
  12219. for (
  12220. var groupI = 0;
  12221. groupI < this.courseGroup.group.length;
  12222. groupI++
  12223. ) {
  12224. this.courseGroup.group[groupI].works[i] = [];
  12225. }
  12226. }
  12227. this.isWorksS[i] = [];
  12228. this.checkJson[i] = [];
  12229. if (a[i].tool[0] == 49) {
  12230. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  12231. this.groupStudent[i][gA] = [];
  12232. this.groupStudentUid[i][gA] = [];
  12233. _worksStudent[i][gA] = [];
  12234. this.isCloseList[i][gA] = [];
  12235. for (var g = 0; g < f.length; g++) {
  12236. if (
  12237. f[g].ttype == 2 &&
  12238. this.tcid &&
  12239. this.arrayToArray(
  12240. f[g].classid.split(","),
  12241. this.tcid.split(",")
  12242. ).length == 0
  12243. ) {
  12244. continue;
  12245. }
  12246. if (gA == f[g].group && f[g].tool == i) {
  12247. this.groupStudent[i][gA].push(f[g]);
  12248. this.groupStudentUid[i][gA].push(f[g].userid);
  12249. }
  12250. }
  12251. }
  12252. this.$forceUpdate();
  12253. }
  12254. for (var j = 0; j < b.length; j++) {
  12255. if (
  12256. b[j].ttype == 2 &&
  12257. this.tcid &&
  12258. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  12259. .length == 0
  12260. ) {
  12261. continue;
  12262. }
  12263. var likesCount = 0;
  12264. var commentCount = 0;
  12265. var isLikes = false;
  12266. var commentJson = [];
  12267. var data = b[j];
  12268. if (i == b[j].tool) {
  12269. if (data.type == 2 && a[i].tool[0] == 4) {
  12270. // if(JSON.parse(data.content)[0].anwer){
  12271. var checkL =
  12272. JSON.parse(data.content)[0].anwer instanceof Array
  12273. ? JSON.parse(data.content)[0].anwer
  12274. : JSON.parse(data.content)[0].anwer.split(",");
  12275. for (var z = 0; z < checkL.length; z++) {
  12276. if (!this.checkJson[i][z]) {
  12277. this.checkJson[i].push({
  12278. checkCount: [],
  12279. checkPerson: [],
  12280. rightPerson: [],
  12281. });
  12282. }
  12283. if (!this.checkJson[i][z].checkCount.length) {
  12284. this.checkJson[i][z].checkCount = [];
  12285. let _askItemCount = JSON.parse(data.content)[0].askJson
  12286. .askJson[z].askItem;
  12287. for (var aic = 0; aic < _askItemCount; aic++) {
  12288. this.checkJson[i][z].checkCount.push(0);
  12289. }
  12290. }
  12291. if (checkL[z] instanceof Array) {
  12292. if (
  12293. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  12294. checkL[z].sort().join(",")
  12295. ) {
  12296. this.checkJson[i][z].rightPerson.push(data.name);
  12297. }
  12298. for (var q = 0; q < checkL[z].length; q++) {
  12299. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12300. ? this.checkJson[i][z].checkPerson[
  12301. parseInt(checkL[z][q])
  12302. ].push(data.name)
  12303. : (this.checkJson[i][z].checkPerson[
  12304. parseInt(checkL[z][q])
  12305. ] = [data.name]);
  12306. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12307. ? this.checkJson[i][z].checkCount[
  12308. parseInt(checkL[z][q])
  12309. ]++
  12310. : (this.checkJson[i][z].checkCount[
  12311. parseInt(checkL[z][q])
  12312. ] = 1);
  12313. }
  12314. } else {
  12315. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  12316. this.checkJson[i][z].rightPerson.push(data.name);
  12317. }
  12318. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12319. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12320. ? this.checkJson[i][z].checkPerson[
  12321. parseInt(checkL[z])
  12322. ].push(data.name)
  12323. : (this.checkJson[i][z].checkPerson[
  12324. parseInt(checkL[z])
  12325. ] = [data.name]);
  12326. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12327. ? this.checkJson[i][z].checkCount[
  12328. parseInt(checkL[z])
  12329. ]++
  12330. : (this.checkJson[i][z].checkCount[
  12331. parseInt(checkL[z])
  12332. ] = 1);
  12333. }
  12334. }
  12335. }
  12336. } else if (data.type == 8 && a[i].tool[0] == 45) {
  12337. var checkL = JSON.parse(data.content)[0].anwer;
  12338. for (var z = 0; z < checkL.length; z++) {
  12339. if (!this.checkJson[i][z]) {
  12340. this.checkJson[i].push({
  12341. checkCount: [],
  12342. checkPerson: [],
  12343. rightPerson: [],
  12344. });
  12345. }
  12346. if (!this.checkJson[i][z].checkCount.length) {
  12347. this.checkJson[i][z].checkCount = [];
  12348. let _askItemCount = JSON.parse(data.content)[0].testJson
  12349. .testJson[z].testItem;
  12350. console.log(_askItemCount);
  12351. for (var aic = 0; aic < _askItemCount; aic++) {
  12352. this.checkJson[i][z].checkCount.push(0);
  12353. }
  12354. }
  12355. if (checkL[z] instanceof Array) {
  12356. if (
  12357. JSON.parse(data.content)[0]
  12358. .testJson.testJson[z].answer.sort()
  12359. .join(",") == checkL[z].sort().join(",")
  12360. ) {
  12361. this.checkJson[i][z].rightPerson.push(data.name);
  12362. }
  12363. for (var q = 0; q < checkL[z].length; q++) {
  12364. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12365. ? this.checkJson[i][z].checkPerson[
  12366. parseInt(checkL[z][q])
  12367. ].push(data.name)
  12368. : (this.checkJson[i][z].checkPerson[
  12369. parseInt(checkL[z][q])
  12370. ] = [data.name]);
  12371. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12372. ? this.checkJson[i][z].checkCount[
  12373. parseInt(checkL[z][q])
  12374. ]++
  12375. : (this.checkJson[i][z].checkCount[
  12376. parseInt(checkL[z][q])
  12377. ] = 1);
  12378. }
  12379. } else {
  12380. if (
  12381. JSON.parse(data.content)[0].testJson.testJson[z]
  12382. .answer == checkL[z]
  12383. ) {
  12384. this.checkJson[i][z].rightPerson.push(data.name);
  12385. }
  12386. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12387. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12388. ? this.checkJson[i][z].checkPerson[
  12389. parseInt(checkL[z])
  12390. ].push(data.name)
  12391. : (this.checkJson[i][z].checkPerson[
  12392. parseInt(checkL[z])
  12393. ] = [data.name]);
  12394. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12395. ? this.checkJson[i][z].checkCount[
  12396. parseInt(checkL[z])
  12397. ]++
  12398. : (this.checkJson[i][z].checkCount[
  12399. parseInt(checkL[z])
  12400. ] = 1);
  12401. }
  12402. }
  12403. }
  12404. } else if (data.type == 9 && a[i].tool[0] == 47) {
  12405. var checkL = JSON.parse(data.content);
  12406. for (var z = 0; z < checkL.length; z++) {
  12407. if (!this.checkJson[i][z]) {
  12408. this.checkJson[i].push({
  12409. checkCount: [],
  12410. checkPerson: [],
  12411. rightPerson: [],
  12412. });
  12413. }
  12414. this.checkJson[i][z].checkPerson.push(data.name);
  12415. if (
  12416. checkL[z].chooseSenList.toString() ==
  12417. checkL[z].rightAnswer.toString()
  12418. ) {
  12419. this.checkJson[i][z].rightPerson.push(data.name);
  12420. }
  12421. }
  12422. }
  12423. for (var k = 0; k < d.length; k++) {
  12424. //点赞
  12425. if (d[k].workId == b[j].id) {
  12426. likesCount++;
  12427. if (d[k].likesId == this.userid) {
  12428. isLikes = true;
  12429. }
  12430. }
  12431. }
  12432. for (var l = 0; l < e.length; l++) {
  12433. //评论
  12434. if (e[l].workId == b[j].id) {
  12435. if (e[l].comment != "") {
  12436. commentCount++;
  12437. commentJson.push({
  12438. commentText: e[l].comment,
  12439. commentTime: e[l].commentTime,
  12440. commentPeople: e[l].commentPeople,
  12441. userid: e[l].userid,
  12442. wid: e[l].id,
  12443. });
  12444. }
  12445. }
  12446. }
  12447. if (
  12448. (b[j].type == 1 ||
  12449. b[j].type == 4 ||
  12450. b[j].type == 5 ||
  12451. b[j].type == 6 ||
  12452. b[j].type == 12 ||
  12453. b[j].type == 7) &&
  12454. a[i].tool[0] != 15 &&
  12455. a[i].tool[0] != 4 &&
  12456. a[i].tool[0] != 45 &&
  12457. a[i].tool[0] != 50 &&
  12458. a[i].tool[0] != 32 &&
  12459. a[i].tool[0] != 57 &&
  12460. a[i].tool[0] != 52
  12461. ) {
  12462. if (
  12463. c.indexOf(
  12464. b[j].content
  12465. .split(".")
  12466. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12467. ) != -1 &&
  12468. a[i].tool[0] == 16 &&
  12469. b[j].atool != 50
  12470. ) {
  12471. let _works = {
  12472. userid: b[j].userid,
  12473. ateacher: b[j].ateacher,
  12474. wid: b[j].id,
  12475. works: b[j].content,
  12476. sName: b[j].name,
  12477. type: 1,
  12478. time: b[j].time,
  12479. score: b[j].score,
  12480. img: b[j].img,
  12481. likesCount: likesCount,
  12482. commentCount: commentCount,
  12483. isLikes: isLikes,
  12484. commentJson: commentJson,
  12485. };
  12486. if (this.isGroup) {
  12487. let isGw = 1;
  12488. for (
  12489. var groupI = 0;
  12490. groupI < this.courseGroup.group.length;
  12491. groupI++
  12492. ) {
  12493. let gid = this.courseGroup.group[groupI].id;
  12494. if (
  12495. this.courseGroupStudentUid[gid].indexOf(
  12496. b[j].userid
  12497. ) != -1
  12498. ) {
  12499. isGw = 2;
  12500. this.courseGroup.group[groupI].works[i].push(_works);
  12501. break;
  12502. }
  12503. }
  12504. if (isGw == 1) {
  12505. _worksStudent[i].push(_works);
  12506. }
  12507. } else {
  12508. _worksStudent[i].push(_works);
  12509. }
  12510. this.isWorksS[i].push({
  12511. uid: b[j].userid,
  12512. sName: b[j].name,
  12513. });
  12514. } else if (
  12515. y.indexOf(
  12516. b[j].content
  12517. .split(".")
  12518. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12519. ) != -1 &&
  12520. a[i].tool[0] == 16 &&
  12521. b[j].atool != 50
  12522. ) {
  12523. let _works = {
  12524. userid: b[j].userid,
  12525. ateacher: b[j].ateacher,
  12526. wid: b[j].id,
  12527. works: b[j].content,
  12528. sName: b[j].name,
  12529. type: 3,
  12530. time: b[j].time,
  12531. score: b[j].score,
  12532. img: b[j].img,
  12533. likesCount: likesCount,
  12534. commentCount: commentCount,
  12535. isLikes: isLikes,
  12536. commentJson: commentJson,
  12537. };
  12538. if (this.isGroup) {
  12539. let isGw = 1;
  12540. for (
  12541. var groupI = 0;
  12542. groupI < this.courseGroup.group.length;
  12543. groupI++
  12544. ) {
  12545. let gid = this.courseGroup.group[groupI].id;
  12546. if (
  12547. this.courseGroupStudentUid[gid].indexOf(
  12548. b[j].userid
  12549. ) != -1
  12550. ) {
  12551. isGw = 2;
  12552. this.courseGroup.group[groupI].works[i].push(_works);
  12553. break;
  12554. }
  12555. }
  12556. if (isGw == 1) {
  12557. _worksStudent[i].push(_works);
  12558. }
  12559. } else {
  12560. _worksStudent[i].push(_works);
  12561. }
  12562. this.isWorksS[i].push({
  12563. uid: b[j].userid,
  12564. sName: b[j].name,
  12565. });
  12566. } else if (b[j].type == 6 && b[j].atool != 50) {
  12567. _worksStudent[i].push({
  12568. userid: b[j].userid,
  12569. ateacher: b[j].ateacher,
  12570. wid: b[j].id,
  12571. works: b[j].content,
  12572. sName: b[j].name,
  12573. type: 4,
  12574. time: b[j].time,
  12575. score: b[j].score,
  12576. img: b[j].img,
  12577. likesCount: likesCount,
  12578. commentCount: commentCount,
  12579. isLikes: isLikes,
  12580. commentJson: commentJson,
  12581. });
  12582. this.isWorksS[i].push({
  12583. uid: b[j].userid,
  12584. sName: b[j].name,
  12585. });
  12586. } else if (b[j].type == 7 && b[j].atool != 50) {
  12587. _worksStudent[i].push({
  12588. userid: b[j].userid,
  12589. ateacher: b[j].ateacher,
  12590. wid: b[j].id,
  12591. works: b[j].content,
  12592. sName: b[j].name,
  12593. type: 5,
  12594. time: b[j].time,
  12595. score: b[j].score,
  12596. img: b[j].img,
  12597. likesCount: likesCount,
  12598. commentCount: commentCount,
  12599. isLikes: isLikes,
  12600. commentJson: commentJson,
  12601. });
  12602. this.isWorksS[i].push({
  12603. uid: b[j].userid,
  12604. sName: b[j].name,
  12605. });
  12606. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  12607. let _works = {
  12608. userid: b[j].userid,
  12609. ateacher: b[j].ateacher,
  12610. wid: b[j].id,
  12611. works: b[j].content,
  12612. sName: b[j].name,
  12613. type: 12,
  12614. time: b[j].time,
  12615. score: b[j].score,
  12616. img: b[j].img,
  12617. likesCount: likesCount,
  12618. commentCount: commentCount,
  12619. isLikes: isLikes,
  12620. commentJson: commentJson,
  12621. };
  12622. if (this.isGroup) {
  12623. let isGw = 1;
  12624. for (
  12625. var groupI = 0;
  12626. groupI < this.courseGroup.group.length;
  12627. groupI++
  12628. ) {
  12629. let gid = this.courseGroup.group[groupI].id;
  12630. if (
  12631. this.courseGroupStudentUid[gid].indexOf(
  12632. b[j].userid
  12633. ) != -1
  12634. ) {
  12635. isGw = 2;
  12636. this.courseGroup.group[groupI].works[i].push(_works);
  12637. break;
  12638. }
  12639. }
  12640. if (isGw == 1) {
  12641. _worksStudent[i].push(_works);
  12642. }
  12643. } else {
  12644. _worksStudent[i].push(_works);
  12645. }
  12646. this.isWorksS[i].push({
  12647. uid: b[j].userid,
  12648. sName: b[j].name,
  12649. });
  12650. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  12651. let _works = {
  12652. userid: b[j].userid,
  12653. ateacher: b[j].ateacher,
  12654. wid: b[j].id,
  12655. works: b[j].content,
  12656. sName: b[j].name,
  12657. type: 0,
  12658. time: b[j].time,
  12659. score: b[j].score,
  12660. img: b[j].img,
  12661. likesCount: likesCount,
  12662. commentCount: commentCount,
  12663. isLikes: isLikes,
  12664. commentJson: commentJson,
  12665. };
  12666. if (this.isGroup) {
  12667. let isGw = 1;
  12668. for (
  12669. var groupI = 0;
  12670. groupI < this.courseGroup.group.length;
  12671. groupI++
  12672. ) {
  12673. let gid = this.courseGroup.group[groupI].id;
  12674. if (
  12675. this.courseGroupStudentUid[gid].indexOf(
  12676. b[j].userid
  12677. ) != -1
  12678. ) {
  12679. isGw = 2;
  12680. this.courseGroup.group[groupI].works[i].push(_works);
  12681. break;
  12682. }
  12683. }
  12684. if (isGw == 1) {
  12685. _worksStudent[i].push(_works);
  12686. }
  12687. } else {
  12688. _worksStudent[i].push(_works);
  12689. }
  12690. this.isWorksS[i].push({
  12691. uid: b[j].userid,
  12692. sName: b[j].name,
  12693. });
  12694. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  12695. let _works = {
  12696. userid: b[j].userid,
  12697. ateacher: b[j].ateacher,
  12698. wid: b[j].id,
  12699. works: b[j].content,
  12700. sName: b[j].name,
  12701. type: 0,
  12702. time: b[j].time,
  12703. score: b[j].score,
  12704. img: b[j].img,
  12705. likesCount: likesCount,
  12706. commentCount: commentCount,
  12707. isLikes: isLikes,
  12708. commentJson: commentJson,
  12709. };
  12710. if (this.isGroup) {
  12711. let isGw = 1;
  12712. for (
  12713. var groupI = 0;
  12714. groupI < this.courseGroup.group.length;
  12715. groupI++
  12716. ) {
  12717. let gid = this.courseGroup.group[groupI].id;
  12718. if (
  12719. this.courseGroupStudentUid[gid].indexOf(
  12720. b[j].userid
  12721. ) != -1
  12722. ) {
  12723. isGw = 2;
  12724. this.courseGroup.group[groupI].works[i].push(_works);
  12725. break;
  12726. }
  12727. }
  12728. if (isGw == 1) {
  12729. _worksStudent[i].push(_works);
  12730. }
  12731. } else {
  12732. _worksStudent[i].push(_works);
  12733. }
  12734. this.isWorksS[i].push({
  12735. uid: b[j].userid,
  12736. sName: b[j].name,
  12737. });
  12738. }
  12739. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  12740. let _works = {
  12741. userid: b[j].userid,
  12742. ateacher: b[j].ateacher,
  12743. wid: b[j].id,
  12744. works: b[j].content,
  12745. sName: b[j].name,
  12746. type: 2,
  12747. time: b[j].time,
  12748. score: b[j].score,
  12749. img: b[j].img,
  12750. likesCount: likesCount,
  12751. commentCount: commentCount,
  12752. isLikes: isLikes,
  12753. commentJson: commentJson,
  12754. };
  12755. if (this.isGroup) {
  12756. let isGw = 1;
  12757. for (
  12758. var groupI = 0;
  12759. groupI < this.courseGroup.group.length;
  12760. groupI++
  12761. ) {
  12762. let gid = this.courseGroup.group[groupI].id;
  12763. if (
  12764. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  12765. -1
  12766. ) {
  12767. isGw = 2;
  12768. this.courseGroup.group[groupI].works[i].push(_works);
  12769. break;
  12770. }
  12771. }
  12772. if (isGw == 1) {
  12773. _worksStudent[i].push(_works);
  12774. }
  12775. } else {
  12776. _worksStudent[i].push(_works);
  12777. }
  12778. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12779. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  12780. //问卷
  12781. _worksStudent[i].push({
  12782. userid: b[j].userid,
  12783. ateacher: b[j].ateacher,
  12784. wid: b[j].id,
  12785. works: b[j].content,
  12786. sName: b[j].name,
  12787. type: 2,
  12788. time: b[j].time,
  12789. score: b[j].score,
  12790. img: b[j].img,
  12791. likesCount: likesCount,
  12792. commentCount: commentCount,
  12793. isLikes: isLikes,
  12794. commentJson: commentJson,
  12795. });
  12796. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12797. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  12798. //选择题
  12799. _worksStudent[i].push({
  12800. userid: b[j].userid,
  12801. ateacher: b[j].ateacher,
  12802. wid: b[j].id,
  12803. works: b[j].content,
  12804. sName: b[j].name,
  12805. type: 8,
  12806. time: b[j].time,
  12807. score: b[j].score,
  12808. img: b[j].img,
  12809. likesCount: likesCount,
  12810. commentCount: commentCount,
  12811. isLikes: isLikes,
  12812. commentJson: commentJson,
  12813. });
  12814. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12815. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  12816. //选择题
  12817. _worksStudent[i].push({
  12818. userid: b[j].userid,
  12819. ateacher: b[j].ateacher,
  12820. wid: b[j].id,
  12821. works: b[j].content,
  12822. sName: b[j].name,
  12823. type: 9,
  12824. time: b[j].time,
  12825. score: b[j].score,
  12826. img: b[j].img,
  12827. likesCount: likesCount,
  12828. commentCount: commentCount,
  12829. isLikes: isLikes,
  12830. commentJson: commentJson,
  12831. });
  12832. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12833. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  12834. //选择题
  12835. _worksStudent[i].push({
  12836. userid: b[j].userid,
  12837. ateacher: b[j].ateacher,
  12838. wid: b[j].id,
  12839. works: b[j].content,
  12840. sName: b[j].name,
  12841. type: 10,
  12842. time: b[j].time,
  12843. score: b[j].score,
  12844. img: b[j].img,
  12845. likesCount: likesCount,
  12846. commentCount: commentCount,
  12847. isLikes: isLikes,
  12848. commentJson: commentJson,
  12849. });
  12850. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12851. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  12852. //选择题
  12853. _worksStudent[i].push({
  12854. userid: b[j].userid,
  12855. ateacher: b[j].ateacher,
  12856. wid: b[j].id,
  12857. works: b[j].content,
  12858. sName: b[j].name,
  12859. type: 13,
  12860. time: b[j].time,
  12861. score: b[j].score,
  12862. img: b[j].img,
  12863. likesCount: likesCount,
  12864. commentCount: commentCount,
  12865. isLikes: isLikes,
  12866. commentJson: commentJson,
  12867. });
  12868. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12869. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  12870. let _gindex = JSON.parse(b[j].content);
  12871. if (
  12872. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  12873. b[j].userid
  12874. ) != -1
  12875. ) {
  12876. _worksStudent[i][_gindex.groupIndex].push({
  12877. userid: b[j].userid,
  12878. ateacher: b[j].ateacher,
  12879. wid: b[j].id,
  12880. works: _gindex.url,
  12881. sName: b[j].name,
  12882. type: _gindex.type,
  12883. time: b[j].time,
  12884. score: b[j].score,
  12885. img: b[j].img,
  12886. likesCount: likesCount,
  12887. commentCount: commentCount,
  12888. isLikes: isLikes,
  12889. commentJson: commentJson,
  12890. });
  12891. }
  12892. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12893. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  12894. _worksStudent[i].push({
  12895. userid: b[j].userid,
  12896. ateacher: b[j].ateacher,
  12897. wid: b[j].id,
  12898. works: b[j].content,
  12899. sName: b[j].name ? b[j].name : b[j].userid,
  12900. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  12901. time: b[j].time,
  12902. score: b[j].score,
  12903. img: b[j].img,
  12904. likesCount: likesCount,
  12905. commentCount: commentCount,
  12906. isLikes: isLikes,
  12907. commentJson: commentJson,
  12908. });
  12909. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12910. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  12911. _worksStudent[i].push({
  12912. userid: b[j].userid,
  12913. ateacher: b[j].ateacher,
  12914. wid: b[j].id,
  12915. works: b[j].content,
  12916. sName: b[j].name ? b[j].name : b[j].userid,
  12917. type: 12,
  12918. time: b[j].time,
  12919. score: b[j].score,
  12920. img: b[j].img,
  12921. likesCount: likesCount,
  12922. commentCount: commentCount,
  12923. isLikes: isLikes,
  12924. commentJson: commentJson,
  12925. });
  12926. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12927. } else if (
  12928. a[i].tool[0] == 57 &&
  12929. b[j].atool == 57 &&
  12930. b[j].type == 12
  12931. ) {
  12932. _worksStudent[i].push({
  12933. userid: b[j].userid,
  12934. ateacher: b[j].ateacher,
  12935. wid: b[j].id,
  12936. works: b[j].content,
  12937. sName: b[j].name ? b[j].name : b[j].userid,
  12938. type: 12,
  12939. time: b[j].time,
  12940. score: b[j].score,
  12941. img: b[j].img,
  12942. likesCount: likesCount,
  12943. commentCount: commentCount,
  12944. isLikes: isLikes,
  12945. commentJson: commentJson,
  12946. });
  12947. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12948. } else if (
  12949. a[i].tool[0] == 57 &&
  12950. b[j].atool == 57 &&
  12951. b[j].type == 15
  12952. ) {
  12953. _worksStudent[i].push({
  12954. userid: b[j].userid,
  12955. ateacher: b[j].ateacher,
  12956. wid: b[j].id,
  12957. works: b[j].content,
  12958. sName: b[j].name ? b[j].name : b[j].userid,
  12959. type: 15,
  12960. time: b[j].time,
  12961. score: b[j].score,
  12962. img: b[j].img,
  12963. likesCount: likesCount,
  12964. commentCount: commentCount,
  12965. isLikes: isLikes,
  12966. commentJson: commentJson,
  12967. });
  12968. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12969. }
  12970. }
  12971. }
  12972. if (_worksStudent[i] && _worksStudent[i].length) {
  12973. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  12974. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  12975. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  12976. var scoreA = parseFloat(jscoreA);
  12977. var scoreB = parseFloat(jscoreB);
  12978. if (scoreA == scoreB) {
  12979. return b.likesCount - a.likesCount;
  12980. }
  12981. return scoreB - scoreA;
  12982. });
  12983. if (this.isGroup) {
  12984. for (
  12985. var groupI = 0;
  12986. groupI < this.courseGroup.group.length;
  12987. groupI++
  12988. ) {
  12989. this.courseGroup.group[groupI].works[i] =
  12990. this.courseGroup.group[groupI].works[i].sort(function (
  12991. a,
  12992. b
  12993. ) {
  12994. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  12995. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  12996. var scoreA = parseFloat(jscoreA);
  12997. var scoreB = parseFloat(jscoreB);
  12998. if (scoreA == scoreB) {
  12999. return b.likesCount - a.likesCount;
  13000. }
  13001. return scoreB - scoreA;
  13002. });
  13003. }
  13004. }
  13005. }
  13006. }
  13007. for (var i = 0; i < a.length; i++) {
  13008. for (var j = 0; j < b.length; j++) {
  13009. var data = b[j];
  13010. if (i == b[j].tool) {
  13011. if (data.type == 2 || data.type == 8) {
  13012. for (var z = 0; z < this.checkJson[i].length; z++) {
  13013. this.checkJson[i][z].checkPerent = [];
  13014. this.checkJson[i][z].right = Math.round(
  13015. (this.checkJson[i][z].rightPerson.length /
  13016. parseInt(_worksStudent[i].length)) *
  13017. 100
  13018. );
  13019. let aaaa = this.checkJson[i][z];
  13020. console.log(aaaa);
  13021. for (
  13022. var k = 0;
  13023. k < this.checkJson[i][z].checkCount.length;
  13024. k++
  13025. ) {
  13026. this.checkJson[i][z].checkPerent.push(
  13027. Math.round(
  13028. (this.checkJson[i][z].checkCount[k] /
  13029. parseInt(_worksStudent[i].length)) *
  13030. 100
  13031. )
  13032. );
  13033. }
  13034. }
  13035. } else if (data.type == 9) {
  13036. for (var z = 0; z < this.checkJson[i].length; z++) {
  13037. this.checkJson[i][z].checkPerent = [];
  13038. this.checkJson[i][z].right = Math.round(
  13039. (this.checkJson[i][z].rightPerson.length /
  13040. this.checkJson[i][z].checkPerson.length) *
  13041. 100
  13042. );
  13043. }
  13044. }
  13045. }
  13046. }
  13047. }
  13048. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13049. this.joinGroup(gindex);
  13050. }
  13051. this.worksStudent = _worksStudent;
  13052. this.selectWorksStudent();
  13053. })
  13054. .catch((err) => {
  13055. console.error(err);
  13056. });
  13057. },
  13058. pngToWhiteBg(file) {
  13059. const _file = file;
  13060. let read = new FileReader();
  13061. read.readAsDataURL(file); // 文件转base64
  13062. return new Promise((resolve, reject) => {
  13063. read.onload = (e) => {
  13064. let img = new Image();
  13065. img.src = e.target.result;
  13066. img.onload = async () => {
  13067. // 生成canvas
  13068. let canvas = document.createElement("canvas");
  13069. let context = canvas.getContext("2d");
  13070. // 绘制图片到canvas上
  13071. canvas.width = img.width;
  13072. canvas.height = img.height;
  13073. // 在canvas绘制前填充白色背景
  13074. context.fillStyle = "#fff";
  13075. context.fillRect(0, 0, canvas.width, canvas.height);
  13076. context.drawImage(img, 0, 0);
  13077. let base64 = canvas.toDataURL(file["type"], 1);
  13078. let newFile = this.dataUrlToFile(base64, _file);
  13079. resolve(newFile);
  13080. };
  13081. };
  13082. });
  13083. },
  13084. dataUrlToFile(dataurl, file) {
  13085. let arr = dataurl.split(","),
  13086. mime = arr[0].match(/:(.*?);/)[1],
  13087. bstr = atob(arr[1]),
  13088. n = bstr.length,
  13089. u8arr = new Uint8Array(n);
  13090. while (n--) {
  13091. u8arr[n] = bstr.charCodeAt(n);
  13092. }
  13093. // return new Blob([u8arr], { type: mime });
  13094. return new File([new Blob([u8arr], { type: mime })], file.name, {
  13095. type: mime,
  13096. });
  13097. },
  13098. async beforeUpload1(event, type, i) {
  13099. // this.$message.success('进入上传')
  13100. var file = "";
  13101. if (type == 5) {
  13102. file = event;
  13103. } else {
  13104. file = event.target.files[0];
  13105. }
  13106. var credentials = {
  13107. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13108. secretAccessKey: "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",
  13109. }; //秘钥形式的登录上传
  13110. window.AWS.config.update(credentials);
  13111. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13112. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13113. var _this = this;
  13114. _this.progress = 0;
  13115. _this.proVisible = true;
  13116. _this.isFinishSize = 0;
  13117. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13118. var b = [
  13119. "DOC",
  13120. "DOCX",
  13121. "DOCM",
  13122. "DOTM",
  13123. "DOTX",
  13124. "PPTX",
  13125. "PPSX",
  13126. "PPT",
  13127. "PPS",
  13128. "PPTM",
  13129. "POTM",
  13130. "PPAM",
  13131. "POTX",
  13132. "PPSM",
  13133. ];
  13134. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13135. var photoA = [
  13136. "BMP",
  13137. "GIF",
  13138. "PNG",
  13139. "JPGE",
  13140. "JPEG",
  13141. "JPG",
  13142. "TIF",
  13143. "PCX",
  13144. "TGA",
  13145. "EXIF",
  13146. "FPX",
  13147. "SVG",
  13148. "APNG",
  13149. ];
  13150. // if (
  13151. // b.indexOf(
  13152. // file.name
  13153. // .split(".")
  13154. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13155. // ) != -1
  13156. // ) {
  13157. // if (file.size / 1024 / 1024 > 10) {
  13158. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13159. // return;
  13160. // }
  13161. // } else if (
  13162. // excelA.indexOf(
  13163. // file.name
  13164. // .split(".")
  13165. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13166. // ) != "-1"
  13167. // ) {
  13168. // if (file.size / 1024 / 1024 > 5) {
  13169. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13170. // return;
  13171. // }
  13172. // }
  13173. if (
  13174. photoA.indexOf(
  13175. file.name
  13176. .split(".")
  13177. [file.name.split(".").length - 1].toLocaleUpperCase()
  13178. ) != -1 &&
  13179. type != 4
  13180. ) {
  13181. // const blob = await imageConversion.compress(file, 0.8)
  13182. file = await this.pngToWhiteBg(file);
  13183. const blob = await imageConversion.compressAccurately(file, 256);
  13184. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13185. file = new File([blob], file.name, { type: file.type });
  13186. }
  13187. if (file) {
  13188. var params = {
  13189. Key:
  13190. file.name.split(".")[0] +
  13191. new Date().getTime() +
  13192. "." +
  13193. file.name.split(".")[file.name.split(".").length - 1],
  13194. ContentType: file.type,
  13195. Body: file,
  13196. "Access-Control-Allow-Credentials": "*",
  13197. ACL: "public-read",
  13198. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13199. var options = {
  13200. // partSize: 2048 * 1024 * 1024,
  13201. partSize: 1024 * 1024 * 1024,
  13202. queueSize: 2,
  13203. leavePartsOnError: true,
  13204. };
  13205. bucket
  13206. .upload(params, options)
  13207. .on("httpUploadProgress", function (evt) {
  13208. //这里可以写进度条
  13209. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13210. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  13211. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  13212. })
  13213. .send(function (err, data) {
  13214. _this.progress = 100;
  13215. _this.isFinishSize = _this.isAllSize;
  13216. setTimeout(() => {
  13217. _this.proVisible = false;
  13218. }, 1000);
  13219. if (err) {
  13220. var a = _this.$refs.upload1.uploadFiles;
  13221. a.splice(a.length - 1, a.length);
  13222. _this.$message.error("上传失败");
  13223. } else {
  13224. // _this.$message.success('上传成功')
  13225. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13226. var c = [
  13227. "AVI",
  13228. "NAVI",
  13229. "MPEG",
  13230. "ASF",
  13231. "MOV",
  13232. "WMV",
  13233. "3GP",
  13234. "RM",
  13235. "RMVB",
  13236. "FLV",
  13237. "F4V",
  13238. "H.264",
  13239. "H.265",
  13240. "REAL VIDEO",
  13241. "MKV",
  13242. "WebM",
  13243. "HDDVD",
  13244. "MP4",
  13245. "MPG",
  13246. "M4V",
  13247. "MGV",
  13248. "OGV",
  13249. "QTM",
  13250. "STR",
  13251. "AMC",
  13252. "DVX",
  13253. "EVO",
  13254. "DAT",
  13255. "OGG",
  13256. "OGM",
  13257. ];
  13258. if (type == 1) {
  13259. _this.studyJuri[0].cover.push({
  13260. name: file.name,
  13261. url: data.Location,
  13262. uid: file.uid,
  13263. });
  13264. if (
  13265. c.indexOf(
  13266. _this.studyJuri[0].cover[0].url
  13267. .split(".")
  13268. [
  13269. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13270. ].toLocaleUpperCase()
  13271. ) != -1
  13272. ) {
  13273. _this.fileType = 2;
  13274. } else if (
  13275. b.indexOf(
  13276. _this.studyJuri[0].cover[0].url
  13277. .split(".")
  13278. [
  13279. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13280. ].toLocaleUpperCase()
  13281. ) != -1
  13282. ) {
  13283. _this.fileType = 1;
  13284. } else if (
  13285. photoA.indexOf(
  13286. _this.studyJuri[0].cover[0].url
  13287. .split(".")
  13288. [
  13289. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13290. ].toLocaleUpperCase()
  13291. ) != -1
  13292. ) {
  13293. _this.fileType = 0;
  13294. } else {
  13295. _this.fileType = 3;
  13296. }
  13297. _this.imgChange(null, null, type);
  13298. } else if (type == 2) {
  13299. _this.upToolImg = data.Location;
  13300. _this.imgChange(null, null, type);
  13301. _this.addCourseWorks(i);
  13302. } else if (type == 4) {
  13303. _this.addPz("3", data.Location);
  13304. } else if (type == 5) {
  13305. _this.addImgDrawImG(data.Location);
  13306. } else if (type == 6) {
  13307. var _ftype = 1;
  13308. if (
  13309. c.indexOf(
  13310. data.Location.split(".")[
  13311. data.Location.split(".").length - 1
  13312. ].toLocaleUpperCase()
  13313. ) != -1
  13314. ) {
  13315. _ftype = 5;
  13316. } else if (
  13317. b.indexOf(
  13318. data.Location.split(".")[
  13319. data.Location.split(".").length - 1
  13320. ].toLocaleUpperCase()
  13321. ) != -1
  13322. ) {
  13323. _ftype = 4;
  13324. } else {
  13325. _ftype = 1;
  13326. }
  13327. _this.plworkFile.push({
  13328. name: file.name,
  13329. url: data.Location,
  13330. uid: file.uid,
  13331. fileType: _ftype,
  13332. username:
  13333. _this.plworkFile.length > 10
  13334. ? _this.plworkFile.length + 1
  13335. : "0" + (_this.plworkFile.length + 1),
  13336. });
  13337. } else if (type == 7) {
  13338. _this.addCourseWorksGong(i, data.Location, 32);
  13339. } else if (type == 8) {
  13340. _this.addCourseWorksGong(i, data.Location, 57);
  13341. }
  13342. _this.imgChange(null, null, type);
  13343. console.log(data.Location);
  13344. // _this.$message.success('上传成功'+data.Location)
  13345. }
  13346. });
  13347. }
  13348. },
  13349. async beforeUpload3(event, type, i) {
  13350. // this.$message.success('进入上传')
  13351. let file = "";
  13352. let cfindex2 = 0;
  13353. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  13354. file = event.target.files[cfindex];
  13355. var credentials = {
  13356. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13357. secretAccessKey: "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",
  13358. }; //秘钥形式的登录上传
  13359. window.AWS.config.update(credentials);
  13360. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13361. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13362. var _this = this;
  13363. // _this.progress = 0;
  13364. _this.proVisible2 = true;
  13365. var b = [
  13366. "DOC",
  13367. "DOCX",
  13368. "DOCM",
  13369. "DOTM",
  13370. "DOTX",
  13371. "PPTX",
  13372. "PPSX",
  13373. "PPT",
  13374. "PPS",
  13375. "PPTM",
  13376. "POTM",
  13377. "PPAM",
  13378. "POTX",
  13379. "PPSM",
  13380. ];
  13381. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13382. var photoA = [
  13383. "BMP",
  13384. "GIF",
  13385. "PNG",
  13386. "JPGE",
  13387. "JPG",
  13388. "TIF",
  13389. "PCX",
  13390. "TGA",
  13391. "EXIF",
  13392. "FPX",
  13393. "SVG",
  13394. "APNG",
  13395. ];
  13396. if (
  13397. photoA.indexOf(
  13398. file.name
  13399. .split(".")
  13400. [file.name.split(".").length - 1].toLocaleUpperCase()
  13401. ) != -1 &&
  13402. type != 4
  13403. ) {
  13404. // const blob = await imageConversion.compress(file, 0.8)
  13405. file = await this.pngToWhiteBg(file);
  13406. const blob = await imageConversion.compressAccurately(file, 256);
  13407. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13408. file = new File([blob], file.name, { type: file.type });
  13409. }
  13410. if (file) {
  13411. var params = {
  13412. Key:
  13413. file.name.split(".")[0] +
  13414. new Date().getTime() +
  13415. "." +
  13416. file.name.split(".")[file.name.split(".").length - 1],
  13417. ContentType: file.type,
  13418. Body: file,
  13419. "Access-Control-Allow-Credentials": "*",
  13420. ACL: "public-read",
  13421. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13422. var options = {
  13423. // partSize: 2048 * 1024 * 1024,
  13424. partSize: 1024 * 1024 * 1024,
  13425. queueSize: 2,
  13426. leavePartsOnError: true,
  13427. };
  13428. bucket
  13429. .upload(params, options)
  13430. .on("httpUploadProgress", function (evt) {
  13431. //这里可以写进度条
  13432. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13433. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13434. })
  13435. .send(function (err, data) {
  13436. // _this.progress = 100;
  13437. cfindex2++;
  13438. setTimeout(() => {
  13439. if (
  13440. cfindex2 == event.target.files.length - 1 ||
  13441. cfindex2 > event.target.files.length - 1
  13442. ) {
  13443. _this.proVisible2 = false;
  13444. }
  13445. }, 1000);
  13446. if (err) {
  13447. var a = _this.$refs.upload1.uploadFiles;
  13448. a.splice(a.length - 1, a.length);
  13449. _this.$message.error("上传失败");
  13450. } else {
  13451. // _this.$message.success('上传成功')
  13452. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13453. var c = [
  13454. "AVI",
  13455. "NAVI",
  13456. "MPEG",
  13457. "ASF",
  13458. "MOV",
  13459. "WMV",
  13460. "3GP",
  13461. "RM",
  13462. "RMVB",
  13463. "FLV",
  13464. "F4V",
  13465. "H.264",
  13466. "H.265",
  13467. "REAL VIDEO",
  13468. "MKV",
  13469. "WebM",
  13470. "HDDVD",
  13471. "MP4",
  13472. "MPG",
  13473. "M4V",
  13474. "MGV",
  13475. "OGV",
  13476. "QTM",
  13477. "STR",
  13478. "AMC",
  13479. "DVX",
  13480. "EVO",
  13481. "DAT",
  13482. "OGG",
  13483. "OGM",
  13484. ];
  13485. if (type == 1) {
  13486. _this.studyJuri[0].cover.push({
  13487. name: file.name,
  13488. url: data.Location,
  13489. uid: file.uid,
  13490. });
  13491. if (
  13492. c.indexOf(
  13493. _this.studyJuri[0].cover[0].url
  13494. .split(".")
  13495. [
  13496. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13497. ].toLocaleUpperCase()
  13498. ) != -1
  13499. ) {
  13500. _this.fileType = 2;
  13501. } else if (
  13502. b.indexOf(
  13503. _this.studyJuri[0].cover[0].url
  13504. .split(".")
  13505. [
  13506. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13507. ].toLocaleUpperCase()
  13508. ) != -1
  13509. ) {
  13510. _this.fileType = 1;
  13511. } else {
  13512. _this.fileType = 0;
  13513. }
  13514. _this.imgChange(null, null, type);
  13515. } else if (type == 2) {
  13516. _this.upToolImg = data.Location;
  13517. _this.imgChange(null, null, type);
  13518. _this.addCourseWorks(i);
  13519. } else if (type == 4) {
  13520. _this.addPz("3", data.Location);
  13521. } else if (type == 5) {
  13522. _this.addImgDrawImG(data.Location);
  13523. } else if (type == 6) {
  13524. var _ftype = 1;
  13525. if (
  13526. c.indexOf(
  13527. data.Location.split(".")[
  13528. data.Location.split(".").length - 1
  13529. ].toLocaleUpperCase()
  13530. ) != -1
  13531. ) {
  13532. _ftype = 5;
  13533. } else if (
  13534. b.indexOf(
  13535. data.Location.split(".")[
  13536. data.Location.split(".").length - 1
  13537. ].toLocaleUpperCase()
  13538. ) != -1
  13539. ) {
  13540. _ftype = 4;
  13541. } else {
  13542. _ftype = 1;
  13543. }
  13544. _this.plworkFile.push({
  13545. name: file.name,
  13546. url: data.Location,
  13547. uid: file.uid,
  13548. fileType: _ftype,
  13549. username:
  13550. _this.plworkFile.length + 1 > 9
  13551. ? _this.plworkFile.length + 1
  13552. : "0" + (_this.plworkFile.length + 1),
  13553. });
  13554. }
  13555. _this.imgChange(null, null, type);
  13556. console.log(data.Location);
  13557. // _this.$message.success('上传成功'+data.Location)
  13558. }
  13559. });
  13560. }
  13561. }
  13562. },
  13563. beforeUpload2(event, type) {
  13564. var file = event.target.files[0];
  13565. var credentials = {
  13566. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13567. secretAccessKey: "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",
  13568. }; //秘钥形式的登录上传
  13569. window.AWS.config.update(credentials);
  13570. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13571. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13572. var _this = this;
  13573. _this.progress = 0;
  13574. _this.proVisible = true;
  13575. if (file) {
  13576. var params = {
  13577. Key:
  13578. file.name.split(".")[0] +
  13579. new Date().getTime() +
  13580. "." +
  13581. file.name.split(".")[file.name.split(".").length - 1],
  13582. ContentType: file.type,
  13583. Body: file,
  13584. "Access-Control-Allow-Credentials": "*",
  13585. ACL: "public-read",
  13586. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13587. var options = {
  13588. partSize: 2048 * 1024 * 1024,
  13589. queueSize: 2,
  13590. leavePartsOnError: true,
  13591. };
  13592. bucket
  13593. .upload(params, options)
  13594. .on("httpUploadProgress", function (evt) {
  13595. //这里可以写进度条
  13596. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13597. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13598. })
  13599. .send(function (err, data) {
  13600. _this.progress = 100;
  13601. setTimeout(() => {
  13602. _this.proVisible = false;
  13603. }, 1000);
  13604. if (err) {
  13605. var a = _this.$refs.upload1.uploadFiles;
  13606. a.splice(a.length - 1, a.length);
  13607. _this.$message.error("上传失败");
  13608. } else {
  13609. if (type == 2) {
  13610. _this.studyJuri[0].upVedio.push({
  13611. name: file.name,
  13612. url: data.Location,
  13613. uid: file.uid,
  13614. });
  13615. _this.imgChange(null, null, type);
  13616. } else if (type == 3) {
  13617. _this.studyJuri[0].upFile.push({
  13618. name: file.name,
  13619. url: data.Location,
  13620. uid: file.uid,
  13621. });
  13622. _this.imgChange(null, null, type);
  13623. }
  13624. console.log(data.Location);
  13625. }
  13626. });
  13627. }
  13628. },
  13629. allScrell() {
  13630. window.parent.postMessage({ allScreen: this.screenType }, "*");
  13631. },
  13632. nextOrpreSteps(t) {
  13633. if (this.IsFollow && this.tType == 2) {
  13634. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13635. return;
  13636. }
  13637. var b = this.chapInfoList.length - 1;
  13638. if (t == 0) {
  13639. if (this.courseType == 0) {
  13640. if (this.taskCount == 0) {
  13641. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  13642. if (this.IsLookOpen) {
  13643. if (
  13644. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  13645. ) {
  13646. if (
  13647. this.courseDetail.userid != this.userid &&
  13648. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  13649. ) {
  13650. this.$message.error("任务未解锁");
  13651. } else {
  13652. this.$message.error("上一任务未解锁");
  13653. }
  13654. return;
  13655. }
  13656. }
  13657. this.navList[this.courseType].isOpen = false;
  13658. this.courseType = b;
  13659. this.taskCount =
  13660. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13661. .length - 1;
  13662. this.navList[this.courseType].isOpen = true;
  13663. } else {
  13664. this.taskCount--;
  13665. }
  13666. } else {
  13667. if (this.taskCount == 0) {
  13668. this.navList[this.courseType].isOpen = false;
  13669. this.courseType--;
  13670. this.taskCount =
  13671. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13672. .length - 1;
  13673. this.navList[this.courseType].isOpen = true;
  13674. } else {
  13675. this.taskCount--;
  13676. }
  13677. }
  13678. } else {
  13679. if (this.courseType == b) {
  13680. if (
  13681. this.taskCount ==
  13682. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  13683. 1
  13684. ) {
  13685. this.navList[this.courseType].isOpen = false;
  13686. this.courseType = 0;
  13687. this.taskCount = 0;
  13688. this.navList[this.courseType].isOpen = true;
  13689. } else {
  13690. var bbb = parseInt(this.taskCount) + 1;
  13691. if (
  13692. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  13693. .isLook &&
  13694. this.courseDetail.userid != this.userid &&
  13695. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13696. this.IsLookOpen
  13697. ) {
  13698. this.$message.error("任务未解锁");
  13699. return;
  13700. }
  13701. this.taskCount++;
  13702. if (this.IsLookOpen) {
  13703. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13704. this.taskCount
  13705. ].isLook = true;
  13706. this.addCourseState(3);
  13707. }
  13708. }
  13709. } else {
  13710. if (
  13711. this.taskCount ==
  13712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  13713. 1
  13714. ) {
  13715. var bbb = parseInt(this.courseType) + 1;
  13716. if (
  13717. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  13718. this.courseDetail.userid != this.userid &&
  13719. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13720. this.IsLookOpen
  13721. ) {
  13722. this.$message.error("任务未解锁");
  13723. return;
  13724. }
  13725. this.navList[this.courseType].isOpen = false;
  13726. this.courseType++;
  13727. this.taskCount = 0;
  13728. this.navList[this.courseType].isOpen = true;
  13729. } else {
  13730. var bbb = parseInt(this.taskCount) + 1;
  13731. if (
  13732. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  13733. .isLook &&
  13734. this.courseDetail.userid != this.userid &&
  13735. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13736. this.IsLookOpen
  13737. ) {
  13738. this.$message.error("任务未解锁");
  13739. return;
  13740. }
  13741. this.taskCount++;
  13742. }
  13743. if (this.IsLookOpen) {
  13744. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13745. this.taskCount
  13746. ].isLook = true;
  13747. this.addCourseState(3);
  13748. }
  13749. }
  13750. // if (
  13751. // this.taskCount ==
  13752. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  13753. // ) {
  13754. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  13755. // } else {
  13756. // this.taskCount++;
  13757. // }
  13758. }
  13759. document.scrollingElement.scrollTop = 0;
  13760. this.showType = 0;
  13761. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13762. // if (this.vedio[this.taskCount].length > 0) {
  13763. // var a =
  13764. // document.getElementsByClassName("box_course")[this.taskCount]
  13765. // .offsetHeight;
  13766. // document.getElementsByClassName("vedioList")[
  13767. // this.taskCount
  13768. // ].style.height = a + "px";
  13769. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  13770. // a - 40 + "px";
  13771. // }
  13772. this.isNoHomeWork = false;
  13773. (this.studyJuri = [
  13774. {
  13775. content: "",
  13776. cover: [],
  13777. upVedio: [],
  13778. upFile: [],
  13779. },
  13780. ]),
  13781. (this.radio = []);
  13782. this.isClickNav = "";
  13783. this.selectPz();
  13784. this.getHomeWork();
  13785. this.getCourseDetail(2);
  13786. this.$forceUpdate();
  13787. },
  13788. openTask(s, n, i) {
  13789. if (this.IsFollow && this.tType == 2) {
  13790. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13791. return;
  13792. }
  13793. if (this.IsLookOpen) {
  13794. if (
  13795. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  13796. this.courseDetail.userid != this.userid &&
  13797. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  13798. ) {
  13799. this.$message.error("任务未解锁");
  13800. return;
  13801. }
  13802. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  13803. if (
  13804. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  13805. .isLook
  13806. ) {
  13807. this.$message.error("上一任务未解锁");
  13808. return;
  13809. }
  13810. } else if (s > this.courseType) {
  13811. if (n > 0) {
  13812. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  13813. this.$message.error("上一任务未解锁");
  13814. return;
  13815. }
  13816. } else {
  13817. if (
  13818. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  13819. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  13820. ].isLook
  13821. ) {
  13822. this.$message.error("上一任务未解锁");
  13823. return;
  13824. }
  13825. }
  13826. }
  13827. }
  13828. this.courseType = s;
  13829. this.navId = i;
  13830. this.taskCount = n;
  13831. if (this.IsLookOpen) {
  13832. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13833. this.taskCount
  13834. ].isLook = true;
  13835. this.addCourseState(3);
  13836. }
  13837. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  13838. this.isCloseList[ci].isClose = 0;
  13839. }
  13840. this.showType = 0;
  13841. this.isNoHomeWork = false;
  13842. (this.studyJuri = [
  13843. {
  13844. content: "",
  13845. cover: [],
  13846. upVedio: [],
  13847. upFile: [],
  13848. },
  13849. ]),
  13850. (this.radio = []);
  13851. document.scrollingElement.scrollTop = 0;
  13852. // setTimeout(() => {
  13853. // let a = document.getElementById(i);
  13854. // if (a.offsetTop - 110 == 0) {
  13855. // window.scrollTo(0, 0);
  13856. // } else {
  13857. // window.scrollTo(0, a.offsetTop);
  13858. // }
  13859. // }, 0);
  13860. this.selectPz();
  13861. this.getHomeWork();
  13862. this.getCourseDetail(2);
  13863. },
  13864. get(i) {
  13865. if (this.IsFollow && this.tType == 2) {
  13866. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13867. return;
  13868. }
  13869. this.navList[i].isOpen = !this.navList[i].isOpen;
  13870. },
  13871. addQuestion() {
  13872. this.answerList.push({
  13873. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  13874. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  13875. });
  13876. let params = [
  13877. {
  13878. uid: this.userid,
  13879. cid: this.id,
  13880. stage: this.courseType,
  13881. task: this.taskCount,
  13882. tool: this.toolindex,
  13883. content: JSON.stringify(this.answerList),
  13884. type: 3,
  13885. },
  13886. ];
  13887. this.ajax
  13888. .post(this.$store.state.api + "addCourseWorks", params)
  13889. .then((res) => {
  13890. this.$message({
  13891. message: "提交成功",
  13892. type: "success",
  13893. });
  13894. this.answerList = [];
  13895. this.answerDialogVisible = false;
  13896. this.selectStudent();
  13897. this.selectSWorks();
  13898. this.selectSLook();
  13899. })
  13900. .catch((err) => {
  13901. this.$message.error("提交失败");
  13902. console.error(err);
  13903. });
  13904. },
  13905. addQuestionTeacher() {
  13906. this.answerList.push({
  13907. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  13908. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  13909. });
  13910. let params = [
  13911. {
  13912. uid: this.sStudent.userid,
  13913. cid: this.id,
  13914. stage: this.courseType,
  13915. task: this.taskCount,
  13916. tool: this.toolindex,
  13917. content: JSON.stringify(this.answerList),
  13918. type: 3,
  13919. ateacher: this.userid,
  13920. },
  13921. ];
  13922. this.ajax
  13923. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13924. .then((res) => {
  13925. this.$message({
  13926. message: "提交成功",
  13927. type: "success",
  13928. });
  13929. this.answerList = [];
  13930. this.questionAnswer = "";
  13931. this.answerDialogVisibleTeacher = false;
  13932. this.selectStudent();
  13933. this.selectSWorks();
  13934. this.selectSLook();
  13935. })
  13936. .catch((err) => {
  13937. this.$message.error("提交失败");
  13938. console.error(err);
  13939. });
  13940. },
  13941. refreshCourse() {
  13942. // window.location.reload();
  13943. this.navList = [];
  13944. this.getCourseDetail(1);
  13945. },
  13946. getCourseDetail(type, gindex) {
  13947. let loading;
  13948. if (type != 2) {
  13949. loading = this.$loading.service({
  13950. background: "rgba(255, 255, 255, 0.7)",
  13951. target: document.querySelector(".student_table"),
  13952. });
  13953. }
  13954. // this.navList[0].isOpen = false;
  13955. // this.navList[this.courseType].isOpen = true;
  13956. // this.courseType = this.courseTypeLine;
  13957. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13958. let params = {
  13959. courseId: this.id,
  13960. };
  13961. this.ajax
  13962. .get(this.$store.state.api + "selectCourseDetail3", params)
  13963. .then((res) => {
  13964. if (type != 2) {
  13965. loading.close();
  13966. if (
  13967. this.courseType >
  13968. JSON.parse(res.data[0][0].chapters).length - 1
  13969. ) {
  13970. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  13971. }
  13972. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  13973. .chapterInfo[0].taskJson;
  13974. var b = [
  13975. "AVI",
  13976. "NAVI",
  13977. "MPEG",
  13978. "ASF",
  13979. "MOV",
  13980. "WMV",
  13981. "3GP",
  13982. "RM",
  13983. "RMVB",
  13984. "FLV",
  13985. "F4V",
  13986. "H.264",
  13987. "H.265",
  13988. "REAL VIDEO",
  13989. "MKV",
  13990. "WebM",
  13991. "HDDVD",
  13992. "MP4",
  13993. "MPG",
  13994. "M4V",
  13995. "MGV",
  13996. "OGV",
  13997. "QTM",
  13998. "STR",
  13999. "AMC",
  14000. "DVX",
  14001. "EVO",
  14002. "DAT",
  14003. "OGG",
  14004. "OGM",
  14005. "MP3",
  14006. ];
  14007. let _chapterData = [];
  14008. for (var i = 0; i < a.length; i++) {
  14009. var c = a[i].chapterData;
  14010. this.vedio[i] = [];
  14011. this.textList[i] = [];
  14012. this.lineList[i] = [];
  14013. this.chapToolList[i] = [];
  14014. this.file[i] = [];
  14015. this.fileC[i] = [];
  14016. _chapterData[i] = c.filter((el) => {
  14017. return el.type != 12;
  14018. });
  14019. this.fileC[i] = c.filter((el) => {
  14020. return el.type == 12;
  14021. });
  14022. // else if (c[j].type == 12) {
  14023. // this.fileC[i].push(c[j]);
  14024. // }
  14025. for (var j = 0; j < c.length; j++) {
  14026. if (c[j].type == 7) {
  14027. this.chapToolList[i].push(c[j]);
  14028. } else if (c[j].type == 8) {
  14029. this.lineList[i].push(c[j]);
  14030. } else if (c[j].type == 6) {
  14031. this.textList[i].push(c[j]);
  14032. } else {
  14033. if (
  14034. b.indexOf(
  14035. c[j].url
  14036. .split(".")
  14037. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14038. ) != -1
  14039. ) {
  14040. this.vedio[i].push(c[j]);
  14041. } else {
  14042. this.file[i].push(c[j]);
  14043. }
  14044. }
  14045. }
  14046. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14047. d.sources[0].src =
  14048. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14049. this.playerO[i] = d;
  14050. }
  14051. this.courseDetail = res.data[0][0];
  14052. this.tcid = this.arrayToArray(
  14053. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14054. this.tcid2 ? this.tcid2.split(",") : []
  14055. ).join(",");
  14056. console.log(this.tcid);
  14057. this.evalua = res.data[0][0].evaId;
  14058. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  14059. this.courseType
  14060. ];
  14061. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14062. if (this.tcid && res.data[1].length) {
  14063. let _inviteA = [];
  14064. for (var ik = 0; ik < res.data[1].length; ik++) {
  14065. _inviteA.push({
  14066. cid: res.data[1][ik].classid,
  14067. ic: res.data[1][ik].code,
  14068. });
  14069. }
  14070. for (var ik = 0; ik < _inviteA.length; ik++) {
  14071. if (
  14072. this.arrayToArray(
  14073. _inviteA[ik].cid.split(","),
  14074. this.tcid.split(",")
  14075. ).length
  14076. ) {
  14077. this.inviteCode = _inviteA[ik].ic;
  14078. break;
  14079. }
  14080. }
  14081. }
  14082. for (var l = 0; l < this.chapInfoList.length; l++) {
  14083. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14084. for (var m = 0; m < w.length; m++) {
  14085. w[m].id = l + "-" + m;
  14086. }
  14087. }
  14088. if (
  14089. _chapterData[this.taskCount].length &&
  14090. _chapterData[this.taskCount][0].type == 2
  14091. ) {
  14092. this.showType = 0;
  14093. } else {
  14094. if (_chapterData[this.taskCount].length > 0) {
  14095. let _url = _chapterData[this.taskCount][0].url;
  14096. if (_chapterData[this.taskCount][0].type == 8) {
  14097. this.showType = 2;
  14098. if (
  14099. _url.indexOf("https://") == -1 &&
  14100. _url.indexOf("http://") == -1
  14101. ) {
  14102. _url = "https://" + _url;
  14103. }
  14104. this.pptImgUrl1 = _url;
  14105. } else if (_chapterData[this.taskCount][0].type == 3) {
  14106. if (
  14107. _url
  14108. .split(".")
  14109. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14110. ) {
  14111. this.showType = 3;
  14112. this.pptImgUrl1 = _url;
  14113. } else if (
  14114. this.isAssetTypeAnImage(
  14115. _url
  14116. .split(".")
  14117. [_url.split(".").length - 1].toLocaleLowerCase()
  14118. )
  14119. ) {
  14120. this.showType = 4;
  14121. this.pptImgUrl1 = _url;
  14122. } else {
  14123. this.showType = 2;
  14124. this.pptImgUrl1 =
  14125. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14126. _url;
  14127. }
  14128. } else if (_chapterData[this.taskCount][0].type == 13) {
  14129. this.showType = 4;
  14130. this.pptImgUrl1 = _url;
  14131. } else if (_chapterData[this.taskCount][0].type == 6) {
  14132. this.showType = 1;
  14133. this.text = this.textList[this.taskCount][0];
  14134. }
  14135. }
  14136. }
  14137. this.isClickNav = 0;
  14138. if (
  14139. !_chapterData[this.taskCount].length ||
  14140. _chapterData[this.taskCount][0].type == 12
  14141. ) {
  14142. this.isClickNav = "";
  14143. this.showType = "";
  14144. }
  14145. this.vChapterData = _chapterData;
  14146. } else {
  14147. this.showType = 0;
  14148. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14149. .chapterInfo[0].taskJson;
  14150. var b = [
  14151. "AVI",
  14152. "NAVI",
  14153. "MPEG",
  14154. "ASF",
  14155. "MOV",
  14156. "WMV",
  14157. "3GP",
  14158. "RM",
  14159. "RMVB",
  14160. "FLV",
  14161. "F4V",
  14162. "H.264",
  14163. "H.265",
  14164. "REAL VIDEO",
  14165. "MKV",
  14166. "WebM",
  14167. "HDDVD",
  14168. "MP4",
  14169. "MPG",
  14170. "M4V",
  14171. "MGV",
  14172. "OGV",
  14173. "QTM",
  14174. "STR",
  14175. "AMC",
  14176. "DVX",
  14177. "EVO",
  14178. "DAT",
  14179. "OGG",
  14180. "OGM",
  14181. "MP3",
  14182. ];
  14183. let _chapterData = [];
  14184. for (var i = 0; i < a.length; i++) {
  14185. var c = a[i].chapterData;
  14186. this.vedio[i] = [];
  14187. this.textList[i] = [];
  14188. this.lineList[i] = [];
  14189. this.chapToolList[i] = [];
  14190. this.file[i] = [];
  14191. this.fileC[i] = [];
  14192. _chapterData[i] = c.filter((el) => {
  14193. return el.type != 12;
  14194. });
  14195. this.fileC[i] = c.filter((el) => {
  14196. return el.type == 12;
  14197. });
  14198. for (var j = 0; j < c.length; j++) {
  14199. if (c[j].type == 7) {
  14200. this.chapToolList[i].push(c[j]);
  14201. } else if (c[j].type == 8) {
  14202. this.lineList[i].push(c[j]);
  14203. } else if (c[j].type == 6) {
  14204. this.textList[i].push(c[j]);
  14205. } else {
  14206. if (
  14207. b.indexOf(
  14208. c[j].url
  14209. .split(".")
  14210. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14211. ) != -1
  14212. ) {
  14213. this.vedio[i].push(c[j]);
  14214. } else {
  14215. this.file[i].push(c[j]);
  14216. }
  14217. }
  14218. }
  14219. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14220. d.sources[0].src =
  14221. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14222. this.playerO[i] = d;
  14223. }
  14224. if (
  14225. _chapterData[this.taskCount].length &&
  14226. _chapterData[this.taskCount][0].type == 2
  14227. ) {
  14228. this.showType = 0;
  14229. } else {
  14230. if (_chapterData[this.taskCount].length > 0) {
  14231. let _url = _chapterData[this.taskCount][0].url;
  14232. if (_chapterData[this.taskCount][0].type == 8) {
  14233. this.showType = 2;
  14234. if (
  14235. _url.indexOf("https://") == -1 &&
  14236. _url.indexOf("http://") == -1
  14237. ) {
  14238. _url = "https://" + _url;
  14239. }
  14240. this.pptImgUrl1 = _url;
  14241. } else if (_chapterData[this.taskCount][0].type == 3) {
  14242. if (
  14243. _url
  14244. .split(".")
  14245. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14246. ) {
  14247. this.showType = 3;
  14248. this.pptImgUrl1 = _url;
  14249. } else if (
  14250. this.isAssetTypeAnImage(
  14251. _url
  14252. .split(".")
  14253. [_url.split(".").length - 1].toLocaleLowerCase()
  14254. )
  14255. ) {
  14256. this.showType = 4;
  14257. this.pptImgUrl1 = _url;
  14258. } else {
  14259. this.showType = 2;
  14260. this.pptImgUrl1 =
  14261. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14262. _url;
  14263. }
  14264. } else if (_chapterData[this.taskCount][0].type == 13) {
  14265. this.showType = 4;
  14266. this.pptImgUrl1 = _url;
  14267. } else if (_chapterData[this.taskCount][0].type == 6) {
  14268. this.showType = 1;
  14269. this.text = this.textList[this.taskCount][0];
  14270. }
  14271. }
  14272. }
  14273. this.isClickNav = 0;
  14274. if (
  14275. !_chapterData[this.taskCount].length ||
  14276. _chapterData[this.taskCount][0].type == 12
  14277. ) {
  14278. this.isClickNav = "";
  14279. this.showType = "";
  14280. }
  14281. this.vChapterData = _chapterData;
  14282. this.$forceUpdate();
  14283. }
  14284. // else {
  14285. // this.courseDetail = res.data[0][0];
  14286. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14287. // }
  14288. let _this = this;
  14289. if (_this.timer) {
  14290. clearInterval(_this.timer);
  14291. _this.timer = null;
  14292. }
  14293. if (_this.tcid) {
  14294. _this.getCourseGroup(gindex);
  14295. } else {
  14296. _this.selectSWorks(gindex);
  14297. }
  14298. _this.selectStudent();
  14299. _this.selectSLook();
  14300. _this.getPick();
  14301. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14302. _this.setCTask();
  14303. }
  14304. if (_this.dialogVisibleGroup) {
  14305. _this.groupJson =
  14306. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14307. _this.taskCount
  14308. ].toolChoose[_this.toolindex].groupJson;
  14309. }
  14310. _this.$nextTick(() => {
  14311. setTimeout(() => {
  14312. _this.checkEva();
  14313. }, 1000);
  14314. });
  14315. _this.timer = setInterval(function () {
  14316. // _this.getCourseDetail(2);
  14317. if (_this.tcid) {
  14318. _this.getCourseGroup(gindex);
  14319. } else {
  14320. _this.selectSWorks(gindex);
  14321. }
  14322. _this.selectStudent();
  14323. _this.selectSLook();
  14324. _this.getPick();
  14325. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14326. _this.setCTask();
  14327. }
  14328. if (_this.dialogVisibleGroup) {
  14329. _this.groupJson =
  14330. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14331. _this.taskCount
  14332. ].toolChoose[_this.toolindex].groupJson;
  14333. }
  14334. if (_this.tType == 4 || _this.ispzType == 4) {
  14335. _this.selectPz();
  14336. }
  14337. }, 5000);
  14338. _this.$nextTick(function () {
  14339. setTimeout(() => {
  14340. // var a =
  14341. // document.getElementsByClassName("box_course")[0].offsetHeight;
  14342. // document.getElementsByClassName("vedioList")[0].style.height =
  14343. // a + "px";
  14344. // document.getElementsByClassName("navBox")[0].style.height =
  14345. // a - 40 + "px";
  14346. // if (_this.vedio[_this.taskCount].length > 0) {
  14347. // _this.vedioTime = [];
  14348. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  14349. // _this.vedioTime[i] = document.getElementsByClassName(
  14350. // "vjs-duration-display"
  14351. // )[i].textContent;
  14352. // }
  14353. // }
  14354. }, 1000);
  14355. });
  14356. })
  14357. .catch((err) => {
  14358. loading.close();
  14359. console.error(err);
  14360. });
  14361. },
  14362. getCourseGroup(gindex) {
  14363. let params = {
  14364. cid: this.id,
  14365. classid: this.tcid ? this.tcid : "1",
  14366. };
  14367. this.ajax
  14368. .get(this.$store.state.api + "getCourseGroup", params)
  14369. .then((res) => {
  14370. if (res.data && res.data[0].length) {
  14371. if (!this.isGroup) {
  14372. let courseGroup = JSON.parse(res.data[0][0].group);
  14373. courseGroup.group = courseGroup.group.filter((el) => {
  14374. el.works = [];
  14375. return el;
  14376. });
  14377. if (courseGroup.isopen == 2) {
  14378. this.isGroup = false;
  14379. this.selectSWorks(gindex);
  14380. return;
  14381. }
  14382. this.courseGroup = courseGroup;
  14383. let groupPerson = res.data[1];
  14384. let group = JSON.parse(res.data[0][0].group).group;
  14385. let courseGroupStudent = {};
  14386. let courseGroupStudentUid = {};
  14387. for (var i = 0; i < group.length; i++) {
  14388. courseGroupStudent[group[i].id] = [];
  14389. courseGroupStudentUid[group[i].id] = [];
  14390. for (var j = 0; j < groupPerson.length; j++) {
  14391. if (groupPerson[j].groupCid == group[i].id) {
  14392. courseGroupStudent[group[i].id].push(groupPerson[j]);
  14393. courseGroupStudentUid[group[i].id].push(
  14394. groupPerson[j].userid
  14395. );
  14396. }
  14397. }
  14398. }
  14399. this.courseGroupStudent = courseGroupStudent;
  14400. this.courseGroupStudentUid = courseGroupStudentUid;
  14401. }
  14402. if (this.courseGroup.isopen == 2) {
  14403. this.isGroup = false;
  14404. } else {
  14405. this.isGroup = true;
  14406. }
  14407. this.selectSWorks(gindex);
  14408. } else {
  14409. this.selectSWorks(gindex);
  14410. this.isGroup = false;
  14411. }
  14412. })
  14413. .catch((err) => {
  14414. // this.$message.error("网络不佳");
  14415. console.error(err);
  14416. });
  14417. },
  14418. setOperationTime() {
  14419. let _this = this;
  14420. if (_this.opertimer) {
  14421. clearInterval(_this.opertimer);
  14422. _this.opertimer = null;
  14423. }
  14424. _this.opertimer = setInterval(() => {
  14425. _this.setoTime("600");
  14426. }, 600000);
  14427. },
  14428. setoTime(time) {
  14429. let params = [
  14430. {
  14431. uid: this.userid,
  14432. cid: this.id,
  14433. type: "2",
  14434. time: time,
  14435. },
  14436. ];
  14437. this.ajax
  14438. .post(this.$store.state.api + "addOperationTimeT2", params)
  14439. .then((res) => {})
  14440. .catch((err) => {
  14441. console.error(err);
  14442. });
  14443. },
  14444. addPz(type, content) {
  14445. if (type == "1" && this.pzConText == "") {
  14446. this.$message.error("批注不能为空!");
  14447. return;
  14448. }
  14449. let params = [
  14450. {
  14451. cid: this.id,
  14452. uid: this.userid,
  14453. s: this.courseType,
  14454. t: this.taskCount,
  14455. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  14456. type: type,
  14457. },
  14458. ];
  14459. this.ajax
  14460. .post(this.$store.state.api + "addPz2", params)
  14461. .then((res) => {
  14462. this.$message({
  14463. message: "添加成功",
  14464. type: "success",
  14465. });
  14466. this.pzConText = "";
  14467. this.addPzDialog = false;
  14468. this.selectPz();
  14469. })
  14470. .catch((err) => {
  14471. this.$message.error("添加失败");
  14472. console.error(err);
  14473. });
  14474. },
  14475. deletePz(id) {
  14476. this.$confirm("确定删除此批注吗?", "提示", {
  14477. confirmButtonText: "确定",
  14478. cancelButtonText: "取消",
  14479. type: "warning",
  14480. })
  14481. .then(() => {
  14482. let params = [
  14483. {
  14484. id: id,
  14485. },
  14486. ];
  14487. this.ajax
  14488. .post(this.$store.state.api + "deletePz", params)
  14489. .then((res) => {
  14490. this.$message({
  14491. message: "删除成功",
  14492. type: "success",
  14493. });
  14494. this.selectPz();
  14495. })
  14496. .catch((err) => {
  14497. this.$message.error("网络异常");
  14498. console.error(err);
  14499. });
  14500. })
  14501. .catch(() => {});
  14502. },
  14503. setPz() {
  14504. if (this.ispzType == 4) {
  14505. this.ispzType = 0;
  14506. this.pzDialog = false;
  14507. return;
  14508. }
  14509. this.ispzType = 4;
  14510. this.pzDialog = true;
  14511. this.selectPz();
  14512. },
  14513. selectPz() {
  14514. let params = {
  14515. cid: this.id,
  14516. s: this.courseType,
  14517. t: this.taskCount,
  14518. };
  14519. this.ajax
  14520. .get(this.$store.state.api + "selectPzList", params)
  14521. .then((res) => {
  14522. this.pzList = res.data[0];
  14523. })
  14524. .catch((err) => {
  14525. console.error(err);
  14526. });
  14527. },
  14528. updateSLook() {
  14529. let params = {
  14530. sopen: this.sIsOpen == false ? 1 : 2,
  14531. cid: this.id,
  14532. };
  14533. this.ajax
  14534. .get(this.$store.state.api + "updateCourseSLook", params)
  14535. .then((res) => {
  14536. if (this.sIsOpen == true) {
  14537. this.$message({
  14538. message: "权限设置成功",
  14539. type: "success",
  14540. });
  14541. } else {
  14542. this.$message({
  14543. message: "权限关闭成功",
  14544. type: "success",
  14545. });
  14546. }
  14547. })
  14548. .catch((err) => {
  14549. console.error(err);
  14550. });
  14551. },
  14552. updateFollow() {
  14553. let params = [
  14554. {
  14555. sopen: this.IsFollow == false ? 1 : 2,
  14556. cid: this.id,
  14557. },
  14558. ];
  14559. this.ajax
  14560. .post(this.$store.state.api + "updateCourseFollow", params)
  14561. .then((res) => {
  14562. if (this.IsFollow == true) {
  14563. this.$message({
  14564. message: "开启成功",
  14565. type: "success",
  14566. });
  14567. } else {
  14568. this.$message({
  14569. message: "关闭成功",
  14570. type: "success",
  14571. });
  14572. }
  14573. this.setCTask();
  14574. })
  14575. .catch((err) => {
  14576. console.error(err);
  14577. });
  14578. },
  14579. setCTask() {
  14580. let params = [
  14581. {
  14582. sopen: this.courseType + "-" + this.taskCount,
  14583. cid: this.id,
  14584. },
  14585. ];
  14586. this.ajax
  14587. .post(this.$store.state.api + "updateCourseFollowC", params)
  14588. .then((res) => {})
  14589. .catch((err) => {
  14590. console.error(err);
  14591. });
  14592. },
  14593. updateLookOpen() {
  14594. let params = [
  14595. {
  14596. sopen: this.IsLookOpen == false ? 1 : 2,
  14597. cid: this.id,
  14598. },
  14599. ];
  14600. this.ajax
  14601. .post(this.$store.state.api + "updateCourseLookOpen", params)
  14602. .then((res) => {
  14603. if (this.IsLookOpen == true) {
  14604. // if (this.courseType != 0 && this.taskCount != 0) {
  14605. // this.openTask(0, 0, "0-0");
  14606. // }
  14607. this.$message({
  14608. message: "权限设置成功",
  14609. type: "success",
  14610. });
  14611. } else {
  14612. this.$message({
  14613. message: "权限关闭成功",
  14614. type: "success",
  14615. });
  14616. }
  14617. this.getCourseState(2);
  14618. })
  14619. .catch((err) => {
  14620. console.error(err);
  14621. });
  14622. },
  14623. selectSLook() {
  14624. let params = {
  14625. cid: this.id,
  14626. };
  14627. this.ajax
  14628. .get(this.$store.state.api + "selectCourseSLook", params)
  14629. .then((res) => {
  14630. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  14631. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  14632. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  14633. if (!this.IsLookOpen) {
  14634. this.setNavList();
  14635. } else {
  14636. this.getCourseState(1);
  14637. }
  14638. if (this.IsFollow && this.tType == 2) {
  14639. this.setContent2(false);
  14640. let _followC = res.data[0][0].followC.split("-");
  14641. if (
  14642. this.courseType != _followC[0] ||
  14643. this.taskCount != _followC[1]
  14644. ) {
  14645. this.navList[this.courseType].isOpen = false;
  14646. this.courseType = _followC[0];
  14647. this.navList[this.courseType].isOpen = true;
  14648. this.taskCount = parseInt(_followC[1]);
  14649. this.navId = res.data[0][0].followC;
  14650. document.scrollingElement.scrollTop = 0;
  14651. this.getCourseDetail(2);
  14652. }
  14653. }
  14654. })
  14655. .catch((err) => {
  14656. console.error(err);
  14657. });
  14658. },
  14659. setNavList() {
  14660. if (this.navList.length == 0) {
  14661. this.navList = [];
  14662. for (var l = 0; l < this.chapInfoList.length; l++) {
  14663. var q = this.chapInfoList[l].dyName;
  14664. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14665. var e;
  14666. this.navList.push({
  14667. dyName: q,
  14668. isOpen: l === 0 ? true : false,
  14669. task: [],
  14670. });
  14671. for (var r = 0; r < w.length; r++) {
  14672. e = w[r].task;
  14673. if (this.chapInfoList[l].easy == 1) {
  14674. this.navList[l].task.push({
  14675. taskName: q,
  14676. id: l + "-" + r,
  14677. isLook: w[r].isLook,
  14678. });
  14679. } else {
  14680. this.navList[l].task.push({
  14681. taskName: e,
  14682. id: l + "-" + r,
  14683. isLook: w[r].isLook,
  14684. });
  14685. }
  14686. // this.navId = this.navId ? this.navId : l + "-" + r;
  14687. // this.navId = l + "-" + r;
  14688. }
  14689. }
  14690. this.navList[0].isOpen = false;
  14691. this.navList[this.courseType].isOpen = true;
  14692. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14693. } else {
  14694. this.setNavList2();
  14695. }
  14696. },
  14697. setNavList2() {
  14698. for (var l = 0; l < this.chapInfoList.length; l++) {
  14699. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14700. for (var r = 0; r < w.length; r++) {
  14701. this.navList[l].task[r].isLook = w[r].isLook;
  14702. }
  14703. }
  14704. if (
  14705. this.IsLookOpen &&
  14706. !this.navList[this.courseType].task[this.taskCount].isLook
  14707. ) {
  14708. this.openTask(0, 0, "0-0");
  14709. }
  14710. this.$forceUpdate();
  14711. },
  14712. getCourseState(type) {
  14713. let params = {
  14714. cid: this.id,
  14715. };
  14716. this.ajax
  14717. .get(this.$store.state.api + "getCourseState", params)
  14718. .then((res) => {
  14719. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  14720. this.chapInfoList = JSON.parse(res.data[0][0].state);
  14721. this.setNavList();
  14722. this.$forceUpdate();
  14723. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  14724. this.addCourseState(2);
  14725. } else {
  14726. this.addCourseState(1);
  14727. }
  14728. })
  14729. .catch((err) => {
  14730. console.error(err);
  14731. });
  14732. },
  14733. addCourseState(type) {
  14734. let _state = this.chapInfoList;
  14735. // this.courseType this.taskCount
  14736. if (type == 1 || type == 2) {
  14737. for (var i = 0; i < _state.length; i++) {
  14738. let el = _state[i].chapterInfo[0].taskJson;
  14739. for (var j = 0; j < el.length; j++) {
  14740. // if (i == 0 && j == 0) {
  14741. // el[j].isLook = true;
  14742. // } else {
  14743. // el[j].isLook = false;
  14744. // }
  14745. if (
  14746. this.courseType > i ||
  14747. (this.courseType == i && this.taskCount + 1 > j)
  14748. ) {
  14749. el[j].isLook = true;
  14750. } else {
  14751. el[j].isLook = false;
  14752. }
  14753. }
  14754. }
  14755. }
  14756. let params = [
  14757. {
  14758. cid: this.id,
  14759. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  14760. },
  14761. ];
  14762. this.ajax
  14763. .post(
  14764. this.$store.state.api +
  14765. (type == 1 ? "addCourseState" : "updateCourseSate"),
  14766. params
  14767. )
  14768. .then((res) => {
  14769. if (this.IsLookOpen) {
  14770. this.setNavList();
  14771. }
  14772. if (type == 3 && type == 2) {
  14773. this.getCourseState(1);
  14774. }
  14775. })
  14776. .catch((err) => {
  14777. console.error(err);
  14778. });
  14779. },
  14780. getHomeWork() {
  14781. let params = {
  14782. cid: this.id,
  14783. stage: this.courseType,
  14784. task: this.taskCount,
  14785. uid: this.userid,
  14786. };
  14787. this.ajax
  14788. .get(this.$store.state.api + "selectWork", params)
  14789. .then((res) => {
  14790. if (res.data[0].length > 0) {
  14791. this.studyJuri = JSON.parse(res.data[0][0].content);
  14792. this.isNoHomeWork = true;
  14793. }
  14794. })
  14795. .catch((err) => {
  14796. console.error(err);
  14797. });
  14798. },
  14799. isAssetTypeAnImage(ext) {
  14800. return (
  14801. [
  14802. "png",
  14803. "jpg",
  14804. "jpeg",
  14805. "bmp",
  14806. "gif",
  14807. "webp",
  14808. "psd",
  14809. "svg",
  14810. "tiff",
  14811. ].indexOf(ext) !== -1
  14812. );
  14813. },
  14814. switchVideo(media) {
  14815. this.playerO = {};
  14816. this.playerOptions.poster = "";
  14817. this.playerOptions.sources[0].src = media;
  14818. this.playerO = this.playerOptions;
  14819. },
  14820. onPlayerPlay() {},
  14821. onPlayerTimeupdate(player) {
  14822. let gklog = player.cache_.currentTime; //当前播放的秒数
  14823. let a = player.cache_.duration; //视频的总时长
  14824. let gklog2 = parseInt(gklog);
  14825. // if(gklog2 == '3'){
  14826. // player.pause()
  14827. // setTimeout(()=>{
  14828. // player.currentTime(gklog2+1)
  14829. // player.play()
  14830. // },1000)
  14831. // }
  14832. console.log(" onPlayerTimeupdate!", gklog);
  14833. console.log(" onPlayerTimeupdate!", gklog2);
  14834. },
  14835. lookVedio(u, i) {
  14836. this.isClickNav = "";
  14837. // this.playerOptions.sources[0].src = u;
  14838. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14839. d.sources[0].src = u;
  14840. this.playerO[this.taskCount] = d;
  14841. this.showType = 0;
  14842. // this.isClickNav = "video" + i;
  14843. this.isClickNav = i;
  14844. this.$forceUpdate();
  14845. },
  14846. lookText(i, t) {
  14847. this.isClickNav = "";
  14848. // this.text = this.textList[i][t];
  14849. this.text = this.vChapterData[i][t];
  14850. // this.dialogVisible1 = true;
  14851. this.showType = 1;
  14852. // this.isClickNav = "text" + t;
  14853. this.isClickNav = t;
  14854. },
  14855. lookTools(i, t) {
  14856. this.chapTools = this.chapToolList[i][t];
  14857. this.dialogVisible2 = true;
  14858. },
  14859. openFile(f) {
  14860. this.pptImgUrl = "";
  14861. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14862. if (
  14863. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  14864. -1
  14865. ) {
  14866. this.pptImgUrl =
  14867. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  14868. this.showPDF = false;
  14869. this.dialogVisible3 = true;
  14870. } else if (
  14871. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14872. ) {
  14873. this.pptImgUrl = f;
  14874. this.showPDF = true;
  14875. this.dialogVisible3 = true;
  14876. }
  14877. },
  14878. openTable(f) {
  14879. this.tableJson = JSON.parse(f.works);
  14880. this.dialogVisibleTable2 = true;
  14881. },
  14882. openWord(f) {
  14883. this.tableJson = JSON.parse(f.works);
  14884. this.dialogVisibleTable3 = true;
  14885. },
  14886. doUrl(url, i) {
  14887. this.isClickNav = "";
  14888. this.pptImgUrl1 = "";
  14889. this.showType = 2;
  14890. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  14891. url = "https://" + url;
  14892. }
  14893. this.pptImgUrl1 = "";
  14894. setTimeout(() => {
  14895. this.pptImgUrl1 = url;
  14896. }, 500);
  14897. // this.isClickNav = "line" + i;
  14898. this.isClickNav = i;
  14899. this.$forceUpdate();
  14900. },
  14901. checkPhoto(f, i) {
  14902. this.showType = 4;
  14903. this.pptImgUrl1 = f.url;
  14904. this.isClickNav = i;
  14905. this.$forceUpdate();
  14906. },
  14907. downFile(f, i) {
  14908. this.isClickNav = "";
  14909. this.pptImgUrl1 = "";
  14910. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  14911. if (
  14912. a.indexOf(
  14913. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  14914. ) != -1
  14915. ) {
  14916. this.pptImgUrl1 =
  14917. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  14918. // this.dialogVisible3 = true;
  14919. this.showType = 2;
  14920. } else if (
  14921. this.isAssetTypeAnImage(
  14922. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  14923. )
  14924. ) {
  14925. this.showType = 4;
  14926. this.pptImgUrl1 = f.url;
  14927. } else if (
  14928. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  14929. "PDF"
  14930. ) {
  14931. this.pptImgUrl1 = f.url;
  14932. // this.dialogVisible3 = true;
  14933. this.showType = 3;
  14934. } else {
  14935. window.open(this.file[i].url);
  14936. }
  14937. // this.isClickNav = "word" + i;
  14938. this.isClickNav = i;
  14939. },
  14940. downFileList(i) {
  14941. window.open(this.noImgList[i].url);
  14942. },
  14943. openAddWork() {
  14944. this.dialogVisible = true;
  14945. },
  14946. addBzWorks() {
  14947. let params = [
  14948. {
  14949. uid: this.userid,
  14950. cid: this.id,
  14951. stage: this.courseType,
  14952. task: this.taskCount,
  14953. tool: this.toolindex,
  14954. content: JSON.stringify(this.eScore),
  14955. type: 6,
  14956. },
  14957. ];
  14958. this.ajax
  14959. .post(this.$store.state.api + "addCourseWorks", params)
  14960. .then((res) => {
  14961. this.$message({
  14962. message: "提交成功",
  14963. type: "success",
  14964. });
  14965. this.eScore = { eBzText: "", eStar: [] };
  14966. this.studentEvalDialogVisible = false;
  14967. this.selectSWorks();
  14968. })
  14969. .catch((err) => {
  14970. this.$message.error("提交失败");
  14971. console.error(err);
  14972. });
  14973. },
  14974. addBzWorksTeacher() {
  14975. let params = [
  14976. {
  14977. uid: this.sStudent.userid,
  14978. cid: this.id,
  14979. stage: this.courseType,
  14980. task: this.taskCount,
  14981. tool: this.toolindex,
  14982. content: JSON.stringify(this.eScore),
  14983. type: 6,
  14984. },
  14985. ];
  14986. this.ajax
  14987. .post(this.$store.state.api + "addCourseWorks", params)
  14988. .then((res) => {
  14989. this.$message({
  14990. message: "提交成功",
  14991. type: "success",
  14992. });
  14993. this.eScore = { eBzText: "", eStar: [] };
  14994. this.studentEvalDialogVisibleTeacher = false;
  14995. this.selectSWorks();
  14996. })
  14997. .catch((err) => {
  14998. this.$message.error("提交失败");
  14999. console.error(err);
  15000. });
  15001. },
  15002. addStudentAsk() {
  15003. if (!this.radio.length) {
  15004. this.$message.error("请选择选项");
  15005. return;
  15006. }
  15007. for (var i = 0; i < this.askJson.askCount; i++) {
  15008. if (
  15009. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15010. (this.radio[i] !== 0 && !this.radio[i])
  15011. ) {
  15012. this.$message.error("请选择选项");
  15013. return;
  15014. }
  15015. }
  15016. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15017. let params = [
  15018. {
  15019. uid: this.userid,
  15020. cid: this.id,
  15021. stage: this.courseType,
  15022. task: this.taskCount,
  15023. tool: this.toolindex,
  15024. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15025. type: 2,
  15026. },
  15027. ];
  15028. this.ajax
  15029. .post(this.$store.state.api + "addCourseWorks", params)
  15030. .then((res) => {
  15031. this.$message({
  15032. message: "提交成功",
  15033. type: "success",
  15034. });
  15035. this.askList = [];
  15036. this.dialogVisible5 = false;
  15037. this.selectStudent();
  15038. this.selectSWorks();
  15039. this.selectSLook();
  15040. })
  15041. .catch((err) => {
  15042. this.$message.error("提交失败");
  15043. console.error(err);
  15044. });
  15045. },
  15046. addStudentAskTeacher() {
  15047. if (!this.radio.length) {
  15048. this.$message.error("请选择选项");
  15049. return;
  15050. }
  15051. for (var i = 0; i < this.askJson.askCount; i++) {
  15052. if (
  15053. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15054. (this.radio[i] !== 0 && !this.radio[i])
  15055. ) {
  15056. this.$message.error("请选择选项");
  15057. return;
  15058. }
  15059. }
  15060. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15061. let params = [
  15062. {
  15063. uid: this.sStudent.userid,
  15064. cid: this.id,
  15065. stage: this.courseType,
  15066. task: this.taskCount,
  15067. tool: this.toolindex,
  15068. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15069. type: 2,
  15070. },
  15071. ];
  15072. this.ajax
  15073. .post(this.$store.state.api + "addCourseWorks", params)
  15074. .then((res) => {
  15075. this.$message({
  15076. message: "提交成功",
  15077. type: "success",
  15078. });
  15079. this.askList = [];
  15080. this.dialogVisible5Teacher = false;
  15081. this.selectStudent();
  15082. this.selectSWorks();
  15083. this.selectSLook();
  15084. })
  15085. .catch((err) => {
  15086. this.$message.error("提交失败");
  15087. console.error(err);
  15088. });
  15089. },
  15090. addStudentTest() {
  15091. if (!this.radio.length) {
  15092. this.$message.error("请选择选项");
  15093. return;
  15094. }
  15095. for (var i = 0; i < this.testJson.testCount; i++) {
  15096. if (
  15097. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15098. (this.radio[i] !== 0 && !this.radio[i])
  15099. ) {
  15100. this.$message.error("请选择选项");
  15101. return;
  15102. }
  15103. }
  15104. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15105. let params = [
  15106. {
  15107. uid: this.userid,
  15108. cid: this.id,
  15109. stage: this.courseType,
  15110. task: this.taskCount,
  15111. tool: this.toolindex,
  15112. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15113. type: 8,
  15114. },
  15115. ];
  15116. this.ajax
  15117. .post(this.$store.state.api + "addCourseWorks", params)
  15118. .then((res) => {
  15119. this.$message({
  15120. message: "提交成功",
  15121. type: "success",
  15122. });
  15123. this.askList = [];
  15124. this.dialogVisibleChoice = false;
  15125. this.selectStudent();
  15126. this.selectSWorks();
  15127. this.selectSLook();
  15128. })
  15129. .catch((err) => {
  15130. this.$message.error("提交失败");
  15131. console.error(err);
  15132. });
  15133. },
  15134. addStudentTestTeacher() {
  15135. if (!this.radio.length) {
  15136. this.$message.error("请选择选项");
  15137. return;
  15138. }
  15139. for (var i = 0; i < this.testJson.testCount; i++) {
  15140. if (
  15141. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15142. (this.radio[i] !== 0 && !this.radio[i])
  15143. ) {
  15144. this.$message.error("请选择选项");
  15145. return;
  15146. }
  15147. }
  15148. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15149. let params = [
  15150. {
  15151. uid: this.sStudent.userid,
  15152. cid: this.id,
  15153. stage: this.courseType,
  15154. task: this.taskCount,
  15155. tool: this.toolindex,
  15156. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15157. type: 8,
  15158. },
  15159. ];
  15160. this.ajax
  15161. .post(this.$store.state.api + "addCourseWorks", params)
  15162. .then((res) => {
  15163. this.$message({
  15164. message: "提交成功",
  15165. type: "success",
  15166. });
  15167. this.askList = [];
  15168. this.dialogVisibleChoiceTeacher = false;
  15169. this.selectStudent();
  15170. this.selectSWorks();
  15171. this.selectSLook();
  15172. })
  15173. .catch((err) => {
  15174. this.$message.error("提交失败");
  15175. console.error(err);
  15176. });
  15177. },
  15178. addWork() {
  15179. if (this.studyJuri[0].content == "") {
  15180. this.$message.error("请将信息填写完整");
  15181. return;
  15182. } else if (this.studyJuri[0].cover.length == 0) {
  15183. this.$message.error("请将信息填写完整");
  15184. return;
  15185. } else if (this.studyJuri[0].upVedio.length == 0) {
  15186. this.$message.error("请将信息填写完整");
  15187. return;
  15188. }
  15189. if (this.isNoHomeWork) {
  15190. this.$confirm(
  15191. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15192. "提示",
  15193. {
  15194. confirmButtonText: "确定",
  15195. cancelButtonText: "取消",
  15196. type: "warning",
  15197. }
  15198. )
  15199. .then(() => {
  15200. let params = [
  15201. {
  15202. uid: this.userid,
  15203. cid: this.id,
  15204. stage: this.courseType,
  15205. task: this.taskCount,
  15206. content: JSON.stringify(this.studyJuri),
  15207. },
  15208. ];
  15209. this.ajax
  15210. .post(this.$store.state.api + "addWorks", params)
  15211. .then((res) => {
  15212. this.$message({
  15213. message: "提交成功",
  15214. type: "success",
  15215. });
  15216. this.isNoHomeWork = true;
  15217. this.dialogVisible = false;
  15218. })
  15219. .catch((err) => {
  15220. this.$message.error("提交失败");
  15221. console.error(err);
  15222. });
  15223. })
  15224. .catch(() => {});
  15225. } else {
  15226. let params = [
  15227. {
  15228. uid: this.userid,
  15229. cid: this.id,
  15230. stage: this.courseType,
  15231. task: this.taskCount,
  15232. content: JSON.stringify(this.studyJuri),
  15233. },
  15234. ];
  15235. this.ajax
  15236. .post(this.$store.state.api + "addWorks", params)
  15237. .then((res) => {
  15238. this.$message({
  15239. message: "提交成功",
  15240. type: "success",
  15241. });
  15242. this.isNoHomeWork = true;
  15243. this.dialogVisible = false;
  15244. })
  15245. .catch((err) => {
  15246. this.$message.error("提交失败");
  15247. console.error(err);
  15248. });
  15249. }
  15250. },
  15251. selectCount() {
  15252. let params = {
  15253. cid: this.id,
  15254. chid: this.courseType,
  15255. uid: this.userid,
  15256. };
  15257. this.ajax
  15258. .get(this.$store.state.api + "selectToolsCount", params)
  15259. .then((res) => {
  15260. for (var i = 0; i < res.data[0].length; i++) {
  15261. if (res.data[0][i].tools == 1) {
  15262. this.wbCount = res.data[0][i].count;
  15263. } else if (res.data[0][i].tools == 2) {
  15264. this.wordCount = res.data[0][i].count;
  15265. } else if (res.data[0][i].tools == 3) {
  15266. this.mindCount = res.data[0][i].count;
  15267. } else if (res.data[0][i].tools == 4) {
  15268. this.askCount = res.data[0][i].count;
  15269. } else if (res.data[0][i].tools == 6) {
  15270. this.noteCount = res.data[0][i].count;
  15271. } else if (res.data[0][i].tools == 7) {
  15272. this.mindNetWorkCount = res.data[0][i].count;
  15273. } else if (res.data[0][i].tools == 8) {
  15274. this.libraryCount = res.data[0][i].count;
  15275. } else if (res.data[0][i].tools == 16) {
  15276. this.workCount = res.data[0][i].count;
  15277. } else if (res.data[0][i].tools == 10) {
  15278. this.timeCount = res.data[0][i].count;
  15279. } else if (res.data[0][i].tools == 15) {
  15280. this.answerCount = res.data[0][i].count;
  15281. } else if (res.data[0][i].tools == 18) {
  15282. this.trainCount = res.data[0][i].count;
  15283. }
  15284. }
  15285. })
  15286. .catch((err) => {
  15287. console.error(err);
  15288. });
  15289. },
  15290. openTools(t, i, index, c, sName) {
  15291. var z = JSON.parse(c);
  15292. this.noteName = sName;
  15293. if (t == 4) {
  15294. this.radio = [];
  15295. this.isAnswer = false;
  15296. let b = z[0].anwer;
  15297. this.radio = b;
  15298. this.askJson = z[0].askJson;
  15299. this.isAnswer = true;
  15300. this.dialogVisible5 = true;
  15301. } else if (t == 45) {
  15302. this.radio = [];
  15303. this.isAnswer = false;
  15304. let b = z[0].anwer;
  15305. this.radio = b;
  15306. this.testJson = z[0].testJson;
  15307. this.isAnswer = true;
  15308. this.dialogVisibleChoice = true;
  15309. }
  15310. // else if (t == 15) {
  15311. // this.answerQ = "";
  15312. // this.questionAnswer = "";
  15313. // this.answerQ = z[0].answerTitle;
  15314. // this.questionAnswer = z[0].answer;
  15315. // this.answerDialogVisible = true;
  15316. // }
  15317. },
  15318. fastText(p, t) {
  15319. if (t == 1) {
  15320. this.commentText += p;
  15321. } else {
  15322. this.eScore.eBzText += p;
  15323. }
  15324. },
  15325. addTools(t, i, index) {
  15326. var a = 0;
  15327. // this.taskCount = index;
  15328. this.toolindex = i;
  15329. if (t == 1) {
  15330. if (this.wbCount > 0) {
  15331. this.updateCount(this.wbCount, t);
  15332. } else {
  15333. this.wbCount++;
  15334. a = this.wbCount;
  15335. this.toolsCount(a, t);
  15336. }
  15337. window.parent.postMessage(
  15338. {
  15339. tools: "1",
  15340. cid: this.id,
  15341. stage: this.courseType,
  15342. task: this.taskCount,
  15343. tool: i,
  15344. },
  15345. "*"
  15346. );
  15347. } else if (t == 2) {
  15348. if (this.wordCount > 0) {
  15349. this.updateCount(this.wordCount, t);
  15350. } else {
  15351. this.wordCount++;
  15352. a = this.wordCount;
  15353. this.toolsCount(a, t);
  15354. }
  15355. window.parent.postMessage({ tools: "2" }, "*");
  15356. } else if (t == 3) {
  15357. if (this.mindCount > 0) {
  15358. this.updateCount(this.mindCount, t);
  15359. } else {
  15360. this.mindCount++;
  15361. a = this.mindCount;
  15362. this.toolsCount(a, t);
  15363. }
  15364. window.parent.postMessage(
  15365. {
  15366. tools: "3",
  15367. cid: this.id,
  15368. stage: this.courseType,
  15369. task: this.taskCount,
  15370. tool: i,
  15371. },
  15372. "*"
  15373. );
  15374. } else if (t == 4) {
  15375. this.radio = [];
  15376. this.noteName = "";
  15377. this.isAnswer = false;
  15378. if (this.askCount > 0) {
  15379. this.updateCount(this.askCount, t);
  15380. } else {
  15381. this.askCount++;
  15382. a = this.askCount;
  15383. this.toolsCount(a, t);
  15384. }
  15385. if (!this.dialogVisible2) {
  15386. this.askJson.askJson =
  15387. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15388. index
  15389. ].toolChoose[i].askJson;
  15390. this.askJson.askTitle =
  15391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15392. index
  15393. ].toolChoose[i].askTitle;
  15394. this.askJson.askCount =
  15395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15396. index
  15397. ].toolChoose[i].askCount;
  15398. } else {
  15399. this.askJson.askJson = this.chapTools.askJson.askJson;
  15400. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15401. this.askJson.askCount = this.chapTools.askJson.askCount;
  15402. }
  15403. for (var k = 0; k < this.askJson.askJson.length; k++) {
  15404. if (this.askJson.askJson[k].type == "2") {
  15405. this.radio.push([]);
  15406. } else {
  15407. this.radio.push("");
  15408. }
  15409. }
  15410. this.dialogVisible5 = true;
  15411. // window.parent.postMessage({ tools: "4" }, "*");
  15412. } else if (t == 45) {
  15413. this.noteName = "";
  15414. this.radio = [];
  15415. this.isAnswer = false;
  15416. if (this.askCount > 0) {
  15417. this.updateCount(this.askCount, t);
  15418. } else {
  15419. this.askCount++;
  15420. a = this.askCount;
  15421. this.toolsCount(a, t);
  15422. }
  15423. this.testJson =
  15424. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15425. index
  15426. ].toolChoose[i].testJson;
  15427. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15428. if (this.testJson.testJson[k].type == "2") {
  15429. this.radio.push([]);
  15430. } else {
  15431. this.radio.push("");
  15432. }
  15433. }
  15434. this.dialogVisibleChoice = true;
  15435. // window.parent.postMessage({ tools: "4" }, "*");
  15436. } else if (t == 5) {
  15437. if (this.scoreCount > 0) {
  15438. this.updateCount(this.scoreCount, t);
  15439. } else {
  15440. this.scoreCount++;
  15441. a = this.scoreCount;
  15442. this.toolsCount(a, t);
  15443. }
  15444. this.dialogVisible4 = true;
  15445. // window.parent.postMessage({ tools: "5" }, "*");
  15446. } else if (t == 6) {
  15447. if (this.noteCount > 0) {
  15448. this.updateCount(this.noteCount, t);
  15449. } else {
  15450. this.noteCount++;
  15451. a = this.noteCount;
  15452. this.toolsCount(a, t);
  15453. }
  15454. window.parent.postMessage(
  15455. {
  15456. tools: "6",
  15457. cid: this.id,
  15458. stage: this.courseType,
  15459. task: this.taskCount,
  15460. tool: i,
  15461. },
  15462. "*"
  15463. );
  15464. } else if (t == 7) {
  15465. if (this.mindNetWorkCount > 0) {
  15466. this.updateCount(this.mindNetWorkCount, t);
  15467. } else {
  15468. this.mindNetWorkCount++;
  15469. a = this.mindNetWorkCount;
  15470. this.toolsCount(a, t);
  15471. }
  15472. window.parent.postMessage(
  15473. {
  15474. tools: "7",
  15475. cid: this.id,
  15476. stage: this.courseType,
  15477. task: this.taskCount,
  15478. tool: i,
  15479. },
  15480. "*"
  15481. );
  15482. } else if (t == 16) {
  15483. if (this.workCount > 0) {
  15484. this.updateCount(this.workCount, t);
  15485. } else {
  15486. this.workCount++;
  15487. a = this.workCount;
  15488. this.toolsCount(a, t);
  15489. }
  15490. this.dialogVisible = true;
  15491. } else if (t == 50) {
  15492. if (this.tType == 2) {
  15493. this.$message.error("不支持学生使用");
  15494. return;
  15495. }
  15496. this.plworkFile = [];
  15497. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  15498. if (!this.uploadCid) {
  15499. this.$message.error(
  15500. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  15501. );
  15502. return;
  15503. }
  15504. // this.uploadCid =
  15505. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15506. // index
  15507. // ].toolChoose[i].uploadJson[0];
  15508. this.selectUploadStudent(2);
  15509. } else if (t == 8) {
  15510. if (this.libraryCount > 0) {
  15511. this.updateCount(this.libraryCount, t);
  15512. } else {
  15513. this.libraryCount++;
  15514. a = this.libraryCount;
  15515. this.toolsCount(a, t);
  15516. }
  15517. window.parent.postMessage({ tools: "8" }, "*");
  15518. } else if (t == 17) {
  15519. if (this.libraryCount > 0) {
  15520. this.updateCount(this.libraryCount, t);
  15521. } else {
  15522. this.libraryCount++;
  15523. a = this.libraryCount;
  15524. this.toolsCount(a, t);
  15525. }
  15526. window.parent.postMessage({ tools: "17" }, "*");
  15527. } else if (t == 18) {
  15528. if (this.trainCount > 0) {
  15529. this.updateCount(this.trainCount, t);
  15530. } else {
  15531. this.trainCount++;
  15532. a = this.trainCount;
  15533. this.toolsCount(a, t);
  15534. }
  15535. window.parent.postMessage({ tools: "18" }, "*");
  15536. } else if (t == 10) {
  15537. if (this.timeCount > 0) {
  15538. this.updateCount(this.timeCount, t);
  15539. } else {
  15540. this.timeCount++;
  15541. a = this.timeCount;
  15542. this.toolsCount(a, t);
  15543. }
  15544. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  15545. .taskJson[index].toolChoose[i].preTime
  15546. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15547. .toolChoose[i].preTime
  15548. : "";
  15549. this.timeDialogVisible = true;
  15550. } else if (t == 15) {
  15551. this.answerQ = "";
  15552. this.questionAnswer = "";
  15553. if (this.answerCount > 0) {
  15554. this.updateCount(this.answerCount, t);
  15555. } else {
  15556. this.answerCount++;
  15557. a = this.answerCount;
  15558. this.toolsCount(a, t);
  15559. }
  15560. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15561. .taskJson[index].toolChoose[i].answerQ
  15562. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15563. .toolChoose[i].answerQ
  15564. : "";
  15565. this.answerDialogVisible = true;
  15566. } else if (t == 21) {
  15567. window.parent.postMessage({ tools: "21" }, "*");
  15568. } else if (t == 22) {
  15569. window.parent.postMessage({ tools: "22" }, "*");
  15570. } else if (t == 23) {
  15571. window.parent.postMessage({ tools: "23" }, "*");
  15572. } else if (t == 24) {
  15573. window.parent.postMessage({ tools: "24" }, "*");
  15574. } else if (t == 25) {
  15575. window.parent.postMessage({ tools: "25" }, "*");
  15576. } else if (t == 31) {
  15577. window.parent.postMessage({ tools: "31" }, "*");
  15578. } else if (t == 28) {
  15579. window.parent.postMessage({ tools: "28" }, "*");
  15580. } else if (t == 37) {
  15581. window.parent.postMessage({ tools: "37" }, "*");
  15582. } else if (t == 38) {
  15583. window.parent.postMessage({ tools: "38" }, "*");
  15584. } else if (t == 39) {
  15585. window.parent.postMessage({ tools: "39" }, "*");
  15586. } else if (t == 32) {
  15587. window.parent.postMessage({ tools: "32" }, "*");
  15588. } else if (t == 57) {
  15589. // window.parent.postMessage({ tools: "57" }, "*");
  15590. window.parent.postMessage(
  15591. {
  15592. tools: "57u",
  15593. cid: this.id,
  15594. stage: this.courseType,
  15595. task: this.taskCount,
  15596. tool: i,
  15597. },
  15598. "*"
  15599. );
  15600. } else if (t == 58) {
  15601. window.parent.postMessage({ tools: "58" }, "*");
  15602. } else if (t == 59) {
  15603. window.parent.postMessage({ tools: "59" }, "*");
  15604. } else if (t == 60) {
  15605. window.parent.postMessage({ tools: "60" }, "*");
  15606. } else if (t == 61) {
  15607. window.parent.postMessage({ tools: "61" }, "*");
  15608. } else if (t == 63) {
  15609. window.parent.postMessage({ tools: "63" }, "*");
  15610. } else if (t == 65) {
  15611. if (this.tType == 2) {
  15612. this.$message.error("不支持学生使用");
  15613. return;
  15614. }
  15615. this.uploadCid = this.tcid;
  15616. if (!this.uploadCid) {
  15617. this.$message.error(
  15618. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  15619. );
  15620. return;
  15621. }
  15622. this.selectPickStudent()
  15623. } else if (t == 26) {
  15624. window.parent.postMessage(
  15625. {
  15626. tools: "26",
  15627. cid: this.id,
  15628. stage: this.courseType,
  15629. task: this.taskCount,
  15630. tool: i,
  15631. },
  15632. "*"
  15633. );
  15634. } else if (t == 40) {
  15635. if (this.evalCount > 0) {
  15636. this.updateCount(this.evalCount, t);
  15637. } else {
  15638. this.evalCount++;
  15639. a = this.evalCount;
  15640. this.toolsCount(a, t);
  15641. }
  15642. this.eScore = { eBzText: "", eStar: [] };
  15643. if (this.worksStudent[i].length) {
  15644. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15645. if (this.userid == this.worksStudent[i][k].userid) {
  15646. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15647. this.rateJson =
  15648. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15649. index
  15650. ].toolChoose[i].rateJson;
  15651. break;
  15652. } else {
  15653. this.rateJson =
  15654. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15655. index
  15656. ].toolChoose[i].rateJson;
  15657. }
  15658. }
  15659. } else {
  15660. this.rateJson =
  15661. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15662. index
  15663. ].toolChoose[i].rateJson;
  15664. }
  15665. this.isStar = false;
  15666. this.studentEvalDialogVisible = true;
  15667. } else if (t == 41) {
  15668. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15669. .taskJson[index].toolChoose[i].selectJson
  15670. ? JSON.parse(
  15671. JSON.stringify(
  15672. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15673. index
  15674. ].toolChoose[i].selectJson
  15675. )
  15676. )
  15677. : { url: "", select: [], answer: [] };
  15678. if (this.worksStudent[i].length) {
  15679. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15680. if (this.userid == this.worksStudent[i][k].userid) {
  15681. var a = this.worksStudent[i][k].works.split(",");
  15682. for (var ki = 0; ki < a.length; ki++) {
  15683. a[ki] = parseInt(a[ki]);
  15684. }
  15685. this.selectAnswer = {
  15686. answer: a,
  15687. stu: this.worksStudent[i][k].sName,
  15688. };
  15689. break;
  15690. } else {
  15691. this.selectAnswer = { answer: [], stu: "" };
  15692. }
  15693. }
  15694. } else {
  15695. this.selectAnswer = { answer: [], stu: "" };
  15696. }
  15697. this.isSelect = false;
  15698. this.dialogVisibleSelect = true;
  15699. } else if (t == 44) {
  15700. window.parent.postMessage({ tools: "44" }, "*");
  15701. } else if (t == 47) {
  15702. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15703. .taskJson[index].toolChoose[i].sentenceList
  15704. ? JSON.parse(
  15705. JSON.stringify(
  15706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15707. index
  15708. ].toolChoose[i].sentenceList
  15709. )
  15710. )
  15711. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15712. for (var q = 0; q < this.sentenceList.length; q++) {
  15713. this.sentenceList[q].chooseSenList = [];
  15714. this.sentenceList[q].addChangeSen = [];
  15715. this.sentenceList[q].addChangeSen = JSON.parse(
  15716. JSON.stringify(this.sentenceList[q].addSentence)
  15717. );
  15718. this.sentenceList[q].chooseSenList.length =
  15719. this.sentenceList[q].rightAnswer.length;
  15720. }
  15721. this.dialogVisibleSentence = true;
  15722. } else if (t == 48) {
  15723. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15724. .taskJson[index].toolChoose[i].tableJson
  15725. ? JSON.parse(
  15726. JSON.stringify(
  15727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15728. index
  15729. ].toolChoose[i].tableJson
  15730. )
  15731. )
  15732. : { text: "" };
  15733. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  15734. if (this.worksStudent[i].length) {
  15735. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15736. if (this.userid == this.worksStudent[i][k].userid) {
  15737. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15738. break;
  15739. }
  15740. }
  15741. }
  15742. this.dialogVisibleTable = true;
  15743. } else if (t == 52) {
  15744. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15745. .taskJson[index].toolChoose[i].wordJson
  15746. ? JSON.parse(
  15747. JSON.stringify(
  15748. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15749. index
  15750. ].toolChoose[i].wordJson
  15751. )
  15752. )
  15753. : { text: "" };
  15754. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  15755. if (this.worksStudent[i].length) {
  15756. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15757. if (this.userid == this.worksStudent[i][k].userid) {
  15758. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15759. break;
  15760. }
  15761. }
  15762. }
  15763. this.dialogVisibleWord = true;
  15764. } else if (t == 49) {
  15765. this.groupJson =
  15766. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15767. index
  15768. ].toolChoose[i].groupJson;
  15769. this.islock = this.groupJson.islock == 1 ? true : false;
  15770. this.dialogVisibleGroup = true;
  15771. } else if (t == 62) {
  15772. this.videoJson =
  15773. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15774. index
  15775. ].toolChoose[i].videoJson;
  15776. this.dialogVisibleVideo = true;
  15777. }
  15778. },
  15779. teacherWorkSubmit(t, i, index, s) {
  15780. this.sStudent = s;
  15781. this.toolindex = i;
  15782. this.sTool = t;
  15783. if (this.tType !== "1" && this.tType !== "4") {
  15784. return;
  15785. }
  15786. if (t == 16 || t == 32 || t == 50) {
  15787. this.dialogVisibleWorks = true;
  15788. } else if (t == 15) {
  15789. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15790. .taskJson[index].toolChoose[i].answerQ
  15791. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15792. .toolChoose[i].answerQ
  15793. : "";
  15794. this.questionAnswer = "";
  15795. this.answerDialogVisibleTeacher = true; //问答
  15796. } else if (t == 52) {
  15797. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15798. .taskJson[index].toolChoose[i].wordJson
  15799. ? JSON.parse(
  15800. JSON.stringify(
  15801. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15802. index
  15803. ].toolChoose[i].wordJson
  15804. )
  15805. )
  15806. : { text: "" };
  15807. if (this.worksStudent[i].length) {
  15808. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15809. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15810. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15811. break;
  15812. }
  15813. }
  15814. }
  15815. this.dialogVisibleWordTeacher = true; //文档
  15816. } else if (t == 4) {
  15817. this.radio = [];
  15818. this.noteName = "";
  15819. this.isAnswer = false;
  15820. if (this.askCount > 0) {
  15821. this.updateCount(this.askCount, t);
  15822. } else {
  15823. this.askCount++;
  15824. a = this.askCount;
  15825. this.toolsCount(a, t);
  15826. }
  15827. if (!this.dialogVisible2) {
  15828. this.askJson.askJson =
  15829. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15830. index
  15831. ].toolChoose[i].askJson;
  15832. this.askJson.askTitle =
  15833. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15834. index
  15835. ].toolChoose[i].askTitle;
  15836. this.askJson.askCount =
  15837. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15838. index
  15839. ].toolChoose[i].askCount;
  15840. } else {
  15841. this.askJson.askJson = this.chapTools.askJson.askJson;
  15842. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15843. this.askJson.askCount = this.chapTools.askJson.askCount;
  15844. }
  15845. for (var k = 0; k < this.askJson.askJson.length; k++) {
  15846. if (this.askJson.askJson[k].type == "2") {
  15847. this.radio.push([]);
  15848. } else {
  15849. this.radio.push("");
  15850. }
  15851. }
  15852. this.dialogVisible5Teacher = true;
  15853. } else if (t == 45) {
  15854. this.noteName = "";
  15855. this.radio = [];
  15856. this.isAnswer = false;
  15857. if (this.askCount > 0) {
  15858. this.updateCount(this.askCount, t);
  15859. } else {
  15860. this.askCount++;
  15861. a = this.askCount;
  15862. this.toolsCount(a, t);
  15863. }
  15864. this.testJson =
  15865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15866. index
  15867. ].toolChoose[i].testJson;
  15868. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15869. if (this.testJson.testJson[k].type == "2") {
  15870. this.radio.push([]);
  15871. } else {
  15872. this.radio.push("");
  15873. }
  15874. }
  15875. this.dialogVisibleChoiceTeacher = true;
  15876. } else if (t == 41) {
  15877. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15878. .taskJson[index].toolChoose[i].selectJson
  15879. ? JSON.parse(
  15880. JSON.stringify(
  15881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15882. index
  15883. ].toolChoose[i].selectJson
  15884. )
  15885. )
  15886. : { url: "", select: [], answer: [] };
  15887. if (this.worksStudent[i].length) {
  15888. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15889. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15890. var a = this.worksStudent[i][k].works.split(",");
  15891. for (var ki = 0; ki < a.length; ki++) {
  15892. a[ki] = parseInt(a[ki]);
  15893. }
  15894. this.selectAnswer = {
  15895. answer: a,
  15896. stu: this.worksStudent[i][k].sName,
  15897. };
  15898. break;
  15899. } else {
  15900. this.selectAnswer = { answer: [], stu: "" };
  15901. }
  15902. }
  15903. } else {
  15904. this.selectAnswer = { answer: [], stu: "" };
  15905. }
  15906. this.isSelect = false;
  15907. this.dialogVisibleSelectTeacher = true;
  15908. } else if (t == 47) {
  15909. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15910. .taskJson[index].toolChoose[i].sentenceList
  15911. ? JSON.parse(
  15912. JSON.stringify(
  15913. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15914. index
  15915. ].toolChoose[i].sentenceList
  15916. )
  15917. )
  15918. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15919. for (var q = 0; q < this.sentenceList.length; q++) {
  15920. this.sentenceList[q].chooseSenList = [];
  15921. this.sentenceList[q].addChangeSen = [];
  15922. this.sentenceList[q].addChangeSen = JSON.parse(
  15923. JSON.stringify(this.sentenceList[q].addSentence)
  15924. );
  15925. this.sentenceList[q].chooseSenList.length =
  15926. this.sentenceList[q].rightAnswer.length;
  15927. }
  15928. this.dialogVisibleSentenceTeacher = true;
  15929. } else if (t == 48) {
  15930. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15931. .taskJson[index].toolChoose[i].tableJson
  15932. ? JSON.parse(
  15933. JSON.stringify(
  15934. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15935. index
  15936. ].toolChoose[i].tableJson
  15937. )
  15938. )
  15939. : { text: "" };
  15940. if (this.worksStudent[i].length) {
  15941. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15942. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15943. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15944. break;
  15945. }
  15946. }
  15947. }
  15948. this.dialogVisibleTableTeacher = true;
  15949. } else if (t == 40) {
  15950. if (this.evalCount > 0) {
  15951. this.updateCount(this.evalCount, t);
  15952. } else {
  15953. this.evalCount++;
  15954. a = this.evalCount;
  15955. this.toolsCount(a, t);
  15956. }
  15957. this.eScore = { eBzText: "", eStar: [] };
  15958. if (this.worksStudent[i].length) {
  15959. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15960. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15961. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15962. this.rateJson =
  15963. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15964. index
  15965. ].toolChoose[i].rateJson;
  15966. break;
  15967. } else {
  15968. this.rateJson =
  15969. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15970. index
  15971. ].toolChoose[i].rateJson;
  15972. }
  15973. }
  15974. } else {
  15975. this.rateJson =
  15976. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15977. index
  15978. ].toolChoose[i].rateJson;
  15979. }
  15980. this.isStar = false;
  15981. this.studentEvalDialogVisibleTeacher = true;
  15982. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  15983. window.parent.postMessage(
  15984. {
  15985. tools: t + "teacher",
  15986. cid: this.id,
  15987. stage: this.courseType,
  15988. task: this.taskCount,
  15989. tool: i,
  15990. student: this.sStudent,
  15991. },
  15992. "*"
  15993. );
  15994. }
  15995. },
  15996. openCocoPi(tool, i, uid, uname) {
  15997. let student = {
  15998. userid: uid,
  15999. student: uname,
  16000. };
  16001. if (tool == 57) {
  16002. window.parent.postMessage(
  16003. {
  16004. tools: tool + "teacher",
  16005. cid: this.id,
  16006. stage: this.courseType,
  16007. task: this.taskCount,
  16008. tool: i,
  16009. student: student,
  16010. },
  16011. "*"
  16012. );
  16013. }
  16014. },
  16015. setRightAnswer(s, i, j) {
  16016. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16017. if (
  16018. this.sentenceList[i].chooseSenList[q] == undefined ||
  16019. this.sentenceList[i].chooseSenList[q] == ""
  16020. ) {
  16021. this.sentenceList[i].chooseSenList[q] = s;
  16022. this.sentenceList[i].addChangeSen[j] = "";
  16023. break;
  16024. }
  16025. }
  16026. this.$forceUpdate();
  16027. },
  16028. returnCard(r, i, j) {
  16029. var a = this.sentenceList[i].addSentence.indexOf(r);
  16030. this.sentenceList[i].chooseSenList[j] = "";
  16031. this.sentenceList[i].addChangeSen[a] = r;
  16032. this.$forceUpdate();
  16033. },
  16034. // addSentenceTool() {
  16035. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16036. // this.taskCount
  16037. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16038. // this.sentenceList = [
  16039. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16040. // ];
  16041. // this.dialogVisibleSentence = false;
  16042. // },
  16043. toolsCount(a, t) {
  16044. let params = {
  16045. cid: this.id,
  16046. chid: this.courseType,
  16047. uid: this.userid,
  16048. tid: t,
  16049. count: a,
  16050. };
  16051. this.ajax
  16052. .get(this.$store.state.api + "insertToolsCount", params)
  16053. .then((res) => {
  16054. this.selectCount();
  16055. })
  16056. .catch((err) => {
  16057. console.error(err);
  16058. });
  16059. },
  16060. updateCount(c, t) {
  16061. c++;
  16062. let params = {
  16063. cid: this.id,
  16064. chid: this.courseType,
  16065. uid: this.userid,
  16066. tid: t,
  16067. count: c,
  16068. };
  16069. this.ajax
  16070. .get(this.$store.state.api + "updateToolsCount", params)
  16071. .then((res) => {
  16072. this.selectCount();
  16073. })
  16074. .catch((err) => {
  16075. console.error(err);
  16076. });
  16077. },
  16078. checkEva() {
  16079. if (this.evalua != "") {
  16080. for (var i = 0; i < this.evaJuri.length; i++) {
  16081. if (this.evalua == this.evaJuri[i].id) {
  16082. this.eTitle = this.evaJuri[i].title;
  16083. this.eJson = JSON.parse(this.evaJuri[i].content);
  16084. }
  16085. }
  16086. this.$forceUpdate();
  16087. setTimeout(() => {
  16088. this.setMindData();
  16089. }, 0);
  16090. }
  16091. },
  16092. selectEva() {
  16093. let params = {
  16094. oid: this.oid,
  16095. };
  16096. this.ajax
  16097. .get(this.$store.state.api + "selectAllEvaluation", params)
  16098. .then((res) => {
  16099. this.evaJuri = res.data[0];
  16100. })
  16101. .catch((err) => {
  16102. console.error(err);
  16103. });
  16104. },
  16105. setMindData() {
  16106. this.data.data = [];
  16107. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16108. let _eJson = Object.keys(this.eJson);
  16109. let _e = this.eJson;
  16110. for (let i = 0; i < _eJson.length; i++) {
  16111. let element = _e[_eJson[i]];
  16112. this.data.data.push({
  16113. id: element.id,
  16114. parentid: "root",
  16115. topic: element.name,
  16116. });
  16117. let _eJsonc = Object.keys(element.child);
  16118. let _e2 = element.child;
  16119. for (let j = 0; j < _eJsonc.length; j++) {
  16120. let _ec = _e2[_eJsonc[j]];
  16121. this.data.data.push({
  16122. id: _ec.id,
  16123. parentid: element.id,
  16124. topic: _ec.name,
  16125. });
  16126. let _eJsonz = Object.keys(_ec.child);
  16127. let _e3 = _ec.child;
  16128. for (let z = 0; z < _eJsonz.length; z++) {
  16129. let _ez = _e3[_eJsonz[z]];
  16130. this.data.data.push({
  16131. id: _ez.id,
  16132. parentid: _ec.id,
  16133. topic: _ez.name,
  16134. });
  16135. }
  16136. }
  16137. }
  16138. this.$forceUpdate();
  16139. },
  16140. checkFileFull(type, url) {
  16141. this.fullDialogVisible = true;
  16142. this.fulltype = type;
  16143. this.fullUrl = url;
  16144. },
  16145. openSname(n, id, i, uid) {
  16146. this.snameWid = id;
  16147. this.worksSName = n;
  16148. this.worksSid = uid == n ? "" : uid;
  16149. this.toolindex = i;
  16150. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16151. if (!this.uploadCid) {
  16152. this.$message.error(
  16153. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16154. );
  16155. return;
  16156. }
  16157. this.selectUploadStudent(1);
  16158. },
  16159. updateName() {
  16160. let params = {
  16161. n: this.worksSName,
  16162. cid: this.snameWid,
  16163. };
  16164. this.ajax
  16165. .get(this.$store.state.api + "updateCourseWorksName", params)
  16166. .then((res) => {
  16167. this.$message({
  16168. message: "修改成功",
  16169. type: "success",
  16170. });
  16171. this.dialogVisibleSname = false;
  16172. this.getCourseDetail(2);
  16173. this.snameWid = "";
  16174. this.worksSName = "";
  16175. })
  16176. .catch((err) => {
  16177. console.error(err);
  16178. });
  16179. },
  16180. downloadFile2(f) {
  16181. const loading = this.$loading.service({
  16182. background: "rgba(255, 255, 255, 0.7)",
  16183. target: document.body,
  16184. text: "文件加载中...",
  16185. });
  16186. let url2 = f.url;
  16187. let _url2 = "";
  16188. if (
  16189. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16190. ) {
  16191. _url2 = url2.split(
  16192. "https://view.officeapps.live.com/op/view.aspx?src="
  16193. )[1];
  16194. } else {
  16195. _url2 = url2;
  16196. }
  16197. let params = {
  16198. url: _url2,
  16199. name: f.name,
  16200. };
  16201. this.ajax
  16202. .get(this.$store.state.api + "download", params)
  16203. .then((res) => {
  16204. console.log(res);
  16205. loading.close();
  16206. let content = res.data.data.data;
  16207. let ab = new ArrayBuffer(content.length);
  16208. let view = new Uint8Array(ab);
  16209. for (var i = 0; i < content.length; ++i) {
  16210. view[i] = content[i];
  16211. }
  16212. let elink = document.createElement("a");
  16213. elink.download = f.name;
  16214. elink.style.display = "none";
  16215. let blob = new Blob([ab], {
  16216. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16217. });
  16218. elink.href = URL.createObjectURL(blob);
  16219. document.body.appendChild(elink);
  16220. elink.click();
  16221. document.body.removeChild(elink);
  16222. })
  16223. .catch((err) => {
  16224. loading.close();
  16225. console.error(err);
  16226. });
  16227. },
  16228. downloadFile(url) {
  16229. let _this = this;
  16230. let _url = "";
  16231. if (
  16232. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16233. ) {
  16234. _url = url.split(
  16235. "https://view.officeapps.live.com/op/view.aspx?src="
  16236. )[1];
  16237. } else {
  16238. _url = url;
  16239. }
  16240. const x = new XMLHttpRequest();
  16241. x.open("GET", _url, true);
  16242. x.responseType = "blob";
  16243. const loading = _this.$loading.service({
  16244. background: "rgba(255, 255, 255, 0.7)",
  16245. target: document.body,
  16246. text: "文件加载中...",
  16247. });
  16248. // _this.$message.success("文件下载中...");
  16249. x.onload = function (e) {
  16250. loading.close();
  16251. let content = x.response;
  16252. let elink = document.createElement("a");
  16253. elink.download = decodeURI(
  16254. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16255. );
  16256. elink.style.display = "none";
  16257. let blob = new Blob([content]);
  16258. elink.href = URL.createObjectURL(blob);
  16259. document.body.appendChild(elink);
  16260. elink.click();
  16261. document.body.removeChild(elink);
  16262. };
  16263. x.send();
  16264. },
  16265. openLine(url) {
  16266. window.open(url);
  16267. },
  16268. resize() {
  16269. if (document.getElementsByClassName("box_course").length) {
  16270. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16271. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16272. if (this.showType == 2 || this.showType == 3) {
  16273. document.getElementsByClassName("navBox")[0].style.height =
  16274. a - 40 + 46 + "px";
  16275. } else {
  16276. document.getElementsByClassName("navBox")[0].style.height =
  16277. a - 40 + "px";
  16278. }
  16279. }
  16280. this.Stbodywidth =
  16281. document.getElementsByClassName("student_body").length &&
  16282. document.getElementsByClassName("student_body")[0].offsetWidth;
  16283. },
  16284. closeDraw() {
  16285. this.bg = null;
  16286. this.drawShow = false;
  16287. },
  16288. showPicturePaint(url) {
  16289. let params = {
  16290. img: url,
  16291. };
  16292. this.ajax
  16293. .get(this.$store.state.api + "imgToBase64", params)
  16294. .then((res) => {
  16295. console.log(res);
  16296. this.drawShow = true;
  16297. this.bg = res.data[0].img;
  16298. })
  16299. .catch((err) => {
  16300. console.error(err);
  16301. });
  16302. },
  16303. addImgDraw(base64) {
  16304. let file = { name: "批注图.png" };
  16305. let img = this.dataUrlToFile(base64, file);
  16306. this.beforeUpload1(img, 5);
  16307. },
  16308. addImgDrawImG(url) {
  16309. // console.log(url);
  16310. let params = [
  16311. {
  16312. wid: this.commentDetail.wid,
  16313. img: url,
  16314. },
  16315. ];
  16316. this.ajax
  16317. .post(this.$store.state.api + "updateCourseWorks", params)
  16318. .then((res) => {
  16319. this.$message({
  16320. message: "提交成功",
  16321. type: "success",
  16322. });
  16323. this.drawShow = false;
  16324. this.bg = "";
  16325. this.selectSWorks();
  16326. this.selectStudent();
  16327. })
  16328. .catch((err) => {
  16329. this.$message.error("提交失败");
  16330. console.error(err);
  16331. });
  16332. },
  16333. deletePicturePaint() {
  16334. this.$confirm("确定删除此批注吗?", "提示", {
  16335. confirmButtonText: "确定",
  16336. cancelButtonText: "取消",
  16337. type: "warning",
  16338. })
  16339. .then(() => {
  16340. let params = [
  16341. {
  16342. wid: this.commentDetail.wid,
  16343. img: "",
  16344. },
  16345. ];
  16346. this.ajax
  16347. .post(this.$store.state.api + "updateCourseWorks", params)
  16348. .then((res) => {
  16349. this.$message({
  16350. message: "删除成功",
  16351. type: "success",
  16352. });
  16353. this.selectSWorks();
  16354. this.selectStudent();
  16355. })
  16356. .catch((err) => {
  16357. this.$message.error("删除失败");
  16358. console.error(err);
  16359. });
  16360. })
  16361. .catch(() => {});
  16362. },
  16363. getAudioVideo(constraintsData) {
  16364. if (navigator.mediaDevices === undefined) {
  16365. navigator.mediaDevices = {};
  16366. }
  16367. if (navigator.mediaDevices.getUserMedia === undefined) {
  16368. navigator.mediaDevices.getUserMedia = function (constraints) {
  16369. // 首先,如果有getUserMedia的话,就获得它
  16370. var getUserMedia =
  16371. navigator.getUserMedia ||
  16372. navigator.webkitGetUserMedia ||
  16373. navigator.mozGetUserMedia ||
  16374. navigator.msGetUserMedia;
  16375. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  16376. if (!getUserMedia) {
  16377. return Promise.reject({ code: 404 });
  16378. }
  16379. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  16380. return new Promise(function (resolve, reject) {
  16381. getUserMedia.call(navigator, constraints, resolve, reject);
  16382. });
  16383. };
  16384. }
  16385. return navigator.mediaDevices.getUserMedia(constraintsData);
  16386. },
  16387. /**
  16388. * 开始录制
  16389. */
  16390. startRecording(callback) {
  16391. let _function = (screenStream) => {
  16392. this.addStreamStopListener(screenStream, () => {
  16393. console.log("流停止监听");
  16394. this.stopRecording();
  16395. this.$emit("streamStop", {});
  16396. // this.stopRecording();
  16397. });
  16398. var options = {
  16399. type: "video",
  16400. mimeType: "video/webm",
  16401. disableLogs: false,
  16402. getNativeBlob: false, // enable it for longer recordings
  16403. ignoreMutedMedia: false,
  16404. };
  16405. // this.video.srcObject = screenStream;
  16406. this.recorder = RecordRTC(screenStream, options);
  16407. this.recorder.startRecording();
  16408. this.recorder.screen = screenStream;
  16409. this.videoStart = true;
  16410. // callback(true);
  16411. };
  16412. this.getAudioVideo({ audio: true })
  16413. .then((res) => {
  16414. this.captureScreen(_function, true);
  16415. console.log("已点击允许,开启成功");
  16416. })
  16417. .catch((err) => {
  16418. // console.log('浏览器不支持,请更换浏览器')
  16419. // } else {
  16420. this.captureScreen(_function, false);
  16421. console.log("请检查是否存在麦克风");
  16422. });
  16423. },
  16424. /**
  16425. * 停止录制
  16426. */
  16427. stopRecording(callback) {
  16428. this.recorder.stopRecording(() => {
  16429. // this.video.src = this.video.srcObject = null;
  16430. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  16431. const url = URL.createObjectURL(this.recorder.getBlob());
  16432. const a = document.createElement("a"); //this.fileName+
  16433. let videoFile = new File(
  16434. [this.recorder.getBlob()],
  16435. this.courseDetail.title + "录屏.mp4",
  16436. {
  16437. type: "video/mp4",
  16438. }
  16439. );
  16440. let downloadUrl = URL.createObjectURL(videoFile);
  16441. document.body.appendChild(a);
  16442. a.style.display = "none";
  16443. a.href = url;
  16444. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  16445. a.click();
  16446. this.recorder.screen.stop();
  16447. this.recorder.destroy();
  16448. this.recorder = null;
  16449. this.videoStart = false;
  16450. // callback(false);
  16451. });
  16452. },
  16453. //初始化
  16454. captureScreen(callback, type) {
  16455. if (navigator.getDisplayMedia) {
  16456. //录制结束,文件下载
  16457. navigator
  16458. .getDisplayMedia({
  16459. video: true,
  16460. })
  16461. .then((screenStream) => {
  16462. if (type) {
  16463. navigator.mediaDevices
  16464. .getUserMedia({ audio: true })
  16465. .then((mic) => {
  16466. screenStream.addTrack(mic.getTracks()[0]);
  16467. callback(screenStream);
  16468. });
  16469. } else {
  16470. callback(screenStream);
  16471. }
  16472. })
  16473. .catch(function (error) {
  16474. console.log("error", error);
  16475. });
  16476. } else if (navigator.mediaDevices.getDisplayMedia) {
  16477. navigator.mediaDevices
  16478. .getDisplayMedia({
  16479. video: true,
  16480. })
  16481. .then((screenStream) => {
  16482. if (type) {
  16483. navigator.mediaDevices
  16484. .getUserMedia({ audio: true })
  16485. .then((mic) => {
  16486. screenStream.addTrack(mic.getTracks()[0]);
  16487. callback(screenStream);
  16488. });
  16489. } else {
  16490. callback(screenStream);
  16491. }
  16492. })
  16493. .catch(function (error) {
  16494. console.log("error", error);
  16495. });
  16496. } else {
  16497. var error = "getDisplayMedia API are not supported in this browser.";
  16498. console.log("error", error);
  16499. alert(error);
  16500. }
  16501. },
  16502. //流监听
  16503. addStreamStopListener(stream, callback) {
  16504. stream.addEventListener(
  16505. "ended",
  16506. function () {
  16507. callback();
  16508. callback = function () {};
  16509. },
  16510. false
  16511. );
  16512. stream.addEventListener(
  16513. "inactive",
  16514. function () {
  16515. callback();
  16516. callback = function () {};
  16517. },
  16518. false
  16519. );
  16520. stream.getTracks().forEach(function (track) {
  16521. track.addEventListener(
  16522. "ended",
  16523. function () {
  16524. callback();
  16525. callback = function () {};
  16526. },
  16527. false
  16528. );
  16529. track.addEventListener(
  16530. "inactive",
  16531. function () {
  16532. callback();
  16533. callback = function () {};
  16534. },
  16535. false
  16536. );
  16537. });
  16538. },
  16539. updateGroup() {
  16540. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16541. this.dialogVisibleGroup2 = true;
  16542. },
  16543. updateGroupJson() {
  16544. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  16545. if (
  16546. this.groupStudentUid[this.toolindex][i].length >
  16547. this.groupJson2.number
  16548. ) {
  16549. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  16550. return;
  16551. }
  16552. }
  16553. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  16554. this.islock = this.groupJson.islock == 1 ? true : false;
  16555. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16556. this.taskCount
  16557. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  16558. let params = [
  16559. {
  16560. cid: this.id,
  16561. chapters: JSON.stringify(this.chapInfoList),
  16562. uid: this.userid,
  16563. unitIndex: this.courseType,
  16564. },
  16565. ];
  16566. this.ajax
  16567. .post(this.$store.state.api + "updateWorkNew4", params)
  16568. .then((res) => {
  16569. this.$message.success("设置成功");
  16570. this.getCourseDetail(2);
  16571. this.dialogVisibleGroup2 = false;
  16572. this.groupJson2 = {};
  16573. this.$forceUpdate();
  16574. })
  16575. .catch((err) => {
  16576. this.$message.error("网络不佳");
  16577. console.error(err);
  16578. });
  16579. },
  16580. lockChair() {
  16581. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16582. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  16583. this.updateGroupJson();
  16584. },
  16585. selectGroup(index) {
  16586. this.getCourseDetail(2, index);
  16587. },
  16588. joinGroup(index) {
  16589. if (this.groupJson.islock == 2) {
  16590. this.$message.error("位置已被锁定,无法加入");
  16591. return;
  16592. }
  16593. if (
  16594. this.groupStudent[this.toolindex][index].length >
  16595. this.groupJson.number ||
  16596. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  16597. ) {
  16598. this.$message.error("位置已满,无法加入");
  16599. return;
  16600. }
  16601. let params = [
  16602. {
  16603. cid: this.id,
  16604. stage: this.courseType,
  16605. task: this.taskCount,
  16606. tool: this.toolindex,
  16607. g: index,
  16608. uid: this.userid,
  16609. },
  16610. ];
  16611. this.ajax
  16612. .post(this.$store.state.api + "joinGroup", params)
  16613. .then((res) => {
  16614. this.$message.success("加入成功");
  16615. this.getCourseDetail(2);
  16616. })
  16617. .catch((err) => {
  16618. this.$message.error("网络不佳");
  16619. console.error(err);
  16620. });
  16621. },
  16622. exitGroup(id) {
  16623. if (this.groupJson.islock == 2) {
  16624. this.$message.error("位置已被锁定,无法退出");
  16625. return;
  16626. }
  16627. let params = [
  16628. {
  16629. gid: id,
  16630. },
  16631. ];
  16632. this.ajax
  16633. .post(this.$store.state.api + "exitGroup", params)
  16634. .then((res) => {
  16635. this.$message.success("退出成功");
  16636. this.getCourseDetail(2);
  16637. })
  16638. .catch((err) => {
  16639. this.$message.error("网络不佳");
  16640. console.error(err);
  16641. });
  16642. },
  16643. groupUpload(index, task, gindex) {
  16644. this.taskCount = task;
  16645. this.toolindex = index;
  16646. this.groupIndex = gindex;
  16647. this.dialogVisibleGroupWork = true;
  16648. },
  16649. updateGroupChair(user) {
  16650. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  16651. el.label = index;
  16652. return index != user.group;
  16653. });
  16654. this.updateGroupUser = user;
  16655. this.dialogVisibleUpdateGroup = true;
  16656. },
  16657. updateChair() {
  16658. if (
  16659. this.groupStudent[this.toolindex][this.checkChair].length >
  16660. this.groupJson.number ||
  16661. this.groupStudent[this.toolindex][this.checkChair].length ==
  16662. this.groupJson.number
  16663. ) {
  16664. this.$message.error("位置已满,无法加入");
  16665. return;
  16666. }
  16667. let params = [
  16668. {
  16669. cid: this.id,
  16670. stage: this.courseType,
  16671. task: this.taskCount,
  16672. tool: this.toolindex,
  16673. g: this.checkChair,
  16674. uid: this.updateGroupUser.userid,
  16675. },
  16676. ];
  16677. this.ajax
  16678. .post(this.$store.state.api + "joinGroup", params)
  16679. .then((res) => {
  16680. this.$message.success("修改成功");
  16681. this.updateGroupUser = {};
  16682. this.checkChair = "";
  16683. this.updateGroupArray = {};
  16684. this.dialogVisibleUpdateGroup = false;
  16685. this.getCourseDetail(2);
  16686. })
  16687. .catch((err) => {
  16688. this.$message.error("网络不佳");
  16689. console.error(err);
  16690. });
  16691. },
  16692. deleteGroupChair(gindex) {
  16693. this.checkDeleteGroup = [];
  16694. this.deleteGroupUser = JSON.parse(
  16695. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  16696. );
  16697. this.deleteGroupArray = this.groupJson.group[gindex];
  16698. this.groupIndex = gindex;
  16699. this.dialogVisibleDeleteGroup = true;
  16700. },
  16701. async deleteChair() {
  16702. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  16703. const gid =
  16704. this.groupStudent[this.toolindex][this.groupIndex][
  16705. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  16706. this.checkDeleteGroup[i]
  16707. )
  16708. ];
  16709. let params = [
  16710. {
  16711. gid: gid.id,
  16712. },
  16713. ];
  16714. var a = await this.deleteChairA(params);
  16715. if (i == this.checkDeleteGroup.length - 1) {
  16716. this.$message.success("退出成功");
  16717. this.dialogVisibleDeleteGroup = false;
  16718. this.deleteGroupUser = [];
  16719. this.deleteGroupArray = {};
  16720. this.groupIndex = "";
  16721. this.checkDeleteGroup = [];
  16722. this.getCourseDetail(2);
  16723. }
  16724. }
  16725. },
  16726. deleteChairA(params) {
  16727. return new Promise((resolve, reject) => {
  16728. this.ajax
  16729. .post(this.$store.state.api + "exitGroup", params)
  16730. .then((res) => {
  16731. resolve(1);
  16732. })
  16733. .catch((err) => {
  16734. this.$message.error("网络不佳");
  16735. console.error(err);
  16736. });
  16737. });
  16738. },
  16739. contract(i) {
  16740. if (this.isCloseList[i].isClose == 0) {
  16741. this.isCloseList[i].isClose = 1;
  16742. } else {
  16743. this.isCloseList[i].isClose = 0;
  16744. }
  16745. this.$forceUpdate();
  16746. },
  16747. openWordCloud(toolindex) {
  16748. let array = [];
  16749. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  16750. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  16751. array.push({ name: works });
  16752. }
  16753. if (this.isGroup) {
  16754. for (var i = 0; i < this.courseGroup.group.length; i++) {
  16755. let works = this.courseGroup.group[i].works[toolindex];
  16756. for (var j = 0; j < works.length; j++) {
  16757. let answer = JSON.parse(works[j].works)[0].answer;
  16758. array.push({ name: answer });
  16759. }
  16760. }
  16761. }
  16762. this.wordCloudData = array;
  16763. this.dialogVisibleWordCloud = true;
  16764. },
  16765. pickStudent(stu){
  16766. if(this.isPickStudent.indexOf(stu.userid) !== -1){
  16767. return;
  16768. }
  16769. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  16770. confirmButtonText: "确定",
  16771. cancelButtonText: "取消",
  16772. type: "warning",
  16773. })
  16774. .then(() => {
  16775. let params = [{
  16776. uid:stu.userid,
  16777. cid:this.id,
  16778. stage:this.courseType,
  16779. task:this.taskCount,
  16780. tool:this.toolindex
  16781. }]
  16782. this.ajax
  16783. .post(this.$store.state.api + "updateCoursePick", params)
  16784. .then((res) => {
  16785. this.$message.success("操作成功")
  16786. this.getPick()
  16787. })
  16788. .catch((err) => {
  16789. this.$message.error("网络不佳");
  16790. console.error(err);
  16791. });
  16792. })
  16793. .catch(() => {});
  16794. },
  16795. getPick(){
  16796. let params = {
  16797. cid:this.id
  16798. }
  16799. this.ajax
  16800. .get(this.$store.state.api + "getPick", params)
  16801. .then((res) => {
  16802. let array = []
  16803. for(var i = 0; i < res.data[0].length;i++){
  16804. array.push(res.data[0][i].userid)
  16805. }
  16806. this.isPickStudent = array
  16807. if(array.indexOf(this.userid) !== -1){
  16808. this.$confirm("你被老师选到啦!", "提示", {
  16809. confirmButtonText: "确定",
  16810. showCancelButton:false,
  16811. closeOnClickModal:false,
  16812. type: "warning",
  16813. })
  16814. .then(() => {
  16815. let pa = [{
  16816. uid: this.userid,
  16817. cid: this.id
  16818. }]
  16819. this.ajax
  16820. .post(this.$store.state.api + "deletePick", pa)
  16821. .then((res) => {
  16822. this.getPick()
  16823. })
  16824. .catch((err) => {
  16825. this.$message.error("网络不佳");
  16826. console.error(err);
  16827. });
  16828. })
  16829. .catch(() => {});
  16830. }
  16831. })
  16832. .catch((err) => {
  16833. this.$message.error("网络不佳");
  16834. console.error(err);
  16835. });
  16836. }
  16837. },
  16838. directives: {
  16839. // 使用局部注册指令的方式
  16840. resize: {
  16841. // 指令的名称
  16842. bind(el, binding) {
  16843. // el为绑定的元素,binding为绑定给指令的对象
  16844. let width = "",
  16845. height = "";
  16846. function isReize() {
  16847. const style = document.defaultView.getComputedStyle(el);
  16848. if (width !== style.width || height !== style.height) {
  16849. binding.value(); // 关键
  16850. }
  16851. width = style.width;
  16852. height = style.height;
  16853. }
  16854. el.__vueSetInterval__ = setInterval(isReize, 300);
  16855. },
  16856. unbind(el) {
  16857. clearInterval(el.__vueSetInterval__);
  16858. },
  16859. },
  16860. },
  16861. beforeDestroy() {
  16862. window.onresize = null;
  16863. clearInterval(this.timer);
  16864. this.timer = null;
  16865. clearInterval(this.opertimer);
  16866. this.opertimer = null;
  16867. },
  16868. computed: {
  16869. contentConvent() {
  16870. return function (c) {
  16871. return c
  16872. ? c
  16873. .replaceAll(/\r\n/g, "<br/>")
  16874. .replaceAll(/\n/g, "<br/>")
  16875. .replaceAll(/\s/g, " &nbsp")
  16876. : "";
  16877. };
  16878. },
  16879. checkUpload() {
  16880. return function () {
  16881. var studentK = [];
  16882. if (this.plworkFile.length > 0) {
  16883. for (var z = 0; z < this.plworkFile.length; z++) {
  16884. studentK.push(this.plworkFile[z].username);
  16885. }
  16886. studentK = studentK.join(",");
  16887. }
  16888. var a = this.uploadStudentJuri.filter((el) => {
  16889. return studentK.indexOf(el.userid) == -1;
  16890. });
  16891. return a;
  16892. };
  16893. },
  16894. getSName() {
  16895. return function (name) {
  16896. var check = name;
  16897. this.uploadStudentJuri.forEach((el) => {
  16898. if (el.userid == check) {
  16899. check = el.name ? el.name : el.username;
  16900. }
  16901. });
  16902. return check;
  16903. };
  16904. },
  16905. getImgList() {
  16906. return function (val) {
  16907. let srcList = []; // 定义一个数组用来接收后面的img地址
  16908. val.replace(
  16909. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  16910. function (match, capture) {
  16911. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  16912. srcList.push(capture);
  16913. }
  16914. );
  16915. return srcList;
  16916. };
  16917. },
  16918. },
  16919. mounted() {
  16920. if (this.screenType == 2) {
  16921. window.parent.postMessage({ allScreen: 4 }, "*");
  16922. } else if (this.screenType == 3) {
  16923. window.parent.postMessage({ allScreen: 5 }, "*");
  16924. } else if (this.screenType == 1) {
  16925. window.parent.postMessage({ allScreen: 6 }, "*");
  16926. }
  16927. this.setOperationTime();
  16928. this.selectEva();
  16929. this.getCourseDetail();
  16930. this.selectCount();
  16931. this.getHomeWork();
  16932. this.contentDialog = true;
  16933. this.setContent2(true);
  16934. if (this.tType == 4) {
  16935. this.pzDialog = true;
  16936. this.selectPz();
  16937. }
  16938. document.scrollingElement.scrollTop = 0;
  16939. window.addEventListener("resize", () => {
  16940. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16941. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16942. if (this.showType == 2 || this.showType == 3) {
  16943. document.getElementsByClassName("navBox")[0].style.height =
  16944. a - 40 + 46 + "px";
  16945. } else {
  16946. document.getElementsByClassName("navBox")[0].style.height =
  16947. a - 40 + "px";
  16948. }
  16949. });
  16950. let _this = this;
  16951. setTimeout(() => {
  16952. // _this.vedioTime = [];
  16953. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16954. // _this.vedioTime[i] = document.getElementsByClassName(
  16955. // "vjs-duration-display"
  16956. // )[i].textContent;
  16957. // }
  16958. }, 1000);
  16959. },
  16960. };
  16961. </script>
  16962. <style scoped>
  16963. @media screen and (max-width: 1280px) {
  16964. /* .courseIndex > div:first-child(2) {
  16965. width: 15% !important;
  16966. } */
  16967. /* .navText {
  16968. width: 120px !important;
  16969. } */
  16970. .evaCss {
  16971. flex-direction: column !important;
  16972. align-items: center !important;
  16973. }
  16974. .elist_input {
  16975. width: 90% !important;
  16976. }
  16977. .dialog_diy1 >>> .el-dialog {
  16978. width: 100% !important;
  16979. }
  16980. .rightWidthCss {
  16981. width: 100% !important;
  16982. }
  16983. .dialog_diy3 >>> .el-dialog {
  16984. width: 100% !important;
  16985. }
  16986. /* .textTitle >>> .el-form-item__label {
  16987. width: 150px !important;
  16988. } */
  16989. /* .stageItemTitle > div:last-child{
  16990. max-width: 50px;
  16991. } */
  16992. }
  16993. .evaCssMax {
  16994. flex-direction: column !important;
  16995. align-items: center !important;
  16996. }
  16997. .dialog_diy >>> .el-dialog {
  16998. margin-top: 10vh !important;
  16999. }
  17000. .body_student {
  17001. width: 77%;
  17002. height: 100%;
  17003. position: absolute;
  17004. left: 22%;
  17005. top: 0;
  17006. }
  17007. .student_head {
  17008. width: 100%;
  17009. margin: 20px auto 0;
  17010. padding-bottom: 20px;
  17011. display: flex;
  17012. flex-direction: column;
  17013. flex-wrap: nowrap;
  17014. align-items: flex-start;
  17015. justify-content: flex-start;
  17016. }
  17017. .pb_left {
  17018. width: 20%;
  17019. margin-right: 10px;
  17020. background: rgb(255, 255, 255);
  17021. position: fixed;
  17022. height: calc(100% - 40px);
  17023. border-radius: 20px;
  17024. padding-bottom: 15px;
  17025. box-sizing: border-box;
  17026. }
  17027. .wheel > img,
  17028. .project > img,
  17029. .star > img,
  17030. .evaluate > img,
  17031. .up_photo > img,
  17032. .chapter_add > img,
  17033. .deleteWord > img,
  17034. .question > img,
  17035. .homework > img {
  17036. width: 100%;
  17037. height: 100%;
  17038. }
  17039. .upCover > img {
  17040. width: 131px;
  17041. height: 69px;
  17042. object-fit: cover;
  17043. }
  17044. .upCover {
  17045. width: calc(100% / 3.5);
  17046. position: relative;
  17047. margin: 0 15px 10px 0;
  17048. display: flex;
  17049. flex-direction: column;
  17050. flex-wrap: nowrap;
  17051. justify-content: center;
  17052. align-content: center;
  17053. align-items: center;
  17054. height: fit-content;
  17055. }
  17056. .upCover2 {
  17057. width: 100%;
  17058. position: relative;
  17059. margin: 0 15px 10px 0;
  17060. display: flex;
  17061. flex-direction: column;
  17062. flex-wrap: nowrap;
  17063. justify-content: center;
  17064. align-content: center;
  17065. align-items: center;
  17066. }
  17067. .upCover2 > img {
  17068. width: 100%;
  17069. height: 90px;
  17070. object-fit: contain;
  17071. }
  17072. .chapter_add {
  17073. width: 120px;
  17074. position: relative;
  17075. text-align: center;
  17076. }
  17077. .isAddThings {
  17078. margin-top: 20px;
  17079. position: relative;
  17080. text-align: center;
  17081. background: #f7f8fa;
  17082. height: 90px;
  17083. width: 90px;
  17084. display: flex;
  17085. flex-direction: column;
  17086. justify-content: center;
  17087. }
  17088. .deleteWord {
  17089. width: 22px;
  17090. height: 22px;
  17091. position: absolute;
  17092. right: -5px;
  17093. top: -5px;
  17094. cursor: pointer;
  17095. }
  17096. .box_course {
  17097. /* width: 60%; */
  17098. width: calc(100% - 300px);
  17099. }
  17100. .wheel {
  17101. width: 100%;
  17102. /* height: 100%; */
  17103. height: 650px;
  17104. }
  17105. .right_box {
  17106. display: flex;
  17107. flex-direction: column;
  17108. margin-left: 30px;
  17109. justify-content: space-around;
  17110. }
  17111. .right_box_title {
  17112. font-size: 23px;
  17113. }
  17114. .people {
  17115. display: flex;
  17116. }
  17117. .student_body {
  17118. width: 100%;
  17119. margin: 0 auto;
  17120. margin-top: 10px;
  17121. padding: 0 0 20px;
  17122. }
  17123. .study_top {
  17124. margin-top: 100px;
  17125. width: 100%;
  17126. height: auto;
  17127. padding-bottom: 20px;
  17128. }
  17129. .study_top .checkbox {
  17130. display: flex;
  17131. align-items: center;
  17132. padding: 15px 0 15px 30px;
  17133. flex: 0 0 auto;
  17134. font-weight: bold;
  17135. border-bottom: 1px solid #eee;
  17136. }
  17137. .study_top .check {
  17138. padding-bottom: 5px;
  17139. text-align: center;
  17140. cursor: pointer;
  17141. height: 30px;
  17142. box-sizing: border-box;
  17143. display: flex;
  17144. }
  17145. .study_top .checked {
  17146. border-bottom: 4px solid #3fc6a0;
  17147. padding-bottom: 5px;
  17148. color: #3fc6a0;
  17149. display: flex;
  17150. height: 35px;
  17151. }
  17152. .study_top .checked > div,
  17153. .study_top .check > div {
  17154. margin-right: 5px;
  17155. }
  17156. .videoTop {
  17157. display: flex;
  17158. flex-direction: row;
  17159. justify-content: space-between;
  17160. background: #fff;
  17161. align-items: center;
  17162. width: 95%;
  17163. padding: 20px;
  17164. }
  17165. .filebox {
  17166. display: flex;
  17167. flex-wrap: wrap;
  17168. flex-direction: column;
  17169. padding: 0 0 5px;
  17170. position: relative;
  17171. }
  17172. .filebox:before {
  17173. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  17174. position: absolute;
  17175. top: 20px;
  17176. left: 13px;
  17177. border-left: 2px dotted #cad1dc;
  17178. height: calc(100% - 15px);
  17179. }
  17180. .toolHeng2 > div:last-child::before {
  17181. height: calc(100% - 43px);
  17182. }
  17183. .filebox .tooldetail {
  17184. width: 35%;
  17185. margin: 0px 12px;
  17186. padding: 12px 25px 0 13px;
  17187. line-height: 30px;
  17188. word-break: break-word;
  17189. font-size: 18px;
  17190. background: #ffffff;
  17191. border-radius: 8px 8px 8px 8px;
  17192. opacity: 1;
  17193. border: 1px solid #cad1dc;
  17194. }
  17195. .file {
  17196. display: flex;
  17197. flex-direction: column;
  17198. align-items: center;
  17199. justify-content: center;
  17200. cursor: pointer;
  17201. width: 200px;
  17202. }
  17203. .file div {
  17204. margin-top: 10px;
  17205. width: 150px;
  17206. text-align: center;
  17207. overflow: hidden;
  17208. white-space: nowrap;
  17209. text-overflow: ellipsis;
  17210. }
  17211. .media {
  17212. display: flex;
  17213. flex-direction: column;
  17214. align-items: center;
  17215. justify-content: center;
  17216. margin: 0 20px 20px 0;
  17217. cursor: pointer;
  17218. margin: 12px 0 5px 15px;
  17219. overflow: hidden;
  17220. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  17221. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  17222. box-sizing: border-box;
  17223. }
  17224. .media img {
  17225. height: 90px;
  17226. width: 160px;
  17227. object-fit: cover;
  17228. }
  17229. .media .title {
  17230. padding: 5px;
  17231. text-align: left;
  17232. width: 100%;
  17233. box-sizing: border-box;
  17234. }
  17235. .media .btn {
  17236. width: 100%;
  17237. height: 35px;
  17238. line-height: 35px;
  17239. color: #fff;
  17240. background: #606060;
  17241. text-align: center;
  17242. overflow: hidden;
  17243. white-space: nowrap;
  17244. text-overflow: ellipsis;
  17245. }
  17246. .detail_content_top {
  17247. width: 100%;
  17248. padding: 25px 0 25px 0;
  17249. }
  17250. .detail_title {
  17251. text-align: center;
  17252. font-size: 24px;
  17253. }
  17254. .detail_time {
  17255. font-size: 13px;
  17256. padding: 15px 0 0 40px;
  17257. }
  17258. .detail_content {
  17259. line-height: 2pc;
  17260. width: 90%;
  17261. margin: 0 auto;
  17262. padding-top: 30px;
  17263. text-indent: 30px;
  17264. overflow: auto;
  17265. height: 200px;
  17266. }
  17267. .score_box >>> .el-rate {
  17268. margin-left: 10px;
  17269. }
  17270. .dialog_change >>> .el-dialog {
  17271. border-radius: 5px;
  17272. }
  17273. .dialog_change >>> .el-dialog__header {
  17274. background: #f2f2f2;
  17275. text-align: center;
  17276. }
  17277. .dialog_change >>> .el-dialog__title {
  17278. line-height: 5px;
  17279. }
  17280. .dialog_change >>> .el-dialog__body {
  17281. background: #fff;
  17282. padding: 10px 20px;
  17283. }
  17284. .score_box {
  17285. display: flex;
  17286. align-items: center;
  17287. margin-bottom: 18px;
  17288. margin-top: 20px;
  17289. }
  17290. .up_photo {
  17291. width: 120px;
  17292. cursor: pointer;
  17293. margin-top: 10px;
  17294. }
  17295. .up_photo2 {
  17296. width: 180px;
  17297. box-sizing: border-box;
  17298. min-width: 180px;
  17299. height: 180px;
  17300. max-height: 180px;
  17301. min-height: 180px;
  17302. cursor: pointer;
  17303. display: flex;
  17304. flex-direction: column;
  17305. align-items: center;
  17306. justify-content: center;
  17307. background: rgb(242, 246, 255);
  17308. /* padding: 25px; */
  17309. margin-bottom: 10px;
  17310. }
  17311. .up_photo2 img {
  17312. width: 50%;
  17313. height: auto;
  17314. }
  17315. .up_photo2 span {
  17316. color: #898989;
  17317. }
  17318. .plworkBox {
  17319. display: flex;
  17320. align-items: center;
  17321. margin-top: 10px;
  17322. flex-wrap: wrap;
  17323. }
  17324. .upload_send {
  17325. margin: 30px auto 30px;
  17326. width: 60%;
  17327. background: #3681fc;
  17328. text-align: center;
  17329. height: 35px;
  17330. line-height: 35px;
  17331. color: #fff;
  17332. border-radius: 5px;
  17333. cursor: pointer;
  17334. }
  17335. .marginT {
  17336. margin-top: 20px;
  17337. }
  17338. .cd_content_steps {
  17339. display: flex;
  17340. width: 90%;
  17341. justify-content: space-around;
  17342. border-top: 1px solid #eeeeee;
  17343. }
  17344. .cd_steps_box {
  17345. display: flex;
  17346. justify-content: center;
  17347. align-items: center;
  17348. flex-direction: column;
  17349. cursor: pointer;
  17350. }
  17351. .first {
  17352. display: flex;
  17353. align-items: center;
  17354. margin: 15px 0 20px 0;
  17355. font-size: 20px;
  17356. }
  17357. .first > div:nth-child(2) {
  17358. font-size: 16px !important;
  17359. padding-left: 10px;
  17360. line-height: 26px;
  17361. box-sizing: border-box;
  17362. }
  17363. .blue_box_one {
  17364. text-align: center;
  17365. color: #fff;
  17366. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  17367. border-radius: 7px;
  17368. margin: 10px;
  17369. cursor: pointer;
  17370. width: 95%;
  17371. height: 45px;
  17372. display: flex;
  17373. flex-direction: row;
  17374. justify-content: flex-start;
  17375. align-items: center;
  17376. }
  17377. .blue_box_one > div:nth-child(1) {
  17378. line-height: 30px;
  17379. margin: 0 5px 0 10px;
  17380. width: 30%;
  17381. min-width: 70px;
  17382. border-radius: 4px;
  17383. }
  17384. .blue_box_one > div:nth-child(2) {
  17385. white-space: nowrap;
  17386. text-overflow: ellipsis;
  17387. overflow: hidden;
  17388. word-break: break-all;
  17389. width: 70%;
  17390. text-align: left;
  17391. margin-right: 10px;
  17392. max-width: calc(100% - 85px);
  17393. }
  17394. .blue_box_one > div:nth-child(2):hover {
  17395. overflow: hidden;
  17396. text-overflow: ellipsis;
  17397. white-space: nowrap;
  17398. cursor: pointer;
  17399. }
  17400. .upFile {
  17401. margin: 0 auto;
  17402. width: 120px;
  17403. background: #3681fc;
  17404. color: #fff;
  17405. height: 30px;
  17406. text-align: center;
  17407. line-height: 30px;
  17408. border-radius: 5px;
  17409. font-size: 14px;
  17410. cursor: pointer;
  17411. }
  17412. .courseTitle {
  17413. width: 85%;
  17414. margin: 10px auto;
  17415. display: flex;
  17416. flex-direction: row;
  17417. align-items: center;
  17418. justify-content: space-between;
  17419. text-align: center;
  17420. }
  17421. .courseTitle .ctitle {
  17422. font-size: 24px;
  17423. font-weight: bold;
  17424. color: #0e1e33;
  17425. white-space: nowrap;
  17426. overflow: hidden;
  17427. text-overflow: ellipsis;
  17428. }
  17429. .inviteBox {
  17430. font-size: 14px;
  17431. margin-top: 5px;
  17432. color: #a6cbff;
  17433. text-align: center;
  17434. }
  17435. .courseTitle >>> .el-tooltip {
  17436. width: 100%;
  17437. white-space: nowrap;
  17438. overflow: hidden;
  17439. text-overflow: ellipsis;
  17440. word-break: break-word;
  17441. }
  17442. .ml {
  17443. margin-left: 20px;
  17444. color: #5b7dba;
  17445. border-left: 3px solid #5b7dba;
  17446. padding-left: 5px;
  17447. font-weight: bold;
  17448. }
  17449. .return {
  17450. width: 2rem;
  17451. height: 2rem;
  17452. cursor: pointer;
  17453. }
  17454. .return > img {
  17455. width: 100%;
  17456. height: 100%;
  17457. }
  17458. .returnBtn {
  17459. width: 86px;
  17460. height: 36px;
  17461. background: #3681fc;
  17462. border-radius: 4px;
  17463. color: #fff;
  17464. text-align: center;
  17465. line-height: 36px;
  17466. margin-right: 20px;
  17467. cursor: pointer;
  17468. font-size: 14px;
  17469. font-weight: 400;
  17470. display: flex;
  17471. flex-direction: row;
  17472. flex-wrap: nowrap;
  17473. align-items: center;
  17474. justify-content: center;
  17475. }
  17476. .commentIcon::before,
  17477. .vedioIcon::before,
  17478. .lockIcon::before,
  17479. .returnIcon::before {
  17480. content: "";
  17481. display: block;
  17482. background-size: 100% 100%;
  17483. background-repeat: no-repeat;
  17484. width: 20px;
  17485. height: 20px;
  17486. margin-right: 5px;
  17487. }
  17488. .commentIcon::before {
  17489. background-image: url("../assets/icon/newIcon/comment.png");
  17490. }
  17491. .vedioIcon::before {
  17492. background-image: url("../assets/icon/newIcon/vedio.png");
  17493. }
  17494. .lockIcon::before {
  17495. background-image: url("../assets/icon/newIcon/lock.png");
  17496. }
  17497. .returnIcon::before {
  17498. background-image: url("../assets/icon/newIcon/return.png");
  17499. }
  17500. .tool {
  17501. display: flex;
  17502. flex-direction: column;
  17503. flex-wrap: nowrap;
  17504. width: 13%;
  17505. margin: 0 30px;
  17506. align-items: center;
  17507. }
  17508. .whiteBIcon {
  17509. width: 150px;
  17510. cursor: pointer;
  17511. }
  17512. .whiteBIcon > img {
  17513. width: 100%;
  17514. height: 100%;
  17515. }
  17516. .mask {
  17517. background-color: rgba(0, 0, 0, 0);
  17518. position: fixed;
  17519. top: 0;
  17520. left: 0;
  17521. width: 100%;
  17522. height: 100%;
  17523. z-index: 20000;
  17524. display: flex;
  17525. align-items: center;
  17526. justify-content: center;
  17527. }
  17528. .progressBox {
  17529. width: 500px;
  17530. height: 180px;
  17531. background: #fff;
  17532. border-radius: 10px;
  17533. box-shadow: 0 0 6px 1px #bfbfbf;
  17534. display: flex;
  17535. align-items: center;
  17536. justify-content: center;
  17537. flex-direction: column;
  17538. position: relative;
  17539. color: #6c6c6c;
  17540. }
  17541. .progressBox >>> .el-progress-bar__outer {
  17542. background-color: #d1dfff !important;
  17543. }
  17544. .progressBox .lbox {
  17545. height: 50px;
  17546. font-size: 19px;
  17547. display: flex;
  17548. align-items: center;
  17549. color: #747474;
  17550. }
  17551. .progressBox .lbox img {
  17552. width: 40px;
  17553. margin-right: 20px;
  17554. }
  17555. .closeCss {
  17556. position: absolute;
  17557. top: 8px;
  17558. right: 8px;
  17559. cursor: pointer;
  17560. width: 20px;
  17561. height: 20px;
  17562. }
  17563. .closeCss > img {
  17564. width: 100%;
  17565. height: 100%;
  17566. }
  17567. .uploadVedio {
  17568. display: flex;
  17569. flex-direction: column;
  17570. flex-wrap: nowrap;
  17571. justify-content: center;
  17572. align-items: center;
  17573. margin: 0 15px 10px 0;
  17574. }
  17575. .uploadVedio > img {
  17576. width: 30px;
  17577. height: 30px;
  17578. }
  17579. .uploadVedio > span {
  17580. white-space: nowrap;
  17581. overflow: hidden;
  17582. text-overflow: ellipsis;
  17583. width: 75px;
  17584. margin-top: 7px;
  17585. }
  17586. .picName {
  17587. white-space: nowrap;
  17588. overflow: hidden;
  17589. text-overflow: ellipsis;
  17590. width: 75px;
  17591. margin-top: 7px;
  17592. }
  17593. .new_top {
  17594. display: flex;
  17595. background: #fff;
  17596. flex-direction: row;
  17597. justify-content: flex-start;
  17598. align-items: center;
  17599. height: 60px;
  17600. position: relative;
  17601. }
  17602. .new_top::before {
  17603. content: "";
  17604. width: 100%;
  17605. height: 20px;
  17606. position: absolute;
  17607. top: -20px;
  17608. display: block;
  17609. background: #f2f2f2;
  17610. }
  17611. .before {
  17612. position: absolute;
  17613. background: #c3dad4;
  17614. width: 6px;
  17615. height: 100%;
  17616. }
  17617. .courseIndex {
  17618. display: flex;
  17619. flex-direction: row;
  17620. align-items: center;
  17621. width: calc(100% - 600px);
  17622. }
  17623. .courseIndex > div:nth-child(1) {
  17624. margin: 0 0 0 10px;
  17625. font-size: 24px;
  17626. min-width: 100px;
  17627. font-weight: bold;
  17628. border-left: 4px solid #3363b9;
  17629. height: 35px;
  17630. text-align: center;
  17631. line-height: 35px;
  17632. }
  17633. .courseIndex > div:nth-child(2) {
  17634. font-size: 23px;
  17635. /* width: 300px; */
  17636. max-width: calc(100% - 180px);
  17637. white-space: nowrap;
  17638. overflow: hidden;
  17639. text-overflow: ellipsis;
  17640. }
  17641. .courseIndex > div:nth-child(3) {
  17642. border-bottom: 1px solid #d7d7d7;
  17643. padding-bottom: 5px;
  17644. background: #3681fc;
  17645. width: 55px;
  17646. min-width: 55px;
  17647. border-radius: 5px;
  17648. color: #fff;
  17649. text-align: center;
  17650. height: 20px;
  17651. line-height: 26px;
  17652. font-size: 14px;
  17653. margin: 0 0 0 10px;
  17654. }
  17655. .course_text {
  17656. padding: 20px 0 0 15px;
  17657. text-indent: 30px;
  17658. width: 80%;
  17659. min-height: 20px;
  17660. }
  17661. .vedioList {
  17662. background: #f2f2f2;
  17663. border: 1px solid #ececec;
  17664. /* width: 38.8%; */
  17665. width: 300px;
  17666. height: 445px;
  17667. border-radius: 10px;
  17668. overflow: hidden;
  17669. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  17670. }
  17671. .vedioNav {
  17672. margin: 10px 0 0 15px;
  17673. border-bottom: 1px solid #d7d7d7;
  17674. padding-bottom: 5px;
  17675. background: #3681fc;
  17676. width: 55px;
  17677. min-width: 55px;
  17678. border-radius: 5px;
  17679. color: #fff;
  17680. text-align: center;
  17681. height: 20px;
  17682. line-height: 26px;
  17683. font-size: 14px;
  17684. }
  17685. .queTop {
  17686. display: flex;
  17687. padding: 20px 0 20px 30px;
  17688. width: 100%;
  17689. flex-direction: row;
  17690. justify-content: flex-start;
  17691. align-items: center;
  17692. box-sizing: border-box;
  17693. }
  17694. .queTopTitle {
  17695. display: flex;
  17696. flex-direction: row;
  17697. flex-wrap: nowrap;
  17698. align-items: center;
  17699. font-weight: bold;
  17700. font-size: 20px;
  17701. color: rgb(14, 30, 51);
  17702. }
  17703. .queTopTitle::before {
  17704. content: "";
  17705. width: 2px;
  17706. height: 22px;
  17707. background: #3681fc;
  17708. border-radius: 3px;
  17709. display: block;
  17710. margin: 2px 6px 0 0;
  17711. }
  17712. .queTopRight {
  17713. display: flex;
  17714. flex-direction: row;
  17715. flex-wrap: nowrap;
  17716. align-items: center;
  17717. }
  17718. .queTopClose {
  17719. margin-right: 20px;
  17720. cursor: pointer;
  17721. position: relative;
  17722. display: flex;
  17723. }
  17724. .closeImg,.openImg{
  17725. width: 25px;
  17726. height: 25px;
  17727. position: absolute;
  17728. left: -20px;
  17729. top: -1px;
  17730. }
  17731. .closeImg > img,.openImg > img{
  17732. width:100%;
  17733. height: 100%;
  17734. }
  17735. .question {
  17736. width: 40px;
  17737. margin-right: 10px;
  17738. margin-top: 7px;
  17739. }
  17740. .queTitle {
  17741. margin-left: 5px;
  17742. font-size: 25px;
  17743. display: flex;
  17744. align-items: center;
  17745. }
  17746. .addEditor {
  17747. width: 100px;
  17748. height: 30px;
  17749. background: #42cda6;
  17750. color: #fff;
  17751. border-radius: 5px;
  17752. text-align: center;
  17753. line-height: 30px;
  17754. box-shadow: 1px 3px 6px 1px #bfbfbf;
  17755. cursor: pointer;
  17756. }
  17757. /* .vedioName {
  17758. cursor: pointer;
  17759. margin: 0px 0px 10px 5px;
  17760. white-space: nowrap;
  17761. overflow: hidden;
  17762. text-overflow: ellipsis;
  17763. width: 100%;
  17764. } */
  17765. .vedioTime {
  17766. width: 35px;
  17767. position: absolute;
  17768. color: #fff;
  17769. bottom: 0px;
  17770. right: 0px;
  17771. text-align: center;
  17772. background: #46411f;
  17773. height: 20px;
  17774. font-size: 14px;
  17775. line-height: 20px;
  17776. }
  17777. .homework {
  17778. width: 200px;
  17779. display: flex;
  17780. flex-direction: column;
  17781. flex-wrap: nowrap;
  17782. align-items: center;
  17783. cursor: pointer;
  17784. }
  17785. .homebox {
  17786. display: flex;
  17787. flex-wrap: wrap;
  17788. flex-direction: row;
  17789. justify-content: flex-start;
  17790. align-items: center;
  17791. padding: 15px 0;
  17792. }
  17793. .isChooseActive {
  17794. color: #3681fc !important;
  17795. font-weight: bold !important;
  17796. }
  17797. .chooseWho {
  17798. display: flex;
  17799. width: 100%;
  17800. flex-direction: row;
  17801. flex-wrap: nowrap;
  17802. justify-content: flex-start;
  17803. padding-bottom: 10px;
  17804. }
  17805. .chooseWho > div {
  17806. cursor: pointer;
  17807. padding-bottom: 10px;
  17808. margin: 0 30px 0 0;
  17809. font-weight: 400;
  17810. color: #0e1e33;
  17811. }
  17812. .addPoint > div > img {
  17813. cursor: pointer;
  17814. width: 85px;
  17815. border-radius: 15px;
  17816. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  17817. }
  17818. .addPoint > div {
  17819. display: flex;
  17820. flex-direction: column;
  17821. flex-wrap: nowrap;
  17822. align-items: center;
  17823. }
  17824. .isBorder > div {
  17825. margin: 0 0 10px 0;
  17826. align-items: flex-start !important;
  17827. }
  17828. .noiframeBox {
  17829. display: flex;
  17830. flex-wrap: wrap;
  17831. }
  17832. .iframeBox iframe {
  17833. width: 100%;
  17834. height: 800px;
  17835. border: none;
  17836. margin-bottom: 20px;
  17837. border: 1px solid #ccc;
  17838. }
  17839. .upload_toolBtn {
  17840. background: #3681fc;
  17841. color: #fff;
  17842. width: 110px;
  17843. text-align: center;
  17844. height: 35px;
  17845. line-height: 35px;
  17846. font-size: 14px;
  17847. border-radius: 5px;
  17848. cursor: pointer;
  17849. position: absolute;
  17850. right: 10px;
  17851. bottom: 0;
  17852. }
  17853. .binfo_input,
  17854. .pj {
  17855. font: inherit;
  17856. color: currentColor;
  17857. width: 100%;
  17858. margin: 0;
  17859. padding: 15px 14px;
  17860. display: block;
  17861. min-width: 0;
  17862. outline: none;
  17863. box-sizing: content-box;
  17864. background: none;
  17865. -webkit-tap-highlight-color: transparent;
  17866. border: 1px solid rgba(0, 0, 0, 0.23);
  17867. border-radius: 4px;
  17868. box-sizing: border-box;
  17869. resize: none;
  17870. }
  17871. .binfo_input:focus-visible {
  17872. border: 1px solid rgba(61, 103, 188);
  17873. }
  17874. .dialog_diy >>> .el-dialog__header,
  17875. .dialog_diy1 >>> .el-dialog__header {
  17876. background: #454545 !important;
  17877. padding: 15px 20px;
  17878. }
  17879. .dialog_diy >>> .el-dialog__title,
  17880. .dialog_diy1 >>> .el-dialog__title {
  17881. color: #fff;
  17882. }
  17883. .dialog_diy >>> .el-dialog__headerbtn,
  17884. .dialog_diy1 >>> .el-dialog__headerbtn {
  17885. top: 19px;
  17886. }
  17887. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  17888. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  17889. color: #fff;
  17890. }
  17891. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  17892. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  17893. color: #fff;
  17894. }
  17895. .dialog_diy1 >>> .el-dialog__body {
  17896. padding: 0;
  17897. }
  17898. .dialog_diy >>> .el-dialog__body,
  17899. .dialog_diy >>> .el-dialog__footer,
  17900. .dialog_diy1 >>> .el-dialog__footer {
  17901. background: #fafafa;
  17902. }
  17903. .a_addBox {
  17904. margin: 10px 0;
  17905. background: #fff;
  17906. padding: 15px;
  17907. }
  17908. .a_add_box {
  17909. border-bottom: 2px solid #eee;
  17910. padding-bottom: 10px;
  17911. }
  17912. .a_add_head {
  17913. display: flex;
  17914. align-items: flex-start;
  17915. /* justify-content: space-between; */
  17916. flex-direction: column;
  17917. /* flex-direction: row; */
  17918. margin: 10px 0 20px 0;
  17919. font-size: 18px;
  17920. width: 100%;
  17921. }
  17922. .a_add_head .a_add_head_input {
  17923. width: 300px;
  17924. }
  17925. .a_add_head .a_add_head_div {
  17926. display: flex;
  17927. align-items: center;
  17928. justify-content: space-between;
  17929. }
  17930. .a_add_body {
  17931. display: flex;
  17932. align-items: center;
  17933. }
  17934. .a_add_input {
  17935. display: flex;
  17936. align-items: center;
  17937. flex-wrap: wrap;
  17938. }
  17939. .a_add_input >>> el-radio-group {
  17940. margin: 10px 0;
  17941. }
  17942. .a_add_input >>> .el-radio,
  17943. .a_add_input >>> .el-checkbox {
  17944. margin-bottom: 10px;
  17945. display: flex;
  17946. flex-direction: row;
  17947. flex-wrap: nowrap;
  17948. align-items: center;
  17949. }
  17950. .redioStyle >>> .el-radio__label {
  17951. font-size: 18px;
  17952. }
  17953. .redioStyle >>> .el-radio__label > span,.redioStyle >>> .el-checkbox__label > span{
  17954. word-break: break-all;
  17955. white-space: normal;
  17956. }
  17957. .redioStyle >>> .el-checkbox__label {
  17958. font-size: 18px;
  17959. }
  17960. .toolHeng2 {
  17961. width: 100%;
  17962. padding-left: 37px;
  17963. box-sizing: border-box;
  17964. }
  17965. .workNav {
  17966. font-size: 20px;
  17967. font-weight: bold;
  17968. color: #0e1e33;
  17969. display: flex;
  17970. flex-direction: row;
  17971. flex-wrap: nowrap;
  17972. align-items: center;
  17973. padding: 15px 0 15px 0;
  17974. }
  17975. .workNav::before {
  17976. content: "";
  17977. width: 2px;
  17978. height: 22px;
  17979. background: #3681fc;
  17980. border-radius: 3px;
  17981. display: block;
  17982. margin: 2px 6px 0 0;
  17983. }
  17984. .toolHeng {
  17985. display: flex;
  17986. flex-direction: row;
  17987. flex-wrap: wrap;
  17988. justify-content: flex-start;
  17989. align-items: center;
  17990. width: 100%;
  17991. }
  17992. .toolHeng > div {
  17993. padding-left: 20px;
  17994. }
  17995. .isWidth {
  17996. width: 20%;
  17997. }
  17998. .textTitle {
  17999. display: flex;
  18000. flex-direction: row;
  18001. flex-wrap: nowrap;
  18002. align-items: center;
  18003. width: 95%;
  18004. }
  18005. .textTitle >>> .el-form-item__label {
  18006. font-size: 22px;
  18007. color: #918f8f;
  18008. width: 100px;
  18009. }
  18010. .textTitle >>> .el-form-item__content {
  18011. width: calc(100% - 100px);
  18012. }
  18013. .textCss >>> .el-dialog {
  18014. width: 800px !important;
  18015. height: 400px;
  18016. background: #fafafa;
  18017. }
  18018. .textCss >>> .el-dialog__body {
  18019. margin: 55px 8% 0 8%;
  18020. padding: 0 !important;
  18021. }
  18022. .textCss >>> .el-dialog__footer {
  18023. padding-top: 38px;
  18024. }
  18025. .toolsCss >>> .el-dialog__body {
  18026. padding: 20px;
  18027. }
  18028. .lineCss >>> .el-dialog__body {
  18029. display: flex;
  18030. flex-direction: row;
  18031. align-items: center;
  18032. justify-content: center;
  18033. }
  18034. .newNav {
  18035. display: flex;
  18036. flex-direction: row;
  18037. align-items: baseline;
  18038. justify-content: flex-start;
  18039. }
  18040. .navListItem {
  18041. width: 280px;
  18042. height: 50px;
  18043. margin: 0px auto 10px;
  18044. display: flex;
  18045. flex-direction: row;
  18046. flex-wrap: nowrap;
  18047. align-items: center;
  18048. justify-content: space-between;
  18049. background: #f0f4fa;
  18050. border-radius: 6px 6px 6px 6px;
  18051. }
  18052. .navText {
  18053. cursor: pointer;
  18054. white-space: nowrap;
  18055. overflow: hidden;
  18056. text-overflow: ellipsis;
  18057. width: 220px;
  18058. padding: 0 10px;
  18059. font-weight: 400;
  18060. color: #0e1e33;
  18061. }
  18062. .downIcon {
  18063. width: 20px;
  18064. height: 20px;
  18065. margin-right: 15px;
  18066. cursor: pointer;
  18067. }
  18068. .downIcon > img {
  18069. width: 100%;
  18070. height: 100%;
  18071. }
  18072. .noVedio {
  18073. display: flex;
  18074. flex-direction: row;
  18075. justify-content: center;
  18076. align-content: center;
  18077. }
  18078. .noNavText {
  18079. cursor: pointer;
  18080. margin: 0px 0px 10px 5px;
  18081. width: 112px;
  18082. }
  18083. .listNoVedio {
  18084. margin: 0 0 0 30px;
  18085. width: 97%;
  18086. }
  18087. .video-player >>> .video-js {
  18088. height: 100%;
  18089. }
  18090. .hangVedioList {
  18091. width: 90% !important;
  18092. height: 150px !important;
  18093. margin: 20px 0 0 30px;
  18094. }
  18095. .hangVedio {
  18096. width: 100%;
  18097. height: 170px !important;
  18098. align-items: flex-start !important;
  18099. }
  18100. .hangHand {
  18101. height: 150px !important;
  18102. }
  18103. .twoChild {
  18104. width: 95%;
  18105. margin: 10px;
  18106. border-radius: 5px;
  18107. background: #f2f2f2;
  18108. display: flex;
  18109. flex-direction: column;
  18110. flex-wrap: nowrap;
  18111. justify-content: flex-start;
  18112. align-items: flex-start;
  18113. transition: all 0.5s;
  18114. overflow: hidden;
  18115. height: 0;
  18116. background: #e7f3ff;
  18117. }
  18118. .twoChild > div:nth-child(1) {
  18119. margin-top: 5px;
  18120. }
  18121. .navChild {
  18122. width: 100%;
  18123. cursor: pointer;
  18124. margin-bottom: 10px;
  18125. position: relative;
  18126. }
  18127. .navChild img {
  18128. position: absolute;
  18129. right: 11px;
  18130. width: 15px;
  18131. top: 50%;
  18132. transform: translateY(-50%);
  18133. }
  18134. .navActive {
  18135. height: auto !important;
  18136. overflow: auto !important;
  18137. padding-bottom: 16px;
  18138. }
  18139. .navTask {
  18140. display: flex;
  18141. flex-direction: row;
  18142. flex-wrap: nowrap;
  18143. align-items: center;
  18144. align-content: flex-start;
  18145. height: 40px;
  18146. justify-content: flex-start;
  18147. padding: 0 10px;
  18148. width: 100%;
  18149. box-sizing: border-box;
  18150. }
  18151. .navTaskname {
  18152. white-space: nowrap;
  18153. text-overflow: ellipsis;
  18154. overflow: hidden;
  18155. word-break: break-all;
  18156. padding-left: 5px;
  18157. }
  18158. .openTaskActive {
  18159. background-color: #3681fc !important;
  18160. }
  18161. .iframeName {
  18162. margin: 5px 0;
  18163. border-left: 4px solid #41c4a4;
  18164. padding-left: 4px;
  18165. }
  18166. .toolTitle {
  18167. margin: 0px 0px 20px;
  18168. font-size: 20px;
  18169. font-weight: 500;
  18170. border-left: 4px solid #41c4a4;
  18171. padding-left: 4px;
  18172. }
  18173. .cru_selectBox {
  18174. overflow: auto;
  18175. width: 95%;
  18176. margin: 17px auto 0;
  18177. height: calc(100% - 40px - 21px - 20px - 17px);
  18178. background: #f0f4fa;
  18179. border-radius: 8px;
  18180. }
  18181. .cru_selectBox::-webkit-scrollbar,
  18182. .study_top::-webkit-scrollbar,
  18183. .textContent::-webkit-scrollbar {
  18184. /*滚动条整体样式*/
  18185. width: 6px;
  18186. /*高宽分别对应横竖滚动条的尺寸*/
  18187. height: 6px;
  18188. }
  18189. /*定义滚动条轨道 内阴影+圆角*/
  18190. .cru_selectBox::-webkit-scrollbar-track,
  18191. .study_top::-webkit-scrollbar-track,
  18192. .textContent::-webkit-scrollbar {
  18193. border-radius: 10px;
  18194. background-color: #b8bdc9;
  18195. }
  18196. /*定义滑块 内阴影+圆角*/
  18197. .cru_selectBox::-webkit-scrollbar-thumb,
  18198. .study_top::-webkit-scrollbar-thumb,
  18199. .textContent::-webkit-scrollbar-thumb {
  18200. border-radius: 10px;
  18201. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  18202. background-color: #2c5ab3;
  18203. }
  18204. .vedioBox {
  18205. border-radius: 20px;
  18206. background: #fff;
  18207. overflow: auto;
  18208. }
  18209. .taskBox {
  18210. width: 95%;
  18211. margin: 0 auto;
  18212. }
  18213. .vedioTaskBox {
  18214. width: 100%;
  18215. display: flex;
  18216. flex-direction: row;
  18217. flex-wrap: nowrap;
  18218. align-items: flex-start;
  18219. position: relative;
  18220. }
  18221. .toolBox {
  18222. padding: 30px 0 0 25px;
  18223. display: flex;
  18224. position: relative;
  18225. }
  18226. .btnAll {
  18227. position: absolute;
  18228. right: 0;
  18229. display: flex;
  18230. flex-direction: row;
  18231. flex-wrap: nowrap;
  18232. align-items: center;
  18233. }
  18234. /* .vedioTimeBox {
  18235. display: flex;
  18236. flex-direction: row;
  18237. align-items: center;
  18238. flex-wrap: nowrap;
  18239. position: relative;
  18240. } */
  18241. .navBox {
  18242. background: #fff;
  18243. height: calc(100% - 40px);
  18244. overflow-y: auto;
  18245. overflow-x: hidden;
  18246. }
  18247. .worksBox {
  18248. padding: 20px 0 0 10px;
  18249. border-bottom: 1px solid #eeeeee;
  18250. width: 96%;
  18251. margin: 0 auto;
  18252. }
  18253. .worksBTitle {
  18254. font-size: 20px;
  18255. padding-bottom: 15px;
  18256. border-bottom: 1px solid #eeeeee;
  18257. display: flex;
  18258. align-items: center;
  18259. }
  18260. .greenBox {
  18261. width: 5px;
  18262. height: 30px;
  18263. background: #63b6fa;
  18264. margin-right: 5px;
  18265. }
  18266. .worksDetailBox {
  18267. display: flex;
  18268. width: 100%;
  18269. flex-direction: row;
  18270. flex-wrap: wrap;
  18271. align-items: flex-end;
  18272. justify-content: flex-start;
  18273. padding: 15px 0;
  18274. }
  18275. .works {
  18276. display: flex;
  18277. flex-direction: column;
  18278. flex-wrap: nowrap;
  18279. align-items: flex-start;
  18280. justify-content: flex-start;
  18281. align-content: center;
  18282. max-width: 240px;
  18283. width: calc(100% / 3 - 10px);
  18284. height: auto;
  18285. margin-right: 10px;
  18286. margin-bottom: 10px;
  18287. overflow: hidden;
  18288. height: 140px;
  18289. box-shadow: 0 0 6px 1px #dfdada;
  18290. border-radius: 15px;
  18291. }
  18292. .workImg {
  18293. width: 100%;
  18294. /* height: calc(100% - 40px); */
  18295. height: 105px;
  18296. position: relative;
  18297. }
  18298. .workImg > img {
  18299. width: 100%;
  18300. height: 100%;
  18301. object-fit: contain;
  18302. cursor: pointer;
  18303. }
  18304. .worksName {
  18305. height: 40px;
  18306. line-height: 40px;
  18307. display: flex;
  18308. width: 100%;
  18309. flex-direction: row;
  18310. flex-wrap: nowrap;
  18311. justify-content: space-between;
  18312. align-items: center;
  18313. margin: 0 0 0 10px;
  18314. }
  18315. .worksName > div:nth-child(1) {
  18316. width: 110px;
  18317. white-space: nowrap;
  18318. overflow: hidden;
  18319. text-overflow: ellipsis;
  18320. }
  18321. .worksName > div:nth-child(2) {
  18322. color: #b7b4b5;
  18323. }
  18324. .noWorksS {
  18325. padding: 15px 0;
  18326. display: flex;
  18327. flex-direction: row;
  18328. flex-wrap: wrap;
  18329. align-items: center;
  18330. justify-content: flex-start;
  18331. }
  18332. .noWorksName,
  18333. .isWorksName {
  18334. background: #e1e9fb;
  18335. color: #3383fa;
  18336. width: 90px;
  18337. height: 25px;
  18338. text-align: center;
  18339. line-height: 25px;
  18340. border-radius: 4px;
  18341. margin: 10px 15px 10px 0;
  18342. white-space: nowrap;
  18343. overflow: hidden;
  18344. padding: 5px;
  18345. text-overflow: ellipsis;
  18346. cursor: pointer;
  18347. border: 1px solid #3681FC;
  18348. }
  18349. .isWorksName {
  18350. background: #E7EBF1 !important;
  18351. width: 100px;
  18352. height: 40px;
  18353. line-height: 40px;
  18354. position: relative;
  18355. color: #ACB4BF;
  18356. border: 1px solid #CAD1DC !important;
  18357. }
  18358. .isSelectName,
  18359. .noWorksName:hover {
  18360. background: #3383fa !important;
  18361. color: #fff !important;
  18362. border: 1px solid #3383fa !important;
  18363. }
  18364. .title {
  18365. background: #1e5cc9;
  18366. /* width: 98%; */
  18367. height: 45px;
  18368. color: #fff;
  18369. line-height: 45px;
  18370. padding-left: 20px;
  18371. box-sizing: border-box;
  18372. }
  18373. .textBox {
  18374. font-size: 20px;
  18375. width: 90%;
  18376. display: flex;
  18377. flex-direction: column;
  18378. align-items: center;
  18379. margin: 20px auto 0;
  18380. max-height: 500px;
  18381. overflow: auto;
  18382. }
  18383. .textContent {
  18384. font-size: 18px;
  18385. width: 95%;
  18386. max-width: 95%;
  18387. }
  18388. .answerBg {
  18389. background: url("../assets/icon/answerBgNew.png") no-repeat;
  18390. background-size: 100% 100%;
  18391. width: 100%;
  18392. height: 100%;
  18393. color: #fff;
  18394. text-align: center;
  18395. display: flex;
  18396. flex-direction: column;
  18397. flex-wrap: nowrap;
  18398. align-items: center;
  18399. position: relative;
  18400. justify-content: center;
  18401. }
  18402. .answerBg > div:nth-child(1) {
  18403. /* font-size: 22px;
  18404. padding: 25px 0 10px; */
  18405. }
  18406. .answerContent {
  18407. width: 215px;
  18408. max-height: 60px;
  18409. word-break: break-all;
  18410. text-align: center;
  18411. /* white-space: nowrap; */
  18412. overflow: hidden;
  18413. text-overflow: ellipsis;
  18414. /* padding: 23px 0 0; */
  18415. -webkit-line-clamp: 3;
  18416. -webkit-box-orient: vertical;
  18417. display: -webkit-box;
  18418. font-size: 15px;
  18419. cursor: pointer;
  18420. }
  18421. .elist_input_box {
  18422. display: flex;
  18423. align-items: flex-start;
  18424. flex-wrap: nowrap;
  18425. padding: 10px 0 15px 30px;
  18426. flex-direction: column;
  18427. }
  18428. .elist_input {
  18429. /* width: 40%; */
  18430. width: 45%;
  18431. margin: 20px 20px 0 20px;
  18432. }
  18433. .elist_input .elist_input_box input {
  18434. font: inherit;
  18435. color: currentColor;
  18436. width: 200px;
  18437. padding: 8px 14px;
  18438. display: block;
  18439. min-width: 0;
  18440. outline: none;
  18441. border: 1px solid rgba(0, 0, 0, 0.23);
  18442. border-radius: 4px;
  18443. box-sizing: border-box;
  18444. background: #fff;
  18445. margin: 0 20px 0 0;
  18446. }
  18447. .elist_input .elist_input_box span {
  18448. height: 36px;
  18449. line-height: 36px;
  18450. color: rgb(82, 82, 82);
  18451. }
  18452. .elist_input .elist_input_box .remove {
  18453. height: 20px;
  18454. width: 20px;
  18455. background-size: 100% 100%;
  18456. background-position: unset;
  18457. margin-left: 5px;
  18458. }
  18459. .elist_input_box >>> .el-rate {
  18460. display: flex;
  18461. height: 36px;
  18462. align-items: center;
  18463. }
  18464. .elist_input_box .elist_inptu_text {
  18465. min-height: 50px;
  18466. /* width: 500px;
  18467. max-height: 150px; */
  18468. width: 100%;
  18469. line-height: 50px;
  18470. color: rgb(82, 82, 82);
  18471. overflow: auto;
  18472. text-indent: 5px;
  18473. background: #f7f6f9;
  18474. border-radius: 10px;
  18475. }
  18476. .elist_input_box .elist_inptu_text input {
  18477. width: 500px;
  18478. }
  18479. .elist_input_box >>> .el-rate__icon {
  18480. font-size: 24px;
  18481. }
  18482. .isClick {
  18483. background: #4d9def;
  18484. }
  18485. .bzBox {
  18486. display: flex;
  18487. flex-direction: row;
  18488. align-items: center;
  18489. }
  18490. .bzBox .yCss {
  18491. width: 14px;
  18492. height: 14px;
  18493. background: #3681fc;
  18494. margin: 0 16px 0 7px;
  18495. border-radius: 50%;
  18496. }
  18497. .bzBox > div:nth-child(2) {
  18498. font-size: 18px;
  18499. font-weight: bold;
  18500. color: #0e1e33;
  18501. }
  18502. .navTitile {
  18503. padding: 0 0px 0 15px;
  18504. font-size: 16px;
  18505. font-weight: bold;
  18506. color: #0e1e33;
  18507. height: 40px;
  18508. line-height: 40px;
  18509. }
  18510. .isTypeOne {
  18511. width: 240px;
  18512. height: 170px;
  18513. /* border: 1px solid #f8f8f8; */
  18514. border-radius: 10px;
  18515. box-shadow: 0 0 6px 1px #dfdada;
  18516. }
  18517. .e_add_top {
  18518. display: flex;
  18519. justify-content: space-between;
  18520. padding: 20px 20px 0 20px;
  18521. border-radius: 3px;
  18522. background: #fff;
  18523. }
  18524. .e_add_title2 {
  18525. display: flex;
  18526. align-items: center;
  18527. }
  18528. .e_add_title2 span {
  18529. width: 40px;
  18530. }
  18531. .e_add_title {
  18532. display: flex;
  18533. align-items: center;
  18534. color: #b8b8b8;
  18535. font-size: 18px;
  18536. position: relative;
  18537. height: 40px;
  18538. }
  18539. .e_add_title span {
  18540. margin-right: 10px;
  18541. }
  18542. .e_add_title .el_input {
  18543. width: 300px;
  18544. }
  18545. .e_add_title >>> .el-input__inner {
  18546. width: 400px;
  18547. }
  18548. .e_add_btn {
  18549. }
  18550. .e_add_content {
  18551. display: flex;
  18552. width: 100%;
  18553. max-width: 650px;
  18554. height: 550px;
  18555. }
  18556. .e_add_list {
  18557. background: #fff;
  18558. height: 500px;
  18559. width: 210px;
  18560. position: relative;
  18561. margin: 15px 5px 0 0;
  18562. flex-shrink: 0;
  18563. display: flex;
  18564. flex-direction: column;
  18565. }
  18566. .e_add_list_title {
  18567. font-size: 20px;
  18568. width: 100%;
  18569. box-sizing: border-box;
  18570. padding: 15px 40px;
  18571. text-align: center;
  18572. border-bottom: 1px solid #eaeaea;
  18573. position: relative;
  18574. display: flex;
  18575. align-items: center;
  18576. justify-content: center;
  18577. height: 57px;
  18578. background: #f6f6f6;
  18579. }
  18580. .e_add_list_title span {
  18581. overflow: hidden;
  18582. white-space: nowrap;
  18583. text-overflow: ellipsis;
  18584. }
  18585. .e_add_list_title img {
  18586. position: absolute;
  18587. right: 15px;
  18588. width: 25px;
  18589. cursor: pointer;
  18590. top: 50%;
  18591. transform: translateY(-50%);
  18592. }
  18593. .e_add_list_body {
  18594. height: calc(100% - 187px);
  18595. overflow: auto;
  18596. }
  18597. .e_add_list_child {
  18598. width: 100%;
  18599. display: flex;
  18600. align-items: center;
  18601. justify-content: center;
  18602. position: relative;
  18603. box-sizing: border-box;
  18604. padding: 15px 40px;
  18605. text-align: center;
  18606. }
  18607. .e_add_list_child span {
  18608. overflow: hidden;
  18609. white-space: nowrap;
  18610. text-overflow: ellipsis;
  18611. cursor: pointer;
  18612. }
  18613. .e_add_list_child img {
  18614. position: absolute;
  18615. right: 10px;
  18616. width: 21px;
  18617. cursor: pointer;
  18618. top: 50%;
  18619. transform: translateY(-50%);
  18620. }
  18621. .e_add_list_child + .e_add_list_child {
  18622. border-top: 1px solid #eaeaea;
  18623. }
  18624. .e_add_list_child .active {
  18625. color: #409eff;
  18626. }
  18627. .e_add_list_btn {
  18628. position: absolute;
  18629. bottom: 0;
  18630. height: 50px;
  18631. background: rgb(120, 120, 254);
  18632. width: 100%;
  18633. color: #fff;
  18634. font-size: 16px;
  18635. text-align: center;
  18636. line-height: 50px;
  18637. cursor: pointer;
  18638. }
  18639. .e_add_list_detail {
  18640. position: absolute;
  18641. bottom: 0;
  18642. height: 130px;
  18643. background: rgb(120, 120, 254);
  18644. width: 100%;
  18645. color: #fff;
  18646. font-size: 16px;
  18647. display: flex;
  18648. align-items: center;
  18649. justify-content: center;
  18650. }
  18651. .e_add_list_detail textarea {
  18652. height: 90%;
  18653. width: 95%;
  18654. border: none;
  18655. resize: none;
  18656. outline: none;
  18657. padding: 5px;
  18658. box-sizing: border-box;
  18659. }
  18660. .e_add_list_pbox {
  18661. width: 100%;
  18662. max-width: 650px;
  18663. /* height: 600px; */
  18664. }
  18665. .e_add_list_pbox_title {
  18666. height: 50px;
  18667. background: #fff;
  18668. display: flex;
  18669. align-items: center;
  18670. width: 100%;
  18671. box-sizing: border-box;
  18672. padding: 0 20px;
  18673. }
  18674. .type_title {
  18675. font-size: 18px;
  18676. font-weight: 700;
  18677. }
  18678. .type_content {
  18679. font-size: 16px;
  18680. margin-left: 30px;
  18681. }
  18682. .type_content span + span {
  18683. margin-left: 20px;
  18684. }
  18685. .type_content span {
  18686. cursor: pointer;
  18687. padding-bottom: 5px;
  18688. box-sizing: border-box;
  18689. }
  18690. .type_content .active {
  18691. color: #409eff;
  18692. border-bottom: 2px solid #409eff;
  18693. }
  18694. .e_add_list_pbox_content {
  18695. height: calc(100% - 50px);
  18696. display: flex;
  18697. align-items: center;
  18698. width: 100%;
  18699. background: #fff;
  18700. }
  18701. .evaCss {
  18702. display: flex;
  18703. flex-direction: row;
  18704. flex-wrap: nowrap;
  18705. align-items: flex-start;
  18706. }
  18707. .cru_line {
  18708. position: absolute;
  18709. bottom: 0px;
  18710. transition: all 0.5s;
  18711. left: 0px;
  18712. width: 125px;
  18713. margin-left: -25px;
  18714. }
  18715. .isNoMessage {
  18716. width: 20%;
  18717. margin: 25% auto 0;
  18718. }
  18719. .isNoMessage > img {
  18720. width: 100%;
  18721. height: 100%;
  18722. }
  18723. .fullStyle >>> .el-dialog__body {
  18724. height: 100% !important;
  18725. }
  18726. .fullStyle >>> .el-dialog,
  18727. .fullStyle {
  18728. width: 100% !important;
  18729. max-width: 100% !important;
  18730. height: 100% !important;
  18731. margin: 0 !important;
  18732. }
  18733. .full_diy >>> .el-dialog {
  18734. margin: 0 !important;
  18735. height: 100%;
  18736. padding: 4px;
  18737. }
  18738. .full_diy >>> .el-dialog__body {
  18739. height: calc(100% - 100px);
  18740. }
  18741. .full_diy2 >>> .el-dialog__body {
  18742. height: calc(100% - 50px);
  18743. padding: 0;
  18744. }
  18745. .switchCss {
  18746. /* width: 100%; */
  18747. display: flex;
  18748. flex-direction: row;
  18749. flex-wrap: nowrap;
  18750. align-items: center;
  18751. /* justify-content: center; */
  18752. }
  18753. .isClickNav {
  18754. color: #499eef;
  18755. }
  18756. .commentImg {
  18757. width: 25px;
  18758. height: 25px;
  18759. cursor: pointer;
  18760. }
  18761. .commentImg > img {
  18762. width: 100%;
  18763. height: 100%;
  18764. }
  18765. .comment {
  18766. background: #f9f9f9;
  18767. border-radius: 0 0 4px 4px;
  18768. display: flex;
  18769. flex-direction: row;
  18770. flex-wrap: nowrap;
  18771. align-items: center;
  18772. justify-content: flex-end;
  18773. height: 35px;
  18774. }
  18775. .commentList {
  18776. display: flex;
  18777. flex-direction: row;
  18778. flex-wrap: nowrap;
  18779. align-items: center;
  18780. justify-content: center;
  18781. align-content: center;
  18782. /* margin-left: 15px; */
  18783. /* margin-left: 8px; */
  18784. }
  18785. .scoreImg {
  18786. width: 17px;
  18787. height: 17px;
  18788. }
  18789. .studentDetail {
  18790. display: flex;
  18791. flex-direction: row;
  18792. flex-wrap: nowrap;
  18793. /* align-items: center; */
  18794. align-items: flex-start;
  18795. }
  18796. .tx {
  18797. width: 50px;
  18798. }
  18799. .tx > img {
  18800. width: 100%;
  18801. height: 100%;
  18802. }
  18803. .nameAndTime {
  18804. display: flex;
  18805. flex-direction: column;
  18806. flex-wrap: nowrap;
  18807. align-items: flex-start;
  18808. margin-left: 10px;
  18809. }
  18810. .worksAnswer {
  18811. color: #4078dd;
  18812. margin: 10px 0;
  18813. font-size: 16px;
  18814. position: relative;
  18815. }
  18816. .worksAnswer > img {
  18817. width: 500px;
  18818. height: 300px;
  18819. object-fit: contain;
  18820. margin: 0 auto;
  18821. display: block;
  18822. }
  18823. .commentTop {
  18824. border-bottom: 1px solid #eaeaea;
  18825. padding-bottom: 10px;
  18826. }
  18827. .commentBox {
  18828. padding-top: 15px;
  18829. }
  18830. .pl {
  18831. font-size: 18px;
  18832. }
  18833. .plPerson {
  18834. width: 100%;
  18835. }
  18836. .plName {
  18837. display: flex;
  18838. flex-direction: row;
  18839. flex-wrap: nowrap;
  18840. align-items: baseline;
  18841. color: #78787a;
  18842. width: 100%;
  18843. }
  18844. .deleteComment {
  18845. cursor: pointer;
  18846. margin-left: auto;
  18847. color: #237ade;
  18848. }
  18849. .plContent {
  18850. margin-top: 5px;
  18851. }
  18852. .evalCss {
  18853. background: #fff;
  18854. font-size: 18px;
  18855. }
  18856. .nav {
  18857. color: #9d9d9d;
  18858. padding: 5px 0 15px 20px;
  18859. }
  18860. .middleBox {
  18861. padding: 5px 0 15px 20px;
  18862. }
  18863. .pfBox {
  18864. padding-bottom: 30px;
  18865. }
  18866. .nameAndrate {
  18867. display: flex;
  18868. flex-direction: row;
  18869. flex-wrap: nowrap;
  18870. align-items: center;
  18871. padding-bottom: 10px;
  18872. height: 30px;
  18873. line-height: 30px;
  18874. }
  18875. .nameAndrate > div {
  18876. margin-left: 10px;
  18877. color: #000;
  18878. height: 30px;
  18879. }
  18880. .nameAndrate >>> .el-rate__icon {
  18881. font-size: 28px !important;
  18882. }
  18883. .pfBox > div:nth-child(2) {
  18884. background: #f7f6f9;
  18885. width: 400px;
  18886. min-height: 45px;
  18887. border-radius: 10px;
  18888. font-size: 16px;
  18889. display: flex;
  18890. flex-wrap: wrap;
  18891. align-items: center;
  18892. padding: 10px 20px;
  18893. box-sizing: border-box;
  18894. color: #000;
  18895. }
  18896. .bz {
  18897. display: flex;
  18898. flex-direction: row;
  18899. flex-wrap: nowrap;
  18900. align-items: flex-start;
  18901. }
  18902. .bz > div {
  18903. padding: 0 10px;
  18904. }
  18905. .select_box2_title {
  18906. background: #fff;
  18907. border-radius: 5px;
  18908. padding: 15px 10px;
  18909. box-sizing: border-box;
  18910. margin-bottom: 10px;
  18911. display: flex;
  18912. flex-direction: row;
  18913. flex-wrap: nowrap;
  18914. align-items: center;
  18915. }
  18916. .select_box2_title > div:nth-child(2) {
  18917. margin-left: 10px;
  18918. color: #c4c4c4;
  18919. }
  18920. .select_box2_box {
  18921. display: flex;
  18922. height: 500px;
  18923. }
  18924. .select_box2_img {
  18925. width: calc(100% - 310px);
  18926. height: 100%;
  18927. overflow: auto;
  18928. background: #fff;
  18929. border-radius: 5px;
  18930. }
  18931. .select_box2_img img {
  18932. width: 100%;
  18933. }
  18934. .select_box2_answer {
  18935. background: #fff;
  18936. margin-left: 10px;
  18937. border-radius: 5px;
  18938. width: 300px;
  18939. overflow: auto;
  18940. height: 90%;
  18941. display: flex;
  18942. flex-direction: column;
  18943. align-items: flex-start;
  18944. padding-top: 10px;
  18945. box-sizing: border-box;
  18946. position: relative;
  18947. }
  18948. .select_answer_title {
  18949. padding: 0 0 15px 20px;
  18950. color: #c4c4c4;
  18951. }
  18952. .select_box2_answer_box {
  18953. margin: 0 0 10px 20px;
  18954. width: 85%;
  18955. display: flex;
  18956. flex-direction: row;
  18957. flex-wrap: nowrap;
  18958. align-items: center;
  18959. }
  18960. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  18961. color: #000;
  18962. }
  18963. .upAnswerCss {
  18964. position: absolute;
  18965. bottom: 15px;
  18966. right: 15px;
  18967. }
  18968. .upAnswerCss >>> .el-button {
  18969. width: 95px;
  18970. height: 35px;
  18971. line-height: 35px;
  18972. padding: 0;
  18973. }
  18974. .rightWidthCss {
  18975. width: 60%;
  18976. display: flex;
  18977. flex-direction: row;
  18978. align-items: flex-start;
  18979. }
  18980. .rightAnswer {
  18981. display: flex;
  18982. flex-direction: row;
  18983. flex-wrap: nowrap;
  18984. align-items: center;
  18985. color: red;
  18986. margin-bottom: 31px;
  18987. }
  18988. .rightAnswerCss {
  18989. display: flex;
  18990. flex-direction: column;
  18991. flex-wrap: nowrap;
  18992. padding-top: 60px;
  18993. }
  18994. .blueCss {
  18995. color: #767de1;
  18996. margin-left: 10px;
  18997. }
  18998. .redCss {
  18999. color: red;
  19000. }
  19001. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19002. color: rgb(0 123 255) !important;
  19003. }
  19004. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19005. color: rgb(0 123 255) !important;
  19006. }
  19007. .zuoyeYulan {
  19008. padding-top: 15px;
  19009. font-size: 18px;
  19010. display: flex;
  19011. align-items: flex-end;
  19012. }
  19013. .buttonA {
  19014. margin-left: 10px;
  19015. padding: 0;
  19016. }
  19017. .displayBox {
  19018. margin-bottom: 10px;
  19019. display: block;
  19020. border-bottom: 3px solid #eee;
  19021. display: flex;
  19022. align-items: center;
  19023. }
  19024. .easy_comment {
  19025. width: calc(100% - 90px);
  19026. margin-left: 10px;
  19027. display: flex;
  19028. flex-wrap: wrap;
  19029. }
  19030. .easy_comment > div {
  19031. border: 1px solid #4a4a4a;
  19032. color: #666;
  19033. border-radius: 15px;
  19034. padding: 5px 10px;
  19035. font-size: 16px;
  19036. margin-bottom: 10px;
  19037. margin-right: 5px;
  19038. cursor: pointer;
  19039. }
  19040. .easy_comment div:hover {
  19041. border: 1px solid #f7ba2a;
  19042. color: #c69217;
  19043. }
  19044. .xuan_right_box {
  19045. padding: 10px;
  19046. background: rgb(247, 247, 247);
  19047. margin: 10px 15px 10px 30px;
  19048. border-radius: 5px;
  19049. width: 90%;
  19050. }
  19051. .tool_right_box {
  19052. display: flex;
  19053. align-items: center;
  19054. }
  19055. .tool_right_box + .tool_right_box {
  19056. margin-top: 10px;
  19057. }
  19058. .right_box_xuan {
  19059. background: rgb(0 123 255);
  19060. color: #fff;
  19061. border-radius: 5px;
  19062. padding: 5px;
  19063. margin-left: 10px;
  19064. min-width: 95px;
  19065. }
  19066. .pButton:hover {
  19067. opacity: 1 !important;
  19068. }
  19069. .pButton {
  19070. position: fixed;
  19071. /* right: 5%; */
  19072. /* bottom: 5%; */
  19073. color: #fff;
  19074. /* width: 50px;
  19075. height: 50px; */
  19076. /* border-radius: 50%; */
  19077. text-align: center;
  19078. /* line-height: 50px; */
  19079. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  19080. cursor: pointer;
  19081. z-index: 999;
  19082. right: 20px;
  19083. top: 110px;
  19084. width: 50px;
  19085. height: 50px;
  19086. background: #fff;
  19087. display: flex;
  19088. align-items: center;
  19089. justify-content: center;
  19090. box-shadow: 0px 0 8px 2px #c5c5c5;
  19091. border-radius: 5px;
  19092. }
  19093. .pzClass {
  19094. width: calc(100% - 340px);
  19095. }
  19096. .newDialogCss {
  19097. /* position: fixed;
  19098. right: 5%;
  19099. top: 50%;
  19100. width: 340px;
  19101. transform: translateY(-50%);
  19102. height: 60%;
  19103. box-shadow: 0px 0 8px 0px #555555;
  19104. border-radius: 15px;
  19105. z-index: 999; */
  19106. position: fixed;
  19107. right: 20px;
  19108. top: 101px;
  19109. width: 330px;
  19110. height: calc(100% - 80px);
  19111. z-index: 999;
  19112. background: #fff;
  19113. border-top-right-radius: 0px;
  19114. border-bottom-right-radius: 0px;
  19115. overflow: hidden;
  19116. }
  19117. .pzTop {
  19118. color: #fff;
  19119. background: #000;
  19120. display: flex;
  19121. flex-direction: row;
  19122. flex-wrap: nowrap;
  19123. align-items: center;
  19124. justify-content: space-between;
  19125. height: 40px;
  19126. border-radius: 15px 15px 0 0;
  19127. }
  19128. .pzTop2 .checkbox {
  19129. display: flex;
  19130. align-items: center;
  19131. padding: 5px 30px;
  19132. flex: 0 0 auto;
  19133. font-weight: bold;
  19134. border-bottom: 1px solid #eee;
  19135. justify-content: space-between;
  19136. }
  19137. .pzTop2 .check {
  19138. text-align: center;
  19139. cursor: pointer;
  19140. box-sizing: border-box;
  19141. display: flex;
  19142. }
  19143. .pzTop2 img {
  19144. width: 25px;
  19145. cursor: pointer;
  19146. }
  19147. .pzTop > div:nth-child(1) {
  19148. padding-left: 10px;
  19149. }
  19150. .pzTop > div:nth-child(2) {
  19151. width: 15px;
  19152. height: 15px;
  19153. padding-right: 10px;
  19154. cursor: pointer;
  19155. }
  19156. .pzTop > div:nth-child(2) > img {
  19157. width: 100%;
  19158. height: 100%;
  19159. }
  19160. .pzBox,
  19161. .noPzBox {
  19162. height: calc(100% - 60px);
  19163. /* background: #ededed; */
  19164. background: #fff;
  19165. /* border-radius: 0 0 15px 15px; */
  19166. }
  19167. .noPzBox {
  19168. display: flex;
  19169. flex-direction: column;
  19170. flex-wrap: nowrap;
  19171. justify-content: center;
  19172. align-items: center;
  19173. }
  19174. .pzList {
  19175. background: #f7f7f7;
  19176. width: 90%;
  19177. margin: 0 auto 15px;
  19178. border-radius: 5px;
  19179. }
  19180. .pzNavTop {
  19181. display: flex;
  19182. flex-direction: row;
  19183. flex-wrap: nowrap;
  19184. padding: 10px 10px 0 10px;
  19185. align-items: center;
  19186. }
  19187. .pzDelete {
  19188. cursor: pointer;
  19189. margin-left: auto;
  19190. font-size: 14px;
  19191. color: #afafaf;
  19192. }
  19193. .pzNavTop > div:nth-child(1) {
  19194. background: #3760af;
  19195. width: 35px;
  19196. height: 35px;
  19197. color: #fff;
  19198. text-align: center;
  19199. line-height: 35px;
  19200. border-radius: 50%;
  19201. font-size: 14px;
  19202. }
  19203. .pzNavTop > div:nth-child(2) {
  19204. font-size: 18px;
  19205. color: #959595;
  19206. margin-left: 5px;
  19207. }
  19208. .pzContent {
  19209. padding: 10px;
  19210. word-break: break-word;
  19211. }
  19212. .pzContent audio {
  19213. width: 100%;
  19214. }
  19215. .pzContent audio::-webkit-media-controls-panel {
  19216. background: #fff;
  19217. }
  19218. .pzContent >>> img {
  19219. max-width: 100%;
  19220. }
  19221. .pzListBox {
  19222. padding-top: 15px;
  19223. height: calc(100% - 110px);
  19224. overflow: auto;
  19225. }
  19226. .addPzButton {
  19227. position: relative;
  19228. margin-top: 3px;
  19229. width: 100%;
  19230. }
  19231. .addPzButton .img1 {
  19232. position: absolute;
  19233. top: 50%;
  19234. right: 25px;
  19235. transform: translateY(-50%);
  19236. height: 100%;
  19237. display: flex;
  19238. align-items: center;
  19239. }
  19240. .addPzButton .img1 div {
  19241. display: flex;
  19242. }
  19243. .addPzButton .img1 div img {
  19244. width: 28px;
  19245. margin-left: 10px;
  19246. cursor: pointer;
  19247. }
  19248. .addPzButton .img1 div span {
  19249. font-size: 14px;
  19250. margin: 4px 0 0 3px;
  19251. color: #afafaf;
  19252. }
  19253. .addPz {
  19254. background: #4b79ce;
  19255. width: 100px;
  19256. color: #fff;
  19257. font-size: 12px;
  19258. height: 30px;
  19259. margin: 0 auto;
  19260. text-align: center;
  19261. line-height: 30px;
  19262. border-radius: 10px;
  19263. cursor: pointer;
  19264. }
  19265. .addDialogCss {
  19266. position: fixed;
  19267. right: 37%;
  19268. top: 50%;
  19269. width: 600px;
  19270. transform: translateY(-50%);
  19271. height: 70%;
  19272. min-height: 450px;
  19273. box-shadow: 0px 0 8px 0px #555555;
  19274. border-radius: 15px;
  19275. z-index: 999;
  19276. }
  19277. .teacherPz {
  19278. display: flex;
  19279. flex-direction: row;
  19280. align-items: center;
  19281. flex-wrap: nowrap;
  19282. }
  19283. .teacherPzImg {
  19284. width: 30px;
  19285. height: 30px;
  19286. }
  19287. .teacherPzImg > img {
  19288. width: 100%;
  19289. height: 100%;
  19290. }
  19291. .addPzBox {
  19292. height: calc(100% - 40px);
  19293. background: #ededed;
  19294. }
  19295. .pzAudioClass {
  19296. margin: 15px 14px;
  19297. background: #fff;
  19298. height: 100%;
  19299. display: flex;
  19300. justify-content: center;
  19301. align-items: center;
  19302. }
  19303. .pzConText {
  19304. width: 95%;
  19305. height: 100%;
  19306. margin: 10px auto 0;
  19307. border: none;
  19308. background: #fff;
  19309. border-radius: 0px;
  19310. }
  19311. .pzConText >>> .text {
  19312. height: calc(100% - 82px);
  19313. }
  19314. .addTextCss {
  19315. background: #4b79ce;
  19316. width: 80px;
  19317. height: 30px;
  19318. text-align: center;
  19319. color: #fff;
  19320. line-height: 30px;
  19321. border-radius: 10px;
  19322. margin: 10px auto 0;
  19323. cursor: pointer;
  19324. }
  19325. .pzConText:focus-visible {
  19326. border: none !important;
  19327. }
  19328. .maxWidth {
  19329. width: 1000px;
  19330. }
  19331. .noPz {
  19332. width: 150px;
  19333. margin: 0 auto 20%;
  19334. }
  19335. .noPz > img {
  19336. width: 100%;
  19337. height: 100%;
  19338. }
  19339. .pzList .time {
  19340. text-align: right;
  19341. box-sizing: border-box;
  19342. padding: 0 10px 10px 0px;
  19343. color: #949494;
  19344. font-size: 14px;
  19345. }
  19346. /* table 样式 */
  19347. .cont >>> table {
  19348. border-top: 1px solid #ccc;
  19349. border-left: 1px solid #ccc;
  19350. }
  19351. .cont >>> table td,
  19352. .cont >>> table th {
  19353. border-bottom: 1px solid #ccc;
  19354. border-right: 1px solid #ccc;
  19355. /* padding: 20px 5px; */
  19356. padding: 5px 10px;
  19357. max-width: 0px;
  19358. height: 30px;
  19359. vertical-align: baseline;
  19360. box-sizing: border-box;
  19361. }
  19362. .cont >>> table th {
  19363. border-bottom: 2px solid #ccc;
  19364. text-align: center;
  19365. }
  19366. /* blockquote 样式 */
  19367. .cont >>> blockquote {
  19368. display: block;
  19369. border-left: 8px solid #d0e5f2;
  19370. padding: 5px 10px;
  19371. margin: 10px 0;
  19372. line-height: 1.4;
  19373. font-size: 100%;
  19374. background-color: #f1f1f1;
  19375. }
  19376. /* code 样式 */
  19377. .cont >>> code {
  19378. display: inline-block;
  19379. /* *display: inline; */
  19380. zoom: 1;
  19381. background-color: #f1f1f1;
  19382. border-radius: 3px;
  19383. padding: 3px 5px;
  19384. margin: 0 3px;
  19385. }
  19386. .cont >>> pre code {
  19387. display: block;
  19388. }
  19389. /* ul ol 样式 */
  19390. .cont >>> ul,
  19391. ol {
  19392. margin: 10px 0 10px 20px;
  19393. }
  19394. .addPzCheck {
  19395. display: flex;
  19396. flex-direction: row;
  19397. flex-wrap: nowrap;
  19398. padding: 10px 15px 0;
  19399. }
  19400. .addPzCheck span {
  19401. cursor: pointer;
  19402. padding-bottom: 5px;
  19403. font-weight: bold;
  19404. }
  19405. .addPzCheck span + span {
  19406. margin-left: 10px;
  19407. }
  19408. .addPzCheck .isChooseActive {
  19409. color: #3e88f4;
  19410. border-bottom: 2px solid #2f80f3;
  19411. }
  19412. /* code 样式 */
  19413. .cont {
  19414. /* -webkit-user-modify: read-write; */
  19415. overflow-wrap: break-word;
  19416. -webkit-line-break: after-white-space;
  19417. }
  19418. .scoreBox,
  19419. .scoreDetailBox {
  19420. display: flex;
  19421. align-items: center;
  19422. justify-content: flex-start;
  19423. margin-top: 20px;
  19424. font-size: 18px;
  19425. width: 100%;
  19426. }
  19427. .scoreBox .t,
  19428. .scoreDetailBox .t {
  19429. margin-right: 10px;
  19430. width: 100px;
  19431. text-align: right;
  19432. }
  19433. .scoreDetailBox {
  19434. align-items: flex-start;
  19435. }
  19436. .scoreDetailBox >>> .el-textarea {
  19437. width: calc(100% - 200px);
  19438. }
  19439. .scoreBox >>> .el-input {
  19440. width: 130px;
  19441. font-size: 38px;
  19442. }
  19443. .scoreBox >>> .el-input__inner {
  19444. height: 60px;
  19445. }
  19446. .answerScore {
  19447. position: absolute;
  19448. top: 10px;
  19449. right: 10px;
  19450. background: #0000008f;
  19451. border-radius: 5px;
  19452. padding: 3px 5px;
  19453. font-size: 14px;
  19454. color: #fff;
  19455. cursor: pointer;
  19456. }
  19457. .open_box .switch_box {
  19458. width: 100%;
  19459. margin: 0 auto;
  19460. display: flex;
  19461. justify-content: space-between;
  19462. }
  19463. .open_box .switch_box + .switch_box {
  19464. margin-top: 10px;
  19465. }
  19466. .deleteImg {
  19467. width: 25px !important;
  19468. height: 25px !important;
  19469. cursor: pointer;
  19470. position: absolute;
  19471. top: 10px;
  19472. right: 10px;
  19473. }
  19474. .deleteImg2 {
  19475. width: 15px !important;
  19476. height: 15px !important;
  19477. top: 5px;
  19478. right: 5px;
  19479. }
  19480. .rightW {
  19481. right: 40px;
  19482. }
  19483. .drawPBox {
  19484. display: flex;
  19485. flex-direction: column;
  19486. position: relative;
  19487. }
  19488. .drawPBox span {
  19489. font-size: 18px;
  19490. color: #606266;
  19491. padding-bottom: 10px;
  19492. margin: 10px 0;
  19493. border-bottom: 1px solid #eaeaea;
  19494. }
  19495. .drawPBox img {
  19496. width: 500px;
  19497. height: 300px;
  19498. object-fit: contain;
  19499. cursor: pointer;
  19500. margin: 0 auto;
  19501. }
  19502. .sentenBox {
  19503. background: #fff;
  19504. height: 450px;
  19505. overflow: auto;
  19506. background-image: url("../assets/icon/conSentences/stuBg.png");
  19507. background-position: 102%;
  19508. background-repeat: no-repeat;
  19509. background-size: 60%;
  19510. }
  19511. .addSen {
  19512. background: #409efe;
  19513. width: 90px;
  19514. color: #fff;
  19515. height: 35px;
  19516. text-align: center;
  19517. line-height: 35px;
  19518. border-radius: 5px;
  19519. float: right;
  19520. margin: 10px 20px 0 0;
  19521. cursor: pointer;
  19522. }
  19523. .sentenTop {
  19524. display: flex;
  19525. flex-direction: row;
  19526. flex-wrap: nowrap;
  19527. align-items: center;
  19528. padding: 55px 0 0 20px;
  19529. box-sizing: border-box;
  19530. }
  19531. .sentenTop > div:nth-child(2) {
  19532. width: 300px;
  19533. margin: 0 15px;
  19534. }
  19535. .sentenTop > div:nth-child(3) {
  19536. background: #409efe;
  19537. color: #fff;
  19538. width: 65px;
  19539. height: 35px;
  19540. text-align: center;
  19541. line-height: 35px;
  19542. border-radius: 5px;
  19543. cursor: pointer;
  19544. }
  19545. .cardList,
  19546. .cardList1 {
  19547. padding: 10px 0 10px 0;
  19548. display: flex;
  19549. flex-direction: row;
  19550. flex-wrap: wrap;
  19551. align-items: center;
  19552. box-sizing: border-box;
  19553. border-bottom: 1px solid #f4f4f4;
  19554. width: 98%;
  19555. margin: 0 auto;
  19556. min-width: 60%;
  19557. max-width: 85%;
  19558. }
  19559. .cardList1 {
  19560. padding: 10px 0 10px 10px !important;
  19561. margin: 0 !important;
  19562. }
  19563. .cardBox {
  19564. display: flex;
  19565. flex-direction: row;
  19566. flex-wrap: wrap;
  19567. align-items: center;
  19568. align-content: center;
  19569. }
  19570. .cardBox > div {
  19571. margin-bottom: 10px;
  19572. }
  19573. .isCard,
  19574. .isChooseCard,
  19575. .noCard,
  19576. .isCard1 {
  19577. width: 130px;
  19578. height: 60px;
  19579. text-align: center;
  19580. line-height: 60px;
  19581. font-size: 20px;
  19582. cursor: pointer;
  19583. background-image: url("../assets/icon/conSentences/titleBorder.png");
  19584. background-size: cover;
  19585. transition: all 2s;
  19586. margin-right: 20px;
  19587. }
  19588. .isCard > div,
  19589. .noCard > div,
  19590. .isCard1 > div {
  19591. white-space: nowrap;
  19592. overflow: hidden;
  19593. text-overflow: ellipsis;
  19594. width: 75%;
  19595. margin: 0 auto;
  19596. }
  19597. .noCard {
  19598. background-image: none;
  19599. }
  19600. .isCard1 {
  19601. background-image: url("../assets/icon/conSentences/answerBorder.png");
  19602. }
  19603. .isChooseCard {
  19604. background-image: none;
  19605. border: 1px dashed #b9b9b9;
  19606. border-radius: 10px;
  19607. }
  19608. .card {
  19609. width: 130px;
  19610. height: 60px;
  19611. }
  19612. .card > img {
  19613. width: 100%;
  19614. height: 100%;
  19615. }
  19616. .rightCardBox {
  19617. margin: 10px 0 0 10px;
  19618. }
  19619. .rightCardBox > div:nth-child(1) {
  19620. margin-bottom: 10px;
  19621. }
  19622. .cardCss {
  19623. display: flex;
  19624. flex-direction: column;
  19625. flex-wrap: nowrap;
  19626. align-items: center;
  19627. border-bottom: 3px solid #b4c3d3;
  19628. padding: 0 0 5px 0;
  19629. margin-right: 10px;
  19630. }
  19631. .cardCss > div:nth-child(2) {
  19632. background: #5b7b9d;
  19633. color: #fff;
  19634. width: 20px;
  19635. height: 20px;
  19636. border-radius: 50%;
  19637. text-align: center;
  19638. line-height: 20px;
  19639. }
  19640. .isWrong {
  19641. display: flex;
  19642. flex-direction: row;
  19643. flex-wrap: nowrap;
  19644. align-content: center;
  19645. align-items: center;
  19646. }
  19647. .answerRight {
  19648. width: 25%;
  19649. }
  19650. .isTj {
  19651. display: flex;
  19652. flex-direction: row;
  19653. flex-wrap: nowrap;
  19654. align-items: center;
  19655. }
  19656. .isTj > div:nth-child(2) {
  19657. color: #727070;
  19658. margin-left: 10px;
  19659. }
  19660. .isTjImg {
  19661. width: 30px;
  19662. height: 30px;
  19663. }
  19664. .isTjImg > img {
  19665. width: 100%;
  19666. height: 100%;
  19667. }
  19668. .cardAnswerBox {
  19669. font-size: 18px;
  19670. width: 97%;
  19671. border: 5px;
  19672. padding: 0;
  19673. border-radius: 5px;
  19674. margin: 10px auto;
  19675. word-break: break-word;
  19676. }
  19677. .w_name {
  19678. margin-bottom: 10px;
  19679. }
  19680. .w_name span {
  19681. font-size: 16px;
  19682. }
  19683. .w_teachert {
  19684. width: 50px !important;
  19685. position: absolute;
  19686. height: auto !important;
  19687. z-index: 10;
  19688. right: 25px;
  19689. top: -25px;
  19690. }
  19691. .group_workBox {
  19692. }
  19693. .group_workBox + .group_workBox {
  19694. margin-top: 20px;
  19695. }
  19696. .group_box {
  19697. padding-bottom: 20px;
  19698. border-bottom: 2px solid #f0f0f0;
  19699. }
  19700. .group_title {
  19701. display: flex;
  19702. align-items: center;
  19703. justify-content: space-between;
  19704. width: 95%;
  19705. }
  19706. .group_name {
  19707. background-image: url(../assets/icon/groupN.png);
  19708. width: 220px;
  19709. background-size: 100% 100%;
  19710. height: 67px;
  19711. padding: 0 20px 0 43px;
  19712. box-sizing: border-box;
  19713. line-height: 63px;
  19714. color: #fff;
  19715. overflow: hidden;
  19716. white-space: nowrap;
  19717. text-overflow: ellipsis;
  19718. }
  19719. .group_work {
  19720. width: 100%;
  19721. padding: 0 10px;
  19722. box-sizing: border-box;
  19723. display: flex;
  19724. flex-wrap: wrap;
  19725. }
  19726. .g_d_box {
  19727. display: flex;
  19728. flex-flow: wrap;
  19729. justify-content: space-around;
  19730. }
  19731. .g_d_box .isChair {
  19732. background-image: url(../assets/avatar.png) !important;
  19733. }
  19734. .g_d_group {
  19735. width: 500px;
  19736. margin-bottom: 80px;
  19737. }
  19738. .g_d_group_chair {
  19739. display: flex;
  19740. align-items: center;
  19741. justify-content: center;
  19742. }
  19743. .g_d_group_chair > div + div {
  19744. margin-left: 30px;
  19745. }
  19746. .g_d_group_chair > div,
  19747. .g_d_group_chair2 > div {
  19748. display: flex;
  19749. flex-direction: column;
  19750. align-items: center;
  19751. }
  19752. .g_d_group_chair > div > span:nth-child(1),
  19753. .g_d_group_chair2 > div > span:nth-child(1) {
  19754. background-image: url(../assets/icon/chair.png);
  19755. width: 50px;
  19756. height: 50px;
  19757. display: block;
  19758. background-size: 100% 100%;
  19759. }
  19760. .g_d_group_tableBox {
  19761. display: flex;
  19762. align-items: center;
  19763. justify-content: center;
  19764. }
  19765. .g_d_group_chair2 {
  19766. display: flex;
  19767. flex-direction: column;
  19768. align-items: center;
  19769. justify-content: center;
  19770. }
  19771. .g_d_group_chair2 > div + div {
  19772. margin-top: 10px;
  19773. }
  19774. .g_d_group_table {
  19775. background-image: url(../assets/icon/groupBg.png);
  19776. width: 354px;
  19777. height: 196px;
  19778. background-size: 100% 100%;
  19779. display: flex;
  19780. align-items: center;
  19781. justify-content: center;
  19782. flex-direction: column;
  19783. color: #fff;
  19784. }
  19785. .g_d_group_table > div:nth-child(1) {
  19786. font-size: 24px;
  19787. margin-bottom: 5px;
  19788. }
  19789. .g_d_group_table > div:nth-child(2) div {
  19790. cursor: pointer;
  19791. background: #2e77bf;
  19792. padding: 4px 10px;
  19793. border-radius: 5px;
  19794. }
  19795. .groupBox {
  19796. }
  19797. .groupContent + .groupContent {
  19798. margin-top: 30px;
  19799. }
  19800. .groupTitle {
  19801. font-size: 24px;
  19802. color: rgb(80, 80, 80);
  19803. margin-bottom: 20px;
  19804. }
  19805. .groupName {
  19806. display: flex;
  19807. align-items: center;
  19808. }
  19809. .groupn {
  19810. font-size: 15px;
  19811. margin-right: 10px;
  19812. }
  19813. .groupName + .groupName {
  19814. margin-top: 15px;
  19815. }
  19816. .groupBtn {
  19817. margin-left: 10px;
  19818. }
  19819. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  19820. text-align: left;
  19821. }
  19822. .g_d_btnBox {
  19823. display: flex;
  19824. justify-content: flex-end;
  19825. align-items: center;
  19826. margin-bottom: 20px;
  19827. }
  19828. .updateChair {
  19829. position: relative;
  19830. }
  19831. .updateChairBtn {
  19832. position: absolute;
  19833. width: 50px;
  19834. height: 50px;
  19835. overflow: hidden;
  19836. /* display: flex; */
  19837. align-items: center;
  19838. justify-content: center;
  19839. background: #00000087;
  19840. color: #fff;
  19841. border-radius: 50px;
  19842. display: none;
  19843. cursor: pointer;
  19844. }
  19845. .updateChair:hover .updateChairBtn {
  19846. display: flex;
  19847. }
  19848. .group_staic_box {
  19849. display: flex;
  19850. padding: 30px 40px 10px;
  19851. flex-wrap: wrap;
  19852. }
  19853. .group_staic {
  19854. /* width: 50%; */
  19855. margin-bottom: 20px;
  19856. display: flex;
  19857. align-items: center;
  19858. }
  19859. .group_staic span:nth-child(1) {
  19860. width: 150px;
  19861. text-align: right;
  19862. margin-right: 15px;
  19863. }
  19864. .group_staic span:nth-child(2) {
  19865. background: rgb(0 123 255);
  19866. color: #fff;
  19867. border-radius: 5px;
  19868. padding: 5px;
  19869. }
  19870. .codeFileBox {
  19871. height: 300px;
  19872. background: #fff;
  19873. display: flex;
  19874. align-items: center;
  19875. justify-content: center;
  19876. }
  19877. .codeFileBox img {
  19878. width: 200px;
  19879. margin: 0;
  19880. height: auto;
  19881. }
  19882. .codeFileBox div {
  19883. background: rgb(80, 142, 226);
  19884. color: #fff;
  19885. padding: 10px 20px;
  19886. border-radius: 25px;
  19887. cursor: pointer;
  19888. margin-left: 15px;
  19889. }
  19890. .radioBox {
  19891. display: flex;
  19892. flex-direction: column;
  19893. flex-wrap: nowrap;
  19894. align-items: flex-start;
  19895. }
  19896. .radioBox > div {
  19897. margin: 10px 0 0 10px;
  19898. }
  19899. /* .radioBox >>> .el-radio__input,
  19900. .radioBox >>> .el-checkbox__inner {
  19901. margin-left: 10px;
  19902. } */
  19903. .radioBox >>> .el-radio__label,
  19904. .radioBox >>> .el-checkbox__label {
  19905. display: flex;
  19906. align-items: center;
  19907. }
  19908. .radioBox >>> .el-radio__label > span {
  19909. width: 100%;
  19910. display: -webkit-box;
  19911. overflow: hidden;
  19912. white-space: normal !important;
  19913. text-overflow: ellipsis;
  19914. word-wrap: break-word;
  19915. }
  19916. .inImg {
  19917. width: 100px;
  19918. cursor: pointer;
  19919. }
  19920. .inImg > img {
  19921. width: 100%;
  19922. height: 100%;
  19923. object-fit: cover;
  19924. }
  19925. .timuImgBox {
  19926. margin: 10px 0;
  19927. display: flex;
  19928. flex-direction: column;
  19929. flex-wrap: wrap;
  19930. align-items: flex-start;
  19931. }
  19932. .timuImg {
  19933. width: 150px;
  19934. margin: 5px 0;
  19935. cursor: pointer;
  19936. }
  19937. .timuImg > img {
  19938. width: 100%;
  19939. height: 100%;
  19940. object-fit: cover;
  19941. }
  19942. .worksTop {
  19943. display: flex;
  19944. flex-direction: row;
  19945. align-items: flex-end;
  19946. }
  19947. .corOpen {
  19948. margin: 0 0 0 10px;
  19949. font-size: 14px;
  19950. cursor: pointer;
  19951. color: #505050;
  19952. }
  19953. .corOpen:hover {
  19954. color: #499eef;
  19955. }
  19956. .navCorOpenBox {
  19957. display: flex;
  19958. flex-direction: row;
  19959. align-items: center;
  19960. justify-content: space-between;
  19961. height: 55px;
  19962. background: #ffffff;
  19963. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  19964. border-radius: 8px 8px 0px 0px;
  19965. z-index: 9;
  19966. position: relative;
  19967. }
  19968. .navCorOpen {
  19969. padding-right: 15px;
  19970. cursor: pointer;
  19971. width: 28px;
  19972. display: flex;
  19973. }
  19974. .navCorOpen > img {
  19975. width: 100%;
  19976. height: 100%;
  19977. }
  19978. .mlImg {
  19979. width: 25px !important;
  19980. min-width: 25px;
  19981. cursor: pointer;
  19982. transform: rotate(180deg);
  19983. }
  19984. .mlImg > img {
  19985. width: 100%;
  19986. height: 100%;
  19987. }
  19988. .navLeftCss {
  19989. width: 100% !important;
  19990. left: 0 !important;
  19991. }
  19992. .isContentCss {
  19993. width: 100% !important;
  19994. }
  19995. .isAllWidth {
  19996. width: 100% !important;
  19997. }
  19998. .group_switch {
  19999. margin-right: 10px;
  20000. height: 30px;
  20001. display: flex;
  20002. align-items: center;
  20003. }
  20004. .group_switch > span {
  20005. margin-right: 5px;
  20006. }
  20007. .fileC_box {
  20008. padding-top: 15px;
  20009. }
  20010. .fileC_box > .fileC_title {
  20011. padding: 10px 5px 14px 11px;
  20012. border-top: 1px solid #cad1dc;
  20013. font-size: 14px;
  20014. font-weight: 400;
  20015. color: #cad1dc;
  20016. width: 88%;
  20017. margin: 0 auto;
  20018. }
  20019. .pl_select_box {
  20020. height: 40px;
  20021. line-height: 40px;
  20022. width: 100%;
  20023. cursor: pointer;
  20024. padding: 0 20px;
  20025. box-sizing: border-box;
  20026. border-radius: 5px;
  20027. border: 1px solid #d6d6d6;
  20028. white-space: nowrap;
  20029. overflow: hidden;
  20030. text-overflow: ellipsis;
  20031. background: #fff;
  20032. text-align: left;
  20033. }
  20034. .newButton {
  20035. width: 102px;
  20036. height: 36px;
  20037. background: #e7ebf1;
  20038. border-radius: 4px;
  20039. color: #0e1e33;
  20040. font-weight: 400;
  20041. font-size: 14px;
  20042. border: none;
  20043. float: right;
  20044. margin-left: 10px;
  20045. }
  20046. .el-table >>> .even_row {
  20047. background-color: #f0f4fa;
  20048. }
  20049. .stageBoxCss {
  20050. display: flex;
  20051. flex-direction: row;
  20052. flex-wrap: nowrap;
  20053. align-items: center;
  20054. height: 50px;
  20055. border-bottom: 1px solid #e2f5fc;
  20056. cursor: pointer;
  20057. width: 100%;
  20058. }
  20059. .stageItemTitle {
  20060. display: flex;
  20061. flex-direction: row;
  20062. flex-wrap: nowrap;
  20063. align-items: center;
  20064. margin-left: 6px;
  20065. width: calc(100% - 60px);
  20066. }
  20067. .stageItemTitle > div:first-child {
  20068. color: #0e1e33;
  20069. font-size: 16px;
  20070. font-weight: bold;
  20071. min-width: 55px;
  20072. }
  20073. .stageItemTitle > div:last-child {
  20074. margin-left: 10px;
  20075. font-size: 15px;
  20076. font-weight: 400;
  20077. color: #474747;
  20078. max-width: 190px;
  20079. white-space: nowrap;
  20080. overflow: hidden;
  20081. text-overflow: ellipsis;
  20082. word-break: break-word;
  20083. width: calc(100% - 55px);
  20084. }
  20085. .closeTri {
  20086. min-width: 20px;
  20087. width: 20px;
  20088. height: 20px;
  20089. padding-left: 15px;
  20090. }
  20091. .closeTri > img {
  20092. width: 100%;
  20093. height: 100%;
  20094. }
  20095. .stageChild {
  20096. height: 0;
  20097. overflow: hidden;
  20098. transition: all 0.5s;
  20099. }
  20100. .navItem {
  20101. background: #ffffff;
  20102. border-radius: 4px;
  20103. width: 90%;
  20104. margin: 16px auto 0;
  20105. position: relative;
  20106. }
  20107. .navItemList {
  20108. display: flex;
  20109. flex-direction: column;
  20110. flex-wrap: nowrap;
  20111. align-items: flex-start;
  20112. padding: 8px 13px;
  20113. cursor: pointer;
  20114. }
  20115. .navItemList > div:first-child {
  20116. font-size: 14px;
  20117. font-weight: 400;
  20118. color: #474747;
  20119. padding-bottom: 4px;
  20120. }
  20121. .navItemList > div:last-child {
  20122. width: auto;
  20123. font-size: 16px;
  20124. font-weight: 400;
  20125. color: #0e1e33;
  20126. }
  20127. .isItemList > div:first-child {
  20128. color: #aeccfe;
  20129. }
  20130. .isItemList > div:last-child {
  20131. color: #fff;
  20132. }
  20133. .tool_work_box {
  20134. width: 100%;
  20135. padding: 0 37px 0;
  20136. box-sizing: border-box;
  20137. }
  20138. .tool_box {
  20139. width: 100%;
  20140. }
  20141. .tool_type_box {
  20142. display: flex;
  20143. flex-direction: row;
  20144. align-items: baseline;
  20145. flex-wrap: nowrap;
  20146. justify-content: flex-start;
  20147. position: relative;
  20148. }
  20149. .toolSort {
  20150. display: flex;
  20151. flex-direction: row;
  20152. flex-wrap: wrap;
  20153. justify-content: flex-start;
  20154. align-items: flex-start;
  20155. }
  20156. .toolSort > div {
  20157. margin: 0 45px 0 0;
  20158. width: auto;
  20159. }
  20160. .tools {
  20161. width: 100%;
  20162. display: flex;
  20163. flex-direction: column;
  20164. flex-wrap: nowrap;
  20165. align-items: flex-start;
  20166. }
  20167. .whiteBIcon {
  20168. width: 80px;
  20169. cursor: pointer;
  20170. display: flex;
  20171. flex-direction: column;
  20172. flex-wrap: nowrap;
  20173. align-items: center;
  20174. }
  20175. .whiteBIcon > img {
  20176. width: 100%;
  20177. height: 100%;
  20178. }
  20179. .whiteBIcon > img {
  20180. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20181. border-radius: 15px;
  20182. }
  20183. .check {
  20184. /* width: 20px;
  20185. height: 20px; */
  20186. cursor: pointer;
  20187. margin: 10px 0;
  20188. }
  20189. .checkDiv {
  20190. display: flex;
  20191. align-items: center;
  20192. }
  20193. .checkDiv span {
  20194. margin-left: 5px;
  20195. color: #858585;
  20196. }
  20197. .check img {
  20198. width: 20px;
  20199. height: 20px;
  20200. }
  20201. .lockTaskIcon {
  20202. width: 20px;
  20203. height: 20px;
  20204. position: absolute;
  20205. right: 0;
  20206. top: 23px;
  20207. }
  20208. .lockTaskIcon > img {
  20209. width: 100%;
  20210. height: 100%;
  20211. }
  20212. .pick_box{
  20213. display: flex;
  20214. align-items: flex-start;
  20215. flex-wrap: wrap;
  20216. }
  20217. </style>