studyStudent.vue 777 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701
  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="Correct(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="Correct(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="Correct(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="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11386. <div v-else>
  11387. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11388. <div v-else v-html="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="newEnglishList1[newEngIndex].cWork.engText"></div>
  11394. <div v-else>
  11395. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" />
  11396. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></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. import * as Diff from 'diff'
  11481. const getFile = (url) => {
  11482. return new Promise((resolve, reject) => {
  11483. var credentials = {
  11484. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11485. secretAccessKey: "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",
  11486. }; //秘钥形式的登录上传
  11487. window.AWS.config.update(credentials);
  11488. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11489. let url2 = url;
  11490. let _url2 = "";
  11491. if (
  11492. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11493. ) {
  11494. _url2 = url2.split(
  11495. "https://view.officeapps.live.com/op/view.aspx?src="
  11496. )[1];
  11497. } else {
  11498. _url2 = url2;
  11499. }
  11500. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11501. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11502. var params = {
  11503. Bucket: "ccrb",
  11504. Key: name
  11505. };
  11506. s3.getObject(params, function (err, data) {
  11507. if (err) {
  11508. console.log(err, err.stack)
  11509. resolve({ data: 1 });
  11510. }else {
  11511. resolve({ data: data.Body });
  11512. console.log(data);
  11513. } // sxuccessful response
  11514. });
  11515. // axios({
  11516. // method: "get",
  11517. // url,
  11518. // responseType: "blob",
  11519. // })
  11520. // .then((data) => {
  11521. // resolve({ data: data.data });
  11522. // })
  11523. // .catch((error) => {
  11524. // resolve({ data: 1 });
  11525. // // reject(error.toString());
  11526. // });
  11527. });
  11528. };
  11529. export default {
  11530. components: {
  11531. EditorBar,
  11532. Time,
  11533. pdf,
  11534. AskStatic,
  11535. AskStatic2,
  11536. Mind,
  11537. Sunburst,
  11538. SeeBoard,
  11539. AnswerData2,
  11540. AnswerData,
  11541. Audio,
  11542. ImgDraw,
  11543. Table,
  11544. interVideo,
  11545. UpdateMore,
  11546. wordCloud,
  11547. onlineWrite,
  11548. englishEva,
  11549. },
  11550. data() {
  11551. return {
  11552. bg: null,
  11553. drawShow: false,
  11554. dialogVisible: false,
  11555. dialogVisiblePl: false,
  11556. commentDialogVisible: false,
  11557. dialogVisibleMember: false,
  11558. dialogVisibleWordCloud: false,
  11559. videoVisible: false,
  11560. isStar: false,
  11561. studentEvalDialogVisible: false,
  11562. studentEvalDialogVisibleTeacher: false,
  11563. dialogVisibleSelect: false,
  11564. dialogVisibleSelectTeacher: false,
  11565. dialogVisibleScore: false,
  11566. dialogVisibleSentence: false,
  11567. dialogVisibleSentenceTeacher: false,
  11568. dialogVisibleSentence1: false,
  11569. dialogVisibleWorks: false,
  11570. dialogVisibleTable: false,
  11571. dialogVisibleTableTeacher: false,
  11572. dialogVisibleWord: false,
  11573. dialogVisibleWordTeacher: false,
  11574. dialogVisibleTable2: false,
  11575. dialogVisibleTable3: false,
  11576. dialogVisibleGroupWork: false,
  11577. dialogVisibleUpdateGroup: false,
  11578. dialogVisibleDeleteGroup: false,
  11579. dialogVisibleSname: false,
  11580. dialogVisibleVideo: false,
  11581. dialogVisiblePickPeople: false,
  11582. worksSName: "",
  11583. classJuri: [],
  11584. uploadStudentJuri: [],
  11585. uploadCid: "",
  11586. snameWid: "",
  11587. sStudent: {},
  11588. sTool: "",
  11589. bzText: "",
  11590. commentDetail: [],
  11591. selectAnswer: [],
  11592. videoDetail: {},
  11593. selectJson: {},
  11594. eScore: { eBzText: "", eStar: [] },
  11595. id: this.$route.query.courseId,
  11596. userid: this.$route.query.userid,
  11597. classId: this.$route.query.cid,
  11598. // courseTypeLine: this.$route.query.type,
  11599. oid: this.$route.query.oid,
  11600. org: this.$route.query.org,
  11601. tType: this.$route.query.tType,
  11602. courseType: this.$route.query.type,
  11603. screenType: this.$route.query.screenType,
  11604. tcid2: this.$route.query.tcid,
  11605. tcid: "",
  11606. pptImgUrl: "",
  11607. pptImgUrl1: "",
  11608. commentText: "",
  11609. full: false,
  11610. sIsOpen: false,
  11611. IsLookOpen: false,
  11612. IsFollow: false,
  11613. pzDialog: false,
  11614. contentDialog: false,
  11615. mlDialog: false,
  11616. type: 1,
  11617. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11618. sentenceList1: [],
  11619. tableJson: [],
  11620. tableJsonO: [],
  11621. wordJson: [],
  11622. wordJsonO: [],
  11623. vedio: [],
  11624. text: [],
  11625. textList: [],
  11626. line: [],
  11627. lineList: [],
  11628. chapTools: [],
  11629. chapToolList: [],
  11630. file: [],
  11631. fileC: [],
  11632. vedioTime: [],
  11633. upToolImg: "",
  11634. preTime: 0,
  11635. rateList: {
  11636. ca: 0,
  11637. },
  11638. rateParams: [],
  11639. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11640. studyJuri: [
  11641. {
  11642. content: "",
  11643. cover: [],
  11644. upVedio: [],
  11645. upFile: [],
  11646. },
  11647. ],
  11648. isClose: 0,
  11649. plworkFile: [],
  11650. mr: require("../../assets/vedioPic.png"),
  11651. word: require("../../assets/icon/isWord.png"),
  11652. word2: require("../../assets/icon/word2.png"),
  11653. video: require("../../assets/icon/isVideo.png"),
  11654. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11655. likes: require("../../assets/icon/comment/likes.png"),
  11656. scoreImg: require("../../assets/score.png"),
  11657. courseDetail: {},
  11658. reply: "",
  11659. isSelect: false,
  11660. chapInfo: [],
  11661. chapInfoList: [],
  11662. taskCount: 0,
  11663. imgList: [],
  11664. noImgList: [],
  11665. pzList: [],
  11666. timeWorkList: [],
  11667. PlTextList: [
  11668. "Excellent!",
  11669. "nice!",
  11670. "很有创意!",
  11671. "还不错哦~",
  11672. "继续努力哦~",
  11673. ],
  11674. isClickNav: "",
  11675. navId: "",
  11676. playerOptions: {
  11677. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11678. autoplay: false, //如果true,浏览器准备好时开始回放。
  11679. muted: false, // 默认情况下将会消除任何音频。
  11680. loop: false, // 导致视频一结束就重新开始。
  11681. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11682. language: "zh-CN",
  11683. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11684. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11685. sources: [
  11686. {
  11687. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11688. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11689. },
  11690. ],
  11691. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11692. // poster: dataRes.imgUrl, //你的封面地址
  11693. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11694. controlBar: {
  11695. timeDivider: true, //当前时间和持续时间的分隔符
  11696. durationDisplay: true, //显示持续时间
  11697. remainingTimeDisplay: false, //是否显示剩余时间功能
  11698. fullscreenToggle: true, //全屏按钮
  11699. },
  11700. },
  11701. playerOptions1: {
  11702. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11703. autoplay: false, //如果true,浏览器准备好时开始回放。
  11704. muted: false, // 默认情况下将会消除任何音频。
  11705. loop: false, // 导致视频一结束就重新开始。
  11706. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11707. language: "zh-CN",
  11708. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11709. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11710. sources: [
  11711. {
  11712. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11713. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11714. },
  11715. ],
  11716. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11717. // poster: dataRes.imgUrl, //你的封面地址
  11718. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11719. controlBar: {
  11720. timeDivider: true, //当前时间和持续时间的分隔符
  11721. durationDisplay: true, //显示持续时间
  11722. remainingTimeDisplay: false, //是否显示剩余时间功能
  11723. fullscreenToggle: true, //全屏按钮
  11724. },
  11725. },
  11726. playerO: {},
  11727. noneBtnImg: false,
  11728. proVisible: false,
  11729. proVisible2: false,
  11730. progress: 0,
  11731. isFinishSize: 0,
  11732. isAllSize: 0,
  11733. questionAnswer: "",
  11734. answerQ: "", //问答标题
  11735. rateJson: [],
  11736. wbCount: 0,
  11737. wordCount: 0,
  11738. mindCount: 0,
  11739. askCount: 0,
  11740. noteCount: 0,
  11741. mindNetWorkCount: 0,
  11742. libraryCount: 0,
  11743. workCount: 0,
  11744. timeCount: 0,
  11745. answerCount: 0,
  11746. trainCount: 0,
  11747. evalCount: 0,
  11748. dialogImageUrl: "",
  11749. pictureDialog: false,
  11750. toolTypeList: [],
  11751. dialogVisible1: false,
  11752. dialogVisible2: false,
  11753. dialogVisible3: false,
  11754. dialogVisible6: false,
  11755. dialogVisible4: false,
  11756. isNoHomeWork: false,
  11757. dialogVisible5: false,
  11758. dialogVisible5Teacher: false,
  11759. dialogVisibleChoice: false,
  11760. dialogVisibleChoiceTeacher: false,
  11761. answerDialogVisible: false,
  11762. answerDialogVisibleTeacher: false,
  11763. juriVisible: false,
  11764. timeDialogVisible: false,
  11765. replyDialogVisible: false,
  11766. toolDialogVisible: false,
  11767. engDialogVisible: false,
  11768. engUpdateDialogVisible:false,
  11769. engEvaDialogVisible: false,
  11770. evaEngJson: {
  11771. teacherJson: {},
  11772. studentJson: {},
  11773. message: {},
  11774. },
  11775. isNoUserid:false,
  11776. engListLength:0,
  11777. engWid:"",
  11778. newEnglishList:{
  11779. engTitle:"",
  11780. engText:"",
  11781. },
  11782. newEnglishList1:[],
  11783. oldEnglishJson:{},
  11784. oldEnglishJson1:{},
  11785. englishList1:{},
  11786. englishList:{},
  11787. myAnswerList1:{},
  11788. topHeight:0,
  11789. newEngIndex:-1,
  11790. englishToolIndex:0,
  11791. userMes:{},
  11792. englishToolIndex:0,
  11793. replyIndex: 0,
  11794. replyPid: "",
  11795. radio: [],
  11796. isAsk: false,
  11797. askJson: {
  11798. askCount: 1,
  11799. askTitle: "",
  11800. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11801. },
  11802. testJson: {},
  11803. englishList: {},
  11804. topHeight:0,
  11805. checkJson: [],
  11806. askList: [],
  11807. answerList: [],
  11808. navList: [],
  11809. addPzDialog: false,
  11810. pzConText: "",
  11811. worksStudent: [],
  11812. isCloseList: [],
  11813. workStudent: [],
  11814. groupStudent: [],
  11815. groupStudentUid: [],
  11816. noWorksS: [],
  11817. isWorksS: [],
  11818. noWorksStudent: [],
  11819. toolindex: 0,
  11820. toolDetailIndex: null,
  11821. groupIndex: 0,
  11822. workTypeB: false,
  11823. workTypeC: false,
  11824. isAnswer: false,
  11825. isHovered: false,
  11826. isHovered1: false,
  11827. isHovered2: false,
  11828. timer: null,
  11829. opertimer: null,
  11830. showType: 0,
  11831. fileType: 0,
  11832. showPDF: false,
  11833. noteName: "",
  11834. evaJuri: [],
  11835. evalua: "",
  11836. eTitle: "",
  11837. eName: "",
  11838. eJson: {},
  11839. fid: "", //一级
  11840. sid: "", //二级
  11841. tid: "", //二级
  11842. typeMode: 1,
  11843. eJSONNum: 0,
  11844. Etype: 1,
  11845. data: {
  11846. meta: {
  11847. name: "example",
  11848. author: "dd@163.com",
  11849. version: "0.2",
  11850. },
  11851. format: "node_array",
  11852. data: [{ id: "root", isroot: true, topic: "" }],
  11853. },
  11854. fullDialogVisible: false,
  11855. fulltype: "",
  11856. fullUrl: "",
  11857. commentIndexJson: {},
  11858. Stbodywidth: 0,
  11859. ispzType: 0,
  11860. pzType: 1,
  11861. wScore: 0,
  11862. scoreDetail: "",
  11863. videoStart: false,
  11864. recorder: null,
  11865. groupJson: {},
  11866. islock: false,
  11867. groupJson2: {},
  11868. dialogVisibleGroup: false,
  11869. dialogVisibleGroup2: false,
  11870. updateGroupArray: [],
  11871. updateGroupUser: {},
  11872. deleteGroupUser: [],
  11873. deleteGroupArray: {},
  11874. checkChair: "",
  11875. checkDeleteGroup: [],
  11876. inviteCode: "",
  11877. courseGroupStudent: [],
  11878. courseGroupStudentUid: [],
  11879. courseGroup: {},
  11880. isGroup: false,
  11881. toolIndex: null,
  11882. tool: {},
  11883. isWorkTool: [
  11884. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11885. ], //, 40
  11886. videoJson: {},
  11887. toolType: 0,
  11888. checktoolArray: [],
  11889. vChapterData: [],
  11890. isUpdateToolDetail: false,
  11891. isUpdateToolDetail1: false,
  11892. updateToolDetailInner: "",
  11893. checkboxList: [],
  11894. plIndex: "",
  11895. worksSName2: "",
  11896. worksSid: "",
  11897. wordCloudData: [],
  11898. isPickStudent: [],
  11899. pzStype: 1,
  11900. myAnList: {},
  11901. downLoading: false,
  11902. greyType: false,
  11903. correctWord: [],
  11904. };
  11905. },
  11906. methods: {
  11907. gx(){
  11908. this.$forceUpdate();
  11909. },
  11910. setEnglishList(engList) {
  11911. this.myAnList = engList;
  11912. },
  11913. addToolChoose() {
  11914. if (!this.checktoolArray.length) {
  11915. this.$message.error("请选择要添加的任务");
  11916. return;
  11917. }
  11918. if (
  11919. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11920. this.taskCount
  11921. ].toolChoose[0].tool.length
  11922. ) {
  11923. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11924. this.taskCount
  11925. ].toolChoose[0].tool = this.checktoolArray;
  11926. } else {
  11927. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11928. this.taskCount
  11929. ].toolChoose.push({
  11930. tool: this.checktoolArray,
  11931. toolDetail: "",
  11932. toolType: 0,
  11933. askCount: 1,
  11934. askTitle: "",
  11935. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11936. });
  11937. }
  11938. let params = [
  11939. {
  11940. cid: this.id,
  11941. chapters: JSON.stringify(this.chapInfoList),
  11942. uid: this.userid,
  11943. unitIndex: this.courseType,
  11944. },
  11945. ];
  11946. this.ajax
  11947. .post(this.$store.state.api + "updateWorkNew4", params)
  11948. .then((res) => {
  11949. this.$message({
  11950. message: "添加成功",
  11951. type: "success",
  11952. });
  11953. this.checktoolArray = [];
  11954. this.getCourseDetail(2);
  11955. this.checkBz(
  11956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11957. this.taskCount
  11958. ].toolChoose.length - 1
  11959. );
  11960. this.toolDialogVisible = false;
  11961. this.refreshCourse();
  11962. this.$forceUpdate();
  11963. })
  11964. .catch((err) => {
  11965. console.error(err);
  11966. });
  11967. },
  11968. checkBz(index) {
  11969. this.isUpdateToolDetail = false;
  11970. this.$forceUpdate();
  11971. setTimeout(() => {
  11972. document.scrollingElement.scrollTop =
  11973. document.querySelectorAll(".filebox")[index].offsetTop +
  11974. document.querySelector(".student_body").offsetTop;
  11975. }, 500);
  11976. },
  11977. updateToolDetail(i, type) {
  11978. if (!this.isUpdateToolDetail1 && type == 2) {
  11979. this.toolDetailIndex = i
  11980. this.isUpdateToolDetail1 = true;
  11981. setTimeout(() => {
  11982. this.updateToolDetailInner = JSON.parse(
  11983. JSON.stringify(
  11984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11985. this.taskCount
  11986. ].toolChoose[i].toolDetail
  11987. )
  11988. );
  11989. document.querySelector(".checkTextArea").focus();
  11990. }, 0);
  11991. } else if((this.isUpdateToolDetail1 && type != 2)){
  11992. // this.toolDetailIndex = i;
  11993. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11994. this.taskCount
  11995. ].toolChoose[i].toolDetail = JSON.parse(
  11996. JSON.stringify(this.updateToolDetailInner)
  11997. );
  11998. let params = [
  11999. {
  12000. cid: this.id,
  12001. chapters: JSON.stringify(this.chapInfoList),
  12002. uid: this.userid,
  12003. unitIndex: this.courseType,
  12004. },
  12005. ];
  12006. this.ajax
  12007. .post(this.$store.state.api + "updateWorkNew4", params)
  12008. .then((res) => {
  12009. this.isUpdateToolDetail1 = false;
  12010. this.$message({
  12011. message: "修改成功",
  12012. type: "success",
  12013. });
  12014. this.toolDetailIndex = null;
  12015. this.updateToolDetailInner = "";
  12016. this.getCourseDetail(2);
  12017. this.$forceUpdate();
  12018. })
  12019. .catch((err) => {
  12020. console.error(err);
  12021. });
  12022. } else if((this.isUpdateToolDetail1 && type == 2)){
  12023. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12024. this.taskCount
  12025. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12026. JSON.stringify(this.updateToolDetailInner)
  12027. );
  12028. let params = [
  12029. {
  12030. cid: this.id,
  12031. chapters: JSON.stringify(this.chapInfoList),
  12032. uid: this.userid,
  12033. unitIndex: this.courseType,
  12034. },
  12035. ];
  12036. this.ajax
  12037. .post(this.$store.state.api + "updateWorkNew4", params)
  12038. .then((res) => {
  12039. this.$message({
  12040. message: "修改成功",
  12041. type: "success",
  12042. });
  12043. this.toolDetailIndex = i;
  12044. this.isUpdateToolDetail1 = true;
  12045. setTimeout(() => {
  12046. this.updateToolDetailInner = JSON.parse(
  12047. JSON.stringify(
  12048. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12049. this.taskCount
  12050. ].toolChoose[i].toolDetail
  12051. )
  12052. );
  12053. document.querySelector(".checkTextArea").focus();
  12054. }, 0);
  12055. this.getCourseDetail(2);
  12056. this.$forceUpdate();
  12057. })
  12058. .catch((err) => {
  12059. console.error(err);
  12060. });
  12061. }
  12062. },
  12063. jumpGj(i, j, k, l) {
  12064. for (var z = 0; z < this.navList.length; z++) {
  12065. for (var q = 0; q < this.navList[z].task.length; q++) {
  12066. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12067. this.navList[z].task[q].tool[w].isTool = false;
  12068. }
  12069. }
  12070. }
  12071. console.log(this.navList);
  12072. this.navList[i].task[j].tool[k].isTool =
  12073. !this.navList[i].task[j].tool[k].isTool;
  12074. var a = document.scrollingElement;
  12075. let target = document.querySelector(`#gj${k}`);
  12076. if (target) {
  12077. target.scrollIntoView(true);
  12078. setTimeout(() => {
  12079. a.scrollTop = a.scrollTop - 150;
  12080. }, 0);
  12081. }
  12082. this.navId = ""
  12083. if (l) {
  12084. this.courseType = i;
  12085. // this.navId = l;
  12086. this.taskCount = j;
  12087. this.selectPz();
  12088. this.getHomeWork();
  12089. this.getCourseDetail(2);
  12090. }
  12091. // var b = this.$refs["bz" + k][0];
  12092. // a.scrollTop = b.offsetTop;
  12093. },
  12094. addTools2(i) {
  12095. if (i == 4) {
  12096. // this.openTools2(4);
  12097. this.$message.error("暂未开放");
  12098. return;
  12099. }
  12100. if (i == 45) {
  12101. // this.openTools2(45);
  12102. this.$message.error("暂未开放");
  12103. return;
  12104. }
  12105. if (i == 47) {
  12106. // this.openTools2(47);
  12107. this.$message.error("暂未开放");
  12108. return;
  12109. }
  12110. if (i == 49) {
  12111. // this.openTools2(49);
  12112. this.$message.error("暂未开放");
  12113. return;
  12114. }
  12115. if (i == 62) {
  12116. // this.openTools(itemTaskIndex, 62, toolIndex);
  12117. this.$message.error("暂未开放");
  12118. return;
  12119. }
  12120. if (i == 15) {
  12121. // this.openTools(itemTaskIndex, 15, toolIndex);
  12122. this.$message.error("暂未开放");
  12123. return;
  12124. }
  12125. if (i == 40) {
  12126. // this.openTools(itemTaskIndex, 40, toolIndex);
  12127. this.$message.error("暂未开放");
  12128. return;
  12129. }
  12130. if (i == 41) {
  12131. // this.openTools(itemTaskIndex, 41, toolIndex);
  12132. this.$message.error("暂未开放");
  12133. return;
  12134. }
  12135. if (i == 42) {
  12136. // this.openTools(itemTaskIndex, 42, toolIndex);
  12137. this.$message.error("暂未开放");
  12138. return;
  12139. }
  12140. if (this.checktoolArray.length > 0) {
  12141. if (this.checktoolArray.indexOf(i) != -1) {
  12142. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12143. } else {
  12144. this.checktoolArray = [];
  12145. this.checktoolArray.push(i);
  12146. }
  12147. } else {
  12148. this.checktoolArray.push(i);
  12149. }
  12150. this.$forceUpdate();
  12151. },
  12152. jump() {
  12153. window.parent.postMessage({ tools: "43" }, "*");
  12154. },
  12155. getUpdateMore(f, checkboxList, searchTN, index) {
  12156. this.dialogVisibleMember = f;
  12157. this.checkboxList = checkboxList;
  12158. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12159. this.plIndex = index;
  12160. },
  12161. setPlname(a) {
  12162. if (this.plworkFile.length) {
  12163. this.plworkFile[this.plIndex].username = a;
  12164. } else {
  12165. this.worksSName = a;
  12166. }
  12167. this.dialogVisibleMember = false;
  12168. },
  12169. previewImg(url) {
  12170. this.$hevueImgPreview(url);
  12171. },
  12172. checkImg(list) {
  12173. if (!list.length) {
  12174. return;
  12175. }
  12176. this.$hevueImgPreview({
  12177. multiple: true, // 开启多图预览模式
  12178. imgList: list, // 需要预览的多图数组
  12179. });
  12180. },
  12181. change(val) {
  12182. console.log(val);
  12183. },
  12184. goTo(path) {
  12185. this.$router.push(path);
  12186. },
  12187. handlePictureCardPreview(url) {
  12188. this.dialogImageUrl = url;
  12189. this.pictureDialog = true;
  12190. },
  12191. clean(type) {
  12192. if (type == 1) {
  12193. this.studyJuri[0].cover.splice(0, 1);
  12194. } else if (type == 2) {
  12195. this.studyJuri[0].upVedio.splice(0, 1);
  12196. } else {
  12197. this.studyJuri[0].upFile.splice(0, 1);
  12198. }
  12199. },
  12200. clean2(index) {
  12201. this.plworkFile.splice(index, 1);
  12202. },
  12203. handleClose(done) {
  12204. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12205. this.videoDetail.sources[0].src = "";
  12206. }
  12207. this.commentIndexJson = {};
  12208. done();
  12209. },
  12210. fullTools() {
  12211. this.full = !this.full;
  12212. },
  12213. imgChange(file, fileList, type) {
  12214. if (type == 1) {
  12215. var _tmp = this.studyJuri[0].cover;
  12216. } else if (type == 2) {
  12217. var _tmp = this.studyJuri[0].upVedio;
  12218. } else {
  12219. var _tmp = this.studyJuri[0].upFile;
  12220. }
  12221. this.noneBtnImg = _tmp.length >= 1;
  12222. },
  12223. setContent(bool) {
  12224. this.contentDialog = bool;
  12225. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12226. document.querySelector(".workd_media").style.height = "650px";
  12227. } else if (document.querySelector(".workd_media")) {
  12228. document.querySelector(".workd_media").style.height = "auto";
  12229. }
  12230. },
  12231. setContent2(bool) {
  12232. this.mlDialog = bool;
  12233. if (
  12234. bool &&
  12235. this.contentDialog &&
  12236. document.querySelector(".workd_media")
  12237. ) {
  12238. document.querySelector(".workd_media").style.height = "650px";
  12239. } else if (document.querySelector(".workd_media")) {
  12240. document.querySelector(".workd_media").style.height = "auto";
  12241. }
  12242. },
  12243. openToolAll() {
  12244. this.toolDialogVisible = true;
  12245. },
  12246. addImg(e) {
  12247. var el = e.currentTarget;
  12248. // this.$message.success('触发上传')
  12249. el.getElementsByTagName("input")[0].click();
  12250. e.target.value = "";
  12251. },
  12252. addSelectAnswer() {
  12253. let params = [
  12254. {
  12255. uid: this.userid,
  12256. cid: this.id,
  12257. stage: this.courseType,
  12258. task: this.taskCount,
  12259. tool: this.toolindex,
  12260. content: this.selectAnswer.answer,
  12261. type: 7,
  12262. },
  12263. ];
  12264. this.ajax
  12265. .post(this.$store.state.api + "addCourseWorks", params)
  12266. .then((res) => {
  12267. this.$message({
  12268. message: "提交成功",
  12269. type: "success",
  12270. });
  12271. this.dialogVisibleSelect = false;
  12272. // this.selectAnswer = {};
  12273. this.selectSWorks();
  12274. this.selectStudent();
  12275. })
  12276. .catch((err) => {
  12277. this.$message.error("提交失败");
  12278. console.error(err);
  12279. });
  12280. },
  12281. addSelectAnswerTeacher() {
  12282. let params = [
  12283. {
  12284. uid: this.sStudent.userid,
  12285. cid: this.id,
  12286. stage: this.courseType,
  12287. task: this.taskCount,
  12288. tool: this.toolindex,
  12289. content: this.selectAnswer.answer,
  12290. type: 7,
  12291. },
  12292. ];
  12293. this.ajax
  12294. .post(this.$store.state.api + "addCourseWorks", params)
  12295. .then((res) => {
  12296. this.$message({
  12297. message: "提交成功",
  12298. type: "success",
  12299. });
  12300. this.dialogVisibleSelectTeacher = false;
  12301. // this.selectAnswer = {};
  12302. this.selectSWorks();
  12303. this.selectStudent();
  12304. })
  12305. .catch((err) => {
  12306. this.$message.error("提交失败");
  12307. console.error(err);
  12308. });
  12309. },
  12310. addSenWorks() {
  12311. for (var i = 0; i < this.sentenceList.length; i++) {
  12312. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12313. if (
  12314. this.sentenceList[i].chooseSenList[j] == undefined ||
  12315. this.sentenceList[i].chooseSenList[j] == ""
  12316. ) {
  12317. this.$message.error("请将答案填写完整!");
  12318. return;
  12319. }
  12320. }
  12321. }
  12322. let params = [
  12323. {
  12324. uid: this.userid,
  12325. cid: this.id,
  12326. stage: this.courseType,
  12327. task: this.taskCount,
  12328. tool: this.toolindex,
  12329. content: JSON.stringify(this.sentenceList),
  12330. type: 9,
  12331. },
  12332. ];
  12333. this.ajax
  12334. .post(this.$store.state.api + "addCourseWorks", params)
  12335. .then((res) => {
  12336. this.$message({
  12337. message: "提交成功",
  12338. type: "success",
  12339. });
  12340. this.dialogVisibleSentence = false;
  12341. // this.selectAnswer = {};
  12342. this.selectSWorks();
  12343. this.selectStudent();
  12344. })
  12345. .catch((err) => {
  12346. this.$message.error("提交失败");
  12347. console.error(err);
  12348. });
  12349. },
  12350. addSenWorksTeacher() {
  12351. for (var i = 0; i < this.sentenceList.length; i++) {
  12352. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12353. if (
  12354. this.sentenceList[i].chooseSenList[j] == undefined ||
  12355. this.sentenceList[i].chooseSenList[j] == ""
  12356. ) {
  12357. this.$message.error("请将答案填写完整!");
  12358. return;
  12359. }
  12360. }
  12361. }
  12362. let params = [
  12363. {
  12364. uid: this.sStudent.userid,
  12365. cid: this.id,
  12366. stage: this.courseType,
  12367. task: this.taskCount,
  12368. tool: this.toolindex,
  12369. content: JSON.stringify(this.sentenceList),
  12370. type: 9,
  12371. },
  12372. ];
  12373. this.ajax
  12374. .post(this.$store.state.api + "addCourseWorks", params)
  12375. .then((res) => {
  12376. this.$message({
  12377. message: "提交成功",
  12378. type: "success",
  12379. });
  12380. this.dialogVisibleSentenceTeacher = false;
  12381. // this.selectAnswer = {};
  12382. this.selectSWorks();
  12383. this.selectStudent();
  12384. })
  12385. .catch((err) => {
  12386. this.$message.error("提交失败");
  12387. console.error(err);
  12388. });
  12389. },
  12390. returnTableText() {
  12391. this.$confirm("确定还原此模板吗?", "提示", {
  12392. confirmButtonText: "确定",
  12393. cancelButtonText: "取消",
  12394. type: "warning",
  12395. })
  12396. .then(() => {
  12397. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12398. })
  12399. .catch(() => {});
  12400. },
  12401. addTableWorks() {
  12402. let params = [
  12403. {
  12404. uid: this.userid,
  12405. cid: this.id,
  12406. stage: this.courseType,
  12407. task: this.taskCount,
  12408. tool: this.toolindex,
  12409. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12410. type: 10,
  12411. },
  12412. ];
  12413. this.ajax
  12414. .post(this.$store.state.api + "addCourseWorks", params)
  12415. .then((res) => {
  12416. this.$message({
  12417. message: "提交成功",
  12418. type: "success",
  12419. });
  12420. this.dialogVisibleTable = false;
  12421. // this.selectAnswer = {};
  12422. this.selectSWorks();
  12423. this.selectStudent();
  12424. })
  12425. .catch((err) => {
  12426. this.$message.error("提交失败");
  12427. console.error(err);
  12428. });
  12429. },
  12430. tableRowClassName({ row, rowIndex }) {
  12431. if ((rowIndex + 1) % 2 === 0) {
  12432. return "even_row";
  12433. } else {
  12434. return "";
  12435. }
  12436. },
  12437. addTableWorksTeacher() {
  12438. let params = [
  12439. {
  12440. uid: this.sStudent.userid,
  12441. cid: this.id,
  12442. stage: this.courseType,
  12443. task: this.taskCount,
  12444. tool: this.toolindex,
  12445. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12446. type: 10,
  12447. },
  12448. ];
  12449. this.ajax
  12450. .post(this.$store.state.api + "addCourseWorks", params)
  12451. .then((res) => {
  12452. this.$message({
  12453. message: "提交成功",
  12454. type: "success",
  12455. });
  12456. this.dialogVisibleTableTeacher = false;
  12457. // this.selectAnswer = {};
  12458. this.selectSWorks();
  12459. this.selectStudent();
  12460. })
  12461. .catch((err) => {
  12462. this.$message.error("提交失败");
  12463. console.error(err);
  12464. });
  12465. },
  12466. returnWordText() {
  12467. this.$confirm("确定还原此模板吗?", "提示", {
  12468. confirmButtonText: "确定",
  12469. cancelButtonText: "取消",
  12470. type: "warning",
  12471. })
  12472. .then(() => {
  12473. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12474. })
  12475. .catch(() => {});
  12476. },
  12477. addWordWorks() {
  12478. let params = [
  12479. {
  12480. uid: this.userid,
  12481. cid: this.id,
  12482. stage: this.courseType,
  12483. task: this.taskCount,
  12484. tool: this.toolindex,
  12485. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12486. type: 13,
  12487. atool: 52,
  12488. },
  12489. ];
  12490. this.ajax
  12491. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12492. .then((res) => {
  12493. this.$message({
  12494. message: "提交成功",
  12495. type: "success",
  12496. });
  12497. this.dialogVisibleWord = false;
  12498. // this.selectAnswer = {};
  12499. this.selectSWorks();
  12500. this.selectStudent();
  12501. })
  12502. .catch((err) => {
  12503. this.$message.error("提交失败");
  12504. console.error(err);
  12505. });
  12506. },
  12507. addWordWorksTeacher() {
  12508. let params = [
  12509. {
  12510. uid: this.sStudent.userid,
  12511. cid: this.id,
  12512. stage: this.courseType,
  12513. task: this.taskCount,
  12514. tool: this.toolindex,
  12515. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12516. type: 13,
  12517. atool: 52,
  12518. },
  12519. ];
  12520. this.ajax
  12521. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12522. .then((res) => {
  12523. this.$message({
  12524. message: "提交成功",
  12525. type: "success",
  12526. });
  12527. this.dialogVisibleWordTeacher = false;
  12528. // this.selectAnswer = {};
  12529. this.selectSWorks();
  12530. this.selectStudent();
  12531. })
  12532. .catch((err) => {
  12533. this.$message.error("提交失败");
  12534. console.error(err);
  12535. });
  12536. },
  12537. addCourseWorks(i) {
  12538. var typesql;
  12539. if (this.fileType === 0) {
  12540. typesql = 1;
  12541. } else if (this.fileType === 1) {
  12542. typesql = 4;
  12543. } else if (this.fileType === 2) {
  12544. typesql = 5;
  12545. } else if (this.fileType === 3) {
  12546. typesql = 12;
  12547. }
  12548. if (!this.studyJuri[0].cover[0].url) {
  12549. this.$message.error("请上传文件");
  12550. return;
  12551. }
  12552. let params = [
  12553. {
  12554. uid: this.userid,
  12555. cid: this.id,
  12556. stage: this.courseType,
  12557. task: i,
  12558. tool: this.toolindex,
  12559. content: this.studyJuri[0].cover[0].url,
  12560. type: typesql,
  12561. },
  12562. ];
  12563. this.ajax
  12564. .post(this.$store.state.api + "addCourseWorksR", params)
  12565. .then((res) => {
  12566. this.$message({
  12567. message: "提交成功",
  12568. type: "success",
  12569. });
  12570. this.studyJuri[0].cover = [];
  12571. this.dialogVisible = false;
  12572. this.getCourseDetail(2);
  12573. })
  12574. .catch((err) => {
  12575. this.$message.error("提交失败");
  12576. console.error(err);
  12577. });
  12578. },
  12579. addCourseWorksPl(i) {
  12580. let _files = this.plworkFile;
  12581. var c = 1;
  12582. for (var k = 0; k < _files.length; k++) {
  12583. if (!_files[k].username) {
  12584. c = 2;
  12585. }
  12586. }
  12587. if (c == 2) {
  12588. this.$message.error("请填写学生姓名");
  12589. return;
  12590. }
  12591. let params = [
  12592. {
  12593. ateacher: this.userid,
  12594. cid: this.id,
  12595. stage: this.courseType,
  12596. task: i,
  12597. tool: this.toolindex,
  12598. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12599. },
  12600. ];
  12601. this.ajax
  12602. .post(this.$store.state.api + "addCourseWorksPl", params)
  12603. .then((res) => {
  12604. this.$message({
  12605. message: "提交成功",
  12606. type: "success",
  12607. });
  12608. this.plworkFile = [];
  12609. this.dialogVisiblePl = false;
  12610. this.getCourseDetail(2);
  12611. })
  12612. .catch((err) => {
  12613. this.$message.error("提交失败");
  12614. console.error(err);
  12615. });
  12616. },
  12617. addCourseWorks2(i) {
  12618. var typesql;
  12619. if (this.fileType === 0) {
  12620. typesql = 0;
  12621. } else if (this.fileType === 1) {
  12622. typesql = 1;
  12623. } else if (this.fileType === 2) {
  12624. typesql = 3;
  12625. } else if (this.fileType === 3) {
  12626. typesql = 12;
  12627. }
  12628. if (!this.studyJuri[0].cover[0].url) {
  12629. this.$message.error("请上传文件");
  12630. return;
  12631. }
  12632. let params = [
  12633. {
  12634. uid: this.userid,
  12635. cid: this.id,
  12636. stage: this.courseType,
  12637. task: i,
  12638. tool: this.toolindex,
  12639. content: JSON.stringify({
  12640. type: typesql,
  12641. groupIndex: this.groupIndex,
  12642. url: this.studyJuri[0].cover[0].url,
  12643. }).replaceAll(/%/g, "%25"),
  12644. type: 11,
  12645. atool: 49,
  12646. text: "",
  12647. },
  12648. ];
  12649. this.ajax
  12650. .post(this.$store.state.api + "addCourseWorks5", params)
  12651. .then((res) => {
  12652. this.$message({
  12653. message: "提交成功",
  12654. type: "success",
  12655. });
  12656. this.studyJuri[0].cover = [];
  12657. this.dialogVisibleGroupWork = false;
  12658. this.getCourseDetail(2);
  12659. })
  12660. .catch((err) => {
  12661. this.$message.error("提交失败");
  12662. console.error(err);
  12663. });
  12664. },
  12665. addEnglishWork() {
  12666. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12667. this.$message.error("请输入作文标题和正文!");
  12668. return;
  12669. }
  12670. let params = [
  12671. {
  12672. uid: this.userid,
  12673. cid: this.id,
  12674. stage: this.courseType,
  12675. task: this.taskCount,
  12676. tool: this.englishToolIndex,
  12677. content: JSON.stringify(this.myAnList),
  12678. type: 16,
  12679. atool: 69,
  12680. text: "",
  12681. },
  12682. ];
  12683. this.ajax
  12684. .post(this.$store.state.api + "addCourseWorks5", params)
  12685. .then((res) => {
  12686. this.$message({
  12687. message: "提交成功",
  12688. type: "success",
  12689. });
  12690. this.myAnList = {};
  12691. this.englishList = {};
  12692. this.englishToolIndex = 0;
  12693. this.engDialogVisible = false;
  12694. this.selectSWorks();
  12695. this.selectStudent();
  12696. })
  12697. .catch((err) => {
  12698. this.$message.error("提交失败");
  12699. console.error(err);
  12700. });
  12701. },
  12702. addCourseWorksGong(i, data, tool) {
  12703. let params = [
  12704. {
  12705. uid: this.userid,
  12706. cid: this.id,
  12707. stage: this.courseType,
  12708. task: this.taskCount,
  12709. tool: i,
  12710. content: data,
  12711. type: 12,
  12712. atool: tool,
  12713. text: "",
  12714. },
  12715. ];
  12716. this.ajax
  12717. .post(this.$store.state.api + "addCourseWorks5", params)
  12718. .then((res) => {
  12719. this.$message({
  12720. message: "提交成功",
  12721. type: "success",
  12722. });
  12723. this.studyJuri[0].cover = [];
  12724. this.selectSWorks();
  12725. this.selectStudent();
  12726. })
  12727. .catch((err) => {
  12728. this.$message.error("提交失败");
  12729. console.error(err);
  12730. });
  12731. },
  12732. addCourseWorksGongTeacher(i, data, tool) {
  12733. let params = [
  12734. {
  12735. uid: this.sStudent.userid,
  12736. cid: this.id,
  12737. stage: this.courseType,
  12738. task: this.taskCount,
  12739. tool: i,
  12740. content: data,
  12741. type: 12,
  12742. atool: tool,
  12743. text: "",
  12744. },
  12745. ];
  12746. this.ajax
  12747. .post(this.$store.state.api + "addCourseWorks5", params)
  12748. .then((res) => {
  12749. this.$message({
  12750. message: "提交成功",
  12751. type: "success",
  12752. });
  12753. this.studyJuri[0].cover = [];
  12754. this.dialogVisibleWorks = false;
  12755. this.selectSWorks();
  12756. this.selectStudent();
  12757. })
  12758. .catch((err) => {
  12759. this.$message.error("提交失败");
  12760. console.error(err);
  12761. });
  12762. },
  12763. addCourseWorksGongPl(i, data, tool, type) {
  12764. let params = [
  12765. {
  12766. uid: this.sStudent.userid,
  12767. cid: this.id,
  12768. stage: this.courseType,
  12769. task: this.taskCount,
  12770. tool: i,
  12771. content: data,
  12772. type: type,
  12773. atool: tool,
  12774. text: "",
  12775. },
  12776. ];
  12777. this.ajax
  12778. .post(this.$store.state.api + "addCourseWorks5", params)
  12779. .then((res) => {
  12780. this.$message({
  12781. message: "提交成功",
  12782. type: "success",
  12783. });
  12784. this.studyJuri[0].cover = [];
  12785. this.dialogVisibleWorks = false;
  12786. this.selectSWorks();
  12787. this.selectStudent();
  12788. })
  12789. .catch((err) => {
  12790. this.$message.error("提交失败");
  12791. console.error(err);
  12792. });
  12793. },
  12794. addCourseWorksTeacher(i) {
  12795. var typesql;
  12796. if (this.sTool == 32) {
  12797. this.addCourseWorksGongTeacher(
  12798. this.toolindex,
  12799. this.studyJuri[0].cover[0].url,
  12800. this.sTool
  12801. );
  12802. return;
  12803. }
  12804. if (this.fileType === 0) {
  12805. typesql = 1;
  12806. } else if (this.fileType === 1) {
  12807. typesql = 4;
  12808. } else if (this.fileType === 2) {
  12809. typesql = 5;
  12810. } else if (this.fileType === 3) {
  12811. typesql = 12;
  12812. }
  12813. if (this.sTool == 50) {
  12814. this.addCourseWorksGongPl(
  12815. this.toolindex,
  12816. this.studyJuri[0].cover[0].url,
  12817. this.sTool,
  12818. typesql
  12819. );
  12820. return;
  12821. }
  12822. if (!this.studyJuri[0].cover[0].url) {
  12823. this.$message.error("请上传文件");
  12824. return;
  12825. }
  12826. let params = [
  12827. {
  12828. uid: this.sStudent.userid,
  12829. cid: this.id,
  12830. stage: this.courseType,
  12831. task: i,
  12832. tool: this.toolindex,
  12833. content: this.studyJuri[0].cover[0].url,
  12834. type: typesql,
  12835. ateacher: this.userid,
  12836. },
  12837. ];
  12838. this.ajax
  12839. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12840. .then((res) => {
  12841. this.$message({
  12842. message: "提交成功",
  12843. type: "success",
  12844. });
  12845. this.studyJuri[0].cover = [];
  12846. this.dialogVisibleWorks = false;
  12847. this.getCourseDetail(2);
  12848. })
  12849. .catch((err) => {
  12850. this.$message.error("提交失败");
  12851. console.error(err);
  12852. });
  12853. },
  12854. selectUploadStudent(type) {
  12855. const loading = this.$loading.service({
  12856. background: "rgba(255, 255, 255, 0.7)",
  12857. target: document.body,
  12858. });
  12859. let params = {
  12860. cid: this.uploadCid,
  12861. oid: this.oid,
  12862. cn: "",
  12863. };
  12864. this.ajax
  12865. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12866. .then((res) => {
  12867. loading.close();
  12868. var studentK = [];
  12869. if (this.isWorksS[this.toolindex].length > 0) {
  12870. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12871. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12872. }
  12873. studentK = studentK.join(",");
  12874. }
  12875. this.uploadStudentJuri = res.data[0].filter((el) => {
  12876. return studentK.indexOf(el.userid) == -1;
  12877. });
  12878. if (this.worksSName && this.worksSid) {
  12879. this.uploadStudentJuri.push({
  12880. userid: this.worksSid,
  12881. name: this.worksSName,
  12882. });
  12883. }
  12884. if (type == 1) {
  12885. this.plworkFile = [];
  12886. this.dialogVisibleSname = true;
  12887. } else if (type == 2) {
  12888. this.dialogVisiblePl = true;
  12889. }
  12890. })
  12891. .catch((err) => {
  12892. loading.close();
  12893. console.error(err);
  12894. });
  12895. },
  12896. selectPickStudent() {
  12897. const loading = this.$loading.service({
  12898. background: "rgba(255, 255, 255, 0.7)",
  12899. target: document.body,
  12900. });
  12901. let params = {
  12902. cid: this.uploadCid,
  12903. oid: this.oid,
  12904. cn: "",
  12905. };
  12906. this.ajax
  12907. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12908. .then((res) => {
  12909. loading.close();
  12910. this.uploadStudentJuri = res.data[0];
  12911. this.dialogVisiblePickPeople = true;
  12912. })
  12913. .catch((err) => {
  12914. loading.close();
  12915. console.error(err);
  12916. });
  12917. },
  12918. arrayToArray(arrayo, arrayt) {
  12919. let array1 = arrayo;
  12920. let array2 = arrayt;
  12921. let commonElements = [];
  12922. for (let i = 0; i < array1.length; i++) {
  12923. for (let j = 0; j < array2.length; j++) {
  12924. if (array1[i] === array2[j]) {
  12925. commonElements.push(array1[i]);
  12926. }
  12927. }
  12928. }
  12929. return commonElements;
  12930. },
  12931. selectWorksStudent() {
  12932. let params = {
  12933. oid: this.oid,
  12934. cid: this.courseDetail.juri,
  12935. };
  12936. this.ajax
  12937. .get(this.$store.state.api + "selectWorksStudent", params)
  12938. .then((res) => {
  12939. var a = res.data[0];
  12940. for (var i = 0; i < this.isWorksS.length; i++) {
  12941. this.noWorksS[i] = [];
  12942. var studentK = [];
  12943. if (this.isWorksS[i].length > 0) {
  12944. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12945. studentK.push(this.isWorksS[i][z].uid);
  12946. }
  12947. studentK = studentK.join(",");
  12948. for (var j = 0; j < a.length; j++) {
  12949. if (studentK.indexOf(a[j].userid) == -1) {
  12950. if (this.tcid) {
  12951. // a[j].classid.indexOf(this.tcid) != -1
  12952. if (
  12953. this.arrayToArray(
  12954. a[j].classid.split(","),
  12955. this.tcid.split(",")
  12956. ).length
  12957. ) {
  12958. this.noWorksS[i].push({
  12959. student: a[j].name,
  12960. userid: a[j].userid,
  12961. });
  12962. }
  12963. } else {
  12964. this.noWorksS[i].push({
  12965. student: a[j].name,
  12966. userid: a[j].userid,
  12967. });
  12968. }
  12969. }
  12970. }
  12971. } else {
  12972. for (var k = 0; k < a.length; k++) {
  12973. if (this.tcid) {
  12974. if (
  12975. this.arrayToArray(
  12976. a[k].classid.split(","),
  12977. this.tcid.split(",")
  12978. ).length
  12979. ) {
  12980. this.noWorksS[i].push({
  12981. student: a[k].name,
  12982. userid: a[k].userid,
  12983. });
  12984. }
  12985. } else {
  12986. this.noWorksS[i].push({
  12987. student: a[k].name,
  12988. userid: a[k].userid,
  12989. });
  12990. }
  12991. }
  12992. }
  12993. }
  12994. this.$forceUpdate();
  12995. if (
  12996. Object.keys(this.commentDetail).length &&
  12997. Object.keys(this.commentIndexJson).length &&
  12998. !this.dialogVisibleScore
  12999. ) {
  13000. let a = 1;
  13001. let c = this.commentIndexJson;
  13002. if (
  13003. this.commentIndexJson.gindex ||
  13004. this.commentIndexJson.gindex === 0
  13005. ) {
  13006. for (
  13007. var i = 0;
  13008. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13009. i++
  13010. ) {
  13011. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13012. groupA: for (var k = 0; k < _el.length; k++) {
  13013. let el = _el[k];
  13014. if (el.wid == this.commentDetail.wid) {
  13015. a = 2;
  13016. this.commentOther(
  13017. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13018. this.commentIndexJson.toolIndex,
  13019. k,
  13020. this.commentIndexJson.gindex
  13021. );
  13022. break groupA;
  13023. }
  13024. }
  13025. }
  13026. if (a === 1) {
  13027. this.commentDetail = [];
  13028. this.commentIndexJson = {};
  13029. this.commentDialogVisible = false;
  13030. this.$message("此作业已被删除");
  13031. }
  13032. } else {
  13033. if (this.isGroup && this.commentIndexJson.gid) {
  13034. groupA: for (
  13035. var i = 0;
  13036. i < this.courseGroup.group.length;
  13037. i++
  13038. ) {
  13039. let _group = this.courseGroup.group[i];
  13040. if (_group.id == this.commentIndexJson.gid) {
  13041. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13042. for (var k = 0; k < _el2.length; k++) {
  13043. let el2 = _el2[k];
  13044. if (el2.wid == this.commentDetail.wid) {
  13045. a = 2;
  13046. this.commentOther(
  13047. _el2[k],
  13048. this.commentIndexJson.toolIndex,
  13049. k,
  13050. null,
  13051. this.commentIndexJson.gid
  13052. );
  13053. break groupA;
  13054. }
  13055. }
  13056. }
  13057. }
  13058. }
  13059. if (a == 1) {
  13060. for (
  13061. var i = 0;
  13062. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13063. i++
  13064. ) {
  13065. let el =
  13066. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13067. if (el.wid == this.commentDetail.wid) {
  13068. a = 2;
  13069. this.commentOther(
  13070. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13071. this.commentIndexJson.toolIndex,
  13072. i
  13073. );
  13074. break;
  13075. }
  13076. }
  13077. }
  13078. if (a === 1) {
  13079. this.commentDetail = [];
  13080. this.commentIndexJson = {};
  13081. this.commentDialogVisible = false;
  13082. this.$message("此作业已被删除");
  13083. }
  13084. }
  13085. }
  13086. })
  13087. .catch((err) => {
  13088. console.error(err);
  13089. });
  13090. },
  13091. selectStudent() {
  13092. //学生查看自己作业
  13093. let params = {
  13094. uid: this.userid,
  13095. cid: this.id,
  13096. s: this.courseType,
  13097. t: this.taskCount,
  13098. };
  13099. this.ajax
  13100. .get(this.$store.state.api + "selectStudentWorks", params)
  13101. .then((res) => {
  13102. var a =
  13103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13104. this.taskCount
  13105. ].toolChoose;
  13106. var b = res.data[0];
  13107. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13108. var y = [
  13109. "AVI",
  13110. "NAVI",
  13111. "MPEG",
  13112. "ASF",
  13113. "MOV",
  13114. "WMV",
  13115. "3GP",
  13116. "RM",
  13117. "RMVB",
  13118. "FLV",
  13119. "F4V",
  13120. "H.264",
  13121. "H.265",
  13122. "REAL VIDEO",
  13123. "MKV",
  13124. "WebM",
  13125. "HDDVD",
  13126. "MP4",
  13127. "MPG",
  13128. "M4V",
  13129. "MGV",
  13130. "OGV",
  13131. "QTM",
  13132. "STR",
  13133. "AMC",
  13134. "DVX",
  13135. "EVO",
  13136. "DAT",
  13137. "OGG",
  13138. "OGM",
  13139. ];
  13140. for (var i = 0; i < a.length; i++) {
  13141. this.workStudent[i] = [];
  13142. for (var j = 0; j < b.length; j++) {
  13143. if (i == b[j].tool) {
  13144. if (
  13145. (b[j].type == 1 ||
  13146. b[j].type == 4 ||
  13147. b[j].type == 5 ||
  13148. b[j].type == 6 ||
  13149. b[j].type == 12 ||
  13150. b[j].type == 7) &&
  13151. a[i].tool[0] != 15 &&
  13152. a[i].tool[0] != 4 &&
  13153. a[i].tool[0] != 45 &&
  13154. a[i].tool[0] != 50 &&
  13155. a[i].tool[0] != 32 &&
  13156. a[i].tool[0] != 57 &&
  13157. a[i].tool[0] != 52 &&
  13158. a[i].tool[0] != 69
  13159. ) {
  13160. if (
  13161. c.indexOf(
  13162. b[j].content
  13163. .split(".")
  13164. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13165. ) != -1 &&
  13166. a[i].tool[0] == 16 &&
  13167. b[j].atool != 50
  13168. ) {
  13169. this.workStudent[i].push({
  13170. works: b[j].content,
  13171. sName: b[j].name,
  13172. score: b[j].score,
  13173. img: b[j].img,
  13174. type: 1,
  13175. time: b[j].time,
  13176. userid: b[j].userid,
  13177. wid: b[j].id,
  13178. });
  13179. } else if (
  13180. y.indexOf(
  13181. b[j].content
  13182. .split(".")
  13183. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13184. ) != -1 &&
  13185. a[i].tool[0] == 16 &&
  13186. b[j].atool != 50
  13187. ) {
  13188. this.workStudent[i].push({
  13189. userid: b[j].userid,
  13190. wid: b[j].id,
  13191. works: b[j].content,
  13192. sName: b[j].name,
  13193. score: b[j].score,
  13194. img: b[j].img,
  13195. type: 3,
  13196. time: b[j].time,
  13197. });
  13198. } else if (b[j].type == 6 && b[j].atool != 50) {
  13199. this.workStudent[i].push({
  13200. userid: b[j].userid,
  13201. wid: b[j].id,
  13202. works: b[j].content,
  13203. sName: b[j].name,
  13204. score: b[j].score,
  13205. img: b[j].img,
  13206. type: 4,
  13207. time: b[j].time,
  13208. });
  13209. } else if (b[j].type == 7 && b[j].atool != 50) {
  13210. this.workStudent[i].push({
  13211. userid: b[j].userid,
  13212. wid: b[j].id,
  13213. works: b[j].content,
  13214. sName: b[j].name,
  13215. score: b[j].score,
  13216. img: b[j].img,
  13217. type: 5,
  13218. time: b[j].time,
  13219. });
  13220. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13221. this.workStudent[i].push({
  13222. works: b[j].content,
  13223. sName: b[j].name,
  13224. score: b[j].score,
  13225. img: b[j].img,
  13226. type: 12,
  13227. time: b[j].time,
  13228. userid: b[j].userid,
  13229. wid: b[j].id,
  13230. });
  13231. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13232. this.workStudent[i].push({
  13233. works: b[j].content,
  13234. sName: b[j].name,
  13235. score: b[j].score,
  13236. img: b[j].img,
  13237. type: 0,
  13238. time: b[j].time,
  13239. userid: b[j].userid,
  13240. wid: b[j].id,
  13241. });
  13242. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13243. this.workStudent[i].push({
  13244. works: b[j].content,
  13245. sName: b[j].name,
  13246. score: b[j].score,
  13247. img: b[j].img,
  13248. type: 0,
  13249. time: b[j].time,
  13250. userid: b[j].userid,
  13251. wid: b[j].id,
  13252. });
  13253. }
  13254. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13255. this.workStudent[i].push({
  13256. works: b[j].content,
  13257. sName: b[j].name,
  13258. score: b[j].score,
  13259. img: b[j].img,
  13260. type: 2,
  13261. time: b[j].time,
  13262. userid: b[j].userid,
  13263. wid: b[j].id,
  13264. });
  13265. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13266. //问卷
  13267. this.workStudent[i].push({
  13268. works: b[j].content,
  13269. sName: b[j].name,
  13270. score: b[j].score,
  13271. img: b[j].img,
  13272. type: 2,
  13273. time: b[j].time,
  13274. userid: b[j].userid,
  13275. wid: b[j].id,
  13276. });
  13277. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13278. //选择题
  13279. this.workStudent[i].push({
  13280. works: b[j].content,
  13281. sName: b[j].name,
  13282. score: b[j].score,
  13283. img: b[j].img,
  13284. type: 8,
  13285. time: b[j].time,
  13286. userid: b[j].userid,
  13287. wid: b[j].id,
  13288. });
  13289. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13290. //选择题
  13291. this.workStudent[i].push({
  13292. works: b[j].content,
  13293. sName: b[j].name,
  13294. score: b[j].score,
  13295. img: b[j].img,
  13296. type: 9,
  13297. time: b[j].time,
  13298. userid: b[j].userid,
  13299. wid: b[j].id,
  13300. });
  13301. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13302. //选择题
  13303. this.workStudent[i].push({
  13304. works: b[j].content,
  13305. sName: b[j].name,
  13306. score: b[j].score,
  13307. img: b[j].img,
  13308. type: 10,
  13309. time: b[j].time,
  13310. userid: b[j].userid,
  13311. wid: b[j].id,
  13312. });
  13313. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13314. //选择题
  13315. this.workStudent[i].push({
  13316. works: b[j].content,
  13317. sName: b[j].name,
  13318. score: b[j].score,
  13319. img: b[j].img,
  13320. type: 13,
  13321. time: b[j].time,
  13322. userid: b[j].userid,
  13323. wid: b[j].id,
  13324. });
  13325. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13326. //选择题
  13327. this.workStudent[i].push({
  13328. works: b[j].content,
  13329. sName: b[j].name,
  13330. score: b[j].score,
  13331. img: b[j].img,
  13332. type: 12,
  13333. time: b[j].time,
  13334. userid: b[j].userid,
  13335. wid: b[j].id,
  13336. });
  13337. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13338. //选择题
  13339. this.workStudent[i].push({
  13340. works: b[j].content,
  13341. sName: b[j].name,
  13342. score: b[j].score,
  13343. img: b[j].img,
  13344. type: 12,
  13345. time: b[j].time,
  13346. userid: b[j].userid,
  13347. wid: b[j].id,
  13348. });
  13349. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13350. //选择题
  13351. this.workStudent[i].push({
  13352. works: b[j].content,
  13353. sName: b[j].name,
  13354. score: b[j].score,
  13355. img: b[j].img,
  13356. type: 15,
  13357. time: b[j].time,
  13358. userid: b[j].userid,
  13359. wid: b[j].id,
  13360. });
  13361. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13362. //英语写作
  13363. this.workStudent[i].push({
  13364. works: b[j].content,
  13365. sName: b[j].name,
  13366. score: b[j].score,
  13367. img: b[j].img,
  13368. type: 16,
  13369. time: b[j].time,
  13370. userid: b[j].userid,
  13371. wid: b[j].id,
  13372. aiCode: b[j].aiCode,
  13373. teacherCode: b[j].teacherCode
  13374. });
  13375. }
  13376. }
  13377. }
  13378. }
  13379. })
  13380. .catch((err) => {
  13381. console.error(err);
  13382. });
  13383. },
  13384. openVideo(w) {
  13385. this.videoDetail = {};
  13386. this.playerOptions1.sources[0].src = w.works;
  13387. this.videoDetail = this.playerOptions1;
  13388. this.videoVisible = true;
  13389. },
  13390. isLikes(wid, uid, t, c, isLikes) {
  13391. if (isLikes == false) {
  13392. let params = [
  13393. {
  13394. wid: wid,
  13395. lid: uid,
  13396. t: t,
  13397. c: c,
  13398. },
  13399. ];
  13400. this.ajax
  13401. .post(this.$store.state.api + "insertComment", params)
  13402. .then((res) => {
  13403. this.$message({
  13404. message: "点赞成功",
  13405. type: "success",
  13406. });
  13407. this.selectSWorks();
  13408. this.selectStudent();
  13409. })
  13410. .catch((err) => {
  13411. this.$message.error("点赞失败");
  13412. console.error(err);
  13413. });
  13414. } else {
  13415. let params = {
  13416. wid: wid,
  13417. lid: uid,
  13418. type: t,
  13419. };
  13420. this.ajax
  13421. .get(this.$store.state.api + "deleteComment", params)
  13422. .then((res) => {
  13423. this.$message({
  13424. message: "取消点赞成功",
  13425. type: "success",
  13426. });
  13427. this.selectSWorks();
  13428. this.selectStudent();
  13429. })
  13430. .catch((err) => {
  13431. console.error(err);
  13432. });
  13433. }
  13434. },
  13435. deleteComment(wid) {
  13436. this.$confirm("确定删除此评论吗?", "提示", {
  13437. confirmButtonText: "确定",
  13438. cancelButtonText: "取消",
  13439. type: "warning",
  13440. })
  13441. .then(() => {
  13442. let params = {
  13443. id: wid,
  13444. };
  13445. this.ajax
  13446. .get(this.$store.state.api + "deleteComment2", params)
  13447. .then((res) => {
  13448. this.$message({
  13449. message: "删除评论成功",
  13450. type: "success",
  13451. });
  13452. this.selectSWorks();
  13453. this.selectStudent();
  13454. })
  13455. .catch((err) => {
  13456. console.error(err);
  13457. });
  13458. })
  13459. .catch(() => {});
  13460. },
  13461. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13462. this.commentIndexJson = {
  13463. toolIndex: toolIndex,
  13464. wIndex: wIndex,
  13465. gindex: gindex,
  13466. gid: gid,
  13467. };
  13468. this.commentDetail = [];
  13469. this.commentDialogVisible = true;
  13470. this.commentDetail = w;
  13471. if (w.works && w.type == 1) {
  13472. this.pptImgUrl = "";
  13473. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13474. if (
  13475. a.indexOf(
  13476. w.works
  13477. .split(".")
  13478. [w.works.split(".").length - 1].toLocaleUpperCase()
  13479. ) != -1
  13480. ) {
  13481. this.pptImgUrl =
  13482. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13483. this.showPDF = false;
  13484. } else if (
  13485. w.works
  13486. .split(".")
  13487. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13488. ) {
  13489. this.pptImgUrl = w.works;
  13490. this.showPDF = true;
  13491. }
  13492. } else if (w.works && w.type == 3) {
  13493. this.videoDetail = {};
  13494. this.playerOptions1.sources[0].src = w.works;
  13495. this.videoDetail = this.playerOptions1;
  13496. // this.videoVisible = true;
  13497. } else if (w.works && w.type == 4) {
  13498. this.eScore = JSON.parse(w.works);
  13499. this.rateJson =
  13500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13501. this.taskCount
  13502. ].toolChoose[toolIndex].rateJson;
  13503. } else if (w.works && w.type == 10) {
  13504. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13505. } else if (w.works && w.type == 13) {
  13506. this.wordJson =
  13507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13508. this.taskCount
  13509. ].toolChoose[toolIndex].wordJson;
  13510. }
  13511. },
  13512. openScore(w) {
  13513. this.wScore = 0;
  13514. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13515. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13516. this.commentDetail = [];
  13517. this.dialogVisibleScore = true;
  13518. this.commentDetail = w;
  13519. if (w.works && w.type == 1) {
  13520. this.pptImgUrl = "";
  13521. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13522. if (
  13523. a.indexOf(
  13524. w.works
  13525. .split(".")
  13526. [w.works.split(".").length - 1].toLocaleUpperCase()
  13527. ) != -1
  13528. ) {
  13529. this.pptImgUrl =
  13530. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13531. this.showPDF = false;
  13532. } else if (
  13533. w.works
  13534. .split(".")
  13535. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13536. ) {
  13537. this.pptImgUrl = w.works;
  13538. this.showPDF = true;
  13539. }
  13540. } else if (w.works && w.type == 3) {
  13541. this.videoDetail = {};
  13542. this.playerOptions1.sources[0].src = w.works;
  13543. this.videoDetail = this.playerOptions1;
  13544. }
  13545. },
  13546. addComment(wid, uid, t) {
  13547. if (this.commentText == "") {
  13548. this.$message.error("请输入评论");
  13549. return;
  13550. }
  13551. let params2 = [
  13552. {
  13553. wid: wid,
  13554. lid: uid,
  13555. t: t,
  13556. },
  13557. ];
  13558. this.ajax
  13559. .post(this.$store.state.api + "getComment", params2)
  13560. .then((res) => {
  13561. if (res.data[0].length > 0) {
  13562. this.$message.error("一个作业只能评论一条");
  13563. } else {
  13564. let params = [
  13565. {
  13566. wid: wid,
  13567. lid: uid,
  13568. t: t,
  13569. c: this.commentText,
  13570. },
  13571. ];
  13572. this.ajax
  13573. .post(this.$store.state.api + "insertComment", params)
  13574. .then((res) => {
  13575. this.$message({
  13576. message: "评论成功",
  13577. type: "success",
  13578. });
  13579. this.commentText = "";
  13580. this.selectSWorks();
  13581. this.selectStudent();
  13582. })
  13583. .catch((err) => {
  13584. this.$message.error("评论失败");
  13585. console.error(err);
  13586. });
  13587. }
  13588. })
  13589. .catch((err) => {
  13590. // this.$message.error("评论失败");
  13591. console.error(err);
  13592. });
  13593. },
  13594. scoreWork(wid) {
  13595. if (this.wScore == 0) {
  13596. this.$message.error("请评分");
  13597. return;
  13598. }
  13599. let params = [
  13600. {
  13601. wid: wid,
  13602. score: JSON.stringify({
  13603. wScore: this.wScore,
  13604. detail: this.scoreDetail,
  13605. }),
  13606. },
  13607. ];
  13608. this.ajax
  13609. .post(this.$store.state.api + "scoreWork", params)
  13610. .then((res) => {
  13611. this.$message({
  13612. message: "评分成功",
  13613. type: "success",
  13614. });
  13615. this.wScore = 0;
  13616. this.scoreDetail = "";
  13617. this.dialogVisibleScore = false;
  13618. this.selectSWorks();
  13619. this.selectStudent();
  13620. })
  13621. .catch((err) => {
  13622. this.$message.error("评分失败");
  13623. console.error(err);
  13624. });
  13625. },
  13626. openXz(w, i) {
  13627. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13628. .taskJson[this.taskCount].toolChoose[i].selectJson
  13629. ? JSON.parse(
  13630. JSON.stringify(
  13631. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13632. this.taskCount
  13633. ].toolChoose[i].selectJson
  13634. )
  13635. )
  13636. : { url: "", select: [], answer: [] };
  13637. var a = w.works.split(",");
  13638. for (var k = 0; k < a.length; k++) {
  13639. a[k] = parseInt(a[k]);
  13640. }
  13641. this.selectAnswer = { answer: a, stu: w.sName };
  13642. this.isSelect = true;
  13643. this.dialogVisibleSelect = true;
  13644. },
  13645. openSen(w, i) {
  13646. this.sentenceList1 = JSON.parse(w.works);
  13647. this.sentenceList1.stuName = w.sName;
  13648. this.dialogVisibleSentence1 = true;
  13649. },
  13650. openPj(w, toolindex) {
  13651. this.isStar = true;
  13652. this.eScore = JSON.parse(w);
  13653. this.rateJson =
  13654. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13655. this.taskCount
  13656. ].toolChoose[toolindex].rateJson;
  13657. this.studentEvalDialogVisible = true;
  13658. },
  13659. openEnglishEva(id,i){
  13660. let params = {
  13661. wid: id
  13662. };
  13663. this.ajax
  13664. .get(this.$store.state.api + "selectEngWork", params)
  13665. .then((res) => {
  13666. this.evaEngJson.message = res.data[0][0];
  13667. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13668. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13669. .toolChoose[i].englishList;
  13670. this.engEvaDialogVisible = true;
  13671. })
  13672. .catch((err) => {
  13673. console.error(err);
  13674. });
  13675. },
  13676. deleteWorks(id) {
  13677. this.$confirm("确定删除此作业吗?", "提示", {
  13678. confirmButtonText: "确定",
  13679. cancelButtonText: "取消",
  13680. type: "warning",
  13681. })
  13682. .then(() => {
  13683. let params = [
  13684. {
  13685. id: id,
  13686. },
  13687. ];
  13688. this.ajax
  13689. .post(this.$store.state.api + "deleteCourseWork", params)
  13690. .then((res) => {
  13691. this.$message({
  13692. message: "删除成功",
  13693. type: "success",
  13694. });
  13695. this.selectStudent();
  13696. this.selectSWorks();
  13697. this.selectSLook();
  13698. })
  13699. .catch((err) => {
  13700. this.$message.error("网络异常");
  13701. console.error(err);
  13702. });
  13703. })
  13704. .catch(() => {});
  13705. },
  13706. selectSWorks(gindex) {
  13707. //教师查看全部作业
  13708. let params = {
  13709. cid: this.id,
  13710. s: this.courseType,
  13711. t: this.taskCount,
  13712. };
  13713. this.ajax
  13714. .get(this.$store.state.api + "selectSWorks", params)
  13715. .then((res) => {
  13716. var a =
  13717. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13718. this.taskCount
  13719. ].toolChoose;
  13720. var b = res.data[0];
  13721. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13722. var y = [
  13723. "AVI",
  13724. "NAVI",
  13725. "MPEG",
  13726. "ASF",
  13727. "MOV",
  13728. "WMV",
  13729. "3GP",
  13730. "RM",
  13731. "RMVB",
  13732. "FLV",
  13733. "F4V",
  13734. "H.264",
  13735. "H.265",
  13736. "REAL VIDEO",
  13737. "MKV",
  13738. "WebM",
  13739. "HDDVD",
  13740. "MP4",
  13741. "MPG",
  13742. "M4V",
  13743. "MGV",
  13744. "OGV",
  13745. "QTM",
  13746. "STR",
  13747. "AMC",
  13748. "DVX",
  13749. "EVO",
  13750. "DAT",
  13751. "OGG",
  13752. "OGM",
  13753. ];
  13754. var d = res.data[1];
  13755. var e = res.data[2];
  13756. var f = res.data[3];
  13757. let _worksStudent = [];
  13758. var _worksStudent2 = [];
  13759. for (var i = 0; i < a.length; i++) {
  13760. _worksStudent[i] = [];
  13761. _worksStudent2[i] = [];
  13762. if (
  13763. !this.isCloseList[i] ||
  13764. this.isCloseList[i].isClose == undefined
  13765. ) {
  13766. this.isCloseList[i] = { isClose: 0 };
  13767. }
  13768. this.groupStudent[i] = [];
  13769. this.groupStudentUid[i] = [];
  13770. if (this.isGroup) {
  13771. for (
  13772. var groupI = 0;
  13773. groupI < this.courseGroup.group.length;
  13774. groupI++
  13775. ) {
  13776. this.courseGroup.group[groupI].works[i] = [];
  13777. }
  13778. }
  13779. this.isWorksS[i] = [];
  13780. this.checkJson[i] = [];
  13781. if (a[i].tool[0] == 49) {
  13782. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13783. this.groupStudent[i][gA] = [];
  13784. this.groupStudentUid[i][gA] = [];
  13785. _worksStudent[i][gA] = [];
  13786. _worksStudent2[i][gA] = [];
  13787. this.isCloseList[i][gA] = [];
  13788. for (var g = 0; g < f.length; g++) {
  13789. if (
  13790. f[g].ttype == 2 &&
  13791. this.tcid &&
  13792. this.arrayToArray(
  13793. f[g].classid.split(","),
  13794. this.tcid.split(",")
  13795. ).length == 0
  13796. ) {
  13797. continue;
  13798. }
  13799. if (gA == f[g].group && f[g].tool == i) {
  13800. this.groupStudent[i][gA].push(f[g]);
  13801. this.groupStudentUid[i][gA].push(f[g].userid);
  13802. }
  13803. }
  13804. }
  13805. this.$forceUpdate();
  13806. }
  13807. for (var j = 0; j < b.length; j++) {
  13808. if (
  13809. b[j].ttype == 2 &&
  13810. this.tcid &&
  13811. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13812. .length == 0
  13813. ) {
  13814. continue;
  13815. }
  13816. var likesCount = 0;
  13817. var commentCount = 0;
  13818. var isLikes = false;
  13819. var commentJson = [];
  13820. var data = b[j];
  13821. if (i == b[j].tool) {
  13822. if (data.type == 2 && a[i].tool[0] == 4) {
  13823. // if(JSON.parse(data.content)[0].anwer){
  13824. var checkL =
  13825. JSON.parse(data.content)[0].anwer instanceof Array
  13826. ? JSON.parse(data.content)[0].anwer
  13827. : JSON.parse(data.content)[0].anwer.split(",");
  13828. for (var z = 0; z < checkL.length; z++) {
  13829. if (!this.checkJson[i][z]) {
  13830. this.checkJson[i].push({
  13831. checkCount: [],
  13832. checkPerson: [],
  13833. rightPerson: [],
  13834. });
  13835. }
  13836. if (!this.checkJson[i][z].checkCount.length) {
  13837. this.checkJson[i][z].checkCount = [];
  13838. let _askItemCount = JSON.parse(data.content)[0].askJson
  13839. .askJson[z].askItem;
  13840. for (var aic = 0; aic < _askItemCount; aic++) {
  13841. this.checkJson[i][z].checkCount.push(0);
  13842. }
  13843. }
  13844. if (checkL[z] instanceof Array) {
  13845. if (
  13846. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13847. checkL[z].sort().join(",")
  13848. ) {
  13849. this.checkJson[i][z].rightPerson.push(data.name);
  13850. }
  13851. for (var q = 0; q < checkL[z].length; q++) {
  13852. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13853. ? this.checkJson[i][z].checkPerson[
  13854. parseInt(checkL[z][q])
  13855. ].push(data.name)
  13856. : (this.checkJson[i][z].checkPerson[
  13857. parseInt(checkL[z][q])
  13858. ] = [data.name]);
  13859. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13860. ? this.checkJson[i][z].checkCount[
  13861. parseInt(checkL[z][q])
  13862. ]++
  13863. : (this.checkJson[i][z].checkCount[
  13864. parseInt(checkL[z][q])
  13865. ] = 1);
  13866. }
  13867. } else {
  13868. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13869. this.checkJson[i][z].rightPerson.push(data.name);
  13870. }
  13871. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13872. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13873. ? this.checkJson[i][z].checkPerson[
  13874. parseInt(checkL[z])
  13875. ].push(data.name)
  13876. : (this.checkJson[i][z].checkPerson[
  13877. parseInt(checkL[z])
  13878. ] = [data.name]);
  13879. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13880. ? this.checkJson[i][z].checkCount[
  13881. parseInt(checkL[z])
  13882. ]++
  13883. : (this.checkJson[i][z].checkCount[
  13884. parseInt(checkL[z])
  13885. ] = 1);
  13886. }
  13887. }
  13888. }
  13889. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13890. var checkL = JSON.parse(data.content)[0].anwer;
  13891. for (var z = 0; z < checkL.length; z++) {
  13892. if (!this.checkJson[i][z]) {
  13893. this.checkJson[i].push({
  13894. checkCount: [],
  13895. checkPerson: [],
  13896. rightPerson: [],
  13897. });
  13898. }
  13899. if (!this.checkJson[i][z].checkCount.length) {
  13900. this.checkJson[i][z].checkCount = [];
  13901. let _askItemCount = JSON.parse(data.content)[0].testJson
  13902. .testJson[z].testItem;
  13903. for (var aic = 0; aic < _askItemCount; aic++) {
  13904. this.checkJson[i][z].checkCount.push(0);
  13905. }
  13906. }
  13907. if (checkL[z] instanceof Array) {
  13908. if (
  13909. JSON.parse(data.content)[0]
  13910. .testJson.testJson[z].answer.sort()
  13911. .join(",") == checkL[z].sort().join(",")
  13912. ) {
  13913. this.checkJson[i][z].rightPerson.push(data.name);
  13914. }
  13915. for (var q = 0; q < checkL[z].length; q++) {
  13916. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13917. ? this.checkJson[i][z].checkPerson[
  13918. parseInt(checkL[z][q])
  13919. ].push(data.name)
  13920. : (this.checkJson[i][z].checkPerson[
  13921. parseInt(checkL[z][q])
  13922. ] = [data.name]);
  13923. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13924. ? this.checkJson[i][z].checkCount[
  13925. parseInt(checkL[z][q])
  13926. ]++
  13927. : (this.checkJson[i][z].checkCount[
  13928. parseInt(checkL[z][q])
  13929. ] = 1);
  13930. }
  13931. } else {
  13932. if (
  13933. JSON.parse(data.content)[0].testJson.testJson[z]
  13934. .answer == checkL[z]
  13935. ) {
  13936. this.checkJson[i][z].rightPerson.push(data.name);
  13937. }
  13938. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13939. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13940. ? this.checkJson[i][z].checkPerson[
  13941. parseInt(checkL[z])
  13942. ].push(data.name)
  13943. : (this.checkJson[i][z].checkPerson[
  13944. parseInt(checkL[z])
  13945. ] = [data.name]);
  13946. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13947. ? this.checkJson[i][z].checkCount[
  13948. parseInt(checkL[z])
  13949. ]++
  13950. : (this.checkJson[i][z].checkCount[
  13951. parseInt(checkL[z])
  13952. ] = 1);
  13953. }
  13954. }
  13955. }
  13956. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13957. var checkL = JSON.parse(data.content);
  13958. for (var z = 0; z < checkL.length; z++) {
  13959. if (!this.checkJson[i][z]) {
  13960. this.checkJson[i].push({
  13961. checkCount: [],
  13962. checkPerson: [],
  13963. rightPerson: [],
  13964. });
  13965. }
  13966. this.checkJson[i][z].checkPerson.push(data.name);
  13967. if (
  13968. checkL[z].chooseSenList.toString() ==
  13969. checkL[z].rightAnswer.toString()
  13970. ) {
  13971. this.checkJson[i][z].rightPerson.push(data.name);
  13972. }
  13973. }
  13974. }
  13975. for (var k = 0; k < d.length; k++) {
  13976. //点赞
  13977. if (d[k].workId == b[j].id) {
  13978. likesCount++;
  13979. if (d[k].likesId == this.userid) {
  13980. isLikes = true;
  13981. }
  13982. }
  13983. }
  13984. for (var l = 0; l < e.length; l++) {
  13985. //评论
  13986. if (e[l].workId == b[j].id) {
  13987. if (e[l].comment != "") {
  13988. commentCount++;
  13989. commentJson.push({
  13990. commentText: e[l].comment,
  13991. commentTime: e[l].commentTime,
  13992. commentPeople: e[l].commentPeople,
  13993. userid: e[l].userid,
  13994. wid: e[l].id,
  13995. });
  13996. }
  13997. }
  13998. }
  13999. if (
  14000. (b[j].type == 1 ||
  14001. b[j].type == 4 ||
  14002. b[j].type == 5 ||
  14003. b[j].type == 6 ||
  14004. b[j].type == 12 ||
  14005. b[j].type == 7) &&
  14006. a[i].tool[0] != 15 &&
  14007. a[i].tool[0] != 4 &&
  14008. a[i].tool[0] != 45 &&
  14009. a[i].tool[0] != 50 &&
  14010. a[i].tool[0] != 32 &&
  14011. a[i].tool[0] != 57 &&
  14012. a[i].tool[0] != 52
  14013. ) {
  14014. if (
  14015. c.indexOf(
  14016. b[j].content
  14017. .split(".")
  14018. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14019. ) != -1 &&
  14020. a[i].tool[0] == 16 &&
  14021. b[j].atool != 50
  14022. ) {
  14023. let _works = {
  14024. userid: b[j].userid,
  14025. ateacher: b[j].ateacher,
  14026. wid: b[j].id,
  14027. works: b[j].content,
  14028. sName: b[j].name,
  14029. type: 1,
  14030. time: b[j].time,
  14031. score: b[j].score,
  14032. img: b[j].img,
  14033. likesCount: likesCount,
  14034. commentCount: commentCount,
  14035. isLikes: isLikes,
  14036. commentJson: commentJson,
  14037. };
  14038. if (this.isGroup) {
  14039. let isGw = 1;
  14040. for (
  14041. var groupI = 0;
  14042. groupI < this.courseGroup.group.length;
  14043. groupI++
  14044. ) {
  14045. let gid = this.courseGroup.group[groupI].id;
  14046. if (
  14047. this.courseGroupStudentUid[gid].indexOf(
  14048. b[j].userid
  14049. ) != -1
  14050. ) {
  14051. isGw = 2;
  14052. this.courseGroup.group[groupI].works[i].push(_works);
  14053. break;
  14054. }
  14055. }
  14056. if (isGw == 1) {
  14057. _worksStudent[i].push(_works);
  14058. }
  14059. } else {
  14060. _worksStudent[i].push(_works);
  14061. }
  14062. _worksStudent2[i].push(_works);
  14063. this.isWorksS[i].push({
  14064. uid: b[j].userid,
  14065. sName: b[j].name,
  14066. });
  14067. } else if (
  14068. y.indexOf(
  14069. b[j].content
  14070. .split(".")
  14071. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14072. ) != -1 &&
  14073. a[i].tool[0] == 16 &&
  14074. b[j].atool != 50
  14075. ) {
  14076. let _works = {
  14077. userid: b[j].userid,
  14078. ateacher: b[j].ateacher,
  14079. wid: b[j].id,
  14080. works: b[j].content,
  14081. sName: b[j].name,
  14082. type: 3,
  14083. time: b[j].time,
  14084. score: b[j].score,
  14085. img: b[j].img,
  14086. likesCount: likesCount,
  14087. commentCount: commentCount,
  14088. isLikes: isLikes,
  14089. commentJson: commentJson,
  14090. };
  14091. if (this.isGroup) {
  14092. let isGw = 1;
  14093. for (
  14094. var groupI = 0;
  14095. groupI < this.courseGroup.group.length;
  14096. groupI++
  14097. ) {
  14098. let gid = this.courseGroup.group[groupI].id;
  14099. if (
  14100. this.courseGroupStudentUid[gid].indexOf(
  14101. b[j].userid
  14102. ) != -1
  14103. ) {
  14104. isGw = 2;
  14105. this.courseGroup.group[groupI].works[i].push(_works);
  14106. break;
  14107. }
  14108. }
  14109. if (isGw == 1) {
  14110. _worksStudent[i].push(_works);
  14111. }
  14112. } else {
  14113. _worksStudent[i].push(_works);
  14114. }
  14115. _worksStudent2[i].push(_works);
  14116. this.isWorksS[i].push({
  14117. uid: b[j].userid,
  14118. sName: b[j].name,
  14119. });
  14120. } else if (b[j].type == 6 && b[j].atool != 50) {
  14121. let _works = {
  14122. userid: b[j].userid,
  14123. ateacher: b[j].ateacher,
  14124. wid: b[j].id,
  14125. works: b[j].content,
  14126. sName: b[j].name,
  14127. type: 4,
  14128. time: b[j].time,
  14129. score: b[j].score,
  14130. img: b[j].img,
  14131. likesCount: likesCount,
  14132. commentCount: commentCount,
  14133. isLikes: isLikes,
  14134. commentJson: commentJson,
  14135. };
  14136. _worksStudent[i].push(_works);
  14137. _worksStudent2[i].push(_works);
  14138. this.isWorksS[i].push({
  14139. uid: b[j].userid,
  14140. sName: b[j].name,
  14141. });
  14142. } else if (b[j].type == 7 && b[j].atool != 50) {
  14143. let _work = {
  14144. userid: b[j].userid,
  14145. ateacher: b[j].ateacher,
  14146. wid: b[j].id,
  14147. works: b[j].content,
  14148. sName: b[j].name,
  14149. type: 5,
  14150. time: b[j].time,
  14151. score: b[j].score,
  14152. img: b[j].img,
  14153. likesCount: likesCount,
  14154. commentCount: commentCount,
  14155. isLikes: isLikes,
  14156. commentJson: commentJson,
  14157. };
  14158. _worksStudent[i].push(_work);
  14159. _worksStudent2[i].push(_work);
  14160. this.isWorksS[i].push({
  14161. uid: b[j].userid,
  14162. sName: b[j].name,
  14163. });
  14164. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14165. let _works = {
  14166. userid: b[j].userid,
  14167. ateacher: b[j].ateacher,
  14168. wid: b[j].id,
  14169. works: b[j].content,
  14170. sName: b[j].name,
  14171. type: 12,
  14172. time: b[j].time,
  14173. score: b[j].score,
  14174. img: b[j].img,
  14175. likesCount: likesCount,
  14176. commentCount: commentCount,
  14177. isLikes: isLikes,
  14178. commentJson: commentJson,
  14179. };
  14180. if (this.isGroup) {
  14181. let isGw = 1;
  14182. for (
  14183. var groupI = 0;
  14184. groupI < this.courseGroup.group.length;
  14185. groupI++
  14186. ) {
  14187. let gid = this.courseGroup.group[groupI].id;
  14188. if (
  14189. this.courseGroupStudentUid[gid].indexOf(
  14190. b[j].userid
  14191. ) != -1
  14192. ) {
  14193. isGw = 2;
  14194. this.courseGroup.group[groupI].works[i].push(_works);
  14195. break;
  14196. }
  14197. }
  14198. if (isGw == 1) {
  14199. _worksStudent[i].push(_works);
  14200. }
  14201. } else {
  14202. _worksStudent[i].push(_works);
  14203. }
  14204. _worksStudent2[i].push(_works);
  14205. this.isWorksS[i].push({
  14206. uid: b[j].userid,
  14207. sName: b[j].name,
  14208. });
  14209. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14210. let _works = {
  14211. userid: b[j].userid,
  14212. ateacher: b[j].ateacher,
  14213. wid: b[j].id,
  14214. works: b[j].content,
  14215. sName: b[j].name,
  14216. type: 0,
  14217. time: b[j].time,
  14218. score: b[j].score,
  14219. img: b[j].img,
  14220. likesCount: likesCount,
  14221. commentCount: commentCount,
  14222. isLikes: isLikes,
  14223. commentJson: commentJson,
  14224. };
  14225. if (this.isGroup) {
  14226. let isGw = 1;
  14227. for (
  14228. var groupI = 0;
  14229. groupI < this.courseGroup.group.length;
  14230. groupI++
  14231. ) {
  14232. let gid = this.courseGroup.group[groupI].id;
  14233. if (
  14234. this.courseGroupStudentUid[gid].indexOf(
  14235. b[j].userid
  14236. ) != -1
  14237. ) {
  14238. isGw = 2;
  14239. this.courseGroup.group[groupI].works[i].push(_works);
  14240. break;
  14241. }
  14242. }
  14243. if (isGw == 1) {
  14244. _worksStudent[i].push(_works);
  14245. }
  14246. } else {
  14247. _worksStudent[i].push(_works);
  14248. }
  14249. _worksStudent2[i].push(_works);
  14250. this.isWorksS[i].push({
  14251. uid: b[j].userid,
  14252. sName: b[j].name,
  14253. });
  14254. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14255. let _works = {
  14256. userid: b[j].userid,
  14257. ateacher: b[j].ateacher,
  14258. wid: b[j].id,
  14259. works: b[j].content,
  14260. sName: b[j].name,
  14261. type: 0,
  14262. time: b[j].time,
  14263. score: b[j].score,
  14264. img: b[j].img,
  14265. likesCount: likesCount,
  14266. commentCount: commentCount,
  14267. isLikes: isLikes,
  14268. commentJson: commentJson,
  14269. };
  14270. if (this.isGroup) {
  14271. let isGw = 1;
  14272. for (
  14273. var groupI = 0;
  14274. groupI < this.courseGroup.group.length;
  14275. groupI++
  14276. ) {
  14277. let gid = this.courseGroup.group[groupI].id;
  14278. if (
  14279. this.courseGroupStudentUid[gid].indexOf(
  14280. b[j].userid
  14281. ) != -1
  14282. ) {
  14283. isGw = 2;
  14284. this.courseGroup.group[groupI].works[i].push(_works);
  14285. break;
  14286. }
  14287. }
  14288. if (isGw == 1) {
  14289. _worksStudent[i].push(_works);
  14290. }
  14291. } else {
  14292. _worksStudent[i].push(_works);
  14293. }
  14294. _worksStudent2[i].push(_works);
  14295. this.isWorksS[i].push({
  14296. uid: b[j].userid,
  14297. sName: b[j].name,
  14298. });
  14299. }
  14300. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14301. let _works = {
  14302. userid: b[j].userid,
  14303. ateacher: b[j].ateacher,
  14304. wid: b[j].id,
  14305. works: b[j].content,
  14306. sName: b[j].name,
  14307. type: 2,
  14308. time: b[j].time,
  14309. score: b[j].score,
  14310. img: b[j].img,
  14311. likesCount: likesCount,
  14312. commentCount: commentCount,
  14313. isLikes: isLikes,
  14314. commentJson: commentJson,
  14315. };
  14316. if (this.isGroup) {
  14317. let isGw = 1;
  14318. for (
  14319. var groupI = 0;
  14320. groupI < this.courseGroup.group.length;
  14321. groupI++
  14322. ) {
  14323. let gid = this.courseGroup.group[groupI].id;
  14324. if (
  14325. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14326. -1
  14327. ) {
  14328. isGw = 2;
  14329. this.courseGroup.group[groupI].works[i].push(_works);
  14330. break;
  14331. }
  14332. }
  14333. if (isGw == 1) {
  14334. _worksStudent[i].push(_works);
  14335. }
  14336. } else {
  14337. _worksStudent[i].push(_works);
  14338. }
  14339. _worksStudent2[i].push(_works);
  14340. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14341. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14342. //问卷
  14343. let _work = {
  14344. userid: b[j].userid,
  14345. ateacher: b[j].ateacher,
  14346. wid: b[j].id,
  14347. works: b[j].content,
  14348. sName: b[j].name,
  14349. type: 2,
  14350. time: b[j].time,
  14351. score: b[j].score,
  14352. img: b[j].img,
  14353. likesCount: likesCount,
  14354. commentCount: commentCount,
  14355. isLikes: isLikes,
  14356. commentJson: commentJson,
  14357. };
  14358. _worksStudent[i].push(_work);
  14359. _worksStudent2[i].push(_work);
  14360. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14361. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14362. //选择题
  14363. let _work = {
  14364. userid: b[j].userid,
  14365. ateacher: b[j].ateacher,
  14366. wid: b[j].id,
  14367. works: b[j].content,
  14368. sName: b[j].name,
  14369. type: 8,
  14370. time: b[j].time,
  14371. score: b[j].score,
  14372. img: b[j].img,
  14373. likesCount: likesCount,
  14374. commentCount: commentCount,
  14375. isLikes: isLikes,
  14376. commentJson: commentJson,
  14377. };
  14378. _worksStudent[i].push(_work);
  14379. _worksStudent2[i].push(_work);
  14380. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14381. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14382. //选择题
  14383. let _work = {
  14384. userid: b[j].userid,
  14385. ateacher: b[j].ateacher,
  14386. wid: b[j].id,
  14387. works: b[j].content,
  14388. sName: b[j].name,
  14389. type: 9,
  14390. time: b[j].time,
  14391. score: b[j].score,
  14392. img: b[j].img,
  14393. likesCount: likesCount,
  14394. commentCount: commentCount,
  14395. isLikes: isLikes,
  14396. commentJson: commentJson,
  14397. };
  14398. _worksStudent[i].push(_work);
  14399. _worksStudent2[i].push(_work);
  14400. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14401. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14402. //选择题
  14403. let _work = {
  14404. userid: b[j].userid,
  14405. ateacher: b[j].ateacher,
  14406. wid: b[j].id,
  14407. works: b[j].content,
  14408. sName: b[j].name,
  14409. type: 10,
  14410. time: b[j].time,
  14411. score: b[j].score,
  14412. img: b[j].img,
  14413. likesCount: likesCount,
  14414. commentCount: commentCount,
  14415. isLikes: isLikes,
  14416. commentJson: commentJson,
  14417. };
  14418. _worksStudent[i].push(_work);
  14419. _worksStudent2[i].push(_work);
  14420. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14421. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14422. //选择题
  14423. let _work = {
  14424. userid: b[j].userid,
  14425. ateacher: b[j].ateacher,
  14426. wid: b[j].id,
  14427. works: b[j].content,
  14428. sName: b[j].name,
  14429. type: 13,
  14430. time: b[j].time,
  14431. score: b[j].score,
  14432. img: b[j].img,
  14433. likesCount: likesCount,
  14434. commentCount: commentCount,
  14435. isLikes: isLikes,
  14436. commentJson: commentJson,
  14437. };
  14438. _worksStudent[i].push(_work);
  14439. _worksStudent2[i].push(_work);
  14440. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14441. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14442. //选择题
  14443. let _work = {
  14444. userid: b[j].userid,
  14445. ateacher: b[j].ateacher,
  14446. wid: b[j].id,
  14447. works: b[j].content,
  14448. sName: b[j].name,
  14449. type: 16,
  14450. time: b[j].time,
  14451. score: b[j].score,
  14452. img: b[j].img,
  14453. likesCount: likesCount,
  14454. commentCount: commentCount,
  14455. isLikes: isLikes,
  14456. commentJson: commentJson,
  14457. aiCode: b[j].aiCode,
  14458. teacherCode: b[j].teacherCode
  14459. };
  14460. _worksStudent[i].push(_work);
  14461. _worksStudent2[i].push(_work);
  14462. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14463. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14464. let _gindex = JSON.parse(b[j].content);
  14465. if (
  14466. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14467. b[j].userid
  14468. ) != -1
  14469. ) {
  14470. let _work = {
  14471. userid: b[j].userid,
  14472. ateacher: b[j].ateacher,
  14473. wid: b[j].id,
  14474. works: _gindex.url,
  14475. sName: b[j].name,
  14476. type: _gindex.type,
  14477. time: b[j].time,
  14478. score: b[j].score,
  14479. img: b[j].img,
  14480. likesCount: likesCount,
  14481. commentCount: commentCount,
  14482. isLikes: isLikes,
  14483. commentJson: commentJson,
  14484. };
  14485. _worksStudent[i][_gindex.groupIndex].push(_work);
  14486. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14487. }
  14488. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14489. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14490. let _work = {
  14491. userid: b[j].userid,
  14492. ateacher: b[j].ateacher,
  14493. wid: b[j].id,
  14494. works: b[j].content,
  14495. sName: b[j].name ? b[j].name : b[j].userid,
  14496. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14497. time: b[j].time,
  14498. score: b[j].score,
  14499. img: b[j].img,
  14500. likesCount: likesCount,
  14501. commentCount: commentCount,
  14502. isLikes: isLikes,
  14503. commentJson: commentJson,
  14504. };
  14505. _worksStudent[i].push(_work);
  14506. _worksStudent2[i].push(_work);
  14507. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14508. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14509. let _work = {
  14510. userid: b[j].userid,
  14511. ateacher: b[j].ateacher,
  14512. wid: b[j].id,
  14513. works: b[j].content,
  14514. sName: b[j].name ? b[j].name : b[j].userid,
  14515. type: 12,
  14516. time: b[j].time,
  14517. score: b[j].score,
  14518. img: b[j].img,
  14519. likesCount: likesCount,
  14520. commentCount: commentCount,
  14521. isLikes: isLikes,
  14522. commentJson: commentJson,
  14523. };
  14524. _worksStudent[i].push(_work);
  14525. _worksStudent2[i].push(_work);
  14526. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14527. } else if (
  14528. a[i].tool[0] == 57 &&
  14529. b[j].atool == 57 &&
  14530. b[j].type == 12
  14531. ) {
  14532. let _work = {
  14533. userid: b[j].userid,
  14534. ateacher: b[j].ateacher,
  14535. wid: b[j].id,
  14536. works: b[j].content,
  14537. sName: b[j].name ? b[j].name : b[j].userid,
  14538. type: 12,
  14539. time: b[j].time,
  14540. score: b[j].score,
  14541. img: b[j].img,
  14542. likesCount: likesCount,
  14543. commentCount: commentCount,
  14544. isLikes: isLikes,
  14545. commentJson: commentJson,
  14546. };
  14547. _worksStudent[i].push(_work);
  14548. _worksStudent2[i].push(_work);
  14549. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14550. } else if (
  14551. a[i].tool[0] == 57 &&
  14552. b[j].atool == 57 &&
  14553. b[j].type == 15
  14554. ) {
  14555. let _work = {
  14556. userid: b[j].userid,
  14557. ateacher: b[j].ateacher,
  14558. wid: b[j].id,
  14559. works: b[j].content,
  14560. sName: b[j].name ? b[j].name : b[j].userid,
  14561. type: 15,
  14562. time: b[j].time,
  14563. score: b[j].score,
  14564. img: b[j].img,
  14565. likesCount: likesCount,
  14566. commentCount: commentCount,
  14567. isLikes: isLikes,
  14568. commentJson: commentJson,
  14569. };
  14570. _worksStudent[i].push(_work);
  14571. _worksStudent2[i].push(_work);
  14572. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14573. }
  14574. }
  14575. }
  14576. if (_worksStudent[i] && _worksStudent[i].length) {
  14577. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14578. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14579. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14580. var scoreA = parseFloat(jscoreA);
  14581. var scoreB = parseFloat(jscoreB);
  14582. if (scoreA == scoreB) {
  14583. return b.likesCount - a.likesCount;
  14584. }
  14585. return scoreB - scoreA;
  14586. });
  14587. if (this.isGroup) {
  14588. for (
  14589. var groupI = 0;
  14590. groupI < this.courseGroup.group.length;
  14591. groupI++
  14592. ) {
  14593. this.courseGroup.group[groupI].works[i] =
  14594. this.courseGroup.group[groupI].works[i].sort(function (
  14595. a,
  14596. b
  14597. ) {
  14598. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14599. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14600. var scoreA = parseFloat(jscoreA);
  14601. var scoreB = parseFloat(jscoreB);
  14602. if (scoreA == scoreB) {
  14603. return b.likesCount - a.likesCount;
  14604. }
  14605. return scoreB - scoreA;
  14606. });
  14607. }
  14608. }
  14609. }
  14610. }
  14611. this.timeWorkList = _worksStudent2;
  14612. for (var i = 0; i < a.length; i++) {
  14613. for (var j = 0; j < b.length; j++) {
  14614. var data = b[j];
  14615. if (i == b[j].tool) {
  14616. if (data.type == 2 || data.type == 8) {
  14617. for (var z = 0; z < this.checkJson[i].length; z++) {
  14618. this.checkJson[i][z].checkPerent = [];
  14619. this.checkJson[i][z].right = Math.round(
  14620. (this.checkJson[i][z].rightPerson.length /
  14621. parseInt(_worksStudent[i].length)) *
  14622. 100
  14623. );
  14624. let aaaa = this.checkJson[i][z];
  14625. for (
  14626. var k = 0;
  14627. k < this.checkJson[i][z].checkCount.length;
  14628. k++
  14629. ) {
  14630. this.checkJson[i][z].checkPerent.push(
  14631. Math.round(
  14632. (this.checkJson[i][z].checkCount[k] /
  14633. parseInt(_worksStudent[i].length)) *
  14634. 100
  14635. )
  14636. );
  14637. }
  14638. }
  14639. } else if (data.type == 9) {
  14640. for (var z = 0; z < this.checkJson[i].length; z++) {
  14641. this.checkJson[i][z].checkPerent = [];
  14642. this.checkJson[i][z].right = Math.round(
  14643. (this.checkJson[i][z].rightPerson.length /
  14644. this.checkJson[i][z].checkPerson.length) *
  14645. 100
  14646. );
  14647. }
  14648. }
  14649. }
  14650. }
  14651. }
  14652. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14653. this.joinGroup(gindex);
  14654. }
  14655. this.worksStudent = _worksStudent;
  14656. this.selectWorksStudent();
  14657. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14658. this.$nextTick(()=>{
  14659. setTimeout(()=>{
  14660. setTimeout(()=>{
  14661. this.panToolHeight('tool-'+ci);
  14662. }, 500)
  14663. }, 0)
  14664. })
  14665. }
  14666. })
  14667. .catch((err) => {
  14668. console.error(err);
  14669. });
  14670. },
  14671. pngToWhiteBg(file) {
  14672. const _file = file;
  14673. let read = new FileReader();
  14674. read.readAsDataURL(file); // 文件转base64
  14675. return new Promise((resolve, reject) => {
  14676. read.onload = (e) => {
  14677. let img = new Image();
  14678. img.src = e.target.result;
  14679. img.onload = async () => {
  14680. // 生成canvas
  14681. let canvas = document.createElement("canvas");
  14682. let context = canvas.getContext("2d");
  14683. // 绘制图片到canvas上
  14684. canvas.width = img.width;
  14685. canvas.height = img.height;
  14686. // 在canvas绘制前填充白色背景
  14687. context.fillStyle = "#fff";
  14688. context.fillRect(0, 0, canvas.width, canvas.height);
  14689. context.drawImage(img, 0, 0);
  14690. let base64 = canvas.toDataURL(file["type"], 1);
  14691. let newFile = this.dataUrlToFile(base64, _file);
  14692. resolve(newFile);
  14693. };
  14694. };
  14695. });
  14696. },
  14697. dataUrlToFile(dataurl, file) {
  14698. let arr = dataurl.split(","),
  14699. mime = arr[0].match(/:(.*?);/)[1],
  14700. bstr = atob(arr[1]),
  14701. n = bstr.length,
  14702. u8arr = new Uint8Array(n);
  14703. while (n--) {
  14704. u8arr[n] = bstr.charCodeAt(n);
  14705. }
  14706. // return new Blob([u8arr], { type: mime });
  14707. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14708. type: mime,
  14709. });
  14710. },
  14711. async beforeUpload1(event, type, i) {
  14712. // this.$message.success('进入上传')
  14713. var file = "";
  14714. if (type == 5) {
  14715. file = event;
  14716. } else {
  14717. file = event.target.files[0];
  14718. }
  14719. var credentials = {
  14720. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14721. secretAccessKey: "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",
  14722. }; //秘钥形式的登录上传
  14723. window.AWS.config.update(credentials);
  14724. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14725. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14726. var _this = this;
  14727. _this.progress = 0;
  14728. _this.proVisible = true;
  14729. _this.isFinishSize = 0;
  14730. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14731. var b = [
  14732. "DOC",
  14733. "DOCX",
  14734. "DOCM",
  14735. "DOTM",
  14736. "DOTX",
  14737. "PPTX",
  14738. "PPSX",
  14739. "PPT",
  14740. "PPS",
  14741. "PPTM",
  14742. "POTM",
  14743. "PPAM",
  14744. "POTX",
  14745. "PPSM",
  14746. ];
  14747. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14748. var photoA = [
  14749. "BMP",
  14750. "GIF",
  14751. "PNG",
  14752. "JPGE",
  14753. "JPEG",
  14754. "JPG",
  14755. "TIF",
  14756. "PCX",
  14757. "TGA",
  14758. "EXIF",
  14759. "FPX",
  14760. "SVG",
  14761. "APNG",
  14762. ];
  14763. // if (
  14764. // b.indexOf(
  14765. // file.name
  14766. // .split(".")
  14767. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14768. // ) != -1
  14769. // ) {
  14770. // if (file.size / 1024 / 1024 > 10) {
  14771. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14772. // return;
  14773. // }
  14774. // } else if (
  14775. // excelA.indexOf(
  14776. // file.name
  14777. // .split(".")
  14778. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14779. // ) != "-1"
  14780. // ) {
  14781. // if (file.size / 1024 / 1024 > 5) {
  14782. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14783. // return;
  14784. // }
  14785. // }
  14786. if (
  14787. photoA.indexOf(
  14788. file.name
  14789. .split(".")
  14790. [file.name.split(".").length - 1].toLocaleUpperCase()
  14791. ) != -1 &&
  14792. type != 4
  14793. ) {
  14794. // const blob = await imageConversion.compress(file, 0.8)
  14795. file = await this.pngToWhiteBg(file);
  14796. const blob = await imageConversion.compressAccurately(file, 256);
  14797. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14798. file = new File([blob], file.name, { type: file.type });
  14799. }
  14800. if (file) {
  14801. var params = {
  14802. Key:
  14803. file.name.split(".")[0] +
  14804. new Date().getTime() +
  14805. "." +
  14806. file.name.split(".")[file.name.split(".").length - 1],
  14807. ContentType: file.type,
  14808. Body: file,
  14809. "Access-Control-Allow-Credentials": "*",
  14810. ACL: "public-read",
  14811. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14812. var options = {
  14813. // partSize: 2048 * 1024 * 1024,
  14814. partSize: 1024 * 1024 * 1024,
  14815. queueSize: 2,
  14816. leavePartsOnError: true,
  14817. };
  14818. bucket
  14819. .upload(params, options)
  14820. .on("httpUploadProgress", function (evt) {
  14821. //这里可以写进度条
  14822. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14823. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14824. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14825. })
  14826. .send(function (err, data) {
  14827. _this.progress = 100;
  14828. _this.isFinishSize = _this.isAllSize;
  14829. setTimeout(() => {
  14830. _this.proVisible = false;
  14831. }, 1000);
  14832. if (err) {
  14833. var a = _this.$refs.upload1.uploadFiles;
  14834. a.splice(a.length - 1, a.length);
  14835. _this.$message.error("上传失败");
  14836. } else {
  14837. // _this.$message.success('上传成功')
  14838. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14839. var c = [
  14840. "AVI",
  14841. "NAVI",
  14842. "MPEG",
  14843. "ASF",
  14844. "MOV",
  14845. "WMV",
  14846. "3GP",
  14847. "RM",
  14848. "RMVB",
  14849. "FLV",
  14850. "F4V",
  14851. "H.264",
  14852. "H.265",
  14853. "REAL VIDEO",
  14854. "MKV",
  14855. "WebM",
  14856. "HDDVD",
  14857. "MP4",
  14858. "MPG",
  14859. "M4V",
  14860. "MGV",
  14861. "OGV",
  14862. "QTM",
  14863. "STR",
  14864. "AMC",
  14865. "DVX",
  14866. "EVO",
  14867. "DAT",
  14868. "OGG",
  14869. "OGM",
  14870. ];
  14871. if (type == 1) {
  14872. _this.studyJuri[0].cover.push({
  14873. name: file.name,
  14874. url: data.Location,
  14875. uid: file.uid,
  14876. });
  14877. if (
  14878. c.indexOf(
  14879. _this.studyJuri[0].cover[0].url
  14880. .split(".")
  14881. [
  14882. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14883. ].toLocaleUpperCase()
  14884. ) != -1
  14885. ) {
  14886. _this.fileType = 2;
  14887. } else if (
  14888. b.indexOf(
  14889. _this.studyJuri[0].cover[0].url
  14890. .split(".")
  14891. [
  14892. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14893. ].toLocaleUpperCase()
  14894. ) != -1
  14895. ) {
  14896. _this.fileType = 1;
  14897. } else if (
  14898. photoA.indexOf(
  14899. _this.studyJuri[0].cover[0].url
  14900. .split(".")
  14901. [
  14902. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14903. ].toLocaleUpperCase()
  14904. ) != -1
  14905. ) {
  14906. _this.fileType = 0;
  14907. } else {
  14908. _this.fileType = 3;
  14909. }
  14910. _this.imgChange(null, null, type);
  14911. } else if (type == 2) {
  14912. _this.upToolImg = data.Location;
  14913. _this.imgChange(null, null, type);
  14914. _this.addCourseWorks(i);
  14915. } else if (type == 4) {
  14916. _this.addPz("3", data.Location);
  14917. } else if (type == 5) {
  14918. _this.addImgDrawImG(data.Location);
  14919. } else if (type == 6) {
  14920. var _ftype = 1;
  14921. if (
  14922. c.indexOf(
  14923. data.Location.split(".")[
  14924. data.Location.split(".").length - 1
  14925. ].toLocaleUpperCase()
  14926. ) != -1
  14927. ) {
  14928. _ftype = 5;
  14929. } else if (
  14930. b.indexOf(
  14931. data.Location.split(".")[
  14932. data.Location.split(".").length - 1
  14933. ].toLocaleUpperCase()
  14934. ) != -1
  14935. ) {
  14936. _ftype = 4;
  14937. } else {
  14938. _ftype = 1;
  14939. }
  14940. _this.plworkFile.push({
  14941. name: file.name,
  14942. url: data.Location,
  14943. uid: file.uid,
  14944. fileType: _ftype,
  14945. username:
  14946. _this.plworkFile.length > 10
  14947. ? _this.plworkFile.length + 1
  14948. : "0" + (_this.plworkFile.length + 1),
  14949. });
  14950. } else if (type == 7) {
  14951. _this.addCourseWorksGong(i, data.Location, 32);
  14952. } else if (type == 8) {
  14953. _this.addCourseWorksGong(i, data.Location, 57);
  14954. }
  14955. _this.imgChange(null, null, type);
  14956. console.log(data.Location);
  14957. // _this.$message.success('上传成功'+data.Location)
  14958. }
  14959. });
  14960. }
  14961. },
  14962. async beforeUpload3(event, type, i) {
  14963. // this.$message.success('进入上传')
  14964. let file = "";
  14965. let cfindex2 = 0;
  14966. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14967. file = event.target.files[cfindex];
  14968. var credentials = {
  14969. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14970. secretAccessKey: "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",
  14971. }; //秘钥形式的登录上传
  14972. window.AWS.config.update(credentials);
  14973. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14974. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14975. var _this = this;
  14976. // _this.progress = 0;
  14977. _this.proVisible2 = true;
  14978. var b = [
  14979. "DOC",
  14980. "DOCX",
  14981. "DOCM",
  14982. "DOTM",
  14983. "DOTX",
  14984. "PPTX",
  14985. "PPSX",
  14986. "PPT",
  14987. "PPS",
  14988. "PPTM",
  14989. "POTM",
  14990. "PPAM",
  14991. "POTX",
  14992. "PPSM",
  14993. ];
  14994. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14995. var photoA = [
  14996. "BMP",
  14997. "GIF",
  14998. "PNG",
  14999. "JPGE",
  15000. "JPG",
  15001. "TIF",
  15002. "PCX",
  15003. "TGA",
  15004. "EXIF",
  15005. "FPX",
  15006. "SVG",
  15007. "APNG",
  15008. ];
  15009. if (
  15010. photoA.indexOf(
  15011. file.name
  15012. .split(".")
  15013. [file.name.split(".").length - 1].toLocaleUpperCase()
  15014. ) != -1 &&
  15015. type != 4
  15016. ) {
  15017. // const blob = await imageConversion.compress(file, 0.8)
  15018. file = await this.pngToWhiteBg(file);
  15019. const blob = await imageConversion.compressAccurately(file, 256);
  15020. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15021. file = new File([blob], file.name, { type: file.type });
  15022. }
  15023. if (file) {
  15024. var params = {
  15025. Key:
  15026. file.name.split(".")[0] +
  15027. new Date().getTime() +
  15028. "." +
  15029. file.name.split(".")[file.name.split(".").length - 1],
  15030. ContentType: file.type,
  15031. Body: file,
  15032. "Access-Control-Allow-Credentials": "*",
  15033. ACL: "public-read",
  15034. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15035. var options = {
  15036. // partSize: 2048 * 1024 * 1024,
  15037. partSize: 1024 * 1024 * 1024,
  15038. queueSize: 2,
  15039. leavePartsOnError: true,
  15040. };
  15041. bucket
  15042. .upload(params, options)
  15043. .on("httpUploadProgress", function (evt) {
  15044. //这里可以写进度条
  15045. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15046. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15047. })
  15048. .send(function (err, data) {
  15049. // _this.progress = 100;
  15050. cfindex2++;
  15051. setTimeout(() => {
  15052. if (
  15053. cfindex2 == event.target.files.length - 1 ||
  15054. cfindex2 > event.target.files.length - 1
  15055. ) {
  15056. _this.proVisible2 = false;
  15057. }
  15058. }, 1000);
  15059. if (err) {
  15060. var a = _this.$refs.upload1.uploadFiles;
  15061. a.splice(a.length - 1, a.length);
  15062. _this.$message.error("上传失败");
  15063. } else {
  15064. // _this.$message.success('上传成功')
  15065. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15066. var c = [
  15067. "AVI",
  15068. "NAVI",
  15069. "MPEG",
  15070. "ASF",
  15071. "MOV",
  15072. "WMV",
  15073. "3GP",
  15074. "RM",
  15075. "RMVB",
  15076. "FLV",
  15077. "F4V",
  15078. "H.264",
  15079. "H.265",
  15080. "REAL VIDEO",
  15081. "MKV",
  15082. "WebM",
  15083. "HDDVD",
  15084. "MP4",
  15085. "MPG",
  15086. "M4V",
  15087. "MGV",
  15088. "OGV",
  15089. "QTM",
  15090. "STR",
  15091. "AMC",
  15092. "DVX",
  15093. "EVO",
  15094. "DAT",
  15095. "OGG",
  15096. "OGM",
  15097. ];
  15098. if (type == 1) {
  15099. _this.studyJuri[0].cover.push({
  15100. name: file.name,
  15101. url: data.Location,
  15102. uid: file.uid,
  15103. });
  15104. if (
  15105. c.indexOf(
  15106. _this.studyJuri[0].cover[0].url
  15107. .split(".")
  15108. [
  15109. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15110. ].toLocaleUpperCase()
  15111. ) != -1
  15112. ) {
  15113. _this.fileType = 2;
  15114. } else if (
  15115. b.indexOf(
  15116. _this.studyJuri[0].cover[0].url
  15117. .split(".")
  15118. [
  15119. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15120. ].toLocaleUpperCase()
  15121. ) != -1
  15122. ) {
  15123. _this.fileType = 1;
  15124. } else {
  15125. _this.fileType = 0;
  15126. }
  15127. _this.imgChange(null, null, type);
  15128. } else if (type == 2) {
  15129. _this.upToolImg = data.Location;
  15130. _this.imgChange(null, null, type);
  15131. _this.addCourseWorks(i);
  15132. } else if (type == 4) {
  15133. _this.addPz("3", data.Location);
  15134. } else if (type == 5) {
  15135. _this.addImgDrawImG(data.Location);
  15136. } else if (type == 6) {
  15137. var _ftype = 1;
  15138. if (
  15139. c.indexOf(
  15140. data.Location.split(".")[
  15141. data.Location.split(".").length - 1
  15142. ].toLocaleUpperCase()
  15143. ) != -1
  15144. ) {
  15145. _ftype = 5;
  15146. } else if (
  15147. b.indexOf(
  15148. data.Location.split(".")[
  15149. data.Location.split(".").length - 1
  15150. ].toLocaleUpperCase()
  15151. ) != -1
  15152. ) {
  15153. _ftype = 4;
  15154. } else {
  15155. _ftype = 1;
  15156. }
  15157. _this.plworkFile.push({
  15158. name: file.name,
  15159. url: data.Location,
  15160. uid: file.uid,
  15161. fileType: _ftype,
  15162. username:
  15163. _this.plworkFile.length + 1 > 9
  15164. ? _this.plworkFile.length + 1
  15165. : "0" + (_this.plworkFile.length + 1),
  15166. });
  15167. }
  15168. _this.imgChange(null, null, type);
  15169. console.log(data.Location);
  15170. // _this.$message.success('上传成功'+data.Location)
  15171. }
  15172. });
  15173. }
  15174. }
  15175. },
  15176. beforeUpload2(event, type) {
  15177. var file = event.target.files[0];
  15178. var credentials = {
  15179. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15180. secretAccessKey: "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",
  15181. }; //秘钥形式的登录上传
  15182. window.AWS.config.update(credentials);
  15183. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15184. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15185. var _this = this;
  15186. _this.progress = 0;
  15187. _this.proVisible = true;
  15188. if (file) {
  15189. var params = {
  15190. Key:
  15191. file.name.split(".")[0] +
  15192. new Date().getTime() +
  15193. "." +
  15194. file.name.split(".")[file.name.split(".").length - 1],
  15195. ContentType: file.type,
  15196. Body: file,
  15197. "Access-Control-Allow-Credentials": "*",
  15198. ACL: "public-read",
  15199. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15200. var options = {
  15201. partSize: 2048 * 1024 * 1024,
  15202. queueSize: 2,
  15203. leavePartsOnError: true,
  15204. };
  15205. bucket
  15206. .upload(params, options)
  15207. .on("httpUploadProgress", function (evt) {
  15208. //这里可以写进度条
  15209. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15210. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15211. })
  15212. .send(function (err, data) {
  15213. _this.progress = 100;
  15214. setTimeout(() => {
  15215. _this.proVisible = false;
  15216. }, 1000);
  15217. if (err) {
  15218. var a = _this.$refs.upload1.uploadFiles;
  15219. a.splice(a.length - 1, a.length);
  15220. _this.$message.error("上传失败");
  15221. } else {
  15222. if (type == 2) {
  15223. _this.studyJuri[0].upVedio.push({
  15224. name: file.name,
  15225. url: data.Location,
  15226. uid: file.uid,
  15227. });
  15228. _this.imgChange(null, null, type);
  15229. } else if (type == 3) {
  15230. _this.studyJuri[0].upFile.push({
  15231. name: file.name,
  15232. url: data.Location,
  15233. uid: file.uid,
  15234. });
  15235. _this.imgChange(null, null, type);
  15236. }
  15237. console.log(data.Location);
  15238. }
  15239. });
  15240. }
  15241. },
  15242. allScrell() {
  15243. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15244. },
  15245. nextOrpreSteps(t) {
  15246. if (this.IsFollow && this.tType == 2) {
  15247. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15248. return;
  15249. }
  15250. var b = this.chapInfoList.length - 1;
  15251. if (t == 0) {
  15252. if (this.courseType == 0) {
  15253. if (this.taskCount == 0) {
  15254. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15255. if (this.IsLookOpen) {
  15256. if (
  15257. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15258. ) {
  15259. if (
  15260. this.courseDetail.userid != this.userid &&
  15261. this.courseDetail.course_teacher &&
  15262. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15263. ) {
  15264. this.$message.error("任务未解锁");
  15265. } else {
  15266. this.$message.error("上一任务未解锁");
  15267. }
  15268. return;
  15269. }
  15270. }
  15271. this.navList[this.courseType].isOpen = false;
  15272. this.courseType = b;
  15273. this.taskCount =
  15274. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15275. .length - 1;
  15276. this.navList[this.courseType].isOpen = true;
  15277. } else {
  15278. this.taskCount--;
  15279. }
  15280. } else {
  15281. if (this.taskCount == 0) {
  15282. this.navList[this.courseType].isOpen = false;
  15283. this.courseType--;
  15284. this.taskCount =
  15285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15286. .length - 1;
  15287. this.navList[this.courseType].isOpen = true;
  15288. } else {
  15289. this.taskCount--;
  15290. }
  15291. }
  15292. } else {
  15293. if (this.courseType == b) {
  15294. if (
  15295. this.taskCount ==
  15296. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15297. 1
  15298. ) {
  15299. this.navList[this.courseType].isOpen = false;
  15300. this.courseType = 0;
  15301. this.taskCount = 0;
  15302. this.navList[this.courseType].isOpen = true;
  15303. } else {
  15304. var bbb = parseInt(this.taskCount) + 1;
  15305. if (
  15306. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15307. .isLook &&
  15308. this.courseDetail.userid != this.userid &&
  15309. this.courseDetail.course_teacher &&
  15310. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15311. this.IsLookOpen
  15312. ) {
  15313. this.$message.error("任务未解锁");
  15314. return;
  15315. }
  15316. this.taskCount++;
  15317. if (this.IsLookOpen) {
  15318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15319. this.taskCount
  15320. ].isLook = true;
  15321. this.addCourseState(3);
  15322. }
  15323. }
  15324. } else {
  15325. if (
  15326. this.taskCount ==
  15327. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15328. 1
  15329. ) {
  15330. var bbb = parseInt(this.courseType) + 1;
  15331. if (
  15332. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15333. this.courseDetail.userid != this.userid &&
  15334. this.courseDetail.course_teacher &&
  15335. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15336. this.IsLookOpen
  15337. ) {
  15338. this.$message.error("任务未解锁");
  15339. return;
  15340. }
  15341. this.navList[this.courseType].isOpen = false;
  15342. this.courseType++;
  15343. this.taskCount = 0;
  15344. this.navList[this.courseType].isOpen = true;
  15345. } else {
  15346. var bbb = parseInt(this.taskCount) + 1;
  15347. if (
  15348. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15349. .isLook &&
  15350. this.courseDetail.userid != this.userid &&
  15351. this.courseDetail.course_teacher &&
  15352. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15353. this.IsLookOpen
  15354. ) {
  15355. this.$message.error("任务未解锁");
  15356. return;
  15357. }
  15358. this.taskCount++;
  15359. }
  15360. if (this.IsLookOpen) {
  15361. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15362. this.taskCount
  15363. ].isLook = true;
  15364. this.addCourseState(3);
  15365. }
  15366. }
  15367. // if (
  15368. // this.taskCount ==
  15369. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15370. // ) {
  15371. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15372. // } else {
  15373. // this.taskCount++;
  15374. // }
  15375. }
  15376. document.scrollingElement.scrollTop = 0;
  15377. this.showType = 0;
  15378. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15379. // if (this.vedio[this.taskCount].length > 0) {
  15380. // var a =
  15381. // document.getElementsByClassName("box_course")[this.taskCount]
  15382. // .offsetHeight;
  15383. // document.getElementsByClassName("vedioList")[
  15384. // this.taskCount
  15385. // ].style.height = a + "px";
  15386. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15387. // a - 40 + "px";
  15388. // }
  15389. this.isNoHomeWork = false;
  15390. (this.studyJuri = [
  15391. {
  15392. content: "",
  15393. cover: [],
  15394. upVedio: [],
  15395. upFile: [],
  15396. },
  15397. ]),
  15398. (this.radio = []);
  15399. this.isClickNav = "";
  15400. this.selectPz();
  15401. this.getHomeWork();
  15402. this.getCourseDetail(2);
  15403. this.$forceUpdate();
  15404. },
  15405. openTask(s, n, i) {
  15406. if (this.IsFollow && this.tType == 2) {
  15407. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15408. return;
  15409. }
  15410. if (this.IsLookOpen) {
  15411. if (
  15412. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15413. this.courseDetail.userid != this.userid &&
  15414. this.courseDetail.course_teacher &&
  15415. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15416. ) {
  15417. this.$message.error("任务未解锁");
  15418. return;
  15419. }
  15420. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15421. if (
  15422. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15423. .isLook
  15424. ) {
  15425. this.$message.error("上一任务未解锁");
  15426. return;
  15427. }
  15428. } else if (s > this.courseType) {
  15429. if (n > 0) {
  15430. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15431. this.$message.error("上一任务未解锁");
  15432. return;
  15433. }
  15434. } else {
  15435. if (
  15436. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15437. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15438. ].isLook
  15439. ) {
  15440. this.$message.error("上一任务未解锁");
  15441. return;
  15442. }
  15443. }
  15444. }
  15445. }
  15446. if (this.navList[s].task[n].isOpen == true) {
  15447. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15448. return;
  15449. }
  15450. this.courseType = s;
  15451. this.navId = i;
  15452. this.taskCount = n;
  15453. this.navList[this.courseType].task[this.taskCount].isOpen =
  15454. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15455. if (this.IsLookOpen) {
  15456. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15457. this.taskCount
  15458. ].isLook = true;
  15459. this.addCourseState(3);
  15460. }
  15461. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15462. this.isCloseList[ci].isClose = 0;
  15463. this.isCloseList[ci].isCloseBoolean = false;
  15464. this.$nextTick(()=>{
  15465. setTimeout(()=>{
  15466. setTimeout(()=>{
  15467. this.panToolHeight('tool-'+ci);
  15468. }, 0)
  15469. }, 0)
  15470. })
  15471. }
  15472. this.showType = 0;
  15473. this.isNoHomeWork = false;
  15474. (this.studyJuri = [
  15475. {
  15476. content: "",
  15477. cover: [],
  15478. upVedio: [],
  15479. upFile: [],
  15480. },
  15481. ]),
  15482. (this.radio = []);
  15483. document.scrollingElement.scrollTop = 0;
  15484. // setTimeout(() => {
  15485. // let a = document.getElementById(i);
  15486. // if (a.offsetTop - 110 == 0) {
  15487. // window.scrollTo(0, 0);
  15488. // } else {
  15489. // window.scrollTo(0, a.offsetTop);
  15490. // }
  15491. // }, 0);
  15492. for (var z = 0; z < this.navList.length; z++) {
  15493. for (var q = 0; q < this.navList[z].task.length; q++) {
  15494. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15495. this.navList[z].task[q].tool[w].isTool = false;
  15496. }
  15497. }
  15498. }
  15499. this.selectPz();
  15500. this.getHomeWork();
  15501. this.getCourseDetail(2);
  15502. },
  15503. get(i) {
  15504. if (this.IsFollow && this.tType == 2) {
  15505. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15506. return;
  15507. }
  15508. // for(var k=0;k<this.navList.length;k++){
  15509. // this.navList[k].isOpen = false;
  15510. // }
  15511. // this.navList[i].isOpen = true;
  15512. this.navList[i].isOpen = !this.navList[i].isOpen;
  15513. if (this.navList[i].isOpen) {
  15514. this.openTask(i, 0, i + "-0");
  15515. }
  15516. },
  15517. addQuestion() {
  15518. this.answerList.push({
  15519. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15520. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15521. });
  15522. let params = [
  15523. {
  15524. uid: this.userid,
  15525. cid: this.id,
  15526. stage: this.courseType,
  15527. task: this.taskCount,
  15528. tool: this.toolindex,
  15529. content: JSON.stringify(this.answerList),
  15530. type: 3,
  15531. },
  15532. ];
  15533. this.ajax
  15534. .post(this.$store.state.api + "addCourseWorks", params)
  15535. .then((res) => {
  15536. this.$message({
  15537. message: "提交成功",
  15538. type: "success",
  15539. });
  15540. this.answerList = [];
  15541. this.answerDialogVisible = false;
  15542. this.selectStudent();
  15543. this.selectSWorks();
  15544. this.selectSLook();
  15545. })
  15546. .catch((err) => {
  15547. this.$message.error("提交失败");
  15548. console.error(err);
  15549. });
  15550. },
  15551. addQuestionTeacher() {
  15552. this.answerList.push({
  15553. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15554. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15555. });
  15556. let params = [
  15557. {
  15558. uid: this.sStudent.userid,
  15559. cid: this.id,
  15560. stage: this.courseType,
  15561. task: this.taskCount,
  15562. tool: this.toolindex,
  15563. content: JSON.stringify(this.answerList),
  15564. type: 3,
  15565. ateacher: this.userid,
  15566. },
  15567. ];
  15568. this.ajax
  15569. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15570. .then((res) => {
  15571. this.$message({
  15572. message: "提交成功",
  15573. type: "success",
  15574. });
  15575. this.answerList = [];
  15576. this.questionAnswer = "";
  15577. this.answerDialogVisibleTeacher = false;
  15578. this.selectStudent();
  15579. this.selectSWorks();
  15580. this.selectSLook();
  15581. })
  15582. .catch((err) => {
  15583. this.$message.error("提交失败");
  15584. console.error(err);
  15585. });
  15586. },
  15587. refreshCourse() {
  15588. // window.location.reload();
  15589. this.navList = [];
  15590. this.getCourseDetail(1);
  15591. },
  15592. getCourseDetail(type, gindex) {
  15593. let loading;
  15594. if (type != 2) {
  15595. loading = this.$loading.service({
  15596. background: "rgba(255, 255, 255, 0.7)",
  15597. target: document.querySelector(".student_table"),
  15598. });
  15599. }
  15600. this.downLoading = false
  15601. // this.navList[0].isOpen = false;
  15602. // this.navList[this.courseType].isOpen = true;
  15603. // this.courseType = this.courseTypeLine;
  15604. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15605. let params = {
  15606. courseId: this.id,
  15607. };
  15608. this.ajax
  15609. .get(this.$store.state.api + "selectCourseDetail3", params)
  15610. .then((res) => {
  15611. if (type != 2) {
  15612. loading.close();
  15613. if (
  15614. this.courseType >
  15615. JSON.parse(res.data[0][0].chapters).length - 1
  15616. ) {
  15617. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15618. }
  15619. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15620. .chapterInfo[0].taskJson;
  15621. var b = [
  15622. "AVI",
  15623. "NAVI",
  15624. "MPEG",
  15625. "ASF",
  15626. "MOV",
  15627. "WMV",
  15628. "3GP",
  15629. "RM",
  15630. "RMVB",
  15631. "FLV",
  15632. "F4V",
  15633. "H.264",
  15634. "H.265",
  15635. "REAL VIDEO",
  15636. "MKV",
  15637. "WebM",
  15638. "HDDVD",
  15639. "MP4",
  15640. "MPG",
  15641. "M4V",
  15642. "MGV",
  15643. "OGV",
  15644. "QTM",
  15645. "STR",
  15646. "AMC",
  15647. "DVX",
  15648. "EVO",
  15649. "DAT",
  15650. "OGG",
  15651. "OGM",
  15652. "MP3",
  15653. ];
  15654. let _chapterData = [];
  15655. for (var i = 0; i < a.length; i++) {
  15656. var c = a[i].chapterData;
  15657. this.vedio[i] = [];
  15658. this.textList[i] = [];
  15659. this.lineList[i] = [];
  15660. this.chapToolList[i] = [];
  15661. this.file[i] = [];
  15662. this.fileC[i] = [];
  15663. _chapterData[i] = c.filter((el) => {
  15664. return el.type != 12;
  15665. });
  15666. this.fileC[i] = c.filter((el) => {
  15667. return el.type == 12;
  15668. });
  15669. // else if (c[j].type == 12) {
  15670. // this.fileC[i].push(c[j]);
  15671. // }
  15672. for (var j = 0; j < c.length; j++) {
  15673. if (c[j].type == 7) {
  15674. this.chapToolList[i].push(c[j]);
  15675. } else if (c[j].type == 8 || c[j].type == 14) {
  15676. this.lineList[i].push(c[j]);
  15677. } else if (c[j].type == 6) {
  15678. this.textList[i].push(c[j]);
  15679. } else {
  15680. if (
  15681. b.indexOf(
  15682. c[j].url
  15683. .split(".")
  15684. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15685. ) != -1
  15686. ) {
  15687. this.vedio[i].push(c[j]);
  15688. } else {
  15689. this.file[i].push(c[j]);
  15690. }
  15691. }
  15692. }
  15693. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15694. d.sources[0].src =
  15695. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15696. this.playerO[i] = d;
  15697. }
  15698. this.courseDetail = res.data[0][0];
  15699. this.tcid = this.arrayToArray(
  15700. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15701. this.tcid2 ? this.tcid2.split(",") : []
  15702. ).join(",");
  15703. this.evalua = res.data[0][0].evaId;
  15704. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15705. this.courseType
  15706. ];
  15707. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15708. if (this.tcid && res.data[1].length) {
  15709. let _inviteA = [];
  15710. for (var ik = 0; ik < res.data[1].length; ik++) {
  15711. _inviteA.push({
  15712. cid: res.data[1][ik].classid,
  15713. ic: res.data[1][ik].code,
  15714. });
  15715. }
  15716. for (var ik = 0; ik < _inviteA.length; ik++) {
  15717. if (
  15718. this.arrayToArray(
  15719. _inviteA[ik].cid.split(","),
  15720. this.tcid.split(",")
  15721. ).length
  15722. ) {
  15723. this.inviteCode = _inviteA[ik].ic;
  15724. break;
  15725. }
  15726. }
  15727. }
  15728. for (var l = 0; l < this.chapInfoList.length; l++) {
  15729. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15730. for (var m = 0; m < w.length; m++) {
  15731. w[m].id = l + "-" + m;
  15732. }
  15733. }
  15734. let taskCount = 0;
  15735. if (
  15736. _chapterData[taskCount].length &&
  15737. _chapterData[taskCount][0].type == 2
  15738. ) {
  15739. this.showType = 0;
  15740. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15741. } else {
  15742. if (_chapterData[taskCount].length > 0) {
  15743. let _url = _chapterData[taskCount][0].url;
  15744. if (
  15745. _chapterData[taskCount][0].type == 8 ||
  15746. _chapterData[taskCount][0].type == 14
  15747. ) {
  15748. this.showType = 2;
  15749. if (
  15750. _url.indexOf("https://") == -1 &&
  15751. _url.indexOf("http://") == -1
  15752. ) {
  15753. _url = "https://" + _url;
  15754. }
  15755. this.pptImgUrl1 = _url;
  15756. } else if (_chapterData[taskCount][0].type == 3) {
  15757. if (
  15758. _url
  15759. .split(".")
  15760. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15761. ) {
  15762. this.showType = 3;
  15763. this.pptImgUrl1 = _url;
  15764. } else if (
  15765. this.isAssetTypeAnImage(
  15766. _url
  15767. .split(".")
  15768. [_url.split(".").length - 1].toLocaleLowerCase()
  15769. )
  15770. ) {
  15771. this.showType = 4;
  15772. this.pptImgUrl1 = _url;
  15773. } else {
  15774. this.showType = 2;
  15775. this.pptImgUrl1 =
  15776. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15777. encodeURIComponent(_url);
  15778. }
  15779. } else if (_chapterData[taskCount][0].type == 13) {
  15780. this.showType = 4;
  15781. this.pptImgUrl1 = _url;
  15782. } else if (_chapterData[taskCount][0].type == 6) {
  15783. this.showType = 1;
  15784. this.text = this.textList[taskCount][0];
  15785. }
  15786. }
  15787. }
  15788. this.isClickNav = 0;
  15789. if (
  15790. !_chapterData[taskCount].length ||
  15791. _chapterData[taskCount][0].type == 12
  15792. ) {
  15793. this.isClickNav = "";
  15794. this.showType = "";
  15795. }
  15796. this.vChapterData = _chapterData;
  15797. } else {
  15798. this.showType = 0;
  15799. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15800. .chapterInfo[0].taskJson;
  15801. var b = [
  15802. "AVI",
  15803. "NAVI",
  15804. "MPEG",
  15805. "ASF",
  15806. "MOV",
  15807. "WMV",
  15808. "3GP",
  15809. "RM",
  15810. "RMVB",
  15811. "FLV",
  15812. "F4V",
  15813. "H.264",
  15814. "H.265",
  15815. "REAL VIDEO",
  15816. "MKV",
  15817. "WebM",
  15818. "HDDVD",
  15819. "MP4",
  15820. "MPG",
  15821. "M4V",
  15822. "MGV",
  15823. "OGV",
  15824. "QTM",
  15825. "STR",
  15826. "AMC",
  15827. "DVX",
  15828. "EVO",
  15829. "DAT",
  15830. "OGG",
  15831. "OGM",
  15832. "MP3",
  15833. ];
  15834. let _chapterData = [];
  15835. for (var i = 0; i < a.length; i++) {
  15836. var c = a[i].chapterData;
  15837. this.vedio[i] = [];
  15838. this.textList[i] = [];
  15839. this.lineList[i] = [];
  15840. this.chapToolList[i] = [];
  15841. this.file[i] = [];
  15842. this.fileC[i] = [];
  15843. _chapterData[i] = c.filter((el) => {
  15844. return el.type != 12;
  15845. });
  15846. this.fileC[i] = c.filter((el) => {
  15847. return el.type == 12;
  15848. });
  15849. for (var j = 0; j < c.length; j++) {
  15850. if (c[j].type == 7) {
  15851. this.chapToolList[i].push(c[j]);
  15852. } else if (c[j].type == 8 || c[j].type == 14) {
  15853. this.lineList[i].push(c[j]);
  15854. } else if (c[j].type == 6) {
  15855. this.textList[i].push(c[j]);
  15856. } else {
  15857. if (
  15858. b.indexOf(
  15859. c[j].url
  15860. .split(".")
  15861. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15862. ) != -1
  15863. ) {
  15864. this.vedio[i].push(c[j]);
  15865. } else {
  15866. this.file[i].push(c[j]);
  15867. }
  15868. }
  15869. }
  15870. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15871. d.sources[0].src =
  15872. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15873. this.playerO[i] = d;
  15874. }
  15875. let taskCount = 0;
  15876. if (
  15877. _chapterData[taskCount].length &&
  15878. _chapterData[taskCount][0].type == 2
  15879. ) {
  15880. this.showType = 0;
  15881. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15882. } else {
  15883. if (_chapterData[taskCount].length > 0) {
  15884. let _url = _chapterData[taskCount][0].url;
  15885. if (
  15886. _chapterData[taskCount][0].type == 8 ||
  15887. _chapterData[taskCount][0].type == 14
  15888. ) {
  15889. this.showType = 2;
  15890. if (
  15891. _url.indexOf("https://") == -1 &&
  15892. _url.indexOf("http://") == -1
  15893. ) {
  15894. _url = "https://" + _url;
  15895. }
  15896. this.pptImgUrl1 = _url;
  15897. } else if (_chapterData[taskCount][0].type == 3) {
  15898. if (
  15899. _url
  15900. .split(".")
  15901. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15902. ) {
  15903. this.showType = 3;
  15904. this.pptImgUrl1 = _url;
  15905. } else if (
  15906. this.isAssetTypeAnImage(
  15907. _url
  15908. .split(".")
  15909. [_url.split(".").length - 1].toLocaleLowerCase()
  15910. )
  15911. ) {
  15912. this.showType = 4;
  15913. this.pptImgUrl1 = _url;
  15914. } else {
  15915. this.showType = 2;
  15916. this.pptImgUrl1 =
  15917. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15918. encodeURIComponent(_url);
  15919. }
  15920. } else if (_chapterData[taskCount][0].type == 13) {
  15921. this.showType = 4;
  15922. this.pptImgUrl1 = _url;
  15923. } else if (_chapterData[taskCount][0].type == 6) {
  15924. this.showType = 1;
  15925. this.text = this.textList[taskCount][0];
  15926. }
  15927. }
  15928. }
  15929. this.isClickNav = 0;
  15930. if (
  15931. !_chapterData[taskCount].length ||
  15932. _chapterData[taskCount][0].type == 12
  15933. ) {
  15934. this.isClickNav = "";
  15935. this.showType = "";
  15936. }
  15937. this.vChapterData = _chapterData;
  15938. this.$forceUpdate();
  15939. }
  15940. // else {
  15941. // this.courseDetail = res.data[0][0];
  15942. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15943. // }
  15944. let _this = this;
  15945. if (_this.timer) {
  15946. clearInterval(_this.timer);
  15947. _this.timer = null;
  15948. }
  15949. if (_this.tcid) {
  15950. _this.getCourseGroup(gindex);
  15951. } else {
  15952. _this.selectSWorks(gindex);
  15953. }
  15954. _this.selectStudent();
  15955. _this.selectSLook();
  15956. _this.getPick();
  15957. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15958. _this.setCTask();
  15959. }
  15960. if (_this.dialogVisibleGroup) {
  15961. _this.groupJson =
  15962. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15963. _this.taskCount
  15964. ].toolChoose[_this.toolindex].groupJson;
  15965. }
  15966. _this.$nextTick(() => {
  15967. setTimeout(() => {
  15968. _this.checkEva();
  15969. }, 1000);
  15970. });
  15971. _this.timer = setInterval(function () {
  15972. // _this.getCourseDetail(2);
  15973. if (_this.tcid) {
  15974. _this.getCourseGroup(gindex);
  15975. } else {
  15976. _this.selectSWorks(gindex);
  15977. }
  15978. _this.selectStudent();
  15979. _this.selectSLook();
  15980. _this.getPick();
  15981. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15982. _this.setCTask();
  15983. }
  15984. if (_this.dialogVisibleGroup) {
  15985. _this.groupJson =
  15986. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15987. _this.taskCount
  15988. ].toolChoose[_this.toolindex].groupJson;
  15989. }
  15990. if (_this.tType == 4 || _this.ispzType == 4) {
  15991. _this.selectPz();
  15992. }
  15993. }, 5000);
  15994. _this.$nextTick(function () {
  15995. setTimeout(() => {
  15996. // var a =
  15997. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15998. // document.getElementsByClassName("vedioList")[0].style.height =
  15999. // a + "px";
  16000. // document.getElementsByClassName("navBox")[0].style.height =
  16001. // a - 40 + "px";
  16002. // if (_this.vedio[_this.taskCount].length > 0) {
  16003. // _this.vedioTime = [];
  16004. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16005. // _this.vedioTime[i] = document.getElementsByClassName(
  16006. // "vjs-duration-display"
  16007. // )[i].textContent;
  16008. // }
  16009. // }
  16010. }, 1000);
  16011. });
  16012. })
  16013. .catch((err) => {
  16014. loading.close();
  16015. console.error(err);
  16016. });
  16017. },
  16018. getCourseGroup(gindex) {
  16019. let params = {
  16020. cid: this.id,
  16021. classid: this.tcid ? this.tcid : "1",
  16022. };
  16023. this.ajax
  16024. .get(this.$store.state.api + "getCourseGroup", params)
  16025. .then((res) => {
  16026. if (res.data && res.data[0].length) {
  16027. if (!this.isGroup) {
  16028. let courseGroup = JSON.parse(res.data[0][0].group);
  16029. courseGroup.group = courseGroup.group.filter((el) => {
  16030. el.works = [];
  16031. return el;
  16032. });
  16033. if (courseGroup.isopen == 2) {
  16034. this.isGroup = false;
  16035. this.selectSWorks(gindex);
  16036. return;
  16037. }
  16038. this.courseGroup = courseGroup;
  16039. let groupPerson = res.data[1];
  16040. let group = JSON.parse(res.data[0][0].group).group;
  16041. let courseGroupStudent = {};
  16042. let courseGroupStudentUid = {};
  16043. for (var i = 0; i < group.length; i++) {
  16044. courseGroupStudent[group[i].id] = [];
  16045. courseGroupStudentUid[group[i].id] = [];
  16046. for (var j = 0; j < groupPerson.length; j++) {
  16047. if (groupPerson[j].groupCid == group[i].id) {
  16048. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16049. courseGroupStudentUid[group[i].id].push(
  16050. groupPerson[j].userid
  16051. );
  16052. }
  16053. }
  16054. }
  16055. this.courseGroupStudent = courseGroupStudent;
  16056. this.courseGroupStudentUid = courseGroupStudentUid;
  16057. }
  16058. if (this.courseGroup.isopen == 2) {
  16059. this.isGroup = false;
  16060. } else {
  16061. this.isGroup = true;
  16062. }
  16063. this.selectSWorks(gindex);
  16064. } else {
  16065. this.selectSWorks(gindex);
  16066. this.isGroup = false;
  16067. }
  16068. })
  16069. .catch((err) => {
  16070. // this.$message.error("网络不佳");
  16071. console.error(err);
  16072. });
  16073. },
  16074. setOperationTime() {
  16075. let _this = this;
  16076. if (_this.opertimer) {
  16077. clearInterval(_this.opertimer);
  16078. _this.opertimer = null;
  16079. }
  16080. _this.opertimer = setInterval(() => {
  16081. _this.setoTime("600");
  16082. }, 600000);
  16083. },
  16084. setoTime(time) {
  16085. let params = [
  16086. {
  16087. uid: this.userid,
  16088. cid: this.id,
  16089. type: "2",
  16090. time: time,
  16091. },
  16092. ];
  16093. this.ajax
  16094. .post(this.$store.state.api + "addOperationTimeT2", params)
  16095. .then((res) => {})
  16096. .catch((err) => {
  16097. console.error(err);
  16098. });
  16099. },
  16100. addPz(type, content) {
  16101. if (type == "1" && this.pzConText == "") {
  16102. this.$message.error("评论不能为空!");
  16103. return;
  16104. }
  16105. let params = [
  16106. {
  16107. cid: this.id,
  16108. uid: this.userid,
  16109. s: this.courseType,
  16110. t: this.taskCount,
  16111. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  16112. type: type,
  16113. },
  16114. ];
  16115. this.ajax
  16116. .post(this.$store.state.api + "addPz2", params)
  16117. .then((res) => {
  16118. this.$message({
  16119. message: "添加成功",
  16120. type: "success",
  16121. });
  16122. this.pzConText = "";
  16123. this.addPzDialog = false;
  16124. this.selectPz();
  16125. })
  16126. .catch((err) => {
  16127. this.$message.error("添加失败");
  16128. console.error(err);
  16129. });
  16130. },
  16131. setReplyIndex(id, i) {
  16132. this.replyIndex = i;
  16133. this.replyPid = id;
  16134. this.replyDialogVisible = true;
  16135. },
  16136. addHf() {
  16137. if (this.reply == "") {
  16138. this.$message.error("回复不能为空!");
  16139. return;
  16140. }
  16141. let params = [
  16142. {
  16143. cid: this.id,
  16144. uid: this.userid,
  16145. s: this.courseType,
  16146. t: this.taskCount,
  16147. type: "1",
  16148. ct: 2,
  16149. pid: this.replyPid,
  16150. c: this.reply.replaceAll(/%/g, "%25"),
  16151. },
  16152. ];
  16153. this.ajax
  16154. .post(this.$store.state.api + "addHf", params)
  16155. .then((res) => {
  16156. this.reply = "";
  16157. this.$message({
  16158. message: "回复成功",
  16159. type: "success",
  16160. });
  16161. this.replyDialogVisible = false;
  16162. this.selectPz();
  16163. })
  16164. .catch((err) => {
  16165. this.$message.error("回复失败");
  16166. console.error(err);
  16167. });
  16168. },
  16169. deletePz(id) {
  16170. this.$confirm("确定删除此评论吗?", "提示", {
  16171. confirmButtonText: "确定",
  16172. cancelButtonText: "取消",
  16173. type: "warning",
  16174. })
  16175. .then(() => {
  16176. let params = [
  16177. {
  16178. id: id,
  16179. },
  16180. ];
  16181. this.ajax
  16182. .post(this.$store.state.api + "deletePz", params)
  16183. .then((res) => {
  16184. this.$message({
  16185. message: "删除成功",
  16186. type: "success",
  16187. });
  16188. this.selectPz();
  16189. })
  16190. .catch((err) => {
  16191. this.$message.error("网络异常");
  16192. console.error(err);
  16193. });
  16194. })
  16195. .catch(() => {});
  16196. },
  16197. deleteReply(id) {
  16198. this.$confirm("确定删除此回复吗?", "提示", {
  16199. confirmButtonText: "确定",
  16200. cancelButtonText: "取消",
  16201. type: "warning",
  16202. })
  16203. .then(() => {
  16204. let params = [
  16205. {
  16206. id: id,
  16207. },
  16208. ];
  16209. this.ajax
  16210. .post(this.$store.state.api + "deleteReply", params)
  16211. .then((res) => {
  16212. this.$message({
  16213. message: "删除成功",
  16214. type: "success",
  16215. });
  16216. this.selectPz();
  16217. })
  16218. .catch((err) => {
  16219. this.$message.error("网络异常");
  16220. console.error(err);
  16221. });
  16222. })
  16223. .catch(() => {});
  16224. },
  16225. setPz() {
  16226. if (this.ispzType == 4) {
  16227. this.ispzType = 0;
  16228. this.pzDialog = false;
  16229. return;
  16230. }
  16231. this.ispzType = 4;
  16232. this.pzDialog = true;
  16233. this.selectPz();
  16234. },
  16235. selectPz() {
  16236. let params = {
  16237. cid: this.id,
  16238. s: this.courseType,
  16239. t: this.taskCount,
  16240. type: this.pzStype,
  16241. uid: this.userid,
  16242. };
  16243. this.ajax
  16244. .get(this.$store.state.api + "selectPzListType", params)
  16245. .then((res) => {
  16246. this.pzList = res.data[0];
  16247. var a = res.data[1];
  16248. for (var i = 0; i < a.length; i++) {
  16249. for (var j = 0; j < this.pzList.length; j++) {
  16250. if (!this.pzList[j].hfList) {
  16251. this.pzList[j].hfList = [];
  16252. }
  16253. if (a[i].pid == this.pzList[j].id) {
  16254. this.pzList[j].hfList.push(a[i]);
  16255. }
  16256. }
  16257. }
  16258. })
  16259. .catch((err) => {
  16260. console.error(err);
  16261. });
  16262. },
  16263. // selectHf() {
  16264. // let params = {
  16265. // cid: this.id,
  16266. // s: this.courseType,
  16267. // t: this.taskCount,
  16268. // };
  16269. // this.ajax
  16270. // .get(this.$store.state.api + "selectHfList", params)
  16271. // .then((res) => {
  16272. // var a = res.data[0];
  16273. // for (var i = 0; i < a.length; i++) {
  16274. // for (var j = 0; j < this.pzList.length; j++) {
  16275. // if (!this.pzList[i].hfList) {
  16276. // this.pzList[i].hfList = [];
  16277. // }
  16278. // if (a[i].pid == this.pzList[j].id) {
  16279. // this.pzList[i].hfList.push(a[i]);
  16280. // }
  16281. // }
  16282. // }
  16283. // })
  16284. // .catch((err) => {
  16285. // console.error(err);
  16286. // });
  16287. // },
  16288. updateSLook() {
  16289. let params = {
  16290. sopen: this.sIsOpen == false ? 1 : 2,
  16291. cid: this.id,
  16292. };
  16293. this.ajax
  16294. .get(this.$store.state.api + "updateCourseSLook", params)
  16295. .then((res) => {
  16296. if (this.sIsOpen == true) {
  16297. this.$message({
  16298. message: "权限设置成功",
  16299. type: "success",
  16300. });
  16301. } else {
  16302. this.$message({
  16303. message: "权限关闭成功",
  16304. type: "success",
  16305. });
  16306. }
  16307. })
  16308. .catch((err) => {
  16309. console.error(err);
  16310. });
  16311. },
  16312. updateFollow() {
  16313. let params = [
  16314. {
  16315. sopen: this.IsFollow == false ? 1 : 2,
  16316. cid: this.id,
  16317. },
  16318. ];
  16319. this.ajax
  16320. .post(this.$store.state.api + "updateCourseFollow", params)
  16321. .then((res) => {
  16322. if (this.IsFollow == true) {
  16323. this.$message({
  16324. message: "开启成功",
  16325. type: "success",
  16326. });
  16327. } else {
  16328. this.$message({
  16329. message: "关闭成功",
  16330. type: "success",
  16331. });
  16332. }
  16333. this.setCTask();
  16334. })
  16335. .catch((err) => {
  16336. console.error(err);
  16337. });
  16338. },
  16339. setCTask() {
  16340. let params = [
  16341. {
  16342. sopen: this.courseType + "-" + this.taskCount,
  16343. cid: this.id,
  16344. },
  16345. ];
  16346. this.ajax
  16347. .post(this.$store.state.api + "updateCourseFollowC", params)
  16348. .then((res) => {})
  16349. .catch((err) => {
  16350. console.error(err);
  16351. });
  16352. },
  16353. updateLookOpen() {
  16354. let params = [
  16355. {
  16356. sopen: this.IsLookOpen == false ? 1 : 2,
  16357. cid: this.id,
  16358. },
  16359. ];
  16360. this.ajax
  16361. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16362. .then((res) => {
  16363. if (this.IsLookOpen == true) {
  16364. // if (this.courseType != 0 && this.taskCount != 0) {
  16365. // this.openTask(0, 0, "0-0");
  16366. // }
  16367. this.$message({
  16368. message: "权限设置成功",
  16369. type: "success",
  16370. });
  16371. } else {
  16372. this.$message({
  16373. message: "权限关闭成功",
  16374. type: "success",
  16375. });
  16376. }
  16377. this.getCourseState(2);
  16378. })
  16379. .catch((err) => {
  16380. console.error(err);
  16381. });
  16382. },
  16383. selectSLook() {
  16384. let params = {
  16385. cid: this.id,
  16386. };
  16387. this.ajax
  16388. .get(this.$store.state.api + "selectCourseSLook", params)
  16389. .then((res) => {
  16390. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16391. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16392. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16393. if (!this.IsLookOpen) {
  16394. this.setNavList();
  16395. } else {
  16396. this.getCourseState(1);
  16397. }
  16398. if (this.IsFollow && this.tType == 2) {
  16399. this.setContent2(false);
  16400. let _followC = res.data[0][0].followC.split("-");
  16401. if (
  16402. this.courseType != _followC[0] ||
  16403. this.taskCount != _followC[1]
  16404. ) {
  16405. this.navList[this.courseType].isOpen = false;
  16406. this.courseType = _followC[0];
  16407. this.navList[this.courseType].isOpen = true;
  16408. this.taskCount = parseInt(_followC[1]);
  16409. this.navId = res.data[0][0].followC;
  16410. document.scrollingElement.scrollTop = 0;
  16411. this.getCourseDetail(2);
  16412. }
  16413. }
  16414. })
  16415. .catch((err) => {
  16416. console.error(err);
  16417. });
  16418. },
  16419. setNavList() {
  16420. if (this.navList.length == 0) {
  16421. this.navList = [];
  16422. var copyList = [];
  16423. for (var l = 0; l < this.chapInfoList.length; l++) {
  16424. var q = this.chapInfoList[l].dyName;
  16425. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16426. var e;
  16427. copyList.push({
  16428. dyName: q,
  16429. isOpen: l === 0 ? true : false,
  16430. task: [],
  16431. });
  16432. for (var r = 0; r < w.length; r++) {
  16433. e = w[r].task;
  16434. if (this.chapInfoList[l].easy == 1) {
  16435. copyList[l].task.push({
  16436. taskName: q,
  16437. id: l + "-" + r,
  16438. isLook: w[r].isLook,
  16439. isOpen: r === 0 ? true : false,
  16440. tool: [],
  16441. });
  16442. } else {
  16443. copyList[l].task.push({
  16444. taskName: e,
  16445. id: l + "-" + r,
  16446. isLook: w[r].isLook,
  16447. isOpen: r === 0 ? true : false,
  16448. tool: [],
  16449. });
  16450. }
  16451. var t = w[r].toolChoose;
  16452. for (var k = 0; k < t.length; k++) {
  16453. var tool = t[k].tool[0];
  16454. copyList[l].task[r].tool.push({
  16455. tool: tool,
  16456. isTool: false,
  16457. });
  16458. }
  16459. // this.navId = this.navId ? this.navId : l + "-" + r;
  16460. // this.navId = l + "-" + r;
  16461. }
  16462. }
  16463. this.navList = copyList;
  16464. this.navList[0].isOpen = false;
  16465. this.navList[this.courseType].isOpen = true;
  16466. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16467. } else {
  16468. this.setNavList2();
  16469. }
  16470. },
  16471. setNavList2() {
  16472. for (var l = 0; l < this.chapInfoList.length; l++) {
  16473. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16474. for (var r = 0; r < w.length; r++) {
  16475. this.navList[l].task[r].isLook = w[r].isLook;
  16476. }
  16477. }
  16478. if (
  16479. this.IsLookOpen &&
  16480. !this.navList[this.courseType].task[this.taskCount].isLook
  16481. ) {
  16482. this.openTask(0, 0, "0-0");
  16483. }
  16484. this.$forceUpdate();
  16485. },
  16486. getCourseState(type) {
  16487. let params = {
  16488. cid: this.id,
  16489. };
  16490. this.ajax
  16491. .get(this.$store.state.api + "getCourseState", params)
  16492. .then((res) => {
  16493. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16494. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16495. this.setNavList();
  16496. this.$forceUpdate();
  16497. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16498. this.addCourseState(2);
  16499. } else {
  16500. this.addCourseState(1);
  16501. }
  16502. })
  16503. .catch((err) => {
  16504. console.error(err);
  16505. });
  16506. },
  16507. addCourseState(type) {
  16508. let _state = this.chapInfoList;
  16509. // this.courseType this.taskCount
  16510. if (type == 1 || type == 2) {
  16511. for (var i = 0; i < _state.length; i++) {
  16512. let el = _state[i].chapterInfo[0].taskJson;
  16513. for (var j = 0; j < el.length; j++) {
  16514. // if (i == 0 && j == 0) {
  16515. // el[j].isLook = true;
  16516. // } else {
  16517. // el[j].isLook = false;
  16518. // }
  16519. if (
  16520. this.courseType > i ||
  16521. (this.courseType == i && this.taskCount + 1 > j)
  16522. ) {
  16523. el[j].isLook = true;
  16524. } else {
  16525. el[j].isLook = false;
  16526. }
  16527. }
  16528. }
  16529. }
  16530. let params = [
  16531. {
  16532. cid: this.id,
  16533. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16534. },
  16535. ];
  16536. this.ajax
  16537. .post(
  16538. this.$store.state.api +
  16539. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16540. params
  16541. )
  16542. .then((res) => {
  16543. if (this.IsLookOpen) {
  16544. this.setNavList();
  16545. }
  16546. if (type == 3 && type == 2) {
  16547. this.getCourseState(1);
  16548. }
  16549. })
  16550. .catch((err) => {
  16551. console.error(err);
  16552. });
  16553. },
  16554. getHomeWork() {
  16555. let params = {
  16556. cid: this.id,
  16557. stage: this.courseType,
  16558. task: this.taskCount,
  16559. uid: this.userid,
  16560. };
  16561. this.ajax
  16562. .get(this.$store.state.api + "selectWork", params)
  16563. .then((res) => {
  16564. if (res.data[0].length > 0) {
  16565. this.studyJuri = JSON.parse(res.data[0][0].content);
  16566. this.isNoHomeWork = true;
  16567. }
  16568. })
  16569. .catch((err) => {
  16570. console.error(err);
  16571. });
  16572. },
  16573. isAssetTypeAnImage(ext) {
  16574. return (
  16575. [
  16576. "png",
  16577. "jpg",
  16578. "jpeg",
  16579. "bmp",
  16580. "gif",
  16581. "webp",
  16582. "psd",
  16583. "svg",
  16584. "tiff",
  16585. ].indexOf(ext) !== -1
  16586. );
  16587. },
  16588. switchVideo(media) {
  16589. this.playerO = {};
  16590. this.playerOptions.poster = "";
  16591. this.playerOptions.sources[0].src = media;
  16592. this.playerO = this.playerOptions;
  16593. },
  16594. onPlayerPlay() {},
  16595. onPlayerTimeupdate(player) {
  16596. let gklog = player.cache_.currentTime; //当前播放的秒数
  16597. let a = player.cache_.duration; //视频的总时长
  16598. let gklog2 = parseInt(gklog);
  16599. // if(gklog2 == '3'){
  16600. // player.pause()
  16601. // setTimeout(()=>{
  16602. // player.currentTime(gklog2+1)
  16603. // player.play()
  16604. // },1000)
  16605. // }
  16606. console.log(" onPlayerTimeupdate!", gklog);
  16607. console.log(" onPlayerTimeupdate!", gklog2);
  16608. },
  16609. lookVedio(u, i) {
  16610. this.isClickNav = "";
  16611. // this.playerOptions.sources[0].src = u;
  16612. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16613. d.sources[0].src = u;
  16614. this.playerO[0] = d;
  16615. this.showType = 0;
  16616. // this.isClickNav = "video" + i;
  16617. this.isClickNav = i;
  16618. this.$forceUpdate();
  16619. },
  16620. lookText(i, t) {
  16621. this.isClickNav = "";
  16622. // this.text = this.textList[i][t];
  16623. this.text = this.vChapterData[i][t];
  16624. // this.dialogVisible1 = true;
  16625. this.showType = 1;
  16626. // this.isClickNav = "text" + t;
  16627. this.isClickNav = t;
  16628. },
  16629. lookTools(i, t) {
  16630. this.chapTools = this.chapToolList[i][t];
  16631. this.dialogVisible2 = true;
  16632. },
  16633. openFile(f) {
  16634. this.pptImgUrl = "";
  16635. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16636. if (
  16637. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16638. -1
  16639. ) {
  16640. this.pptImgUrl =
  16641. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16642. this.showPDF = false;
  16643. this.dialogVisible3 = true;
  16644. } else if (
  16645. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16646. ) {
  16647. this.pptImgUrl = f;
  16648. this.showPDF = true;
  16649. this.dialogVisible3 = true;
  16650. }
  16651. },
  16652. openTable(f) {
  16653. this.tableJson = JSON.parse(f.works);
  16654. this.dialogVisibleTable2 = true;
  16655. },
  16656. openWord(f) {
  16657. this.tableJson = JSON.parse(f.works);
  16658. this.dialogVisibleTable3 = true;
  16659. },
  16660. doUrl(url, i) {
  16661. this.isClickNav = "";
  16662. this.pptImgUrl1 = "";
  16663. this.showType = 2;
  16664. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16665. url = "https://" + url;
  16666. }
  16667. this.pptImgUrl1 = "";
  16668. setTimeout(() => {
  16669. this.pptImgUrl1 = url;
  16670. }, 500);
  16671. // this.isClickNav = "line" + i;
  16672. this.isClickNav = i;
  16673. this.$forceUpdate();
  16674. },
  16675. checkPhoto(f, i) {
  16676. this.showType = 4;
  16677. this.pptImgUrl1 = f.url;
  16678. this.isClickNav = i;
  16679. this.$forceUpdate();
  16680. },
  16681. downFile(f, i) {
  16682. this.isClickNav = "";
  16683. this.pptImgUrl1 = "";
  16684. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16685. if (
  16686. a.indexOf(
  16687. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16688. ) != -1
  16689. ) {
  16690. this.pptImgUrl1 =
  16691. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  16692. // this.dialogVisible3 = true;
  16693. this.showType = 2;
  16694. } else if (
  16695. this.isAssetTypeAnImage(
  16696. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16697. )
  16698. ) {
  16699. this.showType = 4;
  16700. this.pptImgUrl1 = f.url;
  16701. } else if (
  16702. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16703. "PDF"
  16704. ) {
  16705. this.pptImgUrl1 = f.url;
  16706. // this.dialogVisible3 = true;
  16707. this.showType = 3;
  16708. } else {
  16709. window.open(this.file[i].url);
  16710. }
  16711. // this.isClickNav = "word" + i;
  16712. this.isClickNav = i;
  16713. },
  16714. downFileList(i) {
  16715. window.open(this.noImgList[i].url);
  16716. },
  16717. openAddWork() {
  16718. this.dialogVisible = true;
  16719. },
  16720. addBzWorks() {
  16721. let params = [
  16722. {
  16723. uid: this.userid,
  16724. cid: this.id,
  16725. stage: this.courseType,
  16726. task: this.taskCount,
  16727. tool: this.toolindex,
  16728. content: JSON.stringify(this.eScore),
  16729. type: 6,
  16730. },
  16731. ];
  16732. this.ajax
  16733. .post(this.$store.state.api + "addCourseWorks", params)
  16734. .then((res) => {
  16735. this.$message({
  16736. message: "提交成功",
  16737. type: "success",
  16738. });
  16739. this.eScore = { eBzText: "", eStar: [] };
  16740. this.studentEvalDialogVisible = false;
  16741. this.selectSWorks();
  16742. })
  16743. .catch((err) => {
  16744. this.$message.error("提交失败");
  16745. console.error(err);
  16746. });
  16747. },
  16748. addBzWorksTeacher() {
  16749. let params = [
  16750. {
  16751. uid: this.sStudent.userid,
  16752. cid: this.id,
  16753. stage: this.courseType,
  16754. task: this.taskCount,
  16755. tool: this.toolindex,
  16756. content: JSON.stringify(this.eScore),
  16757. type: 6,
  16758. },
  16759. ];
  16760. this.ajax
  16761. .post(this.$store.state.api + "addCourseWorks", params)
  16762. .then((res) => {
  16763. this.$message({
  16764. message: "提交成功",
  16765. type: "success",
  16766. });
  16767. this.eScore = { eBzText: "", eStar: [] };
  16768. this.studentEvalDialogVisibleTeacher = false;
  16769. this.selectSWorks();
  16770. })
  16771. .catch((err) => {
  16772. this.$message.error("提交失败");
  16773. console.error(err);
  16774. });
  16775. },
  16776. addStudentAsk() {
  16777. if (!this.radio.length) {
  16778. this.$message.error("请选择选项");
  16779. return;
  16780. }
  16781. for (var i = 0; i < this.askJson.askCount; i++) {
  16782. if (
  16783. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16784. (this.radio[i] !== 0 && !this.radio[i])
  16785. ) {
  16786. this.$message.error("请选择选项");
  16787. return;
  16788. }
  16789. }
  16790. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16791. let params = [
  16792. {
  16793. uid: this.userid,
  16794. cid: this.id,
  16795. stage: this.courseType,
  16796. task: this.taskCount,
  16797. tool: this.toolindex,
  16798. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16799. type: 2,
  16800. },
  16801. ];
  16802. this.ajax
  16803. .post(this.$store.state.api + "addCourseWorks", params)
  16804. .then((res) => {
  16805. this.$message({
  16806. message: "提交成功",
  16807. type: "success",
  16808. });
  16809. this.askList = [];
  16810. this.dialogVisible5 = false;
  16811. this.selectStudent();
  16812. this.selectSWorks();
  16813. this.selectSLook();
  16814. })
  16815. .catch((err) => {
  16816. this.$message.error("提交失败");
  16817. console.error(err);
  16818. });
  16819. },
  16820. addStudentAskTeacher() {
  16821. if (!this.radio.length) {
  16822. this.$message.error("请选择选项");
  16823. return;
  16824. }
  16825. for (var i = 0; i < this.askJson.askCount; i++) {
  16826. if (
  16827. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16828. (this.radio[i] !== 0 && !this.radio[i])
  16829. ) {
  16830. this.$message.error("请选择选项");
  16831. return;
  16832. }
  16833. }
  16834. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16835. let params = [
  16836. {
  16837. uid: this.sStudent.userid,
  16838. cid: this.id,
  16839. stage: this.courseType,
  16840. task: this.taskCount,
  16841. tool: this.toolindex,
  16842. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16843. type: 2,
  16844. },
  16845. ];
  16846. this.ajax
  16847. .post(this.$store.state.api + "addCourseWorks", params)
  16848. .then((res) => {
  16849. this.$message({
  16850. message: "提交成功",
  16851. type: "success",
  16852. });
  16853. this.askList = [];
  16854. this.dialogVisible5Teacher = false;
  16855. this.selectStudent();
  16856. this.selectSWorks();
  16857. this.selectSLook();
  16858. })
  16859. .catch((err) => {
  16860. this.$message.error("提交失败");
  16861. console.error(err);
  16862. });
  16863. },
  16864. addStudentTest() {
  16865. if (!this.radio.length) {
  16866. this.$message.error("请选择选项");
  16867. return;
  16868. }
  16869. for (var i = 0; i < this.testJson.testCount; i++) {
  16870. if (
  16871. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16872. (this.radio[i] !== 0 && !this.radio[i])
  16873. ) {
  16874. this.$message.error("请选择选项");
  16875. return;
  16876. }
  16877. }
  16878. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16879. let params = [
  16880. {
  16881. uid: this.userid,
  16882. cid: this.id,
  16883. stage: this.courseType,
  16884. task: this.taskCount,
  16885. tool: this.toolindex,
  16886. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16887. type: 8,
  16888. },
  16889. ];
  16890. this.ajax
  16891. .post(this.$store.state.api + "addCourseWorks", params)
  16892. .then((res) => {
  16893. this.$message({
  16894. message: "提交成功",
  16895. type: "success",
  16896. });
  16897. this.askList = [];
  16898. this.dialogVisibleChoice = false;
  16899. this.selectStudent();
  16900. this.selectSWorks();
  16901. this.selectSLook();
  16902. })
  16903. .catch((err) => {
  16904. this.$message.error("提交失败");
  16905. console.error(err);
  16906. });
  16907. },
  16908. addStudentTestTeacher() {
  16909. if (!this.radio.length) {
  16910. this.$message.error("请选择选项");
  16911. return;
  16912. }
  16913. for (var i = 0; i < this.testJson.testCount; i++) {
  16914. if (
  16915. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16916. (this.radio[i] !== 0 && !this.radio[i])
  16917. ) {
  16918. this.$message.error("请选择选项");
  16919. return;
  16920. }
  16921. }
  16922. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16923. let params = [
  16924. {
  16925. uid: this.sStudent.userid,
  16926. cid: this.id,
  16927. stage: this.courseType,
  16928. task: this.taskCount,
  16929. tool: this.toolindex,
  16930. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16931. type: 8,
  16932. },
  16933. ];
  16934. this.ajax
  16935. .post(this.$store.state.api + "addCourseWorks", params)
  16936. .then((res) => {
  16937. this.$message({
  16938. message: "提交成功",
  16939. type: "success",
  16940. });
  16941. this.askList = [];
  16942. this.dialogVisibleChoiceTeacher = false;
  16943. this.selectStudent();
  16944. this.selectSWorks();
  16945. this.selectSLook();
  16946. })
  16947. .catch((err) => {
  16948. this.$message.error("提交失败");
  16949. console.error(err);
  16950. });
  16951. },
  16952. addWork() {
  16953. if (this.studyJuri[0].content == "") {
  16954. this.$message.error("请将信息填写完整");
  16955. return;
  16956. } else if (this.studyJuri[0].cover.length == 0) {
  16957. this.$message.error("请将信息填写完整");
  16958. return;
  16959. } else if (this.studyJuri[0].upVedio.length == 0) {
  16960. this.$message.error("请将信息填写完整");
  16961. return;
  16962. }
  16963. if (this.isNoHomeWork) {
  16964. this.$confirm(
  16965. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16966. "提示",
  16967. {
  16968. confirmButtonText: "确定",
  16969. cancelButtonText: "取消",
  16970. type: "warning",
  16971. }
  16972. )
  16973. .then(() => {
  16974. let params = [
  16975. {
  16976. uid: this.userid,
  16977. cid: this.id,
  16978. stage: this.courseType,
  16979. task: this.taskCount,
  16980. content: JSON.stringify(this.studyJuri),
  16981. },
  16982. ];
  16983. this.ajax
  16984. .post(this.$store.state.api + "addWorks", params)
  16985. .then((res) => {
  16986. this.$message({
  16987. message: "提交成功",
  16988. type: "success",
  16989. });
  16990. this.isNoHomeWork = true;
  16991. this.dialogVisible = false;
  16992. })
  16993. .catch((err) => {
  16994. this.$message.error("提交失败");
  16995. console.error(err);
  16996. });
  16997. })
  16998. .catch(() => {});
  16999. } else {
  17000. let params = [
  17001. {
  17002. uid: this.userid,
  17003. cid: this.id,
  17004. stage: this.courseType,
  17005. task: this.taskCount,
  17006. content: JSON.stringify(this.studyJuri),
  17007. },
  17008. ];
  17009. this.ajax
  17010. .post(this.$store.state.api + "addWorks", params)
  17011. .then((res) => {
  17012. this.$message({
  17013. message: "提交成功",
  17014. type: "success",
  17015. });
  17016. this.isNoHomeWork = true;
  17017. this.dialogVisible = false;
  17018. })
  17019. .catch((err) => {
  17020. this.$message.error("提交失败");
  17021. console.error(err);
  17022. });
  17023. }
  17024. },
  17025. selectCount() {
  17026. let params = {
  17027. cid: this.id,
  17028. chid: this.courseType,
  17029. uid: this.userid,
  17030. };
  17031. this.ajax
  17032. .get(this.$store.state.api + "selectToolsCount", params)
  17033. .then((res) => {
  17034. for (var i = 0; i < res.data[0].length; i++) {
  17035. if (res.data[0][i].tools == 1) {
  17036. this.wbCount = res.data[0][i].count;
  17037. } else if (res.data[0][i].tools == 2) {
  17038. this.wordCount = res.data[0][i].count;
  17039. } else if (res.data[0][i].tools == 3) {
  17040. this.mindCount = res.data[0][i].count;
  17041. } else if (res.data[0][i].tools == 4) {
  17042. this.askCount = res.data[0][i].count;
  17043. } else if (res.data[0][i].tools == 6) {
  17044. this.noteCount = res.data[0][i].count;
  17045. } else if (res.data[0][i].tools == 7) {
  17046. this.mindNetWorkCount = res.data[0][i].count;
  17047. } else if (res.data[0][i].tools == 8) {
  17048. this.libraryCount = res.data[0][i].count;
  17049. } else if (res.data[0][i].tools == 16) {
  17050. this.workCount = res.data[0][i].count;
  17051. } else if (res.data[0][i].tools == 10) {
  17052. this.timeCount = res.data[0][i].count;
  17053. } else if (res.data[0][i].tools == 15) {
  17054. this.answerCount = res.data[0][i].count;
  17055. } else if (res.data[0][i].tools == 18) {
  17056. this.trainCount = res.data[0][i].count;
  17057. }
  17058. }
  17059. })
  17060. .catch((err) => {
  17061. console.error(err);
  17062. });
  17063. },
  17064. openTools(t, i, index, c, sName,id) {
  17065. var z = JSON.parse(c);
  17066. this.noteName = sName;
  17067. if (t == 4) {
  17068. this.radio = [];
  17069. this.isAnswer = false;
  17070. let b = z[0].anwer;
  17071. this.radio = b;
  17072. this.askJson = z[0].askJson;
  17073. this.isAnswer = true;
  17074. this.dialogVisible5 = true;
  17075. } else if (t == 45) {
  17076. this.radio = [];
  17077. this.isAnswer = false;
  17078. let b = z[0].anwer;
  17079. this.radio = b;
  17080. this.testJson = z[0].testJson;
  17081. this.isAnswer = true;
  17082. this.dialogVisibleChoice = true;
  17083. }else if(t == 69){
  17084. this.oldEnglishJson1 = {}
  17085. this.oldEnglishJson = {}
  17086. this.englishList1 = {}
  17087. this.newEngIndex = -1;
  17088. this.isNoUserid = false;
  17089. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17090. .toolChoose[i].englishList;
  17091. this.oldEnglishJson = z;
  17092. this.engWid = id;
  17093. this.newEnglishList = { engTitle:"",engText:"" }
  17094. this.newEnglishList1 = []
  17095. this.selectEngC(id,z);
  17096. }
  17097. // else if (t == 15) {
  17098. // this.answerQ = "";
  17099. // this.questionAnswer = "";
  17100. // this.answerQ = z[0].answerTitle;
  17101. // this.questionAnswer = z[0].answer;
  17102. // this.answerDialogVisible = true;
  17103. // }
  17104. },
  17105. fastText(p, t) {
  17106. if (t == 1) {
  17107. this.commentText += p;
  17108. } else {
  17109. this.eScore.eBzText += p;
  17110. }
  17111. },
  17112. addTools(t, i, index) {
  17113. var a = 0;
  17114. // this.taskCount = index;
  17115. this.toolindex = i;
  17116. if (t == 1) {
  17117. if (this.wbCount > 0) {
  17118. this.updateCount(this.wbCount, t);
  17119. } else {
  17120. this.wbCount++;
  17121. a = this.wbCount;
  17122. this.toolsCount(a, t);
  17123. }
  17124. window.parent.postMessage(
  17125. {
  17126. tools: "1",
  17127. cid: this.id,
  17128. stage: this.courseType,
  17129. task: this.taskCount,
  17130. tool: i,
  17131. },
  17132. "*"
  17133. );
  17134. } else if (t == 2) {
  17135. if (this.wordCount > 0) {
  17136. this.updateCount(this.wordCount, t);
  17137. } else {
  17138. this.wordCount++;
  17139. a = this.wordCount;
  17140. this.toolsCount(a, t);
  17141. }
  17142. window.parent.postMessage({ tools: "2" }, "*");
  17143. } else if (t == 3) {
  17144. if (this.mindCount > 0) {
  17145. this.updateCount(this.mindCount, t);
  17146. } else {
  17147. this.mindCount++;
  17148. a = this.mindCount;
  17149. this.toolsCount(a, t);
  17150. }
  17151. window.parent.postMessage(
  17152. {
  17153. tools: "3",
  17154. cid: this.id,
  17155. stage: this.courseType,
  17156. task: this.taskCount,
  17157. tool: i,
  17158. },
  17159. "*"
  17160. );
  17161. } else if (t == 4) {
  17162. this.radio = [];
  17163. this.noteName = "";
  17164. this.isAnswer = false;
  17165. if (this.askCount > 0) {
  17166. this.updateCount(this.askCount, t);
  17167. } else {
  17168. this.askCount++;
  17169. a = this.askCount;
  17170. this.toolsCount(a, t);
  17171. }
  17172. if (!this.dialogVisible2) {
  17173. this.askJson.askJson =
  17174. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17175. index
  17176. ].toolChoose[i].askJson;
  17177. this.askJson.askTitle =
  17178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17179. index
  17180. ].toolChoose[i].askTitle;
  17181. this.askJson.askCount =
  17182. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17183. index
  17184. ].toolChoose[i].askCount;
  17185. } else {
  17186. this.askJson.askJson = this.chapTools.askJson.askJson;
  17187. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17188. this.askJson.askCount = this.chapTools.askJson.askCount;
  17189. }
  17190. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17191. if (this.askJson.askJson[k].type == "2") {
  17192. this.radio.push([]);
  17193. } else {
  17194. this.radio.push("");
  17195. }
  17196. }
  17197. this.dialogVisible5 = true;
  17198. // window.parent.postMessage({ tools: "4" }, "*");
  17199. } else if (t == 45) {
  17200. this.noteName = "";
  17201. this.radio = [];
  17202. this.isAnswer = false;
  17203. if (this.askCount > 0) {
  17204. this.updateCount(this.askCount, t);
  17205. } else {
  17206. this.askCount++;
  17207. a = this.askCount;
  17208. this.toolsCount(a, t);
  17209. }
  17210. this.testJson =
  17211. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17212. index
  17213. ].toolChoose[i].testJson;
  17214. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17215. if (this.testJson.testJson[k].type == "2") {
  17216. this.radio.push([]);
  17217. } else {
  17218. this.radio.push("");
  17219. }
  17220. }
  17221. this.dialogVisibleChoice = true;
  17222. // window.parent.postMessage({ tools: "4" }, "*");
  17223. } else if (t == 5) {
  17224. if (this.scoreCount > 0) {
  17225. this.updateCount(this.scoreCount, t);
  17226. } else {
  17227. this.scoreCount++;
  17228. a = this.scoreCount;
  17229. this.toolsCount(a, t);
  17230. }
  17231. this.dialogVisible4 = true;
  17232. // window.parent.postMessage({ tools: "5" }, "*");
  17233. } else if (t == 6) {
  17234. if (this.noteCount > 0) {
  17235. this.updateCount(this.noteCount, t);
  17236. } else {
  17237. this.noteCount++;
  17238. a = this.noteCount;
  17239. this.toolsCount(a, t);
  17240. }
  17241. window.parent.postMessage(
  17242. {
  17243. tools: "6",
  17244. cid: this.id,
  17245. stage: this.courseType,
  17246. task: this.taskCount,
  17247. tool: i,
  17248. },
  17249. "*"
  17250. );
  17251. } else if (t == 7) {
  17252. if (this.mindNetWorkCount > 0) {
  17253. this.updateCount(this.mindNetWorkCount, t);
  17254. } else {
  17255. this.mindNetWorkCount++;
  17256. a = this.mindNetWorkCount;
  17257. this.toolsCount(a, t);
  17258. }
  17259. window.parent.postMessage(
  17260. {
  17261. tools: "7",
  17262. cid: this.id,
  17263. stage: this.courseType,
  17264. task: this.taskCount,
  17265. tool: i,
  17266. },
  17267. "*"
  17268. );
  17269. } else if (t == 16) {
  17270. if (this.workCount > 0) {
  17271. this.updateCount(this.workCount, t);
  17272. } else {
  17273. this.workCount++;
  17274. a = this.workCount;
  17275. this.toolsCount(a, t);
  17276. }
  17277. this.dialogVisible = true;
  17278. } else if (t == 50) {
  17279. if (this.tType == 2) {
  17280. this.$message.error("不支持学生使用");
  17281. return;
  17282. }
  17283. this.plworkFile = [];
  17284. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17285. if (!this.uploadCid) {
  17286. this.$message.error(
  17287. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17288. );
  17289. return;
  17290. }
  17291. // this.uploadCid =
  17292. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17293. // index
  17294. // ].toolChoose[i].uploadJson[0];
  17295. this.selectUploadStudent(2);
  17296. } else if (t == 8) {
  17297. if (this.libraryCount > 0) {
  17298. this.updateCount(this.libraryCount, t);
  17299. } else {
  17300. this.libraryCount++;
  17301. a = this.libraryCount;
  17302. this.toolsCount(a, t);
  17303. }
  17304. window.parent.postMessage({ tools: "8" }, "*");
  17305. } else if (t == 17) {
  17306. if (this.libraryCount > 0) {
  17307. this.updateCount(this.libraryCount, t);
  17308. } else {
  17309. this.libraryCount++;
  17310. a = this.libraryCount;
  17311. this.toolsCount(a, t);
  17312. }
  17313. window.parent.postMessage({ tools: "17" }, "*");
  17314. } else if (t == 18) {
  17315. if (this.trainCount > 0) {
  17316. this.updateCount(this.trainCount, t);
  17317. } else {
  17318. this.trainCount++;
  17319. a = this.trainCount;
  17320. this.toolsCount(a, t);
  17321. }
  17322. window.parent.postMessage({ tools: "18" }, "*");
  17323. } else if (t == 10) {
  17324. if (this.timeCount > 0) {
  17325. this.updateCount(this.timeCount, t);
  17326. } else {
  17327. this.timeCount++;
  17328. a = this.timeCount;
  17329. this.toolsCount(a, t);
  17330. }
  17331. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17332. .taskJson[index].toolChoose[i].preTime
  17333. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17334. .toolChoose[i].preTime
  17335. : "";
  17336. this.timeDialogVisible = true;
  17337. } else if (t == 15) {
  17338. this.answerQ = "";
  17339. this.questionAnswer = "";
  17340. if (this.answerCount > 0) {
  17341. this.updateCount(this.answerCount, t);
  17342. } else {
  17343. this.answerCount++;
  17344. a = this.answerCount;
  17345. this.toolsCount(a, t);
  17346. }
  17347. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17348. .taskJson[index].toolChoose[i].answerQ
  17349. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17350. .toolChoose[i].answerQ
  17351. : "";
  17352. this.answerDialogVisible = true;
  17353. } else if (t == 21) {
  17354. window.parent.postMessage({ tools: "21" }, "*");
  17355. } else if (t == 22) {
  17356. window.parent.postMessage({ tools: "22" }, "*");
  17357. } else if (t == 23) {
  17358. window.parent.postMessage({ tools: "23" }, "*");
  17359. } else if (t == 24) {
  17360. window.parent.postMessage({ tools: "24" }, "*");
  17361. } else if (t == 25) {
  17362. window.parent.postMessage({ tools: "25" }, "*");
  17363. } else if (t == 31) {
  17364. window.parent.postMessage({ tools: "31" }, "*");
  17365. } else if (t == 28) {
  17366. window.parent.postMessage({ tools: "28" }, "*");
  17367. } else if (t == 37) {
  17368. window.parent.postMessage({ tools: "37" }, "*");
  17369. } else if (t == 38) {
  17370. window.parent.postMessage({ tools: "38" }, "*");
  17371. } else if (t == 39) {
  17372. window.parent.postMessage({ tools: "39" }, "*");
  17373. } else if (t == 32) {
  17374. window.parent.postMessage({ tools: "32" }, "*");
  17375. } else if (t == 66) {
  17376. window.parent.postMessage({ tools: "66" }, "*");
  17377. } else if (t == 67) {
  17378. window.parent.postMessage({ tools: "67" }, "*");
  17379. } else if (t == 68) {
  17380. window.parent.postMessage({ tools: "68" }, "*");
  17381. } else if (t == 57) {
  17382. // window.parent.postMessage({ tools: "57" }, "*");
  17383. window.parent.postMessage(
  17384. {
  17385. tools: "57u",
  17386. cid: this.id,
  17387. stage: this.courseType,
  17388. task: this.taskCount,
  17389. tool: i,
  17390. },
  17391. "*"
  17392. );
  17393. } else if (t == 58) {
  17394. window.parent.postMessage({ tools: "58" }, "*");
  17395. } else if (t == 59) {
  17396. window.parent.postMessage({ tools: "59" }, "*");
  17397. } else if (t == 60) {
  17398. window.parent.postMessage({ tools: "60" }, "*");
  17399. } else if (t == 61) {
  17400. window.parent.postMessage({ tools: "61" }, "*");
  17401. } else if (t == 63) {
  17402. window.parent.postMessage({ tools: "63" }, "*");
  17403. } else if (t == 69) {
  17404. if (this.worksStudent[i].length) {
  17405. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17406. if (this.userid == this.worksStudent[i][k].userid) {
  17407. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17408. break;
  17409. } else {
  17410. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17411. }
  17412. }
  17413. } else {
  17414. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17415. }
  17416. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17417. .taskJson[index].toolChoose[i].englishList
  17418. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17419. .toolChoose[i].englishList
  17420. : {};
  17421. this.englishToolIndex = i;
  17422. this.engDialogVisible = true;
  17423. } else if (t == 65) {
  17424. if (this.tType == 2) {
  17425. this.$message.error("不支持学生使用");
  17426. return;
  17427. }
  17428. this.uploadCid = this.tcid;
  17429. if (!this.uploadCid) {
  17430. this.$message.error(
  17431. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17432. );
  17433. return;
  17434. }
  17435. this.selectPickStudent();
  17436. } else if (t == 26) {
  17437. window.parent.postMessage(
  17438. {
  17439. tools: "26",
  17440. cid: this.id,
  17441. stage: this.courseType,
  17442. task: this.taskCount,
  17443. tool: i,
  17444. },
  17445. "*"
  17446. );
  17447. } else if (t == 40) {
  17448. if (this.evalCount > 0) {
  17449. this.updateCount(this.evalCount, t);
  17450. } else {
  17451. this.evalCount++;
  17452. a = this.evalCount;
  17453. this.toolsCount(a, t);
  17454. }
  17455. this.eScore = { eBzText: "", eStar: [] };
  17456. if (this.worksStudent[i].length) {
  17457. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17458. if (this.userid == this.worksStudent[i][k].userid) {
  17459. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17460. this.rateJson =
  17461. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17462. index
  17463. ].toolChoose[i].rateJson;
  17464. break;
  17465. } else {
  17466. this.rateJson =
  17467. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17468. index
  17469. ].toolChoose[i].rateJson;
  17470. }
  17471. }
  17472. } else {
  17473. this.rateJson =
  17474. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17475. index
  17476. ].toolChoose[i].rateJson;
  17477. }
  17478. this.isStar = false;
  17479. this.studentEvalDialogVisible = true;
  17480. } else if (t == 41) {
  17481. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17482. .taskJson[index].toolChoose[i].selectJson
  17483. ? JSON.parse(
  17484. JSON.stringify(
  17485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17486. index
  17487. ].toolChoose[i].selectJson
  17488. )
  17489. )
  17490. : { url: "", select: [], answer: [] };
  17491. if (this.worksStudent[i].length) {
  17492. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17493. if (this.userid == this.worksStudent[i][k].userid) {
  17494. var a = this.worksStudent[i][k].works.split(",");
  17495. for (var ki = 0; ki < a.length; ki++) {
  17496. a[ki] = parseInt(a[ki]);
  17497. }
  17498. this.selectAnswer = {
  17499. answer: a,
  17500. stu: this.worksStudent[i][k].sName,
  17501. };
  17502. break;
  17503. } else {
  17504. this.selectAnswer = { answer: [], stu: "" };
  17505. }
  17506. }
  17507. } else {
  17508. this.selectAnswer = { answer: [], stu: "" };
  17509. }
  17510. this.isSelect = false;
  17511. this.dialogVisibleSelect = true;
  17512. } else if (t == 44) {
  17513. window.parent.postMessage({ tools: "44" }, "*");
  17514. } else if (t == 47) {
  17515. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17516. .taskJson[index].toolChoose[i].sentenceList
  17517. ? JSON.parse(
  17518. JSON.stringify(
  17519. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17520. index
  17521. ].toolChoose[i].sentenceList
  17522. )
  17523. )
  17524. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17525. for (var q = 0; q < this.sentenceList.length; q++) {
  17526. this.sentenceList[q].chooseSenList = [];
  17527. this.sentenceList[q].addChangeSen = [];
  17528. this.sentenceList[q].addChangeSen = JSON.parse(
  17529. JSON.stringify(this.sentenceList[q].addSentence)
  17530. );
  17531. this.sentenceList[q].chooseSenList.length =
  17532. this.sentenceList[q].rightAnswer.length;
  17533. }
  17534. this.dialogVisibleSentence = true;
  17535. } else if (t == 48) {
  17536. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17537. .taskJson[index].toolChoose[i].tableJson
  17538. ? JSON.parse(
  17539. JSON.stringify(
  17540. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17541. index
  17542. ].toolChoose[i].tableJson
  17543. )
  17544. )
  17545. : { text: "" };
  17546. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17547. if (this.worksStudent[i].length) {
  17548. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17549. if (this.userid == this.worksStudent[i][k].userid) {
  17550. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17551. break;
  17552. }
  17553. }
  17554. }
  17555. this.dialogVisibleTable = true;
  17556. } else if (t == 52) {
  17557. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17558. .taskJson[index].toolChoose[i].wordJson
  17559. ? JSON.parse(
  17560. JSON.stringify(
  17561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17562. index
  17563. ].toolChoose[i].wordJson
  17564. )
  17565. )
  17566. : { text: "" };
  17567. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17568. if (this.worksStudent[i].length) {
  17569. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17570. if (this.userid == this.worksStudent[i][k].userid) {
  17571. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17572. break;
  17573. }
  17574. }
  17575. }
  17576. this.dialogVisibleWord = true;
  17577. } else if (t == 49) {
  17578. this.groupJson =
  17579. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17580. index
  17581. ].toolChoose[i].groupJson;
  17582. this.islock = this.groupJson.islock == 1 ? true : false;
  17583. this.dialogVisibleGroup = true;
  17584. } else if (t == 62) {
  17585. this.videoJson =
  17586. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17587. index
  17588. ].toolChoose[i].videoJson;
  17589. this.dialogVisibleVideo = true;
  17590. }
  17591. },
  17592. teacherWorkSubmit(t, i, index, s) {
  17593. this.sStudent = s;
  17594. this.toolindex = i;
  17595. this.sTool = t;
  17596. if (this.tType !== "1" && this.tType !== "4") {
  17597. return;
  17598. }
  17599. if (t == 16 || t == 32 || t == 50) {
  17600. this.dialogVisibleWorks = true;
  17601. } else if (t == 15) {
  17602. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17603. .taskJson[index].toolChoose[i].answerQ
  17604. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17605. .toolChoose[i].answerQ
  17606. : "";
  17607. this.questionAnswer = "";
  17608. this.answerDialogVisibleTeacher = true; //问答
  17609. } else if (t == 52) {
  17610. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17611. .taskJson[index].toolChoose[i].wordJson
  17612. ? JSON.parse(
  17613. JSON.stringify(
  17614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17615. index
  17616. ].toolChoose[i].wordJson
  17617. )
  17618. )
  17619. : { text: "" };
  17620. if (this.worksStudent[i].length) {
  17621. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17622. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17623. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17624. break;
  17625. }
  17626. }
  17627. }
  17628. this.dialogVisibleWordTeacher = true; //文档
  17629. } else if (t == 4) {
  17630. this.radio = [];
  17631. this.noteName = "";
  17632. this.isAnswer = false;
  17633. if (this.askCount > 0) {
  17634. this.updateCount(this.askCount, t);
  17635. } else {
  17636. this.askCount++;
  17637. a = this.askCount;
  17638. this.toolsCount(a, t);
  17639. }
  17640. if (!this.dialogVisible2) {
  17641. this.askJson.askJson =
  17642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17643. index
  17644. ].toolChoose[i].askJson;
  17645. this.askJson.askTitle =
  17646. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17647. index
  17648. ].toolChoose[i].askTitle;
  17649. this.askJson.askCount =
  17650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17651. index
  17652. ].toolChoose[i].askCount;
  17653. } else {
  17654. this.askJson.askJson = this.chapTools.askJson.askJson;
  17655. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17656. this.askJson.askCount = this.chapTools.askJson.askCount;
  17657. }
  17658. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17659. if (this.askJson.askJson[k].type == "2") {
  17660. this.radio.push([]);
  17661. } else {
  17662. this.radio.push("");
  17663. }
  17664. }
  17665. this.dialogVisible5Teacher = true;
  17666. } else if (t == 45) {
  17667. this.noteName = "";
  17668. this.radio = [];
  17669. this.isAnswer = false;
  17670. if (this.askCount > 0) {
  17671. this.updateCount(this.askCount, t);
  17672. } else {
  17673. this.askCount++;
  17674. a = this.askCount;
  17675. this.toolsCount(a, t);
  17676. }
  17677. this.testJson =
  17678. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17679. index
  17680. ].toolChoose[i].testJson;
  17681. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17682. if (this.testJson.testJson[k].type == "2") {
  17683. this.radio.push([]);
  17684. } else {
  17685. this.radio.push("");
  17686. }
  17687. }
  17688. this.dialogVisibleChoiceTeacher = true;
  17689. } else if (t == 41) {
  17690. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17691. .taskJson[index].toolChoose[i].selectJson
  17692. ? JSON.parse(
  17693. JSON.stringify(
  17694. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17695. index
  17696. ].toolChoose[i].selectJson
  17697. )
  17698. )
  17699. : { url: "", select: [], answer: [] };
  17700. if (this.worksStudent[i].length) {
  17701. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17702. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17703. var a = this.worksStudent[i][k].works.split(",");
  17704. for (var ki = 0; ki < a.length; ki++) {
  17705. a[ki] = parseInt(a[ki]);
  17706. }
  17707. this.selectAnswer = {
  17708. answer: a,
  17709. stu: this.worksStudent[i][k].sName,
  17710. };
  17711. break;
  17712. } else {
  17713. this.selectAnswer = { answer: [], stu: "" };
  17714. }
  17715. }
  17716. } else {
  17717. this.selectAnswer = { answer: [], stu: "" };
  17718. }
  17719. this.isSelect = false;
  17720. this.dialogVisibleSelectTeacher = true;
  17721. } else if (t == 47) {
  17722. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17723. .taskJson[index].toolChoose[i].sentenceList
  17724. ? JSON.parse(
  17725. JSON.stringify(
  17726. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17727. index
  17728. ].toolChoose[i].sentenceList
  17729. )
  17730. )
  17731. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17732. for (var q = 0; q < this.sentenceList.length; q++) {
  17733. this.sentenceList[q].chooseSenList = [];
  17734. this.sentenceList[q].addChangeSen = [];
  17735. this.sentenceList[q].addChangeSen = JSON.parse(
  17736. JSON.stringify(this.sentenceList[q].addSentence)
  17737. );
  17738. this.sentenceList[q].chooseSenList.length =
  17739. this.sentenceList[q].rightAnswer.length;
  17740. }
  17741. this.dialogVisibleSentenceTeacher = true;
  17742. } else if (t == 48) {
  17743. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17744. .taskJson[index].toolChoose[i].tableJson
  17745. ? JSON.parse(
  17746. JSON.stringify(
  17747. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17748. index
  17749. ].toolChoose[i].tableJson
  17750. )
  17751. )
  17752. : { text: "" };
  17753. if (this.worksStudent[i].length) {
  17754. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17755. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17756. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17757. break;
  17758. }
  17759. }
  17760. }
  17761. this.dialogVisibleTableTeacher = true;
  17762. } else if (t == 40) {
  17763. if (this.evalCount > 0) {
  17764. this.updateCount(this.evalCount, t);
  17765. } else {
  17766. this.evalCount++;
  17767. a = this.evalCount;
  17768. this.toolsCount(a, t);
  17769. }
  17770. this.eScore = { eBzText: "", eStar: [] };
  17771. if (this.worksStudent[i].length) {
  17772. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17773. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17774. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17775. this.rateJson =
  17776. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17777. index
  17778. ].toolChoose[i].rateJson;
  17779. break;
  17780. } else {
  17781. this.rateJson =
  17782. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17783. index
  17784. ].toolChoose[i].rateJson;
  17785. }
  17786. }
  17787. } else {
  17788. this.rateJson =
  17789. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17790. index
  17791. ].toolChoose[i].rateJson;
  17792. }
  17793. this.isStar = false;
  17794. this.studentEvalDialogVisibleTeacher = true;
  17795. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17796. window.parent.postMessage(
  17797. {
  17798. tools: t + "teacher",
  17799. cid: this.id,
  17800. stage: this.courseType,
  17801. task: this.taskCount,
  17802. tool: i,
  17803. student: this.sStudent,
  17804. },
  17805. "*"
  17806. );
  17807. }
  17808. },
  17809. openCocoPi(tool, i, uid, uname) {
  17810. let student = {
  17811. userid: uid,
  17812. student: uname,
  17813. };
  17814. if (tool == 57) {
  17815. window.parent.postMessage(
  17816. {
  17817. tools: tool + "teacher",
  17818. cid: this.id,
  17819. stage: this.courseType,
  17820. task: this.taskCount,
  17821. tool: i,
  17822. student: student,
  17823. },
  17824. "*"
  17825. );
  17826. }
  17827. },
  17828. setRightAnswer(s, i, j) {
  17829. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17830. if (
  17831. this.sentenceList[i].chooseSenList[q] == undefined ||
  17832. this.sentenceList[i].chooseSenList[q] == ""
  17833. ) {
  17834. this.sentenceList[i].chooseSenList[q] = s;
  17835. this.sentenceList[i].addChangeSen[j] = "";
  17836. break;
  17837. }
  17838. }
  17839. this.$forceUpdate();
  17840. },
  17841. returnCard(r, i, j) {
  17842. var a = this.sentenceList[i].addSentence.indexOf(r);
  17843. this.sentenceList[i].chooseSenList[j] = "";
  17844. this.sentenceList[i].addChangeSen[a] = r;
  17845. this.$forceUpdate();
  17846. },
  17847. // addSentenceTool() {
  17848. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17849. // this.taskCount
  17850. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17851. // this.sentenceList = [
  17852. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17853. // ];
  17854. // this.dialogVisibleSentence = false;
  17855. // },
  17856. toolsCount(a, t) {
  17857. let params = {
  17858. cid: this.id,
  17859. chid: this.courseType,
  17860. uid: this.userid,
  17861. tid: t,
  17862. count: a,
  17863. };
  17864. this.ajax
  17865. .get(this.$store.state.api + "insertToolsCount", params)
  17866. .then((res) => {
  17867. this.selectCount();
  17868. })
  17869. .catch((err) => {
  17870. console.error(err);
  17871. });
  17872. },
  17873. updateCount(c, t) {
  17874. c++;
  17875. let params = {
  17876. cid: this.id,
  17877. chid: this.courseType,
  17878. uid: this.userid,
  17879. tid: t,
  17880. count: c,
  17881. };
  17882. this.ajax
  17883. .get(this.$store.state.api + "updateToolsCount", params)
  17884. .then((res) => {
  17885. this.selectCount();
  17886. })
  17887. .catch((err) => {
  17888. console.error(err);
  17889. });
  17890. },
  17891. checkEva() {
  17892. if (this.evalua != "") {
  17893. for (var i = 0; i < this.evaJuri.length; i++) {
  17894. if (this.evalua == this.evaJuri[i].id) {
  17895. this.eTitle = this.evaJuri[i].title;
  17896. this.eJson = JSON.parse(this.evaJuri[i].content);
  17897. }
  17898. }
  17899. this.$forceUpdate();
  17900. setTimeout(() => {
  17901. this.setMindData();
  17902. }, 0);
  17903. }
  17904. },
  17905. selectEva() {
  17906. let params = {
  17907. oid: this.oid,
  17908. };
  17909. this.ajax
  17910. .get(this.$store.state.api + "selectAllEvaluation", params)
  17911. .then((res) => {
  17912. this.evaJuri = res.data[0];
  17913. })
  17914. .catch((err) => {
  17915. console.error(err);
  17916. });
  17917. },
  17918. setMindData() {
  17919. this.data.data = [];
  17920. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17921. let _eJson = Object.keys(this.eJson);
  17922. let _e = this.eJson;
  17923. for (let i = 0; i < _eJson.length; i++) {
  17924. let element = _e[_eJson[i]];
  17925. this.data.data.push({
  17926. id: element.id,
  17927. parentid: "root",
  17928. topic: element.name,
  17929. });
  17930. let _eJsonc = Object.keys(element.child);
  17931. let _e2 = element.child;
  17932. for (let j = 0; j < _eJsonc.length; j++) {
  17933. let _ec = _e2[_eJsonc[j]];
  17934. this.data.data.push({
  17935. id: _ec.id,
  17936. parentid: element.id,
  17937. topic: _ec.name,
  17938. });
  17939. let _eJsonz = Object.keys(_ec.child);
  17940. let _e3 = _ec.child;
  17941. for (let z = 0; z < _eJsonz.length; z++) {
  17942. let _ez = _e3[_eJsonz[z]];
  17943. this.data.data.push({
  17944. id: _ez.id,
  17945. parentid: _ec.id,
  17946. topic: _ez.name,
  17947. });
  17948. }
  17949. }
  17950. }
  17951. this.$forceUpdate();
  17952. },
  17953. checkFileFull(type, url) {
  17954. this.fullDialogVisible = true;
  17955. this.fulltype = type;
  17956. this.fullUrl = url;
  17957. },
  17958. checkFileFull1(t, f) {
  17959. this.fullDialogVisible = true;
  17960. if (t == 6) {
  17961. this.fulltype = 1;
  17962. this.fullUrl = JSON.parse(JSON.stringify(f));
  17963. } else if (t == 8) {
  17964. this.fulltype = 2;
  17965. this.fullUrl = f.url;
  17966. } else if (
  17967. t == 3 &&
  17968. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17969. "PDF"
  17970. ) {
  17971. this.fulltype = 3;
  17972. this.fullUrl = f.url;
  17973. } else if (t == 3) {
  17974. this.fulltype = 2;
  17975. this.fullUrl =
  17976. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  17977. }
  17978. },
  17979. openSname(n, id, i, uid) {
  17980. this.snameWid = id;
  17981. this.worksSName = n;
  17982. this.worksSid = uid == n ? "" : uid;
  17983. this.toolindex = i;
  17984. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17985. if (!this.uploadCid) {
  17986. this.$message.error(
  17987. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17988. );
  17989. return;
  17990. }
  17991. this.selectUploadStudent(1);
  17992. },
  17993. updateName() {
  17994. let params = {
  17995. n: this.worksSName,
  17996. cid: this.snameWid,
  17997. };
  17998. this.ajax
  17999. .get(this.$store.state.api + "updateCourseWorksName", params)
  18000. .then((res) => {
  18001. this.$message({
  18002. message: "修改成功",
  18003. type: "success",
  18004. });
  18005. this.dialogVisibleSname = false;
  18006. this.getCourseDetail(2);
  18007. this.snameWid = "";
  18008. this.worksSName = "";
  18009. })
  18010. .catch((err) => {
  18011. console.error(err);
  18012. });
  18013. },
  18014. downloadFile2(f) {
  18015. // const loading = this.$loading.service({
  18016. // background: "rgba(255, 255, 255, 0.7)",
  18017. // target: document.body,
  18018. // text: "文件加载中...",
  18019. // });
  18020. // let url2 = f.url;
  18021. // let _url2 = "";
  18022. // if (
  18023. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18024. // ) {
  18025. // _url2 = url2.split(
  18026. // "https://view.officeapps.live.com/op/view.aspx?src="
  18027. // )[1];
  18028. // } else {
  18029. // _url2 = url2;
  18030. // }
  18031. // let params = {
  18032. // url: _url2,
  18033. // name: f.name,
  18034. // };
  18035. // this.ajax
  18036. // .get(this.$store.state.api + "download", params)
  18037. // .then((res) => {
  18038. // loading.close();
  18039. // let content = res.data.data.data;
  18040. // let ab = new ArrayBuffer(content.length);
  18041. // let view = new Uint8Array(ab);
  18042. // for (var i = 0; i < content.length; ++i) {
  18043. // view[i] = content[i];
  18044. // }
  18045. // let elink = document.createElement("a");
  18046. // elink.download = f.name;
  18047. // elink.style.display = "none";
  18048. // let blob = new Blob([ab], {
  18049. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18050. // });
  18051. // elink.href = URL.createObjectURL(blob);
  18052. // document.body.appendChild(elink);
  18053. // elink.click();
  18054. // document.body.removeChild(elink);
  18055. // })
  18056. // .catch((err) => {
  18057. // loading.close();
  18058. // console.error(err);
  18059. // });
  18060. var credentials = {
  18061. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18062. secretAccessKey: "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",
  18063. }; //秘钥形式的登录上传
  18064. window.AWS.config.update(credentials);
  18065. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18066. let url2 = f.url;
  18067. let _url2 = "";
  18068. if (
  18069. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18070. ) {
  18071. _url2 = url2.split(
  18072. "https://view.officeapps.live.com/op/view.aspx?src="
  18073. )[1];
  18074. } else {
  18075. _url2 = url2;
  18076. }
  18077. let _this = this;
  18078. _this.downLoading = true
  18079. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18080. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18081. var params = {
  18082. Bucket: "ccrb",
  18083. Key: name
  18084. };
  18085. s3.getObject(params, function (err, data) {
  18086. _this.downLoading = false
  18087. if (err) console.log(err, err.stack); // an error occurred
  18088. else {
  18089. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18090. let a = document.createElement("a");
  18091. a.name = f.name;
  18092. a.href = url;
  18093. a.download = f.name;
  18094. a.click();
  18095. console.log(data);
  18096. } // sxuccessful response
  18097. });
  18098. return;
  18099. let url = f.url;
  18100. let _url = "";
  18101. if (
  18102. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18103. ) {
  18104. _url = url.split(
  18105. "https://view.officeapps.live.com/op/view.aspx?src="
  18106. )[1];
  18107. } else {
  18108. _url = url;
  18109. }
  18110. _this.downLoading = true
  18111. // const loading = _this.$loading.service({
  18112. // background: "rgba(255, 255, 255, 0.7)",
  18113. // target: document.body,
  18114. // text: "文件加载中...",
  18115. // });
  18116. let x = new XMLHttpRequest();
  18117. x.open("GET", _url, true);
  18118. x.responseType = "blob";
  18119. x.onload = function () {
  18120. _this.downLoading = false
  18121. // loading.close();
  18122. let url = window.URL.createObjectURL(new Blob([x.response]));
  18123. let a = document.createElement("a");
  18124. a.name = f.name;
  18125. a.href = url;
  18126. a.download = f.name;
  18127. a.click();
  18128. };
  18129. x.send();
  18130. },
  18131. downloadFile(url) {
  18132. var credentials = {
  18133. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18134. secretAccessKey: "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",
  18135. }; //秘钥形式的登录上传
  18136. window.AWS.config.update(credentials);
  18137. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18138. let url2 = url;
  18139. let _url2 = "";
  18140. if (
  18141. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18142. ) {
  18143. _url2 = url2.split(
  18144. "https://view.officeapps.live.com/op/view.aspx?src="
  18145. )[1];
  18146. } else {
  18147. _url2 = url2;
  18148. }
  18149. const loading2 = this.$loading.service({
  18150. background: "rgba(255, 255, 255, 0.7)",
  18151. target: document.body,
  18152. text: "文件加载中...",
  18153. });
  18154. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18155. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18156. var params = {
  18157. Bucket: "ccrb",
  18158. Key: name
  18159. };
  18160. s3.getObject(params, function (err, data) {
  18161. loading2.close();
  18162. if (err) console.log(err, err.stack); // an error occurred
  18163. else {
  18164. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18165. let a = document.createElement("a");
  18166. a.name = name;
  18167. a.href = url;
  18168. a.download = name;
  18169. a.click();
  18170. console.log(data);
  18171. } // sxuccessful response
  18172. });
  18173. return;
  18174. let _this = this;
  18175. let _url = "";
  18176. if (
  18177. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18178. ) {
  18179. _url = url.split(
  18180. "https://view.officeapps.live.com/op/view.aspx?src="
  18181. )[1];
  18182. } else {
  18183. _url = url;
  18184. }
  18185. const x = new XMLHttpRequest();
  18186. x.open("GET", _url, true);
  18187. x.responseType = "blob";
  18188. // this.downLoading = true
  18189. const loading = _this.$loading.service({
  18190. background: "rgba(255, 255, 255, 0.7)",
  18191. target: document.body,
  18192. text: "文件加载中...",
  18193. });
  18194. // _this.$message.success("文件下载中...");
  18195. x.onload = function (e) {
  18196. this.downLoading = false
  18197. loading.close();
  18198. let content = x.response;
  18199. let elink = document.createElement("a");
  18200. elink.download = decodeURI(
  18201. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18202. );
  18203. elink.style.display = "none";
  18204. let blob = new Blob([content]);
  18205. elink.href = URL.createObjectURL(blob);
  18206. document.body.appendChild(elink);
  18207. elink.click();
  18208. document.body.removeChild(elink);
  18209. };
  18210. x.send();
  18211. },
  18212. openLine(url) {
  18213. window.open(url);
  18214. },
  18215. resize() {
  18216. if (document.getElementsByClassName("box_course").length) {
  18217. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18218. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18219. if (this.showType == 2 || this.showType == 3) {
  18220. document.getElementsByClassName("navBox")[0].style.height =
  18221. a - 40 + 46 + "px";
  18222. } else {
  18223. document.getElementsByClassName("navBox")[0].style.height =
  18224. a - 40 + "px";
  18225. }
  18226. }
  18227. this.Stbodywidth =
  18228. document.getElementsByClassName("student_body").length &&
  18229. document.getElementsByClassName("student_body")[0].offsetWidth;
  18230. },
  18231. closeDraw() {
  18232. this.bg = null;
  18233. this.drawShow = false;
  18234. },
  18235. showPicturePaint(url) {
  18236. let params = {
  18237. img: url,
  18238. };
  18239. this.ajax
  18240. .get(this.$store.state.api + "imgToBase64", params)
  18241. .then((res) => {
  18242. this.drawShow = true;
  18243. this.bg = res.data[0].img;
  18244. })
  18245. .catch((err) => {
  18246. console.error(err);
  18247. });
  18248. },
  18249. addImgDraw(base64) {
  18250. let file = { name: "批注图.png" };
  18251. let img = this.dataUrlToFile(base64, file);
  18252. this.beforeUpload1(img, 5);
  18253. },
  18254. addImgDrawImG(url) {
  18255. // console.log(url);
  18256. let params = [
  18257. {
  18258. wid: this.commentDetail.wid,
  18259. img: url,
  18260. },
  18261. ];
  18262. this.ajax
  18263. .post(this.$store.state.api + "updateCourseWorks", params)
  18264. .then((res) => {
  18265. this.$message({
  18266. message: "提交成功",
  18267. type: "success",
  18268. });
  18269. this.drawShow = false;
  18270. this.bg = "";
  18271. this.selectSWorks();
  18272. this.selectStudent();
  18273. })
  18274. .catch((err) => {
  18275. this.$message.error("提交失败");
  18276. console.error(err);
  18277. });
  18278. },
  18279. deletePicturePaint() {
  18280. this.$confirm("确定删除此批注吗?", "提示", {
  18281. confirmButtonText: "确定",
  18282. cancelButtonText: "取消",
  18283. type: "warning",
  18284. })
  18285. .then(() => {
  18286. let params = [
  18287. {
  18288. wid: this.commentDetail.wid,
  18289. img: "",
  18290. },
  18291. ];
  18292. this.ajax
  18293. .post(this.$store.state.api + "updateCourseWorks", params)
  18294. .then((res) => {
  18295. this.$message({
  18296. message: "删除成功",
  18297. type: "success",
  18298. });
  18299. this.selectSWorks();
  18300. this.selectStudent();
  18301. })
  18302. .catch((err) => {
  18303. this.$message.error("删除失败");
  18304. console.error(err);
  18305. });
  18306. })
  18307. .catch(() => {});
  18308. },
  18309. getAudioVideo(constraintsData) {
  18310. if (navigator.mediaDevices === undefined) {
  18311. navigator.mediaDevices = {};
  18312. }
  18313. if (navigator.mediaDevices.getUserMedia === undefined) {
  18314. navigator.mediaDevices.getUserMedia = function (constraints) {
  18315. // 首先,如果有getUserMedia的话,就获得它
  18316. var getUserMedia =
  18317. navigator.getUserMedia ||
  18318. navigator.webkitGetUserMedia ||
  18319. navigator.mozGetUserMedia ||
  18320. navigator.msGetUserMedia;
  18321. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18322. if (!getUserMedia) {
  18323. return Promise.reject({ code: 404 });
  18324. }
  18325. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18326. return new Promise(function (resolve, reject) {
  18327. getUserMedia.call(navigator, constraints, resolve, reject);
  18328. });
  18329. };
  18330. }
  18331. return navigator.mediaDevices.getUserMedia(constraintsData);
  18332. },
  18333. /**
  18334. * 开始录制
  18335. */
  18336. startRecording(callback) {
  18337. let _function = (screenStream) => {
  18338. this.addStreamStopListener(screenStream, () => {
  18339. console.log("流停止监听");
  18340. this.stopRecording();
  18341. this.$emit("streamStop", {});
  18342. // this.stopRecording();
  18343. });
  18344. var options = {
  18345. type: "video",
  18346. mimeType: "video/webm",
  18347. disableLogs: false,
  18348. getNativeBlob: false, // enable it for longer recordings
  18349. ignoreMutedMedia: false,
  18350. };
  18351. // this.video.srcObject = screenStream;
  18352. this.recorder = RecordRTC(screenStream, options);
  18353. this.recorder.startRecording();
  18354. this.recorder.screen = screenStream;
  18355. this.videoStart = true;
  18356. // callback(true);
  18357. };
  18358. this.getAudioVideo({ audio: true })
  18359. .then((res) => {
  18360. this.captureScreen(_function, true);
  18361. console.log("已点击允许,开启成功");
  18362. })
  18363. .catch((err) => {
  18364. // console.log('浏览器不支持,请更换浏览器')
  18365. // } else {
  18366. this.captureScreen(_function, false);
  18367. console.log("请检查是否存在麦克风");
  18368. });
  18369. },
  18370. /**
  18371. * 停止录制
  18372. */
  18373. stopRecording(callback) {
  18374. this.recorder.stopRecording(() => {
  18375. // this.video.src = this.video.srcObject = null;
  18376. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18377. const url = URL.createObjectURL(this.recorder.getBlob());
  18378. const a = document.createElement("a"); //this.fileName+
  18379. let videoFile = new File(
  18380. [this.recorder.getBlob()],
  18381. this.courseDetail.title + "录屏.mp4",
  18382. {
  18383. type: "video/mp4",
  18384. }
  18385. );
  18386. let downloadUrl = URL.createObjectURL(videoFile);
  18387. document.body.appendChild(a);
  18388. a.style.display = "none";
  18389. a.href = url;
  18390. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18391. a.click();
  18392. this.recorder.screen.stop();
  18393. this.recorder.destroy();
  18394. this.recorder = null;
  18395. this.videoStart = false;
  18396. // callback(false);
  18397. });
  18398. },
  18399. //初始化
  18400. captureScreen(callback, type) {
  18401. if (navigator.getDisplayMedia) {
  18402. //录制结束,文件下载
  18403. navigator
  18404. .getDisplayMedia({
  18405. video: true,
  18406. })
  18407. .then((screenStream) => {
  18408. if (type) {
  18409. navigator.mediaDevices
  18410. .getUserMedia({ audio: true })
  18411. .then((mic) => {
  18412. screenStream.addTrack(mic.getTracks()[0]);
  18413. callback(screenStream);
  18414. });
  18415. } else {
  18416. callback(screenStream);
  18417. }
  18418. })
  18419. .catch(function (error) {
  18420. console.log("error", error);
  18421. });
  18422. } else if (navigator.mediaDevices.getDisplayMedia) {
  18423. navigator.mediaDevices
  18424. .getDisplayMedia({
  18425. video: true,
  18426. })
  18427. .then((screenStream) => {
  18428. if (type) {
  18429. navigator.mediaDevices
  18430. .getUserMedia({ audio: true })
  18431. .then((mic) => {
  18432. screenStream.addTrack(mic.getTracks()[0]);
  18433. callback(screenStream);
  18434. });
  18435. } else {
  18436. callback(screenStream);
  18437. }
  18438. })
  18439. .catch(function (error) {
  18440. console.log("error", error);
  18441. });
  18442. } else {
  18443. var error = "getDisplayMedia API are not supported in this browser.";
  18444. console.log("error", error);
  18445. alert(error);
  18446. }
  18447. },
  18448. //流监听
  18449. addStreamStopListener(stream, callback) {
  18450. stream.addEventListener(
  18451. "ended",
  18452. function () {
  18453. callback();
  18454. callback = function () {};
  18455. },
  18456. false
  18457. );
  18458. stream.addEventListener(
  18459. "inactive",
  18460. function () {
  18461. callback();
  18462. callback = function () {};
  18463. },
  18464. false
  18465. );
  18466. stream.getTracks().forEach(function (track) {
  18467. track.addEventListener(
  18468. "ended",
  18469. function () {
  18470. callback();
  18471. callback = function () {};
  18472. },
  18473. false
  18474. );
  18475. track.addEventListener(
  18476. "inactive",
  18477. function () {
  18478. callback();
  18479. callback = function () {};
  18480. },
  18481. false
  18482. );
  18483. });
  18484. },
  18485. updateGroup() {
  18486. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18487. this.dialogVisibleGroup2 = true;
  18488. },
  18489. numberPan() {
  18490. if (
  18491. /[^\d]/.test(this.groupJson.number) ||
  18492. this.groupJson.number < 2 ||
  18493. this.groupJson.number > 10
  18494. ) {
  18495. this.$message.error("请输入2-10的数字");
  18496. this.groupJson.number = "";
  18497. }
  18498. },
  18499. updateGroupJson() {
  18500. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18501. if (
  18502. this.groupStudentUid[this.toolindex][i].length >
  18503. this.groupJson2.number
  18504. ) {
  18505. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18506. return;
  18507. }
  18508. }
  18509. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18510. this.islock = this.groupJson.islock == 1 ? true : false;
  18511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18512. this.taskCount
  18513. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18514. let params = [
  18515. {
  18516. cid: this.id,
  18517. chapters: JSON.stringify(this.chapInfoList),
  18518. uid: this.userid,
  18519. unitIndex: this.courseType,
  18520. },
  18521. ];
  18522. this.ajax
  18523. .post(this.$store.state.api + "updateWorkNew4", params)
  18524. .then((res) => {
  18525. this.$message.success("设置成功");
  18526. this.getCourseDetail(2);
  18527. this.dialogVisibleGroup2 = false;
  18528. this.groupJson2 = {};
  18529. this.$forceUpdate();
  18530. })
  18531. .catch((err) => {
  18532. this.$message.error("网络不佳");
  18533. console.error(err);
  18534. });
  18535. },
  18536. lockChair() {
  18537. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18538. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18539. this.updateGroupJson();
  18540. },
  18541. selectGroup(index) {
  18542. this.getCourseDetail(2, index);
  18543. },
  18544. joinGroup(index) {
  18545. if (this.groupJson.islock == 2) {
  18546. this.$message.error("位置已被锁定,无法加入");
  18547. return;
  18548. }
  18549. if (
  18550. this.groupStudent[this.toolindex][index].length >
  18551. this.groupJson.number ||
  18552. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18553. ) {
  18554. this.$message.error("位置已满,无法加入");
  18555. return;
  18556. }
  18557. let params = [
  18558. {
  18559. cid: this.id,
  18560. stage: this.courseType,
  18561. task: this.taskCount,
  18562. tool: this.toolindex,
  18563. g: index,
  18564. uid: this.userid,
  18565. },
  18566. ];
  18567. this.ajax
  18568. .post(this.$store.state.api + "joinGroup", params)
  18569. .then((res) => {
  18570. this.$message.success("加入成功");
  18571. this.getCourseDetail(2);
  18572. })
  18573. .catch((err) => {
  18574. this.$message.error("网络不佳");
  18575. console.error(err);
  18576. });
  18577. },
  18578. exitGroup(id) {
  18579. if (this.groupJson.islock == 2) {
  18580. this.$message.error("位置已被锁定,无法退出");
  18581. return;
  18582. }
  18583. let params = [
  18584. {
  18585. gid: id,
  18586. },
  18587. ];
  18588. this.ajax
  18589. .post(this.$store.state.api + "exitGroup", params)
  18590. .then((res) => {
  18591. this.$message.success("退出成功");
  18592. this.getCourseDetail(2);
  18593. })
  18594. .catch((err) => {
  18595. this.$message.error("网络不佳");
  18596. console.error(err);
  18597. });
  18598. },
  18599. groupUpload(index, task, gindex) {
  18600. this.taskCount = task;
  18601. this.toolindex = index;
  18602. this.groupIndex = gindex;
  18603. this.dialogVisibleGroupWork = true;
  18604. },
  18605. updateGroupChair(user) {
  18606. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18607. el.label = index;
  18608. return index != user.group;
  18609. });
  18610. this.updateGroupUser = user;
  18611. this.dialogVisibleUpdateGroup = true;
  18612. },
  18613. updateChair() {
  18614. if (
  18615. this.groupStudent[this.toolindex][this.checkChair].length >
  18616. this.groupJson.number ||
  18617. this.groupStudent[this.toolindex][this.checkChair].length ==
  18618. this.groupJson.number
  18619. ) {
  18620. this.$message.error("位置已满,无法加入");
  18621. return;
  18622. }
  18623. let params = [
  18624. {
  18625. cid: this.id,
  18626. stage: this.courseType,
  18627. task: this.taskCount,
  18628. tool: this.toolindex,
  18629. g: this.checkChair,
  18630. uid: this.updateGroupUser.userid,
  18631. },
  18632. ];
  18633. this.ajax
  18634. .post(this.$store.state.api + "joinGroup", params)
  18635. .then((res) => {
  18636. this.$message.success("修改成功");
  18637. this.updateGroupUser = {};
  18638. this.checkChair = "";
  18639. this.updateGroupArray = {};
  18640. this.dialogVisibleUpdateGroup = false;
  18641. this.getCourseDetail(2);
  18642. })
  18643. .catch((err) => {
  18644. this.$message.error("网络不佳");
  18645. console.error(err);
  18646. });
  18647. },
  18648. deleteGroupChair(gindex) {
  18649. this.checkDeleteGroup = [];
  18650. this.deleteGroupUser = JSON.parse(
  18651. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18652. );
  18653. this.deleteGroupArray = this.groupJson.group[gindex];
  18654. this.groupIndex = gindex;
  18655. this.dialogVisibleDeleteGroup = true;
  18656. },
  18657. async deleteChair() {
  18658. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18659. const gid =
  18660. this.groupStudent[this.toolindex][this.groupIndex][
  18661. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18662. this.checkDeleteGroup[i]
  18663. )
  18664. ];
  18665. let params = [
  18666. {
  18667. gid: gid.id,
  18668. },
  18669. ];
  18670. var a = await this.deleteChairA(params);
  18671. if (i == this.checkDeleteGroup.length - 1) {
  18672. this.$message.success("退出成功");
  18673. this.dialogVisibleDeleteGroup = false;
  18674. this.deleteGroupUser = [];
  18675. this.deleteGroupArray = {};
  18676. this.groupIndex = "";
  18677. this.checkDeleteGroup = [];
  18678. this.getCourseDetail(2);
  18679. }
  18680. }
  18681. },
  18682. deleteChairA(params) {
  18683. return new Promise((resolve, reject) => {
  18684. this.ajax
  18685. .post(this.$store.state.api + "exitGroup", params)
  18686. .then((res) => {
  18687. resolve(1);
  18688. })
  18689. .catch((err) => {
  18690. this.$message.error("网络不佳");
  18691. console.error(err);
  18692. });
  18693. });
  18694. },
  18695. contract(i) {
  18696. if (this.isCloseList[i].isClose == 0) {
  18697. this.isCloseList[i].isClose = 1;
  18698. } else {
  18699. this.isCloseList[i].isClose = 0;
  18700. }
  18701. this.$forceUpdate();
  18702. },
  18703. openWordCloud(toolindex) {
  18704. let array = [];
  18705. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18706. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18707. array.push({ name: works });
  18708. }
  18709. if (this.isGroup) {
  18710. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18711. let works = this.courseGroup.group[i].works[toolindex];
  18712. for (var j = 0; j < works.length; j++) {
  18713. let answer = JSON.parse(works[j].works)[0].answer;
  18714. array.push({ name: answer });
  18715. }
  18716. }
  18717. }
  18718. this.wordCloudData = array;
  18719. this.dialogVisibleWordCloud = true;
  18720. },
  18721. uploadWorks(i) {
  18722. this.$confirm("确定导出作业吗?", "提示", {
  18723. confirmButtonText: "确定",
  18724. cancelButtonText: "取消",
  18725. type: "warning",
  18726. })
  18727. .then(() => {
  18728. const loading = this.$loading.service({
  18729. background: "rgba(255, 255, 255, 0.7)",
  18730. target: document.body,
  18731. text: "文件加载中...",
  18732. });
  18733. const _worksStudent = this.worksStudent;
  18734. let url = [];
  18735. var counts = {};
  18736. for (var l = 0; l < _worksStudent[i].length; l++) {
  18737. var item = _worksStudent[i][l];
  18738. var name = item.sName;
  18739. if (!counts.hasOwnProperty(name)) {
  18740. counts[name] = 0;
  18741. } else {
  18742. counts[name]++;
  18743. }
  18744. if (counts[name] > 0) {
  18745. item.sName += " (" + counts[name] + ")";
  18746. }
  18747. }
  18748. for (var l = 0; l < _worksStudent[i].length; l++) {
  18749. var item = _worksStudent[i][l];
  18750. if (
  18751. item.works.indexOf(
  18752. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18753. ) !== -1 &&
  18754. item.works.indexOf("img") === -1
  18755. ) {
  18756. url.push({ name: item.sName, url: item.works });
  18757. }
  18758. }
  18759. // var toolList = [
  18760. // { name: "电子白板", tool: 1 },
  18761. // { name: "思维导图", tool: 3 },
  18762. // { name: "协同文档", tool: 6 },
  18763. // { name: "思维网格", tool: 7 },
  18764. // { name: "素材库", tool: 8 },
  18765. // { name: "学习资料", tool: 17 },
  18766. // { name: "便签", tool: 2 },
  18767. // { name: "问卷调查", tool: 4 },
  18768. // { name: "选择题", tool: 45 },
  18769. // { name: "倒计时", tool: 10 },
  18770. // { name: "问答", tool: 15 },
  18771. // { name: "课程设计", tool: 26 },
  18772. // { name: "训练服务器", tool: 18 },
  18773. // { name: "作业提交", tool: 16 },
  18774. // { name: "批量上传", tool: 50 },
  18775. // { name: "AIoT Blockly", tool: 21 },
  18776. // { name: "AI Python", tool: 23 },
  18777. // { name: "AI Blockly", tool: 24 },
  18778. // { name: "目标管理", tool: 25 },
  18779. // { name: "数学画板", tool: 31 },
  18780. // { name: "翻译", tool: 28 },
  18781. // { name: "魔盒识字", tool: 37 },
  18782. // { name: "数学画板", tool: 31 },
  18783. // { name: "24点", tool: 38 },
  18784. // { name: "GeoGebra", tool: 39 },
  18785. // { name: "源码编辑", tool: 32 },
  18786. // { name: "个人评价", tool: 40 },
  18787. // { name: "选择匹配", tool: 41 },
  18788. // { name: "汉字宫", tool: 44 },
  18789. // { name: "排序", tool: 47 },
  18790. // { name: "表格", tool: 48 },
  18791. // { name: "文档", tool: 52 },
  18792. // { name: "学生分组", tool: 49 },
  18793. // { name: "CocoPi", tool: 57 },
  18794. // { name: "模拟驾驶", tool: 58 },
  18795. // { name: "路径搜索", tool: 59 },
  18796. // { name: "深度学习", tool: 60 },
  18797. // { name: "全历史", tool: 61 },
  18798. // { name: "交互视频", tool: 62 },
  18799. // { name: "海龟编程", tool: 63 },
  18800. // { name: "挑人", tool: 65 },
  18801. // { name: "公式编辑", tool: 66 },
  18802. // { name: "分子结构", tool: 67 },
  18803. // { name: "时间轴", tool: 68 },
  18804. // ];
  18805. // var toolName = "";
  18806. // for(var w = 0;w<toolList.length;w++){
  18807. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18808. // toolName = toolList[w].name;
  18809. // }
  18810. // }
  18811. console.log(url);
  18812. this.downLoadAll(url, loading);
  18813. })
  18814. .catch(() => {});
  18815. },
  18816. downLoadAll(url, loading) {
  18817. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18818. const zip = new JSZip();
  18819. const cache = {};
  18820. const promises = [];
  18821. data.forEach((item) => {
  18822. const promise = getFile(item.url).then((data) => {
  18823. if (data.data != 1) {
  18824. // 下载文件, 并存成ArrayBuffer对象
  18825. const file_name =
  18826. item.name +
  18827. "." +
  18828. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18829. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18830. cache[file_name] = data.data;
  18831. }
  18832. });
  18833. promises.push(promise);
  18834. });
  18835. Promise.all(promises).then(() => {
  18836. zip.generateAsync({ type: "blob" }).then((content) => {
  18837. // 生成二进制流
  18838. FileSaver.saveAs(
  18839. content,
  18840. this.courseDetail.title + "-" + "作业提交工具.zip"
  18841. ); // 利用file-saver保存文件 自定义文件名
  18842. setTimeout(() => {
  18843. loading.close();
  18844. }, 2000);
  18845. });
  18846. });
  18847. },
  18848. pickStudent(stu) {
  18849. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18850. return;
  18851. }
  18852. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18853. confirmButtonText: "确定",
  18854. cancelButtonText: "取消",
  18855. type: "warning",
  18856. })
  18857. .then(() => {
  18858. let params = [
  18859. {
  18860. uid: stu.userid,
  18861. cid: this.id,
  18862. stage: this.courseType,
  18863. task: this.taskCount,
  18864. tool: this.toolindex,
  18865. },
  18866. ];
  18867. this.ajax
  18868. .post(this.$store.state.api + "updateCoursePick", params)
  18869. .then((res) => {
  18870. this.$message.success("操作成功");
  18871. this.getPick();
  18872. })
  18873. .catch((err) => {
  18874. this.$message.error("网络不佳");
  18875. console.error(err);
  18876. });
  18877. })
  18878. .catch(() => {});
  18879. },
  18880. selectUser(){
  18881. let params = {
  18882. userid: this.userid,
  18883. };
  18884. this.ajax
  18885. .get(this.$store.state.api + "selectUser", params)
  18886. .then((res) => {
  18887. this.userMes = res.data[0];
  18888. })
  18889. .catch((err) => {
  18890. console.error(err);
  18891. });
  18892. },
  18893. setEngText(i){
  18894. this.newEngIndex = i;
  18895. this.$forceUpdate();
  18896. },
  18897. addCorrect(){
  18898. this.$confirm("你确定提交批改嘛?", "提示", {
  18899. confirmButtonText: "确定",
  18900. showCancelButton: false,
  18901. closeOnClickModal: false,
  18902. type: "warning",
  18903. })
  18904. .then(() => {
  18905. let params = {
  18906. cid: this.id,
  18907. s: parseInt(this.courseType),
  18908. t: this.taskCount,
  18909. tool: this.toolindex,
  18910. wid: this.engWid,
  18911. c: this.userid,
  18912. w: this.userMes[0].type == 2 ? JSON.parse(this.newEnglishList) : (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : this.newEngIndex == -1 ? JSON.stringify(this.newEnglishList) : (this.newEngIndex > -1 && this.newEnglishList1.length > 0) ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork) : "",
  18913. };
  18914. this.ajax
  18915. .get(this.$store.state.api + "addEngC", params)
  18916. .then((res) => {
  18917. this.$message.success("提交成功");
  18918. this.engUpdateDialogVisible = false;
  18919. })
  18920. .catch((err) => {
  18921. console.error(err);
  18922. });
  18923. })
  18924. .catch(() => {});
  18925. },
  18926. selectEngC(id,z){
  18927. let params = {
  18928. workid: id,
  18929. };
  18930. this.ajax
  18931. .get(this.$store.state.api + "selectEngC", params)
  18932. .then((res) => {
  18933. if(res.data[0].length == 0){
  18934. this.newEnglishList.engTitle = z.engTitle;
  18935. this.newEnglishList.engText = z.engText;
  18936. }else{
  18937. var a = res.data[0];
  18938. if(this.userMes[0].type == 2){
  18939. var snum = 0;
  18940. for(var i = 0;i<a.length;i++){
  18941. if(this.userMes[0].userid == a[i].correct){
  18942. this.newEnglishList = JSON.parse(a[i].cWork);
  18943. snum = 1;
  18944. }
  18945. }
  18946. if(snum == 0){
  18947. this.newEnglishList = { engTitle:"",engText:"" };
  18948. this.newEnglishList.engTitle = z.engTitle;
  18949. this.newEnglishList.engText = z.engText;
  18950. }
  18951. }else if(this.userMes[0].type == 1){
  18952. var num = 0;
  18953. for(var w= 0;w<a.length;w++){
  18954. if(this.userMes[0].userid == a[w].correct){
  18955. num = 1;
  18956. }
  18957. }
  18958. if(num == 0){
  18959. this.isNoUserid = true;
  18960. var c = JSON.parse(JSON.stringify(z));
  18961. this.oldEnglishJson1 = c;
  18962. }else{
  18963. this.isNoUserid = false;
  18964. }
  18965. var b = a.sort((item, index) => {
  18966. if (item.correct === this.userMes[0].userid) {
  18967. return -1; // 将a移到前面
  18968. } else if (index.correct === this.userMes[0].userid) {
  18969. return 1; // 将b移到前面
  18970. } else {
  18971. return 0; // 保持默认顺序
  18972. }
  18973. });
  18974. for(var p = 0;p<b.length;p++){
  18975. b[p].cWork = JSON.parse(b[p].cWork)
  18976. }
  18977. this.newEnglishList1 = b;
  18978. }
  18979. }
  18980. this.greyType = false;
  18981. setTimeout(() => {
  18982. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18983. if(this.newEnglishList1.length > 0){
  18984. if(this.isNoUserid == true){
  18985. this.engListLength = this.newEnglishList1.length + 1;
  18986. this.newEngIndex = -1;
  18987. }else{
  18988. this.engListLength = this.newEnglishList1.length;
  18989. this.newEngIndex = 0;
  18990. }
  18991. }
  18992. if(this.userMes[0].type == 2){
  18993. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.newEnglishList.engText);
  18994. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  18995. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  18996. }else if(this.newEngIndex == -1){
  18997. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.newEnglishList.engText);
  18998. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  18999. this.correctWord = Diff.diffChars(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19000. }
  19001. }, 500);
  19002. this.engUpdateDialogVisible = true;
  19003. this.$forceUpdate();
  19004. })
  19005. .catch((err) => {
  19006. console.error(err);
  19007. });
  19008. },
  19009. getPick() {
  19010. let params = {
  19011. cid: this.id,
  19012. };
  19013. this.ajax
  19014. .get(this.$store.state.api + "getPick", params)
  19015. .then((res) => {
  19016. let array = [];
  19017. for (var i = 0; i < res.data[0].length; i++) {
  19018. array.push(res.data[0][i].userid);
  19019. }
  19020. this.isPickStudent = array;
  19021. if (array.indexOf(this.userid) !== -1) {
  19022. this.$confirm("你被老师选到啦!", "提示", {
  19023. confirmButtonText: "确定",
  19024. showCancelButton: false,
  19025. closeOnClickModal: false,
  19026. type: "warning",
  19027. })
  19028. .then(() => {
  19029. let pa = [
  19030. {
  19031. uid: this.userid,
  19032. cid: this.id,
  19033. },
  19034. ];
  19035. this.ajax
  19036. .post(this.$store.state.api + "deletePick", pa)
  19037. .then((res) => {
  19038. this.getPick();
  19039. })
  19040. .catch((err) => {
  19041. this.$message.error("网络不佳");
  19042. console.error(err);
  19043. });
  19044. })
  19045. .catch(() => {});
  19046. }
  19047. })
  19048. .catch((err) => {
  19049. this.$message.error("网络不佳");
  19050. console.error(err);
  19051. });
  19052. },
  19053. foldEva() {
  19054. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19055. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19056. } else {
  19057. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19058. setTimeout(() => {
  19059. this.checkEva();
  19060. setTimeout(() => {
  19061. this.checkEva();
  19062. }, 500);
  19063. }, 0);
  19064. }
  19065. this.$forceUpdate();
  19066. },
  19067. panToolHeight(tool) {
  19068. var _tool = document.querySelectorAll('#'+tool)[0]
  19069. var _toolA = _tool ? _tool.offsetHeight : 0
  19070. var _toolC = 0
  19071. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19072. let boolean2 = (_toolA > _toolC) ? true : false
  19073. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19074. this.$forceUpdate();
  19075. },
  19076. },
  19077. directives: {
  19078. // 使用局部注册指令的方式
  19079. resize: {
  19080. // 指令的名称
  19081. bind(el, binding) {
  19082. // el为绑定的元素,binding为绑定给指令的对象
  19083. let width = "",
  19084. height = "";
  19085. function isReize() {
  19086. const style = document.defaultView.getComputedStyle(el);
  19087. if (width !== style.width || height !== style.height) {
  19088. binding.value(); // 关键
  19089. }
  19090. width = style.width;
  19091. height = style.height;
  19092. }
  19093. el.__vueSetInterval__ = setInterval(isReize, 300);
  19094. },
  19095. unbind(el) {
  19096. clearInterval(el.__vueSetInterval__);
  19097. },
  19098. },
  19099. autoHeight: {
  19100. update(el, binding) {
  19101. const { value } = binding
  19102. if (value && typeof value === 'number') {
  19103. el.style.height = `${value}px`
  19104. } else {
  19105. el.style.height = 'auto'
  19106. }
  19107. },
  19108. componentUpdated(el) {
  19109. el.style.height = `${el.scrollHeight + 5}px`
  19110. },
  19111. },
  19112. },
  19113. beforeDestroy() {
  19114. window.onresize = null;
  19115. clearInterval(this.timer);
  19116. this.timer = null;
  19117. clearInterval(this.opertimer);
  19118. this.opertimer = null;
  19119. },
  19120. computed: {
  19121. getHeight(){
  19122. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19123. },
  19124. contentConvent() {
  19125. return function (c) {
  19126. return c
  19127. ? c
  19128. .replaceAll(/\r\n/g, "<br/>")
  19129. .replaceAll(/\n/g, "<br/>")
  19130. .replaceAll(/\s/g, " &nbsp")
  19131. : "";
  19132. };
  19133. },
  19134. checkUpload() {
  19135. return function () {
  19136. var studentK = [];
  19137. if (this.plworkFile.length > 0) {
  19138. for (var z = 0; z < this.plworkFile.length; z++) {
  19139. studentK.push(this.plworkFile[z].username);
  19140. }
  19141. studentK = studentK.join(",");
  19142. }
  19143. var a = this.uploadStudentJuri.filter((el) => {
  19144. return studentK.indexOf(el.userid) == -1;
  19145. });
  19146. return a;
  19147. };
  19148. },
  19149. getSName() {
  19150. return function (name) {
  19151. var check = name;
  19152. this.uploadStudentJuri.forEach((el) => {
  19153. if (el.userid == check) {
  19154. check = el.name ? el.name : el.username;
  19155. }
  19156. });
  19157. return check;
  19158. };
  19159. },
  19160. getImgList() {
  19161. return function (val) {
  19162. let srcList = []; // 定义一个数组用来接收后面的img地址
  19163. val.replace(
  19164. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19165. function (match, capture) {
  19166. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19167. srcList.push(capture);
  19168. }
  19169. );
  19170. return srcList;
  19171. };
  19172. },
  19173. retrnToolHeight(){
  19174. return function (tool) {
  19175. var _tool = document.querySelectorAll('#'+tool)[0]
  19176. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19177. };
  19178. },
  19179. Correct() {
  19180. return function (c) {
  19181. let w = "";
  19182. let a = this.correctWord;
  19183. for(var k = 0;k<a.length;k++){
  19184. if(w == ""){
  19185. if(a.length > 1){
  19186. if(a[k].added == true){
  19187. w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19188. }else if(a[k].removed == true){
  19189. w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;">' + a[k].value + '</span>';
  19190. }
  19191. }else{
  19192. w = c
  19193. }
  19194. }else{
  19195. if(k == a.length - 1){
  19196. if(a[k].added == true){
  19197. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19198. }else if(a[k].removed == true){
  19199. w += '<span style="text-decoration: line-through;">' + a[k].value + '</span>';
  19200. }
  19201. }else{
  19202. if(a[k].added == true){
  19203. w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19204. }else if(a[k].removed == true){
  19205. w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;">' + a[k].value + '</span>';
  19206. }
  19207. }
  19208. }
  19209. }
  19210. c = w;
  19211. return c;
  19212. };
  19213. },
  19214. },
  19215. mounted() {
  19216. document.body.addEventListener("click", (e) => {
  19217. if (this.isUpdateToolDetail1) {
  19218. this.updateToolDetail(this.toolDetailIndex);
  19219. }
  19220. });
  19221. if (this.screenType == 2) {
  19222. window.parent.postMessage({ allScreen: 4 }, "*");
  19223. } else if (this.screenType == 3) {
  19224. window.parent.postMessage({ allScreen: 5 }, "*");
  19225. } else if (this.screenType == 1) {
  19226. window.parent.postMessage({ allScreen: 6 }, "*");
  19227. }
  19228. this.setOperationTime();
  19229. this.selectEva();
  19230. this.getCourseDetail();
  19231. this.selectCount();
  19232. this.getHomeWork();
  19233. this.selectUser();
  19234. this.contentDialog = true;
  19235. this.setContent2(true);
  19236. if (this.tType == 4) {
  19237. this.pzDialog = true;
  19238. this.selectPz();
  19239. }
  19240. document.scrollingElement.scrollTop = 0;
  19241. window.addEventListener("resize", () => {
  19242. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19243. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19244. if (this.showType == 2 || this.showType == 3) {
  19245. document.getElementsByClassName("navBox")[0].style.height =
  19246. a - 40 + 46 + "px";
  19247. } else {
  19248. document.getElementsByClassName("navBox")[0].style.height =
  19249. a - 40 + "px";
  19250. }
  19251. });
  19252. let _this = this;
  19253. setTimeout(() => {
  19254. // _this.vedioTime = [];
  19255. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19256. // _this.vedioTime[i] = document.getElementsByClassName(
  19257. // "vjs-duration-display"
  19258. // )[i].textContent;
  19259. // }
  19260. }, 1000);
  19261. },
  19262. };
  19263. </script>
  19264. <style scoped>
  19265. @media screen and (max-width: 1280px) {
  19266. /* .courseIndex > div:first-child(2) {
  19267. width: 15% !important;
  19268. } */
  19269. /* .navText {
  19270. width: 120px !important;
  19271. } */
  19272. .evaCss {
  19273. flex-direction: column !important;
  19274. align-items: center !important;
  19275. }
  19276. .elist_input {
  19277. width: 90% !important;
  19278. }
  19279. .dialog_diy1 >>> .el-dialog {
  19280. width: 100% !important;
  19281. }
  19282. .rightWidthCss {
  19283. width: 100% !important;
  19284. }
  19285. .dialog_diy3 >>> .el-dialog {
  19286. width: 100% !important;
  19287. }
  19288. .addToolCss {
  19289. right: 0 !important;
  19290. width: 100% !important;
  19291. min-width: unset !important;
  19292. }
  19293. }
  19294. .evaCssMax {
  19295. flex-direction: column !important;
  19296. align-items: center !important;
  19297. }
  19298. .dialog_diy >>> .el-dialog {
  19299. margin-top: 10vh !important;
  19300. }
  19301. .body_student {
  19302. width: 77%;
  19303. height: 100%;
  19304. position: absolute;
  19305. left: 22%;
  19306. top: 0;
  19307. }
  19308. .student_head {
  19309. width: 100%;
  19310. margin: 20px auto 0;
  19311. padding-bottom: 20px;
  19312. display: flex;
  19313. flex-direction: column;
  19314. flex-wrap: nowrap;
  19315. align-items: flex-start;
  19316. justify-content: flex-start;
  19317. }
  19318. .pb_left {
  19319. width: 20%;
  19320. margin-right: 10px;
  19321. background: rgb(255, 255, 255);
  19322. position: fixed;
  19323. height: calc(100% - 40px);
  19324. border-radius: 20px;
  19325. padding-bottom: 15px;
  19326. box-sizing: border-box;
  19327. }
  19328. .wheel > img,
  19329. .project > img,
  19330. .star > img,
  19331. .evaluate > img,
  19332. .up_photo > img,
  19333. .chapter_add > img,
  19334. .deleteWord > img,
  19335. .question > img,
  19336. .homework > img {
  19337. width: 100%;
  19338. height: 100%;
  19339. }
  19340. .upCover > img {
  19341. width: 131px;
  19342. height: 69px;
  19343. object-fit: cover;
  19344. }
  19345. .upCover {
  19346. width: calc(100% / 3.5);
  19347. position: relative;
  19348. margin: 0 15px 10px 0;
  19349. display: flex;
  19350. flex-direction: column;
  19351. flex-wrap: nowrap;
  19352. justify-content: center;
  19353. align-content: center;
  19354. align-items: center;
  19355. height: fit-content;
  19356. }
  19357. .upCover2 {
  19358. width: 100%;
  19359. position: relative;
  19360. margin: 0 15px 10px 0;
  19361. display: flex;
  19362. flex-direction: column;
  19363. flex-wrap: nowrap;
  19364. justify-content: center;
  19365. align-content: center;
  19366. align-items: center;
  19367. }
  19368. .upCover2 > img {
  19369. width: 100%;
  19370. height: 90px;
  19371. object-fit: contain;
  19372. }
  19373. .chapter_add {
  19374. width: 120px;
  19375. position: relative;
  19376. text-align: center;
  19377. }
  19378. .isAddThings {
  19379. margin-top: 20px;
  19380. position: relative;
  19381. text-align: center;
  19382. background: #f7f8fa;
  19383. height: 90px;
  19384. width: 90px;
  19385. display: flex;
  19386. flex-direction: column;
  19387. justify-content: center;
  19388. }
  19389. .deleteWord {
  19390. width: 22px;
  19391. height: 22px;
  19392. position: absolute;
  19393. right: -5px;
  19394. top: -5px;
  19395. cursor: pointer;
  19396. }
  19397. .box_course {
  19398. /* width: 60%; */
  19399. width: calc(100% - 300px);
  19400. }
  19401. .wheel {
  19402. width: 100%;
  19403. /* height: 100%; */
  19404. height: 650px;
  19405. }
  19406. .right_box {
  19407. display: flex;
  19408. flex-direction: column;
  19409. margin-left: 30px;
  19410. justify-content: space-around;
  19411. }
  19412. .right_box_title {
  19413. font-size: 23px;
  19414. }
  19415. .people {
  19416. display: flex;
  19417. }
  19418. .student_body {
  19419. width: 100%;
  19420. margin: 0 auto;
  19421. margin-top: 10px;
  19422. padding: 0 0 20px;
  19423. }
  19424. .study_top {
  19425. margin-top: 100px;
  19426. width: 100%;
  19427. height: auto;
  19428. padding-bottom: 20px;
  19429. }
  19430. .study_top .checkbox {
  19431. display: flex;
  19432. align-items: center;
  19433. padding: 15px 0 15px 30px;
  19434. flex: 0 0 auto;
  19435. font-weight: bold;
  19436. border-bottom: 1px solid #eee;
  19437. }
  19438. .study_top .check {
  19439. padding-bottom: 5px;
  19440. text-align: center;
  19441. cursor: pointer;
  19442. height: 30px;
  19443. box-sizing: border-box;
  19444. display: flex;
  19445. }
  19446. .study_top .checked {
  19447. border-bottom: 4px solid #3fc6a0;
  19448. padding-bottom: 5px;
  19449. color: #3fc6a0;
  19450. display: flex;
  19451. height: 35px;
  19452. }
  19453. .study_top .checked > div,
  19454. .study_top .check > div {
  19455. margin-right: 5px;
  19456. }
  19457. .videoTop {
  19458. display: flex;
  19459. flex-direction: row;
  19460. justify-content: space-between;
  19461. background: #fff;
  19462. align-items: center;
  19463. width: 95%;
  19464. padding: 20px;
  19465. }
  19466. .filebox {
  19467. display: flex;
  19468. flex-wrap: wrap;
  19469. flex-direction: column;
  19470. padding: 0 0 5px;
  19471. position: relative;
  19472. }
  19473. .filebox:before {
  19474. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19475. position: absolute;
  19476. top: 20px;
  19477. left: 13px;
  19478. border-left: 2px dotted #cad1dc;
  19479. height: calc(100% - 15px);
  19480. }
  19481. .toolHeng2 > div:last-child::before {
  19482. height: calc(100% - 43px);
  19483. }
  19484. .filebox .tooldetail {
  19485. width: calc(100% - 280px);
  19486. margin: 0px 12px;
  19487. padding: 12px;
  19488. line-height: 30px;
  19489. word-break: break-word;
  19490. background: #ffffff;
  19491. border-radius: 8px 8px 8px 8px;
  19492. opacity: 1;
  19493. border: 1px solid #cad1dc;
  19494. overflow:hidden;
  19495. box-sizing:border-box;
  19496. }
  19497. .file {
  19498. display: flex;
  19499. flex-direction: column;
  19500. align-items: center;
  19501. justify-content: center;
  19502. cursor: pointer;
  19503. width: 200px;
  19504. }
  19505. .file div {
  19506. margin-top: 10px;
  19507. width: 150px;
  19508. text-align: center;
  19509. overflow: hidden;
  19510. white-space: nowrap;
  19511. text-overflow: ellipsis;
  19512. }
  19513. .media {
  19514. display: flex;
  19515. flex-direction: column;
  19516. align-items: center;
  19517. justify-content: center;
  19518. margin: 0 20px 20px 0;
  19519. cursor: pointer;
  19520. margin: 12px 0 5px 15px;
  19521. overflow: hidden;
  19522. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19523. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19524. box-sizing: border-box;
  19525. }
  19526. .media img {
  19527. height: 90px;
  19528. width: 160px;
  19529. object-fit: cover;
  19530. }
  19531. .media .title {
  19532. padding: 5px;
  19533. text-align: left;
  19534. width: 100%;
  19535. box-sizing: border-box;
  19536. }
  19537. .media .btn {
  19538. width: 100%;
  19539. height: 35px;
  19540. line-height: 35px;
  19541. color: #fff;
  19542. background: #606060;
  19543. text-align: center;
  19544. overflow: hidden;
  19545. white-space: nowrap;
  19546. text-overflow: ellipsis;
  19547. }
  19548. .detail_content_top {
  19549. width: 100%;
  19550. padding: 25px 0 25px 0;
  19551. }
  19552. .detail_title {
  19553. text-align: center;
  19554. font-size: 24px;
  19555. }
  19556. .detail_time {
  19557. font-size: 13px;
  19558. padding: 15px 0 0 40px;
  19559. }
  19560. .detail_content {
  19561. line-height: 2pc;
  19562. width: 90%;
  19563. margin: 0 auto;
  19564. padding-top: 30px;
  19565. text-indent: 30px;
  19566. overflow: auto;
  19567. height: 200px;
  19568. }
  19569. .score_box >>> .el-rate {
  19570. margin-left: 10px;
  19571. }
  19572. .dialog_change >>> .el-dialog {
  19573. border-radius: 5px;
  19574. }
  19575. .dialog_change >>> .el-dialog__header {
  19576. background: #f2f2f2;
  19577. text-align: center;
  19578. }
  19579. .dialog_change >>> .el-dialog__title {
  19580. line-height: 5px;
  19581. }
  19582. .dialog_change >>> .el-dialog__body {
  19583. background: #fff;
  19584. padding: 10px 20px;
  19585. }
  19586. .score_box {
  19587. display: flex;
  19588. align-items: center;
  19589. margin-bottom: 18px;
  19590. margin-top: 20px;
  19591. }
  19592. .up_photo {
  19593. width: 120px;
  19594. cursor: pointer;
  19595. margin-top: 10px;
  19596. }
  19597. .up_photo2 {
  19598. width: 180px;
  19599. box-sizing: border-box;
  19600. min-width: 180px;
  19601. height: 180px;
  19602. max-height: 180px;
  19603. min-height: 180px;
  19604. cursor: pointer;
  19605. display: flex;
  19606. flex-direction: column;
  19607. align-items: center;
  19608. justify-content: center;
  19609. background: rgb(242, 246, 255);
  19610. /* padding: 25px; */
  19611. margin-bottom: 10px;
  19612. }
  19613. .up_photo2 img {
  19614. width: 50%;
  19615. height: auto;
  19616. }
  19617. .up_photo2 span {
  19618. color: #898989;
  19619. }
  19620. .plworkBox {
  19621. display: flex;
  19622. align-items: center;
  19623. margin-top: 10px;
  19624. flex-wrap: wrap;
  19625. }
  19626. .upload_send {
  19627. margin: 30px auto 30px;
  19628. width: 60%;
  19629. background: #3681fc;
  19630. text-align: center;
  19631. height: 35px;
  19632. line-height: 35px;
  19633. color: #fff;
  19634. border-radius: 5px;
  19635. cursor: pointer;
  19636. }
  19637. .marginT {
  19638. margin-top: 20px;
  19639. }
  19640. .cd_content_steps {
  19641. display: flex;
  19642. width: 90%;
  19643. justify-content: space-around;
  19644. border-top: 1px solid #eeeeee;
  19645. }
  19646. .cd_steps_box {
  19647. display: flex;
  19648. justify-content: center;
  19649. align-items: center;
  19650. flex-direction: column;
  19651. cursor: pointer;
  19652. }
  19653. .first {
  19654. display: flex;
  19655. align-items: center;
  19656. margin: 15px 0 20px 0;
  19657. font-size: 20px;
  19658. }
  19659. .first > div:nth-child(2) {
  19660. font-size: 16px !important;
  19661. padding-left: 10px;
  19662. line-height: 26px;
  19663. box-sizing: border-box;
  19664. }
  19665. .blue_box_one {
  19666. text-align: center;
  19667. color: #fff;
  19668. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19669. border-radius: 7px;
  19670. margin: 10px;
  19671. cursor: pointer;
  19672. width: 95%;
  19673. height: 45px;
  19674. display: flex;
  19675. flex-direction: row;
  19676. justify-content: flex-start;
  19677. align-items: center;
  19678. }
  19679. .blue_box_one > div:nth-child(1) {
  19680. line-height: 30px;
  19681. margin: 0 5px 0 10px;
  19682. width: 30%;
  19683. min-width: 70px;
  19684. border-radius: 4px;
  19685. }
  19686. .blue_box_one > div:nth-child(2) {
  19687. white-space: nowrap;
  19688. text-overflow: ellipsis;
  19689. overflow: hidden;
  19690. word-break: break-all;
  19691. width: 70%;
  19692. text-align: left;
  19693. margin-right: 10px;
  19694. max-width: calc(100% - 85px);
  19695. }
  19696. .blue_box_one > div:nth-child(2):hover {
  19697. overflow: hidden;
  19698. text-overflow: ellipsis;
  19699. white-space: nowrap;
  19700. cursor: pointer;
  19701. }
  19702. .upFile {
  19703. margin: 0 auto;
  19704. width: 120px;
  19705. background: #3681fc;
  19706. color: #fff;
  19707. height: 30px;
  19708. text-align: center;
  19709. line-height: 30px;
  19710. border-radius: 5px;
  19711. font-size: 14px;
  19712. cursor: pointer;
  19713. }
  19714. .courseTitle {
  19715. width: 85%;
  19716. margin: 10px auto 26px auto;
  19717. display: flex;
  19718. flex-direction: row;
  19719. align-items: center;
  19720. justify-content: space-between;
  19721. text-align: center;
  19722. }
  19723. .courseTitle .ctitle {
  19724. font-size: 20px;
  19725. font-weight: bold;
  19726. color: #0e1e33;
  19727. white-space: nowrap;
  19728. overflow: hidden;
  19729. text-overflow: ellipsis;
  19730. }
  19731. .inviteBox {
  19732. font-size: 14px;
  19733. /* margin-top: 5px; */
  19734. color: #00000099;
  19735. text-align: center;
  19736. }
  19737. .courseTitle >>> .el-tooltip {
  19738. width: 100%;
  19739. white-space: nowrap;
  19740. overflow: hidden;
  19741. text-overflow: ellipsis;
  19742. word-break: break-word;
  19743. }
  19744. .ml {
  19745. margin-left: 20px;
  19746. color: #5b7dba;
  19747. border-left: 3px solid #5b7dba;
  19748. padding-left: 5px;
  19749. font-weight: bold;
  19750. }
  19751. .return {
  19752. width: 2rem;
  19753. height: 2rem;
  19754. cursor: pointer;
  19755. }
  19756. .return > img {
  19757. width: 100%;
  19758. height: 100%;
  19759. }
  19760. .returnBtn {
  19761. width: 86px;
  19762. height: 36px;
  19763. background: #3681fc;
  19764. border-radius: 4px;
  19765. color: #fff;
  19766. text-align: center;
  19767. line-height: 36px;
  19768. margin-right: 20px;
  19769. cursor: pointer;
  19770. font-size: 14px;
  19771. font-weight: 400;
  19772. display: flex;
  19773. flex-direction: row;
  19774. flex-wrap: nowrap;
  19775. align-items: center;
  19776. justify-content: center;
  19777. }
  19778. .reBtnIcon,
  19779. .commentIcon,
  19780. .vedioIcon,
  19781. .vedioIcon1 {
  19782. /* width: 36px; */
  19783. height: 36px;
  19784. border-radius: 4px;
  19785. position: relative;
  19786. /* background: #e0eafb; */
  19787. background: #0061ff;
  19788. cursor: pointer;
  19789. margin-right: 12px;
  19790. display: flex;
  19791. align-items: center;
  19792. padding: 0 10px;
  19793. box-sizing: border-box;
  19794. font-size: 14px;
  19795. color: #fff;
  19796. }
  19797. .reBtnIcon::before,
  19798. .commentIcon::before,
  19799. .vedioIcon::before,
  19800. .vedioIcon1::before {
  19801. content: "";
  19802. display: block;
  19803. background-size: 100% 100%;
  19804. background-repeat: no-repeat;
  19805. width: 20px;
  19806. height: 20px;
  19807. margin-right: 5px;
  19808. /* position: absolute; */
  19809. /* top: 8px;
  19810. left: 8px; */
  19811. }
  19812. .vedioIcon1 {
  19813. background: #f63564;
  19814. }
  19815. .reBtnIcon::before {
  19816. background-image: url("../../assets/icon/newIcons/refresh.png");
  19817. }
  19818. .commentIcon::before {
  19819. background-image: url("../../assets/icon/newIcons/comment.png");
  19820. }
  19821. .vedioIcon::before {
  19822. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19823. }
  19824. .vedioIcon1::before {
  19825. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19826. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19827. }
  19828. .tool {
  19829. display: flex;
  19830. flex-direction: column;
  19831. flex-wrap: nowrap;
  19832. width: 13%;
  19833. margin: 0 30px;
  19834. align-items: center;
  19835. position: relative;
  19836. padding: 10px 25px;
  19837. cursor: pointer;
  19838. }
  19839. .whiteBIcon {
  19840. width: 150px;
  19841. }
  19842. .whiteBIcon > img {
  19843. width: 100%;
  19844. height: 100%;
  19845. }
  19846. .mask {
  19847. background-color: rgba(0, 0, 0, 0);
  19848. position: fixed;
  19849. top: 0;
  19850. left: 0;
  19851. width: 100%;
  19852. height: 100%;
  19853. z-index: 20000;
  19854. display: flex;
  19855. align-items: center;
  19856. justify-content: center;
  19857. }
  19858. .progressBox {
  19859. width: 500px;
  19860. height: 180px;
  19861. background: #fff;
  19862. border-radius: 10px;
  19863. box-shadow: 0 0 6px 1px #bfbfbf;
  19864. display: flex;
  19865. align-items: center;
  19866. justify-content: center;
  19867. flex-direction: column;
  19868. position: relative;
  19869. color: #6c6c6c;
  19870. }
  19871. .progressBox >>> .el-progress-bar__outer {
  19872. background-color: #d1dfff !important;
  19873. }
  19874. .progressBox .lbox {
  19875. height: 50px;
  19876. font-size: 19px;
  19877. display: flex;
  19878. align-items: center;
  19879. color: #747474;
  19880. }
  19881. .progressBox .lbox img {
  19882. width: 40px;
  19883. margin-right: 20px;
  19884. }
  19885. .closeCss {
  19886. position: absolute;
  19887. top: 8px;
  19888. right: 8px;
  19889. cursor: pointer;
  19890. width: 20px;
  19891. height: 20px;
  19892. }
  19893. .closeCss > img {
  19894. width: 100%;
  19895. height: 100%;
  19896. }
  19897. .uploadVedio {
  19898. display: flex;
  19899. flex-direction: column;
  19900. flex-wrap: nowrap;
  19901. justify-content: center;
  19902. align-items: center;
  19903. margin: 0 15px 10px 0;
  19904. }
  19905. .uploadVedio > img {
  19906. width: 30px;
  19907. height: 30px;
  19908. }
  19909. .uploadVedio > span {
  19910. white-space: nowrap;
  19911. overflow: hidden;
  19912. text-overflow: ellipsis;
  19913. width: 75px;
  19914. margin-top: 7px;
  19915. }
  19916. .picName {
  19917. white-space: nowrap;
  19918. overflow: hidden;
  19919. text-overflow: ellipsis;
  19920. width: 75px;
  19921. margin-top: 7px;
  19922. }
  19923. .new_top {
  19924. display: flex;
  19925. background: #fff;
  19926. flex-direction: row;
  19927. justify-content: flex-start;
  19928. align-items: center;
  19929. height: 60px;
  19930. position: fixed;
  19931. top: 20px;
  19932. left: 22%;
  19933. width: 77%;
  19934. z-index: 999;
  19935. border-radius: 12px 12px 0 0;
  19936. border-bottom: 1px solid #cad1dc;
  19937. padding: 10px 0;
  19938. }
  19939. .new_topFixed {
  19940. width: 100%;
  19941. height: 40px;
  19942. position: fixed;
  19943. top: 0px;
  19944. display: block;
  19945. background: #f2f2f2;
  19946. z-index: 998;
  19947. }
  19948. .before {
  19949. position: absolute;
  19950. background: #c3dad4;
  19951. width: 6px;
  19952. height: 100%;
  19953. }
  19954. .courseIndex {
  19955. display: flex;
  19956. flex-direction: row;
  19957. align-items: center;
  19958. width: calc(100% - 745px);
  19959. }
  19960. .courseIndex > div:nth-child(1) {
  19961. margin: 0 0 0 10px;
  19962. font-size: 20px;
  19963. min-width: 100px;
  19964. font-weight: bold;
  19965. border-left: 4px solid #3363b9;
  19966. height: 32px;
  19967. text-align: center;
  19968. line-height: 35px;
  19969. }
  19970. .courseIndex > div:nth-child(2) {
  19971. font-size: 20px;
  19972. /* width: 300px; */
  19973. max-width: calc(100% - 105px);
  19974. white-space: nowrap;
  19975. overflow: hidden;
  19976. text-overflow: ellipsis;
  19977. }
  19978. .courseIndex > div:nth-child(3) {
  19979. border-bottom: 1px solid #d7d7d7;
  19980. padding-bottom: 5px;
  19981. background: #3681fc;
  19982. width: 55px;
  19983. min-width: 55px;
  19984. border-radius: 5px;
  19985. color: #fff;
  19986. text-align: center;
  19987. height: 20px;
  19988. line-height: 26px;
  19989. font-size: 14px;
  19990. margin: 0 0 0 10px;
  19991. }
  19992. .course_text {
  19993. padding: 20px 0 0 15px;
  19994. text-indent: 30px;
  19995. width: 80%;
  19996. min-height: 20px;
  19997. }
  19998. .vedioList {
  19999. background: #f2f2f2;
  20000. border: 1px solid #ececec;
  20001. /* width: 38.8%; */
  20002. /* width: 300px; */
  20003. width: 100%;
  20004. height: 445px;
  20005. border-radius: 10px;
  20006. overflow: hidden;
  20007. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20008. }
  20009. .vedioNav {
  20010. margin: 10px 0 0 15px;
  20011. border-bottom: 1px solid #d7d7d7;
  20012. padding-bottom: 5px;
  20013. background: #3681fc;
  20014. width: 55px;
  20015. min-width: 55px;
  20016. border-radius: 5px;
  20017. color: #fff;
  20018. text-align: center;
  20019. height: 20px;
  20020. line-height: 26px;
  20021. font-size: 14px;
  20022. }
  20023. .queTop {
  20024. display: flex;
  20025. padding: 20px 0 20px 30px;
  20026. width: 100%;
  20027. flex-direction: row;
  20028. justify-content: flex-start;
  20029. align-items: center;
  20030. box-sizing: border-box;
  20031. }
  20032. .queTopTitle {
  20033. display: flex;
  20034. flex-direction: row;
  20035. flex-wrap: nowrap;
  20036. align-items: center;
  20037. font-weight: bold;
  20038. font-size: 20px;
  20039. color: rgb(14, 30, 51);
  20040. }
  20041. .queTopTitle::before {
  20042. content: "";
  20043. width: 2px;
  20044. height: 22px;
  20045. background: #3681fc;
  20046. border-radius: 3px;
  20047. display: block;
  20048. margin: 2px 6px 0 0;
  20049. }
  20050. .queTopRight {
  20051. display: flex;
  20052. flex-direction: row;
  20053. flex-wrap: nowrap;
  20054. align-items: center;
  20055. }
  20056. .queTopClose {
  20057. margin-right: 20px;
  20058. cursor: pointer;
  20059. position: relative;
  20060. display: flex;
  20061. }
  20062. .closeImg,
  20063. .openImg {
  20064. width: 25px;
  20065. height: 25px;
  20066. position: absolute;
  20067. left: -20px;
  20068. top: -1px;
  20069. }
  20070. .closeImg > img,
  20071. .openImg > img {
  20072. width: 100%;
  20073. height: 100%;
  20074. }
  20075. .question {
  20076. width: 40px;
  20077. margin-right: 10px;
  20078. margin-top: 7px;
  20079. }
  20080. .queTitle {
  20081. margin-left: 5px;
  20082. font-size: 25px;
  20083. display: flex;
  20084. align-items: center;
  20085. }
  20086. .addEditor {
  20087. width: 100px;
  20088. height: 30px;
  20089. background: #42cda6;
  20090. color: #fff;
  20091. border-radius: 5px;
  20092. text-align: center;
  20093. line-height: 30px;
  20094. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20095. cursor: pointer;
  20096. }
  20097. /* .vedioName {
  20098. cursor: pointer;
  20099. margin: 0px 0px 10px 5px;
  20100. white-space: nowrap;
  20101. overflow: hidden;
  20102. text-overflow: ellipsis;
  20103. width: 100%;
  20104. } */
  20105. .vedioTime {
  20106. width: 35px;
  20107. position: absolute;
  20108. color: #fff;
  20109. bottom: 0px;
  20110. right: 0px;
  20111. text-align: center;
  20112. background: #46411f;
  20113. height: 20px;
  20114. font-size: 14px;
  20115. line-height: 20px;
  20116. }
  20117. .homework {
  20118. width: 200px;
  20119. display: flex;
  20120. flex-direction: column;
  20121. flex-wrap: nowrap;
  20122. align-items: center;
  20123. cursor: pointer;
  20124. }
  20125. .homebox {
  20126. display: flex;
  20127. flex-wrap: wrap;
  20128. flex-direction: row;
  20129. justify-content: flex-start;
  20130. align-items: center;
  20131. padding: 15px 0;
  20132. }
  20133. .isChooseActive {
  20134. color: #3681fc !important;
  20135. font-weight: bold !important;
  20136. }
  20137. .chooseWho {
  20138. display: flex;
  20139. width: 100%;
  20140. flex-direction: row;
  20141. flex-wrap: nowrap;
  20142. justify-content: flex-start;
  20143. padding-bottom: 10px;
  20144. }
  20145. .chooseWho > div {
  20146. cursor: pointer;
  20147. padding-bottom: 10px;
  20148. margin: 0 30px 0 0;
  20149. font-weight: 400;
  20150. color: #0e1e33;
  20151. }
  20152. .addPoint > div > img {
  20153. cursor: pointer;
  20154. width: 85px;
  20155. border-radius: 15px;
  20156. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20157. }
  20158. .addPoint > div {
  20159. display: flex;
  20160. flex-direction: column;
  20161. flex-wrap: nowrap;
  20162. align-items: center;
  20163. }
  20164. .isBorder > div {
  20165. margin: 0 0 10px 0;
  20166. align-items: flex-start !important;
  20167. }
  20168. .noiframeBox {
  20169. display: flex;
  20170. flex-wrap: wrap;
  20171. }
  20172. .iframeBox iframe {
  20173. width: 100%;
  20174. height: 800px;
  20175. border: none;
  20176. margin-bottom: 20px;
  20177. border: 1px solid #ccc;
  20178. }
  20179. .upload_toolBtn {
  20180. background: #3681fc;
  20181. color: #fff;
  20182. width: 110px;
  20183. text-align: center;
  20184. height: 35px;
  20185. line-height: 35px;
  20186. font-size: 14px;
  20187. border-radius: 5px;
  20188. cursor: pointer;
  20189. position: absolute;
  20190. right: 10px;
  20191. bottom: 0;
  20192. }
  20193. .binfo_input,
  20194. .pj {
  20195. font: inherit;
  20196. color: currentColor;
  20197. width: 100%;
  20198. margin: 0;
  20199. padding: 15px 14px;
  20200. display: block;
  20201. min-width: 0;
  20202. outline: none;
  20203. box-sizing: content-box;
  20204. background: none;
  20205. -webkit-tap-highlight-color: transparent;
  20206. border: 1px solid rgba(0, 0, 0, 0.23);
  20207. border-radius: 4px;
  20208. box-sizing: border-box;
  20209. resize: none;
  20210. }
  20211. .binfo_input:focus-visible {
  20212. border: 1px solid rgba(61, 103, 188);
  20213. }
  20214. .dialog_diy >>> .el-dialog__header,
  20215. .dialog_diy1 >>> .el-dialog__header {
  20216. background: #454545 !important;
  20217. padding: 15px 20px;
  20218. }
  20219. .dialog_diy >>> .el-dialog__title,
  20220. .dialog_diy1 >>> .el-dialog__title {
  20221. color: #fff;
  20222. }
  20223. .dialog_diy >>> .el-dialog__headerbtn,
  20224. .dialog_diy1 >>> .el-dialog__headerbtn {
  20225. top: 19px;
  20226. }
  20227. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20228. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20229. color: #fff;
  20230. }
  20231. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20232. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20233. color: #fff;
  20234. }
  20235. .dialog_diy1 >>> .el-dialog__body {
  20236. padding: 0;
  20237. }
  20238. .dialog_diy >>> .el-dialog__body,
  20239. .dialog_diy >>> .el-dialog__footer,
  20240. .dialog_diy1 >>> .el-dialog__footer {
  20241. background: #fafafa;
  20242. }
  20243. .a_addBox {
  20244. padding: 0 0 0 15px;
  20245. }
  20246. .a_add_box {
  20247. padding: 10px;
  20248. background: #fff;
  20249. margin-bottom: 10px;
  20250. border-radius: 5px;
  20251. box-shadow: 0 0 5px 0 #d5d5d5;
  20252. }
  20253. .a_add_head {
  20254. display: flex;
  20255. align-items: flex-start;
  20256. /* justify-content: space-between; */
  20257. flex-direction: column;
  20258. /* flex-direction: row; */
  20259. margin: 10px 0 20px 0;
  20260. font-size: 18px;
  20261. width: 100%;
  20262. }
  20263. .askIndex {
  20264. background: #3681fc;
  20265. border-radius: 50%;
  20266. color: #fff;
  20267. width: 25px;
  20268. height: 25px;
  20269. min-width: 25px;
  20270. min-height: 25px;
  20271. text-align: center;
  20272. line-height: 25px;
  20273. margin-right: 5px;
  20274. }
  20275. .a_add_head .a_add_head_input {
  20276. width: 300px;
  20277. }
  20278. .a_add_head .a_add_head_div {
  20279. display: flex;
  20280. align-items: center;
  20281. justify-content: space-between;
  20282. }
  20283. .a_add_body {
  20284. display: flex;
  20285. align-items: center;
  20286. }
  20287. .a_add_input {
  20288. display: flex;
  20289. align-items: center;
  20290. flex-wrap: wrap;
  20291. width: 100%;
  20292. }
  20293. .a_add_input >>> .el-radio-group,
  20294. .a_add_input >>> .el-checkbox-group {
  20295. width: 100%;
  20296. }
  20297. .a_add_input >>> .el-radio,
  20298. .a_add_input >>> .el-checkbox {
  20299. display: flex;
  20300. flex-direction: row;
  20301. flex-wrap: nowrap;
  20302. align-items: center;
  20303. padding: 15px 0;
  20304. }
  20305. .a_add_input >>> .el-radio:not(:last-child),
  20306. .a_add_input >>> .el-checkbox:not(:last-child) {
  20307. width: 100%;
  20308. border-bottom: 1px solid #efefef;
  20309. }
  20310. .redioStyle >>> .el-radio__label {
  20311. font-size: 18px;
  20312. }
  20313. .redioStyle >>> .el-radio__label > span,
  20314. .redioStyle >>> .el-checkbox__label > span {
  20315. word-break: break-all;
  20316. white-space: normal;
  20317. }
  20318. .redioStyle >>> .el-checkbox__label {
  20319. font-size: 18px;
  20320. }
  20321. .toolHeng2 {
  20322. width: 100%;
  20323. padding-left: 37px;
  20324. box-sizing: border-box;
  20325. }
  20326. .workNav {
  20327. font-size: 20px;
  20328. font-weight: bold;
  20329. color: #0e1e33;
  20330. display: flex;
  20331. flex-direction: row;
  20332. flex-wrap: nowrap;
  20333. align-items: center;
  20334. padding: 15px 0 15px 0;
  20335. }
  20336. .workNav::before {
  20337. content: "";
  20338. width: 2px;
  20339. height: 22px;
  20340. background: #3681fc;
  20341. border-radius: 3px;
  20342. display: block;
  20343. margin: 2px 6px 0 0;
  20344. }
  20345. .toolHeng {
  20346. display: flex;
  20347. flex-direction: row;
  20348. flex-wrap: wrap;
  20349. justify-content: flex-start;
  20350. align-items: center;
  20351. width: 100%;
  20352. }
  20353. .toolHeng > div {
  20354. padding-left: 20px;
  20355. }
  20356. .isWidth {
  20357. width: 20%;
  20358. }
  20359. .textTitle {
  20360. display: flex;
  20361. flex-direction: row;
  20362. flex-wrap: nowrap;
  20363. align-items: center;
  20364. width: 95%;
  20365. }
  20366. .textTitle >>> .el-form-item__label {
  20367. font-size: 22px;
  20368. color: #918f8f;
  20369. width: 100px;
  20370. }
  20371. .textTitle >>> .el-form-item__content {
  20372. width: calc(100% - 100px);
  20373. }
  20374. .textCss >>> .el-dialog {
  20375. width: 800px !important;
  20376. height: 400px;
  20377. background: #fafafa;
  20378. }
  20379. .textCss >>> .el-dialog__body {
  20380. margin: 55px 8% 0 8%;
  20381. padding: 0 !important;
  20382. }
  20383. .textCss >>> .el-dialog__footer {
  20384. padding-top: 38px;
  20385. }
  20386. .toolsCss >>> .el-dialog__body {
  20387. padding: 20px;
  20388. }
  20389. .lineCss >>> .el-dialog__body {
  20390. display: flex;
  20391. flex-direction: row;
  20392. align-items: center;
  20393. justify-content: center;
  20394. }
  20395. .newNav {
  20396. display: flex;
  20397. flex-direction: row;
  20398. align-items: baseline;
  20399. justify-content: flex-start;
  20400. }
  20401. .navListItem {
  20402. width: calc(100% - 20px);
  20403. height: 50px;
  20404. margin: 0px auto 10px;
  20405. display: flex;
  20406. flex-direction: row;
  20407. flex-wrap: nowrap;
  20408. align-items: center;
  20409. justify-content: space-between;
  20410. background: #f0f4fa;
  20411. border-radius: 6px 6px 6px 6px;
  20412. }
  20413. .navText {
  20414. cursor: pointer;
  20415. white-space: nowrap;
  20416. overflow: hidden;
  20417. text-overflow: ellipsis;
  20418. width: 220px;
  20419. padding: 0 10px;
  20420. font-weight: 400;
  20421. color: #0e1e33;
  20422. }
  20423. .downIcon {
  20424. width: 20px;
  20425. min-width: 20px;
  20426. height: 20px;
  20427. margin-right: 15px;
  20428. cursor: pointer;
  20429. }
  20430. .downIcon > img {
  20431. width: 100%;
  20432. height: 100%;
  20433. }
  20434. .noVedio {
  20435. display: flex;
  20436. flex-direction: row;
  20437. justify-content: center;
  20438. align-content: center;
  20439. }
  20440. .noNavText {
  20441. cursor: pointer;
  20442. margin: 0px 0px 10px 5px;
  20443. width: 112px;
  20444. }
  20445. .listNoVedio {
  20446. margin: 0 0 0 30px;
  20447. width: 97%;
  20448. }
  20449. .video-player >>> .video-js {
  20450. height: 100%;
  20451. }
  20452. .hangVedioList {
  20453. width: 90% !important;
  20454. height: 150px !important;
  20455. margin: 20px 0 0 30px;
  20456. }
  20457. .hangVedio {
  20458. width: 100%;
  20459. height: 170px !important;
  20460. align-items: flex-start !important;
  20461. }
  20462. .hangHand {
  20463. height: 150px !important;
  20464. }
  20465. .twoChild {
  20466. width: 95%;
  20467. margin: 10px;
  20468. border-radius: 5px;
  20469. background: #f2f2f2;
  20470. display: flex;
  20471. flex-direction: column;
  20472. flex-wrap: nowrap;
  20473. justify-content: flex-start;
  20474. align-items: flex-start;
  20475. transition: all 0.5s;
  20476. overflow: hidden;
  20477. height: 0;
  20478. background: #e7f3ff;
  20479. }
  20480. .twoChild > div:nth-child(1) {
  20481. margin-top: 5px;
  20482. }
  20483. .navChild {
  20484. width: 100%;
  20485. cursor: pointer;
  20486. margin-bottom: 10px;
  20487. position: relative;
  20488. }
  20489. .navChild img {
  20490. position: absolute;
  20491. right: 11px;
  20492. width: 15px;
  20493. top: 50%;
  20494. transform: translateY(-50%);
  20495. }
  20496. .navActive,
  20497. .toolActive {
  20498. height: auto !important;
  20499. overflow: auto !important;
  20500. /* padding-bottom: 16px; */
  20501. }
  20502. .toolActive {
  20503. padding: 0;
  20504. }
  20505. .navTask {
  20506. display: flex;
  20507. flex-direction: row;
  20508. flex-wrap: nowrap;
  20509. align-items: center;
  20510. align-content: flex-start;
  20511. height: 40px;
  20512. justify-content: flex-start;
  20513. padding: 0 10px;
  20514. width: 100%;
  20515. box-sizing: border-box;
  20516. }
  20517. .navTaskname {
  20518. white-space: nowrap;
  20519. text-overflow: ellipsis;
  20520. overflow: hidden;
  20521. word-break: break-all;
  20522. padding-left: 5px;
  20523. }
  20524. .openTaskActive {
  20525. /* background-color: #e0eafb !important;
  20526. color: #0061ff; */
  20527. color:#fff;
  20528. background: rgb(55, 129, 252) !important;
  20529. }
  20530. .iframeName {
  20531. margin: 5px 0;
  20532. border-left: 4px solid #41c4a4;
  20533. padding-left: 4px;
  20534. }
  20535. .toolTitle {
  20536. margin: 0px 0px 20px;
  20537. font-size: 20px;
  20538. font-weight: 500;
  20539. border-left: 4px solid #41c4a4;
  20540. padding-left: 4px;
  20541. }
  20542. .cru_selectBox {
  20543. overflow: auto;
  20544. width: 95%;
  20545. margin: 17px auto 0;
  20546. height: calc(100% - 40px - 21px - 20px - 17px);
  20547. background: #fff;
  20548. border-radius: 8px;
  20549. }
  20550. .cru_selectBox::-webkit-scrollbar,
  20551. .study_top::-webkit-scrollbar,
  20552. .textContent::-webkit-scrollbar {
  20553. /*滚动条整体样式*/
  20554. width: 6px;
  20555. /*高宽分别对应横竖滚动条的尺寸*/
  20556. height: 6px;
  20557. }
  20558. /*定义滚动条轨道 内阴影+圆角*/
  20559. .cru_selectBox::-webkit-scrollbar-track,
  20560. .study_top::-webkit-scrollbar-track,
  20561. .textContent::-webkit-scrollbar {
  20562. border-radius: 10px;
  20563. background-color: #b8bdc9;
  20564. }
  20565. /*定义滑块 内阴影+圆角*/
  20566. .cru_selectBox::-webkit-scrollbar-thumb,
  20567. .study_top::-webkit-scrollbar-thumb,
  20568. .textContent::-webkit-scrollbar-thumb {
  20569. border-radius: 10px;
  20570. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20571. background-color: #2c5ab3;
  20572. }
  20573. .vedioBox {
  20574. border-radius: 0 0 20px 20px;
  20575. background: #fff;
  20576. overflow: auto;
  20577. }
  20578. .taskBox {
  20579. width: 98%;
  20580. background: #f0f4fa;
  20581. margin: 10px auto;
  20582. padding: 0 10px;
  20583. border-radius: 4px;
  20584. box-sizing: border-box;
  20585. }
  20586. .vedioTaskBox {
  20587. width: 100%;
  20588. display: flex;
  20589. flex-direction: row;
  20590. flex-wrap: nowrap;
  20591. align-items: flex-start;
  20592. position: relative;
  20593. }
  20594. .toolBox {
  20595. margin: 15px 0 0 25px;
  20596. display: flex;
  20597. position: relative;
  20598. padding: 18px 20px;
  20599. border-top-left-radius: 5px;
  20600. border-top-right-radius: 5px;
  20601. width: 90%;
  20602. }
  20603. .btnAll {
  20604. position: absolute;
  20605. right: 0;
  20606. display: flex;
  20607. flex-direction: row;
  20608. flex-wrap: nowrap;
  20609. align-items: center;
  20610. }
  20611. .btnLeft,
  20612. .btnRight {
  20613. display: flex;
  20614. flex-direction: row;
  20615. flex-wrap: nowrap;
  20616. align-items: center;
  20617. padding: 5px 0;
  20618. }
  20619. .btnLeft {
  20620. border-right: 1px solid #cad1dc;
  20621. }
  20622. .btnLeft > .custom-tooltip {
  20623. background: #3681fc;
  20624. color: #fff;
  20625. }
  20626. .last:hover {
  20627. background: #3383fa !important;
  20628. color: #fff;
  20629. border: 1px solid #3383fa !important;
  20630. }
  20631. .last,
  20632. .returnBtn1 {
  20633. width: 90px;
  20634. height: 36px;
  20635. background: #ffffff;
  20636. border-radius: 4px;
  20637. border: 1px solid #0061ff;
  20638. color: #0061ff;
  20639. cursor: pointer;
  20640. display: flex;
  20641. flex-direction: row;
  20642. flex-wrap: nowrap;
  20643. align-items: center;
  20644. justify-content: center;
  20645. margin-left: 12px;
  20646. }
  20647. .returnBtn1 {
  20648. background: #f0f4fa;
  20649. border-radius: 4px;
  20650. border: 1px solid #cad1dc;
  20651. margin: 0 12px;
  20652. }
  20653. .lastImg {
  20654. min-width: 15px;
  20655. width: 15px;
  20656. height: 15px;
  20657. }
  20658. .lastText {
  20659. padding: 0 5px 2px 5px;
  20660. box-sizing: border-box;
  20661. font-size: 14px;
  20662. }
  20663. .lastImg > img {
  20664. width: 100%;
  20665. height: 100%;
  20666. }
  20667. /* .vedioTimeBox {
  20668. display: flex;
  20669. flex-direction: row;
  20670. align-items: center;
  20671. flex-wrap: nowrap;
  20672. position: relative;
  20673. } */
  20674. .navBox {
  20675. background: #fff;
  20676. height: calc(100% - 40px);
  20677. overflow-y: auto;
  20678. overflow-x: hidden;
  20679. }
  20680. .worksBox {
  20681. margin: 0 0 10px 25px;
  20682. border-bottom: 1px solid #eeeeee;
  20683. padding: 18px 20px;
  20684. border-radius: 4px;
  20685. width: 90%;
  20686. }
  20687. .worksBTitle {
  20688. font-size: 20px;
  20689. padding-bottom: 15px;
  20690. border-bottom: 1px solid #eeeeee;
  20691. display: flex;
  20692. align-items: center;
  20693. }
  20694. .greenBox {
  20695. width: 5px;
  20696. height: 30px;
  20697. background: #63b6fa;
  20698. margin-right: 5px;
  20699. }
  20700. .worksDetailBox {
  20701. display: flex;
  20702. width: 100%;
  20703. flex-direction: row;
  20704. flex-wrap: wrap;
  20705. align-items: flex-end;
  20706. justify-content: flex-start;
  20707. padding: 15px 5px;
  20708. box-sizing: border-box;
  20709. }
  20710. .works {
  20711. display: flex;
  20712. flex-direction: column;
  20713. flex-wrap: nowrap;
  20714. align-items: flex-start;
  20715. justify-content: flex-start;
  20716. align-content: center;
  20717. max-width: 240px;
  20718. width: calc(100% / 3 - 10px);
  20719. height: auto;
  20720. margin-right: 10px;
  20721. margin-bottom: 10px;
  20722. overflow: hidden;
  20723. height: 140px;
  20724. box-shadow: 0 0 6px 1px #dfdada;
  20725. border-radius: 15px;
  20726. }
  20727. .workImg {
  20728. width: 100%;
  20729. /* height: calc(100% - 40px); */
  20730. height: 105px;
  20731. position: relative;
  20732. }
  20733. .workImg > img {
  20734. width: 100%;
  20735. height: 100%;
  20736. object-fit: contain;
  20737. cursor: pointer;
  20738. }
  20739. .worksName {
  20740. height: 40px;
  20741. line-height: 40px;
  20742. display: flex;
  20743. width: 100%;
  20744. flex-direction: row;
  20745. flex-wrap: nowrap;
  20746. justify-content: space-between;
  20747. align-items: center;
  20748. margin: 0 0 0 10px;
  20749. }
  20750. .worksName > div:nth-child(1) {
  20751. width: 110px;
  20752. white-space: nowrap;
  20753. overflow: hidden;
  20754. text-overflow: ellipsis;
  20755. }
  20756. .worksName > div:nth-child(2) {
  20757. color: #b7b4b5;
  20758. }
  20759. .noWorksS {
  20760. padding: 15px 0;
  20761. display: flex;
  20762. flex-direction: row;
  20763. flex-wrap: wrap;
  20764. align-items: center;
  20765. justify-content: flex-start;
  20766. }
  20767. .noWorksName,
  20768. .isWorksName,
  20769. .isWorksName2 {
  20770. background: #ddebf8;
  20771. color: #000;
  20772. width: 90px;
  20773. height: 25px;
  20774. text-align: center;
  20775. line-height: 25px;
  20776. border-radius: 4px;
  20777. margin: 10px 15px 10px 0;
  20778. white-space: nowrap;
  20779. overflow: hidden;
  20780. padding: 5px;
  20781. text-overflow: ellipsis;
  20782. cursor: pointer;
  20783. border: 1px solid #ddebf8;
  20784. }
  20785. .noWorksName {
  20786. background: #fff;
  20787. color: #0061ff;
  20788. border: 1px solid #0061ff;
  20789. }
  20790. .isWorksName2 {
  20791. width: 100px;
  20792. height: 40px;
  20793. line-height: 40px;
  20794. position: relative;
  20795. background: #dae6f9;
  20796. }
  20797. .isWorksName {
  20798. background: #e7ebf1 !important;
  20799. width: 100px;
  20800. height: 40px;
  20801. line-height: 40px;
  20802. position: relative;
  20803. color: #acb4bf;
  20804. border: 1px solid #cad1dc !important;
  20805. }
  20806. .isSelectName,
  20807. .noWorksName:hover {
  20808. background: #3383fa !important;
  20809. color: #fff !important;
  20810. border: 1px solid #3383fa !important;
  20811. }
  20812. .title {
  20813. background: #1e5cc9;
  20814. /* width: 98%; */
  20815. height: 45px;
  20816. color: #fff;
  20817. line-height: 45px;
  20818. padding-left: 20px;
  20819. box-sizing: border-box;
  20820. }
  20821. .textBox {
  20822. font-size: 20px;
  20823. width: 90%;
  20824. display: flex;
  20825. flex-direction: column;
  20826. align-items: center;
  20827. margin: 20px auto 0;
  20828. max-height: calc(100% - 75px);
  20829. overflow: auto;
  20830. }
  20831. .textContent {
  20832. font-size: 18px;
  20833. width: 95%;
  20834. max-width: 95%;
  20835. }
  20836. .answerBg {
  20837. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20838. background-size: 100% 100%;
  20839. width: 100%;
  20840. height: 100%;
  20841. color: #fff;
  20842. text-align: center;
  20843. display: flex;
  20844. flex-direction: column;
  20845. flex-wrap: nowrap;
  20846. align-items: center;
  20847. position: relative;
  20848. justify-content: center;
  20849. }
  20850. .answerBg > div:nth-child(1) {
  20851. /* font-size: 22px;
  20852. padding: 25px 0 10px; */
  20853. }
  20854. .answerContent {
  20855. width: 215px;
  20856. max-height: 60px;
  20857. word-break: break-all;
  20858. text-align: center;
  20859. /* white-space: nowrap; */
  20860. overflow: hidden;
  20861. text-overflow: ellipsis;
  20862. /* padding: 23px 0 0; */
  20863. -webkit-line-clamp: 3;
  20864. -webkit-box-orient: vertical;
  20865. display: -webkit-box;
  20866. font-size: 15px;
  20867. cursor: pointer;
  20868. }
  20869. .elist_input_box {
  20870. display: flex;
  20871. align-items: flex-start;
  20872. flex-wrap: nowrap;
  20873. padding: 10px 0 15px 30px;
  20874. flex-direction: column;
  20875. }
  20876. .elist_input {
  20877. /* width: 40%; */
  20878. width: 45%;
  20879. margin: 20px;
  20880. }
  20881. .elist_input .elist_input_box input {
  20882. font: inherit;
  20883. color: currentColor;
  20884. width: 200px;
  20885. padding: 8px 14px;
  20886. display: block;
  20887. min-width: 0;
  20888. outline: none;
  20889. border: 1px solid rgba(0, 0, 0, 0.23);
  20890. border-radius: 4px;
  20891. box-sizing: border-box;
  20892. background: #fff;
  20893. margin: 0 20px 0 0;
  20894. }
  20895. .elist_input .elist_input_box span {
  20896. height: 36px;
  20897. line-height: 36px;
  20898. color: rgb(82, 82, 82);
  20899. }
  20900. .elist_input .elist_input_box .remove {
  20901. height: 20px;
  20902. width: 20px;
  20903. background-size: 100% 100%;
  20904. background-position: unset;
  20905. margin-left: 5px;
  20906. }
  20907. .elist_input_box >>> .el-rate {
  20908. display: flex;
  20909. height: 36px;
  20910. align-items: center;
  20911. }
  20912. .elist_input_box .elist_inptu_text {
  20913. min-height: 50px;
  20914. /* width: 500px;
  20915. max-height: 150px; */
  20916. width: 100%;
  20917. line-height: 50px;
  20918. color: rgb(82, 82, 82);
  20919. overflow: auto;
  20920. text-indent: 5px;
  20921. background: #f7f6f9;
  20922. border-radius: 10px;
  20923. }
  20924. .elist_input_box .elist_inptu_text input {
  20925. width: 500px;
  20926. }
  20927. .elist_input_box >>> .el-rate__icon {
  20928. font-size: 24px;
  20929. }
  20930. .isClick {
  20931. background: #4d9def;
  20932. }
  20933. .bzBox {
  20934. display: flex;
  20935. flex-direction: row;
  20936. align-items: center;
  20937. }
  20938. .bzBox .yCss {
  20939. width: 7px;
  20940. height: 7px;
  20941. background: #fff;
  20942. margin: 0 16px 0 6px;
  20943. border-radius: 50%;
  20944. border: 5px solid #3681fc;
  20945. z-index: 99;
  20946. }
  20947. .bzBox > div:nth-child(2) {
  20948. font-size: 18px;
  20949. font-weight: bold;
  20950. color: #0e1e33;
  20951. }
  20952. .navTitile {
  20953. padding: 0 0px 0 15px;
  20954. font-size: 16px;
  20955. font-weight: bold;
  20956. color: #0e1e33;
  20957. height: 40px;
  20958. line-height: 40px;
  20959. }
  20960. .isTypeOne {
  20961. width: 240px;
  20962. height: 170px;
  20963. /* border: 1px solid #f8f8f8; */
  20964. border-radius: 10px;
  20965. box-shadow: 0 0 6px 1px #dfdada;
  20966. }
  20967. .e_add_top {
  20968. display: flex;
  20969. justify-content: space-between;
  20970. padding: 10px 20px;
  20971. border-radius: 3px;
  20972. background: #fff;
  20973. }
  20974. .e_add_title2 {
  20975. display: flex;
  20976. align-items: center;
  20977. }
  20978. .e_add_title2 span {
  20979. width: 40px;
  20980. }
  20981. .e_add_title {
  20982. display: flex;
  20983. align-items: center;
  20984. color: #b8b8b8;
  20985. font-size: 18px;
  20986. position: relative;
  20987. height: 40px;
  20988. }
  20989. .e_add_title span {
  20990. margin-right: 10px;
  20991. }
  20992. .e_add_title .el_input {
  20993. width: 300px;
  20994. }
  20995. .e_add_title >>> .el-input__inner {
  20996. width: 400px;
  20997. }
  20998. .e_add_btn {
  20999. }
  21000. .e_add_content {
  21001. display: flex;
  21002. width: 100%;
  21003. max-width: 650px;
  21004. height: 550px;
  21005. }
  21006. .e_add_list {
  21007. background: #fff;
  21008. height: 500px;
  21009. width: 210px;
  21010. position: relative;
  21011. margin: 15px 5px 0 0;
  21012. flex-shrink: 0;
  21013. display: flex;
  21014. flex-direction: column;
  21015. }
  21016. .e_add_list_title {
  21017. font-size: 20px;
  21018. width: 100%;
  21019. box-sizing: border-box;
  21020. padding: 15px 40px;
  21021. text-align: center;
  21022. border-bottom: 1px solid #eaeaea;
  21023. position: relative;
  21024. display: flex;
  21025. align-items: center;
  21026. justify-content: center;
  21027. height: 57px;
  21028. background: #f6f6f6;
  21029. }
  21030. .e_add_list_title span {
  21031. overflow: hidden;
  21032. white-space: nowrap;
  21033. text-overflow: ellipsis;
  21034. }
  21035. .e_add_list_title img {
  21036. position: absolute;
  21037. right: 15px;
  21038. width: 25px;
  21039. cursor: pointer;
  21040. top: 50%;
  21041. transform: translateY(-50%);
  21042. }
  21043. .e_add_list_body {
  21044. height: calc(100% - 187px);
  21045. overflow: auto;
  21046. }
  21047. .e_add_list_child {
  21048. width: 100%;
  21049. display: flex;
  21050. align-items: center;
  21051. justify-content: center;
  21052. position: relative;
  21053. box-sizing: border-box;
  21054. padding: 15px 40px;
  21055. text-align: center;
  21056. }
  21057. .e_add_list_child span {
  21058. overflow: hidden;
  21059. white-space: nowrap;
  21060. text-overflow: ellipsis;
  21061. cursor: pointer;
  21062. }
  21063. .e_add_list_child img {
  21064. position: absolute;
  21065. right: 10px;
  21066. width: 21px;
  21067. cursor: pointer;
  21068. top: 50%;
  21069. transform: translateY(-50%);
  21070. }
  21071. .e_add_list_child + .e_add_list_child {
  21072. border-top: 1px solid #eaeaea;
  21073. }
  21074. .e_add_list_child .active {
  21075. color: #409eff;
  21076. }
  21077. .e_add_list_btn {
  21078. position: absolute;
  21079. bottom: 0;
  21080. height: 50px;
  21081. background: rgb(120, 120, 254);
  21082. width: 100%;
  21083. color: #fff;
  21084. font-size: 16px;
  21085. text-align: center;
  21086. line-height: 50px;
  21087. cursor: pointer;
  21088. }
  21089. .e_add_list_detail {
  21090. position: absolute;
  21091. bottom: 0;
  21092. height: 130px;
  21093. background: rgb(120, 120, 254);
  21094. width: 100%;
  21095. color: #fff;
  21096. font-size: 16px;
  21097. display: flex;
  21098. align-items: center;
  21099. justify-content: center;
  21100. }
  21101. .e_add_list_detail textarea {
  21102. height: 90%;
  21103. width: 95%;
  21104. border: none;
  21105. resize: none;
  21106. outline: none;
  21107. padding: 5px;
  21108. box-sizing: border-box;
  21109. }
  21110. .e_add_list_pbox {
  21111. width: 100%;
  21112. max-width: 650px;
  21113. /* height: 600px; */
  21114. }
  21115. .e_add_list_pbox_title {
  21116. height: 50px;
  21117. background: #fff;
  21118. display: flex;
  21119. align-items: center;
  21120. width: 100%;
  21121. box-sizing: border-box;
  21122. padding: 0 20px;
  21123. }
  21124. .type_title {
  21125. font-size: 18px;
  21126. font-weight: 700;
  21127. }
  21128. .type_content {
  21129. font-size: 16px;
  21130. /* margin-left: 30px; */
  21131. }
  21132. .type_content span + span {
  21133. margin-left: 20px;
  21134. }
  21135. .type_content span {
  21136. cursor: pointer;
  21137. padding-bottom: 5px;
  21138. box-sizing: border-box;
  21139. }
  21140. .type_content .active {
  21141. color: #409eff;
  21142. border-bottom: 2px solid #409eff;
  21143. }
  21144. .e_add_list_pbox_content {
  21145. height: calc(100% - 50px);
  21146. display: flex;
  21147. align-items: center;
  21148. width: 100%;
  21149. background: #fff;
  21150. }
  21151. .evaCss {
  21152. display: flex;
  21153. flex-direction: row;
  21154. flex-wrap: nowrap;
  21155. align-items: flex-start;
  21156. padding: 0 0 20px;
  21157. }
  21158. .cru_line {
  21159. position: absolute;
  21160. bottom: 0px;
  21161. transition: all 0.5s;
  21162. left: 0px;
  21163. width: 125px;
  21164. margin-left: -25px;
  21165. }
  21166. .isNoMessage {
  21167. width: 20%;
  21168. margin: 25% auto 0;
  21169. }
  21170. .isNoMessage > img {
  21171. width: 100%;
  21172. height: 100%;
  21173. }
  21174. .fullStyle >>> .el-dialog__body {
  21175. height: 100% !important;
  21176. }
  21177. .fullStyle >>> .el-dialog,
  21178. .fullStyle {
  21179. width: 100% !important;
  21180. max-width: 100% !important;
  21181. height: 100% !important;
  21182. margin: 0 !important;
  21183. }
  21184. .full_diy >>> .el-dialog {
  21185. margin: 0 !important;
  21186. height: 100%;
  21187. padding: 4px;
  21188. }
  21189. .full_diy >>> .el-dialog__body {
  21190. height: calc(100% - 100px);
  21191. }
  21192. .full_diy2 >>> .el-dialog__body {
  21193. height: calc(100% - 50px);
  21194. padding: 0;
  21195. }
  21196. .switchCss {
  21197. /* width: 100%; */
  21198. display: flex;
  21199. flex-direction: row;
  21200. flex-wrap: nowrap;
  21201. align-items: center;
  21202. /* justify-content: center; */
  21203. }
  21204. .isClickNav {
  21205. /* color: #499eef; */
  21206. color: #000;
  21207. }
  21208. .commentImg {
  21209. width: 25px;
  21210. height: 25px;
  21211. cursor: pointer;
  21212. }
  21213. .commentImg > img {
  21214. width: 100%;
  21215. height: 100%;
  21216. }
  21217. .comment {
  21218. background: #f9f9f9;
  21219. border-radius: 0 0 4px 4px;
  21220. display: flex;
  21221. flex-direction: row;
  21222. flex-wrap: nowrap;
  21223. align-items: center;
  21224. justify-content: flex-end;
  21225. height: 35px;
  21226. }
  21227. .commentList {
  21228. display: flex;
  21229. flex-direction: row;
  21230. flex-wrap: nowrap;
  21231. align-items: center;
  21232. justify-content: center;
  21233. align-content: center;
  21234. /* margin-left: 15px; */
  21235. /* margin-left: 8px; */
  21236. }
  21237. .scoreImg {
  21238. width: 17px;
  21239. height: 17px;
  21240. }
  21241. .studentDetail {
  21242. display: flex;
  21243. flex-direction: row;
  21244. flex-wrap: nowrap;
  21245. /* align-items: center; */
  21246. align-items: flex-start;
  21247. }
  21248. .tx {
  21249. width: 50px;
  21250. }
  21251. .tx > img {
  21252. width: 100%;
  21253. height: 100%;
  21254. }
  21255. .nameAndTime {
  21256. display: flex;
  21257. flex-direction: column;
  21258. flex-wrap: nowrap;
  21259. align-items: flex-start;
  21260. margin-left: 10px;
  21261. }
  21262. .worksAnswer {
  21263. color: #4078dd;
  21264. margin: 10px 0;
  21265. font-size: 16px;
  21266. position: relative;
  21267. }
  21268. .worksAnswer > img {
  21269. width: 500px;
  21270. height: 300px;
  21271. object-fit: contain;
  21272. margin: 0 auto;
  21273. display: block;
  21274. }
  21275. .commentTop {
  21276. border-bottom: 1px solid #eaeaea;
  21277. padding-bottom: 10px;
  21278. }
  21279. .commentBox {
  21280. padding-top: 15px;
  21281. }
  21282. .pl {
  21283. font-size: 18px;
  21284. }
  21285. .plPerson {
  21286. width: 100%;
  21287. }
  21288. .plName {
  21289. display: flex;
  21290. flex-direction: row;
  21291. flex-wrap: nowrap;
  21292. align-items: baseline;
  21293. color: #78787a;
  21294. width: 100%;
  21295. }
  21296. .deleteComment {
  21297. cursor: pointer;
  21298. margin-left: auto;
  21299. color: #237ade;
  21300. }
  21301. .plContent {
  21302. margin-top: 5px;
  21303. }
  21304. .evalCss {
  21305. background: #fff;
  21306. font-size: 18px;
  21307. }
  21308. .nav {
  21309. color: #9d9d9d;
  21310. padding: 5px 0 15px 20px;
  21311. }
  21312. .middleBox {
  21313. padding: 5px 0 15px 20px;
  21314. }
  21315. .pfBox {
  21316. padding-bottom: 30px;
  21317. }
  21318. .nameAndrate {
  21319. display: flex;
  21320. flex-direction: row;
  21321. flex-wrap: nowrap;
  21322. align-items: center;
  21323. padding-bottom: 10px;
  21324. height: 30px;
  21325. line-height: 30px;
  21326. }
  21327. .nameAndrate > div {
  21328. margin-left: 10px;
  21329. color: #000;
  21330. height: 30px;
  21331. }
  21332. .nameAndrate >>> .el-rate__icon {
  21333. font-size: 28px !important;
  21334. }
  21335. .pfBox > div:nth-child(2) {
  21336. background: #f7f6f9;
  21337. width: 400px;
  21338. min-height: 45px;
  21339. border-radius: 10px;
  21340. font-size: 16px;
  21341. display: flex;
  21342. flex-wrap: wrap;
  21343. align-items: center;
  21344. padding: 10px 20px;
  21345. box-sizing: border-box;
  21346. color: #000;
  21347. }
  21348. .bz {
  21349. display: flex;
  21350. flex-direction: row;
  21351. flex-wrap: nowrap;
  21352. align-items: flex-start;
  21353. }
  21354. .bz > div {
  21355. padding: 0 10px;
  21356. }
  21357. .select_box2_title {
  21358. background: #fff;
  21359. border-radius: 5px;
  21360. padding: 15px 10px;
  21361. box-sizing: border-box;
  21362. margin-bottom: 10px;
  21363. display: flex;
  21364. flex-direction: row;
  21365. flex-wrap: nowrap;
  21366. align-items: center;
  21367. }
  21368. .select_box2_title > div:nth-child(2) {
  21369. margin-left: 10px;
  21370. color: #c4c4c4;
  21371. }
  21372. .select_box2_box {
  21373. display: flex;
  21374. height: 500px;
  21375. }
  21376. .select_box2_img {
  21377. width: calc(100% - 310px);
  21378. height: 100%;
  21379. overflow: auto;
  21380. background: #fff;
  21381. border-radius: 5px;
  21382. }
  21383. .select_box2_img img {
  21384. width: 100%;
  21385. }
  21386. .select_box2_answer {
  21387. background: #fff;
  21388. margin-left: 10px;
  21389. border-radius: 5px;
  21390. width: 300px;
  21391. overflow: auto;
  21392. height: 90%;
  21393. display: flex;
  21394. flex-direction: column;
  21395. align-items: flex-start;
  21396. padding-top: 10px;
  21397. box-sizing: border-box;
  21398. position: relative;
  21399. }
  21400. .select_answer_title {
  21401. padding: 0 0 15px 20px;
  21402. color: #c4c4c4;
  21403. }
  21404. .select_box2_answer_box {
  21405. margin: 0 0 10px 20px;
  21406. width: 85%;
  21407. display: flex;
  21408. flex-direction: row;
  21409. flex-wrap: nowrap;
  21410. align-items: center;
  21411. }
  21412. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21413. color: #000;
  21414. }
  21415. .upAnswerCss {
  21416. position: absolute;
  21417. bottom: 15px;
  21418. right: 15px;
  21419. }
  21420. .upAnswerCss >>> .el-button {
  21421. width: 95px;
  21422. height: 35px;
  21423. line-height: 35px;
  21424. padding: 0;
  21425. }
  21426. .rightWidthCss {
  21427. width: 60%;
  21428. display: flex;
  21429. flex-direction: row;
  21430. align-items: flex-start;
  21431. }
  21432. .rightAnswer {
  21433. display: flex;
  21434. flex-direction: row;
  21435. flex-wrap: nowrap;
  21436. align-items: center;
  21437. color: red;
  21438. margin-bottom: 31px;
  21439. }
  21440. .rightAnswerCss {
  21441. display: flex;
  21442. flex-direction: column;
  21443. flex-wrap: nowrap;
  21444. padding-top: 60px;
  21445. }
  21446. .blueCss {
  21447. color: #767de1;
  21448. margin-left: 10px;
  21449. }
  21450. .redCss {
  21451. color: red;
  21452. }
  21453. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21454. color: rgb(0 123 255) !important;
  21455. }
  21456. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21457. color: rgb(0 123 255) !important;
  21458. }
  21459. .zuoyeYulan {
  21460. padding-top: 0;
  21461. font-size: 18px;
  21462. display: flex;
  21463. align-items: flex-end;
  21464. }
  21465. .buttonA {
  21466. margin-left: 10px;
  21467. padding: 0;
  21468. }
  21469. .displayBox {
  21470. margin-bottom: 10px;
  21471. display: block;
  21472. border-bottom: 3px solid #eee;
  21473. display: flex;
  21474. align-items: center;
  21475. }
  21476. .easy_comment {
  21477. width: calc(100% - 90px);
  21478. margin-left: 10px;
  21479. display: flex;
  21480. flex-wrap: wrap;
  21481. }
  21482. .easy_comment > div {
  21483. border: 1px solid #4a4a4a;
  21484. color: #666;
  21485. border-radius: 15px;
  21486. padding: 5px 10px;
  21487. font-size: 16px;
  21488. margin-bottom: 10px;
  21489. margin-right: 5px;
  21490. cursor: pointer;
  21491. }
  21492. .easy_comment div:hover {
  21493. border: 1px solid #f7ba2a;
  21494. color: #c69217;
  21495. }
  21496. .xuan_right_box {
  21497. padding: 10px 0;
  21498. background: #f0f4fa;
  21499. margin: 0 15px 0 25px;
  21500. border-bottom-left-radius: 5px;
  21501. border-bottom-right-radius: 5px;
  21502. width: 91.5%;
  21503. }
  21504. .tool_right_box {
  21505. display: flex;
  21506. align-items: center;
  21507. }
  21508. .tool_right_box + .tool_right_box {
  21509. margin-top: 10px;
  21510. }
  21511. .right_box_xuan {
  21512. border-radius: 5px;
  21513. padding: 5px;
  21514. margin-left: 10px;
  21515. min-width: 85px;
  21516. background: #fff;
  21517. color: #0061ff;
  21518. border: 1px solid #0061ff;
  21519. font-size: 14px;
  21520. }
  21521. .pButton:hover {
  21522. opacity: 1 !important;
  21523. }
  21524. .pButton {
  21525. position: fixed;
  21526. text-align: center;
  21527. cursor: pointer;
  21528. z-index: 999;
  21529. right: 20px;
  21530. top: 110px;
  21531. width: 50px;
  21532. height: 50px;
  21533. display: flex;
  21534. align-items: center;
  21535. justify-content: center;
  21536. border-radius: 5px;
  21537. }
  21538. .pzClass {
  21539. width: calc(100% - 340px);
  21540. }
  21541. .newDialogCss {
  21542. /* position: fixed;
  21543. right: 5%;
  21544. top: 50%;
  21545. width: 340px;
  21546. transform: translateY(-50%);
  21547. height: 60%;
  21548. box-shadow: 0px 0 8px 0px #555555;
  21549. border-radius: 15px;
  21550. z-index: 999; */
  21551. position: fixed;
  21552. right: 20px;
  21553. top: 101px;
  21554. width: 330px;
  21555. height: calc(100% - 80px);
  21556. z-index: 999;
  21557. background: #fff;
  21558. border-top-right-radius: 0px;
  21559. border-bottom-right-radius: 0px;
  21560. overflow: hidden;
  21561. }
  21562. .pzTop {
  21563. color: #fff;
  21564. background: #000;
  21565. display: flex;
  21566. flex-direction: row;
  21567. flex-wrap: nowrap;
  21568. align-items: center;
  21569. justify-content: space-between;
  21570. height: 40px;
  21571. border-radius: 15px 15px 0 0;
  21572. user-select: none;
  21573. }
  21574. .pzTop2 .checkbox {
  21575. display: flex;
  21576. align-items: center;
  21577. padding: 5px 30px;
  21578. flex: 0 0 auto;
  21579. font-weight: bold;
  21580. border-bottom: 1px solid #eee;
  21581. justify-content: space-between;
  21582. }
  21583. .pzTop2 .check {
  21584. text-align: center;
  21585. cursor: pointer;
  21586. box-sizing: border-box;
  21587. display: flex;
  21588. }
  21589. .pzTop2 img {
  21590. width: 25px;
  21591. cursor: pointer;
  21592. }
  21593. .pzTop > div:nth-child(1) {
  21594. padding-left: 10px;
  21595. }
  21596. .pzTop > div:nth-child(2) {
  21597. width: 15px;
  21598. height: 15px;
  21599. padding-right: 10px;
  21600. cursor: pointer;
  21601. }
  21602. .pzTop > div:nth-child(2) > img {
  21603. width: 100%;
  21604. height: 100%;
  21605. }
  21606. .pzBox,
  21607. .noPzBox {
  21608. height: calc(100% - 60px);
  21609. /* background: #ededed; */
  21610. background: #fff;
  21611. /* border-radius: 0 0 15px 15px; */
  21612. }
  21613. .noPzBox {
  21614. display: flex;
  21615. flex-direction: column;
  21616. flex-wrap: nowrap;
  21617. justify-content: center;
  21618. align-items: center;
  21619. }
  21620. .pzList {
  21621. background: #f7f7f7;
  21622. width: 90%;
  21623. margin: 0 auto 15px;
  21624. border-radius: 5px;
  21625. }
  21626. .pzNavTop {
  21627. display: flex;
  21628. flex-direction: row;
  21629. flex-wrap: nowrap;
  21630. padding: 10px 10px 0 10px;
  21631. align-items: center;
  21632. }
  21633. .pzDelete {
  21634. cursor: pointer;
  21635. margin-left: auto;
  21636. font-size: 14px;
  21637. color: #afafaf;
  21638. }
  21639. .pzNavTop > div:nth-child(1) {
  21640. background: #3760af;
  21641. width: 35px;
  21642. height: 35px;
  21643. color: #fff;
  21644. text-align: center;
  21645. line-height: 35px;
  21646. border-radius: 50%;
  21647. font-size: 14px;
  21648. }
  21649. .pzNavTop > div:nth-child(2) {
  21650. font-size: 18px;
  21651. color: #959595;
  21652. margin-left: 5px;
  21653. }
  21654. .pzContent {
  21655. padding: 10px;
  21656. word-break: break-word;
  21657. }
  21658. .pzContent audio {
  21659. width: 100%;
  21660. }
  21661. .pzContent audio::-webkit-media-controls-panel {
  21662. background: #fff;
  21663. }
  21664. .pzContent >>> img {
  21665. max-width: 100%;
  21666. }
  21667. .pzListBox {
  21668. padding-top: 15px;
  21669. height: calc(100% - 110px);
  21670. overflow: auto;
  21671. }
  21672. .addPzButton {
  21673. position: relative;
  21674. margin-top: 3px;
  21675. width: 100%;
  21676. }
  21677. .addPzButton .img1 {
  21678. position: absolute;
  21679. top: 50%;
  21680. right: 25px;
  21681. transform: translateY(-50%);
  21682. height: 100%;
  21683. display: flex;
  21684. align-items: center;
  21685. }
  21686. .addPzButton .img1 div {
  21687. display: flex;
  21688. }
  21689. .addPzButton .img1 div img {
  21690. width: 28px;
  21691. margin-left: 10px;
  21692. cursor: pointer;
  21693. }
  21694. .addPzButton .img1 div span {
  21695. font-size: 14px;
  21696. margin: 4px 0 0 3px;
  21697. color: #afafaf;
  21698. }
  21699. .addPz {
  21700. background: #4b79ce;
  21701. width: 100px;
  21702. color: #fff;
  21703. font-size: 12px;
  21704. height: 30px;
  21705. margin: 0 auto;
  21706. text-align: center;
  21707. line-height: 30px;
  21708. border-radius: 10px;
  21709. cursor: pointer;
  21710. }
  21711. .addDialogCss {
  21712. position: fixed;
  21713. width: 600px;
  21714. height: 70%;
  21715. min-height: 450px;
  21716. box-shadow: 0px 0 8px 0px #555555;
  21717. border-radius: 15px;
  21718. z-index: 999;
  21719. left: 50%;
  21720. top: 50%;
  21721. margin: -18% 0 0 -300px;
  21722. }
  21723. .teacherPz {
  21724. display: flex;
  21725. flex-direction: row;
  21726. align-items: center;
  21727. flex-wrap: nowrap;
  21728. }
  21729. .teacherPzImg {
  21730. width: 30px;
  21731. height: 30px;
  21732. }
  21733. .teacherPzImg > img {
  21734. width: 100%;
  21735. height: 100%;
  21736. }
  21737. .addPzBox {
  21738. height: calc(100% - 40px);
  21739. background: #ededed;
  21740. border-bottom-left-radius: 15px;
  21741. border-bottom-right-radius: 15px;
  21742. }
  21743. .pzAudioClass {
  21744. margin: 15px 14px;
  21745. background: #fff;
  21746. height: 100%;
  21747. display: flex;
  21748. justify-content: center;
  21749. align-items: center;
  21750. }
  21751. .pzConText {
  21752. width: 95%;
  21753. height: 100%;
  21754. margin: 10px auto 0;
  21755. border: none;
  21756. background: #fff;
  21757. border-radius: 0px;
  21758. }
  21759. .pzConText >>> .text {
  21760. height: calc(100% - 82px);
  21761. }
  21762. .addTextCss {
  21763. background: #4b79ce;
  21764. width: 80px;
  21765. height: 30px;
  21766. text-align: center;
  21767. color: #fff;
  21768. line-height: 30px;
  21769. border-radius: 10px;
  21770. margin: 10px auto 0;
  21771. cursor: pointer;
  21772. }
  21773. .pzConText:focus-visible {
  21774. border: none !important;
  21775. }
  21776. .maxWidth {
  21777. width: 1000px;
  21778. }
  21779. .noPz {
  21780. width: 150px;
  21781. margin: 0 auto 20%;
  21782. }
  21783. .noPz > img {
  21784. width: 100%;
  21785. height: 100%;
  21786. }
  21787. .timeAndReply {
  21788. display: flex;
  21789. flex-direction: row;
  21790. flex-wrap: nowrap;
  21791. justify-content: space-between;
  21792. align-items: center;
  21793. font-size: 14px;
  21794. box-sizing: border-box;
  21795. padding: 0 10px 10px 0px;
  21796. }
  21797. .timeAndReply .time {
  21798. color: #bfbfbf;
  21799. padding: 0 0 0 10px;
  21800. box-sizing: border-box;
  21801. }
  21802. .timeAndReply > div:last-child {
  21803. cursor: pointer;
  21804. color: #777;
  21805. }
  21806. /* table 样式 */
  21807. .cont >>> table {
  21808. border-top: 1px solid #ccc;
  21809. border-left: 1px solid #ccc;
  21810. }
  21811. .cont >>> table td,
  21812. .cont >>> table th {
  21813. border-bottom: 1px solid #ccc;
  21814. border-right: 1px solid #ccc;
  21815. /* padding: 20px 5px; */
  21816. padding: 5px 10px;
  21817. max-width: 0px;
  21818. height: 30px;
  21819. vertical-align: baseline;
  21820. box-sizing: border-box;
  21821. }
  21822. .cont >>> table th {
  21823. border-bottom: 2px solid #ccc;
  21824. text-align: center;
  21825. }
  21826. /* blockquote 样式 */
  21827. .cont >>> blockquote {
  21828. display: block;
  21829. border-left: 8px solid #d0e5f2;
  21830. padding: 5px 10px;
  21831. margin: 10px 0;
  21832. line-height: 1.4;
  21833. font-size: 100%;
  21834. background-color: #f1f1f1;
  21835. }
  21836. /* code 样式 */
  21837. .cont >>> code {
  21838. display: inline-block;
  21839. /* *display: inline; */
  21840. zoom: 1;
  21841. background-color: #f1f1f1;
  21842. border-radius: 3px;
  21843. padding: 3px 5px;
  21844. margin: 0 3px;
  21845. }
  21846. .cont >>> pre code {
  21847. display: block;
  21848. }
  21849. /* ul ol 样式 */
  21850. .cont >>> ul,
  21851. ol {
  21852. margin: 10px 0 10px 20px;
  21853. }
  21854. .addPzCheck {
  21855. display: flex;
  21856. flex-direction: row;
  21857. flex-wrap: nowrap;
  21858. padding: 10px 15px 0;
  21859. }
  21860. .addPzCheck span {
  21861. cursor: pointer;
  21862. padding-bottom: 5px;
  21863. font-weight: bold;
  21864. }
  21865. .addPzCheck span + span {
  21866. margin-left: 10px;
  21867. }
  21868. .addPzCheck .isChooseActive {
  21869. color: #3e88f4;
  21870. border-bottom: 2px solid #2f80f3;
  21871. }
  21872. /* code 样式 */
  21873. .cont {
  21874. /* -webkit-user-modify: read-write; */
  21875. overflow-wrap: break-word;
  21876. -webkit-line-break: after-white-space;
  21877. }
  21878. .scoreBox,
  21879. .scoreDetailBox {
  21880. display: flex;
  21881. align-items: center;
  21882. justify-content: flex-start;
  21883. margin-top: 20px;
  21884. font-size: 18px;
  21885. width: 100%;
  21886. }
  21887. .scoreBox .t,
  21888. .scoreDetailBox .t {
  21889. margin-right: 10px;
  21890. width: 100px;
  21891. text-align: right;
  21892. }
  21893. .scoreDetailBox {
  21894. align-items: flex-start;
  21895. }
  21896. .scoreDetailBox >>> .el-textarea {
  21897. width: calc(100% - 200px);
  21898. }
  21899. .scoreBox >>> .el-input {
  21900. width: 130px;
  21901. font-size: 38px;
  21902. }
  21903. .scoreBox >>> .el-input__inner {
  21904. height: 60px;
  21905. }
  21906. .answerScore {
  21907. position: absolute;
  21908. top: 10px;
  21909. right: 10px;
  21910. background: #0000008f;
  21911. border-radius: 5px;
  21912. padding: 3px 5px;
  21913. font-size: 14px;
  21914. color: #fff;
  21915. cursor: pointer;
  21916. }
  21917. .open_box .switch_box {
  21918. width: 100%;
  21919. margin: 0 auto;
  21920. display: flex;
  21921. justify-content: space-between;
  21922. }
  21923. .open_box .switch_box + .switch_box {
  21924. margin-top: 10px;
  21925. }
  21926. .deleteImg,.deleteImg1 {
  21927. width: 25px !important;
  21928. height: 25px !important;
  21929. cursor: pointer;
  21930. position: absolute;
  21931. top: 10px;
  21932. right: 10px;
  21933. }
  21934. .deleteImg2 {
  21935. width: 23px !important;
  21936. height: 23px !important;
  21937. top: 5px;
  21938. right: 5px;
  21939. }
  21940. .deleteImg1{
  21941. width: 23px !important;
  21942. height: 23px !important;
  21943. top: 5px !important;
  21944. right: 30px !important;
  21945. }
  21946. .rightW {
  21947. right: 40px;
  21948. }
  21949. .drawPBox {
  21950. display: flex;
  21951. flex-direction: column;
  21952. position: relative;
  21953. }
  21954. .drawPBox span {
  21955. font-size: 18px;
  21956. color: #606266;
  21957. padding-bottom: 10px;
  21958. margin: 10px 0;
  21959. border-bottom: 1px solid #eaeaea;
  21960. }
  21961. .drawPBox img {
  21962. width: 500px;
  21963. height: 300px;
  21964. object-fit: contain;
  21965. cursor: pointer;
  21966. margin: 0 auto;
  21967. }
  21968. .sentenBox {
  21969. background: #fff;
  21970. height: 450px;
  21971. overflow: auto;
  21972. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21973. background-position: 102%;
  21974. background-repeat: no-repeat;
  21975. background-size: 60%;
  21976. }
  21977. .addSen {
  21978. background: #409efe;
  21979. width: 90px;
  21980. color: #fff;
  21981. height: 35px;
  21982. text-align: center;
  21983. line-height: 35px;
  21984. border-radius: 5px;
  21985. float: right;
  21986. margin: 10px 20px 0 0;
  21987. cursor: pointer;
  21988. }
  21989. .sentenTop {
  21990. display: flex;
  21991. flex-direction: row;
  21992. flex-wrap: nowrap;
  21993. align-items: center;
  21994. padding: 55px 0 0 20px;
  21995. box-sizing: border-box;
  21996. }
  21997. .sentenTop > div:nth-child(2) {
  21998. width: 300px;
  21999. margin: 0 15px;
  22000. }
  22001. .sentenTop > div:nth-child(3) {
  22002. background: #409efe;
  22003. color: #fff;
  22004. width: 65px;
  22005. height: 35px;
  22006. text-align: center;
  22007. line-height: 35px;
  22008. border-radius: 5px;
  22009. cursor: pointer;
  22010. }
  22011. .cardList,
  22012. .cardList1 {
  22013. padding: 10px 0 10px 0;
  22014. display: flex;
  22015. flex-direction: row;
  22016. flex-wrap: wrap;
  22017. align-items: center;
  22018. box-sizing: border-box;
  22019. border-bottom: 1px solid #f4f4f4;
  22020. width: 98%;
  22021. margin: 0 auto;
  22022. min-width: 60%;
  22023. max-width: 85%;
  22024. }
  22025. .cardList1 {
  22026. padding: 10px 0 10px 10px !important;
  22027. margin: 0 !important;
  22028. }
  22029. .cardBox {
  22030. display: flex;
  22031. flex-direction: row;
  22032. flex-wrap: wrap;
  22033. align-items: center;
  22034. align-content: center;
  22035. }
  22036. .cardBox > div {
  22037. margin-bottom: 10px;
  22038. }
  22039. .isCard,
  22040. .isChooseCard,
  22041. .noCard,
  22042. .isCard1 {
  22043. width: 130px;
  22044. height: 60px;
  22045. text-align: center;
  22046. line-height: 60px;
  22047. font-size: 20px;
  22048. cursor: pointer;
  22049. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  22050. background-size: cover;
  22051. transition: all 2s;
  22052. margin-right: 20px;
  22053. }
  22054. .isCard > div,
  22055. .noCard > div,
  22056. .isCard1 > div {
  22057. white-space: nowrap;
  22058. overflow: hidden;
  22059. text-overflow: ellipsis;
  22060. width: 75%;
  22061. margin: 0 auto;
  22062. }
  22063. .noCard {
  22064. background-image: none;
  22065. }
  22066. .isCard1 {
  22067. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22068. }
  22069. .isChooseCard {
  22070. background-image: none;
  22071. border: 1px dashed #b9b9b9;
  22072. border-radius: 10px;
  22073. }
  22074. .card {
  22075. width: 130px;
  22076. height: 60px;
  22077. }
  22078. .card > img {
  22079. width: 100%;
  22080. height: 100%;
  22081. }
  22082. .rightCardBox {
  22083. margin: 10px 0 0 10px;
  22084. }
  22085. .rightCardBox > div:nth-child(1) {
  22086. margin-bottom: 10px;
  22087. }
  22088. .cardCss {
  22089. display: flex;
  22090. flex-direction: column;
  22091. flex-wrap: nowrap;
  22092. align-items: center;
  22093. border-bottom: 3px solid #b4c3d3;
  22094. padding: 0 0 5px 0;
  22095. margin-right: 10px;
  22096. }
  22097. .cardCss > div:nth-child(2) {
  22098. background: #5b7b9d;
  22099. color: #fff;
  22100. width: 20px;
  22101. height: 20px;
  22102. border-radius: 50%;
  22103. text-align: center;
  22104. line-height: 20px;
  22105. }
  22106. .isWrong {
  22107. display: flex;
  22108. flex-direction: row;
  22109. flex-wrap: nowrap;
  22110. align-content: center;
  22111. align-items: center;
  22112. }
  22113. .answerRight {
  22114. width: 25%;
  22115. }
  22116. .isTj {
  22117. display: flex;
  22118. flex-direction: row;
  22119. flex-wrap: nowrap;
  22120. align-items: center;
  22121. }
  22122. .isTj > div:nth-child(2) {
  22123. color: #727070;
  22124. margin-left: 10px;
  22125. }
  22126. .isTjImg {
  22127. width: 30px;
  22128. height: 30px;
  22129. }
  22130. .isTjImg > img {
  22131. width: 100%;
  22132. height: 100%;
  22133. }
  22134. .cardAnswerBox {
  22135. font-size: 18px;
  22136. width: 97%;
  22137. border: 5px;
  22138. padding: 0;
  22139. border-radius: 5px;
  22140. margin: 10px auto;
  22141. word-break: break-word;
  22142. }
  22143. .w_name {
  22144. margin-bottom: 10px;
  22145. }
  22146. .w_name span {
  22147. font-size: 16px;
  22148. }
  22149. .w_teachert {
  22150. width: 50px !important;
  22151. position: absolute;
  22152. height: auto !important;
  22153. z-index: 10;
  22154. right: 25px;
  22155. top: -25px;
  22156. }
  22157. .group_workBox {
  22158. }
  22159. .group_workBox + .group_workBox {
  22160. margin-top: 20px;
  22161. }
  22162. .group_box {
  22163. padding-bottom: 20px;
  22164. border-bottom: 2px solid #f0f0f0;
  22165. margin-top: 10px;
  22166. }
  22167. .group_title {
  22168. display: flex;
  22169. align-items: center;
  22170. justify-content: space-between;
  22171. width: 95%;
  22172. }
  22173. .group_name {
  22174. background-image: url(../../assets/icon/groupN.png);
  22175. width: 220px;
  22176. background-size: 100% 100%;
  22177. height: 67px;
  22178. padding: 0 20px 0 43px;
  22179. box-sizing: border-box;
  22180. line-height: 63px;
  22181. color: #fff;
  22182. overflow: hidden;
  22183. white-space: nowrap;
  22184. text-overflow: ellipsis;
  22185. }
  22186. .group_work {
  22187. width: 100%;
  22188. padding: 0 10px;
  22189. box-sizing: border-box;
  22190. display: flex;
  22191. flex-wrap: wrap;
  22192. }
  22193. .g_d_box {
  22194. display: flex;
  22195. flex-flow: wrap;
  22196. justify-content: space-around;
  22197. }
  22198. .g_d_box .isChair {
  22199. background-image: url(../../assets/avatar.png) !important;
  22200. }
  22201. .g_d_group {
  22202. width: 500px;
  22203. margin-bottom: 80px;
  22204. }
  22205. .g_d_group_chair {
  22206. display: flex;
  22207. align-items: center;
  22208. justify-content: center;
  22209. }
  22210. .g_d_group_chair > div + div {
  22211. margin-left: 30px;
  22212. }
  22213. .g_d_group_chair > div,
  22214. .g_d_group_chair2 > div {
  22215. display: flex;
  22216. flex-direction: column;
  22217. align-items: center;
  22218. }
  22219. .g_d_group_chair > div > span:nth-child(1),
  22220. .g_d_group_chair2 > div > span:nth-child(1) {
  22221. background-image: url(../../assets/icon/chair.png);
  22222. width: 50px;
  22223. height: 50px;
  22224. display: block;
  22225. background-size: 100% 100%;
  22226. }
  22227. .g_d_group_tableBox {
  22228. display: flex;
  22229. align-items: center;
  22230. justify-content: center;
  22231. }
  22232. .g_d_group_chair2 {
  22233. display: flex;
  22234. flex-direction: column;
  22235. align-items: center;
  22236. justify-content: center;
  22237. }
  22238. .g_d_group_chair2 > div + div {
  22239. margin-top: 10px;
  22240. }
  22241. .g_d_group_table {
  22242. background-image: url(../../assets/icon/groupBg.png);
  22243. width: 354px;
  22244. height: 196px;
  22245. background-size: 100% 100%;
  22246. display: flex;
  22247. align-items: center;
  22248. justify-content: center;
  22249. flex-direction: column;
  22250. color: #fff;
  22251. }
  22252. .g_d_group_table > div:nth-child(1) {
  22253. font-size: 24px;
  22254. margin-bottom: 5px;
  22255. }
  22256. .g_d_group_table > div:nth-child(2) div {
  22257. cursor: pointer;
  22258. background: #2e77bf;
  22259. padding: 4px 10px;
  22260. border-radius: 5px;
  22261. }
  22262. .groupBox {
  22263. }
  22264. .groupContent + .groupContent {
  22265. margin-top: 30px;
  22266. }
  22267. .groupTitle {
  22268. font-size: 24px;
  22269. color: rgb(80, 80, 80);
  22270. margin-bottom: 20px;
  22271. }
  22272. .groupName {
  22273. display: flex;
  22274. align-items: center;
  22275. }
  22276. .groupn {
  22277. font-size: 15px;
  22278. margin-right: 10px;
  22279. }
  22280. .groupName + .groupName {
  22281. margin-top: 15px;
  22282. }
  22283. .groupBtn {
  22284. margin-left: 10px;
  22285. }
  22286. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22287. text-align: left;
  22288. }
  22289. .g_d_btnBox {
  22290. display: flex;
  22291. justify-content: flex-end;
  22292. align-items: center;
  22293. margin-bottom: 20px;
  22294. }
  22295. .updateChair {
  22296. position: relative;
  22297. }
  22298. .updateChairBtn {
  22299. position: absolute;
  22300. width: 50px;
  22301. height: 50px;
  22302. overflow: hidden;
  22303. /* display: flex; */
  22304. align-items: center;
  22305. justify-content: center;
  22306. background: #00000087;
  22307. color: #fff;
  22308. border-radius: 50px;
  22309. display: none;
  22310. cursor: pointer;
  22311. }
  22312. .updateChair:hover .updateChairBtn {
  22313. display: flex;
  22314. }
  22315. .group_staic_box {
  22316. display: flex;
  22317. padding: 30px 40px 10px;
  22318. flex-wrap: wrap;
  22319. }
  22320. .group_staic {
  22321. /* width: 50%; */
  22322. margin-bottom: 20px;
  22323. display: flex;
  22324. align-items: center;
  22325. }
  22326. .group_staic span:nth-child(1) {
  22327. width: 150px;
  22328. text-align: right;
  22329. margin-right: 15px;
  22330. }
  22331. .group_staic span:nth-child(2) {
  22332. background: rgb(0 123 255);
  22333. color: #fff;
  22334. border-radius: 5px;
  22335. padding: 5px;
  22336. }
  22337. .codeFileBox {
  22338. height: 300px;
  22339. background: #fff;
  22340. display: flex;
  22341. align-items: center;
  22342. justify-content: center;
  22343. }
  22344. .codeFileBox img {
  22345. width: 200px;
  22346. margin: 0;
  22347. height: auto;
  22348. }
  22349. .codeFileBox div {
  22350. background: rgb(80, 142, 226);
  22351. color: #fff;
  22352. padding: 10px 20px;
  22353. border-radius: 25px;
  22354. cursor: pointer;
  22355. margin-left: 15px;
  22356. }
  22357. .radioBox {
  22358. display: flex;
  22359. flex-direction: column;
  22360. flex-wrap: nowrap;
  22361. align-items: flex-start;
  22362. }
  22363. .radioBox > div {
  22364. margin: 10px 0 0 10px;
  22365. }
  22366. /* .radioBox >>> .el-radio__input,
  22367. .radioBox >>> .el-checkbox__inner {
  22368. margin-left: 10px;
  22369. } */
  22370. .radioBox >>> .el-radio__label,
  22371. .radioBox >>> .el-checkbox__label {
  22372. display: flex;
  22373. align-items: center;
  22374. width: 100%;
  22375. }
  22376. .radioBox >>> .el-radio__label > span {
  22377. width: 100%;
  22378. display: -webkit-box;
  22379. overflow: hidden;
  22380. white-space: normal !important;
  22381. text-overflow: ellipsis;
  22382. word-wrap: break-word;
  22383. }
  22384. .inImg {
  22385. width: 100px;
  22386. cursor: pointer;
  22387. }
  22388. .inImg > img {
  22389. width: 100%;
  22390. height: 100%;
  22391. object-fit: cover;
  22392. }
  22393. .timuImgBox {
  22394. margin: 10px 0;
  22395. display: flex;
  22396. flex-direction: column;
  22397. flex-wrap: wrap;
  22398. align-items: flex-start;
  22399. }
  22400. .timuImg {
  22401. width: 150px;
  22402. margin: 5px 0;
  22403. cursor: pointer;
  22404. }
  22405. .timuImg > img {
  22406. width: 100%;
  22407. height: 100%;
  22408. object-fit: cover;
  22409. }
  22410. .worksTop {
  22411. display: flex;
  22412. flex-direction: row;
  22413. align-items: flex-end;
  22414. }
  22415. .worksTitle {
  22416. display: flex;
  22417. flex-direction: row;
  22418. flex-wrap: nowrap;
  22419. align-items: center;
  22420. }
  22421. .worksTitle::before,
  22422. .worksTop::before {
  22423. content: "";
  22424. display: block;
  22425. width: 3px;
  22426. height: 20px;
  22427. background: #0061ff;
  22428. border-radius: 3px;
  22429. margin: 0 5px 0 0;
  22430. }
  22431. .corOpen {
  22432. margin: 0 0 0 10px;
  22433. font-size: 14px;
  22434. cursor: pointer;
  22435. color: #505050;
  22436. }
  22437. .corOpen:hover {
  22438. color: #499eef;
  22439. }
  22440. .navCorOpenBox {
  22441. display: flex;
  22442. flex-direction: row;
  22443. align-items: center;
  22444. justify-content: space-between;
  22445. height: 55px;
  22446. background: #ffffff;
  22447. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22448. border-radius: 8px 8px 0px 0px;
  22449. z-index: 9;
  22450. position: relative;
  22451. }
  22452. .navCorOpen {
  22453. padding-right: 15px;
  22454. cursor: pointer;
  22455. width: 45px;
  22456. display: flex;
  22457. }
  22458. .navCorOpen > img {
  22459. width: 100%;
  22460. height: 100%;
  22461. }
  22462. .mlImg {
  22463. width: 40px !important;
  22464. min-width: 40px;
  22465. cursor: pointer;
  22466. transform: rotate(180deg);
  22467. }
  22468. .mlImg > img {
  22469. width: 100%;
  22470. height: 100%;
  22471. }
  22472. .navLeftCss {
  22473. width: 100% !important;
  22474. left: 0 !important;
  22475. }
  22476. .isContentCss {
  22477. width: 100% !important;
  22478. }
  22479. .isAllWidth {
  22480. width: 100% !important;
  22481. }
  22482. .group_switch {
  22483. margin-right: 10px;
  22484. height: 30px;
  22485. display: flex;
  22486. align-items: center;
  22487. }
  22488. .group_switch > span {
  22489. margin-right: 5px;
  22490. }
  22491. .fileC_box {
  22492. padding-top: 15px;
  22493. }
  22494. .fileC_box > .fileC_title {
  22495. padding: 10px 5px 14px 10px;
  22496. border-top: 1px solid #cad1dc;
  22497. font-size: 14px;
  22498. font-weight: 400;
  22499. color: #cad1dc;
  22500. width: calc(100% - 20px);
  22501. margin: 0 auto;
  22502. box-sizing: border-box;
  22503. }
  22504. .pl_select_box {
  22505. height: 40px;
  22506. line-height: 40px;
  22507. width: 100%;
  22508. cursor: pointer;
  22509. padding: 0 20px;
  22510. box-sizing: border-box;
  22511. border-radius: 5px;
  22512. border: 1px solid #d6d6d6;
  22513. white-space: nowrap;
  22514. overflow: hidden;
  22515. text-overflow: ellipsis;
  22516. background: #fff;
  22517. text-align: left;
  22518. }
  22519. .newButton {
  22520. width: 102px;
  22521. height: 36px;
  22522. background: #e7ebf1;
  22523. border-radius: 4px;
  22524. color: #0e1e33;
  22525. font-weight: 400;
  22526. font-size: 14px;
  22527. border: none;
  22528. float: right;
  22529. margin-left: 10px;
  22530. }
  22531. .el-table >>> .even_row {
  22532. background-color: #f0f4fa;
  22533. }
  22534. .stageBoxCss,
  22535. .stageBoxIsCss {
  22536. display: flex;
  22537. flex-direction: row;
  22538. flex-wrap: nowrap;
  22539. align-items: center;
  22540. height: 50px;
  22541. border-bottom: 1px solid #e2f5fc;
  22542. cursor: pointer;
  22543. width: 100%;
  22544. }
  22545. .stageBoxIsCss {
  22546. background: #0061ff;
  22547. color: #fff;
  22548. border-radius: 8px;
  22549. }
  22550. .closeTri,
  22551. .closeTri1 {
  22552. min-width: 15px;
  22553. width: 15px;
  22554. height: 15px;
  22555. }
  22556. .closeTri1 {
  22557. padding-left: 10px;
  22558. cursor: pointer;
  22559. }
  22560. .closeTri > img,
  22561. .closeTri1 > img {
  22562. width: 100%;
  22563. height: 100%;
  22564. /* transition: all .5s; */
  22565. }
  22566. .noToolBlue {
  22567. min-width: 10px;
  22568. width: 10px;
  22569. height: 10px;
  22570. background: #0061ff;
  22571. border-radius: 50%;
  22572. margin-left: 13px;
  22573. }
  22574. .stageChild,
  22575. .toolChild {
  22576. height: 0;
  22577. overflow: hidden;
  22578. transition: all 0.5s;
  22579. }
  22580. .toolChild {
  22581. /* margin: 0 0 0 17px;
  22582. padding: 0 0 0 20px;
  22583. border-left: 1px solid #d7d7d7; */
  22584. }
  22585. .toolChild > div + div{
  22586. margin-top:5px;
  22587. }
  22588. .gjCss {
  22589. display: flex;
  22590. flex-direction: row;
  22591. flex-wrap: nowrap;
  22592. align-items: center;
  22593. padding: 10px 0 10px 40px;
  22594. box-sizing: border-box;
  22595. font-size: 14px;
  22596. cursor: pointer;
  22597. border-radius:5px;
  22598. }
  22599. .toolChild > div {
  22600. position: relative;
  22601. width: 100%;
  22602. }
  22603. .toolChild > div::before {
  22604. /* content: "";
  22605. width: 15px;
  22606. height: 1px;
  22607. background: #cad1dc;
  22608. position: absolute;
  22609. top: 24px;
  22610. left: -20px;
  22611. display: block; */
  22612. }
  22613. .isGjCss {
  22614. /* color: #0061ff; */
  22615. color:#fff;
  22616. background: rgb(55, 129, 252);
  22617. /* background-color: #e0eafb !important;
  22618. color: #0061ff !important; */
  22619. }
  22620. .navItem {
  22621. background: #ffffff;
  22622. border-radius: 4px;
  22623. width: 100%;
  22624. margin: 10px auto;
  22625. position: relative;
  22626. height: 40px;
  22627. display: flex;
  22628. flex-direction: row;
  22629. flex-wrap: nowrap;
  22630. align-items: center;
  22631. }
  22632. .navItemList {
  22633. display: flex;
  22634. flex-direction: row;
  22635. flex-wrap: nowrap;
  22636. align-items: center;
  22637. padding: 0 13px;
  22638. cursor: pointer;
  22639. width: calc(100% - 60px);
  22640. height: 100%;
  22641. }
  22642. .navItemList > div:first-child {
  22643. min-width: 60px;
  22644. }
  22645. .navItemList > div:last-child {
  22646. width: calc(100% - 80px);
  22647. white-space: nowrap;
  22648. overflow: hidden;
  22649. text-overflow: ellipsis;
  22650. word-break: break-word;
  22651. }
  22652. /* .isItemList > div {
  22653. color: #fff !important;
  22654. } */
  22655. .tool_work_box {
  22656. width: 100%;
  22657. padding: 0 37px 0;
  22658. box-sizing: border-box;
  22659. }
  22660. .tool_box {
  22661. width: 100%;
  22662. padding: 0 0 0 20px;
  22663. }
  22664. .tool_type_box {
  22665. display: flex;
  22666. flex-direction: row;
  22667. align-items: baseline;
  22668. flex-wrap: nowrap;
  22669. justify-content: flex-start;
  22670. position: relative;
  22671. }
  22672. .toolSort {
  22673. display: flex;
  22674. flex-direction: row;
  22675. flex-wrap: wrap;
  22676. justify-content: flex-start;
  22677. align-items: flex-start;
  22678. padding: 0 0 15px 0;
  22679. }
  22680. .toolSort > div {
  22681. margin: 0 10px 0 0;
  22682. width: 135px;
  22683. box-sizing: border-box;
  22684. border: 2px solid transparent;
  22685. }
  22686. .tools {
  22687. width: 100%;
  22688. display: flex;
  22689. flex-direction: column;
  22690. flex-wrap: nowrap;
  22691. align-items: flex-start;
  22692. }
  22693. .whiteBIcon {
  22694. width: fit-content;
  22695. cursor: pointer;
  22696. display: flex;
  22697. flex-direction: column;
  22698. flex-wrap: nowrap;
  22699. align-items: center;
  22700. font-size: 14px;
  22701. }
  22702. .tool:hover {
  22703. border: 2px solid #a5c7ff;
  22704. border-radius: 5px;
  22705. }
  22706. .whiteBIcon > img {
  22707. width: 65px;
  22708. height: 100%;
  22709. }
  22710. .whiteBIcon > img {
  22711. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22712. border-radius: 15px;
  22713. }
  22714. .check {
  22715. /* width: 20px;
  22716. height: 20px; */
  22717. cursor: pointer;
  22718. margin: 10px 0;
  22719. position: absolute;
  22720. right: 2px;
  22721. top: -5px;
  22722. }
  22723. .noChoose,
  22724. .isChoose {
  22725. width: 15px;
  22726. height: 15px;
  22727. border-radius: 50%;
  22728. border: 1px solid #adadad;
  22729. }
  22730. .isChoose {
  22731. border: 4px solid #0363ff !important;
  22732. width: 10px;
  22733. height: 10px;
  22734. }
  22735. .isToolChoose {
  22736. border: 2px solid #5394ff !important;
  22737. border-radius: 5px;
  22738. box-shadow: 0 0 6px 0px #5394ff;
  22739. }
  22740. .checkDiv {
  22741. display: flex;
  22742. align-items: center;
  22743. }
  22744. .checkDiv span {
  22745. margin-left: 5px;
  22746. color: #858585;
  22747. }
  22748. .check img {
  22749. width: 20px;
  22750. height: 20px;
  22751. }
  22752. .lockTaskIcon {
  22753. width: 20px;
  22754. height: 20px;
  22755. position: absolute;
  22756. right: 10px;
  22757. top: 10px;
  22758. }
  22759. .lockTaskIcon > img {
  22760. width: 100%;
  22761. height: 100%;
  22762. }
  22763. .pick_box {
  22764. display: flex;
  22765. align-items: flex-start;
  22766. flex-wrap: wrap;
  22767. }
  22768. .selectBox {
  22769. width: 110px;
  22770. margin-left: 10px;
  22771. margin: 0 10px 0 auto;
  22772. }
  22773. .selectBox >>> .el-input__inner {
  22774. height: 30px;
  22775. line-height: 30px;
  22776. }
  22777. .selectBox >>> .el-input__icon {
  22778. line-height: 30px;
  22779. }
  22780. .sentenceTitle {
  22781. display: flex;
  22782. flex-direction: row;
  22783. flex-wrap: nowrap;
  22784. align-items: center;
  22785. }
  22786. .sentenceTitle::before {
  22787. content: attr(index);
  22788. background: #3681fc;
  22789. border-radius: 50%;
  22790. color: #fff;
  22791. width: 25px;
  22792. height: 25px;
  22793. min-width: 25px;
  22794. min-height: 25px;
  22795. text-align: center;
  22796. line-height: 25px;
  22797. margin-right: 5px;
  22798. }
  22799. .hfBox {
  22800. padding: 10px;
  22801. box-sizing: border-box;
  22802. }
  22803. .whoReplyWho {
  22804. display: flex;
  22805. flex-direction: row;
  22806. flex-wrap: nowrap;
  22807. align-items: baseline;
  22808. justify-content: flex-start;
  22809. }
  22810. .hfBottom {
  22811. display: flex;
  22812. flex-direction: row;
  22813. flex-wrap: nowrap;
  22814. align-items: center;
  22815. justify-content: space-between;
  22816. font-size: 14px;
  22817. }
  22818. .deleteHfItem {
  22819. cursor: pointer;
  22820. width: 20px;
  22821. height: 20px;
  22822. }
  22823. .deleteHfItem > img {
  22824. width: 100%;
  22825. height: 100%;
  22826. }
  22827. .whoReplyWho > .hfImg {
  22828. width: 12px;
  22829. height: 12px;
  22830. margin: 0 5px;
  22831. }
  22832. .whoReplyWho > .hfImg > img {
  22833. width: 100%;
  22834. height: 100%;
  22835. }
  22836. .hfContent {
  22837. padding-top: 10px;
  22838. box-sizing: border-box;
  22839. display: -webkit-box;
  22840. overflow: hidden;
  22841. white-space: normal !important;
  22842. text-overflow: ellipsis;
  22843. word-wrap: break-word;
  22844. -webkit-box-orient: vertical;
  22845. }
  22846. .hfTime {
  22847. text-align: left;
  22848. box-sizing: border-box;
  22849. padding: 10px 0 10px 0px;
  22850. color: #bfbfbf;
  22851. font-size: 14px;
  22852. }
  22853. .btnAllNT {
  22854. position: fixed;
  22855. bottom: 100px;
  22856. right: 40px;
  22857. z-index: 999;
  22858. display: flex;
  22859. flex-direction: row;
  22860. }
  22861. .btnAllNT > img {
  22862. cursor: pointer;
  22863. width: 80px;
  22864. }
  22865. .toolMask {
  22866. position: fixed;
  22867. width: 100%;
  22868. height: 100%;
  22869. background: #3f3c3c;
  22870. opacity: 0.5;
  22871. top: 0;
  22872. left: 0;
  22873. z-index: 999;
  22874. }
  22875. .addToolCss {
  22876. position: fixed;
  22877. z-index: 999;
  22878. background: #fff;
  22879. right: 5%;
  22880. bottom: 18%;
  22881. min-width: 1035px;
  22882. min-height: 300px;
  22883. border-radius: 10px;
  22884. box-shadow: 0 0 8px 1px #b2b2b2;
  22885. }
  22886. .toolTop {
  22887. display: flex;
  22888. flex-direction: row;
  22889. flex-wrap: nowrap;
  22890. justify-content: space-between;
  22891. align-items: center;
  22892. padding: 20px;
  22893. }
  22894. .toolTop > div:nth-child(2) {
  22895. width: 15px;
  22896. height: 15px;
  22897. padding-right: 10px;
  22898. cursor: pointer;
  22899. }
  22900. .toolTop > div:nth-child(2) > img {
  22901. width: 100%;
  22902. height: 100%;
  22903. }
  22904. .fullStyle>>>.el-dialog__body {
  22905. height: calc(100% - 125px) !important;
  22906. box-sizing: border-box;
  22907. padding: 30px 0 !important;
  22908. background: #fff !important;
  22909. }
  22910. .fullStyle>>>.el-dialog {
  22911. width: 100% !important;
  22912. max-width: 100% !important;
  22913. height: 100% !important;
  22914. margin: 0 !important;
  22915. }
  22916. .fullStyle {
  22917. width: 100% !important;
  22918. max-width: 100% !important;
  22919. height: 100% !important;
  22920. margin: 0 auto !important;
  22921. }
  22922. .fullStyle>>>.el-dialog__footer{
  22923. background: #fff !important;
  22924. }
  22925. .engUpBox {
  22926. width: 100%;
  22927. height: 100%;
  22928. }
  22929. .engTitle,
  22930. .engText {
  22931. display: flex;
  22932. flex-direction: row;
  22933. flex-wrap: nowrap;
  22934. align-items: flex-start;
  22935. padding: 0 20px 20px 20px;
  22936. box-sizing: border-box;
  22937. }
  22938. .engTitle > .div:first-child,
  22939. .engText > div:first-child {
  22940. min-width: 75px;
  22941. }
  22942. .correctBox{
  22943. width: 100%;
  22944. display: flex;
  22945. flex-direction: row;
  22946. flex-wrap: nowrap;
  22947. align-items: flex-start;
  22948. }
  22949. .oldBox{
  22950. width: 50%;
  22951. height: 100%;
  22952. display: flex;
  22953. flex-direction: column;
  22954. flex-wrap: nowrap;
  22955. align-items: center;
  22956. border-top: 1px solid #d9d9d9;
  22957. border-left: 1px solid #d9d9d9;
  22958. border-right: 1px solid #d9d9d9;
  22959. }
  22960. .oldBox>div:first-child{
  22961. width: 100%;
  22962. text-align: center;
  22963. background: #d9d9d9;
  22964. height: 35px;
  22965. line-height: 35px;
  22966. font-weight: bold;
  22967. }
  22968. .oldText{
  22969. width: 100%;
  22970. height: calc(100% - 35px);
  22971. overflow: auto;
  22972. margin: 10px 0;
  22973. display: flex;
  22974. flex-direction: column;
  22975. flex-wrap: nowrap;
  22976. align-content: center;
  22977. align-items: center;
  22978. }
  22979. .detailBox{
  22980. width: 50%;
  22981. padding: 10px;
  22982. background: #f6f6f6;
  22983. border-radius: 5px;
  22984. }
  22985. .oldDetail,.oldDetail1{
  22986. padding-bottom: 30px;
  22987. }
  22988. .oldImg{
  22989. width:30px;
  22990. height: 30px;
  22991. }
  22992. .oldImg>img{
  22993. width: 100%;
  22994. height: 100%;
  22995. }
  22996. .allName{
  22997. min-width: 200px;
  22998. white-space: nowrap;
  22999. overflow: hidden;
  23000. text-overflow: ellipsis;
  23001. word-break: break-word;
  23002. cursor: pointer;
  23003. text-align: center;
  23004. border: 1px solid #bcc2cc;
  23005. box-sizing: border-box;
  23006. }
  23007. .engUpTop{
  23008. max-height: 300px;
  23009. overflow: auto;
  23010. }
  23011. .isUpdateToolDetailClass{
  23012. padding: 0 !important;
  23013. }
  23014. .isUpdateToolDetailClass textarea{
  23015. padding:12px;
  23016. font-size: 16px;
  23017. min-height:100%;
  23018. width: 100%;
  23019. box-sizing:border-box;
  23020. outline: none;
  23021. border:none;
  23022. line-height: 30px;
  23023. resize: none;
  23024. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23025. color: #838383;
  23026. }
  23027. .show_taskD {
  23028. min-width: fit-content;
  23029. margin-left: 10px;
  23030. display: flex;
  23031. align-items: center;
  23032. font-size: 14px;
  23033. cursor: pointer;
  23034. color: #717c8d;
  23035. }
  23036. .show_taskD > img {
  23037. width: 15px;
  23038. margin-right: 5px;
  23039. transition: 0.2s all;
  23040. transform: rotate(-90deg);
  23041. }
  23042. .show_taskD.show > img {
  23043. transform: rotate(0deg);
  23044. }
  23045. </style>