studyStudent.vue 784 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833
  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. '/courseDetail?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. '/courseDetail?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: #eee 0px 0px 5px 5px;
  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: #eee 0px 0px 5px 5px;
  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 + "updateWorkNew4", 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 + "updateWorkNew4", 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 + "updateWorkNew4", 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 + "selectCourseDetail3", 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 + "updateCourseSLook", 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 + "updateCourseFollow", 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 + "updateCourseFollowC", 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 + "updateCourseLookOpen", 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 + "selectCourseSLook", 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 + "updateWorkNew4", 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. }
  20758. .lastText {
  20759. padding: 0 5px 2px 5px;
  20760. box-sizing: border-box;
  20761. font-size: 14px;
  20762. }
  20763. .lastImg > img {
  20764. width: 100%;
  20765. height: 100%;
  20766. }
  20767. /* .vedioTimeBox {
  20768. display: flex;
  20769. flex-direction: row;
  20770. align-items: center;
  20771. flex-wrap: nowrap;
  20772. position: relative;
  20773. } */
  20774. .navBox {
  20775. background: #fff;
  20776. height: calc(100% - 40px);
  20777. overflow-y: auto;
  20778. overflow-x: hidden;
  20779. }
  20780. .worksBox {
  20781. margin: 0 0 10px 25px;
  20782. border-bottom: 1px solid #eeeeee;
  20783. padding: 18px 20px;
  20784. border-radius: 4px;
  20785. width: 90%;
  20786. }
  20787. .worksBTitle {
  20788. font-size: 20px;
  20789. padding-bottom: 15px;
  20790. border-bottom: 1px solid #eeeeee;
  20791. display: flex;
  20792. align-items: center;
  20793. }
  20794. .greenBox {
  20795. width: 5px;
  20796. height: 30px;
  20797. background: #63b6fa;
  20798. margin-right: 5px;
  20799. }
  20800. .worksDetailBox {
  20801. display: flex;
  20802. width: 100%;
  20803. flex-direction: row;
  20804. flex-wrap: wrap;
  20805. align-items: flex-end;
  20806. justify-content: flex-start;
  20807. padding: 15px 5px;
  20808. box-sizing: border-box;
  20809. }
  20810. .works {
  20811. display: flex;
  20812. flex-direction: column;
  20813. flex-wrap: nowrap;
  20814. align-items: flex-start;
  20815. justify-content: flex-start;
  20816. align-content: center;
  20817. max-width: 240px;
  20818. width: calc(100% / 3 - 10px);
  20819. height: auto;
  20820. margin-right: 10px;
  20821. margin-bottom: 10px;
  20822. overflow: hidden;
  20823. height: 140px;
  20824. box-shadow: 0 0 6px 1px #dfdada;
  20825. border-radius: 15px;
  20826. }
  20827. .workImg {
  20828. width: 100%;
  20829. /* height: calc(100% - 40px); */
  20830. height: 105px;
  20831. position: relative;
  20832. }
  20833. .workImg > img {
  20834. width: 100%;
  20835. height: 100%;
  20836. object-fit: contain;
  20837. cursor: pointer;
  20838. }
  20839. .worksName {
  20840. height: 40px;
  20841. line-height: 40px;
  20842. display: flex;
  20843. width: 100%;
  20844. flex-direction: row;
  20845. flex-wrap: nowrap;
  20846. justify-content: space-between;
  20847. align-items: center;
  20848. margin: 0 0 0 10px;
  20849. }
  20850. .worksName > div:nth-child(1) {
  20851. width: 110px;
  20852. white-space: nowrap;
  20853. overflow: hidden;
  20854. text-overflow: ellipsis;
  20855. }
  20856. .worksName > div:nth-child(2) {
  20857. color: #b7b4b5;
  20858. }
  20859. .noWorksS {
  20860. padding: 15px 0;
  20861. display: flex;
  20862. flex-direction: row;
  20863. flex-wrap: wrap;
  20864. align-items: center;
  20865. justify-content: flex-start;
  20866. }
  20867. .noWorksName,
  20868. .isWorksName,
  20869. .isWorksName2 {
  20870. background: #ddebf8;
  20871. color: #000;
  20872. width: 90px;
  20873. height: 25px;
  20874. text-align: center;
  20875. line-height: 25px;
  20876. border-radius: 4px;
  20877. margin: 10px 15px 10px 0;
  20878. white-space: nowrap;
  20879. overflow: hidden;
  20880. padding: 5px;
  20881. text-overflow: ellipsis;
  20882. cursor: pointer;
  20883. border: 1px solid #ddebf8;
  20884. }
  20885. .noWorksName {
  20886. background: #fff;
  20887. color: #0061ff;
  20888. border: 1px solid #0061ff;
  20889. }
  20890. .isWorksName2 {
  20891. width: 100px;
  20892. height: 40px;
  20893. line-height: 40px;
  20894. position: relative;
  20895. background: #dae6f9;
  20896. }
  20897. .isWorksName {
  20898. background: #e7ebf1 !important;
  20899. width: 100px;
  20900. height: 40px;
  20901. line-height: 40px;
  20902. position: relative;
  20903. color: #acb4bf;
  20904. border: 1px solid #cad1dc !important;
  20905. }
  20906. .isSelectName,
  20907. .noWorksName:hover {
  20908. background: #3383fa !important;
  20909. color: #fff !important;
  20910. border: 1px solid #3383fa !important;
  20911. }
  20912. .title {
  20913. background: #1e5cc9;
  20914. /* width: 98%; */
  20915. height: 45px;
  20916. color: #fff;
  20917. line-height: 45px;
  20918. padding-left: 20px;
  20919. box-sizing: border-box;
  20920. }
  20921. .textBox {
  20922. font-size: 20px;
  20923. width: 90%;
  20924. display: flex;
  20925. flex-direction: column;
  20926. align-items: center;
  20927. margin: 20px auto 0;
  20928. max-height: calc(100% - 75px);
  20929. overflow: auto;
  20930. }
  20931. .textContent {
  20932. font-size: 18px;
  20933. width: 95%;
  20934. max-width: 95%;
  20935. }
  20936. .answerBg {
  20937. background: url("../assets/icon/answerBgNew.png") no-repeat;
  20938. background-size: 100% 100%;
  20939. width: 100%;
  20940. height: 100%;
  20941. color: #fff;
  20942. text-align: center;
  20943. display: flex;
  20944. flex-direction: column;
  20945. flex-wrap: nowrap;
  20946. align-items: center;
  20947. position: relative;
  20948. justify-content: center;
  20949. }
  20950. .answerBg > div:nth-child(1) {
  20951. /* font-size: 22px;
  20952. padding: 25px 0 10px; */
  20953. }
  20954. .answerContent {
  20955. width: 215px;
  20956. max-height: 60px;
  20957. word-break: break-all;
  20958. text-align: center;
  20959. /* white-space: nowrap; */
  20960. overflow: hidden;
  20961. text-overflow: ellipsis;
  20962. /* padding: 23px 0 0; */
  20963. -webkit-line-clamp: 3;
  20964. -webkit-box-orient: vertical;
  20965. display: -webkit-box;
  20966. font-size: 15px;
  20967. cursor: pointer;
  20968. }
  20969. .elist_input_box {
  20970. display: flex;
  20971. align-items: flex-start;
  20972. flex-wrap: nowrap;
  20973. padding: 10px 0 15px 30px;
  20974. flex-direction: column;
  20975. }
  20976. .elist_input {
  20977. /* width: 40%; */
  20978. width: 45%;
  20979. margin: 20px;
  20980. }
  20981. .elist_input .elist_input_box input {
  20982. font: inherit;
  20983. color: currentColor;
  20984. width: 200px;
  20985. padding: 8px 14px;
  20986. display: block;
  20987. min-width: 0;
  20988. outline: none;
  20989. border: 1px solid rgba(0, 0, 0, 0.23);
  20990. border-radius: 4px;
  20991. box-sizing: border-box;
  20992. background: #fff;
  20993. margin: 0 20px 0 0;
  20994. }
  20995. .elist_input .elist_input_box span {
  20996. height: 36px;
  20997. line-height: 36px;
  20998. color: rgb(82, 82, 82);
  20999. }
  21000. .elist_input .elist_input_box .remove {
  21001. height: 20px;
  21002. width: 20px;
  21003. background-size: 100% 100%;
  21004. background-position: unset;
  21005. margin-left: 5px;
  21006. }
  21007. .elist_input_box >>> .el-rate {
  21008. display: flex;
  21009. height: 36px;
  21010. align-items: center;
  21011. }
  21012. .elist_input_box .elist_inptu_text {
  21013. min-height: 50px;
  21014. /* width: 500px;
  21015. max-height: 150px; */
  21016. width: 100%;
  21017. line-height: 50px;
  21018. color: rgb(82, 82, 82);
  21019. overflow: auto;
  21020. text-indent: 5px;
  21021. background: #f7f6f9;
  21022. border-radius: 10px;
  21023. }
  21024. .elist_input_box .elist_inptu_text input {
  21025. width: 500px;
  21026. }
  21027. .elist_input_box >>> .el-rate__icon {
  21028. font-size: 24px;
  21029. }
  21030. .isClick {
  21031. background: #4d9def;
  21032. }
  21033. .bzBox {
  21034. display: flex;
  21035. flex-direction: row;
  21036. align-items: center;
  21037. }
  21038. .bzBox .yCss {
  21039. width: 7px;
  21040. height: 7px;
  21041. background: #fff;
  21042. margin: 0 16px 0 6px;
  21043. border-radius: 50%;
  21044. border: 5px solid #3681fc;
  21045. z-index: 99;
  21046. }
  21047. .bzBox > div:nth-child(2) {
  21048. font-size: 18px;
  21049. font-weight: bold;
  21050. color: #0e1e33;
  21051. }
  21052. .navTitile {
  21053. padding: 0 0px 0 15px;
  21054. font-size: 16px;
  21055. font-weight: bold;
  21056. color: #0e1e33;
  21057. height: 40px;
  21058. line-height: 40px;
  21059. }
  21060. .isTypeOne {
  21061. width: 240px;
  21062. height: 170px;
  21063. /* border: 1px solid #f8f8f8; */
  21064. border-radius: 10px;
  21065. box-shadow: 0 0 6px 1px #dfdada;
  21066. }
  21067. .e_add_top {
  21068. display: flex;
  21069. justify-content: space-between;
  21070. padding: 10px 20px;
  21071. border-radius: 3px;
  21072. background: #fff;
  21073. }
  21074. .e_add_title2 {
  21075. display: flex;
  21076. align-items: center;
  21077. }
  21078. .e_add_title2 span {
  21079. width: 40px;
  21080. }
  21081. .e_add_title {
  21082. display: flex;
  21083. align-items: center;
  21084. color: #b8b8b8;
  21085. font-size: 18px;
  21086. position: relative;
  21087. height: 40px;
  21088. width: 100%;
  21089. }
  21090. .e_add_title span {
  21091. margin-right: 10px;
  21092. }
  21093. .e_add_title .el_input {
  21094. width: 300px;
  21095. }
  21096. .e_add_title >>> .el-input__inner {
  21097. width: 400px;
  21098. }
  21099. .e_add_btn {
  21100. }
  21101. .e_add_content {
  21102. display: flex;
  21103. width: 100%;
  21104. max-width: 650px;
  21105. height: 550px;
  21106. }
  21107. .e_add_list {
  21108. background: #fff;
  21109. height: 500px;
  21110. width: 210px;
  21111. position: relative;
  21112. margin: 15px 5px 0 0;
  21113. flex-shrink: 0;
  21114. display: flex;
  21115. flex-direction: column;
  21116. }
  21117. .e_add_list_title {
  21118. font-size: 20px;
  21119. width: 100%;
  21120. box-sizing: border-box;
  21121. padding: 15px 40px;
  21122. text-align: center;
  21123. border-bottom: 1px solid #eaeaea;
  21124. position: relative;
  21125. display: flex;
  21126. align-items: center;
  21127. justify-content: center;
  21128. height: 57px;
  21129. background: #f6f6f6;
  21130. }
  21131. .e_add_list_title span {
  21132. overflow: hidden;
  21133. white-space: nowrap;
  21134. text-overflow: ellipsis;
  21135. }
  21136. .e_add_list_title img {
  21137. position: absolute;
  21138. right: 15px;
  21139. width: 25px;
  21140. cursor: pointer;
  21141. top: 50%;
  21142. transform: translateY(-50%);
  21143. }
  21144. .e_add_list_body {
  21145. height: calc(100% - 187px);
  21146. overflow: auto;
  21147. }
  21148. .e_add_list_child {
  21149. width: 100%;
  21150. display: flex;
  21151. align-items: center;
  21152. justify-content: center;
  21153. position: relative;
  21154. box-sizing: border-box;
  21155. padding: 15px 40px;
  21156. text-align: center;
  21157. }
  21158. .e_add_list_child span {
  21159. overflow: hidden;
  21160. white-space: nowrap;
  21161. text-overflow: ellipsis;
  21162. cursor: pointer;
  21163. }
  21164. .e_add_list_child img {
  21165. position: absolute;
  21166. right: 10px;
  21167. width: 21px;
  21168. cursor: pointer;
  21169. top: 50%;
  21170. transform: translateY(-50%);
  21171. }
  21172. .e_add_list_child + .e_add_list_child {
  21173. border-top: 1px solid #eaeaea;
  21174. }
  21175. .e_add_list_child .active {
  21176. color: #409eff;
  21177. }
  21178. .e_add_list_btn {
  21179. position: absolute;
  21180. bottom: 0;
  21181. height: 50px;
  21182. background: rgb(120, 120, 254);
  21183. width: 100%;
  21184. color: #fff;
  21185. font-size: 16px;
  21186. text-align: center;
  21187. line-height: 50px;
  21188. cursor: pointer;
  21189. }
  21190. .e_add_list_detail {
  21191. position: absolute;
  21192. bottom: 0;
  21193. height: 130px;
  21194. background: rgb(120, 120, 254);
  21195. width: 100%;
  21196. color: #fff;
  21197. font-size: 16px;
  21198. display: flex;
  21199. align-items: center;
  21200. justify-content: center;
  21201. }
  21202. .e_add_list_detail textarea {
  21203. height: 90%;
  21204. width: 95%;
  21205. border: none;
  21206. resize: none;
  21207. outline: none;
  21208. padding: 5px;
  21209. box-sizing: border-box;
  21210. }
  21211. .e_add_list_pbox {
  21212. width: 100%;
  21213. max-width: 650px;
  21214. /* height: 600px; */
  21215. }
  21216. .e_add_list_pbox_title {
  21217. height: 50px;
  21218. background: #fff;
  21219. display: flex;
  21220. align-items: center;
  21221. width: 100%;
  21222. box-sizing: border-box;
  21223. padding: 0 20px;
  21224. }
  21225. .type_title {
  21226. font-size: 18px;
  21227. font-weight: 700;
  21228. }
  21229. .type_content {
  21230. font-size: 16px;
  21231. /* margin-left: 30px; */
  21232. }
  21233. .type_content span + span {
  21234. margin-left: 20px;
  21235. }
  21236. .type_content span {
  21237. cursor: pointer;
  21238. padding-bottom: 5px;
  21239. box-sizing: border-box;
  21240. }
  21241. .type_content .active {
  21242. color: #409eff;
  21243. border-bottom: 2px solid #409eff;
  21244. }
  21245. .e_add_list_pbox_content {
  21246. height: calc(100% - 50px);
  21247. display: flex;
  21248. align-items: center;
  21249. width: 100%;
  21250. background: #fff;
  21251. }
  21252. .evaCss {
  21253. display: flex;
  21254. flex-direction: row;
  21255. flex-wrap: nowrap;
  21256. align-items: flex-start;
  21257. padding: 0 0 20px;
  21258. }
  21259. .cru_line {
  21260. position: absolute;
  21261. bottom: 0px;
  21262. transition: all 0.5s;
  21263. left: 0px;
  21264. width: 125px;
  21265. margin-left: -25px;
  21266. }
  21267. .isNoMessage {
  21268. width: 20%;
  21269. margin: 25% auto 0;
  21270. }
  21271. .isNoMessage > img {
  21272. width: 100%;
  21273. height: 100%;
  21274. }
  21275. .fullStyle >>> .el-dialog__body {
  21276. height: 100% !important;
  21277. }
  21278. .fullStyle >>> .el-dialog,
  21279. .fullStyle {
  21280. width: 100% !important;
  21281. max-width: 100% !important;
  21282. height: 100% !important;
  21283. margin: 0 !important;
  21284. }
  21285. .full_diy >>> .el-dialog {
  21286. margin: 0 !important;
  21287. height: 100%;
  21288. padding: 4px;
  21289. }
  21290. .full_diy >>> .el-dialog__body {
  21291. height: calc(100% - 100px);
  21292. }
  21293. .full_diy2 >>> .el-dialog__body {
  21294. height: calc(100% - 50px);
  21295. padding: 0;
  21296. }
  21297. .switchCss {
  21298. /* width: 100%; */
  21299. display: flex;
  21300. flex-direction: row;
  21301. flex-wrap: nowrap;
  21302. align-items: center;
  21303. /* justify-content: center; */
  21304. }
  21305. .isClickNav {
  21306. /* color: #499eef; */
  21307. color: #000;
  21308. }
  21309. .commentImg {
  21310. width: 25px;
  21311. height: 25px;
  21312. cursor: pointer;
  21313. }
  21314. .commentImg > img {
  21315. width: 100%;
  21316. height: 100%;
  21317. }
  21318. .comment {
  21319. background: #f9f9f9;
  21320. border-radius: 0 0 4px 4px;
  21321. display: flex;
  21322. flex-direction: row;
  21323. flex-wrap: nowrap;
  21324. align-items: center;
  21325. justify-content: flex-end;
  21326. height: 35px;
  21327. }
  21328. .commentList {
  21329. display: flex;
  21330. flex-direction: row;
  21331. flex-wrap: nowrap;
  21332. align-items: center;
  21333. justify-content: center;
  21334. align-content: center;
  21335. /* margin-left: 15px; */
  21336. /* margin-left: 8px; */
  21337. }
  21338. .scoreImg {
  21339. width: 17px;
  21340. height: 17px;
  21341. }
  21342. .studentDetail {
  21343. display: flex;
  21344. flex-direction: row;
  21345. flex-wrap: nowrap;
  21346. /* align-items: center; */
  21347. align-items: flex-start;
  21348. }
  21349. .tx {
  21350. width: 50px;
  21351. }
  21352. .tx > img {
  21353. width: 100%;
  21354. height: 100%;
  21355. }
  21356. .nameAndTime {
  21357. display: flex;
  21358. flex-direction: column;
  21359. flex-wrap: nowrap;
  21360. align-items: flex-start;
  21361. margin-left: 10px;
  21362. }
  21363. .worksAnswer {
  21364. color: #4078dd;
  21365. margin: 10px 0;
  21366. font-size: 16px;
  21367. position: relative;
  21368. }
  21369. .worksAnswer > img {
  21370. width: 500px;
  21371. height: 300px;
  21372. object-fit: contain;
  21373. margin: 0 auto;
  21374. display: block;
  21375. }
  21376. .commentTop {
  21377. border-bottom: 1px solid #eaeaea;
  21378. padding-bottom: 10px;
  21379. }
  21380. .commentBox {
  21381. padding-top: 15px;
  21382. }
  21383. .pl {
  21384. font-size: 18px;
  21385. }
  21386. .plPerson {
  21387. width: 100%;
  21388. }
  21389. .plName {
  21390. display: flex;
  21391. flex-direction: row;
  21392. flex-wrap: nowrap;
  21393. align-items: baseline;
  21394. color: #78787a;
  21395. width: 100%;
  21396. }
  21397. .deleteComment {
  21398. cursor: pointer;
  21399. margin-left: auto;
  21400. color: #237ade;
  21401. }
  21402. .plContent {
  21403. margin-top: 5px;
  21404. }
  21405. .evalCss {
  21406. background: #fff;
  21407. font-size: 18px;
  21408. }
  21409. .nav {
  21410. color: #9d9d9d;
  21411. padding: 5px 0 15px 20px;
  21412. }
  21413. .middleBox {
  21414. padding: 5px 0 15px 20px;
  21415. }
  21416. .pfBox {
  21417. padding-bottom: 30px;
  21418. }
  21419. .nameAndrate {
  21420. display: flex;
  21421. flex-direction: row;
  21422. flex-wrap: nowrap;
  21423. align-items: center;
  21424. padding-bottom: 10px;
  21425. height: 30px;
  21426. line-height: 30px;
  21427. }
  21428. .nameAndrate > div {
  21429. margin-left: 10px;
  21430. color: #000;
  21431. height: 30px;
  21432. }
  21433. .nameAndrate >>> .el-rate__icon {
  21434. font-size: 28px !important;
  21435. }
  21436. .pfBox > div:nth-child(2) {
  21437. background: #f7f6f9;
  21438. width: 400px;
  21439. min-height: 45px;
  21440. border-radius: 10px;
  21441. font-size: 16px;
  21442. display: flex;
  21443. flex-wrap: wrap;
  21444. align-items: center;
  21445. padding: 10px 20px;
  21446. box-sizing: border-box;
  21447. color: #000;
  21448. }
  21449. .bz {
  21450. display: flex;
  21451. flex-direction: row;
  21452. flex-wrap: nowrap;
  21453. align-items: flex-start;
  21454. }
  21455. .bz > div {
  21456. padding: 0 10px;
  21457. }
  21458. .select_box2_title {
  21459. background: #fff;
  21460. border-radius: 5px;
  21461. padding: 15px 10px;
  21462. box-sizing: border-box;
  21463. margin-bottom: 10px;
  21464. display: flex;
  21465. flex-direction: row;
  21466. flex-wrap: nowrap;
  21467. align-items: center;
  21468. }
  21469. .select_box2_title > div:nth-child(2) {
  21470. margin-left: 10px;
  21471. color: #c4c4c4;
  21472. }
  21473. .select_box2_box {
  21474. display: flex;
  21475. height: 500px;
  21476. }
  21477. .select_box2_img {
  21478. width: calc(100% - 310px);
  21479. height: 100%;
  21480. overflow: auto;
  21481. background: #fff;
  21482. border-radius: 5px;
  21483. }
  21484. .select_box2_img img {
  21485. width: 100%;
  21486. }
  21487. .select_box2_answer {
  21488. background: #fff;
  21489. margin-left: 10px;
  21490. border-radius: 5px;
  21491. width: 300px;
  21492. overflow: auto;
  21493. height: 90%;
  21494. display: flex;
  21495. flex-direction: column;
  21496. align-items: flex-start;
  21497. padding-top: 10px;
  21498. box-sizing: border-box;
  21499. position: relative;
  21500. }
  21501. .select_answer_title {
  21502. padding: 0 0 15px 20px;
  21503. color: #c4c4c4;
  21504. }
  21505. .select_box2_answer_box {
  21506. margin: 0 0 10px 20px;
  21507. width: 85%;
  21508. display: flex;
  21509. flex-direction: row;
  21510. flex-wrap: nowrap;
  21511. align-items: center;
  21512. }
  21513. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21514. color: #000;
  21515. }
  21516. .upAnswerCss {
  21517. position: absolute;
  21518. bottom: 15px;
  21519. right: 15px;
  21520. }
  21521. .upAnswerCss >>> .el-button {
  21522. width: 95px;
  21523. height: 35px;
  21524. line-height: 35px;
  21525. padding: 0;
  21526. }
  21527. .rightWidthCss {
  21528. width: 60%;
  21529. display: flex;
  21530. flex-direction: row;
  21531. align-items: flex-start;
  21532. }
  21533. .rightAnswer {
  21534. display: flex;
  21535. flex-direction: row;
  21536. flex-wrap: nowrap;
  21537. align-items: center;
  21538. color: red;
  21539. margin-bottom: 31px;
  21540. }
  21541. .rightAnswerCss {
  21542. display: flex;
  21543. flex-direction: column;
  21544. flex-wrap: nowrap;
  21545. padding-top: 60px;
  21546. }
  21547. .blueCss {
  21548. color: #767de1;
  21549. margin-left: 10px;
  21550. }
  21551. .redCss {
  21552. color: red;
  21553. }
  21554. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21555. color: rgb(0 123 255) !important;
  21556. }
  21557. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21558. color: rgb(0 123 255) !important;
  21559. }
  21560. .zuoyeYulan {
  21561. padding-top: 0;
  21562. font-size: 18px;
  21563. display: flex;
  21564. align-items: flex-end;
  21565. }
  21566. .buttonA {
  21567. margin-left: 10px;
  21568. padding: 0;
  21569. }
  21570. .displayBox {
  21571. margin-bottom: 10px;
  21572. display: block;
  21573. border-bottom: 3px solid #eee;
  21574. display: flex;
  21575. align-items: center;
  21576. }
  21577. .easy_comment {
  21578. width: calc(100% - 90px);
  21579. margin-left: 10px;
  21580. display: flex;
  21581. flex-wrap: wrap;
  21582. }
  21583. .easy_comment > div {
  21584. border: 1px solid #4a4a4a;
  21585. color: #666;
  21586. border-radius: 15px;
  21587. padding: 5px 10px;
  21588. font-size: 16px;
  21589. margin-bottom: 10px;
  21590. margin-right: 5px;
  21591. cursor: pointer;
  21592. }
  21593. .easy_comment div:hover {
  21594. border: 1px solid #f7ba2a;
  21595. color: #c69217;
  21596. }
  21597. .xuan_right_box {
  21598. padding: 10px 0;
  21599. background: #f0f4fa;
  21600. margin: 0 15px 0 25px;
  21601. border-bottom-left-radius: 5px;
  21602. border-bottom-right-radius: 5px;
  21603. width: 91.5%;
  21604. }
  21605. .tool_right_box {
  21606. display: flex;
  21607. align-items: center;
  21608. }
  21609. .tool_right_box + .tool_right_box {
  21610. margin-top: 10px;
  21611. }
  21612. .right_box_xuan {
  21613. border-radius: 5px;
  21614. padding: 5px;
  21615. margin-left: 10px;
  21616. min-width: 85px;
  21617. background: #fff;
  21618. color: #0061ff;
  21619. border: 1px solid #0061ff;
  21620. font-size: 14px;
  21621. }
  21622. .pButton:hover {
  21623. opacity: 1 !important;
  21624. }
  21625. .pButton {
  21626. position: fixed;
  21627. text-align: center;
  21628. cursor: pointer;
  21629. z-index: 999;
  21630. right: 20px;
  21631. top: 110px;
  21632. width: 50px;
  21633. height: 50px;
  21634. display: flex;
  21635. align-items: center;
  21636. justify-content: center;
  21637. border-radius: 5px;
  21638. }
  21639. .pzClass {
  21640. width: calc(100% - 340px);
  21641. }
  21642. .newDialogCss {
  21643. /* position: fixed;
  21644. right: 5%;
  21645. top: 50%;
  21646. width: 340px;
  21647. transform: translateY(-50%);
  21648. height: 60%;
  21649. box-shadow: 0px 0 8px 0px #555555;
  21650. border-radius: 15px;
  21651. z-index: 999; */
  21652. position: fixed;
  21653. right: 20px;
  21654. top: 101px;
  21655. width: 330px;
  21656. height: calc(100% - 80px);
  21657. z-index: 999;
  21658. background: #fff;
  21659. border-top-right-radius: 0px;
  21660. border-bottom-right-radius: 0px;
  21661. overflow: hidden;
  21662. }
  21663. .pzTop {
  21664. color: #fff;
  21665. background: #000;
  21666. display: flex;
  21667. flex-direction: row;
  21668. flex-wrap: nowrap;
  21669. align-items: center;
  21670. justify-content: space-between;
  21671. height: 40px;
  21672. border-radius: 15px 15px 0 0;
  21673. user-select: none;
  21674. }
  21675. .pzTop2 .checkbox {
  21676. display: flex;
  21677. align-items: center;
  21678. padding: 5px 30px;
  21679. flex: 0 0 auto;
  21680. font-weight: bold;
  21681. border-bottom: 1px solid #eee;
  21682. justify-content: space-between;
  21683. }
  21684. .pzTop2 .check {
  21685. text-align: center;
  21686. cursor: pointer;
  21687. box-sizing: border-box;
  21688. display: flex;
  21689. }
  21690. .pzTop2 img {
  21691. width: 25px;
  21692. cursor: pointer;
  21693. }
  21694. .pzTop > div:nth-child(1) {
  21695. padding-left: 10px;
  21696. }
  21697. .pzTop > div:nth-child(2) {
  21698. width: 15px;
  21699. height: 15px;
  21700. padding-right: 10px;
  21701. cursor: pointer;
  21702. }
  21703. .pzTop > div:nth-child(2) > img {
  21704. width: 100%;
  21705. height: 100%;
  21706. }
  21707. .pzBox,
  21708. .noPzBox {
  21709. height: calc(100% - 60px);
  21710. /* background: #ededed; */
  21711. background: #fff;
  21712. /* border-radius: 0 0 15px 15px; */
  21713. }
  21714. .noPzBox {
  21715. display: flex;
  21716. flex-direction: column;
  21717. flex-wrap: nowrap;
  21718. justify-content: center;
  21719. align-items: center;
  21720. }
  21721. .pzList {
  21722. background: #f7f7f7;
  21723. width: 90%;
  21724. margin: 0 auto 15px;
  21725. border-radius: 5px;
  21726. }
  21727. .pzNavTop {
  21728. display: flex;
  21729. flex-direction: row;
  21730. flex-wrap: nowrap;
  21731. padding: 10px 10px 0 10px;
  21732. align-items: center;
  21733. }
  21734. .pzDelete {
  21735. cursor: pointer;
  21736. margin-left: auto;
  21737. font-size: 14px;
  21738. color: #afafaf;
  21739. }
  21740. .pzNavTop > div:nth-child(1) {
  21741. background: #3760af;
  21742. width: 35px;
  21743. height: 35px;
  21744. color: #fff;
  21745. text-align: center;
  21746. line-height: 35px;
  21747. border-radius: 50%;
  21748. font-size: 14px;
  21749. }
  21750. .pzNavTop > div:nth-child(2) {
  21751. font-size: 18px;
  21752. color: #959595;
  21753. margin-left: 5px;
  21754. }
  21755. .pzContent {
  21756. padding: 10px;
  21757. word-break: break-word;
  21758. }
  21759. .pzContent audio {
  21760. width: 100%;
  21761. }
  21762. .pzContent audio::-webkit-media-controls-panel {
  21763. background: #fff;
  21764. }
  21765. .pzContent >>> img {
  21766. max-width: 100%;
  21767. }
  21768. .pzListBox {
  21769. padding-top: 15px;
  21770. height: calc(100% - 110px);
  21771. overflow: auto;
  21772. }
  21773. .addPzButton {
  21774. position: relative;
  21775. margin-top: 3px;
  21776. width: 100%;
  21777. }
  21778. .addPzButton .img1 {
  21779. position: absolute;
  21780. top: 50%;
  21781. right: 25px;
  21782. transform: translateY(-50%);
  21783. height: 100%;
  21784. display: flex;
  21785. align-items: center;
  21786. }
  21787. .addPzButton .img1 div {
  21788. display: flex;
  21789. }
  21790. .addPzButton .img1 div img {
  21791. width: 28px;
  21792. margin-left: 10px;
  21793. cursor: pointer;
  21794. }
  21795. .addPzButton .img1 div span {
  21796. font-size: 14px;
  21797. margin: 4px 0 0 3px;
  21798. color: #afafaf;
  21799. }
  21800. .addPz {
  21801. background: #4b79ce;
  21802. width: 100px;
  21803. color: #fff;
  21804. font-size: 12px;
  21805. height: 30px;
  21806. margin: 0 auto;
  21807. text-align: center;
  21808. line-height: 30px;
  21809. border-radius: 10px;
  21810. cursor: pointer;
  21811. }
  21812. .addDialogCss {
  21813. position: fixed;
  21814. width: 600px;
  21815. height: 70%;
  21816. min-height: 450px;
  21817. box-shadow: 0px 0 8px 0px #555555;
  21818. border-radius: 15px;
  21819. z-index: 999;
  21820. left: 50%;
  21821. top: 50%;
  21822. margin: -18% 0 0 -300px;
  21823. }
  21824. .teacherPz {
  21825. display: flex;
  21826. flex-direction: row;
  21827. align-items: center;
  21828. flex-wrap: nowrap;
  21829. }
  21830. .teacherPzImg {
  21831. width: 30px;
  21832. height: 30px;
  21833. }
  21834. .teacherPzImg > img {
  21835. width: 100%;
  21836. height: 100%;
  21837. }
  21838. .addPzBox {
  21839. height: calc(100% - 40px);
  21840. background: #ededed;
  21841. border-bottom-left-radius: 15px;
  21842. border-bottom-right-radius: 15px;
  21843. }
  21844. .pzAudioClass {
  21845. margin: 15px 14px;
  21846. background: #fff;
  21847. height: 100%;
  21848. display: flex;
  21849. justify-content: center;
  21850. align-items: center;
  21851. }
  21852. .pzConText {
  21853. width: 95%;
  21854. height: 100%;
  21855. margin: 10px auto 0;
  21856. border: none;
  21857. background: #fff;
  21858. border-radius: 0px;
  21859. }
  21860. .pzConText >>> .text {
  21861. height: calc(100% - 82px);
  21862. }
  21863. .addTextCss {
  21864. background: #4b79ce;
  21865. width: 80px;
  21866. height: 30px;
  21867. text-align: center;
  21868. color: #fff;
  21869. line-height: 30px;
  21870. border-radius: 10px;
  21871. margin: 10px auto 0;
  21872. cursor: pointer;
  21873. }
  21874. .pzConText:focus-visible {
  21875. border: none !important;
  21876. }
  21877. .maxWidth {
  21878. width: 1000px;
  21879. }
  21880. .noPz {
  21881. width: 150px;
  21882. margin: 0 auto 20%;
  21883. }
  21884. .noPz > img {
  21885. width: 100%;
  21886. height: 100%;
  21887. }
  21888. .timeAndReply {
  21889. display: flex;
  21890. flex-direction: row;
  21891. flex-wrap: nowrap;
  21892. justify-content: space-between;
  21893. align-items: center;
  21894. font-size: 14px;
  21895. box-sizing: border-box;
  21896. padding: 0 10px 10px 0px;
  21897. }
  21898. .timeAndReply .time {
  21899. color: #bfbfbf;
  21900. padding: 0 0 0 10px;
  21901. box-sizing: border-box;
  21902. }
  21903. .timeAndReply > div:last-child {
  21904. cursor: pointer;
  21905. color: #777;
  21906. }
  21907. /* table 样式 */
  21908. .cont >>> table {
  21909. border-top: 1px solid #ccc;
  21910. border-left: 1px solid #ccc;
  21911. }
  21912. .cont >>> table td,
  21913. .cont >>> table th {
  21914. border-bottom: 1px solid #ccc;
  21915. border-right: 1px solid #ccc;
  21916. /* padding: 20px 5px; */
  21917. padding: 5px 10px;
  21918. max-width: 0px;
  21919. height: 30px;
  21920. vertical-align: baseline;
  21921. box-sizing: border-box;
  21922. }
  21923. .cont >>> table th {
  21924. border-bottom: 2px solid #ccc;
  21925. text-align: center;
  21926. }
  21927. /* blockquote 样式 */
  21928. .cont >>> blockquote {
  21929. display: block;
  21930. border-left: 8px solid #d0e5f2;
  21931. padding: 5px 10px;
  21932. margin: 10px 0;
  21933. line-height: 1.4;
  21934. font-size: 100%;
  21935. background-color: #f1f1f1;
  21936. }
  21937. /* code 样式 */
  21938. .cont >>> code {
  21939. display: inline-block;
  21940. /* *display: inline; */
  21941. zoom: 1;
  21942. background-color: #f1f1f1;
  21943. border-radius: 3px;
  21944. padding: 3px 5px;
  21945. margin: 0 3px;
  21946. }
  21947. .cont >>> pre code {
  21948. display: block;
  21949. }
  21950. /* ul ol 样式 */
  21951. .cont >>> ul,
  21952. ol {
  21953. margin: 10px 0 10px 20px;
  21954. }
  21955. .addPzCheck {
  21956. display: flex;
  21957. flex-direction: row;
  21958. flex-wrap: nowrap;
  21959. padding: 10px 15px 0;
  21960. }
  21961. .addPzCheck span {
  21962. cursor: pointer;
  21963. padding-bottom: 5px;
  21964. font-weight: bold;
  21965. }
  21966. .addPzCheck span + span {
  21967. margin-left: 10px;
  21968. }
  21969. .addPzCheck .isChooseActive {
  21970. color: #3e88f4;
  21971. border-bottom: 2px solid #2f80f3;
  21972. }
  21973. /* code 样式 */
  21974. .cont {
  21975. /* -webkit-user-modify: read-write; */
  21976. overflow-wrap: break-word;
  21977. -webkit-line-break: after-white-space;
  21978. }
  21979. .scoreBox,
  21980. .scoreDetailBox {
  21981. display: flex;
  21982. align-items: center;
  21983. justify-content: flex-start;
  21984. margin-top: 20px;
  21985. font-size: 18px;
  21986. width: 100%;
  21987. }
  21988. .scoreBox .t,
  21989. .scoreDetailBox .t {
  21990. margin-right: 10px;
  21991. width: 100px;
  21992. text-align: right;
  21993. }
  21994. .scoreDetailBox {
  21995. align-items: flex-start;
  21996. }
  21997. .scoreDetailBox >>> .el-textarea {
  21998. width: calc(100% - 200px);
  21999. }
  22000. .scoreBox >>> .el-input {
  22001. width: 130px;
  22002. font-size: 38px;
  22003. }
  22004. .scoreBox >>> .el-input__inner {
  22005. height: 60px;
  22006. }
  22007. .answerScore {
  22008. position: absolute;
  22009. top: 10px;
  22010. right: 10px;
  22011. background: #0000008f;
  22012. border-radius: 5px;
  22013. padding: 3px 5px;
  22014. font-size: 14px;
  22015. color: #fff;
  22016. cursor: pointer;
  22017. }
  22018. .open_box .switch_box {
  22019. width: 100%;
  22020. margin: 0 auto;
  22021. display: flex;
  22022. justify-content: space-between;
  22023. }
  22024. .open_box .switch_box + .switch_box {
  22025. margin-top: 10px;
  22026. }
  22027. .deleteImg,.deleteImg1 {
  22028. width: 25px !important;
  22029. height: 25px !important;
  22030. cursor: pointer;
  22031. position: absolute;
  22032. top: 10px;
  22033. right: 10px;
  22034. }
  22035. .deleteImg2 {
  22036. width: 23px !important;
  22037. height: 23px !important;
  22038. top: 5px;
  22039. right: 5px;
  22040. }
  22041. .deleteImg1{
  22042. width: 23px !important;
  22043. height: 23px !important;
  22044. top: 5px !important;
  22045. right: 30px !important;
  22046. }
  22047. .rightW {
  22048. right: 40px;
  22049. }
  22050. .drawPBox {
  22051. display: flex;
  22052. flex-direction: column;
  22053. position: relative;
  22054. }
  22055. .drawPBox span {
  22056. font-size: 18px;
  22057. color: #606266;
  22058. padding-bottom: 10px;
  22059. margin: 10px 0;
  22060. border-bottom: 1px solid #eaeaea;
  22061. }
  22062. .drawPBox img {
  22063. width: 500px;
  22064. height: 300px;
  22065. object-fit: contain;
  22066. cursor: pointer;
  22067. margin: 0 auto;
  22068. }
  22069. .sentenBox {
  22070. background: #fff;
  22071. height: 450px;
  22072. overflow: auto;
  22073. background-image: url("../assets/icon/conSentences/stuBg.png");
  22074. background-position: 102%;
  22075. background-repeat: no-repeat;
  22076. background-size: 60%;
  22077. }
  22078. .addSen {
  22079. background: #409efe;
  22080. width: 90px;
  22081. color: #fff;
  22082. height: 35px;
  22083. text-align: center;
  22084. line-height: 35px;
  22085. border-radius: 5px;
  22086. float: right;
  22087. margin: 10px 20px 0 0;
  22088. cursor: pointer;
  22089. }
  22090. .sentenTop {
  22091. display: flex;
  22092. flex-direction: row;
  22093. flex-wrap: nowrap;
  22094. align-items: center;
  22095. padding: 55px 0 0 20px;
  22096. box-sizing: border-box;
  22097. }
  22098. .sentenTop > div:nth-child(2) {
  22099. width: 300px;
  22100. margin: 0 15px;
  22101. }
  22102. .sentenTop > div:nth-child(3) {
  22103. background: #409efe;
  22104. color: #fff;
  22105. width: 65px;
  22106. height: 35px;
  22107. text-align: center;
  22108. line-height: 35px;
  22109. border-radius: 5px;
  22110. cursor: pointer;
  22111. }
  22112. .cardList,
  22113. .cardList1 {
  22114. padding: 10px 0 10px 0;
  22115. display: flex;
  22116. flex-direction: row;
  22117. flex-wrap: wrap;
  22118. align-items: center;
  22119. box-sizing: border-box;
  22120. border-bottom: 1px solid #f4f4f4;
  22121. width: 98%;
  22122. margin: 0 auto;
  22123. min-width: 60%;
  22124. max-width: 85%;
  22125. }
  22126. .cardList1 {
  22127. padding: 10px 0 10px 10px !important;
  22128. margin: 0 !important;
  22129. }
  22130. .cardBox {
  22131. display: flex;
  22132. flex-direction: row;
  22133. flex-wrap: wrap;
  22134. align-items: center;
  22135. align-content: center;
  22136. }
  22137. .cardBox > div {
  22138. margin-bottom: 10px;
  22139. }
  22140. .isCard,
  22141. .isChooseCard,
  22142. .noCard,
  22143. .isCard1 {
  22144. width: 130px;
  22145. height: 60px;
  22146. text-align: center;
  22147. line-height: 60px;
  22148. font-size: 20px;
  22149. cursor: pointer;
  22150. background-image: url("../assets/icon/conSentences/titleBorder.png");
  22151. background-size: cover;
  22152. transition: all 2s;
  22153. margin-right: 20px;
  22154. }
  22155. .isCard > div,
  22156. .noCard > div,
  22157. .isCard1 > div {
  22158. white-space: nowrap;
  22159. overflow: hidden;
  22160. text-overflow: ellipsis;
  22161. width: 75%;
  22162. margin: 0 auto;
  22163. }
  22164. .noCard {
  22165. background-image: none;
  22166. }
  22167. .isCard1 {
  22168. background-image: url("../assets/icon/conSentences/answerBorder.png");
  22169. }
  22170. .isChooseCard {
  22171. background-image: none;
  22172. border: 1px dashed #b9b9b9;
  22173. border-radius: 10px;
  22174. }
  22175. .card {
  22176. width: 130px;
  22177. height: 60px;
  22178. }
  22179. .card > img {
  22180. width: 100%;
  22181. height: 100%;
  22182. }
  22183. .rightCardBox {
  22184. margin: 10px 0 0 10px;
  22185. }
  22186. .rightCardBox > div:nth-child(1) {
  22187. margin-bottom: 10px;
  22188. }
  22189. .cardCss {
  22190. display: flex;
  22191. flex-direction: column;
  22192. flex-wrap: nowrap;
  22193. align-items: center;
  22194. border-bottom: 3px solid #b4c3d3;
  22195. padding: 0 0 5px 0;
  22196. margin-right: 10px;
  22197. }
  22198. .cardCss > div:nth-child(2) {
  22199. background: #5b7b9d;
  22200. color: #fff;
  22201. width: 20px;
  22202. height: 20px;
  22203. border-radius: 50%;
  22204. text-align: center;
  22205. line-height: 20px;
  22206. }
  22207. .isWrong {
  22208. display: flex;
  22209. flex-direction: row;
  22210. flex-wrap: nowrap;
  22211. align-content: center;
  22212. align-items: center;
  22213. }
  22214. .answerRight {
  22215. width: 25%;
  22216. }
  22217. .isTj {
  22218. display: flex;
  22219. flex-direction: row;
  22220. flex-wrap: nowrap;
  22221. align-items: center;
  22222. }
  22223. .isTj > div:nth-child(2) {
  22224. color: #727070;
  22225. margin-left: 10px;
  22226. }
  22227. .isTjImg {
  22228. width: 30px;
  22229. height: 30px;
  22230. }
  22231. .isTjImg > img {
  22232. width: 100%;
  22233. height: 100%;
  22234. }
  22235. .cardAnswerBox {
  22236. font-size: 18px;
  22237. width: 97%;
  22238. border: 5px;
  22239. padding: 0;
  22240. border-radius: 5px;
  22241. margin: 10px auto;
  22242. word-break: break-word;
  22243. }
  22244. .w_name {
  22245. margin-bottom: 10px;
  22246. }
  22247. .w_name span {
  22248. font-size: 16px;
  22249. }
  22250. .w_teachert {
  22251. width: 50px !important;
  22252. position: absolute;
  22253. height: auto !important;
  22254. z-index: 10;
  22255. right: 25px;
  22256. top: -25px;
  22257. }
  22258. .group_workBox {
  22259. }
  22260. .group_workBox + .group_workBox {
  22261. margin-top: 20px;
  22262. }
  22263. .group_box {
  22264. padding-bottom: 20px;
  22265. border-bottom: 2px solid #f0f0f0;
  22266. margin-top: 10px;
  22267. }
  22268. .group_title {
  22269. display: flex;
  22270. align-items: center;
  22271. justify-content: space-between;
  22272. width: 95%;
  22273. }
  22274. .group_name {
  22275. background-image: url(../assets/icon/groupN.png);
  22276. width: 220px;
  22277. background-size: 100% 100%;
  22278. height: 67px;
  22279. padding: 0 20px 0 43px;
  22280. box-sizing: border-box;
  22281. line-height: 63px;
  22282. color: #fff;
  22283. overflow: hidden;
  22284. white-space: nowrap;
  22285. text-overflow: ellipsis;
  22286. }
  22287. .group_work {
  22288. width: 100%;
  22289. padding: 0 10px;
  22290. box-sizing: border-box;
  22291. display: flex;
  22292. flex-wrap: wrap;
  22293. }
  22294. .g_d_box {
  22295. display: flex;
  22296. flex-flow: wrap;
  22297. justify-content: space-around;
  22298. }
  22299. .g_d_box .isChair {
  22300. background-image: url(../assets/avatar.png) !important;
  22301. }
  22302. .g_d_group {
  22303. width: 500px;
  22304. margin-bottom: 80px;
  22305. }
  22306. .g_d_group_chair {
  22307. display: flex;
  22308. align-items: center;
  22309. justify-content: center;
  22310. }
  22311. .g_d_group_chair > div + div {
  22312. margin-left: 30px;
  22313. }
  22314. .g_d_group_chair > div,
  22315. .g_d_group_chair2 > div {
  22316. display: flex;
  22317. flex-direction: column;
  22318. align-items: center;
  22319. }
  22320. .g_d_group_chair > div > span:nth-child(1),
  22321. .g_d_group_chair2 > div > span:nth-child(1) {
  22322. background-image: url(../assets/icon/chair.png);
  22323. width: 50px;
  22324. height: 50px;
  22325. display: block;
  22326. background-size: 100% 100%;
  22327. }
  22328. .g_d_group_tableBox {
  22329. display: flex;
  22330. align-items: center;
  22331. justify-content: center;
  22332. }
  22333. .g_d_group_chair2 {
  22334. display: flex;
  22335. flex-direction: column;
  22336. align-items: center;
  22337. justify-content: center;
  22338. }
  22339. .g_d_group_chair2 > div + div {
  22340. margin-top: 10px;
  22341. }
  22342. .g_d_group_table {
  22343. background-image: url(../assets/icon/groupBg.png);
  22344. width: 354px;
  22345. height: 196px;
  22346. background-size: 100% 100%;
  22347. display: flex;
  22348. align-items: center;
  22349. justify-content: center;
  22350. flex-direction: column;
  22351. color: #fff;
  22352. }
  22353. .g_d_group_table > div:nth-child(1) {
  22354. font-size: 24px;
  22355. margin-bottom: 5px;
  22356. }
  22357. .g_d_group_table > div:nth-child(2) div {
  22358. cursor: pointer;
  22359. background: #2e77bf;
  22360. padding: 4px 10px;
  22361. border-radius: 5px;
  22362. }
  22363. .groupBox {
  22364. }
  22365. .groupContent + .groupContent {
  22366. margin-top: 30px;
  22367. }
  22368. .groupTitle {
  22369. font-size: 24px;
  22370. color: rgb(80, 80, 80);
  22371. margin-bottom: 20px;
  22372. }
  22373. .groupName {
  22374. display: flex;
  22375. align-items: center;
  22376. }
  22377. .groupn {
  22378. font-size: 15px;
  22379. margin-right: 10px;
  22380. }
  22381. .groupName + .groupName {
  22382. margin-top: 15px;
  22383. }
  22384. .groupBtn {
  22385. margin-left: 10px;
  22386. }
  22387. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22388. text-align: left;
  22389. }
  22390. .g_d_btnBox {
  22391. display: flex;
  22392. justify-content: flex-end;
  22393. align-items: center;
  22394. margin-bottom: 20px;
  22395. }
  22396. .updateChair {
  22397. position: relative;
  22398. }
  22399. .updateChairBtn {
  22400. position: absolute;
  22401. width: 50px;
  22402. height: 50px;
  22403. overflow: hidden;
  22404. /* display: flex; */
  22405. align-items: center;
  22406. justify-content: center;
  22407. background: #00000087;
  22408. color: #fff;
  22409. border-radius: 50px;
  22410. display: none;
  22411. cursor: pointer;
  22412. }
  22413. .updateChair:hover .updateChairBtn {
  22414. display: flex;
  22415. }
  22416. .group_staic_box {
  22417. display: flex;
  22418. padding: 30px 40px 10px;
  22419. flex-wrap: wrap;
  22420. }
  22421. .group_staic {
  22422. /* width: 50%; */
  22423. margin-bottom: 20px;
  22424. display: flex;
  22425. align-items: center;
  22426. }
  22427. .group_staic span:nth-child(1) {
  22428. width: 150px;
  22429. text-align: right;
  22430. margin-right: 15px;
  22431. }
  22432. .group_staic span:nth-child(2) {
  22433. background: rgb(0 123 255);
  22434. color: #fff;
  22435. border-radius: 5px;
  22436. padding: 5px;
  22437. }
  22438. .codeFileBox {
  22439. height: 300px;
  22440. background: #fff;
  22441. display: flex;
  22442. align-items: center;
  22443. justify-content: center;
  22444. }
  22445. .codeFileBox img {
  22446. width: 200px;
  22447. margin: 0;
  22448. height: auto;
  22449. }
  22450. .codeFileBox div {
  22451. background: rgb(80, 142, 226);
  22452. color: #fff;
  22453. padding: 10px 20px;
  22454. border-radius: 25px;
  22455. cursor: pointer;
  22456. margin-left: 15px;
  22457. }
  22458. .radioBox {
  22459. display: flex;
  22460. flex-direction: column;
  22461. flex-wrap: nowrap;
  22462. align-items: flex-start;
  22463. }
  22464. .radioBox > div {
  22465. margin: 10px 0 0 10px;
  22466. }
  22467. /* .radioBox >>> .el-radio__input,
  22468. .radioBox >>> .el-checkbox__inner {
  22469. margin-left: 10px;
  22470. } */
  22471. .radioBox >>> .el-radio__label,
  22472. .radioBox >>> .el-checkbox__label {
  22473. display: flex;
  22474. align-items: center;
  22475. width: 100%;
  22476. }
  22477. .radioBox >>> .el-radio__label > span {
  22478. width: 100%;
  22479. display: -webkit-box;
  22480. overflow: hidden;
  22481. white-space: normal !important;
  22482. text-overflow: ellipsis;
  22483. word-wrap: break-word;
  22484. }
  22485. .inImg {
  22486. width: 100px;
  22487. cursor: pointer;
  22488. }
  22489. .inImg > img {
  22490. width: 100%;
  22491. height: 100%;
  22492. object-fit: cover;
  22493. }
  22494. .timuImgBox {
  22495. margin: 10px 0;
  22496. display: flex;
  22497. flex-direction: column;
  22498. flex-wrap: wrap;
  22499. align-items: flex-start;
  22500. }
  22501. .timuImg {
  22502. width: 150px;
  22503. margin: 5px 0;
  22504. cursor: pointer;
  22505. }
  22506. .timuImg > img {
  22507. width: 100%;
  22508. height: 100%;
  22509. object-fit: cover;
  22510. }
  22511. .worksTop {
  22512. display: flex;
  22513. flex-direction: row;
  22514. align-items: flex-end;
  22515. }
  22516. .worksTitle{
  22517. display: flex;
  22518. flex-direction: row;
  22519. flex-wrap: nowrap;
  22520. align-items: center;
  22521. }
  22522. .worksTitle::before,.worksTop::before{
  22523. content: '';
  22524. display: block;
  22525. width: 3px;
  22526. height: 20px;
  22527. background: #0061FF;
  22528. border-radius: 3px;
  22529. margin: 0 5px 0 0;
  22530. }
  22531. .corOpen {
  22532. margin: 0 0 0 10px;
  22533. font-size: 14px;
  22534. cursor: pointer;
  22535. color: #505050;
  22536. }
  22537. .corOpen:hover {
  22538. color: #499eef;
  22539. }
  22540. .navCorOpenBox {
  22541. display: flex;
  22542. flex-direction: row;
  22543. align-items: center;
  22544. justify-content: space-between;
  22545. height: 55px;
  22546. background: #ffffff;
  22547. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22548. border-radius: 8px 8px 0px 0px;
  22549. z-index: 9;
  22550. position: relative;
  22551. }
  22552. .navCorOpen {
  22553. padding-right: 15px;
  22554. cursor: pointer;
  22555. width: 45px;
  22556. display: flex;
  22557. }
  22558. .navCorOpen > img {
  22559. width: 100%;
  22560. height: 100%;
  22561. }
  22562. .mlImg {
  22563. width: 40px !important;
  22564. min-width: 40px;
  22565. cursor: pointer;
  22566. transform: rotate(180deg);
  22567. }
  22568. .mlImg > img {
  22569. width: 100%;
  22570. height: 100%;
  22571. }
  22572. .navLeftCss {
  22573. width: 100% !important;
  22574. left: 0 !important;
  22575. }
  22576. .isContentCss {
  22577. width: 100% !important;
  22578. }
  22579. .isAllWidth {
  22580. width: 100% !important;
  22581. }
  22582. .group_switch {
  22583. margin-right: 10px;
  22584. height: 30px;
  22585. display: flex;
  22586. align-items: center;
  22587. }
  22588. .group_switch > span {
  22589. margin-right: 5px;
  22590. }
  22591. .fileC_box {
  22592. padding-top: 15px;
  22593. }
  22594. .fileC_box > .fileC_title {
  22595. padding: 10px 5px 14px 10px;
  22596. border-top: 1px solid #cad1dc;
  22597. font-size: 14px;
  22598. font-weight: 400;
  22599. color: #cad1dc;
  22600. width: calc(100% - 20px);
  22601. margin: 0 auto;
  22602. box-sizing: border-box;
  22603. }
  22604. .pl_select_box {
  22605. height: 40px;
  22606. line-height: 40px;
  22607. width: 100%;
  22608. cursor: pointer;
  22609. padding: 0 20px;
  22610. box-sizing: border-box;
  22611. border-radius: 5px;
  22612. border: 1px solid #d6d6d6;
  22613. white-space: nowrap;
  22614. overflow: hidden;
  22615. text-overflow: ellipsis;
  22616. background: #fff;
  22617. text-align: left;
  22618. }
  22619. .newButton {
  22620. width: 102px;
  22621. height: 36px;
  22622. background: #e7ebf1;
  22623. border-radius: 4px;
  22624. color: #0e1e33;
  22625. font-weight: 400;
  22626. font-size: 14px;
  22627. border: none;
  22628. float: right;
  22629. margin-left: 10px;
  22630. }
  22631. .el-table >>> .even_row {
  22632. background-color: #f0f4fa;
  22633. }
  22634. .stageBoxCss,
  22635. .stageBoxIsCss {
  22636. display: flex;
  22637. flex-direction: row;
  22638. flex-wrap: nowrap;
  22639. align-items: center;
  22640. height: 50px;
  22641. border-bottom: 1px solid #e2f5fc;
  22642. cursor: pointer;
  22643. width: 100%;
  22644. }
  22645. .stageBoxIsCss {
  22646. background: #0061ff;
  22647. color: #fff;
  22648. border-radius: 8px;
  22649. }
  22650. .stageItemTitle {
  22651. display: flex;
  22652. flex-direction: row;
  22653. flex-wrap: nowrap;
  22654. align-items: center;
  22655. margin-left: 15px;
  22656. width: calc(100% - 50px);
  22657. }
  22658. .stageNav{
  22659. /* font-weight: bold; */
  22660. }
  22661. .stageItemTitle > div:first-child {
  22662. min-width: 55px;
  22663. }
  22664. .stageItemTitle > div:last-child {
  22665. max-width: 242px;
  22666. white-space: nowrap;
  22667. overflow: hidden;
  22668. text-overflow: ellipsis;
  22669. word-break: break-word;
  22670. width: calc(100% - 55px);
  22671. }
  22672. .closeTri,
  22673. .closeTri1 {
  22674. min-width: 15px;
  22675. width: 15px;
  22676. height: 15px;
  22677. transition: all .5s;
  22678. }
  22679. .closeTri1 {
  22680. padding-left: 10px;
  22681. cursor: pointer;
  22682. }
  22683. .closeTri > img,
  22684. .closeTri1 > img {
  22685. width: 100%;
  22686. height: 100%;
  22687. /* transition: all .5s; */
  22688. }
  22689. .noToolBlue {
  22690. min-width: 10px;
  22691. width: 10px;
  22692. height: 10px;
  22693. background: #0061ff;
  22694. border-radius: 50%;
  22695. margin-left: 13px;
  22696. }
  22697. .stageChild,
  22698. .toolChild {
  22699. height: 0;
  22700. overflow: hidden;
  22701. transition: all 0.5s;
  22702. }
  22703. .toolChild {
  22704. /* margin: 0 0 0 17px;
  22705. padding: 0 0 0 20px;
  22706. border-left: 1px solid #d7d7d7; */
  22707. }
  22708. .toolChild > div + div{
  22709. margin-top:5px;
  22710. }
  22711. .gjCss {
  22712. display: flex;
  22713. flex-direction: row;
  22714. flex-wrap: nowrap;
  22715. align-items: center;
  22716. padding: 10px 0 10px 40px;
  22717. box-sizing: border-box;
  22718. font-size: 14px;
  22719. cursor: pointer;
  22720. border-radius:5px;
  22721. }
  22722. .toolChild > div {
  22723. position: relative;
  22724. width:100%;
  22725. }
  22726. .toolChild > div::before {
  22727. /* content: "";
  22728. width: 15px;
  22729. height: 1px;
  22730. background: #cad1dc;
  22731. position: absolute;
  22732. top: 24px;
  22733. left: -20px;
  22734. display: block; */
  22735. }
  22736. .isGjCss {
  22737. /* color: #0061ff; */
  22738. color:#fff;
  22739. background: rgb(55, 129, 252);
  22740. /* background-color: #e0eafb !important;
  22741. color: #0061ff !important; */
  22742. }
  22743. .navItem {
  22744. background: #ffffff;
  22745. border-radius: 4px;
  22746. width: 100%;
  22747. margin: 10px auto;
  22748. position: relative;
  22749. height: 40px;
  22750. display: flex;
  22751. flex-direction: row;
  22752. flex-wrap: nowrap;
  22753. align-items: center;
  22754. }
  22755. .navItemList {
  22756. display: flex;
  22757. flex-direction: row;
  22758. flex-wrap: nowrap;
  22759. align-items: center;
  22760. padding: 0 13px;
  22761. cursor: pointer;
  22762. width: calc(100% - 60px);
  22763. height: 100%;
  22764. }
  22765. .navItemList > div:first-child {
  22766. min-width: 60px;
  22767. }
  22768. .navItemList > div:last-child {
  22769. width: calc(100% - 80px);
  22770. white-space: nowrap;
  22771. overflow: hidden;
  22772. text-overflow: ellipsis;
  22773. word-break: break-word;
  22774. }
  22775. /* .isItemList > div {
  22776. color: #fff !important;
  22777. } */
  22778. .tool_work_box {
  22779. width: 100%;
  22780. padding: 0 37px 0;
  22781. box-sizing: border-box;
  22782. }
  22783. .tool_box {
  22784. width: 100%;
  22785. padding: 0 0 0 20px;
  22786. }
  22787. .tool_type_box {
  22788. display: flex;
  22789. flex-direction: row;
  22790. align-items: baseline;
  22791. flex-wrap: nowrap;
  22792. justify-content: flex-start;
  22793. position: relative;
  22794. }
  22795. .toolSort {
  22796. display: flex;
  22797. flex-direction: row;
  22798. flex-wrap: wrap;
  22799. justify-content: flex-start;
  22800. align-items: flex-start;
  22801. padding: 0 0 15px 0;
  22802. }
  22803. .toolSort > div {
  22804. margin: 0 10px 0 0;
  22805. width: 135px;
  22806. box-sizing: border-box;
  22807. border: 2px solid transparent;
  22808. }
  22809. .tools {
  22810. width: 100%;
  22811. display: flex;
  22812. flex-direction: column;
  22813. flex-wrap: nowrap;
  22814. align-items: flex-start;
  22815. }
  22816. .whiteBIcon {
  22817. width: fit-content;
  22818. cursor: pointer;
  22819. display: flex;
  22820. flex-direction: column;
  22821. flex-wrap: nowrap;
  22822. align-items: center;
  22823. font-size: 14px;
  22824. }
  22825. .tool:hover {
  22826. border: 2px solid #a5c7ff;
  22827. border-radius: 5px;
  22828. }
  22829. .whiteBIcon > img {
  22830. width: 65px;
  22831. height: 100%;
  22832. }
  22833. .whiteBIcon > img {
  22834. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22835. border-radius: 15px;
  22836. }
  22837. .check {
  22838. /* width: 20px;
  22839. height: 20px; */
  22840. cursor: pointer;
  22841. margin: 10px 0;
  22842. position: absolute;
  22843. right: 2px;
  22844. top: -5px;
  22845. }
  22846. .noChoose,
  22847. .isChoose {
  22848. width: 15px;
  22849. height: 15px;
  22850. border-radius: 50%;
  22851. border: 1px solid #adadad;
  22852. }
  22853. .isChoose {
  22854. border: 4px solid #0363ff !important;
  22855. width: 10px;
  22856. height: 10px;
  22857. }
  22858. .isToolChoose {
  22859. border: 2px solid #5394ff !important;
  22860. border-radius: 5px;
  22861. box-shadow: 0 0 6px 0px #5394ff;
  22862. }
  22863. .checkDiv {
  22864. display: flex;
  22865. align-items: center;
  22866. }
  22867. .checkDiv span {
  22868. margin-left: 5px;
  22869. color: #858585;
  22870. }
  22871. .check img {
  22872. width: 20px;
  22873. height: 20px;
  22874. }
  22875. .lockTaskIcon {
  22876. width: 20px;
  22877. height: 20px;
  22878. position: absolute;
  22879. right: 10px;
  22880. top: 5px;
  22881. }
  22882. .lockTaskIcon > img {
  22883. width: 100%;
  22884. height: 100%;
  22885. }
  22886. .pick_box {
  22887. display: flex;
  22888. align-items: flex-start;
  22889. flex-wrap: wrap;
  22890. }
  22891. .selectBox {
  22892. width: 110px;
  22893. margin-left: 10px;
  22894. margin: 0 10px 0 auto;
  22895. }
  22896. .selectBox >>> .el-input__inner {
  22897. height: 30px;
  22898. line-height: 30px;
  22899. }
  22900. .selectBox >>> .el-input__icon {
  22901. line-height: 30px;
  22902. }
  22903. .sentenceTitle {
  22904. display: flex;
  22905. flex-direction: row;
  22906. flex-wrap: nowrap;
  22907. align-items: center;
  22908. }
  22909. .sentenceTitle::before {
  22910. content: attr(index);
  22911. background: #3681fc;
  22912. border-radius: 50%;
  22913. color: #fff;
  22914. width: 25px;
  22915. height: 25px;
  22916. min-width: 25px;
  22917. min-height: 25px;
  22918. text-align: center;
  22919. line-height: 25px;
  22920. margin-right: 5px;
  22921. }
  22922. .hfBox {
  22923. padding: 10px;
  22924. box-sizing: border-box;
  22925. }
  22926. .whoReplyWho {
  22927. display: flex;
  22928. flex-direction: row;
  22929. flex-wrap: nowrap;
  22930. align-items: baseline;
  22931. justify-content: flex-start;
  22932. }
  22933. .hfBottom {
  22934. display: flex;
  22935. flex-direction: row;
  22936. flex-wrap: nowrap;
  22937. align-items: center;
  22938. justify-content: space-between;
  22939. font-size: 14px;
  22940. }
  22941. .deleteHfItem {
  22942. cursor: pointer;
  22943. width: 20px;
  22944. height: 20px;
  22945. }
  22946. .deleteHfItem > img {
  22947. width: 100%;
  22948. height: 100%;
  22949. }
  22950. .whoReplyWho > .hfImg {
  22951. width: 12px;
  22952. height: 12px;
  22953. margin: 0 5px;
  22954. }
  22955. .whoReplyWho > .hfImg > img {
  22956. width: 100%;
  22957. height: 100%;
  22958. }
  22959. .hfContent {
  22960. padding-top: 10px;
  22961. box-sizing: border-box;
  22962. display: -webkit-box;
  22963. overflow: hidden;
  22964. white-space: normal !important;
  22965. text-overflow: ellipsis;
  22966. word-wrap: break-word;
  22967. -webkit-box-orient: vertical;
  22968. }
  22969. .hfTime {
  22970. text-align: left;
  22971. box-sizing: border-box;
  22972. padding: 10px 0 10px 0px;
  22973. color: #bfbfbf;
  22974. font-size: 14px;
  22975. }
  22976. .btnAllNT {
  22977. position: fixed;
  22978. bottom: 100px;
  22979. right: 40px;
  22980. z-index: 999;
  22981. display: flex;
  22982. flex-direction: row;
  22983. }
  22984. .btnAllNT > img {
  22985. cursor: pointer;
  22986. width: 80px;
  22987. }
  22988. .toolMask {
  22989. position: fixed;
  22990. width: 100%;
  22991. height: 100%;
  22992. background: #3f3c3c;
  22993. opacity: 0.5;
  22994. top: 0;
  22995. left: 0;
  22996. z-index: 999;
  22997. }
  22998. .addToolCss {
  22999. position: fixed;
  23000. z-index: 999;
  23001. background: #fff;
  23002. right: 5%;
  23003. bottom: 18%;
  23004. min-width: 1035px;
  23005. min-height: 300px;
  23006. border-radius: 10px;
  23007. box-shadow: 0 0 8px 1px #b2b2b2;
  23008. }
  23009. .toolTop {
  23010. display: flex;
  23011. flex-direction: row;
  23012. flex-wrap: nowrap;
  23013. justify-content: space-between;
  23014. align-items: center;
  23015. padding: 20px;
  23016. }
  23017. .toolTop > div:nth-child(2) {
  23018. width: 15px;
  23019. height: 15px;
  23020. padding-right: 10px;
  23021. cursor: pointer;
  23022. }
  23023. .toolTop > div:nth-child(2) > img {
  23024. width: 100%;
  23025. height: 100%;
  23026. }
  23027. .fullStyle>>>.el-dialog__body {
  23028. height: calc(100% - 125px) !important;
  23029. box-sizing: border-box;
  23030. padding: 30px 0 !important;
  23031. background: #fff !important;
  23032. }
  23033. .fullStyle>>>.el-dialog {
  23034. width: 100% !important;
  23035. max-width: 100% !important;
  23036. height: 100% !important;
  23037. margin: 0 !important;
  23038. }
  23039. .fullStyle {
  23040. width: 100% !important;
  23041. max-width: 100% !important;
  23042. height: 100% !important;
  23043. margin: 0 auto !important;
  23044. }
  23045. .fullStyle>>>.el-dialog__footer{
  23046. background: #fff !important;
  23047. }
  23048. .engUpBox {
  23049. width: 100%;
  23050. height: 100%;
  23051. }
  23052. .engTitle,
  23053. .engText {
  23054. display: flex;
  23055. flex-direction: row;
  23056. flex-wrap: nowrap;
  23057. align-items: flex-start;
  23058. padding: 0 20px 20px 20px;
  23059. box-sizing: border-box;
  23060. }
  23061. .engTitle > .div:first-child,
  23062. .engText > div:first-child {
  23063. min-width: 75px;
  23064. }
  23065. .correctBox{
  23066. width: 100%;
  23067. display: flex;
  23068. flex-direction: row;
  23069. flex-wrap: nowrap;
  23070. align-items: flex-start;
  23071. }
  23072. .oldBox{
  23073. width: 50%;
  23074. height: 100%;
  23075. display: flex;
  23076. flex-direction: column;
  23077. flex-wrap: nowrap;
  23078. align-items: center;
  23079. border-top: 1px solid #d9d9d9;
  23080. border-left: 1px solid #d9d9d9;
  23081. border-right: 1px solid #d9d9d9;
  23082. }
  23083. .oldBox>div:first-child{
  23084. width: 100%;
  23085. text-align: center;
  23086. background: #d9d9d9;
  23087. height: 35px;
  23088. line-height: 35px;
  23089. font-weight: bold;
  23090. }
  23091. .oldText{
  23092. width: 100%;
  23093. height: calc(100% - 35px);
  23094. overflow: auto;
  23095. margin: 10px 0;
  23096. display: flex;
  23097. flex-direction: column;
  23098. flex-wrap: nowrap;
  23099. align-content: center;
  23100. align-items: center;
  23101. }
  23102. .detailBox{
  23103. width: 50%;
  23104. padding: 10px;
  23105. background: #f6f6f6;
  23106. border-radius: 5px;
  23107. }
  23108. .oldDetail,.oldDetail1{
  23109. padding-bottom: 30px;
  23110. }
  23111. .oldImg{
  23112. width:30px;
  23113. height: 30px;
  23114. }
  23115. .oldImg>img{
  23116. width: 100%;
  23117. height: 100%;
  23118. }
  23119. .allName{
  23120. min-width: 200px;
  23121. white-space: nowrap;
  23122. overflow: hidden;
  23123. text-overflow: ellipsis;
  23124. word-break: break-word;
  23125. cursor: pointer;
  23126. text-align: center;
  23127. border: 1px solid #bcc2cc;
  23128. box-sizing: border-box;
  23129. }
  23130. .engUpTop{
  23131. max-height: 300px;
  23132. overflow: auto;
  23133. }
  23134. .isUpdateToolDetailClass{
  23135. padding: 0 !important;
  23136. }
  23137. .isUpdateToolDetailClass textarea{
  23138. padding:12px;
  23139. font-size: 16px;
  23140. min-height:100%;
  23141. width: 100%;
  23142. box-sizing:border-box;
  23143. outline: none;
  23144. border:none;
  23145. line-height: 30px;
  23146. resize: none;
  23147. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23148. color: #838383;
  23149. }
  23150. .show_taskD {
  23151. min-width: fit-content;
  23152. margin-left: 10px;
  23153. display: flex;
  23154. align-items: center;
  23155. font-size: 14px;
  23156. cursor: pointer;
  23157. color: #717c8d;
  23158. }
  23159. .show_taskD > img {
  23160. width: 15px;
  23161. margin-right: 5px;
  23162. transition: 0.2s all;
  23163. transform: rotate(-90deg);
  23164. }
  23165. .show_taskD.show > img {
  23166. transform: rotate(0deg);
  23167. }
  23168. .correctCss{
  23169. position: absolute;
  23170. bottom: -70px;
  23171. background: #409eff;
  23172. color: #fff;
  23173. }
  23174. </style>