studyStudent.vue 668 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477
  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. <div class="ctitle">{{ courseDetail.title }}</div>
  34. </div>
  35. <el-tooltip effect="light" content="收缩" placement="top">
  36. <div class="mlImg" @click="setContent2(false)">
  37. <img src="../assets/icon/newIcon/mlBtn.png" alt="" />
  38. </div>
  39. </el-tooltip>
  40. </div>
  41. <div class="inviteBox" v-if="tcid && inviteCode">
  42. <div>
  43. <span>随机码:{{ inviteCode }}</span>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="cru_selectBox">
  48. <div
  49. style="
  50. background: #fff;
  51. margin: 20px 18px 10px 18px;
  52. border-radius: 8px;
  53. "
  54. v-for="(item, stageIndex) in navList"
  55. :key="stageIndex"
  56. >
  57. <div class="stageBoxCss" @click="get(stageIndex)">
  58. <div class="closeTri" v-if="item.isOpen">
  59. <img src="../assets/icon/newIcon/openTri.png" alt />
  60. </div>
  61. <div class="closeTri" v-else>
  62. <img src="../assets/icon/newIcon/closeTri.png" alt />
  63. </div>
  64. <div class="stageItemTitle">
  65. <div>阶段{{ stageIndex + 1 }}</div>
  66. <div>{{ item.dyName }}</div>
  67. </div>
  68. </div>
  69. <div class="stageChild" :class="{ navActive: item.isOpen }">
  70. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  71. <div
  72. class="navItem"
  73. :class="{
  74. openTaskActive:
  75. navIndex == taskCount &&
  76. nav.id == navId &&
  77. stageIndex == courseType,
  78. }"
  79. >
  80. <div
  81. @click="openTask(stageIndex, navIndex, nav.id)"
  82. class="navItemList"
  83. :class="{
  84. isItemList:
  85. navIndex == taskCount &&
  86. nav.id == navId &&
  87. stageIndex == courseType,
  88. }"
  89. >
  90. <div>任务{{ navIndex + 1 }}</div>
  91. <el-tooltip
  92. effect="light"
  93. :content="nav.taskName"
  94. placement="top"
  95. >
  96. <div
  97. :style="{
  98. width:
  99. IsLookOpen && !nav.isLook
  100. ? 'calc(100% - 75px)'
  101. : 'auto',
  102. }"
  103. >
  104. {{ nav.taskName }}
  105. </div>
  106. </el-tooltip>
  107. </div>
  108. <div class="lockTaskIcon">
  109. <img
  110. src="../assets/lock.png"
  111. v-if="IsLookOpen && !nav.isLook"
  112. alt=""
  113. />
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  122. <div
  123. class="new_top"
  124. style="
  125. position: fixed;
  126. top: 20px;
  127. left: 22%;
  128. width: 77%;
  129. z-index: 999;
  130. border-radius: 12px 12px 0 0;
  131. border-bottom: 1px solid #cad1dc;
  132. padding: 10px 0;
  133. "
  134. :class="{ navLeftCss: !mlDialog }"
  135. >
  136. <div class="courseIndex">
  137. <div>任务{{ taskCount + 1 }}</div>
  138. <el-tooltip
  139. effect="light"
  140. :content="
  141. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  142. "
  143. placement="top"
  144. >
  145. <div>
  146. {{
  147. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .task
  149. }}
  150. </div>
  151. </el-tooltip>
  152. </div>
  153. <div class="btnAll">
  154. <div
  155. class="returnBtn"
  156. @click="nextOrpreSteps(0)"
  157. v-if="!(IsFollow && tType == 2)"
  158. >
  159. 上一步
  160. </div>
  161. <div
  162. class="returnBtn"
  163. @click="nextOrpreSteps(1)"
  164. v-if="!(IsFollow && tType == 2)"
  165. >
  166. 下一步
  167. </div>
  168. <!-- <div
  169. class="returnBtn"
  170. @click="allScrell"
  171. v-if="!(IsFollow && tType == 2)"
  172. >
  173. 全屏
  174. </div> -->
  175. <div class="returnBtn" @click="refreshCourse">刷新</div>
  176. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  177. 评论
  178. </div>
  179. <div
  180. class="returnBtn vedioIcon"
  181. @click="startRecording"
  182. v-if="!videoStart && (tType == 1 || tType == 4)"
  183. >
  184. 录制
  185. </div>
  186. <div
  187. class="returnBtn"
  188. @click="stopRecording"
  189. v-else-if="tType == 1 || tType == 4"
  190. style="background: #ee5255"
  191. >
  192. 下载
  193. </div>
  194. <div
  195. class="returnBtn lockIcon"
  196. @click="juriVisible = true"
  197. v-if="tType == 1"
  198. >
  199. 权限
  200. </div>
  201. <div
  202. class="returnBtn returnIcon"
  203. @click.stop="
  204. goTo(
  205. '/courseDetail?userid=' +
  206. userid +
  207. '&oid=' +
  208. oid +
  209. '&org=' +
  210. org +
  211. '&cid=' +
  212. classId +
  213. '&courseId=' +
  214. id +
  215. '&tType=' +
  216. tType +
  217. '&screenType=' +
  218. screenType
  219. )
  220. "
  221. >
  222. 返回
  223. </div>
  224. </div>
  225. </div>
  226. <div
  227. class="isNoMessage"
  228. v-if="
  229. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  230. .chapterData.length == 0 &&
  231. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  232. .toolChoose[0].tool.length == 0 &&
  233. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  234. .taskDetail == '' &&
  235. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  236. "
  237. >
  238. <img src="../assets/icon/isNoMessage.png" alt />
  239. </div>
  240. <div class="study_top" :class="{ pzClass: pzDialog }">
  241. <div
  242. class="vedioBox"
  243. v-if="
  244. vChapterData[taskCount].length > 0 || fileC[taskCount].length > 0
  245. "
  246. style="border-radius: 0 0 20px 20px"
  247. >
  248. <div
  249. class="student_head"
  250. v-if="
  251. vChapterData[taskCount].length > 0 ||
  252. fileC[taskCount].length > 0
  253. "
  254. >
  255. <div class="vedioTaskBox">
  256. <div
  257. :class="
  258. contentDialog == false
  259. ? 'box_course isContentCss'
  260. : 'box_course'
  261. "
  262. v-if="
  263. vChapterData.length > 0 &&
  264. vChapterData[taskCount] &&
  265. showType !== ''
  266. "
  267. >
  268. <div class="wheel" style="height: auto" v-if="showType === 0">
  269. <div
  270. class="workd_media"
  271. style="height: 650px; width: calc(100% - 50px)"
  272. >
  273. <video-player
  274. class="video-player vjs-custom-skin"
  275. :class="contentDialog == false ? 'isAllWidth' : ''"
  276. :playsinline="true"
  277. :options="playerO[taskCount]"
  278. @play="onPlayerPlay($event)"
  279. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  280. ></video-player>
  281. </div>
  282. </div>
  283. <div
  284. class="wheel"
  285. v-if="showType == 1"
  286. style="
  287. box-shadow: 0 0 6px 1px #f2f2f2;
  288. width: 95%;
  289. margin: 0 auto;
  290. background: #f1f1f1;
  291. "
  292. >
  293. <div class="title">查看文档</div>
  294. <el-form class="textBox">
  295. <el-form-item class="textTitle">
  296. <div style="font-size: 22px">
  297. {{ text.name }}
  298. </div>
  299. </el-form-item>
  300. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  301. <div v-html="text.url" class="textContent cont"></div>
  302. </el-form>
  303. </div>
  304. <div
  305. class="wheel"
  306. v-if="
  307. pptImgUrl1.indexOf(
  308. 'https://view.officeapps.live.com/op/view.aspx?src='
  309. ) != -1 && showType == 2
  310. "
  311. style="width: 95%; margin: 0 auto"
  312. >
  313. <iframe
  314. style="width: 100%; height: 100%; border: none"
  315. :src="pptImgUrl1"
  316. ></iframe>
  317. </div>
  318. <div
  319. class="wheel"
  320. v-else-if="showType == 2"
  321. style="width: 95%; margin: 0 auto"
  322. >
  323. <iframe
  324. style="width: 100%; height: 100%; border: none"
  325. security="restricted"
  326. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  327. :src="pptImgUrl1"
  328. ></iframe>
  329. </div>
  330. <div
  331. class="wheel"
  332. v-if="showType == 3"
  333. style="width: 95%; margin: 0 auto"
  334. >
  335. <pdf
  336. :pdfUrl="pptImgUrl1"
  337. style="width: 100%; height: 100%; overflow: auto"
  338. ></pdf>
  339. </div>
  340. <div
  341. class="wheel"
  342. v-if="showType == 4"
  343. style="width: 95%; margin: 0 auto"
  344. >
  345. <el-image
  346. :src="pptImgUrl1"
  347. fit="contain"
  348. style="width: 100%; height: 100%; cursor: pointer"
  349. @click="previewImg(pptImgUrl1)"
  350. ></el-image>
  351. </div>
  352. </div>
  353. <div
  354. class="pButton"
  355. style="
  356. position: absolute;
  357. right: 20px;
  358. top: 0;
  359. background: #205cc6;
  360. z-index: 998;
  361. opacity: 0.8;
  362. "
  363. v-if="!contentDialog"
  364. @click="setContent(true)"
  365. >
  366. <!-- 批 -->
  367. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  368. </div>
  369. <div
  370. v-if="contentDialog == true"
  371. :style="{
  372. width:
  373. (vChapterData[taskCount].length > 0 ||
  374. fileC[taskCount].length > 0) &&
  375. showType === ''
  376. ? 'calc(100%)'
  377. : '300px',
  378. margin:
  379. (vChapterData[taskCount].length > 0 ||
  380. fileC[taskCount].length > 0) &&
  381. showType === ''
  382. ? '0 15px'
  383. : '0 15px 0 0',
  384. }"
  385. >
  386. <div
  387. class="vedioList"
  388. v-if="
  389. vChapterData[taskCount].length > 0 ||
  390. fileC[taskCount].length > 0
  391. "
  392. style="height: 650px"
  393. >
  394. <div class="navCorOpenBox">
  395. <div class="navTitile">内容列表:</div>
  396. <div class="navCorOpen" @click="setContent(false)">
  397. <img src="../assets/icon/newIcon/mlBtn.png" alt="" />
  398. </div>
  399. </div>
  400. <div class="navBox">
  401. <div
  402. v-show="
  403. vChapterData[taskCount].length > 0 ||
  404. fileC[taskCount].length > 0
  405. "
  406. style="padding: 10px 0 25px 0"
  407. >
  408. <div
  409. class="vedioTimeBox"
  410. v-for="(vitem, vindex) in vChapterData[taskCount]"
  411. :key="vindex + '1'"
  412. >
  413. <div class="navListItem" v-if="vitem.type == 2">
  414. <div
  415. @click="lookVedio(vitem.url, vindex)"
  416. class="navText"
  417. :class="isClickNav == vindex ? 'isClickNav' : ''"
  418. >
  419. <span v-if="vitem.text">{{ vitem.text }}-</span
  420. >{{ vitem.name }}
  421. </div>
  422. <div class="downIcon" @click="downloadFile2(vitem)">
  423. <img src="../assets/icon/newIcon/down.png" alt />
  424. </div>
  425. </div>
  426. <div class="navListItem" v-if="vitem.type == 6">
  427. <div
  428. @click="lookText(taskCount, vindex)"
  429. class="navText"
  430. :class="isClickNav == vindex ? 'isClickNav' : ''"
  431. >
  432. {{ vitem.name }}.doc
  433. </div>
  434. <!-- <div
  435. class="downIcon"
  436. @click="downloadFile(vitem.url)"
  437. >
  438. <img src="../assets/icon/newIcon/down.png" alt />
  439. </div> -->
  440. </div>
  441. <div class="navListItem" v-if="vitem.type == 8">
  442. <div
  443. @click="doUrl(vitem.url, vindex)"
  444. class="navText"
  445. :class="isClickNav == vindex ? 'isClickNav' : ''"
  446. >
  447. {{ vitem.title ? vitem.title : vitem.url }}
  448. </div>
  449. <!-- <div
  450. class="downIcon"
  451. @click="downloadFile(vitem.url)"
  452. >
  453. <img src="../assets/icon/newIcon/down.png" alt />
  454. </div> -->
  455. </div>
  456. <div class="navListItem" v-if="vitem.type == 3">
  457. <div
  458. @click="downFile(vitem, vindex)"
  459. class="navText"
  460. :class="isClickNav == vindex ? 'isClickNav' : ''"
  461. >
  462. <span v-if="vitem.text">{{ vitem.text }}-</span
  463. >{{ vitem.name }}
  464. </div>
  465. <div class="downIcon" @click="downloadFile2(vitem)">
  466. <img src="../assets/icon/newIcon/down.png" alt />
  467. </div>
  468. </div>
  469. <div class="navListItem" v-if="vitem.type == 12">
  470. <div class="navText" @click="downloadFile2(vitem)">
  471. <span v-if="vitem.text">{{ vitem.text }}-</span
  472. >{{ vitem.name }}
  473. </div>
  474. <div class="downIcon" @click="downloadFile2(vitem)">
  475. <img src="../assets/icon/newIcon/down.png" alt />
  476. </div>
  477. </div>
  478. <div class="navListItem" v-if="vitem.type == 13">
  479. <div
  480. class="navText"
  481. @click="checkPhoto(vitem, vindex)"
  482. :class="isClickNav == vindex ? 'isClickNav' : ''"
  483. >
  484. {{ vitem.name }}
  485. </div>
  486. <div class="downIcon" @click="downloadFile2(vitem)">
  487. <img src="../assets/icon/newIcon/down.png" alt />
  488. </div>
  489. </div>
  490. </div>
  491. <div
  492. class="fileC_box"
  493. v-if="fileC[taskCount].length > 0"
  494. >
  495. <div class="fileC_title">以下文件不支持预览</div>
  496. <div
  497. class="vedioTimeBox"
  498. v-for="(vitem, vindex) in fileC[taskCount]"
  499. :key="vindex + '1'"
  500. >
  501. <div class="navListItem" v-if="vitem.type == 12">
  502. <div class="navText" style="color: #acb4bf">
  503. <span v-if="vitem.text">{{ vitem.text }}-</span
  504. >{{ vitem.name }}
  505. </div>
  506. <div
  507. class="downIcon"
  508. @click="downloadFile2(vitem)"
  509. >
  510. <img
  511. src="../assets/icon/newIcon/down.png"
  512. alt
  513. />
  514. </div>
  515. </div>
  516. </div>
  517. </div>
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. </div>
  523. <div style="width: calc(100% - 315px)">
  524. <div
  525. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  526. v-if="showType == 2 || showType == 3"
  527. >
  528. <el-button
  529. type="primary"
  530. class="newButton"
  531. @click="checkFileFull(showType, pptImgUrl1)"
  532. >全屏查看</el-button
  533. >
  534. <el-button
  535. type="primary"
  536. class="newButton"
  537. @click="downloadFile(pptImgUrl1)"
  538. v-if="showType != 2"
  539. >文件下载</el-button
  540. >
  541. <el-button
  542. class="newButton"
  543. v-if="
  544. showType == 2 &&
  545. pptImgUrl1.indexOf(
  546. 'https://view.officeapps.live.com/op/view.aspx?src='
  547. ) == -1
  548. "
  549. type="primary"
  550. @click="openLine(pptImgUrl1)"
  551. >打开链接
  552. </el-button>
  553. </div>
  554. <div
  555. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  556. v-if="showType == 1"
  557. >
  558. <el-button
  559. type="primary"
  560. class="newButton"
  561. @click="checkFileFull(showType, text)"
  562. >全屏查看</el-button
  563. >
  564. </div>
  565. </div>
  566. </div>
  567. </div>
  568. <div class="student_body" v-resize="resize">
  569. <div
  570. class="vedioBox"
  571. :style="{
  572. borderRadius:
  573. vChapterData[taskCount].length == 0 &&
  574. fileC[taskCount].length == 0
  575. ? '0 0 20px 20px'
  576. : '20px',
  577. }"
  578. v-if="
  579. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  580. .toolChoose[0].tool &&
  581. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  582. .toolChoose[0].tool.length > 0) || (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  583. .taskDetail != '')
  584. "
  585. >
  586. <div
  587. class="taskBox"
  588. v-if="
  589. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  590. .taskDetail != ''
  591. "
  592. :style="(chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  593. .toolChoose[0].tool &&
  594. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  595. .toolChoose[0].tool.length &&
  596. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  597. .toolChoose[0].tool.length > 0) ? 'border-bottom: 1px solid #cad1dc' : ''"
  598. >
  599. <div
  600. style="
  601. display: flex;
  602. flex-wrap: nowrap;
  603. flex-direction: column;
  604. position: relative;
  605. "
  606. >
  607. <div
  608. style="padding: 15px 0; line-height: 29px; font-size: 18px"
  609. class="cont"
  610. v-if="
  611. chapInfoList[courseType].chapterInfo[0].taskJson[
  612. taskCount
  613. ].taskDetail != ''
  614. "
  615. v-html="
  616. chapInfoList[courseType].chapterInfo[0].taskJson[
  617. taskCount
  618. ].taskDetail
  619. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  620. taskCount
  621. ].taskDetail
  622. : '暂无描述'
  623. "
  624. ></div>
  625. </div>
  626. </div>
  627. <div
  628. class="queTop"
  629. style="
  630. padding: 15px 0 15px 37px;
  631. font-weight: bold;
  632. font-size: 20px;
  633. color: #0e1e33;
  634. "
  635. v-show="false"
  636. >
  637. 工具栏
  638. <el-button
  639. style="margin: 0 30px 0 auto"
  640. type="primary"
  641. size="small"
  642. @click="addToolChoose"
  643. >确定</el-button
  644. >
  645. </div>
  646. <div class="tool_work_box" v-show="false">
  647. <div class="tool_box">
  648. <div class="tool_type_box">
  649. <div class="chooseWho">
  650. <!-- <div :class="toolType == 0 ? 'isChooseActive' : ''
  651. " @click="(toolType = 0), $forceUpdate()">
  652. 互动类
  653. </div> -->
  654. <div
  655. :class="toolType == 1 ? 'isChooseActive' : ''"
  656. @click="(toolType = 1), $forceUpdate()"
  657. >
  658. 思维类
  659. </div>
  660. <!-- <div
  661. :class="toolType == 6 ? 'isChooseActive' : ''"
  662. @click="(toolType = 6), $forceUpdate()"
  663. >
  664. 协作类
  665. </div> -->
  666. <div
  667. :class="toolType == 2 ? 'isChooseActive' : ''"
  668. @click="(toolType = 2), $forceUpdate()"
  669. >
  670. 测评类
  671. </div>
  672. <!-- <div
  673. :class="toolType == 7 ? 'isChooseActive' : ''"
  674. @click="(toolType = 7), $forceUpdate()"
  675. >
  676. 评价类
  677. </div> -->
  678. <div
  679. :class="toolType == 3 ? 'isChooseActive' : ''"
  680. @click="(toolType = 3), $forceUpdate()"
  681. >
  682. 学科类
  683. </div>
  684. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  685. " @click="(toolType = 5), $forceUpdate()">
  686. 学科类
  687. </div>
  688. <div :class="toolType == 4 ? 'isChooseActive' : ''
  689. " @click="(toolType = 4), $forceUpdate()">
  690. 其他
  691. </div> -->
  692. </div>
  693. </div>
  694. <div>
  695. <div class="toolSort" v-if="toolType == 0">
  696. <div class="tool">
  697. <div class="whiteBIcon" @click="addTools2(10)">
  698. <img
  699. src="../assets/icon/thirdToolList/time.png"
  700. alt
  701. />
  702. <div style="margin: 5px 0">倒计时</div>
  703. </div>
  704. <div class="check" @click="addTools2(10)">
  705. <img
  706. src="../assets/icon/checkNo.png"
  707. alt
  708. v-if="checktoolArray.indexOf(10) == -1"
  709. />
  710. <div class="checkDiv" v-else>
  711. <img src="../assets/icon/checkedIs.png" alt /><span
  712. >已选择</span
  713. >
  714. </div>
  715. </div>
  716. </div>
  717. </div>
  718. <div class="toolSort" v-if="toolType == 1">
  719. <div class="tool">
  720. <div class="whiteBIcon" @click="addTools2(7)">
  721. <img
  722. src="../assets/icon/secondToolList/mindNetwork.png"
  723. alt
  724. />
  725. <div style="margin: 5px 0">思维网格</div>
  726. </div>
  727. <div class="check" @click="addTools2(7)">
  728. <img
  729. src="../assets/icon/checkNo.png"
  730. alt
  731. v-if="checktoolArray.indexOf(7) == -1"
  732. />
  733. <div class="checkDiv" v-else>
  734. <img src="../assets/icon/checkedIs.png" alt /><span
  735. >已选择</span
  736. >
  737. </div>
  738. </div>
  739. </div>
  740. <div class="tool">
  741. <div class="whiteBIcon" @click="addTools2(1)">
  742. <img
  743. src="../assets/icon/secondToolList/whiteBoard.png"
  744. alt
  745. />
  746. <div style="margin: 5px 0">电子白板</div>
  747. </div>
  748. <div class="check" @click="addTools2(1)">
  749. <img
  750. src="../assets/icon/checkNo.png"
  751. alt
  752. v-if="checktoolArray.indexOf(1) == -1"
  753. />
  754. <div class="checkDiv" v-else>
  755. <img src="../assets/icon/checkedIs.png" alt /><span
  756. >已选择</span
  757. >
  758. </div>
  759. </div>
  760. </div>
  761. <div class="tool">
  762. <div class="whiteBIcon" @click="addTools2(52)">
  763. <img
  764. src="../assets/icon/fourthToolList/text.png"
  765. alt
  766. />
  767. <div style="margin: 5px 0">文档</div>
  768. </div>
  769. <div class="check" @click="addTools2(52)">
  770. <img
  771. src="../assets/icon/checkNo.png"
  772. alt
  773. v-if="checktoolArray.indexOf(52) == -1"
  774. />
  775. <div class="checkDiv" v-else>
  776. <img src="../assets/icon/checkedIs.png" alt /><span
  777. >已选择</span
  778. >
  779. </div>
  780. </div>
  781. </div>
  782. <div class="tool">
  783. <div class="whiteBIcon" @click="addTools2(3)">
  784. <img
  785. src="../assets/icon/secondToolList/mindMapping.png"
  786. alt
  787. />
  788. <div style="margin: 5px 0">思维导图</div>
  789. </div>
  790. <div class="check" @click="addTools2(3)">
  791. <img
  792. src="../assets/icon/checkNo.png"
  793. alt
  794. v-if="checktoolArray.indexOf(3) == -1"
  795. />
  796. <div class="checkDiv" v-else>
  797. <img src="../assets/icon/checkedIs.png" alt /><span
  798. >已选择</span
  799. >
  800. </div>
  801. </div>
  802. </div>
  803. <div class="tool">
  804. <div class="whiteBIcon" @click="addTools2(48)">
  805. <img
  806. src="../assets/icon/fourthToolList/table.png"
  807. alt
  808. />
  809. <div style="margin: 5px 0">表格</div>
  810. </div>
  811. <div class="check" @click="addTools2(48)">
  812. <img
  813. src="../assets/icon/checkNo.png"
  814. alt
  815. v-if="checktoolArray.indexOf(48) == -1"
  816. />
  817. <div class="checkDiv" v-else>
  818. <img src="../assets/icon/checkedIs.png" alt /><span
  819. >已选择</span
  820. >
  821. </div>
  822. </div>
  823. </div>
  824. </div>
  825. <div class="toolSort" v-if="toolType == 6">
  826. <div v-show="tooC == 49">
  827. <img
  828. @click="addTools(tooC, toolIndex, taskCount)"
  829. src="../assets/icon/fourthToolList/group.png"
  830. alt
  831. />
  832. <div style="margin: 5px 0">学生分组</div>
  833. </div>
  834. </div>
  835. <div class="toolSort" v-if="toolType == 2">
  836. <div class="tool">
  837. <div class="whiteBIcon" @click="addTools2(16)">
  838. <img
  839. src="../assets/icon/thirdToolList/work.png"
  840. alt
  841. />
  842. <div style="margin: 5px 0">作业提交</div>
  843. </div>
  844. <div class="check" @click="addTools2(16)">
  845. <img
  846. src="../assets/icon/checkNo.png"
  847. alt
  848. v-if="checktoolArray.indexOf(16) == -1"
  849. />
  850. <div class="checkDiv" v-else>
  851. <img src="../assets/icon/checkedIs.png" alt /><span
  852. >已选择</span
  853. >
  854. </div>
  855. </div>
  856. </div>
  857. <div class="tool">
  858. <div class="whiteBIcon" @click="addTools2(50)">
  859. <img
  860. src="../assets/icon/thirdToolList/plwork.png"
  861. alt
  862. />
  863. <div style="margin: 5px 0">批量上传</div>
  864. </div>
  865. <div class="check" @click="addTools2(50)">
  866. <img
  867. src="../assets/icon/checkNo.png"
  868. alt
  869. v-if="checktoolArray.indexOf(50) == -1"
  870. />
  871. <div class="checkDiv" v-else>
  872. <img src="../assets/icon/checkedIs.png" alt /><span
  873. >已选择</span
  874. >
  875. </div>
  876. </div>
  877. </div>
  878. </div>
  879. <div class="toolSort" v-if="toolType == 3">
  880. <div class="tool">
  881. <div class="whiteBIcon" @click="addTools2(18)">
  882. <img
  883. src="../assets/icon/thirdToolList/trainPlatform.png"
  884. alt
  885. />
  886. <div style="margin: 5px 0">训练平台</div>
  887. </div>
  888. <div class="check" @click="addTools2(18)">
  889. <img
  890. src="../assets/icon/checkNo.png"
  891. alt
  892. v-if="checktoolArray.indexOf(18) == -1"
  893. />
  894. <div class="checkDiv" v-else>
  895. <img src="../assets/icon/checkedIs.png" alt /><span
  896. >已选择</span
  897. >
  898. </div>
  899. </div>
  900. </div>
  901. <div class="tool">
  902. <div class="whiteBIcon" @click="addTools2(21)">
  903. <img
  904. src="../assets/icon/fourthToolList/program.png"
  905. alt
  906. />
  907. <div style="margin: 5px 0">编程平台</div>
  908. </div>
  909. <div class="check" @click="addTools2(21)">
  910. <img
  911. src="../assets/icon/checkNo.png"
  912. alt
  913. v-if="checktoolArray.indexOf(21) == -1"
  914. />
  915. <div class="checkDiv" v-else>
  916. <img src="../assets/icon/checkedIs.png" alt /><span
  917. >已选择</span
  918. >
  919. </div>
  920. </div>
  921. </div>
  922. <div class="tool">
  923. <div class="whiteBIcon" @click="addTools2(22)">
  924. <img
  925. src="../assets/icon/fourthToolList/AIprogram2.png"
  926. alt
  927. />
  928. <div style="margin: 5px 0">AI体验</div>
  929. </div>
  930. <div class="check" @click="addTools2(22)">
  931. <img
  932. src="../assets/icon/checkNo.png"
  933. alt
  934. v-if="checktoolArray.indexOf(22) == -1"
  935. />
  936. <div class="checkDiv" v-else>
  937. <img src="../assets/icon/checkedIs.png" alt /><span
  938. >已选择</span
  939. >
  940. </div>
  941. </div>
  942. </div>
  943. <div class="tool">
  944. <div class="whiteBIcon" @click="addTools2(23)">
  945. <img
  946. src="../assets/icon/fourthToolList/Pythonprogram.png"
  947. alt
  948. />
  949. <div style="margin: 5px 0">Python</div>
  950. </div>
  951. <div class="check" @click="addTools2(23)">
  952. <img
  953. src="../assets/icon/checkNo.png"
  954. alt
  955. v-if="checktoolArray.indexOf(23) == -1"
  956. />
  957. <div class="checkDiv" v-else>
  958. <img src="../assets/icon/checkedIs.png" alt /><span
  959. >已选择</span
  960. >
  961. </div>
  962. </div>
  963. </div>
  964. <div class="tool">
  965. <div class="whiteBIcon" @click="addTools2(24)">
  966. <img
  967. src="../assets/icon/fourthToolList/AIprogram.png"
  968. alt
  969. />
  970. <div style="margin: 5px 0">AI平台</div>
  971. </div>
  972. <div class="check" @click="addTools2(24)">
  973. <img
  974. src="../assets/icon/checkNo.png"
  975. alt
  976. v-if="checktoolArray.indexOf(24) == -1"
  977. />
  978. <div class="checkDiv" v-else>
  979. <img src="../assets/icon/checkedIs.png" alt /><span
  980. >已选择</span
  981. >
  982. </div>
  983. </div>
  984. </div>
  985. <div class="tool">
  986. <div class="whiteBIcon" @click="addTools2(32)">
  987. <img
  988. src="../assets/icon/thirdToolList/code.png"
  989. alt
  990. />
  991. <div style="margin: 5px 0">源码编辑</div>
  992. </div>
  993. <div class="check" @click="addTools2(32)">
  994. <img
  995. src="../assets/icon/checkNo.png"
  996. alt
  997. v-if="checktoolArray.indexOf(32) == -1"
  998. />
  999. <div class="checkDiv" v-else>
  1000. <img src="../assets/icon/checkedIs.png" alt /><span
  1001. >已选择</span
  1002. >
  1003. </div>
  1004. </div>
  1005. </div>
  1006. <div class="tool">
  1007. <div class="whiteBIcon" @click="addTools2(57)">
  1008. <img
  1009. src="../assets/icon/fourthToolList/cocopi.png"
  1010. alt
  1011. />
  1012. <div style="margin: 5px 0">CocoPi</div>
  1013. </div>
  1014. <div class="check" @click="addTools2(57)">
  1015. <img
  1016. src="../assets/icon/checkNo.png"
  1017. alt
  1018. v-if="checktoolArray.indexOf(57) == -1"
  1019. />
  1020. <div class="checkDiv" v-else>
  1021. <img src="../assets/icon/checkedIs.png" alt /><span
  1022. >已选择</span
  1023. >
  1024. </div>
  1025. </div>
  1026. </div>
  1027. <div class="tool">
  1028. <div class="whiteBIcon" @click="addTools2(63)">
  1029. <img
  1030. src="../assets/icon/fourthToolList/Wood.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">海龟编程</div>
  1034. </div>
  1035. <div class="check" @click="addTools2(63)">
  1036. <img
  1037. src="../assets/icon/checkNo.png"
  1038. alt
  1039. v-if="checktoolArray.indexOf(63) == -1"
  1040. />
  1041. <div class="checkDiv" v-else>
  1042. <img src="../assets/icon/checkedIs.png" alt /><span
  1043. >已选择</span
  1044. >
  1045. </div>
  1046. </div>
  1047. </div>
  1048. </div>
  1049. <div class="toolSort" v-if="toolType == 7">
  1050. <div class="tool">
  1051. <div class="whiteBIcon" @click="addTools2(40)">
  1052. <img
  1053. src="../assets/icon/secondToolList/eval.png"
  1054. alt
  1055. />
  1056. <div style="margin: 5px 0">个人评价</div>
  1057. </div>
  1058. <div class="check" @click="addTools2(40)">
  1059. <img
  1060. src="../assets/icon/checkNo.png"
  1061. alt
  1062. v-if="checktoolArray.indexOf(40) == -1"
  1063. />
  1064. <div class="checkDiv" v-else>
  1065. <img src="../assets/icon/checkedIs.png" alt /><span
  1066. >已选择</span
  1067. >
  1068. </div>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. <div class="toolSort" v-if="toolType == 5">
  1073. <div class="tool">
  1074. <div class="whiteBIcon" @click="addTools2(28)">
  1075. <img
  1076. src="../assets/icon/secondToolList/translation.png"
  1077. alt
  1078. />
  1079. <div style="margin: 5px 0">翻译</div>
  1080. </div>
  1081. <div class="check" @click="addTools2(28)">
  1082. <img
  1083. src="../assets/icon/checkNo.png"
  1084. alt
  1085. v-if="checktoolArray.indexOf(28) == -1"
  1086. />
  1087. <div class="checkDiv" v-else>
  1088. <img src="../assets/icon/checkedIs.png" alt /><span
  1089. >已选择</span
  1090. >
  1091. </div>
  1092. </div>
  1093. </div>
  1094. <div class="tool">
  1095. <div class="whiteBIcon" @click="addTools2(37)">
  1096. <img
  1097. src="../assets/icon/secondToolList/mohe.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">魔盒识字</div>
  1101. </div>
  1102. <div class="check" @click="addTools2(37)">
  1103. <img
  1104. src="../assets/icon/checkNo.png"
  1105. alt
  1106. v-if="checktoolArray.indexOf(37) == -1"
  1107. />
  1108. <div class="checkDiv" v-else>
  1109. <img src="../assets/icon/checkedIs.png" alt /><span
  1110. >已选择</span
  1111. >
  1112. </div>
  1113. </div>
  1114. </div>
  1115. <div class="tool">
  1116. <div class="whiteBIcon" @click="addTools2(38)">
  1117. <img
  1118. src="../assets/icon/secondToolList/24game.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">24点</div>
  1122. </div>
  1123. <div class="check" @click="addTools2(38)">
  1124. <img
  1125. src="../assets/icon/checkNo.png"
  1126. alt
  1127. v-if="checktoolArray.indexOf(38) == -1"
  1128. />
  1129. <div class="checkDiv" v-else>
  1130. <img src="../assets/icon/checkedIs.png" alt /><span
  1131. >已选择</span
  1132. >
  1133. </div>
  1134. </div>
  1135. </div>
  1136. <div class="tool">
  1137. <div class="whiteBIcon" @click="addTools2(31)">
  1138. <img
  1139. src="../assets/icon/secondToolList/networkPanel.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">数学画板</div>
  1143. </div>
  1144. <div class="check" @click="addTools2(31)">
  1145. <img
  1146. src="../assets/icon/checkNo.png"
  1147. alt
  1148. v-if="checktoolArray.indexOf(31) == -1"
  1149. />
  1150. <div class="checkDiv" v-else>
  1151. <img src="../assets/icon/checkedIs.png" alt /><span
  1152. >已选择</span
  1153. >
  1154. </div>
  1155. </div>
  1156. </div>
  1157. <div class="tool">
  1158. <div class="whiteBIcon" @click="addTools2(39)">
  1159. <img
  1160. src="../assets/icon/secondToolList/GeoGebra.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">GeoGebra</div>
  1164. </div>
  1165. <div class="check" @click="addTools2(39)">
  1166. <img
  1167. src="../assets/icon/checkNo.png"
  1168. alt
  1169. v-if="checktoolArray.indexOf(39) == -1"
  1170. />
  1171. <div class="checkDiv" v-else>
  1172. <img src="../assets/icon/checkedIs.png" alt /><span
  1173. >已选择</span
  1174. >
  1175. </div>
  1176. </div>
  1177. </div>
  1178. <div class="tool">
  1179. <div class="whiteBIcon" @click="addTools2(58)">
  1180. <img
  1181. src="../assets/icon/fourthToolList/car.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">模拟驾驶</div>
  1185. </div>
  1186. <div class="check" @click="addTools2(58)">
  1187. <img
  1188. src="../assets/icon/checkNo.png"
  1189. alt
  1190. v-if="checktoolArray.indexOf(58) == -1"
  1191. />
  1192. <div class="checkDiv" v-else>
  1193. <img src="../assets/icon/checkedIs.png" alt /><span
  1194. >已选择</span
  1195. >
  1196. </div>
  1197. </div>
  1198. </div>
  1199. <div class="tool">
  1200. <div class="whiteBIcon" @click="addTools2(59)">
  1201. <img
  1202. src="../assets/icon/fourthToolList/lineSearch.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">路径搜索</div>
  1206. </div>
  1207. <div class="check" @click="addTools2(59)">
  1208. <img
  1209. src="../assets/icon/checkNo.png"
  1210. alt
  1211. v-if="checktoolArray.indexOf(59) == -1"
  1212. />
  1213. <div class="checkDiv" v-else>
  1214. <img src="../assets/icon/checkedIs.png" alt /><span
  1215. >已选择</span
  1216. >
  1217. </div>
  1218. </div>
  1219. </div>
  1220. <div class="tool">
  1221. <div class="whiteBIcon" @click="addTools2(60)">
  1222. <img
  1223. src="../assets/icon/fourthToolList/deepLearning.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">深度学习</div>
  1227. </div>
  1228. <div class="check" @click="addTools2(60)">
  1229. <img
  1230. src="../assets/icon/checkNo.png"
  1231. alt
  1232. v-if="checktoolArray.indexOf(60) == -1"
  1233. />
  1234. <div class="checkDiv" v-else>
  1235. <img src="../assets/icon/checkedIs.png" alt /><span
  1236. >已选择</span
  1237. >
  1238. </div>
  1239. </div>
  1240. </div>
  1241. <div class="tool">
  1242. <div class="whiteBIcon" @click="addTools2(61)">
  1243. <img
  1244. src="../assets/icon/fourthToolList/allHistory.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">全历史</div>
  1248. </div>
  1249. <div class="check" @click="addTools2(61)">
  1250. <img
  1251. src="../assets/icon/checkNo.png"
  1252. alt
  1253. v-if="checktoolArray.indexOf(61) == -1"
  1254. />
  1255. <div class="checkDiv" v-else>
  1256. <img src="../assets/icon/checkedIs.png" alt /><span
  1257. >已选择</span
  1258. >
  1259. </div>
  1260. </div>
  1261. </div>
  1262. </div>
  1263. <div class="toolSort" v-if="toolType == 4">
  1264. <div class="tool">
  1265. <div class="whiteBIcon" @click="addTools2(26)">
  1266. <img
  1267. src="../assets/icon/thirdToolList/courseDesign.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">课程设计</div>
  1271. </div>
  1272. <div class="check" @click="addTools2(26)">
  1273. <img
  1274. src="../assets/icon/checkNo.png"
  1275. alt
  1276. v-if="checktoolArray.indexOf(26) == -1"
  1277. />
  1278. <div class="checkDiv" v-else>
  1279. <img src="../assets/icon/checkedIs.png" alt /><span
  1280. >已选择</span
  1281. >
  1282. </div>
  1283. </div>
  1284. </div>
  1285. <div class="tool">
  1286. <div class="whiteBIcon" @click="addTools2(25)">
  1287. <img
  1288. src="../assets/icon/thirdToolList/evalua.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">目标管理</div>
  1292. </div>
  1293. <div class="check" @click="addTools2(25)">
  1294. <img
  1295. src="../assets/icon/checkNo.png"
  1296. alt
  1297. v-if="checktoolArray.indexOf(25) == -1"
  1298. />
  1299. <div class="checkDiv" v-else>
  1300. <img src="../assets/icon/checkedIs.png" alt /><span
  1301. >已选择</span
  1302. >
  1303. </div>
  1304. </div>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <div
  1311. class="toolHeng2"
  1312. style="position: relative"
  1313. v-if="
  1314. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1315. .toolChoose[0].tool &&
  1316. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1317. .toolChoose[0].tool.length &&
  1318. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1319. .toolChoose[0].tool.length > 0
  1320. "
  1321. >
  1322. <div class="workNav">工作区</div>
  1323. <div
  1324. class="filebox"
  1325. style="flex-wrap: nowrap"
  1326. v-for="(tool, toolIndex) in chapInfoList[courseType]
  1327. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1328. :key="toolIndex"
  1329. >
  1330. <div class="bzBox">
  1331. <div class="yCss"></div>
  1332. <div>步骤{{ toolIndex + 1 }}</div>
  1333. </div>
  1334. <div class="toolBox">
  1335. <div>
  1336. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1337. :key="indexTool"-->
  1338. <!-- <div class="iframeBox">
  1339. <div
  1340. class="addPoint isBorder"
  1341. v-for="(tooC, toolCIndex) in tool.tool"
  1342. :key="toolCIndex"
  1343. >
  1344. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1345. <div
  1346. class="iframeName"
  1347. >
  1348. 电子白板
  1349. </div>
  1350. <iframe
  1351. src="https://iwb.cocorobo.cn/"
  1352. ref="whiteBoard"
  1353. ></iframe>
  1354. </div>
  1355. </div>
  1356. </div>-->
  1357. <div class="noiframeBox">
  1358. <div
  1359. class="addPoint"
  1360. v-for="(tooC, toolCIndex) in tool.tool"
  1361. :key="toolCIndex"
  1362. >
  1363. <div v-if="tooC == 1">
  1364. <img
  1365. src="../assets/icon/secondToolList/whiteBoard.png"
  1366. alt
  1367. @click="addTools(tooC, toolIndex, taskCount)"
  1368. />
  1369. <div style="margin: 5px 0">电子白板</div>
  1370. </div>
  1371. <div v-if="tooC == 3">
  1372. <img
  1373. src="../assets/icon/secondToolList/mindMapping.png"
  1374. alt
  1375. @click="addTools(tooC, toolIndex, taskCount)"
  1376. />
  1377. <div style="margin: 5px 0">思维导图</div>
  1378. </div>
  1379. <div v-if="tooC == 6">
  1380. <img
  1381. src="../assets/icon/secondToolList/doc.png"
  1382. alt
  1383. @click="addTools(tooC, toolIndex, taskCount)"
  1384. />
  1385. <div style="margin: 5px 0">协同文档</div>
  1386. </div>
  1387. <div v-if="tooC == 7">
  1388. <img
  1389. src="../assets/icon/secondToolList/mindNetwork.png"
  1390. alt
  1391. @click="addTools(tooC, toolIndex, taskCount)"
  1392. />
  1393. <div style="margin: 5px 0">思维网格</div>
  1394. </div>
  1395. <div v-if="tooC == 8">
  1396. <img
  1397. src="../assets/icon/secondToolList/library.png"
  1398. alt
  1399. @click="addTools(tooC, toolIndex, taskCount)"
  1400. />
  1401. <div style="margin: 5px 0">素材库</div>
  1402. </div>
  1403. <div v-if="tooC == 17">
  1404. <img
  1405. src="../assets/icon/secondToolList/library.png"
  1406. alt
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. />
  1409. <div style="margin: 5px 0">学习资料</div>
  1410. </div>
  1411. <div v-if="tooC == 2">
  1412. <img
  1413. @click="addTools(tooC, toolIndex, taskCount)"
  1414. src="../assets/icon/secondToolList/note.png"
  1415. alt
  1416. />
  1417. <div style="margin: 5px 0">便签</div>
  1418. </div>
  1419. <div v-if="tooC == 4">
  1420. <img
  1421. @click="addTools(tooC, toolIndex, taskCount)"
  1422. src="../assets/icon/thirdToolList/ask.png"
  1423. alt
  1424. />
  1425. <div style="margin: 5px 0">问卷调查</div>
  1426. </div>
  1427. <div v-if="tooC == 45">
  1428. <img
  1429. @click="addTools(tooC, toolIndex, taskCount)"
  1430. src="../assets/icon/thirdToolList/choose.png"
  1431. alt
  1432. />
  1433. <div style="margin: 5px 0">选择题</div>
  1434. </div>
  1435. <!-- <div v-if="tooC == 5">
  1436. <img
  1437. @click="addTools(tooC, toolIndex, taskCount)"
  1438. src="../assets/icon/thirdToolList/score.png"
  1439. alt
  1440. />
  1441. <div style="margin: 5px 0">量规评分</div>
  1442. </div> -->
  1443. <div v-if="tooC == 10">
  1444. <img
  1445. @click="addTools(tooC, toolIndex, taskCount)"
  1446. src="../assets/icon/thirdToolList/time.png"
  1447. alt
  1448. />
  1449. <div style="margin: 5px 0">倒计时</div>
  1450. </div>
  1451. <div v-if="tooC == 15">
  1452. <img
  1453. @click="addTools(tooC, toolIndex, taskCount)"
  1454. src="../assets/icon/thirdToolList/answer.png"
  1455. alt
  1456. />
  1457. <div style="margin: 5px 0">问答工具</div>
  1458. </div>
  1459. <div v-if="tooC == 26">
  1460. <img
  1461. @click="addTools(tooC, toolIndex, taskCount)"
  1462. src="../assets/icon/thirdToolList/courseDesign.png"
  1463. alt
  1464. />
  1465. <div style="margin: 5px 0">课程设计</div>
  1466. </div>
  1467. <div v-if="tooC == 18">
  1468. <img
  1469. @click="addTools(tooC, toolIndex, taskCount)"
  1470. src="../assets/icon/thirdToolList/trainPlatform.png"
  1471. alt
  1472. />
  1473. <div style="margin: 5px 0">训练服务器</div>
  1474. </div>
  1475. <div v-if="tooC == 16">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../assets/icon/thirdToolList/work.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">作业提交</div>
  1482. </div>
  1483. <div v-if="tooC == 50">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../assets/icon/thirdToolList/plwork.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">批量上传</div>
  1490. </div>
  1491. <div v-if="tooC == 21">
  1492. <img
  1493. @click="addTools(tooC, toolIndex, taskCount)"
  1494. src="../assets/icon/fourthToolList/program.png"
  1495. alt
  1496. />
  1497. <div style="margin: 5px 0">编程平台</div>
  1498. </div>
  1499. <div v-if="tooC == 22">
  1500. <img
  1501. @click="addTools(tooC, toolIndex, taskCount)"
  1502. src="../assets/icon/fourthToolList/program.png"
  1503. alt
  1504. />
  1505. <div style="margin: 5px 0">AI体验</div>
  1506. </div>
  1507. <div v-if="tooC == 23">
  1508. <img
  1509. @click="addTools(tooC, toolIndex, taskCount)"
  1510. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1511. alt
  1512. />
  1513. <div style="margin: 5px 0">Python</div>
  1514. </div>
  1515. <div v-if="tooC == 24">
  1516. <img
  1517. @click="addTools(tooC, toolIndex, taskCount)"
  1518. src="../assets/icon/fourthToolList/AIprogram.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">AI平台</div>
  1522. </div>
  1523. <div v-if="tooC == 25">
  1524. <img
  1525. @click="addTools(tooC, toolIndex, taskCount)"
  1526. src="../assets/icon/thirdToolList/evalua.png"
  1527. alt
  1528. />
  1529. <div style="margin: 5px 0">目标管理</div>
  1530. </div>
  1531. <div v-if="tooC == 31">
  1532. <img
  1533. @click="addTools(tooC, toolIndex, taskCount)"
  1534. src="../assets/icon/secondToolList/networkPanel.png"
  1535. alt
  1536. />
  1537. <div style="margin: 5px 0">数学画板</div>
  1538. </div>
  1539. <div v-if="tooC == 28">
  1540. <img
  1541. @click="addTools(tooC, toolIndex, taskCount)"
  1542. src="../assets/icon/secondToolList/translation.png"
  1543. alt
  1544. />
  1545. <div style="margin: 5px 0">翻译</div>
  1546. </div>
  1547. <div v-if="tooC == 37">
  1548. <img
  1549. @click="addTools(tooC, toolIndex, taskCount)"
  1550. src="../assets/icon/secondToolList/mohe.png"
  1551. alt
  1552. />
  1553. <div style="margin: 5px 0">魔盒识字</div>
  1554. </div>
  1555. <div v-if="tooC == 38">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../assets/icon/secondToolList/24game.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">24点</div>
  1562. </div>
  1563. <div v-if="tooC == 39">
  1564. <img
  1565. @click="addTools(tooC, toolIndex, taskCount)"
  1566. src="../assets/icon/secondToolList/GeoGebra.png"
  1567. alt
  1568. />
  1569. <div style="margin: 5px 0">GeoGebra</div>
  1570. </div>
  1571. <div v-if="tooC == 32">
  1572. <img
  1573. @click="addTools(tooC, toolIndex, taskCount)"
  1574. src="../assets/icon/thirdToolList/code.png"
  1575. alt
  1576. />
  1577. <div style="margin: 5px 0">源码编辑</div>
  1578. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1579. style="position: absolute;left: 110px;bottom: 30px;">
  1580. 上传文件
  1581. <input type="file" accept="*" style="display: none"
  1582. @change="beforeUpload1($event, 7, toolIndex)" />
  1583. </div> -->
  1584. </div>
  1585. <div v-if="tooC == 40">
  1586. <img
  1587. @click="addTools(tooC, toolIndex, taskCount)"
  1588. src="../assets/icon/secondToolList/eval.png"
  1589. alt
  1590. />
  1591. <div style="margin: 5px 0">个人评价</div>
  1592. </div>
  1593. <div v-if="tooC == 41">
  1594. <img
  1595. @click="addTools(tooC, toolIndex, taskCount)"
  1596. src="../assets/icon/thirdToolList/select.png"
  1597. alt
  1598. />
  1599. <div style="margin: 5px 0">选择填空</div>
  1600. </div>
  1601. <div v-if="tooC == 44">
  1602. <img
  1603. @click="addTools(tooC, toolIndex, taskCount)"
  1604. src="../assets/icon/thirdToolList/hanClass.png"
  1605. alt
  1606. />
  1607. <div style="margin: 5px 0">汉字宫</div>
  1608. </div>
  1609. <div v-if="tooC == 47">
  1610. <img
  1611. @click="addTools(tooC, toolIndex, taskCount)"
  1612. src="../assets/icon/fourthToolList/conSentences.png"
  1613. alt
  1614. />
  1615. <div style="margin: 5px 0">连词成句</div>
  1616. </div>
  1617. <div v-if="tooC == 48">
  1618. <img
  1619. @click="addTools(tooC, toolIndex, taskCount)"
  1620. src="../assets/icon/fourthToolList/table.png"
  1621. alt
  1622. />
  1623. <div style="margin: 5px 0">表格</div>
  1624. </div>
  1625. <div v-if="tooC == 52">
  1626. <img
  1627. @click="addTools(tooC, toolIndex, taskCount)"
  1628. src="../assets/icon/fourthToolList/text.png"
  1629. alt
  1630. />
  1631. <div style="margin: 5px 0">文档</div>
  1632. </div>
  1633. <div v-if="tooC == 49">
  1634. <img
  1635. @click="addTools(tooC, toolIndex, taskCount)"
  1636. src="../assets/icon/fourthToolList/group.png"
  1637. alt
  1638. />
  1639. <div style="margin: 5px 0">学生分组</div>
  1640. </div>
  1641. <div v-if="tooC == 57">
  1642. <img
  1643. @click="addTools(tooC, toolIndex, taskCount)"
  1644. src="../assets/icon/fourthToolList/cocopi.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">CocoPi</div>
  1648. </div>
  1649. <div v-if="tooC == 58">
  1650. <img
  1651. @click="addTools(tooC, toolIndex, taskCount)"
  1652. src="../assets/icon/fourthToolList/car.png"
  1653. alt
  1654. />
  1655. <div style="margin: 5px 0">模拟驾驶</div>
  1656. </div>
  1657. <div v-if="tooC == 59">
  1658. <img
  1659. @click="addTools(tooC, toolIndex, taskCount)"
  1660. src="../assets/icon/fourthToolList/lineSearch.png"
  1661. alt
  1662. />
  1663. <div style="margin: 5px 0">路径搜索</div>
  1664. </div>
  1665. <div v-if="tooC == 60">
  1666. <img
  1667. @click="addTools(tooC, toolIndex, taskCount)"
  1668. src="../assets/icon/fourthToolList/deepLearning.png"
  1669. alt
  1670. />
  1671. <div style="margin: 5px 0">深度学习</div>
  1672. </div>
  1673. <div v-if="tooC == 61">
  1674. <img
  1675. @click="addTools(tooC, toolIndex, taskCount)"
  1676. src="../assets/icon/fourthToolList/allHistory.png"
  1677. alt
  1678. />
  1679. <div style="margin: 5px 0">全历史</div>
  1680. </div>
  1681. <div v-if="tooC == 62">
  1682. <img
  1683. @click="addTools(tooC, toolIndex, taskCount)"
  1684. src="../assets/icon/fourthToolList/interVideo.png"
  1685. alt
  1686. />
  1687. <div style="margin: 5px 0">交互视频</div>
  1688. </div>
  1689. <div v-if="tooC == 63">
  1690. <img
  1691. @click="addTools(tooC, toolIndex, taskCount)"
  1692. src="../assets/icon/fourthToolList/Wood.png"
  1693. alt
  1694. />
  1695. <div style="margin: 5px 0">海龟编程</div>
  1696. </div>
  1697. </div>
  1698. </div>
  1699. </div>
  1700. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1701. <!-- <div class="toolTitle">工具描述</div> -->
  1702. <div v-html="contentConvent(tool.toolDetail)"></div>
  1703. </div>
  1704. <el-button
  1705. type="primary"
  1706. v-if="tool.tool[0] == 32"
  1707. style="
  1708. position: absolute;
  1709. right: 30px;
  1710. transform: translateY(-130%);
  1711. "
  1712. @click="addImg($event)"
  1713. >上传作业<input
  1714. type="file"
  1715. accept="*"
  1716. style="display: none"
  1717. @change="beforeUpload1($event, 7, toolIndex)"
  1718. /></el-button>
  1719. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1720. position: absolute;
  1721. right: 30px;
  1722. transform: translateY(-130%);
  1723. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1724. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1725. </div>
  1726. <div
  1727. v-if="
  1728. tType &&
  1729. tType == 2 &&
  1730. !sIsOpen &&
  1731. tool.tool.indexOf(16) != -1
  1732. "
  1733. class="worksBox"
  1734. >
  1735. <div
  1736. class="zuoyeYulan"
  1737. v-if="workStudent[toolIndex].length > 0"
  1738. >
  1739. <span>作业预览</span>
  1740. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1741. </div>
  1742. <div
  1743. class="worksDetailBox"
  1744. v-if="workStudent[toolIndex].length > 0"
  1745. >
  1746. <div
  1747. class="works"
  1748. style="
  1749. width: 200px;
  1750. height: 140px;
  1751. margin: 10px 10px 10px 0;
  1752. box-shadow: 0 0 6px 1px #dfdada;
  1753. "
  1754. v-for="(w, wIndex) in workStudent[toolIndex]"
  1755. :key="wIndex"
  1756. >
  1757. <div class="workImg" v-if="w.type == 0">
  1758. <img
  1759. :src="w.works"
  1760. @click="previewImg(w.works)"
  1761. alt
  1762. />
  1763. <div
  1764. class="answerScore"
  1765. v-if="w.score"
  1766. @click.stop="openScore(w)"
  1767. :class="{
  1768. rightW:
  1769. w.userid == userid || tType == 1 || tType == 4,
  1770. }"
  1771. >
  1772. {{ JSON.parse(w.score).wScore }}分
  1773. </div>
  1774. <div
  1775. class="answerScore"
  1776. @click.stop="openScore(w)"
  1777. v-else-if="courseDetail.userid == userid"
  1778. :class="{
  1779. rightW:
  1780. w.userid == userid || tType == 1 || tType == 4,
  1781. }"
  1782. >
  1783. 评分
  1784. </div>
  1785. <img
  1786. class="deleteImg"
  1787. src="../assets/deleteworks.png"
  1788. v-if="
  1789. w.userid == userid || tType == 1 || tType == 4
  1790. "
  1791. @click.stop="deleteWorks(w.wid)"
  1792. alt
  1793. />
  1794. </div>
  1795. <div class="workImg" v-if="w.type == 1">
  1796. <img :src="word" @click="openFile(w.works)" alt />
  1797. <div
  1798. class="answerScore"
  1799. v-if="w.score"
  1800. @click.stop="openScore(w)"
  1801. :class="{
  1802. rightW:
  1803. w.userid == userid || tType == 1 || tType == 4,
  1804. }"
  1805. >
  1806. {{ JSON.parse(w.score).wScore }}分
  1807. </div>
  1808. <div
  1809. class="answerScore"
  1810. @click.stop="openScore(w)"
  1811. v-else-if="courseDetail.userid == userid"
  1812. :class="{
  1813. rightW:
  1814. w.userid == userid || tType == 1 || tType == 4,
  1815. }"
  1816. >
  1817. 评分
  1818. </div>
  1819. <img
  1820. class="deleteImg"
  1821. src="../assets/deleteworks.png"
  1822. v-if="
  1823. w.userid == userid || tType == 1 || tType == 4
  1824. "
  1825. @click.stop="deleteWorks(w.wid)"
  1826. alt
  1827. />
  1828. </div>
  1829. <div class="workImg" v-if="w.type == 3">
  1830. <img
  1831. style="cursor: pointer"
  1832. :src="video"
  1833. @click="openVideo(w)"
  1834. alt
  1835. />
  1836. <div
  1837. class="answerScore"
  1838. v-if="w.score"
  1839. @click.stop="openScore(w)"
  1840. :class="{
  1841. rightW:
  1842. w.userid == userid || tType == 1 || tType == 4,
  1843. }"
  1844. >
  1845. {{ JSON.parse(w.score).wScore }}分
  1846. </div>
  1847. <div
  1848. class="answerScore"
  1849. @click.stop="openScore(w)"
  1850. v-else-if="courseDetail.userid == userid"
  1851. :class="{
  1852. rightW:
  1853. w.userid == userid || tType == 1 || tType == 4,
  1854. }"
  1855. >
  1856. 评分
  1857. </div>
  1858. <img
  1859. class="deleteImg"
  1860. src="../assets/deleteworks.png"
  1861. v-if="
  1862. w.userid == userid || tType == 1 || tType == 4
  1863. "
  1864. @click.stop="deleteWorks(w.wid)"
  1865. alt
  1866. />
  1867. </div>
  1868. <div class="workImg" v-if="w.type == 12">
  1869. <img
  1870. style="cursor: pointer"
  1871. :src="word2"
  1872. @click="downloadFile(w.works)"
  1873. alt
  1874. />
  1875. <div
  1876. class="answerScore"
  1877. v-if="w.score"
  1878. @click.stop="openScore(w)"
  1879. :class="{
  1880. rightW:
  1881. w.userid == userid || tType == 1 || tType == 4,
  1882. }"
  1883. >
  1884. {{ JSON.parse(w.score).wScore }}分
  1885. </div>
  1886. <div
  1887. class="answerScore"
  1888. @click.stop="openScore(w)"
  1889. v-else-if="courseDetail.userid == userid"
  1890. :class="{
  1891. rightW:
  1892. w.userid == userid || tType == 1 || tType == 4,
  1893. }"
  1894. >
  1895. 评分
  1896. </div>
  1897. <img
  1898. class="deleteImg"
  1899. src="../assets/deleteworks.png"
  1900. v-if="
  1901. w.userid == userid || tType == 1 || tType == 4
  1902. "
  1903. @click.stop="deleteWorks(w.wid)"
  1904. alt
  1905. />
  1906. </div>
  1907. <div class="worksName">
  1908. <div>{{ w.sName }}</div>
  1909. </div>
  1910. </div>
  1911. </div>
  1912. </div>
  1913. <div
  1914. v-if="
  1915. tType &&
  1916. tType == 2 &&
  1917. !sIsOpen &&
  1918. tool.tool.indexOf(32) != -1
  1919. "
  1920. class="worksBox"
  1921. >
  1922. <div
  1923. class="zuoyeYulan"
  1924. v-if="workStudent[toolIndex].length > 0"
  1925. >
  1926. <span>作业预览</span>
  1927. </div>
  1928. <div
  1929. class="worksDetailBox"
  1930. v-if="workStudent[toolIndex].length > 0"
  1931. >
  1932. <div
  1933. class="works"
  1934. style="
  1935. width: 200px;
  1936. height: 140px;
  1937. margin: 10px 10px 10px 0;
  1938. box-shadow: 0 0 6px 1px #dfdada;
  1939. "
  1940. v-for="(w, wIndex) in workStudent[toolIndex]"
  1941. :key="wIndex"
  1942. >
  1943. <div class="workImg">
  1944. <img
  1945. :src="word2"
  1946. @click="downloadFile(w.works)"
  1947. alt
  1948. />
  1949. <div
  1950. class="answerScore"
  1951. v-if="w.score"
  1952. @click.stop="openScore(w)"
  1953. :class="{
  1954. rightW:
  1955. w.userid == userid || tType == 1 || tType == 4,
  1956. }"
  1957. >
  1958. {{ JSON.parse(w.score).wScore }}分
  1959. </div>
  1960. <div
  1961. class="answerScore"
  1962. @click.stop="openScore(w)"
  1963. v-else-if="courseDetail.userid == userid"
  1964. :class="{
  1965. rightW:
  1966. w.userid == userid || tType == 1 || tType == 4,
  1967. }"
  1968. >
  1969. 评分
  1970. </div>
  1971. <img
  1972. class="deleteImg"
  1973. src="../assets/deleteworks.png"
  1974. v-if="
  1975. w.userid == userid || tType == 1 || tType == 4
  1976. "
  1977. @click.stop="deleteWorks(w.wid)"
  1978. alt
  1979. />
  1980. </div>
  1981. <div class="worksName">
  1982. <div>{{ w.sName }}</div>
  1983. </div>
  1984. </div>
  1985. </div>
  1986. </div>
  1987. <div
  1988. v-if="
  1989. tType &&
  1990. tType == 2 &&
  1991. !sIsOpen &&
  1992. tool.tool.indexOf(57) != -1
  1993. "
  1994. class="worksBox"
  1995. >
  1996. <div
  1997. class="zuoyeYulan"
  1998. v-if="workStudent[toolIndex].length > 0"
  1999. >
  2000. <span>作业预览</span>
  2001. </div>
  2002. <div
  2003. class="worksDetailBox"
  2004. v-if="workStudent[toolIndex].length > 0"
  2005. >
  2006. <div
  2007. class="works"
  2008. style="
  2009. width: 200px;
  2010. height: 140px;
  2011. margin: 10px 10px 10px 0;
  2012. box-shadow: 0 0 6px 1px #dfdada;
  2013. "
  2014. v-for="(w, wIndex) in workStudent[toolIndex]"
  2015. :key="wIndex"
  2016. >
  2017. <div class="workImg">
  2018. <img
  2019. :src="word2"
  2020. @click="downloadFile(w.works)"
  2021. v-if="w.type == 12"
  2022. alt
  2023. />
  2024. <img
  2025. :src="word2"
  2026. @click="
  2027. openCocoPi(57, toolIndex, w.userid, w.sName)
  2028. "
  2029. v-else-if="w.type == 15"
  2030. alt
  2031. />
  2032. <div
  2033. class="answerScore"
  2034. v-if="w.score"
  2035. @click.stop="openScore(w)"
  2036. :class="{
  2037. rightW:
  2038. w.userid == userid || tType == 1 || tType == 4,
  2039. }"
  2040. >
  2041. {{ JSON.parse(w.score).wScore }}分
  2042. </div>
  2043. <div
  2044. class="answerScore"
  2045. @click.stop="openScore(w)"
  2046. v-else-if="courseDetail.userid == userid"
  2047. :class="{
  2048. rightW:
  2049. w.userid == userid || tType == 1 || tType == 4,
  2050. }"
  2051. >
  2052. 评分
  2053. </div>
  2054. <img
  2055. class="deleteImg"
  2056. src="../assets/deleteworks.png"
  2057. v-if="
  2058. w.userid == userid || tType == 1 || tType == 4
  2059. "
  2060. @click.stop="deleteWorks(w.wid)"
  2061. alt
  2062. />
  2063. </div>
  2064. <div class="worksName">
  2065. <div>{{ w.sName }}</div>
  2066. </div>
  2067. </div>
  2068. </div>
  2069. </div>
  2070. <div
  2071. v-if="
  2072. tType &&
  2073. tType == 2 &&
  2074. !sIsOpen &&
  2075. tool.tool.indexOf(4) != -1
  2076. "
  2077. class="worksBox"
  2078. >
  2079. <div
  2080. class="zuoyeYulan"
  2081. v-if="workStudent[toolIndex].length > 0"
  2082. >
  2083. <span>作业预览</span>
  2084. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2085. </div>
  2086. <div
  2087. class="worksDetailBox"
  2088. v-if="workStudent[toolIndex].length > 0"
  2089. >
  2090. <div
  2091. class="isWorksName"
  2092. v-for="(w, wIndex) in workStudent[toolIndex]"
  2093. :key="wIndex"
  2094. @click="
  2095. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2096. "
  2097. >
  2098. {{ w.sName }}
  2099. <img
  2100. class="deleteImg deleteImg2"
  2101. src="../assets/deleteworks.png"
  2102. v-if="w.userid == userid || tType == 1 || tType == 4"
  2103. @click.stop="deleteWorks(w.wid)"
  2104. alt
  2105. />
  2106. </div>
  2107. <!-- <div
  2108. class="works"
  2109. style="
  2110. width: 200px;
  2111. height: 140px;
  2112. border-radius: 10px;
  2113. box-shadow: 0 0 6px 1px #dfdada;
  2114. overflow: hidden;
  2115. "
  2116. v-for="(w, wIndex) in workStudent[toolIndex]"
  2117. :key="wIndex"
  2118. >
  2119. <div class="workImg">
  2120. <img
  2121. src="../assets/icon/works/noImg.png"
  2122. @click="
  2123. openTools(
  2124. 4,
  2125. toolIndex,
  2126. taskCount,
  2127. w.works,
  2128. w.sName
  2129. )
  2130. "
  2131. alt
  2132. />
  2133. </div>
  2134. <div class="worksName">
  2135. <div>{{ w.sName }}</div>
  2136. <div>{{ w.time }}</div>
  2137. </div>
  2138. </div> -->
  2139. </div>
  2140. </div>
  2141. <div
  2142. v-if="
  2143. tType &&
  2144. tType == 2 &&
  2145. !sIsOpen &&
  2146. tool.tool.indexOf(45) != -1
  2147. "
  2148. class="worksBox"
  2149. >
  2150. <div
  2151. class="zuoyeYulan"
  2152. v-if="workStudent[toolIndex].length > 0"
  2153. >
  2154. <span>作业预览</span>
  2155. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2156. </div>
  2157. <div
  2158. class="worksDetailBox"
  2159. v-if="workStudent[toolIndex].length > 0"
  2160. >
  2161. <div
  2162. class="isWorksName"
  2163. v-for="(w, wIndex) in workStudent[toolIndex]"
  2164. :key="wIndex"
  2165. @click="
  2166. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2167. "
  2168. >
  2169. {{ w.sName }}
  2170. <img
  2171. class="deleteImg deleteImg2"
  2172. src="../assets/deleteworks.png"
  2173. v-if="w.userid == userid || tType == 1 || tType == 4"
  2174. @click.stop="deleteWorks(w.wid)"
  2175. alt
  2176. />
  2177. </div>
  2178. </div>
  2179. </div>
  2180. <div
  2181. v-if="
  2182. tType &&
  2183. tType == 2 &&
  2184. !sIsOpen &&
  2185. tool.tool.indexOf(15) != -1
  2186. "
  2187. class="worksBox"
  2188. >
  2189. <div
  2190. class="zuoyeYulan"
  2191. v-if="workStudent[toolIndex].length > 0"
  2192. >
  2193. <span>作业预览</span>
  2194. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2195. </div>
  2196. <div
  2197. class="worksDetailBox"
  2198. v-if="workStudent[toolIndex].length > 0"
  2199. >
  2200. <div
  2201. class="works"
  2202. v-for="(w, wIndex) in workStudent[toolIndex]"
  2203. :key="wIndex"
  2204. >
  2205. <div class="workImg">
  2206. <!-- <img
  2207. src="../assets/icon/works/noImg.png"
  2208. @click="openTools(15, toolIndex, taskCount, w.works)"
  2209. alt=""
  2210. />-->
  2211. <div class="answerBg">
  2212. <!-- <div>{{ w.sName }}</div> -->
  2213. <el-tooltip
  2214. class="item"
  2215. effect="light"
  2216. :content="JSON.parse(w.works)[0].answer"
  2217. placement="top"
  2218. >
  2219. <div class="answerContent">
  2220. {{ JSON.parse(w.works)[0].answer }}
  2221. </div>
  2222. </el-tooltip>
  2223. <div
  2224. class="answerScore"
  2225. v-if="w.score"
  2226. @click.stop="openScore(w)"
  2227. :class="{
  2228. rightW:
  2229. w.userid == userid ||
  2230. tType == 1 ||
  2231. tType == 4,
  2232. }"
  2233. >
  2234. {{ JSON.parse(w.score).wScore }}分
  2235. </div>
  2236. <div
  2237. class="answerScore"
  2238. @click.stop="openScore(w)"
  2239. v-else-if="courseDetail.userid == userid"
  2240. :class="{
  2241. rightW:
  2242. w.userid == userid ||
  2243. tType == 1 ||
  2244. tType == 4,
  2245. }"
  2246. >
  2247. 评分
  2248. </div>
  2249. <img
  2250. class="deleteImg"
  2251. src="../assets/deleteworks.png"
  2252. v-if="
  2253. w.userid == userid || tType == 1 || tType == 4
  2254. "
  2255. @click.stop="deleteWorks(w.wid)"
  2256. alt
  2257. />
  2258. </div>
  2259. <div class="comment">
  2260. <div class="worksName">
  2261. <div>{{ w.sName }}</div>
  2262. </div>
  2263. </div>
  2264. </div>
  2265. </div>
  2266. </div>
  2267. </div>
  2268. <div
  2269. v-if="
  2270. tType &&
  2271. tType == 2 &&
  2272. !sIsOpen &&
  2273. tool.tool.indexOf(1) != -1
  2274. "
  2275. class="worksBox"
  2276. >
  2277. <div
  2278. class="zuoyeYulan"
  2279. v-if="workStudent[toolIndex].length > 0"
  2280. >
  2281. <span>作业预览</span>
  2282. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2283. </div>
  2284. <div
  2285. class="worksDetailBox"
  2286. v-if="workStudent[toolIndex].length > 0"
  2287. >
  2288. <div
  2289. class="works"
  2290. style="
  2291. width: 200px;
  2292. height: 140px;
  2293. margin: 10px 10px 10px 0;
  2294. box-shadow: 0 0 6px 1px #dfdada;
  2295. "
  2296. v-for="(w, wIndex) in workStudent[toolIndex]"
  2297. :key="wIndex"
  2298. >
  2299. <div class="workImg">
  2300. <img
  2301. :src="w.works"
  2302. @click="previewImg(w.works)"
  2303. alt
  2304. />
  2305. <div
  2306. class="answerScore"
  2307. v-if="w.score"
  2308. @click.stop="openScore(w)"
  2309. :class="{
  2310. rightW:
  2311. w.userid == userid || tType == 1 || tType == 4,
  2312. }"
  2313. >
  2314. {{ JSON.parse(w.score).wScore }}分
  2315. </div>
  2316. <div
  2317. class="answerScore"
  2318. @click.stop="openScore(w)"
  2319. v-else-if="courseDetail.userid == userid"
  2320. :class="{
  2321. rightW:
  2322. w.userid == userid || tType == 1 || tType == 4,
  2323. }"
  2324. >
  2325. 评分
  2326. </div>
  2327. <img
  2328. class="deleteImg"
  2329. src="../assets/deleteworks.png"
  2330. v-if="
  2331. w.userid == userid || tType == 1 || tType == 4
  2332. "
  2333. @click.stop="deleteWorks(w.wid)"
  2334. alt
  2335. />
  2336. </div>
  2337. <div class="worksName">
  2338. <div>{{ w.sName }}</div>
  2339. </div>
  2340. </div>
  2341. </div>
  2342. </div>
  2343. <div
  2344. v-if="
  2345. tType &&
  2346. tType == 2 &&
  2347. !sIsOpen &&
  2348. tool.tool.indexOf(3) != -1
  2349. "
  2350. class="worksBox"
  2351. >
  2352. <div
  2353. class="zuoyeYulan"
  2354. v-if="workStudent[toolIndex].length > 0"
  2355. >
  2356. <span>作业预览</span>
  2357. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2358. </div>
  2359. <div
  2360. class="worksDetailBox"
  2361. v-if="workStudent[toolIndex].length > 0"
  2362. >
  2363. <div
  2364. class="works"
  2365. style="
  2366. width: 200px;
  2367. height: 140px;
  2368. margin: 10px 10px 10px 0;
  2369. box-shadow: 0 0 6px 1px #dfdada;
  2370. "
  2371. v-for="(w, wIndex) in workStudent[toolIndex]"
  2372. :key="wIndex"
  2373. >
  2374. <div class="workImg">
  2375. <img
  2376. :src="w.works"
  2377. @click="previewImg(w.works)"
  2378. alt
  2379. />
  2380. <div
  2381. class="answerScore"
  2382. v-if="w.score"
  2383. @click.stop="openScore(w)"
  2384. :class="{
  2385. rightW:
  2386. w.userid == userid || tType == 1 || tType == 4,
  2387. }"
  2388. >
  2389. {{ JSON.parse(w.score).wScore }}分
  2390. </div>
  2391. <div
  2392. class="answerScore"
  2393. @click.stop="openScore(w)"
  2394. v-else-if="courseDetail.userid == userid"
  2395. :class="{
  2396. rightW:
  2397. w.userid == userid || tType == 1 || tType == 4,
  2398. }"
  2399. >
  2400. 评分
  2401. </div>
  2402. <img
  2403. class="deleteImg"
  2404. src="../assets/deleteworks.png"
  2405. v-if="
  2406. w.userid == userid || tType == 1 || tType == 4
  2407. "
  2408. @click.stop="deleteWorks(w.wid)"
  2409. alt
  2410. />
  2411. </div>
  2412. <div class="worksName">
  2413. <div>{{ w.sName }}</div>
  2414. </div>
  2415. </div>
  2416. </div>
  2417. </div>
  2418. <div
  2419. v-if="
  2420. tType &&
  2421. tType == 2 &&
  2422. !sIsOpen &&
  2423. tool.tool.indexOf(6) != -1
  2424. "
  2425. class="worksBox"
  2426. >
  2427. <div
  2428. class="zuoyeYulan"
  2429. v-if="workStudent[toolIndex].length > 0"
  2430. >
  2431. <span>作业预览</span>
  2432. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2433. </div>
  2434. <div
  2435. class="worksDetailBox"
  2436. v-if="workStudent[toolIndex].length > 0"
  2437. >
  2438. <div
  2439. class="works"
  2440. style="
  2441. width: 200px;
  2442. height: 140px;
  2443. margin: 10px 10px 10px 0;
  2444. box-shadow: 0 0 6px 1px #dfdada;
  2445. "
  2446. v-for="(w, wIndex) in workStudent[toolIndex]"
  2447. :key="wIndex"
  2448. >
  2449. <div class="workImg">
  2450. <img
  2451. :src="w.works"
  2452. @click="previewImg(w.works)"
  2453. alt
  2454. />
  2455. <div
  2456. class="answerScore"
  2457. v-if="w.score"
  2458. @click.stop="openScore(w)"
  2459. :class="{
  2460. rightW:
  2461. w.userid == userid || tType == 1 || tType == 4,
  2462. }"
  2463. >
  2464. {{ JSON.parse(w.score).wScore }}分
  2465. </div>
  2466. <div
  2467. class="answerScore"
  2468. @click.stop="openScore(w)"
  2469. v-else-if="courseDetail.userid == userid"
  2470. :class="{
  2471. rightW:
  2472. w.userid == userid || tType == 1 || tType == 4,
  2473. }"
  2474. >
  2475. 评分
  2476. </div>
  2477. <img
  2478. class="deleteImg"
  2479. src="../assets/deleteworks.png"
  2480. v-if="
  2481. w.userid == userid || tType == 1 || tType == 4
  2482. "
  2483. @click.stop="deleteWorks(w.wid)"
  2484. alt
  2485. />
  2486. </div>
  2487. <div class="worksName">
  2488. <div>{{ w.sName }}</div>
  2489. </div>
  2490. </div>
  2491. </div>
  2492. </div>
  2493. <div
  2494. v-if="
  2495. tType &&
  2496. tType == 2 &&
  2497. !sIsOpen &&
  2498. tool.tool.indexOf(7) != -1
  2499. "
  2500. class="worksBox"
  2501. >
  2502. <div
  2503. class="zuoyeYulan"
  2504. v-if="workStudent[toolIndex].length > 0"
  2505. >
  2506. <span>作业预览</span>
  2507. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2508. </div>
  2509. <div
  2510. class="worksDetailBox"
  2511. v-if="workStudent[toolIndex].length > 0"
  2512. >
  2513. <div
  2514. class="works"
  2515. style="
  2516. width: 200px;
  2517. height: 140px;
  2518. margin: 10px 10px 10px 0;
  2519. box-shadow: 0 0 6px 1px #dfdada;
  2520. "
  2521. v-for="(w, wIndex) in workStudent[toolIndex]"
  2522. :key="wIndex"
  2523. >
  2524. <div class="workImg">
  2525. <img
  2526. :src="w.works"
  2527. @click="previewImg(w.works)"
  2528. alt
  2529. />
  2530. <div
  2531. class="answerScore"
  2532. v-if="w.score"
  2533. @click.stop="openScore(w)"
  2534. :class="{
  2535. rightW:
  2536. w.userid == userid || tType == 1 || tType == 4,
  2537. }"
  2538. >
  2539. {{ JSON.parse(w.score).wScore }}分
  2540. </div>
  2541. <div
  2542. class="answerScore"
  2543. @click.stop="openScore(w)"
  2544. v-else-if="courseDetail.userid == userid"
  2545. :class="{
  2546. rightW:
  2547. w.userid == userid || tType == 1 || tType == 4,
  2548. }"
  2549. >
  2550. 评分
  2551. </div>
  2552. <img
  2553. class="deleteImg"
  2554. src="../assets/deleteworks.png"
  2555. v-if="
  2556. w.userid == userid || tType == 1 || tType == 4
  2557. "
  2558. @click.stop="deleteWorks(w.wid)"
  2559. alt
  2560. />
  2561. </div>
  2562. <div class="worksName">
  2563. <div>{{ w.sName }}</div>
  2564. </div>
  2565. </div>
  2566. </div>
  2567. </div>
  2568. <div
  2569. v-if="
  2570. tType &&
  2571. tType == 2 &&
  2572. !sIsOpen &&
  2573. tool.tool.indexOf(26) != -1
  2574. "
  2575. class="worksBox"
  2576. >
  2577. <div
  2578. class="zuoyeYulan"
  2579. v-if="workStudent[toolIndex].length > 0"
  2580. >
  2581. <span>作业预览</span>
  2582. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2583. </div>
  2584. <div
  2585. class="worksDetailBox"
  2586. v-if="workStudent[toolIndex].length > 0"
  2587. >
  2588. <div
  2589. class="works"
  2590. style="
  2591. width: 200px;
  2592. height: 140px;
  2593. margin: 10px 10px 10px 0;
  2594. box-shadow: 0 0 6px 1px #dfdada;
  2595. "
  2596. v-for="(w, wIndex) in workStudent[toolIndex]"
  2597. :key="wIndex"
  2598. >
  2599. <div class="workImg">
  2600. <img
  2601. :src="w.works"
  2602. @click="previewImg(w.works)"
  2603. alt
  2604. />
  2605. <img
  2606. class="deleteImg"
  2607. src="../assets/deleteworks.png"
  2608. v-if="
  2609. w.userid == userid || tType == 1 || tType == 4
  2610. "
  2611. @click.stop="deleteWorks(w.wid)"
  2612. alt
  2613. />
  2614. </div>
  2615. <div class="worksName">
  2616. <div>{{ w.sName }}</div>
  2617. </div>
  2618. </div>
  2619. </div>
  2620. </div>
  2621. <div
  2622. v-if="
  2623. tType &&
  2624. ((tType == 2 && sIsOpen == true) ||
  2625. tType == 1 ||
  2626. tType == 4) &&
  2627. tool.tool.indexOf(16) != -1
  2628. "
  2629. class="worksBox"
  2630. >
  2631. <div
  2632. class="zuoyeYulan"
  2633. v-if="
  2634. worksStudent.length &&
  2635. worksStudent[toolIndex].length > 0
  2636. "
  2637. >
  2638. <div class="worksTop">
  2639. <div>作业预览</div>
  2640. <div
  2641. class="corOpen"
  2642. @click="contract(toolIndex)"
  2643. v-if="
  2644. worksStudent[toolIndex].length > 6 &&
  2645. isCloseList[toolIndex].isClose == 0
  2646. "
  2647. >
  2648. 收缩
  2649. </div>
  2650. <div
  2651. class="corOpen"
  2652. @click="contract(toolIndex)"
  2653. v-if="isCloseList[toolIndex].isClose == 1"
  2654. >
  2655. 展开
  2656. </div>
  2657. </div>
  2658. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2659. </div>
  2660. <div
  2661. class="group_workBox"
  2662. v-for="(g, gindex) in courseGroup.group"
  2663. :key="gindex"
  2664. >
  2665. <div class="group_box">
  2666. <div class="group_title">
  2667. <el-tooltip
  2668. class="item"
  2669. effect="light"
  2670. :content="g.name"
  2671. placement="top"
  2672. >
  2673. <div class="group_name">{{ g.name }}</div>
  2674. </el-tooltip>
  2675. </div>
  2676. <div
  2677. class="group_work"
  2678. v-if="
  2679. g.works &&
  2680. g.works.length &&
  2681. g.works[toolIndex].length
  2682. "
  2683. >
  2684. <div
  2685. class="works"
  2686. style="
  2687. width: 200px;
  2688. height: 140px;
  2689. margin: 10px 10px 10px 0;
  2690. border-radius: 15px;
  2691. box-shadow: 0 0 6px 1px #dfdada;
  2692. "
  2693. v-for="(w, wIndex) in g.works[toolIndex]"
  2694. :key="wIndex"
  2695. :class="w.type == 1 ? 'isTypeOne' : ''"
  2696. >
  2697. <div class="workImg" v-if="w.type == 0">
  2698. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2699. <img
  2700. :src="w.works"
  2701. @click="previewImg(w.works)"
  2702. alt
  2703. />
  2704. <div
  2705. class="answerScore"
  2706. v-if="w.score"
  2707. @click.stop="openScore(w)"
  2708. :class="{
  2709. rightW:
  2710. w.userid == userid ||
  2711. tType == 1 ||
  2712. tType == 4 ||
  2713. w.ateacher == userid,
  2714. }"
  2715. >
  2716. {{ JSON.parse(w.score).wScore }}分
  2717. </div>
  2718. <div
  2719. class="answerScore"
  2720. @click.stop="openScore(w)"
  2721. v-else-if="courseDetail.userid == userid"
  2722. :class="{
  2723. rightW:
  2724. w.userid == userid ||
  2725. tType == 1 ||
  2726. tType == 4 ||
  2727. w.ateacher == userid,
  2728. }"
  2729. >
  2730. 评分
  2731. </div>
  2732. <img
  2733. class="deleteImg"
  2734. src="../assets/deleteworks.png"
  2735. v-if="
  2736. w.userid == userid || tType == 1 || tType == 4
  2737. "
  2738. @click.stop="deleteWorks(w.wid)"
  2739. alt
  2740. />
  2741. </div>
  2742. <div class="workImg" v-if="w.type == 1">
  2743. <img :src="word" @click="openFile(w.works)" alt />
  2744. <!-- @click="openFile(w.works)" -->
  2745. <div
  2746. class="answerScore"
  2747. v-if="w.score"
  2748. @click.stop="openScore(w)"
  2749. :class="{
  2750. rightW:
  2751. w.userid == userid ||
  2752. tType == 1 ||
  2753. tType == 4 ||
  2754. w.ateacher == userid,
  2755. }"
  2756. >
  2757. {{ JSON.parse(w.score).wScore }}分
  2758. </div>
  2759. <div
  2760. class="answerScore"
  2761. @click.stop="openScore(w)"
  2762. v-else-if="courseDetail.userid == userid"
  2763. :class="{
  2764. rightW:
  2765. w.userid == userid ||
  2766. tType == 1 ||
  2767. tType == 4 ||
  2768. w.ateacher == userid,
  2769. }"
  2770. >
  2771. 评分
  2772. </div>
  2773. <img
  2774. class="deleteImg"
  2775. src="../assets/deleteworks.png"
  2776. v-if="
  2777. w.userid == userid || tType == 1 || tType == 4
  2778. "
  2779. @click.stop="deleteWorks(w.wid)"
  2780. alt
  2781. />
  2782. </div>
  2783. <div class="workImg" v-if="w.type == 3">
  2784. <img
  2785. style="cursor: pointer"
  2786. :src="video"
  2787. @click="openVideo(w)"
  2788. alt
  2789. />
  2790. <!-- @click="openVideo(w.works)" -->
  2791. <div
  2792. class="answerScore"
  2793. v-if="w.score"
  2794. @click.stop="openScore(w)"
  2795. :class="{
  2796. rightW:
  2797. w.userid == userid ||
  2798. tType == 1 ||
  2799. tType == 4 ||
  2800. w.ateacher == userid,
  2801. }"
  2802. >
  2803. {{ JSON.parse(w.score).wScore }}分
  2804. </div>
  2805. <div
  2806. class="answerScore"
  2807. @click.stop="openScore(w)"
  2808. v-else-if="courseDetail.userid == userid"
  2809. :class="{
  2810. rightW:
  2811. w.userid == userid ||
  2812. tType == 1 ||
  2813. tType == 4 ||
  2814. w.ateacher == userid,
  2815. }"
  2816. >
  2817. 评分
  2818. </div>
  2819. <img
  2820. class="deleteImg"
  2821. src="../assets/deleteworks.png"
  2822. v-if="
  2823. w.userid == userid || tType == 1 || tType == 4
  2824. "
  2825. @click.stop="deleteWorks(w.wid)"
  2826. alt
  2827. />
  2828. </div>
  2829. <div class="workImg" v-if="w.type == 12">
  2830. <img
  2831. style="cursor: pointer"
  2832. :src="word2"
  2833. @click="downloadFile(w.works)"
  2834. alt
  2835. />
  2836. <!-- @click="openVideo(w.works)" -->
  2837. <div
  2838. class="answerScore"
  2839. v-if="w.score"
  2840. @click.stop="openScore(w)"
  2841. :class="{
  2842. rightW:
  2843. w.userid == userid ||
  2844. tType == 1 ||
  2845. tType == 4 ||
  2846. w.ateacher == userid,
  2847. }"
  2848. >
  2849. {{ JSON.parse(w.score).wScore }}分
  2850. </div>
  2851. <div
  2852. class="answerScore"
  2853. @click.stop="openScore(w)"
  2854. v-else-if="courseDetail.userid == userid"
  2855. :class="{
  2856. rightW:
  2857. w.userid == userid ||
  2858. tType == 1 ||
  2859. tType == 4 ||
  2860. w.ateacher == userid,
  2861. }"
  2862. >
  2863. 评分
  2864. </div>
  2865. <img
  2866. class="deleteImg"
  2867. src="../assets/deleteworks.png"
  2868. v-if="
  2869. w.userid == userid || tType == 1 || tType == 4
  2870. "
  2871. @click.stop="deleteWorks(w.wid)"
  2872. alt
  2873. />
  2874. </div>
  2875. <div class="comment" style="min-width: 200px">
  2876. <div class="worksName">
  2877. <div>{{ w.sName }}</div>
  2878. </div>
  2879. <div class="commentList">
  2880. <div class="commentList">
  2881. <div
  2882. class="commentImg"
  2883. @click="
  2884. isLikes(w.wid, userid, 1, null, w.isLikes)
  2885. "
  2886. >
  2887. <img
  2888. :src="w.isLikes == true ? likes : noLikes"
  2889. alt=""
  2890. />
  2891. </div>
  2892. <div>{{ w.likesCount }}</div>
  2893. </div>
  2894. <div
  2895. class="commentList"
  2896. style="margin-right: 15px"
  2897. >
  2898. <div
  2899. class="commentImg"
  2900. @click="
  2901. commentOther(
  2902. w,
  2903. toolIndex,
  2904. wIndex,
  2905. null,
  2906. g.id
  2907. )
  2908. "
  2909. >
  2910. <img
  2911. src="../assets/icon/comment/comment.png"
  2912. alt=""
  2913. />
  2914. </div>
  2915. <div>{{ w.commentCount }}</div>
  2916. </div>
  2917. </div>
  2918. </div>
  2919. </div>
  2920. </div>
  2921. <div class="group_work" v-else>暂无提交作业</div>
  2922. </div>
  2923. </div>
  2924. <div
  2925. class="worksDetailBox"
  2926. v-if="
  2927. worksStudent.length &&
  2928. worksStudent[toolIndex].length > 0
  2929. "
  2930. >
  2931. <div
  2932. class="works"
  2933. style="
  2934. width: 200px;
  2935. height: 140px;
  2936. margin: 10px 10px 10px 0;
  2937. border-radius: 15px;
  2938. box-shadow: 0 0 6px 1px #dfdada;
  2939. "
  2940. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2941. 0
  2942. ? worksStudent[toolIndex]
  2943. : worksStudent[toolIndex].slice(0, 6)"
  2944. :key="wIndex"
  2945. :class="w.type == 1 ? 'isTypeOne' : ''"
  2946. >
  2947. <div class="workImg" v-if="w.type == 0">
  2948. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2949. <img
  2950. :src="w.works"
  2951. @click="previewImg(w.works)"
  2952. alt
  2953. />
  2954. <div
  2955. class="answerScore"
  2956. v-if="w.score"
  2957. @click.stop="openScore(w)"
  2958. :class="{
  2959. rightW:
  2960. w.userid == userid ||
  2961. tType == 1 ||
  2962. tType == 4 ||
  2963. w.ateacher == userid,
  2964. }"
  2965. >
  2966. {{ JSON.parse(w.score).wScore }}分
  2967. </div>
  2968. <div
  2969. class="answerScore"
  2970. @click.stop="openScore(w)"
  2971. v-else-if="courseDetail.userid == userid"
  2972. :class="{
  2973. rightW:
  2974. w.userid == userid ||
  2975. tType == 1 ||
  2976. tType == 4 ||
  2977. w.ateacher == userid,
  2978. }"
  2979. >
  2980. 评分
  2981. </div>
  2982. <img
  2983. class="deleteImg"
  2984. src="../assets/deleteworks.png"
  2985. v-if="
  2986. w.userid == userid || tType == 1 || tType == 4
  2987. "
  2988. @click.stop="deleteWorks(w.wid)"
  2989. alt
  2990. />
  2991. </div>
  2992. <div class="workImg" v-if="w.type == 1">
  2993. <img :src="word" @click="openFile(w.works)" alt />
  2994. <!-- @click="openFile(w.works)" -->
  2995. <div
  2996. class="answerScore"
  2997. v-if="w.score"
  2998. @click.stop="openScore(w)"
  2999. :class="{
  3000. rightW:
  3001. w.userid == userid ||
  3002. tType == 1 ||
  3003. tType == 4 ||
  3004. w.ateacher == userid,
  3005. }"
  3006. >
  3007. {{ JSON.parse(w.score).wScore }}分
  3008. </div>
  3009. <div
  3010. class="answerScore"
  3011. @click.stop="openScore(w)"
  3012. v-else-if="courseDetail.userid == userid"
  3013. :class="{
  3014. rightW:
  3015. w.userid == userid ||
  3016. tType == 1 ||
  3017. tType == 4 ||
  3018. w.ateacher == userid,
  3019. }"
  3020. >
  3021. 评分
  3022. </div>
  3023. <img
  3024. class="deleteImg"
  3025. src="../assets/deleteworks.png"
  3026. v-if="
  3027. w.userid == userid || tType == 1 || tType == 4
  3028. "
  3029. @click.stop="deleteWorks(w.wid)"
  3030. alt
  3031. />
  3032. </div>
  3033. <div class="workImg" v-if="w.type == 3">
  3034. <img
  3035. style="cursor: pointer"
  3036. :src="video"
  3037. @click="openVideo(w)"
  3038. alt
  3039. />
  3040. <!-- @click="openVideo(w.works)" -->
  3041. <div
  3042. class="answerScore"
  3043. v-if="w.score"
  3044. @click.stop="openScore(w)"
  3045. :class="{
  3046. rightW:
  3047. w.userid == userid ||
  3048. tType == 1 ||
  3049. tType == 4 ||
  3050. w.ateacher == userid,
  3051. }"
  3052. >
  3053. {{ JSON.parse(w.score).wScore }}分
  3054. </div>
  3055. <div
  3056. class="answerScore"
  3057. @click.stop="openScore(w)"
  3058. v-else-if="courseDetail.userid == userid"
  3059. :class="{
  3060. rightW:
  3061. w.userid == userid ||
  3062. tType == 1 ||
  3063. tType == 4 ||
  3064. w.ateacher == userid,
  3065. }"
  3066. >
  3067. 评分
  3068. </div>
  3069. <img
  3070. class="deleteImg"
  3071. src="../assets/deleteworks.png"
  3072. v-if="
  3073. w.userid == userid || tType == 1 || tType == 4
  3074. "
  3075. @click.stop="deleteWorks(w.wid)"
  3076. alt
  3077. />
  3078. </div>
  3079. <div class="workImg" v-if="w.type == 12">
  3080. <img
  3081. style="cursor: pointer"
  3082. :src="word2"
  3083. @click="downloadFile(w.works)"
  3084. alt
  3085. />
  3086. <!-- @click="openVideo(w.works)" -->
  3087. <div
  3088. class="answerScore"
  3089. v-if="w.score"
  3090. @click.stop="openScore(w)"
  3091. :class="{
  3092. rightW:
  3093. w.userid == userid ||
  3094. tType == 1 ||
  3095. tType == 4 ||
  3096. w.ateacher == userid,
  3097. }"
  3098. >
  3099. {{ JSON.parse(w.score).wScore }}分
  3100. </div>
  3101. <div
  3102. class="answerScore"
  3103. @click.stop="openScore(w)"
  3104. v-else-if="courseDetail.userid == userid"
  3105. :class="{
  3106. rightW:
  3107. w.userid == userid ||
  3108. tType == 1 ||
  3109. tType == 4 ||
  3110. w.ateacher == userid,
  3111. }"
  3112. >
  3113. 评分
  3114. </div>
  3115. <img
  3116. class="deleteImg"
  3117. src="../assets/deleteworks.png"
  3118. v-if="
  3119. w.userid == userid || tType == 1 || tType == 4
  3120. "
  3121. @click.stop="deleteWorks(w.wid)"
  3122. alt
  3123. />
  3124. </div>
  3125. <div class="comment" style="min-width: 200px">
  3126. <div class="worksName">
  3127. <div>{{ w.sName }}</div>
  3128. </div>
  3129. <div class="commentList">
  3130. <div class="commentList">
  3131. <div
  3132. class="commentImg"
  3133. @click="
  3134. isLikes(w.wid, userid, 1, null, w.isLikes)
  3135. "
  3136. >
  3137. <img
  3138. :src="w.isLikes == true ? likes : noLikes"
  3139. alt=""
  3140. />
  3141. </div>
  3142. <div>{{ w.likesCount }}</div>
  3143. </div>
  3144. <div class="commentList" style="margin-right: 15px">
  3145. <div
  3146. class="commentImg"
  3147. @click="commentOther(w, toolIndex, wIndex)"
  3148. >
  3149. <img
  3150. src="../assets/icon/comment/comment.png"
  3151. alt=""
  3152. />
  3153. </div>
  3154. <div>{{ w.commentCount }}</div>
  3155. </div>
  3156. </div>
  3157. </div>
  3158. </div>
  3159. </div>
  3160. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3161. 未提交
  3162. </div>
  3163. <div class="noWorksS">
  3164. <div
  3165. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3166. :key="sIndex"
  3167. class="noWorksName"
  3168. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3169. >
  3170. {{ s.student }}
  3171. </div>
  3172. </div>
  3173. </div>
  3174. <div
  3175. v-if="
  3176. tType &&
  3177. ((tType == 2 && sIsOpen == true) ||
  3178. tType == 1 ||
  3179. tType == 4) &&
  3180. tool.tool.indexOf(32) != -1
  3181. "
  3182. class="worksBox"
  3183. >
  3184. <div
  3185. class="zuoyeYulan"
  3186. v-if="
  3187. worksStudent.length &&
  3188. worksStudent[toolIndex].length > 0
  3189. "
  3190. >
  3191. <div class="worksTop">
  3192. <div>作业预览</div>
  3193. <div
  3194. class="corOpen"
  3195. @click="contract(toolIndex)"
  3196. v-if="
  3197. worksStudent[toolIndex].length > 6 &&
  3198. isCloseList[toolIndex].isClose == 0
  3199. "
  3200. >
  3201. 收缩
  3202. </div>
  3203. <div
  3204. class="corOpen"
  3205. @click="contract(toolIndex)"
  3206. v-if="isCloseList[toolIndex].isClose == 1"
  3207. >
  3208. 展开
  3209. </div>
  3210. </div>
  3211. </div>
  3212. <div
  3213. class="worksDetailBox"
  3214. v-if="
  3215. worksStudent.length &&
  3216. worksStudent[toolIndex].length > 0
  3217. "
  3218. >
  3219. <div
  3220. class="works"
  3221. style="
  3222. width: 200px;
  3223. height: 140px;
  3224. margin: 10px 10px 10px 0;
  3225. border-radius: 15px;
  3226. box-shadow: 0 0 6px 1px #dfdada;
  3227. "
  3228. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3229. 0
  3230. ? worksStudent[toolIndex]
  3231. : worksStudent[toolIndex].slice(0, 6)"
  3232. :key="wIndex"
  3233. :class="w.type == 1 ? 'isTypeOne' : ''"
  3234. >
  3235. <div class="workImg">
  3236. <img
  3237. :src="word2"
  3238. @click="downloadFile(w.works)"
  3239. alt
  3240. />
  3241. <div
  3242. class="answerScore"
  3243. v-if="w.score"
  3244. @click.stop="openScore(w)"
  3245. :class="{
  3246. rightW:
  3247. w.userid == userid ||
  3248. tType == 1 ||
  3249. tType == 4 ||
  3250. w.ateacher == userid,
  3251. }"
  3252. >
  3253. {{ JSON.parse(w.score).wScore }}分
  3254. </div>
  3255. <div
  3256. class="answerScore"
  3257. @click.stop="openScore(w)"
  3258. v-else-if="courseDetail.userid == userid"
  3259. :class="{
  3260. rightW:
  3261. w.userid == userid ||
  3262. tType == 1 ||
  3263. tType == 4 ||
  3264. w.ateacher == userid,
  3265. }"
  3266. >
  3267. 评分
  3268. </div>
  3269. <img
  3270. class="deleteImg"
  3271. src="../assets/deleteworks.png"
  3272. v-if="
  3273. w.userid == userid || tType == 1 || tType == 4
  3274. "
  3275. @click.stop="deleteWorks(w.wid)"
  3276. alt
  3277. />
  3278. </div>
  3279. <div class="comment" style="min-width: 200px">
  3280. <div class="worksName">
  3281. <div>{{ w.sName }}</div>
  3282. </div>
  3283. <div class="commentList">
  3284. <div class="commentList">
  3285. <div
  3286. class="commentImg"
  3287. @click="
  3288. isLikes(w.wid, userid, 1, null, w.isLikes)
  3289. "
  3290. >
  3291. <img
  3292. :src="w.isLikes == true ? likes : noLikes"
  3293. alt=""
  3294. />
  3295. </div>
  3296. <div>{{ w.likesCount }}</div>
  3297. </div>
  3298. <div class="commentList" style="margin-right: 15px">
  3299. <div
  3300. class="commentImg"
  3301. @click="commentOther(w, toolIndex, wIndex)"
  3302. >
  3303. <img
  3304. src="../assets/icon/comment/comment.png"
  3305. alt=""
  3306. />
  3307. </div>
  3308. <div>{{ w.commentCount }}</div>
  3309. </div>
  3310. </div>
  3311. </div>
  3312. </div>
  3313. </div>
  3314. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3315. 未提交
  3316. </div>
  3317. <div class="noWorksS">
  3318. <div
  3319. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3320. :key="sIndex"
  3321. class="noWorksName"
  3322. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3323. >
  3324. {{ s.student }}
  3325. </div>
  3326. </div>
  3327. </div>
  3328. <div
  3329. v-if="
  3330. tType &&
  3331. ((tType == 2 && sIsOpen == true) ||
  3332. tType == 1 ||
  3333. tType == 4) &&
  3334. tool.tool.indexOf(57) != -1
  3335. "
  3336. class="worksBox"
  3337. >
  3338. <div
  3339. class="zuoyeYulan"
  3340. v-if="
  3341. worksStudent.length &&
  3342. worksStudent[toolIndex].length > 0
  3343. "
  3344. >
  3345. <div class="worksTop">
  3346. <div>作业预览</div>
  3347. <div
  3348. class="corOpen"
  3349. @click="contract(toolIndex)"
  3350. v-if="
  3351. worksStudent[toolIndex].length > 6 &&
  3352. isCloseList[toolIndex].isClose == 0
  3353. "
  3354. >
  3355. 收缩
  3356. </div>
  3357. <div
  3358. class="corOpen"
  3359. @click="contract(toolIndex)"
  3360. v-if="isCloseList[toolIndex].isClose == 1"
  3361. >
  3362. 展开
  3363. </div>
  3364. </div>
  3365. </div>
  3366. <div
  3367. class="worksDetailBox"
  3368. v-if="
  3369. worksStudent.length &&
  3370. worksStudent[toolIndex].length > 0
  3371. "
  3372. >
  3373. <div
  3374. class="works"
  3375. style="
  3376. width: 200px;
  3377. height: 140px;
  3378. margin: 10px 10px 10px 0;
  3379. border-radius: 15px;
  3380. box-shadow: 0 0 6px 1px #dfdada;
  3381. "
  3382. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3383. 0
  3384. ? worksStudent[toolIndex]
  3385. : worksStudent[toolIndex].slice(0, 6)"
  3386. :key="wIndex"
  3387. :class="w.type == 1 ? 'isTypeOne' : ''"
  3388. >
  3389. <div class="workImg">
  3390. <img
  3391. :src="word2"
  3392. @click="downloadFile(w.works)"
  3393. v-if="w.type == 12"
  3394. alt
  3395. />
  3396. <img
  3397. :src="word2"
  3398. @click="
  3399. openCocoPi(57, toolIndex, w.userid, w.sName)
  3400. "
  3401. v-else-if="w.type == 15"
  3402. alt
  3403. />
  3404. <div
  3405. class="answerScore"
  3406. v-if="w.score"
  3407. @click.stop="openScore(w)"
  3408. :class="{
  3409. rightW:
  3410. w.userid == userid ||
  3411. tType == 1 ||
  3412. tType == 4 ||
  3413. w.ateacher == userid,
  3414. }"
  3415. >
  3416. {{ JSON.parse(w.score).wScore }}分
  3417. </div>
  3418. <div
  3419. class="answerScore"
  3420. @click.stop="openScore(w)"
  3421. v-else-if="courseDetail.userid == userid"
  3422. :class="{
  3423. rightW:
  3424. w.userid == userid ||
  3425. tType == 1 ||
  3426. tType == 4 ||
  3427. w.ateacher == userid,
  3428. }"
  3429. >
  3430. 评分
  3431. </div>
  3432. <img
  3433. class="deleteImg"
  3434. src="../assets/deleteworks.png"
  3435. v-if="
  3436. w.userid == userid || tType == 1 || tType == 4
  3437. "
  3438. @click.stop="deleteWorks(w.wid)"
  3439. alt
  3440. />
  3441. </div>
  3442. <div class="comment" style="min-width: 200px">
  3443. <div class="worksName">
  3444. <div>{{ w.sName }}</div>
  3445. </div>
  3446. <div class="commentList">
  3447. <div class="commentList">
  3448. <div
  3449. class="commentImg"
  3450. @click="
  3451. isLikes(w.wid, userid, 1, null, w.isLikes)
  3452. "
  3453. >
  3454. <img
  3455. :src="w.isLikes == true ? likes : noLikes"
  3456. alt=""
  3457. />
  3458. </div>
  3459. <div>{{ w.likesCount }}</div>
  3460. </div>
  3461. <div class="commentList" style="margin-right: 15px">
  3462. <div
  3463. class="commentImg"
  3464. @click="commentOther(w, toolIndex, wIndex)"
  3465. >
  3466. <img
  3467. src="../assets/icon/comment/comment.png"
  3468. alt=""
  3469. />
  3470. </div>
  3471. <div>{{ w.commentCount }}</div>
  3472. </div>
  3473. </div>
  3474. </div>
  3475. </div>
  3476. </div>
  3477. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3478. 未提交
  3479. </div>
  3480. <div class="noWorksS">
  3481. <div
  3482. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3483. :key="sIndex"
  3484. class="noWorksName"
  3485. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3486. >
  3487. {{ s.student }}
  3488. </div>
  3489. </div>
  3490. </div>
  3491. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3492. <div
  3493. class="zuoyeYulan"
  3494. v-if="
  3495. worksStudent.length &&
  3496. worksStudent[toolIndex].length > 0
  3497. "
  3498. >
  3499. <span>作业预览</span>
  3500. <div
  3501. class="corOpen"
  3502. @click="contract(toolIndex)"
  3503. v-if="
  3504. worksStudent[toolIndex].length > 6 &&
  3505. isCloseList[toolIndex].isClose == 0
  3506. "
  3507. >
  3508. 收缩
  3509. </div>
  3510. <div
  3511. class="corOpen"
  3512. @click="contract(toolIndex)"
  3513. v-if="isCloseList[toolIndex].isClose == 1"
  3514. >
  3515. 展开
  3516. </div>
  3517. </div>
  3518. <div
  3519. class="worksDetailBox"
  3520. v-if="
  3521. worksStudent.length &&
  3522. worksStudent[toolIndex].length > 0
  3523. "
  3524. >
  3525. <div
  3526. class="works"
  3527. style="
  3528. width: 200px;
  3529. height: 140px;
  3530. margin: 10px 10px 10px 0;
  3531. border-radius: 15px;
  3532. box-shadow: 0 0 6px 1px #dfdada;
  3533. "
  3534. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3535. 0
  3536. ? worksStudent[toolIndex]
  3537. : worksStudent[toolIndex].slice(0, 6)"
  3538. :key="wIndex"
  3539. :class="w.type == 1 ? 'isTypeOne' : ''"
  3540. >
  3541. <div class="workImg" v-if="w.type == 0">
  3542. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3543. <img
  3544. :src="w.works"
  3545. @click="previewImg(w.works)"
  3546. alt
  3547. />
  3548. <div
  3549. class="answerScore"
  3550. v-if="w.score"
  3551. @click.stop="openScore(w)"
  3552. :class="{
  3553. rightW:
  3554. w.userid == userid ||
  3555. tType == 1 ||
  3556. tType == 4 ||
  3557. w.ateacher == userid,
  3558. }"
  3559. >
  3560. {{ JSON.parse(w.score).wScore }}分
  3561. </div>
  3562. <div
  3563. class="answerScore"
  3564. @click.stop="openScore(w)"
  3565. v-else-if="courseDetail.userid == userid"
  3566. :class="{
  3567. rightW:
  3568. w.userid == userid ||
  3569. tType == 1 ||
  3570. tType == 4 ||
  3571. w.ateacher == userid,
  3572. }"
  3573. >
  3574. 评分
  3575. </div>
  3576. <img
  3577. class="deleteImg"
  3578. src="../assets/deleteworks.png"
  3579. v-if="
  3580. w.userid == userid || tType == 1 || tType == 4
  3581. "
  3582. @click.stop="deleteWorks(w.wid)"
  3583. alt
  3584. />
  3585. </div>
  3586. <div
  3587. class="workImg"
  3588. style="cursor: pointer"
  3589. v-if="w.type == 1"
  3590. >
  3591. <img :src="word" @click="openFile(w.works)" alt />
  3592. <!-- @click="openFile(w.works)" -->
  3593. <div
  3594. class="answerScore"
  3595. v-if="w.score"
  3596. @click.stop="openScore(w)"
  3597. :class="{
  3598. rightW:
  3599. w.userid == userid ||
  3600. tType == 1 ||
  3601. tType == 4 ||
  3602. w.ateacher == userid,
  3603. }"
  3604. >
  3605. {{ JSON.parse(w.score).wScore }}分
  3606. </div>
  3607. <div
  3608. class="answerScore"
  3609. @click.stop="openScore(w)"
  3610. v-else-if="courseDetail.userid == userid"
  3611. :class="{
  3612. rightW:
  3613. w.userid == userid ||
  3614. tType == 1 ||
  3615. tType == 4 ||
  3616. w.ateacher == userid,
  3617. }"
  3618. >
  3619. 评分
  3620. </div>
  3621. <img
  3622. class="deleteImg"
  3623. src="../assets/deleteworks.png"
  3624. v-if="
  3625. w.userid == userid || tType == 1 || tType == 4
  3626. "
  3627. @click.stop="deleteWorks(w.wid)"
  3628. alt
  3629. />
  3630. </div>
  3631. <div class="workImg" v-if="w.type == 3">
  3632. <img
  3633. style="cursor: pointer"
  3634. :src="video"
  3635. @click="openVideo(w)"
  3636. alt
  3637. />
  3638. <!-- @click="openVideo(w.works)" -->
  3639. <div
  3640. class="answerScore"
  3641. v-if="w.score"
  3642. @click.stop="openScore(w)"
  3643. :class="{
  3644. rightW:
  3645. w.userid == userid ||
  3646. tType == 1 ||
  3647. tType == 4 ||
  3648. w.ateacher == userid,
  3649. }"
  3650. >
  3651. {{ JSON.parse(w.score).wScore }}分
  3652. </div>
  3653. <div
  3654. class="answerScore"
  3655. @click.stop="openScore(w)"
  3656. v-else-if="courseDetail.userid == userid"
  3657. :class="{
  3658. rightW:
  3659. w.userid == userid ||
  3660. tType == 1 ||
  3661. tType == 4 ||
  3662. w.ateacher == userid,
  3663. }"
  3664. >
  3665. 评分
  3666. </div>
  3667. <img
  3668. class="deleteImg"
  3669. src="../assets/deleteworks.png"
  3670. v-if="
  3671. w.userid == userid || tType == 1 || tType == 4
  3672. "
  3673. @click.stop="deleteWorks(w.wid)"
  3674. alt
  3675. />
  3676. </div>
  3677. <div class="comment" style="min-width: 200px">
  3678. <div class="worksName">
  3679. <div
  3680. style="cursor: pointer"
  3681. @click="
  3682. openSname(w.sName, w.wid, toolIndex, w.userid)
  3683. "
  3684. >
  3685. {{ w.sName }}
  3686. </div>
  3687. </div>
  3688. <div class="commentList">
  3689. <div class="commentList">
  3690. <div
  3691. class="commentImg"
  3692. @click="
  3693. isLikes(w.wid, userid, 1, null, w.isLikes)
  3694. "
  3695. >
  3696. <img
  3697. :src="w.isLikes == true ? likes : noLikes"
  3698. alt=""
  3699. />
  3700. </div>
  3701. <div>{{ w.likesCount }}</div>
  3702. </div>
  3703. <div class="commentList" style="margin-right: 15px">
  3704. <div
  3705. class="commentImg"
  3706. @click="commentOther(w, toolIndex, wIndex)"
  3707. >
  3708. <img
  3709. src="../assets/icon/comment/comment.png"
  3710. alt=""
  3711. />
  3712. </div>
  3713. <div>{{ w.commentCount }}</div>
  3714. </div>
  3715. </div>
  3716. </div>
  3717. </div>
  3718. </div>
  3719. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3720. 未提交
  3721. </div>
  3722. <div class="noWorksS">
  3723. <div
  3724. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3725. :key="sIndex"
  3726. class="noWorksName"
  3727. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3728. >
  3729. {{ s.student }}
  3730. </div>
  3731. </div>
  3732. </div>
  3733. <div
  3734. v-if="
  3735. tType &&
  3736. ((tType == 2 && sIsOpen == true) ||
  3737. tType == 1 ||
  3738. tType == 4) &&
  3739. tool.tool.indexOf(4) != -1 &&
  3740. (tool.askJson[0].answer ||
  3741. tool.askJson[0].answer === 0) &&
  3742. checkJson[toolIndex].length
  3743. "
  3744. class="xuan_right_box"
  3745. >
  3746. <div
  3747. class="tool_right_box"
  3748. v-for="(item, index) in tool.askJson"
  3749. :key="index"
  3750. >
  3751. <div>
  3752. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3753. </div>
  3754. <div class="right_box_xuan">
  3755. <span>正确率</span>
  3756. <span>{{
  3757. (checkJson[toolIndex][index].right
  3758. ? checkJson[toolIndex][index].right
  3759. : 0) + "%"
  3760. }}</span>
  3761. </div>
  3762. </div>
  3763. </div>
  3764. <div
  3765. class="xuan_right_box"
  3766. style="background: unset"
  3767. v-if="
  3768. tType &&
  3769. ((tType == 2 && sIsOpen == true) ||
  3770. tType == 1 ||
  3771. tType == 4) &&
  3772. tool.tool.indexOf(4) != -1
  3773. "
  3774. >
  3775. <AskStatic
  3776. v-if="
  3777. worksStudent.length &&
  3778. worksStudent[toolIndex].length > 0
  3779. "
  3780. :askJSON="tool"
  3781. :checkJson="checkJson[toolIndex]"
  3782. ></AskStatic>
  3783. </div>
  3784. <div
  3785. v-if="
  3786. tType &&
  3787. ((tType == 2 && sIsOpen == true) ||
  3788. tType == 1 ||
  3789. tType == 4) &&
  3790. tool.tool.indexOf(4) != -1
  3791. "
  3792. class="worksBox"
  3793. >
  3794. <div
  3795. class="zuoyeYulan"
  3796. v-if="
  3797. worksStudent.length &&
  3798. worksStudent[toolIndex].length > 0
  3799. "
  3800. >
  3801. <div class="worksTop">
  3802. <div>作业预览</div>
  3803. <div
  3804. class="corOpen"
  3805. @click="contract(toolIndex)"
  3806. v-if="
  3807. worksStudent[toolIndex].length > 6 &&
  3808. isCloseList[toolIndex].isClose == 0
  3809. "
  3810. >
  3811. 收缩
  3812. </div>
  3813. <div
  3814. class="corOpen"
  3815. @click="contract(toolIndex)"
  3816. v-if="isCloseList[toolIndex].isClose == 1"
  3817. >
  3818. 展开
  3819. </div>
  3820. </div>
  3821. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3822. </div>
  3823. <div>
  3824. <div
  3825. class="worksDetailBox"
  3826. v-if="
  3827. worksStudent.length &&
  3828. worksStudent[toolIndex].length > 0
  3829. "
  3830. >
  3831. <div
  3832. v-for="(w, wIndex) in isCloseList[toolIndex]
  3833. .isClose == 0
  3834. ? worksStudent[toolIndex]
  3835. : worksStudent[toolIndex].slice(0, 6)"
  3836. :key="wIndex"
  3837. class="isWorksName"
  3838. @click="
  3839. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3840. "
  3841. >
  3842. {{ w.sName }}
  3843. <img
  3844. class="deleteImg deleteImg2"
  3845. src="../assets/deleteworks.png"
  3846. v-if="
  3847. w.userid == userid || tType == 1 || tType == 4
  3848. "
  3849. @click.stop="deleteWorks(w.wid)"
  3850. alt
  3851. />
  3852. </div>
  3853. <!-- <div class="works" style="
  3854. width: 200px;
  3855. height: 140px;
  3856. border-radius: 10px;
  3857. box-shadow: 0 0 6px 1px #dfdada;
  3858. overflow: hidden;
  3859. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3860. <div class="workImg">
  3861. <img src="../assets/icon/works/noImg.png" @click="
  3862. openTools(
  3863. 4,
  3864. toolIndex,
  3865. taskCount,
  3866. w.works,
  3867. w.sName
  3868. )
  3869. " alt />
  3870. </div>
  3871. <div class="worksName">
  3872. <div>{{ w.sName }}</div>
  3873. <div>{{ w.time }}</div>
  3874. </div>
  3875. </div> -->
  3876. </div>
  3877. </div>
  3878. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3879. 未提交
  3880. </div>
  3881. <div class="noWorksS">
  3882. <div
  3883. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3884. :key="sIndex"
  3885. class="noWorksName"
  3886. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3887. >
  3888. {{ s.student }}
  3889. </div>
  3890. </div>
  3891. </div>
  3892. <div
  3893. v-if="
  3894. tType &&
  3895. ((tType == 2 && sIsOpen == true) ||
  3896. tType == 1 ||
  3897. tType == 4) &&
  3898. tool.tool.indexOf(45) != -1 &&
  3899. (tool.testJson.testJson[0].answer ||
  3900. tool.testJson.testJson[0].answer === 0) &&
  3901. checkJson[toolIndex].length
  3902. "
  3903. class="xuan_right_box"
  3904. >
  3905. <div
  3906. class="tool_right_box"
  3907. v-for="(item, index) in tool.testJson.testJson"
  3908. :key="index"
  3909. >
  3910. <div>
  3911. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3912. </div>
  3913. <div class="right_box_xuan">
  3914. <span>正确率</span>
  3915. <span>{{
  3916. (checkJson[toolIndex][index].right
  3917. ? checkJson[toolIndex][index].right
  3918. : 0) + "%"
  3919. }}</span>
  3920. </div>
  3921. </div>
  3922. </div>
  3923. <div
  3924. class="xuan_right_box"
  3925. style="background: unset"
  3926. v-if="
  3927. tType &&
  3928. ((tType == 2 && sIsOpen == true) ||
  3929. tType == 1 ||
  3930. tType == 4) &&
  3931. tool.tool.indexOf(45) != -1
  3932. "
  3933. >
  3934. <AskStatic2
  3935. v-if="
  3936. worksStudent.length &&
  3937. worksStudent[toolIndex].length > 0
  3938. "
  3939. :askJSON="tool"
  3940. :checkJson="checkJson[toolIndex]"
  3941. ></AskStatic2>
  3942. </div>
  3943. <div
  3944. v-if="
  3945. tType &&
  3946. ((tType == 2 && sIsOpen == true) ||
  3947. tType == 1 ||
  3948. tType == 4) &&
  3949. tool.tool.indexOf(45) != -1
  3950. "
  3951. class="worksBox"
  3952. >
  3953. <div
  3954. class="zuoyeYulan"
  3955. v-if="
  3956. worksStudent.length &&
  3957. worksStudent[toolIndex].length > 0
  3958. "
  3959. >
  3960. <div class="worksTop">
  3961. <div>作业预览</div>
  3962. <div
  3963. class="corOpen"
  3964. @click="contract(toolIndex)"
  3965. v-if="
  3966. worksStudent[toolIndex].length > 6 &&
  3967. isCloseList[toolIndex].isClose == 0
  3968. "
  3969. >
  3970. 收缩
  3971. </div>
  3972. <div
  3973. class="corOpen"
  3974. @click="contract(toolIndex)"
  3975. v-if="isCloseList[toolIndex].isClose == 1"
  3976. >
  3977. 展开
  3978. </div>
  3979. </div>
  3980. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3981. </div>
  3982. <div>
  3983. <div
  3984. class="worksDetailBox"
  3985. v-if="
  3986. worksStudent.length &&
  3987. worksStudent[toolIndex].length > 0
  3988. "
  3989. >
  3990. <div
  3991. v-for="(w, wIndex) in isCloseList[toolIndex]
  3992. .isClose == 0
  3993. ? worksStudent[toolIndex]
  3994. : worksStudent[toolIndex].slice(0, 6)"
  3995. :key="wIndex"
  3996. class="isWorksName"
  3997. @click="
  3998. openTools(
  3999. 45,
  4000. toolIndex,
  4001. taskCount,
  4002. w.works,
  4003. w.sName
  4004. )
  4005. "
  4006. >
  4007. {{ w.sName }}
  4008. <img
  4009. class="deleteImg deleteImg2"
  4010. src="../assets/deleteworks.png"
  4011. v-if="
  4012. w.userid == userid || tType == 1 || tType == 4
  4013. "
  4014. @click.stop="deleteWorks(w.wid)"
  4015. alt
  4016. />
  4017. </div>
  4018. </div>
  4019. </div>
  4020. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4021. 未提交
  4022. </div>
  4023. <div class="noWorksS">
  4024. <div
  4025. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4026. :key="sIndex"
  4027. class="noWorksName"
  4028. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4029. >
  4030. {{ s.student }}
  4031. </div>
  4032. </div>
  4033. </div>
  4034. <div
  4035. v-if="
  4036. tType &&
  4037. ((tType == 2 && sIsOpen == true) ||
  4038. tType == 1 ||
  4039. tType == 4) &&
  4040. tool.tool.indexOf(15) != -1
  4041. "
  4042. class="worksBox"
  4043. >
  4044. <div
  4045. class="zuoyeYulan"
  4046. v-if="
  4047. worksStudent.length &&
  4048. worksStudent[toolIndex].length > 0
  4049. "
  4050. >
  4051. <div class="worksTop">
  4052. <div>作业预览</div>
  4053. <div
  4054. class="corOpen"
  4055. @click="contract(toolIndex)"
  4056. v-if="
  4057. worksStudent[toolIndex].length > 6 &&
  4058. isCloseList[toolIndex].isClose == 0
  4059. "
  4060. >
  4061. 收缩
  4062. </div>
  4063. <div
  4064. class="corOpen"
  4065. @click="contract(toolIndex)"
  4066. v-if="isCloseList[toolIndex].isClose == 1"
  4067. >
  4068. 展开
  4069. </div>
  4070. </div>
  4071. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4072. </div>
  4073. <div
  4074. class="group_workBox"
  4075. v-for="(g, gindex) in courseGroup.group"
  4076. :key="gindex"
  4077. >
  4078. <div class="group_box">
  4079. <div class="group_title">
  4080. <el-tooltip
  4081. class="item"
  4082. effect="light"
  4083. :content="g.name"
  4084. placement="top"
  4085. >
  4086. <div class="group_name">{{ g.name }}</div>
  4087. </el-tooltip>
  4088. </div>
  4089. <div
  4090. class="group_work"
  4091. v-if="
  4092. g.works &&
  4093. g.works.length &&
  4094. g.works[toolIndex].length
  4095. "
  4096. >
  4097. <div
  4098. class="works"
  4099. v-for="(w, wIndex) in g.works[toolIndex]"
  4100. :key="wIndex"
  4101. >
  4102. <div
  4103. class="workImg"
  4104. style="
  4105. border-radius: 15px;
  4106. box-shadow: #eee 0px 0px 5px 5px;
  4107. "
  4108. >
  4109. <div
  4110. class="answerBg"
  4111. style="border-radius: 15px 15px 0 0"
  4112. @click="
  4113. commentOther(w, toolIndex, wIndex, null, g.id)
  4114. "
  4115. >
  4116. <div class="answerContent">
  4117. {{ JSON.parse(w.works)[0].answer }}
  4118. </div>
  4119. <div
  4120. class="answerScore"
  4121. v-if="w.score"
  4122. @click.stop="openScore(w)"
  4123. :class="{
  4124. rightW:
  4125. w.userid == userid ||
  4126. tType == 1 ||
  4127. tType == 4,
  4128. }"
  4129. >
  4130. {{ JSON.parse(w.score).wScore }}分
  4131. </div>
  4132. <div
  4133. class="answerScore"
  4134. @click.stop="openScore(w)"
  4135. v-else-if="courseDetail.userid == userid"
  4136. :class="{
  4137. rightW:
  4138. w.userid == userid ||
  4139. tType == 1 ||
  4140. tType == 4,
  4141. }"
  4142. >
  4143. 评分
  4144. </div>
  4145. <img
  4146. class="deleteImg"
  4147. src="../assets/deleteworks.png"
  4148. v-if="
  4149. w.userid == userid ||
  4150. tType == 1 ||
  4151. tType == 4
  4152. "
  4153. @click.stop="deleteWorks(w.wid)"
  4154. alt
  4155. />
  4156. </div>
  4157. <div class="comment">
  4158. <div class="worksName">
  4159. <div>{{ w.sName }}</div>
  4160. </div>
  4161. <div class="commentList">
  4162. <div
  4163. class="commentImg"
  4164. @click="
  4165. isLikes(w.wid, userid, 1, null, w.isLikes)
  4166. "
  4167. >
  4168. <img
  4169. :src="w.isLikes == true ? likes : noLikes"
  4170. alt=""
  4171. />
  4172. </div>
  4173. <div>{{ w.likesCount }}</div>
  4174. </div>
  4175. <div
  4176. class="commentList"
  4177. style="margin-right: 15px"
  4178. >
  4179. <div
  4180. class="commentImg"
  4181. @click="
  4182. commentOther(
  4183. w,
  4184. toolIndex,
  4185. wIndex,
  4186. null,
  4187. g.id
  4188. )
  4189. "
  4190. >
  4191. <img
  4192. src="../assets/icon/comment/comment.png"
  4193. alt=""
  4194. />
  4195. </div>
  4196. <div>{{ w.commentCount }}</div>
  4197. </div>
  4198. </div>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. <div class="group_work" v-else>暂无提交作业</div>
  4203. </div>
  4204. </div>
  4205. <div
  4206. class="worksDetailBox"
  4207. v-if="
  4208. worksStudent.length &&
  4209. worksStudent[toolIndex].length > 0
  4210. "
  4211. >
  4212. <div
  4213. class="works"
  4214. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4215. 0
  4216. ? worksStudent[toolIndex]
  4217. : worksStudent[toolIndex].slice(0, 6)"
  4218. :key="wIndex"
  4219. >
  4220. <div
  4221. class="workImg"
  4222. style="
  4223. border-radius: 15px;
  4224. box-shadow: #eee 0px 0px 5px 5px;
  4225. "
  4226. >
  4227. <!-- <img
  4228. src="../assets/icon/works/noImg.png"
  4229. @click="openTools(15, toolIndex, taskCount, w.works)"
  4230. alt=""
  4231. />-->
  4232. <div
  4233. class="answerBg"
  4234. style="border-radius: 15px 15px 0 0"
  4235. @click="commentOther(w, toolIndex, wIndex)"
  4236. >
  4237. <!-- <div>{{ w.sName }}</div> -->
  4238. <div class="answerContent">
  4239. {{ JSON.parse(w.works)[0].answer }}
  4240. </div>
  4241. <div
  4242. class="answerScore"
  4243. v-if="w.score"
  4244. @click.stop="openScore(w)"
  4245. :class="{
  4246. rightW:
  4247. w.userid == userid ||
  4248. tType == 1 ||
  4249. tType == 4,
  4250. }"
  4251. >
  4252. {{ JSON.parse(w.score).wScore }}分
  4253. </div>
  4254. <div
  4255. class="answerScore"
  4256. @click.stop="openScore(w)"
  4257. v-else-if="courseDetail.userid == userid"
  4258. :class="{
  4259. rightW:
  4260. w.userid == userid ||
  4261. tType == 1 ||
  4262. tType == 4,
  4263. }"
  4264. >
  4265. 评分
  4266. </div>
  4267. <img
  4268. class="deleteImg"
  4269. src="../assets/deleteworks.png"
  4270. v-if="
  4271. w.userid == userid || tType == 1 || tType == 4
  4272. "
  4273. @click.stop="deleteWorks(w.wid)"
  4274. alt
  4275. />
  4276. </div>
  4277. <div class="comment">
  4278. <div class="worksName">
  4279. <div>{{ w.sName }}</div>
  4280. </div>
  4281. <div class="commentList">
  4282. <div
  4283. class="commentImg"
  4284. @click="
  4285. isLikes(w.wid, userid, 1, null, w.isLikes)
  4286. "
  4287. >
  4288. <img
  4289. :src="w.isLikes == true ? likes : noLikes"
  4290. alt=""
  4291. />
  4292. </div>
  4293. <div>{{ w.likesCount }}</div>
  4294. </div>
  4295. <div class="commentList" style="margin-right: 15px">
  4296. <div
  4297. class="commentImg"
  4298. @click="commentOther(w, toolIndex, wIndex)"
  4299. >
  4300. <img
  4301. src="../assets/icon/comment/comment.png"
  4302. alt=""
  4303. />
  4304. </div>
  4305. <div>{{ w.commentCount }}</div>
  4306. </div>
  4307. </div>
  4308. </div>
  4309. </div>
  4310. </div>
  4311. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4312. 未提交
  4313. </div>
  4314. <div class="noWorksS">
  4315. <div
  4316. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4317. :key="sIndex"
  4318. class="noWorksName"
  4319. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4320. >
  4321. {{ s.student }}
  4322. </div>
  4323. </div>
  4324. </div>
  4325. <div
  4326. v-if="
  4327. tType &&
  4328. ((tType == 2 && sIsOpen == true) ||
  4329. tType == 1 ||
  4330. tType == 4) &&
  4331. tool.tool.indexOf(1) != -1
  4332. "
  4333. class="worksBox"
  4334. >
  4335. <div
  4336. class="zuoyeYulan"
  4337. v-if="
  4338. worksStudent.length &&
  4339. worksStudent[toolIndex].length > 0
  4340. "
  4341. >
  4342. <div class="worksTop">
  4343. <div>作业预览</div>
  4344. <div
  4345. class="corOpen"
  4346. @click="contract(toolIndex)"
  4347. v-if="
  4348. worksStudent[toolIndex].length > 6 &&
  4349. isCloseList[toolIndex].isClose == 0
  4350. "
  4351. >
  4352. 收缩
  4353. </div>
  4354. <div
  4355. class="corOpen"
  4356. @click="contract(toolIndex)"
  4357. v-if="isCloseList[toolIndex].isClose == 1"
  4358. >
  4359. 展开
  4360. </div>
  4361. </div>
  4362. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4363. </div>
  4364. <div
  4365. class="group_workBox"
  4366. v-for="(g, gindex) in courseGroup.group"
  4367. :key="gindex"
  4368. >
  4369. <div class="group_box">
  4370. <div class="group_title">
  4371. <el-tooltip
  4372. class="item"
  4373. effect="light"
  4374. :content="g.name"
  4375. placement="top"
  4376. >
  4377. <div class="group_name">{{ g.name }}</div>
  4378. </el-tooltip>
  4379. </div>
  4380. <div
  4381. class="group_work"
  4382. v-if="
  4383. g.works &&
  4384. g.works.length &&
  4385. g.works[toolIndex].length
  4386. "
  4387. >
  4388. <div
  4389. class="works"
  4390. style="
  4391. width: 200px;
  4392. height: 140px;
  4393. margin: 10px 10px 10px 0;
  4394. border-radius: 15px;
  4395. box-shadow: 0 0 6px 1px #dfdada;
  4396. "
  4397. v-for="(w, wIndex) in g.works[toolIndex]"
  4398. :key="wIndex"
  4399. :class="w.type == 1 ? 'isTypeOne' : ''"
  4400. >
  4401. <div class="workImg">
  4402. <img
  4403. :src="w.works"
  4404. @click="previewImg(w.works)"
  4405. alt
  4406. />
  4407. <div
  4408. class="answerScore"
  4409. v-if="w.score"
  4410. @click.stop="openScore(w)"
  4411. :class="{
  4412. rightW:
  4413. w.userid == userid ||
  4414. tType == 1 ||
  4415. tType == 4,
  4416. }"
  4417. >
  4418. {{ JSON.parse(w.score).wScore }}分
  4419. </div>
  4420. <div
  4421. class="answerScore"
  4422. @click.stop="openScore(w)"
  4423. v-else-if="courseDetail.userid == userid"
  4424. :class="{
  4425. rightW:
  4426. w.userid == userid ||
  4427. tType == 1 ||
  4428. tType == 4,
  4429. }"
  4430. >
  4431. 评分
  4432. </div>
  4433. <img
  4434. class="deleteImg"
  4435. src="../assets/deleteworks.png"
  4436. v-if="
  4437. w.userid == userid || tType == 1 || tType == 4
  4438. "
  4439. @click.stop="deleteWorks(w.wid)"
  4440. alt
  4441. />
  4442. </div>
  4443. <div class="comment" style="min-width: 200px">
  4444. <div class="worksName">
  4445. <div>{{ w.sName }}</div>
  4446. </div>
  4447. <div class="commentList">
  4448. <div class="commentList">
  4449. <div
  4450. class="commentImg"
  4451. @click="
  4452. isLikes(w.wid, userid, 1, null, w.isLikes)
  4453. "
  4454. >
  4455. <img
  4456. :src="w.isLikes == true ? likes : noLikes"
  4457. alt=""
  4458. />
  4459. </div>
  4460. <div>{{ w.likesCount }}</div>
  4461. </div>
  4462. <div
  4463. class="commentList"
  4464. style="margin-right: 15px"
  4465. >
  4466. <div
  4467. class="commentImg"
  4468. @click="
  4469. commentOther(
  4470. w,
  4471. toolIndex,
  4472. wIndex,
  4473. null,
  4474. g.id
  4475. )
  4476. "
  4477. >
  4478. <img
  4479. src="../assets/icon/comment/comment.png"
  4480. alt=""
  4481. />
  4482. </div>
  4483. <div>{{ w.commentCount }}</div>
  4484. </div>
  4485. </div>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. <div class="group_work" v-else>暂无提交作业</div>
  4490. </div>
  4491. </div>
  4492. <div
  4493. class="worksDetailBox"
  4494. v-if="
  4495. worksStudent.length &&
  4496. worksStudent[toolIndex].length > 0
  4497. "
  4498. >
  4499. <div
  4500. class="works"
  4501. style="
  4502. width: 200px;
  4503. height: 140px;
  4504. margin: 10px 10px 10px 0;
  4505. border-radius: 15px;
  4506. box-shadow: 0 0 6px 1px #dfdada;
  4507. "
  4508. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4509. 0
  4510. ? worksStudent[toolIndex]
  4511. : worksStudent[toolIndex].slice(0, 6)"
  4512. :key="wIndex"
  4513. >
  4514. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4515. <div class="workImg">
  4516. <img
  4517. :src="w.works"
  4518. @click="previewImg(w.works)"
  4519. alt
  4520. />
  4521. <div
  4522. class="answerScore"
  4523. v-if="w.score"
  4524. @click.stop="openScore(w)"
  4525. :class="{
  4526. rightW:
  4527. w.userid == userid || tType == 1 || tType == 4,
  4528. }"
  4529. >
  4530. {{ JSON.parse(w.score).wScore }}分
  4531. </div>
  4532. <div
  4533. class="answerScore"
  4534. @click.stop="openScore(w)"
  4535. v-else-if="courseDetail.userid == userid"
  4536. :class="{
  4537. rightW:
  4538. w.userid == userid || tType == 1 || tType == 4,
  4539. }"
  4540. >
  4541. 评分
  4542. </div>
  4543. <img
  4544. class="deleteImg"
  4545. src="../assets/deleteworks.png"
  4546. v-if="
  4547. w.userid == userid || tType == 1 || tType == 4
  4548. "
  4549. @click.stop="deleteWorks(w.wid)"
  4550. alt
  4551. />
  4552. </div>
  4553. <div class="comment" style="min-width: 200px">
  4554. <div class="worksName">
  4555. <div>{{ w.sName }}</div>
  4556. </div>
  4557. <div class="commentList">
  4558. <div class="commentList">
  4559. <div
  4560. class="commentImg"
  4561. @click="
  4562. isLikes(w.wid, userid, 1, null, w.isLikes)
  4563. "
  4564. >
  4565. <img
  4566. :src="w.isLikes == true ? likes : noLikes"
  4567. alt=""
  4568. />
  4569. </div>
  4570. <div>{{ w.likesCount }}</div>
  4571. </div>
  4572. <div class="commentList" style="margin-right: 15px">
  4573. <div
  4574. class="commentImg"
  4575. @click="commentOther(w, toolIndex, wIndex)"
  4576. >
  4577. <img
  4578. src="../assets/icon/comment/comment.png"
  4579. alt=""
  4580. />
  4581. </div>
  4582. <div>{{ w.commentCount }}</div>
  4583. </div>
  4584. </div>
  4585. </div>
  4586. </div>
  4587. </div>
  4588. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4589. 未提交
  4590. </div>
  4591. <div class="noWorksS">
  4592. <div
  4593. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4594. :key="sIndex"
  4595. class="noWorksName"
  4596. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4597. >
  4598. {{ s.student }}
  4599. </div>
  4600. </div>
  4601. </div>
  4602. <div
  4603. v-if="
  4604. tType &&
  4605. ((tType == 2 && sIsOpen == true) ||
  4606. tType == 1 ||
  4607. tType == 4) &&
  4608. tool.tool.indexOf(3) != -1
  4609. "
  4610. class="worksBox"
  4611. >
  4612. <div
  4613. class="zuoyeYulan"
  4614. v-if="
  4615. worksStudent.length &&
  4616. worksStudent[toolIndex].length > 0
  4617. "
  4618. >
  4619. <div class="worksTop">
  4620. <div>作业预览</div>
  4621. <div
  4622. class="corOpen"
  4623. @click="contract(toolIndex)"
  4624. v-if="
  4625. worksStudent[toolIndex].length > 6 &&
  4626. isCloseList[toolIndex].isClose == 0
  4627. "
  4628. >
  4629. 收缩
  4630. </div>
  4631. <div
  4632. class="corOpen"
  4633. @click="contract(toolIndex)"
  4634. v-if="isCloseList[toolIndex].isClose == 1"
  4635. >
  4636. 展开
  4637. </div>
  4638. </div>
  4639. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4640. </div>
  4641. <div
  4642. class="group_workBox"
  4643. v-for="(g, gindex) in courseGroup.group"
  4644. :key="gindex"
  4645. >
  4646. <div class="group_box">
  4647. <div class="group_title">
  4648. <el-tooltip
  4649. class="item"
  4650. effect="light"
  4651. :content="g.name"
  4652. placement="top"
  4653. >
  4654. <div class="group_name">{{ g.name }}</div>
  4655. </el-tooltip>
  4656. </div>
  4657. <div
  4658. class="group_work"
  4659. v-if="
  4660. g.works &&
  4661. g.works.length &&
  4662. g.works[toolIndex].length
  4663. "
  4664. >
  4665. <div
  4666. class="works"
  4667. style="
  4668. width: 200px;
  4669. height: 140px;
  4670. margin: 10px 10px 10px 0;
  4671. border-radius: 15px;
  4672. box-shadow: 0 0 6px 1px #dfdada;
  4673. "
  4674. v-for="(w, wIndex) in g.works[toolIndex]"
  4675. :key="wIndex"
  4676. :class="w.type == 1 ? 'isTypeOne' : ''"
  4677. >
  4678. <div class="workImg">
  4679. <img
  4680. :src="w.works"
  4681. @click="previewImg(w.works)"
  4682. alt
  4683. />
  4684. <div
  4685. class="answerScore"
  4686. v-if="w.score"
  4687. @click.stop="openScore(w)"
  4688. :class="{
  4689. rightW:
  4690. w.userid == userid ||
  4691. tType == 1 ||
  4692. tType == 4,
  4693. }"
  4694. >
  4695. {{ JSON.parse(w.score).wScore }}分
  4696. </div>
  4697. <div
  4698. class="answerScore"
  4699. @click.stop="openScore(w)"
  4700. v-else-if="courseDetail.userid == userid"
  4701. :class="{
  4702. rightW:
  4703. w.userid == userid ||
  4704. tType == 1 ||
  4705. tType == 4,
  4706. }"
  4707. >
  4708. 评分
  4709. </div>
  4710. <img
  4711. class="deleteImg"
  4712. src="../assets/deleteworks.png"
  4713. v-if="
  4714. w.userid == userid || tType == 1 || tType == 4
  4715. "
  4716. @click.stop="deleteWorks(w.wid)"
  4717. alt
  4718. />
  4719. </div>
  4720. <div class="comment" style="min-width: 200px">
  4721. <div class="worksName">
  4722. <div>{{ w.sName }}</div>
  4723. </div>
  4724. <div class="commentList">
  4725. <div class="commentList">
  4726. <div
  4727. class="commentImg"
  4728. @click="
  4729. isLikes(w.wid, userid, 1, null, w.isLikes)
  4730. "
  4731. >
  4732. <img
  4733. :src="w.isLikes == true ? likes : noLikes"
  4734. alt=""
  4735. />
  4736. </div>
  4737. <div>{{ w.likesCount }}</div>
  4738. </div>
  4739. <div
  4740. class="commentList"
  4741. style="margin-right: 15px"
  4742. >
  4743. <div
  4744. class="commentImg"
  4745. @click="
  4746. commentOther(
  4747. w,
  4748. toolIndex,
  4749. wIndex,
  4750. null,
  4751. g.id
  4752. )
  4753. "
  4754. >
  4755. <img
  4756. src="../assets/icon/comment/comment.png"
  4757. alt=""
  4758. />
  4759. </div>
  4760. <div>{{ w.commentCount }}</div>
  4761. </div>
  4762. </div>
  4763. </div>
  4764. </div>
  4765. </div>
  4766. <div class="group_work" v-else>暂无提交作业</div>
  4767. </div>
  4768. </div>
  4769. <div
  4770. class="worksDetailBox"
  4771. v-if="
  4772. worksStudent.length &&
  4773. worksStudent[toolIndex].length > 0
  4774. "
  4775. >
  4776. <div
  4777. class="works"
  4778. style="
  4779. width: 200px;
  4780. height: 140px;
  4781. margin: 10px 10px 10px 0;
  4782. border-radius: 15px;
  4783. box-shadow: 0 0 6px 1px #dfdada;
  4784. "
  4785. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4786. 0
  4787. ? worksStudent[toolIndex]
  4788. : worksStudent[toolIndex].slice(0, 6)"
  4789. :key="wIndex"
  4790. >
  4791. <!-- @click="previewImg(w.works)" -->
  4792. <div class="workImg">
  4793. <img
  4794. :src="w.works"
  4795. @click="previewImg(w.works)"
  4796. alt
  4797. />
  4798. <div
  4799. class="answerScore"
  4800. v-if="w.score"
  4801. @click.stop="openScore(w)"
  4802. :class="{
  4803. rightW:
  4804. w.userid == userid || tType == 1 || tType == 4,
  4805. }"
  4806. >
  4807. {{ JSON.parse(w.score).wScore }}分
  4808. </div>
  4809. <div
  4810. class="answerScore"
  4811. @click.stop="openScore(w)"
  4812. v-else-if="courseDetail.userid == userid"
  4813. :class="{
  4814. rightW:
  4815. w.userid == userid || tType == 1 || tType == 4,
  4816. }"
  4817. >
  4818. 评分
  4819. </div>
  4820. <img
  4821. class="deleteImg"
  4822. src="../assets/deleteworks.png"
  4823. v-if="
  4824. w.userid == userid || tType == 1 || tType == 4
  4825. "
  4826. @click.stop="deleteWorks(w.wid)"
  4827. alt
  4828. />
  4829. </div>
  4830. <div class="comment" style="min-width: 200px">
  4831. <div class="worksName">
  4832. <div>{{ w.sName }}</div>
  4833. </div>
  4834. <div class="commentList">
  4835. <div class="commentList">
  4836. <div
  4837. class="commentImg"
  4838. @click="
  4839. isLikes(w.wid, userid, 1, null, w.isLikes)
  4840. "
  4841. >
  4842. <img
  4843. :src="w.isLikes == true ? likes : noLikes"
  4844. alt=""
  4845. />
  4846. </div>
  4847. <div>{{ w.likesCount }}</div>
  4848. </div>
  4849. <div class="commentList" style="margin-right: 15px">
  4850. <div
  4851. class="commentImg"
  4852. @click="commentOther(w, toolIndex, wIndex)"
  4853. >
  4854. <img
  4855. src="../assets/icon/comment/comment.png"
  4856. alt=""
  4857. />
  4858. </div>
  4859. <div>{{ w.commentCount }}</div>
  4860. </div>
  4861. </div>
  4862. </div>
  4863. </div>
  4864. </div>
  4865. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4866. 未提交
  4867. </div>
  4868. <div class="noWorksS">
  4869. <div
  4870. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4871. :key="sIndex"
  4872. class="noWorksName"
  4873. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4874. >
  4875. {{ s.student }}
  4876. </div>
  4877. </div>
  4878. </div>
  4879. <div
  4880. v-if="
  4881. tType &&
  4882. ((tType == 2 && sIsOpen == true) ||
  4883. tType == 1 ||
  4884. tType == 4) &&
  4885. tool.tool.indexOf(6) != -1
  4886. "
  4887. class="worksBox"
  4888. >
  4889. <div
  4890. class="zuoyeYulan"
  4891. v-if="
  4892. worksStudent.length &&
  4893. worksStudent[toolIndex].length > 0
  4894. "
  4895. >
  4896. <div class="worksTop">
  4897. <div>作业预览</div>
  4898. <div
  4899. class="corOpen"
  4900. @click="contract(toolIndex)"
  4901. v-if="
  4902. worksStudent[toolIndex].length > 6 &&
  4903. isCloseList[toolIndex].isClose == 0
  4904. "
  4905. >
  4906. 收缩
  4907. </div>
  4908. <div
  4909. class="corOpen"
  4910. @click="contract(toolIndex)"
  4911. v-if="isCloseList[toolIndex].isClose == 1"
  4912. >
  4913. 展开
  4914. </div>
  4915. </div>
  4916. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4917. </div>
  4918. <div
  4919. class="group_workBox"
  4920. v-for="(g, gindex) in courseGroup.group"
  4921. :key="gindex"
  4922. >
  4923. <div class="group_box">
  4924. <div class="group_title">
  4925. <el-tooltip
  4926. class="item"
  4927. effect="light"
  4928. :content="g.name"
  4929. placement="top"
  4930. >
  4931. <div class="group_name">{{ g.name }}</div>
  4932. </el-tooltip>
  4933. </div>
  4934. <div
  4935. class="group_work"
  4936. v-if="
  4937. g.works &&
  4938. g.works.length &&
  4939. g.works[toolIndex].length
  4940. "
  4941. >
  4942. <div
  4943. class="works"
  4944. style="
  4945. width: 200px;
  4946. height: 140px;
  4947. margin: 10px 10px 10px 0;
  4948. border-radius: 15px;
  4949. box-shadow: 0 0 6px 1px #dfdada;
  4950. "
  4951. v-for="(w, wIndex) in g.works[toolIndex]"
  4952. :key="wIndex"
  4953. :class="w.type == 1 ? 'isTypeOne' : ''"
  4954. >
  4955. <div class="workImg">
  4956. <img
  4957. :src="w.works"
  4958. @click="previewImg(w.works)"
  4959. alt
  4960. />
  4961. <div
  4962. class="answerScore"
  4963. v-if="w.score"
  4964. @click.stop="openScore(w)"
  4965. :class="{
  4966. rightW:
  4967. w.userid == userid ||
  4968. tType == 1 ||
  4969. tType == 4,
  4970. }"
  4971. >
  4972. {{ JSON.parse(w.score).wScore }}分
  4973. </div>
  4974. <div
  4975. class="answerScore"
  4976. @click.stop="openScore(w)"
  4977. v-else-if="courseDetail.userid == userid"
  4978. :class="{
  4979. rightW:
  4980. w.userid == userid ||
  4981. tType == 1 ||
  4982. tType == 4,
  4983. }"
  4984. >
  4985. 评分
  4986. </div>
  4987. <img
  4988. class="deleteImg"
  4989. src="../assets/deleteworks.png"
  4990. v-if="
  4991. w.userid == userid || tType == 1 || tType == 4
  4992. "
  4993. @click.stop="deleteWorks(w.wid)"
  4994. alt
  4995. />
  4996. </div>
  4997. <div class="comment" style="min-width: 200px">
  4998. <div class="worksName">
  4999. <div>{{ w.sName }}</div>
  5000. </div>
  5001. <div class="commentList">
  5002. <div class="commentList">
  5003. <div
  5004. class="commentImg"
  5005. @click="
  5006. isLikes(w.wid, userid, 1, null, w.isLikes)
  5007. "
  5008. >
  5009. <img
  5010. :src="w.isLikes == true ? likes : noLikes"
  5011. alt=""
  5012. />
  5013. </div>
  5014. <div>{{ w.likesCount }}</div>
  5015. </div>
  5016. <div
  5017. class="commentList"
  5018. style="margin-right: 15px"
  5019. >
  5020. <div
  5021. class="commentImg"
  5022. @click="
  5023. commentOther(
  5024. w,
  5025. toolIndex,
  5026. wIndex,
  5027. null,
  5028. g.id
  5029. )
  5030. "
  5031. >
  5032. <img
  5033. src="../assets/icon/comment/comment.png"
  5034. alt=""
  5035. />
  5036. </div>
  5037. <div>{{ w.commentCount }}</div>
  5038. </div>
  5039. </div>
  5040. </div>
  5041. </div>
  5042. </div>
  5043. <div class="group_work" v-else>暂无提交作业</div>
  5044. </div>
  5045. </div>
  5046. <div
  5047. class="worksDetailBox"
  5048. v-if="
  5049. worksStudent.length &&
  5050. worksStudent[toolIndex].length > 0
  5051. "
  5052. >
  5053. <div
  5054. class="works"
  5055. style="
  5056. width: 200px;
  5057. height: 140px;
  5058. margin: 10px 10px 10px 0;
  5059. border-radius: 15px;
  5060. box-shadow: 0 0 6px 1px #dfdada;
  5061. "
  5062. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5063. 0
  5064. ? worksStudent[toolIndex]
  5065. : worksStudent[toolIndex].slice(0, 6)"
  5066. :key="wIndex"
  5067. >
  5068. <!-- @click="previewImg(w.works)" -->
  5069. <div class="workImg">
  5070. <img
  5071. :src="w.works"
  5072. @click="previewImg(w.works)"
  5073. alt
  5074. />
  5075. <div
  5076. class="answerScore"
  5077. v-if="w.score"
  5078. @click.stop="openScore(w)"
  5079. :class="{
  5080. rightW:
  5081. w.userid == userid || tType == 1 || tType == 4,
  5082. }"
  5083. >
  5084. {{ JSON.parse(w.score).wScore }}分
  5085. </div>
  5086. <div
  5087. class="answerScore"
  5088. @click.stop="openScore(w)"
  5089. v-else-if="courseDetail.userid == userid"
  5090. :class="{
  5091. rightW:
  5092. w.userid == userid || tType == 1 || tType == 4,
  5093. }"
  5094. >
  5095. 评分
  5096. </div>
  5097. <img
  5098. class="deleteImg"
  5099. src="../assets/deleteworks.png"
  5100. v-if="
  5101. w.userid == userid || tType == 1 || tType == 4
  5102. "
  5103. @click.stop="deleteWorks(w.wid)"
  5104. alt
  5105. />
  5106. </div>
  5107. <div class="comment" style="min-width: 200px">
  5108. <div class="worksName">
  5109. <div>{{ w.sName }}</div>
  5110. </div>
  5111. <div class="commentList">
  5112. <div class="commentList">
  5113. <div
  5114. class="commentImg"
  5115. @click="
  5116. isLikes(w.wid, userid, 1, null, w.isLikes)
  5117. "
  5118. >
  5119. <img
  5120. :src="w.isLikes == true ? likes : noLikes"
  5121. alt=""
  5122. />
  5123. </div>
  5124. <div>{{ w.likesCount }}</div>
  5125. </div>
  5126. <div class="commentList" style="margin-right: 15px">
  5127. <div
  5128. class="commentImg"
  5129. @click="commentOther(w, toolIndex, wIndex)"
  5130. >
  5131. <img
  5132. src="../assets/icon/comment/comment.png"
  5133. alt=""
  5134. />
  5135. </div>
  5136. <div>{{ w.commentCount }}</div>
  5137. </div>
  5138. </div>
  5139. </div>
  5140. </div>
  5141. </div>
  5142. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5143. 未提交
  5144. </div>
  5145. <div class="noWorksS">
  5146. <div
  5147. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5148. :key="sIndex"
  5149. class="noWorksName"
  5150. >
  5151. {{ s.student }}
  5152. </div>
  5153. </div>
  5154. </div>
  5155. <div
  5156. v-if="
  5157. tType &&
  5158. ((tType == 2 && sIsOpen == true) ||
  5159. tType == 1 ||
  5160. tType == 4) &&
  5161. tool.tool.indexOf(7) != -1
  5162. "
  5163. class="worksBox"
  5164. >
  5165. <div
  5166. class="zuoyeYulan"
  5167. v-if="
  5168. worksStudent.length &&
  5169. worksStudent[toolIndex].length > 0
  5170. "
  5171. >
  5172. <div class="worksTop">
  5173. <div>作业预览</div>
  5174. <div
  5175. class="corOpen"
  5176. @click="contract(toolIndex)"
  5177. v-if="
  5178. worksStudent[toolIndex].length > 6 &&
  5179. isCloseList[toolIndex].isClose == 0
  5180. "
  5181. >
  5182. 收缩
  5183. </div>
  5184. <div
  5185. class="corOpen"
  5186. @click="contract(toolIndex)"
  5187. v-if="isCloseList[toolIndex].isClose == 1"
  5188. >
  5189. 展开
  5190. </div>
  5191. </div>
  5192. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5193. </div>
  5194. <div
  5195. class="group_workBox"
  5196. v-for="(g, gindex) in courseGroup.group"
  5197. :key="gindex"
  5198. >
  5199. <div class="group_box">
  5200. <div class="group_title">
  5201. <el-tooltip
  5202. class="item"
  5203. effect="light"
  5204. :content="g.name"
  5205. placement="top"
  5206. >
  5207. <div class="group_name">{{ g.name }}</div>
  5208. </el-tooltip>
  5209. </div>
  5210. <div
  5211. class="group_work"
  5212. v-if="
  5213. g.works &&
  5214. g.works.length &&
  5215. g.works[toolIndex].length
  5216. "
  5217. >
  5218. <div
  5219. class="works"
  5220. style="
  5221. width: 200px;
  5222. height: 140px;
  5223. margin: 10px 10px 10px 0;
  5224. border-radius: 15px;
  5225. box-shadow: 0 0 6px 1px #dfdada;
  5226. "
  5227. v-for="(w, wIndex) in g.works[toolIndex]"
  5228. :key="wIndex"
  5229. :class="w.type == 1 ? 'isTypeOne' : ''"
  5230. >
  5231. <div class="workImg">
  5232. <img
  5233. :src="w.works"
  5234. @click="previewImg(w.works)"
  5235. alt
  5236. />
  5237. <div
  5238. class="answerScore"
  5239. v-if="w.score"
  5240. @click.stop="openScore(w)"
  5241. :class="{
  5242. rightW:
  5243. w.userid == userid ||
  5244. tType == 1 ||
  5245. tType == 4,
  5246. }"
  5247. >
  5248. {{ JSON.parse(w.score).wScore }}分
  5249. </div>
  5250. <div
  5251. class="answerScore"
  5252. @click.stop="openScore(w)"
  5253. v-else-if="courseDetail.userid == userid"
  5254. :class="{
  5255. rightW:
  5256. w.userid == userid ||
  5257. tType == 1 ||
  5258. tType == 4,
  5259. }"
  5260. >
  5261. 评分
  5262. </div>
  5263. <img
  5264. class="deleteImg"
  5265. src="../assets/deleteworks.png"
  5266. v-if="
  5267. w.userid == userid || tType == 1 || tType == 4
  5268. "
  5269. @click.stop="deleteWorks(w.wid)"
  5270. alt
  5271. />
  5272. </div>
  5273. <div class="comment" style="min-width: 200px">
  5274. <div class="worksName">
  5275. <div>{{ w.sName }}</div>
  5276. </div>
  5277. <div class="commentList">
  5278. <div class="commentList">
  5279. <div
  5280. class="commentImg"
  5281. @click="
  5282. isLikes(w.wid, userid, 1, null, w.isLikes)
  5283. "
  5284. >
  5285. <img
  5286. :src="w.isLikes == true ? likes : noLikes"
  5287. alt=""
  5288. />
  5289. </div>
  5290. <div>{{ w.likesCount }}</div>
  5291. </div>
  5292. <div
  5293. class="commentList"
  5294. style="margin-right: 15px"
  5295. >
  5296. <div
  5297. class="commentImg"
  5298. @click="
  5299. commentOther(
  5300. w,
  5301. toolIndex,
  5302. wIndex,
  5303. null,
  5304. g.id
  5305. )
  5306. "
  5307. >
  5308. <img
  5309. src="../assets/icon/comment/comment.png"
  5310. alt=""
  5311. />
  5312. </div>
  5313. <div>{{ w.commentCount }}</div>
  5314. </div>
  5315. </div>
  5316. </div>
  5317. </div>
  5318. </div>
  5319. <div class="group_work" v-else>暂无提交作业</div>
  5320. </div>
  5321. </div>
  5322. <div
  5323. class="worksDetailBox"
  5324. v-if="
  5325. worksStudent.length &&
  5326. worksStudent[toolIndex].length > 0
  5327. "
  5328. >
  5329. <div
  5330. class="works"
  5331. style="
  5332. width: 200px;
  5333. height: 140px;
  5334. margin: 10px 10px 10px 0;
  5335. border-radius: 15px;
  5336. box-shadow: 0 0 6px 1px #dfdada;
  5337. "
  5338. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5339. 0
  5340. ? worksStudent[toolIndex]
  5341. : worksStudent[toolIndex].slice(0, 6)"
  5342. :key="wIndex"
  5343. >
  5344. <!-- @click="previewImg(w.works)" -->
  5345. <div class="workImg">
  5346. <img
  5347. :src="w.works"
  5348. @click="previewImg(w.works)"
  5349. alt
  5350. />
  5351. <div
  5352. class="answerScore"
  5353. v-if="w.score"
  5354. @click.stop="openScore(w)"
  5355. :class="{
  5356. rightW:
  5357. w.userid == userid || tType == 1 || tType == 4,
  5358. }"
  5359. >
  5360. {{ JSON.parse(w.score).wScore }}分
  5361. </div>
  5362. <div
  5363. class="answerScore"
  5364. @click.stop="openScore(w)"
  5365. v-else-if="courseDetail.userid == userid"
  5366. :class="{
  5367. rightW:
  5368. w.userid == userid || tType == 1 || tType == 4,
  5369. }"
  5370. >
  5371. 评分
  5372. </div>
  5373. <img
  5374. class="deleteImg"
  5375. src="../assets/deleteworks.png"
  5376. v-if="
  5377. w.userid == userid || tType == 1 || tType == 4
  5378. "
  5379. @click.stop="deleteWorks(w.wid)"
  5380. alt
  5381. />
  5382. </div>
  5383. <div class="comment" style="min-width: 200px">
  5384. <div class="worksName">
  5385. <div>{{ w.sName }}</div>
  5386. </div>
  5387. <div class="commentList">
  5388. <div class="commentList">
  5389. <div
  5390. class="commentImg"
  5391. @click="
  5392. isLikes(w.wid, userid, 1, null, w.isLikes)
  5393. "
  5394. >
  5395. <img
  5396. :src="w.isLikes == true ? likes : noLikes"
  5397. alt=""
  5398. />
  5399. </div>
  5400. <div>{{ w.likesCount }}</div>
  5401. </div>
  5402. <div class="commentList" style="margin-right: 15px">
  5403. <div
  5404. class="commentImg"
  5405. @click="commentOther(w, toolIndex, wIndex)"
  5406. >
  5407. <img
  5408. src="../assets/icon/comment/comment.png"
  5409. alt=""
  5410. />
  5411. </div>
  5412. <div>{{ w.commentCount }}</div>
  5413. </div>
  5414. </div>
  5415. </div>
  5416. </div>
  5417. </div>
  5418. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5419. 未提交
  5420. </div>
  5421. <div class="noWorksS">
  5422. <div
  5423. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5424. :key="sIndex"
  5425. class="noWorksName"
  5426. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5427. >
  5428. {{ s.student }}
  5429. </div>
  5430. </div>
  5431. </div>
  5432. <div
  5433. v-if="
  5434. tType &&
  5435. ((tType == 2 && sIsOpen == true) ||
  5436. tType == 1 ||
  5437. tType == 4) &&
  5438. tool.tool.indexOf(26) != -1
  5439. "
  5440. class="worksBox"
  5441. >
  5442. <div
  5443. class="zuoyeYulan"
  5444. v-if="
  5445. worksStudent.length &&
  5446. worksStudent[toolIndex].length > 0
  5447. "
  5448. >
  5449. <div class="worksTop">
  5450. <div>作业预览</div>
  5451. <div
  5452. class="corOpen"
  5453. @click="contract(toolIndex)"
  5454. v-if="
  5455. worksStudent[toolIndex].length > 6 &&
  5456. isCloseList[toolIndex].isClose == 0
  5457. "
  5458. >
  5459. 收缩
  5460. </div>
  5461. <div
  5462. class="corOpen"
  5463. @click="contract(toolIndex)"
  5464. v-if="isCloseList[toolIndex].isClose == 1"
  5465. >
  5466. 展开
  5467. </div>
  5468. </div>
  5469. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5470. </div>
  5471. <div
  5472. class="worksDetailBox"
  5473. v-if="
  5474. worksStudent.length &&
  5475. worksStudent[toolIndex].length > 0
  5476. "
  5477. >
  5478. <div
  5479. class="works"
  5480. style="width: 240px; height: 140px; overflow: hidden"
  5481. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5482. 0
  5483. ? worksStudent[toolIndex]
  5484. : worksStudent[toolIndex].slice(0, 6)"
  5485. :key="wIndex"
  5486. :class="w.type == 1 ? 'isTypeOne' : ''"
  5487. >
  5488. <div class="workImg" v-if="w.type == 0">
  5489. <img
  5490. :src="w.works"
  5491. @click="previewImg(w.works)"
  5492. alt
  5493. />
  5494. <img
  5495. class="deleteImg"
  5496. src="../assets/deleteworks.png"
  5497. v-if="
  5498. w.userid == userid || tType == 1 || tType == 4
  5499. "
  5500. @click.stop="deleteWorks(w.wid)"
  5501. alt
  5502. />
  5503. </div>
  5504. <div class="workImg" v-if="w.type == 1">
  5505. <img :src="word" @click="openFile(w.works)" alt />
  5506. <img
  5507. class="deleteImg"
  5508. src="../assets/deleteworks.png"
  5509. v-if="
  5510. w.userid == userid || tType == 1 || tType == 4
  5511. "
  5512. @click.stop="deleteWorks(w.wid)"
  5513. alt
  5514. />
  5515. </div>
  5516. <div class="worksName">
  5517. <div>{{ w.sName }}</div>
  5518. </div>
  5519. </div>
  5520. </div>
  5521. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5522. 未提交
  5523. </div>
  5524. <div class="noWorksS">
  5525. <div
  5526. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5527. :key="sIndex"
  5528. class="noWorksName"
  5529. >
  5530. {{ s.student }}
  5531. </div>
  5532. </div>
  5533. </div>
  5534. <div
  5535. v-if="
  5536. tType &&
  5537. ((tType == 2 && sIsOpen == true) ||
  5538. tType == 1 ||
  5539. tType == 4) &&
  5540. tool.tool.indexOf(40) != -1
  5541. "
  5542. class="worksBox"
  5543. >
  5544. <div
  5545. class="zuoyeYulan"
  5546. v-if="
  5547. worksStudent.length &&
  5548. worksStudent[toolIndex].length > 0
  5549. "
  5550. >
  5551. <div class="worksTop">
  5552. <div>作业预览</div>
  5553. <div
  5554. class="corOpen"
  5555. @click="contract(toolIndex)"
  5556. v-if="
  5557. worksStudent[toolIndex].length > 6 &&
  5558. isCloseList[toolIndex].isClose == 0
  5559. "
  5560. >
  5561. 收缩
  5562. </div>
  5563. <div
  5564. class="corOpen"
  5565. @click="contract(toolIndex)"
  5566. v-if="isCloseList[toolIndex].isClose == 1"
  5567. >
  5568. 展开
  5569. </div>
  5570. </div>
  5571. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5572. </div>
  5573. <div
  5574. class="worksDetailBox"
  5575. v-if="
  5576. worksStudent.length &&
  5577. worksStudent[toolIndex].length > 0
  5578. "
  5579. >
  5580. <div
  5581. class="works"
  5582. style="
  5583. width: 200px;
  5584. height: 140px;
  5585. margin: 10px 10px 10px 0;
  5586. border-radius: 15px;
  5587. box-shadow: 0 0 6px 1px #dfdada;
  5588. "
  5589. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5590. 0
  5591. ? worksStudent[toolIndex]
  5592. : worksStudent[toolIndex].slice(0, 6)"
  5593. :key="wIndex"
  5594. :class="w.type == 1 ? 'isTypeOne' : ''"
  5595. >
  5596. <div class="workImg">
  5597. <img
  5598. src="../assets/icon/works/noImg.png"
  5599. @click="openPj(w.works, toolIndex)"
  5600. alt
  5601. />
  5602. <img
  5603. class="deleteImg"
  5604. src="../assets/deleteworks.png"
  5605. v-if="
  5606. w.userid == userid || tType == 1 || tType == 4
  5607. "
  5608. @click.stop="deleteWorks(w.wid)"
  5609. alt
  5610. />
  5611. </div>
  5612. <div class="comment" style="min-width: 200px">
  5613. <div class="worksName">
  5614. <div>{{ w.sName }}</div>
  5615. </div>
  5616. <div class="commentList">
  5617. <div class="commentList">
  5618. <div
  5619. class="commentImg"
  5620. @click="
  5621. isLikes(w.wid, userid, 1, null, w.isLikes)
  5622. "
  5623. >
  5624. <img
  5625. :src="w.isLikes == true ? likes : noLikes"
  5626. alt=""
  5627. />
  5628. </div>
  5629. <div>{{ w.likesCount }}</div>
  5630. </div>
  5631. <div class="commentList" style="margin-right: 15px">
  5632. <div
  5633. class="commentImg"
  5634. @click="commentOther(w, toolIndex, wIndex)"
  5635. >
  5636. <img
  5637. src="../assets/icon/comment/comment.png"
  5638. alt=""
  5639. />
  5640. </div>
  5641. <div>{{ w.commentCount }}</div>
  5642. </div>
  5643. </div>
  5644. </div>
  5645. </div>
  5646. </div>
  5647. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5648. 未提交
  5649. </div>
  5650. <div class="noWorksS">
  5651. <div
  5652. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5653. :key="sIndex"
  5654. class="noWorksName"
  5655. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5656. >
  5657. {{ s.student }}
  5658. </div>
  5659. </div>
  5660. </div>
  5661. <div
  5662. v-if="
  5663. tType &&
  5664. tType == 2 &&
  5665. !sIsOpen &&
  5666. tool.tool.indexOf(40) != -1
  5667. "
  5668. class="worksBox"
  5669. >
  5670. <div
  5671. class="zuoyeYulan"
  5672. v-if="workStudent[toolIndex].length > 0"
  5673. >
  5674. <span>作业预览</span>
  5675. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5676. </div>
  5677. <div
  5678. class="worksDetailBox"
  5679. v-if="workStudent[toolIndex].length > 0"
  5680. >
  5681. <div
  5682. class="works"
  5683. style="
  5684. width: 200px;
  5685. height: 140px;
  5686. margin: 10px 10px 10px 0;
  5687. "
  5688. v-for="(w, wIndex) in workStudent[toolIndex]"
  5689. :key="wIndex"
  5690. >
  5691. <div class="workImg">
  5692. <img
  5693. src="../assets/icon/works/noImg.png"
  5694. @click="openPj(w.works, toolIndex)"
  5695. alt
  5696. />
  5697. <img
  5698. class="deleteImg"
  5699. src="../assets/deleteworks.png"
  5700. v-if="
  5701. w.userid == userid || tType == 1 || tType == 4
  5702. "
  5703. @click.stop="deleteWorks(w.wid)"
  5704. alt
  5705. />
  5706. </div>
  5707. <div class="worksName">
  5708. <div>{{ w.sName }}</div>
  5709. </div>
  5710. </div>
  5711. </div>
  5712. </div>
  5713. <div
  5714. v-if="
  5715. tType &&
  5716. ((tType == 2 && sIsOpen == true) ||
  5717. tType == 1 ||
  5718. tType == 4) &&
  5719. tool.tool.indexOf(41) != -1
  5720. "
  5721. >
  5722. <AnswerData2
  5723. v-if="
  5724. worksStudent.length &&
  5725. worksStudent[toolIndex].length > 0
  5726. "
  5727. :problemJson="tool.selectJson.answer"
  5728. :people="worksStudent[toolIndex]"
  5729. ></AnswerData2>
  5730. </div>
  5731. <div
  5732. v-if="
  5733. tType &&
  5734. ((tType == 2 && sIsOpen == true) ||
  5735. tType == 1 ||
  5736. tType == 4) &&
  5737. tool.tool.indexOf(41) != -1
  5738. "
  5739. class="worksBox"
  5740. >
  5741. <div
  5742. class="zuoyeYulan"
  5743. v-if="
  5744. worksStudent.length &&
  5745. worksStudent[toolIndex].length > 0
  5746. "
  5747. >
  5748. <div class="worksTop">
  5749. <div>作业预览</div>
  5750. <div
  5751. class="corOpen"
  5752. @click="contract(toolIndex)"
  5753. v-if="
  5754. worksStudent[toolIndex].length > 6 &&
  5755. isCloseList[toolIndex].isClose == 0
  5756. "
  5757. >
  5758. 收缩
  5759. </div>
  5760. <div
  5761. class="corOpen"
  5762. @click="contract(toolIndex)"
  5763. v-if="isCloseList[toolIndex].isClose == 1"
  5764. >
  5765. 展开
  5766. </div>
  5767. </div>
  5768. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5769. </div>
  5770. <div
  5771. class="worksDetailBox"
  5772. v-if="
  5773. worksStudent.length &&
  5774. worksStudent[toolIndex].length > 0
  5775. "
  5776. >
  5777. <div
  5778. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5779. 0
  5780. ? worksStudent[toolIndex]
  5781. : worksStudent[toolIndex].slice(0, 6)"
  5782. :key="wIndex"
  5783. class="isWorksName"
  5784. @click="openXz(w, toolIndex)"
  5785. >
  5786. {{ w.sName }}
  5787. <img
  5788. class="deleteImg deleteImg2"
  5789. src="../assets/deleteworks.png"
  5790. v-if="w.userid == userid || tType == 1 || tType == 4"
  5791. @click.stop="deleteWorks(w.wid)"
  5792. alt
  5793. />
  5794. </div>
  5795. <!-- <div
  5796. class="works"
  5797. style="
  5798. width: 200px;
  5799. height: 140px;
  5800. margin: 10px 10px 10px 0;
  5801. border-radius: 15px;
  5802. box-shadow: 0 0 6px 1px #dfdada;
  5803. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5804. :class="w.type == 5 ? 'isTypeOne' : ''">
  5805. <div class="workImg">
  5806. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5807. </div>
  5808. <div class="worksName">
  5809. <div>{{ w.sName }}</div>
  5810. </div>
  5811. </div> -->
  5812. </div>
  5813. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5814. 未提交
  5815. </div>
  5816. <div class="noWorksS">
  5817. <div
  5818. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5819. :key="sIndex"
  5820. class="noWorksName"
  5821. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5822. >
  5823. {{ s.student }}
  5824. </div>
  5825. </div>
  5826. </div>
  5827. <div
  5828. v-if="
  5829. tType &&
  5830. tType == 2 &&
  5831. !sIsOpen &&
  5832. tool.tool.indexOf(41) != -1
  5833. "
  5834. class="worksBox"
  5835. >
  5836. <div
  5837. class="zuoyeYulan"
  5838. v-if="workStudent[toolIndex].length > 0"
  5839. >
  5840. <span>作业预览</span>
  5841. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5842. </div>
  5843. <div
  5844. class="worksDetailBox"
  5845. v-if="workStudent[toolIndex].length > 0"
  5846. >
  5847. <div
  5848. class="works"
  5849. style="
  5850. width: 200px;
  5851. height: 140px;
  5852. margin: 10px 10px 10px 0;
  5853. "
  5854. v-for="(w, wIndex) in workStudent[toolIndex]"
  5855. :key="wIndex"
  5856. >
  5857. <div class="workImg">
  5858. <img
  5859. src="../assets/icon/works/noImg.png"
  5860. @click="openXz(w, toolIndex)"
  5861. alt
  5862. />
  5863. <img
  5864. class="deleteImg"
  5865. src="../assets/deleteworks.png"
  5866. v-if="
  5867. w.userid == userid || tType == 1 || tType == 4
  5868. "
  5869. @click.stop="deleteWorks(w.wid)"
  5870. alt
  5871. />
  5872. </div>
  5873. <div class="worksName">
  5874. <div>{{ w.sName }}</div>
  5875. </div>
  5876. </div>
  5877. </div>
  5878. </div>
  5879. <div v-if="false" class="xuan_right_box">
  5880. <div
  5881. class="tool_right_box"
  5882. v-for="(item, index) in tool.sentenceList"
  5883. :key="index"
  5884. >
  5885. <div>
  5886. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  5887. </div>
  5888. <div class="right_box_xuan">
  5889. <span>正确率</span>
  5890. <span>{{
  5891. (checkJson[toolIndex][index].right
  5892. ? checkJson[toolIndex][index].right
  5893. : 0) + "%"
  5894. }}</span>
  5895. </div>
  5896. <div class="right_box_xuan">
  5897. <span>答对人数</span>
  5898. <span>{{
  5899. checkJson[toolIndex][index].rightPerson.length
  5900. }}</span>
  5901. </div>
  5902. </div>
  5903. </div>
  5904. <div
  5905. v-if="
  5906. tType &&
  5907. ((tType == 2 && sIsOpen == true) ||
  5908. tType == 1 ||
  5909. tType == 4) &&
  5910. tool.tool.indexOf(47) != -1
  5911. "
  5912. >
  5913. <AnswerData
  5914. v-if="
  5915. checkJson[toolIndex].length &&
  5916. (tool.sentenceList || tool.sentenceList.length > 0)
  5917. "
  5918. :people="checkJson[toolIndex]"
  5919. ></AnswerData>
  5920. </div>
  5921. <div
  5922. v-if="
  5923. tType &&
  5924. tType == 2 &&
  5925. !sIsOpen &&
  5926. tool.tool.indexOf(47) != -1
  5927. "
  5928. class="worksBox"
  5929. >
  5930. <div
  5931. class="zuoyeYulan"
  5932. v-if="workStudent[toolIndex].length > 0"
  5933. >
  5934. <span>作业预览</span>
  5935. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5936. </div>
  5937. <div
  5938. class="worksDetailBox"
  5939. v-if="workStudent[toolIndex].length > 0"
  5940. >
  5941. <div
  5942. class="works"
  5943. style="
  5944. width: 200px;
  5945. height: 140px;
  5946. margin: 10px 10px 10px 0;
  5947. "
  5948. v-for="(w, wIndex) in workStudent[toolIndex]"
  5949. :key="wIndex"
  5950. >
  5951. <!-- @click="openXz(w, toolIndex)" -->
  5952. <div class="workImg" @click="openSen(w, toolIndex)">
  5953. <img src="../assets/icon/works/noImg.png" alt />
  5954. <img
  5955. class="deleteImg"
  5956. src="../assets/deleteworks.png"
  5957. v-if="
  5958. w.userid == userid || tType == 1 || tType == 4
  5959. "
  5960. @click.stop="deleteWorks(w.wid)"
  5961. alt
  5962. />
  5963. </div>
  5964. <div class="worksName">
  5965. <div>
  5966. {{ w.sName }}
  5967. </div>
  5968. </div>
  5969. </div>
  5970. </div>
  5971. </div>
  5972. <div
  5973. v-if="
  5974. tType &&
  5975. ((tType == 2 && sIsOpen == true) ||
  5976. tType == 1 ||
  5977. tType == 4) &&
  5978. tool.tool.indexOf(47) != -1
  5979. "
  5980. class="worksBox"
  5981. >
  5982. <div
  5983. class="zuoyeYulan"
  5984. v-if="
  5985. worksStudent.length &&
  5986. worksStudent[toolIndex].length > 0
  5987. "
  5988. >
  5989. <div class="worksTop">
  5990. <div>作业预览</div>
  5991. <div
  5992. class="corOpen"
  5993. @click="contract(toolIndex)"
  5994. v-if="
  5995. worksStudent[toolIndex].length > 6 &&
  5996. isCloseList[toolIndex].isClose == 0
  5997. "
  5998. >
  5999. 收缩
  6000. </div>
  6001. <div
  6002. class="corOpen"
  6003. @click="contract(toolIndex)"
  6004. v-if="isCloseList[toolIndex].isClose == 1"
  6005. >
  6006. 展开
  6007. </div>
  6008. </div>
  6009. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6010. </div>
  6011. <div
  6012. class="worksDetailBox"
  6013. v-if="
  6014. worksStudent.length &&
  6015. worksStudent[toolIndex].length > 0
  6016. "
  6017. >
  6018. <!-- @click="openXz(w, toolIndex)" -->
  6019. <div
  6020. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6021. 0
  6022. ? worksStudent[toolIndex]
  6023. : worksStudent[toolIndex].slice(0, 6)"
  6024. :key="wIndex"
  6025. class="isWorksName"
  6026. @click="openSen(w, toolIndex)"
  6027. >
  6028. {{ w.sName }}
  6029. <img
  6030. class="deleteImg deleteImg2"
  6031. src="../assets/deleteworks.png"
  6032. v-if="w.userid == userid || tType == 1 || tType == 4"
  6033. @click.stop="deleteWorks(w.wid)"
  6034. alt
  6035. />
  6036. </div>
  6037. </div>
  6038. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6039. 未提交
  6040. </div>
  6041. <div class="noWorksS">
  6042. <div
  6043. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6044. :key="sIndex"
  6045. class="noWorksName"
  6046. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6047. >
  6048. {{ s.student }}
  6049. </div>
  6050. </div>
  6051. </div>
  6052. <div
  6053. v-if="
  6054. tType &&
  6055. ((tType == 2 && sIsOpen == true) ||
  6056. tType == 1 ||
  6057. tType == 4) &&
  6058. tool.tool.indexOf(48) != -1
  6059. "
  6060. class="worksBox"
  6061. >
  6062. <div
  6063. class="zuoyeYulan"
  6064. v-if="
  6065. worksStudent.length &&
  6066. worksStudent[toolIndex].length > 0
  6067. "
  6068. >
  6069. <div class="worksTop">
  6070. <div>作业预览</div>
  6071. <div
  6072. class="corOpen"
  6073. @click="contract(toolIndex)"
  6074. v-if="
  6075. worksStudent[toolIndex].length > 6 &&
  6076. isCloseList[toolIndex].isClose == 0
  6077. "
  6078. >
  6079. 收缩
  6080. </div>
  6081. <div
  6082. class="corOpen"
  6083. @click="contract(toolIndex)"
  6084. v-if="isCloseList[toolIndex].isClose == 1"
  6085. >
  6086. 展开
  6087. </div>
  6088. </div>
  6089. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6090. </div>
  6091. <div
  6092. class="worksDetailBox"
  6093. v-if="
  6094. worksStudent.length &&
  6095. worksStudent[toolIndex].length > 0
  6096. "
  6097. >
  6098. <div
  6099. class="works"
  6100. style="
  6101. width: 200px;
  6102. height: 140px;
  6103. margin: 10px 10px 10px 0;
  6104. border-radius: 15px;
  6105. box-shadow: 0 0 6px 1px #dfdada;
  6106. "
  6107. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6108. 0
  6109. ? worksStudent[toolIndex]
  6110. : worksStudent[toolIndex].slice(0, 6)"
  6111. :key="wIndex"
  6112. :class="w.type == 1 ? 'isTypeOne' : ''"
  6113. >
  6114. <div class="workImg">
  6115. <img :src="word" @click="openTable(w)" alt />
  6116. <!-- @click="openFile(w.works)" -->
  6117. <div
  6118. class="answerScore"
  6119. v-if="w.score"
  6120. @click.stop="openScore(w)"
  6121. :class="{
  6122. rightW:
  6123. w.userid == userid ||
  6124. tType == 1 ||
  6125. tType == 4 ||
  6126. w.ateacher == userid,
  6127. }"
  6128. >
  6129. {{ JSON.parse(w.score).wScore }}分
  6130. </div>
  6131. <div
  6132. class="answerScore"
  6133. @click.stop="openScore(w)"
  6134. v-else-if="courseDetail.userid == userid"
  6135. :class="{
  6136. rightW:
  6137. w.userid == userid ||
  6138. tType == 1 ||
  6139. tType == 4 ||
  6140. w.ateacher == userid,
  6141. }"
  6142. >
  6143. 评分
  6144. </div>
  6145. <img
  6146. class="deleteImg"
  6147. src="../assets/deleteworks.png"
  6148. v-if="
  6149. w.userid == userid || tType == 1 || tType == 4
  6150. "
  6151. @click.stop="deleteWorks(w.wid)"
  6152. alt
  6153. />
  6154. </div>
  6155. <div class="comment" style="min-width: 200px">
  6156. <div class="worksName">
  6157. <div>{{ w.sName }}</div>
  6158. </div>
  6159. <div class="commentList">
  6160. <div class="commentList">
  6161. <div
  6162. class="commentImg"
  6163. @click="
  6164. isLikes(w.wid, userid, 1, null, w.isLikes)
  6165. "
  6166. >
  6167. <img
  6168. :src="w.isLikes == true ? likes : noLikes"
  6169. alt=""
  6170. />
  6171. </div>
  6172. <div>{{ w.likesCount }}</div>
  6173. </div>
  6174. <div class="commentList" style="margin-right: 15px">
  6175. <div
  6176. class="commentImg"
  6177. @click="commentOther(w, toolIndex, wIndex)"
  6178. >
  6179. <img
  6180. src="../assets/icon/comment/comment.png"
  6181. alt=""
  6182. />
  6183. </div>
  6184. <div>{{ w.commentCount }}</div>
  6185. </div>
  6186. </div>
  6187. </div>
  6188. </div>
  6189. </div>
  6190. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6191. 未提交
  6192. </div>
  6193. <div class="noWorksS">
  6194. <div
  6195. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6196. :key="sIndex"
  6197. class="noWorksName"
  6198. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6199. >
  6200. {{ s.student }}
  6201. </div>
  6202. </div>
  6203. </div>
  6204. <div
  6205. v-if="
  6206. tType &&
  6207. tType == 2 &&
  6208. !sIsOpen &&
  6209. tool.tool.indexOf(48) != -1
  6210. "
  6211. class="worksBox"
  6212. >
  6213. <div
  6214. class="zuoyeYulan"
  6215. v-if="workStudent[toolIndex].length > 0"
  6216. >
  6217. <span>作业预览</span>
  6218. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6219. </div>
  6220. <div
  6221. class="worksDetailBox"
  6222. v-if="workStudent[toolIndex].length > 0"
  6223. >
  6224. <div
  6225. class="works"
  6226. style="
  6227. width: 200px;
  6228. height: 140px;
  6229. margin: 10px 10px 10px 0;
  6230. box-shadow: 0 0 6px 1px #dfdada;
  6231. "
  6232. v-for="(w, wIndex) in workStudent[toolIndex]"
  6233. :key="wIndex"
  6234. >
  6235. <div class="workImg">
  6236. <img :src="word" @click="openTable(w)" alt />
  6237. <div
  6238. class="answerScore"
  6239. v-if="w.score"
  6240. @click.stop="openScore(w)"
  6241. :class="{
  6242. rightW:
  6243. w.userid == userid || tType == 1 || tType == 4,
  6244. }"
  6245. >
  6246. {{ JSON.parse(w.score).wScore }}分
  6247. </div>
  6248. <div
  6249. class="answerScore"
  6250. @click.stop="openScore(w)"
  6251. v-else-if="courseDetail.userid == userid"
  6252. :class="{
  6253. rightW:
  6254. w.userid == userid || tType == 1 || tType == 4,
  6255. }"
  6256. >
  6257. 评分
  6258. </div>
  6259. <img
  6260. class="deleteImg"
  6261. src="../assets/deleteworks.png"
  6262. v-if="
  6263. w.userid == userid || tType == 1 || tType == 4
  6264. "
  6265. @click.stop="deleteWorks(w.wid)"
  6266. alt
  6267. />
  6268. </div>
  6269. <div class="worksName">
  6270. <div>{{ w.sName }}</div>
  6271. </div>
  6272. </div>
  6273. </div>
  6274. </div>
  6275. <div
  6276. v-if="
  6277. tType &&
  6278. ((tType == 2 && sIsOpen == true) ||
  6279. tType == 1 ||
  6280. tType == 4) &&
  6281. tool.tool.indexOf(52) != -1
  6282. "
  6283. class="worksBox"
  6284. >
  6285. <div
  6286. class="zuoyeYulan"
  6287. v-if="
  6288. worksStudent.length &&
  6289. worksStudent[toolIndex].length > 0
  6290. "
  6291. >
  6292. <div class="worksTop">
  6293. <div>作业预览</div>
  6294. <div
  6295. class="corOpen"
  6296. @click="contract(toolIndex)"
  6297. v-if="
  6298. worksStudent[toolIndex].length > 6 &&
  6299. isCloseList[toolIndex].isClose == 0
  6300. "
  6301. >
  6302. 收缩
  6303. </div>
  6304. <div
  6305. class="corOpen"
  6306. @click="contract(toolIndex)"
  6307. v-if="isCloseList[toolIndex].isClose == 1"
  6308. >
  6309. 展开
  6310. </div>
  6311. </div>
  6312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6313. </div>
  6314. <div
  6315. class="worksDetailBox"
  6316. v-if="
  6317. worksStudent.length &&
  6318. worksStudent[toolIndex].length > 0
  6319. "
  6320. >
  6321. <div
  6322. class="works"
  6323. style="
  6324. width: 200px;
  6325. height: 140px;
  6326. margin: 10px 10px 10px 0;
  6327. border-radius: 15px;
  6328. box-shadow: 0 0 6px 1px #dfdada;
  6329. "
  6330. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6331. 0
  6332. ? worksStudent[toolIndex]
  6333. : worksStudent[toolIndex].slice(0, 6)"
  6334. :key="wIndex"
  6335. :class="w.type == 1 ? 'isTypeOne' : ''"
  6336. >
  6337. <div class="workImg">
  6338. <img :src="word" @click="openWord(w)" alt />
  6339. <!-- @click="openFile(w.works)" -->
  6340. <div
  6341. class="answerScore"
  6342. v-if="w.score"
  6343. @click.stop="openScore(w)"
  6344. :class="{
  6345. rightW:
  6346. w.userid == userid ||
  6347. tType == 1 ||
  6348. tType == 4 ||
  6349. w.ateacher == userid,
  6350. }"
  6351. >
  6352. {{ JSON.parse(w.score).wScore }}分
  6353. </div>
  6354. <div
  6355. class="answerScore"
  6356. @click.stop="openScore(w)"
  6357. v-else-if="courseDetail.userid == userid"
  6358. :class="{
  6359. rightW:
  6360. w.userid == userid ||
  6361. tType == 1 ||
  6362. tType == 4 ||
  6363. w.ateacher == userid,
  6364. }"
  6365. >
  6366. 评分
  6367. </div>
  6368. <img
  6369. class="deleteImg"
  6370. src="../assets/deleteworks.png"
  6371. v-if="
  6372. w.userid == userid || tType == 1 || tType == 4
  6373. "
  6374. @click.stop="deleteWorks(w.wid)"
  6375. alt
  6376. />
  6377. </div>
  6378. <div class="comment" style="min-width: 200px">
  6379. <div class="worksName">
  6380. <div>{{ w.sName }}</div>
  6381. </div>
  6382. <div class="commentList">
  6383. <div class="commentList">
  6384. <div
  6385. class="commentImg"
  6386. @click="
  6387. isLikes(w.wid, userid, 1, null, w.isLikes)
  6388. "
  6389. >
  6390. <img
  6391. :src="w.isLikes == true ? likes : noLikes"
  6392. alt=""
  6393. />
  6394. </div>
  6395. <div>{{ w.likesCount }}</div>
  6396. </div>
  6397. <div class="commentList" style="margin-right: 15px">
  6398. <div
  6399. class="commentImg"
  6400. @click="commentOther(w, toolIndex, wIndex)"
  6401. >
  6402. <img
  6403. src="../assets/icon/comment/comment.png"
  6404. alt=""
  6405. />
  6406. </div>
  6407. <div>{{ w.commentCount }}</div>
  6408. </div>
  6409. </div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6414. 未提交
  6415. </div>
  6416. <div class="noWorksS">
  6417. <div
  6418. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6419. :key="sIndex"
  6420. class="noWorksName"
  6421. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6422. >
  6423. {{ s.student }}
  6424. </div>
  6425. </div>
  6426. </div>
  6427. <div
  6428. v-if="
  6429. tType &&
  6430. tType == 2 &&
  6431. !sIsOpen &&
  6432. tool.tool.indexOf(52) != -1
  6433. "
  6434. class="worksBox"
  6435. >
  6436. <div
  6437. class="zuoyeYulan"
  6438. v-if="workStudent[toolIndex].length > 0"
  6439. >
  6440. <span>作业预览</span>
  6441. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6442. </div>
  6443. <div
  6444. class="worksDetailBox"
  6445. v-if="workStudent[toolIndex].length > 0"
  6446. >
  6447. <div
  6448. class="works"
  6449. style="
  6450. width: 200px;
  6451. height: 140px;
  6452. margin: 10px 10px 10px 0;
  6453. box-shadow: 0 0 6px 1px #dfdada;
  6454. "
  6455. v-for="(w, wIndex) in workStudent[toolIndex]"
  6456. :key="wIndex"
  6457. >
  6458. <div class="workImg">
  6459. <img :src="word" @click="openWord(w)" alt />
  6460. <div
  6461. class="answerScore"
  6462. v-if="w.score"
  6463. @click.stop="openScore(w)"
  6464. :class="{
  6465. rightW:
  6466. w.userid == userid || tType == 1 || tType == 4,
  6467. }"
  6468. >
  6469. {{ JSON.parse(w.score).wScore }}分
  6470. </div>
  6471. <div
  6472. class="answerScore"
  6473. @click.stop="openScore(w)"
  6474. v-else-if="courseDetail.userid == userid"
  6475. :class="{
  6476. rightW:
  6477. w.userid == userid || tType == 1 || tType == 4,
  6478. }"
  6479. >
  6480. 评分
  6481. </div>
  6482. <img
  6483. class="deleteImg"
  6484. src="../assets/deleteworks.png"
  6485. v-if="
  6486. w.userid == userid || tType == 1 || tType == 4
  6487. "
  6488. @click.stop="deleteWorks(w.wid)"
  6489. alt
  6490. />
  6491. </div>
  6492. <div class="worksName">
  6493. <div>{{ w.sName }}</div>
  6494. </div>
  6495. </div>
  6496. </div>
  6497. </div>
  6498. <div
  6499. v-if="tool.tool.indexOf(49) != -1"
  6500. class="xuan_right_box"
  6501. >
  6502. <div
  6503. v-if="courseDetail.userid == userid"
  6504. style="display: flex; justify-content: flex-end"
  6505. >
  6506. <el-button
  6507. type="primary"
  6508. size="small"
  6509. @click="addTools(49, toolIndex, taskCount)"
  6510. >分组设置</el-button
  6511. >
  6512. </div>
  6513. <div
  6514. v-if="groupStudentUid[toolIndex]"
  6515. class="group_staic_box"
  6516. >
  6517. <div
  6518. v-for="(gp, gd) in tool.groupJson.group"
  6519. :key="gd"
  6520. class="group_staic"
  6521. >
  6522. <span> {{ gp.name }}</span>
  6523. <span>
  6524. 目前人数{{
  6525. groupStudentUid[toolIndex][gd].length
  6526. }}人</span
  6527. >
  6528. </div>
  6529. </div>
  6530. </div>
  6531. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6532. <div
  6533. class="zuoyeYulan"
  6534. v-if="
  6535. worksStudent.length &&
  6536. worksStudent[toolIndex].length > 0
  6537. "
  6538. >
  6539. <span>作业预览</span>
  6540. </div>
  6541. <div>
  6542. <div
  6543. class="group_workBox"
  6544. v-for="(g, gindex) in tool.groupJson.group"
  6545. :key="gindex"
  6546. >
  6547. <div
  6548. class="group_box"
  6549. v-if="
  6550. groupStudentUid[toolIndex] &&
  6551. worksStudent[toolIndex] &&
  6552. (worksStudent[toolIndex][gindex].length ||
  6553. groupStudentUid[toolIndex][gindex].indexOf(
  6554. userid
  6555. ) != -1)
  6556. "
  6557. >
  6558. <div class="group_title">
  6559. <el-tooltip
  6560. class="item"
  6561. effect="light"
  6562. :content="g.name"
  6563. placement="top"
  6564. >
  6565. <div class="group_name">{{ g.name }}</div>
  6566. </el-tooltip>
  6567. <el-button
  6568. type="primary"
  6569. v-if="
  6570. groupStudentUid[toolIndex][gindex].indexOf(
  6571. userid
  6572. ) != -1
  6573. "
  6574. @click="groupUpload(toolIndex, taskCount, gindex)"
  6575. >上传作业</el-button
  6576. >
  6577. </div>
  6578. <div class="group_work">
  6579. <div
  6580. class="works"
  6581. style="
  6582. width: 200px;
  6583. height: 140px;
  6584. margin: 10px 10px 10px 0;
  6585. border-radius: 15px;
  6586. box-shadow: 0 0 6px 1px #dfdada;
  6587. "
  6588. v-for="(w, wIndex) in worksStudent[toolIndex][
  6589. gindex
  6590. ]"
  6591. :key="wIndex"
  6592. :class="w.type == 1 ? 'isTypeOne' : ''"
  6593. >
  6594. <div class="workImg" v-if="w.type == 0">
  6595. <img
  6596. :src="w.works"
  6597. @click="previewImg(w.works)"
  6598. alt
  6599. />
  6600. <div
  6601. class="answerScore"
  6602. v-if="w.score"
  6603. @click.stop="openScore(w)"
  6604. :class="{
  6605. rightW:
  6606. w.userid == userid ||
  6607. tType == 1 ||
  6608. tType == 4 ||
  6609. w.ateacher == userid,
  6610. }"
  6611. >
  6612. {{ JSON.parse(w.score).wScore }}分
  6613. </div>
  6614. <div
  6615. class="answerScore"
  6616. @click.stop="openScore(w)"
  6617. v-else-if="courseDetail.userid == userid"
  6618. :class="{
  6619. rightW:
  6620. w.userid == userid ||
  6621. tType == 1 ||
  6622. tType == 4 ||
  6623. w.ateacher == userid,
  6624. }"
  6625. >
  6626. 评分
  6627. </div>
  6628. <img
  6629. class="deleteImg"
  6630. src="../assets/deleteworks.png"
  6631. v-if="
  6632. w.userid == userid ||
  6633. tType == 1 ||
  6634. tType == 4
  6635. "
  6636. @click.stop="deleteWorks(w.wid)"
  6637. alt
  6638. />
  6639. </div>
  6640. <div class="workImg" v-if="w.type == 1">
  6641. <img
  6642. :src="word"
  6643. @click="openFile(w.works)"
  6644. alt
  6645. />
  6646. <!-- @click="openFile(w.works)" -->
  6647. <div
  6648. class="answerScore"
  6649. v-if="w.score"
  6650. @click.stop="openScore(w)"
  6651. :class="{
  6652. rightW:
  6653. w.userid == userid ||
  6654. tType == 1 ||
  6655. tType == 4 ||
  6656. w.ateacher == userid,
  6657. }"
  6658. >
  6659. {{ JSON.parse(w.score).wScore }}分
  6660. </div>
  6661. <div
  6662. class="answerScore"
  6663. @click.stop="openScore(w)"
  6664. v-else-if="courseDetail.userid == userid"
  6665. :class="{
  6666. rightW:
  6667. w.userid == userid ||
  6668. tType == 1 ||
  6669. tType == 4 ||
  6670. w.ateacher == userid,
  6671. }"
  6672. >
  6673. 评分
  6674. </div>
  6675. <img
  6676. class="deleteImg"
  6677. src="../assets/deleteworks.png"
  6678. v-if="
  6679. w.userid == userid ||
  6680. tType == 1 ||
  6681. tType == 4
  6682. "
  6683. @click.stop="deleteWorks(w.wid)"
  6684. alt
  6685. />
  6686. </div>
  6687. <div class="workImg" v-if="w.type == 3">
  6688. <img
  6689. style="cursor: pointer"
  6690. :src="video"
  6691. @click="openVideo(w)"
  6692. alt
  6693. />
  6694. <!-- @click="openVideo(w.works)" -->
  6695. <div
  6696. class="answerScore"
  6697. v-if="w.score"
  6698. @click.stop="openScore(w)"
  6699. :class="{
  6700. rightW:
  6701. w.userid == userid ||
  6702. tType == 1 ||
  6703. tType == 4 ||
  6704. w.ateacher == userid,
  6705. }"
  6706. >
  6707. {{ JSON.parse(w.score).wScore }}分
  6708. </div>
  6709. <div
  6710. class="answerScore"
  6711. @click.stop="openScore(w)"
  6712. v-else-if="courseDetail.userid == userid"
  6713. :class="{
  6714. rightW:
  6715. w.userid == userid ||
  6716. tType == 1 ||
  6717. tType == 4 ||
  6718. w.ateacher == userid,
  6719. }"
  6720. >
  6721. 评分
  6722. </div>
  6723. <img
  6724. class="deleteImg"
  6725. src="../assets/deleteworks.png"
  6726. v-if="
  6727. w.userid == userid ||
  6728. tType == 1 ||
  6729. tType == 4
  6730. "
  6731. @click.stop="deleteWorks(w.wid)"
  6732. alt
  6733. />
  6734. </div>
  6735. <div class="workImg" v-if="w.type == 12">
  6736. <img
  6737. style="cursor: pointer"
  6738. :src="word2"
  6739. @click="downloadFile(w.works)"
  6740. alt
  6741. />
  6742. <!-- @click="openVideo(w.works)" -->
  6743. <div
  6744. class="answerScore"
  6745. v-if="w.score"
  6746. @click.stop="openScore(w)"
  6747. :class="{
  6748. rightW:
  6749. w.userid == userid ||
  6750. tType == 1 ||
  6751. tType == 4 ||
  6752. w.ateacher == userid,
  6753. }"
  6754. >
  6755. {{ JSON.parse(w.score).wScore }}分
  6756. </div>
  6757. <div
  6758. class="answerScore"
  6759. @click.stop="openScore(w)"
  6760. v-else-if="courseDetail.userid == userid"
  6761. :class="{
  6762. rightW:
  6763. w.userid == userid ||
  6764. tType == 1 ||
  6765. tType == 4 ||
  6766. w.ateacher == userid,
  6767. }"
  6768. >
  6769. 评分
  6770. </div>
  6771. <img
  6772. class="deleteImg"
  6773. src="../assets/deleteworks.png"
  6774. v-if="
  6775. w.userid == userid ||
  6776. tType == 1 ||
  6777. tType == 4
  6778. "
  6779. @click.stop="deleteWorks(w.wid)"
  6780. alt
  6781. />
  6782. </div>
  6783. <div class="comment" style="min-width: 200px">
  6784. <div class="worksName">
  6785. <div>{{ w.sName }}</div>
  6786. </div>
  6787. <div class="commentList">
  6788. <div class="commentList">
  6789. <div
  6790. class="commentImg"
  6791. @click="
  6792. isLikes(
  6793. w.wid,
  6794. userid,
  6795. 1,
  6796. null,
  6797. w.isLikes
  6798. )
  6799. "
  6800. >
  6801. <img
  6802. :src="
  6803. w.isLikes == true ? likes : noLikes
  6804. "
  6805. alt=""
  6806. />
  6807. </div>
  6808. <div>{{ w.likesCount }}</div>
  6809. </div>
  6810. <div
  6811. class="commentList"
  6812. style="margin-right: 15px"
  6813. >
  6814. <div
  6815. class="commentImg"
  6816. @click="
  6817. commentOther(
  6818. w,
  6819. toolIndex,
  6820. wIndex,
  6821. gindex
  6822. )
  6823. "
  6824. >
  6825. <img
  6826. src="../assets/icon/comment/comment.png"
  6827. alt=""
  6828. />
  6829. </div>
  6830. <div>{{ w.commentCount }}</div>
  6831. </div>
  6832. </div>
  6833. </div>
  6834. </div>
  6835. </div>
  6836. </div>
  6837. </div>
  6838. </div>
  6839. </div>
  6840. </div>
  6841. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6842. 上传文件
  6843. <input
  6844. type="file"
  6845. accept="image/png, image/gif, image/jpeg"
  6846. style="display: none"
  6847. @change="beforeUpload1($event, 2, index)"
  6848. />
  6849. </div>-->
  6850. </div>
  6851. </div>
  6852. <div
  6853. class="vedioBox"
  6854. v-if="
  6855. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6856. .eList &&
  6857. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6858. .eList.length &&
  6859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6860. .eList.length > 0 &&
  6861. tType != 2
  6862. "
  6863. >
  6864. <div
  6865. class="queTop"
  6866. style="
  6867. font-size: 20px;
  6868. padding: 15px 0 15px 37px;
  6869. font-weight: bold;
  6870. "
  6871. >
  6872. <!-- <div class="question" style="width: 30px">
  6873. <img src="../assets/icon/toolIcon.png" alt />
  6874. </div>
  6875. <div class="queTitle">
  6876. <div>工具</div>
  6877. </div>-->
  6878. 评一评
  6879. </div>
  6880. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  6881. <div class="elist_input">
  6882. <el-table
  6883. :data="
  6884. chapInfoList[courseType].chapterInfo[0].taskJson[
  6885. taskCount
  6886. ].eList
  6887. "
  6888. :header-cell-style="{ background: '#F0F4FA' }"
  6889. :row-class-name="tableRowClassName"
  6890. border
  6891. stripe
  6892. style="width: 100%"
  6893. >
  6894. <el-table-column label="评价名称" width="180">
  6895. <template slot-scope="scope"
  6896. ><div>{{ scope.row.value }}</div></template
  6897. >
  6898. </el-table-column>
  6899. <el-table-column label="评价描述" width="180">
  6900. <template slot-scope="scope"
  6901. ><div>{{ scope.row.detail }}</div></template
  6902. >
  6903. </el-table-column>
  6904. <el-table-column label="目标">
  6905. <template slot-scope="scope"
  6906. ><div>{{ scope.row.target[0] }}</div></template
  6907. ></el-table-column
  6908. >
  6909. </el-table>
  6910. <!-- <div
  6911. v-for="(eItem, eIndex) in chapInfoList[courseType]
  6912. .chapterInfo[0].taskJson[taskCount].eList"
  6913. :key="eIndex"
  6914. class="elist_input_box"
  6915. >
  6916. <div style="width: 95%">
  6917. <div
  6918. style="
  6919. display: flex;
  6920. flex-direction: row;
  6921. flex-wrap: nowrap;
  6922. align-items: center;
  6923. "
  6924. >
  6925. <div style="max-width: calc(100% - 285px)">
  6926. <span>{{ eItem.value }}</span>
  6927. </div>
  6928. <div
  6929. style="
  6930. padding-left: 25px;
  6931. display: flex;
  6932. flex-direction: row;
  6933. align-items: center;
  6934. "
  6935. >
  6936. <el-rate
  6937. v-model="eItem.score"
  6938. :colors="colors"
  6939. disabled
  6940. ></el-rate>
  6941. </div>
  6942. </div>
  6943. <div class="elist_inptu_text" style="padding-left: 10px">
  6944. <span v-if="eItem.detail != ''">{{
  6945. eItem.detail
  6946. }}</span>
  6947. <span v-else style="color: #b2b1b3; font-size: 14px"
  6948. >暂无描述...</span
  6949. >
  6950. </div>
  6951. </div>
  6952. </div> -->
  6953. </div>
  6954. <div
  6955. v-if="evalua"
  6956. style="
  6957. border: 1px solid #e5e5e5;
  6958. max-width: 650px;
  6959. width: 100%;
  6960. margin-top: 20px;
  6961. box-shadow: 3px 1px 15px 3px #e0e0e0;
  6962. "
  6963. >
  6964. <div class="e_add_top">
  6965. <div class="e_add_title">
  6966. <span>目标管理名称</span>
  6967. <span>{{ eTitle }}</span>
  6968. <img
  6969. src="../assets/line.png"
  6970. class="cru_line"
  6971. style="
  6972. width: 125px;
  6973. height: 20px;
  6974. bottom: -10px;
  6975. left: 120px;
  6976. "
  6977. />
  6978. <!-- <el-input
  6979. v-model="eTitle"
  6980. placeholder="请输入名称"
  6981. @change="setMindData"
  6982. ></el-input>-->
  6983. </div>
  6984. </div>
  6985. <div class="e_add_content">
  6986. <div class="e_add_list_pbox">
  6987. <div class="e_add_list_pbox_title">
  6988. <span class="type_title">切换模式</span>
  6989. <div class="type_content">
  6990. <span
  6991. :class="{ active: typeMode == 1 }"
  6992. @click="typeMode = 1"
  6993. >目标树</span
  6994. >
  6995. <span
  6996. :class="{ active: typeMode == 2 }"
  6997. @click="typeMode = 2"
  6998. >目标罗盘</span
  6999. >
  7000. <span
  7001. :class="{ active: typeMode == 3 }"
  7002. @click="typeMode = 3"
  7003. >目标看板</span
  7004. >
  7005. </div>
  7006. </div>
  7007. <div class="e_add_list_pbox_content">
  7008. <Mind
  7009. :showBar="false"
  7010. :mindData="data"
  7011. style="width: 100%"
  7012. v-show="typeMode == 1"
  7013. ></Mind>
  7014. <Sunburst
  7015. :Josn="eJson"
  7016. :num="eJSONNum"
  7017. style="width: 100%"
  7018. v-if="typeMode == 2"
  7019. ></Sunburst>
  7020. <SeeBoard
  7021. :Josn="eJson"
  7022. :num="eJSONNum"
  7023. :ename="eTitle"
  7024. style="width: 100%"
  7025. v-if="typeMode == 3"
  7026. >
  7027. </SeeBoard>
  7028. </div>
  7029. </div>
  7030. </div>
  7031. </div>
  7032. </div>
  7033. </div>
  7034. <!-- <div
  7035. class="project_box"
  7036. style="margin-top: 15px; padding-bottom: 30px"
  7037. >
  7038. <div
  7039. style="
  7040. display: flex;
  7041. flex-wrap: nowrap;
  7042. flex-direction: column;
  7043. position: relative;
  7044. "
  7045. >
  7046. <div class="queTop">
  7047. <div class="question">
  7048. <img src="../assets/icon/homeWork.png" alt="" />
  7049. </div>
  7050. <div class="queTitle">
  7051. <div>作业提交<span>(提交图文视频等)</span></div>
  7052. <div>:任务:{{ task.task }}</div>
  7053. </div>
  7054. </div>
  7055. <div class="ediBottom">
  7056. <div
  7057. class="addEditor"
  7058. style="margin-top: 23px"
  7059. @click="openAddWork"
  7060. v-if="!isNoHomeWork"
  7061. >
  7062. 选择文件
  7063. </div>
  7064. <div
  7065. class="addEditor"
  7066. style="margin-top: 23px"
  7067. @click="openAddWork"
  7068. v-else
  7069. >
  7070. 已提交
  7071. </div>
  7072. </div>
  7073. </div>
  7074. </div>-->
  7075. </div>
  7076. </div>
  7077. <el-dialog
  7078. title="作业提交"
  7079. :visible.sync="dialogVisible"
  7080. :append-to-body="true"
  7081. width="500px"
  7082. :before-close="handleClose"
  7083. class="dialog_change"
  7084. >
  7085. <div class="marginT">
  7086. <div>上传文件</div>
  7087. <div
  7088. class="chapter_add"
  7089. @click="addImg($event)"
  7090. v-if="studyJuri[0].cover.length == 0"
  7091. >
  7092. <div class="up_photo">
  7093. <img src="../assets/icon/uploadImg.png" alt />
  7094. </div>
  7095. <!-- <input
  7096. type="file"
  7097. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7098. style="display: none"
  7099. @change="beforeUpload1($event, 1)"
  7100. /> -->
  7101. <input
  7102. type="file"
  7103. accept="*"
  7104. style="display: none"
  7105. @change="beforeUpload1($event, 1)"
  7106. />
  7107. <!-- <input
  7108. type="file"
  7109. accept="image/*"
  7110. capture="camera"
  7111. style="display: none"
  7112. @change="beforeUpload1($event, 1)"
  7113. /> -->
  7114. </div>
  7115. <div
  7116. class="chapter_add"
  7117. style="
  7118. display: flex;
  7119. width: 100%;
  7120. flex-direction: row;
  7121. flex-wrap: wrap;
  7122. justify-content: flex-start;
  7123. padding: 15px 0;
  7124. "
  7125. v-if="studyJuri[0].cover.length > 0"
  7126. >
  7127. <div class="upCover">
  7128. <img
  7129. :src="studyJuri[0].cover[0].url"
  7130. alt
  7131. v-if="fileType == 0"
  7132. />
  7133. <img :src="word" alt v-else-if="fileType == 1" />
  7134. <img :src="video" alt v-else-if="fileType == 2" />
  7135. <img :src="word2" alt v-else-if="fileType == 3" />
  7136. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7137. <div class="deleteWord" @click="clean(1)">
  7138. <img src="../assets/icon/deleteWorks.png" alt />
  7139. </div>
  7140. </div>
  7141. </div>
  7142. </div>
  7143. <div
  7144. class="upload_send"
  7145. @click="addCourseWorks(taskCount)"
  7146. v-if="!proVisible"
  7147. >
  7148. 提交
  7149. </div>
  7150. </el-dialog>
  7151. </div>
  7152. </div>
  7153. <div
  7154. class="pButton"
  7155. @click="(pzDialog = true), selectPz()"
  7156. v-if="tType == 4 || ispzType == 4"
  7157. >
  7158. <!-- 批 -->
  7159. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  7160. </div>
  7161. <div v-if="pzDialog == true" class="newDialogCss">
  7162. <div class="pzTop2">
  7163. <!-- <div>批注</div>
  7164. <div @click="pzDialog = false">
  7165. <img src="../assets/close1.png" alt="" />
  7166. </div> -->
  7167. <div class="checkbox">
  7168. <div class="check" style="font-size: 25px">评课笔记</div>
  7169. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7170. </div>
  7171. </div>
  7172. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7173. <div class="pzListBox" v-if="pzList && pzList.length">
  7174. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7175. <div class="pzNavTop">
  7176. <div>批</div>
  7177. <div>
  7178. {{
  7179. pz.username && pz.username.length > 5
  7180. ? pz.username.substring(0, 5) + "..."
  7181. : pz.username
  7182. }}的批注
  7183. </div>
  7184. <div
  7185. class="pzDelete"
  7186. v-if="pz.userid == userid"
  7187. @click="deletePz(pz.id)"
  7188. >
  7189. 删除
  7190. </div>
  7191. </div>
  7192. <div
  7193. class="pzContent cont"
  7194. v-html="pz.content"
  7195. v-if="pz.type == '1'"
  7196. ></div>
  7197. <div class="pzContent" v-if="pz.type == '2'">
  7198. <audio :src="pz.content" controls="controls" ref="audio">
  7199. Your browser does not support the audio element.
  7200. </audio>
  7201. </div>
  7202. <div class="pzContent" v-if="pz.type == '3'">
  7203. <img
  7204. :src="pz.content"
  7205. style="width: 90%; margin: 0 auto; display: block"
  7206. @click="previewImg(pz.content)"
  7207. />
  7208. </div>
  7209. <div class="time">
  7210. {{ pz.time }}
  7211. </div>
  7212. </div>
  7213. </div>
  7214. <div class="noPz" v-else>
  7215. <img src="../assets/icon/noPz.png" alt="" />
  7216. </div>
  7217. <div class="addPzButton">
  7218. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7219. 添加批注
  7220. </div>
  7221. <!-- <div class="img1">
  7222. <div @click="(addPzDialog = true), (pzType = 2)">
  7223. <img src="../assets/audio.png" /><span>音频</span>
  7224. </div>
  7225. </div> -->
  7226. </div>
  7227. </div>
  7228. </div>
  7229. <div v-if="addPzDialog == true" class="addDialogCss">
  7230. <div class="pzTop">
  7231. <div class="teacherPz">
  7232. <div class="teacherPzImg">
  7233. <img src="../assets/icon/teacherPz.png" alt="" />
  7234. </div>
  7235. <div style="margin-left: 10px; height: 25px">教师批注</div>
  7236. </div>
  7237. <div @click="addPzDialog = false">
  7238. <img src="../assets/close1.png" alt="" />
  7239. </div>
  7240. </div>
  7241. <div class="addPzBox">
  7242. <div class="addPzCheck">
  7243. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  7244. >文本</span
  7245. >
  7246. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  7247. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  7248. >音频</span
  7249. >
  7250. </div>
  7251. <div style="height: calc(100% - 95px)">
  7252. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  7253. v-if="pzType == 1"></textarea> -->
  7254. <editor-bar
  7255. class="binfo_input pzConText"
  7256. style="width: 100% !important"
  7257. placeholder="请输入任务描述"
  7258. v-model="pzConText"
  7259. @change="change"
  7260. v-if="pzType == 1"
  7261. ></editor-bar>
  7262. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  7263. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  7264. <div @click="addImg($event)">
  7265. <el-button type="primary">上传图片</el-button>
  7266. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  7267. @change="beforeUpload1($event, 4)" />
  7268. </div>
  7269. </div> -->
  7270. </div>
  7271. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  7272. 确定
  7273. </div>
  7274. </div>
  7275. </div>
  7276. <div v-if="proVisible" class="mask">
  7277. <div class="progressBox">
  7278. <!-- <div id="closePro" class="closeCss">
  7279. <img src="../assets/icon/close.png" alt />
  7280. </div> -->
  7281. <div class="lbox">
  7282. <img src="../assets/loading.gif" />上传中,请稍后
  7283. </div>
  7284. <div style="margin-bottom: 10px">
  7285. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  7286. </div>
  7287. <el-progress
  7288. :text-inside="true"
  7289. :stroke-width="20"
  7290. :percentage="progress"
  7291. style="width: 80%"
  7292. ></el-progress>
  7293. </div>
  7294. </div>
  7295. <div v-if="proVisible2" class="mask">
  7296. <div class="progressBox">
  7297. <div class="lbox">
  7298. <img src="../assets/loading.gif" />上传中,请稍后
  7299. </div>
  7300. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  7301. </div>
  7302. </div>
  7303. <el-dialog :visible.sync="pictureDialog" size="tiny">
  7304. <img width="100%" :src="dialogImageUrl" alt />
  7305. </el-dialog>
  7306. <el-dialog
  7307. :title="noteName != '' ? noteName : '查看问卷'"
  7308. :visible.sync="dialogVisible5"
  7309. :append-to-body="true"
  7310. width="1000px"
  7311. :before-close="handleClose"
  7312. class="dialog_diy dialog_diy3"
  7313. >
  7314. <div>
  7315. <div
  7316. class="a_add_title"
  7317. style="
  7318. display: flex;
  7319. flex-direction: row;
  7320. align-items: center;
  7321. justify-content: center;
  7322. "
  7323. >
  7324. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7325. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7326. </div>
  7327. <div class="a_addBox">
  7328. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7329. <div
  7330. class="a_add_box"
  7331. v-for="(item1, index1) in askJson.askCount"
  7332. :key="index1"
  7333. >
  7334. <div class="a_add_head">
  7335. <div style="display: flex">
  7336. {{ index1 + 1 + "、" }}
  7337. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7338. </div>
  7339. <img
  7340. v-if="askJson.askJson[index1].img"
  7341. :src="askJson.askJson[index1].img"
  7342. style="height: 300px; margin-top: 10px; max-width: 100%"
  7343. />
  7344. </div>
  7345. <div class="a_add_body">
  7346. <div class="a_add_input">
  7347. <el-radio-group
  7348. v-model="radio[index1]"
  7349. v-if="
  7350. askJson.askJson[index1].type == '1' ||
  7351. !askJson.askJson[index1].type
  7352. "
  7353. >
  7354. <el-radio
  7355. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7356. .checkList"
  7357. :key="checkIndex"
  7358. :label="checkIndex"
  7359. :disabled="isAnswer"
  7360. class="redioStyle"
  7361. ><span v-html="item2"></span
  7362. ></el-radio>
  7363. </el-radio-group>
  7364. <el-checkbox-group
  7365. v-model="radio[index1]"
  7366. v-if="askJson.askJson[index1].type == '2'"
  7367. >
  7368. <el-checkbox
  7369. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7370. .checkList"
  7371. :key="checkIndex1"
  7372. :label="checkIndex1"
  7373. :disabled="isAnswer"
  7374. class="redioStyle"
  7375. ><span v-html="item2"></span>
  7376. </el-checkbox>
  7377. </el-checkbox-group>
  7378. </div>
  7379. </div>
  7380. </div>
  7381. </div>
  7382. </div>
  7383. <span slot="footer" class="dialog-footer">
  7384. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  7385. >取 消</el-button
  7386. >
  7387. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  7388. >确 定</el-button
  7389. >
  7390. </span>
  7391. </el-dialog>
  7392. <el-dialog
  7393. :title="noteName != '' ? noteName : '查看问卷'"
  7394. :visible.sync="dialogVisible5Teacher"
  7395. :append-to-body="true"
  7396. width="1000px"
  7397. :before-close="handleClose"
  7398. class="dialog_diy dialog_diy3"
  7399. >
  7400. <div>
  7401. <div class="w_name">
  7402. 学生姓名:<span>{{ sStudent.student }}</span>
  7403. </div>
  7404. <div
  7405. class="a_add_title"
  7406. style="
  7407. display: flex;
  7408. flex-direction: row;
  7409. align-items: center;
  7410. justify-content: center;
  7411. "
  7412. >
  7413. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7414. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7415. </div>
  7416. <div class="a_addBox">
  7417. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7418. <div
  7419. class="a_add_box"
  7420. v-for="(item1, index1) in askJson.askCount"
  7421. :key="index1"
  7422. >
  7423. <div class="a_add_head">
  7424. <div style="display: flex">
  7425. {{ index1 + 1 + "、" }}
  7426. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7427. </div>
  7428. <img
  7429. v-if="askJson.askJson[index1].img"
  7430. :src="askJson.askJson[index1].img"
  7431. style="height: 300px; margin-top: 10px; max-width: 100%"
  7432. />
  7433. </div>
  7434. <div class="a_add_body">
  7435. <div class="a_add_input">
  7436. <el-radio-group
  7437. v-model="radio[index1]"
  7438. v-if="
  7439. askJson.askJson[index1].type == '1' ||
  7440. !askJson.askJson[index1].type
  7441. "
  7442. >
  7443. <el-radio
  7444. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7445. .checkList"
  7446. :key="checkIndex"
  7447. :label="checkIndex"
  7448. :disabled="isAnswer"
  7449. class="redioStyle"
  7450. ><span v-html="item2"></span
  7451. ></el-radio>
  7452. </el-radio-group>
  7453. <el-checkbox-group
  7454. v-model="radio[index1]"
  7455. v-if="askJson.askJson[index1].type == '2'"
  7456. >
  7457. <el-checkbox
  7458. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7459. .checkList"
  7460. :key="checkIndex1"
  7461. :label="checkIndex1"
  7462. :disabled="isAnswer"
  7463. class="redioStyle"
  7464. ><span v-html="item2"></span>
  7465. </el-checkbox>
  7466. </el-checkbox-group>
  7467. </div>
  7468. </div>
  7469. </div>
  7470. </div>
  7471. </div>
  7472. <span slot="footer" class="dialog-footer">
  7473. <el-button
  7474. @click="dialogVisible5Teacher = false"
  7475. v-show="noteName == ''"
  7476. >取 消</el-button
  7477. >
  7478. <el-button
  7479. type="primary"
  7480. @click="addStudentAskTeacher"
  7481. v-show="noteName == ''"
  7482. >确 定</el-button
  7483. >
  7484. </span>
  7485. </el-dialog>
  7486. <el-dialog
  7487. :title="noteName != '' ? noteName : '查看选择题'"
  7488. :visible.sync="dialogVisibleChoice"
  7489. :append-to-body="true"
  7490. width="1000px"
  7491. :before-close="handleClose"
  7492. class="dialog_diy dialog_diy3"
  7493. >
  7494. <div>
  7495. <!-- <div class="a_add_title" style="
  7496. display: flex;
  7497. flex-direction: row;
  7498. align-items: center;
  7499. justify-content: center;
  7500. ">
  7501. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7502. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  7503. </div> -->
  7504. <div class="a_addBox">
  7505. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7506. <div
  7507. class="a_add_box"
  7508. v-for="(item1, index1) in testJson.testCount"
  7509. :key="index1"
  7510. >
  7511. <div class="a_add_head">
  7512. <div style="display: flex">
  7513. {{ index1 + 1 + "、" }}
  7514. <div
  7515. v-if="testJson.testJson[index1].type == '1'"
  7516. style="margin-right: 5px; min-width: 70px"
  7517. >
  7518. (单选题)
  7519. </div>
  7520. <div
  7521. v-if="testJson.testJson[index1].type == '2'"
  7522. style="margin-right: 5px; min-width: 70px"
  7523. >
  7524. (多选题)
  7525. </div>
  7526. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7527. </div>
  7528. <img
  7529. v-if="testJson.testJson[index1].img"
  7530. :src="testJson.testJson[index1].img"
  7531. style="height: 300px; margin-top: 10px; max-width: 100%"
  7532. />
  7533. </div>
  7534. <div
  7535. class="timuImgBox"
  7536. v-if="
  7537. testJson.testJson[index1].timuList &&
  7538. testJson.testJson[index1].timuList.length
  7539. "
  7540. >
  7541. <div
  7542. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7543. :key="tIndex"
  7544. class="timuImg"
  7545. @click.stop="previewImg(timg.src)"
  7546. >
  7547. <img :src="timg.src" alt="" />
  7548. </div>
  7549. </div>
  7550. <div class="a_add_body">
  7551. <div class="a_add_input">
  7552. <el-radio-group
  7553. v-model="radio[index1]"
  7554. v-if="testJson.testJson[index1].type == '1'"
  7555. >
  7556. <div class="radioBox">
  7557. <el-radio
  7558. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7559. .checkList"
  7560. :key="checkIndex"
  7561. :label="checkIndex"
  7562. :disabled="isAnswer"
  7563. class="redioStyle"
  7564. >
  7565. <div
  7566. style="margin-right: 10px"
  7567. v-if="item2 && item2.imgType && item2.imgType == 1"
  7568. >
  7569. <div class="inImg" @click.stop="previewImg(item2.src)">
  7570. <img :src="item2.src" alt="" />
  7571. </div>
  7572. </div>
  7573. <span v-else v-html="item2"></span>
  7574. </el-radio>
  7575. </div>
  7576. </el-radio-group>
  7577. <el-checkbox-group
  7578. v-model="radio[index1]"
  7579. v-if="testJson.testJson[index1].type == '2'"
  7580. >
  7581. <div class="radioBox">
  7582. <el-checkbox
  7583. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7584. .checkList"
  7585. :key="checkIndex"
  7586. :label="checkIndex"
  7587. :disabled="isAnswer"
  7588. class="redioStyle"
  7589. >
  7590. <div
  7591. style="margin-right: 10px"
  7592. v-if="item2 && item2.imgType && item2.imgType == 1"
  7593. >
  7594. <div class="inImg" @click.stop="previewImg(item2.src)">
  7595. <img :src="item2.src" alt="" />
  7596. </div>
  7597. </div>
  7598. <span v-else v-html="item2"></span>
  7599. </el-checkbox>
  7600. </div>
  7601. </el-checkbox-group>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. <span slot="footer" class="dialog-footer">
  7608. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  7609. >取 消</el-button
  7610. >
  7611. <el-button
  7612. type="primary"
  7613. @click="addStudentTest"
  7614. v-show="noteName == ''"
  7615. >确 定</el-button
  7616. >
  7617. </span>
  7618. </el-dialog>
  7619. <el-dialog
  7620. :title="noteName != '' ? noteName : '查看选择题'"
  7621. :visible.sync="dialogVisibleChoiceTeacher"
  7622. :append-to-body="true"
  7623. width="1000px"
  7624. :before-close="handleClose"
  7625. class="dialog_diy dialog_diy3"
  7626. >
  7627. <div>
  7628. <div class="w_name">
  7629. 学生姓名:<span>{{ sStudent.student }}</span>
  7630. </div>
  7631. <div class="a_addBox">
  7632. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7633. <div
  7634. class="a_add_box"
  7635. v-for="(item1, index1) in testJson.testCount"
  7636. :key="index1"
  7637. >
  7638. <div class="a_add_head">
  7639. <div style="display: flex">
  7640. {{ index1 + 1 + "、" }}
  7641. <div
  7642. v-if="testJson.testJson[index1].type == '1'"
  7643. style="margin-right: 5px; min-width: 70px"
  7644. >
  7645. (单选题)
  7646. </div>
  7647. <div
  7648. v-if="testJson.testJson[index1].type == '2'"
  7649. style="margin-right: 5px; min-width: 70px"
  7650. >
  7651. (多选题)
  7652. </div>
  7653. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7654. </div>
  7655. <img
  7656. v-if="testJson.testJson[index1].img"
  7657. :src="testJson.testJson[index1].img"
  7658. style="height: 300px; margin-top: 10px; max-width: 100%"
  7659. />
  7660. </div>
  7661. <div
  7662. class="timuImgBox"
  7663. v-if="
  7664. testJson.testJson[index1].timuList &&
  7665. testJson.testJson[index1].timuList.length
  7666. "
  7667. >
  7668. <div
  7669. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7670. :key="tIndex"
  7671. class="timuImg"
  7672. @click.stop="previewImg(timg.src)"
  7673. >
  7674. <img :src="timg.src" alt="" />
  7675. </div>
  7676. </div>
  7677. <div class="a_add_body">
  7678. <div class="a_add_input">
  7679. <el-radio-group
  7680. v-model="radio[index1]"
  7681. v-if="testJson.testJson[index1].type == '1'"
  7682. >
  7683. <div class="radioBox">
  7684. <el-radio
  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-radio>
  7702. </div>
  7703. </el-radio-group>
  7704. <el-checkbox-group
  7705. v-model="radio[index1]"
  7706. v-if="testJson.testJson[index1].type == '2'"
  7707. >
  7708. <div class="radioBox">
  7709. <el-checkbox
  7710. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7711. .checkList"
  7712. :key="checkIndex"
  7713. :label="checkIndex"
  7714. :disabled="isAnswer"
  7715. class="redioStyle"
  7716. >
  7717. <div
  7718. style="margin-right: 10px"
  7719. v-if="item2 && item2.imgType && item2.imgType == 1"
  7720. >
  7721. <div class="inImg" @click.stop="previewImg(item2.src)">
  7722. <img :src="item2.src" alt="" />
  7723. </div>
  7724. </div>
  7725. <span v-else v-html="item2"></span>
  7726. </el-checkbox>
  7727. </div>
  7728. </el-checkbox-group>
  7729. </div>
  7730. </div>
  7731. </div>
  7732. </div>
  7733. </div>
  7734. <span slot="footer" class="dialog-footer">
  7735. <el-button
  7736. @click="dialogVisibleChoiceTeacher = false"
  7737. v-show="noteName == ''"
  7738. >取 消</el-button
  7739. >
  7740. <el-button
  7741. type="primary"
  7742. @click="addStudentTestTeacher"
  7743. v-show="noteName == ''"
  7744. >确 定</el-button
  7745. >
  7746. </span>
  7747. </el-dialog>
  7748. <el-dialog
  7749. title="查看富文本"
  7750. :visible.sync="dialogVisible1"
  7751. :append-to-body="true"
  7752. width="500px"
  7753. :before-close="handleClose"
  7754. class="dialog_diy textCss"
  7755. >
  7756. <el-form style="font-size: 20px">
  7757. <el-form-item label="文本标题" class="textTitle">
  7758. <div style="font-size: 20px">{{ text.name }}</div>
  7759. </el-form-item>
  7760. <div>富文本内容</div>
  7761. <div
  7762. v-html="text.url"
  7763. style="font-size: 18px; padding: 40px 0 0 0"
  7764. ></div>
  7765. </el-form>
  7766. <span slot="footer" class="dialog-footer">
  7767. <el-button type="primary" @click="dialogVisible1 = false"
  7768. >确定</el-button
  7769. >
  7770. </span>
  7771. </el-dialog>
  7772. <el-dialog
  7773. title="文件预览"
  7774. :visible.sync="dialogVisible3"
  7775. width="50%"
  7776. :before-close="handleClose"
  7777. class="dialog_diy"
  7778. :class="{ fullStyle: full }"
  7779. >
  7780. <div slot="title" class="header-title">
  7781. <div style="color: #fff">文件预览</div>
  7782. <div style="position: absolute; top: 19px; right: 50px">
  7783. <img
  7784. src="../assets/full.png"
  7785. style="height: 16px; cursor: pointer"
  7786. alt=""
  7787. @click="fullTools"
  7788. />
  7789. </div>
  7790. </div>
  7791. <pdf
  7792. v-if="showPDF"
  7793. :pdfUrl="pptImgUrl"
  7794. style="width: 100%; height: 520px; overflow: auto"
  7795. :class="{ fullStyle: full }"
  7796. ></pdf>
  7797. <iframe
  7798. v-else
  7799. :src="pptImgUrl"
  7800. frameborder="0"
  7801. width="100%"
  7802. height="600"
  7803. :class="{ fullStyle: full }"
  7804. ></iframe>
  7805. </el-dialog>
  7806. <el-dialog
  7807. title="文件预览"
  7808. :visible.sync="dialogVisible6"
  7809. width="50%"
  7810. :before-close="handleClose"
  7811. class="dialog_diy"
  7812. >
  7813. <iframe
  7814. :src="pptImgUrl1"
  7815. frameborder="0"
  7816. width="100%"
  7817. height="600"
  7818. ></iframe>
  7819. </el-dialog>
  7820. <el-dialog
  7821. title="提示"
  7822. :visible.sync="dialogVisible4"
  7823. :append-to-body="true"
  7824. width="800px"
  7825. :before-close="handleClose"
  7826. class="dialog_diy notice"
  7827. >
  7828. <div>此功能暂未开放!</div>
  7829. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  7830. </el-dialog>
  7831. <el-dialog
  7832. title="问答"
  7833. :visible.sync="answerDialogVisible"
  7834. :append-to-body="true"
  7835. width="800px"
  7836. :before-close="handleClose"
  7837. class="dialog_diy"
  7838. >
  7839. <div>
  7840. <div
  7841. style="
  7842. display: flex;
  7843. flex-wrap: nowrap;
  7844. flex-direction: column;
  7845. position: relative;
  7846. "
  7847. >
  7848. <div class="queTop" style="padding: 20px 0 20px 0">
  7849. <div class="question">
  7850. <img src="../assets/icon/question.png" alt />
  7851. </div>
  7852. <div class="queTitle">
  7853. <div style="width: 90px; min-width: 90px">提问:</div>
  7854. <div>{{ answerQ }}</div>
  7855. </div>
  7856. </div>
  7857. <div class="ediBottom">
  7858. <textarea
  7859. rows="6"
  7860. class="binfo_input"
  7861. cols
  7862. style="width: 95%; height: 120px"
  7863. v-model="questionAnswer"
  7864. ></textarea>
  7865. </div>
  7866. </div>
  7867. </div>
  7868. <div slot="footer">
  7869. <el-button @click="answerDialogVisible = false">取 消</el-button>
  7870. <el-button type="primary" @click="addQuestion">提 交</el-button>
  7871. </div>
  7872. </el-dialog>
  7873. <el-dialog
  7874. title="问答"
  7875. :visible.sync="answerDialogVisibleTeacher"
  7876. :append-to-body="true"
  7877. width="800px"
  7878. :before-close="handleClose"
  7879. class="dialog_diy"
  7880. >
  7881. <div>
  7882. <div class="w_name">
  7883. 学生姓名:<span>{{ sStudent.student }}</span>
  7884. </div>
  7885. <div
  7886. style="
  7887. display: flex;
  7888. flex-wrap: nowrap;
  7889. flex-direction: column;
  7890. position: relative;
  7891. "
  7892. >
  7893. <div class="queTop" style="padding: 20px 0 20px 0">
  7894. <div class="question">
  7895. <img src="../assets/icon/question.png" alt />
  7896. </div>
  7897. <div class="queTitle">
  7898. <div style="width: 90px; min-width: 90px">提问:</div>
  7899. <div>{{ answerQ }}</div>
  7900. </div>
  7901. </div>
  7902. <div class="ediBottom">
  7903. <textarea
  7904. rows="6"
  7905. class="binfo_input"
  7906. cols
  7907. style="width: 95%; height: 120px"
  7908. v-model="questionAnswer"
  7909. ></textarea>
  7910. </div>
  7911. </div>
  7912. </div>
  7913. <div slot="footer">
  7914. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  7915. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  7916. </div>
  7917. </el-dialog>
  7918. <el-dialog
  7919. title="倒计时"
  7920. :visible.sync="timeDialogVisible"
  7921. :append-to-body="true"
  7922. width="800px"
  7923. :before-close="handleClose"
  7924. class="dialog_diy"
  7925. >
  7926. <div>
  7927. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  7928. </div>
  7929. <div slot="footer">
  7930. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  7931. </div>
  7932. </el-dialog>
  7933. <el-dialog
  7934. title="权限设置"
  7935. :visible.sync="juriVisible"
  7936. :append-to-body="true"
  7937. width="400px"
  7938. :before-close="handleClose"
  7939. class="dialog_diy"
  7940. >
  7941. <div>
  7942. <div class="open_box">
  7943. <div class="switch_box">
  7944. <span>允许学生查看所有作业</span>
  7945. <el-switch
  7946. v-model="sIsOpen"
  7947. active-text=""
  7948. class="switchCss"
  7949. @change="updateSLook"
  7950. ></el-switch>
  7951. </div>
  7952. <div
  7953. class="switch_box"
  7954. v-if="
  7955. courseDetail.userid == userid ||
  7956. (courseDetail.course_teacher &&
  7957. courseDetail.course_teacher.indexOf(userid) != -1)
  7958. "
  7959. >
  7960. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  7961. <span>禁止学生查看所有阶段</span>
  7962. <el-switch
  7963. v-model="IsLookOpen"
  7964. active-text=""
  7965. class="switchCss"
  7966. @change="updateLookOpen"
  7967. ></el-switch>
  7968. </div>
  7969. <div class="switch_box" v-if="courseDetail.userid == userid">
  7970. <span>开启跟随模式</span>
  7971. <el-switch
  7972. v-model="IsFollow"
  7973. active-text=""
  7974. class="switchCss"
  7975. @change="updateFollow"
  7976. ></el-switch>
  7977. </div>
  7978. </div>
  7979. </div>
  7980. <div slot="footer">
  7981. <el-button
  7982. style="background: #409efe; color: #fff"
  7983. @click="juriVisible = false"
  7984. >关 闭</el-button
  7985. >
  7986. </div>
  7987. </el-dialog>
  7988. <el-dialog
  7989. title="查看视频"
  7990. :visible.sync="videoVisible"
  7991. :append-to-body="true"
  7992. width="1000px"
  7993. :before-close="handleClose"
  7994. class="dialog_diy1"
  7995. >
  7996. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  7997. <video-player
  7998. class="video-player vjs-custom-skin"
  7999. :playsinline="true"
  8000. :options="videoDetail"
  8001. @play="onPlayerPlay($event)"
  8002. style="width: 100%; height: 100%"
  8003. ></video-player>
  8004. </div>
  8005. <div slot="footer">
  8006. <el-button
  8007. style="background: #409efe; color: #fff"
  8008. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  8009. >
  8010. 关 闭</el-button
  8011. >
  8012. </div>
  8013. </el-dialog>
  8014. <el-dialog
  8015. title="查看详情"
  8016. :visible.sync="commentDialogVisible"
  8017. :append-to-body="true"
  8018. width="800px"
  8019. :before-close="handleClose"
  8020. class="dialog_diy"
  8021. >
  8022. <div class="commentTop">
  8023. <div class="studentDetail">
  8024. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8025. <div class="nameAndTime">
  8026. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8027. <div>{{ commentDetail.time }}</div>
  8028. </div>
  8029. <div
  8030. class="returnBtn"
  8031. style="margin-left: auto; width: 80px"
  8032. v-if="
  8033. commentDetail.works &&
  8034. commentDetail.type == 0 &&
  8035. (tType == 1 || tType == 4)
  8036. "
  8037. @click="
  8038. showPicturePaint(
  8039. commentDetail.img ? commentDetail.img : commentDetail.works
  8040. )
  8041. "
  8042. >
  8043. 教师批注
  8044. </div>
  8045. </div>
  8046. <div
  8047. class="worksAnswer"
  8048. v-if="commentDetail.works && commentDetail.type == 2"
  8049. >
  8050. {{ JSON.parse(commentDetail.works)[0].answer }}
  8051. </div>
  8052. <div
  8053. class="worksAnswer"
  8054. v-if="commentDetail.works && commentDetail.type == 1"
  8055. >
  8056. <img
  8057. src="../assets/teacherWork.png"
  8058. v-if="commentDetail.ateacher"
  8059. class="w_teachert"
  8060. />
  8061. <pdf
  8062. v-if="showPDF"
  8063. :pdfUrl="pptImgUrl"
  8064. style="width: 100%; height: 520px; overflow: auto"
  8065. :class="{ fullStyle: full }"
  8066. ></pdf>
  8067. <iframe
  8068. v-else
  8069. :src="pptImgUrl"
  8070. frameborder="0"
  8071. width="100%"
  8072. height="600"
  8073. :class="{ fullStyle: full }"
  8074. ></iframe>
  8075. </div>
  8076. <div
  8077. class="worksAnswer"
  8078. v-if="commentDetail.works && commentDetail.type == 0"
  8079. >
  8080. <img
  8081. src="../assets/teacherWork.png"
  8082. v-if="commentDetail.ateacher"
  8083. class="w_teachert"
  8084. style="right: 105px"
  8085. />
  8086. <img
  8087. :src="commentDetail.works"
  8088. alt=""
  8089. @click="previewImg(commentDetail.works)"
  8090. />
  8091. </div>
  8092. <div
  8093. class="worksAnswer"
  8094. v-if="commentDetail.works && commentDetail.type == 3"
  8095. >
  8096. <img
  8097. src="../assets/teacherWork.png"
  8098. v-if="commentDetail.ateacher"
  8099. class="w_teachert"
  8100. />
  8101. <video-player
  8102. class="video-player vjs-custom-skin"
  8103. :playsinline="true"
  8104. :options="videoDetail"
  8105. @play="onPlayerPlay($event)"
  8106. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8107. ></video-player>
  8108. </div>
  8109. <div
  8110. class="worksAnswer"
  8111. v-if="commentDetail.works && commentDetail.type == 10"
  8112. >
  8113. <div class="cont" v-html="commentDetail.works.text"></div>
  8114. </div>
  8115. <div
  8116. class="worksAnswer codeFileBox"
  8117. v-if="commentDetail.works && commentDetail.type == 12"
  8118. @click="downloadFile(commentDetail.works)"
  8119. >
  8120. <img src="../assets/icon/codeFile.png" />
  8121. <div>点击下载文件</div>
  8122. </div>
  8123. <div
  8124. class="worksAnswer codeFileBox"
  8125. v-if="commentDetail.works && commentDetail.type == 15"
  8126. @click="
  8127. openCocoPi(
  8128. 57,
  8129. commentIndexJson.toolIndex,
  8130. commentDetail.userid,
  8131. commentDetail.sName
  8132. )
  8133. "
  8134. >
  8135. <img src="../assets/icon/codeFile.png" />
  8136. <div>点击打开CocoPi</div>
  8137. </div>
  8138. <div
  8139. class="worksAnswer"
  8140. v-if="commentDetail.works && commentDetail.type == 13"
  8141. >
  8142. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8143. </div>
  8144. <div
  8145. class="worksAnswer"
  8146. v-if="commentDetail.works && commentDetail.type == 4"
  8147. >
  8148. <div class="evalCss">
  8149. <div class="nav">请选择星星进行评分</div>
  8150. <div class="middleBox" v-if="eScore.eStar">
  8151. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8152. <div class="nameAndrate">
  8153. <div>{{ e.value }}</div>
  8154. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  8155. </div>
  8156. <div v-if="e.detail">{{ e.detail }}</div>
  8157. </div>
  8158. <div class="bz">
  8159. <textarea
  8160. disabled
  8161. rows="4"
  8162. class="pj"
  8163. style="
  8164. padding: 10px 5px;
  8165. width: 70%;
  8166. background: #f7f6f9;
  8167. font-size: 14px;
  8168. text-indent: 10px;
  8169. color: #000;
  8170. "
  8171. cols
  8172. v-model="eScore.eBzText"
  8173. placeholder="请输入评价内容..."
  8174. ></textarea>
  8175. </div>
  8176. </div>
  8177. </div>
  8178. </div>
  8179. <div class="comment">
  8180. <div class="commentList">
  8181. <div class="commentImg">
  8182. <img
  8183. @click="
  8184. isLikes(
  8185. commentDetail.wid,
  8186. userid,
  8187. 1,
  8188. null,
  8189. commentDetail.isLikes
  8190. )
  8191. "
  8192. :src="commentDetail.isLikes == true ? likes : noLikes"
  8193. alt=""
  8194. />
  8195. </div>
  8196. <div>{{ commentDetail.likesCount }}</div>
  8197. </div>
  8198. <div class="commentList">
  8199. <div class="commentImg">
  8200. <img src="../assets/icon/comment/comment.png" alt="" />
  8201. </div>
  8202. <div>{{ commentDetail.commentCount }}</div>
  8203. </div>
  8204. </div>
  8205. <div class="drawPBox" v-if="commentDetail.img">
  8206. <span>教师批注</span>
  8207. <img
  8208. :src="commentDetail.img"
  8209. alt=""
  8210. @click="previewImg(commentDetail.img)"
  8211. />
  8212. <span
  8213. class="deleteImg"
  8214. v-if="tType == 1 || tType == 4"
  8215. @click.stop="deletePicturePaint(commentDetail.wid)"
  8216. style="
  8217. font-size: 14px;
  8218. width: auto !important;
  8219. color: #b4b4b4;
  8220. top: unset;
  8221. bottom: 0;
  8222. border: none;
  8223. padding: 0;
  8224. height: auto !important;
  8225. margin: 0;
  8226. "
  8227. >删除</span
  8228. >
  8229. </div>
  8230. </div>
  8231. <div class="commentBox">
  8232. <div class="pl">评论:</div>
  8233. <div style="max-height: 200px; overflow: auto">
  8234. <div
  8235. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  8236. style="padding: 10px 0 0 0"
  8237. >
  8238. <div
  8239. class="studentDetail"
  8240. style="padding-top: 10px"
  8241. v-for="(co, coIndex) in commentDetail.commentJson"
  8242. :key="coIndex"
  8243. >
  8244. <div class="tx" style="min-width: 50px">
  8245. <img src="../assets/avatar.png" alt="" />
  8246. </div>
  8247. <div class="plPerson">
  8248. <div class="plName">
  8249. <div>{{ co.commentPeople }}</div>
  8250. <div style="margin-left: 5px">
  8251. {{ co.commentTime }}
  8252. </div>
  8253. <div
  8254. class="deleteComment"
  8255. v-if="userid == co.userid"
  8256. @click="deleteComment(co.wid)"
  8257. >
  8258. 删除
  8259. </div>
  8260. </div>
  8261. <div class="plContent">{{ co.commentText }}</div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  8266. </div>
  8267. </div>
  8268. <div style="margin-top: 10px">
  8269. <div class="displayBox">
  8270. <div
  8271. style="
  8272. color: #556db4;
  8273. font-size: 14px;
  8274. font-weight: bold;
  8275. padding-bottom: 10px;
  8276. "
  8277. >
  8278. 评价
  8279. </div>
  8280. <div class="easy_comment" v-if="false">
  8281. <div
  8282. v-for="(p, pIndex) in PlTextList"
  8283. :key="pIndex"
  8284. @click="fastText(p, 1)"
  8285. >
  8286. {{ p }}
  8287. </div>
  8288. </div>
  8289. </div>
  8290. <div>
  8291. <textarea
  8292. rows="3"
  8293. class="pj"
  8294. style="padding: 10px 5px"
  8295. cols
  8296. v-model="commentText"
  8297. placeholder="请输入评论"
  8298. ></textarea>
  8299. </div>
  8300. </div>
  8301. <div slot="footer">
  8302. <el-button
  8303. @click="
  8304. (commentDialogVisible = false),
  8305. (commentIndexJson = {}),
  8306. videoDetail.sources && videoDetail.sources[0]
  8307. ? (videoDetail.sources[0].src = '')
  8308. : ''
  8309. "
  8310. >取 消</el-button
  8311. >
  8312. <el-button
  8313. type="primary"
  8314. @click="addComment(commentDetail.wid, userid, 2)"
  8315. >确 定</el-button
  8316. >
  8317. </div>
  8318. </el-dialog>
  8319. <el-dialog
  8320. title="查看文档"
  8321. :visible.sync="fullDialogVisible"
  8322. :append-to-body="true"
  8323. width="100%"
  8324. :before-close="handleClose"
  8325. :show-close="false"
  8326. class="dialog_diy full_diy"
  8327. :class="{ full_diy2: fulltype == 3 }"
  8328. >
  8329. <div slot="title" class="header-title">
  8330. <div style="color: #fff">查看文档</div>
  8331. <div
  8332. @click="fullDialogVisible = false"
  8333. style="
  8334. cursor: pointer;
  8335. position: absolute;
  8336. top: 20px;
  8337. right: 20px;
  8338. color: #fff;
  8339. "
  8340. >
  8341. 退出全屏
  8342. </div>
  8343. </div>
  8344. <div style="height: 100%">
  8345. <div
  8346. class="wheel"
  8347. v-if="
  8348. fulltype == 2 &&
  8349. fullUrl.indexOf(
  8350. 'https://view.officeapps.live.com/op/view.aspx?src='
  8351. ) != -1
  8352. "
  8353. style="width: 95%; margin: 0 auto"
  8354. >
  8355. <iframe
  8356. style="width: 100%; height: 100%; border: none"
  8357. :src="fullUrl"
  8358. ></iframe>
  8359. </div>
  8360. <iframe
  8361. v-else-if="fulltype == 2"
  8362. style="width: 100%; height: 100%; border: none"
  8363. :src="fullUrl"
  8364. security="restricted"
  8365. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  8366. ></iframe>
  8367. <pdf
  8368. v-else-if="fulltype == 3"
  8369. :pdfUrl="fullUrl"
  8370. style="width: 100%; height: 100%; overflow: auto"
  8371. ></pdf>
  8372. <div
  8373. class="wheel"
  8374. v-if="fulltype == 1"
  8375. style="
  8376. box-shadow: 0 0 6px 1px #f2f2f2;
  8377. width: 100%;
  8378. background: #f1f1f1;
  8379. "
  8380. >
  8381. <div class="title" style="width: 100%; box-sizing: border-box">
  8382. 查看文档
  8383. </div>
  8384. <el-form class="textBox" style="height: 90%">
  8385. <el-form-item class="textTitle">
  8386. <div style="font-size: 22px">
  8387. {{ fullUrl.name }}
  8388. </div>
  8389. </el-form-item>
  8390. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  8391. <div
  8392. v-html="fullUrl.url"
  8393. class="textContent"
  8394. style="height: auto"
  8395. ></div>
  8396. </el-form>
  8397. </div>
  8398. </div>
  8399. <!-- <div slot="footer">
  8400. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  8401. </div> -->
  8402. </el-dialog>
  8403. <el-dialog
  8404. title="个人评价"
  8405. :visible.sync="studentEvalDialogVisible"
  8406. :append-to-body="true"
  8407. width="800px"
  8408. :before-close="handleClose"
  8409. class="dialog_diy"
  8410. >
  8411. <div class="evalCss">
  8412. <div class="nav">请选择星星进行评分</div>
  8413. <div class="middleBox" v-if="eScore.eStar">
  8414. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8415. <div class="nameAndrate">
  8416. <div>{{ e.value }}</div>
  8417. <el-rate
  8418. v-model="eScore.eStar[eIndex]"
  8419. :disabled="isStar"
  8420. ></el-rate>
  8421. </div>
  8422. <div v-if="e.detail">{{ e.detail }}</div>
  8423. </div>
  8424. <div class="easy_comment" v-if="false">
  8425. <div
  8426. v-for="(p, pIndex) in PlTextList"
  8427. :key="pIndex"
  8428. @click="fastText(p, 2)"
  8429. >
  8430. {{ p }}
  8431. </div>
  8432. </div>
  8433. <div class="bz">
  8434. <textarea
  8435. :disabled="isStar"
  8436. rows="4"
  8437. class="pj"
  8438. style="
  8439. padding: 10px 5px;
  8440. width: 70%;
  8441. background: #f7f6f9;
  8442. font-size: 14px;
  8443. text-indent: 10px;
  8444. "
  8445. cols
  8446. v-model="eScore.eBzText"
  8447. placeholder="请输入评价内容..."
  8448. ></textarea>
  8449. </div>
  8450. </div>
  8451. </div>
  8452. <div slot="footer">
  8453. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  8454. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  8455. >确 定</el-button
  8456. >
  8457. </div>
  8458. </el-dialog>
  8459. <el-dialog
  8460. title="个人评价"
  8461. :visible.sync="studentEvalDialogVisibleTeacher"
  8462. :append-to-body="true"
  8463. width="800px"
  8464. :before-close="handleClose"
  8465. class="dialog_diy"
  8466. >
  8467. <div class="w_name">
  8468. 学生姓名:<span>{{ sStudent.student }}</span>
  8469. </div>
  8470. <div class="evalCss">
  8471. <div class="nav">请选择星星进行评分</div>
  8472. <div class="middleBox" v-if="eScore.eStar">
  8473. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8474. <div class="nameAndrate">
  8475. <div>{{ e.value }}</div>
  8476. <el-rate
  8477. v-model="eScore.eStar[eIndex]"
  8478. :disabled="isStar"
  8479. ></el-rate>
  8480. </div>
  8481. <div v-if="e.detail">{{ e.detail }}</div>
  8482. </div>
  8483. <div class="easy_comment" v-if="false">
  8484. <div
  8485. v-for="(p, pIndex) in PlTextList"
  8486. :key="pIndex"
  8487. @click="fastText(p, 2)"
  8488. >
  8489. {{ p }}
  8490. </div>
  8491. </div>
  8492. <div class="bz">
  8493. <textarea
  8494. :disabled="isStar"
  8495. rows="4"
  8496. class="pj"
  8497. style="
  8498. padding: 10px 5px;
  8499. width: 70%;
  8500. background: #f7f6f9;
  8501. font-size: 14px;
  8502. text-indent: 10px;
  8503. "
  8504. cols
  8505. v-model="eScore.eBzText"
  8506. placeholder="请输入评价内容..."
  8507. ></textarea>
  8508. </div>
  8509. </div>
  8510. </div>
  8511. <div slot="footer">
  8512. <el-button @click="studentEvalDialogVisibleTeacher = false"
  8513. >取 消</el-button
  8514. >
  8515. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  8516. >确 定</el-button
  8517. >
  8518. </div>
  8519. </el-dialog>
  8520. <el-dialog
  8521. title="选择填空"
  8522. :visible.sync="dialogVisibleSelect"
  8523. :append-to-body="true"
  8524. width="90%"
  8525. :before-close="handleClose"
  8526. class="dialog_diy dialog_diy3"
  8527. >
  8528. <div v-if="selectJson">
  8529. <div class="select_box2">
  8530. <div class="select_box2_title">
  8531. <div>选择填空</div>
  8532. <div>请选择对应的答案进行答题!</div>
  8533. </div>
  8534. <div class="select_box2_box">
  8535. <div class="select_box2_img">
  8536. <img
  8537. :src="selectJson.url"
  8538. @click="previewImg(selectJson.url)"
  8539. alt=""
  8540. />
  8541. </div>
  8542. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8543. <div style="padding-top: 15px">
  8544. <div class="select_answer_title" v-if="isSelect">
  8545. {{ selectAnswer.stu }}
  8546. </div>
  8547. <div class="select_answer_title" v-else>
  8548. 根据题目选择对应答案
  8549. </div>
  8550. <div
  8551. class="select_box2_answer_box"
  8552. v-for="(item2, checkIndex) in selectJson.select"
  8553. :key="checkIndex"
  8554. >
  8555. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8556. <el-select
  8557. :disabled="isSelect"
  8558. v-model="selectAnswer.answer[checkIndex]"
  8559. placeholder="请选择正确答案"
  8560. >
  8561. <el-option
  8562. v-for="(e, eIndex) in selectJson.select"
  8563. :key="eIndex"
  8564. :label="e"
  8565. :value="eIndex"
  8566. >
  8567. </el-option>
  8568. </el-select>
  8569. </div>
  8570. </div>
  8571. <div
  8572. class="rightAnswerCss"
  8573. v-if="isSelect && (tType == 1 || tType == 4)"
  8574. >
  8575. <div
  8576. v-for="(a, aIndex) in selectJson.answer"
  8577. :key="aIndex"
  8578. class="rightAnswer"
  8579. >
  8580. <div
  8581. v-if="selectAnswer.answer[aIndex] === a"
  8582. style="color: #767de1"
  8583. >
  8584. 回答正确
  8585. </div>
  8586. <div v-else>回答错误</div>
  8587. <div
  8588. style="margin-left: 10px"
  8589. v-if="selectAnswer.answer[aIndex] !== a"
  8590. >
  8591. 正确答案:
  8592. </div>
  8593. <div
  8594. :class="
  8595. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  8596. "
  8597. >
  8598. {{ selectJson.select[a] }}
  8599. </div>
  8600. </div>
  8601. </div>
  8602. </div>
  8603. <div class="upAnswerCss">
  8604. <el-button
  8605. type="primary"
  8606. @click="addSelectAnswer"
  8607. v-if="!isSelect"
  8608. >提交答案</el-button
  8609. >
  8610. </div>
  8611. </div>
  8612. </div>
  8613. </div>
  8614. </el-dialog>
  8615. <el-dialog
  8616. title="选择填空"
  8617. :visible.sync="dialogVisibleSelectTeacher"
  8618. :append-to-body="true"
  8619. width="90%"
  8620. :before-close="handleClose"
  8621. class="dialog_diy dialog_diy3"
  8622. >
  8623. <div v-if="selectJson">
  8624. <div class="w_name">
  8625. 学生姓名:<span>{{ sStudent.student }}</span>
  8626. </div>
  8627. <div class="select_box2">
  8628. <div class="select_box2_title">
  8629. <div>选择填空</div>
  8630. <div>请选择对应的答案进行答题!</div>
  8631. </div>
  8632. <div class="select_box2_box">
  8633. <div class="select_box2_img">
  8634. <img
  8635. :src="selectJson.url"
  8636. @click="previewImg(selectJson.url)"
  8637. alt=""
  8638. />
  8639. </div>
  8640. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8641. <div style="padding-top: 15px">
  8642. <div class="select_answer_title" v-if="isSelect">
  8643. {{ selectAnswer.stu }}
  8644. </div>
  8645. <div class="select_answer_title" v-else>
  8646. 根据题目选择对应答案
  8647. </div>
  8648. <div
  8649. class="select_box2_answer_box"
  8650. v-for="(item2, checkIndex) in selectJson.select"
  8651. :key="checkIndex"
  8652. >
  8653. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8654. <el-select
  8655. :disabled="isSelect"
  8656. v-model="selectAnswer.answer[checkIndex]"
  8657. placeholder="请选择正确答案"
  8658. >
  8659. <el-option
  8660. v-for="(e, eIndex) in selectJson.select"
  8661. :key="eIndex"
  8662. :label="e"
  8663. :value="eIndex"
  8664. >
  8665. </el-option>
  8666. </el-select>
  8667. </div>
  8668. </div>
  8669. <div
  8670. class="rightAnswerCss"
  8671. v-if="isSelect && (tType == 1 || tType == 4)"
  8672. >
  8673. <div
  8674. v-for="(a, aIndex) in selectJson.answer"
  8675. :key="aIndex"
  8676. class="rightAnswer"
  8677. >
  8678. <div
  8679. v-if="selectAnswer.answer[aIndex] === a"
  8680. style="color: #767de1"
  8681. >
  8682. 回答正确
  8683. </div>
  8684. <div v-else>回答错误</div>
  8685. <div
  8686. style="margin-left: 10px"
  8687. v-if="selectAnswer.answer[aIndex] !== a"
  8688. >
  8689. 正确答案:
  8690. </div>
  8691. <div
  8692. :class="
  8693. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  8694. "
  8695. >
  8696. {{ selectJson.select[a] }}
  8697. </div>
  8698. </div>
  8699. </div>
  8700. </div>
  8701. <div class="upAnswerCss">
  8702. <el-button
  8703. type="primary"
  8704. @click="addSelectAnswerTeacher"
  8705. v-if="!isSelect"
  8706. >提交答案</el-button
  8707. >
  8708. </div>
  8709. </div>
  8710. </div>
  8711. </div>
  8712. </el-dialog>
  8713. <el-dialog
  8714. title="教师评分"
  8715. :visible.sync="dialogVisibleScore"
  8716. :append-to-body="true"
  8717. width="800px"
  8718. :before-close="handleClose"
  8719. class="dialog_diy"
  8720. >
  8721. <div>
  8722. <div class="studentDetail">
  8723. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8724. <div class="nameAndTime">
  8725. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8726. <div>{{ commentDetail.time }}</div>
  8727. </div>
  8728. </div>
  8729. <div
  8730. class="worksAnswer"
  8731. v-if="commentDetail.works && commentDetail.type == 2"
  8732. >
  8733. {{ JSON.parse(commentDetail.works)[0].answer }}
  8734. </div>
  8735. <div
  8736. class="worksAnswer"
  8737. v-if="commentDetail.works && commentDetail.type == 1"
  8738. >
  8739. <pdf
  8740. v-if="showPDF"
  8741. :pdfUrl="pptImgUrl"
  8742. style="width: 100%; height: 520px; overflow: auto"
  8743. :class="{ fullStyle: full }"
  8744. ></pdf>
  8745. <iframe
  8746. v-else
  8747. :src="pptImgUrl"
  8748. frameborder="0"
  8749. width="100%"
  8750. height="600"
  8751. :class="{ fullStyle: full }"
  8752. ></iframe>
  8753. </div>
  8754. <div
  8755. class="worksAnswer"
  8756. v-if="commentDetail.works && commentDetail.type == 0"
  8757. >
  8758. <img
  8759. :src="commentDetail.works"
  8760. alt=""
  8761. @click="previewImg(commentDetail.works)"
  8762. />
  8763. </div>
  8764. <div
  8765. class="worksAnswer"
  8766. v-if="commentDetail.works && commentDetail.type == 3"
  8767. >
  8768. <video-player
  8769. class="video-player vjs-custom-skin"
  8770. :playsinline="true"
  8771. :options="videoDetail"
  8772. @play="onPlayerPlay($event)"
  8773. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8774. ></video-player>
  8775. </div>
  8776. <div
  8777. class="worksAnswer codeFileBox"
  8778. v-if="commentDetail.works && commentDetail.type == 12"
  8779. @click="downloadFile(commentDetail.works)"
  8780. >
  8781. <img src="../assets/icon/codeFile.png" />
  8782. <div>点击下载文件</div>
  8783. </div>
  8784. <div
  8785. class="worksAnswer codeFileBox"
  8786. v-if="commentDetail.works && commentDetail.type == 15"
  8787. @click="
  8788. openCocoPi(
  8789. 57,
  8790. commentIndexJson.toolIndex,
  8791. commentDetail.userid,
  8792. commentDetail.sName
  8793. )
  8794. "
  8795. >
  8796. <img src="../assets/icon/codeFile.png" />
  8797. <div>点击打开CocoPi</div>
  8798. </div>
  8799. <div
  8800. class="worksAnswer"
  8801. v-if="commentDetail.works && commentDetail.type == 13"
  8802. >
  8803. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8804. </div>
  8805. <div class="scoreBox">
  8806. <span class="t">请输入分数</span>
  8807. <el-input-number
  8808. :disabled="courseDetail.userid != userid"
  8809. v-model="wScore"
  8810. :controls="false"
  8811. :min="0"
  8812. :max="100"
  8813. ></el-input-number>
  8814. </div>
  8815. <div class="scoreDetailBox">
  8816. <span class="t">评分评论</span>
  8817. <el-input
  8818. type="textarea"
  8819. :rows="5"
  8820. :disabled="courseDetail.userid != userid"
  8821. resize="none"
  8822. v-model="scoreDetail"
  8823. placeholder="请输入对学生的评价"
  8824. >
  8825. </el-input>
  8826. </div>
  8827. </div>
  8828. <span slot="footer" class="dialog-footer">
  8829. <el-button
  8830. @click="
  8831. (dialogVisibleScore = false),
  8832. (commentIndexJson = {}),
  8833. videoDetail.sources && videoDetail.sources[0]
  8834. ? (videoDetail.sources[0].src = '')
  8835. : ''
  8836. "
  8837. >取 消</el-button
  8838. >
  8839. <el-button
  8840. type="primary"
  8841. v-if="courseDetail.userid == userid"
  8842. @click="scoreWork(commentDetail.wid)"
  8843. >确 定
  8844. </el-button>
  8845. </span>
  8846. </el-dialog>
  8847. <el-dialog
  8848. title="连词成句"
  8849. :visible.sync="dialogVisibleSentence"
  8850. :append-to-body="true"
  8851. width="1000px"
  8852. :before-close="handleClose"
  8853. class="dialog_diy dialog_diy3"
  8854. >
  8855. <div>
  8856. <div class="sentenBox">
  8857. <div
  8858. v-for="(st, stIndex) in sentenceList"
  8859. :key="stIndex"
  8860. style="padding-bottom: 20px"
  8861. >
  8862. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8863. <div class="cardList" v-if="st.chooseSenList">
  8864. <div class="cardBox">
  8865. <div
  8866. v-for="(r, rIndex) in st.chooseSenList"
  8867. :key="rIndex"
  8868. @click="returnCard(r, stIndex, rIndex)"
  8869. >
  8870. <el-tooltip
  8871. class="item"
  8872. effect="light"
  8873. :content="r"
  8874. placement="top"
  8875. v-if="r != '' && r != undefined"
  8876. >
  8877. <div
  8878. :class="{
  8879. isCard: r,
  8880. isChooseCard: r == '' || r == undefined,
  8881. }"
  8882. >
  8883. <div>{{ r }}</div>
  8884. </div>
  8885. </el-tooltip>
  8886. <div
  8887. :class="{
  8888. isCard: r,
  8889. isChooseCard: r == '' || r == undefined,
  8890. }"
  8891. v-else
  8892. >
  8893. <div>{{ r }}</div>
  8894. </div>
  8895. </div>
  8896. </div>
  8897. </div>
  8898. <div class="cardList" v-if="st.addChangeSen">
  8899. <div class="cardBox">
  8900. <div
  8901. v-for="(s, sIndex) in st.addChangeSen"
  8902. :key="sIndex"
  8903. @click="setRightAnswer(s, stIndex, sIndex)"
  8904. >
  8905. <el-tooltip
  8906. class="item"
  8907. effect="light"
  8908. :content="s"
  8909. placement="top"
  8910. v-if="s != '' && s != undefined"
  8911. >
  8912. <div
  8913. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8914. >
  8915. <div>{{ s }}</div>
  8916. </div>
  8917. </el-tooltip>
  8918. <div
  8919. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8920. v-else
  8921. >
  8922. <div>{{ s }}</div>
  8923. </div>
  8924. </div>
  8925. </div>
  8926. </div>
  8927. </div>
  8928. </div>
  8929. </div>
  8930. <span slot="footer" class="dialog-footer">
  8931. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  8932. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  8933. </span>
  8934. </el-dialog>
  8935. <el-dialog
  8936. title="连词成句"
  8937. :visible.sync="dialogVisibleSentenceTeacher"
  8938. :append-to-body="true"
  8939. width="1000px"
  8940. :before-close="handleClose"
  8941. class="dialog_diy dialog_diy3"
  8942. >
  8943. <div>
  8944. <div class="w_name">
  8945. 学生姓名:<span>{{ sStudent.student }}</span>
  8946. </div>
  8947. <div class="sentenBox">
  8948. <div
  8949. v-for="(st, stIndex) in sentenceList"
  8950. :key="stIndex"
  8951. style="padding-bottom: 20px"
  8952. >
  8953. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8954. <div class="cardList" v-if="st.chooseSenList">
  8955. <div class="cardBox">
  8956. <div
  8957. v-for="(r, rIndex) in st.chooseSenList"
  8958. :key="rIndex"
  8959. @click="returnCard(r, stIndex, rIndex)"
  8960. >
  8961. <el-tooltip
  8962. class="item"
  8963. effect="light"
  8964. :content="r"
  8965. placement="top"
  8966. v-if="r != '' && r != undefined"
  8967. >
  8968. <div
  8969. :class="{
  8970. isCard: r,
  8971. isChooseCard: r == '' || r == undefined,
  8972. }"
  8973. >
  8974. <div>{{ r }}</div>
  8975. </div>
  8976. </el-tooltip>
  8977. <div
  8978. :class="{
  8979. isCard: r,
  8980. isChooseCard: r == '' || r == undefined,
  8981. }"
  8982. v-else
  8983. >
  8984. <div>{{ r }}</div>
  8985. </div>
  8986. </div>
  8987. </div>
  8988. </div>
  8989. <div class="cardList" v-if="st.addChangeSen">
  8990. <div class="cardBox">
  8991. <div
  8992. v-for="(s, sIndex) in st.addChangeSen"
  8993. :key="sIndex"
  8994. @click="setRightAnswer(s, stIndex, sIndex)"
  8995. >
  8996. <el-tooltip
  8997. class="item"
  8998. effect="light"
  8999. :content="s"
  9000. placement="top"
  9001. v-if="s != '' && s != undefined"
  9002. >
  9003. <div
  9004. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9005. >
  9006. <div>{{ s }}</div>
  9007. </div>
  9008. </el-tooltip>
  9009. <div
  9010. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9011. v-else
  9012. >
  9013. <div>{{ s }}</div>
  9014. </div>
  9015. </div>
  9016. </div>
  9017. </div>
  9018. </div>
  9019. </div>
  9020. </div>
  9021. <span slot="footer" class="dialog-footer">
  9022. <el-button @click="dialogVisibleSentenceTeacher = false"
  9023. >取 消</el-button
  9024. >
  9025. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  9026. </span>
  9027. </el-dialog>
  9028. <el-dialog
  9029. title="连词成句"
  9030. :visible.sync="dialogVisibleSentence1"
  9031. :append-to-body="true"
  9032. width="1000px"
  9033. :before-close="handleClose"
  9034. class="dialog_diy dialog_diy3"
  9035. >
  9036. <div>
  9037. <div class="sentenBox">
  9038. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9039. {{ sentenceList1.stuName }}的作业
  9040. </div>
  9041. <div
  9042. v-for="(st, stIndex) in sentenceList1"
  9043. :key="stIndex"
  9044. style="padding-bottom: 20px"
  9045. >
  9046. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9047. 第{{ stIndex + 1 }}题
  9048. </div>
  9049. <div class="isWrong">
  9050. <div class="cardList1" v-if="st.chooseSenList">
  9051. <div class="cardBox">
  9052. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  9053. <el-tooltip
  9054. class="item"
  9055. effect="light"
  9056. :content="s"
  9057. placement="top"
  9058. >
  9059. <div class="isCard">
  9060. <div>{{ s }}</div>
  9061. </div>
  9062. </el-tooltip>
  9063. </div>
  9064. </div>
  9065. <div class="cardAnswerBox">
  9066. 组成句子:{{ st.chooseSenList.join(" ") }}
  9067. </div>
  9068. </div>
  9069. <div v-if="tType == 2" class="isTj">
  9070. <div class="isTjImg">
  9071. <img src="../assets/icon/conSentences/right.png" alt="" />
  9072. </div>
  9073. <div>已提交</div>
  9074. </div>
  9075. <div
  9076. class="answerRight isTj"
  9077. v-if="
  9078. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  9079. (tType == 1 || tType == 4)
  9080. "
  9081. >
  9082. <div class="isTjImg">
  9083. <img src="../assets/icon/conSentences/right.png" alt="" />
  9084. </div>
  9085. <div>回答正确</div>
  9086. </div>
  9087. <div
  9088. class="answerRight isTj"
  9089. v-if="
  9090. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9091. (tType == 1 || tType == 4)
  9092. "
  9093. >
  9094. <div class="isTjImg">
  9095. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  9096. </div>
  9097. <div>回答错误</div>
  9098. </div>
  9099. </div>
  9100. <div
  9101. v-if="
  9102. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9103. (tType == 1 || tType == 4)
  9104. "
  9105. >
  9106. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  9107. <div
  9108. class="cardList"
  9109. v-if="st.rightAnswer"
  9110. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  9111. >
  9112. <div class="cardBox">
  9113. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  9114. <el-tooltip
  9115. class="item"
  9116. effect="light"
  9117. :content="r"
  9118. placement="top"
  9119. >
  9120. <div class="isCard1">
  9121. <div>{{ r }}</div>
  9122. </div>
  9123. </el-tooltip>
  9124. </div>
  9125. </div>
  9126. <div class="cardAnswerBox">
  9127. 组成句子:{{ st.rightAnswer.join(" ") }}
  9128. </div>
  9129. </div>
  9130. </div>
  9131. </div>
  9132. </div>
  9133. </div>
  9134. <span slot="footer" class="dialog-footer">
  9135. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  9136. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  9137. >确 定</el-button
  9138. >
  9139. </span>
  9140. </el-dialog>
  9141. <el-dialog
  9142. title="教师提交作业"
  9143. :visible.sync="dialogVisibleWorks"
  9144. :append-to-body="true"
  9145. width="500px"
  9146. :before-close="handleClose"
  9147. class="dialog_change"
  9148. >
  9149. <div class="marginT">
  9150. <div class="w_name">
  9151. 学生姓名:<span>{{ sStudent.student }}</span>
  9152. </div>
  9153. <div>上传文件</div>
  9154. <div
  9155. class="chapter_add"
  9156. @click="addImg($event)"
  9157. v-if="studyJuri[0].cover.length == 0"
  9158. >
  9159. <div class="up_photo">
  9160. <img src="../assets/uploadImg2.png" alt />
  9161. </div>
  9162. <!-- <input
  9163. type="file"
  9164. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9165. style="display: none"
  9166. @change="beforeUpload1($event, 1)"
  9167. /> -->
  9168. <input
  9169. type="file"
  9170. accept="*"
  9171. style="display: none"
  9172. @change="beforeUpload1($event, 1)"
  9173. />
  9174. </div>
  9175. <!-- capture="camera" -->
  9176. <div
  9177. class="chapter_add"
  9178. style="
  9179. display: flex;
  9180. width: 100%;
  9181. flex-direction: row;
  9182. flex-wrap: wrap;
  9183. justify-content: flex-start;
  9184. padding: 15px 0;
  9185. "
  9186. v-if="studyJuri[0].cover.length > 0"
  9187. >
  9188. <div class="upCover">
  9189. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9190. <img :src="word" alt v-else-if="fileType == 1" />
  9191. <img :src="video" alt v-else-if="fileType == 2" />
  9192. <img :src="word2" alt v-else-if="fileType == 3" />
  9193. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9194. <div class="deleteWord" @click="clean(1)">
  9195. <img src="../assets/icon/deleteWorks.png" alt />
  9196. </div>
  9197. </div>
  9198. </div>
  9199. </div>
  9200. <div
  9201. class="upload_send"
  9202. @click="addCourseWorksTeacher(taskCount)"
  9203. v-if="!proVisible"
  9204. >
  9205. 提交
  9206. </div>
  9207. </el-dialog>
  9208. <ImgDraw
  9209. :drawShow="drawShow"
  9210. @closeDraw="closeDraw"
  9211. @addImgDraw="addImgDraw"
  9212. :bg="bg"
  9213. ></ImgDraw>
  9214. <el-dialog
  9215. title="表格"
  9216. :visible.sync="dialogVisibleTable"
  9217. :append-to-body="true"
  9218. width="95%"
  9219. :before-close="handleClose"
  9220. class="dialog_diy"
  9221. >
  9222. <el-form>
  9223. <div
  9224. style="
  9225. display: flex;
  9226. align-items: center;
  9227. justify-content: space-between;
  9228. "
  9229. >
  9230. <span>表格内容</span>
  9231. <el-button type="primary" size="small" @click="returnTableText"
  9232. >还原模板</el-button
  9233. >
  9234. </div>
  9235. <Table
  9236. v-model="tableJson.text"
  9237. @change="change"
  9238. v-if="dialogVisibleTable"
  9239. ></Table>
  9240. </el-form>
  9241. <span slot="footer" class="dialog-footer">
  9242. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  9243. <el-button type="primary" @click="addTableWorks">确定</el-button>
  9244. </span>
  9245. </el-dialog>
  9246. <el-dialog
  9247. title="表格"
  9248. :visible.sync="dialogVisibleTableTeacher"
  9249. :append-to-body="true"
  9250. width="95%"
  9251. :before-close="handleClose"
  9252. class="dialog_diy"
  9253. >
  9254. <el-form>
  9255. <div class="w_name">
  9256. 学生姓名:<span>{{ sStudent.student }}</span>
  9257. </div>
  9258. <div>表格内容</div>
  9259. <Table
  9260. v-model="tableJson.text"
  9261. @change="change"
  9262. v-if="dialogVisibleTableTeacher"
  9263. ></Table>
  9264. </el-form>
  9265. <span slot="footer" class="dialog-footer">
  9266. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  9267. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  9268. </span>
  9269. </el-dialog>
  9270. <el-dialog
  9271. title="文档"
  9272. :visible.sync="dialogVisibleWord"
  9273. :append-to-body="true"
  9274. width="95%"
  9275. :before-close="handleClose"
  9276. class="dialog_diy"
  9277. >
  9278. <el-form>
  9279. <div
  9280. style="
  9281. display: flex;
  9282. align-items: center;
  9283. justify-content: space-between;
  9284. "
  9285. >
  9286. <span>文档内容</span>
  9287. <el-button type="primary" size="small" @click="returnWordText"
  9288. >还原模板</el-button
  9289. >
  9290. </div>
  9291. <editor-bar
  9292. v-model="wordJson.text"
  9293. v-if="dialogVisibleWord"
  9294. ></editor-bar>
  9295. </el-form>
  9296. <span slot="footer" class="dialog-footer">
  9297. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  9298. <el-button type="primary" @click="addWordWorks">确定</el-button>
  9299. </span>
  9300. </el-dialog>
  9301. <el-dialog
  9302. title="文档"
  9303. :visible.sync="dialogVisibleWordTeacher"
  9304. :append-to-body="true"
  9305. width="95%"
  9306. :before-close="handleClose"
  9307. class="dialog_diy"
  9308. >
  9309. <el-form>
  9310. <div class="w_name">
  9311. 学生姓名:<span>{{ sStudent.student }}</span>
  9312. </div>
  9313. <div>文档内容</div>
  9314. <editor-bar
  9315. v-model="wordJson.text"
  9316. v-if="dialogVisibleWordTeacher"
  9317. ></editor-bar>
  9318. </el-form>
  9319. <span slot="footer" class="dialog-footer">
  9320. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  9321. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  9322. </span>
  9323. </el-dialog>
  9324. <el-dialog
  9325. title="表格"
  9326. :visible.sync="dialogVisibleTable2"
  9327. :append-to-body="true"
  9328. width="95%"
  9329. :before-close="handleClose"
  9330. class="dialog_diy"
  9331. >
  9332. <el-form>
  9333. <div class="cont" v-html="tableJson.text"></div>
  9334. </el-form>
  9335. <span slot="footer" class="dialog-footer">
  9336. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  9337. </span>
  9338. </el-dialog>
  9339. <el-dialog
  9340. title="文档"
  9341. :visible.sync="dialogVisibleTable3"
  9342. :append-to-body="true"
  9343. width="95%"
  9344. :before-close="handleClose"
  9345. class="dialog_diy"
  9346. >
  9347. <el-form>
  9348. <div class="cont" v-html="tableJson.text"></div>
  9349. </el-form>
  9350. <span slot="footer" class="dialog-footer">
  9351. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  9352. </span>
  9353. </el-dialog>
  9354. <el-dialog
  9355. title="分组设置"
  9356. :visible.sync="dialogVisibleGroup"
  9357. :append-to-body="true"
  9358. width="95%"
  9359. :before-close="handleClose"
  9360. class="dialog_diy"
  9361. >
  9362. <div v-if="dialogVisibleGroup">
  9363. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  9364. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  9365. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  9366. </div>
  9367. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  9368. @click="lockChair">
  9369. 锁定位置
  9370. </div>
  9371. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  9372. 解锁位置
  9373. </div> -->
  9374. <div class="group_switch">
  9375. <span>开放选座</span>
  9376. <el-switch
  9377. v-model="islock"
  9378. active-text=""
  9379. class="switchCss"
  9380. @change="lockChair"
  9381. ></el-switch>
  9382. </div>
  9383. <div
  9384. type="primary"
  9385. @click="updateGroup"
  9386. class="returnBtn"
  9387. style="background-color: #225bc7"
  9388. >
  9389. 分组设置
  9390. </div>
  9391. </div>
  9392. <div>
  9393. <div
  9394. class="g_d_box"
  9395. v-if="groupJson.group && groupStudent[toolindex]"
  9396. >
  9397. <div
  9398. class="g_d_group"
  9399. v-for="(g, gindex) in groupJson.group"
  9400. :key="gindex"
  9401. >
  9402. <div class="g_d_group_chair">
  9403. <div v-if="groupJson.number > 1">
  9404. <span
  9405. :class="{
  9406. isChair:
  9407. groupStudent[toolindex][gindex] &&
  9408. groupStudent[toolindex][gindex][0],
  9409. updateChair:
  9410. courseDetail.userid == userid &&
  9411. groupStudent[toolindex][gindex] &&
  9412. groupStudent[toolindex][gindex][0] &&
  9413. groupJson.islock == 2,
  9414. }"
  9415. ><span
  9416. class="updateChairBtn"
  9417. @click="
  9418. updateGroupChair(
  9419. groupStudent[toolindex][gindex] &&
  9420. groupStudent[toolindex][gindex][0]
  9421. )
  9422. "
  9423. >修改</span
  9424. ></span
  9425. ><span>{{
  9426. groupStudent[toolindex][gindex] &&
  9427. groupStudent[toolindex][gindex][0]
  9428. ? groupStudent[toolindex][gindex] &&
  9429. groupStudent[toolindex][gindex][0].name
  9430. : "空位置"
  9431. }}</span>
  9432. </div>
  9433. <div v-if="groupJson.number > 4">
  9434. <span
  9435. :class="{
  9436. isChair:
  9437. groupStudent[toolindex][gindex] &&
  9438. groupStudent[toolindex][gindex][4],
  9439. updateChair:
  9440. courseDetail.userid == userid &&
  9441. groupStudent[toolindex][gindex] &&
  9442. groupStudent[toolindex][gindex][4] &&
  9443. groupJson.islock == 2,
  9444. }"
  9445. ><span
  9446. class="updateChairBtn"
  9447. @click="
  9448. updateGroupChair(
  9449. groupStudent[toolindex][gindex] &&
  9450. groupStudent[toolindex][gindex][4]
  9451. )
  9452. "
  9453. >修改</span
  9454. ></span
  9455. ><span>{{
  9456. groupStudent[toolindex][gindex] &&
  9457. groupStudent[toolindex][gindex][4]
  9458. ? groupStudent[toolindex][gindex] &&
  9459. groupStudent[toolindex][gindex][4].name
  9460. : "空位置"
  9461. }}</span>
  9462. </div>
  9463. <div v-if="groupJson.number > 8">
  9464. <span
  9465. :class="{
  9466. isChair:
  9467. groupStudent[toolindex][gindex] &&
  9468. groupStudent[toolindex][gindex][8],
  9469. updateChair:
  9470. courseDetail.userid == userid &&
  9471. groupStudent[toolindex][gindex] &&
  9472. groupStudent[toolindex][gindex][8] &&
  9473. groupJson.islock == 2,
  9474. }"
  9475. ><span
  9476. class="updateChairBtn"
  9477. @click="
  9478. updateGroupChair(
  9479. groupStudent[toolindex][gindex] &&
  9480. groupStudent[toolindex][gindex][8]
  9481. )
  9482. "
  9483. >修改</span
  9484. ></span
  9485. ><span>{{
  9486. groupStudent[toolindex][gindex] &&
  9487. groupStudent[toolindex][gindex][8]
  9488. ? groupStudent[toolindex][gindex] &&
  9489. groupStudent[toolindex][gindex][8].name
  9490. : "空位置"
  9491. }}</span>
  9492. </div>
  9493. </div>
  9494. <div class="g_d_group_tableBox">
  9495. <div class="g_d_group_chair2">
  9496. <div v-if="groupJson.number > 2">
  9497. <span
  9498. :class="{
  9499. isChair:
  9500. groupStudent[toolindex][gindex] &&
  9501. groupStudent[toolindex][gindex][2],
  9502. updateChair:
  9503. courseDetail.userid == userid &&
  9504. groupStudent[toolindex][gindex] &&
  9505. groupStudent[toolindex][gindex][2] &&
  9506. groupJson.islock == 2,
  9507. }"
  9508. ><span
  9509. class="updateChairBtn"
  9510. @click="
  9511. updateGroupChair(
  9512. groupStudent[toolindex][gindex] &&
  9513. groupStudent[toolindex][gindex][2]
  9514. )
  9515. "
  9516. >修改</span
  9517. ></span
  9518. ><span>{{
  9519. groupStudent[toolindex][gindex] &&
  9520. groupStudent[toolindex][gindex][2]
  9521. ? groupStudent[toolindex][gindex] &&
  9522. groupStudent[toolindex][gindex][2].name
  9523. : "空位置"
  9524. }}</span>
  9525. </div>
  9526. <div v-if="groupJson.number > 6">
  9527. <span
  9528. :class="{
  9529. isChair:
  9530. groupStudent[toolindex][gindex] &&
  9531. groupStudent[toolindex][gindex][6],
  9532. updateChair:
  9533. courseDetail.userid == userid &&
  9534. groupStudent[toolindex][gindex] &&
  9535. groupStudent[toolindex][gindex][6] &&
  9536. groupJson.islock == 2,
  9537. }"
  9538. ><span
  9539. class="updateChairBtn"
  9540. @click="
  9541. updateGroupChair(
  9542. groupStudent[toolindex][gindex] &&
  9543. groupStudent[toolindex][gindex][6]
  9544. )
  9545. "
  9546. >修改</span
  9547. ></span
  9548. ><span>{{
  9549. groupStudent[toolindex][gindex] &&
  9550. groupStudent[toolindex][gindex][6]
  9551. ? groupStudent[toolindex][gindex] &&
  9552. groupStudent[toolindex][gindex][6].name
  9553. : "空位置"
  9554. }}</span>
  9555. </div>
  9556. </div>
  9557. <div class="g_d_group_table">
  9558. <div>
  9559. {{ g.name }}
  9560. </div>
  9561. <div>
  9562. <div
  9563. v-if="
  9564. courseDetail.userid == userid && groupJson.islock == 2
  9565. "
  9566. @click="deleteGroupChair(gindex)"
  9567. >
  9568. 移除组员
  9569. </div>
  9570. <div
  9571. @click="selectGroup(gindex)"
  9572. v-else-if="
  9573. groupStudentUid[toolindex] &&
  9574. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  9575. "
  9576. >
  9577. 加入分组
  9578. </div>
  9579. <div
  9580. @click="
  9581. exitGroup(
  9582. groupStudent[toolindex][gindex] &&
  9583. groupStudent[toolindex][gindex][
  9584. groupStudentUid[toolindex][gindex].indexOf(userid)
  9585. ].id
  9586. )
  9587. "
  9588. v-else-if="
  9589. groupStudentUid[toolindex] &&
  9590. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  9591. "
  9592. >
  9593. 退出分组
  9594. </div>
  9595. </div>
  9596. </div>
  9597. <div class="g_d_group_chair2">
  9598. <div v-if="groupJson.number > 3">
  9599. <span
  9600. :class="{
  9601. isChair:
  9602. groupStudent[toolindex][gindex] &&
  9603. groupStudent[toolindex][gindex][3],
  9604. updateChair:
  9605. courseDetail.userid == userid &&
  9606. groupStudent[toolindex][gindex] &&
  9607. groupStudent[toolindex][gindex][3] &&
  9608. groupJson.islock == 2,
  9609. }"
  9610. ><span
  9611. class="updateChairBtn"
  9612. @click="
  9613. updateGroupChair(
  9614. groupStudent[toolindex][gindex] &&
  9615. groupStudent[toolindex][gindex][3]
  9616. )
  9617. "
  9618. >修改</span
  9619. ></span
  9620. ><span>{{
  9621. groupStudent[toolindex][gindex] &&
  9622. groupStudent[toolindex][gindex][3]
  9623. ? groupStudent[toolindex][gindex] &&
  9624. groupStudent[toolindex][gindex][3].name
  9625. : "空位置"
  9626. }}</span>
  9627. </div>
  9628. <div v-if="groupJson.number > 7">
  9629. <span
  9630. :class="{
  9631. isChair:
  9632. groupStudent[toolindex][gindex] &&
  9633. groupStudent[toolindex][gindex][7],
  9634. updateChair:
  9635. courseDetail.userid == userid &&
  9636. groupStudent[toolindex][gindex] &&
  9637. groupStudent[toolindex][gindex][7] &&
  9638. groupJson.islock == 2,
  9639. }"
  9640. ><span
  9641. class="updateChairBtn"
  9642. @click="
  9643. updateGroupChair(
  9644. groupStudent[toolindex][gindex] &&
  9645. groupStudent[toolindex][gindex][7]
  9646. )
  9647. "
  9648. >修改</span
  9649. ></span
  9650. ><span>{{
  9651. groupStudent[toolindex][gindex] &&
  9652. groupStudent[toolindex][gindex][7]
  9653. ? groupStudent[toolindex][gindex] &&
  9654. groupStudent[toolindex][gindex][7].name
  9655. : "空位置"
  9656. }}</span>
  9657. </div>
  9658. </div>
  9659. </div>
  9660. <div class="g_d_group_chair">
  9661. <div v-if="groupJson.number > 1">
  9662. <span
  9663. :class="{
  9664. isChair:
  9665. groupStudent[toolindex][gindex] &&
  9666. groupStudent[toolindex][gindex][1],
  9667. updateChair:
  9668. courseDetail.userid == userid &&
  9669. groupStudent[toolindex][gindex] &&
  9670. groupStudent[toolindex][gindex][1] &&
  9671. groupJson.islock == 2,
  9672. }"
  9673. ><span
  9674. class="updateChairBtn"
  9675. @click="
  9676. updateGroupChair(
  9677. groupStudent[toolindex][gindex] &&
  9678. groupStudent[toolindex][gindex][1]
  9679. )
  9680. "
  9681. >修改</span
  9682. ></span
  9683. ><span>{{
  9684. groupStudent[toolindex][gindex] &&
  9685. groupStudent[toolindex][gindex][1]
  9686. ? groupStudent[toolindex][gindex] &&
  9687. groupStudent[toolindex][gindex][1].name
  9688. : "空位置"
  9689. }}</span>
  9690. </div>
  9691. <div v-if="groupJson.number > 5">
  9692. <span
  9693. :class="{
  9694. isChair:
  9695. groupStudent[toolindex][gindex] &&
  9696. groupStudent[toolindex][gindex][5],
  9697. updateChair:
  9698. courseDetail.userid == userid &&
  9699. groupStudent[toolindex][gindex] &&
  9700. groupStudent[toolindex][gindex][5] &&
  9701. groupJson.islock == 2,
  9702. }"
  9703. ><span
  9704. class="updateChairBtn"
  9705. @click="
  9706. updateGroupChair(
  9707. groupStudent[toolindex][gindex] &&
  9708. groupStudent[toolindex][gindex][5]
  9709. )
  9710. "
  9711. >修改</span
  9712. ></span
  9713. ><span>{{
  9714. groupStudent[toolindex][gindex] &&
  9715. groupStudent[toolindex][gindex][5]
  9716. ? groupStudent[toolindex][gindex] &&
  9717. groupStudent[toolindex][gindex][5].name
  9718. : "空位置"
  9719. }}</span>
  9720. </div>
  9721. <div v-if="groupJson.number > 9">
  9722. <span
  9723. :class="{
  9724. isChair:
  9725. groupStudent[toolindex][gindex] &&
  9726. groupStudent[toolindex][gindex][9],
  9727. updateChair:
  9728. courseDetail.userid == userid &&
  9729. groupStudent[toolindex][gindex] &&
  9730. groupStudent[toolindex][gindex][9] &&
  9731. groupJson.islock == 2,
  9732. }"
  9733. ><span
  9734. class="updateChairBtn"
  9735. @click="
  9736. updateGroupChair(
  9737. groupStudent[toolindex][gindex] &&
  9738. groupStudent[toolindex][gindex][9]
  9739. )
  9740. "
  9741. >修改</span
  9742. ></span
  9743. ><span>{{
  9744. groupStudent[toolindex][gindex] &&
  9745. groupStudent[toolindex][gindex][9]
  9746. ? groupStudent[toolindex][gindex] &&
  9747. groupStudent[toolindex][gindex][9].name
  9748. : "空位置"
  9749. }}</span>
  9750. </div>
  9751. </div>
  9752. </div>
  9753. </div>
  9754. </div>
  9755. </div>
  9756. <span slot="footer" class="dialog-footer">
  9757. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  9758. </span>
  9759. </el-dialog>
  9760. <el-dialog
  9761. title="分组设置"
  9762. :visible.sync="dialogVisibleGroup2"
  9763. :append-to-body="true"
  9764. width="650px"
  9765. :before-close="handleClose"
  9766. class="dialog_diy"
  9767. >
  9768. <div class="groupBox">
  9769. <div v-if="groupJson2.group" class="groupContent">
  9770. <div class="groupTitle">请设置小组数量</div>
  9771. <div
  9772. v-for="(item, index) in groupJson2.group"
  9773. :key="index"
  9774. class="groupName"
  9775. >
  9776. <span class="groupn">组{{ index + 1 }}名称:</span>
  9777. <el-input
  9778. v-model="item.name"
  9779. placeholder="请输入名称..."
  9780. style="width: 250px"
  9781. ></el-input>
  9782. <!-- <div class="groupBtn">
  9783. <el-button type="primary" size="small" @click="addGroup(index)">
  9784. 添加</el-button>
  9785. <el-button type="primary" size="small" @click="deleteGroup(index)"
  9786. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  9787. </div> -->
  9788. </div>
  9789. </div>
  9790. <div class="groupContent">
  9791. <div class="groupTitle">请设置每组人数数量</div>
  9792. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  9793. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  9794. <el-input-number
  9795. v-model="groupJson2.number"
  9796. :controls="false"
  9797. :min="2"
  9798. :max="10"
  9799. placeholder="2-10人以内"
  9800. ></el-input-number>
  9801. </div>
  9802. </div>
  9803. <span slot="footer" class="dialog-footer">
  9804. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  9805. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  9806. </span>
  9807. </el-dialog>
  9808. <el-dialog
  9809. title="作业提交"
  9810. :visible.sync="dialogVisibleGroupWork"
  9811. :append-to-body="true"
  9812. width="500px"
  9813. :before-close="handleClose"
  9814. class="dialog_change"
  9815. >
  9816. <div class="marginT">
  9817. <div>上传文件</div>
  9818. <div
  9819. class="chapter_add"
  9820. @click="addImg($event)"
  9821. v-if="studyJuri[0].cover.length == 0"
  9822. >
  9823. <div class="up_photo">
  9824. <img src="../assets/icon/uploadImg.png" alt />
  9825. </div>
  9826. <!-- <input
  9827. type="file"
  9828. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9829. style="display: none"
  9830. @change="beforeUpload1($event, 1)"
  9831. /> -->
  9832. <input
  9833. type="file"
  9834. accept="*"
  9835. style="display: none"
  9836. @change="beforeUpload1($event, 1)"
  9837. />
  9838. </div>
  9839. <!-- capture="camera" -->
  9840. <div
  9841. class="chapter_add"
  9842. style="
  9843. display: flex;
  9844. width: 100%;
  9845. flex-direction: row;
  9846. flex-wrap: wrap;
  9847. justify-content: flex-start;
  9848. padding: 15px 0;
  9849. "
  9850. v-if="studyJuri[0].cover.length > 0"
  9851. >
  9852. <div class="upCover">
  9853. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9854. <img :src="word" alt v-else-if="fileType == 1" />
  9855. <img :src="video" alt v-else-if="fileType == 2" />
  9856. <img :src="word2" alt v-else-if="fileType == 3" />
  9857. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9858. <div class="deleteWord" @click="clean(1)">
  9859. <img src="../assets/icon/deleteWorks.png" alt />
  9860. </div>
  9861. </div>
  9862. </div>
  9863. </div>
  9864. <div
  9865. class="upload_send"
  9866. @click="addCourseWorks2(taskCount)"
  9867. v-if="!proVisible"
  9868. >
  9869. 提交
  9870. </div>
  9871. </el-dialog>
  9872. <el-dialog
  9873. title="修改分组"
  9874. :visible.sync="dialogVisibleUpdateGroup"
  9875. :append-to-body="true"
  9876. width="350px"
  9877. :before-close="handleClose"
  9878. class="dialog_diy"
  9879. >
  9880. <div>
  9881. <h2>
  9882. {{ this.updateGroupUser.name }}
  9883. </h2>
  9884. <div style="color: rgb(171 171 171); margin-top: 10px">
  9885. 请选择要进入的分组
  9886. </div>
  9887. <el-radio-group v-model="checkChair">
  9888. <el-radio
  9889. style="display: block; margin-top: 20px"
  9890. v-for="(item, index) in updateGroupArray"
  9891. :label="item.label"
  9892. :key="index"
  9893. >{{ item.name }}</el-radio
  9894. >
  9895. </el-radio-group>
  9896. </div>
  9897. <span slot="footer" class="dialog-footer">
  9898. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  9899. <el-button type="primary" @click="updateChair">确定</el-button>
  9900. </span>
  9901. </el-dialog>
  9902. <el-dialog
  9903. title="移除组员"
  9904. :visible.sync="dialogVisibleDeleteGroup"
  9905. :append-to-body="true"
  9906. width="350px"
  9907. :before-close="handleClose"
  9908. class="dialog_diy"
  9909. >
  9910. <div>
  9911. <h2>
  9912. {{ this.deleteGroupArray.name }}
  9913. </h2>
  9914. <div style="color: rgb(171 171 171); margin-top: 10px">
  9915. 请选择要删除的组员
  9916. </div>
  9917. <el-checkbox-group v-model="checkDeleteGroup">
  9918. <el-checkbox
  9919. style="display: block; margin-top: 20px"
  9920. v-for="(item, index) in deleteGroupUser"
  9921. :label="item.userid"
  9922. :key="index"
  9923. >{{ item.name }}</el-checkbox
  9924. >
  9925. </el-checkbox-group>
  9926. </div>
  9927. <span slot="footer" class="dialog-footer">
  9928. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  9929. <el-button type="primary" @click="deleteChair">确定</el-button>
  9930. </span>
  9931. </el-dialog>
  9932. <el-dialog
  9933. title="批量上传"
  9934. :visible.sync="dialogVisiblePl"
  9935. :append-to-body="true"
  9936. width="700px"
  9937. :before-close="handleClose"
  9938. class="dialog_change"
  9939. >
  9940. <div class="marginT">
  9941. <div class="plworkBox">
  9942. <div
  9943. class="chapter_add"
  9944. style="
  9945. display: flex;
  9946. width: 150px;
  9947. flex-direction: row;
  9948. flex-wrap: wrap;
  9949. justify-content: flex-start;
  9950. margin: 0 10px 10px 0;
  9951. "
  9952. v-for="(item, index) in plworkFile"
  9953. :key="index"
  9954. >
  9955. <div class="upCover2">
  9956. <img
  9957. :src="item.url"
  9958. alt
  9959. v-if="item.fileType == 1"
  9960. @click="previewImg(item.url)"
  9961. />
  9962. <img :src="word" alt v-else-if="item.fileType == 4" />
  9963. <img :src="video" alt v-else />
  9964. <!-- <span class="picName">{{ item.name }}</span> -->
  9965. <!-- <el-input
  9966. v-model="item.username"
  9967. placeholder="请输入学生名字"
  9968. style="margin-top: 10px"
  9969. ></el-input> -->
  9970. <div
  9971. class="pl_select_box"
  9972. @click="
  9973. getUpdateMore(true, checkUpload(), item.username, index)
  9974. "
  9975. >
  9976. {{ getSName(item.username) }}
  9977. </div>
  9978. <!-- <el-select
  9979. style="margin-top: 10px"
  9980. v-model="item.username"
  9981. filterable
  9982. allow-create
  9983. placeholder="请选择学生"
  9984. >
  9985. <el-option
  9986. v-for="item1 in checkUpload()"
  9987. :key="item1.userid"
  9988. :label="item1.name ? item1.name : item1.username"
  9989. :value="item1.userid"
  9990. >
  9991. </el-option>
  9992. </el-select> -->
  9993. <div class="deleteWord" @click="clean2(index)">
  9994. <img src="../assets/icon/deleteWorks.png" alt />
  9995. </div>
  9996. </div>
  9997. </div>
  9998. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  9999. <div class="up_photo2">
  10000. <img src="../assets/icon/plwork.png" alt />
  10001. <span>点击上传文件</span>
  10002. </div>
  10003. <input
  10004. type="file"
  10005. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10006. multiple="multiple"
  10007. style="display: none"
  10008. @change="beforeUpload3($event, 6)"
  10009. />
  10010. </div>
  10011. </div>
  10012. </div>
  10013. <!-- capture="camera" -->
  10014. <div
  10015. class="upload_send"
  10016. @click="addCourseWorksPl(taskCount)"
  10017. v-if="!proVisible2"
  10018. >
  10019. 提交
  10020. </div>
  10021. </el-dialog>
  10022. <el-dialog
  10023. title="修改名称"
  10024. :visible.sync="dialogVisibleSname"
  10025. width="500px"
  10026. :before-close="handleClose"
  10027. class="dialog_diy"
  10028. center
  10029. >
  10030. <div
  10031. style="
  10032. text-align: center;
  10033. display: flex;
  10034. align-items: center;
  10035. justify-content: center;
  10036. "
  10037. >
  10038. <span class="tian1">名称</span>
  10039. <div
  10040. class="pl_select_box"
  10041. style="margin-left: 10px; width: 200px"
  10042. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  10043. >
  10044. {{ getSName(worksSName) }}
  10045. </div>
  10046. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  10047. placeholder="请选择学生">
  10048. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  10049. :value="item.userid">
  10050. </el-option>
  10051. </el-select> -->
  10052. <!-- <el-input
  10053. v-model="worksSName"
  10054. style="width: 250px; margin: 15px 0px"
  10055. ></el-input> -->
  10056. </div>
  10057. <span slot="footer" class="dialog-footer">
  10058. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  10059. <el-button type="primary" @click="updateName">确 定</el-button>
  10060. </span>
  10061. </el-dialog>
  10062. <interVideo
  10063. :dialogVisibleVideo.sync="dialogVisibleVideo"
  10064. :videoJson="videoJson"
  10065. :userid="userid"
  10066. :id="id"
  10067. :courseType="courseType"
  10068. :taskCount="taskCount"
  10069. :toolindex="toolindex"
  10070. ></interVideo>
  10071. <UpdateMore
  10072. :dialogVisibleMember.sync="dialogVisibleMember"
  10073. :cList="uploadStudentJuri"
  10074. :userid="userid"
  10075. :searchTN="worksSName2"
  10076. @setPlname="setPlname"
  10077. ></UpdateMore>
  10078. </div>
  10079. </template>
  10080. <script>
  10081. import "../common/aws-sdk-2.235.1.min.js";
  10082. // import pdf from "./components/pdf3";
  10083. import pdf from "./components/vpdf";
  10084. import AskStatic from "./components/askStatic";
  10085. import AskStatic2 from "./components/askStatic2";
  10086. import AnswerData2 from "./components/answerData2";
  10087. import AnswerData from "./components/answerData";
  10088. import EditorBar from "./tools/wangEnduit.vue";
  10089. import Table from "./tools/table.vue";
  10090. import Time from "./tools/time.vue";
  10091. import Mind from "./tools/jsmind.vue";
  10092. import Sunburst from "./tools/sunburst";
  10093. import SeeBoard from "./tools/seeBoard";
  10094. import * as imageConversion from "image-conversion";
  10095. import Audio from "./components/audio.vue";
  10096. import ImgDraw from "./tools/imgDraw/imgDraw";
  10097. import { Empty } from "element-ui";
  10098. import RecordRTC from "recordrtc";
  10099. import interVideo from "./interVideo/index.vue";
  10100. import UpdateMore from "./updateMore/updateMore.vue";
  10101. export default {
  10102. components: {
  10103. EditorBar,
  10104. Time,
  10105. pdf,
  10106. AskStatic,
  10107. AskStatic2,
  10108. Mind,
  10109. Sunburst,
  10110. SeeBoard,
  10111. AnswerData2,
  10112. AnswerData,
  10113. Audio,
  10114. ImgDraw,
  10115. Table,
  10116. interVideo,
  10117. UpdateMore,
  10118. },
  10119. data() {
  10120. return {
  10121. bg: null,
  10122. drawShow: false,
  10123. dialogVisible: false,
  10124. dialogVisiblePl: false,
  10125. commentDialogVisible: false,
  10126. dialogVisibleMember: false,
  10127. videoVisible: false,
  10128. isStar: false,
  10129. studentEvalDialogVisible: false,
  10130. studentEvalDialogVisibleTeacher: false,
  10131. dialogVisibleSelect: false,
  10132. dialogVisibleSelectTeacher: false,
  10133. dialogVisibleScore: false,
  10134. dialogVisibleSentence: false,
  10135. dialogVisibleSentenceTeacher: false,
  10136. dialogVisibleSentence1: false,
  10137. dialogVisibleWorks: false,
  10138. dialogVisibleTable: false,
  10139. dialogVisibleTableTeacher: false,
  10140. dialogVisibleWord: false,
  10141. dialogVisibleWordTeacher: false,
  10142. dialogVisibleTable2: false,
  10143. dialogVisibleTable3: false,
  10144. dialogVisibleGroupWork: false,
  10145. dialogVisibleUpdateGroup: false,
  10146. dialogVisibleDeleteGroup: false,
  10147. dialogVisibleSname: false,
  10148. dialogVisibleVideo: false,
  10149. worksSName: "",
  10150. classJuri: [],
  10151. uploadStudentJuri: [],
  10152. uploadCid: "",
  10153. snameWid: "",
  10154. sStudent: {},
  10155. sTool: "",
  10156. bzText: "",
  10157. commentDetail: [],
  10158. selectAnswer: [],
  10159. videoDetail: {},
  10160. selectJson: {},
  10161. eScore: { eBzText: "", eStar: [] },
  10162. id: this.$route.query.courseId,
  10163. userid: this.$route.query.userid,
  10164. classId: this.$route.query.cid,
  10165. // courseTypeLine: this.$route.query.type,
  10166. oid: this.$route.query.oid,
  10167. org: this.$route.query.org,
  10168. tType: this.$route.query.tType,
  10169. courseType: this.$route.query.type,
  10170. screenType: this.$route.query.screenType,
  10171. tcid2: this.$route.query.tcid,
  10172. tcid: "",
  10173. pptImgUrl: "",
  10174. pptImgUrl1: "",
  10175. commentText: "",
  10176. full: false,
  10177. sIsOpen: false,
  10178. IsLookOpen: false,
  10179. IsFollow: false,
  10180. pzDialog: false,
  10181. contentDialog: false,
  10182. mlDialog: false,
  10183. type: 1,
  10184. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  10185. sentenceList1: [],
  10186. tableJson: [],
  10187. tableJsonO: [],
  10188. wordJson: [],
  10189. wordJsonO: [],
  10190. vedio: [],
  10191. text: [],
  10192. textList: [],
  10193. line: [],
  10194. lineList: [],
  10195. chapTools: [],
  10196. chapToolList: [],
  10197. file: [],
  10198. fileC: [],
  10199. vedioTime: [],
  10200. upToolImg: "",
  10201. preTime: 0,
  10202. rateList: {
  10203. ca: 0,
  10204. },
  10205. rateParams: [],
  10206. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  10207. studyJuri: [
  10208. {
  10209. content: "",
  10210. cover: [],
  10211. upVedio: [],
  10212. upFile: [],
  10213. },
  10214. ],
  10215. plworkFile: [],
  10216. mr: require("../assets/vedioPic.png"),
  10217. word: require("../assets/icon/isWord.png"),
  10218. word2: require("../assets/icon/word2.png"),
  10219. video: require("../assets/icon/isVideo.png"),
  10220. noLikes: require("../assets/icon/comment/noLikes.png"),
  10221. likes: require("../assets/icon/comment/likes.png"),
  10222. scoreImg: require("../assets/score.png"),
  10223. courseDetail: {},
  10224. isSelect: false,
  10225. chapInfo: [],
  10226. chapInfoList: [],
  10227. taskCount: 0,
  10228. imgList: [],
  10229. noImgList: [],
  10230. pzList: [],
  10231. PlTextList: [
  10232. "Excellent!",
  10233. "nice!",
  10234. "很有创意!",
  10235. "还不错哦~",
  10236. "继续努力哦~",
  10237. ],
  10238. isClickNav: "",
  10239. navId: "",
  10240. playerOptions: {
  10241. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10242. autoplay: false, //如果true,浏览器准备好时开始回放。
  10243. muted: false, // 默认情况下将会消除任何音频。
  10244. loop: false, // 导致视频一结束就重新开始。
  10245. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10246. language: "zh-CN",
  10247. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10248. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10249. sources: [
  10250. {
  10251. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10252. src: "", //url地址require("../../assets/media/aaa.mp4")
  10253. },
  10254. ],
  10255. // poster: require("../../assets/tu31.png"), //你的封面地址
  10256. // poster: dataRes.imgUrl, //你的封面地址
  10257. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10258. controlBar: {
  10259. timeDivider: true, //当前时间和持续时间的分隔符
  10260. durationDisplay: true, //显示持续时间
  10261. remainingTimeDisplay: false, //是否显示剩余时间功能
  10262. fullscreenToggle: true, //全屏按钮
  10263. },
  10264. },
  10265. playerOptions1: {
  10266. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10267. autoplay: false, //如果true,浏览器准备好时开始回放。
  10268. muted: false, // 默认情况下将会消除任何音频。
  10269. loop: false, // 导致视频一结束就重新开始。
  10270. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10271. language: "zh-CN",
  10272. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10273. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10274. sources: [
  10275. {
  10276. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10277. src: "", //url地址require("../../assets/media/aaa.mp4")
  10278. },
  10279. ],
  10280. // poster: require("../../assets/tu31.png"), //你的封面地址
  10281. // poster: dataRes.imgUrl, //你的封面地址
  10282. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10283. controlBar: {
  10284. timeDivider: true, //当前时间和持续时间的分隔符
  10285. durationDisplay: true, //显示持续时间
  10286. remainingTimeDisplay: false, //是否显示剩余时间功能
  10287. fullscreenToggle: true, //全屏按钮
  10288. },
  10289. },
  10290. playerO: {},
  10291. noneBtnImg: false,
  10292. proVisible: false,
  10293. proVisible2: false,
  10294. progress: 0,
  10295. isFinishSize: 0,
  10296. isAllSize: 0,
  10297. questionAnswer: "",
  10298. answerQ: "", //问答标题
  10299. rateJson: [],
  10300. wbCount: 0,
  10301. wordCount: 0,
  10302. mindCount: 0,
  10303. askCount: 0,
  10304. noteCount: 0,
  10305. mindNetWorkCount: 0,
  10306. libraryCount: 0,
  10307. workCount: 0,
  10308. timeCount: 0,
  10309. answerCount: 0,
  10310. trainCount: 0,
  10311. evalCount: 0,
  10312. dialogImageUrl: "",
  10313. pictureDialog: false,
  10314. toolTypeList: [],
  10315. dialogVisible1: false,
  10316. dialogVisible2: false,
  10317. dialogVisible3: false,
  10318. dialogVisible6: false,
  10319. dialogVisible4: false,
  10320. isNoHomeWork: false,
  10321. dialogVisible5: false,
  10322. dialogVisible5Teacher: false,
  10323. dialogVisibleChoice: false,
  10324. dialogVisibleChoiceTeacher: false,
  10325. answerDialogVisible: false,
  10326. answerDialogVisibleTeacher: false,
  10327. juriVisible: false,
  10328. timeDialogVisible: false,
  10329. radio: [],
  10330. isAsk: false,
  10331. askJson: {
  10332. askCount: 1,
  10333. askTitle: "",
  10334. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10335. },
  10336. testJson: {},
  10337. checkJson: [],
  10338. askList: [],
  10339. answerList: [],
  10340. navList: [],
  10341. addPzDialog: false,
  10342. pzConText: "",
  10343. worksStudent: [],
  10344. isCloseList: [],
  10345. workStudent: [],
  10346. groupStudent: [],
  10347. groupStudentUid: [],
  10348. noWorksS: [],
  10349. isWorksS: [],
  10350. noWorksStudent: [],
  10351. toolindex: 0,
  10352. groupIndex: 0,
  10353. workTypeB: false,
  10354. workTypeC: false,
  10355. isAnswer: false,
  10356. timer: null,
  10357. opertimer: null,
  10358. showType: 0,
  10359. fileType: 0,
  10360. showPDF: false,
  10361. noteName: "",
  10362. evaJuri: [],
  10363. evalua: "",
  10364. eTitle: "",
  10365. eName: "",
  10366. eJson: {},
  10367. fid: "", //一级
  10368. sid: "", //二级
  10369. tid: "", //二级
  10370. typeMode: 1,
  10371. eJSONNum: 0,
  10372. Etype: 1,
  10373. data: {
  10374. meta: {
  10375. name: "example",
  10376. author: "dd@163.com",
  10377. version: "0.2",
  10378. },
  10379. format: "node_array",
  10380. data: [{ id: "root", isroot: true, topic: "" }],
  10381. },
  10382. fullDialogVisible: false,
  10383. fulltype: "",
  10384. fullUrl: "",
  10385. commentIndexJson: {},
  10386. Stbodywidth: 0,
  10387. ispzType: 0,
  10388. pzType: 1,
  10389. wScore: 0,
  10390. scoreDetail: "",
  10391. videoStart: false,
  10392. recorder: null,
  10393. groupJson: {},
  10394. islock: false,
  10395. groupJson2: {},
  10396. dialogVisibleGroup: false,
  10397. dialogVisibleGroup2: false,
  10398. updateGroupArray: [],
  10399. updateGroupUser: {},
  10400. deleteGroupUser: [],
  10401. deleteGroupArray: {},
  10402. checkChair: "",
  10403. checkDeleteGroup: [],
  10404. inviteCode: "",
  10405. courseGroupStudent: [],
  10406. courseGroupStudentUid: [],
  10407. courseGroup: {},
  10408. isGroup: false,
  10409. toolIndex: null,
  10410. tool: {},
  10411. isWorkTool: [
  10412. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  10413. ], //, 40
  10414. videoJson: {},
  10415. toolType: 1,
  10416. checktoolArray: [],
  10417. vChapterData: [],
  10418. isUpdateToolDetail: false,
  10419. checkboxList: [],
  10420. plIndex: "",
  10421. worksSName2: "",
  10422. worksSid: "",
  10423. };
  10424. },
  10425. methods: {
  10426. addToolChoose() {
  10427. if (!this.checktoolArray.length) {
  10428. this.$message.error("请选择要添加的任务");
  10429. return;
  10430. }
  10431. if (
  10432. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10433. this.taskCount
  10434. ].toolChoose[0].tool.length
  10435. ) {
  10436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10437. this.taskCount
  10438. ].toolChoose[0].tool = this.checktoolArray;
  10439. } else {
  10440. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10441. this.taskCount
  10442. ].toolChoose.push({
  10443. tool: this.checktoolArray,
  10444. toolDetail: "",
  10445. toolType: 1,
  10446. askCount: 1,
  10447. askTitle: "",
  10448. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10449. });
  10450. }
  10451. let params = [
  10452. {
  10453. cid: this.id,
  10454. chapters: JSON.stringify(this.chapInfoList),
  10455. uid: this.userid,
  10456. unitIndex: this.courseType,
  10457. },
  10458. ];
  10459. this.ajax
  10460. .post(this.$store.state.api + "updateWorkNew4", params)
  10461. .then((res) => {
  10462. this.$message({
  10463. message: "添加成功",
  10464. type: "success",
  10465. });
  10466. this.checktoolArray = [];
  10467. this.getCourseDetail(2);
  10468. this.checkBz(
  10469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10470. this.taskCount
  10471. ].toolChoose.length - 1
  10472. );
  10473. this.$forceUpdate();
  10474. })
  10475. .catch((err) => {
  10476. console.error(err);
  10477. });
  10478. },
  10479. checkBz(index) {
  10480. this.toolIndex = index;
  10481. this.tool =
  10482. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10483. this.taskCount
  10484. ].toolChoose[this.toolIndex];
  10485. this.isUpdateToolDetail = false;
  10486. this.$forceUpdate();
  10487. },
  10488. addTools2(i) {
  10489. if (i == 4) {
  10490. // this.openTools2(4);
  10491. this.$message.error("暂未开放");
  10492. return;
  10493. }
  10494. if (i == 45) {
  10495. // this.openTools2(45);
  10496. this.$message.error("暂未开放");
  10497. return;
  10498. }
  10499. if (i == 47) {
  10500. // this.openTools2(47);
  10501. this.$message.error("暂未开放");
  10502. return;
  10503. }
  10504. if (i == 49) {
  10505. // this.openTools2(49);
  10506. this.$message.error("暂未开放");
  10507. return;
  10508. }
  10509. if (i == 62) {
  10510. // this.openTools(itemTaskIndex, 62, toolIndex);
  10511. this.$message.error("暂未开放");
  10512. return;
  10513. }
  10514. if (i == 15) {
  10515. // this.openTools(itemTaskIndex, 15, toolIndex);
  10516. this.$message.error("暂未开放");
  10517. return;
  10518. }
  10519. if (i == 40) {
  10520. // this.openTools(itemTaskIndex, 40, toolIndex);
  10521. this.$message.error("暂未开放");
  10522. return;
  10523. }
  10524. if (i == 41) {
  10525. // this.openTools(itemTaskIndex, 41, toolIndex);
  10526. this.$message.error("暂未开放");
  10527. return;
  10528. }
  10529. if (i == 42) {
  10530. // this.openTools(itemTaskIndex, 42, toolIndex);
  10531. this.$message.error("暂未开放");
  10532. return;
  10533. }
  10534. if (this.checktoolArray.length > 0) {
  10535. if (this.checktoolArray.indexOf(i) != -1) {
  10536. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  10537. } else {
  10538. this.checktoolArray = [];
  10539. this.checktoolArray.push(i);
  10540. }
  10541. } else {
  10542. this.checktoolArray.push(i);
  10543. }
  10544. this.$forceUpdate();
  10545. },
  10546. jump() {
  10547. window.parent.postMessage({ tools: "43" }, "*");
  10548. },
  10549. getUpdateMore(f, checkboxList, searchTN, index) {
  10550. this.dialogVisibleMember = f;
  10551. this.checkboxList = checkboxList;
  10552. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  10553. this.plIndex = index;
  10554. },
  10555. setPlname(a) {
  10556. if (this.plworkFile.length) {
  10557. this.plworkFile[this.plIndex].username = a;
  10558. } else {
  10559. this.worksSName = a;
  10560. }
  10561. this.dialogVisibleMember = false;
  10562. },
  10563. previewImg(url) {
  10564. this.$hevueImgPreview(url);
  10565. },
  10566. change(val) {
  10567. console.log(val);
  10568. },
  10569. goTo(path) {
  10570. this.$router.push(path);
  10571. },
  10572. handlePictureCardPreview(url) {
  10573. this.dialogImageUrl = url;
  10574. this.pictureDialog = true;
  10575. },
  10576. clean(type) {
  10577. if (type == 1) {
  10578. this.studyJuri[0].cover.splice(0, 1);
  10579. } else if (type == 2) {
  10580. this.studyJuri[0].upVedio.splice(0, 1);
  10581. } else {
  10582. this.studyJuri[0].upFile.splice(0, 1);
  10583. }
  10584. },
  10585. clean2(index) {
  10586. this.plworkFile.splice(index, 1);
  10587. },
  10588. handleClose(done) {
  10589. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  10590. this.videoDetail.sources[0].src = "";
  10591. }
  10592. this.commentIndexJson = {};
  10593. done();
  10594. },
  10595. fullTools() {
  10596. this.full = !this.full;
  10597. },
  10598. imgChange(file, fileList, type) {
  10599. if (type == 1) {
  10600. var _tmp = this.studyJuri[0].cover;
  10601. } else if (type == 2) {
  10602. var _tmp = this.studyJuri[0].upVedio;
  10603. } else {
  10604. var _tmp = this.studyJuri[0].upFile;
  10605. }
  10606. this.noneBtnImg = _tmp.length >= 1;
  10607. },
  10608. setContent(bool) {
  10609. this.contentDialog = bool;
  10610. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  10611. document.querySelector(".workd_media").style.height = "650px";
  10612. } else if (document.querySelector(".workd_media")) {
  10613. document.querySelector(".workd_media").style.height = "auto";
  10614. }
  10615. },
  10616. setContent2(bool) {
  10617. this.mlDialog = bool;
  10618. if (
  10619. bool &&
  10620. this.contentDialog &&
  10621. document.querySelector(".workd_media")
  10622. ) {
  10623. document.querySelector(".workd_media").style.height = "650px";
  10624. } else if (document.querySelector(".workd_media")) {
  10625. document.querySelector(".workd_media").style.height = "auto";
  10626. }
  10627. },
  10628. addImg(e) {
  10629. var el = e.currentTarget;
  10630. // this.$message.success('触发上传')
  10631. el.getElementsByTagName("input")[0].click();
  10632. e.target.value = "";
  10633. },
  10634. addSelectAnswer() {
  10635. let params = [
  10636. {
  10637. uid: this.userid,
  10638. cid: this.id,
  10639. stage: this.courseType,
  10640. task: this.taskCount,
  10641. tool: this.toolindex,
  10642. content: this.selectAnswer.answer,
  10643. type: 7,
  10644. },
  10645. ];
  10646. this.ajax
  10647. .post(this.$store.state.api + "addCourseWorks", params)
  10648. .then((res) => {
  10649. this.$message({
  10650. message: "提交成功",
  10651. type: "success",
  10652. });
  10653. this.dialogVisibleSelect = false;
  10654. // this.selectAnswer = {};
  10655. this.selectSWorks();
  10656. this.selectStudent();
  10657. })
  10658. .catch((err) => {
  10659. this.$message.error("提交失败");
  10660. console.error(err);
  10661. });
  10662. },
  10663. addSelectAnswerTeacher() {
  10664. let params = [
  10665. {
  10666. uid: this.sStudent.userid,
  10667. cid: this.id,
  10668. stage: this.courseType,
  10669. task: this.taskCount,
  10670. tool: this.toolindex,
  10671. content: this.selectAnswer.answer,
  10672. type: 7,
  10673. },
  10674. ];
  10675. this.ajax
  10676. .post(this.$store.state.api + "addCourseWorks", params)
  10677. .then((res) => {
  10678. this.$message({
  10679. message: "提交成功",
  10680. type: "success",
  10681. });
  10682. this.dialogVisibleSelectTeacher = false;
  10683. // this.selectAnswer = {};
  10684. this.selectSWorks();
  10685. this.selectStudent();
  10686. })
  10687. .catch((err) => {
  10688. this.$message.error("提交失败");
  10689. console.error(err);
  10690. });
  10691. },
  10692. addSenWorks() {
  10693. for (var i = 0; i < this.sentenceList.length; i++) {
  10694. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  10695. if (
  10696. this.sentenceList[i].chooseSenList[j] == undefined ||
  10697. this.sentenceList[i].chooseSenList[j] == ""
  10698. ) {
  10699. this.$message.error("请将答案填写完整!");
  10700. return;
  10701. }
  10702. }
  10703. }
  10704. let params = [
  10705. {
  10706. uid: this.userid,
  10707. cid: this.id,
  10708. stage: this.courseType,
  10709. task: this.taskCount,
  10710. tool: this.toolindex,
  10711. content: JSON.stringify(this.sentenceList),
  10712. type: 9,
  10713. },
  10714. ];
  10715. this.ajax
  10716. .post(this.$store.state.api + "addCourseWorks", params)
  10717. .then((res) => {
  10718. this.$message({
  10719. message: "提交成功",
  10720. type: "success",
  10721. });
  10722. this.dialogVisibleSentence = false;
  10723. // this.selectAnswer = {};
  10724. this.selectSWorks();
  10725. this.selectStudent();
  10726. })
  10727. .catch((err) => {
  10728. this.$message.error("提交失败");
  10729. console.error(err);
  10730. });
  10731. },
  10732. addSenWorksTeacher() {
  10733. for (var i = 0; i < this.sentenceList.length; i++) {
  10734. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  10735. if (
  10736. this.sentenceList[i].chooseSenList[j] == undefined ||
  10737. this.sentenceList[i].chooseSenList[j] == ""
  10738. ) {
  10739. this.$message.error("请将答案填写完整!");
  10740. return;
  10741. }
  10742. }
  10743. }
  10744. let params = [
  10745. {
  10746. uid: this.sStudent.userid,
  10747. cid: this.id,
  10748. stage: this.courseType,
  10749. task: this.taskCount,
  10750. tool: this.toolindex,
  10751. content: JSON.stringify(this.sentenceList),
  10752. type: 9,
  10753. },
  10754. ];
  10755. this.ajax
  10756. .post(this.$store.state.api + "addCourseWorks", params)
  10757. .then((res) => {
  10758. this.$message({
  10759. message: "提交成功",
  10760. type: "success",
  10761. });
  10762. this.dialogVisibleSentenceTeacher = false;
  10763. // this.selectAnswer = {};
  10764. this.selectSWorks();
  10765. this.selectStudent();
  10766. })
  10767. .catch((err) => {
  10768. this.$message.error("提交失败");
  10769. console.error(err);
  10770. });
  10771. },
  10772. returnTableText() {
  10773. this.$confirm("确定还原此模板吗?", "提示", {
  10774. confirmButtonText: "确定",
  10775. cancelButtonText: "取消",
  10776. type: "warning",
  10777. })
  10778. .then(() => {
  10779. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  10780. })
  10781. .catch(() => {});
  10782. },
  10783. addTableWorks() {
  10784. let params = [
  10785. {
  10786. uid: this.userid,
  10787. cid: this.id,
  10788. stage: this.courseType,
  10789. task: this.taskCount,
  10790. tool: this.toolindex,
  10791. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  10792. type: 10,
  10793. },
  10794. ];
  10795. this.ajax
  10796. .post(this.$store.state.api + "addCourseWorks", params)
  10797. .then((res) => {
  10798. this.$message({
  10799. message: "提交成功",
  10800. type: "success",
  10801. });
  10802. this.dialogVisibleTable = false;
  10803. // this.selectAnswer = {};
  10804. this.selectSWorks();
  10805. this.selectStudent();
  10806. })
  10807. .catch((err) => {
  10808. this.$message.error("提交失败");
  10809. console.error(err);
  10810. });
  10811. },
  10812. tableRowClassName({ row, rowIndex }) {
  10813. if ((rowIndex + 1) % 2 === 0) {
  10814. return "even_row";
  10815. } else {
  10816. return "";
  10817. }
  10818. },
  10819. addTableWorksTeacher() {
  10820. let params = [
  10821. {
  10822. uid: this.sStudent.userid,
  10823. cid: this.id,
  10824. stage: this.courseType,
  10825. task: this.taskCount,
  10826. tool: this.toolindex,
  10827. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  10828. type: 10,
  10829. },
  10830. ];
  10831. this.ajax
  10832. .post(this.$store.state.api + "addCourseWorks", params)
  10833. .then((res) => {
  10834. this.$message({
  10835. message: "提交成功",
  10836. type: "success",
  10837. });
  10838. this.dialogVisibleTableTeacher = false;
  10839. // this.selectAnswer = {};
  10840. this.selectSWorks();
  10841. this.selectStudent();
  10842. })
  10843. .catch((err) => {
  10844. this.$message.error("提交失败");
  10845. console.error(err);
  10846. });
  10847. },
  10848. returnWordText() {
  10849. this.$confirm("确定还原此模板吗?", "提示", {
  10850. confirmButtonText: "确定",
  10851. cancelButtonText: "取消",
  10852. type: "warning",
  10853. })
  10854. .then(() => {
  10855. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  10856. })
  10857. .catch(() => {});
  10858. },
  10859. addWordWorks() {
  10860. let params = [
  10861. {
  10862. uid: this.userid,
  10863. cid: this.id,
  10864. stage: this.courseType,
  10865. task: this.taskCount,
  10866. tool: this.toolindex,
  10867. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  10868. type: 13,
  10869. atool: 52,
  10870. },
  10871. ];
  10872. console.log(params);
  10873. this.ajax
  10874. .post(this.$store.state.api + "addCourseWorks3-2", params)
  10875. .then((res) => {
  10876. this.$message({
  10877. message: "提交成功",
  10878. type: "success",
  10879. });
  10880. this.dialogVisibleWord = false;
  10881. // this.selectAnswer = {};
  10882. this.selectSWorks();
  10883. this.selectStudent();
  10884. })
  10885. .catch((err) => {
  10886. this.$message.error("提交失败");
  10887. console.error(err);
  10888. });
  10889. },
  10890. addWordWorksTeacher() {
  10891. let params = [
  10892. {
  10893. uid: this.sStudent.userid,
  10894. cid: this.id,
  10895. stage: this.courseType,
  10896. task: this.taskCount,
  10897. tool: this.toolindex,
  10898. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  10899. type: 13,
  10900. atool: 52,
  10901. },
  10902. ];
  10903. console.log(params);
  10904. this.ajax
  10905. .post(this.$store.state.api + "addCourseWorks3-2", params)
  10906. .then((res) => {
  10907. this.$message({
  10908. message: "提交成功",
  10909. type: "success",
  10910. });
  10911. this.dialogVisibleWordTeacher = false;
  10912. // this.selectAnswer = {};
  10913. this.selectSWorks();
  10914. this.selectStudent();
  10915. })
  10916. .catch((err) => {
  10917. this.$message.error("提交失败");
  10918. console.error(err);
  10919. });
  10920. },
  10921. addCourseWorks(i) {
  10922. var typesql;
  10923. if (this.fileType === 0) {
  10924. typesql = 1;
  10925. } else if (this.fileType === 1) {
  10926. typesql = 4;
  10927. } else if (this.fileType === 2) {
  10928. typesql = 5;
  10929. } else if (this.fileType === 3) {
  10930. typesql = 12;
  10931. }
  10932. if (!this.studyJuri[0].cover[0].url) {
  10933. this.$message.error("请上传文件");
  10934. return;
  10935. }
  10936. let params = [
  10937. {
  10938. uid: this.userid,
  10939. cid: this.id,
  10940. stage: this.courseType,
  10941. task: i,
  10942. tool: this.toolindex,
  10943. content: this.studyJuri[0].cover[0].url,
  10944. type: typesql,
  10945. },
  10946. ];
  10947. this.ajax
  10948. .post(this.$store.state.api + "addCourseWorksR", params)
  10949. .then((res) => {
  10950. this.$message({
  10951. message: "提交成功",
  10952. type: "success",
  10953. });
  10954. this.studyJuri[0].cover = [];
  10955. this.dialogVisible = false;
  10956. this.getCourseDetail(2);
  10957. })
  10958. .catch((err) => {
  10959. this.$message.error("提交失败");
  10960. console.error(err);
  10961. });
  10962. },
  10963. addCourseWorksPl(i) {
  10964. let _files = this.plworkFile;
  10965. var c = 1;
  10966. for (var k = 0; k < _files.length; k++) {
  10967. if (!_files[k].username) {
  10968. c = 2;
  10969. }
  10970. }
  10971. if (c == 2) {
  10972. this.$message.error("请填写学生姓名");
  10973. return;
  10974. }
  10975. let params = [
  10976. {
  10977. ateacher: this.userid,
  10978. cid: this.id,
  10979. stage: this.courseType,
  10980. task: i,
  10981. tool: this.toolindex,
  10982. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  10983. },
  10984. ];
  10985. this.ajax
  10986. .post(this.$store.state.api + "addCourseWorksPl", params)
  10987. .then((res) => {
  10988. this.$message({
  10989. message: "提交成功",
  10990. type: "success",
  10991. });
  10992. this.plworkFile = [];
  10993. this.dialogVisiblePl = false;
  10994. this.getCourseDetail(2);
  10995. })
  10996. .catch((err) => {
  10997. this.$message.error("提交失败");
  10998. console.error(err);
  10999. });
  11000. },
  11001. addCourseWorks2(i) {
  11002. var typesql;
  11003. if (this.fileType === 0) {
  11004. typesql = 0;
  11005. } else if (this.fileType === 1) {
  11006. typesql = 1;
  11007. } else if (this.fileType === 2) {
  11008. typesql = 3;
  11009. } else if (this.fileType === 3) {
  11010. typesql = 12;
  11011. }
  11012. if (!this.studyJuri[0].cover[0].url) {
  11013. this.$message.error("请上传文件");
  11014. return;
  11015. }
  11016. let params = [
  11017. {
  11018. uid: this.userid,
  11019. cid: this.id,
  11020. stage: this.courseType,
  11021. task: i,
  11022. tool: this.toolindex,
  11023. content: JSON.stringify({
  11024. type: typesql,
  11025. groupIndex: this.groupIndex,
  11026. url: this.studyJuri[0].cover[0].url,
  11027. }).replaceAll(/%/g, "%25"),
  11028. type: 11,
  11029. atool: 49,
  11030. text: "",
  11031. },
  11032. ];
  11033. this.ajax
  11034. .post(this.$store.state.api + "addCourseWorks5", params)
  11035. .then((res) => {
  11036. this.$message({
  11037. message: "提交成功",
  11038. type: "success",
  11039. });
  11040. this.studyJuri[0].cover = [];
  11041. this.dialogVisibleGroupWork = false;
  11042. this.getCourseDetail(2);
  11043. })
  11044. .catch((err) => {
  11045. this.$message.error("提交失败");
  11046. console.error(err);
  11047. });
  11048. },
  11049. addCourseWorksGong(i, data, tool) {
  11050. let params = [
  11051. {
  11052. uid: this.userid,
  11053. cid: this.id,
  11054. stage: this.courseType,
  11055. task: this.taskCount,
  11056. tool: i,
  11057. content: data,
  11058. type: 12,
  11059. atool: tool,
  11060. text: "",
  11061. },
  11062. ];
  11063. this.ajax
  11064. .post(this.$store.state.api + "addCourseWorks5", params)
  11065. .then((res) => {
  11066. this.$message({
  11067. message: "提交成功",
  11068. type: "success",
  11069. });
  11070. this.studyJuri[0].cover = [];
  11071. this.selectSWorks();
  11072. this.selectStudent();
  11073. })
  11074. .catch((err) => {
  11075. this.$message.error("提交失败");
  11076. console.error(err);
  11077. });
  11078. },
  11079. addCourseWorksGongTeacher(i, data, tool) {
  11080. let params = [
  11081. {
  11082. uid: this.sStudent.userid,
  11083. cid: this.id,
  11084. stage: this.courseType,
  11085. task: this.taskCount,
  11086. tool: i,
  11087. content: data,
  11088. type: 12,
  11089. atool: tool,
  11090. text: "",
  11091. },
  11092. ];
  11093. this.ajax
  11094. .post(this.$store.state.api + "addCourseWorks5", params)
  11095. .then((res) => {
  11096. this.$message({
  11097. message: "提交成功",
  11098. type: "success",
  11099. });
  11100. this.studyJuri[0].cover = [];
  11101. this.dialogVisibleWorks = false;
  11102. this.selectSWorks();
  11103. this.selectStudent();
  11104. })
  11105. .catch((err) => {
  11106. this.$message.error("提交失败");
  11107. console.error(err);
  11108. });
  11109. },
  11110. addCourseWorksGongPl(i, data, tool, type) {
  11111. let params = [
  11112. {
  11113. uid: this.sStudent.userid,
  11114. cid: this.id,
  11115. stage: this.courseType,
  11116. task: this.taskCount,
  11117. tool: i,
  11118. content: data,
  11119. type: type,
  11120. atool: tool,
  11121. text: "",
  11122. },
  11123. ];
  11124. this.ajax
  11125. .post(this.$store.state.api + "addCourseWorks5", params)
  11126. .then((res) => {
  11127. this.$message({
  11128. message: "提交成功",
  11129. type: "success",
  11130. });
  11131. this.studyJuri[0].cover = [];
  11132. this.dialogVisibleWorks = false;
  11133. this.selectSWorks();
  11134. this.selectStudent();
  11135. })
  11136. .catch((err) => {
  11137. this.$message.error("提交失败");
  11138. console.error(err);
  11139. });
  11140. },
  11141. addCourseWorksTeacher(i) {
  11142. var typesql;
  11143. if (this.sTool == 32) {
  11144. this.addCourseWorksGongTeacher(
  11145. this.toolindex,
  11146. this.studyJuri[0].cover[0].url,
  11147. this.sTool
  11148. );
  11149. return;
  11150. }
  11151. if (this.fileType === 0) {
  11152. typesql = 1;
  11153. } else if (this.fileType === 1) {
  11154. typesql = 4;
  11155. } else if (this.fileType === 2) {
  11156. typesql = 5;
  11157. } else if (this.fileType === 3) {
  11158. typesql = 12;
  11159. }
  11160. if (this.sTool == 50) {
  11161. this.addCourseWorksGongPl(
  11162. this.toolindex,
  11163. this.studyJuri[0].cover[0].url,
  11164. this.sTool,
  11165. typesql
  11166. );
  11167. return;
  11168. }
  11169. if (!this.studyJuri[0].cover[0].url) {
  11170. this.$message.error("请上传文件");
  11171. return;
  11172. }
  11173. let params = [
  11174. {
  11175. uid: this.sStudent.userid,
  11176. cid: this.id,
  11177. stage: this.courseType,
  11178. task: i,
  11179. tool: this.toolindex,
  11180. content: this.studyJuri[0].cover[0].url,
  11181. type: typesql,
  11182. ateacher: this.userid,
  11183. },
  11184. ];
  11185. this.ajax
  11186. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  11187. .then((res) => {
  11188. this.$message({
  11189. message: "提交成功",
  11190. type: "success",
  11191. });
  11192. this.studyJuri[0].cover = [];
  11193. this.dialogVisibleWorks = false;
  11194. this.getCourseDetail(2);
  11195. })
  11196. .catch((err) => {
  11197. this.$message.error("提交失败");
  11198. console.error(err);
  11199. });
  11200. },
  11201. selectUploadStudent(type) {
  11202. const loading = this.$loading.service({
  11203. background: "rgba(255, 255, 255, 0.7)",
  11204. target: document.body,
  11205. });
  11206. let params = {
  11207. cid: this.uploadCid,
  11208. oid: this.oid,
  11209. cn: "",
  11210. };
  11211. this.ajax
  11212. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  11213. .then((res) => {
  11214. loading.close();
  11215. var studentK = [];
  11216. if (this.isWorksS[this.toolindex].length > 0) {
  11217. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  11218. studentK.push(this.isWorksS[this.toolindex][z].uid);
  11219. }
  11220. studentK = studentK.join(",");
  11221. }
  11222. this.uploadStudentJuri = res.data[0].filter((el) => {
  11223. return studentK.indexOf(el.userid) == -1;
  11224. });
  11225. if (this.worksSName && this.worksSid) {
  11226. this.uploadStudentJuri.push({
  11227. userid: this.worksSid,
  11228. name: this.worksSName,
  11229. });
  11230. }
  11231. if (type == 1) {
  11232. this.plworkFile = [];
  11233. this.dialogVisibleSname = true;
  11234. } else if (type == 2) {
  11235. this.dialogVisiblePl = true;
  11236. }
  11237. })
  11238. .catch((err) => {
  11239. loading.close();
  11240. console.error(err);
  11241. });
  11242. },
  11243. arrayToArray(arrayo, arrayt) {
  11244. let array1 = arrayo;
  11245. let array2 = arrayt;
  11246. let commonElements = [];
  11247. for (let i = 0; i < array1.length; i++) {
  11248. for (let j = 0; j < array2.length; j++) {
  11249. if (array1[i] === array2[j]) {
  11250. commonElements.push(array1[i]);
  11251. }
  11252. }
  11253. }
  11254. return commonElements;
  11255. },
  11256. selectWorksStudent() {
  11257. let params = {
  11258. oid: this.oid,
  11259. cid: this.courseDetail.juri,
  11260. };
  11261. this.ajax
  11262. .get(this.$store.state.api + "selectWorksStudent", params)
  11263. .then((res) => {
  11264. var a = res.data[0];
  11265. for (var i = 0; i < this.isWorksS.length; i++) {
  11266. this.noWorksS[i] = [];
  11267. var studentK = [];
  11268. if (this.isWorksS[i].length > 0) {
  11269. for (var z = 0; z < this.isWorksS[i].length; z++) {
  11270. studentK.push(this.isWorksS[i][z].uid);
  11271. }
  11272. studentK = studentK.join(",");
  11273. for (var j = 0; j < a.length; j++) {
  11274. if (studentK.indexOf(a[j].userid) == -1) {
  11275. if (this.tcid) {
  11276. // a[j].classid.indexOf(this.tcid) != -1
  11277. if (
  11278. this.arrayToArray(
  11279. a[j].classid.split(","),
  11280. this.tcid.split(",")
  11281. ).length
  11282. ) {
  11283. this.noWorksS[i].push({
  11284. student: a[j].name,
  11285. userid: a[j].userid,
  11286. });
  11287. }
  11288. } else {
  11289. this.noWorksS[i].push({
  11290. student: a[j].name,
  11291. userid: a[j].userid,
  11292. });
  11293. }
  11294. }
  11295. }
  11296. } else {
  11297. for (var k = 0; k < a.length; k++) {
  11298. if (this.tcid) {
  11299. if (
  11300. this.arrayToArray(
  11301. a[k].classid.split(","),
  11302. this.tcid.split(",")
  11303. ).length
  11304. ) {
  11305. this.noWorksS[i].push({
  11306. student: a[k].name,
  11307. userid: a[k].userid,
  11308. });
  11309. }
  11310. } else {
  11311. this.noWorksS[i].push({
  11312. student: a[k].name,
  11313. userid: a[k].userid,
  11314. });
  11315. }
  11316. }
  11317. }
  11318. }
  11319. this.$forceUpdate();
  11320. if (
  11321. Object.keys(this.commentDetail).length &&
  11322. Object.keys(this.commentIndexJson).length &&
  11323. !this.dialogVisibleScore
  11324. ) {
  11325. let a = 1;
  11326. let c = this.commentIndexJson;
  11327. console.log(c);
  11328. if (
  11329. this.commentIndexJson.gindex ||
  11330. this.commentIndexJson.gindex === 0
  11331. ) {
  11332. for (
  11333. var i = 0;
  11334. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11335. i++
  11336. ) {
  11337. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  11338. groupA: for (var k = 0; k < _el.length; k++) {
  11339. let el = _el[k];
  11340. if (el.wid == this.commentDetail.wid) {
  11341. a = 2;
  11342. this.commentOther(
  11343. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  11344. this.commentIndexJson.toolIndex,
  11345. k,
  11346. this.commentIndexJson.gindex
  11347. );
  11348. break groupA;
  11349. }
  11350. }
  11351. }
  11352. if (a === 1) {
  11353. this.commentDetail = [];
  11354. this.commentIndexJson = {};
  11355. this.commentDialogVisible = false;
  11356. this.$message("此作业已被删除");
  11357. }
  11358. } else {
  11359. if (this.isGroup && this.commentIndexJson.gid) {
  11360. groupA: for (
  11361. var i = 0;
  11362. i < this.courseGroup.group.length;
  11363. i++
  11364. ) {
  11365. let _group = this.courseGroup.group[i];
  11366. if (_group.id == this.commentIndexJson.gid) {
  11367. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  11368. for (var k = 0; k < _el2.length; k++) {
  11369. let el2 = _el2[k];
  11370. if (el2.wid == this.commentDetail.wid) {
  11371. a = 2;
  11372. this.commentOther(
  11373. _el2[k],
  11374. this.commentIndexJson.toolIndex,
  11375. k,
  11376. null,
  11377. this.commentIndexJson.gid
  11378. );
  11379. break groupA;
  11380. }
  11381. }
  11382. }
  11383. }
  11384. }
  11385. if (a == 1) {
  11386. for (
  11387. var i = 0;
  11388. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11389. i++
  11390. ) {
  11391. let el =
  11392. this.worksStudent[this.commentIndexJson.toolIndex][i];
  11393. if (el.wid == this.commentDetail.wid) {
  11394. a = 2;
  11395. this.commentOther(
  11396. this.worksStudent[this.commentIndexJson.toolIndex][i],
  11397. this.commentIndexJson.toolIndex,
  11398. i
  11399. );
  11400. break;
  11401. }
  11402. }
  11403. }
  11404. if (a === 1) {
  11405. this.commentDetail = [];
  11406. this.commentIndexJson = {};
  11407. this.commentDialogVisible = false;
  11408. this.$message("此作业已被删除");
  11409. }
  11410. }
  11411. }
  11412. })
  11413. .catch((err) => {
  11414. console.error(err);
  11415. });
  11416. },
  11417. selectStudent() {
  11418. //学生查看自己作业
  11419. let params = {
  11420. uid: this.userid,
  11421. cid: this.id,
  11422. s: this.courseType,
  11423. t: this.taskCount,
  11424. };
  11425. this.ajax
  11426. .get(this.$store.state.api + "selectStudentWorks", params)
  11427. .then((res) => {
  11428. var a =
  11429. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11430. this.taskCount
  11431. ].toolChoose;
  11432. var b = res.data[0];
  11433. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11434. var y = [
  11435. "AVI",
  11436. "NAVI",
  11437. "MPEG",
  11438. "ASF",
  11439. "MOV",
  11440. "WMV",
  11441. "3GP",
  11442. "RM",
  11443. "RMVB",
  11444. "FLV",
  11445. "F4V",
  11446. "H.264",
  11447. "H.265",
  11448. "REAL VIDEO",
  11449. "MKV",
  11450. "WebM",
  11451. "HDDVD",
  11452. "MP4",
  11453. "MPG",
  11454. "M4V",
  11455. "MGV",
  11456. "OGV",
  11457. "QTM",
  11458. "STR",
  11459. "AMC",
  11460. "DVX",
  11461. "EVO",
  11462. "DAT",
  11463. "OGG",
  11464. "OGM",
  11465. ];
  11466. for (var i = 0; i < a.length; i++) {
  11467. this.workStudent[i] = [];
  11468. for (var j = 0; j < b.length; j++) {
  11469. if (i == b[j].tool) {
  11470. if (
  11471. (b[j].type == 1 ||
  11472. b[j].type == 4 ||
  11473. b[j].type == 5 ||
  11474. b[j].type == 6 ||
  11475. b[j].type == 12 ||
  11476. b[j].type == 7) &&
  11477. a[i].tool[0] != 15 &&
  11478. a[i].tool[0] != 4 &&
  11479. a[i].tool[0] != 45 &&
  11480. a[i].tool[0] != 50 &&
  11481. a[i].tool[0] != 32 &&
  11482. a[i].tool[0] != 57 &&
  11483. a[i].tool[0] != 52
  11484. ) {
  11485. if (
  11486. c.indexOf(
  11487. b[j].content
  11488. .split(".")
  11489. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11490. ) != -1 &&
  11491. a[i].tool[0] == 16 &&
  11492. b[j].atool != 50
  11493. ) {
  11494. this.workStudent[i].push({
  11495. works: b[j].content,
  11496. sName: b[j].name,
  11497. score: b[j].score,
  11498. img: b[j].img,
  11499. type: 1,
  11500. time: b[j].time,
  11501. userid: b[j].userid,
  11502. wid: b[j].id,
  11503. });
  11504. } else if (
  11505. y.indexOf(
  11506. b[j].content
  11507. .split(".")
  11508. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11509. ) != -1 &&
  11510. a[i].tool[0] == 16 &&
  11511. b[j].atool != 50
  11512. ) {
  11513. this.workStudent[i].push({
  11514. userid: b[j].userid,
  11515. wid: b[j].id,
  11516. works: b[j].content,
  11517. sName: b[j].name,
  11518. score: b[j].score,
  11519. img: b[j].img,
  11520. type: 3,
  11521. time: b[j].time,
  11522. });
  11523. } else if (b[j].type == 6 && b[j].atool != 50) {
  11524. this.workStudent[i].push({
  11525. userid: b[j].userid,
  11526. wid: b[j].id,
  11527. works: b[j].content,
  11528. sName: b[j].name,
  11529. score: b[j].score,
  11530. img: b[j].img,
  11531. type: 4,
  11532. time: b[j].time,
  11533. });
  11534. } else if (b[j].type == 7 && b[j].atool != 50) {
  11535. this.workStudent[i].push({
  11536. userid: b[j].userid,
  11537. wid: b[j].id,
  11538. works: b[j].content,
  11539. sName: b[j].name,
  11540. score: b[j].score,
  11541. img: b[j].img,
  11542. type: 5,
  11543. time: b[j].time,
  11544. });
  11545. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11546. this.workStudent[i].push({
  11547. works: b[j].content,
  11548. sName: b[j].name,
  11549. score: b[j].score,
  11550. img: b[j].img,
  11551. type: 12,
  11552. time: b[j].time,
  11553. userid: b[j].userid,
  11554. wid: b[j].id,
  11555. });
  11556. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11557. this.workStudent[i].push({
  11558. works: b[j].content,
  11559. sName: b[j].name,
  11560. score: b[j].score,
  11561. img: b[j].img,
  11562. type: 0,
  11563. time: b[j].time,
  11564. userid: b[j].userid,
  11565. wid: b[j].id,
  11566. });
  11567. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11568. this.workStudent[i].push({
  11569. works: b[j].content,
  11570. sName: b[j].name,
  11571. score: b[j].score,
  11572. img: b[j].img,
  11573. type: 0,
  11574. time: b[j].time,
  11575. userid: b[j].userid,
  11576. wid: b[j].id,
  11577. });
  11578. }
  11579. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11580. this.workStudent[i].push({
  11581. works: b[j].content,
  11582. sName: b[j].name,
  11583. score: b[j].score,
  11584. img: b[j].img,
  11585. type: 2,
  11586. time: b[j].time,
  11587. userid: b[j].userid,
  11588. wid: b[j].id,
  11589. });
  11590. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  11591. //问卷
  11592. this.workStudent[i].push({
  11593. works: b[j].content,
  11594. sName: b[j].name,
  11595. score: b[j].score,
  11596. img: b[j].img,
  11597. type: 2,
  11598. time: b[j].time,
  11599. userid: b[j].userid,
  11600. wid: b[j].id,
  11601. });
  11602. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  11603. //选择题
  11604. this.workStudent[i].push({
  11605. works: b[j].content,
  11606. sName: b[j].name,
  11607. score: b[j].score,
  11608. img: b[j].img,
  11609. type: 8,
  11610. time: b[j].time,
  11611. userid: b[j].userid,
  11612. wid: b[j].id,
  11613. });
  11614. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  11615. //选择题
  11616. this.workStudent[i].push({
  11617. works: b[j].content,
  11618. sName: b[j].name,
  11619. score: b[j].score,
  11620. img: b[j].img,
  11621. type: 9,
  11622. time: b[j].time,
  11623. userid: b[j].userid,
  11624. wid: b[j].id,
  11625. });
  11626. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  11627. //选择题
  11628. this.workStudent[i].push({
  11629. works: b[j].content,
  11630. sName: b[j].name,
  11631. score: b[j].score,
  11632. img: b[j].img,
  11633. type: 10,
  11634. time: b[j].time,
  11635. userid: b[j].userid,
  11636. wid: b[j].id,
  11637. });
  11638. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  11639. //选择题
  11640. this.workStudent[i].push({
  11641. works: b[j].content,
  11642. sName: b[j].name,
  11643. score: b[j].score,
  11644. img: b[j].img,
  11645. type: 13,
  11646. time: b[j].time,
  11647. userid: b[j].userid,
  11648. wid: b[j].id,
  11649. });
  11650. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  11651. //选择题
  11652. this.workStudent[i].push({
  11653. works: b[j].content,
  11654. sName: b[j].name,
  11655. score: b[j].score,
  11656. img: b[j].img,
  11657. type: 12,
  11658. time: b[j].time,
  11659. userid: b[j].userid,
  11660. wid: b[j].id,
  11661. });
  11662. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  11663. //选择题
  11664. this.workStudent[i].push({
  11665. works: b[j].content,
  11666. sName: b[j].name,
  11667. score: b[j].score,
  11668. img: b[j].img,
  11669. type: 12,
  11670. time: b[j].time,
  11671. userid: b[j].userid,
  11672. wid: b[j].id,
  11673. });
  11674. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  11675. //选择题
  11676. this.workStudent[i].push({
  11677. works: b[j].content,
  11678. sName: b[j].name,
  11679. score: b[j].score,
  11680. img: b[j].img,
  11681. type: 15,
  11682. time: b[j].time,
  11683. userid: b[j].userid,
  11684. wid: b[j].id,
  11685. });
  11686. }
  11687. }
  11688. }
  11689. }
  11690. })
  11691. .catch((err) => {
  11692. console.error(err);
  11693. });
  11694. },
  11695. openVideo(w) {
  11696. this.videoDetail = {};
  11697. this.playerOptions1.sources[0].src = w.works;
  11698. this.videoDetail = this.playerOptions1;
  11699. this.videoVisible = true;
  11700. },
  11701. isLikes(wid, uid, t, c, isLikes) {
  11702. if (isLikes == false) {
  11703. let params = [
  11704. {
  11705. wid: wid,
  11706. lid: uid,
  11707. t: t,
  11708. c: c,
  11709. },
  11710. ];
  11711. this.ajax
  11712. .post(this.$store.state.api + "insertComment", params)
  11713. .then((res) => {
  11714. this.$message({
  11715. message: "点赞成功",
  11716. type: "success",
  11717. });
  11718. this.selectSWorks();
  11719. this.selectStudent();
  11720. })
  11721. .catch((err) => {
  11722. this.$message.error("点赞失败");
  11723. console.error(err);
  11724. });
  11725. } else {
  11726. let params = {
  11727. wid: wid,
  11728. lid: uid,
  11729. type: t,
  11730. };
  11731. this.ajax
  11732. .get(this.$store.state.api + "deleteComment", params)
  11733. .then((res) => {
  11734. this.$message({
  11735. message: "取消点赞成功",
  11736. type: "success",
  11737. });
  11738. this.selectSWorks();
  11739. this.selectStudent();
  11740. })
  11741. .catch((err) => {
  11742. console.error(err);
  11743. });
  11744. }
  11745. },
  11746. deleteComment(wid) {
  11747. this.$confirm("确定删除此评论吗?", "提示", {
  11748. confirmButtonText: "确定",
  11749. cancelButtonText: "取消",
  11750. type: "warning",
  11751. })
  11752. .then(() => {
  11753. let params = {
  11754. id: wid,
  11755. };
  11756. this.ajax
  11757. .get(this.$store.state.api + "deleteComment2", params)
  11758. .then((res) => {
  11759. this.$message({
  11760. message: "删除评论成功",
  11761. type: "success",
  11762. });
  11763. this.selectSWorks();
  11764. this.selectStudent();
  11765. })
  11766. .catch((err) => {
  11767. console.error(err);
  11768. });
  11769. })
  11770. .catch(() => {});
  11771. },
  11772. commentOther(w, toolIndex, wIndex, gindex, gid) {
  11773. this.commentIndexJson = {
  11774. toolIndex: toolIndex,
  11775. wIndex: wIndex,
  11776. gindex: gindex,
  11777. gid: gid,
  11778. };
  11779. this.commentDetail = [];
  11780. this.commentDialogVisible = true;
  11781. this.commentDetail = w;
  11782. if (w.works && w.type == 1) {
  11783. this.pptImgUrl = "";
  11784. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  11785. if (
  11786. a.indexOf(
  11787. w.works
  11788. .split(".")
  11789. [w.works.split(".").length - 1].toLocaleUpperCase()
  11790. ) != -1
  11791. ) {
  11792. this.pptImgUrl =
  11793. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  11794. this.showPDF = false;
  11795. } else if (
  11796. w.works
  11797. .split(".")
  11798. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  11799. ) {
  11800. this.pptImgUrl = w.works;
  11801. this.showPDF = true;
  11802. }
  11803. } else if (w.works && w.type == 3) {
  11804. this.videoDetail = {};
  11805. this.playerOptions1.sources[0].src = w.works;
  11806. this.videoDetail = this.playerOptions1;
  11807. // this.videoVisible = true;
  11808. } else if (w.works && w.type == 4) {
  11809. this.eScore = JSON.parse(w.works);
  11810. this.rateJson =
  11811. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11812. this.taskCount
  11813. ].toolChoose[toolIndex].rateJson;
  11814. } else if (w.works && w.type == 10) {
  11815. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  11816. } else if (w.works && w.type == 13) {
  11817. this.wordJson =
  11818. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11819. this.taskCount
  11820. ].toolChoose[toolIndex].wordJson;
  11821. }
  11822. },
  11823. openScore(w) {
  11824. this.wScore = 0;
  11825. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  11826. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  11827. this.commentDetail = [];
  11828. this.dialogVisibleScore = true;
  11829. this.commentDetail = w;
  11830. if (w.works && w.type == 1) {
  11831. this.pptImgUrl = "";
  11832. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  11833. if (
  11834. a.indexOf(
  11835. w.works
  11836. .split(".")
  11837. [w.works.split(".").length - 1].toLocaleUpperCase()
  11838. ) != -1
  11839. ) {
  11840. this.pptImgUrl =
  11841. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  11842. this.showPDF = false;
  11843. } else if (
  11844. w.works
  11845. .split(".")
  11846. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  11847. ) {
  11848. this.pptImgUrl = w.works;
  11849. this.showPDF = true;
  11850. }
  11851. } else if (w.works && w.type == 3) {
  11852. this.videoDetail = {};
  11853. this.playerOptions1.sources[0].src = w.works;
  11854. this.videoDetail = this.playerOptions1;
  11855. }
  11856. },
  11857. addComment(wid, uid, t) {
  11858. if (this.commentText == "") {
  11859. this.$message.error("请输入评论");
  11860. return;
  11861. }
  11862. let params2 = [
  11863. {
  11864. wid: wid,
  11865. lid: uid,
  11866. t: t,
  11867. },
  11868. ];
  11869. this.ajax
  11870. .post(this.$store.state.api + "getComment", params2)
  11871. .then((res) => {
  11872. if (res.data[0].length > 0) {
  11873. this.$message.error("一个作业只能评论一条");
  11874. } else {
  11875. let params = [
  11876. {
  11877. wid: wid,
  11878. lid: uid,
  11879. t: t,
  11880. c: this.commentText,
  11881. },
  11882. ];
  11883. this.ajax
  11884. .post(this.$store.state.api + "insertComment", params)
  11885. .then((res) => {
  11886. this.$message({
  11887. message: "评论成功",
  11888. type: "success",
  11889. });
  11890. this.commentText = "";
  11891. this.selectSWorks();
  11892. this.selectStudent();
  11893. })
  11894. .catch((err) => {
  11895. this.$message.error("评论失败");
  11896. console.error(err);
  11897. });
  11898. }
  11899. })
  11900. .catch((err) => {
  11901. // this.$message.error("评论失败");
  11902. console.error(err);
  11903. });
  11904. },
  11905. scoreWork(wid) {
  11906. if (this.wScore == 0) {
  11907. this.$message.error("请评分");
  11908. return;
  11909. }
  11910. let params = [
  11911. {
  11912. wid: wid,
  11913. score: JSON.stringify({
  11914. wScore: this.wScore,
  11915. detail: this.scoreDetail,
  11916. }),
  11917. },
  11918. ];
  11919. this.ajax
  11920. .post(this.$store.state.api + "scoreWork", params)
  11921. .then((res) => {
  11922. this.$message({
  11923. message: "评分成功",
  11924. type: "success",
  11925. });
  11926. this.wScore = 0;
  11927. this.scoreDetail = "";
  11928. this.dialogVisibleScore = false;
  11929. this.selectSWorks();
  11930. this.selectStudent();
  11931. })
  11932. .catch((err) => {
  11933. this.$message.error("评分失败");
  11934. console.error(err);
  11935. });
  11936. },
  11937. openXz(w, i) {
  11938. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  11939. .taskJson[this.taskCount].toolChoose[i].selectJson
  11940. ? JSON.parse(
  11941. JSON.stringify(
  11942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11943. this.taskCount
  11944. ].toolChoose[i].selectJson
  11945. )
  11946. )
  11947. : { url: "", select: [], answer: [] };
  11948. var a = w.works.split(",");
  11949. for (var k = 0; k < a.length; k++) {
  11950. a[k] = parseInt(a[k]);
  11951. }
  11952. this.selectAnswer = { answer: a, stu: w.sName };
  11953. this.isSelect = true;
  11954. this.dialogVisibleSelect = true;
  11955. },
  11956. openSen(w, i) {
  11957. this.sentenceList1 = JSON.parse(w.works);
  11958. this.sentenceList1.stuName = w.sName;
  11959. this.dialogVisibleSentence1 = true;
  11960. },
  11961. openPj(w, toolindex) {
  11962. this.isStar = true;
  11963. this.eScore = JSON.parse(w);
  11964. this.rateJson =
  11965. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11966. this.taskCount
  11967. ].toolChoose[toolindex].rateJson;
  11968. this.studentEvalDialogVisible = true;
  11969. },
  11970. deleteWorks(id) {
  11971. this.$confirm("确定删除此作业吗?", "提示", {
  11972. confirmButtonText: "确定",
  11973. cancelButtonText: "取消",
  11974. type: "warning",
  11975. })
  11976. .then(() => {
  11977. let params = [
  11978. {
  11979. id: id,
  11980. },
  11981. ];
  11982. this.ajax
  11983. .post(this.$store.state.api + "deleteCourseWork", params)
  11984. .then((res) => {
  11985. this.$message({
  11986. message: "删除成功",
  11987. type: "success",
  11988. });
  11989. this.selectStudent();
  11990. this.selectSWorks();
  11991. this.selectSLook();
  11992. })
  11993. .catch((err) => {
  11994. this.$message.error("网络异常");
  11995. console.error(err);
  11996. });
  11997. })
  11998. .catch(() => {});
  11999. },
  12000. selectSWorks(gindex) {
  12001. //教师查看全部作业
  12002. let params = {
  12003. cid: this.id,
  12004. s: this.courseType,
  12005. t: this.taskCount,
  12006. };
  12007. this.ajax
  12008. .get(this.$store.state.api + "selectSWorks", params)
  12009. .then((res) => {
  12010. var a =
  12011. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12012. this.taskCount
  12013. ].toolChoose;
  12014. var b = res.data[0];
  12015. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12016. var y = [
  12017. "AVI",
  12018. "NAVI",
  12019. "MPEG",
  12020. "ASF",
  12021. "MOV",
  12022. "WMV",
  12023. "3GP",
  12024. "RM",
  12025. "RMVB",
  12026. "FLV",
  12027. "F4V",
  12028. "H.264",
  12029. "H.265",
  12030. "REAL VIDEO",
  12031. "MKV",
  12032. "WebM",
  12033. "HDDVD",
  12034. "MP4",
  12035. "MPG",
  12036. "M4V",
  12037. "MGV",
  12038. "OGV",
  12039. "QTM",
  12040. "STR",
  12041. "AMC",
  12042. "DVX",
  12043. "EVO",
  12044. "DAT",
  12045. "OGG",
  12046. "OGM",
  12047. ];
  12048. var d = res.data[1];
  12049. var e = res.data[2];
  12050. var f = res.data[3];
  12051. let _worksStudent = [];
  12052. for (var i = 0; i < a.length; i++) {
  12053. _worksStudent[i] = [];
  12054. if (
  12055. !this.isCloseList[i] ||
  12056. this.isCloseList[i].isClose == undefined
  12057. ) {
  12058. this.isCloseList[i] = { isClose: 0 };
  12059. }
  12060. this.groupStudent[i] = [];
  12061. this.groupStudentUid[i] = [];
  12062. if (this.isGroup) {
  12063. for (
  12064. var groupI = 0;
  12065. groupI < this.courseGroup.group.length;
  12066. groupI++
  12067. ) {
  12068. this.courseGroup.group[groupI].works[i] = [];
  12069. }
  12070. }
  12071. this.isWorksS[i] = [];
  12072. this.checkJson[i] = [];
  12073. if (a[i].tool[0] == 49) {
  12074. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  12075. this.groupStudent[i][gA] = [];
  12076. this.groupStudentUid[i][gA] = [];
  12077. _worksStudent[i][gA] = [];
  12078. this.isCloseList[i][gA] = [];
  12079. for (var g = 0; g < f.length; g++) {
  12080. if (
  12081. f[g].ttype == 2 &&
  12082. this.tcid &&
  12083. this.arrayToArray(
  12084. f[g].classid.split(","),
  12085. this.tcid.split(",")
  12086. ).length == 0
  12087. ) {
  12088. continue;
  12089. }
  12090. if (gA == f[g].group && f[g].tool == i) {
  12091. this.groupStudent[i][gA].push(f[g]);
  12092. this.groupStudentUid[i][gA].push(f[g].userid);
  12093. }
  12094. }
  12095. }
  12096. this.$forceUpdate();
  12097. }
  12098. for (var j = 0; j < b.length; j++) {
  12099. if (
  12100. b[j].ttype == 2 &&
  12101. this.tcid &&
  12102. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  12103. .length == 0
  12104. ) {
  12105. continue;
  12106. }
  12107. var likesCount = 0;
  12108. var commentCount = 0;
  12109. var isLikes = false;
  12110. var commentJson = [];
  12111. var data = b[j];
  12112. if (i == b[j].tool) {
  12113. if (data.type == 2 && a[i].tool[0] == 4) {
  12114. // if(JSON.parse(data.content)[0].anwer){
  12115. var checkL =
  12116. JSON.parse(data.content)[0].anwer instanceof Array
  12117. ? JSON.parse(data.content)[0].anwer
  12118. : JSON.parse(data.content)[0].anwer.split(",");
  12119. for (var z = 0; z < checkL.length; z++) {
  12120. if (!this.checkJson[i][z]) {
  12121. this.checkJson[i].push({
  12122. checkCount: [],
  12123. checkPerson: [],
  12124. rightPerson: [],
  12125. });
  12126. }
  12127. if (!this.checkJson[i][z].checkCount.length) {
  12128. this.checkJson[i][z].checkCount = [];
  12129. let _askItemCount = JSON.parse(data.content)[0].askJson
  12130. .askJson[z].askItem;
  12131. for (var aic = 0; aic < _askItemCount; aic++) {
  12132. this.checkJson[i][z].checkCount.push(0);
  12133. }
  12134. }
  12135. if (checkL[z] instanceof Array) {
  12136. if (
  12137. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  12138. checkL[z].sort().join(",")
  12139. ) {
  12140. this.checkJson[i][z].rightPerson.push(data.name);
  12141. }
  12142. for (var q = 0; q < checkL[z].length; q++) {
  12143. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12144. ? this.checkJson[i][z].checkPerson[
  12145. parseInt(checkL[z][q])
  12146. ].push(data.name)
  12147. : (this.checkJson[i][z].checkPerson[
  12148. parseInt(checkL[z][q])
  12149. ] = [data.name]);
  12150. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12151. ? this.checkJson[i][z].checkCount[
  12152. parseInt(checkL[z][q])
  12153. ]++
  12154. : (this.checkJson[i][z].checkCount[
  12155. parseInt(checkL[z][q])
  12156. ] = 1);
  12157. }
  12158. } else {
  12159. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  12160. this.checkJson[i][z].rightPerson.push(data.name);
  12161. }
  12162. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12163. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12164. ? this.checkJson[i][z].checkPerson[
  12165. parseInt(checkL[z])
  12166. ].push(data.name)
  12167. : (this.checkJson[i][z].checkPerson[
  12168. parseInt(checkL[z])
  12169. ] = [data.name]);
  12170. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12171. ? this.checkJson[i][z].checkCount[
  12172. parseInt(checkL[z])
  12173. ]++
  12174. : (this.checkJson[i][z].checkCount[
  12175. parseInt(checkL[z])
  12176. ] = 1);
  12177. }
  12178. }
  12179. }
  12180. } else if (data.type == 8 && a[i].tool[0] == 45) {
  12181. var checkL = JSON.parse(data.content)[0].anwer;
  12182. for (var z = 0; z < checkL.length; z++) {
  12183. if (!this.checkJson[i][z]) {
  12184. this.checkJson[i].push({
  12185. checkCount: [],
  12186. checkPerson: [],
  12187. rightPerson: [],
  12188. });
  12189. }
  12190. if (!this.checkJson[i][z].checkCount.length) {
  12191. this.checkJson[i][z].checkCount = [];
  12192. let _askItemCount = JSON.parse(data.content)[0].testJson
  12193. .testJson[z].testItem;
  12194. console.log(_askItemCount);
  12195. for (var aic = 0; aic < _askItemCount; aic++) {
  12196. this.checkJson[i][z].checkCount.push(0);
  12197. }
  12198. }
  12199. if (checkL[z] instanceof Array) {
  12200. if (
  12201. JSON.parse(data.content)[0]
  12202. .testJson.testJson[z].answer.sort()
  12203. .join(",") == checkL[z].sort().join(",")
  12204. ) {
  12205. this.checkJson[i][z].rightPerson.push(data.name);
  12206. }
  12207. for (var q = 0; q < checkL[z].length; q++) {
  12208. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12209. ? this.checkJson[i][z].checkPerson[
  12210. parseInt(checkL[z][q])
  12211. ].push(data.name)
  12212. : (this.checkJson[i][z].checkPerson[
  12213. parseInt(checkL[z][q])
  12214. ] = [data.name]);
  12215. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12216. ? this.checkJson[i][z].checkCount[
  12217. parseInt(checkL[z][q])
  12218. ]++
  12219. : (this.checkJson[i][z].checkCount[
  12220. parseInt(checkL[z][q])
  12221. ] = 1);
  12222. }
  12223. } else {
  12224. if (
  12225. JSON.parse(data.content)[0].testJson.testJson[z]
  12226. .answer == checkL[z]
  12227. ) {
  12228. this.checkJson[i][z].rightPerson.push(data.name);
  12229. }
  12230. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12231. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12232. ? this.checkJson[i][z].checkPerson[
  12233. parseInt(checkL[z])
  12234. ].push(data.name)
  12235. : (this.checkJson[i][z].checkPerson[
  12236. parseInt(checkL[z])
  12237. ] = [data.name]);
  12238. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12239. ? this.checkJson[i][z].checkCount[
  12240. parseInt(checkL[z])
  12241. ]++
  12242. : (this.checkJson[i][z].checkCount[
  12243. parseInt(checkL[z])
  12244. ] = 1);
  12245. }
  12246. }
  12247. }
  12248. } else if (data.type == 9 && a[i].tool[0] == 47) {
  12249. var checkL = JSON.parse(data.content);
  12250. for (var z = 0; z < checkL.length; z++) {
  12251. if (!this.checkJson[i][z]) {
  12252. this.checkJson[i].push({
  12253. checkCount: [],
  12254. checkPerson: [],
  12255. rightPerson: [],
  12256. });
  12257. }
  12258. this.checkJson[i][z].checkPerson.push(data.name);
  12259. if (
  12260. checkL[z].chooseSenList.toString() ==
  12261. checkL[z].rightAnswer.toString()
  12262. ) {
  12263. this.checkJson[i][z].rightPerson.push(data.name);
  12264. }
  12265. }
  12266. }
  12267. for (var k = 0; k < d.length; k++) {
  12268. //点赞
  12269. if (d[k].workId == b[j].id) {
  12270. likesCount++;
  12271. if (d[k].likesId == this.userid) {
  12272. isLikes = true;
  12273. }
  12274. }
  12275. }
  12276. for (var l = 0; l < e.length; l++) {
  12277. //评论
  12278. if (e[l].workId == b[j].id) {
  12279. if (e[l].comment != "") {
  12280. commentCount++;
  12281. commentJson.push({
  12282. commentText: e[l].comment,
  12283. commentTime: e[l].commentTime,
  12284. commentPeople: e[l].commentPeople,
  12285. userid: e[l].userid,
  12286. wid: e[l].id,
  12287. });
  12288. }
  12289. }
  12290. }
  12291. if (
  12292. (b[j].type == 1 ||
  12293. b[j].type == 4 ||
  12294. b[j].type == 5 ||
  12295. b[j].type == 6 ||
  12296. b[j].type == 12 ||
  12297. b[j].type == 7) &&
  12298. a[i].tool[0] != 15 &&
  12299. a[i].tool[0] != 4 &&
  12300. a[i].tool[0] != 45 &&
  12301. a[i].tool[0] != 50 &&
  12302. a[i].tool[0] != 32 &&
  12303. a[i].tool[0] != 57 &&
  12304. a[i].tool[0] != 52
  12305. ) {
  12306. if (
  12307. c.indexOf(
  12308. b[j].content
  12309. .split(".")
  12310. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12311. ) != -1 &&
  12312. a[i].tool[0] == 16 &&
  12313. b[j].atool != 50
  12314. ) {
  12315. let _works = {
  12316. userid: b[j].userid,
  12317. ateacher: b[j].ateacher,
  12318. wid: b[j].id,
  12319. works: b[j].content,
  12320. sName: b[j].name,
  12321. type: 1,
  12322. time: b[j].time,
  12323. score: b[j].score,
  12324. img: b[j].img,
  12325. likesCount: likesCount,
  12326. commentCount: commentCount,
  12327. isLikes: isLikes,
  12328. commentJson: commentJson,
  12329. };
  12330. if (this.isGroup) {
  12331. let isGw = 1;
  12332. for (
  12333. var groupI = 0;
  12334. groupI < this.courseGroup.group.length;
  12335. groupI++
  12336. ) {
  12337. let gid = this.courseGroup.group[groupI].id;
  12338. if (
  12339. this.courseGroupStudentUid[gid].indexOf(
  12340. b[j].userid
  12341. ) != -1
  12342. ) {
  12343. isGw = 2;
  12344. this.courseGroup.group[groupI].works[i].push(_works);
  12345. break;
  12346. }
  12347. }
  12348. if (isGw == 1) {
  12349. _worksStudent[i].push(_works);
  12350. }
  12351. } else {
  12352. _worksStudent[i].push(_works);
  12353. }
  12354. this.isWorksS[i].push({
  12355. uid: b[j].userid,
  12356. sName: b[j].name,
  12357. });
  12358. } else if (
  12359. y.indexOf(
  12360. b[j].content
  12361. .split(".")
  12362. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12363. ) != -1 &&
  12364. a[i].tool[0] == 16 &&
  12365. b[j].atool != 50
  12366. ) {
  12367. let _works = {
  12368. userid: b[j].userid,
  12369. ateacher: b[j].ateacher,
  12370. wid: b[j].id,
  12371. works: b[j].content,
  12372. sName: b[j].name,
  12373. type: 3,
  12374. time: b[j].time,
  12375. score: b[j].score,
  12376. img: b[j].img,
  12377. likesCount: likesCount,
  12378. commentCount: commentCount,
  12379. isLikes: isLikes,
  12380. commentJson: commentJson,
  12381. };
  12382. if (this.isGroup) {
  12383. let isGw = 1;
  12384. for (
  12385. var groupI = 0;
  12386. groupI < this.courseGroup.group.length;
  12387. groupI++
  12388. ) {
  12389. let gid = this.courseGroup.group[groupI].id;
  12390. if (
  12391. this.courseGroupStudentUid[gid].indexOf(
  12392. b[j].userid
  12393. ) != -1
  12394. ) {
  12395. isGw = 2;
  12396. this.courseGroup.group[groupI].works[i].push(_works);
  12397. break;
  12398. }
  12399. }
  12400. if (isGw == 1) {
  12401. _worksStudent[i].push(_works);
  12402. }
  12403. } else {
  12404. _worksStudent[i].push(_works);
  12405. }
  12406. this.isWorksS[i].push({
  12407. uid: b[j].userid,
  12408. sName: b[j].name,
  12409. });
  12410. } else if (b[j].type == 6 && b[j].atool != 50) {
  12411. _worksStudent[i].push({
  12412. userid: b[j].userid,
  12413. ateacher: b[j].ateacher,
  12414. wid: b[j].id,
  12415. works: b[j].content,
  12416. sName: b[j].name,
  12417. type: 4,
  12418. time: b[j].time,
  12419. score: b[j].score,
  12420. img: b[j].img,
  12421. likesCount: likesCount,
  12422. commentCount: commentCount,
  12423. isLikes: isLikes,
  12424. commentJson: commentJson,
  12425. });
  12426. this.isWorksS[i].push({
  12427. uid: b[j].userid,
  12428. sName: b[j].name,
  12429. });
  12430. } else if (b[j].type == 7 && b[j].atool != 50) {
  12431. _worksStudent[i].push({
  12432. userid: b[j].userid,
  12433. ateacher: b[j].ateacher,
  12434. wid: b[j].id,
  12435. works: b[j].content,
  12436. sName: b[j].name,
  12437. type: 5,
  12438. time: b[j].time,
  12439. score: b[j].score,
  12440. img: b[j].img,
  12441. likesCount: likesCount,
  12442. commentCount: commentCount,
  12443. isLikes: isLikes,
  12444. commentJson: commentJson,
  12445. });
  12446. this.isWorksS[i].push({
  12447. uid: b[j].userid,
  12448. sName: b[j].name,
  12449. });
  12450. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  12451. let _works = {
  12452. userid: b[j].userid,
  12453. ateacher: b[j].ateacher,
  12454. wid: b[j].id,
  12455. works: b[j].content,
  12456. sName: b[j].name,
  12457. type: 12,
  12458. time: b[j].time,
  12459. score: b[j].score,
  12460. img: b[j].img,
  12461. likesCount: likesCount,
  12462. commentCount: commentCount,
  12463. isLikes: isLikes,
  12464. commentJson: commentJson,
  12465. };
  12466. if (this.isGroup) {
  12467. let isGw = 1;
  12468. for (
  12469. var groupI = 0;
  12470. groupI < this.courseGroup.group.length;
  12471. groupI++
  12472. ) {
  12473. let gid = this.courseGroup.group[groupI].id;
  12474. if (
  12475. this.courseGroupStudentUid[gid].indexOf(
  12476. b[j].userid
  12477. ) != -1
  12478. ) {
  12479. isGw = 2;
  12480. this.courseGroup.group[groupI].works[i].push(_works);
  12481. break;
  12482. }
  12483. }
  12484. if (isGw == 1) {
  12485. _worksStudent[i].push(_works);
  12486. }
  12487. } else {
  12488. _worksStudent[i].push(_works);
  12489. }
  12490. this.isWorksS[i].push({
  12491. uid: b[j].userid,
  12492. sName: b[j].name,
  12493. });
  12494. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  12495. let _works = {
  12496. userid: b[j].userid,
  12497. ateacher: b[j].ateacher,
  12498. wid: b[j].id,
  12499. works: b[j].content,
  12500. sName: b[j].name,
  12501. type: 0,
  12502. time: b[j].time,
  12503. score: b[j].score,
  12504. img: b[j].img,
  12505. likesCount: likesCount,
  12506. commentCount: commentCount,
  12507. isLikes: isLikes,
  12508. commentJson: commentJson,
  12509. };
  12510. if (this.isGroup) {
  12511. let isGw = 1;
  12512. for (
  12513. var groupI = 0;
  12514. groupI < this.courseGroup.group.length;
  12515. groupI++
  12516. ) {
  12517. let gid = this.courseGroup.group[groupI].id;
  12518. if (
  12519. this.courseGroupStudentUid[gid].indexOf(
  12520. b[j].userid
  12521. ) != -1
  12522. ) {
  12523. isGw = 2;
  12524. this.courseGroup.group[groupI].works[i].push(_works);
  12525. break;
  12526. }
  12527. }
  12528. if (isGw == 1) {
  12529. _worksStudent[i].push(_works);
  12530. }
  12531. } else {
  12532. _worksStudent[i].push(_works);
  12533. }
  12534. this.isWorksS[i].push({
  12535. uid: b[j].userid,
  12536. sName: b[j].name,
  12537. });
  12538. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  12539. let _works = {
  12540. userid: b[j].userid,
  12541. ateacher: b[j].ateacher,
  12542. wid: b[j].id,
  12543. works: b[j].content,
  12544. sName: b[j].name,
  12545. type: 0,
  12546. time: b[j].time,
  12547. score: b[j].score,
  12548. img: b[j].img,
  12549. likesCount: likesCount,
  12550. commentCount: commentCount,
  12551. isLikes: isLikes,
  12552. commentJson: commentJson,
  12553. };
  12554. if (this.isGroup) {
  12555. let isGw = 1;
  12556. for (
  12557. var groupI = 0;
  12558. groupI < this.courseGroup.group.length;
  12559. groupI++
  12560. ) {
  12561. let gid = this.courseGroup.group[groupI].id;
  12562. if (
  12563. this.courseGroupStudentUid[gid].indexOf(
  12564. b[j].userid
  12565. ) != -1
  12566. ) {
  12567. isGw = 2;
  12568. this.courseGroup.group[groupI].works[i].push(_works);
  12569. break;
  12570. }
  12571. }
  12572. if (isGw == 1) {
  12573. _worksStudent[i].push(_works);
  12574. }
  12575. } else {
  12576. _worksStudent[i].push(_works);
  12577. }
  12578. this.isWorksS[i].push({
  12579. uid: b[j].userid,
  12580. sName: b[j].name,
  12581. });
  12582. }
  12583. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  12584. let _works = {
  12585. userid: b[j].userid,
  12586. ateacher: b[j].ateacher,
  12587. wid: b[j].id,
  12588. works: b[j].content,
  12589. sName: b[j].name,
  12590. type: 2,
  12591. time: b[j].time,
  12592. score: b[j].score,
  12593. img: b[j].img,
  12594. likesCount: likesCount,
  12595. commentCount: commentCount,
  12596. isLikes: isLikes,
  12597. commentJson: commentJson,
  12598. };
  12599. if (this.isGroup) {
  12600. let isGw = 1;
  12601. for (
  12602. var groupI = 0;
  12603. groupI < this.courseGroup.group.length;
  12604. groupI++
  12605. ) {
  12606. let gid = this.courseGroup.group[groupI].id;
  12607. if (
  12608. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  12609. -1
  12610. ) {
  12611. isGw = 2;
  12612. this.courseGroup.group[groupI].works[i].push(_works);
  12613. break;
  12614. }
  12615. }
  12616. if (isGw == 1) {
  12617. _worksStudent[i].push(_works);
  12618. }
  12619. } else {
  12620. _worksStudent[i].push(_works);
  12621. }
  12622. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12623. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  12624. //问卷
  12625. _worksStudent[i].push({
  12626. userid: b[j].userid,
  12627. ateacher: b[j].ateacher,
  12628. wid: b[j].id,
  12629. works: b[j].content,
  12630. sName: b[j].name,
  12631. type: 2,
  12632. time: b[j].time,
  12633. score: b[j].score,
  12634. img: b[j].img,
  12635. likesCount: likesCount,
  12636. commentCount: commentCount,
  12637. isLikes: isLikes,
  12638. commentJson: commentJson,
  12639. });
  12640. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12641. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  12642. //选择题
  12643. _worksStudent[i].push({
  12644. userid: b[j].userid,
  12645. ateacher: b[j].ateacher,
  12646. wid: b[j].id,
  12647. works: b[j].content,
  12648. sName: b[j].name,
  12649. type: 8,
  12650. time: b[j].time,
  12651. score: b[j].score,
  12652. img: b[j].img,
  12653. likesCount: likesCount,
  12654. commentCount: commentCount,
  12655. isLikes: isLikes,
  12656. commentJson: commentJson,
  12657. });
  12658. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12659. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  12660. //选择题
  12661. _worksStudent[i].push({
  12662. userid: b[j].userid,
  12663. ateacher: b[j].ateacher,
  12664. wid: b[j].id,
  12665. works: b[j].content,
  12666. sName: b[j].name,
  12667. type: 9,
  12668. time: b[j].time,
  12669. score: b[j].score,
  12670. img: b[j].img,
  12671. likesCount: likesCount,
  12672. commentCount: commentCount,
  12673. isLikes: isLikes,
  12674. commentJson: commentJson,
  12675. });
  12676. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12677. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  12678. //选择题
  12679. _worksStudent[i].push({
  12680. userid: b[j].userid,
  12681. ateacher: b[j].ateacher,
  12682. wid: b[j].id,
  12683. works: b[j].content,
  12684. sName: b[j].name,
  12685. type: 10,
  12686. time: b[j].time,
  12687. score: b[j].score,
  12688. img: b[j].img,
  12689. likesCount: likesCount,
  12690. commentCount: commentCount,
  12691. isLikes: isLikes,
  12692. commentJson: commentJson,
  12693. });
  12694. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12695. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  12696. //选择题
  12697. _worksStudent[i].push({
  12698. userid: b[j].userid,
  12699. ateacher: b[j].ateacher,
  12700. wid: b[j].id,
  12701. works: b[j].content,
  12702. sName: b[j].name,
  12703. type: 13,
  12704. time: b[j].time,
  12705. score: b[j].score,
  12706. img: b[j].img,
  12707. likesCount: likesCount,
  12708. commentCount: commentCount,
  12709. isLikes: isLikes,
  12710. commentJson: commentJson,
  12711. });
  12712. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12713. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  12714. let _gindex = JSON.parse(b[j].content);
  12715. if (
  12716. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  12717. b[j].userid
  12718. ) != -1
  12719. ) {
  12720. _worksStudent[i][_gindex.groupIndex].push({
  12721. userid: b[j].userid,
  12722. ateacher: b[j].ateacher,
  12723. wid: b[j].id,
  12724. works: _gindex.url,
  12725. sName: b[j].name,
  12726. type: _gindex.type,
  12727. time: b[j].time,
  12728. score: b[j].score,
  12729. img: b[j].img,
  12730. likesCount: likesCount,
  12731. commentCount: commentCount,
  12732. isLikes: isLikes,
  12733. commentJson: commentJson,
  12734. });
  12735. }
  12736. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12737. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  12738. _worksStudent[i].push({
  12739. userid: b[j].userid,
  12740. ateacher: b[j].ateacher,
  12741. wid: b[j].id,
  12742. works: b[j].content,
  12743. sName: b[j].name ? b[j].name : b[j].userid,
  12744. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  12745. time: b[j].time,
  12746. score: b[j].score,
  12747. img: b[j].img,
  12748. likesCount: likesCount,
  12749. commentCount: commentCount,
  12750. isLikes: isLikes,
  12751. commentJson: commentJson,
  12752. });
  12753. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12754. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  12755. _worksStudent[i].push({
  12756. userid: b[j].userid,
  12757. ateacher: b[j].ateacher,
  12758. wid: b[j].id,
  12759. works: b[j].content,
  12760. sName: b[j].name ? b[j].name : b[j].userid,
  12761. type: 12,
  12762. time: b[j].time,
  12763. score: b[j].score,
  12764. img: b[j].img,
  12765. likesCount: likesCount,
  12766. commentCount: commentCount,
  12767. isLikes: isLikes,
  12768. commentJson: commentJson,
  12769. });
  12770. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12771. } else if (
  12772. a[i].tool[0] == 57 &&
  12773. b[j].atool == 57 &&
  12774. b[j].type == 12
  12775. ) {
  12776. _worksStudent[i].push({
  12777. userid: b[j].userid,
  12778. ateacher: b[j].ateacher,
  12779. wid: b[j].id,
  12780. works: b[j].content,
  12781. sName: b[j].name ? b[j].name : b[j].userid,
  12782. type: 12,
  12783. time: b[j].time,
  12784. score: b[j].score,
  12785. img: b[j].img,
  12786. likesCount: likesCount,
  12787. commentCount: commentCount,
  12788. isLikes: isLikes,
  12789. commentJson: commentJson,
  12790. });
  12791. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12792. } else if (
  12793. a[i].tool[0] == 57 &&
  12794. b[j].atool == 57 &&
  12795. b[j].type == 15
  12796. ) {
  12797. _worksStudent[i].push({
  12798. userid: b[j].userid,
  12799. ateacher: b[j].ateacher,
  12800. wid: b[j].id,
  12801. works: b[j].content,
  12802. sName: b[j].name ? b[j].name : b[j].userid,
  12803. type: 15,
  12804. time: b[j].time,
  12805. score: b[j].score,
  12806. img: b[j].img,
  12807. likesCount: likesCount,
  12808. commentCount: commentCount,
  12809. isLikes: isLikes,
  12810. commentJson: commentJson,
  12811. });
  12812. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12813. }
  12814. }
  12815. }
  12816. if (_worksStudent[i] && _worksStudent[i].length) {
  12817. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  12818. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  12819. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  12820. var scoreA = parseFloat(jscoreA);
  12821. var scoreB = parseFloat(jscoreB);
  12822. if (scoreA == scoreB) {
  12823. return b.likesCount - a.likesCount;
  12824. }
  12825. return scoreB - scoreA;
  12826. });
  12827. if (this.isGroup) {
  12828. for (
  12829. var groupI = 0;
  12830. groupI < this.courseGroup.group.length;
  12831. groupI++
  12832. ) {
  12833. this.courseGroup.group[groupI].works[i] =
  12834. this.courseGroup.group[groupI].works[i].sort(function (
  12835. a,
  12836. b
  12837. ) {
  12838. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  12839. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  12840. var scoreA = parseFloat(jscoreA);
  12841. var scoreB = parseFloat(jscoreB);
  12842. if (scoreA == scoreB) {
  12843. return b.likesCount - a.likesCount;
  12844. }
  12845. return scoreB - scoreA;
  12846. });
  12847. }
  12848. }
  12849. }
  12850. }
  12851. for (var i = 0; i < a.length; i++) {
  12852. for (var j = 0; j < b.length; j++) {
  12853. var data = b[j];
  12854. if (i == b[j].tool) {
  12855. if (data.type == 2 || data.type == 8) {
  12856. for (var z = 0; z < this.checkJson[i].length; z++) {
  12857. this.checkJson[i][z].checkPerent = [];
  12858. this.checkJson[i][z].right = Math.round(
  12859. (this.checkJson[i][z].rightPerson.length /
  12860. parseInt(_worksStudent[i].length)) *
  12861. 100
  12862. );
  12863. let aaaa = this.checkJson[i][z];
  12864. console.log(aaaa);
  12865. for (
  12866. var k = 0;
  12867. k < this.checkJson[i][z].checkCount.length;
  12868. k++
  12869. ) {
  12870. this.checkJson[i][z].checkPerent.push(
  12871. Math.round(
  12872. (this.checkJson[i][z].checkCount[k] /
  12873. parseInt(_worksStudent[i].length)) *
  12874. 100
  12875. )
  12876. );
  12877. }
  12878. }
  12879. } else if (data.type == 9) {
  12880. for (var z = 0; z < this.checkJson[i].length; z++) {
  12881. this.checkJson[i][z].checkPerent = [];
  12882. this.checkJson[i][z].right = Math.round(
  12883. (this.checkJson[i][z].rightPerson.length /
  12884. this.checkJson[i][z].checkPerson.length) *
  12885. 100
  12886. );
  12887. }
  12888. }
  12889. }
  12890. }
  12891. }
  12892. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  12893. this.joinGroup(gindex);
  12894. }
  12895. this.worksStudent = _worksStudent;
  12896. this.selectWorksStudent();
  12897. })
  12898. .catch((err) => {
  12899. console.error(err);
  12900. });
  12901. },
  12902. pngToWhiteBg(file) {
  12903. const _file = file;
  12904. let read = new FileReader();
  12905. read.readAsDataURL(file); // 文件转base64
  12906. return new Promise((resolve, reject) => {
  12907. read.onload = (e) => {
  12908. let img = new Image();
  12909. img.src = e.target.result;
  12910. img.onload = async () => {
  12911. // 生成canvas
  12912. let canvas = document.createElement("canvas");
  12913. let context = canvas.getContext("2d");
  12914. // 绘制图片到canvas上
  12915. canvas.width = img.width;
  12916. canvas.height = img.height;
  12917. // 在canvas绘制前填充白色背景
  12918. context.fillStyle = "#fff";
  12919. context.fillRect(0, 0, canvas.width, canvas.height);
  12920. context.drawImage(img, 0, 0);
  12921. let base64 = canvas.toDataURL(file["type"], 1);
  12922. let newFile = this.dataUrlToFile(base64, _file);
  12923. resolve(newFile);
  12924. };
  12925. };
  12926. });
  12927. },
  12928. dataUrlToFile(dataurl, file) {
  12929. let arr = dataurl.split(","),
  12930. mime = arr[0].match(/:(.*?);/)[1],
  12931. bstr = atob(arr[1]),
  12932. n = bstr.length,
  12933. u8arr = new Uint8Array(n);
  12934. while (n--) {
  12935. u8arr[n] = bstr.charCodeAt(n);
  12936. }
  12937. // return new Blob([u8arr], { type: mime });
  12938. return new File([new Blob([u8arr], { type: mime })], file.name, {
  12939. type: mime,
  12940. });
  12941. },
  12942. async beforeUpload1(event, type, i) {
  12943. // this.$message.success('进入上传')
  12944. var file = "";
  12945. if (type == 5) {
  12946. file = event;
  12947. } else {
  12948. file = event.target.files[0];
  12949. }
  12950. var credentials = {
  12951. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12952. secretAccessKey: "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",
  12953. }; //秘钥形式的登录上传
  12954. window.AWS.config.update(credentials);
  12955. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12956. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  12957. var _this = this;
  12958. _this.progress = 0;
  12959. _this.proVisible = true;
  12960. _this.isFinishSize = 0;
  12961. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  12962. var b = [
  12963. "DOC",
  12964. "DOCX",
  12965. "DOCM",
  12966. "DOTM",
  12967. "DOTX",
  12968. "PPTX",
  12969. "PPSX",
  12970. "PPT",
  12971. "PPS",
  12972. "PPTM",
  12973. "POTM",
  12974. "PPAM",
  12975. "POTX",
  12976. "PPSM",
  12977. ];
  12978. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  12979. var photoA = [
  12980. "BMP",
  12981. "GIF",
  12982. "PNG",
  12983. "JPGE",
  12984. "JPEG",
  12985. "JPG",
  12986. "TIF",
  12987. "PCX",
  12988. "TGA",
  12989. "EXIF",
  12990. "FPX",
  12991. "SVG",
  12992. "APNG",
  12993. ];
  12994. // if (
  12995. // b.indexOf(
  12996. // file.name
  12997. // .split(".")
  12998. // [file.name.split(".").length - 1].toLocaleUpperCase()
  12999. // ) != -1
  13000. // ) {
  13001. // if (file.size / 1024 / 1024 > 10) {
  13002. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13003. // return;
  13004. // }
  13005. // } else if (
  13006. // excelA.indexOf(
  13007. // file.name
  13008. // .split(".")
  13009. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13010. // ) != "-1"
  13011. // ) {
  13012. // if (file.size / 1024 / 1024 > 5) {
  13013. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13014. // return;
  13015. // }
  13016. // }
  13017. if (
  13018. photoA.indexOf(
  13019. file.name
  13020. .split(".")
  13021. [file.name.split(".").length - 1].toLocaleUpperCase()
  13022. ) != -1 &&
  13023. type != 4
  13024. ) {
  13025. // const blob = await imageConversion.compress(file, 0.8)
  13026. file = await this.pngToWhiteBg(file);
  13027. const blob = await imageConversion.compressAccurately(file, 256);
  13028. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13029. file = new File([blob], file.name, { type: file.type });
  13030. }
  13031. if (file) {
  13032. var params = {
  13033. Key:
  13034. file.name.split(".")[0] +
  13035. new Date().getTime() +
  13036. "." +
  13037. file.name.split(".")[file.name.split(".").length - 1],
  13038. ContentType: file.type,
  13039. Body: file,
  13040. "Access-Control-Allow-Credentials": "*",
  13041. ACL: "public-read",
  13042. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13043. var options = {
  13044. // partSize: 2048 * 1024 * 1024,
  13045. partSize: 1024 * 1024 * 1024,
  13046. queueSize: 2,
  13047. leavePartsOnError: true,
  13048. };
  13049. bucket
  13050. .upload(params, options)
  13051. .on("httpUploadProgress", function (evt) {
  13052. //这里可以写进度条
  13053. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13054. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  13055. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  13056. })
  13057. .send(function (err, data) {
  13058. _this.progress = 100;
  13059. _this.isFinishSize = _this.isAllSize;
  13060. setTimeout(() => {
  13061. _this.proVisible = false;
  13062. }, 1000);
  13063. if (err) {
  13064. var a = _this.$refs.upload1.uploadFiles;
  13065. a.splice(a.length - 1, a.length);
  13066. _this.$message.error("上传失败");
  13067. } else {
  13068. // _this.$message.success('上传成功')
  13069. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13070. var c = [
  13071. "AVI",
  13072. "NAVI",
  13073. "MPEG",
  13074. "ASF",
  13075. "MOV",
  13076. "WMV",
  13077. "3GP",
  13078. "RM",
  13079. "RMVB",
  13080. "FLV",
  13081. "F4V",
  13082. "H.264",
  13083. "H.265",
  13084. "REAL VIDEO",
  13085. "MKV",
  13086. "WebM",
  13087. "HDDVD",
  13088. "MP4",
  13089. "MPG",
  13090. "M4V",
  13091. "MGV",
  13092. "OGV",
  13093. "QTM",
  13094. "STR",
  13095. "AMC",
  13096. "DVX",
  13097. "EVO",
  13098. "DAT",
  13099. "OGG",
  13100. "OGM",
  13101. ];
  13102. if (type == 1) {
  13103. _this.studyJuri[0].cover.push({
  13104. name: file.name,
  13105. url: data.Location,
  13106. uid: file.uid,
  13107. });
  13108. if (
  13109. c.indexOf(
  13110. _this.studyJuri[0].cover[0].url
  13111. .split(".")
  13112. [
  13113. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13114. ].toLocaleUpperCase()
  13115. ) != -1
  13116. ) {
  13117. _this.fileType = 2;
  13118. } else if (
  13119. b.indexOf(
  13120. _this.studyJuri[0].cover[0].url
  13121. .split(".")
  13122. [
  13123. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13124. ].toLocaleUpperCase()
  13125. ) != -1
  13126. ) {
  13127. _this.fileType = 1;
  13128. } else if (
  13129. photoA.indexOf(
  13130. _this.studyJuri[0].cover[0].url
  13131. .split(".")
  13132. [
  13133. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13134. ].toLocaleUpperCase()
  13135. ) != -1
  13136. ) {
  13137. _this.fileType = 0;
  13138. } else {
  13139. _this.fileType = 3;
  13140. }
  13141. _this.imgChange(null, null, type);
  13142. } else if (type == 2) {
  13143. _this.upToolImg = data.Location;
  13144. _this.imgChange(null, null, type);
  13145. _this.addCourseWorks(i);
  13146. } else if (type == 4) {
  13147. _this.addPz("3", data.Location);
  13148. } else if (type == 5) {
  13149. _this.addImgDrawImG(data.Location);
  13150. } else if (type == 6) {
  13151. var _ftype = 1;
  13152. if (
  13153. c.indexOf(
  13154. data.Location.split(".")[
  13155. data.Location.split(".").length - 1
  13156. ].toLocaleUpperCase()
  13157. ) != -1
  13158. ) {
  13159. _ftype = 5;
  13160. } else if (
  13161. b.indexOf(
  13162. data.Location.split(".")[
  13163. data.Location.split(".").length - 1
  13164. ].toLocaleUpperCase()
  13165. ) != -1
  13166. ) {
  13167. _ftype = 4;
  13168. } else {
  13169. _ftype = 1;
  13170. }
  13171. _this.plworkFile.push({
  13172. name: file.name,
  13173. url: data.Location,
  13174. uid: file.uid,
  13175. fileType: _ftype,
  13176. username:
  13177. _this.plworkFile.length > 10
  13178. ? _this.plworkFile.length + 1
  13179. : "0" + (_this.plworkFile.length + 1),
  13180. });
  13181. } else if (type == 7) {
  13182. _this.addCourseWorksGong(i, data.Location, 32);
  13183. } else if (type == 8) {
  13184. _this.addCourseWorksGong(i, data.Location, 57);
  13185. }
  13186. _this.imgChange(null, null, type);
  13187. console.log(data.Location);
  13188. // _this.$message.success('上传成功'+data.Location)
  13189. }
  13190. });
  13191. }
  13192. },
  13193. async beforeUpload3(event, type, i) {
  13194. // this.$message.success('进入上传')
  13195. let file = "";
  13196. let cfindex2 = 0;
  13197. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  13198. file = event.target.files[cfindex];
  13199. var credentials = {
  13200. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13201. secretAccessKey: "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",
  13202. }; //秘钥形式的登录上传
  13203. window.AWS.config.update(credentials);
  13204. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13205. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13206. var _this = this;
  13207. // _this.progress = 0;
  13208. _this.proVisible2 = true;
  13209. var b = [
  13210. "DOC",
  13211. "DOCX",
  13212. "DOCM",
  13213. "DOTM",
  13214. "DOTX",
  13215. "PPTX",
  13216. "PPSX",
  13217. "PPT",
  13218. "PPS",
  13219. "PPTM",
  13220. "POTM",
  13221. "PPAM",
  13222. "POTX",
  13223. "PPSM",
  13224. ];
  13225. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13226. var photoA = [
  13227. "BMP",
  13228. "GIF",
  13229. "PNG",
  13230. "JPGE",
  13231. "JPG",
  13232. "TIF",
  13233. "PCX",
  13234. "TGA",
  13235. "EXIF",
  13236. "FPX",
  13237. "SVG",
  13238. "APNG",
  13239. ];
  13240. if (
  13241. photoA.indexOf(
  13242. file.name
  13243. .split(".")
  13244. [file.name.split(".").length - 1].toLocaleUpperCase()
  13245. ) != -1 &&
  13246. type != 4
  13247. ) {
  13248. // const blob = await imageConversion.compress(file, 0.8)
  13249. file = await this.pngToWhiteBg(file);
  13250. const blob = await imageConversion.compressAccurately(file, 256);
  13251. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13252. file = new File([blob], file.name, { type: file.type });
  13253. }
  13254. if (file) {
  13255. var params = {
  13256. Key:
  13257. file.name.split(".")[0] +
  13258. new Date().getTime() +
  13259. "." +
  13260. file.name.split(".")[file.name.split(".").length - 1],
  13261. ContentType: file.type,
  13262. Body: file,
  13263. "Access-Control-Allow-Credentials": "*",
  13264. ACL: "public-read",
  13265. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13266. var options = {
  13267. // partSize: 2048 * 1024 * 1024,
  13268. partSize: 1024 * 1024 * 1024,
  13269. queueSize: 2,
  13270. leavePartsOnError: true,
  13271. };
  13272. bucket
  13273. .upload(params, options)
  13274. .on("httpUploadProgress", function (evt) {
  13275. //这里可以写进度条
  13276. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13277. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13278. })
  13279. .send(function (err, data) {
  13280. // _this.progress = 100;
  13281. cfindex2++;
  13282. setTimeout(() => {
  13283. if (
  13284. cfindex2 == event.target.files.length - 1 ||
  13285. cfindex2 > event.target.files.length - 1
  13286. ) {
  13287. _this.proVisible2 = false;
  13288. }
  13289. }, 1000);
  13290. if (err) {
  13291. var a = _this.$refs.upload1.uploadFiles;
  13292. a.splice(a.length - 1, a.length);
  13293. _this.$message.error("上传失败");
  13294. } else {
  13295. // _this.$message.success('上传成功')
  13296. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13297. var c = [
  13298. "AVI",
  13299. "NAVI",
  13300. "MPEG",
  13301. "ASF",
  13302. "MOV",
  13303. "WMV",
  13304. "3GP",
  13305. "RM",
  13306. "RMVB",
  13307. "FLV",
  13308. "F4V",
  13309. "H.264",
  13310. "H.265",
  13311. "REAL VIDEO",
  13312. "MKV",
  13313. "WebM",
  13314. "HDDVD",
  13315. "MP4",
  13316. "MPG",
  13317. "M4V",
  13318. "MGV",
  13319. "OGV",
  13320. "QTM",
  13321. "STR",
  13322. "AMC",
  13323. "DVX",
  13324. "EVO",
  13325. "DAT",
  13326. "OGG",
  13327. "OGM",
  13328. ];
  13329. if (type == 1) {
  13330. _this.studyJuri[0].cover.push({
  13331. name: file.name,
  13332. url: data.Location,
  13333. uid: file.uid,
  13334. });
  13335. if (
  13336. c.indexOf(
  13337. _this.studyJuri[0].cover[0].url
  13338. .split(".")
  13339. [
  13340. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13341. ].toLocaleUpperCase()
  13342. ) != -1
  13343. ) {
  13344. _this.fileType = 2;
  13345. } else if (
  13346. b.indexOf(
  13347. _this.studyJuri[0].cover[0].url
  13348. .split(".")
  13349. [
  13350. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13351. ].toLocaleUpperCase()
  13352. ) != -1
  13353. ) {
  13354. _this.fileType = 1;
  13355. } else {
  13356. _this.fileType = 0;
  13357. }
  13358. _this.imgChange(null, null, type);
  13359. } else if (type == 2) {
  13360. _this.upToolImg = data.Location;
  13361. _this.imgChange(null, null, type);
  13362. _this.addCourseWorks(i);
  13363. } else if (type == 4) {
  13364. _this.addPz("3", data.Location);
  13365. } else if (type == 5) {
  13366. _this.addImgDrawImG(data.Location);
  13367. } else if (type == 6) {
  13368. var _ftype = 1;
  13369. if (
  13370. c.indexOf(
  13371. data.Location.split(".")[
  13372. data.Location.split(".").length - 1
  13373. ].toLocaleUpperCase()
  13374. ) != -1
  13375. ) {
  13376. _ftype = 5;
  13377. } else if (
  13378. b.indexOf(
  13379. data.Location.split(".")[
  13380. data.Location.split(".").length - 1
  13381. ].toLocaleUpperCase()
  13382. ) != -1
  13383. ) {
  13384. _ftype = 4;
  13385. } else {
  13386. _ftype = 1;
  13387. }
  13388. _this.plworkFile.push({
  13389. name: file.name,
  13390. url: data.Location,
  13391. uid: file.uid,
  13392. fileType: _ftype,
  13393. username:
  13394. _this.plworkFile.length + 1 > 9
  13395. ? _this.plworkFile.length + 1
  13396. : "0" + (_this.plworkFile.length + 1),
  13397. });
  13398. }
  13399. _this.imgChange(null, null, type);
  13400. console.log(data.Location);
  13401. // _this.$message.success('上传成功'+data.Location)
  13402. }
  13403. });
  13404. }
  13405. }
  13406. },
  13407. beforeUpload2(event, type) {
  13408. var file = event.target.files[0];
  13409. var credentials = {
  13410. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13411. secretAccessKey: "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",
  13412. }; //秘钥形式的登录上传
  13413. window.AWS.config.update(credentials);
  13414. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13415. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13416. var _this = this;
  13417. _this.progress = 0;
  13418. _this.proVisible = true;
  13419. if (file) {
  13420. var params = {
  13421. Key:
  13422. file.name.split(".")[0] +
  13423. new Date().getTime() +
  13424. "." +
  13425. file.name.split(".")[file.name.split(".").length - 1],
  13426. ContentType: file.type,
  13427. Body: file,
  13428. "Access-Control-Allow-Credentials": "*",
  13429. ACL: "public-read",
  13430. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13431. var options = {
  13432. partSize: 2048 * 1024 * 1024,
  13433. queueSize: 2,
  13434. leavePartsOnError: true,
  13435. };
  13436. bucket
  13437. .upload(params, options)
  13438. .on("httpUploadProgress", function (evt) {
  13439. //这里可以写进度条
  13440. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13441. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13442. })
  13443. .send(function (err, data) {
  13444. _this.progress = 100;
  13445. setTimeout(() => {
  13446. _this.proVisible = false;
  13447. }, 1000);
  13448. if (err) {
  13449. var a = _this.$refs.upload1.uploadFiles;
  13450. a.splice(a.length - 1, a.length);
  13451. _this.$message.error("上传失败");
  13452. } else {
  13453. if (type == 2) {
  13454. _this.studyJuri[0].upVedio.push({
  13455. name: file.name,
  13456. url: data.Location,
  13457. uid: file.uid,
  13458. });
  13459. _this.imgChange(null, null, type);
  13460. } else if (type == 3) {
  13461. _this.studyJuri[0].upFile.push({
  13462. name: file.name,
  13463. url: data.Location,
  13464. uid: file.uid,
  13465. });
  13466. _this.imgChange(null, null, type);
  13467. }
  13468. console.log(data.Location);
  13469. }
  13470. });
  13471. }
  13472. },
  13473. allScrell() {
  13474. window.parent.postMessage({ allScreen: this.screenType }, "*");
  13475. },
  13476. nextOrpreSteps(t) {
  13477. if (this.IsFollow && this.tType == 2) {
  13478. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13479. return;
  13480. }
  13481. var b = this.chapInfoList.length - 1;
  13482. if (t == 0) {
  13483. if (this.courseType == 0) {
  13484. if (this.taskCount == 0) {
  13485. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  13486. if (this.IsLookOpen) {
  13487. if (
  13488. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  13489. ) {
  13490. if (
  13491. this.courseDetail.userid != this.userid &&
  13492. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  13493. ) {
  13494. this.$message.error("任务未解锁");
  13495. } else {
  13496. this.$message.error("上一任务未解锁");
  13497. }
  13498. return;
  13499. }
  13500. }
  13501. this.navList[this.courseType].isOpen = false;
  13502. this.courseType = b;
  13503. this.taskCount =
  13504. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13505. .length - 1;
  13506. this.navList[this.courseType].isOpen = true;
  13507. } else {
  13508. this.taskCount--;
  13509. }
  13510. } else {
  13511. if (this.taskCount == 0) {
  13512. this.navList[this.courseType].isOpen = false;
  13513. this.courseType--;
  13514. this.taskCount =
  13515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13516. .length - 1;
  13517. this.navList[this.courseType].isOpen = true;
  13518. } else {
  13519. this.taskCount--;
  13520. }
  13521. }
  13522. } else {
  13523. if (this.courseType == b) {
  13524. if (
  13525. this.taskCount ==
  13526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  13527. 1
  13528. ) {
  13529. this.navList[this.courseType].isOpen = false;
  13530. this.courseType = 0;
  13531. this.taskCount = 0;
  13532. this.navList[this.courseType].isOpen = true;
  13533. } else {
  13534. var bbb = parseInt(this.taskCount) + 1;
  13535. if (
  13536. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  13537. .isLook &&
  13538. this.courseDetail.userid != this.userid &&
  13539. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13540. this.IsLookOpen
  13541. ) {
  13542. this.$message.error("任务未解锁");
  13543. return;
  13544. }
  13545. this.taskCount++;
  13546. if (this.IsLookOpen) {
  13547. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13548. this.taskCount
  13549. ].isLook = true;
  13550. this.addCourseState(3);
  13551. }
  13552. }
  13553. } else {
  13554. if (
  13555. this.taskCount ==
  13556. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  13557. 1
  13558. ) {
  13559. var bbb = parseInt(this.courseType) + 1;
  13560. if (
  13561. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  13562. this.courseDetail.userid != this.userid &&
  13563. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13564. this.IsLookOpen
  13565. ) {
  13566. this.$message.error("任务未解锁");
  13567. return;
  13568. }
  13569. this.navList[this.courseType].isOpen = false;
  13570. this.courseType++;
  13571. this.taskCount = 0;
  13572. this.navList[this.courseType].isOpen = true;
  13573. } else {
  13574. var bbb = parseInt(this.taskCount) + 1;
  13575. if (
  13576. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  13577. .isLook &&
  13578. this.courseDetail.userid != this.userid &&
  13579. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13580. this.IsLookOpen
  13581. ) {
  13582. this.$message.error("任务未解锁");
  13583. return;
  13584. }
  13585. this.taskCount++;
  13586. }
  13587. if (this.IsLookOpen) {
  13588. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13589. this.taskCount
  13590. ].isLook = true;
  13591. this.addCourseState(3);
  13592. }
  13593. }
  13594. // if (
  13595. // this.taskCount ==
  13596. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  13597. // ) {
  13598. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  13599. // } else {
  13600. // this.taskCount++;
  13601. // }
  13602. }
  13603. document.scrollingElement.scrollTop = 0;
  13604. this.showType = 0;
  13605. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13606. // if (this.vedio[this.taskCount].length > 0) {
  13607. // var a =
  13608. // document.getElementsByClassName("box_course")[this.taskCount]
  13609. // .offsetHeight;
  13610. // document.getElementsByClassName("vedioList")[
  13611. // this.taskCount
  13612. // ].style.height = a + "px";
  13613. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  13614. // a - 40 + "px";
  13615. // }
  13616. this.isNoHomeWork = false;
  13617. (this.studyJuri = [
  13618. {
  13619. content: "",
  13620. cover: [],
  13621. upVedio: [],
  13622. upFile: [],
  13623. },
  13624. ]),
  13625. (this.radio = []);
  13626. this.isClickNav = "";
  13627. this.selectPz();
  13628. this.getHomeWork();
  13629. this.getCourseDetail(2);
  13630. this.$forceUpdate();
  13631. },
  13632. openTask(s, n, i) {
  13633. if (this.IsFollow && this.tType == 2) {
  13634. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13635. return;
  13636. }
  13637. if (this.IsLookOpen) {
  13638. if (
  13639. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  13640. this.courseDetail.userid != this.userid &&
  13641. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  13642. ) {
  13643. this.$message.error("任务未解锁");
  13644. return;
  13645. }
  13646. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  13647. if (
  13648. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  13649. .isLook
  13650. ) {
  13651. this.$message.error("上一任务未解锁");
  13652. return;
  13653. }
  13654. } else if (s > this.courseType) {
  13655. if (n > 0) {
  13656. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  13657. this.$message.error("上一任务未解锁");
  13658. return;
  13659. }
  13660. } else {
  13661. if (
  13662. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  13663. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  13664. ].isLook
  13665. ) {
  13666. this.$message.error("上一任务未解锁");
  13667. return;
  13668. }
  13669. }
  13670. }
  13671. }
  13672. this.courseType = s;
  13673. this.navId = i;
  13674. this.taskCount = n;
  13675. if (this.IsLookOpen) {
  13676. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13677. this.taskCount
  13678. ].isLook = true;
  13679. this.addCourseState(3);
  13680. }
  13681. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  13682. this.isCloseList[ci].isClose = 0;
  13683. }
  13684. this.showType = 0;
  13685. this.isNoHomeWork = false;
  13686. (this.studyJuri = [
  13687. {
  13688. content: "",
  13689. cover: [],
  13690. upVedio: [],
  13691. upFile: [],
  13692. },
  13693. ]),
  13694. (this.radio = []);
  13695. document.scrollingElement.scrollTop = 0;
  13696. // setTimeout(() => {
  13697. // let a = document.getElementById(i);
  13698. // if (a.offsetTop - 110 == 0) {
  13699. // window.scrollTo(0, 0);
  13700. // } else {
  13701. // window.scrollTo(0, a.offsetTop);
  13702. // }
  13703. // }, 0);
  13704. this.selectPz();
  13705. this.getHomeWork();
  13706. this.getCourseDetail(2);
  13707. },
  13708. get(i) {
  13709. if (this.IsFollow && this.tType == 2) {
  13710. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13711. return;
  13712. }
  13713. this.navList[i].isOpen = !this.navList[i].isOpen;
  13714. },
  13715. addQuestion() {
  13716. this.answerList.push({
  13717. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  13718. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  13719. });
  13720. let params = [
  13721. {
  13722. uid: this.userid,
  13723. cid: this.id,
  13724. stage: this.courseType,
  13725. task: this.taskCount,
  13726. tool: this.toolindex,
  13727. content: JSON.stringify(this.answerList),
  13728. type: 3,
  13729. },
  13730. ];
  13731. this.ajax
  13732. .post(this.$store.state.api + "addCourseWorks", params)
  13733. .then((res) => {
  13734. this.$message({
  13735. message: "提交成功",
  13736. type: "success",
  13737. });
  13738. this.answerList = [];
  13739. this.answerDialogVisible = false;
  13740. this.selectStudent();
  13741. this.selectSWorks();
  13742. this.selectSLook();
  13743. })
  13744. .catch((err) => {
  13745. this.$message.error("提交失败");
  13746. console.error(err);
  13747. });
  13748. },
  13749. addQuestionTeacher() {
  13750. this.answerList.push({
  13751. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  13752. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  13753. });
  13754. let params = [
  13755. {
  13756. uid: this.sStudent.userid,
  13757. cid: this.id,
  13758. stage: this.courseType,
  13759. task: this.taskCount,
  13760. tool: this.toolindex,
  13761. content: JSON.stringify(this.answerList),
  13762. type: 3,
  13763. ateacher: this.userid,
  13764. },
  13765. ];
  13766. this.ajax
  13767. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13768. .then((res) => {
  13769. this.$message({
  13770. message: "提交成功",
  13771. type: "success",
  13772. });
  13773. this.answerList = [];
  13774. this.questionAnswer = "";
  13775. this.answerDialogVisibleTeacher = false;
  13776. this.selectStudent();
  13777. this.selectSWorks();
  13778. this.selectSLook();
  13779. })
  13780. .catch((err) => {
  13781. this.$message.error("提交失败");
  13782. console.error(err);
  13783. });
  13784. },
  13785. refreshCourse() {
  13786. // window.location.reload();
  13787. this.navList = [];
  13788. this.getCourseDetail(1);
  13789. },
  13790. getCourseDetail(type, gindex) {
  13791. let loading;
  13792. if (type != 2) {
  13793. loading = this.$loading.service({
  13794. background: "rgba(255, 255, 255, 0.7)",
  13795. target: document.querySelector(".student_table"),
  13796. });
  13797. }
  13798. // this.navList[0].isOpen = false;
  13799. // this.navList[this.courseType].isOpen = true;
  13800. // this.courseType = this.courseTypeLine;
  13801. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13802. let params = {
  13803. courseId: this.id,
  13804. };
  13805. this.ajax
  13806. .get(this.$store.state.api + "selectCourseDetail3", params)
  13807. .then((res) => {
  13808. if (type != 2) {
  13809. loading.close();
  13810. if (
  13811. this.courseType >
  13812. JSON.parse(res.data[0][0].chapters).length - 1
  13813. ) {
  13814. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  13815. }
  13816. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  13817. .chapterInfo[0].taskJson;
  13818. var b = [
  13819. "AVI",
  13820. "NAVI",
  13821. "MPEG",
  13822. "ASF",
  13823. "MOV",
  13824. "WMV",
  13825. "3GP",
  13826. "RM",
  13827. "RMVB",
  13828. "FLV",
  13829. "F4V",
  13830. "H.264",
  13831. "H.265",
  13832. "REAL VIDEO",
  13833. "MKV",
  13834. "WebM",
  13835. "HDDVD",
  13836. "MP4",
  13837. "MPG",
  13838. "M4V",
  13839. "MGV",
  13840. "OGV",
  13841. "QTM",
  13842. "STR",
  13843. "AMC",
  13844. "DVX",
  13845. "EVO",
  13846. "DAT",
  13847. "OGG",
  13848. "OGM",
  13849. "MP3",
  13850. ];
  13851. let _chapterData = [];
  13852. for (var i = 0; i < a.length; i++) {
  13853. var c = a[i].chapterData;
  13854. this.vedio[i] = [];
  13855. this.textList[i] = [];
  13856. this.lineList[i] = [];
  13857. this.chapToolList[i] = [];
  13858. this.file[i] = [];
  13859. this.fileC[i] = [];
  13860. _chapterData[i] = c.filter((el) => {
  13861. return el.type != 12;
  13862. });
  13863. this.fileC[i] = c.filter((el) => {
  13864. return el.type == 12;
  13865. });
  13866. // else if (c[j].type == 12) {
  13867. // this.fileC[i].push(c[j]);
  13868. // }
  13869. for (var j = 0; j < c.length; j++) {
  13870. if (c[j].type == 7) {
  13871. this.chapToolList[i].push(c[j]);
  13872. } else if (c[j].type == 8) {
  13873. this.lineList[i].push(c[j]);
  13874. } else if (c[j].type == 6) {
  13875. this.textList[i].push(c[j]);
  13876. } else {
  13877. if (
  13878. b.indexOf(
  13879. c[j].url
  13880. .split(".")
  13881. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  13882. ) != -1
  13883. ) {
  13884. this.vedio[i].push(c[j]);
  13885. } else {
  13886. this.file[i].push(c[j]);
  13887. }
  13888. }
  13889. }
  13890. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13891. d.sources[0].src =
  13892. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  13893. this.playerO[i] = d;
  13894. }
  13895. this.courseDetail = res.data[0][0];
  13896. this.tcid = this.arrayToArray(
  13897. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  13898. this.tcid2 ? this.tcid2.split(",") : []
  13899. ).join(",");
  13900. console.log(this.tcid);
  13901. this.evalua = res.data[0][0].evaId;
  13902. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  13903. this.courseType
  13904. ];
  13905. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  13906. if (this.tcid && res.data[1].length) {
  13907. let _inviteA = [];
  13908. for (var ik = 0; ik < res.data[1].length; ik++) {
  13909. _inviteA.push({
  13910. cid: res.data[1][ik].classid,
  13911. ic: res.data[1][ik].code,
  13912. });
  13913. }
  13914. for (var ik = 0; ik < _inviteA.length; ik++) {
  13915. if (
  13916. this.arrayToArray(
  13917. _inviteA[ik].cid.split(","),
  13918. this.tcid.split(",")
  13919. ).length
  13920. ) {
  13921. this.inviteCode = _inviteA[ik].ic;
  13922. break;
  13923. }
  13924. }
  13925. }
  13926. for (var l = 0; l < this.chapInfoList.length; l++) {
  13927. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13928. for (var m = 0; m < w.length; m++) {
  13929. w[m].id = l + "-" + m;
  13930. }
  13931. }
  13932. if (
  13933. _chapterData[this.taskCount].length &&
  13934. _chapterData[this.taskCount][0].type == 2
  13935. ) {
  13936. this.showType = 0;
  13937. } else {
  13938. if (_chapterData[this.taskCount].length > 0) {
  13939. let _url = _chapterData[this.taskCount][0].url;
  13940. if (_chapterData[this.taskCount][0].type == 8) {
  13941. this.showType = 2;
  13942. if (
  13943. _url.indexOf("https://") == -1 &&
  13944. _url.indexOf("http://") == -1
  13945. ) {
  13946. _url = "https://" + _url;
  13947. }
  13948. this.pptImgUrl1 = _url;
  13949. } else if (_chapterData[this.taskCount][0].type == 3) {
  13950. if (
  13951. _url
  13952. .split(".")
  13953. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13954. ) {
  13955. this.showType = 3;
  13956. this.pptImgUrl1 = _url;
  13957. } else if (
  13958. this.isAssetTypeAnImage(
  13959. _url
  13960. .split(".")
  13961. [_url.split(".").length - 1].toLocaleLowerCase()
  13962. )
  13963. ) {
  13964. this.showType = 4;
  13965. this.pptImgUrl1 = _url;
  13966. } else {
  13967. this.showType = 2;
  13968. this.pptImgUrl1 =
  13969. "https://view.officeapps.live.com/op/view.aspx?src=" +
  13970. _url;
  13971. }
  13972. } else if (_chapterData[this.taskCount][0].type == 13) {
  13973. this.showType = 4;
  13974. this.pptImgUrl1 = _url;
  13975. } else if (_chapterData[this.taskCount][0].type == 6) {
  13976. this.showType = 1;
  13977. this.text = this.textList[this.taskCount][0];
  13978. }
  13979. }
  13980. }
  13981. this.isClickNav = 0;
  13982. if (
  13983. !_chapterData[this.taskCount].length ||
  13984. _chapterData[this.taskCount][0].type == 12
  13985. ) {
  13986. this.isClickNav = "";
  13987. this.showType = "";
  13988. }
  13989. this.vChapterData = _chapterData;
  13990. } else {
  13991. this.showType = 0;
  13992. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  13993. .chapterInfo[0].taskJson;
  13994. var b = [
  13995. "AVI",
  13996. "NAVI",
  13997. "MPEG",
  13998. "ASF",
  13999. "MOV",
  14000. "WMV",
  14001. "3GP",
  14002. "RM",
  14003. "RMVB",
  14004. "FLV",
  14005. "F4V",
  14006. "H.264",
  14007. "H.265",
  14008. "REAL VIDEO",
  14009. "MKV",
  14010. "WebM",
  14011. "HDDVD",
  14012. "MP4",
  14013. "MPG",
  14014. "M4V",
  14015. "MGV",
  14016. "OGV",
  14017. "QTM",
  14018. "STR",
  14019. "AMC",
  14020. "DVX",
  14021. "EVO",
  14022. "DAT",
  14023. "OGG",
  14024. "OGM",
  14025. "MP3",
  14026. ];
  14027. let _chapterData = [];
  14028. for (var i = 0; i < a.length; i++) {
  14029. var c = a[i].chapterData;
  14030. this.vedio[i] = [];
  14031. this.textList[i] = [];
  14032. this.lineList[i] = [];
  14033. this.chapToolList[i] = [];
  14034. this.file[i] = [];
  14035. this.fileC[i] = [];
  14036. _chapterData[i] = c.filter((el) => {
  14037. return el.type != 12;
  14038. });
  14039. this.fileC[i] = c.filter((el) => {
  14040. return el.type == 12;
  14041. });
  14042. for (var j = 0; j < c.length; j++) {
  14043. if (c[j].type == 7) {
  14044. this.chapToolList[i].push(c[j]);
  14045. } else if (c[j].type == 8) {
  14046. this.lineList[i].push(c[j]);
  14047. } else if (c[j].type == 6) {
  14048. this.textList[i].push(c[j]);
  14049. } else {
  14050. if (
  14051. b.indexOf(
  14052. c[j].url
  14053. .split(".")
  14054. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14055. ) != -1
  14056. ) {
  14057. this.vedio[i].push(c[j]);
  14058. } else {
  14059. this.file[i].push(c[j]);
  14060. }
  14061. }
  14062. }
  14063. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14064. d.sources[0].src =
  14065. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14066. this.playerO[i] = d;
  14067. }
  14068. if (
  14069. _chapterData[this.taskCount].length &&
  14070. _chapterData[this.taskCount][0].type == 2
  14071. ) {
  14072. this.showType = 0;
  14073. } else {
  14074. if (_chapterData[this.taskCount].length > 0) {
  14075. let _url = _chapterData[this.taskCount][0].url;
  14076. if (_chapterData[this.taskCount][0].type == 8) {
  14077. this.showType = 2;
  14078. if (
  14079. _url.indexOf("https://") == -1 &&
  14080. _url.indexOf("http://") == -1
  14081. ) {
  14082. _url = "https://" + _url;
  14083. }
  14084. this.pptImgUrl1 = _url;
  14085. } else if (_chapterData[this.taskCount][0].type == 3) {
  14086. if (
  14087. _url
  14088. .split(".")
  14089. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14090. ) {
  14091. this.showType = 3;
  14092. this.pptImgUrl1 = _url;
  14093. } else if (
  14094. this.isAssetTypeAnImage(
  14095. _url
  14096. .split(".")
  14097. [_url.split(".").length - 1].toLocaleLowerCase()
  14098. )
  14099. ) {
  14100. this.showType = 4;
  14101. this.pptImgUrl1 = _url;
  14102. } else {
  14103. this.showType = 2;
  14104. this.pptImgUrl1 =
  14105. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14106. _url;
  14107. }
  14108. } else if (_chapterData[this.taskCount][0].type == 13) {
  14109. this.showType = 4;
  14110. this.pptImgUrl1 = _url;
  14111. } else if (_chapterData[this.taskCount][0].type == 6) {
  14112. this.showType = 1;
  14113. this.text = this.textList[this.taskCount][0];
  14114. }
  14115. }
  14116. }
  14117. this.isClickNav = 0;
  14118. if (
  14119. !_chapterData[this.taskCount].length ||
  14120. _chapterData[this.taskCount][0].type == 12
  14121. ) {
  14122. this.isClickNav = "";
  14123. this.showType = "";
  14124. }
  14125. this.vChapterData = _chapterData;
  14126. this.$forceUpdate();
  14127. }
  14128. // else {
  14129. // this.courseDetail = res.data[0][0];
  14130. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14131. // }
  14132. let _this = this;
  14133. if (_this.timer) {
  14134. clearInterval(_this.timer);
  14135. _this.timer = null;
  14136. }
  14137. if (_this.tcid) {
  14138. _this.getCourseGroup(gindex);
  14139. } else {
  14140. _this.selectSWorks(gindex);
  14141. }
  14142. _this.selectStudent();
  14143. _this.selectSLook();
  14144. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14145. _this.setCTask();
  14146. }
  14147. if (_this.dialogVisibleGroup) {
  14148. _this.groupJson =
  14149. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14150. _this.taskCount
  14151. ].toolChoose[_this.toolindex].groupJson;
  14152. }
  14153. _this.$nextTick(() => {
  14154. setTimeout(() => {
  14155. _this.checkEva();
  14156. }, 1000);
  14157. });
  14158. _this.timer = setInterval(function () {
  14159. // _this.getCourseDetail(2);
  14160. if (_this.tcid) {
  14161. _this.getCourseGroup(gindex);
  14162. } else {
  14163. _this.selectSWorks(gindex);
  14164. }
  14165. _this.selectStudent();
  14166. _this.selectSLook();
  14167. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14168. _this.setCTask();
  14169. }
  14170. if (_this.dialogVisibleGroup) {
  14171. _this.groupJson =
  14172. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14173. _this.taskCount
  14174. ].toolChoose[_this.toolindex].groupJson;
  14175. }
  14176. if (_this.tType == 4 || _this.ispzType == 4) {
  14177. _this.selectPz();
  14178. }
  14179. }, 5000);
  14180. _this.$nextTick(function () {
  14181. setTimeout(() => {
  14182. // var a =
  14183. // document.getElementsByClassName("box_course")[0].offsetHeight;
  14184. // document.getElementsByClassName("vedioList")[0].style.height =
  14185. // a + "px";
  14186. // document.getElementsByClassName("navBox")[0].style.height =
  14187. // a - 40 + "px";
  14188. // if (_this.vedio[_this.taskCount].length > 0) {
  14189. // _this.vedioTime = [];
  14190. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  14191. // _this.vedioTime[i] = document.getElementsByClassName(
  14192. // "vjs-duration-display"
  14193. // )[i].textContent;
  14194. // }
  14195. // }
  14196. }, 1000);
  14197. });
  14198. })
  14199. .catch((err) => {
  14200. loading.close();
  14201. console.error(err);
  14202. });
  14203. },
  14204. getCourseGroup(gindex) {
  14205. let params = {
  14206. cid: this.id,
  14207. classid: this.tcid ? this.tcid : "1",
  14208. };
  14209. this.ajax
  14210. .get(this.$store.state.api + "getCourseGroup", params)
  14211. .then((res) => {
  14212. if (res.data && res.data[0].length) {
  14213. if (!this.isGroup) {
  14214. let courseGroup = JSON.parse(res.data[0][0].group);
  14215. courseGroup.group = courseGroup.group.filter((el) => {
  14216. el.works = [];
  14217. return el;
  14218. });
  14219. if (courseGroup.isopen == 2) {
  14220. this.isGroup = false;
  14221. this.selectSWorks(gindex);
  14222. return;
  14223. }
  14224. this.courseGroup = courseGroup;
  14225. let groupPerson = res.data[1];
  14226. let group = JSON.parse(res.data[0][0].group).group;
  14227. let courseGroupStudent = {};
  14228. let courseGroupStudentUid = {};
  14229. for (var i = 0; i < group.length; i++) {
  14230. courseGroupStudent[group[i].id] = [];
  14231. courseGroupStudentUid[group[i].id] = [];
  14232. for (var j = 0; j < groupPerson.length; j++) {
  14233. if (groupPerson[j].groupCid == group[i].id) {
  14234. courseGroupStudent[group[i].id].push(groupPerson[j]);
  14235. courseGroupStudentUid[group[i].id].push(
  14236. groupPerson[j].userid
  14237. );
  14238. }
  14239. }
  14240. }
  14241. this.courseGroupStudent = courseGroupStudent;
  14242. this.courseGroupStudentUid = courseGroupStudentUid;
  14243. }
  14244. if (this.courseGroup.isopen == 2) {
  14245. this.isGroup = false;
  14246. } else {
  14247. this.isGroup = true;
  14248. }
  14249. this.selectSWorks(gindex);
  14250. } else {
  14251. this.selectSWorks(gindex);
  14252. this.isGroup = false;
  14253. }
  14254. })
  14255. .catch((err) => {
  14256. // this.$message.error("网络不佳");
  14257. console.error(err);
  14258. });
  14259. },
  14260. setOperationTime() {
  14261. let _this = this;
  14262. if (_this.opertimer) {
  14263. clearInterval(_this.opertimer);
  14264. _this.opertimer = null;
  14265. }
  14266. _this.opertimer = setInterval(() => {
  14267. _this.setoTime("600");
  14268. }, 600000);
  14269. },
  14270. setoTime(time) {
  14271. let params = [
  14272. {
  14273. uid: this.userid,
  14274. cid: this.id,
  14275. type: "2",
  14276. time: time,
  14277. },
  14278. ];
  14279. this.ajax
  14280. .post(this.$store.state.api + "addOperationTimeT2", params)
  14281. .then((res) => {})
  14282. .catch((err) => {
  14283. console.error(err);
  14284. });
  14285. },
  14286. addPz(type, content) {
  14287. if (type == "1" && this.pzConText == "") {
  14288. this.$message.error("批注不能为空!");
  14289. return;
  14290. }
  14291. let params = [
  14292. {
  14293. cid: this.id,
  14294. uid: this.userid,
  14295. s: this.courseType,
  14296. t: this.taskCount,
  14297. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  14298. type: type,
  14299. },
  14300. ];
  14301. this.ajax
  14302. .post(this.$store.state.api + "addPz2", params)
  14303. .then((res) => {
  14304. this.$message({
  14305. message: "添加成功",
  14306. type: "success",
  14307. });
  14308. this.pzConText = "";
  14309. this.addPzDialog = false;
  14310. this.selectPz();
  14311. })
  14312. .catch((err) => {
  14313. this.$message.error("添加失败");
  14314. console.error(err);
  14315. });
  14316. },
  14317. deletePz(id) {
  14318. this.$confirm("确定删除此批注吗?", "提示", {
  14319. confirmButtonText: "确定",
  14320. cancelButtonText: "取消",
  14321. type: "warning",
  14322. })
  14323. .then(() => {
  14324. let params = [
  14325. {
  14326. id: id,
  14327. },
  14328. ];
  14329. this.ajax
  14330. .post(this.$store.state.api + "deletePz", params)
  14331. .then((res) => {
  14332. this.$message({
  14333. message: "删除成功",
  14334. type: "success",
  14335. });
  14336. this.selectPz();
  14337. })
  14338. .catch((err) => {
  14339. this.$message.error("网络异常");
  14340. console.error(err);
  14341. });
  14342. })
  14343. .catch(() => {});
  14344. },
  14345. setPz() {
  14346. if (this.ispzType == 4) {
  14347. this.ispzType = 0;
  14348. this.pzDialog = false;
  14349. return;
  14350. }
  14351. this.ispzType = 4;
  14352. this.pzDialog = true;
  14353. this.selectPz();
  14354. },
  14355. selectPz() {
  14356. let params = {
  14357. cid: this.id,
  14358. s: this.courseType,
  14359. t: this.taskCount,
  14360. };
  14361. this.ajax
  14362. .get(this.$store.state.api + "selectPzList", params)
  14363. .then((res) => {
  14364. this.pzList = res.data[0];
  14365. })
  14366. .catch((err) => {
  14367. console.error(err);
  14368. });
  14369. },
  14370. updateSLook() {
  14371. let params = {
  14372. sopen: this.sIsOpen == false ? 1 : 2,
  14373. cid: this.id,
  14374. };
  14375. this.ajax
  14376. .get(this.$store.state.api + "updateCourseSLook", params)
  14377. .then((res) => {
  14378. if (this.sIsOpen == true) {
  14379. this.$message({
  14380. message: "权限设置成功",
  14381. type: "success",
  14382. });
  14383. } else {
  14384. this.$message({
  14385. message: "权限关闭成功",
  14386. type: "success",
  14387. });
  14388. }
  14389. })
  14390. .catch((err) => {
  14391. console.error(err);
  14392. });
  14393. },
  14394. updateFollow() {
  14395. let params = [
  14396. {
  14397. sopen: this.IsFollow == false ? 1 : 2,
  14398. cid: this.id,
  14399. },
  14400. ];
  14401. this.ajax
  14402. .post(this.$store.state.api + "updateCourseFollow", params)
  14403. .then((res) => {
  14404. if (this.IsFollow == true) {
  14405. this.$message({
  14406. message: "开启成功",
  14407. type: "success",
  14408. });
  14409. } else {
  14410. this.$message({
  14411. message: "关闭成功",
  14412. type: "success",
  14413. });
  14414. }
  14415. this.setCTask();
  14416. })
  14417. .catch((err) => {
  14418. console.error(err);
  14419. });
  14420. },
  14421. setCTask() {
  14422. let params = [
  14423. {
  14424. sopen: this.courseType + "-" + this.taskCount,
  14425. cid: this.id,
  14426. },
  14427. ];
  14428. this.ajax
  14429. .post(this.$store.state.api + "updateCourseFollowC", params)
  14430. .then((res) => {})
  14431. .catch((err) => {
  14432. console.error(err);
  14433. });
  14434. },
  14435. updateLookOpen() {
  14436. let params = [
  14437. {
  14438. sopen: this.IsLookOpen == false ? 1 : 2,
  14439. cid: this.id,
  14440. },
  14441. ];
  14442. this.ajax
  14443. .post(this.$store.state.api + "updateCourseLookOpen", params)
  14444. .then((res) => {
  14445. if (this.IsLookOpen == true) {
  14446. // if (this.courseType != 0 && this.taskCount != 0) {
  14447. // this.openTask(0, 0, "0-0");
  14448. // }
  14449. this.$message({
  14450. message: "权限设置成功",
  14451. type: "success",
  14452. });
  14453. } else {
  14454. this.$message({
  14455. message: "权限关闭成功",
  14456. type: "success",
  14457. });
  14458. }
  14459. this.getCourseState(2);
  14460. })
  14461. .catch((err) => {
  14462. console.error(err);
  14463. });
  14464. },
  14465. selectSLook() {
  14466. let params = {
  14467. cid: this.id,
  14468. };
  14469. this.ajax
  14470. .get(this.$store.state.api + "selectCourseSLook", params)
  14471. .then((res) => {
  14472. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  14473. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  14474. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  14475. if (!this.IsLookOpen) {
  14476. this.setNavList();
  14477. } else {
  14478. this.getCourseState(1);
  14479. }
  14480. if (this.IsFollow && this.tType == 2) {
  14481. this.setContent2(false);
  14482. let _followC = res.data[0][0].followC.split("-");
  14483. if (
  14484. this.courseType != _followC[0] ||
  14485. this.taskCount != _followC[1]
  14486. ) {
  14487. this.navList[this.courseType].isOpen = false;
  14488. this.courseType = _followC[0];
  14489. this.navList[this.courseType].isOpen = true;
  14490. this.taskCount = parseInt(_followC[1]);
  14491. this.navId = res.data[0][0].followC;
  14492. document.scrollingElement.scrollTop = 0;
  14493. this.getCourseDetail(2);
  14494. }
  14495. }
  14496. })
  14497. .catch((err) => {
  14498. console.error(err);
  14499. });
  14500. },
  14501. setNavList() {
  14502. if (this.navList.length == 0) {
  14503. this.navList = [];
  14504. for (var l = 0; l < this.chapInfoList.length; l++) {
  14505. var q = this.chapInfoList[l].dyName;
  14506. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14507. var e;
  14508. this.navList.push({
  14509. dyName: q,
  14510. isOpen: l === 0 ? true : false,
  14511. task: [],
  14512. });
  14513. for (var r = 0; r < w.length; r++) {
  14514. e = w[r].task;
  14515. if (this.chapInfoList[l].easy == 1) {
  14516. this.navList[l].task.push({
  14517. taskName: q,
  14518. id: l + "-" + r,
  14519. isLook: w[r].isLook,
  14520. });
  14521. } else {
  14522. this.navList[l].task.push({
  14523. taskName: e,
  14524. id: l + "-" + r,
  14525. isLook: w[r].isLook,
  14526. });
  14527. }
  14528. // this.navId = this.navId ? this.navId : l + "-" + r;
  14529. // this.navId = l + "-" + r;
  14530. }
  14531. }
  14532. this.navList[0].isOpen = false;
  14533. this.navList[this.courseType].isOpen = true;
  14534. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14535. } else {
  14536. this.setNavList2();
  14537. }
  14538. },
  14539. setNavList2() {
  14540. for (var l = 0; l < this.chapInfoList.length; l++) {
  14541. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14542. for (var r = 0; r < w.length; r++) {
  14543. this.navList[l].task[r].isLook = w[r].isLook;
  14544. }
  14545. }
  14546. if (
  14547. this.IsLookOpen &&
  14548. !this.navList[this.courseType].task[this.taskCount].isLook
  14549. ) {
  14550. this.openTask(0, 0, "0-0");
  14551. }
  14552. this.$forceUpdate();
  14553. },
  14554. getCourseState(type) {
  14555. let params = {
  14556. cid: this.id,
  14557. };
  14558. this.ajax
  14559. .get(this.$store.state.api + "getCourseState", params)
  14560. .then((res) => {
  14561. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  14562. this.chapInfoList = JSON.parse(res.data[0][0].state);
  14563. this.setNavList();
  14564. this.$forceUpdate();
  14565. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  14566. this.addCourseState(2);
  14567. } else {
  14568. this.addCourseState(1);
  14569. }
  14570. })
  14571. .catch((err) => {
  14572. console.error(err);
  14573. });
  14574. },
  14575. addCourseState(type) {
  14576. let _state = this.chapInfoList;
  14577. // this.courseType this.taskCount
  14578. if (type == 1 || type == 2) {
  14579. for (var i = 0; i < _state.length; i++) {
  14580. let el = _state[i].chapterInfo[0].taskJson;
  14581. for (var j = 0; j < el.length; j++) {
  14582. // if (i == 0 && j == 0) {
  14583. // el[j].isLook = true;
  14584. // } else {
  14585. // el[j].isLook = false;
  14586. // }
  14587. if (
  14588. this.courseType > i ||
  14589. (this.courseType == i && this.taskCount + 1 > j)
  14590. ) {
  14591. el[j].isLook = true;
  14592. } else {
  14593. el[j].isLook = false;
  14594. }
  14595. }
  14596. }
  14597. }
  14598. let params = [
  14599. {
  14600. cid: this.id,
  14601. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  14602. },
  14603. ];
  14604. this.ajax
  14605. .post(
  14606. this.$store.state.api +
  14607. (type == 1 ? "addCourseState" : "updateCourseSate"),
  14608. params
  14609. )
  14610. .then((res) => {
  14611. if (this.IsLookOpen) {
  14612. this.setNavList();
  14613. }
  14614. if (type == 3 && type == 2) {
  14615. this.getCourseState(1);
  14616. }
  14617. })
  14618. .catch((err) => {
  14619. console.error(err);
  14620. });
  14621. },
  14622. getHomeWork() {
  14623. let params = {
  14624. cid: this.id,
  14625. stage: this.courseType,
  14626. task: this.taskCount,
  14627. uid: this.userid,
  14628. };
  14629. this.ajax
  14630. .get(this.$store.state.api + "selectWork", params)
  14631. .then((res) => {
  14632. if (res.data[0].length > 0) {
  14633. this.studyJuri = JSON.parse(res.data[0][0].content);
  14634. this.isNoHomeWork = true;
  14635. }
  14636. })
  14637. .catch((err) => {
  14638. console.error(err);
  14639. });
  14640. },
  14641. isAssetTypeAnImage(ext) {
  14642. return (
  14643. [
  14644. "png",
  14645. "jpg",
  14646. "jpeg",
  14647. "bmp",
  14648. "gif",
  14649. "webp",
  14650. "psd",
  14651. "svg",
  14652. "tiff",
  14653. ].indexOf(ext) !== -1
  14654. );
  14655. },
  14656. switchVideo(media) {
  14657. this.playerO = {};
  14658. this.playerOptions.poster = "";
  14659. this.playerOptions.sources[0].src = media;
  14660. this.playerO = this.playerOptions;
  14661. },
  14662. onPlayerPlay() {},
  14663. onPlayerTimeupdate(player) {
  14664. let gklog = player.cache_.currentTime; //当前播放的秒数
  14665. let a = player.cache_.duration; //视频的总时长
  14666. let gklog2 = parseInt(gklog);
  14667. // if(gklog2 == '3'){
  14668. // player.pause()
  14669. // setTimeout(()=>{
  14670. // player.currentTime(gklog2+1)
  14671. // player.play()
  14672. // },1000)
  14673. // }
  14674. console.log(" onPlayerTimeupdate!", gklog);
  14675. console.log(" onPlayerTimeupdate!", gklog2);
  14676. },
  14677. lookVedio(u, i) {
  14678. this.isClickNav = "";
  14679. // this.playerOptions.sources[0].src = u;
  14680. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14681. d.sources[0].src = u;
  14682. this.playerO[this.taskCount] = d;
  14683. this.showType = 0;
  14684. // this.isClickNav = "video" + i;
  14685. this.isClickNav = i;
  14686. this.$forceUpdate();
  14687. },
  14688. lookText(i, t) {
  14689. this.isClickNav = "";
  14690. // this.text = this.textList[i][t];
  14691. this.text = this.vChapterData[i][t];
  14692. // this.dialogVisible1 = true;
  14693. this.showType = 1;
  14694. // this.isClickNav = "text" + t;
  14695. this.isClickNav = t;
  14696. },
  14697. lookTools(i, t) {
  14698. this.chapTools = this.chapToolList[i][t];
  14699. this.dialogVisible2 = true;
  14700. },
  14701. openFile(f) {
  14702. this.pptImgUrl = "";
  14703. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14704. if (
  14705. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  14706. -1
  14707. ) {
  14708. this.pptImgUrl =
  14709. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  14710. this.showPDF = false;
  14711. this.dialogVisible3 = true;
  14712. } else if (
  14713. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14714. ) {
  14715. this.pptImgUrl = f;
  14716. this.showPDF = true;
  14717. this.dialogVisible3 = true;
  14718. }
  14719. },
  14720. openTable(f) {
  14721. this.tableJson = JSON.parse(f.works);
  14722. this.dialogVisibleTable2 = true;
  14723. },
  14724. openWord(f) {
  14725. this.tableJson = JSON.parse(f.works);
  14726. this.dialogVisibleTable3 = true;
  14727. },
  14728. doUrl(url, i) {
  14729. this.isClickNav = "";
  14730. this.pptImgUrl1 = "";
  14731. this.showType = 2;
  14732. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  14733. url = "https://" + url;
  14734. }
  14735. this.pptImgUrl1 = "";
  14736. setTimeout(() => {
  14737. this.pptImgUrl1 = url;
  14738. }, 500);
  14739. // this.isClickNav = "line" + i;
  14740. this.isClickNav = i;
  14741. this.$forceUpdate();
  14742. },
  14743. checkPhoto(f, i) {
  14744. this.showType = 4;
  14745. this.pptImgUrl1 = f.url;
  14746. this.isClickNav = i;
  14747. this.$forceUpdate();
  14748. },
  14749. downFile(f, i) {
  14750. this.isClickNav = "";
  14751. this.pptImgUrl1 = "";
  14752. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  14753. if (
  14754. a.indexOf(
  14755. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  14756. ) != -1
  14757. ) {
  14758. this.pptImgUrl1 =
  14759. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  14760. // this.dialogVisible3 = true;
  14761. this.showType = 2;
  14762. } else if (
  14763. this.isAssetTypeAnImage(
  14764. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  14765. )
  14766. ) {
  14767. this.showType = 4;
  14768. this.pptImgUrl1 = f.url;
  14769. } else if (
  14770. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  14771. "PDF"
  14772. ) {
  14773. this.pptImgUrl1 = f.url;
  14774. // this.dialogVisible3 = true;
  14775. this.showType = 3;
  14776. } else {
  14777. window.open(this.file[i].url);
  14778. }
  14779. // this.isClickNav = "word" + i;
  14780. this.isClickNav = i;
  14781. },
  14782. downFileList(i) {
  14783. window.open(this.noImgList[i].url);
  14784. },
  14785. openAddWork() {
  14786. this.dialogVisible = true;
  14787. },
  14788. addBzWorks() {
  14789. let params = [
  14790. {
  14791. uid: this.userid,
  14792. cid: this.id,
  14793. stage: this.courseType,
  14794. task: this.taskCount,
  14795. tool: this.toolindex,
  14796. content: JSON.stringify(this.eScore),
  14797. type: 6,
  14798. },
  14799. ];
  14800. this.ajax
  14801. .post(this.$store.state.api + "addCourseWorks", params)
  14802. .then((res) => {
  14803. this.$message({
  14804. message: "提交成功",
  14805. type: "success",
  14806. });
  14807. this.eScore = { eBzText: "", eStar: [] };
  14808. this.studentEvalDialogVisible = false;
  14809. this.selectSWorks();
  14810. })
  14811. .catch((err) => {
  14812. this.$message.error("提交失败");
  14813. console.error(err);
  14814. });
  14815. },
  14816. addBzWorksTeacher() {
  14817. let params = [
  14818. {
  14819. uid: this.sStudent.userid,
  14820. cid: this.id,
  14821. stage: this.courseType,
  14822. task: this.taskCount,
  14823. tool: this.toolindex,
  14824. content: JSON.stringify(this.eScore),
  14825. type: 6,
  14826. },
  14827. ];
  14828. this.ajax
  14829. .post(this.$store.state.api + "addCourseWorks", params)
  14830. .then((res) => {
  14831. this.$message({
  14832. message: "提交成功",
  14833. type: "success",
  14834. });
  14835. this.eScore = { eBzText: "", eStar: [] };
  14836. this.studentEvalDialogVisibleTeacher = false;
  14837. this.selectSWorks();
  14838. })
  14839. .catch((err) => {
  14840. this.$message.error("提交失败");
  14841. console.error(err);
  14842. });
  14843. },
  14844. addStudentAsk() {
  14845. if (!this.radio.length) {
  14846. this.$message.error("请选择选项");
  14847. return;
  14848. }
  14849. for (var i = 0; i < this.askJson.askCount; i++) {
  14850. if (
  14851. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14852. (this.radio[i] !== 0 && !this.radio[i])
  14853. ) {
  14854. this.$message.error("请选择选项");
  14855. return;
  14856. }
  14857. }
  14858. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  14859. let params = [
  14860. {
  14861. uid: this.userid,
  14862. cid: this.id,
  14863. stage: this.courseType,
  14864. task: this.taskCount,
  14865. tool: this.toolindex,
  14866. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14867. type: 2,
  14868. },
  14869. ];
  14870. this.ajax
  14871. .post(this.$store.state.api + "addCourseWorks", params)
  14872. .then((res) => {
  14873. this.$message({
  14874. message: "提交成功",
  14875. type: "success",
  14876. });
  14877. this.askList = [];
  14878. this.dialogVisible5 = false;
  14879. this.selectStudent();
  14880. this.selectSWorks();
  14881. this.selectSLook();
  14882. })
  14883. .catch((err) => {
  14884. this.$message.error("提交失败");
  14885. console.error(err);
  14886. });
  14887. },
  14888. addStudentAskTeacher() {
  14889. if (!this.radio.length) {
  14890. this.$message.error("请选择选项");
  14891. return;
  14892. }
  14893. for (var i = 0; i < this.askJson.askCount; i++) {
  14894. if (
  14895. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14896. (this.radio[i] !== 0 && !this.radio[i])
  14897. ) {
  14898. this.$message.error("请选择选项");
  14899. return;
  14900. }
  14901. }
  14902. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  14903. let params = [
  14904. {
  14905. uid: this.sStudent.userid,
  14906. cid: this.id,
  14907. stage: this.courseType,
  14908. task: this.taskCount,
  14909. tool: this.toolindex,
  14910. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14911. type: 2,
  14912. },
  14913. ];
  14914. this.ajax
  14915. .post(this.$store.state.api + "addCourseWorks", params)
  14916. .then((res) => {
  14917. this.$message({
  14918. message: "提交成功",
  14919. type: "success",
  14920. });
  14921. this.askList = [];
  14922. this.dialogVisible5Teacher = false;
  14923. this.selectStudent();
  14924. this.selectSWorks();
  14925. this.selectSLook();
  14926. })
  14927. .catch((err) => {
  14928. this.$message.error("提交失败");
  14929. console.error(err);
  14930. });
  14931. },
  14932. addStudentTest() {
  14933. if (!this.radio.length) {
  14934. this.$message.error("请选择选项");
  14935. return;
  14936. }
  14937. for (var i = 0; i < this.testJson.testCount; i++) {
  14938. if (
  14939. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14940. (this.radio[i] !== 0 && !this.radio[i])
  14941. ) {
  14942. this.$message.error("请选择选项");
  14943. return;
  14944. }
  14945. }
  14946. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  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.askList).replaceAll(/%/g, "%25"),
  14955. type: 8,
  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.askList = [];
  14966. this.dialogVisibleChoice = false;
  14967. this.selectStudent();
  14968. this.selectSWorks();
  14969. this.selectSLook();
  14970. })
  14971. .catch((err) => {
  14972. this.$message.error("提交失败");
  14973. console.error(err);
  14974. });
  14975. },
  14976. addStudentTestTeacher() {
  14977. if (!this.radio.length) {
  14978. this.$message.error("请选择选项");
  14979. return;
  14980. }
  14981. for (var i = 0; i < this.testJson.testCount; i++) {
  14982. if (
  14983. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14984. (this.radio[i] !== 0 && !this.radio[i])
  14985. ) {
  14986. this.$message.error("请选择选项");
  14987. return;
  14988. }
  14989. }
  14990. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  14991. let params = [
  14992. {
  14993. uid: this.sStudent.userid,
  14994. cid: this.id,
  14995. stage: this.courseType,
  14996. task: this.taskCount,
  14997. tool: this.toolindex,
  14998. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14999. type: 8,
  15000. },
  15001. ];
  15002. this.ajax
  15003. .post(this.$store.state.api + "addCourseWorks", params)
  15004. .then((res) => {
  15005. this.$message({
  15006. message: "提交成功",
  15007. type: "success",
  15008. });
  15009. this.askList = [];
  15010. this.dialogVisibleChoiceTeacher = false;
  15011. this.selectStudent();
  15012. this.selectSWorks();
  15013. this.selectSLook();
  15014. })
  15015. .catch((err) => {
  15016. this.$message.error("提交失败");
  15017. console.error(err);
  15018. });
  15019. },
  15020. addWork() {
  15021. if (this.studyJuri[0].content == "") {
  15022. this.$message.error("请将信息填写完整");
  15023. return;
  15024. } else if (this.studyJuri[0].cover.length == 0) {
  15025. this.$message.error("请将信息填写完整");
  15026. return;
  15027. } else if (this.studyJuri[0].upVedio.length == 0) {
  15028. this.$message.error("请将信息填写完整");
  15029. return;
  15030. }
  15031. if (this.isNoHomeWork) {
  15032. this.$confirm(
  15033. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15034. "提示",
  15035. {
  15036. confirmButtonText: "确定",
  15037. cancelButtonText: "取消",
  15038. type: "warning",
  15039. }
  15040. )
  15041. .then(() => {
  15042. let params = [
  15043. {
  15044. uid: this.userid,
  15045. cid: this.id,
  15046. stage: this.courseType,
  15047. task: this.taskCount,
  15048. content: JSON.stringify(this.studyJuri),
  15049. },
  15050. ];
  15051. this.ajax
  15052. .post(this.$store.state.api + "addWorks", params)
  15053. .then((res) => {
  15054. this.$message({
  15055. message: "提交成功",
  15056. type: "success",
  15057. });
  15058. this.isNoHomeWork = true;
  15059. this.dialogVisible = false;
  15060. })
  15061. .catch((err) => {
  15062. this.$message.error("提交失败");
  15063. console.error(err);
  15064. });
  15065. })
  15066. .catch(() => {});
  15067. } else {
  15068. let params = [
  15069. {
  15070. uid: this.userid,
  15071. cid: this.id,
  15072. stage: this.courseType,
  15073. task: this.taskCount,
  15074. content: JSON.stringify(this.studyJuri),
  15075. },
  15076. ];
  15077. this.ajax
  15078. .post(this.$store.state.api + "addWorks", params)
  15079. .then((res) => {
  15080. this.$message({
  15081. message: "提交成功",
  15082. type: "success",
  15083. });
  15084. this.isNoHomeWork = true;
  15085. this.dialogVisible = false;
  15086. })
  15087. .catch((err) => {
  15088. this.$message.error("提交失败");
  15089. console.error(err);
  15090. });
  15091. }
  15092. },
  15093. selectCount() {
  15094. let params = {
  15095. cid: this.id,
  15096. chid: this.courseType,
  15097. uid: this.userid,
  15098. };
  15099. this.ajax
  15100. .get(this.$store.state.api + "selectToolsCount", params)
  15101. .then((res) => {
  15102. for (var i = 0; i < res.data[0].length; i++) {
  15103. if (res.data[0][i].tools == 1) {
  15104. this.wbCount = res.data[0][i].count;
  15105. } else if (res.data[0][i].tools == 2) {
  15106. this.wordCount = res.data[0][i].count;
  15107. } else if (res.data[0][i].tools == 3) {
  15108. this.mindCount = res.data[0][i].count;
  15109. } else if (res.data[0][i].tools == 4) {
  15110. this.askCount = res.data[0][i].count;
  15111. } else if (res.data[0][i].tools == 6) {
  15112. this.noteCount = res.data[0][i].count;
  15113. } else if (res.data[0][i].tools == 7) {
  15114. this.mindNetWorkCount = res.data[0][i].count;
  15115. } else if (res.data[0][i].tools == 8) {
  15116. this.libraryCount = res.data[0][i].count;
  15117. } else if (res.data[0][i].tools == 16) {
  15118. this.workCount = res.data[0][i].count;
  15119. } else if (res.data[0][i].tools == 10) {
  15120. this.timeCount = res.data[0][i].count;
  15121. } else if (res.data[0][i].tools == 15) {
  15122. this.answerCount = res.data[0][i].count;
  15123. } else if (res.data[0][i].tools == 18) {
  15124. this.trainCount = res.data[0][i].count;
  15125. }
  15126. }
  15127. })
  15128. .catch((err) => {
  15129. console.error(err);
  15130. });
  15131. },
  15132. openTools(t, i, index, c, sName) {
  15133. var z = JSON.parse(c);
  15134. this.noteName = sName;
  15135. if (t == 4) {
  15136. this.radio = [];
  15137. this.isAnswer = false;
  15138. let b = z[0].anwer;
  15139. this.radio = b;
  15140. this.askJson = z[0].askJson;
  15141. this.isAnswer = true;
  15142. this.dialogVisible5 = true;
  15143. } else if (t == 45) {
  15144. this.radio = [];
  15145. this.isAnswer = false;
  15146. let b = z[0].anwer;
  15147. this.radio = b;
  15148. this.testJson = z[0].testJson;
  15149. this.isAnswer = true;
  15150. this.dialogVisibleChoice = true;
  15151. }
  15152. // else if (t == 15) {
  15153. // this.answerQ = "";
  15154. // this.questionAnswer = "";
  15155. // this.answerQ = z[0].answerTitle;
  15156. // this.questionAnswer = z[0].answer;
  15157. // this.answerDialogVisible = true;
  15158. // }
  15159. },
  15160. fastText(p, t) {
  15161. if (t == 1) {
  15162. this.commentText += p;
  15163. } else {
  15164. this.eScore.eBzText += p;
  15165. }
  15166. },
  15167. addTools(t, i, index) {
  15168. var a = 0;
  15169. // this.taskCount = index;
  15170. this.toolindex = i;
  15171. if (t == 1) {
  15172. if (this.wbCount > 0) {
  15173. this.updateCount(this.wbCount, t);
  15174. } else {
  15175. this.wbCount++;
  15176. a = this.wbCount;
  15177. this.toolsCount(a, t);
  15178. }
  15179. window.parent.postMessage(
  15180. {
  15181. tools: "1",
  15182. cid: this.id,
  15183. stage: this.courseType,
  15184. task: this.taskCount,
  15185. tool: i,
  15186. },
  15187. "*"
  15188. );
  15189. } else if (t == 2) {
  15190. if (this.wordCount > 0) {
  15191. this.updateCount(this.wordCount, t);
  15192. } else {
  15193. this.wordCount++;
  15194. a = this.wordCount;
  15195. this.toolsCount(a, t);
  15196. }
  15197. window.parent.postMessage({ tools: "2" }, "*");
  15198. } else if (t == 3) {
  15199. if (this.mindCount > 0) {
  15200. this.updateCount(this.mindCount, t);
  15201. } else {
  15202. this.mindCount++;
  15203. a = this.mindCount;
  15204. this.toolsCount(a, t);
  15205. }
  15206. window.parent.postMessage(
  15207. {
  15208. tools: "3",
  15209. cid: this.id,
  15210. stage: this.courseType,
  15211. task: this.taskCount,
  15212. tool: i,
  15213. },
  15214. "*"
  15215. );
  15216. } else if (t == 4) {
  15217. this.radio = [];
  15218. this.noteName = "";
  15219. this.isAnswer = false;
  15220. if (this.askCount > 0) {
  15221. this.updateCount(this.askCount, t);
  15222. } else {
  15223. this.askCount++;
  15224. a = this.askCount;
  15225. this.toolsCount(a, t);
  15226. }
  15227. if (!this.dialogVisible2) {
  15228. this.askJson.askJson =
  15229. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15230. index
  15231. ].toolChoose[i].askJson;
  15232. this.askJson.askTitle =
  15233. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15234. index
  15235. ].toolChoose[i].askTitle;
  15236. this.askJson.askCount =
  15237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15238. index
  15239. ].toolChoose[i].askCount;
  15240. } else {
  15241. this.askJson.askJson = this.chapTools.askJson.askJson;
  15242. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15243. this.askJson.askCount = this.chapTools.askJson.askCount;
  15244. }
  15245. for (var k = 0; k < this.askJson.askJson.length; k++) {
  15246. if (this.askJson.askJson[k].type == "2") {
  15247. this.radio.push([]);
  15248. } else {
  15249. this.radio.push("");
  15250. }
  15251. }
  15252. this.dialogVisible5 = true;
  15253. // window.parent.postMessage({ tools: "4" }, "*");
  15254. } else if (t == 45) {
  15255. this.noteName = "";
  15256. this.radio = [];
  15257. this.isAnswer = false;
  15258. if (this.askCount > 0) {
  15259. this.updateCount(this.askCount, t);
  15260. } else {
  15261. this.askCount++;
  15262. a = this.askCount;
  15263. this.toolsCount(a, t);
  15264. }
  15265. this.testJson =
  15266. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15267. index
  15268. ].toolChoose[i].testJson;
  15269. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15270. if (this.testJson.testJson[k].type == "2") {
  15271. this.radio.push([]);
  15272. } else {
  15273. this.radio.push("");
  15274. }
  15275. }
  15276. this.dialogVisibleChoice = true;
  15277. // window.parent.postMessage({ tools: "4" }, "*");
  15278. } else if (t == 5) {
  15279. if (this.scoreCount > 0) {
  15280. this.updateCount(this.scoreCount, t);
  15281. } else {
  15282. this.scoreCount++;
  15283. a = this.scoreCount;
  15284. this.toolsCount(a, t);
  15285. }
  15286. this.dialogVisible4 = true;
  15287. // window.parent.postMessage({ tools: "5" }, "*");
  15288. } else if (t == 6) {
  15289. if (this.noteCount > 0) {
  15290. this.updateCount(this.noteCount, t);
  15291. } else {
  15292. this.noteCount++;
  15293. a = this.noteCount;
  15294. this.toolsCount(a, t);
  15295. }
  15296. window.parent.postMessage(
  15297. {
  15298. tools: "6",
  15299. cid: this.id,
  15300. stage: this.courseType,
  15301. task: this.taskCount,
  15302. tool: i,
  15303. },
  15304. "*"
  15305. );
  15306. } else if (t == 7) {
  15307. if (this.mindNetWorkCount > 0) {
  15308. this.updateCount(this.mindNetWorkCount, t);
  15309. } else {
  15310. this.mindNetWorkCount++;
  15311. a = this.mindNetWorkCount;
  15312. this.toolsCount(a, t);
  15313. }
  15314. window.parent.postMessage(
  15315. {
  15316. tools: "7",
  15317. cid: this.id,
  15318. stage: this.courseType,
  15319. task: this.taskCount,
  15320. tool: i,
  15321. },
  15322. "*"
  15323. );
  15324. } else if (t == 16) {
  15325. if (this.workCount > 0) {
  15326. this.updateCount(this.workCount, t);
  15327. } else {
  15328. this.workCount++;
  15329. a = this.workCount;
  15330. this.toolsCount(a, t);
  15331. }
  15332. this.dialogVisible = true;
  15333. } else if (t == 50) {
  15334. if (this.tType == 2) {
  15335. this.$message.error("不支持学生使用");
  15336. return;
  15337. }
  15338. this.plworkFile = [];
  15339. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  15340. if (!this.uploadCid) {
  15341. this.$message.error(
  15342. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  15343. );
  15344. return;
  15345. }
  15346. // this.uploadCid =
  15347. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15348. // index
  15349. // ].toolChoose[i].uploadJson[0];
  15350. this.selectUploadStudent(2);
  15351. } else if (t == 8) {
  15352. if (this.libraryCount > 0) {
  15353. this.updateCount(this.libraryCount, t);
  15354. } else {
  15355. this.libraryCount++;
  15356. a = this.libraryCount;
  15357. this.toolsCount(a, t);
  15358. }
  15359. window.parent.postMessage({ tools: "8" }, "*");
  15360. } else if (t == 17) {
  15361. if (this.libraryCount > 0) {
  15362. this.updateCount(this.libraryCount, t);
  15363. } else {
  15364. this.libraryCount++;
  15365. a = this.libraryCount;
  15366. this.toolsCount(a, t);
  15367. }
  15368. window.parent.postMessage({ tools: "17" }, "*");
  15369. } else if (t == 18) {
  15370. if (this.trainCount > 0) {
  15371. this.updateCount(this.trainCount, t);
  15372. } else {
  15373. this.trainCount++;
  15374. a = this.trainCount;
  15375. this.toolsCount(a, t);
  15376. }
  15377. window.parent.postMessage({ tools: "18" }, "*");
  15378. } else if (t == 10) {
  15379. if (this.timeCount > 0) {
  15380. this.updateCount(this.timeCount, t);
  15381. } else {
  15382. this.timeCount++;
  15383. a = this.timeCount;
  15384. this.toolsCount(a, t);
  15385. }
  15386. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  15387. .taskJson[index].toolChoose[i].preTime
  15388. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15389. .toolChoose[i].preTime
  15390. : "";
  15391. this.timeDialogVisible = true;
  15392. } else if (t == 15) {
  15393. this.answerQ = "";
  15394. this.questionAnswer = "";
  15395. if (this.answerCount > 0) {
  15396. this.updateCount(this.answerCount, t);
  15397. } else {
  15398. this.answerCount++;
  15399. a = this.answerCount;
  15400. this.toolsCount(a, t);
  15401. }
  15402. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15403. .taskJson[index].toolChoose[i].answerQ
  15404. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15405. .toolChoose[i].answerQ
  15406. : "";
  15407. this.answerDialogVisible = true;
  15408. } else if (t == 21) {
  15409. window.parent.postMessage({ tools: "21" }, "*");
  15410. } else if (t == 22) {
  15411. window.parent.postMessage({ tools: "22" }, "*");
  15412. } else if (t == 23) {
  15413. window.parent.postMessage({ tools: "23" }, "*");
  15414. } else if (t == 24) {
  15415. window.parent.postMessage({ tools: "24" }, "*");
  15416. } else if (t == 25) {
  15417. window.parent.postMessage({ tools: "25" }, "*");
  15418. } else if (t == 31) {
  15419. window.parent.postMessage({ tools: "31" }, "*");
  15420. } else if (t == 28) {
  15421. window.parent.postMessage({ tools: "28" }, "*");
  15422. } else if (t == 37) {
  15423. window.parent.postMessage({ tools: "37" }, "*");
  15424. } else if (t == 38) {
  15425. window.parent.postMessage({ tools: "38" }, "*");
  15426. } else if (t == 39) {
  15427. window.parent.postMessage({ tools: "39" }, "*");
  15428. } else if (t == 32) {
  15429. window.parent.postMessage({ tools: "32" }, "*");
  15430. } else if (t == 57) {
  15431. // window.parent.postMessage({ tools: "57" }, "*");
  15432. window.parent.postMessage(
  15433. {
  15434. tools: "57u",
  15435. cid: this.id,
  15436. stage: this.courseType,
  15437. task: this.taskCount,
  15438. tool: i,
  15439. },
  15440. "*"
  15441. );
  15442. } else if (t == 58) {
  15443. window.parent.postMessage({ tools: "58" }, "*");
  15444. } else if (t == 59) {
  15445. window.parent.postMessage({ tools: "59" }, "*");
  15446. } else if (t == 60) {
  15447. window.parent.postMessage({ tools: "60" }, "*");
  15448. } else if (t == 61) {
  15449. window.parent.postMessage({ tools: "61" }, "*");
  15450. } else if (t == 63) {
  15451. window.parent.postMessage({ tools: "63" }, "*");
  15452. } else if (t == 26) {
  15453. window.parent.postMessage(
  15454. {
  15455. tools: "26",
  15456. cid: this.id,
  15457. stage: this.courseType,
  15458. task: this.taskCount,
  15459. tool: i,
  15460. },
  15461. "*"
  15462. );
  15463. } else if (t == 40) {
  15464. if (this.evalCount > 0) {
  15465. this.updateCount(this.evalCount, t);
  15466. } else {
  15467. this.evalCount++;
  15468. a = this.evalCount;
  15469. this.toolsCount(a, t);
  15470. }
  15471. this.eScore = { eBzText: "", eStar: [] };
  15472. if (this.worksStudent[i].length) {
  15473. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15474. if (this.userid == this.worksStudent[i][k].userid) {
  15475. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15476. this.rateJson =
  15477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15478. index
  15479. ].toolChoose[i].rateJson;
  15480. break;
  15481. } else {
  15482. this.rateJson =
  15483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15484. index
  15485. ].toolChoose[i].rateJson;
  15486. }
  15487. }
  15488. } else {
  15489. this.rateJson =
  15490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15491. index
  15492. ].toolChoose[i].rateJson;
  15493. }
  15494. this.isStar = false;
  15495. this.studentEvalDialogVisible = true;
  15496. } else if (t == 41) {
  15497. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15498. .taskJson[index].toolChoose[i].selectJson
  15499. ? JSON.parse(
  15500. JSON.stringify(
  15501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15502. index
  15503. ].toolChoose[i].selectJson
  15504. )
  15505. )
  15506. : { url: "", select: [], answer: [] };
  15507. if (this.worksStudent[i].length) {
  15508. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15509. if (this.userid == this.worksStudent[i][k].userid) {
  15510. var a = this.worksStudent[i][k].works.split(",");
  15511. for (var ki = 0; ki < a.length; ki++) {
  15512. a[ki] = parseInt(a[ki]);
  15513. }
  15514. this.selectAnswer = {
  15515. answer: a,
  15516. stu: this.worksStudent[i][k].sName,
  15517. };
  15518. break;
  15519. } else {
  15520. this.selectAnswer = { answer: [], stu: "" };
  15521. }
  15522. }
  15523. } else {
  15524. this.selectAnswer = { answer: [], stu: "" };
  15525. }
  15526. this.isSelect = false;
  15527. this.dialogVisibleSelect = true;
  15528. } else if (t == 44) {
  15529. window.parent.postMessage({ tools: "44" }, "*");
  15530. } else if (t == 47) {
  15531. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15532. .taskJson[index].toolChoose[i].sentenceList
  15533. ? JSON.parse(
  15534. JSON.stringify(
  15535. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15536. index
  15537. ].toolChoose[i].sentenceList
  15538. )
  15539. )
  15540. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15541. for (var q = 0; q < this.sentenceList.length; q++) {
  15542. this.sentenceList[q].chooseSenList = [];
  15543. this.sentenceList[q].addChangeSen = [];
  15544. this.sentenceList[q].addChangeSen = JSON.parse(
  15545. JSON.stringify(this.sentenceList[q].addSentence)
  15546. );
  15547. this.sentenceList[q].chooseSenList.length =
  15548. this.sentenceList[q].rightAnswer.length;
  15549. }
  15550. this.dialogVisibleSentence = true;
  15551. } else if (t == 48) {
  15552. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15553. .taskJson[index].toolChoose[i].tableJson
  15554. ? JSON.parse(
  15555. JSON.stringify(
  15556. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15557. index
  15558. ].toolChoose[i].tableJson
  15559. )
  15560. )
  15561. : { text: "" };
  15562. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  15563. if (this.worksStudent[i].length) {
  15564. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15565. if (this.userid == this.worksStudent[i][k].userid) {
  15566. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15567. break;
  15568. }
  15569. }
  15570. }
  15571. this.dialogVisibleTable = true;
  15572. } else if (t == 52) {
  15573. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15574. .taskJson[index].toolChoose[i].wordJson
  15575. ? JSON.parse(
  15576. JSON.stringify(
  15577. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15578. index
  15579. ].toolChoose[i].wordJson
  15580. )
  15581. )
  15582. : { text: "" };
  15583. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  15584. if (this.worksStudent[i].length) {
  15585. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15586. if (this.userid == this.worksStudent[i][k].userid) {
  15587. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15588. break;
  15589. }
  15590. }
  15591. }
  15592. this.dialogVisibleWord = true;
  15593. } else if (t == 49) {
  15594. this.groupJson =
  15595. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15596. index
  15597. ].toolChoose[i].groupJson;
  15598. this.islock = this.groupJson.islock == 1 ? true : false;
  15599. this.dialogVisibleGroup = true;
  15600. } else if (t == 62) {
  15601. this.videoJson =
  15602. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15603. index
  15604. ].toolChoose[i].videoJson;
  15605. this.dialogVisibleVideo = true;
  15606. }
  15607. },
  15608. teacherWorkSubmit(t, i, index, s) {
  15609. this.sStudent = s;
  15610. this.toolindex = i;
  15611. this.sTool = t;
  15612. if (this.tType !== "1" && this.tType !== "4") {
  15613. return;
  15614. }
  15615. if (t == 16 || t == 32 || t == 50) {
  15616. this.dialogVisibleWorks = true;
  15617. } else if (t == 15) {
  15618. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15619. .taskJson[index].toolChoose[i].answerQ
  15620. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15621. .toolChoose[i].answerQ
  15622. : "";
  15623. this.questionAnswer = "";
  15624. this.answerDialogVisibleTeacher = true; //问答
  15625. } else if (t == 52) {
  15626. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15627. .taskJson[index].toolChoose[i].wordJson
  15628. ? JSON.parse(
  15629. JSON.stringify(
  15630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15631. index
  15632. ].toolChoose[i].wordJson
  15633. )
  15634. )
  15635. : { text: "" };
  15636. if (this.worksStudent[i].length) {
  15637. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15638. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15639. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15640. break;
  15641. }
  15642. }
  15643. }
  15644. this.dialogVisibleWordTeacher = true; //文档
  15645. } else if (t == 4) {
  15646. this.radio = [];
  15647. this.noteName = "";
  15648. this.isAnswer = false;
  15649. if (this.askCount > 0) {
  15650. this.updateCount(this.askCount, t);
  15651. } else {
  15652. this.askCount++;
  15653. a = this.askCount;
  15654. this.toolsCount(a, t);
  15655. }
  15656. if (!this.dialogVisible2) {
  15657. this.askJson.askJson =
  15658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15659. index
  15660. ].toolChoose[i].askJson;
  15661. this.askJson.askTitle =
  15662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15663. index
  15664. ].toolChoose[i].askTitle;
  15665. this.askJson.askCount =
  15666. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15667. index
  15668. ].toolChoose[i].askCount;
  15669. } else {
  15670. this.askJson.askJson = this.chapTools.askJson.askJson;
  15671. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15672. this.askJson.askCount = this.chapTools.askJson.askCount;
  15673. }
  15674. this.dialogVisible5Teacher = true;
  15675. } else if (t == 45) {
  15676. this.noteName = "";
  15677. this.radio = [];
  15678. this.isAnswer = false;
  15679. if (this.askCount > 0) {
  15680. this.updateCount(this.askCount, t);
  15681. } else {
  15682. this.askCount++;
  15683. a = this.askCount;
  15684. this.toolsCount(a, t);
  15685. }
  15686. this.testJson =
  15687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15688. index
  15689. ].toolChoose[i].testJson;
  15690. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15691. if (this.testJson.testJson[k].type == "2") {
  15692. this.radio.push([]);
  15693. } else {
  15694. this.radio.push("");
  15695. }
  15696. }
  15697. this.dialogVisibleChoiceTeacher = true;
  15698. } else if (t == 41) {
  15699. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15700. .taskJson[index].toolChoose[i].selectJson
  15701. ? JSON.parse(
  15702. JSON.stringify(
  15703. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15704. index
  15705. ].toolChoose[i].selectJson
  15706. )
  15707. )
  15708. : { url: "", select: [], answer: [] };
  15709. if (this.worksStudent[i].length) {
  15710. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15711. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15712. var a = this.worksStudent[i][k].works.split(",");
  15713. for (var ki = 0; ki < a.length; ki++) {
  15714. a[ki] = parseInt(a[ki]);
  15715. }
  15716. this.selectAnswer = {
  15717. answer: a,
  15718. stu: this.worksStudent[i][k].sName,
  15719. };
  15720. break;
  15721. } else {
  15722. this.selectAnswer = { answer: [], stu: "" };
  15723. }
  15724. }
  15725. } else {
  15726. this.selectAnswer = { answer: [], stu: "" };
  15727. }
  15728. this.isSelect = false;
  15729. this.dialogVisibleSelectTeacher = true;
  15730. } else if (t == 47) {
  15731. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15732. .taskJson[index].toolChoose[i].sentenceList
  15733. ? JSON.parse(
  15734. JSON.stringify(
  15735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15736. index
  15737. ].toolChoose[i].sentenceList
  15738. )
  15739. )
  15740. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15741. for (var q = 0; q < this.sentenceList.length; q++) {
  15742. this.sentenceList[q].chooseSenList = [];
  15743. this.sentenceList[q].addChangeSen = [];
  15744. this.sentenceList[q].addChangeSen = JSON.parse(
  15745. JSON.stringify(this.sentenceList[q].addSentence)
  15746. );
  15747. this.sentenceList[q].chooseSenList.length =
  15748. this.sentenceList[q].rightAnswer.length;
  15749. }
  15750. this.dialogVisibleSentenceTeacher = true;
  15751. } else if (t == 48) {
  15752. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15753. .taskJson[index].toolChoose[i].tableJson
  15754. ? JSON.parse(
  15755. JSON.stringify(
  15756. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15757. index
  15758. ].toolChoose[i].tableJson
  15759. )
  15760. )
  15761. : { text: "" };
  15762. if (this.worksStudent[i].length) {
  15763. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15764. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15765. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15766. break;
  15767. }
  15768. }
  15769. }
  15770. this.dialogVisibleTableTeacher = true;
  15771. } else if (t == 40) {
  15772. if (this.evalCount > 0) {
  15773. this.updateCount(this.evalCount, t);
  15774. } else {
  15775. this.evalCount++;
  15776. a = this.evalCount;
  15777. this.toolsCount(a, t);
  15778. }
  15779. this.eScore = { eBzText: "", eStar: [] };
  15780. if (this.worksStudent[i].length) {
  15781. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15782. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15783. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15784. this.rateJson =
  15785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15786. index
  15787. ].toolChoose[i].rateJson;
  15788. break;
  15789. } else {
  15790. this.rateJson =
  15791. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15792. index
  15793. ].toolChoose[i].rateJson;
  15794. }
  15795. }
  15796. } else {
  15797. this.rateJson =
  15798. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15799. index
  15800. ].toolChoose[i].rateJson;
  15801. }
  15802. this.isStar = false;
  15803. this.studentEvalDialogVisibleTeacher = true;
  15804. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  15805. window.parent.postMessage(
  15806. {
  15807. tools: t + "teacher",
  15808. cid: this.id,
  15809. stage: this.courseType,
  15810. task: this.taskCount,
  15811. tool: i,
  15812. student: this.sStudent,
  15813. },
  15814. "*"
  15815. );
  15816. }
  15817. },
  15818. openCocoPi(tool, i, uid, uname) {
  15819. let student = {
  15820. userid: uid,
  15821. student: uname,
  15822. };
  15823. if (tool == 57) {
  15824. window.parent.postMessage(
  15825. {
  15826. tools: tool + "teacher",
  15827. cid: this.id,
  15828. stage: this.courseType,
  15829. task: this.taskCount,
  15830. tool: i,
  15831. student: student,
  15832. },
  15833. "*"
  15834. );
  15835. }
  15836. },
  15837. setRightAnswer(s, i, j) {
  15838. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  15839. if (
  15840. this.sentenceList[i].chooseSenList[q] == undefined ||
  15841. this.sentenceList[i].chooseSenList[q] == ""
  15842. ) {
  15843. this.sentenceList[i].chooseSenList[q] = s;
  15844. this.sentenceList[i].addChangeSen[j] = "";
  15845. break;
  15846. }
  15847. }
  15848. this.$forceUpdate();
  15849. },
  15850. returnCard(r, i, j) {
  15851. var a = this.sentenceList[i].addSentence.indexOf(r);
  15852. this.sentenceList[i].chooseSenList[j] = "";
  15853. this.sentenceList[i].addChangeSen[a] = r;
  15854. this.$forceUpdate();
  15855. },
  15856. // addSentenceTool() {
  15857. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15858. // this.taskCount
  15859. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  15860. // this.sentenceList = [
  15861. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  15862. // ];
  15863. // this.dialogVisibleSentence = false;
  15864. // },
  15865. toolsCount(a, t) {
  15866. let params = {
  15867. cid: this.id,
  15868. chid: this.courseType,
  15869. uid: this.userid,
  15870. tid: t,
  15871. count: a,
  15872. };
  15873. this.ajax
  15874. .get(this.$store.state.api + "insertToolsCount", params)
  15875. .then((res) => {
  15876. this.selectCount();
  15877. })
  15878. .catch((err) => {
  15879. console.error(err);
  15880. });
  15881. },
  15882. updateCount(c, t) {
  15883. c++;
  15884. let params = {
  15885. cid: this.id,
  15886. chid: this.courseType,
  15887. uid: this.userid,
  15888. tid: t,
  15889. count: c,
  15890. };
  15891. this.ajax
  15892. .get(this.$store.state.api + "updateToolsCount", params)
  15893. .then((res) => {
  15894. this.selectCount();
  15895. })
  15896. .catch((err) => {
  15897. console.error(err);
  15898. });
  15899. },
  15900. checkEva() {
  15901. if (this.evalua != "") {
  15902. for (var i = 0; i < this.evaJuri.length; i++) {
  15903. if (this.evalua == this.evaJuri[i].id) {
  15904. this.eTitle = this.evaJuri[i].title;
  15905. this.eJson = JSON.parse(this.evaJuri[i].content);
  15906. }
  15907. }
  15908. this.$forceUpdate();
  15909. setTimeout(() => {
  15910. this.setMindData();
  15911. }, 0);
  15912. }
  15913. },
  15914. selectEva() {
  15915. let params = {
  15916. oid: this.oid,
  15917. };
  15918. this.ajax
  15919. .get(this.$store.state.api + "selectAllEvaluation", params)
  15920. .then((res) => {
  15921. this.evaJuri = res.data[0];
  15922. })
  15923. .catch((err) => {
  15924. console.error(err);
  15925. });
  15926. },
  15927. setMindData() {
  15928. this.data.data = [];
  15929. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  15930. let _eJson = Object.keys(this.eJson);
  15931. let _e = this.eJson;
  15932. for (let i = 0; i < _eJson.length; i++) {
  15933. let element = _e[_eJson[i]];
  15934. this.data.data.push({
  15935. id: element.id,
  15936. parentid: "root",
  15937. topic: element.name,
  15938. });
  15939. let _eJsonc = Object.keys(element.child);
  15940. let _e2 = element.child;
  15941. for (let j = 0; j < _eJsonc.length; j++) {
  15942. let _ec = _e2[_eJsonc[j]];
  15943. this.data.data.push({
  15944. id: _ec.id,
  15945. parentid: element.id,
  15946. topic: _ec.name,
  15947. });
  15948. let _eJsonz = Object.keys(_ec.child);
  15949. let _e3 = _ec.child;
  15950. for (let z = 0; z < _eJsonz.length; z++) {
  15951. let _ez = _e3[_eJsonz[z]];
  15952. this.data.data.push({
  15953. id: _ez.id,
  15954. parentid: _ec.id,
  15955. topic: _ez.name,
  15956. });
  15957. }
  15958. }
  15959. }
  15960. this.$forceUpdate();
  15961. },
  15962. checkFileFull(type, url) {
  15963. this.fullDialogVisible = true;
  15964. this.fulltype = type;
  15965. this.fullUrl = url;
  15966. },
  15967. openSname(n, id, i, uid) {
  15968. this.snameWid = id;
  15969. this.worksSName = n;
  15970. this.worksSid = uid == n ? "" : uid;
  15971. this.toolindex = i;
  15972. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  15973. if (!this.uploadCid) {
  15974. this.$message.error(
  15975. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  15976. );
  15977. return;
  15978. }
  15979. this.selectUploadStudent(1);
  15980. },
  15981. updateName() {
  15982. let params = {
  15983. n: this.worksSName,
  15984. cid: this.snameWid,
  15985. };
  15986. this.ajax
  15987. .get(this.$store.state.api + "updateCourseWorksName", params)
  15988. .then((res) => {
  15989. this.$message({
  15990. message: "修改成功",
  15991. type: "success",
  15992. });
  15993. this.dialogVisibleSname = false;
  15994. this.getCourseDetail(2);
  15995. this.snameWid = "";
  15996. this.worksSName = "";
  15997. })
  15998. .catch((err) => {
  15999. console.error(err);
  16000. });
  16001. },
  16002. downloadFile2(f) {
  16003. const loading = this.$loading.service({
  16004. background: "rgba(255, 255, 255, 0.7)",
  16005. target: document.body,
  16006. text: "文件加载中...",
  16007. });
  16008. let url2 = f.url;
  16009. let _url2 = "";
  16010. if (
  16011. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16012. ) {
  16013. _url2 = url2.split(
  16014. "https://view.officeapps.live.com/op/view.aspx?src="
  16015. )[1];
  16016. } else {
  16017. _url2 = url2;
  16018. }
  16019. let params = {
  16020. url: _url2,
  16021. name: f.name,
  16022. };
  16023. this.ajax
  16024. .get(this.$store.state.api + "download", params)
  16025. .then((res) => {
  16026. console.log(res);
  16027. loading.close();
  16028. let content = res.data.data.data;
  16029. let ab = new ArrayBuffer(content.length);
  16030. let view = new Uint8Array(ab);
  16031. for (var i = 0; i < content.length; ++i) {
  16032. view[i] = content[i];
  16033. }
  16034. let elink = document.createElement("a");
  16035. elink.download = f.name;
  16036. elink.style.display = "none";
  16037. let blob = new Blob([ab], {
  16038. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16039. });
  16040. elink.href = URL.createObjectURL(blob);
  16041. document.body.appendChild(elink);
  16042. elink.click();
  16043. document.body.removeChild(elink);
  16044. })
  16045. .catch((err) => {
  16046. loading.close();
  16047. console.error(err);
  16048. });
  16049. },
  16050. downloadFile(url) {
  16051. let _this = this;
  16052. let _url = "";
  16053. if (
  16054. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16055. ) {
  16056. _url = url.split(
  16057. "https://view.officeapps.live.com/op/view.aspx?src="
  16058. )[1];
  16059. } else {
  16060. _url = url;
  16061. }
  16062. const x = new XMLHttpRequest();
  16063. x.open("GET", _url, true);
  16064. x.responseType = "blob";
  16065. const loading = _this.$loading.service({
  16066. background: "rgba(255, 255, 255, 0.7)",
  16067. target: document.body,
  16068. text: "文件加载中...",
  16069. });
  16070. // _this.$message.success("文件下载中...");
  16071. x.onload = function (e) {
  16072. loading.close();
  16073. let content = x.response;
  16074. let elink = document.createElement("a");
  16075. elink.download = decodeURI(
  16076. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16077. );
  16078. elink.style.display = "none";
  16079. let blob = new Blob([content]);
  16080. elink.href = URL.createObjectURL(blob);
  16081. document.body.appendChild(elink);
  16082. elink.click();
  16083. document.body.removeChild(elink);
  16084. };
  16085. x.send();
  16086. },
  16087. openLine(url) {
  16088. window.open(url);
  16089. },
  16090. resize() {
  16091. if (document.getElementsByClassName("box_course").length) {
  16092. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16093. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16094. if (this.showType == 2 || this.showType == 3) {
  16095. document.getElementsByClassName("navBox")[0].style.height =
  16096. a - 40 + 46 + "px";
  16097. } else {
  16098. document.getElementsByClassName("navBox")[0].style.height =
  16099. a - 40 + "px";
  16100. }
  16101. }
  16102. this.Stbodywidth =
  16103. document.getElementsByClassName("student_body").length &&
  16104. document.getElementsByClassName("student_body")[0].offsetWidth;
  16105. },
  16106. closeDraw() {
  16107. this.bg = null;
  16108. this.drawShow = false;
  16109. },
  16110. showPicturePaint(url) {
  16111. let params = {
  16112. img: url,
  16113. };
  16114. this.ajax
  16115. .get(this.$store.state.api + "imgToBase64", params)
  16116. .then((res) => {
  16117. console.log(res);
  16118. this.drawShow = true;
  16119. this.bg = res.data[0].img;
  16120. })
  16121. .catch((err) => {
  16122. console.error(err);
  16123. });
  16124. },
  16125. addImgDraw(base64) {
  16126. let file = { name: "批注图.png" };
  16127. let img = this.dataUrlToFile(base64, file);
  16128. this.beforeUpload1(img, 5);
  16129. },
  16130. addImgDrawImG(url) {
  16131. // console.log(url);
  16132. let params = [
  16133. {
  16134. wid: this.commentDetail.wid,
  16135. img: url,
  16136. },
  16137. ];
  16138. this.ajax
  16139. .post(this.$store.state.api + "updateCourseWorks", params)
  16140. .then((res) => {
  16141. this.$message({
  16142. message: "提交成功",
  16143. type: "success",
  16144. });
  16145. this.drawShow = false;
  16146. this.bg = "";
  16147. this.selectSWorks();
  16148. this.selectStudent();
  16149. })
  16150. .catch((err) => {
  16151. this.$message.error("提交失败");
  16152. console.error(err);
  16153. });
  16154. },
  16155. deletePicturePaint() {
  16156. this.$confirm("确定删除此批注吗?", "提示", {
  16157. confirmButtonText: "确定",
  16158. cancelButtonText: "取消",
  16159. type: "warning",
  16160. })
  16161. .then(() => {
  16162. let params = [
  16163. {
  16164. wid: this.commentDetail.wid,
  16165. img: "",
  16166. },
  16167. ];
  16168. this.ajax
  16169. .post(this.$store.state.api + "updateCourseWorks", params)
  16170. .then((res) => {
  16171. this.$message({
  16172. message: "删除成功",
  16173. type: "success",
  16174. });
  16175. this.selectSWorks();
  16176. this.selectStudent();
  16177. })
  16178. .catch((err) => {
  16179. this.$message.error("删除失败");
  16180. console.error(err);
  16181. });
  16182. })
  16183. .catch(() => {});
  16184. },
  16185. getAudioVideo(constraintsData) {
  16186. if (navigator.mediaDevices === undefined) {
  16187. navigator.mediaDevices = {};
  16188. }
  16189. if (navigator.mediaDevices.getUserMedia === undefined) {
  16190. navigator.mediaDevices.getUserMedia = function (constraints) {
  16191. // 首先,如果有getUserMedia的话,就获得它
  16192. var getUserMedia =
  16193. navigator.getUserMedia ||
  16194. navigator.webkitGetUserMedia ||
  16195. navigator.mozGetUserMedia ||
  16196. navigator.msGetUserMedia;
  16197. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  16198. if (!getUserMedia) {
  16199. return Promise.reject({ code: 404 });
  16200. }
  16201. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  16202. return new Promise(function (resolve, reject) {
  16203. getUserMedia.call(navigator, constraints, resolve, reject);
  16204. });
  16205. };
  16206. }
  16207. return navigator.mediaDevices.getUserMedia(constraintsData);
  16208. },
  16209. /**
  16210. * 开始录制
  16211. */
  16212. startRecording(callback) {
  16213. let _function = (screenStream) => {
  16214. this.addStreamStopListener(screenStream, () => {
  16215. console.log("流停止监听");
  16216. this.stopRecording();
  16217. this.$emit("streamStop", {});
  16218. // this.stopRecording();
  16219. });
  16220. var options = {
  16221. type: "video",
  16222. mimeType: "video/webm",
  16223. disableLogs: false,
  16224. getNativeBlob: false, // enable it for longer recordings
  16225. ignoreMutedMedia: false,
  16226. };
  16227. // this.video.srcObject = screenStream;
  16228. this.recorder = RecordRTC(screenStream, options);
  16229. this.recorder.startRecording();
  16230. this.recorder.screen = screenStream;
  16231. this.videoStart = true;
  16232. // callback(true);
  16233. };
  16234. this.getAudioVideo({ audio: true })
  16235. .then((res) => {
  16236. this.captureScreen(_function, true);
  16237. console.log("已点击允许,开启成功");
  16238. })
  16239. .catch((err) => {
  16240. // console.log('浏览器不支持,请更换浏览器')
  16241. // } else {
  16242. this.captureScreen(_function, false);
  16243. console.log("请检查是否存在麦克风");
  16244. });
  16245. },
  16246. /**
  16247. * 停止录制
  16248. */
  16249. stopRecording(callback) {
  16250. this.recorder.stopRecording(() => {
  16251. // this.video.src = this.video.srcObject = null;
  16252. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  16253. const url = URL.createObjectURL(this.recorder.getBlob());
  16254. const a = document.createElement("a"); //this.fileName+
  16255. let videoFile = new File(
  16256. [this.recorder.getBlob()],
  16257. this.courseDetail.title + "录屏.mp4",
  16258. {
  16259. type: "video/mp4",
  16260. }
  16261. );
  16262. let downloadUrl = URL.createObjectURL(videoFile);
  16263. document.body.appendChild(a);
  16264. a.style.display = "none";
  16265. a.href = url;
  16266. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  16267. a.click();
  16268. this.recorder.screen.stop();
  16269. this.recorder.destroy();
  16270. this.recorder = null;
  16271. this.videoStart = false;
  16272. // callback(false);
  16273. });
  16274. },
  16275. //初始化
  16276. captureScreen(callback, type) {
  16277. if (navigator.getDisplayMedia) {
  16278. //录制结束,文件下载
  16279. navigator
  16280. .getDisplayMedia({
  16281. video: true,
  16282. })
  16283. .then((screenStream) => {
  16284. if (type) {
  16285. navigator.mediaDevices
  16286. .getUserMedia({ audio: true })
  16287. .then((mic) => {
  16288. screenStream.addTrack(mic.getTracks()[0]);
  16289. callback(screenStream);
  16290. });
  16291. } else {
  16292. callback(screenStream);
  16293. }
  16294. })
  16295. .catch(function (error) {
  16296. console.log("error", error);
  16297. });
  16298. } else if (navigator.mediaDevices.getDisplayMedia) {
  16299. navigator.mediaDevices
  16300. .getDisplayMedia({
  16301. video: true,
  16302. })
  16303. .then((screenStream) => {
  16304. if (type) {
  16305. navigator.mediaDevices
  16306. .getUserMedia({ audio: true })
  16307. .then((mic) => {
  16308. screenStream.addTrack(mic.getTracks()[0]);
  16309. callback(screenStream);
  16310. });
  16311. } else {
  16312. callback(screenStream);
  16313. }
  16314. })
  16315. .catch(function (error) {
  16316. console.log("error", error);
  16317. });
  16318. } else {
  16319. var error = "getDisplayMedia API are not supported in this browser.";
  16320. console.log("error", error);
  16321. alert(error);
  16322. }
  16323. },
  16324. //流监听
  16325. addStreamStopListener(stream, callback) {
  16326. stream.addEventListener(
  16327. "ended",
  16328. function () {
  16329. callback();
  16330. callback = function () {};
  16331. },
  16332. false
  16333. );
  16334. stream.addEventListener(
  16335. "inactive",
  16336. function () {
  16337. callback();
  16338. callback = function () {};
  16339. },
  16340. false
  16341. );
  16342. stream.getTracks().forEach(function (track) {
  16343. track.addEventListener(
  16344. "ended",
  16345. function () {
  16346. callback();
  16347. callback = function () {};
  16348. },
  16349. false
  16350. );
  16351. track.addEventListener(
  16352. "inactive",
  16353. function () {
  16354. callback();
  16355. callback = function () {};
  16356. },
  16357. false
  16358. );
  16359. });
  16360. },
  16361. updateGroup() {
  16362. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16363. this.dialogVisibleGroup2 = true;
  16364. },
  16365. updateGroupJson() {
  16366. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  16367. if (
  16368. this.groupStudentUid[this.toolindex][i].length >
  16369. this.groupJson2.number
  16370. ) {
  16371. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  16372. return;
  16373. }
  16374. }
  16375. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  16376. this.islock = this.groupJson.islock == 1 ? true : false;
  16377. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16378. this.taskCount
  16379. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  16380. let params = [
  16381. {
  16382. cid: this.id,
  16383. chapters: JSON.stringify(this.chapInfoList),
  16384. uid: this.userid,
  16385. unitIndex: this.courseType,
  16386. },
  16387. ];
  16388. this.ajax
  16389. .post(this.$store.state.api + "updateWorkNew4", params)
  16390. .then((res) => {
  16391. this.$message.success("设置成功");
  16392. this.getCourseDetail(2);
  16393. this.dialogVisibleGroup2 = false;
  16394. this.groupJson2 = {};
  16395. this.$forceUpdate();
  16396. })
  16397. .catch((err) => {
  16398. this.$message.error("网络不佳");
  16399. console.error(err);
  16400. });
  16401. },
  16402. lockChair() {
  16403. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16404. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  16405. this.updateGroupJson();
  16406. },
  16407. selectGroup(index) {
  16408. this.getCourseDetail(2, index);
  16409. },
  16410. joinGroup(index) {
  16411. if (this.groupJson.islock == 2) {
  16412. this.$message.error("位置已被锁定,无法加入");
  16413. return;
  16414. }
  16415. if (
  16416. this.groupStudent[this.toolindex][index].length >
  16417. this.groupJson.number ||
  16418. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  16419. ) {
  16420. this.$message.error("位置已满,无法加入");
  16421. return;
  16422. }
  16423. let params = [
  16424. {
  16425. cid: this.id,
  16426. stage: this.courseType,
  16427. task: this.taskCount,
  16428. tool: this.toolindex,
  16429. g: index,
  16430. uid: this.userid,
  16431. },
  16432. ];
  16433. this.ajax
  16434. .post(this.$store.state.api + "joinGroup", params)
  16435. .then((res) => {
  16436. this.$message.success("加入成功");
  16437. this.getCourseDetail(2);
  16438. })
  16439. .catch((err) => {
  16440. this.$message.error("网络不佳");
  16441. console.error(err);
  16442. });
  16443. },
  16444. exitGroup(id) {
  16445. if (this.groupJson.islock == 2) {
  16446. this.$message.error("位置已被锁定,无法退出");
  16447. return;
  16448. }
  16449. let params = [
  16450. {
  16451. gid: id,
  16452. },
  16453. ];
  16454. this.ajax
  16455. .post(this.$store.state.api + "exitGroup", params)
  16456. .then((res) => {
  16457. this.$message.success("退出成功");
  16458. this.getCourseDetail(2);
  16459. })
  16460. .catch((err) => {
  16461. this.$message.error("网络不佳");
  16462. console.error(err);
  16463. });
  16464. },
  16465. groupUpload(index, task, gindex) {
  16466. this.taskCount = task;
  16467. this.toolindex = index;
  16468. this.groupIndex = gindex;
  16469. this.dialogVisibleGroupWork = true;
  16470. },
  16471. updateGroupChair(user) {
  16472. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  16473. el.label = index;
  16474. return index != user.group;
  16475. });
  16476. this.updateGroupUser = user;
  16477. this.dialogVisibleUpdateGroup = true;
  16478. },
  16479. updateChair() {
  16480. if (
  16481. this.groupStudent[this.toolindex][this.checkChair].length >
  16482. this.groupJson.number ||
  16483. this.groupStudent[this.toolindex][this.checkChair].length ==
  16484. this.groupJson.number
  16485. ) {
  16486. this.$message.error("位置已满,无法加入");
  16487. return;
  16488. }
  16489. let params = [
  16490. {
  16491. cid: this.id,
  16492. stage: this.courseType,
  16493. task: this.taskCount,
  16494. tool: this.toolindex,
  16495. g: this.checkChair,
  16496. uid: this.updateGroupUser.userid,
  16497. },
  16498. ];
  16499. this.ajax
  16500. .post(this.$store.state.api + "joinGroup", params)
  16501. .then((res) => {
  16502. this.$message.success("修改成功");
  16503. this.updateGroupUser = {};
  16504. this.checkChair = "";
  16505. this.updateGroupArray = {};
  16506. this.dialogVisibleUpdateGroup = false;
  16507. this.getCourseDetail(2);
  16508. })
  16509. .catch((err) => {
  16510. this.$message.error("网络不佳");
  16511. console.error(err);
  16512. });
  16513. },
  16514. deleteGroupChair(gindex) {
  16515. this.checkDeleteGroup = [];
  16516. this.deleteGroupUser = JSON.parse(
  16517. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  16518. );
  16519. this.deleteGroupArray = this.groupJson.group[gindex];
  16520. this.groupIndex = gindex;
  16521. this.dialogVisibleDeleteGroup = true;
  16522. },
  16523. async deleteChair() {
  16524. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  16525. const gid =
  16526. this.groupStudent[this.toolindex][this.groupIndex][
  16527. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  16528. this.checkDeleteGroup[i]
  16529. )
  16530. ];
  16531. let params = [
  16532. {
  16533. gid: gid.id,
  16534. },
  16535. ];
  16536. var a = await this.deleteChairA(params);
  16537. if (i == this.checkDeleteGroup.length - 1) {
  16538. this.$message.success("退出成功");
  16539. this.dialogVisibleDeleteGroup = false;
  16540. this.deleteGroupUser = [];
  16541. this.deleteGroupArray = {};
  16542. this.groupIndex = "";
  16543. this.checkDeleteGroup = [];
  16544. this.getCourseDetail(2);
  16545. }
  16546. }
  16547. },
  16548. deleteChairA(params) {
  16549. return new Promise((resolve, reject) => {
  16550. this.ajax
  16551. .post(this.$store.state.api + "exitGroup", params)
  16552. .then((res) => {
  16553. resolve(1);
  16554. })
  16555. .catch((err) => {
  16556. this.$message.error("网络不佳");
  16557. console.error(err);
  16558. });
  16559. });
  16560. },
  16561. contract(i) {
  16562. if (this.isCloseList[i].isClose == 0) {
  16563. this.isCloseList[i].isClose = 1;
  16564. } else {
  16565. this.isCloseList[i].isClose = 0;
  16566. }
  16567. this.$forceUpdate();
  16568. },
  16569. },
  16570. directives: {
  16571. // 使用局部注册指令的方式
  16572. resize: {
  16573. // 指令的名称
  16574. bind(el, binding) {
  16575. // el为绑定的元素,binding为绑定给指令的对象
  16576. let width = "",
  16577. height = "";
  16578. function isReize() {
  16579. const style = document.defaultView.getComputedStyle(el);
  16580. if (width !== style.width || height !== style.height) {
  16581. binding.value(); // 关键
  16582. }
  16583. width = style.width;
  16584. height = style.height;
  16585. }
  16586. el.__vueSetInterval__ = setInterval(isReize, 300);
  16587. },
  16588. unbind(el) {
  16589. clearInterval(el.__vueSetInterval__);
  16590. },
  16591. },
  16592. },
  16593. beforeDestroy() {
  16594. window.onresize = null;
  16595. clearInterval(this.timer);
  16596. this.timer = null;
  16597. clearInterval(this.opertimer);
  16598. this.opertimer = null;
  16599. },
  16600. computed: {
  16601. contentConvent() {
  16602. return function (c) {
  16603. return c
  16604. ? c
  16605. .replaceAll(/\r\n/g, "<br/>")
  16606. .replaceAll(/\n/g, "<br/>")
  16607. .replaceAll(/\s/g, " &nbsp")
  16608. : "";
  16609. };
  16610. },
  16611. checkUpload() {
  16612. return function () {
  16613. var studentK = [];
  16614. if (this.plworkFile.length > 0) {
  16615. for (var z = 0; z < this.plworkFile.length; z++) {
  16616. studentK.push(this.plworkFile[z].username);
  16617. }
  16618. studentK = studentK.join(",");
  16619. }
  16620. var a = this.uploadStudentJuri.filter((el) => {
  16621. return studentK.indexOf(el.userid) == -1;
  16622. });
  16623. return a;
  16624. };
  16625. },
  16626. getSName() {
  16627. return function (name) {
  16628. var check = name;
  16629. this.uploadStudentJuri.forEach((el) => {
  16630. if (el.userid == check) {
  16631. check = el.name ? el.name : el.username;
  16632. }
  16633. });
  16634. return check;
  16635. };
  16636. },
  16637. },
  16638. mounted() {
  16639. if (this.screenType == 2) {
  16640. window.parent.postMessage({ allScreen: 4 }, "*");
  16641. } else if (this.screenType == 3) {
  16642. window.parent.postMessage({ allScreen: 5 }, "*");
  16643. } else if (this.screenType == 1) {
  16644. window.parent.postMessage({ allScreen: 6 }, "*");
  16645. }
  16646. this.setOperationTime();
  16647. this.selectEva();
  16648. this.getCourseDetail();
  16649. this.selectCount();
  16650. this.getHomeWork();
  16651. this.contentDialog = true;
  16652. this.setContent2(true);
  16653. if (this.tType == 4) {
  16654. this.pzDialog = true;
  16655. this.selectPz();
  16656. }
  16657. document.scrollingElement.scrollTop = 0;
  16658. window.addEventListener("resize", () => {
  16659. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16660. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16661. if (this.showType == 2 || this.showType == 3) {
  16662. document.getElementsByClassName("navBox")[0].style.height =
  16663. a - 40 + 46 + "px";
  16664. } else {
  16665. document.getElementsByClassName("navBox")[0].style.height =
  16666. a - 40 + "px";
  16667. }
  16668. });
  16669. let _this = this;
  16670. setTimeout(() => {
  16671. // _this.vedioTime = [];
  16672. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16673. // _this.vedioTime[i] = document.getElementsByClassName(
  16674. // "vjs-duration-display"
  16675. // )[i].textContent;
  16676. // }
  16677. }, 1000);
  16678. },
  16679. };
  16680. </script>
  16681. <style scoped>
  16682. @media screen and (max-width: 1280px) {
  16683. /* .courseIndex > div:first-child(2) {
  16684. width: 15% !important;
  16685. } */
  16686. /* .navText {
  16687. width: 120px !important;
  16688. } */
  16689. .evaCss {
  16690. flex-direction: column !important;
  16691. align-items: center !important;
  16692. }
  16693. .elist_input {
  16694. width: 90% !important;
  16695. }
  16696. .dialog_diy1 >>> .el-dialog {
  16697. width: 100% !important;
  16698. }
  16699. .rightWidthCss {
  16700. width: 100% !important;
  16701. }
  16702. .dialog_diy3 >>> .el-dialog {
  16703. width: 100% !important;
  16704. }
  16705. /* .textTitle >>> .el-form-item__label {
  16706. width: 150px !important;
  16707. } */
  16708. /* .stageItemTitle > div:last-child{
  16709. max-width: 50px;
  16710. } */
  16711. }
  16712. .evaCssMax {
  16713. flex-direction: column !important;
  16714. align-items: center !important;
  16715. }
  16716. .dialog_diy >>> .el-dialog {
  16717. margin-top: 10vh !important;
  16718. }
  16719. .body_student {
  16720. width: 77%;
  16721. height: 100%;
  16722. position: absolute;
  16723. left: 22%;
  16724. top: 0;
  16725. }
  16726. .student_head {
  16727. width: 100%;
  16728. margin: 40px auto 0;
  16729. padding-bottom: 20px;
  16730. display: flex;
  16731. flex-direction: column;
  16732. flex-wrap: nowrap;
  16733. align-items: flex-start;
  16734. justify-content: flex-start;
  16735. }
  16736. .pb_left {
  16737. width: 20%;
  16738. margin-right: 10px;
  16739. background: rgb(255, 255, 255);
  16740. position: fixed;
  16741. height: calc(100% - 40px);
  16742. border-radius: 20px;
  16743. padding-bottom: 15px;
  16744. box-sizing: border-box;
  16745. }
  16746. .wheel > img,
  16747. .project > img,
  16748. .star > img,
  16749. .evaluate > img,
  16750. .up_photo > img,
  16751. .chapter_add > img,
  16752. .deleteWord > img,
  16753. .question > img,
  16754. .homework > img {
  16755. width: 100%;
  16756. height: 100%;
  16757. }
  16758. .upCover > img {
  16759. width: 131px;
  16760. height: 69px;
  16761. object-fit: cover;
  16762. }
  16763. .upCover {
  16764. width: calc(100% / 3.5);
  16765. position: relative;
  16766. margin: 0 15px 10px 0;
  16767. display: flex;
  16768. flex-direction: column;
  16769. flex-wrap: nowrap;
  16770. justify-content: center;
  16771. align-content: center;
  16772. align-items: center;
  16773. height: fit-content;
  16774. }
  16775. .upCover2 {
  16776. width: 100%;
  16777. position: relative;
  16778. margin: 0 15px 10px 0;
  16779. display: flex;
  16780. flex-direction: column;
  16781. flex-wrap: nowrap;
  16782. justify-content: center;
  16783. align-content: center;
  16784. align-items: center;
  16785. }
  16786. .upCover2 > img {
  16787. width: 100%;
  16788. height: 90px;
  16789. object-fit: contain;
  16790. }
  16791. .chapter_add {
  16792. width: 120px;
  16793. position: relative;
  16794. text-align: center;
  16795. }
  16796. .isAddThings {
  16797. margin-top: 20px;
  16798. position: relative;
  16799. text-align: center;
  16800. background: #f7f8fa;
  16801. height: 90px;
  16802. width: 90px;
  16803. display: flex;
  16804. flex-direction: column;
  16805. justify-content: center;
  16806. }
  16807. .deleteWord {
  16808. width: 22px;
  16809. height: 22px;
  16810. position: absolute;
  16811. right: -5px;
  16812. top: -5px;
  16813. cursor: pointer;
  16814. }
  16815. .box_course {
  16816. /* width: 60%; */
  16817. width: calc(100% - 300px);
  16818. }
  16819. .wheel {
  16820. width: 100%;
  16821. /* height: 100%; */
  16822. height: 650px;
  16823. }
  16824. .right_box {
  16825. display: flex;
  16826. flex-direction: column;
  16827. margin-left: 30px;
  16828. justify-content: space-around;
  16829. }
  16830. .right_box_title {
  16831. font-size: 23px;
  16832. }
  16833. .people {
  16834. display: flex;
  16835. }
  16836. .student_body {
  16837. width: 100%;
  16838. margin: 0 auto;
  16839. margin-top: 10px;
  16840. padding: 0 0 20px;
  16841. }
  16842. .study_top {
  16843. margin-top: 100px;
  16844. width: 100%;
  16845. height: auto;
  16846. padding-bottom: 20px;
  16847. }
  16848. .study_top .checkbox {
  16849. display: flex;
  16850. align-items: center;
  16851. padding: 15px 0 15px 30px;
  16852. flex: 0 0 auto;
  16853. font-weight: bold;
  16854. border-bottom: 1px solid #eee;
  16855. }
  16856. .study_top .check {
  16857. padding-bottom: 5px;
  16858. text-align: center;
  16859. cursor: pointer;
  16860. height: 30px;
  16861. box-sizing: border-box;
  16862. display: flex;
  16863. }
  16864. .study_top .checked {
  16865. border-bottom: 4px solid #3fc6a0;
  16866. padding-bottom: 5px;
  16867. color: #3fc6a0;
  16868. display: flex;
  16869. height: 35px;
  16870. }
  16871. .study_top .checked > div,
  16872. .study_top .check > div {
  16873. margin-right: 5px;
  16874. }
  16875. .videoTop {
  16876. display: flex;
  16877. flex-direction: row;
  16878. justify-content: space-between;
  16879. background: #fff;
  16880. align-items: center;
  16881. width: 95%;
  16882. padding: 20px;
  16883. }
  16884. .upbtn {
  16885. margin: 25px;
  16886. background: #70afdb;
  16887. color: #fff;
  16888. width: 120px;
  16889. text-align: center;
  16890. height: 30px;
  16891. line-height: 30px;
  16892. font-size: 13px;
  16893. border-radius: 5px;
  16894. cursor: pointer;
  16895. }
  16896. .filebox {
  16897. display: flex;
  16898. flex-wrap: wrap;
  16899. flex-direction: column;
  16900. padding: 15px 0 5px;
  16901. position: relative;
  16902. }
  16903. .filebox:before {
  16904. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  16905. position: absolute;
  16906. top: 35px;
  16907. left: 13px;
  16908. border-left: 2px dotted #cad1dc;
  16909. height: calc(100% - 15px);
  16910. }
  16911. .toolHeng2 > div:last-child::before {
  16912. height: calc(100% - 43px);
  16913. }
  16914. .filebox .tooldetail {
  16915. width: 35%;
  16916. margin: 0px 12px;
  16917. padding: 12px 25px 0 13px;
  16918. line-height: 30px;
  16919. word-break: break-word;
  16920. font-size: 18px;
  16921. background: #ffffff;
  16922. border-radius: 8px 8px 8px 8px;
  16923. opacity: 1;
  16924. border: 1px solid #cad1dc;
  16925. }
  16926. .file {
  16927. display: flex;
  16928. flex-direction: column;
  16929. align-items: center;
  16930. justify-content: center;
  16931. cursor: pointer;
  16932. width: 200px;
  16933. }
  16934. .file div {
  16935. margin-top: 10px;
  16936. width: 150px;
  16937. text-align: center;
  16938. overflow: hidden;
  16939. white-space: nowrap;
  16940. text-overflow: ellipsis;
  16941. }
  16942. .media {
  16943. display: flex;
  16944. flex-direction: column;
  16945. align-items: center;
  16946. justify-content: center;
  16947. margin: 0 20px 20px 0;
  16948. cursor: pointer;
  16949. margin: 12px 0 5px 15px;
  16950. overflow: hidden;
  16951. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  16952. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  16953. box-sizing: border-box;
  16954. }
  16955. .media img {
  16956. height: 90px;
  16957. width: 160px;
  16958. object-fit: cover;
  16959. }
  16960. .media .title {
  16961. padding: 5px;
  16962. text-align: left;
  16963. width: 100%;
  16964. box-sizing: border-box;
  16965. }
  16966. .media .btn {
  16967. width: 100%;
  16968. height: 35px;
  16969. line-height: 35px;
  16970. color: #fff;
  16971. background: #606060;
  16972. text-align: center;
  16973. overflow: hidden;
  16974. white-space: nowrap;
  16975. text-overflow: ellipsis;
  16976. }
  16977. .detail_content_top {
  16978. width: 100%;
  16979. padding: 25px 0 25px 0;
  16980. }
  16981. .detail_title {
  16982. text-align: center;
  16983. font-size: 24px;
  16984. }
  16985. .detail_time {
  16986. font-size: 13px;
  16987. padding: 15px 0 0 40px;
  16988. }
  16989. .detail_content {
  16990. line-height: 2pc;
  16991. width: 90%;
  16992. margin: 0 auto;
  16993. padding-top: 30px;
  16994. text-indent: 30px;
  16995. overflow: auto;
  16996. height: 200px;
  16997. }
  16998. .score_box >>> .el-rate {
  16999. margin-left: 10px;
  17000. }
  17001. .dialog_change >>> .el-dialog {
  17002. border-radius: 5px;
  17003. }
  17004. .dialog_change >>> .el-dialog__header {
  17005. background: #f2f2f2;
  17006. text-align: center;
  17007. }
  17008. .dialog_change >>> .el-dialog__title {
  17009. line-height: 5px;
  17010. }
  17011. .dialog_change >>> .el-dialog__body {
  17012. background: #fff;
  17013. padding: 10px 20px;
  17014. }
  17015. .score_box {
  17016. display: flex;
  17017. align-items: center;
  17018. margin-bottom: 18px;
  17019. margin-top: 20px;
  17020. }
  17021. .up_photo {
  17022. width: 120px;
  17023. cursor: pointer;
  17024. margin-top: 10px;
  17025. }
  17026. .up_photo2 {
  17027. width: 180px;
  17028. box-sizing: border-box;
  17029. min-width: 180px;
  17030. height: 180px;
  17031. max-height: 180px;
  17032. min-height: 180px;
  17033. cursor: pointer;
  17034. display: flex;
  17035. flex-direction: column;
  17036. align-items: center;
  17037. justify-content: center;
  17038. background: rgb(242, 246, 255);
  17039. /* padding: 25px; */
  17040. margin-bottom: 10px;
  17041. }
  17042. .up_photo2 img {
  17043. width: 50%;
  17044. height: auto;
  17045. }
  17046. .up_photo2 span {
  17047. color: #898989;
  17048. }
  17049. .plworkBox {
  17050. display: flex;
  17051. align-items: center;
  17052. margin-top: 10px;
  17053. flex-wrap: wrap;
  17054. }
  17055. .upload_send {
  17056. margin: 30px auto 30px;
  17057. width: 60%;
  17058. background: #169bd6;
  17059. text-align: center;
  17060. height: 35px;
  17061. line-height: 35px;
  17062. color: #fff;
  17063. border-radius: 5px;
  17064. cursor: pointer;
  17065. }
  17066. .marginT {
  17067. margin-top: 20px;
  17068. }
  17069. .cd_content_steps {
  17070. display: flex;
  17071. width: 90%;
  17072. justify-content: space-around;
  17073. border-top: 1px solid #eeeeee;
  17074. }
  17075. .cd_steps_box {
  17076. display: flex;
  17077. justify-content: center;
  17078. align-items: center;
  17079. flex-direction: column;
  17080. cursor: pointer;
  17081. }
  17082. .first {
  17083. display: flex;
  17084. align-items: center;
  17085. margin: 15px 0 20px 0;
  17086. font-size: 20px;
  17087. }
  17088. .first > div:nth-child(2) {
  17089. font-size: 16px !important;
  17090. padding-left: 10px;
  17091. line-height: 26px;
  17092. box-sizing: border-box;
  17093. }
  17094. .blue_box_one {
  17095. text-align: center;
  17096. color: #fff;
  17097. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  17098. border-radius: 7px;
  17099. margin: 10px;
  17100. cursor: pointer;
  17101. width: 95%;
  17102. height: 45px;
  17103. display: flex;
  17104. flex-direction: row;
  17105. justify-content: flex-start;
  17106. align-items: center;
  17107. }
  17108. .blue_box_one > div:nth-child(1) {
  17109. line-height: 30px;
  17110. margin: 0 5px 0 10px;
  17111. width: 30%;
  17112. min-width: 70px;
  17113. border-radius: 4px;
  17114. }
  17115. .blue_box_one > div:nth-child(2) {
  17116. white-space: nowrap;
  17117. text-overflow: ellipsis;
  17118. overflow: hidden;
  17119. word-break: break-all;
  17120. width: 70%;
  17121. text-align: left;
  17122. margin-right: 10px;
  17123. max-width: calc(100% - 85px);
  17124. }
  17125. .blue_box_one > div:nth-child(2):hover {
  17126. overflow: hidden;
  17127. text-overflow: ellipsis;
  17128. white-space: nowrap;
  17129. cursor: pointer;
  17130. }
  17131. .upFile {
  17132. margin: 0 auto;
  17133. width: 120px;
  17134. background: #70afdb;
  17135. color: #fff;
  17136. height: 30px;
  17137. text-align: center;
  17138. line-height: 30px;
  17139. border-radius: 5px;
  17140. font-size: 14px;
  17141. cursor: pointer;
  17142. }
  17143. .courseTitle {
  17144. width: 85%;
  17145. margin: 10px auto;
  17146. display: flex;
  17147. flex-direction: row;
  17148. align-items: center;
  17149. justify-content: space-between;
  17150. text-align: center;
  17151. }
  17152. .courseTitle .ctitle {
  17153. font-size: 24px;
  17154. font-weight: bold;
  17155. color: #0e1e33;
  17156. white-space: nowrap;
  17157. overflow: hidden;
  17158. text-overflow: ellipsis;
  17159. }
  17160. .inviteBox {
  17161. font-size: 14px;
  17162. margin-top: 5px;
  17163. color: #a6cbff;
  17164. text-align: center;
  17165. }
  17166. .courseTitle >>> .el-tooltip {
  17167. width: 100%;
  17168. white-space: nowrap;
  17169. overflow: hidden;
  17170. text-overflow: ellipsis;
  17171. word-break: break-word;
  17172. }
  17173. .ml {
  17174. margin-left: 20px;
  17175. color: #5b7dba;
  17176. border-left: 3px solid #5b7dba;
  17177. padding-left: 5px;
  17178. font-weight: bold;
  17179. }
  17180. .return {
  17181. width: 2rem;
  17182. height: 2rem;
  17183. cursor: pointer;
  17184. }
  17185. .return > img {
  17186. width: 100%;
  17187. height: 100%;
  17188. }
  17189. .returnBtn {
  17190. width: 86px;
  17191. height: 36px;
  17192. background: #e7ebf1;
  17193. border-radius: 4px;
  17194. color: #717c8d;
  17195. text-align: center;
  17196. line-height: 36px;
  17197. margin-right: 20px;
  17198. cursor: pointer;
  17199. font-size: 14px;
  17200. font-weight: 400;
  17201. display: flex;
  17202. flex-direction: row;
  17203. flex-wrap: nowrap;
  17204. align-items: center;
  17205. justify-content: center;
  17206. }
  17207. .commentIcon::before,
  17208. .vedioIcon::before,
  17209. .lockIcon::before,
  17210. .returnIcon::before {
  17211. content: "";
  17212. display: block;
  17213. background-size: 100% 100%;
  17214. background-repeat: no-repeat;
  17215. width: 20px;
  17216. height: 20px;
  17217. margin-right: 5px;
  17218. }
  17219. .commentIcon::before {
  17220. background-image: url("../assets/icon/newIcon/comment.png");
  17221. }
  17222. .vedioIcon::before {
  17223. background-image: url("../assets/icon/newIcon/vedio.png");
  17224. }
  17225. .lockIcon::before {
  17226. background-image: url("../assets/icon/newIcon/lock.png");
  17227. }
  17228. .returnIcon::before {
  17229. background-image: url("../assets/icon/newIcon/return.png");
  17230. }
  17231. .tool {
  17232. display: flex;
  17233. flex-direction: column;
  17234. flex-wrap: nowrap;
  17235. width: 13%;
  17236. margin: 0 30px;
  17237. align-items: center;
  17238. }
  17239. .whiteBIcon {
  17240. width: 150px;
  17241. cursor: pointer;
  17242. }
  17243. .whiteBIcon > img {
  17244. width: 100%;
  17245. height: 100%;
  17246. }
  17247. .mask {
  17248. background-color: rgba(0, 0, 0, 0);
  17249. position: fixed;
  17250. top: 0;
  17251. left: 0;
  17252. width: 100%;
  17253. height: 100%;
  17254. z-index: 20000;
  17255. display: flex;
  17256. align-items: center;
  17257. justify-content: center;
  17258. }
  17259. .progressBox {
  17260. width: 500px;
  17261. height: 180px;
  17262. background: #fff;
  17263. border-radius: 10px;
  17264. box-shadow: 0 0 6px 1px #bfbfbf;
  17265. display: flex;
  17266. align-items: center;
  17267. justify-content: center;
  17268. flex-direction: column;
  17269. position: relative;
  17270. color: #6c6c6c;
  17271. }
  17272. .progressBox >>> .el-progress-bar__outer {
  17273. background-color: #d1dfff !important;
  17274. }
  17275. .progressBox .lbox {
  17276. height: 50px;
  17277. font-size: 19px;
  17278. display: flex;
  17279. align-items: center;
  17280. color: #747474;
  17281. }
  17282. .progressBox .lbox img {
  17283. width: 40px;
  17284. margin-right: 20px;
  17285. }
  17286. .closeCss {
  17287. position: absolute;
  17288. top: 8px;
  17289. right: 8px;
  17290. cursor: pointer;
  17291. width: 20px;
  17292. height: 20px;
  17293. }
  17294. .closeCss > img {
  17295. width: 100%;
  17296. height: 100%;
  17297. }
  17298. .uploadVedio {
  17299. display: flex;
  17300. flex-direction: column;
  17301. flex-wrap: nowrap;
  17302. justify-content: center;
  17303. align-items: center;
  17304. margin: 0 15px 10px 0;
  17305. }
  17306. .uploadVedio > img {
  17307. width: 30px;
  17308. height: 30px;
  17309. }
  17310. .uploadVedio > span {
  17311. white-space: nowrap;
  17312. overflow: hidden;
  17313. text-overflow: ellipsis;
  17314. width: 75px;
  17315. margin-top: 7px;
  17316. }
  17317. .picName {
  17318. white-space: nowrap;
  17319. overflow: hidden;
  17320. text-overflow: ellipsis;
  17321. width: 75px;
  17322. margin-top: 7px;
  17323. }
  17324. .new_top {
  17325. display: flex;
  17326. background: #fff;
  17327. flex-direction: row;
  17328. justify-content: flex-start;
  17329. align-items: center;
  17330. height: 60px;
  17331. position: relative;
  17332. }
  17333. .new_top::before {
  17334. content: "";
  17335. width: 100%;
  17336. height: 20px;
  17337. position: absolute;
  17338. top: -20px;
  17339. display: block;
  17340. background: #f2f2f2;
  17341. }
  17342. .before {
  17343. position: absolute;
  17344. background: #c3dad4;
  17345. width: 6px;
  17346. height: 100%;
  17347. }
  17348. .courseIndex {
  17349. display: flex;
  17350. flex-direction: row;
  17351. align-items: center;
  17352. width: calc(100% - 600px);
  17353. }
  17354. .courseIndex > div:nth-child(1) {
  17355. margin: 0 0 0 10px;
  17356. font-size: 24px;
  17357. min-width: 100px;
  17358. font-weight: bold;
  17359. border-left: 4px solid #3363b9;
  17360. height: 35px;
  17361. text-align: center;
  17362. line-height: 35px;
  17363. }
  17364. .courseIndex > div:nth-child(2) {
  17365. font-size: 23px;
  17366. /* width: 300px; */
  17367. max-width: calc(100% - 180px);
  17368. white-space: nowrap;
  17369. overflow: hidden;
  17370. text-overflow: ellipsis;
  17371. }
  17372. .courseIndex > div:nth-child(3) {
  17373. border-bottom: 1px solid #d7d7d7;
  17374. padding-bottom: 5px;
  17375. background: #49a0f0;
  17376. width: 55px;
  17377. min-width: 55px;
  17378. border-radius: 5px;
  17379. color: #fff;
  17380. text-align: center;
  17381. height: 20px;
  17382. line-height: 26px;
  17383. font-size: 14px;
  17384. margin: 0 0 0 10px;
  17385. }
  17386. .course_text {
  17387. padding: 20px 0 0 15px;
  17388. text-indent: 30px;
  17389. width: 80%;
  17390. min-height: 20px;
  17391. }
  17392. .vedioList {
  17393. background: #f2f2f2;
  17394. border: 1px solid #ececec;
  17395. /* width: 38.8%; */
  17396. width: 300px;
  17397. height: 445px;
  17398. border-radius: 10px;
  17399. overflow: hidden;
  17400. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  17401. }
  17402. .vedioNav {
  17403. margin: 10px 0 0 15px;
  17404. border-bottom: 1px solid #d7d7d7;
  17405. padding-bottom: 5px;
  17406. background: #96d1ff;
  17407. width: 55px;
  17408. min-width: 55px;
  17409. border-radius: 5px;
  17410. color: #fff;
  17411. text-align: center;
  17412. height: 20px;
  17413. line-height: 26px;
  17414. font-size: 14px;
  17415. }
  17416. .queTop {
  17417. display: flex;
  17418. padding: 20px 0 20px 30px;
  17419. width: 100%;
  17420. flex-direction: row;
  17421. justify-content: flex-start;
  17422. align-items: center;
  17423. box-sizing: border-box;
  17424. }
  17425. .queTop::before {
  17426. content: "";
  17427. width: 2px;
  17428. height: 22px;
  17429. background: #3681fc;
  17430. border-radius: 3px;
  17431. display: block;
  17432. margin: 2px 6px 0 0;
  17433. }
  17434. .question {
  17435. width: 40px;
  17436. margin-right: 10px;
  17437. margin-top: 7px;
  17438. }
  17439. .queTitle {
  17440. margin-left: 5px;
  17441. font-size: 25px;
  17442. display: flex;
  17443. align-items: center;
  17444. }
  17445. .addEditor {
  17446. width: 100px;
  17447. height: 30px;
  17448. background: #42cda6;
  17449. color: #fff;
  17450. border-radius: 5px;
  17451. text-align: center;
  17452. line-height: 30px;
  17453. box-shadow: 1px 3px 6px 1px #bfbfbf;
  17454. cursor: pointer;
  17455. }
  17456. /* .vedioName {
  17457. cursor: pointer;
  17458. margin: 0px 0px 10px 5px;
  17459. white-space: nowrap;
  17460. overflow: hidden;
  17461. text-overflow: ellipsis;
  17462. width: 100%;
  17463. } */
  17464. .vedioTime {
  17465. width: 35px;
  17466. position: absolute;
  17467. color: #fff;
  17468. bottom: 0px;
  17469. right: 0px;
  17470. text-align: center;
  17471. background: #46411f;
  17472. height: 20px;
  17473. font-size: 14px;
  17474. line-height: 20px;
  17475. }
  17476. .homework {
  17477. width: 200px;
  17478. display: flex;
  17479. flex-direction: column;
  17480. flex-wrap: nowrap;
  17481. align-items: center;
  17482. cursor: pointer;
  17483. }
  17484. .homebox {
  17485. display: flex;
  17486. flex-wrap: wrap;
  17487. flex-direction: row;
  17488. justify-content: flex-start;
  17489. align-items: center;
  17490. padding: 15px 0;
  17491. }
  17492. .isChooseActive {
  17493. color: #3681fc !important;
  17494. font-weight: bold !important;
  17495. }
  17496. .chooseWho {
  17497. display: flex;
  17498. width: 100%;
  17499. flex-direction: row;
  17500. flex-wrap: nowrap;
  17501. justify-content: flex-start;
  17502. padding-bottom: 10px;
  17503. }
  17504. .chooseWho > div {
  17505. cursor: pointer;
  17506. padding-bottom: 10px;
  17507. margin: 0 30px 0 0;
  17508. font-weight: 400;
  17509. color: #0e1e33;
  17510. }
  17511. .addPoint > div > img {
  17512. cursor: pointer;
  17513. width: 85px;
  17514. border-radius: 15px;
  17515. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  17516. }
  17517. .addPoint > div {
  17518. display: flex;
  17519. flex-direction: column;
  17520. flex-wrap: nowrap;
  17521. align-items: center;
  17522. }
  17523. .isBorder > div {
  17524. margin: 0 0 10px 0;
  17525. align-items: flex-start !important;
  17526. }
  17527. .noiframeBox {
  17528. display: flex;
  17529. flex-wrap: wrap;
  17530. }
  17531. .iframeBox iframe {
  17532. width: 100%;
  17533. height: 800px;
  17534. border: none;
  17535. margin-bottom: 20px;
  17536. border: 1px solid #ccc;
  17537. }
  17538. .upload_toolBtn {
  17539. background: #6b92c9;
  17540. color: #fff;
  17541. width: 110px;
  17542. text-align: center;
  17543. height: 35px;
  17544. line-height: 35px;
  17545. font-size: 14px;
  17546. border-radius: 5px;
  17547. cursor: pointer;
  17548. position: absolute;
  17549. right: 10px;
  17550. bottom: 0;
  17551. }
  17552. .binfo_input,
  17553. .pj {
  17554. font: inherit;
  17555. color: currentColor;
  17556. width: 100%;
  17557. margin: 0;
  17558. padding: 15px 14px;
  17559. display: block;
  17560. min-width: 0;
  17561. outline: none;
  17562. box-sizing: content-box;
  17563. background: none;
  17564. -webkit-tap-highlight-color: transparent;
  17565. border: 1px solid rgba(0, 0, 0, 0.23);
  17566. border-radius: 4px;
  17567. box-sizing: border-box;
  17568. resize: none;
  17569. }
  17570. .binfo_input:focus-visible {
  17571. border: 1px solid rgba(61, 103, 188);
  17572. }
  17573. .dialog_diy >>> .el-dialog__header,
  17574. .dialog_diy1 >>> .el-dialog__header {
  17575. background: #454545 !important;
  17576. padding: 15px 20px;
  17577. }
  17578. .dialog_diy >>> .el-dialog__title,
  17579. .dialog_diy1 >>> .el-dialog__title {
  17580. color: #fff;
  17581. }
  17582. .dialog_diy >>> .el-dialog__headerbtn,
  17583. .dialog_diy1 >>> .el-dialog__headerbtn {
  17584. top: 19px;
  17585. }
  17586. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  17587. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  17588. color: #fff;
  17589. }
  17590. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  17591. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  17592. color: #fff;
  17593. }
  17594. .dialog_diy1 >>> .el-dialog__body {
  17595. padding: 0;
  17596. }
  17597. .dialog_diy >>> .el-dialog__body,
  17598. .dialog_diy >>> .el-dialog__footer,
  17599. .dialog_diy1 >>> .el-dialog__footer {
  17600. background: #fafafa;
  17601. }
  17602. .a_addBox {
  17603. margin: 10px 0;
  17604. background: #fff;
  17605. padding: 15px;
  17606. }
  17607. .a_add_box {
  17608. border-bottom: 2px solid #eee;
  17609. padding-bottom: 10px;
  17610. }
  17611. .a_add_head {
  17612. display: flex;
  17613. align-items: flex-start;
  17614. /* justify-content: space-between; */
  17615. flex-direction: column;
  17616. /* flex-direction: row; */
  17617. margin: 10px 0 20px 0;
  17618. font-size: 18px;
  17619. width: 100%;
  17620. }
  17621. .a_add_head .a_add_head_input {
  17622. width: 300px;
  17623. }
  17624. .a_add_head .a_add_head_div {
  17625. display: flex;
  17626. align-items: center;
  17627. justify-content: space-between;
  17628. }
  17629. .a_add_body {
  17630. display: flex;
  17631. align-items: center;
  17632. }
  17633. .a_add_input {
  17634. display: flex;
  17635. align-items: center;
  17636. flex-wrap: wrap;
  17637. }
  17638. .a_add_input >>> el-radio-group {
  17639. margin: 10px 0;
  17640. }
  17641. .a_add_input >>> .el-radio,
  17642. .a_add_input >>> .el-checkbox {
  17643. margin-bottom: 10px;
  17644. display: flex;
  17645. flex-direction: row;
  17646. flex-wrap: nowrap;
  17647. align-items: center;
  17648. }
  17649. .redioStyle >>> .el-radio__label {
  17650. font-size: 18px;
  17651. }
  17652. .redioStyle >>> .el-checkbox__label {
  17653. font-size: 18px;
  17654. }
  17655. .toolHeng2 {
  17656. width: 100%;
  17657. padding-left: 37px;
  17658. box-sizing: border-box;
  17659. }
  17660. .workNav {
  17661. font-size: 20px;
  17662. font-weight: bold;
  17663. color: #0e1e33;
  17664. display: flex;
  17665. flex-direction: row;
  17666. flex-wrap: nowrap;
  17667. align-items: center;
  17668. padding: 24px 0 15px 0;
  17669. }
  17670. .workNav::before {
  17671. content: "";
  17672. width: 2px;
  17673. height: 22px;
  17674. background: #3681fc;
  17675. border-radius: 3px;
  17676. display: block;
  17677. margin: 2px 6px 0 0;
  17678. }
  17679. .toolHeng {
  17680. display: flex;
  17681. flex-direction: row;
  17682. flex-wrap: wrap;
  17683. justify-content: flex-start;
  17684. align-items: center;
  17685. width: 100%;
  17686. }
  17687. .toolHeng > div {
  17688. padding-left: 20px;
  17689. }
  17690. .isWidth {
  17691. width: 20%;
  17692. }
  17693. .textTitle {
  17694. display: flex;
  17695. flex-direction: row;
  17696. flex-wrap: nowrap;
  17697. align-items: center;
  17698. width: 95%;
  17699. }
  17700. .textTitle >>> .el-form-item__label {
  17701. font-size: 22px;
  17702. color: #918f8f;
  17703. width: 100px;
  17704. }
  17705. .textTitle >>> .el-form-item__content {
  17706. width: calc(100% - 100px);
  17707. }
  17708. .textCss >>> .el-dialog {
  17709. width: 800px !important;
  17710. height: 400px;
  17711. background: #fafafa;
  17712. }
  17713. .textCss >>> .el-dialog__body {
  17714. margin: 55px 8% 0 8%;
  17715. padding: 0 !important;
  17716. }
  17717. .textCss >>> .el-dialog__footer {
  17718. padding-top: 38px;
  17719. }
  17720. .toolsCss >>> .el-dialog__body {
  17721. padding: 20px;
  17722. }
  17723. .lineCss >>> .el-dialog__body {
  17724. display: flex;
  17725. flex-direction: row;
  17726. align-items: center;
  17727. justify-content: center;
  17728. }
  17729. .newNav {
  17730. display: flex;
  17731. flex-direction: row;
  17732. align-items: baseline;
  17733. justify-content: flex-start;
  17734. }
  17735. .navListItem {
  17736. width: 280px;
  17737. height: 50px;
  17738. margin: 0px auto 10px;
  17739. display: flex;
  17740. flex-direction: row;
  17741. flex-wrap: nowrap;
  17742. align-items: center;
  17743. justify-content: space-between;
  17744. background: #f0f4fa;
  17745. border-radius: 6px 6px 6px 6px;
  17746. }
  17747. .navText {
  17748. cursor: pointer;
  17749. white-space: nowrap;
  17750. overflow: hidden;
  17751. text-overflow: ellipsis;
  17752. width: 220px;
  17753. padding: 0 10px;
  17754. font-weight: 400;
  17755. color: #0e1e33;
  17756. }
  17757. .downIcon {
  17758. width: 20px;
  17759. height: 20px;
  17760. margin-right: 15px;
  17761. cursor: pointer;
  17762. }
  17763. .downIcon > img {
  17764. width: 100%;
  17765. height: 100%;
  17766. }
  17767. .noVedio {
  17768. display: flex;
  17769. flex-direction: row;
  17770. justify-content: center;
  17771. align-content: center;
  17772. }
  17773. .noNavText {
  17774. cursor: pointer;
  17775. margin: 0px 0px 10px 5px;
  17776. width: 112px;
  17777. }
  17778. .listNoVedio {
  17779. margin: 0 0 0 30px;
  17780. width: 97%;
  17781. }
  17782. .video-player >>> .video-js {
  17783. height: 100%;
  17784. }
  17785. .hangVedioList {
  17786. width: 90% !important;
  17787. height: 150px !important;
  17788. margin: 20px 0 0 30px;
  17789. }
  17790. .hangVedio {
  17791. width: 100%;
  17792. height: 170px !important;
  17793. align-items: flex-start !important;
  17794. }
  17795. .hangHand {
  17796. height: 150px !important;
  17797. }
  17798. .twoChild {
  17799. width: 95%;
  17800. margin: 10px;
  17801. border-radius: 5px;
  17802. background: #f2f2f2;
  17803. display: flex;
  17804. flex-direction: column;
  17805. flex-wrap: nowrap;
  17806. justify-content: flex-start;
  17807. align-items: flex-start;
  17808. transition: all 0.5s;
  17809. overflow: hidden;
  17810. height: 0;
  17811. background: #e7f3ff;
  17812. }
  17813. .twoChild > div:nth-child(1) {
  17814. margin-top: 5px;
  17815. }
  17816. .navChild {
  17817. width: 100%;
  17818. cursor: pointer;
  17819. margin-bottom: 10px;
  17820. position: relative;
  17821. }
  17822. .navChild img {
  17823. position: absolute;
  17824. right: 11px;
  17825. width: 15px;
  17826. top: 50%;
  17827. transform: translateY(-50%);
  17828. }
  17829. .navActive {
  17830. height: auto !important;
  17831. overflow: auto !important;
  17832. padding-bottom: 16px;
  17833. }
  17834. .navTask {
  17835. display: flex;
  17836. flex-direction: row;
  17837. flex-wrap: nowrap;
  17838. align-items: center;
  17839. align-content: flex-start;
  17840. height: 40px;
  17841. justify-content: flex-start;
  17842. padding: 0 10px;
  17843. width: 100%;
  17844. box-sizing: border-box;
  17845. }
  17846. .navTaskname {
  17847. white-space: nowrap;
  17848. text-overflow: ellipsis;
  17849. overflow: hidden;
  17850. word-break: break-all;
  17851. padding-left: 5px;
  17852. }
  17853. .openTaskActive {
  17854. background-color: #3681fc !important;
  17855. }
  17856. .iframeName {
  17857. margin: 5px 0;
  17858. border-left: 4px solid #41c4a4;
  17859. padding-left: 4px;
  17860. }
  17861. .toolTitle {
  17862. margin: 0px 0px 20px;
  17863. font-size: 20px;
  17864. font-weight: 500;
  17865. border-left: 4px solid #41c4a4;
  17866. padding-left: 4px;
  17867. }
  17868. .cru_selectBox {
  17869. overflow: auto;
  17870. width: 90%;
  17871. margin: 17px auto 0;
  17872. height: calc(100% - 40px - 21px - 20px - 17px);
  17873. background: #f0f4fa;
  17874. border-radius: 8px;
  17875. }
  17876. .cru_selectBox::-webkit-scrollbar,
  17877. .study_top::-webkit-scrollbar,
  17878. .textContent::-webkit-scrollbar {
  17879. /*滚动条整体样式*/
  17880. width: 6px;
  17881. /*高宽分别对应横竖滚动条的尺寸*/
  17882. height: 6px;
  17883. }
  17884. /*定义滚动条轨道 内阴影+圆角*/
  17885. .cru_selectBox::-webkit-scrollbar-track,
  17886. .study_top::-webkit-scrollbar-track,
  17887. .textContent::-webkit-scrollbar {
  17888. border-radius: 10px;
  17889. background-color: #b8bdc9;
  17890. }
  17891. /*定义滑块 内阴影+圆角*/
  17892. .cru_selectBox::-webkit-scrollbar-thumb,
  17893. .study_top::-webkit-scrollbar-thumb,
  17894. .textContent::-webkit-scrollbar-thumb {
  17895. border-radius: 10px;
  17896. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  17897. background-color: #2c5ab3;
  17898. }
  17899. .vedioBox {
  17900. border-radius: 20px;
  17901. background: #fff;
  17902. margin-bottom: 10px;
  17903. overflow: auto;
  17904. }
  17905. .taskBox {
  17906. width: 95%;
  17907. margin: 0 auto;
  17908. }
  17909. .vedioTaskBox {
  17910. width: 100%;
  17911. display: flex;
  17912. flex-direction: row;
  17913. flex-wrap: nowrap;
  17914. align-items: flex-start;
  17915. position: relative;
  17916. }
  17917. .toolBox {
  17918. padding: 30px 0 0 25px;
  17919. display: flex;
  17920. }
  17921. .btnAll {
  17922. position: absolute;
  17923. right: 0;
  17924. display: flex;
  17925. flex-direction: row;
  17926. flex-wrap: nowrap;
  17927. align-items: center;
  17928. }
  17929. /* .vedioTimeBox {
  17930. display: flex;
  17931. flex-direction: row;
  17932. align-items: center;
  17933. flex-wrap: nowrap;
  17934. position: relative;
  17935. } */
  17936. .navBox {
  17937. background: #fff;
  17938. height: calc(100% - 40px);
  17939. overflow-y: auto;
  17940. overflow-x: hidden;
  17941. }
  17942. .worksBox {
  17943. padding: 20px 0 0 10px;
  17944. border-bottom: 1px solid #eeeeee;
  17945. width: 96%;
  17946. margin: 0 auto;
  17947. }
  17948. .worksBTitle {
  17949. font-size: 20px;
  17950. padding-bottom: 15px;
  17951. border-bottom: 1px solid #eeeeee;
  17952. display: flex;
  17953. align-items: center;
  17954. }
  17955. .greenBox {
  17956. width: 5px;
  17957. height: 30px;
  17958. background: #63b6fa;
  17959. margin-right: 5px;
  17960. }
  17961. .worksDetailBox {
  17962. display: flex;
  17963. width: 100%;
  17964. flex-direction: row;
  17965. flex-wrap: wrap;
  17966. align-items: flex-end;
  17967. justify-content: flex-start;
  17968. padding: 15px 0;
  17969. }
  17970. .works {
  17971. display: flex;
  17972. flex-direction: column;
  17973. flex-wrap: nowrap;
  17974. align-items: flex-start;
  17975. justify-content: flex-start;
  17976. align-content: center;
  17977. max-width: 240px;
  17978. width: calc(100% / 3 - 10px);
  17979. height: auto;
  17980. margin-right: 10px;
  17981. margin-bottom: 10px;
  17982. overflow: hidden;
  17983. height: 140px;
  17984. box-shadow: 0 0 6px 1px #dfdada;
  17985. border-radius: 15px;
  17986. }
  17987. .workImg {
  17988. width: 100%;
  17989. /* height: calc(100% - 40px); */
  17990. height: 105px;
  17991. position: relative;
  17992. }
  17993. .workImg > img {
  17994. width: 100%;
  17995. height: 100%;
  17996. object-fit: contain;
  17997. cursor: pointer;
  17998. }
  17999. .worksName {
  18000. height: 40px;
  18001. line-height: 40px;
  18002. display: flex;
  18003. width: 100%;
  18004. flex-direction: row;
  18005. flex-wrap: nowrap;
  18006. justify-content: space-between;
  18007. align-items: center;
  18008. margin: 0 0 0 10px;
  18009. }
  18010. .worksName > div:nth-child(1) {
  18011. width: 110px;
  18012. white-space: nowrap;
  18013. overflow: hidden;
  18014. text-overflow: ellipsis;
  18015. }
  18016. .worksName > div:nth-child(2) {
  18017. color: #b7b4b5;
  18018. }
  18019. .noWorksS {
  18020. padding: 15px 0;
  18021. display: flex;
  18022. flex-direction: row;
  18023. flex-wrap: wrap;
  18024. align-items: center;
  18025. justify-content: flex-start;
  18026. }
  18027. .noWorksName,
  18028. .isWorksName {
  18029. background: #7cbcf1;
  18030. color: #fff;
  18031. width: 90px;
  18032. height: 25px;
  18033. text-align: center;
  18034. line-height: 25px;
  18035. border-radius: 5px;
  18036. margin: 10px 15px 10px 0;
  18037. white-space: nowrap;
  18038. overflow: hidden;
  18039. padding: 5px;
  18040. text-overflow: ellipsis;
  18041. cursor: pointer;
  18042. }
  18043. .isWorksName {
  18044. background: #46a1eb !important;
  18045. width: 100px;
  18046. height: 40px;
  18047. line-height: 40px;
  18048. position: relative;
  18049. }
  18050. .noWorksName:hover {
  18051. background: #46a1eb !important;
  18052. }
  18053. .title {
  18054. background: #1e5cc9;
  18055. /* width: 98%; */
  18056. height: 45px;
  18057. color: #fff;
  18058. line-height: 45px;
  18059. padding-left: 20px;
  18060. box-sizing: border-box;
  18061. }
  18062. .textBox {
  18063. font-size: 20px;
  18064. width: 90%;
  18065. display: flex;
  18066. flex-direction: column;
  18067. align-items: center;
  18068. margin: 20px auto 0;
  18069. max-height: 500px;
  18070. overflow: auto;
  18071. }
  18072. .textContent {
  18073. font-size: 18px;
  18074. width: 95%;
  18075. max-width: 95%;
  18076. }
  18077. .answerBg {
  18078. background: url("../assets/icon/answerBgNew.png") no-repeat;
  18079. background-size: 100% 100%;
  18080. width: 100%;
  18081. height: 100%;
  18082. color: #fff;
  18083. text-align: center;
  18084. display: flex;
  18085. flex-direction: column;
  18086. flex-wrap: nowrap;
  18087. align-items: center;
  18088. position: relative;
  18089. justify-content: center;
  18090. }
  18091. .answerBg > div:nth-child(1) {
  18092. /* font-size: 22px;
  18093. padding: 25px 0 10px; */
  18094. }
  18095. .answerContent {
  18096. width: 215px;
  18097. max-height: 60px;
  18098. word-break: break-all;
  18099. text-align: center;
  18100. /* white-space: nowrap; */
  18101. overflow: hidden;
  18102. text-overflow: ellipsis;
  18103. /* padding: 23px 0 0; */
  18104. -webkit-line-clamp: 3;
  18105. -webkit-box-orient: vertical;
  18106. display: -webkit-box;
  18107. font-size: 15px;
  18108. cursor: pointer;
  18109. }
  18110. .elist_input_box {
  18111. display: flex;
  18112. align-items: flex-start;
  18113. flex-wrap: nowrap;
  18114. padding: 10px 0 15px 30px;
  18115. flex-direction: column;
  18116. }
  18117. .elist_input {
  18118. /* width: 40%; */
  18119. width: 45%;
  18120. margin: 20px 20px 0 20px;
  18121. }
  18122. .elist_input .elist_input_box input {
  18123. font: inherit;
  18124. color: currentColor;
  18125. width: 200px;
  18126. padding: 8px 14px;
  18127. display: block;
  18128. min-width: 0;
  18129. outline: none;
  18130. border: 1px solid rgba(0, 0, 0, 0.23);
  18131. border-radius: 4px;
  18132. box-sizing: border-box;
  18133. background: #fff;
  18134. margin: 0 20px 0 0;
  18135. }
  18136. .elist_input .elist_input_box span {
  18137. height: 36px;
  18138. line-height: 36px;
  18139. color: rgb(82, 82, 82);
  18140. }
  18141. .elist_input .elist_input_box .remove {
  18142. height: 20px;
  18143. width: 20px;
  18144. background-size: 100% 100%;
  18145. background-position: unset;
  18146. margin-left: 5px;
  18147. }
  18148. .elist_input_box >>> .el-rate {
  18149. display: flex;
  18150. height: 36px;
  18151. align-items: center;
  18152. }
  18153. .elist_input_box .elist_inptu_text {
  18154. min-height: 50px;
  18155. /* width: 500px;
  18156. max-height: 150px; */
  18157. width: 100%;
  18158. line-height: 50px;
  18159. color: rgb(82, 82, 82);
  18160. overflow: auto;
  18161. text-indent: 5px;
  18162. background: #f7f6f9;
  18163. border-radius: 10px;
  18164. }
  18165. .elist_input_box .elist_inptu_text input {
  18166. width: 500px;
  18167. }
  18168. .elist_input_box >>> .el-rate__icon {
  18169. font-size: 24px;
  18170. }
  18171. .isClick {
  18172. background: #4d9def;
  18173. }
  18174. .bzBox {
  18175. display: flex;
  18176. flex-direction: row;
  18177. align-items: center;
  18178. }
  18179. .bzBox .yCss {
  18180. width: 14px;
  18181. height: 14px;
  18182. background: #3681fc;
  18183. margin: 0 16px 0 7px;
  18184. border-radius: 50%;
  18185. }
  18186. .bzBox > div:nth-child(2) {
  18187. font-size: 18px;
  18188. font-weight: bold;
  18189. color: #0e1e33;
  18190. }
  18191. .navTitile {
  18192. padding: 0 0px 0 15px;
  18193. font-size: 16px;
  18194. font-weight: bold;
  18195. color: #0e1e33;
  18196. height: 40px;
  18197. line-height: 40px;
  18198. }
  18199. .isTypeOne {
  18200. width: 240px;
  18201. height: 170px;
  18202. /* border: 1px solid #f8f8f8; */
  18203. border-radius: 10px;
  18204. box-shadow: 0 0 6px 1px #dfdada;
  18205. }
  18206. .e_add_top {
  18207. display: flex;
  18208. justify-content: space-between;
  18209. padding: 20px 20px 0 20px;
  18210. border-radius: 3px;
  18211. background: #fff;
  18212. }
  18213. .e_add_title2 {
  18214. display: flex;
  18215. align-items: center;
  18216. }
  18217. .e_add_title2 span {
  18218. width: 40px;
  18219. }
  18220. .e_add_title {
  18221. display: flex;
  18222. align-items: center;
  18223. color: #b8b8b8;
  18224. font-size: 18px;
  18225. position: relative;
  18226. height: 40px;
  18227. }
  18228. .e_add_title span {
  18229. margin-right: 10px;
  18230. }
  18231. .e_add_title .el_input {
  18232. width: 300px;
  18233. }
  18234. .e_add_title >>> .el-input__inner {
  18235. width: 400px;
  18236. }
  18237. .e_add_btn {
  18238. }
  18239. .e_add_content {
  18240. display: flex;
  18241. width: 100%;
  18242. max-width: 650px;
  18243. height: 550px;
  18244. }
  18245. .e_add_list {
  18246. background: #fff;
  18247. height: 500px;
  18248. width: 210px;
  18249. position: relative;
  18250. margin: 15px 5px 0 0;
  18251. flex-shrink: 0;
  18252. display: flex;
  18253. flex-direction: column;
  18254. }
  18255. .e_add_list_title {
  18256. font-size: 20px;
  18257. width: 100%;
  18258. box-sizing: border-box;
  18259. padding: 15px 40px;
  18260. text-align: center;
  18261. border-bottom: 1px solid #eaeaea;
  18262. position: relative;
  18263. display: flex;
  18264. align-items: center;
  18265. justify-content: center;
  18266. height: 57px;
  18267. background: #f6f6f6;
  18268. }
  18269. .e_add_list_title span {
  18270. overflow: hidden;
  18271. white-space: nowrap;
  18272. text-overflow: ellipsis;
  18273. }
  18274. .e_add_list_title img {
  18275. position: absolute;
  18276. right: 15px;
  18277. width: 25px;
  18278. cursor: pointer;
  18279. top: 50%;
  18280. transform: translateY(-50%);
  18281. }
  18282. .e_add_list_body {
  18283. height: calc(100% - 187px);
  18284. overflow: auto;
  18285. }
  18286. .e_add_list_child {
  18287. width: 100%;
  18288. display: flex;
  18289. align-items: center;
  18290. justify-content: center;
  18291. position: relative;
  18292. box-sizing: border-box;
  18293. padding: 15px 40px;
  18294. text-align: center;
  18295. }
  18296. .e_add_list_child span {
  18297. overflow: hidden;
  18298. white-space: nowrap;
  18299. text-overflow: ellipsis;
  18300. cursor: pointer;
  18301. }
  18302. .e_add_list_child img {
  18303. position: absolute;
  18304. right: 10px;
  18305. width: 21px;
  18306. cursor: pointer;
  18307. top: 50%;
  18308. transform: translateY(-50%);
  18309. }
  18310. .e_add_list_child + .e_add_list_child {
  18311. border-top: 1px solid #eaeaea;
  18312. }
  18313. .e_add_list_child .active {
  18314. color: #409eff;
  18315. }
  18316. .e_add_list_btn {
  18317. position: absolute;
  18318. bottom: 0;
  18319. height: 50px;
  18320. background: rgb(120, 120, 254);
  18321. width: 100%;
  18322. color: #fff;
  18323. font-size: 16px;
  18324. text-align: center;
  18325. line-height: 50px;
  18326. cursor: pointer;
  18327. }
  18328. .e_add_list_detail {
  18329. position: absolute;
  18330. bottom: 0;
  18331. height: 130px;
  18332. background: rgb(120, 120, 254);
  18333. width: 100%;
  18334. color: #fff;
  18335. font-size: 16px;
  18336. display: flex;
  18337. align-items: center;
  18338. justify-content: center;
  18339. }
  18340. .e_add_list_detail textarea {
  18341. height: 90%;
  18342. width: 95%;
  18343. border: none;
  18344. resize: none;
  18345. outline: none;
  18346. padding: 5px;
  18347. box-sizing: border-box;
  18348. }
  18349. .e_add_list_pbox {
  18350. width: 100%;
  18351. max-width: 650px;
  18352. /* height: 600px; */
  18353. }
  18354. .e_add_list_pbox_title {
  18355. height: 50px;
  18356. background: #fff;
  18357. display: flex;
  18358. align-items: center;
  18359. width: 100%;
  18360. box-sizing: border-box;
  18361. padding: 0 20px;
  18362. }
  18363. .type_title {
  18364. font-size: 18px;
  18365. font-weight: 700;
  18366. }
  18367. .type_content {
  18368. font-size: 16px;
  18369. margin-left: 30px;
  18370. }
  18371. .type_content span + span {
  18372. margin-left: 20px;
  18373. }
  18374. .type_content span {
  18375. cursor: pointer;
  18376. padding-bottom: 5px;
  18377. box-sizing: border-box;
  18378. }
  18379. .type_content .active {
  18380. color: #409eff;
  18381. border-bottom: 2px solid #409eff;
  18382. }
  18383. .e_add_list_pbox_content {
  18384. height: calc(100% - 50px);
  18385. display: flex;
  18386. align-items: center;
  18387. width: 100%;
  18388. background: #fff;
  18389. }
  18390. .evaCss {
  18391. display: flex;
  18392. flex-direction: row;
  18393. flex-wrap: nowrap;
  18394. align-items: flex-start;
  18395. }
  18396. .cru_line {
  18397. position: absolute;
  18398. bottom: 0px;
  18399. transition: all 0.5s;
  18400. left: 0px;
  18401. width: 125px;
  18402. margin-left: -25px;
  18403. }
  18404. .isNoMessage {
  18405. width: 20%;
  18406. margin: 25% auto 0;
  18407. }
  18408. .isNoMessage > img {
  18409. width: 100%;
  18410. height: 100%;
  18411. }
  18412. .fullStyle >>> .el-dialog__body {
  18413. height: 100% !important;
  18414. }
  18415. .fullStyle >>> .el-dialog,
  18416. .fullStyle {
  18417. width: 100% !important;
  18418. max-width: 100% !important;
  18419. height: 100% !important;
  18420. margin: 0 !important;
  18421. }
  18422. .full_diy >>> .el-dialog {
  18423. margin: 0 !important;
  18424. height: 100%;
  18425. padding: 4px;
  18426. }
  18427. .full_diy >>> .el-dialog__body {
  18428. height: calc(100% - 100px);
  18429. }
  18430. .full_diy2 >>> .el-dialog__body {
  18431. height: calc(100% - 50px);
  18432. padding: 0;
  18433. }
  18434. .switchCss {
  18435. /* width: 100%; */
  18436. display: flex;
  18437. flex-direction: row;
  18438. flex-wrap: nowrap;
  18439. align-items: center;
  18440. /* justify-content: center; */
  18441. }
  18442. .isClickNav {
  18443. color: #499eef;
  18444. }
  18445. .commentImg {
  18446. width: 25px;
  18447. height: 25px;
  18448. cursor: pointer;
  18449. }
  18450. .commentImg > img {
  18451. width: 100%;
  18452. height: 100%;
  18453. }
  18454. .comment {
  18455. background: #f9f9f9;
  18456. border-radius: 0 0 4px 4px;
  18457. display: flex;
  18458. flex-direction: row;
  18459. flex-wrap: nowrap;
  18460. align-items: center;
  18461. justify-content: flex-end;
  18462. height: 35px;
  18463. }
  18464. .commentList {
  18465. display: flex;
  18466. flex-direction: row;
  18467. flex-wrap: nowrap;
  18468. align-items: center;
  18469. justify-content: center;
  18470. align-content: center;
  18471. /* margin-left: 15px; */
  18472. /* margin-left: 8px; */
  18473. }
  18474. .scoreImg {
  18475. width: 17px;
  18476. height: 17px;
  18477. }
  18478. .studentDetail {
  18479. display: flex;
  18480. flex-direction: row;
  18481. flex-wrap: nowrap;
  18482. /* align-items: center; */
  18483. align-items: flex-start;
  18484. }
  18485. .tx {
  18486. width: 50px;
  18487. }
  18488. .tx > img {
  18489. width: 100%;
  18490. height: 100%;
  18491. }
  18492. .nameAndTime {
  18493. display: flex;
  18494. flex-direction: column;
  18495. flex-wrap: nowrap;
  18496. align-items: flex-start;
  18497. margin-left: 10px;
  18498. }
  18499. .worksAnswer {
  18500. color: #4078dd;
  18501. margin: 10px 0;
  18502. font-size: 16px;
  18503. position: relative;
  18504. }
  18505. .worksAnswer > img {
  18506. width: 500px;
  18507. height: 300px;
  18508. object-fit: contain;
  18509. margin: 0 auto;
  18510. display: block;
  18511. }
  18512. .commentTop {
  18513. border-bottom: 1px solid #eaeaea;
  18514. padding-bottom: 10px;
  18515. }
  18516. .commentBox {
  18517. padding-top: 15px;
  18518. }
  18519. .pl {
  18520. font-size: 18px;
  18521. }
  18522. .plPerson {
  18523. width: 100%;
  18524. }
  18525. .plName {
  18526. display: flex;
  18527. flex-direction: row;
  18528. flex-wrap: nowrap;
  18529. align-items: baseline;
  18530. color: #78787a;
  18531. width: 100%;
  18532. }
  18533. .deleteComment {
  18534. cursor: pointer;
  18535. margin-left: auto;
  18536. color: #237ade;
  18537. }
  18538. .plContent {
  18539. margin-top: 5px;
  18540. }
  18541. .evalCss {
  18542. background: #fff;
  18543. font-size: 18px;
  18544. }
  18545. .nav {
  18546. color: #9d9d9d;
  18547. padding: 5px 0 15px 20px;
  18548. }
  18549. .middleBox {
  18550. padding: 5px 0 15px 20px;
  18551. }
  18552. .pfBox {
  18553. padding-bottom: 30px;
  18554. }
  18555. .nameAndrate {
  18556. display: flex;
  18557. flex-direction: row;
  18558. flex-wrap: nowrap;
  18559. align-items: center;
  18560. padding-bottom: 10px;
  18561. height: 30px;
  18562. line-height: 30px;
  18563. }
  18564. .nameAndrate > div {
  18565. margin-left: 10px;
  18566. color: #000;
  18567. height: 30px;
  18568. }
  18569. .nameAndrate >>> .el-rate__icon {
  18570. font-size: 28px !important;
  18571. }
  18572. .pfBox > div:nth-child(2) {
  18573. background: #f7f6f9;
  18574. width: 400px;
  18575. min-height: 45px;
  18576. border-radius: 10px;
  18577. font-size: 16px;
  18578. display: flex;
  18579. flex-wrap: wrap;
  18580. align-items: center;
  18581. padding: 10px 20px;
  18582. box-sizing: border-box;
  18583. color: #000;
  18584. }
  18585. .bz {
  18586. display: flex;
  18587. flex-direction: row;
  18588. flex-wrap: nowrap;
  18589. align-items: flex-start;
  18590. }
  18591. .bz > div {
  18592. padding: 0 10px;
  18593. }
  18594. .select_box2_title {
  18595. background: #fff;
  18596. border-radius: 5px;
  18597. padding: 15px 10px;
  18598. box-sizing: border-box;
  18599. margin-bottom: 10px;
  18600. display: flex;
  18601. flex-direction: row;
  18602. flex-wrap: nowrap;
  18603. align-items: center;
  18604. }
  18605. .select_box2_title > div:nth-child(2) {
  18606. margin-left: 10px;
  18607. color: #c4c4c4;
  18608. }
  18609. .select_box2_box {
  18610. display: flex;
  18611. height: 500px;
  18612. }
  18613. .select_box2_img {
  18614. width: calc(100% - 310px);
  18615. height: 100%;
  18616. overflow: auto;
  18617. background: #fff;
  18618. border-radius: 5px;
  18619. }
  18620. .select_box2_img img {
  18621. width: 100%;
  18622. }
  18623. .select_box2_answer {
  18624. background: #fff;
  18625. margin-left: 10px;
  18626. border-radius: 5px;
  18627. width: 300px;
  18628. overflow: auto;
  18629. height: 90%;
  18630. display: flex;
  18631. flex-direction: column;
  18632. align-items: flex-start;
  18633. padding-top: 10px;
  18634. box-sizing: border-box;
  18635. position: relative;
  18636. }
  18637. .select_answer_title {
  18638. padding: 0 0 15px 20px;
  18639. color: #c4c4c4;
  18640. }
  18641. .select_box2_answer_box {
  18642. margin: 0 0 10px 20px;
  18643. width: 85%;
  18644. display: flex;
  18645. flex-direction: row;
  18646. flex-wrap: nowrap;
  18647. align-items: center;
  18648. }
  18649. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  18650. color: #000;
  18651. }
  18652. .upAnswerCss {
  18653. position: absolute;
  18654. bottom: 15px;
  18655. right: 15px;
  18656. }
  18657. .upAnswerCss >>> .el-button {
  18658. width: 95px;
  18659. height: 35px;
  18660. line-height: 35px;
  18661. padding: 0;
  18662. }
  18663. .rightWidthCss {
  18664. width: 60%;
  18665. display: flex;
  18666. flex-direction: row;
  18667. align-items: flex-start;
  18668. }
  18669. .rightAnswer {
  18670. display: flex;
  18671. flex-direction: row;
  18672. flex-wrap: nowrap;
  18673. align-items: center;
  18674. color: red;
  18675. margin-bottom: 31px;
  18676. }
  18677. .rightAnswerCss {
  18678. display: flex;
  18679. flex-direction: column;
  18680. flex-wrap: nowrap;
  18681. padding-top: 60px;
  18682. }
  18683. .blueCss {
  18684. color: #767de1;
  18685. margin-left: 10px;
  18686. }
  18687. .redCss {
  18688. color: red;
  18689. }
  18690. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  18691. color: rgb(0 123 255) !important;
  18692. }
  18693. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  18694. color: rgb(0 123 255) !important;
  18695. }
  18696. .zuoyeYulan {
  18697. padding-top: 15px;
  18698. font-size: 18px;
  18699. display: flex;
  18700. align-items: flex-end;
  18701. }
  18702. .buttonA {
  18703. margin-left: 10px;
  18704. padding: 0;
  18705. }
  18706. .displayBox {
  18707. margin-bottom: 10px;
  18708. display: block;
  18709. border-bottom: 3px solid #eee;
  18710. display: flex;
  18711. align-items: center;
  18712. }
  18713. .easy_comment {
  18714. width: calc(100% - 90px);
  18715. margin-left: 10px;
  18716. display: flex;
  18717. flex-wrap: wrap;
  18718. }
  18719. .easy_comment > div {
  18720. border: 1px solid #4a4a4a;
  18721. color: #666;
  18722. border-radius: 15px;
  18723. padding: 5px 10px;
  18724. font-size: 16px;
  18725. margin-bottom: 10px;
  18726. margin-right: 5px;
  18727. cursor: pointer;
  18728. }
  18729. .easy_comment div:hover {
  18730. border: 1px solid #f7ba2a;
  18731. color: #c69217;
  18732. }
  18733. .xuan_right_box {
  18734. padding: 10px;
  18735. background: rgb(247, 247, 247);
  18736. margin: 10px 15px 10px 30px;
  18737. border-radius: 5px;
  18738. width: 90%;
  18739. }
  18740. .tool_right_box {
  18741. display: flex;
  18742. align-items: center;
  18743. }
  18744. .tool_right_box + .tool_right_box {
  18745. margin-top: 10px;
  18746. }
  18747. .right_box_xuan {
  18748. background: rgb(0 123 255);
  18749. color: #fff;
  18750. border-radius: 5px;
  18751. padding: 5px;
  18752. margin-left: 10px;
  18753. }
  18754. .pButton:hover {
  18755. opacity: 1 !important;
  18756. }
  18757. .pButton {
  18758. position: fixed;
  18759. /* right: 5%; */
  18760. /* bottom: 5%; */
  18761. color: #fff;
  18762. /* width: 50px;
  18763. height: 50px; */
  18764. /* border-radius: 50%; */
  18765. text-align: center;
  18766. /* line-height: 50px; */
  18767. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  18768. cursor: pointer;
  18769. z-index: 999;
  18770. right: 20px;
  18771. top: 110px;
  18772. width: 50px;
  18773. height: 50px;
  18774. background: #fff;
  18775. display: flex;
  18776. align-items: center;
  18777. justify-content: center;
  18778. box-shadow: 0px 0 8px 2px #c5c5c5;
  18779. border-radius: 5px;
  18780. }
  18781. .pzClass {
  18782. width: calc(100% - 340px);
  18783. }
  18784. .newDialogCss {
  18785. /* position: fixed;
  18786. right: 5%;
  18787. top: 50%;
  18788. width: 340px;
  18789. transform: translateY(-50%);
  18790. height: 60%;
  18791. box-shadow: 0px 0 8px 0px #555555;
  18792. border-radius: 15px;
  18793. z-index: 999; */
  18794. position: fixed;
  18795. right: 20px;
  18796. top: 101px;
  18797. width: 330px;
  18798. height: calc(100% - 80px);
  18799. z-index: 999;
  18800. background: #fff;
  18801. border-radius: 15px;
  18802. border-top-right-radius: 0px;
  18803. border-bottom-right-radius: 0px;
  18804. overflow: hidden;
  18805. }
  18806. .pzTop {
  18807. color: #fff;
  18808. background: #000;
  18809. display: flex;
  18810. flex-direction: row;
  18811. flex-wrap: nowrap;
  18812. align-items: center;
  18813. justify-content: space-between;
  18814. height: 40px;
  18815. border-radius: 15px 15px 0 0;
  18816. }
  18817. .pzTop2 .checkbox {
  18818. display: flex;
  18819. align-items: center;
  18820. padding: 15px 30px;
  18821. flex: 0 0 auto;
  18822. font-weight: bold;
  18823. border-bottom: 1px solid #eee;
  18824. justify-content: space-between;
  18825. }
  18826. .pzTop2 .check {
  18827. text-align: center;
  18828. cursor: pointer;
  18829. box-sizing: border-box;
  18830. display: flex;
  18831. }
  18832. .pzTop2 img {
  18833. width: 25px;
  18834. cursor: pointer;
  18835. }
  18836. .pzTop > div:nth-child(1) {
  18837. padding-left: 10px;
  18838. }
  18839. .pzTop > div:nth-child(2) {
  18840. width: 15px;
  18841. height: 15px;
  18842. padding-right: 10px;
  18843. cursor: pointer;
  18844. }
  18845. .pzTop > div:nth-child(2) > img {
  18846. width: 100%;
  18847. height: 100%;
  18848. }
  18849. .pzBox,
  18850. .noPzBox {
  18851. height: calc(100% - 60px);
  18852. /* background: #ededed; */
  18853. background: #fff;
  18854. /* border-radius: 0 0 15px 15px; */
  18855. }
  18856. .noPzBox {
  18857. display: flex;
  18858. flex-direction: column;
  18859. flex-wrap: nowrap;
  18860. justify-content: center;
  18861. align-items: center;
  18862. }
  18863. .pzList {
  18864. background: #f7f7f7;
  18865. width: 90%;
  18866. margin: 0 auto 15px;
  18867. border-radius: 5px;
  18868. }
  18869. .pzNavTop {
  18870. display: flex;
  18871. flex-direction: row;
  18872. flex-wrap: nowrap;
  18873. padding: 10px 10px 0 10px;
  18874. align-items: center;
  18875. }
  18876. .pzDelete {
  18877. cursor: pointer;
  18878. margin-left: auto;
  18879. font-size: 14px;
  18880. color: #afafaf;
  18881. }
  18882. .pzNavTop > div:nth-child(1) {
  18883. background: #3760af;
  18884. width: 35px;
  18885. height: 35px;
  18886. color: #fff;
  18887. text-align: center;
  18888. line-height: 35px;
  18889. border-radius: 50%;
  18890. font-size: 14px;
  18891. }
  18892. .pzNavTop > div:nth-child(2) {
  18893. font-size: 18px;
  18894. color: #959595;
  18895. margin-left: 5px;
  18896. }
  18897. .pzContent {
  18898. padding: 10px;
  18899. word-break: break-word;
  18900. }
  18901. .pzContent audio {
  18902. width: 100%;
  18903. }
  18904. .pzContent audio::-webkit-media-controls-panel {
  18905. background: #fff;
  18906. }
  18907. .pzListBox {
  18908. padding-top: 15px;
  18909. height: calc(100% - 110px);
  18910. overflow: auto;
  18911. }
  18912. .addPzButton {
  18913. position: relative;
  18914. margin-top: 3px;
  18915. width: 100%;
  18916. }
  18917. .addPzButton .img1 {
  18918. position: absolute;
  18919. top: 50%;
  18920. right: 25px;
  18921. transform: translateY(-50%);
  18922. height: 100%;
  18923. display: flex;
  18924. align-items: center;
  18925. }
  18926. .addPzButton .img1 div {
  18927. display: flex;
  18928. }
  18929. .addPzButton .img1 div img {
  18930. width: 28px;
  18931. margin-left: 10px;
  18932. cursor: pointer;
  18933. }
  18934. .addPzButton .img1 div span {
  18935. font-size: 14px;
  18936. margin: 4px 0 0 3px;
  18937. color: #afafaf;
  18938. }
  18939. .addPz {
  18940. background: #4b79ce;
  18941. width: 100px;
  18942. color: #fff;
  18943. font-size: 12px;
  18944. height: 30px;
  18945. margin: 0 auto;
  18946. text-align: center;
  18947. line-height: 30px;
  18948. border-radius: 10px;
  18949. cursor: pointer;
  18950. }
  18951. .addDialogCss {
  18952. position: fixed;
  18953. right: 37%;
  18954. top: 50%;
  18955. width: 600px;
  18956. transform: translateY(-50%);
  18957. height: 70%;
  18958. min-height: 450px;
  18959. box-shadow: 0px 0 8px 0px #555555;
  18960. border-radius: 15px;
  18961. z-index: 999;
  18962. }
  18963. .teacherPz {
  18964. display: flex;
  18965. flex-direction: row;
  18966. align-items: center;
  18967. flex-wrap: nowrap;
  18968. }
  18969. .teacherPzImg {
  18970. width: 30px;
  18971. height: 30px;
  18972. }
  18973. .teacherPzImg > img {
  18974. width: 100%;
  18975. height: 100%;
  18976. }
  18977. .addPzBox {
  18978. height: calc(100% - 40px);
  18979. background: #ededed;
  18980. }
  18981. .pzAudioClass {
  18982. margin: 15px 14px;
  18983. background: #fff;
  18984. height: 100%;
  18985. display: flex;
  18986. justify-content: center;
  18987. align-items: center;
  18988. }
  18989. .pzConText {
  18990. width: 95%;
  18991. height: 100%;
  18992. margin: 10px auto 0;
  18993. border: none;
  18994. background: #fff;
  18995. border-radius: 0px;
  18996. }
  18997. .pzConText >>> .text {
  18998. height: calc(100% - 82px);
  18999. }
  19000. .addTextCss {
  19001. background: #4b79ce;
  19002. width: 80px;
  19003. height: 30px;
  19004. text-align: center;
  19005. color: #fff;
  19006. line-height: 30px;
  19007. border-radius: 10px;
  19008. margin: 10px auto 0;
  19009. cursor: pointer;
  19010. }
  19011. .pzConText:focus-visible {
  19012. border: none !important;
  19013. }
  19014. .maxWidth {
  19015. width: 1000px;
  19016. }
  19017. .noPz {
  19018. width: 150px;
  19019. margin: 0 auto 20%;
  19020. }
  19021. .noPz > img {
  19022. width: 100%;
  19023. height: 100%;
  19024. }
  19025. .pzList .time {
  19026. text-align: right;
  19027. box-sizing: border-box;
  19028. padding: 0 10px 10px 0px;
  19029. color: #949494;
  19030. font-size: 14px;
  19031. }
  19032. /* table 样式 */
  19033. .cont >>> table {
  19034. border-top: 1px solid #ccc;
  19035. border-left: 1px solid #ccc;
  19036. }
  19037. .cont >>> table td,
  19038. .cont >>> table th {
  19039. border-bottom: 1px solid #ccc;
  19040. border-right: 1px solid #ccc;
  19041. /* padding: 20px 5px; */
  19042. padding: 5px 10px;
  19043. max-width: 0px;
  19044. height: 30px;
  19045. vertical-align: baseline;
  19046. box-sizing: border-box;
  19047. }
  19048. .cont >>> table th {
  19049. border-bottom: 2px solid #ccc;
  19050. text-align: center;
  19051. }
  19052. /* blockquote 样式 */
  19053. .cont >>> blockquote {
  19054. display: block;
  19055. border-left: 8px solid #d0e5f2;
  19056. padding: 5px 10px;
  19057. margin: 10px 0;
  19058. line-height: 1.4;
  19059. font-size: 100%;
  19060. background-color: #f1f1f1;
  19061. }
  19062. /* code 样式 */
  19063. .cont >>> code {
  19064. display: inline-block;
  19065. *display: inline;
  19066. *zoom: 1;
  19067. background-color: #f1f1f1;
  19068. border-radius: 3px;
  19069. padding: 3px 5px;
  19070. margin: 0 3px;
  19071. }
  19072. .cont >>> pre code {
  19073. display: block;
  19074. }
  19075. /* ul ol 样式 */
  19076. .cont >>> ul,
  19077. ol {
  19078. margin: 10px 0 10px 20px;
  19079. }
  19080. .addPzCheck {
  19081. display: flex;
  19082. flex-direction: row;
  19083. flex-wrap: nowrap;
  19084. padding: 10px 15px 0;
  19085. }
  19086. .addPzCheck span {
  19087. cursor: pointer;
  19088. padding-bottom: 5px;
  19089. font-weight: bold;
  19090. }
  19091. .addPzCheck span + span {
  19092. margin-left: 10px;
  19093. }
  19094. .addPzCheck .isChooseActive {
  19095. color: #3e88f4;
  19096. border-bottom: 2px solid #2f80f3;
  19097. }
  19098. /* code 样式 */
  19099. .cont {
  19100. /* -webkit-user-modify: read-write; */
  19101. overflow-wrap: break-word;
  19102. -webkit-line-break: after-white-space;
  19103. }
  19104. .scoreBox,
  19105. .scoreDetailBox {
  19106. display: flex;
  19107. align-items: center;
  19108. justify-content: flex-start;
  19109. margin-top: 20px;
  19110. font-size: 18px;
  19111. width: 100%;
  19112. }
  19113. .scoreBox .t,
  19114. .scoreDetailBox .t {
  19115. margin-right: 10px;
  19116. width: 100px;
  19117. text-align: right;
  19118. }
  19119. .scoreDetailBox {
  19120. align-items: flex-start;
  19121. }
  19122. .scoreDetailBox >>> .el-textarea {
  19123. width: calc(100% - 200px);
  19124. }
  19125. .scoreBox >>> .el-input {
  19126. width: 130px;
  19127. font-size: 38px;
  19128. }
  19129. .scoreBox >>> .el-input__inner {
  19130. height: 60px;
  19131. }
  19132. .answerScore {
  19133. position: absolute;
  19134. top: 10px;
  19135. right: 10px;
  19136. background: #0000008f;
  19137. border-radius: 5px;
  19138. padding: 3px 5px;
  19139. font-size: 14px;
  19140. color: #fff;
  19141. cursor: pointer;
  19142. }
  19143. .open_box .switch_box {
  19144. width: 100%;
  19145. margin: 0 auto;
  19146. display: flex;
  19147. justify-content: space-between;
  19148. }
  19149. .open_box .switch_box + .switch_box {
  19150. margin-top: 10px;
  19151. }
  19152. .deleteImg {
  19153. width: 25px !important;
  19154. height: 25px !important;
  19155. cursor: pointer;
  19156. position: absolute;
  19157. top: 10px;
  19158. right: 10px;
  19159. }
  19160. .deleteImg2 {
  19161. width: 15px !important;
  19162. height: 15px !important;
  19163. top: 5px;
  19164. right: 5px;
  19165. }
  19166. .rightW {
  19167. right: 40px;
  19168. }
  19169. .drawPBox {
  19170. display: flex;
  19171. flex-direction: column;
  19172. position: relative;
  19173. }
  19174. .drawPBox span {
  19175. font-size: 18px;
  19176. color: #606266;
  19177. padding-bottom: 10px;
  19178. margin: 10px 0;
  19179. border-bottom: 1px solid #eaeaea;
  19180. }
  19181. .drawPBox img {
  19182. width: 500px;
  19183. height: 300px;
  19184. object-fit: contain;
  19185. cursor: pointer;
  19186. margin: 0 auto;
  19187. }
  19188. .sentenBox {
  19189. background: #fff;
  19190. height: 450px;
  19191. overflow: auto;
  19192. background-image: url("../assets/icon/conSentences/stuBg.png");
  19193. background-position: 102%;
  19194. background-repeat: no-repeat;
  19195. background-size: 60%;
  19196. }
  19197. .addSen {
  19198. background: #409efe;
  19199. width: 90px;
  19200. color: #fff;
  19201. height: 35px;
  19202. text-align: center;
  19203. line-height: 35px;
  19204. border-radius: 5px;
  19205. float: right;
  19206. margin: 10px 20px 0 0;
  19207. cursor: pointer;
  19208. }
  19209. .sentenTop {
  19210. display: flex;
  19211. flex-direction: row;
  19212. flex-wrap: nowrap;
  19213. align-items: center;
  19214. padding: 55px 0 0 20px;
  19215. box-sizing: border-box;
  19216. }
  19217. .sentenTop > div:nth-child(2) {
  19218. width: 300px;
  19219. margin: 0 15px;
  19220. }
  19221. .sentenTop > div:nth-child(3) {
  19222. background: #409efe;
  19223. color: #fff;
  19224. width: 65px;
  19225. height: 35px;
  19226. text-align: center;
  19227. line-height: 35px;
  19228. border-radius: 5px;
  19229. cursor: pointer;
  19230. }
  19231. .cardList,
  19232. .cardList1 {
  19233. padding: 10px 0 10px 0;
  19234. display: flex;
  19235. flex-direction: row;
  19236. flex-wrap: wrap;
  19237. align-items: center;
  19238. box-sizing: border-box;
  19239. border-bottom: 1px solid #f4f4f4;
  19240. width: 98%;
  19241. margin: 0 auto;
  19242. min-width: 60%;
  19243. max-width: 85%;
  19244. }
  19245. .cardList1 {
  19246. padding: 10px 0 10px 10px !important;
  19247. margin: 0 !important;
  19248. }
  19249. .cardBox {
  19250. display: flex;
  19251. flex-direction: row;
  19252. flex-wrap: wrap;
  19253. align-items: center;
  19254. align-content: center;
  19255. }
  19256. .cardBox > div {
  19257. margin-bottom: 10px;
  19258. }
  19259. .isCard,
  19260. .isChooseCard,
  19261. .noCard,
  19262. .isCard1 {
  19263. width: 130px;
  19264. height: 60px;
  19265. text-align: center;
  19266. line-height: 60px;
  19267. font-size: 20px;
  19268. cursor: pointer;
  19269. background-image: url("../assets/icon/conSentences/titleBorder.png");
  19270. background-size: cover;
  19271. transition: all 2s;
  19272. margin-right: 20px;
  19273. }
  19274. .isCard > div,
  19275. .noCard > div,
  19276. .isCard1 > div {
  19277. white-space: nowrap;
  19278. overflow: hidden;
  19279. text-overflow: ellipsis;
  19280. width: 75%;
  19281. margin: 0 auto;
  19282. }
  19283. .noCard {
  19284. background-image: none;
  19285. }
  19286. .isCard1 {
  19287. background-image: url("../assets/icon/conSentences/answerBorder.png");
  19288. }
  19289. .isChooseCard {
  19290. background-image: none;
  19291. border: 1px dashed #b9b9b9;
  19292. border-radius: 10px;
  19293. }
  19294. .card {
  19295. width: 130px;
  19296. height: 60px;
  19297. }
  19298. .card > img {
  19299. width: 100%;
  19300. height: 100%;
  19301. }
  19302. .rightCardBox {
  19303. margin: 10px 0 0 10px;
  19304. }
  19305. .rightCardBox > div:nth-child(1) {
  19306. margin-bottom: 10px;
  19307. }
  19308. .cardCss {
  19309. display: flex;
  19310. flex-direction: column;
  19311. flex-wrap: nowrap;
  19312. align-items: center;
  19313. border-bottom: 3px solid #b4c3d3;
  19314. padding: 0 0 5px 0;
  19315. margin-right: 10px;
  19316. }
  19317. .cardCss > div:nth-child(2) {
  19318. background: #5b7b9d;
  19319. color: #fff;
  19320. width: 20px;
  19321. height: 20px;
  19322. border-radius: 50%;
  19323. text-align: center;
  19324. line-height: 20px;
  19325. }
  19326. .isWrong {
  19327. display: flex;
  19328. flex-direction: row;
  19329. flex-wrap: nowrap;
  19330. align-content: center;
  19331. align-items: center;
  19332. }
  19333. .answerRight {
  19334. width: 25%;
  19335. }
  19336. .isTj {
  19337. display: flex;
  19338. flex-direction: row;
  19339. flex-wrap: nowrap;
  19340. align-items: center;
  19341. }
  19342. .isTj > div:nth-child(2) {
  19343. color: #727070;
  19344. margin-left: 10px;
  19345. }
  19346. .isTjImg {
  19347. width: 30px;
  19348. height: 30px;
  19349. }
  19350. .isTjImg > img {
  19351. width: 100%;
  19352. height: 100%;
  19353. }
  19354. .cardAnswerBox {
  19355. font-size: 18px;
  19356. width: 97%;
  19357. border: 5px;
  19358. padding: 0;
  19359. border-radius: 5px;
  19360. margin: 10px auto;
  19361. word-break: break-word;
  19362. }
  19363. .w_name {
  19364. margin-bottom: 10px;
  19365. }
  19366. .w_name span {
  19367. font-size: 16px;
  19368. }
  19369. .w_teachert {
  19370. width: 50px !important;
  19371. position: absolute;
  19372. height: auto !important;
  19373. z-index: 10;
  19374. right: 25px;
  19375. top: -25px;
  19376. }
  19377. .group_workBox {
  19378. }
  19379. .group_workBox + .group_workBox {
  19380. margin-top: 20px;
  19381. }
  19382. .group_box {
  19383. padding-bottom: 20px;
  19384. border-bottom: 2px solid #f0f0f0;
  19385. }
  19386. .group_title {
  19387. display: flex;
  19388. align-items: center;
  19389. justify-content: space-between;
  19390. width: 95%;
  19391. }
  19392. .group_name {
  19393. background-image: url(../assets/icon/groupN.png);
  19394. width: 220px;
  19395. background-size: 100% 100%;
  19396. height: 67px;
  19397. padding: 0 20px 0 43px;
  19398. box-sizing: border-box;
  19399. line-height: 63px;
  19400. color: #fff;
  19401. overflow: hidden;
  19402. white-space: nowrap;
  19403. text-overflow: ellipsis;
  19404. }
  19405. .group_work {
  19406. width: 100%;
  19407. padding: 0 10px;
  19408. box-sizing: border-box;
  19409. display: flex;
  19410. flex-wrap: wrap;
  19411. }
  19412. .g_d_box {
  19413. display: flex;
  19414. flex-flow: wrap;
  19415. justify-content: space-around;
  19416. }
  19417. .g_d_box .isChair {
  19418. background-image: url(../assets/avatar.png) !important;
  19419. }
  19420. .g_d_group {
  19421. width: 500px;
  19422. margin-bottom: 80px;
  19423. }
  19424. .g_d_group_chair {
  19425. display: flex;
  19426. align-items: center;
  19427. justify-content: center;
  19428. }
  19429. .g_d_group_chair > div + div {
  19430. margin-left: 30px;
  19431. }
  19432. .g_d_group_chair > div,
  19433. .g_d_group_chair2 > div {
  19434. display: flex;
  19435. flex-direction: column;
  19436. align-items: center;
  19437. }
  19438. .g_d_group_chair > div > span:nth-child(1),
  19439. .g_d_group_chair2 > div > span:nth-child(1) {
  19440. background-image: url(../assets/icon/chair.png);
  19441. width: 50px;
  19442. height: 50px;
  19443. display: block;
  19444. background-size: 100% 100%;
  19445. }
  19446. .g_d_group_tableBox {
  19447. display: flex;
  19448. align-items: center;
  19449. justify-content: center;
  19450. }
  19451. .g_d_group_chair2 {
  19452. display: flex;
  19453. flex-direction: column;
  19454. align-items: center;
  19455. justify-content: center;
  19456. }
  19457. .g_d_group_chair2 > div + div {
  19458. margin-top: 10px;
  19459. }
  19460. .g_d_group_table {
  19461. background-image: url(../assets/icon/groupBg.png);
  19462. width: 354px;
  19463. height: 196px;
  19464. background-size: 100% 100%;
  19465. display: flex;
  19466. align-items: center;
  19467. justify-content: center;
  19468. flex-direction: column;
  19469. color: #fff;
  19470. }
  19471. .g_d_group_table > div:nth-child(1) {
  19472. font-size: 24px;
  19473. margin-bottom: 5px;
  19474. }
  19475. .g_d_group_table > div:nth-child(2) div {
  19476. cursor: pointer;
  19477. background: #2e77bf;
  19478. padding: 4px 10px;
  19479. border-radius: 5px;
  19480. }
  19481. .groupBox {
  19482. }
  19483. .groupContent + .groupContent {
  19484. margin-top: 30px;
  19485. }
  19486. .groupTitle {
  19487. font-size: 24px;
  19488. color: rgb(80, 80, 80);
  19489. margin-bottom: 20px;
  19490. }
  19491. .groupName {
  19492. display: flex;
  19493. align-items: center;
  19494. }
  19495. .groupn {
  19496. font-size: 15px;
  19497. margin-right: 10px;
  19498. }
  19499. .groupName + .groupName {
  19500. margin-top: 15px;
  19501. }
  19502. .groupBtn {
  19503. margin-left: 10px;
  19504. }
  19505. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  19506. text-align: left;
  19507. }
  19508. .g_d_btnBox {
  19509. display: flex;
  19510. justify-content: flex-end;
  19511. align-items: center;
  19512. margin-bottom: 20px;
  19513. }
  19514. .updateChair {
  19515. position: relative;
  19516. }
  19517. .updateChairBtn {
  19518. position: absolute;
  19519. width: 50px;
  19520. height: 50px;
  19521. overflow: hidden;
  19522. /* display: flex; */
  19523. align-items: center;
  19524. justify-content: center;
  19525. background: #00000087;
  19526. color: #fff;
  19527. border-radius: 50px;
  19528. display: none;
  19529. cursor: pointer;
  19530. }
  19531. .updateChair:hover .updateChairBtn {
  19532. display: flex;
  19533. }
  19534. .group_staic_box {
  19535. display: flex;
  19536. padding: 30px 40px 10px;
  19537. flex-wrap: wrap;
  19538. }
  19539. .group_staic {
  19540. /* width: 50%; */
  19541. margin-bottom: 20px;
  19542. display: flex;
  19543. align-items: center;
  19544. }
  19545. .group_staic span:nth-child(1) {
  19546. width: 150px;
  19547. text-align: right;
  19548. margin-right: 15px;
  19549. }
  19550. .group_staic span:nth-child(2) {
  19551. background: rgb(0 123 255);
  19552. color: #fff;
  19553. border-radius: 5px;
  19554. padding: 5px;
  19555. }
  19556. .codeFileBox {
  19557. height: 300px;
  19558. background: #fff;
  19559. display: flex;
  19560. align-items: center;
  19561. justify-content: center;
  19562. }
  19563. .codeFileBox img {
  19564. width: 200px;
  19565. margin: 0;
  19566. height: auto;
  19567. }
  19568. .codeFileBox div {
  19569. background: rgb(80, 142, 226);
  19570. color: #fff;
  19571. padding: 10px 20px;
  19572. border-radius: 25px;
  19573. cursor: pointer;
  19574. margin-left: 15px;
  19575. }
  19576. .radioBox {
  19577. display: flex;
  19578. flex-direction: column;
  19579. flex-wrap: nowrap;
  19580. align-items: flex-start;
  19581. }
  19582. .radioBox > div {
  19583. margin: 10px 0 0 10px;
  19584. }
  19585. /* .radioBox >>> .el-radio__input,
  19586. .radioBox >>> .el-checkbox__inner {
  19587. margin-left: 10px;
  19588. } */
  19589. .radioBox >>> .el-radio__label,
  19590. .radioBox >>> .el-checkbox__label {
  19591. display: flex;
  19592. align-items: center;
  19593. }
  19594. .radioBox >>> .el-radio__label > span {
  19595. width: 100%;
  19596. display: -webkit-box;
  19597. overflow: hidden;
  19598. white-space: normal !important;
  19599. text-overflow: ellipsis;
  19600. word-wrap: break-word;
  19601. }
  19602. .inImg {
  19603. width: 100px;
  19604. cursor: pointer;
  19605. }
  19606. .inImg > img {
  19607. width: 100%;
  19608. height: 100%;
  19609. object-fit: cover;
  19610. }
  19611. .timuImgBox {
  19612. margin: 10px 0;
  19613. display: flex;
  19614. flex-direction: column;
  19615. flex-wrap: wrap;
  19616. align-items: flex-start;
  19617. }
  19618. .timuImg {
  19619. width: 150px;
  19620. margin: 5px 0;
  19621. cursor: pointer;
  19622. }
  19623. .timuImg > img {
  19624. width: 100%;
  19625. height: 100%;
  19626. object-fit: cover;
  19627. }
  19628. .worksTop {
  19629. display: flex;
  19630. flex-direction: row;
  19631. align-items: flex-end;
  19632. }
  19633. .corOpen {
  19634. margin: 0 0 0 10px;
  19635. font-size: 14px;
  19636. cursor: pointer;
  19637. color: #505050;
  19638. }
  19639. .corOpen:hover {
  19640. color: #499eef;
  19641. }
  19642. .navCorOpenBox {
  19643. display: flex;
  19644. flex-direction: row;
  19645. align-items: center;
  19646. justify-content: space-between;
  19647. height: 55px;
  19648. background: #ffffff;
  19649. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  19650. border-radius: 8px 8px 0px 0px;
  19651. z-index: 9;
  19652. position: relative;
  19653. }
  19654. .navCorOpen {
  19655. padding-right: 15px;
  19656. cursor: pointer;
  19657. width: 28px;
  19658. display: flex;
  19659. }
  19660. .navCorOpen > img {
  19661. width: 100%;
  19662. height: 100%;
  19663. }
  19664. .mlImg {
  19665. width: 25px !important;
  19666. min-width: 25px;
  19667. cursor: pointer;
  19668. transform: rotate(180deg);
  19669. }
  19670. .mlImg > img {
  19671. width: 100%;
  19672. height: 100%;
  19673. }
  19674. .navLeftCss {
  19675. width: 100% !important;
  19676. left: 0 !important;
  19677. }
  19678. .isContentCss {
  19679. width: 100% !important;
  19680. }
  19681. .isAllWidth {
  19682. width: 100% !important;
  19683. }
  19684. .group_switch {
  19685. margin-right: 10px;
  19686. height: 30px;
  19687. display: flex;
  19688. align-items: center;
  19689. }
  19690. .group_switch > span {
  19691. margin-right: 5px;
  19692. }
  19693. .fileC_box {
  19694. padding-top: 15px;
  19695. }
  19696. .fileC_box > .fileC_title {
  19697. padding: 10px 5px 14px 11px;
  19698. border-top: 1px solid #cad1dc;
  19699. font-size: 14px;
  19700. font-weight: 400;
  19701. color: #cad1dc;
  19702. width: 88%;
  19703. margin: 0 auto;
  19704. }
  19705. .pl_select_box {
  19706. height: 40px;
  19707. line-height: 40px;
  19708. width: 100%;
  19709. cursor: pointer;
  19710. padding: 0 20px;
  19711. box-sizing: border-box;
  19712. border-radius: 5px;
  19713. border: 1px solid #d6d6d6;
  19714. white-space: nowrap;
  19715. overflow: hidden;
  19716. text-overflow: ellipsis;
  19717. background: #fff;
  19718. text-align: left;
  19719. }
  19720. .newButton {
  19721. width: 102px;
  19722. height: 36px;
  19723. background: #e7ebf1;
  19724. border-radius: 4px;
  19725. color: #0e1e33;
  19726. font-weight: 400;
  19727. font-size: 14px;
  19728. border: none;
  19729. float: right;
  19730. margin-left: 10px;
  19731. }
  19732. .el-table >>> .even_row {
  19733. background-color: #f0f4fa;
  19734. }
  19735. .stageBoxCss {
  19736. display: flex;
  19737. flex-direction: row;
  19738. flex-wrap: nowrap;
  19739. align-items: center;
  19740. height: 50px;
  19741. border-bottom: 1px solid #e2f5fc;
  19742. cursor: pointer;
  19743. width: 100%;
  19744. }
  19745. .stageItemTitle {
  19746. display: flex;
  19747. flex-direction: row;
  19748. flex-wrap: nowrap;
  19749. align-items: center;
  19750. margin-left: 6px;
  19751. width: calc(100% - 60px);
  19752. }
  19753. .stageItemTitle > div:first-child {
  19754. color: #0e1e33;
  19755. font-size: 16px;
  19756. font-weight: bold;
  19757. min-width: 55px;
  19758. }
  19759. .stageItemTitle > div:last-child {
  19760. margin-left: 10px;
  19761. font-size: 14px;
  19762. font-weight: 400;
  19763. color: #acb4bf;
  19764. max-width: 190px;
  19765. white-space: nowrap;
  19766. overflow: hidden;
  19767. text-overflow: ellipsis;
  19768. word-break: break-word;
  19769. width: calc(100% - 55px);
  19770. }
  19771. .closeTri {
  19772. min-width: 20px;
  19773. width: 20px;
  19774. height: 20px;
  19775. padding-left: 15px;
  19776. }
  19777. .closeTri > img {
  19778. width: 100%;
  19779. height: 100%;
  19780. }
  19781. .stageChild {
  19782. height: 0;
  19783. overflow: hidden;
  19784. transition: all 0.5s;
  19785. }
  19786. .navItem {
  19787. background: #ffffff;
  19788. border-radius: 4px;
  19789. width: 90%;
  19790. margin: 16px auto 0;
  19791. position: relative;
  19792. }
  19793. .navItemList {
  19794. display: flex;
  19795. flex-direction: column;
  19796. flex-wrap: nowrap;
  19797. align-items: flex-start;
  19798. padding: 8px 13px;
  19799. cursor: pointer;
  19800. }
  19801. .navItemList > div:first-child {
  19802. font-size: 14px;
  19803. font-weight: 400;
  19804. color: #acb4bf;
  19805. padding-bottom: 4px;
  19806. }
  19807. .navItemList > div:last-child {
  19808. width: auto;
  19809. font-size: 16px;
  19810. font-weight: 400;
  19811. color: #0e1e33;
  19812. }
  19813. .isItemList > div:first-child {
  19814. color: #aeccfe;
  19815. }
  19816. .isItemList > div:last-child {
  19817. color: #fff;
  19818. }
  19819. .tool_work_box {
  19820. width: 100%;
  19821. padding: 0 37px 10px;
  19822. box-sizing: border-box;
  19823. }
  19824. .tool_box {
  19825. width: 100%;
  19826. margin-top: 20px;
  19827. }
  19828. .tool_type_box {
  19829. display: flex;
  19830. flex-direction: row;
  19831. align-items: baseline;
  19832. flex-wrap: nowrap;
  19833. justify-content: flex-start;
  19834. position: relative;
  19835. }
  19836. .toolSort {
  19837. display: flex;
  19838. flex-direction: row;
  19839. flex-wrap: wrap;
  19840. justify-content: flex-start;
  19841. align-items: flex-start;
  19842. }
  19843. .toolSort > div {
  19844. margin: 0 45px 0 0;
  19845. width: auto;
  19846. }
  19847. .tools {
  19848. width: 100%;
  19849. display: flex;
  19850. flex-direction: column;
  19851. flex-wrap: nowrap;
  19852. align-items: flex-start;
  19853. }
  19854. .whiteBIcon {
  19855. width: 80px;
  19856. cursor: pointer;
  19857. display: flex;
  19858. flex-direction: column;
  19859. flex-wrap: nowrap;
  19860. align-items: center;
  19861. }
  19862. .whiteBIcon > img {
  19863. width: 100%;
  19864. height: 100%;
  19865. }
  19866. .whiteBIcon > img {
  19867. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  19868. border-radius: 15px;
  19869. }
  19870. .check {
  19871. /* width: 20px;
  19872. height: 20px; */
  19873. cursor: pointer;
  19874. margin: 10px 0;
  19875. }
  19876. .checkDiv {
  19877. display: flex;
  19878. align-items: center;
  19879. }
  19880. .checkDiv span {
  19881. margin-left: 5px;
  19882. color: #858585;
  19883. }
  19884. .check img {
  19885. width: 20px;
  19886. height: 20px;
  19887. }
  19888. .lockTaskIcon {
  19889. width: 20px;
  19890. height: 20px;
  19891. position: absolute;
  19892. right: 0;
  19893. top: 23px;
  19894. }
  19895. .lockTaskIcon > img {
  19896. width: 100%;
  19897. height: 100%;
  19898. }
  19899. </style>