studyStudent.vue 785 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848
  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. '/courseDetailTrain?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. '/courseDetailTrain?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. '/courseDetailTrain?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: 0px 0px 5px 5px #eee;
  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: 0px 0px 5px 5px #eee;
  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. :englishList="englishList"
  11280. :myAnswerList1="myAnswerList1"
  11281. ref="engJson"
  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" style="white-space: pre-line;" @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" style="white-space: pre-line;"></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 loadingText" 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" @input="gx"/>
  11339. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11340. </div>
  11341. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11342. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11343. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11344. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11345. </div>
  11346. </div>
  11347. </div>
  11348. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11349. <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">
  11350. <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>
  11351. <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>
  11352. </div>
  11353. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11354. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11355. <div class="detailBox" style="position: relative;">
  11356. <div class="oldDetail">
  11357. <div>标题:</div>
  11358. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11359. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11360. </div>
  11361. <div class="oldDetail">
  11362. <div>正文:</div>
  11363. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11364. <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText)"></div>
  11365. </div>
  11366. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11367. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11368. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11369. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11370. </div>
  11371. </div>
  11372. <div class="oldText" v-else-if="newEngIndex == -1">
  11373. <div class="detailBox" style="position: relative;">
  11374. <div class="oldDetail">
  11375. <div>标题:</div>
  11376. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11377. <div v-else v-html="newEnglishList.engTitle"></div>
  11378. </div>
  11379. <div class="oldDetail">
  11380. <div>正文:</div>
  11381. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11382. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11383. </div>
  11384. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11385. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11386. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11387. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11388. </div>
  11389. </div>
  11390. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11391. <div class="detailBox" style="position: relative;">
  11392. <div class="oldDetail">
  11393. <div>标题:</div>
  11394. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11395. <div v-else>
  11396. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11397. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11398. </div>
  11399. </div>
  11400. <div class="oldDetail">
  11401. <div>正文:</div>
  11402. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div>
  11403. <div v-else>
  11404. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11405. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText)"></div>
  11406. </div>
  11407. </div>
  11408. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11409. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11410. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11411. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11412. </div>
  11413. </div>
  11414. </div>
  11415. </div>
  11416. </div>
  11417. <span slot="footer" class="dialog-footer">
  11418. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11419. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11420. </span>
  11421. </el-dialog>
  11422. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11423. <interVideo
  11424. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11425. :videoJson="videoJson"
  11426. :userid="userid"
  11427. :id="id"
  11428. :courseType="courseType"
  11429. :taskCount="taskCount"
  11430. :toolindex="toolindex"
  11431. ></interVideo>
  11432. <UpdateMore
  11433. :dialogVisibleMember.sync="dialogVisibleMember"
  11434. :cList="uploadStudentJuri"
  11435. :userid="userid"
  11436. :searchTN="worksSName2"
  11437. @setPlname="setPlname"
  11438. ></UpdateMore>
  11439. <wordCloud
  11440. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11441. :data="wordCloudData"
  11442. ></wordCloud>
  11443. <el-dialog
  11444. title="挑人"
  11445. :visible.sync="dialogVisiblePickPeople"
  11446. width="650px"
  11447. :before-close="handleClose"
  11448. class="dialog_diy"
  11449. center
  11450. >
  11451. <div class="pick_box">
  11452. <div
  11453. class="noWorksName"
  11454. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11455. v-for="(item, index) in uploadStudentJuri"
  11456. :key="index"
  11457. @click="pickStudent(item)"
  11458. >
  11459. {{ item.name }}
  11460. </div>
  11461. </div>
  11462. </el-dialog>
  11463. </div>
  11464. </template>
  11465. <script>
  11466. import "../../../common/aws-sdk-2.235.1.min.js";
  11467. // import pdf from "../components/pdf3";
  11468. import pdf from "../../components/vpdf";
  11469. import AskStatic from "../../components/askStatic";
  11470. import AskStatic2 from "../../components/askStatic2";
  11471. import AnswerData2 from "../../components/answerData2";
  11472. import AnswerData from "../../components/answerData";
  11473. import EditorBar from "../../tools/wangEnduit.vue";
  11474. import Table from "../../tools/table.vue";
  11475. import Time from "../../tools/time.vue";
  11476. import Mind from "../../tools/jsmind.vue";
  11477. import Sunburst from "../../tools/sunburst";
  11478. import SeeBoard from "../../tools/seeBoard";
  11479. import * as imageConversion from "image-conversion";
  11480. import Audio from "../../components/audio.vue";
  11481. import ImgDraw from "../../tools/imgDraw/imgDraw";
  11482. import { Empty } from "element-ui";
  11483. import RecordRTC from "recordrtc";
  11484. import interVideo from "../../interVideo/index.vue";
  11485. import UpdateMore from "../../updateMore/updateMore.vue";
  11486. import wordCloud from "../../wordCloud/index.vue";
  11487. import axios from "axios";
  11488. import JSZip from "jszip";
  11489. import FileSaver from "file-saver";
  11490. import onlineWrite from "./commpont/onlineWrite";
  11491. import englishEva from "../../components/englishEva";
  11492. import * as Diff from 'diff'
  11493. const getFile = (url) => {
  11494. return new Promise((resolve, reject) => {
  11495. var credentials = {
  11496. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11497. secretAccessKey: "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",
  11498. }; //秘钥形式的登录上传
  11499. window.AWS.config.update(credentials);
  11500. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11501. let url2 = url;
  11502. let _url2 = "";
  11503. if (
  11504. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11505. ) {
  11506. _url2 = url2.split(
  11507. "https://view.officeapps.live.com/op/view.aspx?src="
  11508. )[1];
  11509. } else {
  11510. _url2 = url2;
  11511. }
  11512. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11513. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11514. var params = {
  11515. Bucket: "ccrb",
  11516. Key: name
  11517. };
  11518. s3.getObject(params, function (err, data) {
  11519. if (err) {
  11520. console.log(err, err.stack)
  11521. resolve({ data: 1 });
  11522. }else {
  11523. resolve({ data: data.Body });
  11524. console.log(data);
  11525. } // sxuccessful response
  11526. });
  11527. // axios({
  11528. // method: "get",
  11529. // url,
  11530. // responseType: "blob",
  11531. // })
  11532. // .then((data) => {
  11533. // resolve({ data: data.data });
  11534. // })
  11535. // .catch((error) => {
  11536. // resolve({ data: 1 });
  11537. // // reject(error.toString());
  11538. // });
  11539. });
  11540. };
  11541. export default {
  11542. components: {
  11543. EditorBar,
  11544. Time,
  11545. pdf,
  11546. AskStatic,
  11547. AskStatic2,
  11548. Mind,
  11549. Sunburst,
  11550. SeeBoard,
  11551. AnswerData2,
  11552. AnswerData,
  11553. Audio,
  11554. ImgDraw,
  11555. Table,
  11556. interVideo,
  11557. UpdateMore,
  11558. wordCloud,
  11559. onlineWrite,
  11560. englishEva,
  11561. },
  11562. data() {
  11563. return {
  11564. bg: null,
  11565. drawShow: false,
  11566. dialogVisible: false,
  11567. dialogVisiblePl: false,
  11568. commentDialogVisible: false,
  11569. dialogVisibleMember: false,
  11570. dialogVisibleWordCloud: false,
  11571. videoVisible: false,
  11572. isStar: false,
  11573. studentEvalDialogVisible: false,
  11574. studentEvalDialogVisibleTeacher: false,
  11575. dialogVisibleSelect: false,
  11576. dialogVisibleSelectTeacher: false,
  11577. dialogVisibleScore: false,
  11578. dialogVisibleSentence: false,
  11579. dialogVisibleSentenceTeacher: false,
  11580. dialogVisibleSentence1: false,
  11581. dialogVisibleWorks: false,
  11582. dialogVisibleTable: false,
  11583. dialogVisibleTableTeacher: false,
  11584. dialogVisibleWord: false,
  11585. dialogVisibleWordTeacher: false,
  11586. dialogVisibleTable2: false,
  11587. dialogVisibleTable3: false,
  11588. dialogVisibleGroupWork: false,
  11589. dialogVisibleUpdateGroup: false,
  11590. dialogVisibleDeleteGroup: false,
  11591. dialogVisibleSname: false,
  11592. dialogVisibleVideo: false,
  11593. dialogVisiblePickPeople: false,
  11594. worksSName: "",
  11595. classJuri: [],
  11596. uploadStudentJuri: [],
  11597. uploadCid: "",
  11598. snameWid: "",
  11599. sStudent: {},
  11600. sTool: "",
  11601. bzText: "",
  11602. commentDetail: [],
  11603. selectAnswer: [],
  11604. videoDetail: {},
  11605. selectJson: {},
  11606. eScore: { eBzText: "", eStar: [] },
  11607. id: this.$route.query.courseId,
  11608. userid: this.$route.query.userid,
  11609. classId: this.$route.query.cid,
  11610. // courseTypeLine: this.$route.query.type,
  11611. oid: this.$route.query.oid,
  11612. org: this.$route.query.org,
  11613. tType: this.$route.query.tType,
  11614. courseType: this.$route.query.type,
  11615. screenType: this.$route.query.screenType,
  11616. tcid2: this.$route.query.tcid,
  11617. tcid: "",
  11618. pptImgUrl: "",
  11619. pptImgUrl1: "",
  11620. commentText: "",
  11621. full: false,
  11622. sIsOpen: false,
  11623. IsLookOpen: false,
  11624. IsFollow: false,
  11625. pzDialog: false,
  11626. contentDialog: false,
  11627. mlDialog: false,
  11628. type: 1,
  11629. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11630. sentenceList1: [],
  11631. tableJson: [],
  11632. tableJsonO: [],
  11633. wordJson: [],
  11634. wordJsonO: [],
  11635. vedio: [],
  11636. text: [],
  11637. textList: [],
  11638. line: [],
  11639. lineList: [],
  11640. chapTools: [],
  11641. chapToolList: [],
  11642. file: [],
  11643. fileC: [],
  11644. vedioTime: [],
  11645. upToolImg: "",
  11646. preTime: 0,
  11647. rateList: {
  11648. ca: 0,
  11649. },
  11650. rateParams: [],
  11651. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11652. studyJuri: [
  11653. {
  11654. content: "",
  11655. cover: [],
  11656. upVedio: [],
  11657. upFile: [],
  11658. },
  11659. ],
  11660. isClose: 0,
  11661. plworkFile: [],
  11662. mr: require("../../../assets/vedioPic.png"),
  11663. word: require("../../../assets/icon/isWord.png"),
  11664. word2: require("../../../assets/icon/word2.png"),
  11665. video: require("../../../assets/icon/isVideo.png"),
  11666. noLikes: require("../../../assets/icon/comment/noLikes.png"),
  11667. likes: require("../../../assets/icon/comment/likes.png"),
  11668. scoreImg: require("../../../assets/score.png"),
  11669. courseDetail: {},
  11670. reply: "",
  11671. isSelect: false,
  11672. chapInfo: [],
  11673. chapInfoList: [],
  11674. taskCount: 0,
  11675. imgList: [],
  11676. noImgList: [],
  11677. pzList: [],
  11678. timeWorkList: [],
  11679. PlTextList: [
  11680. "Excellent!",
  11681. "nice!",
  11682. "很有创意!",
  11683. "还不错哦~",
  11684. "继续努力哦~",
  11685. ],
  11686. isClickNav: "",
  11687. navId: "",
  11688. playerOptions: {
  11689. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11690. autoplay: false, //如果true,浏览器准备好时开始回放。
  11691. muted: false, // 默认情况下将会消除任何音频。
  11692. loop: false, // 导致视频一结束就重新开始。
  11693. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11694. language: "zh-CN",
  11695. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11696. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11697. sources: [
  11698. {
  11699. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11700. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11701. },
  11702. ],
  11703. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11704. // poster: dataRes.imgUrl, //你的封面地址
  11705. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11706. controlBar: {
  11707. timeDivider: true, //当前时间和持续时间的分隔符
  11708. durationDisplay: true, //显示持续时间
  11709. remainingTimeDisplay: false, //是否显示剩余时间功能
  11710. fullscreenToggle: true, //全屏按钮
  11711. },
  11712. },
  11713. playerOptions1: {
  11714. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11715. autoplay: false, //如果true,浏览器准备好时开始回放。
  11716. muted: false, // 默认情况下将会消除任何音频。
  11717. loop: false, // 导致视频一结束就重新开始。
  11718. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11719. language: "zh-CN",
  11720. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11721. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11722. sources: [
  11723. {
  11724. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11725. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11726. },
  11727. ],
  11728. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11729. // poster: dataRes.imgUrl, //你的封面地址
  11730. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11731. controlBar: {
  11732. timeDivider: true, //当前时间和持续时间的分隔符
  11733. durationDisplay: true, //显示持续时间
  11734. remainingTimeDisplay: false, //是否显示剩余时间功能
  11735. fullscreenToggle: true, //全屏按钮
  11736. },
  11737. },
  11738. playerO: {},
  11739. noneBtnImg: false,
  11740. proVisible: false,
  11741. proVisible2: false,
  11742. progress: 0,
  11743. isFinishSize: 0,
  11744. isAllSize: 0,
  11745. questionAnswer: "",
  11746. answerQ: "", //问答标题
  11747. rateJson: [],
  11748. wbCount: 0,
  11749. wordCount: 0,
  11750. mindCount: 0,
  11751. askCount: 0,
  11752. noteCount: 0,
  11753. mindNetWorkCount: 0,
  11754. libraryCount: 0,
  11755. workCount: 0,
  11756. timeCount: 0,
  11757. answerCount: 0,
  11758. trainCount: 0,
  11759. evalCount: 0,
  11760. dialogImageUrl: "",
  11761. pictureDialog: false,
  11762. toolTypeList: [],
  11763. dialogVisible1: false,
  11764. dialogVisible2: false,
  11765. dialogVisible3: false,
  11766. dialogVisible6: false,
  11767. dialogVisible4: false,
  11768. isNoHomeWork: false,
  11769. dialogVisible5: false,
  11770. dialogVisible5Teacher: false,
  11771. dialogVisibleChoice: false,
  11772. dialogVisibleChoiceTeacher: false,
  11773. answerDialogVisible: false,
  11774. answerDialogVisibleTeacher: false,
  11775. juriVisible: false,
  11776. timeDialogVisible: false,
  11777. replyDialogVisible: false,
  11778. toolDialogVisible: false,
  11779. engDialogVisible: false,
  11780. engUpdateDialogVisible:false,
  11781. engEvaDialogVisible: false,
  11782. evaEngJson: {
  11783. teacherJson: {},
  11784. studentJson: {},
  11785. message: {},
  11786. },
  11787. isNoUserid:false,
  11788. engListLength:0,
  11789. engWid:"",
  11790. newEnglishList:{
  11791. engTitle:"",
  11792. engText:"",
  11793. },
  11794. newEnglishList1:[],
  11795. oldEnglishJson:{},
  11796. oldEnglishJson1:{},
  11797. englishList1:{},
  11798. englishList:{},
  11799. myAnswerList1:{},
  11800. topHeight:0,
  11801. newEngIndex:-1,
  11802. englishToolIndex:0,
  11803. userMes:{},
  11804. englishToolIndex:0,
  11805. replyIndex: 0,
  11806. replyPid: "",
  11807. radio: [],
  11808. isAsk: false,
  11809. askJson: {
  11810. askCount: 1,
  11811. askTitle: "",
  11812. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11813. },
  11814. testJson: {},
  11815. englishList: {},
  11816. topHeight:0,
  11817. checkJson: [],
  11818. askList: [],
  11819. answerList: [],
  11820. navList: [],
  11821. addPzDialog: false,
  11822. pzConText: "",
  11823. worksStudent: [],
  11824. isCloseList: [],
  11825. workStudent: [],
  11826. groupStudent: [],
  11827. groupStudentUid: [],
  11828. noWorksS: [],
  11829. isWorksS: [],
  11830. noWorksStudent: [],
  11831. toolindex: 0,
  11832. toolDetailIndex: null,
  11833. groupIndex: 0,
  11834. workTypeB: false,
  11835. workTypeC: false,
  11836. isAnswer: false,
  11837. isHovered: false,
  11838. isHovered1: false,
  11839. isHovered2: false,
  11840. timer: null,
  11841. opertimer: null,
  11842. showType: 0,
  11843. fileType: 0,
  11844. showPDF: false,
  11845. noteName: "",
  11846. evaJuri: [],
  11847. evalua: "",
  11848. eTitle: "",
  11849. eName: "",
  11850. eJson: {},
  11851. fid: "", //一级
  11852. sid: "", //二级
  11853. tid: "", //二级
  11854. typeMode: 1,
  11855. eJSONNum: 0,
  11856. Etype: 1,
  11857. data: {
  11858. meta: {
  11859. name: "example",
  11860. author: "dd@163.com",
  11861. version: "0.2",
  11862. },
  11863. format: "node_array",
  11864. data: [{ id: "root", isroot: true, topic: "" }],
  11865. },
  11866. fullDialogVisible: false,
  11867. fulltype: "",
  11868. fullUrl: "",
  11869. commentIndexJson: {},
  11870. Stbodywidth: 0,
  11871. ispzType: 0,
  11872. pzType: 1,
  11873. wScore: 0,
  11874. scoreDetail: "",
  11875. videoStart: false,
  11876. recorder: null,
  11877. groupJson: {},
  11878. islock: false,
  11879. groupJson2: {},
  11880. dialogVisibleGroup: false,
  11881. dialogVisibleGroup2: false,
  11882. updateGroupArray: [],
  11883. updateGroupUser: {},
  11884. deleteGroupUser: [],
  11885. deleteGroupArray: {},
  11886. checkChair: "",
  11887. checkDeleteGroup: [],
  11888. inviteCode: "",
  11889. courseGroupStudent: [],
  11890. courseGroupStudentUid: [],
  11891. courseGroup: {},
  11892. isGroup: false,
  11893. toolIndex: null,
  11894. tool: {},
  11895. isWorkTool: [
  11896. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11897. ], //, 40
  11898. videoJson: {},
  11899. toolType: 0,
  11900. checktoolArray: [],
  11901. vChapterData: [],
  11902. isUpdateToolDetail: false,
  11903. isUpdateToolDetail1: false,
  11904. updateToolDetailInner: "",
  11905. checkboxList: [],
  11906. plIndex: "",
  11907. worksSName2: "",
  11908. worksSid: "",
  11909. wordCloudData: [],
  11910. isPickStudent: [],
  11911. pzStype: 1,
  11912. myAnList: {},
  11913. downLoading: false,
  11914. greyType: false,
  11915. correctWord: [],
  11916. };
  11917. },
  11918. methods: {
  11919. gx(){
  11920. this.$forceUpdate();
  11921. },
  11922. isUpdateCorrect(t,p){
  11923. if(this.greyType == false){
  11924. this.isUpdateText = t;
  11925. this.greyType = true;
  11926. }else{
  11927. if(p == 1){
  11928. this.newEnglishList.engText = this.isUpdateText;
  11929. }else if(p == 2){
  11930. this.oldEnglishJson1.engText = this.isUpdateText;
  11931. }else if(p == 3){
  11932. this.newEnglishList.engText = this.isUpdateText;
  11933. }else{
  11934. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  11935. }
  11936. this.greyType = false
  11937. }
  11938. },
  11939. aiCorrect(t,p){
  11940. let aiText = "";
  11941. const loading = this.$loading.service({
  11942. background: "rgba(255, 255, 255)",
  11943. target: document.querySelectorAll(".loadingText")[0],
  11944. });
  11945. let param = {
  11946. model: "gpt-3.5-turbo",
  11947. temperature: 0,
  11948. max_tokens: 2048,
  11949. top_p: 1,
  11950. frequency_penalty: 0,
  11951. presence_penalty: 0,
  11952. messages: [
  11953. {
  11954. role: "user",
  11955. content:
  11956.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  11957. },
  11958. ],
  11959. uid: this.userid,
  11960. stream: false,
  11961. };
  11962. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  11963. (res) => {
  11964. if (
  11965. res.data.FunctionResponse &&
  11966. res.data.FunctionResponse.result &&
  11967. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  11968. ) {
  11969. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  11970. return;
  11971. }
  11972. aiText =
  11973. res.data.FunctionResponse.choices[0].message.content;
  11974. aiText = aiText.replace(/%/g,"%25");
  11975. // let w = "";
  11976. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  11977. // for(var k = 0;k<a.length;k++){
  11978. // //diffWordsWithSpace
  11979. // if(a.length > 1){
  11980. // if(a[k].added == true){
  11981. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  11982. // }else if(a[k].removed == true){
  11983. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  11984. // }else{
  11985. // w += '<span>' + a[k].value + '</span>';
  11986. // }
  11987. // }else{
  11988. // if(p == 1){
  11989. // w = this.newEnglishList.engText;
  11990. // }else if(p == 2){
  11991. // w = this.oldEnglishJson1.engText;
  11992. // }else if(p == 3){
  11993. // w = this.newEnglishList.engText;
  11994. // }else{
  11995. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  11996. // }
  11997. // }
  11998. // }
  11999. if(p == 1){
  12000. this.newEnglishList.engText = aiText;
  12001. }else if(p == 2){
  12002. this.oldEnglishJson1.engText = aiText;
  12003. }else if(p == 3){
  12004. this.newEnglishList.engText = aiText;
  12005. }else{
  12006. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12007. }
  12008. loading.close();
  12009. },
  12010. (err) => {
  12011. console.log(err);
  12012. loading.close();
  12013. }
  12014. );
  12015. },
  12016. addToolChoose() {
  12017. if (!this.checktoolArray.length) {
  12018. this.$message.error("请选择要添加的任务");
  12019. return;
  12020. }
  12021. if (
  12022. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12023. this.taskCount
  12024. ].toolChoose[0].tool.length
  12025. ) {
  12026. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12027. this.taskCount
  12028. ].toolChoose[0].tool = this.checktoolArray;
  12029. } else {
  12030. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12031. this.taskCount
  12032. ].toolChoose.push({
  12033. tool: this.checktoolArray,
  12034. toolDetail: "",
  12035. toolType: 0,
  12036. askCount: 1,
  12037. askTitle: "",
  12038. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12039. });
  12040. }
  12041. let params = [
  12042. {
  12043. cid: this.id,
  12044. chapters: JSON.stringify(this.chapInfoList),
  12045. uid: this.userid,
  12046. unitIndex: this.courseType,
  12047. },
  12048. ];
  12049. this.ajax
  12050. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12051. .then((res) => {
  12052. this.$message({
  12053. message: "添加成功",
  12054. type: "success",
  12055. });
  12056. this.checktoolArray = [];
  12057. this.getCourseDetail(2);
  12058. this.checkBz(
  12059. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12060. this.taskCount
  12061. ].toolChoose.length - 1
  12062. );
  12063. this.toolDialogVisible = false;
  12064. this.refreshCourse();
  12065. this.$forceUpdate();
  12066. })
  12067. .catch((err) => {
  12068. console.error(err);
  12069. });
  12070. },
  12071. checkBz(index) {
  12072. this.isUpdateToolDetail = false;
  12073. this.$forceUpdate();
  12074. setTimeout(() => {
  12075. document.scrollingElement.scrollTop =
  12076. document.querySelectorAll(".filebox")[index].offsetTop +
  12077. document.querySelector(".student_body").offsetTop;
  12078. }, 500);
  12079. },
  12080. updateToolDetail(i, type) {
  12081. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12082. this.toolDetailIndex = i
  12083. this.isUpdateToolDetail1 = true;
  12084. setTimeout(() => {
  12085. this.updateToolDetailInner = JSON.parse(
  12086. JSON.stringify(
  12087. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12088. this.taskCount
  12089. ].toolChoose[i].toolDetail
  12090. )
  12091. );
  12092. document.querySelector(".checkTextArea").focus();
  12093. }, 0);
  12094. } else if((this.isUpdateToolDetail1 && type != 2)){
  12095. // this.toolDetailIndex = i;
  12096. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12097. this.taskCount
  12098. ].toolChoose[i].toolDetail = JSON.parse(
  12099. JSON.stringify(this.updateToolDetailInner)
  12100. );
  12101. let params = [
  12102. {
  12103. cid: this.id,
  12104. chapters: JSON.stringify(this.chapInfoList),
  12105. uid: this.userid,
  12106. unitIndex: this.courseType,
  12107. },
  12108. ];
  12109. this.ajax
  12110. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12111. .then((res) => {
  12112. this.isUpdateToolDetail1 = false;
  12113. this.$message({
  12114. message: "修改成功",
  12115. type: "success",
  12116. });
  12117. this.toolDetailIndex = null;
  12118. this.updateToolDetailInner = "";
  12119. this.getCourseDetail(2);
  12120. this.$forceUpdate();
  12121. })
  12122. .catch((err) => {
  12123. console.error(err);
  12124. });
  12125. } else if((this.isUpdateToolDetail1 && type == 2)){
  12126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12127. this.taskCount
  12128. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12129. JSON.stringify(this.updateToolDetailInner)
  12130. );
  12131. let params = [
  12132. {
  12133. cid: this.id,
  12134. chapters: JSON.stringify(this.chapInfoList),
  12135. uid: this.userid,
  12136. unitIndex: this.courseType,
  12137. },
  12138. ];
  12139. this.ajax
  12140. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12141. .then((res) => {
  12142. this.$message({
  12143. message: "修改成功",
  12144. type: "success",
  12145. });
  12146. this.toolDetailIndex = i;
  12147. this.isUpdateToolDetail1 = true;
  12148. setTimeout(() => {
  12149. this.updateToolDetailInner = JSON.parse(
  12150. JSON.stringify(
  12151. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12152. this.taskCount
  12153. ].toolChoose[i].toolDetail
  12154. )
  12155. );
  12156. document.querySelector(".checkTextArea").focus();
  12157. }, 0);
  12158. this.getCourseDetail(2);
  12159. this.$forceUpdate();
  12160. })
  12161. .catch((err) => {
  12162. console.error(err);
  12163. });
  12164. }
  12165. },
  12166. jumpGj(i, j, k, l) {
  12167. for (var z = 0; z < this.navList.length; z++) {
  12168. for (var q = 0; q < this.navList[z].task.length; q++) {
  12169. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12170. this.navList[z].task[q].tool[w].isTool = false;
  12171. }
  12172. }
  12173. }
  12174. console.log(this.navList);
  12175. this.navList[i].task[j].tool[k].isTool =
  12176. !this.navList[i].task[j].tool[k].isTool;
  12177. var a = document.scrollingElement;
  12178. let target = document.querySelector(`#gj${k}`);
  12179. if (target) {
  12180. target.scrollIntoView(true);
  12181. setTimeout(() => {
  12182. a.scrollTop = a.scrollTop - 150;
  12183. }, 0);
  12184. }
  12185. this.navId = ""
  12186. if (l) {
  12187. this.courseType = i;
  12188. // this.navId = l;
  12189. this.taskCount = j;
  12190. this.selectPz();
  12191. this.getHomeWork();
  12192. this.getCourseDetail(2);
  12193. }
  12194. // var b = this.$refs["bz" + k][0];
  12195. // a.scrollTop = b.offsetTop;
  12196. },
  12197. addTools2(i) {
  12198. if (i == 4) {
  12199. // this.openTools2(4);
  12200. this.$message.error("暂未开放");
  12201. return;
  12202. }
  12203. if (i == 45) {
  12204. // this.openTools2(45);
  12205. this.$message.error("暂未开放");
  12206. return;
  12207. }
  12208. if (i == 47) {
  12209. // this.openTools2(47);
  12210. this.$message.error("暂未开放");
  12211. return;
  12212. }
  12213. if (i == 49) {
  12214. // this.openTools2(49);
  12215. this.$message.error("暂未开放");
  12216. return;
  12217. }
  12218. if (i == 62) {
  12219. // this.openTools(itemTaskIndex, 62, toolIndex);
  12220. this.$message.error("暂未开放");
  12221. return;
  12222. }
  12223. if (i == 15) {
  12224. // this.openTools(itemTaskIndex, 15, toolIndex);
  12225. this.$message.error("暂未开放");
  12226. return;
  12227. }
  12228. if (i == 40) {
  12229. // this.openTools(itemTaskIndex, 40, toolIndex);
  12230. this.$message.error("暂未开放");
  12231. return;
  12232. }
  12233. if (i == 41) {
  12234. // this.openTools(itemTaskIndex, 41, toolIndex);
  12235. this.$message.error("暂未开放");
  12236. return;
  12237. }
  12238. if (i == 42) {
  12239. // this.openTools(itemTaskIndex, 42, toolIndex);
  12240. this.$message.error("暂未开放");
  12241. return;
  12242. }
  12243. if (this.checktoolArray.length > 0) {
  12244. if (this.checktoolArray.indexOf(i) != -1) {
  12245. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12246. } else {
  12247. this.checktoolArray = [];
  12248. this.checktoolArray.push(i);
  12249. }
  12250. } else {
  12251. this.checktoolArray.push(i);
  12252. }
  12253. this.$forceUpdate();
  12254. },
  12255. jump() {
  12256. window.topU.postMessage({ tools: "43" }, "*");
  12257. },
  12258. getUpdateMore(f, checkboxList, searchTN, index) {
  12259. this.dialogVisibleMember = f;
  12260. this.checkboxList = checkboxList;
  12261. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12262. this.plIndex = index;
  12263. },
  12264. setPlname(a) {
  12265. if (this.plworkFile.length) {
  12266. this.plworkFile[this.plIndex].username = a;
  12267. } else {
  12268. this.worksSName = a;
  12269. }
  12270. this.dialogVisibleMember = false;
  12271. },
  12272. previewImg(url) {
  12273. this.$hevueImgPreview(url);
  12274. },
  12275. checkImg(list) {
  12276. if (!list.length) {
  12277. return;
  12278. }
  12279. this.$hevueImgPreview({
  12280. multiple: true, // 开启多图预览模式
  12281. imgList: list, // 需要预览的多图数组
  12282. });
  12283. },
  12284. change(val) {
  12285. console.log(val);
  12286. },
  12287. goTo(path) {
  12288. this.$router.push(path);
  12289. },
  12290. handlePictureCardPreview(url) {
  12291. this.dialogImageUrl = url;
  12292. this.pictureDialog = true;
  12293. },
  12294. clean(type) {
  12295. if (type == 1) {
  12296. this.studyJuri[0].cover.splice(0, 1);
  12297. } else if (type == 2) {
  12298. this.studyJuri[0].upVedio.splice(0, 1);
  12299. } else {
  12300. this.studyJuri[0].upFile.splice(0, 1);
  12301. }
  12302. },
  12303. clean2(index) {
  12304. this.plworkFile.splice(index, 1);
  12305. },
  12306. handleClose(done) {
  12307. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12308. this.videoDetail.sources[0].src = "";
  12309. }
  12310. this.commentIndexJson = {};
  12311. done();
  12312. },
  12313. fullTools() {
  12314. this.full = !this.full;
  12315. },
  12316. imgChange(file, fileList, type) {
  12317. if (type == 1) {
  12318. var _tmp = this.studyJuri[0].cover;
  12319. } else if (type == 2) {
  12320. var _tmp = this.studyJuri[0].upVedio;
  12321. } else {
  12322. var _tmp = this.studyJuri[0].upFile;
  12323. }
  12324. this.noneBtnImg = _tmp.length >= 1;
  12325. },
  12326. setContent(bool) {
  12327. this.contentDialog = bool;
  12328. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12329. document.querySelector(".workd_media").style.height = "650px";
  12330. } else if (document.querySelector(".workd_media")) {
  12331. document.querySelector(".workd_media").style.height = "auto";
  12332. }
  12333. },
  12334. setContent2(bool) {
  12335. this.mlDialog = bool;
  12336. if (
  12337. bool &&
  12338. this.contentDialog &&
  12339. document.querySelector(".workd_media")
  12340. ) {
  12341. document.querySelector(".workd_media").style.height = "650px";
  12342. } else if (document.querySelector(".workd_media")) {
  12343. document.querySelector(".workd_media").style.height = "auto";
  12344. }
  12345. },
  12346. openToolAll() {
  12347. this.toolDialogVisible = true;
  12348. },
  12349. addImg(e) {
  12350. var el = e.currentTarget;
  12351. // this.$message.success('触发上传')
  12352. el.getElementsByTagName("input")[0].click();
  12353. e.target.value = "";
  12354. },
  12355. addSelectAnswer() {
  12356. let params = [
  12357. {
  12358. uid: this.userid,
  12359. cid: this.id,
  12360. stage: this.courseType,
  12361. task: this.taskCount,
  12362. tool: this.toolindex,
  12363. content: this.selectAnswer.answer,
  12364. type: 7,
  12365. },
  12366. ];
  12367. this.ajax
  12368. .post(this.$store.state.api + "addCourseWorks", params)
  12369. .then((res) => {
  12370. this.$message({
  12371. message: "提交成功",
  12372. type: "success",
  12373. });
  12374. this.dialogVisibleSelect = false;
  12375. // this.selectAnswer = {};
  12376. this.selectSWorks();
  12377. this.selectStudent();
  12378. })
  12379. .catch((err) => {
  12380. this.$message.error("提交失败");
  12381. console.error(err);
  12382. });
  12383. },
  12384. addSelectAnswerTeacher() {
  12385. let params = [
  12386. {
  12387. uid: this.sStudent.userid,
  12388. cid: this.id,
  12389. stage: this.courseType,
  12390. task: this.taskCount,
  12391. tool: this.toolindex,
  12392. content: this.selectAnswer.answer,
  12393. type: 7,
  12394. },
  12395. ];
  12396. this.ajax
  12397. .post(this.$store.state.api + "addCourseWorks", params)
  12398. .then((res) => {
  12399. this.$message({
  12400. message: "提交成功",
  12401. type: "success",
  12402. });
  12403. this.dialogVisibleSelectTeacher = false;
  12404. // this.selectAnswer = {};
  12405. this.selectSWorks();
  12406. this.selectStudent();
  12407. })
  12408. .catch((err) => {
  12409. this.$message.error("提交失败");
  12410. console.error(err);
  12411. });
  12412. },
  12413. addSenWorks() {
  12414. for (var i = 0; i < this.sentenceList.length; i++) {
  12415. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12416. if (
  12417. this.sentenceList[i].chooseSenList[j] == undefined ||
  12418. this.sentenceList[i].chooseSenList[j] == ""
  12419. ) {
  12420. this.$message.error("请将答案填写完整!");
  12421. return;
  12422. }
  12423. }
  12424. }
  12425. let params = [
  12426. {
  12427. uid: this.userid,
  12428. cid: this.id,
  12429. stage: this.courseType,
  12430. task: this.taskCount,
  12431. tool: this.toolindex,
  12432. content: JSON.stringify(this.sentenceList),
  12433. type: 9,
  12434. },
  12435. ];
  12436. this.ajax
  12437. .post(this.$store.state.api + "addCourseWorks", params)
  12438. .then((res) => {
  12439. this.$message({
  12440. message: "提交成功",
  12441. type: "success",
  12442. });
  12443. this.dialogVisibleSentence = false;
  12444. // this.selectAnswer = {};
  12445. this.selectSWorks();
  12446. this.selectStudent();
  12447. })
  12448. .catch((err) => {
  12449. this.$message.error("提交失败");
  12450. console.error(err);
  12451. });
  12452. },
  12453. addSenWorksTeacher() {
  12454. for (var i = 0; i < this.sentenceList.length; i++) {
  12455. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12456. if (
  12457. this.sentenceList[i].chooseSenList[j] == undefined ||
  12458. this.sentenceList[i].chooseSenList[j] == ""
  12459. ) {
  12460. this.$message.error("请将答案填写完整!");
  12461. return;
  12462. }
  12463. }
  12464. }
  12465. let params = [
  12466. {
  12467. uid: this.sStudent.userid,
  12468. cid: this.id,
  12469. stage: this.courseType,
  12470. task: this.taskCount,
  12471. tool: this.toolindex,
  12472. content: JSON.stringify(this.sentenceList),
  12473. type: 9,
  12474. },
  12475. ];
  12476. this.ajax
  12477. .post(this.$store.state.api + "addCourseWorks", params)
  12478. .then((res) => {
  12479. this.$message({
  12480. message: "提交成功",
  12481. type: "success",
  12482. });
  12483. this.dialogVisibleSentenceTeacher = false;
  12484. // this.selectAnswer = {};
  12485. this.selectSWorks();
  12486. this.selectStudent();
  12487. })
  12488. .catch((err) => {
  12489. this.$message.error("提交失败");
  12490. console.error(err);
  12491. });
  12492. },
  12493. returnTableText() {
  12494. this.$confirm("确定还原此模板吗?", "提示", {
  12495. confirmButtonText: "确定",
  12496. cancelButtonText: "取消",
  12497. type: "warning",
  12498. })
  12499. .then(() => {
  12500. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12501. })
  12502. .catch(() => {});
  12503. },
  12504. addTableWorks() {
  12505. let params = [
  12506. {
  12507. uid: this.userid,
  12508. cid: this.id,
  12509. stage: this.courseType,
  12510. task: this.taskCount,
  12511. tool: this.toolindex,
  12512. content: JSON.stringify(this.tableJson),
  12513. type: 10,
  12514. },
  12515. ];
  12516. this.ajax
  12517. .post(this.$store.state.api + "addCourseWorks", params)
  12518. .then((res) => {
  12519. this.$message({
  12520. message: "提交成功",
  12521. type: "success",
  12522. });
  12523. this.dialogVisibleTable = false;
  12524. // this.selectAnswer = {};
  12525. this.selectSWorks();
  12526. this.selectStudent();
  12527. })
  12528. .catch((err) => {
  12529. this.$message.error("提交失败");
  12530. console.error(err);
  12531. });
  12532. },
  12533. tableRowClassName({ row, rowIndex }) {
  12534. if ((rowIndex + 1) % 2 === 0) {
  12535. return "even_row";
  12536. } else {
  12537. return "";
  12538. }
  12539. },
  12540. addTableWorksTeacher() {
  12541. let params = [
  12542. {
  12543. uid: this.sStudent.userid,
  12544. cid: this.id,
  12545. stage: this.courseType,
  12546. task: this.taskCount,
  12547. tool: this.toolindex,
  12548. content: JSON.stringify(this.tableJson),
  12549. type: 10,
  12550. },
  12551. ];
  12552. this.ajax
  12553. .post(this.$store.state.api + "addCourseWorks", params)
  12554. .then((res) => {
  12555. this.$message({
  12556. message: "提交成功",
  12557. type: "success",
  12558. });
  12559. this.dialogVisibleTableTeacher = false;
  12560. // this.selectAnswer = {};
  12561. this.selectSWorks();
  12562. this.selectStudent();
  12563. })
  12564. .catch((err) => {
  12565. this.$message.error("提交失败");
  12566. console.error(err);
  12567. });
  12568. },
  12569. returnWordText() {
  12570. this.$confirm("确定还原此模板吗?", "提示", {
  12571. confirmButtonText: "确定",
  12572. cancelButtonText: "取消",
  12573. type: "warning",
  12574. })
  12575. .then(() => {
  12576. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12577. })
  12578. .catch(() => {});
  12579. },
  12580. addWordWorks() {
  12581. let params = [
  12582. {
  12583. uid: this.userid,
  12584. cid: this.id,
  12585. stage: this.courseType,
  12586. task: this.taskCount,
  12587. tool: this.toolindex,
  12588. content: JSON.stringify(this.wordJson),
  12589. type: 13,
  12590. atool: 52,
  12591. },
  12592. ];
  12593. this.ajax
  12594. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12595. .then((res) => {
  12596. this.$message({
  12597. message: "提交成功",
  12598. type: "success",
  12599. });
  12600. this.dialogVisibleWord = false;
  12601. // this.selectAnswer = {};
  12602. this.selectSWorks();
  12603. this.selectStudent();
  12604. })
  12605. .catch((err) => {
  12606. this.$message.error("提交失败");
  12607. console.error(err);
  12608. });
  12609. },
  12610. addWordWorksTeacher() {
  12611. let params = [
  12612. {
  12613. uid: this.sStudent.userid,
  12614. cid: this.id,
  12615. stage: this.courseType,
  12616. task: this.taskCount,
  12617. tool: this.toolindex,
  12618. content: JSON.stringify(this.wordJson),
  12619. type: 13,
  12620. atool: 52,
  12621. },
  12622. ];
  12623. this.ajax
  12624. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12625. .then((res) => {
  12626. this.$message({
  12627. message: "提交成功",
  12628. type: "success",
  12629. });
  12630. this.dialogVisibleWordTeacher = false;
  12631. // this.selectAnswer = {};
  12632. this.selectSWorks();
  12633. this.selectStudent();
  12634. })
  12635. .catch((err) => {
  12636. this.$message.error("提交失败");
  12637. console.error(err);
  12638. });
  12639. },
  12640. addCourseWorks(i) {
  12641. var typesql;
  12642. if (this.fileType === 0) {
  12643. typesql = 1;
  12644. } else if (this.fileType === 1) {
  12645. typesql = 4;
  12646. } else if (this.fileType === 2) {
  12647. typesql = 5;
  12648. } else if (this.fileType === 3) {
  12649. typesql = 12;
  12650. }
  12651. if (!this.studyJuri[0].cover[0].url) {
  12652. this.$message.error("请上传文件");
  12653. return;
  12654. }
  12655. let params = [
  12656. {
  12657. uid: this.userid,
  12658. cid: this.id,
  12659. stage: this.courseType,
  12660. task: i,
  12661. tool: this.toolindex,
  12662. content: this.studyJuri[0].cover[0].url,
  12663. type: typesql,
  12664. },
  12665. ];
  12666. this.ajax
  12667. .post(this.$store.state.api + "addCourseWorksR", params)
  12668. .then((res) => {
  12669. this.$message({
  12670. message: "提交成功",
  12671. type: "success",
  12672. });
  12673. this.studyJuri[0].cover = [];
  12674. this.dialogVisible = false;
  12675. this.getCourseDetail(2);
  12676. })
  12677. .catch((err) => {
  12678. this.$message.error("提交失败");
  12679. console.error(err);
  12680. });
  12681. },
  12682. addCourseWorksPl(i) {
  12683. let _files = this.plworkFile;
  12684. var c = 1;
  12685. for (var k = 0; k < _files.length; k++) {
  12686. if (!_files[k].username) {
  12687. c = 2;
  12688. }
  12689. }
  12690. if (c == 2) {
  12691. this.$message.error("请填写学生姓名");
  12692. return;
  12693. }
  12694. let params = [
  12695. {
  12696. ateacher: this.userid,
  12697. cid: this.id,
  12698. stage: this.courseType,
  12699. task: i,
  12700. tool: this.toolindex,
  12701. content: JSON.stringify(_files),
  12702. },
  12703. ];
  12704. this.ajax
  12705. .post(this.$store.state.api + "addCourseWorksPl", params)
  12706. .then((res) => {
  12707. this.$message({
  12708. message: "提交成功",
  12709. type: "success",
  12710. });
  12711. this.plworkFile = [];
  12712. this.dialogVisiblePl = false;
  12713. this.getCourseDetail(2);
  12714. })
  12715. .catch((err) => {
  12716. this.$message.error("提交失败");
  12717. console.error(err);
  12718. });
  12719. },
  12720. addCourseWorks2(i) {
  12721. var typesql;
  12722. if (this.fileType === 0) {
  12723. typesql = 0;
  12724. } else if (this.fileType === 1) {
  12725. typesql = 1;
  12726. } else if (this.fileType === 2) {
  12727. typesql = 3;
  12728. } else if (this.fileType === 3) {
  12729. typesql = 12;
  12730. }
  12731. if (!this.studyJuri[0].cover[0].url) {
  12732. this.$message.error("请上传文件");
  12733. return;
  12734. }
  12735. let params = [
  12736. {
  12737. uid: this.userid,
  12738. cid: this.id,
  12739. stage: this.courseType,
  12740. task: i,
  12741. tool: this.toolindex,
  12742. content: JSON.stringify({
  12743. type: typesql,
  12744. groupIndex: this.groupIndex,
  12745. url: this.studyJuri[0].cover[0].url,
  12746. }),
  12747. type: 11,
  12748. atool: 49,
  12749. text: "",
  12750. },
  12751. ];
  12752. this.ajax
  12753. .post(this.$store.state.api + "addCourseWorks5", params)
  12754. .then((res) => {
  12755. this.$message({
  12756. message: "提交成功",
  12757. type: "success",
  12758. });
  12759. this.studyJuri[0].cover = [];
  12760. this.dialogVisibleGroupWork = false;
  12761. this.getCourseDetail(2);
  12762. })
  12763. .catch((err) => {
  12764. this.$message.error("提交失败");
  12765. console.error(err);
  12766. });
  12767. },
  12768. addEnglishWork() {
  12769. this.myAnList = this.$refs['engJson'].myAnswerList;
  12770. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12771. this.$message.error("请输入作文标题和正文!");
  12772. return;
  12773. }
  12774. let params = [
  12775. {
  12776. uid: this.userid,
  12777. cid: this.id,
  12778. stage: this.courseType,
  12779. task: this.taskCount,
  12780. tool: this.englishToolIndex,
  12781. content: JSON.stringify(this.myAnList),
  12782. type: 16,
  12783. atool: 69,
  12784. text: "",
  12785. },
  12786. ];
  12787. this.ajax
  12788. .post(this.$store.state.api + "addCourseWorks5", params)
  12789. .then((res) => {
  12790. this.$message({
  12791. message: "提交成功",
  12792. type: "success",
  12793. });
  12794. this.myAnList = {};
  12795. this.englishList = {};
  12796. this.englishToolIndex = 0;
  12797. this.engDialogVisible = false;
  12798. this.selectSWorks();
  12799. this.selectStudent();
  12800. })
  12801. .catch((err) => {
  12802. this.$message.error("提交失败");
  12803. console.error(err);
  12804. });
  12805. },
  12806. addCourseWorksGong(i, data, tool) {
  12807. let params = [
  12808. {
  12809. uid: this.userid,
  12810. cid: this.id,
  12811. stage: this.courseType,
  12812. task: this.taskCount,
  12813. tool: i,
  12814. content: data,
  12815. type: 12,
  12816. atool: tool,
  12817. text: "",
  12818. },
  12819. ];
  12820. this.ajax
  12821. .post(this.$store.state.api + "addCourseWorks5", params)
  12822. .then((res) => {
  12823. this.$message({
  12824. message: "提交成功",
  12825. type: "success",
  12826. });
  12827. this.studyJuri[0].cover = [];
  12828. this.selectSWorks();
  12829. this.selectStudent();
  12830. })
  12831. .catch((err) => {
  12832. this.$message.error("提交失败");
  12833. console.error(err);
  12834. });
  12835. },
  12836. addCourseWorksGongTeacher(i, data, tool) {
  12837. let params = [
  12838. {
  12839. uid: this.sStudent.userid,
  12840. cid: this.id,
  12841. stage: this.courseType,
  12842. task: this.taskCount,
  12843. tool: i,
  12844. content: data,
  12845. type: 12,
  12846. atool: tool,
  12847. text: "",
  12848. },
  12849. ];
  12850. this.ajax
  12851. .post(this.$store.state.api + "addCourseWorks5", params)
  12852. .then((res) => {
  12853. this.$message({
  12854. message: "提交成功",
  12855. type: "success",
  12856. });
  12857. this.studyJuri[0].cover = [];
  12858. this.dialogVisibleWorks = false;
  12859. this.selectSWorks();
  12860. this.selectStudent();
  12861. })
  12862. .catch((err) => {
  12863. this.$message.error("提交失败");
  12864. console.error(err);
  12865. });
  12866. },
  12867. addCourseWorksGongPl(i, data, tool, type) {
  12868. let params = [
  12869. {
  12870. uid: this.sStudent.userid,
  12871. cid: this.id,
  12872. stage: this.courseType,
  12873. task: this.taskCount,
  12874. tool: i,
  12875. content: data,
  12876. type: type,
  12877. atool: tool,
  12878. text: "",
  12879. },
  12880. ];
  12881. this.ajax
  12882. .post(this.$store.state.api + "addCourseWorks5", params)
  12883. .then((res) => {
  12884. this.$message({
  12885. message: "提交成功",
  12886. type: "success",
  12887. });
  12888. this.studyJuri[0].cover = [];
  12889. this.dialogVisibleWorks = false;
  12890. this.selectSWorks();
  12891. this.selectStudent();
  12892. })
  12893. .catch((err) => {
  12894. this.$message.error("提交失败");
  12895. console.error(err);
  12896. });
  12897. },
  12898. addCourseWorksTeacher(i) {
  12899. var typesql;
  12900. if (this.sTool == 32) {
  12901. this.addCourseWorksGongTeacher(
  12902. this.toolindex,
  12903. this.studyJuri[0].cover[0].url,
  12904. this.sTool
  12905. );
  12906. return;
  12907. }
  12908. if (this.fileType === 0) {
  12909. typesql = 1;
  12910. } else if (this.fileType === 1) {
  12911. typesql = 4;
  12912. } else if (this.fileType === 2) {
  12913. typesql = 5;
  12914. } else if (this.fileType === 3) {
  12915. typesql = 12;
  12916. }
  12917. if (this.sTool == 50) {
  12918. this.addCourseWorksGongPl(
  12919. this.toolindex,
  12920. this.studyJuri[0].cover[0].url,
  12921. this.sTool,
  12922. typesql
  12923. );
  12924. return;
  12925. }
  12926. if (!this.studyJuri[0].cover[0].url) {
  12927. this.$message.error("请上传文件");
  12928. return;
  12929. }
  12930. let params = [
  12931. {
  12932. uid: this.sStudent.userid,
  12933. cid: this.id,
  12934. stage: this.courseType,
  12935. task: i,
  12936. tool: this.toolindex,
  12937. content: this.studyJuri[0].cover[0].url,
  12938. type: typesql,
  12939. ateacher: this.userid,
  12940. },
  12941. ];
  12942. this.ajax
  12943. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12944. .then((res) => {
  12945. this.$message({
  12946. message: "提交成功",
  12947. type: "success",
  12948. });
  12949. this.studyJuri[0].cover = [];
  12950. this.dialogVisibleWorks = false;
  12951. this.getCourseDetail(2);
  12952. })
  12953. .catch((err) => {
  12954. this.$message.error("提交失败");
  12955. console.error(err);
  12956. });
  12957. },
  12958. selectUploadStudent(type) {
  12959. const loading = this.$loading.service({
  12960. background: "rgba(255, 255, 255, 0.7)",
  12961. target: document.body,
  12962. });
  12963. let params = {
  12964. cid: this.uploadCid,
  12965. oid: this.oid,
  12966. cn: "",
  12967. };
  12968. this.ajax
  12969. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12970. .then((res) => {
  12971. loading.close();
  12972. var studentK = [];
  12973. if (this.isWorksS[this.toolindex].length > 0) {
  12974. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12975. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12976. }
  12977. studentK = studentK.join(",");
  12978. }
  12979. this.uploadStudentJuri = res.data[0].filter((el) => {
  12980. return studentK.indexOf(el.userid) == -1;
  12981. });
  12982. if (this.worksSName && this.worksSid) {
  12983. this.uploadStudentJuri.push({
  12984. userid: this.worksSid,
  12985. name: this.worksSName,
  12986. });
  12987. }
  12988. if (type == 1) {
  12989. this.plworkFile = [];
  12990. this.dialogVisibleSname = true;
  12991. } else if (type == 2) {
  12992. this.dialogVisiblePl = true;
  12993. }
  12994. })
  12995. .catch((err) => {
  12996. loading.close();
  12997. console.error(err);
  12998. });
  12999. },
  13000. selectPickStudent() {
  13001. const loading = this.$loading.service({
  13002. background: "rgba(255, 255, 255, 0.7)",
  13003. target: document.body,
  13004. });
  13005. let params = {
  13006. cid: this.uploadCid,
  13007. oid: this.oid,
  13008. cn: "",
  13009. };
  13010. this.ajax
  13011. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13012. .then((res) => {
  13013. loading.close();
  13014. this.uploadStudentJuri = res.data[0];
  13015. this.dialogVisiblePickPeople = true;
  13016. })
  13017. .catch((err) => {
  13018. loading.close();
  13019. console.error(err);
  13020. });
  13021. },
  13022. arrayToArray(arrayo, arrayt) {
  13023. let array1 = arrayo;
  13024. let array2 = arrayt;
  13025. let commonElements = [];
  13026. for (let i = 0; i < array1.length; i++) {
  13027. for (let j = 0; j < array2.length; j++) {
  13028. if (array1[i] === array2[j]) {
  13029. commonElements.push(array1[i]);
  13030. }
  13031. }
  13032. }
  13033. return commonElements;
  13034. },
  13035. selectWorksStudent() {
  13036. let params = {
  13037. oid: this.oid,
  13038. cid: this.courseDetail.juri,
  13039. };
  13040. this.ajax
  13041. .get(this.$store.state.api + "selectWorksStudent", params)
  13042. .then((res) => {
  13043. var a = res.data[0];
  13044. for (var i = 0; i < this.isWorksS.length; i++) {
  13045. this.noWorksS[i] = [];
  13046. var studentK = [];
  13047. if (this.isWorksS[i].length > 0) {
  13048. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13049. studentK.push(this.isWorksS[i][z].uid);
  13050. }
  13051. studentK = studentK.join(",");
  13052. for (var j = 0; j < a.length; j++) {
  13053. if (studentK.indexOf(a[j].userid) == -1) {
  13054. if (this.tcid) {
  13055. // a[j].classid.indexOf(this.tcid) != -1
  13056. if (
  13057. this.arrayToArray(
  13058. a[j].classid.split(","),
  13059. this.tcid.split(",")
  13060. ).length
  13061. ) {
  13062. this.noWorksS[i].push({
  13063. student: a[j].name,
  13064. userid: a[j].userid,
  13065. });
  13066. }
  13067. } else {
  13068. this.noWorksS[i].push({
  13069. student: a[j].name,
  13070. userid: a[j].userid,
  13071. });
  13072. }
  13073. }
  13074. }
  13075. } else {
  13076. for (var k = 0; k < a.length; k++) {
  13077. if (this.tcid) {
  13078. if (
  13079. this.arrayToArray(
  13080. a[k].classid.split(","),
  13081. this.tcid.split(",")
  13082. ).length
  13083. ) {
  13084. this.noWorksS[i].push({
  13085. student: a[k].name,
  13086. userid: a[k].userid,
  13087. });
  13088. }
  13089. } else {
  13090. this.noWorksS[i].push({
  13091. student: a[k].name,
  13092. userid: a[k].userid,
  13093. });
  13094. }
  13095. }
  13096. }
  13097. }
  13098. this.$forceUpdate();
  13099. if (
  13100. Object.keys(this.commentDetail).length &&
  13101. Object.keys(this.commentIndexJson).length &&
  13102. !this.dialogVisibleScore
  13103. ) {
  13104. let a = 1;
  13105. let c = this.commentIndexJson;
  13106. if (
  13107. this.commentIndexJson.gindex ||
  13108. this.commentIndexJson.gindex === 0
  13109. ) {
  13110. for (
  13111. var i = 0;
  13112. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13113. i++
  13114. ) {
  13115. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13116. groupA: for (var k = 0; k < _el.length; k++) {
  13117. let el = _el[k];
  13118. if (el.wid == this.commentDetail.wid) {
  13119. a = 2;
  13120. this.commentOther(
  13121. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13122. this.commentIndexJson.toolIndex,
  13123. k,
  13124. this.commentIndexJson.gindex
  13125. );
  13126. break groupA;
  13127. }
  13128. }
  13129. }
  13130. if (a === 1) {
  13131. this.commentDetail = [];
  13132. this.commentIndexJson = {};
  13133. this.commentDialogVisible = false;
  13134. this.$message("此作业已被删除");
  13135. }
  13136. } else {
  13137. if (this.isGroup && this.commentIndexJson.gid) {
  13138. groupA: for (
  13139. var i = 0;
  13140. i < this.courseGroup.group.length;
  13141. i++
  13142. ) {
  13143. let _group = this.courseGroup.group[i];
  13144. if (_group.id == this.commentIndexJson.gid) {
  13145. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13146. for (var k = 0; k < _el2.length; k++) {
  13147. let el2 = _el2[k];
  13148. if (el2.wid == this.commentDetail.wid) {
  13149. a = 2;
  13150. this.commentOther(
  13151. _el2[k],
  13152. this.commentIndexJson.toolIndex,
  13153. k,
  13154. null,
  13155. this.commentIndexJson.gid
  13156. );
  13157. break groupA;
  13158. }
  13159. }
  13160. }
  13161. }
  13162. }
  13163. if (a == 1) {
  13164. for (
  13165. var i = 0;
  13166. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13167. i++
  13168. ) {
  13169. let el =
  13170. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13171. if (el.wid == this.commentDetail.wid) {
  13172. a = 2;
  13173. this.commentOther(
  13174. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13175. this.commentIndexJson.toolIndex,
  13176. i
  13177. );
  13178. break;
  13179. }
  13180. }
  13181. }
  13182. if (a === 1) {
  13183. this.commentDetail = [];
  13184. this.commentIndexJson = {};
  13185. this.commentDialogVisible = false;
  13186. this.$message("此作业已被删除");
  13187. }
  13188. }
  13189. }
  13190. })
  13191. .catch((err) => {
  13192. console.error(err);
  13193. });
  13194. },
  13195. selectStudent() {
  13196. //学生查看自己作业
  13197. let params = {
  13198. uid: this.userid,
  13199. cid: this.id,
  13200. s: this.courseType,
  13201. t: this.taskCount,
  13202. };
  13203. this.ajax
  13204. .get(this.$store.state.api + "selectStudentWorks", params)
  13205. .then((res) => {
  13206. var a =
  13207. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13208. this.taskCount
  13209. ].toolChoose;
  13210. var b = res.data[0];
  13211. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13212. var y = [
  13213. "AVI",
  13214. "NAVI",
  13215. "MPEG",
  13216. "ASF",
  13217. "MOV",
  13218. "WMV",
  13219. "3GP",
  13220. "RM",
  13221. "RMVB",
  13222. "FLV",
  13223. "F4V",
  13224. "H.264",
  13225. "H.265",
  13226. "REAL VIDEO",
  13227. "MKV",
  13228. "WebM",
  13229. "HDDVD",
  13230. "MP4",
  13231. "MPG",
  13232. "M4V",
  13233. "MGV",
  13234. "OGV",
  13235. "QTM",
  13236. "STR",
  13237. "AMC",
  13238. "DVX",
  13239. "EVO",
  13240. "DAT",
  13241. "OGG",
  13242. "OGM",
  13243. ];
  13244. for (var i = 0; i < a.length; i++) {
  13245. this.workStudent[i] = [];
  13246. for (var j = 0; j < b.length; j++) {
  13247. if (i == b[j].tool) {
  13248. if (
  13249. (b[j].type == 1 ||
  13250. b[j].type == 4 ||
  13251. b[j].type == 5 ||
  13252. b[j].type == 6 ||
  13253. b[j].type == 12 ||
  13254. b[j].type == 7) &&
  13255. a[i].tool[0] != 15 &&
  13256. a[i].tool[0] != 4 &&
  13257. a[i].tool[0] != 45 &&
  13258. a[i].tool[0] != 50 &&
  13259. a[i].tool[0] != 32 &&
  13260. a[i].tool[0] != 57 &&
  13261. a[i].tool[0] != 52 &&
  13262. a[i].tool[0] != 69
  13263. ) {
  13264. if (
  13265. c.indexOf(
  13266. b[j].content
  13267. .split(".")
  13268. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13269. ) != -1 &&
  13270. a[i].tool[0] == 16 &&
  13271. b[j].atool != 50
  13272. ) {
  13273. this.workStudent[i].push({
  13274. works: b[j].content,
  13275. sName: b[j].name,
  13276. score: b[j].score,
  13277. img: b[j].img,
  13278. type: 1,
  13279. time: b[j].time,
  13280. userid: b[j].userid,
  13281. wid: b[j].id,
  13282. });
  13283. } else if (
  13284. y.indexOf(
  13285. b[j].content
  13286. .split(".")
  13287. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13288. ) != -1 &&
  13289. a[i].tool[0] == 16 &&
  13290. b[j].atool != 50
  13291. ) {
  13292. this.workStudent[i].push({
  13293. userid: b[j].userid,
  13294. wid: b[j].id,
  13295. works: b[j].content,
  13296. sName: b[j].name,
  13297. score: b[j].score,
  13298. img: b[j].img,
  13299. type: 3,
  13300. time: b[j].time,
  13301. });
  13302. } else if (b[j].type == 6 && b[j].atool != 50) {
  13303. this.workStudent[i].push({
  13304. userid: b[j].userid,
  13305. wid: b[j].id,
  13306. works: b[j].content,
  13307. sName: b[j].name,
  13308. score: b[j].score,
  13309. img: b[j].img,
  13310. type: 4,
  13311. time: b[j].time,
  13312. });
  13313. } else if (b[j].type == 7 && b[j].atool != 50) {
  13314. this.workStudent[i].push({
  13315. userid: b[j].userid,
  13316. wid: b[j].id,
  13317. works: b[j].content,
  13318. sName: b[j].name,
  13319. score: b[j].score,
  13320. img: b[j].img,
  13321. type: 5,
  13322. time: b[j].time,
  13323. });
  13324. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13325. this.workStudent[i].push({
  13326. works: b[j].content,
  13327. sName: b[j].name,
  13328. score: b[j].score,
  13329. img: b[j].img,
  13330. type: 12,
  13331. time: b[j].time,
  13332. userid: b[j].userid,
  13333. wid: b[j].id,
  13334. });
  13335. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13336. this.workStudent[i].push({
  13337. works: b[j].content,
  13338. sName: b[j].name,
  13339. score: b[j].score,
  13340. img: b[j].img,
  13341. type: 0,
  13342. time: b[j].time,
  13343. userid: b[j].userid,
  13344. wid: b[j].id,
  13345. });
  13346. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13347. this.workStudent[i].push({
  13348. works: b[j].content,
  13349. sName: b[j].name,
  13350. score: b[j].score,
  13351. img: b[j].img,
  13352. type: 0,
  13353. time: b[j].time,
  13354. userid: b[j].userid,
  13355. wid: b[j].id,
  13356. });
  13357. }
  13358. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13359. this.workStudent[i].push({
  13360. works: b[j].content,
  13361. sName: b[j].name,
  13362. score: b[j].score,
  13363. img: b[j].img,
  13364. type: 2,
  13365. time: b[j].time,
  13366. userid: b[j].userid,
  13367. wid: b[j].id,
  13368. });
  13369. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13370. //问卷
  13371. this.workStudent[i].push({
  13372. works: b[j].content,
  13373. sName: b[j].name,
  13374. score: b[j].score,
  13375. img: b[j].img,
  13376. type: 2,
  13377. time: b[j].time,
  13378. userid: b[j].userid,
  13379. wid: b[j].id,
  13380. });
  13381. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13382. //选择题
  13383. this.workStudent[i].push({
  13384. works: b[j].content,
  13385. sName: b[j].name,
  13386. score: b[j].score,
  13387. img: b[j].img,
  13388. type: 8,
  13389. time: b[j].time,
  13390. userid: b[j].userid,
  13391. wid: b[j].id,
  13392. });
  13393. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13394. //选择题
  13395. this.workStudent[i].push({
  13396. works: b[j].content,
  13397. sName: b[j].name,
  13398. score: b[j].score,
  13399. img: b[j].img,
  13400. type: 9,
  13401. time: b[j].time,
  13402. userid: b[j].userid,
  13403. wid: b[j].id,
  13404. });
  13405. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13406. //选择题
  13407. this.workStudent[i].push({
  13408. works: b[j].content,
  13409. sName: b[j].name,
  13410. score: b[j].score,
  13411. img: b[j].img,
  13412. type: 10,
  13413. time: b[j].time,
  13414. userid: b[j].userid,
  13415. wid: b[j].id,
  13416. });
  13417. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13418. //选择题
  13419. this.workStudent[i].push({
  13420. works: b[j].content,
  13421. sName: b[j].name,
  13422. score: b[j].score,
  13423. img: b[j].img,
  13424. type: 13,
  13425. time: b[j].time,
  13426. userid: b[j].userid,
  13427. wid: b[j].id,
  13428. });
  13429. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13430. //选择题
  13431. this.workStudent[i].push({
  13432. works: b[j].content,
  13433. sName: b[j].name,
  13434. score: b[j].score,
  13435. img: b[j].img,
  13436. type: 12,
  13437. time: b[j].time,
  13438. userid: b[j].userid,
  13439. wid: b[j].id,
  13440. });
  13441. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13442. //选择题
  13443. this.workStudent[i].push({
  13444. works: b[j].content,
  13445. sName: b[j].name,
  13446. score: b[j].score,
  13447. img: b[j].img,
  13448. type: 12,
  13449. time: b[j].time,
  13450. userid: b[j].userid,
  13451. wid: b[j].id,
  13452. });
  13453. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13454. //选择题
  13455. this.workStudent[i].push({
  13456. works: b[j].content,
  13457. sName: b[j].name,
  13458. score: b[j].score,
  13459. img: b[j].img,
  13460. type: 15,
  13461. time: b[j].time,
  13462. userid: b[j].userid,
  13463. wid: b[j].id,
  13464. });
  13465. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13466. //英语写作
  13467. this.workStudent[i].push({
  13468. works: b[j].content,
  13469. sName: b[j].name,
  13470. score: b[j].score,
  13471. img: b[j].img,
  13472. type: 16,
  13473. time: b[j].time,
  13474. userid: b[j].userid,
  13475. wid: b[j].id,
  13476. aiCode: b[j].aiCode,
  13477. teacherCode: b[j].teacherCode
  13478. });
  13479. }
  13480. }
  13481. }
  13482. }
  13483. })
  13484. .catch((err) => {
  13485. console.error(err);
  13486. });
  13487. },
  13488. openVideo(w) {
  13489. this.videoDetail = {};
  13490. this.playerOptions1.sources[0].src = w.works;
  13491. this.videoDetail = this.playerOptions1;
  13492. this.videoVisible = true;
  13493. },
  13494. isLikes(wid, uid, t, c, isLikes) {
  13495. if (isLikes == false) {
  13496. let params = [
  13497. {
  13498. wid: wid,
  13499. lid: uid,
  13500. t: t,
  13501. c: c,
  13502. },
  13503. ];
  13504. this.ajax
  13505. .post(this.$store.state.api + "insertComment", params)
  13506. .then((res) => {
  13507. this.$message({
  13508. message: "点赞成功",
  13509. type: "success",
  13510. });
  13511. this.selectSWorks();
  13512. this.selectStudent();
  13513. })
  13514. .catch((err) => {
  13515. this.$message.error("点赞失败");
  13516. console.error(err);
  13517. });
  13518. } else {
  13519. let params = {
  13520. wid: wid,
  13521. lid: uid,
  13522. type: t,
  13523. };
  13524. this.ajax
  13525. .get(this.$store.state.api + "deleteComment", params)
  13526. .then((res) => {
  13527. this.$message({
  13528. message: "取消点赞成功",
  13529. type: "success",
  13530. });
  13531. this.selectSWorks();
  13532. this.selectStudent();
  13533. })
  13534. .catch((err) => {
  13535. console.error(err);
  13536. });
  13537. }
  13538. },
  13539. deleteComment(wid) {
  13540. this.$confirm("确定删除此评论吗?", "提示", {
  13541. confirmButtonText: "确定",
  13542. cancelButtonText: "取消",
  13543. type: "warning",
  13544. })
  13545. .then(() => {
  13546. let params = {
  13547. id: wid,
  13548. };
  13549. this.ajax
  13550. .get(this.$store.state.api + "deleteComment2", params)
  13551. .then((res) => {
  13552. this.$message({
  13553. message: "删除评论成功",
  13554. type: "success",
  13555. });
  13556. this.selectSWorks();
  13557. this.selectStudent();
  13558. })
  13559. .catch((err) => {
  13560. console.error(err);
  13561. });
  13562. })
  13563. .catch(() => {});
  13564. },
  13565. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13566. this.commentIndexJson = {
  13567. toolIndex: toolIndex,
  13568. wIndex: wIndex,
  13569. gindex: gindex,
  13570. gid: gid,
  13571. };
  13572. this.commentDetail = [];
  13573. this.commentDialogVisible = true;
  13574. this.commentDetail = w;
  13575. if (w.works && w.type == 1) {
  13576. this.pptImgUrl = "";
  13577. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13578. if (
  13579. a.indexOf(
  13580. w.works
  13581. .split(".")
  13582. [w.works.split(".").length - 1].toLocaleUpperCase()
  13583. ) != -1
  13584. ) {
  13585. this.pptImgUrl =
  13586. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13587. this.showPDF = false;
  13588. } else if (
  13589. w.works
  13590. .split(".")
  13591. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13592. ) {
  13593. this.pptImgUrl = w.works;
  13594. this.showPDF = true;
  13595. }
  13596. } else if (w.works && w.type == 3) {
  13597. this.videoDetail = {};
  13598. this.playerOptions1.sources[0].src = w.works;
  13599. this.videoDetail = this.playerOptions1;
  13600. // this.videoVisible = true;
  13601. } else if (w.works && w.type == 4) {
  13602. this.eScore = JSON.parse(w.works);
  13603. this.rateJson =
  13604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13605. this.taskCount
  13606. ].toolChoose[toolIndex].rateJson;
  13607. } else if (w.works && w.type == 10) {
  13608. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13609. } else if (w.works && w.type == 13) {
  13610. this.wordJson =
  13611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13612. this.taskCount
  13613. ].toolChoose[toolIndex].wordJson;
  13614. }
  13615. },
  13616. openScore(w) {
  13617. this.wScore = 0;
  13618. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13619. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13620. this.commentDetail = [];
  13621. this.dialogVisibleScore = true;
  13622. this.commentDetail = w;
  13623. if (w.works && w.type == 1) {
  13624. this.pptImgUrl = "";
  13625. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13626. if (
  13627. a.indexOf(
  13628. w.works
  13629. .split(".")
  13630. [w.works.split(".").length - 1].toLocaleUpperCase()
  13631. ) != -1
  13632. ) {
  13633. this.pptImgUrl =
  13634. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13635. this.showPDF = false;
  13636. } else if (
  13637. w.works
  13638. .split(".")
  13639. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13640. ) {
  13641. this.pptImgUrl = w.works;
  13642. this.showPDF = true;
  13643. }
  13644. } else if (w.works && w.type == 3) {
  13645. this.videoDetail = {};
  13646. this.playerOptions1.sources[0].src = w.works;
  13647. this.videoDetail = this.playerOptions1;
  13648. }
  13649. },
  13650. addComment(wid, uid, t) {
  13651. if (this.commentText == "") {
  13652. this.$message.error("请输入评论");
  13653. return;
  13654. }
  13655. let params2 = [
  13656. {
  13657. wid: wid,
  13658. lid: uid,
  13659. t: t,
  13660. },
  13661. ];
  13662. this.ajax
  13663. .post(this.$store.state.api + "getComment", params2)
  13664. .then((res) => {
  13665. if (res.data[0].length > 0) {
  13666. this.$message.error("一个作业只能评论一条");
  13667. } else {
  13668. let params = [
  13669. {
  13670. wid: wid,
  13671. lid: uid,
  13672. t: t,
  13673. c: this.commentText,
  13674. },
  13675. ];
  13676. this.ajax
  13677. .post(this.$store.state.api + "insertComment", params)
  13678. .then((res) => {
  13679. this.$message({
  13680. message: "评论成功",
  13681. type: "success",
  13682. });
  13683. this.commentText = "";
  13684. this.selectSWorks();
  13685. this.selectStudent();
  13686. })
  13687. .catch((err) => {
  13688. this.$message.error("评论失败");
  13689. console.error(err);
  13690. });
  13691. }
  13692. })
  13693. .catch((err) => {
  13694. // this.$message.error("评论失败");
  13695. console.error(err);
  13696. });
  13697. },
  13698. scoreWork(wid) {
  13699. if (this.wScore == 0) {
  13700. this.$message.error("请评分");
  13701. return;
  13702. }
  13703. let params = [
  13704. {
  13705. wid: wid,
  13706. score: JSON.stringify({
  13707. wScore: this.wScore,
  13708. detail: this.scoreDetail,
  13709. }),
  13710. },
  13711. ];
  13712. this.ajax
  13713. .post(this.$store.state.api + "scoreWork", params)
  13714. .then((res) => {
  13715. this.$message({
  13716. message: "评分成功",
  13717. type: "success",
  13718. });
  13719. this.wScore = 0;
  13720. this.scoreDetail = "";
  13721. this.dialogVisibleScore = false;
  13722. this.selectSWorks();
  13723. this.selectStudent();
  13724. })
  13725. .catch((err) => {
  13726. this.$message.error("评分失败");
  13727. console.error(err);
  13728. });
  13729. },
  13730. openXz(w, i) {
  13731. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13732. .taskJson[this.taskCount].toolChoose[i].selectJson
  13733. ? JSON.parse(
  13734. JSON.stringify(
  13735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13736. this.taskCount
  13737. ].toolChoose[i].selectJson
  13738. )
  13739. )
  13740. : { url: "", select: [], answer: [] };
  13741. var a = w.works.split(",");
  13742. for (var k = 0; k < a.length; k++) {
  13743. a[k] = parseInt(a[k]);
  13744. }
  13745. this.selectAnswer = { answer: a, stu: w.sName };
  13746. this.isSelect = true;
  13747. this.dialogVisibleSelect = true;
  13748. },
  13749. openSen(w, i) {
  13750. this.sentenceList1 = JSON.parse(w.works);
  13751. this.sentenceList1.stuName = w.sName;
  13752. this.dialogVisibleSentence1 = true;
  13753. },
  13754. openPj(w, toolindex) {
  13755. this.isStar = true;
  13756. this.eScore = JSON.parse(w);
  13757. this.rateJson =
  13758. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13759. this.taskCount
  13760. ].toolChoose[toolindex].rateJson;
  13761. this.studentEvalDialogVisible = true;
  13762. },
  13763. openEnglishEva(id,i){
  13764. let params = {
  13765. wid: id
  13766. };
  13767. this.ajax
  13768. .get(this.$store.state.api + "selectEngWork", params)
  13769. .then((res) => {
  13770. this.evaEngJson.message = res.data[0][0];
  13771. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13772. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13773. .toolChoose[i].englishList;
  13774. this.engEvaDialogVisible = true;
  13775. })
  13776. .catch((err) => {
  13777. console.error(err);
  13778. });
  13779. },
  13780. deleteWorks(id) {
  13781. this.$confirm("确定删除此作业吗?", "提示", {
  13782. confirmButtonText: "确定",
  13783. cancelButtonText: "取消",
  13784. type: "warning",
  13785. })
  13786. .then(() => {
  13787. let params = [
  13788. {
  13789. id: id,
  13790. },
  13791. ];
  13792. this.ajax
  13793. .post(this.$store.state.api + "deleteCourseWork", params)
  13794. .then((res) => {
  13795. this.$message({
  13796. message: "删除成功",
  13797. type: "success",
  13798. });
  13799. this.selectStudent();
  13800. this.selectSWorks();
  13801. this.selectSLook();
  13802. })
  13803. .catch((err) => {
  13804. this.$message.error("网络异常");
  13805. console.error(err);
  13806. });
  13807. })
  13808. .catch(() => {});
  13809. },
  13810. selectSWorks(gindex) {
  13811. //教师查看全部作业
  13812. let params = {
  13813. cid: this.id,
  13814. s: this.courseType,
  13815. t: this.taskCount,
  13816. };
  13817. this.ajax
  13818. .get(this.$store.state.api + "selectSWorks", params)
  13819. .then((res) => {
  13820. var a =
  13821. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13822. this.taskCount
  13823. ].toolChoose;
  13824. var b = res.data[0];
  13825. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13826. var y = [
  13827. "AVI",
  13828. "NAVI",
  13829. "MPEG",
  13830. "ASF",
  13831. "MOV",
  13832. "WMV",
  13833. "3GP",
  13834. "RM",
  13835. "RMVB",
  13836. "FLV",
  13837. "F4V",
  13838. "H.264",
  13839. "H.265",
  13840. "REAL VIDEO",
  13841. "MKV",
  13842. "WebM",
  13843. "HDDVD",
  13844. "MP4",
  13845. "MPG",
  13846. "M4V",
  13847. "MGV",
  13848. "OGV",
  13849. "QTM",
  13850. "STR",
  13851. "AMC",
  13852. "DVX",
  13853. "EVO",
  13854. "DAT",
  13855. "OGG",
  13856. "OGM",
  13857. ];
  13858. var d = res.data[1];
  13859. var e = res.data[2];
  13860. var f = res.data[3];
  13861. let _worksStudent = [];
  13862. var _worksStudent2 = [];
  13863. for (var i = 0; i < a.length; i++) {
  13864. _worksStudent[i] = [];
  13865. _worksStudent2[i] = [];
  13866. if (
  13867. !this.isCloseList[i] ||
  13868. this.isCloseList[i].isClose == undefined
  13869. ) {
  13870. this.isCloseList[i] = { isClose: 0 };
  13871. }
  13872. this.groupStudent[i] = [];
  13873. this.groupStudentUid[i] = [];
  13874. if (this.isGroup) {
  13875. for (
  13876. var groupI = 0;
  13877. groupI < this.courseGroup.group.length;
  13878. groupI++
  13879. ) {
  13880. this.courseGroup.group[groupI].works[i] = [];
  13881. }
  13882. }
  13883. this.isWorksS[i] = [];
  13884. this.checkJson[i] = [];
  13885. if (a[i].tool[0] == 49) {
  13886. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13887. this.groupStudent[i][gA] = [];
  13888. this.groupStudentUid[i][gA] = [];
  13889. _worksStudent[i][gA] = [];
  13890. _worksStudent2[i][gA] = [];
  13891. this.isCloseList[i][gA] = [];
  13892. for (var g = 0; g < f.length; g++) {
  13893. if (
  13894. f[g].ttype == 2 &&
  13895. this.tcid &&
  13896. this.arrayToArray(
  13897. (f[g].classid ? f[g].classid.split(",") : []),
  13898. this.tcid.split(",")
  13899. ).length == 0
  13900. ) {
  13901. continue;
  13902. }
  13903. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  13904. (f[g].classid ? f[g].classid.split(",") : []),
  13905. this.tcid.split(",")
  13906. ).length !== 0 || this.arrayToArray(
  13907. (f[g].classid ? f[g].classid.split(",") : []),
  13908. this.classId ? this.classId.split(",") : []
  13909. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  13910. this.groupStudent[i][gA].push(f[g]);
  13911. this.groupStudentUid[i][gA].push(f[g].userid);
  13912. }
  13913. }
  13914. }
  13915. this.$forceUpdate();
  13916. }
  13917. for (var j = 0; j < b.length; j++) {
  13918. if (
  13919. b[j].ttype == 2 &&
  13920. this.tcid &&
  13921. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13922. .length == 0
  13923. ) {
  13924. continue;
  13925. }
  13926. var likesCount = 0;
  13927. var commentCount = 0;
  13928. var isLikes = false;
  13929. var commentJson = [];
  13930. var data = b[j];
  13931. if (i == b[j].tool) {
  13932. if (data.type == 2 && a[i].tool[0] == 4) {
  13933. // if(JSON.parse(data.content)[0].anwer){
  13934. var checkL =
  13935. JSON.parse(data.content)[0].anwer instanceof Array
  13936. ? JSON.parse(data.content)[0].anwer
  13937. : JSON.parse(data.content)[0].anwer.split(",");
  13938. for (var z = 0; z < checkL.length; z++) {
  13939. if (!this.checkJson[i][z]) {
  13940. this.checkJson[i].push({
  13941. checkCount: [],
  13942. checkPerson: [],
  13943. rightPerson: [],
  13944. });
  13945. }
  13946. if (!this.checkJson[i][z].checkCount.length) {
  13947. this.checkJson[i][z].checkCount = [];
  13948. let _askItemCount = JSON.parse(data.content)[0].askJson
  13949. .askJson[z].askItem;
  13950. for (var aic = 0; aic < _askItemCount; aic++) {
  13951. this.checkJson[i][z].checkCount.push(0);
  13952. }
  13953. }
  13954. if (checkL[z] instanceof Array) {
  13955. if (
  13956. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13957. checkL[z].sort().join(",")
  13958. ) {
  13959. this.checkJson[i][z].rightPerson.push(data.name);
  13960. }
  13961. for (var q = 0; q < checkL[z].length; q++) {
  13962. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13963. ? this.checkJson[i][z].checkPerson[
  13964. parseInt(checkL[z][q])
  13965. ].push(data.name)
  13966. : (this.checkJson[i][z].checkPerson[
  13967. parseInt(checkL[z][q])
  13968. ] = [data.name]);
  13969. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13970. ? this.checkJson[i][z].checkCount[
  13971. parseInt(checkL[z][q])
  13972. ]++
  13973. : (this.checkJson[i][z].checkCount[
  13974. parseInt(checkL[z][q])
  13975. ] = 1);
  13976. }
  13977. } else {
  13978. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13979. this.checkJson[i][z].rightPerson.push(data.name);
  13980. }
  13981. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13982. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13983. ? this.checkJson[i][z].checkPerson[
  13984. parseInt(checkL[z])
  13985. ].push(data.name)
  13986. : (this.checkJson[i][z].checkPerson[
  13987. parseInt(checkL[z])
  13988. ] = [data.name]);
  13989. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13990. ? this.checkJson[i][z].checkCount[
  13991. parseInt(checkL[z])
  13992. ]++
  13993. : (this.checkJson[i][z].checkCount[
  13994. parseInt(checkL[z])
  13995. ] = 1);
  13996. }
  13997. }
  13998. }
  13999. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14000. var checkL = JSON.parse(data.content)[0].anwer;
  14001. for (var z = 0; z < checkL.length; z++) {
  14002. if (!this.checkJson[i][z]) {
  14003. this.checkJson[i].push({
  14004. checkCount: [],
  14005. checkPerson: [],
  14006. rightPerson: [],
  14007. });
  14008. }
  14009. if (!this.checkJson[i][z].checkCount.length) {
  14010. this.checkJson[i][z].checkCount = [];
  14011. let _askItemCount = JSON.parse(data.content)[0].testJson
  14012. .testJson[z].testItem;
  14013. for (var aic = 0; aic < _askItemCount; aic++) {
  14014. this.checkJson[i][z].checkCount.push(0);
  14015. }
  14016. }
  14017. if (checkL[z] instanceof Array) {
  14018. if (
  14019. JSON.parse(data.content)[0]
  14020. .testJson.testJson[z].answer.sort()
  14021. .join(",") == checkL[z].sort().join(",")
  14022. ) {
  14023. this.checkJson[i][z].rightPerson.push(data.name);
  14024. }
  14025. for (var q = 0; q < checkL[z].length; q++) {
  14026. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14027. ? this.checkJson[i][z].checkPerson[
  14028. parseInt(checkL[z][q])
  14029. ].push(data.name)
  14030. : (this.checkJson[i][z].checkPerson[
  14031. parseInt(checkL[z][q])
  14032. ] = [data.name]);
  14033. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14034. ? this.checkJson[i][z].checkCount[
  14035. parseInt(checkL[z][q])
  14036. ]++
  14037. : (this.checkJson[i][z].checkCount[
  14038. parseInt(checkL[z][q])
  14039. ] = 1);
  14040. }
  14041. } else {
  14042. if (
  14043. JSON.parse(data.content)[0].testJson.testJson[z]
  14044. .answer == checkL[z]
  14045. ) {
  14046. this.checkJson[i][z].rightPerson.push(data.name);
  14047. }
  14048. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14049. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14050. ? this.checkJson[i][z].checkPerson[
  14051. parseInt(checkL[z])
  14052. ].push(data.name)
  14053. : (this.checkJson[i][z].checkPerson[
  14054. parseInt(checkL[z])
  14055. ] = [data.name]);
  14056. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14057. ? this.checkJson[i][z].checkCount[
  14058. parseInt(checkL[z])
  14059. ]++
  14060. : (this.checkJson[i][z].checkCount[
  14061. parseInt(checkL[z])
  14062. ] = 1);
  14063. }
  14064. }
  14065. }
  14066. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14067. var checkL = JSON.parse(data.content);
  14068. for (var z = 0; z < checkL.length; z++) {
  14069. if (!this.checkJson[i][z]) {
  14070. this.checkJson[i].push({
  14071. checkCount: [],
  14072. checkPerson: [],
  14073. rightPerson: [],
  14074. });
  14075. }
  14076. this.checkJson[i][z].checkPerson.push(data.name);
  14077. if (
  14078. checkL[z].chooseSenList.toString() ==
  14079. checkL[z].rightAnswer.toString()
  14080. ) {
  14081. this.checkJson[i][z].rightPerson.push(data.name);
  14082. }
  14083. }
  14084. }
  14085. for (var k = 0; k < d.length; k++) {
  14086. //点赞
  14087. if (d[k].workId == b[j].id) {
  14088. likesCount++;
  14089. if (d[k].likesId == this.userid) {
  14090. isLikes = true;
  14091. }
  14092. }
  14093. }
  14094. for (var l = 0; l < e.length; l++) {
  14095. //评论
  14096. if (e[l].workId == b[j].id) {
  14097. if (e[l].comment != "") {
  14098. commentCount++;
  14099. commentJson.push({
  14100. commentText: e[l].comment,
  14101. commentTime: e[l].commentTime,
  14102. commentPeople: e[l].commentPeople,
  14103. userid: e[l].userid,
  14104. wid: e[l].id,
  14105. });
  14106. }
  14107. }
  14108. }
  14109. if (
  14110. (b[j].type == 1 ||
  14111. b[j].type == 4 ||
  14112. b[j].type == 5 ||
  14113. b[j].type == 6 ||
  14114. b[j].type == 12 ||
  14115. b[j].type == 7) &&
  14116. a[i].tool[0] != 15 &&
  14117. a[i].tool[0] != 4 &&
  14118. a[i].tool[0] != 45 &&
  14119. a[i].tool[0] != 50 &&
  14120. a[i].tool[0] != 32 &&
  14121. a[i].tool[0] != 57 &&
  14122. a[i].tool[0] != 52
  14123. ) {
  14124. if (
  14125. c.indexOf(
  14126. b[j].content
  14127. .split(".")
  14128. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14129. ) != -1 &&
  14130. a[i].tool[0] == 16 &&
  14131. b[j].atool != 50
  14132. ) {
  14133. let _works = {
  14134. userid: b[j].userid,
  14135. ateacher: b[j].ateacher,
  14136. wid: b[j].id,
  14137. works: b[j].content,
  14138. sName: b[j].name,
  14139. type: 1,
  14140. time: b[j].time,
  14141. score: b[j].score,
  14142. img: b[j].img,
  14143. likesCount: likesCount,
  14144. commentCount: commentCount,
  14145. isLikes: isLikes,
  14146. commentJson: commentJson,
  14147. };
  14148. if (this.isGroup) {
  14149. let isGw = 1;
  14150. for (
  14151. var groupI = 0;
  14152. groupI < this.courseGroup.group.length;
  14153. groupI++
  14154. ) {
  14155. let gid = this.courseGroup.group[groupI].id;
  14156. if (
  14157. this.courseGroupStudentUid[gid].indexOf(
  14158. b[j].userid
  14159. ) != -1
  14160. ) {
  14161. isGw = 2;
  14162. this.courseGroup.group[groupI].works[i].push(_works);
  14163. break;
  14164. }
  14165. }
  14166. if (isGw == 1) {
  14167. _worksStudent[i].push(_works);
  14168. }
  14169. } else {
  14170. _worksStudent[i].push(_works);
  14171. }
  14172. _worksStudent2[i].push(_works);
  14173. this.isWorksS[i].push({
  14174. uid: b[j].userid,
  14175. sName: b[j].name,
  14176. });
  14177. } else if (
  14178. y.indexOf(
  14179. b[j].content
  14180. .split(".")
  14181. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14182. ) != -1 &&
  14183. a[i].tool[0] == 16 &&
  14184. b[j].atool != 50
  14185. ) {
  14186. let _works = {
  14187. userid: b[j].userid,
  14188. ateacher: b[j].ateacher,
  14189. wid: b[j].id,
  14190. works: b[j].content,
  14191. sName: b[j].name,
  14192. type: 3,
  14193. time: b[j].time,
  14194. score: b[j].score,
  14195. img: b[j].img,
  14196. likesCount: likesCount,
  14197. commentCount: commentCount,
  14198. isLikes: isLikes,
  14199. commentJson: commentJson,
  14200. };
  14201. if (this.isGroup) {
  14202. let isGw = 1;
  14203. for (
  14204. var groupI = 0;
  14205. groupI < this.courseGroup.group.length;
  14206. groupI++
  14207. ) {
  14208. let gid = this.courseGroup.group[groupI].id;
  14209. if (
  14210. this.courseGroupStudentUid[gid].indexOf(
  14211. b[j].userid
  14212. ) != -1
  14213. ) {
  14214. isGw = 2;
  14215. this.courseGroup.group[groupI].works[i].push(_works);
  14216. break;
  14217. }
  14218. }
  14219. if (isGw == 1) {
  14220. _worksStudent[i].push(_works);
  14221. }
  14222. } else {
  14223. _worksStudent[i].push(_works);
  14224. }
  14225. _worksStudent2[i].push(_works);
  14226. this.isWorksS[i].push({
  14227. uid: b[j].userid,
  14228. sName: b[j].name,
  14229. });
  14230. } else if (b[j].type == 6 && b[j].atool != 50) {
  14231. let _works = {
  14232. userid: b[j].userid,
  14233. ateacher: b[j].ateacher,
  14234. wid: b[j].id,
  14235. works: b[j].content,
  14236. sName: b[j].name,
  14237. type: 4,
  14238. time: b[j].time,
  14239. score: b[j].score,
  14240. img: b[j].img,
  14241. likesCount: likesCount,
  14242. commentCount: commentCount,
  14243. isLikes: isLikes,
  14244. commentJson: commentJson,
  14245. };
  14246. _worksStudent[i].push(_works);
  14247. _worksStudent2[i].push(_works);
  14248. this.isWorksS[i].push({
  14249. uid: b[j].userid,
  14250. sName: b[j].name,
  14251. });
  14252. } else if (b[j].type == 7 && b[j].atool != 50) {
  14253. let _work = {
  14254. userid: b[j].userid,
  14255. ateacher: b[j].ateacher,
  14256. wid: b[j].id,
  14257. works: b[j].content,
  14258. sName: b[j].name,
  14259. type: 5,
  14260. time: b[j].time,
  14261. score: b[j].score,
  14262. img: b[j].img,
  14263. likesCount: likesCount,
  14264. commentCount: commentCount,
  14265. isLikes: isLikes,
  14266. commentJson: commentJson,
  14267. };
  14268. _worksStudent[i].push(_work);
  14269. _worksStudent2[i].push(_work);
  14270. this.isWorksS[i].push({
  14271. uid: b[j].userid,
  14272. sName: b[j].name,
  14273. });
  14274. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14275. let _works = {
  14276. userid: b[j].userid,
  14277. ateacher: b[j].ateacher,
  14278. wid: b[j].id,
  14279. works: b[j].content,
  14280. sName: b[j].name,
  14281. type: 12,
  14282. time: b[j].time,
  14283. score: b[j].score,
  14284. img: b[j].img,
  14285. likesCount: likesCount,
  14286. commentCount: commentCount,
  14287. isLikes: isLikes,
  14288. commentJson: commentJson,
  14289. };
  14290. if (this.isGroup) {
  14291. let isGw = 1;
  14292. for (
  14293. var groupI = 0;
  14294. groupI < this.courseGroup.group.length;
  14295. groupI++
  14296. ) {
  14297. let gid = this.courseGroup.group[groupI].id;
  14298. if (
  14299. this.courseGroupStudentUid[gid].indexOf(
  14300. b[j].userid
  14301. ) != -1
  14302. ) {
  14303. isGw = 2;
  14304. this.courseGroup.group[groupI].works[i].push(_works);
  14305. break;
  14306. }
  14307. }
  14308. if (isGw == 1) {
  14309. _worksStudent[i].push(_works);
  14310. }
  14311. } else {
  14312. _worksStudent[i].push(_works);
  14313. }
  14314. _worksStudent2[i].push(_works);
  14315. this.isWorksS[i].push({
  14316. uid: b[j].userid,
  14317. sName: b[j].name,
  14318. });
  14319. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14320. let _works = {
  14321. userid: b[j].userid,
  14322. ateacher: b[j].ateacher,
  14323. wid: b[j].id,
  14324. works: b[j].content,
  14325. sName: b[j].name,
  14326. type: 0,
  14327. time: b[j].time,
  14328. score: b[j].score,
  14329. img: b[j].img,
  14330. likesCount: likesCount,
  14331. commentCount: commentCount,
  14332. isLikes: isLikes,
  14333. commentJson: commentJson,
  14334. };
  14335. if (this.isGroup) {
  14336. let isGw = 1;
  14337. for (
  14338. var groupI = 0;
  14339. groupI < this.courseGroup.group.length;
  14340. groupI++
  14341. ) {
  14342. let gid = this.courseGroup.group[groupI].id;
  14343. if (
  14344. this.courseGroupStudentUid[gid].indexOf(
  14345. b[j].userid
  14346. ) != -1
  14347. ) {
  14348. isGw = 2;
  14349. this.courseGroup.group[groupI].works[i].push(_works);
  14350. break;
  14351. }
  14352. }
  14353. if (isGw == 1) {
  14354. _worksStudent[i].push(_works);
  14355. }
  14356. } else {
  14357. _worksStudent[i].push(_works);
  14358. }
  14359. _worksStudent2[i].push(_works);
  14360. this.isWorksS[i].push({
  14361. uid: b[j].userid,
  14362. sName: b[j].name,
  14363. });
  14364. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14365. let _works = {
  14366. userid: b[j].userid,
  14367. ateacher: b[j].ateacher,
  14368. wid: b[j].id,
  14369. works: b[j].content,
  14370. sName: b[j].name,
  14371. type: 0,
  14372. time: b[j].time,
  14373. score: b[j].score,
  14374. img: b[j].img,
  14375. likesCount: likesCount,
  14376. commentCount: commentCount,
  14377. isLikes: isLikes,
  14378. commentJson: commentJson,
  14379. };
  14380. if (this.isGroup) {
  14381. let isGw = 1;
  14382. for (
  14383. var groupI = 0;
  14384. groupI < this.courseGroup.group.length;
  14385. groupI++
  14386. ) {
  14387. let gid = this.courseGroup.group[groupI].id;
  14388. if (
  14389. this.courseGroupStudentUid[gid].indexOf(
  14390. b[j].userid
  14391. ) != -1
  14392. ) {
  14393. isGw = 2;
  14394. this.courseGroup.group[groupI].works[i].push(_works);
  14395. break;
  14396. }
  14397. }
  14398. if (isGw == 1) {
  14399. _worksStudent[i].push(_works);
  14400. }
  14401. } else {
  14402. _worksStudent[i].push(_works);
  14403. }
  14404. _worksStudent2[i].push(_works);
  14405. this.isWorksS[i].push({
  14406. uid: b[j].userid,
  14407. sName: b[j].name,
  14408. });
  14409. }
  14410. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14411. let _works = {
  14412. userid: b[j].userid,
  14413. ateacher: b[j].ateacher,
  14414. wid: b[j].id,
  14415. works: b[j].content,
  14416. sName: b[j].name,
  14417. type: 2,
  14418. time: b[j].time,
  14419. score: b[j].score,
  14420. img: b[j].img,
  14421. likesCount: likesCount,
  14422. commentCount: commentCount,
  14423. isLikes: isLikes,
  14424. commentJson: commentJson,
  14425. };
  14426. if (this.isGroup) {
  14427. let isGw = 1;
  14428. for (
  14429. var groupI = 0;
  14430. groupI < this.courseGroup.group.length;
  14431. groupI++
  14432. ) {
  14433. let gid = this.courseGroup.group[groupI].id;
  14434. if (
  14435. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14436. -1
  14437. ) {
  14438. isGw = 2;
  14439. this.courseGroup.group[groupI].works[i].push(_works);
  14440. break;
  14441. }
  14442. }
  14443. if (isGw == 1) {
  14444. _worksStudent[i].push(_works);
  14445. }
  14446. } else {
  14447. _worksStudent[i].push(_works);
  14448. }
  14449. _worksStudent2[i].push(_works);
  14450. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14451. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14452. //问卷
  14453. let _work = {
  14454. userid: b[j].userid,
  14455. ateacher: b[j].ateacher,
  14456. wid: b[j].id,
  14457. works: b[j].content,
  14458. sName: b[j].name,
  14459. type: 2,
  14460. time: b[j].time,
  14461. score: b[j].score,
  14462. img: b[j].img,
  14463. likesCount: likesCount,
  14464. commentCount: commentCount,
  14465. isLikes: isLikes,
  14466. commentJson: commentJson,
  14467. };
  14468. _worksStudent[i].push(_work);
  14469. _worksStudent2[i].push(_work);
  14470. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14471. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14472. //选择题
  14473. let _work = {
  14474. userid: b[j].userid,
  14475. ateacher: b[j].ateacher,
  14476. wid: b[j].id,
  14477. works: b[j].content,
  14478. sName: b[j].name,
  14479. type: 8,
  14480. time: b[j].time,
  14481. score: b[j].score,
  14482. img: b[j].img,
  14483. likesCount: likesCount,
  14484. commentCount: commentCount,
  14485. isLikes: isLikes,
  14486. commentJson: commentJson,
  14487. };
  14488. _worksStudent[i].push(_work);
  14489. _worksStudent2[i].push(_work);
  14490. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14491. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14492. //选择题
  14493. let _work = {
  14494. userid: b[j].userid,
  14495. ateacher: b[j].ateacher,
  14496. wid: b[j].id,
  14497. works: b[j].content,
  14498. sName: b[j].name,
  14499. type: 9,
  14500. time: b[j].time,
  14501. score: b[j].score,
  14502. img: b[j].img,
  14503. likesCount: likesCount,
  14504. commentCount: commentCount,
  14505. isLikes: isLikes,
  14506. commentJson: commentJson,
  14507. };
  14508. _worksStudent[i].push(_work);
  14509. _worksStudent2[i].push(_work);
  14510. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14511. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14512. //选择题
  14513. let _work = {
  14514. userid: b[j].userid,
  14515. ateacher: b[j].ateacher,
  14516. wid: b[j].id,
  14517. works: b[j].content,
  14518. sName: b[j].name,
  14519. type: 10,
  14520. time: b[j].time,
  14521. score: b[j].score,
  14522. img: b[j].img,
  14523. likesCount: likesCount,
  14524. commentCount: commentCount,
  14525. isLikes: isLikes,
  14526. commentJson: commentJson,
  14527. };
  14528. _worksStudent[i].push(_work);
  14529. _worksStudent2[i].push(_work);
  14530. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14531. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14532. //选择题
  14533. let _work = {
  14534. userid: b[j].userid,
  14535. ateacher: b[j].ateacher,
  14536. wid: b[j].id,
  14537. works: b[j].content,
  14538. sName: b[j].name,
  14539. type: 13,
  14540. time: b[j].time,
  14541. score: b[j].score,
  14542. img: b[j].img,
  14543. likesCount: likesCount,
  14544. commentCount: commentCount,
  14545. isLikes: isLikes,
  14546. commentJson: commentJson,
  14547. };
  14548. _worksStudent[i].push(_work);
  14549. _worksStudent2[i].push(_work);
  14550. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14551. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14552. //选择题
  14553. let _work = {
  14554. userid: b[j].userid,
  14555. ateacher: b[j].ateacher,
  14556. wid: b[j].id,
  14557. works: b[j].content,
  14558. sName: b[j].name,
  14559. type: 16,
  14560. time: b[j].time,
  14561. score: b[j].score,
  14562. img: b[j].img,
  14563. likesCount: likesCount,
  14564. commentCount: commentCount,
  14565. isLikes: isLikes,
  14566. commentJson: commentJson,
  14567. aiCode: b[j].aiCode,
  14568. teacherCode: b[j].teacherCode
  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. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14574. let _gindex = JSON.parse(b[j].content);
  14575. if (
  14576. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14577. b[j].userid
  14578. ) != -1
  14579. ) {
  14580. let _work = {
  14581. userid: b[j].userid,
  14582. ateacher: b[j].ateacher,
  14583. wid: b[j].id,
  14584. works: _gindex.url,
  14585. sName: b[j].name,
  14586. type: _gindex.type,
  14587. time: b[j].time,
  14588. score: b[j].score,
  14589. img: b[j].img,
  14590. likesCount: likesCount,
  14591. commentCount: commentCount,
  14592. isLikes: isLikes,
  14593. commentJson: commentJson,
  14594. };
  14595. _worksStudent[i][_gindex.groupIndex].push(_work);
  14596. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14597. }
  14598. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14599. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14600. let _work = {
  14601. userid: b[j].userid,
  14602. ateacher: b[j].ateacher,
  14603. wid: b[j].id,
  14604. works: b[j].content,
  14605. sName: b[j].name ? b[j].name : b[j].userid,
  14606. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14607. time: b[j].time,
  14608. score: b[j].score,
  14609. img: b[j].img,
  14610. likesCount: likesCount,
  14611. commentCount: commentCount,
  14612. isLikes: isLikes,
  14613. commentJson: commentJson,
  14614. };
  14615. _worksStudent[i].push(_work);
  14616. _worksStudent2[i].push(_work);
  14617. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14618. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14619. let _work = {
  14620. userid: b[j].userid,
  14621. ateacher: b[j].ateacher,
  14622. wid: b[j].id,
  14623. works: b[j].content,
  14624. sName: b[j].name ? b[j].name : b[j].userid,
  14625. type: 12,
  14626. time: b[j].time,
  14627. score: b[j].score,
  14628. img: b[j].img,
  14629. likesCount: likesCount,
  14630. commentCount: commentCount,
  14631. isLikes: isLikes,
  14632. commentJson: commentJson,
  14633. };
  14634. _worksStudent[i].push(_work);
  14635. _worksStudent2[i].push(_work);
  14636. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14637. } else if (
  14638. a[i].tool[0] == 57 &&
  14639. b[j].atool == 57 &&
  14640. b[j].type == 12
  14641. ) {
  14642. let _work = {
  14643. userid: b[j].userid,
  14644. ateacher: b[j].ateacher,
  14645. wid: b[j].id,
  14646. works: b[j].content,
  14647. sName: b[j].name ? b[j].name : b[j].userid,
  14648. type: 12,
  14649. time: b[j].time,
  14650. score: b[j].score,
  14651. img: b[j].img,
  14652. likesCount: likesCount,
  14653. commentCount: commentCount,
  14654. isLikes: isLikes,
  14655. commentJson: commentJson,
  14656. };
  14657. _worksStudent[i].push(_work);
  14658. _worksStudent2[i].push(_work);
  14659. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14660. } else if (
  14661. a[i].tool[0] == 57 &&
  14662. b[j].atool == 57 &&
  14663. b[j].type == 15
  14664. ) {
  14665. let _work = {
  14666. userid: b[j].userid,
  14667. ateacher: b[j].ateacher,
  14668. wid: b[j].id,
  14669. works: b[j].content,
  14670. sName: b[j].name ? b[j].name : b[j].userid,
  14671. type: 15,
  14672. time: b[j].time,
  14673. score: b[j].score,
  14674. img: b[j].img,
  14675. likesCount: likesCount,
  14676. commentCount: commentCount,
  14677. isLikes: isLikes,
  14678. commentJson: commentJson,
  14679. };
  14680. _worksStudent[i].push(_work);
  14681. _worksStudent2[i].push(_work);
  14682. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14683. }
  14684. }
  14685. }
  14686. if (_worksStudent[i] && _worksStudent[i].length) {
  14687. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14688. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14689. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14690. var scoreA = parseFloat(jscoreA);
  14691. var scoreB = parseFloat(jscoreB);
  14692. if (scoreA == scoreB) {
  14693. return b.likesCount - a.likesCount;
  14694. }
  14695. return scoreB - scoreA;
  14696. });
  14697. if (this.isGroup) {
  14698. for (
  14699. var groupI = 0;
  14700. groupI < this.courseGroup.group.length;
  14701. groupI++
  14702. ) {
  14703. this.courseGroup.group[groupI].works[i] =
  14704. this.courseGroup.group[groupI].works[i].sort(function (
  14705. a,
  14706. b
  14707. ) {
  14708. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14709. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14710. var scoreA = parseFloat(jscoreA);
  14711. var scoreB = parseFloat(jscoreB);
  14712. if (scoreA == scoreB) {
  14713. return b.likesCount - a.likesCount;
  14714. }
  14715. return scoreB - scoreA;
  14716. });
  14717. }
  14718. }
  14719. }
  14720. }
  14721. this.timeWorkList = _worksStudent2;
  14722. for (var i = 0; i < a.length; i++) {
  14723. for (var j = 0; j < b.length; j++) {
  14724. var data = b[j];
  14725. if (i == b[j].tool) {
  14726. if (data.type == 2 || data.type == 8) {
  14727. for (var z = 0; z < this.checkJson[i].length; z++) {
  14728. this.checkJson[i][z].checkPerent = [];
  14729. this.checkJson[i][z].right = Math.round(
  14730. (this.checkJson[i][z].rightPerson.length /
  14731. parseInt(_worksStudent[i].length)) *
  14732. 100
  14733. );
  14734. let aaaa = this.checkJson[i][z];
  14735. for (
  14736. var k = 0;
  14737. k < this.checkJson[i][z].checkCount.length;
  14738. k++
  14739. ) {
  14740. this.checkJson[i][z].checkPerent.push(
  14741. Math.round(
  14742. (this.checkJson[i][z].checkCount[k] /
  14743. parseInt(_worksStudent[i].length)) *
  14744. 100
  14745. )
  14746. );
  14747. }
  14748. }
  14749. } else if (data.type == 9) {
  14750. for (var z = 0; z < this.checkJson[i].length; z++) {
  14751. this.checkJson[i][z].checkPerent = [];
  14752. this.checkJson[i][z].right = Math.round(
  14753. (this.checkJson[i][z].rightPerson.length /
  14754. this.checkJson[i][z].checkPerson.length) *
  14755. 100
  14756. );
  14757. }
  14758. }
  14759. }
  14760. }
  14761. }
  14762. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14763. this.joinGroup(gindex);
  14764. }
  14765. this.worksStudent = _worksStudent;
  14766. this.selectWorksStudent();
  14767. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14768. this.$nextTick(()=>{
  14769. setTimeout(()=>{
  14770. setTimeout(()=>{
  14771. this.panToolHeight('tool-'+ci);
  14772. }, 500)
  14773. }, 0)
  14774. })
  14775. }
  14776. })
  14777. .catch((err) => {
  14778. console.error(err);
  14779. });
  14780. },
  14781. pngToWhiteBg(file) {
  14782. const _file = file;
  14783. let read = new FileReader();
  14784. read.readAsDataURL(file); // 文件转base64
  14785. return new Promise((resolve, reject) => {
  14786. read.onload = (e) => {
  14787. let img = new Image();
  14788. img.src = e.target.result;
  14789. img.onload = async () => {
  14790. // 生成canvas
  14791. let canvas = document.createElement("canvas");
  14792. let context = canvas.getContext("2d");
  14793. // 绘制图片到canvas上
  14794. canvas.width = img.width;
  14795. canvas.height = img.height;
  14796. // 在canvas绘制前填充白色背景
  14797. context.fillStyle = "#fff";
  14798. context.fillRect(0, 0, canvas.width, canvas.height);
  14799. context.drawImage(img, 0, 0);
  14800. let base64 = canvas.toDataURL(file["type"], 1);
  14801. let newFile = this.dataUrlToFile(base64, _file);
  14802. resolve(newFile);
  14803. };
  14804. };
  14805. });
  14806. },
  14807. dataUrlToFile(dataurl, file) {
  14808. let arr = dataurl.split(","),
  14809. mime = arr[0].match(/:(.*?);/)[1],
  14810. bstr = atob(arr[1]),
  14811. n = bstr.length,
  14812. u8arr = new Uint8Array(n);
  14813. while (n--) {
  14814. u8arr[n] = bstr.charCodeAt(n);
  14815. }
  14816. // return new Blob([u8arr], { type: mime });
  14817. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14818. type: mime,
  14819. });
  14820. },
  14821. async beforeUpload1(event, type, i) {
  14822. // this.$message.success('进入上传')
  14823. var file = "";
  14824. if (type == 5) {
  14825. file = event;
  14826. } else {
  14827. file = event.target.files[0];
  14828. }
  14829. var credentials = {
  14830. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14831. secretAccessKey: "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",
  14832. }; //秘钥形式的登录上传
  14833. window.AWS.config.update(credentials);
  14834. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14835. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14836. var _this = this;
  14837. _this.progress = 0;
  14838. _this.proVisible = true;
  14839. _this.isFinishSize = 0;
  14840. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14841. var b = [
  14842. "DOC",
  14843. "DOCX",
  14844. "DOCM",
  14845. "DOTM",
  14846. "DOTX",
  14847. "PPTX",
  14848. "PPSX",
  14849. "PPT",
  14850. "PPS",
  14851. "PPTM",
  14852. "POTM",
  14853. "PPAM",
  14854. "POTX",
  14855. "PPSM",
  14856. ];
  14857. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14858. var photoA = [
  14859. "BMP",
  14860. "GIF",
  14861. "PNG",
  14862. "JPEG",
  14863. "JPEG",
  14864. "JPG",
  14865. "TIF",
  14866. "PCX",
  14867. "TGA",
  14868. "EXIF",
  14869. "FPX",
  14870. "SVG",
  14871. "APNG",
  14872. ];
  14873. // if (
  14874. // b.indexOf(
  14875. // file.name
  14876. // .split(".")
  14877. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14878. // ) != -1
  14879. // ) {
  14880. // if (file.size / 1024 / 1024 > 10) {
  14881. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14882. // return;
  14883. // }
  14884. // } else if (
  14885. // excelA.indexOf(
  14886. // file.name
  14887. // .split(".")
  14888. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14889. // ) != "-1"
  14890. // ) {
  14891. // if (file.size / 1024 / 1024 > 5) {
  14892. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14893. // return;
  14894. // }
  14895. // }
  14896. if (
  14897. photoA.indexOf(
  14898. file.name
  14899. .split(".")
  14900. [file.name.split(".").length - 1].toLocaleUpperCase()
  14901. ) != -1 &&
  14902. type != 4
  14903. ) {
  14904. // const blob = await imageConversion.compress(file, 0.8)
  14905. file = await this.pngToWhiteBg(file);
  14906. const blob = await imageConversion.compressAccurately(file, 256);
  14907. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14908. file = new File([blob], file.name, { type: file.type });
  14909. }
  14910. if (file) {
  14911. var params = {
  14912. Key:
  14913. file.name.split(".")[0] +
  14914. new Date().getTime() +
  14915. "." +
  14916. file.name.split(".")[file.name.split(".").length - 1],
  14917. ContentType: file.type,
  14918. Body: file,
  14919. "Access-Control-Allow-Credentials": "*",
  14920. ACL: "public-read",
  14921. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14922. var options = {
  14923. // partSize: 2048 * 1024 * 1024,
  14924. partSize: 1024 * 1024 * 1024,
  14925. queueSize: 2,
  14926. leavePartsOnError: true,
  14927. };
  14928. bucket
  14929. .upload(params, options)
  14930. .on("httpUploadProgress", function (evt) {
  14931. //这里可以写进度条
  14932. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14933. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14934. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14935. })
  14936. .send(function (err, data) {
  14937. _this.progress = 100;
  14938. _this.isFinishSize = _this.isAllSize;
  14939. setTimeout(() => {
  14940. _this.proVisible = false;
  14941. }, 1000);
  14942. if (err) {
  14943. var a = _this.$refs.upload1.uploadFiles;
  14944. a.splice(a.length - 1, a.length);
  14945. _this.$message.error("上传失败");
  14946. } else {
  14947. // _this.$message.success('上传成功')
  14948. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14949. var c = [
  14950. "AVI",
  14951. "NAVI",
  14952. "MPEG",
  14953. "ASF",
  14954. "MOV",
  14955. "WMV",
  14956. "3GP",
  14957. "RM",
  14958. "RMVB",
  14959. "FLV",
  14960. "F4V",
  14961. "H.264",
  14962. "H.265",
  14963. "REAL VIDEO",
  14964. "MKV",
  14965. "WebM",
  14966. "HDDVD",
  14967. "MP4",
  14968. "MPG",
  14969. "M4V",
  14970. "MGV",
  14971. "OGV",
  14972. "QTM",
  14973. "STR",
  14974. "AMC",
  14975. "DVX",
  14976. "EVO",
  14977. "DAT",
  14978. "OGG",
  14979. "OGM",
  14980. ];
  14981. if (type == 1) {
  14982. _this.studyJuri[0].cover.push({
  14983. name: file.name,
  14984. url: data.Location,
  14985. uid: file.uid,
  14986. });
  14987. if (
  14988. c.indexOf(
  14989. _this.studyJuri[0].cover[0].url
  14990. .split(".")
  14991. [
  14992. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14993. ].toLocaleUpperCase()
  14994. ) != -1
  14995. ) {
  14996. _this.fileType = 2;
  14997. } else if (
  14998. b.indexOf(
  14999. _this.studyJuri[0].cover[0].url
  15000. .split(".")
  15001. [
  15002. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15003. ].toLocaleUpperCase()
  15004. ) != -1
  15005. ) {
  15006. _this.fileType = 1;
  15007. } else if (
  15008. photoA.indexOf(
  15009. _this.studyJuri[0].cover[0].url
  15010. .split(".")
  15011. [
  15012. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15013. ].toLocaleUpperCase()
  15014. ) != -1
  15015. ) {
  15016. _this.fileType = 0;
  15017. } else {
  15018. _this.fileType = 3;
  15019. }
  15020. _this.imgChange(null, null, type);
  15021. } else if (type == 2) {
  15022. _this.upToolImg = data.Location;
  15023. _this.imgChange(null, null, type);
  15024. _this.addCourseWorks(i);
  15025. } else if (type == 4) {
  15026. _this.addPz("3", data.Location);
  15027. } else if (type == 5) {
  15028. _this.addImgDrawImG(data.Location);
  15029. } else if (type == 6) {
  15030. var _ftype = 1;
  15031. if (
  15032. c.indexOf(
  15033. data.Location.split(".")[
  15034. data.Location.split(".").length - 1
  15035. ].toLocaleUpperCase()
  15036. ) != -1
  15037. ) {
  15038. _ftype = 5;
  15039. } else if (
  15040. b.indexOf(
  15041. data.Location.split(".")[
  15042. data.Location.split(".").length - 1
  15043. ].toLocaleUpperCase()
  15044. ) != -1
  15045. ) {
  15046. _ftype = 4;
  15047. } else {
  15048. _ftype = 1;
  15049. }
  15050. _this.plworkFile.push({
  15051. name: file.name,
  15052. url: data.Location,
  15053. uid: file.uid,
  15054. fileType: _ftype,
  15055. username:
  15056. _this.plworkFile.length > 10
  15057. ? _this.plworkFile.length + 1
  15058. : "0" + (_this.plworkFile.length + 1),
  15059. });
  15060. } else if (type == 7) {
  15061. _this.addCourseWorksGong(i, data.Location, 32);
  15062. } else if (type == 8) {
  15063. _this.addCourseWorksGong(i, data.Location, 57);
  15064. }
  15065. _this.imgChange(null, null, type);
  15066. console.log(data.Location);
  15067. // _this.$message.success('上传成功'+data.Location)
  15068. }
  15069. });
  15070. }
  15071. },
  15072. async beforeUpload3(event, type, i) {
  15073. // this.$message.success('进入上传')
  15074. let file = "";
  15075. let cfindex2 = 0;
  15076. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15077. file = event.target.files[cfindex];
  15078. var credentials = {
  15079. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15080. secretAccessKey: "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",
  15081. }; //秘钥形式的登录上传
  15082. window.AWS.config.update(credentials);
  15083. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15084. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15085. var _this = this;
  15086. // _this.progress = 0;
  15087. _this.proVisible2 = true;
  15088. var b = [
  15089. "DOC",
  15090. "DOCX",
  15091. "DOCM",
  15092. "DOTM",
  15093. "DOTX",
  15094. "PPTX",
  15095. "PPSX",
  15096. "PPT",
  15097. "PPS",
  15098. "PPTM",
  15099. "POTM",
  15100. "PPAM",
  15101. "POTX",
  15102. "PPSM",
  15103. ];
  15104. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15105. var photoA = [
  15106. "BMP",
  15107. "GIF",
  15108. "PNG",
  15109. "JPEG",
  15110. "JPG",
  15111. "TIF",
  15112. "PCX",
  15113. "TGA",
  15114. "EXIF",
  15115. "FPX",
  15116. "SVG",
  15117. "APNG",
  15118. ];
  15119. if (
  15120. photoA.indexOf(
  15121. file.name
  15122. .split(".")
  15123. [file.name.split(".").length - 1].toLocaleUpperCase()
  15124. ) != -1 &&
  15125. type != 4
  15126. ) {
  15127. // const blob = await imageConversion.compress(file, 0.8)
  15128. file = await this.pngToWhiteBg(file);
  15129. const blob = await imageConversion.compressAccurately(file, 256);
  15130. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15131. file = new File([blob], file.name, { type: file.type });
  15132. }
  15133. if (file) {
  15134. var params = {
  15135. Key:
  15136. file.name.split(".")[0] +
  15137. new Date().getTime() +
  15138. "." +
  15139. file.name.split(".")[file.name.split(".").length - 1],
  15140. ContentType: file.type,
  15141. Body: file,
  15142. "Access-Control-Allow-Credentials": "*",
  15143. ACL: "public-read",
  15144. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15145. var options = {
  15146. // partSize: 2048 * 1024 * 1024,
  15147. partSize: 1024 * 1024 * 1024,
  15148. queueSize: 2,
  15149. leavePartsOnError: true,
  15150. };
  15151. bucket
  15152. .upload(params, options)
  15153. .on("httpUploadProgress", function (evt) {
  15154. //这里可以写进度条
  15155. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15156. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15157. })
  15158. .send(function (err, data) {
  15159. // _this.progress = 100;
  15160. cfindex2++;
  15161. setTimeout(() => {
  15162. if (
  15163. cfindex2 == event.target.files.length - 1 ||
  15164. cfindex2 > event.target.files.length - 1
  15165. ) {
  15166. _this.proVisible2 = false;
  15167. }
  15168. }, 1000);
  15169. if (err) {
  15170. var a = _this.$refs.upload1.uploadFiles;
  15171. a.splice(a.length - 1, a.length);
  15172. _this.$message.error("上传失败");
  15173. } else {
  15174. // _this.$message.success('上传成功')
  15175. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15176. var c = [
  15177. "AVI",
  15178. "NAVI",
  15179. "MPEG",
  15180. "ASF",
  15181. "MOV",
  15182. "WMV",
  15183. "3GP",
  15184. "RM",
  15185. "RMVB",
  15186. "FLV",
  15187. "F4V",
  15188. "H.264",
  15189. "H.265",
  15190. "REAL VIDEO",
  15191. "MKV",
  15192. "WebM",
  15193. "HDDVD",
  15194. "MP4",
  15195. "MPG",
  15196. "M4V",
  15197. "MGV",
  15198. "OGV",
  15199. "QTM",
  15200. "STR",
  15201. "AMC",
  15202. "DVX",
  15203. "EVO",
  15204. "DAT",
  15205. "OGG",
  15206. "OGM",
  15207. ];
  15208. if (type == 1) {
  15209. _this.studyJuri[0].cover.push({
  15210. name: file.name,
  15211. url: data.Location,
  15212. uid: file.uid,
  15213. });
  15214. if (
  15215. c.indexOf(
  15216. _this.studyJuri[0].cover[0].url
  15217. .split(".")
  15218. [
  15219. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15220. ].toLocaleUpperCase()
  15221. ) != -1
  15222. ) {
  15223. _this.fileType = 2;
  15224. } else if (
  15225. b.indexOf(
  15226. _this.studyJuri[0].cover[0].url
  15227. .split(".")
  15228. [
  15229. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15230. ].toLocaleUpperCase()
  15231. ) != -1
  15232. ) {
  15233. _this.fileType = 1;
  15234. } else {
  15235. _this.fileType = 0;
  15236. }
  15237. _this.imgChange(null, null, type);
  15238. } else if (type == 2) {
  15239. _this.upToolImg = data.Location;
  15240. _this.imgChange(null, null, type);
  15241. _this.addCourseWorks(i);
  15242. } else if (type == 4) {
  15243. _this.addPz("3", data.Location);
  15244. } else if (type == 5) {
  15245. _this.addImgDrawImG(data.Location);
  15246. } else if (type == 6) {
  15247. var _ftype = 1;
  15248. if (
  15249. c.indexOf(
  15250. data.Location.split(".")[
  15251. data.Location.split(".").length - 1
  15252. ].toLocaleUpperCase()
  15253. ) != -1
  15254. ) {
  15255. _ftype = 5;
  15256. } else if (
  15257. b.indexOf(
  15258. data.Location.split(".")[
  15259. data.Location.split(".").length - 1
  15260. ].toLocaleUpperCase()
  15261. ) != -1
  15262. ) {
  15263. _ftype = 4;
  15264. } else {
  15265. _ftype = 1;
  15266. }
  15267. _this.plworkFile.push({
  15268. name: file.name,
  15269. url: data.Location,
  15270. uid: file.uid,
  15271. fileType: _ftype,
  15272. username:
  15273. _this.plworkFile.length + 1 > 9
  15274. ? _this.plworkFile.length + 1
  15275. : "0" + (_this.plworkFile.length + 1),
  15276. });
  15277. }
  15278. _this.imgChange(null, null, type);
  15279. console.log(data.Location);
  15280. // _this.$message.success('上传成功'+data.Location)
  15281. }
  15282. });
  15283. }
  15284. }
  15285. },
  15286. beforeUpload2(event, type) {
  15287. var file = event.target.files[0];
  15288. var credentials = {
  15289. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15290. secretAccessKey: "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",
  15291. }; //秘钥形式的登录上传
  15292. window.AWS.config.update(credentials);
  15293. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15294. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15295. var _this = this;
  15296. _this.progress = 0;
  15297. _this.proVisible = true;
  15298. if (file) {
  15299. var params = {
  15300. Key:
  15301. file.name.split(".")[0] +
  15302. new Date().getTime() +
  15303. "." +
  15304. file.name.split(".")[file.name.split(".").length - 1],
  15305. ContentType: file.type,
  15306. Body: file,
  15307. "Access-Control-Allow-Credentials": "*",
  15308. ACL: "public-read",
  15309. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15310. var options = {
  15311. partSize: 2048 * 1024 * 1024,
  15312. queueSize: 2,
  15313. leavePartsOnError: true,
  15314. };
  15315. bucket
  15316. .upload(params, options)
  15317. .on("httpUploadProgress", function (evt) {
  15318. //这里可以写进度条
  15319. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15320. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15321. })
  15322. .send(function (err, data) {
  15323. _this.progress = 100;
  15324. setTimeout(() => {
  15325. _this.proVisible = false;
  15326. }, 1000);
  15327. if (err) {
  15328. var a = _this.$refs.upload1.uploadFiles;
  15329. a.splice(a.length - 1, a.length);
  15330. _this.$message.error("上传失败");
  15331. } else {
  15332. if (type == 2) {
  15333. _this.studyJuri[0].upVedio.push({
  15334. name: file.name,
  15335. url: data.Location,
  15336. uid: file.uid,
  15337. });
  15338. _this.imgChange(null, null, type);
  15339. } else if (type == 3) {
  15340. _this.studyJuri[0].upFile.push({
  15341. name: file.name,
  15342. url: data.Location,
  15343. uid: file.uid,
  15344. });
  15345. _this.imgChange(null, null, type);
  15346. }
  15347. console.log(data.Location);
  15348. }
  15349. });
  15350. }
  15351. },
  15352. allScrell() {
  15353. window.topU.postMessage({ allScreen: this.screenType }, "*");
  15354. },
  15355. nextOrpreSteps(t) {
  15356. if (this.IsFollow && this.tType == 2) {
  15357. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15358. return;
  15359. }
  15360. var b = this.chapInfoList.length - 1;
  15361. if (t == 0) {
  15362. if (this.courseType == 0) {
  15363. if (this.taskCount == 0) {
  15364. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15365. if (this.IsLookOpen) {
  15366. if (
  15367. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15368. ) {
  15369. if (
  15370. this.courseDetail.userid != this.userid &&
  15371. this.courseDetail.course_teacher &&
  15372. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15373. ) {
  15374. this.$message.error("任务未解锁");
  15375. } else {
  15376. this.$message.error("上一任务未解锁");
  15377. }
  15378. return;
  15379. }
  15380. }
  15381. this.navList[this.courseType].isOpen = false;
  15382. this.courseType = b;
  15383. this.taskCount =
  15384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15385. .length - 1;
  15386. this.navList[this.courseType].isOpen = true;
  15387. } else {
  15388. this.taskCount--;
  15389. }
  15390. } else {
  15391. if (this.taskCount == 0) {
  15392. this.navList[this.courseType].isOpen = false;
  15393. this.courseType--;
  15394. this.taskCount =
  15395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15396. .length - 1;
  15397. this.navList[this.courseType].isOpen = true;
  15398. } else {
  15399. this.taskCount--;
  15400. }
  15401. }
  15402. } else {
  15403. if (this.courseType == b) {
  15404. if (
  15405. this.taskCount ==
  15406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15407. 1
  15408. ) {
  15409. this.navList[this.courseType].isOpen = false;
  15410. this.courseType = 0;
  15411. this.taskCount = 0;
  15412. this.navList[this.courseType].isOpen = true;
  15413. } else {
  15414. var bbb = parseInt(this.taskCount) + 1;
  15415. if (
  15416. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15417. .isLook &&
  15418. this.courseDetail.userid != this.userid &&
  15419. this.courseDetail.course_teacher &&
  15420. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15421. this.IsLookOpen
  15422. ) {
  15423. this.$message.error("任务未解锁");
  15424. return;
  15425. }
  15426. this.taskCount++;
  15427. if (this.IsLookOpen) {
  15428. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15429. this.taskCount
  15430. ].isLook = true;
  15431. this.addCourseState(3);
  15432. }
  15433. }
  15434. } else {
  15435. if (
  15436. this.taskCount ==
  15437. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15438. 1
  15439. ) {
  15440. var bbb = parseInt(this.courseType) + 1;
  15441. if (
  15442. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15443. this.courseDetail.userid != this.userid &&
  15444. this.courseDetail.course_teacher &&
  15445. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15446. this.IsLookOpen
  15447. ) {
  15448. this.$message.error("任务未解锁");
  15449. return;
  15450. }
  15451. this.navList[this.courseType].isOpen = false;
  15452. this.courseType++;
  15453. this.taskCount = 0;
  15454. this.navList[this.courseType].isOpen = true;
  15455. } else {
  15456. var bbb = parseInt(this.taskCount) + 1;
  15457. if (
  15458. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15459. .isLook &&
  15460. this.courseDetail.userid != this.userid &&
  15461. this.courseDetail.course_teacher &&
  15462. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15463. this.IsLookOpen
  15464. ) {
  15465. this.$message.error("任务未解锁");
  15466. return;
  15467. }
  15468. this.taskCount++;
  15469. }
  15470. if (this.IsLookOpen) {
  15471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15472. this.taskCount
  15473. ].isLook = true;
  15474. this.addCourseState(3);
  15475. }
  15476. }
  15477. // if (
  15478. // this.taskCount ==
  15479. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15480. // ) {
  15481. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15482. // } else {
  15483. // this.taskCount++;
  15484. // }
  15485. }
  15486. document.scrollingElement.scrollTop = 0;
  15487. this.showType = 0;
  15488. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15489. // if (this.vedio[this.taskCount].length > 0) {
  15490. // var a =
  15491. // document.getElementsByClassName("box_course")[this.taskCount]
  15492. // .offsetHeight;
  15493. // document.getElementsByClassName("vedioList")[
  15494. // this.taskCount
  15495. // ].style.height = a + "px";
  15496. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15497. // a - 40 + "px";
  15498. // }
  15499. this.isNoHomeWork = false;
  15500. (this.studyJuri = [
  15501. {
  15502. content: "",
  15503. cover: [],
  15504. upVedio: [],
  15505. upFile: [],
  15506. },
  15507. ]),
  15508. (this.radio = []);
  15509. this.isClickNav = "";
  15510. this.selectPz();
  15511. this.getHomeWork();
  15512. this.getCourseDetail(2);
  15513. this.$forceUpdate();
  15514. },
  15515. openTask(s, n, i) {
  15516. if (this.IsFollow && this.tType == 2) {
  15517. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15518. return;
  15519. }
  15520. if (this.IsLookOpen) {
  15521. if (
  15522. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15523. this.courseDetail.userid != this.userid &&
  15524. this.courseDetail.course_teacher &&
  15525. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15526. ) {
  15527. this.$message.error("任务未解锁");
  15528. return;
  15529. }
  15530. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15531. if (
  15532. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15533. .isLook
  15534. ) {
  15535. this.$message.error("上一任务未解锁");
  15536. return;
  15537. }
  15538. } else if (s > this.courseType) {
  15539. if (n > 0) {
  15540. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15541. this.$message.error("上一任务未解锁");
  15542. return;
  15543. }
  15544. } else {
  15545. if (
  15546. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15547. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15548. ].isLook
  15549. ) {
  15550. this.$message.error("上一任务未解锁");
  15551. return;
  15552. }
  15553. }
  15554. }
  15555. }
  15556. if (this.navList[s].task[n].isOpen == true) {
  15557. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15558. return;
  15559. }
  15560. this.courseType = s;
  15561. this.navId = i;
  15562. this.taskCount = n;
  15563. this.navList[this.courseType].task[this.taskCount].isOpen =
  15564. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15565. if (this.IsLookOpen) {
  15566. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15567. this.taskCount
  15568. ].isLook = true;
  15569. this.addCourseState(3);
  15570. }
  15571. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15572. this.isCloseList[ci].isClose = 0;
  15573. this.isCloseList[ci].isCloseBoolean = false;
  15574. this.$nextTick(()=>{
  15575. setTimeout(()=>{
  15576. setTimeout(()=>{
  15577. this.panToolHeight('tool-'+ci);
  15578. }, 0)
  15579. }, 0)
  15580. })
  15581. }
  15582. this.showType = 0;
  15583. this.isNoHomeWork = false;
  15584. (this.studyJuri = [
  15585. {
  15586. content: "",
  15587. cover: [],
  15588. upVedio: [],
  15589. upFile: [],
  15590. },
  15591. ]),
  15592. (this.radio = []);
  15593. document.scrollingElement.scrollTop = 0;
  15594. // setTimeout(() => {
  15595. // let a = document.getElementById(i);
  15596. // if (a.offsetTop - 110 == 0) {
  15597. // window.scrollTo(0, 0);
  15598. // } else {
  15599. // window.scrollTo(0, a.offsetTop);
  15600. // }
  15601. // }, 0);
  15602. for (var z = 0; z < this.navList.length; z++) {
  15603. for (var q = 0; q < this.navList[z].task.length; q++) {
  15604. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15605. this.navList[z].task[q].tool[w].isTool = false;
  15606. }
  15607. }
  15608. }
  15609. this.selectPz();
  15610. this.getHomeWork();
  15611. this.getCourseDetail(2);
  15612. },
  15613. get(i) {
  15614. if (this.IsFollow && this.tType == 2) {
  15615. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15616. return;
  15617. }
  15618. // for(var k=0;k<this.navList.length;k++){
  15619. // this.navList[k].isOpen = false;
  15620. // }
  15621. // this.navList[i].isOpen = true;
  15622. this.navList[i].isOpen = !this.navList[i].isOpen;
  15623. if (this.navList[i].isOpen) {
  15624. this.openTask(i, 0, i + "-0");
  15625. }
  15626. },
  15627. addQuestion() {
  15628. this.answerList.push({
  15629. answerTitle: this.answerQ,
  15630. answer: this.questionAnswer,
  15631. });
  15632. let params = [
  15633. {
  15634. uid: this.userid,
  15635. cid: this.id,
  15636. stage: this.courseType,
  15637. task: this.taskCount,
  15638. tool: this.toolindex,
  15639. content: JSON.stringify(this.answerList),
  15640. type: 3,
  15641. },
  15642. ];
  15643. this.ajax
  15644. .post(this.$store.state.api + "addCourseWorks", params)
  15645. .then((res) => {
  15646. this.$message({
  15647. message: "提交成功",
  15648. type: "success",
  15649. });
  15650. this.answerList = [];
  15651. this.answerDialogVisible = false;
  15652. this.selectStudent();
  15653. this.selectSWorks();
  15654. this.selectSLook();
  15655. })
  15656. .catch((err) => {
  15657. this.$message.error("提交失败");
  15658. console.error(err);
  15659. });
  15660. },
  15661. addQuestionTeacher() {
  15662. this.answerList.push({
  15663. answerTitle: this.answerQ,
  15664. answer: this.questionAnswer,
  15665. });
  15666. let params = [
  15667. {
  15668. uid: this.sStudent.userid,
  15669. cid: this.id,
  15670. stage: this.courseType,
  15671. task: this.taskCount,
  15672. tool: this.toolindex,
  15673. content: JSON.stringify(this.answerList),
  15674. type: 3,
  15675. ateacher: this.userid,
  15676. },
  15677. ];
  15678. this.ajax
  15679. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15680. .then((res) => {
  15681. this.$message({
  15682. message: "提交成功",
  15683. type: "success",
  15684. });
  15685. this.answerList = [];
  15686. this.questionAnswer = "";
  15687. this.answerDialogVisibleTeacher = false;
  15688. this.selectStudent();
  15689. this.selectSWorks();
  15690. this.selectSLook();
  15691. })
  15692. .catch((err) => {
  15693. this.$message.error("提交失败");
  15694. console.error(err);
  15695. });
  15696. },
  15697. refreshCourse() {
  15698. // window.location.reload();
  15699. this.navList = [];
  15700. this.getCourseDetail(1);
  15701. },
  15702. getCourseDetail(type, gindex) {
  15703. let loading;
  15704. if (type != 2) {
  15705. loading = this.$loading.service({
  15706. background: "rgba(255, 255, 255, 0.7)",
  15707. target: document.querySelector(".student_table"),
  15708. });
  15709. }
  15710. this.downLoading = false
  15711. // this.navList[0].isOpen = false;
  15712. // this.navList[this.courseType].isOpen = true;
  15713. // this.courseType = this.courseTypeLine;
  15714. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15715. let params = {
  15716. courseId: this.id,
  15717. };
  15718. this.ajax
  15719. .get(this.$store.state.api + "selectTrainCourseDetail3", params)
  15720. .then((res) => {
  15721. if (type != 2) {
  15722. loading.close();
  15723. if (
  15724. this.courseType >
  15725. JSON.parse(res.data[0][0].chapters).length - 1
  15726. ) {
  15727. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15728. }
  15729. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15730. .chapterInfo[0].taskJson;
  15731. var b = [
  15732. "AVI",
  15733. "NAVI",
  15734. "MPEG",
  15735. "ASF",
  15736. "MOV",
  15737. "WMV",
  15738. "3GP",
  15739. "RM",
  15740. "RMVB",
  15741. "FLV",
  15742. "F4V",
  15743. "H.264",
  15744. "H.265",
  15745. "REAL VIDEO",
  15746. "MKV",
  15747. "WebM",
  15748. "HDDVD",
  15749. "MP4",
  15750. "MPG",
  15751. "M4V",
  15752. "MGV",
  15753. "OGV",
  15754. "QTM",
  15755. "STR",
  15756. "AMC",
  15757. "DVX",
  15758. "EVO",
  15759. "DAT",
  15760. "OGG",
  15761. "OGM",
  15762. "MP3",
  15763. ];
  15764. let _chapterData = [];
  15765. for (var i = 0; i < a.length; i++) {
  15766. var c = a[i].chapterData;
  15767. this.vedio[i] = [];
  15768. this.textList[i] = [];
  15769. this.lineList[i] = [];
  15770. this.chapToolList[i] = [];
  15771. this.file[i] = [];
  15772. this.fileC[i] = [];
  15773. _chapterData[i] = c.filter((el) => {
  15774. return el.type != 12;
  15775. });
  15776. this.fileC[i] = c.filter((el) => {
  15777. return el.type == 12;
  15778. });
  15779. // else if (c[j].type == 12) {
  15780. // this.fileC[i].push(c[j]);
  15781. // }
  15782. for (var j = 0; j < c.length; j++) {
  15783. if (c[j].type == 7) {
  15784. this.chapToolList[i].push(c[j]);
  15785. } else if (c[j].type == 8 || c[j].type == 14) {
  15786. this.lineList[i].push(c[j]);
  15787. } else if (c[j].type == 6) {
  15788. this.textList[i].push(c[j]);
  15789. } else {
  15790. if (
  15791. b.indexOf(
  15792. c[j].url
  15793. .split(".")
  15794. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15795. ) != -1
  15796. ) {
  15797. this.vedio[i].push(c[j]);
  15798. } else {
  15799. this.file[i].push(c[j]);
  15800. }
  15801. }
  15802. }
  15803. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15804. d.sources[0].src =
  15805. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15806. this.playerO[i] = d;
  15807. }
  15808. this.courseDetail = res.data[0][0];
  15809. this.tcid = this.arrayToArray(
  15810. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15811. this.tcid2 ? this.tcid2.split(",") : []
  15812. ).join(",");
  15813. this.evalua = res.data[0][0].evaId;
  15814. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15815. this.courseType
  15816. ];
  15817. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15818. if (this.tcid && res.data[1].length) {
  15819. let _inviteA = [];
  15820. for (var ik = 0; ik < res.data[1].length; ik++) {
  15821. _inviteA.push({
  15822. cid: res.data[1][ik].classid,
  15823. ic: res.data[1][ik].code,
  15824. });
  15825. }
  15826. for (var ik = 0; ik < _inviteA.length; ik++) {
  15827. if (
  15828. this.arrayToArray(
  15829. _inviteA[ik].cid.split(","),
  15830. this.tcid.split(",")
  15831. ).length
  15832. ) {
  15833. this.inviteCode = _inviteA[ik].ic;
  15834. break;
  15835. }
  15836. }
  15837. }
  15838. for (var l = 0; l < this.chapInfoList.length; l++) {
  15839. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15840. for (var m = 0; m < w.length; m++) {
  15841. w[m].id = l + "-" + m;
  15842. }
  15843. }
  15844. let taskCount = 0;
  15845. if (
  15846. _chapterData[taskCount].length &&
  15847. _chapterData[taskCount][0].type == 2
  15848. ) {
  15849. this.showType = 0;
  15850. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15851. } else {
  15852. if (_chapterData[taskCount].length > 0) {
  15853. let _url = _chapterData[taskCount][0].url;
  15854. if (
  15855. _chapterData[taskCount][0].type == 8 ||
  15856. _chapterData[taskCount][0].type == 14
  15857. ) {
  15858. this.showType = 2;
  15859. if (
  15860. _url.indexOf("https://") == -1 &&
  15861. _url.indexOf("http://") == -1
  15862. ) {
  15863. _url = "https://" + _url;
  15864. }
  15865. this.pptImgUrl1 = _url;
  15866. } else if (_chapterData[taskCount][0].type == 3) {
  15867. if (
  15868. _url
  15869. .split(".")
  15870. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15871. ) {
  15872. this.showType = 3;
  15873. this.pptImgUrl1 = _url;
  15874. } else if (
  15875. this.isAssetTypeAnImage(
  15876. _url
  15877. .split(".")
  15878. [_url.split(".").length - 1].toLocaleLowerCase()
  15879. )
  15880. ) {
  15881. this.showType = 4;
  15882. this.pptImgUrl1 = _url;
  15883. } else {
  15884. this.showType = 2;
  15885. this.pptImgUrl1 =
  15886. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15887. encodeURIComponent(_url);
  15888. }
  15889. } else if (_chapterData[taskCount][0].type == 13) {
  15890. this.showType = 4;
  15891. this.pptImgUrl1 = _url;
  15892. } else if (_chapterData[taskCount][0].type == 6) {
  15893. this.showType = 1;
  15894. this.text = this.textList[taskCount][0];
  15895. }
  15896. }
  15897. }
  15898. this.isClickNav = 0;
  15899. if (
  15900. !_chapterData[taskCount].length ||
  15901. _chapterData[taskCount][0].type == 12
  15902. ) {
  15903. this.isClickNav = "";
  15904. this.showType = "";
  15905. }
  15906. this.vChapterData = _chapterData;
  15907. } else {
  15908. this.showType = 0;
  15909. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15910. .chapterInfo[0].taskJson;
  15911. var b = [
  15912. "AVI",
  15913. "NAVI",
  15914. "MPEG",
  15915. "ASF",
  15916. "MOV",
  15917. "WMV",
  15918. "3GP",
  15919. "RM",
  15920. "RMVB",
  15921. "FLV",
  15922. "F4V",
  15923. "H.264",
  15924. "H.265",
  15925. "REAL VIDEO",
  15926. "MKV",
  15927. "WebM",
  15928. "HDDVD",
  15929. "MP4",
  15930. "MPG",
  15931. "M4V",
  15932. "MGV",
  15933. "OGV",
  15934. "QTM",
  15935. "STR",
  15936. "AMC",
  15937. "DVX",
  15938. "EVO",
  15939. "DAT",
  15940. "OGG",
  15941. "OGM",
  15942. "MP3",
  15943. ];
  15944. let _chapterData = [];
  15945. for (var i = 0; i < a.length; i++) {
  15946. var c = a[i].chapterData;
  15947. this.vedio[i] = [];
  15948. this.textList[i] = [];
  15949. this.lineList[i] = [];
  15950. this.chapToolList[i] = [];
  15951. this.file[i] = [];
  15952. this.fileC[i] = [];
  15953. _chapterData[i] = c.filter((el) => {
  15954. return el.type != 12;
  15955. });
  15956. this.fileC[i] = c.filter((el) => {
  15957. return el.type == 12;
  15958. });
  15959. for (var j = 0; j < c.length; j++) {
  15960. if (c[j].type == 7) {
  15961. this.chapToolList[i].push(c[j]);
  15962. } else if (c[j].type == 8 || c[j].type == 14) {
  15963. this.lineList[i].push(c[j]);
  15964. } else if (c[j].type == 6) {
  15965. this.textList[i].push(c[j]);
  15966. } else {
  15967. if (
  15968. b.indexOf(
  15969. c[j].url
  15970. .split(".")
  15971. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15972. ) != -1
  15973. ) {
  15974. this.vedio[i].push(c[j]);
  15975. } else {
  15976. this.file[i].push(c[j]);
  15977. }
  15978. }
  15979. }
  15980. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15981. d.sources[0].src =
  15982. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15983. this.playerO[i] = d;
  15984. }
  15985. let taskCount = 0;
  15986. if (
  15987. _chapterData[taskCount].length &&
  15988. _chapterData[taskCount][0].type == 2
  15989. ) {
  15990. this.showType = 0;
  15991. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15992. } else {
  15993. if (_chapterData[taskCount].length > 0) {
  15994. let _url = _chapterData[taskCount][0].url;
  15995. if (
  15996. _chapterData[taskCount][0].type == 8 ||
  15997. _chapterData[taskCount][0].type == 14
  15998. ) {
  15999. this.showType = 2;
  16000. if (
  16001. _url.indexOf("https://") == -1 &&
  16002. _url.indexOf("http://") == -1
  16003. ) {
  16004. _url = "https://" + _url;
  16005. }
  16006. this.pptImgUrl1 = _url;
  16007. } else if (_chapterData[taskCount][0].type == 3) {
  16008. if (
  16009. _url
  16010. .split(".")
  16011. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16012. ) {
  16013. this.showType = 3;
  16014. this.pptImgUrl1 = _url;
  16015. } else if (
  16016. this.isAssetTypeAnImage(
  16017. _url
  16018. .split(".")
  16019. [_url.split(".").length - 1].toLocaleLowerCase()
  16020. )
  16021. ) {
  16022. this.showType = 4;
  16023. this.pptImgUrl1 = _url;
  16024. } else {
  16025. this.showType = 2;
  16026. this.pptImgUrl1 =
  16027. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16028. encodeURIComponent(_url);
  16029. }
  16030. } else if (_chapterData[taskCount][0].type == 13) {
  16031. this.showType = 4;
  16032. this.pptImgUrl1 = _url;
  16033. } else if (_chapterData[taskCount][0].type == 6) {
  16034. this.showType = 1;
  16035. this.text = this.textList[taskCount][0];
  16036. }
  16037. }
  16038. }
  16039. this.isClickNav = 0;
  16040. if (
  16041. !_chapterData[taskCount].length ||
  16042. _chapterData[taskCount][0].type == 12
  16043. ) {
  16044. this.isClickNav = "";
  16045. this.showType = "";
  16046. }
  16047. this.vChapterData = _chapterData;
  16048. this.$forceUpdate();
  16049. }
  16050. // else {
  16051. // this.courseDetail = res.data[0][0];
  16052. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16053. // }
  16054. let _this = this;
  16055. if (_this.timer) {
  16056. clearInterval(_this.timer);
  16057. _this.timer = null;
  16058. }
  16059. if (_this.tcid) {
  16060. _this.getCourseGroup(gindex);
  16061. } else {
  16062. _this.selectSWorks(gindex);
  16063. }
  16064. _this.selectStudent();
  16065. _this.selectSLook();
  16066. _this.getPick();
  16067. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16068. _this.setCTask();
  16069. }
  16070. if (_this.dialogVisibleGroup) {
  16071. _this.groupJson =
  16072. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16073. _this.taskCount
  16074. ].toolChoose[_this.toolindex].groupJson;
  16075. }
  16076. _this.$nextTick(() => {
  16077. setTimeout(() => {
  16078. _this.checkEva();
  16079. }, 1000);
  16080. });
  16081. _this.timer = setInterval(function () {
  16082. // _this.getCourseDetail(2);
  16083. if (_this.tcid) {
  16084. _this.getCourseGroup(gindex);
  16085. } else {
  16086. _this.selectSWorks(gindex);
  16087. }
  16088. _this.selectStudent();
  16089. _this.selectSLook();
  16090. _this.getPick();
  16091. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16092. _this.setCTask();
  16093. }
  16094. if (_this.dialogVisibleGroup) {
  16095. _this.groupJson =
  16096. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16097. _this.taskCount
  16098. ].toolChoose[_this.toolindex].groupJson;
  16099. }
  16100. if (_this.tType == 4 || _this.ispzType == 4) {
  16101. _this.selectPz();
  16102. }
  16103. }, 5000);
  16104. _this.$nextTick(function () {
  16105. setTimeout(() => {
  16106. // var a =
  16107. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16108. // document.getElementsByClassName("vedioList")[0].style.height =
  16109. // a + "px";
  16110. // document.getElementsByClassName("navBox")[0].style.height =
  16111. // a - 40 + "px";
  16112. // if (_this.vedio[_this.taskCount].length > 0) {
  16113. // _this.vedioTime = [];
  16114. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16115. // _this.vedioTime[i] = document.getElementsByClassName(
  16116. // "vjs-duration-display"
  16117. // )[i].textContent;
  16118. // }
  16119. // }
  16120. }, 1000);
  16121. });
  16122. })
  16123. .catch((err) => {
  16124. loading.close();
  16125. console.error(err);
  16126. });
  16127. },
  16128. getCourseGroup(gindex) {
  16129. let params = {
  16130. cid: this.id,
  16131. classid: this.tcid ? this.tcid : "1",
  16132. };
  16133. this.ajax
  16134. .get(this.$store.state.api + "getCourseGroup", params)
  16135. .then((res) => {
  16136. if (res.data && res.data[0].length) {
  16137. if (!this.isGroup) {
  16138. let courseGroup = JSON.parse(res.data[0][0].group);
  16139. courseGroup.group = courseGroup.group.filter((el) => {
  16140. el.works = [];
  16141. return el;
  16142. });
  16143. if (courseGroup.isopen == 2) {
  16144. this.isGroup = false;
  16145. this.selectSWorks(gindex);
  16146. return;
  16147. }
  16148. this.courseGroup = courseGroup;
  16149. let groupPerson = res.data[1];
  16150. let group = JSON.parse(res.data[0][0].group).group;
  16151. let courseGroupStudent = {};
  16152. let courseGroupStudentUid = {};
  16153. for (var i = 0; i < group.length; i++) {
  16154. courseGroupStudent[group[i].id] = [];
  16155. courseGroupStudentUid[group[i].id] = [];
  16156. for (var j = 0; j < groupPerson.length; j++) {
  16157. if (groupPerson[j].groupCid == group[i].id) {
  16158. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16159. courseGroupStudentUid[group[i].id].push(
  16160. groupPerson[j].userid
  16161. );
  16162. }
  16163. }
  16164. }
  16165. this.courseGroupStudent = courseGroupStudent;
  16166. this.courseGroupStudentUid = courseGroupStudentUid;
  16167. }
  16168. if (this.courseGroup.isopen == 2) {
  16169. this.isGroup = false;
  16170. } else {
  16171. this.isGroup = true;
  16172. }
  16173. this.selectSWorks(gindex);
  16174. } else {
  16175. this.selectSWorks(gindex);
  16176. this.isGroup = false;
  16177. }
  16178. })
  16179. .catch((err) => {
  16180. // this.$message.error("网络不佳");
  16181. console.error(err);
  16182. });
  16183. },
  16184. setOperationTime() {
  16185. let _this = this;
  16186. if (_this.opertimer) {
  16187. clearInterval(_this.opertimer);
  16188. _this.opertimer = null;
  16189. }
  16190. _this.opertimer = setInterval(() => {
  16191. _this.setoTime("600");
  16192. }, 600000);
  16193. },
  16194. setoTime(time) {
  16195. let params = [
  16196. {
  16197. uid: this.userid,
  16198. cid: this.id,
  16199. type: "2",
  16200. time: time,
  16201. },
  16202. ];
  16203. this.ajax
  16204. .post(this.$store.state.api + "addOperationTimeT2", params)
  16205. .then((res) => {})
  16206. .catch((err) => {
  16207. console.error(err);
  16208. });
  16209. },
  16210. addPz(type, content) {
  16211. if (type == "1" && this.pzConText == "") {
  16212. this.$message.error("评论不能为空!");
  16213. return;
  16214. }
  16215. let params = [
  16216. {
  16217. cid: this.id,
  16218. uid: this.userid,
  16219. s: this.courseType,
  16220. t: this.taskCount,
  16221. c: type == "1" ? this.pzConText : content,
  16222. type: type,
  16223. },
  16224. ];
  16225. this.ajax
  16226. .post(this.$store.state.api + "addPz2", params)
  16227. .then((res) => {
  16228. this.$message({
  16229. message: "添加成功",
  16230. type: "success",
  16231. });
  16232. this.pzConText = "";
  16233. this.addPzDialog = false;
  16234. this.selectPz();
  16235. })
  16236. .catch((err) => {
  16237. this.$message.error("添加失败");
  16238. console.error(err);
  16239. });
  16240. },
  16241. setReplyIndex(id, i) {
  16242. this.replyIndex = i;
  16243. this.replyPid = id;
  16244. this.replyDialogVisible = true;
  16245. },
  16246. addHf() {
  16247. if (this.reply == "") {
  16248. this.$message.error("回复不能为空!");
  16249. return;
  16250. }
  16251. let params = [
  16252. {
  16253. cid: this.id,
  16254. uid: this.userid,
  16255. s: this.courseType,
  16256. t: this.taskCount,
  16257. type: "1",
  16258. ct: 2,
  16259. pid: this.replyPid,
  16260. c: this.reply,
  16261. },
  16262. ];
  16263. this.ajax
  16264. .post(this.$store.state.api + "addHf", params)
  16265. .then((res) => {
  16266. this.reply = "";
  16267. this.$message({
  16268. message: "回复成功",
  16269. type: "success",
  16270. });
  16271. this.replyDialogVisible = false;
  16272. this.selectPz();
  16273. })
  16274. .catch((err) => {
  16275. this.$message.error("回复失败");
  16276. console.error(err);
  16277. });
  16278. },
  16279. deletePz(id) {
  16280. this.$confirm("确定删除此评论吗?", "提示", {
  16281. confirmButtonText: "确定",
  16282. cancelButtonText: "取消",
  16283. type: "warning",
  16284. })
  16285. .then(() => {
  16286. let params = [
  16287. {
  16288. id: id,
  16289. },
  16290. ];
  16291. this.ajax
  16292. .post(this.$store.state.api + "deletePz", params)
  16293. .then((res) => {
  16294. this.$message({
  16295. message: "删除成功",
  16296. type: "success",
  16297. });
  16298. this.selectPz();
  16299. })
  16300. .catch((err) => {
  16301. this.$message.error("网络异常");
  16302. console.error(err);
  16303. });
  16304. })
  16305. .catch(() => {});
  16306. },
  16307. deleteReply(id) {
  16308. this.$confirm("确定删除此回复吗?", "提示", {
  16309. confirmButtonText: "确定",
  16310. cancelButtonText: "取消",
  16311. type: "warning",
  16312. })
  16313. .then(() => {
  16314. let params = [
  16315. {
  16316. id: id,
  16317. },
  16318. ];
  16319. this.ajax
  16320. .post(this.$store.state.api + "deleteReply", params)
  16321. .then((res) => {
  16322. this.$message({
  16323. message: "删除成功",
  16324. type: "success",
  16325. });
  16326. this.selectPz();
  16327. })
  16328. .catch((err) => {
  16329. this.$message.error("网络异常");
  16330. console.error(err);
  16331. });
  16332. })
  16333. .catch(() => {});
  16334. },
  16335. setPz() {
  16336. if (this.ispzType == 4) {
  16337. this.ispzType = 0;
  16338. this.pzDialog = false;
  16339. return;
  16340. }
  16341. this.ispzType = 4;
  16342. this.pzDialog = true;
  16343. this.selectPz();
  16344. },
  16345. selectPz() {
  16346. let params = {
  16347. cid: this.id,
  16348. s: this.courseType,
  16349. t: this.taskCount,
  16350. type: this.pzStype,
  16351. uid: this.userid,
  16352. };
  16353. this.ajax
  16354. .get(this.$store.state.api + "selectPzListType", params)
  16355. .then((res) => {
  16356. this.pzList = res.data[0];
  16357. var a = res.data[1];
  16358. for (var i = 0; i < a.length; i++) {
  16359. for (var j = 0; j < this.pzList.length; j++) {
  16360. if (!this.pzList[j].hfList) {
  16361. this.pzList[j].hfList = [];
  16362. }
  16363. if (a[i].pid == this.pzList[j].id) {
  16364. this.pzList[j].hfList.push(a[i]);
  16365. }
  16366. }
  16367. }
  16368. })
  16369. .catch((err) => {
  16370. console.error(err);
  16371. });
  16372. },
  16373. // selectHf() {
  16374. // let params = {
  16375. // cid: this.id,
  16376. // s: this.courseType,
  16377. // t: this.taskCount,
  16378. // };
  16379. // this.ajax
  16380. // .get(this.$store.state.api + "selectHfList", params)
  16381. // .then((res) => {
  16382. // var a = res.data[0];
  16383. // for (var i = 0; i < a.length; i++) {
  16384. // for (var j = 0; j < this.pzList.length; j++) {
  16385. // if (!this.pzList[i].hfList) {
  16386. // this.pzList[i].hfList = [];
  16387. // }
  16388. // if (a[i].pid == this.pzList[j].id) {
  16389. // this.pzList[i].hfList.push(a[i]);
  16390. // }
  16391. // }
  16392. // }
  16393. // })
  16394. // .catch((err) => {
  16395. // console.error(err);
  16396. // });
  16397. // },
  16398. updateSLook() {
  16399. let params = {
  16400. sopen: this.sIsOpen == false ? 1 : 2,
  16401. cid: this.id,
  16402. };
  16403. this.ajax
  16404. .get(this.$store.state.api + "updateTrainCourseSLook", params)
  16405. .then((res) => {
  16406. if (this.sIsOpen == true) {
  16407. this.$message({
  16408. message: "权限设置成功",
  16409. type: "success",
  16410. });
  16411. } else {
  16412. this.$message({
  16413. message: "权限关闭成功",
  16414. type: "success",
  16415. });
  16416. }
  16417. })
  16418. .catch((err) => {
  16419. console.error(err);
  16420. });
  16421. },
  16422. updateFollow() {
  16423. let params = [
  16424. {
  16425. sopen: this.IsFollow == false ? 1 : 2,
  16426. cid: this.id,
  16427. },
  16428. ];
  16429. this.ajax
  16430. .post(this.$store.state.api + "updateTrainCourseFollow", params)
  16431. .then((res) => {
  16432. if (this.IsFollow == true) {
  16433. this.$message({
  16434. message: "开启成功",
  16435. type: "success",
  16436. });
  16437. } else {
  16438. this.$message({
  16439. message: "关闭成功",
  16440. type: "success",
  16441. });
  16442. }
  16443. this.setCTask();
  16444. })
  16445. .catch((err) => {
  16446. console.error(err);
  16447. });
  16448. },
  16449. setCTask() {
  16450. let params = [
  16451. {
  16452. sopen: this.courseType + "-" + this.taskCount,
  16453. cid: this.id,
  16454. },
  16455. ];
  16456. this.ajax
  16457. .post(this.$store.state.api + "updateTrainCourseFollowC", params)
  16458. .then((res) => {})
  16459. .catch((err) => {
  16460. console.error(err);
  16461. });
  16462. },
  16463. updateLookOpen() {
  16464. let params = [
  16465. {
  16466. sopen: this.IsLookOpen == false ? 1 : 2,
  16467. cid: this.id,
  16468. },
  16469. ];
  16470. this.ajax
  16471. .post(this.$store.state.api + "updateTrainCourseLookOpen", params)
  16472. .then((res) => {
  16473. if (this.IsLookOpen == true) {
  16474. // if (this.courseType != 0 && this.taskCount != 0) {
  16475. // this.openTask(0, 0, "0-0");
  16476. // }
  16477. this.$message({
  16478. message: "权限设置成功",
  16479. type: "success",
  16480. });
  16481. } else {
  16482. this.$message({
  16483. message: "权限关闭成功",
  16484. type: "success",
  16485. });
  16486. }
  16487. this.getCourseState(2);
  16488. })
  16489. .catch((err) => {
  16490. console.error(err);
  16491. });
  16492. },
  16493. selectSLook() {
  16494. let params = {
  16495. cid: this.id,
  16496. };
  16497. this.ajax
  16498. .get(this.$store.state.api + "selectTrainCourseSLook", params)
  16499. .then((res) => {
  16500. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16501. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16502. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16503. if (!this.IsLookOpen) {
  16504. this.setNavList();
  16505. } else {
  16506. this.getCourseState(1);
  16507. }
  16508. if (this.IsFollow && this.tType == 2) {
  16509. this.setContent2(false);
  16510. let _followC = res.data[0][0].followC.split("-");
  16511. if (
  16512. this.courseType != _followC[0] ||
  16513. this.taskCount != _followC[1]
  16514. ) {
  16515. this.navList[this.courseType].isOpen = false;
  16516. this.courseType = _followC[0];
  16517. this.navList[this.courseType].isOpen = true;
  16518. this.taskCount = parseInt(_followC[1]);
  16519. this.navId = res.data[0][0].followC;
  16520. document.scrollingElement.scrollTop = 0;
  16521. this.getCourseDetail(2);
  16522. }
  16523. }
  16524. })
  16525. .catch((err) => {
  16526. console.error(err);
  16527. });
  16528. },
  16529. setNavList() {
  16530. if (this.navList.length == 0) {
  16531. this.navList = [];
  16532. var copyList = [];
  16533. for (var l = 0; l < this.chapInfoList.length; l++) {
  16534. var q = this.chapInfoList[l].dyName;
  16535. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16536. var e;
  16537. copyList.push({
  16538. dyName: q,
  16539. isOpen: l === 0 ? true : false,
  16540. task: [],
  16541. });
  16542. for (var r = 0; r < w.length; r++) {
  16543. e = w[r].task;
  16544. if (this.chapInfoList[l].easy == 1) {
  16545. copyList[l].task.push({
  16546. taskName: q,
  16547. id: l + "-" + r,
  16548. isLook: w[r].isLook,
  16549. isOpen: r === 0 ? true : false,
  16550. tool: [],
  16551. });
  16552. } else {
  16553. copyList[l].task.push({
  16554. taskName: e,
  16555. id: l + "-" + r,
  16556. isLook: w[r].isLook,
  16557. isOpen: r === 0 ? true : false,
  16558. tool: [],
  16559. });
  16560. }
  16561. var t = w[r].toolChoose;
  16562. for (var k = 0; k < t.length; k++) {
  16563. var tool = t[k].tool[0];
  16564. copyList[l].task[r].tool.push({
  16565. tool: tool,
  16566. isTool: false,
  16567. });
  16568. }
  16569. // this.navId = this.navId ? this.navId : l + "-" + r;
  16570. // this.navId = l + "-" + r;
  16571. }
  16572. }
  16573. this.navList = copyList;
  16574. this.navList[0].isOpen = false;
  16575. this.navList[this.courseType].isOpen = true;
  16576. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16577. } else {
  16578. this.setNavList2();
  16579. }
  16580. },
  16581. setNavList2() {
  16582. for (var l = 0; l < this.chapInfoList.length; l++) {
  16583. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16584. for (var r = 0; r < w.length; r++) {
  16585. this.navList[l].task[r].isLook = w[r].isLook;
  16586. }
  16587. }
  16588. if (
  16589. this.IsLookOpen &&
  16590. !this.navList[this.courseType].task[this.taskCount].isLook
  16591. ) {
  16592. this.openTask(0, 0, "0-0");
  16593. }
  16594. this.$forceUpdate();
  16595. },
  16596. getCourseState(type) {
  16597. let params = {
  16598. cid: this.id,
  16599. };
  16600. this.ajax
  16601. .get(this.$store.state.api + "getCourseState", params)
  16602. .then((res) => {
  16603. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16604. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16605. this.setNavList();
  16606. this.$forceUpdate();
  16607. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16608. this.addCourseState(2);
  16609. } else {
  16610. this.addCourseState(1);
  16611. }
  16612. })
  16613. .catch((err) => {
  16614. console.error(err);
  16615. });
  16616. },
  16617. addCourseState(type) {
  16618. let _state = this.chapInfoList;
  16619. // this.courseType this.taskCount
  16620. if (type == 1 || type == 2) {
  16621. for (var i = 0; i < _state.length; i++) {
  16622. let el = _state[i].chapterInfo[0].taskJson;
  16623. for (var j = 0; j < el.length; j++) {
  16624. // if (i == 0 && j == 0) {
  16625. // el[j].isLook = true;
  16626. // } else {
  16627. // el[j].isLook = false;
  16628. // }
  16629. if (
  16630. this.courseType > i ||
  16631. (this.courseType == i && this.taskCount + 1 > j)
  16632. ) {
  16633. el[j].isLook = true;
  16634. } else {
  16635. el[j].isLook = false;
  16636. }
  16637. }
  16638. }
  16639. }
  16640. let params = [
  16641. {
  16642. cid: this.id,
  16643. state: JSON.stringify(_state),
  16644. },
  16645. ];
  16646. this.ajax
  16647. .post(
  16648. this.$store.state.api +
  16649. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16650. params
  16651. )
  16652. .then((res) => {
  16653. if (this.IsLookOpen) {
  16654. this.setNavList();
  16655. }
  16656. if (type == 3 && type == 2) {
  16657. this.getCourseState(1);
  16658. }
  16659. })
  16660. .catch((err) => {
  16661. console.error(err);
  16662. });
  16663. },
  16664. getHomeWork() {
  16665. let params = {
  16666. cid: this.id,
  16667. stage: this.courseType,
  16668. task: this.taskCount,
  16669. uid: this.userid,
  16670. };
  16671. this.ajax
  16672. .get(this.$store.state.api + "selectWork", params)
  16673. .then((res) => {
  16674. if (res.data[0].length > 0) {
  16675. this.studyJuri = JSON.parse(res.data[0][0].content);
  16676. this.isNoHomeWork = true;
  16677. }
  16678. })
  16679. .catch((err) => {
  16680. console.error(err);
  16681. });
  16682. },
  16683. isAssetTypeAnImage(ext) {
  16684. return (
  16685. [
  16686. "png",
  16687. "jpg",
  16688. "jpeg",
  16689. "bmp",
  16690. "gif",
  16691. "webp",
  16692. "psd",
  16693. "svg",
  16694. "tiff",
  16695. ].indexOf(ext) !== -1
  16696. );
  16697. },
  16698. switchVideo(media) {
  16699. this.playerO = {};
  16700. this.playerOptions.poster = "";
  16701. this.playerOptions.sources[0].src = media;
  16702. this.playerO = this.playerOptions;
  16703. },
  16704. onPlayerPlay() {},
  16705. onPlayerTimeupdate(player) {
  16706. let gklog = player.cache_.currentTime; //当前播放的秒数
  16707. let a = player.cache_.duration; //视频的总时长
  16708. let gklog2 = parseInt(gklog);
  16709. // if(gklog2 == '3'){
  16710. // player.pause()
  16711. // setTimeout(()=>{
  16712. // player.currentTime(gklog2+1)
  16713. // player.play()
  16714. // },1000)
  16715. // }
  16716. console.log(" onPlayerTimeupdate!", gklog);
  16717. console.log(" onPlayerTimeupdate!", gklog2);
  16718. },
  16719. lookVedio(u, i) {
  16720. this.isClickNav = "";
  16721. // this.playerOptions.sources[0].src = u;
  16722. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16723. d.sources[0].src = u;
  16724. this.playerO[0] = d;
  16725. this.showType = 0;
  16726. // this.isClickNav = "video" + i;
  16727. this.isClickNav = i;
  16728. this.$forceUpdate();
  16729. },
  16730. lookText(i, t) {
  16731. this.isClickNav = "";
  16732. // this.text = this.textList[i][t];
  16733. this.text = this.vChapterData[i][t];
  16734. // this.dialogVisible1 = true;
  16735. this.showType = 1;
  16736. // this.isClickNav = "text" + t;
  16737. this.isClickNav = t;
  16738. },
  16739. lookTools(i, t) {
  16740. this.chapTools = this.chapToolList[i][t];
  16741. this.dialogVisible2 = true;
  16742. },
  16743. openFile(f) {
  16744. this.pptImgUrl = "";
  16745. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16746. if (
  16747. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16748. -1
  16749. ) {
  16750. this.pptImgUrl =
  16751. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16752. this.showPDF = false;
  16753. this.dialogVisible3 = true;
  16754. } else if (
  16755. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16756. ) {
  16757. this.pptImgUrl = f;
  16758. this.showPDF = true;
  16759. this.dialogVisible3 = true;
  16760. }
  16761. },
  16762. openTable(f) {
  16763. this.tableJson = JSON.parse(f.works);
  16764. this.dialogVisibleTable2 = true;
  16765. },
  16766. openWord(f) {
  16767. this.tableJson = JSON.parse(f.works);
  16768. this.dialogVisibleTable3 = true;
  16769. },
  16770. doUrl(url, i) {
  16771. this.isClickNav = "";
  16772. this.pptImgUrl1 = "";
  16773. this.showType = 2;
  16774. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16775. url = "https://" + url;
  16776. }
  16777. this.pptImgUrl1 = "";
  16778. setTimeout(() => {
  16779. this.pptImgUrl1 = url;
  16780. }, 500);
  16781. // this.isClickNav = "line" + i;
  16782. this.isClickNav = i;
  16783. this.$forceUpdate();
  16784. },
  16785. checkPhoto(f, i) {
  16786. this.showType = 4;
  16787. this.pptImgUrl1 = f.url;
  16788. this.isClickNav = i;
  16789. this.$forceUpdate();
  16790. },
  16791. downFile(f, i) {
  16792. this.isClickNav = "";
  16793. this.pptImgUrl1 = "";
  16794. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16795. if (
  16796. a.indexOf(
  16797. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16798. ) != -1
  16799. ) {
  16800. this.pptImgUrl1 =
  16801. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  16802. // this.dialogVisible3 = true;
  16803. this.showType = 2;
  16804. } else if (
  16805. this.isAssetTypeAnImage(
  16806. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16807. )
  16808. ) {
  16809. this.showType = 4;
  16810. this.pptImgUrl1 = f.url;
  16811. } else if (
  16812. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16813. "PDF"
  16814. ) {
  16815. this.pptImgUrl1 = f.url;
  16816. // this.dialogVisible3 = true;
  16817. this.showType = 3;
  16818. } else {
  16819. window.open(this.file[i].url);
  16820. }
  16821. // this.isClickNav = "word" + i;
  16822. this.isClickNav = i;
  16823. },
  16824. downFileList(i) {
  16825. window.open(this.noImgList[i].url);
  16826. },
  16827. openAddWork() {
  16828. this.dialogVisible = true;
  16829. },
  16830. addBzWorks() {
  16831. let params = [
  16832. {
  16833. uid: this.userid,
  16834. cid: this.id,
  16835. stage: this.courseType,
  16836. task: this.taskCount,
  16837. tool: this.toolindex,
  16838. content: JSON.stringify(this.eScore),
  16839. type: 6,
  16840. },
  16841. ];
  16842. this.ajax
  16843. .post(this.$store.state.api + "addCourseWorks", params)
  16844. .then((res) => {
  16845. this.$message({
  16846. message: "提交成功",
  16847. type: "success",
  16848. });
  16849. this.eScore = { eBzText: "", eStar: [] };
  16850. this.studentEvalDialogVisible = false;
  16851. this.selectSWorks();
  16852. })
  16853. .catch((err) => {
  16854. this.$message.error("提交失败");
  16855. console.error(err);
  16856. });
  16857. },
  16858. addBzWorksTeacher() {
  16859. let params = [
  16860. {
  16861. uid: this.sStudent.userid,
  16862. cid: this.id,
  16863. stage: this.courseType,
  16864. task: this.taskCount,
  16865. tool: this.toolindex,
  16866. content: JSON.stringify(this.eScore),
  16867. type: 6,
  16868. },
  16869. ];
  16870. this.ajax
  16871. .post(this.$store.state.api + "addCourseWorks", params)
  16872. .then((res) => {
  16873. this.$message({
  16874. message: "提交成功",
  16875. type: "success",
  16876. });
  16877. this.eScore = { eBzText: "", eStar: [] };
  16878. this.studentEvalDialogVisibleTeacher = false;
  16879. this.selectSWorks();
  16880. })
  16881. .catch((err) => {
  16882. this.$message.error("提交失败");
  16883. console.error(err);
  16884. });
  16885. },
  16886. addStudentAsk() {
  16887. if (!this.radio.length) {
  16888. this.$message.error("请选择选项");
  16889. return;
  16890. }
  16891. for (var i = 0; i < this.askJson.askCount; i++) {
  16892. if (
  16893. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16894. (this.radio[i] !== 0 && !this.radio[i])
  16895. ) {
  16896. this.$message.error("请选择选项");
  16897. return;
  16898. }
  16899. }
  16900. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16901. let params = [
  16902. {
  16903. uid: this.userid,
  16904. cid: this.id,
  16905. stage: this.courseType,
  16906. task: this.taskCount,
  16907. tool: this.toolindex,
  16908. content: JSON.stringify(this.askList),
  16909. type: 2,
  16910. },
  16911. ];
  16912. this.ajax
  16913. .post(this.$store.state.api + "addCourseWorks", params)
  16914. .then((res) => {
  16915. this.$message({
  16916. message: "提交成功",
  16917. type: "success",
  16918. });
  16919. this.askList = [];
  16920. this.dialogVisible5 = false;
  16921. this.selectStudent();
  16922. this.selectSWorks();
  16923. this.selectSLook();
  16924. })
  16925. .catch((err) => {
  16926. this.$message.error("提交失败");
  16927. console.error(err);
  16928. });
  16929. },
  16930. addStudentAskTeacher() {
  16931. if (!this.radio.length) {
  16932. this.$message.error("请选择选项");
  16933. return;
  16934. }
  16935. for (var i = 0; i < this.askJson.askCount; i++) {
  16936. if (
  16937. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16938. (this.radio[i] !== 0 && !this.radio[i])
  16939. ) {
  16940. this.$message.error("请选择选项");
  16941. return;
  16942. }
  16943. }
  16944. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16945. let params = [
  16946. {
  16947. uid: this.sStudent.userid,
  16948. cid: this.id,
  16949. stage: this.courseType,
  16950. task: this.taskCount,
  16951. tool: this.toolindex,
  16952. content: JSON.stringify(this.askList),
  16953. type: 2,
  16954. },
  16955. ];
  16956. this.ajax
  16957. .post(this.$store.state.api + "addCourseWorks", params)
  16958. .then((res) => {
  16959. this.$message({
  16960. message: "提交成功",
  16961. type: "success",
  16962. });
  16963. this.askList = [];
  16964. this.dialogVisible5Teacher = false;
  16965. this.selectStudent();
  16966. this.selectSWorks();
  16967. this.selectSLook();
  16968. })
  16969. .catch((err) => {
  16970. this.$message.error("提交失败");
  16971. console.error(err);
  16972. });
  16973. },
  16974. addStudentTest() {
  16975. if (!this.radio.length) {
  16976. this.$message.error("请选择选项");
  16977. return;
  16978. }
  16979. for (var i = 0; i < this.testJson.testCount; i++) {
  16980. if (
  16981. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16982. (this.radio[i] !== 0 && !this.radio[i])
  16983. ) {
  16984. this.$message.error("请选择选项");
  16985. return;
  16986. }
  16987. }
  16988. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16989. let params = [
  16990. {
  16991. uid: this.userid,
  16992. cid: this.id,
  16993. stage: this.courseType,
  16994. task: this.taskCount,
  16995. tool: this.toolindex,
  16996. content: JSON.stringify(this.askList),
  16997. type: 8,
  16998. },
  16999. ];
  17000. this.ajax
  17001. .post(this.$store.state.api + "addCourseWorks", params)
  17002. .then((res) => {
  17003. this.$message({
  17004. message: "提交成功",
  17005. type: "success",
  17006. });
  17007. this.askList = [];
  17008. this.dialogVisibleChoice = false;
  17009. this.selectStudent();
  17010. this.selectSWorks();
  17011. this.selectSLook();
  17012. })
  17013. .catch((err) => {
  17014. this.$message.error("提交失败");
  17015. console.error(err);
  17016. });
  17017. },
  17018. addStudentTestTeacher() {
  17019. if (!this.radio.length) {
  17020. this.$message.error("请选择选项");
  17021. return;
  17022. }
  17023. for (var i = 0; i < this.testJson.testCount; i++) {
  17024. if (
  17025. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17026. (this.radio[i] !== 0 && !this.radio[i])
  17027. ) {
  17028. this.$message.error("请选择选项");
  17029. return;
  17030. }
  17031. }
  17032. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17033. let params = [
  17034. {
  17035. uid: this.sStudent.userid,
  17036. cid: this.id,
  17037. stage: this.courseType,
  17038. task: this.taskCount,
  17039. tool: this.toolindex,
  17040. content: JSON.stringify(this.askList),
  17041. type: 8,
  17042. },
  17043. ];
  17044. this.ajax
  17045. .post(this.$store.state.api + "addCourseWorks", params)
  17046. .then((res) => {
  17047. this.$message({
  17048. message: "提交成功",
  17049. type: "success",
  17050. });
  17051. this.askList = [];
  17052. this.dialogVisibleChoiceTeacher = false;
  17053. this.selectStudent();
  17054. this.selectSWorks();
  17055. this.selectSLook();
  17056. })
  17057. .catch((err) => {
  17058. this.$message.error("提交失败");
  17059. console.error(err);
  17060. });
  17061. },
  17062. addWork() {
  17063. if (this.studyJuri[0].content == "") {
  17064. this.$message.error("请将信息填写完整");
  17065. return;
  17066. } else if (this.studyJuri[0].cover.length == 0) {
  17067. this.$message.error("请将信息填写完整");
  17068. return;
  17069. } else if (this.studyJuri[0].upVedio.length == 0) {
  17070. this.$message.error("请将信息填写完整");
  17071. return;
  17072. }
  17073. if (this.isNoHomeWork) {
  17074. this.$confirm(
  17075. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17076. "提示",
  17077. {
  17078. confirmButtonText: "确定",
  17079. cancelButtonText: "取消",
  17080. type: "warning",
  17081. }
  17082. )
  17083. .then(() => {
  17084. let params = [
  17085. {
  17086. uid: this.userid,
  17087. cid: this.id,
  17088. stage: this.courseType,
  17089. task: this.taskCount,
  17090. content: JSON.stringify(this.studyJuri),
  17091. },
  17092. ];
  17093. this.ajax
  17094. .post(this.$store.state.api + "addWorks", params)
  17095. .then((res) => {
  17096. this.$message({
  17097. message: "提交成功",
  17098. type: "success",
  17099. });
  17100. this.isNoHomeWork = true;
  17101. this.dialogVisible = false;
  17102. })
  17103. .catch((err) => {
  17104. this.$message.error("提交失败");
  17105. console.error(err);
  17106. });
  17107. })
  17108. .catch(() => {});
  17109. } else {
  17110. let params = [
  17111. {
  17112. uid: this.userid,
  17113. cid: this.id,
  17114. stage: this.courseType,
  17115. task: this.taskCount,
  17116. content: JSON.stringify(this.studyJuri),
  17117. },
  17118. ];
  17119. this.ajax
  17120. .post(this.$store.state.api + "addWorks", params)
  17121. .then((res) => {
  17122. this.$message({
  17123. message: "提交成功",
  17124. type: "success",
  17125. });
  17126. this.isNoHomeWork = true;
  17127. this.dialogVisible = false;
  17128. })
  17129. .catch((err) => {
  17130. this.$message.error("提交失败");
  17131. console.error(err);
  17132. });
  17133. }
  17134. },
  17135. selectCount() {
  17136. let params = {
  17137. cid: this.id,
  17138. chid: this.courseType,
  17139. uid: this.userid,
  17140. };
  17141. this.ajax
  17142. .get(this.$store.state.api + "selectToolsCount", params)
  17143. .then((res) => {
  17144. for (var i = 0; i < res.data[0].length; i++) {
  17145. if (res.data[0][i].tools == 1) {
  17146. this.wbCount = res.data[0][i].count;
  17147. } else if (res.data[0][i].tools == 2) {
  17148. this.wordCount = res.data[0][i].count;
  17149. } else if (res.data[0][i].tools == 3) {
  17150. this.mindCount = res.data[0][i].count;
  17151. } else if (res.data[0][i].tools == 4) {
  17152. this.askCount = res.data[0][i].count;
  17153. } else if (res.data[0][i].tools == 6) {
  17154. this.noteCount = res.data[0][i].count;
  17155. } else if (res.data[0][i].tools == 7) {
  17156. this.mindNetWorkCount = res.data[0][i].count;
  17157. } else if (res.data[0][i].tools == 8) {
  17158. this.libraryCount = res.data[0][i].count;
  17159. } else if (res.data[0][i].tools == 16) {
  17160. this.workCount = res.data[0][i].count;
  17161. } else if (res.data[0][i].tools == 10) {
  17162. this.timeCount = res.data[0][i].count;
  17163. } else if (res.data[0][i].tools == 15) {
  17164. this.answerCount = res.data[0][i].count;
  17165. } else if (res.data[0][i].tools == 18) {
  17166. this.trainCount = res.data[0][i].count;
  17167. }
  17168. }
  17169. })
  17170. .catch((err) => {
  17171. console.error(err);
  17172. });
  17173. },
  17174. openTools(t, i, index, c, sName,id) {
  17175. var z = JSON.parse(c);
  17176. this.noteName = sName;
  17177. if (t == 4) {
  17178. this.radio = [];
  17179. this.isAnswer = false;
  17180. let b = z[0].anwer;
  17181. this.radio = b;
  17182. this.askJson = z[0].askJson;
  17183. this.isAnswer = true;
  17184. this.dialogVisible5 = true;
  17185. } else if (t == 45) {
  17186. this.radio = [];
  17187. this.isAnswer = false;
  17188. let b = z[0].anwer;
  17189. this.radio = b;
  17190. this.testJson = z[0].testJson;
  17191. this.isAnswer = true;
  17192. this.dialogVisibleChoice = true;
  17193. }else if(t == 69){
  17194. this.oldEnglishJson1 = {}
  17195. this.oldEnglishJson = {}
  17196. this.englishList1 = {}
  17197. this.newEngIndex = -1;
  17198. this.isNoUserid = false;
  17199. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17200. .toolChoose[i].englishList;
  17201. this.oldEnglishJson = z;
  17202. this.engWid = id;
  17203. this.newEnglishList = { engTitle:"",engText:"" }
  17204. this.newEnglishList1 = []
  17205. this.selectEngC(id,z);
  17206. }
  17207. // else if (t == 15) {
  17208. // this.answerQ = "";
  17209. // this.questionAnswer = "";
  17210. // this.answerQ = z[0].answerTitle;
  17211. // this.questionAnswer = z[0].answer;
  17212. // this.answerDialogVisible = true;
  17213. // }
  17214. },
  17215. fastText(p, t) {
  17216. if (t == 1) {
  17217. this.commentText += p;
  17218. } else {
  17219. this.eScore.eBzText += p;
  17220. }
  17221. },
  17222. addTools(t, i, index) {
  17223. var a = 0;
  17224. // this.taskCount = index;
  17225. this.toolindex = i;
  17226. if (t == 1) {
  17227. if (this.wbCount > 0) {
  17228. this.updateCount(this.wbCount, t);
  17229. } else {
  17230. this.wbCount++;
  17231. a = this.wbCount;
  17232. this.toolsCount(a, t);
  17233. }
  17234. window.topU.postMessage(
  17235. {
  17236. tools: "1",
  17237. cid: this.id,
  17238. stage: this.courseType,
  17239. task: this.taskCount,
  17240. tool: i,
  17241. },
  17242. "*"
  17243. );
  17244. } else if (t == 2) {
  17245. if (this.wordCount > 0) {
  17246. this.updateCount(this.wordCount, t);
  17247. } else {
  17248. this.wordCount++;
  17249. a = this.wordCount;
  17250. this.toolsCount(a, t);
  17251. }
  17252. window.topU.postMessage({ tools: "2" }, "*");
  17253. } else if (t == 3) {
  17254. if (this.mindCount > 0) {
  17255. this.updateCount(this.mindCount, t);
  17256. } else {
  17257. this.mindCount++;
  17258. a = this.mindCount;
  17259. this.toolsCount(a, t);
  17260. }
  17261. window.topU.postMessage(
  17262. {
  17263. tools: "3",
  17264. cid: this.id,
  17265. stage: this.courseType,
  17266. task: this.taskCount,
  17267. tool: i,
  17268. },
  17269. "*"
  17270. );
  17271. } else if (t == 4) {
  17272. this.radio = [];
  17273. this.noteName = "";
  17274. this.isAnswer = false;
  17275. if (this.askCount > 0) {
  17276. this.updateCount(this.askCount, t);
  17277. } else {
  17278. this.askCount++;
  17279. a = this.askCount;
  17280. this.toolsCount(a, t);
  17281. }
  17282. if (!this.dialogVisible2) {
  17283. this.askJson.askJson =
  17284. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17285. index
  17286. ].toolChoose[i].askJson;
  17287. this.askJson.askTitle =
  17288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17289. index
  17290. ].toolChoose[i].askTitle;
  17291. this.askJson.askCount =
  17292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17293. index
  17294. ].toolChoose[i].askCount;
  17295. } else {
  17296. this.askJson.askJson = this.chapTools.askJson.askJson;
  17297. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17298. this.askJson.askCount = this.chapTools.askJson.askCount;
  17299. }
  17300. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17301. if (this.askJson.askJson[k].type == "2") {
  17302. this.radio.push([]);
  17303. } else {
  17304. this.radio.push("");
  17305. }
  17306. }
  17307. this.dialogVisible5 = true;
  17308. // window.topU.postMessage({ tools: "4" }, "*");
  17309. } else if (t == 45) {
  17310. this.noteName = "";
  17311. this.radio = [];
  17312. this.isAnswer = false;
  17313. if (this.askCount > 0) {
  17314. this.updateCount(this.askCount, t);
  17315. } else {
  17316. this.askCount++;
  17317. a = this.askCount;
  17318. this.toolsCount(a, t);
  17319. }
  17320. this.testJson =
  17321. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17322. index
  17323. ].toolChoose[i].testJson;
  17324. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17325. if (this.testJson.testJson[k].type == "2") {
  17326. this.radio.push([]);
  17327. } else {
  17328. this.radio.push("");
  17329. }
  17330. }
  17331. this.dialogVisibleChoice = true;
  17332. // window.topU.postMessage({ tools: "4" }, "*");
  17333. } else if (t == 5) {
  17334. if (this.scoreCount > 0) {
  17335. this.updateCount(this.scoreCount, t);
  17336. } else {
  17337. this.scoreCount++;
  17338. a = this.scoreCount;
  17339. this.toolsCount(a, t);
  17340. }
  17341. this.dialogVisible4 = true;
  17342. // window.topU.postMessage({ tools: "5" }, "*");
  17343. } else if (t == 6) {
  17344. if (this.noteCount > 0) {
  17345. this.updateCount(this.noteCount, t);
  17346. } else {
  17347. this.noteCount++;
  17348. a = this.noteCount;
  17349. this.toolsCount(a, t);
  17350. }
  17351. window.topU.postMessage(
  17352. {
  17353. tools: "6",
  17354. cid: this.id,
  17355. stage: this.courseType,
  17356. task: this.taskCount,
  17357. tool: i,
  17358. },
  17359. "*"
  17360. );
  17361. } else if (t == 7) {
  17362. if (this.mindNetWorkCount > 0) {
  17363. this.updateCount(this.mindNetWorkCount, t);
  17364. } else {
  17365. this.mindNetWorkCount++;
  17366. a = this.mindNetWorkCount;
  17367. this.toolsCount(a, t);
  17368. }
  17369. window.topU.postMessage(
  17370. {
  17371. tools: "7",
  17372. cid: this.id,
  17373. stage: this.courseType,
  17374. task: this.taskCount,
  17375. tool: i,
  17376. },
  17377. "*"
  17378. );
  17379. } else if (t == 16) {
  17380. if (this.workCount > 0) {
  17381. this.updateCount(this.workCount, t);
  17382. } else {
  17383. this.workCount++;
  17384. a = this.workCount;
  17385. this.toolsCount(a, t);
  17386. }
  17387. this.dialogVisible = true;
  17388. } else if (t == 50) {
  17389. if (this.tType == 2) {
  17390. this.$message.error("不支持学生使用");
  17391. return;
  17392. }
  17393. this.plworkFile = [];
  17394. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17395. if (!this.uploadCid) {
  17396. this.$message.error(
  17397. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17398. );
  17399. return;
  17400. }
  17401. // this.uploadCid =
  17402. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17403. // index
  17404. // ].toolChoose[i].uploadJson[0];
  17405. this.selectUploadStudent(2);
  17406. } else if (t == 8) {
  17407. if (this.libraryCount > 0) {
  17408. this.updateCount(this.libraryCount, t);
  17409. } else {
  17410. this.libraryCount++;
  17411. a = this.libraryCount;
  17412. this.toolsCount(a, t);
  17413. }
  17414. window.topU.postMessage({ tools: "8" }, "*");
  17415. } else if (t == 17) {
  17416. if (this.libraryCount > 0) {
  17417. this.updateCount(this.libraryCount, t);
  17418. } else {
  17419. this.libraryCount++;
  17420. a = this.libraryCount;
  17421. this.toolsCount(a, t);
  17422. }
  17423. window.topU.postMessage({ tools: "17" }, "*");
  17424. } else if (t == 18) {
  17425. if (this.trainCount > 0) {
  17426. this.updateCount(this.trainCount, t);
  17427. } else {
  17428. this.trainCount++;
  17429. a = this.trainCount;
  17430. this.toolsCount(a, t);
  17431. }
  17432. window.topU.postMessage({ tools: "18" }, "*");
  17433. } else if (t == 10) {
  17434. if (this.timeCount > 0) {
  17435. this.updateCount(this.timeCount, t);
  17436. } else {
  17437. this.timeCount++;
  17438. a = this.timeCount;
  17439. this.toolsCount(a, t);
  17440. }
  17441. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17442. .taskJson[index].toolChoose[i].preTime
  17443. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17444. .toolChoose[i].preTime
  17445. : "";
  17446. this.timeDialogVisible = true;
  17447. } else if (t == 15) {
  17448. this.answerQ = "";
  17449. this.questionAnswer = "";
  17450. if (this.answerCount > 0) {
  17451. this.updateCount(this.answerCount, t);
  17452. } else {
  17453. this.answerCount++;
  17454. a = this.answerCount;
  17455. this.toolsCount(a, t);
  17456. }
  17457. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17458. .taskJson[index].toolChoose[i].answerQ
  17459. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17460. .toolChoose[i].answerQ
  17461. : "";
  17462. this.answerDialogVisible = true;
  17463. } else if (t == 21) {
  17464. window.topU.postMessage({ tools: "21" }, "*");
  17465. } else if (t == 22) {
  17466. window.topU.postMessage({ tools: "22" }, "*");
  17467. } else if (t == 23) {
  17468. window.topU.postMessage({ tools: "23" }, "*");
  17469. } else if (t == 24) {
  17470. window.topU.postMessage({ tools: "24" }, "*");
  17471. } else if (t == 25) {
  17472. window.topU.postMessage({ tools: "25" }, "*");
  17473. } else if (t == 31) {
  17474. window.topU.postMessage({ tools: "31" }, "*");
  17475. } else if (t == 28) {
  17476. window.topU.postMessage({ tools: "28" }, "*");
  17477. } else if (t == 37) {
  17478. window.topU.postMessage({ tools: "37" }, "*");
  17479. } else if (t == 38) {
  17480. window.topU.postMessage({ tools: "38" }, "*");
  17481. } else if (t == 39) {
  17482. window.topU.postMessage({ tools: "39" }, "*");
  17483. } else if (t == 32) {
  17484. window.topU.postMessage({ tools: "32" }, "*");
  17485. } else if (t == 66) {
  17486. window.topU.postMessage({ tools: "66" }, "*");
  17487. } else if (t == 67) {
  17488. window.topU.postMessage({ tools: "67" }, "*");
  17489. } else if (t == 68) {
  17490. window.topU.postMessage({ tools: "68" }, "*");
  17491. } else if (t == 57) {
  17492. // window.topU.postMessage({ tools: "57" }, "*");
  17493. window.topU.postMessage(
  17494. {
  17495. tools: "57u",
  17496. cid: this.id,
  17497. stage: this.courseType,
  17498. task: this.taskCount,
  17499. tool: i,
  17500. },
  17501. "*"
  17502. );
  17503. } else if (t == 58) {
  17504. window.topU.postMessage({ tools: "58" }, "*");
  17505. } else if (t == 59) {
  17506. window.topU.postMessage({ tools: "59" }, "*");
  17507. } else if (t == 60) {
  17508. window.topU.postMessage({ tools: "60" }, "*");
  17509. } else if (t == 61) {
  17510. window.topU.postMessage({ tools: "61" }, "*");
  17511. } else if (t == 63) {
  17512. window.topU.postMessage({ tools: "63" }, "*");
  17513. } else if (t == 69) {
  17514. if (this.worksStudent[i].length) {
  17515. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17516. if (this.userid == this.worksStudent[i][k].userid) {
  17517. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17518. break;
  17519. } else {
  17520. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17521. }
  17522. }
  17523. } else {
  17524. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17525. }
  17526. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17527. .taskJson[index].toolChoose[i].englishList
  17528. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17529. .toolChoose[i].englishList
  17530. : {};
  17531. this.englishToolIndex = i;
  17532. this.myAnList = this.myAnswerList1;
  17533. this.engDialogVisible = true;
  17534. } else if (t == 65) {
  17535. if (this.tType == 2) {
  17536. this.$message.error("不支持学生使用");
  17537. return;
  17538. }
  17539. this.uploadCid = this.tcid;
  17540. if (!this.uploadCid) {
  17541. this.$message.error(
  17542. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17543. );
  17544. return;
  17545. }
  17546. this.selectPickStudent();
  17547. } else if (t == 26) {
  17548. window.topU.postMessage(
  17549. {
  17550. tools: "26",
  17551. cid: this.id,
  17552. stage: this.courseType,
  17553. task: this.taskCount,
  17554. tool: i,
  17555. },
  17556. "*"
  17557. );
  17558. } else if (t == 40) {
  17559. if (this.evalCount > 0) {
  17560. this.updateCount(this.evalCount, t);
  17561. } else {
  17562. this.evalCount++;
  17563. a = this.evalCount;
  17564. this.toolsCount(a, t);
  17565. }
  17566. this.eScore = { eBzText: "", eStar: [] };
  17567. if (this.worksStudent[i].length) {
  17568. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17569. if (this.userid == this.worksStudent[i][k].userid) {
  17570. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17571. this.rateJson =
  17572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17573. index
  17574. ].toolChoose[i].rateJson;
  17575. break;
  17576. } else {
  17577. this.rateJson =
  17578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17579. index
  17580. ].toolChoose[i].rateJson;
  17581. }
  17582. }
  17583. } else {
  17584. this.rateJson =
  17585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17586. index
  17587. ].toolChoose[i].rateJson;
  17588. }
  17589. this.isStar = false;
  17590. this.studentEvalDialogVisible = true;
  17591. } else if (t == 41) {
  17592. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17593. .taskJson[index].toolChoose[i].selectJson
  17594. ? JSON.parse(
  17595. JSON.stringify(
  17596. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17597. index
  17598. ].toolChoose[i].selectJson
  17599. )
  17600. )
  17601. : { url: "", select: [], answer: [] };
  17602. if (this.worksStudent[i].length) {
  17603. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17604. if (this.userid == this.worksStudent[i][k].userid) {
  17605. var a = this.worksStudent[i][k].works.split(",");
  17606. for (var ki = 0; ki < a.length; ki++) {
  17607. a[ki] = parseInt(a[ki]);
  17608. }
  17609. this.selectAnswer = {
  17610. answer: a,
  17611. stu: this.worksStudent[i][k].sName,
  17612. };
  17613. break;
  17614. } else {
  17615. this.selectAnswer = { answer: [], stu: "" };
  17616. }
  17617. }
  17618. } else {
  17619. this.selectAnswer = { answer: [], stu: "" };
  17620. }
  17621. this.isSelect = false;
  17622. this.dialogVisibleSelect = true;
  17623. } else if (t == 44) {
  17624. window.topU.postMessage({ tools: "44" }, "*");
  17625. } else if (t == 47) {
  17626. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17627. .taskJson[index].toolChoose[i].sentenceList
  17628. ? JSON.parse(
  17629. JSON.stringify(
  17630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17631. index
  17632. ].toolChoose[i].sentenceList
  17633. )
  17634. )
  17635. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17636. for (var q = 0; q < this.sentenceList.length; q++) {
  17637. this.sentenceList[q].chooseSenList = [];
  17638. this.sentenceList[q].addChangeSen = [];
  17639. this.sentenceList[q].addChangeSen = JSON.parse(
  17640. JSON.stringify(this.sentenceList[q].addSentence)
  17641. );
  17642. this.sentenceList[q].chooseSenList.length =
  17643. this.sentenceList[q].rightAnswer.length;
  17644. }
  17645. this.dialogVisibleSentence = true;
  17646. } else if (t == 48) {
  17647. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17648. .taskJson[index].toolChoose[i].tableJson
  17649. ? JSON.parse(
  17650. JSON.stringify(
  17651. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17652. index
  17653. ].toolChoose[i].tableJson
  17654. )
  17655. )
  17656. : { text: "" };
  17657. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17658. if (this.worksStudent[i].length) {
  17659. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17660. if (this.userid == this.worksStudent[i][k].userid) {
  17661. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17662. break;
  17663. }
  17664. }
  17665. }
  17666. this.dialogVisibleTable = true;
  17667. } else if (t == 52) {
  17668. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17669. .taskJson[index].toolChoose[i].wordJson
  17670. ? JSON.parse(
  17671. JSON.stringify(
  17672. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17673. index
  17674. ].toolChoose[i].wordJson
  17675. )
  17676. )
  17677. : { text: "" };
  17678. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17679. if (this.worksStudent[i].length) {
  17680. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17681. if (this.userid == this.worksStudent[i][k].userid) {
  17682. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17683. break;
  17684. }
  17685. }
  17686. }
  17687. this.dialogVisibleWord = true;
  17688. } else if (t == 49) {
  17689. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  17690. return
  17691. }
  17692. this.groupJson =
  17693. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17694. index
  17695. ].toolChoose[i].groupJson;
  17696. this.islock = this.groupJson.islock == 1 ? true : false;
  17697. this.dialogVisibleGroup = true;
  17698. } else if (t == 62) {
  17699. this.videoJson =
  17700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17701. index
  17702. ].toolChoose[i].videoJson;
  17703. this.dialogVisibleVideo = true;
  17704. }
  17705. },
  17706. teacherWorkSubmit(t, i, index, s) {
  17707. this.sStudent = s;
  17708. this.toolindex = i;
  17709. this.sTool = t;
  17710. if (this.tType !== "1" && this.tType !== "4") {
  17711. return;
  17712. }
  17713. if (t == 16 || t == 32 || t == 50) {
  17714. this.dialogVisibleWorks = true;
  17715. } else if (t == 15) {
  17716. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17717. .taskJson[index].toolChoose[i].answerQ
  17718. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17719. .toolChoose[i].answerQ
  17720. : "";
  17721. this.questionAnswer = "";
  17722. this.answerDialogVisibleTeacher = true; //问答
  17723. } else if (t == 52) {
  17724. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17725. .taskJson[index].toolChoose[i].wordJson
  17726. ? JSON.parse(
  17727. JSON.stringify(
  17728. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17729. index
  17730. ].toolChoose[i].wordJson
  17731. )
  17732. )
  17733. : { text: "" };
  17734. if (this.worksStudent[i].length) {
  17735. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17736. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17737. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17738. break;
  17739. }
  17740. }
  17741. }
  17742. this.dialogVisibleWordTeacher = true; //文档
  17743. } else if (t == 4) {
  17744. this.radio = [];
  17745. this.noteName = "";
  17746. this.isAnswer = false;
  17747. if (this.askCount > 0) {
  17748. this.updateCount(this.askCount, t);
  17749. } else {
  17750. this.askCount++;
  17751. a = this.askCount;
  17752. this.toolsCount(a, t);
  17753. }
  17754. if (!this.dialogVisible2) {
  17755. this.askJson.askJson =
  17756. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17757. index
  17758. ].toolChoose[i].askJson;
  17759. this.askJson.askTitle =
  17760. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17761. index
  17762. ].toolChoose[i].askTitle;
  17763. this.askJson.askCount =
  17764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17765. index
  17766. ].toolChoose[i].askCount;
  17767. } else {
  17768. this.askJson.askJson = this.chapTools.askJson.askJson;
  17769. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17770. this.askJson.askCount = this.chapTools.askJson.askCount;
  17771. }
  17772. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17773. if (this.askJson.askJson[k].type == "2") {
  17774. this.radio.push([]);
  17775. } else {
  17776. this.radio.push("");
  17777. }
  17778. }
  17779. this.dialogVisible5Teacher = true;
  17780. } else if (t == 45) {
  17781. this.noteName = "";
  17782. this.radio = [];
  17783. this.isAnswer = false;
  17784. if (this.askCount > 0) {
  17785. this.updateCount(this.askCount, t);
  17786. } else {
  17787. this.askCount++;
  17788. a = this.askCount;
  17789. this.toolsCount(a, t);
  17790. }
  17791. this.testJson =
  17792. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17793. index
  17794. ].toolChoose[i].testJson;
  17795. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17796. if (this.testJson.testJson[k].type == "2") {
  17797. this.radio.push([]);
  17798. } else {
  17799. this.radio.push("");
  17800. }
  17801. }
  17802. this.dialogVisibleChoiceTeacher = true;
  17803. } else if (t == 41) {
  17804. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17805. .taskJson[index].toolChoose[i].selectJson
  17806. ? JSON.parse(
  17807. JSON.stringify(
  17808. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17809. index
  17810. ].toolChoose[i].selectJson
  17811. )
  17812. )
  17813. : { url: "", select: [], answer: [] };
  17814. if (this.worksStudent[i].length) {
  17815. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17816. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17817. var a = this.worksStudent[i][k].works.split(",");
  17818. for (var ki = 0; ki < a.length; ki++) {
  17819. a[ki] = parseInt(a[ki]);
  17820. }
  17821. this.selectAnswer = {
  17822. answer: a,
  17823. stu: this.worksStudent[i][k].sName,
  17824. };
  17825. break;
  17826. } else {
  17827. this.selectAnswer = { answer: [], stu: "" };
  17828. }
  17829. }
  17830. } else {
  17831. this.selectAnswer = { answer: [], stu: "" };
  17832. }
  17833. this.isSelect = false;
  17834. this.dialogVisibleSelectTeacher = true;
  17835. } else if (t == 47) {
  17836. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17837. .taskJson[index].toolChoose[i].sentenceList
  17838. ? JSON.parse(
  17839. JSON.stringify(
  17840. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17841. index
  17842. ].toolChoose[i].sentenceList
  17843. )
  17844. )
  17845. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17846. for (var q = 0; q < this.sentenceList.length; q++) {
  17847. this.sentenceList[q].chooseSenList = [];
  17848. this.sentenceList[q].addChangeSen = [];
  17849. this.sentenceList[q].addChangeSen = JSON.parse(
  17850. JSON.stringify(this.sentenceList[q].addSentence)
  17851. );
  17852. this.sentenceList[q].chooseSenList.length =
  17853. this.sentenceList[q].rightAnswer.length;
  17854. }
  17855. this.dialogVisibleSentenceTeacher = true;
  17856. } else if (t == 48) {
  17857. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17858. .taskJson[index].toolChoose[i].tableJson
  17859. ? JSON.parse(
  17860. JSON.stringify(
  17861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17862. index
  17863. ].toolChoose[i].tableJson
  17864. )
  17865. )
  17866. : { text: "" };
  17867. if (this.worksStudent[i].length) {
  17868. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17869. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17870. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17871. break;
  17872. }
  17873. }
  17874. }
  17875. this.dialogVisibleTableTeacher = true;
  17876. } else if (t == 40) {
  17877. if (this.evalCount > 0) {
  17878. this.updateCount(this.evalCount, t);
  17879. } else {
  17880. this.evalCount++;
  17881. a = this.evalCount;
  17882. this.toolsCount(a, t);
  17883. }
  17884. this.eScore = { eBzText: "", eStar: [] };
  17885. if (this.worksStudent[i].length) {
  17886. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17887. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17888. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17889. this.rateJson =
  17890. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17891. index
  17892. ].toolChoose[i].rateJson;
  17893. break;
  17894. } else {
  17895. this.rateJson =
  17896. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17897. index
  17898. ].toolChoose[i].rateJson;
  17899. }
  17900. }
  17901. } else {
  17902. this.rateJson =
  17903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17904. index
  17905. ].toolChoose[i].rateJson;
  17906. }
  17907. this.isStar = false;
  17908. this.studentEvalDialogVisibleTeacher = true;
  17909. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17910. window.topU.postMessage(
  17911. {
  17912. tools: t + "teacher",
  17913. cid: this.id,
  17914. stage: this.courseType,
  17915. task: this.taskCount,
  17916. tool: i,
  17917. student: this.sStudent,
  17918. },
  17919. "*"
  17920. );
  17921. }
  17922. },
  17923. openCocoPi(tool, i, uid, uname) {
  17924. let student = {
  17925. userid: uid,
  17926. student: uname,
  17927. };
  17928. if (tool == 57) {
  17929. window.topU.postMessage(
  17930. {
  17931. tools: tool + "teacher",
  17932. cid: this.id,
  17933. stage: this.courseType,
  17934. task: this.taskCount,
  17935. tool: i,
  17936. student: student,
  17937. },
  17938. "*"
  17939. );
  17940. }
  17941. },
  17942. setRightAnswer(s, i, j) {
  17943. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17944. if (
  17945. this.sentenceList[i].chooseSenList[q] == undefined ||
  17946. this.sentenceList[i].chooseSenList[q] == ""
  17947. ) {
  17948. this.sentenceList[i].chooseSenList[q] = s;
  17949. this.sentenceList[i].addChangeSen[j] = "";
  17950. break;
  17951. }
  17952. }
  17953. this.$forceUpdate();
  17954. },
  17955. returnCard(r, i, j) {
  17956. var a = this.sentenceList[i].addSentence.indexOf(r);
  17957. this.sentenceList[i].chooseSenList[j] = "";
  17958. this.sentenceList[i].addChangeSen[a] = r;
  17959. this.$forceUpdate();
  17960. },
  17961. // addSentenceTool() {
  17962. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17963. // this.taskCount
  17964. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17965. // this.sentenceList = [
  17966. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17967. // ];
  17968. // this.dialogVisibleSentence = false;
  17969. // },
  17970. toolsCount(a, t) {
  17971. let params = {
  17972. cid: this.id,
  17973. chid: this.courseType,
  17974. uid: this.userid,
  17975. tid: t,
  17976. count: a,
  17977. };
  17978. this.ajax
  17979. .get(this.$store.state.api + "insertToolsCount", params)
  17980. .then((res) => {
  17981. this.selectCount();
  17982. })
  17983. .catch((err) => {
  17984. console.error(err);
  17985. });
  17986. },
  17987. updateCount(c, t) {
  17988. c++;
  17989. let params = {
  17990. cid: this.id,
  17991. chid: this.courseType,
  17992. uid: this.userid,
  17993. tid: t,
  17994. count: c,
  17995. };
  17996. this.ajax
  17997. .get(this.$store.state.api + "updateToolsCount", params)
  17998. .then((res) => {
  17999. this.selectCount();
  18000. })
  18001. .catch((err) => {
  18002. console.error(err);
  18003. });
  18004. },
  18005. checkEva() {
  18006. if (this.evalua != "") {
  18007. for (var i = 0; i < this.evaJuri.length; i++) {
  18008. if (this.evalua == this.evaJuri[i].id) {
  18009. this.eTitle = this.evaJuri[i].title;
  18010. this.eJson = JSON.parse(this.evaJuri[i].content);
  18011. }
  18012. }
  18013. this.$forceUpdate();
  18014. setTimeout(() => {
  18015. this.setMindData();
  18016. }, 0);
  18017. }
  18018. },
  18019. selectEva() {
  18020. let params = {
  18021. oid: this.oid,
  18022. };
  18023. this.ajax
  18024. .get(this.$store.state.api + "selectAllEvaluation", params)
  18025. .then((res) => {
  18026. this.evaJuri = res.data[0];
  18027. })
  18028. .catch((err) => {
  18029. console.error(err);
  18030. });
  18031. },
  18032. setMindData() {
  18033. this.data.data = [];
  18034. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18035. let _eJson = Object.keys(this.eJson);
  18036. let _e = this.eJson;
  18037. for (let i = 0; i < _eJson.length; i++) {
  18038. let element = _e[_eJson[i]];
  18039. this.data.data.push({
  18040. id: element.id,
  18041. parentid: "root",
  18042. topic: element.name,
  18043. });
  18044. let _eJsonc = Object.keys(element.child);
  18045. let _e2 = element.child;
  18046. for (let j = 0; j < _eJsonc.length; j++) {
  18047. let _ec = _e2[_eJsonc[j]];
  18048. this.data.data.push({
  18049. id: _ec.id,
  18050. parentid: element.id,
  18051. topic: _ec.name,
  18052. });
  18053. let _eJsonz = Object.keys(_ec.child);
  18054. let _e3 = _ec.child;
  18055. for (let z = 0; z < _eJsonz.length; z++) {
  18056. let _ez = _e3[_eJsonz[z]];
  18057. this.data.data.push({
  18058. id: _ez.id,
  18059. parentid: _ec.id,
  18060. topic: _ez.name,
  18061. });
  18062. }
  18063. }
  18064. }
  18065. this.$forceUpdate();
  18066. },
  18067. checkFileFull(type, url) {
  18068. this.fullDialogVisible = true;
  18069. this.fulltype = type;
  18070. this.fullUrl = url;
  18071. },
  18072. checkFileFull1(t, f) {
  18073. this.fullDialogVisible = true;
  18074. if (t == 6) {
  18075. this.fulltype = 1;
  18076. this.fullUrl = JSON.parse(JSON.stringify(f));
  18077. } else if (t == 8) {
  18078. this.fulltype = 2;
  18079. this.fullUrl = f.url;
  18080. } else if (
  18081. t == 3 &&
  18082. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18083. "PDF"
  18084. ) {
  18085. this.fulltype = 3;
  18086. this.fullUrl = f.url;
  18087. } else if (t == 3) {
  18088. this.fulltype = 2;
  18089. this.fullUrl =
  18090. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  18091. }
  18092. },
  18093. openSname(n, id, i, uid) {
  18094. this.snameWid = id;
  18095. this.worksSName = n;
  18096. this.worksSid = uid == n ? "" : uid;
  18097. this.toolindex = i;
  18098. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18099. if (!this.uploadCid) {
  18100. this.$message.error(
  18101. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18102. );
  18103. return;
  18104. }
  18105. this.selectUploadStudent(1);
  18106. },
  18107. updateName() {
  18108. let params = {
  18109. n: this.worksSName,
  18110. cid: this.snameWid,
  18111. };
  18112. this.ajax
  18113. .get(this.$store.state.api + "updateCourseWorksName", params)
  18114. .then((res) => {
  18115. this.$message({
  18116. message: "修改成功",
  18117. type: "success",
  18118. });
  18119. this.dialogVisibleSname = false;
  18120. this.getCourseDetail(2);
  18121. this.snameWid = "";
  18122. this.worksSName = "";
  18123. })
  18124. .catch((err) => {
  18125. console.error(err);
  18126. });
  18127. },
  18128. downloadFile2(f) {
  18129. // const loading = this.$loading.service({
  18130. // background: "rgba(255, 255, 255, 0.7)",
  18131. // target: document.body,
  18132. // text: "文件加载中...",
  18133. // });
  18134. // let url2 = f.url;
  18135. // let _url2 = "";
  18136. // if (
  18137. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18138. // ) {
  18139. // _url2 = url2.split(
  18140. // "https://view.officeapps.live.com/op/view.aspx?src="
  18141. // )[1];
  18142. // } else {
  18143. // _url2 = url2;
  18144. // }
  18145. // let params = {
  18146. // url: _url2,
  18147. // name: f.name,
  18148. // };
  18149. // this.ajax
  18150. // .get(this.$store.state.api + "download", params)
  18151. // .then((res) => {
  18152. // loading.close();
  18153. // let content = res.data.data.data;
  18154. // let ab = new ArrayBuffer(content.length);
  18155. // let view = new Uint8Array(ab);
  18156. // for (var i = 0; i < content.length; ++i) {
  18157. // view[i] = content[i];
  18158. // }
  18159. // let elink = document.createElement("a");
  18160. // elink.download = f.name;
  18161. // elink.style.display = "none";
  18162. // let blob = new Blob([ab], {
  18163. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18164. // });
  18165. // elink.href = URL.createObjectURL(blob);
  18166. // document.body.appendChild(elink);
  18167. // elink.click();
  18168. // document.body.removeChild(elink);
  18169. // })
  18170. // .catch((err) => {
  18171. // loading.close();
  18172. // console.error(err);
  18173. // });
  18174. var credentials = {
  18175. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18176. secretAccessKey: "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",
  18177. }; //秘钥形式的登录上传
  18178. window.AWS.config.update(credentials);
  18179. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18180. let url2 = f.url;
  18181. let _url2 = "";
  18182. if (
  18183. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18184. ) {
  18185. _url2 = url2.split(
  18186. "https://view.officeapps.live.com/op/view.aspx?src="
  18187. )[1];
  18188. } else {
  18189. _url2 = url2;
  18190. }
  18191. let _this = this;
  18192. _this.downLoading = true
  18193. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18194. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18195. var params = {
  18196. Bucket: "ccrb",
  18197. Key: name
  18198. };
  18199. s3.getObject(params, function (err, data) {
  18200. _this.downLoading = false
  18201. if (err) console.log(err, err.stack); // an error occurred
  18202. else {
  18203. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18204. let a = document.createElement("a");
  18205. a.name = f.name;
  18206. a.href = url;
  18207. a.download = f.name;
  18208. a.click();
  18209. console.log(data);
  18210. } // sxuccessful response
  18211. });
  18212. return;
  18213. let url = f.url;
  18214. let _url = "";
  18215. if (
  18216. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18217. ) {
  18218. _url = url.split(
  18219. "https://view.officeapps.live.com/op/view.aspx?src="
  18220. )[1];
  18221. } else {
  18222. _url = url;
  18223. }
  18224. _this.downLoading = true
  18225. // const loading = _this.$loading.service({
  18226. // background: "rgba(255, 255, 255, 0.7)",
  18227. // target: document.body,
  18228. // text: "文件加载中...",
  18229. // });
  18230. let x = new XMLHttpRequest();
  18231. x.open("GET", _url, true);
  18232. x.responseType = "blob";
  18233. x.onload = function () {
  18234. _this.downLoading = false
  18235. // loading.close();
  18236. let url = window.URL.createObjectURL(new Blob([x.response]));
  18237. let a = document.createElement("a");
  18238. a.name = f.name;
  18239. a.href = url;
  18240. a.download = f.name;
  18241. a.click();
  18242. };
  18243. x.send();
  18244. },
  18245. downloadFile(url) {
  18246. var credentials = {
  18247. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18248. secretAccessKey: "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",
  18249. }; //秘钥形式的登录上传
  18250. window.AWS.config.update(credentials);
  18251. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18252. let url2 = url;
  18253. let _url2 = "";
  18254. if (
  18255. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18256. ) {
  18257. _url2 = url2.split(
  18258. "https://view.officeapps.live.com/op/view.aspx?src="
  18259. )[1];
  18260. } else {
  18261. _url2 = url2;
  18262. }
  18263. const loading2 = this.$loading.service({
  18264. background: "rgba(255, 255, 255, 0.7)",
  18265. target: document.body,
  18266. text: "文件加载中...",
  18267. });
  18268. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18269. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18270. var params = {
  18271. Bucket: "ccrb",
  18272. Key: name
  18273. };
  18274. s3.getObject(params, function (err, data) {
  18275. loading2.close();
  18276. if (err) console.log(err, err.stack); // an error occurred
  18277. else {
  18278. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18279. let a = document.createElement("a");
  18280. a.name = name;
  18281. a.href = url;
  18282. a.download = name;
  18283. a.click();
  18284. console.log(data);
  18285. } // sxuccessful response
  18286. });
  18287. return;
  18288. let _this = this;
  18289. let _url = "";
  18290. if (
  18291. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18292. ) {
  18293. _url = url.split(
  18294. "https://view.officeapps.live.com/op/view.aspx?src="
  18295. )[1];
  18296. } else {
  18297. _url = url;
  18298. }
  18299. const x = new XMLHttpRequest();
  18300. x.open("GET", _url, true);
  18301. x.responseType = "blob";
  18302. // this.downLoading = true
  18303. const loading = _this.$loading.service({
  18304. background: "rgba(255, 255, 255, 0.7)",
  18305. target: document.body,
  18306. text: "文件加载中...",
  18307. });
  18308. // _this.$message.success("文件下载中...");
  18309. x.onload = function (e) {
  18310. this.downLoading = false
  18311. loading.close();
  18312. let content = x.response;
  18313. let elink = document.createElement("a");
  18314. elink.download = decodeURI(
  18315. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18316. );
  18317. elink.style.display = "none";
  18318. let blob = new Blob([content]);
  18319. elink.href = URL.createObjectURL(blob);
  18320. document.body.appendChild(elink);
  18321. elink.click();
  18322. document.body.removeChild(elink);
  18323. };
  18324. x.send();
  18325. },
  18326. openLine(url) {
  18327. window.open(url);
  18328. },
  18329. resize() {
  18330. if (document.getElementsByClassName("box_course").length) {
  18331. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18332. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18333. if (this.showType == 2 || this.showType == 3) {
  18334. document.getElementsByClassName("navBox")[0].style.height =
  18335. a - 40 + 0+ "px";
  18336. } else {
  18337. document.getElementsByClassName("navBox")[0].style.height =
  18338. a - 40 + "px";
  18339. }
  18340. }
  18341. this.Stbodywidth =
  18342. document.getElementsByClassName("student_body").length &&
  18343. document.getElementsByClassName("student_body")[0].offsetWidth;
  18344. },
  18345. closeDraw() {
  18346. this.bg = null;
  18347. this.drawShow = false;
  18348. },
  18349. showPicturePaint(url) {
  18350. let params = {
  18351. img: url,
  18352. };
  18353. this.ajax
  18354. .get(this.$store.state.api + "imgToBase64", params)
  18355. .then((res) => {
  18356. this.drawShow = true;
  18357. this.bg = res.data[0].img;
  18358. })
  18359. .catch((err) => {
  18360. console.error(err);
  18361. });
  18362. },
  18363. addImgDraw(base64) {
  18364. let file = { name: "批注图.png" };
  18365. let img = this.dataUrlToFile(base64, file);
  18366. this.beforeUpload1(img, 5);
  18367. },
  18368. addImgDrawImG(url) {
  18369. // console.log(url);
  18370. let params = [
  18371. {
  18372. wid: this.commentDetail.wid,
  18373. img: url,
  18374. },
  18375. ];
  18376. this.ajax
  18377. .post(this.$store.state.api + "updateCourseWorks", params)
  18378. .then((res) => {
  18379. this.$message({
  18380. message: "提交成功",
  18381. type: "success",
  18382. });
  18383. this.drawShow = false;
  18384. this.bg = "";
  18385. this.selectSWorks();
  18386. this.selectStudent();
  18387. })
  18388. .catch((err) => {
  18389. this.$message.error("提交失败");
  18390. console.error(err);
  18391. });
  18392. },
  18393. deletePicturePaint() {
  18394. this.$confirm("确定删除此批注吗?", "提示", {
  18395. confirmButtonText: "确定",
  18396. cancelButtonText: "取消",
  18397. type: "warning",
  18398. })
  18399. .then(() => {
  18400. let params = [
  18401. {
  18402. wid: this.commentDetail.wid,
  18403. img: "",
  18404. },
  18405. ];
  18406. this.ajax
  18407. .post(this.$store.state.api + "updateCourseWorks", params)
  18408. .then((res) => {
  18409. this.$message({
  18410. message: "删除成功",
  18411. type: "success",
  18412. });
  18413. this.selectSWorks();
  18414. this.selectStudent();
  18415. })
  18416. .catch((err) => {
  18417. this.$message.error("删除失败");
  18418. console.error(err);
  18419. });
  18420. })
  18421. .catch(() => {});
  18422. },
  18423. getAudioVideo(constraintsData) {
  18424. if (navigator.mediaDevices === undefined) {
  18425. navigator.mediaDevices = {};
  18426. }
  18427. if (navigator.mediaDevices.getUserMedia === undefined) {
  18428. navigator.mediaDevices.getUserMedia = function (constraints) {
  18429. // 首先,如果有getUserMedia的话,就获得它
  18430. var getUserMedia =
  18431. navigator.getUserMedia ||
  18432. navigator.webkitGetUserMedia ||
  18433. navigator.mozGetUserMedia ||
  18434. navigator.msGetUserMedia;
  18435. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18436. if (!getUserMedia) {
  18437. return Promise.reject({ code: 404 });
  18438. }
  18439. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18440. return new Promise(function (resolve, reject) {
  18441. getUserMedia.call(navigator, constraints, resolve, reject);
  18442. });
  18443. };
  18444. }
  18445. return navigator.mediaDevices.getUserMedia(constraintsData);
  18446. },
  18447. /**
  18448. * 开始录制
  18449. */
  18450. startRecording(callback) {
  18451. let _function = (screenStream) => {
  18452. this.addStreamStopListener(screenStream, () => {
  18453. console.log("流停止监听");
  18454. this.stopRecording();
  18455. this.$emit("streamStop", {});
  18456. // this.stopRecording();
  18457. });
  18458. var options = {
  18459. type: "video",
  18460. mimeType: "video/webm",
  18461. disableLogs: false,
  18462. getNativeBlob: false, // enable it for longer recordings
  18463. ignoreMutedMedia: false,
  18464. };
  18465. // this.video.srcObject = screenStream;
  18466. this.recorder = RecordRTC(screenStream, options);
  18467. this.recorder.startRecording();
  18468. this.recorder.screen = screenStream;
  18469. this.videoStart = true;
  18470. // callback(true);
  18471. };
  18472. this.getAudioVideo({ audio: true })
  18473. .then((res) => {
  18474. this.captureScreen(_function, true);
  18475. console.log("已点击允许,开启成功");
  18476. })
  18477. .catch((err) => {
  18478. // console.log('浏览器不支持,请更换浏览器')
  18479. // } else {
  18480. this.captureScreen(_function, false);
  18481. console.log("请检查是否存在麦克风");
  18482. });
  18483. },
  18484. /**
  18485. * 停止录制
  18486. */
  18487. stopRecording(callback) {
  18488. this.recorder.stopRecording(() => {
  18489. // this.video.src = this.video.srcObject = null;
  18490. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18491. const url = URL.createObjectURL(this.recorder.getBlob());
  18492. const a = document.createElement("a"); //this.fileName+
  18493. let videoFile = new File(
  18494. [this.recorder.getBlob()],
  18495. this.courseDetail.title + "录屏.mp4",
  18496. {
  18497. type: "video/mp4",
  18498. }
  18499. );
  18500. let downloadUrl = URL.createObjectURL(videoFile);
  18501. document.body.appendChild(a);
  18502. a.style.display = "none";
  18503. a.href = url;
  18504. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18505. a.click();
  18506. this.recorder.screen.stop();
  18507. this.recorder.destroy();
  18508. this.recorder = null;
  18509. this.videoStart = false;
  18510. // callback(false);
  18511. });
  18512. },
  18513. //初始化
  18514. captureScreen(callback, type) {
  18515. if (navigator.getDisplayMedia) {
  18516. //录制结束,文件下载
  18517. navigator
  18518. .getDisplayMedia({
  18519. video: true,
  18520. })
  18521. .then((screenStream) => {
  18522. if (type) {
  18523. navigator.mediaDevices
  18524. .getUserMedia({ audio: true })
  18525. .then((mic) => {
  18526. screenStream.addTrack(mic.getTracks()[0]);
  18527. callback(screenStream);
  18528. });
  18529. } else {
  18530. callback(screenStream);
  18531. }
  18532. })
  18533. .catch(function (error) {
  18534. console.log("error", error);
  18535. });
  18536. } else if (navigator.mediaDevices.getDisplayMedia) {
  18537. navigator.mediaDevices
  18538. .getDisplayMedia({
  18539. video: true,
  18540. })
  18541. .then((screenStream) => {
  18542. if (type) {
  18543. navigator.mediaDevices
  18544. .getUserMedia({ audio: true })
  18545. .then((mic) => {
  18546. screenStream.addTrack(mic.getTracks()[0]);
  18547. callback(screenStream);
  18548. });
  18549. } else {
  18550. callback(screenStream);
  18551. }
  18552. })
  18553. .catch(function (error) {
  18554. console.log("error", error);
  18555. });
  18556. } else {
  18557. var error = "getDisplayMedia API are not supported in this browser.";
  18558. console.log("error", error);
  18559. alert(error);
  18560. }
  18561. },
  18562. //流监听
  18563. addStreamStopListener(stream, callback) {
  18564. stream.addEventListener(
  18565. "ended",
  18566. function () {
  18567. callback();
  18568. callback = function () {};
  18569. },
  18570. false
  18571. );
  18572. stream.addEventListener(
  18573. "inactive",
  18574. function () {
  18575. callback();
  18576. callback = function () {};
  18577. },
  18578. false
  18579. );
  18580. stream.getTracks().forEach(function (track) {
  18581. track.addEventListener(
  18582. "ended",
  18583. function () {
  18584. callback();
  18585. callback = function () {};
  18586. },
  18587. false
  18588. );
  18589. track.addEventListener(
  18590. "inactive",
  18591. function () {
  18592. callback();
  18593. callback = function () {};
  18594. },
  18595. false
  18596. );
  18597. });
  18598. },
  18599. updateGroup() {
  18600. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18601. this.dialogVisibleGroup2 = true;
  18602. },
  18603. numberPan() {
  18604. if (
  18605. /[^\d]/.test(this.groupJson.number) ||
  18606. this.groupJson.number < 2 ||
  18607. this.groupJson.number > 10
  18608. ) {
  18609. this.$message.error("请输入2-10的数字");
  18610. this.groupJson.number = "";
  18611. }
  18612. },
  18613. updateGroupJson() {
  18614. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18615. if (
  18616. this.groupStudentUid[this.toolindex][i].length >
  18617. this.groupJson2.number
  18618. ) {
  18619. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18620. return;
  18621. }
  18622. }
  18623. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18624. this.islock = this.groupJson.islock == 1 ? true : false;
  18625. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18626. this.taskCount
  18627. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18628. let params = [
  18629. {
  18630. cid: this.id,
  18631. chapters: JSON.stringify(this.chapInfoList),
  18632. uid: this.userid,
  18633. unitIndex: this.courseType,
  18634. },
  18635. ];
  18636. this.ajax
  18637. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  18638. .then((res) => {
  18639. this.$message.success("设置成功");
  18640. this.getCourseDetail(2);
  18641. this.dialogVisibleGroup2 = false;
  18642. this.groupJson2 = {};
  18643. this.$forceUpdate();
  18644. })
  18645. .catch((err) => {
  18646. this.$message.error("网络不佳");
  18647. console.error(err);
  18648. });
  18649. },
  18650. lockChair() {
  18651. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18652. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18653. this.updateGroupJson();
  18654. },
  18655. selectGroup(index) {
  18656. this.getCourseDetail(2, index);
  18657. },
  18658. joinGroup(index) {
  18659. if (this.groupJson.islock == 2) {
  18660. this.$message.error("位置已被锁定,无法加入");
  18661. return;
  18662. }
  18663. if (
  18664. this.groupStudent[this.toolindex][index].length >
  18665. this.groupJson.number ||
  18666. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18667. ) {
  18668. this.$message.error("位置已满,无法加入");
  18669. return;
  18670. }
  18671. let params = [
  18672. {
  18673. cid: this.id,
  18674. stage: this.courseType,
  18675. task: this.taskCount,
  18676. tool: this.toolindex,
  18677. g: index,
  18678. uid: this.userid,
  18679. },
  18680. ];
  18681. this.ajax
  18682. .post(this.$store.state.api + "joinGroup", params)
  18683. .then((res) => {
  18684. this.$message.success("加入成功");
  18685. this.getCourseDetail(2);
  18686. })
  18687. .catch((err) => {
  18688. this.$message.error("网络不佳");
  18689. console.error(err);
  18690. });
  18691. },
  18692. exitGroup(id) {
  18693. if (this.groupJson.islock == 2) {
  18694. this.$message.error("位置已被锁定,无法退出");
  18695. return;
  18696. }
  18697. let params = [
  18698. {
  18699. gid: id,
  18700. },
  18701. ];
  18702. this.ajax
  18703. .post(this.$store.state.api + "exitGroup", params)
  18704. .then((res) => {
  18705. this.$message.success("退出成功");
  18706. this.getCourseDetail(2);
  18707. })
  18708. .catch((err) => {
  18709. this.$message.error("网络不佳");
  18710. console.error(err);
  18711. });
  18712. },
  18713. groupUpload(index, task, gindex) {
  18714. this.taskCount = task;
  18715. this.toolindex = index;
  18716. this.groupIndex = gindex;
  18717. this.dialogVisibleGroupWork = true;
  18718. },
  18719. updateGroupChair(user) {
  18720. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18721. el.label = index;
  18722. return index != user.group;
  18723. });
  18724. this.updateGroupUser = user;
  18725. this.dialogVisibleUpdateGroup = true;
  18726. },
  18727. updateChair() {
  18728. if (
  18729. this.groupStudent[this.toolindex][this.checkChair].length >
  18730. this.groupJson.number ||
  18731. this.groupStudent[this.toolindex][this.checkChair].length ==
  18732. this.groupJson.number
  18733. ) {
  18734. this.$message.error("位置已满,无法加入");
  18735. return;
  18736. }
  18737. let params = [
  18738. {
  18739. cid: this.id,
  18740. stage: this.courseType,
  18741. task: this.taskCount,
  18742. tool: this.toolindex,
  18743. g: this.checkChair,
  18744. uid: this.updateGroupUser.userid,
  18745. },
  18746. ];
  18747. this.ajax
  18748. .post(this.$store.state.api + "joinGroup", params)
  18749. .then((res) => {
  18750. this.$message.success("修改成功");
  18751. this.updateGroupUser = {};
  18752. this.checkChair = "";
  18753. this.updateGroupArray = {};
  18754. this.dialogVisibleUpdateGroup = false;
  18755. this.getCourseDetail(2);
  18756. })
  18757. .catch((err) => {
  18758. this.$message.error("网络不佳");
  18759. console.error(err);
  18760. });
  18761. },
  18762. deleteGroupChair(gindex) {
  18763. this.checkDeleteGroup = [];
  18764. this.deleteGroupUser = JSON.parse(
  18765. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18766. );
  18767. this.deleteGroupArray = this.groupJson.group[gindex];
  18768. this.groupIndex = gindex;
  18769. this.dialogVisibleDeleteGroup = true;
  18770. },
  18771. async deleteChair() {
  18772. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18773. const gid =
  18774. this.groupStudent[this.toolindex][this.groupIndex][
  18775. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18776. this.checkDeleteGroup[i]
  18777. )
  18778. ];
  18779. let params = [
  18780. {
  18781. gid: gid.id,
  18782. },
  18783. ];
  18784. var a = await this.deleteChairA(params);
  18785. if (i == this.checkDeleteGroup.length - 1) {
  18786. this.$message.success("退出成功");
  18787. this.dialogVisibleDeleteGroup = false;
  18788. this.deleteGroupUser = [];
  18789. this.deleteGroupArray = {};
  18790. this.groupIndex = "";
  18791. this.checkDeleteGroup = [];
  18792. this.getCourseDetail(2);
  18793. }
  18794. }
  18795. },
  18796. deleteChairA(params) {
  18797. return new Promise((resolve, reject) => {
  18798. this.ajax
  18799. .post(this.$store.state.api + "exitGroup", params)
  18800. .then((res) => {
  18801. resolve(1);
  18802. })
  18803. .catch((err) => {
  18804. this.$message.error("网络不佳");
  18805. console.error(err);
  18806. });
  18807. });
  18808. },
  18809. contract(i) {
  18810. if (this.isCloseList[i].isClose == 0) {
  18811. this.isCloseList[i].isClose = 1;
  18812. } else {
  18813. this.isCloseList[i].isClose = 0;
  18814. }
  18815. this.$forceUpdate();
  18816. },
  18817. openWordCloud(toolindex) {
  18818. let array = [];
  18819. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18820. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18821. array.push({ name: works });
  18822. }
  18823. if (this.isGroup) {
  18824. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18825. let works = this.courseGroup.group[i].works[toolindex];
  18826. for (var j = 0; j < works.length; j++) {
  18827. let answer = JSON.parse(works[j].works)[0].answer;
  18828. array.push({ name: answer });
  18829. }
  18830. }
  18831. }
  18832. this.wordCloudData = array;
  18833. this.dialogVisibleWordCloud = true;
  18834. },
  18835. uploadWorks(i) {
  18836. this.$confirm("确定导出作业吗?", "提示", {
  18837. confirmButtonText: "确定",
  18838. cancelButtonText: "取消",
  18839. type: "warning",
  18840. })
  18841. .then(() => {
  18842. const loading = this.$loading.service({
  18843. background: "rgba(255, 255, 255, 0.7)",
  18844. target: document.body,
  18845. text: "文件加载中...",
  18846. });
  18847. const _worksStudent = this.worksStudent;
  18848. let url = [];
  18849. var counts = {};
  18850. for (var l = 0; l < _worksStudent[i].length; l++) {
  18851. var item = _worksStudent[i][l];
  18852. var name = item.sName;
  18853. if (!counts.hasOwnProperty(name)) {
  18854. counts[name] = 0;
  18855. } else {
  18856. counts[name]++;
  18857. }
  18858. if (counts[name] > 0) {
  18859. item.sName += " (" + counts[name] + ")";
  18860. }
  18861. }
  18862. for (var l = 0; l < _worksStudent[i].length; l++) {
  18863. var item = _worksStudent[i][l];
  18864. if (
  18865. item.works.indexOf(
  18866. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18867. ) !== -1 &&
  18868. item.works.indexOf("img") === -1
  18869. ) {
  18870. url.push({ name: item.sName, url: item.works });
  18871. }
  18872. }
  18873. // var toolList = [
  18874. // { name: "电子白板", tool: 1 },
  18875. // { name: "思维导图", tool: 3 },
  18876. // { name: "协同文档", tool: 6 },
  18877. // { name: "思维网格", tool: 7 },
  18878. // { name: "素材库", tool: 8 },
  18879. // { name: "学习资料", tool: 17 },
  18880. // { name: "便签", tool: 2 },
  18881. // { name: "问卷调查", tool: 4 },
  18882. // { name: "选择题", tool: 45 },
  18883. // { name: "倒计时", tool: 10 },
  18884. // { name: "问答", tool: 15 },
  18885. // { name: "课程设计", tool: 26 },
  18886. // { name: "训练服务器", tool: 18 },
  18887. // { name: "作业提交", tool: 16 },
  18888. // { name: "批量上传", tool: 50 },
  18889. // { name: "AIoT Blockly", tool: 21 },
  18890. // { name: "AI Python", tool: 23 },
  18891. // { name: "AI Blockly", tool: 24 },
  18892. // { name: "目标管理", tool: 25 },
  18893. // { name: "数学画板", tool: 31 },
  18894. // { name: "翻译", tool: 28 },
  18895. // { name: "魔盒识字", tool: 37 },
  18896. // { name: "数学画板", tool: 31 },
  18897. // { name: "24点", tool: 38 },
  18898. // { name: "GeoGebra", tool: 39 },
  18899. // { name: "源码编辑", tool: 32 },
  18900. // { name: "个人评价", tool: 40 },
  18901. // { name: "选择匹配", tool: 41 },
  18902. // { name: "汉字宫", tool: 44 },
  18903. // { name: "排序", tool: 47 },
  18904. // { name: "表格", tool: 48 },
  18905. // { name: "文档", tool: 52 },
  18906. // { name: "学生分组", tool: 49 },
  18907. // { name: "CocoPi", tool: 57 },
  18908. // { name: "模拟驾驶", tool: 58 },
  18909. // { name: "路径搜索", tool: 59 },
  18910. // { name: "深度学习", tool: 60 },
  18911. // { name: "全历史", tool: 61 },
  18912. // { name: "交互视频", tool: 62 },
  18913. // { name: "海龟编程", tool: 63 },
  18914. // { name: "挑人", tool: 65 },
  18915. // { name: "公式编辑", tool: 66 },
  18916. // { name: "分子结构", tool: 67 },
  18917. // { name: "时间轴", tool: 68 },
  18918. // ];
  18919. // var toolName = "";
  18920. // for(var w = 0;w<toolList.length;w++){
  18921. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18922. // toolName = toolList[w].name;
  18923. // }
  18924. // }
  18925. console.log(url);
  18926. this.downLoadAll(url, loading);
  18927. })
  18928. .catch(() => {});
  18929. },
  18930. downLoadAll(url, loading) {
  18931. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18932. const zip = new JSZip();
  18933. const cache = {};
  18934. const promises = [];
  18935. data.forEach((item) => {
  18936. const promise = getFile(item.url).then((data) => {
  18937. if (data.data != 1) {
  18938. // 下载文件, 并存成ArrayBuffer对象
  18939. const file_name =
  18940. item.name +
  18941. "." +
  18942. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18943. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18944. cache[file_name] = data.data;
  18945. }
  18946. });
  18947. promises.push(promise);
  18948. });
  18949. Promise.all(promises).then(() => {
  18950. zip.generateAsync({ type: "blob" }).then((content) => {
  18951. // 生成二进制流
  18952. FileSaver.saveAs(
  18953. content,
  18954. this.courseDetail.title + "-" + "作业提交工具.zip"
  18955. ); // 利用file-saver保存文件 自定义文件名
  18956. setTimeout(() => {
  18957. loading.close();
  18958. }, 2000);
  18959. });
  18960. });
  18961. },
  18962. pickStudent(stu) {
  18963. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18964. return;
  18965. }
  18966. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18967. confirmButtonText: "确定",
  18968. cancelButtonText: "取消",
  18969. type: "warning",
  18970. })
  18971. .then(() => {
  18972. let params = [
  18973. {
  18974. uid: stu.userid,
  18975. cid: this.id,
  18976. stage: this.courseType,
  18977. task: this.taskCount,
  18978. tool: this.toolindex,
  18979. },
  18980. ];
  18981. this.ajax
  18982. .post(this.$store.state.api + "updateCoursePick", params)
  18983. .then((res) => {
  18984. this.$message.success("操作成功");
  18985. this.getPick();
  18986. })
  18987. .catch((err) => {
  18988. this.$message.error("网络不佳");
  18989. console.error(err);
  18990. });
  18991. })
  18992. .catch(() => {});
  18993. },
  18994. selectUser(){
  18995. let params = {
  18996. userid: this.userid,
  18997. };
  18998. this.ajax
  18999. .get(this.$store.state.api + "selectUser", params)
  19000. .then((res) => {
  19001. this.userMes = res.data[0];
  19002. })
  19003. .catch((err) => {
  19004. console.error(err);
  19005. });
  19006. },
  19007. setEngText(i){
  19008. this.newEngIndex = i;
  19009. this.$forceUpdate();
  19010. },
  19011. addCorrect(){
  19012. this.$confirm("你确定提交批改嘛?", "提示", {
  19013. confirmButtonText: "确定",
  19014. showCancelButton: false,
  19015. closeOnClickModal: false,
  19016. type: "warning",
  19017. })
  19018. .then(() => {
  19019. let params = {
  19020. cid: this.id,
  19021. s: parseInt(this.courseType),
  19022. t: this.taskCount,
  19023. tool: this.toolindex,
  19024. wid: this.engWid,
  19025. c: this.userid,
  19026. 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) : "",
  19027. };
  19028. this.ajax
  19029. .get(this.$store.state.api + "addEngC", params)
  19030. .then((res) => {
  19031. this.$message.success("提交成功");
  19032. this.engUpdateDialogVisible = false;
  19033. })
  19034. .catch((err) => {
  19035. console.error(err);
  19036. });
  19037. })
  19038. .catch(() => {});
  19039. },
  19040. selectEngC(id,z){
  19041. let params = {
  19042. workid: id,
  19043. };
  19044. this.ajax
  19045. .get(this.$store.state.api + "selectEngC", params)
  19046. .then((res) => {
  19047. if(res.data[0].length == 0){
  19048. this.newEnglishList.engTitle = z.engTitle;
  19049. this.newEnglishList.engText = z.engText;
  19050. }else{
  19051. var a = res.data[0];
  19052. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19053. if(this.userMes[0].type == 2){
  19054. var snum = 0;
  19055. for(var i = 0;i<a.length;i++){
  19056. if(this.userMes[0].userid == a[i].correct){
  19057. this.newEnglishList = JSON.parse(a[i].cWork);
  19058. snum = 1;
  19059. }
  19060. }
  19061. if(snum == 0){
  19062. this.newEnglishList = { engTitle:"",engText:"" };
  19063. this.newEnglishList.engTitle = z.engTitle;
  19064. this.newEnglishList.engText = z.engText;
  19065. }
  19066. }else if(this.userMes[0].type == 1){
  19067. var num = 0;
  19068. for(var w= 0;w<a.length;w++){
  19069. if(this.userMes[0].userid == a[w].correct){
  19070. num = 1;
  19071. }
  19072. }
  19073. if(num == 0){
  19074. this.isNoUserid = true;
  19075. var c = JSON.parse(JSON.stringify(z));
  19076. this.oldEnglishJson1 = c;
  19077. }else{
  19078. this.isNoUserid = false;
  19079. }
  19080. var b = a.sort((item, index) => {
  19081. console.log(item)
  19082. if (item.correct === this.userMes[0].userid) {
  19083. return -1; // 将a移到前面
  19084. } else if (index.correct === this.userMes[0].userid) {
  19085. return 1; // 将b移到前面
  19086. } else {
  19087. return 0; // 保持默认顺序
  19088. }
  19089. });
  19090. for(var p = 0;p<b.length;p++){
  19091. for(var y = 0;y<ppp.length;y++){
  19092. if(b[p].id == ppp[y].id){
  19093. b[p].cWork = JSON.parse(ppp[y].cWork);
  19094. break
  19095. }
  19096. }
  19097. }
  19098. this.newEnglishList1 = b;
  19099. }
  19100. }
  19101. this.greyType = false;
  19102. setTimeout(() => {
  19103. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19104. if(this.newEnglishList1.length > 0){
  19105. if(this.isNoUserid == true){
  19106. this.engListLength = this.newEnglishList1.length + 1;
  19107. this.newEngIndex = -1;
  19108. }else{
  19109. this.engListLength = this.newEnglishList1.length;
  19110. this.newEngIndex = 0;
  19111. }
  19112. }
  19113. if(this.userMes[0].type == 2){
  19114. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19115. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19116. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19117. }else if(this.newEngIndex == -1){
  19118. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19119. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19120. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19121. }
  19122. }, 500);
  19123. this.engUpdateDialogVisible = true;
  19124. this.$forceUpdate();
  19125. })
  19126. .catch((err) => {
  19127. console.error(err);
  19128. });
  19129. },
  19130. getPick() {
  19131. let params = {
  19132. cid: this.id,
  19133. };
  19134. this.ajax
  19135. .get(this.$store.state.api + "getPick", params)
  19136. .then((res) => {
  19137. let array = [];
  19138. for (var i = 0; i < res.data[0].length; i++) {
  19139. array.push(res.data[0][i].userid);
  19140. }
  19141. this.isPickStudent = array;
  19142. if (array.indexOf(this.userid) !== -1) {
  19143. this.$confirm("你被老师选到啦!", "提示", {
  19144. confirmButtonText: "确定",
  19145. showCancelButton: false,
  19146. closeOnClickModal: false,
  19147. type: "warning",
  19148. })
  19149. .then(() => {
  19150. let pa = [
  19151. {
  19152. uid: this.userid,
  19153. cid: this.id,
  19154. },
  19155. ];
  19156. this.ajax
  19157. .post(this.$store.state.api + "deletePick", pa)
  19158. .then((res) => {
  19159. this.getPick();
  19160. })
  19161. .catch((err) => {
  19162. this.$message.error("网络不佳");
  19163. console.error(err);
  19164. });
  19165. })
  19166. .catch(() => {});
  19167. }
  19168. })
  19169. .catch((err) => {
  19170. this.$message.error("网络不佳");
  19171. console.error(err);
  19172. });
  19173. },
  19174. foldEva() {
  19175. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19176. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19177. } else {
  19178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19179. setTimeout(() => {
  19180. this.checkEva();
  19181. setTimeout(() => {
  19182. this.checkEva();
  19183. }, 500);
  19184. }, 0);
  19185. }
  19186. this.$forceUpdate();
  19187. },
  19188. panToolHeight(tool) {
  19189. var _tool = document.querySelectorAll('#'+tool)[0]
  19190. var _toolA = _tool ? _tool.offsetHeight : 0
  19191. var _toolC = 0
  19192. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19193. let boolean2 = (_toolA > _toolC) ? true : false
  19194. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19195. this.$forceUpdate();
  19196. },
  19197. },
  19198. directives: {
  19199. // 使用局部注册指令的方式
  19200. resize: {
  19201. // 指令的名称
  19202. bind(el, binding) {
  19203. // el为绑定的元素,binding为绑定给指令的对象
  19204. let width = "",
  19205. height = "";
  19206. function isReize() {
  19207. const style = document.defaultView.getComputedStyle(el);
  19208. if (width !== style.width || height !== style.height) {
  19209. binding.value(); // 关键
  19210. }
  19211. width = style.width;
  19212. height = style.height;
  19213. }
  19214. el.__vueSetInterval__ = setInterval(isReize, 300);
  19215. },
  19216. unbind(el) {
  19217. clearInterval(el.__vueSetInterval__);
  19218. },
  19219. },
  19220. autoHeight: {
  19221. update(el, binding) {
  19222. const { value } = binding
  19223. if (value && typeof value === 'number') {
  19224. el.style.height = `${value}px`
  19225. } else {
  19226. el.style.height = 'auto'
  19227. }
  19228. },
  19229. componentUpdated(el) {
  19230. el.style.height = `${el.scrollHeight + 5}px`
  19231. },
  19232. },
  19233. },
  19234. beforeDestroy() {
  19235. window.onresize = null;
  19236. clearInterval(this.timer);
  19237. this.timer = null;
  19238. clearInterval(this.opertimer);
  19239. this.opertimer = null;
  19240. },
  19241. computed: {
  19242. getHeight(){
  19243. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19244. },
  19245. contentConvent() {
  19246. return function (c) {
  19247. return c
  19248. ? c
  19249. .replaceAll(/\r\n/g, "<br/>")
  19250. .replaceAll(/\n/g, "<br/>")
  19251. .replaceAll(/\s/g, " &nbsp")
  19252. : "";
  19253. };
  19254. },
  19255. checkUpload() {
  19256. return function () {
  19257. var studentK = [];
  19258. if (this.plworkFile.length > 0) {
  19259. for (var z = 0; z < this.plworkFile.length; z++) {
  19260. studentK.push(this.plworkFile[z].username);
  19261. }
  19262. studentK = studentK.join(",");
  19263. }
  19264. var a = this.uploadStudentJuri.filter((el) => {
  19265. return studentK.indexOf(el.userid) == -1;
  19266. });
  19267. return a;
  19268. };
  19269. },
  19270. getSName() {
  19271. return function (name) {
  19272. var check = name;
  19273. this.uploadStudentJuri.forEach((el) => {
  19274. if (el.userid == check) {
  19275. check = el.name ? el.name : el.username;
  19276. }
  19277. });
  19278. return check;
  19279. };
  19280. },
  19281. getImgList() {
  19282. return function (val) {
  19283. let srcList = []; // 定义一个数组用来接收后面的img地址
  19284. val.replace(
  19285. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19286. function (match, capture) {
  19287. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19288. srcList.push(capture);
  19289. }
  19290. );
  19291. return srcList;
  19292. };
  19293. },
  19294. retrnToolHeight(){
  19295. return function (tool) {
  19296. var _tool = document.querySelectorAll('#'+tool)[0]
  19297. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19298. };
  19299. },
  19300. Correct() {
  19301. return function (c) {
  19302. let w = "";
  19303. let a = this.correctWord;
  19304. for(var k = 0;k<a.length;k++){
  19305. //diffWordsWithSpace
  19306. if(a.length > 1){
  19307. if(a[k].added == true){
  19308. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19309. }else if(a[k].removed == true){
  19310. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19311. }else{
  19312. w += '<span>' + a[k].value + '</span>';
  19313. }
  19314. }else{
  19315. w = c
  19316. }
  19317. //diffChars方法
  19318. // if(w == ""){
  19319. // if(a.length > 1){
  19320. // if(a[k].added == true){
  19321. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19322. // }else if(a[k].removed == true){
  19323. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19324. // }
  19325. // }else{
  19326. // w = c
  19327. // }
  19328. // }else{
  19329. // if(k == a.length - 1){
  19330. // if(a[k].added == true){
  19331. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19332. // }else if(a[k].removed == true){
  19333. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19334. // }
  19335. // }else{
  19336. // if(a[k].added == true){
  19337. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19338. // }else if(a[k].removed == true){
  19339. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19340. // }
  19341. // }
  19342. // }
  19343. }
  19344. c = w;
  19345. return c;
  19346. };
  19347. },
  19348. },
  19349. mounted() {
  19350. document.body.addEventListener("click", (e) => {
  19351. if (this.isUpdateToolDetail1) {
  19352. this.updateToolDetail(this.toolDetailIndex);
  19353. }
  19354. });
  19355. if (this.screenType == 2) {
  19356. window.topU.postMessage({ allScreen: 4 }, "*");
  19357. } else if (this.screenType == 3) {
  19358. window.topU.postMessage({ allScreen: 5 }, "*");
  19359. } else if (this.screenType == 1) {
  19360. window.topU.postMessage({ allScreen: 6 }, "*");
  19361. }
  19362. this.setOperationTime();
  19363. this.selectEva();
  19364. this.getCourseDetail();
  19365. this.selectCount();
  19366. this.getHomeWork();
  19367. this.selectUser();
  19368. this.contentDialog = true;
  19369. this.setContent2(true);
  19370. if (this.tType == 4) {
  19371. this.pzDialog = true;
  19372. this.selectPz();
  19373. }
  19374. document.scrollingElement.scrollTop = 0;
  19375. window.addEventListener("resize", () => {
  19376. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19377. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19378. if (this.showType == 2 || this.showType == 3) {
  19379. document.getElementsByClassName("navBox")[0].style.height =
  19380. a - 40 + 0+ "px";
  19381. } else {
  19382. document.getElementsByClassName("navBox")[0].style.height =
  19383. a - 40 + "px";
  19384. }
  19385. });
  19386. let _this = this;
  19387. setTimeout(() => {
  19388. // _this.vedioTime = [];
  19389. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19390. // _this.vedioTime[i] = document.getElementsByClassName(
  19391. // "vjs-duration-display"
  19392. // )[i].textContent;
  19393. // }
  19394. }, 1000);
  19395. },
  19396. };
  19397. </script>
  19398. <style scoped>
  19399. @media screen and (max-width: 1280px) {
  19400. /* .courseIndex > div:first-child(2) {
  19401. width: 15% !important;
  19402. } */
  19403. /* .navText {
  19404. width: 120px !important;
  19405. } */
  19406. .evaCss {
  19407. flex-direction: column !important;
  19408. align-items: center !important;
  19409. }
  19410. .elist_input {
  19411. width: 90% !important;
  19412. }
  19413. .dialog_diy1 >>> .el-dialog {
  19414. width: 100% !important;
  19415. }
  19416. .rightWidthCss {
  19417. width: 100% !important;
  19418. }
  19419. .dialog_diy3 >>> .el-dialog {
  19420. width: 100% !important;
  19421. }
  19422. .addToolCss {
  19423. right: 0 !important;
  19424. width: 100% !important;
  19425. min-width: unset !important;
  19426. }
  19427. }
  19428. .evaCssMax {
  19429. flex-direction: column !important;
  19430. align-items: center !important;
  19431. }
  19432. .dialog_diy >>> .el-dialog {
  19433. margin-top: 10vh !important;
  19434. }
  19435. .body_student {
  19436. width: 77%;
  19437. height: 100%;
  19438. position: absolute;
  19439. left: 22%;
  19440. top: 0;
  19441. }
  19442. .student_head {
  19443. width: 100%;
  19444. margin: 20px auto 0;
  19445. padding-bottom: 20px;
  19446. display: flex;
  19447. flex-direction: column;
  19448. flex-wrap: nowrap;
  19449. align-items: flex-start;
  19450. justify-content: flex-start;
  19451. }
  19452. .pb_left {
  19453. width: 20%;
  19454. margin-right: 10px;
  19455. background: rgb(255, 255, 255);
  19456. position: fixed;
  19457. height: calc(100% - 40px);
  19458. border-radius: 20px;
  19459. padding-bottom: 15px;
  19460. box-sizing: border-box;
  19461. }
  19462. .wheel > img,
  19463. .project > img,
  19464. .star > img,
  19465. .evaluate > img,
  19466. .up_photo > img,
  19467. .chapter_add > img,
  19468. .deleteWord > img,
  19469. .question > img,
  19470. .homework > img {
  19471. width: 100%;
  19472. height: 100%;
  19473. }
  19474. .upCover > img {
  19475. width: 131px;
  19476. height: 69px;
  19477. object-fit: cover;
  19478. }
  19479. .upCover {
  19480. width: calc(100% / 3.5);
  19481. position: relative;
  19482. margin: 0 15px 10px 0;
  19483. display: flex;
  19484. flex-direction: column;
  19485. flex-wrap: nowrap;
  19486. justify-content: center;
  19487. align-content: center;
  19488. align-items: center;
  19489. height: fit-content;
  19490. }
  19491. .upCover2 {
  19492. width: 100%;
  19493. position: relative;
  19494. margin: 0 15px 10px 0;
  19495. display: flex;
  19496. flex-direction: column;
  19497. flex-wrap: nowrap;
  19498. justify-content: center;
  19499. align-content: center;
  19500. align-items: center;
  19501. }
  19502. .upCover2 > img {
  19503. width: 100%;
  19504. height: 90px;
  19505. object-fit: contain;
  19506. }
  19507. .chapter_add {
  19508. width: 120px;
  19509. position: relative;
  19510. text-align: center;
  19511. }
  19512. .isAddThings {
  19513. margin-top: 20px;
  19514. position: relative;
  19515. text-align: center;
  19516. background: #f7f8fa;
  19517. height: 90px;
  19518. width: 90px;
  19519. display: flex;
  19520. flex-direction: column;
  19521. justify-content: center;
  19522. }
  19523. .deleteWord {
  19524. width: 22px;
  19525. height: 22px;
  19526. position: absolute;
  19527. right: -5px;
  19528. top: -5px;
  19529. cursor: pointer;
  19530. }
  19531. .box_course {
  19532. /* width: 60%; */
  19533. width: calc(100% - 300px);
  19534. }
  19535. .wheel {
  19536. width: 100%;
  19537. /* height: 100%; */
  19538. height: 650px;
  19539. }
  19540. .right_box {
  19541. display: flex;
  19542. flex-direction: column;
  19543. margin-left: 30px;
  19544. justify-content: space-around;
  19545. }
  19546. .right_box_title {
  19547. font-size: 23px;
  19548. }
  19549. .people {
  19550. display: flex;
  19551. }
  19552. .student_body {
  19553. width: 100%;
  19554. margin: 0 auto;
  19555. margin-top: 10px;
  19556. padding: 0 0 20px;
  19557. }
  19558. .study_top {
  19559. margin-top: 100px;
  19560. width: 100%;
  19561. height: auto;
  19562. padding-bottom: 20px;
  19563. }
  19564. .study_top .checkbox {
  19565. display: flex;
  19566. align-items: center;
  19567. padding: 15px 0 15px 30px;
  19568. flex: 0 0 auto;
  19569. font-weight: bold;
  19570. border-bottom: 1px solid #eee;
  19571. }
  19572. .study_top .check {
  19573. padding-bottom: 5px;
  19574. text-align: center;
  19575. cursor: pointer;
  19576. height: 30px;
  19577. box-sizing: border-box;
  19578. display: flex;
  19579. }
  19580. .study_top .checked {
  19581. border-bottom: 4px solid #3fc6a0;
  19582. padding-bottom: 5px;
  19583. color: #3fc6a0;
  19584. display: flex;
  19585. height: 35px;
  19586. }
  19587. .study_top .checked > div,
  19588. .study_top .check > div {
  19589. margin-right: 5px;
  19590. }
  19591. .videoTop {
  19592. display: flex;
  19593. flex-direction: row;
  19594. justify-content: space-between;
  19595. background: #fff;
  19596. align-items: center;
  19597. width: 95%;
  19598. padding: 20px;
  19599. }
  19600. .filebox {
  19601. display: flex;
  19602. flex-wrap: wrap;
  19603. flex-direction: column;
  19604. padding: 0 0 5px;
  19605. position: relative;
  19606. }
  19607. .filebox:before {
  19608. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19609. position: absolute;
  19610. top: 20px;
  19611. left: 13px;
  19612. border-left: 2px dotted #cad1dc;
  19613. height: calc(100% - 15px);
  19614. }
  19615. .toolHeng2 > div:last-child::before {
  19616. height: calc(100% - 43px);
  19617. }
  19618. .filebox .tooldetail {
  19619. width: calc(100% - 280px);
  19620. margin: 0px 12px;
  19621. padding: 12px;
  19622. line-height: 30px;
  19623. word-break: break-word;
  19624. background: #ffffff;
  19625. border-radius: 8px 8px 8px 8px;
  19626. opacity: 1;
  19627. border: 1px solid #cad1dc;
  19628. overflow:hidden;
  19629. box-sizing:border-box;
  19630. }
  19631. .file {
  19632. display: flex;
  19633. flex-direction: column;
  19634. align-items: center;
  19635. justify-content: center;
  19636. cursor: pointer;
  19637. width: 200px;
  19638. }
  19639. .file div {
  19640. margin-top: 10px;
  19641. width: 150px;
  19642. text-align: center;
  19643. overflow: hidden;
  19644. white-space: nowrap;
  19645. text-overflow: ellipsis;
  19646. }
  19647. .media {
  19648. display: flex;
  19649. flex-direction: column;
  19650. align-items: center;
  19651. justify-content: center;
  19652. margin: 0 20px 20px 0;
  19653. cursor: pointer;
  19654. margin: 12px 0 5px 15px;
  19655. overflow: hidden;
  19656. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19657. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19658. box-sizing: border-box;
  19659. }
  19660. .media img {
  19661. height: 90px;
  19662. width: 160px;
  19663. object-fit: cover;
  19664. }
  19665. .media .title {
  19666. padding: 5px;
  19667. text-align: left;
  19668. width: 100%;
  19669. box-sizing: border-box;
  19670. }
  19671. .media .btn {
  19672. width: 100%;
  19673. height: 35px;
  19674. line-height: 35px;
  19675. color: #fff;
  19676. background: #606060;
  19677. text-align: center;
  19678. overflow: hidden;
  19679. white-space: nowrap;
  19680. text-overflow: ellipsis;
  19681. }
  19682. .detail_content_top {
  19683. width: 100%;
  19684. padding: 25px 0 25px 0;
  19685. }
  19686. .detail_title {
  19687. text-align: center;
  19688. font-size: 24px;
  19689. }
  19690. .detail_time {
  19691. font-size: 13px;
  19692. padding: 15px 0 0 40px;
  19693. }
  19694. .detail_content {
  19695. line-height: 2pc;
  19696. width: 90%;
  19697. margin: 0 auto;
  19698. padding-top: 30px;
  19699. text-indent: 30px;
  19700. overflow: auto;
  19701. height: 200px;
  19702. }
  19703. .score_box >>> .el-rate {
  19704. margin-left: 10px;
  19705. }
  19706. .dialog_change >>> .el-dialog {
  19707. border-radius: 5px;
  19708. }
  19709. .dialog_change >>> .el-dialog__header {
  19710. background: #f2f2f2;
  19711. text-align: center;
  19712. }
  19713. .dialog_change >>> .el-dialog__title {
  19714. line-height: 5px;
  19715. }
  19716. .dialog_change >>> .el-dialog__body {
  19717. background: #fff;
  19718. padding: 10px 20px;
  19719. }
  19720. .score_box {
  19721. display: flex;
  19722. align-items: center;
  19723. margin-bottom: 18px;
  19724. margin-top: 20px;
  19725. }
  19726. .up_photo {
  19727. width: 120px;
  19728. cursor: pointer;
  19729. margin-top: 10px;
  19730. }
  19731. .up_photo2 {
  19732. width: 180px;
  19733. box-sizing: border-box;
  19734. min-width: 180px;
  19735. height: 180px;
  19736. max-height: 180px;
  19737. min-height: 180px;
  19738. cursor: pointer;
  19739. display: flex;
  19740. flex-direction: column;
  19741. align-items: center;
  19742. justify-content: center;
  19743. background: rgb(242, 246, 255);
  19744. /* padding: 25px; */
  19745. margin-bottom: 10px;
  19746. }
  19747. .up_photo2 img {
  19748. width: 50%;
  19749. height: auto;
  19750. }
  19751. .up_photo2 span {
  19752. color: #898989;
  19753. }
  19754. .plworkBox {
  19755. display: flex;
  19756. align-items: center;
  19757. margin-top: 10px;
  19758. flex-wrap: wrap;
  19759. }
  19760. .upload_send {
  19761. margin: 30px auto 30px;
  19762. width: 60%;
  19763. background: #3681fc;
  19764. text-align: center;
  19765. height: 35px;
  19766. line-height: 35px;
  19767. color: #fff;
  19768. border-radius: 5px;
  19769. cursor: pointer;
  19770. }
  19771. .marginT {
  19772. margin-top: 20px;
  19773. }
  19774. .cd_content_steps {
  19775. display: flex;
  19776. width: 90%;
  19777. justify-content: space-around;
  19778. border-top: 1px solid #eeeeee;
  19779. }
  19780. .cd_steps_box {
  19781. display: flex;
  19782. justify-content: center;
  19783. align-items: center;
  19784. flex-direction: column;
  19785. cursor: pointer;
  19786. }
  19787. .first {
  19788. display: flex;
  19789. align-items: center;
  19790. margin: 15px 0 20px 0;
  19791. font-size: 20px;
  19792. }
  19793. .first > div:nth-child(2) {
  19794. font-size: 16px !important;
  19795. padding-left: 10px;
  19796. line-height: 26px;
  19797. box-sizing: border-box;
  19798. }
  19799. .blue_box_one {
  19800. text-align: center;
  19801. color: #fff;
  19802. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19803. border-radius: 7px;
  19804. margin: 10px;
  19805. cursor: pointer;
  19806. width: 95%;
  19807. height: 45px;
  19808. display: flex;
  19809. flex-direction: row;
  19810. justify-content: flex-start;
  19811. align-items: center;
  19812. }
  19813. .blue_box_one > div:nth-child(1) {
  19814. line-height: 30px;
  19815. margin: 0 5px 0 10px;
  19816. width: 30%;
  19817. min-width: 70px;
  19818. border-radius: 4px;
  19819. }
  19820. .blue_box_one > div:nth-child(2) {
  19821. white-space: nowrap;
  19822. text-overflow: ellipsis;
  19823. overflow: hidden;
  19824. word-break: break-all;
  19825. width: 70%;
  19826. text-align: left;
  19827. margin-right: 10px;
  19828. max-width: calc(100% - 85px);
  19829. }
  19830. .blue_box_one > div:nth-child(2):hover {
  19831. overflow: hidden;
  19832. text-overflow: ellipsis;
  19833. white-space: nowrap;
  19834. cursor: pointer;
  19835. }
  19836. .upFile {
  19837. margin: 0 auto;
  19838. width: 120px;
  19839. background: #3681fc;
  19840. color: #fff;
  19841. height: 30px;
  19842. text-align: center;
  19843. line-height: 30px;
  19844. border-radius: 5px;
  19845. font-size: 14px;
  19846. cursor: pointer;
  19847. }
  19848. .courseTitle {
  19849. width: 85%;
  19850. margin: 10px auto 26px auto;
  19851. display: flex;
  19852. flex-direction: row;
  19853. align-items: center;
  19854. justify-content: space-between;
  19855. text-align: center;
  19856. }
  19857. .courseTitle .ctitle {
  19858. font-size: 20px;
  19859. font-weight: bold;
  19860. color: #0e1e33;
  19861. white-space: nowrap;
  19862. overflow: hidden;
  19863. text-overflow: ellipsis;
  19864. }
  19865. .inviteBox {
  19866. font-size: 14px;
  19867. /* margin-top: 5px; */
  19868. color: #00000099;
  19869. text-align: center;
  19870. }
  19871. .courseTitle >>> .el-tooltip {
  19872. width: 100%;
  19873. white-space: nowrap;
  19874. overflow: hidden;
  19875. text-overflow: ellipsis;
  19876. word-break: break-word;
  19877. }
  19878. .ml {
  19879. margin-left: 20px;
  19880. color: #5b7dba;
  19881. border-left: 3px solid #5b7dba;
  19882. padding-left: 5px;
  19883. font-weight: bold;
  19884. }
  19885. .return {
  19886. width: 2rem;
  19887. height: 2rem;
  19888. cursor: pointer;
  19889. }
  19890. .return > img {
  19891. width: 100%;
  19892. height: 100%;
  19893. }
  19894. .returnBtn {
  19895. width: 86px;
  19896. height: 36px;
  19897. background: #3681fc;
  19898. border-radius: 4px;
  19899. color: #fff;
  19900. text-align: center;
  19901. line-height: 36px;
  19902. margin-right: 20px;
  19903. cursor: pointer;
  19904. font-size: 14px;
  19905. font-weight: 400;
  19906. display: flex;
  19907. flex-direction: row;
  19908. flex-wrap: nowrap;
  19909. align-items: center;
  19910. justify-content: center;
  19911. }
  19912. .reBtnIcon,
  19913. .commentIcon,
  19914. .vedioIcon,
  19915. .vedioIcon1 {
  19916. /* width: 36px; */
  19917. height: 36px;
  19918. border-radius: 4px;
  19919. position: relative;
  19920. /* background: #e0eafb; */
  19921. background: #0061ff;
  19922. cursor: pointer;
  19923. margin-right: 12px;
  19924. display: flex;
  19925. align-items: center;
  19926. padding: 0 10px;
  19927. box-sizing: border-box;
  19928. font-size: 14px;
  19929. color: #fff;
  19930. }
  19931. .reBtnIcon::before,
  19932. .commentIcon::before,
  19933. .vedioIcon::before,
  19934. .vedioIcon1::before {
  19935. content: "";
  19936. display: block;
  19937. background-size: 100% 100%;
  19938. background-repeat: no-repeat;
  19939. width: 20px;
  19940. height: 20px;
  19941. margin-right: 5px;
  19942. /* position: absolute; */
  19943. /* top: 8px;
  19944. left: 8px; */
  19945. }
  19946. .vedioIcon1 {
  19947. background: #f63564;
  19948. }
  19949. .reBtnIcon::before {
  19950. background-image: url("../../../assets/icon/newIcons/refresh.png");
  19951. }
  19952. .commentIcon::before {
  19953. background-image: url("../../../assets/icon/newIcons/comment.png");
  19954. }
  19955. .vedioIcon::before {
  19956. background-image: url("../../../assets/icon/newIcons/transcribe.png");
  19957. }
  19958. .vedioIcon1::before {
  19959. /* background-image: url("../../../assets/icon/newIcons/istranscribe.png"); */
  19960. background-image: url("../../../assets/icon/newIcons/transcribe.png");
  19961. }
  19962. .tool {
  19963. display: flex;
  19964. flex-direction: column;
  19965. flex-wrap: nowrap;
  19966. width: 13%;
  19967. margin: 0 30px;
  19968. align-items: center;
  19969. position: relative;
  19970. padding: 10px 25px;
  19971. cursor: pointer;
  19972. }
  19973. .whiteBIcon {
  19974. width: 150px;
  19975. }
  19976. .whiteBIcon > img {
  19977. width: 100%;
  19978. height: 100%;
  19979. }
  19980. .mask {
  19981. background-color: rgba(0, 0, 0, 0);
  19982. position: fixed;
  19983. top: 0;
  19984. left: 0;
  19985. width: 100%;
  19986. height: 100%;
  19987. z-index: 20000;
  19988. display: flex;
  19989. align-items: center;
  19990. justify-content: center;
  19991. }
  19992. .progressBox {
  19993. width: 500px;
  19994. height: 180px;
  19995. background: #fff;
  19996. border-radius: 10px;
  19997. box-shadow: 0 0 6px 1px #bfbfbf;
  19998. display: flex;
  19999. align-items: center;
  20000. justify-content: center;
  20001. flex-direction: column;
  20002. position: relative;
  20003. color: #6c6c6c;
  20004. }
  20005. .progressBox >>> .el-progress-bar__outer {
  20006. background-color: #d1dfff !important;
  20007. }
  20008. .progressBox .lbox {
  20009. height: 50px;
  20010. font-size: 19px;
  20011. display: flex;
  20012. align-items: center;
  20013. color: #747474;
  20014. }
  20015. .progressBox .lbox img {
  20016. width: 40px;
  20017. margin-right: 20px;
  20018. }
  20019. .closeCss {
  20020. position: absolute;
  20021. top: 8px;
  20022. right: 8px;
  20023. cursor: pointer;
  20024. width: 20px;
  20025. height: 20px;
  20026. }
  20027. .closeCss > img {
  20028. width: 100%;
  20029. height: 100%;
  20030. }
  20031. .uploadVedio {
  20032. display: flex;
  20033. flex-direction: column;
  20034. flex-wrap: nowrap;
  20035. justify-content: center;
  20036. align-items: center;
  20037. margin: 0 15px 10px 0;
  20038. }
  20039. .uploadVedio > img {
  20040. width: 30px;
  20041. height: 30px;
  20042. }
  20043. .uploadVedio > span {
  20044. white-space: nowrap;
  20045. overflow: hidden;
  20046. text-overflow: ellipsis;
  20047. width: 75px;
  20048. margin-top: 7px;
  20049. }
  20050. .picName {
  20051. white-space: nowrap;
  20052. overflow: hidden;
  20053. text-overflow: ellipsis;
  20054. width: 75px;
  20055. margin-top: 7px;
  20056. }
  20057. .new_top {
  20058. display: flex;
  20059. background: #fff;
  20060. flex-direction: row;
  20061. justify-content: flex-start;
  20062. align-items: center;
  20063. height: 60px;
  20064. position: fixed;
  20065. top: 20px;
  20066. left: 22%;
  20067. width: 77%;
  20068. z-index: 999;
  20069. border-radius: 12px 12px 0 0;
  20070. border-bottom: 1px solid #cad1dc;
  20071. padding: 10px 0;
  20072. }
  20073. .new_topFixed {
  20074. width: 100%;
  20075. height: 40px;
  20076. position: fixed;
  20077. top: 0px;
  20078. display: block;
  20079. background: #f2f2f2;
  20080. z-index: 998;
  20081. }
  20082. .before {
  20083. position: absolute;
  20084. background: #c3dad4;
  20085. width: 6px;
  20086. height: 100%;
  20087. }
  20088. .courseIndex {
  20089. display: flex;
  20090. flex-direction: row;
  20091. align-items: center;
  20092. width: calc(100% - 745px);
  20093. }
  20094. .courseIndex > div:nth-child(1) {
  20095. margin: 0 0 0 10px;
  20096. font-size: 20px;
  20097. min-width: 100px;
  20098. font-weight: bold;
  20099. border-left: 4px solid #3363b9;
  20100. height: 32px;
  20101. text-align: center;
  20102. line-height: 35px;
  20103. }
  20104. .courseIndex > div:nth-child(2) {
  20105. font-size: 20px;
  20106. /* width: 300px; */
  20107. max-width: calc(100% - 105px);
  20108. white-space: nowrap;
  20109. overflow: hidden;
  20110. text-overflow: ellipsis;
  20111. }
  20112. .courseIndex > div:nth-child(3) {
  20113. border-bottom: 1px solid #d7d7d7;
  20114. padding-bottom: 5px;
  20115. background: #3681fc;
  20116. width: 55px;
  20117. min-width: 55px;
  20118. border-radius: 5px;
  20119. color: #fff;
  20120. text-align: center;
  20121. height: 20px;
  20122. line-height: 26px;
  20123. font-size: 14px;
  20124. margin: 0 0 0 10px;
  20125. }
  20126. .course_text {
  20127. padding: 20px 0 0 15px;
  20128. text-indent: 30px;
  20129. width: 80%;
  20130. min-height: 20px;
  20131. }
  20132. .vedioList {
  20133. background: #f2f2f2;
  20134. border: 1px solid #ececec;
  20135. /* width: 38.8%; */
  20136. /* width: 300px; */
  20137. width: 100%;
  20138. height: 445px;
  20139. border-radius: 10px;
  20140. overflow: hidden;
  20141. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20142. }
  20143. .vedioNav {
  20144. margin: 10px 0 0 15px;
  20145. border-bottom: 1px solid #d7d7d7;
  20146. padding-bottom: 5px;
  20147. background: #3681fc;
  20148. width: 55px;
  20149. min-width: 55px;
  20150. border-radius: 5px;
  20151. color: #fff;
  20152. text-align: center;
  20153. height: 20px;
  20154. line-height: 26px;
  20155. font-size: 14px;
  20156. }
  20157. .queTop {
  20158. display: flex;
  20159. padding: 20px 0 20px 30px;
  20160. width: 100%;
  20161. flex-direction: row;
  20162. justify-content: flex-start;
  20163. align-items: center;
  20164. box-sizing: border-box;
  20165. }
  20166. .queTopTitle {
  20167. display: flex;
  20168. flex-direction: row;
  20169. flex-wrap: nowrap;
  20170. align-items: center;
  20171. font-weight: bold;
  20172. font-size: 20px;
  20173. color: rgb(14, 30, 51);
  20174. }
  20175. .queTopTitle::before {
  20176. content: "";
  20177. width: 2px;
  20178. height: 22px;
  20179. background: #3681fc;
  20180. border-radius: 3px;
  20181. display: block;
  20182. margin: 2px 6px 0 0;
  20183. }
  20184. .queTopRight {
  20185. display: flex;
  20186. flex-direction: row;
  20187. flex-wrap: nowrap;
  20188. align-items: center;
  20189. }
  20190. .queTopClose {
  20191. margin-right: 20px;
  20192. cursor: pointer;
  20193. position: relative;
  20194. display: flex;
  20195. }
  20196. .closeImg,
  20197. .openImg {
  20198. width: 25px;
  20199. height: 25px;
  20200. position: absolute;
  20201. left: -20px;
  20202. top: -1px;
  20203. }
  20204. .closeImg > img,
  20205. .openImg > img {
  20206. width: 100%;
  20207. height: 100%;
  20208. }
  20209. .question {
  20210. width: 40px;
  20211. margin-right: 10px;
  20212. margin-top: 7px;
  20213. }
  20214. .queTitle {
  20215. margin-left: 5px;
  20216. font-size: 25px;
  20217. display: flex;
  20218. align-items: center;
  20219. }
  20220. .addEditor {
  20221. width: 100px;
  20222. height: 30px;
  20223. background: #42cda6;
  20224. color: #fff;
  20225. border-radius: 5px;
  20226. text-align: center;
  20227. line-height: 30px;
  20228. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20229. cursor: pointer;
  20230. }
  20231. /* .vedioName {
  20232. cursor: pointer;
  20233. margin: 0px 0px 10px 5px;
  20234. white-space: nowrap;
  20235. overflow: hidden;
  20236. text-overflow: ellipsis;
  20237. width: 100%;
  20238. } */
  20239. .vedioTime {
  20240. width: 35px;
  20241. position: absolute;
  20242. color: #fff;
  20243. bottom: 0px;
  20244. right: 0px;
  20245. text-align: center;
  20246. background: #46411f;
  20247. height: 20px;
  20248. font-size: 14px;
  20249. line-height: 20px;
  20250. }
  20251. .homework {
  20252. width: 200px;
  20253. display: flex;
  20254. flex-direction: column;
  20255. flex-wrap: nowrap;
  20256. align-items: center;
  20257. cursor: pointer;
  20258. }
  20259. .homebox {
  20260. display: flex;
  20261. flex-wrap: wrap;
  20262. flex-direction: row;
  20263. justify-content: flex-start;
  20264. align-items: center;
  20265. padding: 15px 0;
  20266. }
  20267. .isChooseActive {
  20268. color: #3681fc !important;
  20269. font-weight: bold !important;
  20270. }
  20271. .chooseWho {
  20272. display: flex;
  20273. width: 100%;
  20274. flex-direction: row;
  20275. flex-wrap: nowrap;
  20276. justify-content: flex-start;
  20277. padding-bottom: 10px;
  20278. }
  20279. .chooseWho > div {
  20280. cursor: pointer;
  20281. padding-bottom: 10px;
  20282. margin: 0 30px 0 0;
  20283. font-weight: 400;
  20284. color: #0e1e33;
  20285. }
  20286. .addPoint > div > img {
  20287. cursor: pointer;
  20288. width: 85px;
  20289. border-radius: 15px;
  20290. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20291. }
  20292. .addPoint > div {
  20293. display: flex;
  20294. flex-direction: column;
  20295. flex-wrap: nowrap;
  20296. align-items: center;
  20297. }
  20298. .isBorder > div {
  20299. margin: 0 0 10px 0;
  20300. align-items: flex-start !important;
  20301. }
  20302. .noiframeBox {
  20303. display: flex;
  20304. flex-wrap: wrap;
  20305. }
  20306. .iframeBox iframe {
  20307. width: 100%;
  20308. height: 800px;
  20309. border: none;
  20310. margin-bottom: 20px;
  20311. border: 1px solid #ccc;
  20312. }
  20313. .upload_toolBtn {
  20314. background: #3681fc;
  20315. color: #fff;
  20316. width: 110px;
  20317. text-align: center;
  20318. height: 35px;
  20319. line-height: 35px;
  20320. font-size: 14px;
  20321. border-radius: 5px;
  20322. cursor: pointer;
  20323. position: absolute;
  20324. right: 10px;
  20325. bottom: 0;
  20326. }
  20327. .binfo_input,
  20328. .pj {
  20329. font: inherit;
  20330. color: currentColor;
  20331. width: 100%;
  20332. margin: 0;
  20333. padding: 15px 14px;
  20334. display: block;
  20335. min-width: 0;
  20336. outline: none;
  20337. box-sizing: content-box;
  20338. background: none;
  20339. -webkit-tap-highlight-color: transparent;
  20340. border: 1px solid rgba(0, 0, 0, 0.23);
  20341. border-radius: 4px;
  20342. box-sizing: border-box;
  20343. resize: none;
  20344. }
  20345. .binfo_input:focus-visible {
  20346. border: 1px solid rgba(61, 103, 188);
  20347. }
  20348. .dialog_diy >>> .el-dialog__header,
  20349. .dialog_diy1 >>> .el-dialog__header {
  20350. background: #454545 !important;
  20351. padding: 15px 20px;
  20352. }
  20353. .dialog_diy >>> .el-dialog__title,
  20354. .dialog_diy1 >>> .el-dialog__title {
  20355. color: #fff;
  20356. }
  20357. .dialog_diy >>> .el-dialog__headerbtn,
  20358. .dialog_diy1 >>> .el-dialog__headerbtn {
  20359. top: 19px;
  20360. }
  20361. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20362. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20363. color: #fff;
  20364. }
  20365. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20366. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20367. color: #fff;
  20368. }
  20369. .dialog_diy1 >>> .el-dialog__body {
  20370. padding: 0;
  20371. }
  20372. .dialog_diy >>> .el-dialog__body,
  20373. .dialog_diy >>> .el-dialog__footer,
  20374. .dialog_diy1 >>> .el-dialog__footer {
  20375. background: #fafafa;
  20376. }
  20377. .a_addBox {
  20378. padding: 0 0 0 15px;
  20379. }
  20380. .a_add_box {
  20381. padding: 10px;
  20382. background: #fff;
  20383. margin-bottom: 10px;
  20384. border-radius: 5px;
  20385. box-shadow: 0 0 5px 0 #d5d5d5;
  20386. }
  20387. .a_add_head {
  20388. display: flex;
  20389. align-items: flex-start;
  20390. /* justify-content: space-between; */
  20391. flex-direction: column;
  20392. /* flex-direction: row; */
  20393. margin: 10px 0 20px 0;
  20394. font-size: 18px;
  20395. width: 100%;
  20396. }
  20397. .askIndex {
  20398. background: #3681fc;
  20399. border-radius: 50%;
  20400. color: #fff;
  20401. width: 25px;
  20402. height: 25px;
  20403. min-width: 25px;
  20404. min-height: 25px;
  20405. text-align: center;
  20406. line-height: 25px;
  20407. margin-right: 5px;
  20408. }
  20409. .a_add_head .a_add_head_input {
  20410. width: 300px;
  20411. }
  20412. .a_add_head .a_add_head_div {
  20413. display: flex;
  20414. align-items: center;
  20415. justify-content: space-between;
  20416. }
  20417. .a_add_body {
  20418. display: flex;
  20419. align-items: center;
  20420. }
  20421. .a_add_input {
  20422. display: flex;
  20423. align-items: center;
  20424. flex-wrap: wrap;
  20425. width: 100%;
  20426. }
  20427. .a_add_input >>> .el-radio-group,
  20428. .a_add_input >>> .el-checkbox-group {
  20429. width: 100%;
  20430. }
  20431. .a_add_input >>> .el-radio,
  20432. .a_add_input >>> .el-checkbox {
  20433. display: flex;
  20434. flex-direction: row;
  20435. flex-wrap: nowrap;
  20436. align-items: center;
  20437. padding: 15px 0;
  20438. }
  20439. .a_add_input >>> .el-radio:not(:last-child),
  20440. .a_add_input >>> .el-checkbox:not(:last-child) {
  20441. width: 100%;
  20442. border-bottom: 1px solid #efefef;
  20443. }
  20444. .redioStyle >>> .el-radio__label {
  20445. font-size: 18px;
  20446. }
  20447. .redioStyle >>> .el-radio__label > span,
  20448. .redioStyle >>> .el-checkbox__label > span {
  20449. word-break: break-all;
  20450. white-space: normal;
  20451. }
  20452. .redioStyle >>> .el-checkbox__label {
  20453. font-size: 18px;
  20454. }
  20455. .toolHeng2 {
  20456. width: 100%;
  20457. padding-left: 37px;
  20458. box-sizing: border-box;
  20459. }
  20460. .workNav {
  20461. font-size: 20px;
  20462. font-weight: bold;
  20463. color: #0e1e33;
  20464. display: flex;
  20465. flex-direction: row;
  20466. flex-wrap: nowrap;
  20467. align-items: center;
  20468. padding: 15px 0 15px 0;
  20469. }
  20470. .workNav::before {
  20471. content: "";
  20472. width: 2px;
  20473. height: 22px;
  20474. background: #3681fc;
  20475. border-radius: 3px;
  20476. display: block;
  20477. margin: 2px 6px 0 0;
  20478. }
  20479. .toolHeng {
  20480. display: flex;
  20481. flex-direction: row;
  20482. flex-wrap: wrap;
  20483. justify-content: flex-start;
  20484. align-items: center;
  20485. width: 100%;
  20486. }
  20487. .toolHeng > div {
  20488. padding-left: 20px;
  20489. }
  20490. .isWidth {
  20491. width: 20%;
  20492. }
  20493. .textTitle {
  20494. display: flex;
  20495. flex-direction: row;
  20496. flex-wrap: nowrap;
  20497. align-items: center;
  20498. width: 95%;
  20499. }
  20500. .textTitle >>> .el-form-item__label {
  20501. font-size: 22px;
  20502. color: #918f8f;
  20503. width: 100px;
  20504. }
  20505. .textTitle >>> .el-form-item__content {
  20506. width: calc(100% - 100px);
  20507. }
  20508. .textCss >>> .el-dialog {
  20509. width: 800px !important;
  20510. height: 400px;
  20511. background: #fafafa;
  20512. }
  20513. .textCss >>> .el-dialog__body {
  20514. margin: 55px 8% 0 8%;
  20515. padding: 0 !important;
  20516. }
  20517. .textCss >>> .el-dialog__footer {
  20518. padding-top: 38px;
  20519. }
  20520. .toolsCss >>> .el-dialog__body {
  20521. padding: 20px;
  20522. }
  20523. .lineCss >>> .el-dialog__body {
  20524. display: flex;
  20525. flex-direction: row;
  20526. align-items: center;
  20527. justify-content: center;
  20528. }
  20529. .newNav {
  20530. display: flex;
  20531. flex-direction: row;
  20532. align-items: baseline;
  20533. justify-content: flex-start;
  20534. }
  20535. .navListItem {
  20536. width: calc(100% - 20px);
  20537. height: 50px;
  20538. margin: 0px auto 10px;
  20539. display: flex;
  20540. flex-direction: row;
  20541. flex-wrap: nowrap;
  20542. align-items: center;
  20543. justify-content: space-between;
  20544. background: #f0f4fa;
  20545. border-radius: 6px 6px 6px 6px;
  20546. }
  20547. .navText {
  20548. cursor: pointer;
  20549. white-space: nowrap;
  20550. overflow: hidden;
  20551. text-overflow: ellipsis;
  20552. width: 220px;
  20553. padding: 0 10px;
  20554. font-weight: 400;
  20555. color: #0e1e33;
  20556. }
  20557. .downIcon {
  20558. width: 20px;
  20559. min-width: 20px;
  20560. height: 20px;
  20561. margin-right: 15px;
  20562. cursor: pointer;
  20563. }
  20564. .downIcon > img {
  20565. width: 100%;
  20566. height: 100%;
  20567. }
  20568. .noVedio {
  20569. display: flex;
  20570. flex-direction: row;
  20571. justify-content: center;
  20572. align-content: center;
  20573. }
  20574. .noNavText {
  20575. cursor: pointer;
  20576. margin: 0px 0px 10px 5px;
  20577. width: 112px;
  20578. }
  20579. .listNoVedio {
  20580. margin: 0 0 0 30px;
  20581. width: 97%;
  20582. }
  20583. .video-player >>> .video-js {
  20584. height: 100%;
  20585. }
  20586. .hangVedioList {
  20587. width: 90% !important;
  20588. height: 150px !important;
  20589. margin: 20px 0 0 30px;
  20590. }
  20591. .hangVedio {
  20592. width: 100%;
  20593. height: 170px !important;
  20594. align-items: flex-start !important;
  20595. }
  20596. .hangHand {
  20597. height: 150px !important;
  20598. }
  20599. .twoChild {
  20600. width: 95%;
  20601. margin: 10px;
  20602. border-radius: 5px;
  20603. background: #f2f2f2;
  20604. display: flex;
  20605. flex-direction: column;
  20606. flex-wrap: nowrap;
  20607. justify-content: flex-start;
  20608. align-items: flex-start;
  20609. transition: all 0.5s;
  20610. overflow: hidden;
  20611. height: 0;
  20612. background: #e7f3ff;
  20613. }
  20614. .twoChild > div:nth-child(1) {
  20615. margin-top: 5px;
  20616. }
  20617. .navChild {
  20618. width: 100%;
  20619. cursor: pointer;
  20620. margin-bottom: 10px;
  20621. position: relative;
  20622. }
  20623. .navChild img {
  20624. position: absolute;
  20625. right: 11px;
  20626. width: 15px;
  20627. top: 50%;
  20628. transform: translateY(-50%);
  20629. }
  20630. .navActive,
  20631. .toolActive {
  20632. height: auto !important;
  20633. overflow: auto !important;
  20634. /* padding-bottom: 16px; */
  20635. }
  20636. .toolActive {
  20637. padding: 0;
  20638. }
  20639. .navTask {
  20640. display: flex;
  20641. flex-direction: row;
  20642. flex-wrap: nowrap;
  20643. align-items: center;
  20644. align-content: flex-start;
  20645. height: 40px;
  20646. justify-content: flex-start;
  20647. padding: 0 10px;
  20648. width: 100%;
  20649. box-sizing: border-box;
  20650. }
  20651. .navTaskname {
  20652. white-space: nowrap;
  20653. text-overflow: ellipsis;
  20654. overflow: hidden;
  20655. word-break: break-all;
  20656. padding-left: 5px;
  20657. }
  20658. .openTaskActive {
  20659. /* background-color: #e0eafb !important;
  20660. color: #0061ff; */
  20661. color:#fff;
  20662. background: rgb(55, 129, 252) !important;
  20663. }
  20664. .iframeName {
  20665. margin: 5px 0;
  20666. border-left: 4px solid #41c4a4;
  20667. padding-left: 4px;
  20668. }
  20669. .toolTitle {
  20670. margin: 0px 0px 20px;
  20671. font-size: 20px;
  20672. font-weight: 500;
  20673. border-left: 4px solid #41c4a4;
  20674. padding-left: 4px;
  20675. }
  20676. .cru_selectBox {
  20677. overflow: auto;
  20678. width: 95%;
  20679. margin: 17px auto 0;
  20680. height: calc(100% - 40px - 21px - 20px - 17px);
  20681. background: #fff;
  20682. border-radius: 8px;
  20683. }
  20684. .cru_selectBox::-webkit-scrollbar,
  20685. .study_top::-webkit-scrollbar,
  20686. .textContent::-webkit-scrollbar {
  20687. /*滚动条整体样式*/
  20688. width: 6px;
  20689. /*高宽分别对应横竖滚动条的尺寸*/
  20690. height: 6px;
  20691. }
  20692. /*定义滚动条轨道 内阴影+圆角*/
  20693. .cru_selectBox::-webkit-scrollbar-track,
  20694. .study_top::-webkit-scrollbar-track,
  20695. .textContent::-webkit-scrollbar {
  20696. border-radius: 10px;
  20697. background-color: #b8bdc9;
  20698. }
  20699. /*定义滑块 内阴影+圆角*/
  20700. .cru_selectBox::-webkit-scrollbar-thumb,
  20701. .study_top::-webkit-scrollbar-thumb,
  20702. .textContent::-webkit-scrollbar-thumb {
  20703. border-radius: 10px;
  20704. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20705. background-color: #2c5ab3;
  20706. }
  20707. .vedioBox {
  20708. border-radius: 0 0 20px 20px;
  20709. background: #fff;
  20710. overflow: auto;
  20711. }
  20712. .taskBox {
  20713. width: 98%;
  20714. background: #f0f4fa;
  20715. margin: 10px auto;
  20716. padding: 0 10px;
  20717. border-radius: 4px;
  20718. box-sizing: border-box;
  20719. }
  20720. .vedioTaskBox {
  20721. width: 100%;
  20722. display: flex;
  20723. flex-direction: row;
  20724. flex-wrap: nowrap;
  20725. align-items: flex-start;
  20726. position: relative;
  20727. }
  20728. .toolBox {
  20729. margin: 15px 0 0 25px;
  20730. display: flex;
  20731. position: relative;
  20732. padding: 18px 20px;
  20733. border-top-left-radius: 5px;
  20734. border-top-right-radius: 5px;
  20735. width: 90%;
  20736. }
  20737. .btnAll {
  20738. position: absolute;
  20739. right: 0;
  20740. display: flex;
  20741. flex-direction: row;
  20742. flex-wrap: nowrap;
  20743. align-items: center;
  20744. }
  20745. .btnLeft,
  20746. .btnRight {
  20747. display: flex;
  20748. flex-direction: row;
  20749. flex-wrap: nowrap;
  20750. align-items: center;
  20751. padding: 5px 0;
  20752. }
  20753. .btnLeft {
  20754. border-right: 1px solid #cad1dc;
  20755. }
  20756. .btnLeft > .custom-tooltip {
  20757. background: #3681fc;
  20758. color: #fff;
  20759. }
  20760. .last:hover {
  20761. background: #3383fa !important;
  20762. color: #fff;
  20763. border: 1px solid #3383fa !important;
  20764. }
  20765. .last,
  20766. .returnBtn1 {
  20767. width: 90px;
  20768. height: 36px;
  20769. background: #ffffff;
  20770. border-radius: 4px;
  20771. border: 1px solid #0061ff;
  20772. color: #0061ff;
  20773. cursor: pointer;
  20774. display: flex;
  20775. flex-direction: row;
  20776. flex-wrap: nowrap;
  20777. align-items: center;
  20778. justify-content: center;
  20779. margin-left: 12px;
  20780. }
  20781. .returnBtn1 {
  20782. background: #f0f4fa;
  20783. border-radius: 4px;
  20784. border: 1px solid #cad1dc;
  20785. margin: 0 12px;
  20786. }
  20787. .lastImg {
  20788. min-width: 15px;
  20789. width: 15px;
  20790. height: 15px;
  20791. display: flex;
  20792. }
  20793. .lastText {
  20794. padding: 0 5px 0 5px;
  20795. box-sizing: border-box;
  20796. font-size: 14px;
  20797. }
  20798. .lastImg > img {
  20799. width: 100%;
  20800. height: 100%;
  20801. }
  20802. /* .vedioTimeBox {
  20803. display: flex;
  20804. flex-direction: row;
  20805. align-items: center;
  20806. flex-wrap: nowrap;
  20807. position: relative;
  20808. } */
  20809. .navBox {
  20810. background: #fff;
  20811. height: calc(100% - 40px);
  20812. overflow-y: auto;
  20813. overflow-x: hidden;
  20814. }
  20815. .worksBox {
  20816. margin: 0 0 10px 25px;
  20817. border-bottom: 1px solid #eeeeee;
  20818. padding: 18px 20px;
  20819. border-radius: 4px;
  20820. width: 90%;
  20821. }
  20822. .worksBTitle {
  20823. font-size: 20px;
  20824. padding-bottom: 15px;
  20825. border-bottom: 1px solid #eeeeee;
  20826. display: flex;
  20827. align-items: center;
  20828. }
  20829. .greenBox {
  20830. width: 5px;
  20831. height: 30px;
  20832. background: #63b6fa;
  20833. margin-right: 5px;
  20834. }
  20835. .worksDetailBox {
  20836. display: flex;
  20837. width: 100%;
  20838. flex-direction: row;
  20839. flex-wrap: wrap;
  20840. align-items: flex-end;
  20841. justify-content: flex-start;
  20842. padding: 15px 5px;
  20843. box-sizing: border-box;
  20844. }
  20845. .works {
  20846. display: flex;
  20847. flex-direction: column;
  20848. flex-wrap: nowrap;
  20849. align-items: flex-start;
  20850. justify-content: flex-start;
  20851. align-content: center;
  20852. max-width: 240px;
  20853. width: calc(100% / 3 - 10px);
  20854. height: auto;
  20855. margin-right: 10px;
  20856. margin-bottom: 10px;
  20857. overflow: hidden;
  20858. height: 140px;
  20859. box-shadow: 0 0 6px 1px #dfdada;
  20860. border-radius: 15px;
  20861. }
  20862. .workImg {
  20863. width: 100%;
  20864. /* height: calc(100% - 40px); */
  20865. height: 105px;
  20866. position: relative;
  20867. }
  20868. .workImg > img {
  20869. width: 100%;
  20870. height: 100%;
  20871. object-fit: contain;
  20872. cursor: pointer;
  20873. }
  20874. .worksName {
  20875. height: 40px;
  20876. line-height: 40px;
  20877. display: flex;
  20878. width: 100%;
  20879. flex-direction: row;
  20880. flex-wrap: nowrap;
  20881. justify-content: space-between;
  20882. align-items: center;
  20883. margin: 0 0 0 10px;
  20884. }
  20885. .worksName > div:nth-child(1) {
  20886. width: 110px;
  20887. white-space: nowrap;
  20888. overflow: hidden;
  20889. text-overflow: ellipsis;
  20890. }
  20891. .worksName > div:nth-child(2) {
  20892. color: #b7b4b5;
  20893. }
  20894. .noWorksS {
  20895. padding: 15px 0;
  20896. display: flex;
  20897. flex-direction: row;
  20898. flex-wrap: wrap;
  20899. align-items: center;
  20900. justify-content: flex-start;
  20901. }
  20902. .noWorksName,
  20903. .isWorksName,
  20904. .isWorksName2 {
  20905. background: #ddebf8;
  20906. color: #000;
  20907. width: 90px;
  20908. height: 25px;
  20909. text-align: center;
  20910. line-height: 25px;
  20911. border-radius: 4px;
  20912. margin: 10px 15px 10px 0;
  20913. white-space: nowrap;
  20914. overflow: hidden;
  20915. padding: 5px;
  20916. text-overflow: ellipsis;
  20917. cursor: pointer;
  20918. border: 1px solid #ddebf8;
  20919. }
  20920. .noWorksName {
  20921. background: #fff;
  20922. color: #0061ff;
  20923. border: 1px solid #0061ff;
  20924. }
  20925. .isWorksName2 {
  20926. width: 100px;
  20927. height: 40px;
  20928. line-height: 40px;
  20929. position: relative;
  20930. background: #dae6f9;
  20931. }
  20932. .isWorksName {
  20933. background: #e7ebf1 !important;
  20934. width: 100px;
  20935. height: 40px;
  20936. line-height: 40px;
  20937. position: relative;
  20938. color: #acb4bf;
  20939. border: 1px solid #cad1dc !important;
  20940. }
  20941. .isSelectName,
  20942. .noWorksName:hover {
  20943. background: #3383fa !important;
  20944. color: #fff !important;
  20945. border: 1px solid #3383fa !important;
  20946. }
  20947. .title {
  20948. background: #1e5cc9;
  20949. /* width: 98%; */
  20950. height: 45px;
  20951. color: #fff;
  20952. line-height: 45px;
  20953. padding-left: 20px;
  20954. box-sizing: border-box;
  20955. }
  20956. .textBox {
  20957. font-size: 20px;
  20958. width: 90%;
  20959. display: flex;
  20960. flex-direction: column;
  20961. align-items: center;
  20962. margin: 20px auto 0;
  20963. max-height: calc(100% - 75px);
  20964. overflow: auto;
  20965. }
  20966. .textContent {
  20967. font-size: 18px;
  20968. width: 95%;
  20969. max-width: 95%;
  20970. }
  20971. .answerBg {
  20972. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  20973. background-size: 100% 100%;
  20974. width: 100%;
  20975. height: 100%;
  20976. color: #fff;
  20977. text-align: center;
  20978. display: flex;
  20979. flex-direction: column;
  20980. flex-wrap: nowrap;
  20981. align-items: center;
  20982. position: relative;
  20983. justify-content: center;
  20984. }
  20985. .answerBg > div:nth-child(1) {
  20986. /* font-size: 22px;
  20987. padding: 25px 0 10px; */
  20988. }
  20989. .answerContent {
  20990. width: 215px;
  20991. max-height: 60px;
  20992. word-break: break-all;
  20993. text-align: center;
  20994. /* white-space: nowrap; */
  20995. overflow: hidden;
  20996. text-overflow: ellipsis;
  20997. /* padding: 23px 0 0; */
  20998. -webkit-line-clamp: 3;
  20999. -webkit-box-orient: vertical;
  21000. display: -webkit-box;
  21001. font-size: 15px;
  21002. cursor: pointer;
  21003. }
  21004. .elist_input_box {
  21005. display: flex;
  21006. align-items: flex-start;
  21007. flex-wrap: nowrap;
  21008. padding: 10px 0 15px 30px;
  21009. flex-direction: column;
  21010. }
  21011. .elist_input {
  21012. /* width: 40%; */
  21013. width: 45%;
  21014. margin: 20px;
  21015. }
  21016. .elist_input .elist_input_box input {
  21017. font: inherit;
  21018. color: currentColor;
  21019. width: 200px;
  21020. padding: 8px 14px;
  21021. display: block;
  21022. min-width: 0;
  21023. outline: none;
  21024. border: 1px solid rgba(0, 0, 0, 0.23);
  21025. border-radius: 4px;
  21026. box-sizing: border-box;
  21027. background: #fff;
  21028. margin: 0 20px 0 0;
  21029. }
  21030. .elist_input .elist_input_box span {
  21031. height: 36px;
  21032. line-height: 36px;
  21033. color: rgb(82, 82, 82);
  21034. }
  21035. .elist_input .elist_input_box .remove {
  21036. height: 20px;
  21037. width: 20px;
  21038. background-size: 100% 100%;
  21039. background-position: unset;
  21040. margin-left: 5px;
  21041. }
  21042. .elist_input_box >>> .el-rate {
  21043. display: flex;
  21044. height: 36px;
  21045. align-items: center;
  21046. }
  21047. .elist_input_box .elist_inptu_text {
  21048. min-height: 50px;
  21049. /* width: 500px;
  21050. max-height: 150px; */
  21051. width: 100%;
  21052. line-height: 50px;
  21053. color: rgb(82, 82, 82);
  21054. overflow: auto;
  21055. text-indent: 5px;
  21056. background: #f7f6f9;
  21057. border-radius: 10px;
  21058. }
  21059. .elist_input_box .elist_inptu_text input {
  21060. width: 500px;
  21061. }
  21062. .elist_input_box >>> .el-rate__icon {
  21063. font-size: 24px;
  21064. }
  21065. .isClick {
  21066. background: #4d9def;
  21067. }
  21068. .bzBox {
  21069. display: flex;
  21070. flex-direction: row;
  21071. align-items: center;
  21072. }
  21073. .bzBox .yCss {
  21074. width: 7px;
  21075. height: 7px;
  21076. background: #fff;
  21077. margin: 0 16px 0 6px;
  21078. border-radius: 50%;
  21079. border: 5px solid #3681fc;
  21080. z-index: 99;
  21081. }
  21082. .bzBox > div:nth-child(2) {
  21083. font-size: 18px;
  21084. font-weight: bold;
  21085. color: #0e1e33;
  21086. }
  21087. .navTitile {
  21088. padding: 0 0px 0 15px;
  21089. font-size: 16px;
  21090. font-weight: bold;
  21091. color: #0e1e33;
  21092. height: 40px;
  21093. line-height: 40px;
  21094. }
  21095. .isTypeOne {
  21096. width: 240px;
  21097. height: 170px;
  21098. /* border: 1px solid #f8f8f8; */
  21099. border-radius: 10px;
  21100. box-shadow: 0 0 6px 1px #dfdada;
  21101. }
  21102. .e_add_top {
  21103. display: flex;
  21104. justify-content: space-between;
  21105. padding: 10px 20px;
  21106. border-radius: 3px;
  21107. background: #fff;
  21108. }
  21109. .e_add_title2 {
  21110. display: flex;
  21111. align-items: center;
  21112. }
  21113. .e_add_title2 span {
  21114. width: 40px;
  21115. }
  21116. .e_add_title {
  21117. display: flex;
  21118. align-items: center;
  21119. color: #b8b8b8;
  21120. font-size: 18px;
  21121. position: relative;
  21122. height: 40px;
  21123. }
  21124. .e_add_title span {
  21125. margin-right: 10px;
  21126. }
  21127. .e_add_title .el_input {
  21128. width: 300px;
  21129. }
  21130. .e_add_title >>> .el-input__inner {
  21131. width: 400px;
  21132. }
  21133. .e_add_btn {
  21134. }
  21135. .e_add_content {
  21136. display: flex;
  21137. width: 100%;
  21138. max-width: 650px;
  21139. height: 550px;
  21140. }
  21141. .e_add_list {
  21142. background: #fff;
  21143. height: 500px;
  21144. width: 210px;
  21145. position: relative;
  21146. margin: 15px 5px 0 0;
  21147. flex-shrink: 0;
  21148. display: flex;
  21149. flex-direction: column;
  21150. }
  21151. .e_add_list_title {
  21152. font-size: 20px;
  21153. width: 100%;
  21154. box-sizing: border-box;
  21155. padding: 15px 40px;
  21156. text-align: center;
  21157. border-bottom: 1px solid #eaeaea;
  21158. position: relative;
  21159. display: flex;
  21160. align-items: center;
  21161. justify-content: center;
  21162. height: 57px;
  21163. background: #f6f6f6;
  21164. }
  21165. .e_add_list_title span {
  21166. overflow: hidden;
  21167. white-space: nowrap;
  21168. text-overflow: ellipsis;
  21169. }
  21170. .e_add_list_title img {
  21171. position: absolute;
  21172. right: 15px;
  21173. width: 25px;
  21174. cursor: pointer;
  21175. top: 50%;
  21176. transform: translateY(-50%);
  21177. }
  21178. .e_add_list_body {
  21179. height: calc(100% - 187px);
  21180. overflow: auto;
  21181. }
  21182. .e_add_list_child {
  21183. width: 100%;
  21184. display: flex;
  21185. align-items: center;
  21186. justify-content: center;
  21187. position: relative;
  21188. box-sizing: border-box;
  21189. padding: 15px 40px;
  21190. text-align: center;
  21191. }
  21192. .e_add_list_child span {
  21193. overflow: hidden;
  21194. white-space: nowrap;
  21195. text-overflow: ellipsis;
  21196. cursor: pointer;
  21197. }
  21198. .e_add_list_child img {
  21199. position: absolute;
  21200. right: 10px;
  21201. width: 21px;
  21202. cursor: pointer;
  21203. top: 50%;
  21204. transform: translateY(-50%);
  21205. }
  21206. .e_add_list_child + .e_add_list_child {
  21207. border-top: 1px solid #eaeaea;
  21208. }
  21209. .e_add_list_child .active {
  21210. color: #409eff;
  21211. }
  21212. .e_add_list_btn {
  21213. position: absolute;
  21214. bottom: 0;
  21215. height: 50px;
  21216. background: rgb(120, 120, 254);
  21217. width: 100%;
  21218. color: #fff;
  21219. font-size: 16px;
  21220. text-align: center;
  21221. line-height: 50px;
  21222. cursor: pointer;
  21223. }
  21224. .e_add_list_detail {
  21225. position: absolute;
  21226. bottom: 0;
  21227. height: 130px;
  21228. background: rgb(120, 120, 254);
  21229. width: 100%;
  21230. color: #fff;
  21231. font-size: 16px;
  21232. display: flex;
  21233. align-items: center;
  21234. justify-content: center;
  21235. }
  21236. .e_add_list_detail textarea {
  21237. height: 90%;
  21238. width: 95%;
  21239. border: none;
  21240. resize: none;
  21241. outline: none;
  21242. padding: 5px;
  21243. box-sizing: border-box;
  21244. }
  21245. .e_add_list_pbox {
  21246. width: 100%;
  21247. max-width: 650px;
  21248. /* height: 600px; */
  21249. }
  21250. .e_add_list_pbox_title {
  21251. height: 50px;
  21252. background: #fff;
  21253. display: flex;
  21254. align-items: center;
  21255. width: 100%;
  21256. box-sizing: border-box;
  21257. padding: 0 20px;
  21258. }
  21259. .type_title {
  21260. font-size: 18px;
  21261. font-weight: 700;
  21262. }
  21263. .type_content {
  21264. font-size: 16px;
  21265. /* margin-left: 30px; */
  21266. }
  21267. .type_content span + span {
  21268. margin-left: 20px;
  21269. }
  21270. .type_content span {
  21271. cursor: pointer;
  21272. padding-bottom: 5px;
  21273. box-sizing: border-box;
  21274. }
  21275. .type_content .active {
  21276. color: #409eff;
  21277. border-bottom: 2px solid #409eff;
  21278. }
  21279. .e_add_list_pbox_content {
  21280. height: calc(100% - 50px);
  21281. display: flex;
  21282. align-items: center;
  21283. width: 100%;
  21284. background: #fff;
  21285. }
  21286. .evaCss {
  21287. display: flex;
  21288. flex-direction: row;
  21289. flex-wrap: nowrap;
  21290. align-items: flex-start;
  21291. padding: 0 0 20px;
  21292. }
  21293. .cru_line {
  21294. position: absolute;
  21295. bottom: 0px;
  21296. transition: all 0.5s;
  21297. left: 0px;
  21298. width: 125px;
  21299. margin-left: -25px;
  21300. }
  21301. .isNoMessage {
  21302. width: 20%;
  21303. margin: 25% auto 0;
  21304. }
  21305. .isNoMessage > img {
  21306. width: 100%;
  21307. height: 100%;
  21308. }
  21309. .fullStyle >>> .el-dialog__body {
  21310. height: 100% !important;
  21311. }
  21312. .fullStyle >>> .el-dialog,
  21313. .fullStyle {
  21314. width: 100% !important;
  21315. max-width: 100% !important;
  21316. height: 100% !important;
  21317. margin: 0 !important;
  21318. }
  21319. .full_diy >>> .el-dialog {
  21320. margin: 0 !important;
  21321. height: 100%;
  21322. padding: 4px;
  21323. }
  21324. .full_diy >>> .el-dialog__body {
  21325. height: calc(100% - 100px);
  21326. }
  21327. .full_diy2 >>> .el-dialog__body {
  21328. height: calc(100% - 50px);
  21329. padding: 0;
  21330. }
  21331. .switchCss {
  21332. /* width: 100%; */
  21333. display: flex;
  21334. flex-direction: row;
  21335. flex-wrap: nowrap;
  21336. align-items: center;
  21337. /* justify-content: center; */
  21338. }
  21339. .isClickNav {
  21340. /* color: #499eef; */
  21341. color: #000;
  21342. }
  21343. .commentImg {
  21344. width: 25px;
  21345. height: 25px;
  21346. cursor: pointer;
  21347. }
  21348. .commentImg > img {
  21349. width: 100%;
  21350. height: 100%;
  21351. }
  21352. .comment {
  21353. background: #f9f9f9;
  21354. border-radius: 0 0 4px 4px;
  21355. display: flex;
  21356. flex-direction: row;
  21357. flex-wrap: nowrap;
  21358. align-items: center;
  21359. justify-content: flex-end;
  21360. height: 35px;
  21361. }
  21362. .commentList {
  21363. display: flex;
  21364. flex-direction: row;
  21365. flex-wrap: nowrap;
  21366. align-items: center;
  21367. justify-content: center;
  21368. align-content: center;
  21369. /* margin-left: 15px; */
  21370. /* margin-left: 8px; */
  21371. }
  21372. .scoreImg {
  21373. width: 17px;
  21374. height: 17px;
  21375. }
  21376. .studentDetail {
  21377. display: flex;
  21378. flex-direction: row;
  21379. flex-wrap: nowrap;
  21380. /* align-items: center; */
  21381. align-items: flex-start;
  21382. }
  21383. .tx {
  21384. width: 50px;
  21385. }
  21386. .tx > img {
  21387. width: 100%;
  21388. height: 100%;
  21389. }
  21390. .nameAndTime {
  21391. display: flex;
  21392. flex-direction: column;
  21393. flex-wrap: nowrap;
  21394. align-items: flex-start;
  21395. margin-left: 10px;
  21396. }
  21397. .worksAnswer {
  21398. color: #4078dd;
  21399. margin: 10px 0;
  21400. font-size: 16px;
  21401. position: relative;
  21402. }
  21403. .worksAnswer > img {
  21404. width: 500px;
  21405. height: 300px;
  21406. object-fit: contain;
  21407. margin: 0 auto;
  21408. display: block;
  21409. }
  21410. .commentTop {
  21411. border-bottom: 1px solid #eaeaea;
  21412. padding-bottom: 10px;
  21413. }
  21414. .commentBox {
  21415. padding-top: 15px;
  21416. }
  21417. .pl {
  21418. font-size: 18px;
  21419. }
  21420. .plPerson {
  21421. width: 100%;
  21422. }
  21423. .plName {
  21424. display: flex;
  21425. flex-direction: row;
  21426. flex-wrap: nowrap;
  21427. align-items: baseline;
  21428. color: #78787a;
  21429. width: 100%;
  21430. }
  21431. .deleteComment {
  21432. cursor: pointer;
  21433. margin-left: auto;
  21434. color: #237ade;
  21435. }
  21436. .plContent {
  21437. margin-top: 5px;
  21438. }
  21439. .evalCss {
  21440. background: #fff;
  21441. font-size: 18px;
  21442. }
  21443. .nav {
  21444. color: #9d9d9d;
  21445. padding: 5px 0 15px 20px;
  21446. }
  21447. .middleBox {
  21448. padding: 5px 0 15px 20px;
  21449. }
  21450. .pfBox {
  21451. padding-bottom: 30px;
  21452. }
  21453. .nameAndrate {
  21454. display: flex;
  21455. flex-direction: row;
  21456. flex-wrap: nowrap;
  21457. align-items: center;
  21458. padding-bottom: 10px;
  21459. height: 30px;
  21460. line-height: 30px;
  21461. }
  21462. .nameAndrate > div {
  21463. margin-left: 10px;
  21464. color: #000;
  21465. height: 30px;
  21466. }
  21467. .nameAndrate >>> .el-rate__icon {
  21468. font-size: 28px !important;
  21469. }
  21470. .pfBox > div:nth-child(2) {
  21471. background: #f7f6f9;
  21472. width: 400px;
  21473. min-height: 45px;
  21474. border-radius: 10px;
  21475. font-size: 16px;
  21476. display: flex;
  21477. flex-wrap: wrap;
  21478. align-items: center;
  21479. padding: 10px 20px;
  21480. box-sizing: border-box;
  21481. color: #000;
  21482. }
  21483. .bz {
  21484. display: flex;
  21485. flex-direction: row;
  21486. flex-wrap: nowrap;
  21487. align-items: flex-start;
  21488. }
  21489. .bz > div {
  21490. padding: 0 10px;
  21491. }
  21492. .select_box2_title {
  21493. background: #fff;
  21494. border-radius: 5px;
  21495. padding: 15px 10px;
  21496. box-sizing: border-box;
  21497. margin-bottom: 10px;
  21498. display: flex;
  21499. flex-direction: row;
  21500. flex-wrap: nowrap;
  21501. align-items: center;
  21502. }
  21503. .select_box2_title > div:nth-child(2) {
  21504. margin-left: 10px;
  21505. color: #c4c4c4;
  21506. }
  21507. .select_box2_box {
  21508. display: flex;
  21509. height: 500px;
  21510. }
  21511. .select_box2_img {
  21512. width: calc(100% - 310px);
  21513. height: 100%;
  21514. overflow: auto;
  21515. background: #fff;
  21516. border-radius: 5px;
  21517. }
  21518. .select_box2_img img {
  21519. width: 100%;
  21520. }
  21521. .select_box2_answer {
  21522. background: #fff;
  21523. margin-left: 10px;
  21524. border-radius: 5px;
  21525. width: 300px;
  21526. overflow: auto;
  21527. height: 90%;
  21528. display: flex;
  21529. flex-direction: column;
  21530. align-items: flex-start;
  21531. padding-top: 10px;
  21532. box-sizing: border-box;
  21533. position: relative;
  21534. }
  21535. .select_answer_title {
  21536. padding: 0 0 15px 20px;
  21537. color: #c4c4c4;
  21538. }
  21539. .select_box2_answer_box {
  21540. margin: 0 0 10px 20px;
  21541. width: 85%;
  21542. display: flex;
  21543. flex-direction: row;
  21544. flex-wrap: nowrap;
  21545. align-items: center;
  21546. }
  21547. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21548. color: #000;
  21549. }
  21550. .upAnswerCss {
  21551. position: absolute;
  21552. bottom: 15px;
  21553. right: 15px;
  21554. }
  21555. .upAnswerCss >>> .el-button {
  21556. width: 95px;
  21557. height: 35px;
  21558. line-height: 35px;
  21559. padding: 0;
  21560. }
  21561. .rightWidthCss {
  21562. width: 60%;
  21563. display: flex;
  21564. flex-direction: row;
  21565. align-items: flex-start;
  21566. }
  21567. .rightAnswer {
  21568. display: flex;
  21569. flex-direction: row;
  21570. flex-wrap: nowrap;
  21571. align-items: center;
  21572. color: red;
  21573. margin-bottom: 31px;
  21574. }
  21575. .rightAnswerCss {
  21576. display: flex;
  21577. flex-direction: column;
  21578. flex-wrap: nowrap;
  21579. padding-top: 60px;
  21580. }
  21581. .blueCss {
  21582. color: #767de1;
  21583. margin-left: 10px;
  21584. }
  21585. .redCss {
  21586. color: red;
  21587. }
  21588. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21589. color: rgb(0 123 255) !important;
  21590. }
  21591. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21592. color: rgb(0 123 255) !important;
  21593. }
  21594. .zuoyeYulan {
  21595. padding-top: 0;
  21596. font-size: 18px;
  21597. display: flex;
  21598. align-items: flex-end;
  21599. }
  21600. .buttonA {
  21601. margin-left: 10px;
  21602. padding: 0;
  21603. }
  21604. .displayBox {
  21605. margin-bottom: 10px;
  21606. display: block;
  21607. border-bottom: 3px solid #eee;
  21608. display: flex;
  21609. align-items: center;
  21610. }
  21611. .easy_comment {
  21612. width: calc(100% - 90px);
  21613. margin-left: 10px;
  21614. display: flex;
  21615. flex-wrap: wrap;
  21616. }
  21617. .easy_comment > div {
  21618. border: 1px solid #4a4a4a;
  21619. color: #666;
  21620. border-radius: 15px;
  21621. padding: 5px 10px;
  21622. font-size: 16px;
  21623. margin-bottom: 10px;
  21624. margin-right: 5px;
  21625. cursor: pointer;
  21626. }
  21627. .easy_comment div:hover {
  21628. border: 1px solid #f7ba2a;
  21629. color: #c69217;
  21630. }
  21631. .xuan_right_box {
  21632. padding: 10px 0;
  21633. background: #f0f4fa;
  21634. margin: 0 15px 0 25px;
  21635. border-bottom-left-radius: 5px;
  21636. border-bottom-right-radius: 5px;
  21637. width: 91.5%;
  21638. }
  21639. .tool_right_box {
  21640. display: flex;
  21641. align-items: center;
  21642. }
  21643. .tool_right_box + .tool_right_box {
  21644. margin-top: 10px;
  21645. }
  21646. .right_box_xuan {
  21647. border-radius: 5px;
  21648. padding: 5px;
  21649. margin-left: 10px;
  21650. min-width: 85px;
  21651. background: #fff;
  21652. color: #0061ff;
  21653. border: 1px solid #0061ff;
  21654. font-size: 14px;
  21655. }
  21656. .pButton:hover {
  21657. opacity: 1 !important;
  21658. }
  21659. .pButton {
  21660. position: fixed;
  21661. text-align: center;
  21662. cursor: pointer;
  21663. z-index: 999;
  21664. right: 20px;
  21665. top: 110px;
  21666. width: 50px;
  21667. height: 50px;
  21668. display: flex;
  21669. align-items: center;
  21670. justify-content: center;
  21671. border-radius: 5px;
  21672. }
  21673. .pzClass {
  21674. width: calc(100% - 340px);
  21675. }
  21676. .newDialogCss {
  21677. /* position: fixed;
  21678. right: 5%;
  21679. top: 50%;
  21680. width: 340px;
  21681. transform: translateY(-50%);
  21682. height: 60%;
  21683. box-shadow: 0px 0 8px 0px #555555;
  21684. border-radius: 15px;
  21685. z-index: 999; */
  21686. position: fixed;
  21687. right: 20px;
  21688. top: 101px;
  21689. width: 330px;
  21690. height: calc(100% - 80px);
  21691. z-index: 999;
  21692. background: #fff;
  21693. border-top-right-radius: 0px;
  21694. border-bottom-right-radius: 0px;
  21695. overflow: hidden;
  21696. }
  21697. .pzTop {
  21698. color: #fff;
  21699. background: #000;
  21700. display: flex;
  21701. flex-direction: row;
  21702. flex-wrap: nowrap;
  21703. align-items: center;
  21704. justify-content: space-between;
  21705. height: 40px;
  21706. border-radius: 15px 15px 0 0;
  21707. user-select: none;
  21708. }
  21709. .pzTop2 .checkbox {
  21710. display: flex;
  21711. align-items: center;
  21712. padding: 5px 30px;
  21713. flex: 0 0 auto;
  21714. font-weight: bold;
  21715. border-bottom: 1px solid #eee;
  21716. justify-content: space-between;
  21717. }
  21718. .pzTop2 .check {
  21719. text-align: center;
  21720. cursor: pointer;
  21721. box-sizing: border-box;
  21722. display: flex;
  21723. }
  21724. .pzTop2 img {
  21725. width: 25px;
  21726. cursor: pointer;
  21727. }
  21728. .pzTop > div:nth-child(1) {
  21729. padding-left: 10px;
  21730. }
  21731. .pzTop > div:nth-child(2) {
  21732. width: 15px;
  21733. height: 15px;
  21734. padding-right: 10px;
  21735. cursor: pointer;
  21736. }
  21737. .pzTop > div:nth-child(2) > img {
  21738. width: 100%;
  21739. height: 100%;
  21740. }
  21741. .pzBox,
  21742. .noPzBox {
  21743. height: calc(100% - 60px);
  21744. /* background: #ededed; */
  21745. background: #fff;
  21746. /* border-radius: 0 0 15px 15px; */
  21747. }
  21748. .noPzBox {
  21749. display: flex;
  21750. flex-direction: column;
  21751. flex-wrap: nowrap;
  21752. justify-content: center;
  21753. align-items: center;
  21754. }
  21755. .pzList {
  21756. background: #f7f7f7;
  21757. width: 90%;
  21758. margin: 0 auto 15px;
  21759. border-radius: 5px;
  21760. }
  21761. .pzNavTop {
  21762. display: flex;
  21763. flex-direction: row;
  21764. flex-wrap: nowrap;
  21765. padding: 10px 10px 0 10px;
  21766. align-items: center;
  21767. }
  21768. .pzDelete {
  21769. cursor: pointer;
  21770. margin-left: auto;
  21771. font-size: 14px;
  21772. color: #afafaf;
  21773. }
  21774. .pzNavTop > div:nth-child(1) {
  21775. background: #3760af;
  21776. width: 35px;
  21777. height: 35px;
  21778. color: #fff;
  21779. text-align: center;
  21780. line-height: 35px;
  21781. border-radius: 50%;
  21782. font-size: 14px;
  21783. }
  21784. .pzNavTop > div:nth-child(2) {
  21785. font-size: 18px;
  21786. color: #959595;
  21787. margin-left: 5px;
  21788. }
  21789. .pzContent {
  21790. padding: 10px;
  21791. word-break: break-word;
  21792. }
  21793. .pzContent audio {
  21794. width: 100%;
  21795. }
  21796. .pzContent audio::-webkit-media-controls-panel {
  21797. background: #fff;
  21798. }
  21799. .pzContent >>> img {
  21800. max-width: 100%;
  21801. }
  21802. .pzListBox {
  21803. padding-top: 15px;
  21804. height: calc(100% - 110px);
  21805. overflow: auto;
  21806. }
  21807. .addPzButton {
  21808. position: relative;
  21809. margin-top: 3px;
  21810. width: 100%;
  21811. }
  21812. .addPzButton .img1 {
  21813. position: absolute;
  21814. top: 50%;
  21815. right: 25px;
  21816. transform: translateY(-50%);
  21817. height: 100%;
  21818. display: flex;
  21819. align-items: center;
  21820. }
  21821. .addPzButton .img1 div {
  21822. display: flex;
  21823. }
  21824. .addPzButton .img1 div img {
  21825. width: 28px;
  21826. margin-left: 10px;
  21827. cursor: pointer;
  21828. }
  21829. .addPzButton .img1 div span {
  21830. font-size: 14px;
  21831. margin: 4px 0 0 3px;
  21832. color: #afafaf;
  21833. }
  21834. .addPz {
  21835. background: #4b79ce;
  21836. width: 100px;
  21837. color: #fff;
  21838. font-size: 12px;
  21839. height: 30px;
  21840. margin: 0 auto;
  21841. text-align: center;
  21842. line-height: 30px;
  21843. border-radius: 10px;
  21844. cursor: pointer;
  21845. }
  21846. .addDialogCss {
  21847. position: fixed;
  21848. width: 600px;
  21849. height: 70%;
  21850. min-height: 450px;
  21851. box-shadow: 0px 0 8px 0px #555555;
  21852. border-radius: 15px;
  21853. z-index: 999;
  21854. left: 50%;
  21855. top: 50%;
  21856. margin: -18% 0 0 -300px;
  21857. }
  21858. .teacherPz {
  21859. display: flex;
  21860. flex-direction: row;
  21861. align-items: center;
  21862. flex-wrap: nowrap;
  21863. }
  21864. .teacherPzImg {
  21865. width: 30px;
  21866. height: 30px;
  21867. }
  21868. .teacherPzImg > img {
  21869. width: 100%;
  21870. height: 100%;
  21871. }
  21872. .addPzBox {
  21873. height: calc(100% - 40px);
  21874. background: #ededed;
  21875. border-bottom-left-radius: 15px;
  21876. border-bottom-right-radius: 15px;
  21877. }
  21878. .pzAudioClass {
  21879. margin: 15px 14px;
  21880. background: #fff;
  21881. height: 100%;
  21882. display: flex;
  21883. justify-content: center;
  21884. align-items: center;
  21885. }
  21886. .pzConText {
  21887. width: 95%;
  21888. height: 100%;
  21889. margin: 10px auto 0;
  21890. border: none;
  21891. background: #fff;
  21892. border-radius: 0px;
  21893. }
  21894. .pzConText >>> .text {
  21895. height: calc(100% - 82px);
  21896. }
  21897. .addTextCss {
  21898. background: #4b79ce;
  21899. width: 80px;
  21900. height: 30px;
  21901. text-align: center;
  21902. color: #fff;
  21903. line-height: 30px;
  21904. border-radius: 10px;
  21905. margin: 10px auto 0;
  21906. cursor: pointer;
  21907. }
  21908. .pzConText:focus-visible {
  21909. border: none !important;
  21910. }
  21911. .maxWidth {
  21912. width: 1000px;
  21913. }
  21914. .noPz {
  21915. width: 150px;
  21916. margin: 0 auto 20%;
  21917. }
  21918. .noPz > img {
  21919. width: 100%;
  21920. height: 100%;
  21921. }
  21922. .timeAndReply {
  21923. display: flex;
  21924. flex-direction: row;
  21925. flex-wrap: nowrap;
  21926. justify-content: space-between;
  21927. align-items: center;
  21928. font-size: 14px;
  21929. box-sizing: border-box;
  21930. padding: 0 10px 10px 0px;
  21931. }
  21932. .timeAndReply .time {
  21933. color: #bfbfbf;
  21934. padding: 0 0 0 10px;
  21935. box-sizing: border-box;
  21936. }
  21937. .timeAndReply > div:last-child {
  21938. cursor: pointer;
  21939. color: #777;
  21940. }
  21941. /* table 样式 */
  21942. .cont >>> table {
  21943. border-top: 1px solid #ccc;
  21944. border-left: 1px solid #ccc;
  21945. }
  21946. .cont >>> table td,
  21947. .cont >>> table th {
  21948. border-bottom: 1px solid #ccc;
  21949. border-right: 1px solid #ccc;
  21950. /* padding: 20px 5px; */
  21951. padding: 5px 10px;
  21952. max-width: 0px;
  21953. height: 30px;
  21954. vertical-align: baseline;
  21955. box-sizing: border-box;
  21956. }
  21957. .cont >>> table th {
  21958. border-bottom: 2px solid #ccc;
  21959. text-align: center;
  21960. }
  21961. /* blockquote 样式 */
  21962. .cont >>> blockquote {
  21963. display: block;
  21964. border-left: 8px solid #d0e5f2;
  21965. padding: 5px 10px;
  21966. margin: 10px 0;
  21967. line-height: 1.4;
  21968. font-size: 100%;
  21969. background-color: #f1f1f1;
  21970. }
  21971. /* code 样式 */
  21972. .cont >>> code {
  21973. display: inline-block;
  21974. /* *display: inline; */
  21975. zoom: 1;
  21976. background-color: #f1f1f1;
  21977. border-radius: 3px;
  21978. padding: 3px 5px;
  21979. margin: 0 3px;
  21980. }
  21981. .cont >>> pre code {
  21982. display: block;
  21983. }
  21984. /* ul ol 样式 */
  21985. .cont >>> ul,
  21986. ol {
  21987. margin: 10px 0 10px 20px;
  21988. }
  21989. .addPzCheck {
  21990. display: flex;
  21991. flex-direction: row;
  21992. flex-wrap: nowrap;
  21993. padding: 10px 15px 0;
  21994. }
  21995. .addPzCheck span {
  21996. cursor: pointer;
  21997. padding-bottom: 5px;
  21998. font-weight: bold;
  21999. }
  22000. .addPzCheck span + span {
  22001. margin-left: 10px;
  22002. }
  22003. .addPzCheck .isChooseActive {
  22004. color: #3e88f4;
  22005. border-bottom: 2px solid #2f80f3;
  22006. }
  22007. /* code 样式 */
  22008. .cont {
  22009. /* -webkit-user-modify: read-write; */
  22010. overflow-wrap: break-word;
  22011. -webkit-line-break: after-white-space;
  22012. }
  22013. .scoreBox,
  22014. .scoreDetailBox {
  22015. display: flex;
  22016. align-items: center;
  22017. justify-content: flex-start;
  22018. margin-top: 20px;
  22019. font-size: 18px;
  22020. width: 100%;
  22021. }
  22022. .scoreBox .t,
  22023. .scoreDetailBox .t {
  22024. margin-right: 10px;
  22025. width: 100px;
  22026. text-align: right;
  22027. }
  22028. .scoreDetailBox {
  22029. align-items: flex-start;
  22030. }
  22031. .scoreDetailBox >>> .el-textarea {
  22032. width: calc(100% - 200px);
  22033. }
  22034. .scoreBox >>> .el-input {
  22035. width: 130px;
  22036. font-size: 38px;
  22037. }
  22038. .scoreBox >>> .el-input__inner {
  22039. height: 60px;
  22040. }
  22041. .answerScore {
  22042. position: absolute;
  22043. top: 10px;
  22044. right: 10px;
  22045. background: #0000008f;
  22046. border-radius: 5px;
  22047. padding: 3px 5px;
  22048. font-size: 14px;
  22049. color: #fff;
  22050. cursor: pointer;
  22051. }
  22052. .open_box .switch_box {
  22053. width: 100%;
  22054. margin: 0 auto;
  22055. display: flex;
  22056. justify-content: space-between;
  22057. }
  22058. .open_box .switch_box + .switch_box {
  22059. margin-top: 10px;
  22060. }
  22061. .deleteImg,.deleteImg1 {
  22062. width: 25px !important;
  22063. height: 25px !important;
  22064. cursor: pointer;
  22065. position: absolute;
  22066. top: 10px;
  22067. right: 10px;
  22068. }
  22069. .deleteImg2 {
  22070. width: 23px !important;
  22071. height: 23px !important;
  22072. top: 5px;
  22073. right: 5px;
  22074. }
  22075. .deleteImg1{
  22076. width: 23px !important;
  22077. height: 23px !important;
  22078. top: 5px !important;
  22079. right: 30px !important;
  22080. }
  22081. .rightW {
  22082. right: 40px;
  22083. }
  22084. .drawPBox {
  22085. display: flex;
  22086. flex-direction: column;
  22087. position: relative;
  22088. }
  22089. .drawPBox span {
  22090. font-size: 18px;
  22091. color: #606266;
  22092. padding-bottom: 10px;
  22093. margin: 10px 0;
  22094. border-bottom: 1px solid #eaeaea;
  22095. }
  22096. .drawPBox img {
  22097. width: 500px;
  22098. height: 300px;
  22099. object-fit: contain;
  22100. cursor: pointer;
  22101. margin: 0 auto;
  22102. }
  22103. .sentenBox {
  22104. background: #fff;
  22105. height: 450px;
  22106. overflow: auto;
  22107. background-image: url("../../../assets/icon/conSentences/stuBg.png");
  22108. background-position: 102%;
  22109. background-repeat: no-repeat;
  22110. background-size: 60%;
  22111. }
  22112. .addSen {
  22113. background: #409efe;
  22114. width: 90px;
  22115. color: #fff;
  22116. height: 35px;
  22117. text-align: center;
  22118. line-height: 35px;
  22119. border-radius: 5px;
  22120. float: right;
  22121. margin: 10px 20px 0 0;
  22122. cursor: pointer;
  22123. }
  22124. .sentenTop {
  22125. display: flex;
  22126. flex-direction: row;
  22127. flex-wrap: nowrap;
  22128. align-items: center;
  22129. padding: 55px 0 0 20px;
  22130. box-sizing: border-box;
  22131. }
  22132. .sentenTop > div:nth-child(2) {
  22133. width: 300px;
  22134. margin: 0 15px;
  22135. }
  22136. .sentenTop > div:nth-child(3) {
  22137. background: #409efe;
  22138. color: #fff;
  22139. width: 65px;
  22140. height: 35px;
  22141. text-align: center;
  22142. line-height: 35px;
  22143. border-radius: 5px;
  22144. cursor: pointer;
  22145. }
  22146. .cardList,
  22147. .cardList1 {
  22148. padding: 10px 0 10px 0;
  22149. display: flex;
  22150. flex-direction: row;
  22151. flex-wrap: wrap;
  22152. align-items: center;
  22153. box-sizing: border-box;
  22154. border-bottom: 1px solid #f4f4f4;
  22155. width: 98%;
  22156. margin: 0 auto;
  22157. min-width: 60%;
  22158. max-width: 85%;
  22159. }
  22160. .cardList1 {
  22161. padding: 10px 0 10px 10px !important;
  22162. margin: 0 !important;
  22163. }
  22164. .cardBox {
  22165. display: flex;
  22166. flex-direction: row;
  22167. flex-wrap: wrap;
  22168. align-items: center;
  22169. align-content: center;
  22170. }
  22171. .cardBox > div {
  22172. margin-bottom: 10px;
  22173. }
  22174. .isCard,
  22175. .isChooseCard,
  22176. .noCard,
  22177. .isCard1 {
  22178. min-width: 130px;
  22179. width: auto;
  22180. height: 60px;
  22181. text-align: center;
  22182. line-height: 60px;
  22183. font-size: 20px;
  22184. cursor: pointer;
  22185. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  22186. background-size: cover;
  22187. transition: all 2s;
  22188. margin-right: 20px;
  22189. background-size: 100% 100%;
  22190. padding: 0 20px;
  22191. box-sizing: border-box;
  22192. }
  22193. .isCard > div,
  22194. .noCard > div,
  22195. .isCard1 > div {
  22196. white-space: nowrap;
  22197. overflow: hidden;
  22198. text-overflow: ellipsis;
  22199. width: 100%;
  22200. margin: 0 auto;
  22201. }
  22202. .noCard {
  22203. background-image: none;
  22204. }
  22205. .isCard1 {
  22206. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  22207. }
  22208. .isChooseCard {
  22209. background-image: none;
  22210. border: 1px dashed #b9b9b9;
  22211. border-radius: 10px;
  22212. }
  22213. .card {
  22214. width: 130px;
  22215. height: 60px;
  22216. }
  22217. .card > img {
  22218. width: 100%;
  22219. height: 100%;
  22220. }
  22221. .rightCardBox {
  22222. margin: 10px 0 0 10px;
  22223. }
  22224. .rightCardBox > div:nth-child(1) {
  22225. margin-bottom: 10px;
  22226. }
  22227. .cardCss {
  22228. display: flex;
  22229. flex-direction: column;
  22230. flex-wrap: nowrap;
  22231. align-items: center;
  22232. border-bottom: 3px solid #b4c3d3;
  22233. padding: 0 0 5px 0;
  22234. margin-right: 10px;
  22235. }
  22236. .cardCss > div:nth-child(2) {
  22237. background: #5b7b9d;
  22238. color: #fff;
  22239. width: 20px;
  22240. height: 20px;
  22241. border-radius: 50%;
  22242. text-align: center;
  22243. line-height: 20px;
  22244. }
  22245. .isWrong {
  22246. display: flex;
  22247. flex-direction: row;
  22248. flex-wrap: nowrap;
  22249. align-content: center;
  22250. align-items: center;
  22251. }
  22252. .answerRight {
  22253. width: 25%;
  22254. }
  22255. .isTj {
  22256. display: flex;
  22257. flex-direction: row;
  22258. flex-wrap: nowrap;
  22259. align-items: center;
  22260. }
  22261. .isTj > div:nth-child(2) {
  22262. color: #727070;
  22263. margin-left: 10px;
  22264. }
  22265. .isTjImg {
  22266. width: 30px;
  22267. height: 30px;
  22268. }
  22269. .isTjImg > img {
  22270. width: 100%;
  22271. height: 100%;
  22272. }
  22273. .cardAnswerBox {
  22274. font-size: 18px;
  22275. width: 97%;
  22276. border: 5px;
  22277. padding: 0;
  22278. border-radius: 5px;
  22279. margin: 10px auto;
  22280. word-break: break-word;
  22281. }
  22282. .w_name {
  22283. margin-bottom: 10px;
  22284. }
  22285. .w_name span {
  22286. font-size: 16px;
  22287. }
  22288. .w_teachert {
  22289. width: 50px !important;
  22290. position: absolute;
  22291. height: auto !important;
  22292. z-index: 10;
  22293. right: 25px;
  22294. top: -25px;
  22295. }
  22296. .group_workBox {
  22297. }
  22298. .group_workBox + .group_workBox {
  22299. margin-top: 20px;
  22300. }
  22301. .group_box {
  22302. padding-bottom: 20px;
  22303. border-bottom: 2px solid #f0f0f0;
  22304. margin-top: 10px;
  22305. }
  22306. .group_title {
  22307. display: flex;
  22308. align-items: center;
  22309. justify-content: space-between;
  22310. width: 95%;
  22311. }
  22312. .group_name {
  22313. background-image: url(../../../assets/icon/groupN.png);
  22314. width: 220px;
  22315. background-size: 100% 100%;
  22316. height: 67px;
  22317. padding: 0 20px 0 43px;
  22318. box-sizing: border-box;
  22319. line-height: 63px;
  22320. color: #fff;
  22321. overflow: hidden;
  22322. white-space: nowrap;
  22323. text-overflow: ellipsis;
  22324. }
  22325. .group_work {
  22326. width: 100%;
  22327. padding: 0 10px;
  22328. box-sizing: border-box;
  22329. display: flex;
  22330. flex-wrap: wrap;
  22331. }
  22332. .g_d_box {
  22333. display: flex;
  22334. flex-flow: wrap;
  22335. justify-content: space-around;
  22336. }
  22337. .g_d_box .isChair {
  22338. background-image: url(../../../assets/avatar.png) !important;
  22339. }
  22340. .g_d_group {
  22341. width: 500px;
  22342. margin-bottom: 80px;
  22343. }
  22344. .g_d_group_chair {
  22345. display: flex;
  22346. align-items: center;
  22347. justify-content: center;
  22348. }
  22349. .g_d_group_chair > div + div {
  22350. margin-left: 30px;
  22351. }
  22352. .g_d_group_chair > div,
  22353. .g_d_group_chair2 > div {
  22354. display: flex;
  22355. flex-direction: column;
  22356. align-items: center;
  22357. }
  22358. .g_d_group_chair > div > span:nth-child(1),
  22359. .g_d_group_chair2 > div > span:nth-child(1) {
  22360. background-image: url(../../../assets/icon/chair.png);
  22361. width: 50px;
  22362. height: 50px;
  22363. display: block;
  22364. background-size: 100% 100%;
  22365. }
  22366. .g_d_group_tableBox {
  22367. display: flex;
  22368. align-items: center;
  22369. justify-content: center;
  22370. }
  22371. .g_d_group_chair2 {
  22372. display: flex;
  22373. flex-direction: column;
  22374. align-items: center;
  22375. justify-content: center;
  22376. }
  22377. .g_d_group_chair2 > div + div {
  22378. margin-top: 10px;
  22379. }
  22380. .g_d_group_table {
  22381. background-image: url(../../../assets/icon/groupBg.png);
  22382. width: 354px;
  22383. height: 196px;
  22384. background-size: 100% 100%;
  22385. display: flex;
  22386. align-items: center;
  22387. justify-content: center;
  22388. flex-direction: column;
  22389. color: #fff;
  22390. }
  22391. .g_d_group_table > div:nth-child(1) {
  22392. font-size: 24px;
  22393. margin-bottom: 5px;
  22394. }
  22395. .g_d_group_table > div:nth-child(2) div {
  22396. cursor: pointer;
  22397. background: #2e77bf;
  22398. padding: 4px 10px;
  22399. border-radius: 5px;
  22400. }
  22401. .groupBox {
  22402. }
  22403. .groupContent + .groupContent {
  22404. margin-top: 30px;
  22405. }
  22406. .groupTitle {
  22407. font-size: 24px;
  22408. color: rgb(80, 80, 80);
  22409. margin-bottom: 20px;
  22410. }
  22411. .groupName {
  22412. display: flex;
  22413. align-items: center;
  22414. }
  22415. .groupn {
  22416. font-size: 15px;
  22417. margin-right: 10px;
  22418. }
  22419. .groupName + .groupName {
  22420. margin-top: 15px;
  22421. }
  22422. .groupBtn {
  22423. margin-left: 10px;
  22424. }
  22425. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22426. text-align: left;
  22427. }
  22428. .g_d_btnBox {
  22429. display: flex;
  22430. justify-content: flex-end;
  22431. align-items: center;
  22432. margin-bottom: 20px;
  22433. }
  22434. .updateChair {
  22435. position: relative;
  22436. }
  22437. .updateChairBtn {
  22438. position: absolute;
  22439. width: 50px;
  22440. height: 50px;
  22441. overflow: hidden;
  22442. /* display: flex; */
  22443. align-items: center;
  22444. justify-content: center;
  22445. background: #00000087;
  22446. color: #fff;
  22447. border-radius: 50px;
  22448. display: none;
  22449. cursor: pointer;
  22450. }
  22451. .updateChair:hover .updateChairBtn {
  22452. display: flex;
  22453. }
  22454. .group_staic_box {
  22455. display: flex;
  22456. padding: 30px 40px 10px;
  22457. flex-wrap: wrap;
  22458. }
  22459. .group_staic {
  22460. /* width: 50%; */
  22461. margin-bottom: 20px;
  22462. display: flex;
  22463. align-items: center;
  22464. }
  22465. .group_staic span:nth-child(1) {
  22466. width: 150px;
  22467. text-align: right;
  22468. margin-right: 15px;
  22469. }
  22470. .group_staic span:nth-child(2) {
  22471. background: rgb(0 123 255);
  22472. color: #fff;
  22473. border-radius: 5px;
  22474. padding: 5px;
  22475. }
  22476. .codeFileBox {
  22477. height: 300px;
  22478. background: #fff;
  22479. display: flex;
  22480. align-items: center;
  22481. justify-content: center;
  22482. }
  22483. .codeFileBox img {
  22484. width: 200px;
  22485. margin: 0;
  22486. height: auto;
  22487. }
  22488. .codeFileBox div {
  22489. background: rgb(80, 142, 226);
  22490. color: #fff;
  22491. padding: 10px 20px;
  22492. border-radius: 25px;
  22493. cursor: pointer;
  22494. margin-left: 15px;
  22495. }
  22496. .radioBox {
  22497. display: flex;
  22498. flex-direction: column;
  22499. flex-wrap: nowrap;
  22500. align-items: flex-start;
  22501. }
  22502. .radioBox > div {
  22503. margin: 10px 0 0 10px;
  22504. }
  22505. /* .radioBox >>> .el-radio__input,
  22506. .radioBox >>> .el-checkbox__inner {
  22507. margin-left: 10px;
  22508. } */
  22509. .radioBox >>> .el-radio__label,
  22510. .radioBox >>> .el-checkbox__label {
  22511. display: flex;
  22512. align-items: center;
  22513. width: 100%;
  22514. }
  22515. .radioBox >>> .el-radio__label > span {
  22516. width: 100%;
  22517. display: -webkit-box;
  22518. overflow: hidden;
  22519. white-space: normal !important;
  22520. text-overflow: ellipsis;
  22521. word-wrap: break-word;
  22522. }
  22523. .inImg {
  22524. width: 100px;
  22525. cursor: pointer;
  22526. }
  22527. .inImg > img {
  22528. width: 100%;
  22529. height: 100%;
  22530. object-fit: cover;
  22531. }
  22532. .timuImgBox {
  22533. margin: 10px 0;
  22534. display: flex;
  22535. flex-direction: column;
  22536. flex-wrap: wrap;
  22537. align-items: flex-start;
  22538. }
  22539. .timuImg {
  22540. width: 150px;
  22541. margin: 5px 0;
  22542. cursor: pointer;
  22543. }
  22544. .timuImg > img {
  22545. width: 100%;
  22546. height: 100%;
  22547. object-fit: cover;
  22548. }
  22549. .worksTop {
  22550. display: flex;
  22551. flex-direction: row;
  22552. align-items: flex-end;
  22553. }
  22554. .worksTitle {
  22555. display: flex;
  22556. flex-direction: row;
  22557. flex-wrap: nowrap;
  22558. align-items: center;
  22559. }
  22560. .worksTitle::before,
  22561. .worksTop::before {
  22562. content: "";
  22563. display: block;
  22564. width: 3px;
  22565. height: 20px;
  22566. background: #0061ff;
  22567. border-radius: 3px;
  22568. margin: 0 5px 0 0;
  22569. }
  22570. .corOpen {
  22571. margin: 0 0 0 10px;
  22572. font-size: 14px;
  22573. cursor: pointer;
  22574. color: #505050;
  22575. }
  22576. .corOpen:hover {
  22577. color: #499eef;
  22578. }
  22579. .navCorOpenBox {
  22580. display: flex;
  22581. flex-direction: row;
  22582. align-items: center;
  22583. justify-content: space-between;
  22584. height: 55px;
  22585. background: #ffffff;
  22586. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22587. border-radius: 8px 8px 0px 0px;
  22588. z-index: 9;
  22589. position: relative;
  22590. }
  22591. .navCorOpen {
  22592. padding-right: 15px;
  22593. cursor: pointer;
  22594. width: 45px;
  22595. display: flex;
  22596. }
  22597. .navCorOpen > img {
  22598. width: 100%;
  22599. height: 100%;
  22600. }
  22601. .mlImg {
  22602. width: 40px !important;
  22603. min-width: 40px;
  22604. cursor: pointer;
  22605. transform: rotate(180deg);
  22606. }
  22607. .mlImg > img {
  22608. width: 100%;
  22609. height: 100%;
  22610. }
  22611. .navLeftCss {
  22612. width: 100% !important;
  22613. left: 0 !important;
  22614. }
  22615. .isContentCss {
  22616. width: 100% !important;
  22617. }
  22618. .isAllWidth {
  22619. width: 100% !important;
  22620. }
  22621. .group_switch {
  22622. margin-right: 10px;
  22623. height: 30px;
  22624. display: flex;
  22625. align-items: center;
  22626. }
  22627. .group_switch > span {
  22628. margin-right: 5px;
  22629. }
  22630. .fileC_box {
  22631. padding-top: 15px;
  22632. }
  22633. .fileC_box > .fileC_title {
  22634. padding: 10px 5px 14px 10px;
  22635. border-top: 1px solid #cad1dc;
  22636. font-size: 14px;
  22637. font-weight: 400;
  22638. color: #cad1dc;
  22639. width: calc(100% - 20px);
  22640. margin: 0 auto;
  22641. box-sizing: border-box;
  22642. }
  22643. .pl_select_box {
  22644. height: 40px;
  22645. line-height: 40px;
  22646. width: 100%;
  22647. cursor: pointer;
  22648. padding: 0 20px;
  22649. box-sizing: border-box;
  22650. border-radius: 5px;
  22651. border: 1px solid #d6d6d6;
  22652. white-space: nowrap;
  22653. overflow: hidden;
  22654. text-overflow: ellipsis;
  22655. background: #fff;
  22656. text-align: left;
  22657. }
  22658. .newButton {
  22659. width: 102px;
  22660. height: 36px;
  22661. background: #e7ebf1;
  22662. border-radius: 4px;
  22663. color: #0e1e33;
  22664. font-weight: 400;
  22665. font-size: 14px;
  22666. border: none;
  22667. float: right;
  22668. margin-left: 10px;
  22669. }
  22670. .el-table >>> .even_row {
  22671. background-color: #f0f4fa;
  22672. }
  22673. .stageBoxCss,
  22674. .stageBoxIsCss {
  22675. display: flex;
  22676. flex-direction: row;
  22677. flex-wrap: nowrap;
  22678. align-items: center;
  22679. height: 50px;
  22680. border-bottom: 1px solid #e2f5fc;
  22681. cursor: pointer;
  22682. width: 100%;
  22683. }
  22684. .stageBoxIsCss {
  22685. background: #0061ff;
  22686. color: #fff;
  22687. border-radius: 8px;
  22688. }
  22689. .closeTri,
  22690. .closeTri1 {
  22691. min-width: 15px;
  22692. width: 15px;
  22693. height: 15px;
  22694. }
  22695. .closeTri1 {
  22696. padding-left: 10px;
  22697. cursor: pointer;
  22698. }
  22699. .closeTri > img,
  22700. .closeTri1 > img {
  22701. width: 100%;
  22702. height: 100%;
  22703. /* transition: all .5s; */
  22704. }
  22705. .noToolBlue {
  22706. min-width: 10px;
  22707. width: 10px;
  22708. height: 10px;
  22709. background: #0061ff;
  22710. border-radius: 50%;
  22711. margin-left: 13px;
  22712. }
  22713. .stageChild,
  22714. .toolChild {
  22715. height: 0;
  22716. overflow: hidden;
  22717. transition: all 0.5s;
  22718. }
  22719. .toolChild {
  22720. /* margin: 0 0 0 17px;
  22721. padding: 0 0 0 20px;
  22722. border-left: 1px solid #d7d7d7; */
  22723. }
  22724. .toolChild > div + div{
  22725. margin-top:5px;
  22726. }
  22727. .gjCss {
  22728. display: flex;
  22729. flex-direction: row;
  22730. flex-wrap: nowrap;
  22731. align-items: center;
  22732. padding: 10px 0 10px 40px;
  22733. box-sizing: border-box;
  22734. font-size: 14px;
  22735. cursor: pointer;
  22736. border-radius:5px;
  22737. }
  22738. .toolChild > div {
  22739. position: relative;
  22740. width: 100%;
  22741. }
  22742. .toolChild > div::before {
  22743. /* content: "";
  22744. width: 15px;
  22745. height: 1px;
  22746. background: #cad1dc;
  22747. position: absolute;
  22748. top: 24px;
  22749. left: -20px;
  22750. display: block; */
  22751. }
  22752. .isGjCss {
  22753. /* color: #0061ff; */
  22754. color:#fff;
  22755. background: rgb(55, 129, 252);
  22756. /* background-color: #e0eafb !important;
  22757. color: #0061ff !important; */
  22758. }
  22759. .navItem {
  22760. background: #ffffff;
  22761. border-radius: 4px;
  22762. width: 100%;
  22763. margin: 10px auto;
  22764. position: relative;
  22765. height: 40px;
  22766. display: flex;
  22767. flex-direction: row;
  22768. flex-wrap: nowrap;
  22769. align-items: center;
  22770. }
  22771. .navItemList {
  22772. display: flex;
  22773. flex-direction: row;
  22774. flex-wrap: nowrap;
  22775. align-items: center;
  22776. padding: 0 13px;
  22777. cursor: pointer;
  22778. width: calc(100% - 60px);
  22779. height: 100%;
  22780. }
  22781. .navItemList > div:first-child {
  22782. min-width: 60px;
  22783. }
  22784. .navItemList > div:last-child {
  22785. width: calc(100% - 80px);
  22786. white-space: nowrap;
  22787. overflow: hidden;
  22788. text-overflow: ellipsis;
  22789. word-break: break-word;
  22790. }
  22791. /* .isItemList > div {
  22792. color: #fff !important;
  22793. } */
  22794. .tool_work_box {
  22795. width: 100%;
  22796. padding: 0 37px 0;
  22797. box-sizing: border-box;
  22798. }
  22799. .tool_box {
  22800. width: 100%;
  22801. padding: 0 0 0 20px;
  22802. }
  22803. .tool_type_box {
  22804. display: flex;
  22805. flex-direction: row;
  22806. align-items: baseline;
  22807. flex-wrap: nowrap;
  22808. justify-content: flex-start;
  22809. position: relative;
  22810. }
  22811. .toolSort {
  22812. display: flex;
  22813. flex-direction: row;
  22814. flex-wrap: wrap;
  22815. justify-content: flex-start;
  22816. align-items: flex-start;
  22817. padding: 0 0 15px 0;
  22818. }
  22819. .toolSort > div {
  22820. margin: 0 10px 0 0;
  22821. width: 135px;
  22822. box-sizing: border-box;
  22823. border: 2px solid transparent;
  22824. }
  22825. .tools {
  22826. width: 100%;
  22827. display: flex;
  22828. flex-direction: column;
  22829. flex-wrap: nowrap;
  22830. align-items: flex-start;
  22831. }
  22832. .whiteBIcon {
  22833. width: fit-content;
  22834. cursor: pointer;
  22835. display: flex;
  22836. flex-direction: column;
  22837. flex-wrap: nowrap;
  22838. align-items: center;
  22839. font-size: 14px;
  22840. }
  22841. .tool:hover {
  22842. border: 2px solid #a5c7ff;
  22843. border-radius: 5px;
  22844. }
  22845. .whiteBIcon > img {
  22846. width: 65px;
  22847. height: 100%;
  22848. }
  22849. .whiteBIcon > img {
  22850. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22851. border-radius: 15px;
  22852. }
  22853. .check {
  22854. /* width: 20px;
  22855. height: 20px; */
  22856. cursor: pointer;
  22857. margin: 10px 0;
  22858. position: absolute;
  22859. right: 2px;
  22860. top: -5px;
  22861. }
  22862. .noChoose,
  22863. .isChoose {
  22864. width: 15px;
  22865. height: 15px;
  22866. border-radius: 50%;
  22867. border: 1px solid #adadad;
  22868. }
  22869. .isChoose {
  22870. border: 4px solid #0363ff !important;
  22871. width: 10px;
  22872. height: 10px;
  22873. }
  22874. .isToolChoose {
  22875. border: 2px solid #5394ff !important;
  22876. border-radius: 5px;
  22877. box-shadow: 0 0 6px 0px #5394ff;
  22878. }
  22879. .checkDiv {
  22880. display: flex;
  22881. align-items: center;
  22882. }
  22883. .checkDiv span {
  22884. margin-left: 5px;
  22885. color: #858585;
  22886. }
  22887. .check img {
  22888. width: 20px;
  22889. height: 20px;
  22890. }
  22891. .lockTaskIcon {
  22892. width: 20px;
  22893. height: 20px;
  22894. position: absolute;
  22895. right: 10px;
  22896. top: 10px;
  22897. }
  22898. .lockTaskIcon > img {
  22899. width: 100%;
  22900. height: 100%;
  22901. }
  22902. .pick_box {
  22903. display: flex;
  22904. align-items: flex-start;
  22905. flex-wrap: wrap;
  22906. }
  22907. .selectBox {
  22908. width: 110px;
  22909. margin-left: 10px;
  22910. margin: 0 10px 0 auto;
  22911. }
  22912. .selectBox >>> .el-input__inner {
  22913. height: 30px;
  22914. line-height: 30px;
  22915. }
  22916. .selectBox >>> .el-input__icon {
  22917. line-height: 30px;
  22918. }
  22919. .sentenceTitle {
  22920. display: flex;
  22921. flex-direction: row;
  22922. flex-wrap: nowrap;
  22923. align-items: center;
  22924. }
  22925. .sentenceTitle::before {
  22926. content: attr(index);
  22927. background: #3681fc;
  22928. border-radius: 50%;
  22929. color: #fff;
  22930. width: 25px;
  22931. height: 25px;
  22932. min-width: 25px;
  22933. min-height: 25px;
  22934. text-align: center;
  22935. line-height: 25px;
  22936. margin-right: 5px;
  22937. }
  22938. .hfBox {
  22939. padding: 10px;
  22940. box-sizing: border-box;
  22941. }
  22942. .whoReplyWho {
  22943. display: flex;
  22944. flex-direction: row;
  22945. flex-wrap: nowrap;
  22946. align-items: baseline;
  22947. justify-content: flex-start;
  22948. }
  22949. .hfBottom {
  22950. display: flex;
  22951. flex-direction: row;
  22952. flex-wrap: nowrap;
  22953. align-items: center;
  22954. justify-content: space-between;
  22955. font-size: 14px;
  22956. }
  22957. .deleteHfItem {
  22958. cursor: pointer;
  22959. width: 20px;
  22960. height: 20px;
  22961. }
  22962. .deleteHfItem > img {
  22963. width: 100%;
  22964. height: 100%;
  22965. }
  22966. .whoReplyWho > .hfImg {
  22967. width: 12px;
  22968. height: 12px;
  22969. margin: 0 5px;
  22970. }
  22971. .whoReplyWho > .hfImg > img {
  22972. width: 100%;
  22973. height: 100%;
  22974. }
  22975. .hfContent {
  22976. padding-top: 10px;
  22977. box-sizing: border-box;
  22978. display: -webkit-box;
  22979. overflow: hidden;
  22980. white-space: normal !important;
  22981. text-overflow: ellipsis;
  22982. word-wrap: break-word;
  22983. -webkit-box-orient: vertical;
  22984. }
  22985. .hfTime {
  22986. text-align: left;
  22987. box-sizing: border-box;
  22988. padding: 10px 0 10px 0px;
  22989. color: #bfbfbf;
  22990. font-size: 14px;
  22991. }
  22992. .btnAllNT {
  22993. position: fixed;
  22994. bottom: 100px;
  22995. right: 40px;
  22996. z-index: 999;
  22997. display: flex;
  22998. flex-direction: row;
  22999. }
  23000. .btnAllNT > img {
  23001. cursor: pointer;
  23002. width: 80px;
  23003. }
  23004. .toolMask {
  23005. position: fixed;
  23006. width: 100%;
  23007. height: 100%;
  23008. background: #3f3c3c;
  23009. opacity: 0.5;
  23010. top: 0;
  23011. left: 0;
  23012. z-index: 999;
  23013. }
  23014. .addToolCss {
  23015. position: fixed;
  23016. z-index: 999;
  23017. background: #fff;
  23018. right: 5%;
  23019. bottom: 18%;
  23020. min-width: 1035px;
  23021. min-height: 300px;
  23022. border-radius: 10px;
  23023. box-shadow: 0 0 8px 1px #b2b2b2;
  23024. }
  23025. .toolTop {
  23026. display: flex;
  23027. flex-direction: row;
  23028. flex-wrap: nowrap;
  23029. justify-content: space-between;
  23030. align-items: center;
  23031. padding: 20px;
  23032. }
  23033. .toolTop > div:nth-child(2) {
  23034. width: 15px;
  23035. height: 15px;
  23036. padding-right: 10px;
  23037. cursor: pointer;
  23038. }
  23039. .toolTop > div:nth-child(2) > img {
  23040. width: 100%;
  23041. height: 100%;
  23042. }
  23043. .fullStyle>>>.el-dialog__body {
  23044. height: calc(100% - 125px) !important;
  23045. box-sizing: border-box;
  23046. padding: 30px 0 !important;
  23047. background: #fff !important;
  23048. }
  23049. .fullStyle>>>.el-dialog {
  23050. width: 100% !important;
  23051. max-width: 100% !important;
  23052. height: 100% !important;
  23053. margin: 0 !important;
  23054. }
  23055. .fullStyle {
  23056. width: 100% !important;
  23057. max-width: 100% !important;
  23058. height: 100% !important;
  23059. margin: 0 auto !important;
  23060. }
  23061. .fullStyle>>>.el-dialog__footer{
  23062. background: #fff !important;
  23063. }
  23064. .engUpBox {
  23065. width: 100%;
  23066. height: 100%;
  23067. }
  23068. .engTitle,
  23069. .engText {
  23070. display: flex;
  23071. flex-direction: row;
  23072. flex-wrap: nowrap;
  23073. align-items: flex-start;
  23074. padding: 0 20px 20px 20px;
  23075. box-sizing: border-box;
  23076. }
  23077. .engTitle > .div:first-child,
  23078. .engText > div:first-child {
  23079. min-width: 75px;
  23080. }
  23081. .correctBox{
  23082. width: 100%;
  23083. display: flex;
  23084. flex-direction: row;
  23085. flex-wrap: nowrap;
  23086. align-items: flex-start;
  23087. }
  23088. .oldBox{
  23089. width: 50%;
  23090. height: 100%;
  23091. display: flex;
  23092. flex-direction: column;
  23093. flex-wrap: nowrap;
  23094. align-items: center;
  23095. border-top: 1px solid #d9d9d9;
  23096. border-left: 1px solid #d9d9d9;
  23097. border-right: 1px solid #d9d9d9;
  23098. }
  23099. .oldBox>div:first-child{
  23100. width: 100%;
  23101. text-align: center;
  23102. background: #d9d9d9;
  23103. height: 35px;
  23104. line-height: 35px;
  23105. font-weight: bold;
  23106. }
  23107. .oldText{
  23108. width: 100%;
  23109. height: calc(100% - 35px);
  23110. overflow: auto;
  23111. margin: 10px 0;
  23112. display: flex;
  23113. flex-direction: column;
  23114. flex-wrap: nowrap;
  23115. align-content: center;
  23116. align-items: center;
  23117. }
  23118. .detailBox{
  23119. width: 50%;
  23120. padding: 10px;
  23121. background: #f6f6f6;
  23122. border-radius: 5px;
  23123. }
  23124. .oldDetail,.oldDetail1{
  23125. padding-bottom: 30px;
  23126. }
  23127. .oldImg{
  23128. width:30px;
  23129. height: 30px;
  23130. }
  23131. .oldImg>img{
  23132. width: 100%;
  23133. height: 100%;
  23134. }
  23135. .allName{
  23136. min-width: 200px;
  23137. white-space: nowrap;
  23138. overflow: hidden;
  23139. text-overflow: ellipsis;
  23140. word-break: break-word;
  23141. cursor: pointer;
  23142. text-align: center;
  23143. border: 1px solid #bcc2cc;
  23144. box-sizing: border-box;
  23145. }
  23146. .engUpTop{
  23147. max-height: 300px;
  23148. overflow: auto;
  23149. }
  23150. .isUpdateToolDetailClass{
  23151. padding: 0 !important;
  23152. }
  23153. .isUpdateToolDetailClass textarea{
  23154. padding:12px;
  23155. font-size: 16px;
  23156. min-height:100%;
  23157. width: 100%;
  23158. box-sizing:border-box;
  23159. outline: none;
  23160. border:none;
  23161. line-height: 30px;
  23162. resize: none;
  23163. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23164. color: #838383;
  23165. }
  23166. .show_taskD {
  23167. min-width: fit-content;
  23168. margin-left: 10px;
  23169. display: flex;
  23170. align-items: center;
  23171. font-size: 14px;
  23172. cursor: pointer;
  23173. color: #717c8d;
  23174. }
  23175. .show_taskD > img {
  23176. width: 15px;
  23177. margin-right: 5px;
  23178. transition: 0.2s all;
  23179. transform: rotate(-90deg);
  23180. }
  23181. .show_taskD.show > img {
  23182. transform: rotate(0deg);
  23183. }
  23184. .correctCss{
  23185. position: absolute;
  23186. bottom: -70px;
  23187. background: #409eff;
  23188. color: #fff;
  23189. }
  23190. </style>