studyStudent.vue 775 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div>
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 8px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. </div>
  168. <div
  169. v-if="nav.tool[0].tool != undefined"
  170. class="toolChild"
  171. :class="{ toolActive: nav.isOpen }"
  172. >
  173. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  174. <div
  175. class="gjCss"
  176. :class="{
  177. isGjCss: t.isTool,
  178. }"
  179. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  180. >
  181. <div>工具{{ toolIndex2 + 1 }}:</div>
  182. <div v-if="t.tool == 58">模拟驾驶</div>
  183. <div v-if="t.tool == 59">路径搜索</div>
  184. <div v-if="t.tool == 60">深度学习</div>
  185. <div v-if="t.tool == 10">倒计时</div>
  186. <div v-if="t.tool == 65">挑人</div>
  187. <div v-if="t.tool == 7">思维网格</div>
  188. <div v-if="t.tool == 1">电子白板</div>
  189. <div v-if="t.tool == 52">文档</div>
  190. <div v-if="t.tool == 3">思维导图</div>
  191. <div v-if="t.tool == 48">表格</div>
  192. <div v-if="t.tool == 49">学生分组</div>
  193. <div v-if="t.tool == 4">问卷调查</div>
  194. <div v-if="t.tool == 45">选择题</div>
  195. <div v-if="t.tool == 15">问答</div>
  196. <div v-if="t.tool == 16">作业提交</div>
  197. <div v-if="t.tool == 50">批量上传</div>
  198. <div v-if="t.tool == 41">选择匹配</div>
  199. <div v-if="t.tool == 47">排序</div>
  200. <div v-if="t.tool == 40">个人评价</div>
  201. <div v-if="t.tool == 18">训练平台</div>
  202. <div v-if="t.tool == 21">AIoT Blockly</div>
  203. <div v-if="t.tool == 23">AI Python</div>
  204. <div v-if="t.tool == 24">AI Blockly</div>
  205. <div v-if="t.tool == 32">源码编辑</div>
  206. <div v-if="t.tool == 57">CocoPi</div>
  207. <div v-if="t.tool == 63">海龟编程</div>
  208. <div v-if="t.tool == 28">翻译</div>
  209. <div v-if="t.tool == 31">数字画板</div>
  210. <div v-if="t.tool == 39">GeoGebra</div>
  211. <div v-if="t.tool == 66">公式编辑</div>
  212. <div v-if="t.tool == 67">分子结构</div>
  213. <div v-if="t.tool == 68">时间轴</div>
  214. <div v-if="t.tool == 69">英语写作</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  227. <div class="new_topFixed"></div>
  228. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  229. <div class="courseIndex">
  230. <div>任务{{ taskCount + 1 }}</div>
  231. <el-tooltip
  232. effect="light"
  233. :content="
  234. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  235. "
  236. placement="top"
  237. >
  238. <div>
  239. {{
  240. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  241. .task
  242. }}
  243. </div>
  244. </el-tooltip>
  245. </div>
  246. <div class="btnAll">
  247. <div class="btnLeft">
  248. <el-tooltip effect="light" content="刷新" placement="top">
  249. <div class="reBtnIcon" @click="refreshCourse">
  250. <span>刷新</span>
  251. </div>
  252. </el-tooltip>
  253. <el-tooltip effect="light" content="评论" placement="top">
  254. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  255. <span>评论</span>
  256. </div>
  257. </el-tooltip>
  258. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  259. <el-tooltip effect="light" content="录制" placement="top">
  260. <div class="vedioIcon" @click="startRecording">
  261. <span>录制</span>
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div v-else-if="tType == 1 || tType == 4">
  266. <el-tooltip effect="light" content="下载" placement="top">
  267. <div class="vedioIcon1" @click="stopRecording">
  268. <span>下载</span>
  269. </div>
  270. </el-tooltip>
  271. </div>
  272. </div>
  273. <div class="btnRight">
  274. <div
  275. class="last"
  276. @click="nextOrpreSteps(0)"
  277. v-if="!(IsFollow && tType == 2)"
  278. @mouseover="isHovered = true"
  279. @mouseout="isHovered = false"
  280. >
  281. <div class="lastImg">
  282. <img
  283. :src="
  284. isHovered
  285. ? require('../../assets/icon/newIcons/whiteLast.png')
  286. : require('../../assets/icon/newIcons/last.png')
  287. "
  288. alt=""
  289. />
  290. </div>
  291. <div class="lastText">上一步</div>
  292. </div>
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(1)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered1 = true"
  298. @mouseout="isHovered1 = false"
  299. >
  300. <div class="lastText">下一步</div>
  301. <div class="lastImg">
  302. <img
  303. :src="
  304. isHovered1
  305. ? require('../../assets/icon/newIcons/whiteNext.png')
  306. : require('../../assets/icon/newIcons/next.png')
  307. "
  308. alt=""
  309. />
  310. </div>
  311. </div>
  312. <!-- <div
  313. class="last"
  314. @click="juriVisible = true"
  315. v-if="tType == 1"
  316. @mouseover="isHovered2 = true"
  317. @mouseout="isHovered2 = false"
  318. >
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered2
  323. ? require('../../assets/icon/newIcons/whiteLock.png')
  324. : require('../../assets/icon/newIcons/lock.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. <div class="lastText">权限</div>
  330. </div> -->
  331. <div
  332. class="returnBtn1 returnIcon"
  333. @click.stop="
  334. goTo(
  335. '/courseDetail?userid=' +
  336. userid +
  337. '&oid=' +
  338. oid +
  339. '&org=' +
  340. org +
  341. '&cid=' +
  342. classId +
  343. '&courseId=' +
  344. id +
  345. '&tType=' +
  346. tType +
  347. '&screenType=' +
  348. screenType
  349. )
  350. "
  351. >
  352. <div class="lastImg">
  353. <img src="../../assets/icon/newIcon/return.png" alt="" />
  354. </div>
  355. <div class="lastText" style="color: #000">返回</div>
  356. </div>
  357. </div>
  358. <!-- <div
  359. class="returnBtn lockIcon"
  360. @click="juriVisible = true"
  361. v-if="tType == 1"
  362. >
  363. 权限
  364. </div>
  365. <div
  366. class="returnBtn vedioIcon"
  367. @click="startRecording"
  368. v-if="!videoStart && (tType == 1 || tType == 4)"
  369. >
  370. 录制
  371. </div>
  372. <div
  373. class="returnBtn"
  374. @click="stopRecording"
  375. v-else-if="tType == 1 || tType == 4"
  376. style="background: #ee5255"
  377. >
  378. 下载
  379. </div>
  380. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  381. 评论
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="nextOrpreSteps(0)"
  386. v-if="!(IsFollow && tType == 2)"
  387. >
  388. 上一步
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="nextOrpreSteps(1)"
  393. v-if="!(IsFollow && tType == 2)"
  394. >
  395. 下一步
  396. </div>
  397. <div class="returnBtn" @click="refreshCourse">刷新</div>
  398. <div
  399. class="returnBtn returnIcon"
  400. @click.stop="
  401. goTo(
  402. '/courseDetail?userid=' +
  403. userid +
  404. '&oid=' +
  405. oid +
  406. '&org=' +
  407. org +
  408. '&cid=' +
  409. classId +
  410. '&courseId=' +
  411. id +
  412. '&tType=' +
  413. tType +
  414. '&screenType=' +
  415. screenType
  416. )
  417. "
  418. >
  419. 返回
  420. </div> -->
  421. </div>
  422. </div>
  423. <div
  424. class="isNoMessage"
  425. v-if="
  426. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .chapterData.length == 0 &&
  428. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  429. .toolChoose[0].tool.length == 0 &&
  430. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  431. .taskDetail == '' &&
  432. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .eList &&
  434. !(
  435. courseDetail.userid == userid ||
  436. (courseDetail.course_teacher &&
  437. courseDetail.course_teacher.indexOf(userid) != -1)
  438. )
  439. "
  440. >
  441. <img src="../../assets/icon/isNoMessage.png" alt />
  442. </div>
  443. <div class="study_top" :class="{ pzClass: pzDialog }">
  444. <div
  445. class="vedioBox"
  446. v-if="
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail != '' ||
  449. vChapterData[0].length > 0 ||
  450. fileC[0].length > 0
  451. "
  452. style="border-radius: 0 0 20px 20px"
  453. >
  454. <div
  455. class="taskBox"
  456. v-if="
  457. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  458. .taskDetail != ''
  459. "
  460. >
  461. <div
  462. style="
  463. display: flex;
  464. flex-wrap: nowrap;
  465. flex-direction: column;
  466. position: relative;
  467. "
  468. >
  469. <div
  470. style="
  471. padding: 15px 0;
  472. line-height: 29px;
  473. font-size: 18px;
  474. color: #0e1e33;
  475. "
  476. class="cont"
  477. v-if="
  478. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  479. .taskDetail != ''
  480. "
  481. v-html="
  482. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  483. .taskDetail
  484. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  485. taskCount
  486. ].taskDetail
  487. : '暂无描述'
  488. "
  489. ></div>
  490. </div>
  491. </div>
  492. <div
  493. class="student_head"
  494. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  495. >
  496. <div class="vedioTaskBox" v-loading="downLoading">
  497. <div
  498. :class="
  499. contentDialog == false
  500. ? 'box_course isContentCss'
  501. : 'box_course'
  502. "
  503. v-if="
  504. vChapterData.length > 0 &&
  505. vChapterData[0] &&
  506. showType !== ''
  507. "
  508. >
  509. <div class="wheel" style="height: auto" v-if="showType === 0">
  510. <div
  511. class="workd_media"
  512. style="height: 650px; width: calc(100% - 50px)"
  513. >
  514. <video-player
  515. class="video-player vjs-custom-skin"
  516. :class="contentDialog == false ? 'isAllWidth' : ''"
  517. :playsinline="true"
  518. :options="playerO[0]"
  519. @play="onPlayerPlay($event)"
  520. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  521. ></video-player>
  522. </div>
  523. </div>
  524. <div
  525. class="wheel"
  526. v-if="showType == 1"
  527. style="
  528. box-shadow: 0 0 6px 1px #f2f2f2;
  529. width: 95%;
  530. margin: 0 auto;
  531. background: #f1f1f1;
  532. "
  533. >
  534. <div class="title">查看文档</div>
  535. <el-form class="textBox">
  536. <el-form-item class="textTitle">
  537. <div style="font-size: 22px">
  538. {{ text.name }}
  539. </div>
  540. </el-form-item>
  541. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  542. <div v-html="text.url" class="textContent cont"></div>
  543. </el-form>
  544. </div>
  545. <div
  546. class="wheel"
  547. v-if="
  548. pptImgUrl1.indexOf(
  549. 'https://view.officeapps.live.com/op/view.aspx?src='
  550. ) != -1 && showType == 2
  551. "
  552. style="width: 95%; margin: 0 auto"
  553. >
  554. <iframe
  555. style="width: 100%; height: 100%; border: none"
  556. :src="pptImgUrl1"
  557. ></iframe>
  558. </div>
  559. <div
  560. class="wheel"
  561. v-else-if="showType == 2"
  562. style="width: 95%; margin: 0 auto"
  563. >
  564. <iframe
  565. style="width: 100%; height: 100%; border: none"
  566. security="restricted"
  567. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  568. :src="pptImgUrl1"
  569. ></iframe>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-if="showType == 3"
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <pdf
  577. :pdfUrl="pptImgUrl1"
  578. style="width: 100%; height: 100%; overflow: auto"
  579. ></pdf>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 4"
  584. style="width: 95%; margin: 0 auto"
  585. >
  586. <el-image
  587. :src="pptImgUrl1"
  588. fit="contain"
  589. style="width: 100%; height: 100%; cursor: pointer"
  590. @click="previewImg(pptImgUrl1)"
  591. ></el-image>
  592. </div>
  593. </div>
  594. <div
  595. class="pButton"
  596. style="position: absolute; right: 20px; top: 0; z-index: 998"
  597. v-if="!contentDialog"
  598. @click="setContent(true)"
  599. >
  600. <!-- 批 -->
  601. <img
  602. src="../../assets/icon/newIcons/isLeft.png"
  603. style="width: 45px"
  604. alt=""
  605. />
  606. </div>
  607. <div
  608. v-if="contentDialog == true"
  609. :style="{
  610. width:
  611. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  612. showType === ''
  613. ? 'calc(100%)'
  614. : '300px',
  615. margin:
  616. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  617. showType === ''
  618. ? '0 15px'
  619. : '0 15px 0 0',
  620. }"
  621. >
  622. <div
  623. class="vedioList"
  624. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  625. style="height: 650px"
  626. >
  627. <div class="navCorOpenBox">
  628. <div class="navTitile">内容列表:</div>
  629. <div class="navCorOpen" @click="setContent(false)">
  630. <img
  631. src="../../assets/icon/newIcons/isRight.png"
  632. alt=""
  633. />
  634. </div>
  635. </div>
  636. <div class="navBox">
  637. <div
  638. v-show="
  639. vChapterData[0].length > 0 || fileC[0].length > 0
  640. "
  641. style="padding: 10px 0 25px 0"
  642. >
  643. <div
  644. class="vedioTimeBox"
  645. v-for="(vitem, vindex) in vChapterData[0]"
  646. :key="vindex + '1'"
  647. >
  648. <div class="navListItem" v-if="vitem.type == 2">
  649. <div
  650. @click="lookVedio(vitem.url, vindex)"
  651. class="navText"
  652. :class="isClickNav == vindex ? 'isClickNav' : ''"
  653. >
  654. <span v-if="vitem.text">{{ vitem.text }}-</span
  655. >{{ vitem.name }}
  656. </div>
  657. <div class="downIcon" @click="downloadFile2(vitem)">
  658. <img
  659. src="../../assets/icon/newIcon/down.png"
  660. alt
  661. />
  662. </div>
  663. </div>
  664. <div class="navListItem" v-if="vitem.type == 6">
  665. <div
  666. @click="lookText(0, vindex)"
  667. class="navText"
  668. :class="isClickNav == vindex ? 'isClickNav' : ''"
  669. >
  670. {{ vitem.name }}.doc
  671. </div>
  672. <div
  673. class="downIcon"
  674. @click="checkFileFull1(vitem.type, vitem)"
  675. >
  676. <img
  677. src="../../assets/icon/newIcon/allScreen.png"
  678. alt
  679. />
  680. </div>
  681. </div>
  682. <div
  683. class="navListItem"
  684. v-if="vitem.type == 8 || vitem.type == 14"
  685. >
  686. <div
  687. @click="doUrl(vitem.url, vindex)"
  688. class="navText"
  689. :class="isClickNav == vindex ? 'isClickNav' : ''"
  690. >
  691. {{ vitem.title ? vitem.title : vitem.url }}
  692. </div>
  693. <div
  694. class="downIcon"
  695. @click="checkFileFull1(vitem.type, vitem)"
  696. >
  697. <img
  698. src="../../assets/icon/newIcon/allScreen.png"
  699. alt
  700. />
  701. </div>
  702. </div>
  703. <div class="navListItem" v-if="vitem.type == 3">
  704. <div
  705. @click="downFile(vitem, vindex)"
  706. class="navText"
  707. :class="isClickNav == vindex ? 'isClickNav' : ''"
  708. >
  709. <span v-if="vitem.text">{{ vitem.text }}-</span
  710. >{{ vitem.name }}
  711. </div>
  712. <div
  713. class="downIcon"
  714. @click="checkFileFull1(vitem.type, vitem)"
  715. >
  716. <img
  717. src="../../assets/icon/newIcon/allScreen.png"
  718. alt
  719. />
  720. </div>
  721. <div class="downIcon" @click="downloadFile2(vitem)">
  722. <img
  723. src="../../assets/icon/newIcon/down.png"
  724. alt
  725. />
  726. </div>
  727. </div>
  728. <div class="navListItem" v-if="vitem.type == 12">
  729. <div class="navText" @click="downloadFile2(vitem)">
  730. <span v-if="vitem.text">{{ vitem.text }}-</span
  731. >{{ vitem.name }}
  732. </div>
  733. <div
  734. class="downIcon"
  735. @click="checkFileFull1(vitem.type, vitem)"
  736. >
  737. <img
  738. src="../../assets/icon/newIcon/allScreen.png"
  739. alt
  740. />
  741. </div>
  742. <div class="downIcon" @click="downloadFile2(vitem)">
  743. <img
  744. src="../../assets/icon/newIcon/down.png"
  745. alt
  746. />
  747. </div>
  748. </div>
  749. <div class="navListItem" v-if="vitem.type == 13">
  750. <div
  751. class="navText"
  752. @click="checkPhoto(vitem, vindex)"
  753. :class="isClickNav == vindex ? 'isClickNav' : ''"
  754. >
  755. {{ vitem.name }}
  756. </div>
  757. <div class="downIcon" @click="downloadFile2(vitem)">
  758. <img
  759. src="../../assets/icon/newIcon/down.png"
  760. alt
  761. />
  762. </div>
  763. </div>
  764. </div>
  765. <div class="fileC_box" v-if="fileC[0].length > 0">
  766. <div class="fileC_title">以下文件不支持预览</div>
  767. <div
  768. class="vedioTimeBox"
  769. v-for="(vitem, vindex) in fileC[0]"
  770. :key="vindex + '1'"
  771. >
  772. <div class="navListItem" v-if="vitem.type == 12">
  773. <div class="navText" style="color: #acb4bf">
  774. <span v-if="vitem.text">{{ vitem.text }}-</span
  775. >{{ vitem.name }}
  776. </div>
  777. <div
  778. class="downIcon"
  779. @click="downloadFile2(vitem)"
  780. >
  781. <img
  782. src="../../assets/icon/newIcon/down.png"
  783. alt
  784. />
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. </div>
  790. </div>
  791. </div>
  792. </div>
  793. </div>
  794. <div style="width: calc(100% - 315px)">
  795. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  796. <!-- <el-button
  797. type="primary"
  798. class="newButton"
  799. @click="checkFileFull(showType, pptImgUrl1)"
  800. >全屏查看</el-button
  801. >
  802. <el-button
  803. type="primary"
  804. class="newButton"
  805. @click="downloadFile(pptImgUrl1)"
  806. v-if="showType != 2"
  807. >文件下载</el-button
  808. > -->
  809. <el-button
  810. v-if="
  811. showType == 2 &&
  812. pptImgUrl1.indexOf(
  813. 'https://view.officeapps.live.com/op/view.aspx?src='
  814. ) == -1
  815. "
  816. type="primary"
  817. class="newButton"
  818. @click="openLine(pptImgUrl1)"
  819. >打开链接
  820. </el-button>
  821. </div>
  822. <!-- <div
  823. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  824. v-if="showType == 1"
  825. >
  826. <el-button
  827. type="primary"
  828. class="newButton"
  829. @click="checkFileFull(showType, text)"
  830. >全屏查看</el-button
  831. >
  832. </div> -->
  833. </div>
  834. </div>
  835. </div>
  836. <div class="student_body" v-resize="resize">
  837. <div
  838. class="vedioBox"
  839. :style="{
  840. borderRadius:
  841. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  842. .taskDetail == '' &&
  843. vChapterData[taskCount].length == 0 &&
  844. fileC[taskCount].length == 0
  845. ? '0 0 20px 20px'
  846. : '20px',
  847. }"
  848. v-if="
  849. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  850. .toolChoose[0].tool &&
  851. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  852. .toolChoose[0].tool.length > 0
  853. "
  854. >
  855. <div
  856. class="toolHeng2"
  857. style="position: relative"
  858. v-if="
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool &&
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool.length &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div class="workNav">工作区</div>
  868. <div
  869. class="filebox"
  870. style="flex-wrap: nowrap"
  871. v-for="(tool, toolIndex) in chapInfoList[courseType]
  872. .chapterInfo[0].taskJson[taskCount].toolChoose"
  873. :key="toolIndex"
  874. >
  875. <div class="bzBox">
  876. <div class="yCss"></div>
  877. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  878. 工具{{ toolIndex + 1 }}
  879. </div>
  880. <div
  881. v-if="timeWorkList[toolIndex].length > 0"
  882. style="margin: 0 0 0 10px"
  883. >
  884. {{
  885. timeWorkList[toolIndex][0].time
  886. ? "时间:" + timeWorkList[toolIndex][0].time
  887. : ""
  888. }}
  889. </div>
  890. </div>
  891. <div class="toolBox">
  892. <div>
  893. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  894. :key="indexTool"-->
  895. <!-- <div class="iframeBox">
  896. <div
  897. class="addPoint isBorder"
  898. v-for="(tooC, toolCIndex) in tool.tool"
  899. :key="toolCIndex"
  900. >
  901. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  902. <div
  903. class="iframeName"
  904. >
  905. 电子白板
  906. </div>
  907. <iframe
  908. src="https://iwb.cocorobo.cn/"
  909. ref="whiteBoard"
  910. ></iframe>
  911. </div>
  912. </div>
  913. </div>-->
  914. <div class="noiframeBox">
  915. <div
  916. class="addPoint"
  917. v-for="(tooC, toolCIndex) in tool.tool"
  918. :key="toolCIndex"
  919. >
  920. <div v-if="tooC == 1">
  921. <img
  922. src="../../assets/icon/secondToolList/whiteBoard.png"
  923. alt
  924. @click="addTools(tooC, toolIndex, taskCount)"
  925. />
  926. <div style="margin: 5px 0">电子白板</div>
  927. </div>
  928. <div v-if="tooC == 3">
  929. <img
  930. src="../../assets/icon/secondToolList/mindMapping.png"
  931. alt
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. />
  934. <div style="margin: 5px 0">思维导图</div>
  935. </div>
  936. <div v-if="tooC == 6">
  937. <img
  938. src="../../assets/icon/secondToolList/doc.png"
  939. alt
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. />
  942. <div style="margin: 5px 0">协同文档</div>
  943. </div>
  944. <div v-if="tooC == 7">
  945. <img
  946. src="../../assets/icon/secondToolList/mindNetwork.png"
  947. alt
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. />
  950. <div style="margin: 5px 0">思维网格</div>
  951. </div>
  952. <div v-if="tooC == 8">
  953. <img
  954. src="../../assets/icon/secondToolList/library.png"
  955. alt
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. />
  958. <div style="margin: 5px 0">素材库</div>
  959. </div>
  960. <div v-if="tooC == 17">
  961. <img
  962. src="../../assets/icon/secondToolList/library.png"
  963. alt
  964. @click="addTools(tooC, toolIndex, taskCount)"
  965. />
  966. <div style="margin: 5px 0">学习资料</div>
  967. </div>
  968. <div v-if="tooC == 2">
  969. <img
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. src="../../assets/icon/secondToolList/note.png"
  972. alt
  973. />
  974. <div style="margin: 5px 0">便签</div>
  975. </div>
  976. <div v-if="tooC == 4">
  977. <img
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. src="../../assets/icon/thirdToolList/ask.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">问卷调查</div>
  983. </div>
  984. <div v-if="tooC == 45">
  985. <img
  986. @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../../assets/icon/thirdToolList/choose.png"
  988. alt
  989. />
  990. <div style="margin: 5px 0">选择题</div>
  991. </div>
  992. <!-- <div v-if="tooC == 5">
  993. <img
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. src="../../assets/icon/thirdToolList/score.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">量规评分</div>
  999. </div> -->
  1000. <div v-if="tooC == 10">
  1001. <img
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. src="../../assets/icon/thirdToolList/time.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">倒计时</div>
  1007. </div>
  1008. <div v-if="tooC == 15">
  1009. <img
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. src="../../assets/icon/thirdToolList/answer.png"
  1012. alt
  1013. />
  1014. <div style="margin: 5px 0">问答</div>
  1015. </div>
  1016. <div v-if="tooC == 26">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../../assets/icon/thirdToolList/courseDesign.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">课程设计</div>
  1023. </div>
  1024. <div v-if="tooC == 18">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">训练服务器</div>
  1031. </div>
  1032. <div v-if="tooC == 16">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../../assets/icon/thirdToolList/work.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">作业提交</div>
  1039. </div>
  1040. <div v-if="tooC == 50">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../../assets/icon/thirdToolList/plwork.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">批量上传</div>
  1047. </div>
  1048. <div v-if="tooC == 21">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../../assets/icon/fourthToolList/program.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">AIoT Blockly</div>
  1055. </div>
  1056. <!-- <div v-if="tooC == 22">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../../assets/icon/fourthToolList/program.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">AI体验</div>
  1063. </div> -->
  1064. <div v-if="tooC == 23">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">AI Python</div>
  1071. </div>
  1072. <div v-if="tooC == 24">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/fourthToolList/AIprogram.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">AI Blockly</div>
  1079. </div>
  1080. <div v-if="tooC == 25">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/evalua.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">目标管理</div>
  1087. </div>
  1088. <div v-if="tooC == 31">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/secondToolList/networkPanel.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">数学画板</div>
  1095. </div>
  1096. <div v-if="tooC == 28">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/secondToolList/translation.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">翻译</div>
  1103. </div>
  1104. <div v-if="tooC == 37">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/secondToolList/mohe.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">魔盒识字</div>
  1111. </div>
  1112. <div v-if="tooC == 38">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../../assets/icon/secondToolList/24game.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">24点</div>
  1119. </div>
  1120. <div v-if="tooC == 39">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../../assets/icon/secondToolList/GeoGebra.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">GeoGebra</div>
  1127. </div>
  1128. <div v-if="tooC == 32">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/thirdToolList/code.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">源码编辑</div>
  1135. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1136. style="position: absolute;left: 110px;bottom: 30px;">
  1137. 上传文件
  1138. <input type="file" accept="*" style="display: none"
  1139. @change="beforeUpload1($event, 7, toolIndex)" />
  1140. </div> -->
  1141. </div>
  1142. <div v-if="tooC == 40">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../../assets/icon/secondToolList/eval.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">个人评价</div>
  1149. </div>
  1150. <div v-if="tooC == 41">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/thirdToolList/select.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">选择匹配</div>
  1157. </div>
  1158. <div v-if="tooC == 44">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/hanClass.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">汉字宫</div>
  1165. </div>
  1166. <div v-if="tooC == 47">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/fourthToolList/conSentences.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">排序</div>
  1173. </div>
  1174. <div v-if="tooC == 48">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/table.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">表格</div>
  1181. </div>
  1182. <div v-if="tooC == 52">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../../assets/icon/fourthToolList/text.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">文档</div>
  1189. </div>
  1190. <div v-if="tooC == 49">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../../assets/icon/fourthToolList/group.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">学生分组</div>
  1197. </div>
  1198. <div v-if="tooC == 57">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/fourthToolList/cocopi.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">CocoPi</div>
  1205. </div>
  1206. <div v-if="tooC == 58">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/fourthToolList/car.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">模拟驾驶</div>
  1213. </div>
  1214. <div v-if="tooC == 59">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/fourthToolList/lineSearch.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">路径搜索</div>
  1221. </div>
  1222. <div v-if="tooC == 60">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../../assets/icon/fourthToolList/deepLearning.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">深度学习</div>
  1229. </div>
  1230. <div v-if="tooC == 61">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../../assets/icon/fourthToolList/allHistory.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">全历史</div>
  1237. </div>
  1238. <div v-if="tooC == 62">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../../assets/icon/fourthToolList/interVideo.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">交互视频</div>
  1245. </div>
  1246. <div v-if="tooC == 63">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/fourthToolList/Wood.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">海龟编程</div>
  1253. </div>
  1254. <div v-if="tooC == 65">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/firstToolList/pickPeople.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">挑人</div>
  1261. </div>
  1262. <div v-if="tooC == 66">
  1263. <img
  1264. @click="addTools(tooC, toolIndex, taskCount)"
  1265. src="../../assets/icon/secondToolList/formulaEdi.png"
  1266. alt
  1267. />
  1268. <div style="margin: 5px 0">公式编辑</div>
  1269. </div>
  1270. <div v-if="tooC == 67">
  1271. <img
  1272. @click="addTools(tooC, toolIndex, taskCount)"
  1273. src="../../assets/icon/secondToolList/molStr.png"
  1274. alt
  1275. />
  1276. <div style="margin: 5px 0">分子结构</div>
  1277. </div>
  1278. <div v-if="tooC == 68">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../../assets/icon/secondToolList/timeAxis.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">时间轴</div>
  1285. </div>
  1286. <div v-if="tooC == 69">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../../assets/icon/secondToolList/english.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">英语写作</div>
  1293. </div>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1298. <!-- <div class="toolTitle">工具描述</div> -->
  1299. <div style="height:100%;"
  1300. v-html="contentConvent(tool.toolDetail)"
  1301. v-if="toolDetailIndex != toolIndex"
  1302. @click.stop="updateToolDetail(toolIndex, 2)"
  1303. ></div>
  1304. <div v-else @click.stop="" style="height:100%;">
  1305. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1306. </div>
  1307. </div>
  1308. <el-button
  1309. type="primary"
  1310. v-if="tool.tool[0] == 32"
  1311. style="position: absolute; right: 30px; top: 30px"
  1312. @click="addImg($event)"
  1313. >上传作业<input
  1314. type="file"
  1315. accept="*"
  1316. style="display: none"
  1317. @change="beforeUpload1($event, 7, toolIndex)"
  1318. /></el-button>
  1319. <el-button
  1320. type="primary"
  1321. v-if="tool.tool[0] == 15"
  1322. style="position: absolute; right: 30px; top: 30px"
  1323. @click="openWordCloud(toolIndex)"
  1324. >生成词云</el-button
  1325. >
  1326. <el-button
  1327. type="primary"
  1328. v-if="
  1329. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1330. "
  1331. style="position: absolute; right: 30px; top: 30px"
  1332. @click="uploadWorks(toolIndex)"
  1333. >导出作业</el-button
  1334. >
  1335. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1336. position: absolute;
  1337. right: 30px;
  1338. transform: translateY(-130%);
  1339. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1340. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1341. </div>
  1342. <div
  1343. v-if="
  1344. tType &&
  1345. tType == 2 &&
  1346. !sIsOpen &&
  1347. tool.tool.indexOf(16) != -1
  1348. "
  1349. class="worksBox"
  1350. >
  1351. <div
  1352. class="zuoyeYulan"
  1353. v-if="workStudent[toolIndex].length > 0"
  1354. >
  1355. <span class="worksTitle">作业预览</span>
  1356. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1357. </div>
  1358. <div
  1359. class="worksDetailBox"
  1360. v-if="workStudent[toolIndex].length > 0"
  1361. >
  1362. <div
  1363. class="works"
  1364. style="
  1365. width: 200px;
  1366. height: 140px;
  1367. margin: 10px 10px 10px 0;
  1368. box-shadow: 0 0 6px 1px #dfdada;
  1369. "
  1370. v-for="(w, wIndex) in workStudent[toolIndex]"
  1371. :key="wIndex"
  1372. >
  1373. <div class="workImg" v-if="w.type == 0">
  1374. <img
  1375. :src="w.works"
  1376. @click="previewImg(w.works)"
  1377. alt
  1378. />
  1379. <div
  1380. class="answerScore"
  1381. v-if="w.score"
  1382. @click.stop="openScore(w)"
  1383. :class="{
  1384. rightW:
  1385. w.userid == userid || tType == 1 || tType == 4,
  1386. }"
  1387. >
  1388. {{ JSON.parse(w.score).wScore }}分
  1389. </div>
  1390. <div
  1391. class="answerScore"
  1392. @click.stop="openScore(w)"
  1393. v-else-if="courseDetail.userid == userid"
  1394. :class="{
  1395. rightW:
  1396. w.userid == userid || tType == 1 || tType == 4,
  1397. }"
  1398. >
  1399. 评分
  1400. </div>
  1401. <img
  1402. class="deleteImg"
  1403. src="../../assets/deleteworks.png"
  1404. v-if="
  1405. w.userid == userid || tType == 1 || tType == 4
  1406. "
  1407. @click.stop="deleteWorks(w.wid)"
  1408. alt
  1409. />
  1410. </div>
  1411. <div class="workImg" v-if="w.type == 1">
  1412. <img :src="word" @click="openFile(w.works)" alt />
  1413. <div
  1414. class="answerScore"
  1415. v-if="w.score"
  1416. @click.stop="openScore(w)"
  1417. :class="{
  1418. rightW:
  1419. w.userid == userid || tType == 1 || tType == 4,
  1420. }"
  1421. >
  1422. {{ JSON.parse(w.score).wScore }}分
  1423. </div>
  1424. <div
  1425. class="answerScore"
  1426. @click.stop="openScore(w)"
  1427. v-else-if="courseDetail.userid == userid"
  1428. :class="{
  1429. rightW:
  1430. w.userid == userid || tType == 1 || tType == 4,
  1431. }"
  1432. >
  1433. 评分
  1434. </div>
  1435. <img
  1436. class="deleteImg"
  1437. src="../../assets/deleteworks.png"
  1438. v-if="
  1439. w.userid == userid || tType == 1 || tType == 4
  1440. "
  1441. @click.stop="deleteWorks(w.wid)"
  1442. alt
  1443. />
  1444. </div>
  1445. <div class="workImg" v-if="w.type == 3">
  1446. <img
  1447. style="cursor: pointer"
  1448. :src="video"
  1449. @click="openVideo(w)"
  1450. alt
  1451. />
  1452. <div
  1453. class="answerScore"
  1454. v-if="w.score"
  1455. @click.stop="openScore(w)"
  1456. :class="{
  1457. rightW:
  1458. w.userid == userid || tType == 1 || tType == 4,
  1459. }"
  1460. >
  1461. {{ JSON.parse(w.score).wScore }}分
  1462. </div>
  1463. <div
  1464. class="answerScore"
  1465. @click.stop="openScore(w)"
  1466. v-else-if="courseDetail.userid == userid"
  1467. :class="{
  1468. rightW:
  1469. w.userid == userid || tType == 1 || tType == 4,
  1470. }"
  1471. >
  1472. 评分
  1473. </div>
  1474. <img
  1475. class="deleteImg"
  1476. src="../../assets/deleteworks.png"
  1477. v-if="
  1478. w.userid == userid || tType == 1 || tType == 4
  1479. "
  1480. @click.stop="deleteWorks(w.wid)"
  1481. alt
  1482. />
  1483. </div>
  1484. <div class="workImg" v-if="w.type == 12">
  1485. <img
  1486. style="cursor: pointer"
  1487. :src="word2"
  1488. @click="downloadFile(w.works)"
  1489. alt
  1490. />
  1491. <div
  1492. class="answerScore"
  1493. v-if="w.score"
  1494. @click.stop="openScore(w)"
  1495. :class="{
  1496. rightW:
  1497. w.userid == userid || tType == 1 || tType == 4,
  1498. }"
  1499. >
  1500. {{ JSON.parse(w.score).wScore }}分
  1501. </div>
  1502. <div
  1503. class="answerScore"
  1504. @click.stop="openScore(w)"
  1505. v-else-if="courseDetail.userid == userid"
  1506. :class="{
  1507. rightW:
  1508. w.userid == userid || tType == 1 || tType == 4,
  1509. }"
  1510. >
  1511. 评分
  1512. </div>
  1513. <img
  1514. class="deleteImg"
  1515. src="../../assets/deleteworks.png"
  1516. v-if="
  1517. w.userid == userid || tType == 1 || tType == 4
  1518. "
  1519. @click.stop="deleteWorks(w.wid)"
  1520. alt
  1521. />
  1522. </div>
  1523. <div class="worksName">
  1524. <div>{{ w.sName }}</div>
  1525. </div>
  1526. </div>
  1527. </div>
  1528. </div>
  1529. <div
  1530. v-if="
  1531. tType &&
  1532. tType == 2 &&
  1533. !sIsOpen &&
  1534. tool.tool.indexOf(32) != -1
  1535. "
  1536. class="worksBox"
  1537. >
  1538. <div
  1539. class="zuoyeYulan"
  1540. v-if="workStudent[toolIndex].length > 0"
  1541. >
  1542. <span class="worksTitle">作业预览</span>
  1543. </div>
  1544. <div
  1545. class="worksDetailBox"
  1546. v-if="workStudent[toolIndex].length > 0"
  1547. >
  1548. <div
  1549. class="works"
  1550. style="
  1551. width: 200px;
  1552. height: 140px;
  1553. margin: 10px 10px 10px 0;
  1554. box-shadow: 0 0 6px 1px #dfdada;
  1555. "
  1556. v-for="(w, wIndex) in workStudent[toolIndex]"
  1557. :key="wIndex"
  1558. >
  1559. <div class="workImg">
  1560. <img
  1561. :src="word2"
  1562. @click="downloadFile(w.works)"
  1563. alt
  1564. />
  1565. <div
  1566. class="answerScore"
  1567. v-if="w.score"
  1568. @click.stop="openScore(w)"
  1569. :class="{
  1570. rightW:
  1571. w.userid == userid || tType == 1 || tType == 4,
  1572. }"
  1573. >
  1574. {{ JSON.parse(w.score).wScore }}分
  1575. </div>
  1576. <div
  1577. class="answerScore"
  1578. @click.stop="openScore(w)"
  1579. v-else-if="courseDetail.userid == userid"
  1580. :class="{
  1581. rightW:
  1582. w.userid == userid || tType == 1 || tType == 4,
  1583. }"
  1584. >
  1585. 评分
  1586. </div>
  1587. <img
  1588. class="deleteImg"
  1589. src="../../assets/deleteworks.png"
  1590. v-if="
  1591. w.userid == userid || tType == 1 || tType == 4
  1592. "
  1593. @click.stop="deleteWorks(w.wid)"
  1594. alt
  1595. />
  1596. </div>
  1597. <div class="worksName">
  1598. <div>{{ w.sName }}</div>
  1599. </div>
  1600. </div>
  1601. </div>
  1602. </div>
  1603. <div
  1604. v-if="
  1605. tType &&
  1606. tType == 2 &&
  1607. !sIsOpen &&
  1608. tool.tool.indexOf(57) != -1
  1609. "
  1610. class="worksBox"
  1611. >
  1612. <div
  1613. class="zuoyeYulan"
  1614. v-if="workStudent[toolIndex].length > 0"
  1615. >
  1616. <span class="worksTitle">作业预览</span>
  1617. </div>
  1618. <div
  1619. class="worksDetailBox"
  1620. v-if="workStudent[toolIndex].length > 0"
  1621. >
  1622. <div
  1623. class="works"
  1624. style="
  1625. width: 200px;
  1626. height: 140px;
  1627. margin: 10px 10px 10px 0;
  1628. box-shadow: 0 0 6px 1px #dfdada;
  1629. "
  1630. v-for="(w, wIndex) in workStudent[toolIndex]"
  1631. :key="wIndex"
  1632. >
  1633. <div class="workImg">
  1634. <img
  1635. :src="word2"
  1636. @click="downloadFile(w.works)"
  1637. v-if="w.type == 12"
  1638. alt
  1639. />
  1640. <img
  1641. :src="word2"
  1642. @click="
  1643. openCocoPi(57, toolIndex, w.userid, w.sName)
  1644. "
  1645. v-else-if="w.type == 15"
  1646. alt
  1647. />
  1648. <div
  1649. class="answerScore"
  1650. v-if="w.score"
  1651. @click.stop="openScore(w)"
  1652. :class="{
  1653. rightW:
  1654. w.userid == userid || tType == 1 || tType == 4,
  1655. }"
  1656. >
  1657. {{ JSON.parse(w.score).wScore }}分
  1658. </div>
  1659. <div
  1660. class="answerScore"
  1661. @click.stop="openScore(w)"
  1662. v-else-if="courseDetail.userid == userid"
  1663. :class="{
  1664. rightW:
  1665. w.userid == userid || tType == 1 || tType == 4,
  1666. }"
  1667. >
  1668. 评分
  1669. </div>
  1670. <img
  1671. class="deleteImg"
  1672. src="../../assets/deleteworks.png"
  1673. v-if="
  1674. w.userid == userid || tType == 1 || tType == 4
  1675. "
  1676. @click.stop="deleteWorks(w.wid)"
  1677. alt
  1678. />
  1679. </div>
  1680. <div class="worksName">
  1681. <div>{{ w.sName }}</div>
  1682. </div>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. <div
  1687. v-if="
  1688. tType &&
  1689. tType == 2 &&
  1690. !sIsOpen &&
  1691. tool.tool.indexOf(4) != -1
  1692. "
  1693. class="worksBox"
  1694. >
  1695. <div
  1696. class="zuoyeYulan"
  1697. v-if="workStudent[toolIndex].length > 0"
  1698. >
  1699. <span class="worksTitle">作业预览</span>
  1700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1701. </div>
  1702. <div
  1703. class="worksDetailBox"
  1704. v-if="workStudent[toolIndex].length > 0"
  1705. >
  1706. <div
  1707. class="isWorksName2"
  1708. v-for="(w, wIndex) in workStudent[toolIndex]"
  1709. :key="wIndex"
  1710. @click="
  1711. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1712. "
  1713. >
  1714. {{ w.sName }}
  1715. <img
  1716. class="deleteImg deleteImg2"
  1717. src="../../assets/deleteworks.png"
  1718. v-if="w.userid == userid || tType == 1 || tType == 4"
  1719. @click.stop="deleteWorks(w.wid)"
  1720. alt
  1721. />
  1722. </div>
  1723. <!-- <div
  1724. class="works"
  1725. style="
  1726. width: 200px;
  1727. height: 140px;
  1728. border-radius: 10px;
  1729. box-shadow: 0 0 6px 1px #dfdada;
  1730. overflow: hidden;
  1731. "
  1732. v-for="(w, wIndex) in workStudent[toolIndex]"
  1733. :key="wIndex"
  1734. >
  1735. <div class="workImg">
  1736. <img
  1737. src="../../assets/icon/works/noImg.png"
  1738. @click="
  1739. openTools(
  1740. 4,
  1741. toolIndex,
  1742. taskCount,
  1743. w.works,
  1744. w.sName
  1745. )
  1746. "
  1747. alt
  1748. />
  1749. </div>
  1750. <div class="worksName">
  1751. <div>{{ w.sName }}</div>
  1752. <div>{{ w.time }}</div>
  1753. </div>
  1754. </div> -->
  1755. </div>
  1756. </div>
  1757. <div
  1758. v-if="
  1759. tType &&
  1760. tType == 2 &&
  1761. !sIsOpen &&
  1762. tool.tool.indexOf(45) != -1
  1763. "
  1764. class="worksBox"
  1765. >
  1766. <div
  1767. class="zuoyeYulan"
  1768. v-if="workStudent[toolIndex].length > 0"
  1769. >
  1770. <span class="worksTitle">作业预览</span>
  1771. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1772. </div>
  1773. <div
  1774. class="worksDetailBox"
  1775. v-if="workStudent[toolIndex].length > 0"
  1776. >
  1777. <div
  1778. class="isWorksName2"
  1779. v-for="(w, wIndex) in workStudent[toolIndex]"
  1780. :key="wIndex"
  1781. @click="
  1782. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1783. "
  1784. >
  1785. {{ w.sName }}
  1786. <img
  1787. class="deleteImg deleteImg2"
  1788. src="../../assets/deleteworks.png"
  1789. v-if="w.userid == userid || tType == 1 || tType == 4"
  1790. @click.stop="deleteWorks(w.wid)"
  1791. alt
  1792. />
  1793. </div>
  1794. </div>
  1795. </div>
  1796. <div
  1797. v-if="
  1798. tType &&
  1799. tType == 2 &&
  1800. !sIsOpen &&
  1801. tool.tool.indexOf(69) != -1
  1802. "
  1803. class="worksBox"
  1804. >
  1805. <div
  1806. class="zuoyeYulan"
  1807. v-if="workStudent[toolIndex].length > 0"
  1808. >
  1809. <span class="worksTitle">作业预览</span>
  1810. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1811. </div>
  1812. <div
  1813. class="worksDetailBox"
  1814. v-if="workStudent[toolIndex].length > 0"
  1815. >
  1816. <div
  1817. class="isWorksName2"
  1818. v-for="(w, wIndex) in workStudent[toolIndex]"
  1819. :key="wIndex"
  1820. @click="
  1821. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1822. "
  1823. >
  1824. {{ w.sName }}
  1825. <img
  1826. class="deleteImg deleteImg2"
  1827. src="../../assets/deleteworks.png"
  1828. v-if="w.userid == userid || tType == 1 || tType == 4"
  1829. @click.stop="deleteWorks(w.wid)"
  1830. alt
  1831. />
  1832. </div>
  1833. </div>
  1834. </div>
  1835. <div
  1836. v-if="
  1837. tType &&
  1838. tType == 2 &&
  1839. !sIsOpen &&
  1840. tool.tool.indexOf(15) != -1
  1841. "
  1842. class="worksBox"
  1843. >
  1844. <div
  1845. class="zuoyeYulan"
  1846. v-if="workStudent[toolIndex].length > 0"
  1847. >
  1848. <span class="worksTitle">作业预览</span>
  1849. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1850. </div>
  1851. <div
  1852. class="worksDetailBox"
  1853. v-if="workStudent[toolIndex].length > 0"
  1854. >
  1855. <div
  1856. class="works"
  1857. v-for="(w, wIndex) in workStudent[toolIndex]"
  1858. :key="wIndex"
  1859. >
  1860. <div class="workImg">
  1861. <!-- <img
  1862. src="../../assets/icon/works/noImg.png"
  1863. @click="openTools(15, toolIndex, taskCount, w.works)"
  1864. alt=""
  1865. />-->
  1866. <div class="answerBg">
  1867. <!-- <div>{{ w.sName }}</div> -->
  1868. <el-tooltip
  1869. class="item"
  1870. effect="light"
  1871. :content="JSON.parse(w.works)[0].answer"
  1872. placement="top"
  1873. >
  1874. <div class="answerContent">
  1875. {{ JSON.parse(w.works)[0].answer }}
  1876. </div>
  1877. </el-tooltip>
  1878. <div
  1879. class="answerScore"
  1880. v-if="w.score"
  1881. @click.stop="openScore(w)"
  1882. :class="{
  1883. rightW:
  1884. w.userid == userid ||
  1885. tType == 1 ||
  1886. tType == 4,
  1887. }"
  1888. >
  1889. {{ JSON.parse(w.score).wScore }}分
  1890. </div>
  1891. <div
  1892. class="answerScore"
  1893. @click.stop="openScore(w)"
  1894. v-else-if="courseDetail.userid == userid"
  1895. :class="{
  1896. rightW:
  1897. w.userid == userid ||
  1898. tType == 1 ||
  1899. tType == 4,
  1900. }"
  1901. >
  1902. 评分
  1903. </div>
  1904. <img
  1905. class="deleteImg"
  1906. src="../../assets/deleteworks.png"
  1907. v-if="
  1908. w.userid == userid || tType == 1 || tType == 4
  1909. "
  1910. @click.stop="deleteWorks(w.wid)"
  1911. alt
  1912. />
  1913. </div>
  1914. <div class="comment">
  1915. <div class="worksName">
  1916. <div>{{ w.sName }}</div>
  1917. </div>
  1918. </div>
  1919. </div>
  1920. </div>
  1921. </div>
  1922. </div>
  1923. <div
  1924. v-if="
  1925. tType &&
  1926. tType == 2 &&
  1927. !sIsOpen &&
  1928. tool.tool.indexOf(1) != -1
  1929. "
  1930. class="worksBox"
  1931. >
  1932. <div
  1933. class="zuoyeYulan"
  1934. v-if="workStudent[toolIndex].length > 0"
  1935. >
  1936. <span class="worksTitle">作业预览</span>
  1937. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1938. </div>
  1939. <div
  1940. class="worksDetailBox"
  1941. v-if="workStudent[toolIndex].length > 0"
  1942. >
  1943. <div
  1944. class="works"
  1945. style="
  1946. width: 200px;
  1947. height: 140px;
  1948. margin: 10px 10px 10px 0;
  1949. box-shadow: 0 0 6px 1px #dfdada;
  1950. "
  1951. v-for="(w, wIndex) in workStudent[toolIndex]"
  1952. :key="wIndex"
  1953. >
  1954. <div class="workImg">
  1955. <img
  1956. :src="w.works"
  1957. @click="previewImg(w.works)"
  1958. alt
  1959. />
  1960. <div
  1961. class="answerScore"
  1962. v-if="w.score"
  1963. @click.stop="openScore(w)"
  1964. :class="{
  1965. rightW:
  1966. w.userid == userid || tType == 1 || tType == 4,
  1967. }"
  1968. >
  1969. {{ JSON.parse(w.score).wScore }}分
  1970. </div>
  1971. <div
  1972. class="answerScore"
  1973. @click.stop="openScore(w)"
  1974. v-else-if="courseDetail.userid == userid"
  1975. :class="{
  1976. rightW:
  1977. w.userid == userid || tType == 1 || tType == 4,
  1978. }"
  1979. >
  1980. 评分
  1981. </div>
  1982. <img
  1983. class="deleteImg"
  1984. src="../../assets/deleteworks.png"
  1985. v-if="
  1986. w.userid == userid || tType == 1 || tType == 4
  1987. "
  1988. @click.stop="deleteWorks(w.wid)"
  1989. alt
  1990. />
  1991. </div>
  1992. <div class="worksName">
  1993. <div>{{ w.sName }}</div>
  1994. </div>
  1995. </div>
  1996. </div>
  1997. </div>
  1998. <div
  1999. v-if="
  2000. tType &&
  2001. tType == 2 &&
  2002. !sIsOpen &&
  2003. tool.tool.indexOf(3) != -1
  2004. "
  2005. class="worksBox"
  2006. >
  2007. <div
  2008. class="zuoyeYulan"
  2009. v-if="workStudent[toolIndex].length > 0"
  2010. >
  2011. <span class="worksTitle">作业预览</span>
  2012. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2013. </div>
  2014. <div
  2015. class="worksDetailBox"
  2016. v-if="workStudent[toolIndex].length > 0"
  2017. >
  2018. <div
  2019. class="works"
  2020. style="
  2021. width: 200px;
  2022. height: 140px;
  2023. margin: 10px 10px 10px 0;
  2024. box-shadow: 0 0 6px 1px #dfdada;
  2025. "
  2026. v-for="(w, wIndex) in workStudent[toolIndex]"
  2027. :key="wIndex"
  2028. >
  2029. <div class="workImg">
  2030. <img
  2031. :src="w.works"
  2032. @click="previewImg(w.works)"
  2033. alt
  2034. />
  2035. <div
  2036. class="answerScore"
  2037. v-if="w.score"
  2038. @click.stop="openScore(w)"
  2039. :class="{
  2040. rightW:
  2041. w.userid == userid || tType == 1 || tType == 4,
  2042. }"
  2043. >
  2044. {{ JSON.parse(w.score).wScore }}分
  2045. </div>
  2046. <div
  2047. class="answerScore"
  2048. @click.stop="openScore(w)"
  2049. v-else-if="courseDetail.userid == userid"
  2050. :class="{
  2051. rightW:
  2052. w.userid == userid || tType == 1 || tType == 4,
  2053. }"
  2054. >
  2055. 评分
  2056. </div>
  2057. <img
  2058. class="deleteImg"
  2059. src="../../assets/deleteworks.png"
  2060. v-if="
  2061. w.userid == userid || tType == 1 || tType == 4
  2062. "
  2063. @click.stop="deleteWorks(w.wid)"
  2064. alt
  2065. />
  2066. </div>
  2067. <div class="worksName">
  2068. <div>{{ w.sName }}</div>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. </div>
  2073. <div
  2074. v-if="
  2075. tType &&
  2076. tType == 2 &&
  2077. !sIsOpen &&
  2078. tool.tool.indexOf(6) != -1
  2079. "
  2080. class="worksBox"
  2081. >
  2082. <div
  2083. class="zuoyeYulan"
  2084. v-if="workStudent[toolIndex].length > 0"
  2085. >
  2086. <span class="worksTitle">作业预览</span>
  2087. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2088. </div>
  2089. <div
  2090. class="worksDetailBox"
  2091. v-if="workStudent[toolIndex].length > 0"
  2092. >
  2093. <div
  2094. class="works"
  2095. style="
  2096. width: 200px;
  2097. height: 140px;
  2098. margin: 10px 10px 10px 0;
  2099. box-shadow: 0 0 6px 1px #dfdada;
  2100. "
  2101. v-for="(w, wIndex) in workStudent[toolIndex]"
  2102. :key="wIndex"
  2103. >
  2104. <div class="workImg">
  2105. <img
  2106. :src="w.works"
  2107. @click="previewImg(w.works)"
  2108. alt
  2109. />
  2110. <div
  2111. class="answerScore"
  2112. v-if="w.score"
  2113. @click.stop="openScore(w)"
  2114. :class="{
  2115. rightW:
  2116. w.userid == userid || tType == 1 || tType == 4,
  2117. }"
  2118. >
  2119. {{ JSON.parse(w.score).wScore }}分
  2120. </div>
  2121. <div
  2122. class="answerScore"
  2123. @click.stop="openScore(w)"
  2124. v-else-if="courseDetail.userid == userid"
  2125. :class="{
  2126. rightW:
  2127. w.userid == userid || tType == 1 || tType == 4,
  2128. }"
  2129. >
  2130. 评分
  2131. </div>
  2132. <img
  2133. class="deleteImg"
  2134. src="../../assets/deleteworks.png"
  2135. v-if="
  2136. w.userid == userid || tType == 1 || tType == 4
  2137. "
  2138. @click.stop="deleteWorks(w.wid)"
  2139. alt
  2140. />
  2141. </div>
  2142. <div class="worksName">
  2143. <div>{{ w.sName }}</div>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. </div>
  2148. <div
  2149. v-if="
  2150. tType &&
  2151. tType == 2 &&
  2152. !sIsOpen &&
  2153. tool.tool.indexOf(7) != -1
  2154. "
  2155. class="worksBox"
  2156. >
  2157. <div
  2158. class="zuoyeYulan"
  2159. v-if="workStudent[toolIndex].length > 0"
  2160. >
  2161. <span class="worksTitle">作业预览</span>
  2162. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2163. </div>
  2164. <div
  2165. class="worksDetailBox"
  2166. v-if="workStudent[toolIndex].length > 0"
  2167. >
  2168. <div
  2169. class="works"
  2170. style="
  2171. width: 200px;
  2172. height: 140px;
  2173. margin: 10px 10px 10px 0;
  2174. box-shadow: 0 0 6px 1px #dfdada;
  2175. "
  2176. v-for="(w, wIndex) in workStudent[toolIndex]"
  2177. :key="wIndex"
  2178. >
  2179. <div class="workImg">
  2180. <img
  2181. :src="w.works"
  2182. @click="previewImg(w.works)"
  2183. alt
  2184. />
  2185. <div
  2186. class="answerScore"
  2187. v-if="w.score"
  2188. @click.stop="openScore(w)"
  2189. :class="{
  2190. rightW:
  2191. w.userid == userid || tType == 1 || tType == 4,
  2192. }"
  2193. >
  2194. {{ JSON.parse(w.score).wScore }}分
  2195. </div>
  2196. <div
  2197. class="answerScore"
  2198. @click.stop="openScore(w)"
  2199. v-else-if="courseDetail.userid == userid"
  2200. :class="{
  2201. rightW:
  2202. w.userid == userid || tType == 1 || tType == 4,
  2203. }"
  2204. >
  2205. 评分
  2206. </div>
  2207. <img
  2208. class="deleteImg"
  2209. src="../../assets/deleteworks.png"
  2210. v-if="
  2211. w.userid == userid || tType == 1 || tType == 4
  2212. "
  2213. @click.stop="deleteWorks(w.wid)"
  2214. alt
  2215. />
  2216. </div>
  2217. <div class="worksName">
  2218. <div>{{ w.sName }}</div>
  2219. </div>
  2220. </div>
  2221. </div>
  2222. </div>
  2223. <div
  2224. v-if="
  2225. tType &&
  2226. tType == 2 &&
  2227. !sIsOpen &&
  2228. tool.tool.indexOf(26) != -1
  2229. "
  2230. class="worksBox"
  2231. >
  2232. <div
  2233. class="zuoyeYulan"
  2234. v-if="workStudent[toolIndex].length > 0"
  2235. >
  2236. <span class="worksTitle">作业预览</span>
  2237. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2238. </div>
  2239. <div
  2240. class="worksDetailBox"
  2241. v-if="workStudent[toolIndex].length > 0"
  2242. >
  2243. <div
  2244. class="works"
  2245. style="
  2246. width: 200px;
  2247. height: 140px;
  2248. margin: 10px 10px 10px 0;
  2249. box-shadow: 0 0 6px 1px #dfdada;
  2250. "
  2251. v-for="(w, wIndex) in workStudent[toolIndex]"
  2252. :key="wIndex"
  2253. >
  2254. <div class="workImg">
  2255. <img
  2256. :src="w.works"
  2257. @click="previewImg(w.works)"
  2258. alt
  2259. />
  2260. <img
  2261. class="deleteImg"
  2262. src="../../assets/deleteworks.png"
  2263. v-if="
  2264. w.userid == userid || tType == 1 || tType == 4
  2265. "
  2266. @click.stop="deleteWorks(w.wid)"
  2267. alt
  2268. />
  2269. </div>
  2270. <div class="worksName">
  2271. <div>{{ w.sName }}</div>
  2272. </div>
  2273. </div>
  2274. </div>
  2275. </div>
  2276. <div
  2277. v-if="
  2278. tType &&
  2279. ((tType == 2 && sIsOpen == true) ||
  2280. tType == 1 ||
  2281. tType == 4) &&
  2282. tool.tool.indexOf(16) != -1
  2283. "
  2284. class="worksBox"
  2285. >
  2286. <div
  2287. class="zuoyeYulan"
  2288. v-if="
  2289. (worksStudent.length &&
  2290. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2291. "
  2292. >
  2293. <div class="worksTop">
  2294. <div>作业预览</div>
  2295. <div
  2296. class="corOpen"
  2297. @click="contract(toolIndex)"
  2298. v-if="
  2299. (isCloseList[toolIndex].isCloseBoolean) &&
  2300. isCloseList[toolIndex].isClose == 0
  2301. "
  2302. >
  2303. 折叠
  2304. </div>
  2305. <div
  2306. class="corOpen"
  2307. @click="contract(toolIndex)"
  2308. v-if="isCloseList[toolIndex].isClose == 1"
  2309. >
  2310. 展开
  2311. </div>
  2312. </div>
  2313. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2314. </div>
  2315. <div
  2316. class="group_workBox"
  2317. v-for="(g, gindex) in courseGroup.group"
  2318. :key="gindex"
  2319. >
  2320. <div class="group_box">
  2321. <div class="group_title">
  2322. <el-tooltip
  2323. class="item"
  2324. effect="light"
  2325. :content="g.name"
  2326. placement="top"
  2327. >
  2328. <div class="group_name">{{ g.name }}</div>
  2329. </el-tooltip>
  2330. </div>
  2331. <div
  2332. class="group_work"
  2333. v-if="
  2334. g.works &&
  2335. g.works.length &&
  2336. g.works[toolIndex].length
  2337. "
  2338. >
  2339. <div
  2340. class="works"
  2341. style="
  2342. width: 200px;
  2343. height: 140px;
  2344. margin: 10px 10px 10px 0;
  2345. border-radius: 15px;
  2346. box-shadow: 0 0 6px 1px #dfdada;
  2347. "
  2348. v-for="(w, wIndex) in g.works[toolIndex]"
  2349. :key="wIndex"
  2350. :class="w.type == 1 ? 'isTypeOne' : ''"
  2351. >
  2352. <div class="workImg" v-if="w.type == 0">
  2353. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2354. <img
  2355. :src="w.works"
  2356. @click="previewImg(w.works)"
  2357. alt
  2358. />
  2359. <div
  2360. class="answerScore"
  2361. v-if="w.score"
  2362. @click.stop="openScore(w)"
  2363. :class="{
  2364. rightW:
  2365. w.userid == userid ||
  2366. tType == 1 ||
  2367. tType == 4 ||
  2368. w.ateacher == userid,
  2369. }"
  2370. >
  2371. {{ JSON.parse(w.score).wScore }}分
  2372. </div>
  2373. <div
  2374. class="answerScore"
  2375. @click.stop="openScore(w)"
  2376. v-else-if="courseDetail.userid == userid"
  2377. :class="{
  2378. rightW:
  2379. w.userid == userid ||
  2380. tType == 1 ||
  2381. tType == 4 ||
  2382. w.ateacher == userid,
  2383. }"
  2384. >
  2385. 评分
  2386. </div>
  2387. <img
  2388. class="deleteImg"
  2389. src="../../assets/deleteworks.png"
  2390. v-if="
  2391. w.userid == userid || tType == 1 || tType == 4
  2392. "
  2393. @click.stop="deleteWorks(w.wid)"
  2394. alt
  2395. />
  2396. </div>
  2397. <div class="workImg" v-if="w.type == 1">
  2398. <img :src="word" @click="openFile(w.works)" alt />
  2399. <!-- @click="openFile(w.works)" -->
  2400. <div
  2401. class="answerScore"
  2402. v-if="w.score"
  2403. @click.stop="openScore(w)"
  2404. :class="{
  2405. rightW:
  2406. w.userid == userid ||
  2407. tType == 1 ||
  2408. tType == 4 ||
  2409. w.ateacher == userid,
  2410. }"
  2411. >
  2412. {{ JSON.parse(w.score).wScore }}分
  2413. </div>
  2414. <div
  2415. class="answerScore"
  2416. @click.stop="openScore(w)"
  2417. v-else-if="courseDetail.userid == userid"
  2418. :class="{
  2419. rightW:
  2420. w.userid == userid ||
  2421. tType == 1 ||
  2422. tType == 4 ||
  2423. w.ateacher == userid,
  2424. }"
  2425. >
  2426. 评分
  2427. </div>
  2428. <img
  2429. class="deleteImg"
  2430. src="../../assets/deleteworks.png"
  2431. v-if="
  2432. w.userid == userid || tType == 1 || tType == 4
  2433. "
  2434. @click.stop="deleteWorks(w.wid)"
  2435. alt
  2436. />
  2437. </div>
  2438. <div class="workImg" v-if="w.type == 3">
  2439. <img
  2440. style="cursor: pointer"
  2441. :src="video"
  2442. @click="openVideo(w)"
  2443. alt
  2444. />
  2445. <!-- @click="openVideo(w.works)" -->
  2446. <div
  2447. class="answerScore"
  2448. v-if="w.score"
  2449. @click.stop="openScore(w)"
  2450. :class="{
  2451. rightW:
  2452. w.userid == userid ||
  2453. tType == 1 ||
  2454. tType == 4 ||
  2455. w.ateacher == userid,
  2456. }"
  2457. >
  2458. {{ JSON.parse(w.score).wScore }}分
  2459. </div>
  2460. <div
  2461. class="answerScore"
  2462. @click.stop="openScore(w)"
  2463. v-else-if="courseDetail.userid == userid"
  2464. :class="{
  2465. rightW:
  2466. w.userid == userid ||
  2467. tType == 1 ||
  2468. tType == 4 ||
  2469. w.ateacher == userid,
  2470. }"
  2471. >
  2472. 评分
  2473. </div>
  2474. <img
  2475. class="deleteImg"
  2476. src="../../assets/deleteworks.png"
  2477. v-if="
  2478. w.userid == userid || tType == 1 || tType == 4
  2479. "
  2480. @click.stop="deleteWorks(w.wid)"
  2481. alt
  2482. />
  2483. </div>
  2484. <div class="workImg" v-if="w.type == 12">
  2485. <img
  2486. style="cursor: pointer"
  2487. :src="word2"
  2488. @click="downloadFile(w.works)"
  2489. alt
  2490. />
  2491. <!-- @click="openVideo(w.works)" -->
  2492. <div
  2493. class="answerScore"
  2494. v-if="w.score"
  2495. @click.stop="openScore(w)"
  2496. :class="{
  2497. rightW:
  2498. w.userid == userid ||
  2499. tType == 1 ||
  2500. tType == 4 ||
  2501. w.ateacher == userid,
  2502. }"
  2503. >
  2504. {{ JSON.parse(w.score).wScore }}分
  2505. </div>
  2506. <div
  2507. class="answerScore"
  2508. @click.stop="openScore(w)"
  2509. v-else-if="courseDetail.userid == userid"
  2510. :class="{
  2511. rightW:
  2512. w.userid == userid ||
  2513. tType == 1 ||
  2514. tType == 4 ||
  2515. w.ateacher == userid,
  2516. }"
  2517. >
  2518. 评分
  2519. </div>
  2520. <img
  2521. class="deleteImg"
  2522. src="../../assets/deleteworks.png"
  2523. v-if="
  2524. w.userid == userid || tType == 1 || tType == 4
  2525. "
  2526. @click.stop="deleteWorks(w.wid)"
  2527. alt
  2528. />
  2529. </div>
  2530. <div class="comment" style="min-width: 200px">
  2531. <div class="worksName">
  2532. <div>{{ w.sName }}</div>
  2533. </div>
  2534. <div class="commentList">
  2535. <div class="commentList">
  2536. <div
  2537. class="commentImg"
  2538. @click="
  2539. isLikes(w.wid, userid, 1, null, w.isLikes)
  2540. "
  2541. >
  2542. <img
  2543. :src="w.isLikes == true ? likes : noLikes"
  2544. alt=""
  2545. />
  2546. </div>
  2547. <div>{{ w.likesCount }}</div>
  2548. </div>
  2549. <div
  2550. class="commentList"
  2551. style="margin-right: 15px"
  2552. >
  2553. <div
  2554. class="commentImg"
  2555. @click="
  2556. commentOther(
  2557. w,
  2558. toolIndex,
  2559. wIndex,
  2560. null,
  2561. g.id
  2562. )
  2563. "
  2564. >
  2565. <img
  2566. src="../../assets/icon/comment/comment.png"
  2567. alt=""
  2568. />
  2569. </div>
  2570. <div>{{ w.commentCount }}</div>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. </div>
  2575. </div>
  2576. <div class="group_work" v-else>暂无提交作业</div>
  2577. </div>
  2578. </div>
  2579. <div
  2580. :id="'tool-' + toolIndex"
  2581. :style="{
  2582. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2583. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2584. }"
  2585. class="worksDetailBox"
  2586. v-if="
  2587. worksStudent.length &&
  2588. worksStudent[toolIndex].length > 0
  2589. "
  2590. >
  2591. <div
  2592. class="works"
  2593. style="
  2594. width: 200px;
  2595. height: 140px;
  2596. margin: 10px 10px 10px 0;
  2597. border-radius: 15px;
  2598. box-shadow: 0 0 6px 1px #dfdada;
  2599. "
  2600. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2601. :key="wIndex"
  2602. :class="w.type == 1 ? 'isTypeOne' : ''"
  2603. >
  2604. <div class="workImg" v-if="w.type == 0">
  2605. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2606. <img
  2607. :src="w.works"
  2608. @click="previewImg(w.works)"
  2609. alt
  2610. />
  2611. <div
  2612. class="answerScore"
  2613. v-if="w.score"
  2614. @click.stop="openScore(w)"
  2615. :class="{
  2616. rightW:
  2617. w.userid == userid ||
  2618. tType == 1 ||
  2619. tType == 4 ||
  2620. w.ateacher == userid,
  2621. }"
  2622. >
  2623. {{ JSON.parse(w.score).wScore }}分
  2624. </div>
  2625. <div
  2626. class="answerScore"
  2627. @click.stop="openScore(w)"
  2628. v-else-if="courseDetail.userid == userid"
  2629. :class="{
  2630. rightW:
  2631. w.userid == userid ||
  2632. tType == 1 ||
  2633. tType == 4 ||
  2634. w.ateacher == userid,
  2635. }"
  2636. >
  2637. 评分
  2638. </div>
  2639. <img
  2640. class="deleteImg"
  2641. src="../../assets/deleteworks.png"
  2642. v-if="
  2643. w.userid == userid || tType == 1 || tType == 4
  2644. "
  2645. @click.stop="deleteWorks(w.wid)"
  2646. alt
  2647. />
  2648. </div>
  2649. <div class="workImg" v-if="w.type == 1">
  2650. <img :src="word" @click="openFile(w.works)" alt />
  2651. <!-- @click="openFile(w.works)" -->
  2652. <div
  2653. class="answerScore"
  2654. v-if="w.score"
  2655. @click.stop="openScore(w)"
  2656. :class="{
  2657. rightW:
  2658. w.userid == userid ||
  2659. tType == 1 ||
  2660. tType == 4 ||
  2661. w.ateacher == userid,
  2662. }"
  2663. >
  2664. {{ JSON.parse(w.score).wScore }}分
  2665. </div>
  2666. <div
  2667. class="answerScore"
  2668. @click.stop="openScore(w)"
  2669. v-else-if="courseDetail.userid == userid"
  2670. :class="{
  2671. rightW:
  2672. w.userid == userid ||
  2673. tType == 1 ||
  2674. tType == 4 ||
  2675. w.ateacher == userid,
  2676. }"
  2677. >
  2678. 评分
  2679. </div>
  2680. <img
  2681. class="deleteImg"
  2682. src="../../assets/deleteworks.png"
  2683. v-if="
  2684. w.userid == userid || tType == 1 || tType == 4
  2685. "
  2686. @click.stop="deleteWorks(w.wid)"
  2687. alt
  2688. />
  2689. </div>
  2690. <div class="workImg" v-if="w.type == 3">
  2691. <img
  2692. style="cursor: pointer"
  2693. :src="video"
  2694. @click="openVideo(w)"
  2695. alt
  2696. />
  2697. <!-- @click="openVideo(w.works)" -->
  2698. <div
  2699. class="answerScore"
  2700. v-if="w.score"
  2701. @click.stop="openScore(w)"
  2702. :class="{
  2703. rightW:
  2704. w.userid == userid ||
  2705. tType == 1 ||
  2706. tType == 4 ||
  2707. w.ateacher == userid,
  2708. }"
  2709. >
  2710. {{ JSON.parse(w.score).wScore }}分
  2711. </div>
  2712. <div
  2713. class="answerScore"
  2714. @click.stop="openScore(w)"
  2715. v-else-if="courseDetail.userid == userid"
  2716. :class="{
  2717. rightW:
  2718. w.userid == userid ||
  2719. tType == 1 ||
  2720. tType == 4 ||
  2721. w.ateacher == userid,
  2722. }"
  2723. >
  2724. 评分
  2725. </div>
  2726. <img
  2727. class="deleteImg"
  2728. src="../../assets/deleteworks.png"
  2729. v-if="
  2730. w.userid == userid || tType == 1 || tType == 4
  2731. "
  2732. @click.stop="deleteWorks(w.wid)"
  2733. alt
  2734. />
  2735. </div>
  2736. <div class="workImg" v-if="w.type == 12">
  2737. <img
  2738. style="cursor: pointer"
  2739. :src="word2"
  2740. @click="downloadFile(w.works)"
  2741. alt
  2742. />
  2743. <!-- @click="openVideo(w.works)" -->
  2744. <div
  2745. class="answerScore"
  2746. v-if="w.score"
  2747. @click.stop="openScore(w)"
  2748. :class="{
  2749. rightW:
  2750. w.userid == userid ||
  2751. tType == 1 ||
  2752. tType == 4 ||
  2753. w.ateacher == userid,
  2754. }"
  2755. >
  2756. {{ JSON.parse(w.score).wScore }}分
  2757. </div>
  2758. <div
  2759. class="answerScore"
  2760. @click.stop="openScore(w)"
  2761. v-else-if="courseDetail.userid == userid"
  2762. :class="{
  2763. rightW:
  2764. w.userid == userid ||
  2765. tType == 1 ||
  2766. tType == 4 ||
  2767. w.ateacher == userid,
  2768. }"
  2769. >
  2770. 评分
  2771. </div>
  2772. <img
  2773. class="deleteImg"
  2774. src="../../assets/deleteworks.png"
  2775. v-if="
  2776. w.userid == userid || tType == 1 || tType == 4
  2777. "
  2778. @click.stop="deleteWorks(w.wid)"
  2779. alt
  2780. />
  2781. </div>
  2782. <div class="comment" style="min-width: 200px">
  2783. <div class="worksName">
  2784. <div>{{ w.sName }}</div>
  2785. </div>
  2786. <div class="commentList">
  2787. <div class="commentList">
  2788. <div
  2789. class="commentImg"
  2790. @click="
  2791. isLikes(w.wid, userid, 1, null, w.isLikes)
  2792. "
  2793. >
  2794. <img
  2795. :src="w.isLikes == true ? likes : noLikes"
  2796. alt=""
  2797. />
  2798. </div>
  2799. <div>{{ w.likesCount }}</div>
  2800. </div>
  2801. <div class="commentList" style="margin-right: 15px">
  2802. <div
  2803. class="commentImg"
  2804. @click="commentOther(w, toolIndex, wIndex)"
  2805. >
  2806. <img
  2807. src="../../assets/icon/comment/comment.png"
  2808. alt=""
  2809. />
  2810. </div>
  2811. <div>{{ w.commentCount }}</div>
  2812. </div>
  2813. </div>
  2814. </div>
  2815. </div>
  2816. </div>
  2817. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2818. 未提交
  2819. </div>
  2820. <div
  2821. class="noWorksS"
  2822. v-if="noWorksS && noWorksS[toolIndex].length"
  2823. >
  2824. <div
  2825. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2826. :key="sIndex"
  2827. class="noWorksName"
  2828. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2829. >
  2830. {{ s.student }}
  2831. </div>
  2832. </div>
  2833. </div>
  2834. <div
  2835. v-if="
  2836. tType &&
  2837. ((tType == 2 && sIsOpen == true) ||
  2838. tType == 1 ||
  2839. tType == 4) &&
  2840. tool.tool.indexOf(32) != -1
  2841. "
  2842. class="worksBox"
  2843. >
  2844. <div
  2845. class="zuoyeYulan"
  2846. v-if="
  2847. worksStudent.length &&
  2848. worksStudent[toolIndex].length > 0
  2849. "
  2850. >
  2851. <div class="worksTop">
  2852. <div>作业预览</div>
  2853. <div
  2854. class="corOpen"
  2855. @click="contract(toolIndex)"
  2856. v-if="
  2857. (isCloseList[toolIndex].isCloseBoolean) &&
  2858. isCloseList[toolIndex].isClose == 0
  2859. "
  2860. >
  2861. 折叠
  2862. </div>
  2863. <div
  2864. class="corOpen"
  2865. @click="contract(toolIndex)"
  2866. v-if="isCloseList[toolIndex].isClose == 1"
  2867. >
  2868. 展开
  2869. </div>
  2870. </div>
  2871. </div>
  2872. <div
  2873. :id="'tool-' + toolIndex"
  2874. :style="{
  2875. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2876. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2877. }"
  2878. class="worksDetailBox"
  2879. v-if="
  2880. worksStudent.length &&
  2881. worksStudent[toolIndex].length > 0
  2882. "
  2883. >
  2884. <div
  2885. class="works"
  2886. style="
  2887. width: 200px;
  2888. height: 140px;
  2889. margin: 10px 10px 10px 0;
  2890. border-radius: 15px;
  2891. box-shadow: 0 0 6px 1px #dfdada;
  2892. "
  2893. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2894. :key="wIndex"
  2895. :class="w.type == 1 ? 'isTypeOne' : ''"
  2896. >
  2897. <div class="workImg">
  2898. <img
  2899. :src="word2"
  2900. @click="downloadFile(w.works)"
  2901. alt
  2902. />
  2903. <div
  2904. class="answerScore"
  2905. v-if="w.score"
  2906. @click.stop="openScore(w)"
  2907. :class="{
  2908. rightW:
  2909. w.userid == userid ||
  2910. tType == 1 ||
  2911. tType == 4 ||
  2912. w.ateacher == userid,
  2913. }"
  2914. >
  2915. {{ JSON.parse(w.score).wScore }}分
  2916. </div>
  2917. <div
  2918. class="answerScore"
  2919. @click.stop="openScore(w)"
  2920. v-else-if="courseDetail.userid == userid"
  2921. :class="{
  2922. rightW:
  2923. w.userid == userid ||
  2924. tType == 1 ||
  2925. tType == 4 ||
  2926. w.ateacher == userid,
  2927. }"
  2928. >
  2929. 评分
  2930. </div>
  2931. <img
  2932. class="deleteImg"
  2933. src="../../assets/deleteworks.png"
  2934. v-if="
  2935. w.userid == userid || tType == 1 || tType == 4
  2936. "
  2937. @click.stop="deleteWorks(w.wid)"
  2938. alt
  2939. />
  2940. </div>
  2941. <div class="comment" style="min-width: 200px">
  2942. <div class="worksName">
  2943. <div>{{ w.sName }}</div>
  2944. </div>
  2945. <div class="commentList">
  2946. <div class="commentList">
  2947. <div
  2948. class="commentImg"
  2949. @click="
  2950. isLikes(w.wid, userid, 1, null, w.isLikes)
  2951. "
  2952. >
  2953. <img
  2954. :src="w.isLikes == true ? likes : noLikes"
  2955. alt=""
  2956. />
  2957. </div>
  2958. <div>{{ w.likesCount }}</div>
  2959. </div>
  2960. <div class="commentList" style="margin-right: 15px">
  2961. <div
  2962. class="commentImg"
  2963. @click="commentOther(w, toolIndex, wIndex)"
  2964. >
  2965. <img
  2966. src="../../assets/icon/comment/comment.png"
  2967. alt=""
  2968. />
  2969. </div>
  2970. <div>{{ w.commentCount }}</div>
  2971. </div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. </div>
  2976. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2977. 未提交
  2978. </div>
  2979. <div
  2980. class="noWorksS"
  2981. v-if="noWorksS && noWorksS[toolIndex].length"
  2982. >
  2983. <div
  2984. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2985. :key="sIndex"
  2986. class="noWorksName"
  2987. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2988. >
  2989. {{ s.student }}
  2990. </div>
  2991. </div>
  2992. </div>
  2993. <div
  2994. v-if="
  2995. tType &&
  2996. ((tType == 2 && sIsOpen == true) ||
  2997. tType == 1 ||
  2998. tType == 4) &&
  2999. tool.tool.indexOf(57) != -1
  3000. "
  3001. class="worksBox"
  3002. >
  3003. <div
  3004. class="zuoyeYulan"
  3005. v-if="
  3006. worksStudent.length &&
  3007. worksStudent[toolIndex].length > 0
  3008. "
  3009. >
  3010. <div class="worksTop">
  3011. <div>作业预览</div>
  3012. <div
  3013. class="corOpen"
  3014. @click="contract(toolIndex)"
  3015. v-if="
  3016. (isCloseList[toolIndex].isCloseBoolean) &&
  3017. isCloseList[toolIndex].isClose == 0
  3018. "
  3019. >
  3020. 折叠
  3021. </div>
  3022. <div
  3023. class="corOpen"
  3024. @click="contract(toolIndex)"
  3025. v-if="isCloseList[toolIndex].isClose == 1"
  3026. >
  3027. 展开
  3028. </div>
  3029. </div>
  3030. </div>
  3031. <div
  3032. :id="'tool-' + toolIndex"
  3033. :style="{
  3034. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3035. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3036. }"
  3037. class="worksDetailBox"
  3038. v-if="
  3039. worksStudent.length &&
  3040. worksStudent[toolIndex].length > 0
  3041. "
  3042. >
  3043. <div
  3044. class="works"
  3045. style="
  3046. width: 200px;
  3047. height: 140px;
  3048. margin: 10px 10px 10px 0;
  3049. border-radius: 15px;
  3050. box-shadow: 0 0 6px 1px #dfdada;
  3051. "
  3052. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3053. :key="wIndex"
  3054. :class="w.type == 1 ? 'isTypeOne' : ''"
  3055. >
  3056. <div class="workImg">
  3057. <img
  3058. :src="word2"
  3059. @click="downloadFile(w.works)"
  3060. v-if="w.type == 12"
  3061. alt
  3062. />
  3063. <img
  3064. :src="word2"
  3065. @click="
  3066. openCocoPi(57, toolIndex, w.userid, w.sName)
  3067. "
  3068. v-else-if="w.type == 15"
  3069. alt
  3070. />
  3071. <div
  3072. class="answerScore"
  3073. v-if="w.score"
  3074. @click.stop="openScore(w)"
  3075. :class="{
  3076. rightW:
  3077. w.userid == userid ||
  3078. tType == 1 ||
  3079. tType == 4 ||
  3080. w.ateacher == userid,
  3081. }"
  3082. >
  3083. {{ JSON.parse(w.score).wScore }}分
  3084. </div>
  3085. <div
  3086. class="answerScore"
  3087. @click.stop="openScore(w)"
  3088. v-else-if="courseDetail.userid == userid"
  3089. :class="{
  3090. rightW:
  3091. w.userid == userid ||
  3092. tType == 1 ||
  3093. tType == 4 ||
  3094. w.ateacher == userid,
  3095. }"
  3096. >
  3097. 评分
  3098. </div>
  3099. <img
  3100. class="deleteImg"
  3101. src="../../assets/deleteworks.png"
  3102. v-if="
  3103. w.userid == userid || tType == 1 || tType == 4
  3104. "
  3105. @click.stop="deleteWorks(w.wid)"
  3106. alt
  3107. />
  3108. </div>
  3109. <div class="comment" style="min-width: 200px">
  3110. <div class="worksName">
  3111. <div>{{ w.sName }}</div>
  3112. </div>
  3113. <div class="commentList">
  3114. <div class="commentList">
  3115. <div
  3116. class="commentImg"
  3117. @click="
  3118. isLikes(w.wid, userid, 1, null, w.isLikes)
  3119. "
  3120. >
  3121. <img
  3122. :src="w.isLikes == true ? likes : noLikes"
  3123. alt=""
  3124. />
  3125. </div>
  3126. <div>{{ w.likesCount }}</div>
  3127. </div>
  3128. <div class="commentList" style="margin-right: 15px">
  3129. <div
  3130. class="commentImg"
  3131. @click="commentOther(w, toolIndex, wIndex)"
  3132. >
  3133. <img
  3134. src="../../assets/icon/comment/comment.png"
  3135. alt=""
  3136. />
  3137. </div>
  3138. <div>{{ w.commentCount }}</div>
  3139. </div>
  3140. </div>
  3141. </div>
  3142. </div>
  3143. </div>
  3144. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3145. 未提交
  3146. </div>
  3147. <div
  3148. class="noWorksS"
  3149. v-if="noWorksS && noWorksS[toolIndex].length"
  3150. >
  3151. <div
  3152. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3153. :key="sIndex"
  3154. class="noWorksName"
  3155. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3156. >
  3157. {{ s.student }}
  3158. </div>
  3159. </div>
  3160. </div>
  3161. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3162. <div
  3163. class="zuoyeYulan"
  3164. v-if="
  3165. worksStudent.length &&
  3166. worksStudent[toolIndex].length > 0
  3167. "
  3168. >
  3169. <span class="worksTitle">作业预览</span>
  3170. <div
  3171. class="corOpen"
  3172. @click="contract(toolIndex)"
  3173. v-if="
  3174. (isCloseList[toolIndex].isCloseBoolean) &&
  3175. isCloseList[toolIndex].isClose == 0
  3176. "
  3177. >
  3178. 折叠
  3179. </div>
  3180. <div
  3181. class="corOpen"
  3182. @click="contract(toolIndex)"
  3183. v-if="isCloseList[toolIndex].isClose == 1"
  3184. >
  3185. 展开
  3186. </div>
  3187. </div>
  3188. <div
  3189. :id="'tool-' + toolIndex"
  3190. :style="{
  3191. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3192. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3193. }"
  3194. class="worksDetailBox"
  3195. v-if="
  3196. worksStudent.length &&
  3197. worksStudent[toolIndex].length > 0
  3198. "
  3199. >
  3200. <div
  3201. class="works"
  3202. style="
  3203. width: 200px;
  3204. height: 140px;
  3205. margin: 10px 10px 10px 0;
  3206. border-radius: 15px;
  3207. box-shadow: 0 0 6px 1px #dfdada;
  3208. "
  3209. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3210. :key="wIndex"
  3211. :class="w.type == 1 ? 'isTypeOne' : ''"
  3212. >
  3213. <div class="workImg" v-if="w.type == 0">
  3214. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3215. <img
  3216. :src="w.works"
  3217. @click="previewImg(w.works)"
  3218. alt
  3219. />
  3220. <div
  3221. class="answerScore"
  3222. v-if="w.score"
  3223. @click.stop="openScore(w)"
  3224. :class="{
  3225. rightW:
  3226. w.userid == userid ||
  3227. tType == 1 ||
  3228. tType == 4 ||
  3229. w.ateacher == userid,
  3230. }"
  3231. >
  3232. {{ JSON.parse(w.score).wScore }}分
  3233. </div>
  3234. <div
  3235. class="answerScore"
  3236. @click.stop="openScore(w)"
  3237. v-else-if="courseDetail.userid == userid"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid,
  3244. }"
  3245. >
  3246. 评分
  3247. </div>
  3248. <img
  3249. class="deleteImg"
  3250. src="../../assets/deleteworks.png"
  3251. v-if="
  3252. w.userid == userid || tType == 1 || tType == 4
  3253. "
  3254. @click.stop="deleteWorks(w.wid)"
  3255. alt
  3256. />
  3257. </div>
  3258. <div
  3259. class="workImg"
  3260. style="cursor: pointer"
  3261. v-if="w.type == 1"
  3262. >
  3263. <img :src="word" @click="openFile(w.works)" alt />
  3264. <!-- @click="openFile(w.works)" -->
  3265. <div
  3266. class="answerScore"
  3267. v-if="w.score"
  3268. @click.stop="openScore(w)"
  3269. :class="{
  3270. rightW:
  3271. w.userid == userid ||
  3272. tType == 1 ||
  3273. tType == 4 ||
  3274. w.ateacher == userid,
  3275. }"
  3276. >
  3277. {{ JSON.parse(w.score).wScore }}分
  3278. </div>
  3279. <div
  3280. class="answerScore"
  3281. @click.stop="openScore(w)"
  3282. v-else-if="courseDetail.userid == userid"
  3283. :class="{
  3284. rightW:
  3285. w.userid == userid ||
  3286. tType == 1 ||
  3287. tType == 4 ||
  3288. w.ateacher == userid,
  3289. }"
  3290. >
  3291. 评分
  3292. </div>
  3293. <img
  3294. class="deleteImg"
  3295. src="../../assets/deleteworks.png"
  3296. v-if="
  3297. w.userid == userid || tType == 1 || tType == 4
  3298. "
  3299. @click.stop="deleteWorks(w.wid)"
  3300. alt
  3301. />
  3302. </div>
  3303. <div class="workImg" v-if="w.type == 3">
  3304. <img
  3305. style="cursor: pointer"
  3306. :src="video"
  3307. @click="openVideo(w)"
  3308. alt
  3309. />
  3310. <!-- @click="openVideo(w.works)" -->
  3311. <div
  3312. class="answerScore"
  3313. v-if="w.score"
  3314. @click.stop="openScore(w)"
  3315. :class="{
  3316. rightW:
  3317. w.userid == userid ||
  3318. tType == 1 ||
  3319. tType == 4 ||
  3320. w.ateacher == userid,
  3321. }"
  3322. >
  3323. {{ JSON.parse(w.score).wScore }}分
  3324. </div>
  3325. <div
  3326. class="answerScore"
  3327. @click.stop="openScore(w)"
  3328. v-else-if="courseDetail.userid == userid"
  3329. :class="{
  3330. rightW:
  3331. w.userid == userid ||
  3332. tType == 1 ||
  3333. tType == 4 ||
  3334. w.ateacher == userid,
  3335. }"
  3336. >
  3337. 评分
  3338. </div>
  3339. <img
  3340. class="deleteImg"
  3341. src="../../assets/deleteworks.png"
  3342. v-if="
  3343. w.userid == userid || tType == 1 || tType == 4
  3344. "
  3345. @click.stop="deleteWorks(w.wid)"
  3346. alt
  3347. />
  3348. </div>
  3349. <div class="comment" style="min-width: 200px">
  3350. <div class="worksName">
  3351. <div
  3352. style="cursor: pointer"
  3353. @click="
  3354. openSname(w.sName, w.wid, toolIndex, w.userid)
  3355. "
  3356. >
  3357. {{ w.sName }}
  3358. </div>
  3359. </div>
  3360. <div class="commentList">
  3361. <div class="commentList">
  3362. <div
  3363. class="commentImg"
  3364. @click="
  3365. isLikes(w.wid, userid, 1, null, w.isLikes)
  3366. "
  3367. >
  3368. <img
  3369. :src="w.isLikes == true ? likes : noLikes"
  3370. alt=""
  3371. />
  3372. </div>
  3373. <div>{{ w.likesCount }}</div>
  3374. </div>
  3375. <div class="commentList" style="margin-right: 15px">
  3376. <div
  3377. class="commentImg"
  3378. @click="commentOther(w, toolIndex, wIndex)"
  3379. >
  3380. <img
  3381. src="../../assets/icon/comment/comment.png"
  3382. alt=""
  3383. />
  3384. </div>
  3385. <div>{{ w.commentCount }}</div>
  3386. </div>
  3387. </div>
  3388. </div>
  3389. </div>
  3390. </div>
  3391. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3392. 未提交
  3393. </div>
  3394. <div
  3395. class="noWorksS"
  3396. v-if="noWorksS && noWorksS[toolIndex].length"
  3397. >
  3398. <div
  3399. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3400. :key="sIndex"
  3401. class="noWorksName"
  3402. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3403. >
  3404. {{ s.student }}
  3405. </div>
  3406. </div>
  3407. </div>
  3408. <div
  3409. v-if="
  3410. tType &&
  3411. ((tType == 2 && sIsOpen == true) ||
  3412. tType == 1 ||
  3413. tType == 4) &&
  3414. tool.tool.indexOf(4) != -1 &&
  3415. (tool.askJson[0].answer ||
  3416. tool.askJson[0].answer === 0) &&
  3417. checkJson[toolIndex].length
  3418. "
  3419. class="xuan_right_box"
  3420. >
  3421. <div
  3422. class="tool_right_box"
  3423. v-for="(item, index) in tool.askJson"
  3424. :key="index"
  3425. >
  3426. <div style="width: calc(100% - 30px);">
  3427. <el-tooltip
  3428. effect="light"
  3429. :content="index + 1 + '、' + item.askstitle"
  3430. placement="top"
  3431. popper-class="text_tooltip"
  3432. >
  3433. <div
  3434. style="
  3435. width: calc(100% - 130px);
  3436. display: block;
  3437. white-space: nowrap;
  3438. overflow: hidden;
  3439. text-overflow: ellipsis;
  3440. word-break: break-word;
  3441. cursor: pointer;
  3442. "
  3443. >
  3444. {{ index + 1 + "、" + item.askstitle }}
  3445. </div>
  3446. </el-tooltip>
  3447. </div>
  3448. <div class="right_box_xuan">
  3449. <span>正确率</span>
  3450. <span>{{
  3451. (checkJson[toolIndex][index].right
  3452. ? checkJson[toolIndex][index].right
  3453. : 0) + "%"
  3454. }}</span>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. <div
  3459. class="xuan_right_box"
  3460. style="background: unset; padding: 0 10px"
  3461. v-if="
  3462. tType &&
  3463. ((tType == 2 && sIsOpen == true) ||
  3464. tType == 1 ||
  3465. tType == 4) &&
  3466. tool.tool.indexOf(4) != -1
  3467. "
  3468. >
  3469. <AskStatic
  3470. v-if="
  3471. worksStudent.length &&
  3472. worksStudent[toolIndex].length > 0
  3473. "
  3474. :askJSON="tool"
  3475. :checkJson="checkJson[toolIndex]"
  3476. ></AskStatic>
  3477. </div>
  3478. <div
  3479. v-if="
  3480. tType &&
  3481. ((tType == 2 && sIsOpen == true) ||
  3482. tType == 1 ||
  3483. tType == 4) &&
  3484. tool.tool.indexOf(4) != -1
  3485. "
  3486. class="worksBox"
  3487. >
  3488. <div
  3489. class="zuoyeYulan"
  3490. v-if="
  3491. worksStudent.length &&
  3492. worksStudent[toolIndex].length > 0
  3493. "
  3494. >
  3495. <div class="worksTop">
  3496. <div>作业预览</div>
  3497. <div
  3498. class="corOpen"
  3499. @click="contract(toolIndex)"
  3500. v-if="
  3501. (isCloseList[toolIndex].isCloseBoolean) &&
  3502. isCloseList[toolIndex].isClose == 0
  3503. "
  3504. >
  3505. 折叠
  3506. </div>
  3507. <div
  3508. class="corOpen"
  3509. @click="contract(toolIndex)"
  3510. v-if="isCloseList[toolIndex].isClose == 1"
  3511. >
  3512. 展开
  3513. </div>
  3514. </div>
  3515. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3516. </div>
  3517. <div>
  3518. <div
  3519. :id="'tool-' + toolIndex"
  3520. :style="{
  3521. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3522. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3523. }"
  3524. class="worksDetailBox"
  3525. v-if="
  3526. worksStudent.length &&
  3527. worksStudent[toolIndex].length > 0
  3528. "
  3529. >
  3530. <div
  3531. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3532. :key="wIndex"
  3533. class="isWorksName2"
  3534. @click="
  3535. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3536. "
  3537. >
  3538. {{ w.sName }}
  3539. <img
  3540. class="deleteImg deleteImg2"
  3541. src="../../assets/deleteworks.png"
  3542. v-if="
  3543. w.userid == userid || tType == 1 || tType == 4
  3544. "
  3545. @click.stop="deleteWorks(w.wid)"
  3546. alt
  3547. />
  3548. </div>
  3549. <!-- <div class="works" style="
  3550. width: 200px;
  3551. height: 140px;
  3552. border-radius: 10px;
  3553. box-shadow: 0 0 6px 1px #dfdada;
  3554. overflow: hidden;
  3555. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3556. <div class="workImg">
  3557. <img src="../../assets/icon/works/noImg.png" @click="
  3558. openTools(
  3559. 4,
  3560. toolIndex,
  3561. taskCount,
  3562. w.works,
  3563. w.sName
  3564. )
  3565. " alt />
  3566. </div>
  3567. <div class="worksName">
  3568. <div>{{ w.sName }}</div>
  3569. <div>{{ w.time }}</div>
  3570. </div>
  3571. </div> -->
  3572. </div>
  3573. </div>
  3574. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3575. 未提交
  3576. </div>
  3577. <div
  3578. class="noWorksS"
  3579. v-if="noWorksS && noWorksS[toolIndex].length"
  3580. >
  3581. <div
  3582. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3583. :key="sIndex"
  3584. class="noWorksName"
  3585. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3586. >
  3587. {{ s.student }}
  3588. </div>
  3589. </div>
  3590. </div>
  3591. <div
  3592. v-if="
  3593. tType &&
  3594. ((tType == 2 && sIsOpen == true) ||
  3595. tType == 1 ||
  3596. tType == 4) &&
  3597. tool.tool.indexOf(45) != -1 &&
  3598. (tool.testJson.testJson[0].answer ||
  3599. tool.testJson.testJson[0].answer === 0) &&
  3600. checkJson[toolIndex].length
  3601. "
  3602. class="xuan_right_box"
  3603. >
  3604. <div
  3605. class="tool_right_box"
  3606. v-for="(item, index) in tool.testJson.testJson"
  3607. :key="index"
  3608. >
  3609. <div class="right_box_xuan" style="margin-right: 10px">
  3610. <span>正确率</span>
  3611. <span>{{
  3612. (checkJson[toolIndex][index].right
  3613. ? checkJson[toolIndex][index].right
  3614. : 0) + "%"
  3615. }}</span>
  3616. </div>
  3617. <div style="width: calc(100% - 30px);">
  3618. <el-tooltip
  3619. effect="light"
  3620. :content="index + 1 + '、' + item.teststitle"
  3621. placement="top"
  3622. popper-class="text_tooltip"
  3623. >
  3624. <div
  3625. style="
  3626. width: calc(100% - 130px);
  3627. display: block;
  3628. white-space: nowrap;
  3629. overflow: hidden;
  3630. text-overflow: ellipsis;
  3631. word-break: break-word;
  3632. cursor: pointer;
  3633. "
  3634. >
  3635. {{ index + 1 + "、" + item.teststitle }}
  3636. </div>
  3637. </el-tooltip>
  3638. </div>
  3639. </div>
  3640. </div>
  3641. <div
  3642. class="xuan_right_box"
  3643. style="background: unset; padding: 0 10px; width: 91.5%"
  3644. v-if="
  3645. tType &&
  3646. ((tType == 2 && sIsOpen == true) ||
  3647. tType == 1 ||
  3648. tType == 4) &&
  3649. tool.tool.indexOf(45) != -1
  3650. "
  3651. >
  3652. <AskStatic2
  3653. v-if="
  3654. worksStudent.length &&
  3655. worksStudent[toolIndex].length > 0
  3656. "
  3657. :askJSON="tool"
  3658. :checkJson="checkJson[toolIndex]"
  3659. ></AskStatic2>
  3660. </div>
  3661. <div
  3662. v-if="
  3663. tType &&
  3664. ((tType == 2 && sIsOpen == true) ||
  3665. tType == 1 ||
  3666. tType == 4) &&
  3667. tool.tool.indexOf(45) != -1
  3668. "
  3669. class="worksBox"
  3670. >
  3671. <div
  3672. class="zuoyeYulan"
  3673. v-if="
  3674. worksStudent.length &&
  3675. worksStudent[toolIndex].length > 0
  3676. "
  3677. >
  3678. <div class="worksTop">
  3679. <div>作业预览</div>
  3680. <div
  3681. class="corOpen"
  3682. @click="contract(toolIndex)"
  3683. v-if="
  3684. (isCloseList[toolIndex].isCloseBoolean) &&
  3685. isCloseList[toolIndex].isClose == 0
  3686. "
  3687. >
  3688. 折叠
  3689. </div>
  3690. <div
  3691. class="corOpen"
  3692. @click="contract(toolIndex)"
  3693. v-if="isCloseList[toolIndex].isClose == 1"
  3694. >
  3695. 展开
  3696. </div>
  3697. </div>
  3698. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3699. </div>
  3700. <div>
  3701. <div
  3702. :id="'tool-' + toolIndex"
  3703. :style="{
  3704. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3705. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3706. }"
  3707. class="worksDetailBox"
  3708. v-if="
  3709. worksStudent.length &&
  3710. worksStudent[toolIndex].length > 0
  3711. "
  3712. >
  3713. <div
  3714. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3715. :key="wIndex"
  3716. class="isWorksName2"
  3717. @click="
  3718. openTools(
  3719. 45,
  3720. toolIndex,
  3721. taskCount,
  3722. w.works,
  3723. w.sName
  3724. )
  3725. "
  3726. >
  3727. {{ w.sName }}
  3728. <img
  3729. class="deleteImg deleteImg2"
  3730. src="../../assets/deleteworks.png"
  3731. v-if="
  3732. w.userid == userid || tType == 1 || tType == 4
  3733. "
  3734. @click.stop="deleteWorks(w.wid)"
  3735. alt
  3736. />
  3737. </div>
  3738. </div>
  3739. </div>
  3740. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3741. 未提交
  3742. </div>
  3743. <div
  3744. class="noWorksS"
  3745. v-if="noWorksS && noWorksS[toolIndex].length"
  3746. >
  3747. <div
  3748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3749. :key="sIndex"
  3750. class="noWorksName"
  3751. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3752. >
  3753. {{ s.student }}
  3754. </div>
  3755. </div>
  3756. </div>
  3757. <div
  3758. v-if="
  3759. tType &&
  3760. ((tType == 2 && sIsOpen == true) ||
  3761. tType == 1 ||
  3762. tType == 4) &&
  3763. tool.tool.indexOf(69) != -1
  3764. "
  3765. class="worksBox"
  3766. >
  3767. <div
  3768. class="zuoyeYulan"
  3769. v-if="
  3770. worksStudent.length &&
  3771. worksStudent[toolIndex].length > 0
  3772. "
  3773. >
  3774. <div class="worksTop">
  3775. <div>作业预览</div>
  3776. <div
  3777. class="corOpen"
  3778. @click="contract(toolIndex)"
  3779. v-if="
  3780. (isCloseList[toolIndex].isCloseBoolean) &&
  3781. isCloseList[toolIndex].isClose == 0
  3782. "
  3783. >
  3784. 折叠
  3785. </div>
  3786. <div
  3787. class="corOpen"
  3788. @click="contract(toolIndex)"
  3789. v-if="isCloseList[toolIndex].isClose == 1"
  3790. >
  3791. 展开
  3792. </div>
  3793. </div>
  3794. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3795. </div>
  3796. <div>
  3797. <div
  3798. :id="'tool-' + toolIndex"
  3799. :style="{
  3800. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3801. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3802. }"
  3803. class="worksDetailBox"
  3804. v-if="
  3805. worksStudent.length &&
  3806. worksStudent[toolIndex].length > 0
  3807. "
  3808. >
  3809. <div
  3810. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3811. :key="wIndex"
  3812. class="isWorksName2"
  3813. style="width: 160px;height: 65px;line-height: 65px;"
  3814. @click="
  3815. openTools(
  3816. 69,
  3817. toolIndex,
  3818. taskCount,
  3819. w.works,
  3820. w.sName,
  3821. w.wid
  3822. )
  3823. "
  3824. >
  3825. {{ w.sName }}
  3826. <img
  3827. class="deleteImg1"
  3828. src="../../assets/evaEnglish.png"
  3829. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3830. alt
  3831. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  3832. />
  3833. <img
  3834. class="deleteImg deleteImg2"
  3835. src="../../assets/deleteworks.png"
  3836. v-if="
  3837. w.userid == userid || tType == 1 || tType == 4
  3838. "
  3839. @click.stop="deleteWorks(w.wid)"
  3840. alt
  3841. />
  3842. </div>
  3843. </div>
  3844. </div>
  3845. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3846. 未提交
  3847. </div>
  3848. <div
  3849. class="noWorksS"
  3850. v-if="noWorksS && noWorksS[toolIndex].length"
  3851. >
  3852. <div
  3853. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3854. :key="sIndex"
  3855. class="noWorksName"
  3856. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3857. >
  3858. {{ s.student }}
  3859. </div>
  3860. </div>
  3861. </div>
  3862. <div
  3863. v-if="
  3864. tType &&
  3865. ((tType == 2 && sIsOpen == true) ||
  3866. tType == 1 ||
  3867. tType == 4) &&
  3868. tool.tool.indexOf(15) != -1
  3869. "
  3870. class="worksBox"
  3871. >
  3872. <div
  3873. class="zuoyeYulan"
  3874. v-if="
  3875. (worksStudent.length &&
  3876. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  3877. "
  3878. >
  3879. <div class="worksTop">
  3880. <div>作业预览</div>
  3881. <div
  3882. class="corOpen"
  3883. @click="contract(toolIndex)"
  3884. v-if="
  3885. (isCloseList[toolIndex].isCloseBoolean) &&
  3886. isCloseList[toolIndex].isClose == 0
  3887. "
  3888. >
  3889. 折叠
  3890. </div>
  3891. <div
  3892. class="corOpen"
  3893. @click="contract(toolIndex)"
  3894. v-if="isCloseList[toolIndex].isClose == 1"
  3895. >
  3896. 展开
  3897. </div>
  3898. </div>
  3899. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3900. </div>
  3901. <div
  3902. class="group_workBox"
  3903. v-for="(g, gindex) in courseGroup.group"
  3904. :key="gindex"
  3905. >
  3906. <div class="group_box">
  3907. <div class="group_title">
  3908. <el-tooltip
  3909. class="item"
  3910. effect="light"
  3911. :content="g.name"
  3912. placement="top"
  3913. >
  3914. <div class="group_name">{{ g.name }}</div>
  3915. </el-tooltip>
  3916. </div>
  3917. <div
  3918. class="group_work"
  3919. v-if="
  3920. g.works &&
  3921. g.works.length &&
  3922. g.works[toolIndex].length
  3923. "
  3924. >
  3925. <div
  3926. class="works"
  3927. v-for="(w, wIndex) in g.works[toolIndex]"
  3928. :key="wIndex"
  3929. >
  3930. <div
  3931. class="workImg"
  3932. style="
  3933. border-radius: 15px;
  3934. box-shadow: #eee 0px 0px 5px 5px;
  3935. "
  3936. >
  3937. <div
  3938. class="answerBg"
  3939. style="border-radius: 15px 15px 0 0"
  3940. @click="
  3941. commentOther(w, toolIndex, wIndex, null, g.id)
  3942. "
  3943. >
  3944. <div class="answerContent">
  3945. {{ JSON.parse(w.works)[0].answer }}
  3946. </div>
  3947. <div
  3948. class="answerScore"
  3949. v-if="w.score"
  3950. @click.stop="openScore(w)"
  3951. :class="{
  3952. rightW:
  3953. w.userid == userid ||
  3954. tType == 1 ||
  3955. tType == 4,
  3956. }"
  3957. >
  3958. {{ JSON.parse(w.score).wScore }}分
  3959. </div>
  3960. <div
  3961. class="answerScore"
  3962. @click.stop="openScore(w)"
  3963. v-else-if="courseDetail.userid == userid"
  3964. :class="{
  3965. rightW:
  3966. w.userid == userid ||
  3967. tType == 1 ||
  3968. tType == 4,
  3969. }"
  3970. >
  3971. 评分
  3972. </div>
  3973. <img
  3974. class="deleteImg"
  3975. src="../../assets/deleteworks.png"
  3976. v-if="
  3977. w.userid == userid ||
  3978. tType == 1 ||
  3979. tType == 4
  3980. "
  3981. @click.stop="deleteWorks(w.wid)"
  3982. alt
  3983. />
  3984. </div>
  3985. <div class="comment">
  3986. <div class="worksName">
  3987. <div>{{ w.sName }}</div>
  3988. </div>
  3989. <div class="commentList">
  3990. <div
  3991. class="commentImg"
  3992. @click="
  3993. isLikes(w.wid, userid, 1, null, w.isLikes)
  3994. "
  3995. >
  3996. <img
  3997. :src="w.isLikes == true ? likes : noLikes"
  3998. alt=""
  3999. />
  4000. </div>
  4001. <div>{{ w.likesCount }}</div>
  4002. </div>
  4003. <div
  4004. class="commentList"
  4005. style="margin-right: 15px"
  4006. >
  4007. <div
  4008. class="commentImg"
  4009. @click="
  4010. commentOther(
  4011. w,
  4012. toolIndex,
  4013. wIndex,
  4014. null,
  4015. g.id
  4016. )
  4017. "
  4018. >
  4019. <img
  4020. src="../../assets/icon/comment/comment.png"
  4021. alt=""
  4022. />
  4023. </div>
  4024. <div>{{ w.commentCount }}</div>
  4025. </div>
  4026. </div>
  4027. </div>
  4028. </div>
  4029. </div>
  4030. <div class="group_work" v-else>暂无提交作业</div>
  4031. </div>
  4032. </div>
  4033. <div
  4034. :id="'tool-' + toolIndex"
  4035. :style="{
  4036. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4037. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4038. }"
  4039. class="worksDetailBox"
  4040. v-if="
  4041. worksStudent.length &&
  4042. worksStudent[toolIndex].length > 0
  4043. "
  4044. >
  4045. <div
  4046. class="works"
  4047. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4048. :key="wIndex"
  4049. >
  4050. <div
  4051. class="workImg"
  4052. style="
  4053. border-radius: 15px;
  4054. box-shadow: #eee 0px 0px 5px 5px;
  4055. "
  4056. >
  4057. <!-- <img
  4058. src="../../assets/icon/works/noImg.png"
  4059. @click="openTools(15, toolIndex, taskCount, w.works)"
  4060. alt=""
  4061. />-->
  4062. <div
  4063. class="answerBg"
  4064. style="border-radius: 15px 15px 0 0"
  4065. @click="commentOther(w, toolIndex, wIndex)"
  4066. >
  4067. <!-- <div>{{ w.sName }}</div> -->
  4068. <div class="answerContent">
  4069. {{ JSON.parse(w.works)[0].answer }}
  4070. </div>
  4071. <div
  4072. class="answerScore"
  4073. v-if="w.score"
  4074. @click.stop="openScore(w)"
  4075. :class="{
  4076. rightW:
  4077. w.userid == userid ||
  4078. tType == 1 ||
  4079. tType == 4,
  4080. }"
  4081. >
  4082. {{ JSON.parse(w.score).wScore }}分
  4083. </div>
  4084. <div
  4085. class="answerScore"
  4086. @click.stop="openScore(w)"
  4087. v-else-if="courseDetail.userid == userid"
  4088. :class="{
  4089. rightW:
  4090. w.userid == userid ||
  4091. tType == 1 ||
  4092. tType == 4,
  4093. }"
  4094. >
  4095. 评分
  4096. </div>
  4097. <img
  4098. class="deleteImg"
  4099. src="../../assets/deleteworks.png"
  4100. v-if="
  4101. w.userid == userid || tType == 1 || tType == 4
  4102. "
  4103. @click.stop="deleteWorks(w.wid)"
  4104. alt
  4105. />
  4106. </div>
  4107. <div class="comment">
  4108. <div class="worksName">
  4109. <div>{{ w.sName }}</div>
  4110. </div>
  4111. <div class="commentList">
  4112. <div
  4113. class="commentImg"
  4114. @click="
  4115. isLikes(w.wid, userid, 1, null, w.isLikes)
  4116. "
  4117. >
  4118. <img
  4119. :src="w.isLikes == true ? likes : noLikes"
  4120. alt=""
  4121. />
  4122. </div>
  4123. <div>{{ w.likesCount }}</div>
  4124. </div>
  4125. <div class="commentList" style="margin-right: 15px">
  4126. <div
  4127. class="commentImg"
  4128. @click="commentOther(w, toolIndex, wIndex)"
  4129. >
  4130. <img
  4131. src="../../assets/icon/comment/comment.png"
  4132. alt=""
  4133. />
  4134. </div>
  4135. <div>{{ w.commentCount }}</div>
  4136. </div>
  4137. </div>
  4138. </div>
  4139. </div>
  4140. </div>
  4141. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4142. 未提交
  4143. </div>
  4144. <div
  4145. class="noWorksS"
  4146. v-if="noWorksS && noWorksS[toolIndex].length"
  4147. >
  4148. <div
  4149. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4150. :key="sIndex"
  4151. class="noWorksName"
  4152. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4153. >
  4154. {{ s.student }}
  4155. </div>
  4156. </div>
  4157. </div>
  4158. <div
  4159. v-if="
  4160. tType &&
  4161. ((tType == 2 && sIsOpen == true) ||
  4162. tType == 1 ||
  4163. tType == 4) &&
  4164. tool.tool.indexOf(1) != -1
  4165. "
  4166. class="worksBox"
  4167. >
  4168. <div
  4169. class="zuoyeYulan"
  4170. v-if="
  4171. (worksStudent.length &&
  4172. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4173. "
  4174. >
  4175. <div class="worksTop">
  4176. <div>作业预览</div>
  4177. <div
  4178. class="corOpen"
  4179. @click="contract(toolIndex)"
  4180. v-if="
  4181. (isCloseList[toolIndex].isCloseBoolean) &&
  4182. isCloseList[toolIndex].isClose == 0
  4183. "
  4184. >
  4185. 折叠
  4186. </div>
  4187. <div
  4188. class="corOpen"
  4189. @click="contract(toolIndex)"
  4190. v-if="isCloseList[toolIndex].isClose == 1"
  4191. >
  4192. 展开
  4193. </div>
  4194. </div>
  4195. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4196. </div>
  4197. <div
  4198. class="group_workBox"
  4199. v-for="(g, gindex) in courseGroup.group"
  4200. :key="gindex"
  4201. >
  4202. <div class="group_box">
  4203. <div class="group_title">
  4204. <el-tooltip
  4205. class="item"
  4206. effect="light"
  4207. :content="g.name"
  4208. placement="top"
  4209. >
  4210. <div class="group_name">{{ g.name }}</div>
  4211. </el-tooltip>
  4212. </div>
  4213. <div
  4214. class="group_work"
  4215. v-if="
  4216. g.works &&
  4217. g.works.length &&
  4218. g.works[toolIndex].length
  4219. "
  4220. >
  4221. <div
  4222. class="works"
  4223. style="
  4224. width: 200px;
  4225. height: 140px;
  4226. margin: 10px 10px 10px 0;
  4227. border-radius: 15px;
  4228. box-shadow: 0 0 6px 1px #dfdada;
  4229. "
  4230. v-for="(w, wIndex) in g.works[toolIndex]"
  4231. :key="wIndex"
  4232. :class="w.type == 1 ? 'isTypeOne' : ''"
  4233. >
  4234. <div class="workImg">
  4235. <img
  4236. :src="w.works"
  4237. @click="previewImg(w.works)"
  4238. alt
  4239. />
  4240. <div
  4241. class="answerScore"
  4242. v-if="w.score"
  4243. @click.stop="openScore(w)"
  4244. :class="{
  4245. rightW:
  4246. w.userid == userid ||
  4247. tType == 1 ||
  4248. tType == 4,
  4249. }"
  4250. >
  4251. {{ JSON.parse(w.score).wScore }}分
  4252. </div>
  4253. <div
  4254. class="answerScore"
  4255. @click.stop="openScore(w)"
  4256. v-else-if="courseDetail.userid == userid"
  4257. :class="{
  4258. rightW:
  4259. w.userid == userid ||
  4260. tType == 1 ||
  4261. tType == 4,
  4262. }"
  4263. >
  4264. 评分
  4265. </div>
  4266. <img
  4267. class="deleteImg"
  4268. src="../../assets/deleteworks.png"
  4269. v-if="
  4270. w.userid == userid || tType == 1 || tType == 4
  4271. "
  4272. @click.stop="deleteWorks(w.wid)"
  4273. alt
  4274. />
  4275. </div>
  4276. <div class="comment" style="min-width: 200px">
  4277. <div class="worksName">
  4278. <div>{{ w.sName }}</div>
  4279. </div>
  4280. <div class="commentList">
  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
  4296. class="commentList"
  4297. style="margin-right: 15px"
  4298. >
  4299. <div
  4300. class="commentImg"
  4301. @click="
  4302. commentOther(
  4303. w,
  4304. toolIndex,
  4305. wIndex,
  4306. null,
  4307. g.id
  4308. )
  4309. "
  4310. >
  4311. <img
  4312. src="../../assets/icon/comment/comment.png"
  4313. alt=""
  4314. />
  4315. </div>
  4316. <div>{{ w.commentCount }}</div>
  4317. </div>
  4318. </div>
  4319. </div>
  4320. </div>
  4321. </div>
  4322. <div class="group_work" v-else>暂无提交作业</div>
  4323. </div>
  4324. </div>
  4325. <div
  4326. :id="'tool-' + toolIndex"
  4327. :style="{
  4328. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4329. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4330. }"
  4331. class="worksDetailBox"
  4332. v-if="
  4333. worksStudent.length &&
  4334. worksStudent[toolIndex].length > 0
  4335. "
  4336. >
  4337. <div
  4338. class="works"
  4339. style="
  4340. width: 200px;
  4341. height: 140px;
  4342. margin: 10px 10px 10px 0;
  4343. border-radius: 15px;
  4344. box-shadow: 0 0 6px 1px #dfdada;
  4345. "
  4346. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4347. :key="wIndex"
  4348. >
  4349. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4350. <div class="workImg">
  4351. <img
  4352. :src="w.works"
  4353. @click="previewImg(w.works)"
  4354. alt
  4355. />
  4356. <div
  4357. class="answerScore"
  4358. v-if="w.score"
  4359. @click.stop="openScore(w)"
  4360. :class="{
  4361. rightW:
  4362. w.userid == userid || tType == 1 || tType == 4,
  4363. }"
  4364. >
  4365. {{ JSON.parse(w.score).wScore }}分
  4366. </div>
  4367. <div
  4368. class="answerScore"
  4369. @click.stop="openScore(w)"
  4370. v-else-if="courseDetail.userid == userid"
  4371. :class="{
  4372. rightW:
  4373. w.userid == userid || tType == 1 || tType == 4,
  4374. }"
  4375. >
  4376. 评分
  4377. </div>
  4378. <img
  4379. class="deleteImg"
  4380. src="../../assets/deleteworks.png"
  4381. v-if="
  4382. w.userid == userid || tType == 1 || tType == 4
  4383. "
  4384. @click.stop="deleteWorks(w.wid)"
  4385. alt
  4386. />
  4387. </div>
  4388. <div class="comment" style="min-width: 200px">
  4389. <div class="worksName">
  4390. <div>{{ w.sName }}</div>
  4391. </div>
  4392. <div class="commentList">
  4393. <div class="commentList">
  4394. <div
  4395. class="commentImg"
  4396. @click="
  4397. isLikes(w.wid, userid, 1, null, w.isLikes)
  4398. "
  4399. >
  4400. <img
  4401. :src="w.isLikes == true ? likes : noLikes"
  4402. alt=""
  4403. />
  4404. </div>
  4405. <div>{{ w.likesCount }}</div>
  4406. </div>
  4407. <div class="commentList" style="margin-right: 15px">
  4408. <div
  4409. class="commentImg"
  4410. @click="commentOther(w, toolIndex, wIndex)"
  4411. >
  4412. <img
  4413. src="../../assets/icon/comment/comment.png"
  4414. alt=""
  4415. />
  4416. </div>
  4417. <div>{{ w.commentCount }}</div>
  4418. </div>
  4419. </div>
  4420. </div>
  4421. </div>
  4422. </div>
  4423. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4424. 未提交
  4425. </div>
  4426. <div
  4427. class="noWorksS"
  4428. v-if="noWorksS && noWorksS[toolIndex].length"
  4429. >
  4430. <div
  4431. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4432. :key="sIndex"
  4433. class="noWorksName"
  4434. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4435. >
  4436. {{ s.student }}
  4437. </div>
  4438. </div>
  4439. </div>
  4440. <div
  4441. v-if="
  4442. tType &&
  4443. ((tType == 2 && sIsOpen == true) ||
  4444. tType == 1 ||
  4445. tType == 4) &&
  4446. tool.tool.indexOf(3) != -1
  4447. "
  4448. class="worksBox"
  4449. >
  4450. <div
  4451. class="zuoyeYulan"
  4452. v-if="
  4453. (worksStudent.length &&
  4454. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4455. "
  4456. >
  4457. <div class="worksTop">
  4458. <div>作业预览</div>
  4459. <div
  4460. class="corOpen"
  4461. @click="contract(toolIndex)"
  4462. v-if="
  4463. (isCloseList[toolIndex].isCloseBoolean) &&
  4464. isCloseList[toolIndex].isClose == 0
  4465. "
  4466. >
  4467. 折叠
  4468. </div>
  4469. <div
  4470. class="corOpen"
  4471. @click="contract(toolIndex)"
  4472. v-if="isCloseList[toolIndex].isClose == 1"
  4473. >
  4474. 展开
  4475. </div>
  4476. </div>
  4477. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4478. </div>
  4479. <div
  4480. class="group_workBox"
  4481. v-for="(g, gindex) in courseGroup.group"
  4482. :key="gindex"
  4483. >
  4484. <div class="group_box">
  4485. <div class="group_title">
  4486. <el-tooltip
  4487. class="item"
  4488. effect="light"
  4489. :content="g.name"
  4490. placement="top"
  4491. >
  4492. <div class="group_name">{{ g.name }}</div>
  4493. </el-tooltip>
  4494. </div>
  4495. <div
  4496. class="group_work"
  4497. v-if="
  4498. g.works &&
  4499. g.works.length &&
  4500. g.works[toolIndex].length
  4501. "
  4502. >
  4503. <div
  4504. class="works"
  4505. style="
  4506. width: 200px;
  4507. height: 140px;
  4508. margin: 10px 10px 10px 0;
  4509. border-radius: 15px;
  4510. box-shadow: 0 0 6px 1px #dfdada;
  4511. "
  4512. v-for="(w, wIndex) in g.works[toolIndex]"
  4513. :key="wIndex"
  4514. :class="w.type == 1 ? 'isTypeOne' : ''"
  4515. >
  4516. <div class="workImg">
  4517. <img
  4518. :src="w.works"
  4519. @click="previewImg(w.works)"
  4520. alt
  4521. />
  4522. <div
  4523. class="answerScore"
  4524. v-if="w.score"
  4525. @click.stop="openScore(w)"
  4526. :class="{
  4527. rightW:
  4528. w.userid == userid ||
  4529. tType == 1 ||
  4530. tType == 4,
  4531. }"
  4532. >
  4533. {{ JSON.parse(w.score).wScore }}分
  4534. </div>
  4535. <div
  4536. class="answerScore"
  4537. @click.stop="openScore(w)"
  4538. v-else-if="courseDetail.userid == userid"
  4539. :class="{
  4540. rightW:
  4541. w.userid == userid ||
  4542. tType == 1 ||
  4543. tType == 4,
  4544. }"
  4545. >
  4546. 评分
  4547. </div>
  4548. <img
  4549. class="deleteImg"
  4550. src="../../assets/deleteworks.png"
  4551. v-if="
  4552. w.userid == userid || tType == 1 || tType == 4
  4553. "
  4554. @click.stop="deleteWorks(w.wid)"
  4555. alt
  4556. />
  4557. </div>
  4558. <div class="comment" style="min-width: 200px">
  4559. <div class="worksName">
  4560. <div>{{ w.sName }}</div>
  4561. </div>
  4562. <div class="commentList">
  4563. <div class="commentList">
  4564. <div
  4565. class="commentImg"
  4566. @click="
  4567. isLikes(w.wid, userid, 1, null, w.isLikes)
  4568. "
  4569. >
  4570. <img
  4571. :src="w.isLikes == true ? likes : noLikes"
  4572. alt=""
  4573. />
  4574. </div>
  4575. <div>{{ w.likesCount }}</div>
  4576. </div>
  4577. <div
  4578. class="commentList"
  4579. style="margin-right: 15px"
  4580. >
  4581. <div
  4582. class="commentImg"
  4583. @click="
  4584. commentOther(
  4585. w,
  4586. toolIndex,
  4587. wIndex,
  4588. null,
  4589. g.id
  4590. )
  4591. "
  4592. >
  4593. <img
  4594. src="../../assets/icon/comment/comment.png"
  4595. alt=""
  4596. />
  4597. </div>
  4598. <div>{{ w.commentCount }}</div>
  4599. </div>
  4600. </div>
  4601. </div>
  4602. </div>
  4603. </div>
  4604. <div class="group_work" v-else>暂无提交作业</div>
  4605. </div>
  4606. </div>
  4607. <div
  4608. :id="'tool-' + toolIndex"
  4609. :style="{
  4610. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4611. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4612. }"
  4613. class="worksDetailBox"
  4614. v-if="
  4615. worksStudent.length &&
  4616. worksStudent[toolIndex].length > 0
  4617. "
  4618. >
  4619. <div
  4620. class="works"
  4621. style="
  4622. width: 200px;
  4623. height: 140px;
  4624. margin: 10px 10px 10px 0;
  4625. border-radius: 15px;
  4626. box-shadow: 0 0 6px 1px #dfdada;
  4627. "
  4628. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4629. :key="wIndex"
  4630. >
  4631. <!-- @click="previewImg(w.works)" -->
  4632. <div class="workImg">
  4633. <img
  4634. :src="w.works"
  4635. @click="previewImg(w.works)"
  4636. alt
  4637. />
  4638. <div
  4639. class="answerScore"
  4640. v-if="w.score"
  4641. @click.stop="openScore(w)"
  4642. :class="{
  4643. rightW:
  4644. w.userid == userid || tType == 1 || tType == 4,
  4645. }"
  4646. >
  4647. {{ JSON.parse(w.score).wScore }}分
  4648. </div>
  4649. <div
  4650. class="answerScore"
  4651. @click.stop="openScore(w)"
  4652. v-else-if="courseDetail.userid == userid"
  4653. :class="{
  4654. rightW:
  4655. w.userid == userid || tType == 1 || tType == 4,
  4656. }"
  4657. >
  4658. 评分
  4659. </div>
  4660. <img
  4661. class="deleteImg"
  4662. src="../../assets/deleteworks.png"
  4663. v-if="
  4664. w.userid == userid || tType == 1 || tType == 4
  4665. "
  4666. @click.stop="deleteWorks(w.wid)"
  4667. alt
  4668. />
  4669. </div>
  4670. <div class="comment" style="min-width: 200px">
  4671. <div class="worksName">
  4672. <div>{{ w.sName }}</div>
  4673. </div>
  4674. <div class="commentList">
  4675. <div class="commentList">
  4676. <div
  4677. class="commentImg"
  4678. @click="
  4679. isLikes(w.wid, userid, 1, null, w.isLikes)
  4680. "
  4681. >
  4682. <img
  4683. :src="w.isLikes == true ? likes : noLikes"
  4684. alt=""
  4685. />
  4686. </div>
  4687. <div>{{ w.likesCount }}</div>
  4688. </div>
  4689. <div class="commentList" style="margin-right: 15px">
  4690. <div
  4691. class="commentImg"
  4692. @click="commentOther(w, toolIndex, wIndex)"
  4693. >
  4694. <img
  4695. src="../../assets/icon/comment/comment.png"
  4696. alt=""
  4697. />
  4698. </div>
  4699. <div>{{ w.commentCount }}</div>
  4700. </div>
  4701. </div>
  4702. </div>
  4703. </div>
  4704. </div>
  4705. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4706. 未提交
  4707. </div>
  4708. <div
  4709. class="noWorksS"
  4710. v-if="noWorksS && noWorksS[toolIndex].length"
  4711. >
  4712. <div
  4713. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4714. :key="sIndex"
  4715. class="noWorksName"
  4716. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4717. >
  4718. {{ s.student }}
  4719. </div>
  4720. </div>
  4721. </div>
  4722. <div
  4723. v-if="
  4724. tType &&
  4725. ((tType == 2 && sIsOpen == true) ||
  4726. tType == 1 ||
  4727. tType == 4) &&
  4728. tool.tool.indexOf(6) != -1
  4729. "
  4730. class="worksBox"
  4731. >
  4732. <div
  4733. class="zuoyeYulan"
  4734. v-if="
  4735. (worksStudent.length &&
  4736. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4737. "
  4738. >
  4739. <div class="worksTop">
  4740. <div>作业预览</div>
  4741. <div
  4742. class="corOpen"
  4743. @click="contract(toolIndex)"
  4744. v-if="
  4745. (isCloseList[toolIndex].isCloseBoolean) &&
  4746. isCloseList[toolIndex].isClose == 0
  4747. "
  4748. >
  4749. 折叠
  4750. </div>
  4751. <div
  4752. class="corOpen"
  4753. @click="contract(toolIndex)"
  4754. v-if="isCloseList[toolIndex].isClose == 1"
  4755. >
  4756. 展开
  4757. </div>
  4758. </div>
  4759. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4760. </div>
  4761. <div
  4762. class="group_workBox"
  4763. v-for="(g, gindex) in courseGroup.group"
  4764. :key="gindex"
  4765. >
  4766. <div class="group_box">
  4767. <div class="group_title">
  4768. <el-tooltip
  4769. class="item"
  4770. effect="light"
  4771. :content="g.name"
  4772. placement="top"
  4773. >
  4774. <div class="group_name">{{ g.name }}</div>
  4775. </el-tooltip>
  4776. </div>
  4777. <div
  4778. class="group_work"
  4779. v-if="
  4780. g.works &&
  4781. g.works.length &&
  4782. g.works[toolIndex].length
  4783. "
  4784. >
  4785. <div
  4786. class="works"
  4787. style="
  4788. width: 200px;
  4789. height: 140px;
  4790. margin: 10px 10px 10px 0;
  4791. border-radius: 15px;
  4792. box-shadow: 0 0 6px 1px #dfdada;
  4793. "
  4794. v-for="(w, wIndex) in g.works[toolIndex]"
  4795. :key="wIndex"
  4796. :class="w.type == 1 ? 'isTypeOne' : ''"
  4797. >
  4798. <div class="workImg">
  4799. <img
  4800. :src="w.works"
  4801. @click="previewImg(w.works)"
  4802. alt
  4803. />
  4804. <div
  4805. class="answerScore"
  4806. v-if="w.score"
  4807. @click.stop="openScore(w)"
  4808. :class="{
  4809. rightW:
  4810. w.userid == userid ||
  4811. tType == 1 ||
  4812. tType == 4,
  4813. }"
  4814. >
  4815. {{ JSON.parse(w.score).wScore }}分
  4816. </div>
  4817. <div
  4818. class="answerScore"
  4819. @click.stop="openScore(w)"
  4820. v-else-if="courseDetail.userid == userid"
  4821. :class="{
  4822. rightW:
  4823. w.userid == userid ||
  4824. tType == 1 ||
  4825. tType == 4,
  4826. }"
  4827. >
  4828. 评分
  4829. </div>
  4830. <img
  4831. class="deleteImg"
  4832. src="../../assets/deleteworks.png"
  4833. v-if="
  4834. w.userid == userid || tType == 1 || tType == 4
  4835. "
  4836. @click.stop="deleteWorks(w.wid)"
  4837. alt
  4838. />
  4839. </div>
  4840. <div class="comment" style="min-width: 200px">
  4841. <div class="worksName">
  4842. <div>{{ w.sName }}</div>
  4843. </div>
  4844. <div class="commentList">
  4845. <div class="commentList">
  4846. <div
  4847. class="commentImg"
  4848. @click="
  4849. isLikes(w.wid, userid, 1, null, w.isLikes)
  4850. "
  4851. >
  4852. <img
  4853. :src="w.isLikes == true ? likes : noLikes"
  4854. alt=""
  4855. />
  4856. </div>
  4857. <div>{{ w.likesCount }}</div>
  4858. </div>
  4859. <div
  4860. class="commentList"
  4861. style="margin-right: 15px"
  4862. >
  4863. <div
  4864. class="commentImg"
  4865. @click="
  4866. commentOther(
  4867. w,
  4868. toolIndex,
  4869. wIndex,
  4870. null,
  4871. g.id
  4872. )
  4873. "
  4874. >
  4875. <img
  4876. src="../../assets/icon/comment/comment.png"
  4877. alt=""
  4878. />
  4879. </div>
  4880. <div>{{ w.commentCount }}</div>
  4881. </div>
  4882. </div>
  4883. </div>
  4884. </div>
  4885. </div>
  4886. <div class="group_work" v-else>暂无提交作业</div>
  4887. </div>
  4888. </div>
  4889. <div
  4890. :id="'tool-' + toolIndex"
  4891. :style="{
  4892. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4893. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4894. }"
  4895. class="worksDetailBox"
  4896. v-if="
  4897. worksStudent.length &&
  4898. worksStudent[toolIndex].length > 0
  4899. "
  4900. >
  4901. <div
  4902. class="works"
  4903. style="
  4904. width: 200px;
  4905. height: 140px;
  4906. margin: 10px 10px 10px 0;
  4907. border-radius: 15px;
  4908. box-shadow: 0 0 6px 1px #dfdada;
  4909. "
  4910. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4911. :key="wIndex"
  4912. >
  4913. <!-- @click="previewImg(w.works)" -->
  4914. <div class="workImg">
  4915. <img
  4916. :src="w.works"
  4917. @click="previewImg(w.works)"
  4918. alt
  4919. />
  4920. <div
  4921. class="answerScore"
  4922. v-if="w.score"
  4923. @click.stop="openScore(w)"
  4924. :class="{
  4925. rightW:
  4926. w.userid == userid || tType == 1 || tType == 4,
  4927. }"
  4928. >
  4929. {{ JSON.parse(w.score).wScore }}分
  4930. </div>
  4931. <div
  4932. class="answerScore"
  4933. @click.stop="openScore(w)"
  4934. v-else-if="courseDetail.userid == userid"
  4935. :class="{
  4936. rightW:
  4937. w.userid == userid || tType == 1 || tType == 4,
  4938. }"
  4939. >
  4940. 评分
  4941. </div>
  4942. <img
  4943. class="deleteImg"
  4944. src="../../assets/deleteworks.png"
  4945. v-if="
  4946. w.userid == userid || tType == 1 || tType == 4
  4947. "
  4948. @click.stop="deleteWorks(w.wid)"
  4949. alt
  4950. />
  4951. </div>
  4952. <div class="comment" style="min-width: 200px">
  4953. <div class="worksName">
  4954. <div>{{ w.sName }}</div>
  4955. </div>
  4956. <div class="commentList">
  4957. <div class="commentList">
  4958. <div
  4959. class="commentImg"
  4960. @click="
  4961. isLikes(w.wid, userid, 1, null, w.isLikes)
  4962. "
  4963. >
  4964. <img
  4965. :src="w.isLikes == true ? likes : noLikes"
  4966. alt=""
  4967. />
  4968. </div>
  4969. <div>{{ w.likesCount }}</div>
  4970. </div>
  4971. <div class="commentList" style="margin-right: 15px">
  4972. <div
  4973. class="commentImg"
  4974. @click="commentOther(w, toolIndex, wIndex)"
  4975. >
  4976. <img
  4977. src="../../assets/icon/comment/comment.png"
  4978. alt=""
  4979. />
  4980. </div>
  4981. <div>{{ w.commentCount }}</div>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. </div>
  4986. </div>
  4987. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4988. 未提交
  4989. </div>
  4990. <div
  4991. class="noWorksS"
  4992. v-if="noWorksS && noWorksS[toolIndex].length"
  4993. >
  4994. <div
  4995. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4996. :key="sIndex"
  4997. class="noWorksName"
  4998. >
  4999. {{ s.student }}
  5000. </div>
  5001. </div>
  5002. </div>
  5003. <div
  5004. v-if="
  5005. tType &&
  5006. ((tType == 2 && sIsOpen == true) ||
  5007. tType == 1 ||
  5008. tType == 4) &&
  5009. tool.tool.indexOf(7) != -1
  5010. "
  5011. class="worksBox"
  5012. >
  5013. <div
  5014. class="zuoyeYulan"
  5015. v-if="
  5016. (worksStudent.length &&
  5017. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5018. "
  5019. >
  5020. <div class="worksTop">
  5021. <div>作业预览</div>
  5022. <div
  5023. class="corOpen"
  5024. @click="contract(toolIndex)"
  5025. v-if="
  5026. (isCloseList[toolIndex].isCloseBoolean) &&
  5027. isCloseList[toolIndex].isClose == 0
  5028. "
  5029. >
  5030. 折叠
  5031. </div>
  5032. <div
  5033. class="corOpen"
  5034. @click="contract(toolIndex)"
  5035. v-if="isCloseList[toolIndex].isClose == 1"
  5036. >
  5037. 展开
  5038. </div>
  5039. </div>
  5040. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5041. </div>
  5042. <div
  5043. class="group_workBox"
  5044. v-for="(g, gindex) in courseGroup.group"
  5045. :key="gindex"
  5046. >
  5047. <div class="group_box">
  5048. <div class="group_title">
  5049. <el-tooltip
  5050. class="item"
  5051. effect="light"
  5052. :content="g.name"
  5053. placement="top"
  5054. >
  5055. <div class="group_name">{{ g.name }}</div>
  5056. </el-tooltip>
  5057. </div>
  5058. <div
  5059. class="group_work"
  5060. v-if="
  5061. g.works &&
  5062. g.works.length &&
  5063. g.works[toolIndex].length
  5064. "
  5065. >
  5066. <div
  5067. class="works"
  5068. style="
  5069. width: 200px;
  5070. height: 140px;
  5071. margin: 10px 10px 10px 0;
  5072. border-radius: 15px;
  5073. box-shadow: 0 0 6px 1px #dfdada;
  5074. "
  5075. v-for="(w, wIndex) in g.works[toolIndex]"
  5076. :key="wIndex"
  5077. :class="w.type == 1 ? 'isTypeOne' : ''"
  5078. >
  5079. <div class="workImg">
  5080. <img
  5081. :src="w.works"
  5082. @click="previewImg(w.works)"
  5083. alt
  5084. />
  5085. <div
  5086. class="answerScore"
  5087. v-if="w.score"
  5088. @click.stop="openScore(w)"
  5089. :class="{
  5090. rightW:
  5091. w.userid == userid ||
  5092. tType == 1 ||
  5093. tType == 4,
  5094. }"
  5095. >
  5096. {{ JSON.parse(w.score).wScore }}分
  5097. </div>
  5098. <div
  5099. class="answerScore"
  5100. @click.stop="openScore(w)"
  5101. v-else-if="courseDetail.userid == userid"
  5102. :class="{
  5103. rightW:
  5104. w.userid == userid ||
  5105. tType == 1 ||
  5106. tType == 4,
  5107. }"
  5108. >
  5109. 评分
  5110. </div>
  5111. <img
  5112. class="deleteImg"
  5113. src="../../assets/deleteworks.png"
  5114. v-if="
  5115. w.userid == userid || tType == 1 || tType == 4
  5116. "
  5117. @click.stop="deleteWorks(w.wid)"
  5118. alt
  5119. />
  5120. </div>
  5121. <div class="comment" style="min-width: 200px">
  5122. <div class="worksName">
  5123. <div>{{ w.sName }}</div>
  5124. </div>
  5125. <div class="commentList">
  5126. <div class="commentList">
  5127. <div
  5128. class="commentImg"
  5129. @click="
  5130. isLikes(w.wid, userid, 1, null, w.isLikes)
  5131. "
  5132. >
  5133. <img
  5134. :src="w.isLikes == true ? likes : noLikes"
  5135. alt=""
  5136. />
  5137. </div>
  5138. <div>{{ w.likesCount }}</div>
  5139. </div>
  5140. <div
  5141. class="commentList"
  5142. style="margin-right: 15px"
  5143. >
  5144. <div
  5145. class="commentImg"
  5146. @click="
  5147. commentOther(
  5148. w,
  5149. toolIndex,
  5150. wIndex,
  5151. null,
  5152. g.id
  5153. )
  5154. "
  5155. >
  5156. <img
  5157. src="../../assets/icon/comment/comment.png"
  5158. alt=""
  5159. />
  5160. </div>
  5161. <div>{{ w.commentCount }}</div>
  5162. </div>
  5163. </div>
  5164. </div>
  5165. </div>
  5166. </div>
  5167. <div class="group_work" v-else>暂无提交作业</div>
  5168. </div>
  5169. </div>
  5170. <div
  5171. :id="'tool-' + toolIndex"
  5172. :style="{
  5173. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5174. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5175. }"
  5176. class="worksDetailBox"
  5177. v-if="
  5178. worksStudent.length &&
  5179. worksStudent[toolIndex].length > 0
  5180. "
  5181. >
  5182. <div
  5183. class="works"
  5184. style="
  5185. width: 200px;
  5186. height: 140px;
  5187. margin: 10px 10px 10px 0;
  5188. border-radius: 15px;
  5189. box-shadow: 0 0 6px 1px #dfdada;
  5190. "
  5191. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5192. :key="wIndex"
  5193. >
  5194. <!-- @click="previewImg(w.works)" -->
  5195. <div class="workImg">
  5196. <img
  5197. :src="w.works"
  5198. @click="previewImg(w.works)"
  5199. alt
  5200. />
  5201. <div
  5202. class="answerScore"
  5203. v-if="w.score"
  5204. @click.stop="openScore(w)"
  5205. :class="{
  5206. rightW:
  5207. w.userid == userid || tType == 1 || tType == 4,
  5208. }"
  5209. >
  5210. {{ JSON.parse(w.score).wScore }}分
  5211. </div>
  5212. <div
  5213. class="answerScore"
  5214. @click.stop="openScore(w)"
  5215. v-else-if="courseDetail.userid == userid"
  5216. :class="{
  5217. rightW:
  5218. w.userid == userid || tType == 1 || tType == 4,
  5219. }"
  5220. >
  5221. 评分
  5222. </div>
  5223. <img
  5224. class="deleteImg"
  5225. src="../../assets/deleteworks.png"
  5226. v-if="
  5227. w.userid == userid || tType == 1 || tType == 4
  5228. "
  5229. @click.stop="deleteWorks(w.wid)"
  5230. alt
  5231. />
  5232. </div>
  5233. <div class="comment" style="min-width: 200px">
  5234. <div class="worksName">
  5235. <div>{{ w.sName }}</div>
  5236. </div>
  5237. <div class="commentList">
  5238. <div class="commentList">
  5239. <div
  5240. class="commentImg"
  5241. @click="
  5242. isLikes(w.wid, userid, 1, null, w.isLikes)
  5243. "
  5244. >
  5245. <img
  5246. :src="w.isLikes == true ? likes : noLikes"
  5247. alt=""
  5248. />
  5249. </div>
  5250. <div>{{ w.likesCount }}</div>
  5251. </div>
  5252. <div class="commentList" style="margin-right: 15px">
  5253. <div
  5254. class="commentImg"
  5255. @click="commentOther(w, toolIndex, wIndex)"
  5256. >
  5257. <img
  5258. src="../../assets/icon/comment/comment.png"
  5259. alt=""
  5260. />
  5261. </div>
  5262. <div>{{ w.commentCount }}</div>
  5263. </div>
  5264. </div>
  5265. </div>
  5266. </div>
  5267. </div>
  5268. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5269. 未提交
  5270. </div>
  5271. <div
  5272. class="noWorksS"
  5273. v-if="noWorksS && noWorksS[toolIndex].length"
  5274. >
  5275. <div
  5276. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5277. :key="sIndex"
  5278. class="noWorksName"
  5279. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5280. >
  5281. {{ s.student }}
  5282. </div>
  5283. </div>
  5284. </div>
  5285. <div
  5286. v-if="
  5287. tType &&
  5288. ((tType == 2 && sIsOpen == true) ||
  5289. tType == 1 ||
  5290. tType == 4) &&
  5291. tool.tool.indexOf(26) != -1
  5292. "
  5293. class="worksBox"
  5294. >
  5295. <div
  5296. class="zuoyeYulan"
  5297. v-if="
  5298. worksStudent.length &&
  5299. worksStudent[toolIndex].length > 0
  5300. "
  5301. >
  5302. <div class="worksTop">
  5303. <div>作业预览</div>
  5304. <div
  5305. class="corOpen"
  5306. @click="contract(toolIndex)"
  5307. v-if="
  5308. (isCloseList[toolIndex].isCloseBoolean) &&
  5309. isCloseList[toolIndex].isClose == 0
  5310. "
  5311. >
  5312. 折叠
  5313. </div>
  5314. <div
  5315. class="corOpen"
  5316. @click="contract(toolIndex)"
  5317. v-if="isCloseList[toolIndex].isClose == 1"
  5318. >
  5319. 展开
  5320. </div>
  5321. </div>
  5322. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5323. </div>
  5324. <div
  5325. :id="'tool-' + toolIndex"
  5326. :style="{
  5327. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5328. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5329. }"
  5330. class="worksDetailBox"
  5331. v-if="
  5332. worksStudent.length &&
  5333. worksStudent[toolIndex].length > 0
  5334. "
  5335. >
  5336. <div
  5337. class="works"
  5338. style="width: 240px; height: 140px; overflow: hidden"
  5339. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5340. :key="wIndex"
  5341. :class="w.type == 1 ? 'isTypeOne' : ''"
  5342. >
  5343. <div class="workImg" v-if="w.type == 0">
  5344. <img
  5345. :src="w.works"
  5346. @click="previewImg(w.works)"
  5347. alt
  5348. />
  5349. <img
  5350. class="deleteImg"
  5351. src="../../assets/deleteworks.png"
  5352. v-if="
  5353. w.userid == userid || tType == 1 || tType == 4
  5354. "
  5355. @click.stop="deleteWorks(w.wid)"
  5356. alt
  5357. />
  5358. </div>
  5359. <div class="workImg" v-if="w.type == 1">
  5360. <img :src="word" @click="openFile(w.works)" alt />
  5361. <img
  5362. class="deleteImg"
  5363. src="../../assets/deleteworks.png"
  5364. v-if="
  5365. w.userid == userid || tType == 1 || tType == 4
  5366. "
  5367. @click.stop="deleteWorks(w.wid)"
  5368. alt
  5369. />
  5370. </div>
  5371. <div class="worksName">
  5372. <div>{{ w.sName }}</div>
  5373. </div>
  5374. </div>
  5375. </div>
  5376. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5377. 未提交
  5378. </div>
  5379. <div
  5380. class="noWorksS"
  5381. v-if="noWorksS && noWorksS[toolIndex].length"
  5382. >
  5383. <div
  5384. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5385. :key="sIndex"
  5386. class="noWorksName"
  5387. >
  5388. {{ s.student }}
  5389. </div>
  5390. </div>
  5391. </div>
  5392. <div
  5393. v-if="
  5394. tType &&
  5395. ((tType == 2 && sIsOpen == true) ||
  5396. tType == 1 ||
  5397. tType == 4) &&
  5398. tool.tool.indexOf(40) != -1
  5399. "
  5400. class="worksBox"
  5401. >
  5402. <div
  5403. class="zuoyeYulan"
  5404. v-if="
  5405. worksStudent.length &&
  5406. worksStudent[toolIndex].length > 0
  5407. "
  5408. >
  5409. <div class="worksTop">
  5410. <div>作业预览</div>
  5411. <div
  5412. class="corOpen"
  5413. @click="contract(toolIndex)"
  5414. v-if="
  5415. (isCloseList[toolIndex].isCloseBoolean) &&
  5416. isCloseList[toolIndex].isClose == 0
  5417. "
  5418. >
  5419. 折叠
  5420. </div>
  5421. <div
  5422. class="corOpen"
  5423. @click="contract(toolIndex)"
  5424. v-if="isCloseList[toolIndex].isClose == 1"
  5425. >
  5426. 展开
  5427. </div>
  5428. </div>
  5429. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5430. </div>
  5431. <div
  5432. :id="'tool-' + toolIndex"
  5433. :style="{
  5434. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5435. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5436. }"
  5437. class="worksDetailBox"
  5438. v-if="
  5439. worksStudent.length &&
  5440. worksStudent[toolIndex].length > 0
  5441. "
  5442. >
  5443. <div
  5444. class="works"
  5445. style="
  5446. width: 200px;
  5447. height: 140px;
  5448. margin: 10px 10px 10px 0;
  5449. border-radius: 15px;
  5450. box-shadow: 0 0 6px 1px #dfdada;
  5451. "
  5452. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5453. :key="wIndex"
  5454. :class="w.type == 1 ? 'isTypeOne' : ''"
  5455. >
  5456. <div class="workImg">
  5457. <img
  5458. src="../../assets/icon/works/noImg.png"
  5459. @click="openPj(w.works, toolIndex)"
  5460. alt
  5461. />
  5462. <img
  5463. class="deleteImg"
  5464. src="../../assets/deleteworks.png"
  5465. v-if="
  5466. w.userid == userid || tType == 1 || tType == 4
  5467. "
  5468. @click.stop="deleteWorks(w.wid)"
  5469. alt
  5470. />
  5471. </div>
  5472. <div class="comment" style="min-width: 200px">
  5473. <div class="worksName">
  5474. <div>{{ w.sName }}</div>
  5475. </div>
  5476. <div class="commentList">
  5477. <div class="commentList">
  5478. <div
  5479. class="commentImg"
  5480. @click="
  5481. isLikes(w.wid, userid, 1, null, w.isLikes)
  5482. "
  5483. >
  5484. <img
  5485. :src="w.isLikes == true ? likes : noLikes"
  5486. alt=""
  5487. />
  5488. </div>
  5489. <div>{{ w.likesCount }}</div>
  5490. </div>
  5491. <div class="commentList" style="margin-right: 15px">
  5492. <div
  5493. class="commentImg"
  5494. @click="commentOther(w, toolIndex, wIndex)"
  5495. >
  5496. <img
  5497. src="../../assets/icon/comment/comment.png"
  5498. alt=""
  5499. />
  5500. </div>
  5501. <div>{{ w.commentCount }}</div>
  5502. </div>
  5503. </div>
  5504. </div>
  5505. </div>
  5506. </div>
  5507. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5508. 未提交
  5509. </div>
  5510. <div
  5511. class="noWorksS"
  5512. v-if="noWorksS && noWorksS[toolIndex].length"
  5513. >
  5514. <div
  5515. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5516. :key="sIndex"
  5517. class="noWorksName"
  5518. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5519. >
  5520. {{ s.student }}
  5521. </div>
  5522. </div>
  5523. </div>
  5524. <div
  5525. v-if="
  5526. tType &&
  5527. tType == 2 &&
  5528. !sIsOpen &&
  5529. tool.tool.indexOf(40) != -1
  5530. "
  5531. class="worksBox"
  5532. >
  5533. <div
  5534. class="zuoyeYulan"
  5535. v-if="workStudent[toolIndex].length > 0"
  5536. >
  5537. <span class="worksTitle">作业预览</span>
  5538. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5539. </div>
  5540. <div
  5541. class="worksDetailBox"
  5542. v-if="workStudent[toolIndex].length > 0"
  5543. >
  5544. <div
  5545. class="works"
  5546. style="
  5547. width: 200px;
  5548. height: 140px;
  5549. margin: 10px 10px 10px 0;
  5550. "
  5551. v-for="(w, wIndex) in workStudent[toolIndex]"
  5552. :key="wIndex"
  5553. >
  5554. <div class="workImg">
  5555. <img
  5556. src="../../assets/icon/works/noImg.png"
  5557. @click="openPj(w.works, toolIndex)"
  5558. alt
  5559. />
  5560. <img
  5561. class="deleteImg"
  5562. src="../../assets/deleteworks.png"
  5563. v-if="
  5564. w.userid == userid || tType == 1 || tType == 4
  5565. "
  5566. @click.stop="deleteWorks(w.wid)"
  5567. alt
  5568. />
  5569. </div>
  5570. <div class="worksName">
  5571. <div>{{ w.sName }}</div>
  5572. </div>
  5573. </div>
  5574. </div>
  5575. </div>
  5576. <div
  5577. v-if="
  5578. tType &&
  5579. ((tType == 2 && sIsOpen == true) ||
  5580. tType == 1 ||
  5581. tType == 4) &&
  5582. tool.tool.indexOf(41) != -1
  5583. "
  5584. >
  5585. <AnswerData2
  5586. v-if="
  5587. worksStudent.length &&
  5588. worksStudent[toolIndex].length > 0
  5589. "
  5590. :problemJson="tool.selectJson.answer"
  5591. :people="worksStudent[toolIndex]"
  5592. ></AnswerData2>
  5593. </div>
  5594. <div
  5595. v-if="
  5596. tType &&
  5597. ((tType == 2 && sIsOpen == true) ||
  5598. tType == 1 ||
  5599. tType == 4) &&
  5600. tool.tool.indexOf(41) != -1
  5601. "
  5602. class="worksBox"
  5603. >
  5604. <div
  5605. class="zuoyeYulan"
  5606. v-if="
  5607. worksStudent.length &&
  5608. worksStudent[toolIndex].length > 0
  5609. "
  5610. >
  5611. <div class="worksTop">
  5612. <div>作业预览</div>
  5613. <div
  5614. class="corOpen"
  5615. @click="contract(toolIndex)"
  5616. v-if="
  5617. (isCloseList[toolIndex].isCloseBoolean) &&
  5618. isCloseList[toolIndex].isClose == 0
  5619. "
  5620. >
  5621. 折叠
  5622. </div>
  5623. <div
  5624. class="corOpen"
  5625. @click="contract(toolIndex)"
  5626. v-if="isCloseList[toolIndex].isClose == 1"
  5627. >
  5628. 展开
  5629. </div>
  5630. </div>
  5631. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5632. </div>
  5633. <div
  5634. :id="'tool-' + toolIndex"
  5635. :style="{
  5636. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5637. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5638. }"
  5639. class="worksDetailBox"
  5640. v-if="
  5641. worksStudent.length &&
  5642. worksStudent[toolIndex].length > 0
  5643. "
  5644. >
  5645. <div
  5646. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5647. :key="wIndex"
  5648. class="isWorksName2"
  5649. @click="openXz(w, toolIndex)"
  5650. >
  5651. {{ w.sName }}
  5652. <img
  5653. class="deleteImg deleteImg2"
  5654. src="../../assets/deleteworks.png"
  5655. v-if="w.userid == userid || tType == 1 || tType == 4"
  5656. @click.stop="deleteWorks(w.wid)"
  5657. alt
  5658. />
  5659. </div>
  5660. <!-- <div
  5661. class="works"
  5662. style="
  5663. width: 200px;
  5664. height: 140px;
  5665. margin: 10px 10px 10px 0;
  5666. border-radius: 15px;
  5667. box-shadow: 0 0 6px 1px #dfdada;
  5668. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5669. :class="w.type == 5 ? 'isTypeOne' : ''">
  5670. <div class="workImg">
  5671. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5672. </div>
  5673. <div class="worksName">
  5674. <div>{{ w.sName }}</div>
  5675. </div>
  5676. </div> -->
  5677. </div>
  5678. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5679. 未提交
  5680. </div>
  5681. <div
  5682. class="noWorksS"
  5683. v-if="noWorksS && noWorksS[toolIndex].length"
  5684. >
  5685. <div
  5686. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5687. :key="sIndex"
  5688. class="noWorksName"
  5689. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5690. >
  5691. {{ s.student }}
  5692. </div>
  5693. </div>
  5694. </div>
  5695. <div
  5696. v-if="
  5697. tType &&
  5698. tType == 2 &&
  5699. !sIsOpen &&
  5700. tool.tool.indexOf(41) != -1
  5701. "
  5702. class="worksBox"
  5703. >
  5704. <div
  5705. class="zuoyeYulan"
  5706. v-if="workStudent[toolIndex].length > 0"
  5707. >
  5708. <span class="worksTitle">作业预览</span>
  5709. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5710. </div>
  5711. <div
  5712. class="worksDetailBox"
  5713. v-if="workStudent[toolIndex].length > 0"
  5714. >
  5715. <div
  5716. class="works"
  5717. style="
  5718. width: 200px;
  5719. height: 140px;
  5720. margin: 10px 10px 10px 0;
  5721. "
  5722. v-for="(w, wIndex) in workStudent[toolIndex]"
  5723. :key="wIndex"
  5724. >
  5725. <div class="workImg">
  5726. <img
  5727. src="../../assets/icon/works/noImg.png"
  5728. @click="openXz(w, toolIndex)"
  5729. alt
  5730. />
  5731. <img
  5732. class="deleteImg"
  5733. src="../../assets/deleteworks.png"
  5734. v-if="
  5735. w.userid == userid || tType == 1 || tType == 4
  5736. "
  5737. @click.stop="deleteWorks(w.wid)"
  5738. alt
  5739. />
  5740. </div>
  5741. <div class="worksName">
  5742. <div>{{ w.sName }}</div>
  5743. </div>
  5744. </div>
  5745. </div>
  5746. </div>
  5747. <div v-if="false" class="xuan_right_box">
  5748. <div
  5749. class="tool_right_box"
  5750. v-for="(item, index) in tool.sentenceList"
  5751. :key="index"
  5752. >
  5753. <div>
  5754. <span
  5755. style="word-break: break-all; white-space: normal"
  5756. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5757. >
  5758. </div>
  5759. <div class="right_box_xuan">
  5760. <span>正确率</span>
  5761. <span>{{
  5762. (checkJson[toolIndex][index].right
  5763. ? checkJson[toolIndex][index].right
  5764. : 0) + "%"
  5765. }}</span>
  5766. </div>
  5767. <div class="right_box_xuan">
  5768. <span>答对人数</span>
  5769. <span>{{
  5770. checkJson[toolIndex][index].rightPerson.length
  5771. }}</span>
  5772. </div>
  5773. </div>
  5774. </div>
  5775. <div
  5776. v-if="
  5777. tType &&
  5778. ((tType == 2 && sIsOpen == true) ||
  5779. tType == 1 ||
  5780. tType == 4) &&
  5781. tool.tool.indexOf(47) != -1
  5782. "
  5783. >
  5784. <AnswerData
  5785. v-if="
  5786. checkJson[toolIndex].length &&
  5787. (tool.sentenceList || tool.sentenceList.length > 0)
  5788. "
  5789. :people="checkJson[toolIndex]"
  5790. ></AnswerData>
  5791. </div>
  5792. <div
  5793. v-if="
  5794. tType &&
  5795. tType == 2 &&
  5796. !sIsOpen &&
  5797. tool.tool.indexOf(47) != -1
  5798. "
  5799. class="worksBox"
  5800. >
  5801. <div
  5802. class="zuoyeYulan"
  5803. v-if="workStudent[toolIndex].length > 0"
  5804. >
  5805. <span class="worksTitle">作业预览</span>
  5806. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5807. </div>
  5808. <div
  5809. class="worksDetailBox"
  5810. v-if="workStudent[toolIndex].length > 0"
  5811. >
  5812. <div
  5813. class="works"
  5814. style="
  5815. width: 200px;
  5816. height: 140px;
  5817. margin: 10px 10px 10px 0;
  5818. "
  5819. v-for="(w, wIndex) in workStudent[toolIndex]"
  5820. :key="wIndex"
  5821. >
  5822. <!-- @click="openXz(w, toolIndex)" -->
  5823. <div class="workImg" @click="openSen(w, toolIndex)">
  5824. <img src="../../assets/icon/works/noImg.png" alt />
  5825. <img
  5826. class="deleteImg"
  5827. src="../../assets/deleteworks.png"
  5828. v-if="
  5829. w.userid == userid || tType == 1 || tType == 4
  5830. "
  5831. @click.stop="deleteWorks(w.wid)"
  5832. alt
  5833. />
  5834. </div>
  5835. <div class="worksName">
  5836. <div>
  5837. {{ w.sName }}
  5838. </div>
  5839. </div>
  5840. </div>
  5841. </div>
  5842. </div>
  5843. <div
  5844. v-if="
  5845. tType &&
  5846. ((tType == 2 && sIsOpen == true) ||
  5847. tType == 1 ||
  5848. tType == 4) &&
  5849. tool.tool.indexOf(47) != -1
  5850. "
  5851. class="worksBox"
  5852. >
  5853. <div
  5854. class="zuoyeYulan"
  5855. v-if="
  5856. worksStudent.length &&
  5857. worksStudent[toolIndex].length > 0
  5858. "
  5859. >
  5860. <div class="worksTop">
  5861. <div>作业预览</div>
  5862. <div
  5863. class="corOpen"
  5864. @click="contract(toolIndex)"
  5865. v-if="
  5866. (isCloseList[toolIndex].isCloseBoolean) &&
  5867. isCloseList[toolIndex].isClose == 0
  5868. "
  5869. >
  5870. 折叠
  5871. </div>
  5872. <div
  5873. class="corOpen"
  5874. @click="contract(toolIndex)"
  5875. v-if="isCloseList[toolIndex].isClose == 1"
  5876. >
  5877. 展开
  5878. </div>
  5879. </div>
  5880. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5881. </div>
  5882. <div
  5883. :id="'tool-' + toolIndex"
  5884. :style="{
  5885. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5886. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5887. }"
  5888. class="worksDetailBox"
  5889. v-if="
  5890. worksStudent.length &&
  5891. worksStudent[toolIndex].length > 0
  5892. "
  5893. >
  5894. <!-- @click="openXz(w, toolIndex)" -->
  5895. <div
  5896. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5897. :key="wIndex"
  5898. class="isWorksName2"
  5899. @click="openSen(w, toolIndex)"
  5900. >
  5901. {{ w.sName }}
  5902. <img
  5903. class="deleteImg deleteImg2"
  5904. src="../../assets/deleteworks.png"
  5905. v-if="w.userid == userid || tType == 1 || tType == 4"
  5906. @click.stop="deleteWorks(w.wid)"
  5907. alt
  5908. />
  5909. </div>
  5910. </div>
  5911. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5912. 未提交
  5913. </div>
  5914. <div
  5915. class="noWorksS"
  5916. v-if="noWorksS && noWorksS[toolIndex].length"
  5917. >
  5918. <div
  5919. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5920. :key="sIndex"
  5921. class="noWorksName"
  5922. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5923. >
  5924. {{ s.student }}
  5925. </div>
  5926. </div>
  5927. </div>
  5928. <div
  5929. v-if="
  5930. tType &&
  5931. ((tType == 2 && sIsOpen == true) ||
  5932. tType == 1 ||
  5933. tType == 4) &&
  5934. tool.tool.indexOf(48) != -1
  5935. "
  5936. class="worksBox"
  5937. >
  5938. <div
  5939. class="zuoyeYulan"
  5940. v-if="
  5941. worksStudent.length &&
  5942. worksStudent[toolIndex].length > 0
  5943. "
  5944. >
  5945. <div class="worksTop">
  5946. <div>作业预览</div>
  5947. <div
  5948. class="corOpen"
  5949. @click="contract(toolIndex)"
  5950. v-if="
  5951. (isCloseList[toolIndex].isCloseBoolean) &&
  5952. isCloseList[toolIndex].isClose == 0
  5953. "
  5954. >
  5955. 折叠
  5956. </div>
  5957. <div
  5958. class="corOpen"
  5959. @click="contract(toolIndex)"
  5960. v-if="isCloseList[toolIndex].isClose == 1"
  5961. >
  5962. 展开
  5963. </div>
  5964. </div>
  5965. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5966. </div>
  5967. <div
  5968. :id="'tool-' + toolIndex"
  5969. :style="{
  5970. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5971. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5972. }"
  5973. class="worksDetailBox"
  5974. v-if="
  5975. worksStudent.length &&
  5976. worksStudent[toolIndex].length > 0
  5977. "
  5978. >
  5979. <div
  5980. class="works"
  5981. style="
  5982. width: 200px;
  5983. height: 140px;
  5984. margin: 10px 10px 10px 0;
  5985. border-radius: 15px;
  5986. box-shadow: 0 0 6px 1px #dfdada;
  5987. "
  5988. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5989. :key="wIndex"
  5990. :class="w.type == 1 ? 'isTypeOne' : ''"
  5991. >
  5992. <div class="workImg">
  5993. <img :src="word" @click="openTable(w)" alt />
  5994. <!-- @click="openFile(w.works)" -->
  5995. <div
  5996. class="answerScore"
  5997. v-if="w.score"
  5998. @click.stop="openScore(w)"
  5999. :class="{
  6000. rightW:
  6001. w.userid == userid ||
  6002. tType == 1 ||
  6003. tType == 4 ||
  6004. w.ateacher == userid,
  6005. }"
  6006. >
  6007. {{ JSON.parse(w.score).wScore }}分
  6008. </div>
  6009. <div
  6010. class="answerScore"
  6011. @click.stop="openScore(w)"
  6012. v-else-if="courseDetail.userid == userid"
  6013. :class="{
  6014. rightW:
  6015. w.userid == userid ||
  6016. tType == 1 ||
  6017. tType == 4 ||
  6018. w.ateacher == userid,
  6019. }"
  6020. >
  6021. 评分
  6022. </div>
  6023. <img
  6024. class="deleteImg"
  6025. src="../../assets/deleteworks.png"
  6026. v-if="
  6027. w.userid == userid || tType == 1 || tType == 4
  6028. "
  6029. @click.stop="deleteWorks(w.wid)"
  6030. alt
  6031. />
  6032. </div>
  6033. <div class="comment" style="min-width: 200px">
  6034. <div class="worksName">
  6035. <div>{{ w.sName }}</div>
  6036. </div>
  6037. <div class="commentList">
  6038. <div class="commentList">
  6039. <div
  6040. class="commentImg"
  6041. @click="
  6042. isLikes(w.wid, userid, 1, null, w.isLikes)
  6043. "
  6044. >
  6045. <img
  6046. :src="w.isLikes == true ? likes : noLikes"
  6047. alt=""
  6048. />
  6049. </div>
  6050. <div>{{ w.likesCount }}</div>
  6051. </div>
  6052. <div class="commentList" style="margin-right: 15px">
  6053. <div
  6054. class="commentImg"
  6055. @click="commentOther(w, toolIndex, wIndex)"
  6056. >
  6057. <img
  6058. src="../../assets/icon/comment/comment.png"
  6059. alt=""
  6060. />
  6061. </div>
  6062. <div>{{ w.commentCount }}</div>
  6063. </div>
  6064. </div>
  6065. </div>
  6066. </div>
  6067. </div>
  6068. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6069. 未提交
  6070. </div>
  6071. <div
  6072. class="noWorksS"
  6073. v-if="noWorksS && noWorksS[toolIndex].length"
  6074. >
  6075. <div
  6076. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6077. :key="sIndex"
  6078. class="noWorksName"
  6079. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6080. >
  6081. {{ s.student }}
  6082. </div>
  6083. </div>
  6084. </div>
  6085. <div
  6086. v-if="
  6087. tType &&
  6088. tType == 2 &&
  6089. !sIsOpen &&
  6090. tool.tool.indexOf(48) != -1
  6091. "
  6092. class="worksBox"
  6093. >
  6094. <div
  6095. class="zuoyeYulan"
  6096. v-if="workStudent[toolIndex].length > 0"
  6097. >
  6098. <span class="worksTitle">作业预览</span>
  6099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6100. </div>
  6101. <div
  6102. class="worksDetailBox"
  6103. v-if="workStudent[toolIndex].length > 0"
  6104. >
  6105. <div
  6106. class="works"
  6107. style="
  6108. width: 200px;
  6109. height: 140px;
  6110. margin: 10px 10px 10px 0;
  6111. box-shadow: 0 0 6px 1px #dfdada;
  6112. "
  6113. v-for="(w, wIndex) in workStudent[toolIndex]"
  6114. :key="wIndex"
  6115. >
  6116. <div class="workImg">
  6117. <img :src="word" @click="openTable(w)" alt />
  6118. <div
  6119. class="answerScore"
  6120. v-if="w.score"
  6121. @click.stop="openScore(w)"
  6122. :class="{
  6123. rightW:
  6124. w.userid == userid || tType == 1 || tType == 4,
  6125. }"
  6126. >
  6127. {{ JSON.parse(w.score).wScore }}分
  6128. </div>
  6129. <div
  6130. class="answerScore"
  6131. @click.stop="openScore(w)"
  6132. v-else-if="courseDetail.userid == userid"
  6133. :class="{
  6134. rightW:
  6135. w.userid == userid || tType == 1 || tType == 4,
  6136. }"
  6137. >
  6138. 评分
  6139. </div>
  6140. <img
  6141. class="deleteImg"
  6142. src="../../assets/deleteworks.png"
  6143. v-if="
  6144. w.userid == userid || tType == 1 || tType == 4
  6145. "
  6146. @click.stop="deleteWorks(w.wid)"
  6147. alt
  6148. />
  6149. </div>
  6150. <div class="worksName">
  6151. <div>{{ w.sName }}</div>
  6152. </div>
  6153. </div>
  6154. </div>
  6155. </div>
  6156. <div
  6157. v-if="
  6158. tType &&
  6159. ((tType == 2 && sIsOpen == true) ||
  6160. tType == 1 ||
  6161. tType == 4) &&
  6162. tool.tool.indexOf(52) != -1
  6163. "
  6164. class="worksBox"
  6165. >
  6166. <div
  6167. class="zuoyeYulan"
  6168. v-if="
  6169. worksStudent.length &&
  6170. worksStudent[toolIndex].length > 0
  6171. "
  6172. >
  6173. <div class="worksTop">
  6174. <div>作业预览</div>
  6175. <div
  6176. class="corOpen"
  6177. @click="contract(toolIndex)"
  6178. v-if="
  6179. (isCloseList[toolIndex].isCloseBoolean) &&
  6180. isCloseList[toolIndex].isClose == 0
  6181. "
  6182. >
  6183. 折叠
  6184. </div>
  6185. <div
  6186. class="corOpen"
  6187. @click="contract(toolIndex)"
  6188. v-if="isCloseList[toolIndex].isClose == 1"
  6189. >
  6190. 展开
  6191. </div>
  6192. </div>
  6193. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6194. </div>
  6195. <div
  6196. :id="'tool-' + toolIndex"
  6197. :style="{
  6198. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6199. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6200. }"
  6201. class="worksDetailBox"
  6202. v-if="
  6203. worksStudent.length &&
  6204. worksStudent[toolIndex].length > 0
  6205. "
  6206. >
  6207. <div
  6208. class="works"
  6209. style="
  6210. width: 200px;
  6211. height: 140px;
  6212. margin: 10px 10px 10px 0;
  6213. border-radius: 15px;
  6214. box-shadow: 0 0 6px 1px #dfdada;
  6215. "
  6216. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6217. :key="wIndex"
  6218. :class="w.type == 1 ? 'isTypeOne' : ''"
  6219. >
  6220. <div class="workImg">
  6221. <img :src="word" @click="openWord(w)" alt />
  6222. <!-- @click="openFile(w.works)" -->
  6223. <div
  6224. class="answerScore"
  6225. v-if="w.score"
  6226. @click.stop="openScore(w)"
  6227. :class="{
  6228. rightW:
  6229. w.userid == userid ||
  6230. tType == 1 ||
  6231. tType == 4 ||
  6232. w.ateacher == userid,
  6233. }"
  6234. >
  6235. {{ JSON.parse(w.score).wScore }}分
  6236. </div>
  6237. <div
  6238. class="answerScore"
  6239. @click.stop="openScore(w)"
  6240. v-else-if="courseDetail.userid == userid"
  6241. :class="{
  6242. rightW:
  6243. w.userid == userid ||
  6244. tType == 1 ||
  6245. tType == 4 ||
  6246. w.ateacher == userid,
  6247. }"
  6248. >
  6249. 评分
  6250. </div>
  6251. <img
  6252. class="deleteImg"
  6253. src="../../assets/deleteworks.png"
  6254. v-if="
  6255. w.userid == userid || tType == 1 || tType == 4
  6256. "
  6257. @click.stop="deleteWorks(w.wid)"
  6258. alt
  6259. />
  6260. </div>
  6261. <div class="comment" style="min-width: 200px">
  6262. <div class="worksName">
  6263. <div>{{ w.sName }}</div>
  6264. </div>
  6265. <div class="commentList">
  6266. <div class="commentList">
  6267. <div
  6268. class="commentImg"
  6269. @click="
  6270. isLikes(w.wid, userid, 1, null, w.isLikes)
  6271. "
  6272. >
  6273. <img
  6274. :src="w.isLikes == true ? likes : noLikes"
  6275. alt=""
  6276. />
  6277. </div>
  6278. <div>{{ w.likesCount }}</div>
  6279. </div>
  6280. <div class="commentList" style="margin-right: 15px">
  6281. <div
  6282. class="commentImg"
  6283. @click="commentOther(w, toolIndex, wIndex)"
  6284. >
  6285. <img
  6286. src="../../assets/icon/comment/comment.png"
  6287. alt=""
  6288. />
  6289. </div>
  6290. <div>{{ w.commentCount }}</div>
  6291. </div>
  6292. </div>
  6293. </div>
  6294. </div>
  6295. </div>
  6296. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6297. 未提交
  6298. </div>
  6299. <div
  6300. class="noWorksS"
  6301. v-if="noWorksS && noWorksS[toolIndex].length"
  6302. >
  6303. <div
  6304. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6305. :key="sIndex"
  6306. class="noWorksName"
  6307. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6308. >
  6309. {{ s.student }}
  6310. </div>
  6311. </div>
  6312. </div>
  6313. <div
  6314. v-if="
  6315. tType &&
  6316. tType == 2 &&
  6317. !sIsOpen &&
  6318. tool.tool.indexOf(52) != -1
  6319. "
  6320. class="worksBox"
  6321. >
  6322. <div
  6323. class="zuoyeYulan"
  6324. v-if="workStudent[toolIndex].length > 0"
  6325. >
  6326. <span class="worksTitle">作业预览</span>
  6327. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6328. </div>
  6329. <div
  6330. class="worksDetailBox"
  6331. v-if="workStudent[toolIndex].length > 0"
  6332. >
  6333. <div
  6334. class="works"
  6335. style="
  6336. width: 200px;
  6337. height: 140px;
  6338. margin: 10px 10px 10px 0;
  6339. box-shadow: 0 0 6px 1px #dfdada;
  6340. "
  6341. v-for="(w, wIndex) in workStudent[toolIndex]"
  6342. :key="wIndex"
  6343. >
  6344. <div class="workImg">
  6345. <img :src="word" @click="openWord(w)" alt />
  6346. <div
  6347. class="answerScore"
  6348. v-if="w.score"
  6349. @click.stop="openScore(w)"
  6350. :class="{
  6351. rightW:
  6352. w.userid == userid || tType == 1 || tType == 4,
  6353. }"
  6354. >
  6355. {{ JSON.parse(w.score).wScore }}分
  6356. </div>
  6357. <div
  6358. class="answerScore"
  6359. @click.stop="openScore(w)"
  6360. v-else-if="courseDetail.userid == userid"
  6361. :class="{
  6362. rightW:
  6363. w.userid == userid || tType == 1 || tType == 4,
  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="worksName">
  6379. <div>{{ w.sName }}</div>
  6380. </div>
  6381. </div>
  6382. </div>
  6383. </div>
  6384. <div
  6385. v-if="tool.tool.indexOf(49) != -1"
  6386. class="xuan_right_box"
  6387. style="margin: 0 15px 0 25px; width: 93%"
  6388. >
  6389. <div
  6390. v-if="courseDetail.userid == userid"
  6391. style="
  6392. display: flex;
  6393. justify-content: flex-end;
  6394. margin-right: 10px;
  6395. "
  6396. >
  6397. <el-button
  6398. type="primary"
  6399. size="small"
  6400. @click="addTools(49, toolIndex, taskCount)"
  6401. >分组设置</el-button
  6402. >
  6403. </div>
  6404. <div
  6405. v-if="groupStudentUid[toolIndex]"
  6406. class="group_staic_box"
  6407. >
  6408. <div
  6409. v-for="(gp, gd) in tool.groupJson.group"
  6410. :key="gd"
  6411. class="group_staic"
  6412. >
  6413. <span> {{ gp.name }}</span>
  6414. <span>
  6415. 目前人数{{
  6416. groupStudentUid[toolIndex][gd].length
  6417. }}人</span
  6418. >
  6419. </div>
  6420. </div>
  6421. </div>
  6422. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6423. <div
  6424. class="zuoyeYulan"
  6425. v-if="
  6426. worksStudent.length &&
  6427. worksStudent[toolIndex].length > 0
  6428. "
  6429. >
  6430. <span class="worksTitle">作业预览</span>
  6431. </div>
  6432. <div>
  6433. <div
  6434. class="group_workBox"
  6435. v-for="(g, gindex) in tool.groupJson.group"
  6436. :key="gindex"
  6437. >
  6438. <div
  6439. class="group_box"
  6440. v-if="
  6441. groupStudentUid[toolIndex] &&
  6442. worksStudent[toolIndex] &&
  6443. (worksStudent[toolIndex][gindex].length ||
  6444. groupStudentUid[toolIndex][gindex].indexOf(
  6445. userid
  6446. ) != -1)
  6447. "
  6448. >
  6449. <div class="group_title">
  6450. <el-tooltip
  6451. class="item"
  6452. effect="light"
  6453. :content="g.name"
  6454. placement="top"
  6455. >
  6456. <div class="group_name">{{ g.name }}</div>
  6457. </el-tooltip>
  6458. <el-button
  6459. type="primary"
  6460. v-if="
  6461. groupStudentUid[toolIndex][gindex].indexOf(
  6462. userid
  6463. ) != -1
  6464. "
  6465. @click="groupUpload(toolIndex, taskCount, gindex)"
  6466. >上传作业</el-button
  6467. >
  6468. </div>
  6469. <div class="group_work">
  6470. <div
  6471. class="works"
  6472. style="
  6473. width: 200px;
  6474. height: 140px;
  6475. margin: 10px 10px 10px 0;
  6476. border-radius: 15px;
  6477. box-shadow: 0 0 6px 1px #dfdada;
  6478. "
  6479. v-for="(w, wIndex) in worksStudent[toolIndex][
  6480. gindex
  6481. ]"
  6482. :key="wIndex"
  6483. :class="w.type == 1 ? 'isTypeOne' : ''"
  6484. >
  6485. <div class="workImg" v-if="w.type == 0">
  6486. <img
  6487. :src="w.works"
  6488. @click="previewImg(w.works)"
  6489. alt
  6490. />
  6491. <div
  6492. class="answerScore"
  6493. v-if="w.score"
  6494. @click.stop="openScore(w)"
  6495. :class="{
  6496. rightW:
  6497. w.userid == userid ||
  6498. tType == 1 ||
  6499. tType == 4 ||
  6500. w.ateacher == userid,
  6501. }"
  6502. >
  6503. {{ JSON.parse(w.score).wScore }}分
  6504. </div>
  6505. <div
  6506. class="answerScore"
  6507. @click.stop="openScore(w)"
  6508. v-else-if="courseDetail.userid == userid"
  6509. :class="{
  6510. rightW:
  6511. w.userid == userid ||
  6512. tType == 1 ||
  6513. tType == 4 ||
  6514. w.ateacher == userid,
  6515. }"
  6516. >
  6517. 评分
  6518. </div>
  6519. <img
  6520. class="deleteImg"
  6521. src="../../assets/deleteworks.png"
  6522. v-if="
  6523. w.userid == userid ||
  6524. tType == 1 ||
  6525. tType == 4
  6526. "
  6527. @click.stop="deleteWorks(w.wid)"
  6528. alt
  6529. />
  6530. </div>
  6531. <div class="workImg" v-if="w.type == 1">
  6532. <img
  6533. :src="word"
  6534. @click="openFile(w.works)"
  6535. alt
  6536. />
  6537. <!-- @click="openFile(w.works)" -->
  6538. <div
  6539. class="answerScore"
  6540. v-if="w.score"
  6541. @click.stop="openScore(w)"
  6542. :class="{
  6543. rightW:
  6544. w.userid == userid ||
  6545. tType == 1 ||
  6546. tType == 4 ||
  6547. w.ateacher == userid,
  6548. }"
  6549. >
  6550. {{ JSON.parse(w.score).wScore }}分
  6551. </div>
  6552. <div
  6553. class="answerScore"
  6554. @click.stop="openScore(w)"
  6555. v-else-if="courseDetail.userid == userid"
  6556. :class="{
  6557. rightW:
  6558. w.userid == userid ||
  6559. tType == 1 ||
  6560. tType == 4 ||
  6561. w.ateacher == userid,
  6562. }"
  6563. >
  6564. 评分
  6565. </div>
  6566. <img
  6567. class="deleteImg"
  6568. src="../../assets/deleteworks.png"
  6569. v-if="
  6570. w.userid == userid ||
  6571. tType == 1 ||
  6572. tType == 4
  6573. "
  6574. @click.stop="deleteWorks(w.wid)"
  6575. alt
  6576. />
  6577. </div>
  6578. <div class="workImg" v-if="w.type == 3">
  6579. <img
  6580. style="cursor: pointer"
  6581. :src="video"
  6582. @click="openVideo(w)"
  6583. alt
  6584. />
  6585. <!-- @click="openVideo(w.works)" -->
  6586. <div
  6587. class="answerScore"
  6588. v-if="w.score"
  6589. @click.stop="openScore(w)"
  6590. :class="{
  6591. rightW:
  6592. w.userid == userid ||
  6593. tType == 1 ||
  6594. tType == 4 ||
  6595. w.ateacher == userid,
  6596. }"
  6597. >
  6598. {{ JSON.parse(w.score).wScore }}分
  6599. </div>
  6600. <div
  6601. class="answerScore"
  6602. @click.stop="openScore(w)"
  6603. v-else-if="courseDetail.userid == userid"
  6604. :class="{
  6605. rightW:
  6606. w.userid == userid ||
  6607. tType == 1 ||
  6608. tType == 4 ||
  6609. w.ateacher == userid,
  6610. }"
  6611. >
  6612. 评分
  6613. </div>
  6614. <img
  6615. class="deleteImg"
  6616. src="../../assets/deleteworks.png"
  6617. v-if="
  6618. w.userid == userid ||
  6619. tType == 1 ||
  6620. tType == 4
  6621. "
  6622. @click.stop="deleteWorks(w.wid)"
  6623. alt
  6624. />
  6625. </div>
  6626. <div class="workImg" v-if="w.type == 12">
  6627. <img
  6628. style="cursor: pointer"
  6629. :src="word2"
  6630. @click="downloadFile(w.works)"
  6631. alt
  6632. />
  6633. <!-- @click="openVideo(w.works)" -->
  6634. <div
  6635. class="answerScore"
  6636. v-if="w.score"
  6637. @click.stop="openScore(w)"
  6638. :class="{
  6639. rightW:
  6640. w.userid == userid ||
  6641. tType == 1 ||
  6642. tType == 4 ||
  6643. w.ateacher == userid,
  6644. }"
  6645. >
  6646. {{ JSON.parse(w.score).wScore }}分
  6647. </div>
  6648. <div
  6649. class="answerScore"
  6650. @click.stop="openScore(w)"
  6651. v-else-if="courseDetail.userid == userid"
  6652. :class="{
  6653. rightW:
  6654. w.userid == userid ||
  6655. tType == 1 ||
  6656. tType == 4 ||
  6657. w.ateacher == userid,
  6658. }"
  6659. >
  6660. 评分
  6661. </div>
  6662. <img
  6663. class="deleteImg"
  6664. src="../../assets/deleteworks.png"
  6665. v-if="
  6666. w.userid == userid ||
  6667. tType == 1 ||
  6668. tType == 4
  6669. "
  6670. @click.stop="deleteWorks(w.wid)"
  6671. alt
  6672. />
  6673. </div>
  6674. <div class="comment" style="min-width: 200px">
  6675. <div class="worksName">
  6676. <div>{{ w.sName }}</div>
  6677. </div>
  6678. <div class="commentList">
  6679. <div class="commentList">
  6680. <div
  6681. class="commentImg"
  6682. @click="
  6683. isLikes(
  6684. w.wid,
  6685. userid,
  6686. 1,
  6687. null,
  6688. w.isLikes
  6689. )
  6690. "
  6691. >
  6692. <img
  6693. :src="
  6694. w.isLikes == true ? likes : noLikes
  6695. "
  6696. alt=""
  6697. />
  6698. </div>
  6699. <div>{{ w.likesCount }}</div>
  6700. </div>
  6701. <div
  6702. class="commentList"
  6703. style="margin-right: 15px"
  6704. >
  6705. <div
  6706. class="commentImg"
  6707. @click="
  6708. commentOther(
  6709. w,
  6710. toolIndex,
  6711. wIndex,
  6712. gindex
  6713. )
  6714. "
  6715. >
  6716. <img
  6717. src="../../assets/icon/comment/comment.png"
  6718. alt=""
  6719. />
  6720. </div>
  6721. <div>{{ w.commentCount }}</div>
  6722. </div>
  6723. </div>
  6724. </div>
  6725. </div>
  6726. </div>
  6727. </div>
  6728. </div>
  6729. </div>
  6730. </div>
  6731. </div>
  6732. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6733. 上传文件
  6734. <input
  6735. type="file"
  6736. accept="image/png, image/gif, image/jpeg"
  6737. style="display: none"
  6738. @change="beforeUpload1($event, 2, index)"
  6739. />
  6740. </div>-->
  6741. </div>
  6742. </div>
  6743. <!-- <div
  6744. class="vedioBox"
  6745. style="margin-top: 10px"
  6746. v-if="
  6747. courseDetail.userid == userid ||
  6748. (courseDetail.course_teacher &&
  6749. courseDetail.course_teacher.indexOf(userid) != -1)
  6750. "
  6751. :style="{
  6752. borderRadius:
  6753. !(
  6754. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6755. .toolChoose[0].tool &&
  6756. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6757. .toolChoose[0].tool.length > 0
  6758. ) &&
  6759. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6760. .taskDetail == '' &&
  6761. vChapterData[taskCount].length == 0 &&
  6762. fileC[taskCount].length == 0
  6763. ? '0 0 20px 20px'
  6764. : '20px',
  6765. }"
  6766. >
  6767. <div
  6768. class="queTop"
  6769. @click="isClose = !isClose"
  6770. style="
  6771. padding: 15px 0 15px 37px;
  6772. justify-content: space-between;
  6773. "
  6774. >
  6775. <div class="queTopTitle">新增工具</div>
  6776. <div class="queTopRight">
  6777. <div class="queTopClose" v-if="isClose == 0">
  6778. 展开
  6779. <div class="closeImg">
  6780. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6781. </div>
  6782. </div>
  6783. <div class="queTopClose" v-if="isClose == 1">
  6784. 折叠
  6785. <div class="openImg">
  6786. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6787. </div>
  6788. </div>
  6789. <el-button
  6790. style="margin: 0 30px 0 auto"
  6791. type="primary"
  6792. size="small"
  6793. v-if="isClose == 1 && checktoolArray.length > 0"
  6794. @click.stop="addToolChoose"
  6795. >确定</el-button
  6796. >
  6797. </div>
  6798. </div>
  6799. <div
  6800. class="tool_work_box"
  6801. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6802. >
  6803. <div class="tool_box">
  6804. <div class="tool_type_box">
  6805. <div class="chooseWho">
  6806. <div
  6807. :class="toolType == 0 ? 'isChooseActive' : ''"
  6808. @click="(toolType = 0), $forceUpdate()"
  6809. >
  6810. 互动类
  6811. </div>
  6812. <div
  6813. :class="toolType == 1 ? 'isChooseActive' : ''"
  6814. @click="(toolType = 1), $forceUpdate()"
  6815. >
  6816. 思维类
  6817. </div>
  6818. <div
  6819. :class="toolType == 2 ? 'isChooseActive' : ''"
  6820. @click="(toolType = 2), $forceUpdate()"
  6821. >
  6822. 测评类
  6823. </div>
  6824. <div
  6825. :class="toolType == 3 ? 'isChooseActive' : ''"
  6826. @click="(toolType = 3), $forceUpdate()"
  6827. >
  6828. 编程类
  6829. </div>
  6830. <div
  6831. :class="toolType == 5 ? 'isChooseActive' : ''"
  6832. @click="(toolType = 5), $forceUpdate()"
  6833. >
  6834. 学科类
  6835. </div>
  6836. </div>
  6837. </div>
  6838. <div>
  6839. <div class="toolSort" v-if="toolType == 0">
  6840. <div class="tool">
  6841. <div class="whiteBIcon" @click="addTools2(10)">
  6842. <img
  6843. src="../../assets/icon/thirdToolList/time.png"
  6844. alt
  6845. />
  6846. <div style="margin: 5px 0">倒计时</div>
  6847. </div>
  6848. <div class="check" @click="addTools2(10)">
  6849. <img
  6850. src="../../assets/icon/checkNo.png"
  6851. alt
  6852. v-if="checktoolArray.indexOf(10) == -1"
  6853. />
  6854. <div class="checkDiv" v-else>
  6855. <img src="../../assets/icon/checkedIs.png" alt /><span
  6856. >已选择</span
  6857. >
  6858. </div>
  6859. </div>
  6860. </div>
  6861. <div class="tool">
  6862. <div class="whiteBIcon" @click="addTools2(65)">
  6863. <img
  6864. src="../../assets/icon/firstToolList/pickPeople.png"
  6865. alt
  6866. />
  6867. <div style="margin: 5px 0">挑人</div>
  6868. </div>
  6869. <div class="check" @click="addTools2(65)">
  6870. <img
  6871. src="../../assets/icon/checkNo.png"
  6872. alt
  6873. v-if="checktoolArray.indexOf(65) == -1"
  6874. />
  6875. <div class="checkDiv" v-else>
  6876. <img src="../../assets/icon/checkedIs.png" alt /><span
  6877. >已选择</span
  6878. >
  6879. </div>
  6880. </div>
  6881. </div>
  6882. </div>
  6883. <div class="toolSort" v-if="toolType == 1">
  6884. <div class="tool">
  6885. <div class="whiteBIcon" @click="addTools2(7)">
  6886. <img
  6887. src="../../assets/icon/secondToolList/mindNetwork.png"
  6888. alt
  6889. />
  6890. <div style="margin: 5px 0">思维网格</div>
  6891. </div>
  6892. <div class="check" @click="addTools2(7)">
  6893. <img
  6894. src="../../assets/icon/checkNo.png"
  6895. alt
  6896. v-if="checktoolArray.indexOf(7) == -1"
  6897. />
  6898. <div class="checkDiv" v-else>
  6899. <img src="../../assets/icon/checkedIs.png" alt /><span
  6900. >已选择</span
  6901. >
  6902. </div>
  6903. </div>
  6904. </div>
  6905. <div class="tool">
  6906. <div class="whiteBIcon" @click="addTools2(1)">
  6907. <img
  6908. src="../../assets/icon/secondToolList/whiteBoard.png"
  6909. alt
  6910. />
  6911. <div style="margin: 5px 0">电子白板</div>
  6912. </div>
  6913. <div class="check" @click="addTools2(1)">
  6914. <img
  6915. src="../../assets/icon/checkNo.png"
  6916. alt
  6917. v-if="checktoolArray.indexOf(1) == -1"
  6918. />
  6919. <div class="checkDiv" v-else>
  6920. <img src="../../assets/icon/checkedIs.png" alt /><span
  6921. >已选择</span
  6922. >
  6923. </div>
  6924. </div>
  6925. </div>
  6926. <div class="tool">
  6927. <div class="whiteBIcon" @click="addTools2(52)">
  6928. <img
  6929. src="../../assets/icon/fourthToolList/text.png"
  6930. alt
  6931. />
  6932. <div style="margin: 5px 0">文档</div>
  6933. </div>
  6934. <div class="check" @click="addTools2(52)">
  6935. <img
  6936. src="../../assets/icon/checkNo.png"
  6937. alt
  6938. v-if="checktoolArray.indexOf(52) == -1"
  6939. />
  6940. <div class="checkDiv" v-else>
  6941. <img src="../../assets/icon/checkedIs.png" alt /><span
  6942. >已选择</span
  6943. >
  6944. </div>
  6945. </div>
  6946. </div>
  6947. <div class="tool">
  6948. <div class="whiteBIcon" @click="addTools2(3)">
  6949. <img
  6950. src="../../assets/icon/secondToolList/mindMapping.png"
  6951. alt
  6952. />
  6953. <div style="margin: 5px 0">思维导图</div>
  6954. </div>
  6955. <div class="check" @click="addTools2(3)">
  6956. <img
  6957. src="../../assets/icon/checkNo.png"
  6958. alt
  6959. v-if="checktoolArray.indexOf(3) == -1"
  6960. />
  6961. <div class="checkDiv" v-else>
  6962. <img src="../../assets/icon/checkedIs.png" alt /><span
  6963. >已选择</span
  6964. >
  6965. </div>
  6966. </div>
  6967. </div>
  6968. <div class="tool">
  6969. <div class="whiteBIcon" @click="addTools2(48)">
  6970. <img
  6971. src="../../assets/icon/fourthToolList/table.png"
  6972. alt
  6973. />
  6974. <div style="margin: 5px 0">表格</div>
  6975. </div>
  6976. <div class="check" @click="addTools2(48)">
  6977. <img
  6978. src="../../assets/icon/checkNo.png"
  6979. alt
  6980. v-if="checktoolArray.indexOf(48) == -1"
  6981. />
  6982. <div class="checkDiv" v-else>
  6983. <img src="../../assets/icon/checkedIs.png" alt /><span
  6984. >已选择</span
  6985. >
  6986. </div>
  6987. </div>
  6988. </div>
  6989. </div>
  6990. <div class="toolSort" v-if="toolType == 6">
  6991. <div v-show="tooC == 49">
  6992. <img
  6993. @click="addTools(tooC, toolIndex, taskCount)"
  6994. src="../../assets/icon/fourthToolList/group.png"
  6995. alt
  6996. />
  6997. <div style="margin: 5px 0">学生分组</div>
  6998. </div>
  6999. </div>
  7000. <div class="toolSort" v-if="toolType == 2">
  7001. <div class="tool">
  7002. <div class="whiteBIcon" @click="addTools2(16)">
  7003. <img
  7004. src="../../assets/icon/thirdToolList/work.png"
  7005. alt
  7006. />
  7007. <div style="margin: 5px 0">作业提交</div>
  7008. </div>
  7009. <div class="check" @click="addTools2(16)">
  7010. <img
  7011. src="../../assets/icon/checkNo.png"
  7012. alt
  7013. v-if="checktoolArray.indexOf(16) == -1"
  7014. />
  7015. <div class="checkDiv" v-else>
  7016. <img src="../../assets/icon/checkedIs.png" alt /><span
  7017. >已选择</span
  7018. >
  7019. </div>
  7020. </div>
  7021. </div>
  7022. <div class="tool">
  7023. <div class="whiteBIcon" @click="addTools2(50)">
  7024. <img
  7025. src="../../assets/icon/thirdToolList/plwork.png"
  7026. alt
  7027. />
  7028. <div style="margin: 5px 0">批量上传</div>
  7029. </div>
  7030. <div class="check" @click="addTools2(50)">
  7031. <img
  7032. src="../../assets/icon/checkNo.png"
  7033. alt
  7034. v-if="checktoolArray.indexOf(50) == -1"
  7035. />
  7036. <div class="checkDiv" v-else>
  7037. <img src="../../assets/icon/checkedIs.png" alt /><span
  7038. >已选择</span
  7039. >
  7040. </div>
  7041. </div>
  7042. </div>
  7043. </div>
  7044. <div class="toolSort" v-if="toolType == 3">
  7045. <div class="tool">
  7046. <div class="whiteBIcon" @click="addTools2(18)">
  7047. <img
  7048. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7049. alt
  7050. />
  7051. <div style="margin: 5px 0">训练平台</div>
  7052. </div>
  7053. <div class="check" @click="addTools2(18)">
  7054. <img
  7055. src="../../assets/icon/checkNo.png"
  7056. alt
  7057. v-if="checktoolArray.indexOf(18) == -1"
  7058. />
  7059. <div class="checkDiv" v-else>
  7060. <img src="../../assets/icon/checkedIs.png" alt /><span
  7061. >已选择</span
  7062. >
  7063. </div>
  7064. </div>
  7065. </div>
  7066. <div class="tool">
  7067. <div class="whiteBIcon" @click="addTools2(21)">
  7068. <img
  7069. src="../../assets/icon/fourthToolList/program.png"
  7070. alt
  7071. />
  7072. <div style="margin: 5px 0">AIoT Blockly</div>
  7073. </div>
  7074. <div class="check" @click="addTools2(21)">
  7075. <img
  7076. src="../../assets/icon/checkNo.png"
  7077. alt
  7078. v-if="checktoolArray.indexOf(21) == -1"
  7079. />
  7080. <div class="checkDiv" v-else>
  7081. <img src="../../assets/icon/checkedIs.png" alt /><span
  7082. >已选择</span
  7083. >
  7084. </div>
  7085. </div>
  7086. </div>
  7087. <div class="tool">
  7088. <div class="whiteBIcon" @click="addTools2(23)">
  7089. <img
  7090. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7091. alt
  7092. />
  7093. <div style="margin: 5px 0">AI Python</div>
  7094. </div>
  7095. <div class="check" @click="addTools2(23)">
  7096. <img
  7097. src="../../assets/icon/checkNo.png"
  7098. alt
  7099. v-if="checktoolArray.indexOf(23) == -1"
  7100. />
  7101. <div class="checkDiv" v-else>
  7102. <img src="../../assets/icon/checkedIs.png" alt /><span
  7103. >已选择</span
  7104. >
  7105. </div>
  7106. </div>
  7107. </div>
  7108. <div class="tool">
  7109. <div class="whiteBIcon" @click="addTools2(24)">
  7110. <img
  7111. src="../../assets/icon/fourthToolList/AIprogram.png"
  7112. alt
  7113. />
  7114. <div style="margin: 5px 0">AI Blockly</div>
  7115. </div>
  7116. <div class="check" @click="addTools2(24)">
  7117. <img
  7118. src="../../assets/icon/checkNo.png"
  7119. alt
  7120. v-if="checktoolArray.indexOf(24) == -1"
  7121. />
  7122. <div class="checkDiv" v-else>
  7123. <img src="../../assets/icon/checkedIs.png" alt /><span
  7124. >已选择</span
  7125. >
  7126. </div>
  7127. </div>
  7128. </div>
  7129. <div class="tool">
  7130. <div class="whiteBIcon" @click="addTools2(32)">
  7131. <img
  7132. src="../../assets/icon/thirdToolList/code.png"
  7133. alt
  7134. />
  7135. <div style="margin: 5px 0">源码编辑</div>
  7136. </div>
  7137. <div class="check" @click="addTools2(32)">
  7138. <img
  7139. src="../../assets/icon/checkNo.png"
  7140. alt
  7141. v-if="checktoolArray.indexOf(32) == -1"
  7142. />
  7143. <div class="checkDiv" v-else>
  7144. <img src="../../assets/icon/checkedIs.png" alt /><span
  7145. >已选择</span
  7146. >
  7147. </div>
  7148. </div>
  7149. </div>
  7150. <div class="tool">
  7151. <div class="whiteBIcon" @click="addTools2(57)">
  7152. <img
  7153. src="../../assets/icon/fourthToolList/cocopi.png"
  7154. alt
  7155. />
  7156. <div style="margin: 5px 0">CocoPi</div>
  7157. </div>
  7158. <div class="check" @click="addTools2(57)">
  7159. <img
  7160. src="../../assets/icon/checkNo.png"
  7161. alt
  7162. v-if="checktoolArray.indexOf(57) == -1"
  7163. />
  7164. <div class="checkDiv" v-else>
  7165. <img src="../../assets/icon/checkedIs.png" alt /><span
  7166. >已选择</span
  7167. >
  7168. </div>
  7169. </div>
  7170. </div>
  7171. <div class="tool">
  7172. <div class="whiteBIcon" @click="addTools2(63)">
  7173. <img
  7174. src="../../assets/icon/fourthToolList/Wood.png"
  7175. alt
  7176. />
  7177. <div style="margin: 5px 0">海龟编程</div>
  7178. </div>
  7179. <div class="check" @click="addTools2(63)">
  7180. <img
  7181. src="../../assets/icon/checkNo.png"
  7182. alt
  7183. v-if="checktoolArray.indexOf(63) == -1"
  7184. />
  7185. <div class="checkDiv" v-else>
  7186. <img src="../../assets/icon/checkedIs.png" alt /><span
  7187. >已选择</span
  7188. >
  7189. </div>
  7190. </div>
  7191. </div>
  7192. </div>
  7193. <div class="toolSort" v-if="toolType == 5">
  7194. <div class="tool">
  7195. <div class="whiteBIcon" @click="addTools2(28)">
  7196. <img
  7197. src="../../assets/icon/secondToolList/translation.png"
  7198. alt
  7199. />
  7200. <div style="margin: 5px 0">翻译</div>
  7201. </div>
  7202. <div class="check" @click="addTools2(28)">
  7203. <img
  7204. src="../../assets/icon/checkNo.png"
  7205. alt
  7206. v-if="checktoolArray.indexOf(28) == -1"
  7207. />
  7208. <div class="checkDiv" v-else>
  7209. <img src="../../assets/icon/checkedIs.png" alt /><span
  7210. >已选择</span
  7211. >
  7212. </div>
  7213. </div>
  7214. </div>
  7215. <div class="tool">
  7216. <div class="whiteBIcon" @click="addTools2(31)">
  7217. <img
  7218. src="../../assets/icon/secondToolList/networkPanel.png"
  7219. alt
  7220. />
  7221. <div style="margin: 5px 0">数字画板</div>
  7222. </div>
  7223. <div class="check" @click="addTools2(31)">
  7224. <img
  7225. src="../../assets/icon/checkNo.png"
  7226. alt
  7227. v-if="checktoolArray.indexOf(31) == -1"
  7228. />
  7229. <div class="checkDiv" v-else>
  7230. <img src="../../assets/icon/checkedIs.png" alt /><span
  7231. >已选择</span
  7232. >
  7233. </div>
  7234. </div>
  7235. </div>
  7236. <div class="tool">
  7237. <div class="whiteBIcon" @click="addTools2(39)">
  7238. <img
  7239. src="../../assets/icon/secondToolList/GeoGebra.png"
  7240. alt
  7241. />
  7242. <div style="margin: 5px 0">GeoGebra</div>
  7243. </div>
  7244. <div class="check" @click="addTools2(39)">
  7245. <img
  7246. src="../../assets/icon/checkNo.png"
  7247. alt
  7248. v-if="checktoolArray.indexOf(39) == -1"
  7249. />
  7250. <div class="checkDiv" v-else>
  7251. <img src="../../assets/icon/checkedIs.png" alt /><span
  7252. >已选择</span
  7253. >
  7254. </div>
  7255. </div>
  7256. </div>
  7257. <div class="tool">
  7258. <div class="whiteBIcon" @click="addTools2(66)">
  7259. <img
  7260. src="../../assets/icon/secondToolList/formulaEdi.png"
  7261. alt
  7262. />
  7263. <div style="margin: 5px 0">公式编辑</div>
  7264. </div>
  7265. <div class="check" @click="addTools2(66)">
  7266. <img
  7267. src="../../assets/icon/checkNo.png"
  7268. alt
  7269. v-if="checktoolArray.indexOf(66) == -1"
  7270. />
  7271. <div class="checkDiv" v-else>
  7272. <img src="../../assets/icon/checkedIs.png" alt /><span
  7273. >已选择</span
  7274. >
  7275. </div>
  7276. </div>
  7277. </div>
  7278. <div class="tool">
  7279. <div class="whiteBIcon" @click="addTools2(67)">
  7280. <img
  7281. src="../../assets/icon/secondToolList/molStr.png"
  7282. alt
  7283. />
  7284. <div style="margin: 5px 0">分子结构</div>
  7285. </div>
  7286. <div class="check" @click="addTools2(67)">
  7287. <img
  7288. src="../../assets/icon/checkNo.png"
  7289. alt
  7290. v-if="checktoolArray.indexOf(67) == -1"
  7291. />
  7292. <div class="checkDiv" v-else>
  7293. <img src="../../assets/icon/checkedIs.png" alt /><span
  7294. >已选择</span
  7295. >
  7296. </div>
  7297. </div>
  7298. </div>
  7299. <div class="tool">
  7300. <div class="whiteBIcon" @click="addTools2(68)">
  7301. <img
  7302. src="../../assets/icon/secondToolList/timeAxis.png"
  7303. alt
  7304. />
  7305. <div style="margin: 5px 0">时间轴</div>
  7306. </div>
  7307. <div class="check" @click="addTools2(68)">
  7308. <img
  7309. src="../../assets/icon/checkNo.png"
  7310. alt
  7311. v-if="checktoolArray.indexOf(68) == -1"
  7312. />
  7313. <div class="checkDiv" v-else>
  7314. <img src="../../assets/icon/checkedIs.png" alt /><span
  7315. >已选择</span
  7316. >
  7317. </div>
  7318. </div>
  7319. </div>
  7320. </div>
  7321. <div class="toolSort" v-if="toolType == 7">
  7322. <div class="tool">
  7323. <div class="whiteBIcon" @click="addTools2(40)">
  7324. <img
  7325. src="../../assets/icon/secondToolList/eval.png"
  7326. alt
  7327. />
  7328. <div style="margin: 5px 0">个人评价</div>
  7329. </div>
  7330. <div class="check" @click="addTools2(40)">
  7331. <img
  7332. src="../../assets/icon/checkNo.png"
  7333. alt
  7334. v-if="checktoolArray.indexOf(40) == -1"
  7335. />
  7336. <div class="checkDiv" v-else>
  7337. <img src="../../assets/icon/checkedIs.png" alt /><span
  7338. >已选择</span
  7339. >
  7340. </div>
  7341. </div>
  7342. </div>
  7343. </div>
  7344. <div class="toolSort" v-if="toolType == 4">
  7345. <div class="tool">
  7346. <div class="whiteBIcon" @click="addTools2(26)">
  7347. <img
  7348. src="../../assets/icon/thirdToolList/courseDesign.png"
  7349. alt
  7350. />
  7351. <div style="margin: 5px 0">课程设计</div>
  7352. </div>
  7353. <div class="check" @click="addTools2(26)">
  7354. <img
  7355. src="../../assets/icon/checkNo.png"
  7356. alt
  7357. v-if="checktoolArray.indexOf(26) == -1"
  7358. />
  7359. <div class="checkDiv" v-else>
  7360. <img src="../../assets/icon/checkedIs.png" alt /><span
  7361. >已选择</span
  7362. >
  7363. </div>
  7364. </div>
  7365. </div>
  7366. <div class="tool">
  7367. <div class="whiteBIcon" @click="addTools2(25)">
  7368. <img
  7369. src="../../assets/icon/thirdToolList/evalua.png"
  7370. alt
  7371. />
  7372. <div style="margin: 5px 0">目标管理</div>
  7373. </div>
  7374. <div class="check" @click="addTools2(25)">
  7375. <img
  7376. src="../../assets/icon/checkNo.png"
  7377. alt
  7378. v-if="checktoolArray.indexOf(25) == -1"
  7379. />
  7380. <div class="checkDiv" v-else>
  7381. <img src="../../assets/icon/checkedIs.png" alt /><span
  7382. >已选择</span
  7383. >
  7384. </div>
  7385. </div>
  7386. </div>
  7387. </div>
  7388. </div>
  7389. </div>
  7390. </div>
  7391. </div> -->
  7392. <div
  7393. class="vedioBox"
  7394. style="margin-top: 10px; border-radius: 20px"
  7395. v-if="
  7396. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7397. .eList &&
  7398. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7399. .eList.length &&
  7400. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7401. .eList.length > 0 &&
  7402. tType != 2
  7403. "
  7404. >
  7405. <div
  7406. class="queTop"
  7407. style="
  7408. font-size: 20px;
  7409. padding: 15px 0 15px 37px;
  7410. font-weight: bold;
  7411. "
  7412. >
  7413. <!-- <div class="question" style="width: 30px">
  7414. <img src="../assets/icon/toolIcon.png" alt />
  7415. </div>
  7416. <div class="queTitle">
  7417. <div>工具</div>
  7418. </div>-->
  7419. 评一评
  7420. </div>
  7421. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7422. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7423. <el-table
  7424. :data="
  7425. chapInfoList[courseType].chapterInfo[0].taskJson[
  7426. taskCount
  7427. ].eList
  7428. "
  7429. :header-cell-style="{ background: '#F0F4FA' }"
  7430. :row-class-name="tableRowClassName"
  7431. border
  7432. stripe
  7433. style="width: 100%"
  7434. >
  7435. <el-table-column
  7436. label="评价名称"
  7437. align="center"
  7438. >
  7439. <template slot-scope="scope"
  7440. ><div>{{ scope.row.value }}</div></template
  7441. >
  7442. </el-table-column>
  7443. <el-table-column
  7444. label="评价描述"
  7445. align="center"
  7446. >
  7447. <template slot-scope="scope"
  7448. ><div>
  7449. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7450. </div></template
  7451. >
  7452. </el-table-column>
  7453. <el-table-column label="目标" align="center">
  7454. <template slot-scope="scope"
  7455. ><div>
  7456. {{
  7457. scope.row.target
  7458. ? scope.row.target[scope.row.target.length - 1]
  7459. : "-"
  7460. }}
  7461. </div></template
  7462. ></el-table-column
  7463. >
  7464. </el-table>
  7465. <!-- <div
  7466. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7467. .chapterInfo[0].taskJson[taskCount].eList"
  7468. :key="eIndex"
  7469. class="elist_input_box"
  7470. >
  7471. <div style="width: 95%">
  7472. <div
  7473. style="
  7474. display: flex;
  7475. flex-direction: row;
  7476. flex-wrap: nowrap;
  7477. align-items: center;
  7478. "
  7479. >
  7480. <div style="max-width: calc(100% - 285px)">
  7481. <span>{{ eItem.value }}</span>
  7482. </div>
  7483. <div
  7484. style="
  7485. padding-left: 25px;
  7486. display: flex;
  7487. flex-direction: row;
  7488. align-items: center;
  7489. "
  7490. >
  7491. <el-rate
  7492. v-model="eItem.score"
  7493. :colors="colors"
  7494. disabled
  7495. ></el-rate>
  7496. </div>
  7497. </div>
  7498. <div class="elist_inptu_text" style="padding-left: 10px">
  7499. <span v-if="eItem.detail != ''">{{
  7500. eItem.detail
  7501. }}</span>
  7502. <span v-else style="color: #b2b1b3; font-size: 14px"
  7503. >暂无描述...</span
  7504. >
  7505. </div>
  7506. </div>
  7507. </div> -->
  7508. </div>
  7509. <div
  7510. v-if="evalua"
  7511. style="
  7512. border: 1px solid #e5e5e5;
  7513. max-width: 650px;
  7514. width: 100%;
  7515. margin-top: 20px;
  7516. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7517. "
  7518. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7519. >
  7520. <div class="e_add_top">
  7521. <div class="e_add_title" style="width: 100%">
  7522. <!-- <span>目标管理名称</span> -->
  7523. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7524. <img
  7525. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7526. src="../../assets/line.png"
  7527. class="cru_line"
  7528. style="
  7529. width: 125px;
  7530. height: 20px;
  7531. bottom: -10px;
  7532. left: 5px;
  7533. "
  7534. />
  7535. <!-- <el-input
  7536. v-model="eTitle"
  7537. placeholder="请输入名称"
  7538. @change="setMindData"
  7539. ></el-input>-->
  7540. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  7541. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  7542. </div>
  7543. </div>
  7544. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7545. <div class="e_add_list_pbox">
  7546. <div class="e_add_list_pbox_title">
  7547. <!-- <span class="type_title">切换模式</span> -->
  7548. <div class="type_content">
  7549. <span
  7550. :class="{ active: typeMode == 1 }"
  7551. @click="typeMode = 1"
  7552. >目标树</span
  7553. >
  7554. <span
  7555. :class="{ active: typeMode == 2 }"
  7556. @click="typeMode = 2"
  7557. >目标罗盘</span
  7558. >
  7559. <!-- <span
  7560. :class="{ active: typeMode == 3 }"
  7561. @click="typeMode = 3"
  7562. >目标看板</span
  7563. > -->
  7564. </div>
  7565. </div>
  7566. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7567. <Mind
  7568. :showBar="false"
  7569. :mindData="data"
  7570. style="width: 100%"
  7571. v-show="typeMode == 1"
  7572. ></Mind>
  7573. <Sunburst
  7574. :Josn="eJson"
  7575. :num="eJSONNum"
  7576. style="width: 100%"
  7577. v-if="typeMode == 2"
  7578. ></Sunburst>
  7579. <SeeBoard
  7580. :Josn="eJson"
  7581. :num="eJSONNum"
  7582. :ename="eTitle"
  7583. style="width: 100%"
  7584. v-if="typeMode == 3"
  7585. >
  7586. </SeeBoard>
  7587. </div>
  7588. </div>
  7589. </div>
  7590. </div>
  7591. </div>
  7592. </div>
  7593. <!-- <div
  7594. class="project_box"
  7595. style="margin-top: 15px; padding-bottom: 30px"
  7596. >
  7597. <div
  7598. style="
  7599. display: flex;
  7600. flex-wrap: nowrap;
  7601. flex-direction: column;
  7602. position: relative;
  7603. "
  7604. >
  7605. <div class="queTop">
  7606. <div class="question">
  7607. <img src="../../assets/icon/homeWork.png" alt="" />
  7608. </div>
  7609. <div class="queTitle">
  7610. <div>作业提交<span>(提交图文视频等)</span></div>
  7611. <div>:任务:{{ task.task }}</div>
  7612. </div>
  7613. </div>
  7614. <div class="ediBottom">
  7615. <div
  7616. class="addEditor"
  7617. style="margin-top: 23px"
  7618. @click="openAddWork"
  7619. v-if="!isNoHomeWork"
  7620. >
  7621. 选择文件
  7622. </div>
  7623. <div
  7624. class="addEditor"
  7625. style="margin-top: 23px"
  7626. @click="openAddWork"
  7627. v-else
  7628. >
  7629. 已提交
  7630. </div>
  7631. </div>
  7632. </div>
  7633. </div>-->
  7634. </div>
  7635. </div>
  7636. <el-dialog
  7637. title="作业提交"
  7638. :visible.sync="dialogVisible"
  7639. :append-to-body="true"
  7640. width="500px"
  7641. :before-close="handleClose"
  7642. class="dialog_change"
  7643. >
  7644. <div class="marginT">
  7645. <div>上传文件</div>
  7646. <div
  7647. class="chapter_add"
  7648. @click="addImg($event)"
  7649. v-if="studyJuri[0].cover.length == 0"
  7650. >
  7651. <div class="up_photo">
  7652. <img src="../../assets/icon/uploadImg.png" alt />
  7653. </div>
  7654. <!-- <input
  7655. type="file"
  7656. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7657. style="display: none"
  7658. @change="beforeUpload1($event, 1)"
  7659. /> -->
  7660. <input
  7661. type="file"
  7662. accept="*"
  7663. style="display: none"
  7664. @change="beforeUpload1($event, 1)"
  7665. />
  7666. <!-- <input
  7667. type="file"
  7668. accept="image/*"
  7669. capture="camera"
  7670. style="display: none"
  7671. @change="beforeUpload1($event, 1)"
  7672. /> -->
  7673. </div>
  7674. <div
  7675. class="chapter_add"
  7676. style="
  7677. display: flex;
  7678. width: 100%;
  7679. flex-direction: row;
  7680. flex-wrap: wrap;
  7681. justify-content: flex-start;
  7682. padding: 15px 0;
  7683. "
  7684. v-if="studyJuri[0].cover.length > 0"
  7685. >
  7686. <div class="upCover">
  7687. <img
  7688. :src="studyJuri[0].cover[0].url"
  7689. alt
  7690. v-if="fileType == 0"
  7691. />
  7692. <img :src="word" alt v-else-if="fileType == 1" />
  7693. <img :src="video" alt v-else-if="fileType == 2" />
  7694. <img :src="word2" alt v-else-if="fileType == 3" />
  7695. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7696. <div class="deleteWord" @click="clean(1)">
  7697. <img src="../../assets/icon/deleteWorks.png" alt />
  7698. </div>
  7699. </div>
  7700. </div>
  7701. </div>
  7702. <div
  7703. class="upload_send"
  7704. @click="addCourseWorks(taskCount)"
  7705. v-if="!proVisible"
  7706. >
  7707. 提交
  7708. </div>
  7709. </el-dialog>
  7710. </div>
  7711. </div>
  7712. <div
  7713. class="pButton"
  7714. @click="(pzDialog = true), selectPz()"
  7715. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7716. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7717. >
  7718. <!-- 批 -->
  7719. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7720. </div>
  7721. <div v-if="pzDialog == true" class="newDialogCss">
  7722. <div class="pzTop2">
  7723. <!-- <div>评论</div>
  7724. <div @click="pzDialog = false">
  7725. <img src="../../assets/close1.png" alt="" />
  7726. </div> -->
  7727. <div class="checkbox">
  7728. <div class="check" style="font-size: 25px; position: unset">
  7729. 评论
  7730. </div>
  7731. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7732. <el-option label="时间降序" :value="1"></el-option>
  7733. <el-option label="时间升序" :value="2"></el-option>
  7734. <el-option label="我的评课" :value="3"></el-option>
  7735. </el-select>
  7736. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7737. </div>
  7738. </div>
  7739. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7740. <div class="pzListBox" v-if="pzList && pzList.length">
  7741. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7742. <div class="pzNavTop">
  7743. <div>评</div>
  7744. <div>
  7745. {{
  7746. pz.username && pz.username.length > 5
  7747. ? pz.username.substring(0, 5) + "..."
  7748. : pz.username
  7749. }}的评论
  7750. </div>
  7751. <div
  7752. class="pzDelete"
  7753. v-if="pz.userid == userid"
  7754. @click="deletePz(pz.id)"
  7755. >
  7756. 删除
  7757. </div>
  7758. </div>
  7759. <div
  7760. @click="checkImg(getImgList(pz.content))"
  7761. class="pzContent cont"
  7762. v-html="pz.content"
  7763. v-if="pz.type == '1'"
  7764. ></div>
  7765. <div class="pzContent" v-if="pz.type == '2'">
  7766. <audio :src="pz.content" controls="controls" ref="audio">
  7767. Your browser does not support the audio element.
  7768. </audio>
  7769. </div>
  7770. <div class="pzContent" v-if="pz.type == '3'">
  7771. <img
  7772. :src="pz.content"
  7773. style="width: 90%; margin: 0 auto; display: block"
  7774. @click="previewImg(pz.content)"
  7775. />
  7776. </div>
  7777. <div class="timeAndReply">
  7778. <div class="time">
  7779. {{ pz.time }}
  7780. </div>
  7781. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7782. </div>
  7783. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7784. <div
  7785. v-for="(h, hIndex) in pz.hfList"
  7786. :key="hIndex"
  7787. class="hfItem"
  7788. >
  7789. <div class="whoReplyWho">
  7790. <div class="hfName">{{ h.username }}</div>
  7791. <div class="hfImg">
  7792. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7793. </div>
  7794. <div class="hfName">{{ pz.username }}</div>
  7795. </div>
  7796. <div class="hfContent" v-html="h.content"></div>
  7797. <div class="hfBottom">
  7798. <div class="hfTime">{{ h.time }}</div>
  7799. <div
  7800. class="deleteHfItem"
  7801. @click="deleteReply(h.id)"
  7802. v-if="userid == h.userid"
  7803. >
  7804. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7805. </div>
  7806. </div>
  7807. </div>
  7808. </div>
  7809. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7810. <div class="replyInput">
  7811. <el-input v-model="reply[pzIndex]"></el-input>
  7812. </div>
  7813. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7814. </div> -->
  7815. </div>
  7816. </div>
  7817. <div class="noPz" v-else>
  7818. <img src="../../assets/icon/noPz.png" alt="" />
  7819. </div>
  7820. <div class="addPzButton">
  7821. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7822. 添加评论
  7823. </div>
  7824. <!-- <div class="img1">
  7825. <div @click="(addPzDialog = true), (pzType = 2)">
  7826. <img src="../../assets/audio.png" /><span>音频</span>
  7827. </div>
  7828. </div> -->
  7829. </div>
  7830. </div>
  7831. </div>
  7832. <div
  7833. v-if="toolDialogVisible == true"
  7834. class="toolMask"
  7835. @click="toolDialogVisible = false"
  7836. ></div>
  7837. <div v-if="toolDialogVisible == true" class="addToolCss">
  7838. <div class="toolTop">
  7839. <div style="font-weight: bold">新增工具</div>
  7840. <div @click="toolDialogVisible = false">
  7841. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7842. </div>
  7843. </div>
  7844. <div class="tool_box">
  7845. <div class="tool_type_box">
  7846. <div class="chooseWho">
  7847. <div
  7848. :class="toolType == 0 ? 'isChooseActive' : ''"
  7849. @click="(toolType = 0), $forceUpdate()"
  7850. >
  7851. 互动类
  7852. </div>
  7853. <div
  7854. :class="toolType == 1 ? 'isChooseActive' : ''"
  7855. @click="(toolType = 1), $forceUpdate()"
  7856. >
  7857. 思维类
  7858. </div>
  7859. <div
  7860. :class="toolType == 2 ? 'isChooseActive' : ''"
  7861. @click="(toolType = 2), $forceUpdate()"
  7862. >
  7863. 测评类
  7864. </div>
  7865. <div
  7866. :class="toolType == 3 ? 'isChooseActive' : ''"
  7867. @click="(toolType = 3), $forceUpdate()"
  7868. >
  7869. 编程类
  7870. </div>
  7871. <div
  7872. :class="toolType == 5 ? 'isChooseActive' : ''"
  7873. @click="(toolType = 5), $forceUpdate()"
  7874. >
  7875. 学科类
  7876. </div>
  7877. </div>
  7878. </div>
  7879. <div>
  7880. <div class="toolSort" v-if="toolType == 0">
  7881. <div
  7882. class="tool"
  7883. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7884. @click="addTools2(10)"
  7885. >
  7886. <div class="whiteBIcon">
  7887. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7888. <div style="margin: 5px 0">倒计时</div>
  7889. </div>
  7890. <div class="check">
  7891. <div
  7892. v-if="checktoolArray.indexOf(10) == -1"
  7893. class="noChoose"
  7894. ></div>
  7895. <div v-else class="isChoose"></div>
  7896. </div>
  7897. </div>
  7898. <div
  7899. class="tool"
  7900. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7901. @click="addTools2(65)"
  7902. >
  7903. <div class="whiteBIcon">
  7904. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7905. <div style="margin: 5px 0">挑人</div>
  7906. </div>
  7907. <div class="check">
  7908. <div
  7909. v-if="checktoolArray.indexOf(65) == -1"
  7910. class="noChoose"
  7911. ></div>
  7912. <div v-else class="isChoose"></div>
  7913. </div>
  7914. </div>
  7915. </div>
  7916. <div class="toolSort" v-if="toolType == 1">
  7917. <div
  7918. class="tool"
  7919. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7920. @click="addTools2(7)"
  7921. >
  7922. <div class="whiteBIcon">
  7923. <img
  7924. src="../../assets/icon/secondToolList/mindNetwork.png"
  7925. alt
  7926. />
  7927. <div style="margin: 5px 0">思维网格</div>
  7928. </div>
  7929. <div class="check">
  7930. <div
  7931. v-if="checktoolArray.indexOf(7) == -1"
  7932. class="noChoose"
  7933. ></div>
  7934. <div v-else class="isChoose"></div>
  7935. </div>
  7936. </div>
  7937. <div
  7938. class="tool"
  7939. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7940. @click="addTools2(1)"
  7941. >
  7942. <div class="whiteBIcon">
  7943. <img
  7944. src="../../assets/icon/secondToolList/whiteBoard.png"
  7945. alt
  7946. />
  7947. <div style="margin: 5px 0">电子白板</div>
  7948. </div>
  7949. <div class="check">
  7950. <div
  7951. v-if="checktoolArray.indexOf(1) == -1"
  7952. class="noChoose"
  7953. ></div>
  7954. <div v-else class="isChoose"></div>
  7955. </div>
  7956. </div>
  7957. <div
  7958. class="tool"
  7959. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7960. @click="addTools2(52)"
  7961. >
  7962. <div class="whiteBIcon">
  7963. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7964. <div style="margin: 5px 0">文档</div>
  7965. </div>
  7966. <div class="check">
  7967. <div
  7968. v-if="checktoolArray.indexOf(52) == -1"
  7969. class="noChoose"
  7970. ></div>
  7971. <div v-else class="isChoose"></div>
  7972. </div>
  7973. </div>
  7974. <div
  7975. class="tool"
  7976. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7977. @click="addTools2(3)"
  7978. >
  7979. <div class="whiteBIcon">
  7980. <img
  7981. src="../../assets/icon/secondToolList/mindMapping.png"
  7982. alt
  7983. />
  7984. <div style="margin: 5px 0">思维导图</div>
  7985. </div>
  7986. <div class="check">
  7987. <div
  7988. v-if="checktoolArray.indexOf(3) == -1"
  7989. class="noChoose"
  7990. ></div>
  7991. <div v-else class="isChoose"></div>
  7992. </div>
  7993. </div>
  7994. <div
  7995. class="tool"
  7996. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7997. @click="addTools2(48)"
  7998. >
  7999. <div class="whiteBIcon">
  8000. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8001. <div style="margin: 5px 0">表格</div>
  8002. </div>
  8003. <div class="check">
  8004. <div
  8005. v-if="checktoolArray.indexOf(48) == -1"
  8006. class="noChoose"
  8007. ></div>
  8008. <div v-else class="isChoose"></div>
  8009. </div>
  8010. </div>
  8011. </div>
  8012. <div class="toolSort" v-if="toolType == 6">
  8013. <div v-show="tooC == 49">
  8014. <img
  8015. @click="addTools(tooC, toolIndex, taskCount)"
  8016. src="../../assets/icon/fourthToolList/group.png"
  8017. alt
  8018. />
  8019. <div style="margin: 5px 0">学生分组</div>
  8020. </div>
  8021. </div>
  8022. <div class="toolSort" v-if="toolType == 2">
  8023. <div
  8024. class="tool"
  8025. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8026. @click="addTools2(16)"
  8027. >
  8028. <div class="whiteBIcon">
  8029. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8030. <div style="margin: 5px 0">作业提交</div>
  8031. </div>
  8032. <div class="check">
  8033. <div
  8034. v-if="checktoolArray.indexOf(16) == -1"
  8035. class="noChoose"
  8036. ></div>
  8037. <div v-else class="isChoose"></div>
  8038. </div>
  8039. </div>
  8040. <div
  8041. class="tool"
  8042. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8043. @click="addTools2(50)"
  8044. >
  8045. <div class="whiteBIcon">
  8046. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8047. <div style="margin: 5px 0">批量上传</div>
  8048. </div>
  8049. <div class="check">
  8050. <div
  8051. v-if="checktoolArray.indexOf(50) == -1"
  8052. class="noChoose"
  8053. ></div>
  8054. <div v-else class="isChoose"></div>
  8055. </div>
  8056. </div>
  8057. </div>
  8058. <div class="toolSort" v-if="toolType == 3">
  8059. <div
  8060. class="tool"
  8061. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8062. @click="addTools2(18)"
  8063. >
  8064. <div class="whiteBIcon">
  8065. <img
  8066. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8067. alt
  8068. />
  8069. <div style="margin: 5px 0">训练平台</div>
  8070. </div>
  8071. <div class="check">
  8072. <div
  8073. v-if="checktoolArray.indexOf(18) == -1"
  8074. class="noChoose"
  8075. ></div>
  8076. <div v-else class="isChoose"></div>
  8077. </div>
  8078. </div>
  8079. <div
  8080. class="tool"
  8081. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8082. @click="addTools2(21)"
  8083. >
  8084. <div class="whiteBIcon">
  8085. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8086. <div style="margin: 5px 0">AIoT Blockly</div>
  8087. </div>
  8088. <div class="check">
  8089. <div
  8090. v-if="checktoolArray.indexOf(21) == -1"
  8091. class="noChoose"
  8092. ></div>
  8093. <div v-else class="isChoose"></div>
  8094. </div>
  8095. </div>
  8096. <div
  8097. class="tool"
  8098. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8099. @click="addTools2(23)"
  8100. >
  8101. <div class="whiteBIcon">
  8102. <img
  8103. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8104. alt
  8105. />
  8106. <div style="margin: 5px 0">AI Python</div>
  8107. </div>
  8108. <div class="check">
  8109. <div
  8110. v-if="checktoolArray.indexOf(23) == -1"
  8111. class="noChoose"
  8112. ></div>
  8113. <div v-else class="isChoose"></div>
  8114. </div>
  8115. </div>
  8116. <div
  8117. class="tool"
  8118. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8119. @click="addTools2(24)"
  8120. >
  8121. <div class="whiteBIcon">
  8122. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8123. <div style="margin: 5px 0">AI Blockly</div>
  8124. </div>
  8125. <div class="check">
  8126. <div
  8127. v-if="checktoolArray.indexOf(24) == -1"
  8128. class="noChoose"
  8129. ></div>
  8130. <div v-else class="isChoose"></div>
  8131. </div>
  8132. </div>
  8133. <div
  8134. class="tool"
  8135. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8136. @click="addTools2(32)"
  8137. >
  8138. <div class="whiteBIcon">
  8139. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8140. <div style="margin: 5px 0">源码编辑</div>
  8141. </div>
  8142. <div class="check">
  8143. <div
  8144. v-if="checktoolArray.indexOf(32) == -1"
  8145. class="noChoose"
  8146. ></div>
  8147. <div v-else class="isChoose"></div>
  8148. </div>
  8149. </div>
  8150. <div
  8151. class="tool"
  8152. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8153. @click="addTools2(57)"
  8154. >
  8155. <div class="whiteBIcon">
  8156. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8157. <div style="margin: 5px 0">CocoPi</div>
  8158. </div>
  8159. <div class="check">
  8160. <div
  8161. v-if="checktoolArray.indexOf(57) == -1"
  8162. class="noChoose"
  8163. ></div>
  8164. <div v-else class="isChoose"></div>
  8165. </div>
  8166. </div>
  8167. <div
  8168. class="tool"
  8169. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8170. @click="addTools2(63)"
  8171. >
  8172. <div class="whiteBIcon">
  8173. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8174. <div style="margin: 5px 0">海龟编程</div>
  8175. </div>
  8176. <div class="check">
  8177. <div
  8178. v-if="checktoolArray.indexOf(63) == -1"
  8179. class="noChoose"
  8180. ></div>
  8181. <div v-else class="isChoose"></div>
  8182. </div>
  8183. </div>
  8184. </div>
  8185. <div class="toolSort" v-if="toolType == 7">
  8186. <div
  8187. class="tool"
  8188. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8189. @click="addTools2(40)"
  8190. >
  8191. <div class="whiteBIcon">
  8192. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8193. <div style="margin: 5px 0">个人评价</div>
  8194. </div>
  8195. <div class="check">
  8196. <div
  8197. v-if="checktoolArray.indexOf(40) == -1"
  8198. class="noChoose"
  8199. ></div>
  8200. <div v-else class="isChoose"></div>
  8201. </div>
  8202. </div>
  8203. </div>
  8204. <div class="toolSort" v-if="toolType == 5">
  8205. <div
  8206. class="tool"
  8207. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8208. @click="addTools2(28)"
  8209. >
  8210. <div class="whiteBIcon">
  8211. <img
  8212. src="../../assets/icon/secondToolList/translation.png"
  8213. alt
  8214. />
  8215. <div style="margin: 5px 0">翻译</div>
  8216. </div>
  8217. <div class="check">
  8218. <div
  8219. v-if="checktoolArray.indexOf(28) == -1"
  8220. class="noChoose"
  8221. ></div>
  8222. <div v-else class="isChoose"></div>
  8223. </div>
  8224. </div>
  8225. <div
  8226. class="tool"
  8227. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8228. @click="addTools2(31)"
  8229. >
  8230. <div class="whiteBIcon">
  8231. <img
  8232. src="../../assets/icon/secondToolList/networkPanel.png"
  8233. alt
  8234. />
  8235. <div style="margin: 5px 0">数字画板</div>
  8236. </div>
  8237. <div class="check">
  8238. <div
  8239. v-if="checktoolArray.indexOf(31) == -1"
  8240. class="noChoose"
  8241. ></div>
  8242. <div v-else class="isChoose"></div>
  8243. </div>
  8244. </div>
  8245. <div
  8246. class="tool"
  8247. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8248. @click="addTools2(39)"
  8249. >
  8250. <div class="whiteBIcon">
  8251. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8252. <div style="margin: 5px 0">GeoGebra</div>
  8253. </div>
  8254. <div class="check">
  8255. <div
  8256. v-if="checktoolArray.indexOf(39) == -1"
  8257. class="noChoose"
  8258. ></div>
  8259. <div v-else class="isChoose"></div>
  8260. </div>
  8261. </div>
  8262. <div
  8263. class="tool"
  8264. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8265. @click="addTools2(66)"
  8266. >
  8267. <div class="whiteBIcon">
  8268. <img
  8269. src="../../assets/icon/secondToolList/formulaEdi.png"
  8270. alt
  8271. />
  8272. <div style="margin: 5px 0">公式编辑</div>
  8273. </div>
  8274. <div class="check">
  8275. <div
  8276. v-if="checktoolArray.indexOf(66) == -1"
  8277. class="noChoose"
  8278. ></div>
  8279. <div v-else class="isChoose"></div>
  8280. </div>
  8281. </div>
  8282. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8283. <div class="whiteBIcon" @click="addTools2(67)">
  8284. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8285. <div style="margin: 5px 0">分子结构</div>
  8286. </div>
  8287. <div class="check" @click="addTools2(67)">
  8288. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8289. <div v-else class="isChoose"></div>
  8290. </div>
  8291. </div> -->
  8292. <div
  8293. class="tool"
  8294. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8295. @click="addTools2(68)"
  8296. >
  8297. <div class="whiteBIcon">
  8298. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8299. <div style="margin: 5px 0">时间轴</div>
  8300. </div>
  8301. <div class="check">
  8302. <div
  8303. v-if="checktoolArray.indexOf(68) == -1"
  8304. class="noChoose"
  8305. ></div>
  8306. <div v-else class="isChoose"></div>
  8307. </div>
  8308. </div>
  8309. <!-- <div
  8310. class="tool"
  8311. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8312. @click="addTools2(69)"
  8313. >
  8314. <div class="whiteBIcon">
  8315. <img src="../../assets/icon/secondToolList/english.png" alt />
  8316. <div style="margin: 5px 0">英语写作</div>
  8317. </div>
  8318. <div class="check">
  8319. <div
  8320. v-if="checktoolArray.indexOf(69) == -1"
  8321. class="noChoose"
  8322. ></div>
  8323. <div v-else class="isChoose"></div>
  8324. </div>
  8325. </div> -->
  8326. </div>
  8327. <div class="toolSort" v-if="toolType == 4">
  8328. <div
  8329. class="tool"
  8330. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8331. @click="addTools2(26)"
  8332. >
  8333. <div class="whiteBIcon">
  8334. <img
  8335. src="../../assets/icon/thirdToolList/courseDesign.png"
  8336. alt
  8337. />
  8338. <div style="margin: 5px 0">课程设计</div>
  8339. </div>
  8340. <div class="check">
  8341. <div
  8342. v-if="checktoolArray.indexOf(26) == -1"
  8343. class="noChoose"
  8344. ></div>
  8345. <div v-else class="isChoose"></div>
  8346. </div>
  8347. </div>
  8348. <div
  8349. class="tool"
  8350. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8351. @click="addTools2(25)"
  8352. >
  8353. <div class="whiteBIcon">
  8354. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8355. <div style="margin: 5px 0">目标管理</div>
  8356. </div>
  8357. <div class="check">
  8358. <div
  8359. v-if="checktoolArray.indexOf(25) == -1"
  8360. class="noChoose"
  8361. ></div>
  8362. <div v-else class="isChoose"></div>
  8363. </div>
  8364. </div>
  8365. </div>
  8366. </div>
  8367. </div>
  8368. <span
  8369. slot="footer"
  8370. class="dialog-footer"
  8371. style="display: block; text-align: center; padding: 0 0 10px 0"
  8372. >
  8373. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8374. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8375. </span>
  8376. </div>
  8377. <div
  8378. v-if="replyDialogVisible == true"
  8379. class="addDialogCss"
  8380. v-el-drag-dialog
  8381. >
  8382. <div class="pzTop">
  8383. <div class="teacherPz">
  8384. <div class="teacherPzImg">
  8385. <img src="../../assets/icon/teacherPz.png" alt="" />
  8386. </div>
  8387. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8388. </div>
  8389. <div @click="replyDialogVisible = false">
  8390. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8391. </div>
  8392. </div>
  8393. <div class="addPzBox">
  8394. <!-- <div class="addPzCheck">
  8395. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8396. >文本</span
  8397. >
  8398. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8399. >音频</span
  8400. >
  8401. </div> -->
  8402. <div style="height: calc(100% - 50px)">
  8403. <editor-bar
  8404. class="binfo_input pzConText"
  8405. style="width: 100% !important; margin: 0 auto"
  8406. placeholder="请输入回复描述"
  8407. v-model="reply"
  8408. @change="change"
  8409. ></editor-bar>
  8410. </div>
  8411. <div class="addTextCss" @click="addHf">确定</div>
  8412. </div>
  8413. </div>
  8414. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8415. <div class="pzTop">
  8416. <div class="teacherPz">
  8417. <div class="teacherPzImg">
  8418. <img src="../../assets/icon/teacherPz.png" alt="" />
  8419. </div>
  8420. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8421. </div>
  8422. <div @click="addPzDialog = false">
  8423. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8424. </div>
  8425. </div>
  8426. <div class="addPzBox">
  8427. <div class="addPzCheck">
  8428. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8429. >文本</span
  8430. >
  8431. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8432. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8433. >音频</span
  8434. >
  8435. </div>
  8436. <div style="height: calc(100% - 95px)">
  8437. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8438. v-if="pzType == 1"></textarea> -->
  8439. <editor-bar
  8440. class="binfo_input pzConText"
  8441. style="width: 100% !important"
  8442. placeholder="请输入任务描述"
  8443. v-model="pzConText"
  8444. @change="change"
  8445. v-if="pzType == 1"
  8446. ></editor-bar>
  8447. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8448. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8449. <div @click="addImg($event)">
  8450. <el-button type="primary">上传图片</el-button>
  8451. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8452. @change="beforeUpload1($event, 4)" />
  8453. </div>
  8454. </div> -->
  8455. </div>
  8456. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8457. 确定
  8458. </div>
  8459. </div>
  8460. </div>
  8461. <div v-if="proVisible" class="mask">
  8462. <div class="progressBox">
  8463. <!-- <div id="closePro" class="closeCss">
  8464. <img src="../../assets/icon/close.png" alt />
  8465. </div> -->
  8466. <div class="lbox">
  8467. <img src="../../assets/loading.gif" />上传中,请稍后
  8468. </div>
  8469. <div style="margin-bottom: 10px">
  8470. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8471. </div>
  8472. <el-progress
  8473. :text-inside="true"
  8474. :stroke-width="20"
  8475. :percentage="progress"
  8476. style="width: 80%"
  8477. ></el-progress>
  8478. </div>
  8479. </div>
  8480. <div v-if="proVisible2" class="mask">
  8481. <div class="progressBox">
  8482. <div class="lbox">
  8483. <img src="../../assets/loading.gif" />上传中,请稍后
  8484. </div>
  8485. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8486. </div>
  8487. </div>
  8488. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8489. <img width="100%" :src="dialogImageUrl" alt />
  8490. </el-dialog>
  8491. <el-dialog
  8492. :title="noteName != '' ? noteName : '查看问卷'"
  8493. :visible.sync="dialogVisible5"
  8494. :append-to-body="true"
  8495. width="1000px"
  8496. :before-close="handleClose"
  8497. class="dialog_diy dialog_diy3"
  8498. >
  8499. <div>
  8500. <div
  8501. class="a_add_title"
  8502. style="
  8503. display: flex;
  8504. flex-direction: row;
  8505. align-items: center;
  8506. justify-content: center;
  8507. "
  8508. >
  8509. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8510. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8511. </div>
  8512. <div class="a_addBox">
  8513. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8514. 题目内容
  8515. </div>
  8516. <div
  8517. class="a_add_box"
  8518. v-for="(item1, index1) in askJson.askCount"
  8519. :key="index1"
  8520. >
  8521. <div class="a_add_head">
  8522. <div style="display: flex">
  8523. <span class="askIndex"> {{ index1 + 1 }}</span>
  8524. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8525. </div>
  8526. <img
  8527. v-if="askJson.askJson[index1].img"
  8528. :src="askJson.askJson[index1].img"
  8529. style="height: 300px; margin-top: 10px; max-width: 100%"
  8530. />
  8531. </div>
  8532. <div class="a_add_body">
  8533. <div class="a_add_input">
  8534. <el-radio-group
  8535. v-model="radio[index1]"
  8536. v-if="
  8537. askJson.askJson[index1].type == '1' ||
  8538. !askJson.askJson[index1].type
  8539. "
  8540. >
  8541. <el-radio
  8542. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8543. .checkList"
  8544. :key="checkIndex"
  8545. :label="checkIndex"
  8546. :disabled="isAnswer"
  8547. class="redioStyle"
  8548. ><span v-html="item2"></span
  8549. ></el-radio>
  8550. </el-radio-group>
  8551. <el-checkbox-group
  8552. v-model="radio[index1]"
  8553. v-if="askJson.askJson[index1].type == '2'"
  8554. >
  8555. <el-checkbox
  8556. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8557. .checkList"
  8558. :key="checkIndex1"
  8559. :label="checkIndex1"
  8560. :disabled="isAnswer"
  8561. class="redioStyle"
  8562. ><span v-html="item2"></span>
  8563. </el-checkbox>
  8564. </el-checkbox-group>
  8565. </div>
  8566. </div>
  8567. </div>
  8568. </div>
  8569. </div>
  8570. <span slot="footer" class="dialog-footer">
  8571. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8572. >取 消</el-button
  8573. >
  8574. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8575. >确 定</el-button
  8576. >
  8577. </span>
  8578. </el-dialog>
  8579. <el-dialog
  8580. :title="noteName != '' ? noteName : '查看问卷'"
  8581. :visible.sync="dialogVisible5Teacher"
  8582. :append-to-body="true"
  8583. width="1000px"
  8584. :before-close="handleClose"
  8585. class="dialog_diy dialog_diy3"
  8586. >
  8587. <div>
  8588. <div class="w_name">
  8589. 学生姓名:<span>{{ sStudent.student }}</span>
  8590. </div>
  8591. <div
  8592. class="a_add_title"
  8593. style="
  8594. display: flex;
  8595. flex-direction: row;
  8596. align-items: center;
  8597. justify-content: center;
  8598. "
  8599. >
  8600. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8601. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8602. </div>
  8603. <div class="a_addBox">
  8604. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8605. 题目内容
  8606. </div>
  8607. <div
  8608. class="a_add_box"
  8609. v-for="(item1, index1) in askJson.askCount"
  8610. :key="index1"
  8611. >
  8612. <div class="a_add_head">
  8613. <div style="display: flex">
  8614. <span class="askIndex">{{ index1 + 1 }}</span>
  8615. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8616. </div>
  8617. <img
  8618. v-if="askJson.askJson[index1].img"
  8619. :src="askJson.askJson[index1].img"
  8620. style="height: 300px; margin-top: 10px; max-width: 100%"
  8621. />
  8622. </div>
  8623. <div class="a_add_body">
  8624. <div class="a_add_input">
  8625. <el-radio-group
  8626. v-model="radio[index1]"
  8627. v-if="
  8628. askJson.askJson[index1].type == '1' ||
  8629. !askJson.askJson[index1].type
  8630. "
  8631. >
  8632. <el-radio
  8633. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8634. .checkList"
  8635. :key="checkIndex"
  8636. :label="checkIndex"
  8637. :disabled="isAnswer"
  8638. class="redioStyle"
  8639. ><span v-html="item2"></span
  8640. ></el-radio>
  8641. </el-radio-group>
  8642. <el-checkbox-group
  8643. v-model="radio[index1]"
  8644. v-if="askJson.askJson[index1].type == '2'"
  8645. >
  8646. <el-checkbox
  8647. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8648. .checkList"
  8649. :key="checkIndex1"
  8650. :label="checkIndex1"
  8651. :disabled="isAnswer"
  8652. class="redioStyle"
  8653. ><span v-html="item2"></span>
  8654. </el-checkbox>
  8655. </el-checkbox-group>
  8656. </div>
  8657. </div>
  8658. </div>
  8659. </div>
  8660. </div>
  8661. <span slot="footer" class="dialog-footer">
  8662. <el-button
  8663. @click="dialogVisible5Teacher = false"
  8664. v-show="noteName == ''"
  8665. >取 消</el-button
  8666. >
  8667. <el-button
  8668. type="primary"
  8669. @click="addStudentAskTeacher"
  8670. v-show="noteName == ''"
  8671. >确 定</el-button
  8672. >
  8673. </span>
  8674. </el-dialog>
  8675. <el-dialog
  8676. :title="noteName != '' ? noteName : '查看选择题'"
  8677. :visible.sync="dialogVisibleChoice"
  8678. :append-to-body="true"
  8679. width="1000px"
  8680. :before-close="handleClose"
  8681. class="dialog_diy dialog_diy3"
  8682. >
  8683. <div>
  8684. <!-- <div class="a_add_title" style="
  8685. display: flex;
  8686. flex-direction: row;
  8687. align-items: center;
  8688. justify-content: center;
  8689. ">
  8690. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8691. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8692. </div> -->
  8693. <div class="a_addBox">
  8694. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8695. 题目内容
  8696. </div>
  8697. <div
  8698. class="a_add_box"
  8699. v-for="(item1, index1) in testJson.testCount"
  8700. :key="index1"
  8701. >
  8702. <div class="a_add_head">
  8703. <div style="display: flex">
  8704. <span class="askIndex">{{ index1 + 1 }}</span>
  8705. <div
  8706. v-if="testJson.testJson[index1].type == '1'"
  8707. style="margin-right: 5px; min-width: 70px"
  8708. >
  8709. (单选题)
  8710. </div>
  8711. <div
  8712. v-if="testJson.testJson[index1].type == '2'"
  8713. style="margin-right: 5px; min-width: 70px"
  8714. >
  8715. (多选题)
  8716. </div>
  8717. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8718. </div>
  8719. <img
  8720. v-if="testJson.testJson[index1].img"
  8721. :src="testJson.testJson[index1].img"
  8722. style="height: 300px; margin-top: 10px; max-width: 100%"
  8723. />
  8724. </div>
  8725. <div
  8726. class="timuImgBox"
  8727. v-if="
  8728. testJson.testJson[index1].timuList &&
  8729. testJson.testJson[index1].timuList.length
  8730. "
  8731. >
  8732. <div
  8733. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8734. :key="tIndex"
  8735. class="timuImg"
  8736. @click.stop="previewImg(timg.src)"
  8737. >
  8738. <img :src="timg.src" alt="" />
  8739. </div>
  8740. </div>
  8741. <div class="a_add_body">
  8742. <div class="a_add_input">
  8743. <el-radio-group
  8744. v-model="radio[index1]"
  8745. v-if="testJson.testJson[index1].type == '1'"
  8746. >
  8747. <div class="radioBox">
  8748. <el-radio
  8749. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8750. .checkList"
  8751. :key="checkIndex"
  8752. :label="checkIndex"
  8753. :disabled="isAnswer"
  8754. class="redioStyle"
  8755. >
  8756. <div
  8757. style="margin-right: 10px"
  8758. v-if="item2 && item2.imgType && item2.imgType == 1"
  8759. >
  8760. <div class="inImg" @click.stop="previewImg(item2.src)">
  8761. <img :src="item2.src" alt="" />
  8762. </div>
  8763. </div>
  8764. <span v-else v-html="item2"></span>
  8765. </el-radio>
  8766. </div>
  8767. </el-radio-group>
  8768. <el-checkbox-group
  8769. v-model="radio[index1]"
  8770. v-if="testJson.testJson[index1].type == '2'"
  8771. >
  8772. <div class="radioBox">
  8773. <el-checkbox
  8774. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8775. .checkList"
  8776. :key="checkIndex"
  8777. :label="checkIndex"
  8778. :disabled="isAnswer"
  8779. class="redioStyle"
  8780. >
  8781. <div
  8782. style="margin-right: 10px"
  8783. v-if="item2 && item2.imgType && item2.imgType == 1"
  8784. >
  8785. <div class="inImg" @click.stop="previewImg(item2.src)">
  8786. <img :src="item2.src" alt="" />
  8787. </div>
  8788. </div>
  8789. <span v-else v-html="item2"></span>
  8790. </el-checkbox>
  8791. </div>
  8792. </el-checkbox-group>
  8793. </div>
  8794. </div>
  8795. </div>
  8796. </div>
  8797. </div>
  8798. <span slot="footer" class="dialog-footer">
  8799. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8800. >取 消</el-button
  8801. >
  8802. <el-button
  8803. type="primary"
  8804. @click="addStudentTest"
  8805. v-show="noteName == ''"
  8806. >确 定</el-button
  8807. >
  8808. </span>
  8809. </el-dialog>
  8810. <el-dialog
  8811. :title="noteName != '' ? noteName : '查看选择题'"
  8812. :visible.sync="dialogVisibleChoiceTeacher"
  8813. :append-to-body="true"
  8814. width="1000px"
  8815. :before-close="handleClose"
  8816. class="dialog_diy dialog_diy3"
  8817. >
  8818. <div>
  8819. <div class="w_name">
  8820. 学生姓名:<span>{{ sStudent.student }}</span>
  8821. </div>
  8822. <div class="a_addBox">
  8823. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8824. 题目内容
  8825. </div>
  8826. <div
  8827. class="a_add_box"
  8828. v-for="(item1, index1) in testJson.testCount"
  8829. :key="index1"
  8830. >
  8831. <div class="a_add_head">
  8832. <div style="display: flex">
  8833. <span class="askIndex">{{ index1 + 1 }}</span>
  8834. <div
  8835. v-if="testJson.testJson[index1].type == '1'"
  8836. style="margin-right: 5px; min-width: 70px"
  8837. >
  8838. (单选题)
  8839. </div>
  8840. <div
  8841. v-if="testJson.testJson[index1].type == '2'"
  8842. style="margin-right: 5px; min-width: 70px"
  8843. >
  8844. (多选题)
  8845. </div>
  8846. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8847. </div>
  8848. <img
  8849. v-if="testJson.testJson[index1].img"
  8850. :src="testJson.testJson[index1].img"
  8851. style="height: 300px; margin-top: 10px; max-width: 100%"
  8852. />
  8853. </div>
  8854. <div
  8855. class="timuImgBox"
  8856. v-if="
  8857. testJson.testJson[index1].timuList &&
  8858. testJson.testJson[index1].timuList.length
  8859. "
  8860. >
  8861. <div
  8862. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8863. :key="tIndex"
  8864. class="timuImg"
  8865. @click.stop="previewImg(timg.src)"
  8866. >
  8867. <img :src="timg.src" alt="" />
  8868. </div>
  8869. </div>
  8870. <div class="a_add_body">
  8871. <div class="a_add_input">
  8872. <el-radio-group
  8873. v-model="radio[index1]"
  8874. v-if="testJson.testJson[index1].type == '1'"
  8875. >
  8876. <div class="radioBox">
  8877. <el-radio
  8878. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8879. .checkList"
  8880. :key="checkIndex"
  8881. :label="checkIndex"
  8882. :disabled="isAnswer"
  8883. class="redioStyle"
  8884. >
  8885. <div
  8886. style="margin-right: 10px"
  8887. v-if="item2 && item2.imgType && item2.imgType == 1"
  8888. >
  8889. <div class="inImg" @click.stop="previewImg(item2.src)">
  8890. <img :src="item2.src" alt="" />
  8891. </div>
  8892. </div>
  8893. <span v-else v-html="item2"></span>
  8894. </el-radio>
  8895. </div>
  8896. </el-radio-group>
  8897. <el-checkbox-group
  8898. v-model="radio[index1]"
  8899. v-if="testJson.testJson[index1].type == '2'"
  8900. >
  8901. <div class="radioBox">
  8902. <el-checkbox
  8903. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8904. .checkList"
  8905. :key="checkIndex"
  8906. :label="checkIndex"
  8907. :disabled="isAnswer"
  8908. class="redioStyle"
  8909. >
  8910. <div
  8911. style="margin-right: 10px"
  8912. v-if="item2 && item2.imgType && item2.imgType == 1"
  8913. >
  8914. <div class="inImg" @click.stop="previewImg(item2.src)">
  8915. <img :src="item2.src" alt="" />
  8916. </div>
  8917. </div>
  8918. <span v-else v-html="item2"></span>
  8919. </el-checkbox>
  8920. </div>
  8921. </el-checkbox-group>
  8922. </div>
  8923. </div>
  8924. </div>
  8925. </div>
  8926. </div>
  8927. <span slot="footer" class="dialog-footer">
  8928. <el-button
  8929. @click="dialogVisibleChoiceTeacher = false"
  8930. v-show="noteName == ''"
  8931. >取 消</el-button
  8932. >
  8933. <el-button
  8934. type="primary"
  8935. @click="addStudentTestTeacher"
  8936. v-show="noteName == ''"
  8937. >确 定</el-button
  8938. >
  8939. </span>
  8940. </el-dialog>
  8941. <el-dialog
  8942. title="查看富文本"
  8943. :visible.sync="dialogVisible1"
  8944. :append-to-body="true"
  8945. width="500px"
  8946. :before-close="handleClose"
  8947. class="dialog_diy textCss"
  8948. >
  8949. <el-form style="font-size: 20px">
  8950. <el-form-item label="文本标题" class="textTitle">
  8951. <div style="font-size: 20px">{{ text.name }}</div>
  8952. </el-form-item>
  8953. <div>富文本内容</div>
  8954. <div
  8955. v-html="text.url"
  8956. style="font-size: 18px; padding: 40px 0 0 0"
  8957. ></div>
  8958. </el-form>
  8959. <span slot="footer" class="dialog-footer">
  8960. <el-button type="primary" @click="dialogVisible1 = false"
  8961. >确定</el-button
  8962. >
  8963. </span>
  8964. </el-dialog>
  8965. <el-dialog
  8966. title="文件预览"
  8967. :visible.sync="dialogVisible3"
  8968. width="50%"
  8969. :before-close="handleClose"
  8970. class="dialog_diy"
  8971. :class="{ fullStyle: full }"
  8972. >
  8973. <div slot="title" class="header-title">
  8974. <div style="color: #fff">文件预览</div>
  8975. <div style="position: absolute; top: 19px; right: 50px">
  8976. <img
  8977. src="../../assets/full.png"
  8978. style="height: 16px; cursor: pointer"
  8979. alt=""
  8980. @click="fullTools"
  8981. />
  8982. </div>
  8983. </div>
  8984. <pdf
  8985. v-if="showPDF"
  8986. :pdfUrl="pptImgUrl"
  8987. style="width: 100%; height: 520px; overflow: auto"
  8988. :class="{ fullStyle: full }"
  8989. ></pdf>
  8990. <iframe
  8991. v-else
  8992. :src="pptImgUrl"
  8993. frameborder="0"
  8994. width="100%"
  8995. height="600"
  8996. :class="{ fullStyle: full }"
  8997. ></iframe>
  8998. </el-dialog>
  8999. <el-dialog
  9000. title="文件预览"
  9001. :visible.sync="dialogVisible6"
  9002. width="50%"
  9003. :before-close="handleClose"
  9004. class="dialog_diy"
  9005. >
  9006. <iframe
  9007. :src="pptImgUrl1"
  9008. frameborder="0"
  9009. width="100%"
  9010. height="600"
  9011. ></iframe>
  9012. </el-dialog>
  9013. <el-dialog
  9014. title="提示"
  9015. :visible.sync="dialogVisible4"
  9016. :append-to-body="true"
  9017. width="800px"
  9018. :before-close="handleClose"
  9019. class="dialog_diy notice"
  9020. >
  9021. <div>此功能暂未开放!</div>
  9022. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9023. </el-dialog>
  9024. <el-dialog
  9025. title="问答"
  9026. :visible.sync="answerDialogVisible"
  9027. :append-to-body="true"
  9028. width="800px"
  9029. :before-close="handleClose"
  9030. class="dialog_diy"
  9031. >
  9032. <div>
  9033. <div
  9034. style="
  9035. display: flex;
  9036. flex-wrap: nowrap;
  9037. flex-direction: column;
  9038. position: relative;
  9039. "
  9040. >
  9041. <div class="queTop" style="padding: 20px 0 20px 0">
  9042. <div class="question">
  9043. <img src="../../assets/icon/question.png" alt />
  9044. </div>
  9045. <div class="queTitle">
  9046. <div style="width: 90px; min-width: 90px">提问:</div>
  9047. <div>{{ answerQ }}</div>
  9048. </div>
  9049. </div>
  9050. <div class="ediBottom">
  9051. <textarea
  9052. rows="6"
  9053. class="binfo_input"
  9054. cols
  9055. style="width: 95%; height: 120px"
  9056. v-model="questionAnswer"
  9057. ></textarea>
  9058. </div>
  9059. </div>
  9060. </div>
  9061. <div slot="footer">
  9062. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9063. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9064. </div>
  9065. </el-dialog>
  9066. <el-dialog
  9067. title="问答"
  9068. :visible.sync="answerDialogVisibleTeacher"
  9069. :append-to-body="true"
  9070. width="800px"
  9071. :before-close="handleClose"
  9072. class="dialog_diy"
  9073. >
  9074. <div>
  9075. <div class="w_name">
  9076. 学生姓名:<span>{{ sStudent.student }}</span>
  9077. </div>
  9078. <div
  9079. style="
  9080. display: flex;
  9081. flex-wrap: nowrap;
  9082. flex-direction: column;
  9083. position: relative;
  9084. "
  9085. >
  9086. <div class="queTop" style="padding: 20px 0 20px 0">
  9087. <div class="question">
  9088. <img src="../../assets/icon/question.png" alt />
  9089. </div>
  9090. <div class="queTitle">
  9091. <div style="width: 90px; min-width: 90px">提问:</div>
  9092. <div>{{ answerQ }}</div>
  9093. </div>
  9094. </div>
  9095. <div class="ediBottom">
  9096. <textarea
  9097. rows="6"
  9098. class="binfo_input"
  9099. cols
  9100. style="width: 95%; height: 120px"
  9101. v-model="questionAnswer"
  9102. ></textarea>
  9103. </div>
  9104. </div>
  9105. </div>
  9106. <div slot="footer">
  9107. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9108. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9109. </div>
  9110. </el-dialog>
  9111. <el-dialog
  9112. title="倒计时"
  9113. :visible.sync="timeDialogVisible"
  9114. :append-to-body="true"
  9115. width="800px"
  9116. :before-close="handleClose"
  9117. class="dialog_diy"
  9118. >
  9119. <div>
  9120. <div style="margin-bottom: 20px; color: #999">
  9121. 提示:点击“+”或“-”修改倒计时时长。
  9122. </div>
  9123. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9124. </div>
  9125. <div slot="footer">
  9126. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9127. </div>
  9128. </el-dialog>
  9129. <el-dialog
  9130. title="权限设置"
  9131. :visible.sync="juriVisible"
  9132. :append-to-body="true"
  9133. width="400px"
  9134. :before-close="handleClose"
  9135. class="dialog_diy"
  9136. >
  9137. <div>
  9138. <div class="open_box">
  9139. <div class="switch_box">
  9140. <span>允许学生查看所有作业</span>
  9141. <el-switch
  9142. v-model="sIsOpen"
  9143. active-text=""
  9144. class="switchCss"
  9145. @change="updateSLook"
  9146. ></el-switch>
  9147. </div>
  9148. <div
  9149. class="switch_box"
  9150. v-if="
  9151. courseDetail.userid == userid ||
  9152. (courseDetail.course_teacher &&
  9153. courseDetail.course_teacher.indexOf(userid) != -1)
  9154. "
  9155. >
  9156. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9157. <span>禁止学生查看所有阶段</span>
  9158. <el-switch
  9159. v-model="IsLookOpen"
  9160. active-text=""
  9161. class="switchCss"
  9162. @change="updateLookOpen"
  9163. ></el-switch>
  9164. </div>
  9165. <div class="switch_box" v-if="courseDetail.userid == userid">
  9166. <span>开启跟随模式</span>
  9167. <el-switch
  9168. v-model="IsFollow"
  9169. active-text=""
  9170. class="switchCss"
  9171. @change="updateFollow"
  9172. ></el-switch>
  9173. </div>
  9174. </div>
  9175. </div>
  9176. <div slot="footer">
  9177. <el-button
  9178. style="background: #409efe; color: #fff"
  9179. @click="juriVisible = false"
  9180. >关 闭</el-button
  9181. >
  9182. </div>
  9183. </el-dialog>
  9184. <el-dialog
  9185. title="查看视频"
  9186. :visible.sync="videoVisible"
  9187. :append-to-body="true"
  9188. width="1000px"
  9189. :before-close="handleClose"
  9190. class="dialog_diy1"
  9191. >
  9192. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9193. <video-player
  9194. class="video-player vjs-custom-skin"
  9195. :playsinline="true"
  9196. :options="videoDetail"
  9197. @play="onPlayerPlay($event)"
  9198. style="width: 100%; height: 100%"
  9199. ></video-player>
  9200. </div>
  9201. <div slot="footer">
  9202. <el-button
  9203. style="background: #409efe; color: #fff"
  9204. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9205. >
  9206. 关 闭</el-button
  9207. >
  9208. </div>
  9209. </el-dialog>
  9210. <el-dialog
  9211. title="查看详情"
  9212. :visible.sync="commentDialogVisible"
  9213. :append-to-body="true"
  9214. width="800px"
  9215. :before-close="handleClose"
  9216. class="dialog_diy"
  9217. >
  9218. <div class="commentTop">
  9219. <div class="studentDetail">
  9220. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9221. <div class="nameAndTime">
  9222. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9223. <div>{{ commentDetail.time }}</div>
  9224. </div>
  9225. <div
  9226. class="returnBtn"
  9227. style="margin-left: auto; width: 80px"
  9228. v-if="
  9229. commentDetail.works &&
  9230. commentDetail.type == 0 &&
  9231. (tType == 1 || tType == 4)
  9232. "
  9233. @click="
  9234. showPicturePaint(
  9235. commentDetail.img ? commentDetail.img : commentDetail.works
  9236. )
  9237. "
  9238. >
  9239. 教师批注
  9240. </div>
  9241. </div>
  9242. <div
  9243. class="worksAnswer"
  9244. v-if="commentDetail.works && commentDetail.type == 2"
  9245. >
  9246. {{ JSON.parse(commentDetail.works)[0].answer }}
  9247. </div>
  9248. <div
  9249. class="worksAnswer"
  9250. v-if="commentDetail.works && commentDetail.type == 1"
  9251. >
  9252. <img
  9253. src="../../assets/teacherWork.png"
  9254. v-if="commentDetail.ateacher"
  9255. class="w_teachert"
  9256. />
  9257. <pdf
  9258. v-if="showPDF"
  9259. :pdfUrl="pptImgUrl"
  9260. style="width: 100%; height: 520px; overflow: auto"
  9261. :class="{ fullStyle: full }"
  9262. ></pdf>
  9263. <iframe
  9264. v-else
  9265. :src="pptImgUrl"
  9266. frameborder="0"
  9267. width="100%"
  9268. height="600"
  9269. :class="{ fullStyle: full }"
  9270. ></iframe>
  9271. </div>
  9272. <div
  9273. class="worksAnswer"
  9274. v-if="commentDetail.works && commentDetail.type == 0"
  9275. >
  9276. <img
  9277. src="../../assets/teacherWork.png"
  9278. v-if="commentDetail.ateacher"
  9279. class="w_teachert"
  9280. style="right: 105px"
  9281. />
  9282. <img
  9283. :src="commentDetail.works"
  9284. alt=""
  9285. @click="previewImg(commentDetail.works)"
  9286. />
  9287. </div>
  9288. <div
  9289. class="worksAnswer"
  9290. v-if="commentDetail.works && commentDetail.type == 3"
  9291. >
  9292. <img
  9293. src="../../assets/teacherWork.png"
  9294. v-if="commentDetail.ateacher"
  9295. class="w_teachert"
  9296. />
  9297. <video-player
  9298. class="video-player vjs-custom-skin"
  9299. :playsinline="true"
  9300. :options="videoDetail"
  9301. @play="onPlayerPlay($event)"
  9302. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9303. ></video-player>
  9304. </div>
  9305. <div
  9306. class="worksAnswer"
  9307. v-if="commentDetail.works && commentDetail.type == 10"
  9308. >
  9309. <div class="cont" v-html="commentDetail.works.text"></div>
  9310. </div>
  9311. <div
  9312. class="worksAnswer codeFileBox"
  9313. v-if="commentDetail.works && commentDetail.type == 12"
  9314. @click="downloadFile(commentDetail.works)"
  9315. >
  9316. <img src="../../assets/icon/codeFile.png" />
  9317. <div>点击下载文件</div>
  9318. </div>
  9319. <div
  9320. class="worksAnswer codeFileBox"
  9321. v-if="commentDetail.works && commentDetail.type == 15"
  9322. @click="
  9323. openCocoPi(
  9324. 57,
  9325. commentIndexJson.toolIndex,
  9326. commentDetail.userid,
  9327. commentDetail.sName
  9328. )
  9329. "
  9330. >
  9331. <img src="../../assets/icon/codeFile.png" />
  9332. <div>点击打开CocoPi</div>
  9333. </div>
  9334. <div
  9335. class="worksAnswer"
  9336. v-if="commentDetail.works && commentDetail.type == 13"
  9337. >
  9338. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9339. </div>
  9340. <div
  9341. class="worksAnswer"
  9342. v-if="commentDetail.works && commentDetail.type == 4"
  9343. >
  9344. <div class="evalCss">
  9345. <div class="nav">请选择星星进行评分</div>
  9346. <div class="middleBox" v-if="eScore.eStar">
  9347. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9348. <div class="nameAndrate">
  9349. <div>{{ e.value }}</div>
  9350. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9351. </div>
  9352. <div v-if="e.detail">{{ e.detail }}</div>
  9353. </div>
  9354. <div class="bz">
  9355. <textarea
  9356. disabled
  9357. rows="4"
  9358. class="pj"
  9359. style="
  9360. padding: 10px 5px;
  9361. width: 70%;
  9362. background: #f7f6f9;
  9363. font-size: 14px;
  9364. text-indent: 10px;
  9365. color: #000;
  9366. "
  9367. cols
  9368. v-model="eScore.eBzText"
  9369. placeholder="请输入评价内容..."
  9370. ></textarea>
  9371. </div>
  9372. </div>
  9373. </div>
  9374. </div>
  9375. <div class="comment">
  9376. <div class="commentList">
  9377. <div class="commentImg">
  9378. <img
  9379. @click="
  9380. isLikes(
  9381. commentDetail.wid,
  9382. userid,
  9383. 1,
  9384. null,
  9385. commentDetail.isLikes
  9386. )
  9387. "
  9388. :src="commentDetail.isLikes == true ? likes : noLikes"
  9389. alt=""
  9390. />
  9391. </div>
  9392. <div>{{ commentDetail.likesCount }}</div>
  9393. </div>
  9394. <div class="commentList">
  9395. <div class="commentImg">
  9396. <img src="../../assets/icon/comment/comment.png" alt="" />
  9397. </div>
  9398. <div>{{ commentDetail.commentCount }}</div>
  9399. </div>
  9400. </div>
  9401. <div class="drawPBox" v-if="commentDetail.img">
  9402. <span>教师批注</span>
  9403. <img
  9404. :src="commentDetail.img"
  9405. alt=""
  9406. @click="previewImg(commentDetail.img)"
  9407. />
  9408. <span
  9409. class="deleteImg"
  9410. v-if="tType == 1 || tType == 4"
  9411. @click.stop="deletePicturePaint(commentDetail.wid)"
  9412. style="
  9413. font-size: 14px;
  9414. width: auto !important;
  9415. color: #b4b4b4;
  9416. top: unset;
  9417. bottom: 0;
  9418. border: none;
  9419. padding: 0;
  9420. height: auto !important;
  9421. margin: 0;
  9422. "
  9423. >删除</span
  9424. >
  9425. </div>
  9426. </div>
  9427. <div class="commentBox">
  9428. <div class="pl">评论:</div>
  9429. <div style="max-height: 200px; overflow: auto">
  9430. <div
  9431. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9432. style="padding: 10px 0 0 0"
  9433. >
  9434. <div
  9435. class="studentDetail"
  9436. style="padding-top: 10px"
  9437. v-for="(co, coIndex) in commentDetail.commentJson"
  9438. :key="coIndex"
  9439. >
  9440. <div class="tx" style="min-width: 50px">
  9441. <img src="../../assets/avatar.png" alt="" />
  9442. </div>
  9443. <div class="plPerson">
  9444. <div class="plName">
  9445. <div>{{ co.commentPeople }}</div>
  9446. <div style="margin-left: 5px">
  9447. {{ co.commentTime }}
  9448. </div>
  9449. <div
  9450. class="deleteComment"
  9451. v-if="userid == co.userid"
  9452. @click="deleteComment(co.wid)"
  9453. >
  9454. 删除
  9455. </div>
  9456. </div>
  9457. <div class="plContent">{{ co.commentText }}</div>
  9458. </div>
  9459. </div>
  9460. </div>
  9461. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9462. </div>
  9463. </div>
  9464. <div style="margin-top: 10px">
  9465. <div class="displayBox">
  9466. <div
  9467. style="
  9468. color: #556db4;
  9469. font-size: 14px;
  9470. font-weight: bold;
  9471. padding-bottom: 10px;
  9472. "
  9473. >
  9474. 评价
  9475. </div>
  9476. <div class="easy_comment" v-if="false">
  9477. <div
  9478. v-for="(p, pIndex) in PlTextList"
  9479. :key="pIndex"
  9480. @click="fastText(p, 1)"
  9481. >
  9482. {{ p }}
  9483. </div>
  9484. </div>
  9485. </div>
  9486. <div>
  9487. <textarea
  9488. rows="3"
  9489. class="pj"
  9490. style="padding: 10px 5px"
  9491. cols
  9492. v-model="commentText"
  9493. placeholder="请输入评论"
  9494. ></textarea>
  9495. </div>
  9496. </div>
  9497. <div slot="footer">
  9498. <el-button
  9499. @click="
  9500. (commentDialogVisible = false),
  9501. (commentIndexJson = {}),
  9502. videoDetail.sources && videoDetail.sources[0]
  9503. ? (videoDetail.sources[0].src = '')
  9504. : ''
  9505. "
  9506. >取 消</el-button
  9507. >
  9508. <el-button
  9509. type="primary"
  9510. @click="addComment(commentDetail.wid, userid, 2)"
  9511. >确 定</el-button
  9512. >
  9513. </div>
  9514. </el-dialog>
  9515. <el-dialog
  9516. title="查看文档"
  9517. :visible.sync="fullDialogVisible"
  9518. :append-to-body="true"
  9519. width="100%"
  9520. :before-close="handleClose"
  9521. :show-close="false"
  9522. class="dialog_diy full_diy"
  9523. :class="{ full_diy2: fulltype == 3 }"
  9524. >
  9525. <div slot="title" class="header-title">
  9526. <div style="color: #fff">查看文档</div>
  9527. <div
  9528. @click="fullDialogVisible = false"
  9529. style="
  9530. cursor: pointer;
  9531. position: absolute;
  9532. top: 20px;
  9533. right: 20px;
  9534. color: #fff;
  9535. "
  9536. >
  9537. 退出全屏
  9538. </div>
  9539. </div>
  9540. <div style="height: 100%">
  9541. <div
  9542. class="wheel"
  9543. v-if="
  9544. fulltype == 2 &&
  9545. fullUrl.indexOf(
  9546. 'https://view.officeapps.live.com/op/view.aspx?src='
  9547. ) != -1
  9548. "
  9549. style="width: 95%; margin: 0 auto"
  9550. >
  9551. <iframe
  9552. style="width: 100%; height: 100%; border: none"
  9553. :src="fullUrl"
  9554. ></iframe>
  9555. </div>
  9556. <iframe
  9557. v-else-if="fulltype == 2"
  9558. style="width: 100%; height: 100%; border: none"
  9559. :src="fullUrl"
  9560. security="restricted"
  9561. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9562. ></iframe>
  9563. <pdf
  9564. v-else-if="fulltype == 3"
  9565. :pdfUrl="fullUrl"
  9566. style="width: 100%; height: 100%; overflow: auto"
  9567. ></pdf>
  9568. <div
  9569. class="wheel"
  9570. v-if="fulltype == 1"
  9571. style="
  9572. box-shadow: 0 0 6px 1px #f2f2f2;
  9573. width: 100%;
  9574. background: #f1f1f1;
  9575. "
  9576. >
  9577. <div class="title" style="width: 100%; box-sizing: border-box">
  9578. 查看文档
  9579. </div>
  9580. <el-form class="textBox" style="height: 90%">
  9581. <el-form-item class="textTitle">
  9582. <div style="font-size: 22px">
  9583. {{ fullUrl.name }}
  9584. </div>
  9585. </el-form-item>
  9586. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9587. <div
  9588. v-html="fullUrl.url"
  9589. class="textContent"
  9590. style="height: auto"
  9591. ></div>
  9592. </el-form>
  9593. </div>
  9594. </div>
  9595. <!-- <div slot="footer">
  9596. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9597. </div> -->
  9598. </el-dialog>
  9599. <el-dialog
  9600. title="个人评价"
  9601. :visible.sync="studentEvalDialogVisible"
  9602. :append-to-body="true"
  9603. width="800px"
  9604. :before-close="handleClose"
  9605. class="dialog_diy"
  9606. >
  9607. <div class="evalCss">
  9608. <div class="nav">请选择星星进行评分</div>
  9609. <div class="middleBox" v-if="eScore.eStar">
  9610. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9611. <div class="nameAndrate">
  9612. <div>{{ e.value }}</div>
  9613. <el-rate
  9614. v-model="eScore.eStar[eIndex]"
  9615. :disabled="isStar"
  9616. ></el-rate>
  9617. </div>
  9618. <div v-if="e.detail">{{ e.detail }}</div>
  9619. </div>
  9620. <div class="easy_comment" v-if="false">
  9621. <div
  9622. v-for="(p, pIndex) in PlTextList"
  9623. :key="pIndex"
  9624. @click="fastText(p, 2)"
  9625. >
  9626. {{ p }}
  9627. </div>
  9628. </div>
  9629. <div class="bz">
  9630. <textarea
  9631. :disabled="isStar"
  9632. rows="4"
  9633. class="pj"
  9634. style="
  9635. padding: 10px 5px;
  9636. width: 70%;
  9637. background: #f7f6f9;
  9638. font-size: 14px;
  9639. text-indent: 10px;
  9640. "
  9641. cols
  9642. v-model="eScore.eBzText"
  9643. placeholder="请输入评价内容..."
  9644. ></textarea>
  9645. </div>
  9646. </div>
  9647. </div>
  9648. <div slot="footer">
  9649. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9650. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9651. >确 定</el-button
  9652. >
  9653. </div>
  9654. </el-dialog>
  9655. <el-dialog
  9656. title="个人评价"
  9657. :visible.sync="studentEvalDialogVisibleTeacher"
  9658. :append-to-body="true"
  9659. width="800px"
  9660. :before-close="handleClose"
  9661. class="dialog_diy"
  9662. >
  9663. <div class="w_name">
  9664. 学生姓名:<span>{{ sStudent.student }}</span>
  9665. </div>
  9666. <div class="evalCss">
  9667. <div class="nav">请选择星星进行评分</div>
  9668. <div class="middleBox" v-if="eScore.eStar">
  9669. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9670. <div class="nameAndrate">
  9671. <div>{{ e.value }}</div>
  9672. <el-rate
  9673. v-model="eScore.eStar[eIndex]"
  9674. :disabled="isStar"
  9675. ></el-rate>
  9676. </div>
  9677. <div v-if="e.detail">{{ e.detail }}</div>
  9678. </div>
  9679. <div class="easy_comment" v-if="false">
  9680. <div
  9681. v-for="(p, pIndex) in PlTextList"
  9682. :key="pIndex"
  9683. @click="fastText(p, 2)"
  9684. >
  9685. {{ p }}
  9686. </div>
  9687. </div>
  9688. <div class="bz">
  9689. <textarea
  9690. :disabled="isStar"
  9691. rows="4"
  9692. class="pj"
  9693. style="
  9694. padding: 10px 5px;
  9695. width: 70%;
  9696. background: #f7f6f9;
  9697. font-size: 14px;
  9698. text-indent: 10px;
  9699. "
  9700. cols
  9701. v-model="eScore.eBzText"
  9702. placeholder="请输入评价内容..."
  9703. ></textarea>
  9704. </div>
  9705. </div>
  9706. </div>
  9707. <div slot="footer">
  9708. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9709. >取 消</el-button
  9710. >
  9711. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9712. >确 定</el-button
  9713. >
  9714. </div>
  9715. </el-dialog>
  9716. <el-dialog
  9717. title="选择匹配"
  9718. :visible.sync="dialogVisibleSelect"
  9719. :append-to-body="true"
  9720. width="90%"
  9721. :before-close="handleClose"
  9722. class="dialog_diy dialog_diy3"
  9723. >
  9724. <div v-if="selectJson">
  9725. <div class="select_box2">
  9726. <div class="select_box2_title">
  9727. <div>选择匹配</div>
  9728. <div>请选择对应的答案进行答题!</div>
  9729. </div>
  9730. <div class="select_box2_box">
  9731. <div class="select_box2_img">
  9732. <img
  9733. :src="selectJson.url"
  9734. @click="previewImg(selectJson.url)"
  9735. alt=""
  9736. />
  9737. </div>
  9738. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9739. <div style="padding-top: 15px">
  9740. <div class="select_answer_title" v-if="isSelect">
  9741. {{ selectAnswer.stu }}
  9742. </div>
  9743. <div class="select_answer_title" v-else>
  9744. 根据题目选择对应答案
  9745. </div>
  9746. <div
  9747. class="select_box2_answer_box"
  9748. v-for="(item2, checkIndex) in selectJson.select"
  9749. :key="checkIndex"
  9750. >
  9751. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9752. <el-select
  9753. :disabled="isSelect"
  9754. v-model="selectAnswer.answer[checkIndex]"
  9755. placeholder="请选择正确答案"
  9756. >
  9757. <el-option
  9758. v-for="(e, eIndex) in selectJson.select"
  9759. :key="eIndex"
  9760. :label="e"
  9761. :value="eIndex"
  9762. >
  9763. </el-option>
  9764. </el-select>
  9765. </div>
  9766. </div>
  9767. <div
  9768. class="rightAnswerCss"
  9769. v-if="isSelect && (tType == 1 || tType == 4)"
  9770. >
  9771. <div
  9772. v-for="(a, aIndex) in selectJson.answer"
  9773. :key="aIndex"
  9774. class="rightAnswer"
  9775. >
  9776. <div
  9777. v-if="selectAnswer.answer[aIndex] === a"
  9778. style="color: #767de1"
  9779. >
  9780. 回答正确
  9781. </div>
  9782. <div v-else>回答错误</div>
  9783. <div
  9784. style="margin-left: 10px"
  9785. v-if="selectAnswer.answer[aIndex] !== a"
  9786. >
  9787. 正确答案:
  9788. </div>
  9789. <div
  9790. :class="
  9791. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9792. "
  9793. >
  9794. {{ selectJson.select[a] }}
  9795. </div>
  9796. </div>
  9797. </div>
  9798. </div>
  9799. <div class="upAnswerCss">
  9800. <el-button
  9801. type="primary"
  9802. @click="addSelectAnswer"
  9803. v-if="!isSelect"
  9804. >提交答案</el-button
  9805. >
  9806. </div>
  9807. </div>
  9808. </div>
  9809. </div>
  9810. </el-dialog>
  9811. <el-dialog
  9812. title="选择匹配"
  9813. :visible.sync="dialogVisibleSelectTeacher"
  9814. :append-to-body="true"
  9815. width="90%"
  9816. :before-close="handleClose"
  9817. class="dialog_diy dialog_diy3"
  9818. >
  9819. <div v-if="selectJson">
  9820. <div class="w_name">
  9821. 学生姓名:<span>{{ sStudent.student }}</span>
  9822. </div>
  9823. <div class="select_box2">
  9824. <div class="select_box2_title">
  9825. <div>选择匹配</div>
  9826. <div>请选择对应的答案进行答题!</div>
  9827. </div>
  9828. <div class="select_box2_box">
  9829. <div class="select_box2_img">
  9830. <img
  9831. :src="selectJson.url"
  9832. @click="previewImg(selectJson.url)"
  9833. alt=""
  9834. />
  9835. </div>
  9836. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9837. <div style="padding-top: 15px">
  9838. <div class="select_answer_title" v-if="isSelect">
  9839. {{ selectAnswer.stu }}
  9840. </div>
  9841. <div class="select_answer_title" v-else>
  9842. 根据题目选择对应答案
  9843. </div>
  9844. <div
  9845. class="select_box2_answer_box"
  9846. v-for="(item2, checkIndex) in selectJson.select"
  9847. :key="checkIndex"
  9848. >
  9849. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9850. <el-select
  9851. :disabled="isSelect"
  9852. v-model="selectAnswer.answer[checkIndex]"
  9853. placeholder="请选择正确答案"
  9854. >
  9855. <el-option
  9856. v-for="(e, eIndex) in selectJson.select"
  9857. :key="eIndex"
  9858. :label="e"
  9859. :value="eIndex"
  9860. >
  9861. </el-option>
  9862. </el-select>
  9863. </div>
  9864. </div>
  9865. <div
  9866. class="rightAnswerCss"
  9867. v-if="isSelect && (tType == 1 || tType == 4)"
  9868. >
  9869. <div
  9870. v-for="(a, aIndex) in selectJson.answer"
  9871. :key="aIndex"
  9872. class="rightAnswer"
  9873. >
  9874. <div
  9875. v-if="selectAnswer.answer[aIndex] === a"
  9876. style="color: #767de1"
  9877. >
  9878. 回答正确
  9879. </div>
  9880. <div v-else>回答错误</div>
  9881. <div
  9882. style="margin-left: 10px"
  9883. v-if="selectAnswer.answer[aIndex] !== a"
  9884. >
  9885. 正确答案:
  9886. </div>
  9887. <div
  9888. :class="
  9889. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9890. "
  9891. >
  9892. {{ selectJson.select[a] }}
  9893. </div>
  9894. </div>
  9895. </div>
  9896. </div>
  9897. <div class="upAnswerCss">
  9898. <el-button
  9899. type="primary"
  9900. @click="addSelectAnswerTeacher"
  9901. v-if="!isSelect"
  9902. >提交答案</el-button
  9903. >
  9904. </div>
  9905. </div>
  9906. </div>
  9907. </div>
  9908. </el-dialog>
  9909. <el-dialog
  9910. title="教师评分"
  9911. :visible.sync="dialogVisibleScore"
  9912. :append-to-body="true"
  9913. width="800px"
  9914. :before-close="handleClose"
  9915. class="dialog_diy"
  9916. >
  9917. <div>
  9918. <div class="studentDetail">
  9919. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9920. <div class="nameAndTime">
  9921. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9922. <div>{{ commentDetail.time }}</div>
  9923. </div>
  9924. </div>
  9925. <div
  9926. class="worksAnswer"
  9927. v-if="commentDetail.works && commentDetail.type == 2"
  9928. >
  9929. {{ JSON.parse(commentDetail.works)[0].answer }}
  9930. </div>
  9931. <div
  9932. class="worksAnswer"
  9933. v-if="commentDetail.works && commentDetail.type == 1"
  9934. >
  9935. <pdf
  9936. v-if="showPDF"
  9937. :pdfUrl="pptImgUrl"
  9938. style="width: 100%; height: 520px; overflow: auto"
  9939. :class="{ fullStyle: full }"
  9940. ></pdf>
  9941. <iframe
  9942. v-else
  9943. :src="pptImgUrl"
  9944. frameborder="0"
  9945. width="100%"
  9946. height="600"
  9947. :class="{ fullStyle: full }"
  9948. ></iframe>
  9949. </div>
  9950. <div
  9951. class="worksAnswer"
  9952. v-if="commentDetail.works && commentDetail.type == 0"
  9953. >
  9954. <img
  9955. :src="commentDetail.works"
  9956. alt=""
  9957. @click="previewImg(commentDetail.works)"
  9958. />
  9959. </div>
  9960. <div
  9961. class="worksAnswer"
  9962. v-if="commentDetail.works && commentDetail.type == 3"
  9963. >
  9964. <video-player
  9965. class="video-player vjs-custom-skin"
  9966. :playsinline="true"
  9967. :options="videoDetail"
  9968. @play="onPlayerPlay($event)"
  9969. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9970. ></video-player>
  9971. </div>
  9972. <div
  9973. class="worksAnswer codeFileBox"
  9974. v-if="commentDetail.works && commentDetail.type == 12"
  9975. @click="downloadFile(commentDetail.works)"
  9976. >
  9977. <img src="../../assets/icon/codeFile.png" />
  9978. <div>点击下载文件</div>
  9979. </div>
  9980. <div
  9981. class="worksAnswer codeFileBox"
  9982. v-if="commentDetail.works && commentDetail.type == 15"
  9983. @click="
  9984. openCocoPi(
  9985. 57,
  9986. commentIndexJson.toolIndex,
  9987. commentDetail.userid,
  9988. commentDetail.sName
  9989. )
  9990. "
  9991. >
  9992. <img src="../../assets/icon/codeFile.png" />
  9993. <div>点击打开CocoPi</div>
  9994. </div>
  9995. <div
  9996. class="worksAnswer"
  9997. v-if="commentDetail.works && commentDetail.type == 13"
  9998. >
  9999. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10000. </div>
  10001. <div class="scoreBox">
  10002. <span class="t">请输入分数</span>
  10003. <el-input-number
  10004. :disabled="courseDetail.userid != userid"
  10005. v-model="wScore"
  10006. :controls="false"
  10007. :min="0"
  10008. :max="100"
  10009. ></el-input-number>
  10010. </div>
  10011. <div class="scoreDetailBox">
  10012. <span class="t">评分评论</span>
  10013. <el-input
  10014. type="textarea"
  10015. :rows="5"
  10016. :disabled="courseDetail.userid != userid"
  10017. resize="none"
  10018. v-model="scoreDetail"
  10019. placeholder="请输入对学生的评价"
  10020. >
  10021. </el-input>
  10022. </div>
  10023. </div>
  10024. <span slot="footer" class="dialog-footer">
  10025. <el-button
  10026. @click="
  10027. (dialogVisibleScore = false),
  10028. (commentIndexJson = {}),
  10029. videoDetail.sources && videoDetail.sources[0]
  10030. ? (videoDetail.sources[0].src = '')
  10031. : ''
  10032. "
  10033. >取 消</el-button
  10034. >
  10035. <el-button
  10036. type="primary"
  10037. v-if="courseDetail.userid == userid"
  10038. @click="scoreWork(commentDetail.wid)"
  10039. >确 定
  10040. </el-button>
  10041. </span>
  10042. </el-dialog>
  10043. <el-dialog
  10044. title="排序"
  10045. :visible.sync="dialogVisibleSentence"
  10046. :append-to-body="true"
  10047. width="1000px"
  10048. :before-close="handleClose"
  10049. class="dialog_diy dialog_diy3"
  10050. >
  10051. <div>
  10052. <div class="sentenBox">
  10053. <div
  10054. v-for="(st, stIndex) in sentenceList"
  10055. :key="stIndex"
  10056. style="padding-bottom: 20px"
  10057. >
  10058. <div
  10059. style="padding: 15px 0 10px 20px"
  10060. class="sentenceTitle"
  10061. :index="stIndex + 1"
  10062. >
  10063. 题目{{ stIndex + 1 }}:请选择正确顺序
  10064. </div>
  10065. <div class="cardList" v-if="st.chooseSenList">
  10066. <div class="cardBox">
  10067. <div
  10068. v-for="(r, rIndex) in st.chooseSenList"
  10069. :key="rIndex"
  10070. @click="returnCard(r, stIndex, rIndex)"
  10071. >
  10072. <el-tooltip
  10073. class="item"
  10074. effect="light"
  10075. :content="r"
  10076. placement="top"
  10077. v-if="r != '' && r != undefined"
  10078. >
  10079. <div
  10080. :class="{
  10081. isCard: r,
  10082. isChooseCard: r == '' || r == undefined,
  10083. }"
  10084. >
  10085. <div>{{ r }}</div>
  10086. </div>
  10087. </el-tooltip>
  10088. <div
  10089. :class="{
  10090. isCard: r,
  10091. isChooseCard: r == '' || r == undefined,
  10092. }"
  10093. v-else
  10094. >
  10095. <div>{{ r }}</div>
  10096. </div>
  10097. </div>
  10098. </div>
  10099. </div>
  10100. <div class="cardList" v-if="st.addChangeSen">
  10101. <div class="cardBox">
  10102. <div
  10103. v-for="(s, sIndex) in st.addChangeSen"
  10104. :key="sIndex"
  10105. @click="setRightAnswer(s, stIndex, sIndex)"
  10106. >
  10107. <el-tooltip
  10108. class="item"
  10109. effect="light"
  10110. :content="s"
  10111. placement="top"
  10112. v-if="s != '' && s != undefined"
  10113. >
  10114. <div
  10115. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10116. >
  10117. <div>{{ s }}</div>
  10118. </div>
  10119. </el-tooltip>
  10120. <div
  10121. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10122. v-else
  10123. >
  10124. <div>{{ s }}</div>
  10125. </div>
  10126. </div>
  10127. </div>
  10128. </div>
  10129. </div>
  10130. </div>
  10131. </div>
  10132. <span slot="footer" class="dialog-footer">
  10133. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10134. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10135. </span>
  10136. </el-dialog>
  10137. <el-dialog
  10138. title="排序"
  10139. :visible.sync="dialogVisibleSentenceTeacher"
  10140. :append-to-body="true"
  10141. width="1000px"
  10142. :before-close="handleClose"
  10143. class="dialog_diy dialog_diy3"
  10144. >
  10145. <div>
  10146. <div class="w_name">
  10147. 学生姓名:<span>{{ sStudent.student }}</span>
  10148. </div>
  10149. <div class="sentenBox">
  10150. <div
  10151. v-for="(st, stIndex) in sentenceList"
  10152. :key="stIndex"
  10153. style="padding-bottom: 20px"
  10154. >
  10155. <div
  10156. style="padding: 15px 0 10px 20px"
  10157. class="sentenceTitle"
  10158. :index="stIndex + 1"
  10159. >
  10160. 题目{{ stIndex + 1 }}:请选择正确顺序
  10161. </div>
  10162. <div class="cardList" v-if="st.chooseSenList">
  10163. <div class="cardBox">
  10164. <div
  10165. v-for="(r, rIndex) in st.chooseSenList"
  10166. :key="rIndex"
  10167. @click="returnCard(r, stIndex, rIndex)"
  10168. >
  10169. <el-tooltip
  10170. class="item"
  10171. effect="light"
  10172. :content="r"
  10173. placement="top"
  10174. v-if="r != '' && r != undefined"
  10175. >
  10176. <div
  10177. :class="{
  10178. isCard: r,
  10179. isChooseCard: r == '' || r == undefined,
  10180. }"
  10181. >
  10182. <div>{{ r }}</div>
  10183. </div>
  10184. </el-tooltip>
  10185. <div
  10186. :class="{
  10187. isCard: r,
  10188. isChooseCard: r == '' || r == undefined,
  10189. }"
  10190. v-else
  10191. >
  10192. <div>{{ r }}</div>
  10193. </div>
  10194. </div>
  10195. </div>
  10196. </div>
  10197. <div class="cardList" v-if="st.addChangeSen">
  10198. <div class="cardBox">
  10199. <div
  10200. v-for="(s, sIndex) in st.addChangeSen"
  10201. :key="sIndex"
  10202. @click="setRightAnswer(s, stIndex, sIndex)"
  10203. >
  10204. <el-tooltip
  10205. class="item"
  10206. effect="light"
  10207. :content="s"
  10208. placement="top"
  10209. v-if="s != '' && s != undefined"
  10210. >
  10211. <div
  10212. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10213. >
  10214. <div>{{ s }}</div>
  10215. </div>
  10216. </el-tooltip>
  10217. <div
  10218. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10219. v-else
  10220. >
  10221. <div>{{ s }}</div>
  10222. </div>
  10223. </div>
  10224. </div>
  10225. </div>
  10226. </div>
  10227. </div>
  10228. </div>
  10229. <span slot="footer" class="dialog-footer">
  10230. <el-button @click="dialogVisibleSentenceTeacher = false"
  10231. >取 消</el-button
  10232. >
  10233. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10234. </span>
  10235. </el-dialog>
  10236. <el-dialog
  10237. title="排序"
  10238. :visible.sync="dialogVisibleSentence1"
  10239. :append-to-body="true"
  10240. width="1000px"
  10241. :before-close="handleClose"
  10242. class="dialog_diy dialog_diy3"
  10243. >
  10244. <div>
  10245. <div class="sentenBox">
  10246. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10247. {{ sentenceList1.stuName }}的作业
  10248. </div>
  10249. <div
  10250. v-for="(st, stIndex) in sentenceList1"
  10251. :key="stIndex"
  10252. style="padding-bottom: 20px"
  10253. >
  10254. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10255. 第{{ stIndex + 1 }}题
  10256. </div>
  10257. <div class="isWrong">
  10258. <div class="cardList1" v-if="st.chooseSenList">
  10259. <div class="cardBox">
  10260. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10261. <el-tooltip
  10262. class="item"
  10263. effect="light"
  10264. :content="s"
  10265. placement="top"
  10266. >
  10267. <div class="isCard">
  10268. <div>{{ s }}</div>
  10269. </div>
  10270. </el-tooltip>
  10271. </div>
  10272. </div>
  10273. <div class="cardAnswerBox">
  10274. 组成句子:{{ st.chooseSenList.join(" ") }}
  10275. </div>
  10276. </div>
  10277. <div v-if="tType == 2" class="isTj">
  10278. <div class="isTjImg">
  10279. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10280. </div>
  10281. <div>已提交</div>
  10282. </div>
  10283. <div
  10284. class="answerRight isTj"
  10285. v-if="
  10286. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10287. (tType == 1 || tType == 4)
  10288. "
  10289. >
  10290. <div class="isTjImg">
  10291. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10292. </div>
  10293. <div>回答正确</div>
  10294. </div>
  10295. <div
  10296. class="answerRight isTj"
  10297. v-if="
  10298. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10299. (tType == 1 || tType == 4)
  10300. "
  10301. >
  10302. <div class="isTjImg">
  10303. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10304. </div>
  10305. <div>回答错误</div>
  10306. </div>
  10307. </div>
  10308. <div
  10309. v-if="
  10310. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10311. (tType == 1 || tType == 4)
  10312. "
  10313. >
  10314. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10315. <div
  10316. class="cardList"
  10317. v-if="st.rightAnswer"
  10318. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10319. >
  10320. <div class="cardBox">
  10321. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10322. <el-tooltip
  10323. class="item"
  10324. effect="light"
  10325. :content="r"
  10326. placement="top"
  10327. >
  10328. <div class="isCard1">
  10329. <div>{{ r }}</div>
  10330. </div>
  10331. </el-tooltip>
  10332. </div>
  10333. </div>
  10334. <div class="cardAnswerBox">
  10335. 组成句子:{{ st.rightAnswer.join(" ") }}
  10336. </div>
  10337. </div>
  10338. </div>
  10339. </div>
  10340. </div>
  10341. </div>
  10342. <span slot="footer" class="dialog-footer">
  10343. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10344. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10345. >确 定</el-button
  10346. >
  10347. </span>
  10348. </el-dialog>
  10349. <el-dialog
  10350. title="教师提交作业"
  10351. :visible.sync="dialogVisibleWorks"
  10352. :append-to-body="true"
  10353. width="500px"
  10354. :before-close="handleClose"
  10355. class="dialog_change"
  10356. >
  10357. <div class="marginT">
  10358. <div class="w_name">
  10359. 学生姓名:<span>{{ sStudent.student }}</span>
  10360. </div>
  10361. <div>上传文件</div>
  10362. <div
  10363. class="chapter_add"
  10364. @click="addImg($event)"
  10365. v-if="studyJuri[0].cover.length == 0"
  10366. >
  10367. <div class="up_photo">
  10368. <img src="../../assets/uploadImg2.png" alt />
  10369. </div>
  10370. <!-- <input
  10371. type="file"
  10372. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10373. style="display: none"
  10374. @change="beforeUpload1($event, 1)"
  10375. /> -->
  10376. <input
  10377. type="file"
  10378. accept="*"
  10379. style="display: none"
  10380. @change="beforeUpload1($event, 1)"
  10381. />
  10382. </div>
  10383. <!-- capture="camera" -->
  10384. <div
  10385. class="chapter_add"
  10386. style="
  10387. display: flex;
  10388. width: 100%;
  10389. flex-direction: row;
  10390. flex-wrap: wrap;
  10391. justify-content: flex-start;
  10392. padding: 15px 0;
  10393. "
  10394. v-if="studyJuri[0].cover.length > 0"
  10395. >
  10396. <div class="upCover">
  10397. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10398. <img :src="word" alt v-else-if="fileType == 1" />
  10399. <img :src="video" alt v-else-if="fileType == 2" />
  10400. <img :src="word2" alt v-else-if="fileType == 3" />
  10401. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10402. <div class="deleteWord" @click="clean(1)">
  10403. <img src="../../assets/icon/deleteWorks.png" alt />
  10404. </div>
  10405. </div>
  10406. </div>
  10407. </div>
  10408. <div
  10409. class="upload_send"
  10410. @click="addCourseWorksTeacher(taskCount)"
  10411. v-if="!proVisible"
  10412. >
  10413. 提交
  10414. </div>
  10415. </el-dialog>
  10416. <ImgDraw
  10417. :drawShow="drawShow"
  10418. @closeDraw="closeDraw"
  10419. @addImgDraw="addImgDraw"
  10420. :bg="bg"
  10421. ></ImgDraw>
  10422. <el-dialog
  10423. title="表格"
  10424. :visible.sync="dialogVisibleTable"
  10425. :append-to-body="true"
  10426. width="95%"
  10427. :before-close="handleClose"
  10428. class="dialog_diy"
  10429. >
  10430. <el-form>
  10431. <div
  10432. style="
  10433. display: flex;
  10434. align-items: center;
  10435. justify-content: space-between;
  10436. "
  10437. >
  10438. <span>表格内容</span>
  10439. <el-button type="primary" size="small" @click="returnTableText"
  10440. >还原模板</el-button
  10441. >
  10442. </div>
  10443. <Table
  10444. v-model="tableJson.text"
  10445. @change="change"
  10446. v-if="dialogVisibleTable"
  10447. ></Table>
  10448. </el-form>
  10449. <span slot="footer" class="dialog-footer">
  10450. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10451. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10452. </span>
  10453. </el-dialog>
  10454. <el-dialog
  10455. title="表格"
  10456. :visible.sync="dialogVisibleTableTeacher"
  10457. :append-to-body="true"
  10458. width="95%"
  10459. :before-close="handleClose"
  10460. class="dialog_diy"
  10461. >
  10462. <el-form>
  10463. <div class="w_name">
  10464. 学生姓名:<span>{{ sStudent.student }}</span>
  10465. </div>
  10466. <div>表格内容</div>
  10467. <Table
  10468. v-model="tableJson.text"
  10469. @change="change"
  10470. v-if="dialogVisibleTableTeacher"
  10471. ></Table>
  10472. </el-form>
  10473. <span slot="footer" class="dialog-footer">
  10474. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10475. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10476. </span>
  10477. </el-dialog>
  10478. <el-dialog
  10479. title="文档"
  10480. :visible.sync="dialogVisibleWord"
  10481. :append-to-body="true"
  10482. width="95%"
  10483. :before-close="handleClose"
  10484. class="dialog_diy"
  10485. >
  10486. <el-form>
  10487. <div
  10488. style="
  10489. display: flex;
  10490. align-items: center;
  10491. justify-content: space-between;
  10492. "
  10493. >
  10494. <span>文档内容</span>
  10495. <el-button type="primary" size="small" @click="returnWordText"
  10496. >还原模板</el-button
  10497. >
  10498. </div>
  10499. <editor-bar
  10500. v-model="wordJson.text"
  10501. v-if="dialogVisibleWord"
  10502. ></editor-bar>
  10503. </el-form>
  10504. <span slot="footer" class="dialog-footer">
  10505. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10506. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10507. </span>
  10508. </el-dialog>
  10509. <el-dialog
  10510. title="文档"
  10511. :visible.sync="dialogVisibleWordTeacher"
  10512. :append-to-body="true"
  10513. width="95%"
  10514. :before-close="handleClose"
  10515. class="dialog_diy"
  10516. >
  10517. <el-form>
  10518. <div class="w_name">
  10519. 学生姓名:<span>{{ sStudent.student }}</span>
  10520. </div>
  10521. <div>文档内容</div>
  10522. <editor-bar
  10523. v-model="wordJson.text"
  10524. v-if="dialogVisibleWordTeacher"
  10525. ></editor-bar>
  10526. </el-form>
  10527. <span slot="footer" class="dialog-footer">
  10528. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10529. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10530. </span>
  10531. </el-dialog>
  10532. <el-dialog
  10533. title="表格"
  10534. :visible.sync="dialogVisibleTable2"
  10535. :append-to-body="true"
  10536. width="95%"
  10537. :before-close="handleClose"
  10538. class="dialog_diy"
  10539. >
  10540. <el-form>
  10541. <div class="cont" v-html="tableJson.text"></div>
  10542. </el-form>
  10543. <span slot="footer" class="dialog-footer">
  10544. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10545. </span>
  10546. </el-dialog>
  10547. <el-dialog
  10548. title="文档"
  10549. :visible.sync="dialogVisibleTable3"
  10550. :append-to-body="true"
  10551. width="95%"
  10552. :before-close="handleClose"
  10553. class="dialog_diy"
  10554. >
  10555. <el-form>
  10556. <div class="cont" v-html="tableJson.text"></div>
  10557. </el-form>
  10558. <span slot="footer" class="dialog-footer">
  10559. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10560. </span>
  10561. </el-dialog>
  10562. <el-dialog
  10563. title="分组设置"
  10564. :visible.sync="dialogVisibleGroup"
  10565. :append-to-body="true"
  10566. width="95%"
  10567. :before-close="handleClose"
  10568. class="dialog_diy"
  10569. >
  10570. <div v-if="dialogVisibleGroup">
  10571. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10572. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10573. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10574. </div>
  10575. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10576. @click="lockChair">
  10577. 锁定位置
  10578. </div>
  10579. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10580. 解锁位置
  10581. </div> -->
  10582. <div class="group_switch">
  10583. <span>开放选座</span>
  10584. <el-switch
  10585. v-model="islock"
  10586. active-text=""
  10587. class="switchCss"
  10588. @change="lockChair"
  10589. ></el-switch>
  10590. </div>
  10591. <div
  10592. type="primary"
  10593. @click="updateGroup"
  10594. class="returnBtn"
  10595. style="background-color: #225bc7"
  10596. >
  10597. 分组设置
  10598. </div>
  10599. </div>
  10600. <div>
  10601. <div
  10602. class="g_d_box"
  10603. v-if="groupJson.group && groupStudent[toolindex]"
  10604. >
  10605. <div
  10606. class="g_d_group"
  10607. v-for="(g, gindex) in groupJson.group"
  10608. :key="gindex"
  10609. >
  10610. <div class="g_d_group_chair">
  10611. <div v-if="groupJson.number > 1">
  10612. <span
  10613. :class="{
  10614. isChair:
  10615. groupStudent[toolindex][gindex] &&
  10616. groupStudent[toolindex][gindex][0],
  10617. updateChair:
  10618. courseDetail.userid == userid &&
  10619. groupStudent[toolindex][gindex] &&
  10620. groupStudent[toolindex][gindex][0] &&
  10621. groupJson.islock == 2,
  10622. }"
  10623. ><span
  10624. class="updateChairBtn"
  10625. @click="
  10626. updateGroupChair(
  10627. groupStudent[toolindex][gindex] &&
  10628. groupStudent[toolindex][gindex][0]
  10629. )
  10630. "
  10631. >修改</span
  10632. ></span
  10633. ><span>{{
  10634. groupStudent[toolindex][gindex] &&
  10635. groupStudent[toolindex][gindex][0]
  10636. ? groupStudent[toolindex][gindex] &&
  10637. groupStudent[toolindex][gindex][0].name
  10638. : "空位置"
  10639. }}</span>
  10640. </div>
  10641. <div v-if="groupJson.number > 4">
  10642. <span
  10643. :class="{
  10644. isChair:
  10645. groupStudent[toolindex][gindex] &&
  10646. groupStudent[toolindex][gindex][4],
  10647. updateChair:
  10648. courseDetail.userid == userid &&
  10649. groupStudent[toolindex][gindex] &&
  10650. groupStudent[toolindex][gindex][4] &&
  10651. groupJson.islock == 2,
  10652. }"
  10653. ><span
  10654. class="updateChairBtn"
  10655. @click="
  10656. updateGroupChair(
  10657. groupStudent[toolindex][gindex] &&
  10658. groupStudent[toolindex][gindex][4]
  10659. )
  10660. "
  10661. >修改</span
  10662. ></span
  10663. ><span>{{
  10664. groupStudent[toolindex][gindex] &&
  10665. groupStudent[toolindex][gindex][4]
  10666. ? groupStudent[toolindex][gindex] &&
  10667. groupStudent[toolindex][gindex][4].name
  10668. : "空位置"
  10669. }}</span>
  10670. </div>
  10671. <div v-if="groupJson.number > 8">
  10672. <span
  10673. :class="{
  10674. isChair:
  10675. groupStudent[toolindex][gindex] &&
  10676. groupStudent[toolindex][gindex][8],
  10677. updateChair:
  10678. courseDetail.userid == userid &&
  10679. groupStudent[toolindex][gindex] &&
  10680. groupStudent[toolindex][gindex][8] &&
  10681. groupJson.islock == 2,
  10682. }"
  10683. ><span
  10684. class="updateChairBtn"
  10685. @click="
  10686. updateGroupChair(
  10687. groupStudent[toolindex][gindex] &&
  10688. groupStudent[toolindex][gindex][8]
  10689. )
  10690. "
  10691. >修改</span
  10692. ></span
  10693. ><span>{{
  10694. groupStudent[toolindex][gindex] &&
  10695. groupStudent[toolindex][gindex][8]
  10696. ? groupStudent[toolindex][gindex] &&
  10697. groupStudent[toolindex][gindex][8].name
  10698. : "空位置"
  10699. }}</span>
  10700. </div>
  10701. </div>
  10702. <div class="g_d_group_tableBox">
  10703. <div class="g_d_group_chair2">
  10704. <div v-if="groupJson.number > 2">
  10705. <span
  10706. :class="{
  10707. isChair:
  10708. groupStudent[toolindex][gindex] &&
  10709. groupStudent[toolindex][gindex][2],
  10710. updateChair:
  10711. courseDetail.userid == userid &&
  10712. groupStudent[toolindex][gindex] &&
  10713. groupStudent[toolindex][gindex][2] &&
  10714. groupJson.islock == 2,
  10715. }"
  10716. ><span
  10717. class="updateChairBtn"
  10718. @click="
  10719. updateGroupChair(
  10720. groupStudent[toolindex][gindex] &&
  10721. groupStudent[toolindex][gindex][2]
  10722. )
  10723. "
  10724. >修改</span
  10725. ></span
  10726. ><span>{{
  10727. groupStudent[toolindex][gindex] &&
  10728. groupStudent[toolindex][gindex][2]
  10729. ? groupStudent[toolindex][gindex] &&
  10730. groupStudent[toolindex][gindex][2].name
  10731. : "空位置"
  10732. }}</span>
  10733. </div>
  10734. <div v-if="groupJson.number > 6">
  10735. <span
  10736. :class="{
  10737. isChair:
  10738. groupStudent[toolindex][gindex] &&
  10739. groupStudent[toolindex][gindex][6],
  10740. updateChair:
  10741. courseDetail.userid == userid &&
  10742. groupStudent[toolindex][gindex] &&
  10743. groupStudent[toolindex][gindex][6] &&
  10744. groupJson.islock == 2,
  10745. }"
  10746. ><span
  10747. class="updateChairBtn"
  10748. @click="
  10749. updateGroupChair(
  10750. groupStudent[toolindex][gindex] &&
  10751. groupStudent[toolindex][gindex][6]
  10752. )
  10753. "
  10754. >修改</span
  10755. ></span
  10756. ><span>{{
  10757. groupStudent[toolindex][gindex] &&
  10758. groupStudent[toolindex][gindex][6]
  10759. ? groupStudent[toolindex][gindex] &&
  10760. groupStudent[toolindex][gindex][6].name
  10761. : "空位置"
  10762. }}</span>
  10763. </div>
  10764. </div>
  10765. <div class="g_d_group_table">
  10766. <div>
  10767. {{ g.name }}
  10768. </div>
  10769. <div>
  10770. <div
  10771. v-if="
  10772. courseDetail.userid == userid && groupJson.islock == 2
  10773. "
  10774. @click="deleteGroupChair(gindex)"
  10775. >
  10776. 移除组员
  10777. </div>
  10778. <div
  10779. @click="selectGroup(gindex)"
  10780. v-else-if="
  10781. groupStudentUid[toolindex] &&
  10782. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10783. "
  10784. >
  10785. 加入分组
  10786. </div>
  10787. <div
  10788. @click="
  10789. exitGroup(
  10790. groupStudent[toolindex][gindex] &&
  10791. groupStudent[toolindex][gindex][
  10792. groupStudentUid[toolindex][gindex].indexOf(userid)
  10793. ].id
  10794. )
  10795. "
  10796. v-else-if="
  10797. groupStudentUid[toolindex] &&
  10798. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10799. "
  10800. >
  10801. 退出分组
  10802. </div>
  10803. </div>
  10804. </div>
  10805. <div class="g_d_group_chair2">
  10806. <div v-if="groupJson.number > 3">
  10807. <span
  10808. :class="{
  10809. isChair:
  10810. groupStudent[toolindex][gindex] &&
  10811. groupStudent[toolindex][gindex][3],
  10812. updateChair:
  10813. courseDetail.userid == userid &&
  10814. groupStudent[toolindex][gindex] &&
  10815. groupStudent[toolindex][gindex][3] &&
  10816. groupJson.islock == 2,
  10817. }"
  10818. ><span
  10819. class="updateChairBtn"
  10820. @click="
  10821. updateGroupChair(
  10822. groupStudent[toolindex][gindex] &&
  10823. groupStudent[toolindex][gindex][3]
  10824. )
  10825. "
  10826. >修改</span
  10827. ></span
  10828. ><span>{{
  10829. groupStudent[toolindex][gindex] &&
  10830. groupStudent[toolindex][gindex][3]
  10831. ? groupStudent[toolindex][gindex] &&
  10832. groupStudent[toolindex][gindex][3].name
  10833. : "空位置"
  10834. }}</span>
  10835. </div>
  10836. <div v-if="groupJson.number > 7">
  10837. <span
  10838. :class="{
  10839. isChair:
  10840. groupStudent[toolindex][gindex] &&
  10841. groupStudent[toolindex][gindex][7],
  10842. updateChair:
  10843. courseDetail.userid == userid &&
  10844. groupStudent[toolindex][gindex] &&
  10845. groupStudent[toolindex][gindex][7] &&
  10846. groupJson.islock == 2,
  10847. }"
  10848. ><span
  10849. class="updateChairBtn"
  10850. @click="
  10851. updateGroupChair(
  10852. groupStudent[toolindex][gindex] &&
  10853. groupStudent[toolindex][gindex][7]
  10854. )
  10855. "
  10856. >修改</span
  10857. ></span
  10858. ><span>{{
  10859. groupStudent[toolindex][gindex] &&
  10860. groupStudent[toolindex][gindex][7]
  10861. ? groupStudent[toolindex][gindex] &&
  10862. groupStudent[toolindex][gindex][7].name
  10863. : "空位置"
  10864. }}</span>
  10865. </div>
  10866. </div>
  10867. </div>
  10868. <div class="g_d_group_chair">
  10869. <div v-if="groupJson.number > 1">
  10870. <span
  10871. :class="{
  10872. isChair:
  10873. groupStudent[toolindex][gindex] &&
  10874. groupStudent[toolindex][gindex][1],
  10875. updateChair:
  10876. courseDetail.userid == userid &&
  10877. groupStudent[toolindex][gindex] &&
  10878. groupStudent[toolindex][gindex][1] &&
  10879. groupJson.islock == 2,
  10880. }"
  10881. ><span
  10882. class="updateChairBtn"
  10883. @click="
  10884. updateGroupChair(
  10885. groupStudent[toolindex][gindex] &&
  10886. groupStudent[toolindex][gindex][1]
  10887. )
  10888. "
  10889. >修改</span
  10890. ></span
  10891. ><span>{{
  10892. groupStudent[toolindex][gindex] &&
  10893. groupStudent[toolindex][gindex][1]
  10894. ? groupStudent[toolindex][gindex] &&
  10895. groupStudent[toolindex][gindex][1].name
  10896. : "空位置"
  10897. }}</span>
  10898. </div>
  10899. <div v-if="groupJson.number > 5">
  10900. <span
  10901. :class="{
  10902. isChair:
  10903. groupStudent[toolindex][gindex] &&
  10904. groupStudent[toolindex][gindex][5],
  10905. updateChair:
  10906. courseDetail.userid == userid &&
  10907. groupStudent[toolindex][gindex] &&
  10908. groupStudent[toolindex][gindex][5] &&
  10909. groupJson.islock == 2,
  10910. }"
  10911. ><span
  10912. class="updateChairBtn"
  10913. @click="
  10914. updateGroupChair(
  10915. groupStudent[toolindex][gindex] &&
  10916. groupStudent[toolindex][gindex][5]
  10917. )
  10918. "
  10919. >修改</span
  10920. ></span
  10921. ><span>{{
  10922. groupStudent[toolindex][gindex] &&
  10923. groupStudent[toolindex][gindex][5]
  10924. ? groupStudent[toolindex][gindex] &&
  10925. groupStudent[toolindex][gindex][5].name
  10926. : "空位置"
  10927. }}</span>
  10928. </div>
  10929. <div v-if="groupJson.number > 9">
  10930. <span
  10931. :class="{
  10932. isChair:
  10933. groupStudent[toolindex][gindex] &&
  10934. groupStudent[toolindex][gindex][9],
  10935. updateChair:
  10936. courseDetail.userid == userid &&
  10937. groupStudent[toolindex][gindex] &&
  10938. groupStudent[toolindex][gindex][9] &&
  10939. groupJson.islock == 2,
  10940. }"
  10941. ><span
  10942. class="updateChairBtn"
  10943. @click="
  10944. updateGroupChair(
  10945. groupStudent[toolindex][gindex] &&
  10946. groupStudent[toolindex][gindex][9]
  10947. )
  10948. "
  10949. >修改</span
  10950. ></span
  10951. ><span>{{
  10952. groupStudent[toolindex][gindex] &&
  10953. groupStudent[toolindex][gindex][9]
  10954. ? groupStudent[toolindex][gindex] &&
  10955. groupStudent[toolindex][gindex][9].name
  10956. : "空位置"
  10957. }}</span>
  10958. </div>
  10959. </div>
  10960. </div>
  10961. </div>
  10962. </div>
  10963. </div>
  10964. <span slot="footer" class="dialog-footer">
  10965. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10966. </span>
  10967. </el-dialog>
  10968. <el-dialog
  10969. title="分组设置"
  10970. :visible.sync="dialogVisibleGroup2"
  10971. :append-to-body="true"
  10972. width="650px"
  10973. :before-close="handleClose"
  10974. class="dialog_diy"
  10975. >
  10976. <div class="groupBox">
  10977. <div v-if="groupJson2.group" class="groupContent">
  10978. <div class="groupTitle">请设置小组数量及名称</div>
  10979. <div
  10980. v-for="(item, index) in groupJson2.group"
  10981. :key="index"
  10982. class="groupName"
  10983. >
  10984. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10985. <el-input
  10986. v-model="item.name"
  10987. placeholder="请输入名称..."
  10988. style="width: 250px"
  10989. ></el-input>
  10990. <!-- <div class="groupBtn">
  10991. <el-button type="primary" size="small" @click="addGroup(index)">
  10992. 添加</el-button>
  10993. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10994. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10995. </div> -->
  10996. </div>
  10997. </div>
  10998. <div class="groupContent">
  10999. <div class="groupTitle">请设置每组人数</div>
  11000. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11001. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11002. <el-input
  11003. v-model="groupJson.number"
  11004. style="width: 150px"
  11005. placeholder="请输入2-10的数字"
  11006. @change="numberPan"
  11007. ></el-input>
  11008. </div>
  11009. </div>
  11010. <span slot="footer" class="dialog-footer">
  11011. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11012. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11013. </span>
  11014. </el-dialog>
  11015. <el-dialog
  11016. title="作业提交"
  11017. :visible.sync="dialogVisibleGroupWork"
  11018. :append-to-body="true"
  11019. width="500px"
  11020. :before-close="handleClose"
  11021. class="dialog_change"
  11022. >
  11023. <div class="marginT">
  11024. <div>上传文件</div>
  11025. <div
  11026. class="chapter_add"
  11027. @click="addImg($event)"
  11028. v-if="studyJuri[0].cover.length == 0"
  11029. >
  11030. <div class="up_photo">
  11031. <img src="../../assets/icon/uploadImg.png" alt />
  11032. </div>
  11033. <!-- <input
  11034. type="file"
  11035. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11036. style="display: none"
  11037. @change="beforeUpload1($event, 1)"
  11038. /> -->
  11039. <input
  11040. type="file"
  11041. accept="*"
  11042. style="display: none"
  11043. @change="beforeUpload1($event, 1)"
  11044. />
  11045. </div>
  11046. <!-- capture="camera" -->
  11047. <div
  11048. class="chapter_add"
  11049. style="
  11050. display: flex;
  11051. width: 100%;
  11052. flex-direction: row;
  11053. flex-wrap: wrap;
  11054. justify-content: flex-start;
  11055. padding: 15px 0;
  11056. "
  11057. v-if="studyJuri[0].cover.length > 0"
  11058. >
  11059. <div class="upCover">
  11060. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11061. <img :src="word" alt v-else-if="fileType == 1" />
  11062. <img :src="video" alt v-else-if="fileType == 2" />
  11063. <img :src="word2" alt v-else-if="fileType == 3" />
  11064. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11065. <div class="deleteWord" @click="clean(1)">
  11066. <img src="../../assets/icon/deleteWorks.png" alt />
  11067. </div>
  11068. </div>
  11069. </div>
  11070. </div>
  11071. <div
  11072. class="upload_send"
  11073. @click="addCourseWorks2(taskCount)"
  11074. v-if="!proVisible"
  11075. >
  11076. 提交
  11077. </div>
  11078. </el-dialog>
  11079. <el-dialog
  11080. title="修改分组"
  11081. :visible.sync="dialogVisibleUpdateGroup"
  11082. :append-to-body="true"
  11083. width="350px"
  11084. :before-close="handleClose"
  11085. class="dialog_diy"
  11086. >
  11087. <div>
  11088. <h2>
  11089. {{ this.updateGroupUser.name }}
  11090. </h2>
  11091. <div style="color: rgb(171 171 171); margin-top: 10px">
  11092. 请选择要进入的分组
  11093. </div>
  11094. <el-radio-group v-model="checkChair">
  11095. <el-radio
  11096. style="display: block; margin-top: 20px"
  11097. v-for="(item, index) in updateGroupArray"
  11098. :label="item.label"
  11099. :key="index"
  11100. >{{ item.name }}</el-radio
  11101. >
  11102. </el-radio-group>
  11103. </div>
  11104. <span slot="footer" class="dialog-footer">
  11105. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11106. <el-button type="primary" @click="updateChair">确定</el-button>
  11107. </span>
  11108. </el-dialog>
  11109. <el-dialog
  11110. title="移除组员"
  11111. :visible.sync="dialogVisibleDeleteGroup"
  11112. :append-to-body="true"
  11113. width="350px"
  11114. :before-close="handleClose"
  11115. class="dialog_diy"
  11116. >
  11117. <div>
  11118. <h2>
  11119. {{ this.deleteGroupArray.name }}
  11120. </h2>
  11121. <div style="color: rgb(171 171 171); margin-top: 10px">
  11122. 请选择要删除的组员
  11123. </div>
  11124. <el-checkbox-group v-model="checkDeleteGroup">
  11125. <el-checkbox
  11126. style="display: flex; margin-top: 20px"
  11127. v-for="(item, index) in deleteGroupUser"
  11128. :label="item.userid"
  11129. :key="index"
  11130. >{{ item.name }}</el-checkbox
  11131. >
  11132. </el-checkbox-group>
  11133. </div>
  11134. <span slot="footer" class="dialog-footer">
  11135. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11136. <el-button type="primary" @click="deleteChair">确定</el-button>
  11137. </span>
  11138. </el-dialog>
  11139. <el-dialog
  11140. title="批量上传"
  11141. :visible.sync="dialogVisiblePl"
  11142. :append-to-body="true"
  11143. width="700px"
  11144. :before-close="handleClose"
  11145. class="dialog_change"
  11146. >
  11147. <div class="marginT">
  11148. <div class="plworkBox">
  11149. <div
  11150. class="chapter_add"
  11151. style="
  11152. display: flex;
  11153. width: 150px;
  11154. flex-direction: row;
  11155. flex-wrap: wrap;
  11156. justify-content: flex-start;
  11157. margin: 0 10px 10px 0;
  11158. "
  11159. v-for="(item, index) in plworkFile"
  11160. :key="index"
  11161. >
  11162. <div class="upCover2">
  11163. <img
  11164. :src="item.url"
  11165. alt
  11166. v-if="item.fileType == 1"
  11167. @click="previewImg(item.url)"
  11168. />
  11169. <img :src="word" alt v-else-if="item.fileType == 4" />
  11170. <img :src="video" alt v-else />
  11171. <!-- <span class="picName">{{ item.name }}</span> -->
  11172. <!-- <el-input
  11173. v-model="item.username"
  11174. placeholder="请输入学生名字"
  11175. style="margin-top: 10px"
  11176. ></el-input> -->
  11177. <div
  11178. class="pl_select_box"
  11179. @click="
  11180. getUpdateMore(true, checkUpload(), item.username, index)
  11181. "
  11182. >
  11183. {{ getSName(item.username) }}
  11184. </div>
  11185. <!-- <el-select
  11186. style="margin-top: 10px"
  11187. v-model="item.username"
  11188. filterable
  11189. allow-create
  11190. placeholder="请选择学生"
  11191. >
  11192. <el-option
  11193. v-for="item1 in checkUpload()"
  11194. :key="item1.userid"
  11195. :label="item1.name ? item1.name : item1.username"
  11196. :value="item1.userid"
  11197. >
  11198. </el-option>
  11199. </el-select> -->
  11200. <div class="deleteWord" @click="clean2(index)">
  11201. <img src="../../assets/icon/deleteWorks.png" alt />
  11202. </div>
  11203. </div>
  11204. </div>
  11205. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11206. <div class="up_photo2">
  11207. <img src="../../assets/icon/plwork.png" alt />
  11208. <span>点击上传文件</span>
  11209. </div>
  11210. <input
  11211. type="file"
  11212. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11213. multiple="multiple"
  11214. style="display: none"
  11215. @change="beforeUpload3($event, 6)"
  11216. />
  11217. </div>
  11218. </div>
  11219. </div>
  11220. <!-- capture="camera" -->
  11221. <div
  11222. class="upload_send"
  11223. @click="addCourseWorksPl(taskCount)"
  11224. v-if="!proVisible2"
  11225. >
  11226. 提交
  11227. </div>
  11228. </el-dialog>
  11229. <el-dialog
  11230. title="修改名称"
  11231. :visible.sync="dialogVisibleSname"
  11232. width="500px"
  11233. :before-close="handleClose"
  11234. class="dialog_diy"
  11235. center
  11236. >
  11237. <div
  11238. style="
  11239. text-align: center;
  11240. display: flex;
  11241. align-items: center;
  11242. justify-content: center;
  11243. "
  11244. >
  11245. <span class="tian1">名称</span>
  11246. <div
  11247. class="pl_select_box"
  11248. style="margin-left: 10px; width: 200px"
  11249. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11250. >
  11251. {{ getSName(worksSName) }}
  11252. </div>
  11253. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11254. placeholder="请选择学生">
  11255. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11256. :value="item.userid">
  11257. </el-option>
  11258. </el-select> -->
  11259. <!-- <el-input
  11260. v-model="worksSName"
  11261. style="width: 250px; margin: 15px 0px"
  11262. ></el-input> -->
  11263. </div>
  11264. <span slot="footer" class="dialog-footer">
  11265. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11266. <el-button type="primary" @click="updateName">确 定</el-button>
  11267. </span>
  11268. </el-dialog>
  11269. <el-dialog
  11270. title="英语写作"
  11271. :visible.sync="engDialogVisible"
  11272. :append-to-body="true"
  11273. width="800px"
  11274. :before-close="handleClose"
  11275. class="dialog_diy"
  11276. >
  11277. <onlineWrite
  11278. v-if="engDialogVisible"
  11279. @setEnglish="setEnglishList"
  11280. :englishList="englishList"
  11281. :myAnswerList1="myAnswerList1"
  11282. ></onlineWrite>
  11283. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11284. <el-button @click="engDialogVisible = false">取 消</el-button>
  11285. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11286. </span>
  11287. </el-dialog>
  11288. <el-dialog
  11289. title="英语写作"
  11290. :visible.sync="engUpdateDialogVisible"
  11291. :append-to-body="true"
  11292. width="800px"
  11293. :before-close="handleClose"
  11294. class="dialog_diy fullStyle"
  11295. >
  11296. <div class="engUpBox">
  11297. <div class="engUpTop">
  11298. <div class="engTitle">
  11299. <div>作文题目:</div>
  11300. <div>{{ englishList1.engTitle }}</div>
  11301. </div>
  11302. <div class="engText">
  11303. <div>作文内容:</div>
  11304. <div class="cont" v-html="englishList1.englishText" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11305. </div>
  11306. </div>
  11307. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11308. <div class="oldBox">
  11309. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11310. <div class="oldText">
  11311. <div class="detailBox">
  11312. <div class="oldDetail">
  11313. <div>标题:</div>
  11314. <div>{{ oldEnglishJson.engTitle }} </div>
  11315. </div>
  11316. <div class="oldDetail1">
  11317. <div>正文:</div>
  11318. <div v-html="oldEnglishJson.engText"></div>
  11319. </div>
  11320. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11321. <div>图片:</div>
  11322. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11323. </div>
  11324. </div>
  11325. </div>
  11326. </div>
  11327. <div class="oldBox" v-if="userMes[0].type == 2">
  11328. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11329. <div class="oldText">
  11330. <div class="detailBox" style="position: relative;">
  11331. <div class="oldDetail">
  11332. <div>标题:</div>
  11333. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11334. <div v-else v-html="newEnglishList.engTitle"></div>
  11335. </div>
  11336. <div class="oldDetail">
  11337. <div>正文:</div>
  11338. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" />
  11339. <div v-else v-html="newEnglishList.engText"></div>
  11340. </div>
  11341. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11342. </div>
  11343. </div>
  11344. </div>
  11345. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11346. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11347. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11348. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11349. </div>
  11350. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11351. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11352. <div class="detailBox" style="position: relative;">
  11353. <div class="oldDetail">
  11354. <div>标题:</div>
  11355. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11356. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11357. </div>
  11358. <div class="oldDetail">
  11359. <div>正文:</div>
  11360. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" />
  11361. <div v-else v-html="oldEnglishJson1.engText"></div>
  11362. </div>
  11363. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11364. </div>
  11365. </div>
  11366. <div class="oldText" v-else-if="newEngIndex == -1">
  11367. <div class="detailBox" style="position: relative;">
  11368. <div class="oldDetail">
  11369. <div>标题:</div>
  11370. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11371. <div v-else v-html="newEnglishList.engTitle"></div>
  11372. </div>
  11373. <div class="oldDetail">
  11374. <div>正文:</div>
  11375. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" />
  11376. <div v-else v-html="newEnglishList.engText"></div>
  11377. </div>
  11378. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11379. </div>
  11380. </div>
  11381. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11382. <div class="detailBox" style="position: relative;">
  11383. <div class="oldDetail">
  11384. <div>标题:</div>
  11385. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11386. <div v-else>
  11387. <el-input v-if="greyType" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11388. <div v-else v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11389. </div>
  11390. </div>
  11391. <div class="oldDetail">
  11392. <div>正文:</div>
  11393. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11394. <div v-else>
  11395. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11396. <div v-else v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11397. </div>
  11398. </div>
  11399. <el-button @click="greyType = !greyType" style="position: absolute;bottom: -50px;right: 0;background: #409eff;color: #fff;">{{ greyType == false ? '编辑' : '取消编辑' }}</el-button>
  11400. </div>
  11401. </div>
  11402. </div>
  11403. </div>
  11404. </div>
  11405. <span slot="footer" class="dialog-footer">
  11406. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11407. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11408. </span>
  11409. </el-dialog>
  11410. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11411. <interVideo
  11412. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11413. :videoJson="videoJson"
  11414. :userid="userid"
  11415. :id="id"
  11416. :courseType="courseType"
  11417. :taskCount="taskCount"
  11418. :toolindex="toolindex"
  11419. ></interVideo>
  11420. <UpdateMore
  11421. :dialogVisibleMember.sync="dialogVisibleMember"
  11422. :cList="uploadStudentJuri"
  11423. :userid="userid"
  11424. :searchTN="worksSName2"
  11425. @setPlname="setPlname"
  11426. ></UpdateMore>
  11427. <wordCloud
  11428. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11429. :data="wordCloudData"
  11430. ></wordCloud>
  11431. <el-dialog
  11432. title="挑人"
  11433. :visible.sync="dialogVisiblePickPeople"
  11434. width="650px"
  11435. :before-close="handleClose"
  11436. class="dialog_diy"
  11437. center
  11438. >
  11439. <div class="pick_box">
  11440. <div
  11441. class="noWorksName"
  11442. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11443. v-for="(item, index) in uploadStudentJuri"
  11444. :key="index"
  11445. @click="pickStudent(item)"
  11446. >
  11447. {{ item.name }}
  11448. </div>
  11449. </div>
  11450. </el-dialog>
  11451. </div>
  11452. </template>
  11453. <script>
  11454. import "../../common/aws-sdk-2.235.1.min.js";
  11455. // import pdf from "../components/pdf3";
  11456. import pdf from "../components/vpdf";
  11457. import AskStatic from "../components/askStatic";
  11458. import AskStatic2 from "../components/askStatic2";
  11459. import AnswerData2 from "../components/answerData2";
  11460. import AnswerData from "../components/answerData";
  11461. import EditorBar from "../tools/wangEnduit.vue";
  11462. import Table from "../tools/table.vue";
  11463. import Time from "../tools/time.vue";
  11464. import Mind from "../tools/jsmind.vue";
  11465. import Sunburst from "../tools/sunburst";
  11466. import SeeBoard from "../tools/seeBoard";
  11467. import * as imageConversion from "image-conversion";
  11468. import Audio from "../components/audio.vue";
  11469. import ImgDraw from "../tools/imgDraw/imgDraw";
  11470. import { Empty } from "element-ui";
  11471. import RecordRTC from "recordrtc";
  11472. import interVideo from "../interVideo/index.vue";
  11473. import UpdateMore from "../updateMore/updateMore.vue";
  11474. import wordCloud from "../wordCloud/index.vue";
  11475. import axios from "axios";
  11476. import JSZip from "jszip";
  11477. import FileSaver from "file-saver";
  11478. import onlineWrite from "./commpont/onlineWrite";
  11479. import englishEva from "../components/englishEva";
  11480. const getFile = (url) => {
  11481. return new Promise((resolve, reject) => {
  11482. var credentials = {
  11483. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11484. secretAccessKey: "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",
  11485. }; //秘钥形式的登录上传
  11486. window.AWS.config.update(credentials);
  11487. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11488. let url2 = url;
  11489. let _url2 = "";
  11490. if (
  11491. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11492. ) {
  11493. _url2 = url2.split(
  11494. "https://view.officeapps.live.com/op/view.aspx?src="
  11495. )[1];
  11496. } else {
  11497. _url2 = url2;
  11498. }
  11499. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11500. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11501. var params = {
  11502. Bucket: "ccrb",
  11503. Key: name
  11504. };
  11505. s3.getObject(params, function (err, data) {
  11506. if (err) {
  11507. console.log(err, err.stack)
  11508. resolve({ data: 1 });
  11509. }else {
  11510. resolve({ data: data.Body });
  11511. console.log(data);
  11512. } // sxuccessful response
  11513. });
  11514. // axios({
  11515. // method: "get",
  11516. // url,
  11517. // responseType: "blob",
  11518. // })
  11519. // .then((data) => {
  11520. // resolve({ data: data.data });
  11521. // })
  11522. // .catch((error) => {
  11523. // resolve({ data: 1 });
  11524. // // reject(error.toString());
  11525. // });
  11526. });
  11527. };
  11528. export default {
  11529. components: {
  11530. EditorBar,
  11531. Time,
  11532. pdf,
  11533. AskStatic,
  11534. AskStatic2,
  11535. Mind,
  11536. Sunburst,
  11537. SeeBoard,
  11538. AnswerData2,
  11539. AnswerData,
  11540. Audio,
  11541. ImgDraw,
  11542. Table,
  11543. interVideo,
  11544. UpdateMore,
  11545. wordCloud,
  11546. onlineWrite,
  11547. englishEva,
  11548. },
  11549. data() {
  11550. return {
  11551. bg: null,
  11552. drawShow: false,
  11553. dialogVisible: false,
  11554. dialogVisiblePl: false,
  11555. commentDialogVisible: false,
  11556. dialogVisibleMember: false,
  11557. dialogVisibleWordCloud: false,
  11558. videoVisible: false,
  11559. isStar: false,
  11560. studentEvalDialogVisible: false,
  11561. studentEvalDialogVisibleTeacher: false,
  11562. dialogVisibleSelect: false,
  11563. dialogVisibleSelectTeacher: false,
  11564. dialogVisibleScore: false,
  11565. dialogVisibleSentence: false,
  11566. dialogVisibleSentenceTeacher: false,
  11567. dialogVisibleSentence1: false,
  11568. dialogVisibleWorks: false,
  11569. dialogVisibleTable: false,
  11570. dialogVisibleTableTeacher: false,
  11571. dialogVisibleWord: false,
  11572. dialogVisibleWordTeacher: false,
  11573. dialogVisibleTable2: false,
  11574. dialogVisibleTable3: false,
  11575. dialogVisibleGroupWork: false,
  11576. dialogVisibleUpdateGroup: false,
  11577. dialogVisibleDeleteGroup: false,
  11578. dialogVisibleSname: false,
  11579. dialogVisibleVideo: false,
  11580. dialogVisiblePickPeople: false,
  11581. worksSName: "",
  11582. classJuri: [],
  11583. uploadStudentJuri: [],
  11584. uploadCid: "",
  11585. snameWid: "",
  11586. sStudent: {},
  11587. sTool: "",
  11588. bzText: "",
  11589. commentDetail: [],
  11590. selectAnswer: [],
  11591. videoDetail: {},
  11592. selectJson: {},
  11593. eScore: { eBzText: "", eStar: [] },
  11594. id: this.$route.query.courseId,
  11595. userid: this.$route.query.userid,
  11596. classId: this.$route.query.cid,
  11597. // courseTypeLine: this.$route.query.type,
  11598. oid: this.$route.query.oid,
  11599. org: this.$route.query.org,
  11600. tType: this.$route.query.tType,
  11601. courseType: this.$route.query.type,
  11602. screenType: this.$route.query.screenType,
  11603. tcid2: this.$route.query.tcid,
  11604. tcid: "",
  11605. pptImgUrl: "",
  11606. pptImgUrl1: "",
  11607. commentText: "",
  11608. full: false,
  11609. sIsOpen: false,
  11610. IsLookOpen: false,
  11611. IsFollow: false,
  11612. pzDialog: false,
  11613. contentDialog: false,
  11614. mlDialog: false,
  11615. type: 1,
  11616. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11617. sentenceList1: [],
  11618. tableJson: [],
  11619. tableJsonO: [],
  11620. wordJson: [],
  11621. wordJsonO: [],
  11622. vedio: [],
  11623. text: [],
  11624. textList: [],
  11625. line: [],
  11626. lineList: [],
  11627. chapTools: [],
  11628. chapToolList: [],
  11629. file: [],
  11630. fileC: [],
  11631. vedioTime: [],
  11632. upToolImg: "",
  11633. preTime: 0,
  11634. rateList: {
  11635. ca: 0,
  11636. },
  11637. rateParams: [],
  11638. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11639. studyJuri: [
  11640. {
  11641. content: "",
  11642. cover: [],
  11643. upVedio: [],
  11644. upFile: [],
  11645. },
  11646. ],
  11647. isClose: 0,
  11648. plworkFile: [],
  11649. mr: require("../../assets/vedioPic.png"),
  11650. word: require("../../assets/icon/isWord.png"),
  11651. word2: require("../../assets/icon/word2.png"),
  11652. video: require("../../assets/icon/isVideo.png"),
  11653. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11654. likes: require("../../assets/icon/comment/likes.png"),
  11655. scoreImg: require("../../assets/score.png"),
  11656. courseDetail: {},
  11657. reply: "",
  11658. isSelect: false,
  11659. chapInfo: [],
  11660. chapInfoList: [],
  11661. taskCount: 0,
  11662. imgList: [],
  11663. noImgList: [],
  11664. pzList: [],
  11665. timeWorkList: [],
  11666. PlTextList: [
  11667. "Excellent!",
  11668. "nice!",
  11669. "很有创意!",
  11670. "还不错哦~",
  11671. "继续努力哦~",
  11672. ],
  11673. isClickNav: "",
  11674. navId: "",
  11675. playerOptions: {
  11676. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11677. autoplay: false, //如果true,浏览器准备好时开始回放。
  11678. muted: false, // 默认情况下将会消除任何音频。
  11679. loop: false, // 导致视频一结束就重新开始。
  11680. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11681. language: "zh-CN",
  11682. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11683. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11684. sources: [
  11685. {
  11686. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11687. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11688. },
  11689. ],
  11690. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11691. // poster: dataRes.imgUrl, //你的封面地址
  11692. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11693. controlBar: {
  11694. timeDivider: true, //当前时间和持续时间的分隔符
  11695. durationDisplay: true, //显示持续时间
  11696. remainingTimeDisplay: false, //是否显示剩余时间功能
  11697. fullscreenToggle: true, //全屏按钮
  11698. },
  11699. },
  11700. playerOptions1: {
  11701. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11702. autoplay: false, //如果true,浏览器准备好时开始回放。
  11703. muted: false, // 默认情况下将会消除任何音频。
  11704. loop: false, // 导致视频一结束就重新开始。
  11705. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11706. language: "zh-CN",
  11707. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11708. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11709. sources: [
  11710. {
  11711. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11712. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11713. },
  11714. ],
  11715. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11716. // poster: dataRes.imgUrl, //你的封面地址
  11717. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11718. controlBar: {
  11719. timeDivider: true, //当前时间和持续时间的分隔符
  11720. durationDisplay: true, //显示持续时间
  11721. remainingTimeDisplay: false, //是否显示剩余时间功能
  11722. fullscreenToggle: true, //全屏按钮
  11723. },
  11724. },
  11725. playerO: {},
  11726. noneBtnImg: false,
  11727. proVisible: false,
  11728. proVisible2: false,
  11729. progress: 0,
  11730. isFinishSize: 0,
  11731. isAllSize: 0,
  11732. questionAnswer: "",
  11733. answerQ: "", //问答标题
  11734. rateJson: [],
  11735. wbCount: 0,
  11736. wordCount: 0,
  11737. mindCount: 0,
  11738. askCount: 0,
  11739. noteCount: 0,
  11740. mindNetWorkCount: 0,
  11741. libraryCount: 0,
  11742. workCount: 0,
  11743. timeCount: 0,
  11744. answerCount: 0,
  11745. trainCount: 0,
  11746. evalCount: 0,
  11747. dialogImageUrl: "",
  11748. pictureDialog: false,
  11749. toolTypeList: [],
  11750. dialogVisible1: false,
  11751. dialogVisible2: false,
  11752. dialogVisible3: false,
  11753. dialogVisible6: false,
  11754. dialogVisible4: false,
  11755. isNoHomeWork: false,
  11756. dialogVisible5: false,
  11757. dialogVisible5Teacher: false,
  11758. dialogVisibleChoice: false,
  11759. dialogVisibleChoiceTeacher: false,
  11760. answerDialogVisible: false,
  11761. answerDialogVisibleTeacher: false,
  11762. juriVisible: false,
  11763. timeDialogVisible: false,
  11764. replyDialogVisible: false,
  11765. toolDialogVisible: false,
  11766. engDialogVisible: false,
  11767. engUpdateDialogVisible:false,
  11768. engEvaDialogVisible: false,
  11769. evaEngJson: {
  11770. teacherJson: {},
  11771. studentJson: {},
  11772. message: {},
  11773. },
  11774. isNoUserid:false,
  11775. engListLength:0,
  11776. engWid:"",
  11777. newEnglishList:{
  11778. engTitle:"",
  11779. engText:"",
  11780. },
  11781. newEnglishList1:[],
  11782. oldEnglishJson:{},
  11783. oldEnglishJson1:{},
  11784. englishList1:{},
  11785. englishList:{},
  11786. myAnswerList1:{},
  11787. topHeight:0,
  11788. newEngIndex:-1,
  11789. englishToolIndex:0,
  11790. userMes:{},
  11791. englishToolIndex:0,
  11792. replyIndex: 0,
  11793. replyPid: "",
  11794. radio: [],
  11795. isAsk: false,
  11796. askJson: {
  11797. askCount: 1,
  11798. askTitle: "",
  11799. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11800. },
  11801. testJson: {},
  11802. englishList: {},
  11803. topHeight:0,
  11804. checkJson: [],
  11805. askList: [],
  11806. answerList: [],
  11807. navList: [],
  11808. addPzDialog: false,
  11809. pzConText: "",
  11810. worksStudent: [],
  11811. isCloseList: [],
  11812. workStudent: [],
  11813. groupStudent: [],
  11814. groupStudentUid: [],
  11815. noWorksS: [],
  11816. isWorksS: [],
  11817. noWorksStudent: [],
  11818. toolindex: 0,
  11819. toolDetailIndex: null,
  11820. groupIndex: 0,
  11821. workTypeB: false,
  11822. workTypeC: false,
  11823. isAnswer: false,
  11824. isHovered: false,
  11825. isHovered1: false,
  11826. isHovered2: false,
  11827. timer: null,
  11828. opertimer: null,
  11829. showType: 0,
  11830. fileType: 0,
  11831. showPDF: false,
  11832. noteName: "",
  11833. evaJuri: [],
  11834. evalua: "",
  11835. eTitle: "",
  11836. eName: "",
  11837. eJson: {},
  11838. fid: "", //一级
  11839. sid: "", //二级
  11840. tid: "", //二级
  11841. typeMode: 1,
  11842. eJSONNum: 0,
  11843. Etype: 1,
  11844. data: {
  11845. meta: {
  11846. name: "example",
  11847. author: "dd@163.com",
  11848. version: "0.2",
  11849. },
  11850. format: "node_array",
  11851. data: [{ id: "root", isroot: true, topic: "" }],
  11852. },
  11853. fullDialogVisible: false,
  11854. fulltype: "",
  11855. fullUrl: "",
  11856. commentIndexJson: {},
  11857. Stbodywidth: 0,
  11858. ispzType: 0,
  11859. pzType: 1,
  11860. wScore: 0,
  11861. scoreDetail: "",
  11862. videoStart: false,
  11863. recorder: null,
  11864. groupJson: {},
  11865. islock: false,
  11866. groupJson2: {},
  11867. dialogVisibleGroup: false,
  11868. dialogVisibleGroup2: false,
  11869. updateGroupArray: [],
  11870. updateGroupUser: {},
  11871. deleteGroupUser: [],
  11872. deleteGroupArray: {},
  11873. checkChair: "",
  11874. checkDeleteGroup: [],
  11875. inviteCode: "",
  11876. courseGroupStudent: [],
  11877. courseGroupStudentUid: [],
  11878. courseGroup: {},
  11879. isGroup: false,
  11880. toolIndex: null,
  11881. tool: {},
  11882. isWorkTool: [
  11883. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11884. ], //, 40
  11885. videoJson: {},
  11886. toolType: 0,
  11887. checktoolArray: [],
  11888. vChapterData: [],
  11889. isUpdateToolDetail: false,
  11890. isUpdateToolDetail1: false,
  11891. updateToolDetailInner: "",
  11892. checkboxList: [],
  11893. plIndex: "",
  11894. worksSName2: "",
  11895. worksSid: "",
  11896. wordCloudData: [],
  11897. isPickStudent: [],
  11898. pzStype: 1,
  11899. myAnList: {},
  11900. downLoading: false,
  11901. greyType: false,
  11902. };
  11903. },
  11904. methods: {
  11905. setEnglishList(engList) {
  11906. this.myAnList = engList;
  11907. },
  11908. addToolChoose() {
  11909. if (!this.checktoolArray.length) {
  11910. this.$message.error("请选择要添加的任务");
  11911. return;
  11912. }
  11913. if (
  11914. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11915. this.taskCount
  11916. ].toolChoose[0].tool.length
  11917. ) {
  11918. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11919. this.taskCount
  11920. ].toolChoose[0].tool = this.checktoolArray;
  11921. } else {
  11922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11923. this.taskCount
  11924. ].toolChoose.push({
  11925. tool: this.checktoolArray,
  11926. toolDetail: "",
  11927. toolType: 0,
  11928. askCount: 1,
  11929. askTitle: "",
  11930. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11931. });
  11932. }
  11933. let params = [
  11934. {
  11935. cid: this.id,
  11936. chapters: JSON.stringify(this.chapInfoList),
  11937. uid: this.userid,
  11938. unitIndex: this.courseType,
  11939. },
  11940. ];
  11941. this.ajax
  11942. .post(this.$store.state.api + "updateWorkNew4", params)
  11943. .then((res) => {
  11944. this.$message({
  11945. message: "添加成功",
  11946. type: "success",
  11947. });
  11948. this.checktoolArray = [];
  11949. this.getCourseDetail(2);
  11950. this.checkBz(
  11951. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11952. this.taskCount
  11953. ].toolChoose.length - 1
  11954. );
  11955. this.toolDialogVisible = false;
  11956. this.refreshCourse();
  11957. this.$forceUpdate();
  11958. })
  11959. .catch((err) => {
  11960. console.error(err);
  11961. });
  11962. },
  11963. checkBz(index) {
  11964. this.isUpdateToolDetail = false;
  11965. this.$forceUpdate();
  11966. setTimeout(() => {
  11967. document.scrollingElement.scrollTop =
  11968. document.querySelectorAll(".filebox")[index].offsetTop +
  11969. document.querySelector(".student_body").offsetTop;
  11970. }, 500);
  11971. },
  11972. updateToolDetail(i, type) {
  11973. if (!this.isUpdateToolDetail1 && type == 2) {
  11974. this.toolDetailIndex = i
  11975. this.isUpdateToolDetail1 = true;
  11976. setTimeout(() => {
  11977. this.updateToolDetailInner = JSON.parse(
  11978. JSON.stringify(
  11979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11980. this.taskCount
  11981. ].toolChoose[i].toolDetail
  11982. )
  11983. );
  11984. document.querySelector(".checkTextArea").focus();
  11985. }, 0);
  11986. } else if((this.isUpdateToolDetail1 && type != 2)){
  11987. // this.toolDetailIndex = i;
  11988. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11989. this.taskCount
  11990. ].toolChoose[i].toolDetail = JSON.parse(
  11991. JSON.stringify(this.updateToolDetailInner)
  11992. );
  11993. let params = [
  11994. {
  11995. cid: this.id,
  11996. chapters: JSON.stringify(this.chapInfoList),
  11997. uid: this.userid,
  11998. unitIndex: this.courseType,
  11999. },
  12000. ];
  12001. this.ajax
  12002. .post(this.$store.state.api + "updateWorkNew4", params)
  12003. .then((res) => {
  12004. this.isUpdateToolDetail1 = false;
  12005. this.$message({
  12006. message: "修改成功",
  12007. type: "success",
  12008. });
  12009. this.toolDetailIndex = null;
  12010. this.updateToolDetailInner = "";
  12011. this.getCourseDetail(2);
  12012. this.$forceUpdate();
  12013. })
  12014. .catch((err) => {
  12015. console.error(err);
  12016. });
  12017. } else if((this.isUpdateToolDetail1 && type == 2)){
  12018. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12019. this.taskCount
  12020. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12021. JSON.stringify(this.updateToolDetailInner)
  12022. );
  12023. let params = [
  12024. {
  12025. cid: this.id,
  12026. chapters: JSON.stringify(this.chapInfoList),
  12027. uid: this.userid,
  12028. unitIndex: this.courseType,
  12029. },
  12030. ];
  12031. this.ajax
  12032. .post(this.$store.state.api + "updateWorkNew4", params)
  12033. .then((res) => {
  12034. this.$message({
  12035. message: "修改成功",
  12036. type: "success",
  12037. });
  12038. this.toolDetailIndex = i;
  12039. this.isUpdateToolDetail1 = true;
  12040. setTimeout(() => {
  12041. this.updateToolDetailInner = JSON.parse(
  12042. JSON.stringify(
  12043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12044. this.taskCount
  12045. ].toolChoose[i].toolDetail
  12046. )
  12047. );
  12048. document.querySelector(".checkTextArea").focus();
  12049. }, 0);
  12050. this.getCourseDetail(2);
  12051. this.$forceUpdate();
  12052. })
  12053. .catch((err) => {
  12054. console.error(err);
  12055. });
  12056. }
  12057. },
  12058. jumpGj(i, j, k, l) {
  12059. for (var z = 0; z < this.navList.length; z++) {
  12060. for (var q = 0; q < this.navList[z].task.length; q++) {
  12061. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12062. this.navList[z].task[q].tool[w].isTool = false;
  12063. }
  12064. }
  12065. }
  12066. console.log(this.navList);
  12067. this.navList[i].task[j].tool[k].isTool =
  12068. !this.navList[i].task[j].tool[k].isTool;
  12069. var a = document.scrollingElement;
  12070. let target = document.querySelector(`#gj${k}`);
  12071. if (target) {
  12072. target.scrollIntoView(true);
  12073. setTimeout(() => {
  12074. a.scrollTop = a.scrollTop - 150;
  12075. }, 0);
  12076. }
  12077. this.navId = ""
  12078. if (l) {
  12079. this.courseType = i;
  12080. // this.navId = l;
  12081. this.taskCount = j;
  12082. this.selectPz();
  12083. this.getHomeWork();
  12084. this.getCourseDetail(2);
  12085. }
  12086. // var b = this.$refs["bz" + k][0];
  12087. // a.scrollTop = b.offsetTop;
  12088. },
  12089. addTools2(i) {
  12090. if (i == 4) {
  12091. // this.openTools2(4);
  12092. this.$message.error("暂未开放");
  12093. return;
  12094. }
  12095. if (i == 45) {
  12096. // this.openTools2(45);
  12097. this.$message.error("暂未开放");
  12098. return;
  12099. }
  12100. if (i == 47) {
  12101. // this.openTools2(47);
  12102. this.$message.error("暂未开放");
  12103. return;
  12104. }
  12105. if (i == 49) {
  12106. // this.openTools2(49);
  12107. this.$message.error("暂未开放");
  12108. return;
  12109. }
  12110. if (i == 62) {
  12111. // this.openTools(itemTaskIndex, 62, toolIndex);
  12112. this.$message.error("暂未开放");
  12113. return;
  12114. }
  12115. if (i == 15) {
  12116. // this.openTools(itemTaskIndex, 15, toolIndex);
  12117. this.$message.error("暂未开放");
  12118. return;
  12119. }
  12120. if (i == 40) {
  12121. // this.openTools(itemTaskIndex, 40, toolIndex);
  12122. this.$message.error("暂未开放");
  12123. return;
  12124. }
  12125. if (i == 41) {
  12126. // this.openTools(itemTaskIndex, 41, toolIndex);
  12127. this.$message.error("暂未开放");
  12128. return;
  12129. }
  12130. if (i == 42) {
  12131. // this.openTools(itemTaskIndex, 42, toolIndex);
  12132. this.$message.error("暂未开放");
  12133. return;
  12134. }
  12135. if (this.checktoolArray.length > 0) {
  12136. if (this.checktoolArray.indexOf(i) != -1) {
  12137. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12138. } else {
  12139. this.checktoolArray = [];
  12140. this.checktoolArray.push(i);
  12141. }
  12142. } else {
  12143. this.checktoolArray.push(i);
  12144. }
  12145. this.$forceUpdate();
  12146. },
  12147. jump() {
  12148. window.parent.postMessage({ tools: "43" }, "*");
  12149. },
  12150. getUpdateMore(f, checkboxList, searchTN, index) {
  12151. this.dialogVisibleMember = f;
  12152. this.checkboxList = checkboxList;
  12153. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12154. this.plIndex = index;
  12155. },
  12156. setPlname(a) {
  12157. if (this.plworkFile.length) {
  12158. this.plworkFile[this.plIndex].username = a;
  12159. } else {
  12160. this.worksSName = a;
  12161. }
  12162. this.dialogVisibleMember = false;
  12163. },
  12164. previewImg(url) {
  12165. this.$hevueImgPreview(url);
  12166. },
  12167. checkImg(list) {
  12168. if (!list.length) {
  12169. return;
  12170. }
  12171. this.$hevueImgPreview({
  12172. multiple: true, // 开启多图预览模式
  12173. imgList: list, // 需要预览的多图数组
  12174. });
  12175. },
  12176. change(val) {
  12177. console.log(val);
  12178. },
  12179. goTo(path) {
  12180. this.$router.push(path);
  12181. },
  12182. handlePictureCardPreview(url) {
  12183. this.dialogImageUrl = url;
  12184. this.pictureDialog = true;
  12185. },
  12186. clean(type) {
  12187. if (type == 1) {
  12188. this.studyJuri[0].cover.splice(0, 1);
  12189. } else if (type == 2) {
  12190. this.studyJuri[0].upVedio.splice(0, 1);
  12191. } else {
  12192. this.studyJuri[0].upFile.splice(0, 1);
  12193. }
  12194. },
  12195. clean2(index) {
  12196. this.plworkFile.splice(index, 1);
  12197. },
  12198. handleClose(done) {
  12199. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12200. this.videoDetail.sources[0].src = "";
  12201. }
  12202. this.commentIndexJson = {};
  12203. done();
  12204. },
  12205. fullTools() {
  12206. this.full = !this.full;
  12207. },
  12208. imgChange(file, fileList, type) {
  12209. if (type == 1) {
  12210. var _tmp = this.studyJuri[0].cover;
  12211. } else if (type == 2) {
  12212. var _tmp = this.studyJuri[0].upVedio;
  12213. } else {
  12214. var _tmp = this.studyJuri[0].upFile;
  12215. }
  12216. this.noneBtnImg = _tmp.length >= 1;
  12217. },
  12218. setContent(bool) {
  12219. this.contentDialog = bool;
  12220. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12221. document.querySelector(".workd_media").style.height = "650px";
  12222. } else if (document.querySelector(".workd_media")) {
  12223. document.querySelector(".workd_media").style.height = "auto";
  12224. }
  12225. },
  12226. setContent2(bool) {
  12227. this.mlDialog = bool;
  12228. if (
  12229. bool &&
  12230. this.contentDialog &&
  12231. document.querySelector(".workd_media")
  12232. ) {
  12233. document.querySelector(".workd_media").style.height = "650px";
  12234. } else if (document.querySelector(".workd_media")) {
  12235. document.querySelector(".workd_media").style.height = "auto";
  12236. }
  12237. },
  12238. openToolAll() {
  12239. this.toolDialogVisible = true;
  12240. },
  12241. addImg(e) {
  12242. var el = e.currentTarget;
  12243. // this.$message.success('触发上传')
  12244. el.getElementsByTagName("input")[0].click();
  12245. e.target.value = "";
  12246. },
  12247. addSelectAnswer() {
  12248. let params = [
  12249. {
  12250. uid: this.userid,
  12251. cid: this.id,
  12252. stage: this.courseType,
  12253. task: this.taskCount,
  12254. tool: this.toolindex,
  12255. content: this.selectAnswer.answer,
  12256. type: 7,
  12257. },
  12258. ];
  12259. this.ajax
  12260. .post(this.$store.state.api + "addCourseWorks", params)
  12261. .then((res) => {
  12262. this.$message({
  12263. message: "提交成功",
  12264. type: "success",
  12265. });
  12266. this.dialogVisibleSelect = false;
  12267. // this.selectAnswer = {};
  12268. this.selectSWorks();
  12269. this.selectStudent();
  12270. })
  12271. .catch((err) => {
  12272. this.$message.error("提交失败");
  12273. console.error(err);
  12274. });
  12275. },
  12276. addSelectAnswerTeacher() {
  12277. let params = [
  12278. {
  12279. uid: this.sStudent.userid,
  12280. cid: this.id,
  12281. stage: this.courseType,
  12282. task: this.taskCount,
  12283. tool: this.toolindex,
  12284. content: this.selectAnswer.answer,
  12285. type: 7,
  12286. },
  12287. ];
  12288. this.ajax
  12289. .post(this.$store.state.api + "addCourseWorks", params)
  12290. .then((res) => {
  12291. this.$message({
  12292. message: "提交成功",
  12293. type: "success",
  12294. });
  12295. this.dialogVisibleSelectTeacher = false;
  12296. // this.selectAnswer = {};
  12297. this.selectSWorks();
  12298. this.selectStudent();
  12299. })
  12300. .catch((err) => {
  12301. this.$message.error("提交失败");
  12302. console.error(err);
  12303. });
  12304. },
  12305. addSenWorks() {
  12306. for (var i = 0; i < this.sentenceList.length; i++) {
  12307. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12308. if (
  12309. this.sentenceList[i].chooseSenList[j] == undefined ||
  12310. this.sentenceList[i].chooseSenList[j] == ""
  12311. ) {
  12312. this.$message.error("请将答案填写完整!");
  12313. return;
  12314. }
  12315. }
  12316. }
  12317. let params = [
  12318. {
  12319. uid: this.userid,
  12320. cid: this.id,
  12321. stage: this.courseType,
  12322. task: this.taskCount,
  12323. tool: this.toolindex,
  12324. content: JSON.stringify(this.sentenceList),
  12325. type: 9,
  12326. },
  12327. ];
  12328. this.ajax
  12329. .post(this.$store.state.api + "addCourseWorks", params)
  12330. .then((res) => {
  12331. this.$message({
  12332. message: "提交成功",
  12333. type: "success",
  12334. });
  12335. this.dialogVisibleSentence = false;
  12336. // this.selectAnswer = {};
  12337. this.selectSWorks();
  12338. this.selectStudent();
  12339. })
  12340. .catch((err) => {
  12341. this.$message.error("提交失败");
  12342. console.error(err);
  12343. });
  12344. },
  12345. addSenWorksTeacher() {
  12346. for (var i = 0; i < this.sentenceList.length; i++) {
  12347. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12348. if (
  12349. this.sentenceList[i].chooseSenList[j] == undefined ||
  12350. this.sentenceList[i].chooseSenList[j] == ""
  12351. ) {
  12352. this.$message.error("请将答案填写完整!");
  12353. return;
  12354. }
  12355. }
  12356. }
  12357. let params = [
  12358. {
  12359. uid: this.sStudent.userid,
  12360. cid: this.id,
  12361. stage: this.courseType,
  12362. task: this.taskCount,
  12363. tool: this.toolindex,
  12364. content: JSON.stringify(this.sentenceList),
  12365. type: 9,
  12366. },
  12367. ];
  12368. this.ajax
  12369. .post(this.$store.state.api + "addCourseWorks", params)
  12370. .then((res) => {
  12371. this.$message({
  12372. message: "提交成功",
  12373. type: "success",
  12374. });
  12375. this.dialogVisibleSentenceTeacher = false;
  12376. // this.selectAnswer = {};
  12377. this.selectSWorks();
  12378. this.selectStudent();
  12379. })
  12380. .catch((err) => {
  12381. this.$message.error("提交失败");
  12382. console.error(err);
  12383. });
  12384. },
  12385. returnTableText() {
  12386. this.$confirm("确定还原此模板吗?", "提示", {
  12387. confirmButtonText: "确定",
  12388. cancelButtonText: "取消",
  12389. type: "warning",
  12390. })
  12391. .then(() => {
  12392. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12393. })
  12394. .catch(() => {});
  12395. },
  12396. addTableWorks() {
  12397. let params = [
  12398. {
  12399. uid: this.userid,
  12400. cid: this.id,
  12401. stage: this.courseType,
  12402. task: this.taskCount,
  12403. tool: this.toolindex,
  12404. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12405. type: 10,
  12406. },
  12407. ];
  12408. this.ajax
  12409. .post(this.$store.state.api + "addCourseWorks", params)
  12410. .then((res) => {
  12411. this.$message({
  12412. message: "提交成功",
  12413. type: "success",
  12414. });
  12415. this.dialogVisibleTable = false;
  12416. // this.selectAnswer = {};
  12417. this.selectSWorks();
  12418. this.selectStudent();
  12419. })
  12420. .catch((err) => {
  12421. this.$message.error("提交失败");
  12422. console.error(err);
  12423. });
  12424. },
  12425. tableRowClassName({ row, rowIndex }) {
  12426. if ((rowIndex + 1) % 2 === 0) {
  12427. return "even_row";
  12428. } else {
  12429. return "";
  12430. }
  12431. },
  12432. addTableWorksTeacher() {
  12433. let params = [
  12434. {
  12435. uid: this.sStudent.userid,
  12436. cid: this.id,
  12437. stage: this.courseType,
  12438. task: this.taskCount,
  12439. tool: this.toolindex,
  12440. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12441. type: 10,
  12442. },
  12443. ];
  12444. this.ajax
  12445. .post(this.$store.state.api + "addCourseWorks", params)
  12446. .then((res) => {
  12447. this.$message({
  12448. message: "提交成功",
  12449. type: "success",
  12450. });
  12451. this.dialogVisibleTableTeacher = false;
  12452. // this.selectAnswer = {};
  12453. this.selectSWorks();
  12454. this.selectStudent();
  12455. })
  12456. .catch((err) => {
  12457. this.$message.error("提交失败");
  12458. console.error(err);
  12459. });
  12460. },
  12461. returnWordText() {
  12462. this.$confirm("确定还原此模板吗?", "提示", {
  12463. confirmButtonText: "确定",
  12464. cancelButtonText: "取消",
  12465. type: "warning",
  12466. })
  12467. .then(() => {
  12468. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12469. })
  12470. .catch(() => {});
  12471. },
  12472. addWordWorks() {
  12473. let params = [
  12474. {
  12475. uid: this.userid,
  12476. cid: this.id,
  12477. stage: this.courseType,
  12478. task: this.taskCount,
  12479. tool: this.toolindex,
  12480. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12481. type: 13,
  12482. atool: 52,
  12483. },
  12484. ];
  12485. this.ajax
  12486. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12487. .then((res) => {
  12488. this.$message({
  12489. message: "提交成功",
  12490. type: "success",
  12491. });
  12492. this.dialogVisibleWord = false;
  12493. // this.selectAnswer = {};
  12494. this.selectSWorks();
  12495. this.selectStudent();
  12496. })
  12497. .catch((err) => {
  12498. this.$message.error("提交失败");
  12499. console.error(err);
  12500. });
  12501. },
  12502. addWordWorksTeacher() {
  12503. let params = [
  12504. {
  12505. uid: this.sStudent.userid,
  12506. cid: this.id,
  12507. stage: this.courseType,
  12508. task: this.taskCount,
  12509. tool: this.toolindex,
  12510. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12511. type: 13,
  12512. atool: 52,
  12513. },
  12514. ];
  12515. this.ajax
  12516. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12517. .then((res) => {
  12518. this.$message({
  12519. message: "提交成功",
  12520. type: "success",
  12521. });
  12522. this.dialogVisibleWordTeacher = false;
  12523. // this.selectAnswer = {};
  12524. this.selectSWorks();
  12525. this.selectStudent();
  12526. })
  12527. .catch((err) => {
  12528. this.$message.error("提交失败");
  12529. console.error(err);
  12530. });
  12531. },
  12532. addCourseWorks(i) {
  12533. var typesql;
  12534. if (this.fileType === 0) {
  12535. typesql = 1;
  12536. } else if (this.fileType === 1) {
  12537. typesql = 4;
  12538. } else if (this.fileType === 2) {
  12539. typesql = 5;
  12540. } else if (this.fileType === 3) {
  12541. typesql = 12;
  12542. }
  12543. if (!this.studyJuri[0].cover[0].url) {
  12544. this.$message.error("请上传文件");
  12545. return;
  12546. }
  12547. let params = [
  12548. {
  12549. uid: this.userid,
  12550. cid: this.id,
  12551. stage: this.courseType,
  12552. task: i,
  12553. tool: this.toolindex,
  12554. content: this.studyJuri[0].cover[0].url,
  12555. type: typesql,
  12556. },
  12557. ];
  12558. this.ajax
  12559. .post(this.$store.state.api + "addCourseWorksR", params)
  12560. .then((res) => {
  12561. this.$message({
  12562. message: "提交成功",
  12563. type: "success",
  12564. });
  12565. this.studyJuri[0].cover = [];
  12566. this.dialogVisible = false;
  12567. this.getCourseDetail(2);
  12568. })
  12569. .catch((err) => {
  12570. this.$message.error("提交失败");
  12571. console.error(err);
  12572. });
  12573. },
  12574. addCourseWorksPl(i) {
  12575. let _files = this.plworkFile;
  12576. var c = 1;
  12577. for (var k = 0; k < _files.length; k++) {
  12578. if (!_files[k].username) {
  12579. c = 2;
  12580. }
  12581. }
  12582. if (c == 2) {
  12583. this.$message.error("请填写学生姓名");
  12584. return;
  12585. }
  12586. let params = [
  12587. {
  12588. ateacher: this.userid,
  12589. cid: this.id,
  12590. stage: this.courseType,
  12591. task: i,
  12592. tool: this.toolindex,
  12593. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12594. },
  12595. ];
  12596. this.ajax
  12597. .post(this.$store.state.api + "addCourseWorksPl", params)
  12598. .then((res) => {
  12599. this.$message({
  12600. message: "提交成功",
  12601. type: "success",
  12602. });
  12603. this.plworkFile = [];
  12604. this.dialogVisiblePl = false;
  12605. this.getCourseDetail(2);
  12606. })
  12607. .catch((err) => {
  12608. this.$message.error("提交失败");
  12609. console.error(err);
  12610. });
  12611. },
  12612. addCourseWorks2(i) {
  12613. var typesql;
  12614. if (this.fileType === 0) {
  12615. typesql = 0;
  12616. } else if (this.fileType === 1) {
  12617. typesql = 1;
  12618. } else if (this.fileType === 2) {
  12619. typesql = 3;
  12620. } else if (this.fileType === 3) {
  12621. typesql = 12;
  12622. }
  12623. if (!this.studyJuri[0].cover[0].url) {
  12624. this.$message.error("请上传文件");
  12625. return;
  12626. }
  12627. let params = [
  12628. {
  12629. uid: this.userid,
  12630. cid: this.id,
  12631. stage: this.courseType,
  12632. task: i,
  12633. tool: this.toolindex,
  12634. content: JSON.stringify({
  12635. type: typesql,
  12636. groupIndex: this.groupIndex,
  12637. url: this.studyJuri[0].cover[0].url,
  12638. }).replaceAll(/%/g, "%25"),
  12639. type: 11,
  12640. atool: 49,
  12641. text: "",
  12642. },
  12643. ];
  12644. this.ajax
  12645. .post(this.$store.state.api + "addCourseWorks5", params)
  12646. .then((res) => {
  12647. this.$message({
  12648. message: "提交成功",
  12649. type: "success",
  12650. });
  12651. this.studyJuri[0].cover = [];
  12652. this.dialogVisibleGroupWork = false;
  12653. this.getCourseDetail(2);
  12654. })
  12655. .catch((err) => {
  12656. this.$message.error("提交失败");
  12657. console.error(err);
  12658. });
  12659. },
  12660. addEnglishWork() {
  12661. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12662. this.$message.error("请输入作文标题和正文!");
  12663. return;
  12664. }
  12665. let params = [
  12666. {
  12667. uid: this.userid,
  12668. cid: this.id,
  12669. stage: this.courseType,
  12670. task: this.taskCount,
  12671. tool: this.englishToolIndex,
  12672. content: JSON.stringify(this.myAnList),
  12673. type: 16,
  12674. atool: 69,
  12675. text: "",
  12676. },
  12677. ];
  12678. this.ajax
  12679. .post(this.$store.state.api + "addCourseWorks5", params)
  12680. .then((res) => {
  12681. this.$message({
  12682. message: "提交成功",
  12683. type: "success",
  12684. });
  12685. this.myAnList = {};
  12686. this.englishList = {};
  12687. this.englishToolIndex = 0;
  12688. this.engDialogVisible = false;
  12689. this.selectSWorks();
  12690. this.selectStudent();
  12691. })
  12692. .catch((err) => {
  12693. this.$message.error("提交失败");
  12694. console.error(err);
  12695. });
  12696. },
  12697. addCourseWorksGong(i, data, tool) {
  12698. let params = [
  12699. {
  12700. uid: this.userid,
  12701. cid: this.id,
  12702. stage: this.courseType,
  12703. task: this.taskCount,
  12704. tool: i,
  12705. content: data,
  12706. type: 12,
  12707. atool: tool,
  12708. text: "",
  12709. },
  12710. ];
  12711. this.ajax
  12712. .post(this.$store.state.api + "addCourseWorks5", params)
  12713. .then((res) => {
  12714. this.$message({
  12715. message: "提交成功",
  12716. type: "success",
  12717. });
  12718. this.studyJuri[0].cover = [];
  12719. this.selectSWorks();
  12720. this.selectStudent();
  12721. })
  12722. .catch((err) => {
  12723. this.$message.error("提交失败");
  12724. console.error(err);
  12725. });
  12726. },
  12727. addCourseWorksGongTeacher(i, data, tool) {
  12728. let params = [
  12729. {
  12730. uid: this.sStudent.userid,
  12731. cid: this.id,
  12732. stage: this.courseType,
  12733. task: this.taskCount,
  12734. tool: i,
  12735. content: data,
  12736. type: 12,
  12737. atool: tool,
  12738. text: "",
  12739. },
  12740. ];
  12741. this.ajax
  12742. .post(this.$store.state.api + "addCourseWorks5", params)
  12743. .then((res) => {
  12744. this.$message({
  12745. message: "提交成功",
  12746. type: "success",
  12747. });
  12748. this.studyJuri[0].cover = [];
  12749. this.dialogVisibleWorks = false;
  12750. this.selectSWorks();
  12751. this.selectStudent();
  12752. })
  12753. .catch((err) => {
  12754. this.$message.error("提交失败");
  12755. console.error(err);
  12756. });
  12757. },
  12758. addCourseWorksGongPl(i, data, tool, type) {
  12759. let params = [
  12760. {
  12761. uid: this.sStudent.userid,
  12762. cid: this.id,
  12763. stage: this.courseType,
  12764. task: this.taskCount,
  12765. tool: i,
  12766. content: data,
  12767. type: type,
  12768. atool: tool,
  12769. text: "",
  12770. },
  12771. ];
  12772. this.ajax
  12773. .post(this.$store.state.api + "addCourseWorks5", params)
  12774. .then((res) => {
  12775. this.$message({
  12776. message: "提交成功",
  12777. type: "success",
  12778. });
  12779. this.studyJuri[0].cover = [];
  12780. this.dialogVisibleWorks = false;
  12781. this.selectSWorks();
  12782. this.selectStudent();
  12783. })
  12784. .catch((err) => {
  12785. this.$message.error("提交失败");
  12786. console.error(err);
  12787. });
  12788. },
  12789. addCourseWorksTeacher(i) {
  12790. var typesql;
  12791. if (this.sTool == 32) {
  12792. this.addCourseWorksGongTeacher(
  12793. this.toolindex,
  12794. this.studyJuri[0].cover[0].url,
  12795. this.sTool
  12796. );
  12797. return;
  12798. }
  12799. if (this.fileType === 0) {
  12800. typesql = 1;
  12801. } else if (this.fileType === 1) {
  12802. typesql = 4;
  12803. } else if (this.fileType === 2) {
  12804. typesql = 5;
  12805. } else if (this.fileType === 3) {
  12806. typesql = 12;
  12807. }
  12808. if (this.sTool == 50) {
  12809. this.addCourseWorksGongPl(
  12810. this.toolindex,
  12811. this.studyJuri[0].cover[0].url,
  12812. this.sTool,
  12813. typesql
  12814. );
  12815. return;
  12816. }
  12817. if (!this.studyJuri[0].cover[0].url) {
  12818. this.$message.error("请上传文件");
  12819. return;
  12820. }
  12821. let params = [
  12822. {
  12823. uid: this.sStudent.userid,
  12824. cid: this.id,
  12825. stage: this.courseType,
  12826. task: i,
  12827. tool: this.toolindex,
  12828. content: this.studyJuri[0].cover[0].url,
  12829. type: typesql,
  12830. ateacher: this.userid,
  12831. },
  12832. ];
  12833. this.ajax
  12834. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12835. .then((res) => {
  12836. this.$message({
  12837. message: "提交成功",
  12838. type: "success",
  12839. });
  12840. this.studyJuri[0].cover = [];
  12841. this.dialogVisibleWorks = false;
  12842. this.getCourseDetail(2);
  12843. })
  12844. .catch((err) => {
  12845. this.$message.error("提交失败");
  12846. console.error(err);
  12847. });
  12848. },
  12849. selectUploadStudent(type) {
  12850. const loading = this.$loading.service({
  12851. background: "rgba(255, 255, 255, 0.7)",
  12852. target: document.body,
  12853. });
  12854. let params = {
  12855. cid: this.uploadCid,
  12856. oid: this.oid,
  12857. cn: "",
  12858. };
  12859. this.ajax
  12860. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12861. .then((res) => {
  12862. loading.close();
  12863. var studentK = [];
  12864. if (this.isWorksS[this.toolindex].length > 0) {
  12865. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12866. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12867. }
  12868. studentK = studentK.join(",");
  12869. }
  12870. this.uploadStudentJuri = res.data[0].filter((el) => {
  12871. return studentK.indexOf(el.userid) == -1;
  12872. });
  12873. if (this.worksSName && this.worksSid) {
  12874. this.uploadStudentJuri.push({
  12875. userid: this.worksSid,
  12876. name: this.worksSName,
  12877. });
  12878. }
  12879. if (type == 1) {
  12880. this.plworkFile = [];
  12881. this.dialogVisibleSname = true;
  12882. } else if (type == 2) {
  12883. this.dialogVisiblePl = true;
  12884. }
  12885. })
  12886. .catch((err) => {
  12887. loading.close();
  12888. console.error(err);
  12889. });
  12890. },
  12891. selectPickStudent() {
  12892. const loading = this.$loading.service({
  12893. background: "rgba(255, 255, 255, 0.7)",
  12894. target: document.body,
  12895. });
  12896. let params = {
  12897. cid: this.uploadCid,
  12898. oid: this.oid,
  12899. cn: "",
  12900. };
  12901. this.ajax
  12902. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12903. .then((res) => {
  12904. loading.close();
  12905. this.uploadStudentJuri = res.data[0];
  12906. this.dialogVisiblePickPeople = true;
  12907. })
  12908. .catch((err) => {
  12909. loading.close();
  12910. console.error(err);
  12911. });
  12912. },
  12913. arrayToArray(arrayo, arrayt) {
  12914. let array1 = arrayo;
  12915. let array2 = arrayt;
  12916. let commonElements = [];
  12917. for (let i = 0; i < array1.length; i++) {
  12918. for (let j = 0; j < array2.length; j++) {
  12919. if (array1[i] === array2[j]) {
  12920. commonElements.push(array1[i]);
  12921. }
  12922. }
  12923. }
  12924. return commonElements;
  12925. },
  12926. selectWorksStudent() {
  12927. let params = {
  12928. oid: this.oid,
  12929. cid: this.courseDetail.juri,
  12930. };
  12931. this.ajax
  12932. .get(this.$store.state.api + "selectWorksStudent", params)
  12933. .then((res) => {
  12934. var a = res.data[0];
  12935. for (var i = 0; i < this.isWorksS.length; i++) {
  12936. this.noWorksS[i] = [];
  12937. var studentK = [];
  12938. if (this.isWorksS[i].length > 0) {
  12939. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12940. studentK.push(this.isWorksS[i][z].uid);
  12941. }
  12942. studentK = studentK.join(",");
  12943. for (var j = 0; j < a.length; j++) {
  12944. if (studentK.indexOf(a[j].userid) == -1) {
  12945. if (this.tcid) {
  12946. // a[j].classid.indexOf(this.tcid) != -1
  12947. if (
  12948. this.arrayToArray(
  12949. a[j].classid.split(","),
  12950. this.tcid.split(",")
  12951. ).length
  12952. ) {
  12953. this.noWorksS[i].push({
  12954. student: a[j].name,
  12955. userid: a[j].userid,
  12956. });
  12957. }
  12958. } else {
  12959. this.noWorksS[i].push({
  12960. student: a[j].name,
  12961. userid: a[j].userid,
  12962. });
  12963. }
  12964. }
  12965. }
  12966. } else {
  12967. for (var k = 0; k < a.length; k++) {
  12968. if (this.tcid) {
  12969. if (
  12970. this.arrayToArray(
  12971. a[k].classid.split(","),
  12972. this.tcid.split(",")
  12973. ).length
  12974. ) {
  12975. this.noWorksS[i].push({
  12976. student: a[k].name,
  12977. userid: a[k].userid,
  12978. });
  12979. }
  12980. } else {
  12981. this.noWorksS[i].push({
  12982. student: a[k].name,
  12983. userid: a[k].userid,
  12984. });
  12985. }
  12986. }
  12987. }
  12988. }
  12989. this.$forceUpdate();
  12990. if (
  12991. Object.keys(this.commentDetail).length &&
  12992. Object.keys(this.commentIndexJson).length &&
  12993. !this.dialogVisibleScore
  12994. ) {
  12995. let a = 1;
  12996. let c = this.commentIndexJson;
  12997. if (
  12998. this.commentIndexJson.gindex ||
  12999. this.commentIndexJson.gindex === 0
  13000. ) {
  13001. for (
  13002. var i = 0;
  13003. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13004. i++
  13005. ) {
  13006. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13007. groupA: for (var k = 0; k < _el.length; k++) {
  13008. let el = _el[k];
  13009. if (el.wid == this.commentDetail.wid) {
  13010. a = 2;
  13011. this.commentOther(
  13012. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13013. this.commentIndexJson.toolIndex,
  13014. k,
  13015. this.commentIndexJson.gindex
  13016. );
  13017. break groupA;
  13018. }
  13019. }
  13020. }
  13021. if (a === 1) {
  13022. this.commentDetail = [];
  13023. this.commentIndexJson = {};
  13024. this.commentDialogVisible = false;
  13025. this.$message("此作业已被删除");
  13026. }
  13027. } else {
  13028. if (this.isGroup && this.commentIndexJson.gid) {
  13029. groupA: for (
  13030. var i = 0;
  13031. i < this.courseGroup.group.length;
  13032. i++
  13033. ) {
  13034. let _group = this.courseGroup.group[i];
  13035. if (_group.id == this.commentIndexJson.gid) {
  13036. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13037. for (var k = 0; k < _el2.length; k++) {
  13038. let el2 = _el2[k];
  13039. if (el2.wid == this.commentDetail.wid) {
  13040. a = 2;
  13041. this.commentOther(
  13042. _el2[k],
  13043. this.commentIndexJson.toolIndex,
  13044. k,
  13045. null,
  13046. this.commentIndexJson.gid
  13047. );
  13048. break groupA;
  13049. }
  13050. }
  13051. }
  13052. }
  13053. }
  13054. if (a == 1) {
  13055. for (
  13056. var i = 0;
  13057. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13058. i++
  13059. ) {
  13060. let el =
  13061. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13062. if (el.wid == this.commentDetail.wid) {
  13063. a = 2;
  13064. this.commentOther(
  13065. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13066. this.commentIndexJson.toolIndex,
  13067. i
  13068. );
  13069. break;
  13070. }
  13071. }
  13072. }
  13073. if (a === 1) {
  13074. this.commentDetail = [];
  13075. this.commentIndexJson = {};
  13076. this.commentDialogVisible = false;
  13077. this.$message("此作业已被删除");
  13078. }
  13079. }
  13080. }
  13081. })
  13082. .catch((err) => {
  13083. console.error(err);
  13084. });
  13085. },
  13086. selectStudent() {
  13087. //学生查看自己作业
  13088. let params = {
  13089. uid: this.userid,
  13090. cid: this.id,
  13091. s: this.courseType,
  13092. t: this.taskCount,
  13093. };
  13094. this.ajax
  13095. .get(this.$store.state.api + "selectStudentWorks", params)
  13096. .then((res) => {
  13097. var a =
  13098. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13099. this.taskCount
  13100. ].toolChoose;
  13101. var b = res.data[0];
  13102. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13103. var y = [
  13104. "AVI",
  13105. "NAVI",
  13106. "MPEG",
  13107. "ASF",
  13108. "MOV",
  13109. "WMV",
  13110. "3GP",
  13111. "RM",
  13112. "RMVB",
  13113. "FLV",
  13114. "F4V",
  13115. "H.264",
  13116. "H.265",
  13117. "REAL VIDEO",
  13118. "MKV",
  13119. "WebM",
  13120. "HDDVD",
  13121. "MP4",
  13122. "MPG",
  13123. "M4V",
  13124. "MGV",
  13125. "OGV",
  13126. "QTM",
  13127. "STR",
  13128. "AMC",
  13129. "DVX",
  13130. "EVO",
  13131. "DAT",
  13132. "OGG",
  13133. "OGM",
  13134. ];
  13135. for (var i = 0; i < a.length; i++) {
  13136. this.workStudent[i] = [];
  13137. for (var j = 0; j < b.length; j++) {
  13138. if (i == b[j].tool) {
  13139. if (
  13140. (b[j].type == 1 ||
  13141. b[j].type == 4 ||
  13142. b[j].type == 5 ||
  13143. b[j].type == 6 ||
  13144. b[j].type == 12 ||
  13145. b[j].type == 7) &&
  13146. a[i].tool[0] != 15 &&
  13147. a[i].tool[0] != 4 &&
  13148. a[i].tool[0] != 45 &&
  13149. a[i].tool[0] != 50 &&
  13150. a[i].tool[0] != 32 &&
  13151. a[i].tool[0] != 57 &&
  13152. a[i].tool[0] != 52 &&
  13153. a[i].tool[0] != 69
  13154. ) {
  13155. if (
  13156. c.indexOf(
  13157. b[j].content
  13158. .split(".")
  13159. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13160. ) != -1 &&
  13161. a[i].tool[0] == 16 &&
  13162. b[j].atool != 50
  13163. ) {
  13164. this.workStudent[i].push({
  13165. works: b[j].content,
  13166. sName: b[j].name,
  13167. score: b[j].score,
  13168. img: b[j].img,
  13169. type: 1,
  13170. time: b[j].time,
  13171. userid: b[j].userid,
  13172. wid: b[j].id,
  13173. });
  13174. } else if (
  13175. y.indexOf(
  13176. b[j].content
  13177. .split(".")
  13178. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13179. ) != -1 &&
  13180. a[i].tool[0] == 16 &&
  13181. b[j].atool != 50
  13182. ) {
  13183. this.workStudent[i].push({
  13184. userid: b[j].userid,
  13185. wid: b[j].id,
  13186. works: b[j].content,
  13187. sName: b[j].name,
  13188. score: b[j].score,
  13189. img: b[j].img,
  13190. type: 3,
  13191. time: b[j].time,
  13192. });
  13193. } else if (b[j].type == 6 && b[j].atool != 50) {
  13194. this.workStudent[i].push({
  13195. userid: b[j].userid,
  13196. wid: b[j].id,
  13197. works: b[j].content,
  13198. sName: b[j].name,
  13199. score: b[j].score,
  13200. img: b[j].img,
  13201. type: 4,
  13202. time: b[j].time,
  13203. });
  13204. } else if (b[j].type == 7 && b[j].atool != 50) {
  13205. this.workStudent[i].push({
  13206. userid: b[j].userid,
  13207. wid: b[j].id,
  13208. works: b[j].content,
  13209. sName: b[j].name,
  13210. score: b[j].score,
  13211. img: b[j].img,
  13212. type: 5,
  13213. time: b[j].time,
  13214. });
  13215. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13216. this.workStudent[i].push({
  13217. works: b[j].content,
  13218. sName: b[j].name,
  13219. score: b[j].score,
  13220. img: b[j].img,
  13221. type: 12,
  13222. time: b[j].time,
  13223. userid: b[j].userid,
  13224. wid: b[j].id,
  13225. });
  13226. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13227. this.workStudent[i].push({
  13228. works: b[j].content,
  13229. sName: b[j].name,
  13230. score: b[j].score,
  13231. img: b[j].img,
  13232. type: 0,
  13233. time: b[j].time,
  13234. userid: b[j].userid,
  13235. wid: b[j].id,
  13236. });
  13237. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13238. this.workStudent[i].push({
  13239. works: b[j].content,
  13240. sName: b[j].name,
  13241. score: b[j].score,
  13242. img: b[j].img,
  13243. type: 0,
  13244. time: b[j].time,
  13245. userid: b[j].userid,
  13246. wid: b[j].id,
  13247. });
  13248. }
  13249. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13250. this.workStudent[i].push({
  13251. works: b[j].content,
  13252. sName: b[j].name,
  13253. score: b[j].score,
  13254. img: b[j].img,
  13255. type: 2,
  13256. time: b[j].time,
  13257. userid: b[j].userid,
  13258. wid: b[j].id,
  13259. });
  13260. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13261. //问卷
  13262. this.workStudent[i].push({
  13263. works: b[j].content,
  13264. sName: b[j].name,
  13265. score: b[j].score,
  13266. img: b[j].img,
  13267. type: 2,
  13268. time: b[j].time,
  13269. userid: b[j].userid,
  13270. wid: b[j].id,
  13271. });
  13272. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13273. //选择题
  13274. this.workStudent[i].push({
  13275. works: b[j].content,
  13276. sName: b[j].name,
  13277. score: b[j].score,
  13278. img: b[j].img,
  13279. type: 8,
  13280. time: b[j].time,
  13281. userid: b[j].userid,
  13282. wid: b[j].id,
  13283. });
  13284. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13285. //选择题
  13286. this.workStudent[i].push({
  13287. works: b[j].content,
  13288. sName: b[j].name,
  13289. score: b[j].score,
  13290. img: b[j].img,
  13291. type: 9,
  13292. time: b[j].time,
  13293. userid: b[j].userid,
  13294. wid: b[j].id,
  13295. });
  13296. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13297. //选择题
  13298. this.workStudent[i].push({
  13299. works: b[j].content,
  13300. sName: b[j].name,
  13301. score: b[j].score,
  13302. img: b[j].img,
  13303. type: 10,
  13304. time: b[j].time,
  13305. userid: b[j].userid,
  13306. wid: b[j].id,
  13307. });
  13308. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13309. //选择题
  13310. this.workStudent[i].push({
  13311. works: b[j].content,
  13312. sName: b[j].name,
  13313. score: b[j].score,
  13314. img: b[j].img,
  13315. type: 13,
  13316. time: b[j].time,
  13317. userid: b[j].userid,
  13318. wid: b[j].id,
  13319. });
  13320. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13321. //选择题
  13322. this.workStudent[i].push({
  13323. works: b[j].content,
  13324. sName: b[j].name,
  13325. score: b[j].score,
  13326. img: b[j].img,
  13327. type: 12,
  13328. time: b[j].time,
  13329. userid: b[j].userid,
  13330. wid: b[j].id,
  13331. });
  13332. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13333. //选择题
  13334. this.workStudent[i].push({
  13335. works: b[j].content,
  13336. sName: b[j].name,
  13337. score: b[j].score,
  13338. img: b[j].img,
  13339. type: 12,
  13340. time: b[j].time,
  13341. userid: b[j].userid,
  13342. wid: b[j].id,
  13343. });
  13344. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13345. //选择题
  13346. this.workStudent[i].push({
  13347. works: b[j].content,
  13348. sName: b[j].name,
  13349. score: b[j].score,
  13350. img: b[j].img,
  13351. type: 15,
  13352. time: b[j].time,
  13353. userid: b[j].userid,
  13354. wid: b[j].id,
  13355. });
  13356. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13357. //英语写作
  13358. this.workStudent[i].push({
  13359. works: b[j].content,
  13360. sName: b[j].name,
  13361. score: b[j].score,
  13362. img: b[j].img,
  13363. type: 16,
  13364. time: b[j].time,
  13365. userid: b[j].userid,
  13366. wid: b[j].id,
  13367. aiCode: b[j].aiCode,
  13368. teacherCode: b[j].teacherCode
  13369. });
  13370. }
  13371. }
  13372. }
  13373. }
  13374. })
  13375. .catch((err) => {
  13376. console.error(err);
  13377. });
  13378. },
  13379. openVideo(w) {
  13380. this.videoDetail = {};
  13381. this.playerOptions1.sources[0].src = w.works;
  13382. this.videoDetail = this.playerOptions1;
  13383. this.videoVisible = true;
  13384. },
  13385. isLikes(wid, uid, t, c, isLikes) {
  13386. if (isLikes == false) {
  13387. let params = [
  13388. {
  13389. wid: wid,
  13390. lid: uid,
  13391. t: t,
  13392. c: c,
  13393. },
  13394. ];
  13395. this.ajax
  13396. .post(this.$store.state.api + "insertComment", params)
  13397. .then((res) => {
  13398. this.$message({
  13399. message: "点赞成功",
  13400. type: "success",
  13401. });
  13402. this.selectSWorks();
  13403. this.selectStudent();
  13404. })
  13405. .catch((err) => {
  13406. this.$message.error("点赞失败");
  13407. console.error(err);
  13408. });
  13409. } else {
  13410. let params = {
  13411. wid: wid,
  13412. lid: uid,
  13413. type: t,
  13414. };
  13415. this.ajax
  13416. .get(this.$store.state.api + "deleteComment", params)
  13417. .then((res) => {
  13418. this.$message({
  13419. message: "取消点赞成功",
  13420. type: "success",
  13421. });
  13422. this.selectSWorks();
  13423. this.selectStudent();
  13424. })
  13425. .catch((err) => {
  13426. console.error(err);
  13427. });
  13428. }
  13429. },
  13430. deleteComment(wid) {
  13431. this.$confirm("确定删除此评论吗?", "提示", {
  13432. confirmButtonText: "确定",
  13433. cancelButtonText: "取消",
  13434. type: "warning",
  13435. })
  13436. .then(() => {
  13437. let params = {
  13438. id: wid,
  13439. };
  13440. this.ajax
  13441. .get(this.$store.state.api + "deleteComment2", params)
  13442. .then((res) => {
  13443. this.$message({
  13444. message: "删除评论成功",
  13445. type: "success",
  13446. });
  13447. this.selectSWorks();
  13448. this.selectStudent();
  13449. })
  13450. .catch((err) => {
  13451. console.error(err);
  13452. });
  13453. })
  13454. .catch(() => {});
  13455. },
  13456. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13457. this.commentIndexJson = {
  13458. toolIndex: toolIndex,
  13459. wIndex: wIndex,
  13460. gindex: gindex,
  13461. gid: gid,
  13462. };
  13463. this.commentDetail = [];
  13464. this.commentDialogVisible = true;
  13465. this.commentDetail = w;
  13466. if (w.works && w.type == 1) {
  13467. this.pptImgUrl = "";
  13468. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13469. if (
  13470. a.indexOf(
  13471. w.works
  13472. .split(".")
  13473. [w.works.split(".").length - 1].toLocaleUpperCase()
  13474. ) != -1
  13475. ) {
  13476. this.pptImgUrl =
  13477. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13478. this.showPDF = false;
  13479. } else if (
  13480. w.works
  13481. .split(".")
  13482. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13483. ) {
  13484. this.pptImgUrl = w.works;
  13485. this.showPDF = true;
  13486. }
  13487. } else if (w.works && w.type == 3) {
  13488. this.videoDetail = {};
  13489. this.playerOptions1.sources[0].src = w.works;
  13490. this.videoDetail = this.playerOptions1;
  13491. // this.videoVisible = true;
  13492. } else if (w.works && w.type == 4) {
  13493. this.eScore = JSON.parse(w.works);
  13494. this.rateJson =
  13495. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13496. this.taskCount
  13497. ].toolChoose[toolIndex].rateJson;
  13498. } else if (w.works && w.type == 10) {
  13499. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13500. } else if (w.works && w.type == 13) {
  13501. this.wordJson =
  13502. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13503. this.taskCount
  13504. ].toolChoose[toolIndex].wordJson;
  13505. }
  13506. },
  13507. openScore(w) {
  13508. this.wScore = 0;
  13509. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13510. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13511. this.commentDetail = [];
  13512. this.dialogVisibleScore = true;
  13513. this.commentDetail = w;
  13514. if (w.works && w.type == 1) {
  13515. this.pptImgUrl = "";
  13516. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13517. if (
  13518. a.indexOf(
  13519. w.works
  13520. .split(".")
  13521. [w.works.split(".").length - 1].toLocaleUpperCase()
  13522. ) != -1
  13523. ) {
  13524. this.pptImgUrl =
  13525. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13526. this.showPDF = false;
  13527. } else if (
  13528. w.works
  13529. .split(".")
  13530. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13531. ) {
  13532. this.pptImgUrl = w.works;
  13533. this.showPDF = true;
  13534. }
  13535. } else if (w.works && w.type == 3) {
  13536. this.videoDetail = {};
  13537. this.playerOptions1.sources[0].src = w.works;
  13538. this.videoDetail = this.playerOptions1;
  13539. }
  13540. },
  13541. addComment(wid, uid, t) {
  13542. if (this.commentText == "") {
  13543. this.$message.error("请输入评论");
  13544. return;
  13545. }
  13546. let params2 = [
  13547. {
  13548. wid: wid,
  13549. lid: uid,
  13550. t: t,
  13551. },
  13552. ];
  13553. this.ajax
  13554. .post(this.$store.state.api + "getComment", params2)
  13555. .then((res) => {
  13556. if (res.data[0].length > 0) {
  13557. this.$message.error("一个作业只能评论一条");
  13558. } else {
  13559. let params = [
  13560. {
  13561. wid: wid,
  13562. lid: uid,
  13563. t: t,
  13564. c: this.commentText,
  13565. },
  13566. ];
  13567. this.ajax
  13568. .post(this.$store.state.api + "insertComment", params)
  13569. .then((res) => {
  13570. this.$message({
  13571. message: "评论成功",
  13572. type: "success",
  13573. });
  13574. this.commentText = "";
  13575. this.selectSWorks();
  13576. this.selectStudent();
  13577. })
  13578. .catch((err) => {
  13579. this.$message.error("评论失败");
  13580. console.error(err);
  13581. });
  13582. }
  13583. })
  13584. .catch((err) => {
  13585. // this.$message.error("评论失败");
  13586. console.error(err);
  13587. });
  13588. },
  13589. scoreWork(wid) {
  13590. if (this.wScore == 0) {
  13591. this.$message.error("请评分");
  13592. return;
  13593. }
  13594. let params = [
  13595. {
  13596. wid: wid,
  13597. score: JSON.stringify({
  13598. wScore: this.wScore,
  13599. detail: this.scoreDetail,
  13600. }),
  13601. },
  13602. ];
  13603. this.ajax
  13604. .post(this.$store.state.api + "scoreWork", params)
  13605. .then((res) => {
  13606. this.$message({
  13607. message: "评分成功",
  13608. type: "success",
  13609. });
  13610. this.wScore = 0;
  13611. this.scoreDetail = "";
  13612. this.dialogVisibleScore = false;
  13613. this.selectSWorks();
  13614. this.selectStudent();
  13615. })
  13616. .catch((err) => {
  13617. this.$message.error("评分失败");
  13618. console.error(err);
  13619. });
  13620. },
  13621. openXz(w, i) {
  13622. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13623. .taskJson[this.taskCount].toolChoose[i].selectJson
  13624. ? JSON.parse(
  13625. JSON.stringify(
  13626. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13627. this.taskCount
  13628. ].toolChoose[i].selectJson
  13629. )
  13630. )
  13631. : { url: "", select: [], answer: [] };
  13632. var a = w.works.split(",");
  13633. for (var k = 0; k < a.length; k++) {
  13634. a[k] = parseInt(a[k]);
  13635. }
  13636. this.selectAnswer = { answer: a, stu: w.sName };
  13637. this.isSelect = true;
  13638. this.dialogVisibleSelect = true;
  13639. },
  13640. openSen(w, i) {
  13641. this.sentenceList1 = JSON.parse(w.works);
  13642. this.sentenceList1.stuName = w.sName;
  13643. this.dialogVisibleSentence1 = true;
  13644. },
  13645. openPj(w, toolindex) {
  13646. this.isStar = true;
  13647. this.eScore = JSON.parse(w);
  13648. this.rateJson =
  13649. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13650. this.taskCount
  13651. ].toolChoose[toolindex].rateJson;
  13652. this.studentEvalDialogVisible = true;
  13653. },
  13654. openEnglishEva(id,i){
  13655. let params = {
  13656. wid: id
  13657. };
  13658. this.ajax
  13659. .get(this.$store.state.api + "selectEngWork", params)
  13660. .then((res) => {
  13661. this.evaEngJson.message = res.data[0][0];
  13662. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13663. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13664. .toolChoose[i].englishList;
  13665. this.engEvaDialogVisible = true;
  13666. })
  13667. .catch((err) => {
  13668. console.error(err);
  13669. });
  13670. },
  13671. deleteWorks(id) {
  13672. this.$confirm("确定删除此作业吗?", "提示", {
  13673. confirmButtonText: "确定",
  13674. cancelButtonText: "取消",
  13675. type: "warning",
  13676. })
  13677. .then(() => {
  13678. let params = [
  13679. {
  13680. id: id,
  13681. },
  13682. ];
  13683. this.ajax
  13684. .post(this.$store.state.api + "deleteCourseWork", params)
  13685. .then((res) => {
  13686. this.$message({
  13687. message: "删除成功",
  13688. type: "success",
  13689. });
  13690. this.selectStudent();
  13691. this.selectSWorks();
  13692. this.selectSLook();
  13693. })
  13694. .catch((err) => {
  13695. this.$message.error("网络异常");
  13696. console.error(err);
  13697. });
  13698. })
  13699. .catch(() => {});
  13700. },
  13701. selectSWorks(gindex) {
  13702. //教师查看全部作业
  13703. let params = {
  13704. cid: this.id,
  13705. s: this.courseType,
  13706. t: this.taskCount,
  13707. };
  13708. this.ajax
  13709. .get(this.$store.state.api + "selectSWorks", params)
  13710. .then((res) => {
  13711. var a =
  13712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13713. this.taskCount
  13714. ].toolChoose;
  13715. var b = res.data[0];
  13716. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13717. var y = [
  13718. "AVI",
  13719. "NAVI",
  13720. "MPEG",
  13721. "ASF",
  13722. "MOV",
  13723. "WMV",
  13724. "3GP",
  13725. "RM",
  13726. "RMVB",
  13727. "FLV",
  13728. "F4V",
  13729. "H.264",
  13730. "H.265",
  13731. "REAL VIDEO",
  13732. "MKV",
  13733. "WebM",
  13734. "HDDVD",
  13735. "MP4",
  13736. "MPG",
  13737. "M4V",
  13738. "MGV",
  13739. "OGV",
  13740. "QTM",
  13741. "STR",
  13742. "AMC",
  13743. "DVX",
  13744. "EVO",
  13745. "DAT",
  13746. "OGG",
  13747. "OGM",
  13748. ];
  13749. var d = res.data[1];
  13750. var e = res.data[2];
  13751. var f = res.data[3];
  13752. let _worksStudent = [];
  13753. var _worksStudent2 = [];
  13754. for (var i = 0; i < a.length; i++) {
  13755. _worksStudent[i] = [];
  13756. _worksStudent2[i] = [];
  13757. if (
  13758. !this.isCloseList[i] ||
  13759. this.isCloseList[i].isClose == undefined
  13760. ) {
  13761. this.isCloseList[i] = { isClose: 0 };
  13762. }
  13763. this.groupStudent[i] = [];
  13764. this.groupStudentUid[i] = [];
  13765. if (this.isGroup) {
  13766. for (
  13767. var groupI = 0;
  13768. groupI < this.courseGroup.group.length;
  13769. groupI++
  13770. ) {
  13771. this.courseGroup.group[groupI].works[i] = [];
  13772. }
  13773. }
  13774. this.isWorksS[i] = [];
  13775. this.checkJson[i] = [];
  13776. if (a[i].tool[0] == 49) {
  13777. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13778. this.groupStudent[i][gA] = [];
  13779. this.groupStudentUid[i][gA] = [];
  13780. _worksStudent[i][gA] = [];
  13781. _worksStudent2[i][gA] = [];
  13782. this.isCloseList[i][gA] = [];
  13783. for (var g = 0; g < f.length; g++) {
  13784. if (
  13785. f[g].ttype == 2 &&
  13786. this.tcid &&
  13787. this.arrayToArray(
  13788. f[g].classid.split(","),
  13789. this.tcid.split(",")
  13790. ).length == 0
  13791. ) {
  13792. continue;
  13793. }
  13794. if (gA == f[g].group && f[g].tool == i) {
  13795. this.groupStudent[i][gA].push(f[g]);
  13796. this.groupStudentUid[i][gA].push(f[g].userid);
  13797. }
  13798. }
  13799. }
  13800. this.$forceUpdate();
  13801. }
  13802. for (var j = 0; j < b.length; j++) {
  13803. if (
  13804. b[j].ttype == 2 &&
  13805. this.tcid &&
  13806. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13807. .length == 0
  13808. ) {
  13809. continue;
  13810. }
  13811. var likesCount = 0;
  13812. var commentCount = 0;
  13813. var isLikes = false;
  13814. var commentJson = [];
  13815. var data = b[j];
  13816. if (i == b[j].tool) {
  13817. if (data.type == 2 && a[i].tool[0] == 4) {
  13818. // if(JSON.parse(data.content)[0].anwer){
  13819. var checkL =
  13820. JSON.parse(data.content)[0].anwer instanceof Array
  13821. ? JSON.parse(data.content)[0].anwer
  13822. : JSON.parse(data.content)[0].anwer.split(",");
  13823. for (var z = 0; z < checkL.length; z++) {
  13824. if (!this.checkJson[i][z]) {
  13825. this.checkJson[i].push({
  13826. checkCount: [],
  13827. checkPerson: [],
  13828. rightPerson: [],
  13829. });
  13830. }
  13831. if (!this.checkJson[i][z].checkCount.length) {
  13832. this.checkJson[i][z].checkCount = [];
  13833. let _askItemCount = JSON.parse(data.content)[0].askJson
  13834. .askJson[z].askItem;
  13835. for (var aic = 0; aic < _askItemCount; aic++) {
  13836. this.checkJson[i][z].checkCount.push(0);
  13837. }
  13838. }
  13839. if (checkL[z] instanceof Array) {
  13840. if (
  13841. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13842. checkL[z].sort().join(",")
  13843. ) {
  13844. this.checkJson[i][z].rightPerson.push(data.name);
  13845. }
  13846. for (var q = 0; q < checkL[z].length; q++) {
  13847. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13848. ? this.checkJson[i][z].checkPerson[
  13849. parseInt(checkL[z][q])
  13850. ].push(data.name)
  13851. : (this.checkJson[i][z].checkPerson[
  13852. parseInt(checkL[z][q])
  13853. ] = [data.name]);
  13854. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13855. ? this.checkJson[i][z].checkCount[
  13856. parseInt(checkL[z][q])
  13857. ]++
  13858. : (this.checkJson[i][z].checkCount[
  13859. parseInt(checkL[z][q])
  13860. ] = 1);
  13861. }
  13862. } else {
  13863. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13864. this.checkJson[i][z].rightPerson.push(data.name);
  13865. }
  13866. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13867. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13868. ? this.checkJson[i][z].checkPerson[
  13869. parseInt(checkL[z])
  13870. ].push(data.name)
  13871. : (this.checkJson[i][z].checkPerson[
  13872. parseInt(checkL[z])
  13873. ] = [data.name]);
  13874. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13875. ? this.checkJson[i][z].checkCount[
  13876. parseInt(checkL[z])
  13877. ]++
  13878. : (this.checkJson[i][z].checkCount[
  13879. parseInt(checkL[z])
  13880. ] = 1);
  13881. }
  13882. }
  13883. }
  13884. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13885. var checkL = JSON.parse(data.content)[0].anwer;
  13886. for (var z = 0; z < checkL.length; z++) {
  13887. if (!this.checkJson[i][z]) {
  13888. this.checkJson[i].push({
  13889. checkCount: [],
  13890. checkPerson: [],
  13891. rightPerson: [],
  13892. });
  13893. }
  13894. if (!this.checkJson[i][z].checkCount.length) {
  13895. this.checkJson[i][z].checkCount = [];
  13896. let _askItemCount = JSON.parse(data.content)[0].testJson
  13897. .testJson[z].testItem;
  13898. for (var aic = 0; aic < _askItemCount; aic++) {
  13899. this.checkJson[i][z].checkCount.push(0);
  13900. }
  13901. }
  13902. if (checkL[z] instanceof Array) {
  13903. if (
  13904. JSON.parse(data.content)[0]
  13905. .testJson.testJson[z].answer.sort()
  13906. .join(",") == checkL[z].sort().join(",")
  13907. ) {
  13908. this.checkJson[i][z].rightPerson.push(data.name);
  13909. }
  13910. for (var q = 0; q < checkL[z].length; q++) {
  13911. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13912. ? this.checkJson[i][z].checkPerson[
  13913. parseInt(checkL[z][q])
  13914. ].push(data.name)
  13915. : (this.checkJson[i][z].checkPerson[
  13916. parseInt(checkL[z][q])
  13917. ] = [data.name]);
  13918. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13919. ? this.checkJson[i][z].checkCount[
  13920. parseInt(checkL[z][q])
  13921. ]++
  13922. : (this.checkJson[i][z].checkCount[
  13923. parseInt(checkL[z][q])
  13924. ] = 1);
  13925. }
  13926. } else {
  13927. if (
  13928. JSON.parse(data.content)[0].testJson.testJson[z]
  13929. .answer == checkL[z]
  13930. ) {
  13931. this.checkJson[i][z].rightPerson.push(data.name);
  13932. }
  13933. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13934. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13935. ? this.checkJson[i][z].checkPerson[
  13936. parseInt(checkL[z])
  13937. ].push(data.name)
  13938. : (this.checkJson[i][z].checkPerson[
  13939. parseInt(checkL[z])
  13940. ] = [data.name]);
  13941. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13942. ? this.checkJson[i][z].checkCount[
  13943. parseInt(checkL[z])
  13944. ]++
  13945. : (this.checkJson[i][z].checkCount[
  13946. parseInt(checkL[z])
  13947. ] = 1);
  13948. }
  13949. }
  13950. }
  13951. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13952. var checkL = JSON.parse(data.content);
  13953. for (var z = 0; z < checkL.length; z++) {
  13954. if (!this.checkJson[i][z]) {
  13955. this.checkJson[i].push({
  13956. checkCount: [],
  13957. checkPerson: [],
  13958. rightPerson: [],
  13959. });
  13960. }
  13961. this.checkJson[i][z].checkPerson.push(data.name);
  13962. if (
  13963. checkL[z].chooseSenList.toString() ==
  13964. checkL[z].rightAnswer.toString()
  13965. ) {
  13966. this.checkJson[i][z].rightPerson.push(data.name);
  13967. }
  13968. }
  13969. }
  13970. for (var k = 0; k < d.length; k++) {
  13971. //点赞
  13972. if (d[k].workId == b[j].id) {
  13973. likesCount++;
  13974. if (d[k].likesId == this.userid) {
  13975. isLikes = true;
  13976. }
  13977. }
  13978. }
  13979. for (var l = 0; l < e.length; l++) {
  13980. //评论
  13981. if (e[l].workId == b[j].id) {
  13982. if (e[l].comment != "") {
  13983. commentCount++;
  13984. commentJson.push({
  13985. commentText: e[l].comment,
  13986. commentTime: e[l].commentTime,
  13987. commentPeople: e[l].commentPeople,
  13988. userid: e[l].userid,
  13989. wid: e[l].id,
  13990. });
  13991. }
  13992. }
  13993. }
  13994. if (
  13995. (b[j].type == 1 ||
  13996. b[j].type == 4 ||
  13997. b[j].type == 5 ||
  13998. b[j].type == 6 ||
  13999. b[j].type == 12 ||
  14000. b[j].type == 7) &&
  14001. a[i].tool[0] != 15 &&
  14002. a[i].tool[0] != 4 &&
  14003. a[i].tool[0] != 45 &&
  14004. a[i].tool[0] != 50 &&
  14005. a[i].tool[0] != 32 &&
  14006. a[i].tool[0] != 57 &&
  14007. a[i].tool[0] != 52
  14008. ) {
  14009. if (
  14010. c.indexOf(
  14011. b[j].content
  14012. .split(".")
  14013. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14014. ) != -1 &&
  14015. a[i].tool[0] == 16 &&
  14016. b[j].atool != 50
  14017. ) {
  14018. let _works = {
  14019. userid: b[j].userid,
  14020. ateacher: b[j].ateacher,
  14021. wid: b[j].id,
  14022. works: b[j].content,
  14023. sName: b[j].name,
  14024. type: 1,
  14025. time: b[j].time,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. likesCount: likesCount,
  14029. commentCount: commentCount,
  14030. isLikes: isLikes,
  14031. commentJson: commentJson,
  14032. };
  14033. if (this.isGroup) {
  14034. let isGw = 1;
  14035. for (
  14036. var groupI = 0;
  14037. groupI < this.courseGroup.group.length;
  14038. groupI++
  14039. ) {
  14040. let gid = this.courseGroup.group[groupI].id;
  14041. if (
  14042. this.courseGroupStudentUid[gid].indexOf(
  14043. b[j].userid
  14044. ) != -1
  14045. ) {
  14046. isGw = 2;
  14047. this.courseGroup.group[groupI].works[i].push(_works);
  14048. break;
  14049. }
  14050. }
  14051. if (isGw == 1) {
  14052. _worksStudent[i].push(_works);
  14053. }
  14054. } else {
  14055. _worksStudent[i].push(_works);
  14056. }
  14057. _worksStudent2[i].push(_works);
  14058. this.isWorksS[i].push({
  14059. uid: b[j].userid,
  14060. sName: b[j].name,
  14061. });
  14062. } else if (
  14063. y.indexOf(
  14064. b[j].content
  14065. .split(".")
  14066. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14067. ) != -1 &&
  14068. a[i].tool[0] == 16 &&
  14069. b[j].atool != 50
  14070. ) {
  14071. let _works = {
  14072. userid: b[j].userid,
  14073. ateacher: b[j].ateacher,
  14074. wid: b[j].id,
  14075. works: b[j].content,
  14076. sName: b[j].name,
  14077. type: 3,
  14078. time: b[j].time,
  14079. score: b[j].score,
  14080. img: b[j].img,
  14081. likesCount: likesCount,
  14082. commentCount: commentCount,
  14083. isLikes: isLikes,
  14084. commentJson: commentJson,
  14085. };
  14086. if (this.isGroup) {
  14087. let isGw = 1;
  14088. for (
  14089. var groupI = 0;
  14090. groupI < this.courseGroup.group.length;
  14091. groupI++
  14092. ) {
  14093. let gid = this.courseGroup.group[groupI].id;
  14094. if (
  14095. this.courseGroupStudentUid[gid].indexOf(
  14096. b[j].userid
  14097. ) != -1
  14098. ) {
  14099. isGw = 2;
  14100. this.courseGroup.group[groupI].works[i].push(_works);
  14101. break;
  14102. }
  14103. }
  14104. if (isGw == 1) {
  14105. _worksStudent[i].push(_works);
  14106. }
  14107. } else {
  14108. _worksStudent[i].push(_works);
  14109. }
  14110. _worksStudent2[i].push(_works);
  14111. this.isWorksS[i].push({
  14112. uid: b[j].userid,
  14113. sName: b[j].name,
  14114. });
  14115. } else if (b[j].type == 6 && b[j].atool != 50) {
  14116. let _works = {
  14117. userid: b[j].userid,
  14118. ateacher: b[j].ateacher,
  14119. wid: b[j].id,
  14120. works: b[j].content,
  14121. sName: b[j].name,
  14122. type: 4,
  14123. time: b[j].time,
  14124. score: b[j].score,
  14125. img: b[j].img,
  14126. likesCount: likesCount,
  14127. commentCount: commentCount,
  14128. isLikes: isLikes,
  14129. commentJson: commentJson,
  14130. };
  14131. _worksStudent[i].push(_works);
  14132. _worksStudent2[i].push(_works);
  14133. this.isWorksS[i].push({
  14134. uid: b[j].userid,
  14135. sName: b[j].name,
  14136. });
  14137. } else if (b[j].type == 7 && b[j].atool != 50) {
  14138. let _work = {
  14139. userid: b[j].userid,
  14140. ateacher: b[j].ateacher,
  14141. wid: b[j].id,
  14142. works: b[j].content,
  14143. sName: b[j].name,
  14144. type: 5,
  14145. time: b[j].time,
  14146. score: b[j].score,
  14147. img: b[j].img,
  14148. likesCount: likesCount,
  14149. commentCount: commentCount,
  14150. isLikes: isLikes,
  14151. commentJson: commentJson,
  14152. };
  14153. _worksStudent[i].push(_work);
  14154. _worksStudent2[i].push(_work);
  14155. this.isWorksS[i].push({
  14156. uid: b[j].userid,
  14157. sName: b[j].name,
  14158. });
  14159. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14160. let _works = {
  14161. userid: b[j].userid,
  14162. ateacher: b[j].ateacher,
  14163. wid: b[j].id,
  14164. works: b[j].content,
  14165. sName: b[j].name,
  14166. type: 12,
  14167. time: b[j].time,
  14168. score: b[j].score,
  14169. img: b[j].img,
  14170. likesCount: likesCount,
  14171. commentCount: commentCount,
  14172. isLikes: isLikes,
  14173. commentJson: commentJson,
  14174. };
  14175. if (this.isGroup) {
  14176. let isGw = 1;
  14177. for (
  14178. var groupI = 0;
  14179. groupI < this.courseGroup.group.length;
  14180. groupI++
  14181. ) {
  14182. let gid = this.courseGroup.group[groupI].id;
  14183. if (
  14184. this.courseGroupStudentUid[gid].indexOf(
  14185. b[j].userid
  14186. ) != -1
  14187. ) {
  14188. isGw = 2;
  14189. this.courseGroup.group[groupI].works[i].push(_works);
  14190. break;
  14191. }
  14192. }
  14193. if (isGw == 1) {
  14194. _worksStudent[i].push(_works);
  14195. }
  14196. } else {
  14197. _worksStudent[i].push(_works);
  14198. }
  14199. _worksStudent2[i].push(_works);
  14200. this.isWorksS[i].push({
  14201. uid: b[j].userid,
  14202. sName: b[j].name,
  14203. });
  14204. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14205. let _works = {
  14206. userid: b[j].userid,
  14207. ateacher: b[j].ateacher,
  14208. wid: b[j].id,
  14209. works: b[j].content,
  14210. sName: b[j].name,
  14211. type: 0,
  14212. time: b[j].time,
  14213. score: b[j].score,
  14214. img: b[j].img,
  14215. likesCount: likesCount,
  14216. commentCount: commentCount,
  14217. isLikes: isLikes,
  14218. commentJson: commentJson,
  14219. };
  14220. if (this.isGroup) {
  14221. let isGw = 1;
  14222. for (
  14223. var groupI = 0;
  14224. groupI < this.courseGroup.group.length;
  14225. groupI++
  14226. ) {
  14227. let gid = this.courseGroup.group[groupI].id;
  14228. if (
  14229. this.courseGroupStudentUid[gid].indexOf(
  14230. b[j].userid
  14231. ) != -1
  14232. ) {
  14233. isGw = 2;
  14234. this.courseGroup.group[groupI].works[i].push(_works);
  14235. break;
  14236. }
  14237. }
  14238. if (isGw == 1) {
  14239. _worksStudent[i].push(_works);
  14240. }
  14241. } else {
  14242. _worksStudent[i].push(_works);
  14243. }
  14244. _worksStudent2[i].push(_works);
  14245. this.isWorksS[i].push({
  14246. uid: b[j].userid,
  14247. sName: b[j].name,
  14248. });
  14249. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14250. let _works = {
  14251. userid: b[j].userid,
  14252. ateacher: b[j].ateacher,
  14253. wid: b[j].id,
  14254. works: b[j].content,
  14255. sName: b[j].name,
  14256. type: 0,
  14257. time: b[j].time,
  14258. score: b[j].score,
  14259. img: b[j].img,
  14260. likesCount: likesCount,
  14261. commentCount: commentCount,
  14262. isLikes: isLikes,
  14263. commentJson: commentJson,
  14264. };
  14265. if (this.isGroup) {
  14266. let isGw = 1;
  14267. for (
  14268. var groupI = 0;
  14269. groupI < this.courseGroup.group.length;
  14270. groupI++
  14271. ) {
  14272. let gid = this.courseGroup.group[groupI].id;
  14273. if (
  14274. this.courseGroupStudentUid[gid].indexOf(
  14275. b[j].userid
  14276. ) != -1
  14277. ) {
  14278. isGw = 2;
  14279. this.courseGroup.group[groupI].works[i].push(_works);
  14280. break;
  14281. }
  14282. }
  14283. if (isGw == 1) {
  14284. _worksStudent[i].push(_works);
  14285. }
  14286. } else {
  14287. _worksStudent[i].push(_works);
  14288. }
  14289. _worksStudent2[i].push(_works);
  14290. this.isWorksS[i].push({
  14291. uid: b[j].userid,
  14292. sName: b[j].name,
  14293. });
  14294. }
  14295. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14296. let _works = {
  14297. userid: b[j].userid,
  14298. ateacher: b[j].ateacher,
  14299. wid: b[j].id,
  14300. works: b[j].content,
  14301. sName: b[j].name,
  14302. type: 2,
  14303. time: b[j].time,
  14304. score: b[j].score,
  14305. img: b[j].img,
  14306. likesCount: likesCount,
  14307. commentCount: commentCount,
  14308. isLikes: isLikes,
  14309. commentJson: commentJson,
  14310. };
  14311. if (this.isGroup) {
  14312. let isGw = 1;
  14313. for (
  14314. var groupI = 0;
  14315. groupI < this.courseGroup.group.length;
  14316. groupI++
  14317. ) {
  14318. let gid = this.courseGroup.group[groupI].id;
  14319. if (
  14320. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14321. -1
  14322. ) {
  14323. isGw = 2;
  14324. this.courseGroup.group[groupI].works[i].push(_works);
  14325. break;
  14326. }
  14327. }
  14328. if (isGw == 1) {
  14329. _worksStudent[i].push(_works);
  14330. }
  14331. } else {
  14332. _worksStudent[i].push(_works);
  14333. }
  14334. _worksStudent2[i].push(_works);
  14335. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14336. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14337. //问卷
  14338. let _work = {
  14339. userid: b[j].userid,
  14340. ateacher: b[j].ateacher,
  14341. wid: b[j].id,
  14342. works: b[j].content,
  14343. sName: b[j].name,
  14344. type: 2,
  14345. time: b[j].time,
  14346. score: b[j].score,
  14347. img: b[j].img,
  14348. likesCount: likesCount,
  14349. commentCount: commentCount,
  14350. isLikes: isLikes,
  14351. commentJson: commentJson,
  14352. };
  14353. _worksStudent[i].push(_work);
  14354. _worksStudent2[i].push(_work);
  14355. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14356. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14357. //选择题
  14358. let _work = {
  14359. userid: b[j].userid,
  14360. ateacher: b[j].ateacher,
  14361. wid: b[j].id,
  14362. works: b[j].content,
  14363. sName: b[j].name,
  14364. type: 8,
  14365. time: b[j].time,
  14366. score: b[j].score,
  14367. img: b[j].img,
  14368. likesCount: likesCount,
  14369. commentCount: commentCount,
  14370. isLikes: isLikes,
  14371. commentJson: commentJson,
  14372. };
  14373. _worksStudent[i].push(_work);
  14374. _worksStudent2[i].push(_work);
  14375. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14376. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14377. //选择题
  14378. let _work = {
  14379. userid: b[j].userid,
  14380. ateacher: b[j].ateacher,
  14381. wid: b[j].id,
  14382. works: b[j].content,
  14383. sName: b[j].name,
  14384. type: 9,
  14385. time: b[j].time,
  14386. score: b[j].score,
  14387. img: b[j].img,
  14388. likesCount: likesCount,
  14389. commentCount: commentCount,
  14390. isLikes: isLikes,
  14391. commentJson: commentJson,
  14392. };
  14393. _worksStudent[i].push(_work);
  14394. _worksStudent2[i].push(_work);
  14395. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14396. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14397. //选择题
  14398. let _work = {
  14399. userid: b[j].userid,
  14400. ateacher: b[j].ateacher,
  14401. wid: b[j].id,
  14402. works: b[j].content,
  14403. sName: b[j].name,
  14404. type: 10,
  14405. time: b[j].time,
  14406. score: b[j].score,
  14407. img: b[j].img,
  14408. likesCount: likesCount,
  14409. commentCount: commentCount,
  14410. isLikes: isLikes,
  14411. commentJson: commentJson,
  14412. };
  14413. _worksStudent[i].push(_work);
  14414. _worksStudent2[i].push(_work);
  14415. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14416. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14417. //选择题
  14418. let _work = {
  14419. userid: b[j].userid,
  14420. ateacher: b[j].ateacher,
  14421. wid: b[j].id,
  14422. works: b[j].content,
  14423. sName: b[j].name,
  14424. type: 13,
  14425. time: b[j].time,
  14426. score: b[j].score,
  14427. img: b[j].img,
  14428. likesCount: likesCount,
  14429. commentCount: commentCount,
  14430. isLikes: isLikes,
  14431. commentJson: commentJson,
  14432. };
  14433. _worksStudent[i].push(_work);
  14434. _worksStudent2[i].push(_work);
  14435. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14436. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14437. //选择题
  14438. let _work = {
  14439. userid: b[j].userid,
  14440. ateacher: b[j].ateacher,
  14441. wid: b[j].id,
  14442. works: b[j].content,
  14443. sName: b[j].name,
  14444. type: 16,
  14445. time: b[j].time,
  14446. score: b[j].score,
  14447. img: b[j].img,
  14448. likesCount: likesCount,
  14449. commentCount: commentCount,
  14450. isLikes: isLikes,
  14451. commentJson: commentJson,
  14452. aiCode: b[j].aiCode,
  14453. teacherCode: b[j].teacherCode
  14454. };
  14455. _worksStudent[i].push(_work);
  14456. _worksStudent2[i].push(_work);
  14457. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14458. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14459. let _gindex = JSON.parse(b[j].content);
  14460. if (
  14461. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14462. b[j].userid
  14463. ) != -1
  14464. ) {
  14465. let _work = {
  14466. userid: b[j].userid,
  14467. ateacher: b[j].ateacher,
  14468. wid: b[j].id,
  14469. works: _gindex.url,
  14470. sName: b[j].name,
  14471. type: _gindex.type,
  14472. time: b[j].time,
  14473. score: b[j].score,
  14474. img: b[j].img,
  14475. likesCount: likesCount,
  14476. commentCount: commentCount,
  14477. isLikes: isLikes,
  14478. commentJson: commentJson,
  14479. };
  14480. _worksStudent[i][_gindex.groupIndex].push(_work);
  14481. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14482. }
  14483. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14484. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14485. let _work = {
  14486. userid: b[j].userid,
  14487. ateacher: b[j].ateacher,
  14488. wid: b[j].id,
  14489. works: b[j].content,
  14490. sName: b[j].name ? b[j].name : b[j].userid,
  14491. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14492. time: b[j].time,
  14493. score: b[j].score,
  14494. img: b[j].img,
  14495. likesCount: likesCount,
  14496. commentCount: commentCount,
  14497. isLikes: isLikes,
  14498. commentJson: commentJson,
  14499. };
  14500. _worksStudent[i].push(_work);
  14501. _worksStudent2[i].push(_work);
  14502. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14503. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14504. let _work = {
  14505. userid: b[j].userid,
  14506. ateacher: b[j].ateacher,
  14507. wid: b[j].id,
  14508. works: b[j].content,
  14509. sName: b[j].name ? b[j].name : b[j].userid,
  14510. type: 12,
  14511. time: b[j].time,
  14512. score: b[j].score,
  14513. img: b[j].img,
  14514. likesCount: likesCount,
  14515. commentCount: commentCount,
  14516. isLikes: isLikes,
  14517. commentJson: commentJson,
  14518. };
  14519. _worksStudent[i].push(_work);
  14520. _worksStudent2[i].push(_work);
  14521. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14522. } else if (
  14523. a[i].tool[0] == 57 &&
  14524. b[j].atool == 57 &&
  14525. b[j].type == 12
  14526. ) {
  14527. let _work = {
  14528. userid: b[j].userid,
  14529. ateacher: b[j].ateacher,
  14530. wid: b[j].id,
  14531. works: b[j].content,
  14532. sName: b[j].name ? b[j].name : b[j].userid,
  14533. type: 12,
  14534. time: b[j].time,
  14535. score: b[j].score,
  14536. img: b[j].img,
  14537. likesCount: likesCount,
  14538. commentCount: commentCount,
  14539. isLikes: isLikes,
  14540. commentJson: commentJson,
  14541. };
  14542. _worksStudent[i].push(_work);
  14543. _worksStudent2[i].push(_work);
  14544. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14545. } else if (
  14546. a[i].tool[0] == 57 &&
  14547. b[j].atool == 57 &&
  14548. b[j].type == 15
  14549. ) {
  14550. let _work = {
  14551. userid: b[j].userid,
  14552. ateacher: b[j].ateacher,
  14553. wid: b[j].id,
  14554. works: b[j].content,
  14555. sName: b[j].name ? b[j].name : b[j].userid,
  14556. type: 15,
  14557. time: b[j].time,
  14558. score: b[j].score,
  14559. img: b[j].img,
  14560. likesCount: likesCount,
  14561. commentCount: commentCount,
  14562. isLikes: isLikes,
  14563. commentJson: commentJson,
  14564. };
  14565. _worksStudent[i].push(_work);
  14566. _worksStudent2[i].push(_work);
  14567. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14568. }
  14569. }
  14570. }
  14571. if (_worksStudent[i] && _worksStudent[i].length) {
  14572. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14573. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14574. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14575. var scoreA = parseFloat(jscoreA);
  14576. var scoreB = parseFloat(jscoreB);
  14577. if (scoreA == scoreB) {
  14578. return b.likesCount - a.likesCount;
  14579. }
  14580. return scoreB - scoreA;
  14581. });
  14582. if (this.isGroup) {
  14583. for (
  14584. var groupI = 0;
  14585. groupI < this.courseGroup.group.length;
  14586. groupI++
  14587. ) {
  14588. this.courseGroup.group[groupI].works[i] =
  14589. this.courseGroup.group[groupI].works[i].sort(function (
  14590. a,
  14591. b
  14592. ) {
  14593. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14594. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14595. var scoreA = parseFloat(jscoreA);
  14596. var scoreB = parseFloat(jscoreB);
  14597. if (scoreA == scoreB) {
  14598. return b.likesCount - a.likesCount;
  14599. }
  14600. return scoreB - scoreA;
  14601. });
  14602. }
  14603. }
  14604. }
  14605. }
  14606. this.timeWorkList = _worksStudent2;
  14607. for (var i = 0; i < a.length; i++) {
  14608. for (var j = 0; j < b.length; j++) {
  14609. var data = b[j];
  14610. if (i == b[j].tool) {
  14611. if (data.type == 2 || data.type == 8) {
  14612. for (var z = 0; z < this.checkJson[i].length; z++) {
  14613. this.checkJson[i][z].checkPerent = [];
  14614. this.checkJson[i][z].right = Math.round(
  14615. (this.checkJson[i][z].rightPerson.length /
  14616. parseInt(_worksStudent[i].length)) *
  14617. 100
  14618. );
  14619. let aaaa = this.checkJson[i][z];
  14620. for (
  14621. var k = 0;
  14622. k < this.checkJson[i][z].checkCount.length;
  14623. k++
  14624. ) {
  14625. this.checkJson[i][z].checkPerent.push(
  14626. Math.round(
  14627. (this.checkJson[i][z].checkCount[k] /
  14628. parseInt(_worksStudent[i].length)) *
  14629. 100
  14630. )
  14631. );
  14632. }
  14633. }
  14634. } else if (data.type == 9) {
  14635. for (var z = 0; z < this.checkJson[i].length; z++) {
  14636. this.checkJson[i][z].checkPerent = [];
  14637. this.checkJson[i][z].right = Math.round(
  14638. (this.checkJson[i][z].rightPerson.length /
  14639. this.checkJson[i][z].checkPerson.length) *
  14640. 100
  14641. );
  14642. }
  14643. }
  14644. }
  14645. }
  14646. }
  14647. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14648. this.joinGroup(gindex);
  14649. }
  14650. this.worksStudent = _worksStudent;
  14651. this.selectWorksStudent();
  14652. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14653. this.$nextTick(()=>{
  14654. setTimeout(()=>{
  14655. setTimeout(()=>{
  14656. this.panToolHeight('tool-'+ci);
  14657. }, 500)
  14658. }, 0)
  14659. })
  14660. }
  14661. })
  14662. .catch((err) => {
  14663. console.error(err);
  14664. });
  14665. },
  14666. pngToWhiteBg(file) {
  14667. const _file = file;
  14668. let read = new FileReader();
  14669. read.readAsDataURL(file); // 文件转base64
  14670. return new Promise((resolve, reject) => {
  14671. read.onload = (e) => {
  14672. let img = new Image();
  14673. img.src = e.target.result;
  14674. img.onload = async () => {
  14675. // 生成canvas
  14676. let canvas = document.createElement("canvas");
  14677. let context = canvas.getContext("2d");
  14678. // 绘制图片到canvas上
  14679. canvas.width = img.width;
  14680. canvas.height = img.height;
  14681. // 在canvas绘制前填充白色背景
  14682. context.fillStyle = "#fff";
  14683. context.fillRect(0, 0, canvas.width, canvas.height);
  14684. context.drawImage(img, 0, 0);
  14685. let base64 = canvas.toDataURL(file["type"], 1);
  14686. let newFile = this.dataUrlToFile(base64, _file);
  14687. resolve(newFile);
  14688. };
  14689. };
  14690. });
  14691. },
  14692. dataUrlToFile(dataurl, file) {
  14693. let arr = dataurl.split(","),
  14694. mime = arr[0].match(/:(.*?);/)[1],
  14695. bstr = atob(arr[1]),
  14696. n = bstr.length,
  14697. u8arr = new Uint8Array(n);
  14698. while (n--) {
  14699. u8arr[n] = bstr.charCodeAt(n);
  14700. }
  14701. // return new Blob([u8arr], { type: mime });
  14702. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14703. type: mime,
  14704. });
  14705. },
  14706. async beforeUpload1(event, type, i) {
  14707. // this.$message.success('进入上传')
  14708. var file = "";
  14709. if (type == 5) {
  14710. file = event;
  14711. } else {
  14712. file = event.target.files[0];
  14713. }
  14714. var credentials = {
  14715. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14716. secretAccessKey: "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",
  14717. }; //秘钥形式的登录上传
  14718. window.AWS.config.update(credentials);
  14719. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14720. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14721. var _this = this;
  14722. _this.progress = 0;
  14723. _this.proVisible = true;
  14724. _this.isFinishSize = 0;
  14725. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14726. var b = [
  14727. "DOC",
  14728. "DOCX",
  14729. "DOCM",
  14730. "DOTM",
  14731. "DOTX",
  14732. "PPTX",
  14733. "PPSX",
  14734. "PPT",
  14735. "PPS",
  14736. "PPTM",
  14737. "POTM",
  14738. "PPAM",
  14739. "POTX",
  14740. "PPSM",
  14741. ];
  14742. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14743. var photoA = [
  14744. "BMP",
  14745. "GIF",
  14746. "PNG",
  14747. "JPGE",
  14748. "JPEG",
  14749. "JPG",
  14750. "TIF",
  14751. "PCX",
  14752. "TGA",
  14753. "EXIF",
  14754. "FPX",
  14755. "SVG",
  14756. "APNG",
  14757. ];
  14758. // if (
  14759. // b.indexOf(
  14760. // file.name
  14761. // .split(".")
  14762. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14763. // ) != -1
  14764. // ) {
  14765. // if (file.size / 1024 / 1024 > 10) {
  14766. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14767. // return;
  14768. // }
  14769. // } else if (
  14770. // excelA.indexOf(
  14771. // file.name
  14772. // .split(".")
  14773. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14774. // ) != "-1"
  14775. // ) {
  14776. // if (file.size / 1024 / 1024 > 5) {
  14777. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14778. // return;
  14779. // }
  14780. // }
  14781. if (
  14782. photoA.indexOf(
  14783. file.name
  14784. .split(".")
  14785. [file.name.split(".").length - 1].toLocaleUpperCase()
  14786. ) != -1 &&
  14787. type != 4
  14788. ) {
  14789. // const blob = await imageConversion.compress(file, 0.8)
  14790. file = await this.pngToWhiteBg(file);
  14791. const blob = await imageConversion.compressAccurately(file, 256);
  14792. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14793. file = new File([blob], file.name, { type: file.type });
  14794. }
  14795. if (file) {
  14796. var params = {
  14797. Key:
  14798. file.name.split(".")[0] +
  14799. new Date().getTime() +
  14800. "." +
  14801. file.name.split(".")[file.name.split(".").length - 1],
  14802. ContentType: file.type,
  14803. Body: file,
  14804. "Access-Control-Allow-Credentials": "*",
  14805. ACL: "public-read",
  14806. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14807. var options = {
  14808. // partSize: 2048 * 1024 * 1024,
  14809. partSize: 1024 * 1024 * 1024,
  14810. queueSize: 2,
  14811. leavePartsOnError: true,
  14812. };
  14813. bucket
  14814. .upload(params, options)
  14815. .on("httpUploadProgress", function (evt) {
  14816. //这里可以写进度条
  14817. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14818. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14819. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14820. })
  14821. .send(function (err, data) {
  14822. _this.progress = 100;
  14823. _this.isFinishSize = _this.isAllSize;
  14824. setTimeout(() => {
  14825. _this.proVisible = false;
  14826. }, 1000);
  14827. if (err) {
  14828. var a = _this.$refs.upload1.uploadFiles;
  14829. a.splice(a.length - 1, a.length);
  14830. _this.$message.error("上传失败");
  14831. } else {
  14832. // _this.$message.success('上传成功')
  14833. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14834. var c = [
  14835. "AVI",
  14836. "NAVI",
  14837. "MPEG",
  14838. "ASF",
  14839. "MOV",
  14840. "WMV",
  14841. "3GP",
  14842. "RM",
  14843. "RMVB",
  14844. "FLV",
  14845. "F4V",
  14846. "H.264",
  14847. "H.265",
  14848. "REAL VIDEO",
  14849. "MKV",
  14850. "WebM",
  14851. "HDDVD",
  14852. "MP4",
  14853. "MPG",
  14854. "M4V",
  14855. "MGV",
  14856. "OGV",
  14857. "QTM",
  14858. "STR",
  14859. "AMC",
  14860. "DVX",
  14861. "EVO",
  14862. "DAT",
  14863. "OGG",
  14864. "OGM",
  14865. ];
  14866. if (type == 1) {
  14867. _this.studyJuri[0].cover.push({
  14868. name: file.name,
  14869. url: data.Location,
  14870. uid: file.uid,
  14871. });
  14872. if (
  14873. c.indexOf(
  14874. _this.studyJuri[0].cover[0].url
  14875. .split(".")
  14876. [
  14877. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14878. ].toLocaleUpperCase()
  14879. ) != -1
  14880. ) {
  14881. _this.fileType = 2;
  14882. } else if (
  14883. b.indexOf(
  14884. _this.studyJuri[0].cover[0].url
  14885. .split(".")
  14886. [
  14887. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14888. ].toLocaleUpperCase()
  14889. ) != -1
  14890. ) {
  14891. _this.fileType = 1;
  14892. } else if (
  14893. photoA.indexOf(
  14894. _this.studyJuri[0].cover[0].url
  14895. .split(".")
  14896. [
  14897. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14898. ].toLocaleUpperCase()
  14899. ) != -1
  14900. ) {
  14901. _this.fileType = 0;
  14902. } else {
  14903. _this.fileType = 3;
  14904. }
  14905. _this.imgChange(null, null, type);
  14906. } else if (type == 2) {
  14907. _this.upToolImg = data.Location;
  14908. _this.imgChange(null, null, type);
  14909. _this.addCourseWorks(i);
  14910. } else if (type == 4) {
  14911. _this.addPz("3", data.Location);
  14912. } else if (type == 5) {
  14913. _this.addImgDrawImG(data.Location);
  14914. } else if (type == 6) {
  14915. var _ftype = 1;
  14916. if (
  14917. c.indexOf(
  14918. data.Location.split(".")[
  14919. data.Location.split(".").length - 1
  14920. ].toLocaleUpperCase()
  14921. ) != -1
  14922. ) {
  14923. _ftype = 5;
  14924. } else if (
  14925. b.indexOf(
  14926. data.Location.split(".")[
  14927. data.Location.split(".").length - 1
  14928. ].toLocaleUpperCase()
  14929. ) != -1
  14930. ) {
  14931. _ftype = 4;
  14932. } else {
  14933. _ftype = 1;
  14934. }
  14935. _this.plworkFile.push({
  14936. name: file.name,
  14937. url: data.Location,
  14938. uid: file.uid,
  14939. fileType: _ftype,
  14940. username:
  14941. _this.plworkFile.length > 10
  14942. ? _this.plworkFile.length + 1
  14943. : "0" + (_this.plworkFile.length + 1),
  14944. });
  14945. } else if (type == 7) {
  14946. _this.addCourseWorksGong(i, data.Location, 32);
  14947. } else if (type == 8) {
  14948. _this.addCourseWorksGong(i, data.Location, 57);
  14949. }
  14950. _this.imgChange(null, null, type);
  14951. console.log(data.Location);
  14952. // _this.$message.success('上传成功'+data.Location)
  14953. }
  14954. });
  14955. }
  14956. },
  14957. async beforeUpload3(event, type, i) {
  14958. // this.$message.success('进入上传')
  14959. let file = "";
  14960. let cfindex2 = 0;
  14961. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14962. file = event.target.files[cfindex];
  14963. var credentials = {
  14964. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14965. secretAccessKey: "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",
  14966. }; //秘钥形式的登录上传
  14967. window.AWS.config.update(credentials);
  14968. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14969. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14970. var _this = this;
  14971. // _this.progress = 0;
  14972. _this.proVisible2 = true;
  14973. var b = [
  14974. "DOC",
  14975. "DOCX",
  14976. "DOCM",
  14977. "DOTM",
  14978. "DOTX",
  14979. "PPTX",
  14980. "PPSX",
  14981. "PPT",
  14982. "PPS",
  14983. "PPTM",
  14984. "POTM",
  14985. "PPAM",
  14986. "POTX",
  14987. "PPSM",
  14988. ];
  14989. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14990. var photoA = [
  14991. "BMP",
  14992. "GIF",
  14993. "PNG",
  14994. "JPGE",
  14995. "JPG",
  14996. "TIF",
  14997. "PCX",
  14998. "TGA",
  14999. "EXIF",
  15000. "FPX",
  15001. "SVG",
  15002. "APNG",
  15003. ];
  15004. if (
  15005. photoA.indexOf(
  15006. file.name
  15007. .split(".")
  15008. [file.name.split(".").length - 1].toLocaleUpperCase()
  15009. ) != -1 &&
  15010. type != 4
  15011. ) {
  15012. // const blob = await imageConversion.compress(file, 0.8)
  15013. file = await this.pngToWhiteBg(file);
  15014. const blob = await imageConversion.compressAccurately(file, 256);
  15015. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15016. file = new File([blob], file.name, { type: file.type });
  15017. }
  15018. if (file) {
  15019. var params = {
  15020. Key:
  15021. file.name.split(".")[0] +
  15022. new Date().getTime() +
  15023. "." +
  15024. file.name.split(".")[file.name.split(".").length - 1],
  15025. ContentType: file.type,
  15026. Body: file,
  15027. "Access-Control-Allow-Credentials": "*",
  15028. ACL: "public-read",
  15029. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15030. var options = {
  15031. // partSize: 2048 * 1024 * 1024,
  15032. partSize: 1024 * 1024 * 1024,
  15033. queueSize: 2,
  15034. leavePartsOnError: true,
  15035. };
  15036. bucket
  15037. .upload(params, options)
  15038. .on("httpUploadProgress", function (evt) {
  15039. //这里可以写进度条
  15040. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15041. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15042. })
  15043. .send(function (err, data) {
  15044. // _this.progress = 100;
  15045. cfindex2++;
  15046. setTimeout(() => {
  15047. if (
  15048. cfindex2 == event.target.files.length - 1 ||
  15049. cfindex2 > event.target.files.length - 1
  15050. ) {
  15051. _this.proVisible2 = false;
  15052. }
  15053. }, 1000);
  15054. if (err) {
  15055. var a = _this.$refs.upload1.uploadFiles;
  15056. a.splice(a.length - 1, a.length);
  15057. _this.$message.error("上传失败");
  15058. } else {
  15059. // _this.$message.success('上传成功')
  15060. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15061. var c = [
  15062. "AVI",
  15063. "NAVI",
  15064. "MPEG",
  15065. "ASF",
  15066. "MOV",
  15067. "WMV",
  15068. "3GP",
  15069. "RM",
  15070. "RMVB",
  15071. "FLV",
  15072. "F4V",
  15073. "H.264",
  15074. "H.265",
  15075. "REAL VIDEO",
  15076. "MKV",
  15077. "WebM",
  15078. "HDDVD",
  15079. "MP4",
  15080. "MPG",
  15081. "M4V",
  15082. "MGV",
  15083. "OGV",
  15084. "QTM",
  15085. "STR",
  15086. "AMC",
  15087. "DVX",
  15088. "EVO",
  15089. "DAT",
  15090. "OGG",
  15091. "OGM",
  15092. ];
  15093. if (type == 1) {
  15094. _this.studyJuri[0].cover.push({
  15095. name: file.name,
  15096. url: data.Location,
  15097. uid: file.uid,
  15098. });
  15099. if (
  15100. c.indexOf(
  15101. _this.studyJuri[0].cover[0].url
  15102. .split(".")
  15103. [
  15104. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15105. ].toLocaleUpperCase()
  15106. ) != -1
  15107. ) {
  15108. _this.fileType = 2;
  15109. } else if (
  15110. b.indexOf(
  15111. _this.studyJuri[0].cover[0].url
  15112. .split(".")
  15113. [
  15114. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15115. ].toLocaleUpperCase()
  15116. ) != -1
  15117. ) {
  15118. _this.fileType = 1;
  15119. } else {
  15120. _this.fileType = 0;
  15121. }
  15122. _this.imgChange(null, null, type);
  15123. } else if (type == 2) {
  15124. _this.upToolImg = data.Location;
  15125. _this.imgChange(null, null, type);
  15126. _this.addCourseWorks(i);
  15127. } else if (type == 4) {
  15128. _this.addPz("3", data.Location);
  15129. } else if (type == 5) {
  15130. _this.addImgDrawImG(data.Location);
  15131. } else if (type == 6) {
  15132. var _ftype = 1;
  15133. if (
  15134. c.indexOf(
  15135. data.Location.split(".")[
  15136. data.Location.split(".").length - 1
  15137. ].toLocaleUpperCase()
  15138. ) != -1
  15139. ) {
  15140. _ftype = 5;
  15141. } else if (
  15142. b.indexOf(
  15143. data.Location.split(".")[
  15144. data.Location.split(".").length - 1
  15145. ].toLocaleUpperCase()
  15146. ) != -1
  15147. ) {
  15148. _ftype = 4;
  15149. } else {
  15150. _ftype = 1;
  15151. }
  15152. _this.plworkFile.push({
  15153. name: file.name,
  15154. url: data.Location,
  15155. uid: file.uid,
  15156. fileType: _ftype,
  15157. username:
  15158. _this.plworkFile.length + 1 > 9
  15159. ? _this.plworkFile.length + 1
  15160. : "0" + (_this.plworkFile.length + 1),
  15161. });
  15162. }
  15163. _this.imgChange(null, null, type);
  15164. console.log(data.Location);
  15165. // _this.$message.success('上传成功'+data.Location)
  15166. }
  15167. });
  15168. }
  15169. }
  15170. },
  15171. beforeUpload2(event, type) {
  15172. var file = event.target.files[0];
  15173. var credentials = {
  15174. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15175. secretAccessKey: "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",
  15176. }; //秘钥形式的登录上传
  15177. window.AWS.config.update(credentials);
  15178. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15179. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15180. var _this = this;
  15181. _this.progress = 0;
  15182. _this.proVisible = true;
  15183. if (file) {
  15184. var params = {
  15185. Key:
  15186. file.name.split(".")[0] +
  15187. new Date().getTime() +
  15188. "." +
  15189. file.name.split(".")[file.name.split(".").length - 1],
  15190. ContentType: file.type,
  15191. Body: file,
  15192. "Access-Control-Allow-Credentials": "*",
  15193. ACL: "public-read",
  15194. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15195. var options = {
  15196. partSize: 2048 * 1024 * 1024,
  15197. queueSize: 2,
  15198. leavePartsOnError: true,
  15199. };
  15200. bucket
  15201. .upload(params, options)
  15202. .on("httpUploadProgress", function (evt) {
  15203. //这里可以写进度条
  15204. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15205. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15206. })
  15207. .send(function (err, data) {
  15208. _this.progress = 100;
  15209. setTimeout(() => {
  15210. _this.proVisible = false;
  15211. }, 1000);
  15212. if (err) {
  15213. var a = _this.$refs.upload1.uploadFiles;
  15214. a.splice(a.length - 1, a.length);
  15215. _this.$message.error("上传失败");
  15216. } else {
  15217. if (type == 2) {
  15218. _this.studyJuri[0].upVedio.push({
  15219. name: file.name,
  15220. url: data.Location,
  15221. uid: file.uid,
  15222. });
  15223. _this.imgChange(null, null, type);
  15224. } else if (type == 3) {
  15225. _this.studyJuri[0].upFile.push({
  15226. name: file.name,
  15227. url: data.Location,
  15228. uid: file.uid,
  15229. });
  15230. _this.imgChange(null, null, type);
  15231. }
  15232. console.log(data.Location);
  15233. }
  15234. });
  15235. }
  15236. },
  15237. allScrell() {
  15238. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15239. },
  15240. nextOrpreSteps(t) {
  15241. if (this.IsFollow && this.tType == 2) {
  15242. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15243. return;
  15244. }
  15245. var b = this.chapInfoList.length - 1;
  15246. if (t == 0) {
  15247. if (this.courseType == 0) {
  15248. if (this.taskCount == 0) {
  15249. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15250. if (this.IsLookOpen) {
  15251. if (
  15252. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15253. ) {
  15254. if (
  15255. this.courseDetail.userid != this.userid &&
  15256. this.courseDetail.course_teacher &&
  15257. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15258. ) {
  15259. this.$message.error("任务未解锁");
  15260. } else {
  15261. this.$message.error("上一任务未解锁");
  15262. }
  15263. return;
  15264. }
  15265. }
  15266. this.navList[this.courseType].isOpen = false;
  15267. this.courseType = b;
  15268. this.taskCount =
  15269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15270. .length - 1;
  15271. this.navList[this.courseType].isOpen = true;
  15272. } else {
  15273. this.taskCount--;
  15274. }
  15275. } else {
  15276. if (this.taskCount == 0) {
  15277. this.navList[this.courseType].isOpen = false;
  15278. this.courseType--;
  15279. this.taskCount =
  15280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15281. .length - 1;
  15282. this.navList[this.courseType].isOpen = true;
  15283. } else {
  15284. this.taskCount--;
  15285. }
  15286. }
  15287. } else {
  15288. if (this.courseType == b) {
  15289. if (
  15290. this.taskCount ==
  15291. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15292. 1
  15293. ) {
  15294. this.navList[this.courseType].isOpen = false;
  15295. this.courseType = 0;
  15296. this.taskCount = 0;
  15297. this.navList[this.courseType].isOpen = true;
  15298. } else {
  15299. var bbb = parseInt(this.taskCount) + 1;
  15300. if (
  15301. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15302. .isLook &&
  15303. this.courseDetail.userid != this.userid &&
  15304. this.courseDetail.course_teacher &&
  15305. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15306. this.IsLookOpen
  15307. ) {
  15308. this.$message.error("任务未解锁");
  15309. return;
  15310. }
  15311. this.taskCount++;
  15312. if (this.IsLookOpen) {
  15313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15314. this.taskCount
  15315. ].isLook = true;
  15316. this.addCourseState(3);
  15317. }
  15318. }
  15319. } else {
  15320. if (
  15321. this.taskCount ==
  15322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15323. 1
  15324. ) {
  15325. var bbb = parseInt(this.courseType) + 1;
  15326. if (
  15327. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15328. this.courseDetail.userid != this.userid &&
  15329. this.courseDetail.course_teacher &&
  15330. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15331. this.IsLookOpen
  15332. ) {
  15333. this.$message.error("任务未解锁");
  15334. return;
  15335. }
  15336. this.navList[this.courseType].isOpen = false;
  15337. this.courseType++;
  15338. this.taskCount = 0;
  15339. this.navList[this.courseType].isOpen = true;
  15340. } else {
  15341. var bbb = parseInt(this.taskCount) + 1;
  15342. if (
  15343. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15344. .isLook &&
  15345. this.courseDetail.userid != this.userid &&
  15346. this.courseDetail.course_teacher &&
  15347. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15348. this.IsLookOpen
  15349. ) {
  15350. this.$message.error("任务未解锁");
  15351. return;
  15352. }
  15353. this.taskCount++;
  15354. }
  15355. if (this.IsLookOpen) {
  15356. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15357. this.taskCount
  15358. ].isLook = true;
  15359. this.addCourseState(3);
  15360. }
  15361. }
  15362. // if (
  15363. // this.taskCount ==
  15364. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15365. // ) {
  15366. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15367. // } else {
  15368. // this.taskCount++;
  15369. // }
  15370. }
  15371. document.scrollingElement.scrollTop = 0;
  15372. this.showType = 0;
  15373. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15374. // if (this.vedio[this.taskCount].length > 0) {
  15375. // var a =
  15376. // document.getElementsByClassName("box_course")[this.taskCount]
  15377. // .offsetHeight;
  15378. // document.getElementsByClassName("vedioList")[
  15379. // this.taskCount
  15380. // ].style.height = a + "px";
  15381. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15382. // a - 40 + "px";
  15383. // }
  15384. this.isNoHomeWork = false;
  15385. (this.studyJuri = [
  15386. {
  15387. content: "",
  15388. cover: [],
  15389. upVedio: [],
  15390. upFile: [],
  15391. },
  15392. ]),
  15393. (this.radio = []);
  15394. this.isClickNav = "";
  15395. this.selectPz();
  15396. this.getHomeWork();
  15397. this.getCourseDetail(2);
  15398. this.$forceUpdate();
  15399. },
  15400. openTask(s, n, i) {
  15401. if (this.IsFollow && this.tType == 2) {
  15402. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15403. return;
  15404. }
  15405. if (this.IsLookOpen) {
  15406. if (
  15407. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15408. this.courseDetail.userid != this.userid &&
  15409. this.courseDetail.course_teacher &&
  15410. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15411. ) {
  15412. this.$message.error("任务未解锁");
  15413. return;
  15414. }
  15415. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15416. if (
  15417. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15418. .isLook
  15419. ) {
  15420. this.$message.error("上一任务未解锁");
  15421. return;
  15422. }
  15423. } else if (s > this.courseType) {
  15424. if (n > 0) {
  15425. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15426. this.$message.error("上一任务未解锁");
  15427. return;
  15428. }
  15429. } else {
  15430. if (
  15431. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15432. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15433. ].isLook
  15434. ) {
  15435. this.$message.error("上一任务未解锁");
  15436. return;
  15437. }
  15438. }
  15439. }
  15440. }
  15441. if (this.navList[s].task[n].isOpen == true) {
  15442. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15443. return;
  15444. }
  15445. this.courseType = s;
  15446. this.navId = i;
  15447. this.taskCount = n;
  15448. this.navList[this.courseType].task[this.taskCount].isOpen =
  15449. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15450. if (this.IsLookOpen) {
  15451. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15452. this.taskCount
  15453. ].isLook = true;
  15454. this.addCourseState(3);
  15455. }
  15456. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15457. this.isCloseList[ci].isClose = 0;
  15458. this.isCloseList[ci].isCloseBoolean = false;
  15459. this.$nextTick(()=>{
  15460. setTimeout(()=>{
  15461. setTimeout(()=>{
  15462. this.panToolHeight('tool-'+ci);
  15463. }, 0)
  15464. }, 0)
  15465. })
  15466. }
  15467. this.showType = 0;
  15468. this.isNoHomeWork = false;
  15469. (this.studyJuri = [
  15470. {
  15471. content: "",
  15472. cover: [],
  15473. upVedio: [],
  15474. upFile: [],
  15475. },
  15476. ]),
  15477. (this.radio = []);
  15478. document.scrollingElement.scrollTop = 0;
  15479. // setTimeout(() => {
  15480. // let a = document.getElementById(i);
  15481. // if (a.offsetTop - 110 == 0) {
  15482. // window.scrollTo(0, 0);
  15483. // } else {
  15484. // window.scrollTo(0, a.offsetTop);
  15485. // }
  15486. // }, 0);
  15487. for (var z = 0; z < this.navList.length; z++) {
  15488. for (var q = 0; q < this.navList[z].task.length; q++) {
  15489. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15490. this.navList[z].task[q].tool[w].isTool = false;
  15491. }
  15492. }
  15493. }
  15494. this.selectPz();
  15495. this.getHomeWork();
  15496. this.getCourseDetail(2);
  15497. },
  15498. get(i) {
  15499. if (this.IsFollow && this.tType == 2) {
  15500. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15501. return;
  15502. }
  15503. // for(var k=0;k<this.navList.length;k++){
  15504. // this.navList[k].isOpen = false;
  15505. // }
  15506. // this.navList[i].isOpen = true;
  15507. this.navList[i].isOpen = !this.navList[i].isOpen;
  15508. if (this.navList[i].isOpen) {
  15509. this.openTask(i, 0, i + "-0");
  15510. }
  15511. },
  15512. addQuestion() {
  15513. this.answerList.push({
  15514. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15515. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15516. });
  15517. let params = [
  15518. {
  15519. uid: this.userid,
  15520. cid: this.id,
  15521. stage: this.courseType,
  15522. task: this.taskCount,
  15523. tool: this.toolindex,
  15524. content: JSON.stringify(this.answerList),
  15525. type: 3,
  15526. },
  15527. ];
  15528. this.ajax
  15529. .post(this.$store.state.api + "addCourseWorks", params)
  15530. .then((res) => {
  15531. this.$message({
  15532. message: "提交成功",
  15533. type: "success",
  15534. });
  15535. this.answerList = [];
  15536. this.answerDialogVisible = false;
  15537. this.selectStudent();
  15538. this.selectSWorks();
  15539. this.selectSLook();
  15540. })
  15541. .catch((err) => {
  15542. this.$message.error("提交失败");
  15543. console.error(err);
  15544. });
  15545. },
  15546. addQuestionTeacher() {
  15547. this.answerList.push({
  15548. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15549. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15550. });
  15551. let params = [
  15552. {
  15553. uid: this.sStudent.userid,
  15554. cid: this.id,
  15555. stage: this.courseType,
  15556. task: this.taskCount,
  15557. tool: this.toolindex,
  15558. content: JSON.stringify(this.answerList),
  15559. type: 3,
  15560. ateacher: this.userid,
  15561. },
  15562. ];
  15563. this.ajax
  15564. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15565. .then((res) => {
  15566. this.$message({
  15567. message: "提交成功",
  15568. type: "success",
  15569. });
  15570. this.answerList = [];
  15571. this.questionAnswer = "";
  15572. this.answerDialogVisibleTeacher = false;
  15573. this.selectStudent();
  15574. this.selectSWorks();
  15575. this.selectSLook();
  15576. })
  15577. .catch((err) => {
  15578. this.$message.error("提交失败");
  15579. console.error(err);
  15580. });
  15581. },
  15582. refreshCourse() {
  15583. // window.location.reload();
  15584. this.navList = [];
  15585. this.getCourseDetail(1);
  15586. },
  15587. getCourseDetail(type, gindex) {
  15588. let loading;
  15589. if (type != 2) {
  15590. loading = this.$loading.service({
  15591. background: "rgba(255, 255, 255, 0.7)",
  15592. target: document.querySelector(".student_table"),
  15593. });
  15594. }
  15595. this.downLoading = false
  15596. // this.navList[0].isOpen = false;
  15597. // this.navList[this.courseType].isOpen = true;
  15598. // this.courseType = this.courseTypeLine;
  15599. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15600. let params = {
  15601. courseId: this.id,
  15602. };
  15603. this.ajax
  15604. .get(this.$store.state.api + "selectCourseDetail3", params)
  15605. .then((res) => {
  15606. if (type != 2) {
  15607. loading.close();
  15608. if (
  15609. this.courseType >
  15610. JSON.parse(res.data[0][0].chapters).length - 1
  15611. ) {
  15612. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15613. }
  15614. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15615. .chapterInfo[0].taskJson;
  15616. var b = [
  15617. "AVI",
  15618. "NAVI",
  15619. "MPEG",
  15620. "ASF",
  15621. "MOV",
  15622. "WMV",
  15623. "3GP",
  15624. "RM",
  15625. "RMVB",
  15626. "FLV",
  15627. "F4V",
  15628. "H.264",
  15629. "H.265",
  15630. "REAL VIDEO",
  15631. "MKV",
  15632. "WebM",
  15633. "HDDVD",
  15634. "MP4",
  15635. "MPG",
  15636. "M4V",
  15637. "MGV",
  15638. "OGV",
  15639. "QTM",
  15640. "STR",
  15641. "AMC",
  15642. "DVX",
  15643. "EVO",
  15644. "DAT",
  15645. "OGG",
  15646. "OGM",
  15647. "MP3",
  15648. ];
  15649. let _chapterData = [];
  15650. for (var i = 0; i < a.length; i++) {
  15651. var c = a[i].chapterData;
  15652. this.vedio[i] = [];
  15653. this.textList[i] = [];
  15654. this.lineList[i] = [];
  15655. this.chapToolList[i] = [];
  15656. this.file[i] = [];
  15657. this.fileC[i] = [];
  15658. _chapterData[i] = c.filter((el) => {
  15659. return el.type != 12;
  15660. });
  15661. this.fileC[i] = c.filter((el) => {
  15662. return el.type == 12;
  15663. });
  15664. // else if (c[j].type == 12) {
  15665. // this.fileC[i].push(c[j]);
  15666. // }
  15667. for (var j = 0; j < c.length; j++) {
  15668. if (c[j].type == 7) {
  15669. this.chapToolList[i].push(c[j]);
  15670. } else if (c[j].type == 8 || c[j].type == 14) {
  15671. this.lineList[i].push(c[j]);
  15672. } else if (c[j].type == 6) {
  15673. this.textList[i].push(c[j]);
  15674. } else {
  15675. if (
  15676. b.indexOf(
  15677. c[j].url
  15678. .split(".")
  15679. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15680. ) != -1
  15681. ) {
  15682. this.vedio[i].push(c[j]);
  15683. } else {
  15684. this.file[i].push(c[j]);
  15685. }
  15686. }
  15687. }
  15688. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15689. d.sources[0].src =
  15690. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15691. this.playerO[i] = d;
  15692. }
  15693. this.courseDetail = res.data[0][0];
  15694. this.tcid = this.arrayToArray(
  15695. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15696. this.tcid2 ? this.tcid2.split(",") : []
  15697. ).join(",");
  15698. this.evalua = res.data[0][0].evaId;
  15699. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15700. this.courseType
  15701. ];
  15702. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15703. if (this.tcid && res.data[1].length) {
  15704. let _inviteA = [];
  15705. for (var ik = 0; ik < res.data[1].length; ik++) {
  15706. _inviteA.push({
  15707. cid: res.data[1][ik].classid,
  15708. ic: res.data[1][ik].code,
  15709. });
  15710. }
  15711. for (var ik = 0; ik < _inviteA.length; ik++) {
  15712. if (
  15713. this.arrayToArray(
  15714. _inviteA[ik].cid.split(","),
  15715. this.tcid.split(",")
  15716. ).length
  15717. ) {
  15718. this.inviteCode = _inviteA[ik].ic;
  15719. break;
  15720. }
  15721. }
  15722. }
  15723. for (var l = 0; l < this.chapInfoList.length; l++) {
  15724. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15725. for (var m = 0; m < w.length; m++) {
  15726. w[m].id = l + "-" + m;
  15727. }
  15728. }
  15729. let taskCount = 0;
  15730. if (
  15731. _chapterData[taskCount].length &&
  15732. _chapterData[taskCount][0].type == 2
  15733. ) {
  15734. this.showType = 0;
  15735. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15736. } else {
  15737. if (_chapterData[taskCount].length > 0) {
  15738. let _url = _chapterData[taskCount][0].url;
  15739. if (
  15740. _chapterData[taskCount][0].type == 8 ||
  15741. _chapterData[taskCount][0].type == 14
  15742. ) {
  15743. this.showType = 2;
  15744. if (
  15745. _url.indexOf("https://") == -1 &&
  15746. _url.indexOf("http://") == -1
  15747. ) {
  15748. _url = "https://" + _url;
  15749. }
  15750. this.pptImgUrl1 = _url;
  15751. } else if (_chapterData[taskCount][0].type == 3) {
  15752. if (
  15753. _url
  15754. .split(".")
  15755. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15756. ) {
  15757. this.showType = 3;
  15758. this.pptImgUrl1 = _url;
  15759. } else if (
  15760. this.isAssetTypeAnImage(
  15761. _url
  15762. .split(".")
  15763. [_url.split(".").length - 1].toLocaleLowerCase()
  15764. )
  15765. ) {
  15766. this.showType = 4;
  15767. this.pptImgUrl1 = _url;
  15768. } else {
  15769. this.showType = 2;
  15770. this.pptImgUrl1 =
  15771. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15772. encodeURIComponent(_url);
  15773. }
  15774. } else if (_chapterData[taskCount][0].type == 13) {
  15775. this.showType = 4;
  15776. this.pptImgUrl1 = _url;
  15777. } else if (_chapterData[taskCount][0].type == 6) {
  15778. this.showType = 1;
  15779. this.text = this.textList[taskCount][0];
  15780. }
  15781. }
  15782. }
  15783. this.isClickNav = 0;
  15784. if (
  15785. !_chapterData[taskCount].length ||
  15786. _chapterData[taskCount][0].type == 12
  15787. ) {
  15788. this.isClickNav = "";
  15789. this.showType = "";
  15790. }
  15791. this.vChapterData = _chapterData;
  15792. } else {
  15793. this.showType = 0;
  15794. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15795. .chapterInfo[0].taskJson;
  15796. var b = [
  15797. "AVI",
  15798. "NAVI",
  15799. "MPEG",
  15800. "ASF",
  15801. "MOV",
  15802. "WMV",
  15803. "3GP",
  15804. "RM",
  15805. "RMVB",
  15806. "FLV",
  15807. "F4V",
  15808. "H.264",
  15809. "H.265",
  15810. "REAL VIDEO",
  15811. "MKV",
  15812. "WebM",
  15813. "HDDVD",
  15814. "MP4",
  15815. "MPG",
  15816. "M4V",
  15817. "MGV",
  15818. "OGV",
  15819. "QTM",
  15820. "STR",
  15821. "AMC",
  15822. "DVX",
  15823. "EVO",
  15824. "DAT",
  15825. "OGG",
  15826. "OGM",
  15827. "MP3",
  15828. ];
  15829. let _chapterData = [];
  15830. for (var i = 0; i < a.length; i++) {
  15831. var c = a[i].chapterData;
  15832. this.vedio[i] = [];
  15833. this.textList[i] = [];
  15834. this.lineList[i] = [];
  15835. this.chapToolList[i] = [];
  15836. this.file[i] = [];
  15837. this.fileC[i] = [];
  15838. _chapterData[i] = c.filter((el) => {
  15839. return el.type != 12;
  15840. });
  15841. this.fileC[i] = c.filter((el) => {
  15842. return el.type == 12;
  15843. });
  15844. for (var j = 0; j < c.length; j++) {
  15845. if (c[j].type == 7) {
  15846. this.chapToolList[i].push(c[j]);
  15847. } else if (c[j].type == 8 || c[j].type == 14) {
  15848. this.lineList[i].push(c[j]);
  15849. } else if (c[j].type == 6) {
  15850. this.textList[i].push(c[j]);
  15851. } else {
  15852. if (
  15853. b.indexOf(
  15854. c[j].url
  15855. .split(".")
  15856. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15857. ) != -1
  15858. ) {
  15859. this.vedio[i].push(c[j]);
  15860. } else {
  15861. this.file[i].push(c[j]);
  15862. }
  15863. }
  15864. }
  15865. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15866. d.sources[0].src =
  15867. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15868. this.playerO[i] = d;
  15869. }
  15870. let taskCount = 0;
  15871. if (
  15872. _chapterData[taskCount].length &&
  15873. _chapterData[taskCount][0].type == 2
  15874. ) {
  15875. this.showType = 0;
  15876. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15877. } else {
  15878. if (_chapterData[taskCount].length > 0) {
  15879. let _url = _chapterData[taskCount][0].url;
  15880. if (
  15881. _chapterData[taskCount][0].type == 8 ||
  15882. _chapterData[taskCount][0].type == 14
  15883. ) {
  15884. this.showType = 2;
  15885. if (
  15886. _url.indexOf("https://") == -1 &&
  15887. _url.indexOf("http://") == -1
  15888. ) {
  15889. _url = "https://" + _url;
  15890. }
  15891. this.pptImgUrl1 = _url;
  15892. } else if (_chapterData[taskCount][0].type == 3) {
  15893. if (
  15894. _url
  15895. .split(".")
  15896. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15897. ) {
  15898. this.showType = 3;
  15899. this.pptImgUrl1 = _url;
  15900. } else if (
  15901. this.isAssetTypeAnImage(
  15902. _url
  15903. .split(".")
  15904. [_url.split(".").length - 1].toLocaleLowerCase()
  15905. )
  15906. ) {
  15907. this.showType = 4;
  15908. this.pptImgUrl1 = _url;
  15909. } else {
  15910. this.showType = 2;
  15911. this.pptImgUrl1 =
  15912. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15913. encodeURIComponent(_url);
  15914. }
  15915. } else if (_chapterData[taskCount][0].type == 13) {
  15916. this.showType = 4;
  15917. this.pptImgUrl1 = _url;
  15918. } else if (_chapterData[taskCount][0].type == 6) {
  15919. this.showType = 1;
  15920. this.text = this.textList[taskCount][0];
  15921. }
  15922. }
  15923. }
  15924. this.isClickNav = 0;
  15925. if (
  15926. !_chapterData[taskCount].length ||
  15927. _chapterData[taskCount][0].type == 12
  15928. ) {
  15929. this.isClickNav = "";
  15930. this.showType = "";
  15931. }
  15932. this.vChapterData = _chapterData;
  15933. this.$forceUpdate();
  15934. }
  15935. // else {
  15936. // this.courseDetail = res.data[0][0];
  15937. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15938. // }
  15939. let _this = this;
  15940. if (_this.timer) {
  15941. clearInterval(_this.timer);
  15942. _this.timer = null;
  15943. }
  15944. if (_this.tcid) {
  15945. _this.getCourseGroup(gindex);
  15946. } else {
  15947. _this.selectSWorks(gindex);
  15948. }
  15949. _this.selectStudent();
  15950. _this.selectSLook();
  15951. _this.getPick();
  15952. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15953. _this.setCTask();
  15954. }
  15955. if (_this.dialogVisibleGroup) {
  15956. _this.groupJson =
  15957. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15958. _this.taskCount
  15959. ].toolChoose[_this.toolindex].groupJson;
  15960. }
  15961. _this.$nextTick(() => {
  15962. setTimeout(() => {
  15963. _this.checkEva();
  15964. }, 1000);
  15965. });
  15966. _this.timer = setInterval(function () {
  15967. // _this.getCourseDetail(2);
  15968. if (_this.tcid) {
  15969. _this.getCourseGroup(gindex);
  15970. } else {
  15971. _this.selectSWorks(gindex);
  15972. }
  15973. _this.selectStudent();
  15974. _this.selectSLook();
  15975. _this.getPick();
  15976. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15977. _this.setCTask();
  15978. }
  15979. if (_this.dialogVisibleGroup) {
  15980. _this.groupJson =
  15981. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15982. _this.taskCount
  15983. ].toolChoose[_this.toolindex].groupJson;
  15984. }
  15985. if (_this.tType == 4 || _this.ispzType == 4) {
  15986. _this.selectPz();
  15987. }
  15988. }, 5000);
  15989. _this.$nextTick(function () {
  15990. setTimeout(() => {
  15991. // var a =
  15992. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15993. // document.getElementsByClassName("vedioList")[0].style.height =
  15994. // a + "px";
  15995. // document.getElementsByClassName("navBox")[0].style.height =
  15996. // a - 40 + "px";
  15997. // if (_this.vedio[_this.taskCount].length > 0) {
  15998. // _this.vedioTime = [];
  15999. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16000. // _this.vedioTime[i] = document.getElementsByClassName(
  16001. // "vjs-duration-display"
  16002. // )[i].textContent;
  16003. // }
  16004. // }
  16005. }, 1000);
  16006. });
  16007. })
  16008. .catch((err) => {
  16009. loading.close();
  16010. console.error(err);
  16011. });
  16012. },
  16013. getCourseGroup(gindex) {
  16014. let params = {
  16015. cid: this.id,
  16016. classid: this.tcid ? this.tcid : "1",
  16017. };
  16018. this.ajax
  16019. .get(this.$store.state.api + "getCourseGroup", params)
  16020. .then((res) => {
  16021. if (res.data && res.data[0].length) {
  16022. if (!this.isGroup) {
  16023. let courseGroup = JSON.parse(res.data[0][0].group);
  16024. courseGroup.group = courseGroup.group.filter((el) => {
  16025. el.works = [];
  16026. return el;
  16027. });
  16028. if (courseGroup.isopen == 2) {
  16029. this.isGroup = false;
  16030. this.selectSWorks(gindex);
  16031. return;
  16032. }
  16033. this.courseGroup = courseGroup;
  16034. let groupPerson = res.data[1];
  16035. let group = JSON.parse(res.data[0][0].group).group;
  16036. let courseGroupStudent = {};
  16037. let courseGroupStudentUid = {};
  16038. for (var i = 0; i < group.length; i++) {
  16039. courseGroupStudent[group[i].id] = [];
  16040. courseGroupStudentUid[group[i].id] = [];
  16041. for (var j = 0; j < groupPerson.length; j++) {
  16042. if (groupPerson[j].groupCid == group[i].id) {
  16043. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16044. courseGroupStudentUid[group[i].id].push(
  16045. groupPerson[j].userid
  16046. );
  16047. }
  16048. }
  16049. }
  16050. this.courseGroupStudent = courseGroupStudent;
  16051. this.courseGroupStudentUid = courseGroupStudentUid;
  16052. }
  16053. if (this.courseGroup.isopen == 2) {
  16054. this.isGroup = false;
  16055. } else {
  16056. this.isGroup = true;
  16057. }
  16058. this.selectSWorks(gindex);
  16059. } else {
  16060. this.selectSWorks(gindex);
  16061. this.isGroup = false;
  16062. }
  16063. })
  16064. .catch((err) => {
  16065. // this.$message.error("网络不佳");
  16066. console.error(err);
  16067. });
  16068. },
  16069. setOperationTime() {
  16070. let _this = this;
  16071. if (_this.opertimer) {
  16072. clearInterval(_this.opertimer);
  16073. _this.opertimer = null;
  16074. }
  16075. _this.opertimer = setInterval(() => {
  16076. _this.setoTime("600");
  16077. }, 600000);
  16078. },
  16079. setoTime(time) {
  16080. let params = [
  16081. {
  16082. uid: this.userid,
  16083. cid: this.id,
  16084. type: "2",
  16085. time: time,
  16086. },
  16087. ];
  16088. this.ajax
  16089. .post(this.$store.state.api + "addOperationTimeT2", params)
  16090. .then((res) => {})
  16091. .catch((err) => {
  16092. console.error(err);
  16093. });
  16094. },
  16095. addPz(type, content) {
  16096. if (type == "1" && this.pzConText == "") {
  16097. this.$message.error("评论不能为空!");
  16098. return;
  16099. }
  16100. let params = [
  16101. {
  16102. cid: this.id,
  16103. uid: this.userid,
  16104. s: this.courseType,
  16105. t: this.taskCount,
  16106. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  16107. type: type,
  16108. },
  16109. ];
  16110. this.ajax
  16111. .post(this.$store.state.api + "addPz2", params)
  16112. .then((res) => {
  16113. this.$message({
  16114. message: "添加成功",
  16115. type: "success",
  16116. });
  16117. this.pzConText = "";
  16118. this.addPzDialog = false;
  16119. this.selectPz();
  16120. })
  16121. .catch((err) => {
  16122. this.$message.error("添加失败");
  16123. console.error(err);
  16124. });
  16125. },
  16126. setReplyIndex(id, i) {
  16127. this.replyIndex = i;
  16128. this.replyPid = id;
  16129. this.replyDialogVisible = true;
  16130. },
  16131. addHf() {
  16132. if (this.reply == "") {
  16133. this.$message.error("回复不能为空!");
  16134. return;
  16135. }
  16136. let params = [
  16137. {
  16138. cid: this.id,
  16139. uid: this.userid,
  16140. s: this.courseType,
  16141. t: this.taskCount,
  16142. type: "1",
  16143. ct: 2,
  16144. pid: this.replyPid,
  16145. c: this.reply.replaceAll(/%/g, "%25"),
  16146. },
  16147. ];
  16148. this.ajax
  16149. .post(this.$store.state.api + "addHf", params)
  16150. .then((res) => {
  16151. this.reply = "";
  16152. this.$message({
  16153. message: "回复成功",
  16154. type: "success",
  16155. });
  16156. this.replyDialogVisible = false;
  16157. this.selectPz();
  16158. })
  16159. .catch((err) => {
  16160. this.$message.error("回复失败");
  16161. console.error(err);
  16162. });
  16163. },
  16164. deletePz(id) {
  16165. this.$confirm("确定删除此评论吗?", "提示", {
  16166. confirmButtonText: "确定",
  16167. cancelButtonText: "取消",
  16168. type: "warning",
  16169. })
  16170. .then(() => {
  16171. let params = [
  16172. {
  16173. id: id,
  16174. },
  16175. ];
  16176. this.ajax
  16177. .post(this.$store.state.api + "deletePz", params)
  16178. .then((res) => {
  16179. this.$message({
  16180. message: "删除成功",
  16181. type: "success",
  16182. });
  16183. this.selectPz();
  16184. })
  16185. .catch((err) => {
  16186. this.$message.error("网络异常");
  16187. console.error(err);
  16188. });
  16189. })
  16190. .catch(() => {});
  16191. },
  16192. deleteReply(id) {
  16193. this.$confirm("确定删除此回复吗?", "提示", {
  16194. confirmButtonText: "确定",
  16195. cancelButtonText: "取消",
  16196. type: "warning",
  16197. })
  16198. .then(() => {
  16199. let params = [
  16200. {
  16201. id: id,
  16202. },
  16203. ];
  16204. this.ajax
  16205. .post(this.$store.state.api + "deleteReply", params)
  16206. .then((res) => {
  16207. this.$message({
  16208. message: "删除成功",
  16209. type: "success",
  16210. });
  16211. this.selectPz();
  16212. })
  16213. .catch((err) => {
  16214. this.$message.error("网络异常");
  16215. console.error(err);
  16216. });
  16217. })
  16218. .catch(() => {});
  16219. },
  16220. setPz() {
  16221. if (this.ispzType == 4) {
  16222. this.ispzType = 0;
  16223. this.pzDialog = false;
  16224. return;
  16225. }
  16226. this.ispzType = 4;
  16227. this.pzDialog = true;
  16228. this.selectPz();
  16229. },
  16230. selectPz() {
  16231. let params = {
  16232. cid: this.id,
  16233. s: this.courseType,
  16234. t: this.taskCount,
  16235. type: this.pzStype,
  16236. uid: this.userid,
  16237. };
  16238. this.ajax
  16239. .get(this.$store.state.api + "selectPzListType", params)
  16240. .then((res) => {
  16241. this.pzList = res.data[0];
  16242. var a = res.data[1];
  16243. for (var i = 0; i < a.length; i++) {
  16244. for (var j = 0; j < this.pzList.length; j++) {
  16245. if (!this.pzList[j].hfList) {
  16246. this.pzList[j].hfList = [];
  16247. }
  16248. if (a[i].pid == this.pzList[j].id) {
  16249. this.pzList[j].hfList.push(a[i]);
  16250. }
  16251. }
  16252. }
  16253. })
  16254. .catch((err) => {
  16255. console.error(err);
  16256. });
  16257. },
  16258. // selectHf() {
  16259. // let params = {
  16260. // cid: this.id,
  16261. // s: this.courseType,
  16262. // t: this.taskCount,
  16263. // };
  16264. // this.ajax
  16265. // .get(this.$store.state.api + "selectHfList", params)
  16266. // .then((res) => {
  16267. // var a = res.data[0];
  16268. // for (var i = 0; i < a.length; i++) {
  16269. // for (var j = 0; j < this.pzList.length; j++) {
  16270. // if (!this.pzList[i].hfList) {
  16271. // this.pzList[i].hfList = [];
  16272. // }
  16273. // if (a[i].pid == this.pzList[j].id) {
  16274. // this.pzList[i].hfList.push(a[i]);
  16275. // }
  16276. // }
  16277. // }
  16278. // })
  16279. // .catch((err) => {
  16280. // console.error(err);
  16281. // });
  16282. // },
  16283. updateSLook() {
  16284. let params = {
  16285. sopen: this.sIsOpen == false ? 1 : 2,
  16286. cid: this.id,
  16287. };
  16288. this.ajax
  16289. .get(this.$store.state.api + "updateCourseSLook", params)
  16290. .then((res) => {
  16291. if (this.sIsOpen == true) {
  16292. this.$message({
  16293. message: "权限设置成功",
  16294. type: "success",
  16295. });
  16296. } else {
  16297. this.$message({
  16298. message: "权限关闭成功",
  16299. type: "success",
  16300. });
  16301. }
  16302. })
  16303. .catch((err) => {
  16304. console.error(err);
  16305. });
  16306. },
  16307. updateFollow() {
  16308. let params = [
  16309. {
  16310. sopen: this.IsFollow == false ? 1 : 2,
  16311. cid: this.id,
  16312. },
  16313. ];
  16314. this.ajax
  16315. .post(this.$store.state.api + "updateCourseFollow", params)
  16316. .then((res) => {
  16317. if (this.IsFollow == true) {
  16318. this.$message({
  16319. message: "开启成功",
  16320. type: "success",
  16321. });
  16322. } else {
  16323. this.$message({
  16324. message: "关闭成功",
  16325. type: "success",
  16326. });
  16327. }
  16328. this.setCTask();
  16329. })
  16330. .catch((err) => {
  16331. console.error(err);
  16332. });
  16333. },
  16334. setCTask() {
  16335. let params = [
  16336. {
  16337. sopen: this.courseType + "-" + this.taskCount,
  16338. cid: this.id,
  16339. },
  16340. ];
  16341. this.ajax
  16342. .post(this.$store.state.api + "updateCourseFollowC", params)
  16343. .then((res) => {})
  16344. .catch((err) => {
  16345. console.error(err);
  16346. });
  16347. },
  16348. updateLookOpen() {
  16349. let params = [
  16350. {
  16351. sopen: this.IsLookOpen == false ? 1 : 2,
  16352. cid: this.id,
  16353. },
  16354. ];
  16355. this.ajax
  16356. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16357. .then((res) => {
  16358. if (this.IsLookOpen == true) {
  16359. // if (this.courseType != 0 && this.taskCount != 0) {
  16360. // this.openTask(0, 0, "0-0");
  16361. // }
  16362. this.$message({
  16363. message: "权限设置成功",
  16364. type: "success",
  16365. });
  16366. } else {
  16367. this.$message({
  16368. message: "权限关闭成功",
  16369. type: "success",
  16370. });
  16371. }
  16372. this.getCourseState(2);
  16373. })
  16374. .catch((err) => {
  16375. console.error(err);
  16376. });
  16377. },
  16378. selectSLook() {
  16379. let params = {
  16380. cid: this.id,
  16381. };
  16382. this.ajax
  16383. .get(this.$store.state.api + "selectCourseSLook", params)
  16384. .then((res) => {
  16385. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16386. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16387. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16388. if (!this.IsLookOpen) {
  16389. this.setNavList();
  16390. } else {
  16391. this.getCourseState(1);
  16392. }
  16393. if (this.IsFollow && this.tType == 2) {
  16394. this.setContent2(false);
  16395. let _followC = res.data[0][0].followC.split("-");
  16396. if (
  16397. this.courseType != _followC[0] ||
  16398. this.taskCount != _followC[1]
  16399. ) {
  16400. this.navList[this.courseType].isOpen = false;
  16401. this.courseType = _followC[0];
  16402. this.navList[this.courseType].isOpen = true;
  16403. this.taskCount = parseInt(_followC[1]);
  16404. this.navId = res.data[0][0].followC;
  16405. document.scrollingElement.scrollTop = 0;
  16406. this.getCourseDetail(2);
  16407. }
  16408. }
  16409. })
  16410. .catch((err) => {
  16411. console.error(err);
  16412. });
  16413. },
  16414. setNavList() {
  16415. if (this.navList.length == 0) {
  16416. this.navList = [];
  16417. var copyList = [];
  16418. for (var l = 0; l < this.chapInfoList.length; l++) {
  16419. var q = this.chapInfoList[l].dyName;
  16420. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16421. var e;
  16422. copyList.push({
  16423. dyName: q,
  16424. isOpen: l === 0 ? true : false,
  16425. task: [],
  16426. });
  16427. for (var r = 0; r < w.length; r++) {
  16428. e = w[r].task;
  16429. if (this.chapInfoList[l].easy == 1) {
  16430. copyList[l].task.push({
  16431. taskName: q,
  16432. id: l + "-" + r,
  16433. isLook: w[r].isLook,
  16434. isOpen: r === 0 ? true : false,
  16435. tool: [],
  16436. });
  16437. } else {
  16438. copyList[l].task.push({
  16439. taskName: e,
  16440. id: l + "-" + r,
  16441. isLook: w[r].isLook,
  16442. isOpen: r === 0 ? true : false,
  16443. tool: [],
  16444. });
  16445. }
  16446. var t = w[r].toolChoose;
  16447. for (var k = 0; k < t.length; k++) {
  16448. var tool = t[k].tool[0];
  16449. copyList[l].task[r].tool.push({
  16450. tool: tool,
  16451. isTool: false,
  16452. });
  16453. }
  16454. // this.navId = this.navId ? this.navId : l + "-" + r;
  16455. // this.navId = l + "-" + r;
  16456. }
  16457. }
  16458. this.navList = copyList;
  16459. this.navList[0].isOpen = false;
  16460. this.navList[this.courseType].isOpen = true;
  16461. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16462. } else {
  16463. this.setNavList2();
  16464. }
  16465. },
  16466. setNavList2() {
  16467. for (var l = 0; l < this.chapInfoList.length; l++) {
  16468. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16469. for (var r = 0; r < w.length; r++) {
  16470. this.navList[l].task[r].isLook = w[r].isLook;
  16471. }
  16472. }
  16473. if (
  16474. this.IsLookOpen &&
  16475. !this.navList[this.courseType].task[this.taskCount].isLook
  16476. ) {
  16477. this.openTask(0, 0, "0-0");
  16478. }
  16479. this.$forceUpdate();
  16480. },
  16481. getCourseState(type) {
  16482. let params = {
  16483. cid: this.id,
  16484. };
  16485. this.ajax
  16486. .get(this.$store.state.api + "getCourseState", params)
  16487. .then((res) => {
  16488. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16489. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16490. this.setNavList();
  16491. this.$forceUpdate();
  16492. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16493. this.addCourseState(2);
  16494. } else {
  16495. this.addCourseState(1);
  16496. }
  16497. })
  16498. .catch((err) => {
  16499. console.error(err);
  16500. });
  16501. },
  16502. addCourseState(type) {
  16503. let _state = this.chapInfoList;
  16504. // this.courseType this.taskCount
  16505. if (type == 1 || type == 2) {
  16506. for (var i = 0; i < _state.length; i++) {
  16507. let el = _state[i].chapterInfo[0].taskJson;
  16508. for (var j = 0; j < el.length; j++) {
  16509. // if (i == 0 && j == 0) {
  16510. // el[j].isLook = true;
  16511. // } else {
  16512. // el[j].isLook = false;
  16513. // }
  16514. if (
  16515. this.courseType > i ||
  16516. (this.courseType == i && this.taskCount + 1 > j)
  16517. ) {
  16518. el[j].isLook = true;
  16519. } else {
  16520. el[j].isLook = false;
  16521. }
  16522. }
  16523. }
  16524. }
  16525. let params = [
  16526. {
  16527. cid: this.id,
  16528. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16529. },
  16530. ];
  16531. this.ajax
  16532. .post(
  16533. this.$store.state.api +
  16534. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16535. params
  16536. )
  16537. .then((res) => {
  16538. if (this.IsLookOpen) {
  16539. this.setNavList();
  16540. }
  16541. if (type == 3 && type == 2) {
  16542. this.getCourseState(1);
  16543. }
  16544. })
  16545. .catch((err) => {
  16546. console.error(err);
  16547. });
  16548. },
  16549. getHomeWork() {
  16550. let params = {
  16551. cid: this.id,
  16552. stage: this.courseType,
  16553. task: this.taskCount,
  16554. uid: this.userid,
  16555. };
  16556. this.ajax
  16557. .get(this.$store.state.api + "selectWork", params)
  16558. .then((res) => {
  16559. if (res.data[0].length > 0) {
  16560. this.studyJuri = JSON.parse(res.data[0][0].content);
  16561. this.isNoHomeWork = true;
  16562. }
  16563. })
  16564. .catch((err) => {
  16565. console.error(err);
  16566. });
  16567. },
  16568. isAssetTypeAnImage(ext) {
  16569. return (
  16570. [
  16571. "png",
  16572. "jpg",
  16573. "jpeg",
  16574. "bmp",
  16575. "gif",
  16576. "webp",
  16577. "psd",
  16578. "svg",
  16579. "tiff",
  16580. ].indexOf(ext) !== -1
  16581. );
  16582. },
  16583. switchVideo(media) {
  16584. this.playerO = {};
  16585. this.playerOptions.poster = "";
  16586. this.playerOptions.sources[0].src = media;
  16587. this.playerO = this.playerOptions;
  16588. },
  16589. onPlayerPlay() {},
  16590. onPlayerTimeupdate(player) {
  16591. let gklog = player.cache_.currentTime; //当前播放的秒数
  16592. let a = player.cache_.duration; //视频的总时长
  16593. let gklog2 = parseInt(gklog);
  16594. // if(gklog2 == '3'){
  16595. // player.pause()
  16596. // setTimeout(()=>{
  16597. // player.currentTime(gklog2+1)
  16598. // player.play()
  16599. // },1000)
  16600. // }
  16601. console.log(" onPlayerTimeupdate!", gklog);
  16602. console.log(" onPlayerTimeupdate!", gklog2);
  16603. },
  16604. lookVedio(u, i) {
  16605. this.isClickNav = "";
  16606. // this.playerOptions.sources[0].src = u;
  16607. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16608. d.sources[0].src = u;
  16609. this.playerO[0] = d;
  16610. this.showType = 0;
  16611. // this.isClickNav = "video" + i;
  16612. this.isClickNav = i;
  16613. this.$forceUpdate();
  16614. },
  16615. lookText(i, t) {
  16616. this.isClickNav = "";
  16617. // this.text = this.textList[i][t];
  16618. this.text = this.vChapterData[i][t];
  16619. // this.dialogVisible1 = true;
  16620. this.showType = 1;
  16621. // this.isClickNav = "text" + t;
  16622. this.isClickNav = t;
  16623. },
  16624. lookTools(i, t) {
  16625. this.chapTools = this.chapToolList[i][t];
  16626. this.dialogVisible2 = true;
  16627. },
  16628. openFile(f) {
  16629. this.pptImgUrl = "";
  16630. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16631. if (
  16632. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16633. -1
  16634. ) {
  16635. this.pptImgUrl =
  16636. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16637. this.showPDF = false;
  16638. this.dialogVisible3 = true;
  16639. } else if (
  16640. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16641. ) {
  16642. this.pptImgUrl = f;
  16643. this.showPDF = true;
  16644. this.dialogVisible3 = true;
  16645. }
  16646. },
  16647. openTable(f) {
  16648. this.tableJson = JSON.parse(f.works);
  16649. this.dialogVisibleTable2 = true;
  16650. },
  16651. openWord(f) {
  16652. this.tableJson = JSON.parse(f.works);
  16653. this.dialogVisibleTable3 = true;
  16654. },
  16655. doUrl(url, i) {
  16656. this.isClickNav = "";
  16657. this.pptImgUrl1 = "";
  16658. this.showType = 2;
  16659. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16660. url = "https://" + url;
  16661. }
  16662. this.pptImgUrl1 = "";
  16663. setTimeout(() => {
  16664. this.pptImgUrl1 = url;
  16665. }, 500);
  16666. // this.isClickNav = "line" + i;
  16667. this.isClickNav = i;
  16668. this.$forceUpdate();
  16669. },
  16670. checkPhoto(f, i) {
  16671. this.showType = 4;
  16672. this.pptImgUrl1 = f.url;
  16673. this.isClickNav = i;
  16674. this.$forceUpdate();
  16675. },
  16676. downFile(f, i) {
  16677. this.isClickNav = "";
  16678. this.pptImgUrl1 = "";
  16679. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16680. if (
  16681. a.indexOf(
  16682. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16683. ) != -1
  16684. ) {
  16685. this.pptImgUrl1 =
  16686. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  16687. // this.dialogVisible3 = true;
  16688. this.showType = 2;
  16689. } else if (
  16690. this.isAssetTypeAnImage(
  16691. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16692. )
  16693. ) {
  16694. this.showType = 4;
  16695. this.pptImgUrl1 = f.url;
  16696. } else if (
  16697. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16698. "PDF"
  16699. ) {
  16700. this.pptImgUrl1 = f.url;
  16701. // this.dialogVisible3 = true;
  16702. this.showType = 3;
  16703. } else {
  16704. window.open(this.file[i].url);
  16705. }
  16706. // this.isClickNav = "word" + i;
  16707. this.isClickNav = i;
  16708. },
  16709. downFileList(i) {
  16710. window.open(this.noImgList[i].url);
  16711. },
  16712. openAddWork() {
  16713. this.dialogVisible = true;
  16714. },
  16715. addBzWorks() {
  16716. let params = [
  16717. {
  16718. uid: this.userid,
  16719. cid: this.id,
  16720. stage: this.courseType,
  16721. task: this.taskCount,
  16722. tool: this.toolindex,
  16723. content: JSON.stringify(this.eScore),
  16724. type: 6,
  16725. },
  16726. ];
  16727. this.ajax
  16728. .post(this.$store.state.api + "addCourseWorks", params)
  16729. .then((res) => {
  16730. this.$message({
  16731. message: "提交成功",
  16732. type: "success",
  16733. });
  16734. this.eScore = { eBzText: "", eStar: [] };
  16735. this.studentEvalDialogVisible = false;
  16736. this.selectSWorks();
  16737. })
  16738. .catch((err) => {
  16739. this.$message.error("提交失败");
  16740. console.error(err);
  16741. });
  16742. },
  16743. addBzWorksTeacher() {
  16744. let params = [
  16745. {
  16746. uid: this.sStudent.userid,
  16747. cid: this.id,
  16748. stage: this.courseType,
  16749. task: this.taskCount,
  16750. tool: this.toolindex,
  16751. content: JSON.stringify(this.eScore),
  16752. type: 6,
  16753. },
  16754. ];
  16755. this.ajax
  16756. .post(this.$store.state.api + "addCourseWorks", params)
  16757. .then((res) => {
  16758. this.$message({
  16759. message: "提交成功",
  16760. type: "success",
  16761. });
  16762. this.eScore = { eBzText: "", eStar: [] };
  16763. this.studentEvalDialogVisibleTeacher = false;
  16764. this.selectSWorks();
  16765. })
  16766. .catch((err) => {
  16767. this.$message.error("提交失败");
  16768. console.error(err);
  16769. });
  16770. },
  16771. addStudentAsk() {
  16772. if (!this.radio.length) {
  16773. this.$message.error("请选择选项");
  16774. return;
  16775. }
  16776. for (var i = 0; i < this.askJson.askCount; i++) {
  16777. if (
  16778. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16779. (this.radio[i] !== 0 && !this.radio[i])
  16780. ) {
  16781. this.$message.error("请选择选项");
  16782. return;
  16783. }
  16784. }
  16785. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16786. let params = [
  16787. {
  16788. uid: this.userid,
  16789. cid: this.id,
  16790. stage: this.courseType,
  16791. task: this.taskCount,
  16792. tool: this.toolindex,
  16793. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16794. type: 2,
  16795. },
  16796. ];
  16797. this.ajax
  16798. .post(this.$store.state.api + "addCourseWorks", params)
  16799. .then((res) => {
  16800. this.$message({
  16801. message: "提交成功",
  16802. type: "success",
  16803. });
  16804. this.askList = [];
  16805. this.dialogVisible5 = false;
  16806. this.selectStudent();
  16807. this.selectSWorks();
  16808. this.selectSLook();
  16809. })
  16810. .catch((err) => {
  16811. this.$message.error("提交失败");
  16812. console.error(err);
  16813. });
  16814. },
  16815. addStudentAskTeacher() {
  16816. if (!this.radio.length) {
  16817. this.$message.error("请选择选项");
  16818. return;
  16819. }
  16820. for (var i = 0; i < this.askJson.askCount; i++) {
  16821. if (
  16822. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16823. (this.radio[i] !== 0 && !this.radio[i])
  16824. ) {
  16825. this.$message.error("请选择选项");
  16826. return;
  16827. }
  16828. }
  16829. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16830. let params = [
  16831. {
  16832. uid: this.sStudent.userid,
  16833. cid: this.id,
  16834. stage: this.courseType,
  16835. task: this.taskCount,
  16836. tool: this.toolindex,
  16837. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16838. type: 2,
  16839. },
  16840. ];
  16841. this.ajax
  16842. .post(this.$store.state.api + "addCourseWorks", params)
  16843. .then((res) => {
  16844. this.$message({
  16845. message: "提交成功",
  16846. type: "success",
  16847. });
  16848. this.askList = [];
  16849. this.dialogVisible5Teacher = false;
  16850. this.selectStudent();
  16851. this.selectSWorks();
  16852. this.selectSLook();
  16853. })
  16854. .catch((err) => {
  16855. this.$message.error("提交失败");
  16856. console.error(err);
  16857. });
  16858. },
  16859. addStudentTest() {
  16860. if (!this.radio.length) {
  16861. this.$message.error("请选择选项");
  16862. return;
  16863. }
  16864. for (var i = 0; i < this.testJson.testCount; i++) {
  16865. if (
  16866. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16867. (this.radio[i] !== 0 && !this.radio[i])
  16868. ) {
  16869. this.$message.error("请选择选项");
  16870. return;
  16871. }
  16872. }
  16873. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16874. let params = [
  16875. {
  16876. uid: this.userid,
  16877. cid: this.id,
  16878. stage: this.courseType,
  16879. task: this.taskCount,
  16880. tool: this.toolindex,
  16881. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16882. type: 8,
  16883. },
  16884. ];
  16885. this.ajax
  16886. .post(this.$store.state.api + "addCourseWorks", params)
  16887. .then((res) => {
  16888. this.$message({
  16889. message: "提交成功",
  16890. type: "success",
  16891. });
  16892. this.askList = [];
  16893. this.dialogVisibleChoice = false;
  16894. this.selectStudent();
  16895. this.selectSWorks();
  16896. this.selectSLook();
  16897. })
  16898. .catch((err) => {
  16899. this.$message.error("提交失败");
  16900. console.error(err);
  16901. });
  16902. },
  16903. addStudentTestTeacher() {
  16904. if (!this.radio.length) {
  16905. this.$message.error("请选择选项");
  16906. return;
  16907. }
  16908. for (var i = 0; i < this.testJson.testCount; i++) {
  16909. if (
  16910. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16911. (this.radio[i] !== 0 && !this.radio[i])
  16912. ) {
  16913. this.$message.error("请选择选项");
  16914. return;
  16915. }
  16916. }
  16917. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16918. let params = [
  16919. {
  16920. uid: this.sStudent.userid,
  16921. cid: this.id,
  16922. stage: this.courseType,
  16923. task: this.taskCount,
  16924. tool: this.toolindex,
  16925. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16926. type: 8,
  16927. },
  16928. ];
  16929. this.ajax
  16930. .post(this.$store.state.api + "addCourseWorks", params)
  16931. .then((res) => {
  16932. this.$message({
  16933. message: "提交成功",
  16934. type: "success",
  16935. });
  16936. this.askList = [];
  16937. this.dialogVisibleChoiceTeacher = false;
  16938. this.selectStudent();
  16939. this.selectSWorks();
  16940. this.selectSLook();
  16941. })
  16942. .catch((err) => {
  16943. this.$message.error("提交失败");
  16944. console.error(err);
  16945. });
  16946. },
  16947. addWork() {
  16948. if (this.studyJuri[0].content == "") {
  16949. this.$message.error("请将信息填写完整");
  16950. return;
  16951. } else if (this.studyJuri[0].cover.length == 0) {
  16952. this.$message.error("请将信息填写完整");
  16953. return;
  16954. } else if (this.studyJuri[0].upVedio.length == 0) {
  16955. this.$message.error("请将信息填写完整");
  16956. return;
  16957. }
  16958. if (this.isNoHomeWork) {
  16959. this.$confirm(
  16960. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16961. "提示",
  16962. {
  16963. confirmButtonText: "确定",
  16964. cancelButtonText: "取消",
  16965. type: "warning",
  16966. }
  16967. )
  16968. .then(() => {
  16969. let params = [
  16970. {
  16971. uid: this.userid,
  16972. cid: this.id,
  16973. stage: this.courseType,
  16974. task: this.taskCount,
  16975. content: JSON.stringify(this.studyJuri),
  16976. },
  16977. ];
  16978. this.ajax
  16979. .post(this.$store.state.api + "addWorks", params)
  16980. .then((res) => {
  16981. this.$message({
  16982. message: "提交成功",
  16983. type: "success",
  16984. });
  16985. this.isNoHomeWork = true;
  16986. this.dialogVisible = false;
  16987. })
  16988. .catch((err) => {
  16989. this.$message.error("提交失败");
  16990. console.error(err);
  16991. });
  16992. })
  16993. .catch(() => {});
  16994. } else {
  16995. let params = [
  16996. {
  16997. uid: this.userid,
  16998. cid: this.id,
  16999. stage: this.courseType,
  17000. task: this.taskCount,
  17001. content: JSON.stringify(this.studyJuri),
  17002. },
  17003. ];
  17004. this.ajax
  17005. .post(this.$store.state.api + "addWorks", params)
  17006. .then((res) => {
  17007. this.$message({
  17008. message: "提交成功",
  17009. type: "success",
  17010. });
  17011. this.isNoHomeWork = true;
  17012. this.dialogVisible = false;
  17013. })
  17014. .catch((err) => {
  17015. this.$message.error("提交失败");
  17016. console.error(err);
  17017. });
  17018. }
  17019. },
  17020. selectCount() {
  17021. let params = {
  17022. cid: this.id,
  17023. chid: this.courseType,
  17024. uid: this.userid,
  17025. };
  17026. this.ajax
  17027. .get(this.$store.state.api + "selectToolsCount", params)
  17028. .then((res) => {
  17029. for (var i = 0; i < res.data[0].length; i++) {
  17030. if (res.data[0][i].tools == 1) {
  17031. this.wbCount = res.data[0][i].count;
  17032. } else if (res.data[0][i].tools == 2) {
  17033. this.wordCount = res.data[0][i].count;
  17034. } else if (res.data[0][i].tools == 3) {
  17035. this.mindCount = res.data[0][i].count;
  17036. } else if (res.data[0][i].tools == 4) {
  17037. this.askCount = res.data[0][i].count;
  17038. } else if (res.data[0][i].tools == 6) {
  17039. this.noteCount = res.data[0][i].count;
  17040. } else if (res.data[0][i].tools == 7) {
  17041. this.mindNetWorkCount = res.data[0][i].count;
  17042. } else if (res.data[0][i].tools == 8) {
  17043. this.libraryCount = res.data[0][i].count;
  17044. } else if (res.data[0][i].tools == 16) {
  17045. this.workCount = res.data[0][i].count;
  17046. } else if (res.data[0][i].tools == 10) {
  17047. this.timeCount = res.data[0][i].count;
  17048. } else if (res.data[0][i].tools == 15) {
  17049. this.answerCount = res.data[0][i].count;
  17050. } else if (res.data[0][i].tools == 18) {
  17051. this.trainCount = res.data[0][i].count;
  17052. }
  17053. }
  17054. })
  17055. .catch((err) => {
  17056. console.error(err);
  17057. });
  17058. },
  17059. openTools(t, i, index, c, sName,id) {
  17060. var z = JSON.parse(c);
  17061. this.noteName = sName;
  17062. if (t == 4) {
  17063. this.radio = [];
  17064. this.isAnswer = false;
  17065. let b = z[0].anwer;
  17066. this.radio = b;
  17067. this.askJson = z[0].askJson;
  17068. this.isAnswer = true;
  17069. this.dialogVisible5 = true;
  17070. } else if (t == 45) {
  17071. this.radio = [];
  17072. this.isAnswer = false;
  17073. let b = z[0].anwer;
  17074. this.radio = b;
  17075. this.testJson = z[0].testJson;
  17076. this.isAnswer = true;
  17077. this.dialogVisibleChoice = true;
  17078. }else if(t == 69){
  17079. this.oldEnglishJson1 = {}
  17080. this.oldEnglishJson = {}
  17081. this.englishList1 = {}
  17082. this.newEngIndex = -1;
  17083. this.isNoUserid = false;
  17084. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17085. .toolChoose[i].englishList;
  17086. this.oldEnglishJson = z;
  17087. this.engWid = id;
  17088. this.newEnglishList = { engTitle:"",engText:"" }
  17089. this.newEnglishList1 = []
  17090. this.selectEngC(id,z);
  17091. }
  17092. // else if (t == 15) {
  17093. // this.answerQ = "";
  17094. // this.questionAnswer = "";
  17095. // this.answerQ = z[0].answerTitle;
  17096. // this.questionAnswer = z[0].answer;
  17097. // this.answerDialogVisible = true;
  17098. // }
  17099. },
  17100. fastText(p, t) {
  17101. if (t == 1) {
  17102. this.commentText += p;
  17103. } else {
  17104. this.eScore.eBzText += p;
  17105. }
  17106. },
  17107. addTools(t, i, index) {
  17108. var a = 0;
  17109. // this.taskCount = index;
  17110. this.toolindex = i;
  17111. if (t == 1) {
  17112. if (this.wbCount > 0) {
  17113. this.updateCount(this.wbCount, t);
  17114. } else {
  17115. this.wbCount++;
  17116. a = this.wbCount;
  17117. this.toolsCount(a, t);
  17118. }
  17119. window.parent.postMessage(
  17120. {
  17121. tools: "1",
  17122. cid: this.id,
  17123. stage: this.courseType,
  17124. task: this.taskCount,
  17125. tool: i,
  17126. },
  17127. "*"
  17128. );
  17129. } else if (t == 2) {
  17130. if (this.wordCount > 0) {
  17131. this.updateCount(this.wordCount, t);
  17132. } else {
  17133. this.wordCount++;
  17134. a = this.wordCount;
  17135. this.toolsCount(a, t);
  17136. }
  17137. window.parent.postMessage({ tools: "2" }, "*");
  17138. } else if (t == 3) {
  17139. if (this.mindCount > 0) {
  17140. this.updateCount(this.mindCount, t);
  17141. } else {
  17142. this.mindCount++;
  17143. a = this.mindCount;
  17144. this.toolsCount(a, t);
  17145. }
  17146. window.parent.postMessage(
  17147. {
  17148. tools: "3",
  17149. cid: this.id,
  17150. stage: this.courseType,
  17151. task: this.taskCount,
  17152. tool: i,
  17153. },
  17154. "*"
  17155. );
  17156. } else if (t == 4) {
  17157. this.radio = [];
  17158. this.noteName = "";
  17159. this.isAnswer = false;
  17160. if (this.askCount > 0) {
  17161. this.updateCount(this.askCount, t);
  17162. } else {
  17163. this.askCount++;
  17164. a = this.askCount;
  17165. this.toolsCount(a, t);
  17166. }
  17167. if (!this.dialogVisible2) {
  17168. this.askJson.askJson =
  17169. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17170. index
  17171. ].toolChoose[i].askJson;
  17172. this.askJson.askTitle =
  17173. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17174. index
  17175. ].toolChoose[i].askTitle;
  17176. this.askJson.askCount =
  17177. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17178. index
  17179. ].toolChoose[i].askCount;
  17180. } else {
  17181. this.askJson.askJson = this.chapTools.askJson.askJson;
  17182. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17183. this.askJson.askCount = this.chapTools.askJson.askCount;
  17184. }
  17185. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17186. if (this.askJson.askJson[k].type == "2") {
  17187. this.radio.push([]);
  17188. } else {
  17189. this.radio.push("");
  17190. }
  17191. }
  17192. this.dialogVisible5 = true;
  17193. // window.parent.postMessage({ tools: "4" }, "*");
  17194. } else if (t == 45) {
  17195. this.noteName = "";
  17196. this.radio = [];
  17197. this.isAnswer = false;
  17198. if (this.askCount > 0) {
  17199. this.updateCount(this.askCount, t);
  17200. } else {
  17201. this.askCount++;
  17202. a = this.askCount;
  17203. this.toolsCount(a, t);
  17204. }
  17205. this.testJson =
  17206. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17207. index
  17208. ].toolChoose[i].testJson;
  17209. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17210. if (this.testJson.testJson[k].type == "2") {
  17211. this.radio.push([]);
  17212. } else {
  17213. this.radio.push("");
  17214. }
  17215. }
  17216. this.dialogVisibleChoice = true;
  17217. // window.parent.postMessage({ tools: "4" }, "*");
  17218. } else if (t == 5) {
  17219. if (this.scoreCount > 0) {
  17220. this.updateCount(this.scoreCount, t);
  17221. } else {
  17222. this.scoreCount++;
  17223. a = this.scoreCount;
  17224. this.toolsCount(a, t);
  17225. }
  17226. this.dialogVisible4 = true;
  17227. // window.parent.postMessage({ tools: "5" }, "*");
  17228. } else if (t == 6) {
  17229. if (this.noteCount > 0) {
  17230. this.updateCount(this.noteCount, t);
  17231. } else {
  17232. this.noteCount++;
  17233. a = this.noteCount;
  17234. this.toolsCount(a, t);
  17235. }
  17236. window.parent.postMessage(
  17237. {
  17238. tools: "6",
  17239. cid: this.id,
  17240. stage: this.courseType,
  17241. task: this.taskCount,
  17242. tool: i,
  17243. },
  17244. "*"
  17245. );
  17246. } else if (t == 7) {
  17247. if (this.mindNetWorkCount > 0) {
  17248. this.updateCount(this.mindNetWorkCount, t);
  17249. } else {
  17250. this.mindNetWorkCount++;
  17251. a = this.mindNetWorkCount;
  17252. this.toolsCount(a, t);
  17253. }
  17254. window.parent.postMessage(
  17255. {
  17256. tools: "7",
  17257. cid: this.id,
  17258. stage: this.courseType,
  17259. task: this.taskCount,
  17260. tool: i,
  17261. },
  17262. "*"
  17263. );
  17264. } else if (t == 16) {
  17265. if (this.workCount > 0) {
  17266. this.updateCount(this.workCount, t);
  17267. } else {
  17268. this.workCount++;
  17269. a = this.workCount;
  17270. this.toolsCount(a, t);
  17271. }
  17272. this.dialogVisible = true;
  17273. } else if (t == 50) {
  17274. if (this.tType == 2) {
  17275. this.$message.error("不支持学生使用");
  17276. return;
  17277. }
  17278. this.plworkFile = [];
  17279. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17280. if (!this.uploadCid) {
  17281. this.$message.error(
  17282. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17283. );
  17284. return;
  17285. }
  17286. // this.uploadCid =
  17287. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17288. // index
  17289. // ].toolChoose[i].uploadJson[0];
  17290. this.selectUploadStudent(2);
  17291. } else if (t == 8) {
  17292. if (this.libraryCount > 0) {
  17293. this.updateCount(this.libraryCount, t);
  17294. } else {
  17295. this.libraryCount++;
  17296. a = this.libraryCount;
  17297. this.toolsCount(a, t);
  17298. }
  17299. window.parent.postMessage({ tools: "8" }, "*");
  17300. } else if (t == 17) {
  17301. if (this.libraryCount > 0) {
  17302. this.updateCount(this.libraryCount, t);
  17303. } else {
  17304. this.libraryCount++;
  17305. a = this.libraryCount;
  17306. this.toolsCount(a, t);
  17307. }
  17308. window.parent.postMessage({ tools: "17" }, "*");
  17309. } else if (t == 18) {
  17310. if (this.trainCount > 0) {
  17311. this.updateCount(this.trainCount, t);
  17312. } else {
  17313. this.trainCount++;
  17314. a = this.trainCount;
  17315. this.toolsCount(a, t);
  17316. }
  17317. window.parent.postMessage({ tools: "18" }, "*");
  17318. } else if (t == 10) {
  17319. if (this.timeCount > 0) {
  17320. this.updateCount(this.timeCount, t);
  17321. } else {
  17322. this.timeCount++;
  17323. a = this.timeCount;
  17324. this.toolsCount(a, t);
  17325. }
  17326. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17327. .taskJson[index].toolChoose[i].preTime
  17328. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17329. .toolChoose[i].preTime
  17330. : "";
  17331. this.timeDialogVisible = true;
  17332. } else if (t == 15) {
  17333. this.answerQ = "";
  17334. this.questionAnswer = "";
  17335. if (this.answerCount > 0) {
  17336. this.updateCount(this.answerCount, t);
  17337. } else {
  17338. this.answerCount++;
  17339. a = this.answerCount;
  17340. this.toolsCount(a, t);
  17341. }
  17342. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17343. .taskJson[index].toolChoose[i].answerQ
  17344. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17345. .toolChoose[i].answerQ
  17346. : "";
  17347. this.answerDialogVisible = true;
  17348. } else if (t == 21) {
  17349. window.parent.postMessage({ tools: "21" }, "*");
  17350. } else if (t == 22) {
  17351. window.parent.postMessage({ tools: "22" }, "*");
  17352. } else if (t == 23) {
  17353. window.parent.postMessage({ tools: "23" }, "*");
  17354. } else if (t == 24) {
  17355. window.parent.postMessage({ tools: "24" }, "*");
  17356. } else if (t == 25) {
  17357. window.parent.postMessage({ tools: "25" }, "*");
  17358. } else if (t == 31) {
  17359. window.parent.postMessage({ tools: "31" }, "*");
  17360. } else if (t == 28) {
  17361. window.parent.postMessage({ tools: "28" }, "*");
  17362. } else if (t == 37) {
  17363. window.parent.postMessage({ tools: "37" }, "*");
  17364. } else if (t == 38) {
  17365. window.parent.postMessage({ tools: "38" }, "*");
  17366. } else if (t == 39) {
  17367. window.parent.postMessage({ tools: "39" }, "*");
  17368. } else if (t == 32) {
  17369. window.parent.postMessage({ tools: "32" }, "*");
  17370. } else if (t == 66) {
  17371. window.parent.postMessage({ tools: "66" }, "*");
  17372. } else if (t == 67) {
  17373. window.parent.postMessage({ tools: "67" }, "*");
  17374. } else if (t == 68) {
  17375. window.parent.postMessage({ tools: "68" }, "*");
  17376. } else if (t == 57) {
  17377. // window.parent.postMessage({ tools: "57" }, "*");
  17378. window.parent.postMessage(
  17379. {
  17380. tools: "57u",
  17381. cid: this.id,
  17382. stage: this.courseType,
  17383. task: this.taskCount,
  17384. tool: i,
  17385. },
  17386. "*"
  17387. );
  17388. } else if (t == 58) {
  17389. window.parent.postMessage({ tools: "58" }, "*");
  17390. } else if (t == 59) {
  17391. window.parent.postMessage({ tools: "59" }, "*");
  17392. } else if (t == 60) {
  17393. window.parent.postMessage({ tools: "60" }, "*");
  17394. } else if (t == 61) {
  17395. window.parent.postMessage({ tools: "61" }, "*");
  17396. } else if (t == 63) {
  17397. window.parent.postMessage({ tools: "63" }, "*");
  17398. } else if (t == 69) {
  17399. if (this.worksStudent[i].length) {
  17400. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17401. if (this.userid == this.worksStudent[i][k].userid) {
  17402. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17403. break;
  17404. } else {
  17405. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17406. }
  17407. }
  17408. } else {
  17409. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17410. }
  17411. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17412. .taskJson[index].toolChoose[i].englishList
  17413. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17414. .toolChoose[i].englishList
  17415. : {};
  17416. this.englishToolIndex = i;
  17417. this.engDialogVisible = true;
  17418. } else if (t == 65) {
  17419. if (this.tType == 2) {
  17420. this.$message.error("不支持学生使用");
  17421. return;
  17422. }
  17423. this.uploadCid = this.tcid;
  17424. if (!this.uploadCid) {
  17425. this.$message.error(
  17426. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17427. );
  17428. return;
  17429. }
  17430. this.selectPickStudent();
  17431. } else if (t == 26) {
  17432. window.parent.postMessage(
  17433. {
  17434. tools: "26",
  17435. cid: this.id,
  17436. stage: this.courseType,
  17437. task: this.taskCount,
  17438. tool: i,
  17439. },
  17440. "*"
  17441. );
  17442. } else if (t == 40) {
  17443. if (this.evalCount > 0) {
  17444. this.updateCount(this.evalCount, t);
  17445. } else {
  17446. this.evalCount++;
  17447. a = this.evalCount;
  17448. this.toolsCount(a, t);
  17449. }
  17450. this.eScore = { eBzText: "", eStar: [] };
  17451. if (this.worksStudent[i].length) {
  17452. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17453. if (this.userid == this.worksStudent[i][k].userid) {
  17454. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17455. this.rateJson =
  17456. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17457. index
  17458. ].toolChoose[i].rateJson;
  17459. break;
  17460. } else {
  17461. this.rateJson =
  17462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17463. index
  17464. ].toolChoose[i].rateJson;
  17465. }
  17466. }
  17467. } else {
  17468. this.rateJson =
  17469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17470. index
  17471. ].toolChoose[i].rateJson;
  17472. }
  17473. this.isStar = false;
  17474. this.studentEvalDialogVisible = true;
  17475. } else if (t == 41) {
  17476. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17477. .taskJson[index].toolChoose[i].selectJson
  17478. ? JSON.parse(
  17479. JSON.stringify(
  17480. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17481. index
  17482. ].toolChoose[i].selectJson
  17483. )
  17484. )
  17485. : { url: "", select: [], answer: [] };
  17486. if (this.worksStudent[i].length) {
  17487. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17488. if (this.userid == this.worksStudent[i][k].userid) {
  17489. var a = this.worksStudent[i][k].works.split(",");
  17490. for (var ki = 0; ki < a.length; ki++) {
  17491. a[ki] = parseInt(a[ki]);
  17492. }
  17493. this.selectAnswer = {
  17494. answer: a,
  17495. stu: this.worksStudent[i][k].sName,
  17496. };
  17497. break;
  17498. } else {
  17499. this.selectAnswer = { answer: [], stu: "" };
  17500. }
  17501. }
  17502. } else {
  17503. this.selectAnswer = { answer: [], stu: "" };
  17504. }
  17505. this.isSelect = false;
  17506. this.dialogVisibleSelect = true;
  17507. } else if (t == 44) {
  17508. window.parent.postMessage({ tools: "44" }, "*");
  17509. } else if (t == 47) {
  17510. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17511. .taskJson[index].toolChoose[i].sentenceList
  17512. ? JSON.parse(
  17513. JSON.stringify(
  17514. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17515. index
  17516. ].toolChoose[i].sentenceList
  17517. )
  17518. )
  17519. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17520. for (var q = 0; q < this.sentenceList.length; q++) {
  17521. this.sentenceList[q].chooseSenList = [];
  17522. this.sentenceList[q].addChangeSen = [];
  17523. this.sentenceList[q].addChangeSen = JSON.parse(
  17524. JSON.stringify(this.sentenceList[q].addSentence)
  17525. );
  17526. this.sentenceList[q].chooseSenList.length =
  17527. this.sentenceList[q].rightAnswer.length;
  17528. }
  17529. this.dialogVisibleSentence = true;
  17530. } else if (t == 48) {
  17531. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17532. .taskJson[index].toolChoose[i].tableJson
  17533. ? JSON.parse(
  17534. JSON.stringify(
  17535. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17536. index
  17537. ].toolChoose[i].tableJson
  17538. )
  17539. )
  17540. : { text: "" };
  17541. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17542. if (this.worksStudent[i].length) {
  17543. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17544. if (this.userid == this.worksStudent[i][k].userid) {
  17545. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17546. break;
  17547. }
  17548. }
  17549. }
  17550. this.dialogVisibleTable = true;
  17551. } else if (t == 52) {
  17552. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17553. .taskJson[index].toolChoose[i].wordJson
  17554. ? JSON.parse(
  17555. JSON.stringify(
  17556. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17557. index
  17558. ].toolChoose[i].wordJson
  17559. )
  17560. )
  17561. : { text: "" };
  17562. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17563. if (this.worksStudent[i].length) {
  17564. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17565. if (this.userid == this.worksStudent[i][k].userid) {
  17566. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17567. break;
  17568. }
  17569. }
  17570. }
  17571. this.dialogVisibleWord = true;
  17572. } else if (t == 49) {
  17573. this.groupJson =
  17574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17575. index
  17576. ].toolChoose[i].groupJson;
  17577. this.islock = this.groupJson.islock == 1 ? true : false;
  17578. this.dialogVisibleGroup = true;
  17579. } else if (t == 62) {
  17580. this.videoJson =
  17581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17582. index
  17583. ].toolChoose[i].videoJson;
  17584. this.dialogVisibleVideo = true;
  17585. }
  17586. },
  17587. teacherWorkSubmit(t, i, index, s) {
  17588. this.sStudent = s;
  17589. this.toolindex = i;
  17590. this.sTool = t;
  17591. if (this.tType !== "1" && this.tType !== "4") {
  17592. return;
  17593. }
  17594. if (t == 16 || t == 32 || t == 50) {
  17595. this.dialogVisibleWorks = true;
  17596. } else if (t == 15) {
  17597. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17598. .taskJson[index].toolChoose[i].answerQ
  17599. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17600. .toolChoose[i].answerQ
  17601. : "";
  17602. this.questionAnswer = "";
  17603. this.answerDialogVisibleTeacher = true; //问答
  17604. } else if (t == 52) {
  17605. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17606. .taskJson[index].toolChoose[i].wordJson
  17607. ? JSON.parse(
  17608. JSON.stringify(
  17609. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17610. index
  17611. ].toolChoose[i].wordJson
  17612. )
  17613. )
  17614. : { text: "" };
  17615. if (this.worksStudent[i].length) {
  17616. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17617. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17618. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17619. break;
  17620. }
  17621. }
  17622. }
  17623. this.dialogVisibleWordTeacher = true; //文档
  17624. } else if (t == 4) {
  17625. this.radio = [];
  17626. this.noteName = "";
  17627. this.isAnswer = false;
  17628. if (this.askCount > 0) {
  17629. this.updateCount(this.askCount, t);
  17630. } else {
  17631. this.askCount++;
  17632. a = this.askCount;
  17633. this.toolsCount(a, t);
  17634. }
  17635. if (!this.dialogVisible2) {
  17636. this.askJson.askJson =
  17637. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17638. index
  17639. ].toolChoose[i].askJson;
  17640. this.askJson.askTitle =
  17641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17642. index
  17643. ].toolChoose[i].askTitle;
  17644. this.askJson.askCount =
  17645. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17646. index
  17647. ].toolChoose[i].askCount;
  17648. } else {
  17649. this.askJson.askJson = this.chapTools.askJson.askJson;
  17650. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17651. this.askJson.askCount = this.chapTools.askJson.askCount;
  17652. }
  17653. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17654. if (this.askJson.askJson[k].type == "2") {
  17655. this.radio.push([]);
  17656. } else {
  17657. this.radio.push("");
  17658. }
  17659. }
  17660. this.dialogVisible5Teacher = true;
  17661. } else if (t == 45) {
  17662. this.noteName = "";
  17663. this.radio = [];
  17664. this.isAnswer = false;
  17665. if (this.askCount > 0) {
  17666. this.updateCount(this.askCount, t);
  17667. } else {
  17668. this.askCount++;
  17669. a = this.askCount;
  17670. this.toolsCount(a, t);
  17671. }
  17672. this.testJson =
  17673. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17674. index
  17675. ].toolChoose[i].testJson;
  17676. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17677. if (this.testJson.testJson[k].type == "2") {
  17678. this.radio.push([]);
  17679. } else {
  17680. this.radio.push("");
  17681. }
  17682. }
  17683. this.dialogVisibleChoiceTeacher = true;
  17684. } else if (t == 41) {
  17685. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17686. .taskJson[index].toolChoose[i].selectJson
  17687. ? JSON.parse(
  17688. JSON.stringify(
  17689. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17690. index
  17691. ].toolChoose[i].selectJson
  17692. )
  17693. )
  17694. : { url: "", select: [], answer: [] };
  17695. if (this.worksStudent[i].length) {
  17696. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17697. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17698. var a = this.worksStudent[i][k].works.split(",");
  17699. for (var ki = 0; ki < a.length; ki++) {
  17700. a[ki] = parseInt(a[ki]);
  17701. }
  17702. this.selectAnswer = {
  17703. answer: a,
  17704. stu: this.worksStudent[i][k].sName,
  17705. };
  17706. break;
  17707. } else {
  17708. this.selectAnswer = { answer: [], stu: "" };
  17709. }
  17710. }
  17711. } else {
  17712. this.selectAnswer = { answer: [], stu: "" };
  17713. }
  17714. this.isSelect = false;
  17715. this.dialogVisibleSelectTeacher = true;
  17716. } else if (t == 47) {
  17717. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17718. .taskJson[index].toolChoose[i].sentenceList
  17719. ? JSON.parse(
  17720. JSON.stringify(
  17721. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17722. index
  17723. ].toolChoose[i].sentenceList
  17724. )
  17725. )
  17726. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17727. for (var q = 0; q < this.sentenceList.length; q++) {
  17728. this.sentenceList[q].chooseSenList = [];
  17729. this.sentenceList[q].addChangeSen = [];
  17730. this.sentenceList[q].addChangeSen = JSON.parse(
  17731. JSON.stringify(this.sentenceList[q].addSentence)
  17732. );
  17733. this.sentenceList[q].chooseSenList.length =
  17734. this.sentenceList[q].rightAnswer.length;
  17735. }
  17736. this.dialogVisibleSentenceTeacher = true;
  17737. } else if (t == 48) {
  17738. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17739. .taskJson[index].toolChoose[i].tableJson
  17740. ? JSON.parse(
  17741. JSON.stringify(
  17742. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17743. index
  17744. ].toolChoose[i].tableJson
  17745. )
  17746. )
  17747. : { text: "" };
  17748. if (this.worksStudent[i].length) {
  17749. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17750. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17751. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17752. break;
  17753. }
  17754. }
  17755. }
  17756. this.dialogVisibleTableTeacher = true;
  17757. } else if (t == 40) {
  17758. if (this.evalCount > 0) {
  17759. this.updateCount(this.evalCount, t);
  17760. } else {
  17761. this.evalCount++;
  17762. a = this.evalCount;
  17763. this.toolsCount(a, t);
  17764. }
  17765. this.eScore = { eBzText: "", eStar: [] };
  17766. if (this.worksStudent[i].length) {
  17767. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17768. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17769. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17770. this.rateJson =
  17771. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17772. index
  17773. ].toolChoose[i].rateJson;
  17774. break;
  17775. } else {
  17776. this.rateJson =
  17777. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17778. index
  17779. ].toolChoose[i].rateJson;
  17780. }
  17781. }
  17782. } else {
  17783. this.rateJson =
  17784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17785. index
  17786. ].toolChoose[i].rateJson;
  17787. }
  17788. this.isStar = false;
  17789. this.studentEvalDialogVisibleTeacher = true;
  17790. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17791. window.parent.postMessage(
  17792. {
  17793. tools: t + "teacher",
  17794. cid: this.id,
  17795. stage: this.courseType,
  17796. task: this.taskCount,
  17797. tool: i,
  17798. student: this.sStudent,
  17799. },
  17800. "*"
  17801. );
  17802. }
  17803. },
  17804. openCocoPi(tool, i, uid, uname) {
  17805. let student = {
  17806. userid: uid,
  17807. student: uname,
  17808. };
  17809. if (tool == 57) {
  17810. window.parent.postMessage(
  17811. {
  17812. tools: tool + "teacher",
  17813. cid: this.id,
  17814. stage: this.courseType,
  17815. task: this.taskCount,
  17816. tool: i,
  17817. student: student,
  17818. },
  17819. "*"
  17820. );
  17821. }
  17822. },
  17823. setRightAnswer(s, i, j) {
  17824. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17825. if (
  17826. this.sentenceList[i].chooseSenList[q] == undefined ||
  17827. this.sentenceList[i].chooseSenList[q] == ""
  17828. ) {
  17829. this.sentenceList[i].chooseSenList[q] = s;
  17830. this.sentenceList[i].addChangeSen[j] = "";
  17831. break;
  17832. }
  17833. }
  17834. this.$forceUpdate();
  17835. },
  17836. returnCard(r, i, j) {
  17837. var a = this.sentenceList[i].addSentence.indexOf(r);
  17838. this.sentenceList[i].chooseSenList[j] = "";
  17839. this.sentenceList[i].addChangeSen[a] = r;
  17840. this.$forceUpdate();
  17841. },
  17842. // addSentenceTool() {
  17843. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17844. // this.taskCount
  17845. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17846. // this.sentenceList = [
  17847. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17848. // ];
  17849. // this.dialogVisibleSentence = false;
  17850. // },
  17851. toolsCount(a, t) {
  17852. let params = {
  17853. cid: this.id,
  17854. chid: this.courseType,
  17855. uid: this.userid,
  17856. tid: t,
  17857. count: a,
  17858. };
  17859. this.ajax
  17860. .get(this.$store.state.api + "insertToolsCount", params)
  17861. .then((res) => {
  17862. this.selectCount();
  17863. })
  17864. .catch((err) => {
  17865. console.error(err);
  17866. });
  17867. },
  17868. updateCount(c, t) {
  17869. c++;
  17870. let params = {
  17871. cid: this.id,
  17872. chid: this.courseType,
  17873. uid: this.userid,
  17874. tid: t,
  17875. count: c,
  17876. };
  17877. this.ajax
  17878. .get(this.$store.state.api + "updateToolsCount", params)
  17879. .then((res) => {
  17880. this.selectCount();
  17881. })
  17882. .catch((err) => {
  17883. console.error(err);
  17884. });
  17885. },
  17886. checkEva() {
  17887. if (this.evalua != "") {
  17888. for (var i = 0; i < this.evaJuri.length; i++) {
  17889. if (this.evalua == this.evaJuri[i].id) {
  17890. this.eTitle = this.evaJuri[i].title;
  17891. this.eJson = JSON.parse(this.evaJuri[i].content);
  17892. }
  17893. }
  17894. this.$forceUpdate();
  17895. setTimeout(() => {
  17896. this.setMindData();
  17897. }, 0);
  17898. }
  17899. },
  17900. selectEva() {
  17901. let params = {
  17902. oid: this.oid,
  17903. };
  17904. this.ajax
  17905. .get(this.$store.state.api + "selectAllEvaluation", params)
  17906. .then((res) => {
  17907. this.evaJuri = res.data[0];
  17908. })
  17909. .catch((err) => {
  17910. console.error(err);
  17911. });
  17912. },
  17913. setMindData() {
  17914. this.data.data = [];
  17915. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17916. let _eJson = Object.keys(this.eJson);
  17917. let _e = this.eJson;
  17918. for (let i = 0; i < _eJson.length; i++) {
  17919. let element = _e[_eJson[i]];
  17920. this.data.data.push({
  17921. id: element.id,
  17922. parentid: "root",
  17923. topic: element.name,
  17924. });
  17925. let _eJsonc = Object.keys(element.child);
  17926. let _e2 = element.child;
  17927. for (let j = 0; j < _eJsonc.length; j++) {
  17928. let _ec = _e2[_eJsonc[j]];
  17929. this.data.data.push({
  17930. id: _ec.id,
  17931. parentid: element.id,
  17932. topic: _ec.name,
  17933. });
  17934. let _eJsonz = Object.keys(_ec.child);
  17935. let _e3 = _ec.child;
  17936. for (let z = 0; z < _eJsonz.length; z++) {
  17937. let _ez = _e3[_eJsonz[z]];
  17938. this.data.data.push({
  17939. id: _ez.id,
  17940. parentid: _ec.id,
  17941. topic: _ez.name,
  17942. });
  17943. }
  17944. }
  17945. }
  17946. this.$forceUpdate();
  17947. },
  17948. checkFileFull(type, url) {
  17949. this.fullDialogVisible = true;
  17950. this.fulltype = type;
  17951. this.fullUrl = url;
  17952. },
  17953. checkFileFull1(t, f) {
  17954. this.fullDialogVisible = true;
  17955. if (t == 6) {
  17956. this.fulltype = 1;
  17957. this.fullUrl = JSON.parse(JSON.stringify(f));
  17958. } else if (t == 8) {
  17959. this.fulltype = 2;
  17960. this.fullUrl = f.url;
  17961. } else if (
  17962. t == 3 &&
  17963. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17964. "PDF"
  17965. ) {
  17966. this.fulltype = 3;
  17967. this.fullUrl = f.url;
  17968. } else if (t == 3) {
  17969. this.fulltype = 2;
  17970. this.fullUrl =
  17971. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  17972. }
  17973. },
  17974. openSname(n, id, i, uid) {
  17975. this.snameWid = id;
  17976. this.worksSName = n;
  17977. this.worksSid = uid == n ? "" : uid;
  17978. this.toolindex = i;
  17979. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17980. if (!this.uploadCid) {
  17981. this.$message.error(
  17982. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17983. );
  17984. return;
  17985. }
  17986. this.selectUploadStudent(1);
  17987. },
  17988. updateName() {
  17989. let params = {
  17990. n: this.worksSName,
  17991. cid: this.snameWid,
  17992. };
  17993. this.ajax
  17994. .get(this.$store.state.api + "updateCourseWorksName", params)
  17995. .then((res) => {
  17996. this.$message({
  17997. message: "修改成功",
  17998. type: "success",
  17999. });
  18000. this.dialogVisibleSname = false;
  18001. this.getCourseDetail(2);
  18002. this.snameWid = "";
  18003. this.worksSName = "";
  18004. })
  18005. .catch((err) => {
  18006. console.error(err);
  18007. });
  18008. },
  18009. downloadFile2(f) {
  18010. // const loading = this.$loading.service({
  18011. // background: "rgba(255, 255, 255, 0.7)",
  18012. // target: document.body,
  18013. // text: "文件加载中...",
  18014. // });
  18015. // let url2 = f.url;
  18016. // let _url2 = "";
  18017. // if (
  18018. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18019. // ) {
  18020. // _url2 = url2.split(
  18021. // "https://view.officeapps.live.com/op/view.aspx?src="
  18022. // )[1];
  18023. // } else {
  18024. // _url2 = url2;
  18025. // }
  18026. // let params = {
  18027. // url: _url2,
  18028. // name: f.name,
  18029. // };
  18030. // this.ajax
  18031. // .get(this.$store.state.api + "download", params)
  18032. // .then((res) => {
  18033. // loading.close();
  18034. // let content = res.data.data.data;
  18035. // let ab = new ArrayBuffer(content.length);
  18036. // let view = new Uint8Array(ab);
  18037. // for (var i = 0; i < content.length; ++i) {
  18038. // view[i] = content[i];
  18039. // }
  18040. // let elink = document.createElement("a");
  18041. // elink.download = f.name;
  18042. // elink.style.display = "none";
  18043. // let blob = new Blob([ab], {
  18044. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18045. // });
  18046. // elink.href = URL.createObjectURL(blob);
  18047. // document.body.appendChild(elink);
  18048. // elink.click();
  18049. // document.body.removeChild(elink);
  18050. // })
  18051. // .catch((err) => {
  18052. // loading.close();
  18053. // console.error(err);
  18054. // });
  18055. var credentials = {
  18056. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18057. secretAccessKey: "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",
  18058. }; //秘钥形式的登录上传
  18059. window.AWS.config.update(credentials);
  18060. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18061. let url2 = f.url;
  18062. let _url2 = "";
  18063. if (
  18064. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18065. ) {
  18066. _url2 = url2.split(
  18067. "https://view.officeapps.live.com/op/view.aspx?src="
  18068. )[1];
  18069. } else {
  18070. _url2 = url2;
  18071. }
  18072. let _this = this;
  18073. _this.downLoading = true
  18074. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18075. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18076. var params = {
  18077. Bucket: "ccrb",
  18078. Key: name
  18079. };
  18080. s3.getObject(params, function (err, data) {
  18081. _this.downLoading = false
  18082. if (err) console.log(err, err.stack); // an error occurred
  18083. else {
  18084. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18085. let a = document.createElement("a");
  18086. a.name = f.name;
  18087. a.href = url;
  18088. a.download = f.name;
  18089. a.click();
  18090. console.log(data);
  18091. } // sxuccessful response
  18092. });
  18093. return;
  18094. let url = f.url;
  18095. let _url = "";
  18096. if (
  18097. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18098. ) {
  18099. _url = url.split(
  18100. "https://view.officeapps.live.com/op/view.aspx?src="
  18101. )[1];
  18102. } else {
  18103. _url = url;
  18104. }
  18105. _this.downLoading = true
  18106. // const loading = _this.$loading.service({
  18107. // background: "rgba(255, 255, 255, 0.7)",
  18108. // target: document.body,
  18109. // text: "文件加载中...",
  18110. // });
  18111. let x = new XMLHttpRequest();
  18112. x.open("GET", _url, true);
  18113. x.responseType = "blob";
  18114. x.onload = function () {
  18115. _this.downLoading = false
  18116. // loading.close();
  18117. let url = window.URL.createObjectURL(new Blob([x.response]));
  18118. let a = document.createElement("a");
  18119. a.name = f.name;
  18120. a.href = url;
  18121. a.download = f.name;
  18122. a.click();
  18123. };
  18124. x.send();
  18125. },
  18126. downloadFile(url) {
  18127. var credentials = {
  18128. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18129. secretAccessKey: "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",
  18130. }; //秘钥形式的登录上传
  18131. window.AWS.config.update(credentials);
  18132. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18133. let url2 = url;
  18134. let _url2 = "";
  18135. if (
  18136. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18137. ) {
  18138. _url2 = url2.split(
  18139. "https://view.officeapps.live.com/op/view.aspx?src="
  18140. )[1];
  18141. } else {
  18142. _url2 = url2;
  18143. }
  18144. const loading2 = this.$loading.service({
  18145. background: "rgba(255, 255, 255, 0.7)",
  18146. target: document.body,
  18147. text: "文件加载中...",
  18148. });
  18149. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18150. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18151. var params = {
  18152. Bucket: "ccrb",
  18153. Key: name
  18154. };
  18155. s3.getObject(params, function (err, data) {
  18156. loading2.close();
  18157. if (err) console.log(err, err.stack); // an error occurred
  18158. else {
  18159. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18160. let a = document.createElement("a");
  18161. a.name = name;
  18162. a.href = url;
  18163. a.download = name;
  18164. a.click();
  18165. console.log(data);
  18166. } // sxuccessful response
  18167. });
  18168. return;
  18169. let _this = this;
  18170. let _url = "";
  18171. if (
  18172. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18173. ) {
  18174. _url = url.split(
  18175. "https://view.officeapps.live.com/op/view.aspx?src="
  18176. )[1];
  18177. } else {
  18178. _url = url;
  18179. }
  18180. const x = new XMLHttpRequest();
  18181. x.open("GET", _url, true);
  18182. x.responseType = "blob";
  18183. // this.downLoading = true
  18184. const loading = _this.$loading.service({
  18185. background: "rgba(255, 255, 255, 0.7)",
  18186. target: document.body,
  18187. text: "文件加载中...",
  18188. });
  18189. // _this.$message.success("文件下载中...");
  18190. x.onload = function (e) {
  18191. this.downLoading = false
  18192. loading.close();
  18193. let content = x.response;
  18194. let elink = document.createElement("a");
  18195. elink.download = decodeURI(
  18196. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18197. );
  18198. elink.style.display = "none";
  18199. let blob = new Blob([content]);
  18200. elink.href = URL.createObjectURL(blob);
  18201. document.body.appendChild(elink);
  18202. elink.click();
  18203. document.body.removeChild(elink);
  18204. };
  18205. x.send();
  18206. },
  18207. openLine(url) {
  18208. window.open(url);
  18209. },
  18210. resize() {
  18211. if (document.getElementsByClassName("box_course").length) {
  18212. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18213. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18214. if (this.showType == 2 || this.showType == 3) {
  18215. document.getElementsByClassName("navBox")[0].style.height =
  18216. a - 40 + 46 + "px";
  18217. } else {
  18218. document.getElementsByClassName("navBox")[0].style.height =
  18219. a - 40 + "px";
  18220. }
  18221. }
  18222. this.Stbodywidth =
  18223. document.getElementsByClassName("student_body").length &&
  18224. document.getElementsByClassName("student_body")[0].offsetWidth;
  18225. },
  18226. closeDraw() {
  18227. this.bg = null;
  18228. this.drawShow = false;
  18229. },
  18230. showPicturePaint(url) {
  18231. let params = {
  18232. img: url,
  18233. };
  18234. this.ajax
  18235. .get(this.$store.state.api + "imgToBase64", params)
  18236. .then((res) => {
  18237. this.drawShow = true;
  18238. this.bg = res.data[0].img;
  18239. })
  18240. .catch((err) => {
  18241. console.error(err);
  18242. });
  18243. },
  18244. addImgDraw(base64) {
  18245. let file = { name: "批注图.png" };
  18246. let img = this.dataUrlToFile(base64, file);
  18247. this.beforeUpload1(img, 5);
  18248. },
  18249. addImgDrawImG(url) {
  18250. // console.log(url);
  18251. let params = [
  18252. {
  18253. wid: this.commentDetail.wid,
  18254. img: url,
  18255. },
  18256. ];
  18257. this.ajax
  18258. .post(this.$store.state.api + "updateCourseWorks", params)
  18259. .then((res) => {
  18260. this.$message({
  18261. message: "提交成功",
  18262. type: "success",
  18263. });
  18264. this.drawShow = false;
  18265. this.bg = "";
  18266. this.selectSWorks();
  18267. this.selectStudent();
  18268. })
  18269. .catch((err) => {
  18270. this.$message.error("提交失败");
  18271. console.error(err);
  18272. });
  18273. },
  18274. deletePicturePaint() {
  18275. this.$confirm("确定删除此批注吗?", "提示", {
  18276. confirmButtonText: "确定",
  18277. cancelButtonText: "取消",
  18278. type: "warning",
  18279. })
  18280. .then(() => {
  18281. let params = [
  18282. {
  18283. wid: this.commentDetail.wid,
  18284. img: "",
  18285. },
  18286. ];
  18287. this.ajax
  18288. .post(this.$store.state.api + "updateCourseWorks", params)
  18289. .then((res) => {
  18290. this.$message({
  18291. message: "删除成功",
  18292. type: "success",
  18293. });
  18294. this.selectSWorks();
  18295. this.selectStudent();
  18296. })
  18297. .catch((err) => {
  18298. this.$message.error("删除失败");
  18299. console.error(err);
  18300. });
  18301. })
  18302. .catch(() => {});
  18303. },
  18304. getAudioVideo(constraintsData) {
  18305. if (navigator.mediaDevices === undefined) {
  18306. navigator.mediaDevices = {};
  18307. }
  18308. if (navigator.mediaDevices.getUserMedia === undefined) {
  18309. navigator.mediaDevices.getUserMedia = function (constraints) {
  18310. // 首先,如果有getUserMedia的话,就获得它
  18311. var getUserMedia =
  18312. navigator.getUserMedia ||
  18313. navigator.webkitGetUserMedia ||
  18314. navigator.mozGetUserMedia ||
  18315. navigator.msGetUserMedia;
  18316. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18317. if (!getUserMedia) {
  18318. return Promise.reject({ code: 404 });
  18319. }
  18320. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18321. return new Promise(function (resolve, reject) {
  18322. getUserMedia.call(navigator, constraints, resolve, reject);
  18323. });
  18324. };
  18325. }
  18326. return navigator.mediaDevices.getUserMedia(constraintsData);
  18327. },
  18328. /**
  18329. * 开始录制
  18330. */
  18331. startRecording(callback) {
  18332. let _function = (screenStream) => {
  18333. this.addStreamStopListener(screenStream, () => {
  18334. console.log("流停止监听");
  18335. this.stopRecording();
  18336. this.$emit("streamStop", {});
  18337. // this.stopRecording();
  18338. });
  18339. var options = {
  18340. type: "video",
  18341. mimeType: "video/webm",
  18342. disableLogs: false,
  18343. getNativeBlob: false, // enable it for longer recordings
  18344. ignoreMutedMedia: false,
  18345. };
  18346. // this.video.srcObject = screenStream;
  18347. this.recorder = RecordRTC(screenStream, options);
  18348. this.recorder.startRecording();
  18349. this.recorder.screen = screenStream;
  18350. this.videoStart = true;
  18351. // callback(true);
  18352. };
  18353. this.getAudioVideo({ audio: true })
  18354. .then((res) => {
  18355. this.captureScreen(_function, true);
  18356. console.log("已点击允许,开启成功");
  18357. })
  18358. .catch((err) => {
  18359. // console.log('浏览器不支持,请更换浏览器')
  18360. // } else {
  18361. this.captureScreen(_function, false);
  18362. console.log("请检查是否存在麦克风");
  18363. });
  18364. },
  18365. /**
  18366. * 停止录制
  18367. */
  18368. stopRecording(callback) {
  18369. this.recorder.stopRecording(() => {
  18370. // this.video.src = this.video.srcObject = null;
  18371. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18372. const url = URL.createObjectURL(this.recorder.getBlob());
  18373. const a = document.createElement("a"); //this.fileName+
  18374. let videoFile = new File(
  18375. [this.recorder.getBlob()],
  18376. this.courseDetail.title + "录屏.mp4",
  18377. {
  18378. type: "video/mp4",
  18379. }
  18380. );
  18381. let downloadUrl = URL.createObjectURL(videoFile);
  18382. document.body.appendChild(a);
  18383. a.style.display = "none";
  18384. a.href = url;
  18385. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18386. a.click();
  18387. this.recorder.screen.stop();
  18388. this.recorder.destroy();
  18389. this.recorder = null;
  18390. this.videoStart = false;
  18391. // callback(false);
  18392. });
  18393. },
  18394. //初始化
  18395. captureScreen(callback, type) {
  18396. if (navigator.getDisplayMedia) {
  18397. //录制结束,文件下载
  18398. navigator
  18399. .getDisplayMedia({
  18400. video: true,
  18401. })
  18402. .then((screenStream) => {
  18403. if (type) {
  18404. navigator.mediaDevices
  18405. .getUserMedia({ audio: true })
  18406. .then((mic) => {
  18407. screenStream.addTrack(mic.getTracks()[0]);
  18408. callback(screenStream);
  18409. });
  18410. } else {
  18411. callback(screenStream);
  18412. }
  18413. })
  18414. .catch(function (error) {
  18415. console.log("error", error);
  18416. });
  18417. } else if (navigator.mediaDevices.getDisplayMedia) {
  18418. navigator.mediaDevices
  18419. .getDisplayMedia({
  18420. video: true,
  18421. })
  18422. .then((screenStream) => {
  18423. if (type) {
  18424. navigator.mediaDevices
  18425. .getUserMedia({ audio: true })
  18426. .then((mic) => {
  18427. screenStream.addTrack(mic.getTracks()[0]);
  18428. callback(screenStream);
  18429. });
  18430. } else {
  18431. callback(screenStream);
  18432. }
  18433. })
  18434. .catch(function (error) {
  18435. console.log("error", error);
  18436. });
  18437. } else {
  18438. var error = "getDisplayMedia API are not supported in this browser.";
  18439. console.log("error", error);
  18440. alert(error);
  18441. }
  18442. },
  18443. //流监听
  18444. addStreamStopListener(stream, callback) {
  18445. stream.addEventListener(
  18446. "ended",
  18447. function () {
  18448. callback();
  18449. callback = function () {};
  18450. },
  18451. false
  18452. );
  18453. stream.addEventListener(
  18454. "inactive",
  18455. function () {
  18456. callback();
  18457. callback = function () {};
  18458. },
  18459. false
  18460. );
  18461. stream.getTracks().forEach(function (track) {
  18462. track.addEventListener(
  18463. "ended",
  18464. function () {
  18465. callback();
  18466. callback = function () {};
  18467. },
  18468. false
  18469. );
  18470. track.addEventListener(
  18471. "inactive",
  18472. function () {
  18473. callback();
  18474. callback = function () {};
  18475. },
  18476. false
  18477. );
  18478. });
  18479. },
  18480. updateGroup() {
  18481. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18482. this.dialogVisibleGroup2 = true;
  18483. },
  18484. numberPan() {
  18485. if (
  18486. /[^\d]/.test(this.groupJson.number) ||
  18487. this.groupJson.number < 2 ||
  18488. this.groupJson.number > 10
  18489. ) {
  18490. this.$message.error("请输入2-10的数字");
  18491. this.groupJson.number = "";
  18492. }
  18493. },
  18494. updateGroupJson() {
  18495. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18496. if (
  18497. this.groupStudentUid[this.toolindex][i].length >
  18498. this.groupJson2.number
  18499. ) {
  18500. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18501. return;
  18502. }
  18503. }
  18504. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18505. this.islock = this.groupJson.islock == 1 ? true : false;
  18506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18507. this.taskCount
  18508. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18509. let params = [
  18510. {
  18511. cid: this.id,
  18512. chapters: JSON.stringify(this.chapInfoList),
  18513. uid: this.userid,
  18514. unitIndex: this.courseType,
  18515. },
  18516. ];
  18517. this.ajax
  18518. .post(this.$store.state.api + "updateWorkNew4", params)
  18519. .then((res) => {
  18520. this.$message.success("设置成功");
  18521. this.getCourseDetail(2);
  18522. this.dialogVisibleGroup2 = false;
  18523. this.groupJson2 = {};
  18524. this.$forceUpdate();
  18525. })
  18526. .catch((err) => {
  18527. this.$message.error("网络不佳");
  18528. console.error(err);
  18529. });
  18530. },
  18531. lockChair() {
  18532. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18533. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18534. this.updateGroupJson();
  18535. },
  18536. selectGroup(index) {
  18537. this.getCourseDetail(2, index);
  18538. },
  18539. joinGroup(index) {
  18540. if (this.groupJson.islock == 2) {
  18541. this.$message.error("位置已被锁定,无法加入");
  18542. return;
  18543. }
  18544. if (
  18545. this.groupStudent[this.toolindex][index].length >
  18546. this.groupJson.number ||
  18547. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18548. ) {
  18549. this.$message.error("位置已满,无法加入");
  18550. return;
  18551. }
  18552. let params = [
  18553. {
  18554. cid: this.id,
  18555. stage: this.courseType,
  18556. task: this.taskCount,
  18557. tool: this.toolindex,
  18558. g: index,
  18559. uid: this.userid,
  18560. },
  18561. ];
  18562. this.ajax
  18563. .post(this.$store.state.api + "joinGroup", params)
  18564. .then((res) => {
  18565. this.$message.success("加入成功");
  18566. this.getCourseDetail(2);
  18567. })
  18568. .catch((err) => {
  18569. this.$message.error("网络不佳");
  18570. console.error(err);
  18571. });
  18572. },
  18573. exitGroup(id) {
  18574. if (this.groupJson.islock == 2) {
  18575. this.$message.error("位置已被锁定,无法退出");
  18576. return;
  18577. }
  18578. let params = [
  18579. {
  18580. gid: id,
  18581. },
  18582. ];
  18583. this.ajax
  18584. .post(this.$store.state.api + "exitGroup", params)
  18585. .then((res) => {
  18586. this.$message.success("退出成功");
  18587. this.getCourseDetail(2);
  18588. })
  18589. .catch((err) => {
  18590. this.$message.error("网络不佳");
  18591. console.error(err);
  18592. });
  18593. },
  18594. groupUpload(index, task, gindex) {
  18595. this.taskCount = task;
  18596. this.toolindex = index;
  18597. this.groupIndex = gindex;
  18598. this.dialogVisibleGroupWork = true;
  18599. },
  18600. updateGroupChair(user) {
  18601. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18602. el.label = index;
  18603. return index != user.group;
  18604. });
  18605. this.updateGroupUser = user;
  18606. this.dialogVisibleUpdateGroup = true;
  18607. },
  18608. updateChair() {
  18609. if (
  18610. this.groupStudent[this.toolindex][this.checkChair].length >
  18611. this.groupJson.number ||
  18612. this.groupStudent[this.toolindex][this.checkChair].length ==
  18613. this.groupJson.number
  18614. ) {
  18615. this.$message.error("位置已满,无法加入");
  18616. return;
  18617. }
  18618. let params = [
  18619. {
  18620. cid: this.id,
  18621. stage: this.courseType,
  18622. task: this.taskCount,
  18623. tool: this.toolindex,
  18624. g: this.checkChair,
  18625. uid: this.updateGroupUser.userid,
  18626. },
  18627. ];
  18628. this.ajax
  18629. .post(this.$store.state.api + "joinGroup", params)
  18630. .then((res) => {
  18631. this.$message.success("修改成功");
  18632. this.updateGroupUser = {};
  18633. this.checkChair = "";
  18634. this.updateGroupArray = {};
  18635. this.dialogVisibleUpdateGroup = false;
  18636. this.getCourseDetail(2);
  18637. })
  18638. .catch((err) => {
  18639. this.$message.error("网络不佳");
  18640. console.error(err);
  18641. });
  18642. },
  18643. deleteGroupChair(gindex) {
  18644. this.checkDeleteGroup = [];
  18645. this.deleteGroupUser = JSON.parse(
  18646. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18647. );
  18648. this.deleteGroupArray = this.groupJson.group[gindex];
  18649. this.groupIndex = gindex;
  18650. this.dialogVisibleDeleteGroup = true;
  18651. },
  18652. async deleteChair() {
  18653. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18654. const gid =
  18655. this.groupStudent[this.toolindex][this.groupIndex][
  18656. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18657. this.checkDeleteGroup[i]
  18658. )
  18659. ];
  18660. let params = [
  18661. {
  18662. gid: gid.id,
  18663. },
  18664. ];
  18665. var a = await this.deleteChairA(params);
  18666. if (i == this.checkDeleteGroup.length - 1) {
  18667. this.$message.success("退出成功");
  18668. this.dialogVisibleDeleteGroup = false;
  18669. this.deleteGroupUser = [];
  18670. this.deleteGroupArray = {};
  18671. this.groupIndex = "";
  18672. this.checkDeleteGroup = [];
  18673. this.getCourseDetail(2);
  18674. }
  18675. }
  18676. },
  18677. deleteChairA(params) {
  18678. return new Promise((resolve, reject) => {
  18679. this.ajax
  18680. .post(this.$store.state.api + "exitGroup", params)
  18681. .then((res) => {
  18682. resolve(1);
  18683. })
  18684. .catch((err) => {
  18685. this.$message.error("网络不佳");
  18686. console.error(err);
  18687. });
  18688. });
  18689. },
  18690. contract(i) {
  18691. if (this.isCloseList[i].isClose == 0) {
  18692. this.isCloseList[i].isClose = 1;
  18693. } else {
  18694. this.isCloseList[i].isClose = 0;
  18695. }
  18696. this.$forceUpdate();
  18697. },
  18698. openWordCloud(toolindex) {
  18699. let array = [];
  18700. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18701. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18702. array.push({ name: works });
  18703. }
  18704. if (this.isGroup) {
  18705. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18706. let works = this.courseGroup.group[i].works[toolindex];
  18707. for (var j = 0; j < works.length; j++) {
  18708. let answer = JSON.parse(works[j].works)[0].answer;
  18709. array.push({ name: answer });
  18710. }
  18711. }
  18712. }
  18713. this.wordCloudData = array;
  18714. this.dialogVisibleWordCloud = true;
  18715. },
  18716. uploadWorks(i) {
  18717. this.$confirm("确定导出作业吗?", "提示", {
  18718. confirmButtonText: "确定",
  18719. cancelButtonText: "取消",
  18720. type: "warning",
  18721. })
  18722. .then(() => {
  18723. const loading = this.$loading.service({
  18724. background: "rgba(255, 255, 255, 0.7)",
  18725. target: document.body,
  18726. text: "文件加载中...",
  18727. });
  18728. const _worksStudent = this.worksStudent;
  18729. let url = [];
  18730. var counts = {};
  18731. for (var l = 0; l < _worksStudent[i].length; l++) {
  18732. var item = _worksStudent[i][l];
  18733. var name = item.sName;
  18734. if (!counts.hasOwnProperty(name)) {
  18735. counts[name] = 0;
  18736. } else {
  18737. counts[name]++;
  18738. }
  18739. if (counts[name] > 0) {
  18740. item.sName += " (" + counts[name] + ")";
  18741. }
  18742. }
  18743. for (var l = 0; l < _worksStudent[i].length; l++) {
  18744. var item = _worksStudent[i][l];
  18745. if (
  18746. item.works.indexOf(
  18747. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18748. ) !== -1 &&
  18749. item.works.indexOf("img") === -1
  18750. ) {
  18751. url.push({ name: item.sName, url: item.works });
  18752. }
  18753. }
  18754. // var toolList = [
  18755. // { name: "电子白板", tool: 1 },
  18756. // { name: "思维导图", tool: 3 },
  18757. // { name: "协同文档", tool: 6 },
  18758. // { name: "思维网格", tool: 7 },
  18759. // { name: "素材库", tool: 8 },
  18760. // { name: "学习资料", tool: 17 },
  18761. // { name: "便签", tool: 2 },
  18762. // { name: "问卷调查", tool: 4 },
  18763. // { name: "选择题", tool: 45 },
  18764. // { name: "倒计时", tool: 10 },
  18765. // { name: "问答", tool: 15 },
  18766. // { name: "课程设计", tool: 26 },
  18767. // { name: "训练服务器", tool: 18 },
  18768. // { name: "作业提交", tool: 16 },
  18769. // { name: "批量上传", tool: 50 },
  18770. // { name: "AIoT Blockly", tool: 21 },
  18771. // { name: "AI Python", tool: 23 },
  18772. // { name: "AI Blockly", tool: 24 },
  18773. // { name: "目标管理", tool: 25 },
  18774. // { name: "数学画板", tool: 31 },
  18775. // { name: "翻译", tool: 28 },
  18776. // { name: "魔盒识字", tool: 37 },
  18777. // { name: "数学画板", tool: 31 },
  18778. // { name: "24点", tool: 38 },
  18779. // { name: "GeoGebra", tool: 39 },
  18780. // { name: "源码编辑", tool: 32 },
  18781. // { name: "个人评价", tool: 40 },
  18782. // { name: "选择匹配", tool: 41 },
  18783. // { name: "汉字宫", tool: 44 },
  18784. // { name: "排序", tool: 47 },
  18785. // { name: "表格", tool: 48 },
  18786. // { name: "文档", tool: 52 },
  18787. // { name: "学生分组", tool: 49 },
  18788. // { name: "CocoPi", tool: 57 },
  18789. // { name: "模拟驾驶", tool: 58 },
  18790. // { name: "路径搜索", tool: 59 },
  18791. // { name: "深度学习", tool: 60 },
  18792. // { name: "全历史", tool: 61 },
  18793. // { name: "交互视频", tool: 62 },
  18794. // { name: "海龟编程", tool: 63 },
  18795. // { name: "挑人", tool: 65 },
  18796. // { name: "公式编辑", tool: 66 },
  18797. // { name: "分子结构", tool: 67 },
  18798. // { name: "时间轴", tool: 68 },
  18799. // ];
  18800. // var toolName = "";
  18801. // for(var w = 0;w<toolList.length;w++){
  18802. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18803. // toolName = toolList[w].name;
  18804. // }
  18805. // }
  18806. console.log(url);
  18807. this.downLoadAll(url, loading);
  18808. })
  18809. .catch(() => {});
  18810. },
  18811. downLoadAll(url, loading) {
  18812. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18813. const zip = new JSZip();
  18814. const cache = {};
  18815. const promises = [];
  18816. data.forEach((item) => {
  18817. const promise = getFile(item.url).then((data) => {
  18818. if (data.data != 1) {
  18819. // 下载文件, 并存成ArrayBuffer对象
  18820. const file_name =
  18821. item.name +
  18822. "." +
  18823. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18824. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18825. cache[file_name] = data.data;
  18826. }
  18827. });
  18828. promises.push(promise);
  18829. });
  18830. Promise.all(promises).then(() => {
  18831. zip.generateAsync({ type: "blob" }).then((content) => {
  18832. // 生成二进制流
  18833. FileSaver.saveAs(
  18834. content,
  18835. this.courseDetail.title + "-" + "作业提交工具.zip"
  18836. ); // 利用file-saver保存文件 自定义文件名
  18837. setTimeout(() => {
  18838. loading.close();
  18839. }, 2000);
  18840. });
  18841. });
  18842. },
  18843. pickStudent(stu) {
  18844. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18845. return;
  18846. }
  18847. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18848. confirmButtonText: "确定",
  18849. cancelButtonText: "取消",
  18850. type: "warning",
  18851. })
  18852. .then(() => {
  18853. let params = [
  18854. {
  18855. uid: stu.userid,
  18856. cid: this.id,
  18857. stage: this.courseType,
  18858. task: this.taskCount,
  18859. tool: this.toolindex,
  18860. },
  18861. ];
  18862. this.ajax
  18863. .post(this.$store.state.api + "updateCoursePick", params)
  18864. .then((res) => {
  18865. this.$message.success("操作成功");
  18866. this.getPick();
  18867. })
  18868. .catch((err) => {
  18869. this.$message.error("网络不佳");
  18870. console.error(err);
  18871. });
  18872. })
  18873. .catch(() => {});
  18874. },
  18875. selectUser(){
  18876. let params = {
  18877. userid: this.userid,
  18878. };
  18879. this.ajax
  18880. .get(this.$store.state.api + "selectUser", params)
  18881. .then((res) => {
  18882. this.userMes = res.data[0];
  18883. })
  18884. .catch((err) => {
  18885. console.error(err);
  18886. });
  18887. },
  18888. setEngText(i){
  18889. this.newEngIndex = i;
  18890. this.$forceUpdate();
  18891. },
  18892. addCorrect(){
  18893. this.$confirm("你确定提交批改嘛?", "提示", {
  18894. confirmButtonText: "确定",
  18895. showCancelButton: false,
  18896. closeOnClickModal: false,
  18897. type: "warning",
  18898. })
  18899. .then(() => {
  18900. let params = {
  18901. cid: this.id,
  18902. s: parseInt(this.courseType),
  18903. t: this.taskCount,
  18904. tool: this.toolindex,
  18905. wid: this.engWid,
  18906. c: this.userid,
  18907. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18908. };
  18909. this.ajax
  18910. .get(this.$store.state.api + "addEngC", params)
  18911. .then((res) => {
  18912. this.$message.success("提交成功");
  18913. this.engUpdateDialogVisible = false;
  18914. })
  18915. .catch((err) => {
  18916. console.error(err);
  18917. });
  18918. })
  18919. .catch(() => {});
  18920. },
  18921. selectEngC(id,z){
  18922. let params = {
  18923. workid: id,
  18924. };
  18925. this.ajax
  18926. .get(this.$store.state.api + "selectEngC", params)
  18927. .then((res) => {
  18928. if(res.data[0].length == 0){
  18929. this.newEnglishList.engTitle = z.engTitle;
  18930. this.newEnglishList.engText = z.engText;
  18931. }else{
  18932. var a = res.data[0];
  18933. if(this.userMes[0].type == 2){
  18934. var snum = 0;
  18935. for(var i = 0;i<a.length;i++){
  18936. if(this.userMes[0].userid == a[i].correct){
  18937. this.newEnglishList = JSON.parse(a[i].cWork);
  18938. snum = 1;
  18939. }
  18940. }
  18941. if(snum == 0){
  18942. this.newEnglishList = { engTitle:"",engText:"" };
  18943. this.newEnglishList.engTitle = z.engTitle;
  18944. this.newEnglishList.engText = z.engText;
  18945. }
  18946. }else if(this.userMes[0].type == 1){
  18947. var num = 0;
  18948. for(var w= 0;w<a.length;w++){
  18949. if(this.userMes[0].userid == a[w].correct){
  18950. num = 1;
  18951. }
  18952. }
  18953. if(num == 0){
  18954. this.isNoUserid = true;
  18955. var c = JSON.parse(JSON.stringify(z));
  18956. this.oldEnglishJson1 = c;
  18957. }else{
  18958. this.isNoUserid = false;
  18959. }
  18960. var b = a.sort((item, index) => {
  18961. if (item.correct === this.userMes[0].userid) {
  18962. return -1; // 将a移到前面
  18963. } else if (index.correct === this.userMes[0].userid) {
  18964. return 1; // 将b移到前面
  18965. } else {
  18966. return 0; // 保持默认顺序
  18967. }
  18968. });
  18969. this.newEnglishList1 = b;
  18970. }
  18971. }
  18972. this.greyType = false;
  18973. this.engUpdateDialogVisible = true;
  18974. this.$forceUpdate();
  18975. setTimeout(() => {
  18976. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18977. if(this.newEnglishList1.length > 0){
  18978. if(this.isNoUserid == true){
  18979. this.engListLength = this.newEnglishList1.length + 1;
  18980. this.newEngIndex = -1;
  18981. }else{
  18982. this.engListLength = this.newEnglishList1.length;
  18983. this.newEngIndex = 0;
  18984. }
  18985. }
  18986. }, 500);
  18987. })
  18988. .catch((err) => {
  18989. console.error(err);
  18990. });
  18991. },
  18992. getPick() {
  18993. let params = {
  18994. cid: this.id,
  18995. };
  18996. this.ajax
  18997. .get(this.$store.state.api + "getPick", params)
  18998. .then((res) => {
  18999. let array = [];
  19000. for (var i = 0; i < res.data[0].length; i++) {
  19001. array.push(res.data[0][i].userid);
  19002. }
  19003. this.isPickStudent = array;
  19004. if (array.indexOf(this.userid) !== -1) {
  19005. this.$confirm("你被老师选到啦!", "提示", {
  19006. confirmButtonText: "确定",
  19007. showCancelButton: false,
  19008. closeOnClickModal: false,
  19009. type: "warning",
  19010. })
  19011. .then(() => {
  19012. let pa = [
  19013. {
  19014. uid: this.userid,
  19015. cid: this.id,
  19016. },
  19017. ];
  19018. this.ajax
  19019. .post(this.$store.state.api + "deletePick", pa)
  19020. .then((res) => {
  19021. this.getPick();
  19022. })
  19023. .catch((err) => {
  19024. this.$message.error("网络不佳");
  19025. console.error(err);
  19026. });
  19027. })
  19028. .catch(() => {});
  19029. }
  19030. })
  19031. .catch((err) => {
  19032. this.$message.error("网络不佳");
  19033. console.error(err);
  19034. });
  19035. },
  19036. foldEva() {
  19037. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19038. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19039. } else {
  19040. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19041. setTimeout(() => {
  19042. this.checkEva();
  19043. setTimeout(() => {
  19044. this.checkEva();
  19045. }, 500);
  19046. }, 0);
  19047. }
  19048. this.$forceUpdate();
  19049. },
  19050. panToolHeight(tool) {
  19051. var _tool = document.querySelectorAll('#'+tool)[0]
  19052. var _toolA = _tool ? _tool.offsetHeight : 0
  19053. var _toolC = 0
  19054. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19055. let boolean2 = (_toolA > _toolC) ? true : false
  19056. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19057. this.$forceUpdate();
  19058. },
  19059. },
  19060. directives: {
  19061. // 使用局部注册指令的方式
  19062. resize: {
  19063. // 指令的名称
  19064. bind(el, binding) {
  19065. // el为绑定的元素,binding为绑定给指令的对象
  19066. let width = "",
  19067. height = "";
  19068. function isReize() {
  19069. const style = document.defaultView.getComputedStyle(el);
  19070. if (width !== style.width || height !== style.height) {
  19071. binding.value(); // 关键
  19072. }
  19073. width = style.width;
  19074. height = style.height;
  19075. }
  19076. el.__vueSetInterval__ = setInterval(isReize, 300);
  19077. },
  19078. unbind(el) {
  19079. clearInterval(el.__vueSetInterval__);
  19080. },
  19081. },
  19082. autoHeight: {
  19083. update(el, binding) {
  19084. const { value } = binding
  19085. if (value && typeof value === 'number') {
  19086. el.style.height = `${value}px`
  19087. } else {
  19088. el.style.height = 'auto'
  19089. }
  19090. },
  19091. componentUpdated(el) {
  19092. el.style.height = `${el.scrollHeight + 5}px`
  19093. },
  19094. },
  19095. },
  19096. beforeDestroy() {
  19097. window.onresize = null;
  19098. clearInterval(this.timer);
  19099. this.timer = null;
  19100. clearInterval(this.opertimer);
  19101. this.opertimer = null;
  19102. },
  19103. computed: {
  19104. getHeight(){
  19105. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19106. },
  19107. contentConvent() {
  19108. return function (c) {
  19109. return c
  19110. ? c
  19111. .replaceAll(/\r\n/g, "<br/>")
  19112. .replaceAll(/\n/g, "<br/>")
  19113. .replaceAll(/\s/g, " &nbsp")
  19114. : "";
  19115. };
  19116. },
  19117. checkUpload() {
  19118. return function () {
  19119. var studentK = [];
  19120. if (this.plworkFile.length > 0) {
  19121. for (var z = 0; z < this.plworkFile.length; z++) {
  19122. studentK.push(this.plworkFile[z].username);
  19123. }
  19124. studentK = studentK.join(",");
  19125. }
  19126. var a = this.uploadStudentJuri.filter((el) => {
  19127. return studentK.indexOf(el.userid) == -1;
  19128. });
  19129. return a;
  19130. };
  19131. },
  19132. getSName() {
  19133. return function (name) {
  19134. var check = name;
  19135. this.uploadStudentJuri.forEach((el) => {
  19136. if (el.userid == check) {
  19137. check = el.name ? el.name : el.username;
  19138. }
  19139. });
  19140. return check;
  19141. };
  19142. },
  19143. getImgList() {
  19144. return function (val) {
  19145. let srcList = []; // 定义一个数组用来接收后面的img地址
  19146. val.replace(
  19147. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19148. function (match, capture) {
  19149. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19150. srcList.push(capture);
  19151. }
  19152. );
  19153. return srcList;
  19154. };
  19155. },
  19156. retrnToolHeight(){
  19157. return function (tool) {
  19158. var _tool = document.querySelectorAll('#'+tool)[0]
  19159. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19160. };
  19161. }
  19162. },
  19163. mounted() {
  19164. document.body.addEventListener("click", (e) => {
  19165. if (this.isUpdateToolDetail1) {
  19166. this.updateToolDetail(this.toolDetailIndex);
  19167. }
  19168. });
  19169. if (this.screenType == 2) {
  19170. window.parent.postMessage({ allScreen: 4 }, "*");
  19171. } else if (this.screenType == 3) {
  19172. window.parent.postMessage({ allScreen: 5 }, "*");
  19173. } else if (this.screenType == 1) {
  19174. window.parent.postMessage({ allScreen: 6 }, "*");
  19175. }
  19176. this.setOperationTime();
  19177. this.selectEva();
  19178. this.getCourseDetail();
  19179. this.selectCount();
  19180. this.getHomeWork();
  19181. this.selectUser();
  19182. this.contentDialog = true;
  19183. this.setContent2(true);
  19184. if (this.tType == 4) {
  19185. this.pzDialog = true;
  19186. this.selectPz();
  19187. }
  19188. document.scrollingElement.scrollTop = 0;
  19189. window.addEventListener("resize", () => {
  19190. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19191. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19192. if (this.showType == 2 || this.showType == 3) {
  19193. document.getElementsByClassName("navBox")[0].style.height =
  19194. a - 40 + 46 + "px";
  19195. } else {
  19196. document.getElementsByClassName("navBox")[0].style.height =
  19197. a - 40 + "px";
  19198. }
  19199. });
  19200. let _this = this;
  19201. setTimeout(() => {
  19202. // _this.vedioTime = [];
  19203. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19204. // _this.vedioTime[i] = document.getElementsByClassName(
  19205. // "vjs-duration-display"
  19206. // )[i].textContent;
  19207. // }
  19208. }, 1000);
  19209. },
  19210. };
  19211. </script>
  19212. <style scoped>
  19213. @media screen and (max-width: 1280px) {
  19214. /* .courseIndex > div:first-child(2) {
  19215. width: 15% !important;
  19216. } */
  19217. /* .navText {
  19218. width: 120px !important;
  19219. } */
  19220. .evaCss {
  19221. flex-direction: column !important;
  19222. align-items: center !important;
  19223. }
  19224. .elist_input {
  19225. width: 90% !important;
  19226. }
  19227. .dialog_diy1 >>> .el-dialog {
  19228. width: 100% !important;
  19229. }
  19230. .rightWidthCss {
  19231. width: 100% !important;
  19232. }
  19233. .dialog_diy3 >>> .el-dialog {
  19234. width: 100% !important;
  19235. }
  19236. .addToolCss {
  19237. right: 0 !important;
  19238. width: 100% !important;
  19239. min-width: unset !important;
  19240. }
  19241. }
  19242. .evaCssMax {
  19243. flex-direction: column !important;
  19244. align-items: center !important;
  19245. }
  19246. .dialog_diy >>> .el-dialog {
  19247. margin-top: 10vh !important;
  19248. }
  19249. .body_student {
  19250. width: 77%;
  19251. height: 100%;
  19252. position: absolute;
  19253. left: 22%;
  19254. top: 0;
  19255. }
  19256. .student_head {
  19257. width: 100%;
  19258. margin: 20px auto 0;
  19259. padding-bottom: 20px;
  19260. display: flex;
  19261. flex-direction: column;
  19262. flex-wrap: nowrap;
  19263. align-items: flex-start;
  19264. justify-content: flex-start;
  19265. }
  19266. .pb_left {
  19267. width: 20%;
  19268. margin-right: 10px;
  19269. background: rgb(255, 255, 255);
  19270. position: fixed;
  19271. height: calc(100% - 40px);
  19272. border-radius: 20px;
  19273. padding-bottom: 15px;
  19274. box-sizing: border-box;
  19275. }
  19276. .wheel > img,
  19277. .project > img,
  19278. .star > img,
  19279. .evaluate > img,
  19280. .up_photo > img,
  19281. .chapter_add > img,
  19282. .deleteWord > img,
  19283. .question > img,
  19284. .homework > img {
  19285. width: 100%;
  19286. height: 100%;
  19287. }
  19288. .upCover > img {
  19289. width: 131px;
  19290. height: 69px;
  19291. object-fit: cover;
  19292. }
  19293. .upCover {
  19294. width: calc(100% / 3.5);
  19295. position: relative;
  19296. margin: 0 15px 10px 0;
  19297. display: flex;
  19298. flex-direction: column;
  19299. flex-wrap: nowrap;
  19300. justify-content: center;
  19301. align-content: center;
  19302. align-items: center;
  19303. height: fit-content;
  19304. }
  19305. .upCover2 {
  19306. width: 100%;
  19307. position: relative;
  19308. margin: 0 15px 10px 0;
  19309. display: flex;
  19310. flex-direction: column;
  19311. flex-wrap: nowrap;
  19312. justify-content: center;
  19313. align-content: center;
  19314. align-items: center;
  19315. }
  19316. .upCover2 > img {
  19317. width: 100%;
  19318. height: 90px;
  19319. object-fit: contain;
  19320. }
  19321. .chapter_add {
  19322. width: 120px;
  19323. position: relative;
  19324. text-align: center;
  19325. }
  19326. .isAddThings {
  19327. margin-top: 20px;
  19328. position: relative;
  19329. text-align: center;
  19330. background: #f7f8fa;
  19331. height: 90px;
  19332. width: 90px;
  19333. display: flex;
  19334. flex-direction: column;
  19335. justify-content: center;
  19336. }
  19337. .deleteWord {
  19338. width: 22px;
  19339. height: 22px;
  19340. position: absolute;
  19341. right: -5px;
  19342. top: -5px;
  19343. cursor: pointer;
  19344. }
  19345. .box_course {
  19346. /* width: 60%; */
  19347. width: calc(100% - 300px);
  19348. }
  19349. .wheel {
  19350. width: 100%;
  19351. /* height: 100%; */
  19352. height: 650px;
  19353. }
  19354. .right_box {
  19355. display: flex;
  19356. flex-direction: column;
  19357. margin-left: 30px;
  19358. justify-content: space-around;
  19359. }
  19360. .right_box_title {
  19361. font-size: 23px;
  19362. }
  19363. .people {
  19364. display: flex;
  19365. }
  19366. .student_body {
  19367. width: 100%;
  19368. margin: 0 auto;
  19369. margin-top: 10px;
  19370. padding: 0 0 20px;
  19371. }
  19372. .study_top {
  19373. margin-top: 100px;
  19374. width: 100%;
  19375. height: auto;
  19376. padding-bottom: 20px;
  19377. }
  19378. .study_top .checkbox {
  19379. display: flex;
  19380. align-items: center;
  19381. padding: 15px 0 15px 30px;
  19382. flex: 0 0 auto;
  19383. font-weight: bold;
  19384. border-bottom: 1px solid #eee;
  19385. }
  19386. .study_top .check {
  19387. padding-bottom: 5px;
  19388. text-align: center;
  19389. cursor: pointer;
  19390. height: 30px;
  19391. box-sizing: border-box;
  19392. display: flex;
  19393. }
  19394. .study_top .checked {
  19395. border-bottom: 4px solid #3fc6a0;
  19396. padding-bottom: 5px;
  19397. color: #3fc6a0;
  19398. display: flex;
  19399. height: 35px;
  19400. }
  19401. .study_top .checked > div,
  19402. .study_top .check > div {
  19403. margin-right: 5px;
  19404. }
  19405. .videoTop {
  19406. display: flex;
  19407. flex-direction: row;
  19408. justify-content: space-between;
  19409. background: #fff;
  19410. align-items: center;
  19411. width: 95%;
  19412. padding: 20px;
  19413. }
  19414. .filebox {
  19415. display: flex;
  19416. flex-wrap: wrap;
  19417. flex-direction: column;
  19418. padding: 0 0 5px;
  19419. position: relative;
  19420. }
  19421. .filebox:before {
  19422. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19423. position: absolute;
  19424. top: 20px;
  19425. left: 13px;
  19426. border-left: 2px dotted #cad1dc;
  19427. height: calc(100% - 15px);
  19428. }
  19429. .toolHeng2 > div:last-child::before {
  19430. height: calc(100% - 43px);
  19431. }
  19432. .filebox .tooldetail {
  19433. width: calc(100% - 280px);
  19434. margin: 0px 12px;
  19435. padding: 12px;
  19436. line-height: 30px;
  19437. word-break: break-word;
  19438. background: #ffffff;
  19439. border-radius: 8px 8px 8px 8px;
  19440. opacity: 1;
  19441. border: 1px solid #cad1dc;
  19442. overflow:hidden;
  19443. box-sizing:border-box;
  19444. }
  19445. .file {
  19446. display: flex;
  19447. flex-direction: column;
  19448. align-items: center;
  19449. justify-content: center;
  19450. cursor: pointer;
  19451. width: 200px;
  19452. }
  19453. .file div {
  19454. margin-top: 10px;
  19455. width: 150px;
  19456. text-align: center;
  19457. overflow: hidden;
  19458. white-space: nowrap;
  19459. text-overflow: ellipsis;
  19460. }
  19461. .media {
  19462. display: flex;
  19463. flex-direction: column;
  19464. align-items: center;
  19465. justify-content: center;
  19466. margin: 0 20px 20px 0;
  19467. cursor: pointer;
  19468. margin: 12px 0 5px 15px;
  19469. overflow: hidden;
  19470. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19471. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19472. box-sizing: border-box;
  19473. }
  19474. .media img {
  19475. height: 90px;
  19476. width: 160px;
  19477. object-fit: cover;
  19478. }
  19479. .media .title {
  19480. padding: 5px;
  19481. text-align: left;
  19482. width: 100%;
  19483. box-sizing: border-box;
  19484. }
  19485. .media .btn {
  19486. width: 100%;
  19487. height: 35px;
  19488. line-height: 35px;
  19489. color: #fff;
  19490. background: #606060;
  19491. text-align: center;
  19492. overflow: hidden;
  19493. white-space: nowrap;
  19494. text-overflow: ellipsis;
  19495. }
  19496. .detail_content_top {
  19497. width: 100%;
  19498. padding: 25px 0 25px 0;
  19499. }
  19500. .detail_title {
  19501. text-align: center;
  19502. font-size: 24px;
  19503. }
  19504. .detail_time {
  19505. font-size: 13px;
  19506. padding: 15px 0 0 40px;
  19507. }
  19508. .detail_content {
  19509. line-height: 2pc;
  19510. width: 90%;
  19511. margin: 0 auto;
  19512. padding-top: 30px;
  19513. text-indent: 30px;
  19514. overflow: auto;
  19515. height: 200px;
  19516. }
  19517. .score_box >>> .el-rate {
  19518. margin-left: 10px;
  19519. }
  19520. .dialog_change >>> .el-dialog {
  19521. border-radius: 5px;
  19522. }
  19523. .dialog_change >>> .el-dialog__header {
  19524. background: #f2f2f2;
  19525. text-align: center;
  19526. }
  19527. .dialog_change >>> .el-dialog__title {
  19528. line-height: 5px;
  19529. }
  19530. .dialog_change >>> .el-dialog__body {
  19531. background: #fff;
  19532. padding: 10px 20px;
  19533. }
  19534. .score_box {
  19535. display: flex;
  19536. align-items: center;
  19537. margin-bottom: 18px;
  19538. margin-top: 20px;
  19539. }
  19540. .up_photo {
  19541. width: 120px;
  19542. cursor: pointer;
  19543. margin-top: 10px;
  19544. }
  19545. .up_photo2 {
  19546. width: 180px;
  19547. box-sizing: border-box;
  19548. min-width: 180px;
  19549. height: 180px;
  19550. max-height: 180px;
  19551. min-height: 180px;
  19552. cursor: pointer;
  19553. display: flex;
  19554. flex-direction: column;
  19555. align-items: center;
  19556. justify-content: center;
  19557. background: rgb(242, 246, 255);
  19558. /* padding: 25px; */
  19559. margin-bottom: 10px;
  19560. }
  19561. .up_photo2 img {
  19562. width: 50%;
  19563. height: auto;
  19564. }
  19565. .up_photo2 span {
  19566. color: #898989;
  19567. }
  19568. .plworkBox {
  19569. display: flex;
  19570. align-items: center;
  19571. margin-top: 10px;
  19572. flex-wrap: wrap;
  19573. }
  19574. .upload_send {
  19575. margin: 30px auto 30px;
  19576. width: 60%;
  19577. background: #3681fc;
  19578. text-align: center;
  19579. height: 35px;
  19580. line-height: 35px;
  19581. color: #fff;
  19582. border-radius: 5px;
  19583. cursor: pointer;
  19584. }
  19585. .marginT {
  19586. margin-top: 20px;
  19587. }
  19588. .cd_content_steps {
  19589. display: flex;
  19590. width: 90%;
  19591. justify-content: space-around;
  19592. border-top: 1px solid #eeeeee;
  19593. }
  19594. .cd_steps_box {
  19595. display: flex;
  19596. justify-content: center;
  19597. align-items: center;
  19598. flex-direction: column;
  19599. cursor: pointer;
  19600. }
  19601. .first {
  19602. display: flex;
  19603. align-items: center;
  19604. margin: 15px 0 20px 0;
  19605. font-size: 20px;
  19606. }
  19607. .first > div:nth-child(2) {
  19608. font-size: 16px !important;
  19609. padding-left: 10px;
  19610. line-height: 26px;
  19611. box-sizing: border-box;
  19612. }
  19613. .blue_box_one {
  19614. text-align: center;
  19615. color: #fff;
  19616. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19617. border-radius: 7px;
  19618. margin: 10px;
  19619. cursor: pointer;
  19620. width: 95%;
  19621. height: 45px;
  19622. display: flex;
  19623. flex-direction: row;
  19624. justify-content: flex-start;
  19625. align-items: center;
  19626. }
  19627. .blue_box_one > div:nth-child(1) {
  19628. line-height: 30px;
  19629. margin: 0 5px 0 10px;
  19630. width: 30%;
  19631. min-width: 70px;
  19632. border-radius: 4px;
  19633. }
  19634. .blue_box_one > div:nth-child(2) {
  19635. white-space: nowrap;
  19636. text-overflow: ellipsis;
  19637. overflow: hidden;
  19638. word-break: break-all;
  19639. width: 70%;
  19640. text-align: left;
  19641. margin-right: 10px;
  19642. max-width: calc(100% - 85px);
  19643. }
  19644. .blue_box_one > div:nth-child(2):hover {
  19645. overflow: hidden;
  19646. text-overflow: ellipsis;
  19647. white-space: nowrap;
  19648. cursor: pointer;
  19649. }
  19650. .upFile {
  19651. margin: 0 auto;
  19652. width: 120px;
  19653. background: #3681fc;
  19654. color: #fff;
  19655. height: 30px;
  19656. text-align: center;
  19657. line-height: 30px;
  19658. border-radius: 5px;
  19659. font-size: 14px;
  19660. cursor: pointer;
  19661. }
  19662. .courseTitle {
  19663. width: 85%;
  19664. margin: 10px auto 26px auto;
  19665. display: flex;
  19666. flex-direction: row;
  19667. align-items: center;
  19668. justify-content: space-between;
  19669. text-align: center;
  19670. }
  19671. .courseTitle .ctitle {
  19672. font-size: 20px;
  19673. font-weight: bold;
  19674. color: #0e1e33;
  19675. white-space: nowrap;
  19676. overflow: hidden;
  19677. text-overflow: ellipsis;
  19678. }
  19679. .inviteBox {
  19680. font-size: 14px;
  19681. /* margin-top: 5px; */
  19682. color: #00000099;
  19683. text-align: center;
  19684. }
  19685. .courseTitle >>> .el-tooltip {
  19686. width: 100%;
  19687. white-space: nowrap;
  19688. overflow: hidden;
  19689. text-overflow: ellipsis;
  19690. word-break: break-word;
  19691. }
  19692. .ml {
  19693. margin-left: 20px;
  19694. color: #5b7dba;
  19695. border-left: 3px solid #5b7dba;
  19696. padding-left: 5px;
  19697. font-weight: bold;
  19698. }
  19699. .return {
  19700. width: 2rem;
  19701. height: 2rem;
  19702. cursor: pointer;
  19703. }
  19704. .return > img {
  19705. width: 100%;
  19706. height: 100%;
  19707. }
  19708. .returnBtn {
  19709. width: 86px;
  19710. height: 36px;
  19711. background: #3681fc;
  19712. border-radius: 4px;
  19713. color: #fff;
  19714. text-align: center;
  19715. line-height: 36px;
  19716. margin-right: 20px;
  19717. cursor: pointer;
  19718. font-size: 14px;
  19719. font-weight: 400;
  19720. display: flex;
  19721. flex-direction: row;
  19722. flex-wrap: nowrap;
  19723. align-items: center;
  19724. justify-content: center;
  19725. }
  19726. .reBtnIcon,
  19727. .commentIcon,
  19728. .vedioIcon,
  19729. .vedioIcon1 {
  19730. /* width: 36px; */
  19731. height: 36px;
  19732. border-radius: 4px;
  19733. position: relative;
  19734. /* background: #e0eafb; */
  19735. background: #0061ff;
  19736. cursor: pointer;
  19737. margin-right: 12px;
  19738. display: flex;
  19739. align-items: center;
  19740. padding: 0 10px;
  19741. box-sizing: border-box;
  19742. font-size: 14px;
  19743. color: #fff;
  19744. }
  19745. .reBtnIcon::before,
  19746. .commentIcon::before,
  19747. .vedioIcon::before,
  19748. .vedioIcon1::before {
  19749. content: "";
  19750. display: block;
  19751. background-size: 100% 100%;
  19752. background-repeat: no-repeat;
  19753. width: 20px;
  19754. height: 20px;
  19755. margin-right: 5px;
  19756. /* position: absolute; */
  19757. /* top: 8px;
  19758. left: 8px; */
  19759. }
  19760. .vedioIcon1 {
  19761. background: #f63564;
  19762. }
  19763. .reBtnIcon::before {
  19764. background-image: url("../../assets/icon/newIcons/refresh.png");
  19765. }
  19766. .commentIcon::before {
  19767. background-image: url("../../assets/icon/newIcons/comment.png");
  19768. }
  19769. .vedioIcon::before {
  19770. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19771. }
  19772. .vedioIcon1::before {
  19773. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19774. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19775. }
  19776. .tool {
  19777. display: flex;
  19778. flex-direction: column;
  19779. flex-wrap: nowrap;
  19780. width: 13%;
  19781. margin: 0 30px;
  19782. align-items: center;
  19783. position: relative;
  19784. padding: 10px 25px;
  19785. cursor: pointer;
  19786. }
  19787. .whiteBIcon {
  19788. width: 150px;
  19789. }
  19790. .whiteBIcon > img {
  19791. width: 100%;
  19792. height: 100%;
  19793. }
  19794. .mask {
  19795. background-color: rgba(0, 0, 0, 0);
  19796. position: fixed;
  19797. top: 0;
  19798. left: 0;
  19799. width: 100%;
  19800. height: 100%;
  19801. z-index: 20000;
  19802. display: flex;
  19803. align-items: center;
  19804. justify-content: center;
  19805. }
  19806. .progressBox {
  19807. width: 500px;
  19808. height: 180px;
  19809. background: #fff;
  19810. border-radius: 10px;
  19811. box-shadow: 0 0 6px 1px #bfbfbf;
  19812. display: flex;
  19813. align-items: center;
  19814. justify-content: center;
  19815. flex-direction: column;
  19816. position: relative;
  19817. color: #6c6c6c;
  19818. }
  19819. .progressBox >>> .el-progress-bar__outer {
  19820. background-color: #d1dfff !important;
  19821. }
  19822. .progressBox .lbox {
  19823. height: 50px;
  19824. font-size: 19px;
  19825. display: flex;
  19826. align-items: center;
  19827. color: #747474;
  19828. }
  19829. .progressBox .lbox img {
  19830. width: 40px;
  19831. margin-right: 20px;
  19832. }
  19833. .closeCss {
  19834. position: absolute;
  19835. top: 8px;
  19836. right: 8px;
  19837. cursor: pointer;
  19838. width: 20px;
  19839. height: 20px;
  19840. }
  19841. .closeCss > img {
  19842. width: 100%;
  19843. height: 100%;
  19844. }
  19845. .uploadVedio {
  19846. display: flex;
  19847. flex-direction: column;
  19848. flex-wrap: nowrap;
  19849. justify-content: center;
  19850. align-items: center;
  19851. margin: 0 15px 10px 0;
  19852. }
  19853. .uploadVedio > img {
  19854. width: 30px;
  19855. height: 30px;
  19856. }
  19857. .uploadVedio > span {
  19858. white-space: nowrap;
  19859. overflow: hidden;
  19860. text-overflow: ellipsis;
  19861. width: 75px;
  19862. margin-top: 7px;
  19863. }
  19864. .picName {
  19865. white-space: nowrap;
  19866. overflow: hidden;
  19867. text-overflow: ellipsis;
  19868. width: 75px;
  19869. margin-top: 7px;
  19870. }
  19871. .new_top {
  19872. display: flex;
  19873. background: #fff;
  19874. flex-direction: row;
  19875. justify-content: flex-start;
  19876. align-items: center;
  19877. height: 60px;
  19878. position: fixed;
  19879. top: 20px;
  19880. left: 22%;
  19881. width: 77%;
  19882. z-index: 999;
  19883. border-radius: 12px 12px 0 0;
  19884. border-bottom: 1px solid #cad1dc;
  19885. padding: 10px 0;
  19886. }
  19887. .new_topFixed {
  19888. width: 100%;
  19889. height: 40px;
  19890. position: fixed;
  19891. top: 0px;
  19892. display: block;
  19893. background: #f2f2f2;
  19894. z-index: 998;
  19895. }
  19896. .before {
  19897. position: absolute;
  19898. background: #c3dad4;
  19899. width: 6px;
  19900. height: 100%;
  19901. }
  19902. .courseIndex {
  19903. display: flex;
  19904. flex-direction: row;
  19905. align-items: center;
  19906. width: calc(100% - 745px);
  19907. }
  19908. .courseIndex > div:nth-child(1) {
  19909. margin: 0 0 0 10px;
  19910. font-size: 20px;
  19911. min-width: 100px;
  19912. font-weight: bold;
  19913. border-left: 4px solid #3363b9;
  19914. height: 32px;
  19915. text-align: center;
  19916. line-height: 35px;
  19917. }
  19918. .courseIndex > div:nth-child(2) {
  19919. font-size: 20px;
  19920. /* width: 300px; */
  19921. max-width: calc(100% - 105px);
  19922. white-space: nowrap;
  19923. overflow: hidden;
  19924. text-overflow: ellipsis;
  19925. }
  19926. .courseIndex > div:nth-child(3) {
  19927. border-bottom: 1px solid #d7d7d7;
  19928. padding-bottom: 5px;
  19929. background: #3681fc;
  19930. width: 55px;
  19931. min-width: 55px;
  19932. border-radius: 5px;
  19933. color: #fff;
  19934. text-align: center;
  19935. height: 20px;
  19936. line-height: 26px;
  19937. font-size: 14px;
  19938. margin: 0 0 0 10px;
  19939. }
  19940. .course_text {
  19941. padding: 20px 0 0 15px;
  19942. text-indent: 30px;
  19943. width: 80%;
  19944. min-height: 20px;
  19945. }
  19946. .vedioList {
  19947. background: #f2f2f2;
  19948. border: 1px solid #ececec;
  19949. /* width: 38.8%; */
  19950. /* width: 300px; */
  19951. width: 100%;
  19952. height: 445px;
  19953. border-radius: 10px;
  19954. overflow: hidden;
  19955. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19956. }
  19957. .vedioNav {
  19958. margin: 10px 0 0 15px;
  19959. border-bottom: 1px solid #d7d7d7;
  19960. padding-bottom: 5px;
  19961. background: #3681fc;
  19962. width: 55px;
  19963. min-width: 55px;
  19964. border-radius: 5px;
  19965. color: #fff;
  19966. text-align: center;
  19967. height: 20px;
  19968. line-height: 26px;
  19969. font-size: 14px;
  19970. }
  19971. .queTop {
  19972. display: flex;
  19973. padding: 20px 0 20px 30px;
  19974. width: 100%;
  19975. flex-direction: row;
  19976. justify-content: flex-start;
  19977. align-items: center;
  19978. box-sizing: border-box;
  19979. }
  19980. .queTopTitle {
  19981. display: flex;
  19982. flex-direction: row;
  19983. flex-wrap: nowrap;
  19984. align-items: center;
  19985. font-weight: bold;
  19986. font-size: 20px;
  19987. color: rgb(14, 30, 51);
  19988. }
  19989. .queTopTitle::before {
  19990. content: "";
  19991. width: 2px;
  19992. height: 22px;
  19993. background: #3681fc;
  19994. border-radius: 3px;
  19995. display: block;
  19996. margin: 2px 6px 0 0;
  19997. }
  19998. .queTopRight {
  19999. display: flex;
  20000. flex-direction: row;
  20001. flex-wrap: nowrap;
  20002. align-items: center;
  20003. }
  20004. .queTopClose {
  20005. margin-right: 20px;
  20006. cursor: pointer;
  20007. position: relative;
  20008. display: flex;
  20009. }
  20010. .closeImg,
  20011. .openImg {
  20012. width: 25px;
  20013. height: 25px;
  20014. position: absolute;
  20015. left: -20px;
  20016. top: -1px;
  20017. }
  20018. .closeImg > img,
  20019. .openImg > img {
  20020. width: 100%;
  20021. height: 100%;
  20022. }
  20023. .question {
  20024. width: 40px;
  20025. margin-right: 10px;
  20026. margin-top: 7px;
  20027. }
  20028. .queTitle {
  20029. margin-left: 5px;
  20030. font-size: 25px;
  20031. display: flex;
  20032. align-items: center;
  20033. }
  20034. .addEditor {
  20035. width: 100px;
  20036. height: 30px;
  20037. background: #42cda6;
  20038. color: #fff;
  20039. border-radius: 5px;
  20040. text-align: center;
  20041. line-height: 30px;
  20042. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20043. cursor: pointer;
  20044. }
  20045. /* .vedioName {
  20046. cursor: pointer;
  20047. margin: 0px 0px 10px 5px;
  20048. white-space: nowrap;
  20049. overflow: hidden;
  20050. text-overflow: ellipsis;
  20051. width: 100%;
  20052. } */
  20053. .vedioTime {
  20054. width: 35px;
  20055. position: absolute;
  20056. color: #fff;
  20057. bottom: 0px;
  20058. right: 0px;
  20059. text-align: center;
  20060. background: #46411f;
  20061. height: 20px;
  20062. font-size: 14px;
  20063. line-height: 20px;
  20064. }
  20065. .homework {
  20066. width: 200px;
  20067. display: flex;
  20068. flex-direction: column;
  20069. flex-wrap: nowrap;
  20070. align-items: center;
  20071. cursor: pointer;
  20072. }
  20073. .homebox {
  20074. display: flex;
  20075. flex-wrap: wrap;
  20076. flex-direction: row;
  20077. justify-content: flex-start;
  20078. align-items: center;
  20079. padding: 15px 0;
  20080. }
  20081. .isChooseActive {
  20082. color: #3681fc !important;
  20083. font-weight: bold !important;
  20084. }
  20085. .chooseWho {
  20086. display: flex;
  20087. width: 100%;
  20088. flex-direction: row;
  20089. flex-wrap: nowrap;
  20090. justify-content: flex-start;
  20091. padding-bottom: 10px;
  20092. }
  20093. .chooseWho > div {
  20094. cursor: pointer;
  20095. padding-bottom: 10px;
  20096. margin: 0 30px 0 0;
  20097. font-weight: 400;
  20098. color: #0e1e33;
  20099. }
  20100. .addPoint > div > img {
  20101. cursor: pointer;
  20102. width: 85px;
  20103. border-radius: 15px;
  20104. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20105. }
  20106. .addPoint > div {
  20107. display: flex;
  20108. flex-direction: column;
  20109. flex-wrap: nowrap;
  20110. align-items: center;
  20111. }
  20112. .isBorder > div {
  20113. margin: 0 0 10px 0;
  20114. align-items: flex-start !important;
  20115. }
  20116. .noiframeBox {
  20117. display: flex;
  20118. flex-wrap: wrap;
  20119. }
  20120. .iframeBox iframe {
  20121. width: 100%;
  20122. height: 800px;
  20123. border: none;
  20124. margin-bottom: 20px;
  20125. border: 1px solid #ccc;
  20126. }
  20127. .upload_toolBtn {
  20128. background: #3681fc;
  20129. color: #fff;
  20130. width: 110px;
  20131. text-align: center;
  20132. height: 35px;
  20133. line-height: 35px;
  20134. font-size: 14px;
  20135. border-radius: 5px;
  20136. cursor: pointer;
  20137. position: absolute;
  20138. right: 10px;
  20139. bottom: 0;
  20140. }
  20141. .binfo_input,
  20142. .pj {
  20143. font: inherit;
  20144. color: currentColor;
  20145. width: 100%;
  20146. margin: 0;
  20147. padding: 15px 14px;
  20148. display: block;
  20149. min-width: 0;
  20150. outline: none;
  20151. box-sizing: content-box;
  20152. background: none;
  20153. -webkit-tap-highlight-color: transparent;
  20154. border: 1px solid rgba(0, 0, 0, 0.23);
  20155. border-radius: 4px;
  20156. box-sizing: border-box;
  20157. resize: none;
  20158. }
  20159. .binfo_input:focus-visible {
  20160. border: 1px solid rgba(61, 103, 188);
  20161. }
  20162. .dialog_diy >>> .el-dialog__header,
  20163. .dialog_diy1 >>> .el-dialog__header {
  20164. background: #454545 !important;
  20165. padding: 15px 20px;
  20166. }
  20167. .dialog_diy >>> .el-dialog__title,
  20168. .dialog_diy1 >>> .el-dialog__title {
  20169. color: #fff;
  20170. }
  20171. .dialog_diy >>> .el-dialog__headerbtn,
  20172. .dialog_diy1 >>> .el-dialog__headerbtn {
  20173. top: 19px;
  20174. }
  20175. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20176. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20177. color: #fff;
  20178. }
  20179. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20180. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20181. color: #fff;
  20182. }
  20183. .dialog_diy1 >>> .el-dialog__body {
  20184. padding: 0;
  20185. }
  20186. .dialog_diy >>> .el-dialog__body,
  20187. .dialog_diy >>> .el-dialog__footer,
  20188. .dialog_diy1 >>> .el-dialog__footer {
  20189. background: #fafafa;
  20190. }
  20191. .a_addBox {
  20192. padding: 0 0 0 15px;
  20193. }
  20194. .a_add_box {
  20195. padding: 10px;
  20196. background: #fff;
  20197. margin-bottom: 10px;
  20198. border-radius: 5px;
  20199. box-shadow: 0 0 5px 0 #d5d5d5;
  20200. }
  20201. .a_add_head {
  20202. display: flex;
  20203. align-items: flex-start;
  20204. /* justify-content: space-between; */
  20205. flex-direction: column;
  20206. /* flex-direction: row; */
  20207. margin: 10px 0 20px 0;
  20208. font-size: 18px;
  20209. width: 100%;
  20210. }
  20211. .askIndex {
  20212. background: #3681fc;
  20213. border-radius: 50%;
  20214. color: #fff;
  20215. width: 25px;
  20216. height: 25px;
  20217. min-width: 25px;
  20218. min-height: 25px;
  20219. text-align: center;
  20220. line-height: 25px;
  20221. margin-right: 5px;
  20222. }
  20223. .a_add_head .a_add_head_input {
  20224. width: 300px;
  20225. }
  20226. .a_add_head .a_add_head_div {
  20227. display: flex;
  20228. align-items: center;
  20229. justify-content: space-between;
  20230. }
  20231. .a_add_body {
  20232. display: flex;
  20233. align-items: center;
  20234. }
  20235. .a_add_input {
  20236. display: flex;
  20237. align-items: center;
  20238. flex-wrap: wrap;
  20239. width: 100%;
  20240. }
  20241. .a_add_input >>> .el-radio-group,
  20242. .a_add_input >>> .el-checkbox-group {
  20243. width: 100%;
  20244. }
  20245. .a_add_input >>> .el-radio,
  20246. .a_add_input >>> .el-checkbox {
  20247. display: flex;
  20248. flex-direction: row;
  20249. flex-wrap: nowrap;
  20250. align-items: center;
  20251. padding: 15px 0;
  20252. }
  20253. .a_add_input >>> .el-radio:not(:last-child),
  20254. .a_add_input >>> .el-checkbox:not(:last-child) {
  20255. width: 100%;
  20256. border-bottom: 1px solid #efefef;
  20257. }
  20258. .redioStyle >>> .el-radio__label {
  20259. font-size: 18px;
  20260. }
  20261. .redioStyle >>> .el-radio__label > span,
  20262. .redioStyle >>> .el-checkbox__label > span {
  20263. word-break: break-all;
  20264. white-space: normal;
  20265. }
  20266. .redioStyle >>> .el-checkbox__label {
  20267. font-size: 18px;
  20268. }
  20269. .toolHeng2 {
  20270. width: 100%;
  20271. padding-left: 37px;
  20272. box-sizing: border-box;
  20273. }
  20274. .workNav {
  20275. font-size: 20px;
  20276. font-weight: bold;
  20277. color: #0e1e33;
  20278. display: flex;
  20279. flex-direction: row;
  20280. flex-wrap: nowrap;
  20281. align-items: center;
  20282. padding: 15px 0 15px 0;
  20283. }
  20284. .workNav::before {
  20285. content: "";
  20286. width: 2px;
  20287. height: 22px;
  20288. background: #3681fc;
  20289. border-radius: 3px;
  20290. display: block;
  20291. margin: 2px 6px 0 0;
  20292. }
  20293. .toolHeng {
  20294. display: flex;
  20295. flex-direction: row;
  20296. flex-wrap: wrap;
  20297. justify-content: flex-start;
  20298. align-items: center;
  20299. width: 100%;
  20300. }
  20301. .toolHeng > div {
  20302. padding-left: 20px;
  20303. }
  20304. .isWidth {
  20305. width: 20%;
  20306. }
  20307. .textTitle {
  20308. display: flex;
  20309. flex-direction: row;
  20310. flex-wrap: nowrap;
  20311. align-items: center;
  20312. width: 95%;
  20313. }
  20314. .textTitle >>> .el-form-item__label {
  20315. font-size: 22px;
  20316. color: #918f8f;
  20317. width: 100px;
  20318. }
  20319. .textTitle >>> .el-form-item__content {
  20320. width: calc(100% - 100px);
  20321. }
  20322. .textCss >>> .el-dialog {
  20323. width: 800px !important;
  20324. height: 400px;
  20325. background: #fafafa;
  20326. }
  20327. .textCss >>> .el-dialog__body {
  20328. margin: 55px 8% 0 8%;
  20329. padding: 0 !important;
  20330. }
  20331. .textCss >>> .el-dialog__footer {
  20332. padding-top: 38px;
  20333. }
  20334. .toolsCss >>> .el-dialog__body {
  20335. padding: 20px;
  20336. }
  20337. .lineCss >>> .el-dialog__body {
  20338. display: flex;
  20339. flex-direction: row;
  20340. align-items: center;
  20341. justify-content: center;
  20342. }
  20343. .newNav {
  20344. display: flex;
  20345. flex-direction: row;
  20346. align-items: baseline;
  20347. justify-content: flex-start;
  20348. }
  20349. .navListItem {
  20350. width: calc(100% - 20px);
  20351. height: 50px;
  20352. margin: 0px auto 10px;
  20353. display: flex;
  20354. flex-direction: row;
  20355. flex-wrap: nowrap;
  20356. align-items: center;
  20357. justify-content: space-between;
  20358. background: #f0f4fa;
  20359. border-radius: 6px 6px 6px 6px;
  20360. }
  20361. .navText {
  20362. cursor: pointer;
  20363. white-space: nowrap;
  20364. overflow: hidden;
  20365. text-overflow: ellipsis;
  20366. width: 220px;
  20367. padding: 0 10px;
  20368. font-weight: 400;
  20369. color: #0e1e33;
  20370. }
  20371. .downIcon {
  20372. width: 20px;
  20373. min-width: 20px;
  20374. height: 20px;
  20375. margin-right: 15px;
  20376. cursor: pointer;
  20377. }
  20378. .downIcon > img {
  20379. width: 100%;
  20380. height: 100%;
  20381. }
  20382. .noVedio {
  20383. display: flex;
  20384. flex-direction: row;
  20385. justify-content: center;
  20386. align-content: center;
  20387. }
  20388. .noNavText {
  20389. cursor: pointer;
  20390. margin: 0px 0px 10px 5px;
  20391. width: 112px;
  20392. }
  20393. .listNoVedio {
  20394. margin: 0 0 0 30px;
  20395. width: 97%;
  20396. }
  20397. .video-player >>> .video-js {
  20398. height: 100%;
  20399. }
  20400. .hangVedioList {
  20401. width: 90% !important;
  20402. height: 150px !important;
  20403. margin: 20px 0 0 30px;
  20404. }
  20405. .hangVedio {
  20406. width: 100%;
  20407. height: 170px !important;
  20408. align-items: flex-start !important;
  20409. }
  20410. .hangHand {
  20411. height: 150px !important;
  20412. }
  20413. .twoChild {
  20414. width: 95%;
  20415. margin: 10px;
  20416. border-radius: 5px;
  20417. background: #f2f2f2;
  20418. display: flex;
  20419. flex-direction: column;
  20420. flex-wrap: nowrap;
  20421. justify-content: flex-start;
  20422. align-items: flex-start;
  20423. transition: all 0.5s;
  20424. overflow: hidden;
  20425. height: 0;
  20426. background: #e7f3ff;
  20427. }
  20428. .twoChild > div:nth-child(1) {
  20429. margin-top: 5px;
  20430. }
  20431. .navChild {
  20432. width: 100%;
  20433. cursor: pointer;
  20434. margin-bottom: 10px;
  20435. position: relative;
  20436. }
  20437. .navChild img {
  20438. position: absolute;
  20439. right: 11px;
  20440. width: 15px;
  20441. top: 50%;
  20442. transform: translateY(-50%);
  20443. }
  20444. .navActive,
  20445. .toolActive {
  20446. height: auto !important;
  20447. overflow: auto !important;
  20448. /* padding-bottom: 16px; */
  20449. }
  20450. .toolActive {
  20451. padding: 0;
  20452. }
  20453. .navTask {
  20454. display: flex;
  20455. flex-direction: row;
  20456. flex-wrap: nowrap;
  20457. align-items: center;
  20458. align-content: flex-start;
  20459. height: 40px;
  20460. justify-content: flex-start;
  20461. padding: 0 10px;
  20462. width: 100%;
  20463. box-sizing: border-box;
  20464. }
  20465. .navTaskname {
  20466. white-space: nowrap;
  20467. text-overflow: ellipsis;
  20468. overflow: hidden;
  20469. word-break: break-all;
  20470. padding-left: 5px;
  20471. }
  20472. .openTaskActive {
  20473. /* background-color: #e0eafb !important;
  20474. color: #0061ff; */
  20475. color:#fff;
  20476. background: rgb(55, 129, 252) !important;
  20477. }
  20478. .iframeName {
  20479. margin: 5px 0;
  20480. border-left: 4px solid #41c4a4;
  20481. padding-left: 4px;
  20482. }
  20483. .toolTitle {
  20484. margin: 0px 0px 20px;
  20485. font-size: 20px;
  20486. font-weight: 500;
  20487. border-left: 4px solid #41c4a4;
  20488. padding-left: 4px;
  20489. }
  20490. .cru_selectBox {
  20491. overflow: auto;
  20492. width: 95%;
  20493. margin: 17px auto 0;
  20494. height: calc(100% - 40px - 21px - 20px - 17px);
  20495. background: #fff;
  20496. border-radius: 8px;
  20497. }
  20498. .cru_selectBox::-webkit-scrollbar,
  20499. .study_top::-webkit-scrollbar,
  20500. .textContent::-webkit-scrollbar {
  20501. /*滚动条整体样式*/
  20502. width: 6px;
  20503. /*高宽分别对应横竖滚动条的尺寸*/
  20504. height: 6px;
  20505. }
  20506. /*定义滚动条轨道 内阴影+圆角*/
  20507. .cru_selectBox::-webkit-scrollbar-track,
  20508. .study_top::-webkit-scrollbar-track,
  20509. .textContent::-webkit-scrollbar {
  20510. border-radius: 10px;
  20511. background-color: #b8bdc9;
  20512. }
  20513. /*定义滑块 内阴影+圆角*/
  20514. .cru_selectBox::-webkit-scrollbar-thumb,
  20515. .study_top::-webkit-scrollbar-thumb,
  20516. .textContent::-webkit-scrollbar-thumb {
  20517. border-radius: 10px;
  20518. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20519. background-color: #2c5ab3;
  20520. }
  20521. .vedioBox {
  20522. border-radius: 0 0 20px 20px;
  20523. background: #fff;
  20524. overflow: auto;
  20525. }
  20526. .taskBox {
  20527. width: 98%;
  20528. background: #f0f4fa;
  20529. margin: 10px auto;
  20530. padding: 0 10px;
  20531. border-radius: 4px;
  20532. box-sizing: border-box;
  20533. }
  20534. .vedioTaskBox {
  20535. width: 100%;
  20536. display: flex;
  20537. flex-direction: row;
  20538. flex-wrap: nowrap;
  20539. align-items: flex-start;
  20540. position: relative;
  20541. }
  20542. .toolBox {
  20543. margin: 15px 0 0 25px;
  20544. display: flex;
  20545. position: relative;
  20546. padding: 18px 20px;
  20547. border-top-left-radius: 5px;
  20548. border-top-right-radius: 5px;
  20549. width: 90%;
  20550. }
  20551. .btnAll {
  20552. position: absolute;
  20553. right: 0;
  20554. display: flex;
  20555. flex-direction: row;
  20556. flex-wrap: nowrap;
  20557. align-items: center;
  20558. }
  20559. .btnLeft,
  20560. .btnRight {
  20561. display: flex;
  20562. flex-direction: row;
  20563. flex-wrap: nowrap;
  20564. align-items: center;
  20565. padding: 5px 0;
  20566. }
  20567. .btnLeft {
  20568. border-right: 1px solid #cad1dc;
  20569. }
  20570. .btnLeft > .custom-tooltip {
  20571. background: #3681fc;
  20572. color: #fff;
  20573. }
  20574. .last:hover {
  20575. background: #3383fa !important;
  20576. color: #fff;
  20577. border: 1px solid #3383fa !important;
  20578. }
  20579. .last,
  20580. .returnBtn1 {
  20581. width: 90px;
  20582. height: 36px;
  20583. background: #ffffff;
  20584. border-radius: 4px;
  20585. border: 1px solid #0061ff;
  20586. color: #0061ff;
  20587. cursor: pointer;
  20588. display: flex;
  20589. flex-direction: row;
  20590. flex-wrap: nowrap;
  20591. align-items: center;
  20592. justify-content: center;
  20593. margin-left: 12px;
  20594. }
  20595. .returnBtn1 {
  20596. background: #f0f4fa;
  20597. border-radius: 4px;
  20598. border: 1px solid #cad1dc;
  20599. margin: 0 12px;
  20600. }
  20601. .lastImg {
  20602. min-width: 15px;
  20603. width: 15px;
  20604. height: 15px;
  20605. }
  20606. .lastText {
  20607. padding: 0 5px 2px 5px;
  20608. box-sizing: border-box;
  20609. font-size: 14px;
  20610. }
  20611. .lastImg > img {
  20612. width: 100%;
  20613. height: 100%;
  20614. }
  20615. /* .vedioTimeBox {
  20616. display: flex;
  20617. flex-direction: row;
  20618. align-items: center;
  20619. flex-wrap: nowrap;
  20620. position: relative;
  20621. } */
  20622. .navBox {
  20623. background: #fff;
  20624. height: calc(100% - 40px);
  20625. overflow-y: auto;
  20626. overflow-x: hidden;
  20627. }
  20628. .worksBox {
  20629. margin: 0 0 10px 25px;
  20630. border-bottom: 1px solid #eeeeee;
  20631. padding: 18px 20px;
  20632. border-radius: 4px;
  20633. width: 90%;
  20634. }
  20635. .worksBTitle {
  20636. font-size: 20px;
  20637. padding-bottom: 15px;
  20638. border-bottom: 1px solid #eeeeee;
  20639. display: flex;
  20640. align-items: center;
  20641. }
  20642. .greenBox {
  20643. width: 5px;
  20644. height: 30px;
  20645. background: #63b6fa;
  20646. margin-right: 5px;
  20647. }
  20648. .worksDetailBox {
  20649. display: flex;
  20650. width: 100%;
  20651. flex-direction: row;
  20652. flex-wrap: wrap;
  20653. align-items: flex-end;
  20654. justify-content: flex-start;
  20655. padding: 15px 5px;
  20656. box-sizing: border-box;
  20657. }
  20658. .works {
  20659. display: flex;
  20660. flex-direction: column;
  20661. flex-wrap: nowrap;
  20662. align-items: flex-start;
  20663. justify-content: flex-start;
  20664. align-content: center;
  20665. max-width: 240px;
  20666. width: calc(100% / 3 - 10px);
  20667. height: auto;
  20668. margin-right: 10px;
  20669. margin-bottom: 10px;
  20670. overflow: hidden;
  20671. height: 140px;
  20672. box-shadow: 0 0 6px 1px #dfdada;
  20673. border-radius: 15px;
  20674. }
  20675. .workImg {
  20676. width: 100%;
  20677. /* height: calc(100% - 40px); */
  20678. height: 105px;
  20679. position: relative;
  20680. }
  20681. .workImg > img {
  20682. width: 100%;
  20683. height: 100%;
  20684. object-fit: contain;
  20685. cursor: pointer;
  20686. }
  20687. .worksName {
  20688. height: 40px;
  20689. line-height: 40px;
  20690. display: flex;
  20691. width: 100%;
  20692. flex-direction: row;
  20693. flex-wrap: nowrap;
  20694. justify-content: space-between;
  20695. align-items: center;
  20696. margin: 0 0 0 10px;
  20697. }
  20698. .worksName > div:nth-child(1) {
  20699. width: 110px;
  20700. white-space: nowrap;
  20701. overflow: hidden;
  20702. text-overflow: ellipsis;
  20703. }
  20704. .worksName > div:nth-child(2) {
  20705. color: #b7b4b5;
  20706. }
  20707. .noWorksS {
  20708. padding: 15px 0;
  20709. display: flex;
  20710. flex-direction: row;
  20711. flex-wrap: wrap;
  20712. align-items: center;
  20713. justify-content: flex-start;
  20714. }
  20715. .noWorksName,
  20716. .isWorksName,
  20717. .isWorksName2 {
  20718. background: #ddebf8;
  20719. color: #000;
  20720. width: 90px;
  20721. height: 25px;
  20722. text-align: center;
  20723. line-height: 25px;
  20724. border-radius: 4px;
  20725. margin: 10px 15px 10px 0;
  20726. white-space: nowrap;
  20727. overflow: hidden;
  20728. padding: 5px;
  20729. text-overflow: ellipsis;
  20730. cursor: pointer;
  20731. border: 1px solid #ddebf8;
  20732. }
  20733. .noWorksName {
  20734. background: #fff;
  20735. color: #0061ff;
  20736. border: 1px solid #0061ff;
  20737. }
  20738. .isWorksName2 {
  20739. width: 100px;
  20740. height: 40px;
  20741. line-height: 40px;
  20742. position: relative;
  20743. background: #dae6f9;
  20744. }
  20745. .isWorksName {
  20746. background: #e7ebf1 !important;
  20747. width: 100px;
  20748. height: 40px;
  20749. line-height: 40px;
  20750. position: relative;
  20751. color: #acb4bf;
  20752. border: 1px solid #cad1dc !important;
  20753. }
  20754. .isSelectName,
  20755. .noWorksName:hover {
  20756. background: #3383fa !important;
  20757. color: #fff !important;
  20758. border: 1px solid #3383fa !important;
  20759. }
  20760. .title {
  20761. background: #1e5cc9;
  20762. /* width: 98%; */
  20763. height: 45px;
  20764. color: #fff;
  20765. line-height: 45px;
  20766. padding-left: 20px;
  20767. box-sizing: border-box;
  20768. }
  20769. .textBox {
  20770. font-size: 20px;
  20771. width: 90%;
  20772. display: flex;
  20773. flex-direction: column;
  20774. align-items: center;
  20775. margin: 20px auto 0;
  20776. max-height: calc(100% - 75px);
  20777. overflow: auto;
  20778. }
  20779. .textContent {
  20780. font-size: 18px;
  20781. width: 95%;
  20782. max-width: 95%;
  20783. }
  20784. .answerBg {
  20785. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20786. background-size: 100% 100%;
  20787. width: 100%;
  20788. height: 100%;
  20789. color: #fff;
  20790. text-align: center;
  20791. display: flex;
  20792. flex-direction: column;
  20793. flex-wrap: nowrap;
  20794. align-items: center;
  20795. position: relative;
  20796. justify-content: center;
  20797. }
  20798. .answerBg > div:nth-child(1) {
  20799. /* font-size: 22px;
  20800. padding: 25px 0 10px; */
  20801. }
  20802. .answerContent {
  20803. width: 215px;
  20804. max-height: 60px;
  20805. word-break: break-all;
  20806. text-align: center;
  20807. /* white-space: nowrap; */
  20808. overflow: hidden;
  20809. text-overflow: ellipsis;
  20810. /* padding: 23px 0 0; */
  20811. -webkit-line-clamp: 3;
  20812. -webkit-box-orient: vertical;
  20813. display: -webkit-box;
  20814. font-size: 15px;
  20815. cursor: pointer;
  20816. }
  20817. .elist_input_box {
  20818. display: flex;
  20819. align-items: flex-start;
  20820. flex-wrap: nowrap;
  20821. padding: 10px 0 15px 30px;
  20822. flex-direction: column;
  20823. }
  20824. .elist_input {
  20825. /* width: 40%; */
  20826. width: 45%;
  20827. margin: 20px;
  20828. }
  20829. .elist_input .elist_input_box input {
  20830. font: inherit;
  20831. color: currentColor;
  20832. width: 200px;
  20833. padding: 8px 14px;
  20834. display: block;
  20835. min-width: 0;
  20836. outline: none;
  20837. border: 1px solid rgba(0, 0, 0, 0.23);
  20838. border-radius: 4px;
  20839. box-sizing: border-box;
  20840. background: #fff;
  20841. margin: 0 20px 0 0;
  20842. }
  20843. .elist_input .elist_input_box span {
  20844. height: 36px;
  20845. line-height: 36px;
  20846. color: rgb(82, 82, 82);
  20847. }
  20848. .elist_input .elist_input_box .remove {
  20849. height: 20px;
  20850. width: 20px;
  20851. background-size: 100% 100%;
  20852. background-position: unset;
  20853. margin-left: 5px;
  20854. }
  20855. .elist_input_box >>> .el-rate {
  20856. display: flex;
  20857. height: 36px;
  20858. align-items: center;
  20859. }
  20860. .elist_input_box .elist_inptu_text {
  20861. min-height: 50px;
  20862. /* width: 500px;
  20863. max-height: 150px; */
  20864. width: 100%;
  20865. line-height: 50px;
  20866. color: rgb(82, 82, 82);
  20867. overflow: auto;
  20868. text-indent: 5px;
  20869. background: #f7f6f9;
  20870. border-radius: 10px;
  20871. }
  20872. .elist_input_box .elist_inptu_text input {
  20873. width: 500px;
  20874. }
  20875. .elist_input_box >>> .el-rate__icon {
  20876. font-size: 24px;
  20877. }
  20878. .isClick {
  20879. background: #4d9def;
  20880. }
  20881. .bzBox {
  20882. display: flex;
  20883. flex-direction: row;
  20884. align-items: center;
  20885. }
  20886. .bzBox .yCss {
  20887. width: 7px;
  20888. height: 7px;
  20889. background: #fff;
  20890. margin: 0 16px 0 6px;
  20891. border-radius: 50%;
  20892. border: 5px solid #3681fc;
  20893. z-index: 99;
  20894. }
  20895. .bzBox > div:nth-child(2) {
  20896. font-size: 18px;
  20897. font-weight: bold;
  20898. color: #0e1e33;
  20899. }
  20900. .navTitile {
  20901. padding: 0 0px 0 15px;
  20902. font-size: 16px;
  20903. font-weight: bold;
  20904. color: #0e1e33;
  20905. height: 40px;
  20906. line-height: 40px;
  20907. }
  20908. .isTypeOne {
  20909. width: 240px;
  20910. height: 170px;
  20911. /* border: 1px solid #f8f8f8; */
  20912. border-radius: 10px;
  20913. box-shadow: 0 0 6px 1px #dfdada;
  20914. }
  20915. .e_add_top {
  20916. display: flex;
  20917. justify-content: space-between;
  20918. padding: 10px 20px;
  20919. border-radius: 3px;
  20920. background: #fff;
  20921. }
  20922. .e_add_title2 {
  20923. display: flex;
  20924. align-items: center;
  20925. }
  20926. .e_add_title2 span {
  20927. width: 40px;
  20928. }
  20929. .e_add_title {
  20930. display: flex;
  20931. align-items: center;
  20932. color: #b8b8b8;
  20933. font-size: 18px;
  20934. position: relative;
  20935. height: 40px;
  20936. }
  20937. .e_add_title span {
  20938. margin-right: 10px;
  20939. }
  20940. .e_add_title .el_input {
  20941. width: 300px;
  20942. }
  20943. .e_add_title >>> .el-input__inner {
  20944. width: 400px;
  20945. }
  20946. .e_add_btn {
  20947. }
  20948. .e_add_content {
  20949. display: flex;
  20950. width: 100%;
  20951. max-width: 650px;
  20952. height: 550px;
  20953. }
  20954. .e_add_list {
  20955. background: #fff;
  20956. height: 500px;
  20957. width: 210px;
  20958. position: relative;
  20959. margin: 15px 5px 0 0;
  20960. flex-shrink: 0;
  20961. display: flex;
  20962. flex-direction: column;
  20963. }
  20964. .e_add_list_title {
  20965. font-size: 20px;
  20966. width: 100%;
  20967. box-sizing: border-box;
  20968. padding: 15px 40px;
  20969. text-align: center;
  20970. border-bottom: 1px solid #eaeaea;
  20971. position: relative;
  20972. display: flex;
  20973. align-items: center;
  20974. justify-content: center;
  20975. height: 57px;
  20976. background: #f6f6f6;
  20977. }
  20978. .e_add_list_title span {
  20979. overflow: hidden;
  20980. white-space: nowrap;
  20981. text-overflow: ellipsis;
  20982. }
  20983. .e_add_list_title img {
  20984. position: absolute;
  20985. right: 15px;
  20986. width: 25px;
  20987. cursor: pointer;
  20988. top: 50%;
  20989. transform: translateY(-50%);
  20990. }
  20991. .e_add_list_body {
  20992. height: calc(100% - 187px);
  20993. overflow: auto;
  20994. }
  20995. .e_add_list_child {
  20996. width: 100%;
  20997. display: flex;
  20998. align-items: center;
  20999. justify-content: center;
  21000. position: relative;
  21001. box-sizing: border-box;
  21002. padding: 15px 40px;
  21003. text-align: center;
  21004. }
  21005. .e_add_list_child span {
  21006. overflow: hidden;
  21007. white-space: nowrap;
  21008. text-overflow: ellipsis;
  21009. cursor: pointer;
  21010. }
  21011. .e_add_list_child img {
  21012. position: absolute;
  21013. right: 10px;
  21014. width: 21px;
  21015. cursor: pointer;
  21016. top: 50%;
  21017. transform: translateY(-50%);
  21018. }
  21019. .e_add_list_child + .e_add_list_child {
  21020. border-top: 1px solid #eaeaea;
  21021. }
  21022. .e_add_list_child .active {
  21023. color: #409eff;
  21024. }
  21025. .e_add_list_btn {
  21026. position: absolute;
  21027. bottom: 0;
  21028. height: 50px;
  21029. background: rgb(120, 120, 254);
  21030. width: 100%;
  21031. color: #fff;
  21032. font-size: 16px;
  21033. text-align: center;
  21034. line-height: 50px;
  21035. cursor: pointer;
  21036. }
  21037. .e_add_list_detail {
  21038. position: absolute;
  21039. bottom: 0;
  21040. height: 130px;
  21041. background: rgb(120, 120, 254);
  21042. width: 100%;
  21043. color: #fff;
  21044. font-size: 16px;
  21045. display: flex;
  21046. align-items: center;
  21047. justify-content: center;
  21048. }
  21049. .e_add_list_detail textarea {
  21050. height: 90%;
  21051. width: 95%;
  21052. border: none;
  21053. resize: none;
  21054. outline: none;
  21055. padding: 5px;
  21056. box-sizing: border-box;
  21057. }
  21058. .e_add_list_pbox {
  21059. width: 100%;
  21060. max-width: 650px;
  21061. /* height: 600px; */
  21062. }
  21063. .e_add_list_pbox_title {
  21064. height: 50px;
  21065. background: #fff;
  21066. display: flex;
  21067. align-items: center;
  21068. width: 100%;
  21069. box-sizing: border-box;
  21070. padding: 0 20px;
  21071. }
  21072. .type_title {
  21073. font-size: 18px;
  21074. font-weight: 700;
  21075. }
  21076. .type_content {
  21077. font-size: 16px;
  21078. /* margin-left: 30px; */
  21079. }
  21080. .type_content span + span {
  21081. margin-left: 20px;
  21082. }
  21083. .type_content span {
  21084. cursor: pointer;
  21085. padding-bottom: 5px;
  21086. box-sizing: border-box;
  21087. }
  21088. .type_content .active {
  21089. color: #409eff;
  21090. border-bottom: 2px solid #409eff;
  21091. }
  21092. .e_add_list_pbox_content {
  21093. height: calc(100% - 50px);
  21094. display: flex;
  21095. align-items: center;
  21096. width: 100%;
  21097. background: #fff;
  21098. }
  21099. .evaCss {
  21100. display: flex;
  21101. flex-direction: row;
  21102. flex-wrap: nowrap;
  21103. align-items: flex-start;
  21104. padding: 0 0 20px;
  21105. }
  21106. .cru_line {
  21107. position: absolute;
  21108. bottom: 0px;
  21109. transition: all 0.5s;
  21110. left: 0px;
  21111. width: 125px;
  21112. margin-left: -25px;
  21113. }
  21114. .isNoMessage {
  21115. width: 20%;
  21116. margin: 25% auto 0;
  21117. }
  21118. .isNoMessage > img {
  21119. width: 100%;
  21120. height: 100%;
  21121. }
  21122. .fullStyle >>> .el-dialog__body {
  21123. height: 100% !important;
  21124. }
  21125. .fullStyle >>> .el-dialog,
  21126. .fullStyle {
  21127. width: 100% !important;
  21128. max-width: 100% !important;
  21129. height: 100% !important;
  21130. margin: 0 !important;
  21131. }
  21132. .full_diy >>> .el-dialog {
  21133. margin: 0 !important;
  21134. height: 100%;
  21135. padding: 4px;
  21136. }
  21137. .full_diy >>> .el-dialog__body {
  21138. height: calc(100% - 100px);
  21139. }
  21140. .full_diy2 >>> .el-dialog__body {
  21141. height: calc(100% - 50px);
  21142. padding: 0;
  21143. }
  21144. .switchCss {
  21145. /* width: 100%; */
  21146. display: flex;
  21147. flex-direction: row;
  21148. flex-wrap: nowrap;
  21149. align-items: center;
  21150. /* justify-content: center; */
  21151. }
  21152. .isClickNav {
  21153. /* color: #499eef; */
  21154. color: #000;
  21155. }
  21156. .commentImg {
  21157. width: 25px;
  21158. height: 25px;
  21159. cursor: pointer;
  21160. }
  21161. .commentImg > img {
  21162. width: 100%;
  21163. height: 100%;
  21164. }
  21165. .comment {
  21166. background: #f9f9f9;
  21167. border-radius: 0 0 4px 4px;
  21168. display: flex;
  21169. flex-direction: row;
  21170. flex-wrap: nowrap;
  21171. align-items: center;
  21172. justify-content: flex-end;
  21173. height: 35px;
  21174. }
  21175. .commentList {
  21176. display: flex;
  21177. flex-direction: row;
  21178. flex-wrap: nowrap;
  21179. align-items: center;
  21180. justify-content: center;
  21181. align-content: center;
  21182. /* margin-left: 15px; */
  21183. /* margin-left: 8px; */
  21184. }
  21185. .scoreImg {
  21186. width: 17px;
  21187. height: 17px;
  21188. }
  21189. .studentDetail {
  21190. display: flex;
  21191. flex-direction: row;
  21192. flex-wrap: nowrap;
  21193. /* align-items: center; */
  21194. align-items: flex-start;
  21195. }
  21196. .tx {
  21197. width: 50px;
  21198. }
  21199. .tx > img {
  21200. width: 100%;
  21201. height: 100%;
  21202. }
  21203. .nameAndTime {
  21204. display: flex;
  21205. flex-direction: column;
  21206. flex-wrap: nowrap;
  21207. align-items: flex-start;
  21208. margin-left: 10px;
  21209. }
  21210. .worksAnswer {
  21211. color: #4078dd;
  21212. margin: 10px 0;
  21213. font-size: 16px;
  21214. position: relative;
  21215. }
  21216. .worksAnswer > img {
  21217. width: 500px;
  21218. height: 300px;
  21219. object-fit: contain;
  21220. margin: 0 auto;
  21221. display: block;
  21222. }
  21223. .commentTop {
  21224. border-bottom: 1px solid #eaeaea;
  21225. padding-bottom: 10px;
  21226. }
  21227. .commentBox {
  21228. padding-top: 15px;
  21229. }
  21230. .pl {
  21231. font-size: 18px;
  21232. }
  21233. .plPerson {
  21234. width: 100%;
  21235. }
  21236. .plName {
  21237. display: flex;
  21238. flex-direction: row;
  21239. flex-wrap: nowrap;
  21240. align-items: baseline;
  21241. color: #78787a;
  21242. width: 100%;
  21243. }
  21244. .deleteComment {
  21245. cursor: pointer;
  21246. margin-left: auto;
  21247. color: #237ade;
  21248. }
  21249. .plContent {
  21250. margin-top: 5px;
  21251. }
  21252. .evalCss {
  21253. background: #fff;
  21254. font-size: 18px;
  21255. }
  21256. .nav {
  21257. color: #9d9d9d;
  21258. padding: 5px 0 15px 20px;
  21259. }
  21260. .middleBox {
  21261. padding: 5px 0 15px 20px;
  21262. }
  21263. .pfBox {
  21264. padding-bottom: 30px;
  21265. }
  21266. .nameAndrate {
  21267. display: flex;
  21268. flex-direction: row;
  21269. flex-wrap: nowrap;
  21270. align-items: center;
  21271. padding-bottom: 10px;
  21272. height: 30px;
  21273. line-height: 30px;
  21274. }
  21275. .nameAndrate > div {
  21276. margin-left: 10px;
  21277. color: #000;
  21278. height: 30px;
  21279. }
  21280. .nameAndrate >>> .el-rate__icon {
  21281. font-size: 28px !important;
  21282. }
  21283. .pfBox > div:nth-child(2) {
  21284. background: #f7f6f9;
  21285. width: 400px;
  21286. min-height: 45px;
  21287. border-radius: 10px;
  21288. font-size: 16px;
  21289. display: flex;
  21290. flex-wrap: wrap;
  21291. align-items: center;
  21292. padding: 10px 20px;
  21293. box-sizing: border-box;
  21294. color: #000;
  21295. }
  21296. .bz {
  21297. display: flex;
  21298. flex-direction: row;
  21299. flex-wrap: nowrap;
  21300. align-items: flex-start;
  21301. }
  21302. .bz > div {
  21303. padding: 0 10px;
  21304. }
  21305. .select_box2_title {
  21306. background: #fff;
  21307. border-radius: 5px;
  21308. padding: 15px 10px;
  21309. box-sizing: border-box;
  21310. margin-bottom: 10px;
  21311. display: flex;
  21312. flex-direction: row;
  21313. flex-wrap: nowrap;
  21314. align-items: center;
  21315. }
  21316. .select_box2_title > div:nth-child(2) {
  21317. margin-left: 10px;
  21318. color: #c4c4c4;
  21319. }
  21320. .select_box2_box {
  21321. display: flex;
  21322. height: 500px;
  21323. }
  21324. .select_box2_img {
  21325. width: calc(100% - 310px);
  21326. height: 100%;
  21327. overflow: auto;
  21328. background: #fff;
  21329. border-radius: 5px;
  21330. }
  21331. .select_box2_img img {
  21332. width: 100%;
  21333. }
  21334. .select_box2_answer {
  21335. background: #fff;
  21336. margin-left: 10px;
  21337. border-radius: 5px;
  21338. width: 300px;
  21339. overflow: auto;
  21340. height: 90%;
  21341. display: flex;
  21342. flex-direction: column;
  21343. align-items: flex-start;
  21344. padding-top: 10px;
  21345. box-sizing: border-box;
  21346. position: relative;
  21347. }
  21348. .select_answer_title {
  21349. padding: 0 0 15px 20px;
  21350. color: #c4c4c4;
  21351. }
  21352. .select_box2_answer_box {
  21353. margin: 0 0 10px 20px;
  21354. width: 85%;
  21355. display: flex;
  21356. flex-direction: row;
  21357. flex-wrap: nowrap;
  21358. align-items: center;
  21359. }
  21360. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21361. color: #000;
  21362. }
  21363. .upAnswerCss {
  21364. position: absolute;
  21365. bottom: 15px;
  21366. right: 15px;
  21367. }
  21368. .upAnswerCss >>> .el-button {
  21369. width: 95px;
  21370. height: 35px;
  21371. line-height: 35px;
  21372. padding: 0;
  21373. }
  21374. .rightWidthCss {
  21375. width: 60%;
  21376. display: flex;
  21377. flex-direction: row;
  21378. align-items: flex-start;
  21379. }
  21380. .rightAnswer {
  21381. display: flex;
  21382. flex-direction: row;
  21383. flex-wrap: nowrap;
  21384. align-items: center;
  21385. color: red;
  21386. margin-bottom: 31px;
  21387. }
  21388. .rightAnswerCss {
  21389. display: flex;
  21390. flex-direction: column;
  21391. flex-wrap: nowrap;
  21392. padding-top: 60px;
  21393. }
  21394. .blueCss {
  21395. color: #767de1;
  21396. margin-left: 10px;
  21397. }
  21398. .redCss {
  21399. color: red;
  21400. }
  21401. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21402. color: rgb(0 123 255) !important;
  21403. }
  21404. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21405. color: rgb(0 123 255) !important;
  21406. }
  21407. .zuoyeYulan {
  21408. padding-top: 0;
  21409. font-size: 18px;
  21410. display: flex;
  21411. align-items: flex-end;
  21412. }
  21413. .buttonA {
  21414. margin-left: 10px;
  21415. padding: 0;
  21416. }
  21417. .displayBox {
  21418. margin-bottom: 10px;
  21419. display: block;
  21420. border-bottom: 3px solid #eee;
  21421. display: flex;
  21422. align-items: center;
  21423. }
  21424. .easy_comment {
  21425. width: calc(100% - 90px);
  21426. margin-left: 10px;
  21427. display: flex;
  21428. flex-wrap: wrap;
  21429. }
  21430. .easy_comment > div {
  21431. border: 1px solid #4a4a4a;
  21432. color: #666;
  21433. border-radius: 15px;
  21434. padding: 5px 10px;
  21435. font-size: 16px;
  21436. margin-bottom: 10px;
  21437. margin-right: 5px;
  21438. cursor: pointer;
  21439. }
  21440. .easy_comment div:hover {
  21441. border: 1px solid #f7ba2a;
  21442. color: #c69217;
  21443. }
  21444. .xuan_right_box {
  21445. padding: 10px 0;
  21446. background: #f0f4fa;
  21447. margin: 0 15px 0 25px;
  21448. border-bottom-left-radius: 5px;
  21449. border-bottom-right-radius: 5px;
  21450. width: 91.5%;
  21451. }
  21452. .tool_right_box {
  21453. display: flex;
  21454. align-items: center;
  21455. }
  21456. .tool_right_box + .tool_right_box {
  21457. margin-top: 10px;
  21458. }
  21459. .right_box_xuan {
  21460. border-radius: 5px;
  21461. padding: 5px;
  21462. margin-left: 10px;
  21463. min-width: 85px;
  21464. background: #fff;
  21465. color: #0061ff;
  21466. border: 1px solid #0061ff;
  21467. font-size: 14px;
  21468. }
  21469. .pButton:hover {
  21470. opacity: 1 !important;
  21471. }
  21472. .pButton {
  21473. position: fixed;
  21474. text-align: center;
  21475. cursor: pointer;
  21476. z-index: 999;
  21477. right: 20px;
  21478. top: 110px;
  21479. width: 50px;
  21480. height: 50px;
  21481. display: flex;
  21482. align-items: center;
  21483. justify-content: center;
  21484. border-radius: 5px;
  21485. }
  21486. .pzClass {
  21487. width: calc(100% - 340px);
  21488. }
  21489. .newDialogCss {
  21490. /* position: fixed;
  21491. right: 5%;
  21492. top: 50%;
  21493. width: 340px;
  21494. transform: translateY(-50%);
  21495. height: 60%;
  21496. box-shadow: 0px 0 8px 0px #555555;
  21497. border-radius: 15px;
  21498. z-index: 999; */
  21499. position: fixed;
  21500. right: 20px;
  21501. top: 101px;
  21502. width: 330px;
  21503. height: calc(100% - 80px);
  21504. z-index: 999;
  21505. background: #fff;
  21506. border-top-right-radius: 0px;
  21507. border-bottom-right-radius: 0px;
  21508. overflow: hidden;
  21509. }
  21510. .pzTop {
  21511. color: #fff;
  21512. background: #000;
  21513. display: flex;
  21514. flex-direction: row;
  21515. flex-wrap: nowrap;
  21516. align-items: center;
  21517. justify-content: space-between;
  21518. height: 40px;
  21519. border-radius: 15px 15px 0 0;
  21520. user-select: none;
  21521. }
  21522. .pzTop2 .checkbox {
  21523. display: flex;
  21524. align-items: center;
  21525. padding: 5px 30px;
  21526. flex: 0 0 auto;
  21527. font-weight: bold;
  21528. border-bottom: 1px solid #eee;
  21529. justify-content: space-between;
  21530. }
  21531. .pzTop2 .check {
  21532. text-align: center;
  21533. cursor: pointer;
  21534. box-sizing: border-box;
  21535. display: flex;
  21536. }
  21537. .pzTop2 img {
  21538. width: 25px;
  21539. cursor: pointer;
  21540. }
  21541. .pzTop > div:nth-child(1) {
  21542. padding-left: 10px;
  21543. }
  21544. .pzTop > div:nth-child(2) {
  21545. width: 15px;
  21546. height: 15px;
  21547. padding-right: 10px;
  21548. cursor: pointer;
  21549. }
  21550. .pzTop > div:nth-child(2) > img {
  21551. width: 100%;
  21552. height: 100%;
  21553. }
  21554. .pzBox,
  21555. .noPzBox {
  21556. height: calc(100% - 60px);
  21557. /* background: #ededed; */
  21558. background: #fff;
  21559. /* border-radius: 0 0 15px 15px; */
  21560. }
  21561. .noPzBox {
  21562. display: flex;
  21563. flex-direction: column;
  21564. flex-wrap: nowrap;
  21565. justify-content: center;
  21566. align-items: center;
  21567. }
  21568. .pzList {
  21569. background: #f7f7f7;
  21570. width: 90%;
  21571. margin: 0 auto 15px;
  21572. border-radius: 5px;
  21573. }
  21574. .pzNavTop {
  21575. display: flex;
  21576. flex-direction: row;
  21577. flex-wrap: nowrap;
  21578. padding: 10px 10px 0 10px;
  21579. align-items: center;
  21580. }
  21581. .pzDelete {
  21582. cursor: pointer;
  21583. margin-left: auto;
  21584. font-size: 14px;
  21585. color: #afafaf;
  21586. }
  21587. .pzNavTop > div:nth-child(1) {
  21588. background: #3760af;
  21589. width: 35px;
  21590. height: 35px;
  21591. color: #fff;
  21592. text-align: center;
  21593. line-height: 35px;
  21594. border-radius: 50%;
  21595. font-size: 14px;
  21596. }
  21597. .pzNavTop > div:nth-child(2) {
  21598. font-size: 18px;
  21599. color: #959595;
  21600. margin-left: 5px;
  21601. }
  21602. .pzContent {
  21603. padding: 10px;
  21604. word-break: break-word;
  21605. }
  21606. .pzContent audio {
  21607. width: 100%;
  21608. }
  21609. .pzContent audio::-webkit-media-controls-panel {
  21610. background: #fff;
  21611. }
  21612. .pzContent >>> img {
  21613. max-width: 100%;
  21614. }
  21615. .pzListBox {
  21616. padding-top: 15px;
  21617. height: calc(100% - 110px);
  21618. overflow: auto;
  21619. }
  21620. .addPzButton {
  21621. position: relative;
  21622. margin-top: 3px;
  21623. width: 100%;
  21624. }
  21625. .addPzButton .img1 {
  21626. position: absolute;
  21627. top: 50%;
  21628. right: 25px;
  21629. transform: translateY(-50%);
  21630. height: 100%;
  21631. display: flex;
  21632. align-items: center;
  21633. }
  21634. .addPzButton .img1 div {
  21635. display: flex;
  21636. }
  21637. .addPzButton .img1 div img {
  21638. width: 28px;
  21639. margin-left: 10px;
  21640. cursor: pointer;
  21641. }
  21642. .addPzButton .img1 div span {
  21643. font-size: 14px;
  21644. margin: 4px 0 0 3px;
  21645. color: #afafaf;
  21646. }
  21647. .addPz {
  21648. background: #4b79ce;
  21649. width: 100px;
  21650. color: #fff;
  21651. font-size: 12px;
  21652. height: 30px;
  21653. margin: 0 auto;
  21654. text-align: center;
  21655. line-height: 30px;
  21656. border-radius: 10px;
  21657. cursor: pointer;
  21658. }
  21659. .addDialogCss {
  21660. position: fixed;
  21661. width: 600px;
  21662. height: 70%;
  21663. min-height: 450px;
  21664. box-shadow: 0px 0 8px 0px #555555;
  21665. border-radius: 15px;
  21666. z-index: 999;
  21667. left: 50%;
  21668. top: 50%;
  21669. margin: -18% 0 0 -300px;
  21670. }
  21671. .teacherPz {
  21672. display: flex;
  21673. flex-direction: row;
  21674. align-items: center;
  21675. flex-wrap: nowrap;
  21676. }
  21677. .teacherPzImg {
  21678. width: 30px;
  21679. height: 30px;
  21680. }
  21681. .teacherPzImg > img {
  21682. width: 100%;
  21683. height: 100%;
  21684. }
  21685. .addPzBox {
  21686. height: calc(100% - 40px);
  21687. background: #ededed;
  21688. border-bottom-left-radius: 15px;
  21689. border-bottom-right-radius: 15px;
  21690. }
  21691. .pzAudioClass {
  21692. margin: 15px 14px;
  21693. background: #fff;
  21694. height: 100%;
  21695. display: flex;
  21696. justify-content: center;
  21697. align-items: center;
  21698. }
  21699. .pzConText {
  21700. width: 95%;
  21701. height: 100%;
  21702. margin: 10px auto 0;
  21703. border: none;
  21704. background: #fff;
  21705. border-radius: 0px;
  21706. }
  21707. .pzConText >>> .text {
  21708. height: calc(100% - 82px);
  21709. }
  21710. .addTextCss {
  21711. background: #4b79ce;
  21712. width: 80px;
  21713. height: 30px;
  21714. text-align: center;
  21715. color: #fff;
  21716. line-height: 30px;
  21717. border-radius: 10px;
  21718. margin: 10px auto 0;
  21719. cursor: pointer;
  21720. }
  21721. .pzConText:focus-visible {
  21722. border: none !important;
  21723. }
  21724. .maxWidth {
  21725. width: 1000px;
  21726. }
  21727. .noPz {
  21728. width: 150px;
  21729. margin: 0 auto 20%;
  21730. }
  21731. .noPz > img {
  21732. width: 100%;
  21733. height: 100%;
  21734. }
  21735. .timeAndReply {
  21736. display: flex;
  21737. flex-direction: row;
  21738. flex-wrap: nowrap;
  21739. justify-content: space-between;
  21740. align-items: center;
  21741. font-size: 14px;
  21742. box-sizing: border-box;
  21743. padding: 0 10px 10px 0px;
  21744. }
  21745. .timeAndReply .time {
  21746. color: #bfbfbf;
  21747. padding: 0 0 0 10px;
  21748. box-sizing: border-box;
  21749. }
  21750. .timeAndReply > div:last-child {
  21751. cursor: pointer;
  21752. color: #777;
  21753. }
  21754. /* table 样式 */
  21755. .cont >>> table {
  21756. border-top: 1px solid #ccc;
  21757. border-left: 1px solid #ccc;
  21758. }
  21759. .cont >>> table td,
  21760. .cont >>> table th {
  21761. border-bottom: 1px solid #ccc;
  21762. border-right: 1px solid #ccc;
  21763. /* padding: 20px 5px; */
  21764. padding: 5px 10px;
  21765. max-width: 0px;
  21766. height: 30px;
  21767. vertical-align: baseline;
  21768. box-sizing: border-box;
  21769. }
  21770. .cont >>> table th {
  21771. border-bottom: 2px solid #ccc;
  21772. text-align: center;
  21773. }
  21774. /* blockquote 样式 */
  21775. .cont >>> blockquote {
  21776. display: block;
  21777. border-left: 8px solid #d0e5f2;
  21778. padding: 5px 10px;
  21779. margin: 10px 0;
  21780. line-height: 1.4;
  21781. font-size: 100%;
  21782. background-color: #f1f1f1;
  21783. }
  21784. /* code 样式 */
  21785. .cont >>> code {
  21786. display: inline-block;
  21787. /* *display: inline; */
  21788. zoom: 1;
  21789. background-color: #f1f1f1;
  21790. border-radius: 3px;
  21791. padding: 3px 5px;
  21792. margin: 0 3px;
  21793. }
  21794. .cont >>> pre code {
  21795. display: block;
  21796. }
  21797. /* ul ol 样式 */
  21798. .cont >>> ul,
  21799. ol {
  21800. margin: 10px 0 10px 20px;
  21801. }
  21802. .addPzCheck {
  21803. display: flex;
  21804. flex-direction: row;
  21805. flex-wrap: nowrap;
  21806. padding: 10px 15px 0;
  21807. }
  21808. .addPzCheck span {
  21809. cursor: pointer;
  21810. padding-bottom: 5px;
  21811. font-weight: bold;
  21812. }
  21813. .addPzCheck span + span {
  21814. margin-left: 10px;
  21815. }
  21816. .addPzCheck .isChooseActive {
  21817. color: #3e88f4;
  21818. border-bottom: 2px solid #2f80f3;
  21819. }
  21820. /* code 样式 */
  21821. .cont {
  21822. /* -webkit-user-modify: read-write; */
  21823. overflow-wrap: break-word;
  21824. -webkit-line-break: after-white-space;
  21825. }
  21826. .scoreBox,
  21827. .scoreDetailBox {
  21828. display: flex;
  21829. align-items: center;
  21830. justify-content: flex-start;
  21831. margin-top: 20px;
  21832. font-size: 18px;
  21833. width: 100%;
  21834. }
  21835. .scoreBox .t,
  21836. .scoreDetailBox .t {
  21837. margin-right: 10px;
  21838. width: 100px;
  21839. text-align: right;
  21840. }
  21841. .scoreDetailBox {
  21842. align-items: flex-start;
  21843. }
  21844. .scoreDetailBox >>> .el-textarea {
  21845. width: calc(100% - 200px);
  21846. }
  21847. .scoreBox >>> .el-input {
  21848. width: 130px;
  21849. font-size: 38px;
  21850. }
  21851. .scoreBox >>> .el-input__inner {
  21852. height: 60px;
  21853. }
  21854. .answerScore {
  21855. position: absolute;
  21856. top: 10px;
  21857. right: 10px;
  21858. background: #0000008f;
  21859. border-radius: 5px;
  21860. padding: 3px 5px;
  21861. font-size: 14px;
  21862. color: #fff;
  21863. cursor: pointer;
  21864. }
  21865. .open_box .switch_box {
  21866. width: 100%;
  21867. margin: 0 auto;
  21868. display: flex;
  21869. justify-content: space-between;
  21870. }
  21871. .open_box .switch_box + .switch_box {
  21872. margin-top: 10px;
  21873. }
  21874. .deleteImg,.deleteImg1 {
  21875. width: 25px !important;
  21876. height: 25px !important;
  21877. cursor: pointer;
  21878. position: absolute;
  21879. top: 10px;
  21880. right: 10px;
  21881. }
  21882. .deleteImg2 {
  21883. width: 23px !important;
  21884. height: 23px !important;
  21885. top: 5px;
  21886. right: 5px;
  21887. }
  21888. .deleteImg1{
  21889. width: 23px !important;
  21890. height: 23px !important;
  21891. top: 5px !important;
  21892. right: 30px !important;
  21893. }
  21894. .rightW {
  21895. right: 40px;
  21896. }
  21897. .drawPBox {
  21898. display: flex;
  21899. flex-direction: column;
  21900. position: relative;
  21901. }
  21902. .drawPBox span {
  21903. font-size: 18px;
  21904. color: #606266;
  21905. padding-bottom: 10px;
  21906. margin: 10px 0;
  21907. border-bottom: 1px solid #eaeaea;
  21908. }
  21909. .drawPBox img {
  21910. width: 500px;
  21911. height: 300px;
  21912. object-fit: contain;
  21913. cursor: pointer;
  21914. margin: 0 auto;
  21915. }
  21916. .sentenBox {
  21917. background: #fff;
  21918. height: 450px;
  21919. overflow: auto;
  21920. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21921. background-position: 102%;
  21922. background-repeat: no-repeat;
  21923. background-size: 60%;
  21924. }
  21925. .addSen {
  21926. background: #409efe;
  21927. width: 90px;
  21928. color: #fff;
  21929. height: 35px;
  21930. text-align: center;
  21931. line-height: 35px;
  21932. border-radius: 5px;
  21933. float: right;
  21934. margin: 10px 20px 0 0;
  21935. cursor: pointer;
  21936. }
  21937. .sentenTop {
  21938. display: flex;
  21939. flex-direction: row;
  21940. flex-wrap: nowrap;
  21941. align-items: center;
  21942. padding: 55px 0 0 20px;
  21943. box-sizing: border-box;
  21944. }
  21945. .sentenTop > div:nth-child(2) {
  21946. width: 300px;
  21947. margin: 0 15px;
  21948. }
  21949. .sentenTop > div:nth-child(3) {
  21950. background: #409efe;
  21951. color: #fff;
  21952. width: 65px;
  21953. height: 35px;
  21954. text-align: center;
  21955. line-height: 35px;
  21956. border-radius: 5px;
  21957. cursor: pointer;
  21958. }
  21959. .cardList,
  21960. .cardList1 {
  21961. padding: 10px 0 10px 0;
  21962. display: flex;
  21963. flex-direction: row;
  21964. flex-wrap: wrap;
  21965. align-items: center;
  21966. box-sizing: border-box;
  21967. border-bottom: 1px solid #f4f4f4;
  21968. width: 98%;
  21969. margin: 0 auto;
  21970. min-width: 60%;
  21971. max-width: 85%;
  21972. }
  21973. .cardList1 {
  21974. padding: 10px 0 10px 10px !important;
  21975. margin: 0 !important;
  21976. }
  21977. .cardBox {
  21978. display: flex;
  21979. flex-direction: row;
  21980. flex-wrap: wrap;
  21981. align-items: center;
  21982. align-content: center;
  21983. }
  21984. .cardBox > div {
  21985. margin-bottom: 10px;
  21986. }
  21987. .isCard,
  21988. .isChooseCard,
  21989. .noCard,
  21990. .isCard1 {
  21991. width: 130px;
  21992. height: 60px;
  21993. text-align: center;
  21994. line-height: 60px;
  21995. font-size: 20px;
  21996. cursor: pointer;
  21997. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21998. background-size: cover;
  21999. transition: all 2s;
  22000. margin-right: 20px;
  22001. }
  22002. .isCard > div,
  22003. .noCard > div,
  22004. .isCard1 > div {
  22005. white-space: nowrap;
  22006. overflow: hidden;
  22007. text-overflow: ellipsis;
  22008. width: 75%;
  22009. margin: 0 auto;
  22010. }
  22011. .noCard {
  22012. background-image: none;
  22013. }
  22014. .isCard1 {
  22015. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22016. }
  22017. .isChooseCard {
  22018. background-image: none;
  22019. border: 1px dashed #b9b9b9;
  22020. border-radius: 10px;
  22021. }
  22022. .card {
  22023. width: 130px;
  22024. height: 60px;
  22025. }
  22026. .card > img {
  22027. width: 100%;
  22028. height: 100%;
  22029. }
  22030. .rightCardBox {
  22031. margin: 10px 0 0 10px;
  22032. }
  22033. .rightCardBox > div:nth-child(1) {
  22034. margin-bottom: 10px;
  22035. }
  22036. .cardCss {
  22037. display: flex;
  22038. flex-direction: column;
  22039. flex-wrap: nowrap;
  22040. align-items: center;
  22041. border-bottom: 3px solid #b4c3d3;
  22042. padding: 0 0 5px 0;
  22043. margin-right: 10px;
  22044. }
  22045. .cardCss > div:nth-child(2) {
  22046. background: #5b7b9d;
  22047. color: #fff;
  22048. width: 20px;
  22049. height: 20px;
  22050. border-radius: 50%;
  22051. text-align: center;
  22052. line-height: 20px;
  22053. }
  22054. .isWrong {
  22055. display: flex;
  22056. flex-direction: row;
  22057. flex-wrap: nowrap;
  22058. align-content: center;
  22059. align-items: center;
  22060. }
  22061. .answerRight {
  22062. width: 25%;
  22063. }
  22064. .isTj {
  22065. display: flex;
  22066. flex-direction: row;
  22067. flex-wrap: nowrap;
  22068. align-items: center;
  22069. }
  22070. .isTj > div:nth-child(2) {
  22071. color: #727070;
  22072. margin-left: 10px;
  22073. }
  22074. .isTjImg {
  22075. width: 30px;
  22076. height: 30px;
  22077. }
  22078. .isTjImg > img {
  22079. width: 100%;
  22080. height: 100%;
  22081. }
  22082. .cardAnswerBox {
  22083. font-size: 18px;
  22084. width: 97%;
  22085. border: 5px;
  22086. padding: 0;
  22087. border-radius: 5px;
  22088. margin: 10px auto;
  22089. word-break: break-word;
  22090. }
  22091. .w_name {
  22092. margin-bottom: 10px;
  22093. }
  22094. .w_name span {
  22095. font-size: 16px;
  22096. }
  22097. .w_teachert {
  22098. width: 50px !important;
  22099. position: absolute;
  22100. height: auto !important;
  22101. z-index: 10;
  22102. right: 25px;
  22103. top: -25px;
  22104. }
  22105. .group_workBox {
  22106. }
  22107. .group_workBox + .group_workBox {
  22108. margin-top: 20px;
  22109. }
  22110. .group_box {
  22111. padding-bottom: 20px;
  22112. border-bottom: 2px solid #f0f0f0;
  22113. margin-top: 10px;
  22114. }
  22115. .group_title {
  22116. display: flex;
  22117. align-items: center;
  22118. justify-content: space-between;
  22119. width: 95%;
  22120. }
  22121. .group_name {
  22122. background-image: url(../../assets/icon/groupN.png);
  22123. width: 220px;
  22124. background-size: 100% 100%;
  22125. height: 67px;
  22126. padding: 0 20px 0 43px;
  22127. box-sizing: border-box;
  22128. line-height: 63px;
  22129. color: #fff;
  22130. overflow: hidden;
  22131. white-space: nowrap;
  22132. text-overflow: ellipsis;
  22133. }
  22134. .group_work {
  22135. width: 100%;
  22136. padding: 0 10px;
  22137. box-sizing: border-box;
  22138. display: flex;
  22139. flex-wrap: wrap;
  22140. }
  22141. .g_d_box {
  22142. display: flex;
  22143. flex-flow: wrap;
  22144. justify-content: space-around;
  22145. }
  22146. .g_d_box .isChair {
  22147. background-image: url(../../assets/avatar.png) !important;
  22148. }
  22149. .g_d_group {
  22150. width: 500px;
  22151. margin-bottom: 80px;
  22152. }
  22153. .g_d_group_chair {
  22154. display: flex;
  22155. align-items: center;
  22156. justify-content: center;
  22157. }
  22158. .g_d_group_chair > div + div {
  22159. margin-left: 30px;
  22160. }
  22161. .g_d_group_chair > div,
  22162. .g_d_group_chair2 > div {
  22163. display: flex;
  22164. flex-direction: column;
  22165. align-items: center;
  22166. }
  22167. .g_d_group_chair > div > span:nth-child(1),
  22168. .g_d_group_chair2 > div > span:nth-child(1) {
  22169. background-image: url(../../assets/icon/chair.png);
  22170. width: 50px;
  22171. height: 50px;
  22172. display: block;
  22173. background-size: 100% 100%;
  22174. }
  22175. .g_d_group_tableBox {
  22176. display: flex;
  22177. align-items: center;
  22178. justify-content: center;
  22179. }
  22180. .g_d_group_chair2 {
  22181. display: flex;
  22182. flex-direction: column;
  22183. align-items: center;
  22184. justify-content: center;
  22185. }
  22186. .g_d_group_chair2 > div + div {
  22187. margin-top: 10px;
  22188. }
  22189. .g_d_group_table {
  22190. background-image: url(../../assets/icon/groupBg.png);
  22191. width: 354px;
  22192. height: 196px;
  22193. background-size: 100% 100%;
  22194. display: flex;
  22195. align-items: center;
  22196. justify-content: center;
  22197. flex-direction: column;
  22198. color: #fff;
  22199. }
  22200. .g_d_group_table > div:nth-child(1) {
  22201. font-size: 24px;
  22202. margin-bottom: 5px;
  22203. }
  22204. .g_d_group_table > div:nth-child(2) div {
  22205. cursor: pointer;
  22206. background: #2e77bf;
  22207. padding: 4px 10px;
  22208. border-radius: 5px;
  22209. }
  22210. .groupBox {
  22211. }
  22212. .groupContent + .groupContent {
  22213. margin-top: 30px;
  22214. }
  22215. .groupTitle {
  22216. font-size: 24px;
  22217. color: rgb(80, 80, 80);
  22218. margin-bottom: 20px;
  22219. }
  22220. .groupName {
  22221. display: flex;
  22222. align-items: center;
  22223. }
  22224. .groupn {
  22225. font-size: 15px;
  22226. margin-right: 10px;
  22227. }
  22228. .groupName + .groupName {
  22229. margin-top: 15px;
  22230. }
  22231. .groupBtn {
  22232. margin-left: 10px;
  22233. }
  22234. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22235. text-align: left;
  22236. }
  22237. .g_d_btnBox {
  22238. display: flex;
  22239. justify-content: flex-end;
  22240. align-items: center;
  22241. margin-bottom: 20px;
  22242. }
  22243. .updateChair {
  22244. position: relative;
  22245. }
  22246. .updateChairBtn {
  22247. position: absolute;
  22248. width: 50px;
  22249. height: 50px;
  22250. overflow: hidden;
  22251. /* display: flex; */
  22252. align-items: center;
  22253. justify-content: center;
  22254. background: #00000087;
  22255. color: #fff;
  22256. border-radius: 50px;
  22257. display: none;
  22258. cursor: pointer;
  22259. }
  22260. .updateChair:hover .updateChairBtn {
  22261. display: flex;
  22262. }
  22263. .group_staic_box {
  22264. display: flex;
  22265. padding: 30px 40px 10px;
  22266. flex-wrap: wrap;
  22267. }
  22268. .group_staic {
  22269. /* width: 50%; */
  22270. margin-bottom: 20px;
  22271. display: flex;
  22272. align-items: center;
  22273. }
  22274. .group_staic span:nth-child(1) {
  22275. width: 150px;
  22276. text-align: right;
  22277. margin-right: 15px;
  22278. }
  22279. .group_staic span:nth-child(2) {
  22280. background: rgb(0 123 255);
  22281. color: #fff;
  22282. border-radius: 5px;
  22283. padding: 5px;
  22284. }
  22285. .codeFileBox {
  22286. height: 300px;
  22287. background: #fff;
  22288. display: flex;
  22289. align-items: center;
  22290. justify-content: center;
  22291. }
  22292. .codeFileBox img {
  22293. width: 200px;
  22294. margin: 0;
  22295. height: auto;
  22296. }
  22297. .codeFileBox div {
  22298. background: rgb(80, 142, 226);
  22299. color: #fff;
  22300. padding: 10px 20px;
  22301. border-radius: 25px;
  22302. cursor: pointer;
  22303. margin-left: 15px;
  22304. }
  22305. .radioBox {
  22306. display: flex;
  22307. flex-direction: column;
  22308. flex-wrap: nowrap;
  22309. align-items: flex-start;
  22310. }
  22311. .radioBox > div {
  22312. margin: 10px 0 0 10px;
  22313. }
  22314. /* .radioBox >>> .el-radio__input,
  22315. .radioBox >>> .el-checkbox__inner {
  22316. margin-left: 10px;
  22317. } */
  22318. .radioBox >>> .el-radio__label,
  22319. .radioBox >>> .el-checkbox__label {
  22320. display: flex;
  22321. align-items: center;
  22322. width: 100%;
  22323. }
  22324. .radioBox >>> .el-radio__label > span {
  22325. width: 100%;
  22326. display: -webkit-box;
  22327. overflow: hidden;
  22328. white-space: normal !important;
  22329. text-overflow: ellipsis;
  22330. word-wrap: break-word;
  22331. }
  22332. .inImg {
  22333. width: 100px;
  22334. cursor: pointer;
  22335. }
  22336. .inImg > img {
  22337. width: 100%;
  22338. height: 100%;
  22339. object-fit: cover;
  22340. }
  22341. .timuImgBox {
  22342. margin: 10px 0;
  22343. display: flex;
  22344. flex-direction: column;
  22345. flex-wrap: wrap;
  22346. align-items: flex-start;
  22347. }
  22348. .timuImg {
  22349. width: 150px;
  22350. margin: 5px 0;
  22351. cursor: pointer;
  22352. }
  22353. .timuImg > img {
  22354. width: 100%;
  22355. height: 100%;
  22356. object-fit: cover;
  22357. }
  22358. .worksTop {
  22359. display: flex;
  22360. flex-direction: row;
  22361. align-items: flex-end;
  22362. }
  22363. .worksTitle {
  22364. display: flex;
  22365. flex-direction: row;
  22366. flex-wrap: nowrap;
  22367. align-items: center;
  22368. }
  22369. .worksTitle::before,
  22370. .worksTop::before {
  22371. content: "";
  22372. display: block;
  22373. width: 3px;
  22374. height: 20px;
  22375. background: #0061ff;
  22376. border-radius: 3px;
  22377. margin: 0 5px 0 0;
  22378. }
  22379. .corOpen {
  22380. margin: 0 0 0 10px;
  22381. font-size: 14px;
  22382. cursor: pointer;
  22383. color: #505050;
  22384. }
  22385. .corOpen:hover {
  22386. color: #499eef;
  22387. }
  22388. .navCorOpenBox {
  22389. display: flex;
  22390. flex-direction: row;
  22391. align-items: center;
  22392. justify-content: space-between;
  22393. height: 55px;
  22394. background: #ffffff;
  22395. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22396. border-radius: 8px 8px 0px 0px;
  22397. z-index: 9;
  22398. position: relative;
  22399. }
  22400. .navCorOpen {
  22401. padding-right: 15px;
  22402. cursor: pointer;
  22403. width: 45px;
  22404. display: flex;
  22405. }
  22406. .navCorOpen > img {
  22407. width: 100%;
  22408. height: 100%;
  22409. }
  22410. .mlImg {
  22411. width: 40px !important;
  22412. min-width: 40px;
  22413. cursor: pointer;
  22414. transform: rotate(180deg);
  22415. }
  22416. .mlImg > img {
  22417. width: 100%;
  22418. height: 100%;
  22419. }
  22420. .navLeftCss {
  22421. width: 100% !important;
  22422. left: 0 !important;
  22423. }
  22424. .isContentCss {
  22425. width: 100% !important;
  22426. }
  22427. .isAllWidth {
  22428. width: 100% !important;
  22429. }
  22430. .group_switch {
  22431. margin-right: 10px;
  22432. height: 30px;
  22433. display: flex;
  22434. align-items: center;
  22435. }
  22436. .group_switch > span {
  22437. margin-right: 5px;
  22438. }
  22439. .fileC_box {
  22440. padding-top: 15px;
  22441. }
  22442. .fileC_box > .fileC_title {
  22443. padding: 10px 5px 14px 10px;
  22444. border-top: 1px solid #cad1dc;
  22445. font-size: 14px;
  22446. font-weight: 400;
  22447. color: #cad1dc;
  22448. width: calc(100% - 20px);
  22449. margin: 0 auto;
  22450. box-sizing: border-box;
  22451. }
  22452. .pl_select_box {
  22453. height: 40px;
  22454. line-height: 40px;
  22455. width: 100%;
  22456. cursor: pointer;
  22457. padding: 0 20px;
  22458. box-sizing: border-box;
  22459. border-radius: 5px;
  22460. border: 1px solid #d6d6d6;
  22461. white-space: nowrap;
  22462. overflow: hidden;
  22463. text-overflow: ellipsis;
  22464. background: #fff;
  22465. text-align: left;
  22466. }
  22467. .newButton {
  22468. width: 102px;
  22469. height: 36px;
  22470. background: #e7ebf1;
  22471. border-radius: 4px;
  22472. color: #0e1e33;
  22473. font-weight: 400;
  22474. font-size: 14px;
  22475. border: none;
  22476. float: right;
  22477. margin-left: 10px;
  22478. }
  22479. .el-table >>> .even_row {
  22480. background-color: #f0f4fa;
  22481. }
  22482. .stageBoxCss,
  22483. .stageBoxIsCss {
  22484. display: flex;
  22485. flex-direction: row;
  22486. flex-wrap: nowrap;
  22487. align-items: center;
  22488. height: 50px;
  22489. border-bottom: 1px solid #e2f5fc;
  22490. cursor: pointer;
  22491. width: 100%;
  22492. }
  22493. .stageBoxIsCss {
  22494. background: #0061ff;
  22495. color: #fff;
  22496. border-radius: 8px;
  22497. }
  22498. .closeTri,
  22499. .closeTri1 {
  22500. min-width: 15px;
  22501. width: 15px;
  22502. height: 15px;
  22503. }
  22504. .closeTri1 {
  22505. padding-left: 10px;
  22506. cursor: pointer;
  22507. }
  22508. .closeTri > img,
  22509. .closeTri1 > img {
  22510. width: 100%;
  22511. height: 100%;
  22512. /* transition: all .5s; */
  22513. }
  22514. .noToolBlue {
  22515. min-width: 10px;
  22516. width: 10px;
  22517. height: 10px;
  22518. background: #0061ff;
  22519. border-radius: 50%;
  22520. margin-left: 13px;
  22521. }
  22522. .stageChild,
  22523. .toolChild {
  22524. height: 0;
  22525. overflow: hidden;
  22526. transition: all 0.5s;
  22527. }
  22528. .toolChild {
  22529. /* margin: 0 0 0 17px;
  22530. padding: 0 0 0 20px;
  22531. border-left: 1px solid #d7d7d7; */
  22532. }
  22533. .toolChild > div + div{
  22534. margin-top:5px;
  22535. }
  22536. .gjCss {
  22537. display: flex;
  22538. flex-direction: row;
  22539. flex-wrap: nowrap;
  22540. align-items: center;
  22541. padding: 10px 0 10px 40px;
  22542. box-sizing: border-box;
  22543. font-size: 14px;
  22544. cursor: pointer;
  22545. border-radius:5px;
  22546. }
  22547. .toolChild > div {
  22548. position: relative;
  22549. width: 100%;
  22550. }
  22551. .toolChild > div::before {
  22552. /* content: "";
  22553. width: 15px;
  22554. height: 1px;
  22555. background: #cad1dc;
  22556. position: absolute;
  22557. top: 24px;
  22558. left: -20px;
  22559. display: block; */
  22560. }
  22561. .isGjCss {
  22562. /* color: #0061ff; */
  22563. color:#fff;
  22564. background: rgb(55, 129, 252);
  22565. /* background-color: #e0eafb !important;
  22566. color: #0061ff !important; */
  22567. }
  22568. .navItem {
  22569. background: #ffffff;
  22570. border-radius: 4px;
  22571. width: 100%;
  22572. margin: 10px auto;
  22573. position: relative;
  22574. height: 40px;
  22575. display: flex;
  22576. flex-direction: row;
  22577. flex-wrap: nowrap;
  22578. align-items: center;
  22579. }
  22580. .navItemList {
  22581. display: flex;
  22582. flex-direction: row;
  22583. flex-wrap: nowrap;
  22584. align-items: center;
  22585. padding: 0 13px;
  22586. cursor: pointer;
  22587. width: calc(100% - 60px);
  22588. height: 100%;
  22589. }
  22590. .navItemList > div:first-child {
  22591. min-width: 60px;
  22592. }
  22593. .navItemList > div:last-child {
  22594. width: calc(100% - 80px);
  22595. white-space: nowrap;
  22596. overflow: hidden;
  22597. text-overflow: ellipsis;
  22598. word-break: break-word;
  22599. }
  22600. /* .isItemList > div {
  22601. color: #fff !important;
  22602. } */
  22603. .tool_work_box {
  22604. width: 100%;
  22605. padding: 0 37px 0;
  22606. box-sizing: border-box;
  22607. }
  22608. .tool_box {
  22609. width: 100%;
  22610. padding: 0 0 0 20px;
  22611. }
  22612. .tool_type_box {
  22613. display: flex;
  22614. flex-direction: row;
  22615. align-items: baseline;
  22616. flex-wrap: nowrap;
  22617. justify-content: flex-start;
  22618. position: relative;
  22619. }
  22620. .toolSort {
  22621. display: flex;
  22622. flex-direction: row;
  22623. flex-wrap: wrap;
  22624. justify-content: flex-start;
  22625. align-items: flex-start;
  22626. padding: 0 0 15px 0;
  22627. }
  22628. .toolSort > div {
  22629. margin: 0 10px 0 0;
  22630. width: 135px;
  22631. box-sizing: border-box;
  22632. border: 2px solid transparent;
  22633. }
  22634. .tools {
  22635. width: 100%;
  22636. display: flex;
  22637. flex-direction: column;
  22638. flex-wrap: nowrap;
  22639. align-items: flex-start;
  22640. }
  22641. .whiteBIcon {
  22642. width: fit-content;
  22643. cursor: pointer;
  22644. display: flex;
  22645. flex-direction: column;
  22646. flex-wrap: nowrap;
  22647. align-items: center;
  22648. font-size: 14px;
  22649. }
  22650. .tool:hover {
  22651. border: 2px solid #a5c7ff;
  22652. border-radius: 5px;
  22653. }
  22654. .whiteBIcon > img {
  22655. width: 65px;
  22656. height: 100%;
  22657. }
  22658. .whiteBIcon > img {
  22659. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22660. border-radius: 15px;
  22661. }
  22662. .check {
  22663. /* width: 20px;
  22664. height: 20px; */
  22665. cursor: pointer;
  22666. margin: 10px 0;
  22667. position: absolute;
  22668. right: 2px;
  22669. top: -5px;
  22670. }
  22671. .noChoose,
  22672. .isChoose {
  22673. width: 15px;
  22674. height: 15px;
  22675. border-radius: 50%;
  22676. border: 1px solid #adadad;
  22677. }
  22678. .isChoose {
  22679. border: 4px solid #0363ff !important;
  22680. width: 10px;
  22681. height: 10px;
  22682. }
  22683. .isToolChoose {
  22684. border: 2px solid #5394ff !important;
  22685. border-radius: 5px;
  22686. box-shadow: 0 0 6px 0px #5394ff;
  22687. }
  22688. .checkDiv {
  22689. display: flex;
  22690. align-items: center;
  22691. }
  22692. .checkDiv span {
  22693. margin-left: 5px;
  22694. color: #858585;
  22695. }
  22696. .check img {
  22697. width: 20px;
  22698. height: 20px;
  22699. }
  22700. .lockTaskIcon {
  22701. width: 20px;
  22702. height: 20px;
  22703. position: absolute;
  22704. right: 10px;
  22705. top: 10px;
  22706. }
  22707. .lockTaskIcon > img {
  22708. width: 100%;
  22709. height: 100%;
  22710. }
  22711. .pick_box {
  22712. display: flex;
  22713. align-items: flex-start;
  22714. flex-wrap: wrap;
  22715. }
  22716. .selectBox {
  22717. width: 110px;
  22718. margin-left: 10px;
  22719. margin: 0 10px 0 auto;
  22720. }
  22721. .selectBox >>> .el-input__inner {
  22722. height: 30px;
  22723. line-height: 30px;
  22724. }
  22725. .selectBox >>> .el-input__icon {
  22726. line-height: 30px;
  22727. }
  22728. .sentenceTitle {
  22729. display: flex;
  22730. flex-direction: row;
  22731. flex-wrap: nowrap;
  22732. align-items: center;
  22733. }
  22734. .sentenceTitle::before {
  22735. content: attr(index);
  22736. background: #3681fc;
  22737. border-radius: 50%;
  22738. color: #fff;
  22739. width: 25px;
  22740. height: 25px;
  22741. min-width: 25px;
  22742. min-height: 25px;
  22743. text-align: center;
  22744. line-height: 25px;
  22745. margin-right: 5px;
  22746. }
  22747. .hfBox {
  22748. padding: 10px;
  22749. box-sizing: border-box;
  22750. }
  22751. .whoReplyWho {
  22752. display: flex;
  22753. flex-direction: row;
  22754. flex-wrap: nowrap;
  22755. align-items: baseline;
  22756. justify-content: flex-start;
  22757. }
  22758. .hfBottom {
  22759. display: flex;
  22760. flex-direction: row;
  22761. flex-wrap: nowrap;
  22762. align-items: center;
  22763. justify-content: space-between;
  22764. font-size: 14px;
  22765. }
  22766. .deleteHfItem {
  22767. cursor: pointer;
  22768. width: 20px;
  22769. height: 20px;
  22770. }
  22771. .deleteHfItem > img {
  22772. width: 100%;
  22773. height: 100%;
  22774. }
  22775. .whoReplyWho > .hfImg {
  22776. width: 12px;
  22777. height: 12px;
  22778. margin: 0 5px;
  22779. }
  22780. .whoReplyWho > .hfImg > img {
  22781. width: 100%;
  22782. height: 100%;
  22783. }
  22784. .hfContent {
  22785. padding-top: 10px;
  22786. box-sizing: border-box;
  22787. display: -webkit-box;
  22788. overflow: hidden;
  22789. white-space: normal !important;
  22790. text-overflow: ellipsis;
  22791. word-wrap: break-word;
  22792. -webkit-box-orient: vertical;
  22793. }
  22794. .hfTime {
  22795. text-align: left;
  22796. box-sizing: border-box;
  22797. padding: 10px 0 10px 0px;
  22798. color: #bfbfbf;
  22799. font-size: 14px;
  22800. }
  22801. .btnAllNT {
  22802. position: fixed;
  22803. bottom: 100px;
  22804. right: 40px;
  22805. z-index: 999;
  22806. display: flex;
  22807. flex-direction: row;
  22808. }
  22809. .btnAllNT > img {
  22810. cursor: pointer;
  22811. width: 80px;
  22812. }
  22813. .toolMask {
  22814. position: fixed;
  22815. width: 100%;
  22816. height: 100%;
  22817. background: #3f3c3c;
  22818. opacity: 0.5;
  22819. top: 0;
  22820. left: 0;
  22821. z-index: 999;
  22822. }
  22823. .addToolCss {
  22824. position: fixed;
  22825. z-index: 999;
  22826. background: #fff;
  22827. right: 5%;
  22828. bottom: 18%;
  22829. min-width: 1035px;
  22830. min-height: 300px;
  22831. border-radius: 10px;
  22832. box-shadow: 0 0 8px 1px #b2b2b2;
  22833. }
  22834. .toolTop {
  22835. display: flex;
  22836. flex-direction: row;
  22837. flex-wrap: nowrap;
  22838. justify-content: space-between;
  22839. align-items: center;
  22840. padding: 20px;
  22841. }
  22842. .toolTop > div:nth-child(2) {
  22843. width: 15px;
  22844. height: 15px;
  22845. padding-right: 10px;
  22846. cursor: pointer;
  22847. }
  22848. .toolTop > div:nth-child(2) > img {
  22849. width: 100%;
  22850. height: 100%;
  22851. }
  22852. .fullStyle>>>.el-dialog__body {
  22853. height: calc(100% - 125px) !important;
  22854. box-sizing: border-box;
  22855. padding: 30px 0 !important;
  22856. background: #fff !important;
  22857. }
  22858. .fullStyle>>>.el-dialog {
  22859. width: 100% !important;
  22860. max-width: 100% !important;
  22861. height: 100% !important;
  22862. margin: 0 !important;
  22863. }
  22864. .fullStyle {
  22865. width: 100% !important;
  22866. max-width: 100% !important;
  22867. height: 100% !important;
  22868. margin: 0 auto !important;
  22869. }
  22870. .fullStyle>>>.el-dialog__footer{
  22871. background: #fff !important;
  22872. }
  22873. .engUpBox {
  22874. width: 100%;
  22875. height: 100%;
  22876. }
  22877. .engTitle,
  22878. .engText {
  22879. display: flex;
  22880. flex-direction: row;
  22881. flex-wrap: nowrap;
  22882. align-items: flex-start;
  22883. padding: 0 20px 20px 20px;
  22884. box-sizing: border-box;
  22885. }
  22886. .engTitle > .div:first-child,
  22887. .engText > div:first-child {
  22888. min-width: 75px;
  22889. }
  22890. .correctBox{
  22891. width: 100%;
  22892. display: flex;
  22893. flex-direction: row;
  22894. flex-wrap: nowrap;
  22895. align-items: flex-start;
  22896. }
  22897. .oldBox{
  22898. width: 50%;
  22899. height: 100%;
  22900. display: flex;
  22901. flex-direction: column;
  22902. flex-wrap: nowrap;
  22903. align-items: center;
  22904. border-top: 1px solid #d9d9d9;
  22905. border-left: 1px solid #d9d9d9;
  22906. border-right: 1px solid #d9d9d9;
  22907. }
  22908. .oldBox>div:first-child{
  22909. width: 100%;
  22910. text-align: center;
  22911. background: #d9d9d9;
  22912. height: 35px;
  22913. line-height: 35px;
  22914. font-weight: bold;
  22915. }
  22916. .oldText{
  22917. width: 100%;
  22918. height: calc(100% - 35px);
  22919. overflow: auto;
  22920. margin: 10px 0;
  22921. display: flex;
  22922. flex-direction: column;
  22923. flex-wrap: nowrap;
  22924. align-content: center;
  22925. align-items: center;
  22926. }
  22927. .detailBox{
  22928. width: 50%;
  22929. padding: 10px;
  22930. background: #f6f6f6;
  22931. border-radius: 5px;
  22932. }
  22933. .oldDetail,.oldDetail1{
  22934. padding-bottom: 30px;
  22935. }
  22936. .oldImg{
  22937. width:30px;
  22938. height: 30px;
  22939. }
  22940. .oldImg>img{
  22941. width: 100%;
  22942. height: 100%;
  22943. }
  22944. .allName{
  22945. min-width: 200px;
  22946. white-space: nowrap;
  22947. overflow: hidden;
  22948. text-overflow: ellipsis;
  22949. word-break: break-word;
  22950. cursor: pointer;
  22951. text-align: center;
  22952. border: 1px solid #bcc2cc;
  22953. box-sizing: border-box;
  22954. }
  22955. .engUpTop{
  22956. max-height: 300px;
  22957. overflow: auto;
  22958. }
  22959. .isUpdateToolDetailClass{
  22960. padding: 0 !important;
  22961. }
  22962. .isUpdateToolDetailClass textarea{
  22963. padding:12px;
  22964. font-size: 16px;
  22965. min-height:100%;
  22966. width: 100%;
  22967. box-sizing:border-box;
  22968. outline: none;
  22969. border:none;
  22970. line-height: 30px;
  22971. resize: none;
  22972. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  22973. color: #838383;
  22974. }
  22975. .show_taskD {
  22976. min-width: fit-content;
  22977. margin-left: 10px;
  22978. display: flex;
  22979. align-items: center;
  22980. font-size: 14px;
  22981. cursor: pointer;
  22982. color: #717c8d;
  22983. }
  22984. .show_taskD > img {
  22985. width: 15px;
  22986. margin-right: 5px;
  22987. transition: 0.2s all;
  22988. transform: rotate(-90deg);
  22989. }
  22990. .show_taskD.show > img {
  22991. transform: rotate(0deg);
  22992. }
  22993. </style>