studyStudent.vue 668 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478
  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.sIsOpen = true;
  14474. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  14475. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  14476. if (!this.IsLookOpen) {
  14477. this.setNavList();
  14478. } else {
  14479. this.getCourseState(1);
  14480. }
  14481. if (this.IsFollow && this.tType == 2) {
  14482. this.setContent2(false);
  14483. let _followC = res.data[0][0].followC.split("-");
  14484. if (
  14485. this.courseType != _followC[0] ||
  14486. this.taskCount != _followC[1]
  14487. ) {
  14488. this.navList[this.courseType].isOpen = false;
  14489. this.courseType = _followC[0];
  14490. this.navList[this.courseType].isOpen = true;
  14491. this.taskCount = parseInt(_followC[1]);
  14492. this.navId = res.data[0][0].followC;
  14493. document.scrollingElement.scrollTop = 0;
  14494. this.getCourseDetail(2);
  14495. }
  14496. }
  14497. })
  14498. .catch((err) => {
  14499. console.error(err);
  14500. });
  14501. },
  14502. setNavList() {
  14503. if (this.navList.length == 0) {
  14504. this.navList = [];
  14505. for (var l = 0; l < this.chapInfoList.length; l++) {
  14506. var q = this.chapInfoList[l].dyName;
  14507. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14508. var e;
  14509. this.navList.push({
  14510. dyName: q,
  14511. isOpen: l === 0 ? true : false,
  14512. task: [],
  14513. });
  14514. for (var r = 0; r < w.length; r++) {
  14515. e = w[r].task;
  14516. if (this.chapInfoList[l].easy == 1) {
  14517. this.navList[l].task.push({
  14518. taskName: q,
  14519. id: l + "-" + r,
  14520. isLook: w[r].isLook,
  14521. });
  14522. } else {
  14523. this.navList[l].task.push({
  14524. taskName: e,
  14525. id: l + "-" + r,
  14526. isLook: w[r].isLook,
  14527. });
  14528. }
  14529. // this.navId = this.navId ? this.navId : l + "-" + r;
  14530. // this.navId = l + "-" + r;
  14531. }
  14532. }
  14533. this.navList[0].isOpen = false;
  14534. this.navList[this.courseType].isOpen = true;
  14535. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14536. } else {
  14537. this.setNavList2();
  14538. }
  14539. },
  14540. setNavList2() {
  14541. for (var l = 0; l < this.chapInfoList.length; l++) {
  14542. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14543. for (var r = 0; r < w.length; r++) {
  14544. this.navList[l].task[r].isLook = w[r].isLook;
  14545. }
  14546. }
  14547. if (
  14548. this.IsLookOpen &&
  14549. !this.navList[this.courseType].task[this.taskCount].isLook
  14550. ) {
  14551. this.openTask(0, 0, "0-0");
  14552. }
  14553. this.$forceUpdate();
  14554. },
  14555. getCourseState(type) {
  14556. let params = {
  14557. cid: this.id,
  14558. };
  14559. this.ajax
  14560. .get(this.$store.state.api + "getCourseState", params)
  14561. .then((res) => {
  14562. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  14563. this.chapInfoList = JSON.parse(res.data[0][0].state);
  14564. this.setNavList();
  14565. this.$forceUpdate();
  14566. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  14567. this.addCourseState(2);
  14568. } else {
  14569. this.addCourseState(1);
  14570. }
  14571. })
  14572. .catch((err) => {
  14573. console.error(err);
  14574. });
  14575. },
  14576. addCourseState(type) {
  14577. let _state = this.chapInfoList;
  14578. // this.courseType this.taskCount
  14579. if (type == 1 || type == 2) {
  14580. for (var i = 0; i < _state.length; i++) {
  14581. let el = _state[i].chapterInfo[0].taskJson;
  14582. for (var j = 0; j < el.length; j++) {
  14583. // if (i == 0 && j == 0) {
  14584. // el[j].isLook = true;
  14585. // } else {
  14586. // el[j].isLook = false;
  14587. // }
  14588. if (
  14589. this.courseType > i ||
  14590. (this.courseType == i && this.taskCount + 1 > j)
  14591. ) {
  14592. el[j].isLook = true;
  14593. } else {
  14594. el[j].isLook = false;
  14595. }
  14596. }
  14597. }
  14598. }
  14599. let params = [
  14600. {
  14601. cid: this.id,
  14602. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  14603. },
  14604. ];
  14605. this.ajax
  14606. .post(
  14607. this.$store.state.api +
  14608. (type == 1 ? "addCourseState" : "updateCourseSate"),
  14609. params
  14610. )
  14611. .then((res) => {
  14612. if (this.IsLookOpen) {
  14613. this.setNavList();
  14614. }
  14615. if (type == 3 && type == 2) {
  14616. this.getCourseState(1);
  14617. }
  14618. })
  14619. .catch((err) => {
  14620. console.error(err);
  14621. });
  14622. },
  14623. getHomeWork() {
  14624. let params = {
  14625. cid: this.id,
  14626. stage: this.courseType,
  14627. task: this.taskCount,
  14628. uid: this.userid,
  14629. };
  14630. this.ajax
  14631. .get(this.$store.state.api + "selectWork", params)
  14632. .then((res) => {
  14633. if (res.data[0].length > 0) {
  14634. this.studyJuri = JSON.parse(res.data[0][0].content);
  14635. this.isNoHomeWork = true;
  14636. }
  14637. })
  14638. .catch((err) => {
  14639. console.error(err);
  14640. });
  14641. },
  14642. isAssetTypeAnImage(ext) {
  14643. return (
  14644. [
  14645. "png",
  14646. "jpg",
  14647. "jpeg",
  14648. "bmp",
  14649. "gif",
  14650. "webp",
  14651. "psd",
  14652. "svg",
  14653. "tiff",
  14654. ].indexOf(ext) !== -1
  14655. );
  14656. },
  14657. switchVideo(media) {
  14658. this.playerO = {};
  14659. this.playerOptions.poster = "";
  14660. this.playerOptions.sources[0].src = media;
  14661. this.playerO = this.playerOptions;
  14662. },
  14663. onPlayerPlay() {},
  14664. onPlayerTimeupdate(player) {
  14665. let gklog = player.cache_.currentTime; //当前播放的秒数
  14666. let a = player.cache_.duration; //视频的总时长
  14667. let gklog2 = parseInt(gklog);
  14668. // if(gklog2 == '3'){
  14669. // player.pause()
  14670. // setTimeout(()=>{
  14671. // player.currentTime(gklog2+1)
  14672. // player.play()
  14673. // },1000)
  14674. // }
  14675. console.log(" onPlayerTimeupdate!", gklog);
  14676. console.log(" onPlayerTimeupdate!", gklog2);
  14677. },
  14678. lookVedio(u, i) {
  14679. this.isClickNav = "";
  14680. // this.playerOptions.sources[0].src = u;
  14681. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14682. d.sources[0].src = u;
  14683. this.playerO[this.taskCount] = d;
  14684. this.showType = 0;
  14685. // this.isClickNav = "video" + i;
  14686. this.isClickNav = i;
  14687. this.$forceUpdate();
  14688. },
  14689. lookText(i, t) {
  14690. this.isClickNav = "";
  14691. // this.text = this.textList[i][t];
  14692. this.text = this.vChapterData[i][t];
  14693. // this.dialogVisible1 = true;
  14694. this.showType = 1;
  14695. // this.isClickNav = "text" + t;
  14696. this.isClickNav = t;
  14697. },
  14698. lookTools(i, t) {
  14699. this.chapTools = this.chapToolList[i][t];
  14700. this.dialogVisible2 = true;
  14701. },
  14702. openFile(f) {
  14703. this.pptImgUrl = "";
  14704. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14705. if (
  14706. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  14707. -1
  14708. ) {
  14709. this.pptImgUrl =
  14710. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  14711. this.showPDF = false;
  14712. this.dialogVisible3 = true;
  14713. } else if (
  14714. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14715. ) {
  14716. this.pptImgUrl = f;
  14717. this.showPDF = true;
  14718. this.dialogVisible3 = true;
  14719. }
  14720. },
  14721. openTable(f) {
  14722. this.tableJson = JSON.parse(f.works);
  14723. this.dialogVisibleTable2 = true;
  14724. },
  14725. openWord(f) {
  14726. this.tableJson = JSON.parse(f.works);
  14727. this.dialogVisibleTable3 = true;
  14728. },
  14729. doUrl(url, i) {
  14730. this.isClickNav = "";
  14731. this.pptImgUrl1 = "";
  14732. this.showType = 2;
  14733. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  14734. url = "https://" + url;
  14735. }
  14736. this.pptImgUrl1 = "";
  14737. setTimeout(() => {
  14738. this.pptImgUrl1 = url;
  14739. }, 500);
  14740. // this.isClickNav = "line" + i;
  14741. this.isClickNav = i;
  14742. this.$forceUpdate();
  14743. },
  14744. checkPhoto(f, i) {
  14745. this.showType = 4;
  14746. this.pptImgUrl1 = f.url;
  14747. this.isClickNav = i;
  14748. this.$forceUpdate();
  14749. },
  14750. downFile(f, i) {
  14751. this.isClickNav = "";
  14752. this.pptImgUrl1 = "";
  14753. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  14754. if (
  14755. a.indexOf(
  14756. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  14757. ) != -1
  14758. ) {
  14759. this.pptImgUrl1 =
  14760. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  14761. // this.dialogVisible3 = true;
  14762. this.showType = 2;
  14763. } else if (
  14764. this.isAssetTypeAnImage(
  14765. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  14766. )
  14767. ) {
  14768. this.showType = 4;
  14769. this.pptImgUrl1 = f.url;
  14770. } else if (
  14771. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  14772. "PDF"
  14773. ) {
  14774. this.pptImgUrl1 = f.url;
  14775. // this.dialogVisible3 = true;
  14776. this.showType = 3;
  14777. } else {
  14778. window.open(this.file[i].url);
  14779. }
  14780. // this.isClickNav = "word" + i;
  14781. this.isClickNav = i;
  14782. },
  14783. downFileList(i) {
  14784. window.open(this.noImgList[i].url);
  14785. },
  14786. openAddWork() {
  14787. this.dialogVisible = true;
  14788. },
  14789. addBzWorks() {
  14790. let params = [
  14791. {
  14792. uid: this.userid,
  14793. cid: this.id,
  14794. stage: this.courseType,
  14795. task: this.taskCount,
  14796. tool: this.toolindex,
  14797. content: JSON.stringify(this.eScore),
  14798. type: 6,
  14799. },
  14800. ];
  14801. this.ajax
  14802. .post(this.$store.state.api + "addCourseWorks", params)
  14803. .then((res) => {
  14804. this.$message({
  14805. message: "提交成功",
  14806. type: "success",
  14807. });
  14808. this.eScore = { eBzText: "", eStar: [] };
  14809. this.studentEvalDialogVisible = false;
  14810. this.selectSWorks();
  14811. })
  14812. .catch((err) => {
  14813. this.$message.error("提交失败");
  14814. console.error(err);
  14815. });
  14816. },
  14817. addBzWorksTeacher() {
  14818. let params = [
  14819. {
  14820. uid: this.sStudent.userid,
  14821. cid: this.id,
  14822. stage: this.courseType,
  14823. task: this.taskCount,
  14824. tool: this.toolindex,
  14825. content: JSON.stringify(this.eScore),
  14826. type: 6,
  14827. },
  14828. ];
  14829. this.ajax
  14830. .post(this.$store.state.api + "addCourseWorks", params)
  14831. .then((res) => {
  14832. this.$message({
  14833. message: "提交成功",
  14834. type: "success",
  14835. });
  14836. this.eScore = { eBzText: "", eStar: [] };
  14837. this.studentEvalDialogVisibleTeacher = false;
  14838. this.selectSWorks();
  14839. })
  14840. .catch((err) => {
  14841. this.$message.error("提交失败");
  14842. console.error(err);
  14843. });
  14844. },
  14845. addStudentAsk() {
  14846. if (!this.radio.length) {
  14847. this.$message.error("请选择选项");
  14848. return;
  14849. }
  14850. for (var i = 0; i < this.askJson.askCount; i++) {
  14851. if (
  14852. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14853. (this.radio[i] !== 0 && !this.radio[i])
  14854. ) {
  14855. this.$message.error("请选择选项");
  14856. return;
  14857. }
  14858. }
  14859. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  14860. let params = [
  14861. {
  14862. uid: this.userid,
  14863. cid: this.id,
  14864. stage: this.courseType,
  14865. task: this.taskCount,
  14866. tool: this.toolindex,
  14867. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14868. type: 2,
  14869. },
  14870. ];
  14871. this.ajax
  14872. .post(this.$store.state.api + "addCourseWorks", params)
  14873. .then((res) => {
  14874. this.$message({
  14875. message: "提交成功",
  14876. type: "success",
  14877. });
  14878. this.askList = [];
  14879. this.dialogVisible5 = false;
  14880. this.selectStudent();
  14881. this.selectSWorks();
  14882. this.selectSLook();
  14883. })
  14884. .catch((err) => {
  14885. this.$message.error("提交失败");
  14886. console.error(err);
  14887. });
  14888. },
  14889. addStudentAskTeacher() {
  14890. if (!this.radio.length) {
  14891. this.$message.error("请选择选项");
  14892. return;
  14893. }
  14894. for (var i = 0; i < this.askJson.askCount; i++) {
  14895. if (
  14896. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14897. (this.radio[i] !== 0 && !this.radio[i])
  14898. ) {
  14899. this.$message.error("请选择选项");
  14900. return;
  14901. }
  14902. }
  14903. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  14904. let params = [
  14905. {
  14906. uid: this.sStudent.userid,
  14907. cid: this.id,
  14908. stage: this.courseType,
  14909. task: this.taskCount,
  14910. tool: this.toolindex,
  14911. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14912. type: 2,
  14913. },
  14914. ];
  14915. this.ajax
  14916. .post(this.$store.state.api + "addCourseWorks", params)
  14917. .then((res) => {
  14918. this.$message({
  14919. message: "提交成功",
  14920. type: "success",
  14921. });
  14922. this.askList = [];
  14923. this.dialogVisible5Teacher = false;
  14924. this.selectStudent();
  14925. this.selectSWorks();
  14926. this.selectSLook();
  14927. })
  14928. .catch((err) => {
  14929. this.$message.error("提交失败");
  14930. console.error(err);
  14931. });
  14932. },
  14933. addStudentTest() {
  14934. if (!this.radio.length) {
  14935. this.$message.error("请选择选项");
  14936. return;
  14937. }
  14938. for (var i = 0; i < this.testJson.testCount; i++) {
  14939. if (
  14940. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14941. (this.radio[i] !== 0 && !this.radio[i])
  14942. ) {
  14943. this.$message.error("请选择选项");
  14944. return;
  14945. }
  14946. }
  14947. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  14948. let params = [
  14949. {
  14950. uid: this.userid,
  14951. cid: this.id,
  14952. stage: this.courseType,
  14953. task: this.taskCount,
  14954. tool: this.toolindex,
  14955. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14956. type: 8,
  14957. },
  14958. ];
  14959. this.ajax
  14960. .post(this.$store.state.api + "addCourseWorks", params)
  14961. .then((res) => {
  14962. this.$message({
  14963. message: "提交成功",
  14964. type: "success",
  14965. });
  14966. this.askList = [];
  14967. this.dialogVisibleChoice = false;
  14968. this.selectStudent();
  14969. this.selectSWorks();
  14970. this.selectSLook();
  14971. })
  14972. .catch((err) => {
  14973. this.$message.error("提交失败");
  14974. console.error(err);
  14975. });
  14976. },
  14977. addStudentTestTeacher() {
  14978. if (!this.radio.length) {
  14979. this.$message.error("请选择选项");
  14980. return;
  14981. }
  14982. for (var i = 0; i < this.testJson.testCount; i++) {
  14983. if (
  14984. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14985. (this.radio[i] !== 0 && !this.radio[i])
  14986. ) {
  14987. this.$message.error("请选择选项");
  14988. return;
  14989. }
  14990. }
  14991. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  14992. let params = [
  14993. {
  14994. uid: this.sStudent.userid,
  14995. cid: this.id,
  14996. stage: this.courseType,
  14997. task: this.taskCount,
  14998. tool: this.toolindex,
  14999. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15000. type: 8,
  15001. },
  15002. ];
  15003. this.ajax
  15004. .post(this.$store.state.api + "addCourseWorks", params)
  15005. .then((res) => {
  15006. this.$message({
  15007. message: "提交成功",
  15008. type: "success",
  15009. });
  15010. this.askList = [];
  15011. this.dialogVisibleChoiceTeacher = false;
  15012. this.selectStudent();
  15013. this.selectSWorks();
  15014. this.selectSLook();
  15015. })
  15016. .catch((err) => {
  15017. this.$message.error("提交失败");
  15018. console.error(err);
  15019. });
  15020. },
  15021. addWork() {
  15022. if (this.studyJuri[0].content == "") {
  15023. this.$message.error("请将信息填写完整");
  15024. return;
  15025. } else if (this.studyJuri[0].cover.length == 0) {
  15026. this.$message.error("请将信息填写完整");
  15027. return;
  15028. } else if (this.studyJuri[0].upVedio.length == 0) {
  15029. this.$message.error("请将信息填写完整");
  15030. return;
  15031. }
  15032. if (this.isNoHomeWork) {
  15033. this.$confirm(
  15034. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15035. "提示",
  15036. {
  15037. confirmButtonText: "确定",
  15038. cancelButtonText: "取消",
  15039. type: "warning",
  15040. }
  15041. )
  15042. .then(() => {
  15043. let params = [
  15044. {
  15045. uid: this.userid,
  15046. cid: this.id,
  15047. stage: this.courseType,
  15048. task: this.taskCount,
  15049. content: JSON.stringify(this.studyJuri),
  15050. },
  15051. ];
  15052. this.ajax
  15053. .post(this.$store.state.api + "addWorks", params)
  15054. .then((res) => {
  15055. this.$message({
  15056. message: "提交成功",
  15057. type: "success",
  15058. });
  15059. this.isNoHomeWork = true;
  15060. this.dialogVisible = false;
  15061. })
  15062. .catch((err) => {
  15063. this.$message.error("提交失败");
  15064. console.error(err);
  15065. });
  15066. })
  15067. .catch(() => {});
  15068. } else {
  15069. let params = [
  15070. {
  15071. uid: this.userid,
  15072. cid: this.id,
  15073. stage: this.courseType,
  15074. task: this.taskCount,
  15075. content: JSON.stringify(this.studyJuri),
  15076. },
  15077. ];
  15078. this.ajax
  15079. .post(this.$store.state.api + "addWorks", params)
  15080. .then((res) => {
  15081. this.$message({
  15082. message: "提交成功",
  15083. type: "success",
  15084. });
  15085. this.isNoHomeWork = true;
  15086. this.dialogVisible = false;
  15087. })
  15088. .catch((err) => {
  15089. this.$message.error("提交失败");
  15090. console.error(err);
  15091. });
  15092. }
  15093. },
  15094. selectCount() {
  15095. let params = {
  15096. cid: this.id,
  15097. chid: this.courseType,
  15098. uid: this.userid,
  15099. };
  15100. this.ajax
  15101. .get(this.$store.state.api + "selectToolsCount", params)
  15102. .then((res) => {
  15103. for (var i = 0; i < res.data[0].length; i++) {
  15104. if (res.data[0][i].tools == 1) {
  15105. this.wbCount = res.data[0][i].count;
  15106. } else if (res.data[0][i].tools == 2) {
  15107. this.wordCount = res.data[0][i].count;
  15108. } else if (res.data[0][i].tools == 3) {
  15109. this.mindCount = res.data[0][i].count;
  15110. } else if (res.data[0][i].tools == 4) {
  15111. this.askCount = res.data[0][i].count;
  15112. } else if (res.data[0][i].tools == 6) {
  15113. this.noteCount = res.data[0][i].count;
  15114. } else if (res.data[0][i].tools == 7) {
  15115. this.mindNetWorkCount = res.data[0][i].count;
  15116. } else if (res.data[0][i].tools == 8) {
  15117. this.libraryCount = res.data[0][i].count;
  15118. } else if (res.data[0][i].tools == 16) {
  15119. this.workCount = res.data[0][i].count;
  15120. } else if (res.data[0][i].tools == 10) {
  15121. this.timeCount = res.data[0][i].count;
  15122. } else if (res.data[0][i].tools == 15) {
  15123. this.answerCount = res.data[0][i].count;
  15124. } else if (res.data[0][i].tools == 18) {
  15125. this.trainCount = res.data[0][i].count;
  15126. }
  15127. }
  15128. })
  15129. .catch((err) => {
  15130. console.error(err);
  15131. });
  15132. },
  15133. openTools(t, i, index, c, sName) {
  15134. var z = JSON.parse(c);
  15135. this.noteName = sName;
  15136. if (t == 4) {
  15137. this.radio = [];
  15138. this.isAnswer = false;
  15139. let b = z[0].anwer;
  15140. this.radio = b;
  15141. this.askJson = z[0].askJson;
  15142. this.isAnswer = true;
  15143. this.dialogVisible5 = true;
  15144. } else if (t == 45) {
  15145. this.radio = [];
  15146. this.isAnswer = false;
  15147. let b = z[0].anwer;
  15148. this.radio = b;
  15149. this.testJson = z[0].testJson;
  15150. this.isAnswer = true;
  15151. this.dialogVisibleChoice = true;
  15152. }
  15153. // else if (t == 15) {
  15154. // this.answerQ = "";
  15155. // this.questionAnswer = "";
  15156. // this.answerQ = z[0].answerTitle;
  15157. // this.questionAnswer = z[0].answer;
  15158. // this.answerDialogVisible = true;
  15159. // }
  15160. },
  15161. fastText(p, t) {
  15162. if (t == 1) {
  15163. this.commentText += p;
  15164. } else {
  15165. this.eScore.eBzText += p;
  15166. }
  15167. },
  15168. addTools(t, i, index) {
  15169. var a = 0;
  15170. // this.taskCount = index;
  15171. this.toolindex = i;
  15172. if (t == 1) {
  15173. if (this.wbCount > 0) {
  15174. this.updateCount(this.wbCount, t);
  15175. } else {
  15176. this.wbCount++;
  15177. a = this.wbCount;
  15178. this.toolsCount(a, t);
  15179. }
  15180. window.parent.postMessage(
  15181. {
  15182. tools: "1",
  15183. cid: this.id,
  15184. stage: this.courseType,
  15185. task: this.taskCount,
  15186. tool: i,
  15187. },
  15188. "*"
  15189. );
  15190. } else if (t == 2) {
  15191. if (this.wordCount > 0) {
  15192. this.updateCount(this.wordCount, t);
  15193. } else {
  15194. this.wordCount++;
  15195. a = this.wordCount;
  15196. this.toolsCount(a, t);
  15197. }
  15198. window.parent.postMessage({ tools: "2" }, "*");
  15199. } else if (t == 3) {
  15200. if (this.mindCount > 0) {
  15201. this.updateCount(this.mindCount, t);
  15202. } else {
  15203. this.mindCount++;
  15204. a = this.mindCount;
  15205. this.toolsCount(a, t);
  15206. }
  15207. window.parent.postMessage(
  15208. {
  15209. tools: "3",
  15210. cid: this.id,
  15211. stage: this.courseType,
  15212. task: this.taskCount,
  15213. tool: i,
  15214. },
  15215. "*"
  15216. );
  15217. } else if (t == 4) {
  15218. this.radio = [];
  15219. this.noteName = "";
  15220. this.isAnswer = false;
  15221. if (this.askCount > 0) {
  15222. this.updateCount(this.askCount, t);
  15223. } else {
  15224. this.askCount++;
  15225. a = this.askCount;
  15226. this.toolsCount(a, t);
  15227. }
  15228. if (!this.dialogVisible2) {
  15229. this.askJson.askJson =
  15230. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15231. index
  15232. ].toolChoose[i].askJson;
  15233. this.askJson.askTitle =
  15234. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15235. index
  15236. ].toolChoose[i].askTitle;
  15237. this.askJson.askCount =
  15238. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15239. index
  15240. ].toolChoose[i].askCount;
  15241. } else {
  15242. this.askJson.askJson = this.chapTools.askJson.askJson;
  15243. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15244. this.askJson.askCount = this.chapTools.askJson.askCount;
  15245. }
  15246. for (var k = 0; k < this.askJson.askJson.length; k++) {
  15247. if (this.askJson.askJson[k].type == "2") {
  15248. this.radio.push([]);
  15249. } else {
  15250. this.radio.push("");
  15251. }
  15252. }
  15253. this.dialogVisible5 = true;
  15254. // window.parent.postMessage({ tools: "4" }, "*");
  15255. } else if (t == 45) {
  15256. this.noteName = "";
  15257. this.radio = [];
  15258. this.isAnswer = false;
  15259. if (this.askCount > 0) {
  15260. this.updateCount(this.askCount, t);
  15261. } else {
  15262. this.askCount++;
  15263. a = this.askCount;
  15264. this.toolsCount(a, t);
  15265. }
  15266. this.testJson =
  15267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15268. index
  15269. ].toolChoose[i].testJson;
  15270. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15271. if (this.testJson.testJson[k].type == "2") {
  15272. this.radio.push([]);
  15273. } else {
  15274. this.radio.push("");
  15275. }
  15276. }
  15277. this.dialogVisibleChoice = true;
  15278. // window.parent.postMessage({ tools: "4" }, "*");
  15279. } else if (t == 5) {
  15280. if (this.scoreCount > 0) {
  15281. this.updateCount(this.scoreCount, t);
  15282. } else {
  15283. this.scoreCount++;
  15284. a = this.scoreCount;
  15285. this.toolsCount(a, t);
  15286. }
  15287. this.dialogVisible4 = true;
  15288. // window.parent.postMessage({ tools: "5" }, "*");
  15289. } else if (t == 6) {
  15290. if (this.noteCount > 0) {
  15291. this.updateCount(this.noteCount, t);
  15292. } else {
  15293. this.noteCount++;
  15294. a = this.noteCount;
  15295. this.toolsCount(a, t);
  15296. }
  15297. window.parent.postMessage(
  15298. {
  15299. tools: "6",
  15300. cid: this.id,
  15301. stage: this.courseType,
  15302. task: this.taskCount,
  15303. tool: i,
  15304. },
  15305. "*"
  15306. );
  15307. } else if (t == 7) {
  15308. if (this.mindNetWorkCount > 0) {
  15309. this.updateCount(this.mindNetWorkCount, t);
  15310. } else {
  15311. this.mindNetWorkCount++;
  15312. a = this.mindNetWorkCount;
  15313. this.toolsCount(a, t);
  15314. }
  15315. window.parent.postMessage(
  15316. {
  15317. tools: "7",
  15318. cid: this.id,
  15319. stage: this.courseType,
  15320. task: this.taskCount,
  15321. tool: i,
  15322. },
  15323. "*"
  15324. );
  15325. } else if (t == 16) {
  15326. if (this.workCount > 0) {
  15327. this.updateCount(this.workCount, t);
  15328. } else {
  15329. this.workCount++;
  15330. a = this.workCount;
  15331. this.toolsCount(a, t);
  15332. }
  15333. this.dialogVisible = true;
  15334. } else if (t == 50) {
  15335. if (this.tType == 2) {
  15336. this.$message.error("不支持学生使用");
  15337. return;
  15338. }
  15339. this.plworkFile = [];
  15340. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  15341. if (!this.uploadCid) {
  15342. this.$message.error(
  15343. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  15344. );
  15345. return;
  15346. }
  15347. // this.uploadCid =
  15348. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15349. // index
  15350. // ].toolChoose[i].uploadJson[0];
  15351. this.selectUploadStudent(2);
  15352. } else if (t == 8) {
  15353. if (this.libraryCount > 0) {
  15354. this.updateCount(this.libraryCount, t);
  15355. } else {
  15356. this.libraryCount++;
  15357. a = this.libraryCount;
  15358. this.toolsCount(a, t);
  15359. }
  15360. window.parent.postMessage({ tools: "8" }, "*");
  15361. } else if (t == 17) {
  15362. if (this.libraryCount > 0) {
  15363. this.updateCount(this.libraryCount, t);
  15364. } else {
  15365. this.libraryCount++;
  15366. a = this.libraryCount;
  15367. this.toolsCount(a, t);
  15368. }
  15369. window.parent.postMessage({ tools: "17" }, "*");
  15370. } else if (t == 18) {
  15371. if (this.trainCount > 0) {
  15372. this.updateCount(this.trainCount, t);
  15373. } else {
  15374. this.trainCount++;
  15375. a = this.trainCount;
  15376. this.toolsCount(a, t);
  15377. }
  15378. window.parent.postMessage({ tools: "18" }, "*");
  15379. } else if (t == 10) {
  15380. if (this.timeCount > 0) {
  15381. this.updateCount(this.timeCount, t);
  15382. } else {
  15383. this.timeCount++;
  15384. a = this.timeCount;
  15385. this.toolsCount(a, t);
  15386. }
  15387. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  15388. .taskJson[index].toolChoose[i].preTime
  15389. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15390. .toolChoose[i].preTime
  15391. : "";
  15392. this.timeDialogVisible = true;
  15393. } else if (t == 15) {
  15394. this.answerQ = "";
  15395. this.questionAnswer = "";
  15396. if (this.answerCount > 0) {
  15397. this.updateCount(this.answerCount, t);
  15398. } else {
  15399. this.answerCount++;
  15400. a = this.answerCount;
  15401. this.toolsCount(a, t);
  15402. }
  15403. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15404. .taskJson[index].toolChoose[i].answerQ
  15405. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15406. .toolChoose[i].answerQ
  15407. : "";
  15408. this.answerDialogVisible = true;
  15409. } else if (t == 21) {
  15410. window.parent.postMessage({ tools: "21" }, "*");
  15411. } else if (t == 22) {
  15412. window.parent.postMessage({ tools: "22" }, "*");
  15413. } else if (t == 23) {
  15414. window.parent.postMessage({ tools: "23" }, "*");
  15415. } else if (t == 24) {
  15416. window.parent.postMessage({ tools: "24" }, "*");
  15417. } else if (t == 25) {
  15418. window.parent.postMessage({ tools: "25" }, "*");
  15419. } else if (t == 31) {
  15420. window.parent.postMessage({ tools: "31" }, "*");
  15421. } else if (t == 28) {
  15422. window.parent.postMessage({ tools: "28" }, "*");
  15423. } else if (t == 37) {
  15424. window.parent.postMessage({ tools: "37" }, "*");
  15425. } else if (t == 38) {
  15426. window.parent.postMessage({ tools: "38" }, "*");
  15427. } else if (t == 39) {
  15428. window.parent.postMessage({ tools: "39" }, "*");
  15429. } else if (t == 32) {
  15430. window.parent.postMessage({ tools: "32" }, "*");
  15431. } else if (t == 57) {
  15432. // window.parent.postMessage({ tools: "57" }, "*");
  15433. window.parent.postMessage(
  15434. {
  15435. tools: "57u",
  15436. cid: this.id,
  15437. stage: this.courseType,
  15438. task: this.taskCount,
  15439. tool: i,
  15440. },
  15441. "*"
  15442. );
  15443. } else if (t == 58) {
  15444. window.parent.postMessage({ tools: "58" }, "*");
  15445. } else if (t == 59) {
  15446. window.parent.postMessage({ tools: "59" }, "*");
  15447. } else if (t == 60) {
  15448. window.parent.postMessage({ tools: "60" }, "*");
  15449. } else if (t == 61) {
  15450. window.parent.postMessage({ tools: "61" }, "*");
  15451. } else if (t == 63) {
  15452. window.parent.postMessage({ tools: "63" }, "*");
  15453. } else if (t == 26) {
  15454. window.parent.postMessage(
  15455. {
  15456. tools: "26",
  15457. cid: this.id,
  15458. stage: this.courseType,
  15459. task: this.taskCount,
  15460. tool: i,
  15461. },
  15462. "*"
  15463. );
  15464. } else if (t == 40) {
  15465. if (this.evalCount > 0) {
  15466. this.updateCount(this.evalCount, t);
  15467. } else {
  15468. this.evalCount++;
  15469. a = this.evalCount;
  15470. this.toolsCount(a, t);
  15471. }
  15472. this.eScore = { eBzText: "", eStar: [] };
  15473. if (this.worksStudent[i].length) {
  15474. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15475. if (this.userid == this.worksStudent[i][k].userid) {
  15476. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15477. this.rateJson =
  15478. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15479. index
  15480. ].toolChoose[i].rateJson;
  15481. break;
  15482. } else {
  15483. this.rateJson =
  15484. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15485. index
  15486. ].toolChoose[i].rateJson;
  15487. }
  15488. }
  15489. } else {
  15490. this.rateJson =
  15491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15492. index
  15493. ].toolChoose[i].rateJson;
  15494. }
  15495. this.isStar = false;
  15496. this.studentEvalDialogVisible = true;
  15497. } else if (t == 41) {
  15498. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15499. .taskJson[index].toolChoose[i].selectJson
  15500. ? JSON.parse(
  15501. JSON.stringify(
  15502. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15503. index
  15504. ].toolChoose[i].selectJson
  15505. )
  15506. )
  15507. : { url: "", select: [], answer: [] };
  15508. if (this.worksStudent[i].length) {
  15509. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15510. if (this.userid == this.worksStudent[i][k].userid) {
  15511. var a = this.worksStudent[i][k].works.split(",");
  15512. for (var ki = 0; ki < a.length; ki++) {
  15513. a[ki] = parseInt(a[ki]);
  15514. }
  15515. this.selectAnswer = {
  15516. answer: a,
  15517. stu: this.worksStudent[i][k].sName,
  15518. };
  15519. break;
  15520. } else {
  15521. this.selectAnswer = { answer: [], stu: "" };
  15522. }
  15523. }
  15524. } else {
  15525. this.selectAnswer = { answer: [], stu: "" };
  15526. }
  15527. this.isSelect = false;
  15528. this.dialogVisibleSelect = true;
  15529. } else if (t == 44) {
  15530. window.parent.postMessage({ tools: "44" }, "*");
  15531. } else if (t == 47) {
  15532. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15533. .taskJson[index].toolChoose[i].sentenceList
  15534. ? JSON.parse(
  15535. JSON.stringify(
  15536. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15537. index
  15538. ].toolChoose[i].sentenceList
  15539. )
  15540. )
  15541. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15542. for (var q = 0; q < this.sentenceList.length; q++) {
  15543. this.sentenceList[q].chooseSenList = [];
  15544. this.sentenceList[q].addChangeSen = [];
  15545. this.sentenceList[q].addChangeSen = JSON.parse(
  15546. JSON.stringify(this.sentenceList[q].addSentence)
  15547. );
  15548. this.sentenceList[q].chooseSenList.length =
  15549. this.sentenceList[q].rightAnswer.length;
  15550. }
  15551. this.dialogVisibleSentence = true;
  15552. } else if (t == 48) {
  15553. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15554. .taskJson[index].toolChoose[i].tableJson
  15555. ? JSON.parse(
  15556. JSON.stringify(
  15557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15558. index
  15559. ].toolChoose[i].tableJson
  15560. )
  15561. )
  15562. : { text: "" };
  15563. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  15564. if (this.worksStudent[i].length) {
  15565. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15566. if (this.userid == this.worksStudent[i][k].userid) {
  15567. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15568. break;
  15569. }
  15570. }
  15571. }
  15572. this.dialogVisibleTable = true;
  15573. } else if (t == 52) {
  15574. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15575. .taskJson[index].toolChoose[i].wordJson
  15576. ? JSON.parse(
  15577. JSON.stringify(
  15578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15579. index
  15580. ].toolChoose[i].wordJson
  15581. )
  15582. )
  15583. : { text: "" };
  15584. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  15585. if (this.worksStudent[i].length) {
  15586. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15587. if (this.userid == this.worksStudent[i][k].userid) {
  15588. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15589. break;
  15590. }
  15591. }
  15592. }
  15593. this.dialogVisibleWord = true;
  15594. } else if (t == 49) {
  15595. this.groupJson =
  15596. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15597. index
  15598. ].toolChoose[i].groupJson;
  15599. this.islock = this.groupJson.islock == 1 ? true : false;
  15600. this.dialogVisibleGroup = true;
  15601. } else if (t == 62) {
  15602. this.videoJson =
  15603. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15604. index
  15605. ].toolChoose[i].videoJson;
  15606. this.dialogVisibleVideo = true;
  15607. }
  15608. },
  15609. teacherWorkSubmit(t, i, index, s) {
  15610. this.sStudent = s;
  15611. this.toolindex = i;
  15612. this.sTool = t;
  15613. if (this.tType !== "1" && this.tType !== "4") {
  15614. return;
  15615. }
  15616. if (t == 16 || t == 32 || t == 50) {
  15617. this.dialogVisibleWorks = true;
  15618. } else if (t == 15) {
  15619. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15620. .taskJson[index].toolChoose[i].answerQ
  15621. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15622. .toolChoose[i].answerQ
  15623. : "";
  15624. this.questionAnswer = "";
  15625. this.answerDialogVisibleTeacher = true; //问答
  15626. } else if (t == 52) {
  15627. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15628. .taskJson[index].toolChoose[i].wordJson
  15629. ? JSON.parse(
  15630. JSON.stringify(
  15631. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15632. index
  15633. ].toolChoose[i].wordJson
  15634. )
  15635. )
  15636. : { text: "" };
  15637. if (this.worksStudent[i].length) {
  15638. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15639. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15640. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15641. break;
  15642. }
  15643. }
  15644. }
  15645. this.dialogVisibleWordTeacher = true; //文档
  15646. } else if (t == 4) {
  15647. this.radio = [];
  15648. this.noteName = "";
  15649. this.isAnswer = false;
  15650. if (this.askCount > 0) {
  15651. this.updateCount(this.askCount, t);
  15652. } else {
  15653. this.askCount++;
  15654. a = this.askCount;
  15655. this.toolsCount(a, t);
  15656. }
  15657. if (!this.dialogVisible2) {
  15658. this.askJson.askJson =
  15659. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15660. index
  15661. ].toolChoose[i].askJson;
  15662. this.askJson.askTitle =
  15663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15664. index
  15665. ].toolChoose[i].askTitle;
  15666. this.askJson.askCount =
  15667. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15668. index
  15669. ].toolChoose[i].askCount;
  15670. } else {
  15671. this.askJson.askJson = this.chapTools.askJson.askJson;
  15672. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15673. this.askJson.askCount = this.chapTools.askJson.askCount;
  15674. }
  15675. this.dialogVisible5Teacher = true;
  15676. } else if (t == 45) {
  15677. this.noteName = "";
  15678. this.radio = [];
  15679. this.isAnswer = false;
  15680. if (this.askCount > 0) {
  15681. this.updateCount(this.askCount, t);
  15682. } else {
  15683. this.askCount++;
  15684. a = this.askCount;
  15685. this.toolsCount(a, t);
  15686. }
  15687. this.testJson =
  15688. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15689. index
  15690. ].toolChoose[i].testJson;
  15691. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15692. if (this.testJson.testJson[k].type == "2") {
  15693. this.radio.push([]);
  15694. } else {
  15695. this.radio.push("");
  15696. }
  15697. }
  15698. this.dialogVisibleChoiceTeacher = true;
  15699. } else if (t == 41) {
  15700. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15701. .taskJson[index].toolChoose[i].selectJson
  15702. ? JSON.parse(
  15703. JSON.stringify(
  15704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15705. index
  15706. ].toolChoose[i].selectJson
  15707. )
  15708. )
  15709. : { url: "", select: [], answer: [] };
  15710. if (this.worksStudent[i].length) {
  15711. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15712. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15713. var a = this.worksStudent[i][k].works.split(",");
  15714. for (var ki = 0; ki < a.length; ki++) {
  15715. a[ki] = parseInt(a[ki]);
  15716. }
  15717. this.selectAnswer = {
  15718. answer: a,
  15719. stu: this.worksStudent[i][k].sName,
  15720. };
  15721. break;
  15722. } else {
  15723. this.selectAnswer = { answer: [], stu: "" };
  15724. }
  15725. }
  15726. } else {
  15727. this.selectAnswer = { answer: [], stu: "" };
  15728. }
  15729. this.isSelect = false;
  15730. this.dialogVisibleSelectTeacher = true;
  15731. } else if (t == 47) {
  15732. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15733. .taskJson[index].toolChoose[i].sentenceList
  15734. ? JSON.parse(
  15735. JSON.stringify(
  15736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15737. index
  15738. ].toolChoose[i].sentenceList
  15739. )
  15740. )
  15741. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15742. for (var q = 0; q < this.sentenceList.length; q++) {
  15743. this.sentenceList[q].chooseSenList = [];
  15744. this.sentenceList[q].addChangeSen = [];
  15745. this.sentenceList[q].addChangeSen = JSON.parse(
  15746. JSON.stringify(this.sentenceList[q].addSentence)
  15747. );
  15748. this.sentenceList[q].chooseSenList.length =
  15749. this.sentenceList[q].rightAnswer.length;
  15750. }
  15751. this.dialogVisibleSentenceTeacher = true;
  15752. } else if (t == 48) {
  15753. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15754. .taskJson[index].toolChoose[i].tableJson
  15755. ? JSON.parse(
  15756. JSON.stringify(
  15757. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15758. index
  15759. ].toolChoose[i].tableJson
  15760. )
  15761. )
  15762. : { text: "" };
  15763. if (this.worksStudent[i].length) {
  15764. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15765. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15766. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15767. break;
  15768. }
  15769. }
  15770. }
  15771. this.dialogVisibleTableTeacher = true;
  15772. } else if (t == 40) {
  15773. if (this.evalCount > 0) {
  15774. this.updateCount(this.evalCount, t);
  15775. } else {
  15776. this.evalCount++;
  15777. a = this.evalCount;
  15778. this.toolsCount(a, t);
  15779. }
  15780. this.eScore = { eBzText: "", eStar: [] };
  15781. if (this.worksStudent[i].length) {
  15782. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15783. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15784. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15785. this.rateJson =
  15786. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15787. index
  15788. ].toolChoose[i].rateJson;
  15789. break;
  15790. } else {
  15791. this.rateJson =
  15792. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15793. index
  15794. ].toolChoose[i].rateJson;
  15795. }
  15796. }
  15797. } else {
  15798. this.rateJson =
  15799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15800. index
  15801. ].toolChoose[i].rateJson;
  15802. }
  15803. this.isStar = false;
  15804. this.studentEvalDialogVisibleTeacher = true;
  15805. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  15806. window.parent.postMessage(
  15807. {
  15808. tools: t + "teacher",
  15809. cid: this.id,
  15810. stage: this.courseType,
  15811. task: this.taskCount,
  15812. tool: i,
  15813. student: this.sStudent,
  15814. },
  15815. "*"
  15816. );
  15817. }
  15818. },
  15819. openCocoPi(tool, i, uid, uname) {
  15820. let student = {
  15821. userid: uid,
  15822. student: uname,
  15823. };
  15824. if (tool == 57) {
  15825. window.parent.postMessage(
  15826. {
  15827. tools: tool + "teacher",
  15828. cid: this.id,
  15829. stage: this.courseType,
  15830. task: this.taskCount,
  15831. tool: i,
  15832. student: student,
  15833. },
  15834. "*"
  15835. );
  15836. }
  15837. },
  15838. setRightAnswer(s, i, j) {
  15839. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  15840. if (
  15841. this.sentenceList[i].chooseSenList[q] == undefined ||
  15842. this.sentenceList[i].chooseSenList[q] == ""
  15843. ) {
  15844. this.sentenceList[i].chooseSenList[q] = s;
  15845. this.sentenceList[i].addChangeSen[j] = "";
  15846. break;
  15847. }
  15848. }
  15849. this.$forceUpdate();
  15850. },
  15851. returnCard(r, i, j) {
  15852. var a = this.sentenceList[i].addSentence.indexOf(r);
  15853. this.sentenceList[i].chooseSenList[j] = "";
  15854. this.sentenceList[i].addChangeSen[a] = r;
  15855. this.$forceUpdate();
  15856. },
  15857. // addSentenceTool() {
  15858. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15859. // this.taskCount
  15860. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  15861. // this.sentenceList = [
  15862. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  15863. // ];
  15864. // this.dialogVisibleSentence = false;
  15865. // },
  15866. toolsCount(a, t) {
  15867. let params = {
  15868. cid: this.id,
  15869. chid: this.courseType,
  15870. uid: this.userid,
  15871. tid: t,
  15872. count: a,
  15873. };
  15874. this.ajax
  15875. .get(this.$store.state.api + "insertToolsCount", params)
  15876. .then((res) => {
  15877. this.selectCount();
  15878. })
  15879. .catch((err) => {
  15880. console.error(err);
  15881. });
  15882. },
  15883. updateCount(c, t) {
  15884. c++;
  15885. let params = {
  15886. cid: this.id,
  15887. chid: this.courseType,
  15888. uid: this.userid,
  15889. tid: t,
  15890. count: c,
  15891. };
  15892. this.ajax
  15893. .get(this.$store.state.api + "updateToolsCount", params)
  15894. .then((res) => {
  15895. this.selectCount();
  15896. })
  15897. .catch((err) => {
  15898. console.error(err);
  15899. });
  15900. },
  15901. checkEva() {
  15902. if (this.evalua != "") {
  15903. for (var i = 0; i < this.evaJuri.length; i++) {
  15904. if (this.evalua == this.evaJuri[i].id) {
  15905. this.eTitle = this.evaJuri[i].title;
  15906. this.eJson = JSON.parse(this.evaJuri[i].content);
  15907. }
  15908. }
  15909. this.$forceUpdate();
  15910. setTimeout(() => {
  15911. this.setMindData();
  15912. }, 0);
  15913. }
  15914. },
  15915. selectEva() {
  15916. let params = {
  15917. oid: this.oid,
  15918. };
  15919. this.ajax
  15920. .get(this.$store.state.api + "selectAllEvaluation", params)
  15921. .then((res) => {
  15922. this.evaJuri = res.data[0];
  15923. })
  15924. .catch((err) => {
  15925. console.error(err);
  15926. });
  15927. },
  15928. setMindData() {
  15929. this.data.data = [];
  15930. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  15931. let _eJson = Object.keys(this.eJson);
  15932. let _e = this.eJson;
  15933. for (let i = 0; i < _eJson.length; i++) {
  15934. let element = _e[_eJson[i]];
  15935. this.data.data.push({
  15936. id: element.id,
  15937. parentid: "root",
  15938. topic: element.name,
  15939. });
  15940. let _eJsonc = Object.keys(element.child);
  15941. let _e2 = element.child;
  15942. for (let j = 0; j < _eJsonc.length; j++) {
  15943. let _ec = _e2[_eJsonc[j]];
  15944. this.data.data.push({
  15945. id: _ec.id,
  15946. parentid: element.id,
  15947. topic: _ec.name,
  15948. });
  15949. let _eJsonz = Object.keys(_ec.child);
  15950. let _e3 = _ec.child;
  15951. for (let z = 0; z < _eJsonz.length; z++) {
  15952. let _ez = _e3[_eJsonz[z]];
  15953. this.data.data.push({
  15954. id: _ez.id,
  15955. parentid: _ec.id,
  15956. topic: _ez.name,
  15957. });
  15958. }
  15959. }
  15960. }
  15961. this.$forceUpdate();
  15962. },
  15963. checkFileFull(type, url) {
  15964. this.fullDialogVisible = true;
  15965. this.fulltype = type;
  15966. this.fullUrl = url;
  15967. },
  15968. openSname(n, id, i, uid) {
  15969. this.snameWid = id;
  15970. this.worksSName = n;
  15971. this.worksSid = uid == n ? "" : uid;
  15972. this.toolindex = i;
  15973. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  15974. if (!this.uploadCid) {
  15975. this.$message.error(
  15976. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  15977. );
  15978. return;
  15979. }
  15980. this.selectUploadStudent(1);
  15981. },
  15982. updateName() {
  15983. let params = {
  15984. n: this.worksSName,
  15985. cid: this.snameWid,
  15986. };
  15987. this.ajax
  15988. .get(this.$store.state.api + "updateCourseWorksName", params)
  15989. .then((res) => {
  15990. this.$message({
  15991. message: "修改成功",
  15992. type: "success",
  15993. });
  15994. this.dialogVisibleSname = false;
  15995. this.getCourseDetail(2);
  15996. this.snameWid = "";
  15997. this.worksSName = "";
  15998. })
  15999. .catch((err) => {
  16000. console.error(err);
  16001. });
  16002. },
  16003. downloadFile2(f) {
  16004. const loading = this.$loading.service({
  16005. background: "rgba(255, 255, 255, 0.7)",
  16006. target: document.body,
  16007. text: "文件加载中...",
  16008. });
  16009. let url2 = f.url;
  16010. let _url2 = "";
  16011. if (
  16012. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16013. ) {
  16014. _url2 = url2.split(
  16015. "https://view.officeapps.live.com/op/view.aspx?src="
  16016. )[1];
  16017. } else {
  16018. _url2 = url2;
  16019. }
  16020. let params = {
  16021. url: _url2,
  16022. name: f.name,
  16023. };
  16024. this.ajax
  16025. .get(this.$store.state.api + "download", params)
  16026. .then((res) => {
  16027. console.log(res);
  16028. loading.close();
  16029. let content = res.data.data.data;
  16030. let ab = new ArrayBuffer(content.length);
  16031. let view = new Uint8Array(ab);
  16032. for (var i = 0; i < content.length; ++i) {
  16033. view[i] = content[i];
  16034. }
  16035. let elink = document.createElement("a");
  16036. elink.download = f.name;
  16037. elink.style.display = "none";
  16038. let blob = new Blob([ab], {
  16039. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16040. });
  16041. elink.href = URL.createObjectURL(blob);
  16042. document.body.appendChild(elink);
  16043. elink.click();
  16044. document.body.removeChild(elink);
  16045. })
  16046. .catch((err) => {
  16047. loading.close();
  16048. console.error(err);
  16049. });
  16050. },
  16051. downloadFile(url) {
  16052. let _this = this;
  16053. let _url = "";
  16054. if (
  16055. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16056. ) {
  16057. _url = url.split(
  16058. "https://view.officeapps.live.com/op/view.aspx?src="
  16059. )[1];
  16060. } else {
  16061. _url = url;
  16062. }
  16063. const x = new XMLHttpRequest();
  16064. x.open("GET", _url, true);
  16065. x.responseType = "blob";
  16066. const loading = _this.$loading.service({
  16067. background: "rgba(255, 255, 255, 0.7)",
  16068. target: document.body,
  16069. text: "文件加载中...",
  16070. });
  16071. // _this.$message.success("文件下载中...");
  16072. x.onload = function (e) {
  16073. loading.close();
  16074. let content = x.response;
  16075. let elink = document.createElement("a");
  16076. elink.download = decodeURI(
  16077. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16078. );
  16079. elink.style.display = "none";
  16080. let blob = new Blob([content]);
  16081. elink.href = URL.createObjectURL(blob);
  16082. document.body.appendChild(elink);
  16083. elink.click();
  16084. document.body.removeChild(elink);
  16085. };
  16086. x.send();
  16087. },
  16088. openLine(url) {
  16089. window.open(url);
  16090. },
  16091. resize() {
  16092. if (document.getElementsByClassName("box_course").length) {
  16093. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16094. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16095. if (this.showType == 2 || this.showType == 3) {
  16096. document.getElementsByClassName("navBox")[0].style.height =
  16097. a - 40 + 46 + "px";
  16098. } else {
  16099. document.getElementsByClassName("navBox")[0].style.height =
  16100. a - 40 + "px";
  16101. }
  16102. }
  16103. this.Stbodywidth =
  16104. document.getElementsByClassName("student_body").length &&
  16105. document.getElementsByClassName("student_body")[0].offsetWidth;
  16106. },
  16107. closeDraw() {
  16108. this.bg = null;
  16109. this.drawShow = false;
  16110. },
  16111. showPicturePaint(url) {
  16112. let params = {
  16113. img: url,
  16114. };
  16115. this.ajax
  16116. .get(this.$store.state.api + "imgToBase64", params)
  16117. .then((res) => {
  16118. console.log(res);
  16119. this.drawShow = true;
  16120. this.bg = res.data[0].img;
  16121. })
  16122. .catch((err) => {
  16123. console.error(err);
  16124. });
  16125. },
  16126. addImgDraw(base64) {
  16127. let file = { name: "批注图.png" };
  16128. let img = this.dataUrlToFile(base64, file);
  16129. this.beforeUpload1(img, 5);
  16130. },
  16131. addImgDrawImG(url) {
  16132. // console.log(url);
  16133. let params = [
  16134. {
  16135. wid: this.commentDetail.wid,
  16136. img: url,
  16137. },
  16138. ];
  16139. this.ajax
  16140. .post(this.$store.state.api + "updateCourseWorks", params)
  16141. .then((res) => {
  16142. this.$message({
  16143. message: "提交成功",
  16144. type: "success",
  16145. });
  16146. this.drawShow = false;
  16147. this.bg = "";
  16148. this.selectSWorks();
  16149. this.selectStudent();
  16150. })
  16151. .catch((err) => {
  16152. this.$message.error("提交失败");
  16153. console.error(err);
  16154. });
  16155. },
  16156. deletePicturePaint() {
  16157. this.$confirm("确定删除此批注吗?", "提示", {
  16158. confirmButtonText: "确定",
  16159. cancelButtonText: "取消",
  16160. type: "warning",
  16161. })
  16162. .then(() => {
  16163. let params = [
  16164. {
  16165. wid: this.commentDetail.wid,
  16166. img: "",
  16167. },
  16168. ];
  16169. this.ajax
  16170. .post(this.$store.state.api + "updateCourseWorks", params)
  16171. .then((res) => {
  16172. this.$message({
  16173. message: "删除成功",
  16174. type: "success",
  16175. });
  16176. this.selectSWorks();
  16177. this.selectStudent();
  16178. })
  16179. .catch((err) => {
  16180. this.$message.error("删除失败");
  16181. console.error(err);
  16182. });
  16183. })
  16184. .catch(() => {});
  16185. },
  16186. getAudioVideo(constraintsData) {
  16187. if (navigator.mediaDevices === undefined) {
  16188. navigator.mediaDevices = {};
  16189. }
  16190. if (navigator.mediaDevices.getUserMedia === undefined) {
  16191. navigator.mediaDevices.getUserMedia = function (constraints) {
  16192. // 首先,如果有getUserMedia的话,就获得它
  16193. var getUserMedia =
  16194. navigator.getUserMedia ||
  16195. navigator.webkitGetUserMedia ||
  16196. navigator.mozGetUserMedia ||
  16197. navigator.msGetUserMedia;
  16198. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  16199. if (!getUserMedia) {
  16200. return Promise.reject({ code: 404 });
  16201. }
  16202. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  16203. return new Promise(function (resolve, reject) {
  16204. getUserMedia.call(navigator, constraints, resolve, reject);
  16205. });
  16206. };
  16207. }
  16208. return navigator.mediaDevices.getUserMedia(constraintsData);
  16209. },
  16210. /**
  16211. * 开始录制
  16212. */
  16213. startRecording(callback) {
  16214. let _function = (screenStream) => {
  16215. this.addStreamStopListener(screenStream, () => {
  16216. console.log("流停止监听");
  16217. this.stopRecording();
  16218. this.$emit("streamStop", {});
  16219. // this.stopRecording();
  16220. });
  16221. var options = {
  16222. type: "video",
  16223. mimeType: "video/webm",
  16224. disableLogs: false,
  16225. getNativeBlob: false, // enable it for longer recordings
  16226. ignoreMutedMedia: false,
  16227. };
  16228. // this.video.srcObject = screenStream;
  16229. this.recorder = RecordRTC(screenStream, options);
  16230. this.recorder.startRecording();
  16231. this.recorder.screen = screenStream;
  16232. this.videoStart = true;
  16233. // callback(true);
  16234. };
  16235. this.getAudioVideo({ audio: true })
  16236. .then((res) => {
  16237. this.captureScreen(_function, true);
  16238. console.log("已点击允许,开启成功");
  16239. })
  16240. .catch((err) => {
  16241. // console.log('浏览器不支持,请更换浏览器')
  16242. // } else {
  16243. this.captureScreen(_function, false);
  16244. console.log("请检查是否存在麦克风");
  16245. });
  16246. },
  16247. /**
  16248. * 停止录制
  16249. */
  16250. stopRecording(callback) {
  16251. this.recorder.stopRecording(() => {
  16252. // this.video.src = this.video.srcObject = null;
  16253. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  16254. const url = URL.createObjectURL(this.recorder.getBlob());
  16255. const a = document.createElement("a"); //this.fileName+
  16256. let videoFile = new File(
  16257. [this.recorder.getBlob()],
  16258. this.courseDetail.title + "录屏.mp4",
  16259. {
  16260. type: "video/mp4",
  16261. }
  16262. );
  16263. let downloadUrl = URL.createObjectURL(videoFile);
  16264. document.body.appendChild(a);
  16265. a.style.display = "none";
  16266. a.href = url;
  16267. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  16268. a.click();
  16269. this.recorder.screen.stop();
  16270. this.recorder.destroy();
  16271. this.recorder = null;
  16272. this.videoStart = false;
  16273. // callback(false);
  16274. });
  16275. },
  16276. //初始化
  16277. captureScreen(callback, type) {
  16278. if (navigator.getDisplayMedia) {
  16279. //录制结束,文件下载
  16280. navigator
  16281. .getDisplayMedia({
  16282. video: true,
  16283. })
  16284. .then((screenStream) => {
  16285. if (type) {
  16286. navigator.mediaDevices
  16287. .getUserMedia({ audio: true })
  16288. .then((mic) => {
  16289. screenStream.addTrack(mic.getTracks()[0]);
  16290. callback(screenStream);
  16291. });
  16292. } else {
  16293. callback(screenStream);
  16294. }
  16295. })
  16296. .catch(function (error) {
  16297. console.log("error", error);
  16298. });
  16299. } else if (navigator.mediaDevices.getDisplayMedia) {
  16300. navigator.mediaDevices
  16301. .getDisplayMedia({
  16302. video: true,
  16303. })
  16304. .then((screenStream) => {
  16305. if (type) {
  16306. navigator.mediaDevices
  16307. .getUserMedia({ audio: true })
  16308. .then((mic) => {
  16309. screenStream.addTrack(mic.getTracks()[0]);
  16310. callback(screenStream);
  16311. });
  16312. } else {
  16313. callback(screenStream);
  16314. }
  16315. })
  16316. .catch(function (error) {
  16317. console.log("error", error);
  16318. });
  16319. } else {
  16320. var error = "getDisplayMedia API are not supported in this browser.";
  16321. console.log("error", error);
  16322. alert(error);
  16323. }
  16324. },
  16325. //流监听
  16326. addStreamStopListener(stream, callback) {
  16327. stream.addEventListener(
  16328. "ended",
  16329. function () {
  16330. callback();
  16331. callback = function () {};
  16332. },
  16333. false
  16334. );
  16335. stream.addEventListener(
  16336. "inactive",
  16337. function () {
  16338. callback();
  16339. callback = function () {};
  16340. },
  16341. false
  16342. );
  16343. stream.getTracks().forEach(function (track) {
  16344. track.addEventListener(
  16345. "ended",
  16346. function () {
  16347. callback();
  16348. callback = function () {};
  16349. },
  16350. false
  16351. );
  16352. track.addEventListener(
  16353. "inactive",
  16354. function () {
  16355. callback();
  16356. callback = function () {};
  16357. },
  16358. false
  16359. );
  16360. });
  16361. },
  16362. updateGroup() {
  16363. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16364. this.dialogVisibleGroup2 = true;
  16365. },
  16366. updateGroupJson() {
  16367. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  16368. if (
  16369. this.groupStudentUid[this.toolindex][i].length >
  16370. this.groupJson2.number
  16371. ) {
  16372. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  16373. return;
  16374. }
  16375. }
  16376. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  16377. this.islock = this.groupJson.islock == 1 ? true : false;
  16378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16379. this.taskCount
  16380. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  16381. let params = [
  16382. {
  16383. cid: this.id,
  16384. chapters: JSON.stringify(this.chapInfoList),
  16385. uid: this.userid,
  16386. unitIndex: this.courseType,
  16387. },
  16388. ];
  16389. this.ajax
  16390. .post(this.$store.state.api + "updateWorkNew4", params)
  16391. .then((res) => {
  16392. this.$message.success("设置成功");
  16393. this.getCourseDetail(2);
  16394. this.dialogVisibleGroup2 = false;
  16395. this.groupJson2 = {};
  16396. this.$forceUpdate();
  16397. })
  16398. .catch((err) => {
  16399. this.$message.error("网络不佳");
  16400. console.error(err);
  16401. });
  16402. },
  16403. lockChair() {
  16404. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16405. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  16406. this.updateGroupJson();
  16407. },
  16408. selectGroup(index) {
  16409. this.getCourseDetail(2, index);
  16410. },
  16411. joinGroup(index) {
  16412. if (this.groupJson.islock == 2) {
  16413. this.$message.error("位置已被锁定,无法加入");
  16414. return;
  16415. }
  16416. if (
  16417. this.groupStudent[this.toolindex][index].length >
  16418. this.groupJson.number ||
  16419. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  16420. ) {
  16421. this.$message.error("位置已满,无法加入");
  16422. return;
  16423. }
  16424. let params = [
  16425. {
  16426. cid: this.id,
  16427. stage: this.courseType,
  16428. task: this.taskCount,
  16429. tool: this.toolindex,
  16430. g: index,
  16431. uid: this.userid,
  16432. },
  16433. ];
  16434. this.ajax
  16435. .post(this.$store.state.api + "joinGroup", params)
  16436. .then((res) => {
  16437. this.$message.success("加入成功");
  16438. this.getCourseDetail(2);
  16439. })
  16440. .catch((err) => {
  16441. this.$message.error("网络不佳");
  16442. console.error(err);
  16443. });
  16444. },
  16445. exitGroup(id) {
  16446. if (this.groupJson.islock == 2) {
  16447. this.$message.error("位置已被锁定,无法退出");
  16448. return;
  16449. }
  16450. let params = [
  16451. {
  16452. gid: id,
  16453. },
  16454. ];
  16455. this.ajax
  16456. .post(this.$store.state.api + "exitGroup", params)
  16457. .then((res) => {
  16458. this.$message.success("退出成功");
  16459. this.getCourseDetail(2);
  16460. })
  16461. .catch((err) => {
  16462. this.$message.error("网络不佳");
  16463. console.error(err);
  16464. });
  16465. },
  16466. groupUpload(index, task, gindex) {
  16467. this.taskCount = task;
  16468. this.toolindex = index;
  16469. this.groupIndex = gindex;
  16470. this.dialogVisibleGroupWork = true;
  16471. },
  16472. updateGroupChair(user) {
  16473. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  16474. el.label = index;
  16475. return index != user.group;
  16476. });
  16477. this.updateGroupUser = user;
  16478. this.dialogVisibleUpdateGroup = true;
  16479. },
  16480. updateChair() {
  16481. if (
  16482. this.groupStudent[this.toolindex][this.checkChair].length >
  16483. this.groupJson.number ||
  16484. this.groupStudent[this.toolindex][this.checkChair].length ==
  16485. this.groupJson.number
  16486. ) {
  16487. this.$message.error("位置已满,无法加入");
  16488. return;
  16489. }
  16490. let params = [
  16491. {
  16492. cid: this.id,
  16493. stage: this.courseType,
  16494. task: this.taskCount,
  16495. tool: this.toolindex,
  16496. g: this.checkChair,
  16497. uid: this.updateGroupUser.userid,
  16498. },
  16499. ];
  16500. this.ajax
  16501. .post(this.$store.state.api + "joinGroup", params)
  16502. .then((res) => {
  16503. this.$message.success("修改成功");
  16504. this.updateGroupUser = {};
  16505. this.checkChair = "";
  16506. this.updateGroupArray = {};
  16507. this.dialogVisibleUpdateGroup = false;
  16508. this.getCourseDetail(2);
  16509. })
  16510. .catch((err) => {
  16511. this.$message.error("网络不佳");
  16512. console.error(err);
  16513. });
  16514. },
  16515. deleteGroupChair(gindex) {
  16516. this.checkDeleteGroup = [];
  16517. this.deleteGroupUser = JSON.parse(
  16518. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  16519. );
  16520. this.deleteGroupArray = this.groupJson.group[gindex];
  16521. this.groupIndex = gindex;
  16522. this.dialogVisibleDeleteGroup = true;
  16523. },
  16524. async deleteChair() {
  16525. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  16526. const gid =
  16527. this.groupStudent[this.toolindex][this.groupIndex][
  16528. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  16529. this.checkDeleteGroup[i]
  16530. )
  16531. ];
  16532. let params = [
  16533. {
  16534. gid: gid.id,
  16535. },
  16536. ];
  16537. var a = await this.deleteChairA(params);
  16538. if (i == this.checkDeleteGroup.length - 1) {
  16539. this.$message.success("退出成功");
  16540. this.dialogVisibleDeleteGroup = false;
  16541. this.deleteGroupUser = [];
  16542. this.deleteGroupArray = {};
  16543. this.groupIndex = "";
  16544. this.checkDeleteGroup = [];
  16545. this.getCourseDetail(2);
  16546. }
  16547. }
  16548. },
  16549. deleteChairA(params) {
  16550. return new Promise((resolve, reject) => {
  16551. this.ajax
  16552. .post(this.$store.state.api + "exitGroup", params)
  16553. .then((res) => {
  16554. resolve(1);
  16555. })
  16556. .catch((err) => {
  16557. this.$message.error("网络不佳");
  16558. console.error(err);
  16559. });
  16560. });
  16561. },
  16562. contract(i) {
  16563. if (this.isCloseList[i].isClose == 0) {
  16564. this.isCloseList[i].isClose = 1;
  16565. } else {
  16566. this.isCloseList[i].isClose = 0;
  16567. }
  16568. this.$forceUpdate();
  16569. },
  16570. },
  16571. directives: {
  16572. // 使用局部注册指令的方式
  16573. resize: {
  16574. // 指令的名称
  16575. bind(el, binding) {
  16576. // el为绑定的元素,binding为绑定给指令的对象
  16577. let width = "",
  16578. height = "";
  16579. function isReize() {
  16580. const style = document.defaultView.getComputedStyle(el);
  16581. if (width !== style.width || height !== style.height) {
  16582. binding.value(); // 关键
  16583. }
  16584. width = style.width;
  16585. height = style.height;
  16586. }
  16587. el.__vueSetInterval__ = setInterval(isReize, 300);
  16588. },
  16589. unbind(el) {
  16590. clearInterval(el.__vueSetInterval__);
  16591. },
  16592. },
  16593. },
  16594. beforeDestroy() {
  16595. window.onresize = null;
  16596. clearInterval(this.timer);
  16597. this.timer = null;
  16598. clearInterval(this.opertimer);
  16599. this.opertimer = null;
  16600. },
  16601. computed: {
  16602. contentConvent() {
  16603. return function (c) {
  16604. return c
  16605. ? c
  16606. .replaceAll(/\r\n/g, "<br/>")
  16607. .replaceAll(/\n/g, "<br/>")
  16608. .replaceAll(/\s/g, " &nbsp")
  16609. : "";
  16610. };
  16611. },
  16612. checkUpload() {
  16613. return function () {
  16614. var studentK = [];
  16615. if (this.plworkFile.length > 0) {
  16616. for (var z = 0; z < this.plworkFile.length; z++) {
  16617. studentK.push(this.plworkFile[z].username);
  16618. }
  16619. studentK = studentK.join(",");
  16620. }
  16621. var a = this.uploadStudentJuri.filter((el) => {
  16622. return studentK.indexOf(el.userid) == -1;
  16623. });
  16624. return a;
  16625. };
  16626. },
  16627. getSName() {
  16628. return function (name) {
  16629. var check = name;
  16630. this.uploadStudentJuri.forEach((el) => {
  16631. if (el.userid == check) {
  16632. check = el.name ? el.name : el.username;
  16633. }
  16634. });
  16635. return check;
  16636. };
  16637. },
  16638. },
  16639. mounted() {
  16640. if (this.screenType == 2) {
  16641. window.parent.postMessage({ allScreen: 4 }, "*");
  16642. } else if (this.screenType == 3) {
  16643. window.parent.postMessage({ allScreen: 5 }, "*");
  16644. } else if (this.screenType == 1) {
  16645. window.parent.postMessage({ allScreen: 6 }, "*");
  16646. }
  16647. this.setOperationTime();
  16648. this.selectEva();
  16649. this.getCourseDetail();
  16650. this.selectCount();
  16651. this.getHomeWork();
  16652. this.contentDialog = true;
  16653. this.setContent2(true);
  16654. if (this.tType == 4) {
  16655. this.pzDialog = true;
  16656. this.selectPz();
  16657. }
  16658. document.scrollingElement.scrollTop = 0;
  16659. window.addEventListener("resize", () => {
  16660. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16661. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16662. if (this.showType == 2 || this.showType == 3) {
  16663. document.getElementsByClassName("navBox")[0].style.height =
  16664. a - 40 + 46 + "px";
  16665. } else {
  16666. document.getElementsByClassName("navBox")[0].style.height =
  16667. a - 40 + "px";
  16668. }
  16669. });
  16670. let _this = this;
  16671. setTimeout(() => {
  16672. // _this.vedioTime = [];
  16673. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16674. // _this.vedioTime[i] = document.getElementsByClassName(
  16675. // "vjs-duration-display"
  16676. // )[i].textContent;
  16677. // }
  16678. }, 1000);
  16679. },
  16680. };
  16681. </script>
  16682. <style scoped>
  16683. @media screen and (max-width: 1280px) {
  16684. /* .courseIndex > div:first-child(2) {
  16685. width: 15% !important;
  16686. } */
  16687. /* .navText {
  16688. width: 120px !important;
  16689. } */
  16690. .evaCss {
  16691. flex-direction: column !important;
  16692. align-items: center !important;
  16693. }
  16694. .elist_input {
  16695. width: 90% !important;
  16696. }
  16697. .dialog_diy1 >>> .el-dialog {
  16698. width: 100% !important;
  16699. }
  16700. .rightWidthCss {
  16701. width: 100% !important;
  16702. }
  16703. .dialog_diy3 >>> .el-dialog {
  16704. width: 100% !important;
  16705. }
  16706. /* .textTitle >>> .el-form-item__label {
  16707. width: 150px !important;
  16708. } */
  16709. /* .stageItemTitle > div:last-child{
  16710. max-width: 50px;
  16711. } */
  16712. }
  16713. .evaCssMax {
  16714. flex-direction: column !important;
  16715. align-items: center !important;
  16716. }
  16717. .dialog_diy >>> .el-dialog {
  16718. margin-top: 10vh !important;
  16719. }
  16720. .body_student {
  16721. width: 77%;
  16722. height: 100%;
  16723. position: absolute;
  16724. left: 22%;
  16725. top: 0;
  16726. }
  16727. .student_head {
  16728. width: 100%;
  16729. margin: 40px auto 0;
  16730. padding-bottom: 20px;
  16731. display: flex;
  16732. flex-direction: column;
  16733. flex-wrap: nowrap;
  16734. align-items: flex-start;
  16735. justify-content: flex-start;
  16736. }
  16737. .pb_left {
  16738. width: 20%;
  16739. margin-right: 10px;
  16740. background: rgb(255, 255, 255);
  16741. position: fixed;
  16742. height: calc(100% - 40px);
  16743. border-radius: 20px;
  16744. padding-bottom: 15px;
  16745. box-sizing: border-box;
  16746. }
  16747. .wheel > img,
  16748. .project > img,
  16749. .star > img,
  16750. .evaluate > img,
  16751. .up_photo > img,
  16752. .chapter_add > img,
  16753. .deleteWord > img,
  16754. .question > img,
  16755. .homework > img {
  16756. width: 100%;
  16757. height: 100%;
  16758. }
  16759. .upCover > img {
  16760. width: 131px;
  16761. height: 69px;
  16762. object-fit: cover;
  16763. }
  16764. .upCover {
  16765. width: calc(100% / 3.5);
  16766. position: relative;
  16767. margin: 0 15px 10px 0;
  16768. display: flex;
  16769. flex-direction: column;
  16770. flex-wrap: nowrap;
  16771. justify-content: center;
  16772. align-content: center;
  16773. align-items: center;
  16774. height: fit-content;
  16775. }
  16776. .upCover2 {
  16777. width: 100%;
  16778. position: relative;
  16779. margin: 0 15px 10px 0;
  16780. display: flex;
  16781. flex-direction: column;
  16782. flex-wrap: nowrap;
  16783. justify-content: center;
  16784. align-content: center;
  16785. align-items: center;
  16786. }
  16787. .upCover2 > img {
  16788. width: 100%;
  16789. height: 90px;
  16790. object-fit: contain;
  16791. }
  16792. .chapter_add {
  16793. width: 120px;
  16794. position: relative;
  16795. text-align: center;
  16796. }
  16797. .isAddThings {
  16798. margin-top: 20px;
  16799. position: relative;
  16800. text-align: center;
  16801. background: #f7f8fa;
  16802. height: 90px;
  16803. width: 90px;
  16804. display: flex;
  16805. flex-direction: column;
  16806. justify-content: center;
  16807. }
  16808. .deleteWord {
  16809. width: 22px;
  16810. height: 22px;
  16811. position: absolute;
  16812. right: -5px;
  16813. top: -5px;
  16814. cursor: pointer;
  16815. }
  16816. .box_course {
  16817. /* width: 60%; */
  16818. width: calc(100% - 300px);
  16819. }
  16820. .wheel {
  16821. width: 100%;
  16822. /* height: 100%; */
  16823. height: 650px;
  16824. }
  16825. .right_box {
  16826. display: flex;
  16827. flex-direction: column;
  16828. margin-left: 30px;
  16829. justify-content: space-around;
  16830. }
  16831. .right_box_title {
  16832. font-size: 23px;
  16833. }
  16834. .people {
  16835. display: flex;
  16836. }
  16837. .student_body {
  16838. width: 100%;
  16839. margin: 0 auto;
  16840. margin-top: 10px;
  16841. padding: 0 0 20px;
  16842. }
  16843. .study_top {
  16844. margin-top: 100px;
  16845. width: 100%;
  16846. height: auto;
  16847. padding-bottom: 20px;
  16848. }
  16849. .study_top .checkbox {
  16850. display: flex;
  16851. align-items: center;
  16852. padding: 15px 0 15px 30px;
  16853. flex: 0 0 auto;
  16854. font-weight: bold;
  16855. border-bottom: 1px solid #eee;
  16856. }
  16857. .study_top .check {
  16858. padding-bottom: 5px;
  16859. text-align: center;
  16860. cursor: pointer;
  16861. height: 30px;
  16862. box-sizing: border-box;
  16863. display: flex;
  16864. }
  16865. .study_top .checked {
  16866. border-bottom: 4px solid #3fc6a0;
  16867. padding-bottom: 5px;
  16868. color: #3fc6a0;
  16869. display: flex;
  16870. height: 35px;
  16871. }
  16872. .study_top .checked > div,
  16873. .study_top .check > div {
  16874. margin-right: 5px;
  16875. }
  16876. .videoTop {
  16877. display: flex;
  16878. flex-direction: row;
  16879. justify-content: space-between;
  16880. background: #fff;
  16881. align-items: center;
  16882. width: 95%;
  16883. padding: 20px;
  16884. }
  16885. .upbtn {
  16886. margin: 25px;
  16887. background: #70afdb;
  16888. color: #fff;
  16889. width: 120px;
  16890. text-align: center;
  16891. height: 30px;
  16892. line-height: 30px;
  16893. font-size: 13px;
  16894. border-radius: 5px;
  16895. cursor: pointer;
  16896. }
  16897. .filebox {
  16898. display: flex;
  16899. flex-wrap: wrap;
  16900. flex-direction: column;
  16901. padding: 15px 0 5px;
  16902. position: relative;
  16903. }
  16904. .filebox:before {
  16905. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  16906. position: absolute;
  16907. top: 35px;
  16908. left: 13px;
  16909. border-left: 2px dotted #cad1dc;
  16910. height: calc(100% - 15px);
  16911. }
  16912. .toolHeng2 > div:last-child::before {
  16913. height: calc(100% - 43px);
  16914. }
  16915. .filebox .tooldetail {
  16916. width: 35%;
  16917. margin: 0px 12px;
  16918. padding: 12px 25px 0 13px;
  16919. line-height: 30px;
  16920. word-break: break-word;
  16921. font-size: 18px;
  16922. background: #ffffff;
  16923. border-radius: 8px 8px 8px 8px;
  16924. opacity: 1;
  16925. border: 1px solid #cad1dc;
  16926. }
  16927. .file {
  16928. display: flex;
  16929. flex-direction: column;
  16930. align-items: center;
  16931. justify-content: center;
  16932. cursor: pointer;
  16933. width: 200px;
  16934. }
  16935. .file div {
  16936. margin-top: 10px;
  16937. width: 150px;
  16938. text-align: center;
  16939. overflow: hidden;
  16940. white-space: nowrap;
  16941. text-overflow: ellipsis;
  16942. }
  16943. .media {
  16944. display: flex;
  16945. flex-direction: column;
  16946. align-items: center;
  16947. justify-content: center;
  16948. margin: 0 20px 20px 0;
  16949. cursor: pointer;
  16950. margin: 12px 0 5px 15px;
  16951. overflow: hidden;
  16952. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  16953. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  16954. box-sizing: border-box;
  16955. }
  16956. .media img {
  16957. height: 90px;
  16958. width: 160px;
  16959. object-fit: cover;
  16960. }
  16961. .media .title {
  16962. padding: 5px;
  16963. text-align: left;
  16964. width: 100%;
  16965. box-sizing: border-box;
  16966. }
  16967. .media .btn {
  16968. width: 100%;
  16969. height: 35px;
  16970. line-height: 35px;
  16971. color: #fff;
  16972. background: #606060;
  16973. text-align: center;
  16974. overflow: hidden;
  16975. white-space: nowrap;
  16976. text-overflow: ellipsis;
  16977. }
  16978. .detail_content_top {
  16979. width: 100%;
  16980. padding: 25px 0 25px 0;
  16981. }
  16982. .detail_title {
  16983. text-align: center;
  16984. font-size: 24px;
  16985. }
  16986. .detail_time {
  16987. font-size: 13px;
  16988. padding: 15px 0 0 40px;
  16989. }
  16990. .detail_content {
  16991. line-height: 2pc;
  16992. width: 90%;
  16993. margin: 0 auto;
  16994. padding-top: 30px;
  16995. text-indent: 30px;
  16996. overflow: auto;
  16997. height: 200px;
  16998. }
  16999. .score_box >>> .el-rate {
  17000. margin-left: 10px;
  17001. }
  17002. .dialog_change >>> .el-dialog {
  17003. border-radius: 5px;
  17004. }
  17005. .dialog_change >>> .el-dialog__header {
  17006. background: #f2f2f2;
  17007. text-align: center;
  17008. }
  17009. .dialog_change >>> .el-dialog__title {
  17010. line-height: 5px;
  17011. }
  17012. .dialog_change >>> .el-dialog__body {
  17013. background: #fff;
  17014. padding: 10px 20px;
  17015. }
  17016. .score_box {
  17017. display: flex;
  17018. align-items: center;
  17019. margin-bottom: 18px;
  17020. margin-top: 20px;
  17021. }
  17022. .up_photo {
  17023. width: 120px;
  17024. cursor: pointer;
  17025. margin-top: 10px;
  17026. }
  17027. .up_photo2 {
  17028. width: 180px;
  17029. box-sizing: border-box;
  17030. min-width: 180px;
  17031. height: 180px;
  17032. max-height: 180px;
  17033. min-height: 180px;
  17034. cursor: pointer;
  17035. display: flex;
  17036. flex-direction: column;
  17037. align-items: center;
  17038. justify-content: center;
  17039. background: rgb(242, 246, 255);
  17040. /* padding: 25px; */
  17041. margin-bottom: 10px;
  17042. }
  17043. .up_photo2 img {
  17044. width: 50%;
  17045. height: auto;
  17046. }
  17047. .up_photo2 span {
  17048. color: #898989;
  17049. }
  17050. .plworkBox {
  17051. display: flex;
  17052. align-items: center;
  17053. margin-top: 10px;
  17054. flex-wrap: wrap;
  17055. }
  17056. .upload_send {
  17057. margin: 30px auto 30px;
  17058. width: 60%;
  17059. background: #169bd6;
  17060. text-align: center;
  17061. height: 35px;
  17062. line-height: 35px;
  17063. color: #fff;
  17064. border-radius: 5px;
  17065. cursor: pointer;
  17066. }
  17067. .marginT {
  17068. margin-top: 20px;
  17069. }
  17070. .cd_content_steps {
  17071. display: flex;
  17072. width: 90%;
  17073. justify-content: space-around;
  17074. border-top: 1px solid #eeeeee;
  17075. }
  17076. .cd_steps_box {
  17077. display: flex;
  17078. justify-content: center;
  17079. align-items: center;
  17080. flex-direction: column;
  17081. cursor: pointer;
  17082. }
  17083. .first {
  17084. display: flex;
  17085. align-items: center;
  17086. margin: 15px 0 20px 0;
  17087. font-size: 20px;
  17088. }
  17089. .first > div:nth-child(2) {
  17090. font-size: 16px !important;
  17091. padding-left: 10px;
  17092. line-height: 26px;
  17093. box-sizing: border-box;
  17094. }
  17095. .blue_box_one {
  17096. text-align: center;
  17097. color: #fff;
  17098. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  17099. border-radius: 7px;
  17100. margin: 10px;
  17101. cursor: pointer;
  17102. width: 95%;
  17103. height: 45px;
  17104. display: flex;
  17105. flex-direction: row;
  17106. justify-content: flex-start;
  17107. align-items: center;
  17108. }
  17109. .blue_box_one > div:nth-child(1) {
  17110. line-height: 30px;
  17111. margin: 0 5px 0 10px;
  17112. width: 30%;
  17113. min-width: 70px;
  17114. border-radius: 4px;
  17115. }
  17116. .blue_box_one > div:nth-child(2) {
  17117. white-space: nowrap;
  17118. text-overflow: ellipsis;
  17119. overflow: hidden;
  17120. word-break: break-all;
  17121. width: 70%;
  17122. text-align: left;
  17123. margin-right: 10px;
  17124. max-width: calc(100% - 85px);
  17125. }
  17126. .blue_box_one > div:nth-child(2):hover {
  17127. overflow: hidden;
  17128. text-overflow: ellipsis;
  17129. white-space: nowrap;
  17130. cursor: pointer;
  17131. }
  17132. .upFile {
  17133. margin: 0 auto;
  17134. width: 120px;
  17135. background: #70afdb;
  17136. color: #fff;
  17137. height: 30px;
  17138. text-align: center;
  17139. line-height: 30px;
  17140. border-radius: 5px;
  17141. font-size: 14px;
  17142. cursor: pointer;
  17143. }
  17144. .courseTitle {
  17145. width: 85%;
  17146. margin: 10px auto;
  17147. display: flex;
  17148. flex-direction: row;
  17149. align-items: center;
  17150. justify-content: space-between;
  17151. text-align: center;
  17152. }
  17153. .courseTitle .ctitle {
  17154. font-size: 24px;
  17155. font-weight: bold;
  17156. color: #0e1e33;
  17157. white-space: nowrap;
  17158. overflow: hidden;
  17159. text-overflow: ellipsis;
  17160. }
  17161. .inviteBox {
  17162. font-size: 14px;
  17163. margin-top: 5px;
  17164. color: #a6cbff;
  17165. text-align: center;
  17166. }
  17167. .courseTitle >>> .el-tooltip {
  17168. width: 100%;
  17169. white-space: nowrap;
  17170. overflow: hidden;
  17171. text-overflow: ellipsis;
  17172. word-break: break-word;
  17173. }
  17174. .ml {
  17175. margin-left: 20px;
  17176. color: #5b7dba;
  17177. border-left: 3px solid #5b7dba;
  17178. padding-left: 5px;
  17179. font-weight: bold;
  17180. }
  17181. .return {
  17182. width: 2rem;
  17183. height: 2rem;
  17184. cursor: pointer;
  17185. }
  17186. .return > img {
  17187. width: 100%;
  17188. height: 100%;
  17189. }
  17190. .returnBtn {
  17191. width: 86px;
  17192. height: 36px;
  17193. background: #e7ebf1;
  17194. border-radius: 4px;
  17195. color: #717c8d;
  17196. text-align: center;
  17197. line-height: 36px;
  17198. margin-right: 20px;
  17199. cursor: pointer;
  17200. font-size: 14px;
  17201. font-weight: 400;
  17202. display: flex;
  17203. flex-direction: row;
  17204. flex-wrap: nowrap;
  17205. align-items: center;
  17206. justify-content: center;
  17207. }
  17208. .commentIcon::before,
  17209. .vedioIcon::before,
  17210. .lockIcon::before,
  17211. .returnIcon::before {
  17212. content: "";
  17213. display: block;
  17214. background-size: 100% 100%;
  17215. background-repeat: no-repeat;
  17216. width: 20px;
  17217. height: 20px;
  17218. margin-right: 5px;
  17219. }
  17220. .commentIcon::before {
  17221. background-image: url("../assets/icon/newIcon/comment.png");
  17222. }
  17223. .vedioIcon::before {
  17224. background-image: url("../assets/icon/newIcon/vedio.png");
  17225. }
  17226. .lockIcon::before {
  17227. background-image: url("../assets/icon/newIcon/lock.png");
  17228. }
  17229. .returnIcon::before {
  17230. background-image: url("../assets/icon/newIcon/return.png");
  17231. }
  17232. .tool {
  17233. display: flex;
  17234. flex-direction: column;
  17235. flex-wrap: nowrap;
  17236. width: 13%;
  17237. margin: 0 30px;
  17238. align-items: center;
  17239. }
  17240. .whiteBIcon {
  17241. width: 150px;
  17242. cursor: pointer;
  17243. }
  17244. .whiteBIcon > img {
  17245. width: 100%;
  17246. height: 100%;
  17247. }
  17248. .mask {
  17249. background-color: rgba(0, 0, 0, 0);
  17250. position: fixed;
  17251. top: 0;
  17252. left: 0;
  17253. width: 100%;
  17254. height: 100%;
  17255. z-index: 20000;
  17256. display: flex;
  17257. align-items: center;
  17258. justify-content: center;
  17259. }
  17260. .progressBox {
  17261. width: 500px;
  17262. height: 180px;
  17263. background: #fff;
  17264. border-radius: 10px;
  17265. box-shadow: 0 0 6px 1px #bfbfbf;
  17266. display: flex;
  17267. align-items: center;
  17268. justify-content: center;
  17269. flex-direction: column;
  17270. position: relative;
  17271. color: #6c6c6c;
  17272. }
  17273. .progressBox >>> .el-progress-bar__outer {
  17274. background-color: #d1dfff !important;
  17275. }
  17276. .progressBox .lbox {
  17277. height: 50px;
  17278. font-size: 19px;
  17279. display: flex;
  17280. align-items: center;
  17281. color: #747474;
  17282. }
  17283. .progressBox .lbox img {
  17284. width: 40px;
  17285. margin-right: 20px;
  17286. }
  17287. .closeCss {
  17288. position: absolute;
  17289. top: 8px;
  17290. right: 8px;
  17291. cursor: pointer;
  17292. width: 20px;
  17293. height: 20px;
  17294. }
  17295. .closeCss > img {
  17296. width: 100%;
  17297. height: 100%;
  17298. }
  17299. .uploadVedio {
  17300. display: flex;
  17301. flex-direction: column;
  17302. flex-wrap: nowrap;
  17303. justify-content: center;
  17304. align-items: center;
  17305. margin: 0 15px 10px 0;
  17306. }
  17307. .uploadVedio > img {
  17308. width: 30px;
  17309. height: 30px;
  17310. }
  17311. .uploadVedio > span {
  17312. white-space: nowrap;
  17313. overflow: hidden;
  17314. text-overflow: ellipsis;
  17315. width: 75px;
  17316. margin-top: 7px;
  17317. }
  17318. .picName {
  17319. white-space: nowrap;
  17320. overflow: hidden;
  17321. text-overflow: ellipsis;
  17322. width: 75px;
  17323. margin-top: 7px;
  17324. }
  17325. .new_top {
  17326. display: flex;
  17327. background: #fff;
  17328. flex-direction: row;
  17329. justify-content: flex-start;
  17330. align-items: center;
  17331. height: 60px;
  17332. position: relative;
  17333. }
  17334. .new_top::before {
  17335. content: "";
  17336. width: 100%;
  17337. height: 20px;
  17338. position: absolute;
  17339. top: -20px;
  17340. display: block;
  17341. background: #f2f2f2;
  17342. }
  17343. .before {
  17344. position: absolute;
  17345. background: #c3dad4;
  17346. width: 6px;
  17347. height: 100%;
  17348. }
  17349. .courseIndex {
  17350. display: flex;
  17351. flex-direction: row;
  17352. align-items: center;
  17353. width: calc(100% - 600px);
  17354. }
  17355. .courseIndex > div:nth-child(1) {
  17356. margin: 0 0 0 10px;
  17357. font-size: 24px;
  17358. min-width: 100px;
  17359. font-weight: bold;
  17360. border-left: 4px solid #3363b9;
  17361. height: 35px;
  17362. text-align: center;
  17363. line-height: 35px;
  17364. }
  17365. .courseIndex > div:nth-child(2) {
  17366. font-size: 23px;
  17367. /* width: 300px; */
  17368. max-width: calc(100% - 180px);
  17369. white-space: nowrap;
  17370. overflow: hidden;
  17371. text-overflow: ellipsis;
  17372. }
  17373. .courseIndex > div:nth-child(3) {
  17374. border-bottom: 1px solid #d7d7d7;
  17375. padding-bottom: 5px;
  17376. background: #49a0f0;
  17377. width: 55px;
  17378. min-width: 55px;
  17379. border-radius: 5px;
  17380. color: #fff;
  17381. text-align: center;
  17382. height: 20px;
  17383. line-height: 26px;
  17384. font-size: 14px;
  17385. margin: 0 0 0 10px;
  17386. }
  17387. .course_text {
  17388. padding: 20px 0 0 15px;
  17389. text-indent: 30px;
  17390. width: 80%;
  17391. min-height: 20px;
  17392. }
  17393. .vedioList {
  17394. background: #f2f2f2;
  17395. border: 1px solid #ececec;
  17396. /* width: 38.8%; */
  17397. width: 300px;
  17398. height: 445px;
  17399. border-radius: 10px;
  17400. overflow: hidden;
  17401. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  17402. }
  17403. .vedioNav {
  17404. margin: 10px 0 0 15px;
  17405. border-bottom: 1px solid #d7d7d7;
  17406. padding-bottom: 5px;
  17407. background: #96d1ff;
  17408. width: 55px;
  17409. min-width: 55px;
  17410. border-radius: 5px;
  17411. color: #fff;
  17412. text-align: center;
  17413. height: 20px;
  17414. line-height: 26px;
  17415. font-size: 14px;
  17416. }
  17417. .queTop {
  17418. display: flex;
  17419. padding: 20px 0 20px 30px;
  17420. width: 100%;
  17421. flex-direction: row;
  17422. justify-content: flex-start;
  17423. align-items: center;
  17424. box-sizing: border-box;
  17425. }
  17426. .queTop::before {
  17427. content: "";
  17428. width: 2px;
  17429. height: 22px;
  17430. background: #3681fc;
  17431. border-radius: 3px;
  17432. display: block;
  17433. margin: 2px 6px 0 0;
  17434. }
  17435. .question {
  17436. width: 40px;
  17437. margin-right: 10px;
  17438. margin-top: 7px;
  17439. }
  17440. .queTitle {
  17441. margin-left: 5px;
  17442. font-size: 25px;
  17443. display: flex;
  17444. align-items: center;
  17445. }
  17446. .addEditor {
  17447. width: 100px;
  17448. height: 30px;
  17449. background: #42cda6;
  17450. color: #fff;
  17451. border-radius: 5px;
  17452. text-align: center;
  17453. line-height: 30px;
  17454. box-shadow: 1px 3px 6px 1px #bfbfbf;
  17455. cursor: pointer;
  17456. }
  17457. /* .vedioName {
  17458. cursor: pointer;
  17459. margin: 0px 0px 10px 5px;
  17460. white-space: nowrap;
  17461. overflow: hidden;
  17462. text-overflow: ellipsis;
  17463. width: 100%;
  17464. } */
  17465. .vedioTime {
  17466. width: 35px;
  17467. position: absolute;
  17468. color: #fff;
  17469. bottom: 0px;
  17470. right: 0px;
  17471. text-align: center;
  17472. background: #46411f;
  17473. height: 20px;
  17474. font-size: 14px;
  17475. line-height: 20px;
  17476. }
  17477. .homework {
  17478. width: 200px;
  17479. display: flex;
  17480. flex-direction: column;
  17481. flex-wrap: nowrap;
  17482. align-items: center;
  17483. cursor: pointer;
  17484. }
  17485. .homebox {
  17486. display: flex;
  17487. flex-wrap: wrap;
  17488. flex-direction: row;
  17489. justify-content: flex-start;
  17490. align-items: center;
  17491. padding: 15px 0;
  17492. }
  17493. .isChooseActive {
  17494. color: #3681fc !important;
  17495. font-weight: bold !important;
  17496. }
  17497. .chooseWho {
  17498. display: flex;
  17499. width: 100%;
  17500. flex-direction: row;
  17501. flex-wrap: nowrap;
  17502. justify-content: flex-start;
  17503. padding-bottom: 10px;
  17504. }
  17505. .chooseWho > div {
  17506. cursor: pointer;
  17507. padding-bottom: 10px;
  17508. margin: 0 30px 0 0;
  17509. font-weight: 400;
  17510. color: #0e1e33;
  17511. }
  17512. .addPoint > div > img {
  17513. cursor: pointer;
  17514. width: 85px;
  17515. border-radius: 15px;
  17516. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  17517. }
  17518. .addPoint > div {
  17519. display: flex;
  17520. flex-direction: column;
  17521. flex-wrap: nowrap;
  17522. align-items: center;
  17523. }
  17524. .isBorder > div {
  17525. margin: 0 0 10px 0;
  17526. align-items: flex-start !important;
  17527. }
  17528. .noiframeBox {
  17529. display: flex;
  17530. flex-wrap: wrap;
  17531. }
  17532. .iframeBox iframe {
  17533. width: 100%;
  17534. height: 800px;
  17535. border: none;
  17536. margin-bottom: 20px;
  17537. border: 1px solid #ccc;
  17538. }
  17539. .upload_toolBtn {
  17540. background: #6b92c9;
  17541. color: #fff;
  17542. width: 110px;
  17543. text-align: center;
  17544. height: 35px;
  17545. line-height: 35px;
  17546. font-size: 14px;
  17547. border-radius: 5px;
  17548. cursor: pointer;
  17549. position: absolute;
  17550. right: 10px;
  17551. bottom: 0;
  17552. }
  17553. .binfo_input,
  17554. .pj {
  17555. font: inherit;
  17556. color: currentColor;
  17557. width: 100%;
  17558. margin: 0;
  17559. padding: 15px 14px;
  17560. display: block;
  17561. min-width: 0;
  17562. outline: none;
  17563. box-sizing: content-box;
  17564. background: none;
  17565. -webkit-tap-highlight-color: transparent;
  17566. border: 1px solid rgba(0, 0, 0, 0.23);
  17567. border-radius: 4px;
  17568. box-sizing: border-box;
  17569. resize: none;
  17570. }
  17571. .binfo_input:focus-visible {
  17572. border: 1px solid rgba(61, 103, 188);
  17573. }
  17574. .dialog_diy >>> .el-dialog__header,
  17575. .dialog_diy1 >>> .el-dialog__header {
  17576. background: #454545 !important;
  17577. padding: 15px 20px;
  17578. }
  17579. .dialog_diy >>> .el-dialog__title,
  17580. .dialog_diy1 >>> .el-dialog__title {
  17581. color: #fff;
  17582. }
  17583. .dialog_diy >>> .el-dialog__headerbtn,
  17584. .dialog_diy1 >>> .el-dialog__headerbtn {
  17585. top: 19px;
  17586. }
  17587. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  17588. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  17589. color: #fff;
  17590. }
  17591. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  17592. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  17593. color: #fff;
  17594. }
  17595. .dialog_diy1 >>> .el-dialog__body {
  17596. padding: 0;
  17597. }
  17598. .dialog_diy >>> .el-dialog__body,
  17599. .dialog_diy >>> .el-dialog__footer,
  17600. .dialog_diy1 >>> .el-dialog__footer {
  17601. background: #fafafa;
  17602. }
  17603. .a_addBox {
  17604. margin: 10px 0;
  17605. background: #fff;
  17606. padding: 15px;
  17607. }
  17608. .a_add_box {
  17609. border-bottom: 2px solid #eee;
  17610. padding-bottom: 10px;
  17611. }
  17612. .a_add_head {
  17613. display: flex;
  17614. align-items: flex-start;
  17615. /* justify-content: space-between; */
  17616. flex-direction: column;
  17617. /* flex-direction: row; */
  17618. margin: 10px 0 20px 0;
  17619. font-size: 18px;
  17620. width: 100%;
  17621. }
  17622. .a_add_head .a_add_head_input {
  17623. width: 300px;
  17624. }
  17625. .a_add_head .a_add_head_div {
  17626. display: flex;
  17627. align-items: center;
  17628. justify-content: space-between;
  17629. }
  17630. .a_add_body {
  17631. display: flex;
  17632. align-items: center;
  17633. }
  17634. .a_add_input {
  17635. display: flex;
  17636. align-items: center;
  17637. flex-wrap: wrap;
  17638. }
  17639. .a_add_input >>> el-radio-group {
  17640. margin: 10px 0;
  17641. }
  17642. .a_add_input >>> .el-radio,
  17643. .a_add_input >>> .el-checkbox {
  17644. margin-bottom: 10px;
  17645. display: flex;
  17646. flex-direction: row;
  17647. flex-wrap: nowrap;
  17648. align-items: center;
  17649. }
  17650. .redioStyle >>> .el-radio__label {
  17651. font-size: 18px;
  17652. }
  17653. .redioStyle >>> .el-checkbox__label {
  17654. font-size: 18px;
  17655. }
  17656. .toolHeng2 {
  17657. width: 100%;
  17658. padding-left: 37px;
  17659. box-sizing: border-box;
  17660. }
  17661. .workNav {
  17662. font-size: 20px;
  17663. font-weight: bold;
  17664. color: #0e1e33;
  17665. display: flex;
  17666. flex-direction: row;
  17667. flex-wrap: nowrap;
  17668. align-items: center;
  17669. padding: 24px 0 15px 0;
  17670. }
  17671. .workNav::before {
  17672. content: "";
  17673. width: 2px;
  17674. height: 22px;
  17675. background: #3681fc;
  17676. border-radius: 3px;
  17677. display: block;
  17678. margin: 2px 6px 0 0;
  17679. }
  17680. .toolHeng {
  17681. display: flex;
  17682. flex-direction: row;
  17683. flex-wrap: wrap;
  17684. justify-content: flex-start;
  17685. align-items: center;
  17686. width: 100%;
  17687. }
  17688. .toolHeng > div {
  17689. padding-left: 20px;
  17690. }
  17691. .isWidth {
  17692. width: 20%;
  17693. }
  17694. .textTitle {
  17695. display: flex;
  17696. flex-direction: row;
  17697. flex-wrap: nowrap;
  17698. align-items: center;
  17699. width: 95%;
  17700. }
  17701. .textTitle >>> .el-form-item__label {
  17702. font-size: 22px;
  17703. color: #918f8f;
  17704. width: 100px;
  17705. }
  17706. .textTitle >>> .el-form-item__content {
  17707. width: calc(100% - 100px);
  17708. }
  17709. .textCss >>> .el-dialog {
  17710. width: 800px !important;
  17711. height: 400px;
  17712. background: #fafafa;
  17713. }
  17714. .textCss >>> .el-dialog__body {
  17715. margin: 55px 8% 0 8%;
  17716. padding: 0 !important;
  17717. }
  17718. .textCss >>> .el-dialog__footer {
  17719. padding-top: 38px;
  17720. }
  17721. .toolsCss >>> .el-dialog__body {
  17722. padding: 20px;
  17723. }
  17724. .lineCss >>> .el-dialog__body {
  17725. display: flex;
  17726. flex-direction: row;
  17727. align-items: center;
  17728. justify-content: center;
  17729. }
  17730. .newNav {
  17731. display: flex;
  17732. flex-direction: row;
  17733. align-items: baseline;
  17734. justify-content: flex-start;
  17735. }
  17736. .navListItem {
  17737. width: 280px;
  17738. height: 50px;
  17739. margin: 0px auto 10px;
  17740. display: flex;
  17741. flex-direction: row;
  17742. flex-wrap: nowrap;
  17743. align-items: center;
  17744. justify-content: space-between;
  17745. background: #f0f4fa;
  17746. border-radius: 6px 6px 6px 6px;
  17747. }
  17748. .navText {
  17749. cursor: pointer;
  17750. white-space: nowrap;
  17751. overflow: hidden;
  17752. text-overflow: ellipsis;
  17753. width: 220px;
  17754. padding: 0 10px;
  17755. font-weight: 400;
  17756. color: #0e1e33;
  17757. }
  17758. .downIcon {
  17759. width: 20px;
  17760. height: 20px;
  17761. margin-right: 15px;
  17762. cursor: pointer;
  17763. }
  17764. .downIcon > img {
  17765. width: 100%;
  17766. height: 100%;
  17767. }
  17768. .noVedio {
  17769. display: flex;
  17770. flex-direction: row;
  17771. justify-content: center;
  17772. align-content: center;
  17773. }
  17774. .noNavText {
  17775. cursor: pointer;
  17776. margin: 0px 0px 10px 5px;
  17777. width: 112px;
  17778. }
  17779. .listNoVedio {
  17780. margin: 0 0 0 30px;
  17781. width: 97%;
  17782. }
  17783. .video-player >>> .video-js {
  17784. height: 100%;
  17785. }
  17786. .hangVedioList {
  17787. width: 90% !important;
  17788. height: 150px !important;
  17789. margin: 20px 0 0 30px;
  17790. }
  17791. .hangVedio {
  17792. width: 100%;
  17793. height: 170px !important;
  17794. align-items: flex-start !important;
  17795. }
  17796. .hangHand {
  17797. height: 150px !important;
  17798. }
  17799. .twoChild {
  17800. width: 95%;
  17801. margin: 10px;
  17802. border-radius: 5px;
  17803. background: #f2f2f2;
  17804. display: flex;
  17805. flex-direction: column;
  17806. flex-wrap: nowrap;
  17807. justify-content: flex-start;
  17808. align-items: flex-start;
  17809. transition: all 0.5s;
  17810. overflow: hidden;
  17811. height: 0;
  17812. background: #e7f3ff;
  17813. }
  17814. .twoChild > div:nth-child(1) {
  17815. margin-top: 5px;
  17816. }
  17817. .navChild {
  17818. width: 100%;
  17819. cursor: pointer;
  17820. margin-bottom: 10px;
  17821. position: relative;
  17822. }
  17823. .navChild img {
  17824. position: absolute;
  17825. right: 11px;
  17826. width: 15px;
  17827. top: 50%;
  17828. transform: translateY(-50%);
  17829. }
  17830. .navActive {
  17831. height: auto !important;
  17832. overflow: auto !important;
  17833. padding-bottom: 16px;
  17834. }
  17835. .navTask {
  17836. display: flex;
  17837. flex-direction: row;
  17838. flex-wrap: nowrap;
  17839. align-items: center;
  17840. align-content: flex-start;
  17841. height: 40px;
  17842. justify-content: flex-start;
  17843. padding: 0 10px;
  17844. width: 100%;
  17845. box-sizing: border-box;
  17846. }
  17847. .navTaskname {
  17848. white-space: nowrap;
  17849. text-overflow: ellipsis;
  17850. overflow: hidden;
  17851. word-break: break-all;
  17852. padding-left: 5px;
  17853. }
  17854. .openTaskActive {
  17855. background-color: #3681fc !important;
  17856. }
  17857. .iframeName {
  17858. margin: 5px 0;
  17859. border-left: 4px solid #41c4a4;
  17860. padding-left: 4px;
  17861. }
  17862. .toolTitle {
  17863. margin: 0px 0px 20px;
  17864. font-size: 20px;
  17865. font-weight: 500;
  17866. border-left: 4px solid #41c4a4;
  17867. padding-left: 4px;
  17868. }
  17869. .cru_selectBox {
  17870. overflow: auto;
  17871. width: 90%;
  17872. margin: 17px auto 0;
  17873. height: calc(100% - 40px - 21px - 20px - 17px);
  17874. background: #f0f4fa;
  17875. border-radius: 8px;
  17876. }
  17877. .cru_selectBox::-webkit-scrollbar,
  17878. .study_top::-webkit-scrollbar,
  17879. .textContent::-webkit-scrollbar {
  17880. /*滚动条整体样式*/
  17881. width: 6px;
  17882. /*高宽分别对应横竖滚动条的尺寸*/
  17883. height: 6px;
  17884. }
  17885. /*定义滚动条轨道 内阴影+圆角*/
  17886. .cru_selectBox::-webkit-scrollbar-track,
  17887. .study_top::-webkit-scrollbar-track,
  17888. .textContent::-webkit-scrollbar {
  17889. border-radius: 10px;
  17890. background-color: #b8bdc9;
  17891. }
  17892. /*定义滑块 内阴影+圆角*/
  17893. .cru_selectBox::-webkit-scrollbar-thumb,
  17894. .study_top::-webkit-scrollbar-thumb,
  17895. .textContent::-webkit-scrollbar-thumb {
  17896. border-radius: 10px;
  17897. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  17898. background-color: #2c5ab3;
  17899. }
  17900. .vedioBox {
  17901. border-radius: 20px;
  17902. background: #fff;
  17903. margin-bottom: 10px;
  17904. overflow: auto;
  17905. }
  17906. .taskBox {
  17907. width: 95%;
  17908. margin: 0 auto;
  17909. }
  17910. .vedioTaskBox {
  17911. width: 100%;
  17912. display: flex;
  17913. flex-direction: row;
  17914. flex-wrap: nowrap;
  17915. align-items: flex-start;
  17916. position: relative;
  17917. }
  17918. .toolBox {
  17919. padding: 30px 0 0 25px;
  17920. display: flex;
  17921. }
  17922. .btnAll {
  17923. position: absolute;
  17924. right: 0;
  17925. display: flex;
  17926. flex-direction: row;
  17927. flex-wrap: nowrap;
  17928. align-items: center;
  17929. }
  17930. /* .vedioTimeBox {
  17931. display: flex;
  17932. flex-direction: row;
  17933. align-items: center;
  17934. flex-wrap: nowrap;
  17935. position: relative;
  17936. } */
  17937. .navBox {
  17938. background: #fff;
  17939. height: calc(100% - 40px);
  17940. overflow-y: auto;
  17941. overflow-x: hidden;
  17942. }
  17943. .worksBox {
  17944. padding: 20px 0 0 10px;
  17945. border-bottom: 1px solid #eeeeee;
  17946. width: 96%;
  17947. margin: 0 auto;
  17948. }
  17949. .worksBTitle {
  17950. font-size: 20px;
  17951. padding-bottom: 15px;
  17952. border-bottom: 1px solid #eeeeee;
  17953. display: flex;
  17954. align-items: center;
  17955. }
  17956. .greenBox {
  17957. width: 5px;
  17958. height: 30px;
  17959. background: #63b6fa;
  17960. margin-right: 5px;
  17961. }
  17962. .worksDetailBox {
  17963. display: flex;
  17964. width: 100%;
  17965. flex-direction: row;
  17966. flex-wrap: wrap;
  17967. align-items: flex-end;
  17968. justify-content: flex-start;
  17969. padding: 15px 0;
  17970. }
  17971. .works {
  17972. display: flex;
  17973. flex-direction: column;
  17974. flex-wrap: nowrap;
  17975. align-items: flex-start;
  17976. justify-content: flex-start;
  17977. align-content: center;
  17978. max-width: 240px;
  17979. width: calc(100% / 3 - 10px);
  17980. height: auto;
  17981. margin-right: 10px;
  17982. margin-bottom: 10px;
  17983. overflow: hidden;
  17984. height: 140px;
  17985. box-shadow: 0 0 6px 1px #dfdada;
  17986. border-radius: 15px;
  17987. }
  17988. .workImg {
  17989. width: 100%;
  17990. /* height: calc(100% - 40px); */
  17991. height: 105px;
  17992. position: relative;
  17993. }
  17994. .workImg > img {
  17995. width: 100%;
  17996. height: 100%;
  17997. object-fit: contain;
  17998. cursor: pointer;
  17999. }
  18000. .worksName {
  18001. height: 40px;
  18002. line-height: 40px;
  18003. display: flex;
  18004. width: 100%;
  18005. flex-direction: row;
  18006. flex-wrap: nowrap;
  18007. justify-content: space-between;
  18008. align-items: center;
  18009. margin: 0 0 0 10px;
  18010. }
  18011. .worksName > div:nth-child(1) {
  18012. width: 110px;
  18013. white-space: nowrap;
  18014. overflow: hidden;
  18015. text-overflow: ellipsis;
  18016. }
  18017. .worksName > div:nth-child(2) {
  18018. color: #b7b4b5;
  18019. }
  18020. .noWorksS {
  18021. padding: 15px 0;
  18022. display: flex;
  18023. flex-direction: row;
  18024. flex-wrap: wrap;
  18025. align-items: center;
  18026. justify-content: flex-start;
  18027. }
  18028. .noWorksName,
  18029. .isWorksName {
  18030. background: #7cbcf1;
  18031. color: #fff;
  18032. width: 90px;
  18033. height: 25px;
  18034. text-align: center;
  18035. line-height: 25px;
  18036. border-radius: 5px;
  18037. margin: 10px 15px 10px 0;
  18038. white-space: nowrap;
  18039. overflow: hidden;
  18040. padding: 5px;
  18041. text-overflow: ellipsis;
  18042. cursor: pointer;
  18043. }
  18044. .isWorksName {
  18045. background: #46a1eb !important;
  18046. width: 100px;
  18047. height: 40px;
  18048. line-height: 40px;
  18049. position: relative;
  18050. }
  18051. .noWorksName:hover {
  18052. background: #46a1eb !important;
  18053. }
  18054. .title {
  18055. background: #1e5cc9;
  18056. /* width: 98%; */
  18057. height: 45px;
  18058. color: #fff;
  18059. line-height: 45px;
  18060. padding-left: 20px;
  18061. box-sizing: border-box;
  18062. }
  18063. .textBox {
  18064. font-size: 20px;
  18065. width: 90%;
  18066. display: flex;
  18067. flex-direction: column;
  18068. align-items: center;
  18069. margin: 20px auto 0;
  18070. max-height: 500px;
  18071. overflow: auto;
  18072. }
  18073. .textContent {
  18074. font-size: 18px;
  18075. width: 95%;
  18076. max-width: 95%;
  18077. }
  18078. .answerBg {
  18079. background: url("../assets/icon/answerBgNew.png") no-repeat;
  18080. background-size: 100% 100%;
  18081. width: 100%;
  18082. height: 100%;
  18083. color: #fff;
  18084. text-align: center;
  18085. display: flex;
  18086. flex-direction: column;
  18087. flex-wrap: nowrap;
  18088. align-items: center;
  18089. position: relative;
  18090. justify-content: center;
  18091. }
  18092. .answerBg > div:nth-child(1) {
  18093. /* font-size: 22px;
  18094. padding: 25px 0 10px; */
  18095. }
  18096. .answerContent {
  18097. width: 215px;
  18098. max-height: 60px;
  18099. word-break: break-all;
  18100. text-align: center;
  18101. /* white-space: nowrap; */
  18102. overflow: hidden;
  18103. text-overflow: ellipsis;
  18104. /* padding: 23px 0 0; */
  18105. -webkit-line-clamp: 3;
  18106. -webkit-box-orient: vertical;
  18107. display: -webkit-box;
  18108. font-size: 15px;
  18109. cursor: pointer;
  18110. }
  18111. .elist_input_box {
  18112. display: flex;
  18113. align-items: flex-start;
  18114. flex-wrap: nowrap;
  18115. padding: 10px 0 15px 30px;
  18116. flex-direction: column;
  18117. }
  18118. .elist_input {
  18119. /* width: 40%; */
  18120. width: 45%;
  18121. margin: 20px 20px 0 20px;
  18122. }
  18123. .elist_input .elist_input_box input {
  18124. font: inherit;
  18125. color: currentColor;
  18126. width: 200px;
  18127. padding: 8px 14px;
  18128. display: block;
  18129. min-width: 0;
  18130. outline: none;
  18131. border: 1px solid rgba(0, 0, 0, 0.23);
  18132. border-radius: 4px;
  18133. box-sizing: border-box;
  18134. background: #fff;
  18135. margin: 0 20px 0 0;
  18136. }
  18137. .elist_input .elist_input_box span {
  18138. height: 36px;
  18139. line-height: 36px;
  18140. color: rgb(82, 82, 82);
  18141. }
  18142. .elist_input .elist_input_box .remove {
  18143. height: 20px;
  18144. width: 20px;
  18145. background-size: 100% 100%;
  18146. background-position: unset;
  18147. margin-left: 5px;
  18148. }
  18149. .elist_input_box >>> .el-rate {
  18150. display: flex;
  18151. height: 36px;
  18152. align-items: center;
  18153. }
  18154. .elist_input_box .elist_inptu_text {
  18155. min-height: 50px;
  18156. /* width: 500px;
  18157. max-height: 150px; */
  18158. width: 100%;
  18159. line-height: 50px;
  18160. color: rgb(82, 82, 82);
  18161. overflow: auto;
  18162. text-indent: 5px;
  18163. background: #f7f6f9;
  18164. border-radius: 10px;
  18165. }
  18166. .elist_input_box .elist_inptu_text input {
  18167. width: 500px;
  18168. }
  18169. .elist_input_box >>> .el-rate__icon {
  18170. font-size: 24px;
  18171. }
  18172. .isClick {
  18173. background: #4d9def;
  18174. }
  18175. .bzBox {
  18176. display: flex;
  18177. flex-direction: row;
  18178. align-items: center;
  18179. }
  18180. .bzBox .yCss {
  18181. width: 14px;
  18182. height: 14px;
  18183. background: #3681fc;
  18184. margin: 0 16px 0 7px;
  18185. border-radius: 50%;
  18186. }
  18187. .bzBox > div:nth-child(2) {
  18188. font-size: 18px;
  18189. font-weight: bold;
  18190. color: #0e1e33;
  18191. }
  18192. .navTitile {
  18193. padding: 0 0px 0 15px;
  18194. font-size: 16px;
  18195. font-weight: bold;
  18196. color: #0e1e33;
  18197. height: 40px;
  18198. line-height: 40px;
  18199. }
  18200. .isTypeOne {
  18201. width: 240px;
  18202. height: 170px;
  18203. /* border: 1px solid #f8f8f8; */
  18204. border-radius: 10px;
  18205. box-shadow: 0 0 6px 1px #dfdada;
  18206. }
  18207. .e_add_top {
  18208. display: flex;
  18209. justify-content: space-between;
  18210. padding: 20px 20px 0 20px;
  18211. border-radius: 3px;
  18212. background: #fff;
  18213. }
  18214. .e_add_title2 {
  18215. display: flex;
  18216. align-items: center;
  18217. }
  18218. .e_add_title2 span {
  18219. width: 40px;
  18220. }
  18221. .e_add_title {
  18222. display: flex;
  18223. align-items: center;
  18224. color: #b8b8b8;
  18225. font-size: 18px;
  18226. position: relative;
  18227. height: 40px;
  18228. }
  18229. .e_add_title span {
  18230. margin-right: 10px;
  18231. }
  18232. .e_add_title .el_input {
  18233. width: 300px;
  18234. }
  18235. .e_add_title >>> .el-input__inner {
  18236. width: 400px;
  18237. }
  18238. .e_add_btn {
  18239. }
  18240. .e_add_content {
  18241. display: flex;
  18242. width: 100%;
  18243. max-width: 650px;
  18244. height: 550px;
  18245. }
  18246. .e_add_list {
  18247. background: #fff;
  18248. height: 500px;
  18249. width: 210px;
  18250. position: relative;
  18251. margin: 15px 5px 0 0;
  18252. flex-shrink: 0;
  18253. display: flex;
  18254. flex-direction: column;
  18255. }
  18256. .e_add_list_title {
  18257. font-size: 20px;
  18258. width: 100%;
  18259. box-sizing: border-box;
  18260. padding: 15px 40px;
  18261. text-align: center;
  18262. border-bottom: 1px solid #eaeaea;
  18263. position: relative;
  18264. display: flex;
  18265. align-items: center;
  18266. justify-content: center;
  18267. height: 57px;
  18268. background: #f6f6f6;
  18269. }
  18270. .e_add_list_title span {
  18271. overflow: hidden;
  18272. white-space: nowrap;
  18273. text-overflow: ellipsis;
  18274. }
  18275. .e_add_list_title img {
  18276. position: absolute;
  18277. right: 15px;
  18278. width: 25px;
  18279. cursor: pointer;
  18280. top: 50%;
  18281. transform: translateY(-50%);
  18282. }
  18283. .e_add_list_body {
  18284. height: calc(100% - 187px);
  18285. overflow: auto;
  18286. }
  18287. .e_add_list_child {
  18288. width: 100%;
  18289. display: flex;
  18290. align-items: center;
  18291. justify-content: center;
  18292. position: relative;
  18293. box-sizing: border-box;
  18294. padding: 15px 40px;
  18295. text-align: center;
  18296. }
  18297. .e_add_list_child span {
  18298. overflow: hidden;
  18299. white-space: nowrap;
  18300. text-overflow: ellipsis;
  18301. cursor: pointer;
  18302. }
  18303. .e_add_list_child img {
  18304. position: absolute;
  18305. right: 10px;
  18306. width: 21px;
  18307. cursor: pointer;
  18308. top: 50%;
  18309. transform: translateY(-50%);
  18310. }
  18311. .e_add_list_child + .e_add_list_child {
  18312. border-top: 1px solid #eaeaea;
  18313. }
  18314. .e_add_list_child .active {
  18315. color: #409eff;
  18316. }
  18317. .e_add_list_btn {
  18318. position: absolute;
  18319. bottom: 0;
  18320. height: 50px;
  18321. background: rgb(120, 120, 254);
  18322. width: 100%;
  18323. color: #fff;
  18324. font-size: 16px;
  18325. text-align: center;
  18326. line-height: 50px;
  18327. cursor: pointer;
  18328. }
  18329. .e_add_list_detail {
  18330. position: absolute;
  18331. bottom: 0;
  18332. height: 130px;
  18333. background: rgb(120, 120, 254);
  18334. width: 100%;
  18335. color: #fff;
  18336. font-size: 16px;
  18337. display: flex;
  18338. align-items: center;
  18339. justify-content: center;
  18340. }
  18341. .e_add_list_detail textarea {
  18342. height: 90%;
  18343. width: 95%;
  18344. border: none;
  18345. resize: none;
  18346. outline: none;
  18347. padding: 5px;
  18348. box-sizing: border-box;
  18349. }
  18350. .e_add_list_pbox {
  18351. width: 100%;
  18352. max-width: 650px;
  18353. /* height: 600px; */
  18354. }
  18355. .e_add_list_pbox_title {
  18356. height: 50px;
  18357. background: #fff;
  18358. display: flex;
  18359. align-items: center;
  18360. width: 100%;
  18361. box-sizing: border-box;
  18362. padding: 0 20px;
  18363. }
  18364. .type_title {
  18365. font-size: 18px;
  18366. font-weight: 700;
  18367. }
  18368. .type_content {
  18369. font-size: 16px;
  18370. margin-left: 30px;
  18371. }
  18372. .type_content span + span {
  18373. margin-left: 20px;
  18374. }
  18375. .type_content span {
  18376. cursor: pointer;
  18377. padding-bottom: 5px;
  18378. box-sizing: border-box;
  18379. }
  18380. .type_content .active {
  18381. color: #409eff;
  18382. border-bottom: 2px solid #409eff;
  18383. }
  18384. .e_add_list_pbox_content {
  18385. height: calc(100% - 50px);
  18386. display: flex;
  18387. align-items: center;
  18388. width: 100%;
  18389. background: #fff;
  18390. }
  18391. .evaCss {
  18392. display: flex;
  18393. flex-direction: row;
  18394. flex-wrap: nowrap;
  18395. align-items: flex-start;
  18396. }
  18397. .cru_line {
  18398. position: absolute;
  18399. bottom: 0px;
  18400. transition: all 0.5s;
  18401. left: 0px;
  18402. width: 125px;
  18403. margin-left: -25px;
  18404. }
  18405. .isNoMessage {
  18406. width: 20%;
  18407. margin: 25% auto 0;
  18408. }
  18409. .isNoMessage > img {
  18410. width: 100%;
  18411. height: 100%;
  18412. }
  18413. .fullStyle >>> .el-dialog__body {
  18414. height: 100% !important;
  18415. }
  18416. .fullStyle >>> .el-dialog,
  18417. .fullStyle {
  18418. width: 100% !important;
  18419. max-width: 100% !important;
  18420. height: 100% !important;
  18421. margin: 0 !important;
  18422. }
  18423. .full_diy >>> .el-dialog {
  18424. margin: 0 !important;
  18425. height: 100%;
  18426. padding: 4px;
  18427. }
  18428. .full_diy >>> .el-dialog__body {
  18429. height: calc(100% - 100px);
  18430. }
  18431. .full_diy2 >>> .el-dialog__body {
  18432. height: calc(100% - 50px);
  18433. padding: 0;
  18434. }
  18435. .switchCss {
  18436. /* width: 100%; */
  18437. display: flex;
  18438. flex-direction: row;
  18439. flex-wrap: nowrap;
  18440. align-items: center;
  18441. /* justify-content: center; */
  18442. }
  18443. .isClickNav {
  18444. color: #499eef;
  18445. }
  18446. .commentImg {
  18447. width: 25px;
  18448. height: 25px;
  18449. cursor: pointer;
  18450. }
  18451. .commentImg > img {
  18452. width: 100%;
  18453. height: 100%;
  18454. }
  18455. .comment {
  18456. background: #f9f9f9;
  18457. border-radius: 0 0 4px 4px;
  18458. display: flex;
  18459. flex-direction: row;
  18460. flex-wrap: nowrap;
  18461. align-items: center;
  18462. justify-content: flex-end;
  18463. height: 35px;
  18464. }
  18465. .commentList {
  18466. display: flex;
  18467. flex-direction: row;
  18468. flex-wrap: nowrap;
  18469. align-items: center;
  18470. justify-content: center;
  18471. align-content: center;
  18472. /* margin-left: 15px; */
  18473. /* margin-left: 8px; */
  18474. }
  18475. .scoreImg {
  18476. width: 17px;
  18477. height: 17px;
  18478. }
  18479. .studentDetail {
  18480. display: flex;
  18481. flex-direction: row;
  18482. flex-wrap: nowrap;
  18483. /* align-items: center; */
  18484. align-items: flex-start;
  18485. }
  18486. .tx {
  18487. width: 50px;
  18488. }
  18489. .tx > img {
  18490. width: 100%;
  18491. height: 100%;
  18492. }
  18493. .nameAndTime {
  18494. display: flex;
  18495. flex-direction: column;
  18496. flex-wrap: nowrap;
  18497. align-items: flex-start;
  18498. margin-left: 10px;
  18499. }
  18500. .worksAnswer {
  18501. color: #4078dd;
  18502. margin: 10px 0;
  18503. font-size: 16px;
  18504. position: relative;
  18505. }
  18506. .worksAnswer > img {
  18507. width: 500px;
  18508. height: 300px;
  18509. object-fit: contain;
  18510. margin: 0 auto;
  18511. display: block;
  18512. }
  18513. .commentTop {
  18514. border-bottom: 1px solid #eaeaea;
  18515. padding-bottom: 10px;
  18516. }
  18517. .commentBox {
  18518. padding-top: 15px;
  18519. }
  18520. .pl {
  18521. font-size: 18px;
  18522. }
  18523. .plPerson {
  18524. width: 100%;
  18525. }
  18526. .plName {
  18527. display: flex;
  18528. flex-direction: row;
  18529. flex-wrap: nowrap;
  18530. align-items: baseline;
  18531. color: #78787a;
  18532. width: 100%;
  18533. }
  18534. .deleteComment {
  18535. cursor: pointer;
  18536. margin-left: auto;
  18537. color: #237ade;
  18538. }
  18539. .plContent {
  18540. margin-top: 5px;
  18541. }
  18542. .evalCss {
  18543. background: #fff;
  18544. font-size: 18px;
  18545. }
  18546. .nav {
  18547. color: #9d9d9d;
  18548. padding: 5px 0 15px 20px;
  18549. }
  18550. .middleBox {
  18551. padding: 5px 0 15px 20px;
  18552. }
  18553. .pfBox {
  18554. padding-bottom: 30px;
  18555. }
  18556. .nameAndrate {
  18557. display: flex;
  18558. flex-direction: row;
  18559. flex-wrap: nowrap;
  18560. align-items: center;
  18561. padding-bottom: 10px;
  18562. height: 30px;
  18563. line-height: 30px;
  18564. }
  18565. .nameAndrate > div {
  18566. margin-left: 10px;
  18567. color: #000;
  18568. height: 30px;
  18569. }
  18570. .nameAndrate >>> .el-rate__icon {
  18571. font-size: 28px !important;
  18572. }
  18573. .pfBox > div:nth-child(2) {
  18574. background: #f7f6f9;
  18575. width: 400px;
  18576. min-height: 45px;
  18577. border-radius: 10px;
  18578. font-size: 16px;
  18579. display: flex;
  18580. flex-wrap: wrap;
  18581. align-items: center;
  18582. padding: 10px 20px;
  18583. box-sizing: border-box;
  18584. color: #000;
  18585. }
  18586. .bz {
  18587. display: flex;
  18588. flex-direction: row;
  18589. flex-wrap: nowrap;
  18590. align-items: flex-start;
  18591. }
  18592. .bz > div {
  18593. padding: 0 10px;
  18594. }
  18595. .select_box2_title {
  18596. background: #fff;
  18597. border-radius: 5px;
  18598. padding: 15px 10px;
  18599. box-sizing: border-box;
  18600. margin-bottom: 10px;
  18601. display: flex;
  18602. flex-direction: row;
  18603. flex-wrap: nowrap;
  18604. align-items: center;
  18605. }
  18606. .select_box2_title > div:nth-child(2) {
  18607. margin-left: 10px;
  18608. color: #c4c4c4;
  18609. }
  18610. .select_box2_box {
  18611. display: flex;
  18612. height: 500px;
  18613. }
  18614. .select_box2_img {
  18615. width: calc(100% - 310px);
  18616. height: 100%;
  18617. overflow: auto;
  18618. background: #fff;
  18619. border-radius: 5px;
  18620. }
  18621. .select_box2_img img {
  18622. width: 100%;
  18623. }
  18624. .select_box2_answer {
  18625. background: #fff;
  18626. margin-left: 10px;
  18627. border-radius: 5px;
  18628. width: 300px;
  18629. overflow: auto;
  18630. height: 90%;
  18631. display: flex;
  18632. flex-direction: column;
  18633. align-items: flex-start;
  18634. padding-top: 10px;
  18635. box-sizing: border-box;
  18636. position: relative;
  18637. }
  18638. .select_answer_title {
  18639. padding: 0 0 15px 20px;
  18640. color: #c4c4c4;
  18641. }
  18642. .select_box2_answer_box {
  18643. margin: 0 0 10px 20px;
  18644. width: 85%;
  18645. display: flex;
  18646. flex-direction: row;
  18647. flex-wrap: nowrap;
  18648. align-items: center;
  18649. }
  18650. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  18651. color: #000;
  18652. }
  18653. .upAnswerCss {
  18654. position: absolute;
  18655. bottom: 15px;
  18656. right: 15px;
  18657. }
  18658. .upAnswerCss >>> .el-button {
  18659. width: 95px;
  18660. height: 35px;
  18661. line-height: 35px;
  18662. padding: 0;
  18663. }
  18664. .rightWidthCss {
  18665. width: 60%;
  18666. display: flex;
  18667. flex-direction: row;
  18668. align-items: flex-start;
  18669. }
  18670. .rightAnswer {
  18671. display: flex;
  18672. flex-direction: row;
  18673. flex-wrap: nowrap;
  18674. align-items: center;
  18675. color: red;
  18676. margin-bottom: 31px;
  18677. }
  18678. .rightAnswerCss {
  18679. display: flex;
  18680. flex-direction: column;
  18681. flex-wrap: nowrap;
  18682. padding-top: 60px;
  18683. }
  18684. .blueCss {
  18685. color: #767de1;
  18686. margin-left: 10px;
  18687. }
  18688. .redCss {
  18689. color: red;
  18690. }
  18691. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  18692. color: rgb(0 123 255) !important;
  18693. }
  18694. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  18695. color: rgb(0 123 255) !important;
  18696. }
  18697. .zuoyeYulan {
  18698. padding-top: 15px;
  18699. font-size: 18px;
  18700. display: flex;
  18701. align-items: flex-end;
  18702. }
  18703. .buttonA {
  18704. margin-left: 10px;
  18705. padding: 0;
  18706. }
  18707. .displayBox {
  18708. margin-bottom: 10px;
  18709. display: block;
  18710. border-bottom: 3px solid #eee;
  18711. display: flex;
  18712. align-items: center;
  18713. }
  18714. .easy_comment {
  18715. width: calc(100% - 90px);
  18716. margin-left: 10px;
  18717. display: flex;
  18718. flex-wrap: wrap;
  18719. }
  18720. .easy_comment > div {
  18721. border: 1px solid #4a4a4a;
  18722. color: #666;
  18723. border-radius: 15px;
  18724. padding: 5px 10px;
  18725. font-size: 16px;
  18726. margin-bottom: 10px;
  18727. margin-right: 5px;
  18728. cursor: pointer;
  18729. }
  18730. .easy_comment div:hover {
  18731. border: 1px solid #f7ba2a;
  18732. color: #c69217;
  18733. }
  18734. .xuan_right_box {
  18735. padding: 10px;
  18736. background: rgb(247, 247, 247);
  18737. margin: 10px 15px 10px 30px;
  18738. border-radius: 5px;
  18739. width: 90%;
  18740. }
  18741. .tool_right_box {
  18742. display: flex;
  18743. align-items: center;
  18744. }
  18745. .tool_right_box + .tool_right_box {
  18746. margin-top: 10px;
  18747. }
  18748. .right_box_xuan {
  18749. background: rgb(0 123 255);
  18750. color: #fff;
  18751. border-radius: 5px;
  18752. padding: 5px;
  18753. margin-left: 10px;
  18754. }
  18755. .pButton:hover {
  18756. opacity: 1 !important;
  18757. }
  18758. .pButton {
  18759. position: fixed;
  18760. /* right: 5%; */
  18761. /* bottom: 5%; */
  18762. color: #fff;
  18763. /* width: 50px;
  18764. height: 50px; */
  18765. /* border-radius: 50%; */
  18766. text-align: center;
  18767. /* line-height: 50px; */
  18768. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  18769. cursor: pointer;
  18770. z-index: 999;
  18771. right: 20px;
  18772. top: 110px;
  18773. width: 50px;
  18774. height: 50px;
  18775. background: #fff;
  18776. display: flex;
  18777. align-items: center;
  18778. justify-content: center;
  18779. box-shadow: 0px 0 8px 2px #c5c5c5;
  18780. border-radius: 5px;
  18781. }
  18782. .pzClass {
  18783. width: calc(100% - 340px);
  18784. }
  18785. .newDialogCss {
  18786. /* position: fixed;
  18787. right: 5%;
  18788. top: 50%;
  18789. width: 340px;
  18790. transform: translateY(-50%);
  18791. height: 60%;
  18792. box-shadow: 0px 0 8px 0px #555555;
  18793. border-radius: 15px;
  18794. z-index: 999; */
  18795. position: fixed;
  18796. right: 20px;
  18797. top: 101px;
  18798. width: 330px;
  18799. height: calc(100% - 80px);
  18800. z-index: 999;
  18801. background: #fff;
  18802. border-radius: 15px;
  18803. border-top-right-radius: 0px;
  18804. border-bottom-right-radius: 0px;
  18805. overflow: hidden;
  18806. }
  18807. .pzTop {
  18808. color: #fff;
  18809. background: #000;
  18810. display: flex;
  18811. flex-direction: row;
  18812. flex-wrap: nowrap;
  18813. align-items: center;
  18814. justify-content: space-between;
  18815. height: 40px;
  18816. border-radius: 15px 15px 0 0;
  18817. }
  18818. .pzTop2 .checkbox {
  18819. display: flex;
  18820. align-items: center;
  18821. padding: 15px 30px;
  18822. flex: 0 0 auto;
  18823. font-weight: bold;
  18824. border-bottom: 1px solid #eee;
  18825. justify-content: space-between;
  18826. }
  18827. .pzTop2 .check {
  18828. text-align: center;
  18829. cursor: pointer;
  18830. box-sizing: border-box;
  18831. display: flex;
  18832. }
  18833. .pzTop2 img {
  18834. width: 25px;
  18835. cursor: pointer;
  18836. }
  18837. .pzTop > div:nth-child(1) {
  18838. padding-left: 10px;
  18839. }
  18840. .pzTop > div:nth-child(2) {
  18841. width: 15px;
  18842. height: 15px;
  18843. padding-right: 10px;
  18844. cursor: pointer;
  18845. }
  18846. .pzTop > div:nth-child(2) > img {
  18847. width: 100%;
  18848. height: 100%;
  18849. }
  18850. .pzBox,
  18851. .noPzBox {
  18852. height: calc(100% - 60px);
  18853. /* background: #ededed; */
  18854. background: #fff;
  18855. /* border-radius: 0 0 15px 15px; */
  18856. }
  18857. .noPzBox {
  18858. display: flex;
  18859. flex-direction: column;
  18860. flex-wrap: nowrap;
  18861. justify-content: center;
  18862. align-items: center;
  18863. }
  18864. .pzList {
  18865. background: #f7f7f7;
  18866. width: 90%;
  18867. margin: 0 auto 15px;
  18868. border-radius: 5px;
  18869. }
  18870. .pzNavTop {
  18871. display: flex;
  18872. flex-direction: row;
  18873. flex-wrap: nowrap;
  18874. padding: 10px 10px 0 10px;
  18875. align-items: center;
  18876. }
  18877. .pzDelete {
  18878. cursor: pointer;
  18879. margin-left: auto;
  18880. font-size: 14px;
  18881. color: #afafaf;
  18882. }
  18883. .pzNavTop > div:nth-child(1) {
  18884. background: #3760af;
  18885. width: 35px;
  18886. height: 35px;
  18887. color: #fff;
  18888. text-align: center;
  18889. line-height: 35px;
  18890. border-radius: 50%;
  18891. font-size: 14px;
  18892. }
  18893. .pzNavTop > div:nth-child(2) {
  18894. font-size: 18px;
  18895. color: #959595;
  18896. margin-left: 5px;
  18897. }
  18898. .pzContent {
  18899. padding: 10px;
  18900. word-break: break-word;
  18901. }
  18902. .pzContent audio {
  18903. width: 100%;
  18904. }
  18905. .pzContent audio::-webkit-media-controls-panel {
  18906. background: #fff;
  18907. }
  18908. .pzListBox {
  18909. padding-top: 15px;
  18910. height: calc(100% - 110px);
  18911. overflow: auto;
  18912. }
  18913. .addPzButton {
  18914. position: relative;
  18915. margin-top: 3px;
  18916. width: 100%;
  18917. }
  18918. .addPzButton .img1 {
  18919. position: absolute;
  18920. top: 50%;
  18921. right: 25px;
  18922. transform: translateY(-50%);
  18923. height: 100%;
  18924. display: flex;
  18925. align-items: center;
  18926. }
  18927. .addPzButton .img1 div {
  18928. display: flex;
  18929. }
  18930. .addPzButton .img1 div img {
  18931. width: 28px;
  18932. margin-left: 10px;
  18933. cursor: pointer;
  18934. }
  18935. .addPzButton .img1 div span {
  18936. font-size: 14px;
  18937. margin: 4px 0 0 3px;
  18938. color: #afafaf;
  18939. }
  18940. .addPz {
  18941. background: #4b79ce;
  18942. width: 100px;
  18943. color: #fff;
  18944. font-size: 12px;
  18945. height: 30px;
  18946. margin: 0 auto;
  18947. text-align: center;
  18948. line-height: 30px;
  18949. border-radius: 10px;
  18950. cursor: pointer;
  18951. }
  18952. .addDialogCss {
  18953. position: fixed;
  18954. right: 37%;
  18955. top: 50%;
  18956. width: 600px;
  18957. transform: translateY(-50%);
  18958. height: 70%;
  18959. min-height: 450px;
  18960. box-shadow: 0px 0 8px 0px #555555;
  18961. border-radius: 15px;
  18962. z-index: 999;
  18963. }
  18964. .teacherPz {
  18965. display: flex;
  18966. flex-direction: row;
  18967. align-items: center;
  18968. flex-wrap: nowrap;
  18969. }
  18970. .teacherPzImg {
  18971. width: 30px;
  18972. height: 30px;
  18973. }
  18974. .teacherPzImg > img {
  18975. width: 100%;
  18976. height: 100%;
  18977. }
  18978. .addPzBox {
  18979. height: calc(100% - 40px);
  18980. background: #ededed;
  18981. }
  18982. .pzAudioClass {
  18983. margin: 15px 14px;
  18984. background: #fff;
  18985. height: 100%;
  18986. display: flex;
  18987. justify-content: center;
  18988. align-items: center;
  18989. }
  18990. .pzConText {
  18991. width: 95%;
  18992. height: 100%;
  18993. margin: 10px auto 0;
  18994. border: none;
  18995. background: #fff;
  18996. border-radius: 0px;
  18997. }
  18998. .pzConText >>> .text {
  18999. height: calc(100% - 82px);
  19000. }
  19001. .addTextCss {
  19002. background: #4b79ce;
  19003. width: 80px;
  19004. height: 30px;
  19005. text-align: center;
  19006. color: #fff;
  19007. line-height: 30px;
  19008. border-radius: 10px;
  19009. margin: 10px auto 0;
  19010. cursor: pointer;
  19011. }
  19012. .pzConText:focus-visible {
  19013. border: none !important;
  19014. }
  19015. .maxWidth {
  19016. width: 1000px;
  19017. }
  19018. .noPz {
  19019. width: 150px;
  19020. margin: 0 auto 20%;
  19021. }
  19022. .noPz > img {
  19023. width: 100%;
  19024. height: 100%;
  19025. }
  19026. .pzList .time {
  19027. text-align: right;
  19028. box-sizing: border-box;
  19029. padding: 0 10px 10px 0px;
  19030. color: #949494;
  19031. font-size: 14px;
  19032. }
  19033. /* table 样式 */
  19034. .cont >>> table {
  19035. border-top: 1px solid #ccc;
  19036. border-left: 1px solid #ccc;
  19037. }
  19038. .cont >>> table td,
  19039. .cont >>> table th {
  19040. border-bottom: 1px solid #ccc;
  19041. border-right: 1px solid #ccc;
  19042. /* padding: 20px 5px; */
  19043. padding: 5px 10px;
  19044. max-width: 0px;
  19045. height: 30px;
  19046. vertical-align: baseline;
  19047. box-sizing: border-box;
  19048. }
  19049. .cont >>> table th {
  19050. border-bottom: 2px solid #ccc;
  19051. text-align: center;
  19052. }
  19053. /* blockquote 样式 */
  19054. .cont >>> blockquote {
  19055. display: block;
  19056. border-left: 8px solid #d0e5f2;
  19057. padding: 5px 10px;
  19058. margin: 10px 0;
  19059. line-height: 1.4;
  19060. font-size: 100%;
  19061. background-color: #f1f1f1;
  19062. }
  19063. /* code 样式 */
  19064. .cont >>> code {
  19065. display: inline-block;
  19066. *display: inline;
  19067. *zoom: 1;
  19068. background-color: #f1f1f1;
  19069. border-radius: 3px;
  19070. padding: 3px 5px;
  19071. margin: 0 3px;
  19072. }
  19073. .cont >>> pre code {
  19074. display: block;
  19075. }
  19076. /* ul ol 样式 */
  19077. .cont >>> ul,
  19078. ol {
  19079. margin: 10px 0 10px 20px;
  19080. }
  19081. .addPzCheck {
  19082. display: flex;
  19083. flex-direction: row;
  19084. flex-wrap: nowrap;
  19085. padding: 10px 15px 0;
  19086. }
  19087. .addPzCheck span {
  19088. cursor: pointer;
  19089. padding-bottom: 5px;
  19090. font-weight: bold;
  19091. }
  19092. .addPzCheck span + span {
  19093. margin-left: 10px;
  19094. }
  19095. .addPzCheck .isChooseActive {
  19096. color: #3e88f4;
  19097. border-bottom: 2px solid #2f80f3;
  19098. }
  19099. /* code 样式 */
  19100. .cont {
  19101. /* -webkit-user-modify: read-write; */
  19102. overflow-wrap: break-word;
  19103. -webkit-line-break: after-white-space;
  19104. }
  19105. .scoreBox,
  19106. .scoreDetailBox {
  19107. display: flex;
  19108. align-items: center;
  19109. justify-content: flex-start;
  19110. margin-top: 20px;
  19111. font-size: 18px;
  19112. width: 100%;
  19113. }
  19114. .scoreBox .t,
  19115. .scoreDetailBox .t {
  19116. margin-right: 10px;
  19117. width: 100px;
  19118. text-align: right;
  19119. }
  19120. .scoreDetailBox {
  19121. align-items: flex-start;
  19122. }
  19123. .scoreDetailBox >>> .el-textarea {
  19124. width: calc(100% - 200px);
  19125. }
  19126. .scoreBox >>> .el-input {
  19127. width: 130px;
  19128. font-size: 38px;
  19129. }
  19130. .scoreBox >>> .el-input__inner {
  19131. height: 60px;
  19132. }
  19133. .answerScore {
  19134. position: absolute;
  19135. top: 10px;
  19136. right: 10px;
  19137. background: #0000008f;
  19138. border-radius: 5px;
  19139. padding: 3px 5px;
  19140. font-size: 14px;
  19141. color: #fff;
  19142. cursor: pointer;
  19143. }
  19144. .open_box .switch_box {
  19145. width: 100%;
  19146. margin: 0 auto;
  19147. display: flex;
  19148. justify-content: space-between;
  19149. }
  19150. .open_box .switch_box + .switch_box {
  19151. margin-top: 10px;
  19152. }
  19153. .deleteImg {
  19154. width: 25px !important;
  19155. height: 25px !important;
  19156. cursor: pointer;
  19157. position: absolute;
  19158. top: 10px;
  19159. right: 10px;
  19160. }
  19161. .deleteImg2 {
  19162. width: 15px !important;
  19163. height: 15px !important;
  19164. top: 5px;
  19165. right: 5px;
  19166. }
  19167. .rightW {
  19168. right: 40px;
  19169. }
  19170. .drawPBox {
  19171. display: flex;
  19172. flex-direction: column;
  19173. position: relative;
  19174. }
  19175. .drawPBox span {
  19176. font-size: 18px;
  19177. color: #606266;
  19178. padding-bottom: 10px;
  19179. margin: 10px 0;
  19180. border-bottom: 1px solid #eaeaea;
  19181. }
  19182. .drawPBox img {
  19183. width: 500px;
  19184. height: 300px;
  19185. object-fit: contain;
  19186. cursor: pointer;
  19187. margin: 0 auto;
  19188. }
  19189. .sentenBox {
  19190. background: #fff;
  19191. height: 450px;
  19192. overflow: auto;
  19193. background-image: url("../assets/icon/conSentences/stuBg.png");
  19194. background-position: 102%;
  19195. background-repeat: no-repeat;
  19196. background-size: 60%;
  19197. }
  19198. .addSen {
  19199. background: #409efe;
  19200. width: 90px;
  19201. color: #fff;
  19202. height: 35px;
  19203. text-align: center;
  19204. line-height: 35px;
  19205. border-radius: 5px;
  19206. float: right;
  19207. margin: 10px 20px 0 0;
  19208. cursor: pointer;
  19209. }
  19210. .sentenTop {
  19211. display: flex;
  19212. flex-direction: row;
  19213. flex-wrap: nowrap;
  19214. align-items: center;
  19215. padding: 55px 0 0 20px;
  19216. box-sizing: border-box;
  19217. }
  19218. .sentenTop > div:nth-child(2) {
  19219. width: 300px;
  19220. margin: 0 15px;
  19221. }
  19222. .sentenTop > div:nth-child(3) {
  19223. background: #409efe;
  19224. color: #fff;
  19225. width: 65px;
  19226. height: 35px;
  19227. text-align: center;
  19228. line-height: 35px;
  19229. border-radius: 5px;
  19230. cursor: pointer;
  19231. }
  19232. .cardList,
  19233. .cardList1 {
  19234. padding: 10px 0 10px 0;
  19235. display: flex;
  19236. flex-direction: row;
  19237. flex-wrap: wrap;
  19238. align-items: center;
  19239. box-sizing: border-box;
  19240. border-bottom: 1px solid #f4f4f4;
  19241. width: 98%;
  19242. margin: 0 auto;
  19243. min-width: 60%;
  19244. max-width: 85%;
  19245. }
  19246. .cardList1 {
  19247. padding: 10px 0 10px 10px !important;
  19248. margin: 0 !important;
  19249. }
  19250. .cardBox {
  19251. display: flex;
  19252. flex-direction: row;
  19253. flex-wrap: wrap;
  19254. align-items: center;
  19255. align-content: center;
  19256. }
  19257. .cardBox > div {
  19258. margin-bottom: 10px;
  19259. }
  19260. .isCard,
  19261. .isChooseCard,
  19262. .noCard,
  19263. .isCard1 {
  19264. width: 130px;
  19265. height: 60px;
  19266. text-align: center;
  19267. line-height: 60px;
  19268. font-size: 20px;
  19269. cursor: pointer;
  19270. background-image: url("../assets/icon/conSentences/titleBorder.png");
  19271. background-size: cover;
  19272. transition: all 2s;
  19273. margin-right: 20px;
  19274. }
  19275. .isCard > div,
  19276. .noCard > div,
  19277. .isCard1 > div {
  19278. white-space: nowrap;
  19279. overflow: hidden;
  19280. text-overflow: ellipsis;
  19281. width: 75%;
  19282. margin: 0 auto;
  19283. }
  19284. .noCard {
  19285. background-image: none;
  19286. }
  19287. .isCard1 {
  19288. background-image: url("../assets/icon/conSentences/answerBorder.png");
  19289. }
  19290. .isChooseCard {
  19291. background-image: none;
  19292. border: 1px dashed #b9b9b9;
  19293. border-radius: 10px;
  19294. }
  19295. .card {
  19296. width: 130px;
  19297. height: 60px;
  19298. }
  19299. .card > img {
  19300. width: 100%;
  19301. height: 100%;
  19302. }
  19303. .rightCardBox {
  19304. margin: 10px 0 0 10px;
  19305. }
  19306. .rightCardBox > div:nth-child(1) {
  19307. margin-bottom: 10px;
  19308. }
  19309. .cardCss {
  19310. display: flex;
  19311. flex-direction: column;
  19312. flex-wrap: nowrap;
  19313. align-items: center;
  19314. border-bottom: 3px solid #b4c3d3;
  19315. padding: 0 0 5px 0;
  19316. margin-right: 10px;
  19317. }
  19318. .cardCss > div:nth-child(2) {
  19319. background: #5b7b9d;
  19320. color: #fff;
  19321. width: 20px;
  19322. height: 20px;
  19323. border-radius: 50%;
  19324. text-align: center;
  19325. line-height: 20px;
  19326. }
  19327. .isWrong {
  19328. display: flex;
  19329. flex-direction: row;
  19330. flex-wrap: nowrap;
  19331. align-content: center;
  19332. align-items: center;
  19333. }
  19334. .answerRight {
  19335. width: 25%;
  19336. }
  19337. .isTj {
  19338. display: flex;
  19339. flex-direction: row;
  19340. flex-wrap: nowrap;
  19341. align-items: center;
  19342. }
  19343. .isTj > div:nth-child(2) {
  19344. color: #727070;
  19345. margin-left: 10px;
  19346. }
  19347. .isTjImg {
  19348. width: 30px;
  19349. height: 30px;
  19350. }
  19351. .isTjImg > img {
  19352. width: 100%;
  19353. height: 100%;
  19354. }
  19355. .cardAnswerBox {
  19356. font-size: 18px;
  19357. width: 97%;
  19358. border: 5px;
  19359. padding: 0;
  19360. border-radius: 5px;
  19361. margin: 10px auto;
  19362. word-break: break-word;
  19363. }
  19364. .w_name {
  19365. margin-bottom: 10px;
  19366. }
  19367. .w_name span {
  19368. font-size: 16px;
  19369. }
  19370. .w_teachert {
  19371. width: 50px !important;
  19372. position: absolute;
  19373. height: auto !important;
  19374. z-index: 10;
  19375. right: 25px;
  19376. top: -25px;
  19377. }
  19378. .group_workBox {
  19379. }
  19380. .group_workBox + .group_workBox {
  19381. margin-top: 20px;
  19382. }
  19383. .group_box {
  19384. padding-bottom: 20px;
  19385. border-bottom: 2px solid #f0f0f0;
  19386. }
  19387. .group_title {
  19388. display: flex;
  19389. align-items: center;
  19390. justify-content: space-between;
  19391. width: 95%;
  19392. }
  19393. .group_name {
  19394. background-image: url(../assets/icon/groupN.png);
  19395. width: 220px;
  19396. background-size: 100% 100%;
  19397. height: 67px;
  19398. padding: 0 20px 0 43px;
  19399. box-sizing: border-box;
  19400. line-height: 63px;
  19401. color: #fff;
  19402. overflow: hidden;
  19403. white-space: nowrap;
  19404. text-overflow: ellipsis;
  19405. }
  19406. .group_work {
  19407. width: 100%;
  19408. padding: 0 10px;
  19409. box-sizing: border-box;
  19410. display: flex;
  19411. flex-wrap: wrap;
  19412. }
  19413. .g_d_box {
  19414. display: flex;
  19415. flex-flow: wrap;
  19416. justify-content: space-around;
  19417. }
  19418. .g_d_box .isChair {
  19419. background-image: url(../assets/avatar.png) !important;
  19420. }
  19421. .g_d_group {
  19422. width: 500px;
  19423. margin-bottom: 80px;
  19424. }
  19425. .g_d_group_chair {
  19426. display: flex;
  19427. align-items: center;
  19428. justify-content: center;
  19429. }
  19430. .g_d_group_chair > div + div {
  19431. margin-left: 30px;
  19432. }
  19433. .g_d_group_chair > div,
  19434. .g_d_group_chair2 > div {
  19435. display: flex;
  19436. flex-direction: column;
  19437. align-items: center;
  19438. }
  19439. .g_d_group_chair > div > span:nth-child(1),
  19440. .g_d_group_chair2 > div > span:nth-child(1) {
  19441. background-image: url(../assets/icon/chair.png);
  19442. width: 50px;
  19443. height: 50px;
  19444. display: block;
  19445. background-size: 100% 100%;
  19446. }
  19447. .g_d_group_tableBox {
  19448. display: flex;
  19449. align-items: center;
  19450. justify-content: center;
  19451. }
  19452. .g_d_group_chair2 {
  19453. display: flex;
  19454. flex-direction: column;
  19455. align-items: center;
  19456. justify-content: center;
  19457. }
  19458. .g_d_group_chair2 > div + div {
  19459. margin-top: 10px;
  19460. }
  19461. .g_d_group_table {
  19462. background-image: url(../assets/icon/groupBg.png);
  19463. width: 354px;
  19464. height: 196px;
  19465. background-size: 100% 100%;
  19466. display: flex;
  19467. align-items: center;
  19468. justify-content: center;
  19469. flex-direction: column;
  19470. color: #fff;
  19471. }
  19472. .g_d_group_table > div:nth-child(1) {
  19473. font-size: 24px;
  19474. margin-bottom: 5px;
  19475. }
  19476. .g_d_group_table > div:nth-child(2) div {
  19477. cursor: pointer;
  19478. background: #2e77bf;
  19479. padding: 4px 10px;
  19480. border-radius: 5px;
  19481. }
  19482. .groupBox {
  19483. }
  19484. .groupContent + .groupContent {
  19485. margin-top: 30px;
  19486. }
  19487. .groupTitle {
  19488. font-size: 24px;
  19489. color: rgb(80, 80, 80);
  19490. margin-bottom: 20px;
  19491. }
  19492. .groupName {
  19493. display: flex;
  19494. align-items: center;
  19495. }
  19496. .groupn {
  19497. font-size: 15px;
  19498. margin-right: 10px;
  19499. }
  19500. .groupName + .groupName {
  19501. margin-top: 15px;
  19502. }
  19503. .groupBtn {
  19504. margin-left: 10px;
  19505. }
  19506. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  19507. text-align: left;
  19508. }
  19509. .g_d_btnBox {
  19510. display: flex;
  19511. justify-content: flex-end;
  19512. align-items: center;
  19513. margin-bottom: 20px;
  19514. }
  19515. .updateChair {
  19516. position: relative;
  19517. }
  19518. .updateChairBtn {
  19519. position: absolute;
  19520. width: 50px;
  19521. height: 50px;
  19522. overflow: hidden;
  19523. /* display: flex; */
  19524. align-items: center;
  19525. justify-content: center;
  19526. background: #00000087;
  19527. color: #fff;
  19528. border-radius: 50px;
  19529. display: none;
  19530. cursor: pointer;
  19531. }
  19532. .updateChair:hover .updateChairBtn {
  19533. display: flex;
  19534. }
  19535. .group_staic_box {
  19536. display: flex;
  19537. padding: 30px 40px 10px;
  19538. flex-wrap: wrap;
  19539. }
  19540. .group_staic {
  19541. /* width: 50%; */
  19542. margin-bottom: 20px;
  19543. display: flex;
  19544. align-items: center;
  19545. }
  19546. .group_staic span:nth-child(1) {
  19547. width: 150px;
  19548. text-align: right;
  19549. margin-right: 15px;
  19550. }
  19551. .group_staic span:nth-child(2) {
  19552. background: rgb(0 123 255);
  19553. color: #fff;
  19554. border-radius: 5px;
  19555. padding: 5px;
  19556. }
  19557. .codeFileBox {
  19558. height: 300px;
  19559. background: #fff;
  19560. display: flex;
  19561. align-items: center;
  19562. justify-content: center;
  19563. }
  19564. .codeFileBox img {
  19565. width: 200px;
  19566. margin: 0;
  19567. height: auto;
  19568. }
  19569. .codeFileBox div {
  19570. background: rgb(80, 142, 226);
  19571. color: #fff;
  19572. padding: 10px 20px;
  19573. border-radius: 25px;
  19574. cursor: pointer;
  19575. margin-left: 15px;
  19576. }
  19577. .radioBox {
  19578. display: flex;
  19579. flex-direction: column;
  19580. flex-wrap: nowrap;
  19581. align-items: flex-start;
  19582. }
  19583. .radioBox > div {
  19584. margin: 10px 0 0 10px;
  19585. }
  19586. /* .radioBox >>> .el-radio__input,
  19587. .radioBox >>> .el-checkbox__inner {
  19588. margin-left: 10px;
  19589. } */
  19590. .radioBox >>> .el-radio__label,
  19591. .radioBox >>> .el-checkbox__label {
  19592. display: flex;
  19593. align-items: center;
  19594. }
  19595. .radioBox >>> .el-radio__label > span {
  19596. width: 100%;
  19597. display: -webkit-box;
  19598. overflow: hidden;
  19599. white-space: normal !important;
  19600. text-overflow: ellipsis;
  19601. word-wrap: break-word;
  19602. }
  19603. .inImg {
  19604. width: 100px;
  19605. cursor: pointer;
  19606. }
  19607. .inImg > img {
  19608. width: 100%;
  19609. height: 100%;
  19610. object-fit: cover;
  19611. }
  19612. .timuImgBox {
  19613. margin: 10px 0;
  19614. display: flex;
  19615. flex-direction: column;
  19616. flex-wrap: wrap;
  19617. align-items: flex-start;
  19618. }
  19619. .timuImg {
  19620. width: 150px;
  19621. margin: 5px 0;
  19622. cursor: pointer;
  19623. }
  19624. .timuImg > img {
  19625. width: 100%;
  19626. height: 100%;
  19627. object-fit: cover;
  19628. }
  19629. .worksTop {
  19630. display: flex;
  19631. flex-direction: row;
  19632. align-items: flex-end;
  19633. }
  19634. .corOpen {
  19635. margin: 0 0 0 10px;
  19636. font-size: 14px;
  19637. cursor: pointer;
  19638. color: #505050;
  19639. }
  19640. .corOpen:hover {
  19641. color: #499eef;
  19642. }
  19643. .navCorOpenBox {
  19644. display: flex;
  19645. flex-direction: row;
  19646. align-items: center;
  19647. justify-content: space-between;
  19648. height: 55px;
  19649. background: #ffffff;
  19650. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  19651. border-radius: 8px 8px 0px 0px;
  19652. z-index: 9;
  19653. position: relative;
  19654. }
  19655. .navCorOpen {
  19656. padding-right: 15px;
  19657. cursor: pointer;
  19658. width: 28px;
  19659. display: flex;
  19660. }
  19661. .navCorOpen > img {
  19662. width: 100%;
  19663. height: 100%;
  19664. }
  19665. .mlImg {
  19666. width: 25px !important;
  19667. min-width: 25px;
  19668. cursor: pointer;
  19669. transform: rotate(180deg);
  19670. }
  19671. .mlImg > img {
  19672. width: 100%;
  19673. height: 100%;
  19674. }
  19675. .navLeftCss {
  19676. width: 100% !important;
  19677. left: 0 !important;
  19678. }
  19679. .isContentCss {
  19680. width: 100% !important;
  19681. }
  19682. .isAllWidth {
  19683. width: 100% !important;
  19684. }
  19685. .group_switch {
  19686. margin-right: 10px;
  19687. height: 30px;
  19688. display: flex;
  19689. align-items: center;
  19690. }
  19691. .group_switch > span {
  19692. margin-right: 5px;
  19693. }
  19694. .fileC_box {
  19695. padding-top: 15px;
  19696. }
  19697. .fileC_box > .fileC_title {
  19698. padding: 10px 5px 14px 11px;
  19699. border-top: 1px solid #cad1dc;
  19700. font-size: 14px;
  19701. font-weight: 400;
  19702. color: #cad1dc;
  19703. width: 88%;
  19704. margin: 0 auto;
  19705. }
  19706. .pl_select_box {
  19707. height: 40px;
  19708. line-height: 40px;
  19709. width: 100%;
  19710. cursor: pointer;
  19711. padding: 0 20px;
  19712. box-sizing: border-box;
  19713. border-radius: 5px;
  19714. border: 1px solid #d6d6d6;
  19715. white-space: nowrap;
  19716. overflow: hidden;
  19717. text-overflow: ellipsis;
  19718. background: #fff;
  19719. text-align: left;
  19720. }
  19721. .newButton {
  19722. width: 102px;
  19723. height: 36px;
  19724. background: #e7ebf1;
  19725. border-radius: 4px;
  19726. color: #0e1e33;
  19727. font-weight: 400;
  19728. font-size: 14px;
  19729. border: none;
  19730. float: right;
  19731. margin-left: 10px;
  19732. }
  19733. .el-table >>> .even_row {
  19734. background-color: #f0f4fa;
  19735. }
  19736. .stageBoxCss {
  19737. display: flex;
  19738. flex-direction: row;
  19739. flex-wrap: nowrap;
  19740. align-items: center;
  19741. height: 50px;
  19742. border-bottom: 1px solid #e2f5fc;
  19743. cursor: pointer;
  19744. width: 100%;
  19745. }
  19746. .stageItemTitle {
  19747. display: flex;
  19748. flex-direction: row;
  19749. flex-wrap: nowrap;
  19750. align-items: center;
  19751. margin-left: 6px;
  19752. width: calc(100% - 60px);
  19753. }
  19754. .stageItemTitle > div:first-child {
  19755. color: #0e1e33;
  19756. font-size: 16px;
  19757. font-weight: bold;
  19758. min-width: 55px;
  19759. }
  19760. .stageItemTitle > div:last-child {
  19761. margin-left: 10px;
  19762. font-size: 14px;
  19763. font-weight: 400;
  19764. color: #acb4bf;
  19765. max-width: 190px;
  19766. white-space: nowrap;
  19767. overflow: hidden;
  19768. text-overflow: ellipsis;
  19769. word-break: break-word;
  19770. width: calc(100% - 55px);
  19771. }
  19772. .closeTri {
  19773. min-width: 20px;
  19774. width: 20px;
  19775. height: 20px;
  19776. padding-left: 15px;
  19777. }
  19778. .closeTri > img {
  19779. width: 100%;
  19780. height: 100%;
  19781. }
  19782. .stageChild {
  19783. height: 0;
  19784. overflow: hidden;
  19785. transition: all 0.5s;
  19786. }
  19787. .navItem {
  19788. background: #ffffff;
  19789. border-radius: 4px;
  19790. width: 90%;
  19791. margin: 16px auto 0;
  19792. position: relative;
  19793. }
  19794. .navItemList {
  19795. display: flex;
  19796. flex-direction: column;
  19797. flex-wrap: nowrap;
  19798. align-items: flex-start;
  19799. padding: 8px 13px;
  19800. cursor: pointer;
  19801. }
  19802. .navItemList > div:first-child {
  19803. font-size: 14px;
  19804. font-weight: 400;
  19805. color: #acb4bf;
  19806. padding-bottom: 4px;
  19807. }
  19808. .navItemList > div:last-child {
  19809. width: auto;
  19810. font-size: 16px;
  19811. font-weight: 400;
  19812. color: #0e1e33;
  19813. }
  19814. .isItemList > div:first-child {
  19815. color: #aeccfe;
  19816. }
  19817. .isItemList > div:last-child {
  19818. color: #fff;
  19819. }
  19820. .tool_work_box {
  19821. width: 100%;
  19822. padding: 0 37px 10px;
  19823. box-sizing: border-box;
  19824. }
  19825. .tool_box {
  19826. width: 100%;
  19827. margin-top: 20px;
  19828. }
  19829. .tool_type_box {
  19830. display: flex;
  19831. flex-direction: row;
  19832. align-items: baseline;
  19833. flex-wrap: nowrap;
  19834. justify-content: flex-start;
  19835. position: relative;
  19836. }
  19837. .toolSort {
  19838. display: flex;
  19839. flex-direction: row;
  19840. flex-wrap: wrap;
  19841. justify-content: flex-start;
  19842. align-items: flex-start;
  19843. }
  19844. .toolSort > div {
  19845. margin: 0 45px 0 0;
  19846. width: auto;
  19847. }
  19848. .tools {
  19849. width: 100%;
  19850. display: flex;
  19851. flex-direction: column;
  19852. flex-wrap: nowrap;
  19853. align-items: flex-start;
  19854. }
  19855. .whiteBIcon {
  19856. width: 80px;
  19857. cursor: pointer;
  19858. display: flex;
  19859. flex-direction: column;
  19860. flex-wrap: nowrap;
  19861. align-items: center;
  19862. }
  19863. .whiteBIcon > img {
  19864. width: 100%;
  19865. height: 100%;
  19866. }
  19867. .whiteBIcon > img {
  19868. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  19869. border-radius: 15px;
  19870. }
  19871. .check {
  19872. /* width: 20px;
  19873. height: 20px; */
  19874. cursor: pointer;
  19875. margin: 10px 0;
  19876. }
  19877. .checkDiv {
  19878. display: flex;
  19879. align-items: center;
  19880. }
  19881. .checkDiv span {
  19882. margin-left: 5px;
  19883. color: #858585;
  19884. }
  19885. .check img {
  19886. width: 20px;
  19887. height: 20px;
  19888. }
  19889. .lockTaskIcon {
  19890. width: 25px;
  19891. height: 25px;
  19892. position: absolute;
  19893. right: 0;
  19894. top: 23px;
  19895. }
  19896. .lockTaskIcon > img {
  19897. width: 100%;
  19898. height: 100%;
  19899. }
  19900. </style>