studyStudent.vue 785 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834
  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. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 25">目标管理</div>
  227. <div v-if="t.tool == 26">课程设计</div>
  228. <div v-if="t.tool == 62">交互视频</div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  238. <div class="new_topFixed"></div>
  239. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  240. <div class="courseIndex">
  241. <div>任务{{ taskCount + 1 }}</div>
  242. <el-tooltip
  243. effect="light"
  244. :content="
  245. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  246. "
  247. placement="top"
  248. >
  249. <div>
  250. {{
  251. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  252. .task
  253. }}
  254. </div>
  255. </el-tooltip>
  256. </div>
  257. <div class="btnAll">
  258. <div class="btnLeft">
  259. <el-tooltip effect="light" content="刷新" placement="top">
  260. <div class="reBtnIcon" @click="refreshCourse">
  261. <span>刷新</span>
  262. </div>
  263. </el-tooltip>
  264. <el-tooltip effect="light" content="评论" placement="top">
  265. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  266. <span>评论</span>
  267. </div>
  268. </el-tooltip>
  269. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  270. <el-tooltip effect="light" content="录制" placement="top">
  271. <div class="vedioIcon" @click="startRecording">
  272. <span>录制</span>
  273. </div>
  274. </el-tooltip>
  275. </div>
  276. <div v-else-if="tType == 1 || tType == 4">
  277. <el-tooltip effect="light" content="下载" placement="top">
  278. <div class="vedioIcon1" @click="stopRecording">
  279. <span>下载</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. </div>
  284. <div class="btnRight">
  285. <div
  286. class="last"
  287. @click="nextOrpreSteps(0)"
  288. v-if="!(IsFollow && tType == 2)"
  289. @mouseover="isHovered = true"
  290. @mouseout="isHovered = false"
  291. >
  292. <div class="lastImg">
  293. <img
  294. :src="
  295. isHovered
  296. ? require('../../assets/icon/newIcons/whiteLast.png')
  297. : require('../../assets/icon/newIcons/last.png')
  298. "
  299. alt=""
  300. />
  301. </div>
  302. <div class="lastText">上一步</div>
  303. </div>
  304. <div
  305. class="last"
  306. @click="nextOrpreSteps(1)"
  307. v-if="!(IsFollow && tType == 2)"
  308. @mouseover="isHovered1 = true"
  309. @mouseout="isHovered1 = false"
  310. >
  311. <div class="lastText">下一步</div>
  312. <div class="lastImg">
  313. <img
  314. :src="
  315. isHovered1
  316. ? require('../../assets/icon/newIcons/whiteNext.png')
  317. : require('../../assets/icon/newIcons/next.png')
  318. "
  319. alt=""
  320. />
  321. </div>
  322. </div>
  323. <div
  324. class="last"
  325. @click="juriVisible = true"
  326. v-if="tType == 1"
  327. @mouseover="isHovered2 = true"
  328. @mouseout="isHovered2 = false"
  329. >
  330. <div class="lastImg">
  331. <img
  332. :src="
  333. isHovered2
  334. ? require('../../assets/icon/newIcons/whiteLock.png')
  335. : require('../../assets/icon/newIcons/lock.png')
  336. "
  337. alt=""
  338. />
  339. </div>
  340. <div class="lastText">权限</div>
  341. </div>
  342. <div
  343. class="returnBtn1 returnIcon"
  344. @click.stop="
  345. goTo(
  346. '/courseDetailTrain?userid=' +
  347. userid +
  348. '&oid=' +
  349. oid +
  350. '&org=' +
  351. org +
  352. '&cid=' +
  353. classId +
  354. '&courseId=' +
  355. id +
  356. '&tType=' +
  357. tType +
  358. '&screenType=' +
  359. screenType
  360. )
  361. "
  362. >
  363. <div class="lastImg">
  364. <img src="../../assets/icon/newIcon/return.png" alt="" />
  365. </div>
  366. <div class="lastText" style="color: #000">返回</div>
  367. </div>
  368. </div>
  369. <!-- <div
  370. class="returnBtn lockIcon"
  371. @click="juriVisible = true"
  372. v-if="tType == 1"
  373. >
  374. 权限
  375. </div>
  376. <div
  377. class="returnBtn vedioIcon"
  378. @click="startRecording"
  379. v-if="!videoStart && (tType == 1 || tType == 4)"
  380. >
  381. 录制
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="stopRecording"
  386. v-else-if="tType == 1 || tType == 4"
  387. style="background: #ee5255"
  388. >
  389. 下载
  390. </div>
  391. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  392. 评论
  393. </div>
  394. <div
  395. class="returnBtn"
  396. @click="nextOrpreSteps(0)"
  397. v-if="!(IsFollow && tType == 2)"
  398. >
  399. 上一步
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(1)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 下一步
  407. </div>
  408. <div class="returnBtn" @click="refreshCourse">刷新</div>
  409. <div
  410. class="returnBtn returnIcon"
  411. @click.stop="
  412. goTo(
  413. '/courseDetailTrain?userid=' +
  414. userid +
  415. '&oid=' +
  416. oid +
  417. '&org=' +
  418. org +
  419. '&cid=' +
  420. classId +
  421. '&courseId=' +
  422. id +
  423. '&tType=' +
  424. tType +
  425. '&screenType=' +
  426. screenType
  427. )
  428. "
  429. >
  430. 返回
  431. </div> -->
  432. </div>
  433. </div>
  434. <div
  435. class="isNoMessage"
  436. v-if="
  437. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .chapterData.length == 0 &&
  439. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  440. .toolChoose[0].tool.length == 0 &&
  441. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .taskDetail == '' &&
  443. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .eList &&
  445. !(
  446. courseDetail.userid == userid ||
  447. (courseDetail.course_teacher &&
  448. courseDetail.course_teacher.indexOf(userid) != -1)
  449. )
  450. "
  451. >
  452. <img src="../../assets/icon/isNoMessage.png" alt />
  453. </div>
  454. <div class="study_top" :class="{ pzClass: pzDialog }">
  455. <div
  456. class="vedioBox"
  457. v-if="
  458. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail != '' ||
  460. vChapterData[taskCount].length > 0 ||
  461. fileC[taskCount].length > 0
  462. "
  463. style="border-radius: 0 0 20px 20px"
  464. >
  465. <div
  466. class="taskBox"
  467. v-if="
  468. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  469. .taskDetail != ''
  470. "
  471. >
  472. <div
  473. style="
  474. display: flex;
  475. flex-wrap: nowrap;
  476. flex-direction: column;
  477. position: relative;
  478. "
  479. >
  480. <div
  481. style="
  482. padding: 15px 0;
  483. line-height: 29px;
  484. font-size: 18px;
  485. color: #0e1e33;
  486. "
  487. class="cont"
  488. v-if="
  489. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  490. .taskDetail != ''
  491. "
  492. v-html="
  493. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  494. .taskDetail
  495. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  496. taskCount
  497. ].taskDetail
  498. : '暂无描述'
  499. "
  500. ></div>
  501. </div>
  502. </div>
  503. <div
  504. class="student_head"
  505. v-if="
  506. vChapterData[taskCount].length > 0 ||
  507. fileC[taskCount].length > 0
  508. "
  509. >
  510. <div class="vedioTaskBox" v-loading="downLoading">
  511. <div
  512. :class="
  513. contentDialog == false
  514. ? 'box_course isContentCss'
  515. : 'box_course'
  516. "
  517. v-if="
  518. vChapterData.length > 0 &&
  519. vChapterData[taskCount] &&
  520. showType !== ''
  521. "
  522. >
  523. <div class="wheel" style="height: auto" v-if="showType === 0">
  524. <div
  525. class="workd_media"
  526. style="height: 650px; width: calc(100% - 50px)"
  527. >
  528. <video-player
  529. class="video-player vjs-custom-skin"
  530. :class="contentDialog == false ? 'isAllWidth' : ''"
  531. :playsinline="true"
  532. :options="playerO[taskCount]"
  533. @play="onPlayerPlay($event)"
  534. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  535. ></video-player>
  536. </div>
  537. </div>
  538. <div
  539. class="wheel"
  540. v-if="showType == 1"
  541. style="
  542. box-shadow: 0 0 6px 1px #f2f2f2;
  543. width: 95%;
  544. margin: 0 auto;
  545. background: #f1f1f1;
  546. "
  547. >
  548. <div class="title">查看文档</div>
  549. <el-form class="textBox">
  550. <el-form-item class="textTitle">
  551. <div style="font-size: 22px">
  552. {{ text.name }}
  553. </div>
  554. </el-form-item>
  555. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  556. <div v-html="text.url" class="textContent cont"></div>
  557. </el-form>
  558. </div>
  559. <div
  560. class="wheel"
  561. v-if="
  562. pptImgUrl1.indexOf(
  563. 'https://view.officeapps.live.com/op/view.aspx?src='
  564. ) != -1 && showType == 2
  565. "
  566. style="width: 95%; margin: 0 auto"
  567. >
  568. <iframe
  569. style="width: 100%; height: 100%; border: none"
  570. :src="pptImgUrl1"
  571. ></iframe>
  572. </div>
  573. <div
  574. class="wheel"
  575. v-else-if="showType == 2"
  576. style="width: 95%; margin: 0 auto"
  577. >
  578. <iframe
  579. style="width: 100%; height: 100%; border: none"
  580. security="restricted"
  581. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  582. :src="pptImgUrl1"
  583. ></iframe>
  584. </div>
  585. <div
  586. class="wheel"
  587. v-if="showType == 3"
  588. style="width: 95%; margin: 0 auto"
  589. >
  590. <pdf
  591. :pdfUrl="pptImgUrl1"
  592. style="width: 100%; height: 100%; overflow: auto"
  593. ></pdf>
  594. </div>
  595. <div
  596. class="wheel"
  597. v-if="showType == 4"
  598. style="width: 95%; margin: 0 auto"
  599. >
  600. <el-image
  601. :src="pptImgUrl1"
  602. fit="contain"
  603. style="width: 100%; height: 100%; cursor: pointer"
  604. @click="previewImg(pptImgUrl1)"
  605. ></el-image>
  606. </div>
  607. </div>
  608. <div
  609. class="pButton"
  610. style="position: absolute; right: 20px; top: 0; z-index: 998"
  611. v-if="!contentDialog"
  612. @click="setContent(true)"
  613. >
  614. <!-- 批 -->
  615. <img
  616. src="../../assets/icon/newIcons/isLeft.png"
  617. style="width: 45px"
  618. alt=""
  619. />
  620. </div>
  621. <div
  622. v-if="contentDialog == true"
  623. :style="{
  624. width:
  625. (vChapterData[taskCount].length > 0 ||
  626. fileC[taskCount].length > 0) &&
  627. showType === ''
  628. ? 'calc(100%)'
  629. : '300px',
  630. margin:
  631. (vChapterData[taskCount].length > 0 ||
  632. fileC[taskCount].length > 0) &&
  633. showType === ''
  634. ? '0 15px'
  635. : '0 15px 0 0',
  636. }"
  637. >
  638. <div
  639. class="vedioList"
  640. v-if="
  641. vChapterData[taskCount].length > 0 ||
  642. fileC[taskCount].length > 0
  643. "
  644. style="height: 650px"
  645. >
  646. <div class="navCorOpenBox">
  647. <div class="navTitile">内容列表:</div>
  648. <div class="navCorOpen" @click="setContent(false)">
  649. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  650. </div>
  651. </div>
  652. <div class="navBox">
  653. <div
  654. v-show="
  655. vChapterData[taskCount].length > 0 ||
  656. fileC[taskCount].length > 0
  657. "
  658. style="padding: 10px 0 25px 0"
  659. >
  660. <div
  661. class="vedioTimeBox"
  662. v-for="(vitem, vindex) in vChapterData[taskCount]"
  663. :key="vindex + '1'"
  664. >
  665. <div class="navListItem" v-if="vitem.type == 2">
  666. <div
  667. @click="lookVedio(vitem.url, vindex)"
  668. class="navText"
  669. :class="isClickNav == vindex ? 'isClickNav' : ''"
  670. >
  671. <span v-if="vitem.text">{{ vitem.text }}-</span
  672. >{{ vitem.name }}
  673. </div>
  674. <div class="downIcon" @click="downloadFile2(vitem)">
  675. <img src="../../assets/icon/newIcon/down.png" alt />
  676. </div>
  677. </div>
  678. <div class="navListItem" v-if="vitem.type == 6">
  679. <div
  680. @click="lookText(taskCount, vindex)"
  681. class="navText"
  682. :class="isClickNav == vindex ? 'isClickNav' : ''"
  683. >
  684. {{ vitem.name }}.doc
  685. </div>
  686. <div
  687. class="downIcon"
  688. @click="checkFileFull1(vitem.type, vitem)"
  689. >
  690. <img
  691. src="../../assets/icon/newIcon/allScreen.png"
  692. alt
  693. />
  694. </div>
  695. </div>
  696. <div
  697. class="navListItem"
  698. v-if="vitem.type == 8 || vitem.type == 14"
  699. >
  700. <div
  701. @click="doUrl(vitem.url, vindex)"
  702. class="navText"
  703. :class="isClickNav == vindex ? 'isClickNav' : ''"
  704. >
  705. {{ vitem.title ? vitem.title : vitem.url }}
  706. </div>
  707. <div
  708. class="downIcon"
  709. @click="checkFileFull1(vitem.type, vitem)"
  710. >
  711. <img
  712. src="../../assets/icon/newIcon/allScreen.png"
  713. alt
  714. />
  715. </div>
  716. </div>
  717. <div class="navListItem" v-if="vitem.type == 3">
  718. <div
  719. @click="downFile(vitem, vindex)"
  720. class="navText"
  721. :class="isClickNav == vindex ? 'isClickNav' : ''"
  722. >
  723. <span v-if="vitem.text">{{ vitem.text }}-</span
  724. >{{ vitem.name }}
  725. </div>
  726. <div
  727. class="downIcon"
  728. @click="checkFileFull1(vitem.type, vitem)"
  729. >
  730. <img
  731. src="../../assets/icon/newIcon/allScreen.png"
  732. alt
  733. />
  734. </div>
  735. <div class="downIcon" @click="downloadFile2(vitem)">
  736. <img src="../../assets/icon/newIcon/down.png" alt />
  737. </div>
  738. </div>
  739. <div class="navListItem" v-if="vitem.type == 12">
  740. <div class="navText" @click="downloadFile2(vitem)">
  741. <span v-if="vitem.text">{{ vitem.text }}-</span
  742. >{{ vitem.name }}
  743. </div>
  744. <div
  745. class="downIcon"
  746. @click="checkFileFull1(vitem.type, vitem)"
  747. >
  748. <img
  749. src="../../assets/icon/newIcon/allScreen.png"
  750. alt
  751. />
  752. </div>
  753. <div class="downIcon" @click="downloadFile2(vitem)">
  754. <img src="../../assets/icon/newIcon/down.png" alt />
  755. </div>
  756. </div>
  757. <div class="navListItem" v-if="vitem.type == 13">
  758. <div
  759. class="navText"
  760. @click="checkPhoto(vitem, vindex)"
  761. :class="isClickNav == vindex ? 'isClickNav' : ''"
  762. >
  763. {{ vitem.name }}
  764. </div>
  765. <div class="downIcon" @click="downloadFile2(vitem)">
  766. <img src="../../assets/icon/newIcon/down.png" alt />
  767. </div>
  768. </div>
  769. </div>
  770. <div
  771. class="fileC_box"
  772. v-if="fileC[taskCount].length > 0"
  773. >
  774. <div class="fileC_title">以下文件不支持预览</div>
  775. <div
  776. class="vedioTimeBox"
  777. v-for="(vitem, vindex) in fileC[taskCount]"
  778. :key="vindex + '1'"
  779. >
  780. <div class="navListItem" v-if="vitem.type == 12">
  781. <div class="navText" style="color: #acb4bf">
  782. <span v-if="vitem.text">{{ vitem.text }}-</span
  783. >{{ vitem.name }}
  784. </div>
  785. <div
  786. class="downIcon"
  787. @click="downloadFile2(vitem)"
  788. >
  789. <img
  790. src="../../assets/icon/newIcon/down.png"
  791. alt
  792. />
  793. </div>
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. <div style="width: calc(100% - 315px)">
  803. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  804. <!-- <el-button
  805. type="primary"
  806. class="newButton"
  807. @click="checkFileFull(showType, pptImgUrl1)"
  808. >全屏查看</el-button
  809. >
  810. <el-button
  811. type="primary"
  812. class="newButton"
  813. @click="downloadFile(pptImgUrl1)"
  814. v-if="showType != 2"
  815. >文件下载</el-button
  816. > -->
  817. <el-button
  818. class="newButton"
  819. v-if="
  820. showType == 2 &&
  821. pptImgUrl1.indexOf(
  822. 'https://view.officeapps.live.com/op/view.aspx?src='
  823. ) == -1
  824. "
  825. type="primary"
  826. @click="openLine(pptImgUrl1)"
  827. >打开链接
  828. </el-button>
  829. </div>
  830. <!-- <div
  831. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  832. v-if="showType == 1"
  833. >
  834. <el-button
  835. type="primary"
  836. class="newButton"
  837. @click="checkFileFull(showType, text)"
  838. >全屏查看</el-button
  839. >
  840. </div> -->
  841. </div>
  842. </div>
  843. </div>
  844. <div class="student_body" v-resize="resize">
  845. <div
  846. class="vedioBox"
  847. :style="{
  848. borderRadius:
  849. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  850. .taskDetail == '' &&
  851. vChapterData[taskCount].length == 0 &&
  852. fileC[taskCount].length == 0
  853. ? '0 0 20px 20px'
  854. : '20px',
  855. }"
  856. v-if="
  857. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  858. .toolChoose[0].tool &&
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool.length > 0
  861. "
  862. >
  863. <div
  864. class="toolHeng2"
  865. style="position: relative"
  866. v-if="
  867. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  868. .toolChoose[0].tool &&
  869. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  870. .toolChoose[0].tool.length &&
  871. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  872. .toolChoose[0].tool.length > 0
  873. "
  874. >
  875. <div class="workNav">工作区</div>
  876. <div
  877. class="filebox"
  878. style="flex-wrap: nowrap"
  879. v-for="(tool, toolIndex) in chapInfoList[courseType]
  880. .chapterInfo[0].taskJson[taskCount].toolChoose"
  881. :key="toolIndex"
  882. >
  883. <div class="bzBox">
  884. <div class="yCss"></div>
  885. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  886. 工具{{ toolIndex + 1 }}
  887. </div>
  888. <div
  889. v-if="timeWorkList[toolIndex].length > 0"
  890. style="margin: 0 0 0 10px"
  891. >
  892. {{
  893. timeWorkList[toolIndex][0].time
  894. ? "时间:" + timeWorkList[toolIndex][0].time
  895. : ""
  896. }}
  897. </div>
  898. </div>
  899. <div class="toolBox">
  900. <div>
  901. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  902. :key="indexTool"-->
  903. <!-- <div class="iframeBox">
  904. <div
  905. class="addPoint isBorder"
  906. v-for="(tooC, toolCIndex) in tool.tool"
  907. :key="toolCIndex"
  908. >
  909. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  910. <div
  911. class="iframeName"
  912. >
  913. 电子白板
  914. </div>
  915. <iframe
  916. src="https://iwb.cocorobo.cn/"
  917. ref="whiteBoard"
  918. ></iframe>
  919. </div>
  920. </div>
  921. </div>-->
  922. <div class="noiframeBox">
  923. <div
  924. class="addPoint"
  925. v-for="(tooC, toolCIndex) in tool.tool"
  926. :key="toolCIndex"
  927. >
  928. <div v-if="tooC == 1">
  929. <img
  930. src="../../assets/icon/secondToolList/whiteBoard.png"
  931. alt
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. />
  934. <div style="margin: 5px 0">电子白板</div>
  935. </div>
  936. <div v-if="tooC == 3">
  937. <img
  938. src="../../assets/icon/secondToolList/mindMapping.png"
  939. alt
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. />
  942. <div style="margin: 5px 0">思维导图</div>
  943. </div>
  944. <div v-if="tooC == 6">
  945. <img
  946. src="../../assets/icon/secondToolList/doc.png"
  947. alt
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. />
  950. <div style="margin: 5px 0">协同文档</div>
  951. </div>
  952. <div v-if="tooC == 7">
  953. <img
  954. src="../../assets/icon/secondToolList/mindNetwork.png"
  955. alt
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. />
  958. <div style="margin: 5px 0">思维网格</div>
  959. </div>
  960. <div v-if="tooC == 8">
  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 == 17">
  969. <img
  970. src="../../assets/icon/secondToolList/library.png"
  971. alt
  972. @click="addTools(tooC, toolIndex, taskCount)"
  973. />
  974. <div style="margin: 5px 0">学习资料</div>
  975. </div>
  976. <div v-if="tooC == 2">
  977. <img
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. src="../../assets/icon/secondToolList/note.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">便签</div>
  983. </div>
  984. <div v-if="tooC == 4">
  985. <img
  986. @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../../assets/icon/thirdToolList/ask.png"
  988. alt
  989. />
  990. <div style="margin: 5px 0">问卷调查</div>
  991. </div>
  992. <div v-if="tooC == 45">
  993. <img
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. src="../../assets/icon/thirdToolList/choose.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">选择题</div>
  999. </div>
  1000. <!-- <div v-if="tooC == 5">
  1001. <img
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. src="../../assets/icon/thirdToolList/score.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">量规评分</div>
  1007. </div> -->
  1008. <div v-if="tooC == 10">
  1009. <img
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. src="../../assets/icon/thirdToolList/time.png"
  1012. alt
  1013. />
  1014. <div style="margin: 5px 0">倒计时</div>
  1015. </div>
  1016. <div v-if="tooC == 15">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../../assets/icon/thirdToolList/answer.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">问答</div>
  1023. </div>
  1024. <div v-if="tooC == 26">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/thirdToolList/courseDesign.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">课程设计</div>
  1031. </div>
  1032. <div v-if="tooC == 18">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">训练服务器</div>
  1039. </div>
  1040. <div v-if="tooC == 16">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../../assets/icon/thirdToolList/work.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">作业提交</div>
  1047. </div>
  1048. <div v-if="tooC == 50">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../../assets/icon/thirdToolList/plwork.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">批量上传</div>
  1055. </div>
  1056. <div v-if="tooC == 21">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../../assets/icon/fourthToolList/program.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">AIoT Blockly</div>
  1063. </div>
  1064. <!-- <div v-if="tooC == 22">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../../assets/icon/fourthToolList/program.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">AI体验</div>
  1071. </div> -->
  1072. <div v-if="tooC == 23">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">AI Python</div>
  1079. </div>
  1080. <div v-if="tooC == 24">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/fourthToolList/AIprogram.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">AI Blockly</div>
  1087. </div>
  1088. <div v-if="tooC == 25">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/thirdToolList/evalua.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">目标管理</div>
  1095. </div>
  1096. <div v-if="tooC == 31">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/secondToolList/networkPanel.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">数学画板</div>
  1103. </div>
  1104. <div v-if="tooC == 28">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/secondToolList/translation.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">翻译</div>
  1111. </div>
  1112. <div v-if="tooC == 37">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../../assets/icon/secondToolList/mohe.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">魔盒识字</div>
  1119. </div>
  1120. <div v-if="tooC == 38">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../../assets/icon/secondToolList/24game.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">24点</div>
  1127. </div>
  1128. <div v-if="tooC == 39">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/secondToolList/GeoGebra.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">GeoGebra</div>
  1135. </div>
  1136. <div v-if="tooC == 32">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/code.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">源码编辑</div>
  1143. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1144. style="position: absolute;left: 110px;bottom: 30px;">
  1145. 上传文件
  1146. <input type="file" accept="*" style="display: none"
  1147. @change="beforeUpload1($event, 7, toolIndex)" />
  1148. </div> -->
  1149. </div>
  1150. <div v-if="tooC == 40">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/secondToolList/eval.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">个人评价</div>
  1157. </div>
  1158. <div v-if="tooC == 41">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/select.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">选择匹配</div>
  1165. </div>
  1166. <div v-if="tooC == 44">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/thirdToolList/hanClass.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">汉字宫</div>
  1173. </div>
  1174. <div v-if="tooC == 47">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/conSentences.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">排序</div>
  1181. </div>
  1182. <div v-if="tooC == 48">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../../assets/icon/fourthToolList/table.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">表格</div>
  1189. </div>
  1190. <div v-if="tooC == 52">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../../assets/icon/fourthToolList/text.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">文档</div>
  1197. </div>
  1198. <div v-if="tooC == 49">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/fourthToolList/group.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">学生分组</div>
  1205. </div>
  1206. <div v-if="tooC == 57">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/fourthToolList/cocopi.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">CocoPi</div>
  1213. </div>
  1214. <div v-if="tooC == 58">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/fourthToolList/car.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">模拟驾驶</div>
  1221. </div>
  1222. <div v-if="tooC == 59">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../../assets/icon/fourthToolList/lineSearch.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">路径搜索</div>
  1229. </div>
  1230. <div v-if="tooC == 60">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../../assets/icon/fourthToolList/deepLearning.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">深度学习</div>
  1237. </div>
  1238. <div v-if="tooC == 61">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../../assets/icon/fourthToolList/allHistory.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">全历史</div>
  1245. </div>
  1246. <div v-if="tooC == 62">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/fourthToolList/interVideo.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">交互视频</div>
  1253. </div>
  1254. <div v-if="tooC == 63">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/fourthToolList/Wood.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">海龟编程</div>
  1261. </div>
  1262. <div v-if="tooC == 65">
  1263. <img
  1264. @click="addTools(tooC, toolIndex, taskCount)"
  1265. src="../../assets/icon/firstToolList/pickPeople.png"
  1266. alt
  1267. />
  1268. <div style="margin: 5px 0">挑人</div>
  1269. </div>
  1270. <div v-if="tooC == 66">
  1271. <img
  1272. @click="addTools(tooC, toolIndex, taskCount)"
  1273. src="../../assets/icon/secondToolList/formulaEdi.png"
  1274. alt
  1275. />
  1276. <div style="margin: 5px 0">公式编辑</div>
  1277. </div>
  1278. <div v-if="tooC == 67">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../../assets/icon/secondToolList/molStr.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">分子结构</div>
  1285. </div>
  1286. <div v-if="tooC == 68">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../../assets/icon/secondToolList/timeAxis.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">时间轴</div>
  1293. </div>
  1294. <div v-if="tooC == 69">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/secondToolList/english.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">英语写作</div>
  1301. </div>
  1302. </div>
  1303. </div>
  1304. </div>
  1305. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1306. <!-- <div class="toolTitle">工具描述</div> -->
  1307. <div style="height:100%;"
  1308. v-html="contentConvent(tool.toolDetail)"
  1309. v-if="toolDetailIndex != toolIndex"
  1310. @click.stop="updateToolDetail(toolIndex, 2)"
  1311. ></div>
  1312. <div v-else @click.stop="" style="height:100%;">
  1313. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1314. </div>
  1315. </div>
  1316. <el-button
  1317. type="primary"
  1318. v-if="tool.tool[0] == 32"
  1319. style="position: absolute; right: 30px; top: 30px"
  1320. @click="addImg($event)"
  1321. >上传作业<input
  1322. type="file"
  1323. accept="*"
  1324. style="display: none"
  1325. @change="beforeUpload1($event, 7, toolIndex)"
  1326. /></el-button>
  1327. <el-button
  1328. type="primary"
  1329. v-if="tool.tool[0] == 15"
  1330. style="position: absolute; right: 30px; top: 30px"
  1331. @click="openWordCloud(toolIndex)"
  1332. >生成词云</el-button
  1333. >
  1334. <el-button
  1335. type="primary"
  1336. v-if="
  1337. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1338. "
  1339. style="position: absolute; right: 30px; top: 30px"
  1340. @click="uploadWorks(toolIndex)"
  1341. >导出作业</el-button
  1342. >
  1343. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1344. position: absolute;
  1345. right: 30px;
  1346. transform: translateY(-130%);
  1347. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1348. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1349. </div>
  1350. <div
  1351. v-if="
  1352. tType &&
  1353. tType == 2 &&
  1354. !sIsOpen &&
  1355. tool.tool.indexOf(16) != -1
  1356. "
  1357. class="worksBox"
  1358. >
  1359. <div
  1360. class="zuoyeYulan"
  1361. v-if="workStudent[toolIndex].length > 0"
  1362. >
  1363. <span class="worksTitle">作业预览</span>
  1364. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1365. </div>
  1366. <div
  1367. class="worksDetailBox"
  1368. v-if="workStudent[toolIndex].length > 0"
  1369. >
  1370. <div
  1371. class="works"
  1372. style="
  1373. width: 200px;
  1374. height: 140px;
  1375. margin: 10px 10px 10px 0;
  1376. box-shadow: 0 0 6px 1px #dfdada;
  1377. "
  1378. v-for="(w, wIndex) in workStudent[toolIndex]"
  1379. :key="wIndex"
  1380. >
  1381. <div class="workImg" v-if="w.type == 0">
  1382. <img
  1383. :src="w.works"
  1384. @click="previewImg(w.works)"
  1385. alt
  1386. />
  1387. <div
  1388. class="answerScore"
  1389. v-if="w.score"
  1390. @click.stop="openScore(w)"
  1391. :class="{
  1392. rightW:
  1393. w.userid == userid || tType == 1 || tType == 4,
  1394. }"
  1395. >
  1396. {{ JSON.parse(w.score).wScore }}分
  1397. </div>
  1398. <div
  1399. class="answerScore"
  1400. @click.stop="openScore(w)"
  1401. v-else-if="courseDetail.userid == userid"
  1402. :class="{
  1403. rightW:
  1404. w.userid == userid || tType == 1 || tType == 4,
  1405. }"
  1406. >
  1407. 评分
  1408. </div>
  1409. <img
  1410. class="deleteImg"
  1411. src="../../assets/deleteworks.png"
  1412. v-if="
  1413. w.userid == userid || tType == 1 || tType == 4
  1414. "
  1415. @click.stop="deleteWorks(w.wid)"
  1416. alt
  1417. />
  1418. </div>
  1419. <div class="workImg" v-if="w.type == 1">
  1420. <img :src="word" @click="openFile(w.works)" alt />
  1421. <div
  1422. class="answerScore"
  1423. v-if="w.score"
  1424. @click.stop="openScore(w)"
  1425. :class="{
  1426. rightW:
  1427. w.userid == userid || tType == 1 || tType == 4,
  1428. }"
  1429. >
  1430. {{ JSON.parse(w.score).wScore }}分
  1431. </div>
  1432. <div
  1433. class="answerScore"
  1434. @click.stop="openScore(w)"
  1435. v-else-if="courseDetail.userid == userid"
  1436. :class="{
  1437. rightW:
  1438. w.userid == userid || tType == 1 || tType == 4,
  1439. }"
  1440. >
  1441. 评分
  1442. </div>
  1443. <img
  1444. class="deleteImg"
  1445. src="../../assets/deleteworks.png"
  1446. v-if="
  1447. w.userid == userid || tType == 1 || tType == 4
  1448. "
  1449. @click.stop="deleteWorks(w.wid)"
  1450. alt
  1451. />
  1452. </div>
  1453. <div class="workImg" v-if="w.type == 3">
  1454. <img
  1455. style="cursor: pointer"
  1456. :src="video"
  1457. @click="openVideo(w)"
  1458. alt
  1459. />
  1460. <div
  1461. class="answerScore"
  1462. v-if="w.score"
  1463. @click.stop="openScore(w)"
  1464. :class="{
  1465. rightW:
  1466. w.userid == userid || tType == 1 || tType == 4,
  1467. }"
  1468. >
  1469. {{ JSON.parse(w.score).wScore }}分
  1470. </div>
  1471. <div
  1472. class="answerScore"
  1473. @click.stop="openScore(w)"
  1474. v-else-if="courseDetail.userid == userid"
  1475. :class="{
  1476. rightW:
  1477. w.userid == userid || tType == 1 || tType == 4,
  1478. }"
  1479. >
  1480. 评分
  1481. </div>
  1482. <img
  1483. class="deleteImg"
  1484. src="../../assets/deleteworks.png"
  1485. v-if="
  1486. w.userid == userid || tType == 1 || tType == 4
  1487. "
  1488. @click.stop="deleteWorks(w.wid)"
  1489. alt
  1490. />
  1491. </div>
  1492. <div class="workImg" v-if="w.type == 12">
  1493. <img
  1494. style="cursor: pointer"
  1495. :src="word2"
  1496. @click="downloadFile(w.works)"
  1497. alt
  1498. />
  1499. <div
  1500. class="answerScore"
  1501. v-if="w.score"
  1502. @click.stop="openScore(w)"
  1503. :class="{
  1504. rightW:
  1505. w.userid == userid || tType == 1 || tType == 4,
  1506. }"
  1507. >
  1508. {{ JSON.parse(w.score).wScore }}分
  1509. </div>
  1510. <div
  1511. class="answerScore"
  1512. @click.stop="openScore(w)"
  1513. v-else-if="courseDetail.userid == userid"
  1514. :class="{
  1515. rightW:
  1516. w.userid == userid || tType == 1 || tType == 4,
  1517. }"
  1518. >
  1519. 评分
  1520. </div>
  1521. <img
  1522. class="deleteImg"
  1523. src="../../assets/deleteworks.png"
  1524. v-if="
  1525. w.userid == userid || tType == 1 || tType == 4
  1526. "
  1527. @click.stop="deleteWorks(w.wid)"
  1528. alt
  1529. />
  1530. </div>
  1531. <div class="worksName">
  1532. <div>{{ w.sName }}</div>
  1533. </div>
  1534. </div>
  1535. </div>
  1536. </div>
  1537. <div
  1538. v-if="
  1539. tType &&
  1540. tType == 2 &&
  1541. !sIsOpen &&
  1542. tool.tool.indexOf(32) != -1
  1543. "
  1544. class="worksBox"
  1545. >
  1546. <div
  1547. class="zuoyeYulan"
  1548. v-if="workStudent[toolIndex].length > 0"
  1549. >
  1550. <span class="worksTitle">作业预览</span>
  1551. </div>
  1552. <div
  1553. class="worksDetailBox"
  1554. v-if="workStudent[toolIndex].length > 0"
  1555. >
  1556. <div
  1557. class="works"
  1558. style="
  1559. width: 200px;
  1560. height: 140px;
  1561. margin: 10px 10px 10px 0;
  1562. box-shadow: 0 0 6px 1px #dfdada;
  1563. "
  1564. v-for="(w, wIndex) in workStudent[toolIndex]"
  1565. :key="wIndex"
  1566. >
  1567. <div class="workImg">
  1568. <img
  1569. :src="word2"
  1570. @click="downloadFile(w.works)"
  1571. alt
  1572. />
  1573. <div
  1574. class="answerScore"
  1575. v-if="w.score"
  1576. @click.stop="openScore(w)"
  1577. :class="{
  1578. rightW:
  1579. w.userid == userid || tType == 1 || tType == 4,
  1580. }"
  1581. >
  1582. {{ JSON.parse(w.score).wScore }}分
  1583. </div>
  1584. <div
  1585. class="answerScore"
  1586. @click.stop="openScore(w)"
  1587. v-else-if="courseDetail.userid == userid"
  1588. :class="{
  1589. rightW:
  1590. w.userid == userid || tType == 1 || tType == 4,
  1591. }"
  1592. >
  1593. 评分
  1594. </div>
  1595. <img
  1596. class="deleteImg"
  1597. src="../../assets/deleteworks.png"
  1598. v-if="
  1599. w.userid == userid || tType == 1 || tType == 4
  1600. "
  1601. @click.stop="deleteWorks(w.wid)"
  1602. alt
  1603. />
  1604. </div>
  1605. <div class="worksName">
  1606. <div>{{ w.sName }}</div>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. </div>
  1611. <div
  1612. v-if="
  1613. tType &&
  1614. tType == 2 &&
  1615. !sIsOpen &&
  1616. tool.tool.indexOf(57) != -1
  1617. "
  1618. class="worksBox"
  1619. >
  1620. <div
  1621. class="zuoyeYulan"
  1622. v-if="workStudent[toolIndex].length > 0"
  1623. >
  1624. <span class="worksTitle">作业预览</span>
  1625. </div>
  1626. <div
  1627. class="worksDetailBox"
  1628. v-if="workStudent[toolIndex].length > 0"
  1629. >
  1630. <div
  1631. class="works"
  1632. style="
  1633. width: 200px;
  1634. height: 140px;
  1635. margin: 10px 10px 10px 0;
  1636. box-shadow: 0 0 6px 1px #dfdada;
  1637. "
  1638. v-for="(w, wIndex) in workStudent[toolIndex]"
  1639. :key="wIndex"
  1640. >
  1641. <div class="workImg">
  1642. <img
  1643. :src="word2"
  1644. @click="downloadFile(w.works)"
  1645. v-if="w.type == 12"
  1646. alt
  1647. />
  1648. <img
  1649. :src="word2"
  1650. @click="
  1651. openCocoPi(57, toolIndex, w.userid, w.sName)
  1652. "
  1653. v-else-if="w.type == 15"
  1654. alt
  1655. />
  1656. <div
  1657. class="answerScore"
  1658. v-if="w.score"
  1659. @click.stop="openScore(w)"
  1660. :class="{
  1661. rightW:
  1662. w.userid == userid || tType == 1 || tType == 4,
  1663. }"
  1664. >
  1665. {{ JSON.parse(w.score).wScore }}分
  1666. </div>
  1667. <div
  1668. class="answerScore"
  1669. @click.stop="openScore(w)"
  1670. v-else-if="courseDetail.userid == userid"
  1671. :class="{
  1672. rightW:
  1673. w.userid == userid || tType == 1 || tType == 4,
  1674. }"
  1675. >
  1676. 评分
  1677. </div>
  1678. <img
  1679. class="deleteImg"
  1680. src="../../assets/deleteworks.png"
  1681. v-if="
  1682. w.userid == userid || tType == 1 || tType == 4
  1683. "
  1684. @click.stop="deleteWorks(w.wid)"
  1685. alt
  1686. />
  1687. </div>
  1688. <div class="worksName">
  1689. <div>{{ w.sName }}</div>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. <div
  1695. v-if="
  1696. tType &&
  1697. tType == 2 &&
  1698. !sIsOpen &&
  1699. tool.tool.indexOf(4) != -1
  1700. "
  1701. class="worksBox"
  1702. >
  1703. <div
  1704. class="zuoyeYulan"
  1705. v-if="workStudent[toolIndex].length > 0"
  1706. >
  1707. <span class="worksTitle">作业预览</span>
  1708. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1709. </div>
  1710. <div
  1711. class="worksDetailBox"
  1712. v-if="workStudent[toolIndex].length > 0"
  1713. >
  1714. <div
  1715. class="isWorksName2"
  1716. v-for="(w, wIndex) in workStudent[toolIndex]"
  1717. :key="wIndex"
  1718. @click="
  1719. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1720. "
  1721. >
  1722. {{ w.sName }}
  1723. <img
  1724. class="deleteImg deleteImg2"
  1725. src="../../assets/deleteworks.png"
  1726. v-if="w.userid == userid || tType == 1 || tType == 4"
  1727. @click.stop="deleteWorks(w.wid)"
  1728. alt
  1729. />
  1730. </div>
  1731. <!-- <div
  1732. class="works"
  1733. style="
  1734. width: 200px;
  1735. height: 140px;
  1736. border-radius: 10px;
  1737. box-shadow: 0 0 6px 1px #dfdada;
  1738. overflow: hidden;
  1739. "
  1740. v-for="(w, wIndex) in workStudent[toolIndex]"
  1741. :key="wIndex"
  1742. >
  1743. <div class="workImg">
  1744. <img
  1745. src="../../assets/icon/works/noImg.png"
  1746. @click="
  1747. openTools(
  1748. 4,
  1749. toolIndex,
  1750. taskCount,
  1751. w.works,
  1752. w.sName
  1753. )
  1754. "
  1755. alt
  1756. />
  1757. </div>
  1758. <div class="worksName">
  1759. <div>{{ w.sName }}</div>
  1760. <div>{{ w.time }}</div>
  1761. </div>
  1762. </div> -->
  1763. </div>
  1764. </div>
  1765. <div
  1766. v-if="
  1767. tType &&
  1768. tType == 2 &&
  1769. !sIsOpen &&
  1770. tool.tool.indexOf(45) != -1
  1771. "
  1772. class="worksBox"
  1773. >
  1774. <div
  1775. class="zuoyeYulan"
  1776. v-if="workStudent[toolIndex].length > 0"
  1777. >
  1778. <span class="worksTitle">作业预览</span>
  1779. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1780. </div>
  1781. <div
  1782. class="worksDetailBox"
  1783. v-if="workStudent[toolIndex].length > 0"
  1784. >
  1785. <div
  1786. class="isWorksName2"
  1787. v-for="(w, wIndex) in workStudent[toolIndex]"
  1788. :key="wIndex"
  1789. @click="
  1790. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1791. "
  1792. >
  1793. {{ w.sName }}
  1794. <img
  1795. class="deleteImg deleteImg2"
  1796. src="../../assets/deleteworks.png"
  1797. v-if="w.userid == userid || tType == 1 || tType == 4"
  1798. @click.stop="deleteWorks(w.wid)"
  1799. alt
  1800. />
  1801. </div>
  1802. </div>
  1803. </div>
  1804. <div
  1805. v-if="
  1806. tType &&
  1807. tType == 2 &&
  1808. !sIsOpen &&
  1809. tool.tool.indexOf(69) != -1
  1810. "
  1811. class="worksBox"
  1812. >
  1813. <div
  1814. class="zuoyeYulan"
  1815. v-if="workStudent[toolIndex].length > 0"
  1816. >
  1817. <span class="worksTitle">作业预览</span>
  1818. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1819. </div>
  1820. <div
  1821. class="worksDetailBox"
  1822. v-if="workStudent[toolIndex].length > 0"
  1823. >
  1824. <div
  1825. class="isWorksName2"
  1826. v-for="(w, wIndex) in workStudent[toolIndex]"
  1827. :key="wIndex"
  1828. @click="
  1829. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1830. "
  1831. >
  1832. {{ w.sName }}
  1833. <img
  1834. class="deleteImg deleteImg2"
  1835. src="../../assets/deleteworks.png"
  1836. v-if="w.userid == userid || tType == 1 || tType == 4"
  1837. @click.stop="deleteWorks(w.wid)"
  1838. alt
  1839. />
  1840. </div>
  1841. </div>
  1842. </div>
  1843. <div
  1844. v-if="
  1845. tType &&
  1846. tType == 2 &&
  1847. !sIsOpen &&
  1848. tool.tool.indexOf(15) != -1
  1849. "
  1850. class="worksBox"
  1851. >
  1852. <div
  1853. class="zuoyeYulan"
  1854. v-if="workStudent[toolIndex].length > 0"
  1855. >
  1856. <span class="worksTitle">作业预览</span>
  1857. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1858. </div>
  1859. <div
  1860. class="worksDetailBox"
  1861. v-if="workStudent[toolIndex].length > 0"
  1862. >
  1863. <div
  1864. class="works"
  1865. v-for="(w, wIndex) in workStudent[toolIndex]"
  1866. :key="wIndex"
  1867. >
  1868. <div class="workImg">
  1869. <!-- <img
  1870. src="../../assets/icon/works/noImg.png"
  1871. @click="openTools(15, toolIndex, taskCount, w.works)"
  1872. alt=""
  1873. />-->
  1874. <div class="answerBg">
  1875. <!-- <div>{{ w.sName }}</div> -->
  1876. <el-tooltip
  1877. class="item"
  1878. effect="light"
  1879. :content="JSON.parse(w.works)[0].answer"
  1880. placement="top"
  1881. >
  1882. <div class="answerContent">
  1883. {{ JSON.parse(w.works)[0].answer }}
  1884. </div>
  1885. </el-tooltip>
  1886. <div
  1887. class="answerScore"
  1888. v-if="w.score"
  1889. @click.stop="openScore(w)"
  1890. :class="{
  1891. rightW:
  1892. w.userid == userid ||
  1893. tType == 1 ||
  1894. tType == 4,
  1895. }"
  1896. >
  1897. {{ JSON.parse(w.score).wScore }}分
  1898. </div>
  1899. <div
  1900. class="answerScore"
  1901. @click.stop="openScore(w)"
  1902. v-else-if="courseDetail.userid == userid"
  1903. :class="{
  1904. rightW:
  1905. w.userid == userid ||
  1906. tType == 1 ||
  1907. tType == 4,
  1908. }"
  1909. >
  1910. 评分
  1911. </div>
  1912. <img
  1913. class="deleteImg"
  1914. src="../../assets/deleteworks.png"
  1915. v-if="
  1916. w.userid == userid || tType == 1 || tType == 4
  1917. "
  1918. @click.stop="deleteWorks(w.wid)"
  1919. alt
  1920. />
  1921. </div>
  1922. <div class="comment">
  1923. <div class="worksName">
  1924. <div>{{ w.sName }}</div>
  1925. </div>
  1926. </div>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. </div>
  1931. <div
  1932. v-if="
  1933. tType &&
  1934. tType == 2 &&
  1935. !sIsOpen &&
  1936. tool.tool.indexOf(1) != -1
  1937. "
  1938. class="worksBox"
  1939. >
  1940. <div
  1941. class="zuoyeYulan"
  1942. v-if="workStudent[toolIndex].length > 0"
  1943. >
  1944. <span class="worksTitle">作业预览</span>
  1945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1946. </div>
  1947. <div
  1948. class="worksDetailBox"
  1949. v-if="workStudent[toolIndex].length > 0"
  1950. >
  1951. <div
  1952. class="works"
  1953. style="
  1954. width: 200px;
  1955. height: 140px;
  1956. margin: 10px 10px 10px 0;
  1957. box-shadow: 0 0 6px 1px #dfdada;
  1958. "
  1959. v-for="(w, wIndex) in workStudent[toolIndex]"
  1960. :key="wIndex"
  1961. >
  1962. <div class="workImg">
  1963. <img
  1964. :src="w.works"
  1965. @click="previewImg(w.works)"
  1966. alt
  1967. />
  1968. <div
  1969. class="answerScore"
  1970. v-if="w.score"
  1971. @click.stop="openScore(w)"
  1972. :class="{
  1973. rightW:
  1974. w.userid == userid || tType == 1 || tType == 4,
  1975. }"
  1976. >
  1977. {{ JSON.parse(w.score).wScore }}分
  1978. </div>
  1979. <div
  1980. class="answerScore"
  1981. @click.stop="openScore(w)"
  1982. v-else-if="courseDetail.userid == userid"
  1983. :class="{
  1984. rightW:
  1985. w.userid == userid || tType == 1 || tType == 4,
  1986. }"
  1987. >
  1988. 评分
  1989. </div>
  1990. <img
  1991. class="deleteImg"
  1992. src="../../assets/deleteworks.png"
  1993. v-if="
  1994. w.userid == userid || tType == 1 || tType == 4
  1995. "
  1996. @click.stop="deleteWorks(w.wid)"
  1997. alt
  1998. />
  1999. </div>
  2000. <div class="worksName">
  2001. <div>{{ w.sName }}</div>
  2002. </div>
  2003. </div>
  2004. </div>
  2005. </div>
  2006. <div
  2007. v-if="
  2008. tType &&
  2009. tType == 2 &&
  2010. !sIsOpen &&
  2011. tool.tool.indexOf(3) != -1
  2012. "
  2013. class="worksBox"
  2014. >
  2015. <div
  2016. class="zuoyeYulan"
  2017. v-if="workStudent[toolIndex].length > 0"
  2018. >
  2019. <span class="worksTitle">作业预览</span>
  2020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2021. </div>
  2022. <div
  2023. class="worksDetailBox"
  2024. v-if="workStudent[toolIndex].length > 0"
  2025. >
  2026. <div
  2027. class="works"
  2028. style="
  2029. width: 200px;
  2030. height: 140px;
  2031. margin: 10px 10px 10px 0;
  2032. box-shadow: 0 0 6px 1px #dfdada;
  2033. "
  2034. v-for="(w, wIndex) in workStudent[toolIndex]"
  2035. :key="wIndex"
  2036. >
  2037. <div class="workImg">
  2038. <img
  2039. :src="w.works"
  2040. @click="previewImg(w.works)"
  2041. alt
  2042. />
  2043. <div
  2044. class="answerScore"
  2045. v-if="w.score"
  2046. @click.stop="openScore(w)"
  2047. :class="{
  2048. rightW:
  2049. w.userid == userid || tType == 1 || tType == 4,
  2050. }"
  2051. >
  2052. {{ JSON.parse(w.score).wScore }}分
  2053. </div>
  2054. <div
  2055. class="answerScore"
  2056. @click.stop="openScore(w)"
  2057. v-else-if="courseDetail.userid == userid"
  2058. :class="{
  2059. rightW:
  2060. w.userid == userid || tType == 1 || tType == 4,
  2061. }"
  2062. >
  2063. 评分
  2064. </div>
  2065. <img
  2066. class="deleteImg"
  2067. src="../../assets/deleteworks.png"
  2068. v-if="
  2069. w.userid == userid || tType == 1 || tType == 4
  2070. "
  2071. @click.stop="deleteWorks(w.wid)"
  2072. alt
  2073. />
  2074. </div>
  2075. <div class="worksName">
  2076. <div>{{ w.sName }}</div>
  2077. </div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. tType == 2 &&
  2085. !sIsOpen &&
  2086. tool.tool.indexOf(6) != -1
  2087. "
  2088. class="worksBox"
  2089. >
  2090. <div
  2091. class="zuoyeYulan"
  2092. v-if="workStudent[toolIndex].length > 0"
  2093. >
  2094. <span class="worksTitle">作业预览</span>
  2095. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="works"
  2103. style="
  2104. width: 200px;
  2105. height: 140px;
  2106. margin: 10px 10px 10px 0;
  2107. box-shadow: 0 0 6px 1px #dfdada;
  2108. "
  2109. v-for="(w, wIndex) in workStudent[toolIndex]"
  2110. :key="wIndex"
  2111. >
  2112. <div class="workImg">
  2113. <img
  2114. :src="w.works"
  2115. @click="previewImg(w.works)"
  2116. alt
  2117. />
  2118. <div
  2119. class="answerScore"
  2120. v-if="w.score"
  2121. @click.stop="openScore(w)"
  2122. :class="{
  2123. rightW:
  2124. w.userid == userid || tType == 1 || tType == 4,
  2125. }"
  2126. >
  2127. {{ JSON.parse(w.score).wScore }}分
  2128. </div>
  2129. <div
  2130. class="answerScore"
  2131. @click.stop="openScore(w)"
  2132. v-else-if="courseDetail.userid == userid"
  2133. :class="{
  2134. rightW:
  2135. w.userid == userid || tType == 1 || tType == 4,
  2136. }"
  2137. >
  2138. 评分
  2139. </div>
  2140. <img
  2141. class="deleteImg"
  2142. src="../../assets/deleteworks.png"
  2143. v-if="
  2144. w.userid == userid || tType == 1 || tType == 4
  2145. "
  2146. @click.stop="deleteWorks(w.wid)"
  2147. alt
  2148. />
  2149. </div>
  2150. <div class="worksName">
  2151. <div>{{ w.sName }}</div>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <div
  2157. v-if="
  2158. tType &&
  2159. tType == 2 &&
  2160. !sIsOpen &&
  2161. tool.tool.indexOf(7) != -1
  2162. "
  2163. class="worksBox"
  2164. >
  2165. <div
  2166. class="zuoyeYulan"
  2167. v-if="workStudent[toolIndex].length > 0"
  2168. >
  2169. <span class="worksTitle">作业预览</span>
  2170. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2171. </div>
  2172. <div
  2173. class="worksDetailBox"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <div
  2177. class="works"
  2178. style="
  2179. width: 200px;
  2180. height: 140px;
  2181. margin: 10px 10px 10px 0;
  2182. box-shadow: 0 0 6px 1px #dfdada;
  2183. "
  2184. v-for="(w, wIndex) in workStudent[toolIndex]"
  2185. :key="wIndex"
  2186. >
  2187. <div class="workImg">
  2188. <img
  2189. :src="w.works"
  2190. @click="previewImg(w.works)"
  2191. alt
  2192. />
  2193. <div
  2194. class="answerScore"
  2195. v-if="w.score"
  2196. @click.stop="openScore(w)"
  2197. :class="{
  2198. rightW:
  2199. w.userid == userid || tType == 1 || tType == 4,
  2200. }"
  2201. >
  2202. {{ JSON.parse(w.score).wScore }}分
  2203. </div>
  2204. <div
  2205. class="answerScore"
  2206. @click.stop="openScore(w)"
  2207. v-else-if="courseDetail.userid == userid"
  2208. :class="{
  2209. rightW:
  2210. w.userid == userid || tType == 1 || tType == 4,
  2211. }"
  2212. >
  2213. 评分
  2214. </div>
  2215. <img
  2216. class="deleteImg"
  2217. src="../../assets/deleteworks.png"
  2218. v-if="
  2219. w.userid == userid || tType == 1 || tType == 4
  2220. "
  2221. @click.stop="deleteWorks(w.wid)"
  2222. alt
  2223. />
  2224. </div>
  2225. <div class="worksName">
  2226. <div>{{ w.sName }}</div>
  2227. </div>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. <div
  2232. v-if="
  2233. tType &&
  2234. tType == 2 &&
  2235. !sIsOpen &&
  2236. tool.tool.indexOf(26) != -1
  2237. "
  2238. class="worksBox"
  2239. >
  2240. <div
  2241. class="zuoyeYulan"
  2242. v-if="workStudent[toolIndex].length > 0"
  2243. >
  2244. <span class="worksTitle">作业预览</span>
  2245. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2246. </div>
  2247. <div
  2248. class="worksDetailBox"
  2249. v-if="workStudent[toolIndex].length > 0"
  2250. >
  2251. <div
  2252. class="works"
  2253. style="
  2254. width: 200px;
  2255. height: 140px;
  2256. margin: 10px 10px 10px 0;
  2257. box-shadow: 0 0 6px 1px #dfdada;
  2258. "
  2259. v-for="(w, wIndex) in workStudent[toolIndex]"
  2260. :key="wIndex"
  2261. >
  2262. <div class="workImg">
  2263. <img
  2264. :src="w.works"
  2265. @click="previewImg(w.works)"
  2266. alt
  2267. />
  2268. <img
  2269. class="deleteImg"
  2270. src="../../assets/deleteworks.png"
  2271. v-if="
  2272. w.userid == userid || tType == 1 || tType == 4
  2273. "
  2274. @click.stop="deleteWorks(w.wid)"
  2275. alt
  2276. />
  2277. </div>
  2278. <div class="worksName">
  2279. <div>{{ w.sName }}</div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. <div
  2285. v-if="
  2286. tType &&
  2287. ((tType == 2 && sIsOpen == true) ||
  2288. tType == 1 ||
  2289. tType == 4) &&
  2290. tool.tool.indexOf(16) != -1
  2291. "
  2292. class="worksBox"
  2293. >
  2294. <div
  2295. class="zuoyeYulan"
  2296. v-if="
  2297. (worksStudent.length &&
  2298. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2299. "
  2300. >
  2301. <div class="worksTop">
  2302. <div>作业预览</div>
  2303. <div
  2304. class="corOpen"
  2305. @click="contract(toolIndex)"
  2306. v-if="
  2307. (isCloseList[toolIndex].isCloseBoolean) &&
  2308. isCloseList[toolIndex].isClose == 0
  2309. "
  2310. >
  2311. 折叠
  2312. </div>
  2313. <div
  2314. class="corOpen"
  2315. @click="contract(toolIndex)"
  2316. v-if="isCloseList[toolIndex].isClose == 1"
  2317. >
  2318. 展开
  2319. </div>
  2320. </div>
  2321. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2322. </div>
  2323. <div
  2324. class="group_workBox"
  2325. v-for="(g, gindex) in courseGroup.group"
  2326. :key="gindex"
  2327. >
  2328. <div class="group_box">
  2329. <div class="group_title">
  2330. <el-tooltip
  2331. class="item"
  2332. effect="light"
  2333. :content="g.name"
  2334. placement="top"
  2335. >
  2336. <div class="group_name">{{ g.name }}</div>
  2337. </el-tooltip>
  2338. </div>
  2339. <div
  2340. class="group_work"
  2341. v-if="
  2342. g.works &&
  2343. g.works.length &&
  2344. g.works[toolIndex].length
  2345. "
  2346. >
  2347. <div
  2348. class="works"
  2349. style="
  2350. width: 200px;
  2351. height: 140px;
  2352. margin: 10px 10px 10px 0;
  2353. border-radius: 15px;
  2354. box-shadow: 0 0 6px 1px #dfdada;
  2355. "
  2356. v-for="(w, wIndex) in g.works[toolIndex]"
  2357. :key="wIndex"
  2358. :class="w.type == 1 ? 'isTypeOne' : ''"
  2359. >
  2360. <div class="workImg" v-if="w.type == 0">
  2361. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2362. <img
  2363. :src="w.works"
  2364. @click="previewImg(w.works)"
  2365. alt
  2366. />
  2367. <div
  2368. class="answerScore"
  2369. v-if="w.score"
  2370. @click.stop="openScore(w)"
  2371. :class="{
  2372. rightW:
  2373. w.userid == userid ||
  2374. tType == 1 ||
  2375. tType == 4 ||
  2376. w.ateacher == userid,
  2377. }"
  2378. >
  2379. {{ JSON.parse(w.score).wScore }}分
  2380. </div>
  2381. <div
  2382. class="answerScore"
  2383. @click.stop="openScore(w)"
  2384. v-else-if="courseDetail.userid == userid"
  2385. :class="{
  2386. rightW:
  2387. w.userid == userid ||
  2388. tType == 1 ||
  2389. tType == 4 ||
  2390. w.ateacher == userid,
  2391. }"
  2392. >
  2393. 评分
  2394. </div>
  2395. <img
  2396. class="deleteImg"
  2397. src="../../assets/deleteworks.png"
  2398. v-if="
  2399. w.userid == userid || tType == 1 || tType == 4
  2400. "
  2401. @click.stop="deleteWorks(w.wid)"
  2402. alt
  2403. />
  2404. </div>
  2405. <div class="workImg" v-if="w.type == 1">
  2406. <img :src="word" @click="openFile(w.works)" alt />
  2407. <!-- @click="openFile(w.works)" -->
  2408. <div
  2409. class="answerScore"
  2410. v-if="w.score"
  2411. @click.stop="openScore(w)"
  2412. :class="{
  2413. rightW:
  2414. w.userid == userid ||
  2415. tType == 1 ||
  2416. tType == 4 ||
  2417. w.ateacher == userid,
  2418. }"
  2419. >
  2420. {{ JSON.parse(w.score).wScore }}分
  2421. </div>
  2422. <div
  2423. class="answerScore"
  2424. @click.stop="openScore(w)"
  2425. v-else-if="courseDetail.userid == userid"
  2426. :class="{
  2427. rightW:
  2428. w.userid == userid ||
  2429. tType == 1 ||
  2430. tType == 4 ||
  2431. w.ateacher == userid,
  2432. }"
  2433. >
  2434. 评分
  2435. </div>
  2436. <img
  2437. class="deleteImg"
  2438. src="../../assets/deleteworks.png"
  2439. v-if="
  2440. w.userid == userid || tType == 1 || tType == 4
  2441. "
  2442. @click.stop="deleteWorks(w.wid)"
  2443. alt
  2444. />
  2445. </div>
  2446. <div class="workImg" v-if="w.type == 3">
  2447. <img
  2448. style="cursor: pointer"
  2449. :src="video"
  2450. @click="openVideo(w)"
  2451. alt
  2452. />
  2453. <!-- @click="openVideo(w.works)" -->
  2454. <div
  2455. class="answerScore"
  2456. v-if="w.score"
  2457. @click.stop="openScore(w)"
  2458. :class="{
  2459. rightW:
  2460. w.userid == userid ||
  2461. tType == 1 ||
  2462. tType == 4 ||
  2463. w.ateacher == userid,
  2464. }"
  2465. >
  2466. {{ JSON.parse(w.score).wScore }}分
  2467. </div>
  2468. <div
  2469. class="answerScore"
  2470. @click.stop="openScore(w)"
  2471. v-else-if="courseDetail.userid == userid"
  2472. :class="{
  2473. rightW:
  2474. w.userid == userid ||
  2475. tType == 1 ||
  2476. tType == 4 ||
  2477. w.ateacher == userid,
  2478. }"
  2479. >
  2480. 评分
  2481. </div>
  2482. <img
  2483. class="deleteImg"
  2484. src="../../assets/deleteworks.png"
  2485. v-if="
  2486. w.userid == userid || tType == 1 || tType == 4
  2487. "
  2488. @click.stop="deleteWorks(w.wid)"
  2489. alt
  2490. />
  2491. </div>
  2492. <div class="workImg" v-if="w.type == 12">
  2493. <img
  2494. style="cursor: pointer"
  2495. :src="word2"
  2496. @click="downloadFile(w.works)"
  2497. alt
  2498. />
  2499. <!-- @click="openVideo(w.works)" -->
  2500. <div
  2501. class="answerScore"
  2502. v-if="w.score"
  2503. @click.stop="openScore(w)"
  2504. :class="{
  2505. rightW:
  2506. w.userid == userid ||
  2507. tType == 1 ||
  2508. tType == 4 ||
  2509. w.ateacher == userid,
  2510. }"
  2511. >
  2512. {{ JSON.parse(w.score).wScore }}分
  2513. </div>
  2514. <div
  2515. class="answerScore"
  2516. @click.stop="openScore(w)"
  2517. v-else-if="courseDetail.userid == userid"
  2518. :class="{
  2519. rightW:
  2520. w.userid == userid ||
  2521. tType == 1 ||
  2522. tType == 4 ||
  2523. w.ateacher == userid,
  2524. }"
  2525. >
  2526. 评分
  2527. </div>
  2528. <img
  2529. class="deleteImg"
  2530. src="../../assets/deleteworks.png"
  2531. v-if="
  2532. w.userid == userid || tType == 1 || tType == 4
  2533. "
  2534. @click.stop="deleteWorks(w.wid)"
  2535. alt
  2536. />
  2537. </div>
  2538. <div class="comment" style="min-width: 200px">
  2539. <div class="worksName">
  2540. <div>{{ w.sName }}</div>
  2541. </div>
  2542. <div class="commentList">
  2543. <div class="commentList">
  2544. <div
  2545. class="commentImg"
  2546. @click="
  2547. isLikes(w.wid, userid, 1, null, w.isLikes)
  2548. "
  2549. >
  2550. <img
  2551. :src="w.isLikes == true ? likes : noLikes"
  2552. alt=""
  2553. />
  2554. </div>
  2555. <div>{{ w.likesCount }}</div>
  2556. </div>
  2557. <div
  2558. class="commentList"
  2559. style="margin-right: 15px"
  2560. >
  2561. <div
  2562. class="commentImg"
  2563. @click="
  2564. commentOther(
  2565. w,
  2566. toolIndex,
  2567. wIndex,
  2568. null,
  2569. g.id
  2570. )
  2571. "
  2572. >
  2573. <img
  2574. src="../../assets/icon/comment/comment.png"
  2575. alt=""
  2576. />
  2577. </div>
  2578. <div>{{ w.commentCount }}</div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. </div>
  2584. <div class="group_work" v-else>暂无提交作业</div>
  2585. </div>
  2586. </div>
  2587. <div
  2588. :id="'tool-' + toolIndex"
  2589. :style="{
  2590. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2591. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2592. }"
  2593. class="worksDetailBox"
  2594. v-if="
  2595. worksStudent.length &&
  2596. worksStudent[toolIndex].length > 0
  2597. "
  2598. >
  2599. <div
  2600. class="works"
  2601. style="
  2602. width: 200px;
  2603. height: 140px;
  2604. margin: 10px 10px 10px 0;
  2605. border-radius: 15px;
  2606. box-shadow: 0 0 6px 1px #dfdada;
  2607. "
  2608. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2609. :key="wIndex"
  2610. :class="w.type == 1 ? 'isTypeOne' : ''"
  2611. >
  2612. <div class="workImg" v-if="w.type == 0">
  2613. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2614. <img
  2615. :src="w.works"
  2616. @click="previewImg(w.works)"
  2617. alt
  2618. />
  2619. <div
  2620. class="answerScore"
  2621. v-if="w.score"
  2622. @click.stop="openScore(w)"
  2623. :class="{
  2624. rightW:
  2625. w.userid == userid ||
  2626. tType == 1 ||
  2627. tType == 4 ||
  2628. w.ateacher == userid,
  2629. }"
  2630. >
  2631. {{ JSON.parse(w.score).wScore }}分
  2632. </div>
  2633. <div
  2634. class="answerScore"
  2635. @click.stop="openScore(w)"
  2636. v-else-if="courseDetail.userid == userid"
  2637. :class="{
  2638. rightW:
  2639. w.userid == userid ||
  2640. tType == 1 ||
  2641. tType == 4 ||
  2642. w.ateacher == userid,
  2643. }"
  2644. >
  2645. 评分
  2646. </div>
  2647. <img
  2648. class="deleteImg"
  2649. src="../../assets/deleteworks.png"
  2650. v-if="
  2651. w.userid == userid || tType == 1 || tType == 4
  2652. "
  2653. @click.stop="deleteWorks(w.wid)"
  2654. alt
  2655. />
  2656. </div>
  2657. <div class="workImg" v-if="w.type == 1">
  2658. <img :src="word" @click="openFile(w.works)" alt />
  2659. <!-- @click="openFile(w.works)" -->
  2660. <div
  2661. class="answerScore"
  2662. v-if="w.score"
  2663. @click.stop="openScore(w)"
  2664. :class="{
  2665. rightW:
  2666. w.userid == userid ||
  2667. tType == 1 ||
  2668. tType == 4 ||
  2669. w.ateacher == userid,
  2670. }"
  2671. >
  2672. {{ JSON.parse(w.score).wScore }}分
  2673. </div>
  2674. <div
  2675. class="answerScore"
  2676. @click.stop="openScore(w)"
  2677. v-else-if="courseDetail.userid == userid"
  2678. :class="{
  2679. rightW:
  2680. w.userid == userid ||
  2681. tType == 1 ||
  2682. tType == 4 ||
  2683. w.ateacher == userid,
  2684. }"
  2685. >
  2686. 评分
  2687. </div>
  2688. <img
  2689. class="deleteImg"
  2690. src="../../assets/deleteworks.png"
  2691. v-if="
  2692. w.userid == userid || tType == 1 || tType == 4
  2693. "
  2694. @click.stop="deleteWorks(w.wid)"
  2695. alt
  2696. />
  2697. </div>
  2698. <div class="workImg" v-if="w.type == 3">
  2699. <img
  2700. style="cursor: pointer"
  2701. :src="video"
  2702. @click="openVideo(w)"
  2703. alt
  2704. />
  2705. <!-- @click="openVideo(w.works)" -->
  2706. <div
  2707. class="answerScore"
  2708. v-if="w.score"
  2709. @click.stop="openScore(w)"
  2710. :class="{
  2711. rightW:
  2712. w.userid == userid ||
  2713. tType == 1 ||
  2714. tType == 4 ||
  2715. w.ateacher == userid,
  2716. }"
  2717. >
  2718. {{ JSON.parse(w.score).wScore }}分
  2719. </div>
  2720. <div
  2721. class="answerScore"
  2722. @click.stop="openScore(w)"
  2723. v-else-if="courseDetail.userid == userid"
  2724. :class="{
  2725. rightW:
  2726. w.userid == userid ||
  2727. tType == 1 ||
  2728. tType == 4 ||
  2729. w.ateacher == userid,
  2730. }"
  2731. >
  2732. 评分
  2733. </div>
  2734. <img
  2735. class="deleteImg"
  2736. src="../../assets/deleteworks.png"
  2737. v-if="
  2738. w.userid == userid || tType == 1 || tType == 4
  2739. "
  2740. @click.stop="deleteWorks(w.wid)"
  2741. alt
  2742. />
  2743. </div>
  2744. <div class="workImg" v-if="w.type == 12">
  2745. <img
  2746. style="cursor: pointer"
  2747. :src="word2"
  2748. @click="downloadFile(w.works)"
  2749. alt
  2750. />
  2751. <!-- @click="openVideo(w.works)" -->
  2752. <div
  2753. class="answerScore"
  2754. v-if="w.score"
  2755. @click.stop="openScore(w)"
  2756. :class="{
  2757. rightW:
  2758. w.userid == userid ||
  2759. tType == 1 ||
  2760. tType == 4 ||
  2761. w.ateacher == userid,
  2762. }"
  2763. >
  2764. {{ JSON.parse(w.score).wScore }}分
  2765. </div>
  2766. <div
  2767. class="answerScore"
  2768. @click.stop="openScore(w)"
  2769. v-else-if="courseDetail.userid == userid"
  2770. :class="{
  2771. rightW:
  2772. w.userid == userid ||
  2773. tType == 1 ||
  2774. tType == 4 ||
  2775. w.ateacher == userid,
  2776. }"
  2777. >
  2778. 评分
  2779. </div>
  2780. <img
  2781. class="deleteImg"
  2782. src="../../assets/deleteworks.png"
  2783. v-if="
  2784. w.userid == userid || tType == 1 || tType == 4
  2785. "
  2786. @click.stop="deleteWorks(w.wid)"
  2787. alt
  2788. />
  2789. </div>
  2790. <div class="comment" style="min-width: 200px">
  2791. <div class="worksName">
  2792. <div>{{ w.sName }}</div>
  2793. </div>
  2794. <div class="commentList">
  2795. <div class="commentList">
  2796. <div
  2797. class="commentImg"
  2798. @click="
  2799. isLikes(w.wid, userid, 1, null, w.isLikes)
  2800. "
  2801. >
  2802. <img
  2803. :src="w.isLikes == true ? likes : noLikes"
  2804. alt=""
  2805. />
  2806. </div>
  2807. <div>{{ w.likesCount }}</div>
  2808. </div>
  2809. <div class="commentList" style="margin-right: 15px">
  2810. <div
  2811. class="commentImg"
  2812. @click="commentOther(w, toolIndex, wIndex)"
  2813. >
  2814. <img
  2815. src="../../assets/icon/comment/comment.png"
  2816. alt=""
  2817. />
  2818. </div>
  2819. <div>{{ w.commentCount }}</div>
  2820. </div>
  2821. </div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2826. 未提交
  2827. </div>
  2828. <div
  2829. class="noWorksS"
  2830. v-if="noWorksS && noWorksS[toolIndex].length"
  2831. >
  2832. <div
  2833. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2834. :key="sIndex"
  2835. class="noWorksName"
  2836. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2837. >
  2838. {{ s.student }}
  2839. </div>
  2840. </div>
  2841. </div>
  2842. <div
  2843. v-if="
  2844. tType &&
  2845. ((tType == 2 && sIsOpen == true) ||
  2846. tType == 1 ||
  2847. tType == 4) &&
  2848. tool.tool.indexOf(32) != -1
  2849. "
  2850. class="worksBox"
  2851. >
  2852. <div
  2853. class="zuoyeYulan"
  2854. v-if="
  2855. worksStudent.length &&
  2856. worksStudent[toolIndex].length > 0
  2857. "
  2858. >
  2859. <div class="worksTop">
  2860. <div>作业预览</div>
  2861. <div
  2862. class="corOpen"
  2863. @click="contract(toolIndex)"
  2864. v-if="
  2865. (isCloseList[toolIndex].isCloseBoolean) &&
  2866. isCloseList[toolIndex].isClose == 0
  2867. "
  2868. >
  2869. 折叠
  2870. </div>
  2871. <div
  2872. class="corOpen"
  2873. @click="contract(toolIndex)"
  2874. v-if="isCloseList[toolIndex].isClose == 1"
  2875. >
  2876. 展开
  2877. </div>
  2878. </div>
  2879. </div>
  2880. <div
  2881. :id="'tool-' + toolIndex"
  2882. class="worksDetailBox"
  2883. :style="{
  2884. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2885. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2886. }"
  2887. v-if="
  2888. worksStudent.length &&
  2889. worksStudent[toolIndex].length > 0
  2890. "
  2891. >
  2892. <div
  2893. class="works"
  2894. style="
  2895. width: 200px;
  2896. height: 140px;
  2897. margin: 10px 10px 10px 0;
  2898. border-radius: 15px;
  2899. box-shadow: 0 0 6px 1px #dfdada;
  2900. "
  2901. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2902. :key="wIndex"
  2903. :class="w.type == 1 ? 'isTypeOne' : ''"
  2904. >
  2905. <div class="workImg">
  2906. <img
  2907. :src="word2"
  2908. @click="downloadFile(w.works)"
  2909. alt
  2910. />
  2911. <div
  2912. class="answerScore"
  2913. v-if="w.score"
  2914. @click.stop="openScore(w)"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. {{ JSON.parse(w.score).wScore }}分
  2924. </div>
  2925. <div
  2926. class="answerScore"
  2927. @click.stop="openScore(w)"
  2928. v-else-if="courseDetail.userid == userid"
  2929. :class="{
  2930. rightW:
  2931. w.userid == userid ||
  2932. tType == 1 ||
  2933. tType == 4 ||
  2934. w.ateacher == userid,
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="comment" style="min-width: 200px">
  2950. <div class="worksName">
  2951. <div>{{ w.sName }}</div>
  2952. </div>
  2953. <div class="commentList">
  2954. <div class="commentList">
  2955. <div
  2956. class="commentImg"
  2957. @click="
  2958. isLikes(w.wid, userid, 1, null, w.isLikes)
  2959. "
  2960. >
  2961. <img
  2962. :src="w.isLikes == true ? likes : noLikes"
  2963. alt=""
  2964. />
  2965. </div>
  2966. <div>{{ w.likesCount }}</div>
  2967. </div>
  2968. <div class="commentList" style="margin-right: 15px">
  2969. <div
  2970. class="commentImg"
  2971. @click="commentOther(w, toolIndex, wIndex)"
  2972. >
  2973. <img
  2974. src="../../assets/icon/comment/comment.png"
  2975. alt=""
  2976. />
  2977. </div>
  2978. <div>{{ w.commentCount }}</div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2985. 未提交
  2986. </div>
  2987. <div
  2988. class="noWorksS"
  2989. v-if="noWorksS && noWorksS[toolIndex].length"
  2990. >
  2991. <div
  2992. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2993. :key="sIndex"
  2994. class="noWorksName"
  2995. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2996. >
  2997. {{ s.student }}
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(57) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. (isCloseList[toolIndex].isCloseBoolean) &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. </div>
  3039. <div
  3040. :id="'tool-' + toolIndex"
  3041. class="worksDetailBox"
  3042. :style="{
  3043. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3044. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3045. }"
  3046. v-if="
  3047. worksStudent.length &&
  3048. worksStudent[toolIndex].length > 0
  3049. "
  3050. >
  3051. <div
  3052. class="works"
  3053. style="
  3054. width: 200px;
  3055. height: 140px;
  3056. margin: 10px 10px 10px 0;
  3057. border-radius: 15px;
  3058. box-shadow: 0 0 6px 1px #dfdada;
  3059. "
  3060. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3061. :key="wIndex"
  3062. :class="w.type == 1 ? 'isTypeOne' : ''"
  3063. >
  3064. <div class="workImg">
  3065. <img
  3066. :src="word2"
  3067. @click="downloadFile(w.works)"
  3068. v-if="w.type == 12"
  3069. alt
  3070. />
  3071. <img
  3072. :src="word2"
  3073. @click="
  3074. openCocoPi(57, toolIndex, w.userid, w.sName)
  3075. "
  3076. v-else-if="w.type == 15"
  3077. alt
  3078. />
  3079. <div
  3080. class="answerScore"
  3081. v-if="w.score"
  3082. @click.stop="openScore(w)"
  3083. :class="{
  3084. rightW:
  3085. w.userid == userid ||
  3086. tType == 1 ||
  3087. tType == 4 ||
  3088. w.ateacher == userid,
  3089. }"
  3090. >
  3091. {{ JSON.parse(w.score).wScore }}分
  3092. </div>
  3093. <div
  3094. class="answerScore"
  3095. @click.stop="openScore(w)"
  3096. v-else-if="courseDetail.userid == userid"
  3097. :class="{
  3098. rightW:
  3099. w.userid == userid ||
  3100. tType == 1 ||
  3101. tType == 4 ||
  3102. w.ateacher == userid,
  3103. }"
  3104. >
  3105. 评分
  3106. </div>
  3107. <img
  3108. class="deleteImg"
  3109. src="../../assets/deleteworks.png"
  3110. v-if="
  3111. w.userid == userid || tType == 1 || tType == 4
  3112. "
  3113. @click.stop="deleteWorks(w.wid)"
  3114. alt
  3115. />
  3116. </div>
  3117. <div class="comment" style="min-width: 200px">
  3118. <div class="worksName">
  3119. <div>{{ w.sName }}</div>
  3120. </div>
  3121. <div class="commentList">
  3122. <div class="commentList">
  3123. <div
  3124. class="commentImg"
  3125. @click="
  3126. isLikes(w.wid, userid, 1, null, w.isLikes)
  3127. "
  3128. >
  3129. <img
  3130. :src="w.isLikes == true ? likes : noLikes"
  3131. alt=""
  3132. />
  3133. </div>
  3134. <div>{{ w.likesCount }}</div>
  3135. </div>
  3136. <div class="commentList" style="margin-right: 15px">
  3137. <div
  3138. class="commentImg"
  3139. @click="commentOther(w, toolIndex, wIndex)"
  3140. >
  3141. <img
  3142. src="../../assets/icon/comment/comment.png"
  3143. alt=""
  3144. />
  3145. </div>
  3146. <div>{{ w.commentCount }}</div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. </div>
  3152. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3153. 未提交
  3154. </div>
  3155. <div
  3156. class="noWorksS"
  3157. v-if="noWorksS && noWorksS[toolIndex].length"
  3158. >
  3159. <div
  3160. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3161. :key="sIndex"
  3162. class="noWorksName"
  3163. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3164. >
  3165. {{ s.student }}
  3166. </div>
  3167. </div>
  3168. </div>
  3169. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3170. <div
  3171. class="zuoyeYulan"
  3172. v-if="
  3173. worksStudent.length &&
  3174. worksStudent[toolIndex].length > 0
  3175. "
  3176. >
  3177. <span class="worksTitle">作业预览</span>
  3178. <div
  3179. class="corOpen"
  3180. @click="contract(toolIndex)"
  3181. v-if="
  3182. (isCloseList[toolIndex].isCloseBoolean) &&
  3183. isCloseList[toolIndex].isClose == 0
  3184. "
  3185. >
  3186. 折叠
  3187. </div>
  3188. <div
  3189. class="corOpen"
  3190. @click="contract(toolIndex)"
  3191. v-if="isCloseList[toolIndex].isClose == 1"
  3192. >
  3193. 展开
  3194. </div>
  3195. </div>
  3196. <div
  3197. :id="'tool-' + toolIndex"
  3198. :style="{
  3199. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3200. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3201. }"
  3202. class="worksDetailBox"
  3203. v-if="
  3204. worksStudent.length &&
  3205. worksStudent[toolIndex].length > 0
  3206. "
  3207. >
  3208. <div
  3209. class="works"
  3210. style="
  3211. width: 200px;
  3212. height: 140px;
  3213. margin: 10px 10px 10px 0;
  3214. border-radius: 15px;
  3215. box-shadow: 0 0 6px 1px #dfdada;
  3216. "
  3217. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3218. :key="wIndex"
  3219. :class="w.type == 1 ? 'isTypeOne' : ''"
  3220. >
  3221. <div class="workImg" v-if="w.type == 0">
  3222. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3223. <img
  3224. :src="w.works"
  3225. @click="previewImg(w.works)"
  3226. alt
  3227. />
  3228. <div
  3229. class="answerScore"
  3230. v-if="w.score"
  3231. @click.stop="openScore(w)"
  3232. :class="{
  3233. rightW:
  3234. w.userid == userid ||
  3235. tType == 1 ||
  3236. tType == 4 ||
  3237. w.ateacher == userid,
  3238. }"
  3239. >
  3240. {{ JSON.parse(w.score).wScore }}分
  3241. </div>
  3242. <div
  3243. class="answerScore"
  3244. @click.stop="openScore(w)"
  3245. v-else-if="courseDetail.userid == userid"
  3246. :class="{
  3247. rightW:
  3248. w.userid == userid ||
  3249. tType == 1 ||
  3250. tType == 4 ||
  3251. w.ateacher == userid,
  3252. }"
  3253. >
  3254. 评分
  3255. </div>
  3256. <img
  3257. class="deleteImg"
  3258. src="../../assets/deleteworks.png"
  3259. v-if="
  3260. w.userid == userid || tType == 1 || tType == 4
  3261. "
  3262. @click.stop="deleteWorks(w.wid)"
  3263. alt
  3264. />
  3265. </div>
  3266. <div
  3267. class="workImg"
  3268. style="cursor: pointer"
  3269. v-if="w.type == 1"
  3270. >
  3271. <img :src="word" @click="openFile(w.works)" alt />
  3272. <!-- @click="openFile(w.works)" -->
  3273. <div
  3274. class="answerScore"
  3275. v-if="w.score"
  3276. @click.stop="openScore(w)"
  3277. :class="{
  3278. rightW:
  3279. w.userid == userid ||
  3280. tType == 1 ||
  3281. tType == 4 ||
  3282. w.ateacher == userid,
  3283. }"
  3284. >
  3285. {{ JSON.parse(w.score).wScore }}分
  3286. </div>
  3287. <div
  3288. class="answerScore"
  3289. @click.stop="openScore(w)"
  3290. v-else-if="courseDetail.userid == userid"
  3291. :class="{
  3292. rightW:
  3293. w.userid == userid ||
  3294. tType == 1 ||
  3295. tType == 4 ||
  3296. w.ateacher == userid,
  3297. }"
  3298. >
  3299. 评分
  3300. </div>
  3301. <img
  3302. class="deleteImg"
  3303. src="../../assets/deleteworks.png"
  3304. v-if="
  3305. w.userid == userid || tType == 1 || tType == 4
  3306. "
  3307. @click.stop="deleteWorks(w.wid)"
  3308. alt
  3309. />
  3310. </div>
  3311. <div class="workImg" v-if="w.type == 3">
  3312. <img
  3313. style="cursor: pointer"
  3314. :src="video"
  3315. @click="openVideo(w)"
  3316. alt
  3317. />
  3318. <!-- @click="openVideo(w.works)" -->
  3319. <div
  3320. class="answerScore"
  3321. v-if="w.score"
  3322. @click.stop="openScore(w)"
  3323. :class="{
  3324. rightW:
  3325. w.userid == userid ||
  3326. tType == 1 ||
  3327. tType == 4 ||
  3328. w.ateacher == userid,
  3329. }"
  3330. >
  3331. {{ JSON.parse(w.score).wScore }}分
  3332. </div>
  3333. <div
  3334. class="answerScore"
  3335. @click.stop="openScore(w)"
  3336. v-else-if="courseDetail.userid == userid"
  3337. :class="{
  3338. rightW:
  3339. w.userid == userid ||
  3340. tType == 1 ||
  3341. tType == 4 ||
  3342. w.ateacher == userid,
  3343. }"
  3344. >
  3345. 评分
  3346. </div>
  3347. <img
  3348. class="deleteImg"
  3349. src="../../assets/deleteworks.png"
  3350. v-if="
  3351. w.userid == userid || tType == 1 || tType == 4
  3352. "
  3353. @click.stop="deleteWorks(w.wid)"
  3354. alt
  3355. />
  3356. </div>
  3357. <div class="comment" style="min-width: 200px">
  3358. <div class="worksName">
  3359. <div
  3360. style="cursor: pointer"
  3361. @click="
  3362. openSname(w.sName, w.wid, toolIndex, w.userid)
  3363. "
  3364. >
  3365. {{ w.sName }}
  3366. </div>
  3367. </div>
  3368. <div class="commentList">
  3369. <div class="commentList">
  3370. <div
  3371. class="commentImg"
  3372. @click="
  3373. isLikes(w.wid, userid, 1, null, w.isLikes)
  3374. "
  3375. >
  3376. <img
  3377. :src="w.isLikes == true ? likes : noLikes"
  3378. alt=""
  3379. />
  3380. </div>
  3381. <div>{{ w.likesCount }}</div>
  3382. </div>
  3383. <div class="commentList" style="margin-right: 15px">
  3384. <div
  3385. class="commentImg"
  3386. @click="commentOther(w, toolIndex, wIndex)"
  3387. >
  3388. <img
  3389. src="../../assets/icon/comment/comment.png"
  3390. alt=""
  3391. />
  3392. </div>
  3393. <div>{{ w.commentCount }}</div>
  3394. </div>
  3395. </div>
  3396. </div>
  3397. </div>
  3398. </div>
  3399. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3400. 未提交
  3401. </div>
  3402. <div
  3403. class="noWorksS"
  3404. v-if="noWorksS && noWorksS[toolIndex].length"
  3405. >
  3406. <div
  3407. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3408. :key="sIndex"
  3409. class="noWorksName"
  3410. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3411. >
  3412. {{ s.student }}
  3413. </div>
  3414. </div>
  3415. </div>
  3416. <div
  3417. v-if="
  3418. tType &&
  3419. ((tType == 2 && sIsOpen == true) ||
  3420. tType == 1 ||
  3421. tType == 4) &&
  3422. tool.tool.indexOf(4) != -1 &&
  3423. (tool.askJson[0].answer ||
  3424. tool.askJson[0].answer === 0) &&
  3425. checkJson[toolIndex].length
  3426. "
  3427. class="xuan_right_box"
  3428. >
  3429. <div
  3430. class="tool_right_box"
  3431. v-for="(item, index) in tool.askJson"
  3432. :key="index"
  3433. >
  3434. <div style="width: calc(100% - 30px);">
  3435. <el-tooltip
  3436. effect="light"
  3437. :content="index + 1 + '、' + item.askstitle"
  3438. placement="top"
  3439. popper-class="text_tooltip"
  3440. >
  3441. <div
  3442. style="
  3443. width: calc(100% - 130px);
  3444. display: block;
  3445. white-space: nowrap;
  3446. overflow: hidden;
  3447. text-overflow: ellipsis;
  3448. word-break: break-word;
  3449. cursor: pointer;
  3450. "
  3451. >
  3452. {{ index + 1 + "、" + item.askstitle }}
  3453. </div>
  3454. </el-tooltip>
  3455. </div>
  3456. <div class="right_box_xuan">
  3457. <span>正确率</span>
  3458. <span>{{
  3459. (checkJson[toolIndex][index].right
  3460. ? checkJson[toolIndex][index].right
  3461. : 0) + "%"
  3462. }}</span>
  3463. </div>
  3464. </div>
  3465. </div>
  3466. <div
  3467. class="xuan_right_box"
  3468. style="background: unset; padding: 0 10px"
  3469. v-if="
  3470. tType &&
  3471. ((tType == 2 && sIsOpen == true) ||
  3472. tType == 1 ||
  3473. tType == 4) &&
  3474. tool.tool.indexOf(4) != -1
  3475. "
  3476. >
  3477. <AskStatic
  3478. v-if="
  3479. worksStudent.length &&
  3480. worksStudent[toolIndex].length > 0
  3481. "
  3482. :askJSON="tool"
  3483. :checkJson="checkJson[toolIndex]"
  3484. ></AskStatic>
  3485. </div>
  3486. <div
  3487. v-if="
  3488. tType &&
  3489. ((tType == 2 && sIsOpen == true) ||
  3490. tType == 1 ||
  3491. tType == 4) &&
  3492. tool.tool.indexOf(4) != -1
  3493. "
  3494. class="worksBox"
  3495. >
  3496. <div
  3497. class="zuoyeYulan"
  3498. v-if="
  3499. worksStudent.length &&
  3500. worksStudent[toolIndex].length > 0
  3501. "
  3502. >
  3503. <div class="worksTop">
  3504. <div>作业预览</div>
  3505. <div
  3506. class="corOpen"
  3507. @click="contract(toolIndex)"
  3508. v-if="
  3509. (isCloseList[toolIndex].isCloseBoolean) &&
  3510. isCloseList[toolIndex].isClose == 0
  3511. "
  3512. >
  3513. 折叠
  3514. </div>
  3515. <div
  3516. class="corOpen"
  3517. @click="contract(toolIndex)"
  3518. v-if="isCloseList[toolIndex].isClose == 1"
  3519. >
  3520. 展开
  3521. </div>
  3522. </div>
  3523. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3524. </div>
  3525. <div>
  3526. <div
  3527. :id="'tool-' + toolIndex"
  3528. :style="{
  3529. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3530. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3531. }"
  3532. class="worksDetailBox"
  3533. v-if="
  3534. worksStudent.length &&
  3535. worksStudent[toolIndex].length > 0
  3536. "
  3537. >
  3538. <div
  3539. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3540. :key="wIndex"
  3541. class="isWorksName2"
  3542. @click="
  3543. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3544. "
  3545. >
  3546. {{ w.sName }}
  3547. <img
  3548. class="deleteImg deleteImg2"
  3549. src="../../assets/deleteworks.png"
  3550. v-if="
  3551. w.userid == userid || tType == 1 || tType == 4
  3552. "
  3553. @click.stop="deleteWorks(w.wid)"
  3554. alt
  3555. />
  3556. </div>
  3557. <!-- <div class="works" style="
  3558. width: 200px;
  3559. height: 140px;
  3560. border-radius: 10px;
  3561. box-shadow: 0 0 6px 1px #dfdada;
  3562. overflow: hidden;
  3563. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3564. <div class="workImg">
  3565. <img src="../../assets/icon/works/noImg.png" @click="
  3566. openTools(
  3567. 4,
  3568. toolIndex,
  3569. taskCount,
  3570. w.works,
  3571. w.sName
  3572. )
  3573. " alt />
  3574. </div>
  3575. <div class="worksName">
  3576. <div>{{ w.sName }}</div>
  3577. <div>{{ w.time }}</div>
  3578. </div>
  3579. </div> -->
  3580. </div>
  3581. </div>
  3582. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3583. 未提交
  3584. </div>
  3585. <div
  3586. class="noWorksS"
  3587. v-if="noWorksS && noWorksS[toolIndex].length"
  3588. >
  3589. <div
  3590. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3591. :key="sIndex"
  3592. class="noWorksName"
  3593. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3594. >
  3595. {{ s.student }}
  3596. </div>
  3597. </div>
  3598. </div>
  3599. <div
  3600. v-if="
  3601. tType &&
  3602. ((tType == 2 && sIsOpen == true) ||
  3603. tType == 1 ||
  3604. tType == 4) &&
  3605. tool.tool.indexOf(45) != -1 &&
  3606. (tool.testJson.testJson[0].answer ||
  3607. tool.testJson.testJson[0].answer === 0) &&
  3608. checkJson[toolIndex].length
  3609. "
  3610. class="xuan_right_box"
  3611. >
  3612. <div
  3613. class="tool_right_box"
  3614. v-for="(item, index) in tool.testJson.testJson"
  3615. :key="index"
  3616. >
  3617. <div class="right_box_xuan" style="margin-right: 10px">
  3618. <span>正确率</span>
  3619. <span>{{
  3620. (checkJson[toolIndex][index].right
  3621. ? checkJson[toolIndex][index].right
  3622. : 0) + "%"
  3623. }}</span>
  3624. </div>
  3625. <div style="width: calc(100% - 30px);">
  3626. <el-tooltip
  3627. effect="light"
  3628. :content="index + 1 + '、' + item.teststitle"
  3629. placement="top"
  3630. popper-class="text_tooltip"
  3631. >
  3632. <div
  3633. style="
  3634. width: calc(100% - 130px);
  3635. display: block;
  3636. white-space: nowrap;
  3637. overflow: hidden;
  3638. text-overflow: ellipsis;
  3639. word-break: break-word;
  3640. cursor: pointer;
  3641. "
  3642. >
  3643. {{ index + 1 + "、" + item.teststitle }}
  3644. </div>
  3645. </el-tooltip>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. <div
  3650. class="xuan_right_box"
  3651. style="background: unset; padding: 0 10px; width: 91.5%"
  3652. v-if="
  3653. tType &&
  3654. ((tType == 2 && sIsOpen == true) ||
  3655. tType == 1 ||
  3656. tType == 4) &&
  3657. tool.tool.indexOf(45) != -1
  3658. "
  3659. >
  3660. <AskStatic2
  3661. v-if="
  3662. worksStudent.length &&
  3663. worksStudent[toolIndex].length > 0
  3664. "
  3665. :askJSON="tool"
  3666. :checkJson="checkJson[toolIndex]"
  3667. ></AskStatic2>
  3668. </div>
  3669. <div
  3670. v-if="
  3671. tType &&
  3672. ((tType == 2 && sIsOpen == true) ||
  3673. tType == 1 ||
  3674. tType == 4) &&
  3675. tool.tool.indexOf(45) != -1
  3676. "
  3677. class="worksBox"
  3678. >
  3679. <div
  3680. class="zuoyeYulan"
  3681. v-if="
  3682. worksStudent.length &&
  3683. worksStudent[toolIndex].length > 0
  3684. "
  3685. >
  3686. <div class="worksTop">
  3687. <div>作业预览</div>
  3688. <div
  3689. class="corOpen"
  3690. @click="contract(toolIndex)"
  3691. v-if="
  3692. (isCloseList[toolIndex].isCloseBoolean) &&
  3693. isCloseList[toolIndex].isClose == 0
  3694. "
  3695. >
  3696. 折叠
  3697. </div>
  3698. <div
  3699. class="corOpen"
  3700. @click="contract(toolIndex)"
  3701. v-if="isCloseList[toolIndex].isClose == 1"
  3702. >
  3703. 展开
  3704. </div>
  3705. </div>
  3706. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3707. </div>
  3708. <div>
  3709. <div
  3710. :id="'tool-' + toolIndex"
  3711. :style="{
  3712. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3713. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3714. }"
  3715. class="worksDetailBox"
  3716. v-if="
  3717. worksStudent.length &&
  3718. worksStudent[toolIndex].length > 0
  3719. "
  3720. >
  3721. <div
  3722. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3723. :key="wIndex"
  3724. class="isWorksName2"
  3725. @click="
  3726. openTools(
  3727. 45,
  3728. toolIndex,
  3729. taskCount,
  3730. w.works,
  3731. w.sName
  3732. )
  3733. "
  3734. >
  3735. {{ w.sName }}
  3736. <img
  3737. class="deleteImg deleteImg2"
  3738. src="../../assets/deleteworks.png"
  3739. v-if="
  3740. w.userid == userid || tType == 1 || tType == 4
  3741. "
  3742. @click.stop="deleteWorks(w.wid)"
  3743. alt
  3744. />
  3745. </div>
  3746. </div>
  3747. </div>
  3748. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3749. 未提交
  3750. </div>
  3751. <div
  3752. class="noWorksS"
  3753. v-if="noWorksS && noWorksS[toolIndex].length"
  3754. >
  3755. <div
  3756. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3757. :key="sIndex"
  3758. class="noWorksName"
  3759. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3760. >
  3761. {{ s.student }}
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div
  3766. v-if="
  3767. tType &&
  3768. ((tType == 2 && sIsOpen == true) ||
  3769. tType == 1 ||
  3770. tType == 4) &&
  3771. tool.tool.indexOf(69) != -1
  3772. "
  3773. class="worksBox"
  3774. >
  3775. <div
  3776. class="zuoyeYulan"
  3777. v-if="
  3778. worksStudent.length &&
  3779. worksStudent[toolIndex].length > 0
  3780. "
  3781. >
  3782. <div class="worksTop">
  3783. <div>作业预览</div>
  3784. <div
  3785. class="corOpen"
  3786. @click="contract(toolIndex)"
  3787. v-if="
  3788. (isCloseList[toolIndex].isCloseBoolean) &&
  3789. isCloseList[toolIndex].isClose == 0
  3790. "
  3791. >
  3792. 折叠
  3793. </div>
  3794. <div
  3795. class="corOpen"
  3796. @click="contract(toolIndex)"
  3797. v-if="isCloseList[toolIndex].isClose == 1"
  3798. >
  3799. 展开
  3800. </div>
  3801. </div>
  3802. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3803. </div>
  3804. <div>
  3805. <div
  3806. :id="'tool-' + toolIndex"
  3807. :style="{
  3808. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3809. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3810. }"
  3811. class="worksDetailBox"
  3812. v-if="
  3813. worksStudent.length &&
  3814. worksStudent[toolIndex].length > 0
  3815. "
  3816. >
  3817. <div
  3818. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3819. :key="wIndex"
  3820. class="isWorksName2"
  3821. style="width: 160px;height: 65px;line-height: 65px;"
  3822. @click="
  3823. openTools(
  3824. 69,
  3825. toolIndex,
  3826. taskCount,
  3827. w.works,
  3828. w.sName,
  3829. w.wid
  3830. )
  3831. "
  3832. >
  3833. {{ w.sName }}
  3834. <img
  3835. class="deleteImg1"
  3836. src="../../assets/evaEnglish.png"
  3837. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3838. alt
  3839. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  3840. />
  3841. <img
  3842. class="deleteImg deleteImg2"
  3843. src="../../assets/deleteworks.png"
  3844. v-if="
  3845. w.userid == userid || tType == 1 || tType == 4
  3846. "
  3847. @click.stop="deleteWorks(w.wid)"
  3848. alt
  3849. />
  3850. </div>
  3851. </div>
  3852. </div>
  3853. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3854. 未提交
  3855. </div>
  3856. <div
  3857. class="noWorksS"
  3858. v-if="noWorksS && noWorksS[toolIndex].length"
  3859. >
  3860. <div
  3861. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3862. :key="sIndex"
  3863. class="noWorksName"
  3864. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3865. >
  3866. {{ s.student }}
  3867. </div>
  3868. </div>
  3869. </div>
  3870. <div
  3871. v-if="
  3872. tType &&
  3873. ((tType == 2 && sIsOpen == true) ||
  3874. tType == 1 ||
  3875. tType == 4) &&
  3876. tool.tool.indexOf(15) != -1
  3877. "
  3878. class="worksBox"
  3879. >
  3880. <div
  3881. class="zuoyeYulan"
  3882. v-if="
  3883. (worksStudent.length &&
  3884. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  3885. "
  3886. >
  3887. <div class="worksTop">
  3888. <div>作业预览</div>
  3889. <div
  3890. class="corOpen"
  3891. @click="contract(toolIndex)"
  3892. v-if="
  3893. (isCloseList[toolIndex].isCloseBoolean) &&
  3894. isCloseList[toolIndex].isClose == 0
  3895. "
  3896. >
  3897. 折叠
  3898. </div>
  3899. <div
  3900. class="corOpen"
  3901. @click="contract(toolIndex)"
  3902. v-if="isCloseList[toolIndex].isClose == 1"
  3903. >
  3904. 展开
  3905. </div>
  3906. </div>
  3907. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3908. </div>
  3909. <div
  3910. class="group_workBox"
  3911. v-for="(g, gindex) in courseGroup.group"
  3912. :key="gindex"
  3913. >
  3914. <div class="group_box">
  3915. <div class="group_title">
  3916. <el-tooltip
  3917. class="item"
  3918. effect="light"
  3919. :content="g.name"
  3920. placement="top"
  3921. >
  3922. <div class="group_name">{{ g.name }}</div>
  3923. </el-tooltip>
  3924. </div>
  3925. <div
  3926. class="group_work"
  3927. v-if="
  3928. g.works &&
  3929. g.works.length &&
  3930. g.works[toolIndex].length
  3931. "
  3932. >
  3933. <div
  3934. class="works"
  3935. v-for="(w, wIndex) in g.works[toolIndex]"
  3936. :key="wIndex"
  3937. >
  3938. <div
  3939. class="workImg"
  3940. style="
  3941. border-radius: 15px;
  3942. box-shadow: 0px 0px 5px 5px #eee;
  3943. "
  3944. >
  3945. <div
  3946. class="answerBg"
  3947. style="border-radius: 15px 15px 0 0"
  3948. @click="
  3949. commentOther(w, toolIndex, wIndex, null, g.id)
  3950. "
  3951. >
  3952. <div class="answerContent">
  3953. {{ JSON.parse(w.works)[0].answer }}
  3954. </div>
  3955. <div
  3956. class="answerScore"
  3957. v-if="w.score"
  3958. @click.stop="openScore(w)"
  3959. :class="{
  3960. rightW:
  3961. w.userid == userid ||
  3962. tType == 1 ||
  3963. tType == 4,
  3964. }"
  3965. >
  3966. {{ JSON.parse(w.score).wScore }}分
  3967. </div>
  3968. <div
  3969. class="answerScore"
  3970. @click.stop="openScore(w)"
  3971. v-else-if="courseDetail.userid == userid"
  3972. :class="{
  3973. rightW:
  3974. w.userid == userid ||
  3975. tType == 1 ||
  3976. tType == 4,
  3977. }"
  3978. >
  3979. 评分
  3980. </div>
  3981. <img
  3982. class="deleteImg"
  3983. src="../../assets/deleteworks.png"
  3984. v-if="
  3985. w.userid == userid ||
  3986. tType == 1 ||
  3987. tType == 4
  3988. "
  3989. @click.stop="deleteWorks(w.wid)"
  3990. alt
  3991. />
  3992. </div>
  3993. <div class="comment">
  3994. <div class="worksName">
  3995. <div>{{ w.sName }}</div>
  3996. </div>
  3997. <div class="commentList">
  3998. <div
  3999. class="commentImg"
  4000. @click="
  4001. isLikes(w.wid, userid, 1, null, w.isLikes)
  4002. "
  4003. >
  4004. <img
  4005. :src="w.isLikes == true ? likes : noLikes"
  4006. alt=""
  4007. />
  4008. </div>
  4009. <div>{{ w.likesCount }}</div>
  4010. </div>
  4011. <div
  4012. class="commentList"
  4013. style="margin-right: 15px"
  4014. >
  4015. <div
  4016. class="commentImg"
  4017. @click="
  4018. commentOther(
  4019. w,
  4020. toolIndex,
  4021. wIndex,
  4022. null,
  4023. g.id
  4024. )
  4025. "
  4026. >
  4027. <img
  4028. src="../../assets/icon/comment/comment.png"
  4029. alt=""
  4030. />
  4031. </div>
  4032. <div>{{ w.commentCount }}</div>
  4033. </div>
  4034. </div>
  4035. </div>
  4036. </div>
  4037. </div>
  4038. <div class="group_work" v-else>暂无提交作业</div>
  4039. </div>
  4040. </div>
  4041. <div
  4042. :id="'tool-' + toolIndex"
  4043. :style="{
  4044. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4045. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4046. }"
  4047. class="worksDetailBox"
  4048. v-if="
  4049. worksStudent.length &&
  4050. worksStudent[toolIndex].length > 0
  4051. "
  4052. >
  4053. <div
  4054. class="works"
  4055. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4056. :key="wIndex"
  4057. >
  4058. <div
  4059. class="workImg"
  4060. style="
  4061. border-radius: 15px;
  4062. box-shadow: 0px 0px 5px 5px #eee;
  4063. "
  4064. >
  4065. <!-- <img
  4066. src="../../assets/icon/works/noImg.png"
  4067. @click="openTools(15, toolIndex, taskCount, w.works)"
  4068. alt=""
  4069. />-->
  4070. <div
  4071. class="answerBg"
  4072. style="border-radius: 15px 15px 0 0"
  4073. @click="commentOther(w, toolIndex, wIndex)"
  4074. >
  4075. <!-- <div>{{ w.sName }}</div> -->
  4076. <div class="answerContent">
  4077. {{ JSON.parse(w.works)[0].answer }}
  4078. </div>
  4079. <div
  4080. class="answerScore"
  4081. v-if="w.score"
  4082. @click.stop="openScore(w)"
  4083. :class="{
  4084. rightW:
  4085. w.userid == userid ||
  4086. tType == 1 ||
  4087. tType == 4,
  4088. }"
  4089. >
  4090. {{ JSON.parse(w.score).wScore }}分
  4091. </div>
  4092. <div
  4093. class="answerScore"
  4094. @click.stop="openScore(w)"
  4095. v-else-if="courseDetail.userid == userid"
  4096. :class="{
  4097. rightW:
  4098. w.userid == userid ||
  4099. tType == 1 ||
  4100. tType == 4,
  4101. }"
  4102. >
  4103. 评分
  4104. </div>
  4105. <img
  4106. class="deleteImg"
  4107. src="../../assets/deleteworks.png"
  4108. v-if="
  4109. w.userid == userid || tType == 1 || tType == 4
  4110. "
  4111. @click.stop="deleteWorks(w.wid)"
  4112. alt
  4113. />
  4114. </div>
  4115. <div class="comment">
  4116. <div class="worksName">
  4117. <div>{{ w.sName }}</div>
  4118. </div>
  4119. <div class="commentList">
  4120. <div
  4121. class="commentImg"
  4122. @click="
  4123. isLikes(w.wid, userid, 1, null, w.isLikes)
  4124. "
  4125. >
  4126. <img
  4127. :src="w.isLikes == true ? likes : noLikes"
  4128. alt=""
  4129. />
  4130. </div>
  4131. <div>{{ w.likesCount }}</div>
  4132. </div>
  4133. <div class="commentList" style="margin-right: 15px">
  4134. <div
  4135. class="commentImg"
  4136. @click="commentOther(w, toolIndex, wIndex)"
  4137. >
  4138. <img
  4139. src="../../assets/icon/comment/comment.png"
  4140. alt=""
  4141. />
  4142. </div>
  4143. <div>{{ w.commentCount }}</div>
  4144. </div>
  4145. </div>
  4146. </div>
  4147. </div>
  4148. </div>
  4149. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4150. 未提交
  4151. </div>
  4152. <div
  4153. class="noWorksS"
  4154. v-if="noWorksS && noWorksS[toolIndex].length"
  4155. >
  4156. <div
  4157. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4158. :key="sIndex"
  4159. class="noWorksName"
  4160. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4161. >
  4162. {{ s.student }}
  4163. </div>
  4164. </div>
  4165. </div>
  4166. <div
  4167. v-if="
  4168. tType &&
  4169. ((tType == 2 && sIsOpen == true) ||
  4170. tType == 1 ||
  4171. tType == 4) &&
  4172. tool.tool.indexOf(1) != -1
  4173. "
  4174. class="worksBox"
  4175. >
  4176. <div
  4177. class="zuoyeYulan"
  4178. v-if="
  4179. (worksStudent.length &&
  4180. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4181. "
  4182. >
  4183. <div class="worksTop">
  4184. <div>作业预览</div>
  4185. <div
  4186. class="corOpen"
  4187. @click="contract(toolIndex)"
  4188. v-if="
  4189. (isCloseList[toolIndex].isCloseBoolean) &&
  4190. isCloseList[toolIndex].isClose == 0
  4191. "
  4192. >
  4193. 折叠
  4194. </div>
  4195. <div
  4196. class="corOpen"
  4197. @click="contract(toolIndex)"
  4198. v-if="isCloseList[toolIndex].isClose == 1"
  4199. >
  4200. 展开
  4201. </div>
  4202. </div>
  4203. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4204. </div>
  4205. <div
  4206. class="group_workBox"
  4207. v-for="(g, gindex) in courseGroup.group"
  4208. :key="gindex"
  4209. >
  4210. <div class="group_box">
  4211. <div class="group_title">
  4212. <el-tooltip
  4213. class="item"
  4214. effect="light"
  4215. :content="g.name"
  4216. placement="top"
  4217. >
  4218. <div class="group_name">{{ g.name }}</div>
  4219. </el-tooltip>
  4220. </div>
  4221. <div
  4222. class="group_work"
  4223. v-if="
  4224. g.works &&
  4225. g.works.length &&
  4226. g.works[toolIndex].length
  4227. "
  4228. >
  4229. <div
  4230. class="works"
  4231. style="
  4232. width: 200px;
  4233. height: 140px;
  4234. margin: 10px 10px 10px 0;
  4235. border-radius: 15px;
  4236. box-shadow: 0 0 6px 1px #dfdada;
  4237. "
  4238. v-for="(w, wIndex) in g.works[toolIndex]"
  4239. :key="wIndex"
  4240. :class="w.type == 1 ? 'isTypeOne' : ''"
  4241. >
  4242. <div class="workImg">
  4243. <img
  4244. :src="w.works"
  4245. @click="previewImg(w.works)"
  4246. alt
  4247. />
  4248. <div
  4249. class="answerScore"
  4250. v-if="w.score"
  4251. @click.stop="openScore(w)"
  4252. :class="{
  4253. rightW:
  4254. w.userid == userid ||
  4255. tType == 1 ||
  4256. tType == 4,
  4257. }"
  4258. >
  4259. {{ JSON.parse(w.score).wScore }}分
  4260. </div>
  4261. <div
  4262. class="answerScore"
  4263. @click.stop="openScore(w)"
  4264. v-else-if="courseDetail.userid == userid"
  4265. :class="{
  4266. rightW:
  4267. w.userid == userid ||
  4268. tType == 1 ||
  4269. tType == 4,
  4270. }"
  4271. >
  4272. 评分
  4273. </div>
  4274. <img
  4275. class="deleteImg"
  4276. src="../../assets/deleteworks.png"
  4277. v-if="
  4278. w.userid == userid || tType == 1 || tType == 4
  4279. "
  4280. @click.stop="deleteWorks(w.wid)"
  4281. alt
  4282. />
  4283. </div>
  4284. <div class="comment" style="min-width: 200px">
  4285. <div class="worksName">
  4286. <div>{{ w.sName }}</div>
  4287. </div>
  4288. <div class="commentList">
  4289. <div class="commentList">
  4290. <div
  4291. class="commentImg"
  4292. @click="
  4293. isLikes(w.wid, userid, 1, null, w.isLikes)
  4294. "
  4295. >
  4296. <img
  4297. :src="w.isLikes == true ? likes : noLikes"
  4298. alt=""
  4299. />
  4300. </div>
  4301. <div>{{ w.likesCount }}</div>
  4302. </div>
  4303. <div
  4304. class="commentList"
  4305. style="margin-right: 15px"
  4306. >
  4307. <div
  4308. class="commentImg"
  4309. @click="
  4310. commentOther(
  4311. w,
  4312. toolIndex,
  4313. wIndex,
  4314. null,
  4315. g.id
  4316. )
  4317. "
  4318. >
  4319. <img
  4320. src="../../assets/icon/comment/comment.png"
  4321. alt=""
  4322. />
  4323. </div>
  4324. <div>{{ w.commentCount }}</div>
  4325. </div>
  4326. </div>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. <div class="group_work" v-else>暂无提交作业</div>
  4331. </div>
  4332. </div>
  4333. <div
  4334. :id="'tool-' + toolIndex"
  4335. :style="{
  4336. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4337. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4338. }"
  4339. class="worksDetailBox"
  4340. v-if="
  4341. worksStudent.length &&
  4342. worksStudent[toolIndex].length > 0
  4343. "
  4344. >
  4345. <div
  4346. class="works"
  4347. style="
  4348. width: 200px;
  4349. height: 140px;
  4350. margin: 10px 10px 10px 0;
  4351. border-radius: 15px;
  4352. box-shadow: 0 0 6px 1px #dfdada;
  4353. "
  4354. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4355. :key="wIndex"
  4356. >
  4357. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4358. <div class="workImg">
  4359. <img
  4360. :src="w.works"
  4361. @click="previewImg(w.works)"
  4362. alt
  4363. />
  4364. <div
  4365. class="answerScore"
  4366. v-if="w.score"
  4367. @click.stop="openScore(w)"
  4368. :class="{
  4369. rightW:
  4370. w.userid == userid || tType == 1 || tType == 4,
  4371. }"
  4372. >
  4373. {{ JSON.parse(w.score).wScore }}分
  4374. </div>
  4375. <div
  4376. class="answerScore"
  4377. @click.stop="openScore(w)"
  4378. v-else-if="courseDetail.userid == userid"
  4379. :class="{
  4380. rightW:
  4381. w.userid == userid || tType == 1 || tType == 4,
  4382. }"
  4383. >
  4384. 评分
  4385. </div>
  4386. <img
  4387. class="deleteImg"
  4388. src="../../assets/deleteworks.png"
  4389. v-if="
  4390. w.userid == userid || tType == 1 || tType == 4
  4391. "
  4392. @click.stop="deleteWorks(w.wid)"
  4393. alt
  4394. />
  4395. </div>
  4396. <div class="comment" style="min-width: 200px">
  4397. <div class="worksName">
  4398. <div>{{ w.sName }}</div>
  4399. </div>
  4400. <div class="commentList">
  4401. <div class="commentList">
  4402. <div
  4403. class="commentImg"
  4404. @click="
  4405. isLikes(w.wid, userid, 1, null, w.isLikes)
  4406. "
  4407. >
  4408. <img
  4409. :src="w.isLikes == true ? likes : noLikes"
  4410. alt=""
  4411. />
  4412. </div>
  4413. <div>{{ w.likesCount }}</div>
  4414. </div>
  4415. <div class="commentList" style="margin-right: 15px">
  4416. <div
  4417. class="commentImg"
  4418. @click="commentOther(w, toolIndex, wIndex)"
  4419. >
  4420. <img
  4421. src="../../assets/icon/comment/comment.png"
  4422. alt=""
  4423. />
  4424. </div>
  4425. <div>{{ w.commentCount }}</div>
  4426. </div>
  4427. </div>
  4428. </div>
  4429. </div>
  4430. </div>
  4431. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4432. 未提交
  4433. </div>
  4434. <div
  4435. class="noWorksS"
  4436. v-if="noWorksS && noWorksS[toolIndex].length"
  4437. >
  4438. <div
  4439. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4440. :key="sIndex"
  4441. class="noWorksName"
  4442. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4443. >
  4444. {{ s.student }}
  4445. </div>
  4446. </div>
  4447. </div>
  4448. <div
  4449. v-if="
  4450. tType &&
  4451. ((tType == 2 && sIsOpen == true) ||
  4452. tType == 1 ||
  4453. tType == 4) &&
  4454. tool.tool.indexOf(3) != -1
  4455. "
  4456. class="worksBox"
  4457. >
  4458. <div
  4459. class="zuoyeYulan"
  4460. v-if="
  4461. (worksStudent.length &&
  4462. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4463. "
  4464. >
  4465. <div class="worksTop">
  4466. <div>作业预览</div>
  4467. <div
  4468. class="corOpen"
  4469. @click="contract(toolIndex)"
  4470. v-if="
  4471. (isCloseList[toolIndex].isCloseBoolean) &&
  4472. isCloseList[toolIndex].isClose == 0
  4473. "
  4474. >
  4475. 折叠
  4476. </div>
  4477. <div
  4478. class="corOpen"
  4479. @click="contract(toolIndex)"
  4480. v-if="isCloseList[toolIndex].isClose == 1"
  4481. >
  4482. 展开
  4483. </div>
  4484. </div>
  4485. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4486. </div>
  4487. <div
  4488. class="group_workBox"
  4489. v-for="(g, gindex) in courseGroup.group"
  4490. :key="gindex"
  4491. >
  4492. <div class="group_box">
  4493. <div class="group_title">
  4494. <el-tooltip
  4495. class="item"
  4496. effect="light"
  4497. :content="g.name"
  4498. placement="top"
  4499. >
  4500. <div class="group_name">{{ g.name }}</div>
  4501. </el-tooltip>
  4502. </div>
  4503. <div
  4504. class="group_work"
  4505. v-if="
  4506. g.works &&
  4507. g.works.length &&
  4508. g.works[toolIndex].length
  4509. "
  4510. >
  4511. <div
  4512. class="works"
  4513. style="
  4514. width: 200px;
  4515. height: 140px;
  4516. margin: 10px 10px 10px 0;
  4517. border-radius: 15px;
  4518. box-shadow: 0 0 6px 1px #dfdada;
  4519. "
  4520. v-for="(w, wIndex) in g.works[toolIndex]"
  4521. :key="wIndex"
  4522. :class="w.type == 1 ? 'isTypeOne' : ''"
  4523. >
  4524. <div class="workImg">
  4525. <img
  4526. :src="w.works"
  4527. @click="previewImg(w.works)"
  4528. alt
  4529. />
  4530. <div
  4531. class="answerScore"
  4532. v-if="w.score"
  4533. @click.stop="openScore(w)"
  4534. :class="{
  4535. rightW:
  4536. w.userid == userid ||
  4537. tType == 1 ||
  4538. tType == 4,
  4539. }"
  4540. >
  4541. {{ JSON.parse(w.score).wScore }}分
  4542. </div>
  4543. <div
  4544. class="answerScore"
  4545. @click.stop="openScore(w)"
  4546. v-else-if="courseDetail.userid == userid"
  4547. :class="{
  4548. rightW:
  4549. w.userid == userid ||
  4550. tType == 1 ||
  4551. tType == 4,
  4552. }"
  4553. >
  4554. 评分
  4555. </div>
  4556. <img
  4557. class="deleteImg"
  4558. src="../../assets/deleteworks.png"
  4559. v-if="
  4560. w.userid == userid || tType == 1 || tType == 4
  4561. "
  4562. @click.stop="deleteWorks(w.wid)"
  4563. alt
  4564. />
  4565. </div>
  4566. <div class="comment" style="min-width: 200px">
  4567. <div class="worksName">
  4568. <div>{{ w.sName }}</div>
  4569. </div>
  4570. <div class="commentList">
  4571. <div class="commentList">
  4572. <div
  4573. class="commentImg"
  4574. @click="
  4575. isLikes(w.wid, userid, 1, null, w.isLikes)
  4576. "
  4577. >
  4578. <img
  4579. :src="w.isLikes == true ? likes : noLikes"
  4580. alt=""
  4581. />
  4582. </div>
  4583. <div>{{ w.likesCount }}</div>
  4584. </div>
  4585. <div
  4586. class="commentList"
  4587. style="margin-right: 15px"
  4588. >
  4589. <div
  4590. class="commentImg"
  4591. @click="
  4592. commentOther(
  4593. w,
  4594. toolIndex,
  4595. wIndex,
  4596. null,
  4597. g.id
  4598. )
  4599. "
  4600. >
  4601. <img
  4602. src="../../assets/icon/comment/comment.png"
  4603. alt=""
  4604. />
  4605. </div>
  4606. <div>{{ w.commentCount }}</div>
  4607. </div>
  4608. </div>
  4609. </div>
  4610. </div>
  4611. </div>
  4612. <div class="group_work" v-else>暂无提交作业</div>
  4613. </div>
  4614. </div>
  4615. <div
  4616. :id="'tool-' + toolIndex"
  4617. :style="{
  4618. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4619. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4620. }"
  4621. class="worksDetailBox"
  4622. v-if="
  4623. worksStudent.length &&
  4624. worksStudent[toolIndex].length > 0
  4625. "
  4626. >
  4627. <div
  4628. class="works"
  4629. style="
  4630. width: 200px;
  4631. height: 140px;
  4632. margin: 10px 10px 10px 0;
  4633. border-radius: 15px;
  4634. box-shadow: 0 0 6px 1px #dfdada;
  4635. "
  4636. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4637. :key="wIndex"
  4638. >
  4639. <!-- @click="previewImg(w.works)" -->
  4640. <div class="workImg">
  4641. <img
  4642. :src="w.works"
  4643. @click="previewImg(w.works)"
  4644. alt
  4645. />
  4646. <div
  4647. class="answerScore"
  4648. v-if="w.score"
  4649. @click.stop="openScore(w)"
  4650. :class="{
  4651. rightW:
  4652. w.userid == userid || tType == 1 || tType == 4,
  4653. }"
  4654. >
  4655. {{ JSON.parse(w.score).wScore }}分
  4656. </div>
  4657. <div
  4658. class="answerScore"
  4659. @click.stop="openScore(w)"
  4660. v-else-if="courseDetail.userid == userid"
  4661. :class="{
  4662. rightW:
  4663. w.userid == userid || tType == 1 || tType == 4,
  4664. }"
  4665. >
  4666. 评分
  4667. </div>
  4668. <img
  4669. class="deleteImg"
  4670. src="../../assets/deleteworks.png"
  4671. v-if="
  4672. w.userid == userid || tType == 1 || tType == 4
  4673. "
  4674. @click.stop="deleteWorks(w.wid)"
  4675. alt
  4676. />
  4677. </div>
  4678. <div class="comment" style="min-width: 200px">
  4679. <div class="worksName">
  4680. <div>{{ w.sName }}</div>
  4681. </div>
  4682. <div class="commentList">
  4683. <div class="commentList">
  4684. <div
  4685. class="commentImg"
  4686. @click="
  4687. isLikes(w.wid, userid, 1, null, w.isLikes)
  4688. "
  4689. >
  4690. <img
  4691. :src="w.isLikes == true ? likes : noLikes"
  4692. alt=""
  4693. />
  4694. </div>
  4695. <div>{{ w.likesCount }}</div>
  4696. </div>
  4697. <div class="commentList" style="margin-right: 15px">
  4698. <div
  4699. class="commentImg"
  4700. @click="commentOther(w, toolIndex, wIndex)"
  4701. >
  4702. <img
  4703. src="../../assets/icon/comment/comment.png"
  4704. alt=""
  4705. />
  4706. </div>
  4707. <div>{{ w.commentCount }}</div>
  4708. </div>
  4709. </div>
  4710. </div>
  4711. </div>
  4712. </div>
  4713. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4714. 未提交
  4715. </div>
  4716. <div
  4717. class="noWorksS"
  4718. v-if="noWorksS && noWorksS[toolIndex].length"
  4719. >
  4720. <div
  4721. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4722. :key="sIndex"
  4723. class="noWorksName"
  4724. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4725. >
  4726. {{ s.student }}
  4727. </div>
  4728. </div>
  4729. </div>
  4730. <div
  4731. v-if="
  4732. tType &&
  4733. ((tType == 2 && sIsOpen == true) ||
  4734. tType == 1 ||
  4735. tType == 4) &&
  4736. tool.tool.indexOf(6) != -1
  4737. "
  4738. class="worksBox"
  4739. >
  4740. <div
  4741. class="zuoyeYulan"
  4742. v-if="
  4743. (worksStudent.length &&
  4744. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4745. "
  4746. >
  4747. <div class="worksTop">
  4748. <div>作业预览</div>
  4749. <div
  4750. class="corOpen"
  4751. @click="contract(toolIndex)"
  4752. v-if="
  4753. (isCloseList[toolIndex].isCloseBoolean) &&
  4754. isCloseList[toolIndex].isClose == 0
  4755. "
  4756. >
  4757. 折叠
  4758. </div>
  4759. <div
  4760. class="corOpen"
  4761. @click="contract(toolIndex)"
  4762. v-if="isCloseList[toolIndex].isClose == 1"
  4763. >
  4764. 展开
  4765. </div>
  4766. </div>
  4767. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4768. </div>
  4769. <div
  4770. class="group_workBox"
  4771. v-for="(g, gindex) in courseGroup.group"
  4772. :key="gindex"
  4773. >
  4774. <div class="group_box">
  4775. <div class="group_title">
  4776. <el-tooltip
  4777. class="item"
  4778. effect="light"
  4779. :content="g.name"
  4780. placement="top"
  4781. >
  4782. <div class="group_name">{{ g.name }}</div>
  4783. </el-tooltip>
  4784. </div>
  4785. <div
  4786. class="group_work"
  4787. v-if="
  4788. g.works &&
  4789. g.works.length &&
  4790. g.works[toolIndex].length
  4791. "
  4792. >
  4793. <div
  4794. class="works"
  4795. style="
  4796. width: 200px;
  4797. height: 140px;
  4798. margin: 10px 10px 10px 0;
  4799. border-radius: 15px;
  4800. box-shadow: 0 0 6px 1px #dfdada;
  4801. "
  4802. v-for="(w, wIndex) in g.works[toolIndex]"
  4803. :key="wIndex"
  4804. :class="w.type == 1 ? 'isTypeOne' : ''"
  4805. >
  4806. <div class="workImg">
  4807. <img
  4808. :src="w.works"
  4809. @click="previewImg(w.works)"
  4810. alt
  4811. />
  4812. <div
  4813. class="answerScore"
  4814. v-if="w.score"
  4815. @click.stop="openScore(w)"
  4816. :class="{
  4817. rightW:
  4818. w.userid == userid ||
  4819. tType == 1 ||
  4820. tType == 4,
  4821. }"
  4822. >
  4823. {{ JSON.parse(w.score).wScore }}分
  4824. </div>
  4825. <div
  4826. class="answerScore"
  4827. @click.stop="openScore(w)"
  4828. v-else-if="courseDetail.userid == userid"
  4829. :class="{
  4830. rightW:
  4831. w.userid == userid ||
  4832. tType == 1 ||
  4833. tType == 4,
  4834. }"
  4835. >
  4836. 评分
  4837. </div>
  4838. <img
  4839. class="deleteImg"
  4840. src="../../assets/deleteworks.png"
  4841. v-if="
  4842. w.userid == userid || tType == 1 || tType == 4
  4843. "
  4844. @click.stop="deleteWorks(w.wid)"
  4845. alt
  4846. />
  4847. </div>
  4848. <div class="comment" style="min-width: 200px">
  4849. <div class="worksName">
  4850. <div>{{ w.sName }}</div>
  4851. </div>
  4852. <div class="commentList">
  4853. <div class="commentList">
  4854. <div
  4855. class="commentImg"
  4856. @click="
  4857. isLikes(w.wid, userid, 1, null, w.isLikes)
  4858. "
  4859. >
  4860. <img
  4861. :src="w.isLikes == true ? likes : noLikes"
  4862. alt=""
  4863. />
  4864. </div>
  4865. <div>{{ w.likesCount }}</div>
  4866. </div>
  4867. <div
  4868. class="commentList"
  4869. style="margin-right: 15px"
  4870. >
  4871. <div
  4872. class="commentImg"
  4873. @click="
  4874. commentOther(
  4875. w,
  4876. toolIndex,
  4877. wIndex,
  4878. null,
  4879. g.id
  4880. )
  4881. "
  4882. >
  4883. <img
  4884. src="../../assets/icon/comment/comment.png"
  4885. alt=""
  4886. />
  4887. </div>
  4888. <div>{{ w.commentCount }}</div>
  4889. </div>
  4890. </div>
  4891. </div>
  4892. </div>
  4893. </div>
  4894. <div class="group_work" v-else>暂无提交作业</div>
  4895. </div>
  4896. </div>
  4897. <div
  4898. :id="'tool-' + toolIndex"
  4899. :style="{
  4900. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4901. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4902. }"
  4903. class="worksDetailBox"
  4904. v-if="
  4905. worksStudent.length &&
  4906. worksStudent[toolIndex].length > 0
  4907. "
  4908. >
  4909. <div
  4910. class="works"
  4911. style="
  4912. width: 200px;
  4913. height: 140px;
  4914. margin: 10px 10px 10px 0;
  4915. border-radius: 15px;
  4916. box-shadow: 0 0 6px 1px #dfdada;
  4917. "
  4918. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4919. :key="wIndex"
  4920. >
  4921. <!-- @click="previewImg(w.works)" -->
  4922. <div class="workImg">
  4923. <img
  4924. :src="w.works"
  4925. @click="previewImg(w.works)"
  4926. alt
  4927. />
  4928. <div
  4929. class="answerScore"
  4930. v-if="w.score"
  4931. @click.stop="openScore(w)"
  4932. :class="{
  4933. rightW:
  4934. w.userid == userid || tType == 1 || tType == 4,
  4935. }"
  4936. >
  4937. {{ JSON.parse(w.score).wScore }}分
  4938. </div>
  4939. <div
  4940. class="answerScore"
  4941. @click.stop="openScore(w)"
  4942. v-else-if="courseDetail.userid == userid"
  4943. :class="{
  4944. rightW:
  4945. w.userid == userid || tType == 1 || tType == 4,
  4946. }"
  4947. >
  4948. 评分
  4949. </div>
  4950. <img
  4951. class="deleteImg"
  4952. src="../../assets/deleteworks.png"
  4953. v-if="
  4954. w.userid == userid || tType == 1 || tType == 4
  4955. "
  4956. @click.stop="deleteWorks(w.wid)"
  4957. alt
  4958. />
  4959. </div>
  4960. <div class="comment" style="min-width: 200px">
  4961. <div class="worksName">
  4962. <div>{{ w.sName }}</div>
  4963. </div>
  4964. <div class="commentList">
  4965. <div class="commentList">
  4966. <div
  4967. class="commentImg"
  4968. @click="
  4969. isLikes(w.wid, userid, 1, null, w.isLikes)
  4970. "
  4971. >
  4972. <img
  4973. :src="w.isLikes == true ? likes : noLikes"
  4974. alt=""
  4975. />
  4976. </div>
  4977. <div>{{ w.likesCount }}</div>
  4978. </div>
  4979. <div class="commentList" style="margin-right: 15px">
  4980. <div
  4981. class="commentImg"
  4982. @click="commentOther(w, toolIndex, wIndex)"
  4983. >
  4984. <img
  4985. src="../../assets/icon/comment/comment.png"
  4986. alt=""
  4987. />
  4988. </div>
  4989. <div>{{ w.commentCount }}</div>
  4990. </div>
  4991. </div>
  4992. </div>
  4993. </div>
  4994. </div>
  4995. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4996. 未提交
  4997. </div>
  4998. <div
  4999. class="noWorksS"
  5000. v-if="noWorksS && noWorksS[toolIndex].length"
  5001. >
  5002. <div
  5003. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5004. :key="sIndex"
  5005. class="noWorksName"
  5006. >
  5007. {{ s.student }}
  5008. </div>
  5009. </div>
  5010. </div>
  5011. <div
  5012. v-if="
  5013. tType &&
  5014. ((tType == 2 && sIsOpen == true) ||
  5015. tType == 1 ||
  5016. tType == 4) &&
  5017. tool.tool.indexOf(7) != -1
  5018. "
  5019. class="worksBox"
  5020. >
  5021. <div
  5022. class="zuoyeYulan"
  5023. v-if="
  5024. (worksStudent.length &&
  5025. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5026. "
  5027. >
  5028. <div class="worksTop">
  5029. <div>作业预览</div>
  5030. <div
  5031. class="corOpen"
  5032. @click="contract(toolIndex)"
  5033. v-if="
  5034. (isCloseList[toolIndex].isCloseBoolean) &&
  5035. isCloseList[toolIndex].isClose == 0
  5036. "
  5037. >
  5038. 折叠
  5039. </div>
  5040. <div
  5041. class="corOpen"
  5042. @click="contract(toolIndex)"
  5043. v-if="isCloseList[toolIndex].isClose == 1"
  5044. >
  5045. 展开
  5046. </div>
  5047. </div>
  5048. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5049. </div>
  5050. <div
  5051. class="group_workBox"
  5052. v-for="(g, gindex) in courseGroup.group"
  5053. :key="gindex"
  5054. >
  5055. <div class="group_box">
  5056. <div class="group_title">
  5057. <el-tooltip
  5058. class="item"
  5059. effect="light"
  5060. :content="g.name"
  5061. placement="top"
  5062. >
  5063. <div class="group_name">{{ g.name }}</div>
  5064. </el-tooltip>
  5065. </div>
  5066. <div
  5067. class="group_work"
  5068. v-if="
  5069. g.works &&
  5070. g.works.length &&
  5071. g.works[toolIndex].length
  5072. "
  5073. >
  5074. <div
  5075. class="works"
  5076. style="
  5077. width: 200px;
  5078. height: 140px;
  5079. margin: 10px 10px 10px 0;
  5080. border-radius: 15px;
  5081. box-shadow: 0 0 6px 1px #dfdada;
  5082. "
  5083. v-for="(w, wIndex) in g.works[toolIndex]"
  5084. :key="wIndex"
  5085. :class="w.type == 1 ? 'isTypeOne' : ''"
  5086. >
  5087. <div class="workImg">
  5088. <img
  5089. :src="w.works"
  5090. @click="previewImg(w.works)"
  5091. alt
  5092. />
  5093. <div
  5094. class="answerScore"
  5095. v-if="w.score"
  5096. @click.stop="openScore(w)"
  5097. :class="{
  5098. rightW:
  5099. w.userid == userid ||
  5100. tType == 1 ||
  5101. tType == 4,
  5102. }"
  5103. >
  5104. {{ JSON.parse(w.score).wScore }}分
  5105. </div>
  5106. <div
  5107. class="answerScore"
  5108. @click.stop="openScore(w)"
  5109. v-else-if="courseDetail.userid == userid"
  5110. :class="{
  5111. rightW:
  5112. w.userid == userid ||
  5113. tType == 1 ||
  5114. tType == 4,
  5115. }"
  5116. >
  5117. 评分
  5118. </div>
  5119. <img
  5120. class="deleteImg"
  5121. src="../../assets/deleteworks.png"
  5122. v-if="
  5123. w.userid == userid || tType == 1 || tType == 4
  5124. "
  5125. @click.stop="deleteWorks(w.wid)"
  5126. alt
  5127. />
  5128. </div>
  5129. <div class="comment" style="min-width: 200px">
  5130. <div class="worksName">
  5131. <div>{{ w.sName }}</div>
  5132. </div>
  5133. <div class="commentList">
  5134. <div class="commentList">
  5135. <div
  5136. class="commentImg"
  5137. @click="
  5138. isLikes(w.wid, userid, 1, null, w.isLikes)
  5139. "
  5140. >
  5141. <img
  5142. :src="w.isLikes == true ? likes : noLikes"
  5143. alt=""
  5144. />
  5145. </div>
  5146. <div>{{ w.likesCount }}</div>
  5147. </div>
  5148. <div
  5149. class="commentList"
  5150. style="margin-right: 15px"
  5151. >
  5152. <div
  5153. class="commentImg"
  5154. @click="
  5155. commentOther(
  5156. w,
  5157. toolIndex,
  5158. wIndex,
  5159. null,
  5160. g.id
  5161. )
  5162. "
  5163. >
  5164. <img
  5165. src="../../assets/icon/comment/comment.png"
  5166. alt=""
  5167. />
  5168. </div>
  5169. <div>{{ w.commentCount }}</div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. </div>
  5175. <div class="group_work" v-else>暂无提交作业</div>
  5176. </div>
  5177. </div>
  5178. <div
  5179. :id="'tool-' + toolIndex"
  5180. :style="{
  5181. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5182. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5183. }"
  5184. class="worksDetailBox"
  5185. v-if="
  5186. worksStudent.length &&
  5187. worksStudent[toolIndex].length > 0
  5188. "
  5189. >
  5190. <div
  5191. class="works"
  5192. style="
  5193. width: 200px;
  5194. height: 140px;
  5195. margin: 10px 10px 10px 0;
  5196. border-radius: 15px;
  5197. box-shadow: 0 0 6px 1px #dfdada;
  5198. "
  5199. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5200. :key="wIndex"
  5201. >
  5202. <!-- @click="previewImg(w.works)" -->
  5203. <div class="workImg">
  5204. <img
  5205. :src="w.works"
  5206. @click="previewImg(w.works)"
  5207. alt
  5208. />
  5209. <div
  5210. class="answerScore"
  5211. v-if="w.score"
  5212. @click.stop="openScore(w)"
  5213. :class="{
  5214. rightW:
  5215. w.userid == userid || tType == 1 || tType == 4,
  5216. }"
  5217. >
  5218. {{ JSON.parse(w.score).wScore }}分
  5219. </div>
  5220. <div
  5221. class="answerScore"
  5222. @click.stop="openScore(w)"
  5223. v-else-if="courseDetail.userid == userid"
  5224. :class="{
  5225. rightW:
  5226. w.userid == userid || tType == 1 || tType == 4,
  5227. }"
  5228. >
  5229. 评分
  5230. </div>
  5231. <img
  5232. class="deleteImg"
  5233. src="../../assets/deleteworks.png"
  5234. v-if="
  5235. w.userid == userid || tType == 1 || tType == 4
  5236. "
  5237. @click.stop="deleteWorks(w.wid)"
  5238. alt
  5239. />
  5240. </div>
  5241. <div class="comment" style="min-width: 200px">
  5242. <div class="worksName">
  5243. <div>{{ w.sName }}</div>
  5244. </div>
  5245. <div class="commentList">
  5246. <div class="commentList">
  5247. <div
  5248. class="commentImg"
  5249. @click="
  5250. isLikes(w.wid, userid, 1, null, w.isLikes)
  5251. "
  5252. >
  5253. <img
  5254. :src="w.isLikes == true ? likes : noLikes"
  5255. alt=""
  5256. />
  5257. </div>
  5258. <div>{{ w.likesCount }}</div>
  5259. </div>
  5260. <div class="commentList" style="margin-right: 15px">
  5261. <div
  5262. class="commentImg"
  5263. @click="commentOther(w, toolIndex, wIndex)"
  5264. >
  5265. <img
  5266. src="../../assets/icon/comment/comment.png"
  5267. alt=""
  5268. />
  5269. </div>
  5270. <div>{{ w.commentCount }}</div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. </div>
  5275. </div>
  5276. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5277. 未提交
  5278. </div>
  5279. <div
  5280. class="noWorksS"
  5281. v-if="noWorksS && noWorksS[toolIndex].length"
  5282. >
  5283. <div
  5284. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5285. :key="sIndex"
  5286. class="noWorksName"
  5287. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5288. >
  5289. {{ s.student }}
  5290. </div>
  5291. </div>
  5292. </div>
  5293. <div
  5294. v-if="
  5295. tType &&
  5296. ((tType == 2 && sIsOpen == true) ||
  5297. tType == 1 ||
  5298. tType == 4) &&
  5299. tool.tool.indexOf(26) != -1
  5300. "
  5301. class="worksBox"
  5302. >
  5303. <div
  5304. class="zuoyeYulan"
  5305. v-if="
  5306. worksStudent.length &&
  5307. worksStudent[toolIndex].length > 0
  5308. "
  5309. >
  5310. <div class="worksTop">
  5311. <div>作业预览</div>
  5312. <div
  5313. class="corOpen"
  5314. @click="contract(toolIndex)"
  5315. v-if="
  5316. (isCloseList[toolIndex].isCloseBoolean) &&
  5317. isCloseList[toolIndex].isClose == 0
  5318. "
  5319. >
  5320. 折叠
  5321. </div>
  5322. <div
  5323. class="corOpen"
  5324. @click="contract(toolIndex)"
  5325. v-if="isCloseList[toolIndex].isClose == 1"
  5326. >
  5327. 展开
  5328. </div>
  5329. </div>
  5330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5331. </div>
  5332. <div
  5333. :id="'tool-' + toolIndex"
  5334. :style="{
  5335. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5336. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5337. }"
  5338. class="worksDetailBox"
  5339. v-if="
  5340. worksStudent.length &&
  5341. worksStudent[toolIndex].length > 0
  5342. "
  5343. >
  5344. <div
  5345. class="works"
  5346. style="width: 240px; height: 140px; overflow: hidden"
  5347. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5348. :key="wIndex"
  5349. :class="w.type == 1 ? 'isTypeOne' : ''"
  5350. >
  5351. <div class="workImg" v-if="w.type == 0">
  5352. <img
  5353. :src="w.works"
  5354. @click="previewImg(w.works)"
  5355. alt
  5356. />
  5357. <img
  5358. class="deleteImg"
  5359. src="../../assets/deleteworks.png"
  5360. v-if="
  5361. w.userid == userid || tType == 1 || tType == 4
  5362. "
  5363. @click.stop="deleteWorks(w.wid)"
  5364. alt
  5365. />
  5366. </div>
  5367. <div class="workImg" v-if="w.type == 1">
  5368. <img :src="word" @click="openFile(w.works)" alt />
  5369. <img
  5370. class="deleteImg"
  5371. src="../../assets/deleteworks.png"
  5372. v-if="
  5373. w.userid == userid || tType == 1 || tType == 4
  5374. "
  5375. @click.stop="deleteWorks(w.wid)"
  5376. alt
  5377. />
  5378. </div>
  5379. <div class="worksName">
  5380. <div>{{ w.sName }}</div>
  5381. </div>
  5382. </div>
  5383. </div>
  5384. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5385. 未提交
  5386. </div>
  5387. <div
  5388. class="noWorksS"
  5389. v-if="noWorksS && noWorksS[toolIndex].length"
  5390. >
  5391. <div
  5392. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5393. :key="sIndex"
  5394. class="noWorksName"
  5395. >
  5396. {{ s.student }}
  5397. </div>
  5398. </div>
  5399. </div>
  5400. <div
  5401. v-if="
  5402. tType &&
  5403. ((tType == 2 && sIsOpen == true) ||
  5404. tType == 1 ||
  5405. tType == 4) &&
  5406. tool.tool.indexOf(40) != -1
  5407. "
  5408. class="worksBox"
  5409. >
  5410. <div
  5411. class="zuoyeYulan"
  5412. v-if="
  5413. worksStudent.length &&
  5414. worksStudent[toolIndex].length > 0
  5415. "
  5416. >
  5417. <div class="worksTop">
  5418. <div>作业预览</div>
  5419. <div
  5420. class="corOpen"
  5421. @click="contract(toolIndex)"
  5422. v-if="
  5423. (isCloseList[toolIndex].isCloseBoolean) &&
  5424. isCloseList[toolIndex].isClose == 0
  5425. "
  5426. >
  5427. 折叠
  5428. </div>
  5429. <div
  5430. class="corOpen"
  5431. @click="contract(toolIndex)"
  5432. v-if="isCloseList[toolIndex].isClose == 1"
  5433. >
  5434. 展开
  5435. </div>
  5436. </div>
  5437. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5438. </div>
  5439. <div
  5440. :id="'tool-' + toolIndex"
  5441. :style="{
  5442. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5443. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5444. }"
  5445. class="worksDetailBox"
  5446. v-if="
  5447. worksStudent.length &&
  5448. worksStudent[toolIndex].length > 0
  5449. "
  5450. >
  5451. <div
  5452. class="works"
  5453. style="
  5454. width: 200px;
  5455. height: 140px;
  5456. margin: 10px 10px 10px 0;
  5457. border-radius: 15px;
  5458. box-shadow: 0 0 6px 1px #dfdada;
  5459. "
  5460. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5461. :key="wIndex"
  5462. :class="w.type == 1 ? 'isTypeOne' : ''"
  5463. >
  5464. <div class="workImg">
  5465. <img
  5466. src="../../assets/icon/works/noImg.png"
  5467. @click="openPj(w.works, toolIndex)"
  5468. alt
  5469. />
  5470. <img
  5471. class="deleteImg"
  5472. src="../../assets/deleteworks.png"
  5473. v-if="
  5474. w.userid == userid || tType == 1 || tType == 4
  5475. "
  5476. @click.stop="deleteWorks(w.wid)"
  5477. alt
  5478. />
  5479. </div>
  5480. <div class="comment" style="min-width: 200px">
  5481. <div class="worksName">
  5482. <div>{{ w.sName }}</div>
  5483. </div>
  5484. <div class="commentList">
  5485. <div class="commentList">
  5486. <div
  5487. class="commentImg"
  5488. @click="
  5489. isLikes(w.wid, userid, 1, null, w.isLikes)
  5490. "
  5491. >
  5492. <img
  5493. :src="w.isLikes == true ? likes : noLikes"
  5494. alt=""
  5495. />
  5496. </div>
  5497. <div>{{ w.likesCount }}</div>
  5498. </div>
  5499. <div class="commentList" style="margin-right: 15px">
  5500. <div
  5501. class="commentImg"
  5502. @click="commentOther(w, toolIndex, wIndex)"
  5503. >
  5504. <img
  5505. src="../../assets/icon/comment/comment.png"
  5506. alt=""
  5507. />
  5508. </div>
  5509. <div>{{ w.commentCount }}</div>
  5510. </div>
  5511. </div>
  5512. </div>
  5513. </div>
  5514. </div>
  5515. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5516. 未提交
  5517. </div>
  5518. <div
  5519. class="noWorksS"
  5520. v-if="noWorksS && noWorksS[toolIndex].length"
  5521. >
  5522. <div
  5523. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5524. :key="sIndex"
  5525. class="noWorksName"
  5526. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5527. >
  5528. {{ s.student }}
  5529. </div>
  5530. </div>
  5531. </div>
  5532. <div
  5533. v-if="
  5534. tType &&
  5535. tType == 2 &&
  5536. !sIsOpen &&
  5537. tool.tool.indexOf(40) != -1
  5538. "
  5539. class="worksBox"
  5540. >
  5541. <div
  5542. class="zuoyeYulan"
  5543. v-if="workStudent[toolIndex].length > 0"
  5544. >
  5545. <span class="worksTitle">作业预览</span>
  5546. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5547. </div>
  5548. <div
  5549. class="worksDetailBox"
  5550. v-if="workStudent[toolIndex].length > 0"
  5551. >
  5552. <div
  5553. class="works"
  5554. style="
  5555. width: 200px;
  5556. height: 140px;
  5557. margin: 10px 10px 10px 0;
  5558. "
  5559. v-for="(w, wIndex) in workStudent[toolIndex]"
  5560. :key="wIndex"
  5561. >
  5562. <div class="workImg">
  5563. <img
  5564. src="../../assets/icon/works/noImg.png"
  5565. @click="openPj(w.works, toolIndex)"
  5566. alt
  5567. />
  5568. <img
  5569. class="deleteImg"
  5570. src="../../assets/deleteworks.png"
  5571. v-if="
  5572. w.userid == userid || tType == 1 || tType == 4
  5573. "
  5574. @click.stop="deleteWorks(w.wid)"
  5575. alt
  5576. />
  5577. </div>
  5578. <div class="worksName">
  5579. <div>{{ w.sName }}</div>
  5580. </div>
  5581. </div>
  5582. </div>
  5583. </div>
  5584. <div
  5585. v-if="
  5586. tType &&
  5587. ((tType == 2 && sIsOpen == true) ||
  5588. tType == 1 ||
  5589. tType == 4) &&
  5590. tool.tool.indexOf(41) != -1
  5591. "
  5592. >
  5593. <AnswerData2
  5594. v-if="
  5595. worksStudent.length &&
  5596. worksStudent[toolIndex].length > 0
  5597. "
  5598. :problemJson="tool.selectJson.answer"
  5599. :people="worksStudent[toolIndex]"
  5600. ></AnswerData2>
  5601. </div>
  5602. <div
  5603. v-if="
  5604. tType &&
  5605. ((tType == 2 && sIsOpen == true) ||
  5606. tType == 1 ||
  5607. tType == 4) &&
  5608. tool.tool.indexOf(41) != -1
  5609. "
  5610. class="worksBox"
  5611. >
  5612. <div
  5613. class="zuoyeYulan"
  5614. v-if="
  5615. worksStudent.length &&
  5616. worksStudent[toolIndex].length > 0
  5617. "
  5618. >
  5619. <div class="worksTop">
  5620. <div>作业预览</div>
  5621. <div
  5622. class="corOpen"
  5623. @click="contract(toolIndex)"
  5624. v-if="
  5625. (isCloseList[toolIndex].isCloseBoolean) &&
  5626. isCloseList[toolIndex].isClose == 0
  5627. "
  5628. >
  5629. 折叠
  5630. </div>
  5631. <div
  5632. class="corOpen"
  5633. @click="contract(toolIndex)"
  5634. v-if="isCloseList[toolIndex].isClose == 1"
  5635. >
  5636. 展开
  5637. </div>
  5638. </div>
  5639. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5640. </div>
  5641. <div
  5642. :id="'tool-' + toolIndex"
  5643. :style="{
  5644. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5645. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5646. }"
  5647. class="worksDetailBox"
  5648. v-if="
  5649. worksStudent.length &&
  5650. worksStudent[toolIndex].length > 0
  5651. "
  5652. >
  5653. <div
  5654. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5655. :key="wIndex"
  5656. class="isWorksName2"
  5657. @click="openXz(w, toolIndex)"
  5658. >
  5659. {{ w.sName }}
  5660. <img
  5661. class="deleteImg deleteImg2"
  5662. src="../../assets/deleteworks.png"
  5663. v-if="w.userid == userid || tType == 1 || tType == 4"
  5664. @click.stop="deleteWorks(w.wid)"
  5665. alt
  5666. />
  5667. </div>
  5668. <!-- <div
  5669. class="works"
  5670. style="
  5671. width: 200px;
  5672. height: 140px;
  5673. margin: 10px 10px 10px 0;
  5674. border-radius: 15px;
  5675. box-shadow: 0 0 6px 1px #dfdada;
  5676. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5677. :class="w.type == 5 ? 'isTypeOne' : ''">
  5678. <div class="workImg">
  5679. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5680. </div>
  5681. <div class="worksName">
  5682. <div>{{ w.sName }}</div>
  5683. </div>
  5684. </div> -->
  5685. </div>
  5686. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5687. 未提交
  5688. </div>
  5689. <div
  5690. class="noWorksS"
  5691. v-if="noWorksS && noWorksS[toolIndex].length"
  5692. >
  5693. <div
  5694. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5695. :key="sIndex"
  5696. class="noWorksName"
  5697. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5698. >
  5699. {{ s.student }}
  5700. </div>
  5701. </div>
  5702. </div>
  5703. <div
  5704. v-if="
  5705. tType &&
  5706. tType == 2 &&
  5707. !sIsOpen &&
  5708. tool.tool.indexOf(41) != -1
  5709. "
  5710. class="worksBox"
  5711. >
  5712. <div
  5713. class="zuoyeYulan"
  5714. v-if="workStudent[toolIndex].length > 0"
  5715. >
  5716. <span class="worksTitle">作业预览</span>
  5717. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5718. </div>
  5719. <div
  5720. class="worksDetailBox"
  5721. v-if="workStudent[toolIndex].length > 0"
  5722. >
  5723. <div
  5724. class="works"
  5725. style="
  5726. width: 200px;
  5727. height: 140px;
  5728. margin: 10px 10px 10px 0;
  5729. "
  5730. v-for="(w, wIndex) in workStudent[toolIndex]"
  5731. :key="wIndex"
  5732. >
  5733. <div class="workImg">
  5734. <img
  5735. src="../../assets/icon/works/noImg.png"
  5736. @click="openXz(w, toolIndex)"
  5737. alt
  5738. />
  5739. <img
  5740. class="deleteImg"
  5741. src="../../assets/deleteworks.png"
  5742. v-if="
  5743. w.userid == userid || tType == 1 || tType == 4
  5744. "
  5745. @click.stop="deleteWorks(w.wid)"
  5746. alt
  5747. />
  5748. </div>
  5749. <div class="worksName">
  5750. <div>{{ w.sName }}</div>
  5751. </div>
  5752. </div>
  5753. </div>
  5754. </div>
  5755. <div v-if="false" class="xuan_right_box">
  5756. <div
  5757. class="tool_right_box"
  5758. v-for="(item, index) in tool.sentenceList"
  5759. :key="index"
  5760. >
  5761. <div>
  5762. <span
  5763. style="word-break: break-all; white-space: normal"
  5764. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5765. >
  5766. </div>
  5767. <div class="right_box_xuan">
  5768. <span>正确率</span>
  5769. <span>{{
  5770. (checkJson[toolIndex][index].right
  5771. ? checkJson[toolIndex][index].right
  5772. : 0) + "%"
  5773. }}</span>
  5774. </div>
  5775. <div class="right_box_xuan">
  5776. <span>答对人数</span>
  5777. <span>{{
  5778. checkJson[toolIndex][index].rightPerson.length
  5779. }}</span>
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <div
  5784. v-if="
  5785. tType &&
  5786. ((tType == 2 && sIsOpen == true) ||
  5787. tType == 1 ||
  5788. tType == 4) &&
  5789. tool.tool.indexOf(47) != -1
  5790. "
  5791. >
  5792. <AnswerData
  5793. v-if="
  5794. checkJson[toolIndex].length &&
  5795. (tool.sentenceList || tool.sentenceList.length > 0)
  5796. "
  5797. :people="checkJson[toolIndex]"
  5798. ></AnswerData>
  5799. </div>
  5800. <div
  5801. v-if="
  5802. tType &&
  5803. tType == 2 &&
  5804. !sIsOpen &&
  5805. tool.tool.indexOf(47) != -1
  5806. "
  5807. class="worksBox"
  5808. >
  5809. <div
  5810. class="zuoyeYulan"
  5811. v-if="workStudent[toolIndex].length > 0"
  5812. >
  5813. <span class="worksTitle">作业预览</span>
  5814. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5815. </div>
  5816. <div
  5817. class="worksDetailBox"
  5818. v-if="workStudent[toolIndex].length > 0"
  5819. >
  5820. <div
  5821. class="works"
  5822. style="
  5823. width: 200px;
  5824. height: 140px;
  5825. margin: 10px 10px 10px 0;
  5826. "
  5827. v-for="(w, wIndex) in workStudent[toolIndex]"
  5828. :key="wIndex"
  5829. >
  5830. <!-- @click="openXz(w, toolIndex)" -->
  5831. <div class="workImg" @click="openSen(w, toolIndex)">
  5832. <img src="../../assets/icon/works/noImg.png" alt />
  5833. <img
  5834. class="deleteImg"
  5835. src="../../assets/deleteworks.png"
  5836. v-if="
  5837. w.userid == userid || tType == 1 || tType == 4
  5838. "
  5839. @click.stop="deleteWorks(w.wid)"
  5840. alt
  5841. />
  5842. </div>
  5843. <div class="worksName">
  5844. <div>
  5845. {{ w.sName }}
  5846. </div>
  5847. </div>
  5848. </div>
  5849. </div>
  5850. </div>
  5851. <div
  5852. v-if="
  5853. tType &&
  5854. ((tType == 2 && sIsOpen == true) ||
  5855. tType == 1 ||
  5856. tType == 4) &&
  5857. tool.tool.indexOf(47) != -1
  5858. "
  5859. class="worksBox"
  5860. >
  5861. <div
  5862. class="zuoyeYulan"
  5863. v-if="
  5864. worksStudent.length &&
  5865. worksStudent[toolIndex].length > 0
  5866. "
  5867. >
  5868. <div class="worksTop">
  5869. <div>作业预览</div>
  5870. <div
  5871. class="corOpen"
  5872. @click="contract(toolIndex)"
  5873. v-if="
  5874. (isCloseList[toolIndex].isCloseBoolean) &&
  5875. isCloseList[toolIndex].isClose == 0
  5876. "
  5877. >
  5878. 折叠
  5879. </div>
  5880. <div
  5881. class="corOpen"
  5882. @click="contract(toolIndex)"
  5883. v-if="isCloseList[toolIndex].isClose == 1"
  5884. >
  5885. 展开
  5886. </div>
  5887. </div>
  5888. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5889. </div>
  5890. <div
  5891. :id="'tool-' + toolIndex"
  5892. :style="{
  5893. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5894. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5895. }"
  5896. class="worksDetailBox"
  5897. v-if="
  5898. worksStudent.length &&
  5899. worksStudent[toolIndex].length > 0
  5900. "
  5901. >
  5902. <!-- @click="openXz(w, toolIndex)" -->
  5903. <div
  5904. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5905. :key="wIndex"
  5906. class="isWorksName2"
  5907. @click="openSen(w, toolIndex)"
  5908. >
  5909. {{ w.sName }}
  5910. <img
  5911. class="deleteImg deleteImg2"
  5912. src="../../assets/deleteworks.png"
  5913. v-if="w.userid == userid || tType == 1 || tType == 4"
  5914. @click.stop="deleteWorks(w.wid)"
  5915. alt
  5916. />
  5917. </div>
  5918. </div>
  5919. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5920. 未提交
  5921. </div>
  5922. <div
  5923. class="noWorksS"
  5924. v-if="noWorksS && noWorksS[toolIndex].length"
  5925. >
  5926. <div
  5927. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5928. :key="sIndex"
  5929. class="noWorksName"
  5930. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5931. >
  5932. {{ s.student }}
  5933. </div>
  5934. </div>
  5935. </div>
  5936. <div
  5937. v-if="
  5938. tType &&
  5939. ((tType == 2 && sIsOpen == true) ||
  5940. tType == 1 ||
  5941. tType == 4) &&
  5942. tool.tool.indexOf(48) != -1
  5943. "
  5944. class="worksBox"
  5945. >
  5946. <div
  5947. class="zuoyeYulan"
  5948. v-if="
  5949. worksStudent.length &&
  5950. worksStudent[toolIndex].length > 0
  5951. "
  5952. >
  5953. <div class="worksTop">
  5954. <div>作业预览</div>
  5955. <div
  5956. class="corOpen"
  5957. @click="contract(toolIndex)"
  5958. v-if="
  5959. (isCloseList[toolIndex].isCloseBoolean) &&
  5960. isCloseList[toolIndex].isClose == 0
  5961. "
  5962. >
  5963. 折叠
  5964. </div>
  5965. <div
  5966. class="corOpen"
  5967. @click="contract(toolIndex)"
  5968. v-if="isCloseList[toolIndex].isClose == 1"
  5969. >
  5970. 展开
  5971. </div>
  5972. </div>
  5973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5974. </div>
  5975. <div
  5976. :id="'tool-' + toolIndex"
  5977. :style="{
  5978. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5979. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5980. }"
  5981. class="worksDetailBox"
  5982. v-if="
  5983. worksStudent.length &&
  5984. worksStudent[toolIndex].length > 0
  5985. "
  5986. >
  5987. <div
  5988. class="works"
  5989. style="
  5990. width: 200px;
  5991. height: 140px;
  5992. margin: 10px 10px 10px 0;
  5993. border-radius: 15px;
  5994. box-shadow: 0 0 6px 1px #dfdada;
  5995. "
  5996. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5997. :key="wIndex"
  5998. :class="w.type == 1 ? 'isTypeOne' : ''"
  5999. >
  6000. <div class="workImg">
  6001. <img :src="word" @click="openTable(w)" alt />
  6002. <!-- @click="openFile(w.works)" -->
  6003. <div
  6004. class="answerScore"
  6005. v-if="w.score"
  6006. @click.stop="openScore(w)"
  6007. :class="{
  6008. rightW:
  6009. w.userid == userid ||
  6010. tType == 1 ||
  6011. tType == 4 ||
  6012. w.ateacher == userid,
  6013. }"
  6014. >
  6015. {{ JSON.parse(w.score).wScore }}分
  6016. </div>
  6017. <div
  6018. class="answerScore"
  6019. @click.stop="openScore(w)"
  6020. v-else-if="courseDetail.userid == userid"
  6021. :class="{
  6022. rightW:
  6023. w.userid == userid ||
  6024. tType == 1 ||
  6025. tType == 4 ||
  6026. w.ateacher == userid,
  6027. }"
  6028. >
  6029. 评分
  6030. </div>
  6031. <img
  6032. class="deleteImg"
  6033. src="../../assets/deleteworks.png"
  6034. v-if="
  6035. w.userid == userid || tType == 1 || tType == 4
  6036. "
  6037. @click.stop="deleteWorks(w.wid)"
  6038. alt
  6039. />
  6040. </div>
  6041. <div class="comment" style="min-width: 200px">
  6042. <div class="worksName">
  6043. <div>{{ w.sName }}</div>
  6044. </div>
  6045. <div class="commentList">
  6046. <div class="commentList">
  6047. <div
  6048. class="commentImg"
  6049. @click="
  6050. isLikes(w.wid, userid, 1, null, w.isLikes)
  6051. "
  6052. >
  6053. <img
  6054. :src="w.isLikes == true ? likes : noLikes"
  6055. alt=""
  6056. />
  6057. </div>
  6058. <div>{{ w.likesCount }}</div>
  6059. </div>
  6060. <div class="commentList" style="margin-right: 15px">
  6061. <div
  6062. class="commentImg"
  6063. @click="commentOther(w, toolIndex, wIndex)"
  6064. >
  6065. <img
  6066. src="../../assets/icon/comment/comment.png"
  6067. alt=""
  6068. />
  6069. </div>
  6070. <div>{{ w.commentCount }}</div>
  6071. </div>
  6072. </div>
  6073. </div>
  6074. </div>
  6075. </div>
  6076. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6077. 未提交
  6078. </div>
  6079. <div
  6080. class="noWorksS"
  6081. v-if="noWorksS && noWorksS[toolIndex].length"
  6082. >
  6083. <div
  6084. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6085. :key="sIndex"
  6086. class="noWorksName"
  6087. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6088. >
  6089. {{ s.student }}
  6090. </div>
  6091. </div>
  6092. </div>
  6093. <div
  6094. v-if="
  6095. tType &&
  6096. tType == 2 &&
  6097. !sIsOpen &&
  6098. tool.tool.indexOf(48) != -1
  6099. "
  6100. class="worksBox"
  6101. >
  6102. <div
  6103. class="zuoyeYulan"
  6104. v-if="workStudent[toolIndex].length > 0"
  6105. >
  6106. <span class="worksTitle">作业预览</span>
  6107. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6108. </div>
  6109. <div
  6110. class="worksDetailBox"
  6111. v-if="workStudent[toolIndex].length > 0"
  6112. >
  6113. <div
  6114. class="works"
  6115. style="
  6116. width: 200px;
  6117. height: 140px;
  6118. margin: 10px 10px 10px 0;
  6119. box-shadow: 0 0 6px 1px #dfdada;
  6120. "
  6121. v-for="(w, wIndex) in workStudent[toolIndex]"
  6122. :key="wIndex"
  6123. >
  6124. <div class="workImg">
  6125. <img :src="word" @click="openTable(w)" alt />
  6126. <div
  6127. class="answerScore"
  6128. v-if="w.score"
  6129. @click.stop="openScore(w)"
  6130. :class="{
  6131. rightW:
  6132. w.userid == userid || tType == 1 || tType == 4,
  6133. }"
  6134. >
  6135. {{ JSON.parse(w.score).wScore }}分
  6136. </div>
  6137. <div
  6138. class="answerScore"
  6139. @click.stop="openScore(w)"
  6140. v-else-if="courseDetail.userid == userid"
  6141. :class="{
  6142. rightW:
  6143. w.userid == userid || tType == 1 || tType == 4,
  6144. }"
  6145. >
  6146. 评分
  6147. </div>
  6148. <img
  6149. class="deleteImg"
  6150. src="../../assets/deleteworks.png"
  6151. v-if="
  6152. w.userid == userid || tType == 1 || tType == 4
  6153. "
  6154. @click.stop="deleteWorks(w.wid)"
  6155. alt
  6156. />
  6157. </div>
  6158. <div class="worksName">
  6159. <div>{{ w.sName }}</div>
  6160. </div>
  6161. </div>
  6162. </div>
  6163. </div>
  6164. <div
  6165. v-if="
  6166. tType &&
  6167. ((tType == 2 && sIsOpen == true) ||
  6168. tType == 1 ||
  6169. tType == 4) &&
  6170. tool.tool.indexOf(52) != -1
  6171. "
  6172. class="worksBox"
  6173. >
  6174. <div
  6175. class="zuoyeYulan"
  6176. v-if="
  6177. worksStudent.length &&
  6178. worksStudent[toolIndex].length > 0
  6179. "
  6180. >
  6181. <div class="worksTop">
  6182. <div>作业预览</div>
  6183. <div
  6184. class="corOpen"
  6185. @click="contract(toolIndex)"
  6186. v-if="
  6187. (isCloseList[toolIndex].isCloseBoolean) &&
  6188. isCloseList[toolIndex].isClose == 0
  6189. "
  6190. >
  6191. 折叠
  6192. </div>
  6193. <div
  6194. class="corOpen"
  6195. @click="contract(toolIndex)"
  6196. v-if="isCloseList[toolIndex].isClose == 1"
  6197. >
  6198. 展开
  6199. </div>
  6200. </div>
  6201. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6202. </div>
  6203. <div
  6204. :id="'tool-' + toolIndex"
  6205. :style="{
  6206. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6207. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6208. }"
  6209. class="worksDetailBox"
  6210. v-if="
  6211. worksStudent.length &&
  6212. worksStudent[toolIndex].length > 0
  6213. "
  6214. >
  6215. <div
  6216. class="works"
  6217. style="
  6218. width: 200px;
  6219. height: 140px;
  6220. margin: 10px 10px 10px 0;
  6221. border-radius: 15px;
  6222. box-shadow: 0 0 6px 1px #dfdada;
  6223. "
  6224. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6225. :key="wIndex"
  6226. :class="w.type == 1 ? 'isTypeOne' : ''"
  6227. >
  6228. <div class="workImg">
  6229. <img :src="word" @click="openWord(w)" alt />
  6230. <!-- @click="openFile(w.works)" -->
  6231. <div
  6232. class="answerScore"
  6233. v-if="w.score"
  6234. @click.stop="openScore(w)"
  6235. :class="{
  6236. rightW:
  6237. w.userid == userid ||
  6238. tType == 1 ||
  6239. tType == 4 ||
  6240. w.ateacher == userid,
  6241. }"
  6242. >
  6243. {{ JSON.parse(w.score).wScore }}分
  6244. </div>
  6245. <div
  6246. class="answerScore"
  6247. @click.stop="openScore(w)"
  6248. v-else-if="courseDetail.userid == userid"
  6249. :class="{
  6250. rightW:
  6251. w.userid == userid ||
  6252. tType == 1 ||
  6253. tType == 4 ||
  6254. w.ateacher == userid,
  6255. }"
  6256. >
  6257. 评分
  6258. </div>
  6259. <img
  6260. class="deleteImg"
  6261. src="../../assets/deleteworks.png"
  6262. v-if="
  6263. w.userid == userid || tType == 1 || tType == 4
  6264. "
  6265. @click.stop="deleteWorks(w.wid)"
  6266. alt
  6267. />
  6268. </div>
  6269. <div class="comment" style="min-width: 200px">
  6270. <div class="worksName">
  6271. <div>{{ w.sName }}</div>
  6272. </div>
  6273. <div class="commentList">
  6274. <div class="commentList">
  6275. <div
  6276. class="commentImg"
  6277. @click="
  6278. isLikes(w.wid, userid, 1, null, w.isLikes)
  6279. "
  6280. >
  6281. <img
  6282. :src="w.isLikes == true ? likes : noLikes"
  6283. alt=""
  6284. />
  6285. </div>
  6286. <div>{{ w.likesCount }}</div>
  6287. </div>
  6288. <div class="commentList" style="margin-right: 15px">
  6289. <div
  6290. class="commentImg"
  6291. @click="commentOther(w, toolIndex, wIndex)"
  6292. >
  6293. <img
  6294. src="../../assets/icon/comment/comment.png"
  6295. alt=""
  6296. />
  6297. </div>
  6298. <div>{{ w.commentCount }}</div>
  6299. </div>
  6300. </div>
  6301. </div>
  6302. </div>
  6303. </div>
  6304. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6305. 未提交
  6306. </div>
  6307. <div
  6308. class="noWorksS"
  6309. v-if="noWorksS && noWorksS[toolIndex].length"
  6310. >
  6311. <div
  6312. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6313. :key="sIndex"
  6314. class="noWorksName"
  6315. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6316. >
  6317. {{ s.student }}
  6318. </div>
  6319. </div>
  6320. </div>
  6321. <div
  6322. v-if="
  6323. tType &&
  6324. tType == 2 &&
  6325. !sIsOpen &&
  6326. tool.tool.indexOf(52) != -1
  6327. "
  6328. class="worksBox"
  6329. >
  6330. <div
  6331. class="zuoyeYulan"
  6332. v-if="workStudent[toolIndex].length > 0"
  6333. >
  6334. <span class="worksTitle">作业预览</span>
  6335. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6336. </div>
  6337. <div
  6338. class="worksDetailBox"
  6339. v-if="workStudent[toolIndex].length > 0"
  6340. >
  6341. <div
  6342. class="works"
  6343. style="
  6344. width: 200px;
  6345. height: 140px;
  6346. margin: 10px 10px 10px 0;
  6347. box-shadow: 0 0 6px 1px #dfdada;
  6348. "
  6349. v-for="(w, wIndex) in workStudent[toolIndex]"
  6350. :key="wIndex"
  6351. >
  6352. <div class="workImg">
  6353. <img :src="word" @click="openWord(w)" alt />
  6354. <div
  6355. class="answerScore"
  6356. v-if="w.score"
  6357. @click.stop="openScore(w)"
  6358. :class="{
  6359. rightW:
  6360. w.userid == userid || tType == 1 || tType == 4,
  6361. }"
  6362. >
  6363. {{ JSON.parse(w.score).wScore }}分
  6364. </div>
  6365. <div
  6366. class="answerScore"
  6367. @click.stop="openScore(w)"
  6368. v-else-if="courseDetail.userid == userid"
  6369. :class="{
  6370. rightW:
  6371. w.userid == userid || tType == 1 || tType == 4,
  6372. }"
  6373. >
  6374. 评分
  6375. </div>
  6376. <img
  6377. class="deleteImg"
  6378. src="../../assets/deleteworks.png"
  6379. v-if="
  6380. w.userid == userid || tType == 1 || tType == 4
  6381. "
  6382. @click.stop="deleteWorks(w.wid)"
  6383. alt
  6384. />
  6385. </div>
  6386. <div class="worksName">
  6387. <div>{{ w.sName }}</div>
  6388. </div>
  6389. </div>
  6390. </div>
  6391. </div>
  6392. <div
  6393. v-if="tool.tool.indexOf(49) != -1"
  6394. class="xuan_right_box"
  6395. style="margin: 0 15px 0 25px; width: 93%"
  6396. >
  6397. <div
  6398. v-if="courseDetail.userid == userid"
  6399. style="
  6400. display: flex;
  6401. justify-content: flex-end;
  6402. margin-right: 10px;
  6403. "
  6404. >
  6405. <el-button
  6406. type="primary"
  6407. size="small"
  6408. @click="addTools(49, toolIndex, taskCount)"
  6409. >分组设置</el-button
  6410. >
  6411. </div>
  6412. <div
  6413. v-if="groupStudentUid[toolIndex]"
  6414. class="group_staic_box"
  6415. >
  6416. <div
  6417. v-for="(gp, gd) in tool.groupJson.group"
  6418. :key="gd"
  6419. class="group_staic"
  6420. >
  6421. <span> {{ gp.name }}</span>
  6422. <span>
  6423. 目前人数{{
  6424. groupStudentUid[toolIndex][gd].length
  6425. }}人</span
  6426. >
  6427. </div>
  6428. </div>
  6429. </div>
  6430. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6431. <div
  6432. class="zuoyeYulan"
  6433. v-if="
  6434. worksStudent.length &&
  6435. worksStudent[toolIndex].length > 0
  6436. "
  6437. >
  6438. <span class="worksTitle">作业预览</span>
  6439. </div>
  6440. <div>
  6441. <div
  6442. class="group_workBox"
  6443. v-for="(g, gindex) in tool.groupJson.group"
  6444. :key="gindex"
  6445. >
  6446. <div
  6447. class="group_box"
  6448. v-if="
  6449. groupStudentUid[toolIndex] &&
  6450. worksStudent[toolIndex] &&
  6451. (worksStudent[toolIndex][gindex].length ||
  6452. groupStudentUid[toolIndex][gindex].indexOf(
  6453. userid
  6454. ) != -1)
  6455. "
  6456. >
  6457. <div class="group_title">
  6458. <el-tooltip
  6459. class="item"
  6460. effect="light"
  6461. :content="g.name"
  6462. placement="top"
  6463. >
  6464. <div class="group_name">{{ g.name }}</div>
  6465. </el-tooltip>
  6466. <el-button
  6467. type="primary"
  6468. v-if="
  6469. groupStudentUid[toolIndex][gindex].indexOf(
  6470. userid
  6471. ) != -1
  6472. "
  6473. @click="groupUpload(toolIndex, taskCount, gindex)"
  6474. >上传作业</el-button
  6475. >
  6476. </div>
  6477. <div class="group_work">
  6478. <div
  6479. class="works"
  6480. style="
  6481. width: 200px;
  6482. height: 140px;
  6483. margin: 10px 10px 10px 0;
  6484. border-radius: 15px;
  6485. box-shadow: 0 0 6px 1px #dfdada;
  6486. "
  6487. v-for="(w, wIndex) in worksStudent[toolIndex][
  6488. gindex
  6489. ]"
  6490. :key="wIndex"
  6491. :class="w.type == 1 ? 'isTypeOne' : ''"
  6492. >
  6493. <div class="workImg" v-if="w.type == 0">
  6494. <img
  6495. :src="w.works"
  6496. @click="previewImg(w.works)"
  6497. alt
  6498. />
  6499. <div
  6500. class="answerScore"
  6501. v-if="w.score"
  6502. @click.stop="openScore(w)"
  6503. :class="{
  6504. rightW:
  6505. w.userid == userid ||
  6506. tType == 1 ||
  6507. tType == 4 ||
  6508. w.ateacher == userid,
  6509. }"
  6510. >
  6511. {{ JSON.parse(w.score).wScore }}分
  6512. </div>
  6513. <div
  6514. class="answerScore"
  6515. @click.stop="openScore(w)"
  6516. v-else-if="courseDetail.userid == userid"
  6517. :class="{
  6518. rightW:
  6519. w.userid == userid ||
  6520. tType == 1 ||
  6521. tType == 4 ||
  6522. w.ateacher == userid,
  6523. }"
  6524. >
  6525. 评分
  6526. </div>
  6527. <img
  6528. class="deleteImg"
  6529. src="../../assets/deleteworks.png"
  6530. v-if="
  6531. w.userid == userid ||
  6532. tType == 1 ||
  6533. tType == 4
  6534. "
  6535. @click.stop="deleteWorks(w.wid)"
  6536. alt
  6537. />
  6538. </div>
  6539. <div class="workImg" v-if="w.type == 1">
  6540. <img
  6541. :src="word"
  6542. @click="openFile(w.works)"
  6543. alt
  6544. />
  6545. <!-- @click="openFile(w.works)" -->
  6546. <div
  6547. class="answerScore"
  6548. v-if="w.score"
  6549. @click.stop="openScore(w)"
  6550. :class="{
  6551. rightW:
  6552. w.userid == userid ||
  6553. tType == 1 ||
  6554. tType == 4 ||
  6555. w.ateacher == userid,
  6556. }"
  6557. >
  6558. {{ JSON.parse(w.score).wScore }}分
  6559. </div>
  6560. <div
  6561. class="answerScore"
  6562. @click.stop="openScore(w)"
  6563. v-else-if="courseDetail.userid == userid"
  6564. :class="{
  6565. rightW:
  6566. w.userid == userid ||
  6567. tType == 1 ||
  6568. tType == 4 ||
  6569. w.ateacher == userid,
  6570. }"
  6571. >
  6572. 评分
  6573. </div>
  6574. <img
  6575. class="deleteImg"
  6576. src="../../assets/deleteworks.png"
  6577. v-if="
  6578. w.userid == userid ||
  6579. tType == 1 ||
  6580. tType == 4
  6581. "
  6582. @click.stop="deleteWorks(w.wid)"
  6583. alt
  6584. />
  6585. </div>
  6586. <div class="workImg" v-if="w.type == 3">
  6587. <img
  6588. style="cursor: pointer"
  6589. :src="video"
  6590. @click="openVideo(w)"
  6591. alt
  6592. />
  6593. <!-- @click="openVideo(w.works)" -->
  6594. <div
  6595. class="answerScore"
  6596. v-if="w.score"
  6597. @click.stop="openScore(w)"
  6598. :class="{
  6599. rightW:
  6600. w.userid == userid ||
  6601. tType == 1 ||
  6602. tType == 4 ||
  6603. w.ateacher == userid,
  6604. }"
  6605. >
  6606. {{ JSON.parse(w.score).wScore }}分
  6607. </div>
  6608. <div
  6609. class="answerScore"
  6610. @click.stop="openScore(w)"
  6611. v-else-if="courseDetail.userid == userid"
  6612. :class="{
  6613. rightW:
  6614. w.userid == userid ||
  6615. tType == 1 ||
  6616. tType == 4 ||
  6617. w.ateacher == userid,
  6618. }"
  6619. >
  6620. 评分
  6621. </div>
  6622. <img
  6623. class="deleteImg"
  6624. src="../../assets/deleteworks.png"
  6625. v-if="
  6626. w.userid == userid ||
  6627. tType == 1 ||
  6628. tType == 4
  6629. "
  6630. @click.stop="deleteWorks(w.wid)"
  6631. alt
  6632. />
  6633. </div>
  6634. <div class="workImg" v-if="w.type == 12">
  6635. <img
  6636. style="cursor: pointer"
  6637. :src="word2"
  6638. @click="downloadFile(w.works)"
  6639. alt
  6640. />
  6641. <!-- @click="openVideo(w.works)" -->
  6642. <div
  6643. class="answerScore"
  6644. v-if="w.score"
  6645. @click.stop="openScore(w)"
  6646. :class="{
  6647. rightW:
  6648. w.userid == userid ||
  6649. tType == 1 ||
  6650. tType == 4 ||
  6651. w.ateacher == userid,
  6652. }"
  6653. >
  6654. {{ JSON.parse(w.score).wScore }}分
  6655. </div>
  6656. <div
  6657. class="answerScore"
  6658. @click.stop="openScore(w)"
  6659. v-else-if="courseDetail.userid == userid"
  6660. :class="{
  6661. rightW:
  6662. w.userid == userid ||
  6663. tType == 1 ||
  6664. tType == 4 ||
  6665. w.ateacher == userid,
  6666. }"
  6667. >
  6668. 评分
  6669. </div>
  6670. <img
  6671. class="deleteImg"
  6672. src="../../assets/deleteworks.png"
  6673. v-if="
  6674. w.userid == userid ||
  6675. tType == 1 ||
  6676. tType == 4
  6677. "
  6678. @click.stop="deleteWorks(w.wid)"
  6679. alt
  6680. />
  6681. </div>
  6682. <div class="comment" style="min-width: 200px">
  6683. <div class="worksName">
  6684. <div>{{ w.sName }}</div>
  6685. </div>
  6686. <div class="commentList">
  6687. <div class="commentList">
  6688. <div
  6689. class="commentImg"
  6690. @click="
  6691. isLikes(
  6692. w.wid,
  6693. userid,
  6694. 1,
  6695. null,
  6696. w.isLikes
  6697. )
  6698. "
  6699. >
  6700. <img
  6701. :src="
  6702. w.isLikes == true ? likes : noLikes
  6703. "
  6704. alt=""
  6705. />
  6706. </div>
  6707. <div>{{ w.likesCount }}</div>
  6708. </div>
  6709. <div
  6710. class="commentList"
  6711. style="margin-right: 15px"
  6712. >
  6713. <div
  6714. class="commentImg"
  6715. @click="
  6716. commentOther(
  6717. w,
  6718. toolIndex,
  6719. wIndex,
  6720. gindex
  6721. )
  6722. "
  6723. >
  6724. <img
  6725. src="../../assets/icon/comment/comment.png"
  6726. alt=""
  6727. />
  6728. </div>
  6729. <div>{{ w.commentCount }}</div>
  6730. </div>
  6731. </div>
  6732. </div>
  6733. </div>
  6734. </div>
  6735. </div>
  6736. </div>
  6737. </div>
  6738. </div>
  6739. </div>
  6740. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6741. 上传文件
  6742. <input
  6743. type="file"
  6744. accept="image/png, image/gif, image/jpeg"
  6745. style="display: none"
  6746. @change="beforeUpload1($event, 2, index)"
  6747. />
  6748. </div>-->
  6749. </div>
  6750. </div>
  6751. <!-- <div
  6752. class="vedioBox"
  6753. style="margin-top: 10px"
  6754. v-if="
  6755. courseDetail.userid == userid ||
  6756. (courseDetail.course_teacher &&
  6757. courseDetail.course_teacher.indexOf(userid) != -1)
  6758. "
  6759. :style="{
  6760. borderRadius:
  6761. !(
  6762. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6763. .toolChoose[0].tool &&
  6764. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6765. .toolChoose[0].tool.length > 0
  6766. ) &&
  6767. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6768. .taskDetail == '' &&
  6769. vChapterData[taskCount].length == 0 &&
  6770. fileC[taskCount].length == 0
  6771. ? '0 0 20px 20px'
  6772. : '20px',
  6773. }"
  6774. >
  6775. <div
  6776. class="queTop"
  6777. @click="isClose = !isClose"
  6778. style="
  6779. padding: 15px 0 15px 37px;
  6780. justify-content: space-between;
  6781. "
  6782. >
  6783. <div class="queTopTitle">新增工具</div>
  6784. <div class="queTopRight">
  6785. <div class="queTopClose" v-if="isClose == 0">
  6786. 展开
  6787. <div class="closeImg">
  6788. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6789. </div>
  6790. </div>
  6791. <div class="queTopClose" v-if="isClose == 1">
  6792. 折叠
  6793. <div class="openImg">
  6794. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6795. </div>
  6796. </div>
  6797. <el-button
  6798. style="margin: 0 30px 0 auto"
  6799. type="primary"
  6800. size="small"
  6801. v-if="isClose == 1 && checktoolArray.length > 0"
  6802. @click.stop="addToolChoose"
  6803. >确定</el-button
  6804. >
  6805. </div>
  6806. </div>
  6807. <div
  6808. class="tool_work_box"
  6809. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6810. >
  6811. <div class="tool_box">
  6812. <div class="tool_type_box">
  6813. <div class="chooseWho">
  6814. <div
  6815. :class="toolType == 0 ? 'isChooseActive' : ''"
  6816. @click="(toolType = 0), $forceUpdate()"
  6817. >
  6818. 互动类
  6819. </div>
  6820. <div
  6821. :class="toolType == 1 ? 'isChooseActive' : ''"
  6822. @click="(toolType = 1), $forceUpdate()"
  6823. >
  6824. 思维类
  6825. </div>
  6826. <div
  6827. :class="toolType == 2 ? 'isChooseActive' : ''"
  6828. @click="(toolType = 2), $forceUpdate()"
  6829. >
  6830. 测评类
  6831. </div>
  6832. <div
  6833. :class="toolType == 3 ? 'isChooseActive' : ''"
  6834. @click="(toolType = 3), $forceUpdate()"
  6835. >
  6836. 编程类
  6837. </div>
  6838. <div
  6839. :class="toolType == 5 ? 'isChooseActive' : ''"
  6840. @click="(toolType = 5), $forceUpdate()"
  6841. >
  6842. 学科类
  6843. </div>
  6844. </div>
  6845. </div>
  6846. <div>
  6847. <div class="toolSort" v-if="toolType == 0">
  6848. <div class="tool">
  6849. <div class="whiteBIcon" @click="addTools2(10)">
  6850. <img
  6851. src="../../assets/icon/thirdToolList/time.png"
  6852. alt
  6853. />
  6854. <div style="margin: 5px 0">倒计时</div>
  6855. </div>
  6856. <div class="check" @click="addTools2(10)">
  6857. <img
  6858. src="../../assets/icon/checkNo.png"
  6859. alt
  6860. v-if="checktoolArray.indexOf(10) == -1"
  6861. />
  6862. <div class="checkDiv" v-else>
  6863. <img src="../../assets/icon/checkedIs.png" alt /><span
  6864. >已选择</span
  6865. >
  6866. </div>
  6867. </div>
  6868. </div>
  6869. <div class="tool">
  6870. <div class="whiteBIcon" @click="addTools2(65)">
  6871. <img
  6872. src="../../assets/icon/firstToolList/pickPeople.png"
  6873. alt
  6874. />
  6875. <div style="margin: 5px 0">挑人</div>
  6876. </div>
  6877. <div class="check" @click="addTools2(65)">
  6878. <img
  6879. src="../../assets/icon/checkNo.png"
  6880. alt
  6881. v-if="checktoolArray.indexOf(65) == -1"
  6882. />
  6883. <div class="checkDiv" v-else>
  6884. <img src="../../assets/icon/checkedIs.png" alt /><span
  6885. >已选择</span
  6886. >
  6887. </div>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. <div class="toolSort" v-if="toolType == 1">
  6892. <div class="tool">
  6893. <div class="whiteBIcon" @click="addTools2(7)">
  6894. <img
  6895. src="../../assets/icon/secondToolList/mindNetwork.png"
  6896. alt
  6897. />
  6898. <div style="margin: 5px 0">思维网格</div>
  6899. </div>
  6900. <div class="check" @click="addTools2(7)">
  6901. <img
  6902. src="../../assets/icon/checkNo.png"
  6903. alt
  6904. v-if="checktoolArray.indexOf(7) == -1"
  6905. />
  6906. <div class="checkDiv" v-else>
  6907. <img src="../../assets/icon/checkedIs.png" alt /><span
  6908. >已选择</span
  6909. >
  6910. </div>
  6911. </div>
  6912. </div>
  6913. <div class="tool">
  6914. <div class="whiteBIcon" @click="addTools2(1)">
  6915. <img
  6916. src="../../assets/icon/secondToolList/whiteBoard.png"
  6917. alt
  6918. />
  6919. <div style="margin: 5px 0">电子白板</div>
  6920. </div>
  6921. <div class="check" @click="addTools2(1)">
  6922. <img
  6923. src="../../assets/icon/checkNo.png"
  6924. alt
  6925. v-if="checktoolArray.indexOf(1) == -1"
  6926. />
  6927. <div class="checkDiv" v-else>
  6928. <img src="../../assets/icon/checkedIs.png" alt /><span
  6929. >已选择</span
  6930. >
  6931. </div>
  6932. </div>
  6933. </div>
  6934. <div class="tool">
  6935. <div class="whiteBIcon" @click="addTools2(52)">
  6936. <img
  6937. src="../../assets/icon/fourthToolList/text.png"
  6938. alt
  6939. />
  6940. <div style="margin: 5px 0">文档</div>
  6941. </div>
  6942. <div class="check" @click="addTools2(52)">
  6943. <img
  6944. src="../../assets/icon/checkNo.png"
  6945. alt
  6946. v-if="checktoolArray.indexOf(52) == -1"
  6947. />
  6948. <div class="checkDiv" v-else>
  6949. <img src="../../assets/icon/checkedIs.png" alt /><span
  6950. >已选择</span
  6951. >
  6952. </div>
  6953. </div>
  6954. </div>
  6955. <div class="tool">
  6956. <div class="whiteBIcon" @click="addTools2(3)">
  6957. <img
  6958. src="../../assets/icon/secondToolList/mindMapping.png"
  6959. alt
  6960. />
  6961. <div style="margin: 5px 0">思维导图</div>
  6962. </div>
  6963. <div class="check" @click="addTools2(3)">
  6964. <img
  6965. src="../../assets/icon/checkNo.png"
  6966. alt
  6967. v-if="checktoolArray.indexOf(3) == -1"
  6968. />
  6969. <div class="checkDiv" v-else>
  6970. <img src="../../assets/icon/checkedIs.png" alt /><span
  6971. >已选择</span
  6972. >
  6973. </div>
  6974. </div>
  6975. </div>
  6976. <div class="tool">
  6977. <div class="whiteBIcon" @click="addTools2(48)">
  6978. <img
  6979. src="../../assets/icon/fourthToolList/table.png"
  6980. alt
  6981. />
  6982. <div style="margin: 5px 0">表格</div>
  6983. </div>
  6984. <div class="check" @click="addTools2(48)">
  6985. <img
  6986. src="../../assets/icon/checkNo.png"
  6987. alt
  6988. v-if="checktoolArray.indexOf(48) == -1"
  6989. />
  6990. <div class="checkDiv" v-else>
  6991. <img src="../../assets/icon/checkedIs.png" alt /><span
  6992. >已选择</span
  6993. >
  6994. </div>
  6995. </div>
  6996. </div>
  6997. </div>
  6998. <div class="toolSort" v-if="toolType == 6">
  6999. <div v-show="tooC == 49">
  7000. <img
  7001. @click="addTools(tooC, toolIndex, taskCount)"
  7002. src="../../assets/icon/fourthToolList/group.png"
  7003. alt
  7004. />
  7005. <div style="margin: 5px 0">学生分组</div>
  7006. </div>
  7007. </div>
  7008. <div class="toolSort" v-if="toolType == 2">
  7009. <div class="tool">
  7010. <div class="whiteBIcon" @click="addTools2(16)">
  7011. <img
  7012. src="../../assets/icon/thirdToolList/work.png"
  7013. alt
  7014. />
  7015. <div style="margin: 5px 0">作业提交</div>
  7016. </div>
  7017. <div class="check" @click="addTools2(16)">
  7018. <img
  7019. src="../../assets/icon/checkNo.png"
  7020. alt
  7021. v-if="checktoolArray.indexOf(16) == -1"
  7022. />
  7023. <div class="checkDiv" v-else>
  7024. <img src="../../assets/icon/checkedIs.png" alt /><span
  7025. >已选择</span
  7026. >
  7027. </div>
  7028. </div>
  7029. </div>
  7030. <div class="tool">
  7031. <div class="whiteBIcon" @click="addTools2(50)">
  7032. <img
  7033. src="../../assets/icon/thirdToolList/plwork.png"
  7034. alt
  7035. />
  7036. <div style="margin: 5px 0">批量上传</div>
  7037. </div>
  7038. <div class="check" @click="addTools2(50)">
  7039. <img
  7040. src="../../assets/icon/checkNo.png"
  7041. alt
  7042. v-if="checktoolArray.indexOf(50) == -1"
  7043. />
  7044. <div class="checkDiv" v-else>
  7045. <img src="../../assets/icon/checkedIs.png" alt /><span
  7046. >已选择</span
  7047. >
  7048. </div>
  7049. </div>
  7050. </div>
  7051. </div>
  7052. <div class="toolSort" v-if="toolType == 3">
  7053. <div class="tool">
  7054. <div class="whiteBIcon" @click="addTools2(18)">
  7055. <img
  7056. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7057. alt
  7058. />
  7059. <div style="margin: 5px 0">训练平台</div>
  7060. </div>
  7061. <div class="check" @click="addTools2(18)">
  7062. <img
  7063. src="../../assets/icon/checkNo.png"
  7064. alt
  7065. v-if="checktoolArray.indexOf(18) == -1"
  7066. />
  7067. <div class="checkDiv" v-else>
  7068. <img src="../../assets/icon/checkedIs.png" alt /><span
  7069. >已选择</span
  7070. >
  7071. </div>
  7072. </div>
  7073. </div>
  7074. <div class="tool">
  7075. <div class="whiteBIcon" @click="addTools2(21)">
  7076. <img
  7077. src="../../assets/icon/fourthToolList/program.png"
  7078. alt
  7079. />
  7080. <div style="margin: 5px 0">AIoT Blockly</div>
  7081. </div>
  7082. <div class="check" @click="addTools2(21)">
  7083. <img
  7084. src="../../assets/icon/checkNo.png"
  7085. alt
  7086. v-if="checktoolArray.indexOf(21) == -1"
  7087. />
  7088. <div class="checkDiv" v-else>
  7089. <img src="../../assets/icon/checkedIs.png" alt /><span
  7090. >已选择</span
  7091. >
  7092. </div>
  7093. </div>
  7094. </div>
  7095. <div class="tool">
  7096. <div class="whiteBIcon" @click="addTools2(23)">
  7097. <img
  7098. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7099. alt
  7100. />
  7101. <div style="margin: 5px 0">AI Python</div>
  7102. </div>
  7103. <div class="check" @click="addTools2(23)">
  7104. <img
  7105. src="../../assets/icon/checkNo.png"
  7106. alt
  7107. v-if="checktoolArray.indexOf(23) == -1"
  7108. />
  7109. <div class="checkDiv" v-else>
  7110. <img src="../../assets/icon/checkedIs.png" alt /><span
  7111. >已选择</span
  7112. >
  7113. </div>
  7114. </div>
  7115. </div>
  7116. <div class="tool">
  7117. <div class="whiteBIcon" @click="addTools2(24)">
  7118. <img
  7119. src="../../assets/icon/fourthToolList/AIprogram.png"
  7120. alt
  7121. />
  7122. <div style="margin: 5px 0">AI Blockly</div>
  7123. </div>
  7124. <div class="check" @click="addTools2(24)">
  7125. <img
  7126. src="../../assets/icon/checkNo.png"
  7127. alt
  7128. v-if="checktoolArray.indexOf(24) == -1"
  7129. />
  7130. <div class="checkDiv" v-else>
  7131. <img src="../../assets/icon/checkedIs.png" alt /><span
  7132. >已选择</span
  7133. >
  7134. </div>
  7135. </div>
  7136. </div>
  7137. <div class="tool">
  7138. <div class="whiteBIcon" @click="addTools2(32)">
  7139. <img
  7140. src="../../assets/icon/thirdToolList/code.png"
  7141. alt
  7142. />
  7143. <div style="margin: 5px 0">源码编辑</div>
  7144. </div>
  7145. <div class="check" @click="addTools2(32)">
  7146. <img
  7147. src="../../assets/icon/checkNo.png"
  7148. alt
  7149. v-if="checktoolArray.indexOf(32) == -1"
  7150. />
  7151. <div class="checkDiv" v-else>
  7152. <img src="../../assets/icon/checkedIs.png" alt /><span
  7153. >已选择</span
  7154. >
  7155. </div>
  7156. </div>
  7157. </div>
  7158. <div class="tool">
  7159. <div class="whiteBIcon" @click="addTools2(57)">
  7160. <img
  7161. src="../../assets/icon/fourthToolList/cocopi.png"
  7162. alt
  7163. />
  7164. <div style="margin: 5px 0">CocoPi</div>
  7165. </div>
  7166. <div class="check" @click="addTools2(57)">
  7167. <img
  7168. src="../../assets/icon/checkNo.png"
  7169. alt
  7170. v-if="checktoolArray.indexOf(57) == -1"
  7171. />
  7172. <div class="checkDiv" v-else>
  7173. <img src="../../assets/icon/checkedIs.png" alt /><span
  7174. >已选择</span
  7175. >
  7176. </div>
  7177. </div>
  7178. </div>
  7179. <div class="tool">
  7180. <div class="whiteBIcon" @click="addTools2(63)">
  7181. <img
  7182. src="../../assets/icon/fourthToolList/Wood.png"
  7183. alt
  7184. />
  7185. <div style="margin: 5px 0">海龟编程</div>
  7186. </div>
  7187. <div class="check" @click="addTools2(63)">
  7188. <img
  7189. src="../../assets/icon/checkNo.png"
  7190. alt
  7191. v-if="checktoolArray.indexOf(63) == -1"
  7192. />
  7193. <div class="checkDiv" v-else>
  7194. <img src="../../assets/icon/checkedIs.png" alt /><span
  7195. >已选择</span
  7196. >
  7197. </div>
  7198. </div>
  7199. </div>
  7200. </div>
  7201. <div class="toolSort" v-if="toolType == 5">
  7202. <div class="tool">
  7203. <div class="whiteBIcon" @click="addTools2(28)">
  7204. <img
  7205. src="../../assets/icon/secondToolList/translation.png"
  7206. alt
  7207. />
  7208. <div style="margin: 5px 0">翻译</div>
  7209. </div>
  7210. <div class="check" @click="addTools2(28)">
  7211. <img
  7212. src="../../assets/icon/checkNo.png"
  7213. alt
  7214. v-if="checktoolArray.indexOf(28) == -1"
  7215. />
  7216. <div class="checkDiv" v-else>
  7217. <img src="../../assets/icon/checkedIs.png" alt /><span
  7218. >已选择</span
  7219. >
  7220. </div>
  7221. </div>
  7222. </div>
  7223. <div class="tool">
  7224. <div class="whiteBIcon" @click="addTools2(31)">
  7225. <img
  7226. src="../../assets/icon/secondToolList/networkPanel.png"
  7227. alt
  7228. />
  7229. <div style="margin: 5px 0">数字画板</div>
  7230. </div>
  7231. <div class="check" @click="addTools2(31)">
  7232. <img
  7233. src="../../assets/icon/checkNo.png"
  7234. alt
  7235. v-if="checktoolArray.indexOf(31) == -1"
  7236. />
  7237. <div class="checkDiv" v-else>
  7238. <img src="../../assets/icon/checkedIs.png" alt /><span
  7239. >已选择</span
  7240. >
  7241. </div>
  7242. </div>
  7243. </div>
  7244. <div class="tool">
  7245. <div class="whiteBIcon" @click="addTools2(39)">
  7246. <img
  7247. src="../../assets/icon/secondToolList/GeoGebra.png"
  7248. alt
  7249. />
  7250. <div style="margin: 5px 0">GeoGebra</div>
  7251. </div>
  7252. <div class="check" @click="addTools2(39)">
  7253. <img
  7254. src="../../assets/icon/checkNo.png"
  7255. alt
  7256. v-if="checktoolArray.indexOf(39) == -1"
  7257. />
  7258. <div class="checkDiv" v-else>
  7259. <img src="../../assets/icon/checkedIs.png" alt /><span
  7260. >已选择</span
  7261. >
  7262. </div>
  7263. </div>
  7264. </div>
  7265. <div class="tool">
  7266. <div class="whiteBIcon" @click="addTools2(66)">
  7267. <img
  7268. src="../../assets/icon/secondToolList/formulaEdi.png"
  7269. alt
  7270. />
  7271. <div style="margin: 5px 0">公式编辑</div>
  7272. </div>
  7273. <div class="check" @click="addTools2(66)">
  7274. <img
  7275. src="../../assets/icon/checkNo.png"
  7276. alt
  7277. v-if="checktoolArray.indexOf(66) == -1"
  7278. />
  7279. <div class="checkDiv" v-else>
  7280. <img src="../../assets/icon/checkedIs.png" alt /><span
  7281. >已选择</span
  7282. >
  7283. </div>
  7284. </div>
  7285. </div>
  7286. <div class="tool">
  7287. <div class="whiteBIcon" @click="addTools2(67)">
  7288. <img
  7289. src="../../assets/icon/secondToolList/molStr.png"
  7290. alt
  7291. />
  7292. <div style="margin: 5px 0">分子结构</div>
  7293. </div>
  7294. <div class="check" @click="addTools2(67)">
  7295. <img
  7296. src="../../assets/icon/checkNo.png"
  7297. alt
  7298. v-if="checktoolArray.indexOf(67) == -1"
  7299. />
  7300. <div class="checkDiv" v-else>
  7301. <img src="../../assets/icon/checkedIs.png" alt /><span
  7302. >已选择</span
  7303. >
  7304. </div>
  7305. </div>
  7306. </div>
  7307. <div class="tool">
  7308. <div class="whiteBIcon" @click="addTools2(68)">
  7309. <img
  7310. src="../../assets/icon/secondToolList/timeAxis.png"
  7311. alt
  7312. />
  7313. <div style="margin: 5px 0">时间轴</div>
  7314. </div>
  7315. <div class="check" @click="addTools2(68)">
  7316. <img
  7317. src="../../assets/icon/checkNo.png"
  7318. alt
  7319. v-if="checktoolArray.indexOf(68) == -1"
  7320. />
  7321. <div class="checkDiv" v-else>
  7322. <img src="../../assets/icon/checkedIs.png" alt /><span
  7323. >已选择</span
  7324. >
  7325. </div>
  7326. </div>
  7327. </div>
  7328. </div>
  7329. <div class="toolSort" v-if="toolType == 7">
  7330. <div class="tool">
  7331. <div class="whiteBIcon" @click="addTools2(40)">
  7332. <img
  7333. src="../../assets/icon/secondToolList/eval.png"
  7334. alt
  7335. />
  7336. <div style="margin: 5px 0">个人评价</div>
  7337. </div>
  7338. <div class="check" @click="addTools2(40)">
  7339. <img
  7340. src="../../assets/icon/checkNo.png"
  7341. alt
  7342. v-if="checktoolArray.indexOf(40) == -1"
  7343. />
  7344. <div class="checkDiv" v-else>
  7345. <img src="../../assets/icon/checkedIs.png" alt /><span
  7346. >已选择</span
  7347. >
  7348. </div>
  7349. </div>
  7350. </div>
  7351. </div>
  7352. <div class="toolSort" v-if="toolType == 4">
  7353. <div class="tool">
  7354. <div class="whiteBIcon" @click="addTools2(26)">
  7355. <img
  7356. src="../../assets/icon/thirdToolList/courseDesign.png"
  7357. alt
  7358. />
  7359. <div style="margin: 5px 0">课程设计</div>
  7360. </div>
  7361. <div class="check" @click="addTools2(26)">
  7362. <img
  7363. src="../../assets/icon/checkNo.png"
  7364. alt
  7365. v-if="checktoolArray.indexOf(26) == -1"
  7366. />
  7367. <div class="checkDiv" v-else>
  7368. <img src="../../assets/icon/checkedIs.png" alt /><span
  7369. >已选择</span
  7370. >
  7371. </div>
  7372. </div>
  7373. </div>
  7374. <div class="tool">
  7375. <div class="whiteBIcon" @click="addTools2(25)">
  7376. <img
  7377. src="../../assets/icon/thirdToolList/evalua.png"
  7378. alt
  7379. />
  7380. <div style="margin: 5px 0">目标管理</div>
  7381. </div>
  7382. <div class="check" @click="addTools2(25)">
  7383. <img
  7384. src="../../assets/icon/checkNo.png"
  7385. alt
  7386. v-if="checktoolArray.indexOf(25) == -1"
  7387. />
  7388. <div class="checkDiv" v-else>
  7389. <img src="../../assets/icon/checkedIs.png" alt /><span
  7390. >已选择</span
  7391. >
  7392. </div>
  7393. </div>
  7394. </div>
  7395. </div>
  7396. </div>
  7397. </div>
  7398. </div>
  7399. </div> -->
  7400. <div
  7401. class="vedioBox"
  7402. style="margin-top: 10px; border-radius: 20px"
  7403. v-if="
  7404. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7405. .eList &&
  7406. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7407. .eList.length &&
  7408. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7409. .eList.length > 0 &&
  7410. tType != 2
  7411. "
  7412. >
  7413. <div
  7414. class="queTop"
  7415. style="
  7416. font-size: 20px;
  7417. padding: 15px 0 15px 37px;
  7418. font-weight: bold;
  7419. "
  7420. >
  7421. <!-- <div class="question" style="width: 30px">
  7422. <img src="../../assets/icon/toolIcon.png" alt />
  7423. </div>
  7424. <div class="queTitle">
  7425. <div>工具</div>
  7426. </div>-->
  7427. 评一评
  7428. </div>
  7429. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7430. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7431. <el-table
  7432. :data="
  7433. chapInfoList[courseType].chapterInfo[0].taskJson[
  7434. taskCount
  7435. ].eList
  7436. "
  7437. :header-cell-style="{ background: '#F0F4FA' }"
  7438. :row-class-name="tableRowClassName"
  7439. border
  7440. stripe
  7441. style="width: 100%"
  7442. >
  7443. <el-table-column
  7444. label="评价名称"
  7445. align="center"
  7446. >
  7447. <template slot-scope="scope"
  7448. ><div>{{ scope.row.value }}</div></template
  7449. >
  7450. </el-table-column>
  7451. <el-table-column
  7452. label="评价描述"
  7453. align="center"
  7454. >
  7455. <template slot-scope="scope"
  7456. ><div>
  7457. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7458. </div></template
  7459. >
  7460. </el-table-column>
  7461. <el-table-column label="目标" align="center">
  7462. <template slot-scope="scope"
  7463. ><div>
  7464. {{
  7465. scope.row.target
  7466. ? scope.row.target[scope.row.target.length - 1]
  7467. : "-"
  7468. }}
  7469. </div></template
  7470. ></el-table-column
  7471. >
  7472. </el-table>
  7473. <!-- <div
  7474. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7475. .chapterInfo[0].taskJson[taskCount].eList"
  7476. :key="eIndex"
  7477. class="elist_input_box"
  7478. >
  7479. <div style="width: 95%">
  7480. <div
  7481. style="
  7482. display: flex;
  7483. flex-direction: row;
  7484. flex-wrap: nowrap;
  7485. align-items: center;
  7486. "
  7487. >
  7488. <div style="max-width: calc(100% - 285px)">
  7489. <span>{{ eItem.value }}</span>
  7490. </div>
  7491. <div
  7492. style="
  7493. padding-left: 25px;
  7494. display: flex;
  7495. flex-direction: row;
  7496. align-items: center;
  7497. "
  7498. >
  7499. <el-rate
  7500. v-model="eItem.score"
  7501. :colors="colors"
  7502. disabled
  7503. ></el-rate>
  7504. </div>
  7505. </div>
  7506. <div class="elist_inptu_text" style="padding-left: 10px">
  7507. <span v-if="eItem.detail != ''">{{
  7508. eItem.detail
  7509. }}</span>
  7510. <span v-else style="color: #b2b1b3; font-size: 14px"
  7511. >暂无描述...</span
  7512. >
  7513. </div>
  7514. </div>
  7515. </div> -->
  7516. </div>
  7517. <div
  7518. v-if="evalua"
  7519. style="
  7520. border: 1px solid #e5e5e5;
  7521. max-width: 650px;
  7522. width: 100%;
  7523. margin-top: 20px;
  7524. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7525. "
  7526. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7527. >
  7528. <div class="e_add_top">
  7529. <div class="e_add_title" style="width: 100%">
  7530. <!-- <span>目标管理名称</span> -->
  7531. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7532. <img
  7533. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7534. src="../../assets/line.png"
  7535. class="cru_line"
  7536. style="
  7537. width: 125px;
  7538. height: 20px;
  7539. bottom: -10px;
  7540. left: 5px;
  7541. "
  7542. />
  7543. <!-- <el-input
  7544. v-model="eTitle"
  7545. placeholder="请输入名称"
  7546. @change="setMindData"
  7547. ></el-input>-->
  7548. <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>
  7549. <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>
  7550. </div>
  7551. </div>
  7552. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7553. <div class="e_add_list_pbox">
  7554. <div class="e_add_list_pbox_title">
  7555. <!-- <span class="type_title">切换模式</span> -->
  7556. <div class="type_content">
  7557. <span
  7558. :class="{ active: typeMode == 1 }"
  7559. @click="typeMode = 1"
  7560. >目标树</span
  7561. >
  7562. <span
  7563. :class="{ active: typeMode == 2 }"
  7564. @click="typeMode = 2"
  7565. >目标罗盘</span
  7566. >
  7567. <!-- <span
  7568. :class="{ active: typeMode == 3 }"
  7569. @click="typeMode = 3"
  7570. >目标看板</span
  7571. > -->
  7572. </div>
  7573. </div>
  7574. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7575. <Mind
  7576. :showBar="false"
  7577. :mindData="data"
  7578. style="width: 100%"
  7579. v-show="typeMode == 1"
  7580. ></Mind>
  7581. <Sunburst
  7582. :Josn="eJson"
  7583. :num="eJSONNum"
  7584. style="width: 100%"
  7585. v-if="typeMode == 2"
  7586. ></Sunburst>
  7587. <SeeBoard
  7588. :Josn="eJson"
  7589. :num="eJSONNum"
  7590. :ename="eTitle"
  7591. style="width: 100%"
  7592. v-if="typeMode == 3"
  7593. >
  7594. </SeeBoard>
  7595. </div>
  7596. </div>
  7597. </div>
  7598. </div>
  7599. </div>
  7600. </div>
  7601. <!-- <div
  7602. class="project_box"
  7603. style="margin-top: 15px; padding-bottom: 30px"
  7604. >
  7605. <div
  7606. style="
  7607. display: flex;
  7608. flex-wrap: nowrap;
  7609. flex-direction: column;
  7610. position: relative;
  7611. "
  7612. >
  7613. <div class="queTop">
  7614. <div class="question">
  7615. <img src="../../assets/icon/homeWork.png" alt="" />
  7616. </div>
  7617. <div class="queTitle">
  7618. <div>作业提交<span>(提交图文视频等)</span></div>
  7619. <div>:任务:{{ task.task }}</div>
  7620. </div>
  7621. </div>
  7622. <div class="ediBottom">
  7623. <div
  7624. class="addEditor"
  7625. style="margin-top: 23px"
  7626. @click="openAddWork"
  7627. v-if="!isNoHomeWork"
  7628. >
  7629. 选择文件
  7630. </div>
  7631. <div
  7632. class="addEditor"
  7633. style="margin-top: 23px"
  7634. @click="openAddWork"
  7635. v-else
  7636. >
  7637. 已提交
  7638. </div>
  7639. </div>
  7640. </div>
  7641. </div>-->
  7642. </div>
  7643. </div>
  7644. <el-dialog
  7645. title="作业提交"
  7646. :visible.sync="dialogVisible"
  7647. :append-to-body="true"
  7648. width="500px"
  7649. :before-close="handleClose"
  7650. class="dialog_change"
  7651. >
  7652. <div class="marginT">
  7653. <div>上传文件</div>
  7654. <div
  7655. class="chapter_add"
  7656. @click="addImg($event)"
  7657. v-if="studyJuri[0].cover.length == 0"
  7658. >
  7659. <div class="up_photo">
  7660. <img src="../../assets/icon/uploadImg.png" alt />
  7661. </div>
  7662. <!-- <input
  7663. type="file"
  7664. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7665. style="display: none"
  7666. @change="beforeUpload1($event, 1)"
  7667. /> -->
  7668. <input
  7669. type="file"
  7670. accept="*"
  7671. style="display: none"
  7672. @change="beforeUpload1($event, 1)"
  7673. />
  7674. <!-- <input
  7675. type="file"
  7676. accept="image/*"
  7677. capture="camera"
  7678. style="display: none"
  7679. @change="beforeUpload1($event, 1)"
  7680. /> -->
  7681. </div>
  7682. <div
  7683. class="chapter_add"
  7684. style="
  7685. display: flex;
  7686. width: 100%;
  7687. flex-direction: row;
  7688. flex-wrap: wrap;
  7689. justify-content: flex-start;
  7690. padding: 15px 0;
  7691. "
  7692. v-if="studyJuri[0].cover.length > 0"
  7693. >
  7694. <div class="upCover">
  7695. <img
  7696. :src="studyJuri[0].cover[0].url"
  7697. alt
  7698. v-if="fileType == 0"
  7699. />
  7700. <img :src="word" alt v-else-if="fileType == 1" />
  7701. <img :src="video" alt v-else-if="fileType == 2" />
  7702. <img :src="word2" alt v-else-if="fileType == 3" />
  7703. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7704. <div class="deleteWord" @click="clean(1)">
  7705. <img src="../../assets/icon/deleteWorks.png" alt />
  7706. </div>
  7707. </div>
  7708. </div>
  7709. </div>
  7710. <div
  7711. class="upload_send"
  7712. @click="addCourseWorks(taskCount)"
  7713. v-if="!proVisible"
  7714. >
  7715. 提交
  7716. </div>
  7717. </el-dialog>
  7718. </div>
  7719. </div>
  7720. <div
  7721. class="pButton"
  7722. @click="(pzDialog = true), selectPz()"
  7723. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7724. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7725. >
  7726. <!-- 批 -->
  7727. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7728. </div>
  7729. <div v-if="pzDialog == true" class="newDialogCss">
  7730. <div class="pzTop2">
  7731. <!-- <div>评论</div>
  7732. <div @click="pzDialog = false">
  7733. <img src="../../assets/close1.png" alt="" />
  7734. </div> -->
  7735. <div class="checkbox">
  7736. <div class="check" style="font-size: 25px; position: unset">
  7737. 评论
  7738. </div>
  7739. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7740. <el-option label="时间降序" :value="1"></el-option>
  7741. <el-option label="时间升序" :value="2"></el-option>
  7742. <el-option label="我的评课" :value="3"></el-option>
  7743. </el-select>
  7744. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7745. </div>
  7746. </div>
  7747. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7748. <div class="pzListBox" v-if="pzList && pzList.length">
  7749. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7750. <div class="pzNavTop">
  7751. <div>评</div>
  7752. <div>
  7753. {{
  7754. pz.username && pz.username.length > 5
  7755. ? pz.username.substring(0, 5) + "..."
  7756. : pz.username
  7757. }}的评论
  7758. </div>
  7759. <div
  7760. class="pzDelete"
  7761. v-if="pz.userid == userid"
  7762. @click="deletePz(pz.id)"
  7763. >
  7764. 删除
  7765. </div>
  7766. </div>
  7767. <div
  7768. @click="checkImg(getImgList(pz.content))"
  7769. class="pzContent cont"
  7770. v-html="pz.content"
  7771. v-if="pz.type == '1'"
  7772. ></div>
  7773. <div class="pzContent" v-if="pz.type == '2'">
  7774. <audio :src="pz.content" controls="controls" ref="audio">
  7775. Your browser does not support the audio element.
  7776. </audio>
  7777. </div>
  7778. <div class="pzContent" v-if="pz.type == '3'">
  7779. <img
  7780. :src="pz.content"
  7781. style="width: 90%; margin: 0 auto; display: block"
  7782. @click="previewImg(pz.content)"
  7783. />
  7784. </div>
  7785. <div class="timeAndReply">
  7786. <div class="time">
  7787. {{ pz.time }}
  7788. </div>
  7789. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7790. </div>
  7791. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7792. <div
  7793. v-for="(h, hIndex) in pz.hfList"
  7794. :key="hIndex"
  7795. class="hfItem"
  7796. >
  7797. <div class="whoReplyWho">
  7798. <div class="hfName">{{ h.username }}</div>
  7799. <div class="hfImg">
  7800. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7801. </div>
  7802. <div class="hfName">{{ pz.username }}</div>
  7803. </div>
  7804. <div class="hfContent" v-html="h.content"></div>
  7805. <div class="hfBottom">
  7806. <div class="hfTime">{{ h.time }}</div>
  7807. <div
  7808. class="deleteHfItem"
  7809. @click="deleteReply(h.id)"
  7810. v-if="userid == h.userid"
  7811. >
  7812. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7813. </div>
  7814. </div>
  7815. </div>
  7816. </div>
  7817. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7818. <div class="replyInput">
  7819. <el-input v-model="reply[pzIndex]"></el-input>
  7820. </div>
  7821. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7822. </div> -->
  7823. </div>
  7824. </div>
  7825. <div class="noPz" v-else>
  7826. <img src="../../assets/icon/noPz.png" alt="" />
  7827. </div>
  7828. <div class="addPzButton">
  7829. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7830. 添加评论
  7831. </div>
  7832. <!-- <div class="img1">
  7833. <div @click="(addPzDialog = true), (pzType = 2)">
  7834. <img src="../../assets/audio.png" /><span>音频</span>
  7835. </div>
  7836. </div> -->
  7837. </div>
  7838. </div>
  7839. </div>
  7840. <div
  7841. v-if="toolDialogVisible == true"
  7842. class="toolMask"
  7843. @click="toolDialogVisible = false"
  7844. ></div>
  7845. <div v-if="toolDialogVisible == true" class="addToolCss">
  7846. <div class="toolTop">
  7847. <div style="font-weight: bold">新增工具</div>
  7848. <div @click="toolDialogVisible = false">
  7849. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7850. </div>
  7851. </div>
  7852. <div class="tool_box">
  7853. <div class="tool_type_box">
  7854. <div class="chooseWho">
  7855. <div
  7856. :class="toolType == 0 ? 'isChooseActive' : ''"
  7857. @click="(toolType = 0), $forceUpdate()"
  7858. >
  7859. 互动类
  7860. </div>
  7861. <div
  7862. :class="toolType == 1 ? 'isChooseActive' : ''"
  7863. @click="(toolType = 1), $forceUpdate()"
  7864. >
  7865. 思维类
  7866. </div>
  7867. <div
  7868. :class="toolType == 2 ? 'isChooseActive' : ''"
  7869. @click="(toolType = 2), $forceUpdate()"
  7870. >
  7871. 测评类
  7872. </div>
  7873. <div
  7874. :class="toolType == 3 ? 'isChooseActive' : ''"
  7875. @click="(toolType = 3), $forceUpdate()"
  7876. >
  7877. 编程类
  7878. </div>
  7879. <div
  7880. :class="toolType == 5 ? 'isChooseActive' : ''"
  7881. @click="(toolType = 5), $forceUpdate()"
  7882. >
  7883. 学科类
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div>
  7888. <div class="toolSort" v-if="toolType == 0">
  7889. <div
  7890. class="tool"
  7891. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7892. @click="addTools2(10)"
  7893. >
  7894. <div class="whiteBIcon">
  7895. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7896. <div style="margin: 5px 0">倒计时</div>
  7897. </div>
  7898. <div class="check">
  7899. <div
  7900. v-if="checktoolArray.indexOf(10) == -1"
  7901. class="noChoose"
  7902. ></div>
  7903. <div v-else class="isChoose"></div>
  7904. </div>
  7905. </div>
  7906. <div
  7907. class="tool"
  7908. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7909. @click="addTools2(65)"
  7910. >
  7911. <div class="whiteBIcon">
  7912. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7913. <div style="margin: 5px 0">挑人</div>
  7914. </div>
  7915. <div class="check">
  7916. <div
  7917. v-if="checktoolArray.indexOf(65) == -1"
  7918. class="noChoose"
  7919. ></div>
  7920. <div v-else class="isChoose"></div>
  7921. </div>
  7922. </div>
  7923. </div>
  7924. <div class="toolSort" v-if="toolType == 1">
  7925. <div
  7926. class="tool"
  7927. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7928. @click="addTools2(7)"
  7929. >
  7930. <div class="whiteBIcon">
  7931. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  7932. <div style="margin: 5px 0">思维网格</div>
  7933. </div>
  7934. <div class="check">
  7935. <div
  7936. v-if="checktoolArray.indexOf(7) == -1"
  7937. class="noChoose"
  7938. ></div>
  7939. <div v-else class="isChoose"></div>
  7940. </div>
  7941. </div>
  7942. <div
  7943. class="tool"
  7944. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7945. @click="addTools2(1)"
  7946. >
  7947. <div class="whiteBIcon">
  7948. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  7949. <div style="margin: 5px 0">电子白板</div>
  7950. </div>
  7951. <div class="check">
  7952. <div
  7953. v-if="checktoolArray.indexOf(1) == -1"
  7954. class="noChoose"
  7955. ></div>
  7956. <div v-else class="isChoose"></div>
  7957. </div>
  7958. </div>
  7959. <div
  7960. class="tool"
  7961. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7962. @click="addTools2(52)"
  7963. >
  7964. <div class="whiteBIcon">
  7965. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7966. <div style="margin: 5px 0">文档</div>
  7967. </div>
  7968. <div class="check">
  7969. <div
  7970. v-if="checktoolArray.indexOf(52) == -1"
  7971. class="noChoose"
  7972. ></div>
  7973. <div v-else class="isChoose"></div>
  7974. </div>
  7975. </div>
  7976. <div
  7977. class="tool"
  7978. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7979. @click="addTools2(3)"
  7980. >
  7981. <div class="whiteBIcon">
  7982. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  7983. <div style="margin: 5px 0">思维导图</div>
  7984. </div>
  7985. <div class="check">
  7986. <div
  7987. v-if="checktoolArray.indexOf(3) == -1"
  7988. class="noChoose"
  7989. ></div>
  7990. <div v-else class="isChoose"></div>
  7991. </div>
  7992. </div>
  7993. <div
  7994. class="tool"
  7995. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7996. @click="addTools2(48)"
  7997. >
  7998. <div class="whiteBIcon">
  7999. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8000. <div style="margin: 5px 0">表格</div>
  8001. </div>
  8002. <div class="check">
  8003. <div
  8004. v-if="checktoolArray.indexOf(48) == -1"
  8005. class="noChoose"
  8006. ></div>
  8007. <div v-else class="isChoose"></div>
  8008. </div>
  8009. </div>
  8010. </div>
  8011. <div class="toolSort" v-if="toolType == 6">
  8012. <div v-show="tooC == 49">
  8013. <img
  8014. @click="addTools(tooC, toolIndex, taskCount)"
  8015. src="../../assets/icon/fourthToolList/group.png"
  8016. alt
  8017. />
  8018. <div style="margin: 5px 0">学生分组</div>
  8019. </div>
  8020. </div>
  8021. <div class="toolSort" v-if="toolType == 2">
  8022. <div
  8023. class="tool"
  8024. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8025. @click="addTools2(16)"
  8026. >
  8027. <div class="whiteBIcon">
  8028. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8029. <div style="margin: 5px 0">作业提交</div>
  8030. </div>
  8031. <div class="check">
  8032. <div
  8033. v-if="checktoolArray.indexOf(16) == -1"
  8034. class="noChoose"
  8035. ></div>
  8036. <div v-else class="isChoose"></div>
  8037. </div>
  8038. </div>
  8039. <div
  8040. class="tool"
  8041. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8042. @click="addTools2(50)"
  8043. >
  8044. <div class="whiteBIcon">
  8045. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8046. <div style="margin: 5px 0">批量上传</div>
  8047. </div>
  8048. <div class="check">
  8049. <div
  8050. v-if="checktoolArray.indexOf(50) == -1"
  8051. class="noChoose"
  8052. ></div>
  8053. <div v-else class="isChoose"></div>
  8054. </div>
  8055. </div>
  8056. </div>
  8057. <div class="toolSort" v-if="toolType == 3">
  8058. <div
  8059. class="tool"
  8060. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8061. @click="addTools2(18)"
  8062. >
  8063. <div class="whiteBIcon">
  8064. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  8065. <div style="margin: 5px 0">训练平台</div>
  8066. </div>
  8067. <div class="check">
  8068. <div
  8069. v-if="checktoolArray.indexOf(18) == -1"
  8070. class="noChoose"
  8071. ></div>
  8072. <div v-else class="isChoose"></div>
  8073. </div>
  8074. </div>
  8075. <div
  8076. class="tool"
  8077. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8078. @click="addTools2(21)"
  8079. >
  8080. <div class="whiteBIcon">
  8081. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8082. <div style="margin: 5px 0">AIoT Blockly</div>
  8083. </div>
  8084. <div class="check">
  8085. <div
  8086. v-if="checktoolArray.indexOf(21) == -1"
  8087. class="noChoose"
  8088. ></div>
  8089. <div v-else class="isChoose"></div>
  8090. </div>
  8091. </div>
  8092. <div
  8093. class="tool"
  8094. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8095. @click="addTools2(23)"
  8096. >
  8097. <div class="whiteBIcon">
  8098. <img
  8099. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8100. alt
  8101. />
  8102. <div style="margin: 5px 0">AI Python</div>
  8103. </div>
  8104. <div class="check">
  8105. <div
  8106. v-if="checktoolArray.indexOf(23) == -1"
  8107. class="noChoose"
  8108. ></div>
  8109. <div v-else class="isChoose"></div>
  8110. </div>
  8111. </div>
  8112. <div
  8113. class="tool"
  8114. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8115. @click="addTools2(24)"
  8116. >
  8117. <div class="whiteBIcon">
  8118. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8119. <div style="margin: 5px 0">AI Blockly</div>
  8120. </div>
  8121. <div class="check">
  8122. <div
  8123. v-if="checktoolArray.indexOf(24) == -1"
  8124. class="noChoose"
  8125. ></div>
  8126. <div v-else class="isChoose"></div>
  8127. </div>
  8128. </div>
  8129. <div
  8130. class="tool"
  8131. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8132. @click="addTools2(32)"
  8133. >
  8134. <div class="whiteBIcon">
  8135. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8136. <div style="margin: 5px 0">源码编辑</div>
  8137. </div>
  8138. <div class="check">
  8139. <div
  8140. v-if="checktoolArray.indexOf(32) == -1"
  8141. class="noChoose"
  8142. ></div>
  8143. <div v-else class="isChoose"></div>
  8144. </div>
  8145. </div>
  8146. <div
  8147. class="tool"
  8148. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8149. @click="addTools2(57)"
  8150. >
  8151. <div class="whiteBIcon">
  8152. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8153. <div style="margin: 5px 0">CocoPi</div>
  8154. </div>
  8155. <div class="check">
  8156. <div
  8157. v-if="checktoolArray.indexOf(57) == -1"
  8158. class="noChoose"
  8159. ></div>
  8160. <div v-else class="isChoose"></div>
  8161. </div>
  8162. </div>
  8163. <div
  8164. class="tool"
  8165. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8166. @click="addTools2(63)"
  8167. >
  8168. <div class="whiteBIcon">
  8169. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8170. <div style="margin: 5px 0">海龟编程</div>
  8171. </div>
  8172. <div class="check">
  8173. <div
  8174. v-if="checktoolArray.indexOf(63) == -1"
  8175. class="noChoose"
  8176. ></div>
  8177. <div v-else class="isChoose"></div>
  8178. </div>
  8179. </div>
  8180. </div>
  8181. <div class="toolSort" v-if="toolType == 7">
  8182. <div
  8183. class="tool"
  8184. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8185. @click="addTools2(40)"
  8186. >
  8187. <div class="whiteBIcon">
  8188. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8189. <div style="margin: 5px 0">个人评价</div>
  8190. </div>
  8191. <div class="check">
  8192. <div
  8193. v-if="checktoolArray.indexOf(40) == -1"
  8194. class="noChoose"
  8195. ></div>
  8196. <div v-else class="isChoose"></div>
  8197. </div>
  8198. </div>
  8199. </div>
  8200. <div class="toolSort" v-if="toolType == 5">
  8201. <div
  8202. class="tool"
  8203. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8204. @click="addTools2(28)"
  8205. >
  8206. <div class="whiteBIcon">
  8207. <img src="../../assets/icon/secondToolList/translation.png" alt />
  8208. <div style="margin: 5px 0">翻译</div>
  8209. </div>
  8210. <div class="check">
  8211. <div
  8212. v-if="checktoolArray.indexOf(28) == -1"
  8213. class="noChoose"
  8214. ></div>
  8215. <div v-else class="isChoose"></div>
  8216. </div>
  8217. </div>
  8218. <div
  8219. class="tool"
  8220. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8221. @click="addTools2(31)"
  8222. >
  8223. <div class="whiteBIcon">
  8224. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  8225. <div style="margin: 5px 0">数字画板</div>
  8226. </div>
  8227. <div class="check">
  8228. <div
  8229. v-if="checktoolArray.indexOf(31) == -1"
  8230. class="noChoose"
  8231. ></div>
  8232. <div v-else class="isChoose"></div>
  8233. </div>
  8234. </div>
  8235. <div
  8236. class="tool"
  8237. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8238. @click="addTools2(39)"
  8239. >
  8240. <div class="whiteBIcon">
  8241. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8242. <div style="margin: 5px 0">GeoGebra</div>
  8243. </div>
  8244. <div class="check">
  8245. <div
  8246. v-if="checktoolArray.indexOf(39) == -1"
  8247. class="noChoose"
  8248. ></div>
  8249. <div v-else class="isChoose"></div>
  8250. </div>
  8251. </div>
  8252. <div
  8253. class="tool"
  8254. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8255. @click="addTools2(66)"
  8256. >
  8257. <div class="whiteBIcon">
  8258. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  8259. <div style="margin: 5px 0">公式编辑</div>
  8260. </div>
  8261. <div class="check">
  8262. <div
  8263. v-if="checktoolArray.indexOf(66) == -1"
  8264. class="noChoose"
  8265. ></div>
  8266. <div v-else class="isChoose"></div>
  8267. </div>
  8268. </div>
  8269. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8270. <div class="whiteBIcon" @click="addTools2(67)">
  8271. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8272. <div style="margin: 5px 0">分子结构</div>
  8273. </div>
  8274. <div class="check" @click="addTools2(67)">
  8275. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8276. <div v-else class="isChoose"></div>
  8277. </div>
  8278. </div> -->
  8279. <div
  8280. class="tool"
  8281. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8282. @click="addTools2(68)"
  8283. >
  8284. <div class="whiteBIcon">
  8285. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8286. <div style="margin: 5px 0">时间轴</div>
  8287. </div>
  8288. <div class="check">
  8289. <div
  8290. v-if="checktoolArray.indexOf(68) == -1"
  8291. class="noChoose"
  8292. ></div>
  8293. <div v-else class="isChoose"></div>
  8294. </div>
  8295. </div>
  8296. <!-- <div
  8297. class="tool"
  8298. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8299. @click="addTools2(69)"
  8300. >
  8301. <div class="whiteBIcon">
  8302. <img src="../../assets/icon/secondToolList/english.png" alt />
  8303. <div style="margin: 5px 0">英语写作</div>
  8304. </div>
  8305. <div class="check">
  8306. <div
  8307. v-if="checktoolArray.indexOf(69) == -1"
  8308. class="noChoose"
  8309. ></div>
  8310. <div v-else class="isChoose"></div>
  8311. </div>
  8312. </div> -->
  8313. </div>
  8314. <div class="toolSort" v-if="toolType == 4">
  8315. <div
  8316. class="tool"
  8317. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8318. @click="addTools2(26)"
  8319. >
  8320. <div class="whiteBIcon">
  8321. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  8322. <div style="margin: 5px 0">课程设计</div>
  8323. </div>
  8324. <div class="check">
  8325. <div
  8326. v-if="checktoolArray.indexOf(26) == -1"
  8327. class="noChoose"
  8328. ></div>
  8329. <div v-else class="isChoose"></div>
  8330. </div>
  8331. </div>
  8332. <div
  8333. class="tool"
  8334. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8335. @click="addTools2(25)"
  8336. >
  8337. <div class="whiteBIcon">
  8338. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8339. <div style="margin: 5px 0">目标管理</div>
  8340. </div>
  8341. <div class="check">
  8342. <div
  8343. v-if="checktoolArray.indexOf(25) == -1"
  8344. class="noChoose"
  8345. ></div>
  8346. <div v-else class="isChoose"></div>
  8347. </div>
  8348. </div>
  8349. </div>
  8350. </div>
  8351. </div>
  8352. <span
  8353. slot="footer"
  8354. class="dialog-footer"
  8355. style="display: block; text-align: center; padding: 0 0 10px 0"
  8356. >
  8357. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8358. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8359. </span>
  8360. </div>
  8361. <div
  8362. v-if="replyDialogVisible == true"
  8363. class="addDialogCss"
  8364. v-el-drag-dialog
  8365. >
  8366. <div class="pzTop">
  8367. <div class="teacherPz">
  8368. <div class="teacherPzImg">
  8369. <img src="../../assets/icon/teacherPz.png" alt="" />
  8370. </div>
  8371. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8372. </div>
  8373. <div @click="replyDialogVisible = false">
  8374. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8375. </div>
  8376. </div>
  8377. <div class="addPzBox">
  8378. <!-- <div class="addPzCheck">
  8379. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8380. >文本</span
  8381. >
  8382. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8383. >音频</span
  8384. >
  8385. </div> -->
  8386. <div style="height: calc(100% - 50px)">
  8387. <editor-bar
  8388. class="binfo_input pzConText"
  8389. style="width: 100% !important; margin: 0 auto"
  8390. placeholder="请输入回复描述"
  8391. v-model="reply"
  8392. @change="change"
  8393. ></editor-bar>
  8394. </div>
  8395. <div class="addTextCss" @click="addHf">确定</div>
  8396. </div>
  8397. </div>
  8398. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8399. <div class="pzTop">
  8400. <div class="teacherPz">
  8401. <div class="teacherPzImg">
  8402. <img src="../../assets/icon/teacherPz.png" alt="" />
  8403. </div>
  8404. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8405. </div>
  8406. <div @click="addPzDialog = false">
  8407. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8408. </div>
  8409. </div>
  8410. <div class="addPzBox">
  8411. <div class="addPzCheck">
  8412. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8413. >文本</span
  8414. >
  8415. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8416. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8417. >音频</span
  8418. >
  8419. </div>
  8420. <div style="height: calc(100% - 95px)">
  8421. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8422. v-if="pzType == 1"></textarea> -->
  8423. <editor-bar
  8424. class="binfo_input pzConText"
  8425. style="width: 100% !important"
  8426. placeholder="请输入任务描述"
  8427. v-model="pzConText"
  8428. @change="change"
  8429. v-if="pzType == 1"
  8430. ></editor-bar>
  8431. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8432. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8433. <div @click="addImg($event)">
  8434. <el-button type="primary">上传图片</el-button>
  8435. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8436. @change="beforeUpload1($event, 4)" />
  8437. </div>
  8438. </div> -->
  8439. </div>
  8440. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8441. 确定
  8442. </div>
  8443. </div>
  8444. </div>
  8445. <div v-if="proVisible" class="mask">
  8446. <div class="progressBox">
  8447. <!-- <div id="closePro" class="closeCss">
  8448. <img src="../../assets/icon/close.png" alt />
  8449. </div> -->
  8450. <div class="lbox">
  8451. <img src="../../assets/loading.gif" />上传中,请稍后
  8452. </div>
  8453. <div style="margin-bottom: 10px">
  8454. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8455. </div>
  8456. <el-progress
  8457. :text-inside="true"
  8458. :stroke-width="20"
  8459. :percentage="progress"
  8460. style="width: 80%"
  8461. ></el-progress>
  8462. </div>
  8463. </div>
  8464. <div v-if="proVisible2" class="mask">
  8465. <div class="progressBox">
  8466. <div class="lbox">
  8467. <img src="../../assets/loading.gif" />上传中,请稍后
  8468. </div>
  8469. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8470. </div>
  8471. </div>
  8472. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8473. <img width="100%" :src="dialogImageUrl" alt />
  8474. </el-dialog>
  8475. <el-dialog
  8476. :title="noteName != '' ? noteName : '查看问卷'"
  8477. :visible.sync="dialogVisible5"
  8478. :append-to-body="true"
  8479. width="1000px"
  8480. :before-close="handleClose"
  8481. class="dialog_diy dialog_diy3"
  8482. >
  8483. <div>
  8484. <div
  8485. class="a_add_title"
  8486. style="
  8487. display: flex;
  8488. flex-direction: row;
  8489. align-items: center;
  8490. justify-content: center;
  8491. "
  8492. >
  8493. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8494. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8495. </div>
  8496. <div class="a_addBox">
  8497. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8498. 题目内容
  8499. </div>
  8500. <div
  8501. class="a_add_box"
  8502. v-for="(item1, index1) in askJson.askCount"
  8503. :key="index1"
  8504. >
  8505. <div class="a_add_head">
  8506. <div style="display: flex">
  8507. <span class="askIndex"> {{ index1 + 1 }}</span>
  8508. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8509. </div>
  8510. <img
  8511. v-if="askJson.askJson[index1].img"
  8512. :src="askJson.askJson[index1].img"
  8513. style="height: 300px; margin-top: 10px; max-width: 100%"
  8514. />
  8515. </div>
  8516. <div class="a_add_body">
  8517. <div class="a_add_input">
  8518. <el-radio-group
  8519. v-model="radio[index1]"
  8520. v-if="
  8521. askJson.askJson[index1].type == '1' ||
  8522. !askJson.askJson[index1].type
  8523. "
  8524. >
  8525. <el-radio
  8526. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8527. .checkList"
  8528. :key="checkIndex"
  8529. :label="checkIndex"
  8530. :disabled="isAnswer"
  8531. class="redioStyle"
  8532. ><span v-html="item2"></span
  8533. ></el-radio>
  8534. </el-radio-group>
  8535. <el-checkbox-group
  8536. v-model="radio[index1]"
  8537. v-if="askJson.askJson[index1].type == '2'"
  8538. >
  8539. <el-checkbox
  8540. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8541. .checkList"
  8542. :key="checkIndex1"
  8543. :label="checkIndex1"
  8544. :disabled="isAnswer"
  8545. class="redioStyle"
  8546. ><span v-html="item2"></span>
  8547. </el-checkbox>
  8548. </el-checkbox-group>
  8549. </div>
  8550. </div>
  8551. </div>
  8552. </div>
  8553. </div>
  8554. <span slot="footer" class="dialog-footer">
  8555. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8556. >取 消</el-button
  8557. >
  8558. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8559. >确 定</el-button
  8560. >
  8561. </span>
  8562. </el-dialog>
  8563. <el-dialog
  8564. :title="noteName != '' ? noteName : '查看问卷'"
  8565. :visible.sync="dialogVisible5Teacher"
  8566. :append-to-body="true"
  8567. width="1000px"
  8568. :before-close="handleClose"
  8569. class="dialog_diy dialog_diy3"
  8570. >
  8571. <div>
  8572. <div class="w_name">
  8573. 学生姓名:<span>{{ sStudent.student }}</span>
  8574. </div>
  8575. <div
  8576. class="a_add_title"
  8577. style="
  8578. display: flex;
  8579. flex-direction: row;
  8580. align-items: center;
  8581. justify-content: center;
  8582. "
  8583. >
  8584. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8585. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8586. </div>
  8587. <div class="a_addBox">
  8588. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8589. 题目内容
  8590. </div>
  8591. <div
  8592. class="a_add_box"
  8593. v-for="(item1, index1) in askJson.askCount"
  8594. :key="index1"
  8595. >
  8596. <div class="a_add_head">
  8597. <div style="display: flex">
  8598. <span class="askIndex">{{ index1 + 1 }}</span>
  8599. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8600. </div>
  8601. <img
  8602. v-if="askJson.askJson[index1].img"
  8603. :src="askJson.askJson[index1].img"
  8604. style="height: 300px; margin-top: 10px; max-width: 100%"
  8605. />
  8606. </div>
  8607. <div class="a_add_body">
  8608. <div class="a_add_input">
  8609. <el-radio-group
  8610. v-model="radio[index1]"
  8611. v-if="
  8612. askJson.askJson[index1].type == '1' ||
  8613. !askJson.askJson[index1].type
  8614. "
  8615. >
  8616. <el-radio
  8617. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8618. .checkList"
  8619. :key="checkIndex"
  8620. :label="checkIndex"
  8621. :disabled="isAnswer"
  8622. class="redioStyle"
  8623. ><span v-html="item2"></span
  8624. ></el-radio>
  8625. </el-radio-group>
  8626. <el-checkbox-group
  8627. v-model="radio[index1]"
  8628. v-if="askJson.askJson[index1].type == '2'"
  8629. >
  8630. <el-checkbox
  8631. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8632. .checkList"
  8633. :key="checkIndex1"
  8634. :label="checkIndex1"
  8635. :disabled="isAnswer"
  8636. class="redioStyle"
  8637. ><span v-html="item2"></span>
  8638. </el-checkbox>
  8639. </el-checkbox-group>
  8640. </div>
  8641. </div>
  8642. </div>
  8643. </div>
  8644. </div>
  8645. <span slot="footer" class="dialog-footer">
  8646. <el-button
  8647. @click="dialogVisible5Teacher = false"
  8648. v-show="noteName == ''"
  8649. >取 消</el-button
  8650. >
  8651. <el-button
  8652. type="primary"
  8653. @click="addStudentAskTeacher"
  8654. v-show="noteName == ''"
  8655. >确 定</el-button
  8656. >
  8657. </span>
  8658. </el-dialog>
  8659. <el-dialog
  8660. :title="noteName != '' ? noteName : '查看选择题'"
  8661. :visible.sync="dialogVisibleChoice"
  8662. :append-to-body="true"
  8663. width="1000px"
  8664. :before-close="handleClose"
  8665. class="dialog_diy dialog_diy3"
  8666. >
  8667. <div>
  8668. <!-- <div class="a_add_title" style="
  8669. display: flex;
  8670. flex-direction: row;
  8671. align-items: center;
  8672. justify-content: center;
  8673. ">
  8674. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8675. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8676. </div> -->
  8677. <div class="a_addBox">
  8678. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8679. 题目内容
  8680. </div>
  8681. <div
  8682. class="a_add_box"
  8683. v-for="(item1, index1) in testJson.testCount"
  8684. :key="index1"
  8685. >
  8686. <div class="a_add_head">
  8687. <div style="display: flex">
  8688. <span class="askIndex">{{ index1 + 1 }}</span>
  8689. <div
  8690. v-if="testJson.testJson[index1].type == '1'"
  8691. style="margin-right: 5px; min-width: 70px"
  8692. >
  8693. (单选题)
  8694. </div>
  8695. <div
  8696. v-if="testJson.testJson[index1].type == '2'"
  8697. style="margin-right: 5px; min-width: 70px"
  8698. >
  8699. (多选题)
  8700. </div>
  8701. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8702. </div>
  8703. <img
  8704. v-if="testJson.testJson[index1].img"
  8705. :src="testJson.testJson[index1].img"
  8706. style="height: 300px; margin-top: 10px; max-width: 100%"
  8707. />
  8708. </div>
  8709. <div
  8710. class="timuImgBox"
  8711. v-if="
  8712. testJson.testJson[index1].timuList &&
  8713. testJson.testJson[index1].timuList.length
  8714. "
  8715. >
  8716. <div
  8717. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8718. :key="tIndex"
  8719. class="timuImg"
  8720. @click.stop="previewImg(timg.src)"
  8721. >
  8722. <img :src="timg.src" alt="" />
  8723. </div>
  8724. </div>
  8725. <div class="a_add_body">
  8726. <div class="a_add_input">
  8727. <el-radio-group
  8728. v-model="radio[index1]"
  8729. v-if="testJson.testJson[index1].type == '1'"
  8730. >
  8731. <div class="radioBox">
  8732. <el-radio
  8733. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8734. .checkList"
  8735. :key="checkIndex"
  8736. :label="checkIndex"
  8737. :disabled="isAnswer"
  8738. class="redioStyle"
  8739. >
  8740. <div
  8741. style="margin-right: 10px"
  8742. v-if="item2 && item2.imgType && item2.imgType == 1"
  8743. >
  8744. <div class="inImg" @click.stop="previewImg(item2.src)">
  8745. <img :src="item2.src" alt="" />
  8746. </div>
  8747. </div>
  8748. <span v-else v-html="item2"></span>
  8749. </el-radio>
  8750. </div>
  8751. </el-radio-group>
  8752. <el-checkbox-group
  8753. v-model="radio[index1]"
  8754. v-if="testJson.testJson[index1].type == '2'"
  8755. >
  8756. <div class="radioBox">
  8757. <el-checkbox
  8758. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8759. .checkList"
  8760. :key="checkIndex"
  8761. :label="checkIndex"
  8762. :disabled="isAnswer"
  8763. class="redioStyle"
  8764. >
  8765. <div
  8766. style="margin-right: 10px"
  8767. v-if="item2 && item2.imgType && item2.imgType == 1"
  8768. >
  8769. <div class="inImg" @click.stop="previewImg(item2.src)">
  8770. <img :src="item2.src" alt="" />
  8771. </div>
  8772. </div>
  8773. <span v-else v-html="item2"></span>
  8774. </el-checkbox>
  8775. </div>
  8776. </el-checkbox-group>
  8777. </div>
  8778. </div>
  8779. </div>
  8780. </div>
  8781. </div>
  8782. <span slot="footer" class="dialog-footer">
  8783. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8784. >取 消</el-button
  8785. >
  8786. <el-button
  8787. type="primary"
  8788. @click="addStudentTest"
  8789. v-show="noteName == ''"
  8790. >确 定</el-button
  8791. >
  8792. </span>
  8793. </el-dialog>
  8794. <el-dialog
  8795. :title="noteName != '' ? noteName : '查看选择题'"
  8796. :visible.sync="dialogVisibleChoiceTeacher"
  8797. :append-to-body="true"
  8798. width="1000px"
  8799. :before-close="handleClose"
  8800. class="dialog_diy dialog_diy3"
  8801. >
  8802. <div>
  8803. <div class="w_name">
  8804. 学生姓名:<span>{{ sStudent.student }}</span>
  8805. </div>
  8806. <div class="a_addBox">
  8807. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8808. 题目内容
  8809. </div>
  8810. <div
  8811. class="a_add_box"
  8812. v-for="(item1, index1) in testJson.testCount"
  8813. :key="index1"
  8814. >
  8815. <div class="a_add_head">
  8816. <div style="display: flex">
  8817. <span class="askIndex">{{ index1 + 1 }}</span>
  8818. <div
  8819. v-if="testJson.testJson[index1].type == '1'"
  8820. style="margin-right: 5px; min-width: 70px"
  8821. >
  8822. (单选题)
  8823. </div>
  8824. <div
  8825. v-if="testJson.testJson[index1].type == '2'"
  8826. style="margin-right: 5px; min-width: 70px"
  8827. >
  8828. (多选题)
  8829. </div>
  8830. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8831. </div>
  8832. <img
  8833. v-if="testJson.testJson[index1].img"
  8834. :src="testJson.testJson[index1].img"
  8835. style="height: 300px; margin-top: 10px; max-width: 100%"
  8836. />
  8837. </div>
  8838. <div
  8839. class="timuImgBox"
  8840. v-if="
  8841. testJson.testJson[index1].timuList &&
  8842. testJson.testJson[index1].timuList.length
  8843. "
  8844. >
  8845. <div
  8846. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8847. :key="tIndex"
  8848. class="timuImg"
  8849. @click.stop="previewImg(timg.src)"
  8850. >
  8851. <img :src="timg.src" alt="" />
  8852. </div>
  8853. </div>
  8854. <div class="a_add_body">
  8855. <div class="a_add_input">
  8856. <el-radio-group
  8857. v-model="radio[index1]"
  8858. v-if="testJson.testJson[index1].type == '1'"
  8859. >
  8860. <div class="radioBox">
  8861. <el-radio
  8862. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8863. .checkList"
  8864. :key="checkIndex"
  8865. :label="checkIndex"
  8866. :disabled="isAnswer"
  8867. class="redioStyle"
  8868. >
  8869. <div
  8870. style="margin-right: 10px"
  8871. v-if="item2 && item2.imgType && item2.imgType == 1"
  8872. >
  8873. <div class="inImg" @click.stop="previewImg(item2.src)">
  8874. <img :src="item2.src" alt="" />
  8875. </div>
  8876. </div>
  8877. <span v-else v-html="item2"></span>
  8878. </el-radio>
  8879. </div>
  8880. </el-radio-group>
  8881. <el-checkbox-group
  8882. v-model="radio[index1]"
  8883. v-if="testJson.testJson[index1].type == '2'"
  8884. >
  8885. <div class="radioBox">
  8886. <el-checkbox
  8887. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8888. .checkList"
  8889. :key="checkIndex"
  8890. :label="checkIndex"
  8891. :disabled="isAnswer"
  8892. class="redioStyle"
  8893. >
  8894. <div
  8895. style="margin-right: 10px"
  8896. v-if="item2 && item2.imgType && item2.imgType == 1"
  8897. >
  8898. <div class="inImg" @click.stop="previewImg(item2.src)">
  8899. <img :src="item2.src" alt="" />
  8900. </div>
  8901. </div>
  8902. <span v-else v-html="item2"></span>
  8903. </el-checkbox>
  8904. </div>
  8905. </el-checkbox-group>
  8906. </div>
  8907. </div>
  8908. </div>
  8909. </div>
  8910. </div>
  8911. <span slot="footer" class="dialog-footer">
  8912. <el-button
  8913. @click="dialogVisibleChoiceTeacher = false"
  8914. v-show="noteName == ''"
  8915. >取 消</el-button
  8916. >
  8917. <el-button
  8918. type="primary"
  8919. @click="addStudentTestTeacher"
  8920. v-show="noteName == ''"
  8921. >确 定</el-button
  8922. >
  8923. </span>
  8924. </el-dialog>
  8925. <el-dialog
  8926. title="查看富文本"
  8927. :visible.sync="dialogVisible1"
  8928. :append-to-body="true"
  8929. width="500px"
  8930. :before-close="handleClose"
  8931. class="dialog_diy textCss"
  8932. >
  8933. <el-form style="font-size: 20px">
  8934. <el-form-item label="文本标题" class="textTitle">
  8935. <div style="font-size: 20px">{{ text.name }}</div>
  8936. </el-form-item>
  8937. <div>富文本内容</div>
  8938. <div
  8939. v-html="text.url"
  8940. style="font-size: 18px; padding: 40px 0 0 0"
  8941. ></div>
  8942. </el-form>
  8943. <span slot="footer" class="dialog-footer">
  8944. <el-button type="primary" @click="dialogVisible1 = false"
  8945. >确定</el-button
  8946. >
  8947. </span>
  8948. </el-dialog>
  8949. <el-dialog
  8950. title="文件预览"
  8951. :visible.sync="dialogVisible3"
  8952. width="50%"
  8953. :before-close="handleClose"
  8954. class="dialog_diy"
  8955. :class="{ fullStyle: full }"
  8956. >
  8957. <div slot="title" class="header-title">
  8958. <div style="color: #fff">文件预览</div>
  8959. <div style="position: absolute; top: 19px; right: 50px">
  8960. <img
  8961. src="../../assets/full.png"
  8962. style="height: 16px; cursor: pointer"
  8963. alt=""
  8964. @click="fullTools"
  8965. />
  8966. </div>
  8967. </div>
  8968. <pdf
  8969. v-if="showPDF"
  8970. :pdfUrl="pptImgUrl"
  8971. style="width: 100%; height: 520px; overflow: auto"
  8972. :class="{ fullStyle: full }"
  8973. ></pdf>
  8974. <iframe
  8975. v-else
  8976. :src="pptImgUrl"
  8977. frameborder="0"
  8978. width="100%"
  8979. height="600"
  8980. :class="{ fullStyle: full }"
  8981. ></iframe>
  8982. </el-dialog>
  8983. <el-dialog
  8984. title="文件预览"
  8985. :visible.sync="dialogVisible6"
  8986. width="50%"
  8987. :before-close="handleClose"
  8988. class="dialog_diy"
  8989. >
  8990. <iframe
  8991. :src="pptImgUrl1"
  8992. frameborder="0"
  8993. width="100%"
  8994. height="600"
  8995. ></iframe>
  8996. </el-dialog>
  8997. <el-dialog
  8998. title="提示"
  8999. :visible.sync="dialogVisible4"
  9000. :append-to-body="true"
  9001. width="800px"
  9002. :before-close="handleClose"
  9003. class="dialog_diy notice"
  9004. >
  9005. <div>此功能暂未开放!</div>
  9006. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9007. </el-dialog>
  9008. <el-dialog
  9009. title="问答"
  9010. :visible.sync="answerDialogVisible"
  9011. :append-to-body="true"
  9012. width="800px"
  9013. :before-close="handleClose"
  9014. class="dialog_diy"
  9015. >
  9016. <div>
  9017. <div
  9018. style="
  9019. display: flex;
  9020. flex-wrap: nowrap;
  9021. flex-direction: column;
  9022. position: relative;
  9023. "
  9024. >
  9025. <div class="queTop" style="padding: 20px 0 20px 0">
  9026. <div class="question">
  9027. <img src="../../assets/icon/question.png" alt />
  9028. </div>
  9029. <div class="queTitle">
  9030. <div style="width: 90px; min-width: 90px">提问:</div>
  9031. <div>{{ answerQ }}</div>
  9032. </div>
  9033. </div>
  9034. <div class="ediBottom">
  9035. <textarea
  9036. rows="6"
  9037. class="binfo_input"
  9038. cols
  9039. style="width: 95%; height: 120px"
  9040. v-model="questionAnswer"
  9041. ></textarea>
  9042. </div>
  9043. </div>
  9044. </div>
  9045. <div slot="footer">
  9046. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9047. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9048. </div>
  9049. </el-dialog>
  9050. <el-dialog
  9051. title="问答"
  9052. :visible.sync="answerDialogVisibleTeacher"
  9053. :append-to-body="true"
  9054. width="800px"
  9055. :before-close="handleClose"
  9056. class="dialog_diy"
  9057. >
  9058. <div>
  9059. <div class="w_name">
  9060. 学生姓名:<span>{{ sStudent.student }}</span>
  9061. </div>
  9062. <div
  9063. style="
  9064. display: flex;
  9065. flex-wrap: nowrap;
  9066. flex-direction: column;
  9067. position: relative;
  9068. "
  9069. >
  9070. <div class="queTop" style="padding: 20px 0 20px 0">
  9071. <div class="question">
  9072. <img src="../../assets/icon/question.png" alt />
  9073. </div>
  9074. <div class="queTitle">
  9075. <div style="width: 90px; min-width: 90px">提问:</div>
  9076. <div>{{ answerQ }}</div>
  9077. </div>
  9078. </div>
  9079. <div class="ediBottom">
  9080. <textarea
  9081. rows="6"
  9082. class="binfo_input"
  9083. cols
  9084. style="width: 95%; height: 120px"
  9085. v-model="questionAnswer"
  9086. ></textarea>
  9087. </div>
  9088. </div>
  9089. </div>
  9090. <div slot="footer">
  9091. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9092. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9093. </div>
  9094. </el-dialog>
  9095. <el-dialog
  9096. title="倒计时"
  9097. :visible.sync="timeDialogVisible"
  9098. :append-to-body="true"
  9099. width="800px"
  9100. :before-close="handleClose"
  9101. class="dialog_diy"
  9102. >
  9103. <div>
  9104. <div style="margin-bottom: 20px; color: #999">
  9105. 提示:点击“+”或“-”修改倒计时时长。
  9106. </div>
  9107. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9108. </div>
  9109. <div slot="footer">
  9110. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9111. </div>
  9112. </el-dialog>
  9113. <el-dialog
  9114. title="权限设置"
  9115. :visible.sync="juriVisible"
  9116. :append-to-body="true"
  9117. width="400px"
  9118. :before-close="handleClose"
  9119. class="dialog_diy"
  9120. >
  9121. <div>
  9122. <div class="open_box">
  9123. <div class="switch_box">
  9124. <span>允许学生查看所有作业</span>
  9125. <el-switch
  9126. v-model="sIsOpen"
  9127. active-text=""
  9128. class="switchCss"
  9129. @change="updateSLook"
  9130. ></el-switch>
  9131. </div>
  9132. <div
  9133. class="switch_box"
  9134. v-if="
  9135. courseDetail.userid == userid ||
  9136. (courseDetail.course_teacher &&
  9137. courseDetail.course_teacher.indexOf(userid) != -1)
  9138. "
  9139. >
  9140. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9141. <span>禁止学生查看所有阶段</span>
  9142. <el-switch
  9143. v-model="IsLookOpen"
  9144. active-text=""
  9145. class="switchCss"
  9146. @change="updateLookOpen"
  9147. ></el-switch>
  9148. </div>
  9149. <div class="switch_box" v-if="courseDetail.userid == userid">
  9150. <span>开启跟随模式</span>
  9151. <el-switch
  9152. v-model="IsFollow"
  9153. active-text=""
  9154. class="switchCss"
  9155. @change="updateFollow"
  9156. ></el-switch>
  9157. </div>
  9158. </div>
  9159. </div>
  9160. <div slot="footer">
  9161. <el-button
  9162. style="background: #409efe; color: #fff"
  9163. @click="juriVisible = false"
  9164. >关 闭</el-button
  9165. >
  9166. </div>
  9167. </el-dialog>
  9168. <el-dialog
  9169. title="查看视频"
  9170. :visible.sync="videoVisible"
  9171. :append-to-body="true"
  9172. width="1000px"
  9173. :before-close="handleClose"
  9174. class="dialog_diy1"
  9175. >
  9176. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9177. <video-player
  9178. class="video-player vjs-custom-skin"
  9179. :playsinline="true"
  9180. :options="videoDetail"
  9181. @play="onPlayerPlay($event)"
  9182. style="width: 100%; height: 100%"
  9183. ></video-player>
  9184. </div>
  9185. <div slot="footer">
  9186. <el-button
  9187. style="background: #409efe; color: #fff"
  9188. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9189. >
  9190. 关 闭</el-button
  9191. >
  9192. </div>
  9193. </el-dialog>
  9194. <el-dialog
  9195. title="查看详情"
  9196. :visible.sync="commentDialogVisible"
  9197. :append-to-body="true"
  9198. width="800px"
  9199. :before-close="handleClose"
  9200. class="dialog_diy"
  9201. >
  9202. <div class="commentTop">
  9203. <div class="studentDetail">
  9204. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9205. <div class="nameAndTime">
  9206. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9207. <div>{{ commentDetail.time }}</div>
  9208. </div>
  9209. <div
  9210. class="returnBtn"
  9211. style="margin-left: auto; width: 80px"
  9212. v-if="
  9213. commentDetail.works &&
  9214. commentDetail.type == 0 &&
  9215. (tType == 1 || tType == 4)
  9216. "
  9217. @click="
  9218. showPicturePaint(
  9219. commentDetail.img ? commentDetail.img : commentDetail.works
  9220. )
  9221. "
  9222. >
  9223. 教师批注
  9224. </div>
  9225. </div>
  9226. <div
  9227. class="worksAnswer"
  9228. v-if="commentDetail.works && commentDetail.type == 2"
  9229. >
  9230. {{ JSON.parse(commentDetail.works)[0].answer }}
  9231. </div>
  9232. <div
  9233. class="worksAnswer"
  9234. v-if="commentDetail.works && commentDetail.type == 1"
  9235. >
  9236. <img
  9237. src="../../assets/teacherWork.png"
  9238. v-if="commentDetail.ateacher"
  9239. class="w_teachert"
  9240. />
  9241. <pdf
  9242. v-if="showPDF"
  9243. :pdfUrl="pptImgUrl"
  9244. style="width: 100%; height: 520px; overflow: auto"
  9245. :class="{ fullStyle: full }"
  9246. ></pdf>
  9247. <iframe
  9248. v-else
  9249. :src="pptImgUrl"
  9250. frameborder="0"
  9251. width="100%"
  9252. height="600"
  9253. :class="{ fullStyle: full }"
  9254. ></iframe>
  9255. </div>
  9256. <div
  9257. class="worksAnswer"
  9258. v-if="commentDetail.works && commentDetail.type == 0"
  9259. >
  9260. <img
  9261. src="../../assets/teacherWork.png"
  9262. v-if="commentDetail.ateacher"
  9263. class="w_teachert"
  9264. style="right: 105px"
  9265. />
  9266. <img
  9267. :src="commentDetail.works"
  9268. alt=""
  9269. @click="previewImg(commentDetail.works)"
  9270. />
  9271. </div>
  9272. <div
  9273. class="worksAnswer"
  9274. v-if="commentDetail.works && commentDetail.type == 3"
  9275. >
  9276. <img
  9277. src="../../assets/teacherWork.png"
  9278. v-if="commentDetail.ateacher"
  9279. class="w_teachert"
  9280. />
  9281. <video-player
  9282. class="video-player vjs-custom-skin"
  9283. :playsinline="true"
  9284. :options="videoDetail"
  9285. @play="onPlayerPlay($event)"
  9286. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9287. ></video-player>
  9288. </div>
  9289. <div
  9290. class="worksAnswer"
  9291. v-if="commentDetail.works && commentDetail.type == 10"
  9292. >
  9293. <div class="cont" v-html="commentDetail.works.text"></div>
  9294. </div>
  9295. <div
  9296. class="worksAnswer codeFileBox"
  9297. v-if="commentDetail.works && commentDetail.type == 12"
  9298. @click="downloadFile(commentDetail.works)"
  9299. >
  9300. <img src="../../assets/icon/codeFile.png" />
  9301. <div>点击下载文件</div>
  9302. </div>
  9303. <div
  9304. class="worksAnswer codeFileBox"
  9305. v-if="commentDetail.works && commentDetail.type == 15"
  9306. @click="
  9307. openCocoPi(
  9308. 57,
  9309. commentIndexJson.toolIndex,
  9310. commentDetail.userid,
  9311. commentDetail.sName
  9312. )
  9313. "
  9314. >
  9315. <img src="../../assets/icon/codeFile.png" />
  9316. <div>点击打开CocoPi</div>
  9317. </div>
  9318. <div
  9319. class="worksAnswer"
  9320. v-if="commentDetail.works && commentDetail.type == 13"
  9321. >
  9322. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9323. </div>
  9324. <div
  9325. class="worksAnswer"
  9326. v-if="commentDetail.works && commentDetail.type == 4"
  9327. >
  9328. <div class="evalCss">
  9329. <div class="nav">请选择星星进行评分</div>
  9330. <div class="middleBox" v-if="eScore.eStar">
  9331. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9332. <div class="nameAndrate">
  9333. <div>{{ e.value }}</div>
  9334. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9335. </div>
  9336. <div v-if="e.detail">{{ e.detail }}</div>
  9337. </div>
  9338. <div class="bz">
  9339. <textarea
  9340. disabled
  9341. rows="4"
  9342. class="pj"
  9343. style="
  9344. padding: 10px 5px;
  9345. width: 70%;
  9346. background: #f7f6f9;
  9347. font-size: 14px;
  9348. text-indent: 10px;
  9349. color: #000;
  9350. "
  9351. cols
  9352. v-model="eScore.eBzText"
  9353. placeholder="请输入评价内容..."
  9354. ></textarea>
  9355. </div>
  9356. </div>
  9357. </div>
  9358. </div>
  9359. <div class="comment">
  9360. <div class="commentList">
  9361. <div class="commentImg">
  9362. <img
  9363. @click="
  9364. isLikes(
  9365. commentDetail.wid,
  9366. userid,
  9367. 1,
  9368. null,
  9369. commentDetail.isLikes
  9370. )
  9371. "
  9372. :src="commentDetail.isLikes == true ? likes : noLikes"
  9373. alt=""
  9374. />
  9375. </div>
  9376. <div>{{ commentDetail.likesCount }}</div>
  9377. </div>
  9378. <div class="commentList">
  9379. <div class="commentImg">
  9380. <img src="../../assets/icon/comment/comment.png" alt="" />
  9381. </div>
  9382. <div>{{ commentDetail.commentCount }}</div>
  9383. </div>
  9384. </div>
  9385. <div class="drawPBox" v-if="commentDetail.img">
  9386. <span>教师批注</span>
  9387. <img
  9388. :src="commentDetail.img"
  9389. alt=""
  9390. @click="previewImg(commentDetail.img)"
  9391. />
  9392. <span
  9393. class="deleteImg"
  9394. v-if="tType == 1 || tType == 4"
  9395. @click.stop="deletePicturePaint(commentDetail.wid)"
  9396. style="
  9397. font-size: 14px;
  9398. width: auto !important;
  9399. color: #b4b4b4;
  9400. top: unset;
  9401. bottom: 0;
  9402. border: none;
  9403. padding: 0;
  9404. height: auto !important;
  9405. margin: 0;
  9406. "
  9407. >删除</span
  9408. >
  9409. </div>
  9410. </div>
  9411. <div class="commentBox">
  9412. <div class="pl">评论:</div>
  9413. <div style="max-height: 200px; overflow: auto">
  9414. <div
  9415. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9416. style="padding: 10px 0 0 0"
  9417. >
  9418. <div
  9419. class="studentDetail"
  9420. style="padding-top: 10px"
  9421. v-for="(co, coIndex) in commentDetail.commentJson"
  9422. :key="coIndex"
  9423. >
  9424. <div class="tx" style="min-width: 50px">
  9425. <img src="../../assets/avatar.png" alt="" />
  9426. </div>
  9427. <div class="plPerson">
  9428. <div class="plName">
  9429. <div>{{ co.commentPeople }}</div>
  9430. <div style="margin-left: 5px">
  9431. {{ co.commentTime }}
  9432. </div>
  9433. <div
  9434. class="deleteComment"
  9435. v-if="userid == co.userid"
  9436. @click="deleteComment(co.wid)"
  9437. >
  9438. 删除
  9439. </div>
  9440. </div>
  9441. <div class="plContent">{{ co.commentText }}</div>
  9442. </div>
  9443. </div>
  9444. </div>
  9445. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9446. </div>
  9447. </div>
  9448. <div style="margin-top: 10px">
  9449. <div class="displayBox">
  9450. <div
  9451. style="
  9452. color: #556db4;
  9453. font-size: 14px;
  9454. font-weight: bold;
  9455. padding-bottom: 10px;
  9456. "
  9457. >
  9458. 评价
  9459. </div>
  9460. <div class="easy_comment" v-if="false">
  9461. <div
  9462. v-for="(p, pIndex) in PlTextList"
  9463. :key="pIndex"
  9464. @click="fastText(p, 1)"
  9465. >
  9466. {{ p }}
  9467. </div>
  9468. </div>
  9469. </div>
  9470. <div>
  9471. <textarea
  9472. rows="3"
  9473. class="pj"
  9474. style="padding: 10px 5px"
  9475. cols
  9476. v-model="commentText"
  9477. placeholder="请输入评论"
  9478. ></textarea>
  9479. </div>
  9480. </div>
  9481. <div slot="footer">
  9482. <el-button
  9483. @click="
  9484. (commentDialogVisible = false),
  9485. (commentIndexJson = {}),
  9486. videoDetail.sources && videoDetail.sources[0]
  9487. ? (videoDetail.sources[0].src = '')
  9488. : ''
  9489. "
  9490. >取 消</el-button
  9491. >
  9492. <el-button
  9493. type="primary"
  9494. @click="addComment(commentDetail.wid, userid, 2)"
  9495. >确 定</el-button
  9496. >
  9497. </div>
  9498. </el-dialog>
  9499. <el-dialog
  9500. title="查看文档"
  9501. :visible.sync="fullDialogVisible"
  9502. :append-to-body="true"
  9503. width="100%"
  9504. :before-close="handleClose"
  9505. :show-close="false"
  9506. class="dialog_diy full_diy"
  9507. :class="{ full_diy2: fulltype == 3 }"
  9508. >
  9509. <div slot="title" class="header-title">
  9510. <div style="color: #fff">查看文档</div>
  9511. <div
  9512. @click="fullDialogVisible = false"
  9513. style="
  9514. cursor: pointer;
  9515. position: absolute;
  9516. top: 20px;
  9517. right: 20px;
  9518. color: #fff;
  9519. "
  9520. >
  9521. 退出全屏
  9522. </div>
  9523. </div>
  9524. <div style="height: 100%">
  9525. <div
  9526. class="wheel"
  9527. v-if="
  9528. fulltype == 2 &&
  9529. fullUrl.indexOf(
  9530. 'https://view.officeapps.live.com/op/view.aspx?src='
  9531. ) != -1
  9532. "
  9533. style="width: 95%; margin: 0 auto"
  9534. >
  9535. <iframe
  9536. style="width: 100%; height: 100%; border: none"
  9537. :src="fullUrl"
  9538. ></iframe>
  9539. </div>
  9540. <iframe
  9541. v-else-if="fulltype == 2"
  9542. style="width: 100%; height: 100%; border: none"
  9543. :src="fullUrl"
  9544. security="restricted"
  9545. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9546. ></iframe>
  9547. <pdf
  9548. v-else-if="fulltype == 3"
  9549. :pdfUrl="fullUrl"
  9550. style="width: 100%; height: 100%; overflow: auto"
  9551. ></pdf>
  9552. <div
  9553. class="wheel"
  9554. v-if="fulltype == 1"
  9555. style="
  9556. box-shadow: 0 0 6px 1px #f2f2f2;
  9557. width: 100%;
  9558. background: #f1f1f1;
  9559. "
  9560. >
  9561. <div class="title" style="width: 100%; box-sizing: border-box">
  9562. 查看文档
  9563. </div>
  9564. <el-form class="textBox" style="height: 90%">
  9565. <el-form-item class="textTitle">
  9566. <div style="font-size: 22px">
  9567. {{ fullUrl.name }}
  9568. </div>
  9569. </el-form-item>
  9570. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9571. <div
  9572. v-html="fullUrl.url"
  9573. class="textContent"
  9574. style="height: auto"
  9575. ></div>
  9576. </el-form>
  9577. </div>
  9578. </div>
  9579. <!-- <div slot="footer">
  9580. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9581. </div> -->
  9582. </el-dialog>
  9583. <el-dialog
  9584. title="个人评价"
  9585. :visible.sync="studentEvalDialogVisible"
  9586. :append-to-body="true"
  9587. width="800px"
  9588. :before-close="handleClose"
  9589. class="dialog_diy"
  9590. >
  9591. <div class="evalCss">
  9592. <div class="nav">请选择星星进行评分</div>
  9593. <div class="middleBox" v-if="eScore.eStar">
  9594. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9595. <div class="nameAndrate">
  9596. <div>{{ e.value }}</div>
  9597. <el-rate
  9598. v-model="eScore.eStar[eIndex]"
  9599. :disabled="isStar"
  9600. ></el-rate>
  9601. </div>
  9602. <div v-if="e.detail">{{ e.detail }}</div>
  9603. </div>
  9604. <div class="easy_comment" v-if="false">
  9605. <div
  9606. v-for="(p, pIndex) in PlTextList"
  9607. :key="pIndex"
  9608. @click="fastText(p, 2)"
  9609. >
  9610. {{ p }}
  9611. </div>
  9612. </div>
  9613. <div class="bz">
  9614. <textarea
  9615. :disabled="isStar"
  9616. rows="4"
  9617. class="pj"
  9618. style="
  9619. padding: 10px 5px;
  9620. width: 70%;
  9621. background: #f7f6f9;
  9622. font-size: 14px;
  9623. text-indent: 10px;
  9624. "
  9625. cols
  9626. v-model="eScore.eBzText"
  9627. placeholder="请输入评价内容..."
  9628. ></textarea>
  9629. </div>
  9630. </div>
  9631. </div>
  9632. <div slot="footer">
  9633. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9634. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9635. >确 定</el-button
  9636. >
  9637. </div>
  9638. </el-dialog>
  9639. <el-dialog
  9640. title="个人评价"
  9641. :visible.sync="studentEvalDialogVisibleTeacher"
  9642. :append-to-body="true"
  9643. width="800px"
  9644. :before-close="handleClose"
  9645. class="dialog_diy"
  9646. >
  9647. <div class="w_name">
  9648. 学生姓名:<span>{{ sStudent.student }}</span>
  9649. </div>
  9650. <div class="evalCss">
  9651. <div class="nav">请选择星星进行评分</div>
  9652. <div class="middleBox" v-if="eScore.eStar">
  9653. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9654. <div class="nameAndrate">
  9655. <div>{{ e.value }}</div>
  9656. <el-rate
  9657. v-model="eScore.eStar[eIndex]"
  9658. :disabled="isStar"
  9659. ></el-rate>
  9660. </div>
  9661. <div v-if="e.detail">{{ e.detail }}</div>
  9662. </div>
  9663. <div class="easy_comment" v-if="false">
  9664. <div
  9665. v-for="(p, pIndex) in PlTextList"
  9666. :key="pIndex"
  9667. @click="fastText(p, 2)"
  9668. >
  9669. {{ p }}
  9670. </div>
  9671. </div>
  9672. <div class="bz">
  9673. <textarea
  9674. :disabled="isStar"
  9675. rows="4"
  9676. class="pj"
  9677. style="
  9678. padding: 10px 5px;
  9679. width: 70%;
  9680. background: #f7f6f9;
  9681. font-size: 14px;
  9682. text-indent: 10px;
  9683. "
  9684. cols
  9685. v-model="eScore.eBzText"
  9686. placeholder="请输入评价内容..."
  9687. ></textarea>
  9688. </div>
  9689. </div>
  9690. </div>
  9691. <div slot="footer">
  9692. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9693. >取 消</el-button
  9694. >
  9695. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9696. >确 定</el-button
  9697. >
  9698. </div>
  9699. </el-dialog>
  9700. <el-dialog
  9701. title="选择匹配"
  9702. :visible.sync="dialogVisibleSelect"
  9703. :append-to-body="true"
  9704. width="90%"
  9705. :before-close="handleClose"
  9706. class="dialog_diy dialog_diy3"
  9707. >
  9708. <div v-if="selectJson">
  9709. <div class="select_box2">
  9710. <div class="select_box2_title">
  9711. <div>选择匹配</div>
  9712. <div>请选择对应的答案进行答题!</div>
  9713. </div>
  9714. <div class="select_box2_box">
  9715. <div class="select_box2_img">
  9716. <img
  9717. :src="selectJson.url"
  9718. @click="previewImg(selectJson.url)"
  9719. alt=""
  9720. />
  9721. </div>
  9722. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9723. <div style="padding-top: 15px">
  9724. <div class="select_answer_title" v-if="isSelect">
  9725. {{ selectAnswer.stu }}
  9726. </div>
  9727. <div class="select_answer_title" v-else>
  9728. 根据题目选择对应答案
  9729. </div>
  9730. <div
  9731. class="select_box2_answer_box"
  9732. v-for="(item2, checkIndex) in selectJson.select"
  9733. :key="checkIndex"
  9734. >
  9735. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9736. <el-select
  9737. :disabled="isSelect"
  9738. v-model="selectAnswer.answer[checkIndex]"
  9739. placeholder="请选择正确答案"
  9740. >
  9741. <el-option
  9742. v-for="(e, eIndex) in selectJson.select"
  9743. :key="eIndex"
  9744. :label="e"
  9745. :value="eIndex"
  9746. >
  9747. </el-option>
  9748. </el-select>
  9749. </div>
  9750. </div>
  9751. <div
  9752. class="rightAnswerCss"
  9753. v-if="isSelect && (tType == 1 || tType == 4)"
  9754. >
  9755. <div
  9756. v-for="(a, aIndex) in selectJson.answer"
  9757. :key="aIndex"
  9758. class="rightAnswer"
  9759. >
  9760. <div
  9761. v-if="selectAnswer.answer[aIndex] === a"
  9762. style="color: #767de1"
  9763. >
  9764. 回答正确
  9765. </div>
  9766. <div v-else>回答错误</div>
  9767. <div
  9768. style="margin-left: 10px"
  9769. v-if="selectAnswer.answer[aIndex] !== a"
  9770. >
  9771. 正确答案:
  9772. </div>
  9773. <div
  9774. :class="
  9775. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9776. "
  9777. >
  9778. {{ selectJson.select[a] }}
  9779. </div>
  9780. </div>
  9781. </div>
  9782. </div>
  9783. <div class="upAnswerCss">
  9784. <el-button
  9785. type="primary"
  9786. @click="addSelectAnswer"
  9787. v-if="!isSelect"
  9788. >提交答案</el-button
  9789. >
  9790. </div>
  9791. </div>
  9792. </div>
  9793. </div>
  9794. </el-dialog>
  9795. <el-dialog
  9796. title="选择匹配"
  9797. :visible.sync="dialogVisibleSelectTeacher"
  9798. :append-to-body="true"
  9799. width="90%"
  9800. :before-close="handleClose"
  9801. class="dialog_diy dialog_diy3"
  9802. >
  9803. <div v-if="selectJson">
  9804. <div class="w_name">
  9805. 学生姓名:<span>{{ sStudent.student }}</span>
  9806. </div>
  9807. <div class="select_box2">
  9808. <div class="select_box2_title">
  9809. <div>选择匹配</div>
  9810. <div>请选择对应的答案进行答题!</div>
  9811. </div>
  9812. <div class="select_box2_box">
  9813. <div class="select_box2_img">
  9814. <img
  9815. :src="selectJson.url"
  9816. @click="previewImg(selectJson.url)"
  9817. alt=""
  9818. />
  9819. </div>
  9820. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9821. <div style="padding-top: 15px">
  9822. <div class="select_answer_title" v-if="isSelect">
  9823. {{ selectAnswer.stu }}
  9824. </div>
  9825. <div class="select_answer_title" v-else>
  9826. 根据题目选择对应答案
  9827. </div>
  9828. <div
  9829. class="select_box2_answer_box"
  9830. v-for="(item2, checkIndex) in selectJson.select"
  9831. :key="checkIndex"
  9832. >
  9833. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9834. <el-select
  9835. :disabled="isSelect"
  9836. v-model="selectAnswer.answer[checkIndex]"
  9837. placeholder="请选择正确答案"
  9838. >
  9839. <el-option
  9840. v-for="(e, eIndex) in selectJson.select"
  9841. :key="eIndex"
  9842. :label="e"
  9843. :value="eIndex"
  9844. >
  9845. </el-option>
  9846. </el-select>
  9847. </div>
  9848. </div>
  9849. <div
  9850. class="rightAnswerCss"
  9851. v-if="isSelect && (tType == 1 || tType == 4)"
  9852. >
  9853. <div
  9854. v-for="(a, aIndex) in selectJson.answer"
  9855. :key="aIndex"
  9856. class="rightAnswer"
  9857. >
  9858. <div
  9859. v-if="selectAnswer.answer[aIndex] === a"
  9860. style="color: #767de1"
  9861. >
  9862. 回答正确
  9863. </div>
  9864. <div v-else>回答错误</div>
  9865. <div
  9866. style="margin-left: 10px"
  9867. v-if="selectAnswer.answer[aIndex] !== a"
  9868. >
  9869. 正确答案:
  9870. </div>
  9871. <div
  9872. :class="
  9873. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9874. "
  9875. >
  9876. {{ selectJson.select[a] }}
  9877. </div>
  9878. </div>
  9879. </div>
  9880. </div>
  9881. <div class="upAnswerCss">
  9882. <el-button
  9883. type="primary"
  9884. @click="addSelectAnswerTeacher"
  9885. v-if="!isSelect"
  9886. >提交答案</el-button
  9887. >
  9888. </div>
  9889. </div>
  9890. </div>
  9891. </div>
  9892. </el-dialog>
  9893. <el-dialog
  9894. title="教师评分"
  9895. :visible.sync="dialogVisibleScore"
  9896. :append-to-body="true"
  9897. width="800px"
  9898. :before-close="handleClose"
  9899. class="dialog_diy"
  9900. >
  9901. <div>
  9902. <div class="studentDetail">
  9903. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9904. <div class="nameAndTime">
  9905. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9906. <div>{{ commentDetail.time }}</div>
  9907. </div>
  9908. </div>
  9909. <div
  9910. class="worksAnswer"
  9911. v-if="commentDetail.works && commentDetail.type == 2"
  9912. >
  9913. {{ JSON.parse(commentDetail.works)[0].answer }}
  9914. </div>
  9915. <div
  9916. class="worksAnswer"
  9917. v-if="commentDetail.works && commentDetail.type == 1"
  9918. >
  9919. <pdf
  9920. v-if="showPDF"
  9921. :pdfUrl="pptImgUrl"
  9922. style="width: 100%; height: 520px; overflow: auto"
  9923. :class="{ fullStyle: full }"
  9924. ></pdf>
  9925. <iframe
  9926. v-else
  9927. :src="pptImgUrl"
  9928. frameborder="0"
  9929. width="100%"
  9930. height="600"
  9931. :class="{ fullStyle: full }"
  9932. ></iframe>
  9933. </div>
  9934. <div
  9935. class="worksAnswer"
  9936. v-if="commentDetail.works && commentDetail.type == 0"
  9937. >
  9938. <img
  9939. :src="commentDetail.works"
  9940. alt=""
  9941. @click="previewImg(commentDetail.works)"
  9942. />
  9943. </div>
  9944. <div
  9945. class="worksAnswer"
  9946. v-if="commentDetail.works && commentDetail.type == 3"
  9947. >
  9948. <video-player
  9949. class="video-player vjs-custom-skin"
  9950. :playsinline="true"
  9951. :options="videoDetail"
  9952. @play="onPlayerPlay($event)"
  9953. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9954. ></video-player>
  9955. </div>
  9956. <div
  9957. class="worksAnswer codeFileBox"
  9958. v-if="commentDetail.works && commentDetail.type == 12"
  9959. @click="downloadFile(commentDetail.works)"
  9960. >
  9961. <img src="../../assets/icon/codeFile.png" />
  9962. <div>点击下载文件</div>
  9963. </div>
  9964. <div
  9965. class="worksAnswer codeFileBox"
  9966. v-if="commentDetail.works && commentDetail.type == 15"
  9967. @click="
  9968. openCocoPi(
  9969. 57,
  9970. commentIndexJson.toolIndex,
  9971. commentDetail.userid,
  9972. commentDetail.sName
  9973. )
  9974. "
  9975. >
  9976. <img src="../../assets/icon/codeFile.png" />
  9977. <div>点击打开CocoPi</div>
  9978. </div>
  9979. <div
  9980. class="worksAnswer"
  9981. v-if="commentDetail.works && commentDetail.type == 13"
  9982. >
  9983. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9984. </div>
  9985. <div class="scoreBox">
  9986. <span class="t">请输入分数</span>
  9987. <el-input-number
  9988. :disabled="courseDetail.userid != userid"
  9989. v-model="wScore"
  9990. :controls="false"
  9991. :min="0"
  9992. :max="100"
  9993. ></el-input-number>
  9994. </div>
  9995. <div class="scoreDetailBox">
  9996. <span class="t">评分评论</span>
  9997. <el-input
  9998. type="textarea"
  9999. :rows="5"
  10000. :disabled="courseDetail.userid != userid"
  10001. resize="none"
  10002. v-model="scoreDetail"
  10003. placeholder="请输入对学生的评价"
  10004. >
  10005. </el-input>
  10006. </div>
  10007. </div>
  10008. <span slot="footer" class="dialog-footer">
  10009. <el-button
  10010. @click="
  10011. (dialogVisibleScore = false),
  10012. (commentIndexJson = {}),
  10013. videoDetail.sources && videoDetail.sources[0]
  10014. ? (videoDetail.sources[0].src = '')
  10015. : ''
  10016. "
  10017. >取 消</el-button
  10018. >
  10019. <el-button
  10020. type="primary"
  10021. v-if="courseDetail.userid == userid"
  10022. @click="scoreWork(commentDetail.wid)"
  10023. >确 定
  10024. </el-button>
  10025. </span>
  10026. </el-dialog>
  10027. <el-dialog
  10028. title="排序"
  10029. :visible.sync="dialogVisibleSentence"
  10030. :append-to-body="true"
  10031. width="1000px"
  10032. :before-close="handleClose"
  10033. class="dialog_diy dialog_diy3"
  10034. >
  10035. <div>
  10036. <div class="sentenBox">
  10037. <div
  10038. v-for="(st, stIndex) in sentenceList"
  10039. :key="stIndex"
  10040. style="padding-bottom: 20px"
  10041. >
  10042. <div
  10043. style="padding: 15px 0 10px 20px"
  10044. class="sentenceTitle"
  10045. :index="stIndex + 1"
  10046. >
  10047. 题目{{ stIndex + 1 }}:请选择正确顺序
  10048. </div>
  10049. <div class="cardList" v-if="st.chooseSenList">
  10050. <div class="cardBox">
  10051. <div
  10052. v-for="(r, rIndex) in st.chooseSenList"
  10053. :key="rIndex"
  10054. @click="returnCard(r, stIndex, rIndex)"
  10055. >
  10056. <el-tooltip
  10057. class="item"
  10058. effect="light"
  10059. :content="r"
  10060. placement="top"
  10061. v-if="r != '' && r != undefined"
  10062. >
  10063. <div
  10064. :class="{
  10065. isCard: r,
  10066. isChooseCard: r == '' || r == undefined,
  10067. }"
  10068. >
  10069. <div>{{ r }}</div>
  10070. </div>
  10071. </el-tooltip>
  10072. <div
  10073. :class="{
  10074. isCard: r,
  10075. isChooseCard: r == '' || r == undefined,
  10076. }"
  10077. v-else
  10078. >
  10079. <div>{{ r }}</div>
  10080. </div>
  10081. </div>
  10082. </div>
  10083. </div>
  10084. <div class="cardList" v-if="st.addChangeSen">
  10085. <div class="cardBox">
  10086. <div
  10087. v-for="(s, sIndex) in st.addChangeSen"
  10088. :key="sIndex"
  10089. @click="setRightAnswer(s, stIndex, sIndex)"
  10090. >
  10091. <el-tooltip
  10092. class="item"
  10093. effect="light"
  10094. :content="s"
  10095. placement="top"
  10096. v-if="s != '' && s != undefined"
  10097. >
  10098. <div
  10099. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10100. >
  10101. <div>{{ s }}</div>
  10102. </div>
  10103. </el-tooltip>
  10104. <div
  10105. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10106. v-else
  10107. >
  10108. <div>{{ s }}</div>
  10109. </div>
  10110. </div>
  10111. </div>
  10112. </div>
  10113. </div>
  10114. </div>
  10115. </div>
  10116. <span slot="footer" class="dialog-footer">
  10117. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10118. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10119. </span>
  10120. </el-dialog>
  10121. <el-dialog
  10122. title="排序"
  10123. :visible.sync="dialogVisibleSentenceTeacher"
  10124. :append-to-body="true"
  10125. width="1000px"
  10126. :before-close="handleClose"
  10127. class="dialog_diy dialog_diy3"
  10128. >
  10129. <div>
  10130. <div class="w_name">
  10131. 学生姓名:<span>{{ sStudent.student }}</span>
  10132. </div>
  10133. <div class="sentenBox">
  10134. <div
  10135. v-for="(st, stIndex) in sentenceList"
  10136. :key="stIndex"
  10137. style="padding-bottom: 20px"
  10138. >
  10139. <div
  10140. style="padding: 15px 0 10px 20px"
  10141. class="sentenceTitle"
  10142. :index="stIndex + 1"
  10143. >
  10144. 题目{{ stIndex + 1 }}:请选择正确顺序
  10145. </div>
  10146. <div class="cardList" v-if="st.chooseSenList">
  10147. <div class="cardBox">
  10148. <div
  10149. v-for="(r, rIndex) in st.chooseSenList"
  10150. :key="rIndex"
  10151. @click="returnCard(r, stIndex, rIndex)"
  10152. >
  10153. <el-tooltip
  10154. class="item"
  10155. effect="light"
  10156. :content="r"
  10157. placement="top"
  10158. v-if="r != '' && r != undefined"
  10159. >
  10160. <div
  10161. :class="{
  10162. isCard: r,
  10163. isChooseCard: r == '' || r == undefined,
  10164. }"
  10165. >
  10166. <div>{{ r }}</div>
  10167. </div>
  10168. </el-tooltip>
  10169. <div
  10170. :class="{
  10171. isCard: r,
  10172. isChooseCard: r == '' || r == undefined,
  10173. }"
  10174. v-else
  10175. >
  10176. <div>{{ r }}</div>
  10177. </div>
  10178. </div>
  10179. </div>
  10180. </div>
  10181. <div class="cardList" v-if="st.addChangeSen">
  10182. <div class="cardBox">
  10183. <div
  10184. v-for="(s, sIndex) in st.addChangeSen"
  10185. :key="sIndex"
  10186. @click="setRightAnswer(s, stIndex, sIndex)"
  10187. >
  10188. <el-tooltip
  10189. class="item"
  10190. effect="light"
  10191. :content="s"
  10192. placement="top"
  10193. v-if="s != '' && s != undefined"
  10194. >
  10195. <div
  10196. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10197. >
  10198. <div>{{ s }}</div>
  10199. </div>
  10200. </el-tooltip>
  10201. <div
  10202. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10203. v-else
  10204. >
  10205. <div>{{ s }}</div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. </div>
  10210. </div>
  10211. </div>
  10212. </div>
  10213. <span slot="footer" class="dialog-footer">
  10214. <el-button @click="dialogVisibleSentenceTeacher = false"
  10215. >取 消</el-button
  10216. >
  10217. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10218. </span>
  10219. </el-dialog>
  10220. <el-dialog
  10221. title="排序"
  10222. :visible.sync="dialogVisibleSentence1"
  10223. :append-to-body="true"
  10224. width="1000px"
  10225. :before-close="handleClose"
  10226. class="dialog_diy dialog_diy3"
  10227. >
  10228. <div>
  10229. <div class="sentenBox">
  10230. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10231. {{ sentenceList1.stuName }}的作业
  10232. </div>
  10233. <div
  10234. v-for="(st, stIndex) in sentenceList1"
  10235. :key="stIndex"
  10236. style="padding-bottom: 20px"
  10237. >
  10238. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10239. 第{{ stIndex + 1 }}题
  10240. </div>
  10241. <div class="isWrong">
  10242. <div class="cardList1" v-if="st.chooseSenList">
  10243. <div class="cardBox">
  10244. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10245. <el-tooltip
  10246. class="item"
  10247. effect="light"
  10248. :content="s"
  10249. placement="top"
  10250. >
  10251. <div class="isCard">
  10252. <div>{{ s }}</div>
  10253. </div>
  10254. </el-tooltip>
  10255. </div>
  10256. </div>
  10257. <div class="cardAnswerBox">
  10258. 组成句子:{{ st.chooseSenList.join(" ") }}
  10259. </div>
  10260. </div>
  10261. <div v-if="tType == 2" class="isTj">
  10262. <div class="isTjImg">
  10263. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10264. </div>
  10265. <div>已提交</div>
  10266. </div>
  10267. <div
  10268. class="answerRight isTj"
  10269. v-if="
  10270. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10271. (tType == 1 || tType == 4)
  10272. "
  10273. >
  10274. <div class="isTjImg">
  10275. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10276. </div>
  10277. <div>回答正确</div>
  10278. </div>
  10279. <div
  10280. class="answerRight isTj"
  10281. v-if="
  10282. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10283. (tType == 1 || tType == 4)
  10284. "
  10285. >
  10286. <div class="isTjImg">
  10287. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10288. </div>
  10289. <div>回答错误</div>
  10290. </div>
  10291. </div>
  10292. <div
  10293. v-if="
  10294. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10295. (tType == 1 || tType == 4)
  10296. "
  10297. >
  10298. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10299. <div
  10300. class="cardList"
  10301. v-if="st.rightAnswer"
  10302. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10303. >
  10304. <div class="cardBox">
  10305. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10306. <el-tooltip
  10307. class="item"
  10308. effect="light"
  10309. :content="r"
  10310. placement="top"
  10311. >
  10312. <div class="isCard1">
  10313. <div>{{ r }}</div>
  10314. </div>
  10315. </el-tooltip>
  10316. </div>
  10317. </div>
  10318. <div class="cardAnswerBox">
  10319. 组成句子:{{ st.rightAnswer.join(" ") }}
  10320. </div>
  10321. </div>
  10322. </div>
  10323. </div>
  10324. </div>
  10325. </div>
  10326. <span slot="footer" class="dialog-footer">
  10327. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10328. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10329. >确 定</el-button
  10330. >
  10331. </span>
  10332. </el-dialog>
  10333. <el-dialog
  10334. title="教师提交作业"
  10335. :visible.sync="dialogVisibleWorks"
  10336. :append-to-body="true"
  10337. width="500px"
  10338. :before-close="handleClose"
  10339. class="dialog_change"
  10340. >
  10341. <div class="marginT">
  10342. <div class="w_name">
  10343. 学生姓名:<span>{{ sStudent.student }}</span>
  10344. </div>
  10345. <div>上传文件</div>
  10346. <div
  10347. class="chapter_add"
  10348. @click="addImg($event)"
  10349. v-if="studyJuri[0].cover.length == 0"
  10350. >
  10351. <div class="up_photo">
  10352. <img src="../../assets/uploadImg2.png" alt />
  10353. </div>
  10354. <!-- <input
  10355. type="file"
  10356. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10357. style="display: none"
  10358. @change="beforeUpload1($event, 1)"
  10359. /> -->
  10360. <input
  10361. type="file"
  10362. accept="*"
  10363. style="display: none"
  10364. @change="beforeUpload1($event, 1)"
  10365. />
  10366. </div>
  10367. <!-- capture="camera" -->
  10368. <div
  10369. class="chapter_add"
  10370. style="
  10371. display: flex;
  10372. width: 100%;
  10373. flex-direction: row;
  10374. flex-wrap: wrap;
  10375. justify-content: flex-start;
  10376. padding: 15px 0;
  10377. "
  10378. v-if="studyJuri[0].cover.length > 0"
  10379. >
  10380. <div class="upCover">
  10381. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10382. <img :src="word" alt v-else-if="fileType == 1" />
  10383. <img :src="video" alt v-else-if="fileType == 2" />
  10384. <img :src="word2" alt v-else-if="fileType == 3" />
  10385. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10386. <div class="deleteWord" @click="clean(1)">
  10387. <img src="../../assets/icon/deleteWorks.png" alt />
  10388. </div>
  10389. </div>
  10390. </div>
  10391. </div>
  10392. <div
  10393. class="upload_send"
  10394. @click="addCourseWorksTeacher(taskCount)"
  10395. v-if="!proVisible"
  10396. >
  10397. 提交
  10398. </div>
  10399. </el-dialog>
  10400. <ImgDraw
  10401. :drawShow="drawShow"
  10402. @closeDraw="closeDraw"
  10403. @addImgDraw="addImgDraw"
  10404. :bg="bg"
  10405. ></ImgDraw>
  10406. <el-dialog
  10407. title="表格"
  10408. :visible.sync="dialogVisibleTable"
  10409. :append-to-body="true"
  10410. width="95%"
  10411. :before-close="handleClose"
  10412. class="dialog_diy"
  10413. >
  10414. <el-form>
  10415. <div
  10416. style="
  10417. display: flex;
  10418. align-items: center;
  10419. justify-content: space-between;
  10420. "
  10421. >
  10422. <span>表格内容</span>
  10423. <el-button type="primary" size="small" @click="returnTableText"
  10424. >还原模板</el-button
  10425. >
  10426. </div>
  10427. <Table
  10428. v-model="tableJson.text"
  10429. @change="change"
  10430. v-if="dialogVisibleTable"
  10431. ></Table>
  10432. </el-form>
  10433. <span slot="footer" class="dialog-footer">
  10434. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10435. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10436. </span>
  10437. </el-dialog>
  10438. <el-dialog
  10439. title="表格"
  10440. :visible.sync="dialogVisibleTableTeacher"
  10441. :append-to-body="true"
  10442. width="95%"
  10443. :before-close="handleClose"
  10444. class="dialog_diy"
  10445. >
  10446. <el-form>
  10447. <div class="w_name">
  10448. 学生姓名:<span>{{ sStudent.student }}</span>
  10449. </div>
  10450. <div>表格内容</div>
  10451. <Table
  10452. v-model="tableJson.text"
  10453. @change="change"
  10454. v-if="dialogVisibleTableTeacher"
  10455. ></Table>
  10456. </el-form>
  10457. <span slot="footer" class="dialog-footer">
  10458. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10459. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10460. </span>
  10461. </el-dialog>
  10462. <el-dialog
  10463. title="文档"
  10464. :visible.sync="dialogVisibleWord"
  10465. :append-to-body="true"
  10466. width="95%"
  10467. :before-close="handleClose"
  10468. class="dialog_diy"
  10469. >
  10470. <el-form>
  10471. <div
  10472. style="
  10473. display: flex;
  10474. align-items: center;
  10475. justify-content: space-between;
  10476. "
  10477. >
  10478. <span>文档内容</span>
  10479. <el-button type="primary" size="small" @click="returnWordText"
  10480. >还原模板</el-button
  10481. >
  10482. </div>
  10483. <editor-bar
  10484. v-model="wordJson.text"
  10485. v-if="dialogVisibleWord"
  10486. ></editor-bar>
  10487. </el-form>
  10488. <span slot="footer" class="dialog-footer">
  10489. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10490. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10491. </span>
  10492. </el-dialog>
  10493. <el-dialog
  10494. title="文档"
  10495. :visible.sync="dialogVisibleWordTeacher"
  10496. :append-to-body="true"
  10497. width="95%"
  10498. :before-close="handleClose"
  10499. class="dialog_diy"
  10500. >
  10501. <el-form>
  10502. <div class="w_name">
  10503. 学生姓名:<span>{{ sStudent.student }}</span>
  10504. </div>
  10505. <div>文档内容</div>
  10506. <editor-bar
  10507. v-model="wordJson.text"
  10508. v-if="dialogVisibleWordTeacher"
  10509. ></editor-bar>
  10510. </el-form>
  10511. <span slot="footer" class="dialog-footer">
  10512. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10513. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10514. </span>
  10515. </el-dialog>
  10516. <el-dialog
  10517. title="表格"
  10518. :visible.sync="dialogVisibleTable2"
  10519. :append-to-body="true"
  10520. width="95%"
  10521. :before-close="handleClose"
  10522. class="dialog_diy"
  10523. >
  10524. <el-form>
  10525. <div class="cont" v-html="tableJson.text"></div>
  10526. </el-form>
  10527. <span slot="footer" class="dialog-footer">
  10528. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10529. </span>
  10530. </el-dialog>
  10531. <el-dialog
  10532. title="文档"
  10533. :visible.sync="dialogVisibleTable3"
  10534. :append-to-body="true"
  10535. width="95%"
  10536. :before-close="handleClose"
  10537. class="dialog_diy"
  10538. >
  10539. <el-form>
  10540. <div class="cont" v-html="tableJson.text"></div>
  10541. </el-form>
  10542. <span slot="footer" class="dialog-footer">
  10543. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10544. </span>
  10545. </el-dialog>
  10546. <el-dialog
  10547. title="分组设置"
  10548. :visible.sync="dialogVisibleGroup"
  10549. :append-to-body="true"
  10550. width="95%"
  10551. :before-close="handleClose"
  10552. class="dialog_diy"
  10553. >
  10554. <div v-if="dialogVisibleGroup">
  10555. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10556. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10557. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10558. </div>
  10559. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10560. @click="lockChair">
  10561. 锁定位置
  10562. </div>
  10563. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10564. 解锁位置
  10565. </div> -->
  10566. <div class="group_switch">
  10567. <span>开放选座</span>
  10568. <el-switch
  10569. v-model="islock"
  10570. active-text=""
  10571. class="switchCss"
  10572. @change="lockChair"
  10573. ></el-switch>
  10574. </div>
  10575. <div
  10576. type="primary"
  10577. @click="updateGroup"
  10578. class="returnBtn"
  10579. style="background-color: #225bc7"
  10580. >
  10581. 分组设置
  10582. </div>
  10583. </div>
  10584. <div>
  10585. <div
  10586. class="g_d_box"
  10587. v-if="groupJson.group && groupStudent[toolindex]"
  10588. >
  10589. <div
  10590. class="g_d_group"
  10591. v-for="(g, gindex) in groupJson.group"
  10592. :key="gindex"
  10593. >
  10594. <div class="g_d_group_chair">
  10595. <div v-if="groupJson.number > 1">
  10596. <span
  10597. :class="{
  10598. isChair:
  10599. groupStudent[toolindex][gindex] &&
  10600. groupStudent[toolindex][gindex][0],
  10601. updateChair:
  10602. courseDetail.userid == userid &&
  10603. groupStudent[toolindex][gindex] &&
  10604. groupStudent[toolindex][gindex][0] &&
  10605. groupJson.islock == 2,
  10606. }"
  10607. ><span
  10608. class="updateChairBtn"
  10609. @click="
  10610. updateGroupChair(
  10611. groupStudent[toolindex][gindex] &&
  10612. groupStudent[toolindex][gindex][0]
  10613. )
  10614. "
  10615. >修改</span
  10616. ></span
  10617. ><span>{{
  10618. groupStudent[toolindex][gindex] &&
  10619. groupStudent[toolindex][gindex][0]
  10620. ? groupStudent[toolindex][gindex] &&
  10621. groupStudent[toolindex][gindex][0].name
  10622. : "空位置"
  10623. }}</span>
  10624. </div>
  10625. <div v-if="groupJson.number > 4">
  10626. <span
  10627. :class="{
  10628. isChair:
  10629. groupStudent[toolindex][gindex] &&
  10630. groupStudent[toolindex][gindex][4],
  10631. updateChair:
  10632. courseDetail.userid == userid &&
  10633. groupStudent[toolindex][gindex] &&
  10634. groupStudent[toolindex][gindex][4] &&
  10635. groupJson.islock == 2,
  10636. }"
  10637. ><span
  10638. class="updateChairBtn"
  10639. @click="
  10640. updateGroupChair(
  10641. groupStudent[toolindex][gindex] &&
  10642. groupStudent[toolindex][gindex][4]
  10643. )
  10644. "
  10645. >修改</span
  10646. ></span
  10647. ><span>{{
  10648. groupStudent[toolindex][gindex] &&
  10649. groupStudent[toolindex][gindex][4]
  10650. ? groupStudent[toolindex][gindex] &&
  10651. groupStudent[toolindex][gindex][4].name
  10652. : "空位置"
  10653. }}</span>
  10654. </div>
  10655. <div v-if="groupJson.number > 8">
  10656. <span
  10657. :class="{
  10658. isChair:
  10659. groupStudent[toolindex][gindex] &&
  10660. groupStudent[toolindex][gindex][8],
  10661. updateChair:
  10662. courseDetail.userid == userid &&
  10663. groupStudent[toolindex][gindex] &&
  10664. groupStudent[toolindex][gindex][8] &&
  10665. groupJson.islock == 2,
  10666. }"
  10667. ><span
  10668. class="updateChairBtn"
  10669. @click="
  10670. updateGroupChair(
  10671. groupStudent[toolindex][gindex] &&
  10672. groupStudent[toolindex][gindex][8]
  10673. )
  10674. "
  10675. >修改</span
  10676. ></span
  10677. ><span>{{
  10678. groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][8]
  10680. ? groupStudent[toolindex][gindex] &&
  10681. groupStudent[toolindex][gindex][8].name
  10682. : "空位置"
  10683. }}</span>
  10684. </div>
  10685. </div>
  10686. <div class="g_d_group_tableBox">
  10687. <div class="g_d_group_chair2">
  10688. <div v-if="groupJson.number > 2">
  10689. <span
  10690. :class="{
  10691. isChair:
  10692. groupStudent[toolindex][gindex] &&
  10693. groupStudent[toolindex][gindex][2],
  10694. updateChair:
  10695. courseDetail.userid == userid &&
  10696. groupStudent[toolindex][gindex] &&
  10697. groupStudent[toolindex][gindex][2] &&
  10698. groupJson.islock == 2,
  10699. }"
  10700. ><span
  10701. class="updateChairBtn"
  10702. @click="
  10703. updateGroupChair(
  10704. groupStudent[toolindex][gindex] &&
  10705. groupStudent[toolindex][gindex][2]
  10706. )
  10707. "
  10708. >修改</span
  10709. ></span
  10710. ><span>{{
  10711. groupStudent[toolindex][gindex] &&
  10712. groupStudent[toolindex][gindex][2]
  10713. ? groupStudent[toolindex][gindex] &&
  10714. groupStudent[toolindex][gindex][2].name
  10715. : "空位置"
  10716. }}</span>
  10717. </div>
  10718. <div v-if="groupJson.number > 6">
  10719. <span
  10720. :class="{
  10721. isChair:
  10722. groupStudent[toolindex][gindex] &&
  10723. groupStudent[toolindex][gindex][6],
  10724. updateChair:
  10725. courseDetail.userid == userid &&
  10726. groupStudent[toolindex][gindex] &&
  10727. groupStudent[toolindex][gindex][6] &&
  10728. groupJson.islock == 2,
  10729. }"
  10730. ><span
  10731. class="updateChairBtn"
  10732. @click="
  10733. updateGroupChair(
  10734. groupStudent[toolindex][gindex] &&
  10735. groupStudent[toolindex][gindex][6]
  10736. )
  10737. "
  10738. >修改</span
  10739. ></span
  10740. ><span>{{
  10741. groupStudent[toolindex][gindex] &&
  10742. groupStudent[toolindex][gindex][6]
  10743. ? groupStudent[toolindex][gindex] &&
  10744. groupStudent[toolindex][gindex][6].name
  10745. : "空位置"
  10746. }}</span>
  10747. </div>
  10748. </div>
  10749. <div class="g_d_group_table">
  10750. <div>
  10751. {{ g.name }}
  10752. </div>
  10753. <div>
  10754. <div
  10755. v-if="
  10756. courseDetail.userid == userid && groupJson.islock == 2
  10757. "
  10758. @click="deleteGroupChair(gindex)"
  10759. >
  10760. 移除组员
  10761. </div>
  10762. <div
  10763. @click="selectGroup(gindex)"
  10764. v-else-if="
  10765. groupStudentUid[toolindex] &&
  10766. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10767. "
  10768. >
  10769. 加入分组
  10770. </div>
  10771. <div
  10772. @click="
  10773. exitGroup(
  10774. groupStudent[toolindex][gindex] &&
  10775. groupStudent[toolindex][gindex][
  10776. groupStudentUid[toolindex][gindex].indexOf(userid)
  10777. ].id
  10778. )
  10779. "
  10780. v-else-if="
  10781. groupStudentUid[toolindex] &&
  10782. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10783. "
  10784. >
  10785. 退出分组
  10786. </div>
  10787. </div>
  10788. </div>
  10789. <div class="g_d_group_chair2">
  10790. <div v-if="groupJson.number > 3">
  10791. <span
  10792. :class="{
  10793. isChair:
  10794. groupStudent[toolindex][gindex] &&
  10795. groupStudent[toolindex][gindex][3],
  10796. updateChair:
  10797. courseDetail.userid == userid &&
  10798. groupStudent[toolindex][gindex] &&
  10799. groupStudent[toolindex][gindex][3] &&
  10800. groupJson.islock == 2,
  10801. }"
  10802. ><span
  10803. class="updateChairBtn"
  10804. @click="
  10805. updateGroupChair(
  10806. groupStudent[toolindex][gindex] &&
  10807. groupStudent[toolindex][gindex][3]
  10808. )
  10809. "
  10810. >修改</span
  10811. ></span
  10812. ><span>{{
  10813. groupStudent[toolindex][gindex] &&
  10814. groupStudent[toolindex][gindex][3]
  10815. ? groupStudent[toolindex][gindex] &&
  10816. groupStudent[toolindex][gindex][3].name
  10817. : "空位置"
  10818. }}</span>
  10819. </div>
  10820. <div v-if="groupJson.number > 7">
  10821. <span
  10822. :class="{
  10823. isChair:
  10824. groupStudent[toolindex][gindex] &&
  10825. groupStudent[toolindex][gindex][7],
  10826. updateChair:
  10827. courseDetail.userid == userid &&
  10828. groupStudent[toolindex][gindex] &&
  10829. groupStudent[toolindex][gindex][7] &&
  10830. groupJson.islock == 2,
  10831. }"
  10832. ><span
  10833. class="updateChairBtn"
  10834. @click="
  10835. updateGroupChair(
  10836. groupStudent[toolindex][gindex] &&
  10837. groupStudent[toolindex][gindex][7]
  10838. )
  10839. "
  10840. >修改</span
  10841. ></span
  10842. ><span>{{
  10843. groupStudent[toolindex][gindex] &&
  10844. groupStudent[toolindex][gindex][7]
  10845. ? groupStudent[toolindex][gindex] &&
  10846. groupStudent[toolindex][gindex][7].name
  10847. : "空位置"
  10848. }}</span>
  10849. </div>
  10850. </div>
  10851. </div>
  10852. <div class="g_d_group_chair">
  10853. <div v-if="groupJson.number > 1">
  10854. <span
  10855. :class="{
  10856. isChair:
  10857. groupStudent[toolindex][gindex] &&
  10858. groupStudent[toolindex][gindex][1],
  10859. updateChair:
  10860. courseDetail.userid == userid &&
  10861. groupStudent[toolindex][gindex] &&
  10862. groupStudent[toolindex][gindex][1] &&
  10863. groupJson.islock == 2,
  10864. }"
  10865. ><span
  10866. class="updateChairBtn"
  10867. @click="
  10868. updateGroupChair(
  10869. groupStudent[toolindex][gindex] &&
  10870. groupStudent[toolindex][gindex][1]
  10871. )
  10872. "
  10873. >修改</span
  10874. ></span
  10875. ><span>{{
  10876. groupStudent[toolindex][gindex] &&
  10877. groupStudent[toolindex][gindex][1]
  10878. ? groupStudent[toolindex][gindex] &&
  10879. groupStudent[toolindex][gindex][1].name
  10880. : "空位置"
  10881. }}</span>
  10882. </div>
  10883. <div v-if="groupJson.number > 5">
  10884. <span
  10885. :class="{
  10886. isChair:
  10887. groupStudent[toolindex][gindex] &&
  10888. groupStudent[toolindex][gindex][5],
  10889. updateChair:
  10890. courseDetail.userid == userid &&
  10891. groupStudent[toolindex][gindex] &&
  10892. groupStudent[toolindex][gindex][5] &&
  10893. groupJson.islock == 2,
  10894. }"
  10895. ><span
  10896. class="updateChairBtn"
  10897. @click="
  10898. updateGroupChair(
  10899. groupStudent[toolindex][gindex] &&
  10900. groupStudent[toolindex][gindex][5]
  10901. )
  10902. "
  10903. >修改</span
  10904. ></span
  10905. ><span>{{
  10906. groupStudent[toolindex][gindex] &&
  10907. groupStudent[toolindex][gindex][5]
  10908. ? groupStudent[toolindex][gindex] &&
  10909. groupStudent[toolindex][gindex][5].name
  10910. : "空位置"
  10911. }}</span>
  10912. </div>
  10913. <div v-if="groupJson.number > 9">
  10914. <span
  10915. :class="{
  10916. isChair:
  10917. groupStudent[toolindex][gindex] &&
  10918. groupStudent[toolindex][gindex][9],
  10919. updateChair:
  10920. courseDetail.userid == userid &&
  10921. groupStudent[toolindex][gindex] &&
  10922. groupStudent[toolindex][gindex][9] &&
  10923. groupJson.islock == 2,
  10924. }"
  10925. ><span
  10926. class="updateChairBtn"
  10927. @click="
  10928. updateGroupChair(
  10929. groupStudent[toolindex][gindex] &&
  10930. groupStudent[toolindex][gindex][9]
  10931. )
  10932. "
  10933. >修改</span
  10934. ></span
  10935. ><span>{{
  10936. groupStudent[toolindex][gindex] &&
  10937. groupStudent[toolindex][gindex][9]
  10938. ? groupStudent[toolindex][gindex] &&
  10939. groupStudent[toolindex][gindex][9].name
  10940. : "空位置"
  10941. }}</span>
  10942. </div>
  10943. </div>
  10944. </div>
  10945. </div>
  10946. </div>
  10947. </div>
  10948. <span slot="footer" class="dialog-footer">
  10949. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10950. </span>
  10951. </el-dialog>
  10952. <el-dialog
  10953. title="分组设置"
  10954. :visible.sync="dialogVisibleGroup2"
  10955. :append-to-body="true"
  10956. width="650px"
  10957. :before-close="handleClose"
  10958. class="dialog_diy"
  10959. >
  10960. <div class="groupBox">
  10961. <div v-if="groupJson2.group" class="groupContent">
  10962. <div class="groupTitle">请设置小组数量及名称</div>
  10963. <div
  10964. v-for="(item, index) in groupJson2.group"
  10965. :key="index"
  10966. class="groupName"
  10967. >
  10968. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10969. <el-input
  10970. v-model="item.name"
  10971. placeholder="请输入名称..."
  10972. style="width: 250px"
  10973. ></el-input>
  10974. <!-- <div class="groupBtn">
  10975. <el-button type="primary" size="small" @click="addGroup(index)">
  10976. 添加</el-button>
  10977. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10978. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10979. </div> -->
  10980. </div>
  10981. </div>
  10982. <div class="groupContent">
  10983. <div class="groupTitle">请设置每组人数</div>
  10984. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10985. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10986. <el-input
  10987. v-model="groupJson.number"
  10988. style="width: 150px"
  10989. placeholder="请输入2-10的数字"
  10990. @change="numberPan"
  10991. ></el-input>
  10992. </div>
  10993. </div>
  10994. <span slot="footer" class="dialog-footer">
  10995. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10996. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10997. </span>
  10998. </el-dialog>
  10999. <el-dialog
  11000. title="作业提交"
  11001. :visible.sync="dialogVisibleGroupWork"
  11002. :append-to-body="true"
  11003. width="500px"
  11004. :before-close="handleClose"
  11005. class="dialog_change"
  11006. >
  11007. <div class="marginT">
  11008. <div>上传文件</div>
  11009. <div
  11010. class="chapter_add"
  11011. @click="addImg($event)"
  11012. v-if="studyJuri[0].cover.length == 0"
  11013. >
  11014. <div class="up_photo">
  11015. <img src="../../assets/icon/uploadImg.png" alt />
  11016. </div>
  11017. <!-- <input
  11018. type="file"
  11019. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11020. style="display: none"
  11021. @change="beforeUpload1($event, 1)"
  11022. /> -->
  11023. <input
  11024. type="file"
  11025. accept="*"
  11026. style="display: none"
  11027. @change="beforeUpload1($event, 1)"
  11028. />
  11029. </div>
  11030. <!-- capture="camera" -->
  11031. <div
  11032. class="chapter_add"
  11033. style="
  11034. display: flex;
  11035. width: 100%;
  11036. flex-direction: row;
  11037. flex-wrap: wrap;
  11038. justify-content: flex-start;
  11039. padding: 15px 0;
  11040. "
  11041. v-if="studyJuri[0].cover.length > 0"
  11042. >
  11043. <div class="upCover">
  11044. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11045. <img :src="word" alt v-else-if="fileType == 1" />
  11046. <img :src="video" alt v-else-if="fileType == 2" />
  11047. <img :src="word2" alt v-else-if="fileType == 3" />
  11048. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11049. <div class="deleteWord" @click="clean(1)">
  11050. <img src="../../assets/icon/deleteWorks.png" alt />
  11051. </div>
  11052. </div>
  11053. </div>
  11054. </div>
  11055. <div
  11056. class="upload_send"
  11057. @click="addCourseWorks2(taskCount)"
  11058. v-if="!proVisible"
  11059. >
  11060. 提交
  11061. </div>
  11062. </el-dialog>
  11063. <el-dialog
  11064. title="修改分组"
  11065. :visible.sync="dialogVisibleUpdateGroup"
  11066. :append-to-body="true"
  11067. width="350px"
  11068. :before-close="handleClose"
  11069. class="dialog_diy"
  11070. >
  11071. <div>
  11072. <h2>
  11073. {{ this.updateGroupUser.name }}
  11074. </h2>
  11075. <div style="color: rgb(171 171 171); margin-top: 10px">
  11076. 请选择要进入的分组
  11077. </div>
  11078. <el-radio-group v-model="checkChair">
  11079. <el-radio
  11080. style="display: block; margin-top: 20px"
  11081. v-for="(item, index) in updateGroupArray"
  11082. :label="item.label"
  11083. :key="index"
  11084. >{{ item.name }}</el-radio
  11085. >
  11086. </el-radio-group>
  11087. </div>
  11088. <span slot="footer" class="dialog-footer">
  11089. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11090. <el-button type="primary" @click="updateChair">确定</el-button>
  11091. </span>
  11092. </el-dialog>
  11093. <el-dialog
  11094. title="移除组员"
  11095. :visible.sync="dialogVisibleDeleteGroup"
  11096. :append-to-body="true"
  11097. width="350px"
  11098. :before-close="handleClose"
  11099. class="dialog_diy"
  11100. >
  11101. <div>
  11102. <h2>
  11103. {{ this.deleteGroupArray.name }}
  11104. </h2>
  11105. <div style="color: rgb(171 171 171); margin-top: 10px">
  11106. 请选择要删除的组员
  11107. </div>
  11108. <el-checkbox-group v-model="checkDeleteGroup">
  11109. <el-checkbox
  11110. style="display: flex; margin-top: 20px"
  11111. v-for="(item, index) in deleteGroupUser"
  11112. :label="item.userid"
  11113. :key="index"
  11114. >{{ item.name }}</el-checkbox
  11115. >
  11116. </el-checkbox-group>
  11117. </div>
  11118. <span slot="footer" class="dialog-footer">
  11119. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11120. <el-button type="primary" @click="deleteChair">确定</el-button>
  11121. </span>
  11122. </el-dialog>
  11123. <el-dialog
  11124. title="批量上传"
  11125. :visible.sync="dialogVisiblePl"
  11126. :append-to-body="true"
  11127. width="700px"
  11128. :before-close="handleClose"
  11129. class="dialog_change"
  11130. >
  11131. <div class="marginT">
  11132. <div class="plworkBox">
  11133. <div
  11134. class="chapter_add"
  11135. style="
  11136. display: flex;
  11137. width: 150px;
  11138. flex-direction: row;
  11139. flex-wrap: wrap;
  11140. justify-content: flex-start;
  11141. margin: 0 10px 10px 0;
  11142. "
  11143. v-for="(item, index) in plworkFile"
  11144. :key="index"
  11145. >
  11146. <div class="upCover2">
  11147. <img
  11148. :src="item.url"
  11149. alt
  11150. v-if="item.fileType == 1"
  11151. @click="previewImg(item.url)"
  11152. />
  11153. <img :src="word" alt v-else-if="item.fileType == 4" />
  11154. <img :src="video" alt v-else />
  11155. <!-- <span class="picName">{{ item.name }}</span> -->
  11156. <!-- <el-input
  11157. v-model="item.username"
  11158. placeholder="请输入学生名字"
  11159. style="margin-top: 10px"
  11160. ></el-input> -->
  11161. <div
  11162. class="pl_select_box"
  11163. @click="
  11164. getUpdateMore(true, checkUpload(), item.username, index)
  11165. "
  11166. >
  11167. {{ getSName(item.username) }}
  11168. </div>
  11169. <!-- <el-select
  11170. style="margin-top: 10px"
  11171. v-model="item.username"
  11172. filterable
  11173. allow-create
  11174. placeholder="请选择学生"
  11175. >
  11176. <el-option
  11177. v-for="item1 in checkUpload()"
  11178. :key="item1.userid"
  11179. :label="item1.name ? item1.name : item1.username"
  11180. :value="item1.userid"
  11181. >
  11182. </el-option>
  11183. </el-select> -->
  11184. <div class="deleteWord" @click="clean2(index)">
  11185. <img src="../../assets/icon/deleteWorks.png" alt />
  11186. </div>
  11187. </div>
  11188. </div>
  11189. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11190. <div class="up_photo2">
  11191. <img src="../../assets/icon/plwork.png" alt />
  11192. <span>点击上传文件</span>
  11193. </div>
  11194. <input
  11195. type="file"
  11196. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11197. multiple="multiple"
  11198. style="display: none"
  11199. @change="beforeUpload3($event, 6)"
  11200. />
  11201. </div>
  11202. </div>
  11203. </div>
  11204. <!-- capture="camera" -->
  11205. <div
  11206. class="upload_send"
  11207. @click="addCourseWorksPl(taskCount)"
  11208. v-if="!proVisible2"
  11209. >
  11210. 提交
  11211. </div>
  11212. </el-dialog>
  11213. <el-dialog
  11214. title="修改名称"
  11215. :visible.sync="dialogVisibleSname"
  11216. width="500px"
  11217. :before-close="handleClose"
  11218. class="dialog_diy"
  11219. center
  11220. >
  11221. <div
  11222. style="
  11223. text-align: center;
  11224. display: flex;
  11225. align-items: center;
  11226. justify-content: center;
  11227. "
  11228. >
  11229. <span class="tian1">名称</span>
  11230. <div
  11231. class="pl_select_box"
  11232. style="margin-left: 10px; width: 200px"
  11233. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11234. >
  11235. {{ getSName(worksSName) }}
  11236. </div>
  11237. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11238. placeholder="请选择学生">
  11239. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11240. :value="item.userid">
  11241. </el-option>
  11242. </el-select> -->
  11243. <!-- <el-input
  11244. v-model="worksSName"
  11245. style="width: 250px; margin: 15px 0px"
  11246. ></el-input> -->
  11247. </div>
  11248. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11249. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11250. <el-button type="primary" @click="updateName">确 定</el-button>
  11251. </span>
  11252. </el-dialog>
  11253. <el-dialog
  11254. title="英语写作"
  11255. :visible.sync="engDialogVisible"
  11256. :append-to-body="true"
  11257. width="800px"
  11258. :before-close="handleClose"
  11259. class="dialog_diy"
  11260. >
  11261. <onlineWrite
  11262. v-if="engDialogVisible"
  11263. :englishList="englishList"
  11264. :myAnswerList1="myAnswerList1"
  11265. :userid="userid"
  11266. ref="engJson"
  11267. ></onlineWrite>
  11268. <span slot="footer" class="dialog-footer">
  11269. <el-button @click="engDialogVisible = false">取 消</el-button>
  11270. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11271. </span>
  11272. </el-dialog>
  11273. <el-dialog
  11274. title="英语写作"
  11275. :visible.sync="engUpdateDialogVisible"
  11276. :append-to-body="true"
  11277. width="800px"
  11278. :before-close="handleClose"
  11279. class="dialog_diy fullStyle"
  11280. >
  11281. <div class="engUpBox">
  11282. <div class="engUpTop">
  11283. <div class="engTitle">
  11284. <div>作文题目:</div>
  11285. <div>{{ englishList1.engTitle }}</div>
  11286. </div>
  11287. <div class="engText">
  11288. <div>作文内容:</div>
  11289. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11290. </div>
  11291. </div>
  11292. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11293. <div class="oldBox">
  11294. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11295. <div class="oldText">
  11296. <div class="detailBox">
  11297. <div class="oldDetail">
  11298. <div>标题:</div>
  11299. <div>{{ oldEnglishJson.engTitle }} </div>
  11300. </div>
  11301. <div class="oldDetail1">
  11302. <div>正文:</div>
  11303. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11304. </div>
  11305. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11306. <div>图片:</div>
  11307. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11308. </div>
  11309. </div>
  11310. </div>
  11311. </div>
  11312. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11313. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11314. <div class="oldText">
  11315. <div class="detailBox" style="position: relative;">
  11316. <div class="oldDetail">
  11317. <div>标题:</div>
  11318. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11319. <div v-else v-html="newEnglishList.engTitle"></div>
  11320. </div>
  11321. <div class="oldDetail">
  11322. <div>正文:</div>
  11323. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11324. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11325. </div>
  11326. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11327. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11328. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11329. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11334. <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">
  11335. <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>
  11336. <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>
  11337. </div>
  11338. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11339. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11340. <div class="detailBox" style="position: relative;">
  11341. <div class="oldDetail">
  11342. <div>标题:</div>
  11343. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11344. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11345. </div>
  11346. <div class="oldDetail">
  11347. <div>正文:</div>
  11348. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11349. <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText)"></div>
  11350. </div>
  11351. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11352. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11353. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11354. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11355. </div>
  11356. </div>
  11357. <div class="oldText" v-else-if="newEngIndex == -1">
  11358. <div class="detailBox" style="position: relative;">
  11359. <div class="oldDetail">
  11360. <div>标题:</div>
  11361. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11362. <div v-else v-html="newEnglishList.engTitle"></div>
  11363. </div>
  11364. <div class="oldDetail">
  11365. <div>正文:</div>
  11366. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11367. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11368. </div>
  11369. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11370. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11371. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11372. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11373. </div>
  11374. </div>
  11375. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11376. <div class="detailBox" style="position: relative;">
  11377. <div class="oldDetail">
  11378. <div>标题:</div>
  11379. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11380. <div v-else>
  11381. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11382. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11383. </div>
  11384. </div>
  11385. <div class="oldDetail">
  11386. <div>正文:</div>
  11387. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div>
  11388. <div v-else>
  11389. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11390. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText)"></div>
  11391. </div>
  11392. </div>
  11393. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11394. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11395. <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>
  11396. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11397. </div>
  11398. </div>
  11399. </div>
  11400. </div>
  11401. </div>
  11402. <span slot="footer" class="dialog-footer">
  11403. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11404. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11405. </span>
  11406. </el-dialog>
  11407. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11408. <interVideo
  11409. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11410. :videoJson="videoJson"
  11411. :userid="userid"
  11412. :id="id"
  11413. :courseType="courseType"
  11414. :taskCount="taskCount"
  11415. :toolindex="toolindex"
  11416. ></interVideo>
  11417. <UpdateMore
  11418. :dialogVisibleMember.sync="dialogVisibleMember"
  11419. :cList="uploadStudentJuri"
  11420. :userid="userid"
  11421. :searchTN="worksSName2"
  11422. @setPlname="setPlname"
  11423. ></UpdateMore>
  11424. <wordCloud
  11425. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11426. :data="wordCloudData"
  11427. ></wordCloud>
  11428. <el-dialog
  11429. title="挑人"
  11430. :visible.sync="dialogVisiblePickPeople"
  11431. width="650px"
  11432. :before-close="handleClose"
  11433. class="dialog_diy"
  11434. center
  11435. >
  11436. <div class="pick_box">
  11437. <div
  11438. class="noWorksName"
  11439. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11440. v-for="(item, index) in uploadStudentJuri"
  11441. :key="index"
  11442. @click="pickStudent(item)"
  11443. >
  11444. {{ item.name }}
  11445. </div>
  11446. </div>
  11447. </el-dialog>
  11448. </div>
  11449. </template>
  11450. <script>
  11451. import "../../common/aws-sdk-2.235.1.min.js";
  11452. // import pdf from "./components/pdf3";
  11453. import pdf from "../components/vpdf";
  11454. import AskStatic from "../components/askStatic";
  11455. import AskStatic2 from "../components/askStatic2";
  11456. import AnswerData2 from "../components/answerData2";
  11457. import AnswerData from "../components/answerData";
  11458. import EditorBar from "../tools/wangEnduit.vue";
  11459. import Table from "../tools/table.vue";
  11460. import Time from "../tools/time.vue";
  11461. import Mind from "../tools/jsmind.vue";
  11462. import Sunburst from "../tools/sunburst";
  11463. import SeeBoard from "../tools/seeBoard";
  11464. import * as imageConversion from "image-conversion";
  11465. import Audio from "../components/audio.vue";
  11466. import ImgDraw from "../tools/imgDraw/imgDraw";
  11467. import { Empty } from "element-ui";
  11468. import RecordRTC from "recordrtc";
  11469. import interVideo from "../interVideo/index.vue";
  11470. import UpdateMore from "../updateMore/updateMore.vue";
  11471. import wordCloud from "../wordCloud/index.vue";
  11472. import axios from "axios";
  11473. import JSZip from "jszip";
  11474. import FileSaver from "file-saver";
  11475. import onlineWrite from "../components/onlineWrite";
  11476. import englishEva from "../components/englishEva";
  11477. import * as Diff from 'diff'
  11478. const getFile = (url) => {
  11479. return new Promise((resolve, reject) => {
  11480. var credentials = {
  11481. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11482. secretAccessKey: "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",
  11483. }; //秘钥形式的登录上传
  11484. window.AWS.config.update(credentials);
  11485. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11486. let url2 = url;
  11487. let _url2 = "";
  11488. if (
  11489. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11490. ) {
  11491. _url2 = url2.split(
  11492. "https://view.officeapps.live.com/op/view.aspx?src="
  11493. )[1];
  11494. } else {
  11495. _url2 = url2;
  11496. }
  11497. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11498. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11499. var params = {
  11500. Bucket: "ccrb",
  11501. Key: name
  11502. };
  11503. s3.getObject(params, function (err, data) {
  11504. if (err) {
  11505. console.log(err, err.stack)
  11506. resolve({ data: 1 });
  11507. }else {
  11508. resolve({ data: data.Body });
  11509. console.log(data);
  11510. } // sxuccessful response
  11511. });
  11512. // axios({
  11513. // method: "get",
  11514. // url,
  11515. // responseType: "blob",
  11516. // })
  11517. // .then((data) => {
  11518. // resolve({ data: data.data });
  11519. // })
  11520. // .catch((error) => {
  11521. // resolve({ data: 1 });
  11522. // // reject(error.toString());
  11523. // });
  11524. });
  11525. };
  11526. export default {
  11527. components: {
  11528. EditorBar,
  11529. Time,
  11530. pdf,
  11531. AskStatic,
  11532. AskStatic2,
  11533. Mind,
  11534. Sunburst,
  11535. SeeBoard,
  11536. AnswerData2,
  11537. AnswerData,
  11538. Audio,
  11539. ImgDraw,
  11540. Table,
  11541. interVideo,
  11542. UpdateMore,
  11543. wordCloud,
  11544. onlineWrite,
  11545. englishEva,
  11546. },
  11547. data() {
  11548. return {
  11549. bg: null,
  11550. drawShow: false,
  11551. dialogVisible: false,
  11552. dialogVisiblePl: false,
  11553. commentDialogVisible: false,
  11554. dialogVisibleMember: false,
  11555. dialogVisibleWordCloud: false,
  11556. videoVisible: false,
  11557. isStar: false,
  11558. studentEvalDialogVisible: false,
  11559. studentEvalDialogVisibleTeacher: false,
  11560. dialogVisibleSelect: false,
  11561. dialogVisibleSelectTeacher: false,
  11562. dialogVisibleScore: false,
  11563. dialogVisibleSentence: false,
  11564. dialogVisibleSentenceTeacher: false,
  11565. dialogVisibleSentence1: false,
  11566. dialogVisibleWorks: false,
  11567. dialogVisibleTable: false,
  11568. dialogVisibleTableTeacher: false,
  11569. dialogVisibleWord: false,
  11570. dialogVisibleWordTeacher: false,
  11571. dialogVisibleTable2: false,
  11572. dialogVisibleTable3: false,
  11573. dialogVisibleGroupWork: false,
  11574. dialogVisibleUpdateGroup: false,
  11575. dialogVisibleDeleteGroup: false,
  11576. dialogVisibleSname: false,
  11577. dialogVisibleVideo: false,
  11578. dialogVisiblePickPeople: false,
  11579. engDialogVisible: false,
  11580. engUpdateDialogVisible: false,
  11581. engEvaDialogVisible: false,
  11582. evaEngJson: {
  11583. teacherJson: {},
  11584. studentJson: {},
  11585. message: {},
  11586. },
  11587. isNoUserid:false,
  11588. engListLength:0,
  11589. engWid:"",
  11590. newEnglishList:{
  11591. engTitle:"",
  11592. engText:"",
  11593. },
  11594. newEnglishList1:[],
  11595. oldEnglishJson:{},
  11596. oldEnglishJson1:{},
  11597. englishList1:{},
  11598. englishList:{},
  11599. myAnswerList1:{},
  11600. topHeight:0,
  11601. newEngIndex:-1,
  11602. englishToolIndex:0,
  11603. worksSName: "",
  11604. classJuri: [],
  11605. uploadStudentJuri: [],
  11606. uploadCid: "",
  11607. snameWid: "",
  11608. sStudent: {},
  11609. sTool: "",
  11610. bzText: "",
  11611. commentDetail: [],
  11612. selectAnswer: [],
  11613. videoDetail: {},
  11614. selectJson: {},
  11615. eScore: { eBzText: "", eStar: [] },
  11616. id: this.$route.query.courseId,
  11617. userid: this.$route.query.userid,
  11618. classId: this.$route.query.cid,
  11619. // courseTypeLine: this.$route.query.type,
  11620. oid: this.$route.query.oid,
  11621. org: this.$route.query.org,
  11622. tType: this.$route.query.tType,
  11623. courseType: this.$route.query.type,
  11624. screenType: this.$route.query.screenType,
  11625. tcid2: this.$route.query.tcid,
  11626. tcid: "",
  11627. pptImgUrl: "",
  11628. pptImgUrl1: "",
  11629. commentText: "",
  11630. full: false,
  11631. sIsOpen: false,
  11632. IsLookOpen: false,
  11633. IsFollow: false,
  11634. pzDialog: false,
  11635. contentDialog: false,
  11636. mlDialog: false,
  11637. type: 1,
  11638. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11639. sentenceList1: [],
  11640. tableJson: [],
  11641. tableJsonO: [],
  11642. wordJson: [],
  11643. wordJsonO: [],
  11644. vedio: [],
  11645. text: [],
  11646. textList: [],
  11647. line: [],
  11648. lineList: [],
  11649. chapTools: [],
  11650. chapToolList: [],
  11651. file: [],
  11652. fileC: [],
  11653. vedioTime: [],
  11654. upToolImg: "",
  11655. preTime: 0,
  11656. rateList: {
  11657. ca: 0,
  11658. },
  11659. rateParams: [],
  11660. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11661. studyJuri: [
  11662. {
  11663. content: "",
  11664. cover: [],
  11665. upVedio: [],
  11666. upFile: [],
  11667. },
  11668. ],
  11669. isClose: 0,
  11670. plworkFile: [],
  11671. mr: require("../../assets/vedioPic.png"),
  11672. word: require("../../assets/icon/isWord.png"),
  11673. word2: require("../../assets/icon/word2.png"),
  11674. video: require("../../assets/icon/isVideo.png"),
  11675. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11676. likes: require("../../assets/icon/comment/likes.png"),
  11677. scoreImg: require("../../assets/score.png"),
  11678. courseDetail: {},
  11679. reply: "",
  11680. isSelect: false,
  11681. chapInfo: [],
  11682. chapInfoList: [],
  11683. taskCount: 0,
  11684. imgList: [],
  11685. noImgList: [],
  11686. pzList: [],
  11687. timeWorkList: [],
  11688. PlTextList: [
  11689. "Excellent!",
  11690. "nice!",
  11691. "很有创意!",
  11692. "还不错哦~",
  11693. "继续努力哦~",
  11694. ],
  11695. isClickNav: "",
  11696. navId: "",
  11697. playerOptions: {
  11698. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11699. autoplay: false, //如果true,浏览器准备好时开始回放。
  11700. muted: false, // 默认情况下将会消除任何音频。
  11701. loop: false, // 导致视频一结束就重新开始。
  11702. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11703. language: "zh-CN",
  11704. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11705. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11706. sources: [
  11707. {
  11708. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11709. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11710. },
  11711. ],
  11712. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11713. // poster: dataRes.imgUrl, //你的封面地址
  11714. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11715. controlBar: {
  11716. timeDivider: true, //当前时间和持续时间的分隔符
  11717. durationDisplay: true, //显示持续时间
  11718. remainingTimeDisplay: false, //是否显示剩余时间功能
  11719. fullscreenToggle: true, //全屏按钮
  11720. },
  11721. },
  11722. playerOptions1: {
  11723. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11724. autoplay: false, //如果true,浏览器准备好时开始回放。
  11725. muted: false, // 默认情况下将会消除任何音频。
  11726. loop: false, // 导致视频一结束就重新开始。
  11727. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11728. language: "zh-CN",
  11729. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11730. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11731. sources: [
  11732. {
  11733. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11734. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11735. },
  11736. ],
  11737. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11738. // poster: dataRes.imgUrl, //你的封面地址
  11739. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11740. controlBar: {
  11741. timeDivider: true, //当前时间和持续时间的分隔符
  11742. durationDisplay: true, //显示持续时间
  11743. remainingTimeDisplay: false, //是否显示剩余时间功能
  11744. fullscreenToggle: true, //全屏按钮
  11745. },
  11746. },
  11747. playerO: {},
  11748. noneBtnImg: false,
  11749. proVisible: false,
  11750. proVisible2: false,
  11751. progress: 0,
  11752. isFinishSize: 0,
  11753. isAllSize: 0,
  11754. questionAnswer: "",
  11755. answerQ: "", //问答标题
  11756. rateJson: [],
  11757. wbCount: 0,
  11758. wordCount: 0,
  11759. mindCount: 0,
  11760. askCount: 0,
  11761. noteCount: 0,
  11762. mindNetWorkCount: 0,
  11763. libraryCount: 0,
  11764. workCount: 0,
  11765. timeCount: 0,
  11766. answerCount: 0,
  11767. trainCount: 0,
  11768. evalCount: 0,
  11769. dialogImageUrl: "",
  11770. pictureDialog: false,
  11771. toolTypeList: [],
  11772. dialogVisible1: false,
  11773. dialogVisible2: false,
  11774. dialogVisible3: false,
  11775. dialogVisible6: false,
  11776. dialogVisible4: false,
  11777. isNoHomeWork: false,
  11778. dialogVisible5: false,
  11779. dialogVisible5Teacher: false,
  11780. dialogVisibleChoice: false,
  11781. dialogVisibleChoiceTeacher: false,
  11782. answerDialogVisible: false,
  11783. answerDialogVisibleTeacher: false,
  11784. juriVisible: false,
  11785. timeDialogVisible: false,
  11786. replyDialogVisible: false,
  11787. toolDialogVisible: false,
  11788. replyIndex: 0,
  11789. replyPid: "",
  11790. radio: [],
  11791. isAsk: false,
  11792. askJson: {
  11793. askCount: 1,
  11794. askTitle: "",
  11795. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11796. },
  11797. testJson: {},
  11798. checkJson: [],
  11799. askList: [],
  11800. answerList: [],
  11801. navList: [],
  11802. addPzDialog: false,
  11803. pzConText: "",
  11804. worksStudent: [],
  11805. isCloseList: [],
  11806. workStudent: [],
  11807. groupStudent: [],
  11808. groupStudentUid: [],
  11809. noWorksS: [],
  11810. isWorksS: [],
  11811. noWorksStudent: [],
  11812. toolindex: 0,
  11813. toolDetailIndex: null,
  11814. groupIndex: 0,
  11815. workTypeB: false,
  11816. workTypeC: false,
  11817. isAnswer: false,
  11818. isHovered: false,
  11819. isHovered1: false,
  11820. isHovered2: false,
  11821. timer: null,
  11822. opertimer: null,
  11823. showType: 0,
  11824. fileType: 0,
  11825. showPDF: false,
  11826. noteName: "",
  11827. evaJuri: [],
  11828. evalua: "",
  11829. eTitle: "",
  11830. eName: "",
  11831. eJson: {},
  11832. fid: "", //一级
  11833. sid: "", //二级
  11834. tid: "", //二级
  11835. typeMode: 1,
  11836. eJSONNum: 0,
  11837. Etype: 1,
  11838. data: {
  11839. meta: {
  11840. name: "example",
  11841. author: "dd@163.com",
  11842. version: "0.2",
  11843. },
  11844. format: "node_array",
  11845. data: [{ id: "root", isroot: true, topic: "" }],
  11846. },
  11847. fullDialogVisible: false,
  11848. fulltype: "",
  11849. fullUrl: "",
  11850. commentIndexJson: {},
  11851. Stbodywidth: 0,
  11852. ispzType: 0,
  11853. pzType: 1,
  11854. wScore: 0,
  11855. scoreDetail: "",
  11856. videoStart: false,
  11857. recorder: null,
  11858. groupJson: {},
  11859. islock: false,
  11860. groupJson2: {},
  11861. dialogVisibleGroup: false,
  11862. dialogVisibleGroup2: false,
  11863. updateGroupArray: [],
  11864. updateGroupUser: {},
  11865. deleteGroupUser: [],
  11866. deleteGroupArray: {},
  11867. checkChair: "",
  11868. checkDeleteGroup: [],
  11869. inviteCode: "",
  11870. courseGroupStudent: [],
  11871. courseGroupStudentUid: [],
  11872. courseGroup: {},
  11873. isGroup: false,
  11874. // toolIndex: null,
  11875. tool: {},
  11876. isWorkTool: [
  11877. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11878. ], //, 40
  11879. videoJson: {},
  11880. toolType: 0,
  11881. checktoolArray: [],
  11882. vChapterData: [],
  11883. isUpdateToolDetail: false,
  11884. isUpdateToolDetail1: false,
  11885. updateToolDetailInner: "",
  11886. checkboxList: [],
  11887. plIndex: "",
  11888. worksSName2: "",
  11889. worksSid: "",
  11890. wordCloudData: [],
  11891. isPickStudent: [],
  11892. pzStype: 1,
  11893. myAnList: {},
  11894. userMes:{},
  11895. downLoading: false,
  11896. greyType: false,
  11897. correctWord: [],
  11898. isUpdateText: "",
  11899. };
  11900. },
  11901. methods: {
  11902. gx(){
  11903. this.$forceUpdate();
  11904. },
  11905. isUpdateCorrect(t,p){
  11906. if(this.greyType == false){
  11907. this.isUpdateText = t;
  11908. this.greyType = true;
  11909. }else{
  11910. if(p == 1){
  11911. this.newEnglishList.engText = this.isUpdateText;
  11912. }else if(p == 2){
  11913. this.oldEnglishJson1.engText = this.isUpdateText;
  11914. }else if(p == 3){
  11915. this.newEnglishList.engText = this.isUpdateText;
  11916. }else{
  11917. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  11918. }
  11919. this.greyType = false
  11920. }
  11921. },
  11922. aiCorrect(t,p){
  11923. let aiText = "";
  11924. const loading = this.$loading.service({
  11925. background: "rgba(255, 255, 255)",
  11926. target: document.querySelectorAll(".loadingText")[0],
  11927. });
  11928. let param = {
  11929. model: "gpt-3.5-turbo",
  11930. temperature: 0,
  11931. max_tokens: 2048,
  11932. top_p: 1,
  11933. frequency_penalty: 0,
  11934. presence_penalty: 0,
  11935. messages: [
  11936. {
  11937. role: "user",
  11938. content:
  11939. "你的任务是为文字内容进行批注,请依照以下步骤完成任务,并仅显示第二步完成的内容:1.校对并更正:" + t,
  11940. },
  11941. ],
  11942. uid: this.userid,
  11943. stream: false,
  11944. };
  11945. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  11946. (res) => {
  11947. if (
  11948. res.data.FunctionResponse &&
  11949. res.data.FunctionResponse.result &&
  11950. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  11951. ) {
  11952. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  11953. return;
  11954. }
  11955. aiText =
  11956. res.data.FunctionResponse.choices[0].message.content;
  11957. aiText = aiText.replace(/%/g,"%25");
  11958. // let w = "";
  11959. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  11960. // for(var k = 0;k<a.length;k++){
  11961. // //diffWordsWithSpace
  11962. // if(a.length > 1){
  11963. // if(a[k].added == true){
  11964. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  11965. // }else if(a[k].removed == true){
  11966. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  11967. // }else{
  11968. // w += '<span>' + a[k].value + '</span>';
  11969. // }
  11970. // }else{
  11971. // if(p == 1){
  11972. // w = this.newEnglishList.engText;
  11973. // }else if(p == 2){
  11974. // w = this.oldEnglishJson1.engText;
  11975. // }else if(p == 3){
  11976. // w = this.newEnglishList.engText;
  11977. // }else{
  11978. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  11979. // }
  11980. // }
  11981. // }
  11982. if(p == 1){
  11983. this.newEnglishList.engText = aiText;
  11984. }else if(p == 2){
  11985. this.oldEnglishJson1.engText = aiText;
  11986. }else if(p == 3){
  11987. this.newEnglishList.engText = aiText;
  11988. }else{
  11989. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  11990. }
  11991. loading.close();
  11992. },
  11993. (err) => {
  11994. console.log(err);
  11995. loading.close();
  11996. }
  11997. );
  11998. },
  11999. addToolChoose() {
  12000. if (!this.checktoolArray.length) {
  12001. this.$message.error("请选择要添加的任务");
  12002. return;
  12003. }
  12004. if (
  12005. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12006. this.taskCount
  12007. ].toolChoose[0].tool.length
  12008. ) {
  12009. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12010. this.taskCount
  12011. ].toolChoose[0].tool = this.checktoolArray;
  12012. } else {
  12013. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12014. this.taskCount
  12015. ].toolChoose.push({
  12016. tool: this.checktoolArray,
  12017. toolDetail: "",
  12018. toolType: 0,
  12019. askCount: 1,
  12020. askTitle: "",
  12021. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12022. });
  12023. }
  12024. let params = [
  12025. {
  12026. cid: this.id,
  12027. chapters: JSON.stringify(this.chapInfoList),
  12028. uid: this.userid,
  12029. unitIndex: this.courseType,
  12030. },
  12031. ];
  12032. this.ajax
  12033. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12034. .then((res) => {
  12035. this.$message({
  12036. message: "添加成功",
  12037. type: "success",
  12038. });
  12039. this.checktoolArray = [];
  12040. this.getCourseDetail(2);
  12041. this.checkBz(
  12042. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12043. this.taskCount
  12044. ].toolChoose.length - 1
  12045. );
  12046. this.toolDialogVisible = false;
  12047. this.refreshCourse();
  12048. this.$forceUpdate();
  12049. })
  12050. .catch((err) => {
  12051. console.error(err);
  12052. });
  12053. },
  12054. checkBz(index) {
  12055. this.isUpdateToolDetail = false;
  12056. this.$forceUpdate();
  12057. setTimeout(() => {
  12058. document.scrollingElement.scrollTop =
  12059. document.querySelectorAll(".filebox")[index].offsetTop +
  12060. document.querySelector(".student_body").offsetTop;
  12061. }, 500);
  12062. },
  12063. updateToolDetail(i, type) {
  12064. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12065. this.toolDetailIndex = i
  12066. this.isUpdateToolDetail1 = true;
  12067. setTimeout(() => {
  12068. this.updateToolDetailInner = JSON.parse(
  12069. JSON.stringify(
  12070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12071. this.taskCount
  12072. ].toolChoose[i].toolDetail
  12073. )
  12074. );
  12075. document.querySelector(".checkTextArea").focus();
  12076. }, 0);
  12077. } else if((this.isUpdateToolDetail1 && type != 2)){
  12078. // this.toolDetailIndex = i;
  12079. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12080. this.taskCount
  12081. ].toolChoose[i].toolDetail = JSON.parse(
  12082. JSON.stringify(this.updateToolDetailInner)
  12083. );
  12084. let params = [
  12085. {
  12086. cid: this.id,
  12087. chapters: JSON.stringify(this.chapInfoList),
  12088. uid: this.userid,
  12089. unitIndex: this.courseType,
  12090. },
  12091. ];
  12092. this.ajax
  12093. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12094. .then((res) => {
  12095. this.isUpdateToolDetail1 = false;
  12096. this.$message({
  12097. message: "修改成功",
  12098. type: "success",
  12099. });
  12100. this.toolDetailIndex = null;
  12101. this.updateToolDetailInner = "";
  12102. this.getCourseDetail(2);
  12103. this.$forceUpdate();
  12104. })
  12105. .catch((err) => {
  12106. console.error(err);
  12107. });
  12108. } else if((this.isUpdateToolDetail1 && type == 2)){
  12109. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12110. this.taskCount
  12111. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12112. JSON.stringify(this.updateToolDetailInner)
  12113. );
  12114. let params = [
  12115. {
  12116. cid: this.id,
  12117. chapters: JSON.stringify(this.chapInfoList),
  12118. uid: this.userid,
  12119. unitIndex: this.courseType,
  12120. },
  12121. ];
  12122. this.ajax
  12123. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12124. .then((res) => {
  12125. this.$message({
  12126. message: "修改成功",
  12127. type: "success",
  12128. });
  12129. this.toolDetailIndex = i;
  12130. this.isUpdateToolDetail1 = true;
  12131. setTimeout(() => {
  12132. this.updateToolDetailInner = JSON.parse(
  12133. JSON.stringify(
  12134. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12135. this.taskCount
  12136. ].toolChoose[i].toolDetail
  12137. )
  12138. );
  12139. document.querySelector(".checkTextArea").focus();
  12140. }, 0);
  12141. this.getCourseDetail(2);
  12142. this.$forceUpdate();
  12143. })
  12144. .catch((err) => {
  12145. console.error(err);
  12146. });
  12147. }
  12148. },
  12149. jumpGj(i, j, k, l) {
  12150. for (var z = 0; z < this.navList.length; z++) {
  12151. for (var q = 0; q < this.navList[z].task.length; q++) {
  12152. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12153. this.navList[z].task[q].tool[w].isTool = false;
  12154. }
  12155. }
  12156. }
  12157. this.navList[i].task[j].tool[k].isTool =
  12158. !this.navList[i].task[j].tool[k].isTool;
  12159. var a = document.scrollingElement;
  12160. this.navId = ""
  12161. let target = document.querySelector(`#gj${k}`);
  12162. if (target) {
  12163. target.scrollIntoView(true);
  12164. setTimeout(() => {
  12165. a.scrollTop = a.scrollTop - 150;
  12166. }, 0);
  12167. }
  12168. if (l) {
  12169. this.courseType = i;
  12170. // this.navId = l;
  12171. this.taskCount = j;
  12172. this.selectPz();
  12173. this.getHomeWork();
  12174. this.getCourseDetail(2);
  12175. }
  12176. // var b = this.$refs["bz" + k][0];
  12177. // a.scrollTop = b.offsetTop;
  12178. },
  12179. addTools2(i) {
  12180. if (i == 4) {
  12181. // this.openTools2(4);
  12182. this.$message.error("暂未开放");
  12183. return;
  12184. }
  12185. if (i == 45) {
  12186. // this.openTools2(45);
  12187. this.$message.error("暂未开放");
  12188. return;
  12189. }
  12190. if (i == 47) {
  12191. // this.openTools2(47);
  12192. this.$message.error("暂未开放");
  12193. return;
  12194. }
  12195. if (i == 49) {
  12196. // this.openTools2(49);
  12197. this.$message.error("暂未开放");
  12198. return;
  12199. }
  12200. if (i == 62) {
  12201. // this.openTools(itemTaskIndex, 62, toolIndex);
  12202. this.$message.error("暂未开放");
  12203. return;
  12204. }
  12205. if (i == 15) {
  12206. // this.openTools(itemTaskIndex, 15, toolIndex);
  12207. this.$message.error("暂未开放");
  12208. return;
  12209. }
  12210. if (i == 40) {
  12211. // this.openTools(itemTaskIndex, 40, toolIndex);
  12212. this.$message.error("暂未开放");
  12213. return;
  12214. }
  12215. if (i == 41) {
  12216. // this.openTools(itemTaskIndex, 41, toolIndex);
  12217. this.$message.error("暂未开放");
  12218. return;
  12219. }
  12220. if (i == 42) {
  12221. // this.openTools(itemTaskIndex, 42, toolIndex);
  12222. this.$message.error("暂未开放");
  12223. return;
  12224. }
  12225. if (this.checktoolArray.length > 0) {
  12226. if (this.checktoolArray.indexOf(i) != -1) {
  12227. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12228. } else {
  12229. this.checktoolArray = [];
  12230. this.checktoolArray.push(i);
  12231. }
  12232. } else {
  12233. this.checktoolArray.push(i);
  12234. }
  12235. this.$forceUpdate();
  12236. },
  12237. jump() {
  12238. window.parent.postMessage({ tools: "43" }, "*");
  12239. },
  12240. getUpdateMore(f, checkboxList, searchTN, index) {
  12241. this.dialogVisibleMember = f;
  12242. this.checkboxList = checkboxList;
  12243. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12244. this.plIndex = index;
  12245. },
  12246. setPlname(a) {
  12247. if (this.plworkFile.length) {
  12248. this.plworkFile[this.plIndex].username = a;
  12249. } else {
  12250. this.worksSName = a;
  12251. }
  12252. this.dialogVisibleMember = false;
  12253. },
  12254. previewImg(url) {
  12255. this.$hevueImgPreview(url);
  12256. },
  12257. checkImg(list) {
  12258. if (!list.length) {
  12259. return;
  12260. }
  12261. this.$hevueImgPreview({
  12262. multiple: true, // 开启多图预览模式
  12263. imgList: list, // 需要预览的多图数组
  12264. });
  12265. },
  12266. change(val) {
  12267. console.log(val);
  12268. },
  12269. goTo(path) {
  12270. this.$router.push(path);
  12271. },
  12272. handlePictureCardPreview(url) {
  12273. this.dialogImageUrl = url;
  12274. this.pictureDialog = true;
  12275. },
  12276. clean(type) {
  12277. if (type == 1) {
  12278. this.studyJuri[0].cover.splice(0, 1);
  12279. } else if (type == 2) {
  12280. this.studyJuri[0].upVedio.splice(0, 1);
  12281. } else {
  12282. this.studyJuri[0].upFile.splice(0, 1);
  12283. }
  12284. },
  12285. clean2(index) {
  12286. this.plworkFile.splice(index, 1);
  12287. },
  12288. handleClose(done) {
  12289. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12290. this.videoDetail.sources[0].src = "";
  12291. }
  12292. this.commentIndexJson = {};
  12293. done();
  12294. },
  12295. fullTools() {
  12296. this.full = !this.full;
  12297. },
  12298. imgChange(file, fileList, type) {
  12299. if (type == 1) {
  12300. var _tmp = this.studyJuri[0].cover;
  12301. } else if (type == 2) {
  12302. var _tmp = this.studyJuri[0].upVedio;
  12303. } else {
  12304. var _tmp = this.studyJuri[0].upFile;
  12305. }
  12306. this.noneBtnImg = _tmp.length >= 1;
  12307. },
  12308. setContent(bool) {
  12309. this.contentDialog = bool;
  12310. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12311. document.querySelector(".workd_media").style.height = "650px";
  12312. } else if (document.querySelector(".workd_media")) {
  12313. document.querySelector(".workd_media").style.height = "auto";
  12314. }
  12315. },
  12316. setContent2(bool) {
  12317. this.mlDialog = bool;
  12318. if (
  12319. bool &&
  12320. this.contentDialog &&
  12321. document.querySelector(".workd_media")
  12322. ) {
  12323. document.querySelector(".workd_media").style.height = "650px";
  12324. } else if (document.querySelector(".workd_media")) {
  12325. document.querySelector(".workd_media").style.height = "auto";
  12326. }
  12327. },
  12328. openToolAll() {
  12329. this.toolDialogVisible = true;
  12330. },
  12331. addImg(e) {
  12332. var el = e.currentTarget;
  12333. // this.$message.success('触发上传')
  12334. el.getElementsByTagName("input")[0].click();
  12335. e.target.value = "";
  12336. },
  12337. addSelectAnswer() {
  12338. let params = [
  12339. {
  12340. uid: this.userid,
  12341. cid: this.id,
  12342. stage: this.courseType,
  12343. task: this.taskCount,
  12344. tool: this.toolindex,
  12345. content: this.selectAnswer.answer,
  12346. type: 7,
  12347. },
  12348. ];
  12349. this.ajax
  12350. .post(this.$store.state.api + "addCourseWorks", params)
  12351. .then((res) => {
  12352. this.$message({
  12353. message: "提交成功",
  12354. type: "success",
  12355. });
  12356. this.dialogVisibleSelect = false;
  12357. // this.selectAnswer = {};
  12358. this.selectSWorks();
  12359. this.selectStudent();
  12360. })
  12361. .catch((err) => {
  12362. this.$message.error("提交失败");
  12363. console.error(err);
  12364. });
  12365. },
  12366. addSelectAnswerTeacher() {
  12367. let params = [
  12368. {
  12369. uid: this.sStudent.userid,
  12370. cid: this.id,
  12371. stage: this.courseType,
  12372. task: this.taskCount,
  12373. tool: this.toolindex,
  12374. content: this.selectAnswer.answer,
  12375. type: 7,
  12376. },
  12377. ];
  12378. this.ajax
  12379. .post(this.$store.state.api + "addCourseWorks", params)
  12380. .then((res) => {
  12381. this.$message({
  12382. message: "提交成功",
  12383. type: "success",
  12384. });
  12385. this.dialogVisibleSelectTeacher = false;
  12386. // this.selectAnswer = {};
  12387. this.selectSWorks();
  12388. this.selectStudent();
  12389. })
  12390. .catch((err) => {
  12391. this.$message.error("提交失败");
  12392. console.error(err);
  12393. });
  12394. },
  12395. addSenWorks() {
  12396. for (var i = 0; i < this.sentenceList.length; i++) {
  12397. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12398. if (
  12399. this.sentenceList[i].chooseSenList[j] == undefined ||
  12400. this.sentenceList[i].chooseSenList[j] == ""
  12401. ) {
  12402. this.$message.error("请将答案填写完整!");
  12403. return;
  12404. }
  12405. }
  12406. }
  12407. let params = [
  12408. {
  12409. uid: this.userid,
  12410. cid: this.id,
  12411. stage: this.courseType,
  12412. task: this.taskCount,
  12413. tool: this.toolindex,
  12414. content: JSON.stringify(this.sentenceList),
  12415. type: 9,
  12416. },
  12417. ];
  12418. this.ajax
  12419. .post(this.$store.state.api + "addCourseWorks", params)
  12420. .then((res) => {
  12421. this.$message({
  12422. message: "提交成功",
  12423. type: "success",
  12424. });
  12425. this.dialogVisibleSentence = false;
  12426. // this.selectAnswer = {};
  12427. this.selectSWorks();
  12428. this.selectStudent();
  12429. })
  12430. .catch((err) => {
  12431. this.$message.error("提交失败");
  12432. console.error(err);
  12433. });
  12434. },
  12435. addSenWorksTeacher() {
  12436. for (var i = 0; i < this.sentenceList.length; i++) {
  12437. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12438. if (
  12439. this.sentenceList[i].chooseSenList[j] == undefined ||
  12440. this.sentenceList[i].chooseSenList[j] == ""
  12441. ) {
  12442. this.$message.error("请将答案填写完整!");
  12443. return;
  12444. }
  12445. }
  12446. }
  12447. let params = [
  12448. {
  12449. uid: this.sStudent.userid,
  12450. cid: this.id,
  12451. stage: this.courseType,
  12452. task: this.taskCount,
  12453. tool: this.toolindex,
  12454. content: JSON.stringify(this.sentenceList),
  12455. type: 9,
  12456. },
  12457. ];
  12458. this.ajax
  12459. .post(this.$store.state.api + "addCourseWorks", params)
  12460. .then((res) => {
  12461. this.$message({
  12462. message: "提交成功",
  12463. type: "success",
  12464. });
  12465. this.dialogVisibleSentenceTeacher = false;
  12466. // this.selectAnswer = {};
  12467. this.selectSWorks();
  12468. this.selectStudent();
  12469. })
  12470. .catch((err) => {
  12471. this.$message.error("提交失败");
  12472. console.error(err);
  12473. });
  12474. },
  12475. returnTableText() {
  12476. this.$confirm("确定还原此模板吗?", "提示", {
  12477. confirmButtonText: "确定",
  12478. cancelButtonText: "取消",
  12479. type: "warning",
  12480. })
  12481. .then(() => {
  12482. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12483. })
  12484. .catch(() => {});
  12485. },
  12486. addTableWorks() {
  12487. let params = [
  12488. {
  12489. uid: this.userid,
  12490. cid: this.id,
  12491. stage: this.courseType,
  12492. task: this.taskCount,
  12493. tool: this.toolindex,
  12494. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12495. type: 10,
  12496. },
  12497. ];
  12498. this.ajax
  12499. .post(this.$store.state.api + "addCourseWorks", params)
  12500. .then((res) => {
  12501. this.$message({
  12502. message: "提交成功",
  12503. type: "success",
  12504. });
  12505. this.dialogVisibleTable = false;
  12506. // this.selectAnswer = {};
  12507. this.selectSWorks();
  12508. this.selectStudent();
  12509. })
  12510. .catch((err) => {
  12511. this.$message.error("提交失败");
  12512. console.error(err);
  12513. });
  12514. },
  12515. tableRowClassName({ row, rowIndex }) {
  12516. if ((rowIndex + 1) % 2 === 0) {
  12517. return "even_row";
  12518. } else {
  12519. return "";
  12520. }
  12521. },
  12522. addTableWorksTeacher() {
  12523. let params = [
  12524. {
  12525. uid: this.sStudent.userid,
  12526. cid: this.id,
  12527. stage: this.courseType,
  12528. task: this.taskCount,
  12529. tool: this.toolindex,
  12530. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12531. type: 10,
  12532. },
  12533. ];
  12534. this.ajax
  12535. .post(this.$store.state.api + "addCourseWorks", params)
  12536. .then((res) => {
  12537. this.$message({
  12538. message: "提交成功",
  12539. type: "success",
  12540. });
  12541. this.dialogVisibleTableTeacher = false;
  12542. // this.selectAnswer = {};
  12543. this.selectSWorks();
  12544. this.selectStudent();
  12545. })
  12546. .catch((err) => {
  12547. this.$message.error("提交失败");
  12548. console.error(err);
  12549. });
  12550. },
  12551. returnWordText() {
  12552. this.$confirm("确定还原此模板吗?", "提示", {
  12553. confirmButtonText: "确定",
  12554. cancelButtonText: "取消",
  12555. type: "warning",
  12556. })
  12557. .then(() => {
  12558. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12559. })
  12560. .catch(() => {});
  12561. },
  12562. addWordWorks() {
  12563. let params = [
  12564. {
  12565. uid: this.userid,
  12566. cid: this.id,
  12567. stage: this.courseType,
  12568. task: this.taskCount,
  12569. tool: this.toolindex,
  12570. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12571. type: 13,
  12572. atool: 52,
  12573. },
  12574. ];
  12575. this.ajax
  12576. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12577. .then((res) => {
  12578. this.$message({
  12579. message: "提交成功",
  12580. type: "success",
  12581. });
  12582. this.dialogVisibleWord = false;
  12583. // this.selectAnswer = {};
  12584. this.selectSWorks();
  12585. this.selectStudent();
  12586. })
  12587. .catch((err) => {
  12588. this.$message.error("提交失败");
  12589. console.error(err);
  12590. });
  12591. },
  12592. addWordWorksTeacher() {
  12593. let params = [
  12594. {
  12595. uid: this.sStudent.userid,
  12596. cid: this.id,
  12597. stage: this.courseType,
  12598. task: this.taskCount,
  12599. tool: this.toolindex,
  12600. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12601. type: 13,
  12602. atool: 52,
  12603. },
  12604. ];
  12605. this.ajax
  12606. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12607. .then((res) => {
  12608. this.$message({
  12609. message: "提交成功",
  12610. type: "success",
  12611. });
  12612. this.dialogVisibleWordTeacher = false;
  12613. // this.selectAnswer = {};
  12614. this.selectSWorks();
  12615. this.selectStudent();
  12616. })
  12617. .catch((err) => {
  12618. this.$message.error("提交失败");
  12619. console.error(err);
  12620. });
  12621. },
  12622. addCourseWorks(i) {
  12623. var typesql;
  12624. if (this.fileType === 0) {
  12625. typesql = 1;
  12626. } else if (this.fileType === 1) {
  12627. typesql = 4;
  12628. } else if (this.fileType === 2) {
  12629. typesql = 5;
  12630. } else if (this.fileType === 3) {
  12631. typesql = 12;
  12632. }
  12633. if (!this.studyJuri[0].cover[0].url) {
  12634. this.$message.error("请上传文件");
  12635. return;
  12636. }
  12637. let params = [
  12638. {
  12639. uid: this.userid,
  12640. cid: this.id,
  12641. stage: this.courseType,
  12642. task: i,
  12643. tool: this.toolindex,
  12644. content: this.studyJuri[0].cover[0].url,
  12645. type: typesql,
  12646. },
  12647. ];
  12648. this.ajax
  12649. .post(this.$store.state.api + "addCourseWorksR", params)
  12650. .then((res) => {
  12651. this.$message({
  12652. message: "提交成功",
  12653. type: "success",
  12654. });
  12655. this.studyJuri[0].cover = [];
  12656. this.dialogVisible = false;
  12657. this.getCourseDetail(2);
  12658. })
  12659. .catch((err) => {
  12660. this.$message.error("提交失败");
  12661. console.error(err);
  12662. });
  12663. },
  12664. addCourseWorksPl(i) {
  12665. let _files = this.plworkFile;
  12666. var c = 1;
  12667. for (var k = 0; k < _files.length; k++) {
  12668. if (!_files[k].username) {
  12669. c = 2;
  12670. }
  12671. }
  12672. if (c == 2) {
  12673. this.$message.error("请填写学生姓名");
  12674. return;
  12675. }
  12676. let params = [
  12677. {
  12678. ateacher: this.userid,
  12679. cid: this.id,
  12680. stage: this.courseType,
  12681. task: i,
  12682. tool: this.toolindex,
  12683. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12684. },
  12685. ];
  12686. this.ajax
  12687. .post(this.$store.state.api + "addCourseWorksPl", params)
  12688. .then((res) => {
  12689. this.$message({
  12690. message: "提交成功",
  12691. type: "success",
  12692. });
  12693. this.plworkFile = [];
  12694. this.dialogVisiblePl = false;
  12695. this.getCourseDetail(2);
  12696. })
  12697. .catch((err) => {
  12698. this.$message.error("提交失败");
  12699. console.error(err);
  12700. });
  12701. },
  12702. addCourseWorks2(i) {
  12703. var typesql;
  12704. if (this.fileType === 0) {
  12705. typesql = 0;
  12706. } else if (this.fileType === 1) {
  12707. typesql = 1;
  12708. } else if (this.fileType === 2) {
  12709. typesql = 3;
  12710. } else if (this.fileType === 3) {
  12711. typesql = 12;
  12712. }
  12713. if (!this.studyJuri[0].cover[0].url) {
  12714. this.$message.error("请上传文件");
  12715. return;
  12716. }
  12717. let params = [
  12718. {
  12719. uid: this.userid,
  12720. cid: this.id,
  12721. stage: this.courseType,
  12722. task: i,
  12723. tool: this.toolindex,
  12724. content: JSON.stringify({
  12725. type: typesql,
  12726. groupIndex: this.groupIndex,
  12727. url: this.studyJuri[0].cover[0].url,
  12728. }).replaceAll(/%/g, "%25"),
  12729. type: 11,
  12730. atool: 49,
  12731. text: "",
  12732. },
  12733. ];
  12734. this.ajax
  12735. .post(this.$store.state.api + "addCourseWorks5", params)
  12736. .then((res) => {
  12737. this.$message({
  12738. message: "提交成功",
  12739. type: "success",
  12740. });
  12741. this.studyJuri[0].cover = [];
  12742. this.dialogVisibleGroupWork = false;
  12743. this.getCourseDetail(2);
  12744. })
  12745. .catch((err) => {
  12746. this.$message.error("提交失败");
  12747. console.error(err);
  12748. });
  12749. },
  12750. addEnglishWork() {
  12751. this.myAnList = this.$refs['engJson'].myAnswerList;
  12752. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12753. this.$message.error("请输入作文标题和正文!");
  12754. return;
  12755. }
  12756. let params = [
  12757. {
  12758. uid: this.userid,
  12759. cid: this.id,
  12760. stage: this.courseType,
  12761. task: this.taskCount,
  12762. tool: this.englishToolIndex,
  12763. content: JSON.stringify(this.myAnList),
  12764. type: 16,
  12765. atool: 69,
  12766. text: "",
  12767. },
  12768. ];
  12769. this.ajax
  12770. .post(this.$store.state.api + "addCourseWorks5", params)
  12771. .then((res) => {
  12772. this.$message({
  12773. message: "提交成功",
  12774. type: "success",
  12775. });
  12776. this.myAnList = {};
  12777. this.englishList = {};
  12778. this.englishToolIndex = 0;
  12779. this.engDialogVisible = false;
  12780. this.selectSWorks();
  12781. this.selectStudent();
  12782. })
  12783. .catch((err) => {
  12784. this.$message.error("提交失败");
  12785. console.error(err);
  12786. });
  12787. },
  12788. addCourseWorksGong(i, data, tool) {
  12789. let params = [
  12790. {
  12791. uid: this.userid,
  12792. cid: this.id,
  12793. stage: this.courseType,
  12794. task: this.taskCount,
  12795. tool: i,
  12796. content: data,
  12797. type: 12,
  12798. atool: tool,
  12799. text: "",
  12800. },
  12801. ];
  12802. this.ajax
  12803. .post(this.$store.state.api + "addCourseWorks5", params)
  12804. .then((res) => {
  12805. this.$message({
  12806. message: "提交成功",
  12807. type: "success",
  12808. });
  12809. this.studyJuri[0].cover = [];
  12810. this.selectSWorks();
  12811. this.selectStudent();
  12812. })
  12813. .catch((err) => {
  12814. this.$message.error("提交失败");
  12815. console.error(err);
  12816. });
  12817. },
  12818. addCourseWorksGongTeacher(i, data, tool) {
  12819. let params = [
  12820. {
  12821. uid: this.sStudent.userid,
  12822. cid: this.id,
  12823. stage: this.courseType,
  12824. task: this.taskCount,
  12825. tool: i,
  12826. content: data,
  12827. type: 12,
  12828. atool: tool,
  12829. text: "",
  12830. },
  12831. ];
  12832. this.ajax
  12833. .post(this.$store.state.api + "addCourseWorks5", params)
  12834. .then((res) => {
  12835. this.$message({
  12836. message: "提交成功",
  12837. type: "success",
  12838. });
  12839. this.studyJuri[0].cover = [];
  12840. this.dialogVisibleWorks = false;
  12841. this.selectSWorks();
  12842. this.selectStudent();
  12843. })
  12844. .catch((err) => {
  12845. this.$message.error("提交失败");
  12846. console.error(err);
  12847. });
  12848. },
  12849. addCourseWorksGongPl(i, data, tool, type) {
  12850. let params = [
  12851. {
  12852. uid: this.sStudent.userid,
  12853. cid: this.id,
  12854. stage: this.courseType,
  12855. task: this.taskCount,
  12856. tool: i,
  12857. content: data,
  12858. type: type,
  12859. atool: tool,
  12860. text: "",
  12861. },
  12862. ];
  12863. this.ajax
  12864. .post(this.$store.state.api + "addCourseWorks5", params)
  12865. .then((res) => {
  12866. this.$message({
  12867. message: "提交成功",
  12868. type: "success",
  12869. });
  12870. this.studyJuri[0].cover = [];
  12871. this.dialogVisibleWorks = false;
  12872. this.selectSWorks();
  12873. this.selectStudent();
  12874. })
  12875. .catch((err) => {
  12876. this.$message.error("提交失败");
  12877. console.error(err);
  12878. });
  12879. },
  12880. addCourseWorksTeacher(i) {
  12881. var typesql;
  12882. if (this.sTool == 32) {
  12883. this.addCourseWorksGongTeacher(
  12884. this.toolindex,
  12885. this.studyJuri[0].cover[0].url,
  12886. this.sTool
  12887. );
  12888. return;
  12889. }
  12890. if (this.fileType === 0) {
  12891. typesql = 1;
  12892. } else if (this.fileType === 1) {
  12893. typesql = 4;
  12894. } else if (this.fileType === 2) {
  12895. typesql = 5;
  12896. } else if (this.fileType === 3) {
  12897. typesql = 12;
  12898. }
  12899. if (this.sTool == 50) {
  12900. this.addCourseWorksGongPl(
  12901. this.toolindex,
  12902. this.studyJuri[0].cover[0].url,
  12903. this.sTool,
  12904. typesql
  12905. );
  12906. return;
  12907. }
  12908. if (!this.studyJuri[0].cover[0].url) {
  12909. this.$message.error("请上传文件");
  12910. return;
  12911. }
  12912. let params = [
  12913. {
  12914. uid: this.sStudent.userid,
  12915. cid: this.id,
  12916. stage: this.courseType,
  12917. task: i,
  12918. tool: this.toolindex,
  12919. content: this.studyJuri[0].cover[0].url,
  12920. type: typesql,
  12921. ateacher: this.userid,
  12922. },
  12923. ];
  12924. this.ajax
  12925. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12926. .then((res) => {
  12927. this.$message({
  12928. message: "提交成功",
  12929. type: "success",
  12930. });
  12931. this.studyJuri[0].cover = [];
  12932. this.dialogVisibleWorks = false;
  12933. this.getCourseDetail(2);
  12934. })
  12935. .catch((err) => {
  12936. this.$message.error("提交失败");
  12937. console.error(err);
  12938. });
  12939. },
  12940. selectUploadStudent(type) {
  12941. const loading = this.$loading.service({
  12942. background: "rgba(255, 255, 255, 0.7)",
  12943. target: document.body,
  12944. });
  12945. let params = {
  12946. cid: this.uploadCid,
  12947. oid: this.oid,
  12948. cn: "",
  12949. };
  12950. this.ajax
  12951. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12952. .then((res) => {
  12953. loading.close();
  12954. var studentK = [];
  12955. if (this.isWorksS[this.toolindex].length > 0) {
  12956. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12957. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12958. }
  12959. studentK = studentK.join(",");
  12960. }
  12961. this.uploadStudentJuri = res.data[0].filter((el) => {
  12962. return studentK.indexOf(el.userid) == -1;
  12963. });
  12964. if (this.worksSName && this.worksSid) {
  12965. this.uploadStudentJuri.push({
  12966. userid: this.worksSid,
  12967. name: this.worksSName,
  12968. });
  12969. }
  12970. if (type == 1) {
  12971. this.plworkFile = [];
  12972. this.dialogVisibleSname = true;
  12973. } else if (type == 2) {
  12974. this.dialogVisiblePl = true;
  12975. }
  12976. })
  12977. .catch((err) => {
  12978. loading.close();
  12979. console.error(err);
  12980. });
  12981. },
  12982. selectPickStudent() {
  12983. const loading = this.$loading.service({
  12984. background: "rgba(255, 255, 255, 0.7)",
  12985. target: document.body,
  12986. });
  12987. let params = {
  12988. cid: this.uploadCid,
  12989. oid: this.oid,
  12990. cn: "",
  12991. };
  12992. this.ajax
  12993. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12994. .then((res) => {
  12995. loading.close();
  12996. this.uploadStudentJuri = res.data[0];
  12997. this.dialogVisiblePickPeople = true;
  12998. })
  12999. .catch((err) => {
  13000. loading.close();
  13001. console.error(err);
  13002. });
  13003. },
  13004. arrayToArray(arrayo, arrayt) {
  13005. let array1 = arrayo;
  13006. let array2 = arrayt;
  13007. let commonElements = [];
  13008. for (let i = 0; i < array1.length; i++) {
  13009. for (let j = 0; j < array2.length; j++) {
  13010. if (array1[i] === array2[j]) {
  13011. commonElements.push(array1[i]);
  13012. }
  13013. }
  13014. }
  13015. return commonElements;
  13016. },
  13017. selectWorksStudent() {
  13018. let params = {
  13019. oid: this.oid,
  13020. cid: this.courseDetail.juri,
  13021. };
  13022. this.ajax
  13023. .get(this.$store.state.api + "selectWorksStudent", params)
  13024. .then((res) => {
  13025. var a = res.data[0];
  13026. for (var i = 0; i < this.isWorksS.length; i++) {
  13027. this.noWorksS[i] = [];
  13028. var studentK = [];
  13029. if (this.isWorksS[i].length > 0) {
  13030. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13031. studentK.push(this.isWorksS[i][z].uid);
  13032. }
  13033. studentK = studentK.join(",");
  13034. for (var j = 0; j < a.length; j++) {
  13035. if (studentK.indexOf(a[j].userid) == -1) {
  13036. if (this.tcid) {
  13037. // a[j].classid.indexOf(this.tcid) != -1
  13038. if (
  13039. this.arrayToArray(
  13040. a[j].classid.split(","),
  13041. this.tcid.split(",")
  13042. ).length
  13043. ) {
  13044. this.noWorksS[i].push({
  13045. student: a[j].name,
  13046. userid: a[j].userid,
  13047. });
  13048. }
  13049. } else {
  13050. this.noWorksS[i].push({
  13051. student: a[j].name,
  13052. userid: a[j].userid,
  13053. });
  13054. }
  13055. }
  13056. }
  13057. } else {
  13058. for (var k = 0; k < a.length; k++) {
  13059. if (this.tcid) {
  13060. if (
  13061. this.arrayToArray(
  13062. a[k].classid.split(","),
  13063. this.tcid.split(",")
  13064. ).length
  13065. ) {
  13066. this.noWorksS[i].push({
  13067. student: a[k].name,
  13068. userid: a[k].userid,
  13069. });
  13070. }
  13071. } else {
  13072. this.noWorksS[i].push({
  13073. student: a[k].name,
  13074. userid: a[k].userid,
  13075. });
  13076. }
  13077. }
  13078. }
  13079. }
  13080. this.$forceUpdate();
  13081. if (
  13082. Object.keys(this.commentDetail).length &&
  13083. Object.keys(this.commentIndexJson).length &&
  13084. !this.dialogVisibleScore
  13085. ) {
  13086. let a = 1;
  13087. let c = this.commentIndexJson;
  13088. if (
  13089. this.commentIndexJson.gindex ||
  13090. this.commentIndexJson.gindex === 0
  13091. ) {
  13092. for (
  13093. var i = 0;
  13094. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13095. i++
  13096. ) {
  13097. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13098. groupA: for (var k = 0; k < _el.length; k++) {
  13099. let el = _el[k];
  13100. if (el.wid == this.commentDetail.wid) {
  13101. a = 2;
  13102. this.commentOther(
  13103. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13104. this.commentIndexJson.toolIndex,
  13105. k,
  13106. this.commentIndexJson.gindex
  13107. );
  13108. break groupA;
  13109. }
  13110. }
  13111. }
  13112. if (a === 1) {
  13113. this.commentDetail = [];
  13114. this.commentIndexJson = {};
  13115. this.commentDialogVisible = false;
  13116. this.$message("此作业已被删除");
  13117. }
  13118. } else {
  13119. if (this.isGroup && this.commentIndexJson.gid) {
  13120. groupA: for (
  13121. var i = 0;
  13122. i < this.courseGroup.group.length;
  13123. i++
  13124. ) {
  13125. let _group = this.courseGroup.group[i];
  13126. if (_group.id == this.commentIndexJson.gid) {
  13127. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13128. for (var k = 0; k < _el2.length; k++) {
  13129. let el2 = _el2[k];
  13130. if (el2.wid == this.commentDetail.wid) {
  13131. a = 2;
  13132. this.commentOther(
  13133. _el2[k],
  13134. this.commentIndexJson.toolIndex,
  13135. k,
  13136. null,
  13137. this.commentIndexJson.gid
  13138. );
  13139. break groupA;
  13140. }
  13141. }
  13142. }
  13143. }
  13144. }
  13145. if (a == 1) {
  13146. for (
  13147. var i = 0;
  13148. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13149. i++
  13150. ) {
  13151. let el =
  13152. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13153. if (el.wid == this.commentDetail.wid) {
  13154. a = 2;
  13155. this.commentOther(
  13156. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13157. this.commentIndexJson.toolIndex,
  13158. i
  13159. );
  13160. break;
  13161. }
  13162. }
  13163. }
  13164. if (a === 1) {
  13165. this.commentDetail = [];
  13166. this.commentIndexJson = {};
  13167. this.commentDialogVisible = false;
  13168. this.$message("此作业已被删除");
  13169. }
  13170. }
  13171. }
  13172. })
  13173. .catch((err) => {
  13174. console.error(err);
  13175. });
  13176. },
  13177. selectStudent() {
  13178. //学生查看自己作业
  13179. let params = {
  13180. uid: this.userid,
  13181. cid: this.id,
  13182. s: this.courseType,
  13183. t: this.taskCount,
  13184. };
  13185. this.ajax
  13186. .get(this.$store.state.api + "selectStudentWorks", params)
  13187. .then((res) => {
  13188. var a =
  13189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13190. this.taskCount
  13191. ].toolChoose;
  13192. var b = res.data[0];
  13193. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13194. var y = [
  13195. "AVI",
  13196. "NAVI",
  13197. "MPEG",
  13198. "ASF",
  13199. "MOV",
  13200. "WMV",
  13201. "3GP",
  13202. "RM",
  13203. "RMVB",
  13204. "FLV",
  13205. "F4V",
  13206. "H.264",
  13207. "H.265",
  13208. "REAL VIDEO",
  13209. "MKV",
  13210. "WebM",
  13211. "HDDVD",
  13212. "MP4",
  13213. "MPG",
  13214. "M4V",
  13215. "MGV",
  13216. "OGV",
  13217. "QTM",
  13218. "STR",
  13219. "AMC",
  13220. "DVX",
  13221. "EVO",
  13222. "DAT",
  13223. "OGG",
  13224. "OGM",
  13225. ];
  13226. for (var i = 0; i < a.length; i++) {
  13227. this.workStudent[i] = [];
  13228. for (var j = 0; j < b.length; j++) {
  13229. if (i == b[j].tool) {
  13230. if (
  13231. (b[j].type == 1 ||
  13232. b[j].type == 4 ||
  13233. b[j].type == 5 ||
  13234. b[j].type == 6 ||
  13235. b[j].type == 12 ||
  13236. b[j].type == 7) &&
  13237. a[i].tool[0] != 15 &&
  13238. a[i].tool[0] != 4 &&
  13239. a[i].tool[0] != 45 &&
  13240. a[i].tool[0] != 50 &&
  13241. a[i].tool[0] != 32 &&
  13242. a[i].tool[0] != 57 &&
  13243. a[i].tool[0] != 52 &&
  13244. a[i].tool[0] != 69
  13245. ) {
  13246. if (
  13247. c.indexOf(
  13248. b[j].content
  13249. .split(".")
  13250. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13251. ) != -1 &&
  13252. a[i].tool[0] == 16 &&
  13253. b[j].atool != 50
  13254. ) {
  13255. this.workStudent[i].push({
  13256. works: b[j].content,
  13257. sName: b[j].name,
  13258. score: b[j].score,
  13259. img: b[j].img,
  13260. type: 1,
  13261. time: b[j].time,
  13262. userid: b[j].userid,
  13263. wid: b[j].id,
  13264. });
  13265. } else if (
  13266. y.indexOf(
  13267. b[j].content
  13268. .split(".")
  13269. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13270. ) != -1 &&
  13271. a[i].tool[0] == 16 &&
  13272. b[j].atool != 50
  13273. ) {
  13274. this.workStudent[i].push({
  13275. userid: b[j].userid,
  13276. wid: b[j].id,
  13277. works: b[j].content,
  13278. sName: b[j].name,
  13279. score: b[j].score,
  13280. img: b[j].img,
  13281. type: 3,
  13282. time: b[j].time,
  13283. });
  13284. } else if (b[j].type == 6 && b[j].atool != 50) {
  13285. this.workStudent[i].push({
  13286. userid: b[j].userid,
  13287. wid: b[j].id,
  13288. works: b[j].content,
  13289. sName: b[j].name,
  13290. score: b[j].score,
  13291. img: b[j].img,
  13292. type: 4,
  13293. time: b[j].time,
  13294. });
  13295. } else if (b[j].type == 7 && b[j].atool != 50) {
  13296. this.workStudent[i].push({
  13297. userid: b[j].userid,
  13298. wid: b[j].id,
  13299. works: b[j].content,
  13300. sName: b[j].name,
  13301. score: b[j].score,
  13302. img: b[j].img,
  13303. type: 5,
  13304. time: b[j].time,
  13305. });
  13306. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13307. this.workStudent[i].push({
  13308. works: b[j].content,
  13309. sName: b[j].name,
  13310. score: b[j].score,
  13311. img: b[j].img,
  13312. type: 12,
  13313. time: b[j].time,
  13314. userid: b[j].userid,
  13315. wid: b[j].id,
  13316. });
  13317. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13318. this.workStudent[i].push({
  13319. works: b[j].content,
  13320. sName: b[j].name,
  13321. score: b[j].score,
  13322. img: b[j].img,
  13323. type: 0,
  13324. time: b[j].time,
  13325. userid: b[j].userid,
  13326. wid: b[j].id,
  13327. });
  13328. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13329. this.workStudent[i].push({
  13330. works: b[j].content,
  13331. sName: b[j].name,
  13332. score: b[j].score,
  13333. img: b[j].img,
  13334. type: 0,
  13335. time: b[j].time,
  13336. userid: b[j].userid,
  13337. wid: b[j].id,
  13338. });
  13339. }
  13340. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13341. this.workStudent[i].push({
  13342. works: b[j].content,
  13343. sName: b[j].name,
  13344. score: b[j].score,
  13345. img: b[j].img,
  13346. type: 2,
  13347. time: b[j].time,
  13348. userid: b[j].userid,
  13349. wid: b[j].id,
  13350. });
  13351. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13352. //问卷
  13353. this.workStudent[i].push({
  13354. works: b[j].content,
  13355. sName: b[j].name,
  13356. score: b[j].score,
  13357. img: b[j].img,
  13358. type: 2,
  13359. time: b[j].time,
  13360. userid: b[j].userid,
  13361. wid: b[j].id,
  13362. });
  13363. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13364. //选择题
  13365. this.workStudent[i].push({
  13366. works: b[j].content,
  13367. sName: b[j].name,
  13368. score: b[j].score,
  13369. img: b[j].img,
  13370. type: 8,
  13371. time: b[j].time,
  13372. userid: b[j].userid,
  13373. wid: b[j].id,
  13374. });
  13375. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13376. //选择题
  13377. this.workStudent[i].push({
  13378. works: b[j].content,
  13379. sName: b[j].name,
  13380. score: b[j].score,
  13381. img: b[j].img,
  13382. type: 9,
  13383. time: b[j].time,
  13384. userid: b[j].userid,
  13385. wid: b[j].id,
  13386. });
  13387. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13388. //选择题
  13389. this.workStudent[i].push({
  13390. works: b[j].content,
  13391. sName: b[j].name,
  13392. score: b[j].score,
  13393. img: b[j].img,
  13394. type: 10,
  13395. time: b[j].time,
  13396. userid: b[j].userid,
  13397. wid: b[j].id,
  13398. });
  13399. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13400. //选择题
  13401. this.workStudent[i].push({
  13402. works: b[j].content,
  13403. sName: b[j].name,
  13404. score: b[j].score,
  13405. img: b[j].img,
  13406. type: 13,
  13407. time: b[j].time,
  13408. userid: b[j].userid,
  13409. wid: b[j].id,
  13410. });
  13411. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13412. //选择题
  13413. this.workStudent[i].push({
  13414. works: b[j].content,
  13415. sName: b[j].name,
  13416. score: b[j].score,
  13417. img: b[j].img,
  13418. type: 12,
  13419. time: b[j].time,
  13420. userid: b[j].userid,
  13421. wid: b[j].id,
  13422. });
  13423. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13424. //选择题
  13425. this.workStudent[i].push({
  13426. works: b[j].content,
  13427. sName: b[j].name,
  13428. score: b[j].score,
  13429. img: b[j].img,
  13430. type: 12,
  13431. time: b[j].time,
  13432. userid: b[j].userid,
  13433. wid: b[j].id,
  13434. });
  13435. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13436. //选择题
  13437. this.workStudent[i].push({
  13438. works: b[j].content,
  13439. sName: b[j].name,
  13440. score: b[j].score,
  13441. img: b[j].img,
  13442. type: 15,
  13443. time: b[j].time,
  13444. userid: b[j].userid,
  13445. wid: b[j].id,
  13446. });
  13447. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13448. //英语写作
  13449. this.workStudent[i].push({
  13450. works: b[j].content,
  13451. sName: b[j].name,
  13452. score: b[j].score,
  13453. img: b[j].img,
  13454. type: 16,
  13455. time: b[j].time,
  13456. userid: b[j].userid,
  13457. wid: b[j].id,
  13458. aiCode: b[j].aiCode,
  13459. teacherCode: b[j].teacherCode
  13460. });
  13461. }
  13462. }
  13463. }
  13464. }
  13465. })
  13466. .catch((err) => {
  13467. console.error(err);
  13468. });
  13469. },
  13470. openVideo(w) {
  13471. this.videoDetail = {};
  13472. this.playerOptions1.sources[0].src = w.works;
  13473. this.videoDetail = this.playerOptions1;
  13474. this.videoVisible = true;
  13475. },
  13476. isLikes(wid, uid, t, c, isLikes) {
  13477. if (isLikes == false) {
  13478. let params = [
  13479. {
  13480. wid: wid,
  13481. lid: uid,
  13482. t: t,
  13483. c: c,
  13484. },
  13485. ];
  13486. this.ajax
  13487. .post(this.$store.state.api + "insertComment", params)
  13488. .then((res) => {
  13489. this.$message({
  13490. message: "点赞成功",
  13491. type: "success",
  13492. });
  13493. this.selectSWorks();
  13494. this.selectStudent();
  13495. })
  13496. .catch((err) => {
  13497. this.$message.error("点赞失败");
  13498. console.error(err);
  13499. });
  13500. } else {
  13501. let params = {
  13502. wid: wid,
  13503. lid: uid,
  13504. type: t,
  13505. };
  13506. this.ajax
  13507. .get(this.$store.state.api + "deleteComment", params)
  13508. .then((res) => {
  13509. this.$message({
  13510. message: "取消点赞成功",
  13511. type: "success",
  13512. });
  13513. this.selectSWorks();
  13514. this.selectStudent();
  13515. })
  13516. .catch((err) => {
  13517. console.error(err);
  13518. });
  13519. }
  13520. },
  13521. deleteComment(wid) {
  13522. this.$confirm("确定删除此评论吗?", "提示", {
  13523. confirmButtonText: "确定",
  13524. cancelButtonText: "取消",
  13525. type: "warning",
  13526. })
  13527. .then(() => {
  13528. let params = {
  13529. id: wid,
  13530. };
  13531. this.ajax
  13532. .get(this.$store.state.api + "deleteComment2", params)
  13533. .then((res) => {
  13534. this.$message({
  13535. message: "删除评论成功",
  13536. type: "success",
  13537. });
  13538. this.selectSWorks();
  13539. this.selectStudent();
  13540. })
  13541. .catch((err) => {
  13542. console.error(err);
  13543. });
  13544. })
  13545. .catch(() => {});
  13546. },
  13547. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13548. this.commentIndexJson = {
  13549. toolIndex: toolIndex,
  13550. wIndex: wIndex,
  13551. gindex: gindex,
  13552. gid: gid,
  13553. };
  13554. this.commentDetail = [];
  13555. this.commentDialogVisible = true;
  13556. this.commentDetail = w;
  13557. if (w.works && w.type == 1) {
  13558. this.pptImgUrl = "";
  13559. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13560. if (
  13561. a.indexOf(
  13562. w.works
  13563. .split(".")
  13564. [w.works.split(".").length - 1].toLocaleUpperCase()
  13565. ) != -1
  13566. ) {
  13567. this.pptImgUrl =
  13568. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13569. this.showPDF = false;
  13570. } else if (
  13571. w.works
  13572. .split(".")
  13573. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13574. ) {
  13575. this.pptImgUrl = w.works;
  13576. this.showPDF = true;
  13577. }
  13578. } else if (w.works && w.type == 3) {
  13579. this.videoDetail = {};
  13580. this.playerOptions1.sources[0].src = w.works;
  13581. this.videoDetail = this.playerOptions1;
  13582. // this.videoVisible = true;
  13583. } else if (w.works && w.type == 4) {
  13584. this.eScore = JSON.parse(w.works);
  13585. this.rateJson =
  13586. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13587. this.taskCount
  13588. ].toolChoose[toolIndex].rateJson;
  13589. } else if (w.works && w.type == 10) {
  13590. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13591. } else if (w.works && w.type == 13) {
  13592. this.wordJson =
  13593. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13594. this.taskCount
  13595. ].toolChoose[toolIndex].wordJson;
  13596. }
  13597. },
  13598. openScore(w) {
  13599. this.wScore = 0;
  13600. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13601. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13602. this.commentDetail = [];
  13603. this.dialogVisibleScore = true;
  13604. this.commentDetail = w;
  13605. if (w.works && w.type == 1) {
  13606. this.pptImgUrl = "";
  13607. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13608. if (
  13609. a.indexOf(
  13610. w.works
  13611. .split(".")
  13612. [w.works.split(".").length - 1].toLocaleUpperCase()
  13613. ) != -1
  13614. ) {
  13615. this.pptImgUrl =
  13616. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13617. this.showPDF = false;
  13618. } else if (
  13619. w.works
  13620. .split(".")
  13621. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13622. ) {
  13623. this.pptImgUrl = w.works;
  13624. this.showPDF = true;
  13625. }
  13626. } else if (w.works && w.type == 3) {
  13627. this.videoDetail = {};
  13628. this.playerOptions1.sources[0].src = w.works;
  13629. this.videoDetail = this.playerOptions1;
  13630. }
  13631. },
  13632. addComment(wid, uid, t) {
  13633. if (this.commentText == "") {
  13634. this.$message.error("请输入评论");
  13635. return;
  13636. }
  13637. let params2 = [
  13638. {
  13639. wid: wid,
  13640. lid: uid,
  13641. t: t,
  13642. },
  13643. ];
  13644. this.ajax
  13645. .post(this.$store.state.api + "getComment", params2)
  13646. .then((res) => {
  13647. if (res.data[0].length > 0) {
  13648. this.$message.error("一个作业只能评论一条");
  13649. } else {
  13650. let params = [
  13651. {
  13652. wid: wid,
  13653. lid: uid,
  13654. t: t,
  13655. c: this.commentText,
  13656. },
  13657. ];
  13658. this.ajax
  13659. .post(this.$store.state.api + "insertComment", params)
  13660. .then((res) => {
  13661. this.$message({
  13662. message: "评论成功",
  13663. type: "success",
  13664. });
  13665. this.commentText = "";
  13666. this.selectSWorks();
  13667. this.selectStudent();
  13668. })
  13669. .catch((err) => {
  13670. this.$message.error("评论失败");
  13671. console.error(err);
  13672. });
  13673. }
  13674. })
  13675. .catch((err) => {
  13676. // this.$message.error("评论失败");
  13677. console.error(err);
  13678. });
  13679. },
  13680. scoreWork(wid) {
  13681. if (this.wScore == 0) {
  13682. this.$message.error("请评分");
  13683. return;
  13684. }
  13685. let params = [
  13686. {
  13687. wid: wid,
  13688. score: JSON.stringify({
  13689. wScore: this.wScore,
  13690. detail: this.scoreDetail,
  13691. }),
  13692. },
  13693. ];
  13694. this.ajax
  13695. .post(this.$store.state.api + "scoreWork", params)
  13696. .then((res) => {
  13697. this.$message({
  13698. message: "评分成功",
  13699. type: "success",
  13700. });
  13701. this.wScore = 0;
  13702. this.scoreDetail = "";
  13703. this.dialogVisibleScore = false;
  13704. this.selectSWorks();
  13705. this.selectStudent();
  13706. })
  13707. .catch((err) => {
  13708. this.$message.error("评分失败");
  13709. console.error(err);
  13710. });
  13711. },
  13712. openXz(w, i) {
  13713. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13714. .taskJson[this.taskCount].toolChoose[i].selectJson
  13715. ? JSON.parse(
  13716. JSON.stringify(
  13717. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13718. this.taskCount
  13719. ].toolChoose[i].selectJson
  13720. )
  13721. )
  13722. : { url: "", select: [], answer: [] };
  13723. var a = w.works.split(",");
  13724. for (var k = 0; k < a.length; k++) {
  13725. a[k] = parseInt(a[k]);
  13726. }
  13727. this.selectAnswer = { answer: a, stu: w.sName };
  13728. this.isSelect = true;
  13729. this.dialogVisibleSelect = true;
  13730. },
  13731. openSen(w, i) {
  13732. this.sentenceList1 = JSON.parse(w.works);
  13733. this.sentenceList1.stuName = w.sName;
  13734. this.dialogVisibleSentence1 = true;
  13735. },
  13736. openPj(w, toolindex) {
  13737. this.isStar = true;
  13738. this.eScore = JSON.parse(w);
  13739. this.rateJson =
  13740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13741. this.taskCount
  13742. ].toolChoose[toolindex].rateJson;
  13743. this.studentEvalDialogVisible = true;
  13744. },
  13745. openEnglishEva(id,i){
  13746. let params = {
  13747. wid: id
  13748. };
  13749. this.ajax
  13750. .get(this.$store.state.api + "selectEngWork", params)
  13751. .then((res) => {
  13752. this.evaEngJson.message = res.data[0][0];
  13753. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13754. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13755. .toolChoose[i].englishList;
  13756. this.engEvaDialogVisible = true;
  13757. })
  13758. .catch((err) => {
  13759. console.error(err);
  13760. });
  13761. },
  13762. deleteWorks(id) {
  13763. this.$confirm("确定删除此作业吗?", "提示", {
  13764. confirmButtonText: "确定",
  13765. cancelButtonText: "取消",
  13766. type: "warning",
  13767. })
  13768. .then(() => {
  13769. let params = [
  13770. {
  13771. id: id,
  13772. },
  13773. ];
  13774. this.ajax
  13775. .post(this.$store.state.api + "deleteCourseWork", params)
  13776. .then((res) => {
  13777. this.$message({
  13778. message: "删除成功",
  13779. type: "success",
  13780. });
  13781. this.selectStudent();
  13782. this.selectSWorks();
  13783. this.selectSLook();
  13784. })
  13785. .catch((err) => {
  13786. this.$message.error("网络异常");
  13787. console.error(err);
  13788. });
  13789. })
  13790. .catch(() => {});
  13791. },
  13792. selectSWorks(gindex) {
  13793. //教师查看全部作业
  13794. let params = {
  13795. cid: this.id,
  13796. s: this.courseType,
  13797. t: this.taskCount,
  13798. };
  13799. this.ajax
  13800. .get(this.$store.state.api + "selectSWorks", params)
  13801. .then((res) => {
  13802. var a =
  13803. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13804. this.taskCount
  13805. ].toolChoose;
  13806. var b = res.data[0];
  13807. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13808. var y = [
  13809. "AVI",
  13810. "NAVI",
  13811. "MPEG",
  13812. "ASF",
  13813. "MOV",
  13814. "WMV",
  13815. "3GP",
  13816. "RM",
  13817. "RMVB",
  13818. "FLV",
  13819. "F4V",
  13820. "H.264",
  13821. "H.265",
  13822. "REAL VIDEO",
  13823. "MKV",
  13824. "WebM",
  13825. "HDDVD",
  13826. "MP4",
  13827. "MPG",
  13828. "M4V",
  13829. "MGV",
  13830. "OGV",
  13831. "QTM",
  13832. "STR",
  13833. "AMC",
  13834. "DVX",
  13835. "EVO",
  13836. "DAT",
  13837. "OGG",
  13838. "OGM",
  13839. ];
  13840. var d = res.data[1];
  13841. var e = res.data[2];
  13842. var f = res.data[3];
  13843. let _worksStudent = [];
  13844. var _worksStudent2 = [];
  13845. for (var i = 0; i < a.length; i++) {
  13846. _worksStudent[i] = [];
  13847. _worksStudent2[i] = [];
  13848. if (
  13849. !this.isCloseList[i] ||
  13850. this.isCloseList[i].isClose == undefined
  13851. ) {
  13852. this.isCloseList[i] = { isClose: 0 };
  13853. }
  13854. this.groupStudent[i] = [];
  13855. this.groupStudentUid[i] = [];
  13856. if (this.isGroup) {
  13857. for (
  13858. var groupI = 0;
  13859. groupI < this.courseGroup.group.length;
  13860. groupI++
  13861. ) {
  13862. this.courseGroup.group[groupI].works[i] = [];
  13863. }
  13864. }
  13865. this.isWorksS[i] = [];
  13866. this.checkJson[i] = [];
  13867. if (a[i].tool[0] == 49) {
  13868. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13869. this.groupStudent[i][gA] = [];
  13870. this.groupStudentUid[i][gA] = [];
  13871. _worksStudent[i][gA] = [];
  13872. _worksStudent2[i][gA] = [];
  13873. this.isCloseList[i][gA] = [];
  13874. for (var g = 0; g < f.length; g++) {
  13875. if (
  13876. f[g].ttype == 2 &&
  13877. this.tcid &&
  13878. this.arrayToArray(
  13879. f[g].classid.split(","),
  13880. this.tcid.split(",")
  13881. ).length == 0
  13882. ) {
  13883. continue;
  13884. }
  13885. if (gA == f[g].group && f[g].tool == i) {
  13886. this.groupStudent[i][gA].push(f[g]);
  13887. this.groupStudentUid[i][gA].push(f[g].userid);
  13888. }
  13889. }
  13890. }
  13891. this.$forceUpdate();
  13892. }
  13893. for (var j = 0; j < b.length; j++) {
  13894. if (
  13895. b[j].ttype == 2 &&
  13896. this.tcid &&
  13897. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13898. .length == 0
  13899. ) {
  13900. continue;
  13901. }
  13902. var likesCount = 0;
  13903. var commentCount = 0;
  13904. var isLikes = false;
  13905. var commentJson = [];
  13906. var data = b[j];
  13907. if (i == b[j].tool) {
  13908. if (data.type == 2 && a[i].tool[0] == 4) {
  13909. // if(JSON.parse(data.content)[0].anwer){
  13910. var checkL =
  13911. JSON.parse(data.content)[0].anwer instanceof Array
  13912. ? JSON.parse(data.content)[0].anwer
  13913. : JSON.parse(data.content)[0].anwer.split(",");
  13914. for (var z = 0; z < checkL.length; z++) {
  13915. if (!this.checkJson[i][z]) {
  13916. this.checkJson[i].push({
  13917. checkCount: [],
  13918. checkPerson: [],
  13919. rightPerson: [],
  13920. });
  13921. }
  13922. if (!this.checkJson[i][z].checkCount.length) {
  13923. this.checkJson[i][z].checkCount = [];
  13924. let _askItemCount = JSON.parse(data.content)[0].askJson
  13925. .askJson[z].askItem;
  13926. for (var aic = 0; aic < _askItemCount; aic++) {
  13927. this.checkJson[i][z].checkCount.push(0);
  13928. }
  13929. }
  13930. if (checkL[z] instanceof Array) {
  13931. if (
  13932. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13933. checkL[z].sort().join(",")
  13934. ) {
  13935. this.checkJson[i][z].rightPerson.push(data.name);
  13936. }
  13937. for (var q = 0; q < checkL[z].length; q++) {
  13938. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13939. ? this.checkJson[i][z].checkPerson[
  13940. parseInt(checkL[z][q])
  13941. ].push(data.name)
  13942. : (this.checkJson[i][z].checkPerson[
  13943. parseInt(checkL[z][q])
  13944. ] = [data.name]);
  13945. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13946. ? this.checkJson[i][z].checkCount[
  13947. parseInt(checkL[z][q])
  13948. ]++
  13949. : (this.checkJson[i][z].checkCount[
  13950. parseInt(checkL[z][q])
  13951. ] = 1);
  13952. }
  13953. } else {
  13954. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13955. this.checkJson[i][z].rightPerson.push(data.name);
  13956. }
  13957. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13958. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13959. ? this.checkJson[i][z].checkPerson[
  13960. parseInt(checkL[z])
  13961. ].push(data.name)
  13962. : (this.checkJson[i][z].checkPerson[
  13963. parseInt(checkL[z])
  13964. ] = [data.name]);
  13965. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13966. ? this.checkJson[i][z].checkCount[
  13967. parseInt(checkL[z])
  13968. ]++
  13969. : (this.checkJson[i][z].checkCount[
  13970. parseInt(checkL[z])
  13971. ] = 1);
  13972. }
  13973. }
  13974. }
  13975. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13976. var checkL = JSON.parse(data.content)[0].anwer;
  13977. for (var z = 0; z < checkL.length; z++) {
  13978. if (!this.checkJson[i][z]) {
  13979. this.checkJson[i].push({
  13980. checkCount: [],
  13981. checkPerson: [],
  13982. rightPerson: [],
  13983. });
  13984. }
  13985. if (!this.checkJson[i][z].checkCount.length) {
  13986. this.checkJson[i][z].checkCount = [];
  13987. let _askItemCount = JSON.parse(data.content)[0].testJson
  13988. .testJson[z].testItem;
  13989. for (var aic = 0; aic < _askItemCount; aic++) {
  13990. this.checkJson[i][z].checkCount.push(0);
  13991. }
  13992. }
  13993. if (checkL[z] instanceof Array) {
  13994. if (
  13995. JSON.parse(data.content)[0]
  13996. .testJson.testJson[z].answer.sort()
  13997. .join(",") == checkL[z].sort().join(",")
  13998. ) {
  13999. this.checkJson[i][z].rightPerson.push(data.name);
  14000. }
  14001. for (var q = 0; q < checkL[z].length; q++) {
  14002. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14003. ? this.checkJson[i][z].checkPerson[
  14004. parseInt(checkL[z][q])
  14005. ].push(data.name)
  14006. : (this.checkJson[i][z].checkPerson[
  14007. parseInt(checkL[z][q])
  14008. ] = [data.name]);
  14009. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14010. ? this.checkJson[i][z].checkCount[
  14011. parseInt(checkL[z][q])
  14012. ]++
  14013. : (this.checkJson[i][z].checkCount[
  14014. parseInt(checkL[z][q])
  14015. ] = 1);
  14016. }
  14017. } else {
  14018. if (
  14019. JSON.parse(data.content)[0].testJson.testJson[z]
  14020. .answer == checkL[z]
  14021. ) {
  14022. this.checkJson[i][z].rightPerson.push(data.name);
  14023. }
  14024. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14025. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14026. ? this.checkJson[i][z].checkPerson[
  14027. parseInt(checkL[z])
  14028. ].push(data.name)
  14029. : (this.checkJson[i][z].checkPerson[
  14030. parseInt(checkL[z])
  14031. ] = [data.name]);
  14032. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14033. ? this.checkJson[i][z].checkCount[
  14034. parseInt(checkL[z])
  14035. ]++
  14036. : (this.checkJson[i][z].checkCount[
  14037. parseInt(checkL[z])
  14038. ] = 1);
  14039. }
  14040. }
  14041. }
  14042. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14043. var checkL = JSON.parse(data.content);
  14044. for (var z = 0; z < checkL.length; z++) {
  14045. if (!this.checkJson[i][z]) {
  14046. this.checkJson[i].push({
  14047. checkCount: [],
  14048. checkPerson: [],
  14049. rightPerson: [],
  14050. });
  14051. }
  14052. this.checkJson[i][z].checkPerson.push(data.name);
  14053. if (
  14054. checkL[z].chooseSenList.toString() ==
  14055. checkL[z].rightAnswer.toString()
  14056. ) {
  14057. this.checkJson[i][z].rightPerson.push(data.name);
  14058. }
  14059. }
  14060. }
  14061. for (var k = 0; k < d.length; k++) {
  14062. //点赞
  14063. if (d[k].workId == b[j].id) {
  14064. likesCount++;
  14065. if (d[k].likesId == this.userid) {
  14066. isLikes = true;
  14067. }
  14068. }
  14069. }
  14070. for (var l = 0; l < e.length; l++) {
  14071. //评论
  14072. if (e[l].workId == b[j].id) {
  14073. if (e[l].comment != "") {
  14074. commentCount++;
  14075. commentJson.push({
  14076. commentText: e[l].comment,
  14077. commentTime: e[l].commentTime,
  14078. commentPeople: e[l].commentPeople,
  14079. userid: e[l].userid,
  14080. wid: e[l].id,
  14081. });
  14082. }
  14083. }
  14084. }
  14085. if (
  14086. (b[j].type == 1 ||
  14087. b[j].type == 4 ||
  14088. b[j].type == 5 ||
  14089. b[j].type == 6 ||
  14090. b[j].type == 12 ||
  14091. b[j].type == 7) &&
  14092. a[i].tool[0] != 15 &&
  14093. a[i].tool[0] != 4 &&
  14094. a[i].tool[0] != 45 &&
  14095. a[i].tool[0] != 50 &&
  14096. a[i].tool[0] != 32 &&
  14097. a[i].tool[0] != 57 &&
  14098. a[i].tool[0] != 52
  14099. ) {
  14100. if (
  14101. c.indexOf(
  14102. b[j].content
  14103. .split(".")
  14104. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14105. ) != -1 &&
  14106. a[i].tool[0] == 16 &&
  14107. b[j].atool != 50
  14108. ) {
  14109. let _works = {
  14110. userid: b[j].userid,
  14111. ateacher: b[j].ateacher,
  14112. wid: b[j].id,
  14113. works: b[j].content,
  14114. sName: b[j].name,
  14115. type: 1,
  14116. time: b[j].time,
  14117. score: b[j].score,
  14118. img: b[j].img,
  14119. likesCount: likesCount,
  14120. commentCount: commentCount,
  14121. isLikes: isLikes,
  14122. commentJson: commentJson,
  14123. };
  14124. if (this.isGroup) {
  14125. let isGw = 1;
  14126. for (
  14127. var groupI = 0;
  14128. groupI < this.courseGroup.group.length;
  14129. groupI++
  14130. ) {
  14131. let gid = this.courseGroup.group[groupI].id;
  14132. if (
  14133. this.courseGroupStudentUid[gid].indexOf(
  14134. b[j].userid
  14135. ) != -1
  14136. ) {
  14137. isGw = 2;
  14138. this.courseGroup.group[groupI].works[i].push(_works);
  14139. break;
  14140. }
  14141. }
  14142. if (isGw == 1) {
  14143. _worksStudent[i].push(_works);
  14144. }
  14145. } else {
  14146. _worksStudent[i].push(_works);
  14147. }
  14148. _worksStudent2[i].push(_works);
  14149. this.isWorksS[i].push({
  14150. uid: b[j].userid,
  14151. sName: b[j].name,
  14152. });
  14153. } else if (
  14154. y.indexOf(
  14155. b[j].content
  14156. .split(".")
  14157. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14158. ) != -1 &&
  14159. a[i].tool[0] == 16 &&
  14160. b[j].atool != 50
  14161. ) {
  14162. let _works = {
  14163. userid: b[j].userid,
  14164. ateacher: b[j].ateacher,
  14165. wid: b[j].id,
  14166. works: b[j].content,
  14167. sName: b[j].name,
  14168. type: 3,
  14169. time: b[j].time,
  14170. score: b[j].score,
  14171. img: b[j].img,
  14172. likesCount: likesCount,
  14173. commentCount: commentCount,
  14174. isLikes: isLikes,
  14175. commentJson: commentJson,
  14176. };
  14177. if (this.isGroup) {
  14178. let isGw = 1;
  14179. for (
  14180. var groupI = 0;
  14181. groupI < this.courseGroup.group.length;
  14182. groupI++
  14183. ) {
  14184. let gid = this.courseGroup.group[groupI].id;
  14185. if (
  14186. this.courseGroupStudentUid[gid].indexOf(
  14187. b[j].userid
  14188. ) != -1
  14189. ) {
  14190. isGw = 2;
  14191. this.courseGroup.group[groupI].works[i].push(_works);
  14192. break;
  14193. }
  14194. }
  14195. if (isGw == 1) {
  14196. _worksStudent[i].push(_works);
  14197. }
  14198. } else {
  14199. _worksStudent[i].push(_works);
  14200. }
  14201. _worksStudent2[i].push(_works);
  14202. this.isWorksS[i].push({
  14203. uid: b[j].userid,
  14204. sName: b[j].name,
  14205. });
  14206. } else if (b[j].type == 6 && b[j].atool != 50) {
  14207. let _works = {
  14208. userid: b[j].userid,
  14209. ateacher: b[j].ateacher,
  14210. wid: b[j].id,
  14211. works: b[j].content,
  14212. sName: b[j].name,
  14213. type: 4,
  14214. time: b[j].time,
  14215. score: b[j].score,
  14216. img: b[j].img,
  14217. likesCount: likesCount,
  14218. commentCount: commentCount,
  14219. isLikes: isLikes,
  14220. commentJson: commentJson,
  14221. };
  14222. _worksStudent[i].push(_works);
  14223. _worksStudent2[i].push(_works);
  14224. this.isWorksS[i].push({
  14225. uid: b[j].userid,
  14226. sName: b[j].name,
  14227. });
  14228. } else if (b[j].type == 7 && b[j].atool != 50) {
  14229. let _work = {
  14230. userid: b[j].userid,
  14231. ateacher: b[j].ateacher,
  14232. wid: b[j].id,
  14233. works: b[j].content,
  14234. sName: b[j].name,
  14235. type: 5,
  14236. time: b[j].time,
  14237. score: b[j].score,
  14238. img: b[j].img,
  14239. likesCount: likesCount,
  14240. commentCount: commentCount,
  14241. isLikes: isLikes,
  14242. commentJson: commentJson,
  14243. };
  14244. _worksStudent[i].push(_work);
  14245. _worksStudent2[i].push(_work);
  14246. this.isWorksS[i].push({
  14247. uid: b[j].userid,
  14248. sName: b[j].name,
  14249. });
  14250. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14251. let _works = {
  14252. userid: b[j].userid,
  14253. ateacher: b[j].ateacher,
  14254. wid: b[j].id,
  14255. works: b[j].content,
  14256. sName: b[j].name,
  14257. type: 12,
  14258. time: b[j].time,
  14259. score: b[j].score,
  14260. img: b[j].img,
  14261. likesCount: likesCount,
  14262. commentCount: commentCount,
  14263. isLikes: isLikes,
  14264. commentJson: commentJson,
  14265. };
  14266. if (this.isGroup) {
  14267. let isGw = 1;
  14268. for (
  14269. var groupI = 0;
  14270. groupI < this.courseGroup.group.length;
  14271. groupI++
  14272. ) {
  14273. let gid = this.courseGroup.group[groupI].id;
  14274. if (
  14275. this.courseGroupStudentUid[gid].indexOf(
  14276. b[j].userid
  14277. ) != -1
  14278. ) {
  14279. isGw = 2;
  14280. this.courseGroup.group[groupI].works[i].push(_works);
  14281. break;
  14282. }
  14283. }
  14284. if (isGw == 1) {
  14285. _worksStudent[i].push(_works);
  14286. }
  14287. } else {
  14288. _worksStudent[i].push(_works);
  14289. }
  14290. _worksStudent2[i].push(_works);
  14291. this.isWorksS[i].push({
  14292. uid: b[j].userid,
  14293. sName: b[j].name,
  14294. });
  14295. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14296. let _works = {
  14297. userid: b[j].userid,
  14298. ateacher: b[j].ateacher,
  14299. wid: b[j].id,
  14300. works: b[j].content,
  14301. sName: b[j].name,
  14302. type: 0,
  14303. time: b[j].time,
  14304. score: b[j].score,
  14305. img: b[j].img,
  14306. likesCount: likesCount,
  14307. commentCount: commentCount,
  14308. isLikes: isLikes,
  14309. commentJson: commentJson,
  14310. };
  14311. if (this.isGroup) {
  14312. let isGw = 1;
  14313. for (
  14314. var groupI = 0;
  14315. groupI < this.courseGroup.group.length;
  14316. groupI++
  14317. ) {
  14318. let gid = this.courseGroup.group[groupI].id;
  14319. if (
  14320. this.courseGroupStudentUid[gid].indexOf(
  14321. b[j].userid
  14322. ) != -1
  14323. ) {
  14324. isGw = 2;
  14325. this.courseGroup.group[groupI].works[i].push(_works);
  14326. break;
  14327. }
  14328. }
  14329. if (isGw == 1) {
  14330. _worksStudent[i].push(_works);
  14331. }
  14332. } else {
  14333. _worksStudent[i].push(_works);
  14334. }
  14335. _worksStudent2[i].push(_works);
  14336. this.isWorksS[i].push({
  14337. uid: b[j].userid,
  14338. sName: b[j].name,
  14339. });
  14340. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14341. let _works = {
  14342. userid: b[j].userid,
  14343. ateacher: b[j].ateacher,
  14344. wid: b[j].id,
  14345. works: b[j].content,
  14346. sName: b[j].name,
  14347. type: 0,
  14348. time: b[j].time,
  14349. score: b[j].score,
  14350. img: b[j].img,
  14351. likesCount: likesCount,
  14352. commentCount: commentCount,
  14353. isLikes: isLikes,
  14354. commentJson: commentJson,
  14355. };
  14356. if (this.isGroup) {
  14357. let isGw = 1;
  14358. for (
  14359. var groupI = 0;
  14360. groupI < this.courseGroup.group.length;
  14361. groupI++
  14362. ) {
  14363. let gid = this.courseGroup.group[groupI].id;
  14364. if (
  14365. this.courseGroupStudentUid[gid].indexOf(
  14366. b[j].userid
  14367. ) != -1
  14368. ) {
  14369. isGw = 2;
  14370. this.courseGroup.group[groupI].works[i].push(_works);
  14371. break;
  14372. }
  14373. }
  14374. if (isGw == 1) {
  14375. _worksStudent[i].push(_works);
  14376. }
  14377. } else {
  14378. _worksStudent[i].push(_works);
  14379. }
  14380. _worksStudent2[i].push(_works);
  14381. this.isWorksS[i].push({
  14382. uid: b[j].userid,
  14383. sName: b[j].name,
  14384. });
  14385. }
  14386. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14387. let _works = {
  14388. userid: b[j].userid,
  14389. ateacher: b[j].ateacher,
  14390. wid: b[j].id,
  14391. works: b[j].content,
  14392. sName: b[j].name,
  14393. type: 2,
  14394. time: b[j].time,
  14395. score: b[j].score,
  14396. img: b[j].img,
  14397. likesCount: likesCount,
  14398. commentCount: commentCount,
  14399. isLikes: isLikes,
  14400. commentJson: commentJson,
  14401. };
  14402. if (this.isGroup) {
  14403. let isGw = 1;
  14404. for (
  14405. var groupI = 0;
  14406. groupI < this.courseGroup.group.length;
  14407. groupI++
  14408. ) {
  14409. let gid = this.courseGroup.group[groupI].id;
  14410. if (
  14411. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14412. -1
  14413. ) {
  14414. isGw = 2;
  14415. this.courseGroup.group[groupI].works[i].push(_works);
  14416. break;
  14417. }
  14418. }
  14419. if (isGw == 1) {
  14420. _worksStudent[i].push(_works);
  14421. }
  14422. } else {
  14423. _worksStudent[i].push(_works);
  14424. }
  14425. _worksStudent2[i].push(_works);
  14426. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14427. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14428. //问卷
  14429. let _work = {
  14430. userid: b[j].userid,
  14431. ateacher: b[j].ateacher,
  14432. wid: b[j].id,
  14433. works: b[j].content,
  14434. sName: b[j].name,
  14435. type: 2,
  14436. time: b[j].time,
  14437. score: b[j].score,
  14438. img: b[j].img,
  14439. likesCount: likesCount,
  14440. commentCount: commentCount,
  14441. isLikes: isLikes,
  14442. commentJson: commentJson,
  14443. };
  14444. _worksStudent[i].push(_work);
  14445. _worksStudent2[i].push(_work);
  14446. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14447. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14448. //选择题
  14449. let _work = {
  14450. userid: b[j].userid,
  14451. ateacher: b[j].ateacher,
  14452. wid: b[j].id,
  14453. works: b[j].content,
  14454. sName: b[j].name,
  14455. type: 8,
  14456. time: b[j].time,
  14457. score: b[j].score,
  14458. img: b[j].img,
  14459. likesCount: likesCount,
  14460. commentCount: commentCount,
  14461. isLikes: isLikes,
  14462. commentJson: commentJson,
  14463. };
  14464. _worksStudent[i].push(_work);
  14465. _worksStudent2[i].push(_work);
  14466. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14467. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14468. //选择题
  14469. let _work = {
  14470. userid: b[j].userid,
  14471. ateacher: b[j].ateacher,
  14472. wid: b[j].id,
  14473. works: b[j].content,
  14474. sName: b[j].name,
  14475. type: 9,
  14476. time: b[j].time,
  14477. score: b[j].score,
  14478. img: b[j].img,
  14479. likesCount: likesCount,
  14480. commentCount: commentCount,
  14481. isLikes: isLikes,
  14482. commentJson: commentJson,
  14483. };
  14484. _worksStudent[i].push(_work);
  14485. _worksStudent2[i].push(_work);
  14486. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14487. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14488. //选择题
  14489. let _work = {
  14490. userid: b[j].userid,
  14491. ateacher: b[j].ateacher,
  14492. wid: b[j].id,
  14493. works: b[j].content,
  14494. sName: b[j].name,
  14495. type: 10,
  14496. time: b[j].time,
  14497. score: b[j].score,
  14498. img: b[j].img,
  14499. likesCount: likesCount,
  14500. commentCount: commentCount,
  14501. isLikes: isLikes,
  14502. commentJson: commentJson,
  14503. };
  14504. _worksStudent[i].push(_work);
  14505. _worksStudent2[i].push(_work);
  14506. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14507. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14508. //选择题
  14509. let _work = {
  14510. userid: b[j].userid,
  14511. ateacher: b[j].ateacher,
  14512. wid: b[j].id,
  14513. works: b[j].content,
  14514. sName: b[j].name,
  14515. type: 13,
  14516. time: b[j].time,
  14517. score: b[j].score,
  14518. img: b[j].img,
  14519. likesCount: likesCount,
  14520. commentCount: commentCount,
  14521. isLikes: isLikes,
  14522. commentJson: commentJson,
  14523. };
  14524. _worksStudent[i].push(_work);
  14525. _worksStudent2[i].push(_work);
  14526. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14527. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14528. //选择题
  14529. let _work = {
  14530. userid: b[j].userid,
  14531. ateacher: b[j].ateacher,
  14532. wid: b[j].id,
  14533. works: b[j].content,
  14534. sName: b[j].name,
  14535. type: 16,
  14536. time: b[j].time,
  14537. score: b[j].score,
  14538. img: b[j].img,
  14539. likesCount: likesCount,
  14540. commentCount: commentCount,
  14541. isLikes: isLikes,
  14542. commentJson: commentJson,
  14543. aiCode: b[j].aiCode,
  14544. teacherCode: b[j].teacherCode
  14545. };
  14546. _worksStudent[i].push(_work);
  14547. _worksStudent2[i].push(_work);
  14548. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14549. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14550. let _gindex = JSON.parse(b[j].content);
  14551. if (
  14552. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14553. b[j].userid
  14554. ) != -1
  14555. ) {
  14556. let _work = {
  14557. userid: b[j].userid,
  14558. ateacher: b[j].ateacher,
  14559. wid: b[j].id,
  14560. works: _gindex.url,
  14561. sName: b[j].name,
  14562. type: _gindex.type,
  14563. time: b[j].time,
  14564. score: b[j].score,
  14565. img: b[j].img,
  14566. likesCount: likesCount,
  14567. commentCount: commentCount,
  14568. isLikes: isLikes,
  14569. commentJson: commentJson,
  14570. };
  14571. _worksStudent[i][_gindex.groupIndex].push(_work);
  14572. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14573. }
  14574. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14575. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14576. let _work = {
  14577. userid: b[j].userid,
  14578. ateacher: b[j].ateacher,
  14579. wid: b[j].id,
  14580. works: b[j].content,
  14581. sName: b[j].name ? b[j].name : b[j].userid,
  14582. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14583. time: b[j].time,
  14584. score: b[j].score,
  14585. img: b[j].img,
  14586. likesCount: likesCount,
  14587. commentCount: commentCount,
  14588. isLikes: isLikes,
  14589. commentJson: commentJson,
  14590. };
  14591. _worksStudent[i].push(_work);
  14592. _worksStudent2[i].push(_work);
  14593. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14594. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14595. let _work = {
  14596. userid: b[j].userid,
  14597. ateacher: b[j].ateacher,
  14598. wid: b[j].id,
  14599. works: b[j].content,
  14600. sName: b[j].name ? b[j].name : b[j].userid,
  14601. type: 12,
  14602. time: b[j].time,
  14603. score: b[j].score,
  14604. img: b[j].img,
  14605. likesCount: likesCount,
  14606. commentCount: commentCount,
  14607. isLikes: isLikes,
  14608. commentJson: commentJson,
  14609. };
  14610. _worksStudent[i].push(_work);
  14611. _worksStudent2[i].push(_work);
  14612. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14613. } else if (
  14614. a[i].tool[0] == 57 &&
  14615. b[j].atool == 57 &&
  14616. b[j].type == 12
  14617. ) {
  14618. let _work = {
  14619. userid: b[j].userid,
  14620. ateacher: b[j].ateacher,
  14621. wid: b[j].id,
  14622. works: b[j].content,
  14623. sName: b[j].name ? b[j].name : b[j].userid,
  14624. type: 12,
  14625. time: b[j].time,
  14626. score: b[j].score,
  14627. img: b[j].img,
  14628. likesCount: likesCount,
  14629. commentCount: commentCount,
  14630. isLikes: isLikes,
  14631. commentJson: commentJson,
  14632. };
  14633. _worksStudent[i].push(_work);
  14634. _worksStudent2[i].push(_work);
  14635. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14636. } else if (
  14637. a[i].tool[0] == 57 &&
  14638. b[j].atool == 57 &&
  14639. b[j].type == 15
  14640. ) {
  14641. let _work = {
  14642. userid: b[j].userid,
  14643. ateacher: b[j].ateacher,
  14644. wid: b[j].id,
  14645. works: b[j].content,
  14646. sName: b[j].name ? b[j].name : b[j].userid,
  14647. type: 15,
  14648. time: b[j].time,
  14649. score: b[j].score,
  14650. img: b[j].img,
  14651. likesCount: likesCount,
  14652. commentCount: commentCount,
  14653. isLikes: isLikes,
  14654. commentJson: commentJson,
  14655. };
  14656. _worksStudent[i].push(_work);
  14657. _worksStudent2[i].push(_work);
  14658. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14659. }
  14660. }
  14661. }
  14662. if (_worksStudent[i] && _worksStudent[i].length) {
  14663. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14664. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14665. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14666. var scoreA = parseFloat(jscoreA);
  14667. var scoreB = parseFloat(jscoreB);
  14668. if (scoreA == scoreB) {
  14669. return b.likesCount - a.likesCount;
  14670. }
  14671. return scoreB - scoreA;
  14672. });
  14673. if (this.isGroup) {
  14674. for (
  14675. var groupI = 0;
  14676. groupI < this.courseGroup.group.length;
  14677. groupI++
  14678. ) {
  14679. this.courseGroup.group[groupI].works[i] =
  14680. this.courseGroup.group[groupI].works[i].sort(function (
  14681. a,
  14682. b
  14683. ) {
  14684. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14685. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14686. var scoreA = parseFloat(jscoreA);
  14687. var scoreB = parseFloat(jscoreB);
  14688. if (scoreA == scoreB) {
  14689. return b.likesCount - a.likesCount;
  14690. }
  14691. return scoreB - scoreA;
  14692. });
  14693. }
  14694. }
  14695. }
  14696. }
  14697. this.timeWorkList = _worksStudent2;
  14698. for (var i = 0; i < a.length; i++) {
  14699. for (var j = 0; j < b.length; j++) {
  14700. var data = b[j];
  14701. if (i == b[j].tool) {
  14702. if (data.type == 2 || data.type == 8) {
  14703. for (var z = 0; z < this.checkJson[i].length; z++) {
  14704. this.checkJson[i][z].checkPerent = [];
  14705. this.checkJson[i][z].right = Math.round(
  14706. (this.checkJson[i][z].rightPerson.length /
  14707. parseInt(_worksStudent[i].length)) *
  14708. 100
  14709. );
  14710. let aaaa = this.checkJson[i][z];
  14711. for (
  14712. var k = 0;
  14713. k < this.checkJson[i][z].checkCount.length;
  14714. k++
  14715. ) {
  14716. this.checkJson[i][z].checkPerent.push(
  14717. Math.round(
  14718. (this.checkJson[i][z].checkCount[k] /
  14719. parseInt(_worksStudent[i].length)) *
  14720. 100
  14721. )
  14722. );
  14723. }
  14724. }
  14725. } else if (data.type == 9) {
  14726. for (var z = 0; z < this.checkJson[i].length; z++) {
  14727. this.checkJson[i][z].checkPerent = [];
  14728. this.checkJson[i][z].right = Math.round(
  14729. (this.checkJson[i][z].rightPerson.length /
  14730. this.checkJson[i][z].checkPerson.length) *
  14731. 100
  14732. );
  14733. }
  14734. }
  14735. }
  14736. }
  14737. }
  14738. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14739. this.joinGroup(gindex);
  14740. }
  14741. this.worksStudent = _worksStudent;
  14742. this.selectWorksStudent();
  14743. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14744. this.$nextTick(()=>{
  14745. setTimeout(()=>{
  14746. setTimeout(()=>{
  14747. this.panToolHeight('tool-'+ci);
  14748. }, 500)
  14749. }, 0)
  14750. })
  14751. }
  14752. })
  14753. .catch((err) => {
  14754. console.error(err);
  14755. });
  14756. },
  14757. pngToWhiteBg(file) {
  14758. const _file = file;
  14759. let read = new FileReader();
  14760. read.readAsDataURL(file); // 文件转base64
  14761. return new Promise((resolve, reject) => {
  14762. read.onload = (e) => {
  14763. let img = new Image();
  14764. img.src = e.target.result;
  14765. img.onload = async () => {
  14766. // 生成canvas
  14767. let canvas = document.createElement("canvas");
  14768. let context = canvas.getContext("2d");
  14769. // 绘制图片到canvas上
  14770. canvas.width = img.width;
  14771. canvas.height = img.height;
  14772. // 在canvas绘制前填充白色背景
  14773. context.fillStyle = "#fff";
  14774. context.fillRect(0, 0, canvas.width, canvas.height);
  14775. context.drawImage(img, 0, 0);
  14776. let base64 = canvas.toDataURL(file["type"], 1);
  14777. let newFile = this.dataUrlToFile(base64, _file);
  14778. resolve(newFile);
  14779. };
  14780. };
  14781. });
  14782. },
  14783. dataUrlToFile(dataurl, file) {
  14784. let arr = dataurl.split(","),
  14785. mime = arr[0].match(/:(.*?);/)[1],
  14786. bstr = atob(arr[1]),
  14787. n = bstr.length,
  14788. u8arr = new Uint8Array(n);
  14789. while (n--) {
  14790. u8arr[n] = bstr.charCodeAt(n);
  14791. }
  14792. // return new Blob([u8arr], { type: mime });
  14793. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14794. type: mime,
  14795. });
  14796. },
  14797. async beforeUpload1(event, type, i) {
  14798. // this.$message.success('进入上传')
  14799. var file = "";
  14800. if (type == 5) {
  14801. file = event;
  14802. } else {
  14803. file = event.target.files[0];
  14804. }
  14805. var credentials = {
  14806. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14807. secretAccessKey: "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",
  14808. }; //秘钥形式的登录上传
  14809. window.AWS.config.update(credentials);
  14810. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14811. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14812. var _this = this;
  14813. _this.progress = 0;
  14814. _this.proVisible = true;
  14815. _this.isFinishSize = 0;
  14816. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14817. var b = [
  14818. "DOC",
  14819. "DOCX",
  14820. "DOCM",
  14821. "DOTM",
  14822. "DOTX",
  14823. "PPTX",
  14824. "PPSX",
  14825. "PPT",
  14826. "PPS",
  14827. "PPTM",
  14828. "POTM",
  14829. "PPAM",
  14830. "POTX",
  14831. "PPSM",
  14832. ];
  14833. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14834. var photoA = [
  14835. "BMP",
  14836. "GIF",
  14837. "PNG",
  14838. "JPGE",
  14839. "JPEG",
  14840. "JPG",
  14841. "TIF",
  14842. "PCX",
  14843. "TGA",
  14844. "EXIF",
  14845. "FPX",
  14846. "SVG",
  14847. "APNG",
  14848. ];
  14849. // if (
  14850. // b.indexOf(
  14851. // file.name
  14852. // .split(".")
  14853. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14854. // ) != -1
  14855. // ) {
  14856. // if (file.size / 1024 / 1024 > 10) {
  14857. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14858. // return;
  14859. // }
  14860. // } else if (
  14861. // excelA.indexOf(
  14862. // file.name
  14863. // .split(".")
  14864. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14865. // ) != "-1"
  14866. // ) {
  14867. // if (file.size / 1024 / 1024 > 5) {
  14868. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14869. // return;
  14870. // }
  14871. // }
  14872. if (
  14873. photoA.indexOf(
  14874. file.name
  14875. .split(".")
  14876. [file.name.split(".").length - 1].toLocaleUpperCase()
  14877. ) != -1 &&
  14878. type != 4
  14879. ) {
  14880. // const blob = await imageConversion.compress(file, 0.8)
  14881. file = await this.pngToWhiteBg(file);
  14882. const blob = await imageConversion.compressAccurately(file, 256);
  14883. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14884. file = new File([blob], file.name, { type: file.type });
  14885. }
  14886. if (file) {
  14887. var params = {
  14888. Key:
  14889. file.name.split(".")[0] +
  14890. new Date().getTime() +
  14891. "." +
  14892. file.name.split(".")[file.name.split(".").length - 1],
  14893. ContentType: file.type,
  14894. Body: file,
  14895. "Access-Control-Allow-Credentials": "*",
  14896. ACL: "public-read",
  14897. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14898. var options = {
  14899. // partSize: 2048 * 1024 * 1024,
  14900. partSize: 1024 * 1024 * 1024,
  14901. queueSize: 2,
  14902. leavePartsOnError: true,
  14903. };
  14904. bucket
  14905. .upload(params, options)
  14906. .on("httpUploadProgress", function (evt) {
  14907. //这里可以写进度条
  14908. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14909. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14910. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14911. })
  14912. .send(function (err, data) {
  14913. _this.progress = 100;
  14914. _this.isFinishSize = _this.isAllSize;
  14915. setTimeout(() => {
  14916. _this.proVisible = false;
  14917. }, 1000);
  14918. if (err) {
  14919. var a = _this.$refs.upload1.uploadFiles;
  14920. a.splice(a.length - 1, a.length);
  14921. _this.$message.error("上传失败");
  14922. } else {
  14923. // _this.$message.success('上传成功')
  14924. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14925. var c = [
  14926. "AVI",
  14927. "NAVI",
  14928. "MPEG",
  14929. "ASF",
  14930. "MOV",
  14931. "WMV",
  14932. "3GP",
  14933. "RM",
  14934. "RMVB",
  14935. "FLV",
  14936. "F4V",
  14937. "H.264",
  14938. "H.265",
  14939. "REAL VIDEO",
  14940. "MKV",
  14941. "WebM",
  14942. "HDDVD",
  14943. "MP4",
  14944. "MPG",
  14945. "M4V",
  14946. "MGV",
  14947. "OGV",
  14948. "QTM",
  14949. "STR",
  14950. "AMC",
  14951. "DVX",
  14952. "EVO",
  14953. "DAT",
  14954. "OGG",
  14955. "OGM",
  14956. ];
  14957. if (type == 1) {
  14958. _this.studyJuri[0].cover.push({
  14959. name: file.name,
  14960. url: data.Location,
  14961. uid: file.uid,
  14962. });
  14963. if (
  14964. c.indexOf(
  14965. _this.studyJuri[0].cover[0].url
  14966. .split(".")
  14967. [
  14968. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14969. ].toLocaleUpperCase()
  14970. ) != -1
  14971. ) {
  14972. _this.fileType = 2;
  14973. } else if (
  14974. b.indexOf(
  14975. _this.studyJuri[0].cover[0].url
  14976. .split(".")
  14977. [
  14978. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14979. ].toLocaleUpperCase()
  14980. ) != -1
  14981. ) {
  14982. _this.fileType = 1;
  14983. } else if (
  14984. photoA.indexOf(
  14985. _this.studyJuri[0].cover[0].url
  14986. .split(".")
  14987. [
  14988. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14989. ].toLocaleUpperCase()
  14990. ) != -1
  14991. ) {
  14992. _this.fileType = 0;
  14993. } else {
  14994. _this.fileType = 3;
  14995. }
  14996. _this.imgChange(null, null, type);
  14997. } else if (type == 2) {
  14998. _this.upToolImg = data.Location;
  14999. _this.imgChange(null, null, type);
  15000. _this.addCourseWorks(i);
  15001. } else if (type == 4) {
  15002. _this.addPz("3", data.Location);
  15003. } else if (type == 5) {
  15004. _this.addImgDrawImG(data.Location);
  15005. } else if (type == 6) {
  15006. var _ftype = 1;
  15007. if (
  15008. c.indexOf(
  15009. data.Location.split(".")[
  15010. data.Location.split(".").length - 1
  15011. ].toLocaleUpperCase()
  15012. ) != -1
  15013. ) {
  15014. _ftype = 5;
  15015. } else if (
  15016. b.indexOf(
  15017. data.Location.split(".")[
  15018. data.Location.split(".").length - 1
  15019. ].toLocaleUpperCase()
  15020. ) != -1
  15021. ) {
  15022. _ftype = 4;
  15023. } else {
  15024. _ftype = 1;
  15025. }
  15026. _this.plworkFile.push({
  15027. name: file.name,
  15028. url: data.Location,
  15029. uid: file.uid,
  15030. fileType: _ftype,
  15031. username:
  15032. _this.plworkFile.length > 10
  15033. ? _this.plworkFile.length + 1
  15034. : "0" + (_this.plworkFile.length + 1),
  15035. });
  15036. } else if (type == 7) {
  15037. _this.addCourseWorksGong(i, data.Location, 32);
  15038. } else if (type == 8) {
  15039. _this.addCourseWorksGong(i, data.Location, 57);
  15040. }
  15041. _this.imgChange(null, null, type);
  15042. console.log(data.Location);
  15043. // _this.$message.success('上传成功'+data.Location)
  15044. }
  15045. });
  15046. }
  15047. },
  15048. async beforeUpload3(event, type, i) {
  15049. // this.$message.success('进入上传')
  15050. let file = "";
  15051. let cfindex2 = 0;
  15052. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15053. file = event.target.files[cfindex];
  15054. var credentials = {
  15055. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15056. secretAccessKey: "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",
  15057. }; //秘钥形式的登录上传
  15058. window.AWS.config.update(credentials);
  15059. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15060. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15061. var _this = this;
  15062. // _this.progress = 0;
  15063. _this.proVisible2 = true;
  15064. var b = [
  15065. "DOC",
  15066. "DOCX",
  15067. "DOCM",
  15068. "DOTM",
  15069. "DOTX",
  15070. "PPTX",
  15071. "PPSX",
  15072. "PPT",
  15073. "PPS",
  15074. "PPTM",
  15075. "POTM",
  15076. "PPAM",
  15077. "POTX",
  15078. "PPSM",
  15079. ];
  15080. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15081. var photoA = [
  15082. "BMP",
  15083. "GIF",
  15084. "PNG",
  15085. "JPGE",
  15086. "JPG",
  15087. "TIF",
  15088. "PCX",
  15089. "TGA",
  15090. "EXIF",
  15091. "FPX",
  15092. "SVG",
  15093. "APNG",
  15094. ];
  15095. if (
  15096. photoA.indexOf(
  15097. file.name
  15098. .split(".")
  15099. [file.name.split(".").length - 1].toLocaleUpperCase()
  15100. ) != -1 &&
  15101. type != 4
  15102. ) {
  15103. // const blob = await imageConversion.compress(file, 0.8)
  15104. file = await this.pngToWhiteBg(file);
  15105. const blob = await imageConversion.compressAccurately(file, 256);
  15106. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15107. file = new File([blob], file.name, { type: file.type });
  15108. }
  15109. if (file) {
  15110. var params = {
  15111. Key:
  15112. file.name.split(".")[0] +
  15113. new Date().getTime() +
  15114. "." +
  15115. file.name.split(".")[file.name.split(".").length - 1],
  15116. ContentType: file.type,
  15117. Body: file,
  15118. "Access-Control-Allow-Credentials": "*",
  15119. ACL: "public-read",
  15120. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15121. var options = {
  15122. // partSize: 2048 * 1024 * 1024,
  15123. partSize: 1024 * 1024 * 1024,
  15124. queueSize: 2,
  15125. leavePartsOnError: true,
  15126. };
  15127. bucket
  15128. .upload(params, options)
  15129. .on("httpUploadProgress", function (evt) {
  15130. //这里可以写进度条
  15131. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15132. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15133. })
  15134. .send(function (err, data) {
  15135. // _this.progress = 100;
  15136. cfindex2++;
  15137. setTimeout(() => {
  15138. if (
  15139. cfindex2 == event.target.files.length - 1 ||
  15140. cfindex2 > event.target.files.length - 1
  15141. ) {
  15142. _this.proVisible2 = false;
  15143. }
  15144. }, 1000);
  15145. if (err) {
  15146. var a = _this.$refs.upload1.uploadFiles;
  15147. a.splice(a.length - 1, a.length);
  15148. _this.$message.error("上传失败");
  15149. } else {
  15150. // _this.$message.success('上传成功')
  15151. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15152. var c = [
  15153. "AVI",
  15154. "NAVI",
  15155. "MPEG",
  15156. "ASF",
  15157. "MOV",
  15158. "WMV",
  15159. "3GP",
  15160. "RM",
  15161. "RMVB",
  15162. "FLV",
  15163. "F4V",
  15164. "H.264",
  15165. "H.265",
  15166. "REAL VIDEO",
  15167. "MKV",
  15168. "WebM",
  15169. "HDDVD",
  15170. "MP4",
  15171. "MPG",
  15172. "M4V",
  15173. "MGV",
  15174. "OGV",
  15175. "QTM",
  15176. "STR",
  15177. "AMC",
  15178. "DVX",
  15179. "EVO",
  15180. "DAT",
  15181. "OGG",
  15182. "OGM",
  15183. ];
  15184. if (type == 1) {
  15185. _this.studyJuri[0].cover.push({
  15186. name: file.name,
  15187. url: data.Location,
  15188. uid: file.uid,
  15189. });
  15190. if (
  15191. c.indexOf(
  15192. _this.studyJuri[0].cover[0].url
  15193. .split(".")
  15194. [
  15195. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15196. ].toLocaleUpperCase()
  15197. ) != -1
  15198. ) {
  15199. _this.fileType = 2;
  15200. } else if (
  15201. b.indexOf(
  15202. _this.studyJuri[0].cover[0].url
  15203. .split(".")
  15204. [
  15205. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15206. ].toLocaleUpperCase()
  15207. ) != -1
  15208. ) {
  15209. _this.fileType = 1;
  15210. } else {
  15211. _this.fileType = 0;
  15212. }
  15213. _this.imgChange(null, null, type);
  15214. } else if (type == 2) {
  15215. _this.upToolImg = data.Location;
  15216. _this.imgChange(null, null, type);
  15217. _this.addCourseWorks(i);
  15218. } else if (type == 4) {
  15219. _this.addPz("3", data.Location);
  15220. } else if (type == 5) {
  15221. _this.addImgDrawImG(data.Location);
  15222. } else if (type == 6) {
  15223. var _ftype = 1;
  15224. if (
  15225. c.indexOf(
  15226. data.Location.split(".")[
  15227. data.Location.split(".").length - 1
  15228. ].toLocaleUpperCase()
  15229. ) != -1
  15230. ) {
  15231. _ftype = 5;
  15232. } else if (
  15233. b.indexOf(
  15234. data.Location.split(".")[
  15235. data.Location.split(".").length - 1
  15236. ].toLocaleUpperCase()
  15237. ) != -1
  15238. ) {
  15239. _ftype = 4;
  15240. } else {
  15241. _ftype = 1;
  15242. }
  15243. _this.plworkFile.push({
  15244. name: file.name,
  15245. url: data.Location,
  15246. uid: file.uid,
  15247. fileType: _ftype,
  15248. username:
  15249. _this.plworkFile.length + 1 > 9
  15250. ? _this.plworkFile.length + 1
  15251. : "0" + (_this.plworkFile.length + 1),
  15252. });
  15253. }
  15254. _this.imgChange(null, null, type);
  15255. console.log(data.Location);
  15256. // _this.$message.success('上传成功'+data.Location)
  15257. }
  15258. });
  15259. }
  15260. }
  15261. },
  15262. beforeUpload2(event, type) {
  15263. var file = event.target.files[0];
  15264. var credentials = {
  15265. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15266. secretAccessKey: "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",
  15267. }; //秘钥形式的登录上传
  15268. window.AWS.config.update(credentials);
  15269. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15270. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15271. var _this = this;
  15272. _this.progress = 0;
  15273. _this.proVisible = true;
  15274. if (file) {
  15275. var params = {
  15276. Key:
  15277. file.name.split(".")[0] +
  15278. new Date().getTime() +
  15279. "." +
  15280. file.name.split(".")[file.name.split(".").length - 1],
  15281. ContentType: file.type,
  15282. Body: file,
  15283. "Access-Control-Allow-Credentials": "*",
  15284. ACL: "public-read",
  15285. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15286. var options = {
  15287. partSize: 2048 * 1024 * 1024,
  15288. queueSize: 2,
  15289. leavePartsOnError: true,
  15290. };
  15291. bucket
  15292. .upload(params, options)
  15293. .on("httpUploadProgress", function (evt) {
  15294. //这里可以写进度条
  15295. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15296. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15297. })
  15298. .send(function (err, data) {
  15299. _this.progress = 100;
  15300. setTimeout(() => {
  15301. _this.proVisible = false;
  15302. }, 1000);
  15303. if (err) {
  15304. var a = _this.$refs.upload1.uploadFiles;
  15305. a.splice(a.length - 1, a.length);
  15306. _this.$message.error("上传失败");
  15307. } else {
  15308. if (type == 2) {
  15309. _this.studyJuri[0].upVedio.push({
  15310. name: file.name,
  15311. url: data.Location,
  15312. uid: file.uid,
  15313. });
  15314. _this.imgChange(null, null, type);
  15315. } else if (type == 3) {
  15316. _this.studyJuri[0].upFile.push({
  15317. name: file.name,
  15318. url: data.Location,
  15319. uid: file.uid,
  15320. });
  15321. _this.imgChange(null, null, type);
  15322. }
  15323. console.log(data.Location);
  15324. }
  15325. });
  15326. }
  15327. },
  15328. allScrell() {
  15329. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15330. },
  15331. nextOrpreSteps(t) {
  15332. if (this.IsFollow && this.tType == 2) {
  15333. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15334. return;
  15335. }
  15336. var b = this.chapInfoList.length - 1;
  15337. if (t == 0) {
  15338. if (this.courseType == 0) {
  15339. if (this.taskCount == 0) {
  15340. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15341. if (this.IsLookOpen) {
  15342. if (
  15343. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15344. ) {
  15345. if (
  15346. this.courseDetail.userid != this.userid &&
  15347. this.courseDetail.course_teacher &&
  15348. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15349. ) {
  15350. this.$message.error("任务未解锁");
  15351. } else {
  15352. this.$message.error("上一任务未解锁");
  15353. }
  15354. return;
  15355. }
  15356. }
  15357. this.navList[this.courseType].isOpen = false;
  15358. this.courseType = b;
  15359. this.taskCount =
  15360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15361. .length - 1;
  15362. this.navList[this.courseType].isOpen = true;
  15363. } else {
  15364. this.taskCount--;
  15365. }
  15366. } else {
  15367. if (this.taskCount == 0) {
  15368. this.navList[this.courseType].isOpen = false;
  15369. this.courseType--;
  15370. this.taskCount =
  15371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15372. .length - 1;
  15373. this.navList[this.courseType].isOpen = true;
  15374. } else {
  15375. this.taskCount--;
  15376. }
  15377. }
  15378. } else {
  15379. if (this.courseType == b) {
  15380. if (
  15381. this.taskCount ==
  15382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15383. 1
  15384. ) {
  15385. this.navList[this.courseType].isOpen = false;
  15386. this.courseType = 0;
  15387. this.taskCount = 0;
  15388. this.navList[this.courseType].isOpen = true;
  15389. } else {
  15390. var bbb = parseInt(this.taskCount) + 1;
  15391. if (
  15392. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15393. .isLook &&
  15394. this.courseDetail.userid != this.userid && this.courseDetail.course_teacher &&
  15395. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15396. this.IsLookOpen
  15397. ) {
  15398. this.$message.error("任务未解锁");
  15399. return;
  15400. }
  15401. this.taskCount++;
  15402. if (this.IsLookOpen) {
  15403. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15404. this.taskCount
  15405. ].isLook = true;
  15406. this.addCourseState(3);
  15407. }
  15408. }
  15409. } else {
  15410. if (
  15411. this.taskCount ==
  15412. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15413. 1
  15414. ) {
  15415. var bbb = parseInt(this.courseType) + 1;
  15416. if (
  15417. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].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.navList[this.courseType].isOpen = false;
  15427. this.courseType++;
  15428. this.taskCount = 0;
  15429. this.navList[this.courseType].isOpen = true;
  15430. } else {
  15431. var bbb = parseInt(this.taskCount) + 1;
  15432. if (
  15433. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15434. .isLook &&
  15435. this.courseDetail.userid != this.userid &&
  15436. this.courseDetail.course_teacher &&
  15437. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15438. this.IsLookOpen
  15439. ) {
  15440. this.$message.error("任务未解锁");
  15441. return;
  15442. }
  15443. this.taskCount++;
  15444. }
  15445. if (this.IsLookOpen) {
  15446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15447. this.taskCount
  15448. ].isLook = true;
  15449. this.addCourseState(3);
  15450. }
  15451. }
  15452. // if (
  15453. // this.taskCount ==
  15454. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15455. // ) {
  15456. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15457. // } else {
  15458. // this.taskCount++;
  15459. // }
  15460. }
  15461. document.scrollingElement.scrollTop = 0;
  15462. this.showType = 0;
  15463. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15464. // if (this.vedio[this.taskCount].length > 0) {
  15465. // var a =
  15466. // document.getElementsByClassName("box_course")[this.taskCount]
  15467. // .offsetHeight;
  15468. // document.getElementsByClassName("vedioList")[
  15469. // this.taskCount
  15470. // ].style.height = a + "px";
  15471. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15472. // a - 40 + "px";
  15473. // }
  15474. this.isNoHomeWork = false;
  15475. (this.studyJuri = [
  15476. {
  15477. content: "",
  15478. cover: [],
  15479. upVedio: [],
  15480. upFile: [],
  15481. },
  15482. ]),
  15483. (this.radio = []);
  15484. this.isClickNav = "";
  15485. this.selectPz();
  15486. this.getHomeWork();
  15487. this.getCourseDetail(2);
  15488. this.$forceUpdate();
  15489. },
  15490. openTask(s, n, i,ctype) {
  15491. if (this.IsFollow && this.tType == 2) {
  15492. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15493. return;
  15494. }
  15495. if (this.IsLookOpen) {
  15496. if (
  15497. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15498. this.courseDetail.userid != this.userid &&
  15499. this.courseDetail.course_teacher &&
  15500. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15501. ) {
  15502. this.$message.error("任务未解锁");
  15503. return;
  15504. }
  15505. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15506. if (
  15507. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15508. .isLook
  15509. ) {
  15510. this.$message.error("上一任务未解锁");
  15511. return;
  15512. }
  15513. } else if (s > this.courseType) {
  15514. if (n > 0) {
  15515. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15516. this.$message.error("上一任务未解锁");
  15517. return;
  15518. }
  15519. } else {
  15520. if (
  15521. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15522. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15523. ].isLook
  15524. ) {
  15525. this.$message.error("上一任务未解锁");
  15526. return;
  15527. }
  15528. }
  15529. }
  15530. }
  15531. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  15532. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15533. return;
  15534. }
  15535. this.courseType = s;
  15536. this.navId = i;
  15537. this.taskCount = n;
  15538. if(ctype == 2){
  15539. this.navList[s].task[n].isOpen = true
  15540. }else{
  15541. this.navList[this.courseType].task[this.taskCount].isOpen =
  15542. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15543. }
  15544. if (this.IsLookOpen) {
  15545. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15546. this.taskCount
  15547. ].isLook = true;
  15548. this.addCourseState(3);
  15549. }
  15550. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15551. this.isCloseList[ci].isClose = 0;
  15552. this.isCloseList[ci].isCloseBoolean = false;
  15553. this.$nextTick(()=>{
  15554. setTimeout(()=>{
  15555. setTimeout(()=>{
  15556. this.panToolHeight('tool-'+ci);
  15557. }, 0)
  15558. }, 0)
  15559. })
  15560. }
  15561. this.showType = 0;
  15562. this.isNoHomeWork = false;
  15563. (this.studyJuri = [
  15564. {
  15565. content: "",
  15566. cover: [],
  15567. upVedio: [],
  15568. upFile: [],
  15569. },
  15570. ]),
  15571. (this.radio = []);
  15572. document.scrollingElement.scrollTop = 0;
  15573. // setTimeout(() => {
  15574. // let a = document.getElementById(i);
  15575. // if (a.offsetTop - 110 == 0) {
  15576. // window.scrollTo(0, 0);
  15577. // } else {
  15578. // window.scrollTo(0, a.offsetTop);
  15579. // }
  15580. // }, 0);
  15581. for (var z = 0; z < this.navList.length; z++) {
  15582. for (var q = 0; q < this.navList[z].task.length; q++) {
  15583. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15584. this.navList[z].task[q].tool[w].isTool = false;
  15585. }
  15586. }
  15587. }
  15588. this.selectPz();
  15589. this.getHomeWork();
  15590. this.getCourseDetail(2);
  15591. },
  15592. get(i) {
  15593. if (this.IsFollow && this.tType == 2) {
  15594. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15595. return;
  15596. }
  15597. // for(var k=0;k<this.navList.length;k++){
  15598. // this.navList[k].isOpen = false;
  15599. // }
  15600. // this.navList[i].isOpen = true;
  15601. let a = this.navList[i].isOpen
  15602. this.navList[i].isOpen = !this.navList[i].isOpen;
  15603. this.$forceUpdate()
  15604. if (this.navList[i].isOpen) {
  15605. this.openTask(i, 0, (i + "-0"),2);
  15606. }
  15607. },
  15608. addQuestion() {
  15609. this.answerList.push({
  15610. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15611. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15612. });
  15613. let params = [
  15614. {
  15615. uid: this.userid,
  15616. cid: this.id,
  15617. stage: this.courseType,
  15618. task: this.taskCount,
  15619. tool: this.toolindex,
  15620. content: JSON.stringify(this.answerList),
  15621. type: 3,
  15622. },
  15623. ];
  15624. this.ajax
  15625. .post(this.$store.state.api + "addCourseWorks", params)
  15626. .then((res) => {
  15627. this.$message({
  15628. message: "提交成功",
  15629. type: "success",
  15630. });
  15631. this.answerList = [];
  15632. this.answerDialogVisible = false;
  15633. this.selectStudent();
  15634. this.selectSWorks();
  15635. this.selectSLook();
  15636. })
  15637. .catch((err) => {
  15638. this.$message.error("提交失败");
  15639. console.error(err);
  15640. });
  15641. },
  15642. addQuestionTeacher() {
  15643. this.answerList.push({
  15644. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15645. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15646. });
  15647. let params = [
  15648. {
  15649. uid: this.sStudent.userid,
  15650. cid: this.id,
  15651. stage: this.courseType,
  15652. task: this.taskCount,
  15653. tool: this.toolindex,
  15654. content: JSON.stringify(this.answerList),
  15655. type: 3,
  15656. ateacher: this.userid,
  15657. },
  15658. ];
  15659. this.ajax
  15660. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15661. .then((res) => {
  15662. this.$message({
  15663. message: "提交成功",
  15664. type: "success",
  15665. });
  15666. this.answerList = [];
  15667. this.questionAnswer = "";
  15668. this.answerDialogVisibleTeacher = false;
  15669. this.selectStudent();
  15670. this.selectSWorks();
  15671. this.selectSLook();
  15672. })
  15673. .catch((err) => {
  15674. this.$message.error("提交失败");
  15675. console.error(err);
  15676. });
  15677. },
  15678. refreshCourse() {
  15679. // window.location.reload();
  15680. this.navList = [];
  15681. this.getCourseDetail(1);
  15682. },
  15683. getCourseDetail(type, gindex) {
  15684. let loading;
  15685. if (type != 2) {
  15686. loading = this.$loading.service({
  15687. background: "rgba(255, 255, 255, 0.7)",
  15688. target: document.querySelector(".student_table"),
  15689. });
  15690. }
  15691. this.downLoading = false
  15692. // this.navList[0].isOpen = false;
  15693. // this.navList[this.courseType].isOpen = true;
  15694. // this.courseType = this.courseTypeLine;
  15695. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15696. let params = {
  15697. courseId: this.id,
  15698. };
  15699. this.ajax
  15700. .get(this.$store.state.api + "selectTrainCourseDetail3", params)
  15701. .then((res) => {
  15702. if (type != 2) {
  15703. loading.close();
  15704. if (
  15705. this.courseType >
  15706. JSON.parse(res.data[0][0].chapters).length - 1
  15707. ) {
  15708. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15709. }
  15710. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15711. .chapterInfo[0].taskJson;
  15712. var b = [
  15713. "AVI",
  15714. "NAVI",
  15715. "MPEG",
  15716. "ASF",
  15717. "MOV",
  15718. "WMV",
  15719. "3GP",
  15720. "RM",
  15721. "RMVB",
  15722. "FLV",
  15723. "F4V",
  15724. "H.264",
  15725. "H.265",
  15726. "REAL VIDEO",
  15727. "MKV",
  15728. "WebM",
  15729. "HDDVD",
  15730. "MP4",
  15731. "MPG",
  15732. "M4V",
  15733. "MGV",
  15734. "OGV",
  15735. "QTM",
  15736. "STR",
  15737. "AMC",
  15738. "DVX",
  15739. "EVO",
  15740. "DAT",
  15741. "OGG",
  15742. "OGM",
  15743. "MP3",
  15744. ];
  15745. let _chapterData = [];
  15746. for (var i = 0; i < a.length; i++) {
  15747. var c = a[i].chapterData;
  15748. this.vedio[i] = [];
  15749. this.textList[i] = [];
  15750. this.lineList[i] = [];
  15751. this.chapToolList[i] = [];
  15752. this.file[i] = [];
  15753. this.fileC[i] = [];
  15754. _chapterData[i] = c.filter((el) => {
  15755. return el.type != 12;
  15756. });
  15757. this.fileC[i] = c.filter((el) => {
  15758. return el.type == 12;
  15759. });
  15760. // else if (c[j].type == 12) {
  15761. // this.fileC[i].push(c[j]);
  15762. // }
  15763. for (var j = 0; j < c.length; j++) {
  15764. if (c[j].type == 7) {
  15765. this.chapToolList[i].push(c[j]);
  15766. } else if (c[j].type == 8 || c[j].type == 14) {
  15767. this.lineList[i].push(c[j]);
  15768. } else if (c[j].type == 6) {
  15769. this.textList[i].push(c[j]);
  15770. } else {
  15771. if (
  15772. b.indexOf(
  15773. c[j].url
  15774. .split(".")
  15775. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15776. ) != -1
  15777. ) {
  15778. this.vedio[i].push(c[j]);
  15779. } else {
  15780. this.file[i].push(c[j]);
  15781. }
  15782. }
  15783. }
  15784. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15785. d.sources[0].src =
  15786. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15787. this.playerO[i] = d;
  15788. }
  15789. this.courseDetail = res.data[0][0];
  15790. this.tcid = this.arrayToArray(
  15791. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15792. this.tcid2 ? this.tcid2.split(",") : []
  15793. ).join(",");
  15794. this.evalua = res.data[0][0].evaId;
  15795. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15796. this.courseType
  15797. ];
  15798. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15799. if (this.tcid && res.data[1].length) {
  15800. let _inviteA = [];
  15801. for (var ik = 0; ik < res.data[1].length; ik++) {
  15802. _inviteA.push({
  15803. cid: res.data[1][ik].classid,
  15804. ic: res.data[1][ik].code,
  15805. });
  15806. }
  15807. for (var ik = 0; ik < _inviteA.length; ik++) {
  15808. if (
  15809. this.arrayToArray(
  15810. _inviteA[ik].cid.split(","),
  15811. this.tcid.split(",")
  15812. ).length
  15813. ) {
  15814. this.inviteCode = _inviteA[ik].ic;
  15815. break;
  15816. }
  15817. }
  15818. }
  15819. for (var l = 0; l < this.chapInfoList.length; l++) {
  15820. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15821. for (var m = 0; m < w.length; m++) {
  15822. w[m].id = l + "-" + m;
  15823. }
  15824. }
  15825. if (
  15826. _chapterData[this.taskCount].length &&
  15827. _chapterData[this.taskCount][0].type == 2
  15828. ) {
  15829. this.showType = 0;
  15830. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15831. } else {
  15832. if (_chapterData[this.taskCount].length > 0) {
  15833. let _url = _chapterData[this.taskCount][0].url;
  15834. if (
  15835. _chapterData[this.taskCount][0].type == 8 ||
  15836. _chapterData[this.taskCount][0].type == 14
  15837. ) {
  15838. this.showType = 2;
  15839. if (
  15840. _url.indexOf("https://") == -1 &&
  15841. _url.indexOf("http://") == -1
  15842. ) {
  15843. _url = "https://" + _url;
  15844. }
  15845. this.pptImgUrl1 = _url;
  15846. } else if (_chapterData[this.taskCount][0].type == 3) {
  15847. if (
  15848. _url
  15849. .split(".")
  15850. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15851. ) {
  15852. this.showType = 3;
  15853. this.pptImgUrl1 = _url;
  15854. } else if (
  15855. this.isAssetTypeAnImage(
  15856. _url
  15857. .split(".")
  15858. [_url.split(".").length - 1].toLocaleLowerCase()
  15859. )
  15860. ) {
  15861. this.showType = 4;
  15862. this.pptImgUrl1 = _url;
  15863. } else {
  15864. this.showType = 2;
  15865. this.pptImgUrl1 =
  15866. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15867. encodeURIComponent(_url);
  15868. }
  15869. } else if (_chapterData[this.taskCount][0].type == 13) {
  15870. this.showType = 4;
  15871. this.pptImgUrl1 = _url;
  15872. } else if (_chapterData[this.taskCount][0].type == 6) {
  15873. this.showType = 1;
  15874. this.text = this.textList[this.taskCount][0];
  15875. }
  15876. }
  15877. }
  15878. this.isClickNav = 0;
  15879. if (
  15880. !_chapterData[this.taskCount].length ||
  15881. _chapterData[this.taskCount][0].type == 12
  15882. ) {
  15883. this.isClickNav = "";
  15884. this.showType = "";
  15885. }
  15886. this.vChapterData = _chapterData;
  15887. } else {
  15888. this.showType = 0;
  15889. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15890. .chapterInfo[0].taskJson;
  15891. var b = [
  15892. "AVI",
  15893. "NAVI",
  15894. "MPEG",
  15895. "ASF",
  15896. "MOV",
  15897. "WMV",
  15898. "3GP",
  15899. "RM",
  15900. "RMVB",
  15901. "FLV",
  15902. "F4V",
  15903. "H.264",
  15904. "H.265",
  15905. "REAL VIDEO",
  15906. "MKV",
  15907. "WebM",
  15908. "HDDVD",
  15909. "MP4",
  15910. "MPG",
  15911. "M4V",
  15912. "MGV",
  15913. "OGV",
  15914. "QTM",
  15915. "STR",
  15916. "AMC",
  15917. "DVX",
  15918. "EVO",
  15919. "DAT",
  15920. "OGG",
  15921. "OGM",
  15922. "MP3",
  15923. ];
  15924. let _chapterData = [];
  15925. for (var i = 0; i < a.length; i++) {
  15926. var c = a[i].chapterData;
  15927. this.vedio[i] = [];
  15928. this.textList[i] = [];
  15929. this.lineList[i] = [];
  15930. this.chapToolList[i] = [];
  15931. this.file[i] = [];
  15932. this.fileC[i] = [];
  15933. _chapterData[i] = c.filter((el) => {
  15934. return el.type != 12;
  15935. });
  15936. this.fileC[i] = c.filter((el) => {
  15937. return el.type == 12;
  15938. });
  15939. for (var j = 0; j < c.length; j++) {
  15940. if (c[j].type == 7) {
  15941. this.chapToolList[i].push(c[j]);
  15942. } else if (c[j].type == 8 || c[j].type == 14) {
  15943. this.lineList[i].push(c[j]);
  15944. } else if (c[j].type == 6) {
  15945. this.textList[i].push(c[j]);
  15946. } else {
  15947. if (
  15948. b.indexOf(
  15949. c[j].url
  15950. .split(".")
  15951. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15952. ) != -1
  15953. ) {
  15954. this.vedio[i].push(c[j]);
  15955. } else {
  15956. this.file[i].push(c[j]);
  15957. }
  15958. }
  15959. }
  15960. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15961. d.sources[0].src =
  15962. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15963. this.playerO[i] = d;
  15964. }
  15965. if (
  15966. _chapterData[this.taskCount].length &&
  15967. _chapterData[this.taskCount][0].type == 2
  15968. ) {
  15969. this.showType = 0;
  15970. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15971. } else {
  15972. if (_chapterData[this.taskCount].length > 0) {
  15973. let _url = _chapterData[this.taskCount][0].url;
  15974. if (
  15975. _chapterData[this.taskCount][0].type == 8 ||
  15976. _chapterData[this.taskCount][0].type == 14
  15977. ) {
  15978. this.showType = 2;
  15979. if (
  15980. _url.indexOf("https://") == -1 &&
  15981. _url.indexOf("http://") == -1
  15982. ) {
  15983. _url = "https://" + _url;
  15984. }
  15985. this.pptImgUrl1 = _url;
  15986. } else if (_chapterData[this.taskCount][0].type == 3) {
  15987. if (
  15988. _url
  15989. .split(".")
  15990. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15991. ) {
  15992. this.showType = 3;
  15993. this.pptImgUrl1 = _url;
  15994. } else if (
  15995. this.isAssetTypeAnImage(
  15996. _url
  15997. .split(".")
  15998. [_url.split(".").length - 1].toLocaleLowerCase()
  15999. )
  16000. ) {
  16001. this.showType = 4;
  16002. this.pptImgUrl1 = _url;
  16003. } else {
  16004. this.showType = 2;
  16005. this.pptImgUrl1 =
  16006. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16007. encodeURIComponent(_url);
  16008. }
  16009. } else if (_chapterData[this.taskCount][0].type == 13) {
  16010. this.showType = 4;
  16011. this.pptImgUrl1 = _url;
  16012. } else if (_chapterData[this.taskCount][0].type == 6) {
  16013. this.showType = 1;
  16014. this.text = this.textList[this.taskCount][0];
  16015. }
  16016. }
  16017. }
  16018. this.isClickNav = 0;
  16019. if (
  16020. !_chapterData[this.taskCount].length ||
  16021. _chapterData[this.taskCount][0].type == 12
  16022. ) {
  16023. this.isClickNav = "";
  16024. this.showType = "";
  16025. }
  16026. this.vChapterData = _chapterData;
  16027. this.$forceUpdate();
  16028. }
  16029. // else {
  16030. // this.courseDetail = res.data[0][0];
  16031. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16032. // }
  16033. let _this = this;
  16034. if (_this.timer) {
  16035. clearInterval(_this.timer);
  16036. _this.timer = null;
  16037. }
  16038. if (_this.tcid) {
  16039. _this.getCourseGroup(gindex);
  16040. } else {
  16041. _this.selectSWorks(gindex);
  16042. }
  16043. _this.selectStudent();
  16044. _this.selectSLook();
  16045. _this.getPick();
  16046. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16047. _this.setCTask();
  16048. }
  16049. if (_this.dialogVisibleGroup) {
  16050. _this.groupJson =
  16051. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16052. _this.taskCount
  16053. ].toolChoose[_this.toolindex].groupJson;
  16054. }
  16055. _this.$nextTick(() => {
  16056. setTimeout(() => {
  16057. _this.checkEva();
  16058. }, 1000);
  16059. });
  16060. _this.timer = setInterval(function () {
  16061. // _this.getCourseDetail(2);
  16062. if (_this.tcid) {
  16063. _this.getCourseGroup(gindex);
  16064. } else {
  16065. _this.selectSWorks(gindex);
  16066. }
  16067. _this.selectStudent();
  16068. _this.selectSLook();
  16069. _this.getPick();
  16070. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16071. _this.setCTask();
  16072. }
  16073. if (_this.dialogVisibleGroup) {
  16074. _this.groupJson =
  16075. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16076. _this.taskCount
  16077. ].toolChoose[_this.toolindex].groupJson;
  16078. }
  16079. if (_this.tType == 4 || _this.ispzType == 4) {
  16080. _this.selectPz();
  16081. }
  16082. }, 5000);
  16083. _this.$nextTick(function () {
  16084. setTimeout(() => {
  16085. // var a =
  16086. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16087. // document.getElementsByClassName("vedioList")[0].style.height =
  16088. // a + "px";
  16089. // document.getElementsByClassName("navBox")[0].style.height =
  16090. // a - 40 + "px";
  16091. // if (_this.vedio[_this.taskCount].length > 0) {
  16092. // _this.vedioTime = [];
  16093. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16094. // _this.vedioTime[i] = document.getElementsByClassName(
  16095. // "vjs-duration-display"
  16096. // )[i].textContent;
  16097. // }
  16098. // }
  16099. }, 1000);
  16100. });
  16101. })
  16102. .catch((err) => {
  16103. loading.close();
  16104. console.error(err);
  16105. });
  16106. },
  16107. getCourseGroup(gindex) {
  16108. let params = {
  16109. cid: this.id,
  16110. classid: this.tcid ? this.tcid : "1",
  16111. };
  16112. this.ajax
  16113. .get(this.$store.state.api + "getCourseGroup", params)
  16114. .then((res) => {
  16115. if (res.data && res.data[0].length) {
  16116. if (!this.isGroup) {
  16117. let courseGroup = JSON.parse(res.data[0][0].group);
  16118. courseGroup.group = courseGroup.group.filter((el) => {
  16119. el.works = [];
  16120. return el;
  16121. });
  16122. if (courseGroup.isopen == 2) {
  16123. this.isGroup = false;
  16124. this.selectSWorks(gindex);
  16125. return;
  16126. }
  16127. this.courseGroup = courseGroup;
  16128. let groupPerson = res.data[1];
  16129. let group = JSON.parse(res.data[0][0].group).group;
  16130. let courseGroupStudent = {};
  16131. let courseGroupStudentUid = {};
  16132. for (var i = 0; i < group.length; i++) {
  16133. courseGroupStudent[group[i].id] = [];
  16134. courseGroupStudentUid[group[i].id] = [];
  16135. for (var j = 0; j < groupPerson.length; j++) {
  16136. if (groupPerson[j].groupCid == group[i].id) {
  16137. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16138. courseGroupStudentUid[group[i].id].push(
  16139. groupPerson[j].userid
  16140. );
  16141. }
  16142. }
  16143. }
  16144. this.courseGroupStudent = courseGroupStudent;
  16145. this.courseGroupStudentUid = courseGroupStudentUid;
  16146. }
  16147. if (this.courseGroup.isopen == 2) {
  16148. this.isGroup = false;
  16149. } else {
  16150. this.isGroup = true;
  16151. }
  16152. this.selectSWorks(gindex);
  16153. } else {
  16154. this.selectSWorks(gindex);
  16155. this.isGroup = false;
  16156. }
  16157. })
  16158. .catch((err) => {
  16159. // this.$message.error("网络不佳");
  16160. console.error(err);
  16161. });
  16162. },
  16163. setOperationTime() {
  16164. let _this = this;
  16165. if (_this.opertimer) {
  16166. clearInterval(_this.opertimer);
  16167. _this.opertimer = null;
  16168. }
  16169. _this.opertimer = setInterval(() => {
  16170. _this.setoTime("600");
  16171. }, 600000);
  16172. },
  16173. setoTime(time) {
  16174. let params = [
  16175. {
  16176. uid: this.userid,
  16177. cid: this.id,
  16178. type: "2",
  16179. time: time,
  16180. },
  16181. ];
  16182. this.ajax
  16183. .post(this.$store.state.api + "addOperationTimeT2", params)
  16184. .then((res) => {})
  16185. .catch((err) => {
  16186. console.error(err);
  16187. });
  16188. },
  16189. addPz(type, content) {
  16190. if (type == "1" && this.pzConText == "") {
  16191. this.$message.error("评论不能为空!");
  16192. return;
  16193. }
  16194. let params = [
  16195. {
  16196. cid: this.id,
  16197. uid: this.userid,
  16198. s: this.courseType,
  16199. t: this.taskCount,
  16200. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  16201. type: type,
  16202. },
  16203. ];
  16204. this.ajax
  16205. .post(this.$store.state.api + "addPz2", params)
  16206. .then((res) => {
  16207. this.$message({
  16208. message: "添加成功",
  16209. type: "success",
  16210. });
  16211. this.pzConText = "";
  16212. this.addPzDialog = false;
  16213. this.selectPz();
  16214. })
  16215. .catch((err) => {
  16216. this.$message.error("添加失败");
  16217. console.error(err);
  16218. });
  16219. },
  16220. setReplyIndex(id, i) {
  16221. this.replyIndex = i;
  16222. this.replyPid = id;
  16223. this.replyDialogVisible = true;
  16224. },
  16225. addHf() {
  16226. if (this.reply == "") {
  16227. this.$message.error("回复不能为空!");
  16228. return;
  16229. }
  16230. let params = [
  16231. {
  16232. cid: this.id,
  16233. uid: this.userid,
  16234. s: this.courseType,
  16235. t: this.taskCount,
  16236. type: "1",
  16237. ct: 2,
  16238. pid: this.replyPid,
  16239. c: this.reply.replaceAll(/%/g, "%25"),
  16240. },
  16241. ];
  16242. this.ajax
  16243. .post(this.$store.state.api + "addHf", params)
  16244. .then((res) => {
  16245. this.reply = "";
  16246. this.$message({
  16247. message: "回复成功",
  16248. type: "success",
  16249. });
  16250. this.replyDialogVisible = false;
  16251. this.selectPz();
  16252. })
  16253. .catch((err) => {
  16254. this.$message.error("回复失败");
  16255. console.error(err);
  16256. });
  16257. },
  16258. deletePz(id) {
  16259. this.$confirm("确定删除此评论吗?", "提示", {
  16260. confirmButtonText: "确定",
  16261. cancelButtonText: "取消",
  16262. type: "warning",
  16263. })
  16264. .then(() => {
  16265. let params = [
  16266. {
  16267. id: id,
  16268. },
  16269. ];
  16270. this.ajax
  16271. .post(this.$store.state.api + "deletePz", params)
  16272. .then((res) => {
  16273. this.$message({
  16274. message: "删除成功",
  16275. type: "success",
  16276. });
  16277. this.selectPz();
  16278. })
  16279. .catch((err) => {
  16280. this.$message.error("网络异常");
  16281. console.error(err);
  16282. });
  16283. })
  16284. .catch(() => {});
  16285. },
  16286. deleteReply(id) {
  16287. this.$confirm("确定删除此回复吗?", "提示", {
  16288. confirmButtonText: "确定",
  16289. cancelButtonText: "取消",
  16290. type: "warning",
  16291. })
  16292. .then(() => {
  16293. let params = [
  16294. {
  16295. id: id,
  16296. },
  16297. ];
  16298. this.ajax
  16299. .post(this.$store.state.api + "deleteReply", params)
  16300. .then((res) => {
  16301. this.$message({
  16302. message: "删除成功",
  16303. type: "success",
  16304. });
  16305. this.selectPz();
  16306. })
  16307. .catch((err) => {
  16308. this.$message.error("网络异常");
  16309. console.error(err);
  16310. });
  16311. })
  16312. .catch(() => {});
  16313. },
  16314. setPz() {
  16315. if (this.ispzType == 4) {
  16316. this.ispzType = 0;
  16317. this.pzDialog = false;
  16318. return;
  16319. }
  16320. this.ispzType = 4;
  16321. this.pzDialog = true;
  16322. this.selectPz();
  16323. },
  16324. selectPz() {
  16325. let params = {
  16326. cid: this.id,
  16327. s: this.courseType,
  16328. t: this.taskCount,
  16329. type: this.pzStype,
  16330. uid: this.userid,
  16331. };
  16332. this.ajax
  16333. .get(this.$store.state.api + "selectPzListType", params)
  16334. .then((res) => {
  16335. this.pzList = res.data[0];
  16336. var a = res.data[1];
  16337. for (var i = 0; i < a.length; i++) {
  16338. for (var j = 0; j < this.pzList.length; j++) {
  16339. if (!this.pzList[j].hfList) {
  16340. this.pzList[j].hfList = [];
  16341. }
  16342. if (a[i].pid == this.pzList[j].id) {
  16343. this.pzList[j].hfList.push(a[i]);
  16344. }
  16345. }
  16346. }
  16347. })
  16348. .catch((err) => {
  16349. console.error(err);
  16350. });
  16351. },
  16352. // selectHf() {
  16353. // let params = {
  16354. // cid: this.id,
  16355. // s: this.courseType,
  16356. // t: this.taskCount,
  16357. // };
  16358. // this.ajax
  16359. // .get(this.$store.state.api + "selectHfList", params)
  16360. // .then((res) => {
  16361. // var a = res.data[0];
  16362. // for (var i = 0; i < a.length; i++) {
  16363. // for (var j = 0; j < this.pzList.length; j++) {
  16364. // if (!this.pzList[i].hfList) {
  16365. // this.pzList[i].hfList = [];
  16366. // }
  16367. // if (a[i].pid == this.pzList[j].id) {
  16368. // this.pzList[i].hfList.push(a[i]);
  16369. // }
  16370. // }
  16371. // }
  16372. // })
  16373. // .catch((err) => {
  16374. // console.error(err);
  16375. // });
  16376. // },
  16377. updateSLook() {
  16378. let params = {
  16379. sopen: this.sIsOpen == false ? 1 : 2,
  16380. cid: this.id,
  16381. };
  16382. this.ajax
  16383. .get(this.$store.state.api + "updateTrainCourseSLook", params)
  16384. .then((res) => {
  16385. if (this.sIsOpen == true) {
  16386. this.$message({
  16387. message: "权限设置成功",
  16388. type: "success",
  16389. });
  16390. } else {
  16391. this.$message({
  16392. message: "权限关闭成功",
  16393. type: "success",
  16394. });
  16395. }
  16396. })
  16397. .catch((err) => {
  16398. console.error(err);
  16399. });
  16400. },
  16401. updateFollow() {
  16402. let params = [
  16403. {
  16404. sopen: this.IsFollow == false ? 1 : 2,
  16405. cid: this.id,
  16406. },
  16407. ];
  16408. this.ajax
  16409. .post(this.$store.state.api + "updateTrainCourseFollow", params)
  16410. .then((res) => {
  16411. if (this.IsFollow == true) {
  16412. this.$message({
  16413. message: "开启成功",
  16414. type: "success",
  16415. });
  16416. } else {
  16417. this.$message({
  16418. message: "关闭成功",
  16419. type: "success",
  16420. });
  16421. }
  16422. this.setCTask();
  16423. })
  16424. .catch((err) => {
  16425. console.error(err);
  16426. });
  16427. },
  16428. setCTask() {
  16429. let params = [
  16430. {
  16431. sopen: this.courseType + "-" + this.taskCount,
  16432. cid: this.id,
  16433. },
  16434. ];
  16435. this.ajax
  16436. .post(this.$store.state.api + "updateTrainCourseFollowC", params)
  16437. .then((res) => {})
  16438. .catch((err) => {
  16439. console.error(err);
  16440. });
  16441. },
  16442. updateLookOpen() {
  16443. let params = [
  16444. {
  16445. sopen: this.IsLookOpen == false ? 1 : 2,
  16446. cid: this.id,
  16447. },
  16448. ];
  16449. this.ajax
  16450. .post(this.$store.state.api + "updateTrainCourseLookOpen", params)
  16451. .then((res) => {
  16452. if (this.IsLookOpen == true) {
  16453. // if (this.courseType != 0 && this.taskCount != 0) {
  16454. // this.openTask(0, 0, "0-0");
  16455. // }
  16456. this.$message({
  16457. message: "权限设置成功",
  16458. type: "success",
  16459. });
  16460. } else {
  16461. this.$message({
  16462. message: "权限关闭成功",
  16463. type: "success",
  16464. });
  16465. }
  16466. this.getCourseState(2);
  16467. })
  16468. .catch((err) => {
  16469. console.error(err);
  16470. });
  16471. },
  16472. selectSLook() {
  16473. let params = {
  16474. cid: this.id,
  16475. };
  16476. this.ajax
  16477. .get(this.$store.state.api + "selectTrainCourseSLook", params)
  16478. .then((res) => {
  16479. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16480. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16481. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16482. if (!this.IsLookOpen) {
  16483. this.setNavList();
  16484. } else {
  16485. this.getCourseState(1);
  16486. }
  16487. if (this.IsFollow && this.tType == 2) {
  16488. this.setContent2(false);
  16489. let _followC = res.data[0][0].followC.split("-");
  16490. if (
  16491. this.courseType != _followC[0] ||
  16492. this.taskCount != _followC[1]
  16493. ) {
  16494. this.navList[this.courseType].isOpen = false;
  16495. this.courseType = _followC[0];
  16496. this.navList[this.courseType].isOpen = true;
  16497. this.taskCount = parseInt(_followC[1]);
  16498. this.navId = res.data[0][0].followC;
  16499. document.scrollingElement.scrollTop = 0;
  16500. this.getCourseDetail(2);
  16501. }
  16502. }
  16503. })
  16504. .catch((err) => {
  16505. console.error(err);
  16506. });
  16507. },
  16508. setNavList() {
  16509. if (this.navList.length == 0) {
  16510. this.navList = [];
  16511. var copyList = [];
  16512. for (var l = 0; l < this.chapInfoList.length; l++) {
  16513. var q = this.chapInfoList[l].dyName;
  16514. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16515. var e;
  16516. copyList.push({
  16517. dyName: q,
  16518. isOpen: l === 0 ? true : false,
  16519. task: [],
  16520. });
  16521. for (var r = 0; r < w.length; r++) {
  16522. e = w[r].task;
  16523. if (this.chapInfoList[l].easy == 1) {
  16524. copyList[l].task.push({
  16525. taskName: q,
  16526. id: l + "-" + r,
  16527. isLook: w[r].isLook,
  16528. isOpen: r === 0 ? true : false,
  16529. tool: [],
  16530. });
  16531. } else {
  16532. copyList[l].task.push({
  16533. taskName: e,
  16534. id: l + "-" + r,
  16535. isLook: w[r].isLook,
  16536. isOpen: r === 0 ? true : false,
  16537. tool: [],
  16538. });
  16539. }
  16540. var t = w[r].toolChoose;
  16541. for (var k = 0; k < t.length; k++) {
  16542. var tool = t[k].tool[0];
  16543. copyList[l].task[r].tool.push({
  16544. tool: tool,
  16545. isTool: false,
  16546. });
  16547. }
  16548. // this.navId = this.navId ? this.navId : l + "-" + r;
  16549. // this.navId = l + "-" + r;
  16550. }
  16551. }
  16552. this.navList = copyList;
  16553. this.navList[0].isOpen = false;
  16554. this.navList[this.courseType].isOpen = true;
  16555. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16556. } else {
  16557. this.setNavList2();
  16558. }
  16559. },
  16560. setNavList2() {
  16561. for (var l = 0; l < this.chapInfoList.length; l++) {
  16562. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16563. for (var r = 0; r < w.length; r++) {
  16564. this.navList[l].task[r].isLook = w[r].isLook;
  16565. }
  16566. }
  16567. if (
  16568. this.IsLookOpen &&
  16569. !this.navList[this.courseType].task[this.taskCount].isLook
  16570. ) {
  16571. this.openTask(0, 0, "0-0");
  16572. }
  16573. this.$forceUpdate();
  16574. },
  16575. getCourseState(type) {
  16576. let params = {
  16577. cid: this.id,
  16578. };
  16579. this.ajax
  16580. .get(this.$store.state.api + "getCourseState", params)
  16581. .then((res) => {
  16582. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16583. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16584. this.setNavList();
  16585. this.$forceUpdate();
  16586. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16587. this.addCourseState(2);
  16588. } else {
  16589. this.addCourseState(1);
  16590. }
  16591. })
  16592. .catch((err) => {
  16593. console.error(err);
  16594. });
  16595. },
  16596. addCourseState(type) {
  16597. let _state = this.chapInfoList;
  16598. // this.courseType this.taskCount
  16599. if (type == 1 || type == 2) {
  16600. for (var i = 0; i < _state.length; i++) {
  16601. let el = _state[i].chapterInfo[0].taskJson;
  16602. for (var j = 0; j < el.length; j++) {
  16603. // if (i == 0 && j == 0) {
  16604. // el[j].isLook = true;
  16605. // } else {
  16606. // el[j].isLook = false;
  16607. // }
  16608. if (
  16609. this.courseType > i ||
  16610. (this.courseType == i && this.taskCount + 1 > j)
  16611. ) {
  16612. el[j].isLook = true;
  16613. } else {
  16614. el[j].isLook = false;
  16615. }
  16616. }
  16617. }
  16618. }
  16619. let params = [
  16620. {
  16621. cid: this.id,
  16622. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16623. },
  16624. ];
  16625. this.ajax
  16626. .post(
  16627. this.$store.state.api +
  16628. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16629. params
  16630. )
  16631. .then((res) => {
  16632. if (this.IsLookOpen) {
  16633. this.setNavList();
  16634. }
  16635. if (type == 3 && type == 2) {
  16636. this.getCourseState(1);
  16637. }
  16638. })
  16639. .catch((err) => {
  16640. console.error(err);
  16641. });
  16642. },
  16643. getHomeWork() {
  16644. let params = {
  16645. cid: this.id,
  16646. stage: this.courseType,
  16647. task: this.taskCount,
  16648. uid: this.userid,
  16649. };
  16650. this.ajax
  16651. .get(this.$store.state.api + "selectWork", params)
  16652. .then((res) => {
  16653. if (res.data[0].length > 0) {
  16654. this.studyJuri = JSON.parse(res.data[0][0].content);
  16655. this.isNoHomeWork = true;
  16656. }
  16657. })
  16658. .catch((err) => {
  16659. console.error(err);
  16660. });
  16661. },
  16662. isAssetTypeAnImage(ext) {
  16663. return (
  16664. [
  16665. "png",
  16666. "jpg",
  16667. "jpeg",
  16668. "bmp",
  16669. "gif",
  16670. "webp",
  16671. "psd",
  16672. "svg",
  16673. "tiff",
  16674. ].indexOf(ext) !== -1
  16675. );
  16676. },
  16677. switchVideo(media) {
  16678. this.playerO = {};
  16679. this.playerOptions.poster = "";
  16680. this.playerOptions.sources[0].src = media;
  16681. this.playerO = this.playerOptions;
  16682. },
  16683. onPlayerPlay() {},
  16684. onPlayerTimeupdate(player) {
  16685. let gklog = player.cache_.currentTime; //当前播放的秒数
  16686. let a = player.cache_.duration; //视频的总时长
  16687. let gklog2 = parseInt(gklog);
  16688. // if(gklog2 == '3'){
  16689. // player.pause()
  16690. // setTimeout(()=>{
  16691. // player.currentTime(gklog2+1)
  16692. // player.play()
  16693. // },1000)
  16694. // }
  16695. console.log(" onPlayerTimeupdate!", gklog);
  16696. console.log(" onPlayerTimeupdate!", gklog2);
  16697. },
  16698. lookVedio(u, i) {
  16699. this.isClickNav = "";
  16700. // this.playerOptions.sources[0].src = u;
  16701. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16702. d.sources[0].src = u;
  16703. this.playerO[this.taskCount] = d;
  16704. this.showType = 0;
  16705. // this.isClickNav = "video" + i;
  16706. this.isClickNav = i;
  16707. this.$forceUpdate();
  16708. },
  16709. lookText(i, t) {
  16710. this.isClickNav = "";
  16711. // this.text = this.textList[i][t];
  16712. this.text = this.vChapterData[i][t];
  16713. // this.dialogVisible1 = true;
  16714. this.showType = 1;
  16715. // this.isClickNav = "text" + t;
  16716. this.isClickNav = t;
  16717. },
  16718. lookTools(i, t) {
  16719. this.chapTools = this.chapToolList[i][t];
  16720. this.dialogVisible2 = true;
  16721. },
  16722. openFile(f) {
  16723. this.pptImgUrl = "";
  16724. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16725. if (
  16726. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16727. -1
  16728. ) {
  16729. this.pptImgUrl =
  16730. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16731. this.showPDF = false;
  16732. this.dialogVisible3 = true;
  16733. } else if (
  16734. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16735. ) {
  16736. this.pptImgUrl = f;
  16737. this.showPDF = true;
  16738. this.dialogVisible3 = true;
  16739. }
  16740. },
  16741. openTable(f) {
  16742. this.tableJson = JSON.parse(f.works);
  16743. this.dialogVisibleTable2 = true;
  16744. },
  16745. openWord(f) {
  16746. this.tableJson = JSON.parse(f.works);
  16747. this.dialogVisibleTable3 = true;
  16748. },
  16749. doUrl(url, i) {
  16750. this.isClickNav = "";
  16751. this.pptImgUrl1 = "";
  16752. this.showType = 2;
  16753. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16754. url = "https://" + url;
  16755. }
  16756. this.pptImgUrl1 = "";
  16757. setTimeout(() => {
  16758. this.pptImgUrl1 = url;
  16759. }, 500);
  16760. // this.isClickNav = "line" + i;
  16761. this.isClickNav = i;
  16762. this.$forceUpdate();
  16763. },
  16764. checkPhoto(f, i) {
  16765. this.showType = 4;
  16766. this.pptImgUrl1 = f.url;
  16767. this.isClickNav = i;
  16768. this.$forceUpdate();
  16769. },
  16770. downFile(f, i) {
  16771. this.isClickNav = "";
  16772. this.pptImgUrl1 = "";
  16773. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16774. if (
  16775. a.indexOf(
  16776. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16777. ) != -1
  16778. ) {
  16779. this.pptImgUrl1 =
  16780. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  16781. // this.dialogVisible3 = true;
  16782. this.showType = 2;
  16783. } else if (
  16784. this.isAssetTypeAnImage(
  16785. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16786. )
  16787. ) {
  16788. this.showType = 4;
  16789. this.pptImgUrl1 = f.url;
  16790. } else if (
  16791. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16792. "PDF"
  16793. ) {
  16794. this.pptImgUrl1 = f.url;
  16795. // this.dialogVisible3 = true;
  16796. this.showType = 3;
  16797. } else {
  16798. window.open(this.file[i].url);
  16799. }
  16800. // this.isClickNav = "word" + i;
  16801. this.isClickNav = i;
  16802. },
  16803. downFileList(i) {
  16804. window.open(this.noImgList[i].url);
  16805. },
  16806. openAddWork() {
  16807. this.dialogVisible = true;
  16808. },
  16809. addBzWorks() {
  16810. let params = [
  16811. {
  16812. uid: this.userid,
  16813. cid: this.id,
  16814. stage: this.courseType,
  16815. task: this.taskCount,
  16816. tool: this.toolindex,
  16817. content: JSON.stringify(this.eScore),
  16818. type: 6,
  16819. },
  16820. ];
  16821. this.ajax
  16822. .post(this.$store.state.api + "addCourseWorks", params)
  16823. .then((res) => {
  16824. this.$message({
  16825. message: "提交成功",
  16826. type: "success",
  16827. });
  16828. this.eScore = { eBzText: "", eStar: [] };
  16829. this.studentEvalDialogVisible = false;
  16830. this.selectSWorks();
  16831. })
  16832. .catch((err) => {
  16833. this.$message.error("提交失败");
  16834. console.error(err);
  16835. });
  16836. },
  16837. addBzWorksTeacher() {
  16838. let params = [
  16839. {
  16840. uid: this.sStudent.userid,
  16841. cid: this.id,
  16842. stage: this.courseType,
  16843. task: this.taskCount,
  16844. tool: this.toolindex,
  16845. content: JSON.stringify(this.eScore),
  16846. type: 6,
  16847. },
  16848. ];
  16849. this.ajax
  16850. .post(this.$store.state.api + "addCourseWorks", params)
  16851. .then((res) => {
  16852. this.$message({
  16853. message: "提交成功",
  16854. type: "success",
  16855. });
  16856. this.eScore = { eBzText: "", eStar: [] };
  16857. this.studentEvalDialogVisibleTeacher = false;
  16858. this.selectSWorks();
  16859. })
  16860. .catch((err) => {
  16861. this.$message.error("提交失败");
  16862. console.error(err);
  16863. });
  16864. },
  16865. addStudentAsk() {
  16866. if (!this.radio.length) {
  16867. this.$message.error("请选择选项");
  16868. return;
  16869. }
  16870. for (var i = 0; i < this.askJson.askCount; i++) {
  16871. if (
  16872. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16873. (this.radio[i] !== 0 && !this.radio[i])
  16874. ) {
  16875. this.$message.error("请选择选项");
  16876. return;
  16877. }
  16878. }
  16879. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16880. let params = [
  16881. {
  16882. uid: this.userid,
  16883. cid: this.id,
  16884. stage: this.courseType,
  16885. task: this.taskCount,
  16886. tool: this.toolindex,
  16887. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16888. type: 2,
  16889. },
  16890. ];
  16891. this.ajax
  16892. .post(this.$store.state.api + "addCourseWorks", params)
  16893. .then((res) => {
  16894. this.$message({
  16895. message: "提交成功",
  16896. type: "success",
  16897. });
  16898. this.askList = [];
  16899. this.dialogVisible5 = false;
  16900. this.selectStudent();
  16901. this.selectSWorks();
  16902. this.selectSLook();
  16903. })
  16904. .catch((err) => {
  16905. this.$message.error("提交失败");
  16906. console.error(err);
  16907. });
  16908. },
  16909. addStudentAskTeacher() {
  16910. if (!this.radio.length) {
  16911. this.$message.error("请选择选项");
  16912. return;
  16913. }
  16914. for (var i = 0; i < this.askJson.askCount; i++) {
  16915. if (
  16916. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16917. (this.radio[i] !== 0 && !this.radio[i])
  16918. ) {
  16919. this.$message.error("请选择选项");
  16920. return;
  16921. }
  16922. }
  16923. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16924. let params = [
  16925. {
  16926. uid: this.sStudent.userid,
  16927. cid: this.id,
  16928. stage: this.courseType,
  16929. task: this.taskCount,
  16930. tool: this.toolindex,
  16931. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16932. type: 2,
  16933. },
  16934. ];
  16935. this.ajax
  16936. .post(this.$store.state.api + "addCourseWorks", params)
  16937. .then((res) => {
  16938. this.$message({
  16939. message: "提交成功",
  16940. type: "success",
  16941. });
  16942. this.askList = [];
  16943. this.dialogVisible5Teacher = false;
  16944. this.selectStudent();
  16945. this.selectSWorks();
  16946. this.selectSLook();
  16947. })
  16948. .catch((err) => {
  16949. this.$message.error("提交失败");
  16950. console.error(err);
  16951. });
  16952. },
  16953. addStudentTest() {
  16954. if (!this.radio.length) {
  16955. this.$message.error("请选择选项");
  16956. return;
  16957. }
  16958. for (var i = 0; i < this.testJson.testCount; i++) {
  16959. if (
  16960. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16961. (this.radio[i] !== 0 && !this.radio[i])
  16962. ) {
  16963. this.$message.error("请选择选项");
  16964. return;
  16965. }
  16966. }
  16967. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16968. let params = [
  16969. {
  16970. uid: this.userid,
  16971. cid: this.id,
  16972. stage: this.courseType,
  16973. task: this.taskCount,
  16974. tool: this.toolindex,
  16975. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16976. type: 8,
  16977. },
  16978. ];
  16979. this.ajax
  16980. .post(this.$store.state.api + "addCourseWorks", params)
  16981. .then((res) => {
  16982. this.$message({
  16983. message: "提交成功",
  16984. type: "success",
  16985. });
  16986. this.askList = [];
  16987. this.dialogVisibleChoice = false;
  16988. this.selectStudent();
  16989. this.selectSWorks();
  16990. this.selectSLook();
  16991. })
  16992. .catch((err) => {
  16993. this.$message.error("提交失败");
  16994. console.error(err);
  16995. });
  16996. },
  16997. addStudentTestTeacher() {
  16998. if (!this.radio.length) {
  16999. this.$message.error("请选择选项");
  17000. return;
  17001. }
  17002. for (var i = 0; i < this.testJson.testCount; i++) {
  17003. if (
  17004. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17005. (this.radio[i] !== 0 && !this.radio[i])
  17006. ) {
  17007. this.$message.error("请选择选项");
  17008. return;
  17009. }
  17010. }
  17011. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17012. let params = [
  17013. {
  17014. uid: this.sStudent.userid,
  17015. cid: this.id,
  17016. stage: this.courseType,
  17017. task: this.taskCount,
  17018. tool: this.toolindex,
  17019. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  17020. type: 8,
  17021. },
  17022. ];
  17023. this.ajax
  17024. .post(this.$store.state.api + "addCourseWorks", params)
  17025. .then((res) => {
  17026. this.$message({
  17027. message: "提交成功",
  17028. type: "success",
  17029. });
  17030. this.askList = [];
  17031. this.dialogVisibleChoiceTeacher = false;
  17032. this.selectStudent();
  17033. this.selectSWorks();
  17034. this.selectSLook();
  17035. })
  17036. .catch((err) => {
  17037. this.$message.error("提交失败");
  17038. console.error(err);
  17039. });
  17040. },
  17041. addWork() {
  17042. if (this.studyJuri[0].content == "") {
  17043. this.$message.error("请将信息填写完整");
  17044. return;
  17045. } else if (this.studyJuri[0].cover.length == 0) {
  17046. this.$message.error("请将信息填写完整");
  17047. return;
  17048. } else if (this.studyJuri[0].upVedio.length == 0) {
  17049. this.$message.error("请将信息填写完整");
  17050. return;
  17051. }
  17052. if (this.isNoHomeWork) {
  17053. this.$confirm(
  17054. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17055. "提示",
  17056. {
  17057. confirmButtonText: "确定",
  17058. cancelButtonText: "取消",
  17059. type: "warning",
  17060. }
  17061. )
  17062. .then(() => {
  17063. let params = [
  17064. {
  17065. uid: this.userid,
  17066. cid: this.id,
  17067. stage: this.courseType,
  17068. task: this.taskCount,
  17069. content: JSON.stringify(this.studyJuri),
  17070. },
  17071. ];
  17072. this.ajax
  17073. .post(this.$store.state.api + "addWorks", params)
  17074. .then((res) => {
  17075. this.$message({
  17076. message: "提交成功",
  17077. type: "success",
  17078. });
  17079. this.isNoHomeWork = true;
  17080. this.dialogVisible = false;
  17081. })
  17082. .catch((err) => {
  17083. this.$message.error("提交失败");
  17084. console.error(err);
  17085. });
  17086. })
  17087. .catch(() => {});
  17088. } else {
  17089. let params = [
  17090. {
  17091. uid: this.userid,
  17092. cid: this.id,
  17093. stage: this.courseType,
  17094. task: this.taskCount,
  17095. content: JSON.stringify(this.studyJuri),
  17096. },
  17097. ];
  17098. this.ajax
  17099. .post(this.$store.state.api + "addWorks", params)
  17100. .then((res) => {
  17101. this.$message({
  17102. message: "提交成功",
  17103. type: "success",
  17104. });
  17105. this.isNoHomeWork = true;
  17106. this.dialogVisible = false;
  17107. })
  17108. .catch((err) => {
  17109. this.$message.error("提交失败");
  17110. console.error(err);
  17111. });
  17112. }
  17113. },
  17114. selectCount() {
  17115. let params = {
  17116. cid: this.id,
  17117. chid: this.courseType,
  17118. uid: this.userid,
  17119. };
  17120. this.ajax
  17121. .get(this.$store.state.api + "selectToolsCount", params)
  17122. .then((res) => {
  17123. for (var i = 0; i < res.data[0].length; i++) {
  17124. if (res.data[0][i].tools == 1) {
  17125. this.wbCount = res.data[0][i].count;
  17126. } else if (res.data[0][i].tools == 2) {
  17127. this.wordCount = res.data[0][i].count;
  17128. } else if (res.data[0][i].tools == 3) {
  17129. this.mindCount = res.data[0][i].count;
  17130. } else if (res.data[0][i].tools == 4) {
  17131. this.askCount = res.data[0][i].count;
  17132. } else if (res.data[0][i].tools == 6) {
  17133. this.noteCount = res.data[0][i].count;
  17134. } else if (res.data[0][i].tools == 7) {
  17135. this.mindNetWorkCount = res.data[0][i].count;
  17136. } else if (res.data[0][i].tools == 8) {
  17137. this.libraryCount = res.data[0][i].count;
  17138. } else if (res.data[0][i].tools == 16) {
  17139. this.workCount = res.data[0][i].count;
  17140. } else if (res.data[0][i].tools == 10) {
  17141. this.timeCount = res.data[0][i].count;
  17142. } else if (res.data[0][i].tools == 15) {
  17143. this.answerCount = res.data[0][i].count;
  17144. } else if (res.data[0][i].tools == 18) {
  17145. this.trainCount = res.data[0][i].count;
  17146. }
  17147. }
  17148. })
  17149. .catch((err) => {
  17150. console.error(err);
  17151. });
  17152. },
  17153. openTools(t, i, index, c, sName,id) {
  17154. var z = JSON.parse(c);
  17155. this.noteName = sName;
  17156. if (t == 4) {
  17157. this.radio = [];
  17158. this.isAnswer = false;
  17159. let b = z[0].anwer;
  17160. this.radio = b;
  17161. this.askJson = z[0].askJson;
  17162. this.isAnswer = true;
  17163. this.dialogVisible5 = true;
  17164. } else if (t == 45) {
  17165. this.radio = [];
  17166. this.isAnswer = false;
  17167. let b = z[0].anwer;
  17168. this.radio = b;
  17169. this.testJson = z[0].testJson;
  17170. this.isAnswer = true;
  17171. this.dialogVisibleChoice = true;
  17172. }else if(t == 69){
  17173. this.oldEnglishJson1 = {}
  17174. this.oldEnglishJson = {}
  17175. this.englishList1 = {}
  17176. this.newEngIndex = -1;
  17177. this.isNoUserid = false;
  17178. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17179. .toolChoose[i].englishList;
  17180. this.oldEnglishJson = z;
  17181. this.engWid = id;
  17182. this.newEnglishList = { engTitle:"",engText:"" }
  17183. this.newEnglishList1 = []
  17184. this.selectEngC(id,z);
  17185. }
  17186. // else if (t == 15) {
  17187. // this.answerQ = "";
  17188. // this.questionAnswer = "";
  17189. // this.answerQ = z[0].answerTitle;
  17190. // this.questionAnswer = z[0].answer;
  17191. // this.answerDialogVisible = true;
  17192. // }
  17193. },
  17194. fastText(p, t) {
  17195. if (t == 1) {
  17196. this.commentText += p;
  17197. } else {
  17198. this.eScore.eBzText += p;
  17199. }
  17200. },
  17201. addTools(t, i, index) {
  17202. var a = 0;
  17203. // this.taskCount = index;
  17204. this.toolindex = i;
  17205. if (t == 1) {
  17206. if (this.wbCount > 0) {
  17207. this.updateCount(this.wbCount, t);
  17208. } else {
  17209. this.wbCount++;
  17210. a = this.wbCount;
  17211. this.toolsCount(a, t);
  17212. }
  17213. window.parent.postMessage(
  17214. {
  17215. tools: "1",
  17216. cid: this.id,
  17217. stage: this.courseType,
  17218. task: this.taskCount,
  17219. tool: i,
  17220. },
  17221. "*"
  17222. );
  17223. } else if (t == 2) {
  17224. if (this.wordCount > 0) {
  17225. this.updateCount(this.wordCount, t);
  17226. } else {
  17227. this.wordCount++;
  17228. a = this.wordCount;
  17229. this.toolsCount(a, t);
  17230. }
  17231. window.parent.postMessage({ tools: "2" }, "*");
  17232. } else if (t == 3) {
  17233. if (this.mindCount > 0) {
  17234. this.updateCount(this.mindCount, t);
  17235. } else {
  17236. this.mindCount++;
  17237. a = this.mindCount;
  17238. this.toolsCount(a, t);
  17239. }
  17240. window.parent.postMessage(
  17241. {
  17242. tools: "3",
  17243. cid: this.id,
  17244. stage: this.courseType,
  17245. task: this.taskCount,
  17246. tool: i,
  17247. },
  17248. "*"
  17249. );
  17250. } else if (t == 4) {
  17251. this.radio = [];
  17252. this.noteName = "";
  17253. this.isAnswer = false;
  17254. if (this.askCount > 0) {
  17255. this.updateCount(this.askCount, t);
  17256. } else {
  17257. this.askCount++;
  17258. a = this.askCount;
  17259. this.toolsCount(a, t);
  17260. }
  17261. if (!this.dialogVisible2) {
  17262. this.askJson.askJson =
  17263. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17264. index
  17265. ].toolChoose[i].askJson;
  17266. this.askJson.askTitle =
  17267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17268. index
  17269. ].toolChoose[i].askTitle;
  17270. this.askJson.askCount =
  17271. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17272. index
  17273. ].toolChoose[i].askCount;
  17274. } else {
  17275. this.askJson.askJson = this.chapTools.askJson.askJson;
  17276. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17277. this.askJson.askCount = this.chapTools.askJson.askCount;
  17278. }
  17279. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17280. if (this.askJson.askJson[k].type == "2") {
  17281. this.radio.push([]);
  17282. } else {
  17283. this.radio.push("");
  17284. }
  17285. }
  17286. this.dialogVisible5 = true;
  17287. // window.parent.postMessage({ tools: "4" }, "*");
  17288. } else if (t == 45) {
  17289. this.noteName = "";
  17290. this.radio = [];
  17291. this.isAnswer = false;
  17292. if (this.askCount > 0) {
  17293. this.updateCount(this.askCount, t);
  17294. } else {
  17295. this.askCount++;
  17296. a = this.askCount;
  17297. this.toolsCount(a, t);
  17298. }
  17299. this.testJson =
  17300. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17301. index
  17302. ].toolChoose[i].testJson;
  17303. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17304. if (this.testJson.testJson[k].type == "2") {
  17305. this.radio.push([]);
  17306. } else {
  17307. this.radio.push("");
  17308. }
  17309. }
  17310. this.dialogVisibleChoice = true;
  17311. // window.parent.postMessage({ tools: "4" }, "*");
  17312. } else if (t == 5) {
  17313. if (this.scoreCount > 0) {
  17314. this.updateCount(this.scoreCount, t);
  17315. } else {
  17316. this.scoreCount++;
  17317. a = this.scoreCount;
  17318. this.toolsCount(a, t);
  17319. }
  17320. this.dialogVisible4 = true;
  17321. // window.parent.postMessage({ tools: "5" }, "*");
  17322. } else if (t == 6) {
  17323. if (this.noteCount > 0) {
  17324. this.updateCount(this.noteCount, t);
  17325. } else {
  17326. this.noteCount++;
  17327. a = this.noteCount;
  17328. this.toolsCount(a, t);
  17329. }
  17330. window.parent.postMessage(
  17331. {
  17332. tools: "6",
  17333. cid: this.id,
  17334. stage: this.courseType,
  17335. task: this.taskCount,
  17336. tool: i,
  17337. },
  17338. "*"
  17339. );
  17340. } else if (t == 7) {
  17341. if (this.mindNetWorkCount > 0) {
  17342. this.updateCount(this.mindNetWorkCount, t);
  17343. } else {
  17344. this.mindNetWorkCount++;
  17345. a = this.mindNetWorkCount;
  17346. this.toolsCount(a, t);
  17347. }
  17348. window.parent.postMessage(
  17349. {
  17350. tools: "7",
  17351. cid: this.id,
  17352. stage: this.courseType,
  17353. task: this.taskCount,
  17354. tool: i,
  17355. },
  17356. "*"
  17357. );
  17358. } else if (t == 16) {
  17359. if (this.workCount > 0) {
  17360. this.updateCount(this.workCount, t);
  17361. } else {
  17362. this.workCount++;
  17363. a = this.workCount;
  17364. this.toolsCount(a, t);
  17365. }
  17366. this.dialogVisible = true;
  17367. } else if (t == 50) {
  17368. if (this.tType == 2) {
  17369. this.$message.error("不支持学生使用");
  17370. return;
  17371. }
  17372. this.plworkFile = [];
  17373. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17374. if (!this.uploadCid) {
  17375. this.$message.error(
  17376. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17377. );
  17378. return;
  17379. }
  17380. // this.uploadCid =
  17381. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17382. // index
  17383. // ].toolChoose[i].uploadJson[0];
  17384. this.selectUploadStudent(2);
  17385. } else if (t == 8) {
  17386. if (this.libraryCount > 0) {
  17387. this.updateCount(this.libraryCount, t);
  17388. } else {
  17389. this.libraryCount++;
  17390. a = this.libraryCount;
  17391. this.toolsCount(a, t);
  17392. }
  17393. window.parent.postMessage({ tools: "8" }, "*");
  17394. } else if (t == 17) {
  17395. if (this.libraryCount > 0) {
  17396. this.updateCount(this.libraryCount, t);
  17397. } else {
  17398. this.libraryCount++;
  17399. a = this.libraryCount;
  17400. this.toolsCount(a, t);
  17401. }
  17402. window.parent.postMessage({ tools: "17" }, "*");
  17403. } else if (t == 18) {
  17404. if (this.trainCount > 0) {
  17405. this.updateCount(this.trainCount, t);
  17406. } else {
  17407. this.trainCount++;
  17408. a = this.trainCount;
  17409. this.toolsCount(a, t);
  17410. }
  17411. window.parent.postMessage({ tools: "18" }, "*");
  17412. } else if (t == 10) {
  17413. if (this.timeCount > 0) {
  17414. this.updateCount(this.timeCount, t);
  17415. } else {
  17416. this.timeCount++;
  17417. a = this.timeCount;
  17418. this.toolsCount(a, t);
  17419. }
  17420. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17421. .taskJson[index].toolChoose[i].preTime
  17422. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17423. .toolChoose[i].preTime
  17424. : "";
  17425. this.timeDialogVisible = true;
  17426. } else if (t == 15) {
  17427. this.answerQ = "";
  17428. this.questionAnswer = "";
  17429. if (this.answerCount > 0) {
  17430. this.updateCount(this.answerCount, t);
  17431. } else {
  17432. this.answerCount++;
  17433. a = this.answerCount;
  17434. this.toolsCount(a, t);
  17435. }
  17436. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17437. .taskJson[index].toolChoose[i].answerQ
  17438. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17439. .toolChoose[i].answerQ
  17440. : "";
  17441. this.answerDialogVisible = true;
  17442. } else if (t == 21) {
  17443. window.parent.postMessage({ tools: "21" }, "*");
  17444. } else if (t == 22) {
  17445. window.parent.postMessage({ tools: "22" }, "*");
  17446. } else if (t == 23) {
  17447. window.parent.postMessage({ tools: "23" }, "*");
  17448. } else if (t == 24) {
  17449. window.parent.postMessage({ tools: "24" }, "*");
  17450. } else if (t == 25) {
  17451. window.parent.postMessage({ tools: "25" }, "*");
  17452. } else if (t == 31) {
  17453. window.parent.postMessage({ tools: "31" }, "*");
  17454. } else if (t == 28) {
  17455. window.parent.postMessage({ tools: "28" }, "*");
  17456. } else if (t == 37) {
  17457. window.parent.postMessage({ tools: "37" }, "*");
  17458. } else if (t == 38) {
  17459. window.parent.postMessage({ tools: "38" }, "*");
  17460. } else if (t == 39) {
  17461. window.parent.postMessage({ tools: "39" }, "*");
  17462. } else if (t == 32) {
  17463. window.parent.postMessage({ tools: "32" }, "*");
  17464. } else if (t == 66) {
  17465. window.parent.postMessage({ tools: "66" }, "*");
  17466. } else if (t == 67) {
  17467. window.parent.postMessage({ tools: "67" }, "*");
  17468. } else if (t == 68) {
  17469. window.parent.postMessage({ tools: "68" }, "*");
  17470. } else if (t == 57) {
  17471. // window.parent.postMessage({ tools: "57" }, "*");
  17472. window.parent.postMessage(
  17473. {
  17474. tools: "57u",
  17475. cid: this.id,
  17476. stage: this.courseType,
  17477. task: this.taskCount,
  17478. tool: i,
  17479. },
  17480. "*"
  17481. );
  17482. } else if (t == 58) {
  17483. window.parent.postMessage({ tools: "58" }, "*");
  17484. } else if (t == 59) {
  17485. window.parent.postMessage({ tools: "59" }, "*");
  17486. } else if (t == 60) {
  17487. window.parent.postMessage({ tools: "60" }, "*");
  17488. } else if (t == 61) {
  17489. window.parent.postMessage({ tools: "61" }, "*");
  17490. } else if (t == 63) {
  17491. window.parent.postMessage({ tools: "63" }, "*");
  17492. } else if (t == 69) {
  17493. if (this.worksStudent[i].length) {
  17494. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17495. if (this.userid == this.worksStudent[i][k].userid) {
  17496. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17497. break;
  17498. } else {
  17499. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17500. }
  17501. }
  17502. } else {
  17503. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17504. }
  17505. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17506. .taskJson[index].toolChoose[i].englishList
  17507. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17508. .toolChoose[i].englishList
  17509. : {};
  17510. this.englishToolIndex = i;
  17511. this.myAnList = this.myAnswerList1;
  17512. this.engDialogVisible = true;
  17513. } else if (t == 65) {
  17514. if (this.tType == 2) {
  17515. this.$message.error("不支持学生使用");
  17516. return;
  17517. }
  17518. this.uploadCid = this.tcid;
  17519. if (!this.uploadCid) {
  17520. this.$message.error(
  17521. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17522. );
  17523. return;
  17524. }
  17525. this.selectPickStudent();
  17526. } else if (t == 26) {
  17527. window.parent.postMessage(
  17528. {
  17529. tools: "26",
  17530. cid: this.id,
  17531. stage: this.courseType,
  17532. task: this.taskCount,
  17533. tool: i,
  17534. },
  17535. "*"
  17536. );
  17537. } else if (t == 40) {
  17538. if (this.evalCount > 0) {
  17539. this.updateCount(this.evalCount, t);
  17540. } else {
  17541. this.evalCount++;
  17542. a = this.evalCount;
  17543. this.toolsCount(a, t);
  17544. }
  17545. this.eScore = { eBzText: "", eStar: [] };
  17546. if (this.worksStudent[i].length) {
  17547. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17548. if (this.userid == this.worksStudent[i][k].userid) {
  17549. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17550. this.rateJson =
  17551. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17552. index
  17553. ].toolChoose[i].rateJson;
  17554. break;
  17555. } else {
  17556. this.rateJson =
  17557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17558. index
  17559. ].toolChoose[i].rateJson;
  17560. }
  17561. }
  17562. } else {
  17563. this.rateJson =
  17564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17565. index
  17566. ].toolChoose[i].rateJson;
  17567. }
  17568. this.isStar = false;
  17569. this.studentEvalDialogVisible = true;
  17570. } else if (t == 41) {
  17571. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17572. .taskJson[index].toolChoose[i].selectJson
  17573. ? JSON.parse(
  17574. JSON.stringify(
  17575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17576. index
  17577. ].toolChoose[i].selectJson
  17578. )
  17579. )
  17580. : { url: "", select: [], answer: [] };
  17581. if (this.worksStudent[i].length) {
  17582. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17583. if (this.userid == this.worksStudent[i][k].userid) {
  17584. var a = this.worksStudent[i][k].works.split(",");
  17585. for (var ki = 0; ki < a.length; ki++) {
  17586. a[ki] = parseInt(a[ki]);
  17587. }
  17588. this.selectAnswer = {
  17589. answer: a,
  17590. stu: this.worksStudent[i][k].sName,
  17591. };
  17592. break;
  17593. } else {
  17594. this.selectAnswer = { answer: [], stu: "" };
  17595. }
  17596. }
  17597. } else {
  17598. this.selectAnswer = { answer: [], stu: "" };
  17599. }
  17600. this.isSelect = false;
  17601. this.dialogVisibleSelect = true;
  17602. } else if (t == 44) {
  17603. window.parent.postMessage({ tools: "44" }, "*");
  17604. } else if (t == 47) {
  17605. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17606. .taskJson[index].toolChoose[i].sentenceList
  17607. ? JSON.parse(
  17608. JSON.stringify(
  17609. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17610. index
  17611. ].toolChoose[i].sentenceList
  17612. )
  17613. )
  17614. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17615. for (var q = 0; q < this.sentenceList.length; q++) {
  17616. this.sentenceList[q].chooseSenList = [];
  17617. this.sentenceList[q].addChangeSen = [];
  17618. this.sentenceList[q].addChangeSen = JSON.parse(
  17619. JSON.stringify(this.sentenceList[q].addSentence)
  17620. );
  17621. this.sentenceList[q].chooseSenList.length =
  17622. this.sentenceList[q].rightAnswer.length;
  17623. }
  17624. this.dialogVisibleSentence = true;
  17625. } else if (t == 48) {
  17626. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17627. .taskJson[index].toolChoose[i].tableJson
  17628. ? JSON.parse(
  17629. JSON.stringify(
  17630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17631. index
  17632. ].toolChoose[i].tableJson
  17633. )
  17634. )
  17635. : { text: "" };
  17636. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17637. if (this.worksStudent[i].length) {
  17638. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17639. if (this.userid == this.worksStudent[i][k].userid) {
  17640. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17641. break;
  17642. }
  17643. }
  17644. }
  17645. this.dialogVisibleTable = true;
  17646. } else if (t == 52) {
  17647. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17648. .taskJson[index].toolChoose[i].wordJson
  17649. ? JSON.parse(
  17650. JSON.stringify(
  17651. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17652. index
  17653. ].toolChoose[i].wordJson
  17654. )
  17655. )
  17656. : { text: "" };
  17657. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  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.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17662. break;
  17663. }
  17664. }
  17665. }
  17666. this.dialogVisibleWord = true;
  17667. } else if (t == 49) {
  17668. this.groupJson =
  17669. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17670. index
  17671. ].toolChoose[i].groupJson;
  17672. this.islock = this.groupJson.islock == 1 ? true : false;
  17673. this.dialogVisibleGroup = true;
  17674. } else if (t == 62) {
  17675. this.videoJson =
  17676. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17677. index
  17678. ].toolChoose[i].videoJson;
  17679. this.dialogVisibleVideo = true;
  17680. }
  17681. },
  17682. teacherWorkSubmit(t, i, index, s) {
  17683. this.sStudent = s;
  17684. this.toolindex = i;
  17685. this.sTool = t;
  17686. if (this.tType !== "1" && this.tType !== "4") {
  17687. return;
  17688. }
  17689. if (t == 16 || t == 32 || t == 50) {
  17690. this.dialogVisibleWorks = true;
  17691. } else if (t == 15) {
  17692. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17693. .taskJson[index].toolChoose[i].answerQ
  17694. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17695. .toolChoose[i].answerQ
  17696. : "";
  17697. this.questionAnswer = "";
  17698. this.answerDialogVisibleTeacher = true; //问答
  17699. } else if (t == 52) {
  17700. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17701. .taskJson[index].toolChoose[i].wordJson
  17702. ? JSON.parse(
  17703. JSON.stringify(
  17704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17705. index
  17706. ].toolChoose[i].wordJson
  17707. )
  17708. )
  17709. : { text: "" };
  17710. if (this.worksStudent[i].length) {
  17711. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17712. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17713. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17714. break;
  17715. }
  17716. }
  17717. }
  17718. this.dialogVisibleWordTeacher = true; //文档
  17719. } else if (t == 4) {
  17720. this.radio = [];
  17721. this.noteName = "";
  17722. this.isAnswer = false;
  17723. if (this.askCount > 0) {
  17724. this.updateCount(this.askCount, t);
  17725. } else {
  17726. this.askCount++;
  17727. a = this.askCount;
  17728. this.toolsCount(a, t);
  17729. }
  17730. if (!this.dialogVisible2) {
  17731. this.askJson.askJson =
  17732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17733. index
  17734. ].toolChoose[i].askJson;
  17735. this.askJson.askTitle =
  17736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17737. index
  17738. ].toolChoose[i].askTitle;
  17739. this.askJson.askCount =
  17740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17741. index
  17742. ].toolChoose[i].askCount;
  17743. } else {
  17744. this.askJson.askJson = this.chapTools.askJson.askJson;
  17745. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17746. this.askJson.askCount = this.chapTools.askJson.askCount;
  17747. }
  17748. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17749. if (this.askJson.askJson[k].type == "2") {
  17750. this.radio.push([]);
  17751. } else {
  17752. this.radio.push("");
  17753. }
  17754. }
  17755. this.dialogVisible5Teacher = true;
  17756. } else if (t == 45) {
  17757. this.noteName = "";
  17758. this.radio = [];
  17759. this.isAnswer = false;
  17760. if (this.askCount > 0) {
  17761. this.updateCount(this.askCount, t);
  17762. } else {
  17763. this.askCount++;
  17764. a = this.askCount;
  17765. this.toolsCount(a, t);
  17766. }
  17767. this.testJson =
  17768. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17769. index
  17770. ].toolChoose[i].testJson;
  17771. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17772. if (this.testJson.testJson[k].type == "2") {
  17773. this.radio.push([]);
  17774. } else {
  17775. this.radio.push("");
  17776. }
  17777. }
  17778. this.dialogVisibleChoiceTeacher = true;
  17779. } else if (t == 41) {
  17780. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17781. .taskJson[index].toolChoose[i].selectJson
  17782. ? JSON.parse(
  17783. JSON.stringify(
  17784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17785. index
  17786. ].toolChoose[i].selectJson
  17787. )
  17788. )
  17789. : { url: "", select: [], answer: [] };
  17790. if (this.worksStudent[i].length) {
  17791. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17792. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17793. var a = this.worksStudent[i][k].works.split(",");
  17794. for (var ki = 0; ki < a.length; ki++) {
  17795. a[ki] = parseInt(a[ki]);
  17796. }
  17797. this.selectAnswer = {
  17798. answer: a,
  17799. stu: this.worksStudent[i][k].sName,
  17800. };
  17801. break;
  17802. } else {
  17803. this.selectAnswer = { answer: [], stu: "" };
  17804. }
  17805. }
  17806. } else {
  17807. this.selectAnswer = { answer: [], stu: "" };
  17808. }
  17809. this.isSelect = false;
  17810. this.dialogVisibleSelectTeacher = true;
  17811. } else if (t == 47) {
  17812. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17813. .taskJson[index].toolChoose[i].sentenceList
  17814. ? JSON.parse(
  17815. JSON.stringify(
  17816. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17817. index
  17818. ].toolChoose[i].sentenceList
  17819. )
  17820. )
  17821. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17822. for (var q = 0; q < this.sentenceList.length; q++) {
  17823. this.sentenceList[q].chooseSenList = [];
  17824. this.sentenceList[q].addChangeSen = [];
  17825. this.sentenceList[q].addChangeSen = JSON.parse(
  17826. JSON.stringify(this.sentenceList[q].addSentence)
  17827. );
  17828. this.sentenceList[q].chooseSenList.length =
  17829. this.sentenceList[q].rightAnswer.length;
  17830. }
  17831. this.dialogVisibleSentenceTeacher = true;
  17832. } else if (t == 48) {
  17833. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17834. .taskJson[index].toolChoose[i].tableJson
  17835. ? JSON.parse(
  17836. JSON.stringify(
  17837. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17838. index
  17839. ].toolChoose[i].tableJson
  17840. )
  17841. )
  17842. : { text: "" };
  17843. if (this.worksStudent[i].length) {
  17844. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17845. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17846. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17847. break;
  17848. }
  17849. }
  17850. }
  17851. this.dialogVisibleTableTeacher = true;
  17852. } else if (t == 40) {
  17853. if (this.evalCount > 0) {
  17854. this.updateCount(this.evalCount, t);
  17855. } else {
  17856. this.evalCount++;
  17857. a = this.evalCount;
  17858. this.toolsCount(a, t);
  17859. }
  17860. this.eScore = { eBzText: "", eStar: [] };
  17861. if (this.worksStudent[i].length) {
  17862. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17863. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17864. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17865. this.rateJson =
  17866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17867. index
  17868. ].toolChoose[i].rateJson;
  17869. break;
  17870. } else {
  17871. this.rateJson =
  17872. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17873. index
  17874. ].toolChoose[i].rateJson;
  17875. }
  17876. }
  17877. } else {
  17878. this.rateJson =
  17879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17880. index
  17881. ].toolChoose[i].rateJson;
  17882. }
  17883. this.isStar = false;
  17884. this.studentEvalDialogVisibleTeacher = true;
  17885. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17886. window.parent.postMessage(
  17887. {
  17888. tools: t + "teacher",
  17889. cid: this.id,
  17890. stage: this.courseType,
  17891. task: this.taskCount,
  17892. tool: i,
  17893. student: this.sStudent,
  17894. },
  17895. "*"
  17896. );
  17897. }
  17898. },
  17899. openCocoPi(tool, i, uid, uname) {
  17900. let student = {
  17901. userid: uid,
  17902. student: uname,
  17903. };
  17904. if (tool == 57) {
  17905. window.parent.postMessage(
  17906. {
  17907. tools: tool + "teacher",
  17908. cid: this.id,
  17909. stage: this.courseType,
  17910. task: this.taskCount,
  17911. tool: i,
  17912. student: student,
  17913. },
  17914. "*"
  17915. );
  17916. }
  17917. },
  17918. setRightAnswer(s, i, j) {
  17919. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17920. if (
  17921. this.sentenceList[i].chooseSenList[q] == undefined ||
  17922. this.sentenceList[i].chooseSenList[q] == ""
  17923. ) {
  17924. this.sentenceList[i].chooseSenList[q] = s;
  17925. this.sentenceList[i].addChangeSen[j] = "";
  17926. break;
  17927. }
  17928. }
  17929. this.$forceUpdate();
  17930. },
  17931. returnCard(r, i, j) {
  17932. var a = this.sentenceList[i].addSentence.indexOf(r);
  17933. this.sentenceList[i].chooseSenList[j] = "";
  17934. this.sentenceList[i].addChangeSen[a] = r;
  17935. this.$forceUpdate();
  17936. },
  17937. // addSentenceTool() {
  17938. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17939. // this.taskCount
  17940. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17941. // this.sentenceList = [
  17942. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17943. // ];
  17944. // this.dialogVisibleSentence = false;
  17945. // },
  17946. toolsCount(a, t) {
  17947. let params = {
  17948. cid: this.id,
  17949. chid: this.courseType,
  17950. uid: this.userid,
  17951. tid: t,
  17952. count: a,
  17953. };
  17954. this.ajax
  17955. .get(this.$store.state.api + "insertToolsCount", params)
  17956. .then((res) => {
  17957. this.selectCount();
  17958. })
  17959. .catch((err) => {
  17960. console.error(err);
  17961. });
  17962. },
  17963. updateCount(c, t) {
  17964. c++;
  17965. let params = {
  17966. cid: this.id,
  17967. chid: this.courseType,
  17968. uid: this.userid,
  17969. tid: t,
  17970. count: c,
  17971. };
  17972. this.ajax
  17973. .get(this.$store.state.api + "updateToolsCount", params)
  17974. .then((res) => {
  17975. this.selectCount();
  17976. })
  17977. .catch((err) => {
  17978. console.error(err);
  17979. });
  17980. },
  17981. checkEva() {
  17982. if (this.evalua != "") {
  17983. for (var i = 0; i < this.evaJuri.length; i++) {
  17984. if (this.evalua == this.evaJuri[i].id) {
  17985. this.eTitle = this.evaJuri[i].title;
  17986. this.eJson = JSON.parse(this.evaJuri[i].content);
  17987. }
  17988. }
  17989. this.$forceUpdate();
  17990. setTimeout(() => {
  17991. this.setMindData();
  17992. }, 0);
  17993. }
  17994. },
  17995. selectEva() {
  17996. let params = {
  17997. oid: this.oid,
  17998. };
  17999. this.ajax
  18000. .get(this.$store.state.api + "selectAllEvaluation", params)
  18001. .then((res) => {
  18002. this.evaJuri = res.data[0];
  18003. })
  18004. .catch((err) => {
  18005. console.error(err);
  18006. });
  18007. },
  18008. setMindData() {
  18009. this.data.data = [];
  18010. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18011. let _eJson = Object.keys(this.eJson);
  18012. let _e = this.eJson;
  18013. for (let i = 0; i < _eJson.length; i++) {
  18014. let element = _e[_eJson[i]];
  18015. this.data.data.push({
  18016. id: element.id,
  18017. parentid: "root",
  18018. topic: element.name,
  18019. });
  18020. let _eJsonc = Object.keys(element.child);
  18021. let _e2 = element.child;
  18022. for (let j = 0; j < _eJsonc.length; j++) {
  18023. let _ec = _e2[_eJsonc[j]];
  18024. this.data.data.push({
  18025. id: _ec.id,
  18026. parentid: element.id,
  18027. topic: _ec.name,
  18028. });
  18029. let _eJsonz = Object.keys(_ec.child);
  18030. let _e3 = _ec.child;
  18031. for (let z = 0; z < _eJsonz.length; z++) {
  18032. let _ez = _e3[_eJsonz[z]];
  18033. this.data.data.push({
  18034. id: _ez.id,
  18035. parentid: _ec.id,
  18036. topic: _ez.name,
  18037. });
  18038. }
  18039. }
  18040. }
  18041. this.$forceUpdate();
  18042. },
  18043. checkFileFull(type, url) {
  18044. this.fullDialogVisible = true;
  18045. this.fulltype = type;
  18046. this.fullUrl = url;
  18047. },
  18048. checkFileFull1(t, f) {
  18049. this.fullDialogVisible = true;
  18050. if (t == 6) {
  18051. this.fulltype = 1;
  18052. this.fullUrl = JSON.parse(JSON.stringify(f));
  18053. } else if (t == 8) {
  18054. this.fulltype = 2;
  18055. this.fullUrl = f.url;
  18056. } else if (
  18057. t == 3 &&
  18058. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18059. "PDF"
  18060. ) {
  18061. this.fulltype = 3;
  18062. this.fullUrl = f.url;
  18063. } else if (t == 3) {
  18064. this.fulltype = 2;
  18065. this.fullUrl =
  18066. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  18067. }
  18068. },
  18069. openSname(n, id, i, uid) {
  18070. this.snameWid = id;
  18071. this.worksSName = n;
  18072. this.worksSid = uid == n ? "" : uid;
  18073. this.toolindex = i;
  18074. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18075. if (!this.uploadCid) {
  18076. this.$message.error(
  18077. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18078. );
  18079. return;
  18080. }
  18081. this.selectUploadStudent(1);
  18082. },
  18083. updateName() {
  18084. let params = {
  18085. n: this.worksSName,
  18086. cid: this.snameWid,
  18087. };
  18088. this.ajax
  18089. .get(this.$store.state.api + "updateCourseWorksName", params)
  18090. .then((res) => {
  18091. this.$message({
  18092. message: "修改成功",
  18093. type: "success",
  18094. });
  18095. this.dialogVisibleSname = false;
  18096. this.getCourseDetail(2);
  18097. this.snameWid = "";
  18098. this.worksSName = "";
  18099. })
  18100. .catch((err) => {
  18101. console.error(err);
  18102. });
  18103. },
  18104. downloadFile2(f) {
  18105. // const loading = this.$loading.service({
  18106. // background: "rgba(255, 255, 255, 0.7)",
  18107. // target: document.body,
  18108. // text: "文件加载中...",
  18109. // });
  18110. // let url2 = f.url;
  18111. // let _url2 = "";
  18112. // if (
  18113. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18114. // ) {
  18115. // _url2 = url2.split(
  18116. // "https://view.officeapps.live.com/op/view.aspx?src="
  18117. // )[1];
  18118. // } else {
  18119. // _url2 = url2;
  18120. // }
  18121. // let params = {
  18122. // url: _url2,
  18123. // name: f.name,
  18124. // };
  18125. // this.ajax
  18126. // .get(this.$store.state.api + "download", params)
  18127. // .then((res) => {
  18128. // loading.close();
  18129. // let content = res.data.data.data;
  18130. // let ab = new ArrayBuffer(content.length);
  18131. // let view = new Uint8Array(ab);
  18132. // for (var i = 0; i < content.length; ++i) {
  18133. // view[i] = content[i];
  18134. // }
  18135. // let elink = document.createElement("a");
  18136. // elink.download = f.name;
  18137. // elink.style.display = "none";
  18138. // let blob = new Blob([ab], {
  18139. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18140. // });
  18141. // elink.href = URL.createObjectURL(blob);
  18142. // document.body.appendChild(elink);
  18143. // elink.click();
  18144. // document.body.removeChild(elink);
  18145. // })
  18146. // .catch((err) => {
  18147. // loading.close();
  18148. // console.error(err);
  18149. // });
  18150. var credentials = {
  18151. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18152. secretAccessKey: "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",
  18153. }; //秘钥形式的登录上传
  18154. window.AWS.config.update(credentials);
  18155. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18156. let url2 = f.url;
  18157. let _url2 = "";
  18158. if (
  18159. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18160. ) {
  18161. _url2 = url2.split(
  18162. "https://view.officeapps.live.com/op/view.aspx?src="
  18163. )[1];
  18164. } else {
  18165. _url2 = url2;
  18166. }
  18167. let _this = this;
  18168. _this.downLoading = true
  18169. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18170. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18171. var params = {
  18172. Bucket: "ccrb",
  18173. Key: name
  18174. };
  18175. s3.getObject(params, function (err, data) {
  18176. _this.downLoading = false
  18177. if (err) console.log(err, err.stack); // an error occurred
  18178. else {
  18179. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18180. let a = document.createElement("a");
  18181. a.name = f.name;
  18182. a.href = url;
  18183. a.download = f.name;
  18184. a.click();
  18185. console.log(data);
  18186. } // sxuccessful response
  18187. });
  18188. return;
  18189. let url = f.url;
  18190. let _url = "";
  18191. if (
  18192. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18193. ) {
  18194. _url = url.split(
  18195. "https://view.officeapps.live.com/op/view.aspx?src="
  18196. )[1];
  18197. } else {
  18198. _url = url;
  18199. }
  18200. _this.downLoading = true
  18201. let x = new XMLHttpRequest();
  18202. x.open("GET", _url, true);
  18203. x.responseType = "blob";
  18204. x.onload = function () {
  18205. _this.downLoading = false
  18206. let url = window.URL.createObjectURL(new Blob([x.response]));
  18207. let a = document.createElement("a");
  18208. a.name = f.name;
  18209. a.href = url;
  18210. a.download = f.name;
  18211. a.click();
  18212. };
  18213. x.send();
  18214. },
  18215. downloadFile(url) {
  18216. var credentials = {
  18217. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18218. secretAccessKey: "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",
  18219. }; //秘钥形式的登录上传
  18220. window.AWS.config.update(credentials);
  18221. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18222. let url2 = url;
  18223. let _url2 = "";
  18224. if (
  18225. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18226. ) {
  18227. _url2 = url2.split(
  18228. "https://view.officeapps.live.com/op/view.aspx?src="
  18229. )[1];
  18230. } else {
  18231. _url2 = url2;
  18232. }
  18233. const loading2 = this.$loading.service({
  18234. background: "rgba(255, 255, 255, 0.7)",
  18235. target: document.body,
  18236. text: "文件加载中...",
  18237. });
  18238. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18239. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18240. var params = {
  18241. Bucket: "ccrb",
  18242. Key: name
  18243. };
  18244. s3.getObject(params, function (err, data) {
  18245. loading2.close();
  18246. if (err) console.log(err, err.stack); // an error occurred
  18247. else {
  18248. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18249. let a = document.createElement("a");
  18250. a.name = name;
  18251. a.href = url;
  18252. a.download = name;
  18253. a.click();
  18254. console.log(data);
  18255. } // sxuccessful response
  18256. });
  18257. return;
  18258. let _this = this;
  18259. let _url = "";
  18260. if (
  18261. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18262. ) {
  18263. _url = url.split(
  18264. "https://view.officeapps.live.com/op/view.aspx?src="
  18265. )[1];
  18266. } else {
  18267. _url = url;
  18268. }
  18269. const x = new XMLHttpRequest();
  18270. x.open("GET", _url, true);
  18271. x.responseType = "blob";
  18272. // this.downLoading = true
  18273. const loading = _this.$loading.service({
  18274. background: "rgba(255, 255, 255, 0.7)",
  18275. target: document.body,
  18276. text: "文件加载中...",
  18277. });
  18278. // _this.$message.success("文件下载中...");
  18279. x.onload = function (e) {
  18280. loading.close();
  18281. let content = x.response;
  18282. let elink = document.createElement("a");
  18283. elink.download = decodeURI(
  18284. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18285. );
  18286. elink.style.display = "none";
  18287. let blob = new Blob([content]);
  18288. elink.href = URL.createObjectURL(blob);
  18289. document.body.appendChild(elink);
  18290. elink.click();
  18291. document.body.removeChild(elink);
  18292. };
  18293. x.send();
  18294. },
  18295. openLine(url) {
  18296. window.open(url);
  18297. },
  18298. resize() {
  18299. if (document.getElementsByClassName("box_course").length) {
  18300. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18301. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18302. if (this.showType == 2 || this.showType == 3) {
  18303. document.getElementsByClassName("navBox")[0].style.height =
  18304. a - 40 + 46 + "px";
  18305. } else {
  18306. document.getElementsByClassName("navBox")[0].style.height =
  18307. a - 40 + "px";
  18308. }
  18309. }
  18310. this.Stbodywidth =
  18311. document.getElementsByClassName("student_body").length &&
  18312. document.getElementsByClassName("student_body")[0].offsetWidth;
  18313. },
  18314. closeDraw() {
  18315. this.bg = null;
  18316. this.drawShow = false;
  18317. },
  18318. showPicturePaint(url) {
  18319. let params = {
  18320. img: url,
  18321. };
  18322. this.ajax
  18323. .get(this.$store.state.api + "imgToBase64", params)
  18324. .then((res) => {
  18325. this.drawShow = true;
  18326. this.bg = res.data[0].img;
  18327. })
  18328. .catch((err) => {
  18329. console.error(err);
  18330. });
  18331. },
  18332. addImgDraw(base64) {
  18333. let file = { name: "批注图.png" };
  18334. let img = this.dataUrlToFile(base64, file);
  18335. this.beforeUpload1(img, 5);
  18336. },
  18337. addImgDrawImG(url) {
  18338. // console.log(url);
  18339. let params = [
  18340. {
  18341. wid: this.commentDetail.wid,
  18342. img: url,
  18343. },
  18344. ];
  18345. this.ajax
  18346. .post(this.$store.state.api + "updateCourseWorks", params)
  18347. .then((res) => {
  18348. this.$message({
  18349. message: "提交成功",
  18350. type: "success",
  18351. });
  18352. this.drawShow = false;
  18353. this.bg = "";
  18354. this.selectSWorks();
  18355. this.selectStudent();
  18356. })
  18357. .catch((err) => {
  18358. this.$message.error("提交失败");
  18359. console.error(err);
  18360. });
  18361. },
  18362. deletePicturePaint() {
  18363. this.$confirm("确定删除此批注吗?", "提示", {
  18364. confirmButtonText: "确定",
  18365. cancelButtonText: "取消",
  18366. type: "warning",
  18367. })
  18368. .then(() => {
  18369. let params = [
  18370. {
  18371. wid: this.commentDetail.wid,
  18372. img: "",
  18373. },
  18374. ];
  18375. this.ajax
  18376. .post(this.$store.state.api + "updateCourseWorks", params)
  18377. .then((res) => {
  18378. this.$message({
  18379. message: "删除成功",
  18380. type: "success",
  18381. });
  18382. this.selectSWorks();
  18383. this.selectStudent();
  18384. })
  18385. .catch((err) => {
  18386. this.$message.error("删除失败");
  18387. console.error(err);
  18388. });
  18389. })
  18390. .catch(() => {});
  18391. },
  18392. getAudioVideo(constraintsData) {
  18393. if (navigator.mediaDevices === undefined) {
  18394. navigator.mediaDevices = {};
  18395. }
  18396. if (navigator.mediaDevices.getUserMedia === undefined) {
  18397. navigator.mediaDevices.getUserMedia = function (constraints) {
  18398. // 首先,如果有getUserMedia的话,就获得它
  18399. var getUserMedia =
  18400. navigator.getUserMedia ||
  18401. navigator.webkitGetUserMedia ||
  18402. navigator.mozGetUserMedia ||
  18403. navigator.msGetUserMedia;
  18404. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18405. if (!getUserMedia) {
  18406. return Promise.reject({ code: 404 });
  18407. }
  18408. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18409. return new Promise(function (resolve, reject) {
  18410. getUserMedia.call(navigator, constraints, resolve, reject);
  18411. });
  18412. };
  18413. }
  18414. return navigator.mediaDevices.getUserMedia(constraintsData);
  18415. },
  18416. /**
  18417. * 开始录制
  18418. */
  18419. startRecording(callback) {
  18420. let _function = (screenStream) => {
  18421. this.addStreamStopListener(screenStream, () => {
  18422. console.log("流停止监听");
  18423. this.stopRecording();
  18424. this.$emit("streamStop", {});
  18425. // this.stopRecording();
  18426. });
  18427. var options = {
  18428. type: "video",
  18429. mimeType: "video/webm",
  18430. disableLogs: false,
  18431. getNativeBlob: false, // enable it for longer recordings
  18432. ignoreMutedMedia: false,
  18433. };
  18434. // this.video.srcObject = screenStream;
  18435. this.recorder = RecordRTC(screenStream, options);
  18436. this.recorder.startRecording();
  18437. this.recorder.screen = screenStream;
  18438. this.videoStart = true;
  18439. // callback(true);
  18440. };
  18441. this.getAudioVideo({ audio: true })
  18442. .then((res) => {
  18443. this.captureScreen(_function, true);
  18444. console.log("已点击允许,开启成功");
  18445. })
  18446. .catch((err) => {
  18447. // console.log('浏览器不支持,请更换浏览器')
  18448. // } else {
  18449. this.captureScreen(_function, false);
  18450. console.log("请检查是否存在麦克风");
  18451. });
  18452. },
  18453. /**
  18454. * 停止录制
  18455. */
  18456. stopRecording(callback) {
  18457. this.recorder.stopRecording(() => {
  18458. // this.video.src = this.video.srcObject = null;
  18459. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18460. const url = URL.createObjectURL(this.recorder.getBlob());
  18461. const a = document.createElement("a"); //this.fileName+
  18462. let videoFile = new File(
  18463. [this.recorder.getBlob()],
  18464. this.courseDetail.title + "录屏.mp4",
  18465. {
  18466. type: "video/mp4",
  18467. }
  18468. );
  18469. let downloadUrl = URL.createObjectURL(videoFile);
  18470. document.body.appendChild(a);
  18471. a.style.display = "none";
  18472. a.href = url;
  18473. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18474. a.click();
  18475. this.recorder.screen.stop();
  18476. this.recorder.destroy();
  18477. this.recorder = null;
  18478. this.videoStart = false;
  18479. // callback(false);
  18480. });
  18481. },
  18482. //初始化
  18483. captureScreen(callback, type) {
  18484. if (navigator.getDisplayMedia) {
  18485. //录制结束,文件下载
  18486. navigator
  18487. .getDisplayMedia({
  18488. video: true,
  18489. })
  18490. .then((screenStream) => {
  18491. if (type) {
  18492. navigator.mediaDevices
  18493. .getUserMedia({ audio: true })
  18494. .then((mic) => {
  18495. screenStream.addTrack(mic.getTracks()[0]);
  18496. callback(screenStream);
  18497. });
  18498. } else {
  18499. callback(screenStream);
  18500. }
  18501. })
  18502. .catch(function (error) {
  18503. console.log("error", error);
  18504. });
  18505. } else if (navigator.mediaDevices.getDisplayMedia) {
  18506. navigator.mediaDevices
  18507. .getDisplayMedia({
  18508. video: true,
  18509. })
  18510. .then((screenStream) => {
  18511. if (type) {
  18512. navigator.mediaDevices
  18513. .getUserMedia({ audio: true })
  18514. .then((mic) => {
  18515. screenStream.addTrack(mic.getTracks()[0]);
  18516. callback(screenStream);
  18517. });
  18518. } else {
  18519. callback(screenStream);
  18520. }
  18521. })
  18522. .catch(function (error) {
  18523. console.log("error", error);
  18524. });
  18525. } else {
  18526. var error = "getDisplayMedia API are not supported in this browser.";
  18527. console.log("error", error);
  18528. alert(error);
  18529. }
  18530. },
  18531. //流监听
  18532. addStreamStopListener(stream, callback) {
  18533. stream.addEventListener(
  18534. "ended",
  18535. function () {
  18536. callback();
  18537. callback = function () {};
  18538. },
  18539. false
  18540. );
  18541. stream.addEventListener(
  18542. "inactive",
  18543. function () {
  18544. callback();
  18545. callback = function () {};
  18546. },
  18547. false
  18548. );
  18549. stream.getTracks().forEach(function (track) {
  18550. track.addEventListener(
  18551. "ended",
  18552. function () {
  18553. callback();
  18554. callback = function () {};
  18555. },
  18556. false
  18557. );
  18558. track.addEventListener(
  18559. "inactive",
  18560. function () {
  18561. callback();
  18562. callback = function () {};
  18563. },
  18564. false
  18565. );
  18566. });
  18567. },
  18568. updateGroup() {
  18569. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18570. this.dialogVisibleGroup2 = true;
  18571. },
  18572. numberPan() {
  18573. if (
  18574. /[^\d]/.test(this.groupJson.number) ||
  18575. this.groupJson.number < 2 ||
  18576. this.groupJson.number > 10
  18577. ) {
  18578. this.$message.error("请输入2-10的数字");
  18579. this.groupJson.number = "";
  18580. }
  18581. },
  18582. updateGroupJson() {
  18583. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18584. if (
  18585. this.groupStudentUid[this.toolindex][i].length >
  18586. this.groupJson2.number
  18587. ) {
  18588. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18589. return;
  18590. }
  18591. }
  18592. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18593. this.islock = this.groupJson.islock == 1 ? true : false;
  18594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18595. this.taskCount
  18596. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18597. let params = [
  18598. {
  18599. cid: this.id,
  18600. chapters: JSON.stringify(this.chapInfoList),
  18601. uid: this.userid,
  18602. unitIndex: this.courseType,
  18603. },
  18604. ];
  18605. this.ajax
  18606. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  18607. .then((res) => {
  18608. this.$message.success("设置成功");
  18609. this.getCourseDetail(2);
  18610. this.dialogVisibleGroup2 = false;
  18611. this.groupJson2 = {};
  18612. this.$forceUpdate();
  18613. })
  18614. .catch((err) => {
  18615. this.$message.error("网络不佳");
  18616. console.error(err);
  18617. });
  18618. },
  18619. lockChair() {
  18620. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18621. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18622. this.updateGroupJson();
  18623. },
  18624. selectGroup(index) {
  18625. this.getCourseDetail(2, index);
  18626. },
  18627. joinGroup(index) {
  18628. if (this.groupJson.islock == 2) {
  18629. this.$message.error("位置已被锁定,无法加入");
  18630. return;
  18631. }
  18632. if (
  18633. this.groupStudent[this.toolindex][index].length >
  18634. this.groupJson.number ||
  18635. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18636. ) {
  18637. this.$message.error("位置已满,无法加入");
  18638. return;
  18639. }
  18640. let params = [
  18641. {
  18642. cid: this.id,
  18643. stage: this.courseType,
  18644. task: this.taskCount,
  18645. tool: this.toolindex,
  18646. g: index,
  18647. uid: this.userid,
  18648. },
  18649. ];
  18650. this.ajax
  18651. .post(this.$store.state.api + "joinGroup", params)
  18652. .then((res) => {
  18653. this.$message.success("加入成功");
  18654. this.getCourseDetail(2);
  18655. })
  18656. .catch((err) => {
  18657. this.$message.error("网络不佳");
  18658. console.error(err);
  18659. });
  18660. },
  18661. exitGroup(id) {
  18662. if (this.groupJson.islock == 2) {
  18663. this.$message.error("位置已被锁定,无法退出");
  18664. return;
  18665. }
  18666. let params = [
  18667. {
  18668. gid: id,
  18669. },
  18670. ];
  18671. this.ajax
  18672. .post(this.$store.state.api + "exitGroup", params)
  18673. .then((res) => {
  18674. this.$message.success("退出成功");
  18675. this.getCourseDetail(2);
  18676. })
  18677. .catch((err) => {
  18678. this.$message.error("网络不佳");
  18679. console.error(err);
  18680. });
  18681. },
  18682. groupUpload(index, task, gindex) {
  18683. this.taskCount = task;
  18684. this.toolindex = index;
  18685. this.groupIndex = gindex;
  18686. this.dialogVisibleGroupWork = true;
  18687. },
  18688. updateGroupChair(user) {
  18689. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18690. el.label = index;
  18691. return index != user.group;
  18692. });
  18693. this.updateGroupUser = user;
  18694. this.dialogVisibleUpdateGroup = true;
  18695. },
  18696. updateChair() {
  18697. if (
  18698. this.groupStudent[this.toolindex][this.checkChair].length >
  18699. this.groupJson.number ||
  18700. this.groupStudent[this.toolindex][this.checkChair].length ==
  18701. this.groupJson.number
  18702. ) {
  18703. this.$message.error("位置已满,无法加入");
  18704. return;
  18705. }
  18706. let params = [
  18707. {
  18708. cid: this.id,
  18709. stage: this.courseType,
  18710. task: this.taskCount,
  18711. tool: this.toolindex,
  18712. g: this.checkChair,
  18713. uid: this.updateGroupUser.userid,
  18714. },
  18715. ];
  18716. this.ajax
  18717. .post(this.$store.state.api + "joinGroup", params)
  18718. .then((res) => {
  18719. this.$message.success("修改成功");
  18720. this.updateGroupUser = {};
  18721. this.checkChair = "";
  18722. this.updateGroupArray = {};
  18723. this.dialogVisibleUpdateGroup = false;
  18724. this.getCourseDetail(2);
  18725. })
  18726. .catch((err) => {
  18727. this.$message.error("网络不佳");
  18728. console.error(err);
  18729. });
  18730. },
  18731. deleteGroupChair(gindex) {
  18732. this.checkDeleteGroup = [];
  18733. this.deleteGroupUser = JSON.parse(
  18734. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18735. );
  18736. this.deleteGroupArray = this.groupJson.group[gindex];
  18737. this.groupIndex = gindex;
  18738. this.dialogVisibleDeleteGroup = true;
  18739. },
  18740. async deleteChair() {
  18741. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18742. const gid =
  18743. this.groupStudent[this.toolindex][this.groupIndex][
  18744. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18745. this.checkDeleteGroup[i]
  18746. )
  18747. ];
  18748. let params = [
  18749. {
  18750. gid: gid.id,
  18751. },
  18752. ];
  18753. var a = await this.deleteChairA(params);
  18754. if (i == this.checkDeleteGroup.length - 1) {
  18755. this.$message.success("退出成功");
  18756. this.dialogVisibleDeleteGroup = false;
  18757. this.deleteGroupUser = [];
  18758. this.deleteGroupArray = {};
  18759. this.groupIndex = "";
  18760. this.checkDeleteGroup = [];
  18761. this.getCourseDetail(2);
  18762. }
  18763. }
  18764. },
  18765. deleteChairA(params) {
  18766. return new Promise((resolve, reject) => {
  18767. this.ajax
  18768. .post(this.$store.state.api + "exitGroup", params)
  18769. .then((res) => {
  18770. resolve(1);
  18771. })
  18772. .catch((err) => {
  18773. this.$message.error("网络不佳");
  18774. console.error(err);
  18775. });
  18776. });
  18777. },
  18778. contract(i) {
  18779. if (this.isCloseList[i].isClose == 0) {
  18780. this.isCloseList[i].isClose = 1;
  18781. } else {
  18782. this.isCloseList[i].isClose = 0;
  18783. }
  18784. this.$forceUpdate();
  18785. },
  18786. openWordCloud(toolindex) {
  18787. let array = [];
  18788. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18789. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18790. array.push({ name: works });
  18791. }
  18792. if (this.isGroup) {
  18793. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18794. let works = this.courseGroup.group[i].works[toolindex];
  18795. for (var j = 0; j < works.length; j++) {
  18796. let answer = JSON.parse(works[j].works)[0].answer;
  18797. array.push({ name: answer });
  18798. }
  18799. }
  18800. }
  18801. this.wordCloudData = array;
  18802. this.dialogVisibleWordCloud = true;
  18803. },
  18804. uploadWorks(i) {
  18805. this.$confirm("确定导出作业吗?", "提示", {
  18806. confirmButtonText: "确定",
  18807. cancelButtonText: "取消",
  18808. type: "warning",
  18809. })
  18810. .then(() => {
  18811. const loading = this.$loading.service({
  18812. background: "rgba(255, 255, 255, 0.7)",
  18813. target: document.body,
  18814. text: "文件加载中...",
  18815. });
  18816. const _worksStudent = this.worksStudent;
  18817. let url = [];
  18818. var counts = {};
  18819. for (var l = 0; l < _worksStudent[i].length; l++) {
  18820. var item = _worksStudent[i][l];
  18821. var name = item.sName;
  18822. if (!counts.hasOwnProperty(name)) {
  18823. counts[name] = 0;
  18824. } else {
  18825. counts[name]++;
  18826. }
  18827. if (counts[name] > 0) {
  18828. item.sName += " (" + counts[name] + ")";
  18829. }
  18830. }
  18831. for (var l = 0; l < _worksStudent[i].length; l++) {
  18832. var item = _worksStudent[i][l];
  18833. if (
  18834. item.works.indexOf(
  18835. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18836. ) !== -1 &&
  18837. item.works.indexOf("img") === -1
  18838. ) {
  18839. url.push({ name: item.sName, url: item.works });
  18840. }
  18841. }
  18842. // var toolList = [
  18843. // { name: "电子白板", tool: 1 },
  18844. // { name: "思维导图", tool: 3 },
  18845. // { name: "协同文档", tool: 6 },
  18846. // { name: "思维网格", tool: 7 },
  18847. // { name: "素材库", tool: 8 },
  18848. // { name: "学习资料", tool: 17 },
  18849. // { name: "便签", tool: 2 },
  18850. // { name: "问卷调查", tool: 4 },
  18851. // { name: "选择题", tool: 45 },
  18852. // { name: "倒计时", tool: 10 },
  18853. // { name: "问答", tool: 15 },
  18854. // { name: "课程设计", tool: 26 },
  18855. // { name: "训练服务器", tool: 18 },
  18856. // { name: "作业提交", tool: 16 },
  18857. // { name: "批量上传", tool: 50 },
  18858. // { name: "AIoT Blockly", tool: 21 },
  18859. // { name: "AI Python", tool: 23 },
  18860. // { name: "AI Blockly", tool: 24 },
  18861. // { name: "目标管理", tool: 25 },
  18862. // { name: "数学画板", tool: 31 },
  18863. // { name: "翻译", tool: 28 },
  18864. // { name: "魔盒识字", tool: 37 },
  18865. // { name: "数学画板", tool: 31 },
  18866. // { name: "24点", tool: 38 },
  18867. // { name: "GeoGebra", tool: 39 },
  18868. // { name: "源码编辑", tool: 32 },
  18869. // { name: "个人评价", tool: 40 },
  18870. // { name: "选择匹配", tool: 41 },
  18871. // { name: "汉字宫", tool: 44 },
  18872. // { name: "排序", tool: 47 },
  18873. // { name: "表格", tool: 48 },
  18874. // { name: "文档", tool: 52 },
  18875. // { name: "学生分组", tool: 49 },
  18876. // { name: "CocoPi", tool: 57 },
  18877. // { name: "模拟驾驶", tool: 58 },
  18878. // { name: "路径搜索", tool: 59 },
  18879. // { name: "深度学习", tool: 60 },
  18880. // { name: "全历史", tool: 61 },
  18881. // { name: "交互视频", tool: 62 },
  18882. // { name: "海龟编程", tool: 63 },
  18883. // { name: "挑人", tool: 65 },
  18884. // { name: "公式编辑", tool: 66 },
  18885. // { name: "分子结构", tool: 67 },
  18886. // { name: "时间轴", tool: 68 },
  18887. // ];
  18888. // var toolName = "";
  18889. // for(var w = 0;w<toolList.length;w++){
  18890. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18891. // toolName = toolList[w].name;
  18892. // }
  18893. // }
  18894. console.log(url);
  18895. this.downLoadAll(url, loading);
  18896. })
  18897. .catch(() => {});
  18898. },
  18899. downLoadAll(url, loading) {
  18900. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18901. const zip = new JSZip();
  18902. const cache = {};
  18903. const promises = [];
  18904. data.forEach((item) => {
  18905. const promise = getFile(item.url).then((data) => {
  18906. if (data.data != 1) {
  18907. // 下载文件, 并存成ArrayBuffer对象
  18908. const file_name =
  18909. item.name +
  18910. "." +
  18911. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18912. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18913. cache[file_name] = data.data;
  18914. }
  18915. });
  18916. promises.push(promise);
  18917. });
  18918. Promise.all(promises).then(() => {
  18919. zip.generateAsync({ type: "blob" }).then((content) => {
  18920. // 生成二进制流
  18921. FileSaver.saveAs(
  18922. content,
  18923. this.courseDetail.title + "-" + "作业提交工具.zip"
  18924. ); // 利用file-saver保存文件 自定义文件名
  18925. setTimeout(() => {
  18926. loading.close();
  18927. }, 2000);
  18928. });
  18929. });
  18930. },
  18931. pickStudent(stu) {
  18932. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18933. return;
  18934. }
  18935. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18936. confirmButtonText: "确定",
  18937. cancelButtonText: "取消",
  18938. type: "warning",
  18939. })
  18940. .then(() => {
  18941. let params = [
  18942. {
  18943. uid: stu.userid,
  18944. cid: this.id,
  18945. stage: this.courseType,
  18946. task: this.taskCount,
  18947. tool: this.toolindex,
  18948. },
  18949. ];
  18950. this.ajax
  18951. .post(this.$store.state.api + "updateCoursePick", params)
  18952. .then((res) => {
  18953. this.$message.success("操作成功");
  18954. this.getPick();
  18955. })
  18956. .catch((err) => {
  18957. this.$message.error("网络不佳");
  18958. console.error(err);
  18959. });
  18960. })
  18961. .catch(() => {});
  18962. },
  18963. selectUser(){
  18964. let params = {
  18965. userid: this.userid,
  18966. };
  18967. this.ajax
  18968. .get(this.$store.state.api + "selectUser", params)
  18969. .then((res) => {
  18970. this.userMes = res.data[0];
  18971. })
  18972. .catch((err) => {
  18973. console.error(err);
  18974. });
  18975. },
  18976. setEngText(i){
  18977. this.newEngIndex = i;
  18978. this.$forceUpdate();
  18979. },
  18980. addCorrect(){
  18981. this.$confirm("你确定提交批改嘛?", "提示", {
  18982. confirmButtonText: "确定",
  18983. showCancelButton: false,
  18984. closeOnClickModal: false,
  18985. type: "warning",
  18986. })
  18987. .then(() => {
  18988. let params = {
  18989. cid: this.id,
  18990. s: parseInt(this.courseType),
  18991. t: this.taskCount,
  18992. tool: this.toolindex,
  18993. wid: this.engWid,
  18994. c: this.userid,
  18995. 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) : "",
  18996. };
  18997. this.ajax
  18998. .get(this.$store.state.api + "addEngC", params)
  18999. .then((res) => {
  19000. this.$message.success("提交成功");
  19001. this.engUpdateDialogVisible = false;
  19002. })
  19003. .catch((err) => {
  19004. console.error(err);
  19005. });
  19006. })
  19007. .catch(() => {});
  19008. },
  19009. selectEngC(id,z){
  19010. let params = {
  19011. workid: id,
  19012. };
  19013. this.ajax
  19014. .get(this.$store.state.api + "selectEngC", params)
  19015. .then((res) => {
  19016. if(res.data[0].length == 0){
  19017. this.newEnglishList.engTitle = z.engTitle;
  19018. this.newEnglishList.engText = z.engText;
  19019. }else{
  19020. var a = res.data[0];
  19021. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19022. if(this.userMes[0].type == 2){
  19023. var snum = 0;
  19024. for(var i = 0;i<a.length;i++){
  19025. if(this.userMes[0].userid == a[i].correct){
  19026. this.newEnglishList = JSON.parse(a[i].cWork);
  19027. snum = 1;
  19028. }
  19029. }
  19030. if(snum == 0){
  19031. this.newEnglishList = { engTitle:"",engText:"" };
  19032. this.newEnglishList.engTitle = z.engTitle;
  19033. this.newEnglishList.engText = z.engText;
  19034. }
  19035. }else if(this.userMes[0].type == 1){
  19036. var num = 0;
  19037. for(var w= 0;w<a.length;w++){
  19038. if(this.userMes[0].userid == a[w].correct){
  19039. num = 1;
  19040. }
  19041. }
  19042. if(num == 0){
  19043. this.isNoUserid = true;
  19044. var c = JSON.parse(JSON.stringify(z));
  19045. this.oldEnglishJson1 = c;
  19046. }else{
  19047. this.isNoUserid = false;
  19048. }
  19049. var b = a.sort((item, index) => {
  19050. console.log(item)
  19051. if (item.correct === this.userMes[0].userid) {
  19052. return -1; // 将a移到前面
  19053. } else if (index.correct === this.userMes[0].userid) {
  19054. return 1; // 将b移到前面
  19055. } else {
  19056. return 0; // 保持默认顺序
  19057. }
  19058. });
  19059. for(var p = 0;p<b.length;p++){
  19060. for(var y = 0;y<ppp.length;y++){
  19061. if(b[p].id == ppp[y].id){
  19062. b[p].cWork = JSON.parse(ppp[y].cWork);
  19063. break
  19064. }
  19065. }
  19066. }
  19067. this.newEnglishList1 = b;
  19068. }
  19069. }
  19070. this.greyType = false;
  19071. setTimeout(() => {
  19072. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19073. if(this.newEnglishList1.length > 0){
  19074. if(this.isNoUserid == true){
  19075. this.engListLength = this.newEnglishList1.length + 1;
  19076. this.newEngIndex = -1;
  19077. }else{
  19078. this.engListLength = this.newEnglishList1.length;
  19079. this.newEngIndex = 0;
  19080. }
  19081. }
  19082. if(this.userMes[0].type == 2){
  19083. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19084. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19085. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19086. }else if(this.newEngIndex == -1){
  19087. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19088. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19089. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19090. }
  19091. }, 500);
  19092. this.engUpdateDialogVisible = true;
  19093. this.$forceUpdate();
  19094. })
  19095. .catch((err) => {
  19096. console.error(err);
  19097. });
  19098. },
  19099. getPick() {
  19100. let params = {
  19101. cid: this.id,
  19102. };
  19103. this.ajax
  19104. .get(this.$store.state.api + "getPick", params)
  19105. .then((res) => {
  19106. let array = [];
  19107. for (var i = 0; i < res.data[0].length; i++) {
  19108. array.push(res.data[0][i].userid);
  19109. }
  19110. this.isPickStudent = array;
  19111. if (array.indexOf(this.userid) !== -1) {
  19112. this.$confirm("你被老师选到啦!", "提示", {
  19113. confirmButtonText: "确定",
  19114. showCancelButton: false,
  19115. closeOnClickModal: false,
  19116. type: "warning",
  19117. })
  19118. .then(() => {
  19119. let pa = [
  19120. {
  19121. uid: this.userid,
  19122. cid: this.id,
  19123. },
  19124. ];
  19125. this.ajax
  19126. .post(this.$store.state.api + "deletePick", pa)
  19127. .then((res) => {
  19128. this.getPick();
  19129. })
  19130. .catch((err) => {
  19131. this.$message.error("网络不佳");
  19132. console.error(err);
  19133. });
  19134. })
  19135. .catch(() => {});
  19136. }
  19137. })
  19138. .catch((err) => {
  19139. this.$message.error("网络不佳");
  19140. console.error(err);
  19141. });
  19142. },
  19143. foldEva() {
  19144. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19145. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19146. } else {
  19147. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19148. setTimeout(() => {
  19149. this.checkEva();
  19150. setTimeout(() => {
  19151. this.checkEva();
  19152. }, 500);
  19153. }, 0);
  19154. }
  19155. this.$forceUpdate();
  19156. },
  19157. panToolHeight(tool) {
  19158. var _tool = document.querySelectorAll('#'+tool)[0]
  19159. var _toolA = _tool ? _tool.offsetHeight : 0
  19160. var _toolC = 0
  19161. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19162. let boolean2 = (_toolA > _toolC) ? true : false
  19163. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19164. this.$forceUpdate();
  19165. },
  19166. },
  19167. directives: {
  19168. // 使用局部注册指令的方式
  19169. resize: {
  19170. // 指令的名称
  19171. bind(el, binding) {
  19172. // el为绑定的元素,binding为绑定给指令的对象
  19173. let width = "",
  19174. height = "";
  19175. function isReize() {
  19176. const style = document.defaultView.getComputedStyle(el);
  19177. if (width !== style.width || height !== style.height) {
  19178. binding.value(); // 关键
  19179. }
  19180. width = style.width;
  19181. height = style.height;
  19182. }
  19183. el.__vueSetInterval__ = setInterval(isReize, 300);
  19184. },
  19185. unbind(el) {
  19186. clearInterval(el.__vueSetInterval__);
  19187. },
  19188. },
  19189. autoHeight: {
  19190. update(el, binding) {
  19191. const { value } = binding
  19192. if (value && typeof value === 'number') {
  19193. el.style.height = `${value}px`
  19194. } else {
  19195. el.style.height = 'auto'
  19196. }
  19197. },
  19198. componentUpdated(el) {
  19199. el.style.height = `${el.scrollHeight}px`
  19200. },
  19201. },
  19202. },
  19203. beforeDestroy() {
  19204. window.onresize = null;
  19205. clearInterval(this.timer);
  19206. this.timer = null;
  19207. clearInterval(this.opertimer);
  19208. this.opertimer = null;
  19209. },
  19210. computed: {
  19211. contentConvent() {
  19212. return function (c) {
  19213. return c
  19214. ? c
  19215. .replaceAll(/\r\n/g, "<br/>")
  19216. .replaceAll(/\n/g, "<br/>")
  19217. .replaceAll(/\s/g, " &nbsp")
  19218. : "";
  19219. };
  19220. },
  19221. checkUpload() {
  19222. return function () {
  19223. var studentK = [];
  19224. if (this.plworkFile.length > 0) {
  19225. for (var z = 0; z < this.plworkFile.length; z++) {
  19226. studentK.push(this.plworkFile[z].username);
  19227. }
  19228. studentK = studentK.join(",");
  19229. }
  19230. var a = this.uploadStudentJuri.filter((el) => {
  19231. return studentK.indexOf(el.userid) == -1;
  19232. });
  19233. return a;
  19234. };
  19235. },
  19236. getSName() {
  19237. return function (name) {
  19238. var check = name;
  19239. this.uploadStudentJuri.forEach((el) => {
  19240. if (el.userid == check) {
  19241. check = el.name ? el.name : el.username;
  19242. }
  19243. });
  19244. return check;
  19245. };
  19246. },
  19247. getImgList() {
  19248. return function (val) {
  19249. let srcList = []; // 定义一个数组用来接收后面的img地址
  19250. val.replace(
  19251. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19252. function (match, capture) {
  19253. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19254. srcList.push(capture);
  19255. }
  19256. );
  19257. return srcList;
  19258. };
  19259. },
  19260. retrnToolHeight(){
  19261. return function (tool) {
  19262. var _tool = document.querySelectorAll('#'+tool)[0]
  19263. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19264. };
  19265. },
  19266. Correct() {
  19267. return function (c) {
  19268. let w = "";
  19269. let a = this.correctWord;
  19270. for(var k = 0;k<a.length;k++){
  19271. //diffWordsWithSpace
  19272. if(a.length > 1){
  19273. if(a[k].added == true){
  19274. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19275. }else if(a[k].removed == true){
  19276. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19277. }else{
  19278. w += '<span>' + a[k].value + '</span>';
  19279. }
  19280. }else{
  19281. w = c
  19282. }
  19283. //diffChars方法
  19284. // if(a.length > 1){
  19285. // if(w == ""){
  19286. // if(a[k].added == true){
  19287. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19288. // }else if(a[k].removed == true){
  19289. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19290. // }
  19291. // }else{
  19292. // if(k == a.length - 1){
  19293. // if(a[k].added == true){
  19294. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19295. // }else if(a[k].removed == true){
  19296. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19297. // }
  19298. // }else{
  19299. // if(a[k].added == true){
  19300. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19301. // }else if(a[k].removed == true){
  19302. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19303. // }
  19304. // }
  19305. // }
  19306. // }else{
  19307. // w = c
  19308. // }
  19309. }
  19310. c = w;
  19311. return c;
  19312. };
  19313. },
  19314. },
  19315. mounted() {
  19316. document.body.addEventListener("click", (e) => {
  19317. if (this.isUpdateToolDetail1) {
  19318. this.updateToolDetail(this.toolDetailIndex);
  19319. }
  19320. });
  19321. if (this.screenType == 2) {
  19322. window.parent.postMessage({ allScreen: 4 }, "*");
  19323. } else if (this.screenType == 3) {
  19324. window.parent.postMessage({ allScreen: 5 }, "*");
  19325. } else if (this.screenType == 1) {
  19326. window.parent.postMessage({ allScreen: 6 }, "*");
  19327. }
  19328. this.setOperationTime();
  19329. this.selectEva();
  19330. this.getCourseDetail();
  19331. this.selectCount();
  19332. this.getHomeWork();
  19333. this.selectUser();
  19334. this.contentDialog = true;
  19335. this.setContent2(true);
  19336. if (this.tType == 4) {
  19337. this.pzDialog = true;
  19338. this.selectPz();
  19339. }
  19340. document.scrollingElement.scrollTop = 0;
  19341. window.addEventListener("resize", () => {
  19342. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19343. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19344. if (this.showType == 2 || this.showType == 3) {
  19345. document.getElementsByClassName("navBox")[0].style.height =
  19346. a - 40 + 46 + "px";
  19347. } else {
  19348. document.getElementsByClassName("navBox")[0].style.height =
  19349. a - 40 + "px";
  19350. }
  19351. });
  19352. let _this = this;
  19353. setTimeout(() => {
  19354. // _this.vedioTime = [];
  19355. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19356. // _this.vedioTime[i] = document.getElementsByClassName(
  19357. // "vjs-duration-display"
  19358. // )[i].textContent;
  19359. // }
  19360. }, 1000);
  19361. },
  19362. };
  19363. </script>
  19364. <style scoped>
  19365. @media screen and (max-width: 1280px) {
  19366. /* .courseIndex > div:first-child(2) {
  19367. width: 15% !important;
  19368. } */
  19369. /* .navText {
  19370. width: 120px !important;
  19371. } */
  19372. .evaCss {
  19373. flex-direction: column !important;
  19374. align-items: center !important;
  19375. }
  19376. .elist_input {
  19377. width: 90% !important;
  19378. }
  19379. .dialog_diy1 >>> .el-dialog {
  19380. width: 100% !important;
  19381. }
  19382. .rightWidthCss {
  19383. width: 100% !important;
  19384. }
  19385. .dialog_diy3 >>> .el-dialog {
  19386. width: 100% !important;
  19387. }
  19388. .addToolCss {
  19389. right: 0 !important;
  19390. width: 100% !important;
  19391. min-width: unset !important;
  19392. }
  19393. }
  19394. .evaCssMax {
  19395. flex-direction: column !important;
  19396. align-items: center !important;
  19397. }
  19398. .dialog_diy >>> .el-dialog {
  19399. margin-top: 10vh !important;
  19400. }
  19401. .body_student {
  19402. width: 77%;
  19403. height: 100%;
  19404. position: absolute;
  19405. left: 22%;
  19406. top: 0;
  19407. }
  19408. .student_head {
  19409. width: 100%;
  19410. margin: 20px auto 0;
  19411. padding-bottom: 20px;
  19412. display: flex;
  19413. flex-direction: column;
  19414. flex-wrap: nowrap;
  19415. align-items: flex-start;
  19416. justify-content: flex-start;
  19417. }
  19418. .pb_left {
  19419. width: 20%;
  19420. margin-right: 10px;
  19421. background: rgb(255, 255, 255);
  19422. position: fixed;
  19423. height: calc(100% - 40px);
  19424. border-radius: 20px;
  19425. padding-bottom: 15px;
  19426. box-sizing: border-box;
  19427. }
  19428. .wheel > img,
  19429. .project > img,
  19430. .star > img,
  19431. .evaluate > img,
  19432. .up_photo > img,
  19433. .chapter_add > img,
  19434. .deleteWord > img,
  19435. .question > img,
  19436. .homework > img {
  19437. width: 100%;
  19438. height: 100%;
  19439. }
  19440. .upCover > img {
  19441. width: 131px;
  19442. height: 69px;
  19443. object-fit: cover;
  19444. }
  19445. .upCover {
  19446. width: calc(100% / 3.5);
  19447. position: relative;
  19448. margin: 0 15px 10px 0;
  19449. display: flex;
  19450. flex-direction: column;
  19451. flex-wrap: nowrap;
  19452. justify-content: center;
  19453. align-content: center;
  19454. align-items: center;
  19455. height: fit-content;
  19456. }
  19457. .upCover2 {
  19458. width: 100%;
  19459. position: relative;
  19460. margin: 0 15px 10px 0;
  19461. display: flex;
  19462. flex-direction: column;
  19463. flex-wrap: nowrap;
  19464. justify-content: center;
  19465. align-content: center;
  19466. align-items: center;
  19467. }
  19468. .upCover2 > img {
  19469. width: 100%;
  19470. height: 90px;
  19471. object-fit: contain;
  19472. }
  19473. .chapter_add {
  19474. width: 120px;
  19475. position: relative;
  19476. text-align: center;
  19477. }
  19478. .isAddThings {
  19479. margin-top: 20px;
  19480. position: relative;
  19481. text-align: center;
  19482. background: #f7f8fa;
  19483. height: 90px;
  19484. width: 90px;
  19485. display: flex;
  19486. flex-direction: column;
  19487. justify-content: center;
  19488. }
  19489. .deleteWord {
  19490. width: 22px;
  19491. height: 22px;
  19492. position: absolute;
  19493. right: -5px;
  19494. top: -5px;
  19495. cursor: pointer;
  19496. }
  19497. .box_course {
  19498. /* width: 60%; */
  19499. width: calc(100% - 300px);
  19500. }
  19501. .wheel {
  19502. width: 100%;
  19503. /* height: 100%; */
  19504. height: 650px;
  19505. }
  19506. .right_box {
  19507. display: flex;
  19508. flex-direction: column;
  19509. margin-left: 30px;
  19510. justify-content: space-around;
  19511. }
  19512. .right_box_title {
  19513. font-size: 23px;
  19514. }
  19515. .people {
  19516. display: flex;
  19517. }
  19518. .student_body {
  19519. width: 100%;
  19520. margin: 0 auto;
  19521. margin-top: 10px;
  19522. padding: 0 0 20px;
  19523. }
  19524. .study_top {
  19525. margin-top: 100px;
  19526. width: 100%;
  19527. height: auto;
  19528. padding-bottom: 20px;
  19529. }
  19530. .study_top .checkbox {
  19531. display: flex;
  19532. align-items: center;
  19533. padding: 15px 0 15px 30px;
  19534. flex: 0 0 auto;
  19535. font-weight: bold;
  19536. border-bottom: 1px solid #eee;
  19537. }
  19538. .study_top .check {
  19539. padding-bottom: 5px;
  19540. text-align: center;
  19541. cursor: pointer;
  19542. height: 30px;
  19543. box-sizing: border-box;
  19544. display: flex;
  19545. }
  19546. .study_top .checked {
  19547. border-bottom: 4px solid #3fc6a0;
  19548. padding-bottom: 5px;
  19549. color: #3fc6a0;
  19550. display: flex;
  19551. height: 35px;
  19552. }
  19553. .study_top .checked > div,
  19554. .study_top .check > div {
  19555. margin-right: 5px;
  19556. }
  19557. .videoTop {
  19558. display: flex;
  19559. flex-direction: row;
  19560. justify-content: space-between;
  19561. background: #fff;
  19562. align-items: center;
  19563. width: 95%;
  19564. padding: 20px;
  19565. }
  19566. .filebox {
  19567. display: flex;
  19568. flex-wrap: wrap;
  19569. flex-direction: column;
  19570. padding: 0 0 5px;
  19571. position: relative;
  19572. }
  19573. .filebox:before {
  19574. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19575. position: absolute;
  19576. top: 20px;
  19577. left: 13px;
  19578. border-left: 2px dotted #cad1dc;
  19579. height: calc(100% - 15px);
  19580. }
  19581. .toolHeng2 > div:last-child::before {
  19582. height: calc(100% - 43px);
  19583. }
  19584. .filebox .tooldetail {
  19585. width: calc(100% - 280px);
  19586. margin: 0px 12px;
  19587. padding: 12px;
  19588. line-height: 30px;
  19589. word-break: break-word;
  19590. background: #ffffff;
  19591. border-radius: 8px 8px 8px 8px;
  19592. opacity: 1;
  19593. border: 1px solid #cad1dc;
  19594. overflow:hidden;
  19595. box-sizing:border-box;
  19596. }
  19597. .file {
  19598. display: flex;
  19599. flex-direction: column;
  19600. align-items: center;
  19601. justify-content: center;
  19602. cursor: pointer;
  19603. width: 200px;
  19604. }
  19605. .file div {
  19606. margin-top: 10px;
  19607. width: 150px;
  19608. text-align: center;
  19609. overflow: hidden;
  19610. white-space: nowrap;
  19611. text-overflow: ellipsis;
  19612. }
  19613. .media {
  19614. display: flex;
  19615. flex-direction: column;
  19616. align-items: center;
  19617. justify-content: center;
  19618. margin: 0 20px 20px 0;
  19619. cursor: pointer;
  19620. margin: 12px 0 5px 15px;
  19621. overflow: hidden;
  19622. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19623. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19624. box-sizing: border-box;
  19625. }
  19626. .media img {
  19627. height: 90px;
  19628. width: 160px;
  19629. object-fit: cover;
  19630. }
  19631. .media .title {
  19632. padding: 5px;
  19633. text-align: left;
  19634. width: 100%;
  19635. box-sizing: border-box;
  19636. }
  19637. .media .btn {
  19638. width: 100%;
  19639. height: 35px;
  19640. line-height: 35px;
  19641. color: #fff;
  19642. background: #606060;
  19643. text-align: center;
  19644. overflow: hidden;
  19645. white-space: nowrap;
  19646. text-overflow: ellipsis;
  19647. }
  19648. .detail_content_top {
  19649. width: 100%;
  19650. padding: 25px 0 25px 0;
  19651. }
  19652. .detail_title {
  19653. text-align: center;
  19654. font-size: 24px;
  19655. }
  19656. .detail_time {
  19657. font-size: 13px;
  19658. padding: 15px 0 0 40px;
  19659. }
  19660. .detail_content {
  19661. line-height: 2pc;
  19662. width: 90%;
  19663. margin: 0 auto;
  19664. padding-top: 30px;
  19665. text-indent: 30px;
  19666. overflow: auto;
  19667. height: 200px;
  19668. }
  19669. .score_box >>> .el-rate {
  19670. margin-left: 10px;
  19671. }
  19672. .dialog_change >>> .el-dialog {
  19673. border-radius: 5px;
  19674. }
  19675. .dialog_change >>> .el-dialog__header {
  19676. background: #f2f2f2;
  19677. text-align: center;
  19678. }
  19679. .dialog_change >>> .el-dialog__title {
  19680. line-height: 5px;
  19681. }
  19682. .dialog_change >>> .el-dialog__body {
  19683. background: #fff;
  19684. padding: 10px 20px;
  19685. }
  19686. .score_box {
  19687. display: flex;
  19688. align-items: center;
  19689. margin-bottom: 18px;
  19690. margin-top: 20px;
  19691. }
  19692. .up_photo {
  19693. width: 120px;
  19694. cursor: pointer;
  19695. margin-top: 10px;
  19696. }
  19697. .up_photo2 {
  19698. width: 180px;
  19699. box-sizing: border-box;
  19700. min-width: 180px;
  19701. height: 180px;
  19702. max-height: 180px;
  19703. min-height: 180px;
  19704. cursor: pointer;
  19705. display: flex;
  19706. flex-direction: column;
  19707. align-items: center;
  19708. justify-content: center;
  19709. background: rgb(242, 246, 255);
  19710. /* padding: 25px; */
  19711. margin-bottom: 10px;
  19712. }
  19713. .up_photo2 img {
  19714. width: 50%;
  19715. height: auto;
  19716. }
  19717. .up_photo2 span {
  19718. color: #898989;
  19719. }
  19720. .plworkBox {
  19721. display: flex;
  19722. align-items: center;
  19723. margin-top: 10px;
  19724. flex-wrap: wrap;
  19725. }
  19726. .upload_send {
  19727. margin: 30px auto 30px;
  19728. width: 60%;
  19729. background: #3681fc;
  19730. text-align: center;
  19731. height: 35px;
  19732. line-height: 35px;
  19733. color: #fff;
  19734. border-radius: 5px;
  19735. cursor: pointer;
  19736. }
  19737. .marginT {
  19738. margin-top: 20px;
  19739. }
  19740. .cd_content_steps {
  19741. display: flex;
  19742. width: 90%;
  19743. justify-content: space-around;
  19744. border-top: 1px solid #eeeeee;
  19745. }
  19746. .cd_steps_box {
  19747. display: flex;
  19748. justify-content: center;
  19749. align-items: center;
  19750. flex-direction: column;
  19751. cursor: pointer;
  19752. }
  19753. .first {
  19754. display: flex;
  19755. align-items: center;
  19756. margin: 15px 0 20px 0;
  19757. font-size: 20px;
  19758. }
  19759. .first > div:nth-child(2) {
  19760. font-size: 16px !important;
  19761. padding-left: 10px;
  19762. line-height: 26px;
  19763. box-sizing: border-box;
  19764. }
  19765. .blue_box_one {
  19766. text-align: center;
  19767. color: #fff;
  19768. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19769. border-radius: 7px;
  19770. margin: 10px;
  19771. cursor: pointer;
  19772. width: 95%;
  19773. height: 45px;
  19774. display: flex;
  19775. flex-direction: row;
  19776. justify-content: flex-start;
  19777. align-items: center;
  19778. }
  19779. .blue_box_one > div:nth-child(1) {
  19780. line-height: 30px;
  19781. margin: 0 5px 0 10px;
  19782. width: 30%;
  19783. min-width: 70px;
  19784. border-radius: 4px;
  19785. }
  19786. .blue_box_one > div:nth-child(2) {
  19787. white-space: nowrap;
  19788. text-overflow: ellipsis;
  19789. overflow: hidden;
  19790. word-break: break-all;
  19791. width: 70%;
  19792. text-align: left;
  19793. margin-right: 10px;
  19794. max-width: calc(100% - 85px);
  19795. }
  19796. .blue_box_one > div:nth-child(2):hover {
  19797. overflow: hidden;
  19798. text-overflow: ellipsis;
  19799. white-space: nowrap;
  19800. cursor: pointer;
  19801. }
  19802. .upFile {
  19803. margin: 0 auto;
  19804. width: 120px;
  19805. background: #3681fc;
  19806. color: #fff;
  19807. height: 30px;
  19808. text-align: center;
  19809. line-height: 30px;
  19810. border-radius: 5px;
  19811. font-size: 14px;
  19812. cursor: pointer;
  19813. }
  19814. .courseTitle {
  19815. width: 85%;
  19816. margin: 10px auto 26px auto;
  19817. display: flex;
  19818. flex-direction: row;
  19819. align-items: center;
  19820. justify-content: space-between;
  19821. text-align: center;
  19822. }
  19823. .courseTitle .ctitle {
  19824. font-size: 20px;
  19825. font-weight: bold;
  19826. color: #0e1e33;
  19827. white-space: nowrap;
  19828. overflow: hidden;
  19829. text-overflow: ellipsis;
  19830. }
  19831. .inviteBox {
  19832. font-size: 14px;
  19833. /* margin-top: 5px; */
  19834. color: #00000099;
  19835. text-align: center;
  19836. }
  19837. .courseTitle >>> .el-tooltip {
  19838. width: 100%;
  19839. white-space: nowrap;
  19840. overflow: hidden;
  19841. text-overflow: ellipsis;
  19842. word-break: break-word;
  19843. }
  19844. .ml {
  19845. margin-left: 20px;
  19846. color: #5b7dba;
  19847. border-left: 3px solid #5b7dba;
  19848. padding-left: 5px;
  19849. font-weight: bold;
  19850. }
  19851. .return {
  19852. width: 2rem;
  19853. height: 2rem;
  19854. cursor: pointer;
  19855. }
  19856. .return > img {
  19857. width: 100%;
  19858. height: 100%;
  19859. }
  19860. .returnBtn {
  19861. width: 86px;
  19862. height: 36px;
  19863. background: #3681fc;
  19864. border-radius: 4px;
  19865. color: #fff;
  19866. text-align: center;
  19867. line-height: 36px;
  19868. margin-right: 20px;
  19869. cursor: pointer;
  19870. font-size: 14px;
  19871. font-weight: 400;
  19872. display: flex;
  19873. flex-direction: row;
  19874. flex-wrap: nowrap;
  19875. align-items: center;
  19876. justify-content: center;
  19877. }
  19878. .reBtnIcon,
  19879. .commentIcon,
  19880. .vedioIcon,
  19881. .vedioIcon1 {
  19882. /* width: 36px; */
  19883. height: 36px;
  19884. border-radius: 4px;
  19885. position: relative;
  19886. /* background: #e0eafb; */
  19887. background: #0061ff;
  19888. cursor: pointer;
  19889. margin-right: 12px;
  19890. display: flex;
  19891. align-items: center;
  19892. padding: 0 10px;
  19893. box-sizing: border-box;
  19894. font-size: 14px;
  19895. color: #fff;
  19896. }
  19897. .reBtnIcon::before,
  19898. .commentIcon::before,
  19899. .vedioIcon::before,
  19900. .vedioIcon1::before {
  19901. content: "";
  19902. display: block;
  19903. background-size: 100% 100%;
  19904. background-repeat: no-repeat;
  19905. width: 20px;
  19906. height: 20px;
  19907. margin-right: 5px;
  19908. /* position: absolute; */
  19909. /* top: 8px;
  19910. left: 8px; */
  19911. }
  19912. .vedioIcon1 {
  19913. background: #f63564;
  19914. }
  19915. .reBtnIcon::before {
  19916. background-image: url("../../assets/icon/newIcons/refresh.png");
  19917. }
  19918. .commentIcon::before {
  19919. background-image: url("../../assets/icon/newIcons/comment.png");
  19920. }
  19921. .vedioIcon::before {
  19922. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19923. }
  19924. .vedioIcon1::before {
  19925. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19926. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19927. }
  19928. .tool {
  19929. display: flex;
  19930. flex-direction: column;
  19931. flex-wrap: nowrap;
  19932. width: 13%;
  19933. margin: 0 30px;
  19934. align-items: center;
  19935. position: relative;
  19936. padding: 10px 25px;
  19937. cursor: pointer;
  19938. }
  19939. .whiteBIcon {
  19940. width: 150px;
  19941. }
  19942. .whiteBIcon > img {
  19943. width: 100%;
  19944. height: 100%;
  19945. }
  19946. .mask {
  19947. background-color: rgba(0, 0, 0, 0);
  19948. position: fixed;
  19949. top: 0;
  19950. left: 0;
  19951. width: 100%;
  19952. height: 100%;
  19953. z-index: 20000;
  19954. display: flex;
  19955. align-items: center;
  19956. justify-content: center;
  19957. }
  19958. .progressBox {
  19959. width: 500px;
  19960. height: 180px;
  19961. background: #fff;
  19962. border-radius: 10px;
  19963. box-shadow: 0 0 6px 1px #bfbfbf;
  19964. display: flex;
  19965. align-items: center;
  19966. justify-content: center;
  19967. flex-direction: column;
  19968. position: relative;
  19969. color: #6c6c6c;
  19970. }
  19971. .progressBox >>> .el-progress-bar__outer {
  19972. background-color: #d1dfff !important;
  19973. }
  19974. .progressBox .lbox {
  19975. height: 50px;
  19976. font-size: 19px;
  19977. display: flex;
  19978. align-items: center;
  19979. color: #747474;
  19980. }
  19981. .progressBox .lbox img {
  19982. width: 40px;
  19983. margin-right: 20px;
  19984. }
  19985. .closeCss {
  19986. position: absolute;
  19987. top: 8px;
  19988. right: 8px;
  19989. cursor: pointer;
  19990. width: 20px;
  19991. height: 20px;
  19992. }
  19993. .closeCss > img {
  19994. width: 100%;
  19995. height: 100%;
  19996. }
  19997. .uploadVedio {
  19998. display: flex;
  19999. flex-direction: column;
  20000. flex-wrap: nowrap;
  20001. justify-content: center;
  20002. align-items: center;
  20003. margin: 0 15px 10px 0;
  20004. }
  20005. .uploadVedio > img {
  20006. width: 30px;
  20007. height: 30px;
  20008. }
  20009. .uploadVedio > span {
  20010. white-space: nowrap;
  20011. overflow: hidden;
  20012. text-overflow: ellipsis;
  20013. width: 75px;
  20014. margin-top: 7px;
  20015. }
  20016. .picName {
  20017. white-space: nowrap;
  20018. overflow: hidden;
  20019. text-overflow: ellipsis;
  20020. width: 75px;
  20021. margin-top: 7px;
  20022. }
  20023. .new_top {
  20024. display: flex;
  20025. background: #fff;
  20026. flex-direction: row;
  20027. justify-content: flex-start;
  20028. align-items: center;
  20029. height: 60px;
  20030. position: fixed;
  20031. top: 20px;
  20032. left: 22%;
  20033. width: 77%;
  20034. z-index: 999;
  20035. border-radius: 12px 12px 0 0;
  20036. border-bottom: 1px solid #cad1dc;
  20037. padding: 10px 0;
  20038. }
  20039. .new_topFixed {
  20040. width: 100%;
  20041. height: 40px;
  20042. position: fixed;
  20043. top: 0px;
  20044. display: block;
  20045. background: #f2f2f2;
  20046. z-index: 998;
  20047. }
  20048. .before {
  20049. position: absolute;
  20050. background: #c3dad4;
  20051. width: 6px;
  20052. height: 100%;
  20053. }
  20054. .courseIndex {
  20055. display: flex;
  20056. flex-direction: row;
  20057. align-items: center;
  20058. width: calc(100% - 745px);
  20059. }
  20060. .courseIndex > div:nth-child(1) {
  20061. margin: 0 0 0 10px;
  20062. font-size: 20px;
  20063. min-width: 100px;
  20064. font-weight: bold;
  20065. border-left: 4px solid #3363b9;
  20066. height: 32px;
  20067. text-align: center;
  20068. line-height: 35px;
  20069. }
  20070. .courseIndex > div:nth-child(2) {
  20071. font-size: 20px;
  20072. /* width: 300px; */
  20073. max-width: calc(100% - 105px);
  20074. white-space: nowrap;
  20075. overflow: hidden;
  20076. text-overflow: ellipsis;
  20077. }
  20078. .courseIndex > div:nth-child(3) {
  20079. border-bottom: 1px solid #d7d7d7;
  20080. padding-bottom: 5px;
  20081. background: #3681fc;
  20082. width: 55px;
  20083. min-width: 55px;
  20084. border-radius: 5px;
  20085. color: #fff;
  20086. text-align: center;
  20087. height: 20px;
  20088. line-height: 26px;
  20089. font-size: 14px;
  20090. margin: 0 0 0 10px;
  20091. }
  20092. .course_text {
  20093. padding: 20px 0 0 15px;
  20094. text-indent: 30px;
  20095. width: 80%;
  20096. min-height: 20px;
  20097. }
  20098. .vedioList {
  20099. background: #f2f2f2;
  20100. border: 1px solid #ececec;
  20101. /* width: 38.8%; */
  20102. /* width: 300px; */
  20103. width: 100%;
  20104. height: 445px;
  20105. border-radius: 10px;
  20106. overflow: hidden;
  20107. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20108. }
  20109. .vedioNav {
  20110. margin: 10px 0 0 15px;
  20111. border-bottom: 1px solid #d7d7d7;
  20112. padding-bottom: 5px;
  20113. background: #3681fc;
  20114. width: 55px;
  20115. min-width: 55px;
  20116. border-radius: 5px;
  20117. color: #fff;
  20118. text-align: center;
  20119. height: 20px;
  20120. line-height: 26px;
  20121. font-size: 14px;
  20122. }
  20123. .queTop {
  20124. display: flex;
  20125. padding: 20px 0 20px 30px;
  20126. width: 100%;
  20127. flex-direction: row;
  20128. justify-content: flex-start;
  20129. align-items: center;
  20130. box-sizing: border-box;
  20131. }
  20132. .queTopTitle {
  20133. display: flex;
  20134. flex-direction: row;
  20135. flex-wrap: nowrap;
  20136. align-items: center;
  20137. font-weight: bold;
  20138. font-size: 20px;
  20139. color: rgb(14, 30, 51);
  20140. }
  20141. .queTopTitle::before {
  20142. content: "";
  20143. width: 2px;
  20144. height: 22px;
  20145. background: #3681fc;
  20146. border-radius: 3px;
  20147. display: block;
  20148. margin: 2px 6px 0 0;
  20149. }
  20150. .queTopRight {
  20151. display: flex;
  20152. flex-direction: row;
  20153. flex-wrap: nowrap;
  20154. align-items: center;
  20155. }
  20156. .queTopClose {
  20157. margin-right: 20px;
  20158. cursor: pointer;
  20159. position: relative;
  20160. display: flex;
  20161. }
  20162. .closeImg,
  20163. .openImg {
  20164. width: 25px;
  20165. height: 25px;
  20166. position: absolute;
  20167. left: -20px;
  20168. top: -1px;
  20169. }
  20170. .closeImg > img,
  20171. .openImg > img {
  20172. width: 100%;
  20173. height: 100%;
  20174. }
  20175. .question {
  20176. width: 40px;
  20177. margin-right: 10px;
  20178. margin-top: 7px;
  20179. }
  20180. .queTitle {
  20181. margin-left: 5px;
  20182. font-size: 25px;
  20183. display: flex;
  20184. align-items: center;
  20185. }
  20186. .addEditor {
  20187. width: 100px;
  20188. height: 30px;
  20189. background: #42cda6;
  20190. color: #fff;
  20191. border-radius: 5px;
  20192. text-align: center;
  20193. line-height: 30px;
  20194. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20195. cursor: pointer;
  20196. }
  20197. /* .vedioName {
  20198. cursor: pointer;
  20199. margin: 0px 0px 10px 5px;
  20200. white-space: nowrap;
  20201. overflow: hidden;
  20202. text-overflow: ellipsis;
  20203. width: 100%;
  20204. } */
  20205. .vedioTime {
  20206. width: 35px;
  20207. position: absolute;
  20208. color: #fff;
  20209. bottom: 0px;
  20210. right: 0px;
  20211. text-align: center;
  20212. background: #46411f;
  20213. height: 20px;
  20214. font-size: 14px;
  20215. line-height: 20px;
  20216. }
  20217. .homework {
  20218. width: 200px;
  20219. display: flex;
  20220. flex-direction: column;
  20221. flex-wrap: nowrap;
  20222. align-items: center;
  20223. cursor: pointer;
  20224. }
  20225. .homebox {
  20226. display: flex;
  20227. flex-wrap: wrap;
  20228. flex-direction: row;
  20229. justify-content: flex-start;
  20230. align-items: center;
  20231. padding: 15px 0;
  20232. }
  20233. .isChooseActive {
  20234. color: #3681fc !important;
  20235. font-weight: bold !important;
  20236. }
  20237. .chooseWho {
  20238. display: flex;
  20239. width: 100%;
  20240. flex-direction: row;
  20241. flex-wrap: nowrap;
  20242. justify-content: flex-start;
  20243. padding-bottom: 10px;
  20244. }
  20245. .chooseWho > div {
  20246. cursor: pointer;
  20247. padding-bottom: 10px;
  20248. margin: 0 30px 0 0;
  20249. font-weight: 400;
  20250. color: #0e1e33;
  20251. }
  20252. .addPoint > div > img {
  20253. cursor: pointer;
  20254. width: 85px;
  20255. border-radius: 15px;
  20256. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20257. }
  20258. .addPoint > div {
  20259. display: flex;
  20260. flex-direction: column;
  20261. flex-wrap: nowrap;
  20262. align-items: center;
  20263. }
  20264. .isBorder > div {
  20265. margin: 0 0 10px 0;
  20266. align-items: flex-start !important;
  20267. }
  20268. .noiframeBox {
  20269. display: flex;
  20270. flex-wrap: wrap;
  20271. }
  20272. .iframeBox iframe {
  20273. width: 100%;
  20274. height: 800px;
  20275. border: none;
  20276. margin-bottom: 20px;
  20277. border: 1px solid #ccc;
  20278. }
  20279. .upload_toolBtn {
  20280. background: #3681fc;
  20281. color: #fff;
  20282. width: 110px;
  20283. text-align: center;
  20284. height: 35px;
  20285. line-height: 35px;
  20286. font-size: 14px;
  20287. border-radius: 5px;
  20288. cursor: pointer;
  20289. position: absolute;
  20290. right: 10px;
  20291. bottom: 0;
  20292. }
  20293. .binfo_input,
  20294. .pj {
  20295. font: inherit;
  20296. color: currentColor;
  20297. width: 100%;
  20298. margin: 0;
  20299. padding: 15px 14px;
  20300. display: block;
  20301. min-width: 0;
  20302. outline: none;
  20303. box-sizing: content-box;
  20304. background: none;
  20305. -webkit-tap-highlight-color: transparent;
  20306. border: 1px solid rgba(0, 0, 0, 0.23);
  20307. border-radius: 4px;
  20308. box-sizing: border-box;
  20309. resize: none;
  20310. }
  20311. .binfo_input:focus-visible {
  20312. border: 1px solid rgba(61, 103, 188);
  20313. }
  20314. .dialog_diy >>> .el-dialog__header,
  20315. .dialog_diy1 >>> .el-dialog__header {
  20316. background: #454545 !important;
  20317. padding: 15px 20px;
  20318. }
  20319. .dialog_diy >>> .el-dialog__title,
  20320. .dialog_diy1 >>> .el-dialog__title {
  20321. color: #fff;
  20322. }
  20323. .dialog_diy >>> .el-dialog__headerbtn,
  20324. .dialog_diy1 >>> .el-dialog__headerbtn {
  20325. top: 19px;
  20326. }
  20327. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20328. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20329. color: #fff;
  20330. }
  20331. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20332. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20333. color: #fff;
  20334. }
  20335. .dialog_diy1 >>> .el-dialog__body {
  20336. padding: 0;
  20337. }
  20338. .dialog_diy >>> .el-dialog__body,
  20339. .dialog_diy >>> .el-dialog__footer,
  20340. .dialog_diy1 >>> .el-dialog__footer {
  20341. background: #fafafa;
  20342. }
  20343. .a_addBox {
  20344. padding: 0 0 0 15px;
  20345. }
  20346. .a_add_box {
  20347. padding: 10px;
  20348. background: #fff;
  20349. margin-bottom: 10px;
  20350. border-radius: 5px;
  20351. box-shadow: 0 0 5px 0 #d5d5d5;
  20352. }
  20353. .a_add_head {
  20354. display: flex;
  20355. align-items: flex-start;
  20356. /* justify-content: space-between; */
  20357. flex-direction: column;
  20358. /* flex-direction: row; */
  20359. margin: 10px 0 20px 0;
  20360. font-size: 18px;
  20361. width: 100%;
  20362. }
  20363. .askIndex {
  20364. background: #3681fc;
  20365. border-radius: 50%;
  20366. color: #fff;
  20367. width: 25px;
  20368. height: 25px;
  20369. min-width: 25px;
  20370. min-height: 25px;
  20371. text-align: center;
  20372. line-height: 25px;
  20373. margin-right: 5px;
  20374. }
  20375. .a_add_head .a_add_head_input {
  20376. width: 300px;
  20377. }
  20378. .a_add_head .a_add_head_div {
  20379. display: flex;
  20380. align-items: center;
  20381. justify-content: space-between;
  20382. }
  20383. .a_add_body {
  20384. display: flex;
  20385. align-items: center;
  20386. }
  20387. .a_add_input {
  20388. display: flex;
  20389. align-items: center;
  20390. flex-wrap: wrap;
  20391. width: 100%;
  20392. }
  20393. .a_add_input >>> .el-radio-group,
  20394. .a_add_input >>> .el-checkbox-group {
  20395. width: 100%;
  20396. }
  20397. .a_add_input >>> .el-radio,
  20398. .a_add_input >>> .el-checkbox {
  20399. display: flex;
  20400. flex-direction: row;
  20401. flex-wrap: nowrap;
  20402. align-items: center;
  20403. padding: 15px 0;
  20404. }
  20405. .a_add_input >>> .el-radio:not(:last-child),
  20406. .a_add_input >>> .el-checkbox:not(:last-child) {
  20407. width: 100%;
  20408. border-bottom: 1px solid #efefef;
  20409. }
  20410. .redioStyle >>> .el-radio__label {
  20411. font-size: 18px;
  20412. }
  20413. .redioStyle >>> .el-radio__label > span,
  20414. .redioStyle >>> .el-checkbox__label > span {
  20415. word-break: break-all;
  20416. white-space: normal;
  20417. }
  20418. .redioStyle >>> .el-checkbox__label {
  20419. font-size: 18px;
  20420. }
  20421. .toolHeng2 {
  20422. width: 100%;
  20423. padding-left: 37px;
  20424. box-sizing: border-box;
  20425. }
  20426. .workNav {
  20427. font-size: 20px;
  20428. font-weight: bold;
  20429. color: #0e1e33;
  20430. display: flex;
  20431. flex-direction: row;
  20432. flex-wrap: nowrap;
  20433. align-items: center;
  20434. padding: 15px 0 15px 0;
  20435. }
  20436. .workNav::before {
  20437. content: "";
  20438. width: 2px;
  20439. height: 22px;
  20440. background: #3681fc;
  20441. border-radius: 3px;
  20442. display: block;
  20443. margin: 2px 6px 0 0;
  20444. }
  20445. .toolHeng {
  20446. display: flex;
  20447. flex-direction: row;
  20448. flex-wrap: wrap;
  20449. justify-content: flex-start;
  20450. align-items: center;
  20451. width: 100%;
  20452. }
  20453. .toolHeng > div {
  20454. padding-left: 20px;
  20455. }
  20456. .isWidth {
  20457. width: 20%;
  20458. }
  20459. .textTitle {
  20460. display: flex;
  20461. flex-direction: row;
  20462. flex-wrap: nowrap;
  20463. align-items: center;
  20464. width: 95%;
  20465. }
  20466. .textTitle >>> .el-form-item__label {
  20467. font-size: 22px;
  20468. color: #918f8f;
  20469. width: 100px;
  20470. }
  20471. .textTitle >>> .el-form-item__content {
  20472. width: calc(100% - 100px);
  20473. }
  20474. .textCss >>> .el-dialog {
  20475. width: 800px !important;
  20476. height: 400px;
  20477. background: #fafafa;
  20478. }
  20479. .textCss >>> .el-dialog__body {
  20480. margin: 55px 8% 0 8%;
  20481. padding: 0 !important;
  20482. }
  20483. .textCss >>> .el-dialog__footer {
  20484. padding-top: 38px;
  20485. }
  20486. .toolsCss >>> .el-dialog__body {
  20487. padding: 20px;
  20488. }
  20489. .lineCss >>> .el-dialog__body {
  20490. display: flex;
  20491. flex-direction: row;
  20492. align-items: center;
  20493. justify-content: center;
  20494. }
  20495. .newNav {
  20496. display: flex;
  20497. flex-direction: row;
  20498. align-items: baseline;
  20499. justify-content: flex-start;
  20500. }
  20501. .navListItem {
  20502. width: calc(100% - 20px);
  20503. height: 50px;
  20504. margin: 0px auto 10px;
  20505. display: flex;
  20506. flex-direction: row;
  20507. flex-wrap: nowrap;
  20508. align-items: center;
  20509. justify-content: space-between;
  20510. background: #f0f4fa;
  20511. border-radius: 6px 6px 6px 6px;
  20512. }
  20513. .navText {
  20514. cursor: pointer;
  20515. white-space: nowrap;
  20516. overflow: hidden;
  20517. text-overflow: ellipsis;
  20518. width: 220px;
  20519. padding: 0 10px;
  20520. font-weight: 400;
  20521. color: #0e1e33;
  20522. }
  20523. .downIcon {
  20524. width: 20px;
  20525. min-width: 20px;
  20526. height: 20px;
  20527. margin-right: 15px;
  20528. cursor: pointer;
  20529. }
  20530. .downIcon > img {
  20531. width: 100%;
  20532. height: 100%;
  20533. }
  20534. .noVedio {
  20535. display: flex;
  20536. flex-direction: row;
  20537. justify-content: center;
  20538. align-content: center;
  20539. }
  20540. .noNavText {
  20541. cursor: pointer;
  20542. margin: 0px 0px 10px 5px;
  20543. width: 112px;
  20544. }
  20545. .listNoVedio {
  20546. margin: 0 0 0 30px;
  20547. width: 97%;
  20548. }
  20549. .video-player >>> .video-js {
  20550. height: 100%;
  20551. }
  20552. .hangVedioList {
  20553. width: 90% !important;
  20554. height: 150px !important;
  20555. margin: 20px 0 0 30px;
  20556. }
  20557. .hangVedio {
  20558. width: 100%;
  20559. height: 170px !important;
  20560. align-items: flex-start !important;
  20561. }
  20562. .hangHand {
  20563. height: 150px !important;
  20564. }
  20565. .twoChild {
  20566. width: 95%;
  20567. margin: 10px;
  20568. border-radius: 5px;
  20569. background: #f2f2f2;
  20570. display: flex;
  20571. flex-direction: column;
  20572. flex-wrap: nowrap;
  20573. justify-content: flex-start;
  20574. align-items: flex-start;
  20575. transition: all 0.5s;
  20576. overflow: hidden;
  20577. height: 0;
  20578. background: #e7f3ff;
  20579. }
  20580. .twoChild > div:nth-child(1) {
  20581. margin-top: 5px;
  20582. }
  20583. .navChild {
  20584. width: 100%;
  20585. cursor: pointer;
  20586. margin-bottom: 10px;
  20587. position: relative;
  20588. }
  20589. .navChild img {
  20590. position: absolute;
  20591. right: 11px;
  20592. width: 15px;
  20593. top: 50%;
  20594. transform: translateY(-50%);
  20595. }
  20596. .navActive,
  20597. .toolActive {
  20598. height: auto !important;
  20599. overflow: auto !important;
  20600. /* padding-bottom: 16px; */
  20601. }
  20602. .toolActive {
  20603. padding: 0;
  20604. }
  20605. .navTask {
  20606. display: flex;
  20607. flex-direction: row;
  20608. flex-wrap: nowrap;
  20609. align-items: center;
  20610. align-content: flex-start;
  20611. height: 40px;
  20612. justify-content: flex-start;
  20613. padding: 0 10px;
  20614. width: 100%;
  20615. box-sizing: border-box;
  20616. }
  20617. .navTaskname {
  20618. white-space: nowrap;
  20619. text-overflow: ellipsis;
  20620. overflow: hidden;
  20621. word-break: break-all;
  20622. padding-left: 5px;
  20623. }
  20624. .openTaskActive {
  20625. /* background-color: #e0eafb !important;
  20626. color: #0061ff; */
  20627. color:#fff;
  20628. background: rgb(55, 129, 252) !important;
  20629. }
  20630. .iframeName {
  20631. margin: 5px 0;
  20632. border-left: 4px solid #41c4a4;
  20633. padding-left: 4px;
  20634. }
  20635. .toolTitle {
  20636. margin: 0px 0px 20px;
  20637. font-size: 20px;
  20638. font-weight: 500;
  20639. border-left: 4px solid #41c4a4;
  20640. padding-left: 4px;
  20641. }
  20642. .cru_selectBox {
  20643. overflow: auto;
  20644. width: 95%;
  20645. margin: 17px auto 0;
  20646. height: calc(100% - 40px - 21px - 20px - 17px);
  20647. background: #fff;
  20648. border-radius: 8px;
  20649. }
  20650. .cru_selectBox::-webkit-scrollbar,
  20651. .study_top::-webkit-scrollbar,
  20652. .textContent::-webkit-scrollbar {
  20653. /*滚动条整体样式*/
  20654. width: 6px;
  20655. /*高宽分别对应横竖滚动条的尺寸*/
  20656. height: 6px;
  20657. }
  20658. /*定义滚动条轨道 内阴影+圆角*/
  20659. .cru_selectBox::-webkit-scrollbar-track,
  20660. .study_top::-webkit-scrollbar-track,
  20661. .textContent::-webkit-scrollbar {
  20662. border-radius: 10px;
  20663. background-color: #b8bdc9;
  20664. }
  20665. /*定义滑块 内阴影+圆角*/
  20666. .cru_selectBox::-webkit-scrollbar-thumb,
  20667. .study_top::-webkit-scrollbar-thumb,
  20668. .textContent::-webkit-scrollbar-thumb {
  20669. border-radius: 10px;
  20670. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20671. background-color: #2c5ab3;
  20672. }
  20673. .vedioBox {
  20674. border-radius: 0 0 20px 20px;
  20675. background: #fff;
  20676. overflow: auto;
  20677. }
  20678. .taskBox {
  20679. width: 98%;
  20680. background: #f0f4fa;
  20681. margin: 10px auto;
  20682. padding: 0 10px;
  20683. border-radius: 4px;
  20684. box-sizing: border-box;
  20685. }
  20686. .vedioTaskBox {
  20687. width: 100%;
  20688. display: flex;
  20689. flex-direction: row;
  20690. flex-wrap: nowrap;
  20691. align-items: flex-start;
  20692. position: relative;
  20693. }
  20694. .toolBox {
  20695. margin: 15px 0 0 25px;
  20696. display: flex;
  20697. position: relative;
  20698. padding: 18px 20px;
  20699. border-top-left-radius: 5px;
  20700. border-top-right-radius: 5px;
  20701. width: 90%;
  20702. }
  20703. .btnAll {
  20704. position: absolute;
  20705. right: 0;
  20706. display: flex;
  20707. flex-direction: row;
  20708. flex-wrap: nowrap;
  20709. align-items: center;
  20710. }
  20711. .btnLeft,
  20712. .btnRight {
  20713. display: flex;
  20714. flex-direction: row;
  20715. flex-wrap: nowrap;
  20716. align-items: center;
  20717. padding: 5px 0;
  20718. }
  20719. .btnLeft {
  20720. border-right: 1px solid #cad1dc;
  20721. }
  20722. .btnLeft > .custom-tooltip {
  20723. background: #3681fc;
  20724. color: #fff;
  20725. }
  20726. .last:hover {
  20727. background: #3383fa !important;
  20728. color: #fff;
  20729. border: 1px solid #3383fa !important;
  20730. }
  20731. .last,
  20732. .returnBtn1 {
  20733. width: 90px;
  20734. height: 36px;
  20735. background: #ffffff;
  20736. border-radius: 4px;
  20737. border: 1px solid #0061ff;
  20738. color: #0061ff;
  20739. cursor: pointer;
  20740. display: flex;
  20741. flex-direction: row;
  20742. flex-wrap: nowrap;
  20743. align-items: center;
  20744. justify-content: center;
  20745. margin-left: 12px;
  20746. }
  20747. .returnBtn1 {
  20748. background: #f0f4fa;
  20749. border-radius: 4px;
  20750. border: 1px solid #cad1dc;
  20751. margin: 0 12px;
  20752. }
  20753. .lastImg {
  20754. min-width: 15px;
  20755. width: 15px;
  20756. height: 15px;
  20757. display: flex;
  20758. }
  20759. .lastText {
  20760. padding: 0 5px 0 5px;
  20761. box-sizing: border-box;
  20762. font-size: 14px;
  20763. }
  20764. .lastImg > img {
  20765. width: 100%;
  20766. height: 100%;
  20767. }
  20768. /* .vedioTimeBox {
  20769. display: flex;
  20770. flex-direction: row;
  20771. align-items: center;
  20772. flex-wrap: nowrap;
  20773. position: relative;
  20774. } */
  20775. .navBox {
  20776. background: #fff;
  20777. height: calc(100% - 40px);
  20778. overflow-y: auto;
  20779. overflow-x: hidden;
  20780. }
  20781. .worksBox {
  20782. margin: 0 0 10px 25px;
  20783. border-bottom: 1px solid #eeeeee;
  20784. padding: 18px 20px;
  20785. border-radius: 4px;
  20786. width: 90%;
  20787. }
  20788. .worksBTitle {
  20789. font-size: 20px;
  20790. padding-bottom: 15px;
  20791. border-bottom: 1px solid #eeeeee;
  20792. display: flex;
  20793. align-items: center;
  20794. }
  20795. .greenBox {
  20796. width: 5px;
  20797. height: 30px;
  20798. background: #63b6fa;
  20799. margin-right: 5px;
  20800. }
  20801. .worksDetailBox {
  20802. display: flex;
  20803. width: 100%;
  20804. flex-direction: row;
  20805. flex-wrap: wrap;
  20806. align-items: flex-end;
  20807. justify-content: flex-start;
  20808. padding: 15px 5px;
  20809. box-sizing: border-box;
  20810. }
  20811. .works {
  20812. display: flex;
  20813. flex-direction: column;
  20814. flex-wrap: nowrap;
  20815. align-items: flex-start;
  20816. justify-content: flex-start;
  20817. align-content: center;
  20818. max-width: 240px;
  20819. width: calc(100% / 3 - 10px);
  20820. height: auto;
  20821. margin-right: 10px;
  20822. margin-bottom: 10px;
  20823. overflow: hidden;
  20824. height: 140px;
  20825. box-shadow: 0 0 6px 1px #dfdada;
  20826. border-radius: 15px;
  20827. }
  20828. .workImg {
  20829. width: 100%;
  20830. /* height: calc(100% - 40px); */
  20831. height: 105px;
  20832. position: relative;
  20833. }
  20834. .workImg > img {
  20835. width: 100%;
  20836. height: 100%;
  20837. object-fit: contain;
  20838. cursor: pointer;
  20839. }
  20840. .worksName {
  20841. height: 40px;
  20842. line-height: 40px;
  20843. display: flex;
  20844. width: 100%;
  20845. flex-direction: row;
  20846. flex-wrap: nowrap;
  20847. justify-content: space-between;
  20848. align-items: center;
  20849. margin: 0 0 0 10px;
  20850. }
  20851. .worksName > div:nth-child(1) {
  20852. width: 110px;
  20853. white-space: nowrap;
  20854. overflow: hidden;
  20855. text-overflow: ellipsis;
  20856. }
  20857. .worksName > div:nth-child(2) {
  20858. color: #b7b4b5;
  20859. }
  20860. .noWorksS {
  20861. padding: 15px 0;
  20862. display: flex;
  20863. flex-direction: row;
  20864. flex-wrap: wrap;
  20865. align-items: center;
  20866. justify-content: flex-start;
  20867. }
  20868. .noWorksName,
  20869. .isWorksName,
  20870. .isWorksName2 {
  20871. background: #ddebf8;
  20872. color: #000;
  20873. width: 90px;
  20874. height: 25px;
  20875. text-align: center;
  20876. line-height: 25px;
  20877. border-radius: 4px;
  20878. margin: 10px 15px 10px 0;
  20879. white-space: nowrap;
  20880. overflow: hidden;
  20881. padding: 5px;
  20882. text-overflow: ellipsis;
  20883. cursor: pointer;
  20884. border: 1px solid #ddebf8;
  20885. }
  20886. .noWorksName {
  20887. background: #fff;
  20888. color: #0061ff;
  20889. border: 1px solid #0061ff;
  20890. }
  20891. .isWorksName2 {
  20892. width: 100px;
  20893. height: 40px;
  20894. line-height: 40px;
  20895. position: relative;
  20896. background: #dae6f9;
  20897. }
  20898. .isWorksName {
  20899. background: #e7ebf1 !important;
  20900. width: 100px;
  20901. height: 40px;
  20902. line-height: 40px;
  20903. position: relative;
  20904. color: #acb4bf;
  20905. border: 1px solid #cad1dc !important;
  20906. }
  20907. .isSelectName,
  20908. .noWorksName:hover {
  20909. background: #3383fa !important;
  20910. color: #fff !important;
  20911. border: 1px solid #3383fa !important;
  20912. }
  20913. .title {
  20914. background: #1e5cc9;
  20915. /* width: 98%; */
  20916. height: 45px;
  20917. color: #fff;
  20918. line-height: 45px;
  20919. padding-left: 20px;
  20920. box-sizing: border-box;
  20921. }
  20922. .textBox {
  20923. font-size: 20px;
  20924. width: 90%;
  20925. display: flex;
  20926. flex-direction: column;
  20927. align-items: center;
  20928. margin: 20px auto 0;
  20929. max-height: calc(100% - 75px);
  20930. overflow: auto;
  20931. }
  20932. .textContent {
  20933. font-size: 18px;
  20934. width: 95%;
  20935. max-width: 95%;
  20936. }
  20937. .answerBg {
  20938. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20939. background-size: 100% 100%;
  20940. width: 100%;
  20941. height: 100%;
  20942. color: #fff;
  20943. text-align: center;
  20944. display: flex;
  20945. flex-direction: column;
  20946. flex-wrap: nowrap;
  20947. align-items: center;
  20948. position: relative;
  20949. justify-content: center;
  20950. }
  20951. .answerBg > div:nth-child(1) {
  20952. /* font-size: 22px;
  20953. padding: 25px 0 10px; */
  20954. }
  20955. .answerContent {
  20956. width: 215px;
  20957. max-height: 60px;
  20958. word-break: break-all;
  20959. text-align: center;
  20960. /* white-space: nowrap; */
  20961. overflow: hidden;
  20962. text-overflow: ellipsis;
  20963. /* padding: 23px 0 0; */
  20964. -webkit-line-clamp: 3;
  20965. -webkit-box-orient: vertical;
  20966. display: -webkit-box;
  20967. font-size: 15px;
  20968. cursor: pointer;
  20969. }
  20970. .elist_input_box {
  20971. display: flex;
  20972. align-items: flex-start;
  20973. flex-wrap: nowrap;
  20974. padding: 10px 0 15px 30px;
  20975. flex-direction: column;
  20976. }
  20977. .elist_input {
  20978. /* width: 40%; */
  20979. width: 45%;
  20980. margin: 20px;
  20981. }
  20982. .elist_input .elist_input_box input {
  20983. font: inherit;
  20984. color: currentColor;
  20985. width: 200px;
  20986. padding: 8px 14px;
  20987. display: block;
  20988. min-width: 0;
  20989. outline: none;
  20990. border: 1px solid rgba(0, 0, 0, 0.23);
  20991. border-radius: 4px;
  20992. box-sizing: border-box;
  20993. background: #fff;
  20994. margin: 0 20px 0 0;
  20995. }
  20996. .elist_input .elist_input_box span {
  20997. height: 36px;
  20998. line-height: 36px;
  20999. color: rgb(82, 82, 82);
  21000. }
  21001. .elist_input .elist_input_box .remove {
  21002. height: 20px;
  21003. width: 20px;
  21004. background-size: 100% 100%;
  21005. background-position: unset;
  21006. margin-left: 5px;
  21007. }
  21008. .elist_input_box >>> .el-rate {
  21009. display: flex;
  21010. height: 36px;
  21011. align-items: center;
  21012. }
  21013. .elist_input_box .elist_inptu_text {
  21014. min-height: 50px;
  21015. /* width: 500px;
  21016. max-height: 150px; */
  21017. width: 100%;
  21018. line-height: 50px;
  21019. color: rgb(82, 82, 82);
  21020. overflow: auto;
  21021. text-indent: 5px;
  21022. background: #f7f6f9;
  21023. border-radius: 10px;
  21024. }
  21025. .elist_input_box .elist_inptu_text input {
  21026. width: 500px;
  21027. }
  21028. .elist_input_box >>> .el-rate__icon {
  21029. font-size: 24px;
  21030. }
  21031. .isClick {
  21032. background: #4d9def;
  21033. }
  21034. .bzBox {
  21035. display: flex;
  21036. flex-direction: row;
  21037. align-items: center;
  21038. }
  21039. .bzBox .yCss {
  21040. width: 7px;
  21041. height: 7px;
  21042. background: #fff;
  21043. margin: 0 16px 0 6px;
  21044. border-radius: 50%;
  21045. border: 5px solid #3681fc;
  21046. z-index: 99;
  21047. }
  21048. .bzBox > div:nth-child(2) {
  21049. font-size: 18px;
  21050. font-weight: bold;
  21051. color: #0e1e33;
  21052. }
  21053. .navTitile {
  21054. padding: 0 0px 0 15px;
  21055. font-size: 16px;
  21056. font-weight: bold;
  21057. color: #0e1e33;
  21058. height: 40px;
  21059. line-height: 40px;
  21060. }
  21061. .isTypeOne {
  21062. width: 240px;
  21063. height: 170px;
  21064. /* border: 1px solid #f8f8f8; */
  21065. border-radius: 10px;
  21066. box-shadow: 0 0 6px 1px #dfdada;
  21067. }
  21068. .e_add_top {
  21069. display: flex;
  21070. justify-content: space-between;
  21071. padding: 10px 20px;
  21072. border-radius: 3px;
  21073. background: #fff;
  21074. }
  21075. .e_add_title2 {
  21076. display: flex;
  21077. align-items: center;
  21078. }
  21079. .e_add_title2 span {
  21080. width: 40px;
  21081. }
  21082. .e_add_title {
  21083. display: flex;
  21084. align-items: center;
  21085. color: #b8b8b8;
  21086. font-size: 18px;
  21087. position: relative;
  21088. height: 40px;
  21089. width: 100%;
  21090. }
  21091. .e_add_title span {
  21092. margin-right: 10px;
  21093. }
  21094. .e_add_title .el_input {
  21095. width: 300px;
  21096. }
  21097. .e_add_title >>> .el-input__inner {
  21098. width: 400px;
  21099. }
  21100. .e_add_btn {
  21101. }
  21102. .e_add_content {
  21103. display: flex;
  21104. width: 100%;
  21105. max-width: 650px;
  21106. height: 550px;
  21107. }
  21108. .e_add_list {
  21109. background: #fff;
  21110. height: 500px;
  21111. width: 210px;
  21112. position: relative;
  21113. margin: 15px 5px 0 0;
  21114. flex-shrink: 0;
  21115. display: flex;
  21116. flex-direction: column;
  21117. }
  21118. .e_add_list_title {
  21119. font-size: 20px;
  21120. width: 100%;
  21121. box-sizing: border-box;
  21122. padding: 15px 40px;
  21123. text-align: center;
  21124. border-bottom: 1px solid #eaeaea;
  21125. position: relative;
  21126. display: flex;
  21127. align-items: center;
  21128. justify-content: center;
  21129. height: 57px;
  21130. background: #f6f6f6;
  21131. }
  21132. .e_add_list_title span {
  21133. overflow: hidden;
  21134. white-space: nowrap;
  21135. text-overflow: ellipsis;
  21136. }
  21137. .e_add_list_title img {
  21138. position: absolute;
  21139. right: 15px;
  21140. width: 25px;
  21141. cursor: pointer;
  21142. top: 50%;
  21143. transform: translateY(-50%);
  21144. }
  21145. .e_add_list_body {
  21146. height: calc(100% - 187px);
  21147. overflow: auto;
  21148. }
  21149. .e_add_list_child {
  21150. width: 100%;
  21151. display: flex;
  21152. align-items: center;
  21153. justify-content: center;
  21154. position: relative;
  21155. box-sizing: border-box;
  21156. padding: 15px 40px;
  21157. text-align: center;
  21158. }
  21159. .e_add_list_child span {
  21160. overflow: hidden;
  21161. white-space: nowrap;
  21162. text-overflow: ellipsis;
  21163. cursor: pointer;
  21164. }
  21165. .e_add_list_child img {
  21166. position: absolute;
  21167. right: 10px;
  21168. width: 21px;
  21169. cursor: pointer;
  21170. top: 50%;
  21171. transform: translateY(-50%);
  21172. }
  21173. .e_add_list_child + .e_add_list_child {
  21174. border-top: 1px solid #eaeaea;
  21175. }
  21176. .e_add_list_child .active {
  21177. color: #409eff;
  21178. }
  21179. .e_add_list_btn {
  21180. position: absolute;
  21181. bottom: 0;
  21182. height: 50px;
  21183. background: rgb(120, 120, 254);
  21184. width: 100%;
  21185. color: #fff;
  21186. font-size: 16px;
  21187. text-align: center;
  21188. line-height: 50px;
  21189. cursor: pointer;
  21190. }
  21191. .e_add_list_detail {
  21192. position: absolute;
  21193. bottom: 0;
  21194. height: 130px;
  21195. background: rgb(120, 120, 254);
  21196. width: 100%;
  21197. color: #fff;
  21198. font-size: 16px;
  21199. display: flex;
  21200. align-items: center;
  21201. justify-content: center;
  21202. }
  21203. .e_add_list_detail textarea {
  21204. height: 90%;
  21205. width: 95%;
  21206. border: none;
  21207. resize: none;
  21208. outline: none;
  21209. padding: 5px;
  21210. box-sizing: border-box;
  21211. }
  21212. .e_add_list_pbox {
  21213. width: 100%;
  21214. max-width: 650px;
  21215. /* height: 600px; */
  21216. }
  21217. .e_add_list_pbox_title {
  21218. height: 50px;
  21219. background: #fff;
  21220. display: flex;
  21221. align-items: center;
  21222. width: 100%;
  21223. box-sizing: border-box;
  21224. padding: 0 20px;
  21225. }
  21226. .type_title {
  21227. font-size: 18px;
  21228. font-weight: 700;
  21229. }
  21230. .type_content {
  21231. font-size: 16px;
  21232. /* margin-left: 30px; */
  21233. }
  21234. .type_content span + span {
  21235. margin-left: 20px;
  21236. }
  21237. .type_content span {
  21238. cursor: pointer;
  21239. padding-bottom: 5px;
  21240. box-sizing: border-box;
  21241. }
  21242. .type_content .active {
  21243. color: #409eff;
  21244. border-bottom: 2px solid #409eff;
  21245. }
  21246. .e_add_list_pbox_content {
  21247. height: calc(100% - 50px);
  21248. display: flex;
  21249. align-items: center;
  21250. width: 100%;
  21251. background: #fff;
  21252. }
  21253. .evaCss {
  21254. display: flex;
  21255. flex-direction: row;
  21256. flex-wrap: nowrap;
  21257. align-items: flex-start;
  21258. padding: 0 0 20px;
  21259. }
  21260. .cru_line {
  21261. position: absolute;
  21262. bottom: 0px;
  21263. transition: all 0.5s;
  21264. left: 0px;
  21265. width: 125px;
  21266. margin-left: -25px;
  21267. }
  21268. .isNoMessage {
  21269. width: 20%;
  21270. margin: 25% auto 0;
  21271. }
  21272. .isNoMessage > img {
  21273. width: 100%;
  21274. height: 100%;
  21275. }
  21276. .fullStyle >>> .el-dialog__body {
  21277. height: 100% !important;
  21278. }
  21279. .fullStyle >>> .el-dialog,
  21280. .fullStyle {
  21281. width: 100% !important;
  21282. max-width: 100% !important;
  21283. height: 100% !important;
  21284. margin: 0 !important;
  21285. }
  21286. .full_diy >>> .el-dialog {
  21287. margin: 0 !important;
  21288. height: 100%;
  21289. padding: 4px;
  21290. }
  21291. .full_diy >>> .el-dialog__body {
  21292. height: calc(100% - 100px);
  21293. }
  21294. .full_diy2 >>> .el-dialog__body {
  21295. height: calc(100% - 50px);
  21296. padding: 0;
  21297. }
  21298. .switchCss {
  21299. /* width: 100%; */
  21300. display: flex;
  21301. flex-direction: row;
  21302. flex-wrap: nowrap;
  21303. align-items: center;
  21304. /* justify-content: center; */
  21305. }
  21306. .isClickNav {
  21307. /* color: #499eef; */
  21308. color: #000;
  21309. }
  21310. .commentImg {
  21311. width: 25px;
  21312. height: 25px;
  21313. cursor: pointer;
  21314. }
  21315. .commentImg > img {
  21316. width: 100%;
  21317. height: 100%;
  21318. }
  21319. .comment {
  21320. background: #f9f9f9;
  21321. border-radius: 0 0 4px 4px;
  21322. display: flex;
  21323. flex-direction: row;
  21324. flex-wrap: nowrap;
  21325. align-items: center;
  21326. justify-content: flex-end;
  21327. height: 35px;
  21328. }
  21329. .commentList {
  21330. display: flex;
  21331. flex-direction: row;
  21332. flex-wrap: nowrap;
  21333. align-items: center;
  21334. justify-content: center;
  21335. align-content: center;
  21336. /* margin-left: 15px; */
  21337. /* margin-left: 8px; */
  21338. }
  21339. .scoreImg {
  21340. width: 17px;
  21341. height: 17px;
  21342. }
  21343. .studentDetail {
  21344. display: flex;
  21345. flex-direction: row;
  21346. flex-wrap: nowrap;
  21347. /* align-items: center; */
  21348. align-items: flex-start;
  21349. }
  21350. .tx {
  21351. width: 50px;
  21352. }
  21353. .tx > img {
  21354. width: 100%;
  21355. height: 100%;
  21356. }
  21357. .nameAndTime {
  21358. display: flex;
  21359. flex-direction: column;
  21360. flex-wrap: nowrap;
  21361. align-items: flex-start;
  21362. margin-left: 10px;
  21363. }
  21364. .worksAnswer {
  21365. color: #4078dd;
  21366. margin: 10px 0;
  21367. font-size: 16px;
  21368. position: relative;
  21369. }
  21370. .worksAnswer > img {
  21371. width: 500px;
  21372. height: 300px;
  21373. object-fit: contain;
  21374. margin: 0 auto;
  21375. display: block;
  21376. }
  21377. .commentTop {
  21378. border-bottom: 1px solid #eaeaea;
  21379. padding-bottom: 10px;
  21380. }
  21381. .commentBox {
  21382. padding-top: 15px;
  21383. }
  21384. .pl {
  21385. font-size: 18px;
  21386. }
  21387. .plPerson {
  21388. width: 100%;
  21389. }
  21390. .plName {
  21391. display: flex;
  21392. flex-direction: row;
  21393. flex-wrap: nowrap;
  21394. align-items: baseline;
  21395. color: #78787a;
  21396. width: 100%;
  21397. }
  21398. .deleteComment {
  21399. cursor: pointer;
  21400. margin-left: auto;
  21401. color: #237ade;
  21402. }
  21403. .plContent {
  21404. margin-top: 5px;
  21405. }
  21406. .evalCss {
  21407. background: #fff;
  21408. font-size: 18px;
  21409. }
  21410. .nav {
  21411. color: #9d9d9d;
  21412. padding: 5px 0 15px 20px;
  21413. }
  21414. .middleBox {
  21415. padding: 5px 0 15px 20px;
  21416. }
  21417. .pfBox {
  21418. padding-bottom: 30px;
  21419. }
  21420. .nameAndrate {
  21421. display: flex;
  21422. flex-direction: row;
  21423. flex-wrap: nowrap;
  21424. align-items: center;
  21425. padding-bottom: 10px;
  21426. height: 30px;
  21427. line-height: 30px;
  21428. }
  21429. .nameAndrate > div {
  21430. margin-left: 10px;
  21431. color: #000;
  21432. height: 30px;
  21433. }
  21434. .nameAndrate >>> .el-rate__icon {
  21435. font-size: 28px !important;
  21436. }
  21437. .pfBox > div:nth-child(2) {
  21438. background: #f7f6f9;
  21439. width: 400px;
  21440. min-height: 45px;
  21441. border-radius: 10px;
  21442. font-size: 16px;
  21443. display: flex;
  21444. flex-wrap: wrap;
  21445. align-items: center;
  21446. padding: 10px 20px;
  21447. box-sizing: border-box;
  21448. color: #000;
  21449. }
  21450. .bz {
  21451. display: flex;
  21452. flex-direction: row;
  21453. flex-wrap: nowrap;
  21454. align-items: flex-start;
  21455. }
  21456. .bz > div {
  21457. padding: 0 10px;
  21458. }
  21459. .select_box2_title {
  21460. background: #fff;
  21461. border-radius: 5px;
  21462. padding: 15px 10px;
  21463. box-sizing: border-box;
  21464. margin-bottom: 10px;
  21465. display: flex;
  21466. flex-direction: row;
  21467. flex-wrap: nowrap;
  21468. align-items: center;
  21469. }
  21470. .select_box2_title > div:nth-child(2) {
  21471. margin-left: 10px;
  21472. color: #c4c4c4;
  21473. }
  21474. .select_box2_box {
  21475. display: flex;
  21476. height: 500px;
  21477. }
  21478. .select_box2_img {
  21479. width: calc(100% - 310px);
  21480. height: 100%;
  21481. overflow: auto;
  21482. background: #fff;
  21483. border-radius: 5px;
  21484. }
  21485. .select_box2_img img {
  21486. width: 100%;
  21487. }
  21488. .select_box2_answer {
  21489. background: #fff;
  21490. margin-left: 10px;
  21491. border-radius: 5px;
  21492. width: 300px;
  21493. overflow: auto;
  21494. height: 90%;
  21495. display: flex;
  21496. flex-direction: column;
  21497. align-items: flex-start;
  21498. padding-top: 10px;
  21499. box-sizing: border-box;
  21500. position: relative;
  21501. }
  21502. .select_answer_title {
  21503. padding: 0 0 15px 20px;
  21504. color: #c4c4c4;
  21505. }
  21506. .select_box2_answer_box {
  21507. margin: 0 0 10px 20px;
  21508. width: 85%;
  21509. display: flex;
  21510. flex-direction: row;
  21511. flex-wrap: nowrap;
  21512. align-items: center;
  21513. }
  21514. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21515. color: #000;
  21516. }
  21517. .upAnswerCss {
  21518. position: absolute;
  21519. bottom: 15px;
  21520. right: 15px;
  21521. }
  21522. .upAnswerCss >>> .el-button {
  21523. width: 95px;
  21524. height: 35px;
  21525. line-height: 35px;
  21526. padding: 0;
  21527. }
  21528. .rightWidthCss {
  21529. width: 60%;
  21530. display: flex;
  21531. flex-direction: row;
  21532. align-items: flex-start;
  21533. }
  21534. .rightAnswer {
  21535. display: flex;
  21536. flex-direction: row;
  21537. flex-wrap: nowrap;
  21538. align-items: center;
  21539. color: red;
  21540. margin-bottom: 31px;
  21541. }
  21542. .rightAnswerCss {
  21543. display: flex;
  21544. flex-direction: column;
  21545. flex-wrap: nowrap;
  21546. padding-top: 60px;
  21547. }
  21548. .blueCss {
  21549. color: #767de1;
  21550. margin-left: 10px;
  21551. }
  21552. .redCss {
  21553. color: red;
  21554. }
  21555. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21556. color: rgb(0 123 255) !important;
  21557. }
  21558. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21559. color: rgb(0 123 255) !important;
  21560. }
  21561. .zuoyeYulan {
  21562. padding-top: 0;
  21563. font-size: 18px;
  21564. display: flex;
  21565. align-items: flex-end;
  21566. }
  21567. .buttonA {
  21568. margin-left: 10px;
  21569. padding: 0;
  21570. }
  21571. .displayBox {
  21572. margin-bottom: 10px;
  21573. display: block;
  21574. border-bottom: 3px solid #eee;
  21575. display: flex;
  21576. align-items: center;
  21577. }
  21578. .easy_comment {
  21579. width: calc(100% - 90px);
  21580. margin-left: 10px;
  21581. display: flex;
  21582. flex-wrap: wrap;
  21583. }
  21584. .easy_comment > div {
  21585. border: 1px solid #4a4a4a;
  21586. color: #666;
  21587. border-radius: 15px;
  21588. padding: 5px 10px;
  21589. font-size: 16px;
  21590. margin-bottom: 10px;
  21591. margin-right: 5px;
  21592. cursor: pointer;
  21593. }
  21594. .easy_comment div:hover {
  21595. border: 1px solid #f7ba2a;
  21596. color: #c69217;
  21597. }
  21598. .xuan_right_box {
  21599. padding: 10px 0;
  21600. background: #f0f4fa;
  21601. margin: 0 15px 0 25px;
  21602. border-bottom-left-radius: 5px;
  21603. border-bottom-right-radius: 5px;
  21604. width: 91.5%;
  21605. }
  21606. .tool_right_box {
  21607. display: flex;
  21608. align-items: center;
  21609. }
  21610. .tool_right_box + .tool_right_box {
  21611. margin-top: 10px;
  21612. }
  21613. .right_box_xuan {
  21614. border-radius: 5px;
  21615. padding: 5px;
  21616. margin-left: 10px;
  21617. min-width: 85px;
  21618. background: #fff;
  21619. color: #0061ff;
  21620. border: 1px solid #0061ff;
  21621. font-size: 14px;
  21622. }
  21623. .pButton:hover {
  21624. opacity: 1 !important;
  21625. }
  21626. .pButton {
  21627. position: fixed;
  21628. text-align: center;
  21629. cursor: pointer;
  21630. z-index: 999;
  21631. right: 20px;
  21632. top: 110px;
  21633. width: 50px;
  21634. height: 50px;
  21635. display: flex;
  21636. align-items: center;
  21637. justify-content: center;
  21638. border-radius: 5px;
  21639. }
  21640. .pzClass {
  21641. width: calc(100% - 340px);
  21642. }
  21643. .newDialogCss {
  21644. /* position: fixed;
  21645. right: 5%;
  21646. top: 50%;
  21647. width: 340px;
  21648. transform: translateY(-50%);
  21649. height: 60%;
  21650. box-shadow: 0px 0 8px 0px #555555;
  21651. border-radius: 15px;
  21652. z-index: 999; */
  21653. position: fixed;
  21654. right: 20px;
  21655. top: 101px;
  21656. width: 330px;
  21657. height: calc(100% - 80px);
  21658. z-index: 999;
  21659. background: #fff;
  21660. border-top-right-radius: 0px;
  21661. border-bottom-right-radius: 0px;
  21662. overflow: hidden;
  21663. }
  21664. .pzTop {
  21665. color: #fff;
  21666. background: #000;
  21667. display: flex;
  21668. flex-direction: row;
  21669. flex-wrap: nowrap;
  21670. align-items: center;
  21671. justify-content: space-between;
  21672. height: 40px;
  21673. border-radius: 15px 15px 0 0;
  21674. user-select: none;
  21675. }
  21676. .pzTop2 .checkbox {
  21677. display: flex;
  21678. align-items: center;
  21679. padding: 5px 30px;
  21680. flex: 0 0 auto;
  21681. font-weight: bold;
  21682. border-bottom: 1px solid #eee;
  21683. justify-content: space-between;
  21684. }
  21685. .pzTop2 .check {
  21686. text-align: center;
  21687. cursor: pointer;
  21688. box-sizing: border-box;
  21689. display: flex;
  21690. }
  21691. .pzTop2 img {
  21692. width: 25px;
  21693. cursor: pointer;
  21694. }
  21695. .pzTop > div:nth-child(1) {
  21696. padding-left: 10px;
  21697. }
  21698. .pzTop > div:nth-child(2) {
  21699. width: 15px;
  21700. height: 15px;
  21701. padding-right: 10px;
  21702. cursor: pointer;
  21703. }
  21704. .pzTop > div:nth-child(2) > img {
  21705. width: 100%;
  21706. height: 100%;
  21707. }
  21708. .pzBox,
  21709. .noPzBox {
  21710. height: calc(100% - 60px);
  21711. /* background: #ededed; */
  21712. background: #fff;
  21713. /* border-radius: 0 0 15px 15px; */
  21714. }
  21715. .noPzBox {
  21716. display: flex;
  21717. flex-direction: column;
  21718. flex-wrap: nowrap;
  21719. justify-content: center;
  21720. align-items: center;
  21721. }
  21722. .pzList {
  21723. background: #f7f7f7;
  21724. width: 90%;
  21725. margin: 0 auto 15px;
  21726. border-radius: 5px;
  21727. }
  21728. .pzNavTop {
  21729. display: flex;
  21730. flex-direction: row;
  21731. flex-wrap: nowrap;
  21732. padding: 10px 10px 0 10px;
  21733. align-items: center;
  21734. }
  21735. .pzDelete {
  21736. cursor: pointer;
  21737. margin-left: auto;
  21738. font-size: 14px;
  21739. color: #afafaf;
  21740. }
  21741. .pzNavTop > div:nth-child(1) {
  21742. background: #3760af;
  21743. width: 35px;
  21744. height: 35px;
  21745. color: #fff;
  21746. text-align: center;
  21747. line-height: 35px;
  21748. border-radius: 50%;
  21749. font-size: 14px;
  21750. }
  21751. .pzNavTop > div:nth-child(2) {
  21752. font-size: 18px;
  21753. color: #959595;
  21754. margin-left: 5px;
  21755. }
  21756. .pzContent {
  21757. padding: 10px;
  21758. word-break: break-word;
  21759. }
  21760. .pzContent audio {
  21761. width: 100%;
  21762. }
  21763. .pzContent audio::-webkit-media-controls-panel {
  21764. background: #fff;
  21765. }
  21766. .pzContent >>> img {
  21767. max-width: 100%;
  21768. }
  21769. .pzListBox {
  21770. padding-top: 15px;
  21771. height: calc(100% - 110px);
  21772. overflow: auto;
  21773. }
  21774. .addPzButton {
  21775. position: relative;
  21776. margin-top: 3px;
  21777. width: 100%;
  21778. }
  21779. .addPzButton .img1 {
  21780. position: absolute;
  21781. top: 50%;
  21782. right: 25px;
  21783. transform: translateY(-50%);
  21784. height: 100%;
  21785. display: flex;
  21786. align-items: center;
  21787. }
  21788. .addPzButton .img1 div {
  21789. display: flex;
  21790. }
  21791. .addPzButton .img1 div img {
  21792. width: 28px;
  21793. margin-left: 10px;
  21794. cursor: pointer;
  21795. }
  21796. .addPzButton .img1 div span {
  21797. font-size: 14px;
  21798. margin: 4px 0 0 3px;
  21799. color: #afafaf;
  21800. }
  21801. .addPz {
  21802. background: #4b79ce;
  21803. width: 100px;
  21804. color: #fff;
  21805. font-size: 12px;
  21806. height: 30px;
  21807. margin: 0 auto;
  21808. text-align: center;
  21809. line-height: 30px;
  21810. border-radius: 10px;
  21811. cursor: pointer;
  21812. }
  21813. .addDialogCss {
  21814. position: fixed;
  21815. width: 600px;
  21816. height: 70%;
  21817. min-height: 450px;
  21818. box-shadow: 0px 0 8px 0px #555555;
  21819. border-radius: 15px;
  21820. z-index: 999;
  21821. left: 50%;
  21822. top: 50%;
  21823. margin: -18% 0 0 -300px;
  21824. }
  21825. .teacherPz {
  21826. display: flex;
  21827. flex-direction: row;
  21828. align-items: center;
  21829. flex-wrap: nowrap;
  21830. }
  21831. .teacherPzImg {
  21832. width: 30px;
  21833. height: 30px;
  21834. }
  21835. .teacherPzImg > img {
  21836. width: 100%;
  21837. height: 100%;
  21838. }
  21839. .addPzBox {
  21840. height: calc(100% - 40px);
  21841. background: #ededed;
  21842. border-bottom-left-radius: 15px;
  21843. border-bottom-right-radius: 15px;
  21844. }
  21845. .pzAudioClass {
  21846. margin: 15px 14px;
  21847. background: #fff;
  21848. height: 100%;
  21849. display: flex;
  21850. justify-content: center;
  21851. align-items: center;
  21852. }
  21853. .pzConText {
  21854. width: 95%;
  21855. height: 100%;
  21856. margin: 10px auto 0;
  21857. border: none;
  21858. background: #fff;
  21859. border-radius: 0px;
  21860. }
  21861. .pzConText >>> .text {
  21862. height: calc(100% - 82px);
  21863. }
  21864. .addTextCss {
  21865. background: #4b79ce;
  21866. width: 80px;
  21867. height: 30px;
  21868. text-align: center;
  21869. color: #fff;
  21870. line-height: 30px;
  21871. border-radius: 10px;
  21872. margin: 10px auto 0;
  21873. cursor: pointer;
  21874. }
  21875. .pzConText:focus-visible {
  21876. border: none !important;
  21877. }
  21878. .maxWidth {
  21879. width: 1000px;
  21880. }
  21881. .noPz {
  21882. width: 150px;
  21883. margin: 0 auto 20%;
  21884. }
  21885. .noPz > img {
  21886. width: 100%;
  21887. height: 100%;
  21888. }
  21889. .timeAndReply {
  21890. display: flex;
  21891. flex-direction: row;
  21892. flex-wrap: nowrap;
  21893. justify-content: space-between;
  21894. align-items: center;
  21895. font-size: 14px;
  21896. box-sizing: border-box;
  21897. padding: 0 10px 10px 0px;
  21898. }
  21899. .timeAndReply .time {
  21900. color: #bfbfbf;
  21901. padding: 0 0 0 10px;
  21902. box-sizing: border-box;
  21903. }
  21904. .timeAndReply > div:last-child {
  21905. cursor: pointer;
  21906. color: #777;
  21907. }
  21908. /* table 样式 */
  21909. .cont >>> table {
  21910. border-top: 1px solid #ccc;
  21911. border-left: 1px solid #ccc;
  21912. }
  21913. .cont >>> table td,
  21914. .cont >>> table th {
  21915. border-bottom: 1px solid #ccc;
  21916. border-right: 1px solid #ccc;
  21917. /* padding: 20px 5px; */
  21918. padding: 5px 10px;
  21919. max-width: 0px;
  21920. height: 30px;
  21921. vertical-align: baseline;
  21922. box-sizing: border-box;
  21923. }
  21924. .cont >>> table th {
  21925. border-bottom: 2px solid #ccc;
  21926. text-align: center;
  21927. }
  21928. /* blockquote 样式 */
  21929. .cont >>> blockquote {
  21930. display: block;
  21931. border-left: 8px solid #d0e5f2;
  21932. padding: 5px 10px;
  21933. margin: 10px 0;
  21934. line-height: 1.4;
  21935. font-size: 100%;
  21936. background-color: #f1f1f1;
  21937. }
  21938. /* code 样式 */
  21939. .cont >>> code {
  21940. display: inline-block;
  21941. /* *display: inline; */
  21942. zoom: 1;
  21943. background-color: #f1f1f1;
  21944. border-radius: 3px;
  21945. padding: 3px 5px;
  21946. margin: 0 3px;
  21947. }
  21948. .cont >>> pre code {
  21949. display: block;
  21950. }
  21951. /* ul ol 样式 */
  21952. .cont >>> ul,
  21953. ol {
  21954. margin: 10px 0 10px 20px;
  21955. }
  21956. .addPzCheck {
  21957. display: flex;
  21958. flex-direction: row;
  21959. flex-wrap: nowrap;
  21960. padding: 10px 15px 0;
  21961. }
  21962. .addPzCheck span {
  21963. cursor: pointer;
  21964. padding-bottom: 5px;
  21965. font-weight: bold;
  21966. }
  21967. .addPzCheck span + span {
  21968. margin-left: 10px;
  21969. }
  21970. .addPzCheck .isChooseActive {
  21971. color: #3e88f4;
  21972. border-bottom: 2px solid #2f80f3;
  21973. }
  21974. /* code 样式 */
  21975. .cont {
  21976. /* -webkit-user-modify: read-write; */
  21977. overflow-wrap: break-word;
  21978. -webkit-line-break: after-white-space;
  21979. }
  21980. .scoreBox,
  21981. .scoreDetailBox {
  21982. display: flex;
  21983. align-items: center;
  21984. justify-content: flex-start;
  21985. margin-top: 20px;
  21986. font-size: 18px;
  21987. width: 100%;
  21988. }
  21989. .scoreBox .t,
  21990. .scoreDetailBox .t {
  21991. margin-right: 10px;
  21992. width: 100px;
  21993. text-align: right;
  21994. }
  21995. .scoreDetailBox {
  21996. align-items: flex-start;
  21997. }
  21998. .scoreDetailBox >>> .el-textarea {
  21999. width: calc(100% - 200px);
  22000. }
  22001. .scoreBox >>> .el-input {
  22002. width: 130px;
  22003. font-size: 38px;
  22004. }
  22005. .scoreBox >>> .el-input__inner {
  22006. height: 60px;
  22007. }
  22008. .answerScore {
  22009. position: absolute;
  22010. top: 10px;
  22011. right: 10px;
  22012. background: #0000008f;
  22013. border-radius: 5px;
  22014. padding: 3px 5px;
  22015. font-size: 14px;
  22016. color: #fff;
  22017. cursor: pointer;
  22018. }
  22019. .open_box .switch_box {
  22020. width: 100%;
  22021. margin: 0 auto;
  22022. display: flex;
  22023. justify-content: space-between;
  22024. }
  22025. .open_box .switch_box + .switch_box {
  22026. margin-top: 10px;
  22027. }
  22028. .deleteImg,.deleteImg1 {
  22029. width: 25px !important;
  22030. height: 25px !important;
  22031. cursor: pointer;
  22032. position: absolute;
  22033. top: 10px;
  22034. right: 10px;
  22035. }
  22036. .deleteImg2 {
  22037. width: 23px !important;
  22038. height: 23px !important;
  22039. top: 5px;
  22040. right: 5px;
  22041. }
  22042. .deleteImg1{
  22043. width: 23px !important;
  22044. height: 23px !important;
  22045. top: 5px !important;
  22046. right: 30px !important;
  22047. }
  22048. .rightW {
  22049. right: 40px;
  22050. }
  22051. .drawPBox {
  22052. display: flex;
  22053. flex-direction: column;
  22054. position: relative;
  22055. }
  22056. .drawPBox span {
  22057. font-size: 18px;
  22058. color: #606266;
  22059. padding-bottom: 10px;
  22060. margin: 10px 0;
  22061. border-bottom: 1px solid #eaeaea;
  22062. }
  22063. .drawPBox img {
  22064. width: 500px;
  22065. height: 300px;
  22066. object-fit: contain;
  22067. cursor: pointer;
  22068. margin: 0 auto;
  22069. }
  22070. .sentenBox {
  22071. background: #fff;
  22072. height: 450px;
  22073. overflow: auto;
  22074. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22075. background-position: 102%;
  22076. background-repeat: no-repeat;
  22077. background-size: 60%;
  22078. }
  22079. .addSen {
  22080. background: #409efe;
  22081. width: 90px;
  22082. color: #fff;
  22083. height: 35px;
  22084. text-align: center;
  22085. line-height: 35px;
  22086. border-radius: 5px;
  22087. float: right;
  22088. margin: 10px 20px 0 0;
  22089. cursor: pointer;
  22090. }
  22091. .sentenTop {
  22092. display: flex;
  22093. flex-direction: row;
  22094. flex-wrap: nowrap;
  22095. align-items: center;
  22096. padding: 55px 0 0 20px;
  22097. box-sizing: border-box;
  22098. }
  22099. .sentenTop > div:nth-child(2) {
  22100. width: 300px;
  22101. margin: 0 15px;
  22102. }
  22103. .sentenTop > div:nth-child(3) {
  22104. background: #409efe;
  22105. color: #fff;
  22106. width: 65px;
  22107. height: 35px;
  22108. text-align: center;
  22109. line-height: 35px;
  22110. border-radius: 5px;
  22111. cursor: pointer;
  22112. }
  22113. .cardList,
  22114. .cardList1 {
  22115. padding: 10px 0 10px 0;
  22116. display: flex;
  22117. flex-direction: row;
  22118. flex-wrap: wrap;
  22119. align-items: center;
  22120. box-sizing: border-box;
  22121. border-bottom: 1px solid #f4f4f4;
  22122. width: 98%;
  22123. margin: 0 auto;
  22124. min-width: 60%;
  22125. max-width: 85%;
  22126. }
  22127. .cardList1 {
  22128. padding: 10px 0 10px 10px !important;
  22129. margin: 0 !important;
  22130. }
  22131. .cardBox {
  22132. display: flex;
  22133. flex-direction: row;
  22134. flex-wrap: wrap;
  22135. align-items: center;
  22136. align-content: center;
  22137. }
  22138. .cardBox > div {
  22139. margin-bottom: 10px;
  22140. }
  22141. .isCard,
  22142. .isChooseCard,
  22143. .noCard,
  22144. .isCard1 {
  22145. width: 130px;
  22146. height: 60px;
  22147. text-align: center;
  22148. line-height: 60px;
  22149. font-size: 20px;
  22150. cursor: pointer;
  22151. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  22152. background-size: cover;
  22153. transition: all 2s;
  22154. margin-right: 20px;
  22155. }
  22156. .isCard > div,
  22157. .noCard > div,
  22158. .isCard1 > div {
  22159. white-space: nowrap;
  22160. overflow: hidden;
  22161. text-overflow: ellipsis;
  22162. width: 75%;
  22163. margin: 0 auto;
  22164. }
  22165. .noCard {
  22166. background-image: none;
  22167. }
  22168. .isCard1 {
  22169. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22170. }
  22171. .isChooseCard {
  22172. background-image: none;
  22173. border: 1px dashed #b9b9b9;
  22174. border-radius: 10px;
  22175. }
  22176. .card {
  22177. width: 130px;
  22178. height: 60px;
  22179. }
  22180. .card > img {
  22181. width: 100%;
  22182. height: 100%;
  22183. }
  22184. .rightCardBox {
  22185. margin: 10px 0 0 10px;
  22186. }
  22187. .rightCardBox > div:nth-child(1) {
  22188. margin-bottom: 10px;
  22189. }
  22190. .cardCss {
  22191. display: flex;
  22192. flex-direction: column;
  22193. flex-wrap: nowrap;
  22194. align-items: center;
  22195. border-bottom: 3px solid #b4c3d3;
  22196. padding: 0 0 5px 0;
  22197. margin-right: 10px;
  22198. }
  22199. .cardCss > div:nth-child(2) {
  22200. background: #5b7b9d;
  22201. color: #fff;
  22202. width: 20px;
  22203. height: 20px;
  22204. border-radius: 50%;
  22205. text-align: center;
  22206. line-height: 20px;
  22207. }
  22208. .isWrong {
  22209. display: flex;
  22210. flex-direction: row;
  22211. flex-wrap: nowrap;
  22212. align-content: center;
  22213. align-items: center;
  22214. }
  22215. .answerRight {
  22216. width: 25%;
  22217. }
  22218. .isTj {
  22219. display: flex;
  22220. flex-direction: row;
  22221. flex-wrap: nowrap;
  22222. align-items: center;
  22223. }
  22224. .isTj > div:nth-child(2) {
  22225. color: #727070;
  22226. margin-left: 10px;
  22227. }
  22228. .isTjImg {
  22229. width: 30px;
  22230. height: 30px;
  22231. }
  22232. .isTjImg > img {
  22233. width: 100%;
  22234. height: 100%;
  22235. }
  22236. .cardAnswerBox {
  22237. font-size: 18px;
  22238. width: 97%;
  22239. border: 5px;
  22240. padding: 0;
  22241. border-radius: 5px;
  22242. margin: 10px auto;
  22243. word-break: break-word;
  22244. }
  22245. .w_name {
  22246. margin-bottom: 10px;
  22247. }
  22248. .w_name span {
  22249. font-size: 16px;
  22250. }
  22251. .w_teachert {
  22252. width: 50px !important;
  22253. position: absolute;
  22254. height: auto !important;
  22255. z-index: 10;
  22256. right: 25px;
  22257. top: -25px;
  22258. }
  22259. .group_workBox {
  22260. }
  22261. .group_workBox + .group_workBox {
  22262. margin-top: 20px;
  22263. }
  22264. .group_box {
  22265. padding-bottom: 20px;
  22266. border-bottom: 2px solid #f0f0f0;
  22267. margin-top: 10px;
  22268. }
  22269. .group_title {
  22270. display: flex;
  22271. align-items: center;
  22272. justify-content: space-between;
  22273. width: 95%;
  22274. }
  22275. .group_name {
  22276. background-image: url(../../assets/icon/groupN.png);
  22277. width: 220px;
  22278. background-size: 100% 100%;
  22279. height: 67px;
  22280. padding: 0 20px 0 43px;
  22281. box-sizing: border-box;
  22282. line-height: 63px;
  22283. color: #fff;
  22284. overflow: hidden;
  22285. white-space: nowrap;
  22286. text-overflow: ellipsis;
  22287. }
  22288. .group_work {
  22289. width: 100%;
  22290. padding: 0 10px;
  22291. box-sizing: border-box;
  22292. display: flex;
  22293. flex-wrap: wrap;
  22294. }
  22295. .g_d_box {
  22296. display: flex;
  22297. flex-flow: wrap;
  22298. justify-content: space-around;
  22299. }
  22300. .g_d_box .isChair {
  22301. background-image: url(../../assets/avatar.png) !important;
  22302. }
  22303. .g_d_group {
  22304. width: 500px;
  22305. margin-bottom: 80px;
  22306. }
  22307. .g_d_group_chair {
  22308. display: flex;
  22309. align-items: center;
  22310. justify-content: center;
  22311. }
  22312. .g_d_group_chair > div + div {
  22313. margin-left: 30px;
  22314. }
  22315. .g_d_group_chair > div,
  22316. .g_d_group_chair2 > div {
  22317. display: flex;
  22318. flex-direction: column;
  22319. align-items: center;
  22320. }
  22321. .g_d_group_chair > div > span:nth-child(1),
  22322. .g_d_group_chair2 > div > span:nth-child(1) {
  22323. background-image: url(../../assets/icon/chair.png);
  22324. width: 50px;
  22325. height: 50px;
  22326. display: block;
  22327. background-size: 100% 100%;
  22328. }
  22329. .g_d_group_tableBox {
  22330. display: flex;
  22331. align-items: center;
  22332. justify-content: center;
  22333. }
  22334. .g_d_group_chair2 {
  22335. display: flex;
  22336. flex-direction: column;
  22337. align-items: center;
  22338. justify-content: center;
  22339. }
  22340. .g_d_group_chair2 > div + div {
  22341. margin-top: 10px;
  22342. }
  22343. .g_d_group_table {
  22344. background-image: url(../../assets/icon/groupBg.png);
  22345. width: 354px;
  22346. height: 196px;
  22347. background-size: 100% 100%;
  22348. display: flex;
  22349. align-items: center;
  22350. justify-content: center;
  22351. flex-direction: column;
  22352. color: #fff;
  22353. }
  22354. .g_d_group_table > div:nth-child(1) {
  22355. font-size: 24px;
  22356. margin-bottom: 5px;
  22357. }
  22358. .g_d_group_table > div:nth-child(2) div {
  22359. cursor: pointer;
  22360. background: #2e77bf;
  22361. padding: 4px 10px;
  22362. border-radius: 5px;
  22363. }
  22364. .groupBox {
  22365. }
  22366. .groupContent + .groupContent {
  22367. margin-top: 30px;
  22368. }
  22369. .groupTitle {
  22370. font-size: 24px;
  22371. color: rgb(80, 80, 80);
  22372. margin-bottom: 20px;
  22373. }
  22374. .groupName {
  22375. display: flex;
  22376. align-items: center;
  22377. }
  22378. .groupn {
  22379. font-size: 15px;
  22380. margin-right: 10px;
  22381. }
  22382. .groupName + .groupName {
  22383. margin-top: 15px;
  22384. }
  22385. .groupBtn {
  22386. margin-left: 10px;
  22387. }
  22388. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22389. text-align: left;
  22390. }
  22391. .g_d_btnBox {
  22392. display: flex;
  22393. justify-content: flex-end;
  22394. align-items: center;
  22395. margin-bottom: 20px;
  22396. }
  22397. .updateChair {
  22398. position: relative;
  22399. }
  22400. .updateChairBtn {
  22401. position: absolute;
  22402. width: 50px;
  22403. height: 50px;
  22404. overflow: hidden;
  22405. /* display: flex; */
  22406. align-items: center;
  22407. justify-content: center;
  22408. background: #00000087;
  22409. color: #fff;
  22410. border-radius: 50px;
  22411. display: none;
  22412. cursor: pointer;
  22413. }
  22414. .updateChair:hover .updateChairBtn {
  22415. display: flex;
  22416. }
  22417. .group_staic_box {
  22418. display: flex;
  22419. padding: 30px 40px 10px;
  22420. flex-wrap: wrap;
  22421. }
  22422. .group_staic {
  22423. /* width: 50%; */
  22424. margin-bottom: 20px;
  22425. display: flex;
  22426. align-items: center;
  22427. }
  22428. .group_staic span:nth-child(1) {
  22429. width: 150px;
  22430. text-align: right;
  22431. margin-right: 15px;
  22432. }
  22433. .group_staic span:nth-child(2) {
  22434. background: rgb(0 123 255);
  22435. color: #fff;
  22436. border-radius: 5px;
  22437. padding: 5px;
  22438. }
  22439. .codeFileBox {
  22440. height: 300px;
  22441. background: #fff;
  22442. display: flex;
  22443. align-items: center;
  22444. justify-content: center;
  22445. }
  22446. .codeFileBox img {
  22447. width: 200px;
  22448. margin: 0;
  22449. height: auto;
  22450. }
  22451. .codeFileBox div {
  22452. background: rgb(80, 142, 226);
  22453. color: #fff;
  22454. padding: 10px 20px;
  22455. border-radius: 25px;
  22456. cursor: pointer;
  22457. margin-left: 15px;
  22458. }
  22459. .radioBox {
  22460. display: flex;
  22461. flex-direction: column;
  22462. flex-wrap: nowrap;
  22463. align-items: flex-start;
  22464. }
  22465. .radioBox > div {
  22466. margin: 10px 0 0 10px;
  22467. }
  22468. /* .radioBox >>> .el-radio__input,
  22469. .radioBox >>> .el-checkbox__inner {
  22470. margin-left: 10px;
  22471. } */
  22472. .radioBox >>> .el-radio__label,
  22473. .radioBox >>> .el-checkbox__label {
  22474. display: flex;
  22475. align-items: center;
  22476. width: 100%;
  22477. }
  22478. .radioBox >>> .el-radio__label > span {
  22479. width: 100%;
  22480. display: -webkit-box;
  22481. overflow: hidden;
  22482. white-space: normal !important;
  22483. text-overflow: ellipsis;
  22484. word-wrap: break-word;
  22485. }
  22486. .inImg {
  22487. width: 100px;
  22488. cursor: pointer;
  22489. }
  22490. .inImg > img {
  22491. width: 100%;
  22492. height: 100%;
  22493. object-fit: cover;
  22494. }
  22495. .timuImgBox {
  22496. margin: 10px 0;
  22497. display: flex;
  22498. flex-direction: column;
  22499. flex-wrap: wrap;
  22500. align-items: flex-start;
  22501. }
  22502. .timuImg {
  22503. width: 150px;
  22504. margin: 5px 0;
  22505. cursor: pointer;
  22506. }
  22507. .timuImg > img {
  22508. width: 100%;
  22509. height: 100%;
  22510. object-fit: cover;
  22511. }
  22512. .worksTop {
  22513. display: flex;
  22514. flex-direction: row;
  22515. align-items: flex-end;
  22516. }
  22517. .worksTitle{
  22518. display: flex;
  22519. flex-direction: row;
  22520. flex-wrap: nowrap;
  22521. align-items: center;
  22522. }
  22523. .worksTitle::before,.worksTop::before{
  22524. content: '';
  22525. display: block;
  22526. width: 3px;
  22527. height: 20px;
  22528. background: #0061FF;
  22529. border-radius: 3px;
  22530. margin: 0 5px 0 0;
  22531. }
  22532. .corOpen {
  22533. margin: 0 0 0 10px;
  22534. font-size: 14px;
  22535. cursor: pointer;
  22536. color: #505050;
  22537. }
  22538. .corOpen:hover {
  22539. color: #499eef;
  22540. }
  22541. .navCorOpenBox {
  22542. display: flex;
  22543. flex-direction: row;
  22544. align-items: center;
  22545. justify-content: space-between;
  22546. height: 55px;
  22547. background: #ffffff;
  22548. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22549. border-radius: 8px 8px 0px 0px;
  22550. z-index: 9;
  22551. position: relative;
  22552. }
  22553. .navCorOpen {
  22554. padding-right: 15px;
  22555. cursor: pointer;
  22556. width: 45px;
  22557. display: flex;
  22558. }
  22559. .navCorOpen > img {
  22560. width: 100%;
  22561. height: 100%;
  22562. }
  22563. .mlImg {
  22564. width: 40px !important;
  22565. min-width: 40px;
  22566. cursor: pointer;
  22567. transform: rotate(180deg);
  22568. }
  22569. .mlImg > img {
  22570. width: 100%;
  22571. height: 100%;
  22572. }
  22573. .navLeftCss {
  22574. width: 100% !important;
  22575. left: 0 !important;
  22576. }
  22577. .isContentCss {
  22578. width: 100% !important;
  22579. }
  22580. .isAllWidth {
  22581. width: 100% !important;
  22582. }
  22583. .group_switch {
  22584. margin-right: 10px;
  22585. height: 30px;
  22586. display: flex;
  22587. align-items: center;
  22588. }
  22589. .group_switch > span {
  22590. margin-right: 5px;
  22591. }
  22592. .fileC_box {
  22593. padding-top: 15px;
  22594. }
  22595. .fileC_box > .fileC_title {
  22596. padding: 10px 5px 14px 10px;
  22597. border-top: 1px solid #cad1dc;
  22598. font-size: 14px;
  22599. font-weight: 400;
  22600. color: #cad1dc;
  22601. width: calc(100% - 20px);
  22602. margin: 0 auto;
  22603. box-sizing: border-box;
  22604. }
  22605. .pl_select_box {
  22606. height: 40px;
  22607. line-height: 40px;
  22608. width: 100%;
  22609. cursor: pointer;
  22610. padding: 0 20px;
  22611. box-sizing: border-box;
  22612. border-radius: 5px;
  22613. border: 1px solid #d6d6d6;
  22614. white-space: nowrap;
  22615. overflow: hidden;
  22616. text-overflow: ellipsis;
  22617. background: #fff;
  22618. text-align: left;
  22619. }
  22620. .newButton {
  22621. width: 102px;
  22622. height: 36px;
  22623. background: #e7ebf1;
  22624. border-radius: 4px;
  22625. color: #0e1e33;
  22626. font-weight: 400;
  22627. font-size: 14px;
  22628. border: none;
  22629. float: right;
  22630. margin-left: 10px;
  22631. }
  22632. .el-table >>> .even_row {
  22633. background-color: #f0f4fa;
  22634. }
  22635. .stageBoxCss,
  22636. .stageBoxIsCss {
  22637. display: flex;
  22638. flex-direction: row;
  22639. flex-wrap: nowrap;
  22640. align-items: center;
  22641. height: 50px;
  22642. border-bottom: 1px solid #e2f5fc;
  22643. cursor: pointer;
  22644. width: 100%;
  22645. }
  22646. .stageBoxIsCss {
  22647. background: #0061ff;
  22648. color: #fff;
  22649. border-radius: 8px;
  22650. }
  22651. .stageItemTitle {
  22652. display: flex;
  22653. flex-direction: row;
  22654. flex-wrap: nowrap;
  22655. align-items: center;
  22656. margin-left: 15px;
  22657. width: calc(100% - 50px);
  22658. }
  22659. .stageNav{
  22660. /* font-weight: bold; */
  22661. }
  22662. .stageItemTitle > div:first-child {
  22663. min-width: 55px;
  22664. }
  22665. .stageItemTitle > div:last-child {
  22666. max-width: 242px;
  22667. white-space: nowrap;
  22668. overflow: hidden;
  22669. text-overflow: ellipsis;
  22670. word-break: break-word;
  22671. width: calc(100% - 55px);
  22672. }
  22673. .closeTri,
  22674. .closeTri1 {
  22675. min-width: 15px;
  22676. width: 15px;
  22677. height: 15px;
  22678. transition: all .5s;
  22679. }
  22680. .closeTri1 {
  22681. padding-left: 10px;
  22682. cursor: pointer;
  22683. }
  22684. .closeTri > img,
  22685. .closeTri1 > img {
  22686. width: 100%;
  22687. height: 100%;
  22688. /* transition: all .5s; */
  22689. }
  22690. .noToolBlue {
  22691. min-width: 10px;
  22692. width: 10px;
  22693. height: 10px;
  22694. background: #0061ff;
  22695. border-radius: 50%;
  22696. margin-left: 13px;
  22697. }
  22698. .stageChild,
  22699. .toolChild {
  22700. height: 0;
  22701. overflow: hidden;
  22702. transition: all 0.5s;
  22703. }
  22704. .toolChild {
  22705. /* margin: 0 0 0 17px;
  22706. padding: 0 0 0 20px;
  22707. border-left: 1px solid #d7d7d7; */
  22708. }
  22709. .toolChild > div + div{
  22710. margin-top:5px;
  22711. }
  22712. .gjCss {
  22713. display: flex;
  22714. flex-direction: row;
  22715. flex-wrap: nowrap;
  22716. align-items: center;
  22717. padding: 10px 0 10px 40px;
  22718. box-sizing: border-box;
  22719. font-size: 14px;
  22720. cursor: pointer;
  22721. border-radius:5px;
  22722. }
  22723. .toolChild > div {
  22724. position: relative;
  22725. width:100%;
  22726. }
  22727. .toolChild > div::before {
  22728. /* content: "";
  22729. width: 15px;
  22730. height: 1px;
  22731. background: #cad1dc;
  22732. position: absolute;
  22733. top: 24px;
  22734. left: -20px;
  22735. display: block; */
  22736. }
  22737. .isGjCss {
  22738. /* color: #0061ff; */
  22739. color:#fff;
  22740. background: rgb(55, 129, 252);
  22741. /* background-color: #e0eafb !important;
  22742. color: #0061ff !important; */
  22743. }
  22744. .navItem {
  22745. background: #ffffff;
  22746. border-radius: 4px;
  22747. width: 100%;
  22748. margin: 10px auto;
  22749. position: relative;
  22750. height: 40px;
  22751. display: flex;
  22752. flex-direction: row;
  22753. flex-wrap: nowrap;
  22754. align-items: center;
  22755. }
  22756. .navItemList {
  22757. display: flex;
  22758. flex-direction: row;
  22759. flex-wrap: nowrap;
  22760. align-items: center;
  22761. padding: 0 13px;
  22762. cursor: pointer;
  22763. width: calc(100% - 60px);
  22764. height: 100%;
  22765. }
  22766. .navItemList > div:first-child {
  22767. min-width: 60px;
  22768. }
  22769. .navItemList > div:last-child {
  22770. width: calc(100% - 80px);
  22771. white-space: nowrap;
  22772. overflow: hidden;
  22773. text-overflow: ellipsis;
  22774. word-break: break-word;
  22775. }
  22776. /* .isItemList > div {
  22777. color: #fff !important;
  22778. } */
  22779. .tool_work_box {
  22780. width: 100%;
  22781. padding: 0 37px 0;
  22782. box-sizing: border-box;
  22783. }
  22784. .tool_box {
  22785. width: 100%;
  22786. padding: 0 0 0 20px;
  22787. }
  22788. .tool_type_box {
  22789. display: flex;
  22790. flex-direction: row;
  22791. align-items: baseline;
  22792. flex-wrap: nowrap;
  22793. justify-content: flex-start;
  22794. position: relative;
  22795. }
  22796. .toolSort {
  22797. display: flex;
  22798. flex-direction: row;
  22799. flex-wrap: wrap;
  22800. justify-content: flex-start;
  22801. align-items: flex-start;
  22802. padding: 0 0 15px 0;
  22803. }
  22804. .toolSort > div {
  22805. margin: 0 10px 0 0;
  22806. width: 135px;
  22807. box-sizing: border-box;
  22808. border: 2px solid transparent;
  22809. }
  22810. .tools {
  22811. width: 100%;
  22812. display: flex;
  22813. flex-direction: column;
  22814. flex-wrap: nowrap;
  22815. align-items: flex-start;
  22816. }
  22817. .whiteBIcon {
  22818. width: fit-content;
  22819. cursor: pointer;
  22820. display: flex;
  22821. flex-direction: column;
  22822. flex-wrap: nowrap;
  22823. align-items: center;
  22824. font-size: 14px;
  22825. }
  22826. .tool:hover {
  22827. border: 2px solid #a5c7ff;
  22828. border-radius: 5px;
  22829. }
  22830. .whiteBIcon > img {
  22831. width: 65px;
  22832. height: 100%;
  22833. }
  22834. .whiteBIcon > img {
  22835. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22836. border-radius: 15px;
  22837. }
  22838. .check {
  22839. /* width: 20px;
  22840. height: 20px; */
  22841. cursor: pointer;
  22842. margin: 10px 0;
  22843. position: absolute;
  22844. right: 2px;
  22845. top: -5px;
  22846. }
  22847. .noChoose,
  22848. .isChoose {
  22849. width: 15px;
  22850. height: 15px;
  22851. border-radius: 50%;
  22852. border: 1px solid #adadad;
  22853. }
  22854. .isChoose {
  22855. border: 4px solid #0363ff !important;
  22856. width: 10px;
  22857. height: 10px;
  22858. }
  22859. .isToolChoose {
  22860. border: 2px solid #5394ff !important;
  22861. border-radius: 5px;
  22862. box-shadow: 0 0 6px 0px #5394ff;
  22863. }
  22864. .checkDiv {
  22865. display: flex;
  22866. align-items: center;
  22867. }
  22868. .checkDiv span {
  22869. margin-left: 5px;
  22870. color: #858585;
  22871. }
  22872. .check img {
  22873. width: 20px;
  22874. height: 20px;
  22875. }
  22876. .lockTaskIcon {
  22877. width: 20px;
  22878. height: 20px;
  22879. position: absolute;
  22880. right: 10px;
  22881. top: 5px;
  22882. }
  22883. .lockTaskIcon > img {
  22884. width: 100%;
  22885. height: 100%;
  22886. }
  22887. .pick_box {
  22888. display: flex;
  22889. align-items: flex-start;
  22890. flex-wrap: wrap;
  22891. }
  22892. .selectBox {
  22893. width: 110px;
  22894. margin-left: 10px;
  22895. margin: 0 10px 0 auto;
  22896. }
  22897. .selectBox >>> .el-input__inner {
  22898. height: 30px;
  22899. line-height: 30px;
  22900. }
  22901. .selectBox >>> .el-input__icon {
  22902. line-height: 30px;
  22903. }
  22904. .sentenceTitle {
  22905. display: flex;
  22906. flex-direction: row;
  22907. flex-wrap: nowrap;
  22908. align-items: center;
  22909. }
  22910. .sentenceTitle::before {
  22911. content: attr(index);
  22912. background: #3681fc;
  22913. border-radius: 50%;
  22914. color: #fff;
  22915. width: 25px;
  22916. height: 25px;
  22917. min-width: 25px;
  22918. min-height: 25px;
  22919. text-align: center;
  22920. line-height: 25px;
  22921. margin-right: 5px;
  22922. }
  22923. .hfBox {
  22924. padding: 10px;
  22925. box-sizing: border-box;
  22926. }
  22927. .whoReplyWho {
  22928. display: flex;
  22929. flex-direction: row;
  22930. flex-wrap: nowrap;
  22931. align-items: baseline;
  22932. justify-content: flex-start;
  22933. }
  22934. .hfBottom {
  22935. display: flex;
  22936. flex-direction: row;
  22937. flex-wrap: nowrap;
  22938. align-items: center;
  22939. justify-content: space-between;
  22940. font-size: 14px;
  22941. }
  22942. .deleteHfItem {
  22943. cursor: pointer;
  22944. width: 20px;
  22945. height: 20px;
  22946. }
  22947. .deleteHfItem > img {
  22948. width: 100%;
  22949. height: 100%;
  22950. }
  22951. .whoReplyWho > .hfImg {
  22952. width: 12px;
  22953. height: 12px;
  22954. margin: 0 5px;
  22955. }
  22956. .whoReplyWho > .hfImg > img {
  22957. width: 100%;
  22958. height: 100%;
  22959. }
  22960. .hfContent {
  22961. padding-top: 10px;
  22962. box-sizing: border-box;
  22963. display: -webkit-box;
  22964. overflow: hidden;
  22965. white-space: normal !important;
  22966. text-overflow: ellipsis;
  22967. word-wrap: break-word;
  22968. -webkit-box-orient: vertical;
  22969. }
  22970. .hfTime {
  22971. text-align: left;
  22972. box-sizing: border-box;
  22973. padding: 10px 0 10px 0px;
  22974. color: #bfbfbf;
  22975. font-size: 14px;
  22976. }
  22977. .btnAllNT {
  22978. position: fixed;
  22979. bottom: 100px;
  22980. right: 40px;
  22981. z-index: 999;
  22982. display: flex;
  22983. flex-direction: row;
  22984. }
  22985. .btnAllNT > img {
  22986. cursor: pointer;
  22987. width: 80px;
  22988. }
  22989. .toolMask {
  22990. position: fixed;
  22991. width: 100%;
  22992. height: 100%;
  22993. background: #3f3c3c;
  22994. opacity: 0.5;
  22995. top: 0;
  22996. left: 0;
  22997. z-index: 999;
  22998. }
  22999. .addToolCss {
  23000. position: fixed;
  23001. z-index: 999;
  23002. background: #fff;
  23003. right: 5%;
  23004. bottom: 18%;
  23005. min-width: 1035px;
  23006. min-height: 300px;
  23007. border-radius: 10px;
  23008. box-shadow: 0 0 8px 1px #b2b2b2;
  23009. }
  23010. .toolTop {
  23011. display: flex;
  23012. flex-direction: row;
  23013. flex-wrap: nowrap;
  23014. justify-content: space-between;
  23015. align-items: center;
  23016. padding: 20px;
  23017. }
  23018. .toolTop > div:nth-child(2) {
  23019. width: 15px;
  23020. height: 15px;
  23021. padding-right: 10px;
  23022. cursor: pointer;
  23023. }
  23024. .toolTop > div:nth-child(2) > img {
  23025. width: 100%;
  23026. height: 100%;
  23027. }
  23028. .fullStyle>>>.el-dialog__body {
  23029. height: calc(100% - 125px) !important;
  23030. box-sizing: border-box;
  23031. padding: 30px 0 !important;
  23032. background: #fff !important;
  23033. }
  23034. .fullStyle>>>.el-dialog {
  23035. width: 100% !important;
  23036. max-width: 100% !important;
  23037. height: 100% !important;
  23038. margin: 0 !important;
  23039. }
  23040. .fullStyle {
  23041. width: 100% !important;
  23042. max-width: 100% !important;
  23043. height: 100% !important;
  23044. margin: 0 auto !important;
  23045. }
  23046. .fullStyle>>>.el-dialog__footer{
  23047. background: #fff !important;
  23048. }
  23049. .engUpBox {
  23050. width: 100%;
  23051. height: 100%;
  23052. }
  23053. .engTitle,
  23054. .engText {
  23055. display: flex;
  23056. flex-direction: row;
  23057. flex-wrap: nowrap;
  23058. align-items: flex-start;
  23059. padding: 0 20px 20px 20px;
  23060. box-sizing: border-box;
  23061. }
  23062. .engTitle > .div:first-child,
  23063. .engText > div:first-child {
  23064. min-width: 75px;
  23065. }
  23066. .correctBox{
  23067. width: 100%;
  23068. display: flex;
  23069. flex-direction: row;
  23070. flex-wrap: nowrap;
  23071. align-items: flex-start;
  23072. }
  23073. .oldBox{
  23074. width: 50%;
  23075. height: 100%;
  23076. display: flex;
  23077. flex-direction: column;
  23078. flex-wrap: nowrap;
  23079. align-items: center;
  23080. border-top: 1px solid #d9d9d9;
  23081. border-left: 1px solid #d9d9d9;
  23082. border-right: 1px solid #d9d9d9;
  23083. }
  23084. .oldBox>div:first-child{
  23085. width: 100%;
  23086. text-align: center;
  23087. background: #d9d9d9;
  23088. height: 35px;
  23089. line-height: 35px;
  23090. font-weight: bold;
  23091. }
  23092. .oldText{
  23093. width: 100%;
  23094. height: calc(100% - 35px);
  23095. overflow: auto;
  23096. margin: 10px 0;
  23097. display: flex;
  23098. flex-direction: column;
  23099. flex-wrap: nowrap;
  23100. align-content: center;
  23101. align-items: center;
  23102. }
  23103. .detailBox{
  23104. width: 50%;
  23105. padding: 10px;
  23106. background: #f6f6f6;
  23107. border-radius: 5px;
  23108. }
  23109. .oldDetail,.oldDetail1{
  23110. padding-bottom: 30px;
  23111. }
  23112. .oldImg{
  23113. width:30px;
  23114. height: 30px;
  23115. }
  23116. .oldImg>img{
  23117. width: 100%;
  23118. height: 100%;
  23119. }
  23120. .allName{
  23121. min-width: 200px;
  23122. white-space: nowrap;
  23123. overflow: hidden;
  23124. text-overflow: ellipsis;
  23125. word-break: break-word;
  23126. cursor: pointer;
  23127. text-align: center;
  23128. border: 1px solid #bcc2cc;
  23129. box-sizing: border-box;
  23130. }
  23131. .engUpTop{
  23132. max-height: 300px;
  23133. overflow: auto;
  23134. }
  23135. .isUpdateToolDetailClass{
  23136. padding: 0 !important;
  23137. }
  23138. .isUpdateToolDetailClass textarea{
  23139. padding:12px;
  23140. font-size: 16px;
  23141. min-height:100%;
  23142. width: 100%;
  23143. box-sizing:border-box;
  23144. outline: none;
  23145. border:none;
  23146. line-height: 30px;
  23147. resize: none;
  23148. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23149. color: #838383;
  23150. }
  23151. .show_taskD {
  23152. min-width: fit-content;
  23153. margin-left: 10px;
  23154. display: flex;
  23155. align-items: center;
  23156. font-size: 14px;
  23157. cursor: pointer;
  23158. color: #717c8d;
  23159. }
  23160. .show_taskD > img {
  23161. width: 15px;
  23162. margin-right: 5px;
  23163. transition: 0.2s all;
  23164. transform: rotate(-90deg);
  23165. }
  23166. .show_taskD.show > img {
  23167. transform: rotate(0deg);
  23168. }
  23169. .correctCss{
  23170. position: absolute;
  23171. bottom: -70px;
  23172. background: #409eff;
  23173. color: #fff;
  23174. }
  23175. </style>