studyStudent.vue 785 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 25">目标管理</div>
  227. <div v-if="t.tool == 26">课程设计</div>
  228. <div v-if="t.tool == 62">交互视频</div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  238. <div class="new_topFixed"></div>
  239. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  240. <div class="courseIndex">
  241. <div>任务{{ taskCount + 1 }}</div>
  242. <el-tooltip
  243. effect="light"
  244. :content="
  245. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  246. "
  247. placement="top"
  248. >
  249. <div>
  250. {{
  251. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  252. .task
  253. }}
  254. </div>
  255. </el-tooltip>
  256. </div>
  257. <div class="btnAll">
  258. <div class="btnLeft">
  259. <el-tooltip effect="light" content="刷新" placement="top">
  260. <div class="reBtnIcon" @click="refreshCourse">
  261. <span>刷新</span>
  262. </div>
  263. </el-tooltip>
  264. <el-tooltip effect="light" content="评论" placement="top">
  265. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  266. <span>评论</span>
  267. </div>
  268. </el-tooltip>
  269. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  270. <el-tooltip effect="light" content="录制" placement="top">
  271. <div class="vedioIcon" @click="startRecording">
  272. <span>录制</span>
  273. </div>
  274. </el-tooltip>
  275. </div>
  276. <div v-else-if="tType == 1 || tType == 4">
  277. <el-tooltip effect="light" content="下载" placement="top">
  278. <div class="vedioIcon1" @click="stopRecording">
  279. <span>下载</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. </div>
  284. <div class="btnRight">
  285. <div
  286. class="last"
  287. @click="nextOrpreSteps(0)"
  288. v-if="!(IsFollow && tType == 2)"
  289. @mouseover="isHovered = true"
  290. @mouseout="isHovered = false"
  291. >
  292. <div class="lastImg">
  293. <img
  294. :src="
  295. isHovered
  296. ? require('../../assets/icon/newIcons/whiteLast.png')
  297. : require('../../assets/icon/newIcons/last.png')
  298. "
  299. alt=""
  300. />
  301. </div>
  302. <div class="lastText">上一步</div>
  303. </div>
  304. <div
  305. class="last"
  306. @click="nextOrpreSteps(1)"
  307. v-if="!(IsFollow && tType == 2)"
  308. @mouseover="isHovered1 = true"
  309. @mouseout="isHovered1 = false"
  310. >
  311. <div class="lastText">下一步</div>
  312. <div class="lastImg">
  313. <img
  314. :src="
  315. isHovered1
  316. ? require('../../assets/icon/newIcons/whiteNext.png')
  317. : require('../../assets/icon/newIcons/next.png')
  318. "
  319. alt=""
  320. />
  321. </div>
  322. </div>
  323. <div
  324. class="last"
  325. @click="juriVisible = true"
  326. v-if="tType == 1"
  327. @mouseover="isHovered2 = true"
  328. @mouseout="isHovered2 = false"
  329. >
  330. <div class="lastImg">
  331. <img
  332. :src="
  333. isHovered2
  334. ? require('../../assets/icon/newIcons/whiteLock.png')
  335. : require('../../assets/icon/newIcons/lock.png')
  336. "
  337. alt=""
  338. />
  339. </div>
  340. <div class="lastText">权限</div>
  341. </div>
  342. <div
  343. class="returnBtn1 returnIcon"
  344. @click.stop="
  345. goTo(
  346. '/courseDetailTrain?userid=' +
  347. userid +
  348. '&oid=' +
  349. oid +
  350. '&org=' +
  351. org +
  352. '&cid=' +
  353. classId +
  354. '&courseId=' +
  355. id +
  356. '&tType=' +
  357. tType +
  358. '&screenType=' +
  359. screenType
  360. )
  361. "
  362. >
  363. <div class="lastImg">
  364. <img src="../../assets/icon/newIcon/return.png" alt="" />
  365. </div>
  366. <div class="lastText" style="color: #000">返回</div>
  367. </div>
  368. </div>
  369. <!-- <div
  370. class="returnBtn lockIcon"
  371. @click="juriVisible = true"
  372. v-if="tType == 1"
  373. >
  374. 权限
  375. </div>
  376. <div
  377. class="returnBtn vedioIcon"
  378. @click="startRecording"
  379. v-if="!videoStart && (tType == 1 || tType == 4)"
  380. >
  381. 录制
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="stopRecording"
  386. v-else-if="tType == 1 || tType == 4"
  387. style="background: #ee5255"
  388. >
  389. 下载
  390. </div>
  391. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  392. 评论
  393. </div>
  394. <div
  395. class="returnBtn"
  396. @click="nextOrpreSteps(0)"
  397. v-if="!(IsFollow && tType == 2)"
  398. >
  399. 上一步
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(1)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 下一步
  407. </div>
  408. <div class="returnBtn" @click="refreshCourse">刷新</div>
  409. <div
  410. class="returnBtn returnIcon"
  411. @click.stop="
  412. goTo(
  413. '/courseDetailTrain?userid=' +
  414. userid +
  415. '&oid=' +
  416. oid +
  417. '&org=' +
  418. org +
  419. '&cid=' +
  420. classId +
  421. '&courseId=' +
  422. id +
  423. '&tType=' +
  424. tType +
  425. '&screenType=' +
  426. screenType
  427. )
  428. "
  429. >
  430. 返回
  431. </div> -->
  432. </div>
  433. </div>
  434. <div
  435. class="isNoMessage"
  436. v-if="
  437. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .chapterData.length == 0 &&
  439. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  440. .toolChoose[0].tool.length == 0 &&
  441. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .taskDetail == '' &&
  443. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .eList &&
  445. !(
  446. courseDetail.userid == userid ||
  447. (courseDetail.course_teacher &&
  448. courseDetail.course_teacher.indexOf(userid) != -1)
  449. )
  450. "
  451. >
  452. <img src="../../assets/icon/isNoMessage.png" alt />
  453. </div>
  454. <div class="study_top" :class="{ pzClass: pzDialog }">
  455. <div
  456. class="vedioBox"
  457. v-if="
  458. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail != '' ||
  460. vChapterData[taskCount].length > 0 ||
  461. fileC[taskCount].length > 0
  462. "
  463. style="border-radius: 0 0 20px 20px"
  464. >
  465. <div
  466. class="taskBox"
  467. v-if="
  468. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  469. .taskDetail != ''
  470. "
  471. >
  472. <div
  473. style="
  474. display: flex;
  475. flex-wrap: nowrap;
  476. flex-direction: column;
  477. position: relative;
  478. "
  479. >
  480. <div
  481. style="
  482. padding: 15px 0;
  483. line-height: 29px;
  484. font-size: 18px;
  485. color: #0e1e33;
  486. "
  487. class="cont"
  488. v-if="
  489. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  490. .taskDetail != ''
  491. "
  492. v-html="
  493. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  494. .taskDetail
  495. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  496. taskCount
  497. ].taskDetail
  498. : '暂无描述'
  499. "
  500. ></div>
  501. </div>
  502. </div>
  503. <div
  504. class="student_head"
  505. v-if="
  506. vChapterData[taskCount].length > 0 ||
  507. fileC[taskCount].length > 0
  508. "
  509. >
  510. <div class="vedioTaskBox" v-loading="downLoading">
  511. <div
  512. :class="
  513. contentDialog == false
  514. ? 'box_course isContentCss'
  515. : 'box_course'
  516. "
  517. v-if="
  518. vChapterData.length > 0 &&
  519. vChapterData[taskCount] &&
  520. showType !== ''
  521. "
  522. >
  523. <div class="wheel" style="height: auto" v-if="showType === 0">
  524. <div
  525. class="workd_media"
  526. style="height: 650px; width: calc(100% - 50px)"
  527. >
  528. <video-player
  529. class="video-player vjs-custom-skin"
  530. :class="contentDialog == false ? 'isAllWidth' : ''"
  531. :playsinline="true"
  532. :options="playerO[taskCount]"
  533. @play="onPlayerPlay($event)"
  534. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  535. ></video-player>
  536. </div>
  537. </div>
  538. <div
  539. class="wheel"
  540. v-if="showType == 1"
  541. style="
  542. box-shadow: 0 0 6px 1px #f2f2f2;
  543. width: 95%;
  544. margin: 0 auto;
  545. background: #f1f1f1;
  546. "
  547. >
  548. <div class="title">查看文档</div>
  549. <el-form class="textBox">
  550. <el-form-item class="textTitle">
  551. <div style="font-size: 22px">
  552. {{ text.name }}
  553. </div>
  554. </el-form-item>
  555. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  556. <div v-html="text.url" class="textContent cont"></div>
  557. </el-form>
  558. </div>
  559. <div
  560. class="wheel"
  561. v-if="
  562. pptImgUrl1.indexOf(
  563. 'https://view.officeapps.live.com/op/view.aspx?src='
  564. ) != -1 && showType == 2
  565. "
  566. style="width: 95%; margin: 0 auto"
  567. >
  568. <iframe
  569. style="width: 100%; height: 100%; border: none"
  570. :src="pptImgUrl1"
  571. ></iframe>
  572. </div>
  573. <div
  574. class="wheel"
  575. v-else-if="showType == 2"
  576. style="width: 95%; margin: 0 auto"
  577. >
  578. <iframe
  579. style="width: 100%; height: 100%; border: none"
  580. security="restricted"
  581. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  582. :src="pptImgUrl1"
  583. ></iframe>
  584. </div>
  585. <div
  586. class="wheel"
  587. v-if="showType == 3"
  588. style="width: 95%; margin: 0 auto"
  589. >
  590. <pdf
  591. :pdfUrl="pptImgUrl1"
  592. style="width: 100%; height: 100%; overflow: auto"
  593. ></pdf>
  594. </div>
  595. <div
  596. class="wheel"
  597. v-if="showType == 4"
  598. style="width: 95%; margin: 0 auto"
  599. >
  600. <el-image
  601. :src="pptImgUrl1"
  602. fit="contain"
  603. style="width: 100%; height: 100%; cursor: pointer"
  604. @click="previewImg(pptImgUrl1)"
  605. ></el-image>
  606. </div>
  607. </div>
  608. <div
  609. class="pButton"
  610. style="position: absolute; right: 20px; top: 0; z-index: 998"
  611. v-if="!contentDialog"
  612. @click="setContent(true)"
  613. >
  614. <!-- 批 -->
  615. <img
  616. src="../../assets/icon/newIcons/isLeft.png"
  617. style="width: 45px"
  618. alt=""
  619. />
  620. </div>
  621. <div
  622. v-if="contentDialog == true"
  623. :style="{
  624. width:
  625. (vChapterData[taskCount].length > 0 ||
  626. fileC[taskCount].length > 0) &&
  627. showType === ''
  628. ? 'calc(100%)'
  629. : '300px',
  630. margin:
  631. (vChapterData[taskCount].length > 0 ||
  632. fileC[taskCount].length > 0) &&
  633. showType === ''
  634. ? '0 15px'
  635. : '0 15px 0 0',
  636. }"
  637. >
  638. <div
  639. class="vedioList"
  640. v-if="
  641. vChapterData[taskCount].length > 0 ||
  642. fileC[taskCount].length > 0
  643. "
  644. style="height: 650px"
  645. >
  646. <div class="navCorOpenBox">
  647. <div class="navTitile">内容列表:</div>
  648. <div class="navCorOpen" @click="setContent(false)">
  649. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  650. </div>
  651. </div>
  652. <div class="navBox">
  653. <div
  654. v-show="
  655. vChapterData[taskCount].length > 0 ||
  656. fileC[taskCount].length > 0
  657. "
  658. style="padding: 10px 0 25px 0"
  659. >
  660. <div
  661. class="vedioTimeBox"
  662. v-for="(vitem, vindex) in vChapterData[taskCount]"
  663. :key="vindex + '1'"
  664. >
  665. <div class="navListItem" v-if="vitem.type == 2">
  666. <div
  667. @click="lookVedio(vitem.url, vindex)"
  668. class="navText"
  669. :class="isClickNav == vindex ? 'isClickNav' : ''"
  670. >
  671. <span v-if="vitem.text">{{ vitem.text }}-</span
  672. >{{ vitem.name }}
  673. </div>
  674. <div class="downIcon" @click="downloadFile2(vitem)">
  675. <img src="../../assets/icon/newIcon/down.png" alt />
  676. </div>
  677. </div>
  678. <div class="navListItem" v-if="vitem.type == 6">
  679. <div
  680. @click="lookText(taskCount, vindex)"
  681. class="navText"
  682. :class="isClickNav == vindex ? 'isClickNav' : ''"
  683. >
  684. {{ vitem.name }}.doc
  685. </div>
  686. <div
  687. class="downIcon"
  688. @click="checkFileFull1(vitem.type, vitem)"
  689. >
  690. <img
  691. src="../../assets/icon/newIcon/allScreen.png"
  692. alt
  693. />
  694. </div>
  695. </div>
  696. <div
  697. class="navListItem"
  698. v-if="vitem.type == 8 || vitem.type == 14"
  699. >
  700. <div
  701. @click="doUrl(vitem.url, vindex)"
  702. class="navText"
  703. :class="isClickNav == vindex ? 'isClickNav' : ''"
  704. >
  705. {{ vitem.title ? vitem.title : vitem.url }}
  706. </div>
  707. <div
  708. class="downIcon"
  709. @click="checkFileFull1(vitem.type, vitem)"
  710. >
  711. <img
  712. src="../../assets/icon/newIcon/allScreen.png"
  713. alt
  714. />
  715. </div>
  716. </div>
  717. <div class="navListItem" v-if="vitem.type == 3">
  718. <div
  719. @click="downFile(vitem, vindex)"
  720. class="navText"
  721. :class="isClickNav == vindex ? 'isClickNav' : ''"
  722. >
  723. <span v-if="vitem.text">{{ vitem.text }}-</span
  724. >{{ vitem.name }}
  725. </div>
  726. <div
  727. class="downIcon"
  728. @click="checkFileFull1(vitem.type, vitem)"
  729. >
  730. <img
  731. src="../../assets/icon/newIcon/allScreen.png"
  732. alt
  733. />
  734. </div>
  735. <div class="downIcon" @click="downloadFile2(vitem)">
  736. <img src="../../assets/icon/newIcon/down.png" alt />
  737. </div>
  738. </div>
  739. <div class="navListItem" v-if="vitem.type == 12">
  740. <div class="navText" @click="downloadFile2(vitem)">
  741. <span v-if="vitem.text">{{ vitem.text }}-</span
  742. >{{ vitem.name }}
  743. </div>
  744. <div
  745. class="downIcon"
  746. @click="checkFileFull1(vitem.type, vitem)"
  747. >
  748. <img
  749. src="../../assets/icon/newIcon/allScreen.png"
  750. alt
  751. />
  752. </div>
  753. <div class="downIcon" @click="downloadFile2(vitem)">
  754. <img src="../../assets/icon/newIcon/down.png" alt />
  755. </div>
  756. </div>
  757. <div class="navListItem" v-if="vitem.type == 13">
  758. <div
  759. class="navText"
  760. @click="checkPhoto(vitem, vindex)"
  761. :class="isClickNav == vindex ? 'isClickNav' : ''"
  762. >
  763. {{ vitem.name }}
  764. </div>
  765. <div class="downIcon" @click="downloadFile2(vitem)">
  766. <img src="../../assets/icon/newIcon/down.png" alt />
  767. </div>
  768. </div>
  769. </div>
  770. <div
  771. class="fileC_box"
  772. v-if="fileC[taskCount].length > 0"
  773. >
  774. <div class="fileC_title">以下文件不支持预览</div>
  775. <div
  776. class="vedioTimeBox"
  777. v-for="(vitem, vindex) in fileC[taskCount]"
  778. :key="vindex + '1'"
  779. >
  780. <div class="navListItem" v-if="vitem.type == 12">
  781. <div class="navText" style="color: #acb4bf">
  782. <span v-if="vitem.text">{{ vitem.text }}-</span
  783. >{{ vitem.name }}
  784. </div>
  785. <div
  786. class="downIcon"
  787. @click="downloadFile2(vitem)"
  788. >
  789. <img
  790. src="../../assets/icon/newIcon/down.png"
  791. alt
  792. />
  793. </div>
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. <div style="width: calc(100% - 315px)">
  803. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  804. <!-- <el-button
  805. type="primary"
  806. class="newButton"
  807. @click="checkFileFull(showType, pptImgUrl1)"
  808. >全屏查看</el-button
  809. >
  810. <el-button
  811. type="primary"
  812. class="newButton"
  813. @click="downloadFile(pptImgUrl1)"
  814. v-if="showType != 2"
  815. >文件下载</el-button
  816. > -->
  817. <el-button
  818. class="newButton"
  819. v-if="
  820. showType == 2 &&
  821. pptImgUrl1.indexOf(
  822. 'https://view.officeapps.live.com/op/view.aspx?src='
  823. ) == -1
  824. "
  825. type="primary"
  826. @click="openLine(pptImgUrl1)"
  827. >打开链接
  828. </el-button>
  829. </div>
  830. <!-- <div
  831. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  832. v-if="showType == 1"
  833. >
  834. <el-button
  835. type="primary"
  836. class="newButton"
  837. @click="checkFileFull(showType, text)"
  838. >全屏查看</el-button
  839. >
  840. </div> -->
  841. </div>
  842. </div>
  843. </div>
  844. <div class="student_body" v-resize="resize">
  845. <div
  846. class="vedioBox"
  847. :style="{
  848. borderRadius:
  849. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  850. .taskDetail == '' &&
  851. vChapterData[taskCount].length == 0 &&
  852. fileC[taskCount].length == 0
  853. ? '0 0 20px 20px'
  854. : '20px',
  855. }"
  856. v-if="
  857. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  858. .toolChoose[0].tool &&
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool.length > 0
  861. "
  862. >
  863. <div
  864. class="toolHeng2"
  865. style="position: relative"
  866. v-if="
  867. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  868. .toolChoose[0].tool &&
  869. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  870. .toolChoose[0].tool.length &&
  871. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  872. .toolChoose[0].tool.length > 0
  873. "
  874. >
  875. <div class="workNav">工作区</div>
  876. <div
  877. class="filebox"
  878. style="flex-wrap: nowrap"
  879. v-for="(tool, toolIndex) in chapInfoList[courseType]
  880. .chapterInfo[0].taskJson[taskCount].toolChoose"
  881. :key="toolIndex"
  882. >
  883. <div class="bzBox">
  884. <div class="yCss"></div>
  885. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  886. 工具{{ toolIndex + 1 }}
  887. </div>
  888. <div
  889. v-if="timeWorkList[toolIndex].length > 0"
  890. style="margin: 0 0 0 10px"
  891. >
  892. {{
  893. timeWorkList[toolIndex][0].time
  894. ? "时间:" + timeWorkList[toolIndex][0].time
  895. : ""
  896. }}
  897. </div>
  898. </div>
  899. <div class="toolBox">
  900. <div>
  901. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  902. :key="indexTool"-->
  903. <!-- <div class="iframeBox">
  904. <div
  905. class="addPoint isBorder"
  906. v-for="(tooC, toolCIndex) in tool.tool"
  907. :key="toolCIndex"
  908. >
  909. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  910. <div
  911. class="iframeName"
  912. >
  913. 电子白板
  914. </div>
  915. <iframe
  916. src="https://iwb.cocorobo.cn/"
  917. ref="whiteBoard"
  918. ></iframe>
  919. </div>
  920. </div>
  921. </div>-->
  922. <div class="noiframeBox">
  923. <div
  924. class="addPoint"
  925. v-for="(tooC, toolCIndex) in tool.tool"
  926. :key="toolCIndex"
  927. >
  928. <div v-if="tooC == 1">
  929. <img
  930. src="../../assets/icon/secondToolList/whiteBoard.png"
  931. alt
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. />
  934. <div style="margin: 5px 0">电子白板</div>
  935. </div>
  936. <div v-if="tooC == 3">
  937. <img
  938. src="../../assets/icon/secondToolList/mindMapping.png"
  939. alt
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. />
  942. <div style="margin: 5px 0">思维导图</div>
  943. </div>
  944. <div v-if="tooC == 6">
  945. <img
  946. src="../../assets/icon/secondToolList/doc.png"
  947. alt
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. />
  950. <div style="margin: 5px 0">协同文档</div>
  951. </div>
  952. <div v-if="tooC == 7">
  953. <img
  954. src="../../assets/icon/secondToolList/mindNetwork.png"
  955. alt
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. />
  958. <div style="margin: 5px 0">思维网格</div>
  959. </div>
  960. <div v-if="tooC == 8">
  961. <img
  962. src="../../assets/icon/secondToolList/library.png"
  963. alt
  964. @click="addTools(tooC, toolIndex, taskCount)"
  965. />
  966. <div style="margin: 5px 0">素材库</div>
  967. </div>
  968. <div v-if="tooC == 17">
  969. <img
  970. src="../../assets/icon/secondToolList/library.png"
  971. alt
  972. @click="addTools(tooC, toolIndex, taskCount)"
  973. />
  974. <div style="margin: 5px 0">学习资料</div>
  975. </div>
  976. <div v-if="tooC == 2">
  977. <img
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. src="../../assets/icon/secondToolList/note.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">便签</div>
  983. </div>
  984. <div v-if="tooC == 4">
  985. <img
  986. @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../../assets/icon/thirdToolList/ask.png"
  988. alt
  989. />
  990. <div style="margin: 5px 0">问卷调查</div>
  991. </div>
  992. <div v-if="tooC == 45">
  993. <img
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. src="../../assets/icon/thirdToolList/choose.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">选择题</div>
  999. </div>
  1000. <!-- <div v-if="tooC == 5">
  1001. <img
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. src="../../assets/icon/thirdToolList/score.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">量规评分</div>
  1007. </div> -->
  1008. <div v-if="tooC == 10">
  1009. <img
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. src="../../assets/icon/thirdToolList/time.png"
  1012. alt
  1013. />
  1014. <div style="margin: 5px 0">倒计时</div>
  1015. </div>
  1016. <div v-if="tooC == 15">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../../assets/icon/thirdToolList/answer.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">问答</div>
  1023. </div>
  1024. <div v-if="tooC == 26">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/thirdToolList/courseDesign.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">课程设计</div>
  1031. </div>
  1032. <div v-if="tooC == 18">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">训练服务器</div>
  1039. </div>
  1040. <div v-if="tooC == 16">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../../assets/icon/thirdToolList/work.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">作业提交</div>
  1047. </div>
  1048. <div v-if="tooC == 50">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../../assets/icon/thirdToolList/plwork.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">批量上传</div>
  1055. </div>
  1056. <div v-if="tooC == 21">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../../assets/icon/fourthToolList/program.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">AIoT Blockly</div>
  1063. </div>
  1064. <!-- <div v-if="tooC == 22">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../../assets/icon/fourthToolList/program.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">AI体验</div>
  1071. </div> -->
  1072. <div v-if="tooC == 23">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">AI Python</div>
  1079. </div>
  1080. <div v-if="tooC == 24">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/fourthToolList/AIprogram.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">AI Blockly</div>
  1087. </div>
  1088. <div v-if="tooC == 25">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/thirdToolList/evalua.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">目标管理</div>
  1095. </div>
  1096. <div v-if="tooC == 31">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/secondToolList/networkPanel.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">数学画板</div>
  1103. </div>
  1104. <div v-if="tooC == 28">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/secondToolList/translation.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">翻译</div>
  1111. </div>
  1112. <div v-if="tooC == 37">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../../assets/icon/secondToolList/mohe.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">魔盒识字</div>
  1119. </div>
  1120. <div v-if="tooC == 38">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../../assets/icon/secondToolList/24game.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">24点</div>
  1127. </div>
  1128. <div v-if="tooC == 39">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/secondToolList/GeoGebra.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">GeoGebra</div>
  1135. </div>
  1136. <div v-if="tooC == 32">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/code.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">源码编辑</div>
  1143. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1144. style="position: absolute;left: 110px;bottom: 30px;">
  1145. 上传文件
  1146. <input type="file" accept="*" style="display: none"
  1147. @change="beforeUpload1($event, 7, toolIndex)" />
  1148. </div> -->
  1149. </div>
  1150. <div v-if="tooC == 40">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/secondToolList/eval.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">个人评价</div>
  1157. </div>
  1158. <div v-if="tooC == 41">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/select.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">选择匹配</div>
  1165. </div>
  1166. <div v-if="tooC == 44">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/thirdToolList/hanClass.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">汉字宫</div>
  1173. </div>
  1174. <div v-if="tooC == 47">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/conSentences.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">排序</div>
  1181. </div>
  1182. <div v-if="tooC == 48">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../../assets/icon/fourthToolList/table.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">表格</div>
  1189. </div>
  1190. <div v-if="tooC == 52">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../../assets/icon/fourthToolList/text.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">文档</div>
  1197. </div>
  1198. <div v-if="tooC == 49">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/fourthToolList/group.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">学生分组</div>
  1205. </div>
  1206. <div v-if="tooC == 57">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/fourthToolList/cocopi.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">CocoPi</div>
  1213. </div>
  1214. <div v-if="tooC == 58">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/fourthToolList/car.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">模拟驾驶</div>
  1221. </div>
  1222. <div v-if="tooC == 59">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../../assets/icon/fourthToolList/lineSearch.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">路径搜索</div>
  1229. </div>
  1230. <div v-if="tooC == 60">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../../assets/icon/fourthToolList/deepLearning.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">深度学习</div>
  1237. </div>
  1238. <div v-if="tooC == 61">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../../assets/icon/fourthToolList/allHistory.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">全历史</div>
  1245. </div>
  1246. <div v-if="tooC == 62">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/fourthToolList/interVideo.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">交互视频</div>
  1253. </div>
  1254. <div v-if="tooC == 63">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/fourthToolList/Wood.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">海龟编程</div>
  1261. </div>
  1262. <div v-if="tooC == 65">
  1263. <img
  1264. @click="addTools(tooC, toolIndex, taskCount)"
  1265. src="../../assets/icon/firstToolList/pickPeople.png"
  1266. alt
  1267. />
  1268. <div style="margin: 5px 0">挑人</div>
  1269. </div>
  1270. <div v-if="tooC == 66">
  1271. <img
  1272. @click="addTools(tooC, toolIndex, taskCount)"
  1273. src="../../assets/icon/secondToolList/formulaEdi.png"
  1274. alt
  1275. />
  1276. <div style="margin: 5px 0">公式编辑</div>
  1277. </div>
  1278. <div v-if="tooC == 67">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../../assets/icon/secondToolList/molStr.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">分子结构</div>
  1285. </div>
  1286. <div v-if="tooC == 68">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../../assets/icon/secondToolList/timeAxis.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">时间轴</div>
  1293. </div>
  1294. <div v-if="tooC == 69">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/secondToolList/english.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">英语写作</div>
  1301. </div>
  1302. </div>
  1303. </div>
  1304. </div>
  1305. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1306. <!-- <div class="toolTitle">工具描述</div> -->
  1307. <div style="height:100%;"
  1308. v-html="contentConvent(tool.toolDetail)"
  1309. v-if="toolDetailIndex != toolIndex"
  1310. @click.stop="updateToolDetail(toolIndex, 2)"
  1311. ></div>
  1312. <div v-else @click.stop="" style="height:100%;">
  1313. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1314. </div>
  1315. </div>
  1316. <el-button
  1317. type="primary"
  1318. v-if="tool.tool[0] == 32"
  1319. style="position: absolute; right: 30px; top: 30px"
  1320. @click="addImg($event)"
  1321. >上传作业<input
  1322. type="file"
  1323. accept="*"
  1324. style="display: none"
  1325. @change="beforeUpload1($event, 7, toolIndex)"
  1326. /></el-button>
  1327. <el-button
  1328. type="primary"
  1329. v-if="tool.tool[0] == 15"
  1330. style="position: absolute; right: 30px; top: 30px"
  1331. @click="openWordCloud(toolIndex)"
  1332. >生成词云</el-button
  1333. >
  1334. <el-button
  1335. type="primary"
  1336. v-if="
  1337. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1338. "
  1339. style="position: absolute; right: 30px; top: 30px"
  1340. @click="uploadWorks(toolIndex)"
  1341. >导出作业</el-button
  1342. >
  1343. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1344. position: absolute;
  1345. right: 30px;
  1346. transform: translateY(-130%);
  1347. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1348. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1349. </div>
  1350. <div
  1351. v-if="
  1352. tType &&
  1353. tType == 2 &&
  1354. !sIsOpen &&
  1355. tool.tool.indexOf(16) != -1
  1356. "
  1357. class="worksBox"
  1358. >
  1359. <div
  1360. class="zuoyeYulan"
  1361. v-if="workStudent[toolIndex].length > 0"
  1362. >
  1363. <span class="worksTitle">作业预览</span>
  1364. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1365. </div>
  1366. <div
  1367. class="worksDetailBox"
  1368. v-if="workStudent[toolIndex].length > 0"
  1369. >
  1370. <div
  1371. class="works"
  1372. style="
  1373. width: 200px;
  1374. height: 140px;
  1375. margin: 10px 10px 10px 0;
  1376. box-shadow: 0 0 6px 1px #dfdada;
  1377. "
  1378. v-for="(w, wIndex) in workStudent[toolIndex]"
  1379. :key="wIndex"
  1380. >
  1381. <div class="workImg" v-if="w.type == 0">
  1382. <img
  1383. :src="w.works"
  1384. @click="previewImg(w.works)"
  1385. alt
  1386. />
  1387. <div
  1388. class="answerScore"
  1389. v-if="w.score"
  1390. @click.stop="openScore(w)"
  1391. :class="{
  1392. rightW:
  1393. w.userid == userid || tType == 1 || tType == 4,
  1394. }"
  1395. >
  1396. {{ JSON.parse(w.score).wScore }}分
  1397. </div>
  1398. <div
  1399. class="answerScore"
  1400. @click.stop="openScore(w)"
  1401. v-else-if="courseDetail.userid == userid"
  1402. :class="{
  1403. rightW:
  1404. w.userid == userid || tType == 1 || tType == 4,
  1405. }"
  1406. >
  1407. 评分
  1408. </div>
  1409. <img
  1410. class="deleteImg"
  1411. src="../../assets/deleteworks.png"
  1412. v-if="
  1413. w.userid == userid || tType == 1 || tType == 4
  1414. "
  1415. @click.stop="deleteWorks(w.wid)"
  1416. alt
  1417. />
  1418. </div>
  1419. <div class="workImg" v-if="w.type == 1">
  1420. <img :src="word" @click="openFile(w.works)" alt />
  1421. <div
  1422. class="answerScore"
  1423. v-if="w.score"
  1424. @click.stop="openScore(w)"
  1425. :class="{
  1426. rightW:
  1427. w.userid == userid || tType == 1 || tType == 4,
  1428. }"
  1429. >
  1430. {{ JSON.parse(w.score).wScore }}分
  1431. </div>
  1432. <div
  1433. class="answerScore"
  1434. @click.stop="openScore(w)"
  1435. v-else-if="courseDetail.userid == userid"
  1436. :class="{
  1437. rightW:
  1438. w.userid == userid || tType == 1 || tType == 4,
  1439. }"
  1440. >
  1441. 评分
  1442. </div>
  1443. <img
  1444. class="deleteImg"
  1445. src="../../assets/deleteworks.png"
  1446. v-if="
  1447. w.userid == userid || tType == 1 || tType == 4
  1448. "
  1449. @click.stop="deleteWorks(w.wid)"
  1450. alt
  1451. />
  1452. </div>
  1453. <div class="workImg" v-if="w.type == 3">
  1454. <img
  1455. style="cursor: pointer"
  1456. :src="video"
  1457. @click="openVideo(w)"
  1458. alt
  1459. />
  1460. <div
  1461. class="answerScore"
  1462. v-if="w.score"
  1463. @click.stop="openScore(w)"
  1464. :class="{
  1465. rightW:
  1466. w.userid == userid || tType == 1 || tType == 4,
  1467. }"
  1468. >
  1469. {{ JSON.parse(w.score).wScore }}分
  1470. </div>
  1471. <div
  1472. class="answerScore"
  1473. @click.stop="openScore(w)"
  1474. v-else-if="courseDetail.userid == userid"
  1475. :class="{
  1476. rightW:
  1477. w.userid == userid || tType == 1 || tType == 4,
  1478. }"
  1479. >
  1480. 评分
  1481. </div>
  1482. <img
  1483. class="deleteImg"
  1484. src="../../assets/deleteworks.png"
  1485. v-if="
  1486. w.userid == userid || tType == 1 || tType == 4
  1487. "
  1488. @click.stop="deleteWorks(w.wid)"
  1489. alt
  1490. />
  1491. </div>
  1492. <div class="workImg" v-if="w.type == 12">
  1493. <img
  1494. style="cursor: pointer"
  1495. :src="word2"
  1496. @click="downloadFile(w.works)"
  1497. alt
  1498. />
  1499. <div
  1500. class="answerScore"
  1501. v-if="w.score"
  1502. @click.stop="openScore(w)"
  1503. :class="{
  1504. rightW:
  1505. w.userid == userid || tType == 1 || tType == 4,
  1506. }"
  1507. >
  1508. {{ JSON.parse(w.score).wScore }}分
  1509. </div>
  1510. <div
  1511. class="answerScore"
  1512. @click.stop="openScore(w)"
  1513. v-else-if="courseDetail.userid == userid"
  1514. :class="{
  1515. rightW:
  1516. w.userid == userid || tType == 1 || tType == 4,
  1517. }"
  1518. >
  1519. 评分
  1520. </div>
  1521. <img
  1522. class="deleteImg"
  1523. src="../../assets/deleteworks.png"
  1524. v-if="
  1525. w.userid == userid || tType == 1 || tType == 4
  1526. "
  1527. @click.stop="deleteWorks(w.wid)"
  1528. alt
  1529. />
  1530. </div>
  1531. <div class="worksName">
  1532. <div>{{ w.sName }}</div>
  1533. </div>
  1534. </div>
  1535. </div>
  1536. </div>
  1537. <div
  1538. v-if="
  1539. tType &&
  1540. tType == 2 &&
  1541. !sIsOpen &&
  1542. tool.tool.indexOf(32) != -1
  1543. "
  1544. class="worksBox"
  1545. >
  1546. <div
  1547. class="zuoyeYulan"
  1548. v-if="workStudent[toolIndex].length > 0"
  1549. >
  1550. <span class="worksTitle">作业预览</span>
  1551. </div>
  1552. <div
  1553. class="worksDetailBox"
  1554. v-if="workStudent[toolIndex].length > 0"
  1555. >
  1556. <div
  1557. class="works"
  1558. style="
  1559. width: 200px;
  1560. height: 140px;
  1561. margin: 10px 10px 10px 0;
  1562. box-shadow: 0 0 6px 1px #dfdada;
  1563. "
  1564. v-for="(w, wIndex) in workStudent[toolIndex]"
  1565. :key="wIndex"
  1566. >
  1567. <div class="workImg">
  1568. <img
  1569. :src="word2"
  1570. @click="downloadFile(w.works)"
  1571. alt
  1572. />
  1573. <div
  1574. class="answerScore"
  1575. v-if="w.score"
  1576. @click.stop="openScore(w)"
  1577. :class="{
  1578. rightW:
  1579. w.userid == userid || tType == 1 || tType == 4,
  1580. }"
  1581. >
  1582. {{ JSON.parse(w.score).wScore }}分
  1583. </div>
  1584. <div
  1585. class="answerScore"
  1586. @click.stop="openScore(w)"
  1587. v-else-if="courseDetail.userid == userid"
  1588. :class="{
  1589. rightW:
  1590. w.userid == userid || tType == 1 || tType == 4,
  1591. }"
  1592. >
  1593. 评分
  1594. </div>
  1595. <img
  1596. class="deleteImg"
  1597. src="../../assets/deleteworks.png"
  1598. v-if="
  1599. w.userid == userid || tType == 1 || tType == 4
  1600. "
  1601. @click.stop="deleteWorks(w.wid)"
  1602. alt
  1603. />
  1604. </div>
  1605. <div class="worksName">
  1606. <div>{{ w.sName }}</div>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. </div>
  1611. <div
  1612. v-if="
  1613. tType &&
  1614. tType == 2 &&
  1615. !sIsOpen &&
  1616. tool.tool.indexOf(57) != -1
  1617. "
  1618. class="worksBox"
  1619. >
  1620. <div
  1621. class="zuoyeYulan"
  1622. v-if="workStudent[toolIndex].length > 0"
  1623. >
  1624. <span class="worksTitle">作业预览</span>
  1625. </div>
  1626. <div
  1627. class="worksDetailBox"
  1628. v-if="workStudent[toolIndex].length > 0"
  1629. >
  1630. <div
  1631. class="works"
  1632. style="
  1633. width: 200px;
  1634. height: 140px;
  1635. margin: 10px 10px 10px 0;
  1636. box-shadow: 0 0 6px 1px #dfdada;
  1637. "
  1638. v-for="(w, wIndex) in workStudent[toolIndex]"
  1639. :key="wIndex"
  1640. >
  1641. <div class="workImg">
  1642. <img
  1643. :src="word2"
  1644. @click="downloadFile(w.works)"
  1645. v-if="w.type == 12"
  1646. alt
  1647. />
  1648. <img
  1649. :src="word2"
  1650. @click="
  1651. openCocoPi(57, toolIndex, w.userid, w.sName)
  1652. "
  1653. v-else-if="w.type == 15"
  1654. alt
  1655. />
  1656. <div
  1657. class="answerScore"
  1658. v-if="w.score"
  1659. @click.stop="openScore(w)"
  1660. :class="{
  1661. rightW:
  1662. w.userid == userid || tType == 1 || tType == 4,
  1663. }"
  1664. >
  1665. {{ JSON.parse(w.score).wScore }}分
  1666. </div>
  1667. <div
  1668. class="answerScore"
  1669. @click.stop="openScore(w)"
  1670. v-else-if="courseDetail.userid == userid"
  1671. :class="{
  1672. rightW:
  1673. w.userid == userid || tType == 1 || tType == 4,
  1674. }"
  1675. >
  1676. 评分
  1677. </div>
  1678. <img
  1679. class="deleteImg"
  1680. src="../../assets/deleteworks.png"
  1681. v-if="
  1682. w.userid == userid || tType == 1 || tType == 4
  1683. "
  1684. @click.stop="deleteWorks(w.wid)"
  1685. alt
  1686. />
  1687. </div>
  1688. <div class="worksName">
  1689. <div>{{ w.sName }}</div>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. <div
  1695. v-if="
  1696. tType &&
  1697. tType == 2 &&
  1698. !sIsOpen &&
  1699. tool.tool.indexOf(4) != -1
  1700. "
  1701. class="worksBox"
  1702. >
  1703. <div
  1704. class="zuoyeYulan"
  1705. v-if="workStudent[toolIndex].length > 0"
  1706. >
  1707. <span class="worksTitle">作业预览</span>
  1708. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1709. </div>
  1710. <div
  1711. class="worksDetailBox"
  1712. v-if="workStudent[toolIndex].length > 0"
  1713. >
  1714. <div
  1715. class="isWorksName2"
  1716. v-for="(w, wIndex) in workStudent[toolIndex]"
  1717. :key="wIndex"
  1718. @click="
  1719. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1720. "
  1721. >
  1722. {{ w.sName }}
  1723. <img
  1724. class="deleteImg deleteImg2"
  1725. src="../../assets/deleteworks.png"
  1726. v-if="w.userid == userid || tType == 1 || tType == 4"
  1727. @click.stop="deleteWorks(w.wid)"
  1728. alt
  1729. />
  1730. </div>
  1731. <!-- <div
  1732. class="works"
  1733. style="
  1734. width: 200px;
  1735. height: 140px;
  1736. border-radius: 10px;
  1737. box-shadow: 0 0 6px 1px #dfdada;
  1738. overflow: hidden;
  1739. "
  1740. v-for="(w, wIndex) in workStudent[toolIndex]"
  1741. :key="wIndex"
  1742. >
  1743. <div class="workImg">
  1744. <img
  1745. src="../../assets/icon/works/noImg.png"
  1746. @click="
  1747. openTools(
  1748. 4,
  1749. toolIndex,
  1750. taskCount,
  1751. w.works,
  1752. w.sName
  1753. )
  1754. "
  1755. alt
  1756. />
  1757. </div>
  1758. <div class="worksName">
  1759. <div>{{ w.sName }}</div>
  1760. <div>{{ w.time }}</div>
  1761. </div>
  1762. </div> -->
  1763. </div>
  1764. </div>
  1765. <div
  1766. v-if="
  1767. tType &&
  1768. tType == 2 &&
  1769. !sIsOpen &&
  1770. tool.tool.indexOf(45) != -1
  1771. "
  1772. class="worksBox"
  1773. >
  1774. <div
  1775. class="zuoyeYulan"
  1776. v-if="workStudent[toolIndex].length > 0"
  1777. >
  1778. <span class="worksTitle">作业预览</span>
  1779. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1780. </div>
  1781. <div
  1782. class="worksDetailBox"
  1783. v-if="workStudent[toolIndex].length > 0"
  1784. >
  1785. <div
  1786. class="isWorksName2"
  1787. v-for="(w, wIndex) in workStudent[toolIndex]"
  1788. :key="wIndex"
  1789. @click="
  1790. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1791. "
  1792. >
  1793. {{ w.sName }}
  1794. <img
  1795. class="deleteImg deleteImg2"
  1796. src="../../assets/deleteworks.png"
  1797. v-if="w.userid == userid || tType == 1 || tType == 4"
  1798. @click.stop="deleteWorks(w.wid)"
  1799. alt
  1800. />
  1801. </div>
  1802. </div>
  1803. </div>
  1804. <div
  1805. v-if="
  1806. tType &&
  1807. tType == 2 &&
  1808. !sIsOpen &&
  1809. tool.tool.indexOf(69) != -1
  1810. "
  1811. class="worksBox"
  1812. >
  1813. <div
  1814. class="zuoyeYulan"
  1815. v-if="workStudent[toolIndex].length > 0"
  1816. >
  1817. <span class="worksTitle">作业预览</span>
  1818. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1819. </div>
  1820. <div
  1821. class="worksDetailBox"
  1822. v-if="workStudent[toolIndex].length > 0"
  1823. >
  1824. <div
  1825. class="isWorksName2"
  1826. v-for="(w, wIndex) in workStudent[toolIndex]"
  1827. :key="wIndex"
  1828. @click="
  1829. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1830. "
  1831. >
  1832. {{ w.sName }}
  1833. <img
  1834. class="deleteImg deleteImg2"
  1835. src="../../assets/deleteworks.png"
  1836. v-if="w.userid == userid || tType == 1 || tType == 4"
  1837. @click.stop="deleteWorks(w.wid)"
  1838. alt
  1839. />
  1840. </div>
  1841. </div>
  1842. </div>
  1843. <div
  1844. v-if="
  1845. tType &&
  1846. tType == 2 &&
  1847. !sIsOpen &&
  1848. tool.tool.indexOf(15) != -1
  1849. "
  1850. class="worksBox"
  1851. >
  1852. <div
  1853. class="zuoyeYulan"
  1854. v-if="workStudent[toolIndex].length > 0"
  1855. >
  1856. <span class="worksTitle">作业预览</span>
  1857. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1858. </div>
  1859. <div
  1860. class="worksDetailBox"
  1861. v-if="workStudent[toolIndex].length > 0"
  1862. >
  1863. <div
  1864. class="works"
  1865. v-for="(w, wIndex) in workStudent[toolIndex]"
  1866. :key="wIndex"
  1867. >
  1868. <div class="workImg">
  1869. <!-- <img
  1870. src="../../assets/icon/works/noImg.png"
  1871. @click="openTools(15, toolIndex, taskCount, w.works)"
  1872. alt=""
  1873. />-->
  1874. <div class="answerBg">
  1875. <!-- <div>{{ w.sName }}</div> -->
  1876. <el-tooltip
  1877. class="item"
  1878. effect="light"
  1879. :content="JSON.parse(w.works)[0].answer"
  1880. placement="top"
  1881. >
  1882. <div class="answerContent">
  1883. {{ JSON.parse(w.works)[0].answer }}
  1884. </div>
  1885. </el-tooltip>
  1886. <div
  1887. class="answerScore"
  1888. v-if="w.score"
  1889. @click.stop="openScore(w)"
  1890. :class="{
  1891. rightW:
  1892. w.userid == userid ||
  1893. tType == 1 ||
  1894. tType == 4,
  1895. }"
  1896. >
  1897. {{ JSON.parse(w.score).wScore }}分
  1898. </div>
  1899. <div
  1900. class="answerScore"
  1901. @click.stop="openScore(w)"
  1902. v-else-if="courseDetail.userid == userid"
  1903. :class="{
  1904. rightW:
  1905. w.userid == userid ||
  1906. tType == 1 ||
  1907. tType == 4,
  1908. }"
  1909. >
  1910. 评分
  1911. </div>
  1912. <img
  1913. class="deleteImg"
  1914. src="../../assets/deleteworks.png"
  1915. v-if="
  1916. w.userid == userid || tType == 1 || tType == 4
  1917. "
  1918. @click.stop="deleteWorks(w.wid)"
  1919. alt
  1920. />
  1921. </div>
  1922. <div class="comment">
  1923. <div class="worksName">
  1924. <div>{{ w.sName }}</div>
  1925. </div>
  1926. </div>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. </div>
  1931. <div
  1932. v-if="
  1933. tType &&
  1934. tType == 2 &&
  1935. !sIsOpen &&
  1936. tool.tool.indexOf(1) != -1
  1937. "
  1938. class="worksBox"
  1939. >
  1940. <div
  1941. class="zuoyeYulan"
  1942. v-if="workStudent[toolIndex].length > 0"
  1943. >
  1944. <span class="worksTitle">作业预览</span>
  1945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1946. </div>
  1947. <div
  1948. class="worksDetailBox"
  1949. v-if="workStudent[toolIndex].length > 0"
  1950. >
  1951. <div
  1952. class="works"
  1953. style="
  1954. width: 200px;
  1955. height: 140px;
  1956. margin: 10px 10px 10px 0;
  1957. box-shadow: 0 0 6px 1px #dfdada;
  1958. "
  1959. v-for="(w, wIndex) in workStudent[toolIndex]"
  1960. :key="wIndex"
  1961. >
  1962. <div class="workImg">
  1963. <img
  1964. :src="w.works"
  1965. @click="previewImg(w.works)"
  1966. alt
  1967. />
  1968. <div
  1969. class="answerScore"
  1970. v-if="w.score"
  1971. @click.stop="openScore(w)"
  1972. :class="{
  1973. rightW:
  1974. w.userid == userid || tType == 1 || tType == 4,
  1975. }"
  1976. >
  1977. {{ JSON.parse(w.score).wScore }}分
  1978. </div>
  1979. <div
  1980. class="answerScore"
  1981. @click.stop="openScore(w)"
  1982. v-else-if="courseDetail.userid == userid"
  1983. :class="{
  1984. rightW:
  1985. w.userid == userid || tType == 1 || tType == 4,
  1986. }"
  1987. >
  1988. 评分
  1989. </div>
  1990. <img
  1991. class="deleteImg"
  1992. src="../../assets/deleteworks.png"
  1993. v-if="
  1994. w.userid == userid || tType == 1 || tType == 4
  1995. "
  1996. @click.stop="deleteWorks(w.wid)"
  1997. alt
  1998. />
  1999. </div>
  2000. <div class="worksName">
  2001. <div>{{ w.sName }}</div>
  2002. </div>
  2003. </div>
  2004. </div>
  2005. </div>
  2006. <div
  2007. v-if="
  2008. tType &&
  2009. tType == 2 &&
  2010. !sIsOpen &&
  2011. tool.tool.indexOf(3) != -1
  2012. "
  2013. class="worksBox"
  2014. >
  2015. <div
  2016. class="zuoyeYulan"
  2017. v-if="workStudent[toolIndex].length > 0"
  2018. >
  2019. <span class="worksTitle">作业预览</span>
  2020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2021. </div>
  2022. <div
  2023. class="worksDetailBox"
  2024. v-if="workStudent[toolIndex].length > 0"
  2025. >
  2026. <div
  2027. class="works"
  2028. style="
  2029. width: 200px;
  2030. height: 140px;
  2031. margin: 10px 10px 10px 0;
  2032. box-shadow: 0 0 6px 1px #dfdada;
  2033. "
  2034. v-for="(w, wIndex) in workStudent[toolIndex]"
  2035. :key="wIndex"
  2036. >
  2037. <div class="workImg">
  2038. <img
  2039. :src="w.works"
  2040. @click="previewImg(w.works)"
  2041. alt
  2042. />
  2043. <div
  2044. class="answerScore"
  2045. v-if="w.score"
  2046. @click.stop="openScore(w)"
  2047. :class="{
  2048. rightW:
  2049. w.userid == userid || tType == 1 || tType == 4,
  2050. }"
  2051. >
  2052. {{ JSON.parse(w.score).wScore }}分
  2053. </div>
  2054. <div
  2055. class="answerScore"
  2056. @click.stop="openScore(w)"
  2057. v-else-if="courseDetail.userid == userid"
  2058. :class="{
  2059. rightW:
  2060. w.userid == userid || tType == 1 || tType == 4,
  2061. }"
  2062. >
  2063. 评分
  2064. </div>
  2065. <img
  2066. class="deleteImg"
  2067. src="../../assets/deleteworks.png"
  2068. v-if="
  2069. w.userid == userid || tType == 1 || tType == 4
  2070. "
  2071. @click.stop="deleteWorks(w.wid)"
  2072. alt
  2073. />
  2074. </div>
  2075. <div class="worksName">
  2076. <div>{{ w.sName }}</div>
  2077. </div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. tType == 2 &&
  2085. !sIsOpen &&
  2086. tool.tool.indexOf(6) != -1
  2087. "
  2088. class="worksBox"
  2089. >
  2090. <div
  2091. class="zuoyeYulan"
  2092. v-if="workStudent[toolIndex].length > 0"
  2093. >
  2094. <span class="worksTitle">作业预览</span>
  2095. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="works"
  2103. style="
  2104. width: 200px;
  2105. height: 140px;
  2106. margin: 10px 10px 10px 0;
  2107. box-shadow: 0 0 6px 1px #dfdada;
  2108. "
  2109. v-for="(w, wIndex) in workStudent[toolIndex]"
  2110. :key="wIndex"
  2111. >
  2112. <div class="workImg">
  2113. <img
  2114. :src="w.works"
  2115. @click="previewImg(w.works)"
  2116. alt
  2117. />
  2118. <div
  2119. class="answerScore"
  2120. v-if="w.score"
  2121. @click.stop="openScore(w)"
  2122. :class="{
  2123. rightW:
  2124. w.userid == userid || tType == 1 || tType == 4,
  2125. }"
  2126. >
  2127. {{ JSON.parse(w.score).wScore }}分
  2128. </div>
  2129. <div
  2130. class="answerScore"
  2131. @click.stop="openScore(w)"
  2132. v-else-if="courseDetail.userid == userid"
  2133. :class="{
  2134. rightW:
  2135. w.userid == userid || tType == 1 || tType == 4,
  2136. }"
  2137. >
  2138. 评分
  2139. </div>
  2140. <img
  2141. class="deleteImg"
  2142. src="../../assets/deleteworks.png"
  2143. v-if="
  2144. w.userid == userid || tType == 1 || tType == 4
  2145. "
  2146. @click.stop="deleteWorks(w.wid)"
  2147. alt
  2148. />
  2149. </div>
  2150. <div class="worksName">
  2151. <div>{{ w.sName }}</div>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <div
  2157. v-if="
  2158. tType &&
  2159. tType == 2 &&
  2160. !sIsOpen &&
  2161. tool.tool.indexOf(7) != -1
  2162. "
  2163. class="worksBox"
  2164. >
  2165. <div
  2166. class="zuoyeYulan"
  2167. v-if="workStudent[toolIndex].length > 0"
  2168. >
  2169. <span class="worksTitle">作业预览</span>
  2170. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2171. </div>
  2172. <div
  2173. class="worksDetailBox"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <div
  2177. class="works"
  2178. style="
  2179. width: 200px;
  2180. height: 140px;
  2181. margin: 10px 10px 10px 0;
  2182. box-shadow: 0 0 6px 1px #dfdada;
  2183. "
  2184. v-for="(w, wIndex) in workStudent[toolIndex]"
  2185. :key="wIndex"
  2186. >
  2187. <div class="workImg">
  2188. <img
  2189. :src="w.works"
  2190. @click="previewImg(w.works)"
  2191. alt
  2192. />
  2193. <div
  2194. class="answerScore"
  2195. v-if="w.score"
  2196. @click.stop="openScore(w)"
  2197. :class="{
  2198. rightW:
  2199. w.userid == userid || tType == 1 || tType == 4,
  2200. }"
  2201. >
  2202. {{ JSON.parse(w.score).wScore }}分
  2203. </div>
  2204. <div
  2205. class="answerScore"
  2206. @click.stop="openScore(w)"
  2207. v-else-if="courseDetail.userid == userid"
  2208. :class="{
  2209. rightW:
  2210. w.userid == userid || tType == 1 || tType == 4,
  2211. }"
  2212. >
  2213. 评分
  2214. </div>
  2215. <img
  2216. class="deleteImg"
  2217. src="../../assets/deleteworks.png"
  2218. v-if="
  2219. w.userid == userid || tType == 1 || tType == 4
  2220. "
  2221. @click.stop="deleteWorks(w.wid)"
  2222. alt
  2223. />
  2224. </div>
  2225. <div class="worksName">
  2226. <div>{{ w.sName }}</div>
  2227. </div>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. <div
  2232. v-if="
  2233. tType &&
  2234. tType == 2 &&
  2235. !sIsOpen &&
  2236. tool.tool.indexOf(26) != -1
  2237. "
  2238. class="worksBox"
  2239. >
  2240. <div
  2241. class="zuoyeYulan"
  2242. v-if="workStudent[toolIndex].length > 0"
  2243. >
  2244. <span class="worksTitle">作业预览</span>
  2245. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2246. </div>
  2247. <div
  2248. class="worksDetailBox"
  2249. v-if="workStudent[toolIndex].length > 0"
  2250. >
  2251. <div
  2252. class="works"
  2253. style="
  2254. width: 200px;
  2255. height: 140px;
  2256. margin: 10px 10px 10px 0;
  2257. box-shadow: 0 0 6px 1px #dfdada;
  2258. "
  2259. v-for="(w, wIndex) in workStudent[toolIndex]"
  2260. :key="wIndex"
  2261. >
  2262. <div class="workImg">
  2263. <img
  2264. :src="w.works"
  2265. @click="previewImg(w.works)"
  2266. alt
  2267. />
  2268. <img
  2269. class="deleteImg"
  2270. src="../../assets/deleteworks.png"
  2271. v-if="
  2272. w.userid == userid || tType == 1 || tType == 4
  2273. "
  2274. @click.stop="deleteWorks(w.wid)"
  2275. alt
  2276. />
  2277. </div>
  2278. <div class="worksName">
  2279. <div>{{ w.sName }}</div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. <div
  2285. v-if="
  2286. tType &&
  2287. ((tType == 2 && sIsOpen == true) ||
  2288. tType == 1 ||
  2289. tType == 4) &&
  2290. tool.tool.indexOf(16) != -1
  2291. "
  2292. class="worksBox"
  2293. >
  2294. <div
  2295. class="zuoyeYulan"
  2296. v-if="
  2297. (worksStudent.length &&
  2298. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2299. "
  2300. >
  2301. <div class="worksTop">
  2302. <div>作业预览</div>
  2303. <div
  2304. class="corOpen"
  2305. @click="contract(toolIndex)"
  2306. v-if="
  2307. (isCloseList[toolIndex].isCloseBoolean) &&
  2308. isCloseList[toolIndex].isClose == 0
  2309. "
  2310. >
  2311. 折叠
  2312. </div>
  2313. <div
  2314. class="corOpen"
  2315. @click="contract(toolIndex)"
  2316. v-if="isCloseList[toolIndex].isClose == 1"
  2317. >
  2318. 展开
  2319. </div>
  2320. </div>
  2321. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2322. </div>
  2323. <div
  2324. class="group_workBox"
  2325. v-for="(g, gindex) in courseGroup.group"
  2326. :key="gindex"
  2327. >
  2328. <div class="group_box">
  2329. <div class="group_title">
  2330. <el-tooltip
  2331. class="item"
  2332. effect="light"
  2333. :content="g.name"
  2334. placement="top"
  2335. >
  2336. <div class="group_name">{{ g.name }}</div>
  2337. </el-tooltip>
  2338. </div>
  2339. <div
  2340. class="group_work"
  2341. v-if="
  2342. g.works &&
  2343. g.works.length &&
  2344. g.works[toolIndex].length
  2345. "
  2346. >
  2347. <div
  2348. class="works"
  2349. style="
  2350. width: 200px;
  2351. height: 140px;
  2352. margin: 10px 10px 10px 0;
  2353. border-radius: 15px;
  2354. box-shadow: 0 0 6px 1px #dfdada;
  2355. "
  2356. v-for="(w, wIndex) in g.works[toolIndex]"
  2357. :key="wIndex"
  2358. :class="w.type == 1 ? 'isTypeOne' : ''"
  2359. >
  2360. <div class="workImg" v-if="w.type == 0">
  2361. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2362. <img
  2363. :src="w.works"
  2364. @click="previewImg(w.works)"
  2365. alt
  2366. />
  2367. <div
  2368. class="answerScore"
  2369. v-if="w.score"
  2370. @click.stop="openScore(w)"
  2371. :class="{
  2372. rightW:
  2373. w.userid == userid ||
  2374. tType == 1 ||
  2375. tType == 4 ||
  2376. w.ateacher == userid,
  2377. }"
  2378. >
  2379. {{ JSON.parse(w.score).wScore }}分
  2380. </div>
  2381. <div
  2382. class="answerScore"
  2383. @click.stop="openScore(w)"
  2384. v-else-if="courseDetail.userid == userid"
  2385. :class="{
  2386. rightW:
  2387. w.userid == userid ||
  2388. tType == 1 ||
  2389. tType == 4 ||
  2390. w.ateacher == userid,
  2391. }"
  2392. >
  2393. 评分
  2394. </div>
  2395. <img
  2396. class="deleteImg"
  2397. src="../../assets/deleteworks.png"
  2398. v-if="
  2399. w.userid == userid || tType == 1 || tType == 4
  2400. "
  2401. @click.stop="deleteWorks(w.wid)"
  2402. alt
  2403. />
  2404. </div>
  2405. <div class="workImg" v-if="w.type == 1">
  2406. <img :src="word" @click="openFile(w.works)" alt />
  2407. <!-- @click="openFile(w.works)" -->
  2408. <div
  2409. class="answerScore"
  2410. v-if="w.score"
  2411. @click.stop="openScore(w)"
  2412. :class="{
  2413. rightW:
  2414. w.userid == userid ||
  2415. tType == 1 ||
  2416. tType == 4 ||
  2417. w.ateacher == userid,
  2418. }"
  2419. >
  2420. {{ JSON.parse(w.score).wScore }}分
  2421. </div>
  2422. <div
  2423. class="answerScore"
  2424. @click.stop="openScore(w)"
  2425. v-else-if="courseDetail.userid == userid"
  2426. :class="{
  2427. rightW:
  2428. w.userid == userid ||
  2429. tType == 1 ||
  2430. tType == 4 ||
  2431. w.ateacher == userid,
  2432. }"
  2433. >
  2434. 评分
  2435. </div>
  2436. <img
  2437. class="deleteImg"
  2438. src="../../assets/deleteworks.png"
  2439. v-if="
  2440. w.userid == userid || tType == 1 || tType == 4
  2441. "
  2442. @click.stop="deleteWorks(w.wid)"
  2443. alt
  2444. />
  2445. </div>
  2446. <div class="workImg" v-if="w.type == 3">
  2447. <img
  2448. style="cursor: pointer"
  2449. :src="video"
  2450. @click="openVideo(w)"
  2451. alt
  2452. />
  2453. <!-- @click="openVideo(w.works)" -->
  2454. <div
  2455. class="answerScore"
  2456. v-if="w.score"
  2457. @click.stop="openScore(w)"
  2458. :class="{
  2459. rightW:
  2460. w.userid == userid ||
  2461. tType == 1 ||
  2462. tType == 4 ||
  2463. w.ateacher == userid,
  2464. }"
  2465. >
  2466. {{ JSON.parse(w.score).wScore }}分
  2467. </div>
  2468. <div
  2469. class="answerScore"
  2470. @click.stop="openScore(w)"
  2471. v-else-if="courseDetail.userid == userid"
  2472. :class="{
  2473. rightW:
  2474. w.userid == userid ||
  2475. tType == 1 ||
  2476. tType == 4 ||
  2477. w.ateacher == userid,
  2478. }"
  2479. >
  2480. 评分
  2481. </div>
  2482. <img
  2483. class="deleteImg"
  2484. src="../../assets/deleteworks.png"
  2485. v-if="
  2486. w.userid == userid || tType == 1 || tType == 4
  2487. "
  2488. @click.stop="deleteWorks(w.wid)"
  2489. alt
  2490. />
  2491. </div>
  2492. <div class="workImg" v-if="w.type == 12">
  2493. <img
  2494. style="cursor: pointer"
  2495. :src="word2"
  2496. @click="downloadFile(w.works)"
  2497. alt
  2498. />
  2499. <!-- @click="openVideo(w.works)" -->
  2500. <div
  2501. class="answerScore"
  2502. v-if="w.score"
  2503. @click.stop="openScore(w)"
  2504. :class="{
  2505. rightW:
  2506. w.userid == userid ||
  2507. tType == 1 ||
  2508. tType == 4 ||
  2509. w.ateacher == userid,
  2510. }"
  2511. >
  2512. {{ JSON.parse(w.score).wScore }}分
  2513. </div>
  2514. <div
  2515. class="answerScore"
  2516. @click.stop="openScore(w)"
  2517. v-else-if="courseDetail.userid == userid"
  2518. :class="{
  2519. rightW:
  2520. w.userid == userid ||
  2521. tType == 1 ||
  2522. tType == 4 ||
  2523. w.ateacher == userid,
  2524. }"
  2525. >
  2526. 评分
  2527. </div>
  2528. <img
  2529. class="deleteImg"
  2530. src="../../assets/deleteworks.png"
  2531. v-if="
  2532. w.userid == userid || tType == 1 || tType == 4
  2533. "
  2534. @click.stop="deleteWorks(w.wid)"
  2535. alt
  2536. />
  2537. </div>
  2538. <div class="comment" style="min-width: 200px">
  2539. <div class="worksName">
  2540. <div>{{ w.sName }}</div>
  2541. </div>
  2542. <div class="commentList">
  2543. <div class="commentList">
  2544. <div
  2545. class="commentImg"
  2546. @click="
  2547. isLikes(w.wid, userid, 1, null, w.isLikes)
  2548. "
  2549. >
  2550. <img
  2551. :src="w.isLikes == true ? likes : noLikes"
  2552. alt=""
  2553. />
  2554. </div>
  2555. <div>{{ w.likesCount }}</div>
  2556. </div>
  2557. <div
  2558. class="commentList"
  2559. style="margin-right: 15px"
  2560. >
  2561. <div
  2562. class="commentImg"
  2563. @click="
  2564. commentOther(
  2565. w,
  2566. toolIndex,
  2567. wIndex,
  2568. null,
  2569. g.id
  2570. )
  2571. "
  2572. >
  2573. <img
  2574. src="../../assets/icon/comment/comment.png"
  2575. alt=""
  2576. />
  2577. </div>
  2578. <div>{{ w.commentCount }}</div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. </div>
  2584. <div class="group_work" v-else>暂无提交作业</div>
  2585. </div>
  2586. </div>
  2587. <div
  2588. :id="'tool-' + toolIndex"
  2589. :style="{
  2590. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2591. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2592. }"
  2593. class="worksDetailBox"
  2594. v-if="
  2595. worksStudent.length &&
  2596. worksStudent[toolIndex].length > 0
  2597. "
  2598. >
  2599. <div
  2600. class="works"
  2601. style="
  2602. width: 200px;
  2603. height: 140px;
  2604. margin: 10px 10px 10px 0;
  2605. border-radius: 15px;
  2606. box-shadow: 0 0 6px 1px #dfdada;
  2607. "
  2608. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2609. :key="wIndex"
  2610. :class="w.type == 1 ? 'isTypeOne' : ''"
  2611. >
  2612. <div class="workImg" v-if="w.type == 0">
  2613. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2614. <img
  2615. :src="w.works"
  2616. @click="previewImg(w.works)"
  2617. alt
  2618. />
  2619. <div
  2620. class="answerScore"
  2621. v-if="w.score"
  2622. @click.stop="openScore(w)"
  2623. :class="{
  2624. rightW:
  2625. w.userid == userid ||
  2626. tType == 1 ||
  2627. tType == 4 ||
  2628. w.ateacher == userid,
  2629. }"
  2630. >
  2631. {{ JSON.parse(w.score).wScore }}分
  2632. </div>
  2633. <div
  2634. class="answerScore"
  2635. @click.stop="openScore(w)"
  2636. v-else-if="courseDetail.userid == userid"
  2637. :class="{
  2638. rightW:
  2639. w.userid == userid ||
  2640. tType == 1 ||
  2641. tType == 4 ||
  2642. w.ateacher == userid,
  2643. }"
  2644. >
  2645. 评分
  2646. </div>
  2647. <img
  2648. class="deleteImg"
  2649. src="../../assets/deleteworks.png"
  2650. v-if="
  2651. w.userid == userid || tType == 1 || tType == 4
  2652. "
  2653. @click.stop="deleteWorks(w.wid)"
  2654. alt
  2655. />
  2656. </div>
  2657. <div class="workImg" v-if="w.type == 1">
  2658. <img :src="word" @click="openFile(w.works)" alt />
  2659. <!-- @click="openFile(w.works)" -->
  2660. <div
  2661. class="answerScore"
  2662. v-if="w.score"
  2663. @click.stop="openScore(w)"
  2664. :class="{
  2665. rightW:
  2666. w.userid == userid ||
  2667. tType == 1 ||
  2668. tType == 4 ||
  2669. w.ateacher == userid,
  2670. }"
  2671. >
  2672. {{ JSON.parse(w.score).wScore }}分
  2673. </div>
  2674. <div
  2675. class="answerScore"
  2676. @click.stop="openScore(w)"
  2677. v-else-if="courseDetail.userid == userid"
  2678. :class="{
  2679. rightW:
  2680. w.userid == userid ||
  2681. tType == 1 ||
  2682. tType == 4 ||
  2683. w.ateacher == userid,
  2684. }"
  2685. >
  2686. 评分
  2687. </div>
  2688. <img
  2689. class="deleteImg"
  2690. src="../../assets/deleteworks.png"
  2691. v-if="
  2692. w.userid == userid || tType == 1 || tType == 4
  2693. "
  2694. @click.stop="deleteWorks(w.wid)"
  2695. alt
  2696. />
  2697. </div>
  2698. <div class="workImg" v-if="w.type == 3">
  2699. <img
  2700. style="cursor: pointer"
  2701. :src="video"
  2702. @click="openVideo(w)"
  2703. alt
  2704. />
  2705. <!-- @click="openVideo(w.works)" -->
  2706. <div
  2707. class="answerScore"
  2708. v-if="w.score"
  2709. @click.stop="openScore(w)"
  2710. :class="{
  2711. rightW:
  2712. w.userid == userid ||
  2713. tType == 1 ||
  2714. tType == 4 ||
  2715. w.ateacher == userid,
  2716. }"
  2717. >
  2718. {{ JSON.parse(w.score).wScore }}分
  2719. </div>
  2720. <div
  2721. class="answerScore"
  2722. @click.stop="openScore(w)"
  2723. v-else-if="courseDetail.userid == userid"
  2724. :class="{
  2725. rightW:
  2726. w.userid == userid ||
  2727. tType == 1 ||
  2728. tType == 4 ||
  2729. w.ateacher == userid,
  2730. }"
  2731. >
  2732. 评分
  2733. </div>
  2734. <img
  2735. class="deleteImg"
  2736. src="../../assets/deleteworks.png"
  2737. v-if="
  2738. w.userid == userid || tType == 1 || tType == 4
  2739. "
  2740. @click.stop="deleteWorks(w.wid)"
  2741. alt
  2742. />
  2743. </div>
  2744. <div class="workImg" v-if="w.type == 12">
  2745. <img
  2746. style="cursor: pointer"
  2747. :src="word2"
  2748. @click="downloadFile(w.works)"
  2749. alt
  2750. />
  2751. <!-- @click="openVideo(w.works)" -->
  2752. <div
  2753. class="answerScore"
  2754. v-if="w.score"
  2755. @click.stop="openScore(w)"
  2756. :class="{
  2757. rightW:
  2758. w.userid == userid ||
  2759. tType == 1 ||
  2760. tType == 4 ||
  2761. w.ateacher == userid,
  2762. }"
  2763. >
  2764. {{ JSON.parse(w.score).wScore }}分
  2765. </div>
  2766. <div
  2767. class="answerScore"
  2768. @click.stop="openScore(w)"
  2769. v-else-if="courseDetail.userid == userid"
  2770. :class="{
  2771. rightW:
  2772. w.userid == userid ||
  2773. tType == 1 ||
  2774. tType == 4 ||
  2775. w.ateacher == userid,
  2776. }"
  2777. >
  2778. 评分
  2779. </div>
  2780. <img
  2781. class="deleteImg"
  2782. src="../../assets/deleteworks.png"
  2783. v-if="
  2784. w.userid == userid || tType == 1 || tType == 4
  2785. "
  2786. @click.stop="deleteWorks(w.wid)"
  2787. alt
  2788. />
  2789. </div>
  2790. <div class="comment" style="min-width: 200px">
  2791. <div class="worksName">
  2792. <div>{{ w.sName }}</div>
  2793. </div>
  2794. <div class="commentList">
  2795. <div class="commentList">
  2796. <div
  2797. class="commentImg"
  2798. @click="
  2799. isLikes(w.wid, userid, 1, null, w.isLikes)
  2800. "
  2801. >
  2802. <img
  2803. :src="w.isLikes == true ? likes : noLikes"
  2804. alt=""
  2805. />
  2806. </div>
  2807. <div>{{ w.likesCount }}</div>
  2808. </div>
  2809. <div class="commentList" style="margin-right: 15px">
  2810. <div
  2811. class="commentImg"
  2812. @click="commentOther(w, toolIndex, wIndex)"
  2813. >
  2814. <img
  2815. src="../../assets/icon/comment/comment.png"
  2816. alt=""
  2817. />
  2818. </div>
  2819. <div>{{ w.commentCount }}</div>
  2820. </div>
  2821. </div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2826. 未提交
  2827. </div>
  2828. <div
  2829. class="noWorksS"
  2830. v-if="noWorksS && noWorksS[toolIndex].length"
  2831. >
  2832. <div
  2833. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2834. :key="sIndex"
  2835. class="noWorksName"
  2836. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2837. >
  2838. {{ s.student }}
  2839. </div>
  2840. </div>
  2841. </div>
  2842. <div
  2843. v-if="
  2844. tType &&
  2845. ((tType == 2 && sIsOpen == true) ||
  2846. tType == 1 ||
  2847. tType == 4) &&
  2848. tool.tool.indexOf(32) != -1
  2849. "
  2850. class="worksBox"
  2851. >
  2852. <div
  2853. class="zuoyeYulan"
  2854. v-if="
  2855. worksStudent.length &&
  2856. worksStudent[toolIndex].length > 0
  2857. "
  2858. >
  2859. <div class="worksTop">
  2860. <div>作业预览</div>
  2861. <div
  2862. class="corOpen"
  2863. @click="contract(toolIndex)"
  2864. v-if="
  2865. (isCloseList[toolIndex].isCloseBoolean) &&
  2866. isCloseList[toolIndex].isClose == 0
  2867. "
  2868. >
  2869. 折叠
  2870. </div>
  2871. <div
  2872. class="corOpen"
  2873. @click="contract(toolIndex)"
  2874. v-if="isCloseList[toolIndex].isClose == 1"
  2875. >
  2876. 展开
  2877. </div>
  2878. </div>
  2879. </div>
  2880. <div
  2881. :id="'tool-' + toolIndex"
  2882. class="worksDetailBox"
  2883. :style="{
  2884. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2885. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2886. }"
  2887. v-if="
  2888. worksStudent.length &&
  2889. worksStudent[toolIndex].length > 0
  2890. "
  2891. >
  2892. <div
  2893. class="works"
  2894. style="
  2895. width: 200px;
  2896. height: 140px;
  2897. margin: 10px 10px 10px 0;
  2898. border-radius: 15px;
  2899. box-shadow: 0 0 6px 1px #dfdada;
  2900. "
  2901. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2902. :key="wIndex"
  2903. :class="w.type == 1 ? 'isTypeOne' : ''"
  2904. >
  2905. <div class="workImg">
  2906. <img
  2907. :src="word2"
  2908. @click="downloadFile(w.works)"
  2909. alt
  2910. />
  2911. <div
  2912. class="answerScore"
  2913. v-if="w.score"
  2914. @click.stop="openScore(w)"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. {{ JSON.parse(w.score).wScore }}分
  2924. </div>
  2925. <div
  2926. class="answerScore"
  2927. @click.stop="openScore(w)"
  2928. v-else-if="courseDetail.userid == userid"
  2929. :class="{
  2930. rightW:
  2931. w.userid == userid ||
  2932. tType == 1 ||
  2933. tType == 4 ||
  2934. w.ateacher == userid,
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="comment" style="min-width: 200px">
  2950. <div class="worksName">
  2951. <div>{{ w.sName }}</div>
  2952. </div>
  2953. <div class="commentList">
  2954. <div class="commentList">
  2955. <div
  2956. class="commentImg"
  2957. @click="
  2958. isLikes(w.wid, userid, 1, null, w.isLikes)
  2959. "
  2960. >
  2961. <img
  2962. :src="w.isLikes == true ? likes : noLikes"
  2963. alt=""
  2964. />
  2965. </div>
  2966. <div>{{ w.likesCount }}</div>
  2967. </div>
  2968. <div class="commentList" style="margin-right: 15px">
  2969. <div
  2970. class="commentImg"
  2971. @click="commentOther(w, toolIndex, wIndex)"
  2972. >
  2973. <img
  2974. src="../../assets/icon/comment/comment.png"
  2975. alt=""
  2976. />
  2977. </div>
  2978. <div>{{ w.commentCount }}</div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2985. 未提交
  2986. </div>
  2987. <div
  2988. class="noWorksS"
  2989. v-if="noWorksS && noWorksS[toolIndex].length"
  2990. >
  2991. <div
  2992. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2993. :key="sIndex"
  2994. class="noWorksName"
  2995. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2996. >
  2997. {{ s.student }}
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(57) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. (isCloseList[toolIndex].isCloseBoolean) &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. </div>
  3039. <div
  3040. :id="'tool-' + toolIndex"
  3041. class="worksDetailBox"
  3042. :style="{
  3043. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3044. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3045. }"
  3046. v-if="
  3047. worksStudent.length &&
  3048. worksStudent[toolIndex].length > 0
  3049. "
  3050. >
  3051. <div
  3052. class="works"
  3053. style="
  3054. width: 200px;
  3055. height: 140px;
  3056. margin: 10px 10px 10px 0;
  3057. border-radius: 15px;
  3058. box-shadow: 0 0 6px 1px #dfdada;
  3059. "
  3060. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3061. :key="wIndex"
  3062. :class="w.type == 1 ? 'isTypeOne' : ''"
  3063. >
  3064. <div class="workImg">
  3065. <img
  3066. :src="word2"
  3067. @click="downloadFile(w.works)"
  3068. v-if="w.type == 12"
  3069. alt
  3070. />
  3071. <img
  3072. :src="word2"
  3073. @click="
  3074. openCocoPi(57, toolIndex, w.userid, w.sName)
  3075. "
  3076. v-else-if="w.type == 15"
  3077. alt
  3078. />
  3079. <div
  3080. class="answerScore"
  3081. v-if="w.score"
  3082. @click.stop="openScore(w)"
  3083. :class="{
  3084. rightW:
  3085. w.userid == userid ||
  3086. tType == 1 ||
  3087. tType == 4 ||
  3088. w.ateacher == userid,
  3089. }"
  3090. >
  3091. {{ JSON.parse(w.score).wScore }}分
  3092. </div>
  3093. <div
  3094. class="answerScore"
  3095. @click.stop="openScore(w)"
  3096. v-else-if="courseDetail.userid == userid"
  3097. :class="{
  3098. rightW:
  3099. w.userid == userid ||
  3100. tType == 1 ||
  3101. tType == 4 ||
  3102. w.ateacher == userid,
  3103. }"
  3104. >
  3105. 评分
  3106. </div>
  3107. <img
  3108. class="deleteImg"
  3109. src="../../assets/deleteworks.png"
  3110. v-if="
  3111. w.userid == userid || tType == 1 || tType == 4
  3112. "
  3113. @click.stop="deleteWorks(w.wid)"
  3114. alt
  3115. />
  3116. </div>
  3117. <div class="comment" style="min-width: 200px">
  3118. <div class="worksName">
  3119. <div>{{ w.sName }}</div>
  3120. </div>
  3121. <div class="commentList">
  3122. <div class="commentList">
  3123. <div
  3124. class="commentImg"
  3125. @click="
  3126. isLikes(w.wid, userid, 1, null, w.isLikes)
  3127. "
  3128. >
  3129. <img
  3130. :src="w.isLikes == true ? likes : noLikes"
  3131. alt=""
  3132. />
  3133. </div>
  3134. <div>{{ w.likesCount }}</div>
  3135. </div>
  3136. <div class="commentList" style="margin-right: 15px">
  3137. <div
  3138. class="commentImg"
  3139. @click="commentOther(w, toolIndex, wIndex)"
  3140. >
  3141. <img
  3142. src="../../assets/icon/comment/comment.png"
  3143. alt=""
  3144. />
  3145. </div>
  3146. <div>{{ w.commentCount }}</div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. </div>
  3152. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3153. 未提交
  3154. </div>
  3155. <div
  3156. class="noWorksS"
  3157. v-if="noWorksS && noWorksS[toolIndex].length"
  3158. >
  3159. <div
  3160. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3161. :key="sIndex"
  3162. class="noWorksName"
  3163. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3164. >
  3165. {{ s.student }}
  3166. </div>
  3167. </div>
  3168. </div>
  3169. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3170. <div
  3171. class="zuoyeYulan"
  3172. v-if="
  3173. worksStudent.length &&
  3174. worksStudent[toolIndex].length > 0
  3175. "
  3176. >
  3177. <span class="worksTitle">作业预览</span>
  3178. <div
  3179. class="corOpen"
  3180. @click="contract(toolIndex)"
  3181. v-if="
  3182. (isCloseList[toolIndex].isCloseBoolean) &&
  3183. isCloseList[toolIndex].isClose == 0
  3184. "
  3185. >
  3186. 折叠
  3187. </div>
  3188. <div
  3189. class="corOpen"
  3190. @click="contract(toolIndex)"
  3191. v-if="isCloseList[toolIndex].isClose == 1"
  3192. >
  3193. 展开
  3194. </div>
  3195. </div>
  3196. <div
  3197. :id="'tool-' + toolIndex"
  3198. :style="{
  3199. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3200. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3201. }"
  3202. class="worksDetailBox"
  3203. v-if="
  3204. worksStudent.length &&
  3205. worksStudent[toolIndex].length > 0
  3206. "
  3207. >
  3208. <div
  3209. class="works"
  3210. style="
  3211. width: 200px;
  3212. height: 140px;
  3213. margin: 10px 10px 10px 0;
  3214. border-radius: 15px;
  3215. box-shadow: 0 0 6px 1px #dfdada;
  3216. "
  3217. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3218. :key="wIndex"
  3219. :class="w.type == 1 ? 'isTypeOne' : ''"
  3220. >
  3221. <div class="workImg" v-if="w.type == 0">
  3222. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3223. <img
  3224. :src="w.works"
  3225. @click="previewImg(w.works)"
  3226. alt
  3227. />
  3228. <div
  3229. class="answerScore"
  3230. v-if="w.score"
  3231. @click.stop="openScore(w)"
  3232. :class="{
  3233. rightW:
  3234. w.userid == userid ||
  3235. tType == 1 ||
  3236. tType == 4 ||
  3237. w.ateacher == userid,
  3238. }"
  3239. >
  3240. {{ JSON.parse(w.score).wScore }}分
  3241. </div>
  3242. <div
  3243. class="answerScore"
  3244. @click.stop="openScore(w)"
  3245. v-else-if="courseDetail.userid == userid"
  3246. :class="{
  3247. rightW:
  3248. w.userid == userid ||
  3249. tType == 1 ||
  3250. tType == 4 ||
  3251. w.ateacher == userid,
  3252. }"
  3253. >
  3254. 评分
  3255. </div>
  3256. <img
  3257. class="deleteImg"
  3258. src="../../assets/deleteworks.png"
  3259. v-if="
  3260. w.userid == userid || tType == 1 || tType == 4
  3261. "
  3262. @click.stop="deleteWorks(w.wid)"
  3263. alt
  3264. />
  3265. </div>
  3266. <div
  3267. class="workImg"
  3268. style="cursor: pointer"
  3269. v-if="w.type == 1"
  3270. >
  3271. <img :src="word" @click="openFile(w.works)" alt />
  3272. <!-- @click="openFile(w.works)" -->
  3273. <div
  3274. class="answerScore"
  3275. v-if="w.score"
  3276. @click.stop="openScore(w)"
  3277. :class="{
  3278. rightW:
  3279. w.userid == userid ||
  3280. tType == 1 ||
  3281. tType == 4 ||
  3282. w.ateacher == userid,
  3283. }"
  3284. >
  3285. {{ JSON.parse(w.score).wScore }}分
  3286. </div>
  3287. <div
  3288. class="answerScore"
  3289. @click.stop="openScore(w)"
  3290. v-else-if="courseDetail.userid == userid"
  3291. :class="{
  3292. rightW:
  3293. w.userid == userid ||
  3294. tType == 1 ||
  3295. tType == 4 ||
  3296. w.ateacher == userid,
  3297. }"
  3298. >
  3299. 评分
  3300. </div>
  3301. <img
  3302. class="deleteImg"
  3303. src="../../assets/deleteworks.png"
  3304. v-if="
  3305. w.userid == userid || tType == 1 || tType == 4
  3306. "
  3307. @click.stop="deleteWorks(w.wid)"
  3308. alt
  3309. />
  3310. </div>
  3311. <div class="workImg" v-if="w.type == 3">
  3312. <img
  3313. style="cursor: pointer"
  3314. :src="video"
  3315. @click="openVideo(w)"
  3316. alt
  3317. />
  3318. <!-- @click="openVideo(w.works)" -->
  3319. <div
  3320. class="answerScore"
  3321. v-if="w.score"
  3322. @click.stop="openScore(w)"
  3323. :class="{
  3324. rightW:
  3325. w.userid == userid ||
  3326. tType == 1 ||
  3327. tType == 4 ||
  3328. w.ateacher == userid,
  3329. }"
  3330. >
  3331. {{ JSON.parse(w.score).wScore }}分
  3332. </div>
  3333. <div
  3334. class="answerScore"
  3335. @click.stop="openScore(w)"
  3336. v-else-if="courseDetail.userid == userid"
  3337. :class="{
  3338. rightW:
  3339. w.userid == userid ||
  3340. tType == 1 ||
  3341. tType == 4 ||
  3342. w.ateacher == userid,
  3343. }"
  3344. >
  3345. 评分
  3346. </div>
  3347. <img
  3348. class="deleteImg"
  3349. src="../../assets/deleteworks.png"
  3350. v-if="
  3351. w.userid == userid || tType == 1 || tType == 4
  3352. "
  3353. @click.stop="deleteWorks(w.wid)"
  3354. alt
  3355. />
  3356. </div>
  3357. <div class="comment" style="min-width: 200px">
  3358. <div class="worksName">
  3359. <div
  3360. style="cursor: pointer"
  3361. @click="
  3362. openSname(w.sName, w.wid, toolIndex, w.userid)
  3363. "
  3364. >
  3365. {{ w.sName }}
  3366. </div>
  3367. </div>
  3368. <div class="commentList">
  3369. <div class="commentList">
  3370. <div
  3371. class="commentImg"
  3372. @click="
  3373. isLikes(w.wid, userid, 1, null, w.isLikes)
  3374. "
  3375. >
  3376. <img
  3377. :src="w.isLikes == true ? likes : noLikes"
  3378. alt=""
  3379. />
  3380. </div>
  3381. <div>{{ w.likesCount }}</div>
  3382. </div>
  3383. <div class="commentList" style="margin-right: 15px">
  3384. <div
  3385. class="commentImg"
  3386. @click="commentOther(w, toolIndex, wIndex)"
  3387. >
  3388. <img
  3389. src="../../assets/icon/comment/comment.png"
  3390. alt=""
  3391. />
  3392. </div>
  3393. <div>{{ w.commentCount }}</div>
  3394. </div>
  3395. </div>
  3396. </div>
  3397. </div>
  3398. </div>
  3399. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3400. 未提交
  3401. </div>
  3402. <div
  3403. class="noWorksS"
  3404. v-if="noWorksS && noWorksS[toolIndex].length"
  3405. >
  3406. <div
  3407. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3408. :key="sIndex"
  3409. class="noWorksName"
  3410. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3411. >
  3412. {{ s.student }}
  3413. </div>
  3414. </div>
  3415. </div>
  3416. <div
  3417. v-if="
  3418. tType &&
  3419. ((tType == 2 && sIsOpen == true) ||
  3420. tType == 1 ||
  3421. tType == 4) &&
  3422. tool.tool.indexOf(4) != -1 &&
  3423. (tool.askJson[0].answer ||
  3424. tool.askJson[0].answer === 0) &&
  3425. checkJson[toolIndex].length
  3426. "
  3427. class="xuan_right_box"
  3428. >
  3429. <div
  3430. class="tool_right_box"
  3431. v-for="(item, index) in tool.askJson"
  3432. :key="index"
  3433. >
  3434. <div style="width: calc(100% - 30px);">
  3435. <el-tooltip
  3436. effect="light"
  3437. :content="index + 1 + '、' + item.askstitle"
  3438. placement="top"
  3439. popper-class="text_tooltip"
  3440. >
  3441. <div
  3442. style="
  3443. width: calc(100% - 130px);
  3444. display: block;
  3445. white-space: nowrap;
  3446. overflow: hidden;
  3447. text-overflow: ellipsis;
  3448. word-break: break-word;
  3449. cursor: pointer;
  3450. "
  3451. >
  3452. {{ index + 1 + "、" + item.askstitle }}
  3453. </div>
  3454. </el-tooltip>
  3455. </div>
  3456. <div class="right_box_xuan">
  3457. <span>正确率</span>
  3458. <span>{{
  3459. (checkJson[toolIndex][index].right
  3460. ? checkJson[toolIndex][index].right
  3461. : 0) + "%"
  3462. }}</span>
  3463. </div>
  3464. </div>
  3465. </div>
  3466. <div
  3467. class="xuan_right_box"
  3468. style="background: unset; padding: 0 10px"
  3469. v-if="
  3470. tType &&
  3471. ((tType == 2 && sIsOpen == true) ||
  3472. tType == 1 ||
  3473. tType == 4) &&
  3474. tool.tool.indexOf(4) != -1
  3475. "
  3476. >
  3477. <AskStatic
  3478. v-if="
  3479. worksStudent.length &&
  3480. worksStudent[toolIndex].length > 0
  3481. "
  3482. :askJSON="tool"
  3483. :checkJson="checkJson[toolIndex]"
  3484. ></AskStatic>
  3485. </div>
  3486. <div
  3487. v-if="
  3488. tType &&
  3489. ((tType == 2 && sIsOpen == true) ||
  3490. tType == 1 ||
  3491. tType == 4) &&
  3492. tool.tool.indexOf(4) != -1
  3493. "
  3494. class="worksBox"
  3495. >
  3496. <div
  3497. class="zuoyeYulan"
  3498. v-if="
  3499. worksStudent.length &&
  3500. worksStudent[toolIndex].length > 0
  3501. "
  3502. >
  3503. <div class="worksTop">
  3504. <div>作业预览</div>
  3505. <div
  3506. class="corOpen"
  3507. @click="contract(toolIndex)"
  3508. v-if="
  3509. (isCloseList[toolIndex].isCloseBoolean) &&
  3510. isCloseList[toolIndex].isClose == 0
  3511. "
  3512. >
  3513. 折叠
  3514. </div>
  3515. <div
  3516. class="corOpen"
  3517. @click="contract(toolIndex)"
  3518. v-if="isCloseList[toolIndex].isClose == 1"
  3519. >
  3520. 展开
  3521. </div>
  3522. </div>
  3523. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3524. </div>
  3525. <div>
  3526. <div
  3527. :id="'tool-' + toolIndex"
  3528. :style="{
  3529. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3530. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3531. }"
  3532. class="worksDetailBox"
  3533. v-if="
  3534. worksStudent.length &&
  3535. worksStudent[toolIndex].length > 0
  3536. "
  3537. >
  3538. <div
  3539. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3540. :key="wIndex"
  3541. class="isWorksName2"
  3542. @click="
  3543. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3544. "
  3545. >
  3546. {{ w.sName }}
  3547. <img
  3548. class="deleteImg deleteImg2"
  3549. src="../../assets/deleteworks.png"
  3550. v-if="
  3551. w.userid == userid || tType == 1 || tType == 4
  3552. "
  3553. @click.stop="deleteWorks(w.wid)"
  3554. alt
  3555. />
  3556. </div>
  3557. <!-- <div class="works" style="
  3558. width: 200px;
  3559. height: 140px;
  3560. border-radius: 10px;
  3561. box-shadow: 0 0 6px 1px #dfdada;
  3562. overflow: hidden;
  3563. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3564. <div class="workImg">
  3565. <img src="../../assets/icon/works/noImg.png" @click="
  3566. openTools(
  3567. 4,
  3568. toolIndex,
  3569. taskCount,
  3570. w.works,
  3571. w.sName
  3572. )
  3573. " alt />
  3574. </div>
  3575. <div class="worksName">
  3576. <div>{{ w.sName }}</div>
  3577. <div>{{ w.time }}</div>
  3578. </div>
  3579. </div> -->
  3580. </div>
  3581. </div>
  3582. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3583. 未提交
  3584. </div>
  3585. <div
  3586. class="noWorksS"
  3587. v-if="noWorksS && noWorksS[toolIndex].length"
  3588. >
  3589. <div
  3590. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3591. :key="sIndex"
  3592. class="noWorksName"
  3593. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3594. >
  3595. {{ s.student }}
  3596. </div>
  3597. </div>
  3598. </div>
  3599. <div
  3600. v-if="
  3601. tType &&
  3602. ((tType == 2 && sIsOpen == true) ||
  3603. tType == 1 ||
  3604. tType == 4) &&
  3605. tool.tool.indexOf(45) != -1 &&
  3606. (tool.testJson.testJson[0].answer ||
  3607. tool.testJson.testJson[0].answer === 0) &&
  3608. checkJson[toolIndex].length
  3609. "
  3610. class="xuan_right_box"
  3611. >
  3612. <div
  3613. class="tool_right_box"
  3614. v-for="(item, index) in tool.testJson.testJson"
  3615. :key="index"
  3616. >
  3617. <div class="right_box_xuan" style="margin-right: 10px">
  3618. <span>正确率</span>
  3619. <span>{{
  3620. (checkJson[toolIndex][index].right
  3621. ? checkJson[toolIndex][index].right
  3622. : 0) + "%"
  3623. }}</span>
  3624. </div>
  3625. <div style="width: calc(100% - 30px);">
  3626. <el-tooltip
  3627. effect="light"
  3628. :content="index + 1 + '、' + item.teststitle"
  3629. placement="top"
  3630. popper-class="text_tooltip"
  3631. >
  3632. <div
  3633. style="
  3634. width: calc(100% - 130px);
  3635. display: block;
  3636. white-space: nowrap;
  3637. overflow: hidden;
  3638. text-overflow: ellipsis;
  3639. word-break: break-word;
  3640. cursor: pointer;
  3641. "
  3642. >
  3643. {{ index + 1 + "、" + item.teststitle }}
  3644. </div>
  3645. </el-tooltip>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. <div
  3650. class="xuan_right_box"
  3651. style="background: unset; padding: 0 10px; width: 91.5%"
  3652. v-if="
  3653. tType &&
  3654. ((tType == 2 && sIsOpen == true) ||
  3655. tType == 1 ||
  3656. tType == 4) &&
  3657. tool.tool.indexOf(45) != -1
  3658. "
  3659. >
  3660. <AskStatic2
  3661. v-if="
  3662. worksStudent.length &&
  3663. worksStudent[toolIndex].length > 0
  3664. "
  3665. :askJSON="tool"
  3666. :checkJson="checkJson[toolIndex]"
  3667. ></AskStatic2>
  3668. </div>
  3669. <div
  3670. v-if="
  3671. tType &&
  3672. ((tType == 2 && sIsOpen == true) ||
  3673. tType == 1 ||
  3674. tType == 4) &&
  3675. tool.tool.indexOf(45) != -1
  3676. "
  3677. class="worksBox"
  3678. >
  3679. <div
  3680. class="zuoyeYulan"
  3681. v-if="
  3682. worksStudent.length &&
  3683. worksStudent[toolIndex].length > 0
  3684. "
  3685. >
  3686. <div class="worksTop">
  3687. <div>作业预览</div>
  3688. <div
  3689. class="corOpen"
  3690. @click="contract(toolIndex)"
  3691. v-if="
  3692. (isCloseList[toolIndex].isCloseBoolean) &&
  3693. isCloseList[toolIndex].isClose == 0
  3694. "
  3695. >
  3696. 折叠
  3697. </div>
  3698. <div
  3699. class="corOpen"
  3700. @click="contract(toolIndex)"
  3701. v-if="isCloseList[toolIndex].isClose == 1"
  3702. >
  3703. 展开
  3704. </div>
  3705. </div>
  3706. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3707. </div>
  3708. <div>
  3709. <div
  3710. :id="'tool-' + toolIndex"
  3711. :style="{
  3712. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3713. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3714. }"
  3715. class="worksDetailBox"
  3716. v-if="
  3717. worksStudent.length &&
  3718. worksStudent[toolIndex].length > 0
  3719. "
  3720. >
  3721. <div
  3722. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3723. :key="wIndex"
  3724. class="isWorksName2"
  3725. @click="
  3726. openTools(
  3727. 45,
  3728. toolIndex,
  3729. taskCount,
  3730. w.works,
  3731. w.sName
  3732. )
  3733. "
  3734. >
  3735. {{ w.sName }}
  3736. <img
  3737. class="deleteImg deleteImg2"
  3738. src="../../assets/deleteworks.png"
  3739. v-if="
  3740. w.userid == userid || tType == 1 || tType == 4
  3741. "
  3742. @click.stop="deleteWorks(w.wid)"
  3743. alt
  3744. />
  3745. </div>
  3746. </div>
  3747. </div>
  3748. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3749. 未提交
  3750. </div>
  3751. <div
  3752. class="noWorksS"
  3753. v-if="noWorksS && noWorksS[toolIndex].length"
  3754. >
  3755. <div
  3756. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3757. :key="sIndex"
  3758. class="noWorksName"
  3759. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3760. >
  3761. {{ s.student }}
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div
  3766. v-if="
  3767. tType &&
  3768. ((tType == 2 && sIsOpen == true) ||
  3769. tType == 1 ||
  3770. tType == 4) &&
  3771. tool.tool.indexOf(69) != -1
  3772. "
  3773. class="worksBox"
  3774. >
  3775. <div
  3776. class="zuoyeYulan"
  3777. v-if="
  3778. worksStudent.length &&
  3779. worksStudent[toolIndex].length > 0
  3780. "
  3781. >
  3782. <div class="worksTop">
  3783. <div>作业预览</div>
  3784. <div
  3785. class="corOpen"
  3786. @click="contract(toolIndex)"
  3787. v-if="
  3788. (isCloseList[toolIndex].isCloseBoolean) &&
  3789. isCloseList[toolIndex].isClose == 0
  3790. "
  3791. >
  3792. 折叠
  3793. </div>
  3794. <div
  3795. class="corOpen"
  3796. @click="contract(toolIndex)"
  3797. v-if="isCloseList[toolIndex].isClose == 1"
  3798. >
  3799. 展开
  3800. </div>
  3801. </div>
  3802. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3803. </div>
  3804. <div>
  3805. <div
  3806. :id="'tool-' + toolIndex"
  3807. :style="{
  3808. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3809. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3810. }"
  3811. class="worksDetailBox"
  3812. v-if="
  3813. worksStudent.length &&
  3814. worksStudent[toolIndex].length > 0
  3815. "
  3816. >
  3817. <div
  3818. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3819. :key="wIndex"
  3820. class="isWorksName2"
  3821. style="width: 160px;height: 65px;line-height: 65px;"
  3822. @click="
  3823. openTools(
  3824. 69,
  3825. toolIndex,
  3826. taskCount,
  3827. w.works,
  3828. w.sName,
  3829. w.wid
  3830. )
  3831. "
  3832. >
  3833. {{ w.sName }}
  3834. <img
  3835. class="deleteImg1"
  3836. src="../../assets/evaEnglish.png"
  3837. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3838. alt
  3839. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  3840. />
  3841. <img
  3842. class="deleteImg deleteImg2"
  3843. src="../../assets/deleteworks.png"
  3844. v-if="
  3845. w.userid == userid || tType == 1 || tType == 4
  3846. "
  3847. @click.stop="deleteWorks(w.wid)"
  3848. alt
  3849. />
  3850. </div>
  3851. </div>
  3852. </div>
  3853. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3854. 未提交
  3855. </div>
  3856. <div
  3857. class="noWorksS"
  3858. v-if="noWorksS && noWorksS[toolIndex].length"
  3859. >
  3860. <div
  3861. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3862. :key="sIndex"
  3863. class="noWorksName"
  3864. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3865. >
  3866. {{ s.student }}
  3867. </div>
  3868. </div>
  3869. </div>
  3870. <div
  3871. v-if="
  3872. tType &&
  3873. ((tType == 2 && sIsOpen == true) ||
  3874. tType == 1 ||
  3875. tType == 4) &&
  3876. tool.tool.indexOf(15) != -1
  3877. "
  3878. class="worksBox"
  3879. >
  3880. <div
  3881. class="zuoyeYulan"
  3882. v-if="
  3883. (worksStudent.length &&
  3884. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  3885. "
  3886. >
  3887. <div class="worksTop">
  3888. <div>作业预览</div>
  3889. <div
  3890. class="corOpen"
  3891. @click="contract(toolIndex)"
  3892. v-if="
  3893. (isCloseList[toolIndex].isCloseBoolean) &&
  3894. isCloseList[toolIndex].isClose == 0
  3895. "
  3896. >
  3897. 折叠
  3898. </div>
  3899. <div
  3900. class="corOpen"
  3901. @click="contract(toolIndex)"
  3902. v-if="isCloseList[toolIndex].isClose == 1"
  3903. >
  3904. 展开
  3905. </div>
  3906. </div>
  3907. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3908. </div>
  3909. <div
  3910. class="group_workBox"
  3911. v-for="(g, gindex) in courseGroup.group"
  3912. :key="gindex"
  3913. >
  3914. <div class="group_box">
  3915. <div class="group_title">
  3916. <el-tooltip
  3917. class="item"
  3918. effect="light"
  3919. :content="g.name"
  3920. placement="top"
  3921. >
  3922. <div class="group_name">{{ g.name }}</div>
  3923. </el-tooltip>
  3924. </div>
  3925. <div
  3926. class="group_work"
  3927. v-if="
  3928. g.works &&
  3929. g.works.length &&
  3930. g.works[toolIndex].length
  3931. "
  3932. >
  3933. <div
  3934. class="works"
  3935. v-for="(w, wIndex) in g.works[toolIndex]"
  3936. :key="wIndex"
  3937. >
  3938. <div
  3939. class="workImg"
  3940. style="
  3941. border-radius: 15px;
  3942. box-shadow: 0px 0px 5px 5px #eee;
  3943. "
  3944. >
  3945. <div
  3946. class="answerBg"
  3947. style="border-radius: 15px 15px 0 0"
  3948. @click="
  3949. commentOther(w, toolIndex, wIndex, null, g.id)
  3950. "
  3951. >
  3952. <div class="answerContent">
  3953. {{ JSON.parse(w.works)[0].answer }}
  3954. </div>
  3955. <div
  3956. class="answerScore"
  3957. v-if="w.score"
  3958. @click.stop="openScore(w)"
  3959. :class="{
  3960. rightW:
  3961. w.userid == userid ||
  3962. tType == 1 ||
  3963. tType == 4,
  3964. }"
  3965. >
  3966. {{ JSON.parse(w.score).wScore }}分
  3967. </div>
  3968. <div
  3969. class="answerScore"
  3970. @click.stop="openScore(w)"
  3971. v-else-if="courseDetail.userid == userid"
  3972. :class="{
  3973. rightW:
  3974. w.userid == userid ||
  3975. tType == 1 ||
  3976. tType == 4,
  3977. }"
  3978. >
  3979. 评分
  3980. </div>
  3981. <img
  3982. class="deleteImg"
  3983. src="../../assets/deleteworks.png"
  3984. v-if="
  3985. w.userid == userid ||
  3986. tType == 1 ||
  3987. tType == 4
  3988. "
  3989. @click.stop="deleteWorks(w.wid)"
  3990. alt
  3991. />
  3992. </div>
  3993. <div class="comment">
  3994. <div class="worksName">
  3995. <div>{{ w.sName }}</div>
  3996. </div>
  3997. <div class="commentList">
  3998. <div
  3999. class="commentImg"
  4000. @click="
  4001. isLikes(w.wid, userid, 1, null, w.isLikes)
  4002. "
  4003. >
  4004. <img
  4005. :src="w.isLikes == true ? likes : noLikes"
  4006. alt=""
  4007. />
  4008. </div>
  4009. <div>{{ w.likesCount }}</div>
  4010. </div>
  4011. <div
  4012. class="commentList"
  4013. style="margin-right: 15px"
  4014. >
  4015. <div
  4016. class="commentImg"
  4017. @click="
  4018. commentOther(
  4019. w,
  4020. toolIndex,
  4021. wIndex,
  4022. null,
  4023. g.id
  4024. )
  4025. "
  4026. >
  4027. <img
  4028. src="../../assets/icon/comment/comment.png"
  4029. alt=""
  4030. />
  4031. </div>
  4032. <div>{{ w.commentCount }}</div>
  4033. </div>
  4034. </div>
  4035. </div>
  4036. </div>
  4037. </div>
  4038. <div class="group_work" v-else>暂无提交作业</div>
  4039. </div>
  4040. </div>
  4041. <div
  4042. :id="'tool-' + toolIndex"
  4043. :style="{
  4044. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4045. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4046. }"
  4047. class="worksDetailBox"
  4048. v-if="
  4049. worksStudent.length &&
  4050. worksStudent[toolIndex].length > 0
  4051. "
  4052. >
  4053. <div
  4054. class="works"
  4055. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4056. :key="wIndex"
  4057. >
  4058. <div
  4059. class="workImg"
  4060. style="
  4061. border-radius: 15px;
  4062. box-shadow: 0px 0px 5px 5px #eee;
  4063. "
  4064. >
  4065. <!-- <img
  4066. src="../../assets/icon/works/noImg.png"
  4067. @click="openTools(15, toolIndex, taskCount, w.works)"
  4068. alt=""
  4069. />-->
  4070. <div
  4071. class="answerBg"
  4072. style="border-radius: 15px 15px 0 0"
  4073. @click="commentOther(w, toolIndex, wIndex)"
  4074. >
  4075. <!-- <div>{{ w.sName }}</div> -->
  4076. <div class="answerContent">
  4077. {{ JSON.parse(w.works)[0].answer }}
  4078. </div>
  4079. <div
  4080. class="answerScore"
  4081. v-if="w.score"
  4082. @click.stop="openScore(w)"
  4083. :class="{
  4084. rightW:
  4085. w.userid == userid ||
  4086. tType == 1 ||
  4087. tType == 4,
  4088. }"
  4089. >
  4090. {{ JSON.parse(w.score).wScore }}分
  4091. </div>
  4092. <div
  4093. class="answerScore"
  4094. @click.stop="openScore(w)"
  4095. v-else-if="courseDetail.userid == userid"
  4096. :class="{
  4097. rightW:
  4098. w.userid == userid ||
  4099. tType == 1 ||
  4100. tType == 4,
  4101. }"
  4102. >
  4103. 评分
  4104. </div>
  4105. <img
  4106. class="deleteImg"
  4107. src="../../assets/deleteworks.png"
  4108. v-if="
  4109. w.userid == userid || tType == 1 || tType == 4
  4110. "
  4111. @click.stop="deleteWorks(w.wid)"
  4112. alt
  4113. />
  4114. </div>
  4115. <div class="comment">
  4116. <div class="worksName">
  4117. <div>{{ w.sName }}</div>
  4118. </div>
  4119. <div class="commentList">
  4120. <div
  4121. class="commentImg"
  4122. @click="
  4123. isLikes(w.wid, userid, 1, null, w.isLikes)
  4124. "
  4125. >
  4126. <img
  4127. :src="w.isLikes == true ? likes : noLikes"
  4128. alt=""
  4129. />
  4130. </div>
  4131. <div>{{ w.likesCount }}</div>
  4132. </div>
  4133. <div class="commentList" style="margin-right: 15px">
  4134. <div
  4135. class="commentImg"
  4136. @click="commentOther(w, toolIndex, wIndex)"
  4137. >
  4138. <img
  4139. src="../../assets/icon/comment/comment.png"
  4140. alt=""
  4141. />
  4142. </div>
  4143. <div>{{ w.commentCount }}</div>
  4144. </div>
  4145. </div>
  4146. </div>
  4147. </div>
  4148. </div>
  4149. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4150. 未提交
  4151. </div>
  4152. <div
  4153. class="noWorksS"
  4154. v-if="noWorksS && noWorksS[toolIndex].length"
  4155. >
  4156. <div
  4157. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4158. :key="sIndex"
  4159. class="noWorksName"
  4160. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4161. >
  4162. {{ s.student }}
  4163. </div>
  4164. </div>
  4165. </div>
  4166. <div
  4167. v-if="
  4168. tType &&
  4169. ((tType == 2 && sIsOpen == true) ||
  4170. tType == 1 ||
  4171. tType == 4) &&
  4172. tool.tool.indexOf(1) != -1
  4173. "
  4174. class="worksBox"
  4175. >
  4176. <div
  4177. class="zuoyeYulan"
  4178. v-if="
  4179. (worksStudent.length &&
  4180. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4181. "
  4182. >
  4183. <div class="worksTop">
  4184. <div>作业预览</div>
  4185. <div
  4186. class="corOpen"
  4187. @click="contract(toolIndex)"
  4188. v-if="
  4189. (isCloseList[toolIndex].isCloseBoolean) &&
  4190. isCloseList[toolIndex].isClose == 0
  4191. "
  4192. >
  4193. 折叠
  4194. </div>
  4195. <div
  4196. class="corOpen"
  4197. @click="contract(toolIndex)"
  4198. v-if="isCloseList[toolIndex].isClose == 1"
  4199. >
  4200. 展开
  4201. </div>
  4202. </div>
  4203. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4204. </div>
  4205. <div
  4206. class="group_workBox"
  4207. v-for="(g, gindex) in courseGroup.group"
  4208. :key="gindex"
  4209. >
  4210. <div class="group_box">
  4211. <div class="group_title">
  4212. <el-tooltip
  4213. class="item"
  4214. effect="light"
  4215. :content="g.name"
  4216. placement="top"
  4217. >
  4218. <div class="group_name">{{ g.name }}</div>
  4219. </el-tooltip>
  4220. </div>
  4221. <div
  4222. class="group_work"
  4223. v-if="
  4224. g.works &&
  4225. g.works.length &&
  4226. g.works[toolIndex].length
  4227. "
  4228. >
  4229. <div
  4230. class="works"
  4231. style="
  4232. width: 200px;
  4233. height: 140px;
  4234. margin: 10px 10px 10px 0;
  4235. border-radius: 15px;
  4236. box-shadow: 0 0 6px 1px #dfdada;
  4237. "
  4238. v-for="(w, wIndex) in g.works[toolIndex]"
  4239. :key="wIndex"
  4240. :class="w.type == 1 ? 'isTypeOne' : ''"
  4241. >
  4242. <div class="workImg">
  4243. <img
  4244. :src="w.works"
  4245. @click="previewImg(w.works)"
  4246. alt
  4247. />
  4248. <div
  4249. class="answerScore"
  4250. v-if="w.score"
  4251. @click.stop="openScore(w)"
  4252. :class="{
  4253. rightW:
  4254. w.userid == userid ||
  4255. tType == 1 ||
  4256. tType == 4,
  4257. }"
  4258. >
  4259. {{ JSON.parse(w.score).wScore }}分
  4260. </div>
  4261. <div
  4262. class="answerScore"
  4263. @click.stop="openScore(w)"
  4264. v-else-if="courseDetail.userid == userid"
  4265. :class="{
  4266. rightW:
  4267. w.userid == userid ||
  4268. tType == 1 ||
  4269. tType == 4,
  4270. }"
  4271. >
  4272. 评分
  4273. </div>
  4274. <img
  4275. class="deleteImg"
  4276. src="../../assets/deleteworks.png"
  4277. v-if="
  4278. w.userid == userid || tType == 1 || tType == 4
  4279. "
  4280. @click.stop="deleteWorks(w.wid)"
  4281. alt
  4282. />
  4283. </div>
  4284. <div class="comment" style="min-width: 200px">
  4285. <div class="worksName">
  4286. <div>{{ w.sName }}</div>
  4287. </div>
  4288. <div class="commentList">
  4289. <div class="commentList">
  4290. <div
  4291. class="commentImg"
  4292. @click="
  4293. isLikes(w.wid, userid, 1, null, w.isLikes)
  4294. "
  4295. >
  4296. <img
  4297. :src="w.isLikes == true ? likes : noLikes"
  4298. alt=""
  4299. />
  4300. </div>
  4301. <div>{{ w.likesCount }}</div>
  4302. </div>
  4303. <div
  4304. class="commentList"
  4305. style="margin-right: 15px"
  4306. >
  4307. <div
  4308. class="commentImg"
  4309. @click="
  4310. commentOther(
  4311. w,
  4312. toolIndex,
  4313. wIndex,
  4314. null,
  4315. g.id
  4316. )
  4317. "
  4318. >
  4319. <img
  4320. src="../../assets/icon/comment/comment.png"
  4321. alt=""
  4322. />
  4323. </div>
  4324. <div>{{ w.commentCount }}</div>
  4325. </div>
  4326. </div>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. <div class="group_work" v-else>暂无提交作业</div>
  4331. </div>
  4332. </div>
  4333. <div
  4334. :id="'tool-' + toolIndex"
  4335. :style="{
  4336. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4337. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4338. }"
  4339. class="worksDetailBox"
  4340. v-if="
  4341. worksStudent.length &&
  4342. worksStudent[toolIndex].length > 0
  4343. "
  4344. >
  4345. <div
  4346. class="works"
  4347. style="
  4348. width: 200px;
  4349. height: 140px;
  4350. margin: 10px 10px 10px 0;
  4351. border-radius: 15px;
  4352. box-shadow: 0 0 6px 1px #dfdada;
  4353. "
  4354. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4355. :key="wIndex"
  4356. >
  4357. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4358. <div class="workImg">
  4359. <img
  4360. :src="w.works"
  4361. @click="previewImg(w.works)"
  4362. alt
  4363. />
  4364. <div
  4365. class="answerScore"
  4366. v-if="w.score"
  4367. @click.stop="openScore(w)"
  4368. :class="{
  4369. rightW:
  4370. w.userid == userid || tType == 1 || tType == 4,
  4371. }"
  4372. >
  4373. {{ JSON.parse(w.score).wScore }}分
  4374. </div>
  4375. <div
  4376. class="answerScore"
  4377. @click.stop="openScore(w)"
  4378. v-else-if="courseDetail.userid == userid"
  4379. :class="{
  4380. rightW:
  4381. w.userid == userid || tType == 1 || tType == 4,
  4382. }"
  4383. >
  4384. 评分
  4385. </div>
  4386. <img
  4387. class="deleteImg"
  4388. src="../../assets/deleteworks.png"
  4389. v-if="
  4390. w.userid == userid || tType == 1 || tType == 4
  4391. "
  4392. @click.stop="deleteWorks(w.wid)"
  4393. alt
  4394. />
  4395. </div>
  4396. <div class="comment" style="min-width: 200px">
  4397. <div class="worksName">
  4398. <div>{{ w.sName }}</div>
  4399. </div>
  4400. <div class="commentList">
  4401. <div class="commentList">
  4402. <div
  4403. class="commentImg"
  4404. @click="
  4405. isLikes(w.wid, userid, 1, null, w.isLikes)
  4406. "
  4407. >
  4408. <img
  4409. :src="w.isLikes == true ? likes : noLikes"
  4410. alt=""
  4411. />
  4412. </div>
  4413. <div>{{ w.likesCount }}</div>
  4414. </div>
  4415. <div class="commentList" style="margin-right: 15px">
  4416. <div
  4417. class="commentImg"
  4418. @click="commentOther(w, toolIndex, wIndex)"
  4419. >
  4420. <img
  4421. src="../../assets/icon/comment/comment.png"
  4422. alt=""
  4423. />
  4424. </div>
  4425. <div>{{ w.commentCount }}</div>
  4426. </div>
  4427. </div>
  4428. </div>
  4429. </div>
  4430. </div>
  4431. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4432. 未提交
  4433. </div>
  4434. <div
  4435. class="noWorksS"
  4436. v-if="noWorksS && noWorksS[toolIndex].length"
  4437. >
  4438. <div
  4439. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4440. :key="sIndex"
  4441. class="noWorksName"
  4442. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4443. >
  4444. {{ s.student }}
  4445. </div>
  4446. </div>
  4447. </div>
  4448. <div
  4449. v-if="
  4450. tType &&
  4451. ((tType == 2 && sIsOpen == true) ||
  4452. tType == 1 ||
  4453. tType == 4) &&
  4454. tool.tool.indexOf(3) != -1
  4455. "
  4456. class="worksBox"
  4457. >
  4458. <div
  4459. class="zuoyeYulan"
  4460. v-if="
  4461. (worksStudent.length &&
  4462. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4463. "
  4464. >
  4465. <div class="worksTop">
  4466. <div>作业预览</div>
  4467. <div
  4468. class="corOpen"
  4469. @click="contract(toolIndex)"
  4470. v-if="
  4471. (isCloseList[toolIndex].isCloseBoolean) &&
  4472. isCloseList[toolIndex].isClose == 0
  4473. "
  4474. >
  4475. 折叠
  4476. </div>
  4477. <div
  4478. class="corOpen"
  4479. @click="contract(toolIndex)"
  4480. v-if="isCloseList[toolIndex].isClose == 1"
  4481. >
  4482. 展开
  4483. </div>
  4484. </div>
  4485. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4486. </div>
  4487. <div
  4488. class="group_workBox"
  4489. v-for="(g, gindex) in courseGroup.group"
  4490. :key="gindex"
  4491. >
  4492. <div class="group_box">
  4493. <div class="group_title">
  4494. <el-tooltip
  4495. class="item"
  4496. effect="light"
  4497. :content="g.name"
  4498. placement="top"
  4499. >
  4500. <div class="group_name">{{ g.name }}</div>
  4501. </el-tooltip>
  4502. </div>
  4503. <div
  4504. class="group_work"
  4505. v-if="
  4506. g.works &&
  4507. g.works.length &&
  4508. g.works[toolIndex].length
  4509. "
  4510. >
  4511. <div
  4512. class="works"
  4513. style="
  4514. width: 200px;
  4515. height: 140px;
  4516. margin: 10px 10px 10px 0;
  4517. border-radius: 15px;
  4518. box-shadow: 0 0 6px 1px #dfdada;
  4519. "
  4520. v-for="(w, wIndex) in g.works[toolIndex]"
  4521. :key="wIndex"
  4522. :class="w.type == 1 ? 'isTypeOne' : ''"
  4523. >
  4524. <div class="workImg">
  4525. <img
  4526. :src="w.works"
  4527. @click="previewImg(w.works)"
  4528. alt
  4529. />
  4530. <div
  4531. class="answerScore"
  4532. v-if="w.score"
  4533. @click.stop="openScore(w)"
  4534. :class="{
  4535. rightW:
  4536. w.userid == userid ||
  4537. tType == 1 ||
  4538. tType == 4,
  4539. }"
  4540. >
  4541. {{ JSON.parse(w.score).wScore }}分
  4542. </div>
  4543. <div
  4544. class="answerScore"
  4545. @click.stop="openScore(w)"
  4546. v-else-if="courseDetail.userid == userid"
  4547. :class="{
  4548. rightW:
  4549. w.userid == userid ||
  4550. tType == 1 ||
  4551. tType == 4,
  4552. }"
  4553. >
  4554. 评分
  4555. </div>
  4556. <img
  4557. class="deleteImg"
  4558. src="../../assets/deleteworks.png"
  4559. v-if="
  4560. w.userid == userid || tType == 1 || tType == 4
  4561. "
  4562. @click.stop="deleteWorks(w.wid)"
  4563. alt
  4564. />
  4565. </div>
  4566. <div class="comment" style="min-width: 200px">
  4567. <div class="worksName">
  4568. <div>{{ w.sName }}</div>
  4569. </div>
  4570. <div class="commentList">
  4571. <div class="commentList">
  4572. <div
  4573. class="commentImg"
  4574. @click="
  4575. isLikes(w.wid, userid, 1, null, w.isLikes)
  4576. "
  4577. >
  4578. <img
  4579. :src="w.isLikes == true ? likes : noLikes"
  4580. alt=""
  4581. />
  4582. </div>
  4583. <div>{{ w.likesCount }}</div>
  4584. </div>
  4585. <div
  4586. class="commentList"
  4587. style="margin-right: 15px"
  4588. >
  4589. <div
  4590. class="commentImg"
  4591. @click="
  4592. commentOther(
  4593. w,
  4594. toolIndex,
  4595. wIndex,
  4596. null,
  4597. g.id
  4598. )
  4599. "
  4600. >
  4601. <img
  4602. src="../../assets/icon/comment/comment.png"
  4603. alt=""
  4604. />
  4605. </div>
  4606. <div>{{ w.commentCount }}</div>
  4607. </div>
  4608. </div>
  4609. </div>
  4610. </div>
  4611. </div>
  4612. <div class="group_work" v-else>暂无提交作业</div>
  4613. </div>
  4614. </div>
  4615. <div
  4616. :id="'tool-' + toolIndex"
  4617. :style="{
  4618. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4619. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4620. }"
  4621. class="worksDetailBox"
  4622. v-if="
  4623. worksStudent.length &&
  4624. worksStudent[toolIndex].length > 0
  4625. "
  4626. >
  4627. <div
  4628. class="works"
  4629. style="
  4630. width: 200px;
  4631. height: 140px;
  4632. margin: 10px 10px 10px 0;
  4633. border-radius: 15px;
  4634. box-shadow: 0 0 6px 1px #dfdada;
  4635. "
  4636. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4637. :key="wIndex"
  4638. >
  4639. <!-- @click="previewImg(w.works)" -->
  4640. <div class="workImg">
  4641. <img
  4642. :src="w.works"
  4643. @click="previewImg(w.works)"
  4644. alt
  4645. />
  4646. <div
  4647. class="answerScore"
  4648. v-if="w.score"
  4649. @click.stop="openScore(w)"
  4650. :class="{
  4651. rightW:
  4652. w.userid == userid || tType == 1 || tType == 4,
  4653. }"
  4654. >
  4655. {{ JSON.parse(w.score).wScore }}分
  4656. </div>
  4657. <div
  4658. class="answerScore"
  4659. @click.stop="openScore(w)"
  4660. v-else-if="courseDetail.userid == userid"
  4661. :class="{
  4662. rightW:
  4663. w.userid == userid || tType == 1 || tType == 4,
  4664. }"
  4665. >
  4666. 评分
  4667. </div>
  4668. <img
  4669. class="deleteImg"
  4670. src="../../assets/deleteworks.png"
  4671. v-if="
  4672. w.userid == userid || tType == 1 || tType == 4
  4673. "
  4674. @click.stop="deleteWorks(w.wid)"
  4675. alt
  4676. />
  4677. </div>
  4678. <div class="comment" style="min-width: 200px">
  4679. <div class="worksName">
  4680. <div>{{ w.sName }}</div>
  4681. </div>
  4682. <div class="commentList">
  4683. <div class="commentList">
  4684. <div
  4685. class="commentImg"
  4686. @click="
  4687. isLikes(w.wid, userid, 1, null, w.isLikes)
  4688. "
  4689. >
  4690. <img
  4691. :src="w.isLikes == true ? likes : noLikes"
  4692. alt=""
  4693. />
  4694. </div>
  4695. <div>{{ w.likesCount }}</div>
  4696. </div>
  4697. <div class="commentList" style="margin-right: 15px">
  4698. <div
  4699. class="commentImg"
  4700. @click="commentOther(w, toolIndex, wIndex)"
  4701. >
  4702. <img
  4703. src="../../assets/icon/comment/comment.png"
  4704. alt=""
  4705. />
  4706. </div>
  4707. <div>{{ w.commentCount }}</div>
  4708. </div>
  4709. </div>
  4710. </div>
  4711. </div>
  4712. </div>
  4713. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4714. 未提交
  4715. </div>
  4716. <div
  4717. class="noWorksS"
  4718. v-if="noWorksS && noWorksS[toolIndex].length"
  4719. >
  4720. <div
  4721. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4722. :key="sIndex"
  4723. class="noWorksName"
  4724. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4725. >
  4726. {{ s.student }}
  4727. </div>
  4728. </div>
  4729. </div>
  4730. <div
  4731. v-if="
  4732. tType &&
  4733. ((tType == 2 && sIsOpen == true) ||
  4734. tType == 1 ||
  4735. tType == 4) &&
  4736. tool.tool.indexOf(6) != -1
  4737. "
  4738. class="worksBox"
  4739. >
  4740. <div
  4741. class="zuoyeYulan"
  4742. v-if="
  4743. (worksStudent.length &&
  4744. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4745. "
  4746. >
  4747. <div class="worksTop">
  4748. <div>作业预览</div>
  4749. <div
  4750. class="corOpen"
  4751. @click="contract(toolIndex)"
  4752. v-if="
  4753. (isCloseList[toolIndex].isCloseBoolean) &&
  4754. isCloseList[toolIndex].isClose == 0
  4755. "
  4756. >
  4757. 折叠
  4758. </div>
  4759. <div
  4760. class="corOpen"
  4761. @click="contract(toolIndex)"
  4762. v-if="isCloseList[toolIndex].isClose == 1"
  4763. >
  4764. 展开
  4765. </div>
  4766. </div>
  4767. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4768. </div>
  4769. <div
  4770. class="group_workBox"
  4771. v-for="(g, gindex) in courseGroup.group"
  4772. :key="gindex"
  4773. >
  4774. <div class="group_box">
  4775. <div class="group_title">
  4776. <el-tooltip
  4777. class="item"
  4778. effect="light"
  4779. :content="g.name"
  4780. placement="top"
  4781. >
  4782. <div class="group_name">{{ g.name }}</div>
  4783. </el-tooltip>
  4784. </div>
  4785. <div
  4786. class="group_work"
  4787. v-if="
  4788. g.works &&
  4789. g.works.length &&
  4790. g.works[toolIndex].length
  4791. "
  4792. >
  4793. <div
  4794. class="works"
  4795. style="
  4796. width: 200px;
  4797. height: 140px;
  4798. margin: 10px 10px 10px 0;
  4799. border-radius: 15px;
  4800. box-shadow: 0 0 6px 1px #dfdada;
  4801. "
  4802. v-for="(w, wIndex) in g.works[toolIndex]"
  4803. :key="wIndex"
  4804. :class="w.type == 1 ? 'isTypeOne' : ''"
  4805. >
  4806. <div class="workImg">
  4807. <img
  4808. :src="w.works"
  4809. @click="previewImg(w.works)"
  4810. alt
  4811. />
  4812. <div
  4813. class="answerScore"
  4814. v-if="w.score"
  4815. @click.stop="openScore(w)"
  4816. :class="{
  4817. rightW:
  4818. w.userid == userid ||
  4819. tType == 1 ||
  4820. tType == 4,
  4821. }"
  4822. >
  4823. {{ JSON.parse(w.score).wScore }}分
  4824. </div>
  4825. <div
  4826. class="answerScore"
  4827. @click.stop="openScore(w)"
  4828. v-else-if="courseDetail.userid == userid"
  4829. :class="{
  4830. rightW:
  4831. w.userid == userid ||
  4832. tType == 1 ||
  4833. tType == 4,
  4834. }"
  4835. >
  4836. 评分
  4837. </div>
  4838. <img
  4839. class="deleteImg"
  4840. src="../../assets/deleteworks.png"
  4841. v-if="
  4842. w.userid == userid || tType == 1 || tType == 4
  4843. "
  4844. @click.stop="deleteWorks(w.wid)"
  4845. alt
  4846. />
  4847. </div>
  4848. <div class="comment" style="min-width: 200px">
  4849. <div class="worksName">
  4850. <div>{{ w.sName }}</div>
  4851. </div>
  4852. <div class="commentList">
  4853. <div class="commentList">
  4854. <div
  4855. class="commentImg"
  4856. @click="
  4857. isLikes(w.wid, userid, 1, null, w.isLikes)
  4858. "
  4859. >
  4860. <img
  4861. :src="w.isLikes == true ? likes : noLikes"
  4862. alt=""
  4863. />
  4864. </div>
  4865. <div>{{ w.likesCount }}</div>
  4866. </div>
  4867. <div
  4868. class="commentList"
  4869. style="margin-right: 15px"
  4870. >
  4871. <div
  4872. class="commentImg"
  4873. @click="
  4874. commentOther(
  4875. w,
  4876. toolIndex,
  4877. wIndex,
  4878. null,
  4879. g.id
  4880. )
  4881. "
  4882. >
  4883. <img
  4884. src="../../assets/icon/comment/comment.png"
  4885. alt=""
  4886. />
  4887. </div>
  4888. <div>{{ w.commentCount }}</div>
  4889. </div>
  4890. </div>
  4891. </div>
  4892. </div>
  4893. </div>
  4894. <div class="group_work" v-else>暂无提交作业</div>
  4895. </div>
  4896. </div>
  4897. <div
  4898. :id="'tool-' + toolIndex"
  4899. :style="{
  4900. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4901. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4902. }"
  4903. class="worksDetailBox"
  4904. v-if="
  4905. worksStudent.length &&
  4906. worksStudent[toolIndex].length > 0
  4907. "
  4908. >
  4909. <div
  4910. class="works"
  4911. style="
  4912. width: 200px;
  4913. height: 140px;
  4914. margin: 10px 10px 10px 0;
  4915. border-radius: 15px;
  4916. box-shadow: 0 0 6px 1px #dfdada;
  4917. "
  4918. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4919. :key="wIndex"
  4920. >
  4921. <!-- @click="previewImg(w.works)" -->
  4922. <div class="workImg">
  4923. <img
  4924. :src="w.works"
  4925. @click="previewImg(w.works)"
  4926. alt
  4927. />
  4928. <div
  4929. class="answerScore"
  4930. v-if="w.score"
  4931. @click.stop="openScore(w)"
  4932. :class="{
  4933. rightW:
  4934. w.userid == userid || tType == 1 || tType == 4,
  4935. }"
  4936. >
  4937. {{ JSON.parse(w.score).wScore }}分
  4938. </div>
  4939. <div
  4940. class="answerScore"
  4941. @click.stop="openScore(w)"
  4942. v-else-if="courseDetail.userid == userid"
  4943. :class="{
  4944. rightW:
  4945. w.userid == userid || tType == 1 || tType == 4,
  4946. }"
  4947. >
  4948. 评分
  4949. </div>
  4950. <img
  4951. class="deleteImg"
  4952. src="../../assets/deleteworks.png"
  4953. v-if="
  4954. w.userid == userid || tType == 1 || tType == 4
  4955. "
  4956. @click.stop="deleteWorks(w.wid)"
  4957. alt
  4958. />
  4959. </div>
  4960. <div class="comment" style="min-width: 200px">
  4961. <div class="worksName">
  4962. <div>{{ w.sName }}</div>
  4963. </div>
  4964. <div class="commentList">
  4965. <div class="commentList">
  4966. <div
  4967. class="commentImg"
  4968. @click="
  4969. isLikes(w.wid, userid, 1, null, w.isLikes)
  4970. "
  4971. >
  4972. <img
  4973. :src="w.isLikes == true ? likes : noLikes"
  4974. alt=""
  4975. />
  4976. </div>
  4977. <div>{{ w.likesCount }}</div>
  4978. </div>
  4979. <div class="commentList" style="margin-right: 15px">
  4980. <div
  4981. class="commentImg"
  4982. @click="commentOther(w, toolIndex, wIndex)"
  4983. >
  4984. <img
  4985. src="../../assets/icon/comment/comment.png"
  4986. alt=""
  4987. />
  4988. </div>
  4989. <div>{{ w.commentCount }}</div>
  4990. </div>
  4991. </div>
  4992. </div>
  4993. </div>
  4994. </div>
  4995. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4996. 未提交
  4997. </div>
  4998. <div
  4999. class="noWorksS"
  5000. v-if="noWorksS && noWorksS[toolIndex].length"
  5001. >
  5002. <div
  5003. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5004. :key="sIndex"
  5005. class="noWorksName"
  5006. >
  5007. {{ s.student }}
  5008. </div>
  5009. </div>
  5010. </div>
  5011. <div
  5012. v-if="
  5013. tType &&
  5014. ((tType == 2 && sIsOpen == true) ||
  5015. tType == 1 ||
  5016. tType == 4) &&
  5017. tool.tool.indexOf(7) != -1
  5018. "
  5019. class="worksBox"
  5020. >
  5021. <div
  5022. class="zuoyeYulan"
  5023. v-if="
  5024. (worksStudent.length &&
  5025. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5026. "
  5027. >
  5028. <div class="worksTop">
  5029. <div>作业预览</div>
  5030. <div
  5031. class="corOpen"
  5032. @click="contract(toolIndex)"
  5033. v-if="
  5034. (isCloseList[toolIndex].isCloseBoolean) &&
  5035. isCloseList[toolIndex].isClose == 0
  5036. "
  5037. >
  5038. 折叠
  5039. </div>
  5040. <div
  5041. class="corOpen"
  5042. @click="contract(toolIndex)"
  5043. v-if="isCloseList[toolIndex].isClose == 1"
  5044. >
  5045. 展开
  5046. </div>
  5047. </div>
  5048. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5049. </div>
  5050. <div
  5051. class="group_workBox"
  5052. v-for="(g, gindex) in courseGroup.group"
  5053. :key="gindex"
  5054. >
  5055. <div class="group_box">
  5056. <div class="group_title">
  5057. <el-tooltip
  5058. class="item"
  5059. effect="light"
  5060. :content="g.name"
  5061. placement="top"
  5062. >
  5063. <div class="group_name">{{ g.name }}</div>
  5064. </el-tooltip>
  5065. </div>
  5066. <div
  5067. class="group_work"
  5068. v-if="
  5069. g.works &&
  5070. g.works.length &&
  5071. g.works[toolIndex].length
  5072. "
  5073. >
  5074. <div
  5075. class="works"
  5076. style="
  5077. width: 200px;
  5078. height: 140px;
  5079. margin: 10px 10px 10px 0;
  5080. border-radius: 15px;
  5081. box-shadow: 0 0 6px 1px #dfdada;
  5082. "
  5083. v-for="(w, wIndex) in g.works[toolIndex]"
  5084. :key="wIndex"
  5085. :class="w.type == 1 ? 'isTypeOne' : ''"
  5086. >
  5087. <div class="workImg">
  5088. <img
  5089. :src="w.works"
  5090. @click="previewImg(w.works)"
  5091. alt
  5092. />
  5093. <div
  5094. class="answerScore"
  5095. v-if="w.score"
  5096. @click.stop="openScore(w)"
  5097. :class="{
  5098. rightW:
  5099. w.userid == userid ||
  5100. tType == 1 ||
  5101. tType == 4,
  5102. }"
  5103. >
  5104. {{ JSON.parse(w.score).wScore }}分
  5105. </div>
  5106. <div
  5107. class="answerScore"
  5108. @click.stop="openScore(w)"
  5109. v-else-if="courseDetail.userid == userid"
  5110. :class="{
  5111. rightW:
  5112. w.userid == userid ||
  5113. tType == 1 ||
  5114. tType == 4,
  5115. }"
  5116. >
  5117. 评分
  5118. </div>
  5119. <img
  5120. class="deleteImg"
  5121. src="../../assets/deleteworks.png"
  5122. v-if="
  5123. w.userid == userid || tType == 1 || tType == 4
  5124. "
  5125. @click.stop="deleteWorks(w.wid)"
  5126. alt
  5127. />
  5128. </div>
  5129. <div class="comment" style="min-width: 200px">
  5130. <div class="worksName">
  5131. <div>{{ w.sName }}</div>
  5132. </div>
  5133. <div class="commentList">
  5134. <div class="commentList">
  5135. <div
  5136. class="commentImg"
  5137. @click="
  5138. isLikes(w.wid, userid, 1, null, w.isLikes)
  5139. "
  5140. >
  5141. <img
  5142. :src="w.isLikes == true ? likes : noLikes"
  5143. alt=""
  5144. />
  5145. </div>
  5146. <div>{{ w.likesCount }}</div>
  5147. </div>
  5148. <div
  5149. class="commentList"
  5150. style="margin-right: 15px"
  5151. >
  5152. <div
  5153. class="commentImg"
  5154. @click="
  5155. commentOther(
  5156. w,
  5157. toolIndex,
  5158. wIndex,
  5159. null,
  5160. g.id
  5161. )
  5162. "
  5163. >
  5164. <img
  5165. src="../../assets/icon/comment/comment.png"
  5166. alt=""
  5167. />
  5168. </div>
  5169. <div>{{ w.commentCount }}</div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. </div>
  5175. <div class="group_work" v-else>暂无提交作业</div>
  5176. </div>
  5177. </div>
  5178. <div
  5179. :id="'tool-' + toolIndex"
  5180. :style="{
  5181. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5182. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5183. }"
  5184. class="worksDetailBox"
  5185. v-if="
  5186. worksStudent.length &&
  5187. worksStudent[toolIndex].length > 0
  5188. "
  5189. >
  5190. <div
  5191. class="works"
  5192. style="
  5193. width: 200px;
  5194. height: 140px;
  5195. margin: 10px 10px 10px 0;
  5196. border-radius: 15px;
  5197. box-shadow: 0 0 6px 1px #dfdada;
  5198. "
  5199. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5200. :key="wIndex"
  5201. >
  5202. <!-- @click="previewImg(w.works)" -->
  5203. <div class="workImg">
  5204. <img
  5205. :src="w.works"
  5206. @click="previewImg(w.works)"
  5207. alt
  5208. />
  5209. <div
  5210. class="answerScore"
  5211. v-if="w.score"
  5212. @click.stop="openScore(w)"
  5213. :class="{
  5214. rightW:
  5215. w.userid == userid || tType == 1 || tType == 4,
  5216. }"
  5217. >
  5218. {{ JSON.parse(w.score).wScore }}分
  5219. </div>
  5220. <div
  5221. class="answerScore"
  5222. @click.stop="openScore(w)"
  5223. v-else-if="courseDetail.userid == userid"
  5224. :class="{
  5225. rightW:
  5226. w.userid == userid || tType == 1 || tType == 4,
  5227. }"
  5228. >
  5229. 评分
  5230. </div>
  5231. <img
  5232. class="deleteImg"
  5233. src="../../assets/deleteworks.png"
  5234. v-if="
  5235. w.userid == userid || tType == 1 || tType == 4
  5236. "
  5237. @click.stop="deleteWorks(w.wid)"
  5238. alt
  5239. />
  5240. </div>
  5241. <div class="comment" style="min-width: 200px">
  5242. <div class="worksName">
  5243. <div>{{ w.sName }}</div>
  5244. </div>
  5245. <div class="commentList">
  5246. <div class="commentList">
  5247. <div
  5248. class="commentImg"
  5249. @click="
  5250. isLikes(w.wid, userid, 1, null, w.isLikes)
  5251. "
  5252. >
  5253. <img
  5254. :src="w.isLikes == true ? likes : noLikes"
  5255. alt=""
  5256. />
  5257. </div>
  5258. <div>{{ w.likesCount }}</div>
  5259. </div>
  5260. <div class="commentList" style="margin-right: 15px">
  5261. <div
  5262. class="commentImg"
  5263. @click="commentOther(w, toolIndex, wIndex)"
  5264. >
  5265. <img
  5266. src="../../assets/icon/comment/comment.png"
  5267. alt=""
  5268. />
  5269. </div>
  5270. <div>{{ w.commentCount }}</div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. </div>
  5275. </div>
  5276. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5277. 未提交
  5278. </div>
  5279. <div
  5280. class="noWorksS"
  5281. v-if="noWorksS && noWorksS[toolIndex].length"
  5282. >
  5283. <div
  5284. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5285. :key="sIndex"
  5286. class="noWorksName"
  5287. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5288. >
  5289. {{ s.student }}
  5290. </div>
  5291. </div>
  5292. </div>
  5293. <div
  5294. v-if="
  5295. tType &&
  5296. ((tType == 2 && sIsOpen == true) ||
  5297. tType == 1 ||
  5298. tType == 4) &&
  5299. tool.tool.indexOf(26) != -1
  5300. "
  5301. class="worksBox"
  5302. >
  5303. <div
  5304. class="zuoyeYulan"
  5305. v-if="
  5306. worksStudent.length &&
  5307. worksStudent[toolIndex].length > 0
  5308. "
  5309. >
  5310. <div class="worksTop">
  5311. <div>作业预览</div>
  5312. <div
  5313. class="corOpen"
  5314. @click="contract(toolIndex)"
  5315. v-if="
  5316. (isCloseList[toolIndex].isCloseBoolean) &&
  5317. isCloseList[toolIndex].isClose == 0
  5318. "
  5319. >
  5320. 折叠
  5321. </div>
  5322. <div
  5323. class="corOpen"
  5324. @click="contract(toolIndex)"
  5325. v-if="isCloseList[toolIndex].isClose == 1"
  5326. >
  5327. 展开
  5328. </div>
  5329. </div>
  5330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5331. </div>
  5332. <div
  5333. :id="'tool-' + toolIndex"
  5334. :style="{
  5335. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5336. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5337. }"
  5338. class="worksDetailBox"
  5339. v-if="
  5340. worksStudent.length &&
  5341. worksStudent[toolIndex].length > 0
  5342. "
  5343. >
  5344. <div
  5345. class="works"
  5346. style="width: 240px; height: 140px; overflow: hidden"
  5347. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5348. :key="wIndex"
  5349. :class="w.type == 1 ? 'isTypeOne' : ''"
  5350. >
  5351. <div class="workImg" v-if="w.type == 0">
  5352. <img
  5353. :src="w.works"
  5354. @click="previewImg(w.works)"
  5355. alt
  5356. />
  5357. <img
  5358. class="deleteImg"
  5359. src="../../assets/deleteworks.png"
  5360. v-if="
  5361. w.userid == userid || tType == 1 || tType == 4
  5362. "
  5363. @click.stop="deleteWorks(w.wid)"
  5364. alt
  5365. />
  5366. </div>
  5367. <div class="workImg" v-if="w.type == 1">
  5368. <img :src="word" @click="openFile(w.works)" alt />
  5369. <img
  5370. class="deleteImg"
  5371. src="../../assets/deleteworks.png"
  5372. v-if="
  5373. w.userid == userid || tType == 1 || tType == 4
  5374. "
  5375. @click.stop="deleteWorks(w.wid)"
  5376. alt
  5377. />
  5378. </div>
  5379. <div class="worksName">
  5380. <div>{{ w.sName }}</div>
  5381. </div>
  5382. </div>
  5383. </div>
  5384. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5385. 未提交
  5386. </div>
  5387. <div
  5388. class="noWorksS"
  5389. v-if="noWorksS && noWorksS[toolIndex].length"
  5390. >
  5391. <div
  5392. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5393. :key="sIndex"
  5394. class="noWorksName"
  5395. >
  5396. {{ s.student }}
  5397. </div>
  5398. </div>
  5399. </div>
  5400. <div
  5401. v-if="
  5402. tType &&
  5403. ((tType == 2 && sIsOpen == true) ||
  5404. tType == 1 ||
  5405. tType == 4) &&
  5406. tool.tool.indexOf(40) != -1
  5407. "
  5408. class="worksBox"
  5409. >
  5410. <div
  5411. class="zuoyeYulan"
  5412. v-if="
  5413. worksStudent.length &&
  5414. worksStudent[toolIndex].length > 0
  5415. "
  5416. >
  5417. <div class="worksTop">
  5418. <div>作业预览</div>
  5419. <div
  5420. class="corOpen"
  5421. @click="contract(toolIndex)"
  5422. v-if="
  5423. (isCloseList[toolIndex].isCloseBoolean) &&
  5424. isCloseList[toolIndex].isClose == 0
  5425. "
  5426. >
  5427. 折叠
  5428. </div>
  5429. <div
  5430. class="corOpen"
  5431. @click="contract(toolIndex)"
  5432. v-if="isCloseList[toolIndex].isClose == 1"
  5433. >
  5434. 展开
  5435. </div>
  5436. </div>
  5437. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5438. </div>
  5439. <div
  5440. :id="'tool-' + toolIndex"
  5441. :style="{
  5442. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5443. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5444. }"
  5445. class="worksDetailBox"
  5446. v-if="
  5447. worksStudent.length &&
  5448. worksStudent[toolIndex].length > 0
  5449. "
  5450. >
  5451. <div
  5452. class="works"
  5453. style="
  5454. width: 200px;
  5455. height: 140px;
  5456. margin: 10px 10px 10px 0;
  5457. border-radius: 15px;
  5458. box-shadow: 0 0 6px 1px #dfdada;
  5459. "
  5460. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5461. :key="wIndex"
  5462. :class="w.type == 1 ? 'isTypeOne' : ''"
  5463. >
  5464. <div class="workImg">
  5465. <img
  5466. src="../../assets/icon/works/noImg.png"
  5467. @click="openPj(w.works, toolIndex)"
  5468. alt
  5469. />
  5470. <img
  5471. class="deleteImg"
  5472. src="../../assets/deleteworks.png"
  5473. v-if="
  5474. w.userid == userid || tType == 1 || tType == 4
  5475. "
  5476. @click.stop="deleteWorks(w.wid)"
  5477. alt
  5478. />
  5479. </div>
  5480. <div class="comment" style="min-width: 200px">
  5481. <div class="worksName">
  5482. <div>{{ w.sName }}</div>
  5483. </div>
  5484. <div class="commentList">
  5485. <div class="commentList">
  5486. <div
  5487. class="commentImg"
  5488. @click="
  5489. isLikes(w.wid, userid, 1, null, w.isLikes)
  5490. "
  5491. >
  5492. <img
  5493. :src="w.isLikes == true ? likes : noLikes"
  5494. alt=""
  5495. />
  5496. </div>
  5497. <div>{{ w.likesCount }}</div>
  5498. </div>
  5499. <div class="commentList" style="margin-right: 15px">
  5500. <div
  5501. class="commentImg"
  5502. @click="commentOther(w, toolIndex, wIndex)"
  5503. >
  5504. <img
  5505. src="../../assets/icon/comment/comment.png"
  5506. alt=""
  5507. />
  5508. </div>
  5509. <div>{{ w.commentCount }}</div>
  5510. </div>
  5511. </div>
  5512. </div>
  5513. </div>
  5514. </div>
  5515. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5516. 未提交
  5517. </div>
  5518. <div
  5519. class="noWorksS"
  5520. v-if="noWorksS && noWorksS[toolIndex].length"
  5521. >
  5522. <div
  5523. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5524. :key="sIndex"
  5525. class="noWorksName"
  5526. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5527. >
  5528. {{ s.student }}
  5529. </div>
  5530. </div>
  5531. </div>
  5532. <div
  5533. v-if="
  5534. tType &&
  5535. tType == 2 &&
  5536. !sIsOpen &&
  5537. tool.tool.indexOf(40) != -1
  5538. "
  5539. class="worksBox"
  5540. >
  5541. <div
  5542. class="zuoyeYulan"
  5543. v-if="workStudent[toolIndex].length > 0"
  5544. >
  5545. <span class="worksTitle">作业预览</span>
  5546. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5547. </div>
  5548. <div
  5549. class="worksDetailBox"
  5550. v-if="workStudent[toolIndex].length > 0"
  5551. >
  5552. <div
  5553. class="works"
  5554. style="
  5555. width: 200px;
  5556. height: 140px;
  5557. margin: 10px 10px 10px 0;
  5558. "
  5559. v-for="(w, wIndex) in workStudent[toolIndex]"
  5560. :key="wIndex"
  5561. >
  5562. <div class="workImg">
  5563. <img
  5564. src="../../assets/icon/works/noImg.png"
  5565. @click="openPj(w.works, toolIndex)"
  5566. alt
  5567. />
  5568. <img
  5569. class="deleteImg"
  5570. src="../../assets/deleteworks.png"
  5571. v-if="
  5572. w.userid == userid || tType == 1 || tType == 4
  5573. "
  5574. @click.stop="deleteWorks(w.wid)"
  5575. alt
  5576. />
  5577. </div>
  5578. <div class="worksName">
  5579. <div>{{ w.sName }}</div>
  5580. </div>
  5581. </div>
  5582. </div>
  5583. </div>
  5584. <div
  5585. v-if="
  5586. tType &&
  5587. ((tType == 2 && sIsOpen == true) ||
  5588. tType == 1 ||
  5589. tType == 4) &&
  5590. tool.tool.indexOf(41) != -1
  5591. "
  5592. >
  5593. <AnswerData2
  5594. v-if="
  5595. worksStudent.length &&
  5596. worksStudent[toolIndex].length > 0
  5597. "
  5598. :problemJson="tool.selectJson.answer"
  5599. :people="worksStudent[toolIndex]"
  5600. ></AnswerData2>
  5601. </div>
  5602. <div
  5603. v-if="
  5604. tType &&
  5605. ((tType == 2 && sIsOpen == true) ||
  5606. tType == 1 ||
  5607. tType == 4) &&
  5608. tool.tool.indexOf(41) != -1
  5609. "
  5610. class="worksBox"
  5611. >
  5612. <div
  5613. class="zuoyeYulan"
  5614. v-if="
  5615. worksStudent.length &&
  5616. worksStudent[toolIndex].length > 0
  5617. "
  5618. >
  5619. <div class="worksTop">
  5620. <div>作业预览</div>
  5621. <div
  5622. class="corOpen"
  5623. @click="contract(toolIndex)"
  5624. v-if="
  5625. (isCloseList[toolIndex].isCloseBoolean) &&
  5626. isCloseList[toolIndex].isClose == 0
  5627. "
  5628. >
  5629. 折叠
  5630. </div>
  5631. <div
  5632. class="corOpen"
  5633. @click="contract(toolIndex)"
  5634. v-if="isCloseList[toolIndex].isClose == 1"
  5635. >
  5636. 展开
  5637. </div>
  5638. </div>
  5639. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5640. </div>
  5641. <div
  5642. :id="'tool-' + toolIndex"
  5643. :style="{
  5644. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5645. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5646. }"
  5647. class="worksDetailBox"
  5648. v-if="
  5649. worksStudent.length &&
  5650. worksStudent[toolIndex].length > 0
  5651. "
  5652. >
  5653. <div
  5654. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5655. :key="wIndex"
  5656. class="isWorksName2"
  5657. @click="openXz(w, toolIndex)"
  5658. >
  5659. {{ w.sName }}
  5660. <img
  5661. class="deleteImg deleteImg2"
  5662. src="../../assets/deleteworks.png"
  5663. v-if="w.userid == userid || tType == 1 || tType == 4"
  5664. @click.stop="deleteWorks(w.wid)"
  5665. alt
  5666. />
  5667. </div>
  5668. <!-- <div
  5669. class="works"
  5670. style="
  5671. width: 200px;
  5672. height: 140px;
  5673. margin: 10px 10px 10px 0;
  5674. border-radius: 15px;
  5675. box-shadow: 0 0 6px 1px #dfdada;
  5676. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5677. :class="w.type == 5 ? 'isTypeOne' : ''">
  5678. <div class="workImg">
  5679. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5680. </div>
  5681. <div class="worksName">
  5682. <div>{{ w.sName }}</div>
  5683. </div>
  5684. </div> -->
  5685. </div>
  5686. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5687. 未提交
  5688. </div>
  5689. <div
  5690. class="noWorksS"
  5691. v-if="noWorksS && noWorksS[toolIndex].length"
  5692. >
  5693. <div
  5694. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5695. :key="sIndex"
  5696. class="noWorksName"
  5697. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5698. >
  5699. {{ s.student }}
  5700. </div>
  5701. </div>
  5702. </div>
  5703. <div
  5704. v-if="
  5705. tType &&
  5706. tType == 2 &&
  5707. !sIsOpen &&
  5708. tool.tool.indexOf(41) != -1
  5709. "
  5710. class="worksBox"
  5711. >
  5712. <div
  5713. class="zuoyeYulan"
  5714. v-if="workStudent[toolIndex].length > 0"
  5715. >
  5716. <span class="worksTitle">作业预览</span>
  5717. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5718. </div>
  5719. <div
  5720. class="worksDetailBox"
  5721. v-if="workStudent[toolIndex].length > 0"
  5722. >
  5723. <div
  5724. class="works"
  5725. style="
  5726. width: 200px;
  5727. height: 140px;
  5728. margin: 10px 10px 10px 0;
  5729. "
  5730. v-for="(w, wIndex) in workStudent[toolIndex]"
  5731. :key="wIndex"
  5732. >
  5733. <div class="workImg">
  5734. <img
  5735. src="../../assets/icon/works/noImg.png"
  5736. @click="openXz(w, toolIndex)"
  5737. alt
  5738. />
  5739. <img
  5740. class="deleteImg"
  5741. src="../../assets/deleteworks.png"
  5742. v-if="
  5743. w.userid == userid || tType == 1 || tType == 4
  5744. "
  5745. @click.stop="deleteWorks(w.wid)"
  5746. alt
  5747. />
  5748. </div>
  5749. <div class="worksName">
  5750. <div>{{ w.sName }}</div>
  5751. </div>
  5752. </div>
  5753. </div>
  5754. </div>
  5755. <div v-if="false" class="xuan_right_box">
  5756. <div
  5757. class="tool_right_box"
  5758. v-for="(item, index) in tool.sentenceList"
  5759. :key="index"
  5760. >
  5761. <div>
  5762. <span
  5763. style="word-break: break-all; white-space: normal"
  5764. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5765. >
  5766. </div>
  5767. <div class="right_box_xuan">
  5768. <span>正确率</span>
  5769. <span>{{
  5770. (checkJson[toolIndex][index].right
  5771. ? checkJson[toolIndex][index].right
  5772. : 0) + "%"
  5773. }}</span>
  5774. </div>
  5775. <div class="right_box_xuan">
  5776. <span>答对人数</span>
  5777. <span>{{
  5778. checkJson[toolIndex][index].rightPerson.length
  5779. }}</span>
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <div
  5784. v-if="
  5785. tType &&
  5786. ((tType == 2 && sIsOpen == true) ||
  5787. tType == 1 ||
  5788. tType == 4) &&
  5789. tool.tool.indexOf(47) != -1
  5790. "
  5791. >
  5792. <AnswerData
  5793. v-if="
  5794. checkJson[toolIndex].length &&
  5795. (tool.sentenceList || tool.sentenceList.length > 0)
  5796. "
  5797. :people="checkJson[toolIndex]"
  5798. ></AnswerData>
  5799. </div>
  5800. <div
  5801. v-if="
  5802. tType &&
  5803. tType == 2 &&
  5804. !sIsOpen &&
  5805. tool.tool.indexOf(47) != -1
  5806. "
  5807. class="worksBox"
  5808. >
  5809. <div
  5810. class="zuoyeYulan"
  5811. v-if="workStudent[toolIndex].length > 0"
  5812. >
  5813. <span class="worksTitle">作业预览</span>
  5814. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5815. </div>
  5816. <div
  5817. class="worksDetailBox"
  5818. v-if="workStudent[toolIndex].length > 0"
  5819. >
  5820. <div
  5821. class="works"
  5822. style="
  5823. width: 200px;
  5824. height: 140px;
  5825. margin: 10px 10px 10px 0;
  5826. "
  5827. v-for="(w, wIndex) in workStudent[toolIndex]"
  5828. :key="wIndex"
  5829. >
  5830. <!-- @click="openXz(w, toolIndex)" -->
  5831. <div class="workImg" @click="openSen(w, toolIndex)">
  5832. <img src="../../assets/icon/works/noImg.png" alt />
  5833. <img
  5834. class="deleteImg"
  5835. src="../../assets/deleteworks.png"
  5836. v-if="
  5837. w.userid == userid || tType == 1 || tType == 4
  5838. "
  5839. @click.stop="deleteWorks(w.wid)"
  5840. alt
  5841. />
  5842. </div>
  5843. <div class="worksName">
  5844. <div>
  5845. {{ w.sName }}
  5846. </div>
  5847. </div>
  5848. </div>
  5849. </div>
  5850. </div>
  5851. <div
  5852. v-if="
  5853. tType &&
  5854. ((tType == 2 && sIsOpen == true) ||
  5855. tType == 1 ||
  5856. tType == 4) &&
  5857. tool.tool.indexOf(47) != -1
  5858. "
  5859. class="worksBox"
  5860. >
  5861. <div
  5862. class="zuoyeYulan"
  5863. v-if="
  5864. worksStudent.length &&
  5865. worksStudent[toolIndex].length > 0
  5866. "
  5867. >
  5868. <div class="worksTop">
  5869. <div>作业预览</div>
  5870. <div
  5871. class="corOpen"
  5872. @click="contract(toolIndex)"
  5873. v-if="
  5874. (isCloseList[toolIndex].isCloseBoolean) &&
  5875. isCloseList[toolIndex].isClose == 0
  5876. "
  5877. >
  5878. 折叠
  5879. </div>
  5880. <div
  5881. class="corOpen"
  5882. @click="contract(toolIndex)"
  5883. v-if="isCloseList[toolIndex].isClose == 1"
  5884. >
  5885. 展开
  5886. </div>
  5887. </div>
  5888. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5889. </div>
  5890. <div
  5891. :id="'tool-' + toolIndex"
  5892. :style="{
  5893. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5894. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5895. }"
  5896. class="worksDetailBox"
  5897. v-if="
  5898. worksStudent.length &&
  5899. worksStudent[toolIndex].length > 0
  5900. "
  5901. >
  5902. <!-- @click="openXz(w, toolIndex)" -->
  5903. <div
  5904. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5905. :key="wIndex"
  5906. class="isWorksName2"
  5907. @click="openSen(w, toolIndex)"
  5908. >
  5909. {{ w.sName }}
  5910. <img
  5911. class="deleteImg deleteImg2"
  5912. src="../../assets/deleteworks.png"
  5913. v-if="w.userid == userid || tType == 1 || tType == 4"
  5914. @click.stop="deleteWorks(w.wid)"
  5915. alt
  5916. />
  5917. </div>
  5918. </div>
  5919. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5920. 未提交
  5921. </div>
  5922. <div
  5923. class="noWorksS"
  5924. v-if="noWorksS && noWorksS[toolIndex].length"
  5925. >
  5926. <div
  5927. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5928. :key="sIndex"
  5929. class="noWorksName"
  5930. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5931. >
  5932. {{ s.student }}
  5933. </div>
  5934. </div>
  5935. </div>
  5936. <div
  5937. v-if="
  5938. tType &&
  5939. ((tType == 2 && sIsOpen == true) ||
  5940. tType == 1 ||
  5941. tType == 4) &&
  5942. tool.tool.indexOf(48) != -1
  5943. "
  5944. class="worksBox"
  5945. >
  5946. <div
  5947. class="zuoyeYulan"
  5948. v-if="
  5949. worksStudent.length &&
  5950. worksStudent[toolIndex].length > 0
  5951. "
  5952. >
  5953. <div class="worksTop">
  5954. <div>作业预览</div>
  5955. <div
  5956. class="corOpen"
  5957. @click="contract(toolIndex)"
  5958. v-if="
  5959. (isCloseList[toolIndex].isCloseBoolean) &&
  5960. isCloseList[toolIndex].isClose == 0
  5961. "
  5962. >
  5963. 折叠
  5964. </div>
  5965. <div
  5966. class="corOpen"
  5967. @click="contract(toolIndex)"
  5968. v-if="isCloseList[toolIndex].isClose == 1"
  5969. >
  5970. 展开
  5971. </div>
  5972. </div>
  5973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5974. </div>
  5975. <div
  5976. :id="'tool-' + toolIndex"
  5977. :style="{
  5978. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5979. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5980. }"
  5981. class="worksDetailBox"
  5982. v-if="
  5983. worksStudent.length &&
  5984. worksStudent[toolIndex].length > 0
  5985. "
  5986. >
  5987. <div
  5988. class="works"
  5989. style="
  5990. width: 200px;
  5991. height: 140px;
  5992. margin: 10px 10px 10px 0;
  5993. border-radius: 15px;
  5994. box-shadow: 0 0 6px 1px #dfdada;
  5995. "
  5996. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5997. :key="wIndex"
  5998. :class="w.type == 1 ? 'isTypeOne' : ''"
  5999. >
  6000. <div class="workImg">
  6001. <img :src="word" @click="openTable(w)" alt />
  6002. <!-- @click="openFile(w.works)" -->
  6003. <div
  6004. class="answerScore"
  6005. v-if="w.score"
  6006. @click.stop="openScore(w)"
  6007. :class="{
  6008. rightW:
  6009. w.userid == userid ||
  6010. tType == 1 ||
  6011. tType == 4 ||
  6012. w.ateacher == userid,
  6013. }"
  6014. >
  6015. {{ JSON.parse(w.score).wScore }}分
  6016. </div>
  6017. <div
  6018. class="answerScore"
  6019. @click.stop="openScore(w)"
  6020. v-else-if="courseDetail.userid == userid"
  6021. :class="{
  6022. rightW:
  6023. w.userid == userid ||
  6024. tType == 1 ||
  6025. tType == 4 ||
  6026. w.ateacher == userid,
  6027. }"
  6028. >
  6029. 评分
  6030. </div>
  6031. <img
  6032. class="deleteImg"
  6033. src="../../assets/deleteworks.png"
  6034. v-if="
  6035. w.userid == userid || tType == 1 || tType == 4
  6036. "
  6037. @click.stop="deleteWorks(w.wid)"
  6038. alt
  6039. />
  6040. </div>
  6041. <div class="comment" style="min-width: 200px">
  6042. <div class="worksName">
  6043. <div>{{ w.sName }}</div>
  6044. </div>
  6045. <div class="commentList">
  6046. <div class="commentList">
  6047. <div
  6048. class="commentImg"
  6049. @click="
  6050. isLikes(w.wid, userid, 1, null, w.isLikes)
  6051. "
  6052. >
  6053. <img
  6054. :src="w.isLikes == true ? likes : noLikes"
  6055. alt=""
  6056. />
  6057. </div>
  6058. <div>{{ w.likesCount }}</div>
  6059. </div>
  6060. <div class="commentList" style="margin-right: 15px">
  6061. <div
  6062. class="commentImg"
  6063. @click="commentOther(w, toolIndex, wIndex)"
  6064. >
  6065. <img
  6066. src="../../assets/icon/comment/comment.png"
  6067. alt=""
  6068. />
  6069. </div>
  6070. <div>{{ w.commentCount }}</div>
  6071. </div>
  6072. </div>
  6073. </div>
  6074. </div>
  6075. </div>
  6076. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6077. 未提交
  6078. </div>
  6079. <div
  6080. class="noWorksS"
  6081. v-if="noWorksS && noWorksS[toolIndex].length"
  6082. >
  6083. <div
  6084. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6085. :key="sIndex"
  6086. class="noWorksName"
  6087. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6088. >
  6089. {{ s.student }}
  6090. </div>
  6091. </div>
  6092. </div>
  6093. <div
  6094. v-if="
  6095. tType &&
  6096. tType == 2 &&
  6097. !sIsOpen &&
  6098. tool.tool.indexOf(48) != -1
  6099. "
  6100. class="worksBox"
  6101. >
  6102. <div
  6103. class="zuoyeYulan"
  6104. v-if="workStudent[toolIndex].length > 0"
  6105. >
  6106. <span class="worksTitle">作业预览</span>
  6107. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6108. </div>
  6109. <div
  6110. class="worksDetailBox"
  6111. v-if="workStudent[toolIndex].length > 0"
  6112. >
  6113. <div
  6114. class="works"
  6115. style="
  6116. width: 200px;
  6117. height: 140px;
  6118. margin: 10px 10px 10px 0;
  6119. box-shadow: 0 0 6px 1px #dfdada;
  6120. "
  6121. v-for="(w, wIndex) in workStudent[toolIndex]"
  6122. :key="wIndex"
  6123. >
  6124. <div class="workImg">
  6125. <img :src="word" @click="openTable(w)" alt />
  6126. <div
  6127. class="answerScore"
  6128. v-if="w.score"
  6129. @click.stop="openScore(w)"
  6130. :class="{
  6131. rightW:
  6132. w.userid == userid || tType == 1 || tType == 4,
  6133. }"
  6134. >
  6135. {{ JSON.parse(w.score).wScore }}分
  6136. </div>
  6137. <div
  6138. class="answerScore"
  6139. @click.stop="openScore(w)"
  6140. v-else-if="courseDetail.userid == userid"
  6141. :class="{
  6142. rightW:
  6143. w.userid == userid || tType == 1 || tType == 4,
  6144. }"
  6145. >
  6146. 评分
  6147. </div>
  6148. <img
  6149. class="deleteImg"
  6150. src="../../assets/deleteworks.png"
  6151. v-if="
  6152. w.userid == userid || tType == 1 || tType == 4
  6153. "
  6154. @click.stop="deleteWorks(w.wid)"
  6155. alt
  6156. />
  6157. </div>
  6158. <div class="worksName">
  6159. <div>{{ w.sName }}</div>
  6160. </div>
  6161. </div>
  6162. </div>
  6163. </div>
  6164. <div
  6165. v-if="
  6166. tType &&
  6167. ((tType == 2 && sIsOpen == true) ||
  6168. tType == 1 ||
  6169. tType == 4) &&
  6170. tool.tool.indexOf(52) != -1
  6171. "
  6172. class="worksBox"
  6173. >
  6174. <div
  6175. class="zuoyeYulan"
  6176. v-if="
  6177. worksStudent.length &&
  6178. worksStudent[toolIndex].length > 0
  6179. "
  6180. >
  6181. <div class="worksTop">
  6182. <div>作业预览</div>
  6183. <div
  6184. class="corOpen"
  6185. @click="contract(toolIndex)"
  6186. v-if="
  6187. (isCloseList[toolIndex].isCloseBoolean) &&
  6188. isCloseList[toolIndex].isClose == 0
  6189. "
  6190. >
  6191. 折叠
  6192. </div>
  6193. <div
  6194. class="corOpen"
  6195. @click="contract(toolIndex)"
  6196. v-if="isCloseList[toolIndex].isClose == 1"
  6197. >
  6198. 展开
  6199. </div>
  6200. </div>
  6201. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6202. </div>
  6203. <div
  6204. :id="'tool-' + toolIndex"
  6205. :style="{
  6206. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6207. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6208. }"
  6209. class="worksDetailBox"
  6210. v-if="
  6211. worksStudent.length &&
  6212. worksStudent[toolIndex].length > 0
  6213. "
  6214. >
  6215. <div
  6216. class="works"
  6217. style="
  6218. width: 200px;
  6219. height: 140px;
  6220. margin: 10px 10px 10px 0;
  6221. border-radius: 15px;
  6222. box-shadow: 0 0 6px 1px #dfdada;
  6223. "
  6224. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6225. :key="wIndex"
  6226. :class="w.type == 1 ? 'isTypeOne' : ''"
  6227. >
  6228. <div class="workImg">
  6229. <img :src="word" @click="openWord(w)" alt />
  6230. <!-- @click="openFile(w.works)" -->
  6231. <div
  6232. class="answerScore"
  6233. v-if="w.score"
  6234. @click.stop="openScore(w)"
  6235. :class="{
  6236. rightW:
  6237. w.userid == userid ||
  6238. tType == 1 ||
  6239. tType == 4 ||
  6240. w.ateacher == userid,
  6241. }"
  6242. >
  6243. {{ JSON.parse(w.score).wScore }}分
  6244. </div>
  6245. <div
  6246. class="answerScore"
  6247. @click.stop="openScore(w)"
  6248. v-else-if="courseDetail.userid == userid"
  6249. :class="{
  6250. rightW:
  6251. w.userid == userid ||
  6252. tType == 1 ||
  6253. tType == 4 ||
  6254. w.ateacher == userid,
  6255. }"
  6256. >
  6257. 评分
  6258. </div>
  6259. <img
  6260. class="deleteImg"
  6261. src="../../assets/deleteworks.png"
  6262. v-if="
  6263. w.userid == userid || tType == 1 || tType == 4
  6264. "
  6265. @click.stop="deleteWorks(w.wid)"
  6266. alt
  6267. />
  6268. </div>
  6269. <div class="comment" style="min-width: 200px">
  6270. <div class="worksName">
  6271. <div>{{ w.sName }}</div>
  6272. </div>
  6273. <div class="commentList">
  6274. <div class="commentList">
  6275. <div
  6276. class="commentImg"
  6277. @click="
  6278. isLikes(w.wid, userid, 1, null, w.isLikes)
  6279. "
  6280. >
  6281. <img
  6282. :src="w.isLikes == true ? likes : noLikes"
  6283. alt=""
  6284. />
  6285. </div>
  6286. <div>{{ w.likesCount }}</div>
  6287. </div>
  6288. <div class="commentList" style="margin-right: 15px">
  6289. <div
  6290. class="commentImg"
  6291. @click="commentOther(w, toolIndex, wIndex)"
  6292. >
  6293. <img
  6294. src="../../assets/icon/comment/comment.png"
  6295. alt=""
  6296. />
  6297. </div>
  6298. <div>{{ w.commentCount }}</div>
  6299. </div>
  6300. </div>
  6301. </div>
  6302. </div>
  6303. </div>
  6304. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6305. 未提交
  6306. </div>
  6307. <div
  6308. class="noWorksS"
  6309. v-if="noWorksS && noWorksS[toolIndex].length"
  6310. >
  6311. <div
  6312. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6313. :key="sIndex"
  6314. class="noWorksName"
  6315. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6316. >
  6317. {{ s.student }}
  6318. </div>
  6319. </div>
  6320. </div>
  6321. <div
  6322. v-if="
  6323. tType &&
  6324. tType == 2 &&
  6325. !sIsOpen &&
  6326. tool.tool.indexOf(52) != -1
  6327. "
  6328. class="worksBox"
  6329. >
  6330. <div
  6331. class="zuoyeYulan"
  6332. v-if="workStudent[toolIndex].length > 0"
  6333. >
  6334. <span class="worksTitle">作业预览</span>
  6335. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6336. </div>
  6337. <div
  6338. class="worksDetailBox"
  6339. v-if="workStudent[toolIndex].length > 0"
  6340. >
  6341. <div
  6342. class="works"
  6343. style="
  6344. width: 200px;
  6345. height: 140px;
  6346. margin: 10px 10px 10px 0;
  6347. box-shadow: 0 0 6px 1px #dfdada;
  6348. "
  6349. v-for="(w, wIndex) in workStudent[toolIndex]"
  6350. :key="wIndex"
  6351. >
  6352. <div class="workImg">
  6353. <img :src="word" @click="openWord(w)" alt />
  6354. <div
  6355. class="answerScore"
  6356. v-if="w.score"
  6357. @click.stop="openScore(w)"
  6358. :class="{
  6359. rightW:
  6360. w.userid == userid || tType == 1 || tType == 4,
  6361. }"
  6362. >
  6363. {{ JSON.parse(w.score).wScore }}分
  6364. </div>
  6365. <div
  6366. class="answerScore"
  6367. @click.stop="openScore(w)"
  6368. v-else-if="courseDetail.userid == userid"
  6369. :class="{
  6370. rightW:
  6371. w.userid == userid || tType == 1 || tType == 4,
  6372. }"
  6373. >
  6374. 评分
  6375. </div>
  6376. <img
  6377. class="deleteImg"
  6378. src="../../assets/deleteworks.png"
  6379. v-if="
  6380. w.userid == userid || tType == 1 || tType == 4
  6381. "
  6382. @click.stop="deleteWorks(w.wid)"
  6383. alt
  6384. />
  6385. </div>
  6386. <div class="worksName">
  6387. <div>{{ w.sName }}</div>
  6388. </div>
  6389. </div>
  6390. </div>
  6391. </div>
  6392. <div
  6393. v-if="tool.tool.indexOf(49) != -1"
  6394. class="xuan_right_box"
  6395. style="margin: 0 15px 0 25px; width: 93%"
  6396. >
  6397. <div
  6398. v-if="courseDetail.userid == userid"
  6399. style="
  6400. display: flex;
  6401. justify-content: flex-end;
  6402. margin-right: 10px;
  6403. "
  6404. >
  6405. <el-button
  6406. type="primary"
  6407. size="small"
  6408. @click="addTools(49, toolIndex, taskCount)"
  6409. >分组设置</el-button
  6410. >
  6411. </div>
  6412. <div
  6413. v-if="groupStudentUid[toolIndex]"
  6414. class="group_staic_box"
  6415. >
  6416. <div
  6417. v-for="(gp, gd) in tool.groupJson.group"
  6418. :key="gd"
  6419. class="group_staic"
  6420. >
  6421. <span> {{ gp.name }}</span>
  6422. <span>
  6423. 目前人数{{
  6424. groupStudentUid[toolIndex][gd].length
  6425. }}人</span
  6426. >
  6427. </div>
  6428. </div>
  6429. </div>
  6430. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6431. <div
  6432. class="zuoyeYulan"
  6433. v-if="
  6434. worksStudent.length &&
  6435. worksStudent[toolIndex].length > 0
  6436. "
  6437. >
  6438. <span class="worksTitle">作业预览</span>
  6439. </div>
  6440. <div>
  6441. <div
  6442. class="group_workBox"
  6443. v-for="(g, gindex) in tool.groupJson.group"
  6444. :key="gindex"
  6445. >
  6446. <div
  6447. class="group_box"
  6448. v-if="
  6449. groupStudentUid[toolIndex] &&
  6450. worksStudent[toolIndex] &&
  6451. (worksStudent[toolIndex][gindex].length ||
  6452. groupStudentUid[toolIndex][gindex].indexOf(
  6453. userid
  6454. ) != -1)
  6455. "
  6456. >
  6457. <div class="group_title">
  6458. <el-tooltip
  6459. class="item"
  6460. effect="light"
  6461. :content="g.name"
  6462. placement="top"
  6463. >
  6464. <div class="group_name">{{ g.name }}</div>
  6465. </el-tooltip>
  6466. <el-button
  6467. type="primary"
  6468. v-if="
  6469. groupStudentUid[toolIndex][gindex].indexOf(
  6470. userid
  6471. ) != -1
  6472. "
  6473. @click="groupUpload(toolIndex, taskCount, gindex)"
  6474. >上传作业</el-button
  6475. >
  6476. </div>
  6477. <div class="group_work">
  6478. <div
  6479. class="works"
  6480. style="
  6481. width: 200px;
  6482. height: 140px;
  6483. margin: 10px 10px 10px 0;
  6484. border-radius: 15px;
  6485. box-shadow: 0 0 6px 1px #dfdada;
  6486. "
  6487. v-for="(w, wIndex) in worksStudent[toolIndex][
  6488. gindex
  6489. ]"
  6490. :key="wIndex"
  6491. :class="w.type == 1 ? 'isTypeOne' : ''"
  6492. >
  6493. <div class="workImg" v-if="w.type == 0">
  6494. <img
  6495. :src="w.works"
  6496. @click="previewImg(w.works)"
  6497. alt
  6498. />
  6499. <div
  6500. class="answerScore"
  6501. v-if="w.score"
  6502. @click.stop="openScore(w)"
  6503. :class="{
  6504. rightW:
  6505. w.userid == userid ||
  6506. tType == 1 ||
  6507. tType == 4 ||
  6508. w.ateacher == userid,
  6509. }"
  6510. >
  6511. {{ JSON.parse(w.score).wScore }}分
  6512. </div>
  6513. <div
  6514. class="answerScore"
  6515. @click.stop="openScore(w)"
  6516. v-else-if="courseDetail.userid == userid"
  6517. :class="{
  6518. rightW:
  6519. w.userid == userid ||
  6520. tType == 1 ||
  6521. tType == 4 ||
  6522. w.ateacher == userid,
  6523. }"
  6524. >
  6525. 评分
  6526. </div>
  6527. <img
  6528. class="deleteImg"
  6529. src="../../assets/deleteworks.png"
  6530. v-if="
  6531. w.userid == userid ||
  6532. tType == 1 ||
  6533. tType == 4
  6534. "
  6535. @click.stop="deleteWorks(w.wid)"
  6536. alt
  6537. />
  6538. </div>
  6539. <div class="workImg" v-if="w.type == 1">
  6540. <img
  6541. :src="word"
  6542. @click="openFile(w.works)"
  6543. alt
  6544. />
  6545. <!-- @click="openFile(w.works)" -->
  6546. <div
  6547. class="answerScore"
  6548. v-if="w.score"
  6549. @click.stop="openScore(w)"
  6550. :class="{
  6551. rightW:
  6552. w.userid == userid ||
  6553. tType == 1 ||
  6554. tType == 4 ||
  6555. w.ateacher == userid,
  6556. }"
  6557. >
  6558. {{ JSON.parse(w.score).wScore }}分
  6559. </div>
  6560. <div
  6561. class="answerScore"
  6562. @click.stop="openScore(w)"
  6563. v-else-if="courseDetail.userid == userid"
  6564. :class="{
  6565. rightW:
  6566. w.userid == userid ||
  6567. tType == 1 ||
  6568. tType == 4 ||
  6569. w.ateacher == userid,
  6570. }"
  6571. >
  6572. 评分
  6573. </div>
  6574. <img
  6575. class="deleteImg"
  6576. src="../../assets/deleteworks.png"
  6577. v-if="
  6578. w.userid == userid ||
  6579. tType == 1 ||
  6580. tType == 4
  6581. "
  6582. @click.stop="deleteWorks(w.wid)"
  6583. alt
  6584. />
  6585. </div>
  6586. <div class="workImg" v-if="w.type == 3">
  6587. <img
  6588. style="cursor: pointer"
  6589. :src="video"
  6590. @click="openVideo(w)"
  6591. alt
  6592. />
  6593. <!-- @click="openVideo(w.works)" -->
  6594. <div
  6595. class="answerScore"
  6596. v-if="w.score"
  6597. @click.stop="openScore(w)"
  6598. :class="{
  6599. rightW:
  6600. w.userid == userid ||
  6601. tType == 1 ||
  6602. tType == 4 ||
  6603. w.ateacher == userid,
  6604. }"
  6605. >
  6606. {{ JSON.parse(w.score).wScore }}分
  6607. </div>
  6608. <div
  6609. class="answerScore"
  6610. @click.stop="openScore(w)"
  6611. v-else-if="courseDetail.userid == userid"
  6612. :class="{
  6613. rightW:
  6614. w.userid == userid ||
  6615. tType == 1 ||
  6616. tType == 4 ||
  6617. w.ateacher == userid,
  6618. }"
  6619. >
  6620. 评分
  6621. </div>
  6622. <img
  6623. class="deleteImg"
  6624. src="../../assets/deleteworks.png"
  6625. v-if="
  6626. w.userid == userid ||
  6627. tType == 1 ||
  6628. tType == 4
  6629. "
  6630. @click.stop="deleteWorks(w.wid)"
  6631. alt
  6632. />
  6633. </div>
  6634. <div class="workImg" v-if="w.type == 12">
  6635. <img
  6636. style="cursor: pointer"
  6637. :src="word2"
  6638. @click="downloadFile(w.works)"
  6639. alt
  6640. />
  6641. <!-- @click="openVideo(w.works)" -->
  6642. <div
  6643. class="answerScore"
  6644. v-if="w.score"
  6645. @click.stop="openScore(w)"
  6646. :class="{
  6647. rightW:
  6648. w.userid == userid ||
  6649. tType == 1 ||
  6650. tType == 4 ||
  6651. w.ateacher == userid,
  6652. }"
  6653. >
  6654. {{ JSON.parse(w.score).wScore }}分
  6655. </div>
  6656. <div
  6657. class="answerScore"
  6658. @click.stop="openScore(w)"
  6659. v-else-if="courseDetail.userid == userid"
  6660. :class="{
  6661. rightW:
  6662. w.userid == userid ||
  6663. tType == 1 ||
  6664. tType == 4 ||
  6665. w.ateacher == userid,
  6666. }"
  6667. >
  6668. 评分
  6669. </div>
  6670. <img
  6671. class="deleteImg"
  6672. src="../../assets/deleteworks.png"
  6673. v-if="
  6674. w.userid == userid ||
  6675. tType == 1 ||
  6676. tType == 4
  6677. "
  6678. @click.stop="deleteWorks(w.wid)"
  6679. alt
  6680. />
  6681. </div>
  6682. <div class="comment" style="min-width: 200px">
  6683. <div class="worksName">
  6684. <div>{{ w.sName }}</div>
  6685. </div>
  6686. <div class="commentList">
  6687. <div class="commentList">
  6688. <div
  6689. class="commentImg"
  6690. @click="
  6691. isLikes(
  6692. w.wid,
  6693. userid,
  6694. 1,
  6695. null,
  6696. w.isLikes
  6697. )
  6698. "
  6699. >
  6700. <img
  6701. :src="
  6702. w.isLikes == true ? likes : noLikes
  6703. "
  6704. alt=""
  6705. />
  6706. </div>
  6707. <div>{{ w.likesCount }}</div>
  6708. </div>
  6709. <div
  6710. class="commentList"
  6711. style="margin-right: 15px"
  6712. >
  6713. <div
  6714. class="commentImg"
  6715. @click="
  6716. commentOther(
  6717. w,
  6718. toolIndex,
  6719. wIndex,
  6720. gindex
  6721. )
  6722. "
  6723. >
  6724. <img
  6725. src="../../assets/icon/comment/comment.png"
  6726. alt=""
  6727. />
  6728. </div>
  6729. <div>{{ w.commentCount }}</div>
  6730. </div>
  6731. </div>
  6732. </div>
  6733. </div>
  6734. </div>
  6735. </div>
  6736. </div>
  6737. </div>
  6738. </div>
  6739. </div>
  6740. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6741. 上传文件
  6742. <input
  6743. type="file"
  6744. accept="image/png, image/gif, image/jpeg"
  6745. style="display: none"
  6746. @change="beforeUpload1($event, 2, index)"
  6747. />
  6748. </div>-->
  6749. </div>
  6750. </div>
  6751. <!-- <div
  6752. class="vedioBox"
  6753. style="margin-top: 10px"
  6754. v-if="
  6755. courseDetail.userid == userid ||
  6756. (courseDetail.course_teacher &&
  6757. courseDetail.course_teacher.indexOf(userid) != -1)
  6758. "
  6759. :style="{
  6760. borderRadius:
  6761. !(
  6762. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6763. .toolChoose[0].tool &&
  6764. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6765. .toolChoose[0].tool.length > 0
  6766. ) &&
  6767. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6768. .taskDetail == '' &&
  6769. vChapterData[taskCount].length == 0 &&
  6770. fileC[taskCount].length == 0
  6771. ? '0 0 20px 20px'
  6772. : '20px',
  6773. }"
  6774. >
  6775. <div
  6776. class="queTop"
  6777. @click="isClose = !isClose"
  6778. style="
  6779. padding: 15px 0 15px 37px;
  6780. justify-content: space-between;
  6781. "
  6782. >
  6783. <div class="queTopTitle">新增工具</div>
  6784. <div class="queTopRight">
  6785. <div class="queTopClose" v-if="isClose == 0">
  6786. 展开
  6787. <div class="closeImg">
  6788. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6789. </div>
  6790. </div>
  6791. <div class="queTopClose" v-if="isClose == 1">
  6792. 折叠
  6793. <div class="openImg">
  6794. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6795. </div>
  6796. </div>
  6797. <el-button
  6798. style="margin: 0 30px 0 auto"
  6799. type="primary"
  6800. size="small"
  6801. v-if="isClose == 1 && checktoolArray.length > 0"
  6802. @click.stop="addToolChoose"
  6803. >确定</el-button
  6804. >
  6805. </div>
  6806. </div>
  6807. <div
  6808. class="tool_work_box"
  6809. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6810. >
  6811. <div class="tool_box">
  6812. <div class="tool_type_box">
  6813. <div class="chooseWho">
  6814. <div
  6815. :class="toolType == 0 ? 'isChooseActive' : ''"
  6816. @click="(toolType = 0), $forceUpdate()"
  6817. >
  6818. 互动类
  6819. </div>
  6820. <div
  6821. :class="toolType == 1 ? 'isChooseActive' : ''"
  6822. @click="(toolType = 1), $forceUpdate()"
  6823. >
  6824. 思维类
  6825. </div>
  6826. <div
  6827. :class="toolType == 2 ? 'isChooseActive' : ''"
  6828. @click="(toolType = 2), $forceUpdate()"
  6829. >
  6830. 测评类
  6831. </div>
  6832. <div
  6833. :class="toolType == 3 ? 'isChooseActive' : ''"
  6834. @click="(toolType = 3), $forceUpdate()"
  6835. >
  6836. 编程类
  6837. </div>
  6838. <div
  6839. :class="toolType == 5 ? 'isChooseActive' : ''"
  6840. @click="(toolType = 5), $forceUpdate()"
  6841. >
  6842. 学科类
  6843. </div>
  6844. </div>
  6845. </div>
  6846. <div>
  6847. <div class="toolSort" v-if="toolType == 0">
  6848. <div class="tool">
  6849. <div class="whiteBIcon" @click="addTools2(10)">
  6850. <img
  6851. src="../../assets/icon/thirdToolList/time.png"
  6852. alt
  6853. />
  6854. <div style="margin: 5px 0">倒计时</div>
  6855. </div>
  6856. <div class="check" @click="addTools2(10)">
  6857. <img
  6858. src="../../assets/icon/checkNo.png"
  6859. alt
  6860. v-if="checktoolArray.indexOf(10) == -1"
  6861. />
  6862. <div class="checkDiv" v-else>
  6863. <img src="../../assets/icon/checkedIs.png" alt /><span
  6864. >已选择</span
  6865. >
  6866. </div>
  6867. </div>
  6868. </div>
  6869. <div class="tool">
  6870. <div class="whiteBIcon" @click="addTools2(65)">
  6871. <img
  6872. src="../../assets/icon/firstToolList/pickPeople.png"
  6873. alt
  6874. />
  6875. <div style="margin: 5px 0">挑人</div>
  6876. </div>
  6877. <div class="check" @click="addTools2(65)">
  6878. <img
  6879. src="../../assets/icon/checkNo.png"
  6880. alt
  6881. v-if="checktoolArray.indexOf(65) == -1"
  6882. />
  6883. <div class="checkDiv" v-else>
  6884. <img src="../../assets/icon/checkedIs.png" alt /><span
  6885. >已选择</span
  6886. >
  6887. </div>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. <div class="toolSort" v-if="toolType == 1">
  6892. <div class="tool">
  6893. <div class="whiteBIcon" @click="addTools2(7)">
  6894. <img
  6895. src="../../assets/icon/secondToolList/mindNetwork.png"
  6896. alt
  6897. />
  6898. <div style="margin: 5px 0">思维网格</div>
  6899. </div>
  6900. <div class="check" @click="addTools2(7)">
  6901. <img
  6902. src="../../assets/icon/checkNo.png"
  6903. alt
  6904. v-if="checktoolArray.indexOf(7) == -1"
  6905. />
  6906. <div class="checkDiv" v-else>
  6907. <img src="../../assets/icon/checkedIs.png" alt /><span
  6908. >已选择</span
  6909. >
  6910. </div>
  6911. </div>
  6912. </div>
  6913. <div class="tool">
  6914. <div class="whiteBIcon" @click="addTools2(1)">
  6915. <img
  6916. src="../../assets/icon/secondToolList/whiteBoard.png"
  6917. alt
  6918. />
  6919. <div style="margin: 5px 0">电子白板</div>
  6920. </div>
  6921. <div class="check" @click="addTools2(1)">
  6922. <img
  6923. src="../../assets/icon/checkNo.png"
  6924. alt
  6925. v-if="checktoolArray.indexOf(1) == -1"
  6926. />
  6927. <div class="checkDiv" v-else>
  6928. <img src="../../assets/icon/checkedIs.png" alt /><span
  6929. >已选择</span
  6930. >
  6931. </div>
  6932. </div>
  6933. </div>
  6934. <div class="tool">
  6935. <div class="whiteBIcon" @click="addTools2(52)">
  6936. <img
  6937. src="../../assets/icon/fourthToolList/text.png"
  6938. alt
  6939. />
  6940. <div style="margin: 5px 0">文档</div>
  6941. </div>
  6942. <div class="check" @click="addTools2(52)">
  6943. <img
  6944. src="../../assets/icon/checkNo.png"
  6945. alt
  6946. v-if="checktoolArray.indexOf(52) == -1"
  6947. />
  6948. <div class="checkDiv" v-else>
  6949. <img src="../../assets/icon/checkedIs.png" alt /><span
  6950. >已选择</span
  6951. >
  6952. </div>
  6953. </div>
  6954. </div>
  6955. <div class="tool">
  6956. <div class="whiteBIcon" @click="addTools2(3)">
  6957. <img
  6958. src="../../assets/icon/secondToolList/mindMapping.png"
  6959. alt
  6960. />
  6961. <div style="margin: 5px 0">思维导图</div>
  6962. </div>
  6963. <div class="check" @click="addTools2(3)">
  6964. <img
  6965. src="../../assets/icon/checkNo.png"
  6966. alt
  6967. v-if="checktoolArray.indexOf(3) == -1"
  6968. />
  6969. <div class="checkDiv" v-else>
  6970. <img src="../../assets/icon/checkedIs.png" alt /><span
  6971. >已选择</span
  6972. >
  6973. </div>
  6974. </div>
  6975. </div>
  6976. <div class="tool">
  6977. <div class="whiteBIcon" @click="addTools2(48)">
  6978. <img
  6979. src="../../assets/icon/fourthToolList/table.png"
  6980. alt
  6981. />
  6982. <div style="margin: 5px 0">表格</div>
  6983. </div>
  6984. <div class="check" @click="addTools2(48)">
  6985. <img
  6986. src="../../assets/icon/checkNo.png"
  6987. alt
  6988. v-if="checktoolArray.indexOf(48) == -1"
  6989. />
  6990. <div class="checkDiv" v-else>
  6991. <img src="../../assets/icon/checkedIs.png" alt /><span
  6992. >已选择</span
  6993. >
  6994. </div>
  6995. </div>
  6996. </div>
  6997. </div>
  6998. <div class="toolSort" v-if="toolType == 6">
  6999. <div v-show="tooC == 49">
  7000. <img
  7001. @click="addTools(tooC, toolIndex, taskCount)"
  7002. src="../../assets/icon/fourthToolList/group.png"
  7003. alt
  7004. />
  7005. <div style="margin: 5px 0">学生分组</div>
  7006. </div>
  7007. </div>
  7008. <div class="toolSort" v-if="toolType == 2">
  7009. <div class="tool">
  7010. <div class="whiteBIcon" @click="addTools2(16)">
  7011. <img
  7012. src="../../assets/icon/thirdToolList/work.png"
  7013. alt
  7014. />
  7015. <div style="margin: 5px 0">作业提交</div>
  7016. </div>
  7017. <div class="check" @click="addTools2(16)">
  7018. <img
  7019. src="../../assets/icon/checkNo.png"
  7020. alt
  7021. v-if="checktoolArray.indexOf(16) == -1"
  7022. />
  7023. <div class="checkDiv" v-else>
  7024. <img src="../../assets/icon/checkedIs.png" alt /><span
  7025. >已选择</span
  7026. >
  7027. </div>
  7028. </div>
  7029. </div>
  7030. <div class="tool">
  7031. <div class="whiteBIcon" @click="addTools2(50)">
  7032. <img
  7033. src="../../assets/icon/thirdToolList/plwork.png"
  7034. alt
  7035. />
  7036. <div style="margin: 5px 0">批量上传</div>
  7037. </div>
  7038. <div class="check" @click="addTools2(50)">
  7039. <img
  7040. src="../../assets/icon/checkNo.png"
  7041. alt
  7042. v-if="checktoolArray.indexOf(50) == -1"
  7043. />
  7044. <div class="checkDiv" v-else>
  7045. <img src="../../assets/icon/checkedIs.png" alt /><span
  7046. >已选择</span
  7047. >
  7048. </div>
  7049. </div>
  7050. </div>
  7051. </div>
  7052. <div class="toolSort" v-if="toolType == 3">
  7053. <div class="tool">
  7054. <div class="whiteBIcon" @click="addTools2(18)">
  7055. <img
  7056. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7057. alt
  7058. />
  7059. <div style="margin: 5px 0">训练平台</div>
  7060. </div>
  7061. <div class="check" @click="addTools2(18)">
  7062. <img
  7063. src="../../assets/icon/checkNo.png"
  7064. alt
  7065. v-if="checktoolArray.indexOf(18) == -1"
  7066. />
  7067. <div class="checkDiv" v-else>
  7068. <img src="../../assets/icon/checkedIs.png" alt /><span
  7069. >已选择</span
  7070. >
  7071. </div>
  7072. </div>
  7073. </div>
  7074. <div class="tool">
  7075. <div class="whiteBIcon" @click="addTools2(21)">
  7076. <img
  7077. src="../../assets/icon/fourthToolList/program.png"
  7078. alt
  7079. />
  7080. <div style="margin: 5px 0">AIoT Blockly</div>
  7081. </div>
  7082. <div class="check" @click="addTools2(21)">
  7083. <img
  7084. src="../../assets/icon/checkNo.png"
  7085. alt
  7086. v-if="checktoolArray.indexOf(21) == -1"
  7087. />
  7088. <div class="checkDiv" v-else>
  7089. <img src="../../assets/icon/checkedIs.png" alt /><span
  7090. >已选择</span
  7091. >
  7092. </div>
  7093. </div>
  7094. </div>
  7095. <div class="tool">
  7096. <div class="whiteBIcon" @click="addTools2(23)">
  7097. <img
  7098. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7099. alt
  7100. />
  7101. <div style="margin: 5px 0">AI Python</div>
  7102. </div>
  7103. <div class="check" @click="addTools2(23)">
  7104. <img
  7105. src="../../assets/icon/checkNo.png"
  7106. alt
  7107. v-if="checktoolArray.indexOf(23) == -1"
  7108. />
  7109. <div class="checkDiv" v-else>
  7110. <img src="../../assets/icon/checkedIs.png" alt /><span
  7111. >已选择</span
  7112. >
  7113. </div>
  7114. </div>
  7115. </div>
  7116. <div class="tool">
  7117. <div class="whiteBIcon" @click="addTools2(24)">
  7118. <img
  7119. src="../../assets/icon/fourthToolList/AIprogram.png"
  7120. alt
  7121. />
  7122. <div style="margin: 5px 0">AI Blockly</div>
  7123. </div>
  7124. <div class="check" @click="addTools2(24)">
  7125. <img
  7126. src="../../assets/icon/checkNo.png"
  7127. alt
  7128. v-if="checktoolArray.indexOf(24) == -1"
  7129. />
  7130. <div class="checkDiv" v-else>
  7131. <img src="../../assets/icon/checkedIs.png" alt /><span
  7132. >已选择</span
  7133. >
  7134. </div>
  7135. </div>
  7136. </div>
  7137. <div class="tool">
  7138. <div class="whiteBIcon" @click="addTools2(32)">
  7139. <img
  7140. src="../../assets/icon/thirdToolList/code.png"
  7141. alt
  7142. />
  7143. <div style="margin: 5px 0">源码编辑</div>
  7144. </div>
  7145. <div class="check" @click="addTools2(32)">
  7146. <img
  7147. src="../../assets/icon/checkNo.png"
  7148. alt
  7149. v-if="checktoolArray.indexOf(32) == -1"
  7150. />
  7151. <div class="checkDiv" v-else>
  7152. <img src="../../assets/icon/checkedIs.png" alt /><span
  7153. >已选择</span
  7154. >
  7155. </div>
  7156. </div>
  7157. </div>
  7158. <div class="tool">
  7159. <div class="whiteBIcon" @click="addTools2(57)">
  7160. <img
  7161. src="../../assets/icon/fourthToolList/cocopi.png"
  7162. alt
  7163. />
  7164. <div style="margin: 5px 0">CocoPi</div>
  7165. </div>
  7166. <div class="check" @click="addTools2(57)">
  7167. <img
  7168. src="../../assets/icon/checkNo.png"
  7169. alt
  7170. v-if="checktoolArray.indexOf(57) == -1"
  7171. />
  7172. <div class="checkDiv" v-else>
  7173. <img src="../../assets/icon/checkedIs.png" alt /><span
  7174. >已选择</span
  7175. >
  7176. </div>
  7177. </div>
  7178. </div>
  7179. <div class="tool">
  7180. <div class="whiteBIcon" @click="addTools2(63)">
  7181. <img
  7182. src="../../assets/icon/fourthToolList/Wood.png"
  7183. alt
  7184. />
  7185. <div style="margin: 5px 0">海龟编程</div>
  7186. </div>
  7187. <div class="check" @click="addTools2(63)">
  7188. <img
  7189. src="../../assets/icon/checkNo.png"
  7190. alt
  7191. v-if="checktoolArray.indexOf(63) == -1"
  7192. />
  7193. <div class="checkDiv" v-else>
  7194. <img src="../../assets/icon/checkedIs.png" alt /><span
  7195. >已选择</span
  7196. >
  7197. </div>
  7198. </div>
  7199. </div>
  7200. </div>
  7201. <div class="toolSort" v-if="toolType == 5">
  7202. <div class="tool">
  7203. <div class="whiteBIcon" @click="addTools2(28)">
  7204. <img
  7205. src="../../assets/icon/secondToolList/translation.png"
  7206. alt
  7207. />
  7208. <div style="margin: 5px 0">翻译</div>
  7209. </div>
  7210. <div class="check" @click="addTools2(28)">
  7211. <img
  7212. src="../../assets/icon/checkNo.png"
  7213. alt
  7214. v-if="checktoolArray.indexOf(28) == -1"
  7215. />
  7216. <div class="checkDiv" v-else>
  7217. <img src="../../assets/icon/checkedIs.png" alt /><span
  7218. >已选择</span
  7219. >
  7220. </div>
  7221. </div>
  7222. </div>
  7223. <div class="tool">
  7224. <div class="whiteBIcon" @click="addTools2(31)">
  7225. <img
  7226. src="../../assets/icon/secondToolList/networkPanel.png"
  7227. alt
  7228. />
  7229. <div style="margin: 5px 0">数字画板</div>
  7230. </div>
  7231. <div class="check" @click="addTools2(31)">
  7232. <img
  7233. src="../../assets/icon/checkNo.png"
  7234. alt
  7235. v-if="checktoolArray.indexOf(31) == -1"
  7236. />
  7237. <div class="checkDiv" v-else>
  7238. <img src="../../assets/icon/checkedIs.png" alt /><span
  7239. >已选择</span
  7240. >
  7241. </div>
  7242. </div>
  7243. </div>
  7244. <div class="tool">
  7245. <div class="whiteBIcon" @click="addTools2(39)">
  7246. <img
  7247. src="../../assets/icon/secondToolList/GeoGebra.png"
  7248. alt
  7249. />
  7250. <div style="margin: 5px 0">GeoGebra</div>
  7251. </div>
  7252. <div class="check" @click="addTools2(39)">
  7253. <img
  7254. src="../../assets/icon/checkNo.png"
  7255. alt
  7256. v-if="checktoolArray.indexOf(39) == -1"
  7257. />
  7258. <div class="checkDiv" v-else>
  7259. <img src="../../assets/icon/checkedIs.png" alt /><span
  7260. >已选择</span
  7261. >
  7262. </div>
  7263. </div>
  7264. </div>
  7265. <div class="tool">
  7266. <div class="whiteBIcon" @click="addTools2(66)">
  7267. <img
  7268. src="../../assets/icon/secondToolList/formulaEdi.png"
  7269. alt
  7270. />
  7271. <div style="margin: 5px 0">公式编辑</div>
  7272. </div>
  7273. <div class="check" @click="addTools2(66)">
  7274. <img
  7275. src="../../assets/icon/checkNo.png"
  7276. alt
  7277. v-if="checktoolArray.indexOf(66) == -1"
  7278. />
  7279. <div class="checkDiv" v-else>
  7280. <img src="../../assets/icon/checkedIs.png" alt /><span
  7281. >已选择</span
  7282. >
  7283. </div>
  7284. </div>
  7285. </div>
  7286. <div class="tool">
  7287. <div class="whiteBIcon" @click="addTools2(67)">
  7288. <img
  7289. src="../../assets/icon/secondToolList/molStr.png"
  7290. alt
  7291. />
  7292. <div style="margin: 5px 0">分子结构</div>
  7293. </div>
  7294. <div class="check" @click="addTools2(67)">
  7295. <img
  7296. src="../../assets/icon/checkNo.png"
  7297. alt
  7298. v-if="checktoolArray.indexOf(67) == -1"
  7299. />
  7300. <div class="checkDiv" v-else>
  7301. <img src="../../assets/icon/checkedIs.png" alt /><span
  7302. >已选择</span
  7303. >
  7304. </div>
  7305. </div>
  7306. </div>
  7307. <div class="tool">
  7308. <div class="whiteBIcon" @click="addTools2(68)">
  7309. <img
  7310. src="../../assets/icon/secondToolList/timeAxis.png"
  7311. alt
  7312. />
  7313. <div style="margin: 5px 0">时间轴</div>
  7314. </div>
  7315. <div class="check" @click="addTools2(68)">
  7316. <img
  7317. src="../../assets/icon/checkNo.png"
  7318. alt
  7319. v-if="checktoolArray.indexOf(68) == -1"
  7320. />
  7321. <div class="checkDiv" v-else>
  7322. <img src="../../assets/icon/checkedIs.png" alt /><span
  7323. >已选择</span
  7324. >
  7325. </div>
  7326. </div>
  7327. </div>
  7328. </div>
  7329. <div class="toolSort" v-if="toolType == 7">
  7330. <div class="tool">
  7331. <div class="whiteBIcon" @click="addTools2(40)">
  7332. <img
  7333. src="../../assets/icon/secondToolList/eval.png"
  7334. alt
  7335. />
  7336. <div style="margin: 5px 0">个人评价</div>
  7337. </div>
  7338. <div class="check" @click="addTools2(40)">
  7339. <img
  7340. src="../../assets/icon/checkNo.png"
  7341. alt
  7342. v-if="checktoolArray.indexOf(40) == -1"
  7343. />
  7344. <div class="checkDiv" v-else>
  7345. <img src="../../assets/icon/checkedIs.png" alt /><span
  7346. >已选择</span
  7347. >
  7348. </div>
  7349. </div>
  7350. </div>
  7351. </div>
  7352. <div class="toolSort" v-if="toolType == 4">
  7353. <div class="tool">
  7354. <div class="whiteBIcon" @click="addTools2(26)">
  7355. <img
  7356. src="../../assets/icon/thirdToolList/courseDesign.png"
  7357. alt
  7358. />
  7359. <div style="margin: 5px 0">课程设计</div>
  7360. </div>
  7361. <div class="check" @click="addTools2(26)">
  7362. <img
  7363. src="../../assets/icon/checkNo.png"
  7364. alt
  7365. v-if="checktoolArray.indexOf(26) == -1"
  7366. />
  7367. <div class="checkDiv" v-else>
  7368. <img src="../../assets/icon/checkedIs.png" alt /><span
  7369. >已选择</span
  7370. >
  7371. </div>
  7372. </div>
  7373. </div>
  7374. <div class="tool">
  7375. <div class="whiteBIcon" @click="addTools2(25)">
  7376. <img
  7377. src="../../assets/icon/thirdToolList/evalua.png"
  7378. alt
  7379. />
  7380. <div style="margin: 5px 0">目标管理</div>
  7381. </div>
  7382. <div class="check" @click="addTools2(25)">
  7383. <img
  7384. src="../../assets/icon/checkNo.png"
  7385. alt
  7386. v-if="checktoolArray.indexOf(25) == -1"
  7387. />
  7388. <div class="checkDiv" v-else>
  7389. <img src="../../assets/icon/checkedIs.png" alt /><span
  7390. >已选择</span
  7391. >
  7392. </div>
  7393. </div>
  7394. </div>
  7395. </div>
  7396. </div>
  7397. </div>
  7398. </div>
  7399. </div> -->
  7400. <div
  7401. class="vedioBox"
  7402. style="margin-top: 10px; border-radius: 20px"
  7403. v-if="
  7404. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7405. .eList &&
  7406. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7407. .eList.length &&
  7408. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7409. .eList.length > 0 &&
  7410. tType != 2
  7411. "
  7412. >
  7413. <div
  7414. class="queTop"
  7415. style="
  7416. font-size: 20px;
  7417. padding: 15px 0 15px 37px;
  7418. font-weight: bold;
  7419. "
  7420. >
  7421. <!-- <div class="question" style="width: 30px">
  7422. <img src="../../assets/icon/toolIcon.png" alt />
  7423. </div>
  7424. <div class="queTitle">
  7425. <div>工具</div>
  7426. </div>-->
  7427. 评一评
  7428. </div>
  7429. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7430. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7431. <el-table
  7432. :data="
  7433. chapInfoList[courseType].chapterInfo[0].taskJson[
  7434. taskCount
  7435. ].eList
  7436. "
  7437. :header-cell-style="{ background: '#F0F4FA' }"
  7438. :row-class-name="tableRowClassName"
  7439. border
  7440. stripe
  7441. style="width: 100%"
  7442. >
  7443. <el-table-column
  7444. label="评价名称"
  7445. align="center"
  7446. >
  7447. <template slot-scope="scope"
  7448. ><div>{{ scope.row.value }}</div></template
  7449. >
  7450. </el-table-column>
  7451. <el-table-column
  7452. label="评价描述"
  7453. align="center"
  7454. >
  7455. <template slot-scope="scope"
  7456. ><div>
  7457. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7458. </div></template
  7459. >
  7460. </el-table-column>
  7461. <el-table-column label="目标" align="center">
  7462. <template slot-scope="scope"
  7463. ><div>
  7464. {{
  7465. scope.row.target
  7466. ? scope.row.target[scope.row.target.length - 1]
  7467. : "-"
  7468. }}
  7469. </div></template
  7470. ></el-table-column
  7471. >
  7472. </el-table>
  7473. <!-- <div
  7474. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7475. .chapterInfo[0].taskJson[taskCount].eList"
  7476. :key="eIndex"
  7477. class="elist_input_box"
  7478. >
  7479. <div style="width: 95%">
  7480. <div
  7481. style="
  7482. display: flex;
  7483. flex-direction: row;
  7484. flex-wrap: nowrap;
  7485. align-items: center;
  7486. "
  7487. >
  7488. <div style="max-width: calc(100% - 285px)">
  7489. <span>{{ eItem.value }}</span>
  7490. </div>
  7491. <div
  7492. style="
  7493. padding-left: 25px;
  7494. display: flex;
  7495. flex-direction: row;
  7496. align-items: center;
  7497. "
  7498. >
  7499. <el-rate
  7500. v-model="eItem.score"
  7501. :colors="colors"
  7502. disabled
  7503. ></el-rate>
  7504. </div>
  7505. </div>
  7506. <div class="elist_inptu_text" style="padding-left: 10px">
  7507. <span v-if="eItem.detail != ''">{{
  7508. eItem.detail
  7509. }}</span>
  7510. <span v-else style="color: #b2b1b3; font-size: 14px"
  7511. >暂无描述...</span
  7512. >
  7513. </div>
  7514. </div>
  7515. </div> -->
  7516. </div>
  7517. <div
  7518. v-if="evalua"
  7519. style="
  7520. border: 1px solid #e5e5e5;
  7521. max-width: 650px;
  7522. width: 100%;
  7523. margin-top: 20px;
  7524. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7525. "
  7526. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7527. >
  7528. <div class="e_add_top">
  7529. <div class="e_add_title" style="width: 100%">
  7530. <!-- <span>目标管理名称</span> -->
  7531. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7532. <img
  7533. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7534. src="../../assets/line.png"
  7535. class="cru_line"
  7536. style="
  7537. width: 125px;
  7538. height: 20px;
  7539. bottom: -10px;
  7540. left: 5px;
  7541. "
  7542. />
  7543. <!-- <el-input
  7544. v-model="eTitle"
  7545. placeholder="请输入名称"
  7546. @change="setMindData"
  7547. ></el-input>-->
  7548. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  7549. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  7550. </div>
  7551. </div>
  7552. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7553. <div class="e_add_list_pbox">
  7554. <div class="e_add_list_pbox_title">
  7555. <!-- <span class="type_title">切换模式</span> -->
  7556. <div class="type_content">
  7557. <span
  7558. :class="{ active: typeMode == 1 }"
  7559. @click="typeMode = 1"
  7560. >目标树</span
  7561. >
  7562. <span
  7563. :class="{ active: typeMode == 2 }"
  7564. @click="typeMode = 2"
  7565. >目标罗盘</span
  7566. >
  7567. <!-- <span
  7568. :class="{ active: typeMode == 3 }"
  7569. @click="typeMode = 3"
  7570. >目标看板</span
  7571. > -->
  7572. </div>
  7573. </div>
  7574. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7575. <Mind
  7576. :showBar="false"
  7577. :mindData="data"
  7578. style="width: 100%"
  7579. v-show="typeMode == 1"
  7580. ></Mind>
  7581. <Sunburst
  7582. :Josn="eJson"
  7583. :num="eJSONNum"
  7584. style="width: 100%"
  7585. v-if="typeMode == 2"
  7586. ></Sunburst>
  7587. <SeeBoard
  7588. :Josn="eJson"
  7589. :num="eJSONNum"
  7590. :ename="eTitle"
  7591. style="width: 100%"
  7592. v-if="typeMode == 3"
  7593. >
  7594. </SeeBoard>
  7595. </div>
  7596. </div>
  7597. </div>
  7598. </div>
  7599. </div>
  7600. </div>
  7601. <!-- <div
  7602. class="project_box"
  7603. style="margin-top: 15px; padding-bottom: 30px"
  7604. >
  7605. <div
  7606. style="
  7607. display: flex;
  7608. flex-wrap: nowrap;
  7609. flex-direction: column;
  7610. position: relative;
  7611. "
  7612. >
  7613. <div class="queTop">
  7614. <div class="question">
  7615. <img src="../../assets/icon/homeWork.png" alt="" />
  7616. </div>
  7617. <div class="queTitle">
  7618. <div>作业提交<span>(提交图文视频等)</span></div>
  7619. <div>:任务:{{ task.task }}</div>
  7620. </div>
  7621. </div>
  7622. <div class="ediBottom">
  7623. <div
  7624. class="addEditor"
  7625. style="margin-top: 23px"
  7626. @click="openAddWork"
  7627. v-if="!isNoHomeWork"
  7628. >
  7629. 选择文件
  7630. </div>
  7631. <div
  7632. class="addEditor"
  7633. style="margin-top: 23px"
  7634. @click="openAddWork"
  7635. v-else
  7636. >
  7637. 已提交
  7638. </div>
  7639. </div>
  7640. </div>
  7641. </div>-->
  7642. </div>
  7643. </div>
  7644. <el-dialog
  7645. title="作业提交"
  7646. :visible.sync="dialogVisible"
  7647. :append-to-body="true"
  7648. width="500px"
  7649. :before-close="handleClose"
  7650. class="dialog_change"
  7651. >
  7652. <div class="marginT">
  7653. <div>上传文件</div>
  7654. <div
  7655. class="chapter_add"
  7656. @click="addImg($event)"
  7657. v-if="studyJuri[0].cover.length == 0"
  7658. >
  7659. <div class="up_photo">
  7660. <img src="../../assets/icon/uploadImg.png" alt />
  7661. </div>
  7662. <!-- <input
  7663. type="file"
  7664. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7665. style="display: none"
  7666. @change="beforeUpload1($event, 1)"
  7667. /> -->
  7668. <input
  7669. type="file"
  7670. accept="*"
  7671. style="display: none"
  7672. @change="beforeUpload1($event, 1)"
  7673. />
  7674. <!-- <input
  7675. type="file"
  7676. accept="image/*"
  7677. capture="camera"
  7678. style="display: none"
  7679. @change="beforeUpload1($event, 1)"
  7680. /> -->
  7681. </div>
  7682. <div
  7683. class="chapter_add"
  7684. style="
  7685. display: flex;
  7686. width: 100%;
  7687. flex-direction: row;
  7688. flex-wrap: wrap;
  7689. justify-content: flex-start;
  7690. padding: 15px 0;
  7691. "
  7692. v-if="studyJuri[0].cover.length > 0"
  7693. >
  7694. <div class="upCover">
  7695. <img
  7696. :src="studyJuri[0].cover[0].url"
  7697. alt
  7698. v-if="fileType == 0"
  7699. />
  7700. <img :src="word" alt v-else-if="fileType == 1" />
  7701. <img :src="video" alt v-else-if="fileType == 2" />
  7702. <img :src="word2" alt v-else-if="fileType == 3" />
  7703. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7704. <div class="deleteWord" @click="clean(1)">
  7705. <img src="../../assets/icon/deleteWorks.png" alt />
  7706. </div>
  7707. </div>
  7708. </div>
  7709. </div>
  7710. <div
  7711. class="upload_send"
  7712. @click="addCourseWorks(taskCount)"
  7713. v-if="!proVisible"
  7714. >
  7715. 提交
  7716. </div>
  7717. </el-dialog>
  7718. </div>
  7719. </div>
  7720. <div
  7721. class="pButton"
  7722. @click="(pzDialog = true), selectPz()"
  7723. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7724. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7725. >
  7726. <!-- 批 -->
  7727. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7728. </div>
  7729. <div v-if="pzDialog == true" class="newDialogCss">
  7730. <div class="pzTop2">
  7731. <!-- <div>评论</div>
  7732. <div @click="pzDialog = false">
  7733. <img src="../../assets/close1.png" alt="" />
  7734. </div> -->
  7735. <div class="checkbox">
  7736. <div class="check" style="font-size: 25px; position: unset">
  7737. 评论
  7738. </div>
  7739. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7740. <el-option label="时间降序" :value="1"></el-option>
  7741. <el-option label="时间升序" :value="2"></el-option>
  7742. <el-option label="我的评课" :value="3"></el-option>
  7743. </el-select>
  7744. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7745. </div>
  7746. </div>
  7747. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7748. <div class="pzListBox" v-if="pzList && pzList.length">
  7749. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7750. <div class="pzNavTop">
  7751. <div>评</div>
  7752. <div>
  7753. {{
  7754. pz.username && pz.username.length > 5
  7755. ? pz.username.substring(0, 5) + "..."
  7756. : pz.username
  7757. }}的评论
  7758. </div>
  7759. <div
  7760. class="pzDelete"
  7761. v-if="pz.userid == userid"
  7762. @click="deletePz(pz.id)"
  7763. >
  7764. 删除
  7765. </div>
  7766. </div>
  7767. <div
  7768. @click="checkImg(getImgList(pz.content))"
  7769. class="pzContent cont"
  7770. v-html="pz.content"
  7771. v-if="pz.type == '1'"
  7772. ></div>
  7773. <div class="pzContent" v-if="pz.type == '2'">
  7774. <audio :src="pz.content" controls="controls" ref="audio">
  7775. Your browser does not support the audio element.
  7776. </audio>
  7777. </div>
  7778. <div class="pzContent" v-if="pz.type == '3'">
  7779. <img
  7780. :src="pz.content"
  7781. style="width: 90%; margin: 0 auto; display: block"
  7782. @click="previewImg(pz.content)"
  7783. />
  7784. </div>
  7785. <div class="timeAndReply">
  7786. <div class="time">
  7787. {{ pz.time }}
  7788. </div>
  7789. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7790. </div>
  7791. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7792. <div
  7793. v-for="(h, hIndex) in pz.hfList"
  7794. :key="hIndex"
  7795. class="hfItem"
  7796. >
  7797. <div class="whoReplyWho">
  7798. <div class="hfName">{{ h.username }}</div>
  7799. <div class="hfImg">
  7800. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7801. </div>
  7802. <div class="hfName">{{ pz.username }}</div>
  7803. </div>
  7804. <div class="hfContent" v-html="h.content"></div>
  7805. <div class="hfBottom">
  7806. <div class="hfTime">{{ h.time }}</div>
  7807. <div
  7808. class="deleteHfItem"
  7809. @click="deleteReply(h.id)"
  7810. v-if="userid == h.userid"
  7811. >
  7812. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7813. </div>
  7814. </div>
  7815. </div>
  7816. </div>
  7817. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7818. <div class="replyInput">
  7819. <el-input v-model="reply[pzIndex]"></el-input>
  7820. </div>
  7821. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7822. </div> -->
  7823. </div>
  7824. </div>
  7825. <div class="noPz" v-else>
  7826. <img src="../../assets/icon/noPz.png" alt="" />
  7827. </div>
  7828. <div class="addPzButton">
  7829. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7830. 添加评论
  7831. </div>
  7832. <!-- <div class="img1">
  7833. <div @click="(addPzDialog = true), (pzType = 2)">
  7834. <img src="../../assets/audio.png" /><span>音频</span>
  7835. </div>
  7836. </div> -->
  7837. </div>
  7838. </div>
  7839. </div>
  7840. <div
  7841. v-if="toolDialogVisible == true"
  7842. class="toolMask"
  7843. @click="toolDialogVisible = false"
  7844. ></div>
  7845. <div v-if="toolDialogVisible == true" class="addToolCss">
  7846. <div class="toolTop">
  7847. <div style="font-weight: bold">新增工具</div>
  7848. <div @click="toolDialogVisible = false">
  7849. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7850. </div>
  7851. </div>
  7852. <div class="tool_box">
  7853. <div class="tool_type_box">
  7854. <div class="chooseWho">
  7855. <div
  7856. :class="toolType == 0 ? 'isChooseActive' : ''"
  7857. @click="(toolType = 0), $forceUpdate()"
  7858. >
  7859. 互动类
  7860. </div>
  7861. <div
  7862. :class="toolType == 1 ? 'isChooseActive' : ''"
  7863. @click="(toolType = 1), $forceUpdate()"
  7864. >
  7865. 思维类
  7866. </div>
  7867. <div
  7868. :class="toolType == 2 ? 'isChooseActive' : ''"
  7869. @click="(toolType = 2), $forceUpdate()"
  7870. >
  7871. 测评类
  7872. </div>
  7873. <div
  7874. :class="toolType == 3 ? 'isChooseActive' : ''"
  7875. @click="(toolType = 3), $forceUpdate()"
  7876. >
  7877. 编程类
  7878. </div>
  7879. <div
  7880. :class="toolType == 5 ? 'isChooseActive' : ''"
  7881. @click="(toolType = 5), $forceUpdate()"
  7882. >
  7883. 学科类
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div>
  7888. <div class="toolSort" v-if="toolType == 0">
  7889. <div
  7890. class="tool"
  7891. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7892. @click="addTools2(10)"
  7893. >
  7894. <div class="whiteBIcon">
  7895. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7896. <div style="margin: 5px 0">倒计时</div>
  7897. </div>
  7898. <div class="check">
  7899. <div
  7900. v-if="checktoolArray.indexOf(10) == -1"
  7901. class="noChoose"
  7902. ></div>
  7903. <div v-else class="isChoose"></div>
  7904. </div>
  7905. </div>
  7906. <div
  7907. class="tool"
  7908. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7909. @click="addTools2(65)"
  7910. >
  7911. <div class="whiteBIcon">
  7912. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7913. <div style="margin: 5px 0">挑人</div>
  7914. </div>
  7915. <div class="check">
  7916. <div
  7917. v-if="checktoolArray.indexOf(65) == -1"
  7918. class="noChoose"
  7919. ></div>
  7920. <div v-else class="isChoose"></div>
  7921. </div>
  7922. </div>
  7923. </div>
  7924. <div class="toolSort" v-if="toolType == 1">
  7925. <div
  7926. class="tool"
  7927. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7928. @click="addTools2(7)"
  7929. >
  7930. <div class="whiteBIcon">
  7931. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  7932. <div style="margin: 5px 0">思维网格</div>
  7933. </div>
  7934. <div class="check">
  7935. <div
  7936. v-if="checktoolArray.indexOf(7) == -1"
  7937. class="noChoose"
  7938. ></div>
  7939. <div v-else class="isChoose"></div>
  7940. </div>
  7941. </div>
  7942. <div
  7943. class="tool"
  7944. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7945. @click="addTools2(1)"
  7946. >
  7947. <div class="whiteBIcon">
  7948. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  7949. <div style="margin: 5px 0">电子白板</div>
  7950. </div>
  7951. <div class="check">
  7952. <div
  7953. v-if="checktoolArray.indexOf(1) == -1"
  7954. class="noChoose"
  7955. ></div>
  7956. <div v-else class="isChoose"></div>
  7957. </div>
  7958. </div>
  7959. <div
  7960. class="tool"
  7961. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7962. @click="addTools2(52)"
  7963. >
  7964. <div class="whiteBIcon">
  7965. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7966. <div style="margin: 5px 0">文档</div>
  7967. </div>
  7968. <div class="check">
  7969. <div
  7970. v-if="checktoolArray.indexOf(52) == -1"
  7971. class="noChoose"
  7972. ></div>
  7973. <div v-else class="isChoose"></div>
  7974. </div>
  7975. </div>
  7976. <div
  7977. class="tool"
  7978. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7979. @click="addTools2(3)"
  7980. >
  7981. <div class="whiteBIcon">
  7982. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  7983. <div style="margin: 5px 0">思维导图</div>
  7984. </div>
  7985. <div class="check">
  7986. <div
  7987. v-if="checktoolArray.indexOf(3) == -1"
  7988. class="noChoose"
  7989. ></div>
  7990. <div v-else class="isChoose"></div>
  7991. </div>
  7992. </div>
  7993. <div
  7994. class="tool"
  7995. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7996. @click="addTools2(48)"
  7997. >
  7998. <div class="whiteBIcon">
  7999. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8000. <div style="margin: 5px 0">表格</div>
  8001. </div>
  8002. <div class="check">
  8003. <div
  8004. v-if="checktoolArray.indexOf(48) == -1"
  8005. class="noChoose"
  8006. ></div>
  8007. <div v-else class="isChoose"></div>
  8008. </div>
  8009. </div>
  8010. </div>
  8011. <div class="toolSort" v-if="toolType == 6">
  8012. <div v-show="tooC == 49">
  8013. <img
  8014. @click="addTools(tooC, toolIndex, taskCount)"
  8015. src="../../assets/icon/fourthToolList/group.png"
  8016. alt
  8017. />
  8018. <div style="margin: 5px 0">学生分组</div>
  8019. </div>
  8020. </div>
  8021. <div class="toolSort" v-if="toolType == 2">
  8022. <div
  8023. class="tool"
  8024. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8025. @click="addTools2(16)"
  8026. >
  8027. <div class="whiteBIcon">
  8028. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8029. <div style="margin: 5px 0">作业提交</div>
  8030. </div>
  8031. <div class="check">
  8032. <div
  8033. v-if="checktoolArray.indexOf(16) == -1"
  8034. class="noChoose"
  8035. ></div>
  8036. <div v-else class="isChoose"></div>
  8037. </div>
  8038. </div>
  8039. <div
  8040. class="tool"
  8041. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8042. @click="addTools2(50)"
  8043. >
  8044. <div class="whiteBIcon">
  8045. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8046. <div style="margin: 5px 0">批量上传</div>
  8047. </div>
  8048. <div class="check">
  8049. <div
  8050. v-if="checktoolArray.indexOf(50) == -1"
  8051. class="noChoose"
  8052. ></div>
  8053. <div v-else class="isChoose"></div>
  8054. </div>
  8055. </div>
  8056. </div>
  8057. <div class="toolSort" v-if="toolType == 3">
  8058. <div
  8059. class="tool"
  8060. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8061. @click="addTools2(18)"
  8062. >
  8063. <div class="whiteBIcon">
  8064. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  8065. <div style="margin: 5px 0">训练平台</div>
  8066. </div>
  8067. <div class="check">
  8068. <div
  8069. v-if="checktoolArray.indexOf(18) == -1"
  8070. class="noChoose"
  8071. ></div>
  8072. <div v-else class="isChoose"></div>
  8073. </div>
  8074. </div>
  8075. <div
  8076. class="tool"
  8077. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8078. @click="addTools2(21)"
  8079. >
  8080. <div class="whiteBIcon">
  8081. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8082. <div style="margin: 5px 0">AIoT Blockly</div>
  8083. </div>
  8084. <div class="check">
  8085. <div
  8086. v-if="checktoolArray.indexOf(21) == -1"
  8087. class="noChoose"
  8088. ></div>
  8089. <div v-else class="isChoose"></div>
  8090. </div>
  8091. </div>
  8092. <div
  8093. class="tool"
  8094. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8095. @click="addTools2(23)"
  8096. >
  8097. <div class="whiteBIcon">
  8098. <img
  8099. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8100. alt
  8101. />
  8102. <div style="margin: 5px 0">AI Python</div>
  8103. </div>
  8104. <div class="check">
  8105. <div
  8106. v-if="checktoolArray.indexOf(23) == -1"
  8107. class="noChoose"
  8108. ></div>
  8109. <div v-else class="isChoose"></div>
  8110. </div>
  8111. </div>
  8112. <div
  8113. class="tool"
  8114. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8115. @click="addTools2(24)"
  8116. >
  8117. <div class="whiteBIcon">
  8118. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8119. <div style="margin: 5px 0">AI Blockly</div>
  8120. </div>
  8121. <div class="check">
  8122. <div
  8123. v-if="checktoolArray.indexOf(24) == -1"
  8124. class="noChoose"
  8125. ></div>
  8126. <div v-else class="isChoose"></div>
  8127. </div>
  8128. </div>
  8129. <div
  8130. class="tool"
  8131. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8132. @click="addTools2(32)"
  8133. >
  8134. <div class="whiteBIcon">
  8135. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8136. <div style="margin: 5px 0">源码编辑</div>
  8137. </div>
  8138. <div class="check">
  8139. <div
  8140. v-if="checktoolArray.indexOf(32) == -1"
  8141. class="noChoose"
  8142. ></div>
  8143. <div v-else class="isChoose"></div>
  8144. </div>
  8145. </div>
  8146. <div
  8147. class="tool"
  8148. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8149. @click="addTools2(57)"
  8150. >
  8151. <div class="whiteBIcon">
  8152. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8153. <div style="margin: 5px 0">CocoPi</div>
  8154. </div>
  8155. <div class="check">
  8156. <div
  8157. v-if="checktoolArray.indexOf(57) == -1"
  8158. class="noChoose"
  8159. ></div>
  8160. <div v-else class="isChoose"></div>
  8161. </div>
  8162. </div>
  8163. <div
  8164. class="tool"
  8165. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8166. @click="addTools2(63)"
  8167. >
  8168. <div class="whiteBIcon">
  8169. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8170. <div style="margin: 5px 0">海龟编程</div>
  8171. </div>
  8172. <div class="check">
  8173. <div
  8174. v-if="checktoolArray.indexOf(63) == -1"
  8175. class="noChoose"
  8176. ></div>
  8177. <div v-else class="isChoose"></div>
  8178. </div>
  8179. </div>
  8180. </div>
  8181. <div class="toolSort" v-if="toolType == 7">
  8182. <div
  8183. class="tool"
  8184. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8185. @click="addTools2(40)"
  8186. >
  8187. <div class="whiteBIcon">
  8188. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8189. <div style="margin: 5px 0">个人评价</div>
  8190. </div>
  8191. <div class="check">
  8192. <div
  8193. v-if="checktoolArray.indexOf(40) == -1"
  8194. class="noChoose"
  8195. ></div>
  8196. <div v-else class="isChoose"></div>
  8197. </div>
  8198. </div>
  8199. </div>
  8200. <div class="toolSort" v-if="toolType == 5">
  8201. <div
  8202. class="tool"
  8203. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8204. @click="addTools2(28)"
  8205. >
  8206. <div class="whiteBIcon">
  8207. <img src="../../assets/icon/secondToolList/translation.png" alt />
  8208. <div style="margin: 5px 0">翻译</div>
  8209. </div>
  8210. <div class="check">
  8211. <div
  8212. v-if="checktoolArray.indexOf(28) == -1"
  8213. class="noChoose"
  8214. ></div>
  8215. <div v-else class="isChoose"></div>
  8216. </div>
  8217. </div>
  8218. <div
  8219. class="tool"
  8220. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8221. @click="addTools2(31)"
  8222. >
  8223. <div class="whiteBIcon">
  8224. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  8225. <div style="margin: 5px 0">数字画板</div>
  8226. </div>
  8227. <div class="check">
  8228. <div
  8229. v-if="checktoolArray.indexOf(31) == -1"
  8230. class="noChoose"
  8231. ></div>
  8232. <div v-else class="isChoose"></div>
  8233. </div>
  8234. </div>
  8235. <div
  8236. class="tool"
  8237. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8238. @click="addTools2(39)"
  8239. >
  8240. <div class="whiteBIcon">
  8241. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8242. <div style="margin: 5px 0">GeoGebra</div>
  8243. </div>
  8244. <div class="check">
  8245. <div
  8246. v-if="checktoolArray.indexOf(39) == -1"
  8247. class="noChoose"
  8248. ></div>
  8249. <div v-else class="isChoose"></div>
  8250. </div>
  8251. </div>
  8252. <div
  8253. class="tool"
  8254. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8255. @click="addTools2(66)"
  8256. >
  8257. <div class="whiteBIcon">
  8258. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  8259. <div style="margin: 5px 0">公式编辑</div>
  8260. </div>
  8261. <div class="check">
  8262. <div
  8263. v-if="checktoolArray.indexOf(66) == -1"
  8264. class="noChoose"
  8265. ></div>
  8266. <div v-else class="isChoose"></div>
  8267. </div>
  8268. </div>
  8269. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8270. <div class="whiteBIcon" @click="addTools2(67)">
  8271. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8272. <div style="margin: 5px 0">分子结构</div>
  8273. </div>
  8274. <div class="check" @click="addTools2(67)">
  8275. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8276. <div v-else class="isChoose"></div>
  8277. </div>
  8278. </div> -->
  8279. <div
  8280. class="tool"
  8281. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8282. @click="addTools2(68)"
  8283. >
  8284. <div class="whiteBIcon">
  8285. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8286. <div style="margin: 5px 0">时间轴</div>
  8287. </div>
  8288. <div class="check">
  8289. <div
  8290. v-if="checktoolArray.indexOf(68) == -1"
  8291. class="noChoose"
  8292. ></div>
  8293. <div v-else class="isChoose"></div>
  8294. </div>
  8295. </div>
  8296. <!-- <div
  8297. class="tool"
  8298. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8299. @click="addTools2(69)"
  8300. >
  8301. <div class="whiteBIcon">
  8302. <img src="../../assets/icon/secondToolList/english.png" alt />
  8303. <div style="margin: 5px 0">英语写作</div>
  8304. </div>
  8305. <div class="check">
  8306. <div
  8307. v-if="checktoolArray.indexOf(69) == -1"
  8308. class="noChoose"
  8309. ></div>
  8310. <div v-else class="isChoose"></div>
  8311. </div>
  8312. </div> -->
  8313. </div>
  8314. <div class="toolSort" v-if="toolType == 4">
  8315. <div
  8316. class="tool"
  8317. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8318. @click="addTools2(26)"
  8319. >
  8320. <div class="whiteBIcon">
  8321. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  8322. <div style="margin: 5px 0">课程设计</div>
  8323. </div>
  8324. <div class="check">
  8325. <div
  8326. v-if="checktoolArray.indexOf(26) == -1"
  8327. class="noChoose"
  8328. ></div>
  8329. <div v-else class="isChoose"></div>
  8330. </div>
  8331. </div>
  8332. <div
  8333. class="tool"
  8334. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8335. @click="addTools2(25)"
  8336. >
  8337. <div class="whiteBIcon">
  8338. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8339. <div style="margin: 5px 0">目标管理</div>
  8340. </div>
  8341. <div class="check">
  8342. <div
  8343. v-if="checktoolArray.indexOf(25) == -1"
  8344. class="noChoose"
  8345. ></div>
  8346. <div v-else class="isChoose"></div>
  8347. </div>
  8348. </div>
  8349. </div>
  8350. </div>
  8351. </div>
  8352. <span
  8353. slot="footer"
  8354. class="dialog-footer"
  8355. style="display: block; text-align: center; padding: 0 0 10px 0"
  8356. >
  8357. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8358. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8359. </span>
  8360. </div>
  8361. <div
  8362. v-if="replyDialogVisible == true"
  8363. class="addDialogCss"
  8364. v-el-drag-dialog
  8365. >
  8366. <div class="pzTop">
  8367. <div class="teacherPz">
  8368. <div class="teacherPzImg">
  8369. <img src="../../assets/icon/teacherPz.png" alt="" />
  8370. </div>
  8371. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8372. </div>
  8373. <div @click="replyDialogVisible = false">
  8374. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8375. </div>
  8376. </div>
  8377. <div class="addPzBox">
  8378. <!-- <div class="addPzCheck">
  8379. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8380. >文本</span
  8381. >
  8382. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8383. >音频</span
  8384. >
  8385. </div> -->
  8386. <div style="height: calc(100% - 50px)">
  8387. <editor-bar
  8388. class="binfo_input pzConText"
  8389. style="width: 100% !important; margin: 0 auto"
  8390. placeholder="请输入回复描述"
  8391. v-model="reply"
  8392. @change="change"
  8393. ></editor-bar>
  8394. </div>
  8395. <div class="addTextCss" @click="addHf">确定</div>
  8396. </div>
  8397. </div>
  8398. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8399. <div class="pzTop">
  8400. <div class="teacherPz">
  8401. <div class="teacherPzImg">
  8402. <img src="../../assets/icon/teacherPz.png" alt="" />
  8403. </div>
  8404. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8405. </div>
  8406. <div @click="addPzDialog = false">
  8407. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8408. </div>
  8409. </div>
  8410. <div class="addPzBox">
  8411. <div class="addPzCheck">
  8412. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8413. >文本</span
  8414. >
  8415. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8416. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8417. >音频</span
  8418. >
  8419. </div>
  8420. <div style="height: calc(100% - 95px)">
  8421. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8422. v-if="pzType == 1"></textarea> -->
  8423. <editor-bar
  8424. class="binfo_input pzConText"
  8425. style="width: 100% !important"
  8426. placeholder="请输入任务描述"
  8427. v-model="pzConText"
  8428. @change="change"
  8429. v-if="pzType == 1"
  8430. ></editor-bar>
  8431. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8432. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8433. <div @click="addImg($event)">
  8434. <el-button type="primary">上传图片</el-button>
  8435. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8436. @change="beforeUpload1($event, 4)" />
  8437. </div>
  8438. </div> -->
  8439. </div>
  8440. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8441. 确定
  8442. </div>
  8443. </div>
  8444. </div>
  8445. <div v-if="proVisible" class="mask">
  8446. <div class="progressBox">
  8447. <!-- <div id="closePro" class="closeCss">
  8448. <img src="../../assets/icon/close.png" alt />
  8449. </div> -->
  8450. <div class="lbox">
  8451. <img src="../../assets/loading.gif" />上传中,请稍后
  8452. </div>
  8453. <div style="margin-bottom: 10px">
  8454. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8455. </div>
  8456. <el-progress
  8457. :text-inside="true"
  8458. :stroke-width="20"
  8459. :percentage="progress"
  8460. style="width: 80%"
  8461. ></el-progress>
  8462. </div>
  8463. </div>
  8464. <div v-if="proVisible2" class="mask">
  8465. <div class="progressBox">
  8466. <div class="lbox">
  8467. <img src="../../assets/loading.gif" />上传中,请稍后
  8468. </div>
  8469. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8470. </div>
  8471. </div>
  8472. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8473. <img width="100%" :src="dialogImageUrl" alt />
  8474. </el-dialog>
  8475. <el-dialog
  8476. :title="noteName != '' ? noteName : '查看问卷'"
  8477. :visible.sync="dialogVisible5"
  8478. :append-to-body="true"
  8479. width="1000px"
  8480. :before-close="handleClose"
  8481. class="dialog_diy dialog_diy3"
  8482. >
  8483. <div>
  8484. <div
  8485. class="a_add_title"
  8486. style="
  8487. display: flex;
  8488. flex-direction: row;
  8489. align-items: center;
  8490. justify-content: center;
  8491. "
  8492. >
  8493. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8494. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8495. </div>
  8496. <div class="a_addBox">
  8497. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8498. 题目内容
  8499. </div>
  8500. <div
  8501. class="a_add_box"
  8502. v-for="(item1, index1) in askJson.askCount"
  8503. :key="index1"
  8504. >
  8505. <div class="a_add_head">
  8506. <div style="display: flex">
  8507. <span class="askIndex"> {{ index1 + 1 }}</span>
  8508. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8509. </div>
  8510. <img
  8511. v-if="askJson.askJson[index1].img"
  8512. :src="askJson.askJson[index1].img"
  8513. style="height: 300px; margin-top: 10px; max-width: 100%"
  8514. />
  8515. </div>
  8516. <div class="a_add_body">
  8517. <div class="a_add_input">
  8518. <el-radio-group
  8519. v-model="radio[index1]"
  8520. v-if="
  8521. askJson.askJson[index1].type == '1' ||
  8522. !askJson.askJson[index1].type
  8523. "
  8524. >
  8525. <el-radio
  8526. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8527. .checkList"
  8528. :key="checkIndex"
  8529. :label="checkIndex"
  8530. :disabled="isAnswer"
  8531. class="redioStyle"
  8532. ><span v-html="item2"></span
  8533. ></el-radio>
  8534. </el-radio-group>
  8535. <el-checkbox-group
  8536. v-model="radio[index1]"
  8537. v-if="askJson.askJson[index1].type == '2'"
  8538. >
  8539. <el-checkbox
  8540. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8541. .checkList"
  8542. :key="checkIndex1"
  8543. :label="checkIndex1"
  8544. :disabled="isAnswer"
  8545. class="redioStyle"
  8546. ><span v-html="item2"></span>
  8547. </el-checkbox>
  8548. </el-checkbox-group>
  8549. </div>
  8550. </div>
  8551. </div>
  8552. </div>
  8553. </div>
  8554. <span slot="footer" class="dialog-footer">
  8555. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8556. >取 消</el-button
  8557. >
  8558. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8559. >确 定</el-button
  8560. >
  8561. </span>
  8562. </el-dialog>
  8563. <el-dialog
  8564. :title="noteName != '' ? noteName : '查看问卷'"
  8565. :visible.sync="dialogVisible5Teacher"
  8566. :append-to-body="true"
  8567. width="1000px"
  8568. :before-close="handleClose"
  8569. class="dialog_diy dialog_diy3"
  8570. >
  8571. <div>
  8572. <div class="w_name">
  8573. 学生姓名:<span>{{ sStudent.student }}</span>
  8574. </div>
  8575. <div
  8576. class="a_add_title"
  8577. style="
  8578. display: flex;
  8579. flex-direction: row;
  8580. align-items: center;
  8581. justify-content: center;
  8582. "
  8583. >
  8584. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8585. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8586. </div>
  8587. <div class="a_addBox">
  8588. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8589. 题目内容
  8590. </div>
  8591. <div
  8592. class="a_add_box"
  8593. v-for="(item1, index1) in askJson.askCount"
  8594. :key="index1"
  8595. >
  8596. <div class="a_add_head">
  8597. <div style="display: flex">
  8598. <span class="askIndex">{{ index1 + 1 }}</span>
  8599. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8600. </div>
  8601. <img
  8602. v-if="askJson.askJson[index1].img"
  8603. :src="askJson.askJson[index1].img"
  8604. style="height: 300px; margin-top: 10px; max-width: 100%"
  8605. />
  8606. </div>
  8607. <div class="a_add_body">
  8608. <div class="a_add_input">
  8609. <el-radio-group
  8610. v-model="radio[index1]"
  8611. v-if="
  8612. askJson.askJson[index1].type == '1' ||
  8613. !askJson.askJson[index1].type
  8614. "
  8615. >
  8616. <el-radio
  8617. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8618. .checkList"
  8619. :key="checkIndex"
  8620. :label="checkIndex"
  8621. :disabled="isAnswer"
  8622. class="redioStyle"
  8623. ><span v-html="item2"></span
  8624. ></el-radio>
  8625. </el-radio-group>
  8626. <el-checkbox-group
  8627. v-model="radio[index1]"
  8628. v-if="askJson.askJson[index1].type == '2'"
  8629. >
  8630. <el-checkbox
  8631. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8632. .checkList"
  8633. :key="checkIndex1"
  8634. :label="checkIndex1"
  8635. :disabled="isAnswer"
  8636. class="redioStyle"
  8637. ><span v-html="item2"></span>
  8638. </el-checkbox>
  8639. </el-checkbox-group>
  8640. </div>
  8641. </div>
  8642. </div>
  8643. </div>
  8644. </div>
  8645. <span slot="footer" class="dialog-footer">
  8646. <el-button
  8647. @click="dialogVisible5Teacher = false"
  8648. v-show="noteName == ''"
  8649. >取 消</el-button
  8650. >
  8651. <el-button
  8652. type="primary"
  8653. @click="addStudentAskTeacher"
  8654. v-show="noteName == ''"
  8655. >确 定</el-button
  8656. >
  8657. </span>
  8658. </el-dialog>
  8659. <el-dialog
  8660. :title="noteName != '' ? noteName : '查看选择题'"
  8661. :visible.sync="dialogVisibleChoice"
  8662. :append-to-body="true"
  8663. width="1000px"
  8664. :before-close="handleClose"
  8665. class="dialog_diy dialog_diy3"
  8666. >
  8667. <div>
  8668. <!-- <div class="a_add_title" style="
  8669. display: flex;
  8670. flex-direction: row;
  8671. align-items: center;
  8672. justify-content: center;
  8673. ">
  8674. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8675. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8676. </div> -->
  8677. <div class="a_addBox">
  8678. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8679. 题目内容
  8680. </div>
  8681. <div
  8682. class="a_add_box"
  8683. v-for="(item1, index1) in testJson.testCount"
  8684. :key="index1"
  8685. >
  8686. <div class="a_add_head">
  8687. <div style="display: flex">
  8688. <span class="askIndex">{{ index1 + 1 }}</span>
  8689. <div
  8690. v-if="testJson.testJson[index1].type == '1'"
  8691. style="margin-right: 5px; min-width: 70px"
  8692. >
  8693. (单选题)
  8694. </div>
  8695. <div
  8696. v-if="testJson.testJson[index1].type == '2'"
  8697. style="margin-right: 5px; min-width: 70px"
  8698. >
  8699. (多选题)
  8700. </div>
  8701. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8702. </div>
  8703. <img
  8704. v-if="testJson.testJson[index1].img"
  8705. :src="testJson.testJson[index1].img"
  8706. style="height: 300px; margin-top: 10px; max-width: 100%"
  8707. />
  8708. </div>
  8709. <div
  8710. class="timuImgBox"
  8711. v-if="
  8712. testJson.testJson[index1].timuList &&
  8713. testJson.testJson[index1].timuList.length
  8714. "
  8715. >
  8716. <div
  8717. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8718. :key="tIndex"
  8719. class="timuImg"
  8720. @click.stop="previewImg(timg.src)"
  8721. >
  8722. <img :src="timg.src" alt="" />
  8723. </div>
  8724. </div>
  8725. <div class="a_add_body">
  8726. <div class="a_add_input">
  8727. <el-radio-group
  8728. v-model="radio[index1]"
  8729. v-if="testJson.testJson[index1].type == '1'"
  8730. >
  8731. <div class="radioBox">
  8732. <el-radio
  8733. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8734. .checkList"
  8735. :key="checkIndex"
  8736. :label="checkIndex"
  8737. :disabled="isAnswer"
  8738. class="redioStyle"
  8739. >
  8740. <div
  8741. style="margin-right: 10px"
  8742. v-if="item2 && item2.imgType && item2.imgType == 1"
  8743. >
  8744. <div class="inImg" @click.stop="previewImg(item2.src)">
  8745. <img :src="item2.src" alt="" />
  8746. </div>
  8747. </div>
  8748. <span v-else v-html="item2"></span>
  8749. </el-radio>
  8750. </div>
  8751. </el-radio-group>
  8752. <el-checkbox-group
  8753. v-model="radio[index1]"
  8754. v-if="testJson.testJson[index1].type == '2'"
  8755. >
  8756. <div class="radioBox">
  8757. <el-checkbox
  8758. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8759. .checkList"
  8760. :key="checkIndex"
  8761. :label="checkIndex"
  8762. :disabled="isAnswer"
  8763. class="redioStyle"
  8764. >
  8765. <div
  8766. style="margin-right: 10px"
  8767. v-if="item2 && item2.imgType && item2.imgType == 1"
  8768. >
  8769. <div class="inImg" @click.stop="previewImg(item2.src)">
  8770. <img :src="item2.src" alt="" />
  8771. </div>
  8772. </div>
  8773. <span v-else v-html="item2"></span>
  8774. </el-checkbox>
  8775. </div>
  8776. </el-checkbox-group>
  8777. </div>
  8778. </div>
  8779. </div>
  8780. </div>
  8781. </div>
  8782. <span slot="footer" class="dialog-footer">
  8783. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8784. >取 消</el-button
  8785. >
  8786. <el-button
  8787. type="primary"
  8788. @click="addStudentTest"
  8789. v-show="noteName == ''"
  8790. >确 定</el-button
  8791. >
  8792. </span>
  8793. </el-dialog>
  8794. <el-dialog
  8795. :title="noteName != '' ? noteName : '查看选择题'"
  8796. :visible.sync="dialogVisibleChoiceTeacher"
  8797. :append-to-body="true"
  8798. width="1000px"
  8799. :before-close="handleClose"
  8800. class="dialog_diy dialog_diy3"
  8801. >
  8802. <div>
  8803. <div class="w_name">
  8804. 学生姓名:<span>{{ sStudent.student }}</span>
  8805. </div>
  8806. <div class="a_addBox">
  8807. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8808. 题目内容
  8809. </div>
  8810. <div
  8811. class="a_add_box"
  8812. v-for="(item1, index1) in testJson.testCount"
  8813. :key="index1"
  8814. >
  8815. <div class="a_add_head">
  8816. <div style="display: flex">
  8817. <span class="askIndex">{{ index1 + 1 }}</span>
  8818. <div
  8819. v-if="testJson.testJson[index1].type == '1'"
  8820. style="margin-right: 5px; min-width: 70px"
  8821. >
  8822. (单选题)
  8823. </div>
  8824. <div
  8825. v-if="testJson.testJson[index1].type == '2'"
  8826. style="margin-right: 5px; min-width: 70px"
  8827. >
  8828. (多选题)
  8829. </div>
  8830. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8831. </div>
  8832. <img
  8833. v-if="testJson.testJson[index1].img"
  8834. :src="testJson.testJson[index1].img"
  8835. style="height: 300px; margin-top: 10px; max-width: 100%"
  8836. />
  8837. </div>
  8838. <div
  8839. class="timuImgBox"
  8840. v-if="
  8841. testJson.testJson[index1].timuList &&
  8842. testJson.testJson[index1].timuList.length
  8843. "
  8844. >
  8845. <div
  8846. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8847. :key="tIndex"
  8848. class="timuImg"
  8849. @click.stop="previewImg(timg.src)"
  8850. >
  8851. <img :src="timg.src" alt="" />
  8852. </div>
  8853. </div>
  8854. <div class="a_add_body">
  8855. <div class="a_add_input">
  8856. <el-radio-group
  8857. v-model="radio[index1]"
  8858. v-if="testJson.testJson[index1].type == '1'"
  8859. >
  8860. <div class="radioBox">
  8861. <el-radio
  8862. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8863. .checkList"
  8864. :key="checkIndex"
  8865. :label="checkIndex"
  8866. :disabled="isAnswer"
  8867. class="redioStyle"
  8868. >
  8869. <div
  8870. style="margin-right: 10px"
  8871. v-if="item2 && item2.imgType && item2.imgType == 1"
  8872. >
  8873. <div class="inImg" @click.stop="previewImg(item2.src)">
  8874. <img :src="item2.src" alt="" />
  8875. </div>
  8876. </div>
  8877. <span v-else v-html="item2"></span>
  8878. </el-radio>
  8879. </div>
  8880. </el-radio-group>
  8881. <el-checkbox-group
  8882. v-model="radio[index1]"
  8883. v-if="testJson.testJson[index1].type == '2'"
  8884. >
  8885. <div class="radioBox">
  8886. <el-checkbox
  8887. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8888. .checkList"
  8889. :key="checkIndex"
  8890. :label="checkIndex"
  8891. :disabled="isAnswer"
  8892. class="redioStyle"
  8893. >
  8894. <div
  8895. style="margin-right: 10px"
  8896. v-if="item2 && item2.imgType && item2.imgType == 1"
  8897. >
  8898. <div class="inImg" @click.stop="previewImg(item2.src)">
  8899. <img :src="item2.src" alt="" />
  8900. </div>
  8901. </div>
  8902. <span v-else v-html="item2"></span>
  8903. </el-checkbox>
  8904. </div>
  8905. </el-checkbox-group>
  8906. </div>
  8907. </div>
  8908. </div>
  8909. </div>
  8910. </div>
  8911. <span slot="footer" class="dialog-footer">
  8912. <el-button
  8913. @click="dialogVisibleChoiceTeacher = false"
  8914. v-show="noteName == ''"
  8915. >取 消</el-button
  8916. >
  8917. <el-button
  8918. type="primary"
  8919. @click="addStudentTestTeacher"
  8920. v-show="noteName == ''"
  8921. >确 定</el-button
  8922. >
  8923. </span>
  8924. </el-dialog>
  8925. <el-dialog
  8926. title="查看富文本"
  8927. :visible.sync="dialogVisible1"
  8928. :append-to-body="true"
  8929. width="500px"
  8930. :before-close="handleClose"
  8931. class="dialog_diy textCss"
  8932. >
  8933. <el-form style="font-size: 20px">
  8934. <el-form-item label="文本标题" class="textTitle">
  8935. <div style="font-size: 20px">{{ text.name }}</div>
  8936. </el-form-item>
  8937. <div>富文本内容</div>
  8938. <div
  8939. v-html="text.url"
  8940. style="font-size: 18px; padding: 40px 0 0 0"
  8941. ></div>
  8942. </el-form>
  8943. <span slot="footer" class="dialog-footer">
  8944. <el-button type="primary" @click="dialogVisible1 = false"
  8945. >确定</el-button
  8946. >
  8947. </span>
  8948. </el-dialog>
  8949. <el-dialog
  8950. title="文件预览"
  8951. :visible.sync="dialogVisible3"
  8952. width="50%"
  8953. :before-close="handleClose"
  8954. class="dialog_diy"
  8955. :class="{ fullStyle: full }"
  8956. >
  8957. <div slot="title" class="header-title">
  8958. <div style="color: #fff">文件预览</div>
  8959. <div style="position: absolute; top: 19px; right: 50px">
  8960. <img
  8961. src="../../assets/full.png"
  8962. style="height: 16px; cursor: pointer"
  8963. alt=""
  8964. @click="fullTools"
  8965. />
  8966. </div>
  8967. </div>
  8968. <pdf
  8969. v-if="showPDF"
  8970. :pdfUrl="pptImgUrl"
  8971. style="width: 100%; height: 520px; overflow: auto"
  8972. :class="{ fullStyle: full }"
  8973. ></pdf>
  8974. <iframe
  8975. v-else
  8976. :src="pptImgUrl"
  8977. frameborder="0"
  8978. width="100%"
  8979. height="600"
  8980. :class="{ fullStyle: full }"
  8981. ></iframe>
  8982. </el-dialog>
  8983. <el-dialog
  8984. title="文件预览"
  8985. :visible.sync="dialogVisible6"
  8986. width="50%"
  8987. :before-close="handleClose"
  8988. class="dialog_diy"
  8989. >
  8990. <iframe
  8991. :src="pptImgUrl1"
  8992. frameborder="0"
  8993. width="100%"
  8994. height="600"
  8995. ></iframe>
  8996. </el-dialog>
  8997. <el-dialog
  8998. title="提示"
  8999. :visible.sync="dialogVisible4"
  9000. :append-to-body="true"
  9001. width="800px"
  9002. :before-close="handleClose"
  9003. class="dialog_diy notice"
  9004. >
  9005. <div>此功能暂未开放!</div>
  9006. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9007. </el-dialog>
  9008. <el-dialog
  9009. title="问答"
  9010. :visible.sync="answerDialogVisible"
  9011. :append-to-body="true"
  9012. width="800px"
  9013. :before-close="handleClose"
  9014. class="dialog_diy"
  9015. >
  9016. <div>
  9017. <div
  9018. style="
  9019. display: flex;
  9020. flex-wrap: nowrap;
  9021. flex-direction: column;
  9022. position: relative;
  9023. "
  9024. >
  9025. <div class="queTop" style="padding: 20px 0 20px 0">
  9026. <div class="question">
  9027. <img src="../../assets/icon/question.png" alt />
  9028. </div>
  9029. <div class="queTitle">
  9030. <div style="width: 90px; min-width: 90px">提问:</div>
  9031. <div>{{ answerQ }}</div>
  9032. </div>
  9033. </div>
  9034. <div class="ediBottom">
  9035. <textarea
  9036. rows="6"
  9037. class="binfo_input"
  9038. cols
  9039. style="width: 95%; height: 120px"
  9040. v-model="questionAnswer"
  9041. ></textarea>
  9042. </div>
  9043. </div>
  9044. </div>
  9045. <div slot="footer">
  9046. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9047. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9048. </div>
  9049. </el-dialog>
  9050. <el-dialog
  9051. title="问答"
  9052. :visible.sync="answerDialogVisibleTeacher"
  9053. :append-to-body="true"
  9054. width="800px"
  9055. :before-close="handleClose"
  9056. class="dialog_diy"
  9057. >
  9058. <div>
  9059. <div class="w_name">
  9060. 学生姓名:<span>{{ sStudent.student }}</span>
  9061. </div>
  9062. <div
  9063. style="
  9064. display: flex;
  9065. flex-wrap: nowrap;
  9066. flex-direction: column;
  9067. position: relative;
  9068. "
  9069. >
  9070. <div class="queTop" style="padding: 20px 0 20px 0">
  9071. <div class="question">
  9072. <img src="../../assets/icon/question.png" alt />
  9073. </div>
  9074. <div class="queTitle">
  9075. <div style="width: 90px; min-width: 90px">提问:</div>
  9076. <div>{{ answerQ }}</div>
  9077. </div>
  9078. </div>
  9079. <div class="ediBottom">
  9080. <textarea
  9081. rows="6"
  9082. class="binfo_input"
  9083. cols
  9084. style="width: 95%; height: 120px"
  9085. v-model="questionAnswer"
  9086. ></textarea>
  9087. </div>
  9088. </div>
  9089. </div>
  9090. <div slot="footer">
  9091. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9092. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9093. </div>
  9094. </el-dialog>
  9095. <el-dialog
  9096. title="倒计时"
  9097. :visible.sync="timeDialogVisible"
  9098. :append-to-body="true"
  9099. width="800px"
  9100. :before-close="handleClose"
  9101. class="dialog_diy"
  9102. >
  9103. <div>
  9104. <div style="margin-bottom: 20px; color: #999">
  9105. 提示:点击“+”或“-”修改倒计时时长。
  9106. </div>
  9107. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9108. </div>
  9109. <div slot="footer">
  9110. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9111. </div>
  9112. </el-dialog>
  9113. <el-dialog
  9114. title="权限设置"
  9115. :visible.sync="juriVisible"
  9116. :append-to-body="true"
  9117. width="400px"
  9118. :before-close="handleClose"
  9119. class="dialog_diy"
  9120. >
  9121. <div>
  9122. <div class="open_box">
  9123. <div class="switch_box">
  9124. <span>允许学生查看所有作业</span>
  9125. <el-switch
  9126. v-model="sIsOpen"
  9127. active-text=""
  9128. class="switchCss"
  9129. @change="updateSLook"
  9130. ></el-switch>
  9131. </div>
  9132. <div
  9133. class="switch_box"
  9134. v-if="
  9135. courseDetail.userid == userid ||
  9136. (courseDetail.course_teacher &&
  9137. courseDetail.course_teacher.indexOf(userid) != -1)
  9138. "
  9139. >
  9140. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9141. <span>禁止学生查看所有阶段</span>
  9142. <el-switch
  9143. v-model="IsLookOpen"
  9144. active-text=""
  9145. class="switchCss"
  9146. @change="updateLookOpen"
  9147. ></el-switch>
  9148. </div>
  9149. <div class="switch_box" v-if="courseDetail.userid == userid">
  9150. <span>开启跟随模式</span>
  9151. <el-switch
  9152. v-model="IsFollow"
  9153. active-text=""
  9154. class="switchCss"
  9155. @change="updateFollow"
  9156. ></el-switch>
  9157. </div>
  9158. </div>
  9159. </div>
  9160. <div slot="footer">
  9161. <el-button
  9162. style="background: #409efe; color: #fff"
  9163. @click="juriVisible = false"
  9164. >关 闭</el-button
  9165. >
  9166. </div>
  9167. </el-dialog>
  9168. <el-dialog
  9169. title="查看视频"
  9170. :visible.sync="videoVisible"
  9171. :append-to-body="true"
  9172. width="1000px"
  9173. :before-close="handleClose"
  9174. class="dialog_diy1"
  9175. >
  9176. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9177. <video-player
  9178. class="video-player vjs-custom-skin"
  9179. :playsinline="true"
  9180. :options="videoDetail"
  9181. @play="onPlayerPlay($event)"
  9182. style="width: 100%; height: 100%"
  9183. ></video-player>
  9184. </div>
  9185. <div slot="footer">
  9186. <el-button
  9187. style="background: #409efe; color: #fff"
  9188. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9189. >
  9190. 关 闭</el-button
  9191. >
  9192. </div>
  9193. </el-dialog>
  9194. <el-dialog
  9195. title="查看详情"
  9196. :visible.sync="commentDialogVisible"
  9197. :append-to-body="true"
  9198. width="800px"
  9199. :before-close="handleClose"
  9200. class="dialog_diy"
  9201. >
  9202. <div class="commentTop">
  9203. <div class="studentDetail">
  9204. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9205. <div class="nameAndTime">
  9206. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9207. <div>{{ commentDetail.time }}</div>
  9208. </div>
  9209. <div
  9210. class="returnBtn"
  9211. style="margin-left: auto; width: 80px"
  9212. v-if="
  9213. commentDetail.works &&
  9214. commentDetail.type == 0 &&
  9215. (tType == 1 || tType == 4)
  9216. "
  9217. @click="
  9218. showPicturePaint(
  9219. commentDetail.img ? commentDetail.img : commentDetail.works
  9220. )
  9221. "
  9222. >
  9223. 教师批注
  9224. </div>
  9225. </div>
  9226. <div
  9227. class="worksAnswer"
  9228. v-if="commentDetail.works && commentDetail.type == 2"
  9229. >
  9230. {{ JSON.parse(commentDetail.works)[0].answer }}
  9231. </div>
  9232. <div
  9233. class="worksAnswer"
  9234. v-if="commentDetail.works && commentDetail.type == 1"
  9235. >
  9236. <img
  9237. src="../../assets/teacherWork.png"
  9238. v-if="commentDetail.ateacher"
  9239. class="w_teachert"
  9240. />
  9241. <pdf
  9242. v-if="showPDF"
  9243. :pdfUrl="pptImgUrl"
  9244. style="width: 100%; height: 520px; overflow: auto"
  9245. :class="{ fullStyle: full }"
  9246. ></pdf>
  9247. <iframe
  9248. v-else
  9249. :src="pptImgUrl"
  9250. frameborder="0"
  9251. width="100%"
  9252. height="600"
  9253. :class="{ fullStyle: full }"
  9254. ></iframe>
  9255. </div>
  9256. <div
  9257. class="worksAnswer"
  9258. v-if="commentDetail.works && commentDetail.type == 0"
  9259. >
  9260. <img
  9261. src="../../assets/teacherWork.png"
  9262. v-if="commentDetail.ateacher"
  9263. class="w_teachert"
  9264. style="right: 105px"
  9265. />
  9266. <img
  9267. :src="commentDetail.works"
  9268. alt=""
  9269. @click="previewImg(commentDetail.works)"
  9270. />
  9271. </div>
  9272. <div
  9273. class="worksAnswer"
  9274. v-if="commentDetail.works && commentDetail.type == 3"
  9275. >
  9276. <img
  9277. src="../../assets/teacherWork.png"
  9278. v-if="commentDetail.ateacher"
  9279. class="w_teachert"
  9280. />
  9281. <video-player
  9282. class="video-player vjs-custom-skin"
  9283. :playsinline="true"
  9284. :options="videoDetail"
  9285. @play="onPlayerPlay($event)"
  9286. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9287. ></video-player>
  9288. </div>
  9289. <div
  9290. class="worksAnswer"
  9291. v-if="commentDetail.works && commentDetail.type == 10"
  9292. >
  9293. <div class="cont" v-html="commentDetail.works.text"></div>
  9294. </div>
  9295. <div
  9296. class="worksAnswer codeFileBox"
  9297. v-if="commentDetail.works && commentDetail.type == 12"
  9298. @click="downloadFile(commentDetail.works)"
  9299. >
  9300. <img src="../../assets/icon/codeFile.png" />
  9301. <div>点击下载文件</div>
  9302. </div>
  9303. <div
  9304. class="worksAnswer codeFileBox"
  9305. v-if="commentDetail.works && commentDetail.type == 15"
  9306. @click="
  9307. openCocoPi(
  9308. 57,
  9309. commentIndexJson.toolIndex,
  9310. commentDetail.userid,
  9311. commentDetail.sName
  9312. )
  9313. "
  9314. >
  9315. <img src="../../assets/icon/codeFile.png" />
  9316. <div>点击打开CocoPi</div>
  9317. </div>
  9318. <div
  9319. class="worksAnswer"
  9320. v-if="commentDetail.works && commentDetail.type == 13"
  9321. >
  9322. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9323. </div>
  9324. <div
  9325. class="worksAnswer"
  9326. v-if="commentDetail.works && commentDetail.type == 4"
  9327. >
  9328. <div class="evalCss">
  9329. <div class="nav">请选择星星进行评分</div>
  9330. <div class="middleBox" v-if="eScore.eStar">
  9331. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9332. <div class="nameAndrate">
  9333. <div>{{ e.value }}</div>
  9334. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9335. </div>
  9336. <div v-if="e.detail">{{ e.detail }}</div>
  9337. </div>
  9338. <div class="bz">
  9339. <textarea
  9340. disabled
  9341. rows="4"
  9342. class="pj"
  9343. style="
  9344. padding: 10px 5px;
  9345. width: 70%;
  9346. background: #f7f6f9;
  9347. font-size: 14px;
  9348. text-indent: 10px;
  9349. color: #000;
  9350. "
  9351. cols
  9352. v-model="eScore.eBzText"
  9353. placeholder="请输入评价内容..."
  9354. ></textarea>
  9355. </div>
  9356. </div>
  9357. </div>
  9358. </div>
  9359. <div class="comment">
  9360. <div class="commentList">
  9361. <div class="commentImg">
  9362. <img
  9363. @click="
  9364. isLikes(
  9365. commentDetail.wid,
  9366. userid,
  9367. 1,
  9368. null,
  9369. commentDetail.isLikes
  9370. )
  9371. "
  9372. :src="commentDetail.isLikes == true ? likes : noLikes"
  9373. alt=""
  9374. />
  9375. </div>
  9376. <div>{{ commentDetail.likesCount }}</div>
  9377. </div>
  9378. <div class="commentList">
  9379. <div class="commentImg">
  9380. <img src="../../assets/icon/comment/comment.png" alt="" />
  9381. </div>
  9382. <div>{{ commentDetail.commentCount }}</div>
  9383. </div>
  9384. </div>
  9385. <div class="drawPBox" v-if="commentDetail.img">
  9386. <span>教师批注</span>
  9387. <img
  9388. :src="commentDetail.img"
  9389. alt=""
  9390. @click="previewImg(commentDetail.img)"
  9391. />
  9392. <span
  9393. class="deleteImg"
  9394. v-if="tType == 1 || tType == 4"
  9395. @click.stop="deletePicturePaint(commentDetail.wid)"
  9396. style="
  9397. font-size: 14px;
  9398. width: auto !important;
  9399. color: #b4b4b4;
  9400. top: unset;
  9401. bottom: 0;
  9402. border: none;
  9403. padding: 0;
  9404. height: auto !important;
  9405. margin: 0;
  9406. "
  9407. >删除</span
  9408. >
  9409. </div>
  9410. </div>
  9411. <div class="commentBox">
  9412. <div class="pl">评论:</div>
  9413. <div style="max-height: 200px; overflow: auto">
  9414. <div
  9415. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9416. style="padding: 10px 0 0 0"
  9417. >
  9418. <div
  9419. class="studentDetail"
  9420. style="padding-top: 10px"
  9421. v-for="(co, coIndex) in commentDetail.commentJson"
  9422. :key="coIndex"
  9423. >
  9424. <div class="tx" style="min-width: 50px">
  9425. <img src="../../assets/avatar.png" alt="" />
  9426. </div>
  9427. <div class="plPerson">
  9428. <div class="plName">
  9429. <div>{{ co.commentPeople }}</div>
  9430. <div style="margin-left: 5px">
  9431. {{ co.commentTime }}
  9432. </div>
  9433. <div
  9434. class="deleteComment"
  9435. v-if="userid == co.userid"
  9436. @click="deleteComment(co.wid)"
  9437. >
  9438. 删除
  9439. </div>
  9440. </div>
  9441. <div class="plContent">{{ co.commentText }}</div>
  9442. </div>
  9443. </div>
  9444. </div>
  9445. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9446. </div>
  9447. </div>
  9448. <div style="margin-top: 10px">
  9449. <div class="displayBox">
  9450. <div
  9451. style="
  9452. color: #556db4;
  9453. font-size: 14px;
  9454. font-weight: bold;
  9455. padding-bottom: 10px;
  9456. "
  9457. >
  9458. 评价
  9459. </div>
  9460. <div class="easy_comment" v-if="false">
  9461. <div
  9462. v-for="(p, pIndex) in PlTextList"
  9463. :key="pIndex"
  9464. @click="fastText(p, 1)"
  9465. >
  9466. {{ p }}
  9467. </div>
  9468. </div>
  9469. </div>
  9470. <div>
  9471. <textarea
  9472. rows="3"
  9473. class="pj"
  9474. style="padding: 10px 5px"
  9475. cols
  9476. v-model="commentText"
  9477. placeholder="请输入评论"
  9478. ></textarea>
  9479. </div>
  9480. </div>
  9481. <div slot="footer">
  9482. <el-button
  9483. @click="
  9484. (commentDialogVisible = false),
  9485. (commentIndexJson = {}),
  9486. videoDetail.sources && videoDetail.sources[0]
  9487. ? (videoDetail.sources[0].src = '')
  9488. : ''
  9489. "
  9490. >取 消</el-button
  9491. >
  9492. <el-button
  9493. type="primary"
  9494. @click="addComment(commentDetail.wid, userid, 2)"
  9495. >确 定</el-button
  9496. >
  9497. </div>
  9498. </el-dialog>
  9499. <el-dialog
  9500. title="查看文档"
  9501. :visible.sync="fullDialogVisible"
  9502. :append-to-body="true"
  9503. width="100%"
  9504. :before-close="handleClose"
  9505. :show-close="false"
  9506. class="dialog_diy full_diy"
  9507. :class="{ full_diy2: fulltype == 3 }"
  9508. >
  9509. <div slot="title" class="header-title">
  9510. <div style="color: #fff">查看文档</div>
  9511. <div
  9512. @click="fullDialogVisible = false"
  9513. style="
  9514. cursor: pointer;
  9515. position: absolute;
  9516. top: 20px;
  9517. right: 20px;
  9518. color: #fff;
  9519. "
  9520. >
  9521. 退出全屏
  9522. </div>
  9523. </div>
  9524. <div style="height: 100%">
  9525. <div
  9526. class="wheel"
  9527. v-if="
  9528. fulltype == 2 &&
  9529. fullUrl.indexOf(
  9530. 'https://view.officeapps.live.com/op/view.aspx?src='
  9531. ) != -1
  9532. "
  9533. style="width: 95%; margin: 0 auto"
  9534. >
  9535. <iframe
  9536. style="width: 100%; height: 100%; border: none"
  9537. :src="fullUrl"
  9538. ></iframe>
  9539. </div>
  9540. <iframe
  9541. v-else-if="fulltype == 2"
  9542. style="width: 100%; height: 100%; border: none"
  9543. :src="fullUrl"
  9544. security="restricted"
  9545. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9546. ></iframe>
  9547. <pdf
  9548. v-else-if="fulltype == 3"
  9549. :pdfUrl="fullUrl"
  9550. style="width: 100%; height: 100%; overflow: auto"
  9551. ></pdf>
  9552. <div
  9553. class="wheel"
  9554. v-if="fulltype == 1"
  9555. style="
  9556. box-shadow: 0 0 6px 1px #f2f2f2;
  9557. width: 100%;
  9558. background: #f1f1f1;
  9559. "
  9560. >
  9561. <div class="title" style="width: 100%; box-sizing: border-box">
  9562. 查看文档
  9563. </div>
  9564. <el-form class="textBox" style="height: 90%">
  9565. <el-form-item class="textTitle">
  9566. <div style="font-size: 22px">
  9567. {{ fullUrl.name }}
  9568. </div>
  9569. </el-form-item>
  9570. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9571. <div
  9572. v-html="fullUrl.url"
  9573. class="textContent"
  9574. style="height: auto"
  9575. ></div>
  9576. </el-form>
  9577. </div>
  9578. </div>
  9579. <!-- <div slot="footer">
  9580. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9581. </div> -->
  9582. </el-dialog>
  9583. <el-dialog
  9584. title="个人评价"
  9585. :visible.sync="studentEvalDialogVisible"
  9586. :append-to-body="true"
  9587. width="800px"
  9588. :before-close="handleClose"
  9589. class="dialog_diy"
  9590. >
  9591. <div class="evalCss">
  9592. <div class="nav">请选择星星进行评分</div>
  9593. <div class="middleBox" v-if="eScore.eStar">
  9594. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9595. <div class="nameAndrate">
  9596. <div>{{ e.value }}</div>
  9597. <el-rate
  9598. v-model="eScore.eStar[eIndex]"
  9599. :disabled="isStar"
  9600. ></el-rate>
  9601. </div>
  9602. <div v-if="e.detail">{{ e.detail }}</div>
  9603. </div>
  9604. <div class="easy_comment" v-if="false">
  9605. <div
  9606. v-for="(p, pIndex) in PlTextList"
  9607. :key="pIndex"
  9608. @click="fastText(p, 2)"
  9609. >
  9610. {{ p }}
  9611. </div>
  9612. </div>
  9613. <div class="bz">
  9614. <textarea
  9615. :disabled="isStar"
  9616. rows="4"
  9617. class="pj"
  9618. style="
  9619. padding: 10px 5px;
  9620. width: 70%;
  9621. background: #f7f6f9;
  9622. font-size: 14px;
  9623. text-indent: 10px;
  9624. "
  9625. cols
  9626. v-model="eScore.eBzText"
  9627. placeholder="请输入评价内容..."
  9628. ></textarea>
  9629. </div>
  9630. </div>
  9631. </div>
  9632. <div slot="footer">
  9633. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9634. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9635. >确 定</el-button
  9636. >
  9637. </div>
  9638. </el-dialog>
  9639. <el-dialog
  9640. title="个人评价"
  9641. :visible.sync="studentEvalDialogVisibleTeacher"
  9642. :append-to-body="true"
  9643. width="800px"
  9644. :before-close="handleClose"
  9645. class="dialog_diy"
  9646. >
  9647. <div class="w_name">
  9648. 学生姓名:<span>{{ sStudent.student }}</span>
  9649. </div>
  9650. <div class="evalCss">
  9651. <div class="nav">请选择星星进行评分</div>
  9652. <div class="middleBox" v-if="eScore.eStar">
  9653. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9654. <div class="nameAndrate">
  9655. <div>{{ e.value }}</div>
  9656. <el-rate
  9657. v-model="eScore.eStar[eIndex]"
  9658. :disabled="isStar"
  9659. ></el-rate>
  9660. </div>
  9661. <div v-if="e.detail">{{ e.detail }}</div>
  9662. </div>
  9663. <div class="easy_comment" v-if="false">
  9664. <div
  9665. v-for="(p, pIndex) in PlTextList"
  9666. :key="pIndex"
  9667. @click="fastText(p, 2)"
  9668. >
  9669. {{ p }}
  9670. </div>
  9671. </div>
  9672. <div class="bz">
  9673. <textarea
  9674. :disabled="isStar"
  9675. rows="4"
  9676. class="pj"
  9677. style="
  9678. padding: 10px 5px;
  9679. width: 70%;
  9680. background: #f7f6f9;
  9681. font-size: 14px;
  9682. text-indent: 10px;
  9683. "
  9684. cols
  9685. v-model="eScore.eBzText"
  9686. placeholder="请输入评价内容..."
  9687. ></textarea>
  9688. </div>
  9689. </div>
  9690. </div>
  9691. <div slot="footer">
  9692. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9693. >取 消</el-button
  9694. >
  9695. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9696. >确 定</el-button
  9697. >
  9698. </div>
  9699. </el-dialog>
  9700. <el-dialog
  9701. title="选择匹配"
  9702. :visible.sync="dialogVisibleSelect"
  9703. :append-to-body="true"
  9704. width="90%"
  9705. :before-close="handleClose"
  9706. class="dialog_diy dialog_diy3"
  9707. >
  9708. <div v-if="selectJson">
  9709. <div class="select_box2">
  9710. <div class="select_box2_title">
  9711. <div>选择匹配</div>
  9712. <div>请选择对应的答案进行答题!</div>
  9713. </div>
  9714. <div class="select_box2_box">
  9715. <div class="select_box2_img">
  9716. <img
  9717. :src="selectJson.url"
  9718. @click="previewImg(selectJson.url)"
  9719. alt=""
  9720. />
  9721. </div>
  9722. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9723. <div style="padding-top: 15px">
  9724. <div class="select_answer_title" v-if="isSelect">
  9725. {{ selectAnswer.stu }}
  9726. </div>
  9727. <div class="select_answer_title" v-else>
  9728. 根据题目选择对应答案
  9729. </div>
  9730. <div
  9731. class="select_box2_answer_box"
  9732. v-for="(item2, checkIndex) in selectJson.select"
  9733. :key="checkIndex"
  9734. >
  9735. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9736. <el-select
  9737. :disabled="isSelect"
  9738. v-model="selectAnswer.answer[checkIndex]"
  9739. placeholder="请选择正确答案"
  9740. >
  9741. <el-option
  9742. v-for="(e, eIndex) in selectJson.select"
  9743. :key="eIndex"
  9744. :label="e"
  9745. :value="eIndex"
  9746. >
  9747. </el-option>
  9748. </el-select>
  9749. </div>
  9750. </div>
  9751. <div
  9752. class="rightAnswerCss"
  9753. v-if="isSelect && (tType == 1 || tType == 4)"
  9754. >
  9755. <div
  9756. v-for="(a, aIndex) in selectJson.answer"
  9757. :key="aIndex"
  9758. class="rightAnswer"
  9759. >
  9760. <div
  9761. v-if="selectAnswer.answer[aIndex] === a"
  9762. style="color: #767de1"
  9763. >
  9764. 回答正确
  9765. </div>
  9766. <div v-else>回答错误</div>
  9767. <div
  9768. style="margin-left: 10px"
  9769. v-if="selectAnswer.answer[aIndex] !== a"
  9770. >
  9771. 正确答案:
  9772. </div>
  9773. <div
  9774. :class="
  9775. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9776. "
  9777. >
  9778. {{ selectJson.select[a] }}
  9779. </div>
  9780. </div>
  9781. </div>
  9782. </div>
  9783. <div class="upAnswerCss">
  9784. <el-button
  9785. type="primary"
  9786. @click="addSelectAnswer"
  9787. v-if="!isSelect"
  9788. >提交答案</el-button
  9789. >
  9790. </div>
  9791. </div>
  9792. </div>
  9793. </div>
  9794. </el-dialog>
  9795. <el-dialog
  9796. title="选择匹配"
  9797. :visible.sync="dialogVisibleSelectTeacher"
  9798. :append-to-body="true"
  9799. width="90%"
  9800. :before-close="handleClose"
  9801. class="dialog_diy dialog_diy3"
  9802. >
  9803. <div v-if="selectJson">
  9804. <div class="w_name">
  9805. 学生姓名:<span>{{ sStudent.student }}</span>
  9806. </div>
  9807. <div class="select_box2">
  9808. <div class="select_box2_title">
  9809. <div>选择匹配</div>
  9810. <div>请选择对应的答案进行答题!</div>
  9811. </div>
  9812. <div class="select_box2_box">
  9813. <div class="select_box2_img">
  9814. <img
  9815. :src="selectJson.url"
  9816. @click="previewImg(selectJson.url)"
  9817. alt=""
  9818. />
  9819. </div>
  9820. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9821. <div style="padding-top: 15px">
  9822. <div class="select_answer_title" v-if="isSelect">
  9823. {{ selectAnswer.stu }}
  9824. </div>
  9825. <div class="select_answer_title" v-else>
  9826. 根据题目选择对应答案
  9827. </div>
  9828. <div
  9829. class="select_box2_answer_box"
  9830. v-for="(item2, checkIndex) in selectJson.select"
  9831. :key="checkIndex"
  9832. >
  9833. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9834. <el-select
  9835. :disabled="isSelect"
  9836. v-model="selectAnswer.answer[checkIndex]"
  9837. placeholder="请选择正确答案"
  9838. >
  9839. <el-option
  9840. v-for="(e, eIndex) in selectJson.select"
  9841. :key="eIndex"
  9842. :label="e"
  9843. :value="eIndex"
  9844. >
  9845. </el-option>
  9846. </el-select>
  9847. </div>
  9848. </div>
  9849. <div
  9850. class="rightAnswerCss"
  9851. v-if="isSelect && (tType == 1 || tType == 4)"
  9852. >
  9853. <div
  9854. v-for="(a, aIndex) in selectJson.answer"
  9855. :key="aIndex"
  9856. class="rightAnswer"
  9857. >
  9858. <div
  9859. v-if="selectAnswer.answer[aIndex] === a"
  9860. style="color: #767de1"
  9861. >
  9862. 回答正确
  9863. </div>
  9864. <div v-else>回答错误</div>
  9865. <div
  9866. style="margin-left: 10px"
  9867. v-if="selectAnswer.answer[aIndex] !== a"
  9868. >
  9869. 正确答案:
  9870. </div>
  9871. <div
  9872. :class="
  9873. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9874. "
  9875. >
  9876. {{ selectJson.select[a] }}
  9877. </div>
  9878. </div>
  9879. </div>
  9880. </div>
  9881. <div class="upAnswerCss">
  9882. <el-button
  9883. type="primary"
  9884. @click="addSelectAnswerTeacher"
  9885. v-if="!isSelect"
  9886. >提交答案</el-button
  9887. >
  9888. </div>
  9889. </div>
  9890. </div>
  9891. </div>
  9892. </el-dialog>
  9893. <el-dialog
  9894. title="教师评分"
  9895. :visible.sync="dialogVisibleScore"
  9896. :append-to-body="true"
  9897. width="800px"
  9898. :before-close="handleClose"
  9899. class="dialog_diy"
  9900. >
  9901. <div>
  9902. <div class="studentDetail">
  9903. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9904. <div class="nameAndTime">
  9905. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9906. <div>{{ commentDetail.time }}</div>
  9907. </div>
  9908. </div>
  9909. <div
  9910. class="worksAnswer"
  9911. v-if="commentDetail.works && commentDetail.type == 2"
  9912. >
  9913. {{ JSON.parse(commentDetail.works)[0].answer }}
  9914. </div>
  9915. <div
  9916. class="worksAnswer"
  9917. v-if="commentDetail.works && commentDetail.type == 1"
  9918. >
  9919. <pdf
  9920. v-if="showPDF"
  9921. :pdfUrl="pptImgUrl"
  9922. style="width: 100%; height: 520px; overflow: auto"
  9923. :class="{ fullStyle: full }"
  9924. ></pdf>
  9925. <iframe
  9926. v-else
  9927. :src="pptImgUrl"
  9928. frameborder="0"
  9929. width="100%"
  9930. height="600"
  9931. :class="{ fullStyle: full }"
  9932. ></iframe>
  9933. </div>
  9934. <div
  9935. class="worksAnswer"
  9936. v-if="commentDetail.works && commentDetail.type == 0"
  9937. >
  9938. <img
  9939. :src="commentDetail.works"
  9940. alt=""
  9941. @click="previewImg(commentDetail.works)"
  9942. />
  9943. </div>
  9944. <div
  9945. class="worksAnswer"
  9946. v-if="commentDetail.works && commentDetail.type == 3"
  9947. >
  9948. <video-player
  9949. class="video-player vjs-custom-skin"
  9950. :playsinline="true"
  9951. :options="videoDetail"
  9952. @play="onPlayerPlay($event)"
  9953. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9954. ></video-player>
  9955. </div>
  9956. <div
  9957. class="worksAnswer codeFileBox"
  9958. v-if="commentDetail.works && commentDetail.type == 12"
  9959. @click="downloadFile(commentDetail.works)"
  9960. >
  9961. <img src="../../assets/icon/codeFile.png" />
  9962. <div>点击下载文件</div>
  9963. </div>
  9964. <div
  9965. class="worksAnswer codeFileBox"
  9966. v-if="commentDetail.works && commentDetail.type == 15"
  9967. @click="
  9968. openCocoPi(
  9969. 57,
  9970. commentIndexJson.toolIndex,
  9971. commentDetail.userid,
  9972. commentDetail.sName
  9973. )
  9974. "
  9975. >
  9976. <img src="../../assets/icon/codeFile.png" />
  9977. <div>点击打开CocoPi</div>
  9978. </div>
  9979. <div
  9980. class="worksAnswer"
  9981. v-if="commentDetail.works && commentDetail.type == 13"
  9982. >
  9983. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9984. </div>
  9985. <div class="scoreBox">
  9986. <span class="t">请输入分数</span>
  9987. <el-input-number
  9988. :disabled="courseDetail.userid != userid"
  9989. v-model="wScore"
  9990. :controls="false"
  9991. :min="0"
  9992. :max="100"
  9993. ></el-input-number>
  9994. </div>
  9995. <div class="scoreDetailBox">
  9996. <span class="t">评分评论</span>
  9997. <el-input
  9998. type="textarea"
  9999. :rows="5"
  10000. :disabled="courseDetail.userid != userid"
  10001. resize="none"
  10002. v-model="scoreDetail"
  10003. placeholder="请输入对学生的评价"
  10004. >
  10005. </el-input>
  10006. </div>
  10007. </div>
  10008. <span slot="footer" class="dialog-footer">
  10009. <el-button
  10010. @click="
  10011. (dialogVisibleScore = false),
  10012. (commentIndexJson = {}),
  10013. videoDetail.sources && videoDetail.sources[0]
  10014. ? (videoDetail.sources[0].src = '')
  10015. : ''
  10016. "
  10017. >取 消</el-button
  10018. >
  10019. <el-button
  10020. type="primary"
  10021. v-if="courseDetail.userid == userid"
  10022. @click="scoreWork(commentDetail.wid)"
  10023. >确 定
  10024. </el-button>
  10025. </span>
  10026. </el-dialog>
  10027. <el-dialog
  10028. title="排序"
  10029. :visible.sync="dialogVisibleSentence"
  10030. :append-to-body="true"
  10031. width="1000px"
  10032. :before-close="handleClose"
  10033. class="dialog_diy dialog_diy3"
  10034. >
  10035. <div>
  10036. <div class="sentenBox">
  10037. <div
  10038. v-for="(st, stIndex) in sentenceList"
  10039. :key="stIndex"
  10040. style="padding-bottom: 20px"
  10041. >
  10042. <div
  10043. style="padding: 15px 0 10px 20px"
  10044. class="sentenceTitle"
  10045. :index="stIndex + 1"
  10046. >
  10047. 题目{{ stIndex + 1 }}:请选择正确顺序
  10048. </div>
  10049. <div class="cardList" v-if="st.chooseSenList">
  10050. <div class="cardBox">
  10051. <div
  10052. v-for="(r, rIndex) in st.chooseSenList"
  10053. :key="rIndex"
  10054. @click="returnCard(r, stIndex, rIndex)"
  10055. >
  10056. <el-tooltip
  10057. class="item"
  10058. effect="light"
  10059. :content="r"
  10060. placement="top"
  10061. v-if="r != '' && r != undefined"
  10062. >
  10063. <div
  10064. :class="{
  10065. isCard: r,
  10066. isChooseCard: r == '' || r == undefined,
  10067. }"
  10068. >
  10069. <div>{{ r }}</div>
  10070. </div>
  10071. </el-tooltip>
  10072. <div
  10073. :class="{
  10074. isCard: r,
  10075. isChooseCard: r == '' || r == undefined,
  10076. }"
  10077. v-else
  10078. >
  10079. <div>{{ r }}</div>
  10080. </div>
  10081. </div>
  10082. </div>
  10083. </div>
  10084. <div class="cardList" v-if="st.addChangeSen">
  10085. <div class="cardBox">
  10086. <div
  10087. v-for="(s, sIndex) in st.addChangeSen"
  10088. :key="sIndex"
  10089. @click="setRightAnswer(s, stIndex, sIndex)"
  10090. >
  10091. <el-tooltip
  10092. class="item"
  10093. effect="light"
  10094. :content="s"
  10095. placement="top"
  10096. v-if="s != '' && s != undefined"
  10097. >
  10098. <div
  10099. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10100. >
  10101. <div>{{ s }}</div>
  10102. </div>
  10103. </el-tooltip>
  10104. <div
  10105. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10106. v-else
  10107. >
  10108. <div>{{ s }}</div>
  10109. </div>
  10110. </div>
  10111. </div>
  10112. </div>
  10113. </div>
  10114. </div>
  10115. </div>
  10116. <span slot="footer" class="dialog-footer">
  10117. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10118. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10119. </span>
  10120. </el-dialog>
  10121. <el-dialog
  10122. title="排序"
  10123. :visible.sync="dialogVisibleSentenceTeacher"
  10124. :append-to-body="true"
  10125. width="1000px"
  10126. :before-close="handleClose"
  10127. class="dialog_diy dialog_diy3"
  10128. >
  10129. <div>
  10130. <div class="w_name">
  10131. 学生姓名:<span>{{ sStudent.student }}</span>
  10132. </div>
  10133. <div class="sentenBox">
  10134. <div
  10135. v-for="(st, stIndex) in sentenceList"
  10136. :key="stIndex"
  10137. style="padding-bottom: 20px"
  10138. >
  10139. <div
  10140. style="padding: 15px 0 10px 20px"
  10141. class="sentenceTitle"
  10142. :index="stIndex + 1"
  10143. >
  10144. 题目{{ stIndex + 1 }}:请选择正确顺序
  10145. </div>
  10146. <div class="cardList" v-if="st.chooseSenList">
  10147. <div class="cardBox">
  10148. <div
  10149. v-for="(r, rIndex) in st.chooseSenList"
  10150. :key="rIndex"
  10151. @click="returnCard(r, stIndex, rIndex)"
  10152. >
  10153. <el-tooltip
  10154. class="item"
  10155. effect="light"
  10156. :content="r"
  10157. placement="top"
  10158. v-if="r != '' && r != undefined"
  10159. >
  10160. <div
  10161. :class="{
  10162. isCard: r,
  10163. isChooseCard: r == '' || r == undefined,
  10164. }"
  10165. >
  10166. <div>{{ r }}</div>
  10167. </div>
  10168. </el-tooltip>
  10169. <div
  10170. :class="{
  10171. isCard: r,
  10172. isChooseCard: r == '' || r == undefined,
  10173. }"
  10174. v-else
  10175. >
  10176. <div>{{ r }}</div>
  10177. </div>
  10178. </div>
  10179. </div>
  10180. </div>
  10181. <div class="cardList" v-if="st.addChangeSen">
  10182. <div class="cardBox">
  10183. <div
  10184. v-for="(s, sIndex) in st.addChangeSen"
  10185. :key="sIndex"
  10186. @click="setRightAnswer(s, stIndex, sIndex)"
  10187. >
  10188. <el-tooltip
  10189. class="item"
  10190. effect="light"
  10191. :content="s"
  10192. placement="top"
  10193. v-if="s != '' && s != undefined"
  10194. >
  10195. <div
  10196. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10197. >
  10198. <div>{{ s }}</div>
  10199. </div>
  10200. </el-tooltip>
  10201. <div
  10202. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10203. v-else
  10204. >
  10205. <div>{{ s }}</div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. </div>
  10210. </div>
  10211. </div>
  10212. </div>
  10213. <span slot="footer" class="dialog-footer">
  10214. <el-button @click="dialogVisibleSentenceTeacher = false"
  10215. >取 消</el-button
  10216. >
  10217. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10218. </span>
  10219. </el-dialog>
  10220. <el-dialog
  10221. title="排序"
  10222. :visible.sync="dialogVisibleSentence1"
  10223. :append-to-body="true"
  10224. width="1000px"
  10225. :before-close="handleClose"
  10226. class="dialog_diy dialog_diy3"
  10227. >
  10228. <div>
  10229. <div class="sentenBox">
  10230. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10231. {{ sentenceList1.stuName }}的作业
  10232. </div>
  10233. <div
  10234. v-for="(st, stIndex) in sentenceList1"
  10235. :key="stIndex"
  10236. style="padding-bottom: 20px"
  10237. >
  10238. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10239. 第{{ stIndex + 1 }}题
  10240. </div>
  10241. <div class="isWrong">
  10242. <div class="cardList1" v-if="st.chooseSenList">
  10243. <div class="cardBox">
  10244. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10245. <el-tooltip
  10246. class="item"
  10247. effect="light"
  10248. :content="s"
  10249. placement="top"
  10250. >
  10251. <div class="isCard">
  10252. <div>{{ s }}</div>
  10253. </div>
  10254. </el-tooltip>
  10255. </div>
  10256. </div>
  10257. <div class="cardAnswerBox">
  10258. 组成句子:{{ st.chooseSenList.join(" ") }}
  10259. </div>
  10260. </div>
  10261. <div v-if="tType == 2" class="isTj">
  10262. <div class="isTjImg">
  10263. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10264. </div>
  10265. <div>已提交</div>
  10266. </div>
  10267. <div
  10268. class="answerRight isTj"
  10269. v-if="
  10270. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10271. (tType == 1 || tType == 4)
  10272. "
  10273. >
  10274. <div class="isTjImg">
  10275. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10276. </div>
  10277. <div>回答正确</div>
  10278. </div>
  10279. <div
  10280. class="answerRight isTj"
  10281. v-if="
  10282. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10283. (tType == 1 || tType == 4)
  10284. "
  10285. >
  10286. <div class="isTjImg">
  10287. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10288. </div>
  10289. <div>回答错误</div>
  10290. </div>
  10291. </div>
  10292. <div
  10293. v-if="
  10294. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10295. (tType == 1 || tType == 4)
  10296. "
  10297. >
  10298. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10299. <div
  10300. class="cardList"
  10301. v-if="st.rightAnswer"
  10302. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10303. >
  10304. <div class="cardBox">
  10305. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10306. <el-tooltip
  10307. class="item"
  10308. effect="light"
  10309. :content="r"
  10310. placement="top"
  10311. >
  10312. <div class="isCard1">
  10313. <div>{{ r }}</div>
  10314. </div>
  10315. </el-tooltip>
  10316. </div>
  10317. </div>
  10318. <div class="cardAnswerBox">
  10319. 组成句子:{{ st.rightAnswer.join(" ") }}
  10320. </div>
  10321. </div>
  10322. </div>
  10323. </div>
  10324. </div>
  10325. </div>
  10326. <span slot="footer" class="dialog-footer">
  10327. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10328. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10329. >确 定</el-button
  10330. >
  10331. </span>
  10332. </el-dialog>
  10333. <el-dialog
  10334. title="教师提交作业"
  10335. :visible.sync="dialogVisibleWorks"
  10336. :append-to-body="true"
  10337. width="500px"
  10338. :before-close="handleClose"
  10339. class="dialog_change"
  10340. >
  10341. <div class="marginT">
  10342. <div class="w_name">
  10343. 学生姓名:<span>{{ sStudent.student }}</span>
  10344. </div>
  10345. <div>上传文件</div>
  10346. <div
  10347. class="chapter_add"
  10348. @click="addImg($event)"
  10349. v-if="studyJuri[0].cover.length == 0"
  10350. >
  10351. <div class="up_photo">
  10352. <img src="../../assets/uploadImg2.png" alt />
  10353. </div>
  10354. <!-- <input
  10355. type="file"
  10356. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10357. style="display: none"
  10358. @change="beforeUpload1($event, 1)"
  10359. /> -->
  10360. <input
  10361. type="file"
  10362. accept="*"
  10363. style="display: none"
  10364. @change="beforeUpload1($event, 1)"
  10365. />
  10366. </div>
  10367. <!-- capture="camera" -->
  10368. <div
  10369. class="chapter_add"
  10370. style="
  10371. display: flex;
  10372. width: 100%;
  10373. flex-direction: row;
  10374. flex-wrap: wrap;
  10375. justify-content: flex-start;
  10376. padding: 15px 0;
  10377. "
  10378. v-if="studyJuri[0].cover.length > 0"
  10379. >
  10380. <div class="upCover">
  10381. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10382. <img :src="word" alt v-else-if="fileType == 1" />
  10383. <img :src="video" alt v-else-if="fileType == 2" />
  10384. <img :src="word2" alt v-else-if="fileType == 3" />
  10385. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10386. <div class="deleteWord" @click="clean(1)">
  10387. <img src="../../assets/icon/deleteWorks.png" alt />
  10388. </div>
  10389. </div>
  10390. </div>
  10391. </div>
  10392. <div
  10393. class="upload_send"
  10394. @click="addCourseWorksTeacher(taskCount)"
  10395. v-if="!proVisible"
  10396. >
  10397. 提交
  10398. </div>
  10399. </el-dialog>
  10400. <ImgDraw
  10401. :drawShow="drawShow"
  10402. @closeDraw="closeDraw"
  10403. @addImgDraw="addImgDraw"
  10404. :bg="bg"
  10405. ></ImgDraw>
  10406. <el-dialog
  10407. title="表格"
  10408. :visible.sync="dialogVisibleTable"
  10409. :append-to-body="true"
  10410. width="95%"
  10411. :before-close="handleClose"
  10412. class="dialog_diy"
  10413. >
  10414. <el-form>
  10415. <div
  10416. style="
  10417. display: flex;
  10418. align-items: center;
  10419. justify-content: space-between;
  10420. "
  10421. >
  10422. <span>表格内容</span>
  10423. <el-button type="primary" size="small" @click="returnTableText"
  10424. >还原模板</el-button
  10425. >
  10426. </div>
  10427. <Table
  10428. v-model="tableJson.text"
  10429. @change="change"
  10430. v-if="dialogVisibleTable"
  10431. ></Table>
  10432. </el-form>
  10433. <span slot="footer" class="dialog-footer">
  10434. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10435. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10436. </span>
  10437. </el-dialog>
  10438. <el-dialog
  10439. title="表格"
  10440. :visible.sync="dialogVisibleTableTeacher"
  10441. :append-to-body="true"
  10442. width="95%"
  10443. :before-close="handleClose"
  10444. class="dialog_diy"
  10445. >
  10446. <el-form>
  10447. <div class="w_name">
  10448. 学生姓名:<span>{{ sStudent.student }}</span>
  10449. </div>
  10450. <div>表格内容</div>
  10451. <Table
  10452. v-model="tableJson.text"
  10453. @change="change"
  10454. v-if="dialogVisibleTableTeacher"
  10455. ></Table>
  10456. </el-form>
  10457. <span slot="footer" class="dialog-footer">
  10458. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10459. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10460. </span>
  10461. </el-dialog>
  10462. <el-dialog
  10463. title="文档"
  10464. :visible.sync="dialogVisibleWord"
  10465. :append-to-body="true"
  10466. width="95%"
  10467. :before-close="handleClose"
  10468. class="dialog_diy"
  10469. >
  10470. <el-form>
  10471. <div
  10472. style="
  10473. display: flex;
  10474. align-items: center;
  10475. justify-content: space-between;
  10476. "
  10477. >
  10478. <span>文档内容</span>
  10479. <el-button type="primary" size="small" @click="returnWordText"
  10480. >还原模板</el-button
  10481. >
  10482. </div>
  10483. <editor-bar
  10484. v-model="wordJson.text"
  10485. v-if="dialogVisibleWord"
  10486. ></editor-bar>
  10487. </el-form>
  10488. <span slot="footer" class="dialog-footer">
  10489. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10490. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10491. </span>
  10492. </el-dialog>
  10493. <el-dialog
  10494. title="文档"
  10495. :visible.sync="dialogVisibleWordTeacher"
  10496. :append-to-body="true"
  10497. width="95%"
  10498. :before-close="handleClose"
  10499. class="dialog_diy"
  10500. >
  10501. <el-form>
  10502. <div class="w_name">
  10503. 学生姓名:<span>{{ sStudent.student }}</span>
  10504. </div>
  10505. <div>文档内容</div>
  10506. <editor-bar
  10507. v-model="wordJson.text"
  10508. v-if="dialogVisibleWordTeacher"
  10509. ></editor-bar>
  10510. </el-form>
  10511. <span slot="footer" class="dialog-footer">
  10512. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10513. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10514. </span>
  10515. </el-dialog>
  10516. <el-dialog
  10517. title="表格"
  10518. :visible.sync="dialogVisibleTable2"
  10519. :append-to-body="true"
  10520. width="95%"
  10521. :before-close="handleClose"
  10522. class="dialog_diy"
  10523. >
  10524. <el-form>
  10525. <div class="cont" v-html="tableJson.text"></div>
  10526. </el-form>
  10527. <span slot="footer" class="dialog-footer">
  10528. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10529. </span>
  10530. </el-dialog>
  10531. <el-dialog
  10532. title="文档"
  10533. :visible.sync="dialogVisibleTable3"
  10534. :append-to-body="true"
  10535. width="95%"
  10536. :before-close="handleClose"
  10537. class="dialog_diy"
  10538. >
  10539. <el-form>
  10540. <div class="cont" v-html="tableJson.text"></div>
  10541. </el-form>
  10542. <span slot="footer" class="dialog-footer">
  10543. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10544. </span>
  10545. </el-dialog>
  10546. <el-dialog
  10547. title="分组设置"
  10548. :visible.sync="dialogVisibleGroup"
  10549. :append-to-body="true"
  10550. width="95%"
  10551. :before-close="handleClose"
  10552. class="dialog_diy"
  10553. >
  10554. <div v-if="dialogVisibleGroup">
  10555. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10556. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10557. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10558. </div>
  10559. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10560. @click="lockChair">
  10561. 锁定位置
  10562. </div>
  10563. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10564. 解锁位置
  10565. </div> -->
  10566. <div class="group_switch">
  10567. <span>开放选座</span>
  10568. <el-switch
  10569. v-model="islock"
  10570. active-text=""
  10571. class="switchCss"
  10572. @change="lockChair"
  10573. ></el-switch>
  10574. </div>
  10575. <div
  10576. type="primary"
  10577. @click="updateGroup"
  10578. class="returnBtn"
  10579. style="background-color: #225bc7"
  10580. >
  10581. 分组设置
  10582. </div>
  10583. </div>
  10584. <div>
  10585. <div
  10586. class="g_d_box"
  10587. v-if="groupJson.group && groupStudent[toolindex]"
  10588. >
  10589. <div
  10590. class="g_d_group"
  10591. v-for="(g, gindex) in groupJson.group"
  10592. :key="gindex"
  10593. >
  10594. <div class="g_d_group_chair">
  10595. <div v-if="groupJson.number > 1">
  10596. <span
  10597. :class="{
  10598. isChair:
  10599. groupStudent[toolindex][gindex] &&
  10600. groupStudent[toolindex][gindex][0],
  10601. updateChair:
  10602. courseDetail.userid == userid &&
  10603. groupStudent[toolindex][gindex] &&
  10604. groupStudent[toolindex][gindex][0] &&
  10605. groupJson.islock == 2,
  10606. }"
  10607. ><span
  10608. class="updateChairBtn"
  10609. @click="
  10610. updateGroupChair(
  10611. groupStudent[toolindex][gindex] &&
  10612. groupStudent[toolindex][gindex][0]
  10613. )
  10614. "
  10615. >修改</span
  10616. ></span
  10617. ><span>{{
  10618. groupStudent[toolindex][gindex] &&
  10619. groupStudent[toolindex][gindex][0]
  10620. ? groupStudent[toolindex][gindex] &&
  10621. groupStudent[toolindex][gindex][0].name
  10622. : "空位置"
  10623. }}</span>
  10624. </div>
  10625. <div v-if="groupJson.number > 4">
  10626. <span
  10627. :class="{
  10628. isChair:
  10629. groupStudent[toolindex][gindex] &&
  10630. groupStudent[toolindex][gindex][4],
  10631. updateChair:
  10632. courseDetail.userid == userid &&
  10633. groupStudent[toolindex][gindex] &&
  10634. groupStudent[toolindex][gindex][4] &&
  10635. groupJson.islock == 2,
  10636. }"
  10637. ><span
  10638. class="updateChairBtn"
  10639. @click="
  10640. updateGroupChair(
  10641. groupStudent[toolindex][gindex] &&
  10642. groupStudent[toolindex][gindex][4]
  10643. )
  10644. "
  10645. >修改</span
  10646. ></span
  10647. ><span>{{
  10648. groupStudent[toolindex][gindex] &&
  10649. groupStudent[toolindex][gindex][4]
  10650. ? groupStudent[toolindex][gindex] &&
  10651. groupStudent[toolindex][gindex][4].name
  10652. : "空位置"
  10653. }}</span>
  10654. </div>
  10655. <div v-if="groupJson.number > 8">
  10656. <span
  10657. :class="{
  10658. isChair:
  10659. groupStudent[toolindex][gindex] &&
  10660. groupStudent[toolindex][gindex][8],
  10661. updateChair:
  10662. courseDetail.userid == userid &&
  10663. groupStudent[toolindex][gindex] &&
  10664. groupStudent[toolindex][gindex][8] &&
  10665. groupJson.islock == 2,
  10666. }"
  10667. ><span
  10668. class="updateChairBtn"
  10669. @click="
  10670. updateGroupChair(
  10671. groupStudent[toolindex][gindex] &&
  10672. groupStudent[toolindex][gindex][8]
  10673. )
  10674. "
  10675. >修改</span
  10676. ></span
  10677. ><span>{{
  10678. groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][8]
  10680. ? groupStudent[toolindex][gindex] &&
  10681. groupStudent[toolindex][gindex][8].name
  10682. : "空位置"
  10683. }}</span>
  10684. </div>
  10685. </div>
  10686. <div class="g_d_group_tableBox">
  10687. <div class="g_d_group_chair2">
  10688. <div v-if="groupJson.number > 2">
  10689. <span
  10690. :class="{
  10691. isChair:
  10692. groupStudent[toolindex][gindex] &&
  10693. groupStudent[toolindex][gindex][2],
  10694. updateChair:
  10695. courseDetail.userid == userid &&
  10696. groupStudent[toolindex][gindex] &&
  10697. groupStudent[toolindex][gindex][2] &&
  10698. groupJson.islock == 2,
  10699. }"
  10700. ><span
  10701. class="updateChairBtn"
  10702. @click="
  10703. updateGroupChair(
  10704. groupStudent[toolindex][gindex] &&
  10705. groupStudent[toolindex][gindex][2]
  10706. )
  10707. "
  10708. >修改</span
  10709. ></span
  10710. ><span>{{
  10711. groupStudent[toolindex][gindex] &&
  10712. groupStudent[toolindex][gindex][2]
  10713. ? groupStudent[toolindex][gindex] &&
  10714. groupStudent[toolindex][gindex][2].name
  10715. : "空位置"
  10716. }}</span>
  10717. </div>
  10718. <div v-if="groupJson.number > 6">
  10719. <span
  10720. :class="{
  10721. isChair:
  10722. groupStudent[toolindex][gindex] &&
  10723. groupStudent[toolindex][gindex][6],
  10724. updateChair:
  10725. courseDetail.userid == userid &&
  10726. groupStudent[toolindex][gindex] &&
  10727. groupStudent[toolindex][gindex][6] &&
  10728. groupJson.islock == 2,
  10729. }"
  10730. ><span
  10731. class="updateChairBtn"
  10732. @click="
  10733. updateGroupChair(
  10734. groupStudent[toolindex][gindex] &&
  10735. groupStudent[toolindex][gindex][6]
  10736. )
  10737. "
  10738. >修改</span
  10739. ></span
  10740. ><span>{{
  10741. groupStudent[toolindex][gindex] &&
  10742. groupStudent[toolindex][gindex][6]
  10743. ? groupStudent[toolindex][gindex] &&
  10744. groupStudent[toolindex][gindex][6].name
  10745. : "空位置"
  10746. }}</span>
  10747. </div>
  10748. </div>
  10749. <div class="g_d_group_table">
  10750. <div>
  10751. {{ g.name }}
  10752. </div>
  10753. <div>
  10754. <div
  10755. v-if="
  10756. courseDetail.userid == userid && groupJson.islock == 2
  10757. "
  10758. @click="deleteGroupChair(gindex)"
  10759. >
  10760. 移除组员
  10761. </div>
  10762. <div
  10763. @click="selectGroup(gindex)"
  10764. v-else-if="
  10765. groupStudentUid[toolindex] &&
  10766. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10767. "
  10768. >
  10769. 加入分组
  10770. </div>
  10771. <div
  10772. @click="
  10773. exitGroup(
  10774. groupStudent[toolindex][gindex] &&
  10775. groupStudent[toolindex][gindex][
  10776. groupStudentUid[toolindex][gindex].indexOf(userid)
  10777. ].id
  10778. )
  10779. "
  10780. v-else-if="
  10781. groupStudentUid[toolindex] &&
  10782. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10783. "
  10784. >
  10785. 退出分组
  10786. </div>
  10787. </div>
  10788. </div>
  10789. <div class="g_d_group_chair2">
  10790. <div v-if="groupJson.number > 3">
  10791. <span
  10792. :class="{
  10793. isChair:
  10794. groupStudent[toolindex][gindex] &&
  10795. groupStudent[toolindex][gindex][3],
  10796. updateChair:
  10797. courseDetail.userid == userid &&
  10798. groupStudent[toolindex][gindex] &&
  10799. groupStudent[toolindex][gindex][3] &&
  10800. groupJson.islock == 2,
  10801. }"
  10802. ><span
  10803. class="updateChairBtn"
  10804. @click="
  10805. updateGroupChair(
  10806. groupStudent[toolindex][gindex] &&
  10807. groupStudent[toolindex][gindex][3]
  10808. )
  10809. "
  10810. >修改</span
  10811. ></span
  10812. ><span>{{
  10813. groupStudent[toolindex][gindex] &&
  10814. groupStudent[toolindex][gindex][3]
  10815. ? groupStudent[toolindex][gindex] &&
  10816. groupStudent[toolindex][gindex][3].name
  10817. : "空位置"
  10818. }}</span>
  10819. </div>
  10820. <div v-if="groupJson.number > 7">
  10821. <span
  10822. :class="{
  10823. isChair:
  10824. groupStudent[toolindex][gindex] &&
  10825. groupStudent[toolindex][gindex][7],
  10826. updateChair:
  10827. courseDetail.userid == userid &&
  10828. groupStudent[toolindex][gindex] &&
  10829. groupStudent[toolindex][gindex][7] &&
  10830. groupJson.islock == 2,
  10831. }"
  10832. ><span
  10833. class="updateChairBtn"
  10834. @click="
  10835. updateGroupChair(
  10836. groupStudent[toolindex][gindex] &&
  10837. groupStudent[toolindex][gindex][7]
  10838. )
  10839. "
  10840. >修改</span
  10841. ></span
  10842. ><span>{{
  10843. groupStudent[toolindex][gindex] &&
  10844. groupStudent[toolindex][gindex][7]
  10845. ? groupStudent[toolindex][gindex] &&
  10846. groupStudent[toolindex][gindex][7].name
  10847. : "空位置"
  10848. }}</span>
  10849. </div>
  10850. </div>
  10851. </div>
  10852. <div class="g_d_group_chair">
  10853. <div v-if="groupJson.number > 1">
  10854. <span
  10855. :class="{
  10856. isChair:
  10857. groupStudent[toolindex][gindex] &&
  10858. groupStudent[toolindex][gindex][1],
  10859. updateChair:
  10860. courseDetail.userid == userid &&
  10861. groupStudent[toolindex][gindex] &&
  10862. groupStudent[toolindex][gindex][1] &&
  10863. groupJson.islock == 2,
  10864. }"
  10865. ><span
  10866. class="updateChairBtn"
  10867. @click="
  10868. updateGroupChair(
  10869. groupStudent[toolindex][gindex] &&
  10870. groupStudent[toolindex][gindex][1]
  10871. )
  10872. "
  10873. >修改</span
  10874. ></span
  10875. ><span>{{
  10876. groupStudent[toolindex][gindex] &&
  10877. groupStudent[toolindex][gindex][1]
  10878. ? groupStudent[toolindex][gindex] &&
  10879. groupStudent[toolindex][gindex][1].name
  10880. : "空位置"
  10881. }}</span>
  10882. </div>
  10883. <div v-if="groupJson.number > 5">
  10884. <span
  10885. :class="{
  10886. isChair:
  10887. groupStudent[toolindex][gindex] &&
  10888. groupStudent[toolindex][gindex][5],
  10889. updateChair:
  10890. courseDetail.userid == userid &&
  10891. groupStudent[toolindex][gindex] &&
  10892. groupStudent[toolindex][gindex][5] &&
  10893. groupJson.islock == 2,
  10894. }"
  10895. ><span
  10896. class="updateChairBtn"
  10897. @click="
  10898. updateGroupChair(
  10899. groupStudent[toolindex][gindex] &&
  10900. groupStudent[toolindex][gindex][5]
  10901. )
  10902. "
  10903. >修改</span
  10904. ></span
  10905. ><span>{{
  10906. groupStudent[toolindex][gindex] &&
  10907. groupStudent[toolindex][gindex][5]
  10908. ? groupStudent[toolindex][gindex] &&
  10909. groupStudent[toolindex][gindex][5].name
  10910. : "空位置"
  10911. }}</span>
  10912. </div>
  10913. <div v-if="groupJson.number > 9">
  10914. <span
  10915. :class="{
  10916. isChair:
  10917. groupStudent[toolindex][gindex] &&
  10918. groupStudent[toolindex][gindex][9],
  10919. updateChair:
  10920. courseDetail.userid == userid &&
  10921. groupStudent[toolindex][gindex] &&
  10922. groupStudent[toolindex][gindex][9] &&
  10923. groupJson.islock == 2,
  10924. }"
  10925. ><span
  10926. class="updateChairBtn"
  10927. @click="
  10928. updateGroupChair(
  10929. groupStudent[toolindex][gindex] &&
  10930. groupStudent[toolindex][gindex][9]
  10931. )
  10932. "
  10933. >修改</span
  10934. ></span
  10935. ><span>{{
  10936. groupStudent[toolindex][gindex] &&
  10937. groupStudent[toolindex][gindex][9]
  10938. ? groupStudent[toolindex][gindex] &&
  10939. groupStudent[toolindex][gindex][9].name
  10940. : "空位置"
  10941. }}</span>
  10942. </div>
  10943. </div>
  10944. </div>
  10945. </div>
  10946. </div>
  10947. </div>
  10948. <span slot="footer" class="dialog-footer">
  10949. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10950. </span>
  10951. </el-dialog>
  10952. <el-dialog
  10953. title="分组设置"
  10954. :visible.sync="dialogVisibleGroup2"
  10955. :append-to-body="true"
  10956. width="650px"
  10957. :before-close="handleClose"
  10958. class="dialog_diy"
  10959. >
  10960. <div class="groupBox">
  10961. <div v-if="groupJson2.group" class="groupContent">
  10962. <div class="groupTitle">请设置小组数量及名称</div>
  10963. <div
  10964. v-for="(item, index) in groupJson2.group"
  10965. :key="index"
  10966. class="groupName"
  10967. >
  10968. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10969. <el-input
  10970. v-model="item.name"
  10971. placeholder="请输入名称..."
  10972. style="width: 250px"
  10973. ></el-input>
  10974. <!-- <div class="groupBtn">
  10975. <el-button type="primary" size="small" @click="addGroup(index)">
  10976. 添加</el-button>
  10977. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10978. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10979. </div> -->
  10980. </div>
  10981. </div>
  10982. <div class="groupContent">
  10983. <div class="groupTitle">请设置每组人数</div>
  10984. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10985. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10986. <el-input
  10987. v-model="groupJson.number"
  10988. style="width: 150px"
  10989. placeholder="请输入2-10的数字"
  10990. @change="numberPan"
  10991. ></el-input>
  10992. </div>
  10993. </div>
  10994. <span slot="footer" class="dialog-footer">
  10995. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10996. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10997. </span>
  10998. </el-dialog>
  10999. <el-dialog
  11000. title="作业提交"
  11001. :visible.sync="dialogVisibleGroupWork"
  11002. :append-to-body="true"
  11003. width="500px"
  11004. :before-close="handleClose"
  11005. class="dialog_change"
  11006. >
  11007. <div class="marginT">
  11008. <div>上传文件</div>
  11009. <div
  11010. class="chapter_add"
  11011. @click="addImg($event)"
  11012. v-if="studyJuri[0].cover.length == 0"
  11013. >
  11014. <div class="up_photo">
  11015. <img src="../../assets/icon/uploadImg.png" alt />
  11016. </div>
  11017. <!-- <input
  11018. type="file"
  11019. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11020. style="display: none"
  11021. @change="beforeUpload1($event, 1)"
  11022. /> -->
  11023. <input
  11024. type="file"
  11025. accept="*"
  11026. style="display: none"
  11027. @change="beforeUpload1($event, 1)"
  11028. />
  11029. </div>
  11030. <!-- capture="camera" -->
  11031. <div
  11032. class="chapter_add"
  11033. style="
  11034. display: flex;
  11035. width: 100%;
  11036. flex-direction: row;
  11037. flex-wrap: wrap;
  11038. justify-content: flex-start;
  11039. padding: 15px 0;
  11040. "
  11041. v-if="studyJuri[0].cover.length > 0"
  11042. >
  11043. <div class="upCover">
  11044. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11045. <img :src="word" alt v-else-if="fileType == 1" />
  11046. <img :src="video" alt v-else-if="fileType == 2" />
  11047. <img :src="word2" alt v-else-if="fileType == 3" />
  11048. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11049. <div class="deleteWord" @click="clean(1)">
  11050. <img src="../../assets/icon/deleteWorks.png" alt />
  11051. </div>
  11052. </div>
  11053. </div>
  11054. </div>
  11055. <div
  11056. class="upload_send"
  11057. @click="addCourseWorks2(taskCount)"
  11058. v-if="!proVisible"
  11059. >
  11060. 提交
  11061. </div>
  11062. </el-dialog>
  11063. <el-dialog
  11064. title="修改分组"
  11065. :visible.sync="dialogVisibleUpdateGroup"
  11066. :append-to-body="true"
  11067. width="350px"
  11068. :before-close="handleClose"
  11069. class="dialog_diy"
  11070. >
  11071. <div>
  11072. <h2>
  11073. {{ this.updateGroupUser.name }}
  11074. </h2>
  11075. <div style="color: rgb(171 171 171); margin-top: 10px">
  11076. 请选择要进入的分组
  11077. </div>
  11078. <el-radio-group v-model="checkChair">
  11079. <el-radio
  11080. style="display: block; margin-top: 20px"
  11081. v-for="(item, index) in updateGroupArray"
  11082. :label="item.label"
  11083. :key="index"
  11084. >{{ item.name }}</el-radio
  11085. >
  11086. </el-radio-group>
  11087. </div>
  11088. <span slot="footer" class="dialog-footer">
  11089. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11090. <el-button type="primary" @click="updateChair">确定</el-button>
  11091. </span>
  11092. </el-dialog>
  11093. <el-dialog
  11094. title="移除组员"
  11095. :visible.sync="dialogVisibleDeleteGroup"
  11096. :append-to-body="true"
  11097. width="350px"
  11098. :before-close="handleClose"
  11099. class="dialog_diy"
  11100. >
  11101. <div>
  11102. <h2>
  11103. {{ this.deleteGroupArray.name }}
  11104. </h2>
  11105. <div style="color: rgb(171 171 171); margin-top: 10px">
  11106. 请选择要删除的组员
  11107. </div>
  11108. <el-checkbox-group v-model="checkDeleteGroup">
  11109. <el-checkbox
  11110. style="display: flex; margin-top: 20px"
  11111. v-for="(item, index) in deleteGroupUser"
  11112. :label="item.userid"
  11113. :key="index"
  11114. >{{ item.name }}</el-checkbox
  11115. >
  11116. </el-checkbox-group>
  11117. </div>
  11118. <span slot="footer" class="dialog-footer">
  11119. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11120. <el-button type="primary" @click="deleteChair">确定</el-button>
  11121. </span>
  11122. </el-dialog>
  11123. <el-dialog
  11124. title="批量上传"
  11125. :visible.sync="dialogVisiblePl"
  11126. :append-to-body="true"
  11127. width="700px"
  11128. :before-close="handleClose"
  11129. class="dialog_change"
  11130. >
  11131. <div class="marginT">
  11132. <div class="plworkBox">
  11133. <div
  11134. class="chapter_add"
  11135. style="
  11136. display: flex;
  11137. width: 150px;
  11138. flex-direction: row;
  11139. flex-wrap: wrap;
  11140. justify-content: flex-start;
  11141. margin: 0 10px 10px 0;
  11142. "
  11143. v-for="(item, index) in plworkFile"
  11144. :key="index"
  11145. >
  11146. <div class="upCover2">
  11147. <img
  11148. :src="item.url"
  11149. alt
  11150. v-if="item.fileType == 1"
  11151. @click="previewImg(item.url)"
  11152. />
  11153. <img :src="word" alt v-else-if="item.fileType == 4" />
  11154. <img :src="video" alt v-else />
  11155. <!-- <span class="picName">{{ item.name }}</span> -->
  11156. <!-- <el-input
  11157. v-model="item.username"
  11158. placeholder="请输入学生名字"
  11159. style="margin-top: 10px"
  11160. ></el-input> -->
  11161. <div
  11162. class="pl_select_box"
  11163. @click="
  11164. getUpdateMore(true, checkUpload(), item.username, index)
  11165. "
  11166. >
  11167. {{ getSName(item.username) }}
  11168. </div>
  11169. <!-- <el-select
  11170. style="margin-top: 10px"
  11171. v-model="item.username"
  11172. filterable
  11173. allow-create
  11174. placeholder="请选择学生"
  11175. >
  11176. <el-option
  11177. v-for="item1 in checkUpload()"
  11178. :key="item1.userid"
  11179. :label="item1.name ? item1.name : item1.username"
  11180. :value="item1.userid"
  11181. >
  11182. </el-option>
  11183. </el-select> -->
  11184. <div class="deleteWord" @click="clean2(index)">
  11185. <img src="../../assets/icon/deleteWorks.png" alt />
  11186. </div>
  11187. </div>
  11188. </div>
  11189. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11190. <div class="up_photo2">
  11191. <img src="../../assets/icon/plwork.png" alt />
  11192. <span>点击上传文件</span>
  11193. </div>
  11194. <input
  11195. type="file"
  11196. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11197. multiple="multiple"
  11198. style="display: none"
  11199. @change="beforeUpload3($event, 6)"
  11200. />
  11201. </div>
  11202. </div>
  11203. </div>
  11204. <!-- capture="camera" -->
  11205. <div
  11206. class="upload_send"
  11207. @click="addCourseWorksPl(taskCount)"
  11208. v-if="!proVisible2"
  11209. >
  11210. 提交
  11211. </div>
  11212. </el-dialog>
  11213. <el-dialog
  11214. title="修改名称"
  11215. :visible.sync="dialogVisibleSname"
  11216. width="500px"
  11217. :before-close="handleClose"
  11218. class="dialog_diy"
  11219. center
  11220. >
  11221. <div
  11222. style="
  11223. text-align: center;
  11224. display: flex;
  11225. align-items: center;
  11226. justify-content: center;
  11227. "
  11228. >
  11229. <span class="tian1">名称</span>
  11230. <div
  11231. class="pl_select_box"
  11232. style="margin-left: 10px; width: 200px"
  11233. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11234. >
  11235. {{ getSName(worksSName) }}
  11236. </div>
  11237. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11238. placeholder="请选择学生">
  11239. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11240. :value="item.userid">
  11241. </el-option>
  11242. </el-select> -->
  11243. <!-- <el-input
  11244. v-model="worksSName"
  11245. style="width: 250px; margin: 15px 0px"
  11246. ></el-input> -->
  11247. </div>
  11248. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11249. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11250. <el-button type="primary" @click="updateName">确 定</el-button>
  11251. </span>
  11252. </el-dialog>
  11253. <el-dialog
  11254. title="英语写作"
  11255. :visible.sync="engDialogVisible"
  11256. :append-to-body="true"
  11257. width="800px"
  11258. :before-close="handleClose"
  11259. class="dialog_diy"
  11260. >
  11261. <onlineWrite
  11262. v-if="engDialogVisible"
  11263. :englishList="englishList"
  11264. :myAnswerList1="myAnswerList1"
  11265. :userid="userid"
  11266. ref="engJson"
  11267. ></onlineWrite>
  11268. <span slot="footer" class="dialog-footer">
  11269. <el-button @click="engDialogVisible = false">取 消</el-button>
  11270. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11271. </span>
  11272. </el-dialog>
  11273. <el-dialog
  11274. title="英语写作"
  11275. :visible.sync="engUpdateDialogVisible"
  11276. :append-to-body="true"
  11277. width="800px"
  11278. :before-close="handleClose"
  11279. class="dialog_diy fullStyle"
  11280. >
  11281. <div class="engUpBox">
  11282. <div class="engUpTop">
  11283. <div class="engTitle">
  11284. <div>作文题目:</div>
  11285. <div>{{ englishList1.engTitle }}</div>
  11286. </div>
  11287. <div class="engText">
  11288. <div>作文内容:</div>
  11289. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11290. </div>
  11291. </div>
  11292. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11293. <div class="oldBox">
  11294. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11295. <div class="oldText">
  11296. <div class="detailBox">
  11297. <div class="oldDetail">
  11298. <div>标题:</div>
  11299. <div>{{ oldEnglishJson.engTitle }} </div>
  11300. </div>
  11301. <div class="oldDetail1">
  11302. <div>正文:</div>
  11303. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11304. </div>
  11305. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11306. <div>图片:</div>
  11307. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11308. </div>
  11309. </div>
  11310. </div>
  11311. </div>
  11312. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11313. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11314. <div class="oldText">
  11315. <div class="detailBox" style="position: relative;">
  11316. <div class="oldDetail">
  11317. <div>标题:</div>
  11318. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11319. <div v-else v-html="newEnglishList.engTitle"></div>
  11320. </div>
  11321. <div class="oldDetail">
  11322. <div>正文:</div>
  11323. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11324. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11325. </div>
  11326. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11327. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11328. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11329. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11334. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11335. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11336. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11337. </div>
  11338. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11339. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11340. <div class="detailBox" style="position: relative;">
  11341. <div class="oldDetail">
  11342. <div>标题:</div>
  11343. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11344. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11345. </div>
  11346. <div class="oldDetail">
  11347. <div>正文:</div>
  11348. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11349. <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText)"></div>
  11350. </div>
  11351. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11352. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11353. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11354. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11355. </div>
  11356. </div>
  11357. <div class="oldText" v-else-if="newEngIndex == -1">
  11358. <div class="detailBox" style="position: relative;">
  11359. <div class="oldDetail">
  11360. <div>标题:</div>
  11361. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11362. <div v-else v-html="newEnglishList.engTitle"></div>
  11363. </div>
  11364. <div class="oldDetail">
  11365. <div>正文:</div>
  11366. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11367. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11368. </div>
  11369. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11370. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11371. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11372. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11373. </div>
  11374. </div>
  11375. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11376. <div class="detailBox" style="position: relative;">
  11377. <div class="oldDetail">
  11378. <div>标题:</div>
  11379. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11380. <div v-else>
  11381. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11382. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11383. </div>
  11384. </div>
  11385. <div class="oldDetail">
  11386. <div>正文:</div>
  11387. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div>
  11388. <div v-else>
  11389. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11390. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText)"></div>
  11391. </div>
  11392. </div>
  11393. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11394. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11395. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11396. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11397. </div>
  11398. </div>
  11399. </div>
  11400. </div>
  11401. </div>
  11402. <span slot="footer" class="dialog-footer">
  11403. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11404. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11405. </span>
  11406. </el-dialog>
  11407. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11408. <interVideo
  11409. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11410. :videoJson="videoJson"
  11411. :userid="userid"
  11412. :id="id"
  11413. :courseType="courseType"
  11414. :taskCount="taskCount"
  11415. :toolindex="toolindex"
  11416. ></interVideo>
  11417. <UpdateMore
  11418. :dialogVisibleMember.sync="dialogVisibleMember"
  11419. :cList="uploadStudentJuri"
  11420. :userid="userid"
  11421. :searchTN="worksSName2"
  11422. @setPlname="setPlname"
  11423. ></UpdateMore>
  11424. <wordCloud
  11425. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11426. :data="wordCloudData"
  11427. ></wordCloud>
  11428. <el-dialog
  11429. title="挑人"
  11430. :visible.sync="dialogVisiblePickPeople"
  11431. width="650px"
  11432. :before-close="handleClose"
  11433. class="dialog_diy"
  11434. center
  11435. >
  11436. <div class="pick_box">
  11437. <div
  11438. class="noWorksName"
  11439. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11440. v-for="(item, index) in uploadStudentJuri"
  11441. :key="index"
  11442. @click="pickStudent(item)"
  11443. >
  11444. {{ item.name }}
  11445. </div>
  11446. </div>
  11447. </el-dialog>
  11448. </div>
  11449. </template>
  11450. <script>
  11451. import "../../common/aws-sdk-2.235.1.min.js";
  11452. // import pdf from "./components/pdf3";
  11453. import pdf from "../components/vpdf";
  11454. import AskStatic from "../components/askStatic";
  11455. import AskStatic2 from "../components/askStatic2";
  11456. import AnswerData2 from "../components/answerData2";
  11457. import AnswerData from "../components/answerData";
  11458. import EditorBar from "../tools/wangEnduit.vue";
  11459. import Table from "../tools/table.vue";
  11460. import Time from "../tools/time.vue";
  11461. import Mind from "../tools/jsmind.vue";
  11462. import Sunburst from "../tools/sunburst";
  11463. import SeeBoard from "../tools/seeBoard";
  11464. import * as imageConversion from "image-conversion";
  11465. import Audio from "../components/audio.vue";
  11466. import ImgDraw from "../tools/imgDraw/imgDraw";
  11467. import { Empty } from "element-ui";
  11468. import RecordRTC from "recordrtc";
  11469. import interVideo from "../interVideo/index.vue";
  11470. import UpdateMore from "../updateMore/updateMore.vue";
  11471. import wordCloud from "../wordCloud/index.vue";
  11472. import axios from "axios";
  11473. import JSZip from "jszip";
  11474. import FileSaver from "file-saver";
  11475. import onlineWrite from "../components/onlineWrite";
  11476. import englishEva from "../components/englishEva";
  11477. import * as Diff from 'diff'
  11478. const getFile = (url) => {
  11479. return new Promise((resolve, reject) => {
  11480. var credentials = {
  11481. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11482. secretAccessKey: "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",
  11483. }; //秘钥形式的登录上传
  11484. window.AWS.config.update(credentials);
  11485. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11486. let url2 = url;
  11487. let _url2 = "";
  11488. if (
  11489. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11490. ) {
  11491. _url2 = url2.split(
  11492. "https://view.officeapps.live.com/op/view.aspx?src="
  11493. )[1];
  11494. } else {
  11495. _url2 = url2;
  11496. }
  11497. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11498. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11499. var params = {
  11500. Bucket: "ccrb",
  11501. Key: name
  11502. };
  11503. s3.getObject(params, function (err, data) {
  11504. if (err) {
  11505. console.log(err, err.stack)
  11506. resolve({ data: 1 });
  11507. }else {
  11508. resolve({ data: data.Body });
  11509. console.log(data);
  11510. } // sxuccessful response
  11511. });
  11512. // axios({
  11513. // method: "get",
  11514. // url,
  11515. // responseType: "blob",
  11516. // })
  11517. // .then((data) => {
  11518. // resolve({ data: data.data });
  11519. // })
  11520. // .catch((error) => {
  11521. // resolve({ data: 1 });
  11522. // // reject(error.toString());
  11523. // });
  11524. });
  11525. };
  11526. export default {
  11527. components: {
  11528. EditorBar,
  11529. Time,
  11530. pdf,
  11531. AskStatic,
  11532. AskStatic2,
  11533. Mind,
  11534. Sunburst,
  11535. SeeBoard,
  11536. AnswerData2,
  11537. AnswerData,
  11538. Audio,
  11539. ImgDraw,
  11540. Table,
  11541. interVideo,
  11542. UpdateMore,
  11543. wordCloud,
  11544. onlineWrite,
  11545. englishEva,
  11546. },
  11547. data() {
  11548. return {
  11549. bg: null,
  11550. drawShow: false,
  11551. dialogVisible: false,
  11552. dialogVisiblePl: false,
  11553. commentDialogVisible: false,
  11554. dialogVisibleMember: false,
  11555. dialogVisibleWordCloud: false,
  11556. videoVisible: false,
  11557. isStar: false,
  11558. studentEvalDialogVisible: false,
  11559. studentEvalDialogVisibleTeacher: false,
  11560. dialogVisibleSelect: false,
  11561. dialogVisibleSelectTeacher: false,
  11562. dialogVisibleScore: false,
  11563. dialogVisibleSentence: false,
  11564. dialogVisibleSentenceTeacher: false,
  11565. dialogVisibleSentence1: false,
  11566. dialogVisibleWorks: false,
  11567. dialogVisibleTable: false,
  11568. dialogVisibleTableTeacher: false,
  11569. dialogVisibleWord: false,
  11570. dialogVisibleWordTeacher: false,
  11571. dialogVisibleTable2: false,
  11572. dialogVisibleTable3: false,
  11573. dialogVisibleGroupWork: false,
  11574. dialogVisibleUpdateGroup: false,
  11575. dialogVisibleDeleteGroup: false,
  11576. dialogVisibleSname: false,
  11577. dialogVisibleVideo: false,
  11578. dialogVisiblePickPeople: false,
  11579. engDialogVisible: false,
  11580. engUpdateDialogVisible: false,
  11581. engEvaDialogVisible: false,
  11582. evaEngJson: {
  11583. teacherJson: {},
  11584. studentJson: {},
  11585. message: {},
  11586. },
  11587. isNoUserid:false,
  11588. engListLength:0,
  11589. engWid:"",
  11590. newEnglishList:{
  11591. engTitle:"",
  11592. engText:"",
  11593. },
  11594. newEnglishList1:[],
  11595. oldEnglishJson:{},
  11596. oldEnglishJson1:{},
  11597. englishList1:{},
  11598. englishList:{},
  11599. myAnswerList1:{},
  11600. topHeight:0,
  11601. newEngIndex:-1,
  11602. englishToolIndex:0,
  11603. worksSName: "",
  11604. classJuri: [],
  11605. uploadStudentJuri: [],
  11606. uploadCid: "",
  11607. snameWid: "",
  11608. sStudent: {},
  11609. sTool: "",
  11610. bzText: "",
  11611. commentDetail: [],
  11612. selectAnswer: [],
  11613. videoDetail: {},
  11614. selectJson: {},
  11615. eScore: { eBzText: "", eStar: [] },
  11616. id: this.$route.query.courseId,
  11617. userid: this.$route.query.userid,
  11618. classId: this.$route.query.cid,
  11619. // courseTypeLine: this.$route.query.type,
  11620. oid: this.$route.query.oid,
  11621. org: this.$route.query.org,
  11622. tType: this.$route.query.tType,
  11623. courseType: this.$route.query.type,
  11624. screenType: this.$route.query.screenType,
  11625. tcid2: this.$route.query.tcid,
  11626. tcid: "",
  11627. pptImgUrl: "",
  11628. pptImgUrl1: "",
  11629. commentText: "",
  11630. full: false,
  11631. sIsOpen: false,
  11632. IsLookOpen: false,
  11633. IsFollow: false,
  11634. pzDialog: false,
  11635. contentDialog: false,
  11636. mlDialog: false,
  11637. type: 1,
  11638. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11639. sentenceList1: [],
  11640. tableJson: [],
  11641. tableJsonO: [],
  11642. wordJson: [],
  11643. wordJsonO: [],
  11644. vedio: [],
  11645. text: [],
  11646. textList: [],
  11647. line: [],
  11648. lineList: [],
  11649. chapTools: [],
  11650. chapToolList: [],
  11651. file: [],
  11652. fileC: [],
  11653. vedioTime: [],
  11654. upToolImg: "",
  11655. preTime: 0,
  11656. rateList: {
  11657. ca: 0,
  11658. },
  11659. rateParams: [],
  11660. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11661. studyJuri: [
  11662. {
  11663. content: "",
  11664. cover: [],
  11665. upVedio: [],
  11666. upFile: [],
  11667. },
  11668. ],
  11669. isClose: 0,
  11670. plworkFile: [],
  11671. mr: require("../../assets/vedioPic.png"),
  11672. word: require("../../assets/icon/isWord.png"),
  11673. word2: require("../../assets/icon/word2.png"),
  11674. video: require("../../assets/icon/isVideo.png"),
  11675. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11676. likes: require("../../assets/icon/comment/likes.png"),
  11677. scoreImg: require("../../assets/score.png"),
  11678. courseDetail: {},
  11679. reply: "",
  11680. isSelect: false,
  11681. chapInfo: [],
  11682. chapInfoList: [],
  11683. taskCount: 0,
  11684. imgList: [],
  11685. noImgList: [],
  11686. pzList: [],
  11687. timeWorkList: [],
  11688. PlTextList: [
  11689. "Excellent!",
  11690. "nice!",
  11691. "很有创意!",
  11692. "还不错哦~",
  11693. "继续努力哦~",
  11694. ],
  11695. isClickNav: "",
  11696. navId: "",
  11697. playerOptions: {
  11698. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11699. autoplay: false, //如果true,浏览器准备好时开始回放。
  11700. muted: false, // 默认情况下将会消除任何音频。
  11701. loop: false, // 导致视频一结束就重新开始。
  11702. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11703. language: "zh-CN",
  11704. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11705. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11706. sources: [
  11707. {
  11708. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11709. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11710. },
  11711. ],
  11712. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11713. // poster: dataRes.imgUrl, //你的封面地址
  11714. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11715. controlBar: {
  11716. timeDivider: true, //当前时间和持续时间的分隔符
  11717. durationDisplay: true, //显示持续时间
  11718. remainingTimeDisplay: false, //是否显示剩余时间功能
  11719. fullscreenToggle: true, //全屏按钮
  11720. },
  11721. },
  11722. playerOptions1: {
  11723. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11724. autoplay: false, //如果true,浏览器准备好时开始回放。
  11725. muted: false, // 默认情况下将会消除任何音频。
  11726. loop: false, // 导致视频一结束就重新开始。
  11727. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11728. language: "zh-CN",
  11729. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11730. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11731. sources: [
  11732. {
  11733. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11734. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11735. },
  11736. ],
  11737. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11738. // poster: dataRes.imgUrl, //你的封面地址
  11739. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11740. controlBar: {
  11741. timeDivider: true, //当前时间和持续时间的分隔符
  11742. durationDisplay: true, //显示持续时间
  11743. remainingTimeDisplay: false, //是否显示剩余时间功能
  11744. fullscreenToggle: true, //全屏按钮
  11745. },
  11746. },
  11747. playerO: {},
  11748. noneBtnImg: false,
  11749. proVisible: false,
  11750. proVisible2: false,
  11751. progress: 0,
  11752. isFinishSize: 0,
  11753. isAllSize: 0,
  11754. questionAnswer: "",
  11755. answerQ: "", //问答标题
  11756. rateJson: [],
  11757. wbCount: 0,
  11758. wordCount: 0,
  11759. mindCount: 0,
  11760. askCount: 0,
  11761. noteCount: 0,
  11762. mindNetWorkCount: 0,
  11763. libraryCount: 0,
  11764. workCount: 0,
  11765. timeCount: 0,
  11766. answerCount: 0,
  11767. trainCount: 0,
  11768. evalCount: 0,
  11769. dialogImageUrl: "",
  11770. pictureDialog: false,
  11771. toolTypeList: [],
  11772. dialogVisible1: false,
  11773. dialogVisible2: false,
  11774. dialogVisible3: false,
  11775. dialogVisible6: false,
  11776. dialogVisible4: false,
  11777. isNoHomeWork: false,
  11778. dialogVisible5: false,
  11779. dialogVisible5Teacher: false,
  11780. dialogVisibleChoice: false,
  11781. dialogVisibleChoiceTeacher: false,
  11782. answerDialogVisible: false,
  11783. answerDialogVisibleTeacher: false,
  11784. juriVisible: false,
  11785. timeDialogVisible: false,
  11786. replyDialogVisible: false,
  11787. toolDialogVisible: false,
  11788. replyIndex: 0,
  11789. replyPid: "",
  11790. radio: [],
  11791. isAsk: false,
  11792. askJson: {
  11793. askCount: 1,
  11794. askTitle: "",
  11795. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11796. },
  11797. testJson: {},
  11798. checkJson: [],
  11799. askList: [],
  11800. answerList: [],
  11801. navList: [],
  11802. addPzDialog: false,
  11803. pzConText: "",
  11804. worksStudent: [],
  11805. isCloseList: [],
  11806. workStudent: [],
  11807. groupStudent: [],
  11808. groupStudentUid: [],
  11809. noWorksS: [],
  11810. isWorksS: [],
  11811. noWorksStudent: [],
  11812. toolindex: 0,
  11813. toolDetailIndex: null,
  11814. groupIndex: 0,
  11815. workTypeB: false,
  11816. workTypeC: false,
  11817. isAnswer: false,
  11818. isHovered: false,
  11819. isHovered1: false,
  11820. isHovered2: false,
  11821. timer: null,
  11822. opertimer: null,
  11823. showType: 0,
  11824. fileType: 0,
  11825. showPDF: false,
  11826. noteName: "",
  11827. evaJuri: [],
  11828. evalua: "",
  11829. eTitle: "",
  11830. eName: "",
  11831. eJson: {},
  11832. fid: "", //一级
  11833. sid: "", //二级
  11834. tid: "", //二级
  11835. typeMode: 1,
  11836. eJSONNum: 0,
  11837. Etype: 1,
  11838. data: {
  11839. meta: {
  11840. name: "example",
  11841. author: "dd@163.com",
  11842. version: "0.2",
  11843. },
  11844. format: "node_array",
  11845. data: [{ id: "root", isroot: true, topic: "" }],
  11846. },
  11847. fullDialogVisible: false,
  11848. fulltype: "",
  11849. fullUrl: "",
  11850. commentIndexJson: {},
  11851. Stbodywidth: 0,
  11852. ispzType: 0,
  11853. pzType: 1,
  11854. wScore: 0,
  11855. scoreDetail: "",
  11856. videoStart: false,
  11857. recorder: null,
  11858. groupJson: {},
  11859. islock: false,
  11860. groupJson2: {},
  11861. dialogVisibleGroup: false,
  11862. dialogVisibleGroup2: false,
  11863. updateGroupArray: [],
  11864. updateGroupUser: {},
  11865. deleteGroupUser: [],
  11866. deleteGroupArray: {},
  11867. checkChair: "",
  11868. checkDeleteGroup: [],
  11869. inviteCode: "",
  11870. courseGroupStudent: [],
  11871. courseGroupStudentUid: [],
  11872. courseGroup: {},
  11873. isGroup: false,
  11874. // toolIndex: null,
  11875. tool: {},
  11876. isWorkTool: [
  11877. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11878. ], //, 40
  11879. videoJson: {},
  11880. toolType: 0,
  11881. checktoolArray: [],
  11882. vChapterData: [],
  11883. isUpdateToolDetail: false,
  11884. isUpdateToolDetail1: false,
  11885. updateToolDetailInner: "",
  11886. checkboxList: [],
  11887. plIndex: "",
  11888. worksSName2: "",
  11889. worksSid: "",
  11890. wordCloudData: [],
  11891. isPickStudent: [],
  11892. pzStype: 1,
  11893. myAnList: {},
  11894. userMes:{},
  11895. downLoading: false,
  11896. greyType: false,
  11897. correctWord: [],
  11898. isUpdateText: "",
  11899. };
  11900. },
  11901. methods: {
  11902. gx(){
  11903. this.$forceUpdate();
  11904. },
  11905. isUpdateCorrect(t,p){
  11906. if(this.greyType == false){
  11907. this.isUpdateText = t;
  11908. this.greyType = true;
  11909. }else{
  11910. if(p == 1){
  11911. this.newEnglishList.engText = this.isUpdateText;
  11912. }else if(p == 2){
  11913. this.oldEnglishJson1.engText = this.isUpdateText;
  11914. }else if(p == 3){
  11915. this.newEnglishList.engText = this.isUpdateText;
  11916. }else{
  11917. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  11918. }
  11919. this.greyType = false
  11920. }
  11921. },
  11922. aiCorrect(t,p){
  11923. let aiText = "";
  11924. const loading = this.$loading.service({
  11925. background: "rgba(255, 255, 255)",
  11926. target: document.querySelectorAll(".loadingText")[0],
  11927. });
  11928. let param = {
  11929. model: "gpt-3.5-turbo",
  11930. temperature: 0,
  11931. max_tokens: 2048,
  11932. top_p: 1,
  11933. frequency_penalty: 0,
  11934. presence_penalty: 0,
  11935. messages: [
  11936. {
  11937. role: "user",
  11938. content:
  11939. "你的任务是为文字内容进行批注,请依照以下步骤完成任务,并仅显示第二步完成的内容:1.校对并更正:" + t,
  11940. },
  11941. ],
  11942. uid: this.userid,
  11943. stream: false,
  11944. };
  11945. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  11946. (res) => {
  11947. if (
  11948. res.data.FunctionResponse &&
  11949. res.data.FunctionResponse.result &&
  11950. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  11951. ) {
  11952. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  11953. return;
  11954. }
  11955. aiText =
  11956. res.data.FunctionResponse.choices[0].message.content;
  11957. aiText = aiText.replace(/%/g,"%25");
  11958. // let w = "";
  11959. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  11960. // for(var k = 0;k<a.length;k++){
  11961. // //diffWordsWithSpace
  11962. // if(a.length > 1){
  11963. // if(a[k].added == true){
  11964. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  11965. // }else if(a[k].removed == true){
  11966. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  11967. // }else{
  11968. // w += '<span>' + a[k].value + '</span>';
  11969. // }
  11970. // }else{
  11971. // if(p == 1){
  11972. // w = this.newEnglishList.engText;
  11973. // }else if(p == 2){
  11974. // w = this.oldEnglishJson1.engText;
  11975. // }else if(p == 3){
  11976. // w = this.newEnglishList.engText;
  11977. // }else{
  11978. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  11979. // }
  11980. // }
  11981. // }
  11982. if(p == 1){
  11983. this.newEnglishList.engText = aiText;
  11984. }else if(p == 2){
  11985. this.oldEnglishJson1.engText = aiText;
  11986. }else if(p == 3){
  11987. this.newEnglishList.engText = aiText;
  11988. }else{
  11989. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  11990. }
  11991. loading.close();
  11992. },
  11993. (err) => {
  11994. console.log(err);
  11995. loading.close();
  11996. }
  11997. );
  11998. },
  11999. addToolChoose() {
  12000. if (!this.checktoolArray.length) {
  12001. this.$message.error("请选择要添加的任务");
  12002. return;
  12003. }
  12004. if (
  12005. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12006. this.taskCount
  12007. ].toolChoose[0].tool.length
  12008. ) {
  12009. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12010. this.taskCount
  12011. ].toolChoose[0].tool = this.checktoolArray;
  12012. } else {
  12013. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12014. this.taskCount
  12015. ].toolChoose.push({
  12016. tool: this.checktoolArray,
  12017. toolDetail: "",
  12018. toolType: 0,
  12019. askCount: 1,
  12020. askTitle: "",
  12021. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12022. });
  12023. }
  12024. let params = [
  12025. {
  12026. cid: this.id,
  12027. chapters: JSON.stringify(this.chapInfoList),
  12028. uid: this.userid,
  12029. unitIndex: this.courseType,
  12030. },
  12031. ];
  12032. this.ajax
  12033. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12034. .then((res) => {
  12035. this.$message({
  12036. message: "添加成功",
  12037. type: "success",
  12038. });
  12039. this.checktoolArray = [];
  12040. this.getCourseDetail(2);
  12041. this.checkBz(
  12042. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12043. this.taskCount
  12044. ].toolChoose.length - 1
  12045. );
  12046. this.toolDialogVisible = false;
  12047. this.refreshCourse();
  12048. this.$forceUpdate();
  12049. })
  12050. .catch((err) => {
  12051. console.error(err);
  12052. });
  12053. },
  12054. checkBz(index) {
  12055. this.isUpdateToolDetail = false;
  12056. this.$forceUpdate();
  12057. setTimeout(() => {
  12058. document.scrollingElement.scrollTop =
  12059. document.querySelectorAll(".filebox")[index].offsetTop +
  12060. document.querySelector(".student_body").offsetTop;
  12061. }, 500);
  12062. },
  12063. updateToolDetail(i, type) {
  12064. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12065. this.toolDetailIndex = i
  12066. this.isUpdateToolDetail1 = true;
  12067. setTimeout(() => {
  12068. this.updateToolDetailInner = JSON.parse(
  12069. JSON.stringify(
  12070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12071. this.taskCount
  12072. ].toolChoose[i].toolDetail
  12073. )
  12074. );
  12075. document.querySelector(".checkTextArea").focus();
  12076. }, 0);
  12077. } else if((this.isUpdateToolDetail1 && type != 2)){
  12078. // this.toolDetailIndex = i;
  12079. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12080. this.taskCount
  12081. ].toolChoose[i].toolDetail = JSON.parse(
  12082. JSON.stringify(this.updateToolDetailInner)
  12083. );
  12084. let params = [
  12085. {
  12086. cid: this.id,
  12087. chapters: JSON.stringify(this.chapInfoList),
  12088. uid: this.userid,
  12089. unitIndex: this.courseType,
  12090. },
  12091. ];
  12092. this.ajax
  12093. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12094. .then((res) => {
  12095. this.isUpdateToolDetail1 = false;
  12096. this.$message({
  12097. message: "修改成功",
  12098. type: "success",
  12099. });
  12100. this.toolDetailIndex = null;
  12101. this.updateToolDetailInner = "";
  12102. this.getCourseDetail(2);
  12103. this.$forceUpdate();
  12104. })
  12105. .catch((err) => {
  12106. console.error(err);
  12107. });
  12108. } else if((this.isUpdateToolDetail1 && type == 2)){
  12109. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12110. this.taskCount
  12111. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12112. JSON.stringify(this.updateToolDetailInner)
  12113. );
  12114. let params = [
  12115. {
  12116. cid: this.id,
  12117. chapters: JSON.stringify(this.chapInfoList),
  12118. uid: this.userid,
  12119. unitIndex: this.courseType,
  12120. },
  12121. ];
  12122. this.ajax
  12123. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12124. .then((res) => {
  12125. this.$message({
  12126. message: "修改成功",
  12127. type: "success",
  12128. });
  12129. this.toolDetailIndex = i;
  12130. this.isUpdateToolDetail1 = true;
  12131. setTimeout(() => {
  12132. this.updateToolDetailInner = JSON.parse(
  12133. JSON.stringify(
  12134. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12135. this.taskCount
  12136. ].toolChoose[i].toolDetail
  12137. )
  12138. );
  12139. document.querySelector(".checkTextArea").focus();
  12140. }, 0);
  12141. this.getCourseDetail(2);
  12142. this.$forceUpdate();
  12143. })
  12144. .catch((err) => {
  12145. console.error(err);
  12146. });
  12147. }
  12148. },
  12149. jumpGj(i, j, k, l) {
  12150. for (var z = 0; z < this.navList.length; z++) {
  12151. for (var q = 0; q < this.navList[z].task.length; q++) {
  12152. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12153. this.navList[z].task[q].tool[w].isTool = false;
  12154. }
  12155. }
  12156. }
  12157. this.navList[i].task[j].tool[k].isTool =
  12158. !this.navList[i].task[j].tool[k].isTool;
  12159. var a = document.scrollingElement;
  12160. this.navId = ""
  12161. let target = document.querySelector(`#gj${k}`);
  12162. if (target) {
  12163. target.scrollIntoView(true);
  12164. setTimeout(() => {
  12165. a.scrollTop = a.scrollTop - 150;
  12166. }, 0);
  12167. }
  12168. if (l) {
  12169. this.courseType = i;
  12170. // this.navId = l;
  12171. this.taskCount = j;
  12172. this.selectPz();
  12173. this.getHomeWork();
  12174. this.getCourseDetail(2);
  12175. }
  12176. // var b = this.$refs["bz" + k][0];
  12177. // a.scrollTop = b.offsetTop;
  12178. },
  12179. addTools2(i) {
  12180. if (i == 4) {
  12181. // this.openTools2(4);
  12182. this.$message.error("暂未开放");
  12183. return;
  12184. }
  12185. if (i == 45) {
  12186. // this.openTools2(45);
  12187. this.$message.error("暂未开放");
  12188. return;
  12189. }
  12190. if (i == 47) {
  12191. // this.openTools2(47);
  12192. this.$message.error("暂未开放");
  12193. return;
  12194. }
  12195. if (i == 49) {
  12196. // this.openTools2(49);
  12197. this.$message.error("暂未开放");
  12198. return;
  12199. }
  12200. if (i == 62) {
  12201. // this.openTools(itemTaskIndex, 62, toolIndex);
  12202. this.$message.error("暂未开放");
  12203. return;
  12204. }
  12205. if (i == 15) {
  12206. // this.openTools(itemTaskIndex, 15, toolIndex);
  12207. this.$message.error("暂未开放");
  12208. return;
  12209. }
  12210. if (i == 40) {
  12211. // this.openTools(itemTaskIndex, 40, toolIndex);
  12212. this.$message.error("暂未开放");
  12213. return;
  12214. }
  12215. if (i == 41) {
  12216. // this.openTools(itemTaskIndex, 41, toolIndex);
  12217. this.$message.error("暂未开放");
  12218. return;
  12219. }
  12220. if (i == 42) {
  12221. // this.openTools(itemTaskIndex, 42, toolIndex);
  12222. this.$message.error("暂未开放");
  12223. return;
  12224. }
  12225. if (this.checktoolArray.length > 0) {
  12226. if (this.checktoolArray.indexOf(i) != -1) {
  12227. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12228. } else {
  12229. this.checktoolArray = [];
  12230. this.checktoolArray.push(i);
  12231. }
  12232. } else {
  12233. this.checktoolArray.push(i);
  12234. }
  12235. this.$forceUpdate();
  12236. },
  12237. jump() {
  12238. window.parent.postMessage({ tools: "43" }, "*");
  12239. },
  12240. getUpdateMore(f, checkboxList, searchTN, index) {
  12241. this.dialogVisibleMember = f;
  12242. this.checkboxList = checkboxList;
  12243. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12244. this.plIndex = index;
  12245. },
  12246. setPlname(a) {
  12247. if (this.plworkFile.length) {
  12248. this.plworkFile[this.plIndex].username = a;
  12249. } else {
  12250. this.worksSName = a;
  12251. }
  12252. this.dialogVisibleMember = false;
  12253. },
  12254. previewImg(url) {
  12255. this.$hevueImgPreview(url);
  12256. },
  12257. checkImg(list) {
  12258. if (!list.length) {
  12259. return;
  12260. }
  12261. this.$hevueImgPreview({
  12262. multiple: true, // 开启多图预览模式
  12263. imgList: list, // 需要预览的多图数组
  12264. });
  12265. },
  12266. change(val) {
  12267. console.log(val);
  12268. },
  12269. goTo(path) {
  12270. this.$router.push(path);
  12271. },
  12272. handlePictureCardPreview(url) {
  12273. this.dialogImageUrl = url;
  12274. this.pictureDialog = true;
  12275. },
  12276. clean(type) {
  12277. if (type == 1) {
  12278. this.studyJuri[0].cover.splice(0, 1);
  12279. } else if (type == 2) {
  12280. this.studyJuri[0].upVedio.splice(0, 1);
  12281. } else {
  12282. this.studyJuri[0].upFile.splice(0, 1);
  12283. }
  12284. },
  12285. clean2(index) {
  12286. this.plworkFile.splice(index, 1);
  12287. },
  12288. handleClose(done) {
  12289. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12290. this.videoDetail.sources[0].src = "";
  12291. }
  12292. this.commentIndexJson = {};
  12293. done();
  12294. },
  12295. fullTools() {
  12296. this.full = !this.full;
  12297. },
  12298. imgChange(file, fileList, type) {
  12299. if (type == 1) {
  12300. var _tmp = this.studyJuri[0].cover;
  12301. } else if (type == 2) {
  12302. var _tmp = this.studyJuri[0].upVedio;
  12303. } else {
  12304. var _tmp = this.studyJuri[0].upFile;
  12305. }
  12306. this.noneBtnImg = _tmp.length >= 1;
  12307. },
  12308. setContent(bool) {
  12309. this.contentDialog = bool;
  12310. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12311. document.querySelector(".workd_media").style.height = "650px";
  12312. } else if (document.querySelector(".workd_media")) {
  12313. document.querySelector(".workd_media").style.height = "auto";
  12314. }
  12315. },
  12316. setContent2(bool) {
  12317. this.mlDialog = bool;
  12318. if (
  12319. bool &&
  12320. this.contentDialog &&
  12321. document.querySelector(".workd_media")
  12322. ) {
  12323. document.querySelector(".workd_media").style.height = "650px";
  12324. } else if (document.querySelector(".workd_media")) {
  12325. document.querySelector(".workd_media").style.height = "auto";
  12326. }
  12327. },
  12328. openToolAll() {
  12329. this.toolDialogVisible = true;
  12330. },
  12331. addImg(e) {
  12332. var el = e.currentTarget;
  12333. // this.$message.success('触发上传')
  12334. el.getElementsByTagName("input")[0].click();
  12335. e.target.value = "";
  12336. },
  12337. addSelectAnswer() {
  12338. let params = [
  12339. {
  12340. uid: this.userid,
  12341. cid: this.id,
  12342. stage: this.courseType,
  12343. task: this.taskCount,
  12344. tool: this.toolindex,
  12345. content: this.selectAnswer.answer,
  12346. type: 7,
  12347. },
  12348. ];
  12349. this.ajax
  12350. .post(this.$store.state.api + "addCourseWorks", params)
  12351. .then((res) => {
  12352. this.$message({
  12353. message: "提交成功",
  12354. type: "success",
  12355. });
  12356. this.dialogVisibleSelect = false;
  12357. // this.selectAnswer = {};
  12358. this.selectSWorks();
  12359. this.selectStudent();
  12360. })
  12361. .catch((err) => {
  12362. this.$message.error("提交失败");
  12363. console.error(err);
  12364. });
  12365. },
  12366. addSelectAnswerTeacher() {
  12367. let params = [
  12368. {
  12369. uid: this.sStudent.userid,
  12370. cid: this.id,
  12371. stage: this.courseType,
  12372. task: this.taskCount,
  12373. tool: this.toolindex,
  12374. content: this.selectAnswer.answer,
  12375. type: 7,
  12376. },
  12377. ];
  12378. this.ajax
  12379. .post(this.$store.state.api + "addCourseWorks", params)
  12380. .then((res) => {
  12381. this.$message({
  12382. message: "提交成功",
  12383. type: "success",
  12384. });
  12385. this.dialogVisibleSelectTeacher = false;
  12386. // this.selectAnswer = {};
  12387. this.selectSWorks();
  12388. this.selectStudent();
  12389. })
  12390. .catch((err) => {
  12391. this.$message.error("提交失败");
  12392. console.error(err);
  12393. });
  12394. },
  12395. addSenWorks() {
  12396. for (var i = 0; i < this.sentenceList.length; i++) {
  12397. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12398. if (
  12399. this.sentenceList[i].chooseSenList[j] == undefined ||
  12400. this.sentenceList[i].chooseSenList[j] == ""
  12401. ) {
  12402. this.$message.error("请将答案填写完整!");
  12403. return;
  12404. }
  12405. }
  12406. }
  12407. let params = [
  12408. {
  12409. uid: this.userid,
  12410. cid: this.id,
  12411. stage: this.courseType,
  12412. task: this.taskCount,
  12413. tool: this.toolindex,
  12414. content: JSON.stringify(this.sentenceList),
  12415. type: 9,
  12416. },
  12417. ];
  12418. this.ajax
  12419. .post(this.$store.state.api + "addCourseWorks", params)
  12420. .then((res) => {
  12421. this.$message({
  12422. message: "提交成功",
  12423. type: "success",
  12424. });
  12425. this.dialogVisibleSentence = false;
  12426. // this.selectAnswer = {};
  12427. this.selectSWorks();
  12428. this.selectStudent();
  12429. })
  12430. .catch((err) => {
  12431. this.$message.error("提交失败");
  12432. console.error(err);
  12433. });
  12434. },
  12435. addSenWorksTeacher() {
  12436. for (var i = 0; i < this.sentenceList.length; i++) {
  12437. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12438. if (
  12439. this.sentenceList[i].chooseSenList[j] == undefined ||
  12440. this.sentenceList[i].chooseSenList[j] == ""
  12441. ) {
  12442. this.$message.error("请将答案填写完整!");
  12443. return;
  12444. }
  12445. }
  12446. }
  12447. let params = [
  12448. {
  12449. uid: this.sStudent.userid,
  12450. cid: this.id,
  12451. stage: this.courseType,
  12452. task: this.taskCount,
  12453. tool: this.toolindex,
  12454. content: JSON.stringify(this.sentenceList),
  12455. type: 9,
  12456. },
  12457. ];
  12458. this.ajax
  12459. .post(this.$store.state.api + "addCourseWorks", params)
  12460. .then((res) => {
  12461. this.$message({
  12462. message: "提交成功",
  12463. type: "success",
  12464. });
  12465. this.dialogVisibleSentenceTeacher = false;
  12466. // this.selectAnswer = {};
  12467. this.selectSWorks();
  12468. this.selectStudent();
  12469. })
  12470. .catch((err) => {
  12471. this.$message.error("提交失败");
  12472. console.error(err);
  12473. });
  12474. },
  12475. returnTableText() {
  12476. this.$confirm("确定还原此模板吗?", "提示", {
  12477. confirmButtonText: "确定",
  12478. cancelButtonText: "取消",
  12479. type: "warning",
  12480. })
  12481. .then(() => {
  12482. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12483. })
  12484. .catch(() => {});
  12485. },
  12486. addTableWorks() {
  12487. let params = [
  12488. {
  12489. uid: this.userid,
  12490. cid: this.id,
  12491. stage: this.courseType,
  12492. task: this.taskCount,
  12493. tool: this.toolindex,
  12494. content: JSON.stringify(this.tableJson),
  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),
  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),
  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),
  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),
  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. }),
  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 && (this.arrayToArray(
  13886. f[g].classid.split(","),
  13887. this.tcid.split(",")
  13888. ).length !== 0 || this.arrayToArray(
  13889. f[g].classid.split(","),
  13890. this.classId ? this.classId.split(",") : []
  13891. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  13892. this.groupStudent[i][gA].push(f[g]);
  13893. this.groupStudentUid[i][gA].push(f[g].userid);
  13894. }
  13895. }
  13896. }
  13897. this.$forceUpdate();
  13898. }
  13899. for (var j = 0; j < b.length; j++) {
  13900. if (
  13901. b[j].ttype == 2 &&
  13902. this.tcid &&
  13903. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13904. .length == 0
  13905. ) {
  13906. continue;
  13907. }
  13908. var likesCount = 0;
  13909. var commentCount = 0;
  13910. var isLikes = false;
  13911. var commentJson = [];
  13912. var data = b[j];
  13913. if (i == b[j].tool) {
  13914. if (data.type == 2 && a[i].tool[0] == 4) {
  13915. // if(JSON.parse(data.content)[0].anwer){
  13916. var checkL =
  13917. JSON.parse(data.content)[0].anwer instanceof Array
  13918. ? JSON.parse(data.content)[0].anwer
  13919. : JSON.parse(data.content)[0].anwer.split(",");
  13920. for (var z = 0; z < checkL.length; z++) {
  13921. if (!this.checkJson[i][z]) {
  13922. this.checkJson[i].push({
  13923. checkCount: [],
  13924. checkPerson: [],
  13925. rightPerson: [],
  13926. });
  13927. }
  13928. if (!this.checkJson[i][z].checkCount.length) {
  13929. this.checkJson[i][z].checkCount = [];
  13930. let _askItemCount = JSON.parse(data.content)[0].askJson
  13931. .askJson[z].askItem;
  13932. for (var aic = 0; aic < _askItemCount; aic++) {
  13933. this.checkJson[i][z].checkCount.push(0);
  13934. }
  13935. }
  13936. if (checkL[z] instanceof Array) {
  13937. if (
  13938. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13939. checkL[z].sort().join(",")
  13940. ) {
  13941. this.checkJson[i][z].rightPerson.push(data.name);
  13942. }
  13943. for (var q = 0; q < checkL[z].length; q++) {
  13944. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13945. ? this.checkJson[i][z].checkPerson[
  13946. parseInt(checkL[z][q])
  13947. ].push(data.name)
  13948. : (this.checkJson[i][z].checkPerson[
  13949. parseInt(checkL[z][q])
  13950. ] = [data.name]);
  13951. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13952. ? this.checkJson[i][z].checkCount[
  13953. parseInt(checkL[z][q])
  13954. ]++
  13955. : (this.checkJson[i][z].checkCount[
  13956. parseInt(checkL[z][q])
  13957. ] = 1);
  13958. }
  13959. } else {
  13960. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13961. this.checkJson[i][z].rightPerson.push(data.name);
  13962. }
  13963. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13964. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13965. ? this.checkJson[i][z].checkPerson[
  13966. parseInt(checkL[z])
  13967. ].push(data.name)
  13968. : (this.checkJson[i][z].checkPerson[
  13969. parseInt(checkL[z])
  13970. ] = [data.name]);
  13971. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13972. ? this.checkJson[i][z].checkCount[
  13973. parseInt(checkL[z])
  13974. ]++
  13975. : (this.checkJson[i][z].checkCount[
  13976. parseInt(checkL[z])
  13977. ] = 1);
  13978. }
  13979. }
  13980. }
  13981. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13982. var checkL = JSON.parse(data.content)[0].anwer;
  13983. for (var z = 0; z < checkL.length; z++) {
  13984. if (!this.checkJson[i][z]) {
  13985. this.checkJson[i].push({
  13986. checkCount: [],
  13987. checkPerson: [],
  13988. rightPerson: [],
  13989. });
  13990. }
  13991. if (!this.checkJson[i][z].checkCount.length) {
  13992. this.checkJson[i][z].checkCount = [];
  13993. let _askItemCount = JSON.parse(data.content)[0].testJson
  13994. .testJson[z].testItem;
  13995. for (var aic = 0; aic < _askItemCount; aic++) {
  13996. this.checkJson[i][z].checkCount.push(0);
  13997. }
  13998. }
  13999. if (checkL[z] instanceof Array) {
  14000. if (
  14001. JSON.parse(data.content)[0]
  14002. .testJson.testJson[z].answer.sort()
  14003. .join(",") == checkL[z].sort().join(",")
  14004. ) {
  14005. this.checkJson[i][z].rightPerson.push(data.name);
  14006. }
  14007. for (var q = 0; q < checkL[z].length; q++) {
  14008. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14009. ? this.checkJson[i][z].checkPerson[
  14010. parseInt(checkL[z][q])
  14011. ].push(data.name)
  14012. : (this.checkJson[i][z].checkPerson[
  14013. parseInt(checkL[z][q])
  14014. ] = [data.name]);
  14015. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14016. ? this.checkJson[i][z].checkCount[
  14017. parseInt(checkL[z][q])
  14018. ]++
  14019. : (this.checkJson[i][z].checkCount[
  14020. parseInt(checkL[z][q])
  14021. ] = 1);
  14022. }
  14023. } else {
  14024. if (
  14025. JSON.parse(data.content)[0].testJson.testJson[z]
  14026. .answer == checkL[z]
  14027. ) {
  14028. this.checkJson[i][z].rightPerson.push(data.name);
  14029. }
  14030. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14031. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14032. ? this.checkJson[i][z].checkPerson[
  14033. parseInt(checkL[z])
  14034. ].push(data.name)
  14035. : (this.checkJson[i][z].checkPerson[
  14036. parseInt(checkL[z])
  14037. ] = [data.name]);
  14038. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14039. ? this.checkJson[i][z].checkCount[
  14040. parseInt(checkL[z])
  14041. ]++
  14042. : (this.checkJson[i][z].checkCount[
  14043. parseInt(checkL[z])
  14044. ] = 1);
  14045. }
  14046. }
  14047. }
  14048. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14049. var checkL = JSON.parse(data.content);
  14050. for (var z = 0; z < checkL.length; z++) {
  14051. if (!this.checkJson[i][z]) {
  14052. this.checkJson[i].push({
  14053. checkCount: [],
  14054. checkPerson: [],
  14055. rightPerson: [],
  14056. });
  14057. }
  14058. this.checkJson[i][z].checkPerson.push(data.name);
  14059. if (
  14060. checkL[z].chooseSenList.toString() ==
  14061. checkL[z].rightAnswer.toString()
  14062. ) {
  14063. this.checkJson[i][z].rightPerson.push(data.name);
  14064. }
  14065. }
  14066. }
  14067. for (var k = 0; k < d.length; k++) {
  14068. //点赞
  14069. if (d[k].workId == b[j].id) {
  14070. likesCount++;
  14071. if (d[k].likesId == this.userid) {
  14072. isLikes = true;
  14073. }
  14074. }
  14075. }
  14076. for (var l = 0; l < e.length; l++) {
  14077. //评论
  14078. if (e[l].workId == b[j].id) {
  14079. if (e[l].comment != "") {
  14080. commentCount++;
  14081. commentJson.push({
  14082. commentText: e[l].comment,
  14083. commentTime: e[l].commentTime,
  14084. commentPeople: e[l].commentPeople,
  14085. userid: e[l].userid,
  14086. wid: e[l].id,
  14087. });
  14088. }
  14089. }
  14090. }
  14091. if (
  14092. (b[j].type == 1 ||
  14093. b[j].type == 4 ||
  14094. b[j].type == 5 ||
  14095. b[j].type == 6 ||
  14096. b[j].type == 12 ||
  14097. b[j].type == 7) &&
  14098. a[i].tool[0] != 15 &&
  14099. a[i].tool[0] != 4 &&
  14100. a[i].tool[0] != 45 &&
  14101. a[i].tool[0] != 50 &&
  14102. a[i].tool[0] != 32 &&
  14103. a[i].tool[0] != 57 &&
  14104. a[i].tool[0] != 52
  14105. ) {
  14106. if (
  14107. c.indexOf(
  14108. b[j].content
  14109. .split(".")
  14110. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14111. ) != -1 &&
  14112. a[i].tool[0] == 16 &&
  14113. b[j].atool != 50
  14114. ) {
  14115. let _works = {
  14116. userid: b[j].userid,
  14117. ateacher: b[j].ateacher,
  14118. wid: b[j].id,
  14119. works: b[j].content,
  14120. sName: b[j].name,
  14121. type: 1,
  14122. time: b[j].time,
  14123. score: b[j].score,
  14124. img: b[j].img,
  14125. likesCount: likesCount,
  14126. commentCount: commentCount,
  14127. isLikes: isLikes,
  14128. commentJson: commentJson,
  14129. };
  14130. if (this.isGroup) {
  14131. let isGw = 1;
  14132. for (
  14133. var groupI = 0;
  14134. groupI < this.courseGroup.group.length;
  14135. groupI++
  14136. ) {
  14137. let gid = this.courseGroup.group[groupI].id;
  14138. if (
  14139. this.courseGroupStudentUid[gid].indexOf(
  14140. b[j].userid
  14141. ) != -1
  14142. ) {
  14143. isGw = 2;
  14144. this.courseGroup.group[groupI].works[i].push(_works);
  14145. break;
  14146. }
  14147. }
  14148. if (isGw == 1) {
  14149. _worksStudent[i].push(_works);
  14150. }
  14151. } else {
  14152. _worksStudent[i].push(_works);
  14153. }
  14154. _worksStudent2[i].push(_works);
  14155. this.isWorksS[i].push({
  14156. uid: b[j].userid,
  14157. sName: b[j].name,
  14158. });
  14159. } else if (
  14160. y.indexOf(
  14161. b[j].content
  14162. .split(".")
  14163. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14164. ) != -1 &&
  14165. a[i].tool[0] == 16 &&
  14166. b[j].atool != 50
  14167. ) {
  14168. let _works = {
  14169. userid: b[j].userid,
  14170. ateacher: b[j].ateacher,
  14171. wid: b[j].id,
  14172. works: b[j].content,
  14173. sName: b[j].name,
  14174. type: 3,
  14175. time: b[j].time,
  14176. score: b[j].score,
  14177. img: b[j].img,
  14178. likesCount: likesCount,
  14179. commentCount: commentCount,
  14180. isLikes: isLikes,
  14181. commentJson: commentJson,
  14182. };
  14183. if (this.isGroup) {
  14184. let isGw = 1;
  14185. for (
  14186. var groupI = 0;
  14187. groupI < this.courseGroup.group.length;
  14188. groupI++
  14189. ) {
  14190. let gid = this.courseGroup.group[groupI].id;
  14191. if (
  14192. this.courseGroupStudentUid[gid].indexOf(
  14193. b[j].userid
  14194. ) != -1
  14195. ) {
  14196. isGw = 2;
  14197. this.courseGroup.group[groupI].works[i].push(_works);
  14198. break;
  14199. }
  14200. }
  14201. if (isGw == 1) {
  14202. _worksStudent[i].push(_works);
  14203. }
  14204. } else {
  14205. _worksStudent[i].push(_works);
  14206. }
  14207. _worksStudent2[i].push(_works);
  14208. this.isWorksS[i].push({
  14209. uid: b[j].userid,
  14210. sName: b[j].name,
  14211. });
  14212. } else if (b[j].type == 6 && b[j].atool != 50) {
  14213. let _works = {
  14214. userid: b[j].userid,
  14215. ateacher: b[j].ateacher,
  14216. wid: b[j].id,
  14217. works: b[j].content,
  14218. sName: b[j].name,
  14219. type: 4,
  14220. time: b[j].time,
  14221. score: b[j].score,
  14222. img: b[j].img,
  14223. likesCount: likesCount,
  14224. commentCount: commentCount,
  14225. isLikes: isLikes,
  14226. commentJson: commentJson,
  14227. };
  14228. _worksStudent[i].push(_works);
  14229. _worksStudent2[i].push(_works);
  14230. this.isWorksS[i].push({
  14231. uid: b[j].userid,
  14232. sName: b[j].name,
  14233. });
  14234. } else if (b[j].type == 7 && b[j].atool != 50) {
  14235. let _work = {
  14236. userid: b[j].userid,
  14237. ateacher: b[j].ateacher,
  14238. wid: b[j].id,
  14239. works: b[j].content,
  14240. sName: b[j].name,
  14241. type: 5,
  14242. time: b[j].time,
  14243. score: b[j].score,
  14244. img: b[j].img,
  14245. likesCount: likesCount,
  14246. commentCount: commentCount,
  14247. isLikes: isLikes,
  14248. commentJson: commentJson,
  14249. };
  14250. _worksStudent[i].push(_work);
  14251. _worksStudent2[i].push(_work);
  14252. this.isWorksS[i].push({
  14253. uid: b[j].userid,
  14254. sName: b[j].name,
  14255. });
  14256. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14257. let _works = {
  14258. userid: b[j].userid,
  14259. ateacher: b[j].ateacher,
  14260. wid: b[j].id,
  14261. works: b[j].content,
  14262. sName: b[j].name,
  14263. type: 12,
  14264. time: b[j].time,
  14265. score: b[j].score,
  14266. img: b[j].img,
  14267. likesCount: likesCount,
  14268. commentCount: commentCount,
  14269. isLikes: isLikes,
  14270. commentJson: commentJson,
  14271. };
  14272. if (this.isGroup) {
  14273. let isGw = 1;
  14274. for (
  14275. var groupI = 0;
  14276. groupI < this.courseGroup.group.length;
  14277. groupI++
  14278. ) {
  14279. let gid = this.courseGroup.group[groupI].id;
  14280. if (
  14281. this.courseGroupStudentUid[gid].indexOf(
  14282. b[j].userid
  14283. ) != -1
  14284. ) {
  14285. isGw = 2;
  14286. this.courseGroup.group[groupI].works[i].push(_works);
  14287. break;
  14288. }
  14289. }
  14290. if (isGw == 1) {
  14291. _worksStudent[i].push(_works);
  14292. }
  14293. } else {
  14294. _worksStudent[i].push(_works);
  14295. }
  14296. _worksStudent2[i].push(_works);
  14297. this.isWorksS[i].push({
  14298. uid: b[j].userid,
  14299. sName: b[j].name,
  14300. });
  14301. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14302. let _works = {
  14303. userid: b[j].userid,
  14304. ateacher: b[j].ateacher,
  14305. wid: b[j].id,
  14306. works: b[j].content,
  14307. sName: b[j].name,
  14308. type: 0,
  14309. time: b[j].time,
  14310. score: b[j].score,
  14311. img: b[j].img,
  14312. likesCount: likesCount,
  14313. commentCount: commentCount,
  14314. isLikes: isLikes,
  14315. commentJson: commentJson,
  14316. };
  14317. if (this.isGroup) {
  14318. let isGw = 1;
  14319. for (
  14320. var groupI = 0;
  14321. groupI < this.courseGroup.group.length;
  14322. groupI++
  14323. ) {
  14324. let gid = this.courseGroup.group[groupI].id;
  14325. if (
  14326. this.courseGroupStudentUid[gid].indexOf(
  14327. b[j].userid
  14328. ) != -1
  14329. ) {
  14330. isGw = 2;
  14331. this.courseGroup.group[groupI].works[i].push(_works);
  14332. break;
  14333. }
  14334. }
  14335. if (isGw == 1) {
  14336. _worksStudent[i].push(_works);
  14337. }
  14338. } else {
  14339. _worksStudent[i].push(_works);
  14340. }
  14341. _worksStudent2[i].push(_works);
  14342. this.isWorksS[i].push({
  14343. uid: b[j].userid,
  14344. sName: b[j].name,
  14345. });
  14346. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14347. let _works = {
  14348. userid: b[j].userid,
  14349. ateacher: b[j].ateacher,
  14350. wid: b[j].id,
  14351. works: b[j].content,
  14352. sName: b[j].name,
  14353. type: 0,
  14354. time: b[j].time,
  14355. score: b[j].score,
  14356. img: b[j].img,
  14357. likesCount: likesCount,
  14358. commentCount: commentCount,
  14359. isLikes: isLikes,
  14360. commentJson: commentJson,
  14361. };
  14362. if (this.isGroup) {
  14363. let isGw = 1;
  14364. for (
  14365. var groupI = 0;
  14366. groupI < this.courseGroup.group.length;
  14367. groupI++
  14368. ) {
  14369. let gid = this.courseGroup.group[groupI].id;
  14370. if (
  14371. this.courseGroupStudentUid[gid].indexOf(
  14372. b[j].userid
  14373. ) != -1
  14374. ) {
  14375. isGw = 2;
  14376. this.courseGroup.group[groupI].works[i].push(_works);
  14377. break;
  14378. }
  14379. }
  14380. if (isGw == 1) {
  14381. _worksStudent[i].push(_works);
  14382. }
  14383. } else {
  14384. _worksStudent[i].push(_works);
  14385. }
  14386. _worksStudent2[i].push(_works);
  14387. this.isWorksS[i].push({
  14388. uid: b[j].userid,
  14389. sName: b[j].name,
  14390. });
  14391. }
  14392. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14393. let _works = {
  14394. userid: b[j].userid,
  14395. ateacher: b[j].ateacher,
  14396. wid: b[j].id,
  14397. works: b[j].content,
  14398. sName: b[j].name,
  14399. type: 2,
  14400. time: b[j].time,
  14401. score: b[j].score,
  14402. img: b[j].img,
  14403. likesCount: likesCount,
  14404. commentCount: commentCount,
  14405. isLikes: isLikes,
  14406. commentJson: commentJson,
  14407. };
  14408. if (this.isGroup) {
  14409. let isGw = 1;
  14410. for (
  14411. var groupI = 0;
  14412. groupI < this.courseGroup.group.length;
  14413. groupI++
  14414. ) {
  14415. let gid = this.courseGroup.group[groupI].id;
  14416. if (
  14417. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14418. -1
  14419. ) {
  14420. isGw = 2;
  14421. this.courseGroup.group[groupI].works[i].push(_works);
  14422. break;
  14423. }
  14424. }
  14425. if (isGw == 1) {
  14426. _worksStudent[i].push(_works);
  14427. }
  14428. } else {
  14429. _worksStudent[i].push(_works);
  14430. }
  14431. _worksStudent2[i].push(_works);
  14432. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14433. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14434. //问卷
  14435. let _work = {
  14436. userid: b[j].userid,
  14437. ateacher: b[j].ateacher,
  14438. wid: b[j].id,
  14439. works: b[j].content,
  14440. sName: b[j].name,
  14441. type: 2,
  14442. time: b[j].time,
  14443. score: b[j].score,
  14444. img: b[j].img,
  14445. likesCount: likesCount,
  14446. commentCount: commentCount,
  14447. isLikes: isLikes,
  14448. commentJson: commentJson,
  14449. };
  14450. _worksStudent[i].push(_work);
  14451. _worksStudent2[i].push(_work);
  14452. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14453. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14454. //选择题
  14455. let _work = {
  14456. userid: b[j].userid,
  14457. ateacher: b[j].ateacher,
  14458. wid: b[j].id,
  14459. works: b[j].content,
  14460. sName: b[j].name,
  14461. type: 8,
  14462. time: b[j].time,
  14463. score: b[j].score,
  14464. img: b[j].img,
  14465. likesCount: likesCount,
  14466. commentCount: commentCount,
  14467. isLikes: isLikes,
  14468. commentJson: commentJson,
  14469. };
  14470. _worksStudent[i].push(_work);
  14471. _worksStudent2[i].push(_work);
  14472. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14473. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14474. //选择题
  14475. let _work = {
  14476. userid: b[j].userid,
  14477. ateacher: b[j].ateacher,
  14478. wid: b[j].id,
  14479. works: b[j].content,
  14480. sName: b[j].name,
  14481. type: 9,
  14482. time: b[j].time,
  14483. score: b[j].score,
  14484. img: b[j].img,
  14485. likesCount: likesCount,
  14486. commentCount: commentCount,
  14487. isLikes: isLikes,
  14488. commentJson: commentJson,
  14489. };
  14490. _worksStudent[i].push(_work);
  14491. _worksStudent2[i].push(_work);
  14492. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14493. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14494. //选择题
  14495. let _work = {
  14496. userid: b[j].userid,
  14497. ateacher: b[j].ateacher,
  14498. wid: b[j].id,
  14499. works: b[j].content,
  14500. sName: b[j].name,
  14501. type: 10,
  14502. time: b[j].time,
  14503. score: b[j].score,
  14504. img: b[j].img,
  14505. likesCount: likesCount,
  14506. commentCount: commentCount,
  14507. isLikes: isLikes,
  14508. commentJson: commentJson,
  14509. };
  14510. _worksStudent[i].push(_work);
  14511. _worksStudent2[i].push(_work);
  14512. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14513. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14514. //选择题
  14515. let _work = {
  14516. userid: b[j].userid,
  14517. ateacher: b[j].ateacher,
  14518. wid: b[j].id,
  14519. works: b[j].content,
  14520. sName: b[j].name,
  14521. type: 13,
  14522. time: b[j].time,
  14523. score: b[j].score,
  14524. img: b[j].img,
  14525. likesCount: likesCount,
  14526. commentCount: commentCount,
  14527. isLikes: isLikes,
  14528. commentJson: commentJson,
  14529. };
  14530. _worksStudent[i].push(_work);
  14531. _worksStudent2[i].push(_work);
  14532. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14533. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14534. //选择题
  14535. let _work = {
  14536. userid: b[j].userid,
  14537. ateacher: b[j].ateacher,
  14538. wid: b[j].id,
  14539. works: b[j].content,
  14540. sName: b[j].name,
  14541. type: 16,
  14542. time: b[j].time,
  14543. score: b[j].score,
  14544. img: b[j].img,
  14545. likesCount: likesCount,
  14546. commentCount: commentCount,
  14547. isLikes: isLikes,
  14548. commentJson: commentJson,
  14549. aiCode: b[j].aiCode,
  14550. teacherCode: b[j].teacherCode
  14551. };
  14552. _worksStudent[i].push(_work);
  14553. _worksStudent2[i].push(_work);
  14554. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14555. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14556. let _gindex = JSON.parse(b[j].content);
  14557. if (
  14558. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14559. b[j].userid
  14560. ) != -1
  14561. ) {
  14562. let _work = {
  14563. userid: b[j].userid,
  14564. ateacher: b[j].ateacher,
  14565. wid: b[j].id,
  14566. works: _gindex.url,
  14567. sName: b[j].name,
  14568. type: _gindex.type,
  14569. time: b[j].time,
  14570. score: b[j].score,
  14571. img: b[j].img,
  14572. likesCount: likesCount,
  14573. commentCount: commentCount,
  14574. isLikes: isLikes,
  14575. commentJson: commentJson,
  14576. };
  14577. _worksStudent[i][_gindex.groupIndex].push(_work);
  14578. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14579. }
  14580. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14581. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14582. let _work = {
  14583. userid: b[j].userid,
  14584. ateacher: b[j].ateacher,
  14585. wid: b[j].id,
  14586. works: b[j].content,
  14587. sName: b[j].name ? b[j].name : b[j].userid,
  14588. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14589. time: b[j].time,
  14590. score: b[j].score,
  14591. img: b[j].img,
  14592. likesCount: likesCount,
  14593. commentCount: commentCount,
  14594. isLikes: isLikes,
  14595. commentJson: commentJson,
  14596. };
  14597. _worksStudent[i].push(_work);
  14598. _worksStudent2[i].push(_work);
  14599. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14600. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14601. let _work = {
  14602. userid: b[j].userid,
  14603. ateacher: b[j].ateacher,
  14604. wid: b[j].id,
  14605. works: b[j].content,
  14606. sName: b[j].name ? b[j].name : b[j].userid,
  14607. type: 12,
  14608. time: b[j].time,
  14609. score: b[j].score,
  14610. img: b[j].img,
  14611. likesCount: likesCount,
  14612. commentCount: commentCount,
  14613. isLikes: isLikes,
  14614. commentJson: commentJson,
  14615. };
  14616. _worksStudent[i].push(_work);
  14617. _worksStudent2[i].push(_work);
  14618. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14619. } else if (
  14620. a[i].tool[0] == 57 &&
  14621. b[j].atool == 57 &&
  14622. b[j].type == 12
  14623. ) {
  14624. let _work = {
  14625. userid: b[j].userid,
  14626. ateacher: b[j].ateacher,
  14627. wid: b[j].id,
  14628. works: b[j].content,
  14629. sName: b[j].name ? b[j].name : b[j].userid,
  14630. type: 12,
  14631. time: b[j].time,
  14632. score: b[j].score,
  14633. img: b[j].img,
  14634. likesCount: likesCount,
  14635. commentCount: commentCount,
  14636. isLikes: isLikes,
  14637. commentJson: commentJson,
  14638. };
  14639. _worksStudent[i].push(_work);
  14640. _worksStudent2[i].push(_work);
  14641. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14642. } else if (
  14643. a[i].tool[0] == 57 &&
  14644. b[j].atool == 57 &&
  14645. b[j].type == 15
  14646. ) {
  14647. let _work = {
  14648. userid: b[j].userid,
  14649. ateacher: b[j].ateacher,
  14650. wid: b[j].id,
  14651. works: b[j].content,
  14652. sName: b[j].name ? b[j].name : b[j].userid,
  14653. type: 15,
  14654. time: b[j].time,
  14655. score: b[j].score,
  14656. img: b[j].img,
  14657. likesCount: likesCount,
  14658. commentCount: commentCount,
  14659. isLikes: isLikes,
  14660. commentJson: commentJson,
  14661. };
  14662. _worksStudent[i].push(_work);
  14663. _worksStudent2[i].push(_work);
  14664. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14665. }
  14666. }
  14667. }
  14668. if (_worksStudent[i] && _worksStudent[i].length) {
  14669. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14670. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14671. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14672. var scoreA = parseFloat(jscoreA);
  14673. var scoreB = parseFloat(jscoreB);
  14674. if (scoreA == scoreB) {
  14675. return b.likesCount - a.likesCount;
  14676. }
  14677. return scoreB - scoreA;
  14678. });
  14679. if (this.isGroup) {
  14680. for (
  14681. var groupI = 0;
  14682. groupI < this.courseGroup.group.length;
  14683. groupI++
  14684. ) {
  14685. this.courseGroup.group[groupI].works[i] =
  14686. this.courseGroup.group[groupI].works[i].sort(function (
  14687. a,
  14688. b
  14689. ) {
  14690. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14691. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14692. var scoreA = parseFloat(jscoreA);
  14693. var scoreB = parseFloat(jscoreB);
  14694. if (scoreA == scoreB) {
  14695. return b.likesCount - a.likesCount;
  14696. }
  14697. return scoreB - scoreA;
  14698. });
  14699. }
  14700. }
  14701. }
  14702. }
  14703. this.timeWorkList = _worksStudent2;
  14704. for (var i = 0; i < a.length; i++) {
  14705. for (var j = 0; j < b.length; j++) {
  14706. var data = b[j];
  14707. if (i == b[j].tool) {
  14708. if (data.type == 2 || data.type == 8) {
  14709. for (var z = 0; z < this.checkJson[i].length; z++) {
  14710. this.checkJson[i][z].checkPerent = [];
  14711. this.checkJson[i][z].right = Math.round(
  14712. (this.checkJson[i][z].rightPerson.length /
  14713. parseInt(_worksStudent[i].length)) *
  14714. 100
  14715. );
  14716. let aaaa = this.checkJson[i][z];
  14717. for (
  14718. var k = 0;
  14719. k < this.checkJson[i][z].checkCount.length;
  14720. k++
  14721. ) {
  14722. this.checkJson[i][z].checkPerent.push(
  14723. Math.round(
  14724. (this.checkJson[i][z].checkCount[k] /
  14725. parseInt(_worksStudent[i].length)) *
  14726. 100
  14727. )
  14728. );
  14729. }
  14730. }
  14731. } else if (data.type == 9) {
  14732. for (var z = 0; z < this.checkJson[i].length; z++) {
  14733. this.checkJson[i][z].checkPerent = [];
  14734. this.checkJson[i][z].right = Math.round(
  14735. (this.checkJson[i][z].rightPerson.length /
  14736. this.checkJson[i][z].checkPerson.length) *
  14737. 100
  14738. );
  14739. }
  14740. }
  14741. }
  14742. }
  14743. }
  14744. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14745. this.joinGroup(gindex);
  14746. }
  14747. this.worksStudent = _worksStudent;
  14748. this.selectWorksStudent();
  14749. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14750. this.$nextTick(()=>{
  14751. setTimeout(()=>{
  14752. setTimeout(()=>{
  14753. this.panToolHeight('tool-'+ci);
  14754. }, 500)
  14755. }, 0)
  14756. })
  14757. }
  14758. })
  14759. .catch((err) => {
  14760. console.error(err);
  14761. });
  14762. },
  14763. pngToWhiteBg(file) {
  14764. const _file = file;
  14765. let read = new FileReader();
  14766. read.readAsDataURL(file); // 文件转base64
  14767. return new Promise((resolve, reject) => {
  14768. read.onload = (e) => {
  14769. let img = new Image();
  14770. img.src = e.target.result;
  14771. img.onload = async () => {
  14772. // 生成canvas
  14773. let canvas = document.createElement("canvas");
  14774. let context = canvas.getContext("2d");
  14775. // 绘制图片到canvas上
  14776. canvas.width = img.width;
  14777. canvas.height = img.height;
  14778. // 在canvas绘制前填充白色背景
  14779. context.fillStyle = "#fff";
  14780. context.fillRect(0, 0, canvas.width, canvas.height);
  14781. context.drawImage(img, 0, 0);
  14782. let base64 = canvas.toDataURL(file["type"], 1);
  14783. let newFile = this.dataUrlToFile(base64, _file);
  14784. resolve(newFile);
  14785. };
  14786. };
  14787. });
  14788. },
  14789. dataUrlToFile(dataurl, file) {
  14790. let arr = dataurl.split(","),
  14791. mime = arr[0].match(/:(.*?);/)[1],
  14792. bstr = atob(arr[1]),
  14793. n = bstr.length,
  14794. u8arr = new Uint8Array(n);
  14795. while (n--) {
  14796. u8arr[n] = bstr.charCodeAt(n);
  14797. }
  14798. // return new Blob([u8arr], { type: mime });
  14799. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14800. type: mime,
  14801. });
  14802. },
  14803. async beforeUpload1(event, type, i) {
  14804. // this.$message.success('进入上传')
  14805. var file = "";
  14806. if (type == 5) {
  14807. file = event;
  14808. } else {
  14809. file = event.target.files[0];
  14810. }
  14811. var credentials = {
  14812. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14813. secretAccessKey: "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",
  14814. }; //秘钥形式的登录上传
  14815. window.AWS.config.update(credentials);
  14816. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14817. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14818. var _this = this;
  14819. _this.progress = 0;
  14820. _this.proVisible = true;
  14821. _this.isFinishSize = 0;
  14822. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14823. var b = [
  14824. "DOC",
  14825. "DOCX",
  14826. "DOCM",
  14827. "DOTM",
  14828. "DOTX",
  14829. "PPTX",
  14830. "PPSX",
  14831. "PPT",
  14832. "PPS",
  14833. "PPTM",
  14834. "POTM",
  14835. "PPAM",
  14836. "POTX",
  14837. "PPSM",
  14838. ];
  14839. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14840. var photoA = [
  14841. "BMP",
  14842. "GIF",
  14843. "PNG",
  14844. "JPGE",
  14845. "JPEG",
  14846. "JPG",
  14847. "TIF",
  14848. "PCX",
  14849. "TGA",
  14850. "EXIF",
  14851. "FPX",
  14852. "SVG",
  14853. "APNG",
  14854. ];
  14855. // if (
  14856. // b.indexOf(
  14857. // file.name
  14858. // .split(".")
  14859. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14860. // ) != -1
  14861. // ) {
  14862. // if (file.size / 1024 / 1024 > 10) {
  14863. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14864. // return;
  14865. // }
  14866. // } else if (
  14867. // excelA.indexOf(
  14868. // file.name
  14869. // .split(".")
  14870. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14871. // ) != "-1"
  14872. // ) {
  14873. // if (file.size / 1024 / 1024 > 5) {
  14874. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14875. // return;
  14876. // }
  14877. // }
  14878. if (
  14879. photoA.indexOf(
  14880. file.name
  14881. .split(".")
  14882. [file.name.split(".").length - 1].toLocaleUpperCase()
  14883. ) != -1 &&
  14884. type != 4
  14885. ) {
  14886. // const blob = await imageConversion.compress(file, 0.8)
  14887. file = await this.pngToWhiteBg(file);
  14888. const blob = await imageConversion.compressAccurately(file, 256);
  14889. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14890. file = new File([blob], file.name, { type: file.type });
  14891. }
  14892. if (file) {
  14893. var params = {
  14894. Key:
  14895. file.name.split(".")[0] +
  14896. new Date().getTime() +
  14897. "." +
  14898. file.name.split(".")[file.name.split(".").length - 1],
  14899. ContentType: file.type,
  14900. Body: file,
  14901. "Access-Control-Allow-Credentials": "*",
  14902. ACL: "public-read",
  14903. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14904. var options = {
  14905. // partSize: 2048 * 1024 * 1024,
  14906. partSize: 1024 * 1024 * 1024,
  14907. queueSize: 2,
  14908. leavePartsOnError: true,
  14909. };
  14910. bucket
  14911. .upload(params, options)
  14912. .on("httpUploadProgress", function (evt) {
  14913. //这里可以写进度条
  14914. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14915. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14916. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14917. })
  14918. .send(function (err, data) {
  14919. _this.progress = 100;
  14920. _this.isFinishSize = _this.isAllSize;
  14921. setTimeout(() => {
  14922. _this.proVisible = false;
  14923. }, 1000);
  14924. if (err) {
  14925. var a = _this.$refs.upload1.uploadFiles;
  14926. a.splice(a.length - 1, a.length);
  14927. _this.$message.error("上传失败");
  14928. } else {
  14929. // _this.$message.success('上传成功')
  14930. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14931. var c = [
  14932. "AVI",
  14933. "NAVI",
  14934. "MPEG",
  14935. "ASF",
  14936. "MOV",
  14937. "WMV",
  14938. "3GP",
  14939. "RM",
  14940. "RMVB",
  14941. "FLV",
  14942. "F4V",
  14943. "H.264",
  14944. "H.265",
  14945. "REAL VIDEO",
  14946. "MKV",
  14947. "WebM",
  14948. "HDDVD",
  14949. "MP4",
  14950. "MPG",
  14951. "M4V",
  14952. "MGV",
  14953. "OGV",
  14954. "QTM",
  14955. "STR",
  14956. "AMC",
  14957. "DVX",
  14958. "EVO",
  14959. "DAT",
  14960. "OGG",
  14961. "OGM",
  14962. ];
  14963. if (type == 1) {
  14964. _this.studyJuri[0].cover.push({
  14965. name: file.name,
  14966. url: data.Location,
  14967. uid: file.uid,
  14968. });
  14969. if (
  14970. c.indexOf(
  14971. _this.studyJuri[0].cover[0].url
  14972. .split(".")
  14973. [
  14974. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14975. ].toLocaleUpperCase()
  14976. ) != -1
  14977. ) {
  14978. _this.fileType = 2;
  14979. } else if (
  14980. b.indexOf(
  14981. _this.studyJuri[0].cover[0].url
  14982. .split(".")
  14983. [
  14984. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14985. ].toLocaleUpperCase()
  14986. ) != -1
  14987. ) {
  14988. _this.fileType = 1;
  14989. } else if (
  14990. photoA.indexOf(
  14991. _this.studyJuri[0].cover[0].url
  14992. .split(".")
  14993. [
  14994. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14995. ].toLocaleUpperCase()
  14996. ) != -1
  14997. ) {
  14998. _this.fileType = 0;
  14999. } else {
  15000. _this.fileType = 3;
  15001. }
  15002. _this.imgChange(null, null, type);
  15003. } else if (type == 2) {
  15004. _this.upToolImg = data.Location;
  15005. _this.imgChange(null, null, type);
  15006. _this.addCourseWorks(i);
  15007. } else if (type == 4) {
  15008. _this.addPz("3", data.Location);
  15009. } else if (type == 5) {
  15010. _this.addImgDrawImG(data.Location);
  15011. } else if (type == 6) {
  15012. var _ftype = 1;
  15013. if (
  15014. c.indexOf(
  15015. data.Location.split(".")[
  15016. data.Location.split(".").length - 1
  15017. ].toLocaleUpperCase()
  15018. ) != -1
  15019. ) {
  15020. _ftype = 5;
  15021. } else if (
  15022. b.indexOf(
  15023. data.Location.split(".")[
  15024. data.Location.split(".").length - 1
  15025. ].toLocaleUpperCase()
  15026. ) != -1
  15027. ) {
  15028. _ftype = 4;
  15029. } else {
  15030. _ftype = 1;
  15031. }
  15032. _this.plworkFile.push({
  15033. name: file.name,
  15034. url: data.Location,
  15035. uid: file.uid,
  15036. fileType: _ftype,
  15037. username:
  15038. _this.plworkFile.length > 10
  15039. ? _this.plworkFile.length + 1
  15040. : "0" + (_this.plworkFile.length + 1),
  15041. });
  15042. } else if (type == 7) {
  15043. _this.addCourseWorksGong(i, data.Location, 32);
  15044. } else if (type == 8) {
  15045. _this.addCourseWorksGong(i, data.Location, 57);
  15046. }
  15047. _this.imgChange(null, null, type);
  15048. console.log(data.Location);
  15049. // _this.$message.success('上传成功'+data.Location)
  15050. }
  15051. });
  15052. }
  15053. },
  15054. async beforeUpload3(event, type, i) {
  15055. // this.$message.success('进入上传')
  15056. let file = "";
  15057. let cfindex2 = 0;
  15058. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15059. file = event.target.files[cfindex];
  15060. var credentials = {
  15061. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15062. secretAccessKey: "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",
  15063. }; //秘钥形式的登录上传
  15064. window.AWS.config.update(credentials);
  15065. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15066. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15067. var _this = this;
  15068. // _this.progress = 0;
  15069. _this.proVisible2 = true;
  15070. var b = [
  15071. "DOC",
  15072. "DOCX",
  15073. "DOCM",
  15074. "DOTM",
  15075. "DOTX",
  15076. "PPTX",
  15077. "PPSX",
  15078. "PPT",
  15079. "PPS",
  15080. "PPTM",
  15081. "POTM",
  15082. "PPAM",
  15083. "POTX",
  15084. "PPSM",
  15085. ];
  15086. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15087. var photoA = [
  15088. "BMP",
  15089. "GIF",
  15090. "PNG",
  15091. "JPGE",
  15092. "JPG",
  15093. "TIF",
  15094. "PCX",
  15095. "TGA",
  15096. "EXIF",
  15097. "FPX",
  15098. "SVG",
  15099. "APNG",
  15100. ];
  15101. if (
  15102. photoA.indexOf(
  15103. file.name
  15104. .split(".")
  15105. [file.name.split(".").length - 1].toLocaleUpperCase()
  15106. ) != -1 &&
  15107. type != 4
  15108. ) {
  15109. // const blob = await imageConversion.compress(file, 0.8)
  15110. file = await this.pngToWhiteBg(file);
  15111. const blob = await imageConversion.compressAccurately(file, 256);
  15112. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15113. file = new File([blob], file.name, { type: file.type });
  15114. }
  15115. if (file) {
  15116. var params = {
  15117. Key:
  15118. file.name.split(".")[0] +
  15119. new Date().getTime() +
  15120. "." +
  15121. file.name.split(".")[file.name.split(".").length - 1],
  15122. ContentType: file.type,
  15123. Body: file,
  15124. "Access-Control-Allow-Credentials": "*",
  15125. ACL: "public-read",
  15126. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15127. var options = {
  15128. // partSize: 2048 * 1024 * 1024,
  15129. partSize: 1024 * 1024 * 1024,
  15130. queueSize: 2,
  15131. leavePartsOnError: true,
  15132. };
  15133. bucket
  15134. .upload(params, options)
  15135. .on("httpUploadProgress", function (evt) {
  15136. //这里可以写进度条
  15137. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15138. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15139. })
  15140. .send(function (err, data) {
  15141. // _this.progress = 100;
  15142. cfindex2++;
  15143. setTimeout(() => {
  15144. if (
  15145. cfindex2 == event.target.files.length - 1 ||
  15146. cfindex2 > event.target.files.length - 1
  15147. ) {
  15148. _this.proVisible2 = false;
  15149. }
  15150. }, 1000);
  15151. if (err) {
  15152. var a = _this.$refs.upload1.uploadFiles;
  15153. a.splice(a.length - 1, a.length);
  15154. _this.$message.error("上传失败");
  15155. } else {
  15156. // _this.$message.success('上传成功')
  15157. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15158. var c = [
  15159. "AVI",
  15160. "NAVI",
  15161. "MPEG",
  15162. "ASF",
  15163. "MOV",
  15164. "WMV",
  15165. "3GP",
  15166. "RM",
  15167. "RMVB",
  15168. "FLV",
  15169. "F4V",
  15170. "H.264",
  15171. "H.265",
  15172. "REAL VIDEO",
  15173. "MKV",
  15174. "WebM",
  15175. "HDDVD",
  15176. "MP4",
  15177. "MPG",
  15178. "M4V",
  15179. "MGV",
  15180. "OGV",
  15181. "QTM",
  15182. "STR",
  15183. "AMC",
  15184. "DVX",
  15185. "EVO",
  15186. "DAT",
  15187. "OGG",
  15188. "OGM",
  15189. ];
  15190. if (type == 1) {
  15191. _this.studyJuri[0].cover.push({
  15192. name: file.name,
  15193. url: data.Location,
  15194. uid: file.uid,
  15195. });
  15196. if (
  15197. c.indexOf(
  15198. _this.studyJuri[0].cover[0].url
  15199. .split(".")
  15200. [
  15201. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15202. ].toLocaleUpperCase()
  15203. ) != -1
  15204. ) {
  15205. _this.fileType = 2;
  15206. } else if (
  15207. b.indexOf(
  15208. _this.studyJuri[0].cover[0].url
  15209. .split(".")
  15210. [
  15211. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15212. ].toLocaleUpperCase()
  15213. ) != -1
  15214. ) {
  15215. _this.fileType = 1;
  15216. } else {
  15217. _this.fileType = 0;
  15218. }
  15219. _this.imgChange(null, null, type);
  15220. } else if (type == 2) {
  15221. _this.upToolImg = data.Location;
  15222. _this.imgChange(null, null, type);
  15223. _this.addCourseWorks(i);
  15224. } else if (type == 4) {
  15225. _this.addPz("3", data.Location);
  15226. } else if (type == 5) {
  15227. _this.addImgDrawImG(data.Location);
  15228. } else if (type == 6) {
  15229. var _ftype = 1;
  15230. if (
  15231. c.indexOf(
  15232. data.Location.split(".")[
  15233. data.Location.split(".").length - 1
  15234. ].toLocaleUpperCase()
  15235. ) != -1
  15236. ) {
  15237. _ftype = 5;
  15238. } else if (
  15239. b.indexOf(
  15240. data.Location.split(".")[
  15241. data.Location.split(".").length - 1
  15242. ].toLocaleUpperCase()
  15243. ) != -1
  15244. ) {
  15245. _ftype = 4;
  15246. } else {
  15247. _ftype = 1;
  15248. }
  15249. _this.plworkFile.push({
  15250. name: file.name,
  15251. url: data.Location,
  15252. uid: file.uid,
  15253. fileType: _ftype,
  15254. username:
  15255. _this.plworkFile.length + 1 > 9
  15256. ? _this.plworkFile.length + 1
  15257. : "0" + (_this.plworkFile.length + 1),
  15258. });
  15259. }
  15260. _this.imgChange(null, null, type);
  15261. console.log(data.Location);
  15262. // _this.$message.success('上传成功'+data.Location)
  15263. }
  15264. });
  15265. }
  15266. }
  15267. },
  15268. beforeUpload2(event, type) {
  15269. var file = event.target.files[0];
  15270. var credentials = {
  15271. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15272. secretAccessKey: "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",
  15273. }; //秘钥形式的登录上传
  15274. window.AWS.config.update(credentials);
  15275. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15276. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15277. var _this = this;
  15278. _this.progress = 0;
  15279. _this.proVisible = true;
  15280. if (file) {
  15281. var params = {
  15282. Key:
  15283. file.name.split(".")[0] +
  15284. new Date().getTime() +
  15285. "." +
  15286. file.name.split(".")[file.name.split(".").length - 1],
  15287. ContentType: file.type,
  15288. Body: file,
  15289. "Access-Control-Allow-Credentials": "*",
  15290. ACL: "public-read",
  15291. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15292. var options = {
  15293. partSize: 2048 * 1024 * 1024,
  15294. queueSize: 2,
  15295. leavePartsOnError: true,
  15296. };
  15297. bucket
  15298. .upload(params, options)
  15299. .on("httpUploadProgress", function (evt) {
  15300. //这里可以写进度条
  15301. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15302. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15303. })
  15304. .send(function (err, data) {
  15305. _this.progress = 100;
  15306. setTimeout(() => {
  15307. _this.proVisible = false;
  15308. }, 1000);
  15309. if (err) {
  15310. var a = _this.$refs.upload1.uploadFiles;
  15311. a.splice(a.length - 1, a.length);
  15312. _this.$message.error("上传失败");
  15313. } else {
  15314. if (type == 2) {
  15315. _this.studyJuri[0].upVedio.push({
  15316. name: file.name,
  15317. url: data.Location,
  15318. uid: file.uid,
  15319. });
  15320. _this.imgChange(null, null, type);
  15321. } else if (type == 3) {
  15322. _this.studyJuri[0].upFile.push({
  15323. name: file.name,
  15324. url: data.Location,
  15325. uid: file.uid,
  15326. });
  15327. _this.imgChange(null, null, type);
  15328. }
  15329. console.log(data.Location);
  15330. }
  15331. });
  15332. }
  15333. },
  15334. allScrell() {
  15335. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15336. },
  15337. nextOrpreSteps(t) {
  15338. if (this.IsFollow && this.tType == 2) {
  15339. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15340. return;
  15341. }
  15342. var b = this.chapInfoList.length - 1;
  15343. if (t == 0) {
  15344. if (this.courseType == 0) {
  15345. if (this.taskCount == 0) {
  15346. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15347. if (this.IsLookOpen) {
  15348. if (
  15349. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15350. ) {
  15351. if (
  15352. this.courseDetail.userid != this.userid &&
  15353. this.courseDetail.course_teacher &&
  15354. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15355. ) {
  15356. this.$message.error("任务未解锁");
  15357. } else {
  15358. this.$message.error("上一任务未解锁");
  15359. }
  15360. return;
  15361. }
  15362. }
  15363. this.navList[this.courseType].isOpen = false;
  15364. this.courseType = b;
  15365. this.taskCount =
  15366. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15367. .length - 1;
  15368. this.navList[this.courseType].isOpen = true;
  15369. } else {
  15370. this.taskCount--;
  15371. }
  15372. } else {
  15373. if (this.taskCount == 0) {
  15374. this.navList[this.courseType].isOpen = false;
  15375. this.courseType--;
  15376. this.taskCount =
  15377. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15378. .length - 1;
  15379. this.navList[this.courseType].isOpen = true;
  15380. } else {
  15381. this.taskCount--;
  15382. }
  15383. }
  15384. } else {
  15385. if (this.courseType == b) {
  15386. if (
  15387. this.taskCount ==
  15388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15389. 1
  15390. ) {
  15391. this.navList[this.courseType].isOpen = false;
  15392. this.courseType = 0;
  15393. this.taskCount = 0;
  15394. this.navList[this.courseType].isOpen = true;
  15395. } else {
  15396. var bbb = parseInt(this.taskCount) + 1;
  15397. if (
  15398. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15399. .isLook &&
  15400. this.courseDetail.userid != this.userid && this.courseDetail.course_teacher &&
  15401. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15402. this.IsLookOpen
  15403. ) {
  15404. this.$message.error("任务未解锁");
  15405. return;
  15406. }
  15407. this.taskCount++;
  15408. if (this.IsLookOpen) {
  15409. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15410. this.taskCount
  15411. ].isLook = true;
  15412. this.addCourseState(3);
  15413. }
  15414. }
  15415. } else {
  15416. if (
  15417. this.taskCount ==
  15418. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15419. 1
  15420. ) {
  15421. var bbb = parseInt(this.courseType) + 1;
  15422. if (
  15423. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15424. this.courseDetail.userid != this.userid &&
  15425. this.courseDetail.course_teacher &&
  15426. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15427. this.IsLookOpen
  15428. ) {
  15429. this.$message.error("任务未解锁");
  15430. return;
  15431. }
  15432. this.navList[this.courseType].isOpen = false;
  15433. this.courseType++;
  15434. this.taskCount = 0;
  15435. this.navList[this.courseType].isOpen = true;
  15436. } else {
  15437. var bbb = parseInt(this.taskCount) + 1;
  15438. if (
  15439. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15440. .isLook &&
  15441. this.courseDetail.userid != this.userid &&
  15442. this.courseDetail.course_teacher &&
  15443. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15444. this.IsLookOpen
  15445. ) {
  15446. this.$message.error("任务未解锁");
  15447. return;
  15448. }
  15449. this.taskCount++;
  15450. }
  15451. if (this.IsLookOpen) {
  15452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15453. this.taskCount
  15454. ].isLook = true;
  15455. this.addCourseState(3);
  15456. }
  15457. }
  15458. // if (
  15459. // this.taskCount ==
  15460. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15461. // ) {
  15462. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15463. // } else {
  15464. // this.taskCount++;
  15465. // }
  15466. }
  15467. document.scrollingElement.scrollTop = 0;
  15468. this.showType = 0;
  15469. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15470. // if (this.vedio[this.taskCount].length > 0) {
  15471. // var a =
  15472. // document.getElementsByClassName("box_course")[this.taskCount]
  15473. // .offsetHeight;
  15474. // document.getElementsByClassName("vedioList")[
  15475. // this.taskCount
  15476. // ].style.height = a + "px";
  15477. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15478. // a - 40 + "px";
  15479. // }
  15480. this.isNoHomeWork = false;
  15481. (this.studyJuri = [
  15482. {
  15483. content: "",
  15484. cover: [],
  15485. upVedio: [],
  15486. upFile: [],
  15487. },
  15488. ]),
  15489. (this.radio = []);
  15490. this.isClickNav = "";
  15491. this.selectPz();
  15492. this.getHomeWork();
  15493. this.getCourseDetail(2);
  15494. this.$forceUpdate();
  15495. },
  15496. openTask(s, n, i,ctype) {
  15497. if (this.IsFollow && this.tType == 2) {
  15498. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15499. return;
  15500. }
  15501. if (this.IsLookOpen) {
  15502. if (
  15503. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15504. this.courseDetail.userid != this.userid &&
  15505. this.courseDetail.course_teacher &&
  15506. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15507. ) {
  15508. this.$message.error("任务未解锁");
  15509. return;
  15510. }
  15511. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15512. if (
  15513. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15514. .isLook
  15515. ) {
  15516. this.$message.error("上一任务未解锁");
  15517. return;
  15518. }
  15519. } else if (s > this.courseType) {
  15520. if (n > 0) {
  15521. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15522. this.$message.error("上一任务未解锁");
  15523. return;
  15524. }
  15525. } else {
  15526. if (
  15527. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15528. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15529. ].isLook
  15530. ) {
  15531. this.$message.error("上一任务未解锁");
  15532. return;
  15533. }
  15534. }
  15535. }
  15536. }
  15537. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  15538. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15539. return;
  15540. }
  15541. this.courseType = s;
  15542. this.navId = i;
  15543. this.taskCount = n;
  15544. if(ctype == 2){
  15545. this.navList[s].task[n].isOpen = true
  15546. }else{
  15547. this.navList[this.courseType].task[this.taskCount].isOpen =
  15548. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15549. }
  15550. if (this.IsLookOpen) {
  15551. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15552. this.taskCount
  15553. ].isLook = true;
  15554. this.addCourseState(3);
  15555. }
  15556. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15557. this.isCloseList[ci].isClose = 0;
  15558. this.isCloseList[ci].isCloseBoolean = false;
  15559. this.$nextTick(()=>{
  15560. setTimeout(()=>{
  15561. setTimeout(()=>{
  15562. this.panToolHeight('tool-'+ci);
  15563. }, 0)
  15564. }, 0)
  15565. })
  15566. }
  15567. this.showType = 0;
  15568. this.isNoHomeWork = false;
  15569. (this.studyJuri = [
  15570. {
  15571. content: "",
  15572. cover: [],
  15573. upVedio: [],
  15574. upFile: [],
  15575. },
  15576. ]),
  15577. (this.radio = []);
  15578. document.scrollingElement.scrollTop = 0;
  15579. // setTimeout(() => {
  15580. // let a = document.getElementById(i);
  15581. // if (a.offsetTop - 110 == 0) {
  15582. // window.scrollTo(0, 0);
  15583. // } else {
  15584. // window.scrollTo(0, a.offsetTop);
  15585. // }
  15586. // }, 0);
  15587. for (var z = 0; z < this.navList.length; z++) {
  15588. for (var q = 0; q < this.navList[z].task.length; q++) {
  15589. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15590. this.navList[z].task[q].tool[w].isTool = false;
  15591. }
  15592. }
  15593. }
  15594. this.selectPz();
  15595. this.getHomeWork();
  15596. this.getCourseDetail(2);
  15597. },
  15598. get(i) {
  15599. if (this.IsFollow && this.tType == 2) {
  15600. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15601. return;
  15602. }
  15603. // for(var k=0;k<this.navList.length;k++){
  15604. // this.navList[k].isOpen = false;
  15605. // }
  15606. // this.navList[i].isOpen = true;
  15607. let a = this.navList[i].isOpen
  15608. this.navList[i].isOpen = !this.navList[i].isOpen;
  15609. this.$forceUpdate()
  15610. if (this.navList[i].isOpen) {
  15611. this.openTask(i, 0, (i + "-0"),2);
  15612. }
  15613. },
  15614. addQuestion() {
  15615. this.answerList.push({
  15616. answerTitle: this.answerQ,
  15617. answer: this.questionAnswer,
  15618. });
  15619. let params = [
  15620. {
  15621. uid: this.userid,
  15622. cid: this.id,
  15623. stage: this.courseType,
  15624. task: this.taskCount,
  15625. tool: this.toolindex,
  15626. content: JSON.stringify(this.answerList),
  15627. type: 3,
  15628. },
  15629. ];
  15630. this.ajax
  15631. .post(this.$store.state.api + "addCourseWorks", params)
  15632. .then((res) => {
  15633. this.$message({
  15634. message: "提交成功",
  15635. type: "success",
  15636. });
  15637. this.answerList = [];
  15638. this.answerDialogVisible = false;
  15639. this.selectStudent();
  15640. this.selectSWorks();
  15641. this.selectSLook();
  15642. })
  15643. .catch((err) => {
  15644. this.$message.error("提交失败");
  15645. console.error(err);
  15646. });
  15647. },
  15648. addQuestionTeacher() {
  15649. this.answerList.push({
  15650. answerTitle: this.answerQ,
  15651. answer: this.questionAnswer,
  15652. });
  15653. let params = [
  15654. {
  15655. uid: this.sStudent.userid,
  15656. cid: this.id,
  15657. stage: this.courseType,
  15658. task: this.taskCount,
  15659. tool: this.toolindex,
  15660. content: JSON.stringify(this.answerList),
  15661. type: 3,
  15662. ateacher: this.userid,
  15663. },
  15664. ];
  15665. this.ajax
  15666. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15667. .then((res) => {
  15668. this.$message({
  15669. message: "提交成功",
  15670. type: "success",
  15671. });
  15672. this.answerList = [];
  15673. this.questionAnswer = "";
  15674. this.answerDialogVisibleTeacher = false;
  15675. this.selectStudent();
  15676. this.selectSWorks();
  15677. this.selectSLook();
  15678. })
  15679. .catch((err) => {
  15680. this.$message.error("提交失败");
  15681. console.error(err);
  15682. });
  15683. },
  15684. refreshCourse() {
  15685. // window.location.reload();
  15686. this.navList = [];
  15687. this.getCourseDetail(1);
  15688. },
  15689. getCourseDetail(type, gindex) {
  15690. let loading;
  15691. if (type != 2) {
  15692. loading = this.$loading.service({
  15693. background: "rgba(255, 255, 255, 0.7)",
  15694. target: document.querySelector(".student_table"),
  15695. });
  15696. }
  15697. this.downLoading = false
  15698. // this.navList[0].isOpen = false;
  15699. // this.navList[this.courseType].isOpen = true;
  15700. // this.courseType = this.courseTypeLine;
  15701. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15702. let params = {
  15703. courseId: this.id,
  15704. };
  15705. this.ajax
  15706. .get(this.$store.state.api + "selectTrainCourseDetail3", params)
  15707. .then((res) => {
  15708. if (type != 2) {
  15709. loading.close();
  15710. if (
  15711. this.courseType >
  15712. JSON.parse(res.data[0][0].chapters).length - 1
  15713. ) {
  15714. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15715. }
  15716. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15717. .chapterInfo[0].taskJson;
  15718. var b = [
  15719. "AVI",
  15720. "NAVI",
  15721. "MPEG",
  15722. "ASF",
  15723. "MOV",
  15724. "WMV",
  15725. "3GP",
  15726. "RM",
  15727. "RMVB",
  15728. "FLV",
  15729. "F4V",
  15730. "H.264",
  15731. "H.265",
  15732. "REAL VIDEO",
  15733. "MKV",
  15734. "WebM",
  15735. "HDDVD",
  15736. "MP4",
  15737. "MPG",
  15738. "M4V",
  15739. "MGV",
  15740. "OGV",
  15741. "QTM",
  15742. "STR",
  15743. "AMC",
  15744. "DVX",
  15745. "EVO",
  15746. "DAT",
  15747. "OGG",
  15748. "OGM",
  15749. "MP3",
  15750. ];
  15751. let _chapterData = [];
  15752. for (var i = 0; i < a.length; i++) {
  15753. var c = a[i].chapterData;
  15754. this.vedio[i] = [];
  15755. this.textList[i] = [];
  15756. this.lineList[i] = [];
  15757. this.chapToolList[i] = [];
  15758. this.file[i] = [];
  15759. this.fileC[i] = [];
  15760. _chapterData[i] = c.filter((el) => {
  15761. return el.type != 12;
  15762. });
  15763. this.fileC[i] = c.filter((el) => {
  15764. return el.type == 12;
  15765. });
  15766. // else if (c[j].type == 12) {
  15767. // this.fileC[i].push(c[j]);
  15768. // }
  15769. for (var j = 0; j < c.length; j++) {
  15770. if (c[j].type == 7) {
  15771. this.chapToolList[i].push(c[j]);
  15772. } else if (c[j].type == 8 || c[j].type == 14) {
  15773. this.lineList[i].push(c[j]);
  15774. } else if (c[j].type == 6) {
  15775. this.textList[i].push(c[j]);
  15776. } else {
  15777. if (
  15778. b.indexOf(
  15779. c[j].url
  15780. .split(".")
  15781. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15782. ) != -1
  15783. ) {
  15784. this.vedio[i].push(c[j]);
  15785. } else {
  15786. this.file[i].push(c[j]);
  15787. }
  15788. }
  15789. }
  15790. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15791. d.sources[0].src =
  15792. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15793. this.playerO[i] = d;
  15794. }
  15795. this.courseDetail = res.data[0][0];
  15796. this.tcid = this.arrayToArray(
  15797. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15798. this.tcid2 ? this.tcid2.split(",") : []
  15799. ).join(",");
  15800. this.evalua = res.data[0][0].evaId;
  15801. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15802. this.courseType
  15803. ];
  15804. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15805. if (this.tcid && res.data[1].length) {
  15806. let _inviteA = [];
  15807. for (var ik = 0; ik < res.data[1].length; ik++) {
  15808. _inviteA.push({
  15809. cid: res.data[1][ik].classid,
  15810. ic: res.data[1][ik].code,
  15811. });
  15812. }
  15813. for (var ik = 0; ik < _inviteA.length; ik++) {
  15814. if (
  15815. this.arrayToArray(
  15816. _inviteA[ik].cid.split(","),
  15817. this.tcid.split(",")
  15818. ).length
  15819. ) {
  15820. this.inviteCode = _inviteA[ik].ic;
  15821. break;
  15822. }
  15823. }
  15824. }
  15825. for (var l = 0; l < this.chapInfoList.length; l++) {
  15826. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15827. for (var m = 0; m < w.length; m++) {
  15828. w[m].id = l + "-" + m;
  15829. }
  15830. }
  15831. if (
  15832. _chapterData[this.taskCount].length &&
  15833. _chapterData[this.taskCount][0].type == 2
  15834. ) {
  15835. this.showType = 0;
  15836. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15837. } else {
  15838. if (_chapterData[this.taskCount].length > 0) {
  15839. let _url = _chapterData[this.taskCount][0].url;
  15840. if (
  15841. _chapterData[this.taskCount][0].type == 8 ||
  15842. _chapterData[this.taskCount][0].type == 14
  15843. ) {
  15844. this.showType = 2;
  15845. if (
  15846. _url.indexOf("https://") == -1 &&
  15847. _url.indexOf("http://") == -1
  15848. ) {
  15849. _url = "https://" + _url;
  15850. }
  15851. this.pptImgUrl1 = _url;
  15852. } else if (_chapterData[this.taskCount][0].type == 3) {
  15853. if (
  15854. _url
  15855. .split(".")
  15856. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15857. ) {
  15858. this.showType = 3;
  15859. this.pptImgUrl1 = _url;
  15860. } else if (
  15861. this.isAssetTypeAnImage(
  15862. _url
  15863. .split(".")
  15864. [_url.split(".").length - 1].toLocaleLowerCase()
  15865. )
  15866. ) {
  15867. this.showType = 4;
  15868. this.pptImgUrl1 = _url;
  15869. } else {
  15870. this.showType = 2;
  15871. this.pptImgUrl1 =
  15872. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15873. encodeURIComponent(_url);
  15874. }
  15875. } else if (_chapterData[this.taskCount][0].type == 13) {
  15876. this.showType = 4;
  15877. this.pptImgUrl1 = _url;
  15878. } else if (_chapterData[this.taskCount][0].type == 6) {
  15879. this.showType = 1;
  15880. this.text = this.textList[this.taskCount][0];
  15881. }
  15882. }
  15883. }
  15884. this.isClickNav = 0;
  15885. if (
  15886. !_chapterData[this.taskCount].length ||
  15887. _chapterData[this.taskCount][0].type == 12
  15888. ) {
  15889. this.isClickNav = "";
  15890. this.showType = "";
  15891. }
  15892. this.vChapterData = _chapterData;
  15893. } else {
  15894. this.showType = 0;
  15895. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15896. .chapterInfo[0].taskJson;
  15897. var b = [
  15898. "AVI",
  15899. "NAVI",
  15900. "MPEG",
  15901. "ASF",
  15902. "MOV",
  15903. "WMV",
  15904. "3GP",
  15905. "RM",
  15906. "RMVB",
  15907. "FLV",
  15908. "F4V",
  15909. "H.264",
  15910. "H.265",
  15911. "REAL VIDEO",
  15912. "MKV",
  15913. "WebM",
  15914. "HDDVD",
  15915. "MP4",
  15916. "MPG",
  15917. "M4V",
  15918. "MGV",
  15919. "OGV",
  15920. "QTM",
  15921. "STR",
  15922. "AMC",
  15923. "DVX",
  15924. "EVO",
  15925. "DAT",
  15926. "OGG",
  15927. "OGM",
  15928. "MP3",
  15929. ];
  15930. let _chapterData = [];
  15931. for (var i = 0; i < a.length; i++) {
  15932. var c = a[i].chapterData;
  15933. this.vedio[i] = [];
  15934. this.textList[i] = [];
  15935. this.lineList[i] = [];
  15936. this.chapToolList[i] = [];
  15937. this.file[i] = [];
  15938. this.fileC[i] = [];
  15939. _chapterData[i] = c.filter((el) => {
  15940. return el.type != 12;
  15941. });
  15942. this.fileC[i] = c.filter((el) => {
  15943. return el.type == 12;
  15944. });
  15945. for (var j = 0; j < c.length; j++) {
  15946. if (c[j].type == 7) {
  15947. this.chapToolList[i].push(c[j]);
  15948. } else if (c[j].type == 8 || c[j].type == 14) {
  15949. this.lineList[i].push(c[j]);
  15950. } else if (c[j].type == 6) {
  15951. this.textList[i].push(c[j]);
  15952. } else {
  15953. if (
  15954. b.indexOf(
  15955. c[j].url
  15956. .split(".")
  15957. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15958. ) != -1
  15959. ) {
  15960. this.vedio[i].push(c[j]);
  15961. } else {
  15962. this.file[i].push(c[j]);
  15963. }
  15964. }
  15965. }
  15966. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15967. d.sources[0].src =
  15968. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15969. this.playerO[i] = d;
  15970. }
  15971. if (
  15972. _chapterData[this.taskCount].length &&
  15973. _chapterData[this.taskCount][0].type == 2
  15974. ) {
  15975. this.showType = 0;
  15976. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15977. } else {
  15978. if (_chapterData[this.taskCount].length > 0) {
  15979. let _url = _chapterData[this.taskCount][0].url;
  15980. if (
  15981. _chapterData[this.taskCount][0].type == 8 ||
  15982. _chapterData[this.taskCount][0].type == 14
  15983. ) {
  15984. this.showType = 2;
  15985. if (
  15986. _url.indexOf("https://") == -1 &&
  15987. _url.indexOf("http://") == -1
  15988. ) {
  15989. _url = "https://" + _url;
  15990. }
  15991. this.pptImgUrl1 = _url;
  15992. } else if (_chapterData[this.taskCount][0].type == 3) {
  15993. if (
  15994. _url
  15995. .split(".")
  15996. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15997. ) {
  15998. this.showType = 3;
  15999. this.pptImgUrl1 = _url;
  16000. } else if (
  16001. this.isAssetTypeAnImage(
  16002. _url
  16003. .split(".")
  16004. [_url.split(".").length - 1].toLocaleLowerCase()
  16005. )
  16006. ) {
  16007. this.showType = 4;
  16008. this.pptImgUrl1 = _url;
  16009. } else {
  16010. this.showType = 2;
  16011. this.pptImgUrl1 =
  16012. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16013. encodeURIComponent(_url);
  16014. }
  16015. } else if (_chapterData[this.taskCount][0].type == 13) {
  16016. this.showType = 4;
  16017. this.pptImgUrl1 = _url;
  16018. } else if (_chapterData[this.taskCount][0].type == 6) {
  16019. this.showType = 1;
  16020. this.text = this.textList[this.taskCount][0];
  16021. }
  16022. }
  16023. }
  16024. this.isClickNav = 0;
  16025. if (
  16026. !_chapterData[this.taskCount].length ||
  16027. _chapterData[this.taskCount][0].type == 12
  16028. ) {
  16029. this.isClickNav = "";
  16030. this.showType = "";
  16031. }
  16032. this.vChapterData = _chapterData;
  16033. this.$forceUpdate();
  16034. }
  16035. // else {
  16036. // this.courseDetail = res.data[0][0];
  16037. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16038. // }
  16039. let _this = this;
  16040. if (_this.timer) {
  16041. clearInterval(_this.timer);
  16042. _this.timer = null;
  16043. }
  16044. if (_this.tcid) {
  16045. _this.getCourseGroup(gindex);
  16046. } else {
  16047. _this.selectSWorks(gindex);
  16048. }
  16049. _this.selectStudent();
  16050. _this.selectSLook();
  16051. _this.getPick();
  16052. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16053. _this.setCTask();
  16054. }
  16055. if (_this.dialogVisibleGroup) {
  16056. _this.groupJson =
  16057. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16058. _this.taskCount
  16059. ].toolChoose[_this.toolindex].groupJson;
  16060. }
  16061. _this.$nextTick(() => {
  16062. setTimeout(() => {
  16063. _this.checkEva();
  16064. }, 1000);
  16065. });
  16066. _this.timer = setInterval(function () {
  16067. // _this.getCourseDetail(2);
  16068. if (_this.tcid) {
  16069. _this.getCourseGroup(gindex);
  16070. } else {
  16071. _this.selectSWorks(gindex);
  16072. }
  16073. _this.selectStudent();
  16074. _this.selectSLook();
  16075. _this.getPick();
  16076. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16077. _this.setCTask();
  16078. }
  16079. if (_this.dialogVisibleGroup) {
  16080. _this.groupJson =
  16081. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16082. _this.taskCount
  16083. ].toolChoose[_this.toolindex].groupJson;
  16084. }
  16085. if (_this.tType == 4 || _this.ispzType == 4) {
  16086. _this.selectPz();
  16087. }
  16088. }, 5000);
  16089. _this.$nextTick(function () {
  16090. setTimeout(() => {
  16091. // var a =
  16092. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16093. // document.getElementsByClassName("vedioList")[0].style.height =
  16094. // a + "px";
  16095. // document.getElementsByClassName("navBox")[0].style.height =
  16096. // a - 40 + "px";
  16097. // if (_this.vedio[_this.taskCount].length > 0) {
  16098. // _this.vedioTime = [];
  16099. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16100. // _this.vedioTime[i] = document.getElementsByClassName(
  16101. // "vjs-duration-display"
  16102. // )[i].textContent;
  16103. // }
  16104. // }
  16105. }, 1000);
  16106. });
  16107. })
  16108. .catch((err) => {
  16109. loading.close();
  16110. console.error(err);
  16111. });
  16112. },
  16113. getCourseGroup(gindex) {
  16114. let params = {
  16115. cid: this.id,
  16116. classid: this.tcid ? this.tcid : "1",
  16117. };
  16118. this.ajax
  16119. .get(this.$store.state.api + "getCourseGroup", params)
  16120. .then((res) => {
  16121. if (res.data && res.data[0].length) {
  16122. if (!this.isGroup) {
  16123. let courseGroup = JSON.parse(res.data[0][0].group);
  16124. courseGroup.group = courseGroup.group.filter((el) => {
  16125. el.works = [];
  16126. return el;
  16127. });
  16128. if (courseGroup.isopen == 2) {
  16129. this.isGroup = false;
  16130. this.selectSWorks(gindex);
  16131. return;
  16132. }
  16133. this.courseGroup = courseGroup;
  16134. let groupPerson = res.data[1];
  16135. let group = JSON.parse(res.data[0][0].group).group;
  16136. let courseGroupStudent = {};
  16137. let courseGroupStudentUid = {};
  16138. for (var i = 0; i < group.length; i++) {
  16139. courseGroupStudent[group[i].id] = [];
  16140. courseGroupStudentUid[group[i].id] = [];
  16141. for (var j = 0; j < groupPerson.length; j++) {
  16142. if (groupPerson[j].groupCid == group[i].id) {
  16143. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16144. courseGroupStudentUid[group[i].id].push(
  16145. groupPerson[j].userid
  16146. );
  16147. }
  16148. }
  16149. }
  16150. this.courseGroupStudent = courseGroupStudent;
  16151. this.courseGroupStudentUid = courseGroupStudentUid;
  16152. }
  16153. if (this.courseGroup.isopen == 2) {
  16154. this.isGroup = false;
  16155. } else {
  16156. this.isGroup = true;
  16157. }
  16158. this.selectSWorks(gindex);
  16159. } else {
  16160. this.selectSWorks(gindex);
  16161. this.isGroup = false;
  16162. }
  16163. })
  16164. .catch((err) => {
  16165. // this.$message.error("网络不佳");
  16166. console.error(err);
  16167. });
  16168. },
  16169. setOperationTime() {
  16170. let _this = this;
  16171. if (_this.opertimer) {
  16172. clearInterval(_this.opertimer);
  16173. _this.opertimer = null;
  16174. }
  16175. _this.opertimer = setInterval(() => {
  16176. _this.setoTime("600");
  16177. }, 600000);
  16178. },
  16179. setoTime(time) {
  16180. let params = [
  16181. {
  16182. uid: this.userid,
  16183. cid: this.id,
  16184. type: "2",
  16185. time: time,
  16186. },
  16187. ];
  16188. this.ajax
  16189. .post(this.$store.state.api + "addOperationTimeT2", params)
  16190. .then((res) => {})
  16191. .catch((err) => {
  16192. console.error(err);
  16193. });
  16194. },
  16195. addPz(type, content) {
  16196. if (type == "1" && this.pzConText == "") {
  16197. this.$message.error("评论不能为空!");
  16198. return;
  16199. }
  16200. let params = [
  16201. {
  16202. cid: this.id,
  16203. uid: this.userid,
  16204. s: this.courseType,
  16205. t: this.taskCount,
  16206. c: type == "1" ? this.pzConText : content,
  16207. type: type,
  16208. },
  16209. ];
  16210. this.ajax
  16211. .post(this.$store.state.api + "addPz2", params)
  16212. .then((res) => {
  16213. this.$message({
  16214. message: "添加成功",
  16215. type: "success",
  16216. });
  16217. this.pzConText = "";
  16218. this.addPzDialog = false;
  16219. this.selectPz();
  16220. })
  16221. .catch((err) => {
  16222. this.$message.error("添加失败");
  16223. console.error(err);
  16224. });
  16225. },
  16226. setReplyIndex(id, i) {
  16227. this.replyIndex = i;
  16228. this.replyPid = id;
  16229. this.replyDialogVisible = true;
  16230. },
  16231. addHf() {
  16232. if (this.reply == "") {
  16233. this.$message.error("回复不能为空!");
  16234. return;
  16235. }
  16236. let params = [
  16237. {
  16238. cid: this.id,
  16239. uid: this.userid,
  16240. s: this.courseType,
  16241. t: this.taskCount,
  16242. type: "1",
  16243. ct: 2,
  16244. pid: this.replyPid,
  16245. c: this.reply,
  16246. },
  16247. ];
  16248. this.ajax
  16249. .post(this.$store.state.api + "addHf", params)
  16250. .then((res) => {
  16251. this.reply = "";
  16252. this.$message({
  16253. message: "回复成功",
  16254. type: "success",
  16255. });
  16256. this.replyDialogVisible = false;
  16257. this.selectPz();
  16258. })
  16259. .catch((err) => {
  16260. this.$message.error("回复失败");
  16261. console.error(err);
  16262. });
  16263. },
  16264. deletePz(id) {
  16265. this.$confirm("确定删除此评论吗?", "提示", {
  16266. confirmButtonText: "确定",
  16267. cancelButtonText: "取消",
  16268. type: "warning",
  16269. })
  16270. .then(() => {
  16271. let params = [
  16272. {
  16273. id: id,
  16274. },
  16275. ];
  16276. this.ajax
  16277. .post(this.$store.state.api + "deletePz", params)
  16278. .then((res) => {
  16279. this.$message({
  16280. message: "删除成功",
  16281. type: "success",
  16282. });
  16283. this.selectPz();
  16284. })
  16285. .catch((err) => {
  16286. this.$message.error("网络异常");
  16287. console.error(err);
  16288. });
  16289. })
  16290. .catch(() => {});
  16291. },
  16292. deleteReply(id) {
  16293. this.$confirm("确定删除此回复吗?", "提示", {
  16294. confirmButtonText: "确定",
  16295. cancelButtonText: "取消",
  16296. type: "warning",
  16297. })
  16298. .then(() => {
  16299. let params = [
  16300. {
  16301. id: id,
  16302. },
  16303. ];
  16304. this.ajax
  16305. .post(this.$store.state.api + "deleteReply", params)
  16306. .then((res) => {
  16307. this.$message({
  16308. message: "删除成功",
  16309. type: "success",
  16310. });
  16311. this.selectPz();
  16312. })
  16313. .catch((err) => {
  16314. this.$message.error("网络异常");
  16315. console.error(err);
  16316. });
  16317. })
  16318. .catch(() => {});
  16319. },
  16320. setPz() {
  16321. if (this.ispzType == 4) {
  16322. this.ispzType = 0;
  16323. this.pzDialog = false;
  16324. return;
  16325. }
  16326. this.ispzType = 4;
  16327. this.pzDialog = true;
  16328. this.selectPz();
  16329. },
  16330. selectPz() {
  16331. let params = {
  16332. cid: this.id,
  16333. s: this.courseType,
  16334. t: this.taskCount,
  16335. type: this.pzStype,
  16336. uid: this.userid,
  16337. };
  16338. this.ajax
  16339. .get(this.$store.state.api + "selectPzListType", params)
  16340. .then((res) => {
  16341. this.pzList = res.data[0];
  16342. var a = res.data[1];
  16343. for (var i = 0; i < a.length; i++) {
  16344. for (var j = 0; j < this.pzList.length; j++) {
  16345. if (!this.pzList[j].hfList) {
  16346. this.pzList[j].hfList = [];
  16347. }
  16348. if (a[i].pid == this.pzList[j].id) {
  16349. this.pzList[j].hfList.push(a[i]);
  16350. }
  16351. }
  16352. }
  16353. })
  16354. .catch((err) => {
  16355. console.error(err);
  16356. });
  16357. },
  16358. // selectHf() {
  16359. // let params = {
  16360. // cid: this.id,
  16361. // s: this.courseType,
  16362. // t: this.taskCount,
  16363. // };
  16364. // this.ajax
  16365. // .get(this.$store.state.api + "selectHfList", params)
  16366. // .then((res) => {
  16367. // var a = res.data[0];
  16368. // for (var i = 0; i < a.length; i++) {
  16369. // for (var j = 0; j < this.pzList.length; j++) {
  16370. // if (!this.pzList[i].hfList) {
  16371. // this.pzList[i].hfList = [];
  16372. // }
  16373. // if (a[i].pid == this.pzList[j].id) {
  16374. // this.pzList[i].hfList.push(a[i]);
  16375. // }
  16376. // }
  16377. // }
  16378. // })
  16379. // .catch((err) => {
  16380. // console.error(err);
  16381. // });
  16382. // },
  16383. updateSLook() {
  16384. let params = {
  16385. sopen: this.sIsOpen == false ? 1 : 2,
  16386. cid: this.id,
  16387. };
  16388. this.ajax
  16389. .get(this.$store.state.api + "updateTrainCourseSLook", params)
  16390. .then((res) => {
  16391. if (this.sIsOpen == true) {
  16392. this.$message({
  16393. message: "权限设置成功",
  16394. type: "success",
  16395. });
  16396. } else {
  16397. this.$message({
  16398. message: "权限关闭成功",
  16399. type: "success",
  16400. });
  16401. }
  16402. })
  16403. .catch((err) => {
  16404. console.error(err);
  16405. });
  16406. },
  16407. updateFollow() {
  16408. let params = [
  16409. {
  16410. sopen: this.IsFollow == false ? 1 : 2,
  16411. cid: this.id,
  16412. },
  16413. ];
  16414. this.ajax
  16415. .post(this.$store.state.api + "updateTrainCourseFollow", params)
  16416. .then((res) => {
  16417. if (this.IsFollow == true) {
  16418. this.$message({
  16419. message: "开启成功",
  16420. type: "success",
  16421. });
  16422. } else {
  16423. this.$message({
  16424. message: "关闭成功",
  16425. type: "success",
  16426. });
  16427. }
  16428. this.setCTask();
  16429. })
  16430. .catch((err) => {
  16431. console.error(err);
  16432. });
  16433. },
  16434. setCTask() {
  16435. let params = [
  16436. {
  16437. sopen: this.courseType + "-" + this.taskCount,
  16438. cid: this.id,
  16439. },
  16440. ];
  16441. this.ajax
  16442. .post(this.$store.state.api + "updateTrainCourseFollowC", params)
  16443. .then((res) => {})
  16444. .catch((err) => {
  16445. console.error(err);
  16446. });
  16447. },
  16448. updateLookOpen() {
  16449. let params = [
  16450. {
  16451. sopen: this.IsLookOpen == false ? 1 : 2,
  16452. cid: this.id,
  16453. },
  16454. ];
  16455. this.ajax
  16456. .post(this.$store.state.api + "updateTrainCourseLookOpen", params)
  16457. .then((res) => {
  16458. if (this.IsLookOpen == true) {
  16459. // if (this.courseType != 0 && this.taskCount != 0) {
  16460. // this.openTask(0, 0, "0-0");
  16461. // }
  16462. this.$message({
  16463. message: "权限设置成功",
  16464. type: "success",
  16465. });
  16466. } else {
  16467. this.$message({
  16468. message: "权限关闭成功",
  16469. type: "success",
  16470. });
  16471. }
  16472. this.getCourseState(2);
  16473. })
  16474. .catch((err) => {
  16475. console.error(err);
  16476. });
  16477. },
  16478. selectSLook() {
  16479. let params = {
  16480. cid: this.id,
  16481. };
  16482. this.ajax
  16483. .get(this.$store.state.api + "selectTrainCourseSLook", params)
  16484. .then((res) => {
  16485. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16486. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16487. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16488. if (!this.IsLookOpen) {
  16489. this.setNavList();
  16490. } else {
  16491. this.getCourseState(1);
  16492. }
  16493. if (this.IsFollow && this.tType == 2) {
  16494. this.setContent2(false);
  16495. let _followC = res.data[0][0].followC.split("-");
  16496. if (
  16497. this.courseType != _followC[0] ||
  16498. this.taskCount != _followC[1]
  16499. ) {
  16500. this.navList[this.courseType].isOpen = false;
  16501. this.courseType = _followC[0];
  16502. this.navList[this.courseType].isOpen = true;
  16503. this.taskCount = parseInt(_followC[1]);
  16504. this.navId = res.data[0][0].followC;
  16505. document.scrollingElement.scrollTop = 0;
  16506. this.getCourseDetail(2);
  16507. }
  16508. }
  16509. })
  16510. .catch((err) => {
  16511. console.error(err);
  16512. });
  16513. },
  16514. setNavList() {
  16515. if (this.navList.length == 0) {
  16516. this.navList = [];
  16517. var copyList = [];
  16518. for (var l = 0; l < this.chapInfoList.length; l++) {
  16519. var q = this.chapInfoList[l].dyName;
  16520. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16521. var e;
  16522. copyList.push({
  16523. dyName: q,
  16524. isOpen: l === 0 ? true : false,
  16525. task: [],
  16526. });
  16527. for (var r = 0; r < w.length; r++) {
  16528. e = w[r].task;
  16529. if (this.chapInfoList[l].easy == 1) {
  16530. copyList[l].task.push({
  16531. taskName: q,
  16532. id: l + "-" + r,
  16533. isLook: w[r].isLook,
  16534. isOpen: r === 0 ? true : false,
  16535. tool: [],
  16536. });
  16537. } else {
  16538. copyList[l].task.push({
  16539. taskName: e,
  16540. id: l + "-" + r,
  16541. isLook: w[r].isLook,
  16542. isOpen: r === 0 ? true : false,
  16543. tool: [],
  16544. });
  16545. }
  16546. var t = w[r].toolChoose;
  16547. for (var k = 0; k < t.length; k++) {
  16548. var tool = t[k].tool[0];
  16549. copyList[l].task[r].tool.push({
  16550. tool: tool,
  16551. isTool: false,
  16552. });
  16553. }
  16554. // this.navId = this.navId ? this.navId : l + "-" + r;
  16555. // this.navId = l + "-" + r;
  16556. }
  16557. }
  16558. this.navList = copyList;
  16559. this.navList[0].isOpen = false;
  16560. this.navList[this.courseType].isOpen = true;
  16561. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16562. } else {
  16563. this.setNavList2();
  16564. }
  16565. },
  16566. setNavList2() {
  16567. for (var l = 0; l < this.chapInfoList.length; l++) {
  16568. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16569. for (var r = 0; r < w.length; r++) {
  16570. this.navList[l].task[r].isLook = w[r].isLook;
  16571. }
  16572. }
  16573. if (
  16574. this.IsLookOpen &&
  16575. !this.navList[this.courseType].task[this.taskCount].isLook
  16576. ) {
  16577. this.openTask(0, 0, "0-0");
  16578. }
  16579. this.$forceUpdate();
  16580. },
  16581. getCourseState(type) {
  16582. let params = {
  16583. cid: this.id,
  16584. };
  16585. this.ajax
  16586. .get(this.$store.state.api + "getCourseState", params)
  16587. .then((res) => {
  16588. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16589. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16590. this.setNavList();
  16591. this.$forceUpdate();
  16592. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16593. this.addCourseState(2);
  16594. } else {
  16595. this.addCourseState(1);
  16596. }
  16597. })
  16598. .catch((err) => {
  16599. console.error(err);
  16600. });
  16601. },
  16602. addCourseState(type) {
  16603. let _state = this.chapInfoList;
  16604. // this.courseType this.taskCount
  16605. if (type == 1 || type == 2) {
  16606. for (var i = 0; i < _state.length; i++) {
  16607. let el = _state[i].chapterInfo[0].taskJson;
  16608. for (var j = 0; j < el.length; j++) {
  16609. // if (i == 0 && j == 0) {
  16610. // el[j].isLook = true;
  16611. // } else {
  16612. // el[j].isLook = false;
  16613. // }
  16614. if (
  16615. this.courseType > i ||
  16616. (this.courseType == i && this.taskCount + 1 > j)
  16617. ) {
  16618. el[j].isLook = true;
  16619. } else {
  16620. el[j].isLook = false;
  16621. }
  16622. }
  16623. }
  16624. }
  16625. let params = [
  16626. {
  16627. cid: this.id,
  16628. state: JSON.stringify(_state),
  16629. },
  16630. ];
  16631. this.ajax
  16632. .post(
  16633. this.$store.state.api +
  16634. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16635. params
  16636. )
  16637. .then((res) => {
  16638. if (this.IsLookOpen) {
  16639. this.setNavList();
  16640. }
  16641. if (type == 3 && type == 2) {
  16642. this.getCourseState(1);
  16643. }
  16644. })
  16645. .catch((err) => {
  16646. console.error(err);
  16647. });
  16648. },
  16649. getHomeWork() {
  16650. let params = {
  16651. cid: this.id,
  16652. stage: this.courseType,
  16653. task: this.taskCount,
  16654. uid: this.userid,
  16655. };
  16656. this.ajax
  16657. .get(this.$store.state.api + "selectWork", params)
  16658. .then((res) => {
  16659. if (res.data[0].length > 0) {
  16660. this.studyJuri = JSON.parse(res.data[0][0].content);
  16661. this.isNoHomeWork = true;
  16662. }
  16663. })
  16664. .catch((err) => {
  16665. console.error(err);
  16666. });
  16667. },
  16668. isAssetTypeAnImage(ext) {
  16669. return (
  16670. [
  16671. "png",
  16672. "jpg",
  16673. "jpeg",
  16674. "bmp",
  16675. "gif",
  16676. "webp",
  16677. "psd",
  16678. "svg",
  16679. "tiff",
  16680. ].indexOf(ext) !== -1
  16681. );
  16682. },
  16683. switchVideo(media) {
  16684. this.playerO = {};
  16685. this.playerOptions.poster = "";
  16686. this.playerOptions.sources[0].src = media;
  16687. this.playerO = this.playerOptions;
  16688. },
  16689. onPlayerPlay() {},
  16690. onPlayerTimeupdate(player) {
  16691. let gklog = player.cache_.currentTime; //当前播放的秒数
  16692. let a = player.cache_.duration; //视频的总时长
  16693. let gklog2 = parseInt(gklog);
  16694. // if(gklog2 == '3'){
  16695. // player.pause()
  16696. // setTimeout(()=>{
  16697. // player.currentTime(gklog2+1)
  16698. // player.play()
  16699. // },1000)
  16700. // }
  16701. console.log(" onPlayerTimeupdate!", gklog);
  16702. console.log(" onPlayerTimeupdate!", gklog2);
  16703. },
  16704. lookVedio(u, i) {
  16705. this.isClickNav = "";
  16706. // this.playerOptions.sources[0].src = u;
  16707. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16708. d.sources[0].src = u;
  16709. this.playerO[this.taskCount] = d;
  16710. this.showType = 0;
  16711. // this.isClickNav = "video" + i;
  16712. this.isClickNav = i;
  16713. this.$forceUpdate();
  16714. },
  16715. lookText(i, t) {
  16716. this.isClickNav = "";
  16717. // this.text = this.textList[i][t];
  16718. this.text = this.vChapterData[i][t];
  16719. // this.dialogVisible1 = true;
  16720. this.showType = 1;
  16721. // this.isClickNav = "text" + t;
  16722. this.isClickNav = t;
  16723. },
  16724. lookTools(i, t) {
  16725. this.chapTools = this.chapToolList[i][t];
  16726. this.dialogVisible2 = true;
  16727. },
  16728. openFile(f) {
  16729. this.pptImgUrl = "";
  16730. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16731. if (
  16732. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16733. -1
  16734. ) {
  16735. this.pptImgUrl =
  16736. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16737. this.showPDF = false;
  16738. this.dialogVisible3 = true;
  16739. } else if (
  16740. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16741. ) {
  16742. this.pptImgUrl = f;
  16743. this.showPDF = true;
  16744. this.dialogVisible3 = true;
  16745. }
  16746. },
  16747. openTable(f) {
  16748. this.tableJson = JSON.parse(f.works);
  16749. this.dialogVisibleTable2 = true;
  16750. },
  16751. openWord(f) {
  16752. this.tableJson = JSON.parse(f.works);
  16753. this.dialogVisibleTable3 = true;
  16754. },
  16755. doUrl(url, i) {
  16756. this.isClickNav = "";
  16757. this.pptImgUrl1 = "";
  16758. this.showType = 2;
  16759. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16760. url = "https://" + url;
  16761. }
  16762. this.pptImgUrl1 = "";
  16763. setTimeout(() => {
  16764. this.pptImgUrl1 = url;
  16765. }, 500);
  16766. // this.isClickNav = "line" + i;
  16767. this.isClickNav = i;
  16768. this.$forceUpdate();
  16769. },
  16770. checkPhoto(f, i) {
  16771. this.showType = 4;
  16772. this.pptImgUrl1 = f.url;
  16773. this.isClickNav = i;
  16774. this.$forceUpdate();
  16775. },
  16776. downFile(f, i) {
  16777. this.isClickNav = "";
  16778. this.pptImgUrl1 = "";
  16779. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16780. if (
  16781. a.indexOf(
  16782. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16783. ) != -1
  16784. ) {
  16785. this.pptImgUrl1 =
  16786. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  16787. // this.dialogVisible3 = true;
  16788. this.showType = 2;
  16789. } else if (
  16790. this.isAssetTypeAnImage(
  16791. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16792. )
  16793. ) {
  16794. this.showType = 4;
  16795. this.pptImgUrl1 = f.url;
  16796. } else if (
  16797. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16798. "PDF"
  16799. ) {
  16800. this.pptImgUrl1 = f.url;
  16801. // this.dialogVisible3 = true;
  16802. this.showType = 3;
  16803. } else {
  16804. window.open(this.file[i].url);
  16805. }
  16806. // this.isClickNav = "word" + i;
  16807. this.isClickNav = i;
  16808. },
  16809. downFileList(i) {
  16810. window.open(this.noImgList[i].url);
  16811. },
  16812. openAddWork() {
  16813. this.dialogVisible = true;
  16814. },
  16815. addBzWorks() {
  16816. let params = [
  16817. {
  16818. uid: this.userid,
  16819. cid: this.id,
  16820. stage: this.courseType,
  16821. task: this.taskCount,
  16822. tool: this.toolindex,
  16823. content: JSON.stringify(this.eScore),
  16824. type: 6,
  16825. },
  16826. ];
  16827. this.ajax
  16828. .post(this.$store.state.api + "addCourseWorks", params)
  16829. .then((res) => {
  16830. this.$message({
  16831. message: "提交成功",
  16832. type: "success",
  16833. });
  16834. this.eScore = { eBzText: "", eStar: [] };
  16835. this.studentEvalDialogVisible = false;
  16836. this.selectSWorks();
  16837. })
  16838. .catch((err) => {
  16839. this.$message.error("提交失败");
  16840. console.error(err);
  16841. });
  16842. },
  16843. addBzWorksTeacher() {
  16844. let params = [
  16845. {
  16846. uid: this.sStudent.userid,
  16847. cid: this.id,
  16848. stage: this.courseType,
  16849. task: this.taskCount,
  16850. tool: this.toolindex,
  16851. content: JSON.stringify(this.eScore),
  16852. type: 6,
  16853. },
  16854. ];
  16855. this.ajax
  16856. .post(this.$store.state.api + "addCourseWorks", params)
  16857. .then((res) => {
  16858. this.$message({
  16859. message: "提交成功",
  16860. type: "success",
  16861. });
  16862. this.eScore = { eBzText: "", eStar: [] };
  16863. this.studentEvalDialogVisibleTeacher = false;
  16864. this.selectSWorks();
  16865. })
  16866. .catch((err) => {
  16867. this.$message.error("提交失败");
  16868. console.error(err);
  16869. });
  16870. },
  16871. addStudentAsk() {
  16872. if (!this.radio.length) {
  16873. this.$message.error("请选择选项");
  16874. return;
  16875. }
  16876. for (var i = 0; i < this.askJson.askCount; i++) {
  16877. if (
  16878. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16879. (this.radio[i] !== 0 && !this.radio[i])
  16880. ) {
  16881. this.$message.error("请选择选项");
  16882. return;
  16883. }
  16884. }
  16885. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16886. let params = [
  16887. {
  16888. uid: this.userid,
  16889. cid: this.id,
  16890. stage: this.courseType,
  16891. task: this.taskCount,
  16892. tool: this.toolindex,
  16893. content: JSON.stringify(this.askList),
  16894. type: 2,
  16895. },
  16896. ];
  16897. this.ajax
  16898. .post(this.$store.state.api + "addCourseWorks", params)
  16899. .then((res) => {
  16900. this.$message({
  16901. message: "提交成功",
  16902. type: "success",
  16903. });
  16904. this.askList = [];
  16905. this.dialogVisible5 = false;
  16906. this.selectStudent();
  16907. this.selectSWorks();
  16908. this.selectSLook();
  16909. })
  16910. .catch((err) => {
  16911. this.$message.error("提交失败");
  16912. console.error(err);
  16913. });
  16914. },
  16915. addStudentAskTeacher() {
  16916. if (!this.radio.length) {
  16917. this.$message.error("请选择选项");
  16918. return;
  16919. }
  16920. for (var i = 0; i < this.askJson.askCount; i++) {
  16921. if (
  16922. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16923. (this.radio[i] !== 0 && !this.radio[i])
  16924. ) {
  16925. this.$message.error("请选择选项");
  16926. return;
  16927. }
  16928. }
  16929. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16930. let params = [
  16931. {
  16932. uid: this.sStudent.userid,
  16933. cid: this.id,
  16934. stage: this.courseType,
  16935. task: this.taskCount,
  16936. tool: this.toolindex,
  16937. content: JSON.stringify(this.askList),
  16938. type: 2,
  16939. },
  16940. ];
  16941. this.ajax
  16942. .post(this.$store.state.api + "addCourseWorks", params)
  16943. .then((res) => {
  16944. this.$message({
  16945. message: "提交成功",
  16946. type: "success",
  16947. });
  16948. this.askList = [];
  16949. this.dialogVisible5Teacher = false;
  16950. this.selectStudent();
  16951. this.selectSWorks();
  16952. this.selectSLook();
  16953. })
  16954. .catch((err) => {
  16955. this.$message.error("提交失败");
  16956. console.error(err);
  16957. });
  16958. },
  16959. addStudentTest() {
  16960. if (!this.radio.length) {
  16961. this.$message.error("请选择选项");
  16962. return;
  16963. }
  16964. for (var i = 0; i < this.testJson.testCount; i++) {
  16965. if (
  16966. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16967. (this.radio[i] !== 0 && !this.radio[i])
  16968. ) {
  16969. this.$message.error("请选择选项");
  16970. return;
  16971. }
  16972. }
  16973. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16974. let params = [
  16975. {
  16976. uid: this.userid,
  16977. cid: this.id,
  16978. stage: this.courseType,
  16979. task: this.taskCount,
  16980. tool: this.toolindex,
  16981. content: JSON.stringify(this.askList),
  16982. type: 8,
  16983. },
  16984. ];
  16985. this.ajax
  16986. .post(this.$store.state.api + "addCourseWorks", params)
  16987. .then((res) => {
  16988. this.$message({
  16989. message: "提交成功",
  16990. type: "success",
  16991. });
  16992. this.askList = [];
  16993. this.dialogVisibleChoice = false;
  16994. this.selectStudent();
  16995. this.selectSWorks();
  16996. this.selectSLook();
  16997. })
  16998. .catch((err) => {
  16999. this.$message.error("提交失败");
  17000. console.error(err);
  17001. });
  17002. },
  17003. addStudentTestTeacher() {
  17004. if (!this.radio.length) {
  17005. this.$message.error("请选择选项");
  17006. return;
  17007. }
  17008. for (var i = 0; i < this.testJson.testCount; i++) {
  17009. if (
  17010. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17011. (this.radio[i] !== 0 && !this.radio[i])
  17012. ) {
  17013. this.$message.error("请选择选项");
  17014. return;
  17015. }
  17016. }
  17017. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17018. let params = [
  17019. {
  17020. uid: this.sStudent.userid,
  17021. cid: this.id,
  17022. stage: this.courseType,
  17023. task: this.taskCount,
  17024. tool: this.toolindex,
  17025. content: JSON.stringify(this.askList),
  17026. type: 8,
  17027. },
  17028. ];
  17029. this.ajax
  17030. .post(this.$store.state.api + "addCourseWorks", params)
  17031. .then((res) => {
  17032. this.$message({
  17033. message: "提交成功",
  17034. type: "success",
  17035. });
  17036. this.askList = [];
  17037. this.dialogVisibleChoiceTeacher = false;
  17038. this.selectStudent();
  17039. this.selectSWorks();
  17040. this.selectSLook();
  17041. })
  17042. .catch((err) => {
  17043. this.$message.error("提交失败");
  17044. console.error(err);
  17045. });
  17046. },
  17047. addWork() {
  17048. if (this.studyJuri[0].content == "") {
  17049. this.$message.error("请将信息填写完整");
  17050. return;
  17051. } else if (this.studyJuri[0].cover.length == 0) {
  17052. this.$message.error("请将信息填写完整");
  17053. return;
  17054. } else if (this.studyJuri[0].upVedio.length == 0) {
  17055. this.$message.error("请将信息填写完整");
  17056. return;
  17057. }
  17058. if (this.isNoHomeWork) {
  17059. this.$confirm(
  17060. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17061. "提示",
  17062. {
  17063. confirmButtonText: "确定",
  17064. cancelButtonText: "取消",
  17065. type: "warning",
  17066. }
  17067. )
  17068. .then(() => {
  17069. let params = [
  17070. {
  17071. uid: this.userid,
  17072. cid: this.id,
  17073. stage: this.courseType,
  17074. task: this.taskCount,
  17075. content: JSON.stringify(this.studyJuri),
  17076. },
  17077. ];
  17078. this.ajax
  17079. .post(this.$store.state.api + "addWorks", params)
  17080. .then((res) => {
  17081. this.$message({
  17082. message: "提交成功",
  17083. type: "success",
  17084. });
  17085. this.isNoHomeWork = true;
  17086. this.dialogVisible = false;
  17087. })
  17088. .catch((err) => {
  17089. this.$message.error("提交失败");
  17090. console.error(err);
  17091. });
  17092. })
  17093. .catch(() => {});
  17094. } else {
  17095. let params = [
  17096. {
  17097. uid: this.userid,
  17098. cid: this.id,
  17099. stage: this.courseType,
  17100. task: this.taskCount,
  17101. content: JSON.stringify(this.studyJuri),
  17102. },
  17103. ];
  17104. this.ajax
  17105. .post(this.$store.state.api + "addWorks", params)
  17106. .then((res) => {
  17107. this.$message({
  17108. message: "提交成功",
  17109. type: "success",
  17110. });
  17111. this.isNoHomeWork = true;
  17112. this.dialogVisible = false;
  17113. })
  17114. .catch((err) => {
  17115. this.$message.error("提交失败");
  17116. console.error(err);
  17117. });
  17118. }
  17119. },
  17120. selectCount() {
  17121. let params = {
  17122. cid: this.id,
  17123. chid: this.courseType,
  17124. uid: this.userid,
  17125. };
  17126. this.ajax
  17127. .get(this.$store.state.api + "selectToolsCount", params)
  17128. .then((res) => {
  17129. for (var i = 0; i < res.data[0].length; i++) {
  17130. if (res.data[0][i].tools == 1) {
  17131. this.wbCount = res.data[0][i].count;
  17132. } else if (res.data[0][i].tools == 2) {
  17133. this.wordCount = res.data[0][i].count;
  17134. } else if (res.data[0][i].tools == 3) {
  17135. this.mindCount = res.data[0][i].count;
  17136. } else if (res.data[0][i].tools == 4) {
  17137. this.askCount = res.data[0][i].count;
  17138. } else if (res.data[0][i].tools == 6) {
  17139. this.noteCount = res.data[0][i].count;
  17140. } else if (res.data[0][i].tools == 7) {
  17141. this.mindNetWorkCount = res.data[0][i].count;
  17142. } else if (res.data[0][i].tools == 8) {
  17143. this.libraryCount = res.data[0][i].count;
  17144. } else if (res.data[0][i].tools == 16) {
  17145. this.workCount = res.data[0][i].count;
  17146. } else if (res.data[0][i].tools == 10) {
  17147. this.timeCount = res.data[0][i].count;
  17148. } else if (res.data[0][i].tools == 15) {
  17149. this.answerCount = res.data[0][i].count;
  17150. } else if (res.data[0][i].tools == 18) {
  17151. this.trainCount = res.data[0][i].count;
  17152. }
  17153. }
  17154. })
  17155. .catch((err) => {
  17156. console.error(err);
  17157. });
  17158. },
  17159. openTools(t, i, index, c, sName,id) {
  17160. var z = JSON.parse(c);
  17161. this.noteName = sName;
  17162. if (t == 4) {
  17163. this.radio = [];
  17164. this.isAnswer = false;
  17165. let b = z[0].anwer;
  17166. this.radio = b;
  17167. this.askJson = z[0].askJson;
  17168. this.isAnswer = true;
  17169. this.dialogVisible5 = true;
  17170. } else if (t == 45) {
  17171. this.radio = [];
  17172. this.isAnswer = false;
  17173. let b = z[0].anwer;
  17174. this.radio = b;
  17175. this.testJson = z[0].testJson;
  17176. this.isAnswer = true;
  17177. this.dialogVisibleChoice = true;
  17178. }else if(t == 69){
  17179. this.oldEnglishJson1 = {}
  17180. this.oldEnglishJson = {}
  17181. this.englishList1 = {}
  17182. this.newEngIndex = -1;
  17183. this.isNoUserid = false;
  17184. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17185. .toolChoose[i].englishList;
  17186. this.oldEnglishJson = z;
  17187. this.engWid = id;
  17188. this.newEnglishList = { engTitle:"",engText:"" }
  17189. this.newEnglishList1 = []
  17190. this.selectEngC(id,z);
  17191. }
  17192. // else if (t == 15) {
  17193. // this.answerQ = "";
  17194. // this.questionAnswer = "";
  17195. // this.answerQ = z[0].answerTitle;
  17196. // this.questionAnswer = z[0].answer;
  17197. // this.answerDialogVisible = true;
  17198. // }
  17199. },
  17200. fastText(p, t) {
  17201. if (t == 1) {
  17202. this.commentText += p;
  17203. } else {
  17204. this.eScore.eBzText += p;
  17205. }
  17206. },
  17207. addTools(t, i, index) {
  17208. var a = 0;
  17209. // this.taskCount = index;
  17210. this.toolindex = i;
  17211. if (t == 1) {
  17212. if (this.wbCount > 0) {
  17213. this.updateCount(this.wbCount, t);
  17214. } else {
  17215. this.wbCount++;
  17216. a = this.wbCount;
  17217. this.toolsCount(a, t);
  17218. }
  17219. window.parent.postMessage(
  17220. {
  17221. tools: "1",
  17222. cid: this.id,
  17223. stage: this.courseType,
  17224. task: this.taskCount,
  17225. tool: i,
  17226. },
  17227. "*"
  17228. );
  17229. } else if (t == 2) {
  17230. if (this.wordCount > 0) {
  17231. this.updateCount(this.wordCount, t);
  17232. } else {
  17233. this.wordCount++;
  17234. a = this.wordCount;
  17235. this.toolsCount(a, t);
  17236. }
  17237. window.parent.postMessage({ tools: "2" }, "*");
  17238. } else if (t == 3) {
  17239. if (this.mindCount > 0) {
  17240. this.updateCount(this.mindCount, t);
  17241. } else {
  17242. this.mindCount++;
  17243. a = this.mindCount;
  17244. this.toolsCount(a, t);
  17245. }
  17246. window.parent.postMessage(
  17247. {
  17248. tools: "3",
  17249. cid: this.id,
  17250. stage: this.courseType,
  17251. task: this.taskCount,
  17252. tool: i,
  17253. },
  17254. "*"
  17255. );
  17256. } else if (t == 4) {
  17257. this.radio = [];
  17258. this.noteName = "";
  17259. this.isAnswer = false;
  17260. if (this.askCount > 0) {
  17261. this.updateCount(this.askCount, t);
  17262. } else {
  17263. this.askCount++;
  17264. a = this.askCount;
  17265. this.toolsCount(a, t);
  17266. }
  17267. if (!this.dialogVisible2) {
  17268. this.askJson.askJson =
  17269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17270. index
  17271. ].toolChoose[i].askJson;
  17272. this.askJson.askTitle =
  17273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17274. index
  17275. ].toolChoose[i].askTitle;
  17276. this.askJson.askCount =
  17277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17278. index
  17279. ].toolChoose[i].askCount;
  17280. } else {
  17281. this.askJson.askJson = this.chapTools.askJson.askJson;
  17282. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17283. this.askJson.askCount = this.chapTools.askJson.askCount;
  17284. }
  17285. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17286. if (this.askJson.askJson[k].type == "2") {
  17287. this.radio.push([]);
  17288. } else {
  17289. this.radio.push("");
  17290. }
  17291. }
  17292. this.dialogVisible5 = true;
  17293. // window.parent.postMessage({ tools: "4" }, "*");
  17294. } else if (t == 45) {
  17295. this.noteName = "";
  17296. this.radio = [];
  17297. this.isAnswer = false;
  17298. if (this.askCount > 0) {
  17299. this.updateCount(this.askCount, t);
  17300. } else {
  17301. this.askCount++;
  17302. a = this.askCount;
  17303. this.toolsCount(a, t);
  17304. }
  17305. this.testJson =
  17306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17307. index
  17308. ].toolChoose[i].testJson;
  17309. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17310. if (this.testJson.testJson[k].type == "2") {
  17311. this.radio.push([]);
  17312. } else {
  17313. this.radio.push("");
  17314. }
  17315. }
  17316. this.dialogVisibleChoice = true;
  17317. // window.parent.postMessage({ tools: "4" }, "*");
  17318. } else if (t == 5) {
  17319. if (this.scoreCount > 0) {
  17320. this.updateCount(this.scoreCount, t);
  17321. } else {
  17322. this.scoreCount++;
  17323. a = this.scoreCount;
  17324. this.toolsCount(a, t);
  17325. }
  17326. this.dialogVisible4 = true;
  17327. // window.parent.postMessage({ tools: "5" }, "*");
  17328. } else if (t == 6) {
  17329. if (this.noteCount > 0) {
  17330. this.updateCount(this.noteCount, t);
  17331. } else {
  17332. this.noteCount++;
  17333. a = this.noteCount;
  17334. this.toolsCount(a, t);
  17335. }
  17336. window.parent.postMessage(
  17337. {
  17338. tools: "6",
  17339. cid: this.id,
  17340. stage: this.courseType,
  17341. task: this.taskCount,
  17342. tool: i,
  17343. },
  17344. "*"
  17345. );
  17346. } else if (t == 7) {
  17347. if (this.mindNetWorkCount > 0) {
  17348. this.updateCount(this.mindNetWorkCount, t);
  17349. } else {
  17350. this.mindNetWorkCount++;
  17351. a = this.mindNetWorkCount;
  17352. this.toolsCount(a, t);
  17353. }
  17354. window.parent.postMessage(
  17355. {
  17356. tools: "7",
  17357. cid: this.id,
  17358. stage: this.courseType,
  17359. task: this.taskCount,
  17360. tool: i,
  17361. },
  17362. "*"
  17363. );
  17364. } else if (t == 16) {
  17365. if (this.workCount > 0) {
  17366. this.updateCount(this.workCount, t);
  17367. } else {
  17368. this.workCount++;
  17369. a = this.workCount;
  17370. this.toolsCount(a, t);
  17371. }
  17372. this.dialogVisible = true;
  17373. } else if (t == 50) {
  17374. if (this.tType == 2) {
  17375. this.$message.error("不支持学生使用");
  17376. return;
  17377. }
  17378. this.plworkFile = [];
  17379. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17380. if (!this.uploadCid) {
  17381. this.$message.error(
  17382. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17383. );
  17384. return;
  17385. }
  17386. // this.uploadCid =
  17387. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17388. // index
  17389. // ].toolChoose[i].uploadJson[0];
  17390. this.selectUploadStudent(2);
  17391. } else if (t == 8) {
  17392. if (this.libraryCount > 0) {
  17393. this.updateCount(this.libraryCount, t);
  17394. } else {
  17395. this.libraryCount++;
  17396. a = this.libraryCount;
  17397. this.toolsCount(a, t);
  17398. }
  17399. window.parent.postMessage({ tools: "8" }, "*");
  17400. } else if (t == 17) {
  17401. if (this.libraryCount > 0) {
  17402. this.updateCount(this.libraryCount, t);
  17403. } else {
  17404. this.libraryCount++;
  17405. a = this.libraryCount;
  17406. this.toolsCount(a, t);
  17407. }
  17408. window.parent.postMessage({ tools: "17" }, "*");
  17409. } else if (t == 18) {
  17410. if (this.trainCount > 0) {
  17411. this.updateCount(this.trainCount, t);
  17412. } else {
  17413. this.trainCount++;
  17414. a = this.trainCount;
  17415. this.toolsCount(a, t);
  17416. }
  17417. window.parent.postMessage({ tools: "18" }, "*");
  17418. } else if (t == 10) {
  17419. if (this.timeCount > 0) {
  17420. this.updateCount(this.timeCount, t);
  17421. } else {
  17422. this.timeCount++;
  17423. a = this.timeCount;
  17424. this.toolsCount(a, t);
  17425. }
  17426. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17427. .taskJson[index].toolChoose[i].preTime
  17428. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17429. .toolChoose[i].preTime
  17430. : "";
  17431. this.timeDialogVisible = true;
  17432. } else if (t == 15) {
  17433. this.answerQ = "";
  17434. this.questionAnswer = "";
  17435. if (this.answerCount > 0) {
  17436. this.updateCount(this.answerCount, t);
  17437. } else {
  17438. this.answerCount++;
  17439. a = this.answerCount;
  17440. this.toolsCount(a, t);
  17441. }
  17442. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17443. .taskJson[index].toolChoose[i].answerQ
  17444. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17445. .toolChoose[i].answerQ
  17446. : "";
  17447. this.answerDialogVisible = true;
  17448. } else if (t == 21) {
  17449. window.parent.postMessage({ tools: "21" }, "*");
  17450. } else if (t == 22) {
  17451. window.parent.postMessage({ tools: "22" }, "*");
  17452. } else if (t == 23) {
  17453. window.parent.postMessage({ tools: "23" }, "*");
  17454. } else if (t == 24) {
  17455. window.parent.postMessage({ tools: "24" }, "*");
  17456. } else if (t == 25) {
  17457. window.parent.postMessage({ tools: "25" }, "*");
  17458. } else if (t == 31) {
  17459. window.parent.postMessage({ tools: "31" }, "*");
  17460. } else if (t == 28) {
  17461. window.parent.postMessage({ tools: "28" }, "*");
  17462. } else if (t == 37) {
  17463. window.parent.postMessage({ tools: "37" }, "*");
  17464. } else if (t == 38) {
  17465. window.parent.postMessage({ tools: "38" }, "*");
  17466. } else if (t == 39) {
  17467. window.parent.postMessage({ tools: "39" }, "*");
  17468. } else if (t == 32) {
  17469. window.parent.postMessage({ tools: "32" }, "*");
  17470. } else if (t == 66) {
  17471. window.parent.postMessage({ tools: "66" }, "*");
  17472. } else if (t == 67) {
  17473. window.parent.postMessage({ tools: "67" }, "*");
  17474. } else if (t == 68) {
  17475. window.parent.postMessage({ tools: "68" }, "*");
  17476. } else if (t == 57) {
  17477. // window.parent.postMessage({ tools: "57" }, "*");
  17478. window.parent.postMessage(
  17479. {
  17480. tools: "57u",
  17481. cid: this.id,
  17482. stage: this.courseType,
  17483. task: this.taskCount,
  17484. tool: i,
  17485. },
  17486. "*"
  17487. );
  17488. } else if (t == 58) {
  17489. window.parent.postMessage({ tools: "58" }, "*");
  17490. } else if (t == 59) {
  17491. window.parent.postMessage({ tools: "59" }, "*");
  17492. } else if (t == 60) {
  17493. window.parent.postMessage({ tools: "60" }, "*");
  17494. } else if (t == 61) {
  17495. window.parent.postMessage({ tools: "61" }, "*");
  17496. } else if (t == 63) {
  17497. window.parent.postMessage({ tools: "63" }, "*");
  17498. } else if (t == 69) {
  17499. if (this.worksStudent[i].length) {
  17500. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17501. if (this.userid == this.worksStudent[i][k].userid) {
  17502. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17503. break;
  17504. } else {
  17505. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17506. }
  17507. }
  17508. } else {
  17509. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17510. }
  17511. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17512. .taskJson[index].toolChoose[i].englishList
  17513. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17514. .toolChoose[i].englishList
  17515. : {};
  17516. this.englishToolIndex = i;
  17517. this.myAnList = this.myAnswerList1;
  17518. this.engDialogVisible = true;
  17519. } else if (t == 65) {
  17520. if (this.tType == 2) {
  17521. this.$message.error("不支持学生使用");
  17522. return;
  17523. }
  17524. this.uploadCid = this.tcid;
  17525. if (!this.uploadCid) {
  17526. this.$message.error(
  17527. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17528. );
  17529. return;
  17530. }
  17531. this.selectPickStudent();
  17532. } else if (t == 26) {
  17533. window.parent.postMessage(
  17534. {
  17535. tools: "26",
  17536. cid: this.id,
  17537. stage: this.courseType,
  17538. task: this.taskCount,
  17539. tool: i,
  17540. },
  17541. "*"
  17542. );
  17543. } else if (t == 40) {
  17544. if (this.evalCount > 0) {
  17545. this.updateCount(this.evalCount, t);
  17546. } else {
  17547. this.evalCount++;
  17548. a = this.evalCount;
  17549. this.toolsCount(a, t);
  17550. }
  17551. this.eScore = { eBzText: "", eStar: [] };
  17552. if (this.worksStudent[i].length) {
  17553. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17554. if (this.userid == this.worksStudent[i][k].userid) {
  17555. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17556. this.rateJson =
  17557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17558. index
  17559. ].toolChoose[i].rateJson;
  17560. break;
  17561. } else {
  17562. this.rateJson =
  17563. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17564. index
  17565. ].toolChoose[i].rateJson;
  17566. }
  17567. }
  17568. } else {
  17569. this.rateJson =
  17570. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17571. index
  17572. ].toolChoose[i].rateJson;
  17573. }
  17574. this.isStar = false;
  17575. this.studentEvalDialogVisible = true;
  17576. } else if (t == 41) {
  17577. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17578. .taskJson[index].toolChoose[i].selectJson
  17579. ? JSON.parse(
  17580. JSON.stringify(
  17581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17582. index
  17583. ].toolChoose[i].selectJson
  17584. )
  17585. )
  17586. : { url: "", select: [], answer: [] };
  17587. if (this.worksStudent[i].length) {
  17588. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17589. if (this.userid == this.worksStudent[i][k].userid) {
  17590. var a = this.worksStudent[i][k].works.split(",");
  17591. for (var ki = 0; ki < a.length; ki++) {
  17592. a[ki] = parseInt(a[ki]);
  17593. }
  17594. this.selectAnswer = {
  17595. answer: a,
  17596. stu: this.worksStudent[i][k].sName,
  17597. };
  17598. break;
  17599. } else {
  17600. this.selectAnswer = { answer: [], stu: "" };
  17601. }
  17602. }
  17603. } else {
  17604. this.selectAnswer = { answer: [], stu: "" };
  17605. }
  17606. this.isSelect = false;
  17607. this.dialogVisibleSelect = true;
  17608. } else if (t == 44) {
  17609. window.parent.postMessage({ tools: "44" }, "*");
  17610. } else if (t == 47) {
  17611. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17612. .taskJson[index].toolChoose[i].sentenceList
  17613. ? JSON.parse(
  17614. JSON.stringify(
  17615. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17616. index
  17617. ].toolChoose[i].sentenceList
  17618. )
  17619. )
  17620. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17621. for (var q = 0; q < this.sentenceList.length; q++) {
  17622. this.sentenceList[q].chooseSenList = [];
  17623. this.sentenceList[q].addChangeSen = [];
  17624. this.sentenceList[q].addChangeSen = JSON.parse(
  17625. JSON.stringify(this.sentenceList[q].addSentence)
  17626. );
  17627. this.sentenceList[q].chooseSenList.length =
  17628. this.sentenceList[q].rightAnswer.length;
  17629. }
  17630. this.dialogVisibleSentence = true;
  17631. } else if (t == 48) {
  17632. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17633. .taskJson[index].toolChoose[i].tableJson
  17634. ? JSON.parse(
  17635. JSON.stringify(
  17636. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17637. index
  17638. ].toolChoose[i].tableJson
  17639. )
  17640. )
  17641. : { text: "" };
  17642. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17643. if (this.worksStudent[i].length) {
  17644. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17645. if (this.userid == this.worksStudent[i][k].userid) {
  17646. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17647. break;
  17648. }
  17649. }
  17650. }
  17651. this.dialogVisibleTable = true;
  17652. } else if (t == 52) {
  17653. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17654. .taskJson[index].toolChoose[i].wordJson
  17655. ? JSON.parse(
  17656. JSON.stringify(
  17657. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17658. index
  17659. ].toolChoose[i].wordJson
  17660. )
  17661. )
  17662. : { text: "" };
  17663. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17664. if (this.worksStudent[i].length) {
  17665. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17666. if (this.userid == this.worksStudent[i][k].userid) {
  17667. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17668. break;
  17669. }
  17670. }
  17671. }
  17672. this.dialogVisibleWord = true;
  17673. } else if (t == 49) {
  17674. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  17675. return
  17676. }
  17677. this.groupJson =
  17678. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17679. index
  17680. ].toolChoose[i].groupJson;
  17681. this.islock = this.groupJson.islock == 1 ? true : false;
  17682. this.dialogVisibleGroup = true;
  17683. } else if (t == 62) {
  17684. this.videoJson =
  17685. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17686. index
  17687. ].toolChoose[i].videoJson;
  17688. this.dialogVisibleVideo = true;
  17689. }
  17690. },
  17691. teacherWorkSubmit(t, i, index, s) {
  17692. this.sStudent = s;
  17693. this.toolindex = i;
  17694. this.sTool = t;
  17695. if (this.tType !== "1" && this.tType !== "4") {
  17696. return;
  17697. }
  17698. if (t == 16 || t == 32 || t == 50) {
  17699. this.dialogVisibleWorks = true;
  17700. } else if (t == 15) {
  17701. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17702. .taskJson[index].toolChoose[i].answerQ
  17703. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17704. .toolChoose[i].answerQ
  17705. : "";
  17706. this.questionAnswer = "";
  17707. this.answerDialogVisibleTeacher = true; //问答
  17708. } else if (t == 52) {
  17709. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17710. .taskJson[index].toolChoose[i].wordJson
  17711. ? JSON.parse(
  17712. JSON.stringify(
  17713. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17714. index
  17715. ].toolChoose[i].wordJson
  17716. )
  17717. )
  17718. : { text: "" };
  17719. if (this.worksStudent[i].length) {
  17720. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17721. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17722. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17723. break;
  17724. }
  17725. }
  17726. }
  17727. this.dialogVisibleWordTeacher = true; //文档
  17728. } else if (t == 4) {
  17729. this.radio = [];
  17730. this.noteName = "";
  17731. this.isAnswer = false;
  17732. if (this.askCount > 0) {
  17733. this.updateCount(this.askCount, t);
  17734. } else {
  17735. this.askCount++;
  17736. a = this.askCount;
  17737. this.toolsCount(a, t);
  17738. }
  17739. if (!this.dialogVisible2) {
  17740. this.askJson.askJson =
  17741. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17742. index
  17743. ].toolChoose[i].askJson;
  17744. this.askJson.askTitle =
  17745. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17746. index
  17747. ].toolChoose[i].askTitle;
  17748. this.askJson.askCount =
  17749. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17750. index
  17751. ].toolChoose[i].askCount;
  17752. } else {
  17753. this.askJson.askJson = this.chapTools.askJson.askJson;
  17754. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17755. this.askJson.askCount = this.chapTools.askJson.askCount;
  17756. }
  17757. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17758. if (this.askJson.askJson[k].type == "2") {
  17759. this.radio.push([]);
  17760. } else {
  17761. this.radio.push("");
  17762. }
  17763. }
  17764. this.dialogVisible5Teacher = true;
  17765. } else if (t == 45) {
  17766. this.noteName = "";
  17767. this.radio = [];
  17768. this.isAnswer = false;
  17769. if (this.askCount > 0) {
  17770. this.updateCount(this.askCount, t);
  17771. } else {
  17772. this.askCount++;
  17773. a = this.askCount;
  17774. this.toolsCount(a, t);
  17775. }
  17776. this.testJson =
  17777. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17778. index
  17779. ].toolChoose[i].testJson;
  17780. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17781. if (this.testJson.testJson[k].type == "2") {
  17782. this.radio.push([]);
  17783. } else {
  17784. this.radio.push("");
  17785. }
  17786. }
  17787. this.dialogVisibleChoiceTeacher = true;
  17788. } else if (t == 41) {
  17789. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17790. .taskJson[index].toolChoose[i].selectJson
  17791. ? JSON.parse(
  17792. JSON.stringify(
  17793. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17794. index
  17795. ].toolChoose[i].selectJson
  17796. )
  17797. )
  17798. : { url: "", select: [], answer: [] };
  17799. if (this.worksStudent[i].length) {
  17800. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17801. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17802. var a = this.worksStudent[i][k].works.split(",");
  17803. for (var ki = 0; ki < a.length; ki++) {
  17804. a[ki] = parseInt(a[ki]);
  17805. }
  17806. this.selectAnswer = {
  17807. answer: a,
  17808. stu: this.worksStudent[i][k].sName,
  17809. };
  17810. break;
  17811. } else {
  17812. this.selectAnswer = { answer: [], stu: "" };
  17813. }
  17814. }
  17815. } else {
  17816. this.selectAnswer = { answer: [], stu: "" };
  17817. }
  17818. this.isSelect = false;
  17819. this.dialogVisibleSelectTeacher = true;
  17820. } else if (t == 47) {
  17821. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17822. .taskJson[index].toolChoose[i].sentenceList
  17823. ? JSON.parse(
  17824. JSON.stringify(
  17825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17826. index
  17827. ].toolChoose[i].sentenceList
  17828. )
  17829. )
  17830. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17831. for (var q = 0; q < this.sentenceList.length; q++) {
  17832. this.sentenceList[q].chooseSenList = [];
  17833. this.sentenceList[q].addChangeSen = [];
  17834. this.sentenceList[q].addChangeSen = JSON.parse(
  17835. JSON.stringify(this.sentenceList[q].addSentence)
  17836. );
  17837. this.sentenceList[q].chooseSenList.length =
  17838. this.sentenceList[q].rightAnswer.length;
  17839. }
  17840. this.dialogVisibleSentenceTeacher = true;
  17841. } else if (t == 48) {
  17842. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17843. .taskJson[index].toolChoose[i].tableJson
  17844. ? JSON.parse(
  17845. JSON.stringify(
  17846. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17847. index
  17848. ].toolChoose[i].tableJson
  17849. )
  17850. )
  17851. : { text: "" };
  17852. if (this.worksStudent[i].length) {
  17853. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17854. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17855. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17856. break;
  17857. }
  17858. }
  17859. }
  17860. this.dialogVisibleTableTeacher = true;
  17861. } else if (t == 40) {
  17862. if (this.evalCount > 0) {
  17863. this.updateCount(this.evalCount, t);
  17864. } else {
  17865. this.evalCount++;
  17866. a = this.evalCount;
  17867. this.toolsCount(a, t);
  17868. }
  17869. this.eScore = { eBzText: "", eStar: [] };
  17870. if (this.worksStudent[i].length) {
  17871. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17872. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17873. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17874. this.rateJson =
  17875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17876. index
  17877. ].toolChoose[i].rateJson;
  17878. break;
  17879. } else {
  17880. this.rateJson =
  17881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17882. index
  17883. ].toolChoose[i].rateJson;
  17884. }
  17885. }
  17886. } else {
  17887. this.rateJson =
  17888. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17889. index
  17890. ].toolChoose[i].rateJson;
  17891. }
  17892. this.isStar = false;
  17893. this.studentEvalDialogVisibleTeacher = true;
  17894. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17895. window.parent.postMessage(
  17896. {
  17897. tools: t + "teacher",
  17898. cid: this.id,
  17899. stage: this.courseType,
  17900. task: this.taskCount,
  17901. tool: i,
  17902. student: this.sStudent,
  17903. },
  17904. "*"
  17905. );
  17906. }
  17907. },
  17908. openCocoPi(tool, i, uid, uname) {
  17909. let student = {
  17910. userid: uid,
  17911. student: uname,
  17912. };
  17913. if (tool == 57) {
  17914. window.parent.postMessage(
  17915. {
  17916. tools: tool + "teacher",
  17917. cid: this.id,
  17918. stage: this.courseType,
  17919. task: this.taskCount,
  17920. tool: i,
  17921. student: student,
  17922. },
  17923. "*"
  17924. );
  17925. }
  17926. },
  17927. setRightAnswer(s, i, j) {
  17928. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17929. if (
  17930. this.sentenceList[i].chooseSenList[q] == undefined ||
  17931. this.sentenceList[i].chooseSenList[q] == ""
  17932. ) {
  17933. this.sentenceList[i].chooseSenList[q] = s;
  17934. this.sentenceList[i].addChangeSen[j] = "";
  17935. break;
  17936. }
  17937. }
  17938. this.$forceUpdate();
  17939. },
  17940. returnCard(r, i, j) {
  17941. var a = this.sentenceList[i].addSentence.indexOf(r);
  17942. this.sentenceList[i].chooseSenList[j] = "";
  17943. this.sentenceList[i].addChangeSen[a] = r;
  17944. this.$forceUpdate();
  17945. },
  17946. // addSentenceTool() {
  17947. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17948. // this.taskCount
  17949. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17950. // this.sentenceList = [
  17951. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17952. // ];
  17953. // this.dialogVisibleSentence = false;
  17954. // },
  17955. toolsCount(a, t) {
  17956. let params = {
  17957. cid: this.id,
  17958. chid: this.courseType,
  17959. uid: this.userid,
  17960. tid: t,
  17961. count: a,
  17962. };
  17963. this.ajax
  17964. .get(this.$store.state.api + "insertToolsCount", params)
  17965. .then((res) => {
  17966. this.selectCount();
  17967. })
  17968. .catch((err) => {
  17969. console.error(err);
  17970. });
  17971. },
  17972. updateCount(c, t) {
  17973. c++;
  17974. let params = {
  17975. cid: this.id,
  17976. chid: this.courseType,
  17977. uid: this.userid,
  17978. tid: t,
  17979. count: c,
  17980. };
  17981. this.ajax
  17982. .get(this.$store.state.api + "updateToolsCount", params)
  17983. .then((res) => {
  17984. this.selectCount();
  17985. })
  17986. .catch((err) => {
  17987. console.error(err);
  17988. });
  17989. },
  17990. checkEva() {
  17991. if (this.evalua != "") {
  17992. for (var i = 0; i < this.evaJuri.length; i++) {
  17993. if (this.evalua == this.evaJuri[i].id) {
  17994. this.eTitle = this.evaJuri[i].title;
  17995. this.eJson = JSON.parse(this.evaJuri[i].content);
  17996. }
  17997. }
  17998. this.$forceUpdate();
  17999. setTimeout(() => {
  18000. this.setMindData();
  18001. }, 0);
  18002. }
  18003. },
  18004. selectEva() {
  18005. let params = {
  18006. oid: this.oid,
  18007. };
  18008. this.ajax
  18009. .get(this.$store.state.api + "selectAllEvaluation", params)
  18010. .then((res) => {
  18011. this.evaJuri = res.data[0];
  18012. })
  18013. .catch((err) => {
  18014. console.error(err);
  18015. });
  18016. },
  18017. setMindData() {
  18018. this.data.data = [];
  18019. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18020. let _eJson = Object.keys(this.eJson);
  18021. let _e = this.eJson;
  18022. for (let i = 0; i < _eJson.length; i++) {
  18023. let element = _e[_eJson[i]];
  18024. this.data.data.push({
  18025. id: element.id,
  18026. parentid: "root",
  18027. topic: element.name,
  18028. });
  18029. let _eJsonc = Object.keys(element.child);
  18030. let _e2 = element.child;
  18031. for (let j = 0; j < _eJsonc.length; j++) {
  18032. let _ec = _e2[_eJsonc[j]];
  18033. this.data.data.push({
  18034. id: _ec.id,
  18035. parentid: element.id,
  18036. topic: _ec.name,
  18037. });
  18038. let _eJsonz = Object.keys(_ec.child);
  18039. let _e3 = _ec.child;
  18040. for (let z = 0; z < _eJsonz.length; z++) {
  18041. let _ez = _e3[_eJsonz[z]];
  18042. this.data.data.push({
  18043. id: _ez.id,
  18044. parentid: _ec.id,
  18045. topic: _ez.name,
  18046. });
  18047. }
  18048. }
  18049. }
  18050. this.$forceUpdate();
  18051. },
  18052. checkFileFull(type, url) {
  18053. this.fullDialogVisible = true;
  18054. this.fulltype = type;
  18055. this.fullUrl = url;
  18056. },
  18057. checkFileFull1(t, f) {
  18058. this.fullDialogVisible = true;
  18059. if (t == 6) {
  18060. this.fulltype = 1;
  18061. this.fullUrl = JSON.parse(JSON.stringify(f));
  18062. } else if (t == 8) {
  18063. this.fulltype = 2;
  18064. this.fullUrl = f.url;
  18065. } else if (
  18066. t == 3 &&
  18067. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18068. "PDF"
  18069. ) {
  18070. this.fulltype = 3;
  18071. this.fullUrl = f.url;
  18072. } else if (t == 3) {
  18073. this.fulltype = 2;
  18074. this.fullUrl =
  18075. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  18076. }
  18077. },
  18078. openSname(n, id, i, uid) {
  18079. this.snameWid = id;
  18080. this.worksSName = n;
  18081. this.worksSid = uid == n ? "" : uid;
  18082. this.toolindex = i;
  18083. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18084. if (!this.uploadCid) {
  18085. this.$message.error(
  18086. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18087. );
  18088. return;
  18089. }
  18090. this.selectUploadStudent(1);
  18091. },
  18092. updateName() {
  18093. let params = {
  18094. n: this.worksSName,
  18095. cid: this.snameWid,
  18096. };
  18097. this.ajax
  18098. .get(this.$store.state.api + "updateCourseWorksName", params)
  18099. .then((res) => {
  18100. this.$message({
  18101. message: "修改成功",
  18102. type: "success",
  18103. });
  18104. this.dialogVisibleSname = false;
  18105. this.getCourseDetail(2);
  18106. this.snameWid = "";
  18107. this.worksSName = "";
  18108. })
  18109. .catch((err) => {
  18110. console.error(err);
  18111. });
  18112. },
  18113. downloadFile2(f) {
  18114. // const loading = this.$loading.service({
  18115. // background: "rgba(255, 255, 255, 0.7)",
  18116. // target: document.body,
  18117. // text: "文件加载中...",
  18118. // });
  18119. // let url2 = f.url;
  18120. // let _url2 = "";
  18121. // if (
  18122. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18123. // ) {
  18124. // _url2 = url2.split(
  18125. // "https://view.officeapps.live.com/op/view.aspx?src="
  18126. // )[1];
  18127. // } else {
  18128. // _url2 = url2;
  18129. // }
  18130. // let params = {
  18131. // url: _url2,
  18132. // name: f.name,
  18133. // };
  18134. // this.ajax
  18135. // .get(this.$store.state.api + "download", params)
  18136. // .then((res) => {
  18137. // loading.close();
  18138. // let content = res.data.data.data;
  18139. // let ab = new ArrayBuffer(content.length);
  18140. // let view = new Uint8Array(ab);
  18141. // for (var i = 0; i < content.length; ++i) {
  18142. // view[i] = content[i];
  18143. // }
  18144. // let elink = document.createElement("a");
  18145. // elink.download = f.name;
  18146. // elink.style.display = "none";
  18147. // let blob = new Blob([ab], {
  18148. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18149. // });
  18150. // elink.href = URL.createObjectURL(blob);
  18151. // document.body.appendChild(elink);
  18152. // elink.click();
  18153. // document.body.removeChild(elink);
  18154. // })
  18155. // .catch((err) => {
  18156. // loading.close();
  18157. // console.error(err);
  18158. // });
  18159. var credentials = {
  18160. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18161. secretAccessKey: "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",
  18162. }; //秘钥形式的登录上传
  18163. window.AWS.config.update(credentials);
  18164. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18165. let url2 = f.url;
  18166. let _url2 = "";
  18167. if (
  18168. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18169. ) {
  18170. _url2 = url2.split(
  18171. "https://view.officeapps.live.com/op/view.aspx?src="
  18172. )[1];
  18173. } else {
  18174. _url2 = url2;
  18175. }
  18176. let _this = this;
  18177. _this.downLoading = true
  18178. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18179. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18180. var params = {
  18181. Bucket: "ccrb",
  18182. Key: name
  18183. };
  18184. s3.getObject(params, function (err, data) {
  18185. _this.downLoading = false
  18186. if (err) console.log(err, err.stack); // an error occurred
  18187. else {
  18188. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18189. let a = document.createElement("a");
  18190. a.name = f.name;
  18191. a.href = url;
  18192. a.download = f.name;
  18193. a.click();
  18194. console.log(data);
  18195. } // sxuccessful response
  18196. });
  18197. return;
  18198. let url = f.url;
  18199. let _url = "";
  18200. if (
  18201. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18202. ) {
  18203. _url = url.split(
  18204. "https://view.officeapps.live.com/op/view.aspx?src="
  18205. )[1];
  18206. } else {
  18207. _url = url;
  18208. }
  18209. _this.downLoading = true
  18210. let x = new XMLHttpRequest();
  18211. x.open("GET", _url, true);
  18212. x.responseType = "blob";
  18213. x.onload = function () {
  18214. _this.downLoading = false
  18215. let url = window.URL.createObjectURL(new Blob([x.response]));
  18216. let a = document.createElement("a");
  18217. a.name = f.name;
  18218. a.href = url;
  18219. a.download = f.name;
  18220. a.click();
  18221. };
  18222. x.send();
  18223. },
  18224. downloadFile(url) {
  18225. var credentials = {
  18226. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18227. secretAccessKey: "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",
  18228. }; //秘钥形式的登录上传
  18229. window.AWS.config.update(credentials);
  18230. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18231. let url2 = url;
  18232. let _url2 = "";
  18233. if (
  18234. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18235. ) {
  18236. _url2 = url2.split(
  18237. "https://view.officeapps.live.com/op/view.aspx?src="
  18238. )[1];
  18239. } else {
  18240. _url2 = url2;
  18241. }
  18242. const loading2 = this.$loading.service({
  18243. background: "rgba(255, 255, 255, 0.7)",
  18244. target: document.body,
  18245. text: "文件加载中...",
  18246. });
  18247. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18248. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18249. var params = {
  18250. Bucket: "ccrb",
  18251. Key: name
  18252. };
  18253. s3.getObject(params, function (err, data) {
  18254. loading2.close();
  18255. if (err) console.log(err, err.stack); // an error occurred
  18256. else {
  18257. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18258. let a = document.createElement("a");
  18259. a.name = name;
  18260. a.href = url;
  18261. a.download = name;
  18262. a.click();
  18263. console.log(data);
  18264. } // sxuccessful response
  18265. });
  18266. return;
  18267. let _this = this;
  18268. let _url = "";
  18269. if (
  18270. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18271. ) {
  18272. _url = url.split(
  18273. "https://view.officeapps.live.com/op/view.aspx?src="
  18274. )[1];
  18275. } else {
  18276. _url = url;
  18277. }
  18278. const x = new XMLHttpRequest();
  18279. x.open("GET", _url, true);
  18280. x.responseType = "blob";
  18281. // this.downLoading = true
  18282. const loading = _this.$loading.service({
  18283. background: "rgba(255, 255, 255, 0.7)",
  18284. target: document.body,
  18285. text: "文件加载中...",
  18286. });
  18287. // _this.$message.success("文件下载中...");
  18288. x.onload = function (e) {
  18289. loading.close();
  18290. let content = x.response;
  18291. let elink = document.createElement("a");
  18292. elink.download = decodeURI(
  18293. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18294. );
  18295. elink.style.display = "none";
  18296. let blob = new Blob([content]);
  18297. elink.href = URL.createObjectURL(blob);
  18298. document.body.appendChild(elink);
  18299. elink.click();
  18300. document.body.removeChild(elink);
  18301. };
  18302. x.send();
  18303. },
  18304. openLine(url) {
  18305. window.open(url);
  18306. },
  18307. resize() {
  18308. if (document.getElementsByClassName("box_course").length) {
  18309. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18310. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18311. if (this.showType == 2 || this.showType == 3) {
  18312. document.getElementsByClassName("navBox")[0].style.height =
  18313. a - 40 + 46 + "px";
  18314. } else {
  18315. document.getElementsByClassName("navBox")[0].style.height =
  18316. a - 40 + "px";
  18317. }
  18318. }
  18319. this.Stbodywidth =
  18320. document.getElementsByClassName("student_body").length &&
  18321. document.getElementsByClassName("student_body")[0].offsetWidth;
  18322. },
  18323. closeDraw() {
  18324. this.bg = null;
  18325. this.drawShow = false;
  18326. },
  18327. showPicturePaint(url) {
  18328. let params = {
  18329. img: url,
  18330. };
  18331. this.ajax
  18332. .get(this.$store.state.api + "imgToBase64", params)
  18333. .then((res) => {
  18334. this.drawShow = true;
  18335. this.bg = res.data[0].img;
  18336. })
  18337. .catch((err) => {
  18338. console.error(err);
  18339. });
  18340. },
  18341. addImgDraw(base64) {
  18342. let file = { name: "批注图.png" };
  18343. let img = this.dataUrlToFile(base64, file);
  18344. this.beforeUpload1(img, 5);
  18345. },
  18346. addImgDrawImG(url) {
  18347. // console.log(url);
  18348. let params = [
  18349. {
  18350. wid: this.commentDetail.wid,
  18351. img: url,
  18352. },
  18353. ];
  18354. this.ajax
  18355. .post(this.$store.state.api + "updateCourseWorks", params)
  18356. .then((res) => {
  18357. this.$message({
  18358. message: "提交成功",
  18359. type: "success",
  18360. });
  18361. this.drawShow = false;
  18362. this.bg = "";
  18363. this.selectSWorks();
  18364. this.selectStudent();
  18365. })
  18366. .catch((err) => {
  18367. this.$message.error("提交失败");
  18368. console.error(err);
  18369. });
  18370. },
  18371. deletePicturePaint() {
  18372. this.$confirm("确定删除此批注吗?", "提示", {
  18373. confirmButtonText: "确定",
  18374. cancelButtonText: "取消",
  18375. type: "warning",
  18376. })
  18377. .then(() => {
  18378. let params = [
  18379. {
  18380. wid: this.commentDetail.wid,
  18381. img: "",
  18382. },
  18383. ];
  18384. this.ajax
  18385. .post(this.$store.state.api + "updateCourseWorks", params)
  18386. .then((res) => {
  18387. this.$message({
  18388. message: "删除成功",
  18389. type: "success",
  18390. });
  18391. this.selectSWorks();
  18392. this.selectStudent();
  18393. })
  18394. .catch((err) => {
  18395. this.$message.error("删除失败");
  18396. console.error(err);
  18397. });
  18398. })
  18399. .catch(() => {});
  18400. },
  18401. getAudioVideo(constraintsData) {
  18402. if (navigator.mediaDevices === undefined) {
  18403. navigator.mediaDevices = {};
  18404. }
  18405. if (navigator.mediaDevices.getUserMedia === undefined) {
  18406. navigator.mediaDevices.getUserMedia = function (constraints) {
  18407. // 首先,如果有getUserMedia的话,就获得它
  18408. var getUserMedia =
  18409. navigator.getUserMedia ||
  18410. navigator.webkitGetUserMedia ||
  18411. navigator.mozGetUserMedia ||
  18412. navigator.msGetUserMedia;
  18413. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18414. if (!getUserMedia) {
  18415. return Promise.reject({ code: 404 });
  18416. }
  18417. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18418. return new Promise(function (resolve, reject) {
  18419. getUserMedia.call(navigator, constraints, resolve, reject);
  18420. });
  18421. };
  18422. }
  18423. return navigator.mediaDevices.getUserMedia(constraintsData);
  18424. },
  18425. /**
  18426. * 开始录制
  18427. */
  18428. startRecording(callback) {
  18429. let _function = (screenStream) => {
  18430. this.addStreamStopListener(screenStream, () => {
  18431. console.log("流停止监听");
  18432. this.stopRecording();
  18433. this.$emit("streamStop", {});
  18434. // this.stopRecording();
  18435. });
  18436. var options = {
  18437. type: "video",
  18438. mimeType: "video/webm",
  18439. disableLogs: false,
  18440. getNativeBlob: false, // enable it for longer recordings
  18441. ignoreMutedMedia: false,
  18442. };
  18443. // this.video.srcObject = screenStream;
  18444. this.recorder = RecordRTC(screenStream, options);
  18445. this.recorder.startRecording();
  18446. this.recorder.screen = screenStream;
  18447. this.videoStart = true;
  18448. // callback(true);
  18449. };
  18450. this.getAudioVideo({ audio: true })
  18451. .then((res) => {
  18452. this.captureScreen(_function, true);
  18453. console.log("已点击允许,开启成功");
  18454. })
  18455. .catch((err) => {
  18456. // console.log('浏览器不支持,请更换浏览器')
  18457. // } else {
  18458. this.captureScreen(_function, false);
  18459. console.log("请检查是否存在麦克风");
  18460. });
  18461. },
  18462. /**
  18463. * 停止录制
  18464. */
  18465. stopRecording(callback) {
  18466. this.recorder.stopRecording(() => {
  18467. // this.video.src = this.video.srcObject = null;
  18468. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18469. const url = URL.createObjectURL(this.recorder.getBlob());
  18470. const a = document.createElement("a"); //this.fileName+
  18471. let videoFile = new File(
  18472. [this.recorder.getBlob()],
  18473. this.courseDetail.title + "录屏.mp4",
  18474. {
  18475. type: "video/mp4",
  18476. }
  18477. );
  18478. let downloadUrl = URL.createObjectURL(videoFile);
  18479. document.body.appendChild(a);
  18480. a.style.display = "none";
  18481. a.href = url;
  18482. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18483. a.click();
  18484. this.recorder.screen.stop();
  18485. this.recorder.destroy();
  18486. this.recorder = null;
  18487. this.videoStart = false;
  18488. // callback(false);
  18489. });
  18490. },
  18491. //初始化
  18492. captureScreen(callback, type) {
  18493. if (navigator.getDisplayMedia) {
  18494. //录制结束,文件下载
  18495. navigator
  18496. .getDisplayMedia({
  18497. video: true,
  18498. })
  18499. .then((screenStream) => {
  18500. if (type) {
  18501. navigator.mediaDevices
  18502. .getUserMedia({ audio: true })
  18503. .then((mic) => {
  18504. screenStream.addTrack(mic.getTracks()[0]);
  18505. callback(screenStream);
  18506. });
  18507. } else {
  18508. callback(screenStream);
  18509. }
  18510. })
  18511. .catch(function (error) {
  18512. console.log("error", error);
  18513. });
  18514. } else if (navigator.mediaDevices.getDisplayMedia) {
  18515. navigator.mediaDevices
  18516. .getDisplayMedia({
  18517. video: true,
  18518. })
  18519. .then((screenStream) => {
  18520. if (type) {
  18521. navigator.mediaDevices
  18522. .getUserMedia({ audio: true })
  18523. .then((mic) => {
  18524. screenStream.addTrack(mic.getTracks()[0]);
  18525. callback(screenStream);
  18526. });
  18527. } else {
  18528. callback(screenStream);
  18529. }
  18530. })
  18531. .catch(function (error) {
  18532. console.log("error", error);
  18533. });
  18534. } else {
  18535. var error = "getDisplayMedia API are not supported in this browser.";
  18536. console.log("error", error);
  18537. alert(error);
  18538. }
  18539. },
  18540. //流监听
  18541. addStreamStopListener(stream, callback) {
  18542. stream.addEventListener(
  18543. "ended",
  18544. function () {
  18545. callback();
  18546. callback = function () {};
  18547. },
  18548. false
  18549. );
  18550. stream.addEventListener(
  18551. "inactive",
  18552. function () {
  18553. callback();
  18554. callback = function () {};
  18555. },
  18556. false
  18557. );
  18558. stream.getTracks().forEach(function (track) {
  18559. track.addEventListener(
  18560. "ended",
  18561. function () {
  18562. callback();
  18563. callback = function () {};
  18564. },
  18565. false
  18566. );
  18567. track.addEventListener(
  18568. "inactive",
  18569. function () {
  18570. callback();
  18571. callback = function () {};
  18572. },
  18573. false
  18574. );
  18575. });
  18576. },
  18577. updateGroup() {
  18578. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18579. this.dialogVisibleGroup2 = true;
  18580. },
  18581. numberPan() {
  18582. if (
  18583. /[^\d]/.test(this.groupJson.number) ||
  18584. this.groupJson.number < 2 ||
  18585. this.groupJson.number > 10
  18586. ) {
  18587. this.$message.error("请输入2-10的数字");
  18588. this.groupJson.number = "";
  18589. }
  18590. },
  18591. updateGroupJson() {
  18592. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18593. if (
  18594. this.groupStudentUid[this.toolindex][i].length >
  18595. this.groupJson2.number
  18596. ) {
  18597. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18598. return;
  18599. }
  18600. }
  18601. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18602. this.islock = this.groupJson.islock == 1 ? true : false;
  18603. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18604. this.taskCount
  18605. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18606. let params = [
  18607. {
  18608. cid: this.id,
  18609. chapters: JSON.stringify(this.chapInfoList),
  18610. uid: this.userid,
  18611. unitIndex: this.courseType,
  18612. },
  18613. ];
  18614. this.ajax
  18615. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  18616. .then((res) => {
  18617. this.$message.success("设置成功");
  18618. this.getCourseDetail(2);
  18619. this.dialogVisibleGroup2 = false;
  18620. this.groupJson2 = {};
  18621. this.$forceUpdate();
  18622. })
  18623. .catch((err) => {
  18624. this.$message.error("网络不佳");
  18625. console.error(err);
  18626. });
  18627. },
  18628. lockChair() {
  18629. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18630. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18631. this.updateGroupJson();
  18632. },
  18633. selectGroup(index) {
  18634. this.getCourseDetail(2, index);
  18635. },
  18636. joinGroup(index) {
  18637. if (this.groupJson.islock == 2) {
  18638. this.$message.error("位置已被锁定,无法加入");
  18639. return;
  18640. }
  18641. if (
  18642. this.groupStudent[this.toolindex][index].length >
  18643. this.groupJson.number ||
  18644. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18645. ) {
  18646. this.$message.error("位置已满,无法加入");
  18647. return;
  18648. }
  18649. let params = [
  18650. {
  18651. cid: this.id,
  18652. stage: this.courseType,
  18653. task: this.taskCount,
  18654. tool: this.toolindex,
  18655. g: index,
  18656. uid: this.userid,
  18657. },
  18658. ];
  18659. this.ajax
  18660. .post(this.$store.state.api + "joinGroup", params)
  18661. .then((res) => {
  18662. this.$message.success("加入成功");
  18663. this.getCourseDetail(2);
  18664. })
  18665. .catch((err) => {
  18666. this.$message.error("网络不佳");
  18667. console.error(err);
  18668. });
  18669. },
  18670. exitGroup(id) {
  18671. if (this.groupJson.islock == 2) {
  18672. this.$message.error("位置已被锁定,无法退出");
  18673. return;
  18674. }
  18675. let params = [
  18676. {
  18677. gid: id,
  18678. },
  18679. ];
  18680. this.ajax
  18681. .post(this.$store.state.api + "exitGroup", params)
  18682. .then((res) => {
  18683. this.$message.success("退出成功");
  18684. this.getCourseDetail(2);
  18685. })
  18686. .catch((err) => {
  18687. this.$message.error("网络不佳");
  18688. console.error(err);
  18689. });
  18690. },
  18691. groupUpload(index, task, gindex) {
  18692. this.taskCount = task;
  18693. this.toolindex = index;
  18694. this.groupIndex = gindex;
  18695. this.dialogVisibleGroupWork = true;
  18696. },
  18697. updateGroupChair(user) {
  18698. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18699. el.label = index;
  18700. return index != user.group;
  18701. });
  18702. this.updateGroupUser = user;
  18703. this.dialogVisibleUpdateGroup = true;
  18704. },
  18705. updateChair() {
  18706. if (
  18707. this.groupStudent[this.toolindex][this.checkChair].length >
  18708. this.groupJson.number ||
  18709. this.groupStudent[this.toolindex][this.checkChair].length ==
  18710. this.groupJson.number
  18711. ) {
  18712. this.$message.error("位置已满,无法加入");
  18713. return;
  18714. }
  18715. let params = [
  18716. {
  18717. cid: this.id,
  18718. stage: this.courseType,
  18719. task: this.taskCount,
  18720. tool: this.toolindex,
  18721. g: this.checkChair,
  18722. uid: this.updateGroupUser.userid,
  18723. },
  18724. ];
  18725. this.ajax
  18726. .post(this.$store.state.api + "joinGroup", params)
  18727. .then((res) => {
  18728. this.$message.success("修改成功");
  18729. this.updateGroupUser = {};
  18730. this.checkChair = "";
  18731. this.updateGroupArray = {};
  18732. this.dialogVisibleUpdateGroup = false;
  18733. this.getCourseDetail(2);
  18734. })
  18735. .catch((err) => {
  18736. this.$message.error("网络不佳");
  18737. console.error(err);
  18738. });
  18739. },
  18740. deleteGroupChair(gindex) {
  18741. this.checkDeleteGroup = [];
  18742. this.deleteGroupUser = JSON.parse(
  18743. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18744. );
  18745. this.deleteGroupArray = this.groupJson.group[gindex];
  18746. this.groupIndex = gindex;
  18747. this.dialogVisibleDeleteGroup = true;
  18748. },
  18749. async deleteChair() {
  18750. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18751. const gid =
  18752. this.groupStudent[this.toolindex][this.groupIndex][
  18753. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18754. this.checkDeleteGroup[i]
  18755. )
  18756. ];
  18757. let params = [
  18758. {
  18759. gid: gid.id,
  18760. },
  18761. ];
  18762. var a = await this.deleteChairA(params);
  18763. if (i == this.checkDeleteGroup.length - 1) {
  18764. this.$message.success("退出成功");
  18765. this.dialogVisibleDeleteGroup = false;
  18766. this.deleteGroupUser = [];
  18767. this.deleteGroupArray = {};
  18768. this.groupIndex = "";
  18769. this.checkDeleteGroup = [];
  18770. this.getCourseDetail(2);
  18771. }
  18772. }
  18773. },
  18774. deleteChairA(params) {
  18775. return new Promise((resolve, reject) => {
  18776. this.ajax
  18777. .post(this.$store.state.api + "exitGroup", params)
  18778. .then((res) => {
  18779. resolve(1);
  18780. })
  18781. .catch((err) => {
  18782. this.$message.error("网络不佳");
  18783. console.error(err);
  18784. });
  18785. });
  18786. },
  18787. contract(i) {
  18788. if (this.isCloseList[i].isClose == 0) {
  18789. this.isCloseList[i].isClose = 1;
  18790. } else {
  18791. this.isCloseList[i].isClose = 0;
  18792. }
  18793. this.$forceUpdate();
  18794. },
  18795. openWordCloud(toolindex) {
  18796. let array = [];
  18797. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18798. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18799. array.push({ name: works });
  18800. }
  18801. if (this.isGroup) {
  18802. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18803. let works = this.courseGroup.group[i].works[toolindex];
  18804. for (var j = 0; j < works.length; j++) {
  18805. let answer = JSON.parse(works[j].works)[0].answer;
  18806. array.push({ name: answer });
  18807. }
  18808. }
  18809. }
  18810. this.wordCloudData = array;
  18811. this.dialogVisibleWordCloud = true;
  18812. },
  18813. uploadWorks(i) {
  18814. this.$confirm("确定导出作业吗?", "提示", {
  18815. confirmButtonText: "确定",
  18816. cancelButtonText: "取消",
  18817. type: "warning",
  18818. })
  18819. .then(() => {
  18820. const loading = this.$loading.service({
  18821. background: "rgba(255, 255, 255, 0.7)",
  18822. target: document.body,
  18823. text: "文件加载中...",
  18824. });
  18825. const _worksStudent = this.worksStudent;
  18826. let url = [];
  18827. var counts = {};
  18828. for (var l = 0; l < _worksStudent[i].length; l++) {
  18829. var item = _worksStudent[i][l];
  18830. var name = item.sName;
  18831. if (!counts.hasOwnProperty(name)) {
  18832. counts[name] = 0;
  18833. } else {
  18834. counts[name]++;
  18835. }
  18836. if (counts[name] > 0) {
  18837. item.sName += " (" + counts[name] + ")";
  18838. }
  18839. }
  18840. for (var l = 0; l < _worksStudent[i].length; l++) {
  18841. var item = _worksStudent[i][l];
  18842. if (
  18843. item.works.indexOf(
  18844. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18845. ) !== -1 &&
  18846. item.works.indexOf("img") === -1
  18847. ) {
  18848. url.push({ name: item.sName, url: item.works });
  18849. }
  18850. }
  18851. // var toolList = [
  18852. // { name: "电子白板", tool: 1 },
  18853. // { name: "思维导图", tool: 3 },
  18854. // { name: "协同文档", tool: 6 },
  18855. // { name: "思维网格", tool: 7 },
  18856. // { name: "素材库", tool: 8 },
  18857. // { name: "学习资料", tool: 17 },
  18858. // { name: "便签", tool: 2 },
  18859. // { name: "问卷调查", tool: 4 },
  18860. // { name: "选择题", tool: 45 },
  18861. // { name: "倒计时", tool: 10 },
  18862. // { name: "问答", tool: 15 },
  18863. // { name: "课程设计", tool: 26 },
  18864. // { name: "训练服务器", tool: 18 },
  18865. // { name: "作业提交", tool: 16 },
  18866. // { name: "批量上传", tool: 50 },
  18867. // { name: "AIoT Blockly", tool: 21 },
  18868. // { name: "AI Python", tool: 23 },
  18869. // { name: "AI Blockly", tool: 24 },
  18870. // { name: "目标管理", tool: 25 },
  18871. // { name: "数学画板", tool: 31 },
  18872. // { name: "翻译", tool: 28 },
  18873. // { name: "魔盒识字", tool: 37 },
  18874. // { name: "数学画板", tool: 31 },
  18875. // { name: "24点", tool: 38 },
  18876. // { name: "GeoGebra", tool: 39 },
  18877. // { name: "源码编辑", tool: 32 },
  18878. // { name: "个人评价", tool: 40 },
  18879. // { name: "选择匹配", tool: 41 },
  18880. // { name: "汉字宫", tool: 44 },
  18881. // { name: "排序", tool: 47 },
  18882. // { name: "表格", tool: 48 },
  18883. // { name: "文档", tool: 52 },
  18884. // { name: "学生分组", tool: 49 },
  18885. // { name: "CocoPi", tool: 57 },
  18886. // { name: "模拟驾驶", tool: 58 },
  18887. // { name: "路径搜索", tool: 59 },
  18888. // { name: "深度学习", tool: 60 },
  18889. // { name: "全历史", tool: 61 },
  18890. // { name: "交互视频", tool: 62 },
  18891. // { name: "海龟编程", tool: 63 },
  18892. // { name: "挑人", tool: 65 },
  18893. // { name: "公式编辑", tool: 66 },
  18894. // { name: "分子结构", tool: 67 },
  18895. // { name: "时间轴", tool: 68 },
  18896. // ];
  18897. // var toolName = "";
  18898. // for(var w = 0;w<toolList.length;w++){
  18899. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18900. // toolName = toolList[w].name;
  18901. // }
  18902. // }
  18903. console.log(url);
  18904. this.downLoadAll(url, loading);
  18905. })
  18906. .catch(() => {});
  18907. },
  18908. downLoadAll(url, loading) {
  18909. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18910. const zip = new JSZip();
  18911. const cache = {};
  18912. const promises = [];
  18913. data.forEach((item) => {
  18914. const promise = getFile(item.url).then((data) => {
  18915. if (data.data != 1) {
  18916. // 下载文件, 并存成ArrayBuffer对象
  18917. const file_name =
  18918. item.name +
  18919. "." +
  18920. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18921. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18922. cache[file_name] = data.data;
  18923. }
  18924. });
  18925. promises.push(promise);
  18926. });
  18927. Promise.all(promises).then(() => {
  18928. zip.generateAsync({ type: "blob" }).then((content) => {
  18929. // 生成二进制流
  18930. FileSaver.saveAs(
  18931. content,
  18932. this.courseDetail.title + "-" + "作业提交工具.zip"
  18933. ); // 利用file-saver保存文件 自定义文件名
  18934. setTimeout(() => {
  18935. loading.close();
  18936. }, 2000);
  18937. });
  18938. });
  18939. },
  18940. pickStudent(stu) {
  18941. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18942. return;
  18943. }
  18944. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18945. confirmButtonText: "确定",
  18946. cancelButtonText: "取消",
  18947. type: "warning",
  18948. })
  18949. .then(() => {
  18950. let params = [
  18951. {
  18952. uid: stu.userid,
  18953. cid: this.id,
  18954. stage: this.courseType,
  18955. task: this.taskCount,
  18956. tool: this.toolindex,
  18957. },
  18958. ];
  18959. this.ajax
  18960. .post(this.$store.state.api + "updateCoursePick", params)
  18961. .then((res) => {
  18962. this.$message.success("操作成功");
  18963. this.getPick();
  18964. })
  18965. .catch((err) => {
  18966. this.$message.error("网络不佳");
  18967. console.error(err);
  18968. });
  18969. })
  18970. .catch(() => {});
  18971. },
  18972. selectUser(){
  18973. let params = {
  18974. userid: this.userid,
  18975. };
  18976. this.ajax
  18977. .get(this.$store.state.api + "selectUser", params)
  18978. .then((res) => {
  18979. this.userMes = res.data[0];
  18980. })
  18981. .catch((err) => {
  18982. console.error(err);
  18983. });
  18984. },
  18985. setEngText(i){
  18986. this.newEngIndex = i;
  18987. this.$forceUpdate();
  18988. },
  18989. addCorrect(){
  18990. this.$confirm("你确定提交批改嘛?", "提示", {
  18991. confirmButtonText: "确定",
  18992. showCancelButton: false,
  18993. closeOnClickModal: false,
  18994. type: "warning",
  18995. })
  18996. .then(() => {
  18997. let params = {
  18998. cid: this.id,
  18999. s: parseInt(this.courseType),
  19000. t: this.taskCount,
  19001. tool: this.toolindex,
  19002. wid: this.engWid,
  19003. c: this.userid,
  19004. 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) : "",
  19005. };
  19006. this.ajax
  19007. .get(this.$store.state.api + "addEngC", params)
  19008. .then((res) => {
  19009. this.$message.success("提交成功");
  19010. this.engUpdateDialogVisible = false;
  19011. })
  19012. .catch((err) => {
  19013. console.error(err);
  19014. });
  19015. })
  19016. .catch(() => {});
  19017. },
  19018. selectEngC(id,z){
  19019. let params = {
  19020. workid: id,
  19021. };
  19022. this.ajax
  19023. .get(this.$store.state.api + "selectEngC", params)
  19024. .then((res) => {
  19025. if(res.data[0].length == 0){
  19026. this.newEnglishList.engTitle = z.engTitle;
  19027. this.newEnglishList.engText = z.engText;
  19028. }else{
  19029. var a = res.data[0];
  19030. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19031. if(this.userMes[0].type == 2){
  19032. var snum = 0;
  19033. for(var i = 0;i<a.length;i++){
  19034. if(this.userMes[0].userid == a[i].correct){
  19035. this.newEnglishList = JSON.parse(a[i].cWork);
  19036. snum = 1;
  19037. }
  19038. }
  19039. if(snum == 0){
  19040. this.newEnglishList = { engTitle:"",engText:"" };
  19041. this.newEnglishList.engTitle = z.engTitle;
  19042. this.newEnglishList.engText = z.engText;
  19043. }
  19044. }else if(this.userMes[0].type == 1){
  19045. var num = 0;
  19046. for(var w= 0;w<a.length;w++){
  19047. if(this.userMes[0].userid == a[w].correct){
  19048. num = 1;
  19049. }
  19050. }
  19051. if(num == 0){
  19052. this.isNoUserid = true;
  19053. var c = JSON.parse(JSON.stringify(z));
  19054. this.oldEnglishJson1 = c;
  19055. }else{
  19056. this.isNoUserid = false;
  19057. }
  19058. var b = a.sort((item, index) => {
  19059. console.log(item)
  19060. if (item.correct === this.userMes[0].userid) {
  19061. return -1; // 将a移到前面
  19062. } else if (index.correct === this.userMes[0].userid) {
  19063. return 1; // 将b移到前面
  19064. } else {
  19065. return 0; // 保持默认顺序
  19066. }
  19067. });
  19068. for(var p = 0;p<b.length;p++){
  19069. for(var y = 0;y<ppp.length;y++){
  19070. if(b[p].id == ppp[y].id){
  19071. b[p].cWork = JSON.parse(ppp[y].cWork);
  19072. break
  19073. }
  19074. }
  19075. }
  19076. this.newEnglishList1 = b;
  19077. }
  19078. }
  19079. this.greyType = false;
  19080. setTimeout(() => {
  19081. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19082. if(this.newEnglishList1.length > 0){
  19083. if(this.isNoUserid == true){
  19084. this.engListLength = this.newEnglishList1.length + 1;
  19085. this.newEngIndex = -1;
  19086. }else{
  19087. this.engListLength = this.newEnglishList1.length;
  19088. this.newEngIndex = 0;
  19089. }
  19090. }
  19091. if(this.userMes[0].type == 2){
  19092. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19093. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19094. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19095. }else if(this.newEngIndex == -1){
  19096. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19097. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19098. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19099. }
  19100. }, 500);
  19101. this.engUpdateDialogVisible = true;
  19102. this.$forceUpdate();
  19103. })
  19104. .catch((err) => {
  19105. console.error(err);
  19106. });
  19107. },
  19108. getPick() {
  19109. let params = {
  19110. cid: this.id,
  19111. };
  19112. this.ajax
  19113. .get(this.$store.state.api + "getPick", params)
  19114. .then((res) => {
  19115. let array = [];
  19116. for (var i = 0; i < res.data[0].length; i++) {
  19117. array.push(res.data[0][i].userid);
  19118. }
  19119. this.isPickStudent = array;
  19120. if (array.indexOf(this.userid) !== -1) {
  19121. this.$confirm("你被老师选到啦!", "提示", {
  19122. confirmButtonText: "确定",
  19123. showCancelButton: false,
  19124. closeOnClickModal: false,
  19125. type: "warning",
  19126. })
  19127. .then(() => {
  19128. let pa = [
  19129. {
  19130. uid: this.userid,
  19131. cid: this.id,
  19132. },
  19133. ];
  19134. this.ajax
  19135. .post(this.$store.state.api + "deletePick", pa)
  19136. .then((res) => {
  19137. this.getPick();
  19138. })
  19139. .catch((err) => {
  19140. this.$message.error("网络不佳");
  19141. console.error(err);
  19142. });
  19143. })
  19144. .catch(() => {});
  19145. }
  19146. })
  19147. .catch((err) => {
  19148. this.$message.error("网络不佳");
  19149. console.error(err);
  19150. });
  19151. },
  19152. foldEva() {
  19153. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19154. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19155. } else {
  19156. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19157. setTimeout(() => {
  19158. this.checkEva();
  19159. setTimeout(() => {
  19160. this.checkEva();
  19161. }, 500);
  19162. }, 0);
  19163. }
  19164. this.$forceUpdate();
  19165. },
  19166. panToolHeight(tool) {
  19167. var _tool = document.querySelectorAll('#'+tool)[0]
  19168. var _toolA = _tool ? _tool.offsetHeight : 0
  19169. var _toolC = 0
  19170. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19171. let boolean2 = (_toolA > _toolC) ? true : false
  19172. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19173. this.$forceUpdate();
  19174. },
  19175. },
  19176. directives: {
  19177. // 使用局部注册指令的方式
  19178. resize: {
  19179. // 指令的名称
  19180. bind(el, binding) {
  19181. // el为绑定的元素,binding为绑定给指令的对象
  19182. let width = "",
  19183. height = "";
  19184. function isReize() {
  19185. const style = document.defaultView.getComputedStyle(el);
  19186. if (width !== style.width || height !== style.height) {
  19187. binding.value(); // 关键
  19188. }
  19189. width = style.width;
  19190. height = style.height;
  19191. }
  19192. el.__vueSetInterval__ = setInterval(isReize, 300);
  19193. },
  19194. unbind(el) {
  19195. clearInterval(el.__vueSetInterval__);
  19196. },
  19197. },
  19198. autoHeight: {
  19199. update(el, binding) {
  19200. const { value } = binding
  19201. if (value && typeof value === 'number') {
  19202. el.style.height = `${value}px`
  19203. } else {
  19204. el.style.height = 'auto'
  19205. }
  19206. },
  19207. componentUpdated(el) {
  19208. el.style.height = `${el.scrollHeight}px`
  19209. },
  19210. },
  19211. },
  19212. beforeDestroy() {
  19213. window.onresize = null;
  19214. clearInterval(this.timer);
  19215. this.timer = null;
  19216. clearInterval(this.opertimer);
  19217. this.opertimer = null;
  19218. },
  19219. computed: {
  19220. contentConvent() {
  19221. return function (c) {
  19222. return c
  19223. ? c
  19224. .replaceAll(/\r\n/g, "<br/>")
  19225. .replaceAll(/\n/g, "<br/>")
  19226. .replaceAll(/\s/g, " &nbsp")
  19227. : "";
  19228. };
  19229. },
  19230. checkUpload() {
  19231. return function () {
  19232. var studentK = [];
  19233. if (this.plworkFile.length > 0) {
  19234. for (var z = 0; z < this.plworkFile.length; z++) {
  19235. studentK.push(this.plworkFile[z].username);
  19236. }
  19237. studentK = studentK.join(",");
  19238. }
  19239. var a = this.uploadStudentJuri.filter((el) => {
  19240. return studentK.indexOf(el.userid) == -1;
  19241. });
  19242. return a;
  19243. };
  19244. },
  19245. getSName() {
  19246. return function (name) {
  19247. var check = name;
  19248. this.uploadStudentJuri.forEach((el) => {
  19249. if (el.userid == check) {
  19250. check = el.name ? el.name : el.username;
  19251. }
  19252. });
  19253. return check;
  19254. };
  19255. },
  19256. getImgList() {
  19257. return function (val) {
  19258. let srcList = []; // 定义一个数组用来接收后面的img地址
  19259. val.replace(
  19260. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19261. function (match, capture) {
  19262. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19263. srcList.push(capture);
  19264. }
  19265. );
  19266. return srcList;
  19267. };
  19268. },
  19269. retrnToolHeight(){
  19270. return function (tool) {
  19271. var _tool = document.querySelectorAll('#'+tool)[0]
  19272. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19273. };
  19274. },
  19275. Correct() {
  19276. return function (c) {
  19277. let w = "";
  19278. let a = this.correctWord;
  19279. for(var k = 0;k<a.length;k++){
  19280. //diffWordsWithSpace
  19281. if(a.length > 1){
  19282. if(a[k].added == true){
  19283. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19284. }else if(a[k].removed == true){
  19285. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19286. }else{
  19287. w += '<span>' + a[k].value + '</span>';
  19288. }
  19289. }else{
  19290. w = c
  19291. }
  19292. //diffChars方法
  19293. // if(a.length > 1){
  19294. // if(w == ""){
  19295. // if(a[k].added == true){
  19296. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19297. // }else if(a[k].removed == true){
  19298. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19299. // }
  19300. // }else{
  19301. // if(k == a.length - 1){
  19302. // if(a[k].added == true){
  19303. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19304. // }else if(a[k].removed == true){
  19305. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19306. // }
  19307. // }else{
  19308. // if(a[k].added == true){
  19309. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19310. // }else if(a[k].removed == true){
  19311. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19312. // }
  19313. // }
  19314. // }
  19315. // }else{
  19316. // w = c
  19317. // }
  19318. }
  19319. c = w;
  19320. return c;
  19321. };
  19322. },
  19323. },
  19324. mounted() {
  19325. document.body.addEventListener("click", (e) => {
  19326. if (this.isUpdateToolDetail1) {
  19327. this.updateToolDetail(this.toolDetailIndex);
  19328. }
  19329. });
  19330. if (this.screenType == 2) {
  19331. window.parent.postMessage({ allScreen: 4 }, "*");
  19332. } else if (this.screenType == 3) {
  19333. window.parent.postMessage({ allScreen: 5 }, "*");
  19334. } else if (this.screenType == 1) {
  19335. window.parent.postMessage({ allScreen: 6 }, "*");
  19336. }
  19337. this.setOperationTime();
  19338. this.selectEva();
  19339. this.getCourseDetail();
  19340. this.selectCount();
  19341. this.getHomeWork();
  19342. this.selectUser();
  19343. this.contentDialog = true;
  19344. this.setContent2(true);
  19345. if (this.tType == 4) {
  19346. this.pzDialog = true;
  19347. this.selectPz();
  19348. }
  19349. document.scrollingElement.scrollTop = 0;
  19350. window.addEventListener("resize", () => {
  19351. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19352. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19353. if (this.showType == 2 || this.showType == 3) {
  19354. document.getElementsByClassName("navBox")[0].style.height =
  19355. a - 40 + 46 + "px";
  19356. } else {
  19357. document.getElementsByClassName("navBox")[0].style.height =
  19358. a - 40 + "px";
  19359. }
  19360. });
  19361. let _this = this;
  19362. setTimeout(() => {
  19363. // _this.vedioTime = [];
  19364. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19365. // _this.vedioTime[i] = document.getElementsByClassName(
  19366. // "vjs-duration-display"
  19367. // )[i].textContent;
  19368. // }
  19369. }, 1000);
  19370. },
  19371. };
  19372. </script>
  19373. <style scoped>
  19374. @media screen and (max-width: 1280px) {
  19375. /* .courseIndex > div:first-child(2) {
  19376. width: 15% !important;
  19377. } */
  19378. /* .navText {
  19379. width: 120px !important;
  19380. } */
  19381. .evaCss {
  19382. flex-direction: column !important;
  19383. align-items: center !important;
  19384. }
  19385. .elist_input {
  19386. width: 90% !important;
  19387. }
  19388. .dialog_diy1 >>> .el-dialog {
  19389. width: 100% !important;
  19390. }
  19391. .rightWidthCss {
  19392. width: 100% !important;
  19393. }
  19394. .dialog_diy3 >>> .el-dialog {
  19395. width: 100% !important;
  19396. }
  19397. .addToolCss {
  19398. right: 0 !important;
  19399. width: 100% !important;
  19400. min-width: unset !important;
  19401. }
  19402. }
  19403. .evaCssMax {
  19404. flex-direction: column !important;
  19405. align-items: center !important;
  19406. }
  19407. .dialog_diy >>> .el-dialog {
  19408. margin-top: 10vh !important;
  19409. }
  19410. .body_student {
  19411. width: 77%;
  19412. height: 100%;
  19413. position: absolute;
  19414. left: 22%;
  19415. top: 0;
  19416. }
  19417. .student_head {
  19418. width: 100%;
  19419. margin: 20px auto 0;
  19420. padding-bottom: 20px;
  19421. display: flex;
  19422. flex-direction: column;
  19423. flex-wrap: nowrap;
  19424. align-items: flex-start;
  19425. justify-content: flex-start;
  19426. }
  19427. .pb_left {
  19428. width: 20%;
  19429. margin-right: 10px;
  19430. background: rgb(255, 255, 255);
  19431. position: fixed;
  19432. height: calc(100% - 40px);
  19433. border-radius: 20px;
  19434. padding-bottom: 15px;
  19435. box-sizing: border-box;
  19436. }
  19437. .wheel > img,
  19438. .project > img,
  19439. .star > img,
  19440. .evaluate > img,
  19441. .up_photo > img,
  19442. .chapter_add > img,
  19443. .deleteWord > img,
  19444. .question > img,
  19445. .homework > img {
  19446. width: 100%;
  19447. height: 100%;
  19448. }
  19449. .upCover > img {
  19450. width: 131px;
  19451. height: 69px;
  19452. object-fit: cover;
  19453. }
  19454. .upCover {
  19455. width: calc(100% / 3.5);
  19456. position: relative;
  19457. margin: 0 15px 10px 0;
  19458. display: flex;
  19459. flex-direction: column;
  19460. flex-wrap: nowrap;
  19461. justify-content: center;
  19462. align-content: center;
  19463. align-items: center;
  19464. height: fit-content;
  19465. }
  19466. .upCover2 {
  19467. width: 100%;
  19468. position: relative;
  19469. margin: 0 15px 10px 0;
  19470. display: flex;
  19471. flex-direction: column;
  19472. flex-wrap: nowrap;
  19473. justify-content: center;
  19474. align-content: center;
  19475. align-items: center;
  19476. }
  19477. .upCover2 > img {
  19478. width: 100%;
  19479. height: 90px;
  19480. object-fit: contain;
  19481. }
  19482. .chapter_add {
  19483. width: 120px;
  19484. position: relative;
  19485. text-align: center;
  19486. }
  19487. .isAddThings {
  19488. margin-top: 20px;
  19489. position: relative;
  19490. text-align: center;
  19491. background: #f7f8fa;
  19492. height: 90px;
  19493. width: 90px;
  19494. display: flex;
  19495. flex-direction: column;
  19496. justify-content: center;
  19497. }
  19498. .deleteWord {
  19499. width: 22px;
  19500. height: 22px;
  19501. position: absolute;
  19502. right: -5px;
  19503. top: -5px;
  19504. cursor: pointer;
  19505. }
  19506. .box_course {
  19507. /* width: 60%; */
  19508. width: calc(100% - 300px);
  19509. }
  19510. .wheel {
  19511. width: 100%;
  19512. /* height: 100%; */
  19513. height: 650px;
  19514. }
  19515. .right_box {
  19516. display: flex;
  19517. flex-direction: column;
  19518. margin-left: 30px;
  19519. justify-content: space-around;
  19520. }
  19521. .right_box_title {
  19522. font-size: 23px;
  19523. }
  19524. .people {
  19525. display: flex;
  19526. }
  19527. .student_body {
  19528. width: 100%;
  19529. margin: 0 auto;
  19530. margin-top: 10px;
  19531. padding: 0 0 20px;
  19532. }
  19533. .study_top {
  19534. margin-top: 100px;
  19535. width: 100%;
  19536. height: auto;
  19537. padding-bottom: 20px;
  19538. }
  19539. .study_top .checkbox {
  19540. display: flex;
  19541. align-items: center;
  19542. padding: 15px 0 15px 30px;
  19543. flex: 0 0 auto;
  19544. font-weight: bold;
  19545. border-bottom: 1px solid #eee;
  19546. }
  19547. .study_top .check {
  19548. padding-bottom: 5px;
  19549. text-align: center;
  19550. cursor: pointer;
  19551. height: 30px;
  19552. box-sizing: border-box;
  19553. display: flex;
  19554. }
  19555. .study_top .checked {
  19556. border-bottom: 4px solid #3fc6a0;
  19557. padding-bottom: 5px;
  19558. color: #3fc6a0;
  19559. display: flex;
  19560. height: 35px;
  19561. }
  19562. .study_top .checked > div,
  19563. .study_top .check > div {
  19564. margin-right: 5px;
  19565. }
  19566. .videoTop {
  19567. display: flex;
  19568. flex-direction: row;
  19569. justify-content: space-between;
  19570. background: #fff;
  19571. align-items: center;
  19572. width: 95%;
  19573. padding: 20px;
  19574. }
  19575. .filebox {
  19576. display: flex;
  19577. flex-wrap: wrap;
  19578. flex-direction: column;
  19579. padding: 0 0 5px;
  19580. position: relative;
  19581. }
  19582. .filebox:before {
  19583. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19584. position: absolute;
  19585. top: 20px;
  19586. left: 13px;
  19587. border-left: 2px dotted #cad1dc;
  19588. height: calc(100% - 15px);
  19589. }
  19590. .toolHeng2 > div:last-child::before {
  19591. height: calc(100% - 43px);
  19592. }
  19593. .filebox .tooldetail {
  19594. width: calc(100% - 280px);
  19595. margin: 0px 12px;
  19596. padding: 12px;
  19597. line-height: 30px;
  19598. word-break: break-word;
  19599. background: #ffffff;
  19600. border-radius: 8px 8px 8px 8px;
  19601. opacity: 1;
  19602. border: 1px solid #cad1dc;
  19603. overflow:hidden;
  19604. box-sizing:border-box;
  19605. }
  19606. .file {
  19607. display: flex;
  19608. flex-direction: column;
  19609. align-items: center;
  19610. justify-content: center;
  19611. cursor: pointer;
  19612. width: 200px;
  19613. }
  19614. .file div {
  19615. margin-top: 10px;
  19616. width: 150px;
  19617. text-align: center;
  19618. overflow: hidden;
  19619. white-space: nowrap;
  19620. text-overflow: ellipsis;
  19621. }
  19622. .media {
  19623. display: flex;
  19624. flex-direction: column;
  19625. align-items: center;
  19626. justify-content: center;
  19627. margin: 0 20px 20px 0;
  19628. cursor: pointer;
  19629. margin: 12px 0 5px 15px;
  19630. overflow: hidden;
  19631. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19632. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19633. box-sizing: border-box;
  19634. }
  19635. .media img {
  19636. height: 90px;
  19637. width: 160px;
  19638. object-fit: cover;
  19639. }
  19640. .media .title {
  19641. padding: 5px;
  19642. text-align: left;
  19643. width: 100%;
  19644. box-sizing: border-box;
  19645. }
  19646. .media .btn {
  19647. width: 100%;
  19648. height: 35px;
  19649. line-height: 35px;
  19650. color: #fff;
  19651. background: #606060;
  19652. text-align: center;
  19653. overflow: hidden;
  19654. white-space: nowrap;
  19655. text-overflow: ellipsis;
  19656. }
  19657. .detail_content_top {
  19658. width: 100%;
  19659. padding: 25px 0 25px 0;
  19660. }
  19661. .detail_title {
  19662. text-align: center;
  19663. font-size: 24px;
  19664. }
  19665. .detail_time {
  19666. font-size: 13px;
  19667. padding: 15px 0 0 40px;
  19668. }
  19669. .detail_content {
  19670. line-height: 2pc;
  19671. width: 90%;
  19672. margin: 0 auto;
  19673. padding-top: 30px;
  19674. text-indent: 30px;
  19675. overflow: auto;
  19676. height: 200px;
  19677. }
  19678. .score_box >>> .el-rate {
  19679. margin-left: 10px;
  19680. }
  19681. .dialog_change >>> .el-dialog {
  19682. border-radius: 5px;
  19683. }
  19684. .dialog_change >>> .el-dialog__header {
  19685. background: #f2f2f2;
  19686. text-align: center;
  19687. }
  19688. .dialog_change >>> .el-dialog__title {
  19689. line-height: 5px;
  19690. }
  19691. .dialog_change >>> .el-dialog__body {
  19692. background: #fff;
  19693. padding: 10px 20px;
  19694. }
  19695. .score_box {
  19696. display: flex;
  19697. align-items: center;
  19698. margin-bottom: 18px;
  19699. margin-top: 20px;
  19700. }
  19701. .up_photo {
  19702. width: 120px;
  19703. cursor: pointer;
  19704. margin-top: 10px;
  19705. }
  19706. .up_photo2 {
  19707. width: 180px;
  19708. box-sizing: border-box;
  19709. min-width: 180px;
  19710. height: 180px;
  19711. max-height: 180px;
  19712. min-height: 180px;
  19713. cursor: pointer;
  19714. display: flex;
  19715. flex-direction: column;
  19716. align-items: center;
  19717. justify-content: center;
  19718. background: rgb(242, 246, 255);
  19719. /* padding: 25px; */
  19720. margin-bottom: 10px;
  19721. }
  19722. .up_photo2 img {
  19723. width: 50%;
  19724. height: auto;
  19725. }
  19726. .up_photo2 span {
  19727. color: #898989;
  19728. }
  19729. .plworkBox {
  19730. display: flex;
  19731. align-items: center;
  19732. margin-top: 10px;
  19733. flex-wrap: wrap;
  19734. }
  19735. .upload_send {
  19736. margin: 30px auto 30px;
  19737. width: 60%;
  19738. background: #3681fc;
  19739. text-align: center;
  19740. height: 35px;
  19741. line-height: 35px;
  19742. color: #fff;
  19743. border-radius: 5px;
  19744. cursor: pointer;
  19745. }
  19746. .marginT {
  19747. margin-top: 20px;
  19748. }
  19749. .cd_content_steps {
  19750. display: flex;
  19751. width: 90%;
  19752. justify-content: space-around;
  19753. border-top: 1px solid #eeeeee;
  19754. }
  19755. .cd_steps_box {
  19756. display: flex;
  19757. justify-content: center;
  19758. align-items: center;
  19759. flex-direction: column;
  19760. cursor: pointer;
  19761. }
  19762. .first {
  19763. display: flex;
  19764. align-items: center;
  19765. margin: 15px 0 20px 0;
  19766. font-size: 20px;
  19767. }
  19768. .first > div:nth-child(2) {
  19769. font-size: 16px !important;
  19770. padding-left: 10px;
  19771. line-height: 26px;
  19772. box-sizing: border-box;
  19773. }
  19774. .blue_box_one {
  19775. text-align: center;
  19776. color: #fff;
  19777. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19778. border-radius: 7px;
  19779. margin: 10px;
  19780. cursor: pointer;
  19781. width: 95%;
  19782. height: 45px;
  19783. display: flex;
  19784. flex-direction: row;
  19785. justify-content: flex-start;
  19786. align-items: center;
  19787. }
  19788. .blue_box_one > div:nth-child(1) {
  19789. line-height: 30px;
  19790. margin: 0 5px 0 10px;
  19791. width: 30%;
  19792. min-width: 70px;
  19793. border-radius: 4px;
  19794. }
  19795. .blue_box_one > div:nth-child(2) {
  19796. white-space: nowrap;
  19797. text-overflow: ellipsis;
  19798. overflow: hidden;
  19799. word-break: break-all;
  19800. width: 70%;
  19801. text-align: left;
  19802. margin-right: 10px;
  19803. max-width: calc(100% - 85px);
  19804. }
  19805. .blue_box_one > div:nth-child(2):hover {
  19806. overflow: hidden;
  19807. text-overflow: ellipsis;
  19808. white-space: nowrap;
  19809. cursor: pointer;
  19810. }
  19811. .upFile {
  19812. margin: 0 auto;
  19813. width: 120px;
  19814. background: #3681fc;
  19815. color: #fff;
  19816. height: 30px;
  19817. text-align: center;
  19818. line-height: 30px;
  19819. border-radius: 5px;
  19820. font-size: 14px;
  19821. cursor: pointer;
  19822. }
  19823. .courseTitle {
  19824. width: 85%;
  19825. margin: 10px auto 26px auto;
  19826. display: flex;
  19827. flex-direction: row;
  19828. align-items: center;
  19829. justify-content: space-between;
  19830. text-align: center;
  19831. }
  19832. .courseTitle .ctitle {
  19833. font-size: 20px;
  19834. font-weight: bold;
  19835. color: #0e1e33;
  19836. white-space: nowrap;
  19837. overflow: hidden;
  19838. text-overflow: ellipsis;
  19839. }
  19840. .inviteBox {
  19841. font-size: 14px;
  19842. /* margin-top: 5px; */
  19843. color: #00000099;
  19844. text-align: center;
  19845. }
  19846. .courseTitle >>> .el-tooltip {
  19847. width: 100%;
  19848. white-space: nowrap;
  19849. overflow: hidden;
  19850. text-overflow: ellipsis;
  19851. word-break: break-word;
  19852. }
  19853. .ml {
  19854. margin-left: 20px;
  19855. color: #5b7dba;
  19856. border-left: 3px solid #5b7dba;
  19857. padding-left: 5px;
  19858. font-weight: bold;
  19859. }
  19860. .return {
  19861. width: 2rem;
  19862. height: 2rem;
  19863. cursor: pointer;
  19864. }
  19865. .return > img {
  19866. width: 100%;
  19867. height: 100%;
  19868. }
  19869. .returnBtn {
  19870. width: 86px;
  19871. height: 36px;
  19872. background: #3681fc;
  19873. border-radius: 4px;
  19874. color: #fff;
  19875. text-align: center;
  19876. line-height: 36px;
  19877. margin-right: 20px;
  19878. cursor: pointer;
  19879. font-size: 14px;
  19880. font-weight: 400;
  19881. display: flex;
  19882. flex-direction: row;
  19883. flex-wrap: nowrap;
  19884. align-items: center;
  19885. justify-content: center;
  19886. }
  19887. .reBtnIcon,
  19888. .commentIcon,
  19889. .vedioIcon,
  19890. .vedioIcon1 {
  19891. /* width: 36px; */
  19892. height: 36px;
  19893. border-radius: 4px;
  19894. position: relative;
  19895. /* background: #e0eafb; */
  19896. background: #0061ff;
  19897. cursor: pointer;
  19898. margin-right: 12px;
  19899. display: flex;
  19900. align-items: center;
  19901. padding: 0 10px;
  19902. box-sizing: border-box;
  19903. font-size: 14px;
  19904. color: #fff;
  19905. }
  19906. .reBtnIcon::before,
  19907. .commentIcon::before,
  19908. .vedioIcon::before,
  19909. .vedioIcon1::before {
  19910. content: "";
  19911. display: block;
  19912. background-size: 100% 100%;
  19913. background-repeat: no-repeat;
  19914. width: 20px;
  19915. height: 20px;
  19916. margin-right: 5px;
  19917. /* position: absolute; */
  19918. /* top: 8px;
  19919. left: 8px; */
  19920. }
  19921. .vedioIcon1 {
  19922. background: #f63564;
  19923. }
  19924. .reBtnIcon::before {
  19925. background-image: url("../../assets/icon/newIcons/refresh.png");
  19926. }
  19927. .commentIcon::before {
  19928. background-image: url("../../assets/icon/newIcons/comment.png");
  19929. }
  19930. .vedioIcon::before {
  19931. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19932. }
  19933. .vedioIcon1::before {
  19934. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19935. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19936. }
  19937. .tool {
  19938. display: flex;
  19939. flex-direction: column;
  19940. flex-wrap: nowrap;
  19941. width: 13%;
  19942. margin: 0 30px;
  19943. align-items: center;
  19944. position: relative;
  19945. padding: 10px 25px;
  19946. cursor: pointer;
  19947. }
  19948. .whiteBIcon {
  19949. width: 150px;
  19950. }
  19951. .whiteBIcon > img {
  19952. width: 100%;
  19953. height: 100%;
  19954. }
  19955. .mask {
  19956. background-color: rgba(0, 0, 0, 0);
  19957. position: fixed;
  19958. top: 0;
  19959. left: 0;
  19960. width: 100%;
  19961. height: 100%;
  19962. z-index: 20000;
  19963. display: flex;
  19964. align-items: center;
  19965. justify-content: center;
  19966. }
  19967. .progressBox {
  19968. width: 500px;
  19969. height: 180px;
  19970. background: #fff;
  19971. border-radius: 10px;
  19972. box-shadow: 0 0 6px 1px #bfbfbf;
  19973. display: flex;
  19974. align-items: center;
  19975. justify-content: center;
  19976. flex-direction: column;
  19977. position: relative;
  19978. color: #6c6c6c;
  19979. }
  19980. .progressBox >>> .el-progress-bar__outer {
  19981. background-color: #d1dfff !important;
  19982. }
  19983. .progressBox .lbox {
  19984. height: 50px;
  19985. font-size: 19px;
  19986. display: flex;
  19987. align-items: center;
  19988. color: #747474;
  19989. }
  19990. .progressBox .lbox img {
  19991. width: 40px;
  19992. margin-right: 20px;
  19993. }
  19994. .closeCss {
  19995. position: absolute;
  19996. top: 8px;
  19997. right: 8px;
  19998. cursor: pointer;
  19999. width: 20px;
  20000. height: 20px;
  20001. }
  20002. .closeCss > img {
  20003. width: 100%;
  20004. height: 100%;
  20005. }
  20006. .uploadVedio {
  20007. display: flex;
  20008. flex-direction: column;
  20009. flex-wrap: nowrap;
  20010. justify-content: center;
  20011. align-items: center;
  20012. margin: 0 15px 10px 0;
  20013. }
  20014. .uploadVedio > img {
  20015. width: 30px;
  20016. height: 30px;
  20017. }
  20018. .uploadVedio > span {
  20019. white-space: nowrap;
  20020. overflow: hidden;
  20021. text-overflow: ellipsis;
  20022. width: 75px;
  20023. margin-top: 7px;
  20024. }
  20025. .picName {
  20026. white-space: nowrap;
  20027. overflow: hidden;
  20028. text-overflow: ellipsis;
  20029. width: 75px;
  20030. margin-top: 7px;
  20031. }
  20032. .new_top {
  20033. display: flex;
  20034. background: #fff;
  20035. flex-direction: row;
  20036. justify-content: flex-start;
  20037. align-items: center;
  20038. height: 60px;
  20039. position: fixed;
  20040. top: 20px;
  20041. left: 22%;
  20042. width: 77%;
  20043. z-index: 999;
  20044. border-radius: 12px 12px 0 0;
  20045. border-bottom: 1px solid #cad1dc;
  20046. padding: 10px 0;
  20047. }
  20048. .new_topFixed {
  20049. width: 100%;
  20050. height: 40px;
  20051. position: fixed;
  20052. top: 0px;
  20053. display: block;
  20054. background: #f2f2f2;
  20055. z-index: 998;
  20056. }
  20057. .before {
  20058. position: absolute;
  20059. background: #c3dad4;
  20060. width: 6px;
  20061. height: 100%;
  20062. }
  20063. .courseIndex {
  20064. display: flex;
  20065. flex-direction: row;
  20066. align-items: center;
  20067. width: calc(100% - 745px);
  20068. }
  20069. .courseIndex > div:nth-child(1) {
  20070. margin: 0 0 0 10px;
  20071. font-size: 20px;
  20072. min-width: 100px;
  20073. font-weight: bold;
  20074. border-left: 4px solid #3363b9;
  20075. height: 32px;
  20076. text-align: center;
  20077. line-height: 35px;
  20078. }
  20079. .courseIndex > div:nth-child(2) {
  20080. font-size: 20px;
  20081. /* width: 300px; */
  20082. max-width: calc(100% - 105px);
  20083. white-space: nowrap;
  20084. overflow: hidden;
  20085. text-overflow: ellipsis;
  20086. }
  20087. .courseIndex > div:nth-child(3) {
  20088. border-bottom: 1px solid #d7d7d7;
  20089. padding-bottom: 5px;
  20090. background: #3681fc;
  20091. width: 55px;
  20092. min-width: 55px;
  20093. border-radius: 5px;
  20094. color: #fff;
  20095. text-align: center;
  20096. height: 20px;
  20097. line-height: 26px;
  20098. font-size: 14px;
  20099. margin: 0 0 0 10px;
  20100. }
  20101. .course_text {
  20102. padding: 20px 0 0 15px;
  20103. text-indent: 30px;
  20104. width: 80%;
  20105. min-height: 20px;
  20106. }
  20107. .vedioList {
  20108. background: #f2f2f2;
  20109. border: 1px solid #ececec;
  20110. /* width: 38.8%; */
  20111. /* width: 300px; */
  20112. width: 100%;
  20113. height: 445px;
  20114. border-radius: 10px;
  20115. overflow: hidden;
  20116. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20117. }
  20118. .vedioNav {
  20119. margin: 10px 0 0 15px;
  20120. border-bottom: 1px solid #d7d7d7;
  20121. padding-bottom: 5px;
  20122. background: #3681fc;
  20123. width: 55px;
  20124. min-width: 55px;
  20125. border-radius: 5px;
  20126. color: #fff;
  20127. text-align: center;
  20128. height: 20px;
  20129. line-height: 26px;
  20130. font-size: 14px;
  20131. }
  20132. .queTop {
  20133. display: flex;
  20134. padding: 20px 0 20px 30px;
  20135. width: 100%;
  20136. flex-direction: row;
  20137. justify-content: flex-start;
  20138. align-items: center;
  20139. box-sizing: border-box;
  20140. }
  20141. .queTopTitle {
  20142. display: flex;
  20143. flex-direction: row;
  20144. flex-wrap: nowrap;
  20145. align-items: center;
  20146. font-weight: bold;
  20147. font-size: 20px;
  20148. color: rgb(14, 30, 51);
  20149. }
  20150. .queTopTitle::before {
  20151. content: "";
  20152. width: 2px;
  20153. height: 22px;
  20154. background: #3681fc;
  20155. border-radius: 3px;
  20156. display: block;
  20157. margin: 2px 6px 0 0;
  20158. }
  20159. .queTopRight {
  20160. display: flex;
  20161. flex-direction: row;
  20162. flex-wrap: nowrap;
  20163. align-items: center;
  20164. }
  20165. .queTopClose {
  20166. margin-right: 20px;
  20167. cursor: pointer;
  20168. position: relative;
  20169. display: flex;
  20170. }
  20171. .closeImg,
  20172. .openImg {
  20173. width: 25px;
  20174. height: 25px;
  20175. position: absolute;
  20176. left: -20px;
  20177. top: -1px;
  20178. }
  20179. .closeImg > img,
  20180. .openImg > img {
  20181. width: 100%;
  20182. height: 100%;
  20183. }
  20184. .question {
  20185. width: 40px;
  20186. margin-right: 10px;
  20187. margin-top: 7px;
  20188. }
  20189. .queTitle {
  20190. margin-left: 5px;
  20191. font-size: 25px;
  20192. display: flex;
  20193. align-items: center;
  20194. }
  20195. .addEditor {
  20196. width: 100px;
  20197. height: 30px;
  20198. background: #42cda6;
  20199. color: #fff;
  20200. border-radius: 5px;
  20201. text-align: center;
  20202. line-height: 30px;
  20203. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20204. cursor: pointer;
  20205. }
  20206. /* .vedioName {
  20207. cursor: pointer;
  20208. margin: 0px 0px 10px 5px;
  20209. white-space: nowrap;
  20210. overflow: hidden;
  20211. text-overflow: ellipsis;
  20212. width: 100%;
  20213. } */
  20214. .vedioTime {
  20215. width: 35px;
  20216. position: absolute;
  20217. color: #fff;
  20218. bottom: 0px;
  20219. right: 0px;
  20220. text-align: center;
  20221. background: #46411f;
  20222. height: 20px;
  20223. font-size: 14px;
  20224. line-height: 20px;
  20225. }
  20226. .homework {
  20227. width: 200px;
  20228. display: flex;
  20229. flex-direction: column;
  20230. flex-wrap: nowrap;
  20231. align-items: center;
  20232. cursor: pointer;
  20233. }
  20234. .homebox {
  20235. display: flex;
  20236. flex-wrap: wrap;
  20237. flex-direction: row;
  20238. justify-content: flex-start;
  20239. align-items: center;
  20240. padding: 15px 0;
  20241. }
  20242. .isChooseActive {
  20243. color: #3681fc !important;
  20244. font-weight: bold !important;
  20245. }
  20246. .chooseWho {
  20247. display: flex;
  20248. width: 100%;
  20249. flex-direction: row;
  20250. flex-wrap: nowrap;
  20251. justify-content: flex-start;
  20252. padding-bottom: 10px;
  20253. }
  20254. .chooseWho > div {
  20255. cursor: pointer;
  20256. padding-bottom: 10px;
  20257. margin: 0 30px 0 0;
  20258. font-weight: 400;
  20259. color: #0e1e33;
  20260. }
  20261. .addPoint > div > img {
  20262. cursor: pointer;
  20263. width: 85px;
  20264. border-radius: 15px;
  20265. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20266. }
  20267. .addPoint > div {
  20268. display: flex;
  20269. flex-direction: column;
  20270. flex-wrap: nowrap;
  20271. align-items: center;
  20272. }
  20273. .isBorder > div {
  20274. margin: 0 0 10px 0;
  20275. align-items: flex-start !important;
  20276. }
  20277. .noiframeBox {
  20278. display: flex;
  20279. flex-wrap: wrap;
  20280. }
  20281. .iframeBox iframe {
  20282. width: 100%;
  20283. height: 800px;
  20284. border: none;
  20285. margin-bottom: 20px;
  20286. border: 1px solid #ccc;
  20287. }
  20288. .upload_toolBtn {
  20289. background: #3681fc;
  20290. color: #fff;
  20291. width: 110px;
  20292. text-align: center;
  20293. height: 35px;
  20294. line-height: 35px;
  20295. font-size: 14px;
  20296. border-radius: 5px;
  20297. cursor: pointer;
  20298. position: absolute;
  20299. right: 10px;
  20300. bottom: 0;
  20301. }
  20302. .binfo_input,
  20303. .pj {
  20304. font: inherit;
  20305. color: currentColor;
  20306. width: 100%;
  20307. margin: 0;
  20308. padding: 15px 14px;
  20309. display: block;
  20310. min-width: 0;
  20311. outline: none;
  20312. box-sizing: content-box;
  20313. background: none;
  20314. -webkit-tap-highlight-color: transparent;
  20315. border: 1px solid rgba(0, 0, 0, 0.23);
  20316. border-radius: 4px;
  20317. box-sizing: border-box;
  20318. resize: none;
  20319. }
  20320. .binfo_input:focus-visible {
  20321. border: 1px solid rgba(61, 103, 188);
  20322. }
  20323. .dialog_diy >>> .el-dialog__header,
  20324. .dialog_diy1 >>> .el-dialog__header {
  20325. background: #454545 !important;
  20326. padding: 15px 20px;
  20327. }
  20328. .dialog_diy >>> .el-dialog__title,
  20329. .dialog_diy1 >>> .el-dialog__title {
  20330. color: #fff;
  20331. }
  20332. .dialog_diy >>> .el-dialog__headerbtn,
  20333. .dialog_diy1 >>> .el-dialog__headerbtn {
  20334. top: 19px;
  20335. }
  20336. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20337. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20338. color: #fff;
  20339. }
  20340. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20341. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20342. color: #fff;
  20343. }
  20344. .dialog_diy1 >>> .el-dialog__body {
  20345. padding: 0;
  20346. }
  20347. .dialog_diy >>> .el-dialog__body,
  20348. .dialog_diy >>> .el-dialog__footer,
  20349. .dialog_diy1 >>> .el-dialog__footer {
  20350. background: #fafafa;
  20351. }
  20352. .a_addBox {
  20353. padding: 0 0 0 15px;
  20354. }
  20355. .a_add_box {
  20356. padding: 10px;
  20357. background: #fff;
  20358. margin-bottom: 10px;
  20359. border-radius: 5px;
  20360. box-shadow: 0 0 5px 0 #d5d5d5;
  20361. }
  20362. .a_add_head {
  20363. display: flex;
  20364. align-items: flex-start;
  20365. /* justify-content: space-between; */
  20366. flex-direction: column;
  20367. /* flex-direction: row; */
  20368. margin: 10px 0 20px 0;
  20369. font-size: 18px;
  20370. width: 100%;
  20371. }
  20372. .askIndex {
  20373. background: #3681fc;
  20374. border-radius: 50%;
  20375. color: #fff;
  20376. width: 25px;
  20377. height: 25px;
  20378. min-width: 25px;
  20379. min-height: 25px;
  20380. text-align: center;
  20381. line-height: 25px;
  20382. margin-right: 5px;
  20383. }
  20384. .a_add_head .a_add_head_input {
  20385. width: 300px;
  20386. }
  20387. .a_add_head .a_add_head_div {
  20388. display: flex;
  20389. align-items: center;
  20390. justify-content: space-between;
  20391. }
  20392. .a_add_body {
  20393. display: flex;
  20394. align-items: center;
  20395. }
  20396. .a_add_input {
  20397. display: flex;
  20398. align-items: center;
  20399. flex-wrap: wrap;
  20400. width: 100%;
  20401. }
  20402. .a_add_input >>> .el-radio-group,
  20403. .a_add_input >>> .el-checkbox-group {
  20404. width: 100%;
  20405. }
  20406. .a_add_input >>> .el-radio,
  20407. .a_add_input >>> .el-checkbox {
  20408. display: flex;
  20409. flex-direction: row;
  20410. flex-wrap: nowrap;
  20411. align-items: center;
  20412. padding: 15px 0;
  20413. }
  20414. .a_add_input >>> .el-radio:not(:last-child),
  20415. .a_add_input >>> .el-checkbox:not(:last-child) {
  20416. width: 100%;
  20417. border-bottom: 1px solid #efefef;
  20418. }
  20419. .redioStyle >>> .el-radio__label {
  20420. font-size: 18px;
  20421. }
  20422. .redioStyle >>> .el-radio__label > span,
  20423. .redioStyle >>> .el-checkbox__label > span {
  20424. word-break: break-all;
  20425. white-space: normal;
  20426. }
  20427. .redioStyle >>> .el-checkbox__label {
  20428. font-size: 18px;
  20429. }
  20430. .toolHeng2 {
  20431. width: 100%;
  20432. padding-left: 37px;
  20433. box-sizing: border-box;
  20434. }
  20435. .workNav {
  20436. font-size: 20px;
  20437. font-weight: bold;
  20438. color: #0e1e33;
  20439. display: flex;
  20440. flex-direction: row;
  20441. flex-wrap: nowrap;
  20442. align-items: center;
  20443. padding: 15px 0 15px 0;
  20444. }
  20445. .workNav::before {
  20446. content: "";
  20447. width: 2px;
  20448. height: 22px;
  20449. background: #3681fc;
  20450. border-radius: 3px;
  20451. display: block;
  20452. margin: 2px 6px 0 0;
  20453. }
  20454. .toolHeng {
  20455. display: flex;
  20456. flex-direction: row;
  20457. flex-wrap: wrap;
  20458. justify-content: flex-start;
  20459. align-items: center;
  20460. width: 100%;
  20461. }
  20462. .toolHeng > div {
  20463. padding-left: 20px;
  20464. }
  20465. .isWidth {
  20466. width: 20%;
  20467. }
  20468. .textTitle {
  20469. display: flex;
  20470. flex-direction: row;
  20471. flex-wrap: nowrap;
  20472. align-items: center;
  20473. width: 95%;
  20474. }
  20475. .textTitle >>> .el-form-item__label {
  20476. font-size: 22px;
  20477. color: #918f8f;
  20478. width: 100px;
  20479. }
  20480. .textTitle >>> .el-form-item__content {
  20481. width: calc(100% - 100px);
  20482. }
  20483. .textCss >>> .el-dialog {
  20484. width: 800px !important;
  20485. height: 400px;
  20486. background: #fafafa;
  20487. }
  20488. .textCss >>> .el-dialog__body {
  20489. margin: 55px 8% 0 8%;
  20490. padding: 0 !important;
  20491. }
  20492. .textCss >>> .el-dialog__footer {
  20493. padding-top: 38px;
  20494. }
  20495. .toolsCss >>> .el-dialog__body {
  20496. padding: 20px;
  20497. }
  20498. .lineCss >>> .el-dialog__body {
  20499. display: flex;
  20500. flex-direction: row;
  20501. align-items: center;
  20502. justify-content: center;
  20503. }
  20504. .newNav {
  20505. display: flex;
  20506. flex-direction: row;
  20507. align-items: baseline;
  20508. justify-content: flex-start;
  20509. }
  20510. .navListItem {
  20511. width: calc(100% - 20px);
  20512. height: 50px;
  20513. margin: 0px auto 10px;
  20514. display: flex;
  20515. flex-direction: row;
  20516. flex-wrap: nowrap;
  20517. align-items: center;
  20518. justify-content: space-between;
  20519. background: #f0f4fa;
  20520. border-radius: 6px 6px 6px 6px;
  20521. }
  20522. .navText {
  20523. cursor: pointer;
  20524. white-space: nowrap;
  20525. overflow: hidden;
  20526. text-overflow: ellipsis;
  20527. width: 220px;
  20528. padding: 0 10px;
  20529. font-weight: 400;
  20530. color: #0e1e33;
  20531. }
  20532. .downIcon {
  20533. width: 20px;
  20534. min-width: 20px;
  20535. height: 20px;
  20536. margin-right: 15px;
  20537. cursor: pointer;
  20538. }
  20539. .downIcon > img {
  20540. width: 100%;
  20541. height: 100%;
  20542. }
  20543. .noVedio {
  20544. display: flex;
  20545. flex-direction: row;
  20546. justify-content: center;
  20547. align-content: center;
  20548. }
  20549. .noNavText {
  20550. cursor: pointer;
  20551. margin: 0px 0px 10px 5px;
  20552. width: 112px;
  20553. }
  20554. .listNoVedio {
  20555. margin: 0 0 0 30px;
  20556. width: 97%;
  20557. }
  20558. .video-player >>> .video-js {
  20559. height: 100%;
  20560. }
  20561. .hangVedioList {
  20562. width: 90% !important;
  20563. height: 150px !important;
  20564. margin: 20px 0 0 30px;
  20565. }
  20566. .hangVedio {
  20567. width: 100%;
  20568. height: 170px !important;
  20569. align-items: flex-start !important;
  20570. }
  20571. .hangHand {
  20572. height: 150px !important;
  20573. }
  20574. .twoChild {
  20575. width: 95%;
  20576. margin: 10px;
  20577. border-radius: 5px;
  20578. background: #f2f2f2;
  20579. display: flex;
  20580. flex-direction: column;
  20581. flex-wrap: nowrap;
  20582. justify-content: flex-start;
  20583. align-items: flex-start;
  20584. transition: all 0.5s;
  20585. overflow: hidden;
  20586. height: 0;
  20587. background: #e7f3ff;
  20588. }
  20589. .twoChild > div:nth-child(1) {
  20590. margin-top: 5px;
  20591. }
  20592. .navChild {
  20593. width: 100%;
  20594. cursor: pointer;
  20595. margin-bottom: 10px;
  20596. position: relative;
  20597. }
  20598. .navChild img {
  20599. position: absolute;
  20600. right: 11px;
  20601. width: 15px;
  20602. top: 50%;
  20603. transform: translateY(-50%);
  20604. }
  20605. .navActive,
  20606. .toolActive {
  20607. height: auto !important;
  20608. overflow: auto !important;
  20609. /* padding-bottom: 16px; */
  20610. }
  20611. .toolActive {
  20612. padding: 0;
  20613. }
  20614. .navTask {
  20615. display: flex;
  20616. flex-direction: row;
  20617. flex-wrap: nowrap;
  20618. align-items: center;
  20619. align-content: flex-start;
  20620. height: 40px;
  20621. justify-content: flex-start;
  20622. padding: 0 10px;
  20623. width: 100%;
  20624. box-sizing: border-box;
  20625. }
  20626. .navTaskname {
  20627. white-space: nowrap;
  20628. text-overflow: ellipsis;
  20629. overflow: hidden;
  20630. word-break: break-all;
  20631. padding-left: 5px;
  20632. }
  20633. .openTaskActive {
  20634. /* background-color: #e0eafb !important;
  20635. color: #0061ff; */
  20636. color:#fff;
  20637. background: rgb(55, 129, 252) !important;
  20638. }
  20639. .iframeName {
  20640. margin: 5px 0;
  20641. border-left: 4px solid #41c4a4;
  20642. padding-left: 4px;
  20643. }
  20644. .toolTitle {
  20645. margin: 0px 0px 20px;
  20646. font-size: 20px;
  20647. font-weight: 500;
  20648. border-left: 4px solid #41c4a4;
  20649. padding-left: 4px;
  20650. }
  20651. .cru_selectBox {
  20652. overflow: auto;
  20653. width: 95%;
  20654. margin: 17px auto 0;
  20655. height: calc(100% - 40px - 21px - 20px - 17px);
  20656. background: #fff;
  20657. border-radius: 8px;
  20658. }
  20659. .cru_selectBox::-webkit-scrollbar,
  20660. .study_top::-webkit-scrollbar,
  20661. .textContent::-webkit-scrollbar {
  20662. /*滚动条整体样式*/
  20663. width: 6px;
  20664. /*高宽分别对应横竖滚动条的尺寸*/
  20665. height: 6px;
  20666. }
  20667. /*定义滚动条轨道 内阴影+圆角*/
  20668. .cru_selectBox::-webkit-scrollbar-track,
  20669. .study_top::-webkit-scrollbar-track,
  20670. .textContent::-webkit-scrollbar {
  20671. border-radius: 10px;
  20672. background-color: #b8bdc9;
  20673. }
  20674. /*定义滑块 内阴影+圆角*/
  20675. .cru_selectBox::-webkit-scrollbar-thumb,
  20676. .study_top::-webkit-scrollbar-thumb,
  20677. .textContent::-webkit-scrollbar-thumb {
  20678. border-radius: 10px;
  20679. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20680. background-color: #2c5ab3;
  20681. }
  20682. .vedioBox {
  20683. border-radius: 0 0 20px 20px;
  20684. background: #fff;
  20685. overflow: auto;
  20686. }
  20687. .taskBox {
  20688. width: 98%;
  20689. background: #f0f4fa;
  20690. margin: 10px auto;
  20691. padding: 0 10px;
  20692. border-radius: 4px;
  20693. box-sizing: border-box;
  20694. }
  20695. .vedioTaskBox {
  20696. width: 100%;
  20697. display: flex;
  20698. flex-direction: row;
  20699. flex-wrap: nowrap;
  20700. align-items: flex-start;
  20701. position: relative;
  20702. }
  20703. .toolBox {
  20704. margin: 15px 0 0 25px;
  20705. display: flex;
  20706. position: relative;
  20707. padding: 18px 20px;
  20708. border-top-left-radius: 5px;
  20709. border-top-right-radius: 5px;
  20710. width: 90%;
  20711. }
  20712. .btnAll {
  20713. position: absolute;
  20714. right: 0;
  20715. display: flex;
  20716. flex-direction: row;
  20717. flex-wrap: nowrap;
  20718. align-items: center;
  20719. }
  20720. .btnLeft,
  20721. .btnRight {
  20722. display: flex;
  20723. flex-direction: row;
  20724. flex-wrap: nowrap;
  20725. align-items: center;
  20726. padding: 5px 0;
  20727. }
  20728. .btnLeft {
  20729. border-right: 1px solid #cad1dc;
  20730. }
  20731. .btnLeft > .custom-tooltip {
  20732. background: #3681fc;
  20733. color: #fff;
  20734. }
  20735. .last:hover {
  20736. background: #3383fa !important;
  20737. color: #fff;
  20738. border: 1px solid #3383fa !important;
  20739. }
  20740. .last,
  20741. .returnBtn1 {
  20742. width: 90px;
  20743. height: 36px;
  20744. background: #ffffff;
  20745. border-radius: 4px;
  20746. border: 1px solid #0061ff;
  20747. color: #0061ff;
  20748. cursor: pointer;
  20749. display: flex;
  20750. flex-direction: row;
  20751. flex-wrap: nowrap;
  20752. align-items: center;
  20753. justify-content: center;
  20754. margin-left: 12px;
  20755. }
  20756. .returnBtn1 {
  20757. background: #f0f4fa;
  20758. border-radius: 4px;
  20759. border: 1px solid #cad1dc;
  20760. margin: 0 12px;
  20761. }
  20762. .lastImg {
  20763. min-width: 15px;
  20764. width: 15px;
  20765. height: 15px;
  20766. display: flex;
  20767. }
  20768. .lastText {
  20769. padding: 0 5px 0 5px;
  20770. box-sizing: border-box;
  20771. font-size: 14px;
  20772. }
  20773. .lastImg > img {
  20774. width: 100%;
  20775. height: 100%;
  20776. }
  20777. /* .vedioTimeBox {
  20778. display: flex;
  20779. flex-direction: row;
  20780. align-items: center;
  20781. flex-wrap: nowrap;
  20782. position: relative;
  20783. } */
  20784. .navBox {
  20785. background: #fff;
  20786. height: calc(100% - 40px);
  20787. overflow-y: auto;
  20788. overflow-x: hidden;
  20789. }
  20790. .worksBox {
  20791. margin: 0 0 10px 25px;
  20792. border-bottom: 1px solid #eeeeee;
  20793. padding: 18px 20px;
  20794. border-radius: 4px;
  20795. width: 90%;
  20796. }
  20797. .worksBTitle {
  20798. font-size: 20px;
  20799. padding-bottom: 15px;
  20800. border-bottom: 1px solid #eeeeee;
  20801. display: flex;
  20802. align-items: center;
  20803. }
  20804. .greenBox {
  20805. width: 5px;
  20806. height: 30px;
  20807. background: #63b6fa;
  20808. margin-right: 5px;
  20809. }
  20810. .worksDetailBox {
  20811. display: flex;
  20812. width: 100%;
  20813. flex-direction: row;
  20814. flex-wrap: wrap;
  20815. align-items: flex-end;
  20816. justify-content: flex-start;
  20817. padding: 15px 5px;
  20818. box-sizing: border-box;
  20819. }
  20820. .works {
  20821. display: flex;
  20822. flex-direction: column;
  20823. flex-wrap: nowrap;
  20824. align-items: flex-start;
  20825. justify-content: flex-start;
  20826. align-content: center;
  20827. max-width: 240px;
  20828. width: calc(100% / 3 - 10px);
  20829. height: auto;
  20830. margin-right: 10px;
  20831. margin-bottom: 10px;
  20832. overflow: hidden;
  20833. height: 140px;
  20834. box-shadow: 0 0 6px 1px #dfdada;
  20835. border-radius: 15px;
  20836. }
  20837. .workImg {
  20838. width: 100%;
  20839. /* height: calc(100% - 40px); */
  20840. height: 105px;
  20841. position: relative;
  20842. }
  20843. .workImg > img {
  20844. width: 100%;
  20845. height: 100%;
  20846. object-fit: contain;
  20847. cursor: pointer;
  20848. }
  20849. .worksName {
  20850. height: 40px;
  20851. line-height: 40px;
  20852. display: flex;
  20853. width: 100%;
  20854. flex-direction: row;
  20855. flex-wrap: nowrap;
  20856. justify-content: space-between;
  20857. align-items: center;
  20858. margin: 0 0 0 10px;
  20859. }
  20860. .worksName > div:nth-child(1) {
  20861. width: 110px;
  20862. white-space: nowrap;
  20863. overflow: hidden;
  20864. text-overflow: ellipsis;
  20865. }
  20866. .worksName > div:nth-child(2) {
  20867. color: #b7b4b5;
  20868. }
  20869. .noWorksS {
  20870. padding: 15px 0;
  20871. display: flex;
  20872. flex-direction: row;
  20873. flex-wrap: wrap;
  20874. align-items: center;
  20875. justify-content: flex-start;
  20876. }
  20877. .noWorksName,
  20878. .isWorksName,
  20879. .isWorksName2 {
  20880. background: #ddebf8;
  20881. color: #000;
  20882. width: 90px;
  20883. height: 25px;
  20884. text-align: center;
  20885. line-height: 25px;
  20886. border-radius: 4px;
  20887. margin: 10px 15px 10px 0;
  20888. white-space: nowrap;
  20889. overflow: hidden;
  20890. padding: 5px;
  20891. text-overflow: ellipsis;
  20892. cursor: pointer;
  20893. border: 1px solid #ddebf8;
  20894. }
  20895. .noWorksName {
  20896. background: #fff;
  20897. color: #0061ff;
  20898. border: 1px solid #0061ff;
  20899. }
  20900. .isWorksName2 {
  20901. width: 100px;
  20902. height: 40px;
  20903. line-height: 40px;
  20904. position: relative;
  20905. background: #dae6f9;
  20906. }
  20907. .isWorksName {
  20908. background: #e7ebf1 !important;
  20909. width: 100px;
  20910. height: 40px;
  20911. line-height: 40px;
  20912. position: relative;
  20913. color: #acb4bf;
  20914. border: 1px solid #cad1dc !important;
  20915. }
  20916. .isSelectName,
  20917. .noWorksName:hover {
  20918. background: #3383fa !important;
  20919. color: #fff !important;
  20920. border: 1px solid #3383fa !important;
  20921. }
  20922. .title {
  20923. background: #1e5cc9;
  20924. /* width: 98%; */
  20925. height: 45px;
  20926. color: #fff;
  20927. line-height: 45px;
  20928. padding-left: 20px;
  20929. box-sizing: border-box;
  20930. }
  20931. .textBox {
  20932. font-size: 20px;
  20933. width: 90%;
  20934. display: flex;
  20935. flex-direction: column;
  20936. align-items: center;
  20937. margin: 20px auto 0;
  20938. max-height: calc(100% - 75px);
  20939. overflow: auto;
  20940. }
  20941. .textContent {
  20942. font-size: 18px;
  20943. width: 95%;
  20944. max-width: 95%;
  20945. }
  20946. .answerBg {
  20947. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20948. background-size: 100% 100%;
  20949. width: 100%;
  20950. height: 100%;
  20951. color: #fff;
  20952. text-align: center;
  20953. display: flex;
  20954. flex-direction: column;
  20955. flex-wrap: nowrap;
  20956. align-items: center;
  20957. position: relative;
  20958. justify-content: center;
  20959. }
  20960. .answerBg > div:nth-child(1) {
  20961. /* font-size: 22px;
  20962. padding: 25px 0 10px; */
  20963. }
  20964. .answerContent {
  20965. width: 215px;
  20966. max-height: 60px;
  20967. word-break: break-all;
  20968. text-align: center;
  20969. /* white-space: nowrap; */
  20970. overflow: hidden;
  20971. text-overflow: ellipsis;
  20972. /* padding: 23px 0 0; */
  20973. -webkit-line-clamp: 3;
  20974. -webkit-box-orient: vertical;
  20975. display: -webkit-box;
  20976. font-size: 15px;
  20977. cursor: pointer;
  20978. }
  20979. .elist_input_box {
  20980. display: flex;
  20981. align-items: flex-start;
  20982. flex-wrap: nowrap;
  20983. padding: 10px 0 15px 30px;
  20984. flex-direction: column;
  20985. }
  20986. .elist_input {
  20987. /* width: 40%; */
  20988. width: 45%;
  20989. margin: 20px;
  20990. }
  20991. .elist_input .elist_input_box input {
  20992. font: inherit;
  20993. color: currentColor;
  20994. width: 200px;
  20995. padding: 8px 14px;
  20996. display: block;
  20997. min-width: 0;
  20998. outline: none;
  20999. border: 1px solid rgba(0, 0, 0, 0.23);
  21000. border-radius: 4px;
  21001. box-sizing: border-box;
  21002. background: #fff;
  21003. margin: 0 20px 0 0;
  21004. }
  21005. .elist_input .elist_input_box span {
  21006. height: 36px;
  21007. line-height: 36px;
  21008. color: rgb(82, 82, 82);
  21009. }
  21010. .elist_input .elist_input_box .remove {
  21011. height: 20px;
  21012. width: 20px;
  21013. background-size: 100% 100%;
  21014. background-position: unset;
  21015. margin-left: 5px;
  21016. }
  21017. .elist_input_box >>> .el-rate {
  21018. display: flex;
  21019. height: 36px;
  21020. align-items: center;
  21021. }
  21022. .elist_input_box .elist_inptu_text {
  21023. min-height: 50px;
  21024. /* width: 500px;
  21025. max-height: 150px; */
  21026. width: 100%;
  21027. line-height: 50px;
  21028. color: rgb(82, 82, 82);
  21029. overflow: auto;
  21030. text-indent: 5px;
  21031. background: #f7f6f9;
  21032. border-radius: 10px;
  21033. }
  21034. .elist_input_box .elist_inptu_text input {
  21035. width: 500px;
  21036. }
  21037. .elist_input_box >>> .el-rate__icon {
  21038. font-size: 24px;
  21039. }
  21040. .isClick {
  21041. background: #4d9def;
  21042. }
  21043. .bzBox {
  21044. display: flex;
  21045. flex-direction: row;
  21046. align-items: center;
  21047. }
  21048. .bzBox .yCss {
  21049. width: 7px;
  21050. height: 7px;
  21051. background: #fff;
  21052. margin: 0 16px 0 6px;
  21053. border-radius: 50%;
  21054. border: 5px solid #3681fc;
  21055. z-index: 99;
  21056. }
  21057. .bzBox > div:nth-child(2) {
  21058. font-size: 18px;
  21059. font-weight: bold;
  21060. color: #0e1e33;
  21061. }
  21062. .navTitile {
  21063. padding: 0 0px 0 15px;
  21064. font-size: 16px;
  21065. font-weight: bold;
  21066. color: #0e1e33;
  21067. height: 40px;
  21068. line-height: 40px;
  21069. }
  21070. .isTypeOne {
  21071. width: 240px;
  21072. height: 170px;
  21073. /* border: 1px solid #f8f8f8; */
  21074. border-radius: 10px;
  21075. box-shadow: 0 0 6px 1px #dfdada;
  21076. }
  21077. .e_add_top {
  21078. display: flex;
  21079. justify-content: space-between;
  21080. padding: 10px 20px;
  21081. border-radius: 3px;
  21082. background: #fff;
  21083. }
  21084. .e_add_title2 {
  21085. display: flex;
  21086. align-items: center;
  21087. }
  21088. .e_add_title2 span {
  21089. width: 40px;
  21090. }
  21091. .e_add_title {
  21092. display: flex;
  21093. align-items: center;
  21094. color: #b8b8b8;
  21095. font-size: 18px;
  21096. position: relative;
  21097. height: 40px;
  21098. width: 100%;
  21099. }
  21100. .e_add_title span {
  21101. margin-right: 10px;
  21102. }
  21103. .e_add_title .el_input {
  21104. width: 300px;
  21105. }
  21106. .e_add_title >>> .el-input__inner {
  21107. width: 400px;
  21108. }
  21109. .e_add_btn {
  21110. }
  21111. .e_add_content {
  21112. display: flex;
  21113. width: 100%;
  21114. max-width: 650px;
  21115. height: 550px;
  21116. }
  21117. .e_add_list {
  21118. background: #fff;
  21119. height: 500px;
  21120. width: 210px;
  21121. position: relative;
  21122. margin: 15px 5px 0 0;
  21123. flex-shrink: 0;
  21124. display: flex;
  21125. flex-direction: column;
  21126. }
  21127. .e_add_list_title {
  21128. font-size: 20px;
  21129. width: 100%;
  21130. box-sizing: border-box;
  21131. padding: 15px 40px;
  21132. text-align: center;
  21133. border-bottom: 1px solid #eaeaea;
  21134. position: relative;
  21135. display: flex;
  21136. align-items: center;
  21137. justify-content: center;
  21138. height: 57px;
  21139. background: #f6f6f6;
  21140. }
  21141. .e_add_list_title span {
  21142. overflow: hidden;
  21143. white-space: nowrap;
  21144. text-overflow: ellipsis;
  21145. }
  21146. .e_add_list_title img {
  21147. position: absolute;
  21148. right: 15px;
  21149. width: 25px;
  21150. cursor: pointer;
  21151. top: 50%;
  21152. transform: translateY(-50%);
  21153. }
  21154. .e_add_list_body {
  21155. height: calc(100% - 187px);
  21156. overflow: auto;
  21157. }
  21158. .e_add_list_child {
  21159. width: 100%;
  21160. display: flex;
  21161. align-items: center;
  21162. justify-content: center;
  21163. position: relative;
  21164. box-sizing: border-box;
  21165. padding: 15px 40px;
  21166. text-align: center;
  21167. }
  21168. .e_add_list_child span {
  21169. overflow: hidden;
  21170. white-space: nowrap;
  21171. text-overflow: ellipsis;
  21172. cursor: pointer;
  21173. }
  21174. .e_add_list_child img {
  21175. position: absolute;
  21176. right: 10px;
  21177. width: 21px;
  21178. cursor: pointer;
  21179. top: 50%;
  21180. transform: translateY(-50%);
  21181. }
  21182. .e_add_list_child + .e_add_list_child {
  21183. border-top: 1px solid #eaeaea;
  21184. }
  21185. .e_add_list_child .active {
  21186. color: #409eff;
  21187. }
  21188. .e_add_list_btn {
  21189. position: absolute;
  21190. bottom: 0;
  21191. height: 50px;
  21192. background: rgb(120, 120, 254);
  21193. width: 100%;
  21194. color: #fff;
  21195. font-size: 16px;
  21196. text-align: center;
  21197. line-height: 50px;
  21198. cursor: pointer;
  21199. }
  21200. .e_add_list_detail {
  21201. position: absolute;
  21202. bottom: 0;
  21203. height: 130px;
  21204. background: rgb(120, 120, 254);
  21205. width: 100%;
  21206. color: #fff;
  21207. font-size: 16px;
  21208. display: flex;
  21209. align-items: center;
  21210. justify-content: center;
  21211. }
  21212. .e_add_list_detail textarea {
  21213. height: 90%;
  21214. width: 95%;
  21215. border: none;
  21216. resize: none;
  21217. outline: none;
  21218. padding: 5px;
  21219. box-sizing: border-box;
  21220. }
  21221. .e_add_list_pbox {
  21222. width: 100%;
  21223. max-width: 650px;
  21224. /* height: 600px; */
  21225. }
  21226. .e_add_list_pbox_title {
  21227. height: 50px;
  21228. background: #fff;
  21229. display: flex;
  21230. align-items: center;
  21231. width: 100%;
  21232. box-sizing: border-box;
  21233. padding: 0 20px;
  21234. }
  21235. .type_title {
  21236. font-size: 18px;
  21237. font-weight: 700;
  21238. }
  21239. .type_content {
  21240. font-size: 16px;
  21241. /* margin-left: 30px; */
  21242. }
  21243. .type_content span + span {
  21244. margin-left: 20px;
  21245. }
  21246. .type_content span {
  21247. cursor: pointer;
  21248. padding-bottom: 5px;
  21249. box-sizing: border-box;
  21250. }
  21251. .type_content .active {
  21252. color: #409eff;
  21253. border-bottom: 2px solid #409eff;
  21254. }
  21255. .e_add_list_pbox_content {
  21256. height: calc(100% - 50px);
  21257. display: flex;
  21258. align-items: center;
  21259. width: 100%;
  21260. background: #fff;
  21261. }
  21262. .evaCss {
  21263. display: flex;
  21264. flex-direction: row;
  21265. flex-wrap: nowrap;
  21266. align-items: flex-start;
  21267. padding: 0 0 20px;
  21268. }
  21269. .cru_line {
  21270. position: absolute;
  21271. bottom: 0px;
  21272. transition: all 0.5s;
  21273. left: 0px;
  21274. width: 125px;
  21275. margin-left: -25px;
  21276. }
  21277. .isNoMessage {
  21278. width: 20%;
  21279. margin: 25% auto 0;
  21280. }
  21281. .isNoMessage > img {
  21282. width: 100%;
  21283. height: 100%;
  21284. }
  21285. .fullStyle >>> .el-dialog__body {
  21286. height: 100% !important;
  21287. }
  21288. .fullStyle >>> .el-dialog,
  21289. .fullStyle {
  21290. width: 100% !important;
  21291. max-width: 100% !important;
  21292. height: 100% !important;
  21293. margin: 0 !important;
  21294. }
  21295. .full_diy >>> .el-dialog {
  21296. margin: 0 !important;
  21297. height: 100%;
  21298. padding: 4px;
  21299. }
  21300. .full_diy >>> .el-dialog__body {
  21301. height: calc(100% - 100px);
  21302. }
  21303. .full_diy2 >>> .el-dialog__body {
  21304. height: calc(100% - 50px);
  21305. padding: 0;
  21306. }
  21307. .switchCss {
  21308. /* width: 100%; */
  21309. display: flex;
  21310. flex-direction: row;
  21311. flex-wrap: nowrap;
  21312. align-items: center;
  21313. /* justify-content: center; */
  21314. }
  21315. .isClickNav {
  21316. /* color: #499eef; */
  21317. color: #000;
  21318. }
  21319. .commentImg {
  21320. width: 25px;
  21321. height: 25px;
  21322. cursor: pointer;
  21323. }
  21324. .commentImg > img {
  21325. width: 100%;
  21326. height: 100%;
  21327. }
  21328. .comment {
  21329. background: #f9f9f9;
  21330. border-radius: 0 0 4px 4px;
  21331. display: flex;
  21332. flex-direction: row;
  21333. flex-wrap: nowrap;
  21334. align-items: center;
  21335. justify-content: flex-end;
  21336. height: 35px;
  21337. }
  21338. .commentList {
  21339. display: flex;
  21340. flex-direction: row;
  21341. flex-wrap: nowrap;
  21342. align-items: center;
  21343. justify-content: center;
  21344. align-content: center;
  21345. /* margin-left: 15px; */
  21346. /* margin-left: 8px; */
  21347. }
  21348. .scoreImg {
  21349. width: 17px;
  21350. height: 17px;
  21351. }
  21352. .studentDetail {
  21353. display: flex;
  21354. flex-direction: row;
  21355. flex-wrap: nowrap;
  21356. /* align-items: center; */
  21357. align-items: flex-start;
  21358. }
  21359. .tx {
  21360. width: 50px;
  21361. }
  21362. .tx > img {
  21363. width: 100%;
  21364. height: 100%;
  21365. }
  21366. .nameAndTime {
  21367. display: flex;
  21368. flex-direction: column;
  21369. flex-wrap: nowrap;
  21370. align-items: flex-start;
  21371. margin-left: 10px;
  21372. }
  21373. .worksAnswer {
  21374. color: #4078dd;
  21375. margin: 10px 0;
  21376. font-size: 16px;
  21377. position: relative;
  21378. }
  21379. .worksAnswer > img {
  21380. width: 500px;
  21381. height: 300px;
  21382. object-fit: contain;
  21383. margin: 0 auto;
  21384. display: block;
  21385. }
  21386. .commentTop {
  21387. border-bottom: 1px solid #eaeaea;
  21388. padding-bottom: 10px;
  21389. }
  21390. .commentBox {
  21391. padding-top: 15px;
  21392. }
  21393. .pl {
  21394. font-size: 18px;
  21395. }
  21396. .plPerson {
  21397. width: 100%;
  21398. }
  21399. .plName {
  21400. display: flex;
  21401. flex-direction: row;
  21402. flex-wrap: nowrap;
  21403. align-items: baseline;
  21404. color: #78787a;
  21405. width: 100%;
  21406. }
  21407. .deleteComment {
  21408. cursor: pointer;
  21409. margin-left: auto;
  21410. color: #237ade;
  21411. }
  21412. .plContent {
  21413. margin-top: 5px;
  21414. }
  21415. .evalCss {
  21416. background: #fff;
  21417. font-size: 18px;
  21418. }
  21419. .nav {
  21420. color: #9d9d9d;
  21421. padding: 5px 0 15px 20px;
  21422. }
  21423. .middleBox {
  21424. padding: 5px 0 15px 20px;
  21425. }
  21426. .pfBox {
  21427. padding-bottom: 30px;
  21428. }
  21429. .nameAndrate {
  21430. display: flex;
  21431. flex-direction: row;
  21432. flex-wrap: nowrap;
  21433. align-items: center;
  21434. padding-bottom: 10px;
  21435. height: 30px;
  21436. line-height: 30px;
  21437. }
  21438. .nameAndrate > div {
  21439. margin-left: 10px;
  21440. color: #000;
  21441. height: 30px;
  21442. }
  21443. .nameAndrate >>> .el-rate__icon {
  21444. font-size: 28px !important;
  21445. }
  21446. .pfBox > div:nth-child(2) {
  21447. background: #f7f6f9;
  21448. width: 400px;
  21449. min-height: 45px;
  21450. border-radius: 10px;
  21451. font-size: 16px;
  21452. display: flex;
  21453. flex-wrap: wrap;
  21454. align-items: center;
  21455. padding: 10px 20px;
  21456. box-sizing: border-box;
  21457. color: #000;
  21458. }
  21459. .bz {
  21460. display: flex;
  21461. flex-direction: row;
  21462. flex-wrap: nowrap;
  21463. align-items: flex-start;
  21464. }
  21465. .bz > div {
  21466. padding: 0 10px;
  21467. }
  21468. .select_box2_title {
  21469. background: #fff;
  21470. border-radius: 5px;
  21471. padding: 15px 10px;
  21472. box-sizing: border-box;
  21473. margin-bottom: 10px;
  21474. display: flex;
  21475. flex-direction: row;
  21476. flex-wrap: nowrap;
  21477. align-items: center;
  21478. }
  21479. .select_box2_title > div:nth-child(2) {
  21480. margin-left: 10px;
  21481. color: #c4c4c4;
  21482. }
  21483. .select_box2_box {
  21484. display: flex;
  21485. height: 500px;
  21486. }
  21487. .select_box2_img {
  21488. width: calc(100% - 310px);
  21489. height: 100%;
  21490. overflow: auto;
  21491. background: #fff;
  21492. border-radius: 5px;
  21493. }
  21494. .select_box2_img img {
  21495. width: 100%;
  21496. }
  21497. .select_box2_answer {
  21498. background: #fff;
  21499. margin-left: 10px;
  21500. border-radius: 5px;
  21501. width: 300px;
  21502. overflow: auto;
  21503. height: 90%;
  21504. display: flex;
  21505. flex-direction: column;
  21506. align-items: flex-start;
  21507. padding-top: 10px;
  21508. box-sizing: border-box;
  21509. position: relative;
  21510. }
  21511. .select_answer_title {
  21512. padding: 0 0 15px 20px;
  21513. color: #c4c4c4;
  21514. }
  21515. .select_box2_answer_box {
  21516. margin: 0 0 10px 20px;
  21517. width: 85%;
  21518. display: flex;
  21519. flex-direction: row;
  21520. flex-wrap: nowrap;
  21521. align-items: center;
  21522. }
  21523. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21524. color: #000;
  21525. }
  21526. .upAnswerCss {
  21527. position: absolute;
  21528. bottom: 15px;
  21529. right: 15px;
  21530. }
  21531. .upAnswerCss >>> .el-button {
  21532. width: 95px;
  21533. height: 35px;
  21534. line-height: 35px;
  21535. padding: 0;
  21536. }
  21537. .rightWidthCss {
  21538. width: 60%;
  21539. display: flex;
  21540. flex-direction: row;
  21541. align-items: flex-start;
  21542. }
  21543. .rightAnswer {
  21544. display: flex;
  21545. flex-direction: row;
  21546. flex-wrap: nowrap;
  21547. align-items: center;
  21548. color: red;
  21549. margin-bottom: 31px;
  21550. }
  21551. .rightAnswerCss {
  21552. display: flex;
  21553. flex-direction: column;
  21554. flex-wrap: nowrap;
  21555. padding-top: 60px;
  21556. }
  21557. .blueCss {
  21558. color: #767de1;
  21559. margin-left: 10px;
  21560. }
  21561. .redCss {
  21562. color: red;
  21563. }
  21564. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21565. color: rgb(0 123 255) !important;
  21566. }
  21567. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21568. color: rgb(0 123 255) !important;
  21569. }
  21570. .zuoyeYulan {
  21571. padding-top: 0;
  21572. font-size: 18px;
  21573. display: flex;
  21574. align-items: flex-end;
  21575. }
  21576. .buttonA {
  21577. margin-left: 10px;
  21578. padding: 0;
  21579. }
  21580. .displayBox {
  21581. margin-bottom: 10px;
  21582. display: block;
  21583. border-bottom: 3px solid #eee;
  21584. display: flex;
  21585. align-items: center;
  21586. }
  21587. .easy_comment {
  21588. width: calc(100% - 90px);
  21589. margin-left: 10px;
  21590. display: flex;
  21591. flex-wrap: wrap;
  21592. }
  21593. .easy_comment > div {
  21594. border: 1px solid #4a4a4a;
  21595. color: #666;
  21596. border-radius: 15px;
  21597. padding: 5px 10px;
  21598. font-size: 16px;
  21599. margin-bottom: 10px;
  21600. margin-right: 5px;
  21601. cursor: pointer;
  21602. }
  21603. .easy_comment div:hover {
  21604. border: 1px solid #f7ba2a;
  21605. color: #c69217;
  21606. }
  21607. .xuan_right_box {
  21608. padding: 10px 0;
  21609. background: #f0f4fa;
  21610. margin: 0 15px 0 25px;
  21611. border-bottom-left-radius: 5px;
  21612. border-bottom-right-radius: 5px;
  21613. width: 91.5%;
  21614. }
  21615. .tool_right_box {
  21616. display: flex;
  21617. align-items: center;
  21618. }
  21619. .tool_right_box + .tool_right_box {
  21620. margin-top: 10px;
  21621. }
  21622. .right_box_xuan {
  21623. border-radius: 5px;
  21624. padding: 5px;
  21625. margin-left: 10px;
  21626. min-width: 85px;
  21627. background: #fff;
  21628. color: #0061ff;
  21629. border: 1px solid #0061ff;
  21630. font-size: 14px;
  21631. }
  21632. .pButton:hover {
  21633. opacity: 1 !important;
  21634. }
  21635. .pButton {
  21636. position: fixed;
  21637. text-align: center;
  21638. cursor: pointer;
  21639. z-index: 999;
  21640. right: 20px;
  21641. top: 110px;
  21642. width: 50px;
  21643. height: 50px;
  21644. display: flex;
  21645. align-items: center;
  21646. justify-content: center;
  21647. border-radius: 5px;
  21648. }
  21649. .pzClass {
  21650. width: calc(100% - 340px);
  21651. }
  21652. .newDialogCss {
  21653. /* position: fixed;
  21654. right: 5%;
  21655. top: 50%;
  21656. width: 340px;
  21657. transform: translateY(-50%);
  21658. height: 60%;
  21659. box-shadow: 0px 0 8px 0px #555555;
  21660. border-radius: 15px;
  21661. z-index: 999; */
  21662. position: fixed;
  21663. right: 20px;
  21664. top: 101px;
  21665. width: 330px;
  21666. height: calc(100% - 80px);
  21667. z-index: 999;
  21668. background: #fff;
  21669. border-top-right-radius: 0px;
  21670. border-bottom-right-radius: 0px;
  21671. overflow: hidden;
  21672. }
  21673. .pzTop {
  21674. color: #fff;
  21675. background: #000;
  21676. display: flex;
  21677. flex-direction: row;
  21678. flex-wrap: nowrap;
  21679. align-items: center;
  21680. justify-content: space-between;
  21681. height: 40px;
  21682. border-radius: 15px 15px 0 0;
  21683. user-select: none;
  21684. }
  21685. .pzTop2 .checkbox {
  21686. display: flex;
  21687. align-items: center;
  21688. padding: 5px 30px;
  21689. flex: 0 0 auto;
  21690. font-weight: bold;
  21691. border-bottom: 1px solid #eee;
  21692. justify-content: space-between;
  21693. }
  21694. .pzTop2 .check {
  21695. text-align: center;
  21696. cursor: pointer;
  21697. box-sizing: border-box;
  21698. display: flex;
  21699. }
  21700. .pzTop2 img {
  21701. width: 25px;
  21702. cursor: pointer;
  21703. }
  21704. .pzTop > div:nth-child(1) {
  21705. padding-left: 10px;
  21706. }
  21707. .pzTop > div:nth-child(2) {
  21708. width: 15px;
  21709. height: 15px;
  21710. padding-right: 10px;
  21711. cursor: pointer;
  21712. }
  21713. .pzTop > div:nth-child(2) > img {
  21714. width: 100%;
  21715. height: 100%;
  21716. }
  21717. .pzBox,
  21718. .noPzBox {
  21719. height: calc(100% - 60px);
  21720. /* background: #ededed; */
  21721. background: #fff;
  21722. /* border-radius: 0 0 15px 15px; */
  21723. }
  21724. .noPzBox {
  21725. display: flex;
  21726. flex-direction: column;
  21727. flex-wrap: nowrap;
  21728. justify-content: center;
  21729. align-items: center;
  21730. }
  21731. .pzList {
  21732. background: #f7f7f7;
  21733. width: 90%;
  21734. margin: 0 auto 15px;
  21735. border-radius: 5px;
  21736. }
  21737. .pzNavTop {
  21738. display: flex;
  21739. flex-direction: row;
  21740. flex-wrap: nowrap;
  21741. padding: 10px 10px 0 10px;
  21742. align-items: center;
  21743. }
  21744. .pzDelete {
  21745. cursor: pointer;
  21746. margin-left: auto;
  21747. font-size: 14px;
  21748. color: #afafaf;
  21749. }
  21750. .pzNavTop > div:nth-child(1) {
  21751. background: #3760af;
  21752. width: 35px;
  21753. height: 35px;
  21754. color: #fff;
  21755. text-align: center;
  21756. line-height: 35px;
  21757. border-radius: 50%;
  21758. font-size: 14px;
  21759. }
  21760. .pzNavTop > div:nth-child(2) {
  21761. font-size: 18px;
  21762. color: #959595;
  21763. margin-left: 5px;
  21764. }
  21765. .pzContent {
  21766. padding: 10px;
  21767. word-break: break-word;
  21768. }
  21769. .pzContent audio {
  21770. width: 100%;
  21771. }
  21772. .pzContent audio::-webkit-media-controls-panel {
  21773. background: #fff;
  21774. }
  21775. .pzContent >>> img {
  21776. max-width: 100%;
  21777. }
  21778. .pzListBox {
  21779. padding-top: 15px;
  21780. height: calc(100% - 110px);
  21781. overflow: auto;
  21782. }
  21783. .addPzButton {
  21784. position: relative;
  21785. margin-top: 3px;
  21786. width: 100%;
  21787. }
  21788. .addPzButton .img1 {
  21789. position: absolute;
  21790. top: 50%;
  21791. right: 25px;
  21792. transform: translateY(-50%);
  21793. height: 100%;
  21794. display: flex;
  21795. align-items: center;
  21796. }
  21797. .addPzButton .img1 div {
  21798. display: flex;
  21799. }
  21800. .addPzButton .img1 div img {
  21801. width: 28px;
  21802. margin-left: 10px;
  21803. cursor: pointer;
  21804. }
  21805. .addPzButton .img1 div span {
  21806. font-size: 14px;
  21807. margin: 4px 0 0 3px;
  21808. color: #afafaf;
  21809. }
  21810. .addPz {
  21811. background: #4b79ce;
  21812. width: 100px;
  21813. color: #fff;
  21814. font-size: 12px;
  21815. height: 30px;
  21816. margin: 0 auto;
  21817. text-align: center;
  21818. line-height: 30px;
  21819. border-radius: 10px;
  21820. cursor: pointer;
  21821. }
  21822. .addDialogCss {
  21823. position: fixed;
  21824. width: 600px;
  21825. height: 70%;
  21826. min-height: 450px;
  21827. box-shadow: 0px 0 8px 0px #555555;
  21828. border-radius: 15px;
  21829. z-index: 999;
  21830. left: 50%;
  21831. top: 50%;
  21832. margin: -18% 0 0 -300px;
  21833. }
  21834. .teacherPz {
  21835. display: flex;
  21836. flex-direction: row;
  21837. align-items: center;
  21838. flex-wrap: nowrap;
  21839. }
  21840. .teacherPzImg {
  21841. width: 30px;
  21842. height: 30px;
  21843. }
  21844. .teacherPzImg > img {
  21845. width: 100%;
  21846. height: 100%;
  21847. }
  21848. .addPzBox {
  21849. height: calc(100% - 40px);
  21850. background: #ededed;
  21851. border-bottom-left-radius: 15px;
  21852. border-bottom-right-radius: 15px;
  21853. }
  21854. .pzAudioClass {
  21855. margin: 15px 14px;
  21856. background: #fff;
  21857. height: 100%;
  21858. display: flex;
  21859. justify-content: center;
  21860. align-items: center;
  21861. }
  21862. .pzConText {
  21863. width: 95%;
  21864. height: 100%;
  21865. margin: 10px auto 0;
  21866. border: none;
  21867. background: #fff;
  21868. border-radius: 0px;
  21869. }
  21870. .pzConText >>> .text {
  21871. height: calc(100% - 82px);
  21872. }
  21873. .addTextCss {
  21874. background: #4b79ce;
  21875. width: 80px;
  21876. height: 30px;
  21877. text-align: center;
  21878. color: #fff;
  21879. line-height: 30px;
  21880. border-radius: 10px;
  21881. margin: 10px auto 0;
  21882. cursor: pointer;
  21883. }
  21884. .pzConText:focus-visible {
  21885. border: none !important;
  21886. }
  21887. .maxWidth {
  21888. width: 1000px;
  21889. }
  21890. .noPz {
  21891. width: 150px;
  21892. margin: 0 auto 20%;
  21893. }
  21894. .noPz > img {
  21895. width: 100%;
  21896. height: 100%;
  21897. }
  21898. .timeAndReply {
  21899. display: flex;
  21900. flex-direction: row;
  21901. flex-wrap: nowrap;
  21902. justify-content: space-between;
  21903. align-items: center;
  21904. font-size: 14px;
  21905. box-sizing: border-box;
  21906. padding: 0 10px 10px 0px;
  21907. }
  21908. .timeAndReply .time {
  21909. color: #bfbfbf;
  21910. padding: 0 0 0 10px;
  21911. box-sizing: border-box;
  21912. }
  21913. .timeAndReply > div:last-child {
  21914. cursor: pointer;
  21915. color: #777;
  21916. }
  21917. /* table 样式 */
  21918. .cont >>> table {
  21919. border-top: 1px solid #ccc;
  21920. border-left: 1px solid #ccc;
  21921. }
  21922. .cont >>> table td,
  21923. .cont >>> table th {
  21924. border-bottom: 1px solid #ccc;
  21925. border-right: 1px solid #ccc;
  21926. /* padding: 20px 5px; */
  21927. padding: 5px 10px;
  21928. max-width: 0px;
  21929. height: 30px;
  21930. vertical-align: baseline;
  21931. box-sizing: border-box;
  21932. }
  21933. .cont >>> table th {
  21934. border-bottom: 2px solid #ccc;
  21935. text-align: center;
  21936. }
  21937. /* blockquote 样式 */
  21938. .cont >>> blockquote {
  21939. display: block;
  21940. border-left: 8px solid #d0e5f2;
  21941. padding: 5px 10px;
  21942. margin: 10px 0;
  21943. line-height: 1.4;
  21944. font-size: 100%;
  21945. background-color: #f1f1f1;
  21946. }
  21947. /* code 样式 */
  21948. .cont >>> code {
  21949. display: inline-block;
  21950. /* *display: inline; */
  21951. zoom: 1;
  21952. background-color: #f1f1f1;
  21953. border-radius: 3px;
  21954. padding: 3px 5px;
  21955. margin: 0 3px;
  21956. }
  21957. .cont >>> pre code {
  21958. display: block;
  21959. }
  21960. /* ul ol 样式 */
  21961. .cont >>> ul,
  21962. ol {
  21963. margin: 10px 0 10px 20px;
  21964. }
  21965. .addPzCheck {
  21966. display: flex;
  21967. flex-direction: row;
  21968. flex-wrap: nowrap;
  21969. padding: 10px 15px 0;
  21970. }
  21971. .addPzCheck span {
  21972. cursor: pointer;
  21973. padding-bottom: 5px;
  21974. font-weight: bold;
  21975. }
  21976. .addPzCheck span + span {
  21977. margin-left: 10px;
  21978. }
  21979. .addPzCheck .isChooseActive {
  21980. color: #3e88f4;
  21981. border-bottom: 2px solid #2f80f3;
  21982. }
  21983. /* code 样式 */
  21984. .cont {
  21985. /* -webkit-user-modify: read-write; */
  21986. overflow-wrap: break-word;
  21987. -webkit-line-break: after-white-space;
  21988. }
  21989. .scoreBox,
  21990. .scoreDetailBox {
  21991. display: flex;
  21992. align-items: center;
  21993. justify-content: flex-start;
  21994. margin-top: 20px;
  21995. font-size: 18px;
  21996. width: 100%;
  21997. }
  21998. .scoreBox .t,
  21999. .scoreDetailBox .t {
  22000. margin-right: 10px;
  22001. width: 100px;
  22002. text-align: right;
  22003. }
  22004. .scoreDetailBox {
  22005. align-items: flex-start;
  22006. }
  22007. .scoreDetailBox >>> .el-textarea {
  22008. width: calc(100% - 200px);
  22009. }
  22010. .scoreBox >>> .el-input {
  22011. width: 130px;
  22012. font-size: 38px;
  22013. }
  22014. .scoreBox >>> .el-input__inner {
  22015. height: 60px;
  22016. }
  22017. .answerScore {
  22018. position: absolute;
  22019. top: 10px;
  22020. right: 10px;
  22021. background: #0000008f;
  22022. border-radius: 5px;
  22023. padding: 3px 5px;
  22024. font-size: 14px;
  22025. color: #fff;
  22026. cursor: pointer;
  22027. }
  22028. .open_box .switch_box {
  22029. width: 100%;
  22030. margin: 0 auto;
  22031. display: flex;
  22032. justify-content: space-between;
  22033. }
  22034. .open_box .switch_box + .switch_box {
  22035. margin-top: 10px;
  22036. }
  22037. .deleteImg,.deleteImg1 {
  22038. width: 25px !important;
  22039. height: 25px !important;
  22040. cursor: pointer;
  22041. position: absolute;
  22042. top: 10px;
  22043. right: 10px;
  22044. }
  22045. .deleteImg2 {
  22046. width: 23px !important;
  22047. height: 23px !important;
  22048. top: 5px;
  22049. right: 5px;
  22050. }
  22051. .deleteImg1{
  22052. width: 23px !important;
  22053. height: 23px !important;
  22054. top: 5px !important;
  22055. right: 30px !important;
  22056. }
  22057. .rightW {
  22058. right: 40px;
  22059. }
  22060. .drawPBox {
  22061. display: flex;
  22062. flex-direction: column;
  22063. position: relative;
  22064. }
  22065. .drawPBox span {
  22066. font-size: 18px;
  22067. color: #606266;
  22068. padding-bottom: 10px;
  22069. margin: 10px 0;
  22070. border-bottom: 1px solid #eaeaea;
  22071. }
  22072. .drawPBox img {
  22073. width: 500px;
  22074. height: 300px;
  22075. object-fit: contain;
  22076. cursor: pointer;
  22077. margin: 0 auto;
  22078. }
  22079. .sentenBox {
  22080. background: #fff;
  22081. height: 450px;
  22082. overflow: auto;
  22083. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22084. background-position: 102%;
  22085. background-repeat: no-repeat;
  22086. background-size: 60%;
  22087. }
  22088. .addSen {
  22089. background: #409efe;
  22090. width: 90px;
  22091. color: #fff;
  22092. height: 35px;
  22093. text-align: center;
  22094. line-height: 35px;
  22095. border-radius: 5px;
  22096. float: right;
  22097. margin: 10px 20px 0 0;
  22098. cursor: pointer;
  22099. }
  22100. .sentenTop {
  22101. display: flex;
  22102. flex-direction: row;
  22103. flex-wrap: nowrap;
  22104. align-items: center;
  22105. padding: 55px 0 0 20px;
  22106. box-sizing: border-box;
  22107. }
  22108. .sentenTop > div:nth-child(2) {
  22109. width: 300px;
  22110. margin: 0 15px;
  22111. }
  22112. .sentenTop > div:nth-child(3) {
  22113. background: #409efe;
  22114. color: #fff;
  22115. width: 65px;
  22116. height: 35px;
  22117. text-align: center;
  22118. line-height: 35px;
  22119. border-radius: 5px;
  22120. cursor: pointer;
  22121. }
  22122. .cardList,
  22123. .cardList1 {
  22124. padding: 10px 0 10px 0;
  22125. display: flex;
  22126. flex-direction: row;
  22127. flex-wrap: wrap;
  22128. align-items: center;
  22129. box-sizing: border-box;
  22130. border-bottom: 1px solid #f4f4f4;
  22131. width: 98%;
  22132. margin: 0 auto;
  22133. min-width: 60%;
  22134. max-width: 85%;
  22135. }
  22136. .cardList1 {
  22137. padding: 10px 0 10px 10px !important;
  22138. margin: 0 !important;
  22139. }
  22140. .cardBox {
  22141. display: flex;
  22142. flex-direction: row;
  22143. flex-wrap: wrap;
  22144. align-items: center;
  22145. align-content: center;
  22146. }
  22147. .cardBox > div {
  22148. margin-bottom: 10px;
  22149. }
  22150. .isCard,
  22151. .isChooseCard,
  22152. .noCard,
  22153. .isCard1 {
  22154. width: 130px;
  22155. height: 60px;
  22156. text-align: center;
  22157. line-height: 60px;
  22158. font-size: 20px;
  22159. cursor: pointer;
  22160. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  22161. background-size: cover;
  22162. transition: all 2s;
  22163. margin-right: 20px;
  22164. }
  22165. .isCard > div,
  22166. .noCard > div,
  22167. .isCard1 > div {
  22168. white-space: nowrap;
  22169. overflow: hidden;
  22170. text-overflow: ellipsis;
  22171. width: 75%;
  22172. margin: 0 auto;
  22173. }
  22174. .noCard {
  22175. background-image: none;
  22176. }
  22177. .isCard1 {
  22178. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22179. }
  22180. .isChooseCard {
  22181. background-image: none;
  22182. border: 1px dashed #b9b9b9;
  22183. border-radius: 10px;
  22184. }
  22185. .card {
  22186. width: 130px;
  22187. height: 60px;
  22188. }
  22189. .card > img {
  22190. width: 100%;
  22191. height: 100%;
  22192. }
  22193. .rightCardBox {
  22194. margin: 10px 0 0 10px;
  22195. }
  22196. .rightCardBox > div:nth-child(1) {
  22197. margin-bottom: 10px;
  22198. }
  22199. .cardCss {
  22200. display: flex;
  22201. flex-direction: column;
  22202. flex-wrap: nowrap;
  22203. align-items: center;
  22204. border-bottom: 3px solid #b4c3d3;
  22205. padding: 0 0 5px 0;
  22206. margin-right: 10px;
  22207. }
  22208. .cardCss > div:nth-child(2) {
  22209. background: #5b7b9d;
  22210. color: #fff;
  22211. width: 20px;
  22212. height: 20px;
  22213. border-radius: 50%;
  22214. text-align: center;
  22215. line-height: 20px;
  22216. }
  22217. .isWrong {
  22218. display: flex;
  22219. flex-direction: row;
  22220. flex-wrap: nowrap;
  22221. align-content: center;
  22222. align-items: center;
  22223. }
  22224. .answerRight {
  22225. width: 25%;
  22226. }
  22227. .isTj {
  22228. display: flex;
  22229. flex-direction: row;
  22230. flex-wrap: nowrap;
  22231. align-items: center;
  22232. }
  22233. .isTj > div:nth-child(2) {
  22234. color: #727070;
  22235. margin-left: 10px;
  22236. }
  22237. .isTjImg {
  22238. width: 30px;
  22239. height: 30px;
  22240. }
  22241. .isTjImg > img {
  22242. width: 100%;
  22243. height: 100%;
  22244. }
  22245. .cardAnswerBox {
  22246. font-size: 18px;
  22247. width: 97%;
  22248. border: 5px;
  22249. padding: 0;
  22250. border-radius: 5px;
  22251. margin: 10px auto;
  22252. word-break: break-word;
  22253. }
  22254. .w_name {
  22255. margin-bottom: 10px;
  22256. }
  22257. .w_name span {
  22258. font-size: 16px;
  22259. }
  22260. .w_teachert {
  22261. width: 50px !important;
  22262. position: absolute;
  22263. height: auto !important;
  22264. z-index: 10;
  22265. right: 25px;
  22266. top: -25px;
  22267. }
  22268. .group_workBox {
  22269. }
  22270. .group_workBox + .group_workBox {
  22271. margin-top: 20px;
  22272. }
  22273. .group_box {
  22274. padding-bottom: 20px;
  22275. border-bottom: 2px solid #f0f0f0;
  22276. margin-top: 10px;
  22277. }
  22278. .group_title {
  22279. display: flex;
  22280. align-items: center;
  22281. justify-content: space-between;
  22282. width: 95%;
  22283. }
  22284. .group_name {
  22285. background-image: url(../../assets/icon/groupN.png);
  22286. width: 220px;
  22287. background-size: 100% 100%;
  22288. height: 67px;
  22289. padding: 0 20px 0 43px;
  22290. box-sizing: border-box;
  22291. line-height: 63px;
  22292. color: #fff;
  22293. overflow: hidden;
  22294. white-space: nowrap;
  22295. text-overflow: ellipsis;
  22296. }
  22297. .group_work {
  22298. width: 100%;
  22299. padding: 0 10px;
  22300. box-sizing: border-box;
  22301. display: flex;
  22302. flex-wrap: wrap;
  22303. }
  22304. .g_d_box {
  22305. display: flex;
  22306. flex-flow: wrap;
  22307. justify-content: space-around;
  22308. }
  22309. .g_d_box .isChair {
  22310. background-image: url(../../assets/avatar.png) !important;
  22311. }
  22312. .g_d_group {
  22313. width: 500px;
  22314. margin-bottom: 80px;
  22315. }
  22316. .g_d_group_chair {
  22317. display: flex;
  22318. align-items: center;
  22319. justify-content: center;
  22320. }
  22321. .g_d_group_chair > div + div {
  22322. margin-left: 30px;
  22323. }
  22324. .g_d_group_chair > div,
  22325. .g_d_group_chair2 > div {
  22326. display: flex;
  22327. flex-direction: column;
  22328. align-items: center;
  22329. }
  22330. .g_d_group_chair > div > span:nth-child(1),
  22331. .g_d_group_chair2 > div > span:nth-child(1) {
  22332. background-image: url(../../assets/icon/chair.png);
  22333. width: 50px;
  22334. height: 50px;
  22335. display: block;
  22336. background-size: 100% 100%;
  22337. }
  22338. .g_d_group_tableBox {
  22339. display: flex;
  22340. align-items: center;
  22341. justify-content: center;
  22342. }
  22343. .g_d_group_chair2 {
  22344. display: flex;
  22345. flex-direction: column;
  22346. align-items: center;
  22347. justify-content: center;
  22348. }
  22349. .g_d_group_chair2 > div + div {
  22350. margin-top: 10px;
  22351. }
  22352. .g_d_group_table {
  22353. background-image: url(../../assets/icon/groupBg.png);
  22354. width: 354px;
  22355. height: 196px;
  22356. background-size: 100% 100%;
  22357. display: flex;
  22358. align-items: center;
  22359. justify-content: center;
  22360. flex-direction: column;
  22361. color: #fff;
  22362. }
  22363. .g_d_group_table > div:nth-child(1) {
  22364. font-size: 24px;
  22365. margin-bottom: 5px;
  22366. }
  22367. .g_d_group_table > div:nth-child(2) div {
  22368. cursor: pointer;
  22369. background: #2e77bf;
  22370. padding: 4px 10px;
  22371. border-radius: 5px;
  22372. }
  22373. .groupBox {
  22374. }
  22375. .groupContent + .groupContent {
  22376. margin-top: 30px;
  22377. }
  22378. .groupTitle {
  22379. font-size: 24px;
  22380. color: rgb(80, 80, 80);
  22381. margin-bottom: 20px;
  22382. }
  22383. .groupName {
  22384. display: flex;
  22385. align-items: center;
  22386. }
  22387. .groupn {
  22388. font-size: 15px;
  22389. margin-right: 10px;
  22390. }
  22391. .groupName + .groupName {
  22392. margin-top: 15px;
  22393. }
  22394. .groupBtn {
  22395. margin-left: 10px;
  22396. }
  22397. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22398. text-align: left;
  22399. }
  22400. .g_d_btnBox {
  22401. display: flex;
  22402. justify-content: flex-end;
  22403. align-items: center;
  22404. margin-bottom: 20px;
  22405. }
  22406. .updateChair {
  22407. position: relative;
  22408. }
  22409. .updateChairBtn {
  22410. position: absolute;
  22411. width: 50px;
  22412. height: 50px;
  22413. overflow: hidden;
  22414. /* display: flex; */
  22415. align-items: center;
  22416. justify-content: center;
  22417. background: #00000087;
  22418. color: #fff;
  22419. border-radius: 50px;
  22420. display: none;
  22421. cursor: pointer;
  22422. }
  22423. .updateChair:hover .updateChairBtn {
  22424. display: flex;
  22425. }
  22426. .group_staic_box {
  22427. display: flex;
  22428. padding: 30px 40px 10px;
  22429. flex-wrap: wrap;
  22430. }
  22431. .group_staic {
  22432. /* width: 50%; */
  22433. margin-bottom: 20px;
  22434. display: flex;
  22435. align-items: center;
  22436. }
  22437. .group_staic span:nth-child(1) {
  22438. width: 150px;
  22439. text-align: right;
  22440. margin-right: 15px;
  22441. }
  22442. .group_staic span:nth-child(2) {
  22443. background: rgb(0 123 255);
  22444. color: #fff;
  22445. border-radius: 5px;
  22446. padding: 5px;
  22447. }
  22448. .codeFileBox {
  22449. height: 300px;
  22450. background: #fff;
  22451. display: flex;
  22452. align-items: center;
  22453. justify-content: center;
  22454. }
  22455. .codeFileBox img {
  22456. width: 200px;
  22457. margin: 0;
  22458. height: auto;
  22459. }
  22460. .codeFileBox div {
  22461. background: rgb(80, 142, 226);
  22462. color: #fff;
  22463. padding: 10px 20px;
  22464. border-radius: 25px;
  22465. cursor: pointer;
  22466. margin-left: 15px;
  22467. }
  22468. .radioBox {
  22469. display: flex;
  22470. flex-direction: column;
  22471. flex-wrap: nowrap;
  22472. align-items: flex-start;
  22473. }
  22474. .radioBox > div {
  22475. margin: 10px 0 0 10px;
  22476. }
  22477. /* .radioBox >>> .el-radio__input,
  22478. .radioBox >>> .el-checkbox__inner {
  22479. margin-left: 10px;
  22480. } */
  22481. .radioBox >>> .el-radio__label,
  22482. .radioBox >>> .el-checkbox__label {
  22483. display: flex;
  22484. align-items: center;
  22485. width: 100%;
  22486. }
  22487. .radioBox >>> .el-radio__label > span {
  22488. width: 100%;
  22489. display: -webkit-box;
  22490. overflow: hidden;
  22491. white-space: normal !important;
  22492. text-overflow: ellipsis;
  22493. word-wrap: break-word;
  22494. }
  22495. .inImg {
  22496. width: 100px;
  22497. cursor: pointer;
  22498. }
  22499. .inImg > img {
  22500. width: 100%;
  22501. height: 100%;
  22502. object-fit: cover;
  22503. }
  22504. .timuImgBox {
  22505. margin: 10px 0;
  22506. display: flex;
  22507. flex-direction: column;
  22508. flex-wrap: wrap;
  22509. align-items: flex-start;
  22510. }
  22511. .timuImg {
  22512. width: 150px;
  22513. margin: 5px 0;
  22514. cursor: pointer;
  22515. }
  22516. .timuImg > img {
  22517. width: 100%;
  22518. height: 100%;
  22519. object-fit: cover;
  22520. }
  22521. .worksTop {
  22522. display: flex;
  22523. flex-direction: row;
  22524. align-items: flex-end;
  22525. }
  22526. .worksTitle{
  22527. display: flex;
  22528. flex-direction: row;
  22529. flex-wrap: nowrap;
  22530. align-items: center;
  22531. }
  22532. .worksTitle::before,.worksTop::before{
  22533. content: '';
  22534. display: block;
  22535. width: 3px;
  22536. height: 20px;
  22537. background: #0061FF;
  22538. border-radius: 3px;
  22539. margin: 0 5px 0 0;
  22540. }
  22541. .corOpen {
  22542. margin: 0 0 0 10px;
  22543. font-size: 14px;
  22544. cursor: pointer;
  22545. color: #505050;
  22546. }
  22547. .corOpen:hover {
  22548. color: #499eef;
  22549. }
  22550. .navCorOpenBox {
  22551. display: flex;
  22552. flex-direction: row;
  22553. align-items: center;
  22554. justify-content: space-between;
  22555. height: 55px;
  22556. background: #ffffff;
  22557. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22558. border-radius: 8px 8px 0px 0px;
  22559. z-index: 9;
  22560. position: relative;
  22561. }
  22562. .navCorOpen {
  22563. padding-right: 15px;
  22564. cursor: pointer;
  22565. width: 45px;
  22566. display: flex;
  22567. }
  22568. .navCorOpen > img {
  22569. width: 100%;
  22570. height: 100%;
  22571. }
  22572. .mlImg {
  22573. width: 40px !important;
  22574. min-width: 40px;
  22575. cursor: pointer;
  22576. transform: rotate(180deg);
  22577. }
  22578. .mlImg > img {
  22579. width: 100%;
  22580. height: 100%;
  22581. }
  22582. .navLeftCss {
  22583. width: 100% !important;
  22584. left: 0 !important;
  22585. }
  22586. .isContentCss {
  22587. width: 100% !important;
  22588. }
  22589. .isAllWidth {
  22590. width: 100% !important;
  22591. }
  22592. .group_switch {
  22593. margin-right: 10px;
  22594. height: 30px;
  22595. display: flex;
  22596. align-items: center;
  22597. }
  22598. .group_switch > span {
  22599. margin-right: 5px;
  22600. }
  22601. .fileC_box {
  22602. padding-top: 15px;
  22603. }
  22604. .fileC_box > .fileC_title {
  22605. padding: 10px 5px 14px 10px;
  22606. border-top: 1px solid #cad1dc;
  22607. font-size: 14px;
  22608. font-weight: 400;
  22609. color: #cad1dc;
  22610. width: calc(100% - 20px);
  22611. margin: 0 auto;
  22612. box-sizing: border-box;
  22613. }
  22614. .pl_select_box {
  22615. height: 40px;
  22616. line-height: 40px;
  22617. width: 100%;
  22618. cursor: pointer;
  22619. padding: 0 20px;
  22620. box-sizing: border-box;
  22621. border-radius: 5px;
  22622. border: 1px solid #d6d6d6;
  22623. white-space: nowrap;
  22624. overflow: hidden;
  22625. text-overflow: ellipsis;
  22626. background: #fff;
  22627. text-align: left;
  22628. }
  22629. .newButton {
  22630. width: 102px;
  22631. height: 36px;
  22632. background: #e7ebf1;
  22633. border-radius: 4px;
  22634. color: #0e1e33;
  22635. font-weight: 400;
  22636. font-size: 14px;
  22637. border: none;
  22638. float: right;
  22639. margin-left: 10px;
  22640. }
  22641. .el-table >>> .even_row {
  22642. background-color: #f0f4fa;
  22643. }
  22644. .stageBoxCss,
  22645. .stageBoxIsCss {
  22646. display: flex;
  22647. flex-direction: row;
  22648. flex-wrap: nowrap;
  22649. align-items: center;
  22650. height: 50px;
  22651. border-bottom: 1px solid #e2f5fc;
  22652. cursor: pointer;
  22653. width: 100%;
  22654. }
  22655. .stageBoxIsCss {
  22656. background: #0061ff;
  22657. color: #fff;
  22658. border-radius: 8px;
  22659. }
  22660. .stageItemTitle {
  22661. display: flex;
  22662. flex-direction: row;
  22663. flex-wrap: nowrap;
  22664. align-items: center;
  22665. margin-left: 15px;
  22666. width: calc(100% - 50px);
  22667. }
  22668. .stageNav{
  22669. /* font-weight: bold; */
  22670. }
  22671. .stageItemTitle > div:first-child {
  22672. min-width: 55px;
  22673. }
  22674. .stageItemTitle > div:last-child {
  22675. max-width: 242px;
  22676. white-space: nowrap;
  22677. overflow: hidden;
  22678. text-overflow: ellipsis;
  22679. word-break: break-word;
  22680. width: calc(100% - 55px);
  22681. }
  22682. .closeTri,
  22683. .closeTri1 {
  22684. min-width: 15px;
  22685. width: 15px;
  22686. height: 15px;
  22687. transition: all .5s;
  22688. }
  22689. .closeTri1 {
  22690. padding-left: 10px;
  22691. cursor: pointer;
  22692. }
  22693. .closeTri > img,
  22694. .closeTri1 > img {
  22695. width: 100%;
  22696. height: 100%;
  22697. /* transition: all .5s; */
  22698. }
  22699. .noToolBlue {
  22700. min-width: 10px;
  22701. width: 10px;
  22702. height: 10px;
  22703. background: #0061ff;
  22704. border-radius: 50%;
  22705. margin-left: 13px;
  22706. }
  22707. .stageChild,
  22708. .toolChild {
  22709. height: 0;
  22710. overflow: hidden;
  22711. transition: all 0.5s;
  22712. }
  22713. .toolChild {
  22714. /* margin: 0 0 0 17px;
  22715. padding: 0 0 0 20px;
  22716. border-left: 1px solid #d7d7d7; */
  22717. }
  22718. .toolChild > div + div{
  22719. margin-top:5px;
  22720. }
  22721. .gjCss {
  22722. display: flex;
  22723. flex-direction: row;
  22724. flex-wrap: nowrap;
  22725. align-items: center;
  22726. padding: 10px 0 10px 40px;
  22727. box-sizing: border-box;
  22728. font-size: 14px;
  22729. cursor: pointer;
  22730. border-radius:5px;
  22731. }
  22732. .toolChild > div {
  22733. position: relative;
  22734. width:100%;
  22735. }
  22736. .toolChild > div::before {
  22737. /* content: "";
  22738. width: 15px;
  22739. height: 1px;
  22740. background: #cad1dc;
  22741. position: absolute;
  22742. top: 24px;
  22743. left: -20px;
  22744. display: block; */
  22745. }
  22746. .isGjCss {
  22747. /* color: #0061ff; */
  22748. color:#fff;
  22749. background: rgb(55, 129, 252);
  22750. /* background-color: #e0eafb !important;
  22751. color: #0061ff !important; */
  22752. }
  22753. .navItem {
  22754. background: #ffffff;
  22755. border-radius: 4px;
  22756. width: 100%;
  22757. margin: 10px auto;
  22758. position: relative;
  22759. height: 40px;
  22760. display: flex;
  22761. flex-direction: row;
  22762. flex-wrap: nowrap;
  22763. align-items: center;
  22764. }
  22765. .navItemList {
  22766. display: flex;
  22767. flex-direction: row;
  22768. flex-wrap: nowrap;
  22769. align-items: center;
  22770. padding: 0 13px;
  22771. cursor: pointer;
  22772. width: calc(100% - 60px);
  22773. height: 100%;
  22774. }
  22775. .navItemList > div:first-child {
  22776. min-width: 60px;
  22777. }
  22778. .navItemList > div:last-child {
  22779. width: calc(100% - 80px);
  22780. white-space: nowrap;
  22781. overflow: hidden;
  22782. text-overflow: ellipsis;
  22783. word-break: break-word;
  22784. }
  22785. /* .isItemList > div {
  22786. color: #fff !important;
  22787. } */
  22788. .tool_work_box {
  22789. width: 100%;
  22790. padding: 0 37px 0;
  22791. box-sizing: border-box;
  22792. }
  22793. .tool_box {
  22794. width: 100%;
  22795. padding: 0 0 0 20px;
  22796. }
  22797. .tool_type_box {
  22798. display: flex;
  22799. flex-direction: row;
  22800. align-items: baseline;
  22801. flex-wrap: nowrap;
  22802. justify-content: flex-start;
  22803. position: relative;
  22804. }
  22805. .toolSort {
  22806. display: flex;
  22807. flex-direction: row;
  22808. flex-wrap: wrap;
  22809. justify-content: flex-start;
  22810. align-items: flex-start;
  22811. padding: 0 0 15px 0;
  22812. }
  22813. .toolSort > div {
  22814. margin: 0 10px 0 0;
  22815. width: 135px;
  22816. box-sizing: border-box;
  22817. border: 2px solid transparent;
  22818. }
  22819. .tools {
  22820. width: 100%;
  22821. display: flex;
  22822. flex-direction: column;
  22823. flex-wrap: nowrap;
  22824. align-items: flex-start;
  22825. }
  22826. .whiteBIcon {
  22827. width: fit-content;
  22828. cursor: pointer;
  22829. display: flex;
  22830. flex-direction: column;
  22831. flex-wrap: nowrap;
  22832. align-items: center;
  22833. font-size: 14px;
  22834. }
  22835. .tool:hover {
  22836. border: 2px solid #a5c7ff;
  22837. border-radius: 5px;
  22838. }
  22839. .whiteBIcon > img {
  22840. width: 65px;
  22841. height: 100%;
  22842. }
  22843. .whiteBIcon > img {
  22844. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22845. border-radius: 15px;
  22846. }
  22847. .check {
  22848. /* width: 20px;
  22849. height: 20px; */
  22850. cursor: pointer;
  22851. margin: 10px 0;
  22852. position: absolute;
  22853. right: 2px;
  22854. top: -5px;
  22855. }
  22856. .noChoose,
  22857. .isChoose {
  22858. width: 15px;
  22859. height: 15px;
  22860. border-radius: 50%;
  22861. border: 1px solid #adadad;
  22862. }
  22863. .isChoose {
  22864. border: 4px solid #0363ff !important;
  22865. width: 10px;
  22866. height: 10px;
  22867. }
  22868. .isToolChoose {
  22869. border: 2px solid #5394ff !important;
  22870. border-radius: 5px;
  22871. box-shadow: 0 0 6px 0px #5394ff;
  22872. }
  22873. .checkDiv {
  22874. display: flex;
  22875. align-items: center;
  22876. }
  22877. .checkDiv span {
  22878. margin-left: 5px;
  22879. color: #858585;
  22880. }
  22881. .check img {
  22882. width: 20px;
  22883. height: 20px;
  22884. }
  22885. .lockTaskIcon {
  22886. width: 20px;
  22887. height: 20px;
  22888. position: absolute;
  22889. right: 10px;
  22890. top: 5px;
  22891. }
  22892. .lockTaskIcon > img {
  22893. width: 100%;
  22894. height: 100%;
  22895. }
  22896. .pick_box {
  22897. display: flex;
  22898. align-items: flex-start;
  22899. flex-wrap: wrap;
  22900. }
  22901. .selectBox {
  22902. width: 110px;
  22903. margin-left: 10px;
  22904. margin: 0 10px 0 auto;
  22905. }
  22906. .selectBox >>> .el-input__inner {
  22907. height: 30px;
  22908. line-height: 30px;
  22909. }
  22910. .selectBox >>> .el-input__icon {
  22911. line-height: 30px;
  22912. }
  22913. .sentenceTitle {
  22914. display: flex;
  22915. flex-direction: row;
  22916. flex-wrap: nowrap;
  22917. align-items: center;
  22918. }
  22919. .sentenceTitle::before {
  22920. content: attr(index);
  22921. background: #3681fc;
  22922. border-radius: 50%;
  22923. color: #fff;
  22924. width: 25px;
  22925. height: 25px;
  22926. min-width: 25px;
  22927. min-height: 25px;
  22928. text-align: center;
  22929. line-height: 25px;
  22930. margin-right: 5px;
  22931. }
  22932. .hfBox {
  22933. padding: 10px;
  22934. box-sizing: border-box;
  22935. }
  22936. .whoReplyWho {
  22937. display: flex;
  22938. flex-direction: row;
  22939. flex-wrap: nowrap;
  22940. align-items: baseline;
  22941. justify-content: flex-start;
  22942. }
  22943. .hfBottom {
  22944. display: flex;
  22945. flex-direction: row;
  22946. flex-wrap: nowrap;
  22947. align-items: center;
  22948. justify-content: space-between;
  22949. font-size: 14px;
  22950. }
  22951. .deleteHfItem {
  22952. cursor: pointer;
  22953. width: 20px;
  22954. height: 20px;
  22955. }
  22956. .deleteHfItem > img {
  22957. width: 100%;
  22958. height: 100%;
  22959. }
  22960. .whoReplyWho > .hfImg {
  22961. width: 12px;
  22962. height: 12px;
  22963. margin: 0 5px;
  22964. }
  22965. .whoReplyWho > .hfImg > img {
  22966. width: 100%;
  22967. height: 100%;
  22968. }
  22969. .hfContent {
  22970. padding-top: 10px;
  22971. box-sizing: border-box;
  22972. display: -webkit-box;
  22973. overflow: hidden;
  22974. white-space: normal !important;
  22975. text-overflow: ellipsis;
  22976. word-wrap: break-word;
  22977. -webkit-box-orient: vertical;
  22978. }
  22979. .hfTime {
  22980. text-align: left;
  22981. box-sizing: border-box;
  22982. padding: 10px 0 10px 0px;
  22983. color: #bfbfbf;
  22984. font-size: 14px;
  22985. }
  22986. .btnAllNT {
  22987. position: fixed;
  22988. bottom: 100px;
  22989. right: 40px;
  22990. z-index: 999;
  22991. display: flex;
  22992. flex-direction: row;
  22993. }
  22994. .btnAllNT > img {
  22995. cursor: pointer;
  22996. width: 80px;
  22997. }
  22998. .toolMask {
  22999. position: fixed;
  23000. width: 100%;
  23001. height: 100%;
  23002. background: #3f3c3c;
  23003. opacity: 0.5;
  23004. top: 0;
  23005. left: 0;
  23006. z-index: 999;
  23007. }
  23008. .addToolCss {
  23009. position: fixed;
  23010. z-index: 999;
  23011. background: #fff;
  23012. right: 5%;
  23013. bottom: 18%;
  23014. min-width: 1035px;
  23015. min-height: 300px;
  23016. border-radius: 10px;
  23017. box-shadow: 0 0 8px 1px #b2b2b2;
  23018. }
  23019. .toolTop {
  23020. display: flex;
  23021. flex-direction: row;
  23022. flex-wrap: nowrap;
  23023. justify-content: space-between;
  23024. align-items: center;
  23025. padding: 20px;
  23026. }
  23027. .toolTop > div:nth-child(2) {
  23028. width: 15px;
  23029. height: 15px;
  23030. padding-right: 10px;
  23031. cursor: pointer;
  23032. }
  23033. .toolTop > div:nth-child(2) > img {
  23034. width: 100%;
  23035. height: 100%;
  23036. }
  23037. .fullStyle>>>.el-dialog__body {
  23038. height: calc(100% - 125px) !important;
  23039. box-sizing: border-box;
  23040. padding: 30px 0 !important;
  23041. background: #fff !important;
  23042. }
  23043. .fullStyle>>>.el-dialog {
  23044. width: 100% !important;
  23045. max-width: 100% !important;
  23046. height: 100% !important;
  23047. margin: 0 !important;
  23048. }
  23049. .fullStyle {
  23050. width: 100% !important;
  23051. max-width: 100% !important;
  23052. height: 100% !important;
  23053. margin: 0 auto !important;
  23054. }
  23055. .fullStyle>>>.el-dialog__footer{
  23056. background: #fff !important;
  23057. }
  23058. .engUpBox {
  23059. width: 100%;
  23060. height: 100%;
  23061. }
  23062. .engTitle,
  23063. .engText {
  23064. display: flex;
  23065. flex-direction: row;
  23066. flex-wrap: nowrap;
  23067. align-items: flex-start;
  23068. padding: 0 20px 20px 20px;
  23069. box-sizing: border-box;
  23070. }
  23071. .engTitle > .div:first-child,
  23072. .engText > div:first-child {
  23073. min-width: 75px;
  23074. }
  23075. .correctBox{
  23076. width: 100%;
  23077. display: flex;
  23078. flex-direction: row;
  23079. flex-wrap: nowrap;
  23080. align-items: flex-start;
  23081. }
  23082. .oldBox{
  23083. width: 50%;
  23084. height: 100%;
  23085. display: flex;
  23086. flex-direction: column;
  23087. flex-wrap: nowrap;
  23088. align-items: center;
  23089. border-top: 1px solid #d9d9d9;
  23090. border-left: 1px solid #d9d9d9;
  23091. border-right: 1px solid #d9d9d9;
  23092. }
  23093. .oldBox>div:first-child{
  23094. width: 100%;
  23095. text-align: center;
  23096. background: #d9d9d9;
  23097. height: 35px;
  23098. line-height: 35px;
  23099. font-weight: bold;
  23100. }
  23101. .oldText{
  23102. width: 100%;
  23103. height: calc(100% - 35px);
  23104. overflow: auto;
  23105. margin: 10px 0;
  23106. display: flex;
  23107. flex-direction: column;
  23108. flex-wrap: nowrap;
  23109. align-content: center;
  23110. align-items: center;
  23111. }
  23112. .detailBox{
  23113. width: 50%;
  23114. padding: 10px;
  23115. background: #f6f6f6;
  23116. border-radius: 5px;
  23117. }
  23118. .oldDetail,.oldDetail1{
  23119. padding-bottom: 30px;
  23120. }
  23121. .oldImg{
  23122. width:30px;
  23123. height: 30px;
  23124. }
  23125. .oldImg>img{
  23126. width: 100%;
  23127. height: 100%;
  23128. }
  23129. .allName{
  23130. min-width: 200px;
  23131. white-space: nowrap;
  23132. overflow: hidden;
  23133. text-overflow: ellipsis;
  23134. word-break: break-word;
  23135. cursor: pointer;
  23136. text-align: center;
  23137. border: 1px solid #bcc2cc;
  23138. box-sizing: border-box;
  23139. }
  23140. .engUpTop{
  23141. max-height: 300px;
  23142. overflow: auto;
  23143. }
  23144. .isUpdateToolDetailClass{
  23145. padding: 0 !important;
  23146. }
  23147. .isUpdateToolDetailClass textarea{
  23148. padding:12px;
  23149. font-size: 16px;
  23150. min-height:100%;
  23151. width: 100%;
  23152. box-sizing:border-box;
  23153. outline: none;
  23154. border:none;
  23155. line-height: 30px;
  23156. resize: none;
  23157. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23158. color: #838383;
  23159. }
  23160. .show_taskD {
  23161. min-width: fit-content;
  23162. margin-left: 10px;
  23163. display: flex;
  23164. align-items: center;
  23165. font-size: 14px;
  23166. cursor: pointer;
  23167. color: #717c8d;
  23168. }
  23169. .show_taskD > img {
  23170. width: 15px;
  23171. margin-right: 5px;
  23172. transition: 0.2s all;
  23173. transform: rotate(-90deg);
  23174. }
  23175. .show_taskD.show > img {
  23176. transform: rotate(0deg);
  23177. }
  23178. .correctCss{
  23179. position: absolute;
  23180. bottom: -70px;
  23181. background: #409eff;
  23182. color: #fff;
  23183. }
  23184. </style>