studyStudent.vue 834 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040
  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
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  71. <div
  72. style="
  73. max-width: calc(100% - 40px);
  74. width: auto;
  75. white-space: nowrap;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. word-break: break-word;
  79. display: block;
  80. "
  81. >
  82. <el-tooltip
  83. effect="light"
  84. :content="courseDetail.title"
  85. placement="top"
  86. >
  87. <div class="ctitle">
  88. {{ courseDetail.title }}
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. <el-tooltip effect="light" content="收缩" placement="top">
  93. <div class="mlImg" @click="setContent2(false)">
  94. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div
  99. class="inviteBox"
  100. v-if="tcid && inviteCode"
  101. style="padding: 0 0 8px 0"
  102. >
  103. <div>
  104. <span>随机码:{{ inviteCode }}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="cru_selectBox">
  109. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen && !nav.isLook
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div
  168. v-if="nav.tool[0].tool != undefined"
  169. class="toolChild"
  170. :class="{ toolActive: nav.isOpen }"
  171. >
  172. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  173. <div
  174. class="gjCss"
  175. :class="{
  176. isGjCss: t.isTool,
  177. }"
  178. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  179. >
  180. <div>工具{{ toolIndex2 + 1 }}:</div>
  181. <div v-if="t.tool == 58">模拟驾驶</div>
  182. <div v-if="t.tool == 59">路径搜索</div>
  183. <div v-if="t.tool == 60">深度学习</div>
  184. <div v-if="t.tool == 10">倒计时</div>
  185. <div v-if="t.tool == 65">挑人</div>
  186. <div v-if="t.tool == 7">思维网格</div>
  187. <div v-if="t.tool == 1">电子白板</div>
  188. <div v-if="t.tool == 52">文档</div>
  189. <div v-if="t.tool == 3">思维导图</div>
  190. <div v-if="t.tool == 48">表格</div>
  191. <div v-if="t.tool == 49">学生分组</div>
  192. <div v-if="t.tool == 4">问卷调查</div>
  193. <div v-if="t.tool == 45">选择题</div>
  194. <div v-if="t.tool == 15">问答</div>
  195. <div v-if="t.tool == 16">作业提交</div>
  196. <div v-if="t.tool == 50">批量上传</div>
  197. <div v-if="t.tool == 41">选择匹配</div>
  198. <div v-if="t.tool == 47">排序</div>
  199. <div v-if="t.tool == 40">个人评价</div>
  200. <div v-if="t.tool == 18">训练平台</div>
  201. <div v-if="t.tool == 21">AIoT Blockly</div>
  202. <div v-if="t.tool == 23">AI Python</div>
  203. <div v-if="t.tool == 24">AI Blockly</div>
  204. <div v-if="t.tool == 32">源码编辑</div>
  205. <div v-if="t.tool == 57">CocoPi</div>
  206. <div v-if="t.tool == 63">海龟编程</div>
  207. <div v-if="t.tool == 28">翻译</div>
  208. <div v-if="t.tool == 31">数字画板</div>
  209. <div v-if="t.tool == 39">GeoGebra</div>
  210. <div v-if="t.tool == 66">公式编辑</div>
  211. <div v-if="t.tool == 67">分子结构</div>
  212. <div v-if="t.tool == 68">时间轴</div>
  213. <div v-if="t.tool == 69">英语写作</div>
  214. <div v-if="t.tool == 70">英语口语</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. <div v-if="t.tool == 71">AI智能体</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  228. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  229. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  230. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) ? '100%' : 'calc(100% - 745px)'}">
  231. <div>任务{{ taskCount + 1 }}</div>
  232. <el-tooltip
  233. effect="light"
  234. :content="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  236. "
  237. placement="top"
  238. >
  239. <div>
  240. {{
  241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  242. .task
  243. }}
  244. </div>
  245. </el-tooltip>
  246. </div>
  247. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  248. <div class="btnLeft">
  249. <el-tooltip effect="light" content="刷新" placement="top">
  250. <div class="reBtnIcon" @click="refreshCourse">
  251. <span>刷新</span>
  252. </div>
  253. </el-tooltip>
  254. <el-tooltip effect="light" content="评论" placement="top">
  255. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  256. <span>评论</span>
  257. </div>
  258. </el-tooltip>
  259. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  260. <el-tooltip effect="light" content="录制" placement="top">
  261. <div class="vedioIcon" @click="startRecording">
  262. <span>录制</span>
  263. </div>
  264. </el-tooltip>
  265. </div>
  266. <div v-else-if="tType == 1 || tType == 4">
  267. <el-tooltip effect="light" content="下载" placement="top">
  268. <div class="vedioIcon1" @click="stopRecording">
  269. <span>下载</span>
  270. </div>
  271. </el-tooltip>
  272. </div>
  273. </div>
  274. <div class="btnRight">
  275. <div
  276. class="last"
  277. @click="nextOrpreSteps(0)"
  278. v-if="!(IsFollow && tType == 2)"
  279. @mouseover="isHovered = true"
  280. @mouseout="isHovered = false"
  281. >
  282. <div class="lastImg">
  283. <img
  284. :src="
  285. isHovered
  286. ? require('../../assets/icon/newIcons/whiteLast.png')
  287. : require('../../assets/icon/newIcons/last.png')
  288. "
  289. alt=""
  290. />
  291. </div>
  292. <div class="lastText">上一步</div>
  293. </div>
  294. <div
  295. class="last"
  296. @click="nextOrpreSteps(1)"
  297. v-if="!(IsFollow && tType == 2)"
  298. @mouseover="isHovered1 = true"
  299. @mouseout="isHovered1 = false"
  300. >
  301. <div class="lastText">下一步</div>
  302. <div class="lastImg">
  303. <img
  304. :src="
  305. isHovered1
  306. ? require('../../assets/icon/newIcons/whiteNext.png')
  307. : require('../../assets/icon/newIcons/next.png')
  308. "
  309. alt=""
  310. />
  311. </div>
  312. </div>
  313. <div
  314. class="last"
  315. @click="juriVisible = true"
  316. v-if="tType == 1"
  317. @mouseover="isHovered2 = true"
  318. @mouseout="isHovered2 = false"
  319. >
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered2
  324. ? require('../../assets/icon/newIcons/whiteLock.png')
  325. : require('../../assets/icon/newIcons/lock.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. <div class="lastText">权限</div>
  331. </div>
  332. <div
  333. class="returnBtn1 returnIcon"
  334. @click.stop="
  335. goTo(
  336. '/courseDetail?userid=' +
  337. userid +
  338. '&oid=' +
  339. oid +
  340. '&org=' +
  341. org +
  342. '&cid=' +
  343. classId +
  344. '&courseId=' +
  345. id +
  346. '&tType=' +
  347. tType +
  348. '&screenType=' +
  349. screenType
  350. )
  351. "
  352. >
  353. <div class="lastImg">
  354. <img src="../../assets/icon/newIcon/return.png" alt="" />
  355. </div>
  356. <div class="lastText" style="color: #000">返回</div>
  357. </div>
  358. </div>
  359. <!-- <div
  360. class="returnBtn lockIcon"
  361. @click="juriVisible = true"
  362. v-if="tType == 1"
  363. >
  364. 权限
  365. </div>
  366. <div
  367. class="returnBtn vedioIcon"
  368. @click="startRecording"
  369. v-if="!videoStart && (tType == 1 || tType == 4)"
  370. >
  371. 录制
  372. </div>
  373. <div
  374. class="returnBtn"
  375. @click="stopRecording"
  376. v-else-if="tType == 1 || tType == 4"
  377. style="background: #ee5255"
  378. >
  379. 下载
  380. </div>
  381. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  382. 评论
  383. </div>
  384. <div
  385. class="returnBtn"
  386. @click="nextOrpreSteps(0)"
  387. v-if="!(IsFollow && tType == 2)"
  388. >
  389. 上一步
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="nextOrpreSteps(1)"
  394. v-if="!(IsFollow && tType == 2)"
  395. >
  396. 下一步
  397. </div>
  398. <div class="returnBtn" @click="refreshCourse">刷新</div>
  399. <div
  400. class="returnBtn returnIcon"
  401. @click.stop="
  402. goTo(
  403. '/courseDetail?userid=' +
  404. userid +
  405. '&oid=' +
  406. oid +
  407. '&org=' +
  408. org +
  409. '&cid=' +
  410. classId +
  411. '&courseId=' +
  412. id +
  413. '&tType=' +
  414. tType +
  415. '&screenType=' +
  416. screenType
  417. )
  418. "
  419. >
  420. 返回
  421. </div> -->
  422. </div>
  423. </div>
  424. <div
  425. class="isNoMessage"
  426. v-if="
  427. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  428. .chapterData.length == 0 &&
  429. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  430. .toolChoose[0].tool.length == 0 &&
  431. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  432. .taskDetail == '' &&
  433. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .eList &&
  435. !(
  436. courseDetail.userid == userid ||
  437. (courseDetail.course_teacher &&
  438. courseDetail.course_teacher.indexOf(userid) != -1)
  439. )
  440. "
  441. >
  442. <img src="../../assets/icon/isNoMessage.png" alt />
  443. </div>
  444. <div class="study_top" :class="{ pzClass: pzDialog }">
  445. <div
  446. class="vedioBox"
  447. v-if="
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail != '' ||
  450. vChapterData[taskCount].length > 0 ||
  451. fileC[taskCount].length > 0
  452. "
  453. style="border-radius: 0 0 20px 20px"
  454. >
  455. <div
  456. class="taskBox"
  457. v-if="
  458. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail != ''
  460. "
  461. >
  462. <div
  463. style="
  464. display: flex;
  465. flex-wrap: nowrap;
  466. flex-direction: column;
  467. position: relative;
  468. "
  469. >
  470. <div
  471. style="
  472. padding: 15px 0;
  473. line-height: 29px;
  474. font-size: 18px;
  475. color: #0e1e33;
  476. "
  477. class="cont"
  478. v-if="
  479. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  480. .taskDetail != ''
  481. "
  482. v-html="
  483. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  484. .taskDetail
  485. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  486. taskCount
  487. ].taskDetail
  488. : '暂无描述'
  489. "
  490. ></div>
  491. </div>
  492. </div>
  493. <div
  494. class="student_head"
  495. v-if="
  496. vChapterData[taskCount].length > 0 ||
  497. fileC[taskCount].length > 0
  498. "
  499. >
  500. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  501. <div
  502. :class="
  503. contentDialog == false
  504. ? 'box_course isContentCss'
  505. : 'box_course'
  506. "
  507. v-if="
  508. vChapterData.length > 0 &&
  509. vChapterData[taskCount] &&
  510. showType !== ''
  511. "
  512. >
  513. <div class="wheel" style="height: auto" v-if="showType === 0">
  514. <div
  515. class="workd_media"
  516. style="height: 650px; width: calc(100% - 50px)"
  517. >
  518. <video-player
  519. class="video-player vjs-custom-skin"
  520. :class="contentDialog == false ? 'isAllWidth' : ''"
  521. :playsinline="true"
  522. :options="playerO[taskCount]"
  523. @play="onPlayerPlay($event)"
  524. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  525. ></video-player>
  526. </div>
  527. </div>
  528. <div
  529. class="wheel"
  530. v-if="showType == 1"
  531. style="
  532. box-shadow: 0 0 6px 1px #f2f2f2;
  533. width: 95%;
  534. margin: 0 auto;
  535. background: #f1f1f1;
  536. "
  537. >
  538. <div class="title">查看文档</div>
  539. <el-form class="textBox">
  540. <el-form-item class="textTitle">
  541. <div style="font-size: 22px">
  542. {{ text.name }}
  543. </div>
  544. </el-form-item>
  545. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  546. <div v-html="text.url" class="textContent cont"></div>
  547. </el-form>
  548. </div>
  549. <div
  550. class="wheel"
  551. v-if="
  552. pptImgUrl1.indexOf(
  553. 'https://view.officeapps.live.com/op/view.aspx?src='
  554. ) != -1 && showType == 2
  555. "
  556. style="width: 95%; margin: 0 auto"
  557. >
  558. <iframe
  559. style="width: 100%; height: 100%; border: none"
  560. :src="pptImgUrl1"
  561. ></iframe>
  562. </div>
  563. <div
  564. class="wheel"
  565. v-else-if="showType == 2"
  566. style="width: 95%; margin: 0 auto"
  567. >
  568. <iframe
  569. style="width: 100%; height: 100%; border: none"
  570. security="restricted"
  571. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  572. :src="pptImgUrl1"
  573. ></iframe>
  574. </div>
  575. <div
  576. class="wheel"
  577. v-if="showType == 3"
  578. style="width: 95%; margin: 0 auto"
  579. >
  580. <pdf
  581. :pdfUrl="pptImgUrl1"
  582. style="width: 100%; height: 100%; overflow: auto"
  583. ></pdf>
  584. </div>
  585. <div
  586. class="wheel"
  587. v-if="showType == 4"
  588. style="width: 95%; margin: 0 auto"
  589. >
  590. <el-image
  591. :src="pptImgUrl1"
  592. fit="contain"
  593. style="width: 100%; height: 100%; cursor: pointer"
  594. @click="previewImg(pptImgUrl1)"
  595. ></el-image>
  596. </div>
  597. </div>
  598. <div
  599. class="pButton"
  600. style="position: absolute; right: 20px; top: 0; z-index: 998"
  601. v-if="!contentDialog"
  602. @click="setContent(true)"
  603. >
  604. <!-- 批 -->
  605. <img
  606. src="../../assets/icon/newIcons/isLeft.png"
  607. style="width: 45px"
  608. alt=""
  609. />
  610. </div>
  611. <div
  612. v-if="contentDialog == true"
  613. :style="{
  614. width:
  615. (vChapterData[taskCount].length > 0 ||
  616. fileC[taskCount].length > 0) &&
  617. showType === ''
  618. ? 'calc(100%)'
  619. : '300px',
  620. margin:
  621. (vChapterData[taskCount].length > 0 ||
  622. fileC[taskCount].length > 0) &&
  623. showType === ''
  624. ? '0 15px'
  625. : '0 15px 0 0',
  626. }"
  627. >
  628. <div
  629. class="vedioList"
  630. v-if="
  631. vChapterData[taskCount].length > 0 ||
  632. fileC[taskCount].length > 0
  633. "
  634. style="height: 650px"
  635. >
  636. <div class="navCorOpenBox">
  637. <div class="navTitile">内容列表:</div>
  638. <div class="navCorOpen" @click="setContent(false)">
  639. <img
  640. src="../../assets/icon/newIcons/isRight.png"
  641. alt=""
  642. />
  643. </div>
  644. </div>
  645. <div class="navBox">
  646. <div
  647. v-show="
  648. vChapterData[taskCount].length > 0 ||
  649. fileC[taskCount].length > 0
  650. "
  651. style="padding: 10px 0 25px 0"
  652. >
  653. <div
  654. class="vedioTimeBox"
  655. v-for="(vitem, vindex) in vChapterData[taskCount]"
  656. :key="vindex + '1'"
  657. >
  658. <div class="navListItem" v-if="vitem.type == 2">
  659. <div
  660. @click="lookVedio(vitem.url, vindex)"
  661. class="navText"
  662. :class="isClickNav == vindex ? 'isClickNav' : ''"
  663. >
  664. <span v-if="vitem.text">{{ vitem.text }}-</span
  665. >{{ vitem.name }}
  666. </div>
  667. <div class="downIcon" @click="downloadFile2(vitem)">
  668. <img
  669. src="../../assets/icon/newIcon/down.png"
  670. alt
  671. />
  672. </div>
  673. </div>
  674. <div class="navListItem" v-if="vitem.type == 6">
  675. <div
  676. @click="lookText(taskCount, vindex)"
  677. class="navText"
  678. :class="isClickNav == vindex ? 'isClickNav' : ''"
  679. >
  680. {{ vitem.name }}.doc
  681. </div>
  682. <div
  683. class="downIcon"
  684. @click="checkFileFull1(vitem.type, vitem)"
  685. >
  686. <img
  687. src="../../assets/icon/newIcon/allScreen.png"
  688. alt
  689. />
  690. </div>
  691. </div>
  692. <div
  693. class="navListItem"
  694. v-if="vitem.type == 8 || vitem.type == 14"
  695. >
  696. <div
  697. @click="doUrl(vitem.url, vindex)"
  698. class="navText"
  699. :class="isClickNav == vindex ? 'isClickNav' : ''"
  700. >
  701. {{ vitem.title ? vitem.title : vitem.url }}
  702. </div>
  703. <div
  704. class="downIcon"
  705. @click="checkFileFull1(vitem.type, vitem)"
  706. >
  707. <img
  708. src="../../assets/icon/newIcon/allScreen.png"
  709. alt
  710. />
  711. </div>
  712. </div>
  713. <div class="navListItem" v-if="vitem.type == 3">
  714. <div
  715. @click="downFile(vitem, vindex)"
  716. class="navText"
  717. :class="isClickNav == vindex ? 'isClickNav' : ''"
  718. >
  719. <span v-if="vitem.text">{{ vitem.text }}-</span
  720. >{{ vitem.name }}
  721. </div>
  722. <div
  723. class="downIcon"
  724. @click="checkFileFull1(vitem.type, vitem)"
  725. >
  726. <img
  727. src="../../assets/icon/newIcon/allScreen.png"
  728. alt
  729. />
  730. </div>
  731. <div class="downIcon" @click="downloadFile2(vitem)">
  732. <img
  733. src="../../assets/icon/newIcon/down.png"
  734. alt
  735. />
  736. </div>
  737. </div>
  738. <div class="navListItem" v-if="vitem.type == 12">
  739. <div class="navText" @click="downloadFile2(vitem)">
  740. <span v-if="vitem.text">{{ vitem.text }}-</span
  741. >{{ vitem.name }}
  742. </div>
  743. <div
  744. class="downIcon"
  745. @click="checkFileFull1(vitem.type, vitem)"
  746. >
  747. <img
  748. src="../../assets/icon/newIcon/allScreen.png"
  749. alt
  750. />
  751. </div>
  752. <div class="downIcon" @click="downloadFile2(vitem)">
  753. <img
  754. src="../../assets/icon/newIcon/down.png"
  755. alt
  756. />
  757. </div>
  758. </div>
  759. <div class="navListItem" v-if="vitem.type == 13">
  760. <div
  761. class="navText"
  762. @click="checkPhoto(vitem, vindex)"
  763. :class="isClickNav == vindex ? 'isClickNav' : ''"
  764. >
  765. {{ vitem.name }}
  766. </div>
  767. <div class="downIcon" @click="downloadFile2(vitem)">
  768. <img
  769. src="../../assets/icon/newIcon/down.png"
  770. alt
  771. />
  772. </div>
  773. </div>
  774. </div>
  775. <div
  776. class="fileC_box"
  777. v-if="fileC[taskCount].length > 0"
  778. >
  779. <div class="fileC_title">以下文件不支持预览</div>
  780. <div
  781. class="vedioTimeBox"
  782. v-for="(vitem, vindex) in fileC[taskCount]"
  783. :key="vindex + '1'"
  784. >
  785. <div class="navListItem" v-if="vitem.type == 12">
  786. <div class="navText" style="color: #acb4bf">
  787. <span v-if="vitem.text">{{ vitem.text }}-</span
  788. >{{ vitem.name }}
  789. </div>
  790. <div
  791. class="downIcon"
  792. @click="downloadFile2(vitem)"
  793. >
  794. <img
  795. src="../../assets/icon/newIcon/down.png"
  796. alt
  797. />
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. <div style="width: calc(100% - 315px)">
  808. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  809. <!-- <el-button
  810. type="primary"
  811. class="newButton"
  812. @click="checkFileFull(showType, pptImgUrl1)"
  813. >全屏查看</el-button
  814. >
  815. <el-button
  816. type="primary"
  817. class="newButton"
  818. @click="downloadFile(pptImgUrl1)"
  819. v-if="showType != 2"
  820. >文件下载</el-button
  821. > -->
  822. <el-button
  823. class="newButton"
  824. v-if="
  825. showType == 2 &&
  826. pptImgUrl1.indexOf(
  827. 'https://view.officeapps.live.com/op/view.aspx?src='
  828. ) == -1
  829. "
  830. type="primary"
  831. @click="openLine(pptImgUrl1)"
  832. >打开链接
  833. </el-button>
  834. </div>
  835. <!-- <div
  836. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  837. v-if="showType == 1"
  838. >
  839. <el-button
  840. type="primary"
  841. class="newButton"
  842. @click="checkFileFull(showType, text)"
  843. >全屏查看</el-button
  844. >
  845. </div> -->
  846. </div>
  847. </div>
  848. </div>
  849. <div class="student_body" v-resize="resize">
  850. <div
  851. class="vedioBox"
  852. :style="{
  853. borderRadius:
  854. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  855. .taskDetail == '' &&
  856. vChapterData[taskCount].length == 0 &&
  857. fileC[taskCount].length == 0
  858. ? '0 0 20px 20px'
  859. : '20px',
  860. }"
  861. v-if="
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool &&
  864. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  865. .toolChoose[0].tool.length > 0
  866. "
  867. >
  868. <div
  869. class="toolHeng2"
  870. style="position: relative"
  871. v-if="
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length &&
  876. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  877. .toolChoose[0].tool.length > 0
  878. "
  879. >
  880. <div class="workNav">工作区</div>
  881. <div
  882. class="filebox"
  883. style="flex-wrap: nowrap"
  884. v-for="(tool, toolIndex) in chapInfoList[courseType]
  885. .chapterInfo[0].taskJson[taskCount].toolChoose"
  886. :key="toolIndex"
  887. >
  888. <div class="bzBox">
  889. <div class="yCss"></div>
  890. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  891. 工具{{ toolIndex + 1 }}
  892. </div>
  893. <div
  894. v-if="timeWorkList[toolIndex].length > 0"
  895. style="margin: 0 0 0 10px"
  896. >
  897. {{
  898. timeWorkList[toolIndex][0].time
  899. ? "时间:" + timeWorkList[toolIndex][0].time
  900. : ""
  901. }}
  902. </div>
  903. </div>
  904. <div class="toolBox">
  905. <div>
  906. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  907. :key="indexTool"-->
  908. <!-- <div class="iframeBox">
  909. <div
  910. class="addPoint isBorder"
  911. v-for="(tooC, toolCIndex) in tool.tool"
  912. :key="toolCIndex"
  913. >
  914. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  915. <div
  916. class="iframeName"
  917. >
  918. 电子白板
  919. </div>
  920. <iframe
  921. src="https://iwb.cocorobo.cn/"
  922. ref="whiteBoard"
  923. ></iframe>
  924. </div>
  925. </div>
  926. </div>-->
  927. <div class="noiframeBox">
  928. <div
  929. class="addPoint"
  930. v-for="(tooC, toolCIndex) in tool.tool"
  931. :key="toolCIndex"
  932. >
  933. <div v-if="tooC == 1">
  934. <img
  935. src="../../assets/icon/secondToolList/whiteBoard.png"
  936. alt
  937. @click="addTools(tooC, toolIndex, taskCount)"
  938. />
  939. <div style="margin: 5px 0">电子白板</div>
  940. </div>
  941. <div v-if="tooC == 3">
  942. <img
  943. src="../../assets/icon/secondToolList/mindMapping.png"
  944. alt
  945. @click="addTools(tooC, toolIndex, taskCount)"
  946. />
  947. <div style="margin: 5px 0">思维导图</div>
  948. </div>
  949. <div v-if="tooC == 6">
  950. <img
  951. src="../../assets/icon/secondToolList/doc.png"
  952. alt
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. />
  955. <div style="margin: 5px 0">协同文档</div>
  956. </div>
  957. <div v-if="tooC == 7">
  958. <img
  959. src="../../assets/icon/secondToolList/mindNetwork.png"
  960. alt
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. />
  963. <div style="margin: 5px 0">思维网格</div>
  964. </div>
  965. <div v-if="tooC == 8">
  966. <img
  967. src="../../assets/icon/secondToolList/library.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">素材库</div>
  972. </div>
  973. <div v-if="tooC == 17">
  974. <img
  975. src="../../assets/icon/secondToolList/library.png"
  976. alt
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. />
  979. <div style="margin: 5px 0">学习资料</div>
  980. </div>
  981. <div v-if="tooC == 2">
  982. <img
  983. @click="addTools(tooC, toolIndex, taskCount)"
  984. src="../../assets/icon/secondToolList/note.png"
  985. alt
  986. />
  987. <div style="margin: 5px 0">便签</div>
  988. </div>
  989. <div v-if="tooC == 4">
  990. <img
  991. @click="addTools(tooC, toolIndex, taskCount)"
  992. src="../../assets/icon/thirdToolList/ask.png"
  993. alt
  994. />
  995. <div style="margin: 5px 0">问卷调查</div>
  996. </div>
  997. <div v-if="tooC == 45">
  998. <img
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. src="../../assets/icon/thirdToolList/choose.png"
  1001. alt
  1002. />
  1003. <div style="margin: 5px 0">选择题</div>
  1004. </div>
  1005. <!-- <div v-if="tooC == 5">
  1006. <img
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. src="../../assets/icon/thirdToolList/score.png"
  1009. alt
  1010. />
  1011. <div style="margin: 5px 0">量规评分</div>
  1012. </div> -->
  1013. <div v-if="tooC == 10">
  1014. <img
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. src="../../assets/icon/thirdToolList/time.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">倒计时</div>
  1020. </div>
  1021. <div v-if="tooC == 15">
  1022. <img
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. src="../../assets/icon/thirdToolList/answer.png"
  1025. alt
  1026. />
  1027. <div style="margin: 5px 0">问答</div>
  1028. </div>
  1029. <div v-if="tooC == 26">
  1030. <img
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. src="../../assets/icon/thirdToolList/courseDesign.png"
  1033. alt
  1034. />
  1035. <div style="margin: 5px 0">课程设计</div>
  1036. </div>
  1037. <div v-if="tooC == 18">
  1038. <img
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">训练服务器</div>
  1044. </div>
  1045. <div v-if="tooC == 16">
  1046. <img
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. src="../../assets/icon/thirdToolList/work.png"
  1049. alt
  1050. />
  1051. <div style="margin: 5px 0">作业提交</div>
  1052. </div>
  1053. <div v-if="tooC == 50">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../../assets/icon/thirdToolList/plwork.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">批量上传</div>
  1060. </div>
  1061. <div v-if="tooC == 21">
  1062. <img
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. src="../../assets/icon/fourthToolList/program.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">AIoT Blockly</div>
  1068. </div>
  1069. <!-- <div v-if="tooC == 22">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../../assets/icon/fourthToolList/program.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">AI体验</div>
  1076. </div> -->
  1077. <div v-if="tooC == 23">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">AI Python</div>
  1084. </div>
  1085. <div v-if="tooC == 24">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../../assets/icon/fourthToolList/AIprogram.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">AI Blockly</div>
  1092. </div>
  1093. <div v-if="tooC == 25">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/thirdToolList/evalua.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">目标管理</div>
  1100. </div>
  1101. <div v-if="tooC == 31">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/secondToolList/networkPanel.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">数学画板</div>
  1108. </div>
  1109. <div v-if="tooC == 28">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../../assets/icon/secondToolList/translation.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">翻译</div>
  1116. </div>
  1117. <div v-if="tooC == 37">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/secondToolList/mohe.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">魔盒识字</div>
  1124. </div>
  1125. <div v-if="tooC == 38">
  1126. <img
  1127. @click="addTools(tooC, toolIndex, taskCount)"
  1128. src="../../assets/icon/secondToolList/24game.png"
  1129. alt
  1130. />
  1131. <div style="margin: 5px 0">24点</div>
  1132. </div>
  1133. <div v-if="tooC == 39">
  1134. <img
  1135. @click="addTools(tooC, toolIndex, taskCount)"
  1136. src="../../assets/icon/secondToolList/GeoGebra.png"
  1137. alt
  1138. />
  1139. <div style="margin: 5px 0">GeoGebra</div>
  1140. </div>
  1141. <div v-if="tooC == 32">
  1142. <img
  1143. @click="addTools(tooC, toolIndex, taskCount)"
  1144. src="../../assets/icon/thirdToolList/code.png"
  1145. alt
  1146. />
  1147. <div style="margin: 5px 0">源码编辑</div>
  1148. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1149. style="position: absolute;left: 110px;bottom: 30px;">
  1150. 上传文件
  1151. <input type="file" accept="*" style="display: none"
  1152. @change="beforeUpload1($event, 7, toolIndex)" />
  1153. </div> -->
  1154. </div>
  1155. <div v-if="tooC == 40">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/secondToolList/eval.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">个人评价</div>
  1162. </div>
  1163. <div v-if="tooC == 41">
  1164. <img
  1165. @click="addTools(tooC, toolIndex, taskCount)"
  1166. src="../../assets/icon/thirdToolList/select.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">选择匹配</div>
  1170. </div>
  1171. <div v-if="tooC == 44">
  1172. <img
  1173. @click="addTools(tooC, toolIndex, taskCount)"
  1174. src="../../assets/icon/thirdToolList/hanClass.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">汉字宫</div>
  1178. </div>
  1179. <div v-if="tooC == 47">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/fourthToolList/conSentences.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">排序</div>
  1186. </div>
  1187. <div v-if="tooC == 48">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/fourthToolList/table.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">表格</div>
  1194. </div>
  1195. <div v-if="tooC == 52">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/text.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">文档</div>
  1202. </div>
  1203. <div v-if="tooC == 49">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../../assets/icon/fourthToolList/group.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">学生分组</div>
  1210. </div>
  1211. <div v-if="tooC == 57">
  1212. <img
  1213. @click="addTools(tooC, toolIndex, taskCount)"
  1214. src="../../assets/icon/fourthToolList/cocopi.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">CocoPi</div>
  1218. </div>
  1219. <div v-if="tooC == 58">
  1220. <img
  1221. @click="addTools(tooC, toolIndex, taskCount)"
  1222. src="../../assets/icon/fourthToolList/car.png"
  1223. alt
  1224. />
  1225. <div style="margin: 5px 0">模拟驾驶</div>
  1226. </div>
  1227. <div v-if="tooC == 59">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/lineSearch.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">路径搜索</div>
  1234. </div>
  1235. <div v-if="tooC == 60">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../../assets/icon/fourthToolList/deepLearning.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">深度学习</div>
  1242. </div>
  1243. <div v-if="tooC == 61">
  1244. <img
  1245. @click="addTools(tooC, toolIndex, taskCount)"
  1246. src="../../assets/icon/fourthToolList/allHistory.png"
  1247. alt
  1248. />
  1249. <div style="margin: 5px 0">全历史</div>
  1250. </div>
  1251. <div v-if="tooC == 62">
  1252. <img
  1253. @click="addTools(tooC, toolIndex, taskCount)"
  1254. src="../../assets/icon/fourthToolList/interVideo.png"
  1255. alt
  1256. />
  1257. <div style="margin: 5px 0">交互视频</div>
  1258. </div>
  1259. <div v-if="tooC == 63">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/fourthToolList/Wood.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">海龟编程</div>
  1266. </div>
  1267. <div v-if="tooC == 71">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../../assets/icon/fourthToolList/chatgpt.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">AI智能体</div>
  1274. </div>
  1275. <div v-if="tooC == 65">
  1276. <img
  1277. @click="addTools(tooC, toolIndex, taskCount)"
  1278. src="../../assets/icon/firstToolList/pickPeople.png"
  1279. alt
  1280. />
  1281. <div style="margin: 5px 0">挑人</div>
  1282. </div>
  1283. <div v-if="tooC == 66">
  1284. <img
  1285. @click="addTools(tooC, toolIndex, taskCount)"
  1286. src="../../assets/icon/secondToolList/formulaEdi.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">公式编辑</div>
  1290. </div>
  1291. <div v-if="tooC == 67">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../../assets/icon/secondToolList/molStr.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">分子结构</div>
  1298. </div>
  1299. <div v-if="tooC == 68">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/secondToolList/timeAxis.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">时间轴</div>
  1306. </div>
  1307. <div v-if="tooC == 69">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/secondToolList/english.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">英语写作</div>
  1314. </div>
  1315. <div v-if="tooC == 70">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/thirdToolList/englishVoice.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">英语口语</div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1327. <!-- <div class="toolTitle">工具描述</div> -->
  1328. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1329. <div style="height:100%;"
  1330. v-html="contentConvent(tool.toolDetail)"
  1331. v-if="toolDetailIndex != toolIndex"
  1332. ></div>
  1333. <div v-else @click.stop="" style="height:100%;">
  1334. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1335. </div>
  1336. </div>
  1337. <el-button
  1338. type="primary"
  1339. v-if="tool.tool[0] == 32"
  1340. style="position: absolute; right: 30px; top: -45px"
  1341. @click="addImg($event)"
  1342. >上传作业<input
  1343. type="file"
  1344. accept="*"
  1345. style="display: none"
  1346. @change="beforeUpload1($event, 7, toolIndex)"
  1347. /></el-button>
  1348. <el-button
  1349. type="primary"
  1350. v-if="tool.tool[0] == 15"
  1351. style="position: absolute; right: 30px; top: -45px"
  1352. @click="openWordCloud(toolIndex)"
  1353. >生成词云</el-button
  1354. >
  1355. <el-button
  1356. type="primary"
  1357. v-if="
  1358. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1359. "
  1360. style="position: absolute; right: 30px; top: -45px"
  1361. @click="uploadWorks(toolIndex)"
  1362. >导出作业</el-button
  1363. >
  1364. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1365. position: absolute;
  1366. right: 30px;
  1367. transform: translateY(-130%);
  1368. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1369. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1370. </div>
  1371. <div
  1372. v-if="
  1373. tType &&
  1374. tType == 2 &&
  1375. !sIsOpen &&
  1376. tool.tool.indexOf(16) != -1
  1377. "
  1378. class="worksBox"
  1379. >
  1380. <div
  1381. class="zuoyeYulan"
  1382. v-if="workStudent[toolIndex].length > 0"
  1383. >
  1384. <span class="worksTitle">作业预览</span>
  1385. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1386. </div>
  1387. <div
  1388. class="worksDetailBox"
  1389. v-if="workStudent[toolIndex].length > 0"
  1390. >
  1391. <div
  1392. class="works"
  1393. style="
  1394. width: 200px;
  1395. height: 140px;
  1396. margin: 10px 10px 10px 0;
  1397. box-shadow: 0 0 6px 1px #dfdada;
  1398. "
  1399. v-for="(w, wIndex) in workStudent[toolIndex]"
  1400. :key="wIndex"
  1401. >
  1402. <div class="workImg" v-if="w.type == 0">
  1403. <img
  1404. :src="w.works"
  1405. @click="previewImg(w.works,w)"
  1406. alt
  1407. />
  1408. <div
  1409. class="answerScore"
  1410. v-if="w.score"
  1411. @click.stop="openScore(w)"
  1412. :class="{
  1413. rightW:
  1414. w.userid == userid || tType == 1 || tType == 4,
  1415. }"
  1416. >
  1417. {{ JSON.parse(w.score).wScore }}分
  1418. </div>
  1419. <div
  1420. class="answerScore"
  1421. @click.stop="openScore(w)"
  1422. v-else-if="courseDetail.userid == userid"
  1423. :class="{
  1424. rightW:
  1425. w.userid == userid || tType == 1 || tType == 4,
  1426. }"
  1427. >
  1428. 评分
  1429. </div>
  1430. <img
  1431. class="deleteImg"
  1432. src="../../assets/deleteworks.png"
  1433. v-if="
  1434. w.userid == userid || tType == 1 || tType == 4
  1435. "
  1436. @click.stop="deleteWorks(w.wid)"
  1437. alt
  1438. />
  1439. </div>
  1440. <div class="workImg" v-if="w.type == 1">
  1441. <img :src="word" @click="openFile(w.works)" alt />
  1442. <div
  1443. class="answerScore"
  1444. v-if="w.score"
  1445. @click.stop="openScore(w)"
  1446. :class="{
  1447. rightW:
  1448. w.userid == userid || tType == 1 || tType == 4,
  1449. }"
  1450. >
  1451. {{ JSON.parse(w.score).wScore }}分
  1452. </div>
  1453. <div
  1454. class="answerScore"
  1455. @click.stop="openScore(w)"
  1456. v-else-if="courseDetail.userid == userid"
  1457. :class="{
  1458. rightW:
  1459. w.userid == userid || tType == 1 || tType == 4,
  1460. }"
  1461. >
  1462. 评分
  1463. </div>
  1464. <img
  1465. class="deleteImg"
  1466. src="../../assets/deleteworks.png"
  1467. v-if="
  1468. w.userid == userid || tType == 1 || tType == 4
  1469. "
  1470. @click.stop="deleteWorks(w.wid)"
  1471. alt
  1472. />
  1473. </div>
  1474. <div class="workImg" v-if="w.type == 3">
  1475. <img
  1476. style="cursor: pointer"
  1477. :src="video"
  1478. @click="openVideo(w)"
  1479. alt
  1480. />
  1481. <div
  1482. class="answerScore"
  1483. v-if="w.score"
  1484. @click.stop="openScore(w)"
  1485. :class="{
  1486. rightW:
  1487. w.userid == userid || tType == 1 || tType == 4,
  1488. }"
  1489. >
  1490. {{ JSON.parse(w.score).wScore }}分
  1491. </div>
  1492. <div
  1493. class="answerScore"
  1494. @click.stop="openScore(w)"
  1495. v-else-if="courseDetail.userid == userid"
  1496. :class="{
  1497. rightW:
  1498. w.userid == userid || tType == 1 || tType == 4,
  1499. }"
  1500. >
  1501. 评分
  1502. </div>
  1503. <img
  1504. class="deleteImg"
  1505. src="../../assets/deleteworks.png"
  1506. v-if="
  1507. w.userid == userid || tType == 1 || tType == 4
  1508. "
  1509. @click.stop="deleteWorks(w.wid)"
  1510. alt
  1511. />
  1512. </div>
  1513. <div class="workImg" v-if="w.type == 12">
  1514. <img
  1515. style="cursor: pointer"
  1516. :src="word2"
  1517. @click="downloadFile(w.works)"
  1518. alt
  1519. />
  1520. <div
  1521. class="answerScore"
  1522. v-if="w.score"
  1523. @click.stop="openScore(w)"
  1524. :class="{
  1525. rightW:
  1526. w.userid == userid || tType == 1 || tType == 4,
  1527. }"
  1528. >
  1529. {{ JSON.parse(w.score).wScore }}分
  1530. </div>
  1531. <div
  1532. class="answerScore"
  1533. @click.stop="openScore(w)"
  1534. v-else-if="courseDetail.userid == userid"
  1535. :class="{
  1536. rightW:
  1537. w.userid == userid || tType == 1 || tType == 4,
  1538. }"
  1539. >
  1540. 评分
  1541. </div>
  1542. <img
  1543. class="deleteImg"
  1544. src="../../assets/deleteworks.png"
  1545. v-if="
  1546. w.userid == userid || tType == 1 || tType == 4
  1547. "
  1548. @click.stop="deleteWorks(w.wid)"
  1549. alt
  1550. />
  1551. </div>
  1552. <div class="worksName">
  1553. <div>{{ w.sName }}</div>
  1554. </div>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div
  1559. v-if="
  1560. tType &&
  1561. tType == 2 &&
  1562. !sIsOpen &&
  1563. tool.tool.indexOf(32) != -1
  1564. "
  1565. class="worksBox"
  1566. >
  1567. <div
  1568. class="zuoyeYulan"
  1569. v-if="workStudent[toolIndex].length > 0"
  1570. >
  1571. <span class="worksTitle">作业预览</span>
  1572. </div>
  1573. <div
  1574. class="worksDetailBox"
  1575. v-if="workStudent[toolIndex].length > 0"
  1576. >
  1577. <div
  1578. class="works"
  1579. style="
  1580. width: 200px;
  1581. height: 140px;
  1582. margin: 10px 10px 10px 0;
  1583. box-shadow: 0 0 6px 1px #dfdada;
  1584. "
  1585. v-for="(w, wIndex) in workStudent[toolIndex]"
  1586. :key="wIndex"
  1587. >
  1588. <div class="workImg">
  1589. <img
  1590. :src="word2"
  1591. @click="downloadFile(w.works)"
  1592. alt
  1593. />
  1594. <div
  1595. class="answerScore"
  1596. v-if="w.score"
  1597. @click.stop="openScore(w)"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid || tType == 1 || tType == 4,
  1601. }"
  1602. >
  1603. {{ JSON.parse(w.score).wScore }}分
  1604. </div>
  1605. <div
  1606. class="answerScore"
  1607. @click.stop="openScore(w)"
  1608. v-else-if="courseDetail.userid == userid"
  1609. :class="{
  1610. rightW:
  1611. w.userid == userid || tType == 1 || tType == 4,
  1612. }"
  1613. >
  1614. 评分
  1615. </div>
  1616. <img
  1617. class="deleteImg"
  1618. src="../../assets/deleteworks.png"
  1619. v-if="
  1620. w.userid == userid || tType == 1 || tType == 4
  1621. "
  1622. @click.stop="deleteWorks(w.wid)"
  1623. alt
  1624. />
  1625. </div>
  1626. <div class="worksName">
  1627. <div>{{ w.sName }}</div>
  1628. </div>
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div
  1633. v-if="
  1634. tType &&
  1635. tType == 2 &&
  1636. !sIsOpen &&
  1637. tool.tool.indexOf(57) != -1
  1638. "
  1639. class="worksBox"
  1640. >
  1641. <div
  1642. class="zuoyeYulan"
  1643. v-if="workStudent[toolIndex].length > 0"
  1644. >
  1645. <span class="worksTitle">作业预览</span>
  1646. </div>
  1647. <div
  1648. class="worksDetailBox"
  1649. v-if="workStudent[toolIndex].length > 0"
  1650. >
  1651. <div
  1652. class="works"
  1653. style="
  1654. width: 200px;
  1655. height: 140px;
  1656. margin: 10px 10px 10px 0;
  1657. box-shadow: 0 0 6px 1px #dfdada;
  1658. "
  1659. v-for="(w, wIndex) in workStudent[toolIndex]"
  1660. :key="wIndex"
  1661. >
  1662. <div class="workImg">
  1663. <img
  1664. :src="word2"
  1665. @click="downloadFile(w.works)"
  1666. v-if="w.type == 12"
  1667. alt
  1668. />
  1669. <img
  1670. :src="word2"
  1671. @click="
  1672. openCocoPi(57, toolIndex, w.userid, w.sName)
  1673. "
  1674. v-else-if="w.type == 15"
  1675. alt
  1676. />
  1677. <div
  1678. class="answerScore"
  1679. v-if="w.score"
  1680. @click.stop="openScore(w)"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4,
  1684. }"
  1685. >
  1686. {{ JSON.parse(w.score).wScore }}分
  1687. </div>
  1688. <div
  1689. class="answerScore"
  1690. @click.stop="openScore(w)"
  1691. v-else-if="courseDetail.userid == userid"
  1692. :class="{
  1693. rightW:
  1694. w.userid == userid || tType == 1 || tType == 4,
  1695. }"
  1696. >
  1697. 评分
  1698. </div>
  1699. <img
  1700. class="deleteImg"
  1701. src="../../assets/deleteworks.png"
  1702. v-if="
  1703. w.userid == userid || tType == 1 || tType == 4
  1704. "
  1705. @click.stop="deleteWorks(w.wid)"
  1706. alt
  1707. />
  1708. </div>
  1709. <div class="worksName">
  1710. <div>{{ w.sName }}</div>
  1711. </div>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div
  1716. v-if="
  1717. tType &&
  1718. tType == 2 &&
  1719. !sIsOpen &&
  1720. tool.tool.indexOf(4) != -1
  1721. "
  1722. class="worksBox"
  1723. >
  1724. <div
  1725. class="zuoyeYulan"
  1726. v-if="workStudent[toolIndex].length > 0"
  1727. >
  1728. <span class="worksTitle">作业预览</span>
  1729. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1730. </div>
  1731. <div
  1732. class="worksDetailBox"
  1733. v-if="workStudent[toolIndex].length > 0"
  1734. >
  1735. <div
  1736. class="isWorksName2"
  1737. v-for="(w, wIndex) in workStudent[toolIndex]"
  1738. :key="wIndex"
  1739. @click="
  1740. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1741. "
  1742. >
  1743. {{ w.sName }}
  1744. <img
  1745. class="deleteImg deleteImg2"
  1746. src="../../assets/deleteworks.png"
  1747. v-if="w.userid == userid || tType == 1 || tType == 4"
  1748. @click.stop="deleteWorks(w.wid)"
  1749. alt
  1750. />
  1751. </div>
  1752. <!-- <div
  1753. class="works"
  1754. style="
  1755. width: 200px;
  1756. height: 140px;
  1757. border-radius: 10px;
  1758. box-shadow: 0 0 6px 1px #dfdada;
  1759. overflow: hidden;
  1760. "
  1761. v-for="(w, wIndex) in workStudent[toolIndex]"
  1762. :key="wIndex"
  1763. >
  1764. <div class="workImg">
  1765. <img
  1766. src="../../assets/icon/works/noImg.png"
  1767. @click="
  1768. openTools(
  1769. 4,
  1770. toolIndex,
  1771. taskCount,
  1772. w.works,
  1773. w.sName
  1774. )
  1775. "
  1776. alt
  1777. />
  1778. </div>
  1779. <div class="worksName">
  1780. <div>{{ w.sName }}</div>
  1781. <div>{{ w.time }}</div>
  1782. </div>
  1783. </div> -->
  1784. </div>
  1785. </div>
  1786. <div
  1787. v-if="
  1788. tType &&
  1789. ((tType == 2 && sIsOpen == true) ||
  1790. tType == 1 ||
  1791. tType == 4) &&
  1792. tool.tool.indexOf(62) != -1
  1793. "
  1794. class="worksBox"
  1795. >
  1796. <div
  1797. class="zuoyeYulan"
  1798. v-if="
  1799. worksStudent.length &&
  1800. worksStudent[toolIndex].length > 0
  1801. "
  1802. >
  1803. <div class="worksTop">
  1804. <div>作业预览</div>
  1805. <div
  1806. class="corOpen"
  1807. @click="contract(toolIndex)"
  1808. v-if="
  1809. (isCloseList[toolIndex].isCloseBoolean) &&
  1810. isCloseList[toolIndex].isClose == 0
  1811. "
  1812. >
  1813. 折叠
  1814. </div>
  1815. <div
  1816. class="corOpen"
  1817. @click="contract(toolIndex)"
  1818. v-if="isCloseList[toolIndex].isClose == 1"
  1819. >
  1820. 展开
  1821. </div>
  1822. </div>
  1823. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1824. </div>
  1825. <div>
  1826. <div
  1827. :id="'tool-' + toolIndex"
  1828. :style="{
  1829. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1830. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1831. }"
  1832. class="worksDetailBox"
  1833. v-if="
  1834. worksStudent.length &&
  1835. worksStudent[toolIndex].length > 0
  1836. "
  1837. >
  1838. <div
  1839. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1840. :key="wIndex"
  1841. class="isWorksName2"
  1842. @click="
  1843. openTools(
  1844. 62,
  1845. toolIndex,
  1846. taskCount,
  1847. w.works,
  1848. w.sName
  1849. )
  1850. "
  1851. >
  1852. {{ w.sName }}
  1853. <img
  1854. class="deleteImg deleteImg2"
  1855. src="../../assets/deleteworks.png"
  1856. v-if="
  1857. w.userid == userid || tType == 1 || tType == 4
  1858. "
  1859. @click.stop="deleteWorks(w.wid)"
  1860. alt
  1861. />
  1862. </div>
  1863. </div>
  1864. </div>
  1865. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1866. 未提交
  1867. </div>
  1868. <div
  1869. class="noWorksS"
  1870. v-if="noWorksS && noWorksS[toolIndex].length"
  1871. >
  1872. <div
  1873. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1874. :key="sIndex"
  1875. class="noWorksName"
  1876. >
  1877. <el-tooltip effect="dark" :content="s.student" placement="top">
  1878. <span>{{ s.student }}</span>
  1879. </el-tooltip>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. <div
  1884. v-if="
  1885. tType &&
  1886. tType == 2 &&
  1887. !sIsOpen &&
  1888. tool.tool.indexOf(62) != -1
  1889. "
  1890. class="worksBox"
  1891. >
  1892. <div
  1893. class="zuoyeYulan"
  1894. v-if="workStudent[toolIndex].length > 0"
  1895. >
  1896. <span class="worksTitle">作业预览</span>
  1897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1898. </div>
  1899. <div
  1900. class="worksDetailBox"
  1901. v-if="workStudent[toolIndex].length > 0"
  1902. >
  1903. <div
  1904. class="isWorksName2"
  1905. v-for="(w, wIndex) in workStudent[toolIndex]"
  1906. :key="wIndex"
  1907. @click="
  1908. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1909. "
  1910. >
  1911. {{ w.sName }}
  1912. <img
  1913. class="deleteImg deleteImg2"
  1914. src="../../assets/deleteworks.png"
  1915. v-if="w.userid == userid || tType == 1 || tType == 4"
  1916. @click.stop="deleteWorks(w.wid)"
  1917. alt
  1918. />
  1919. </div>
  1920. </div>
  1921. </div>
  1922. <div
  1923. v-if="
  1924. tType &&
  1925. tType == 2 &&
  1926. !sIsOpen &&
  1927. tool.tool.indexOf(45) != -1
  1928. "
  1929. class="worksBox"
  1930. >
  1931. <div
  1932. class="zuoyeYulan"
  1933. v-if="workStudent[toolIndex].length > 0"
  1934. >
  1935. <span class="worksTitle">作业预览</span>
  1936. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1937. </div>
  1938. <div
  1939. class="worksDetailBox"
  1940. v-if="workStudent[toolIndex].length > 0"
  1941. >
  1942. <div
  1943. class="isWorksName2"
  1944. v-for="(w, wIndex) in workStudent[toolIndex]"
  1945. :key="wIndex"
  1946. @click="
  1947. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1948. "
  1949. >
  1950. {{ w.sName }}
  1951. <img
  1952. class="deleteImg deleteImg2"
  1953. src="../../assets/deleteworks.png"
  1954. v-if="w.userid == userid || tType == 1 || tType == 4"
  1955. @click.stop="deleteWorks(w.wid)"
  1956. alt
  1957. />
  1958. </div>
  1959. </div>
  1960. </div>
  1961. <div
  1962. v-if="
  1963. tType &&
  1964. tType == 2 &&
  1965. !sIsOpen &&
  1966. tool.tool.indexOf(69) != -1
  1967. "
  1968. class="worksBox"
  1969. >
  1970. <div
  1971. class="zuoyeYulan"
  1972. v-if="workStudent[toolIndex].length > 0"
  1973. >
  1974. <span class="worksTitle">作业预览</span>
  1975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1976. </div>
  1977. <div
  1978. class="worksDetailBox"
  1979. v-if="workStudent[toolIndex].length > 0"
  1980. >
  1981. <div
  1982. class="isWorksName2"
  1983. v-for="(w, wIndex) in workStudent[toolIndex]"
  1984. :key="wIndex"
  1985. @click="
  1986. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1987. "
  1988. >
  1989. {{ w.sName }}
  1990. <img
  1991. class="deleteImg deleteImg2"
  1992. src="../../assets/deleteworks.png"
  1993. v-if="w.userid == userid || tType == 1 || tType == 4"
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. </div>
  1999. </div>
  2000. <div
  2001. v-if="
  2002. tType &&
  2003. tType == 2 &&
  2004. !sIsOpen &&
  2005. tool.tool.indexOf(15) != -1
  2006. "
  2007. class="worksBox"
  2008. >
  2009. <div
  2010. class="zuoyeYulan"
  2011. v-if="workStudent[toolIndex].length > 0"
  2012. >
  2013. <span class="worksTitle">作业预览</span>
  2014. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2015. </div>
  2016. <div
  2017. class="worksDetailBox"
  2018. v-if="workStudent[toolIndex].length > 0"
  2019. >
  2020. <div
  2021. class="works"
  2022. v-for="(w, wIndex) in workStudent[toolIndex]"
  2023. :key="wIndex"
  2024. >
  2025. <div class="workImg">
  2026. <!-- <img
  2027. src="../../assets/icon/works/noImg.png"
  2028. @click="openTools(15, toolIndex, taskCount, w.works)"
  2029. alt=""
  2030. />-->
  2031. <div class="answerBg">
  2032. <!-- <div>{{ w.sName }}</div> -->
  2033. <el-tooltip
  2034. class="item"
  2035. effect="light"
  2036. :content="JSON.parse(w.works)[0].answer"
  2037. placement="top"
  2038. >
  2039. <div class="answerContent">
  2040. {{ JSON.parse(w.works)[0].answer }}
  2041. </div>
  2042. </el-tooltip>
  2043. <div
  2044. class="answerScore"
  2045. v-if="w.score"
  2046. @click.stop="openScore(w)"
  2047. :class="{
  2048. rightW:
  2049. w.userid == userid ||
  2050. tType == 1 ||
  2051. tType == 4,
  2052. }"
  2053. >
  2054. {{ JSON.parse(w.score).wScore }}分
  2055. </div>
  2056. <div
  2057. class="answerScore"
  2058. @click.stop="openScore(w)"
  2059. v-else-if="courseDetail.userid == userid"
  2060. :class="{
  2061. rightW:
  2062. w.userid == userid ||
  2063. tType == 1 ||
  2064. tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="comment">
  2080. <div class="worksName">
  2081. <div>{{ w.sName }}</div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. <div
  2089. v-if="
  2090. tType &&
  2091. tType == 2 &&
  2092. !sIsOpen &&
  2093. tool.tool.indexOf(1) != -1
  2094. "
  2095. class="worksBox"
  2096. >
  2097. <div
  2098. class="zuoyeYulan"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <span class="worksTitle">作业预览</span>
  2102. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2103. </div>
  2104. <div
  2105. class="worksDetailBox"
  2106. v-if="workStudent[toolIndex].length > 0"
  2107. >
  2108. <div
  2109. class="works"
  2110. style="
  2111. width: 200px;
  2112. height: 140px;
  2113. margin: 10px 10px 10px 0;
  2114. box-shadow: 0 0 6px 1px #dfdada;
  2115. "
  2116. v-for="(w, wIndex) in workStudent[toolIndex]"
  2117. :key="wIndex"
  2118. >
  2119. <div class="workImg">
  2120. <img
  2121. :src="w.works"
  2122. @click="previewImg(w.works,w)"
  2123. alt
  2124. />
  2125. <div
  2126. class="answerScore"
  2127. v-if="w.score"
  2128. @click.stop="openScore(w)"
  2129. :class="{
  2130. rightW:
  2131. w.userid == userid || tType == 1 || tType == 4,
  2132. }"
  2133. >
  2134. {{ JSON.parse(w.score).wScore }}分
  2135. </div>
  2136. <div
  2137. class="answerScore"
  2138. @click.stop="openScore(w)"
  2139. v-else-if="courseDetail.userid == userid"
  2140. :class="{
  2141. rightW:
  2142. w.userid == userid || tType == 1 || tType == 4,
  2143. }"
  2144. >
  2145. 评分
  2146. </div>
  2147. <img
  2148. class="deleteImg"
  2149. src="../../assets/deleteworks.png"
  2150. v-if="
  2151. w.userid == userid || tType == 1 || tType == 4
  2152. "
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. <div class="worksName">
  2158. <div>{{ w.sName }}</div>
  2159. </div>
  2160. </div>
  2161. </div>
  2162. </div>
  2163. <div
  2164. v-if="
  2165. tType &&
  2166. tType == 2 &&
  2167. !sIsOpen &&
  2168. tool.tool.indexOf(3) != -1
  2169. "
  2170. class="worksBox"
  2171. >
  2172. <div
  2173. class="zuoyeYulan"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <span class="worksTitle">作业预览</span>
  2177. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2178. </div>
  2179. <div
  2180. class="worksDetailBox"
  2181. v-if="workStudent[toolIndex].length > 0"
  2182. >
  2183. <div
  2184. class="works"
  2185. style="
  2186. width: 200px;
  2187. height: 140px;
  2188. margin: 10px 10px 10px 0;
  2189. box-shadow: 0 0 6px 1px #dfdada;
  2190. "
  2191. v-for="(w, wIndex) in workStudent[toolIndex]"
  2192. :key="wIndex"
  2193. >
  2194. <div class="workImg">
  2195. <img
  2196. :src="w.works"
  2197. @click="previewImg(w.works,w)"
  2198. alt
  2199. />
  2200. <div
  2201. class="answerScore"
  2202. v-if="w.score"
  2203. @click.stop="openScore(w)"
  2204. :class="{
  2205. rightW:
  2206. w.userid == userid || tType == 1 || tType == 4,
  2207. }"
  2208. >
  2209. {{ JSON.parse(w.score).wScore }}分
  2210. </div>
  2211. <div
  2212. class="answerScore"
  2213. @click.stop="openScore(w)"
  2214. v-else-if="courseDetail.userid == userid"
  2215. :class="{
  2216. rightW:
  2217. w.userid == userid || tType == 1 || tType == 4,
  2218. }"
  2219. >
  2220. 评分
  2221. </div>
  2222. <img
  2223. class="deleteImg"
  2224. src="../../assets/deleteworks.png"
  2225. v-if="
  2226. w.userid == userid || tType == 1 || tType == 4
  2227. "
  2228. @click.stop="deleteWorks(w.wid)"
  2229. alt
  2230. />
  2231. </div>
  2232. <div class="worksName">
  2233. <div>{{ w.sName }}</div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. <div
  2239. v-if="
  2240. tType &&
  2241. tType == 2 &&
  2242. !sIsOpen &&
  2243. tool.tool.indexOf(6) != -1
  2244. "
  2245. class="worksBox"
  2246. >
  2247. <div
  2248. class="zuoyeYulan"
  2249. v-if="workStudent[toolIndex].length > 0"
  2250. >
  2251. <span class="worksTitle">作业预览</span>
  2252. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2253. </div>
  2254. <div
  2255. class="worksDetailBox"
  2256. v-if="workStudent[toolIndex].length > 0"
  2257. >
  2258. <div
  2259. class="works"
  2260. style="
  2261. width: 200px;
  2262. height: 140px;
  2263. margin: 10px 10px 10px 0;
  2264. box-shadow: 0 0 6px 1px #dfdada;
  2265. "
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <img
  2271. :src="w.works"
  2272. @click="previewImg(w.works,w)"
  2273. alt
  2274. />
  2275. <div
  2276. class="answerScore"
  2277. v-if="w.score"
  2278. @click.stop="openScore(w)"
  2279. :class="{
  2280. rightW:
  2281. w.userid == userid || tType == 1 || tType == 4,
  2282. }"
  2283. >
  2284. {{ JSON.parse(w.score).wScore }}分
  2285. </div>
  2286. <div
  2287. class="answerScore"
  2288. @click.stop="openScore(w)"
  2289. v-else-if="courseDetail.userid == userid"
  2290. :class="{
  2291. rightW:
  2292. w.userid == userid || tType == 1 || tType == 4,
  2293. }"
  2294. >
  2295. 评分
  2296. </div>
  2297. <img
  2298. class="deleteImg"
  2299. src="../../assets/deleteworks.png"
  2300. v-if="
  2301. w.userid == userid || tType == 1 || tType == 4
  2302. "
  2303. @click.stop="deleteWorks(w.wid)"
  2304. alt
  2305. />
  2306. </div>
  2307. <div class="worksName">
  2308. <div>{{ w.sName }}</div>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. </div>
  2313. <div
  2314. v-if="
  2315. tType &&
  2316. tType == 2 &&
  2317. !sIsOpen &&
  2318. tool.tool.indexOf(7) != -1
  2319. "
  2320. class="worksBox"
  2321. >
  2322. <div
  2323. class="zuoyeYulan"
  2324. v-if="workStudent[toolIndex].length > 0"
  2325. >
  2326. <span class="worksTitle">作业预览</span>
  2327. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2328. </div>
  2329. <div
  2330. class="worksDetailBox"
  2331. v-if="workStudent[toolIndex].length > 0"
  2332. >
  2333. <div
  2334. class="works"
  2335. style="
  2336. width: 200px;
  2337. height: 140px;
  2338. margin: 10px 10px 10px 0;
  2339. box-shadow: 0 0 6px 1px #dfdada;
  2340. "
  2341. v-for="(w, wIndex) in workStudent[toolIndex]"
  2342. :key="wIndex"
  2343. >
  2344. <div class="workImg">
  2345. <img
  2346. :src="w.works"
  2347. @click="previewImg(w.works,w)"
  2348. alt
  2349. />
  2350. <div
  2351. class="answerScore"
  2352. v-if="w.score"
  2353. @click.stop="openScore(w)"
  2354. :class="{
  2355. rightW:
  2356. w.userid == userid || tType == 1 || tType == 4,
  2357. }"
  2358. >
  2359. {{ JSON.parse(w.score).wScore }}分
  2360. </div>
  2361. <div
  2362. class="answerScore"
  2363. @click.stop="openScore(w)"
  2364. v-else-if="courseDetail.userid == userid"
  2365. :class="{
  2366. rightW:
  2367. w.userid == userid || tType == 1 || tType == 4,
  2368. }"
  2369. >
  2370. 评分
  2371. </div>
  2372. <img
  2373. class="deleteImg"
  2374. src="../../assets/deleteworks.png"
  2375. v-if="
  2376. w.userid == userid || tType == 1 || tType == 4
  2377. "
  2378. @click.stop="deleteWorks(w.wid)"
  2379. alt
  2380. />
  2381. </div>
  2382. <div class="worksName">
  2383. <div>{{ w.sName }}</div>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. </div>
  2388. <div
  2389. v-if="
  2390. tType &&
  2391. tType == 2 &&
  2392. !sIsOpen &&
  2393. tool.tool.indexOf(26) != -1
  2394. "
  2395. class="worksBox"
  2396. >
  2397. <div
  2398. class="zuoyeYulan"
  2399. v-if="workStudent[toolIndex].length > 0"
  2400. >
  2401. <span class="worksTitle">作业预览</span>
  2402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2403. </div>
  2404. <div
  2405. class="worksDetailBox"
  2406. v-if="workStudent[toolIndex].length > 0"
  2407. >
  2408. <div
  2409. class="works"
  2410. style="
  2411. width: 200px;
  2412. height: 140px;
  2413. margin: 10px 10px 10px 0;
  2414. box-shadow: 0 0 6px 1px #dfdada;
  2415. "
  2416. v-for="(w, wIndex) in workStudent[toolIndex]"
  2417. :key="wIndex"
  2418. >
  2419. <div class="workImg">
  2420. <img
  2421. :src="w.works"
  2422. @click="previewImg(w.works,w)"
  2423. alt
  2424. />
  2425. <img
  2426. class="deleteImg"
  2427. src="../../assets/deleteworks.png"
  2428. v-if="
  2429. w.userid == userid || tType == 1 || tType == 4
  2430. "
  2431. @click.stop="deleteWorks(w.wid)"
  2432. alt
  2433. />
  2434. </div>
  2435. <div class="worksName">
  2436. <div>{{ w.sName }}</div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. <div
  2442. v-if="
  2443. tType &&
  2444. ((tType == 2 && sIsOpen == true) ||
  2445. tType == 1 ||
  2446. tType == 4) &&
  2447. tool.tool.indexOf(16) != -1
  2448. "
  2449. class="worksBox"
  2450. >
  2451. <div
  2452. class="zuoyeYulan"
  2453. v-if="
  2454. (worksStudent.length &&
  2455. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2456. "
  2457. >
  2458. <div class="worksTop">
  2459. <div>作业预览</div>
  2460. <div
  2461. class="corOpen"
  2462. @click="contract(toolIndex)"
  2463. v-if="
  2464. (isCloseList[toolIndex].isCloseBoolean) &&
  2465. isCloseList[toolIndex].isClose == 0
  2466. "
  2467. >
  2468. 折叠
  2469. </div>
  2470. <div
  2471. class="corOpen"
  2472. @click="contract(toolIndex)"
  2473. v-if="isCloseList[toolIndex].isClose == 1"
  2474. >
  2475. 展开
  2476. </div>
  2477. </div>
  2478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2479. </div>
  2480. <div
  2481. class="group_workBox"
  2482. v-for="(g, gindex) in courseGroup.group"
  2483. :key="gindex"
  2484. >
  2485. <div class="group_box">
  2486. <div class="group_title">
  2487. <el-tooltip
  2488. class="item"
  2489. effect="light"
  2490. :content="g.name"
  2491. placement="top"
  2492. >
  2493. <div class="group_name">{{ g.name }}</div>
  2494. </el-tooltip>
  2495. </div>
  2496. <div
  2497. class="group_work"
  2498. v-if="
  2499. g.works &&
  2500. g.works.length &&
  2501. g.works[toolIndex].length
  2502. "
  2503. >
  2504. <div
  2505. class="works"
  2506. style="
  2507. width: 200px;
  2508. height: 140px;
  2509. margin: 10px 10px 10px 0;
  2510. border-radius: 15px;
  2511. box-shadow: 0 0 6px 1px #dfdada;
  2512. "
  2513. v-for="(w, wIndex) in g.works[toolIndex]"
  2514. :key="wIndex"
  2515. :class="w.type == 1 ? 'isTypeOne' : ''"
  2516. >
  2517. <div class="workImg" v-if="w.type == 0">
  2518. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2519. <img
  2520. :src="w.works"
  2521. @click="previewImg(w.works,w)"
  2522. alt
  2523. />
  2524. <div
  2525. class="answerScore"
  2526. v-if="w.score"
  2527. @click.stop="openScore(w)"
  2528. :class="{
  2529. rightW:
  2530. w.userid == userid ||
  2531. tType == 1 ||
  2532. tType == 4 ||
  2533. w.ateacher == userid,
  2534. }"
  2535. >
  2536. {{ JSON.parse(w.score).wScore }}分
  2537. </div>
  2538. <div
  2539. class="answerScore"
  2540. @click.stop="openScore(w)"
  2541. v-else-if="courseDetail.userid == userid"
  2542. :class="{
  2543. rightW:
  2544. w.userid == userid ||
  2545. tType == 1 ||
  2546. tType == 4 ||
  2547. w.ateacher == userid,
  2548. }"
  2549. >
  2550. 评分
  2551. </div>
  2552. <img
  2553. class="deleteImg"
  2554. src="../../assets/deleteworks.png"
  2555. v-if="
  2556. w.userid == userid || tType == 1 || tType == 4
  2557. "
  2558. @click.stop="deleteWorks(w.wid)"
  2559. alt
  2560. />
  2561. </div>
  2562. <div class="workImg" v-if="w.type == 1">
  2563. <img :src="word" @click="openFile(w.works)" alt />
  2564. <!-- @click="openFile(w.works)" -->
  2565. <div
  2566. class="answerScore"
  2567. v-if="w.score"
  2568. @click.stop="openScore(w)"
  2569. :class="{
  2570. rightW:
  2571. w.userid == userid ||
  2572. tType == 1 ||
  2573. tType == 4 ||
  2574. w.ateacher == userid,
  2575. }"
  2576. >
  2577. {{ JSON.parse(w.score).wScore }}分
  2578. </div>
  2579. <div
  2580. class="answerScore"
  2581. @click.stop="openScore(w)"
  2582. v-else-if="courseDetail.userid == userid"
  2583. :class="{
  2584. rightW:
  2585. w.userid == userid ||
  2586. tType == 1 ||
  2587. tType == 4 ||
  2588. w.ateacher == userid,
  2589. }"
  2590. >
  2591. 评分
  2592. </div>
  2593. <img
  2594. class="deleteImg"
  2595. src="../../assets/deleteworks.png"
  2596. v-if="
  2597. w.userid == userid || tType == 1 || tType == 4
  2598. "
  2599. @click.stop="deleteWorks(w.wid)"
  2600. alt
  2601. />
  2602. </div>
  2603. <div class="workImg" v-if="w.type == 3">
  2604. <img
  2605. style="cursor: pointer"
  2606. :src="video"
  2607. @click="openVideo(w)"
  2608. alt
  2609. />
  2610. <!-- @click="openVideo(w.works)" -->
  2611. <div
  2612. class="answerScore"
  2613. v-if="w.score"
  2614. @click.stop="openScore(w)"
  2615. :class="{
  2616. rightW:
  2617. w.userid == userid ||
  2618. tType == 1 ||
  2619. tType == 4 ||
  2620. w.ateacher == userid,
  2621. }"
  2622. >
  2623. {{ JSON.parse(w.score).wScore }}分
  2624. </div>
  2625. <div
  2626. class="answerScore"
  2627. @click.stop="openScore(w)"
  2628. v-else-if="courseDetail.userid == userid"
  2629. :class="{
  2630. rightW:
  2631. w.userid == userid ||
  2632. tType == 1 ||
  2633. tType == 4 ||
  2634. w.ateacher == userid,
  2635. }"
  2636. >
  2637. 评分
  2638. </div>
  2639. <img
  2640. class="deleteImg"
  2641. src="../../assets/deleteworks.png"
  2642. v-if="
  2643. w.userid == userid || tType == 1 || tType == 4
  2644. "
  2645. @click.stop="deleteWorks(w.wid)"
  2646. alt
  2647. />
  2648. </div>
  2649. <div class="workImg" v-if="w.type == 12">
  2650. <img
  2651. style="cursor: pointer"
  2652. :src="word2"
  2653. @click="downloadFile(w.works)"
  2654. alt
  2655. />
  2656. <!-- @click="openVideo(w.works)" -->
  2657. <div
  2658. class="answerScore"
  2659. v-if="w.score"
  2660. @click.stop="openScore(w)"
  2661. :class="{
  2662. rightW:
  2663. w.userid == userid ||
  2664. tType == 1 ||
  2665. tType == 4 ||
  2666. w.ateacher == userid,
  2667. }"
  2668. >
  2669. {{ JSON.parse(w.score).wScore }}分
  2670. </div>
  2671. <div
  2672. class="answerScore"
  2673. @click.stop="openScore(w)"
  2674. v-else-if="courseDetail.userid == userid"
  2675. :class="{
  2676. rightW:
  2677. w.userid == userid ||
  2678. tType == 1 ||
  2679. tType == 4 ||
  2680. w.ateacher == userid,
  2681. }"
  2682. >
  2683. 评分
  2684. </div>
  2685. <img
  2686. class="deleteImg"
  2687. src="../../assets/deleteworks.png"
  2688. v-if="
  2689. w.userid == userid || tType == 1 || tType == 4
  2690. "
  2691. @click.stop="deleteWorks(w.wid)"
  2692. alt
  2693. />
  2694. </div>
  2695. <div class="comment" style="min-width: 200px">
  2696. <div class="worksName">
  2697. <div>{{ w.sName }}</div>
  2698. </div>
  2699. <div class="commentList">
  2700. <div class="commentList">
  2701. <div
  2702. class="commentImg"
  2703. @click="
  2704. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2705. "
  2706. >
  2707. <img
  2708. :src="w.isLikes == true ? likes : noLikes"
  2709. alt=""
  2710. />
  2711. </div>
  2712. <div>{{ w.likesCount }}</div>
  2713. </div>
  2714. <div
  2715. class="commentList"
  2716. style="margin-right: 15px"
  2717. >
  2718. <div
  2719. class="commentImg"
  2720. @click="
  2721. commentOther(
  2722. w,
  2723. toolIndex,
  2724. wIndex,
  2725. null,
  2726. g.id
  2727. )
  2728. "
  2729. >
  2730. <img
  2731. src="../../assets/icon/comment/comment.png"
  2732. alt=""
  2733. />
  2734. </div>
  2735. <div>{{ w.commentCount }}</div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. <div class="group_work" v-else>暂无提交作业</div>
  2742. </div>
  2743. </div>
  2744. <div
  2745. :id="'tool-' + toolIndex"
  2746. :style="{
  2747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2749. }"
  2750. class="worksDetailBox"
  2751. v-if="
  2752. worksStudent.length &&
  2753. worksStudent[toolIndex].length > 0
  2754. "
  2755. >
  2756. <div
  2757. class="works"
  2758. style="
  2759. width: 200px;
  2760. height: 140px;
  2761. margin: 10px 10px 10px 0;
  2762. border-radius: 15px;
  2763. box-shadow: 0 0 6px 1px #dfdada;
  2764. "
  2765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2766. :key="wIndex"
  2767. :class="w.type == 1 ? 'isTypeOne' : ''"
  2768. >
  2769. <div class="workImg" v-if="w.type == 0">
  2770. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2771. <img
  2772. :src="w.works"
  2773. @click="previewImg(w.works,w)"
  2774. alt
  2775. />
  2776. <div
  2777. class="answerScore"
  2778. v-if="w.score"
  2779. @click.stop="openScore(w)"
  2780. :class="{
  2781. rightW:
  2782. w.userid == userid ||
  2783. tType == 1 ||
  2784. tType == 4 ||
  2785. w.ateacher == userid,
  2786. }"
  2787. >
  2788. {{ JSON.parse(w.score).wScore }}分
  2789. </div>
  2790. <div
  2791. class="answerScore"
  2792. @click.stop="openScore(w)"
  2793. v-else-if="courseDetail.userid == userid"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid ||
  2797. tType == 1 ||
  2798. tType == 4 ||
  2799. w.ateacher == userid,
  2800. }"
  2801. >
  2802. 评分
  2803. </div>
  2804. <img
  2805. class="deleteImg"
  2806. src="../../assets/deleteworks.png"
  2807. v-if="
  2808. w.userid == userid || tType == 1 || tType == 4
  2809. "
  2810. @click.stop="deleteWorks(w.wid)"
  2811. alt
  2812. />
  2813. </div>
  2814. <div class="workImg" v-if="w.type == 1">
  2815. <img :src="word" @click="openFile(w.works)" alt />
  2816. <!-- @click="openFile(w.works)" -->
  2817. <div
  2818. class="answerScore"
  2819. v-if="w.score"
  2820. @click.stop="openScore(w)"
  2821. :class="{
  2822. rightW:
  2823. w.userid == userid ||
  2824. tType == 1 ||
  2825. tType == 4 ||
  2826. w.ateacher == userid,
  2827. }"
  2828. >
  2829. {{ JSON.parse(w.score).wScore }}分
  2830. </div>
  2831. <div
  2832. class="answerScore"
  2833. @click.stop="openScore(w)"
  2834. v-else-if="courseDetail.userid == userid"
  2835. :class="{
  2836. rightW:
  2837. w.userid == userid ||
  2838. tType == 1 ||
  2839. tType == 4 ||
  2840. w.ateacher == userid,
  2841. }"
  2842. >
  2843. 评分
  2844. </div>
  2845. <img
  2846. class="deleteImg"
  2847. src="../../assets/deleteworks.png"
  2848. v-if="
  2849. w.userid == userid || tType == 1 || tType == 4
  2850. "
  2851. @click.stop="deleteWorks(w.wid)"
  2852. alt
  2853. />
  2854. </div>
  2855. <div class="workImg" v-if="w.type == 3">
  2856. <img
  2857. style="cursor: pointer"
  2858. :src="video"
  2859. @click="openVideo(w)"
  2860. alt
  2861. />
  2862. <!-- @click="openVideo(w.works)" -->
  2863. <div
  2864. class="answerScore"
  2865. v-if="w.score"
  2866. @click.stop="openScore(w)"
  2867. :class="{
  2868. rightW:
  2869. w.userid == userid ||
  2870. tType == 1 ||
  2871. tType == 4 ||
  2872. w.ateacher == userid,
  2873. }"
  2874. >
  2875. {{ JSON.parse(w.score).wScore }}分
  2876. </div>
  2877. <div
  2878. class="answerScore"
  2879. @click.stop="openScore(w)"
  2880. v-else-if="courseDetail.userid == userid"
  2881. :class="{
  2882. rightW:
  2883. w.userid == userid ||
  2884. tType == 1 ||
  2885. tType == 4 ||
  2886. w.ateacher == userid,
  2887. }"
  2888. >
  2889. 评分
  2890. </div>
  2891. <img
  2892. class="deleteImg"
  2893. src="../../assets/deleteworks.png"
  2894. v-if="
  2895. w.userid == userid || tType == 1 || tType == 4
  2896. "
  2897. @click.stop="deleteWorks(w.wid)"
  2898. alt
  2899. />
  2900. </div>
  2901. <div class="workImg" v-if="w.type == 12">
  2902. <img
  2903. style="cursor: pointer"
  2904. :src="word2"
  2905. @click="downloadFile(w.works)"
  2906. alt
  2907. />
  2908. <!-- @click="openVideo(w.works)" -->
  2909. <div
  2910. class="answerScore"
  2911. v-if="w.score"
  2912. @click.stop="openScore(w)"
  2913. :class="{
  2914. rightW:
  2915. w.userid == userid ||
  2916. tType == 1 ||
  2917. tType == 4 ||
  2918. w.ateacher == userid,
  2919. }"
  2920. >
  2921. {{ JSON.parse(w.score).wScore }}分
  2922. </div>
  2923. <div
  2924. class="answerScore"
  2925. @click.stop="openScore(w)"
  2926. v-else-if="courseDetail.userid == userid"
  2927. :class="{
  2928. rightW:
  2929. w.userid == userid ||
  2930. tType == 1 ||
  2931. tType == 4 ||
  2932. w.ateacher == userid,
  2933. }"
  2934. >
  2935. 评分
  2936. </div>
  2937. <img
  2938. class="deleteImg"
  2939. src="../../assets/deleteworks.png"
  2940. v-if="
  2941. w.userid == userid || tType == 1 || tType == 4
  2942. "
  2943. @click.stop="deleteWorks(w.wid)"
  2944. alt
  2945. />
  2946. </div>
  2947. <div class="comment" style="min-width: 200px">
  2948. <div class="worksName">
  2949. <div>{{ w.sName }}</div>
  2950. </div>
  2951. <div class="commentList">
  2952. <div class="commentList">
  2953. <div
  2954. class="commentImg"
  2955. @click="
  2956. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2957. "
  2958. >
  2959. <img
  2960. :src="w.isLikes == true ? likes : noLikes"
  2961. alt=""
  2962. />
  2963. </div>
  2964. <div>{{ w.likesCount }}</div>
  2965. </div>
  2966. <div class="commentList" style="margin-right: 15px">
  2967. <div
  2968. class="commentImg"
  2969. @click="commentOther(w, toolIndex, wIndex)"
  2970. >
  2971. <img
  2972. src="../../assets/icon/comment/comment.png"
  2973. alt=""
  2974. />
  2975. </div>
  2976. <div>{{ w.commentCount }}</div>
  2977. </div>
  2978. </div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2983. 未提交
  2984. </div>
  2985. <div
  2986. class="noWorksS"
  2987. v-if="noWorksS && noWorksS[toolIndex].length"
  2988. >
  2989. <div
  2990. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2991. :key="sIndex"
  2992. class="noWorksName"
  2993. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2994. >
  2995. <el-tooltip effect="dark" :content="s.student" placement="top">
  2996. <span>{{ s.student }}</span>
  2997. </el-tooltip>
  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(70) != -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. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3039. </div>
  3040. <div
  3041. :id="'tool-' + toolIndex"
  3042. :style="{
  3043. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3044. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3045. }"
  3046. class="worksDetailBox"
  3047. v-if="
  3048. worksStudent.length &&
  3049. worksStudent[toolIndex].length > 0
  3050. "
  3051. >
  3052. <div
  3053. class="works"
  3054. style="
  3055. width: 200px;
  3056. height: 140px;
  3057. margin: 10px 10px 10px 0;
  3058. border-radius: 15px;
  3059. box-shadow: 0 0 6px 1px #dfdada;
  3060. "
  3061. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3062. :key="wIndex"
  3063. :class="w.type == 1 ? 'isTypeOne' : ''"
  3064. >
  3065. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3066. <img :src="word" alt />
  3067. <img
  3068. class="deleteImg"
  3069. src="../../assets/deleteworks.png"
  3070. v-if="
  3071. w.userid == userid || tType == 1 || tType == 4
  3072. "
  3073. @click.stop="deleteWorks(w.wid)"
  3074. alt
  3075. />
  3076. </div>
  3077. <div class="comment" style="min-width: 200px">
  3078. <div class="worksName">
  3079. <div>{{ w.sName }}</div>
  3080. </div>
  3081. </div>
  3082. </div>
  3083. </div>
  3084. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3085. 未提交
  3086. </div>
  3087. <div
  3088. class="noWorksS"
  3089. v-if="noWorksS && noWorksS[toolIndex].length"
  3090. >
  3091. <div
  3092. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3093. :key="sIndex"
  3094. class="noWorksName"
  3095. >
  3096. <el-tooltip effect="dark" :content="s.student" placement="top">
  3097. <span>{{ s.student }}</span>
  3098. </el-tooltip>
  3099. </div>
  3100. </div>
  3101. </div>
  3102. <div
  3103. v-if="
  3104. tType &&
  3105. tType == 2 &&
  3106. !sIsOpen &&
  3107. tool.tool.indexOf(70) != -1
  3108. "
  3109. class="worksBox"
  3110. >
  3111. <div
  3112. class="zuoyeYulan"
  3113. v-if="workStudent[toolIndex].length > 0"
  3114. >
  3115. <span class="worksTitle">作业预览</span>
  3116. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3117. </div>
  3118. <div
  3119. class="worksDetailBox"
  3120. v-if="workStudent[toolIndex].length > 0"
  3121. >
  3122. <div
  3123. class="works"
  3124. style="
  3125. width: 200px;
  3126. height: 140px;
  3127. margin: 10px 10px 10px 0;
  3128. box-shadow: 0 0 6px 1px #dfdada;
  3129. "
  3130. v-for="(w, wIndex) in workStudent[toolIndex]"
  3131. :key="wIndex"
  3132. >
  3133. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3134. <img :src="word" alt />
  3135. <img
  3136. class="deleteImg"
  3137. src="../../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="worksName">
  3146. <div>{{ w.sName }}</div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div
  3152. v-if="
  3153. tType &&
  3154. ((tType == 2 && sIsOpen == true) ||
  3155. tType == 1 ||
  3156. tType == 4) &&
  3157. tool.tool.indexOf(32) != -1
  3158. "
  3159. class="worksBox"
  3160. >
  3161. <div
  3162. class="zuoyeYulan"
  3163. v-if="
  3164. worksStudent.length &&
  3165. worksStudent[toolIndex].length > 0
  3166. "
  3167. >
  3168. <div class="worksTop">
  3169. <div>作业预览</div>
  3170. <div
  3171. class="corOpen"
  3172. @click="contract(toolIndex)"
  3173. v-if="
  3174. (isCloseList[toolIndex].isCloseBoolean) &&
  3175. isCloseList[toolIndex].isClose == 0
  3176. "
  3177. >
  3178. 折叠
  3179. </div>
  3180. <div
  3181. class="corOpen"
  3182. @click="contract(toolIndex)"
  3183. v-if="isCloseList[toolIndex].isClose == 1"
  3184. >
  3185. 展开
  3186. </div>
  3187. </div>
  3188. </div>
  3189. <div
  3190. :id="'tool-' + toolIndex"
  3191. :style="{
  3192. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3193. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3194. }"
  3195. class="worksDetailBox"
  3196. v-if="
  3197. worksStudent.length &&
  3198. worksStudent[toolIndex].length > 0
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3211. :key="wIndex"
  3212. :class="w.type == 1 ? 'isTypeOne' : ''"
  3213. >
  3214. <div class="workImg">
  3215. <img
  3216. :src="word2"
  3217. @click="downloadFile(w.works)"
  3218. alt
  3219. />
  3220. <div
  3221. class="answerScore"
  3222. v-if="w.score"
  3223. @click.stop="openScore(w)"
  3224. :class="{
  3225. rightW:
  3226. w.userid == userid ||
  3227. tType == 1 ||
  3228. tType == 4 ||
  3229. w.ateacher == userid,
  3230. }"
  3231. >
  3232. {{ JSON.parse(w.score).wScore }}分
  3233. </div>
  3234. <div
  3235. class="answerScore"
  3236. @click.stop="openScore(w)"
  3237. v-else-if="courseDetail.userid == userid"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid,
  3244. }"
  3245. >
  3246. 评分
  3247. </div>
  3248. <img
  3249. class="deleteImg"
  3250. src="../../assets/deleteworks.png"
  3251. v-if="
  3252. w.userid == userid || tType == 1 || tType == 4
  3253. "
  3254. @click.stop="deleteWorks(w.wid)"
  3255. alt
  3256. />
  3257. </div>
  3258. <div class="comment" style="min-width: 200px">
  3259. <div class="worksName">
  3260. <div>{{ w.sName }}</div>
  3261. </div>
  3262. <div class="commentList">
  3263. <div class="commentList">
  3264. <div
  3265. class="commentImg"
  3266. @click="
  3267. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3268. "
  3269. >
  3270. <img
  3271. :src="w.isLikes == true ? likes : noLikes"
  3272. alt=""
  3273. />
  3274. </div>
  3275. <div>{{ w.likesCount }}</div>
  3276. </div>
  3277. <div class="commentList" style="margin-right: 15px">
  3278. <div
  3279. class="commentImg"
  3280. @click="commentOther(w, toolIndex, wIndex)"
  3281. >
  3282. <img
  3283. src="../../assets/icon/comment/comment.png"
  3284. alt=""
  3285. />
  3286. </div>
  3287. <div>{{ w.commentCount }}</div>
  3288. </div>
  3289. </div>
  3290. </div>
  3291. </div>
  3292. </div>
  3293. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3294. 未提交
  3295. </div>
  3296. <div
  3297. class="noWorksS"
  3298. v-if="noWorksS && noWorksS[toolIndex].length"
  3299. >
  3300. <div
  3301. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3302. :key="sIndex"
  3303. class="noWorksName"
  3304. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3305. >
  3306. <el-tooltip effect="dark" :content="s.student" placement="top">
  3307. <span>{{ s.student }}</span>
  3308. </el-tooltip>
  3309. </div>
  3310. </div>
  3311. </div>
  3312. <div
  3313. v-if="
  3314. tType &&
  3315. ((tType == 2 && sIsOpen == true) ||
  3316. tType == 1 ||
  3317. tType == 4) &&
  3318. tool.tool.indexOf(57) != -1
  3319. "
  3320. class="worksBox"
  3321. >
  3322. <div
  3323. class="zuoyeYulan"
  3324. v-if="
  3325. worksStudent.length &&
  3326. worksStudent[toolIndex].length > 0
  3327. "
  3328. >
  3329. <div class="worksTop">
  3330. <div>作业预览</div>
  3331. <div
  3332. class="corOpen"
  3333. @click="contract(toolIndex)"
  3334. v-if="
  3335. (isCloseList[toolIndex].isCloseBoolean) &&
  3336. isCloseList[toolIndex].isClose == 0
  3337. "
  3338. >
  3339. 折叠
  3340. </div>
  3341. <div
  3342. class="corOpen"
  3343. @click="contract(toolIndex)"
  3344. v-if="isCloseList[toolIndex].isClose == 1"
  3345. >
  3346. 展开
  3347. </div>
  3348. </div>
  3349. </div>
  3350. <div
  3351. :id="'tool-' + toolIndex"
  3352. :style="{
  3353. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3354. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3355. }"
  3356. class="worksDetailBox"
  3357. v-if="
  3358. worksStudent.length &&
  3359. worksStudent[toolIndex].length > 0
  3360. "
  3361. >
  3362. <div
  3363. class="works"
  3364. style="
  3365. width: 200px;
  3366. height: 140px;
  3367. margin: 10px 10px 10px 0;
  3368. border-radius: 15px;
  3369. box-shadow: 0 0 6px 1px #dfdada;
  3370. "
  3371. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3372. :key="wIndex"
  3373. :class="w.type == 1 ? 'isTypeOne' : ''"
  3374. >
  3375. <div class="workImg">
  3376. <img
  3377. :src="word2"
  3378. @click="downloadFile(w.works)"
  3379. v-if="w.type == 12"
  3380. alt
  3381. />
  3382. <img
  3383. :src="word2"
  3384. @click="
  3385. openCocoPi(57, toolIndex, w.userid, w.sName)
  3386. "
  3387. v-else-if="w.type == 15"
  3388. alt
  3389. />
  3390. <div
  3391. class="answerScore"
  3392. v-if="w.score"
  3393. @click.stop="openScore(w)"
  3394. :class="{
  3395. rightW:
  3396. w.userid == userid ||
  3397. tType == 1 ||
  3398. tType == 4 ||
  3399. w.ateacher == userid,
  3400. }"
  3401. >
  3402. {{ JSON.parse(w.score).wScore }}分
  3403. </div>
  3404. <div
  3405. class="answerScore"
  3406. @click.stop="openScore(w)"
  3407. v-else-if="courseDetail.userid == userid"
  3408. :class="{
  3409. rightW:
  3410. w.userid == userid ||
  3411. tType == 1 ||
  3412. tType == 4 ||
  3413. w.ateacher == userid,
  3414. }"
  3415. >
  3416. 评分
  3417. </div>
  3418. <img
  3419. class="deleteImg"
  3420. src="../../assets/deleteworks.png"
  3421. v-if="
  3422. w.userid == userid || tType == 1 || tType == 4
  3423. "
  3424. @click.stop="deleteWorks(w.wid)"
  3425. alt
  3426. />
  3427. </div>
  3428. <div class="comment" style="min-width: 200px">
  3429. <div class="worksName">
  3430. <div>{{ w.sName }}</div>
  3431. </div>
  3432. <div class="commentList">
  3433. <div class="commentList">
  3434. <div
  3435. class="commentImg"
  3436. @click="
  3437. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3438. "
  3439. >
  3440. <img
  3441. :src="w.isLikes == true ? likes : noLikes"
  3442. alt=""
  3443. />
  3444. </div>
  3445. <div>{{ w.likesCount }}</div>
  3446. </div>
  3447. <div class="commentList" style="margin-right: 15px">
  3448. <div
  3449. class="commentImg"
  3450. @click="commentOther(w, toolIndex, wIndex)"
  3451. >
  3452. <img
  3453. src="../../assets/icon/comment/comment.png"
  3454. alt=""
  3455. />
  3456. </div>
  3457. <div>{{ w.commentCount }}</div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3464. 未提交
  3465. </div>
  3466. <div
  3467. class="noWorksS"
  3468. v-if="noWorksS && noWorksS[toolIndex].length"
  3469. >
  3470. <div
  3471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3472. :key="sIndex"
  3473. class="noWorksName"
  3474. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3475. >
  3476. <el-tooltip effect="dark" :content="s.student" placement="top">
  3477. <span>{{ s.student }}</span>
  3478. </el-tooltip>
  3479. </div>
  3480. </div>
  3481. </div>
  3482. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3483. <div
  3484. class="zuoyeYulan"
  3485. v-if="
  3486. worksStudent.length &&
  3487. worksStudent[toolIndex].length > 0
  3488. "
  3489. >
  3490. <span class="worksTitle">作业预览</span>
  3491. <div
  3492. class="corOpen"
  3493. @click="contract(toolIndex)"
  3494. v-if="
  3495. (isCloseList[toolIndex].isCloseBoolean) &&
  3496. isCloseList[toolIndex].isClose == 0
  3497. "
  3498. >
  3499. 折叠
  3500. </div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="isCloseList[toolIndex].isClose == 1"
  3505. >
  3506. 展开
  3507. </div>
  3508. </div>
  3509. <div
  3510. :id="'tool-' + toolIndex"
  3511. :style="{
  3512. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3513. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3514. }"
  3515. class="worksDetailBox"
  3516. v-if="
  3517. worksStudent.length &&
  3518. worksStudent[toolIndex].length > 0
  3519. "
  3520. >
  3521. <div
  3522. class="works"
  3523. style="
  3524. width: 200px;
  3525. height: 140px;
  3526. margin: 10px 10px 10px 0;
  3527. border-radius: 15px;
  3528. box-shadow: 0 0 6px 1px #dfdada;
  3529. "
  3530. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3531. :key="wIndex"
  3532. :class="w.type == 1 ? 'isTypeOne' : ''"
  3533. >
  3534. <div class="workImg" v-if="w.type == 0">
  3535. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3536. <img
  3537. :src="w.works"
  3538. @click="previewImg(w.works,w)"
  3539. alt
  3540. />
  3541. <div
  3542. class="answerScore"
  3543. v-if="w.score"
  3544. @click.stop="openScore(w)"
  3545. :class="{
  3546. rightW:
  3547. w.userid == userid ||
  3548. tType == 1 ||
  3549. tType == 4 ||
  3550. w.ateacher == userid,
  3551. }"
  3552. >
  3553. {{ JSON.parse(w.score).wScore }}分
  3554. </div>
  3555. <div
  3556. class="answerScore"
  3557. @click.stop="openScore(w)"
  3558. v-else-if="courseDetail.userid == userid"
  3559. :class="{
  3560. rightW:
  3561. w.userid == userid ||
  3562. tType == 1 ||
  3563. tType == 4 ||
  3564. w.ateacher == userid,
  3565. }"
  3566. >
  3567. 评分
  3568. </div>
  3569. <img
  3570. class="deleteImg"
  3571. src="../../assets/deleteworks.png"
  3572. v-if="
  3573. w.userid == userid || tType == 1 || tType == 4
  3574. "
  3575. @click.stop="deleteWorks(w.wid)"
  3576. alt
  3577. />
  3578. </div>
  3579. <div
  3580. class="workImg"
  3581. style="cursor: pointer"
  3582. v-if="w.type == 1"
  3583. >
  3584. <img :src="word" @click="openFile(w.works)" alt />
  3585. <!-- @click="openFile(w.works)" -->
  3586. <div
  3587. class="answerScore"
  3588. v-if="w.score"
  3589. @click.stop="openScore(w)"
  3590. :class="{
  3591. rightW:
  3592. w.userid == userid ||
  3593. tType == 1 ||
  3594. tType == 4 ||
  3595. w.ateacher == userid,
  3596. }"
  3597. >
  3598. {{ JSON.parse(w.score).wScore }}分
  3599. </div>
  3600. <div
  3601. class="answerScore"
  3602. @click.stop="openScore(w)"
  3603. v-else-if="courseDetail.userid == userid"
  3604. :class="{
  3605. rightW:
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4 ||
  3609. w.ateacher == userid,
  3610. }"
  3611. >
  3612. 评分
  3613. </div>
  3614. <img
  3615. class="deleteImg"
  3616. src="../../assets/deleteworks.png"
  3617. v-if="
  3618. w.userid == userid || tType == 1 || tType == 4
  3619. "
  3620. @click.stop="deleteWorks(w.wid)"
  3621. alt
  3622. />
  3623. </div>
  3624. <div class="workImg" v-if="w.type == 3">
  3625. <img
  3626. style="cursor: pointer"
  3627. :src="video"
  3628. @click="openVideo(w)"
  3629. alt
  3630. />
  3631. <!-- @click="openVideo(w.works)" -->
  3632. <div
  3633. class="answerScore"
  3634. v-if="w.score"
  3635. @click.stop="openScore(w)"
  3636. :class="{
  3637. rightW:
  3638. w.userid == userid ||
  3639. tType == 1 ||
  3640. tType == 4 ||
  3641. w.ateacher == userid,
  3642. }"
  3643. >
  3644. {{ JSON.parse(w.score).wScore }}分
  3645. </div>
  3646. <div
  3647. class="answerScore"
  3648. @click.stop="openScore(w)"
  3649. v-else-if="courseDetail.userid == userid"
  3650. :class="{
  3651. rightW:
  3652. w.userid == userid ||
  3653. tType == 1 ||
  3654. tType == 4 ||
  3655. w.ateacher == userid,
  3656. }"
  3657. >
  3658. 评分
  3659. </div>
  3660. <img
  3661. class="deleteImg"
  3662. src="../../assets/deleteworks.png"
  3663. v-if="
  3664. w.userid == userid || tType == 1 || tType == 4
  3665. "
  3666. @click.stop="deleteWorks(w.wid)"
  3667. alt
  3668. />
  3669. </div>
  3670. <div class="comment" style="min-width: 200px">
  3671. <div class="worksName">
  3672. <div
  3673. style="cursor: pointer"
  3674. @click="
  3675. openSname(w.sName, w.wid, toolIndex, w.userid)
  3676. "
  3677. >
  3678. {{ w.sName }}
  3679. </div>
  3680. </div>
  3681. <div class="commentList">
  3682. <div class="commentList">
  3683. <div
  3684. class="commentImg"
  3685. @click="
  3686. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3687. "
  3688. >
  3689. <img
  3690. :src="w.isLikes == true ? likes : noLikes"
  3691. alt=""
  3692. />
  3693. </div>
  3694. <div>{{ w.likesCount }}</div>
  3695. </div>
  3696. <div class="commentList" style="margin-right: 15px">
  3697. <div
  3698. class="commentImg"
  3699. @click="commentOther(w, toolIndex, wIndex)"
  3700. >
  3701. <img
  3702. src="../../assets/icon/comment/comment.png"
  3703. alt=""
  3704. />
  3705. </div>
  3706. <div>{{ w.commentCount }}</div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. </div>
  3711. </div>
  3712. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3713. 未提交
  3714. </div>
  3715. <div
  3716. class="noWorksS"
  3717. v-if="noWorksS && noWorksS[toolIndex].length"
  3718. >
  3719. <div
  3720. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3721. :key="sIndex"
  3722. class="noWorksName"
  3723. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3724. >
  3725. <el-tooltip effect="dark" :content="s.student" placement="top">
  3726. <span>{{ s.student }}</span>
  3727. </el-tooltip>
  3728. </div>
  3729. </div>
  3730. </div>
  3731. <div
  3732. v-if="
  3733. tType &&
  3734. ((tType == 2 && sIsOpen == true) ||
  3735. tType == 1 ||
  3736. tType == 4) &&
  3737. tool.tool.indexOf(4) != -1 &&
  3738. (tool.askJson[0].answer ||
  3739. tool.askJson[0].answer === 0) &&
  3740. checkJson[toolIndex].length
  3741. "
  3742. class="xuan_right_box"
  3743. >
  3744. <div
  3745. class="tool_right_box"
  3746. v-for="(item, index) in tool.askJson"
  3747. :key="index"
  3748. >
  3749. <div style="width: calc(100% - 30px);">
  3750. <el-tooltip
  3751. effect="light"
  3752. :content="index + 1 + '、' + item.askstitle"
  3753. placement="top"
  3754. popper-class="text_tooltip"
  3755. >
  3756. <div
  3757. style="
  3758. width: calc(100% - 130px);
  3759. display: block;
  3760. white-space: nowrap;
  3761. overflow: hidden;
  3762. text-overflow: ellipsis;
  3763. word-break: break-word;
  3764. cursor: pointer;
  3765. "
  3766. >
  3767. {{ index + 1 + "、" + item.askstitle }}
  3768. </div>
  3769. </el-tooltip>
  3770. </div>
  3771. <div class="right_box_xuan">
  3772. <span>正确率</span>
  3773. <span>{{
  3774. (checkJson[toolIndex][index].right
  3775. ? checkJson[toolIndex][index].right
  3776. : 0) + "%"
  3777. }}</span>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. <div
  3782. class="xuan_right_box"
  3783. style="background: unset; padding: 0 10px"
  3784. v-if="
  3785. tType &&
  3786. ((tType == 2 && sIsOpen == true) ||
  3787. tType == 1 ||
  3788. tType == 4) &&
  3789. tool.tool.indexOf(4) != -1
  3790. "
  3791. >
  3792. <AskStatic
  3793. v-if="
  3794. worksStudent.length &&
  3795. worksStudent[toolIndex].length > 0
  3796. "
  3797. :askJSON="tool"
  3798. :checkJson="checkJson[toolIndex]"
  3799. ></AskStatic>
  3800. </div>
  3801. <div
  3802. v-if="
  3803. tType &&
  3804. ((tType == 2 && sIsOpen == true) ||
  3805. tType == 1 ||
  3806. tType == 4) &&
  3807. tool.tool.indexOf(4) != -1
  3808. "
  3809. class="worksBox"
  3810. >
  3811. <div
  3812. class="zuoyeYulan"
  3813. v-if="
  3814. worksStudent.length &&
  3815. worksStudent[toolIndex].length > 0
  3816. "
  3817. >
  3818. <div class="worksTop">
  3819. <div>作业预览</div>
  3820. <div
  3821. class="corOpen"
  3822. @click="contract(toolIndex)"
  3823. v-if="
  3824. (isCloseList[toolIndex].isCloseBoolean) &&
  3825. isCloseList[toolIndex].isClose == 0
  3826. "
  3827. >
  3828. 折叠
  3829. </div>
  3830. <div
  3831. class="corOpen"
  3832. @click="contract(toolIndex)"
  3833. v-if="isCloseList[toolIndex].isClose == 1"
  3834. >
  3835. 展开
  3836. </div>
  3837. </div>
  3838. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3839. </div>
  3840. <div>
  3841. <div
  3842. :id="'tool-' + toolIndex"
  3843. :style="{
  3844. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3845. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3846. }"
  3847. class="worksDetailBox"
  3848. v-if="
  3849. worksStudent.length &&
  3850. worksStudent[toolIndex].length > 0
  3851. "
  3852. >
  3853. <div
  3854. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3855. :key="wIndex"
  3856. class="isWorksName2"
  3857. @click="
  3858. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3859. "
  3860. >
  3861. {{ w.sName }}
  3862. <img
  3863. class="deleteImg deleteImg2"
  3864. src="../../assets/deleteworks.png"
  3865. v-if="
  3866. w.userid == userid || tType == 1 || tType == 4
  3867. "
  3868. @click.stop="deleteWorks(w.wid)"
  3869. alt
  3870. />
  3871. </div>
  3872. <!-- <div class="works" style="
  3873. width: 200px;
  3874. height: 140px;
  3875. border-radius: 10px;
  3876. box-shadow: 0 0 6px 1px #dfdada;
  3877. overflow: hidden;
  3878. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3879. <div class="workImg">
  3880. <img src="../../assets/icon/works/noImg.png" @click="
  3881. openTools(
  3882. 4,
  3883. toolIndex,
  3884. taskCount,
  3885. w.works,
  3886. w.sName
  3887. )
  3888. " alt />
  3889. </div>
  3890. <div class="worksName">
  3891. <div>{{ w.sName }}</div>
  3892. <div>{{ w.time }}</div>
  3893. </div>
  3894. </div> -->
  3895. </div>
  3896. </div>
  3897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3898. 未提交
  3899. </div>
  3900. <div
  3901. class="noWorksS"
  3902. v-if="noWorksS && noWorksS[toolIndex].length"
  3903. >
  3904. <div
  3905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3906. :key="sIndex"
  3907. class="noWorksName"
  3908. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3909. >
  3910. <el-tooltip effect="dark" :content="s.student" placement="top">
  3911. <span>{{ s.student }}</span>
  3912. </el-tooltip>
  3913. </div>
  3914. </div>
  3915. </div>
  3916. <div
  3917. v-if="
  3918. tType &&
  3919. ((tType == 2 && sIsOpen == true) ||
  3920. tType == 1 ||
  3921. tType == 4) &&
  3922. tool.tool.indexOf(45) != -1 &&
  3923. (tool.testJson.testJson[0].answer ||
  3924. tool.testJson.testJson[0].answer === 0) &&
  3925. checkJson[toolIndex].length
  3926. "
  3927. class="xuan_right_box"
  3928. >
  3929. <div
  3930. class="tool_right_box"
  3931. v-for="(item, index) in tool.testJson.testJson"
  3932. :key="index"
  3933. >
  3934. <div class="right_box_xuan" style="margin-right: 10px">
  3935. <span>正确率</span>
  3936. <span>{{
  3937. (checkJson[toolIndex][index].right
  3938. ? checkJson[toolIndex][index].right
  3939. : 0) + "%"
  3940. }}</span>
  3941. </div>
  3942. <div style="width: calc(100% - 30px);">
  3943. <el-tooltip
  3944. effect="light"
  3945. :content="index + 1 + '、' + item.teststitle"
  3946. placement="top"
  3947. popper-class="text_tooltip"
  3948. >
  3949. <div
  3950. style="
  3951. width: calc(100% - 130px);
  3952. display: block;
  3953. white-space: nowrap;
  3954. overflow: hidden;
  3955. text-overflow: ellipsis;
  3956. word-break: break-word;
  3957. cursor: pointer;
  3958. "
  3959. >
  3960. {{ index + 1 + "、" + item.teststitle }}
  3961. </div>
  3962. </el-tooltip>
  3963. </div>
  3964. </div>
  3965. </div>
  3966. <div
  3967. class="xuan_right_box"
  3968. style="background: unset; padding: 0 10px; width: 91.5%"
  3969. v-if="
  3970. tType &&
  3971. ((tType == 2 && sIsOpen == true) ||
  3972. tType == 1 ||
  3973. tType == 4) &&
  3974. tool.tool.indexOf(45) != -1
  3975. "
  3976. >
  3977. <AskStatic2
  3978. v-if="
  3979. worksStudent.length &&
  3980. worksStudent[toolIndex].length > 0
  3981. "
  3982. :askJSON="tool"
  3983. :checkJson="checkJson[toolIndex]"
  3984. ></AskStatic2>
  3985. </div>
  3986. <div
  3987. v-if="
  3988. tType &&
  3989. ((tType == 2 && sIsOpen == true) ||
  3990. tType == 1 ||
  3991. tType == 4) &&
  3992. tool.tool.indexOf(45) != -1
  3993. "
  3994. class="worksBox"
  3995. >
  3996. <div
  3997. class="zuoyeYulan"
  3998. v-if="
  3999. worksStudent.length &&
  4000. worksStudent[toolIndex].length > 0
  4001. "
  4002. >
  4003. <div class="worksTop">
  4004. <div>作业预览</div>
  4005. <div
  4006. class="corOpen"
  4007. @click="contract(toolIndex)"
  4008. v-if="
  4009. (isCloseList[toolIndex].isCloseBoolean) &&
  4010. isCloseList[toolIndex].isClose == 0
  4011. "
  4012. >
  4013. 折叠
  4014. </div>
  4015. <div
  4016. class="corOpen"
  4017. @click="contract(toolIndex)"
  4018. v-if="isCloseList[toolIndex].isClose == 1"
  4019. >
  4020. 展开
  4021. </div>
  4022. </div>
  4023. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4024. </div>
  4025. <div>
  4026. <div
  4027. :id="'tool-' + toolIndex"
  4028. :style="{
  4029. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4030. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4031. }"
  4032. class="worksDetailBox"
  4033. v-if="
  4034. worksStudent.length &&
  4035. worksStudent[toolIndex].length > 0
  4036. "
  4037. >
  4038. <div
  4039. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4040. :key="wIndex"
  4041. class="isWorksName2"
  4042. @click="
  4043. openTools(
  4044. 45,
  4045. toolIndex,
  4046. taskCount,
  4047. w.works,
  4048. w.sName
  4049. )
  4050. "
  4051. >
  4052. {{ w.sName }}
  4053. <img
  4054. class="deleteImg deleteImg2"
  4055. src="../../assets/deleteworks.png"
  4056. v-if="
  4057. w.userid == userid || tType == 1 || tType == 4
  4058. "
  4059. @click.stop="deleteWorks(w.wid)"
  4060. alt
  4061. />
  4062. </div>
  4063. </div>
  4064. </div>
  4065. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4066. 未提交
  4067. </div>
  4068. <div
  4069. class="noWorksS"
  4070. v-if="noWorksS && noWorksS[toolIndex].length"
  4071. >
  4072. <div
  4073. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4074. :key="sIndex"
  4075. class="noWorksName"
  4076. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4077. >
  4078. <el-tooltip effect="dark" :content="s.student" placement="top">
  4079. <span>{{ s.student }}</span>
  4080. </el-tooltip>
  4081. </div>
  4082. </div>
  4083. </div>
  4084. <div
  4085. v-if="
  4086. tType &&
  4087. ((tType == 2 && sIsOpen == true) ||
  4088. tType == 1 ||
  4089. tType == 4) &&
  4090. tool.tool.indexOf(69) != -1
  4091. "
  4092. class="worksBox"
  4093. >
  4094. <div
  4095. class="zuoyeYulan"
  4096. v-if="
  4097. worksStudent.length &&
  4098. worksStudent[toolIndex].length > 0
  4099. "
  4100. >
  4101. <div class="worksTop">
  4102. <div>作业预览</div>
  4103. <div
  4104. class="corOpen"
  4105. @click="contract(toolIndex)"
  4106. v-if="
  4107. (isCloseList[toolIndex].isCloseBoolean) &&
  4108. isCloseList[toolIndex].isClose == 0
  4109. "
  4110. >
  4111. 折叠
  4112. </div>
  4113. <div
  4114. class="corOpen"
  4115. @click="contract(toolIndex)"
  4116. v-if="isCloseList[toolIndex].isClose == 1"
  4117. >
  4118. 展开
  4119. </div>
  4120. </div>
  4121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4122. </div>
  4123. <div>
  4124. <div
  4125. :id="'tool-' + toolIndex"
  4126. :style="{
  4127. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4128. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4129. }"
  4130. class="worksDetailBox"
  4131. v-if="
  4132. worksStudent.length &&
  4133. worksStudent[toolIndex].length > 0
  4134. "
  4135. >
  4136. <div
  4137. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4138. :key="wIndex"
  4139. class="isWorksName2"
  4140. style="width: 160px;height: 65px;line-height: 65px;"
  4141. @click="
  4142. openTools(
  4143. 69,
  4144. toolIndex,
  4145. taskCount,
  4146. w.works,
  4147. w.sName,
  4148. w.wid
  4149. )
  4150. "
  4151. >
  4152. {{ w.sName }}
  4153. <img
  4154. class="deleteImg1"
  4155. src="../../assets/evaEnglish.png"
  4156. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4157. alt
  4158. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4159. />
  4160. <img
  4161. class="deleteImg deleteImg2"
  4162. src="../../assets/deleteworks.png"
  4163. v-if="
  4164. w.userid == userid || tType == 1 || tType == 4
  4165. "
  4166. @click.stop="deleteWorks(w.wid)"
  4167. alt
  4168. />
  4169. </div>
  4170. </div>
  4171. </div>
  4172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4173. 未提交
  4174. </div>
  4175. <div
  4176. class="noWorksS"
  4177. v-if="noWorksS && noWorksS[toolIndex].length"
  4178. >
  4179. <div
  4180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4181. :key="sIndex"
  4182. class="noWorksName"
  4183. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4184. >
  4185. <el-tooltip effect="dark" :content="s.student" placement="top">
  4186. <span>{{ s.student }}</span>
  4187. </el-tooltip>
  4188. </div>
  4189. </div>
  4190. </div>
  4191. <div
  4192. v-if="
  4193. tType &&
  4194. ((tType == 2 && sIsOpen == true) ||
  4195. tType == 1 ||
  4196. tType == 4) &&
  4197. tool.tool.indexOf(15) != -1
  4198. "
  4199. class="worksBox"
  4200. >
  4201. <div
  4202. class="zuoyeYulan"
  4203. v-if="
  4204. (worksStudent.length &&
  4205. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4206. "
  4207. >
  4208. <div class="worksTop">
  4209. <div>作业预览</div>
  4210. <div
  4211. class="corOpen"
  4212. @click="contract(toolIndex)"
  4213. v-if="
  4214. (isCloseList[toolIndex].isCloseBoolean) &&
  4215. isCloseList[toolIndex].isClose == 0
  4216. "
  4217. >
  4218. 折叠
  4219. </div>
  4220. <div
  4221. class="corOpen"
  4222. @click="contract(toolIndex)"
  4223. v-if="isCloseList[toolIndex].isClose == 1"
  4224. >
  4225. 展开
  4226. </div>
  4227. </div>
  4228. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4229. </div>
  4230. <div
  4231. class="group_workBox"
  4232. v-for="(g, gindex) in courseGroup.group"
  4233. :key="gindex"
  4234. >
  4235. <div class="group_box">
  4236. <div class="group_title">
  4237. <el-tooltip
  4238. class="item"
  4239. effect="light"
  4240. :content="g.name"
  4241. placement="top"
  4242. >
  4243. <div class="group_name">{{ g.name }}</div>
  4244. </el-tooltip>
  4245. </div>
  4246. <div
  4247. class="group_work"
  4248. v-if="
  4249. g.works &&
  4250. g.works.length &&
  4251. g.works[toolIndex].length
  4252. "
  4253. >
  4254. <div
  4255. class="works"
  4256. v-for="(w, wIndex) in g.works[toolIndex]"
  4257. :key="wIndex"
  4258. >
  4259. <div
  4260. class="workImg"
  4261. style="
  4262. border-radius: 15px;
  4263. box-shadow: 0px 0px 5px 5px #eee;
  4264. "
  4265. >
  4266. <div
  4267. class="answerBg"
  4268. style="border-radius: 15px 15px 0 0"
  4269. @click="
  4270. commentOther(w, toolIndex, wIndex, null, g.id)
  4271. "
  4272. >
  4273. <div class="answerContent">
  4274. {{ JSON.parse(w.works)[0].answer }}
  4275. </div>
  4276. <div
  4277. class="answerScore"
  4278. v-if="w.score"
  4279. @click.stop="openScore(w)"
  4280. :class="{
  4281. rightW:
  4282. w.userid == userid ||
  4283. tType == 1 ||
  4284. tType == 4,
  4285. }"
  4286. >
  4287. {{ JSON.parse(w.score).wScore }}分
  4288. </div>
  4289. <div
  4290. class="answerScore"
  4291. @click.stop="openScore(w)"
  4292. v-else-if="courseDetail.userid == userid"
  4293. :class="{
  4294. rightW:
  4295. w.userid == userid ||
  4296. tType == 1 ||
  4297. tType == 4,
  4298. }"
  4299. >
  4300. 评分
  4301. </div>
  4302. <img
  4303. class="deleteImg"
  4304. src="../../assets/deleteworks.png"
  4305. v-if="
  4306. w.userid == userid ||
  4307. tType == 1 ||
  4308. tType == 4
  4309. "
  4310. @click.stop="deleteWorks(w.wid)"
  4311. alt
  4312. />
  4313. </div>
  4314. <div class="comment">
  4315. <div class="worksName">
  4316. <div>{{ w.sName }}</div>
  4317. </div>
  4318. <div class="commentList">
  4319. <div
  4320. class="commentImg"
  4321. @click="
  4322. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4323. "
  4324. >
  4325. <img
  4326. :src="w.isLikes == true ? likes : noLikes"
  4327. alt=""
  4328. />
  4329. </div>
  4330. <div>{{ w.likesCount }}</div>
  4331. </div>
  4332. <div
  4333. class="commentList"
  4334. style="margin-right: 15px"
  4335. >
  4336. <div
  4337. class="commentImg"
  4338. @click="
  4339. commentOther(
  4340. w,
  4341. toolIndex,
  4342. wIndex,
  4343. null,
  4344. g.id
  4345. )
  4346. "
  4347. >
  4348. <img
  4349. src="../../assets/icon/comment/comment.png"
  4350. alt=""
  4351. />
  4352. </div>
  4353. <div>{{ w.commentCount }}</div>
  4354. </div>
  4355. </div>
  4356. </div>
  4357. </div>
  4358. </div>
  4359. <div class="group_work" v-else>暂无提交作业</div>
  4360. </div>
  4361. </div>
  4362. <div
  4363. :id="'tool-' + toolIndex"
  4364. :style="{
  4365. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4366. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4367. }"
  4368. class="worksDetailBox"
  4369. v-if="
  4370. worksStudent.length &&
  4371. worksStudent[toolIndex].length > 0
  4372. "
  4373. >
  4374. <div
  4375. class="works"
  4376. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4377. :key="wIndex"
  4378. >
  4379. <div
  4380. class="workImg"
  4381. style="
  4382. border-radius: 15px;
  4383. box-shadow: 0px 0px 5px 5px #eee;
  4384. "
  4385. >
  4386. <!-- <img
  4387. src="../../assets/icon/works/noImg.png"
  4388. @click="openTools(15, toolIndex, taskCount, w.works)"
  4389. alt=""
  4390. />-->
  4391. <div
  4392. class="answerBg"
  4393. style="border-radius: 15px 15px 0 0"
  4394. @click="commentOther(w, toolIndex, wIndex)"
  4395. >
  4396. <!-- <div>{{ w.sName }}</div> -->
  4397. <div class="answerContent">
  4398. {{ JSON.parse(w.works)[0].answer }}
  4399. </div>
  4400. <div
  4401. class="answerScore"
  4402. v-if="w.score"
  4403. @click.stop="openScore(w)"
  4404. :class="{
  4405. rightW:
  4406. w.userid == userid ||
  4407. tType == 1 ||
  4408. tType == 4,
  4409. }"
  4410. >
  4411. {{ JSON.parse(w.score).wScore }}分
  4412. </div>
  4413. <div
  4414. class="answerScore"
  4415. @click.stop="openScore(w)"
  4416. v-else-if="courseDetail.userid == userid"
  4417. :class="{
  4418. rightW:
  4419. w.userid == userid ||
  4420. tType == 1 ||
  4421. tType == 4,
  4422. }"
  4423. >
  4424. 评分
  4425. </div>
  4426. <img
  4427. class="deleteImg"
  4428. src="../../assets/deleteworks.png"
  4429. v-if="
  4430. w.userid == userid || tType == 1 || tType == 4
  4431. "
  4432. @click.stop="deleteWorks(w.wid)"
  4433. alt
  4434. />
  4435. </div>
  4436. <div class="comment">
  4437. <div class="worksName">
  4438. <div>{{ w.sName }}</div>
  4439. </div>
  4440. <div class="commentList">
  4441. <div
  4442. class="commentImg"
  4443. @click="
  4444. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4445. "
  4446. >
  4447. <img
  4448. :src="w.isLikes == true ? likes : noLikes"
  4449. alt=""
  4450. />
  4451. </div>
  4452. <div>{{ w.likesCount }}</div>
  4453. </div>
  4454. <div class="commentList" style="margin-right: 15px">
  4455. <div
  4456. class="commentImg"
  4457. @click="commentOther(w, toolIndex, wIndex)"
  4458. >
  4459. <img
  4460. src="../../assets/icon/comment/comment.png"
  4461. alt=""
  4462. />
  4463. </div>
  4464. <div>{{ w.commentCount }}</div>
  4465. </div>
  4466. </div>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4471. 未提交
  4472. </div>
  4473. <div
  4474. class="noWorksS"
  4475. v-if="noWorksS && noWorksS[toolIndex].length"
  4476. >
  4477. <div
  4478. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4479. :key="sIndex"
  4480. class="noWorksName"
  4481. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4482. >
  4483. <el-tooltip effect="dark" :content="s.student" placement="top">
  4484. <span>{{ s.student }}</span>
  4485. </el-tooltip>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. <div
  4490. v-if="
  4491. tType &&
  4492. ((tType == 2 && sIsOpen == true) ||
  4493. tType == 1 ||
  4494. tType == 4) &&
  4495. tool.tool.indexOf(1) != -1
  4496. "
  4497. class="worksBox"
  4498. >
  4499. <div
  4500. class="zuoyeYulan"
  4501. v-if="
  4502. (worksStudent.length &&
  4503. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4504. "
  4505. >
  4506. <div class="worksTop">
  4507. <div>作业预览</div>
  4508. <div
  4509. class="corOpen"
  4510. @click="contract(toolIndex)"
  4511. v-if="
  4512. (isCloseList[toolIndex].isCloseBoolean) &&
  4513. isCloseList[toolIndex].isClose == 0
  4514. "
  4515. >
  4516. 折叠
  4517. </div>
  4518. <div
  4519. class="corOpen"
  4520. @click="contract(toolIndex)"
  4521. v-if="isCloseList[toolIndex].isClose == 1"
  4522. >
  4523. 展开
  4524. </div>
  4525. </div>
  4526. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4527. </div>
  4528. <div
  4529. class="group_workBox"
  4530. v-for="(g, gindex) in courseGroup.group"
  4531. :key="gindex"
  4532. >
  4533. <div class="group_box">
  4534. <div class="group_title">
  4535. <el-tooltip
  4536. class="item"
  4537. effect="light"
  4538. :content="g.name"
  4539. placement="top"
  4540. >
  4541. <div class="group_name">{{ g.name }}</div>
  4542. </el-tooltip>
  4543. </div>
  4544. <div
  4545. class="group_work"
  4546. v-if="
  4547. g.works &&
  4548. g.works.length &&
  4549. g.works[toolIndex].length
  4550. "
  4551. >
  4552. <div
  4553. class="works"
  4554. style="
  4555. width: 200px;
  4556. height: 140px;
  4557. margin: 10px 10px 10px 0;
  4558. border-radius: 15px;
  4559. box-shadow: 0 0 6px 1px #dfdada;
  4560. "
  4561. v-for="(w, wIndex) in g.works[toolIndex]"
  4562. :key="wIndex"
  4563. :class="w.type == 1 ? 'isTypeOne' : ''"
  4564. >
  4565. <div class="workImg">
  4566. <img
  4567. :src="w.works"
  4568. @click="previewImg(w.works,w)"
  4569. alt
  4570. />
  4571. <div
  4572. class="answerScore"
  4573. v-if="w.score"
  4574. @click.stop="openScore(w)"
  4575. :class="{
  4576. rightW:
  4577. w.userid == userid ||
  4578. tType == 1 ||
  4579. tType == 4,
  4580. }"
  4581. >
  4582. {{ JSON.parse(w.score).wScore }}分
  4583. </div>
  4584. <div
  4585. class="answerScore"
  4586. @click.stop="openScore(w)"
  4587. v-else-if="courseDetail.userid == userid"
  4588. :class="{
  4589. rightW:
  4590. w.userid == userid ||
  4591. tType == 1 ||
  4592. tType == 4,
  4593. }"
  4594. >
  4595. 评分
  4596. </div>
  4597. <img
  4598. class="deleteImg"
  4599. src="../../assets/deleteworks.png"
  4600. v-if="
  4601. w.userid == userid || tType == 1 || tType == 4
  4602. "
  4603. @click.stop="deleteWorks(w.wid)"
  4604. alt
  4605. />
  4606. </div>
  4607. <div class="comment" style="min-width: 200px">
  4608. <div class="worksName">
  4609. <div>{{ w.sName }}</div>
  4610. </div>
  4611. <div class="commentList">
  4612. <div class="commentList">
  4613. <div
  4614. class="commentImg"
  4615. @click="
  4616. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4617. "
  4618. >
  4619. <img
  4620. :src="w.isLikes == true ? likes : noLikes"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.likesCount }}</div>
  4625. </div>
  4626. <div
  4627. class="commentList"
  4628. style="margin-right: 15px"
  4629. >
  4630. <div
  4631. class="commentImg"
  4632. @click="
  4633. commentOther(
  4634. w,
  4635. toolIndex,
  4636. wIndex,
  4637. null,
  4638. g.id
  4639. )
  4640. "
  4641. >
  4642. <img
  4643. src="../../assets/icon/comment/comment.png"
  4644. alt=""
  4645. />
  4646. </div>
  4647. <div>{{ w.commentCount }}</div>
  4648. </div>
  4649. </div>
  4650. </div>
  4651. </div>
  4652. </div>
  4653. <div class="group_work" v-else>暂无提交作业</div>
  4654. </div>
  4655. </div>
  4656. <div
  4657. :id="'tool-' + toolIndex"
  4658. :style="{
  4659. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4660. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4661. }"
  4662. class="worksDetailBox"
  4663. v-if="
  4664. worksStudent.length &&
  4665. worksStudent[toolIndex].length > 0
  4666. "
  4667. >
  4668. <div
  4669. class="works"
  4670. style="
  4671. width: 200px;
  4672. height: 140px;
  4673. margin: 10px 10px 10px 0;
  4674. border-radius: 15px;
  4675. box-shadow: 0 0 6px 1px #dfdada;
  4676. "
  4677. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4678. :key="wIndex"
  4679. >
  4680. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4681. <div class="workImg">
  4682. <img
  4683. :src="w.works"
  4684. @click="previewImg(w.works,w)"
  4685. alt
  4686. />
  4687. <div
  4688. class="answerScore"
  4689. v-if="w.score"
  4690. @click.stop="openScore(w)"
  4691. :class="{
  4692. rightW:
  4693. w.userid == userid || tType == 1 || tType == 4,
  4694. }"
  4695. >
  4696. {{ JSON.parse(w.score).wScore }}分
  4697. </div>
  4698. <div
  4699. class="answerScore"
  4700. @click.stop="openScore(w)"
  4701. v-else-if="courseDetail.userid == userid"
  4702. :class="{
  4703. rightW:
  4704. w.userid == userid || tType == 1 || tType == 4,
  4705. }"
  4706. >
  4707. 评分
  4708. </div>
  4709. <img
  4710. class="deleteImg"
  4711. src="../../assets/deleteworks.png"
  4712. v-if="
  4713. w.userid == userid || tType == 1 || tType == 4
  4714. "
  4715. @click.stop="deleteWorks(w.wid)"
  4716. alt
  4717. />
  4718. </div>
  4719. <div class="comment" style="min-width: 200px">
  4720. <div class="worksName">
  4721. <div>{{ w.sName }}</div>
  4722. </div>
  4723. <div class="commentList">
  4724. <div class="commentList">
  4725. <div
  4726. class="commentImg"
  4727. @click="
  4728. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4729. "
  4730. >
  4731. <img
  4732. :src="w.isLikes == true ? likes : noLikes"
  4733. alt=""
  4734. />
  4735. </div>
  4736. <div>{{ w.likesCount }}</div>
  4737. </div>
  4738. <div class="commentList" style="margin-right: 15px">
  4739. <div
  4740. class="commentImg"
  4741. @click="commentOther(w, toolIndex, wIndex)"
  4742. >
  4743. <img
  4744. src="../../assets/icon/comment/comment.png"
  4745. alt=""
  4746. />
  4747. </div>
  4748. <div>{{ w.commentCount }}</div>
  4749. </div>
  4750. </div>
  4751. </div>
  4752. </div>
  4753. </div>
  4754. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4755. 未提交
  4756. </div>
  4757. <div
  4758. class="noWorksS"
  4759. v-if="noWorksS && noWorksS[toolIndex].length"
  4760. >
  4761. <div
  4762. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4763. :key="sIndex"
  4764. class="noWorksName"
  4765. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4766. >
  4767. <el-tooltip effect="dark" :content="s.student" placement="top">
  4768. <span>{{ s.student }}</span>
  4769. </el-tooltip>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <div
  4774. v-if="
  4775. tType &&
  4776. ((tType == 2 && sIsOpen == true) ||
  4777. tType == 1 ||
  4778. tType == 4) &&
  4779. tool.tool.indexOf(3) != -1
  4780. "
  4781. class="worksBox"
  4782. >
  4783. <div
  4784. class="zuoyeYulan"
  4785. v-if="
  4786. (worksStudent.length &&
  4787. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4788. "
  4789. >
  4790. <div class="worksTop">
  4791. <div>作业预览</div>
  4792. <div
  4793. class="corOpen"
  4794. @click="contract(toolIndex)"
  4795. v-if="
  4796. (isCloseList[toolIndex].isCloseBoolean) &&
  4797. isCloseList[toolIndex].isClose == 0
  4798. "
  4799. >
  4800. 折叠
  4801. </div>
  4802. <div
  4803. class="corOpen"
  4804. @click="contract(toolIndex)"
  4805. v-if="isCloseList[toolIndex].isClose == 1"
  4806. >
  4807. 展开
  4808. </div>
  4809. </div>
  4810. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4811. </div>
  4812. <div
  4813. class="group_workBox"
  4814. v-for="(g, gindex) in courseGroup.group"
  4815. :key="gindex"
  4816. >
  4817. <div class="group_box">
  4818. <div class="group_title">
  4819. <el-tooltip
  4820. class="item"
  4821. effect="light"
  4822. :content="g.name"
  4823. placement="top"
  4824. >
  4825. <div class="group_name">{{ g.name }}</div>
  4826. </el-tooltip>
  4827. </div>
  4828. <div
  4829. class="group_work"
  4830. v-if="
  4831. g.works &&
  4832. g.works.length &&
  4833. g.works[toolIndex].length
  4834. "
  4835. >
  4836. <div
  4837. class="works"
  4838. style="
  4839. width: 200px;
  4840. height: 140px;
  4841. margin: 10px 10px 10px 0;
  4842. border-radius: 15px;
  4843. box-shadow: 0 0 6px 1px #dfdada;
  4844. "
  4845. v-for="(w, wIndex) in g.works[toolIndex]"
  4846. :key="wIndex"
  4847. :class="w.type == 1 ? 'isTypeOne' : ''"
  4848. >
  4849. <div class="workImg">
  4850. <img
  4851. :src="w.works"
  4852. @click="previewImg(w.works,w)"
  4853. alt
  4854. />
  4855. <div
  4856. class="answerScore"
  4857. v-if="w.score"
  4858. @click.stop="openScore(w)"
  4859. :class="{
  4860. rightW:
  4861. w.userid == userid ||
  4862. tType == 1 ||
  4863. tType == 4,
  4864. }"
  4865. >
  4866. {{ JSON.parse(w.score).wScore }}分
  4867. </div>
  4868. <div
  4869. class="answerScore"
  4870. @click.stop="openScore(w)"
  4871. v-else-if="courseDetail.userid == userid"
  4872. :class="{
  4873. rightW:
  4874. w.userid == userid ||
  4875. tType == 1 ||
  4876. tType == 4,
  4877. }"
  4878. >
  4879. 评分
  4880. </div>
  4881. <img
  4882. class="deleteImg"
  4883. src="../../assets/deleteworks.png"
  4884. v-if="
  4885. w.userid == userid || tType == 1 || tType == 4
  4886. "
  4887. @click.stop="deleteWorks(w.wid)"
  4888. alt
  4889. />
  4890. </div>
  4891. <div class="comment" style="min-width: 200px">
  4892. <div class="worksName">
  4893. <div>{{ w.sName }}</div>
  4894. </div>
  4895. <div class="commentList">
  4896. <div class="commentList">
  4897. <div
  4898. class="commentImg"
  4899. @click="
  4900. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4901. "
  4902. >
  4903. <img
  4904. :src="w.isLikes == true ? likes : noLikes"
  4905. alt=""
  4906. />
  4907. </div>
  4908. <div>{{ w.likesCount }}</div>
  4909. </div>
  4910. <div
  4911. class="commentList"
  4912. style="margin-right: 15px"
  4913. >
  4914. <div
  4915. class="commentImg"
  4916. @click="
  4917. commentOther(
  4918. w,
  4919. toolIndex,
  4920. wIndex,
  4921. null,
  4922. g.id
  4923. )
  4924. "
  4925. >
  4926. <img
  4927. src="../../assets/icon/comment/comment.png"
  4928. alt=""
  4929. />
  4930. </div>
  4931. <div>{{ w.commentCount }}</div>
  4932. </div>
  4933. </div>
  4934. </div>
  4935. </div>
  4936. </div>
  4937. <div class="group_work" v-else>暂无提交作业</div>
  4938. </div>
  4939. </div>
  4940. <div
  4941. :id="'tool-' + toolIndex"
  4942. :style="{
  4943. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4944. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4945. }"
  4946. class="worksDetailBox"
  4947. v-if="
  4948. worksStudent.length &&
  4949. worksStudent[toolIndex].length > 0
  4950. "
  4951. >
  4952. <div
  4953. class="works"
  4954. style="
  4955. width: 200px;
  4956. height: 140px;
  4957. margin: 10px 10px 10px 0;
  4958. border-radius: 15px;
  4959. box-shadow: 0 0 6px 1px #dfdada;
  4960. "
  4961. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4962. :key="wIndex"
  4963. >
  4964. <!-- @click="previewImg(w.works)" -->
  4965. <div class="workImg">
  4966. <img
  4967. :src="w.works"
  4968. @click="previewImg(w.works,w)"
  4969. alt
  4970. />
  4971. <div
  4972. class="answerScore"
  4973. v-if="w.score"
  4974. @click.stop="openScore(w)"
  4975. :class="{
  4976. rightW:
  4977. w.userid == userid || tType == 1 || tType == 4,
  4978. }"
  4979. >
  4980. {{ JSON.parse(w.score).wScore }}分
  4981. </div>
  4982. <div
  4983. class="answerScore"
  4984. @click.stop="openScore(w)"
  4985. v-else-if="courseDetail.userid == userid"
  4986. :class="{
  4987. rightW:
  4988. w.userid == userid || tType == 1 || tType == 4,
  4989. }"
  4990. >
  4991. 评分
  4992. </div>
  4993. <img
  4994. class="deleteImg"
  4995. src="../../assets/deleteworks.png"
  4996. v-if="
  4997. w.userid == userid || tType == 1 || tType == 4
  4998. "
  4999. @click.stop="deleteWorks(w.wid)"
  5000. alt
  5001. />
  5002. </div>
  5003. <div class="comment" style="min-width: 200px">
  5004. <div class="worksName">
  5005. <div>{{ w.sName }}</div>
  5006. </div>
  5007. <div class="commentList">
  5008. <div class="commentList">
  5009. <div
  5010. class="commentImg"
  5011. @click="
  5012. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5013. "
  5014. >
  5015. <img
  5016. :src="w.isLikes == true ? likes : noLikes"
  5017. alt=""
  5018. />
  5019. </div>
  5020. <div>{{ w.likesCount }}</div>
  5021. </div>
  5022. <div class="commentList" style="margin-right: 15px">
  5023. <div
  5024. class="commentImg"
  5025. @click="commentOther(w, toolIndex, wIndex)"
  5026. >
  5027. <img
  5028. src="../../assets/icon/comment/comment.png"
  5029. alt=""
  5030. />
  5031. </div>
  5032. <div>{{ w.commentCount }}</div>
  5033. </div>
  5034. </div>
  5035. </div>
  5036. </div>
  5037. </div>
  5038. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5039. 未提交
  5040. </div>
  5041. <div
  5042. class="noWorksS"
  5043. v-if="noWorksS && noWorksS[toolIndex].length"
  5044. >
  5045. <div
  5046. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5047. :key="sIndex"
  5048. class="noWorksName"
  5049. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5050. >
  5051. <el-tooltip effect="dark" :content="s.student" placement="top">
  5052. <span>{{ s.student }}</span>
  5053. </el-tooltip>
  5054. </div>
  5055. </div>
  5056. </div>
  5057. <div
  5058. v-if="
  5059. tType &&
  5060. ((tType == 2 && sIsOpen == true) ||
  5061. tType == 1 ||
  5062. tType == 4) &&
  5063. tool.tool.indexOf(6) != -1
  5064. "
  5065. class="worksBox"
  5066. >
  5067. <div
  5068. class="zuoyeYulan"
  5069. v-if="
  5070. (worksStudent.length &&
  5071. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5072. "
  5073. >
  5074. <div class="worksTop">
  5075. <div>作业预览</div>
  5076. <div
  5077. class="corOpen"
  5078. @click="contract(toolIndex)"
  5079. v-if="
  5080. (isCloseList[toolIndex].isCloseBoolean) &&
  5081. isCloseList[toolIndex].isClose == 0
  5082. "
  5083. >
  5084. 折叠
  5085. </div>
  5086. <div
  5087. class="corOpen"
  5088. @click="contract(toolIndex)"
  5089. v-if="isCloseList[toolIndex].isClose == 1"
  5090. >
  5091. 展开
  5092. </div>
  5093. </div>
  5094. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5095. </div>
  5096. <div
  5097. class="group_workBox"
  5098. v-for="(g, gindex) in courseGroup.group"
  5099. :key="gindex"
  5100. >
  5101. <div class="group_box">
  5102. <div class="group_title">
  5103. <el-tooltip
  5104. class="item"
  5105. effect="light"
  5106. :content="g.name"
  5107. placement="top"
  5108. >
  5109. <div class="group_name">{{ g.name }}</div>
  5110. </el-tooltip>
  5111. </div>
  5112. <div
  5113. class="group_work"
  5114. v-if="
  5115. g.works &&
  5116. g.works.length &&
  5117. g.works[toolIndex].length
  5118. "
  5119. >
  5120. <div
  5121. class="works"
  5122. style="
  5123. width: 200px;
  5124. height: 140px;
  5125. margin: 10px 10px 10px 0;
  5126. border-radius: 15px;
  5127. box-shadow: 0 0 6px 1px #dfdada;
  5128. "
  5129. v-for="(w, wIndex) in g.works[toolIndex]"
  5130. :key="wIndex"
  5131. :class="w.type == 1 ? 'isTypeOne' : ''"
  5132. >
  5133. <div class="workImg">
  5134. <img
  5135. :src="w.works"
  5136. @click="previewImg(w.works,w)"
  5137. alt
  5138. />
  5139. <div
  5140. class="answerScore"
  5141. v-if="w.score"
  5142. @click.stop="openScore(w)"
  5143. :class="{
  5144. rightW:
  5145. w.userid == userid ||
  5146. tType == 1 ||
  5147. tType == 4,
  5148. }"
  5149. >
  5150. {{ JSON.parse(w.score).wScore }}分
  5151. </div>
  5152. <div
  5153. class="answerScore"
  5154. @click.stop="openScore(w)"
  5155. v-else-if="courseDetail.userid == userid"
  5156. :class="{
  5157. rightW:
  5158. w.userid == userid ||
  5159. tType == 1 ||
  5160. tType == 4,
  5161. }"
  5162. >
  5163. 评分
  5164. </div>
  5165. <img
  5166. class="deleteImg"
  5167. src="../../assets/deleteworks.png"
  5168. v-if="
  5169. w.userid == userid || tType == 1 || tType == 4
  5170. "
  5171. @click.stop="deleteWorks(w.wid)"
  5172. alt
  5173. />
  5174. </div>
  5175. <div class="comment" style="min-width: 200px">
  5176. <div class="worksName">
  5177. <div>{{ w.sName }}</div>
  5178. </div>
  5179. <div class="commentList">
  5180. <div class="commentList">
  5181. <div
  5182. class="commentImg"
  5183. @click="
  5184. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5185. "
  5186. >
  5187. <img
  5188. :src="w.isLikes == true ? likes : noLikes"
  5189. alt=""
  5190. />
  5191. </div>
  5192. <div>{{ w.likesCount }}</div>
  5193. </div>
  5194. <div
  5195. class="commentList"
  5196. style="margin-right: 15px"
  5197. >
  5198. <div
  5199. class="commentImg"
  5200. @click="
  5201. commentOther(
  5202. w,
  5203. toolIndex,
  5204. wIndex,
  5205. null,
  5206. g.id
  5207. )
  5208. "
  5209. >
  5210. <img
  5211. src="../../assets/icon/comment/comment.png"
  5212. alt=""
  5213. />
  5214. </div>
  5215. <div>{{ w.commentCount }}</div>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. </div>
  5220. </div>
  5221. <div class="group_work" v-else>暂无提交作业</div>
  5222. </div>
  5223. </div>
  5224. <div
  5225. :id="'tool-' + toolIndex"
  5226. :style="{
  5227. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5228. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5229. }"
  5230. class="worksDetailBox"
  5231. v-if="
  5232. worksStudent.length &&
  5233. worksStudent[toolIndex].length > 0
  5234. "
  5235. >
  5236. <div
  5237. class="works"
  5238. style="
  5239. width: 200px;
  5240. height: 140px;
  5241. margin: 10px 10px 10px 0;
  5242. border-radius: 15px;
  5243. box-shadow: 0 0 6px 1px #dfdada;
  5244. "
  5245. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5246. :key="wIndex"
  5247. >
  5248. <!-- @click="previewImg(w.works)" -->
  5249. <div class="workImg">
  5250. <img
  5251. :src="w.works"
  5252. @click="previewImg(w.works,w)"
  5253. alt
  5254. />
  5255. <div
  5256. class="answerScore"
  5257. v-if="w.score"
  5258. @click.stop="openScore(w)"
  5259. :class="{
  5260. rightW:
  5261. w.userid == userid || tType == 1 || tType == 4,
  5262. }"
  5263. >
  5264. {{ JSON.parse(w.score).wScore }}分
  5265. </div>
  5266. <div
  5267. class="answerScore"
  5268. @click.stop="openScore(w)"
  5269. v-else-if="courseDetail.userid == userid"
  5270. :class="{
  5271. rightW:
  5272. w.userid == userid || tType == 1 || tType == 4,
  5273. }"
  5274. >
  5275. 评分
  5276. </div>
  5277. <img
  5278. class="deleteImg"
  5279. src="../../assets/deleteworks.png"
  5280. v-if="
  5281. w.userid == userid || tType == 1 || tType == 4
  5282. "
  5283. @click.stop="deleteWorks(w.wid)"
  5284. alt
  5285. />
  5286. </div>
  5287. <div class="comment" style="min-width: 200px">
  5288. <div class="worksName">
  5289. <div>{{ w.sName }}</div>
  5290. </div>
  5291. <div class="commentList">
  5292. <div class="commentList">
  5293. <div
  5294. class="commentImg"
  5295. @click="
  5296. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5297. "
  5298. >
  5299. <img
  5300. :src="w.isLikes == true ? likes : noLikes"
  5301. alt=""
  5302. />
  5303. </div>
  5304. <div>{{ w.likesCount }}</div>
  5305. </div>
  5306. <div class="commentList" style="margin-right: 15px">
  5307. <div
  5308. class="commentImg"
  5309. @click="commentOther(w, toolIndex, wIndex)"
  5310. >
  5311. <img
  5312. src="../../assets/icon/comment/comment.png"
  5313. alt=""
  5314. />
  5315. </div>
  5316. <div>{{ w.commentCount }}</div>
  5317. </div>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. </div>
  5322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5323. 未提交
  5324. </div>
  5325. <div
  5326. class="noWorksS"
  5327. v-if="noWorksS && noWorksS[toolIndex].length"
  5328. >
  5329. <div
  5330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5331. :key="sIndex"
  5332. class="noWorksName"
  5333. >
  5334. <el-tooltip effect="dark" :content="s.student" placement="top">
  5335. <span>{{ s.student }}</span>
  5336. </el-tooltip>
  5337. </div>
  5338. </div>
  5339. </div>
  5340. <div
  5341. v-if="
  5342. tType &&
  5343. ((tType == 2 && sIsOpen == true) ||
  5344. tType == 1 ||
  5345. tType == 4) &&
  5346. tool.tool.indexOf(7) != -1
  5347. "
  5348. class="worksBox"
  5349. >
  5350. <div
  5351. class="zuoyeYulan"
  5352. v-if="
  5353. (worksStudent.length &&
  5354. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5355. "
  5356. >
  5357. <div class="worksTop">
  5358. <div>作业预览</div>
  5359. <div
  5360. class="corOpen"
  5361. @click="contract(toolIndex)"
  5362. v-if="
  5363. (isCloseList[toolIndex].isCloseBoolean) &&
  5364. isCloseList[toolIndex].isClose == 0
  5365. "
  5366. >
  5367. 折叠
  5368. </div>
  5369. <div
  5370. class="corOpen"
  5371. @click="contract(toolIndex)"
  5372. v-if="isCloseList[toolIndex].isClose == 1"
  5373. >
  5374. 展开
  5375. </div>
  5376. </div>
  5377. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5378. </div>
  5379. <div
  5380. class="group_workBox"
  5381. v-for="(g, gindex) in courseGroup.group"
  5382. :key="gindex"
  5383. >
  5384. <div class="group_box">
  5385. <div class="group_title">
  5386. <el-tooltip
  5387. class="item"
  5388. effect="light"
  5389. :content="g.name"
  5390. placement="top"
  5391. >
  5392. <div class="group_name">{{ g.name }}</div>
  5393. </el-tooltip>
  5394. </div>
  5395. <div
  5396. class="group_work"
  5397. v-if="
  5398. g.works &&
  5399. g.works.length &&
  5400. g.works[toolIndex].length
  5401. "
  5402. >
  5403. <div
  5404. class="works"
  5405. style="
  5406. width: 200px;
  5407. height: 140px;
  5408. margin: 10px 10px 10px 0;
  5409. border-radius: 15px;
  5410. box-shadow: 0 0 6px 1px #dfdada;
  5411. "
  5412. v-for="(w, wIndex) in g.works[toolIndex]"
  5413. :key="wIndex"
  5414. :class="w.type == 1 ? 'isTypeOne' : ''"
  5415. >
  5416. <div class="workImg">
  5417. <img
  5418. :src="w.works"
  5419. @click="previewImg(w.works,w)"
  5420. alt
  5421. />
  5422. <div
  5423. class="answerScore"
  5424. v-if="w.score"
  5425. @click.stop="openScore(w)"
  5426. :class="{
  5427. rightW:
  5428. w.userid == userid ||
  5429. tType == 1 ||
  5430. tType == 4,
  5431. }"
  5432. >
  5433. {{ JSON.parse(w.score).wScore }}分
  5434. </div>
  5435. <div
  5436. class="answerScore"
  5437. @click.stop="openScore(w)"
  5438. v-else-if="courseDetail.userid == userid"
  5439. :class="{
  5440. rightW:
  5441. w.userid == userid ||
  5442. tType == 1 ||
  5443. tType == 4,
  5444. }"
  5445. >
  5446. 评分
  5447. </div>
  5448. <img
  5449. class="deleteImg"
  5450. src="../../assets/deleteworks.png"
  5451. v-if="
  5452. w.userid == userid || tType == 1 || tType == 4
  5453. "
  5454. @click.stop="deleteWorks(w.wid)"
  5455. alt
  5456. />
  5457. </div>
  5458. <div class="comment" style="min-width: 200px">
  5459. <div class="worksName">
  5460. <div>{{ w.sName }}</div>
  5461. </div>
  5462. <div class="commentList">
  5463. <div class="commentList">
  5464. <div
  5465. class="commentImg"
  5466. @click="
  5467. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5468. "
  5469. >
  5470. <img
  5471. :src="w.isLikes == true ? likes : noLikes"
  5472. alt=""
  5473. />
  5474. </div>
  5475. <div>{{ w.likesCount }}</div>
  5476. </div>
  5477. <div
  5478. class="commentList"
  5479. style="margin-right: 15px"
  5480. >
  5481. <div
  5482. class="commentImg"
  5483. @click="
  5484. commentOther(
  5485. w,
  5486. toolIndex,
  5487. wIndex,
  5488. null,
  5489. g.id
  5490. )
  5491. "
  5492. >
  5493. <img
  5494. src="../../assets/icon/comment/comment.png"
  5495. alt=""
  5496. />
  5497. </div>
  5498. <div>{{ w.commentCount }}</div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. </div>
  5503. </div>
  5504. <div class="group_work" v-else>暂无提交作业</div>
  5505. </div>
  5506. </div>
  5507. <div
  5508. :id="'tool-' + toolIndex"
  5509. :style="{
  5510. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5511. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5512. }"
  5513. class="worksDetailBox"
  5514. v-if="
  5515. worksStudent.length &&
  5516. worksStudent[toolIndex].length > 0
  5517. "
  5518. >
  5519. <div
  5520. class="works"
  5521. style="
  5522. width: 200px;
  5523. height: 140px;
  5524. margin: 10px 10px 10px 0;
  5525. border-radius: 15px;
  5526. box-shadow: 0 0 6px 1px #dfdada;
  5527. "
  5528. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5529. :key="wIndex"
  5530. >
  5531. <!-- @click="previewImg(w.works)" -->
  5532. <div class="workImg">
  5533. <img
  5534. :src="w.works"
  5535. @click="previewImg(w.works,w)"
  5536. alt
  5537. />
  5538. <div
  5539. class="answerScore"
  5540. v-if="w.score"
  5541. @click.stop="openScore(w)"
  5542. :class="{
  5543. rightW:
  5544. w.userid == userid || tType == 1 || tType == 4,
  5545. }"
  5546. >
  5547. {{ JSON.parse(w.score).wScore }}分
  5548. </div>
  5549. <div
  5550. class="answerScore"
  5551. @click.stop="openScore(w)"
  5552. v-else-if="courseDetail.userid == userid"
  5553. :class="{
  5554. rightW:
  5555. w.userid == userid || tType == 1 || tType == 4,
  5556. }"
  5557. >
  5558. 评分
  5559. </div>
  5560. <img
  5561. class="deleteImg"
  5562. src="../../assets/deleteworks.png"
  5563. v-if="
  5564. w.userid == userid || tType == 1 || tType == 4
  5565. "
  5566. @click.stop="deleteWorks(w.wid)"
  5567. alt
  5568. />
  5569. </div>
  5570. <div class="comment" style="min-width: 200px">
  5571. <div class="worksName">
  5572. <div>{{ w.sName }}</div>
  5573. </div>
  5574. <div class="commentList">
  5575. <div class="commentList">
  5576. <div
  5577. class="commentImg"
  5578. @click="
  5579. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5580. "
  5581. >
  5582. <img
  5583. :src="w.isLikes == true ? likes : noLikes"
  5584. alt=""
  5585. />
  5586. </div>
  5587. <div>{{ w.likesCount }}</div>
  5588. </div>
  5589. <div class="commentList" style="margin-right: 15px">
  5590. <div
  5591. class="commentImg"
  5592. @click="commentOther(w, toolIndex, wIndex)"
  5593. >
  5594. <img
  5595. src="../../assets/icon/comment/comment.png"
  5596. alt=""
  5597. />
  5598. </div>
  5599. <div>{{ w.commentCount }}</div>
  5600. </div>
  5601. </div>
  5602. </div>
  5603. </div>
  5604. </div>
  5605. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5606. 未提交
  5607. </div>
  5608. <div
  5609. class="noWorksS"
  5610. v-if="noWorksS && noWorksS[toolIndex].length"
  5611. >
  5612. <div
  5613. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5614. :key="sIndex"
  5615. class="noWorksName"
  5616. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5617. >
  5618. <el-tooltip effect="dark" :content="s.student" placement="top">
  5619. <span>{{ s.student }}</span>
  5620. </el-tooltip>
  5621. </div>
  5622. </div>
  5623. </div>
  5624. <div
  5625. v-if="
  5626. tType &&
  5627. ((tType == 2 && sIsOpen == true) ||
  5628. tType == 1 ||
  5629. tType == 4) &&
  5630. tool.tool.indexOf(26) != -1
  5631. "
  5632. class="worksBox"
  5633. >
  5634. <div
  5635. class="zuoyeYulan"
  5636. v-if="
  5637. worksStudent.length &&
  5638. worksStudent[toolIndex].length > 0
  5639. "
  5640. >
  5641. <div class="worksTop">
  5642. <div>作业预览</div>
  5643. <div
  5644. class="corOpen"
  5645. @click="contract(toolIndex)"
  5646. v-if="
  5647. (isCloseList[toolIndex].isCloseBoolean) &&
  5648. isCloseList[toolIndex].isClose == 0
  5649. "
  5650. >
  5651. 折叠
  5652. </div>
  5653. <div
  5654. class="corOpen"
  5655. @click="contract(toolIndex)"
  5656. v-if="isCloseList[toolIndex].isClose == 1"
  5657. >
  5658. 展开
  5659. </div>
  5660. </div>
  5661. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5662. </div>
  5663. <div
  5664. :id="'tool-' + toolIndex"
  5665. :style="{
  5666. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5667. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5668. }"
  5669. class="worksDetailBox"
  5670. v-if="
  5671. worksStudent.length &&
  5672. worksStudent[toolIndex].length > 0
  5673. "
  5674. >
  5675. <div
  5676. class="works"
  5677. style="width: 240px; height: 140px; overflow: hidden"
  5678. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5679. :key="wIndex"
  5680. :class="w.type == 1 ? 'isTypeOne' : ''"
  5681. >
  5682. <div class="workImg" v-if="w.type == 0">
  5683. <img
  5684. :src="w.works"
  5685. @click="previewImg(w.works,w)"
  5686. alt
  5687. />
  5688. <img
  5689. class="deleteImg"
  5690. src="../../assets/deleteworks.png"
  5691. v-if="
  5692. w.userid == userid || tType == 1 || tType == 4
  5693. "
  5694. @click.stop="deleteWorks(w.wid)"
  5695. alt
  5696. />
  5697. </div>
  5698. <div class="workImg" v-if="w.type == 1">
  5699. <img :src="word" @click="openFile(w.works)" alt />
  5700. <img
  5701. class="deleteImg"
  5702. src="../../assets/deleteworks.png"
  5703. v-if="
  5704. w.userid == userid || tType == 1 || tType == 4
  5705. "
  5706. @click.stop="deleteWorks(w.wid)"
  5707. alt
  5708. />
  5709. </div>
  5710. <div class="worksName">
  5711. <div>{{ w.sName }}</div>
  5712. </div>
  5713. </div>
  5714. </div>
  5715. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5716. 未提交
  5717. </div>
  5718. <div
  5719. class="noWorksS"
  5720. v-if="noWorksS && noWorksS[toolIndex].length"
  5721. >
  5722. <div
  5723. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5724. :key="sIndex"
  5725. class="noWorksName"
  5726. >
  5727. <el-tooltip effect="dark" :content="s.student" placement="top">
  5728. <span>{{ s.student }}</span>
  5729. </el-tooltip>
  5730. </div>
  5731. </div>
  5732. </div>
  5733. <div
  5734. v-if="
  5735. tType &&
  5736. ((tType == 2 && sIsOpen == true) ||
  5737. tType == 1 ||
  5738. tType == 4) &&
  5739. tool.tool.indexOf(40) != -1
  5740. "
  5741. class="worksBox"
  5742. >
  5743. <div
  5744. class="zuoyeYulan"
  5745. v-if="
  5746. worksStudent.length &&
  5747. worksStudent[toolIndex].length > 0
  5748. "
  5749. >
  5750. <div class="worksTop">
  5751. <div>作业预览</div>
  5752. <div
  5753. class="corOpen"
  5754. @click="contract(toolIndex)"
  5755. v-if="
  5756. (isCloseList[toolIndex].isCloseBoolean) &&
  5757. isCloseList[toolIndex].isClose == 0
  5758. "
  5759. >
  5760. 折叠
  5761. </div>
  5762. <div
  5763. class="corOpen"
  5764. @click="contract(toolIndex)"
  5765. v-if="isCloseList[toolIndex].isClose == 1"
  5766. >
  5767. 展开
  5768. </div>
  5769. </div>
  5770. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5771. </div>
  5772. <div
  5773. :id="'tool-' + toolIndex"
  5774. :style="{
  5775. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5776. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5777. }"
  5778. class="worksDetailBox"
  5779. v-if="
  5780. worksStudent.length &&
  5781. worksStudent[toolIndex].length > 0
  5782. "
  5783. >
  5784. <div
  5785. class="works"
  5786. style="
  5787. width: 200px;
  5788. height: 140px;
  5789. margin: 10px 10px 10px 0;
  5790. border-radius: 15px;
  5791. box-shadow: 0 0 6px 1px #dfdada;
  5792. "
  5793. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5794. :key="wIndex"
  5795. :class="w.type == 1 ? 'isTypeOne' : ''"
  5796. >
  5797. <div class="workImg">
  5798. <img
  5799. src="../../assets/icon/works/noImg.png"
  5800. @click="openPj(w.works, toolIndex)"
  5801. alt
  5802. />
  5803. <img
  5804. class="deleteImg"
  5805. src="../../assets/deleteworks.png"
  5806. v-if="
  5807. w.userid == userid || tType == 1 || tType == 4
  5808. "
  5809. @click.stop="deleteWorks(w.wid)"
  5810. alt
  5811. />
  5812. </div>
  5813. <div class="comment" style="min-width: 200px">
  5814. <div class="worksName">
  5815. <div>{{ w.sName }}</div>
  5816. </div>
  5817. <div class="commentList">
  5818. <div class="commentList">
  5819. <div
  5820. class="commentImg"
  5821. @click="
  5822. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5823. "
  5824. >
  5825. <img
  5826. :src="w.isLikes == true ? likes : noLikes"
  5827. alt=""
  5828. />
  5829. </div>
  5830. <div>{{ w.likesCount }}</div>
  5831. </div>
  5832. <div class="commentList" style="margin-right: 15px">
  5833. <div
  5834. class="commentImg"
  5835. @click="commentOther(w, toolIndex, wIndex)"
  5836. >
  5837. <img
  5838. src="../../assets/icon/comment/comment.png"
  5839. alt=""
  5840. />
  5841. </div>
  5842. <div>{{ w.commentCount }}</div>
  5843. </div>
  5844. </div>
  5845. </div>
  5846. </div>
  5847. </div>
  5848. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5849. 未提交
  5850. </div>
  5851. <div
  5852. class="noWorksS"
  5853. v-if="noWorksS && noWorksS[toolIndex].length"
  5854. >
  5855. <div
  5856. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5857. :key="sIndex"
  5858. class="noWorksName"
  5859. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5860. >
  5861. <el-tooltip effect="dark" :content="s.student" placement="top">
  5862. <span>{{ s.student }}</span>
  5863. </el-tooltip>
  5864. </div>
  5865. </div>
  5866. </div>
  5867. <div
  5868. v-if="
  5869. tType &&
  5870. tType == 2 &&
  5871. !sIsOpen &&
  5872. tool.tool.indexOf(40) != -1
  5873. "
  5874. class="worksBox"
  5875. >
  5876. <div
  5877. class="zuoyeYulan"
  5878. v-if="workStudent[toolIndex].length > 0"
  5879. >
  5880. <span class="worksTitle">作业预览</span>
  5881. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5882. </div>
  5883. <div
  5884. class="worksDetailBox"
  5885. v-if="workStudent[toolIndex].length > 0"
  5886. >
  5887. <div
  5888. class="works"
  5889. style="
  5890. width: 200px;
  5891. height: 140px;
  5892. margin: 10px 10px 10px 0;
  5893. "
  5894. v-for="(w, wIndex) in workStudent[toolIndex]"
  5895. :key="wIndex"
  5896. >
  5897. <div class="workImg">
  5898. <img
  5899. src="../../assets/icon/works/noImg.png"
  5900. @click="openPj(w.works, toolIndex)"
  5901. alt
  5902. />
  5903. <img
  5904. class="deleteImg"
  5905. src="../../assets/deleteworks.png"
  5906. v-if="
  5907. w.userid == userid || tType == 1 || tType == 4
  5908. "
  5909. @click.stop="deleteWorks(w.wid)"
  5910. alt
  5911. />
  5912. </div>
  5913. <div class="worksName">
  5914. <div>{{ w.sName }}</div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <div
  5920. v-if="
  5921. tType &&
  5922. ((tType == 2 && sIsOpen == true) ||
  5923. tType == 1 ||
  5924. tType == 4) &&
  5925. tool.tool.indexOf(41) != -1
  5926. "
  5927. >
  5928. <AnswerData2
  5929. v-if="
  5930. worksStudent.length &&
  5931. worksStudent[toolIndex].length > 0
  5932. "
  5933. :problemJson="tool.selectJson.answer"
  5934. :people="worksStudent[toolIndex]"
  5935. ></AnswerData2>
  5936. </div>
  5937. <div
  5938. v-if="
  5939. tType &&
  5940. ((tType == 2 && sIsOpen == true) ||
  5941. tType == 1 ||
  5942. tType == 4) &&
  5943. tool.tool.indexOf(41) != -1
  5944. "
  5945. class="worksBox"
  5946. >
  5947. <div
  5948. class="zuoyeYulan"
  5949. v-if="
  5950. worksStudent.length &&
  5951. worksStudent[toolIndex].length > 0
  5952. "
  5953. >
  5954. <div class="worksTop">
  5955. <div>作业预览</div>
  5956. <div
  5957. class="corOpen"
  5958. @click="contract(toolIndex)"
  5959. v-if="
  5960. (isCloseList[toolIndex].isCloseBoolean) &&
  5961. isCloseList[toolIndex].isClose == 0
  5962. "
  5963. >
  5964. 折叠
  5965. </div>
  5966. <div
  5967. class="corOpen"
  5968. @click="contract(toolIndex)"
  5969. v-if="isCloseList[toolIndex].isClose == 1"
  5970. >
  5971. 展开
  5972. </div>
  5973. </div>
  5974. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5975. </div>
  5976. <div
  5977. :id="'tool-' + toolIndex"
  5978. :style="{
  5979. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5980. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5981. }"
  5982. class="worksDetailBox"
  5983. v-if="
  5984. worksStudent.length &&
  5985. worksStudent[toolIndex].length > 0
  5986. "
  5987. >
  5988. <div
  5989. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5990. :key="wIndex"
  5991. class="isWorksName2"
  5992. @click="openXz(w, toolIndex)"
  5993. >
  5994. {{ w.sName }}
  5995. <img
  5996. class="deleteImg deleteImg2"
  5997. src="../../assets/deleteworks.png"
  5998. v-if="w.userid == userid || tType == 1 || tType == 4"
  5999. @click.stop="deleteWorks(w.wid)"
  6000. alt
  6001. />
  6002. </div>
  6003. <!-- <div
  6004. class="works"
  6005. style="
  6006. width: 200px;
  6007. height: 140px;
  6008. margin: 10px 10px 10px 0;
  6009. border-radius: 15px;
  6010. box-shadow: 0 0 6px 1px #dfdada;
  6011. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6012. :class="w.type == 5 ? 'isTypeOne' : ''">
  6013. <div class="workImg">
  6014. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6015. </div>
  6016. <div class="worksName">
  6017. <div>{{ w.sName }}</div>
  6018. </div>
  6019. </div> -->
  6020. </div>
  6021. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6022. 未提交
  6023. </div>
  6024. <div
  6025. class="noWorksS"
  6026. v-if="noWorksS && noWorksS[toolIndex].length"
  6027. >
  6028. <div
  6029. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6030. :key="sIndex"
  6031. class="noWorksName"
  6032. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6033. >
  6034. <el-tooltip effect="dark" :content="s.student" placement="top">
  6035. <span>{{ s.student }}</span>
  6036. </el-tooltip>
  6037. </div>
  6038. </div>
  6039. </div>
  6040. <div
  6041. v-if="
  6042. tType &&
  6043. tType == 2 &&
  6044. !sIsOpen &&
  6045. tool.tool.indexOf(41) != -1
  6046. "
  6047. class="worksBox"
  6048. >
  6049. <div
  6050. class="zuoyeYulan"
  6051. v-if="workStudent[toolIndex].length > 0"
  6052. >
  6053. <span class="worksTitle">作业预览</span>
  6054. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6055. </div>
  6056. <div
  6057. class="worksDetailBox"
  6058. v-if="workStudent[toolIndex].length > 0"
  6059. >
  6060. <div
  6061. class="works"
  6062. style="
  6063. width: 200px;
  6064. height: 140px;
  6065. margin: 10px 10px 10px 0;
  6066. "
  6067. v-for="(w, wIndex) in workStudent[toolIndex]"
  6068. :key="wIndex"
  6069. >
  6070. <div class="workImg">
  6071. <img
  6072. src="../../assets/icon/works/noImg.png"
  6073. @click="openXz(w, toolIndex)"
  6074. alt
  6075. />
  6076. <img
  6077. class="deleteImg"
  6078. src="../../assets/deleteworks.png"
  6079. v-if="
  6080. w.userid == userid || tType == 1 || tType == 4
  6081. "
  6082. @click.stop="deleteWorks(w.wid)"
  6083. alt
  6084. />
  6085. </div>
  6086. <div class="worksName">
  6087. <div>{{ w.sName }}</div>
  6088. </div>
  6089. </div>
  6090. </div>
  6091. </div>
  6092. <div v-if="false" class="xuan_right_box">
  6093. <div
  6094. class="tool_right_box"
  6095. v-for="(item, index) in tool.sentenceList"
  6096. :key="index"
  6097. >
  6098. <div>
  6099. <span
  6100. style="word-break: break-all; white-space: normal"
  6101. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6102. >
  6103. </div>
  6104. <div class="right_box_xuan">
  6105. <span>正确率</span>
  6106. <span>{{
  6107. (checkJson[toolIndex][index].right
  6108. ? checkJson[toolIndex][index].right
  6109. : 0) + "%"
  6110. }}</span>
  6111. </div>
  6112. <div class="right_box_xuan">
  6113. <span>答对人数</span>
  6114. <span>{{
  6115. checkJson[toolIndex][index].rightPerson.length
  6116. }}</span>
  6117. </div>
  6118. </div>
  6119. </div>
  6120. <div
  6121. v-if="
  6122. tType &&
  6123. ((tType == 2 && sIsOpen == true) ||
  6124. tType == 1 ||
  6125. tType == 4) &&
  6126. tool.tool.indexOf(47) != -1
  6127. "
  6128. >
  6129. <AnswerData
  6130. v-if="
  6131. checkJson[toolIndex].length &&
  6132. (tool.sentenceList || tool.sentenceList.length > 0)
  6133. "
  6134. :people="checkJson[toolIndex]"
  6135. ></AnswerData>
  6136. </div>
  6137. <div
  6138. v-if="
  6139. tType &&
  6140. tType == 2 &&
  6141. !sIsOpen &&
  6142. tool.tool.indexOf(47) != -1
  6143. "
  6144. class="worksBox"
  6145. >
  6146. <div
  6147. class="zuoyeYulan"
  6148. v-if="workStudent[toolIndex].length > 0"
  6149. >
  6150. <span class="worksTitle">作业预览</span>
  6151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6152. </div>
  6153. <div
  6154. class="worksDetailBox"
  6155. v-if="workStudent[toolIndex].length > 0"
  6156. >
  6157. <div
  6158. class="works"
  6159. style="
  6160. width: 200px;
  6161. height: 140px;
  6162. margin: 10px 10px 10px 0;
  6163. "
  6164. v-for="(w, wIndex) in workStudent[toolIndex]"
  6165. :key="wIndex"
  6166. >
  6167. <!-- @click="openXz(w, toolIndex)" -->
  6168. <div class="workImg" @click="openSen(w, toolIndex)">
  6169. <img src="../../assets/icon/works/noImg.png" alt />
  6170. <img
  6171. class="deleteImg"
  6172. src="../../assets/deleteworks.png"
  6173. v-if="
  6174. w.userid == userid || tType == 1 || tType == 4
  6175. "
  6176. @click.stop="deleteWorks(w.wid)"
  6177. alt
  6178. />
  6179. </div>
  6180. <div class="worksName">
  6181. <div>
  6182. {{ w.sName }}
  6183. </div>
  6184. </div>
  6185. </div>
  6186. </div>
  6187. </div>
  6188. <div
  6189. v-if="
  6190. tType &&
  6191. ((tType == 2 && sIsOpen == true) ||
  6192. tType == 1 ||
  6193. tType == 4) &&
  6194. tool.tool.indexOf(47) != -1
  6195. "
  6196. class="worksBox"
  6197. >
  6198. <div
  6199. class="zuoyeYulan"
  6200. v-if="
  6201. worksStudent.length &&
  6202. worksStudent[toolIndex].length > 0
  6203. "
  6204. >
  6205. <div class="worksTop">
  6206. <div>作业预览</div>
  6207. <div
  6208. class="corOpen"
  6209. @click="contract(toolIndex)"
  6210. v-if="
  6211. (isCloseList[toolIndex].isCloseBoolean) &&
  6212. isCloseList[toolIndex].isClose == 0
  6213. "
  6214. >
  6215. 折叠
  6216. </div>
  6217. <div
  6218. class="corOpen"
  6219. @click="contract(toolIndex)"
  6220. v-if="isCloseList[toolIndex].isClose == 1"
  6221. >
  6222. 展开
  6223. </div>
  6224. </div>
  6225. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6226. </div>
  6227. <div
  6228. :id="'tool-' + toolIndex"
  6229. :style="{
  6230. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6231. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6232. }"
  6233. class="worksDetailBox"
  6234. v-if="
  6235. worksStudent.length &&
  6236. worksStudent[toolIndex].length > 0
  6237. "
  6238. >
  6239. <!-- @click="openXz(w, toolIndex)" -->
  6240. <div
  6241. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6242. :key="wIndex"
  6243. class="isWorksName2"
  6244. @click="openSen(w, toolIndex)"
  6245. >
  6246. {{ w.sName }}
  6247. <img
  6248. class="deleteImg deleteImg2"
  6249. src="../../assets/deleteworks.png"
  6250. v-if="w.userid == userid || tType == 1 || tType == 4"
  6251. @click.stop="deleteWorks(w.wid)"
  6252. alt
  6253. />
  6254. </div>
  6255. </div>
  6256. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6257. 未提交
  6258. </div>
  6259. <div
  6260. class="noWorksS"
  6261. v-if="noWorksS && noWorksS[toolIndex].length"
  6262. >
  6263. <div
  6264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6265. :key="sIndex"
  6266. class="noWorksName"
  6267. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6268. >
  6269. <el-tooltip effect="dark" :content="s.student" placement="top">
  6270. <span>{{ s.student }}</span>
  6271. </el-tooltip>
  6272. </div>
  6273. </div>
  6274. </div>
  6275. <div
  6276. v-if="
  6277. tType &&
  6278. ((tType == 2 && sIsOpen == true) ||
  6279. tType == 1 ||
  6280. tType == 4) &&
  6281. tool.tool.indexOf(48) != -1
  6282. "
  6283. class="worksBox"
  6284. >
  6285. <div
  6286. class="zuoyeYulan"
  6287. v-if="
  6288. worksStudent.length &&
  6289. worksStudent[toolIndex].length > 0
  6290. "
  6291. >
  6292. <div class="worksTop">
  6293. <div>作业预览</div>
  6294. <div
  6295. class="corOpen"
  6296. @click="contract(toolIndex)"
  6297. v-if="
  6298. (isCloseList[toolIndex].isCloseBoolean) &&
  6299. isCloseList[toolIndex].isClose == 0
  6300. "
  6301. >
  6302. 折叠
  6303. </div>
  6304. <div
  6305. class="corOpen"
  6306. @click="contract(toolIndex)"
  6307. v-if="isCloseList[toolIndex].isClose == 1"
  6308. >
  6309. 展开
  6310. </div>
  6311. </div>
  6312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6313. </div>
  6314. <div
  6315. :id="'tool-' + toolIndex"
  6316. :style="{
  6317. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6318. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6319. }"
  6320. class="worksDetailBox"
  6321. v-if="
  6322. worksStudent.length &&
  6323. worksStudent[toolIndex].length > 0
  6324. "
  6325. >
  6326. <div
  6327. class="works"
  6328. style="
  6329. width: 200px;
  6330. height: 140px;
  6331. margin: 10px 10px 10px 0;
  6332. border-radius: 15px;
  6333. box-shadow: 0 0 6px 1px #dfdada;
  6334. "
  6335. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6336. :key="wIndex"
  6337. :class="w.type == 1 ? 'isTypeOne' : ''"
  6338. >
  6339. <div class="workImg">
  6340. <img :src="word" @click="openTable(w)" alt />
  6341. <!-- @click="openFile(w.works)" -->
  6342. <div
  6343. class="answerScore"
  6344. v-if="w.score"
  6345. @click.stop="openScore(w)"
  6346. :class="{
  6347. rightW:
  6348. w.userid == userid ||
  6349. tType == 1 ||
  6350. tType == 4 ||
  6351. w.ateacher == userid,
  6352. }"
  6353. >
  6354. {{ JSON.parse(w.score).wScore }}分
  6355. </div>
  6356. <div
  6357. class="answerScore"
  6358. @click.stop="openScore(w)"
  6359. v-else-if="courseDetail.userid == userid"
  6360. :class="{
  6361. rightW:
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4 ||
  6365. w.ateacher == userid,
  6366. }"
  6367. >
  6368. 评分
  6369. </div>
  6370. <img
  6371. class="deleteImg"
  6372. src="../../assets/deleteworks.png"
  6373. v-if="
  6374. w.userid == userid || tType == 1 || tType == 4
  6375. "
  6376. @click.stop="deleteWorks(w.wid)"
  6377. alt
  6378. />
  6379. </div>
  6380. <div class="comment" style="min-width: 200px">
  6381. <div class="worksName">
  6382. <div>{{ w.sName }}</div>
  6383. </div>
  6384. <div class="commentList">
  6385. <div class="commentList">
  6386. <div
  6387. class="commentImg"
  6388. @click="
  6389. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6390. "
  6391. >
  6392. <img
  6393. :src="w.isLikes == true ? likes : noLikes"
  6394. alt=""
  6395. />
  6396. </div>
  6397. <div>{{ w.likesCount }}</div>
  6398. </div>
  6399. <div class="commentList" style="margin-right: 15px">
  6400. <div
  6401. class="commentImg"
  6402. @click="commentOther(w, toolIndex, wIndex)"
  6403. >
  6404. <img
  6405. src="../../assets/icon/comment/comment.png"
  6406. alt=""
  6407. />
  6408. </div>
  6409. <div>{{ w.commentCount }}</div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. </div>
  6414. </div>
  6415. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6416. 未提交
  6417. </div>
  6418. <div
  6419. class="noWorksS"
  6420. v-if="noWorksS && noWorksS[toolIndex].length"
  6421. >
  6422. <div
  6423. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6424. :key="sIndex"
  6425. class="noWorksName"
  6426. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6427. >
  6428. <el-tooltip effect="dark" :content="s.student" placement="top">
  6429. <span>{{ s.student }}</span>
  6430. </el-tooltip>
  6431. </div>
  6432. </div>
  6433. </div>
  6434. <div
  6435. v-if="
  6436. tType &&
  6437. tType == 2 &&
  6438. !sIsOpen &&
  6439. tool.tool.indexOf(48) != -1
  6440. "
  6441. class="worksBox"
  6442. >
  6443. <div
  6444. class="zuoyeYulan"
  6445. v-if="workStudent[toolIndex].length > 0"
  6446. >
  6447. <span class="worksTitle">作业预览</span>
  6448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6449. </div>
  6450. <div
  6451. class="worksDetailBox"
  6452. v-if="workStudent[toolIndex].length > 0"
  6453. >
  6454. <div
  6455. class="works"
  6456. style="
  6457. width: 200px;
  6458. height: 140px;
  6459. margin: 10px 10px 10px 0;
  6460. box-shadow: 0 0 6px 1px #dfdada;
  6461. "
  6462. v-for="(w, wIndex) in workStudent[toolIndex]"
  6463. :key="wIndex"
  6464. >
  6465. <div class="workImg">
  6466. <img :src="word" @click="openTable(w)" alt />
  6467. <div
  6468. class="answerScore"
  6469. v-if="w.score"
  6470. @click.stop="openScore(w)"
  6471. :class="{
  6472. rightW:
  6473. w.userid == userid || tType == 1 || tType == 4,
  6474. }"
  6475. >
  6476. {{ JSON.parse(w.score).wScore }}分
  6477. </div>
  6478. <div
  6479. class="answerScore"
  6480. @click.stop="openScore(w)"
  6481. v-else-if="courseDetail.userid == userid"
  6482. :class="{
  6483. rightW:
  6484. w.userid == userid || tType == 1 || tType == 4,
  6485. }"
  6486. >
  6487. 评分
  6488. </div>
  6489. <img
  6490. class="deleteImg"
  6491. src="../../assets/deleteworks.png"
  6492. v-if="
  6493. w.userid == userid || tType == 1 || tType == 4
  6494. "
  6495. @click.stop="deleteWorks(w.wid)"
  6496. alt
  6497. />
  6498. </div>
  6499. <div class="worksName">
  6500. <div>{{ w.sName }}</div>
  6501. </div>
  6502. </div>
  6503. </div>
  6504. </div>
  6505. <div
  6506. v-if="
  6507. tType &&
  6508. ((tType == 2 && sIsOpen == true) ||
  6509. tType == 1 ||
  6510. tType == 4) &&
  6511. tool.tool.indexOf(52) != -1
  6512. "
  6513. class="worksBox"
  6514. >
  6515. <div
  6516. class="zuoyeYulan"
  6517. style="display: flex;justify-content: space-between;align-items: center;"
  6518. v-if="
  6519. worksStudent.length &&
  6520. worksStudent[toolIndex].length > 0
  6521. "
  6522. >
  6523. <div class="worksTop">
  6524. <div>作业预览</div>
  6525. <div
  6526. class="corOpen"
  6527. @click="contract(toolIndex)"
  6528. v-if="
  6529. (isCloseList[toolIndex].isCloseBoolean) &&
  6530. isCloseList[toolIndex].isClose == 0
  6531. "
  6532. >
  6533. 折叠
  6534. </div>
  6535. <div
  6536. class="corOpen"
  6537. @click="contract(toolIndex)"
  6538. v-if="isCloseList[toolIndex].isClose == 1"
  6539. >
  6540. 展开
  6541. </div>
  6542. </div>
  6543. <div v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && courseDetail.state == 5">
  6544. <div class="ScoreBtn" v-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  6545. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6546. AI评分
  6547. </div>
  6548. <div class="ScoreBtn" v-else >
  6549. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6550. 正在评分
  6551. </div>
  6552. </div>
  6553. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6554. </div>
  6555. <div
  6556. :id="'tool-' + toolIndex"
  6557. :style="{
  6558. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6559. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6560. }"
  6561. class="worksDetailBox"
  6562. v-if="
  6563. worksStudent.length &&
  6564. worksStudent[toolIndex].length > 0
  6565. "
  6566. >
  6567. <div
  6568. class="works"
  6569. style="
  6570. width: 200px;
  6571. height: 140px;
  6572. margin: 10px 10px 10px 0;
  6573. border-radius: 15px;
  6574. box-shadow: 0 0 6px 1px #dfdada;
  6575. "
  6576. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6577. :key="wIndex"
  6578. :class="w.type == 1 ? 'isTypeOne' : ''"
  6579. >
  6580. <div class="workImg">
  6581. <img :src="word" @click="openWord(w)" alt />
  6582. <!-- @click="openFile(w.works)" -->
  6583. <div
  6584. class="answerScore"
  6585. v-if="w.score"
  6586. @click.stop="openScore(w)"
  6587. :class="{
  6588. rightW:
  6589. w.userid == userid ||
  6590. tType == 1 ||
  6591. tType == 4 ||
  6592. w.ateacher == userid,
  6593. }"
  6594. >
  6595. {{ JSON.parse(w.score).wScore }}分
  6596. </div>
  6597. <div
  6598. class="answerScore"
  6599. @click.stop="openScore(w)"
  6600. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6601. :class="{
  6602. rightW:
  6603. w.userid == userid ||
  6604. tType == 1 ||
  6605. tType == 4 ||
  6606. w.ateacher == userid,
  6607. }"
  6608. >
  6609. 评分
  6610. </div>
  6611. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5">
  6612. <el-popover
  6613. placement="top"
  6614. width="318"
  6615. :disabled="AIloading[toolIndex][wIndex].loading"
  6616. trigger="click"
  6617. @show="handleShow(toolIndex,wIndex)"
  6618. @hide="handleHide(toolIndex,wIndex,worksStudent)"
  6619. >
  6620. <markScore
  6621. :loading="AIloading[toolIndex][wIndex].loading"
  6622. :ref="`markSco${toolIndex}${wIndex}`"
  6623. @updateLoading=updateLoading
  6624. @updateDocSco=updateDocSco
  6625. @refreshOther=refreshOther
  6626. :wIndex="wIndex"
  6627. :scoCon="w"
  6628. :TotalScore="AIloading[toolIndex][wIndex].sco"
  6629. :toolIndex="toolIndex"
  6630. :key="refreshKey"
  6631. :refreshKey="refreshKey"
  6632. :toolDetail="tool.toolDetail"
  6633. :stage="courseType"
  6634. :task="taskCount"
  6635. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6636. >
  6637. </markScore>
  6638. <div
  6639. class="answerScore"
  6640. slot="reference"
  6641. :class="{
  6642. rightW:
  6643. w.userid == userid ||
  6644. tType == 1 ||
  6645. tType == 4 ||
  6646. w.ateacher == userid,
  6647. }"
  6648. >
  6649. <span v-if="AIloading[toolIndex][wIndex].sco">
  6650. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  6651. </span>
  6652. <span v-else>
  6653. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  6654. </span>
  6655. </div>
  6656. </el-popover>
  6657. </div>
  6658. <img
  6659. class="deleteImg"
  6660. src="../../assets/deleteworks.png"
  6661. v-if="
  6662. w.userid == userid || tType == 1 || tType == 4
  6663. "
  6664. @click.stop="deleteWorksTwo(w.wid,toolIndex,wIndex)"
  6665. alt
  6666. />
  6667. </div>
  6668. <div class="comment" style="min-width: 200px">
  6669. <div class="worksName">
  6670. <div>{{ w.sName }}</div>
  6671. </div>
  6672. <div class="commentList">
  6673. <div class="commentList">
  6674. <div
  6675. class="commentImg"
  6676. @click="
  6677. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6678. "
  6679. >
  6680. <img
  6681. :src="w.isLikes == true ? likes : noLikes"
  6682. alt=""
  6683. />
  6684. </div>
  6685. <div>{{ w.likesCount }}</div>
  6686. </div>
  6687. <div class="commentList" style="margin-right: 15px">
  6688. <div
  6689. class="commentImg"
  6690. @click="commentOther(w, toolIndex, wIndex)"
  6691. >
  6692. <img
  6693. src="../../assets/icon/comment/comment.png"
  6694. alt=""
  6695. />
  6696. </div>
  6697. <div>{{ w.commentCount }}</div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. </div>
  6702. </div>
  6703. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6704. 未提交
  6705. </div>
  6706. <div
  6707. class="noWorksS"
  6708. v-if="noWorksS && noWorksS[toolIndex].length"
  6709. >
  6710. <div
  6711. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6712. :key="sIndex"
  6713. class="noWorksName"
  6714. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6715. >
  6716. <el-tooltip effect="dark" :content="s.student" placement="top">
  6717. <span>{{ s.student }}</span>
  6718. </el-tooltip>
  6719. </div>
  6720. </div>
  6721. </div>
  6722. <div
  6723. v-if="
  6724. tType &&
  6725. tType == 2 &&
  6726. !sIsOpen &&
  6727. tool.tool.indexOf(52) != -1
  6728. "
  6729. class="worksBox"
  6730. >
  6731. <div
  6732. class="zuoyeYulan"
  6733. v-if="workStudent[toolIndex].length > 0"
  6734. >
  6735. <span class="worksTitle">作业预览</span>
  6736. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6737. </div>
  6738. <div
  6739. class="worksDetailBox"
  6740. v-if="workStudent[toolIndex].length > 0"
  6741. >
  6742. <div
  6743. class="works"
  6744. style="
  6745. width: 200px;
  6746. height: 140px;
  6747. margin: 10px 10px 10px 0;
  6748. box-shadow: 0 0 6px 1px #dfdada;
  6749. "
  6750. v-for="(w, wIndex) in workStudent[toolIndex]"
  6751. :key="wIndex"
  6752. >
  6753. <div class="workImg">
  6754. <img :src="word" @click="openWord(w)" alt />
  6755. <div
  6756. class="answerScore"
  6757. v-if="w.score"
  6758. @click.stop="openScore(w)"
  6759. :class="{
  6760. rightW:
  6761. w.userid == userid || tType == 1 || tType == 4,
  6762. }"
  6763. >
  6764. {{ JSON.parse(w.score).wScore }}分
  6765. </div>
  6766. <div
  6767. class="answerScore"
  6768. @click.stop="openScore(w)"
  6769. v-else-if="courseDetail.userid == userid"
  6770. :class="{
  6771. rightW:
  6772. w.userid == userid || tType == 1 || tType == 4,
  6773. }"
  6774. >
  6775. 评分
  6776. </div>
  6777. <img
  6778. class="deleteImg"
  6779. src="../../assets/deleteworks.png"
  6780. v-if="
  6781. w.userid == userid || tType == 1 || tType == 4
  6782. "
  6783. @click.stop="deleteWorks(w.wid)"
  6784. alt
  6785. />
  6786. </div>
  6787. <div class="worksName">
  6788. <div>{{ w.sName }}</div>
  6789. </div>
  6790. </div>
  6791. </div>
  6792. </div>
  6793. <div
  6794. v-if="tool.tool.indexOf(49) != -1"
  6795. class="xuan_right_box"
  6796. style="margin: 0 15px 0 25px; width: 93%"
  6797. >
  6798. <div
  6799. v-if="courseDetail.userid == userid"
  6800. style="
  6801. display: flex;
  6802. justify-content: flex-end;
  6803. margin-right: 10px;
  6804. "
  6805. >
  6806. <el-button
  6807. type="primary"
  6808. size="small"
  6809. @click="addTools(49, toolIndex, taskCount)"
  6810. >分组设置</el-button
  6811. >
  6812. </div>
  6813. <div
  6814. v-if="groupStudentUid[toolIndex]"
  6815. class="group_staic_box"
  6816. >
  6817. <div
  6818. v-for="(gp, gd) in tool.groupJson.group"
  6819. :key="gd"
  6820. class="group_staic"
  6821. >
  6822. <span> {{ gp.name }}</span>
  6823. <span>
  6824. 目前人数{{
  6825. groupStudentUid[toolIndex][gd].length
  6826. }}人</span
  6827. >
  6828. </div>
  6829. </div>
  6830. </div>
  6831. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6832. <div
  6833. class="zuoyeYulan"
  6834. v-if="
  6835. worksStudent.length &&
  6836. worksStudent[toolIndex].length > 0
  6837. "
  6838. >
  6839. <span class="worksTitle">作业预览</span>
  6840. </div>
  6841. <div>
  6842. <div
  6843. class="group_workBox"
  6844. v-for="(g, gindex) in tool.groupJson.group"
  6845. :key="gindex"
  6846. >
  6847. <div
  6848. class="group_box"
  6849. v-if="
  6850. groupStudentUid[toolIndex] &&
  6851. worksStudent[toolIndex] &&
  6852. (worksStudent[toolIndex][gindex].length ||
  6853. groupStudentUid[toolIndex][gindex].indexOf(
  6854. userid
  6855. ) != -1)
  6856. "
  6857. >
  6858. <div class="group_title">
  6859. <el-tooltip
  6860. class="item"
  6861. effect="light"
  6862. :content="g.name"
  6863. placement="top"
  6864. >
  6865. <div class="group_name">{{ g.name }}</div>
  6866. </el-tooltip>
  6867. <el-button
  6868. type="primary"
  6869. v-if="
  6870. groupStudentUid[toolIndex][gindex].indexOf(
  6871. userid
  6872. ) != -1
  6873. "
  6874. @click="groupUpload(toolIndex, taskCount, gindex)"
  6875. >上传作业</el-button
  6876. >
  6877. </div>
  6878. <div class="group_work">
  6879. <div
  6880. class="works"
  6881. style="
  6882. width: 200px;
  6883. height: 140px;
  6884. margin: 10px 10px 10px 0;
  6885. border-radius: 15px;
  6886. box-shadow: 0 0 6px 1px #dfdada;
  6887. "
  6888. v-for="(w, wIndex) in worksStudent[toolIndex][
  6889. gindex
  6890. ]"
  6891. :key="wIndex"
  6892. :class="w.type == 1 ? 'isTypeOne' : ''"
  6893. >
  6894. <div class="workImg" v-if="w.type == 0">
  6895. <img
  6896. :src="w.works"
  6897. @click="previewImg(w.works,w)"
  6898. alt
  6899. />
  6900. <div
  6901. class="answerScore"
  6902. v-if="w.score"
  6903. @click.stop="openScore(w)"
  6904. :class="{
  6905. rightW:
  6906. w.userid == userid ||
  6907. tType == 1 ||
  6908. tType == 4 ||
  6909. w.ateacher == userid,
  6910. }"
  6911. >
  6912. {{ JSON.parse(w.score).wScore }}分
  6913. </div>
  6914. <div
  6915. class="answerScore"
  6916. @click.stop="openScore(w)"
  6917. v-else-if="courseDetail.userid == userid"
  6918. :class="{
  6919. rightW:
  6920. w.userid == userid ||
  6921. tType == 1 ||
  6922. tType == 4 ||
  6923. w.ateacher == userid,
  6924. }"
  6925. >
  6926. 评分
  6927. </div>
  6928. <img
  6929. class="deleteImg"
  6930. src="../../assets/deleteworks.png"
  6931. v-if="
  6932. w.userid == userid ||
  6933. tType == 1 ||
  6934. tType == 4
  6935. "
  6936. @click.stop="deleteWorks(w.wid)"
  6937. alt
  6938. />
  6939. </div>
  6940. <div class="workImg" v-if="w.type == 1">
  6941. <img
  6942. :src="word"
  6943. @click="openFile(w.works)"
  6944. alt
  6945. />
  6946. <!-- @click="openFile(w.works)" -->
  6947. <div
  6948. class="answerScore"
  6949. v-if="w.score"
  6950. @click.stop="openScore(w)"
  6951. :class="{
  6952. rightW:
  6953. w.userid == userid ||
  6954. tType == 1 ||
  6955. tType == 4 ||
  6956. w.ateacher == userid,
  6957. }"
  6958. >
  6959. {{ JSON.parse(w.score).wScore }}分
  6960. </div>
  6961. <div
  6962. class="answerScore"
  6963. @click.stop="openScore(w)"
  6964. v-else-if="courseDetail.userid == userid"
  6965. :class="{
  6966. rightW:
  6967. w.userid == userid ||
  6968. tType == 1 ||
  6969. tType == 4 ||
  6970. w.ateacher == userid,
  6971. }"
  6972. >
  6973. 评分
  6974. </div>
  6975. <img
  6976. class="deleteImg"
  6977. src="../../assets/deleteworks.png"
  6978. v-if="
  6979. w.userid == userid ||
  6980. tType == 1 ||
  6981. tType == 4
  6982. "
  6983. @click.stop="deleteWorks(w.wid)"
  6984. alt
  6985. />
  6986. </div>
  6987. <div class="workImg" v-if="w.type == 3">
  6988. <img
  6989. style="cursor: pointer"
  6990. :src="video"
  6991. @click="openVideo(w)"
  6992. alt
  6993. />
  6994. <!-- @click="openVideo(w.works)" -->
  6995. <div
  6996. class="answerScore"
  6997. v-if="w.score"
  6998. @click.stop="openScore(w)"
  6999. :class="{
  7000. rightW:
  7001. w.userid == userid ||
  7002. tType == 1 ||
  7003. tType == 4 ||
  7004. w.ateacher == userid,
  7005. }"
  7006. >
  7007. {{ JSON.parse(w.score).wScore }}分
  7008. </div>
  7009. <div
  7010. class="answerScore"
  7011. @click.stop="openScore(w)"
  7012. v-else-if="courseDetail.userid == userid"
  7013. :class="{
  7014. rightW:
  7015. w.userid == userid ||
  7016. tType == 1 ||
  7017. tType == 4 ||
  7018. w.ateacher == userid,
  7019. }"
  7020. >
  7021. 评分
  7022. </div>
  7023. <img
  7024. class="deleteImg"
  7025. src="../../assets/deleteworks.png"
  7026. v-if="
  7027. w.userid == userid ||
  7028. tType == 1 ||
  7029. tType == 4
  7030. "
  7031. @click.stop="deleteWorks(w.wid)"
  7032. alt
  7033. />
  7034. </div>
  7035. <div class="workImg" v-if="w.type == 12">
  7036. <img
  7037. style="cursor: pointer"
  7038. :src="word2"
  7039. @click="downloadFile(w.works)"
  7040. alt
  7041. />
  7042. <!-- @click="openVideo(w.works)" -->
  7043. <div
  7044. class="answerScore"
  7045. v-if="w.score"
  7046. @click.stop="openScore(w)"
  7047. :class="{
  7048. rightW:
  7049. w.userid == userid ||
  7050. tType == 1 ||
  7051. tType == 4 ||
  7052. w.ateacher == userid,
  7053. }"
  7054. >
  7055. {{ JSON.parse(w.score).wScore }}分
  7056. </div>
  7057. <div
  7058. class="answerScore"
  7059. @click.stop="openScore(w)"
  7060. v-else-if="courseDetail.userid == userid"
  7061. :class="{
  7062. rightW:
  7063. w.userid == userid ||
  7064. tType == 1 ||
  7065. tType == 4 ||
  7066. w.ateacher == userid,
  7067. }"
  7068. >
  7069. 评分
  7070. </div>
  7071. <img
  7072. class="deleteImg"
  7073. src="../../assets/deleteworks.png"
  7074. v-if="
  7075. w.userid == userid ||
  7076. tType == 1 ||
  7077. tType == 4
  7078. "
  7079. @click.stop="deleteWorks(w.wid)"
  7080. alt
  7081. />
  7082. </div>
  7083. <div class="comment" style="min-width: 200px">
  7084. <div class="worksName">
  7085. <div>{{ w.sName }}</div>
  7086. </div>
  7087. <div class="commentList">
  7088. <div class="commentList">
  7089. <div
  7090. class="commentImg"
  7091. @click="
  7092. isLikes(
  7093. w.wid,
  7094. userid,
  7095. 1,
  7096. null,
  7097. w.isLikes,
  7098. w.sName
  7099. )
  7100. "
  7101. >
  7102. <img
  7103. :src="
  7104. w.isLikes == true ? likes : noLikes
  7105. "
  7106. alt=""
  7107. />
  7108. </div>
  7109. <div>{{ w.likesCount }}</div>
  7110. </div>
  7111. <div
  7112. class="commentList"
  7113. style="margin-right: 15px"
  7114. >
  7115. <div
  7116. class="commentImg"
  7117. @click="
  7118. commentOther(
  7119. w,
  7120. toolIndex,
  7121. wIndex,
  7122. gindex
  7123. )
  7124. "
  7125. >
  7126. <img
  7127. src="../../assets/icon/comment/comment.png"
  7128. alt=""
  7129. />
  7130. </div>
  7131. <div>{{ w.commentCount }}</div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. </div>
  7136. </div>
  7137. </div>
  7138. </div>
  7139. </div>
  7140. </div>
  7141. </div>
  7142. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7143. 上传文件
  7144. <input
  7145. type="file"
  7146. accept="image/png, image/gif, image/jpeg"
  7147. style="display: none"
  7148. @change="beforeUpload1($event, 2, index)"
  7149. />
  7150. </div>-->
  7151. </div>
  7152. </div>
  7153. <!-- <div
  7154. class="vedioBox"
  7155. style="margin-top: 10px"
  7156. v-if="
  7157. courseDetail.userid == userid ||
  7158. (courseDetail.course_teacher &&
  7159. courseDetail.course_teacher.indexOf(userid) != -1)
  7160. "
  7161. :style="{
  7162. borderRadius:
  7163. !(
  7164. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7165. .toolChoose[0].tool &&
  7166. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7167. .toolChoose[0].tool.length > 0
  7168. ) &&
  7169. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7170. .taskDetail == '' &&
  7171. vChapterData[taskCount].length == 0 &&
  7172. fileC[taskCount].length == 0
  7173. ? '0 0 20px 20px'
  7174. : '20px',
  7175. }"
  7176. >
  7177. <div
  7178. class="queTop"
  7179. @click="isClose = !isClose"
  7180. style="
  7181. padding: 15px 0 15px 37px;
  7182. justify-content: space-between;
  7183. "
  7184. >
  7185. <div class="queTopTitle">新增工具</div>
  7186. <div class="queTopRight">
  7187. <div class="queTopClose" v-if="isClose == 0">
  7188. 展开
  7189. <div class="closeImg">
  7190. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7191. </div>
  7192. </div>
  7193. <div class="queTopClose" v-if="isClose == 1">
  7194. 折叠
  7195. <div class="openImg">
  7196. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7197. </div>
  7198. </div>
  7199. <el-button
  7200. style="margin: 0 30px 0 auto"
  7201. type="primary"
  7202. size="small"
  7203. v-if="isClose == 1 && checktoolArray.length > 0"
  7204. @click.stop="addToolChoose"
  7205. >确定</el-button
  7206. >
  7207. </div>
  7208. </div>
  7209. <div
  7210. class="tool_work_box"
  7211. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7212. >
  7213. <div class="tool_box">
  7214. <div class="tool_type_box">
  7215. <div class="chooseWho">
  7216. <div
  7217. :class="toolType == 0 ? 'isChooseActive' : ''"
  7218. @click="(toolType = 0), $forceUpdate()"
  7219. >
  7220. 互动类
  7221. </div>
  7222. <div
  7223. :class="toolType == 1 ? 'isChooseActive' : ''"
  7224. @click="(toolType = 1), $forceUpdate()"
  7225. >
  7226. 思维类
  7227. </div>
  7228. <div
  7229. :class="toolType == 2 ? 'isChooseActive' : ''"
  7230. @click="(toolType = 2), $forceUpdate()"
  7231. >
  7232. 测评类
  7233. </div>
  7234. <div
  7235. :class="toolType == 3 ? 'isChooseActive' : ''"
  7236. @click="(toolType = 3), $forceUpdate()"
  7237. >
  7238. 编程类
  7239. </div>
  7240. <div
  7241. :class="toolType == 5 ? 'isChooseActive' : ''"
  7242. @click="(toolType = 5), $forceUpdate()"
  7243. >
  7244. 学科类
  7245. </div>
  7246. </div>
  7247. </div>
  7248. <div>
  7249. <div class="toolSort" v-if="toolType == 0">
  7250. <div class="tool">
  7251. <div class="whiteBIcon" @click="addTools2(10)">
  7252. <img
  7253. src="../../assets/icon/thirdToolList/time.png"
  7254. alt
  7255. />
  7256. <div style="margin: 5px 0">倒计时</div>
  7257. </div>
  7258. <div class="check" @click="addTools2(10)">
  7259. <img
  7260. src="../../assets/icon/checkNo.png"
  7261. alt
  7262. v-if="checktoolArray.indexOf(10) == -1"
  7263. />
  7264. <div class="checkDiv" v-else>
  7265. <img src="../../assets/icon/checkedIs.png" alt /><span
  7266. >已选择</span
  7267. >
  7268. </div>
  7269. </div>
  7270. </div>
  7271. <div class="tool">
  7272. <div class="whiteBIcon" @click="addTools2(65)">
  7273. <img
  7274. src="../../assets/icon/firstToolList/pickPeople.png"
  7275. alt
  7276. />
  7277. <div style="margin: 5px 0">挑人</div>
  7278. </div>
  7279. <div class="check" @click="addTools2(65)">
  7280. <img
  7281. src="../../assets/icon/checkNo.png"
  7282. alt
  7283. v-if="checktoolArray.indexOf(65) == -1"
  7284. />
  7285. <div class="checkDiv" v-else>
  7286. <img src="../../assets/icon/checkedIs.png" alt /><span
  7287. >已选择</span
  7288. >
  7289. </div>
  7290. </div>
  7291. </div>
  7292. </div>
  7293. <div class="toolSort" v-if="toolType == 1">
  7294. <div class="tool">
  7295. <div class="whiteBIcon" @click="addTools2(7)">
  7296. <img
  7297. src="../../assets/icon/secondToolList/mindNetwork.png"
  7298. alt
  7299. />
  7300. <div style="margin: 5px 0">思维网格</div>
  7301. </div>
  7302. <div class="check" @click="addTools2(7)">
  7303. <img
  7304. src="../../assets/icon/checkNo.png"
  7305. alt
  7306. v-if="checktoolArray.indexOf(7) == -1"
  7307. />
  7308. <div class="checkDiv" v-else>
  7309. <img src="../../assets/icon/checkedIs.png" alt /><span
  7310. >已选择</span
  7311. >
  7312. </div>
  7313. </div>
  7314. </div>
  7315. <div class="tool">
  7316. <div class="whiteBIcon" @click="addTools2(1)">
  7317. <img
  7318. src="../../assets/icon/secondToolList/whiteBoard.png"
  7319. alt
  7320. />
  7321. <div style="margin: 5px 0">电子白板</div>
  7322. </div>
  7323. <div class="check" @click="addTools2(1)">
  7324. <img
  7325. src="../../assets/icon/checkNo.png"
  7326. alt
  7327. v-if="checktoolArray.indexOf(1) == -1"
  7328. />
  7329. <div class="checkDiv" v-else>
  7330. <img src="../../assets/icon/checkedIs.png" alt /><span
  7331. >已选择</span
  7332. >
  7333. </div>
  7334. </div>
  7335. </div>
  7336. <div class="tool">
  7337. <div class="whiteBIcon" @click="addTools2(52)">
  7338. <img
  7339. src="../../assets/icon/fourthToolList/text.png"
  7340. alt
  7341. />
  7342. <div style="margin: 5px 0">文档</div>
  7343. </div>
  7344. <div class="check" @click="addTools2(52)">
  7345. <img
  7346. src="../../assets/icon/checkNo.png"
  7347. alt
  7348. v-if="checktoolArray.indexOf(52) == -1"
  7349. />
  7350. <div class="checkDiv" v-else>
  7351. <img src="../../assets/icon/checkedIs.png" alt /><span
  7352. >已选择</span
  7353. >
  7354. </div>
  7355. </div>
  7356. </div>
  7357. <div class="tool">
  7358. <div class="whiteBIcon" @click="addTools2(3)">
  7359. <img
  7360. src="../../assets/icon/secondToolList/mindMapping.png"
  7361. alt
  7362. />
  7363. <div style="margin: 5px 0">思维导图</div>
  7364. </div>
  7365. <div class="check" @click="addTools2(3)">
  7366. <img
  7367. src="../../assets/icon/checkNo.png"
  7368. alt
  7369. v-if="checktoolArray.indexOf(3) == -1"
  7370. />
  7371. <div class="checkDiv" v-else>
  7372. <img src="../../assets/icon/checkedIs.png" alt /><span
  7373. >已选择</span
  7374. >
  7375. </div>
  7376. </div>
  7377. </div>
  7378. <div class="tool">
  7379. <div class="whiteBIcon" @click="addTools2(48)">
  7380. <img
  7381. src="../../assets/icon/fourthToolList/table.png"
  7382. alt
  7383. />
  7384. <div style="margin: 5px 0">表格</div>
  7385. </div>
  7386. <div class="check" @click="addTools2(48)">
  7387. <img
  7388. src="../../assets/icon/checkNo.png"
  7389. alt
  7390. v-if="checktoolArray.indexOf(48) == -1"
  7391. />
  7392. <div class="checkDiv" v-else>
  7393. <img src="../../assets/icon/checkedIs.png" alt /><span
  7394. >已选择</span
  7395. >
  7396. </div>
  7397. </div>
  7398. </div>
  7399. </div>
  7400. <div class="toolSort" v-if="toolType == 6">
  7401. <div v-show="tooC == 49">
  7402. <img
  7403. @click="addTools(tooC, toolIndex, taskCount)"
  7404. src="../../assets/icon/fourthToolList/group.png"
  7405. alt
  7406. />
  7407. <div style="margin: 5px 0">学生分组</div>
  7408. </div>
  7409. </div>
  7410. <div class="toolSort" v-if="toolType == 2">
  7411. <div class="tool">
  7412. <div class="whiteBIcon" @click="addTools2(16)">
  7413. <img
  7414. src="../../assets/icon/thirdToolList/work.png"
  7415. alt
  7416. />
  7417. <div style="margin: 5px 0">作业提交</div>
  7418. </div>
  7419. <div class="check" @click="addTools2(16)">
  7420. <img
  7421. src="../../assets/icon/checkNo.png"
  7422. alt
  7423. v-if="checktoolArray.indexOf(16) == -1"
  7424. />
  7425. <div class="checkDiv" v-else>
  7426. <img src="../../assets/icon/checkedIs.png" alt /><span
  7427. >已选择</span
  7428. >
  7429. </div>
  7430. </div>
  7431. </div>
  7432. <div class="tool">
  7433. <div class="whiteBIcon" @click="addTools2(50)">
  7434. <img
  7435. src="../../assets/icon/thirdToolList/plwork.png"
  7436. alt
  7437. />
  7438. <div style="margin: 5px 0">批量上传</div>
  7439. </div>
  7440. <div class="check" @click="addTools2(50)">
  7441. <img
  7442. src="../../assets/icon/checkNo.png"
  7443. alt
  7444. v-if="checktoolArray.indexOf(50) == -1"
  7445. />
  7446. <div class="checkDiv" v-else>
  7447. <img src="../../assets/icon/checkedIs.png" alt /><span
  7448. >已选择</span
  7449. >
  7450. </div>
  7451. </div>
  7452. </div>
  7453. </div>
  7454. <div class="toolSort" v-if="toolType == 3">
  7455. <div class="tool">
  7456. <div class="whiteBIcon" @click="addTools2(18)">
  7457. <img
  7458. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7459. alt
  7460. />
  7461. <div style="margin: 5px 0">训练平台</div>
  7462. </div>
  7463. <div class="check" @click="addTools2(18)">
  7464. <img
  7465. src="../../assets/icon/checkNo.png"
  7466. alt
  7467. v-if="checktoolArray.indexOf(18) == -1"
  7468. />
  7469. <div class="checkDiv" v-else>
  7470. <img src="../../assets/icon/checkedIs.png" alt /><span
  7471. >已选择</span
  7472. >
  7473. </div>
  7474. </div>
  7475. </div>
  7476. <div class="tool">
  7477. <div class="whiteBIcon" @click="addTools2(21)">
  7478. <img
  7479. src="../../assets/icon/fourthToolList/program.png"
  7480. alt
  7481. />
  7482. <div style="margin: 5px 0">AIoT Blockly</div>
  7483. </div>
  7484. <div class="check" @click="addTools2(21)">
  7485. <img
  7486. src="../../assets/icon/checkNo.png"
  7487. alt
  7488. v-if="checktoolArray.indexOf(21) == -1"
  7489. />
  7490. <div class="checkDiv" v-else>
  7491. <img src="../../assets/icon/checkedIs.png" alt /><span
  7492. >已选择</span
  7493. >
  7494. </div>
  7495. </div>
  7496. </div>
  7497. <div class="tool">
  7498. <div class="whiteBIcon" @click="addTools2(23)">
  7499. <img
  7500. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7501. alt
  7502. />
  7503. <div style="margin: 5px 0">AI Python</div>
  7504. </div>
  7505. <div class="check" @click="addTools2(23)">
  7506. <img
  7507. src="../../assets/icon/checkNo.png"
  7508. alt
  7509. v-if="checktoolArray.indexOf(23) == -1"
  7510. />
  7511. <div class="checkDiv" v-else>
  7512. <img src="../../assets/icon/checkedIs.png" alt /><span
  7513. >已选择</span
  7514. >
  7515. </div>
  7516. </div>
  7517. </div>
  7518. <div class="tool">
  7519. <div class="whiteBIcon" @click="addTools2(24)">
  7520. <img
  7521. src="../../assets/icon/fourthToolList/AIprogram.png"
  7522. alt
  7523. />
  7524. <div style="margin: 5px 0">AI Blockly</div>
  7525. </div>
  7526. <div class="check" @click="addTools2(24)">
  7527. <img
  7528. src="../../assets/icon/checkNo.png"
  7529. alt
  7530. v-if="checktoolArray.indexOf(24) == -1"
  7531. />
  7532. <div class="checkDiv" v-else>
  7533. <img src="../../assets/icon/checkedIs.png" alt /><span
  7534. >已选择</span
  7535. >
  7536. </div>
  7537. </div>
  7538. </div>
  7539. <div class="tool">
  7540. <div class="whiteBIcon" @click="addTools2(32)">
  7541. <img
  7542. src="../../assets/icon/thirdToolList/code.png"
  7543. alt
  7544. />
  7545. <div style="margin: 5px 0">源码编辑</div>
  7546. </div>
  7547. <div class="check" @click="addTools2(32)">
  7548. <img
  7549. src="../../assets/icon/checkNo.png"
  7550. alt
  7551. v-if="checktoolArray.indexOf(32) == -1"
  7552. />
  7553. <div class="checkDiv" v-else>
  7554. <img src="../../assets/icon/checkedIs.png" alt /><span
  7555. >已选择</span
  7556. >
  7557. </div>
  7558. </div>
  7559. </div>
  7560. <div class="tool">
  7561. <div class="whiteBIcon" @click="addTools2(57)">
  7562. <img
  7563. src="../../assets/icon/fourthToolList/cocopi.png"
  7564. alt
  7565. />
  7566. <div style="margin: 5px 0">CocoPi</div>
  7567. </div>
  7568. <div class="check" @click="addTools2(57)">
  7569. <img
  7570. src="../../assets/icon/checkNo.png"
  7571. alt
  7572. v-if="checktoolArray.indexOf(57) == -1"
  7573. />
  7574. <div class="checkDiv" v-else>
  7575. <img src="../../assets/icon/checkedIs.png" alt /><span
  7576. >已选择</span
  7577. >
  7578. </div>
  7579. </div>
  7580. </div>
  7581. <div class="tool">
  7582. <div class="whiteBIcon" @click="addTools2(63)">
  7583. <img
  7584. src="../../assets/icon/fourthToolList/Wood.png"
  7585. alt
  7586. />
  7587. <div style="margin: 5px 0">海龟编程</div>
  7588. </div>
  7589. <div class="check" @click="addTools2(63)">
  7590. <img
  7591. src="../../assets/icon/checkNo.png"
  7592. alt
  7593. v-if="checktoolArray.indexOf(63) == -1"
  7594. />
  7595. <div class="checkDiv" v-else>
  7596. <img src="../../assets/icon/checkedIs.png" alt /><span
  7597. >已选择</span
  7598. >
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. <div class="toolSort" v-if="toolType == 5">
  7604. <div class="tool">
  7605. <div class="whiteBIcon" @click="addTools2(28)">
  7606. <img
  7607. src="../../assets/icon/secondToolList/translation.png"
  7608. alt
  7609. />
  7610. <div style="margin: 5px 0">翻译</div>
  7611. </div>
  7612. <div class="check" @click="addTools2(28)">
  7613. <img
  7614. src="../../assets/icon/checkNo.png"
  7615. alt
  7616. v-if="checktoolArray.indexOf(28) == -1"
  7617. />
  7618. <div class="checkDiv" v-else>
  7619. <img src="../../assets/icon/checkedIs.png" alt /><span
  7620. >已选择</span
  7621. >
  7622. </div>
  7623. </div>
  7624. </div>
  7625. <div class="tool">
  7626. <div class="whiteBIcon" @click="addTools2(31)">
  7627. <img
  7628. src="../../assets/icon/secondToolList/networkPanel.png"
  7629. alt
  7630. />
  7631. <div style="margin: 5px 0">数字画板</div>
  7632. </div>
  7633. <div class="check" @click="addTools2(31)">
  7634. <img
  7635. src="../../assets/icon/checkNo.png"
  7636. alt
  7637. v-if="checktoolArray.indexOf(31) == -1"
  7638. />
  7639. <div class="checkDiv" v-else>
  7640. <img src="../../assets/icon/checkedIs.png" alt /><span
  7641. >已选择</span
  7642. >
  7643. </div>
  7644. </div>
  7645. </div>
  7646. <div class="tool">
  7647. <div class="whiteBIcon" @click="addTools2(39)">
  7648. <img
  7649. src="../../assets/icon/secondToolList/GeoGebra.png"
  7650. alt
  7651. />
  7652. <div style="margin: 5px 0">GeoGebra</div>
  7653. </div>
  7654. <div class="check" @click="addTools2(39)">
  7655. <img
  7656. src="../../assets/icon/checkNo.png"
  7657. alt
  7658. v-if="checktoolArray.indexOf(39) == -1"
  7659. />
  7660. <div class="checkDiv" v-else>
  7661. <img src="../../assets/icon/checkedIs.png" alt /><span
  7662. >已选择</span
  7663. >
  7664. </div>
  7665. </div>
  7666. </div>
  7667. <div class="tool">
  7668. <div class="whiteBIcon" @click="addTools2(66)">
  7669. <img
  7670. src="../../assets/icon/secondToolList/formulaEdi.png"
  7671. alt
  7672. />
  7673. <div style="margin: 5px 0">公式编辑</div>
  7674. </div>
  7675. <div class="check" @click="addTools2(66)">
  7676. <img
  7677. src="../../assets/icon/checkNo.png"
  7678. alt
  7679. v-if="checktoolArray.indexOf(66) == -1"
  7680. />
  7681. <div class="checkDiv" v-else>
  7682. <img src="../../assets/icon/checkedIs.png" alt /><span
  7683. >已选择</span
  7684. >
  7685. </div>
  7686. </div>
  7687. </div>
  7688. <div class="tool">
  7689. <div class="whiteBIcon" @click="addTools2(67)">
  7690. <img
  7691. src="../../assets/icon/secondToolList/molStr.png"
  7692. alt
  7693. />
  7694. <div style="margin: 5px 0">分子结构</div>
  7695. </div>
  7696. <div class="check" @click="addTools2(67)">
  7697. <img
  7698. src="../../assets/icon/checkNo.png"
  7699. alt
  7700. v-if="checktoolArray.indexOf(67) == -1"
  7701. />
  7702. <div class="checkDiv" v-else>
  7703. <img src="../../assets/icon/checkedIs.png" alt /><span
  7704. >已选择</span
  7705. >
  7706. </div>
  7707. </div>
  7708. </div>
  7709. <div class="tool">
  7710. <div class="whiteBIcon" @click="addTools2(68)">
  7711. <img
  7712. src="../../assets/icon/secondToolList/timeAxis.png"
  7713. alt
  7714. />
  7715. <div style="margin: 5px 0">时间轴</div>
  7716. </div>
  7717. <div class="check" @click="addTools2(68)">
  7718. <img
  7719. src="../../assets/icon/checkNo.png"
  7720. alt
  7721. v-if="checktoolArray.indexOf(68) == -1"
  7722. />
  7723. <div class="checkDiv" v-else>
  7724. <img src="../../assets/icon/checkedIs.png" alt /><span
  7725. >已选择</span
  7726. >
  7727. </div>
  7728. </div>
  7729. </div>
  7730. </div>
  7731. <div class="toolSort" v-if="toolType == 7">
  7732. <div class="tool">
  7733. <div class="whiteBIcon" @click="addTools2(40)">
  7734. <img
  7735. src="../../assets/icon/secondToolList/eval.png"
  7736. alt
  7737. />
  7738. <div style="margin: 5px 0">个人评价</div>
  7739. </div>
  7740. <div class="check" @click="addTools2(40)">
  7741. <img
  7742. src="../../assets/icon/checkNo.png"
  7743. alt
  7744. v-if="checktoolArray.indexOf(40) == -1"
  7745. />
  7746. <div class="checkDiv" v-else>
  7747. <img src="../../assets/icon/checkedIs.png" alt /><span
  7748. >已选择</span
  7749. >
  7750. </div>
  7751. </div>
  7752. </div>
  7753. </div>
  7754. <div class="toolSort" v-if="toolType == 4">
  7755. <div class="tool">
  7756. <div class="whiteBIcon" @click="addTools2(26)">
  7757. <img
  7758. src="../../assets/icon/thirdToolList/courseDesign.png"
  7759. alt
  7760. />
  7761. <div style="margin: 5px 0">课程设计</div>
  7762. </div>
  7763. <div class="check" @click="addTools2(26)">
  7764. <img
  7765. src="../../assets/icon/checkNo.png"
  7766. alt
  7767. v-if="checktoolArray.indexOf(26) == -1"
  7768. />
  7769. <div class="checkDiv" v-else>
  7770. <img src="../../assets/icon/checkedIs.png" alt /><span
  7771. >已选择</span
  7772. >
  7773. </div>
  7774. </div>
  7775. </div>
  7776. <div class="tool">
  7777. <div class="whiteBIcon" @click="addTools2(25)">
  7778. <img
  7779. src="../../assets/icon/thirdToolList/evalua.png"
  7780. alt
  7781. />
  7782. <div style="margin: 5px 0">目标管理</div>
  7783. </div>
  7784. <div class="check" @click="addTools2(25)">
  7785. <img
  7786. src="../../assets/icon/checkNo.png"
  7787. alt
  7788. v-if="checktoolArray.indexOf(25) == -1"
  7789. />
  7790. <div class="checkDiv" v-else>
  7791. <img src="../../assets/icon/checkedIs.png" alt /><span
  7792. >已选择</span
  7793. >
  7794. </div>
  7795. </div>
  7796. </div>
  7797. </div>
  7798. </div>
  7799. </div>
  7800. </div>
  7801. </div> -->
  7802. <div
  7803. class="vedioBox"
  7804. style="margin-top: 10px; border-radius: 20px"
  7805. v-if="
  7806. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7807. .eList &&
  7808. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7809. .eList.length &&
  7810. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7811. .eList.length > 0 &&
  7812. tType != 2
  7813. "
  7814. >
  7815. <div
  7816. class="queTop"
  7817. style="
  7818. font-size: 20px;
  7819. padding: 15px 0 15px 37px;
  7820. font-weight: bold;
  7821. "
  7822. >
  7823. <!-- <div class="question" style="width: 30px">
  7824. <img src="../assets/icon/toolIcon.png" alt />
  7825. </div>
  7826. <div class="queTitle">
  7827. <div>工具</div>
  7828. </div>-->
  7829. 评一评
  7830. </div>
  7831. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7832. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7833. <el-table
  7834. :data="
  7835. chapInfoList[courseType].chapterInfo[0].taskJson[
  7836. taskCount
  7837. ].eList
  7838. "
  7839. :header-cell-style="{ background: '#F0F4FA' }"
  7840. :row-class-name="tableRowClassName"
  7841. border
  7842. stripe
  7843. style="width: 100%"
  7844. >
  7845. <el-table-column width="150" label="目标" align="center">
  7846. <template slot-scope="scope"
  7847. >
  7848. <div style="display:flex;justify-content: center;align-items: center;">
  7849. <img
  7850. class="blueRootCss"
  7851. v-if="scope.row.isai == 1 || !scope.row.isai && courseDetail.state == 5"
  7852. src="../../assets/icon/newIcons/blueRoot.png"
  7853. alt=""
  7854. />
  7855. <div v-if="courseDetail.state == 5">
  7856. {{
  7857. scope.row.target
  7858. ? scope.row.target
  7859. : "-"
  7860. }}
  7861. </div>
  7862. <div v-else>
  7863. {{
  7864. scope.row.target
  7865. ? scope.row.target[scope.row.target.length - 1]
  7866. : "-"
  7867. }}
  7868. </div>
  7869. </div>
  7870. </template
  7871. ></el-table-column
  7872. >
  7873. <el-table-column
  7874. label="评价维度"
  7875. align="center"
  7876. >
  7877. <template slot-scope="scope"
  7878. ><div>{{ scope.row.value }}</div></template
  7879. >
  7880. </el-table-column>
  7881. <el-table-column
  7882. label="维度描述"
  7883. align="center"
  7884. >
  7885. <template slot-scope="scope"
  7886. ><div>
  7887. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7888. </div></template
  7889. >
  7890. </el-table-column>
  7891. <el-table-column
  7892. label="细则"
  7893. align="center"
  7894. v-if="courseDetail.state == 5"
  7895. >
  7896. <template slot-scope="scope"
  7897. ><div style="display:flex;justify-content: space-around;margin:auto" v-if="scope.row.rule">
  7898. <el-popover
  7899. placement="top"
  7900. width="350"
  7901. trigger="hover"
  7902. >
  7903. <div v-html="scope.row.rule" style="white-space:pre-wrap"></div>
  7904. <div slot="reference" style="color:#4383FF;cursor: pointer;">查看</div>
  7905. </el-popover>
  7906. </div>
  7907. <div v-else>-</div>
  7908. </template
  7909. >
  7910. </el-table-column>
  7911. </el-table>
  7912. <!-- <div
  7913. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7914. .chapterInfo[0].taskJson[taskCount].eList"
  7915. :key="eIndex"
  7916. class="elist_input_box"
  7917. >
  7918. <div style="width: 95%">
  7919. <div
  7920. style="
  7921. display: flex;
  7922. flex-direction: row;
  7923. flex-wrap: nowrap;
  7924. align-items: center;
  7925. "
  7926. >
  7927. <div style="max-width: calc(100% - 285px)">
  7928. <span>{{ eItem.value }}</span>
  7929. </div>
  7930. <div
  7931. style="
  7932. padding-left: 25px;
  7933. display: flex;
  7934. flex-direction: row;
  7935. align-items: center;
  7936. "
  7937. >
  7938. <el-rate
  7939. v-model="eItem.score"
  7940. :colors="colors"
  7941. disabled
  7942. ></el-rate>
  7943. </div>
  7944. </div>
  7945. <div class="elist_inptu_text" style="padding-left: 10px">
  7946. <span v-if="eItem.detail != ''">{{
  7947. eItem.detail
  7948. }}</span>
  7949. <span v-else style="color: #b2b1b3; font-size: 14px"
  7950. >暂无描述...</span
  7951. >
  7952. </div>
  7953. </div>
  7954. </div> -->
  7955. </div>
  7956. <div
  7957. v-if="evalua"
  7958. style="
  7959. border: 1px solid #e5e5e5;
  7960. max-width: 650px;
  7961. width: 100%;
  7962. margin-top: 20px;
  7963. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7964. "
  7965. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7966. >
  7967. <div class="e_add_top">
  7968. <div class="e_add_title" style="width: 100%">
  7969. <!-- <span>目标管理名称</span> -->
  7970. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7971. <img
  7972. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7973. src="../../assets/line.png"
  7974. class="cru_line"
  7975. style="
  7976. width: 125px;
  7977. height: 20px;
  7978. bottom: -10px;
  7979. left: 5px;
  7980. "
  7981. />
  7982. <!-- <el-input
  7983. v-model="eTitle"
  7984. placeholder="请输入名称"
  7985. @change="setMindData"
  7986. ></el-input>-->
  7987. <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>
  7988. <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>
  7989. </div>
  7990. </div>
  7991. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7992. <div class="e_add_list_pbox">
  7993. <div class="e_add_list_pbox_title">
  7994. <!-- <span class="type_title">切换模式</span> -->
  7995. <div class="type_content">
  7996. <span
  7997. :class="{ active: typeMode == 1 }"
  7998. @click="typeMode = 1"
  7999. >目标树</span
  8000. >
  8001. <span
  8002. :class="{ active: typeMode == 2 }"
  8003. @click="typeMode = 2"
  8004. >目标罗盘</span
  8005. >
  8006. <!-- <span
  8007. :class="{ active: typeMode == 3 }"
  8008. @click="typeMode = 3"
  8009. >目标看板</span
  8010. > -->
  8011. </div>
  8012. </div>
  8013. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8014. <Mind
  8015. :showBar="false"
  8016. :mindData="data"
  8017. style="width: 100%"
  8018. v-show="typeMode == 1"
  8019. ></Mind>
  8020. <Sunburst
  8021. :Josn="eJson"
  8022. :num="eJSONNum"
  8023. style="width: 100%"
  8024. v-if="typeMode == 2"
  8025. ></Sunburst>
  8026. <SeeBoard
  8027. :Josn="eJson"
  8028. :num="eJSONNum"
  8029. :ename="eTitle"
  8030. style="width: 100%"
  8031. v-if="typeMode == 3"
  8032. >
  8033. </SeeBoard>
  8034. </div>
  8035. </div>
  8036. </div>
  8037. </div>
  8038. </div>
  8039. </div>
  8040. <!-- <div
  8041. class="project_box"
  8042. style="margin-top: 15px; padding-bottom: 30px"
  8043. >
  8044. <div
  8045. style="
  8046. display: flex;
  8047. flex-wrap: nowrap;
  8048. flex-direction: column;
  8049. position: relative;
  8050. "
  8051. >
  8052. <div class="queTop">
  8053. <div class="question">
  8054. <img src="../../assets/icon/homeWork.png" alt="" />
  8055. </div>
  8056. <div class="queTitle">
  8057. <div>作业提交<span>(提交图文视频等)</span></div>
  8058. <div>:任务:{{ task.task }}</div>
  8059. </div>
  8060. </div>
  8061. <div class="ediBottom">
  8062. <div
  8063. class="addEditor"
  8064. style="margin-top: 23px"
  8065. @click="openAddWork"
  8066. v-if="!isNoHomeWork"
  8067. >
  8068. 选择文件
  8069. </div>
  8070. <div
  8071. class="addEditor"
  8072. style="margin-top: 23px"
  8073. @click="openAddWork"
  8074. v-else
  8075. >
  8076. 已提交
  8077. </div>
  8078. </div>
  8079. </div>
  8080. </div>-->
  8081. </div>
  8082. </div>
  8083. <el-dialog
  8084. title="作业提交"
  8085. :visible.sync="dialogVisible"
  8086. :append-to-body="true"
  8087. width="500px"
  8088. :before-close="handleClose"
  8089. class="dialog_change"
  8090. >
  8091. <div class="marginT">
  8092. <div>上传文件</div>
  8093. <div
  8094. class="chapter_add"
  8095. @click="addImg($event)"
  8096. v-if="studyJuri[0].cover.length == 0"
  8097. >
  8098. <div class="up_photo">
  8099. <img src="../../assets/icon/uploadImg.png" alt />
  8100. </div>
  8101. <!-- <input
  8102. type="file"
  8103. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8104. style="display: none"
  8105. @change="beforeUpload1($event, 1)"
  8106. /> -->
  8107. <input
  8108. type="file"
  8109. accept="*"
  8110. style="display: none"
  8111. @change="beforeUpload1($event, 1)"
  8112. />
  8113. <!-- <input
  8114. type="file"
  8115. accept="image/*"
  8116. capture="camera"
  8117. style="display: none"
  8118. @change="beforeUpload1($event, 1)"
  8119. /> -->
  8120. </div>
  8121. <div
  8122. class="chapter_add"
  8123. style="
  8124. display: flex;
  8125. width: 100%;
  8126. flex-direction: row;
  8127. flex-wrap: wrap;
  8128. justify-content: flex-start;
  8129. padding: 15px 0;
  8130. "
  8131. v-if="studyJuri[0].cover.length > 0"
  8132. >
  8133. <div class="upCover">
  8134. <img
  8135. :src="studyJuri[0].cover[0].url"
  8136. alt
  8137. v-if="fileType == 0"
  8138. />
  8139. <img :src="word" alt v-else-if="fileType == 1" />
  8140. <img :src="video" alt v-else-if="fileType == 2" />
  8141. <img :src="word2" alt v-else-if="fileType == 3" />
  8142. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8143. <div class="deleteWord" @click="clean(1)">
  8144. <img src="../../assets/icon/deleteWorks.png" alt />
  8145. </div>
  8146. </div>
  8147. </div>
  8148. </div>
  8149. <div
  8150. class="upload_send"
  8151. @click="addCourseWorks(taskCount)"
  8152. v-if="!proVisible"
  8153. >
  8154. 提交
  8155. </div>
  8156. </el-dialog>
  8157. </div>
  8158. </div>
  8159. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8160. <classRoomHelper :videoStart="videoStart" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8161. '/courseDetail?userid=' +
  8162. userid +
  8163. '&oid=' +
  8164. oid +
  8165. '&org=' +
  8166. org +
  8167. '&cid=' +
  8168. classId +
  8169. '&courseId=' +
  8170. id +
  8171. '&tType=' +
  8172. tType +
  8173. '&screenType=' +
  8174. screenType
  8175. )"></classRoomHelper>
  8176. <div
  8177. class="pButton"
  8178. @click="(pzDialog = true), selectPz()"
  8179. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8180. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8181. >
  8182. <!-- 批 -->
  8183. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8184. </div>
  8185. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8186. <div class="pzTop2">
  8187. <!-- <div>评论</div>
  8188. <div @click="pzDialog = false">
  8189. <img src="../../assets/close1.png" alt="" />
  8190. </div> -->
  8191. <div class="checkbox">
  8192. <!-- <div class="check" style="font-size: 25px; position: unset">
  8193. 评论
  8194. </div> -->
  8195. <div class="cb-tabList">
  8196. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8197. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8198. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8199. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8200. </div>
  8201. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8202. <el-option label="时间降序" :value="1"></el-option>
  8203. <el-option label="时间升序" :value="2"></el-option>
  8204. <el-option label="我的评课" :value="3"></el-option>
  8205. </el-select>
  8206. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8207. </div>
  8208. </div>
  8209. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8210. <div class="pzListBox" v-if="pzList && pzList.length">
  8211. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8212. <div class="pzNavTop">
  8213. <div>评</div>
  8214. <div>
  8215. {{
  8216. pz.username && pz.username.length > 5
  8217. ? pz.username.substring(0, 5) + "..."
  8218. : pz.username
  8219. }}的评论
  8220. </div>
  8221. <div
  8222. class="pzDelete"
  8223. v-if="pz.userid == userid"
  8224. @click="deletePz(pz.id)"
  8225. >
  8226. 删除
  8227. </div>
  8228. </div>
  8229. <div
  8230. @click="checkImg(getImgList(pz.content))"
  8231. class="pzContent cont"
  8232. v-html="pz.content"
  8233. v-if="pz.type == '1'"
  8234. ></div>
  8235. <div class="pzContent" v-if="pz.type == '2'">
  8236. <audio :src="pz.content" controls="controls" ref="audio">
  8237. Your browser does not support the audio element.
  8238. </audio>
  8239. </div>
  8240. <div class="pzContent" v-if="pz.type == '3'">
  8241. <img
  8242. :src="pz.content"
  8243. style="width: 90%; margin: 0 auto; display: block"
  8244. @click="previewImg(pz.content)"
  8245. />
  8246. </div>
  8247. <div class="timeAndReply">
  8248. <div class="time">
  8249. {{ pz.time }}
  8250. </div>
  8251. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8252. </div>
  8253. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8254. <div
  8255. v-for="(h, hIndex) in pz.hfList"
  8256. :key="hIndex"
  8257. class="hfItem"
  8258. >
  8259. <div class="whoReplyWho">
  8260. <div class="hfName">{{ h.username }}</div>
  8261. <div class="hfImg">
  8262. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8263. </div>
  8264. <div class="hfName">{{ pz.username }}</div>
  8265. </div>
  8266. <div class="hfContent" v-html="h.content"></div>
  8267. <div class="hfBottom">
  8268. <div class="hfTime">{{ h.time }}</div>
  8269. <div
  8270. class="deleteHfItem"
  8271. @click="deleteReply(h.id)"
  8272. v-if="userid == h.userid"
  8273. >
  8274. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8275. </div>
  8276. </div>
  8277. </div>
  8278. </div>
  8279. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8280. <div class="replyInput">
  8281. <el-input v-model="reply[pzIndex]"></el-input>
  8282. </div>
  8283. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8284. </div> -->
  8285. </div>
  8286. </div>
  8287. <div class="noPz" v-else>
  8288. <img src="../../assets/icon/noPz.png" alt="" />
  8289. </div>
  8290. <div class="addPzButton">
  8291. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8292. 添加评论
  8293. </div>
  8294. <!-- <div class="img1">
  8295. <div @click="(addPzDialog = true), (pzType = 2)">
  8296. <img src="../../assets/audio.png" /><span>音频</span>
  8297. </div>
  8298. </div> -->
  8299. </div>
  8300. </div>
  8301. <div class="scoreList" v-if="commentTagShow==1">
  8302. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8303. </div>
  8304. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8305. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8306. </div>
  8307. </div>
  8308. <div
  8309. v-if="toolDialogVisible == true"
  8310. class="toolMask"
  8311. @click="toolDialogVisible = false"
  8312. ></div>
  8313. <div v-if="toolDialogVisible == true" class="addToolCss">
  8314. <div class="toolTop">
  8315. <div style="font-weight: bold">新增工具</div>
  8316. <div @click="toolDialogVisible = false">
  8317. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8318. </div>
  8319. </div>
  8320. <div class="tool_box">
  8321. <div class="tool_type_box">
  8322. <div class="chooseWho">
  8323. <div
  8324. :class="toolType == 0 ? 'isChooseActive' : ''"
  8325. @click="(toolType = 0), $forceUpdate()"
  8326. >
  8327. 互动类
  8328. </div>
  8329. <div
  8330. :class="toolType == 1 ? 'isChooseActive' : ''"
  8331. @click="(toolType = 1), $forceUpdate()"
  8332. >
  8333. 思维类
  8334. </div>
  8335. <div
  8336. :class="toolType == 2 ? 'isChooseActive' : ''"
  8337. @click="(toolType = 2), $forceUpdate()"
  8338. >
  8339. 测评类
  8340. </div>
  8341. <div
  8342. :class="toolType == 3 ? 'isChooseActive' : ''"
  8343. @click="(toolType = 3), $forceUpdate()"
  8344. >
  8345. 编程类
  8346. </div>
  8347. <div
  8348. :class="toolType == 5 ? 'isChooseActive' : ''"
  8349. @click="(toolType = 5), $forceUpdate()"
  8350. >
  8351. 学科类
  8352. </div>
  8353. </div>
  8354. </div>
  8355. <div>
  8356. <div class="toolSort" v-if="toolType == 0">
  8357. <div
  8358. class="tool"
  8359. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8360. @click="addTools2(10)"
  8361. >
  8362. <div class="whiteBIcon">
  8363. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8364. <div style="margin: 5px 0">倒计时</div>
  8365. </div>
  8366. <div class="check">
  8367. <div
  8368. v-if="checktoolArray.indexOf(10) == -1"
  8369. class="noChoose"
  8370. ></div>
  8371. <div v-else class="isChoose"></div>
  8372. </div>
  8373. </div>
  8374. <div
  8375. class="tool"
  8376. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8377. @click="addTools2(65)"
  8378. >
  8379. <div class="whiteBIcon">
  8380. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8381. <div style="margin: 5px 0">挑人</div>
  8382. </div>
  8383. <div class="check">
  8384. <div
  8385. v-if="checktoolArray.indexOf(65) == -1"
  8386. class="noChoose"
  8387. ></div>
  8388. <div v-else class="isChoose"></div>
  8389. </div>
  8390. </div>
  8391. </div>
  8392. <div class="toolSort" v-if="toolType == 1">
  8393. <div
  8394. class="tool"
  8395. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8396. @click="addTools2(7)"
  8397. >
  8398. <div class="whiteBIcon">
  8399. <img
  8400. src="../../assets/icon/secondToolList/mindNetwork.png"
  8401. alt
  8402. />
  8403. <div style="margin: 5px 0">思维网格</div>
  8404. </div>
  8405. <div class="check">
  8406. <div
  8407. v-if="checktoolArray.indexOf(7) == -1"
  8408. class="noChoose"
  8409. ></div>
  8410. <div v-else class="isChoose"></div>
  8411. </div>
  8412. </div>
  8413. <div
  8414. class="tool"
  8415. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8416. @click="addTools2(1)"
  8417. >
  8418. <div class="whiteBIcon">
  8419. <img
  8420. src="../../assets/icon/secondToolList/whiteBoard.png"
  8421. alt
  8422. />
  8423. <div style="margin: 5px 0">电子白板</div>
  8424. </div>
  8425. <div class="check">
  8426. <div
  8427. v-if="checktoolArray.indexOf(1) == -1"
  8428. class="noChoose"
  8429. ></div>
  8430. <div v-else class="isChoose"></div>
  8431. </div>
  8432. </div>
  8433. <div
  8434. class="tool"
  8435. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8436. @click="addTools2(52)"
  8437. >
  8438. <div class="whiteBIcon">
  8439. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8440. <div style="margin: 5px 0">文档</div>
  8441. </div>
  8442. <div class="check">
  8443. <div
  8444. v-if="checktoolArray.indexOf(52) == -1"
  8445. class="noChoose"
  8446. ></div>
  8447. <div v-else class="isChoose"></div>
  8448. </div>
  8449. </div>
  8450. <div
  8451. class="tool"
  8452. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8453. @click="addTools2(3)"
  8454. >
  8455. <div class="whiteBIcon">
  8456. <img
  8457. src="../../assets/icon/secondToolList/mindMapping.png"
  8458. alt
  8459. />
  8460. <div style="margin: 5px 0">思维导图</div>
  8461. </div>
  8462. <div class="check">
  8463. <div
  8464. v-if="checktoolArray.indexOf(3) == -1"
  8465. class="noChoose"
  8466. ></div>
  8467. <div v-else class="isChoose"></div>
  8468. </div>
  8469. </div>
  8470. <div
  8471. class="tool"
  8472. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8473. @click="addTools2(48)"
  8474. >
  8475. <div class="whiteBIcon">
  8476. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8477. <div style="margin: 5px 0">表格</div>
  8478. </div>
  8479. <div class="check">
  8480. <div
  8481. v-if="checktoolArray.indexOf(48) == -1"
  8482. class="noChoose"
  8483. ></div>
  8484. <div v-else class="isChoose"></div>
  8485. </div>
  8486. </div>
  8487. </div>
  8488. <div class="toolSort" v-if="toolType == 6">
  8489. <div v-show="tooC == 49">
  8490. <img
  8491. @click="addTools(tooC, toolIndex, taskCount)"
  8492. src="../../assets/icon/fourthToolList/group.png"
  8493. alt
  8494. />
  8495. <div style="margin: 5px 0">学生分组</div>
  8496. </div>
  8497. </div>
  8498. <div class="toolSort" v-if="toolType == 2">
  8499. <div
  8500. class="tool"
  8501. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8502. @click="addTools2(16)"
  8503. >
  8504. <div class="whiteBIcon">
  8505. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8506. <div style="margin: 5px 0">作业提交</div>
  8507. </div>
  8508. <div class="check">
  8509. <div
  8510. v-if="checktoolArray.indexOf(16) == -1"
  8511. class="noChoose"
  8512. ></div>
  8513. <div v-else class="isChoose"></div>
  8514. </div>
  8515. </div>
  8516. <div
  8517. class="tool"
  8518. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8519. @click="addTools2(50)"
  8520. >
  8521. <div class="whiteBIcon">
  8522. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8523. <div style="margin: 5px 0">批量上传</div>
  8524. </div>
  8525. <div class="check">
  8526. <div
  8527. v-if="checktoolArray.indexOf(50) == -1"
  8528. class="noChoose"
  8529. ></div>
  8530. <div v-else class="isChoose"></div>
  8531. </div>
  8532. </div>
  8533. </div>
  8534. <div class="toolSort" v-if="toolType == 3">
  8535. <div
  8536. class="tool"
  8537. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8538. @click="addTools2(18)"
  8539. >
  8540. <div class="whiteBIcon">
  8541. <img
  8542. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8543. alt
  8544. />
  8545. <div style="margin: 5px 0">训练平台</div>
  8546. </div>
  8547. <div class="check">
  8548. <div
  8549. v-if="checktoolArray.indexOf(18) == -1"
  8550. class="noChoose"
  8551. ></div>
  8552. <div v-else class="isChoose"></div>
  8553. </div>
  8554. </div>
  8555. <div
  8556. class="tool"
  8557. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8558. @click="addTools2(21)"
  8559. >
  8560. <div class="whiteBIcon">
  8561. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8562. <div style="margin: 5px 0">AIoT Blockly</div>
  8563. </div>
  8564. <div class="check">
  8565. <div
  8566. v-if="checktoolArray.indexOf(21) == -1"
  8567. class="noChoose"
  8568. ></div>
  8569. <div v-else class="isChoose"></div>
  8570. </div>
  8571. </div>
  8572. <div
  8573. class="tool"
  8574. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8575. @click="addTools2(23)"
  8576. >
  8577. <div class="whiteBIcon">
  8578. <img
  8579. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8580. alt
  8581. />
  8582. <div style="margin: 5px 0">AI Python</div>
  8583. </div>
  8584. <div class="check">
  8585. <div
  8586. v-if="checktoolArray.indexOf(23) == -1"
  8587. class="noChoose"
  8588. ></div>
  8589. <div v-else class="isChoose"></div>
  8590. </div>
  8591. </div>
  8592. <div
  8593. class="tool"
  8594. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8595. @click="addTools2(24)"
  8596. >
  8597. <div class="whiteBIcon">
  8598. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8599. <div style="margin: 5px 0">AI Blockly</div>
  8600. </div>
  8601. <div class="check">
  8602. <div
  8603. v-if="checktoolArray.indexOf(24) == -1"
  8604. class="noChoose"
  8605. ></div>
  8606. <div v-else class="isChoose"></div>
  8607. </div>
  8608. </div>
  8609. <div
  8610. class="tool"
  8611. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8612. @click="addTools2(32)"
  8613. >
  8614. <div class="whiteBIcon">
  8615. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8616. <div style="margin: 5px 0">源码编辑</div>
  8617. </div>
  8618. <div class="check">
  8619. <div
  8620. v-if="checktoolArray.indexOf(32) == -1"
  8621. class="noChoose"
  8622. ></div>
  8623. <div v-else class="isChoose"></div>
  8624. </div>
  8625. </div>
  8626. <div
  8627. class="tool"
  8628. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8629. @click="addTools2(57)"
  8630. >
  8631. <div class="whiteBIcon">
  8632. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8633. <div style="margin: 5px 0">CocoPi</div>
  8634. </div>
  8635. <div class="check">
  8636. <div
  8637. v-if="checktoolArray.indexOf(57) == -1"
  8638. class="noChoose"
  8639. ></div>
  8640. <div v-else class="isChoose"></div>
  8641. </div>
  8642. </div>
  8643. <div
  8644. class="tool"
  8645. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8646. @click="addTools2(63)"
  8647. >
  8648. <div class="whiteBIcon">
  8649. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8650. <div style="margin: 5px 0">海龟编程</div>
  8651. </div>
  8652. <div class="check">
  8653. <div
  8654. v-if="checktoolArray.indexOf(63) == -1"
  8655. class="noChoose"
  8656. ></div>
  8657. <div v-else class="isChoose"></div>
  8658. </div>
  8659. </div>
  8660. <div
  8661. class="tool"
  8662. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8663. @click="addTools2(71)"
  8664. >
  8665. <div class="whiteBIcon">
  8666. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8667. <div style="margin: 5px 0">AI智能体</div>
  8668. </div>
  8669. <div class="check">
  8670. <div
  8671. v-if="checktoolArray.indexOf(71) == -1"
  8672. class="noChoose"
  8673. ></div>
  8674. <div v-else class="isChoose"></div>
  8675. </div>
  8676. </div>
  8677. </div>
  8678. <div class="toolSort" v-if="toolType == 7">
  8679. <div
  8680. class="tool"
  8681. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8682. @click="addTools2(40)"
  8683. >
  8684. <div class="whiteBIcon">
  8685. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8686. <div style="margin: 5px 0">个人评价</div>
  8687. </div>
  8688. <div class="check">
  8689. <div
  8690. v-if="checktoolArray.indexOf(40) == -1"
  8691. class="noChoose"
  8692. ></div>
  8693. <div v-else class="isChoose"></div>
  8694. </div>
  8695. </div>
  8696. </div>
  8697. <div class="toolSort" v-if="toolType == 5">
  8698. <div
  8699. class="tool"
  8700. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8701. @click="addTools2(28)"
  8702. >
  8703. <div class="whiteBIcon">
  8704. <img
  8705. src="../../assets/icon/secondToolList/translation.png"
  8706. alt
  8707. />
  8708. <div style="margin: 5px 0">翻译</div>
  8709. </div>
  8710. <div class="check">
  8711. <div
  8712. v-if="checktoolArray.indexOf(28) == -1"
  8713. class="noChoose"
  8714. ></div>
  8715. <div v-else class="isChoose"></div>
  8716. </div>
  8717. </div>
  8718. <div
  8719. class="tool"
  8720. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8721. @click="addTools2(31)"
  8722. >
  8723. <div class="whiteBIcon">
  8724. <img
  8725. src="../../assets/icon/secondToolList/networkPanel.png"
  8726. alt
  8727. />
  8728. <div style="margin: 5px 0">数字画板</div>
  8729. </div>
  8730. <div class="check">
  8731. <div
  8732. v-if="checktoolArray.indexOf(31) == -1"
  8733. class="noChoose"
  8734. ></div>
  8735. <div v-else class="isChoose"></div>
  8736. </div>
  8737. </div>
  8738. <div
  8739. class="tool"
  8740. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8741. @click="addTools2(39)"
  8742. >
  8743. <div class="whiteBIcon">
  8744. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8745. <div style="margin: 5px 0">GeoGebra</div>
  8746. </div>
  8747. <div class="check">
  8748. <div
  8749. v-if="checktoolArray.indexOf(39) == -1"
  8750. class="noChoose"
  8751. ></div>
  8752. <div v-else class="isChoose"></div>
  8753. </div>
  8754. </div>
  8755. <div
  8756. class="tool"
  8757. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8758. @click="addTools2(66)"
  8759. >
  8760. <div class="whiteBIcon">
  8761. <img
  8762. src="../../assets/icon/secondToolList/formulaEdi.png"
  8763. alt
  8764. />
  8765. <div style="margin: 5px 0">公式编辑</div>
  8766. </div>
  8767. <div class="check">
  8768. <div
  8769. v-if="checktoolArray.indexOf(66) == -1"
  8770. class="noChoose"
  8771. ></div>
  8772. <div v-else class="isChoose"></div>
  8773. </div>
  8774. </div>
  8775. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8776. <div class="whiteBIcon" @click="addTools2(67)">
  8777. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8778. <div style="margin: 5px 0">分子结构</div>
  8779. </div>
  8780. <div class="check" @click="addTools2(67)">
  8781. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8782. <div v-else class="isChoose"></div>
  8783. </div>
  8784. </div> -->
  8785. <div
  8786. class="tool"
  8787. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8788. @click="addTools2(68)"
  8789. >
  8790. <div class="whiteBIcon">
  8791. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8792. <div style="margin: 5px 0">时间轴</div>
  8793. </div>
  8794. <div class="check">
  8795. <div
  8796. v-if="checktoolArray.indexOf(68) == -1"
  8797. class="noChoose"
  8798. ></div>
  8799. <div v-else class="isChoose"></div>
  8800. </div>
  8801. </div>
  8802. <!-- <div
  8803. class="tool"
  8804. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8805. @click="addTools2(69)"
  8806. >
  8807. <div class="whiteBIcon">
  8808. <img src="../../assets/icon/secondToolList/english.png" alt />
  8809. <div style="margin: 5px 0">英语写作</div>
  8810. </div>
  8811. <div class="check">
  8812. <div
  8813. v-if="checktoolArray.indexOf(69) == -1"
  8814. class="noChoose"
  8815. ></div>
  8816. <div v-else class="isChoose"></div>
  8817. </div>
  8818. </div> -->
  8819. </div>
  8820. <div class="toolSort" v-if="toolType == 4">
  8821. <div
  8822. class="tool"
  8823. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8824. @click="addTools2(26)"
  8825. >
  8826. <div class="whiteBIcon">
  8827. <img
  8828. src="../../assets/icon/thirdToolList/courseDesign.png"
  8829. alt
  8830. />
  8831. <div style="margin: 5px 0">课程设计</div>
  8832. </div>
  8833. <div class="check">
  8834. <div
  8835. v-if="checktoolArray.indexOf(26) == -1"
  8836. class="noChoose"
  8837. ></div>
  8838. <div v-else class="isChoose"></div>
  8839. </div>
  8840. </div>
  8841. <div
  8842. class="tool"
  8843. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8844. @click="addTools2(25)"
  8845. >
  8846. <div class="whiteBIcon">
  8847. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8848. <div style="margin: 5px 0">目标管理</div>
  8849. </div>
  8850. <div class="check">
  8851. <div
  8852. v-if="checktoolArray.indexOf(25) == -1"
  8853. class="noChoose"
  8854. ></div>
  8855. <div v-else class="isChoose"></div>
  8856. </div>
  8857. </div>
  8858. </div>
  8859. </div>
  8860. </div>
  8861. <span
  8862. slot="footer"
  8863. class="dialog-footer"
  8864. style="display: block; text-align: center; padding: 0 0 10px 0"
  8865. >
  8866. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8867. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8868. </span>
  8869. </div>
  8870. <div
  8871. v-if="replyDialogVisible == true"
  8872. class="addDialogCss"
  8873. v-el-drag-dialog
  8874. >
  8875. <div class="pzTop">
  8876. <div class="teacherPz">
  8877. <div class="teacherPzImg">
  8878. <img src="../../assets/icon/teacherPz.png" alt="" />
  8879. </div>
  8880. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8881. </div>
  8882. <div @click="replyDialogVisible = false">
  8883. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8884. </div>
  8885. </div>
  8886. <div class="addPzBox">
  8887. <!-- <div class="addPzCheck">
  8888. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8889. >文本</span
  8890. >
  8891. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8892. >音频</span
  8893. >
  8894. </div> -->
  8895. <div style="height: calc(100% - 50px)">
  8896. <editor-bar
  8897. class="binfo_input pzConText"
  8898. style="width: 100% !important; margin: 0 auto"
  8899. placeholder="请输入回复描述"
  8900. v-model="reply"
  8901. @change="change"
  8902. ></editor-bar>
  8903. </div>
  8904. <div class="addTextCss" @click="addHf">确定</div>
  8905. </div>
  8906. </div>
  8907. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8908. <div class="pzTop">
  8909. <div class="teacherPz">
  8910. <div class="teacherPzImg">
  8911. <img src="../../assets/icon/teacherPz.png" alt="" />
  8912. </div>
  8913. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8914. </div>
  8915. <div @click="addPzDialog = false">
  8916. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8917. </div>
  8918. </div>
  8919. <div class="addPzBox">
  8920. <div class="addPzCheck">
  8921. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8922. >文本</span
  8923. >
  8924. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8925. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8926. >音频</span
  8927. >
  8928. </div>
  8929. <div style="height: calc(100% - 95px)">
  8930. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8931. v-if="pzType == 1"></textarea> -->
  8932. <editor-bar
  8933. class="binfo_input pzConText"
  8934. style="width: 100% !important"
  8935. placeholder="请输入任务描述"
  8936. v-model="pzConText"
  8937. @change="change"
  8938. v-if="pzType == 1"
  8939. ></editor-bar>
  8940. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8941. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8942. <div @click="addImg($event)">
  8943. <el-button type="primary">上传图片</el-button>
  8944. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8945. @change="beforeUpload1($event, 4)" />
  8946. </div>
  8947. </div> -->
  8948. </div>
  8949. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8950. 确定
  8951. </div>
  8952. </div>
  8953. </div>
  8954. <div v-if="proVisible" class="mask">
  8955. <div class="progressBox">
  8956. <!-- <div id="closePro" class="closeCss">
  8957. <img src="../../assets/icon/close.png" alt />
  8958. </div> -->
  8959. <div class="lbox">
  8960. <img src="../../assets/loading.gif" />上传中,请稍后
  8961. </div>
  8962. <div style="margin-bottom: 10px">
  8963. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8964. </div>
  8965. <el-progress
  8966. :text-inside="true"
  8967. :stroke-width="20"
  8968. :percentage="progress"
  8969. style="width: 80%"
  8970. ></el-progress>
  8971. </div>
  8972. </div>
  8973. <div v-if="proVisible2" class="mask">
  8974. <div class="progressBox">
  8975. <div class="lbox">
  8976. <img src="../../assets/loading.gif" />上传中,请稍后
  8977. </div>
  8978. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8979. </div>
  8980. </div>
  8981. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8982. <img width="100%" :src="dialogImageUrl" alt />
  8983. </el-dialog>
  8984. <el-dialog
  8985. :title="noteName != '' ? noteName : '查看问卷'"
  8986. :visible.sync="dialogVisible5"
  8987. :append-to-body="true"
  8988. width="1000px"
  8989. :before-close="handleClose"
  8990. class="dialog_diy dialog_diy3"
  8991. >
  8992. <div>
  8993. <div
  8994. class="a_add_title"
  8995. style="
  8996. display: flex;
  8997. flex-direction: row;
  8998. align-items: center;
  8999. justify-content: center;
  9000. "
  9001. >
  9002. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9003. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9004. </div>
  9005. <div class="a_addBox">
  9006. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9007. 题目内容
  9008. </div>
  9009. <div
  9010. class="a_add_box"
  9011. v-for="(item1, index1) in askJson.askCount"
  9012. :key="index1"
  9013. >
  9014. <div class="a_add_head">
  9015. <div style="display: flex">
  9016. <span class="askIndex"> {{ index1 + 1 }}</span>
  9017. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9018. </div>
  9019. <img
  9020. v-if="askJson.askJson[index1].img"
  9021. :src="askJson.askJson[index1].img"
  9022. style="height: 300px; margin-top: 10px; max-width: 100%"
  9023. />
  9024. </div>
  9025. <div class="a_add_body">
  9026. <div class="a_add_input">
  9027. <el-radio-group
  9028. v-model="radio[index1]"
  9029. v-if="
  9030. askJson.askJson[index1].type == '1' ||
  9031. !askJson.askJson[index1].type
  9032. "
  9033. >
  9034. <el-radio
  9035. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9036. .checkList"
  9037. :key="checkIndex"
  9038. :label="checkIndex"
  9039. :disabled="isAnswer"
  9040. class="redioStyle"
  9041. ><span v-html="item2"></span
  9042. ></el-radio>
  9043. </el-radio-group>
  9044. <el-checkbox-group
  9045. v-model="radio[index1]"
  9046. v-if="askJson.askJson[index1].type == '2'"
  9047. >
  9048. <el-checkbox
  9049. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9050. .checkList"
  9051. :key="checkIndex1"
  9052. :label="checkIndex1"
  9053. :disabled="isAnswer"
  9054. class="redioStyle"
  9055. ><span v-html="item2"></span>
  9056. </el-checkbox>
  9057. </el-checkbox-group>
  9058. </div>
  9059. </div>
  9060. </div>
  9061. </div>
  9062. </div>
  9063. <span slot="footer" class="dialog-footer">
  9064. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9065. >取 消</el-button
  9066. >
  9067. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9068. >确 定</el-button
  9069. >
  9070. </span>
  9071. </el-dialog>
  9072. <el-dialog
  9073. :title="noteName != '' ? noteName : '查看问卷'"
  9074. :visible.sync="dialogVisible5Teacher"
  9075. :append-to-body="true"
  9076. width="1000px"
  9077. :before-close="handleClose"
  9078. class="dialog_diy dialog_diy3"
  9079. >
  9080. <div>
  9081. <div class="w_name">
  9082. 学生姓名:<span>{{ sStudent.student }}</span>
  9083. </div>
  9084. <div
  9085. class="a_add_title"
  9086. style="
  9087. display: flex;
  9088. flex-direction: row;
  9089. align-items: center;
  9090. justify-content: center;
  9091. "
  9092. >
  9093. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9094. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9095. </div>
  9096. <div class="a_addBox">
  9097. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9098. 题目内容
  9099. </div>
  9100. <div
  9101. class="a_add_box"
  9102. v-for="(item1, index1) in askJson.askCount"
  9103. :key="index1"
  9104. >
  9105. <div class="a_add_head">
  9106. <div style="display: flex">
  9107. <span class="askIndex">{{ index1 + 1 }}</span>
  9108. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9109. </div>
  9110. <img
  9111. v-if="askJson.askJson[index1].img"
  9112. :src="askJson.askJson[index1].img"
  9113. style="height: 300px; margin-top: 10px; max-width: 100%"
  9114. />
  9115. </div>
  9116. <div class="a_add_body">
  9117. <div class="a_add_input">
  9118. <el-radio-group
  9119. v-model="radio[index1]"
  9120. v-if="
  9121. askJson.askJson[index1].type == '1' ||
  9122. !askJson.askJson[index1].type
  9123. "
  9124. >
  9125. <el-radio
  9126. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9127. .checkList"
  9128. :key="checkIndex"
  9129. :label="checkIndex"
  9130. :disabled="isAnswer"
  9131. class="redioStyle"
  9132. ><span v-html="item2"></span
  9133. ></el-radio>
  9134. </el-radio-group>
  9135. <el-checkbox-group
  9136. v-model="radio[index1]"
  9137. v-if="askJson.askJson[index1].type == '2'"
  9138. >
  9139. <el-checkbox
  9140. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9141. .checkList"
  9142. :key="checkIndex1"
  9143. :label="checkIndex1"
  9144. :disabled="isAnswer"
  9145. class="redioStyle"
  9146. ><span v-html="item2"></span>
  9147. </el-checkbox>
  9148. </el-checkbox-group>
  9149. </div>
  9150. </div>
  9151. </div>
  9152. </div>
  9153. </div>
  9154. <span slot="footer" class="dialog-footer">
  9155. <el-button
  9156. @click="dialogVisible5Teacher = false"
  9157. v-show="noteName == ''"
  9158. >取 消</el-button
  9159. >
  9160. <el-button
  9161. type="primary"
  9162. @click="addStudentAskTeacher"
  9163. v-show="noteName == ''"
  9164. >确 定</el-button
  9165. >
  9166. </span>
  9167. </el-dialog>
  9168. <el-dialog
  9169. :title="noteName != '' ? noteName : '查看选择题'"
  9170. :visible.sync="dialogVisibleChoice"
  9171. :append-to-body="true"
  9172. width="1000px"
  9173. :before-close="handleClose"
  9174. class="dialog_diy dialog_diy3"
  9175. >
  9176. <div>
  9177. <!-- <div class="a_add_title" style="
  9178. display: flex;
  9179. flex-direction: row;
  9180. align-items: center;
  9181. justify-content: center;
  9182. ">
  9183. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9184. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9185. </div> -->
  9186. <div class="a_addBox">
  9187. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9188. 题目内容
  9189. </div>
  9190. <div
  9191. class="a_add_box"
  9192. v-for="(item1, index1) in testJson.testCount"
  9193. :key="index1"
  9194. >
  9195. <div class="a_add_head">
  9196. <div style="display: flex">
  9197. <span class="askIndex">{{ index1 + 1 }}</span>
  9198. <div
  9199. v-if="testJson.testJson[index1].type == '1'"
  9200. style="margin-right: 5px; min-width: 70px"
  9201. >
  9202. (单选题)
  9203. </div>
  9204. <div
  9205. v-if="testJson.testJson[index1].type == '2'"
  9206. style="margin-right: 5px; min-width: 70px"
  9207. >
  9208. (多选题)
  9209. </div>
  9210. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9211. </div>
  9212. <img
  9213. v-if="testJson.testJson[index1].img"
  9214. :src="testJson.testJson[index1].img"
  9215. style="height: 300px; margin-top: 10px; max-width: 100%"
  9216. />
  9217. </div>
  9218. <div
  9219. class="timuImgBox"
  9220. v-if="
  9221. testJson.testJson[index1].timuList &&
  9222. testJson.testJson[index1].timuList.length
  9223. "
  9224. >
  9225. <div
  9226. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9227. :key="tIndex"
  9228. class="timuImg"
  9229. @click.stop="previewImg(timg.src)"
  9230. >
  9231. <img :src="timg.src" alt="" />
  9232. </div>
  9233. </div>
  9234. <div class="a_add_body">
  9235. <div class="a_add_input">
  9236. <el-radio-group
  9237. v-model="radio[index1]"
  9238. v-if="testJson.testJson[index1].type == '1'"
  9239. >
  9240. <div class="radioBox">
  9241. <el-radio
  9242. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9243. .checkList"
  9244. :key="checkIndex"
  9245. :label="checkIndex"
  9246. :disabled="isAnswer"
  9247. class="redioStyle"
  9248. >
  9249. <div
  9250. style="margin-right: 10px"
  9251. v-if="item2 && item2.imgType && item2.imgType == 1"
  9252. >
  9253. <div class="inImg" @click.stop="previewImg(item2.src)">
  9254. <img :src="item2.src" alt="" />
  9255. </div>
  9256. </div>
  9257. <span v-else v-html="item2"></span>
  9258. </el-radio>
  9259. </div>
  9260. </el-radio-group>
  9261. <el-checkbox-group
  9262. v-model="radio[index1]"
  9263. v-if="testJson.testJson[index1].type == '2'"
  9264. >
  9265. <div class="radioBox">
  9266. <el-checkbox
  9267. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9268. .checkList"
  9269. :key="checkIndex"
  9270. :label="checkIndex"
  9271. :disabled="isAnswer"
  9272. class="redioStyle"
  9273. >
  9274. <div
  9275. style="margin-right: 10px"
  9276. v-if="item2 && item2.imgType && item2.imgType == 1"
  9277. >
  9278. <div class="inImg" @click.stop="previewImg(item2.src)">
  9279. <img :src="item2.src" alt="" />
  9280. </div>
  9281. </div>
  9282. <span v-else v-html="item2"></span>
  9283. </el-checkbox>
  9284. </div>
  9285. </el-checkbox-group>
  9286. </div>
  9287. </div>
  9288. </div>
  9289. </div>
  9290. </div>
  9291. <span slot="footer" class="dialog-footer">
  9292. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9293. >取 消</el-button
  9294. >
  9295. <el-button
  9296. type="primary"
  9297. @click="addStudentTest"
  9298. v-show="noteName == ''"
  9299. >确 定</el-button
  9300. >
  9301. </span>
  9302. </el-dialog>
  9303. <el-dialog
  9304. :title="noteName != '' ? noteName : '查看选择题'"
  9305. :visible.sync="dialogVisibleChoiceTeacher"
  9306. :append-to-body="true"
  9307. width="1000px"
  9308. :before-close="handleClose"
  9309. class="dialog_diy dialog_diy3"
  9310. >
  9311. <div>
  9312. <div class="w_name">
  9313. 学生姓名:<span>{{ sStudent.student }}</span>
  9314. </div>
  9315. <div class="a_addBox">
  9316. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9317. 题目内容
  9318. </div>
  9319. <div
  9320. class="a_add_box"
  9321. v-for="(item1, index1) in testJson.testCount"
  9322. :key="index1"
  9323. >
  9324. <div class="a_add_head">
  9325. <div style="display: flex">
  9326. <span class="askIndex">{{ index1 + 1 }}</span>
  9327. <div
  9328. v-if="testJson.testJson[index1].type == '1'"
  9329. style="margin-right: 5px; min-width: 70px"
  9330. >
  9331. (单选题)
  9332. </div>
  9333. <div
  9334. v-if="testJson.testJson[index1].type == '2'"
  9335. style="margin-right: 5px; min-width: 70px"
  9336. >
  9337. (多选题)
  9338. </div>
  9339. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9340. </div>
  9341. <img
  9342. v-if="testJson.testJson[index1].img"
  9343. :src="testJson.testJson[index1].img"
  9344. style="height: 300px; margin-top: 10px; max-width: 100%"
  9345. />
  9346. </div>
  9347. <div
  9348. class="timuImgBox"
  9349. v-if="
  9350. testJson.testJson[index1].timuList &&
  9351. testJson.testJson[index1].timuList.length
  9352. "
  9353. >
  9354. <div
  9355. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9356. :key="tIndex"
  9357. class="timuImg"
  9358. @click.stop="previewImg(timg.src)"
  9359. >
  9360. <img :src="timg.src" alt="" />
  9361. </div>
  9362. </div>
  9363. <div class="a_add_body">
  9364. <div class="a_add_input">
  9365. <el-radio-group
  9366. v-model="radio[index1]"
  9367. v-if="testJson.testJson[index1].type == '1'"
  9368. >
  9369. <div class="radioBox">
  9370. <el-radio
  9371. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9372. .checkList"
  9373. :key="checkIndex"
  9374. :label="checkIndex"
  9375. :disabled="isAnswer"
  9376. class="redioStyle"
  9377. >
  9378. <div
  9379. style="margin-right: 10px"
  9380. v-if="item2 && item2.imgType && item2.imgType == 1"
  9381. >
  9382. <div class="inImg" @click.stop="previewImg(item2.src)">
  9383. <img :src="item2.src" alt="" />
  9384. </div>
  9385. </div>
  9386. <span v-else v-html="item2"></span>
  9387. </el-radio>
  9388. </div>
  9389. </el-radio-group>
  9390. <el-checkbox-group
  9391. v-model="radio[index1]"
  9392. v-if="testJson.testJson[index1].type == '2'"
  9393. >
  9394. <div class="radioBox">
  9395. <el-checkbox
  9396. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9397. .checkList"
  9398. :key="checkIndex"
  9399. :label="checkIndex"
  9400. :disabled="isAnswer"
  9401. class="redioStyle"
  9402. >
  9403. <div
  9404. style="margin-right: 10px"
  9405. v-if="item2 && item2.imgType && item2.imgType == 1"
  9406. >
  9407. <div class="inImg" @click.stop="previewImg(item2.src)">
  9408. <img :src="item2.src" alt="" />
  9409. </div>
  9410. </div>
  9411. <span v-else v-html="item2"></span>
  9412. </el-checkbox>
  9413. </div>
  9414. </el-checkbox-group>
  9415. </div>
  9416. </div>
  9417. </div>
  9418. </div>
  9419. </div>
  9420. <span slot="footer" class="dialog-footer">
  9421. <el-button
  9422. @click="dialogVisibleChoiceTeacher = false"
  9423. v-show="noteName == ''"
  9424. >取 消</el-button
  9425. >
  9426. <el-button
  9427. type="primary"
  9428. @click="addStudentTestTeacher"
  9429. v-show="noteName == ''"
  9430. >确 定</el-button
  9431. >
  9432. </span>
  9433. </el-dialog>
  9434. <el-dialog
  9435. title="查看富文本"
  9436. :visible.sync="dialogVisible1"
  9437. :append-to-body="true"
  9438. width="500px"
  9439. :before-close="handleClose"
  9440. class="dialog_diy textCss"
  9441. >
  9442. <el-form style="font-size: 20px">
  9443. <el-form-item label="文本标题" class="textTitle">
  9444. <div style="font-size: 20px">{{ text.name }}</div>
  9445. </el-form-item>
  9446. <div>富文本内容</div>
  9447. <div
  9448. v-html="text.url"
  9449. style="font-size: 18px; padding: 40px 0 0 0"
  9450. ></div>
  9451. </el-form>
  9452. <span slot="footer" class="dialog-footer">
  9453. <el-button type="primary" @click="dialogVisible1 = false"
  9454. >确定</el-button
  9455. >
  9456. </span>
  9457. </el-dialog>
  9458. <el-dialog
  9459. title="文件预览"
  9460. :visible.sync="dialogVisible3"
  9461. width="50%"
  9462. :before-close="handleClose"
  9463. class="dialog_diy"
  9464. :class="{ fullStyle: full }"
  9465. >
  9466. <div slot="title" class="header-title">
  9467. <div style="color: #fff">文件预览</div>
  9468. <div style="position: absolute; top: 19px; right: 50px">
  9469. <img
  9470. src="../../assets/full.png"
  9471. style="height: 16px; cursor: pointer"
  9472. alt=""
  9473. @click="fullTools"
  9474. />
  9475. </div>
  9476. </div>
  9477. <pdf
  9478. v-if="showPDF"
  9479. :pdfUrl="pptImgUrl"
  9480. style="width: 100%; height: 520px; overflow: auto"
  9481. :class="{ fullStyle: full }"
  9482. ></pdf>
  9483. <iframe
  9484. v-else
  9485. :src="pptImgUrl"
  9486. frameborder="0"
  9487. width="100%"
  9488. height="600"
  9489. :class="{ fullStyle: full }"
  9490. ></iframe>
  9491. </el-dialog>
  9492. <el-dialog
  9493. title="文件预览"
  9494. :visible.sync="dialogVisible6"
  9495. width="50%"
  9496. :before-close="handleClose"
  9497. class="dialog_diy"
  9498. >
  9499. <iframe
  9500. :src="pptImgUrl1"
  9501. frameborder="0"
  9502. width="100%"
  9503. height="600"
  9504. ></iframe>
  9505. </el-dialog>
  9506. <el-dialog
  9507. title="提示"
  9508. :visible.sync="dialogVisible4"
  9509. :append-to-body="true"
  9510. width="800px"
  9511. :before-close="handleClose"
  9512. class="dialog_diy notice"
  9513. >
  9514. <div>此功能暂未开放!</div>
  9515. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9516. </el-dialog>
  9517. <el-dialog
  9518. title="问答"
  9519. :visible.sync="answerDialogVisible"
  9520. :append-to-body="true"
  9521. width="800px"
  9522. :before-close="handleClose"
  9523. class="dialog_diy"
  9524. >
  9525. <div>
  9526. <div
  9527. style="
  9528. display: flex;
  9529. flex-wrap: nowrap;
  9530. flex-direction: column;
  9531. position: relative;
  9532. "
  9533. >
  9534. <div class="queTop" style="padding: 20px 0 20px 0">
  9535. <div class="question">
  9536. <img src="../../assets/icon/question.png" alt />
  9537. </div>
  9538. <div class="queTitle">
  9539. <div style="width: 90px; min-width: 90px">提问:</div>
  9540. <div>{{ answerQ }}</div>
  9541. </div>
  9542. </div>
  9543. <div class="ediBottom">
  9544. <textarea
  9545. rows="6"
  9546. class="binfo_input"
  9547. cols
  9548. style="width: 95%; height: 120px"
  9549. v-model="questionAnswer"
  9550. ></textarea>
  9551. </div>
  9552. </div>
  9553. </div>
  9554. <div slot="footer">
  9555. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9556. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9557. </div>
  9558. </el-dialog>
  9559. <el-dialog
  9560. title="问答"
  9561. :visible.sync="answerDialogVisibleTeacher"
  9562. :append-to-body="true"
  9563. width="800px"
  9564. :before-close="handleClose"
  9565. class="dialog_diy"
  9566. >
  9567. <div>
  9568. <div class="w_name">
  9569. 学生姓名:<span>{{ sStudent.student }}</span>
  9570. </div>
  9571. <div
  9572. style="
  9573. display: flex;
  9574. flex-wrap: nowrap;
  9575. flex-direction: column;
  9576. position: relative;
  9577. "
  9578. >
  9579. <div class="queTop" style="padding: 20px 0 20px 0">
  9580. <div class="question">
  9581. <img src="../../assets/icon/question.png" alt />
  9582. </div>
  9583. <div class="queTitle">
  9584. <div style="width: 90px; min-width: 90px">提问:</div>
  9585. <div>{{ answerQ }}</div>
  9586. </div>
  9587. </div>
  9588. <div class="ediBottom">
  9589. <textarea
  9590. rows="6"
  9591. class="binfo_input"
  9592. cols
  9593. style="width: 95%; height: 120px"
  9594. v-model="questionAnswer"
  9595. ></textarea>
  9596. </div>
  9597. </div>
  9598. </div>
  9599. <div slot="footer">
  9600. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9601. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9602. </div>
  9603. </el-dialog>
  9604. <el-dialog
  9605. title="倒计时"
  9606. :visible.sync="timeDialogVisible"
  9607. :append-to-body="true"
  9608. width="800px"
  9609. :before-close="handleClose"
  9610. class="dialog_diy"
  9611. >
  9612. <div>
  9613. <div style="margin-bottom: 20px; color: #999">
  9614. 提示:点击“+”或“-”修改倒计时时长。
  9615. </div>
  9616. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9617. </div>
  9618. <div slot="footer">
  9619. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9620. </div>
  9621. </el-dialog>
  9622. <el-dialog
  9623. title="权限设置"
  9624. :visible.sync="juriVisible"
  9625. :append-to-body="true"
  9626. width="400px"
  9627. :before-close="handleClose"
  9628. class="dialog_diy"
  9629. >
  9630. <div>
  9631. <div class="open_box">
  9632. <div class="switch_box">
  9633. <span>允许学生查看所有作业</span>
  9634. <el-switch
  9635. v-model="sIsOpen"
  9636. active-text=""
  9637. class="switchCss"
  9638. @change="updateSLook"
  9639. ></el-switch>
  9640. </div>
  9641. <div
  9642. class="switch_box"
  9643. v-if="
  9644. courseDetail.userid == userid ||
  9645. (courseDetail.course_teacher &&
  9646. courseDetail.course_teacher.indexOf(userid) != -1)
  9647. "
  9648. >
  9649. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9650. <span>禁止学生查看所有阶段</span>
  9651. <el-switch
  9652. v-model="IsLookOpen"
  9653. active-text=""
  9654. class="switchCss"
  9655. @change="updateLookOpen"
  9656. ></el-switch>
  9657. </div>
  9658. <div class="switch_box" v-if="courseDetail.userid == userid">
  9659. <span>开启跟随模式</span>
  9660. <el-switch
  9661. v-model="IsFollow"
  9662. active-text=""
  9663. class="switchCss"
  9664. @change="updateFollow"
  9665. ></el-switch>
  9666. </div>
  9667. </div>
  9668. </div>
  9669. <div slot="footer">
  9670. <el-button
  9671. style="background: #409efe; color: #fff"
  9672. @click="juriVisible = false"
  9673. >关 闭</el-button
  9674. >
  9675. </div>
  9676. </el-dialog>
  9677. <el-dialog
  9678. title="查看视频"
  9679. :visible.sync="videoVisible"
  9680. :append-to-body="true"
  9681. width="1000px"
  9682. :before-close="handleClose"
  9683. class="dialog_diy1"
  9684. >
  9685. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9686. <video-player
  9687. class="video-player vjs-custom-skin"
  9688. :playsinline="true"
  9689. :options="videoDetail"
  9690. @play="onPlayerPlay($event)"
  9691. style="width: 100%; height: 100%"
  9692. ></video-player>
  9693. </div>
  9694. <div slot="footer">
  9695. <el-button
  9696. style="background: #409efe; color: #fff"
  9697. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9698. >
  9699. 关 闭</el-button
  9700. >
  9701. </div>
  9702. </el-dialog>
  9703. <el-dialog
  9704. title="查看详情"
  9705. :visible.sync="commentDialogVisible"
  9706. :append-to-body="true"
  9707. width="800px"
  9708. :before-close="handleClose"
  9709. class="dialog_diy"
  9710. >
  9711. <div class="commentTop">
  9712. <div class="studentDetail">
  9713. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9714. <div class="nameAndTime">
  9715. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9716. <div>{{ commentDetail.time }}</div>
  9717. </div>
  9718. <div
  9719. class="returnBtn"
  9720. style="margin-left: auto; width: 80px"
  9721. v-if="
  9722. commentDetail.works &&
  9723. commentDetail.type == 0 &&
  9724. (tType == 1 || tType == 4)
  9725. "
  9726. @click="
  9727. showPicturePaint(
  9728. commentDetail.img ? commentDetail.img : commentDetail.works
  9729. )
  9730. "
  9731. >
  9732. 教师批注
  9733. </div>
  9734. </div>
  9735. <div
  9736. class="worksAnswer"
  9737. v-if="commentDetail.works && commentDetail.type == 2"
  9738. >
  9739. {{ JSON.parse(commentDetail.works)[0].answer }}
  9740. </div>
  9741. <div
  9742. class="worksAnswer"
  9743. v-if="commentDetail.works && commentDetail.type == 1"
  9744. >
  9745. <img
  9746. src="../../assets/teacherWork.png"
  9747. v-if="commentDetail.ateacher"
  9748. class="w_teachert"
  9749. />
  9750. <pdf
  9751. v-if="showPDF"
  9752. :pdfUrl="pptImgUrl"
  9753. style="width: 100%; height: 520px; overflow: auto"
  9754. :class="{ fullStyle: full }"
  9755. ></pdf>
  9756. <iframe
  9757. v-else
  9758. :src="pptImgUrl"
  9759. frameborder="0"
  9760. width="100%"
  9761. height="600"
  9762. :class="{ fullStyle: full }"
  9763. ></iframe>
  9764. </div>
  9765. <div
  9766. class="worksAnswer"
  9767. v-if="commentDetail.works && commentDetail.type == 0"
  9768. >
  9769. <img
  9770. src="../../assets/teacherWork.png"
  9771. v-if="commentDetail.ateacher"
  9772. class="w_teachert"
  9773. style="right: 105px"
  9774. />
  9775. <img
  9776. :src="commentDetail.works"
  9777. alt=""
  9778. @click="previewImg(commentDetail.works)"
  9779. />
  9780. </div>
  9781. <div
  9782. class="worksAnswer"
  9783. v-if="commentDetail.works && commentDetail.type == 3"
  9784. >
  9785. <img
  9786. src="../../assets/teacherWork.png"
  9787. v-if="commentDetail.ateacher"
  9788. class="w_teachert"
  9789. />
  9790. <video-player
  9791. class="video-player vjs-custom-skin"
  9792. :playsinline="true"
  9793. :options="videoDetail"
  9794. @play="onPlayerPlay($event)"
  9795. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9796. ></video-player>
  9797. </div>
  9798. <div
  9799. class="worksAnswer"
  9800. v-if="commentDetail.works && commentDetail.type == 10"
  9801. >
  9802. <div class="cont" v-html="commentDetail.works.text"></div>
  9803. </div>
  9804. <div
  9805. class="worksAnswer codeFileBox"
  9806. v-if="commentDetail.works && commentDetail.type == 12"
  9807. @click="downloadFile(commentDetail.works)"
  9808. >
  9809. <img src="../../assets/icon/codeFile.png" />
  9810. <div>点击下载文件</div>
  9811. </div>
  9812. <div
  9813. class="worksAnswer codeFileBox"
  9814. v-if="commentDetail.works && commentDetail.type == 15"
  9815. @click="
  9816. openCocoPi(
  9817. 57,
  9818. commentIndexJson.toolIndex,
  9819. commentDetail.userid,
  9820. commentDetail.sName
  9821. )
  9822. "
  9823. >
  9824. <img src="../../assets/icon/codeFile.png" />
  9825. <div>点击打开CocoPi</div>
  9826. </div>
  9827. <div
  9828. class="worksAnswer"
  9829. v-if="commentDetail.works && commentDetail.type == 13"
  9830. >
  9831. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9832. </div>
  9833. <div
  9834. class="worksAnswer"
  9835. v-if="commentDetail.works && commentDetail.type == 4"
  9836. >
  9837. <div class="evalCss">
  9838. <div class="nav">请选择星星进行评分</div>
  9839. <div class="middleBox" v-if="eScore.eStar">
  9840. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9841. <div class="nameAndrate">
  9842. <div>{{ e.value }}</div>
  9843. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9844. </div>
  9845. <div v-if="e.detail">{{ e.detail }}</div>
  9846. </div>
  9847. <div class="bz">
  9848. <textarea
  9849. disabled
  9850. rows="4"
  9851. class="pj"
  9852. style="
  9853. padding: 10px 5px;
  9854. width: 70%;
  9855. background: #f7f6f9;
  9856. font-size: 14px;
  9857. text-indent: 10px;
  9858. color: #000;
  9859. "
  9860. cols
  9861. v-model="eScore.eBzText"
  9862. placeholder="请输入评价内容..."
  9863. ></textarea>
  9864. </div>
  9865. </div>
  9866. </div>
  9867. </div>
  9868. <div class="comment">
  9869. <div class="commentList">
  9870. <div class="commentImg">
  9871. <img
  9872. @click="
  9873. isLikes(
  9874. commentDetail.wid,
  9875. userid,
  9876. 1,
  9877. null,
  9878. commentDetail.isLikes,
  9879. commentDetail.sName
  9880. )
  9881. "
  9882. :src="commentDetail.isLikes == true ? likes : noLikes"
  9883. alt=""
  9884. />
  9885. </div>
  9886. <div>{{ commentDetail.likesCount }}</div>
  9887. </div>
  9888. <div class="commentList">
  9889. <div class="commentImg">
  9890. <img src="../../assets/icon/comment/comment.png" alt="" />
  9891. </div>
  9892. <div>{{ commentDetail.commentCount }}</div>
  9893. </div>
  9894. </div>
  9895. <div class="drawPBox" v-if="commentDetail.img">
  9896. <span>教师批注</span>
  9897. <img
  9898. :src="commentDetail.img"
  9899. alt=""
  9900. @click="previewImg(commentDetail.img)"
  9901. />
  9902. <span
  9903. class="deleteImg"
  9904. v-if="tType == 1 || tType == 4"
  9905. @click.stop="deletePicturePaint(commentDetail.wid)"
  9906. style="
  9907. font-size: 14px;
  9908. width: auto !important;
  9909. color: #b4b4b4;
  9910. top: unset;
  9911. bottom: 0;
  9912. border: none;
  9913. padding: 0;
  9914. height: auto !important;
  9915. margin: 0;
  9916. "
  9917. >删除</span
  9918. >
  9919. </div>
  9920. </div>
  9921. <div class="commentBox">
  9922. <div class="pl">评论:</div>
  9923. <div style="max-height: 200px; overflow: auto">
  9924. <div
  9925. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9926. style="padding: 10px 0 0 0"
  9927. >
  9928. <div
  9929. class="studentDetail"
  9930. style="padding-top: 10px"
  9931. v-for="(co, coIndex) in commentDetail.commentJson"
  9932. :key="coIndex"
  9933. >
  9934. <div class="tx" style="min-width: 50px">
  9935. <img src="../../assets/avatar.png" alt="" />
  9936. </div>
  9937. <div class="plPerson">
  9938. <div class="plName">
  9939. <div>{{ co.commentPeople }}</div>
  9940. <div style="margin-left: 5px">
  9941. {{ co.commentTime }}
  9942. </div>
  9943. <div
  9944. class="deleteComment"
  9945. v-if="userid == co.userid"
  9946. @click="deleteComment(co.wid)"
  9947. >
  9948. 删除
  9949. </div>
  9950. </div>
  9951. <div class="plContent">{{ co.commentText }}</div>
  9952. </div>
  9953. </div>
  9954. </div>
  9955. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9956. </div>
  9957. </div>
  9958. <div style="margin-top: 10px">
  9959. <div class="displayBox">
  9960. <div
  9961. style="
  9962. color: #556db4;
  9963. font-size: 14px;
  9964. font-weight: bold;
  9965. padding-bottom: 10px;
  9966. "
  9967. >
  9968. 评价
  9969. </div>
  9970. <div class="easy_comment" v-if="false">
  9971. <div
  9972. v-for="(p, pIndex) in PlTextList"
  9973. :key="pIndex"
  9974. @click="fastText(p, 1)"
  9975. >
  9976. {{ p }}
  9977. </div>
  9978. </div>
  9979. </div>
  9980. <div>
  9981. <textarea
  9982. rows="3"
  9983. class="pj"
  9984. style="padding: 10px 5px"
  9985. cols
  9986. v-model="commentText"
  9987. placeholder="请输入评论"
  9988. ></textarea>
  9989. </div>
  9990. </div>
  9991. <div slot="footer">
  9992. <el-button
  9993. @click="
  9994. (commentDialogVisible = false),
  9995. (commentIndexJson = {}),
  9996. videoDetail.sources && videoDetail.sources[0]
  9997. ? (videoDetail.sources[0].src = '')
  9998. : ''
  9999. "
  10000. >取 消</el-button
  10001. >
  10002. <el-button
  10003. type="primary"
  10004. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10005. >确 定</el-button
  10006. >
  10007. </div>
  10008. </el-dialog>
  10009. <el-dialog
  10010. title="查看文档"
  10011. :visible.sync="fullDialogVisible"
  10012. :append-to-body="true"
  10013. width="100%"
  10014. :before-close="handleClose"
  10015. :show-close="false"
  10016. class="dialog_diy full_diy"
  10017. :class="{ full_diy2: fulltype == 3 }"
  10018. >
  10019. <div slot="title" class="header-title">
  10020. <div style="color: #fff">查看文档</div>
  10021. <div
  10022. @click="fullDialogVisible = false"
  10023. style="
  10024. cursor: pointer;
  10025. position: absolute;
  10026. top: 20px;
  10027. right: 20px;
  10028. color: #fff;
  10029. "
  10030. >
  10031. 退出全屏
  10032. </div>
  10033. </div>
  10034. <div style="height: 100%">
  10035. <div
  10036. class="wheel"
  10037. v-if="
  10038. fulltype == 2 &&
  10039. fullUrl.indexOf(
  10040. 'https://view.officeapps.live.com/op/view.aspx?src='
  10041. ) != -1
  10042. "
  10043. style="width: 95%; margin: 0 auto"
  10044. >
  10045. <iframe
  10046. style="width: 100%; height: 100%; border: none"
  10047. :src="fullUrl"
  10048. ></iframe>
  10049. </div>
  10050. <iframe
  10051. v-else-if="fulltype == 2"
  10052. style="width: 100%; height: 100%; border: none"
  10053. :src="fullUrl"
  10054. security="restricted"
  10055. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10056. ></iframe>
  10057. <pdf
  10058. v-else-if="fulltype == 3"
  10059. :pdfUrl="fullUrl"
  10060. style="width: 100%; height: 100%; overflow: auto"
  10061. ></pdf>
  10062. <div
  10063. class="wheel"
  10064. v-if="fulltype == 1"
  10065. style="
  10066. box-shadow: 0 0 6px 1px #f2f2f2;
  10067. width: 100%;
  10068. background: #f1f1f1;
  10069. "
  10070. >
  10071. <div class="title" style="width: 100%; box-sizing: border-box">
  10072. 查看文档
  10073. </div>
  10074. <el-form class="textBox" style="height: 90%">
  10075. <el-form-item class="textTitle">
  10076. <div style="font-size: 22px">
  10077. {{ fullUrl.name }}
  10078. </div>
  10079. </el-form-item>
  10080. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10081. <div
  10082. v-html="fullUrl.url"
  10083. class="textContent"
  10084. style="height: auto"
  10085. ></div>
  10086. </el-form>
  10087. </div>
  10088. </div>
  10089. <!-- <div slot="footer">
  10090. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10091. </div> -->
  10092. </el-dialog>
  10093. <el-dialog
  10094. title="个人评价"
  10095. :visible.sync="studentEvalDialogVisible"
  10096. :append-to-body="true"
  10097. width="800px"
  10098. :before-close="handleClose"
  10099. class="dialog_diy"
  10100. >
  10101. <div class="evalCss">
  10102. <div class="nav">请选择星星进行评分</div>
  10103. <div class="middleBox" v-if="eScore.eStar">
  10104. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10105. <div class="nameAndrate">
  10106. <div>{{ e.value }}</div>
  10107. <el-rate
  10108. v-model="eScore.eStar[eIndex]"
  10109. :disabled="isStar"
  10110. ></el-rate>
  10111. </div>
  10112. <div v-if="e.detail">{{ e.detail }}</div>
  10113. </div>
  10114. <div class="easy_comment" v-if="false">
  10115. <div
  10116. v-for="(p, pIndex) in PlTextList"
  10117. :key="pIndex"
  10118. @click="fastText(p, 2)"
  10119. >
  10120. {{ p }}
  10121. </div>
  10122. </div>
  10123. <div class="bz">
  10124. <textarea
  10125. :disabled="isStar"
  10126. rows="4"
  10127. class="pj"
  10128. style="
  10129. padding: 10px 5px;
  10130. width: 70%;
  10131. background: #f7f6f9;
  10132. font-size: 14px;
  10133. text-indent: 10px;
  10134. "
  10135. cols
  10136. v-model="eScore.eBzText"
  10137. placeholder="请输入评价内容..."
  10138. ></textarea>
  10139. </div>
  10140. </div>
  10141. </div>
  10142. <div slot="footer">
  10143. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10144. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10145. >确 定</el-button
  10146. >
  10147. </div>
  10148. </el-dialog>
  10149. <el-dialog
  10150. title="个人评价"
  10151. :visible.sync="studentEvalDialogVisibleTeacher"
  10152. :append-to-body="true"
  10153. width="800px"
  10154. :before-close="handleClose"
  10155. class="dialog_diy"
  10156. >
  10157. <div class="w_name">
  10158. 学生姓名:<span>{{ sStudent.student }}</span>
  10159. </div>
  10160. <div class="evalCss">
  10161. <div class="nav">请选择星星进行评分</div>
  10162. <div class="middleBox" v-if="eScore.eStar">
  10163. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10164. <div class="nameAndrate">
  10165. <div>{{ e.value }}</div>
  10166. <el-rate
  10167. v-model="eScore.eStar[eIndex]"
  10168. :disabled="isStar"
  10169. ></el-rate>
  10170. </div>
  10171. <div v-if="e.detail">{{ e.detail }}</div>
  10172. </div>
  10173. <div class="easy_comment" v-if="false">
  10174. <div
  10175. v-for="(p, pIndex) in PlTextList"
  10176. :key="pIndex"
  10177. @click="fastText(p, 2)"
  10178. >
  10179. {{ p }}
  10180. </div>
  10181. </div>
  10182. <div class="bz">
  10183. <textarea
  10184. :disabled="isStar"
  10185. rows="4"
  10186. class="pj"
  10187. style="
  10188. padding: 10px 5px;
  10189. width: 70%;
  10190. background: #f7f6f9;
  10191. font-size: 14px;
  10192. text-indent: 10px;
  10193. "
  10194. cols
  10195. v-model="eScore.eBzText"
  10196. placeholder="请输入评价内容..."
  10197. ></textarea>
  10198. </div>
  10199. </div>
  10200. </div>
  10201. <div slot="footer">
  10202. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10203. >取 消</el-button
  10204. >
  10205. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10206. >确 定</el-button
  10207. >
  10208. </div>
  10209. </el-dialog>
  10210. <el-dialog
  10211. title="选择匹配"
  10212. :visible.sync="dialogVisibleSelect"
  10213. :append-to-body="true"
  10214. width="90%"
  10215. :before-close="handleClose"
  10216. class="dialog_diy dialog_diy3"
  10217. >
  10218. <div v-if="selectJson">
  10219. <div class="select_box2">
  10220. <div class="select_box2_title">
  10221. <div>选择匹配</div>
  10222. <div>请选择对应的答案进行答题!</div>
  10223. </div>
  10224. <div class="select_box2_box">
  10225. <div class="select_box2_img">
  10226. <img
  10227. :src="selectJson.url"
  10228. @click="previewImg(selectJson.url)"
  10229. alt=""
  10230. />
  10231. </div>
  10232. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10233. <div style="padding-top: 15px">
  10234. <div class="select_answer_title" v-if="isSelect">
  10235. {{ selectAnswer.stu }}
  10236. </div>
  10237. <div class="select_answer_title" v-else>
  10238. 根据题目选择对应答案
  10239. </div>
  10240. <div
  10241. class="select_box2_answer_box"
  10242. v-for="(item2, checkIndex) in selectJson.select"
  10243. :key="checkIndex"
  10244. >
  10245. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10246. <el-select
  10247. :disabled="isSelect"
  10248. v-model="selectAnswer.answer[checkIndex]"
  10249. placeholder="请选择正确答案"
  10250. >
  10251. <el-option
  10252. v-for="(e, eIndex) in selectJson.select"
  10253. :key="eIndex"
  10254. :label="e"
  10255. :value="eIndex"
  10256. >
  10257. </el-option>
  10258. </el-select>
  10259. </div>
  10260. </div>
  10261. <div
  10262. class="rightAnswerCss"
  10263. v-if="isSelect && (tType == 1 || tType == 4)"
  10264. >
  10265. <div
  10266. v-for="(a, aIndex) in selectJson.answer"
  10267. :key="aIndex"
  10268. class="rightAnswer"
  10269. >
  10270. <div
  10271. v-if="selectAnswer.answer[aIndex] === a"
  10272. style="color: #767de1"
  10273. >
  10274. 回答正确
  10275. </div>
  10276. <div v-else>回答错误</div>
  10277. <div
  10278. style="margin-left: 10px"
  10279. v-if="selectAnswer.answer[aIndex] !== a"
  10280. >
  10281. 正确答案:
  10282. </div>
  10283. <div
  10284. :class="
  10285. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10286. "
  10287. >
  10288. {{ selectJson.select[a] }}
  10289. </div>
  10290. </div>
  10291. </div>
  10292. </div>
  10293. <div class="upAnswerCss">
  10294. <el-button
  10295. type="primary"
  10296. @click="addSelectAnswer"
  10297. v-if="!isSelect"
  10298. >提交答案</el-button
  10299. >
  10300. </div>
  10301. </div>
  10302. </div>
  10303. </div>
  10304. </el-dialog>
  10305. <el-dialog
  10306. title="选择匹配"
  10307. :visible.sync="dialogVisibleSelectTeacher"
  10308. :append-to-body="true"
  10309. width="90%"
  10310. :before-close="handleClose"
  10311. class="dialog_diy dialog_diy3"
  10312. >
  10313. <div v-if="selectJson">
  10314. <div class="w_name">
  10315. 学生姓名:<span>{{ sStudent.student }}</span>
  10316. </div>
  10317. <div class="select_box2">
  10318. <div class="select_box2_title">
  10319. <div>选择匹配</div>
  10320. <div>请选择对应的答案进行答题!</div>
  10321. </div>
  10322. <div class="select_box2_box">
  10323. <div class="select_box2_img">
  10324. <img
  10325. :src="selectJson.url"
  10326. @click="previewImg(selectJson.url)"
  10327. alt=""
  10328. />
  10329. </div>
  10330. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10331. <div style="padding-top: 15px">
  10332. <div class="select_answer_title" v-if="isSelect">
  10333. {{ selectAnswer.stu }}
  10334. </div>
  10335. <div class="select_answer_title" v-else>
  10336. 根据题目选择对应答案
  10337. </div>
  10338. <div
  10339. class="select_box2_answer_box"
  10340. v-for="(item2, checkIndex) in selectJson.select"
  10341. :key="checkIndex"
  10342. >
  10343. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10344. <el-select
  10345. :disabled="isSelect"
  10346. v-model="selectAnswer.answer[checkIndex]"
  10347. placeholder="请选择正确答案"
  10348. >
  10349. <el-option
  10350. v-for="(e, eIndex) in selectJson.select"
  10351. :key="eIndex"
  10352. :label="e"
  10353. :value="eIndex"
  10354. >
  10355. </el-option>
  10356. </el-select>
  10357. </div>
  10358. </div>
  10359. <div
  10360. class="rightAnswerCss"
  10361. v-if="isSelect && (tType == 1 || tType == 4)"
  10362. >
  10363. <div
  10364. v-for="(a, aIndex) in selectJson.answer"
  10365. :key="aIndex"
  10366. class="rightAnswer"
  10367. >
  10368. <div
  10369. v-if="selectAnswer.answer[aIndex] === a"
  10370. style="color: #767de1"
  10371. >
  10372. 回答正确
  10373. </div>
  10374. <div v-else>回答错误</div>
  10375. <div
  10376. style="margin-left: 10px"
  10377. v-if="selectAnswer.answer[aIndex] !== a"
  10378. >
  10379. 正确答案:
  10380. </div>
  10381. <div
  10382. :class="
  10383. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10384. "
  10385. >
  10386. {{ selectJson.select[a] }}
  10387. </div>
  10388. </div>
  10389. </div>
  10390. </div>
  10391. <div class="upAnswerCss">
  10392. <el-button
  10393. type="primary"
  10394. @click="addSelectAnswerTeacher"
  10395. v-if="!isSelect"
  10396. >提交答案</el-button
  10397. >
  10398. </div>
  10399. </div>
  10400. </div>
  10401. </div>
  10402. </el-dialog>
  10403. <el-dialog
  10404. title="教师评分"
  10405. :visible.sync="dialogVisibleScore"
  10406. :append-to-body="true"
  10407. width="800px"
  10408. :before-close="handleClose"
  10409. class="dialog_diy"
  10410. >
  10411. <div>
  10412. <div class="studentDetail">
  10413. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10414. <div class="nameAndTime">
  10415. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10416. <div>{{ commentDetail.time }}</div>
  10417. </div>
  10418. </div>
  10419. <div
  10420. class="worksAnswer"
  10421. v-if="commentDetail.works && commentDetail.type == 2"
  10422. >
  10423. {{ JSON.parse(commentDetail.works)[0].answer }}
  10424. </div>
  10425. <div
  10426. class="worksAnswer"
  10427. v-if="commentDetail.works && commentDetail.type == 1"
  10428. >
  10429. <pdf
  10430. v-if="showPDF"
  10431. :pdfUrl="pptImgUrl"
  10432. style="width: 100%; height: 520px; overflow: auto"
  10433. :class="{ fullStyle: full }"
  10434. ></pdf>
  10435. <iframe
  10436. v-else
  10437. :src="pptImgUrl"
  10438. frameborder="0"
  10439. width="100%"
  10440. height="600"
  10441. :class="{ fullStyle: full }"
  10442. ></iframe>
  10443. </div>
  10444. <div
  10445. class="worksAnswer"
  10446. v-if="commentDetail.works && commentDetail.type == 0"
  10447. >
  10448. <img
  10449. :src="commentDetail.works"
  10450. alt=""
  10451. @click="previewImg(commentDetail.works)"
  10452. />
  10453. </div>
  10454. <div
  10455. class="worksAnswer"
  10456. v-if="commentDetail.works && commentDetail.type == 3"
  10457. >
  10458. <video-player
  10459. class="video-player vjs-custom-skin"
  10460. :playsinline="true"
  10461. :options="videoDetail"
  10462. @play="onPlayerPlay($event)"
  10463. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10464. ></video-player>
  10465. </div>
  10466. <div
  10467. class="worksAnswer codeFileBox"
  10468. v-if="commentDetail.works && commentDetail.type == 12"
  10469. @click="downloadFile(commentDetail.works)"
  10470. >
  10471. <img src="../../assets/icon/codeFile.png" />
  10472. <div>点击下载文件</div>
  10473. </div>
  10474. <div
  10475. class="worksAnswer codeFileBox"
  10476. v-if="commentDetail.works && commentDetail.type == 15"
  10477. @click="
  10478. openCocoPi(
  10479. 57,
  10480. commentIndexJson.toolIndex,
  10481. commentDetail.userid,
  10482. commentDetail.sName
  10483. )
  10484. "
  10485. >
  10486. <img src="../../assets/icon/codeFile.png" />
  10487. <div>点击打开CocoPi</div>
  10488. </div>
  10489. <div
  10490. class="worksAnswer"
  10491. v-if="commentDetail.works && commentDetail.type == 13"
  10492. >
  10493. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10494. </div>
  10495. <div class="scoreBox">
  10496. <span class="t">请输入分数</span>
  10497. <el-input-number
  10498. :disabled="courseDetail.userid != userid"
  10499. v-model="wScore"
  10500. :controls="false"
  10501. :min="0"
  10502. :max="100"
  10503. ></el-input-number>
  10504. </div>
  10505. <div class="scoreDetailBox">
  10506. <span class="t">评分评论</span>
  10507. <el-input
  10508. type="textarea"
  10509. :rows="5"
  10510. :disabled="courseDetail.userid != userid"
  10511. resize="none"
  10512. v-model="scoreDetail"
  10513. placeholder="请输入对学生的评价"
  10514. >
  10515. </el-input>
  10516. </div>
  10517. </div>
  10518. <span slot="footer" class="dialog-footer">
  10519. <el-button
  10520. @click="
  10521. (dialogVisibleScore = false),
  10522. (commentIndexJson = {}),
  10523. videoDetail.sources && videoDetail.sources[0]
  10524. ? (videoDetail.sources[0].src = '')
  10525. : ''
  10526. "
  10527. >取 消</el-button
  10528. >
  10529. <el-button
  10530. type="primary"
  10531. v-if="courseDetail.userid == userid"
  10532. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10533. >确 定
  10534. </el-button>
  10535. </span>
  10536. </el-dialog>
  10537. <el-dialog
  10538. title="排序"
  10539. :visible.sync="dialogVisibleSentence"
  10540. :append-to-body="true"
  10541. width="1000px"
  10542. :before-close="handleClose"
  10543. class="dialog_diy dialog_diy3"
  10544. >
  10545. <div>
  10546. <div class="sentenBox">
  10547. <div
  10548. v-for="(st, stIndex) in sentenceList"
  10549. :key="stIndex"
  10550. style="padding-bottom: 20px"
  10551. >
  10552. <div
  10553. style="padding: 15px 0 10px 20px"
  10554. class="sentenceTitle"
  10555. :index="stIndex + 1"
  10556. >
  10557. 题目{{ stIndex + 1 }}:请选择正确顺序
  10558. </div>
  10559. <div class="cardList" v-if="st.chooseSenList">
  10560. <div class="cardBox">
  10561. <div
  10562. v-for="(r, rIndex) in st.chooseSenList"
  10563. :key="rIndex"
  10564. @click="returnCard(r, stIndex, rIndex)"
  10565. >
  10566. <el-tooltip
  10567. class="item"
  10568. effect="light"
  10569. :content="r"
  10570. placement="top"
  10571. v-if="r != '' && r != undefined"
  10572. >
  10573. <div
  10574. :class="{
  10575. isCard: r,
  10576. isChooseCard: r == '' || r == undefined,
  10577. }"
  10578. >
  10579. <div>{{ r }}</div>
  10580. </div>
  10581. </el-tooltip>
  10582. <div
  10583. :class="{
  10584. isCard: r,
  10585. isChooseCard: r == '' || r == undefined,
  10586. }"
  10587. v-else
  10588. >
  10589. <div>{{ r }}</div>
  10590. </div>
  10591. </div>
  10592. </div>
  10593. </div>
  10594. <div class="cardList" v-if="st.addChangeSen">
  10595. <div class="cardBox">
  10596. <div
  10597. v-for="(s, sIndex) in st.addChangeSen"
  10598. :key="sIndex"
  10599. @click="setRightAnswer(s, stIndex, sIndex)"
  10600. >
  10601. <el-tooltip
  10602. class="item"
  10603. effect="light"
  10604. :content="s"
  10605. placement="top"
  10606. v-if="s != '' && s != undefined"
  10607. >
  10608. <div
  10609. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10610. >
  10611. <div>{{ s }}</div>
  10612. </div>
  10613. </el-tooltip>
  10614. <div
  10615. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10616. v-else
  10617. >
  10618. <div>{{ s }}</div>
  10619. </div>
  10620. </div>
  10621. </div>
  10622. </div>
  10623. </div>
  10624. </div>
  10625. </div>
  10626. <span slot="footer" class="dialog-footer">
  10627. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10628. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10629. </span>
  10630. </el-dialog>
  10631. <el-dialog
  10632. title="排序"
  10633. :visible.sync="dialogVisibleSentenceTeacher"
  10634. :append-to-body="true"
  10635. width="1000px"
  10636. :before-close="handleClose"
  10637. class="dialog_diy dialog_diy3"
  10638. >
  10639. <div>
  10640. <div class="w_name">
  10641. 学生姓名:<span>{{ sStudent.student }}</span>
  10642. </div>
  10643. <div class="sentenBox">
  10644. <div
  10645. v-for="(st, stIndex) in sentenceList"
  10646. :key="stIndex"
  10647. style="padding-bottom: 20px"
  10648. >
  10649. <div
  10650. style="padding: 15px 0 10px 20px"
  10651. class="sentenceTitle"
  10652. :index="stIndex + 1"
  10653. >
  10654. 题目{{ stIndex + 1 }}:请选择正确顺序
  10655. </div>
  10656. <div class="cardList" v-if="st.chooseSenList">
  10657. <div class="cardBox">
  10658. <div
  10659. v-for="(r, rIndex) in st.chooseSenList"
  10660. :key="rIndex"
  10661. @click="returnCard(r, stIndex, rIndex)"
  10662. >
  10663. <el-tooltip
  10664. class="item"
  10665. effect="light"
  10666. :content="r"
  10667. placement="top"
  10668. v-if="r != '' && r != undefined"
  10669. >
  10670. <div
  10671. :class="{
  10672. isCard: r,
  10673. isChooseCard: r == '' || r == undefined,
  10674. }"
  10675. >
  10676. <div>{{ r }}</div>
  10677. </div>
  10678. </el-tooltip>
  10679. <div
  10680. :class="{
  10681. isCard: r,
  10682. isChooseCard: r == '' || r == undefined,
  10683. }"
  10684. v-else
  10685. >
  10686. <div>{{ r }}</div>
  10687. </div>
  10688. </div>
  10689. </div>
  10690. </div>
  10691. <div class="cardList" v-if="st.addChangeSen">
  10692. <div class="cardBox">
  10693. <div
  10694. v-for="(s, sIndex) in st.addChangeSen"
  10695. :key="sIndex"
  10696. @click="setRightAnswer(s, stIndex, sIndex)"
  10697. >
  10698. <el-tooltip
  10699. class="item"
  10700. effect="light"
  10701. :content="s"
  10702. placement="top"
  10703. v-if="s != '' && s != undefined"
  10704. >
  10705. <div
  10706. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10707. >
  10708. <div>{{ s }}</div>
  10709. </div>
  10710. </el-tooltip>
  10711. <div
  10712. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10713. v-else
  10714. >
  10715. <div>{{ s }}</div>
  10716. </div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. </div>
  10721. </div>
  10722. </div>
  10723. <span slot="footer" class="dialog-footer">
  10724. <el-button @click="dialogVisibleSentenceTeacher = false"
  10725. >取 消</el-button
  10726. >
  10727. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10728. </span>
  10729. </el-dialog>
  10730. <el-dialog
  10731. title="排序"
  10732. :visible.sync="dialogVisibleSentence1"
  10733. :append-to-body="true"
  10734. width="1000px"
  10735. :before-close="handleClose"
  10736. class="dialog_diy dialog_diy3"
  10737. >
  10738. <div>
  10739. <div class="sentenBox">
  10740. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10741. {{ sentenceList1.stuName }}的作业
  10742. </div>
  10743. <div
  10744. v-for="(st, stIndex) in sentenceList1"
  10745. :key="stIndex"
  10746. style="padding-bottom: 20px"
  10747. >
  10748. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10749. 第{{ stIndex + 1 }}题
  10750. </div>
  10751. <div class="isWrong">
  10752. <div class="cardList1" v-if="st.chooseSenList">
  10753. <div class="cardBox">
  10754. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10755. <el-tooltip
  10756. class="item"
  10757. effect="light"
  10758. :content="s"
  10759. placement="top"
  10760. >
  10761. <div class="isCard">
  10762. <div>{{ s }}</div>
  10763. </div>
  10764. </el-tooltip>
  10765. </div>
  10766. </div>
  10767. <div class="cardAnswerBox">
  10768. 组成句子:{{ st.chooseSenList.join(" ") }}
  10769. </div>
  10770. </div>
  10771. <div v-if="tType == 2" class="isTj">
  10772. <div class="isTjImg">
  10773. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10774. </div>
  10775. <div>已提交</div>
  10776. </div>
  10777. <div
  10778. class="answerRight isTj"
  10779. v-if="
  10780. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10781. (tType == 1 || tType == 4)
  10782. "
  10783. >
  10784. <div class="isTjImg">
  10785. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10786. </div>
  10787. <div>回答正确</div>
  10788. </div>
  10789. <div
  10790. class="answerRight isTj"
  10791. v-if="
  10792. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10793. (tType == 1 || tType == 4)
  10794. "
  10795. >
  10796. <div class="isTjImg">
  10797. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10798. </div>
  10799. <div>回答错误</div>
  10800. </div>
  10801. </div>
  10802. <div
  10803. v-if="
  10804. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10805. (tType == 1 || tType == 4)
  10806. "
  10807. >
  10808. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10809. <div
  10810. class="cardList"
  10811. v-if="st.rightAnswer"
  10812. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10813. >
  10814. <div class="cardBox">
  10815. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10816. <el-tooltip
  10817. class="item"
  10818. effect="light"
  10819. :content="r"
  10820. placement="top"
  10821. >
  10822. <div class="isCard1">
  10823. <div>{{ r }}</div>
  10824. </div>
  10825. </el-tooltip>
  10826. </div>
  10827. </div>
  10828. <div class="cardAnswerBox">
  10829. 组成句子:{{ st.rightAnswer.join(" ") }}
  10830. </div>
  10831. </div>
  10832. </div>
  10833. </div>
  10834. </div>
  10835. </div>
  10836. <span slot="footer" class="dialog-footer">
  10837. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10838. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10839. >确 定</el-button
  10840. >
  10841. </span>
  10842. </el-dialog>
  10843. <el-dialog
  10844. title="教师提交作业"
  10845. :visible.sync="dialogVisibleWorks"
  10846. :append-to-body="true"
  10847. width="500px"
  10848. :before-close="handleClose"
  10849. class="dialog_change"
  10850. >
  10851. <div class="marginT">
  10852. <div class="w_name">
  10853. 学生姓名:<span>{{ sStudent.student }}</span>
  10854. </div>
  10855. <div>上传文件</div>
  10856. <div
  10857. class="chapter_add"
  10858. @click="addImg($event)"
  10859. v-if="studyJuri[0].cover.length == 0"
  10860. >
  10861. <div class="up_photo">
  10862. <img src="../../assets/uploadImg2.png" alt />
  10863. </div>
  10864. <!-- <input
  10865. type="file"
  10866. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10867. style="display: none"
  10868. @change="beforeUpload1($event, 1)"
  10869. /> -->
  10870. <input
  10871. type="file"
  10872. accept="*"
  10873. style="display: none"
  10874. @change="beforeUpload1($event, 1)"
  10875. />
  10876. </div>
  10877. <!-- capture="camera" -->
  10878. <div
  10879. class="chapter_add"
  10880. style="
  10881. display: flex;
  10882. width: 100%;
  10883. flex-direction: row;
  10884. flex-wrap: wrap;
  10885. justify-content: flex-start;
  10886. padding: 15px 0;
  10887. "
  10888. v-if="studyJuri[0].cover.length > 0"
  10889. >
  10890. <div class="upCover">
  10891. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10892. <img :src="word" alt v-else-if="fileType == 1" />
  10893. <img :src="video" alt v-else-if="fileType == 2" />
  10894. <img :src="word2" alt v-else-if="fileType == 3" />
  10895. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10896. <div class="deleteWord" @click="clean(1)">
  10897. <img src="../../assets/icon/deleteWorks.png" alt />
  10898. </div>
  10899. </div>
  10900. </div>
  10901. </div>
  10902. <div
  10903. class="upload_send"
  10904. @click="addCourseWorksTeacher(taskCount)"
  10905. v-if="!proVisible"
  10906. >
  10907. 提交
  10908. </div>
  10909. </el-dialog>
  10910. <ImgDraw
  10911. :drawShow="drawShow"
  10912. @closeDraw="closeDraw"
  10913. @addImgDraw="addImgDraw"
  10914. :bg="bg"
  10915. ></ImgDraw>
  10916. <el-dialog
  10917. title="表格"
  10918. :visible.sync="dialogVisibleTable"
  10919. :append-to-body="true"
  10920. width="95%"
  10921. :before-close="handleClose"
  10922. class="dialog_diy"
  10923. >
  10924. <el-form>
  10925. <div
  10926. style="
  10927. display: flex;
  10928. align-items: center;
  10929. justify-content: space-between;
  10930. "
  10931. >
  10932. <span>表格内容</span>
  10933. <el-button type="primary" size="small" @click="returnTableText"
  10934. >还原模板</el-button
  10935. >
  10936. </div>
  10937. <Table
  10938. v-model="tableJson.text"
  10939. @change="change"
  10940. v-if="dialogVisibleTable"
  10941. ></Table>
  10942. </el-form>
  10943. <span slot="footer" class="dialog-footer">
  10944. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10945. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10946. </span>
  10947. </el-dialog>
  10948. <el-dialog
  10949. title="表格"
  10950. :visible.sync="dialogVisibleTableTeacher"
  10951. :append-to-body="true"
  10952. width="95%"
  10953. :before-close="handleClose"
  10954. class="dialog_diy"
  10955. >
  10956. <el-form>
  10957. <div class="w_name">
  10958. 学生姓名:<span>{{ sStudent.student }}</span>
  10959. </div>
  10960. <div>表格内容</div>
  10961. <Table
  10962. v-model="tableJson.text"
  10963. @change="change"
  10964. v-if="dialogVisibleTableTeacher"
  10965. ></Table>
  10966. </el-form>
  10967. <span slot="footer" class="dialog-footer">
  10968. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10969. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10970. </span>
  10971. </el-dialog>
  10972. <el-dialog
  10973. title="文档"
  10974. :visible.sync="dialogVisibleWord"
  10975. :append-to-body="true"
  10976. width="95%"
  10977. :before-close="handleClose"
  10978. class="dialog_diy"
  10979. >
  10980. <el-form>
  10981. <div
  10982. style="
  10983. display: flex;
  10984. align-items: center;
  10985. justify-content: space-between;
  10986. "
  10987. >
  10988. <span>文档内容</span>
  10989. <el-button type="primary" size="small" @click="returnWordText"
  10990. >还原模板</el-button
  10991. >
  10992. </div>
  10993. <editor-bar
  10994. v-model="wordJson.text"
  10995. v-if="dialogVisibleWord"
  10996. ></editor-bar>
  10997. </el-form>
  10998. <span slot="footer" class="dialog-footer">
  10999. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11000. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11001. </span>
  11002. </el-dialog>
  11003. <el-dialog
  11004. title="文档"
  11005. :visible.sync="dialogVisibleWordTeacher"
  11006. :append-to-body="true"
  11007. width="95%"
  11008. :before-close="handleClose"
  11009. class="dialog_diy"
  11010. >
  11011. <el-form>
  11012. <div class="w_name">
  11013. 学生姓名:<span>{{ sStudent.student }}</span>
  11014. </div>
  11015. <div>文档内容</div>
  11016. <editor-bar
  11017. v-model="wordJson.text"
  11018. v-if="dialogVisibleWordTeacher"
  11019. ></editor-bar>
  11020. </el-form>
  11021. <span slot="footer" class="dialog-footer">
  11022. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11023. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11024. </span>
  11025. </el-dialog>
  11026. <el-dialog
  11027. title="表格"
  11028. :visible.sync="dialogVisibleTable2"
  11029. :append-to-body="true"
  11030. width="95%"
  11031. :before-close="handleClose"
  11032. class="dialog_diy"
  11033. >
  11034. <el-form>
  11035. <div class="cont" v-html="tableJson.text"></div>
  11036. </el-form>
  11037. <span slot="footer" class="dialog-footer">
  11038. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11039. </span>
  11040. </el-dialog>
  11041. <el-dialog
  11042. title="文档"
  11043. :visible.sync="dialogVisibleTable3"
  11044. :append-to-body="true"
  11045. width="95%"
  11046. :before-close="handleClose"
  11047. class="dialog_diy"
  11048. >
  11049. <el-form>
  11050. <div class="cont" v-html="tableJson.text"></div>
  11051. </el-form>
  11052. <span slot="footer" class="dialog-footer">
  11053. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11054. </span>
  11055. </el-dialog>
  11056. <el-dialog
  11057. title="分组设置"
  11058. :visible.sync="dialogVisibleGroup"
  11059. :append-to-body="true"
  11060. width="95%"
  11061. :before-close="handleClose"
  11062. class="dialog_diy"
  11063. >
  11064. <div v-if="dialogVisibleGroup">
  11065. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11066. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11067. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11068. </div>
  11069. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11070. @click="lockChair">
  11071. 锁定位置
  11072. </div>
  11073. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11074. 解锁位置
  11075. </div> -->
  11076. <div class="group_switch">
  11077. <span>开放选座</span>
  11078. <el-switch
  11079. v-model="islock"
  11080. active-text=""
  11081. class="switchCss"
  11082. @change="lockChair"
  11083. ></el-switch>
  11084. </div>
  11085. <div
  11086. type="primary"
  11087. @click="updateGroup"
  11088. class="returnBtn"
  11089. style="background-color: #225bc7"
  11090. >
  11091. 分组设置
  11092. </div>
  11093. </div>
  11094. <div>
  11095. <div
  11096. class="g_d_box"
  11097. v-if="groupJson.group && groupStudent[toolindex]"
  11098. >
  11099. <div
  11100. class="g_d_group"
  11101. v-for="(g, gindex) in groupJson.group"
  11102. :key="gindex"
  11103. >
  11104. <div class="g_d_group_chair">
  11105. <div v-if="groupJson.number > 1">
  11106. <span
  11107. :class="{
  11108. isChair:
  11109. groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][0],
  11111. updateChair:
  11112. courseDetail.userid == userid &&
  11113. groupStudent[toolindex][gindex] &&
  11114. groupStudent[toolindex][gindex][0] &&
  11115. groupJson.islock == 2,
  11116. }"
  11117. ><span
  11118. class="updateChairBtn"
  11119. @click="
  11120. updateGroupChair(
  11121. groupStudent[toolindex][gindex] &&
  11122. groupStudent[toolindex][gindex][0]
  11123. )
  11124. "
  11125. >修改</span
  11126. ></span
  11127. ><span>{{
  11128. groupStudent[toolindex][gindex] &&
  11129. groupStudent[toolindex][gindex][0]
  11130. ? groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][0].name
  11132. : "空位置"
  11133. }}</span>
  11134. </div>
  11135. <div v-if="groupJson.number > 4">
  11136. <span
  11137. :class="{
  11138. isChair:
  11139. groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][4],
  11141. updateChair:
  11142. courseDetail.userid == userid &&
  11143. groupStudent[toolindex][gindex] &&
  11144. groupStudent[toolindex][gindex][4] &&
  11145. groupJson.islock == 2,
  11146. }"
  11147. ><span
  11148. class="updateChairBtn"
  11149. @click="
  11150. updateGroupChair(
  11151. groupStudent[toolindex][gindex] &&
  11152. groupStudent[toolindex][gindex][4]
  11153. )
  11154. "
  11155. >修改</span
  11156. ></span
  11157. ><span>{{
  11158. groupStudent[toolindex][gindex] &&
  11159. groupStudent[toolindex][gindex][4]
  11160. ? groupStudent[toolindex][gindex] &&
  11161. groupStudent[toolindex][gindex][4].name
  11162. : "空位置"
  11163. }}</span>
  11164. </div>
  11165. <div v-if="groupJson.number > 8">
  11166. <span
  11167. :class="{
  11168. isChair:
  11169. groupStudent[toolindex][gindex] &&
  11170. groupStudent[toolindex][gindex][8],
  11171. updateChair:
  11172. courseDetail.userid == userid &&
  11173. groupStudent[toolindex][gindex] &&
  11174. groupStudent[toolindex][gindex][8] &&
  11175. groupJson.islock == 2,
  11176. }"
  11177. ><span
  11178. class="updateChairBtn"
  11179. @click="
  11180. updateGroupChair(
  11181. groupStudent[toolindex][gindex] &&
  11182. groupStudent[toolindex][gindex][8]
  11183. )
  11184. "
  11185. >修改</span
  11186. ></span
  11187. ><span>{{
  11188. groupStudent[toolindex][gindex] &&
  11189. groupStudent[toolindex][gindex][8]
  11190. ? groupStudent[toolindex][gindex] &&
  11191. groupStudent[toolindex][gindex][8].name
  11192. : "空位置"
  11193. }}</span>
  11194. </div>
  11195. </div>
  11196. <div class="g_d_group_tableBox">
  11197. <div class="g_d_group_chair2">
  11198. <div v-if="groupJson.number > 2">
  11199. <span
  11200. :class="{
  11201. isChair:
  11202. groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][2],
  11204. updateChair:
  11205. courseDetail.userid == userid &&
  11206. groupStudent[toolindex][gindex] &&
  11207. groupStudent[toolindex][gindex][2] &&
  11208. groupJson.islock == 2,
  11209. }"
  11210. ><span
  11211. class="updateChairBtn"
  11212. @click="
  11213. updateGroupChair(
  11214. groupStudent[toolindex][gindex] &&
  11215. groupStudent[toolindex][gindex][2]
  11216. )
  11217. "
  11218. >修改</span
  11219. ></span
  11220. ><span>{{
  11221. groupStudent[toolindex][gindex] &&
  11222. groupStudent[toolindex][gindex][2]
  11223. ? groupStudent[toolindex][gindex] &&
  11224. groupStudent[toolindex][gindex][2].name
  11225. : "空位置"
  11226. }}</span>
  11227. </div>
  11228. <div v-if="groupJson.number > 6">
  11229. <span
  11230. :class="{
  11231. isChair:
  11232. groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][6],
  11234. updateChair:
  11235. courseDetail.userid == userid &&
  11236. groupStudent[toolindex][gindex] &&
  11237. groupStudent[toolindex][gindex][6] &&
  11238. groupJson.islock == 2,
  11239. }"
  11240. ><span
  11241. class="updateChairBtn"
  11242. @click="
  11243. updateGroupChair(
  11244. groupStudent[toolindex][gindex] &&
  11245. groupStudent[toolindex][gindex][6]
  11246. )
  11247. "
  11248. >修改</span
  11249. ></span
  11250. ><span>{{
  11251. groupStudent[toolindex][gindex] &&
  11252. groupStudent[toolindex][gindex][6]
  11253. ? groupStudent[toolindex][gindex] &&
  11254. groupStudent[toolindex][gindex][6].name
  11255. : "空位置"
  11256. }}</span>
  11257. </div>
  11258. </div>
  11259. <div class="g_d_group_table">
  11260. <div>
  11261. {{ g.name }}
  11262. </div>
  11263. <div>
  11264. <div
  11265. v-if="
  11266. courseDetail.userid == userid && groupJson.islock == 2
  11267. "
  11268. @click="deleteGroupChair(gindex)"
  11269. >
  11270. 移除组员
  11271. </div>
  11272. <div
  11273. @click="selectGroup(gindex)"
  11274. v-else-if="
  11275. groupStudentUid[toolindex] &&
  11276. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11277. "
  11278. >
  11279. 加入分组
  11280. </div>
  11281. <div
  11282. @click="
  11283. exitGroup(
  11284. groupStudent[toolindex][gindex] &&
  11285. groupStudent[toolindex][gindex][
  11286. groupStudentUid[toolindex][gindex].indexOf(userid)
  11287. ].id
  11288. )
  11289. "
  11290. v-else-if="
  11291. groupStudentUid[toolindex] &&
  11292. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11293. "
  11294. >
  11295. 退出分组
  11296. </div>
  11297. </div>
  11298. </div>
  11299. <div class="g_d_group_chair2">
  11300. <div v-if="groupJson.number > 3">
  11301. <span
  11302. :class="{
  11303. isChair:
  11304. groupStudent[toolindex][gindex] &&
  11305. groupStudent[toolindex][gindex][3],
  11306. updateChair:
  11307. courseDetail.userid == userid &&
  11308. groupStudent[toolindex][gindex] &&
  11309. groupStudent[toolindex][gindex][3] &&
  11310. groupJson.islock == 2,
  11311. }"
  11312. ><span
  11313. class="updateChairBtn"
  11314. @click="
  11315. updateGroupChair(
  11316. groupStudent[toolindex][gindex] &&
  11317. groupStudent[toolindex][gindex][3]
  11318. )
  11319. "
  11320. >修改</span
  11321. ></span
  11322. ><span>{{
  11323. groupStudent[toolindex][gindex] &&
  11324. groupStudent[toolindex][gindex][3]
  11325. ? groupStudent[toolindex][gindex] &&
  11326. groupStudent[toolindex][gindex][3].name
  11327. : "空位置"
  11328. }}</span>
  11329. </div>
  11330. <div v-if="groupJson.number > 7">
  11331. <span
  11332. :class="{
  11333. isChair:
  11334. groupStudent[toolindex][gindex] &&
  11335. groupStudent[toolindex][gindex][7],
  11336. updateChair:
  11337. courseDetail.userid == userid &&
  11338. groupStudent[toolindex][gindex] &&
  11339. groupStudent[toolindex][gindex][7] &&
  11340. groupJson.islock == 2,
  11341. }"
  11342. ><span
  11343. class="updateChairBtn"
  11344. @click="
  11345. updateGroupChair(
  11346. groupStudent[toolindex][gindex] &&
  11347. groupStudent[toolindex][gindex][7]
  11348. )
  11349. "
  11350. >修改</span
  11351. ></span
  11352. ><span>{{
  11353. groupStudent[toolindex][gindex] &&
  11354. groupStudent[toolindex][gindex][7]
  11355. ? groupStudent[toolindex][gindex] &&
  11356. groupStudent[toolindex][gindex][7].name
  11357. : "空位置"
  11358. }}</span>
  11359. </div>
  11360. </div>
  11361. </div>
  11362. <div class="g_d_group_chair">
  11363. <div v-if="groupJson.number > 1">
  11364. <span
  11365. :class="{
  11366. isChair:
  11367. groupStudent[toolindex][gindex] &&
  11368. groupStudent[toolindex][gindex][1],
  11369. updateChair:
  11370. courseDetail.userid == userid &&
  11371. groupStudent[toolindex][gindex] &&
  11372. groupStudent[toolindex][gindex][1] &&
  11373. groupJson.islock == 2,
  11374. }"
  11375. ><span
  11376. class="updateChairBtn"
  11377. @click="
  11378. updateGroupChair(
  11379. groupStudent[toolindex][gindex] &&
  11380. groupStudent[toolindex][gindex][1]
  11381. )
  11382. "
  11383. >修改</span
  11384. ></span
  11385. ><span>{{
  11386. groupStudent[toolindex][gindex] &&
  11387. groupStudent[toolindex][gindex][1]
  11388. ? groupStudent[toolindex][gindex] &&
  11389. groupStudent[toolindex][gindex][1].name
  11390. : "空位置"
  11391. }}</span>
  11392. </div>
  11393. <div v-if="groupJson.number > 5">
  11394. <span
  11395. :class="{
  11396. isChair:
  11397. groupStudent[toolindex][gindex] &&
  11398. groupStudent[toolindex][gindex][5],
  11399. updateChair:
  11400. courseDetail.userid == userid &&
  11401. groupStudent[toolindex][gindex] &&
  11402. groupStudent[toolindex][gindex][5] &&
  11403. groupJson.islock == 2,
  11404. }"
  11405. ><span
  11406. class="updateChairBtn"
  11407. @click="
  11408. updateGroupChair(
  11409. groupStudent[toolindex][gindex] &&
  11410. groupStudent[toolindex][gindex][5]
  11411. )
  11412. "
  11413. >修改</span
  11414. ></span
  11415. ><span>{{
  11416. groupStudent[toolindex][gindex] &&
  11417. groupStudent[toolindex][gindex][5]
  11418. ? groupStudent[toolindex][gindex] &&
  11419. groupStudent[toolindex][gindex][5].name
  11420. : "空位置"
  11421. }}</span>
  11422. </div>
  11423. <div v-if="groupJson.number > 9">
  11424. <span
  11425. :class="{
  11426. isChair:
  11427. groupStudent[toolindex][gindex] &&
  11428. groupStudent[toolindex][gindex][9],
  11429. updateChair:
  11430. courseDetail.userid == userid &&
  11431. groupStudent[toolindex][gindex] &&
  11432. groupStudent[toolindex][gindex][9] &&
  11433. groupJson.islock == 2,
  11434. }"
  11435. ><span
  11436. class="updateChairBtn"
  11437. @click="
  11438. updateGroupChair(
  11439. groupStudent[toolindex][gindex] &&
  11440. groupStudent[toolindex][gindex][9]
  11441. )
  11442. "
  11443. >修改</span
  11444. ></span
  11445. ><span>{{
  11446. groupStudent[toolindex][gindex] &&
  11447. groupStudent[toolindex][gindex][9]
  11448. ? groupStudent[toolindex][gindex] &&
  11449. groupStudent[toolindex][gindex][9].name
  11450. : "空位置"
  11451. }}</span>
  11452. </div>
  11453. </div>
  11454. </div>
  11455. </div>
  11456. </div>
  11457. </div>
  11458. <span slot="footer" class="dialog-footer">
  11459. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11460. </span>
  11461. </el-dialog>
  11462. <el-dialog
  11463. title="分组设置"
  11464. :visible.sync="dialogVisibleGroup2"
  11465. :append-to-body="true"
  11466. width="650px"
  11467. :before-close="handleClose"
  11468. class="dialog_diy"
  11469. >
  11470. <div class="groupBox">
  11471. <div v-if="groupJson2.group" class="groupContent">
  11472. <div class="groupTitle">请设置小组数量及名称</div>
  11473. <div
  11474. v-for="(item, index) in groupJson2.group"
  11475. :key="index"
  11476. class="groupName"
  11477. >
  11478. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11479. <el-input
  11480. v-model="item.name"
  11481. placeholder="请输入名称..."
  11482. style="width: 250px"
  11483. ></el-input>
  11484. <!-- <div class="groupBtn">
  11485. <el-button type="primary" size="small" @click="addGroup(index)">
  11486. 添加</el-button>
  11487. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11488. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11489. </div> -->
  11490. </div>
  11491. </div>
  11492. <div class="groupContent">
  11493. <div class="groupTitle">请设置每组人数</div>
  11494. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11495. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11496. <el-input
  11497. v-model="groupJson.number"
  11498. style="width: 150px"
  11499. placeholder="请输入2-10的数字"
  11500. @change="numberPan"
  11501. ></el-input>
  11502. </div>
  11503. </div>
  11504. <span slot="footer" class="dialog-footer">
  11505. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11506. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11507. </span>
  11508. </el-dialog>
  11509. <el-dialog
  11510. title="作业提交"
  11511. :visible.sync="dialogVisibleGroupWork"
  11512. :append-to-body="true"
  11513. width="500px"
  11514. :before-close="handleClose"
  11515. class="dialog_change"
  11516. >
  11517. <div class="marginT">
  11518. <div>上传文件</div>
  11519. <div
  11520. class="chapter_add"
  11521. @click="addImg($event)"
  11522. v-if="studyJuri[0].cover.length == 0"
  11523. >
  11524. <div class="up_photo">
  11525. <img src="../../assets/icon/uploadImg.png" alt />
  11526. </div>
  11527. <!-- <input
  11528. type="file"
  11529. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11530. style="display: none"
  11531. @change="beforeUpload1($event, 1)"
  11532. /> -->
  11533. <input
  11534. type="file"
  11535. accept="*"
  11536. style="display: none"
  11537. @change="beforeUpload1($event, 1)"
  11538. />
  11539. </div>
  11540. <!-- capture="camera" -->
  11541. <div
  11542. class="chapter_add"
  11543. style="
  11544. display: flex;
  11545. width: 100%;
  11546. flex-direction: row;
  11547. flex-wrap: wrap;
  11548. justify-content: flex-start;
  11549. padding: 15px 0;
  11550. "
  11551. v-if="studyJuri[0].cover.length > 0"
  11552. >
  11553. <div class="upCover">
  11554. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11555. <img :src="word" alt v-else-if="fileType == 1" />
  11556. <img :src="video" alt v-else-if="fileType == 2" />
  11557. <img :src="word2" alt v-else-if="fileType == 3" />
  11558. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11559. <div class="deleteWord" @click="clean(1)">
  11560. <img src="../../assets/icon/deleteWorks.png" alt />
  11561. </div>
  11562. </div>
  11563. </div>
  11564. </div>
  11565. <div
  11566. class="upload_send"
  11567. @click="addCourseWorks2(taskCount)"
  11568. v-if="!proVisible"
  11569. >
  11570. 提交
  11571. </div>
  11572. </el-dialog>
  11573. <el-dialog
  11574. title="修改分组"
  11575. :visible.sync="dialogVisibleUpdateGroup"
  11576. :append-to-body="true"
  11577. width="350px"
  11578. :before-close="handleClose"
  11579. class="dialog_diy"
  11580. >
  11581. <div>
  11582. <h2>
  11583. {{ this.updateGroupUser.name }}
  11584. </h2>
  11585. <div style="color: rgb(171 171 171); margin-top: 10px">
  11586. 请选择要进入的分组
  11587. </div>
  11588. <el-radio-group v-model="checkChair">
  11589. <el-radio
  11590. style="display: block; margin-top: 20px"
  11591. v-for="(item, index) in updateGroupArray"
  11592. :label="item.label"
  11593. :key="index"
  11594. >{{ item.name }}</el-radio
  11595. >
  11596. </el-radio-group>
  11597. </div>
  11598. <span slot="footer" class="dialog-footer">
  11599. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11600. <el-button type="primary" @click="updateChair">确定</el-button>
  11601. </span>
  11602. </el-dialog>
  11603. <el-dialog
  11604. title="移除组员"
  11605. :visible.sync="dialogVisibleDeleteGroup"
  11606. :append-to-body="true"
  11607. width="350px"
  11608. :before-close="handleClose"
  11609. class="dialog_diy"
  11610. >
  11611. <div>
  11612. <h2>
  11613. {{ this.deleteGroupArray.name }}
  11614. </h2>
  11615. <div style="color: rgb(171 171 171); margin-top: 10px">
  11616. 请选择要删除的组员
  11617. </div>
  11618. <el-checkbox-group v-model="checkDeleteGroup">
  11619. <el-checkbox
  11620. style="display: flex; margin-top: 20px"
  11621. v-for="(item, index) in deleteGroupUser"
  11622. :label="item.userid"
  11623. :key="index"
  11624. >{{ item.name }}</el-checkbox
  11625. >
  11626. </el-checkbox-group>
  11627. </div>
  11628. <span slot="footer" class="dialog-footer">
  11629. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11630. <el-button type="primary" @click="deleteChair">确定</el-button>
  11631. </span>
  11632. </el-dialog>
  11633. <el-dialog
  11634. title="批量上传"
  11635. :visible.sync="dialogVisiblePl"
  11636. :append-to-body="true"
  11637. width="700px"
  11638. :before-close="handleClose"
  11639. class="dialog_change"
  11640. >
  11641. <div class="marginT">
  11642. <div class="plworkBox">
  11643. <div
  11644. class="chapter_add"
  11645. style="
  11646. display: flex;
  11647. width: 150px;
  11648. flex-direction: row;
  11649. flex-wrap: wrap;
  11650. justify-content: flex-start;
  11651. margin: 0 10px 10px 0;
  11652. "
  11653. v-for="(item, index) in plworkFile"
  11654. :key="index"
  11655. >
  11656. <div class="upCover2">
  11657. <img
  11658. :src="item.url"
  11659. alt
  11660. v-if="item.fileType == 1"
  11661. @click="previewImg(item.url)"
  11662. />
  11663. <img :src="word" alt v-else-if="item.fileType == 4" />
  11664. <img :src="video" alt v-else />
  11665. <!-- <span class="picName">{{ item.name }}</span> -->
  11666. <!-- <el-input
  11667. v-model="item.username"
  11668. placeholder="请输入学生名字"
  11669. style="margin-top: 10px"
  11670. ></el-input> -->
  11671. <div
  11672. class="pl_select_box"
  11673. @click="
  11674. getUpdateMore(true, checkUpload(), item.username, index)
  11675. "
  11676. >
  11677. {{ getSName(item.username) }}
  11678. </div>
  11679. <!-- <el-select
  11680. style="margin-top: 10px"
  11681. v-model="item.username"
  11682. filterable
  11683. allow-create
  11684. placeholder="请选择学生"
  11685. >
  11686. <el-option
  11687. v-for="item1 in checkUpload()"
  11688. :key="item1.userid"
  11689. :label="item1.name ? item1.name : item1.username"
  11690. :value="item1.userid"
  11691. >
  11692. </el-option>
  11693. </el-select> -->
  11694. <div class="deleteWord" @click="clean2(index)">
  11695. <img src="../../assets/icon/deleteWorks.png" alt />
  11696. </div>
  11697. </div>
  11698. </div>
  11699. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11700. <div class="up_photo2">
  11701. <img src="../../assets/icon/plwork.png" alt />
  11702. <span>点击上传文件</span>
  11703. </div>
  11704. <input
  11705. type="file"
  11706. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11707. multiple="multiple"
  11708. style="display: none"
  11709. @change="beforeUpload3($event, 6)"
  11710. />
  11711. </div>
  11712. </div>
  11713. </div>
  11714. <!-- capture="camera" -->
  11715. <div
  11716. class="upload_send"
  11717. @click="addCourseWorksPl(taskCount)"
  11718. v-if="!proVisible2"
  11719. >
  11720. 提交
  11721. </div>
  11722. </el-dialog>
  11723. <el-dialog
  11724. title="修改名称"
  11725. :visible.sync="dialogVisibleSname"
  11726. width="500px"
  11727. :before-close="handleClose"
  11728. class="dialog_diy"
  11729. center
  11730. >
  11731. <div
  11732. style="
  11733. text-align: center;
  11734. display: flex;
  11735. align-items: center;
  11736. justify-content: center;
  11737. "
  11738. >
  11739. <span class="tian1">名称</span>
  11740. <div
  11741. class="pl_select_box"
  11742. style="margin-left: 10px; width: 200px"
  11743. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11744. >
  11745. {{ getSName(worksSName) }}
  11746. </div>
  11747. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11748. placeholder="请选择学生">
  11749. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11750. :value="item.userid">
  11751. </el-option>
  11752. </el-select> -->
  11753. <!-- <el-input
  11754. v-model="worksSName"
  11755. style="width: 250px; margin: 15px 0px"
  11756. ></el-input> -->
  11757. </div>
  11758. <span slot="footer" class="dialog-footer">
  11759. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11760. <el-button type="primary" @click="updateName">确 定</el-button>
  11761. </span>
  11762. </el-dialog>
  11763. <el-dialog
  11764. title="英语写作"
  11765. :visible.sync="engDialogVisible"
  11766. :append-to-body="true"
  11767. width="800px"
  11768. :before-close="handleClose"
  11769. class="dialog_diy"
  11770. >
  11771. <onlineWrite
  11772. v-if="engDialogVisible"
  11773. :englishList="englishList"
  11774. :myAnswerList1="myAnswerList1"
  11775. ref="engJson"
  11776. ></onlineWrite>
  11777. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11778. <el-button @click="engDialogVisible = false">取 消</el-button>
  11779. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11780. </span>
  11781. </el-dialog>
  11782. <el-dialog
  11783. title="英语写作"
  11784. :visible.sync="engUpdateDialogVisible"
  11785. :append-to-body="true"
  11786. width="800px"
  11787. :before-close="handleClose"
  11788. class="dialog_diy fullStyle"
  11789. >
  11790. <div class="engUpBox">
  11791. <div class="engUpTop">
  11792. <div class="engTitle">
  11793. <div>作文题目:</div>
  11794. <div>{{ englishList1.engTitle }}</div>
  11795. </div>
  11796. <div class="engText">
  11797. <div>作文内容:</div>
  11798. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11799. </div>
  11800. </div>
  11801. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11802. <div class="oldBox">
  11803. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11804. <div class="oldText">
  11805. <div class="detailBox">
  11806. <div class="oldDetail">
  11807. <div>标题:</div>
  11808. <div>{{ oldEnglishJson.engTitle }} </div>
  11809. </div>
  11810. <div class="oldDetail1">
  11811. <div>正文:</div>
  11812. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11813. </div>
  11814. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11815. <div>图片:</div>
  11816. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11817. </div>
  11818. </div>
  11819. </div>
  11820. </div>
  11821. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11822. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11823. <div class="oldText">
  11824. <div class="detailBox" style="position: relative;">
  11825. <div class="oldDetail">
  11826. <div>标题:</div>
  11827. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11828. <div v-else v-html="newEnglishList.engTitle"></div>
  11829. </div>
  11830. <div class="oldDetail">
  11831. <div>正文:</div>
  11832. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11833. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11834. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  11835. </div>
  11836. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11837. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11838. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11839. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11840. </div>
  11841. </div>
  11842. </div>
  11843. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11844. <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">
  11845. <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>
  11846. <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>
  11847. </div>
  11848. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11849. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11850. <div class="detailBox" style="position: relative;">
  11851. <div class="oldDetail">
  11852. <div>标题:</div>
  11853. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11854. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11855. </div>
  11856. <div class="oldDetail">
  11857. <div>正文:</div>
  11858. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11859. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11860. </div>
  11861. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11862. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11863. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11864. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11865. </div>
  11866. </div>
  11867. <div class="oldText" v-else-if="newEngIndex == -1">
  11868. <div class="detailBox" style="position: relative;">
  11869. <div class="oldDetail">
  11870. <div>标题:</div>
  11871. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11872. <div v-else v-html="newEnglishList.engTitle"></div>
  11873. </div>
  11874. <div class="oldDetail">
  11875. <div>正文:</div>
  11876. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11877. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11878. </div>
  11879. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11880. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11881. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11882. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11883. </div>
  11884. </div>
  11885. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11886. <div class="detailBox" style="position: relative;">
  11887. <div class="oldDetail">
  11888. <div>标题:</div>
  11889. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11890. <div v-else>
  11891. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11892. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11893. </div>
  11894. </div>
  11895. <div class="oldDetail">
  11896. <div>正文:</div>
  11897. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11898. <div v-else>
  11899. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11900. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11901. </div>
  11902. </div>
  11903. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11904. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11905. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  11906. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11907. </div>
  11908. </div>
  11909. </div>
  11910. </div>
  11911. </div>
  11912. <span slot="footer" class="dialog-footer">
  11913. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11914. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11915. </span>
  11916. </el-dialog>
  11917. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11918. <interVideo
  11919. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11920. :videoJson="videoJson"
  11921. :userid="userid"
  11922. :id="id"
  11923. :courseType="courseType"
  11924. :taskCount="taskCount"
  11925. :toolindex="toolindex"
  11926. :videoType="videoType"
  11927. ></interVideo>
  11928. <UpdateMore
  11929. :dialogVisibleMember.sync="dialogVisibleMember"
  11930. :cList="uploadStudentJuri"
  11931. :userid="userid"
  11932. :searchTN="worksSName2"
  11933. @setPlname="setPlname"
  11934. ></UpdateMore>
  11935. <wordCloud
  11936. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11937. :data="wordCloudData"
  11938. ></wordCloud>
  11939. <el-dialog
  11940. title="挑人"
  11941. :visible.sync="dialogVisiblePickPeople"
  11942. width="650px"
  11943. :before-close="handleClose"
  11944. class="dialog_diy"
  11945. center
  11946. >
  11947. <div class="pick_box">
  11948. <div
  11949. class="noWorksName"
  11950. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11951. v-for="(item, index) in uploadStudentJuri"
  11952. :key="index"
  11953. @click="pickStudent(item)"
  11954. >
  11955. {{ item.name }}
  11956. </div>
  11957. </div>
  11958. </el-dialog>
  11959. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11960. :englishVoiceJson='englishVoiceJson'
  11961. :userid="userid"
  11962. :id="id"
  11963. :courseType="courseType"
  11964. :taskCount="taskCount"
  11965. :toolindex="toolindex"
  11966. @selectSWorks="selectSWorks"
  11967. @selectStudent="selectStudent"
  11968. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11969. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11970. :userid="userid"
  11971. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11972. :commentDetail="commentDetail"
  11973. :courseDetail="courseDetail"
  11974. :wScore="wScore"
  11975. :scoreDetail="scoreDetail"
  11976. @selectSWorks="selectSWorks"
  11977. @selectStudent="selectStudent"></checkEnglishVoice>
  11978. </div>
  11979. </template>
  11980. <script>
  11981. import "../../common/aws-sdk-2.235.1.min.js";
  11982. // import pdf from "../components/pdf3";
  11983. import pdf from "../components/vpdf";
  11984. import AskStatic from "../components/askStatic";
  11985. import AskStatic2 from "../components/askStatic2";
  11986. import AnswerData2 from "../components/answerData2";
  11987. import AnswerData from "../components/answerData";
  11988. import EditorBar from "../tools/wangEnduit.vue";
  11989. import Table from "../tools/table.vue";
  11990. import Time from "../tools/time.vue";
  11991. import Mind from "../tools/jsmind.vue";
  11992. import Sunburst from "../tools/sunburst";
  11993. import SeeBoard from "../tools/seeBoard";
  11994. import * as imageConversion from "image-conversion";
  11995. import Audio from "../components/audio.vue";
  11996. import ImgDraw from "../tools/imgDraw/imgDraw";
  11997. import { Empty } from "element-ui";
  11998. import RecordRTC from "recordrtc";
  11999. import interVideo from "../interVideo/index.vue";
  12000. import UpdateMore from "../updateMore/updateMore.vue";
  12001. import wordCloud from "../wordCloud/index.vue";
  12002. import axios from "axios";
  12003. import JSZip from "jszip";
  12004. import FileSaver from "file-saver";
  12005. import onlineWrite from "./commpont/onlineWrite";
  12006. import englishEva from "../components/englishEva";
  12007. import * as Diff from 'diff'
  12008. import EnglishVoice from '../EnglishVoice2/index.vue'
  12009. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12010. import correctText from '../components/correctText.vue'
  12011. import scoreItem from '../scoreList/scoreItem.vue'
  12012. import scoreZong from '../scoreZong/index.vue'
  12013. import classRoomHelper from '../classRoomHelper/index.vue'
  12014. import markScore from "./commpont/markScore";
  12015. import { v4 as uuidv4 } from "uuid";
  12016. const getFile = (url) => {
  12017. return new Promise((resolve, reject) => {
  12018. var credentials = {
  12019. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12020. secretAccessKey: "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",
  12021. }; //秘钥形式的登录上传
  12022. window.AWS.config.update(credentials);
  12023. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12024. let url2 = url;
  12025. let _url2 = "";
  12026. if (
  12027. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12028. ) {
  12029. _url2 = url2.split(
  12030. "https://view.officeapps.live.com/op/view.aspx?src="
  12031. )[1];
  12032. } else {
  12033. _url2 = url2;
  12034. }
  12035. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12036. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12037. var params = {
  12038. Bucket: "ccrb",
  12039. Key: name
  12040. };
  12041. s3.getObject(params, function (err, data) {
  12042. if (err) {
  12043. console.log(err, err.stack)
  12044. resolve({ data: 1 });
  12045. }else {
  12046. resolve({ data: data.Body });
  12047. console.log(data);
  12048. } // sxuccessful response
  12049. });
  12050. // axios({
  12051. // method: "get",
  12052. // url,
  12053. // responseType: "blob",
  12054. // })
  12055. // .then((data) => {
  12056. // resolve({ data: data.data });
  12057. // })
  12058. // .catch((error) => {
  12059. // resolve({ data: 1 });
  12060. // // reject(error.toString());
  12061. // });
  12062. });
  12063. };
  12064. export default {
  12065. components: {
  12066. EditorBar,
  12067. Time,
  12068. pdf,
  12069. AskStatic,
  12070. AskStatic2,
  12071. Mind,
  12072. Sunburst,
  12073. SeeBoard,
  12074. AnswerData2,
  12075. AnswerData,
  12076. Audio,
  12077. ImgDraw,
  12078. Table,
  12079. interVideo,
  12080. UpdateMore,
  12081. wordCloud,
  12082. onlineWrite,
  12083. englishEva,
  12084. EnglishVoice,
  12085. checkEnglishVoice,
  12086. correctText,
  12087. scoreItem,
  12088. classRoomHelper,
  12089. scoreZong,
  12090. markScore
  12091. },
  12092. data() {
  12093. return {
  12094. bg: null,
  12095. drawShow: false,
  12096. dialogVisible: false,
  12097. dialogVisiblePl: false,
  12098. commentDialogVisible: false,
  12099. dialogVisibleMember: false,
  12100. dialogVisibleWordCloud: false,
  12101. videoVisible: false,
  12102. isStar: false,
  12103. studentEvalDialogVisible: false,
  12104. studentEvalDialogVisibleTeacher: false,
  12105. dialogVisibleSelect: false,
  12106. dialogVisibleSelectTeacher: false,
  12107. dialogVisibleScore: false,
  12108. dialogVisibleENScore: false,
  12109. dialogVisibleSentence: false,
  12110. dialogVisibleSentenceTeacher: false,
  12111. dialogVisibleSentence1: false,
  12112. dialogVisibleWorks: false,
  12113. dialogVisibleTable: false,
  12114. dialogVisibleTableTeacher: false,
  12115. dialogVisibleWord: false,
  12116. dialogVisibleWordTeacher: false,
  12117. dialogVisibleTable2: false,
  12118. dialogVisibleTable3: false,
  12119. dialogVisibleGroupWork: false,
  12120. dialogVisibleUpdateGroup: false,
  12121. dialogVisibleDeleteGroup: false,
  12122. dialogVisibleSname: false,
  12123. dialogVisibleVideo: false,
  12124. dialogVisiblePickPeople: false,
  12125. engDialogVisible: false,
  12126. engUpdateDialogVisible:false,
  12127. engEvaDialogVisible: false,
  12128. evaEngJson: {
  12129. teacherJson: {},
  12130. studentJson: {},
  12131. message: {},
  12132. },
  12133. isNoUserid:false,
  12134. engListLength:0,
  12135. engWid:"",
  12136. newEnglishList:{
  12137. engTitle:"",
  12138. engText:"",
  12139. },
  12140. newEnglishList1:[],
  12141. oldEnglishJson:{},
  12142. oldEnglishJson1:{},
  12143. englishList1:{},
  12144. englishList:{},
  12145. myAnswerList1:{},
  12146. topHeight:0,
  12147. newEngIndex:-1,
  12148. englishToolIndex:0,
  12149. userMes:{},
  12150. englishToolIndex:0,
  12151. worksSName: "",
  12152. classJuri: [],
  12153. uploadStudentJuri: [],
  12154. uploadCid: "",
  12155. snameWid: "",
  12156. sStudent: {},
  12157. sTool: "",
  12158. bzText: "",
  12159. commentDetail: [],
  12160. selectAnswer: [],
  12161. videoDetail: {},
  12162. selectJson: {},
  12163. englishList: {},
  12164. topHeight:0,
  12165. eScore: { eBzText: "", eStar: [] },
  12166. id: this.$route.query.courseId,
  12167. userid: this.$route.query.userid,
  12168. classId: this.$route.query.cid,
  12169. // courseTypeLine: this.$route.query.type,
  12170. oid: this.$route.query.oid,
  12171. org: this.$route.query.org,
  12172. tType: this.$route.query.tType,
  12173. courseType: this.$route.query.type,
  12174. screenType: this.$route.query.screenType,
  12175. tcid2: this.$route.query.tcid,
  12176. tcid: "",
  12177. pptImgUrl: "",
  12178. pptImgUrl1: "",
  12179. commentText: "",
  12180. full: false,
  12181. sIsOpen: false,
  12182. IsLookOpen: false,
  12183. IsFollow: false,
  12184. pzDialog: false,
  12185. contentDialog: false,
  12186. mlDialog: false,
  12187. type: 1,
  12188. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12189. sentenceList1: [],
  12190. tableJson: [],
  12191. tableJsonO: [],
  12192. wordJson: [],
  12193. wordJsonO: [],
  12194. vedio: [],
  12195. text: [],
  12196. textList: [],
  12197. line: [],
  12198. lineList: [],
  12199. chapTools: [],
  12200. chapToolList: [],
  12201. file: [],
  12202. fileC: [],
  12203. vedioTime: [],
  12204. upToolImg: "",
  12205. preTime: 0,
  12206. rateList: {
  12207. ca: 0,
  12208. },
  12209. rateParams: [],
  12210. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12211. studyJuri: [
  12212. {
  12213. content: "",
  12214. cover: [],
  12215. upVedio: [],
  12216. upFile: [],
  12217. },
  12218. ],
  12219. isClose: 0,
  12220. plworkFile: [],
  12221. mr: require("../../assets/vedioPic.png"),
  12222. word: require("../../assets/icon/isWord.png"),
  12223. word2: require("../../assets/icon/word2.png"),
  12224. video: require("../../assets/icon/isVideo.png"),
  12225. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12226. likes: require("../../assets/icon/comment/likes.png"),
  12227. scoreImg: require("../../assets/score.png"),
  12228. courseDetail: {},
  12229. reply: "",
  12230. isSelect: false,
  12231. chapInfo: [],
  12232. chapInfoList: [],
  12233. taskCount: 0,
  12234. imgList: [],
  12235. noImgList: [],
  12236. pzList: [],
  12237. timeWorkList: [],
  12238. PlTextList: [
  12239. "Excellent!",
  12240. "nice!",
  12241. "很有创意!",
  12242. "还不错哦~",
  12243. "继续努力哦~",
  12244. ],
  12245. isClickNav: "",
  12246. navId: "",
  12247. playerOptions: {
  12248. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12249. autoplay: false, //如果true,浏览器准备好时开始回放。
  12250. muted: false, // 默认情况下将会消除任何音频。
  12251. loop: false, // 导致视频一结束就重新开始。
  12252. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12253. language: "zh-CN",
  12254. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12255. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12256. sources: [
  12257. {
  12258. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12259. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12260. },
  12261. ],
  12262. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12263. // poster: dataRes.imgUrl, //你的封面地址
  12264. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12265. controlBar: {
  12266. timeDivider: true, //当前时间和持续时间的分隔符
  12267. durationDisplay: true, //显示持续时间
  12268. remainingTimeDisplay: false, //是否显示剩余时间功能
  12269. fullscreenToggle: true, //全屏按钮
  12270. },
  12271. },
  12272. playerOptions1: {
  12273. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12274. autoplay: false, //如果true,浏览器准备好时开始回放。
  12275. muted: false, // 默认情况下将会消除任何音频。
  12276. loop: false, // 导致视频一结束就重新开始。
  12277. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12278. language: "zh-CN",
  12279. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12280. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12281. sources: [
  12282. {
  12283. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12284. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12285. },
  12286. ],
  12287. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12288. // poster: dataRes.imgUrl, //你的封面地址
  12289. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12290. controlBar: {
  12291. timeDivider: true, //当前时间和持续时间的分隔符
  12292. durationDisplay: true, //显示持续时间
  12293. remainingTimeDisplay: false, //是否显示剩余时间功能
  12294. fullscreenToggle: true, //全屏按钮
  12295. },
  12296. },
  12297. playerO: {},
  12298. noneBtnImg: false,
  12299. proVisible: false,
  12300. proVisible2: false,
  12301. progress: 0,
  12302. isFinishSize: 0,
  12303. isAllSize: 0,
  12304. questionAnswer: "",
  12305. answerQ: "", //问答标题
  12306. rateJson: [],
  12307. wbCount: 0,
  12308. wordCount: 0,
  12309. mindCount: 0,
  12310. askCount: 0,
  12311. noteCount: 0,
  12312. mindNetWorkCount: 0,
  12313. libraryCount: 0,
  12314. workCount: 0,
  12315. timeCount: 0,
  12316. answerCount: 0,
  12317. trainCount: 0,
  12318. evalCount: 0,
  12319. dialogImageUrl: "",
  12320. pictureDialog: false,
  12321. toolTypeList: [],
  12322. dialogVisible1: false,
  12323. dialogVisible2: false,
  12324. dialogVisible3: false,
  12325. dialogVisible6: false,
  12326. dialogVisible4: false,
  12327. isNoHomeWork: false,
  12328. dialogVisible5: false,
  12329. dialogVisible5Teacher: false,
  12330. dialogVisibleChoice: false,
  12331. dialogVisibleChoiceTeacher: false,
  12332. answerDialogVisible: false,
  12333. answerDialogVisibleTeacher: false,
  12334. juriVisible: false,
  12335. timeDialogVisible: false,
  12336. replyDialogVisible: false,
  12337. toolDialogVisible: false,
  12338. replyIndex: 0,
  12339. replyPid: "",
  12340. radio: [],
  12341. isAsk: false,
  12342. askJson: {
  12343. askCount: 1,
  12344. askTitle: "",
  12345. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12346. },
  12347. testJson: {},
  12348. videoType:0,
  12349. checkJson: [],
  12350. askList: [],
  12351. answerList: [],
  12352. navList: [],
  12353. addPzDialog: false,
  12354. pzConText: "",
  12355. worksStudent: [],
  12356. isCloseList: [],
  12357. workStudent: [],
  12358. groupStudent: [],
  12359. groupStudentUid: [],
  12360. noWorksS: [],
  12361. isWorksS: [],
  12362. noWorksStudent: [],
  12363. toolindex: 0,
  12364. toolDetailIndex: null,
  12365. groupIndex: 0,
  12366. workTypeB: false,
  12367. workTypeC: false,
  12368. isAnswer: false,
  12369. isHovered: false,
  12370. isHovered1: false,
  12371. isHovered2: false,
  12372. commentTagShow:0,
  12373. timer: null,
  12374. opertimer: null,
  12375. showType: 0,
  12376. fileType: 0,
  12377. showPDF: false,
  12378. noteName: "",
  12379. evaJuri: [],
  12380. evalua: "",
  12381. eTitle: "",
  12382. eName: "",
  12383. eJson: {},
  12384. fid: "", //一级
  12385. sid: "", //二级
  12386. tid: "", //二级
  12387. typeMode: 1,
  12388. eJSONNum: 0,
  12389. Etype: 1,
  12390. data: {
  12391. meta: {
  12392. name: "example",
  12393. author: "dd@163.com",
  12394. version: "0.2",
  12395. },
  12396. format: "node_array",
  12397. data: [{ id: "root", isroot: true, topic: "" }],
  12398. },
  12399. fullDialogVisible: false,
  12400. fulltype: "",
  12401. fullUrl: "",
  12402. commentIndexJson: {},
  12403. Stbodywidth: 0,
  12404. ispzType: 0,
  12405. pzType: 1,
  12406. wScore: 0,
  12407. scoreDetail: "",
  12408. videoStart: false,
  12409. recorder: null,
  12410. groupJson: {},
  12411. islock: false,
  12412. groupJson2: {},
  12413. dialogVisibleGroup: false,
  12414. dialogVisibleGroup2: false,
  12415. updateGroupArray: [],
  12416. updateGroupUser: {},
  12417. deleteGroupUser: [],
  12418. deleteGroupArray: {},
  12419. checkChair: "",
  12420. checkDeleteGroup: [],
  12421. inviteCode: "",
  12422. courseGroupStudent: [],
  12423. courseGroupStudentUid: [],
  12424. courseGroup: {},
  12425. isGroup: false,
  12426. toolIndex: null,
  12427. tool: {},
  12428. isWorkTool: [
  12429. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12430. ], //, 40
  12431. videoJson: {},
  12432. toolType: 0,
  12433. checktoolArray: [],
  12434. vChapterData: [],
  12435. isUpdateToolDetail: false,
  12436. isUpdateToolDetail1: false,
  12437. updateToolDetailInner: "",
  12438. checkboxList: [],
  12439. plIndex: "",
  12440. worksSName2: "",
  12441. worksSid: "",
  12442. wordCloudData: [],
  12443. isPickStudent: [],
  12444. pzStype: 1,
  12445. downLoading: false,
  12446. greyType: false,
  12447. correctWord: [],
  12448. EnglishVoiceDialog: false,
  12449. englishVoiceJson: {},
  12450. englishVoiceJsonWork:[],
  12451. scoreList:{
  12452. listdata:[],
  12453. isScoreList:[],
  12454. },
  12455. classRoomHelperWidth: '85px',
  12456. orgArray:[],
  12457. oidArray:[],
  12458. refreshKey:0,
  12459. AIloading:[],
  12460. worksStudentCopy:[],
  12461. loopLoading:[],
  12462. };
  12463. },
  12464. methods: {
  12465. getAIJ(){
  12466. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12467. let oid = res.data[0];
  12468. let org = res.data[1];
  12469. let oidArray = [];
  12470. let orgArray = [];
  12471. oid.forEach(i=>oidArray.push(i.oid))
  12472. org.forEach(i=>orgArray.push(i.oid))
  12473. this.orgArray = orgArray;
  12474. this.oidArray = oidArray;
  12475. })
  12476. },
  12477. insertMemorandum(_html){//保存行为操作
  12478. //variable
  12479. //btn
  12480. let params = [{
  12481. uid:this.userid,
  12482. courseId:this.id+(this.tcid2?this.tcid2:""),
  12483. content:_html
  12484. }]
  12485. console.log(params)
  12486. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12487. if(res.data==1){
  12488. console.log('保存操作成功')
  12489. }else{
  12490. console.log('保存操作失败')
  12491. }
  12492. }).catch(e=>{
  12493. console.log('保存操作失败')
  12494. console.log(e)
  12495. })
  12496. },
  12497. async loopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  12498. // console.log(con,tit,stage,task,toolIndex,toolDetail);
  12499. tit.forEach((e,index)=>{
  12500. if(!e.isai){
  12501. e.isai=1
  12502. }
  12503. })
  12504. // return console.log(tit)
  12505. let jude = false
  12506. this.AIloading.forEach((e,index)=>{
  12507. if(index == toolIndex){
  12508. e.forEach(k=>{
  12509. if(k.loading == true)
  12510. jude=true
  12511. })
  12512. }
  12513. })
  12514. if(jude) return this.$message.info('请勿同时间进行AI评分')
  12515. this.AIloading.forEach((e,index)=>{
  12516. if(index == toolIndex){
  12517. e.forEach(k=>{
  12518. k.loading=true
  12519. })
  12520. }
  12521. })
  12522. this.loopLoading[toolIndex].loading=true
  12523. // return console.log(this.loopLoading,this.AIloading);
  12524. let _text = ''
  12525. for (let i = 0; i < tit.length; i++) {
  12526. if(tit[i].isai == 1){
  12527. _text += `评价名称:${tit[i].value} 评价描述:${tit[i].detail} \n`
  12528. }
  12529. }
  12530. let laws = ""
  12531. for (let i = 0; i < tit.length; i++) {
  12532. if(tit[i].isai == 1){
  12533. laws += `评价维度:${tit[i].value} 评价细则:${tit[i].rule} \n`
  12534. }
  12535. }
  12536. for (let i = 0; i < con.length; i++) {
  12537. let msg = `NOTICE
  12538. Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“六级评价细则”给学生作品评分,并生成需要的JSON数据。
  12539. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  12540. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12541. Instruction: Based on the context, follow "Format example", write content.
  12542. #Context
  12543. ##要求
  12544. 根据<评价细则>和<作业内容>的相关性评价作业,判根据细则评价作业,判断该作业属于六级中的哪个等级。如果作业内容与评价细则无关,则直接评为0星。
  12545. ##评分资料
  12546. 评价细则:${laws}
  12547. 作业内容:${JSON.parse(con[i].works).text}
  12548. # Format example
  12549. [{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'}]
  12550. `
  12551. let mk = `markSco${toolIndex}${i}`
  12552. await this.$refs[mk][0].aiupdetaSco(msg,con[i].userid,stage,task)
  12553. // this.refreshKey++
  12554. this.$refs[mk][0].getData()
  12555. this.AIloading[toolIndex][i].loading=false
  12556. }
  12557. this.loopLoading[toolIndex].loading = false;
  12558. worksStudent.forEach((e,index)=>{
  12559. if(toolIndex != index){
  12560. e.forEach((i,inx)=>{
  12561. let mk = `markSco${index}${inx}`
  12562. this.$refs[mk][0].getData()
  12563. })
  12564. }
  12565. })
  12566. },
  12567. againEva(i,k){
  12568. let msg = `NOTICE
  12569. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  12570. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  12571. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12572. Instruction: Based on the context, follow "Format example", write content.
  12573. #Context
  12574. ##要求
  12575. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  12576. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  12577. ##制定标准资料
  12578. 评价维度:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value}
  12579. 维度描述:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail}
  12580. # Format example
  12581. ==
  12582. 0 星,作业内容与作业要求无关;
  12583. 1 星,没有识别问题和需求;
  12584. 2 星,问题或需求没有被清晰理解或准确识别;
  12585. 3 星,问题或需求的一部分被识别;
  12586. 4 星,问题或需求的大部分被识别;
  12587. 5 星,问题或需求都被识别。
  12588. ==
  12589. `
  12590. let params = {
  12591. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  12592. message: [{"type":"text", "text":msg.replaceAll('\n', " ").replaceAll('*', "")}],
  12593. session_name: uuidv4(),
  12594. userId: this.userid,
  12595. file_ids: [],
  12596. model:'gpt-4o-2024-08-06'
  12597. };
  12598. // console.log('params',params);
  12599. this.ajax
  12600. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  12601. .then(response => {
  12602. let data = response.data.FunctionResponse;
  12603. // console.log("data", data);
  12604. if (data.message) {
  12605. let content = data.message;
  12606. var regex = new RegExp('==([^=]+)==');
  12607. let match = content.match(regex);
  12608. if (match) {
  12609. content = match[1].trim().replaceAll(' ','');
  12610. // 获取匹配到的内容并去除两端空格
  12611. // console.log('contentInsideDoubleEquals', content);
  12612. if(content.indexOf('0星') == -1 || content.indexOf('2星') == -1 || content.indexOf('3星') == -1 || content.indexOf('4星') == -1 || content.indexOf('5星') == -1){
  12613. console.log("未有星级。");
  12614. this.againEva(i,k)
  12615. return
  12616. }
  12617. // return
  12618. } else {
  12619. console.log("未找到匹配的内容。");
  12620. this.againEva(i,k)
  12621. return
  12622. }
  12623. let elist = JSON.parse(JSON.stringify(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]))
  12624. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  12625. elist.rule = JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  12626. this.$set(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,k,elist)
  12627. this.$forceUpdate();
  12628. let params2 = [
  12629. {
  12630. cid: this.id,
  12631. chapters: JSON.stringify(this.chapInfoList),
  12632. uid: this.userid,
  12633. unitIndex: this.courseType,
  12634. },
  12635. ];
  12636. this.ajax
  12637. .post(this.$store.state.api + "updateWorkNew4", params2)
  12638. .then((res) => {
  12639. this.getCourseDetail(2);
  12640. this.$forceUpdate();
  12641. })
  12642. .catch((err) => {
  12643. this.$message.error("网络不佳");
  12644. console.error(err);
  12645. });
  12646. // 进行进一步处理或解析outputContent
  12647. // } else {
  12648. // console.log("No match found for # Output section.");
  12649. // }
  12650. }
  12651. })
  12652. .catch(error => {
  12653. console.log(error);
  12654. });
  12655. },
  12656. // 组件刷新
  12657. refreshAssembly(val){
  12658. this.refreshKey++
  12659. // console.log(this.refreshKey)
  12660. },
  12661. updateLoading(payload){
  12662. this.AIloading[payload.val][payload.val2].loading=payload.val3
  12663. },
  12664. handleShow(toolIndex,val) {
  12665. let mk = `markSco${toolIndex}${val}`
  12666. // console.log(mk);
  12667. this.$refs[mk][0].getData()
  12668. },
  12669. handleHide(toolIndex,val,worksStudent) {
  12670. let mk = `markSco${toolIndex}${val}`
  12671. this.$refs[mk][0].getData()
  12672. },
  12673. // 刷新其他组件分数
  12674. refreshOther(toolIndex){
  12675. this.worksStudent.forEach((e,index)=>{
  12676. if(toolIndex != index){
  12677. e.forEach((i,inx)=>{
  12678. let mk = `markSco${index}${inx}`
  12679. this.$refs[mk][0].getData()
  12680. })
  12681. }
  12682. })
  12683. },
  12684. updateDocSco(payload){
  12685. // console.log('6',this.AIloading[payload.val][payload.val2].sco , payload.val3);
  12686. this.AIloading[payload.val][payload.val2].sco=payload.val3
  12687. },
  12688. gx(){
  12689. this.$forceUpdate();
  12690. },
  12691. isUpdateCorrect(t,p){
  12692. if(this.greyType == false){
  12693. this.isUpdateText = t;
  12694. this.greyType = true;
  12695. }else{
  12696. if(p == 1){
  12697. this.newEnglishList.engText = this.isUpdateText;
  12698. }else if(p == 2){
  12699. this.oldEnglishJson1.engText = this.isUpdateText;
  12700. }else if(p == 3){
  12701. this.newEnglishList.engText = this.isUpdateText;
  12702. }else{
  12703. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12704. }
  12705. this.greyType = false
  12706. }
  12707. },
  12708. aiCorrect(t,p){
  12709. let aiText = "";
  12710. const loading = this.$loading.service({
  12711. background: "rgba(255, 255, 255)",
  12712. target: document.querySelectorAll(".loadingText")[0],
  12713. });
  12714. let param = {
  12715. model: "gpt-3.5-turbo",
  12716. temperature: 0,
  12717. max_tokens: 2048,
  12718. top_p: 1,
  12719. frequency_penalty: 0,
  12720. presence_penalty: 0,
  12721. messages: [
  12722. {
  12723. role: "user",
  12724. content:
  12725.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12726. },
  12727. ],
  12728. uid: this.userid,
  12729. stream: false,
  12730. };
  12731. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12732. (res) => {
  12733. if (
  12734. res.data.FunctionResponse &&
  12735. res.data.FunctionResponse.result &&
  12736. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12737. ) {
  12738. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12739. return;
  12740. }
  12741. aiText =
  12742. res.data.FunctionResponse.choices[0].message.content;
  12743. aiText = aiText.replace(/%/g,"%25");
  12744. // let w = "";
  12745. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12746. // for(var k = 0;k<a.length;k++){
  12747. // //diffWordsWithSpace
  12748. // if(a.length > 1){
  12749. // if(a[k].added == true){
  12750. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12751. // }else if(a[k].removed == true){
  12752. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12753. // }else{
  12754. // w += '<span>' + a[k].value + '</span>';
  12755. // }
  12756. // }else{
  12757. // if(p == 1){
  12758. // w = this.newEnglishList.engText;
  12759. // }else if(p == 2){
  12760. // w = this.oldEnglishJson1.engText;
  12761. // }else if(p == 3){
  12762. // w = this.newEnglishList.engText;
  12763. // }else{
  12764. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12765. // }
  12766. // }
  12767. // }
  12768. if(p == 1){
  12769. this.newEnglishList.engText = aiText;
  12770. }else if(p == 2){
  12771. this.oldEnglishJson1.engText = aiText;
  12772. }else if(p == 3){
  12773. this.newEnglishList.engText = aiText;
  12774. }else{
  12775. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12776. }
  12777. loading.close();
  12778. },
  12779. (err) => {
  12780. console.log(err);
  12781. loading.close();
  12782. }
  12783. );
  12784. },
  12785. addToolChoose() {
  12786. if (!this.checktoolArray.length) {
  12787. this.$message.error("请选择要添加的任务");
  12788. return;
  12789. }
  12790. if (
  12791. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12792. this.taskCount
  12793. ].toolChoose[0].tool.length
  12794. ) {
  12795. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12796. this.taskCount
  12797. ].toolChoose[0].tool = this.checktoolArray;
  12798. } else {
  12799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12800. this.taskCount
  12801. ].toolChoose.push({
  12802. tool: this.checktoolArray,
  12803. toolDetail: "",
  12804. toolType: 0,
  12805. askCount: 1,
  12806. askTitle: "",
  12807. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12808. });
  12809. }
  12810. let params = [
  12811. {
  12812. cid: this.id,
  12813. chapters: JSON.stringify(this.chapInfoList),
  12814. uid: this.userid,
  12815. unitIndex: this.courseType,
  12816. },
  12817. ];
  12818. this.ajax
  12819. .post(this.$store.state.api + "updateWorkNew4", params)
  12820. .then((res) => {
  12821. this.$message({
  12822. message: "添加成功",
  12823. type: "success",
  12824. });
  12825. this.checktoolArray = [];
  12826. this.getCourseDetail(2);
  12827. this.checkBz(
  12828. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12829. this.taskCount
  12830. ].toolChoose.length - 1
  12831. );
  12832. this.toolDialogVisible = false;
  12833. this.refreshCourse();
  12834. this.$forceUpdate();
  12835. })
  12836. .catch((err) => {
  12837. console.error(err);
  12838. });
  12839. },
  12840. checkBz(index) {
  12841. this.isUpdateToolDetail = false;
  12842. this.$forceUpdate();
  12843. setTimeout(() => {
  12844. document.scrollingElement.scrollTop =
  12845. document.querySelectorAll(".filebox")[index].offsetTop +
  12846. document.querySelector(".student_body").offsetTop;
  12847. }, 500);
  12848. },
  12849. updateToolDetail(i, type) {
  12850. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12851. this.toolDetailIndex = i
  12852. this.isUpdateToolDetail1 = true;
  12853. setTimeout(() => {
  12854. this.updateToolDetailInner = JSON.parse(
  12855. JSON.stringify(
  12856. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12857. this.taskCount
  12858. ].toolChoose[i].toolDetail
  12859. )
  12860. );
  12861. document.querySelector(".checkTextArea").focus();
  12862. }, 0);
  12863. } else if((this.isUpdateToolDetail1 && type != 2)){
  12864. // this.toolDetailIndex = i;
  12865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12866. this.taskCount
  12867. ].toolChoose[i].toolDetail = JSON.parse(
  12868. JSON.stringify(this.updateToolDetailInner)
  12869. );
  12870. let params = [
  12871. {
  12872. cid: this.id,
  12873. chapters: JSON.stringify(this.chapInfoList),
  12874. uid: this.userid,
  12875. unitIndex: this.courseType,
  12876. },
  12877. ];
  12878. this.ajax
  12879. .post(this.$store.state.api + "updateWorkNew4", params)
  12880. .then((res) => {
  12881. this.isUpdateToolDetail1 = false;
  12882. this.$message({
  12883. message: "修改成功",
  12884. type: "success",
  12885. });
  12886. this.toolDetailIndex = null;
  12887. this.updateToolDetailInner = "";
  12888. this.getCourseDetail(2);
  12889. this.$forceUpdate();
  12890. })
  12891. .catch((err) => {
  12892. console.error(err);
  12893. });
  12894. } else if((this.isUpdateToolDetail1 && type == 2)){
  12895. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12896. this.taskCount
  12897. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12898. JSON.stringify(this.updateToolDetailInner)
  12899. );
  12900. let params = [
  12901. {
  12902. cid: this.id,
  12903. chapters: JSON.stringify(this.chapInfoList),
  12904. uid: this.userid,
  12905. unitIndex: this.courseType,
  12906. },
  12907. ];
  12908. this.ajax
  12909. .post(this.$store.state.api + "updateWorkNew4", params)
  12910. .then((res) => {
  12911. this.$message({
  12912. message: "修改成功",
  12913. type: "success",
  12914. });
  12915. this.toolDetailIndex = i;
  12916. this.isUpdateToolDetail1 = true;
  12917. setTimeout(() => {
  12918. this.updateToolDetailInner = JSON.parse(
  12919. JSON.stringify(
  12920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12921. this.taskCount
  12922. ].toolChoose[i].toolDetail
  12923. )
  12924. );
  12925. document.querySelector(".checkTextArea").focus();
  12926. }, 0);
  12927. this.getCourseDetail(2);
  12928. this.$forceUpdate();
  12929. })
  12930. .catch((err) => {
  12931. console.error(err);
  12932. });
  12933. }
  12934. },
  12935. jumpGj(i, j, k, l) {
  12936. this.refreshAssembly()
  12937. for (var z = 0; z < this.navList.length; z++) {
  12938. for (var q = 0; q < this.navList[z].task.length; q++) {
  12939. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12940. this.navList[z].task[q].tool[w].isTool = false;
  12941. }
  12942. }
  12943. }
  12944. this.navList[i].task[j].tool[k].isTool =
  12945. !this.navList[i].task[j].tool[k].isTool;
  12946. var a = document.scrollingElement;
  12947. let target = document.querySelector(`#gj${k}`);
  12948. if (target) {
  12949. target.scrollIntoView(true);
  12950. setTimeout(() => {
  12951. a.scrollTop = a.scrollTop - 150;
  12952. }, 0);
  12953. }
  12954. this.navId = ""
  12955. let flag = this.courseType == i;
  12956. let flag2 = this.taskCount == j
  12957. if (l) {
  12958. this.courseType = i;
  12959. // this.navId = l;
  12960. this.taskCount = j;
  12961. this.selectPz();
  12962. this.getHomeWork();
  12963. this.getCourseDetail(2);
  12964. if(flag){
  12965. if(flag2){
  12966. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12967. }else{
  12968. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12969. }
  12970. }else{
  12971. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12972. }
  12973. }
  12974. // var b = this.$refs["bz" + k][0];
  12975. // a.scrollTop = b.offsetTop;
  12976. },
  12977. addTools2(i) {
  12978. if (i == 4) {
  12979. // this.openTools2(4);
  12980. this.$message.error("暂未开放");
  12981. return;
  12982. }
  12983. if (i == 45) {
  12984. // this.openTools2(45);
  12985. this.$message.error("暂未开放");
  12986. return;
  12987. }
  12988. if (i == 47) {
  12989. // this.openTools2(47);
  12990. this.$message.error("暂未开放");
  12991. return;
  12992. }
  12993. if (i == 49) {
  12994. // this.openTools2(49);
  12995. this.$message.error("暂未开放");
  12996. return;
  12997. }
  12998. if (i == 62) {
  12999. // this.openTools(itemTaskIndex, 62, toolIndex);
  13000. this.$message.error("暂未开放");
  13001. return;
  13002. }
  13003. if (i == 15) {
  13004. // this.openTools(itemTaskIndex, 15, toolIndex);
  13005. this.$message.error("暂未开放");
  13006. return;
  13007. }
  13008. if (i == 40) {
  13009. // this.openTools(itemTaskIndex, 40, toolIndex);
  13010. this.$message.error("暂未开放");
  13011. return;
  13012. }
  13013. if (i == 41) {
  13014. // this.openTools(itemTaskIndex, 41, toolIndex);
  13015. this.$message.error("暂未开放");
  13016. return;
  13017. }
  13018. if (i == 42) {
  13019. // this.openTools(itemTaskIndex, 42, toolIndex);
  13020. this.$message.error("暂未开放");
  13021. return;
  13022. }
  13023. if (this.checktoolArray.length > 0) {
  13024. if (this.checktoolArray.indexOf(i) != -1) {
  13025. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13026. } else {
  13027. this.checktoolArray = [];
  13028. this.checktoolArray.push(i);
  13029. }
  13030. } else {
  13031. this.checktoolArray.push(i);
  13032. }
  13033. this.$forceUpdate();
  13034. },
  13035. jump() {
  13036. window.parent.postMessage({ tools: "43" }, "*");
  13037. },
  13038. getUpdateMore(f, checkboxList, searchTN, index) {
  13039. this.dialogVisibleMember = f;
  13040. this.checkboxList = checkboxList;
  13041. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13042. this.plIndex = index;
  13043. },
  13044. setPlname(a) {
  13045. if (this.plworkFile.length) {
  13046. this.plworkFile[this.plIndex].username = a;
  13047. } else {
  13048. this.worksSName = a;
  13049. }
  13050. this.dialogVisibleMember = false;
  13051. },
  13052. previewImg(url,w) {
  13053. this.$hevueImgPreview(url);
  13054. if(w){
  13055. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13056. }
  13057. },
  13058. checkImg(list) {
  13059. if (!list.length) {
  13060. return;
  13061. }
  13062. this.$hevueImgPreview({
  13063. multiple: true, // 开启多图预览模式
  13064. imgList: list, // 需要预览的多图数组
  13065. });
  13066. },
  13067. change(val) {
  13068. console.log(val);
  13069. },
  13070. goTo(path) {
  13071. this.$router.push(path);
  13072. },
  13073. handlePictureCardPreview(url) {
  13074. this.dialogImageUrl = url;
  13075. this.pictureDialog = true;
  13076. },
  13077. clean(type) {
  13078. if (type == 1) {
  13079. this.studyJuri[0].cover.splice(0, 1);
  13080. } else if (type == 2) {
  13081. this.studyJuri[0].upVedio.splice(0, 1);
  13082. } else {
  13083. this.studyJuri[0].upFile.splice(0, 1);
  13084. }
  13085. },
  13086. clean2(index) {
  13087. this.plworkFile.splice(index, 1);
  13088. },
  13089. handleClose(done) {
  13090. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13091. this.videoDetail.sources[0].src = "";
  13092. }
  13093. this.commentIndexJson = {};
  13094. done();
  13095. },
  13096. fullTools() {
  13097. this.full = !this.full;
  13098. },
  13099. imgChange(file, fileList, type) {
  13100. if (type == 1) {
  13101. var _tmp = this.studyJuri[0].cover;
  13102. } else if (type == 2) {
  13103. var _tmp = this.studyJuri[0].upVedio;
  13104. } else {
  13105. var _tmp = this.studyJuri[0].upFile;
  13106. }
  13107. this.noneBtnImg = _tmp.length >= 1;
  13108. },
  13109. setContent(bool) {
  13110. this.contentDialog = bool;
  13111. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13112. document.querySelector(".workd_media").style.height = "650px";
  13113. } else if (document.querySelector(".workd_media")) {
  13114. document.querySelector(".workd_media").style.height = "auto";
  13115. }
  13116. },
  13117. setContent2(bool) {
  13118. this.mlDialog = bool;
  13119. if (
  13120. bool &&
  13121. this.contentDialog &&
  13122. document.querySelector(".workd_media")
  13123. ) {
  13124. document.querySelector(".workd_media").style.height = "650px";
  13125. } else if (document.querySelector(".workd_media")) {
  13126. document.querySelector(".workd_media").style.height = "auto";
  13127. }
  13128. },
  13129. openToolAll() {
  13130. this.toolDialogVisible = true;
  13131. },
  13132. addImg(e) {
  13133. var el = e.currentTarget;
  13134. // this.$message.success('触发上传')
  13135. el.getElementsByTagName("input")[0].click();
  13136. e.target.value = "";
  13137. },
  13138. addSelectAnswer() {
  13139. let params = [
  13140. {
  13141. uid: this.userid,
  13142. cid: this.id,
  13143. stage: this.courseType,
  13144. task: this.taskCount,
  13145. tool: this.toolindex,
  13146. content: this.selectAnswer.answer,
  13147. type: 7,
  13148. },
  13149. ];
  13150. this.ajax
  13151. .post(this.$store.state.api + "addCourseWorks", params)
  13152. .then((res) => {
  13153. this.$message({
  13154. message: "提交成功",
  13155. type: "success",
  13156. });
  13157. this.dialogVisibleSelect = false;
  13158. // this.selectAnswer = {};
  13159. this.selectSWorks();
  13160. this.selectStudent();
  13161. })
  13162. .catch((err) => {
  13163. this.$message.error("提交失败");
  13164. console.error(err);
  13165. });
  13166. },
  13167. addSelectAnswerTeacher() {
  13168. let params = [
  13169. {
  13170. uid: this.sStudent.userid,
  13171. cid: this.id,
  13172. stage: this.courseType,
  13173. task: this.taskCount,
  13174. tool: this.toolindex,
  13175. content: this.selectAnswer.answer,
  13176. type: 7,
  13177. },
  13178. ];
  13179. this.ajax
  13180. .post(this.$store.state.api + "addCourseWorks", params)
  13181. .then((res) => {
  13182. this.$message({
  13183. message: "提交成功",
  13184. type: "success",
  13185. });
  13186. this.dialogVisibleSelectTeacher = false;
  13187. // this.selectAnswer = {};
  13188. this.selectSWorks();
  13189. this.selectStudent();
  13190. })
  13191. .catch((err) => {
  13192. this.$message.error("提交失败");
  13193. console.error(err);
  13194. });
  13195. },
  13196. addSenWorks() {
  13197. for (var i = 0; i < this.sentenceList.length; i++) {
  13198. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13199. if (
  13200. this.sentenceList[i].chooseSenList[j] == undefined ||
  13201. this.sentenceList[i].chooseSenList[j] == ""
  13202. ) {
  13203. this.$message.error("请将答案填写完整!");
  13204. return;
  13205. }
  13206. }
  13207. }
  13208. let params = [
  13209. {
  13210. uid: this.userid,
  13211. cid: this.id,
  13212. stage: this.courseType,
  13213. task: this.taskCount,
  13214. tool: this.toolindex,
  13215. content: JSON.stringify(this.sentenceList),
  13216. type: 9,
  13217. },
  13218. ];
  13219. this.ajax
  13220. .post(this.$store.state.api + "addCourseWorks", params)
  13221. .then((res) => {
  13222. this.$message({
  13223. message: "提交成功",
  13224. type: "success",
  13225. });
  13226. this.dialogVisibleSentence = false;
  13227. // this.selectAnswer = {};
  13228. this.selectSWorks();
  13229. this.selectStudent();
  13230. })
  13231. .catch((err) => {
  13232. this.$message.error("提交失败");
  13233. console.error(err);
  13234. });
  13235. },
  13236. addSenWorksTeacher() {
  13237. for (var i = 0; i < this.sentenceList.length; i++) {
  13238. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13239. if (
  13240. this.sentenceList[i].chooseSenList[j] == undefined ||
  13241. this.sentenceList[i].chooseSenList[j] == ""
  13242. ) {
  13243. this.$message.error("请将答案填写完整!");
  13244. return;
  13245. }
  13246. }
  13247. }
  13248. let params = [
  13249. {
  13250. uid: this.sStudent.userid,
  13251. cid: this.id,
  13252. stage: this.courseType,
  13253. task: this.taskCount,
  13254. tool: this.toolindex,
  13255. content: JSON.stringify(this.sentenceList),
  13256. type: 9,
  13257. },
  13258. ];
  13259. this.ajax
  13260. .post(this.$store.state.api + "addCourseWorks", params)
  13261. .then((res) => {
  13262. this.$message({
  13263. message: "提交成功",
  13264. type: "success",
  13265. });
  13266. this.dialogVisibleSentenceTeacher = false;
  13267. // this.selectAnswer = {};
  13268. this.selectSWorks();
  13269. this.selectStudent();
  13270. })
  13271. .catch((err) => {
  13272. this.$message.error("提交失败");
  13273. console.error(err);
  13274. });
  13275. },
  13276. returnTableText() {
  13277. this.$confirm("确定还原此模板吗?", "提示", {
  13278. confirmButtonText: "确定",
  13279. cancelButtonText: "取消",
  13280. type: "warning",
  13281. })
  13282. .then(() => {
  13283. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13284. })
  13285. .catch(() => {});
  13286. },
  13287. addTableWorks() {
  13288. let params = [
  13289. {
  13290. uid: this.userid,
  13291. cid: this.id,
  13292. stage: this.courseType,
  13293. task: this.taskCount,
  13294. tool: this.toolindex,
  13295. content: JSON.stringify(this.tableJson),
  13296. type: 10,
  13297. },
  13298. ];
  13299. this.ajax
  13300. .post(this.$store.state.api + "addCourseWorks", params)
  13301. .then((res) => {
  13302. this.$message({
  13303. message: "提交成功",
  13304. type: "success",
  13305. });
  13306. this.dialogVisibleTable = false;
  13307. // this.selectAnswer = {};
  13308. this.selectSWorks();
  13309. this.selectStudent();
  13310. })
  13311. .catch((err) => {
  13312. this.$message.error("提交失败");
  13313. console.error(err);
  13314. });
  13315. },
  13316. tableRowClassName({ row, rowIndex }) {
  13317. if ((rowIndex + 1) % 2 === 0) {
  13318. return "even_row";
  13319. } else {
  13320. return "";
  13321. }
  13322. },
  13323. addTableWorksTeacher() {
  13324. let params = [
  13325. {
  13326. uid: this.sStudent.userid,
  13327. cid: this.id,
  13328. stage: this.courseType,
  13329. task: this.taskCount,
  13330. tool: this.toolindex,
  13331. content: JSON.stringify(this.tableJson),
  13332. type: 10,
  13333. },
  13334. ];
  13335. this.ajax
  13336. .post(this.$store.state.api + "addCourseWorks", params)
  13337. .then((res) => {
  13338. this.$message({
  13339. message: "提交成功",
  13340. type: "success",
  13341. });
  13342. this.dialogVisibleTableTeacher = false;
  13343. // this.selectAnswer = {};
  13344. this.selectSWorks();
  13345. this.selectStudent();
  13346. })
  13347. .catch((err) => {
  13348. this.$message.error("提交失败");
  13349. console.error(err);
  13350. });
  13351. },
  13352. returnWordText() {
  13353. this.$confirm("确定还原此模板吗?", "提示", {
  13354. confirmButtonText: "确定",
  13355. cancelButtonText: "取消",
  13356. type: "warning",
  13357. })
  13358. .then(() => {
  13359. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13360. })
  13361. .catch(() => {});
  13362. },
  13363. addWordWorks() {
  13364. let params = [
  13365. {
  13366. uid: this.userid,
  13367. cid: this.id,
  13368. stage: this.courseType,
  13369. task: this.taskCount,
  13370. tool: this.toolindex,
  13371. content: JSON.stringify(this.wordJson),
  13372. type: 13,
  13373. atool: 52,
  13374. },
  13375. ];
  13376. this.ajax
  13377. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13378. .then((res) => {
  13379. this.$message({
  13380. message: "提交成功",
  13381. type: "success",
  13382. });
  13383. this.dialogVisibleWord = false;
  13384. // this.selectAnswer = {};
  13385. this.selectSWorks();
  13386. this.selectStudent();
  13387. })
  13388. .catch((err) => {
  13389. this.$message.error("提交失败");
  13390. console.error(err);
  13391. });
  13392. },
  13393. addWordWorksTeacher() {
  13394. let params = [
  13395. {
  13396. uid: this.sStudent.userid,
  13397. cid: this.id,
  13398. stage: this.courseType,
  13399. task: this.taskCount,
  13400. tool: this.toolindex,
  13401. content: JSON.stringify(this.wordJson),
  13402. type: 13,
  13403. atool: 52,
  13404. },
  13405. ];
  13406. this.ajax
  13407. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13408. .then((res) => {
  13409. this.$message({
  13410. message: "提交成功",
  13411. type: "success",
  13412. });
  13413. this.dialogVisibleWordTeacher = false;
  13414. // this.selectAnswer = {};
  13415. this.selectSWorks();
  13416. this.selectStudent();
  13417. })
  13418. .catch((err) => {
  13419. this.$message.error("提交失败");
  13420. console.error(err);
  13421. });
  13422. },
  13423. addCourseWorks(i) {
  13424. var typesql;
  13425. if (this.fileType === 0) {
  13426. typesql = 1;
  13427. } else if (this.fileType === 1) {
  13428. typesql = 4;
  13429. } else if (this.fileType === 2) {
  13430. typesql = 5;
  13431. } else if (this.fileType === 3) {
  13432. typesql = 12;
  13433. }
  13434. if (!this.studyJuri[0].cover[0].url) {
  13435. this.$message.error("请上传文件");
  13436. return;
  13437. }
  13438. let params = [
  13439. {
  13440. uid: this.userid,
  13441. cid: this.id,
  13442. stage: this.courseType,
  13443. task: i,
  13444. tool: this.toolindex,
  13445. content: this.studyJuri[0].cover[0].url,
  13446. type: typesql,
  13447. },
  13448. ];
  13449. this.ajax
  13450. .post(this.$store.state.api + "addCourseWorksR", params)
  13451. .then((res) => {
  13452. this.$message({
  13453. message: "提交成功",
  13454. type: "success",
  13455. });
  13456. this.studyJuri[0].cover = [];
  13457. this.dialogVisible = false;
  13458. this.getCourseDetail(2);
  13459. })
  13460. .catch((err) => {
  13461. this.$message.error("提交失败");
  13462. console.error(err);
  13463. });
  13464. },
  13465. addCourseWorksPl(i) {
  13466. let _files = this.plworkFile;
  13467. var c = 1;
  13468. for (var k = 0; k < _files.length; k++) {
  13469. if (!_files[k].username) {
  13470. c = 2;
  13471. }
  13472. }
  13473. if (c == 2) {
  13474. this.$message.error("请填写学生姓名");
  13475. return;
  13476. }
  13477. let params = [
  13478. {
  13479. ateacher: this.userid,
  13480. cid: this.id,
  13481. stage: this.courseType,
  13482. task: i,
  13483. tool: this.toolindex,
  13484. content: JSON.stringify(_files),
  13485. },
  13486. ];
  13487. this.ajax
  13488. .post(this.$store.state.api + "addCourseWorksPl", params)
  13489. .then((res) => {
  13490. this.$message({
  13491. message: "提交成功",
  13492. type: "success",
  13493. });
  13494. this.plworkFile = [];
  13495. this.dialogVisiblePl = false;
  13496. this.getCourseDetail(2);
  13497. })
  13498. .catch((err) => {
  13499. this.$message.error("提交失败");
  13500. console.error(err);
  13501. });
  13502. },
  13503. addCourseWorks2(i) {
  13504. var typesql;
  13505. if (this.fileType === 0) {
  13506. typesql = 0;
  13507. } else if (this.fileType === 1) {
  13508. typesql = 1;
  13509. } else if (this.fileType === 2) {
  13510. typesql = 3;
  13511. } else if (this.fileType === 3) {
  13512. typesql = 12;
  13513. }
  13514. if (!this.studyJuri[0].cover[0].url) {
  13515. this.$message.error("请上传文件");
  13516. return;
  13517. }
  13518. let params = [
  13519. {
  13520. uid: this.userid,
  13521. cid: this.id,
  13522. stage: this.courseType,
  13523. task: i,
  13524. tool: this.toolindex,
  13525. content: JSON.stringify({
  13526. type: typesql,
  13527. groupIndex: this.groupIndex,
  13528. url: this.studyJuri[0].cover[0].url,
  13529. }),
  13530. type: 11,
  13531. atool: 49,
  13532. text: "",
  13533. },
  13534. ];
  13535. this.ajax
  13536. .post(this.$store.state.api + "addCourseWorks5", params)
  13537. .then((res) => {
  13538. this.$message({
  13539. message: "提交成功",
  13540. type: "success",
  13541. });
  13542. this.studyJuri[0].cover = [];
  13543. this.dialogVisibleGroupWork = false;
  13544. this.getCourseDetail(2);
  13545. })
  13546. .catch((err) => {
  13547. this.$message.error("提交失败");
  13548. console.error(err);
  13549. });
  13550. },
  13551. addEnglishWork() {
  13552. this.myAnList = this.$refs['engJson'].myAnswerList;
  13553. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13554. this.$message.error("请输入作文标题和正文!");
  13555. return;
  13556. }
  13557. let params = [
  13558. {
  13559. uid: this.userid,
  13560. cid: this.id,
  13561. stage: this.courseType,
  13562. task: this.taskCount,
  13563. tool: this.englishToolIndex,
  13564. content: JSON.stringify(this.myAnList),
  13565. type: 16,
  13566. atool: 69,
  13567. text: "",
  13568. },
  13569. ];
  13570. this.ajax
  13571. .post(this.$store.state.api + "addCourseWorks5", params)
  13572. .then((res) => {
  13573. this.$message({
  13574. message: "提交成功",
  13575. type: "success",
  13576. });
  13577. this.myAnList = {};
  13578. this.englishList = {};
  13579. this.englishToolIndex = 0;
  13580. this.engDialogVisible = false;
  13581. this.selectSWorks();
  13582. this.selectStudent();
  13583. })
  13584. .catch((err) => {
  13585. this.$message.error("提交失败");
  13586. console.error(err);
  13587. });
  13588. },
  13589. addCourseWorksGong(i, data, tool) {
  13590. let params = [
  13591. {
  13592. uid: this.userid,
  13593. cid: this.id,
  13594. stage: this.courseType,
  13595. task: this.taskCount,
  13596. tool: i,
  13597. content: data,
  13598. type: 12,
  13599. atool: tool,
  13600. text: "",
  13601. },
  13602. ];
  13603. this.ajax
  13604. .post(this.$store.state.api + "addCourseWorks5", params)
  13605. .then((res) => {
  13606. this.$message({
  13607. message: "提交成功",
  13608. type: "success",
  13609. });
  13610. this.studyJuri[0].cover = [];
  13611. this.selectSWorks();
  13612. this.selectStudent();
  13613. })
  13614. .catch((err) => {
  13615. this.$message.error("提交失败");
  13616. console.error(err);
  13617. });
  13618. },
  13619. addCourseWorksGongTeacher(i, data, tool) {
  13620. let params = [
  13621. {
  13622. uid: this.sStudent.userid,
  13623. cid: this.id,
  13624. stage: this.courseType,
  13625. task: this.taskCount,
  13626. tool: i,
  13627. content: data,
  13628. type: 12,
  13629. atool: tool,
  13630. text: "",
  13631. },
  13632. ];
  13633. this.ajax
  13634. .post(this.$store.state.api + "addCourseWorks5", params)
  13635. .then((res) => {
  13636. this.$message({
  13637. message: "提交成功",
  13638. type: "success",
  13639. });
  13640. this.studyJuri[0].cover = [];
  13641. this.dialogVisibleWorks = false;
  13642. this.selectSWorks();
  13643. this.selectStudent();
  13644. })
  13645. .catch((err) => {
  13646. this.$message.error("提交失败");
  13647. console.error(err);
  13648. });
  13649. },
  13650. addCourseWorksGongPl(i, data, tool, type) {
  13651. let params = [
  13652. {
  13653. uid: this.sStudent.userid,
  13654. cid: this.id,
  13655. stage: this.courseType,
  13656. task: this.taskCount,
  13657. tool: i,
  13658. content: data,
  13659. type: type,
  13660. atool: tool,
  13661. text: "",
  13662. },
  13663. ];
  13664. this.ajax
  13665. .post(this.$store.state.api + "addCourseWorks5", params)
  13666. .then((res) => {
  13667. this.$message({
  13668. message: "提交成功",
  13669. type: "success",
  13670. });
  13671. this.studyJuri[0].cover = [];
  13672. this.dialogVisibleWorks = false;
  13673. this.selectSWorks();
  13674. this.selectStudent();
  13675. })
  13676. .catch((err) => {
  13677. this.$message.error("提交失败");
  13678. console.error(err);
  13679. });
  13680. },
  13681. addCourseWorksTeacher(i) {
  13682. var typesql;
  13683. if (this.sTool == 32) {
  13684. this.addCourseWorksGongTeacher(
  13685. this.toolindex,
  13686. this.studyJuri[0].cover[0].url,
  13687. this.sTool
  13688. );
  13689. return;
  13690. }
  13691. if (this.fileType === 0) {
  13692. typesql = 1;
  13693. } else if (this.fileType === 1) {
  13694. typesql = 4;
  13695. } else if (this.fileType === 2) {
  13696. typesql = 5;
  13697. } else if (this.fileType === 3) {
  13698. typesql = 12;
  13699. }
  13700. if (this.sTool == 50) {
  13701. this.addCourseWorksGongPl(
  13702. this.toolindex,
  13703. this.studyJuri[0].cover[0].url,
  13704. this.sTool,
  13705. typesql
  13706. );
  13707. return;
  13708. }
  13709. if (!this.studyJuri[0].cover[0].url) {
  13710. this.$message.error("请上传文件");
  13711. return;
  13712. }
  13713. let params = [
  13714. {
  13715. uid: this.sStudent.userid,
  13716. cid: this.id,
  13717. stage: this.courseType,
  13718. task: i,
  13719. tool: this.toolindex,
  13720. content: this.studyJuri[0].cover[0].url,
  13721. type: typesql,
  13722. ateacher: this.userid,
  13723. },
  13724. ];
  13725. this.ajax
  13726. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13727. .then((res) => {
  13728. this.$message({
  13729. message: "提交成功",
  13730. type: "success",
  13731. });
  13732. this.studyJuri[0].cover = [];
  13733. this.dialogVisibleWorks = false;
  13734. this.getCourseDetail(2);
  13735. })
  13736. .catch((err) => {
  13737. this.$message.error("提交失败");
  13738. console.error(err);
  13739. });
  13740. },
  13741. selectUploadStudent(type) {
  13742. const loading = this.$loading.service({
  13743. background: "rgba(255, 255, 255, 0.7)",
  13744. target: document.body,
  13745. });
  13746. let params = {
  13747. cid: this.uploadCid,
  13748. oid: this.oid,
  13749. cn: "",
  13750. };
  13751. this.ajax
  13752. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13753. .then((res) => {
  13754. loading.close();
  13755. var studentK = [];
  13756. if (this.isWorksS[this.toolindex].length > 0) {
  13757. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13758. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13759. }
  13760. studentK = studentK.join(",");
  13761. }
  13762. this.uploadStudentJuri = res.data[0].filter((el) => {
  13763. return studentK.indexOf(el.userid) == -1;
  13764. });
  13765. if (this.worksSName && this.worksSid) {
  13766. this.uploadStudentJuri.push({
  13767. userid: this.worksSid,
  13768. name: this.worksSName,
  13769. });
  13770. }
  13771. if (type == 1) {
  13772. this.plworkFile = [];
  13773. this.dialogVisibleSname = true;
  13774. } else if (type == 2) {
  13775. this.dialogVisiblePl = true;
  13776. }
  13777. })
  13778. .catch((err) => {
  13779. loading.close();
  13780. console.error(err);
  13781. });
  13782. },
  13783. selectPickStudent() {
  13784. const loading = this.$loading.service({
  13785. background: "rgba(255, 255, 255, 0.7)",
  13786. target: document.body,
  13787. });
  13788. let params = {
  13789. cid: this.uploadCid,
  13790. oid: this.oid,
  13791. cn: "",
  13792. };
  13793. this.ajax
  13794. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13795. .then((res) => {
  13796. loading.close();
  13797. this.uploadStudentJuri = res.data[0];
  13798. this.dialogVisiblePickPeople = true;
  13799. })
  13800. .catch((err) => {
  13801. loading.close();
  13802. console.error(err);
  13803. });
  13804. },
  13805. arrayToArray(arrayo, arrayt) {
  13806. let array1 = arrayo;
  13807. let array2 = arrayt;
  13808. let commonElements = [];
  13809. for (let i = 0; i < array1.length; i++) {
  13810. for (let j = 0; j < array2.length; j++) {
  13811. if (array1[i] === array2[j]) {
  13812. commonElements.push(array1[i]);
  13813. }
  13814. }
  13815. }
  13816. return commonElements;
  13817. },
  13818. selectWorksStudent() {
  13819. let params = {
  13820. oid: this.oid,
  13821. cid: this.courseDetail.juri,
  13822. };
  13823. this.ajax
  13824. .get(this.$store.state.api + "selectWorksStudent", params)
  13825. .then((res) => {
  13826. var a = res.data[0];
  13827. for (var i = 0; i < this.isWorksS.length; i++) {
  13828. this.noWorksS[i] = [];
  13829. var studentK = [];
  13830. if (this.isWorksS[i].length > 0) {
  13831. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13832. studentK.push(this.isWorksS[i][z].uid);
  13833. }
  13834. studentK = studentK.join(",");
  13835. for (var j = 0; j < a.length; j++) {
  13836. if (studentK.indexOf(a[j].userid) == -1) {
  13837. if (this.tcid) {
  13838. // a[j].classid.indexOf(this.tcid) != -1
  13839. if (
  13840. this.arrayToArray(
  13841. a[j].classid.split(","),
  13842. this.tcid.split(",")
  13843. ).length
  13844. ) {
  13845. this.noWorksS[i].push({
  13846. student: a[j].name,
  13847. userid: a[j].userid,
  13848. });
  13849. }
  13850. } else {
  13851. this.noWorksS[i].push({
  13852. student: a[j].name,
  13853. userid: a[j].userid,
  13854. });
  13855. }
  13856. }
  13857. }
  13858. } else {
  13859. for (var k = 0; k < a.length; k++) {
  13860. if (this.tcid) {
  13861. if (
  13862. this.arrayToArray(
  13863. a[k].classid.split(","),
  13864. this.tcid.split(",")
  13865. ).length
  13866. ) {
  13867. this.noWorksS[i].push({
  13868. student: a[k].name,
  13869. userid: a[k].userid,
  13870. });
  13871. }
  13872. } else {
  13873. this.noWorksS[i].push({
  13874. student: a[k].name,
  13875. userid: a[k].userid,
  13876. });
  13877. }
  13878. }
  13879. }
  13880. }
  13881. this.$forceUpdate();
  13882. if (
  13883. Object.keys(this.commentDetail).length &&
  13884. Object.keys(this.commentIndexJson).length &&
  13885. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13886. ) {
  13887. let a = 1;
  13888. let c = this.commentIndexJson;
  13889. if (
  13890. this.commentIndexJson.gindex ||
  13891. this.commentIndexJson.gindex === 0
  13892. ) {
  13893. for (
  13894. var i = 0;
  13895. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13896. i++
  13897. ) {
  13898. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13899. groupA: for (var k = 0; k < _el.length; k++) {
  13900. let el = _el[k];
  13901. if (el.wid == this.commentDetail.wid) {
  13902. a = 2;
  13903. this.commentOther(
  13904. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13905. this.commentIndexJson.toolIndex,
  13906. k,
  13907. this.commentIndexJson.gindex
  13908. );
  13909. break groupA;
  13910. }
  13911. }
  13912. }
  13913. if (a === 1) {
  13914. this.commentDetail = [];
  13915. this.commentIndexJson = {};
  13916. this.commentDialogVisible = false;
  13917. this.$message("此作业已被删除");
  13918. }
  13919. } else {
  13920. if (this.isGroup && this.commentIndexJson.gid) {
  13921. groupA: for (
  13922. var i = 0;
  13923. i < this.courseGroup.group.length;
  13924. i++
  13925. ) {
  13926. let _group = this.courseGroup.group[i];
  13927. if (_group.id == this.commentIndexJson.gid) {
  13928. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13929. for (var k = 0; k < _el2.length; k++) {
  13930. let el2 = _el2[k];
  13931. if (el2.wid == this.commentDetail.wid) {
  13932. a = 2;
  13933. this.commentOther(
  13934. _el2[k],
  13935. this.commentIndexJson.toolIndex,
  13936. k,
  13937. null,
  13938. this.commentIndexJson.gid
  13939. );
  13940. break groupA;
  13941. }
  13942. }
  13943. }
  13944. }
  13945. }
  13946. if (a == 1) {
  13947. for (
  13948. var i = 0;
  13949. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13950. i++
  13951. ) {
  13952. let el =
  13953. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13954. if (el.wid == this.commentDetail.wid) {
  13955. a = 2;
  13956. this.commentOther(
  13957. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13958. this.commentIndexJson.toolIndex,
  13959. i
  13960. );
  13961. break;
  13962. }
  13963. }
  13964. }
  13965. if (a === 1) {
  13966. this.commentDetail = [];
  13967. this.commentIndexJson = {};
  13968. this.commentDialogVisible = false;
  13969. this.$message("此作业已被删除");
  13970. }
  13971. }
  13972. }
  13973. })
  13974. .catch((err) => {
  13975. console.error(err);
  13976. });
  13977. },
  13978. selectStudent() {
  13979. //学生查看自己作业
  13980. let params = {
  13981. uid: this.userid,
  13982. cid: this.id,
  13983. s: this.courseType,
  13984. t: this.taskCount,
  13985. };
  13986. this.ajax
  13987. .get(this.$store.state.api + "selectStudentWorks", params)
  13988. .then((res) => {
  13989. var a =
  13990. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13991. this.taskCount
  13992. ].toolChoose;
  13993. var b = res.data[0];
  13994. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13995. var y = [
  13996. "AVI",
  13997. "NAVI",
  13998. "MPEG",
  13999. "ASF",
  14000. "MOV",
  14001. "WMV",
  14002. "3GP",
  14003. "RM",
  14004. "RMVB",
  14005. "FLV",
  14006. "F4V",
  14007. "H.264",
  14008. "H.265",
  14009. "REAL VIDEO",
  14010. "MKV",
  14011. "WebM",
  14012. "HDDVD",
  14013. "MP4",
  14014. "MPG",
  14015. "M4V",
  14016. "MGV",
  14017. "OGV",
  14018. "QTM",
  14019. "STR",
  14020. "AMC",
  14021. "DVX",
  14022. "EVO",
  14023. "DAT",
  14024. "OGG",
  14025. "OGM",
  14026. ];
  14027. for (var i = 0; i < a.length; i++) {
  14028. this.workStudent[i] = [];
  14029. for (var j = 0; j < b.length; j++) {
  14030. if (i == b[j].tool) {
  14031. if (
  14032. (b[j].type == 1 ||
  14033. b[j].type == 4 ||
  14034. b[j].type == 5 ||
  14035. b[j].type == 6 ||
  14036. b[j].type == 12 ||
  14037. b[j].type == 7) &&
  14038. a[i].tool[0] != 15 &&
  14039. a[i].tool[0] != 4 &&
  14040. a[i].tool[0] != 45 &&
  14041. a[i].tool[0] != 50 &&
  14042. a[i].tool[0] != 32 &&
  14043. a[i].tool[0] != 57 &&
  14044. a[i].tool[0] != 52 &&
  14045. a[i].tool[0] != 69
  14046. ) {
  14047. if (
  14048. c.indexOf(
  14049. b[j].content
  14050. .split(".")
  14051. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14052. ) != -1 &&
  14053. a[i].tool[0] == 16 &&
  14054. b[j].atool != 50
  14055. ) {
  14056. this.workStudent[i].push({
  14057. works: b[j].content,
  14058. sName: b[j].name,
  14059. score: b[j].score,
  14060. img: b[j].img,
  14061. type: 1,
  14062. time: b[j].time,
  14063. userid: b[j].userid,
  14064. wid: b[j].id,
  14065. });
  14066. } else if (
  14067. y.indexOf(
  14068. b[j].content
  14069. .split(".")
  14070. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14071. ) != -1 &&
  14072. a[i].tool[0] == 16 &&
  14073. b[j].atool != 50
  14074. ) {
  14075. this.workStudent[i].push({
  14076. userid: b[j].userid,
  14077. wid: b[j].id,
  14078. works: b[j].content,
  14079. sName: b[j].name,
  14080. score: b[j].score,
  14081. img: b[j].img,
  14082. type: 3,
  14083. time: b[j].time,
  14084. });
  14085. } else if (b[j].type == 6 && b[j].atool != 50) {
  14086. this.workStudent[i].push({
  14087. userid: b[j].userid,
  14088. wid: b[j].id,
  14089. works: b[j].content,
  14090. sName: b[j].name,
  14091. score: b[j].score,
  14092. img: b[j].img,
  14093. type: 4,
  14094. time: b[j].time,
  14095. });
  14096. } else if (b[j].type == 7 && b[j].atool != 50) {
  14097. this.workStudent[i].push({
  14098. userid: b[j].userid,
  14099. wid: b[j].id,
  14100. works: b[j].content,
  14101. sName: b[j].name,
  14102. score: b[j].score,
  14103. img: b[j].img,
  14104. type: 5,
  14105. time: b[j].time,
  14106. });
  14107. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14108. this.workStudent[i].push({
  14109. works: b[j].content,
  14110. sName: b[j].name,
  14111. score: b[j].score,
  14112. img: b[j].img,
  14113. type: 12,
  14114. time: b[j].time,
  14115. userid: b[j].userid,
  14116. wid: b[j].id,
  14117. });
  14118. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14119. this.workStudent[i].push({
  14120. works: b[j].content,
  14121. sName: b[j].name,
  14122. score: b[j].score,
  14123. img: b[j].img,
  14124. type: 0,
  14125. time: b[j].time,
  14126. userid: b[j].userid,
  14127. wid: b[j].id,
  14128. });
  14129. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14130. this.workStudent[i].push({
  14131. works: b[j].content,
  14132. sName: b[j].name,
  14133. score: b[j].score,
  14134. img: b[j].img,
  14135. type: 0,
  14136. time: b[j].time,
  14137. userid: b[j].userid,
  14138. wid: b[j].id,
  14139. });
  14140. }
  14141. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14142. this.workStudent[i].push({
  14143. works: b[j].content,
  14144. sName: b[j].name,
  14145. score: b[j].score,
  14146. img: b[j].img,
  14147. type: 2,
  14148. time: b[j].time,
  14149. userid: b[j].userid,
  14150. wid: b[j].id,
  14151. });
  14152. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14153. //问卷
  14154. this.workStudent[i].push({
  14155. works: b[j].content,
  14156. sName: b[j].name,
  14157. score: b[j].score,
  14158. img: b[j].img,
  14159. type: 2,
  14160. time: b[j].time,
  14161. userid: b[j].userid,
  14162. wid: b[j].id,
  14163. });
  14164. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14165. //选择题
  14166. this.workStudent[i].push({
  14167. works: b[j].content,
  14168. sName: b[j].name,
  14169. score: b[j].score,
  14170. img: b[j].img,
  14171. type: 8,
  14172. time: b[j].time,
  14173. userid: b[j].userid,
  14174. wid: b[j].id,
  14175. });
  14176. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14177. //选择题
  14178. this.workStudent[i].push({
  14179. works: b[j].content,
  14180. sName: b[j].name,
  14181. score: b[j].score,
  14182. img: b[j].img,
  14183. type: 9,
  14184. time: b[j].time,
  14185. userid: b[j].userid,
  14186. wid: b[j].id,
  14187. });
  14188. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14189. //选择题
  14190. this.workStudent[i].push({
  14191. works: b[j].content,
  14192. sName: b[j].name,
  14193. score: b[j].score,
  14194. img: b[j].img,
  14195. type: 10,
  14196. time: b[j].time,
  14197. userid: b[j].userid,
  14198. wid: b[j].id,
  14199. });
  14200. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14201. //选择题
  14202. this.workStudent[i].push({
  14203. works: b[j].content,
  14204. sName: b[j].name,
  14205. score: b[j].score,
  14206. img: b[j].img,
  14207. type: 13,
  14208. time: b[j].time,
  14209. userid: b[j].userid,
  14210. wid: b[j].id,
  14211. });
  14212. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14213. //选择题
  14214. this.workStudent[i].push({
  14215. works: b[j].content,
  14216. sName: b[j].name,
  14217. score: b[j].score,
  14218. img: b[j].img,
  14219. type: 12,
  14220. time: b[j].time,
  14221. userid: b[j].userid,
  14222. wid: b[j].id,
  14223. });
  14224. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14225. //选择题
  14226. this.workStudent[i].push({
  14227. works: b[j].content,
  14228. sName: b[j].name,
  14229. score: b[j].score,
  14230. img: b[j].img,
  14231. type: 12,
  14232. time: b[j].time,
  14233. userid: b[j].userid,
  14234. wid: b[j].id,
  14235. });
  14236. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14237. //选择题
  14238. this.workStudent[i].push({
  14239. works: b[j].content,
  14240. sName: b[j].name,
  14241. score: b[j].score,
  14242. img: b[j].img,
  14243. type: 15,
  14244. time: b[j].time,
  14245. userid: b[j].userid,
  14246. wid: b[j].id,
  14247. });
  14248. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14249. //英语写作
  14250. this.workStudent[i].push({
  14251. works: b[j].content,
  14252. sName: b[j].name,
  14253. score: b[j].score,
  14254. img: b[j].img,
  14255. type: 16,
  14256. time: b[j].time,
  14257. userid: b[j].userid,
  14258. wid: b[j].id,
  14259. aiCode: b[j].aiCode,
  14260. teacherCode: b[j].teacherCode
  14261. });
  14262. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14263. //英语写作
  14264. this.workStudent[i].push({
  14265. works: b[j].content,
  14266. sName: b[j].name,
  14267. score: b[j].score,
  14268. img: b[j].img,
  14269. type: 17,
  14270. time: b[j].time,
  14271. userid: b[j].userid,
  14272. wid: b[j].id,
  14273. });
  14274. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14275. //英语口语
  14276. this.workStudent[i].push({
  14277. works: b[j].content,
  14278. sName: b[j].name,
  14279. score: b[j].score,
  14280. img: b[j].img,
  14281. type: 14,
  14282. time: b[j].time,
  14283. userid: b[j].userid,
  14284. wid: b[j].id,
  14285. });
  14286. }
  14287. }
  14288. }
  14289. }
  14290. })
  14291. .catch((err) => {
  14292. console.error(err);
  14293. });
  14294. },
  14295. openVideo(w) {
  14296. this.videoDetail = {};
  14297. this.playerOptions1.sources[0].src = w.works;
  14298. this.videoDetail = this.playerOptions1;
  14299. this.videoVisible = true;
  14300. },
  14301. isLikes(wid, uid, t, c, isLikes,sName) {
  14302. if (isLikes == false) {
  14303. let params = [
  14304. {
  14305. wid: wid,
  14306. lid: uid,
  14307. t: t,
  14308. c: c,
  14309. },
  14310. ];
  14311. this.ajax
  14312. .post(this.$store.state.api + "insertComment", params)
  14313. .then((res) => {
  14314. this.$message({
  14315. message: "点赞成功",
  14316. type: "success",
  14317. });
  14318. this.selectSWorks();
  14319. this.selectStudent();
  14320. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14321. })
  14322. .catch((err) => {
  14323. this.$message.error("点赞失败");
  14324. console.error(err);
  14325. });
  14326. } else {
  14327. let params = {
  14328. wid: wid,
  14329. lid: uid,
  14330. type: t,
  14331. };
  14332. this.ajax
  14333. .get(this.$store.state.api + "deleteComment", params)
  14334. .then((res) => {
  14335. this.$message({
  14336. message: "取消点赞成功",
  14337. type: "success",
  14338. });
  14339. this.selectSWorks();
  14340. this.selectStudent();
  14341. })
  14342. .catch((err) => {
  14343. console.error(err);
  14344. });
  14345. }
  14346. },
  14347. deleteComment(wid) {
  14348. this.$confirm("确定删除此评论吗?", "提示", {
  14349. confirmButtonText: "确定",
  14350. cancelButtonText: "取消",
  14351. type: "warning",
  14352. })
  14353. .then(() => {
  14354. let params = {
  14355. id: wid,
  14356. };
  14357. this.ajax
  14358. .get(this.$store.state.api + "deleteComment2", params)
  14359. .then((res) => {
  14360. this.$message({
  14361. message: "删除评论成功",
  14362. type: "success",
  14363. });
  14364. this.selectSWorks();
  14365. this.selectStudent();
  14366. })
  14367. .catch((err) => {
  14368. console.error(err);
  14369. });
  14370. })
  14371. .catch(() => {});
  14372. },
  14373. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14374. this.commentIndexJson = {
  14375. toolIndex: toolIndex,
  14376. wIndex: wIndex,
  14377. gindex: gindex,
  14378. gid: gid,
  14379. };
  14380. this.commentDetail = [];
  14381. this.commentDialogVisible = true;
  14382. this.commentDetail = w;
  14383. if (w.works && w.type == 1) {
  14384. // this.pptImgUrl = "";
  14385. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14386. if (
  14387. a.indexOf(
  14388. w.works
  14389. .split(".")
  14390. [w.works.split(".").length - 1].toLocaleUpperCase()
  14391. ) != -1
  14392. ) {
  14393. let _uuurl = await this.checkLink(w.works);
  14394. this.pptImgUrl =
  14395. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14396. this.showPDF = false;
  14397. } else if (
  14398. w.works
  14399. .split(".")
  14400. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14401. ) {
  14402. this.pptImgUrl = w.works;
  14403. this.showPDF = true;
  14404. }
  14405. } else if (w.works && w.type == 3) {
  14406. this.videoDetail = {};
  14407. this.playerOptions1.sources[0].src = w.works;
  14408. this.videoDetail = this.playerOptions1;
  14409. // this.videoVisible = true;
  14410. } else if (w.works && w.type == 4) {
  14411. this.eScore = JSON.parse(w.works);
  14412. this.rateJson =
  14413. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14414. this.taskCount
  14415. ].toolChoose[toolIndex].rateJson;
  14416. } else if (w.works && w.type == 10) {
  14417. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14418. } else if (w.works && w.type == 13) {
  14419. this.wordJson =
  14420. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14421. this.taskCount
  14422. ].toolChoose[toolIndex].wordJson;
  14423. }
  14424. },
  14425. async openScore(w, index) {
  14426. this.wScore = 0;
  14427. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14428. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14429. this.commentDetail = [];
  14430. if(w.type == 17){
  14431. this.dialogVisibleENScore = true;
  14432. }else{
  14433. this.dialogVisibleScore = true;
  14434. }
  14435. this.commentDetail = w;
  14436. if (w.works && w.type == 1) {
  14437. this.pptImgUrl = "";
  14438. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14439. if (
  14440. a.indexOf(
  14441. w.works
  14442. .split(".")
  14443. [w.works.split(".").length - 1].toLocaleUpperCase()
  14444. ) != -1
  14445. ) {
  14446. let _uuurl = await this.checkLink(w.works);
  14447. this.pptImgUrl =
  14448. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14449. this.showPDF = false;
  14450. } else if (
  14451. w.works
  14452. .split(".")
  14453. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14454. ) {
  14455. this.pptImgUrl = w.works;
  14456. this.showPDF = true;
  14457. }
  14458. } else if (w.works && w.type == 3) {
  14459. this.videoDetail = {};
  14460. this.playerOptions1.sources[0].src = w.works;
  14461. this.videoDetail = this.playerOptions1;
  14462. }else if(w.type == 17){
  14463. let englishVoiceJson = {}
  14464. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14465. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14466. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14467. .toolChoose[index].englishVoiceJson
  14468. : {};
  14469. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14470. }
  14471. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14472. },
  14473. addComment(wid, uid, t,detail) {
  14474. if (this.commentText == "") {
  14475. this.$message.error("请输入评论");
  14476. return;
  14477. }
  14478. let params2 = [
  14479. {
  14480. wid: wid,
  14481. lid: uid,
  14482. t: t,
  14483. },
  14484. ];
  14485. this.ajax
  14486. .post(this.$store.state.api + "getComment", params2)
  14487. .then((res) => {
  14488. if (res.data[0].length > 0) {
  14489. this.$message.error("一个作业只能评论一条");
  14490. } else {
  14491. let params = [
  14492. {
  14493. wid: wid,
  14494. lid: uid,
  14495. t: t,
  14496. c: this.commentText,
  14497. },
  14498. ];
  14499. this.ajax
  14500. .post(this.$store.state.api + "insertComment", params)
  14501. .then((res) => {
  14502. this.$message({
  14503. message: "评论成功",
  14504. type: "success",
  14505. });
  14506. this.commentText = "";
  14507. this.selectSWorks();
  14508. this.selectStudent();
  14509. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14510. })
  14511. .catch((err) => {
  14512. this.$message.error("评论失败");
  14513. console.error(err);
  14514. });
  14515. }
  14516. })
  14517. .catch((err) => {
  14518. // this.$message.error("评论失败");
  14519. console.error(err);
  14520. });
  14521. },
  14522. scoreWork(wid,sName) {
  14523. if (this.wScore == 0) {
  14524. this.$message.error("请评分");
  14525. return;
  14526. }
  14527. let params = [
  14528. {
  14529. wid: wid,
  14530. score: JSON.stringify({
  14531. wScore: this.wScore,
  14532. detail: this.scoreDetail,
  14533. }),
  14534. },
  14535. ];
  14536. this.ajax
  14537. .post(this.$store.state.api + "scoreWork", params)
  14538. .then((res) => {
  14539. this.$message({
  14540. message: "评分成功",
  14541. type: "success",
  14542. });
  14543. this.wScore = 0;
  14544. this.scoreDetail = "";
  14545. this.dialogVisibleScore = false;
  14546. this.selectSWorks();
  14547. this.selectStudent();
  14548. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14549. })
  14550. .catch((err) => {
  14551. this.$message.error("评分失败");
  14552. console.error(err);
  14553. });
  14554. },
  14555. openXz(w, i) {
  14556. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14557. .taskJson[this.taskCount].toolChoose[i].selectJson
  14558. ? JSON.parse(
  14559. JSON.stringify(
  14560. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14561. this.taskCount
  14562. ].toolChoose[i].selectJson
  14563. )
  14564. )
  14565. : { url: "", select: [], answer: [] };
  14566. var a = w.works.split(",");
  14567. for (var k = 0; k < a.length; k++) {
  14568. a[k] = parseInt(a[k]);
  14569. }
  14570. this.selectAnswer = { answer: a, stu: w.sName };
  14571. this.isSelect = true;
  14572. this.dialogVisibleSelect = true;
  14573. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14574. },
  14575. openSen(w, i) {
  14576. this.sentenceList1 = JSON.parse(w.works);
  14577. this.sentenceList1.stuName = w.sName;
  14578. this.dialogVisibleSentence1 = true;
  14579. },
  14580. openPj(w, toolindex) {
  14581. this.isStar = true;
  14582. this.eScore = JSON.parse(w);
  14583. this.rateJson =
  14584. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14585. this.taskCount
  14586. ].toolChoose[toolindex].rateJson;
  14587. this.studentEvalDialogVisible = true;
  14588. },
  14589. openEnglishEva(id,i){
  14590. let params = {
  14591. wid: id
  14592. };
  14593. this.ajax
  14594. .get(this.$store.state.api + "selectEngWork", params)
  14595. .then((res) => {
  14596. this.evaEngJson.message = res.data[0][0];
  14597. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14598. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14599. .toolChoose[i].englishList;
  14600. this.engEvaDialogVisible = true;
  14601. })
  14602. .catch((err) => {
  14603. console.error(err);
  14604. });
  14605. },
  14606. deleteWorks(id) {
  14607. this.$confirm("确定删除此作业吗?", "提示", {
  14608. confirmButtonText: "确定",
  14609. cancelButtonText: "取消",
  14610. type: "warning",
  14611. })
  14612. .then(() => {
  14613. let params = [
  14614. {
  14615. id: id
  14616. },
  14617. ];
  14618. this.ajax
  14619. .post(this.$store.state.api + "deleteCourseWork", params)
  14620. .then((res) => {
  14621. this.$message({
  14622. message: "删除成功",
  14623. type: "success",
  14624. });
  14625. this.selectStudent();
  14626. this.selectSWorks();
  14627. this.selectSLook();
  14628. })
  14629. .catch((err) => {
  14630. this.$message.error("网络异常");
  14631. console.error(err);
  14632. });
  14633. })
  14634. .catch(() => {});
  14635. },
  14636. deleteWorksTwo(id,toolIndex,wIndex) {
  14637. console.log(id)
  14638. let mk = `markSco${toolIndex}${wIndex}`
  14639. console.log(this.$refs[mk][0].homeworkVal)
  14640. let wid = this.$refs[mk][0].homeworkVal.id
  14641. this.$confirm("确定删除此作业吗?", "提示", {
  14642. confirmButtonText: "确定",
  14643. cancelButtonText: "取消",
  14644. type: "warning",
  14645. })
  14646. .then(() => {
  14647. let params = [
  14648. {
  14649. id: id,
  14650. wid: wid ? wid : 1
  14651. },
  14652. ];
  14653. // return console.log(params)
  14654. this.ajax
  14655. .post(this.$store.state.api + "deleteCourseWorkTwo", params)
  14656. .then((res) => {
  14657. this.$message({
  14658. message: "删除成功",
  14659. type: "success",
  14660. });
  14661. this.selectStudent();
  14662. this.selectSWorks();
  14663. this.selectSLook();
  14664. })
  14665. .catch((err) => {
  14666. this.$message.error("网络异常");
  14667. console.error(err);
  14668. });
  14669. })
  14670. .catch(() => {});
  14671. },
  14672. selectSWorks(gindex) {
  14673. //教师查看全部作业
  14674. let params = {
  14675. cid: this.id,
  14676. s: this.courseType,
  14677. t: this.taskCount,
  14678. };
  14679. this.ajax
  14680. .get(this.$store.state.api + "selectSWorks", params)
  14681. .then((res) => {
  14682. var a =
  14683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14684. this.taskCount
  14685. ].toolChoose;
  14686. var b = res.data[0];
  14687. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14688. var y = [
  14689. "AVI",
  14690. "NAVI",
  14691. "MPEG",
  14692. "ASF",
  14693. "MOV",
  14694. "WMV",
  14695. "3GP",
  14696. "RM",
  14697. "RMVB",
  14698. "FLV",
  14699. "F4V",
  14700. "H.264",
  14701. "H.265",
  14702. "REAL VIDEO",
  14703. "MKV",
  14704. "WebM",
  14705. "HDDVD",
  14706. "MP4",
  14707. "MPG",
  14708. "M4V",
  14709. "MGV",
  14710. "OGV",
  14711. "QTM",
  14712. "STR",
  14713. "AMC",
  14714. "DVX",
  14715. "EVO",
  14716. "DAT",
  14717. "OGG",
  14718. "OGM",
  14719. ];
  14720. var d = res.data[1];
  14721. var e = res.data[2];
  14722. var f = res.data[3];
  14723. let _worksStudent = [];
  14724. var _worksStudent2 = [];
  14725. for (var i = 0; i < a.length; i++) {
  14726. _worksStudent[i] = [];
  14727. _worksStudent2[i] = [];
  14728. if (
  14729. !this.isCloseList[i] ||
  14730. this.isCloseList[i].isClose == undefined
  14731. ) {
  14732. this.isCloseList[i] = { isClose: 0 };
  14733. }
  14734. this.groupStudent[i] = [];
  14735. this.groupStudentUid[i] = [];
  14736. if (this.isGroup) {
  14737. for (
  14738. var groupI = 0;
  14739. groupI < this.courseGroup.group.length;
  14740. groupI++
  14741. ) {
  14742. this.courseGroup.group[groupI].works[i] = [];
  14743. }
  14744. }
  14745. this.isWorksS[i] = [];
  14746. this.checkJson[i] = [];
  14747. if (a[i].tool[0] == 49) {
  14748. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14749. this.groupStudent[i][gA] = [];
  14750. this.groupStudentUid[i][gA] = [];
  14751. _worksStudent[i][gA] = [];
  14752. _worksStudent2[i][gA] = [];
  14753. this.isCloseList[i][gA] = [];
  14754. for (var g = 0; g < f.length; g++) {
  14755. if (
  14756. f[g].ttype == 2 &&
  14757. this.tcid &&
  14758. this.arrayToArray(
  14759. (f[g].classid ? f[g].classid.split(",") : []),
  14760. this.tcid.split(",")
  14761. ).length == 0
  14762. ) {
  14763. continue;
  14764. }
  14765. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14766. (f[g].classid ? f[g].classid.split(",") : []),
  14767. this.tcid.split(",")
  14768. ).length !== 0 || this.arrayToArray(
  14769. (f[g].classid ? f[g].classid.split(",") : []),
  14770. this.classId ? this.classId.split(",") : []
  14771. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14772. this.groupStudent[i][gA].push(f[g]);
  14773. this.groupStudentUid[i][gA].push(f[g].userid);
  14774. }
  14775. }
  14776. }
  14777. this.$forceUpdate();
  14778. }
  14779. for (var j = 0; j < b.length; j++) {
  14780. if (
  14781. b[j].ttype == 2 &&
  14782. this.tcid &&
  14783. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14784. .length == 0
  14785. ) {
  14786. continue;
  14787. }
  14788. var likesCount = 0;
  14789. var commentCount = 0;
  14790. var isLikes = false;
  14791. var commentJson = [];
  14792. var likeJson = [];
  14793. var data = b[j];
  14794. if (i == b[j].tool) {
  14795. if (data.type == 2 && a[i].tool[0] == 4) {
  14796. // if(JSON.parse(data.content)[0].anwer){
  14797. var checkL =
  14798. JSON.parse(data.content)[0].anwer instanceof Array
  14799. ? JSON.parse(data.content)[0].anwer
  14800. : JSON.parse(data.content)[0].anwer.split(",");
  14801. for (var z = 0; z < checkL.length; z++) {
  14802. if (!this.checkJson[i][z]) {
  14803. this.checkJson[i].push({
  14804. checkCount: [],
  14805. checkPerson: [],
  14806. rightPerson: [],
  14807. });
  14808. }
  14809. if (!this.checkJson[i][z].checkCount.length) {
  14810. this.checkJson[i][z].checkCount = [];
  14811. let _askItemCount = JSON.parse(data.content)[0].askJson
  14812. .askJson[z].askItem;
  14813. for (var aic = 0; aic < _askItemCount; aic++) {
  14814. this.checkJson[i][z].checkCount.push(0);
  14815. }
  14816. }
  14817. if (checkL[z] instanceof Array) {
  14818. if (
  14819. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14820. checkL[z].sort().join(",")
  14821. ) {
  14822. this.checkJson[i][z].rightPerson.push(data.name);
  14823. }
  14824. for (var q = 0; q < checkL[z].length; q++) {
  14825. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14826. ? this.checkJson[i][z].checkPerson[
  14827. parseInt(checkL[z][q])
  14828. ].push(data.name)
  14829. : (this.checkJson[i][z].checkPerson[
  14830. parseInt(checkL[z][q])
  14831. ] = [data.name]);
  14832. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14833. ? this.checkJson[i][z].checkCount[
  14834. parseInt(checkL[z][q])
  14835. ]++
  14836. : (this.checkJson[i][z].checkCount[
  14837. parseInt(checkL[z][q])
  14838. ] = 1);
  14839. }
  14840. } else {
  14841. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14842. this.checkJson[i][z].rightPerson.push(data.name);
  14843. }
  14844. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14845. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14846. ? this.checkJson[i][z].checkPerson[
  14847. parseInt(checkL[z])
  14848. ].push(data.name)
  14849. : (this.checkJson[i][z].checkPerson[
  14850. parseInt(checkL[z])
  14851. ] = [data.name]);
  14852. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14853. ? this.checkJson[i][z].checkCount[
  14854. parseInt(checkL[z])
  14855. ]++
  14856. : (this.checkJson[i][z].checkCount[
  14857. parseInt(checkL[z])
  14858. ] = 1);
  14859. }
  14860. }
  14861. }
  14862. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14863. var checkL = JSON.parse(data.content)[0].anwer;
  14864. for (var z = 0; z < checkL.length; z++) {
  14865. if (!this.checkJson[i][z]) {
  14866. this.checkJson[i].push({
  14867. checkCount: [],
  14868. checkPerson: [],
  14869. rightPerson: [],
  14870. });
  14871. }
  14872. if (!this.checkJson[i][z].checkCount.length) {
  14873. this.checkJson[i][z].checkCount = [];
  14874. let _askItemCount = JSON.parse(data.content)[0].testJson
  14875. .testJson[z].testItem;
  14876. for (var aic = 0; aic < _askItemCount; aic++) {
  14877. this.checkJson[i][z].checkCount.push(0);
  14878. }
  14879. }
  14880. if (checkL[z] instanceof Array) {
  14881. if (
  14882. JSON.parse(data.content)[0]
  14883. .testJson.testJson[z].answer.sort()
  14884. .join(",") == checkL[z].sort().join(",")
  14885. ) {
  14886. this.checkJson[i][z].rightPerson.push(data.name);
  14887. }
  14888. for (var q = 0; q < checkL[z].length; q++) {
  14889. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14890. ? this.checkJson[i][z].checkPerson[
  14891. parseInt(checkL[z][q])
  14892. ].push(data.name)
  14893. : (this.checkJson[i][z].checkPerson[
  14894. parseInt(checkL[z][q])
  14895. ] = [data.name]);
  14896. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14897. ? this.checkJson[i][z].checkCount[
  14898. parseInt(checkL[z][q])
  14899. ]++
  14900. : (this.checkJson[i][z].checkCount[
  14901. parseInt(checkL[z][q])
  14902. ] = 1);
  14903. }
  14904. } else {
  14905. if (
  14906. JSON.parse(data.content)[0].testJson.testJson[z]
  14907. .answer == checkL[z]
  14908. ) {
  14909. this.checkJson[i][z].rightPerson.push(data.name);
  14910. }
  14911. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14912. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14913. ? this.checkJson[i][z].checkPerson[
  14914. parseInt(checkL[z])
  14915. ].push(data.name)
  14916. : (this.checkJson[i][z].checkPerson[
  14917. parseInt(checkL[z])
  14918. ] = [data.name]);
  14919. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14920. ? this.checkJson[i][z].checkCount[
  14921. parseInt(checkL[z])
  14922. ]++
  14923. : (this.checkJson[i][z].checkCount[
  14924. parseInt(checkL[z])
  14925. ] = 1);
  14926. }
  14927. }
  14928. }
  14929. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14930. var checkL = JSON.parse(data.content);
  14931. for (var z = 0; z < checkL.length; z++) {
  14932. if (!this.checkJson[i][z]) {
  14933. this.checkJson[i].push({
  14934. checkCount: [],
  14935. checkPerson: [],
  14936. rightPerson: [],
  14937. });
  14938. }
  14939. this.checkJson[i][z].checkPerson.push(data.name);
  14940. if (
  14941. checkL[z].chooseSenList.toString() ==
  14942. checkL[z].rightAnswer.toString()
  14943. ) {
  14944. this.checkJson[i][z].rightPerson.push(data.name);
  14945. }
  14946. }
  14947. }
  14948. for (var k = 0; k < d.length; k++) {
  14949. //点赞
  14950. if (d[k].workId == b[j].id) {
  14951. likesCount++;
  14952. likeJson.push(d[k])
  14953. if (d[k].likesId == this.userid) {
  14954. isLikes = true;
  14955. }
  14956. }
  14957. }
  14958. for (var l = 0; l < e.length; l++) {
  14959. //评论
  14960. if (e[l].workId == b[j].id) {
  14961. if (e[l].comment != "") {
  14962. commentCount++;
  14963. commentJson.push({
  14964. commentText: e[l].comment,
  14965. commentTime: e[l].commentTime,
  14966. commentPeople: e[l].commentPeople,
  14967. userid: e[l].userid,
  14968. wid: e[l].id,
  14969. });
  14970. }
  14971. }
  14972. }
  14973. if (
  14974. (b[j].type == 1 ||
  14975. b[j].type == 4 ||
  14976. b[j].type == 5 ||
  14977. b[j].type == 6 ||
  14978. b[j].type == 12 ||
  14979. b[j].type == 7) &&
  14980. a[i].tool[0] != 15 &&
  14981. a[i].tool[0] != 4 &&
  14982. a[i].tool[0] != 45 &&
  14983. a[i].tool[0] != 50 &&
  14984. a[i].tool[0] != 32 &&
  14985. a[i].tool[0] != 57 &&
  14986. a[i].tool[0] != 52
  14987. ) {
  14988. if (
  14989. c.indexOf(
  14990. b[j].content
  14991. .split(".")
  14992. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14993. ) != -1 &&
  14994. a[i].tool[0] == 16 &&
  14995. b[j].atool != 50
  14996. ) {
  14997. let _works = {
  14998. userid: b[j].userid,
  14999. ateacher: b[j].ateacher,
  15000. wid: b[j].id,
  15001. works: b[j].content,
  15002. sName: b[j].name,
  15003. type: 1,
  15004. ttype:b[j].ttype,
  15005. time: b[j].time,
  15006. score: b[j].score,
  15007. img: b[j].img,
  15008. likesCount: likesCount,
  15009. commentCount: commentCount,
  15010. isLikes: isLikes,
  15011. commentJson: commentJson,
  15012. likeJson:likeJson
  15013. };
  15014. if (this.isGroup) {
  15015. let isGw = 1;
  15016. for (
  15017. var groupI = 0;
  15018. groupI < this.courseGroup.group.length;
  15019. groupI++
  15020. ) {
  15021. let gid = this.courseGroup.group[groupI].id;
  15022. if (
  15023. this.courseGroupStudentUid[gid].indexOf(
  15024. b[j].userid
  15025. ) != -1
  15026. ) {
  15027. isGw = 2;
  15028. this.courseGroup.group[groupI].works[i].push(_works);
  15029. break;
  15030. }
  15031. }
  15032. if (isGw == 1) {
  15033. _worksStudent[i].push(_works);
  15034. }
  15035. } else {
  15036. _worksStudent[i].push(_works);
  15037. }
  15038. _worksStudent2[i].push(_works);
  15039. this.isWorksS[i].push({
  15040. uid: b[j].userid,
  15041. sName: b[j].name,
  15042. });
  15043. } else if (
  15044. y.indexOf(
  15045. b[j].content
  15046. .split(".")
  15047. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15048. ) != -1 &&
  15049. a[i].tool[0] == 16 &&
  15050. b[j].atool != 50
  15051. ) {
  15052. let _works = {
  15053. userid: b[j].userid,
  15054. ateacher: b[j].ateacher,
  15055. wid: b[j].id,
  15056. works: b[j].content,
  15057. sName: b[j].name,
  15058. type: 3,
  15059. ttype:b[j].ttype,
  15060. time: b[j].time,
  15061. score: b[j].score,
  15062. img: b[j].img,
  15063. likesCount: likesCount,
  15064. commentCount: commentCount,
  15065. isLikes: isLikes,
  15066. commentJson: commentJson,
  15067. likeJson:likeJson
  15068. };
  15069. if (this.isGroup) {
  15070. let isGw = 1;
  15071. for (
  15072. var groupI = 0;
  15073. groupI < this.courseGroup.group.length;
  15074. groupI++
  15075. ) {
  15076. let gid = this.courseGroup.group[groupI].id;
  15077. if (
  15078. this.courseGroupStudentUid[gid].indexOf(
  15079. b[j].userid
  15080. ) != -1
  15081. ) {
  15082. isGw = 2;
  15083. this.courseGroup.group[groupI].works[i].push(_works);
  15084. break;
  15085. }
  15086. }
  15087. if (isGw == 1) {
  15088. _worksStudent[i].push(_works);
  15089. }
  15090. } else {
  15091. _worksStudent[i].push(_works);
  15092. }
  15093. _worksStudent2[i].push(_works);
  15094. this.isWorksS[i].push({
  15095. uid: b[j].userid,
  15096. sName: b[j].name,
  15097. });
  15098. } else if (b[j].type == 6 && b[j].atool != 50) {
  15099. let _works = {
  15100. userid: b[j].userid,
  15101. ateacher: b[j].ateacher,
  15102. wid: b[j].id,
  15103. works: b[j].content,
  15104. sName: b[j].name,
  15105. type: 4,
  15106. ttype:b[j].ttype,
  15107. time: b[j].time,
  15108. score: b[j].score,
  15109. img: b[j].img,
  15110. likesCount: likesCount,
  15111. commentCount: commentCount,
  15112. isLikes: isLikes,
  15113. commentJson: commentJson,
  15114. likeJson:likeJson
  15115. };
  15116. _worksStudent[i].push(_works);
  15117. _worksStudent2[i].push(_works);
  15118. this.isWorksS[i].push({
  15119. uid: b[j].userid,
  15120. sName: b[j].name,
  15121. });
  15122. } else if (b[j].type == 7 && b[j].atool != 50) {
  15123. let _work = {
  15124. userid: b[j].userid,
  15125. ateacher: b[j].ateacher,
  15126. wid: b[j].id,
  15127. works: b[j].content,
  15128. sName: b[j].name,
  15129. type: 5,
  15130. ttype:b[j].ttype,
  15131. time: b[j].time,
  15132. score: b[j].score,
  15133. img: b[j].img,
  15134. likesCount: likesCount,
  15135. commentCount: commentCount,
  15136. isLikes: isLikes,
  15137. commentJson: commentJson,
  15138. likeJson:likeJson
  15139. };
  15140. _worksStudent[i].push(_work);
  15141. _worksStudent2[i].push(_work);
  15142. this.isWorksS[i].push({
  15143. uid: b[j].userid,
  15144. sName: b[j].name,
  15145. });
  15146. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15147. let _works = {
  15148. userid: b[j].userid,
  15149. ateacher: b[j].ateacher,
  15150. wid: b[j].id,
  15151. works: b[j].content,
  15152. sName: b[j].name,
  15153. type: 12,
  15154. ttype:b[j].ttype,
  15155. time: b[j].time,
  15156. score: b[j].score,
  15157. img: b[j].img,
  15158. likesCount: likesCount,
  15159. commentCount: commentCount,
  15160. isLikes: isLikes,
  15161. commentJson: commentJson,
  15162. likeJson:likeJson
  15163. };
  15164. if (this.isGroup) {
  15165. let isGw = 1;
  15166. for (
  15167. var groupI = 0;
  15168. groupI < this.courseGroup.group.length;
  15169. groupI++
  15170. ) {
  15171. let gid = this.courseGroup.group[groupI].id;
  15172. if (
  15173. this.courseGroupStudentUid[gid].indexOf(
  15174. b[j].userid
  15175. ) != -1
  15176. ) {
  15177. isGw = 2;
  15178. this.courseGroup.group[groupI].works[i].push(_works);
  15179. break;
  15180. }
  15181. }
  15182. if (isGw == 1) {
  15183. _worksStudent[i].push(_works);
  15184. }
  15185. } else {
  15186. _worksStudent[i].push(_works);
  15187. }
  15188. _worksStudent2[i].push(_works);
  15189. this.isWorksS[i].push({
  15190. uid: b[j].userid,
  15191. sName: b[j].name,
  15192. });
  15193. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15194. let _works = {
  15195. userid: b[j].userid,
  15196. ateacher: b[j].ateacher,
  15197. wid: b[j].id,
  15198. works: b[j].content,
  15199. sName: b[j].name,
  15200. type: 0,
  15201. ttype:b[j].ttype,
  15202. time: b[j].time,
  15203. score: b[j].score,
  15204. img: b[j].img,
  15205. likesCount: likesCount,
  15206. commentCount: commentCount,
  15207. isLikes: isLikes,
  15208. commentJson: commentJson,
  15209. likeJson:likeJson
  15210. };
  15211. if (this.isGroup) {
  15212. let isGw = 1;
  15213. for (
  15214. var groupI = 0;
  15215. groupI < this.courseGroup.group.length;
  15216. groupI++
  15217. ) {
  15218. let gid = this.courseGroup.group[groupI].id;
  15219. if (
  15220. this.courseGroupStudentUid[gid].indexOf(
  15221. b[j].userid
  15222. ) != -1
  15223. ) {
  15224. isGw = 2;
  15225. this.courseGroup.group[groupI].works[i].push(_works);
  15226. break;
  15227. }
  15228. }
  15229. if (isGw == 1) {
  15230. _worksStudent[i].push(_works);
  15231. }
  15232. } else {
  15233. _worksStudent[i].push(_works);
  15234. }
  15235. _worksStudent2[i].push(_works);
  15236. this.isWorksS[i].push({
  15237. uid: b[j].userid,
  15238. sName: b[j].name,
  15239. });
  15240. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15241. let _works = {
  15242. userid: b[j].userid,
  15243. ateacher: b[j].ateacher,
  15244. wid: b[j].id,
  15245. works: b[j].content,
  15246. sName: b[j].name,
  15247. type: 0,
  15248. ttype:b[j].ttype,
  15249. time: b[j].time,
  15250. score: b[j].score,
  15251. img: b[j].img,
  15252. likesCount: likesCount,
  15253. commentCount: commentCount,
  15254. isLikes: isLikes,
  15255. commentJson: commentJson,
  15256. likeJson:likeJson
  15257. };
  15258. if (this.isGroup) {
  15259. let isGw = 1;
  15260. for (
  15261. var groupI = 0;
  15262. groupI < this.courseGroup.group.length;
  15263. groupI++
  15264. ) {
  15265. let gid = this.courseGroup.group[groupI].id;
  15266. if (
  15267. this.courseGroupStudentUid[gid].indexOf(
  15268. b[j].userid
  15269. ) != -1
  15270. ) {
  15271. isGw = 2;
  15272. this.courseGroup.group[groupI].works[i].push(_works);
  15273. break;
  15274. }
  15275. }
  15276. if (isGw == 1) {
  15277. _worksStudent[i].push(_works);
  15278. }
  15279. } else {
  15280. _worksStudent[i].push(_works);
  15281. }
  15282. _worksStudent2[i].push(_works);
  15283. this.isWorksS[i].push({
  15284. uid: b[j].userid,
  15285. sName: b[j].name,
  15286. });
  15287. }
  15288. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15289. let _works = {
  15290. userid: b[j].userid,
  15291. ateacher: b[j].ateacher,
  15292. wid: b[j].id,
  15293. works: b[j].content,
  15294. sName: b[j].name,
  15295. type: 2,
  15296. ttype:b[j].ttype,
  15297. time: b[j].time,
  15298. score: b[j].score,
  15299. img: b[j].img,
  15300. likesCount: likesCount,
  15301. commentCount: commentCount,
  15302. isLikes: isLikes,
  15303. commentJson: commentJson,
  15304. likeJson:likeJson
  15305. };
  15306. if (this.isGroup) {
  15307. let isGw = 1;
  15308. for (
  15309. var groupI = 0;
  15310. groupI < this.courseGroup.group.length;
  15311. groupI++
  15312. ) {
  15313. let gid = this.courseGroup.group[groupI].id;
  15314. if (
  15315. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15316. -1
  15317. ) {
  15318. isGw = 2;
  15319. this.courseGroup.group[groupI].works[i].push(_works);
  15320. break;
  15321. }
  15322. }
  15323. if (isGw == 1) {
  15324. _worksStudent[i].push(_works);
  15325. }
  15326. } else {
  15327. _worksStudent[i].push(_works);
  15328. }
  15329. _worksStudent2[i].push(_works);
  15330. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15331. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15332. //问卷
  15333. let _work = {
  15334. userid: b[j].userid,
  15335. ateacher: b[j].ateacher,
  15336. wid: b[j].id,
  15337. works: b[j].content,
  15338. sName: b[j].name,
  15339. type: 2,
  15340. ttype:b[j].ttype,
  15341. time: b[j].time,
  15342. score: b[j].score,
  15343. img: b[j].img,
  15344. likesCount: likesCount,
  15345. commentCount: commentCount,
  15346. isLikes: isLikes,
  15347. commentJson: commentJson,
  15348. likeJson:likeJson
  15349. };
  15350. _worksStudent[i].push(_work);
  15351. _worksStudent2[i].push(_work);
  15352. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15353. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15354. //选择题
  15355. let _work = {
  15356. userid: b[j].userid,
  15357. ateacher: b[j].ateacher,
  15358. wid: b[j].id,
  15359. works: b[j].content,
  15360. sName: b[j].name,
  15361. type: 8,
  15362. ttype:b[j].ttype,
  15363. time: b[j].time,
  15364. score: b[j].score,
  15365. img: b[j].img,
  15366. likesCount: likesCount,
  15367. commentCount: commentCount,
  15368. isLikes: isLikes,
  15369. commentJson: commentJson,
  15370. likeJson:likeJson
  15371. };
  15372. _worksStudent[i].push(_work);
  15373. _worksStudent2[i].push(_work);
  15374. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15375. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15376. //选择题
  15377. let _work = {
  15378. userid: b[j].userid,
  15379. ateacher: b[j].ateacher,
  15380. wid: b[j].id,
  15381. works: b[j].content,
  15382. sName: b[j].name,
  15383. type: 9,
  15384. ttype:b[j].ttype,
  15385. time: b[j].time,
  15386. score: b[j].score,
  15387. img: b[j].img,
  15388. likesCount: likesCount,
  15389. commentCount: commentCount,
  15390. isLikes: isLikes,
  15391. commentJson: commentJson,
  15392. likeJson:likeJson
  15393. };
  15394. _worksStudent[i].push(_work);
  15395. _worksStudent2[i].push(_work);
  15396. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15397. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15398. //选择题
  15399. let _work = {
  15400. userid: b[j].userid,
  15401. ateacher: b[j].ateacher,
  15402. wid: b[j].id,
  15403. works: b[j].content,
  15404. sName: b[j].name,
  15405. type: 10,
  15406. ttype:b[j].ttype,
  15407. time: b[j].time,
  15408. score: b[j].score,
  15409. img: b[j].img,
  15410. likesCount: likesCount,
  15411. commentCount: commentCount,
  15412. isLikes: isLikes,
  15413. commentJson: commentJson,
  15414. likeJson:likeJson
  15415. };
  15416. _worksStudent[i].push(_work);
  15417. _worksStudent2[i].push(_work);
  15418. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15419. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15420. //选择题
  15421. let _work = {
  15422. userid: b[j].userid,
  15423. ateacher: b[j].ateacher,
  15424. wid: b[j].id,
  15425. works: b[j].content,
  15426. sName: b[j].name,
  15427. type: 13,
  15428. ttype:b[j].ttype,
  15429. time: b[j].time,
  15430. score: b[j].score,
  15431. img: b[j].img,
  15432. likesCount: likesCount,
  15433. commentCount: commentCount,
  15434. isLikes: isLikes,
  15435. commentJson: commentJson,
  15436. likeJson:likeJson
  15437. };
  15438. _worksStudent[i].push(_work);
  15439. _worksStudent2[i].push(_work);
  15440. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15441. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15442. //选择题
  15443. let _work = {
  15444. userid: b[j].userid,
  15445. ateacher: b[j].ateacher,
  15446. wid: b[j].id,
  15447. works: b[j].content,
  15448. sName: b[j].name,
  15449. type: 16,
  15450. ttype:b[j].ttype,
  15451. time: b[j].time,
  15452. score: b[j].score,
  15453. img: b[j].img,
  15454. likesCount: likesCount,
  15455. commentCount: commentCount,
  15456. isLikes: isLikes,
  15457. commentJson: commentJson,
  15458. aiCode: b[j].aiCode,
  15459. teacherCode: b[j].teacherCode,
  15460. likeJson:likeJson
  15461. };
  15462. _worksStudent[i].push(_work);
  15463. _worksStudent2[i].push(_work);
  15464. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15465. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15466. //选择题
  15467. let _work = {
  15468. userid: b[j].userid,
  15469. ateacher: b[j].ateacher,
  15470. wid: b[j].id,
  15471. works: b[j].content,
  15472. sName: b[j].name,
  15473. type: 17,
  15474. ttype:b[j].ttype,
  15475. time: b[j].time,
  15476. score: b[j].score,
  15477. img: b[j].img,
  15478. likesCount: likesCount,
  15479. commentCount: commentCount,
  15480. isLikes: isLikes,
  15481. commentJson: commentJson,
  15482. likeJson:likeJson
  15483. };
  15484. _worksStudent[i].push(_work);
  15485. _worksStudent2[i].push(_work);
  15486. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15487. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15488. //交互视频
  15489. let _work = {
  15490. userid: b[j].userid,
  15491. ateacher: b[j].ateacher,
  15492. wid: b[j].id,
  15493. works: b[j].content,
  15494. sName: b[j].name,
  15495. type: 14,
  15496. ttype:b[j].ttype,
  15497. time: b[j].time,
  15498. score: b[j].score,
  15499. img: b[j].img,
  15500. likesCount: likesCount,
  15501. commentCount: commentCount,
  15502. isLikes: isLikes,
  15503. commentJson: commentJson,
  15504. likeJson:likeJson
  15505. };
  15506. _worksStudent[i].push(_work);
  15507. _worksStudent2[i].push(_work);
  15508. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15509. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15510. let _gindex = JSON.parse(b[j].content);
  15511. if (
  15512. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15513. b[j].userid
  15514. ) != -1
  15515. ) {
  15516. let _work = {
  15517. userid: b[j].userid,
  15518. ateacher: b[j].ateacher,
  15519. wid: b[j].id,
  15520. works: _gindex.url,
  15521. sName: b[j].name,
  15522. type: _gindex.type,
  15523. ttype:b[j].ttype,
  15524. time: b[j].time,
  15525. score: b[j].score,
  15526. img: b[j].img,
  15527. likesCount: likesCount,
  15528. commentCount: commentCount,
  15529. isLikes: isLikes,
  15530. commentJson: commentJson,
  15531. likeJson:likeJson
  15532. };
  15533. _worksStudent[i][_gindex.groupIndex].push(_work);
  15534. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15535. }
  15536. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15537. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15538. let _work = {
  15539. userid: b[j].userid,
  15540. ateacher: b[j].ateacher,
  15541. wid: b[j].id,
  15542. works: b[j].content,
  15543. sName: b[j].name ? b[j].name : b[j].userid,
  15544. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15545. ttype:b[j].ttype,
  15546. time: b[j].time,
  15547. score: b[j].score,
  15548. img: b[j].img,
  15549. likesCount: likesCount,
  15550. commentCount: commentCount,
  15551. isLikes: isLikes,
  15552. commentJson: commentJson,
  15553. likeJson:likeJson
  15554. };
  15555. _worksStudent[i].push(_work);
  15556. _worksStudent2[i].push(_work);
  15557. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15558. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15559. let _work = {
  15560. userid: b[j].userid,
  15561. ateacher: b[j].ateacher,
  15562. wid: b[j].id,
  15563. works: b[j].content,
  15564. sName: b[j].name ? b[j].name : b[j].userid,
  15565. type: 12,
  15566. ttype:b[j].ttype,
  15567. time: b[j].time,
  15568. score: b[j].score,
  15569. img: b[j].img,
  15570. likesCount: likesCount,
  15571. commentCount: commentCount,
  15572. isLikes: isLikes,
  15573. commentJson: commentJson,
  15574. likeJson:likeJson
  15575. };
  15576. _worksStudent[i].push(_work);
  15577. _worksStudent2[i].push(_work);
  15578. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15579. } else if (
  15580. a[i].tool[0] == 57 &&
  15581. b[j].atool == 57 &&
  15582. b[j].type == 12
  15583. ) {
  15584. let _work = {
  15585. userid: b[j].userid,
  15586. ateacher: b[j].ateacher,
  15587. wid: b[j].id,
  15588. works: b[j].content,
  15589. sName: b[j].name ? b[j].name : b[j].userid,
  15590. type: 12,
  15591. ttype:b[j].ttype,
  15592. time: b[j].time,
  15593. score: b[j].score,
  15594. img: b[j].img,
  15595. likesCount: likesCount,
  15596. commentCount: commentCount,
  15597. isLikes: isLikes,
  15598. commentJson: commentJson,
  15599. likeJson:likeJson
  15600. };
  15601. _worksStudent[i].push(_work);
  15602. _worksStudent2[i].push(_work);
  15603. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15604. } else if (
  15605. a[i].tool[0] == 57 &&
  15606. b[j].atool == 57 &&
  15607. b[j].type == 15
  15608. ) {
  15609. let _work = {
  15610. userid: b[j].userid,
  15611. ateacher: b[j].ateacher,
  15612. wid: b[j].id,
  15613. works: b[j].content,
  15614. sName: b[j].name ? b[j].name : b[j].userid,
  15615. type: 15,
  15616. ttype:b[j].ttype,
  15617. time: b[j].time,
  15618. score: b[j].score,
  15619. img: b[j].img,
  15620. likesCount: likesCount,
  15621. commentCount: commentCount,
  15622. isLikes: isLikes,
  15623. commentJson: commentJson,
  15624. likeJson:likeJson
  15625. };
  15626. _worksStudent[i].push(_work);
  15627. _worksStudent2[i].push(_work);
  15628. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15629. }
  15630. }
  15631. }
  15632. if (_worksStudent[i] && _worksStudent[i].length) {
  15633. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15634. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15635. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15636. var scoreA = parseFloat(jscoreA);
  15637. var scoreB = parseFloat(jscoreB);
  15638. if (scoreA == scoreB) {
  15639. return b.likesCount - a.likesCount;
  15640. }
  15641. return scoreB - scoreA;
  15642. });
  15643. if (this.isGroup) {
  15644. for (
  15645. var groupI = 0;
  15646. groupI < this.courseGroup.group.length;
  15647. groupI++
  15648. ) {
  15649. this.courseGroup.group[groupI].works[i] =
  15650. this.courseGroup.group[groupI].works[i].sort(function (
  15651. a,
  15652. b
  15653. ) {
  15654. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15655. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15656. var scoreA = parseFloat(jscoreA);
  15657. var scoreB = parseFloat(jscoreB);
  15658. if (scoreA == scoreB) {
  15659. return b.likesCount - a.likesCount;
  15660. }
  15661. return scoreB - scoreA;
  15662. });
  15663. }
  15664. }
  15665. }
  15666. }
  15667. this.timeWorkList = _worksStudent2;
  15668. for (var i = 0; i < a.length; i++) {
  15669. for (var j = 0; j < b.length; j++) {
  15670. var data = b[j];
  15671. if (i == b[j].tool) {
  15672. if (data.type == 2 || data.type == 8) {
  15673. for (var z = 0; z < this.checkJson[i].length; z++) {
  15674. this.checkJson[i][z].checkPerent = [];
  15675. this.checkJson[i][z].right = Math.round(
  15676. (this.checkJson[i][z].rightPerson.length /
  15677. parseInt(_worksStudent[i].length)) *
  15678. 100
  15679. );
  15680. let aaaa = this.checkJson[i][z];
  15681. for (
  15682. var k = 0;
  15683. k < this.checkJson[i][z].checkCount.length;
  15684. k++
  15685. ) {
  15686. this.checkJson[i][z].checkPerent.push(
  15687. Math.round(
  15688. (this.checkJson[i][z].checkCount[k] /
  15689. parseInt(_worksStudent[i].length)) *
  15690. 100
  15691. )
  15692. );
  15693. }
  15694. }
  15695. } else if (data.type == 9) {
  15696. for (var z = 0; z < this.checkJson[i].length; z++) {
  15697. this.checkJson[i][z].checkPerent = [];
  15698. this.checkJson[i][z].right = Math.round(
  15699. (this.checkJson[i][z].rightPerson.length /
  15700. this.checkJson[i][z].checkPerson.length) *
  15701. 100
  15702. );
  15703. }
  15704. }
  15705. }
  15706. }
  15707. }
  15708. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15709. this.joinGroup(gindex);
  15710. }
  15711. this.worksStudent = _worksStudent;
  15712. if( JSON.stringify(this.worksStudentCopy) != JSON.stringify(this.worksStudent)){
  15713. this.worksStudentCopy=this.worksStudent
  15714. this.AIloading=[]
  15715. this.loopLoading=[]
  15716. this.worksStudent.forEach((e,index)=>{
  15717. this.loopLoading.push({loading:false})
  15718. this.AIloading.push([])
  15719. e.forEach(k=>{
  15720. this.AIloading[index].push({loading:false,sco:0})
  15721. })
  15722. })
  15723. this.refreshAssembly()
  15724. }
  15725. this.selectWorksStudent();
  15726. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15727. this.$nextTick(()=>{
  15728. setTimeout(()=>{
  15729. setTimeout(()=>{
  15730. this.panToolHeight('tool-'+ci);
  15731. }, 500)
  15732. }, 0)
  15733. })
  15734. }
  15735. })
  15736. .catch((err) => {
  15737. console.error(err);
  15738. });
  15739. },
  15740. pngToWhiteBg(file) {
  15741. const _file = file;
  15742. let read = new FileReader();
  15743. read.readAsDataURL(file); // 文件转base64
  15744. return new Promise((resolve, reject) => {
  15745. read.onload = (e) => {
  15746. let img = new Image();
  15747. img.src = e.target.result;
  15748. img.onload = async () => {
  15749. // 生成canvas
  15750. let canvas = document.createElement("canvas");
  15751. let context = canvas.getContext("2d");
  15752. // 绘制图片到canvas上
  15753. canvas.width = img.width;
  15754. canvas.height = img.height;
  15755. // 在canvas绘制前填充白色背景
  15756. context.fillStyle = "#fff";
  15757. context.fillRect(0, 0, canvas.width, canvas.height);
  15758. context.drawImage(img, 0, 0);
  15759. let base64 = canvas.toDataURL(file["type"], 1);
  15760. let newFile = this.dataUrlToFile(base64, _file);
  15761. resolve(newFile);
  15762. };
  15763. };
  15764. });
  15765. },
  15766. dataUrlToFile(dataurl, file) {
  15767. let arr = dataurl.split(","),
  15768. mime = arr[0].match(/:(.*?);/)[1],
  15769. bstr = atob(arr[1]),
  15770. n = bstr.length,
  15771. u8arr = new Uint8Array(n);
  15772. while (n--) {
  15773. u8arr[n] = bstr.charCodeAt(n);
  15774. }
  15775. // return new Blob([u8arr], { type: mime });
  15776. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15777. type: mime,
  15778. });
  15779. },
  15780. async beforeUpload1(event, type, i) {
  15781. // this.$message.success('进入上传')
  15782. var file = "";
  15783. if (type == 5) {
  15784. file = event;
  15785. } else {
  15786. file = event.target.files[0];
  15787. }
  15788. var credentials = {
  15789. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15790. secretAccessKey: "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",
  15791. }; //秘钥形式的登录上传
  15792. window.AWS.config.update(credentials);
  15793. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15794. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15795. var _this = this;
  15796. _this.progress = 0;
  15797. _this.proVisible = true;
  15798. _this.isFinishSize = 0;
  15799. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15800. var b = [
  15801. "DOC",
  15802. "DOCX",
  15803. "DOCM",
  15804. "DOTM",
  15805. "DOTX",
  15806. "PPTX",
  15807. "PPSX",
  15808. "PPT",
  15809. "PPS",
  15810. "PPTM",
  15811. "POTM",
  15812. "PPAM",
  15813. "POTX",
  15814. "PPSM",
  15815. ];
  15816. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15817. var photoA = [
  15818. "BMP",
  15819. "GIF",
  15820. "PNG",
  15821. "JPEG",
  15822. "JPEG",
  15823. "JPG",
  15824. "TIF",
  15825. "PCX",
  15826. "TGA",
  15827. "EXIF",
  15828. "FPX",
  15829. "SVG",
  15830. "APNG",
  15831. ];
  15832. // if (
  15833. // b.indexOf(
  15834. // file.name
  15835. // .split(".")
  15836. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15837. // ) != -1
  15838. // ) {
  15839. // if (file.size / 1024 / 1024 > 10) {
  15840. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15841. // return;
  15842. // }
  15843. // } else if (
  15844. // excelA.indexOf(
  15845. // file.name
  15846. // .split(".")
  15847. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15848. // ) != "-1"
  15849. // ) {
  15850. // if (file.size / 1024 / 1024 > 5) {
  15851. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15852. // return;
  15853. // }
  15854. // }
  15855. if (
  15856. photoA.indexOf(
  15857. file.name
  15858. .split(".")
  15859. [file.name.split(".").length - 1].toLocaleUpperCase()
  15860. ) != -1 &&
  15861. type != 4
  15862. ) {
  15863. // const blob = await imageConversion.compress(file, 0.8)
  15864. file = await this.pngToWhiteBg(file);
  15865. const blob = await imageConversion.compressAccurately(file, 256);
  15866. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15867. file = new File([blob], file.name, { type: file.type });
  15868. }
  15869. if (file) {
  15870. var params = {
  15871. Key:
  15872. file.name.split(".")[0] +
  15873. new Date().getTime() +
  15874. "." +
  15875. file.name.split(".")[file.name.split(".").length - 1],
  15876. ContentType: file.type,
  15877. Body: file,
  15878. "Access-Control-Allow-Credentials": "*",
  15879. ACL: "public-read",
  15880. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15881. var options = {
  15882. // partSize: 2048 * 1024 * 1024,
  15883. partSize: 1024 * 1024 * 1024,
  15884. queueSize: 2,
  15885. leavePartsOnError: true,
  15886. };
  15887. bucket
  15888. .upload(params, options)
  15889. .on("httpUploadProgress", function (evt) {
  15890. //这里可以写进度条
  15891. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15892. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15893. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15894. })
  15895. .send(function (err, data) {
  15896. _this.progress = 100;
  15897. _this.isFinishSize = _this.isAllSize;
  15898. setTimeout(() => {
  15899. _this.proVisible = false;
  15900. }, 1000);
  15901. if (err) {
  15902. var a = _this.$refs.upload1.uploadFiles;
  15903. a.splice(a.length - 1, a.length);
  15904. _this.$message.error("上传失败");
  15905. } else {
  15906. // _this.$message.success('上传成功')
  15907. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15908. var c = [
  15909. "AVI",
  15910. "NAVI",
  15911. "MPEG",
  15912. "ASF",
  15913. "MOV",
  15914. "WMV",
  15915. "3GP",
  15916. "RM",
  15917. "RMVB",
  15918. "FLV",
  15919. "F4V",
  15920. "H.264",
  15921. "H.265",
  15922. "REAL VIDEO",
  15923. "MKV",
  15924. "WebM",
  15925. "HDDVD",
  15926. "MP4",
  15927. "MPG",
  15928. "M4V",
  15929. "MGV",
  15930. "OGV",
  15931. "QTM",
  15932. "STR",
  15933. "AMC",
  15934. "DVX",
  15935. "EVO",
  15936. "DAT",
  15937. "OGG",
  15938. "OGM",
  15939. ];
  15940. if (type == 1) {
  15941. _this.studyJuri[0].cover.push({
  15942. name: file.name,
  15943. url: data.Location,
  15944. uid: file.uid,
  15945. });
  15946. if (
  15947. c.indexOf(
  15948. _this.studyJuri[0].cover[0].url
  15949. .split(".")
  15950. [
  15951. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15952. ].toLocaleUpperCase()
  15953. ) != -1
  15954. ) {
  15955. _this.fileType = 2;
  15956. } else if (
  15957. b.indexOf(
  15958. _this.studyJuri[0].cover[0].url
  15959. .split(".")
  15960. [
  15961. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15962. ].toLocaleUpperCase()
  15963. ) != -1
  15964. ) {
  15965. _this.fileType = 1;
  15966. } else if (
  15967. photoA.indexOf(
  15968. _this.studyJuri[0].cover[0].url
  15969. .split(".")
  15970. [
  15971. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15972. ].toLocaleUpperCase()
  15973. ) != -1
  15974. ) {
  15975. _this.fileType = 0;
  15976. } else {
  15977. _this.fileType = 3;
  15978. }
  15979. _this.imgChange(null, null, type);
  15980. } else if (type == 2) {
  15981. _this.upToolImg = data.Location;
  15982. _this.imgChange(null, null, type);
  15983. _this.addCourseWorks(i);
  15984. } else if (type == 4) {
  15985. _this.addPz("3", data.Location);
  15986. } else if (type == 5) {
  15987. _this.addImgDrawImG(data.Location);
  15988. } else if (type == 6) {
  15989. var _ftype = 1;
  15990. if (
  15991. c.indexOf(
  15992. data.Location.split(".")[
  15993. data.Location.split(".").length - 1
  15994. ].toLocaleUpperCase()
  15995. ) != -1
  15996. ) {
  15997. _ftype = 5;
  15998. } else if (
  15999. b.indexOf(
  16000. data.Location.split(".")[
  16001. data.Location.split(".").length - 1
  16002. ].toLocaleUpperCase()
  16003. ) != -1
  16004. ) {
  16005. _ftype = 4;
  16006. } else {
  16007. _ftype = 1;
  16008. }
  16009. _this.plworkFile.push({
  16010. name: file.name,
  16011. url: data.Location,
  16012. uid: file.uid,
  16013. fileType: _ftype,
  16014. username:
  16015. _this.plworkFile.length > 10
  16016. ? _this.plworkFile.length + 1
  16017. : "0" + (_this.plworkFile.length + 1),
  16018. });
  16019. } else if (type == 7) {
  16020. _this.addCourseWorksGong(i, data.Location, 32);
  16021. } else if (type == 8) {
  16022. _this.addCourseWorksGong(i, data.Location, 57);
  16023. }
  16024. _this.imgChange(null, null, type);
  16025. console.log(data.Location);
  16026. // _this.$message.success('上传成功'+data.Location)
  16027. }
  16028. });
  16029. }
  16030. },
  16031. async beforeUpload3(event, type, i) {
  16032. // this.$message.success('进入上传')
  16033. let file = "";
  16034. let cfindex2 = 0;
  16035. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16036. file = event.target.files[cfindex];
  16037. var credentials = {
  16038. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16039. secretAccessKey: "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",
  16040. }; //秘钥形式的登录上传
  16041. window.AWS.config.update(credentials);
  16042. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16043. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16044. var _this = this;
  16045. // _this.progress = 0;
  16046. _this.proVisible2 = true;
  16047. var b = [
  16048. "DOC",
  16049. "DOCX",
  16050. "DOCM",
  16051. "DOTM",
  16052. "DOTX",
  16053. "PPTX",
  16054. "PPSX",
  16055. "PPT",
  16056. "PPS",
  16057. "PPTM",
  16058. "POTM",
  16059. "PPAM",
  16060. "POTX",
  16061. "PPSM",
  16062. ];
  16063. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16064. var photoA = [
  16065. "BMP",
  16066. "GIF",
  16067. "PNG",
  16068. "JPEG",
  16069. "JPG",
  16070. "TIF",
  16071. "PCX",
  16072. "TGA",
  16073. "EXIF",
  16074. "FPX",
  16075. "SVG",
  16076. "APNG",
  16077. ];
  16078. if (
  16079. photoA.indexOf(
  16080. file.name
  16081. .split(".")
  16082. [file.name.split(".").length - 1].toLocaleUpperCase()
  16083. ) != -1 &&
  16084. type != 4
  16085. ) {
  16086. // const blob = await imageConversion.compress(file, 0.8)
  16087. file = await this.pngToWhiteBg(file);
  16088. const blob = await imageConversion.compressAccurately(file, 256);
  16089. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16090. file = new File([blob], file.name, { type: file.type });
  16091. }
  16092. if (file) {
  16093. var params = {
  16094. Key:
  16095. file.name.split(".")[0] +
  16096. new Date().getTime() +
  16097. "." +
  16098. file.name.split(".")[file.name.split(".").length - 1],
  16099. ContentType: file.type,
  16100. Body: file,
  16101. "Access-Control-Allow-Credentials": "*",
  16102. ACL: "public-read",
  16103. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16104. var options = {
  16105. // partSize: 2048 * 1024 * 1024,
  16106. partSize: 1024 * 1024 * 1024,
  16107. queueSize: 2,
  16108. leavePartsOnError: true,
  16109. };
  16110. bucket
  16111. .upload(params, options)
  16112. .on("httpUploadProgress", function (evt) {
  16113. //这里可以写进度条
  16114. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16115. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16116. })
  16117. .send(function (err, data) {
  16118. // _this.progress = 100;
  16119. cfindex2++;
  16120. setTimeout(() => {
  16121. if (
  16122. cfindex2 == event.target.files.length - 1 ||
  16123. cfindex2 > event.target.files.length - 1
  16124. ) {
  16125. _this.proVisible2 = false;
  16126. }
  16127. }, 1000);
  16128. if (err) {
  16129. var a = _this.$refs.upload1.uploadFiles;
  16130. a.splice(a.length - 1, a.length);
  16131. _this.$message.error("上传失败");
  16132. } else {
  16133. // _this.$message.success('上传成功')
  16134. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16135. var c = [
  16136. "AVI",
  16137. "NAVI",
  16138. "MPEG",
  16139. "ASF",
  16140. "MOV",
  16141. "WMV",
  16142. "3GP",
  16143. "RM",
  16144. "RMVB",
  16145. "FLV",
  16146. "F4V",
  16147. "H.264",
  16148. "H.265",
  16149. "REAL VIDEO",
  16150. "MKV",
  16151. "WebM",
  16152. "HDDVD",
  16153. "MP4",
  16154. "MPG",
  16155. "M4V",
  16156. "MGV",
  16157. "OGV",
  16158. "QTM",
  16159. "STR",
  16160. "AMC",
  16161. "DVX",
  16162. "EVO",
  16163. "DAT",
  16164. "OGG",
  16165. "OGM",
  16166. ];
  16167. if (type == 1) {
  16168. _this.studyJuri[0].cover.push({
  16169. name: file.name,
  16170. url: data.Location,
  16171. uid: file.uid,
  16172. });
  16173. if (
  16174. c.indexOf(
  16175. _this.studyJuri[0].cover[0].url
  16176. .split(".")
  16177. [
  16178. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16179. ].toLocaleUpperCase()
  16180. ) != -1
  16181. ) {
  16182. _this.fileType = 2;
  16183. } else if (
  16184. b.indexOf(
  16185. _this.studyJuri[0].cover[0].url
  16186. .split(".")
  16187. [
  16188. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16189. ].toLocaleUpperCase()
  16190. ) != -1
  16191. ) {
  16192. _this.fileType = 1;
  16193. } else {
  16194. _this.fileType = 0;
  16195. }
  16196. _this.imgChange(null, null, type);
  16197. } else if (type == 2) {
  16198. _this.upToolImg = data.Location;
  16199. _this.imgChange(null, null, type);
  16200. _this.addCourseWorks(i);
  16201. } else if (type == 4) {
  16202. _this.addPz("3", data.Location);
  16203. } else if (type == 5) {
  16204. _this.addImgDrawImG(data.Location);
  16205. } else if (type == 6) {
  16206. var _ftype = 1;
  16207. if (
  16208. c.indexOf(
  16209. data.Location.split(".")[
  16210. data.Location.split(".").length - 1
  16211. ].toLocaleUpperCase()
  16212. ) != -1
  16213. ) {
  16214. _ftype = 5;
  16215. } else if (
  16216. b.indexOf(
  16217. data.Location.split(".")[
  16218. data.Location.split(".").length - 1
  16219. ].toLocaleUpperCase()
  16220. ) != -1
  16221. ) {
  16222. _ftype = 4;
  16223. } else {
  16224. _ftype = 1;
  16225. }
  16226. _this.plworkFile.push({
  16227. name: file.name,
  16228. url: data.Location,
  16229. uid: file.uid,
  16230. fileType: _ftype,
  16231. username:
  16232. _this.plworkFile.length + 1 > 9
  16233. ? _this.plworkFile.length + 1
  16234. : "0" + (_this.plworkFile.length + 1),
  16235. });
  16236. }
  16237. _this.imgChange(null, null, type);
  16238. console.log(data.Location);
  16239. // _this.$message.success('上传成功'+data.Location)
  16240. }
  16241. });
  16242. }
  16243. }
  16244. },
  16245. beforeUpload2(event, type) {
  16246. var file = event.target.files[0];
  16247. var credentials = {
  16248. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16249. secretAccessKey: "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",
  16250. }; //秘钥形式的登录上传
  16251. window.AWS.config.update(credentials);
  16252. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16253. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16254. var _this = this;
  16255. _this.progress = 0;
  16256. _this.proVisible = true;
  16257. if (file) {
  16258. var params = {
  16259. Key:
  16260. file.name.split(".")[0] +
  16261. new Date().getTime() +
  16262. "." +
  16263. file.name.split(".")[file.name.split(".").length - 1],
  16264. ContentType: file.type,
  16265. Body: file,
  16266. "Access-Control-Allow-Credentials": "*",
  16267. ACL: "public-read",
  16268. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16269. var options = {
  16270. partSize: 2048 * 1024 * 1024,
  16271. queueSize: 2,
  16272. leavePartsOnError: true,
  16273. };
  16274. bucket
  16275. .upload(params, options)
  16276. .on("httpUploadProgress", function (evt) {
  16277. //这里可以写进度条
  16278. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16279. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16280. })
  16281. .send(function (err, data) {
  16282. _this.progress = 100;
  16283. setTimeout(() => {
  16284. _this.proVisible = false;
  16285. }, 1000);
  16286. if (err) {
  16287. var a = _this.$refs.upload1.uploadFiles;
  16288. a.splice(a.length - 1, a.length);
  16289. _this.$message.error("上传失败");
  16290. } else {
  16291. if (type == 2) {
  16292. _this.studyJuri[0].upVedio.push({
  16293. name: file.name,
  16294. url: data.Location,
  16295. uid: file.uid,
  16296. });
  16297. _this.imgChange(null, null, type);
  16298. } else if (type == 3) {
  16299. _this.studyJuri[0].upFile.push({
  16300. name: file.name,
  16301. url: data.Location,
  16302. uid: file.uid,
  16303. });
  16304. _this.imgChange(null, null, type);
  16305. }
  16306. console.log(data.Location);
  16307. }
  16308. });
  16309. }
  16310. },
  16311. allScrell() {
  16312. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16313. },
  16314. nextOrpreSteps(t) {
  16315. if (this.IsFollow && this.tType == 2) {
  16316. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16317. return;
  16318. }
  16319. var b = this.chapInfoList.length - 1;
  16320. if (t == 0) {
  16321. if (this.courseType == 0) {
  16322. if (this.taskCount == 0) {
  16323. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16324. if (this.IsLookOpen) {
  16325. if (
  16326. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16327. ) {
  16328. if (
  16329. this.courseDetail.userid != this.userid &&
  16330. (!this.courseDetail.course_teacher ||
  16331. (this.courseDetail.course_teacher &&
  16332. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16333. ) {
  16334. this.$message.error("任务未解锁");
  16335. } else {
  16336. this.$message.error("上一任务未解锁");
  16337. }
  16338. return;
  16339. }
  16340. }
  16341. this.navList[this.courseType].isOpen = false;
  16342. this.courseType = b;
  16343. this.taskCount =
  16344. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16345. .length - 1;
  16346. this.navList[this.courseType].isOpen = true;
  16347. } else {
  16348. this.taskCount--;
  16349. }
  16350. } else {
  16351. if (this.taskCount == 0) {
  16352. this.navList[this.courseType].isOpen = false;
  16353. this.courseType--;
  16354. this.taskCount =
  16355. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16356. .length - 1;
  16357. this.navList[this.courseType].isOpen = true;
  16358. } else {
  16359. this.taskCount--;
  16360. }
  16361. }
  16362. } else {
  16363. if (this.courseType == b) {
  16364. if (
  16365. this.taskCount ==
  16366. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16367. 1
  16368. ) {
  16369. this.navList[this.courseType].isOpen = false;
  16370. this.courseType = 0;
  16371. this.taskCount = 0;
  16372. this.navList[this.courseType].isOpen = true;
  16373. } else {
  16374. var bbb = parseInt(this.taskCount) + 1;
  16375. if (
  16376. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16377. .isLook &&
  16378. this.courseDetail.userid != this.userid &&
  16379. (!this.courseDetail.course_teacher ||
  16380. (this.courseDetail.course_teacher &&
  16381. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16382. this.IsLookOpen
  16383. ) {
  16384. this.$message.error("任务未解锁");
  16385. return;
  16386. }
  16387. this.taskCount++;
  16388. if (this.IsLookOpen) {
  16389. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16390. this.taskCount
  16391. ].isLook = true;
  16392. this.addCourseState(3);
  16393. }
  16394. }
  16395. } else {
  16396. if (
  16397. this.taskCount ==
  16398. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16399. 1
  16400. ) {
  16401. var bbb = parseInt(this.courseType) + 1;
  16402. if (
  16403. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16404. this.courseDetail.userid != this.userid &&
  16405. (!this.courseDetail.course_teacher ||
  16406. (this.courseDetail.course_teacher &&
  16407. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16408. this.IsLookOpen
  16409. ) {
  16410. this.$message.error("任务未解锁");
  16411. return;
  16412. }
  16413. this.navList[this.courseType].isOpen = false;
  16414. this.courseType++;
  16415. this.taskCount = 0;
  16416. this.navList[this.courseType].isOpen = true;
  16417. } else {
  16418. var bbb = parseInt(this.taskCount) + 1;
  16419. if (
  16420. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16421. .isLook &&
  16422. this.courseDetail.userid != this.userid &&
  16423. (!this.courseDetail.course_teacher ||
  16424. (this.courseDetail.course_teacher &&
  16425. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16426. this.IsLookOpen
  16427. ) {
  16428. this.$message.error("任务未解锁");
  16429. return;
  16430. }
  16431. this.taskCount++;
  16432. }
  16433. if (this.IsLookOpen) {
  16434. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16435. this.taskCount
  16436. ].isLook = true;
  16437. this.addCourseState(3);
  16438. }
  16439. }
  16440. // if (
  16441. // this.taskCount ==
  16442. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16443. // ) {
  16444. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16445. // } else {
  16446. // this.taskCount++;
  16447. // }
  16448. }
  16449. document.scrollingElement.scrollTop = 0;
  16450. this.showType = 7;
  16451. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16452. // if (this.vedio[this.taskCount].length > 0) {
  16453. // var a =
  16454. // document.getElementsByClassName("box_course")[this.taskCount]
  16455. // .offsetHeight;
  16456. // document.getElementsByClassName("vedioList")[
  16457. // this.taskCount
  16458. // ].style.height = a + "px";
  16459. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16460. // a - 40 + "px";
  16461. // }
  16462. this.isNoHomeWork = false;
  16463. (this.studyJuri = [
  16464. {
  16465. content: "",
  16466. cover: [],
  16467. upVedio: [],
  16468. upFile: [],
  16469. },
  16470. ]),
  16471. (this.radio = []);
  16472. this.isClickNav = "";
  16473. this.selectPz();
  16474. this.getHomeWork();
  16475. this.getCourseDetail(2);
  16476. this.$forceUpdate();
  16477. },
  16478. openTask(s, n, i) {
  16479. this.refreshAssembly()
  16480. if (this.IsFollow && this.tType == 2) {
  16481. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16482. return;
  16483. }
  16484. if (this.IsLookOpen) {
  16485. if (
  16486. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16487. this.courseDetail.userid != this.userid &&
  16488. (!this.courseDetail.course_teacher ||
  16489. (this.courseDetail.course_teacher &&
  16490. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16491. ) {
  16492. this.$message.error("任务未解锁");
  16493. return;
  16494. }
  16495. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16496. if (
  16497. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16498. .isLook
  16499. ) {
  16500. this.$message.error("上一任务未解锁");
  16501. return;
  16502. }
  16503. } else if (s > this.courseType) {
  16504. if (n > 0) {
  16505. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16506. this.$message.error("上一任务未解锁");
  16507. return;
  16508. }
  16509. } else {
  16510. if (
  16511. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16512. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16513. ].isLook
  16514. ) {
  16515. this.$message.error("上一任务未解锁");
  16516. return;
  16517. }
  16518. }
  16519. }
  16520. }
  16521. if (this.navList[s].task[n].isOpen == true) {
  16522. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16523. return;
  16524. }
  16525. let flag = this.courseType==s;
  16526. this.courseType = s;
  16527. this.navId = i;
  16528. this.taskCount = n;
  16529. this.navList[this.courseType].task[this.taskCount].isOpen =
  16530. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16531. if (this.IsLookOpen) {
  16532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16533. this.taskCount
  16534. ].isLook = true;
  16535. this.addCourseState(3);
  16536. }
  16537. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16538. this.isCloseList[ci].isClose = 0;
  16539. this.isCloseList[ci].isCloseBoolean = false;
  16540. this.$nextTick(()=>{
  16541. setTimeout(()=>{
  16542. setTimeout(()=>{
  16543. this.panToolHeight('tool-'+ci);
  16544. }, 0)
  16545. }, 0)
  16546. })
  16547. }
  16548. this.showType = 7;
  16549. this.isNoHomeWork = false;
  16550. (this.studyJuri = [
  16551. {
  16552. content: "",
  16553. cover: [],
  16554. upVedio: [],
  16555. upFile: [],
  16556. },
  16557. ]),
  16558. (this.radio = []);
  16559. document.scrollingElement.scrollTop = 0;
  16560. // setTimeout(() => {
  16561. // let a = document.getElementById(i);
  16562. // if (a.offsetTop - 110 == 0) {
  16563. // window.scrollTo(0, 0);
  16564. // } else {
  16565. // window.scrollTo(0, a.offsetTop);
  16566. // }
  16567. // }, 0);
  16568. for (var z = 0; z < this.navList.length; z++) {
  16569. for (var q = 0; q < this.navList[z].task.length; q++) {
  16570. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16571. this.navList[z].task[q].tool[w].isTool = false;
  16572. }
  16573. }
  16574. }
  16575. this.selectPz();
  16576. this.getHomeWork();
  16577. this.getCourseDetail(2);
  16578. if(flag){
  16579. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16580. }else{
  16581. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16582. }
  16583. },
  16584. get(i) {
  16585. if (this.IsFollow && this.tType == 2) {
  16586. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16587. return;
  16588. }
  16589. // for(var k=0;k<this.navList.length;k++){
  16590. // this.navList[k].isOpen = false;
  16591. // }
  16592. // this.navList[i].isOpen = true;
  16593. this.navList[i].isOpen = !this.navList[i].isOpen;
  16594. if (this.navList[i].isOpen) {
  16595. this.openTask(i, 0, i + "-0");
  16596. }
  16597. },
  16598. addQuestion() {
  16599. this.answerList.push({
  16600. answerTitle: this.answerQ,
  16601. answer: this.questionAnswer,
  16602. });
  16603. let params = [
  16604. {
  16605. uid: this.userid,
  16606. cid: this.id,
  16607. stage: this.courseType,
  16608. task: this.taskCount,
  16609. tool: this.toolindex,
  16610. content: JSON.stringify(this.answerList),
  16611. type: 3,
  16612. },
  16613. ];
  16614. this.ajax
  16615. .post(this.$store.state.api + "addCourseWorks", params)
  16616. .then((res) => {
  16617. this.$message({
  16618. message: "提交成功",
  16619. type: "success",
  16620. });
  16621. this.answerList = [];
  16622. this.answerDialogVisible = false;
  16623. this.selectStudent();
  16624. this.selectSWorks();
  16625. this.selectSLook();
  16626. })
  16627. .catch((err) => {
  16628. this.$message.error("提交失败");
  16629. console.error(err);
  16630. });
  16631. },
  16632. addQuestionTeacher() {
  16633. this.answerList.push({
  16634. answerTitle: this.answerQ,
  16635. answer: this.questionAnswer,
  16636. });
  16637. let params = [
  16638. {
  16639. uid: this.sStudent.userid,
  16640. cid: this.id,
  16641. stage: this.courseType,
  16642. task: this.taskCount,
  16643. tool: this.toolindex,
  16644. content: JSON.stringify(this.answerList),
  16645. type: 3,
  16646. ateacher: this.userid,
  16647. },
  16648. ];
  16649. this.ajax
  16650. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16651. .then((res) => {
  16652. this.$message({
  16653. message: "提交成功",
  16654. type: "success",
  16655. });
  16656. this.answerList = [];
  16657. this.questionAnswer = "";
  16658. this.answerDialogVisibleTeacher = false;
  16659. this.selectStudent();
  16660. this.selectSWorks();
  16661. this.selectSLook();
  16662. })
  16663. .catch((err) => {
  16664. this.$message.error("提交失败");
  16665. console.error(err);
  16666. });
  16667. },
  16668. refreshCourse() {
  16669. // window.location.reload();
  16670. this.navList = [];
  16671. this.getCourseDetail(1);
  16672. },
  16673. getCourseDetail(type, gindex) {
  16674. let loading;
  16675. if (type != 2) {
  16676. loading = this.$loading.service({
  16677. background: "rgba(255, 255, 255, 0.7)",
  16678. target: document.querySelector(".student_table"),
  16679. });
  16680. }
  16681. this.downLoading = false
  16682. // this.navList[0].isOpen = false;
  16683. // this.navList[this.courseType].isOpen = true;
  16684. // this.courseType = this.courseTypeLine;
  16685. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16686. let params = {
  16687. courseId: this.id,
  16688. };
  16689. this.ajax
  16690. .get(this.$store.state.api + "selectCourseDetail3", params)
  16691. .then((res) => {
  16692. if (type != 2) {
  16693. loading.close();
  16694. if (
  16695. this.courseType >
  16696. JSON.parse(res.data[0][0].chapters).length - 1
  16697. ) {
  16698. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16699. }
  16700. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16701. .chapterInfo[0].taskJson;
  16702. var b = [
  16703. "AVI",
  16704. "NAVI",
  16705. "MPEG",
  16706. "ASF",
  16707. "MOV",
  16708. "WMV",
  16709. "3GP",
  16710. "RM",
  16711. "RMVB",
  16712. "FLV",
  16713. "F4V",
  16714. "H.264",
  16715. "H.265",
  16716. "REAL VIDEO",
  16717. "MKV",
  16718. "WebM",
  16719. "HDDVD",
  16720. "MP4",
  16721. "MPG",
  16722. "M4V",
  16723. "MGV",
  16724. "OGV",
  16725. "QTM",
  16726. "STR",
  16727. "AMC",
  16728. "DVX",
  16729. "EVO",
  16730. "DAT",
  16731. "OGG",
  16732. "OGM",
  16733. "MP3",
  16734. ];
  16735. let _chapterData = [];
  16736. for (var i = 0; i < a.length; i++) {
  16737. var c = a[i].chapterData;
  16738. this.vedio[i] = [];
  16739. this.textList[i] = [];
  16740. this.lineList[i] = [];
  16741. this.chapToolList[i] = [];
  16742. this.file[i] = [];
  16743. this.fileC[i] = [];
  16744. _chapterData[i] = c.filter((el) => {
  16745. return el.type != 12;
  16746. });
  16747. this.fileC[i] = c.filter((el) => {
  16748. return el.type == 12;
  16749. });
  16750. // else if (c[j].type == 12) {
  16751. // this.fileC[i].push(c[j]);
  16752. // }
  16753. for (var j = 0; j < c.length; j++) {
  16754. if (c[j].type == 7) {
  16755. this.chapToolList[i].push(c[j]);
  16756. } else if (c[j].type == 8 || c[j].type == 14) {
  16757. this.lineList[i].push(c[j]);
  16758. } else if (c[j].type == 6) {
  16759. this.textList[i].push(c[j]);
  16760. } else {
  16761. if (
  16762. b.indexOf(
  16763. c[j].url
  16764. .split(".")
  16765. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16766. ) != -1
  16767. ) {
  16768. this.vedio[i].push(c[j]);
  16769. } else {
  16770. this.file[i].push(c[j]);
  16771. }
  16772. }
  16773. }
  16774. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16775. d.sources[0].src =
  16776. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16777. this.playerO[i] = d;
  16778. }
  16779. this.courseDetail = res.data[0][0];
  16780. this.tcid = this.arrayToArray(
  16781. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16782. this.tcid2 ? this.tcid2.split(",") : []
  16783. ).join(",");
  16784. this.evalua = res.data[0][0].evaId;
  16785. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16786. this.courseType
  16787. ];
  16788. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16789. console.log('this.chapInfoList22222',this.chapInfoList);
  16790. if (this.tcid && res.data[1].length) {
  16791. let _inviteA = [];
  16792. for (var ik = 0; ik < res.data[1].length; ik++) {
  16793. _inviteA.push({
  16794. cid: res.data[1][ik].classid,
  16795. ic: res.data[1][ik].code,
  16796. });
  16797. }
  16798. for (var ik = 0; ik < _inviteA.length; ik++) {
  16799. if (
  16800. this.arrayToArray(
  16801. _inviteA[ik].cid.split(","),
  16802. this.tcid.split(",")
  16803. ).length
  16804. ) {
  16805. this.inviteCode = _inviteA[ik].ic;
  16806. break;
  16807. }
  16808. }
  16809. }
  16810. for (var l = 0; l < this.chapInfoList.length; l++) {
  16811. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16812. for (var m = 0; m < w.length; m++) {
  16813. w[m].id = l + "-" + m;
  16814. }
  16815. }
  16816. if (
  16817. _chapterData[this.taskCount].length &&
  16818. _chapterData[this.taskCount][0].type == 2
  16819. ) {
  16820. this.showType = 0;
  16821. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16822. } else {
  16823. if (_chapterData[this.taskCount].length > 0) {
  16824. let _url = _chapterData[this.taskCount][0].url;
  16825. if (
  16826. _chapterData[this.taskCount][0].type == 8 ||
  16827. _chapterData[this.taskCount][0].type == 14
  16828. ) {
  16829. this.showType = 2;
  16830. if (
  16831. _url.indexOf("https://") == -1 &&
  16832. _url.indexOf("http://") == -1
  16833. ) {
  16834. _url = "https://" + _url;
  16835. }
  16836. this.pptImgUrl1 = _url;
  16837. } else if (_chapterData[this.taskCount][0].type == 3) {
  16838. if (
  16839. _url
  16840. .split(".")
  16841. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16842. ) {
  16843. this.showType = 3;
  16844. this.pptImgUrl1 = _url;
  16845. } else if (
  16846. this.isAssetTypeAnImage(
  16847. _url
  16848. .split(".")
  16849. [_url.split(".").length - 1].toLocaleLowerCase()
  16850. )
  16851. ) {
  16852. this.showType = 4;
  16853. this.pptImgUrl1 = _url;
  16854. } else {
  16855. this.showType = 2;
  16856. this.pptImgUrl1 =
  16857. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16858. encodeURIComponent(_url);
  16859. }
  16860. } else if (_chapterData[this.taskCount][0].type == 13) {
  16861. this.showType = 4;
  16862. this.pptImgUrl1 = _url;
  16863. } else if (_chapterData[this.taskCount][0].type == 6) {
  16864. this.showType = 1;
  16865. this.text = this.textList[this.taskCount][0];
  16866. }
  16867. }
  16868. }
  16869. this.isClickNav = 0;
  16870. if (
  16871. !_chapterData[this.taskCount].length ||
  16872. _chapterData[this.taskCount][0].type == 12
  16873. ) {
  16874. this.isClickNav = "";
  16875. this.showType = "";
  16876. }
  16877. this.vChapterData = _chapterData;
  16878. } else {
  16879. this.showType = 0;
  16880. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16881. .chapterInfo[0].taskJson;
  16882. var b = [
  16883. "AVI",
  16884. "NAVI",
  16885. "MPEG",
  16886. "ASF",
  16887. "MOV",
  16888. "WMV",
  16889. "3GP",
  16890. "RM",
  16891. "RMVB",
  16892. "FLV",
  16893. "F4V",
  16894. "H.264",
  16895. "H.265",
  16896. "REAL VIDEO",
  16897. "MKV",
  16898. "WebM",
  16899. "HDDVD",
  16900. "MP4",
  16901. "MPG",
  16902. "M4V",
  16903. "MGV",
  16904. "OGV",
  16905. "QTM",
  16906. "STR",
  16907. "AMC",
  16908. "DVX",
  16909. "EVO",
  16910. "DAT",
  16911. "OGG",
  16912. "OGM",
  16913. "MP3",
  16914. ];
  16915. let _chapterData = [];
  16916. for (var i = 0; i < a.length; i++) {
  16917. var c = a[i].chapterData;
  16918. this.vedio[i] = [];
  16919. this.textList[i] = [];
  16920. this.lineList[i] = [];
  16921. this.chapToolList[i] = [];
  16922. this.file[i] = [];
  16923. this.fileC[i] = [];
  16924. _chapterData[i] = c.filter((el) => {
  16925. return el.type != 12;
  16926. });
  16927. this.fileC[i] = c.filter((el) => {
  16928. return el.type == 12;
  16929. });
  16930. for (var j = 0; j < c.length; j++) {
  16931. if (c[j].type == 7) {
  16932. this.chapToolList[i].push(c[j]);
  16933. } else if (c[j].type == 8 || c[j].type == 14) {
  16934. this.lineList[i].push(c[j]);
  16935. } else if (c[j].type == 6) {
  16936. this.textList[i].push(c[j]);
  16937. } else {
  16938. if (
  16939. b.indexOf(
  16940. c[j].url
  16941. .split(".")
  16942. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16943. ) != -1
  16944. ) {
  16945. this.vedio[i].push(c[j]);
  16946. } else {
  16947. this.file[i].push(c[j]);
  16948. }
  16949. }
  16950. }
  16951. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16952. d.sources[0].src =
  16953. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16954. this.playerO[i] = d;
  16955. }
  16956. if (
  16957. _chapterData[this.taskCount].length &&
  16958. _chapterData[this.taskCount][0].type == 2
  16959. ) {
  16960. this.showType = 0;
  16961. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16962. } else {
  16963. if (_chapterData[this.taskCount].length > 0) {
  16964. let _url = _chapterData[this.taskCount][0].url;
  16965. if (
  16966. _chapterData[this.taskCount][0].type == 8 ||
  16967. _chapterData[this.taskCount][0].type == 14
  16968. ) {
  16969. this.showType = 2;
  16970. if (
  16971. _url.indexOf("https://") == -1 &&
  16972. _url.indexOf("http://") == -1
  16973. ) {
  16974. _url = "https://" + _url;
  16975. }
  16976. this.pptImgUrl1 = _url;
  16977. } else if (_chapterData[this.taskCount][0].type == 3) {
  16978. if (
  16979. _url
  16980. .split(".")
  16981. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16982. ) {
  16983. this.showType = 3;
  16984. this.pptImgUrl1 = _url;
  16985. } else if (
  16986. this.isAssetTypeAnImage(
  16987. _url
  16988. .split(".")
  16989. [_url.split(".").length - 1].toLocaleLowerCase()
  16990. )
  16991. ) {
  16992. this.showType = 4;
  16993. this.pptImgUrl1 = _url;
  16994. } else {
  16995. this.showType = 2;
  16996. this.pptImgUrl1 =
  16997. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16998. encodeURIComponent(_url);
  16999. }
  17000. } else if (_chapterData[this.taskCount][0].type == 13) {
  17001. this.showType = 4;
  17002. this.pptImgUrl1 = _url;
  17003. } else if (_chapterData[this.taskCount][0].type == 6) {
  17004. this.showType = 1;
  17005. this.text = this.textList[this.taskCount][0];
  17006. }
  17007. }
  17008. }
  17009. this.isClickNav = 0;
  17010. if (
  17011. !_chapterData[this.taskCount].length ||
  17012. _chapterData[this.taskCount][0].type == 12
  17013. ) {
  17014. this.isClickNav = "";
  17015. this.showType = "";
  17016. }
  17017. this.vChapterData = _chapterData;
  17018. this.$forceUpdate();
  17019. }
  17020. if(this.courseDetail.state == 5){
  17021. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  17022. for (let k = 0; k < chapInfoListCopy[this.taskCount].eList.length; k++) {
  17023. if(!chapInfoListCopy[this.taskCount].eList[k].rule){
  17024. this.againEva(this.taskCount,k)
  17025. }
  17026. }
  17027. }
  17028. // else {
  17029. // this.courseDetail = res.data[0][0];
  17030. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17031. // }
  17032. let _this = this;
  17033. if (_this.timer) {
  17034. clearInterval(_this.timer);
  17035. _this.timer = null;
  17036. }
  17037. if (_this.tcid) {
  17038. _this.getCourseGroup(gindex);
  17039. } else {
  17040. _this.selectSWorks(gindex);
  17041. }
  17042. _this.selectStudent();
  17043. _this.selectSLook();
  17044. _this.getPick();
  17045. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17046. _this.setCTask();
  17047. }
  17048. if (_this.dialogVisibleGroup) {
  17049. _this.groupJson =
  17050. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17051. _this.taskCount
  17052. ].toolChoose[_this.toolindex].groupJson;
  17053. }
  17054. _this.$nextTick(() => {
  17055. setTimeout(() => {
  17056. _this.checkEva();
  17057. }, 1000);
  17058. });
  17059. _this.timer = setInterval(function () {
  17060. // _this.getCourseDetail(2);
  17061. if (_this.tcid) {
  17062. _this.getCourseGroup(gindex);
  17063. } else {
  17064. _this.selectSWorks(gindex);
  17065. }
  17066. _this.selectStudent();
  17067. _this.selectSLook();
  17068. _this.getPick();
  17069. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17070. _this.setCTask();
  17071. }
  17072. if (_this.dialogVisibleGroup) {
  17073. _this.groupJson =
  17074. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17075. _this.taskCount
  17076. ].toolChoose[_this.toolindex].groupJson;
  17077. }
  17078. if (_this.tType == 4 || _this.ispzType == 4) {
  17079. _this.selectPz();
  17080. }
  17081. }, 5000);
  17082. _this.$nextTick(function () {
  17083. setTimeout(() => {
  17084. // var a =
  17085. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17086. // document.getElementsByClassName("vedioList")[0].style.height =
  17087. // a + "px";
  17088. // document.getElementsByClassName("navBox")[0].style.height =
  17089. // a - 40 + "px";
  17090. // if (_this.vedio[_this.taskCount].length > 0) {
  17091. // _this.vedioTime = [];
  17092. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17093. // _this.vedioTime[i] = document.getElementsByClassName(
  17094. // "vjs-duration-display"
  17095. // )[i].textContent;
  17096. // }
  17097. // }
  17098. }, 1000);
  17099. });
  17100. })
  17101. .catch((err) => {
  17102. loading.close();
  17103. console.error(err);
  17104. });
  17105. },
  17106. getCourseGroup(gindex) {
  17107. let params = {
  17108. cid: this.id,
  17109. classid: this.tcid ? this.tcid : "1",
  17110. };
  17111. this.ajax
  17112. .get(this.$store.state.api + "getCourseGroup", params)
  17113. .then((res) => {
  17114. if (res.data && res.data[0].length) {
  17115. if (!this.isGroup) {
  17116. let courseGroup = JSON.parse(res.data[0][0].group);
  17117. courseGroup.group = courseGroup.group.filter((el) => {
  17118. el.works = [];
  17119. return el;
  17120. });
  17121. if (courseGroup.isopen == 2) {
  17122. this.isGroup = false;
  17123. this.selectSWorks(gindex);
  17124. return;
  17125. }
  17126. this.courseGroup = courseGroup;
  17127. let groupPerson = res.data[1];
  17128. let group = JSON.parse(res.data[0][0].group).group;
  17129. let courseGroupStudent = {};
  17130. let courseGroupStudentUid = {};
  17131. for (var i = 0; i < group.length; i++) {
  17132. courseGroupStudent[group[i].id] = [];
  17133. courseGroupStudentUid[group[i].id] = [];
  17134. for (var j = 0; j < groupPerson.length; j++) {
  17135. if (groupPerson[j].groupCid == group[i].id) {
  17136. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17137. courseGroupStudentUid[group[i].id].push(
  17138. groupPerson[j].userid
  17139. );
  17140. }
  17141. }
  17142. }
  17143. this.courseGroupStudent = courseGroupStudent;
  17144. this.courseGroupStudentUid = courseGroupStudentUid;
  17145. }
  17146. if (this.courseGroup.isopen == 2) {
  17147. this.isGroup = false;
  17148. } else {
  17149. this.isGroup = true;
  17150. }
  17151. this.selectSWorks(gindex);
  17152. } else {
  17153. this.selectSWorks(gindex);
  17154. this.isGroup = false;
  17155. }
  17156. })
  17157. .catch((err) => {
  17158. // this.$message.error("网络不佳");
  17159. console.error(err);
  17160. });
  17161. },
  17162. setOperationTime() {
  17163. let _this = this;
  17164. if (_this.opertimer) {
  17165. clearInterval(_this.opertimer);
  17166. _this.opertimer = null;
  17167. }
  17168. _this.opertimer = setInterval(() => {
  17169. _this.setoTime("600");
  17170. }, 600000);
  17171. },
  17172. setoTime(time) {
  17173. let params = [
  17174. {
  17175. uid: this.userid,
  17176. cid: this.id,
  17177. type: "2",
  17178. time: time,
  17179. },
  17180. ];
  17181. this.ajax
  17182. .post(this.$store.state.api + "addOperationTimeT2", params)
  17183. .then((res) => {})
  17184. .catch((err) => {
  17185. console.error(err);
  17186. });
  17187. },
  17188. addPz(type, content) {
  17189. if (type == "1" && this.pzConText == "") {
  17190. this.$message.error("评论不能为空!");
  17191. return;
  17192. }
  17193. let params = [
  17194. {
  17195. cid: this.id,
  17196. uid: this.userid,
  17197. s: this.courseType,
  17198. t: this.taskCount,
  17199. c: type == "1" ? this.pzConText : content,
  17200. type: type,
  17201. },
  17202. ];
  17203. this.ajax
  17204. .post(this.$store.state.api + "addPz2", params)
  17205. .then((res) => {
  17206. this.$message({
  17207. message: "添加成功",
  17208. type: "success",
  17209. });
  17210. this.pzConText = "";
  17211. this.addPzDialog = false;
  17212. this.selectPz();
  17213. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17214. })
  17215. .catch((err) => {
  17216. this.$message.error("添加失败");
  17217. console.error(err);
  17218. });
  17219. },
  17220. setReplyIndex(id, i) {
  17221. this.replyIndex = i;
  17222. this.replyPid = id;
  17223. this.replyDialogVisible = true;
  17224. },
  17225. addHf() {
  17226. if (this.reply == "") {
  17227. this.$message.error("回复不能为空!");
  17228. return;
  17229. }
  17230. let params = [
  17231. {
  17232. cid: this.id,
  17233. uid: this.userid,
  17234. s: this.courseType,
  17235. t: this.taskCount,
  17236. type: "1",
  17237. ct: 2,
  17238. pid: this.replyPid,
  17239. c: this.reply,
  17240. },
  17241. ];
  17242. this.ajax
  17243. .post(this.$store.state.api + "addHf", params)
  17244. .then((res) => {
  17245. this.reply = "";
  17246. this.$message({
  17247. message: "回复成功",
  17248. type: "success",
  17249. });
  17250. this.replyDialogVisible = false;
  17251. this.selectPz();
  17252. })
  17253. .catch((err) => {
  17254. this.$message.error("回复失败");
  17255. console.error(err);
  17256. });
  17257. },
  17258. deletePz(id) {
  17259. this.$confirm("确定删除此评论吗?", "提示", {
  17260. confirmButtonText: "确定",
  17261. cancelButtonText: "取消",
  17262. type: "warning",
  17263. })
  17264. .then(() => {
  17265. let params = [
  17266. {
  17267. id: id,
  17268. },
  17269. ];
  17270. this.ajax
  17271. .post(this.$store.state.api + "deletePz", params)
  17272. .then((res) => {
  17273. this.$message({
  17274. message: "删除成功",
  17275. type: "success",
  17276. });
  17277. this.selectPz();
  17278. })
  17279. .catch((err) => {
  17280. this.$message.error("网络异常");
  17281. console.error(err);
  17282. });
  17283. })
  17284. .catch(() => {});
  17285. },
  17286. deleteReply(id) {
  17287. this.$confirm("确定删除此回复吗?", "提示", {
  17288. confirmButtonText: "确定",
  17289. cancelButtonText: "取消",
  17290. type: "warning",
  17291. })
  17292. .then(() => {
  17293. let params = [
  17294. {
  17295. id: id,
  17296. },
  17297. ];
  17298. this.ajax
  17299. .post(this.$store.state.api + "deleteReply", params)
  17300. .then((res) => {
  17301. this.$message({
  17302. message: "删除成功",
  17303. type: "success",
  17304. });
  17305. this.selectPz();
  17306. })
  17307. .catch((err) => {
  17308. this.$message.error("网络异常");
  17309. console.error(err);
  17310. });
  17311. })
  17312. .catch(() => {});
  17313. },
  17314. setPz() {
  17315. if (this.ispzType == 4) {
  17316. this.ispzType = 0;
  17317. this.pzDialog = false;
  17318. return;
  17319. }
  17320. this.ispzType = 4;
  17321. this.pzDialog = true;
  17322. this.selectPz();
  17323. },
  17324. selectPz() {
  17325. let params = {
  17326. cid: this.id,
  17327. s: this.courseType,
  17328. t: this.taskCount,
  17329. type: this.pzStype,
  17330. uid: this.userid,
  17331. };
  17332. this.ajax
  17333. .get(this.$store.state.api + "selectPzListType", params)
  17334. .then((res) => {
  17335. this.pzList = res.data[0];
  17336. var a = res.data[1];
  17337. for (var i = 0; i < a.length; i++) {
  17338. for (var j = 0; j < this.pzList.length; j++) {
  17339. if (!this.pzList[j].hfList) {
  17340. this.pzList[j].hfList = [];
  17341. }
  17342. if (a[i].pid == this.pzList[j].id) {
  17343. this.pzList[j].hfList.push(a[i]);
  17344. }
  17345. }
  17346. }
  17347. })
  17348. .catch((err) => {
  17349. console.error(err);
  17350. });
  17351. },
  17352. // selectHf() {
  17353. // let params = {
  17354. // cid: this.id,
  17355. // s: this.courseType,
  17356. // t: this.taskCount,
  17357. // };
  17358. // this.ajax
  17359. // .get(this.$store.state.api + "selectHfList", params)
  17360. // .then((res) => {
  17361. // var a = res.data[0];
  17362. // for (var i = 0; i < a.length; i++) {
  17363. // for (var j = 0; j < this.pzList.length; j++) {
  17364. // if (!this.pzList[i].hfList) {
  17365. // this.pzList[i].hfList = [];
  17366. // }
  17367. // if (a[i].pid == this.pzList[j].id) {
  17368. // this.pzList[i].hfList.push(a[i]);
  17369. // }
  17370. // }
  17371. // }
  17372. // })
  17373. // .catch((err) => {
  17374. // console.error(err);
  17375. // });
  17376. // },
  17377. updateSLook() {
  17378. let params = {
  17379. sopen: this.sIsOpen == false ? 1 : 2,
  17380. cid: this.id,
  17381. };
  17382. this.ajax
  17383. .get(this.$store.state.api + "updateCourseSLook", params)
  17384. .then((res) => {
  17385. if (this.sIsOpen == true) {
  17386. this.$message({
  17387. message: "权限设置成功",
  17388. type: "success",
  17389. });
  17390. } else {
  17391. this.$message({
  17392. message: "权限关闭成功",
  17393. type: "success",
  17394. });
  17395. }
  17396. })
  17397. .catch((err) => {
  17398. console.error(err);
  17399. });
  17400. },
  17401. updateFollow() {
  17402. let params = [
  17403. {
  17404. sopen: this.IsFollow == false ? 1 : 2,
  17405. cid: this.id,
  17406. },
  17407. ];
  17408. this.ajax
  17409. .post(this.$store.state.api + "updateCourseFollow", params)
  17410. .then((res) => {
  17411. if (this.IsFollow == true) {
  17412. this.$message({
  17413. message: "开启成功",
  17414. type: "success",
  17415. });
  17416. } else {
  17417. this.$message({
  17418. message: "关闭成功",
  17419. type: "success",
  17420. });
  17421. }
  17422. this.setCTask();
  17423. })
  17424. .catch((err) => {
  17425. console.error(err);
  17426. });
  17427. },
  17428. setCTask() {
  17429. let params = [
  17430. {
  17431. sopen: this.courseType + "-" + this.taskCount,
  17432. cid: this.id,
  17433. },
  17434. ];
  17435. this.ajax
  17436. .post(this.$store.state.api + "updateCourseFollowC", params)
  17437. .then((res) => {})
  17438. .catch((err) => {
  17439. console.error(err);
  17440. });
  17441. },
  17442. updateLookOpen() {
  17443. let params = [
  17444. {
  17445. sopen: this.IsLookOpen == false ? 1 : 2,
  17446. cid: this.id,
  17447. },
  17448. ];
  17449. this.ajax
  17450. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17451. .then((res) => {
  17452. if (this.IsLookOpen == true) {
  17453. // if (this.courseType != 0 && this.taskCount != 0) {
  17454. // this.openTask(0, 0, "0-0");
  17455. // }
  17456. this.$message({
  17457. message: "权限设置成功",
  17458. type: "success",
  17459. });
  17460. } else {
  17461. this.$message({
  17462. message: "权限关闭成功",
  17463. type: "success",
  17464. });
  17465. }
  17466. this.getCourseState(2);
  17467. })
  17468. .catch((err) => {
  17469. console.error(err);
  17470. });
  17471. },
  17472. selectSLook() {
  17473. let params = {
  17474. cid: this.id,
  17475. };
  17476. this.ajax
  17477. .get(this.$store.state.api + "selectCourseSLook", params)
  17478. .then((res) => {
  17479. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17480. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17481. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17482. if (!this.IsLookOpen) {
  17483. this.setNavList();
  17484. } else {
  17485. this.getCourseState(1);
  17486. }
  17487. if (this.IsFollow && this.tType == 2) {
  17488. this.setContent2(false);
  17489. let _followC = res.data[0][0].followC.split("-");
  17490. if (
  17491. this.courseType != _followC[0] ||
  17492. this.taskCount != _followC[1]
  17493. ) {
  17494. this.navList[this.courseType].isOpen = false;
  17495. this.courseType = _followC[0];
  17496. this.navList[this.courseType].isOpen = true;
  17497. this.taskCount = parseInt(_followC[1]);
  17498. this.navId = res.data[0][0].followC;
  17499. document.scrollingElement.scrollTop = 0;
  17500. this.getCourseDetail(2);
  17501. }
  17502. }
  17503. })
  17504. .catch((err) => {
  17505. console.error(err);
  17506. });
  17507. },
  17508. setNavList() {
  17509. if (this.navList.length == 0) {
  17510. this.navList = [];
  17511. var copyList = [];
  17512. for (var l = 0; l < this.chapInfoList.length; l++) {
  17513. var q = this.chapInfoList[l].dyName;
  17514. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17515. var e;
  17516. copyList.push({
  17517. dyName: q,
  17518. isOpen: l === 0 ? true : false,
  17519. task: [],
  17520. });
  17521. for (var r = 0; r < w.length; r++) {
  17522. e = w[r].task;
  17523. if (this.chapInfoList[l].easy == 1) {
  17524. copyList[l].task.push({
  17525. taskName: q,
  17526. id: l + "-" + r,
  17527. isLook: w[r].isLook,
  17528. isOpen: r === 0 ? true : false,
  17529. tool: [],
  17530. });
  17531. } else {
  17532. copyList[l].task.push({
  17533. taskName: e,
  17534. id: l + "-" + r,
  17535. isLook: w[r].isLook,
  17536. isOpen: r === 0 ? true : false,
  17537. tool: [],
  17538. });
  17539. }
  17540. var t = w[r].toolChoose;
  17541. for (var k = 0; k < t.length; k++) {
  17542. var tool = t[k].tool[0];
  17543. copyList[l].task[r].tool.push({
  17544. tool: tool,
  17545. isTool: false,
  17546. });
  17547. }
  17548. // this.navId = this.navId ? this.navId : l + "-" + r;
  17549. // this.navId = l + "-" + r;
  17550. }
  17551. }
  17552. this.navList = copyList;
  17553. this.navList[0].isOpen = false;
  17554. this.navList[this.courseType].isOpen = true;
  17555. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17556. } else {
  17557. this.setNavList2();
  17558. }
  17559. },
  17560. setNavList2() {
  17561. for (var l = 0; l < this.chapInfoList.length; l++) {
  17562. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17563. for (var r = 0; r < w.length; r++) {
  17564. this.navList[l].task[r].isLook = w[r].isLook;
  17565. }
  17566. }
  17567. if (
  17568. this.IsLookOpen &&
  17569. !this.navList[this.courseType].task[this.taskCount].isLook
  17570. ) {
  17571. this.openTask(0, 0, "0-0");
  17572. }
  17573. this.$forceUpdate();
  17574. },
  17575. getCourseState(type) {
  17576. let params = {
  17577. cid: this.id,
  17578. };
  17579. this.ajax
  17580. .get(this.$store.state.api + "getCourseState", params)
  17581. .then((res) => {
  17582. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17583. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17584. console.log('this.chapInfoList',this.chapInfoList);
  17585. this.setNavList();
  17586. this.$forceUpdate();
  17587. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17588. this.addCourseState(2);
  17589. } else {
  17590. this.addCourseState(1);
  17591. }
  17592. })
  17593. .catch((err) => {
  17594. console.error(err);
  17595. });
  17596. },
  17597. addCourseState(type) {
  17598. let _state = this.chapInfoList;
  17599. // this.courseType this.taskCount
  17600. if (type == 1 || type == 2) {
  17601. for (var i = 0; i < _state.length; i++) {
  17602. let el = _state[i].chapterInfo[0].taskJson;
  17603. for (var j = 0; j < el.length; j++) {
  17604. // if (i == 0 && j == 0) {
  17605. // el[j].isLook = true;
  17606. // } else {
  17607. // el[j].isLook = false;
  17608. // }
  17609. if (
  17610. this.courseType > i ||
  17611. (this.courseType == i && this.taskCount + 1 > j)
  17612. ) {
  17613. el[j].isLook = true;
  17614. } else {
  17615. el[j].isLook = false;
  17616. }
  17617. }
  17618. }
  17619. }
  17620. let params = [
  17621. {
  17622. cid: this.id,
  17623. state: JSON.stringify(_state),
  17624. },
  17625. ];
  17626. this.ajax
  17627. .post(
  17628. this.$store.state.api +
  17629. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17630. params
  17631. )
  17632. .then((res) => {
  17633. if (this.IsLookOpen) {
  17634. this.setNavList();
  17635. }
  17636. if (type == 3 && type == 2) {
  17637. this.getCourseState(1);
  17638. }
  17639. })
  17640. .catch((err) => {
  17641. console.error(err);
  17642. });
  17643. },
  17644. getHomeWork() {
  17645. let params = {
  17646. cid: this.id,
  17647. stage: this.courseType,
  17648. task: this.taskCount,
  17649. uid: this.userid,
  17650. };
  17651. this.ajax
  17652. .get(this.$store.state.api + "selectWork", params)
  17653. .then((res) => {
  17654. if (res.data[0].length > 0) {
  17655. this.studyJuri = JSON.parse(res.data[0][0].content);
  17656. this.isNoHomeWork = true;
  17657. }
  17658. })
  17659. .catch((err) => {
  17660. console.error(err);
  17661. });
  17662. },
  17663. isAssetTypeAnImage(ext) {
  17664. return (
  17665. [
  17666. "png",
  17667. "jpg",
  17668. "jpeg",
  17669. "bmp",
  17670. "gif",
  17671. "webp",
  17672. "psd",
  17673. "svg",
  17674. "tiff",
  17675. ].indexOf(ext) !== -1
  17676. );
  17677. },
  17678. switchVideo(media) {
  17679. this.playerO = {};
  17680. this.playerOptions.poster = "";
  17681. this.playerOptions.sources[0].src = media;
  17682. this.playerO = this.playerOptions;
  17683. },
  17684. onPlayerPlay() {},
  17685. onPlayerTimeupdate(player) {
  17686. let gklog = player.cache_.currentTime; //当前播放的秒数
  17687. let a = player.cache_.duration; //视频的总时长
  17688. let gklog2 = parseInt(gklog);
  17689. // if(gklog2 == '3'){
  17690. // player.pause()
  17691. // setTimeout(()=>{
  17692. // player.currentTime(gklog2+1)
  17693. // player.play()
  17694. // },1000)
  17695. // }
  17696. console.log(" onPlayerTimeupdate!", gklog);
  17697. console.log(" onPlayerTimeupdate!", gklog2);
  17698. },
  17699. lookVedio(u, i) {
  17700. this.isClickNav = "";
  17701. // this.playerOptions.sources[0].src = u;
  17702. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17703. d.sources[0].src = u;
  17704. this.playerO[this.taskCount] = d;
  17705. this.showType = 0;
  17706. // this.isClickNav = "video" + i;
  17707. this.isClickNav = i;
  17708. this.$forceUpdate();
  17709. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17710. },
  17711. lookText(i, t) {
  17712. this.isClickNav = "";
  17713. // this.text = this.textList[i][t];
  17714. this.text = this.vChapterData[i][t];
  17715. // this.dialogVisible1 = true;
  17716. this.showType = 1;
  17717. // this.isClickNav = "text" + t;
  17718. this.isClickNav = t;
  17719. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17720. },
  17721. lookTools(i, t) {
  17722. this.chapTools = this.chapToolList[i][t];
  17723. this.dialogVisible2 = true;
  17724. },
  17725. async openFile(f) {
  17726. this.pptImgUrl = "";
  17727. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17728. if (
  17729. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17730. -1
  17731. ) {
  17732. let _uuurl = await this.checkLink(f);
  17733. this.pptImgUrl =
  17734. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17735. this.showPDF = false;
  17736. this.dialogVisible3 = true;
  17737. } else if (
  17738. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17739. ) {
  17740. this.pptImgUrl = f;
  17741. this.showPDF = true;
  17742. this.dialogVisible3 = true;
  17743. }
  17744. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17745. },
  17746. openTable(f) {
  17747. this.tableJson = JSON.parse(f.works);
  17748. this.dialogVisibleTable2 = true;
  17749. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17750. },
  17751. openWord(f) {
  17752. this.tableJson = JSON.parse(f.works);
  17753. this.dialogVisibleTable3 = true;
  17754. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17755. },
  17756. doUrl(url, i) {
  17757. this.isClickNav = "";
  17758. this.pptImgUrl1 = "";
  17759. this.showType = 2;
  17760. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17761. url = "https://" + url;
  17762. }
  17763. this.pptImgUrl1 = "";
  17764. setTimeout(() => {
  17765. this.pptImgUrl1 = url;
  17766. }, 500);
  17767. // this.isClickNav = "line" + i;
  17768. this.isClickNav = i;
  17769. this.$forceUpdate();
  17770. },
  17771. checkPhoto(f, i) {
  17772. this.showType = 4;
  17773. this.pptImgUrl1 = f.url;
  17774. this.isClickNav = i;
  17775. this.$forceUpdate();
  17776. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17777. },
  17778. async downFile(f, i) {
  17779. this.isClickNav = "";
  17780. this.pptImgUrl1 = "";
  17781. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17782. if (
  17783. a.indexOf(
  17784. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17785. ) != -1
  17786. ) {
  17787. let _uuurl = await this.checkLink(f.url);
  17788. this.pptImgUrl1 =
  17789. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17790. // this.dialogVisible3 = true;
  17791. this.showType = 2;
  17792. } else if (
  17793. this.isAssetTypeAnImage(
  17794. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17795. )
  17796. ) {
  17797. this.showType = 4;
  17798. this.pptImgUrl1 = f.url;
  17799. } else if (
  17800. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17801. "PDF"
  17802. ) {
  17803. this.pptImgUrl1 = f.url;
  17804. // this.dialogVisible3 = true;
  17805. this.showType = 3;
  17806. } else {
  17807. window.open(this.file[i].url);
  17808. }
  17809. // this.isClickNav = "word" + i;
  17810. this.isClickNav = i;
  17811. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17812. },
  17813. downFileList(i) {
  17814. window.open(this.noImgList[i].url);
  17815. },
  17816. openAddWork() {
  17817. this.dialogVisible = true;
  17818. },
  17819. addBzWorks() {
  17820. let params = [
  17821. {
  17822. uid: this.userid,
  17823. cid: this.id,
  17824. stage: this.courseType,
  17825. task: this.taskCount,
  17826. tool: this.toolindex,
  17827. content: JSON.stringify(this.eScore),
  17828. type: 6,
  17829. },
  17830. ];
  17831. this.ajax
  17832. .post(this.$store.state.api + "addCourseWorks", params)
  17833. .then((res) => {
  17834. this.$message({
  17835. message: "提交成功",
  17836. type: "success",
  17837. });
  17838. this.eScore = { eBzText: "", eStar: [] };
  17839. this.studentEvalDialogVisible = false;
  17840. this.selectSWorks();
  17841. })
  17842. .catch((err) => {
  17843. this.$message.error("提交失败");
  17844. console.error(err);
  17845. });
  17846. },
  17847. addBzWorksTeacher() {
  17848. let params = [
  17849. {
  17850. uid: this.sStudent.userid,
  17851. cid: this.id,
  17852. stage: this.courseType,
  17853. task: this.taskCount,
  17854. tool: this.toolindex,
  17855. content: JSON.stringify(this.eScore),
  17856. type: 6,
  17857. },
  17858. ];
  17859. this.ajax
  17860. .post(this.$store.state.api + "addCourseWorks", params)
  17861. .then((res) => {
  17862. this.$message({
  17863. message: "提交成功",
  17864. type: "success",
  17865. });
  17866. this.eScore = { eBzText: "", eStar: [] };
  17867. this.studentEvalDialogVisibleTeacher = false;
  17868. this.selectSWorks();
  17869. })
  17870. .catch((err) => {
  17871. this.$message.error("提交失败");
  17872. console.error(err);
  17873. });
  17874. },
  17875. addStudentAsk() {
  17876. if (!this.radio.length) {
  17877. this.$message.error("请选择选项");
  17878. return;
  17879. }
  17880. for (var i = 0; i < this.askJson.askCount; i++) {
  17881. if (
  17882. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17883. (this.radio[i] !== 0 && !this.radio[i])
  17884. ) {
  17885. this.$message.error("请选择选项");
  17886. return;
  17887. }
  17888. }
  17889. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17890. let params = [
  17891. {
  17892. uid: this.userid,
  17893. cid: this.id,
  17894. stage: this.courseType,
  17895. task: this.taskCount,
  17896. tool: this.toolindex,
  17897. content: JSON.stringify(this.askList),
  17898. type: 2,
  17899. },
  17900. ];
  17901. this.ajax
  17902. .post(this.$store.state.api + "addCourseWorks", params)
  17903. .then((res) => {
  17904. this.$message({
  17905. message: "提交成功",
  17906. type: "success",
  17907. });
  17908. this.askList = [];
  17909. this.dialogVisible5 = false;
  17910. this.selectStudent();
  17911. this.selectSWorks();
  17912. this.selectSLook();
  17913. })
  17914. .catch((err) => {
  17915. this.$message.error("提交失败");
  17916. console.error(err);
  17917. });
  17918. },
  17919. addStudentAskTeacher() {
  17920. if (!this.radio.length) {
  17921. this.$message.error("请选择选项");
  17922. return;
  17923. }
  17924. for (var i = 0; i < this.askJson.askCount; i++) {
  17925. if (
  17926. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17927. (this.radio[i] !== 0 && !this.radio[i])
  17928. ) {
  17929. this.$message.error("请选择选项");
  17930. return;
  17931. }
  17932. }
  17933. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17934. let params = [
  17935. {
  17936. uid: this.sStudent.userid,
  17937. cid: this.id,
  17938. stage: this.courseType,
  17939. task: this.taskCount,
  17940. tool: this.toolindex,
  17941. content: JSON.stringify(this.askList),
  17942. type: 2,
  17943. },
  17944. ];
  17945. this.ajax
  17946. .post(this.$store.state.api + "addCourseWorks", params)
  17947. .then((res) => {
  17948. this.$message({
  17949. message: "提交成功",
  17950. type: "success",
  17951. });
  17952. this.askList = [];
  17953. this.dialogVisible5Teacher = false;
  17954. this.selectStudent();
  17955. this.selectSWorks();
  17956. this.selectSLook();
  17957. })
  17958. .catch((err) => {
  17959. this.$message.error("提交失败");
  17960. console.error(err);
  17961. });
  17962. },
  17963. addStudentTest() {
  17964. if (!this.radio.length) {
  17965. this.$message.error("请选择选项");
  17966. return;
  17967. }
  17968. for (var i = 0; i < this.testJson.testCount; i++) {
  17969. if (
  17970. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17971. (this.radio[i] !== 0 && !this.radio[i])
  17972. ) {
  17973. this.$message.error("请选择选项");
  17974. return;
  17975. }
  17976. }
  17977. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17978. let params = [
  17979. {
  17980. uid: this.userid,
  17981. cid: this.id,
  17982. stage: this.courseType,
  17983. task: this.taskCount,
  17984. tool: this.toolindex,
  17985. content: JSON.stringify(this.askList),
  17986. type: 8,
  17987. },
  17988. ];
  17989. this.ajax
  17990. .post(this.$store.state.api + "addCourseWorks", params)
  17991. .then((res) => {
  17992. this.$message({
  17993. message: "提交成功",
  17994. type: "success",
  17995. });
  17996. this.askList = [];
  17997. this.dialogVisibleChoice = false;
  17998. this.selectStudent();
  17999. this.selectSWorks();
  18000. this.selectSLook();
  18001. })
  18002. .catch((err) => {
  18003. this.$message.error("提交失败");
  18004. console.error(err);
  18005. });
  18006. },
  18007. addStudentTestTeacher() {
  18008. if (!this.radio.length) {
  18009. this.$message.error("请选择选项");
  18010. return;
  18011. }
  18012. for (var i = 0; i < this.testJson.testCount; i++) {
  18013. if (
  18014. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18015. (this.radio[i] !== 0 && !this.radio[i])
  18016. ) {
  18017. this.$message.error("请选择选项");
  18018. return;
  18019. }
  18020. }
  18021. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18022. let params = [
  18023. {
  18024. uid: this.sStudent.userid,
  18025. cid: this.id,
  18026. stage: this.courseType,
  18027. task: this.taskCount,
  18028. tool: this.toolindex,
  18029. content: JSON.stringify(this.askList),
  18030. type: 8,
  18031. },
  18032. ];
  18033. this.ajax
  18034. .post(this.$store.state.api + "addCourseWorks", params)
  18035. .then((res) => {
  18036. this.$message({
  18037. message: "提交成功",
  18038. type: "success",
  18039. });
  18040. this.askList = [];
  18041. this.dialogVisibleChoiceTeacher = false;
  18042. this.selectStudent();
  18043. this.selectSWorks();
  18044. this.selectSLook();
  18045. })
  18046. .catch((err) => {
  18047. this.$message.error("提交失败");
  18048. console.error(err);
  18049. });
  18050. },
  18051. addWork() {
  18052. if (this.studyJuri[0].content == "") {
  18053. this.$message.error("请将信息填写完整");
  18054. return;
  18055. } else if (this.studyJuri[0].cover.length == 0) {
  18056. this.$message.error("请将信息填写完整");
  18057. return;
  18058. } else if (this.studyJuri[0].upVedio.length == 0) {
  18059. this.$message.error("请将信息填写完整");
  18060. return;
  18061. }
  18062. if (this.isNoHomeWork) {
  18063. this.$confirm(
  18064. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18065. "提示",
  18066. {
  18067. confirmButtonText: "确定",
  18068. cancelButtonText: "取消",
  18069. type: "warning",
  18070. }
  18071. )
  18072. .then(() => {
  18073. let params = [
  18074. {
  18075. uid: this.userid,
  18076. cid: this.id,
  18077. stage: this.courseType,
  18078. task: this.taskCount,
  18079. content: JSON.stringify(this.studyJuri),
  18080. },
  18081. ];
  18082. this.ajax
  18083. .post(this.$store.state.api + "addWorks", params)
  18084. .then((res) => {
  18085. this.$message({
  18086. message: "提交成功",
  18087. type: "success",
  18088. });
  18089. this.isNoHomeWork = true;
  18090. this.dialogVisible = false;
  18091. })
  18092. .catch((err) => {
  18093. this.$message.error("提交失败");
  18094. console.error(err);
  18095. });
  18096. })
  18097. .catch(() => {});
  18098. } else {
  18099. let params = [
  18100. {
  18101. uid: this.userid,
  18102. cid: this.id,
  18103. stage: this.courseType,
  18104. task: this.taskCount,
  18105. content: JSON.stringify(this.studyJuri),
  18106. },
  18107. ];
  18108. this.ajax
  18109. .post(this.$store.state.api + "addWorks", params)
  18110. .then((res) => {
  18111. this.$message({
  18112. message: "提交成功",
  18113. type: "success",
  18114. });
  18115. this.isNoHomeWork = true;
  18116. this.dialogVisible = false;
  18117. })
  18118. .catch((err) => {
  18119. this.$message.error("提交失败");
  18120. console.error(err);
  18121. });
  18122. }
  18123. },
  18124. selectCount() {
  18125. let params = {
  18126. cid: this.id,
  18127. chid: this.courseType,
  18128. uid: this.userid,
  18129. };
  18130. this.ajax
  18131. .get(this.$store.state.api + "selectToolsCount", params)
  18132. .then((res) => {
  18133. for (var i = 0; i < res.data[0].length; i++) {
  18134. if (res.data[0][i].tools == 1) {
  18135. this.wbCount = res.data[0][i].count;
  18136. } else if (res.data[0][i].tools == 2) {
  18137. this.wordCount = res.data[0][i].count;
  18138. } else if (res.data[0][i].tools == 3) {
  18139. this.mindCount = res.data[0][i].count;
  18140. } else if (res.data[0][i].tools == 4) {
  18141. this.askCount = res.data[0][i].count;
  18142. } else if (res.data[0][i].tools == 6) {
  18143. this.noteCount = res.data[0][i].count;
  18144. } else if (res.data[0][i].tools == 7) {
  18145. this.mindNetWorkCount = res.data[0][i].count;
  18146. } else if (res.data[0][i].tools == 8) {
  18147. this.libraryCount = res.data[0][i].count;
  18148. } else if (res.data[0][i].tools == 16) {
  18149. this.workCount = res.data[0][i].count;
  18150. } else if (res.data[0][i].tools == 10) {
  18151. this.timeCount = res.data[0][i].count;
  18152. } else if (res.data[0][i].tools == 15) {
  18153. this.answerCount = res.data[0][i].count;
  18154. } else if (res.data[0][i].tools == 18) {
  18155. this.trainCount = res.data[0][i].count;
  18156. }
  18157. }
  18158. })
  18159. .catch((err) => {
  18160. console.error(err);
  18161. });
  18162. },
  18163. openTools(t, i, index, c, sName,id) {
  18164. var z = JSON.parse(c);
  18165. this.noteName = sName;
  18166. if (t == 4) {
  18167. this.radio = [];
  18168. this.isAnswer = false;
  18169. let b = z[0].anwer;
  18170. this.radio = b;
  18171. this.askJson = z[0].askJson;
  18172. this.isAnswer = true;
  18173. this.dialogVisible5 = true;
  18174. } else if (t == 45) {
  18175. this.radio = [];
  18176. this.isAnswer = false;
  18177. let b = z[0].anwer;
  18178. this.radio = b;
  18179. this.testJson = z[0].testJson;
  18180. this.isAnswer = true;
  18181. this.dialogVisibleChoice = true;
  18182. }else if(t == 69){
  18183. this.oldEnglishJson1 = {}
  18184. this.oldEnglishJson = {}
  18185. this.englishList1 = {}
  18186. this.newEngIndex = -1;
  18187. this.isNoUserid = false;
  18188. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18189. .toolChoose[i].englishList;
  18190. this.oldEnglishJson = z;
  18191. this.engWid = id;
  18192. this.newEnglishList = { engTitle:"",engText:"" }
  18193. this.newEnglishList1 = []
  18194. this.selectEngC(id,z);
  18195. }else if(t == 62){
  18196. this.videoType = 1;
  18197. this.videoJson = {};
  18198. this.videoJson = JSON.parse(c);
  18199. // this.videoJson =
  18200. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18201. // index
  18202. // ].toolChoose[i].videoJson;
  18203. this.dialogVisibleVideo = true;
  18204. }
  18205. // else if (t == 15) {
  18206. // this.answerQ = "";
  18207. // this.questionAnswer = "";
  18208. // this.answerQ = z[0].answerTitle;
  18209. // this.questionAnswer = z[0].answer;
  18210. // this.answerDialogVisible = true;
  18211. // }
  18212. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18213. },
  18214. fastText(p, t) {
  18215. if (t == 1) {
  18216. this.commentText += p;
  18217. } else {
  18218. this.eScore.eBzText += p;
  18219. }
  18220. },
  18221. addTools(t, i, index) {
  18222. var a = 0;
  18223. // this.taskCount = index;
  18224. this.toolindex = i;
  18225. if (t == 1) {
  18226. if (this.wbCount > 0) {
  18227. this.updateCount(this.wbCount, t);
  18228. } else {
  18229. this.wbCount++;
  18230. a = this.wbCount;
  18231. this.toolsCount(a, t);
  18232. }
  18233. window.parent.postMessage(
  18234. {
  18235. tools: "1",
  18236. cid: this.id,
  18237. stage: this.courseType,
  18238. task: this.taskCount,
  18239. tool: i,
  18240. },
  18241. "*"
  18242. );
  18243. } else if (t == 2) {
  18244. if (this.wordCount > 0) {
  18245. this.updateCount(this.wordCount, t);
  18246. } else {
  18247. this.wordCount++;
  18248. a = this.wordCount;
  18249. this.toolsCount(a, t);
  18250. }
  18251. window.parent.postMessage({ tools: "2" }, "*");
  18252. } else if (t == 3) {
  18253. if (this.mindCount > 0) {
  18254. this.updateCount(this.mindCount, t);
  18255. } else {
  18256. this.mindCount++;
  18257. a = this.mindCount;
  18258. this.toolsCount(a, t);
  18259. }
  18260. window.parent.postMessage(
  18261. {
  18262. tools: "3",
  18263. cid: this.id,
  18264. stage: this.courseType,
  18265. task: this.taskCount,
  18266. tool: i,
  18267. },
  18268. "*"
  18269. );
  18270. } else if (t == 4) {
  18271. this.radio = [];
  18272. this.noteName = "";
  18273. this.isAnswer = false;
  18274. if (this.askCount > 0) {
  18275. this.updateCount(this.askCount, t);
  18276. } else {
  18277. this.askCount++;
  18278. a = this.askCount;
  18279. this.toolsCount(a, t);
  18280. }
  18281. if (!this.dialogVisible2) {
  18282. this.askJson.askJson =
  18283. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18284. index
  18285. ].toolChoose[i].askJson;
  18286. this.askJson.askTitle =
  18287. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18288. index
  18289. ].toolChoose[i].askTitle;
  18290. this.askJson.askCount =
  18291. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18292. index
  18293. ].toolChoose[i].askCount;
  18294. } else {
  18295. this.askJson.askJson = this.chapTools.askJson.askJson;
  18296. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18297. this.askJson.askCount = this.chapTools.askJson.askCount;
  18298. }
  18299. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18300. if (this.askJson.askJson[k].type == "2") {
  18301. this.radio.push([]);
  18302. } else {
  18303. this.radio.push("");
  18304. }
  18305. }
  18306. this.dialogVisible5 = true;
  18307. // window.parent.postMessage({ tools: "4" }, "*");
  18308. } else if (t == 45) {
  18309. this.noteName = "";
  18310. this.radio = [];
  18311. this.isAnswer = false;
  18312. if (this.askCount > 0) {
  18313. this.updateCount(this.askCount, t);
  18314. } else {
  18315. this.askCount++;
  18316. a = this.askCount;
  18317. this.toolsCount(a, t);
  18318. }
  18319. this.testJson =
  18320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18321. index
  18322. ].toolChoose[i].testJson;
  18323. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18324. if (this.testJson.testJson[k].type == "2") {
  18325. this.radio.push([]);
  18326. } else {
  18327. this.radio.push("");
  18328. }
  18329. }
  18330. this.dialogVisibleChoice = true;
  18331. // window.parent.postMessage({ tools: "4" }, "*");
  18332. } else if (t == 5) {
  18333. if (this.scoreCount > 0) {
  18334. this.updateCount(this.scoreCount, t);
  18335. } else {
  18336. this.scoreCount++;
  18337. a = this.scoreCount;
  18338. this.toolsCount(a, t);
  18339. }
  18340. this.dialogVisible4 = true;
  18341. // window.parent.postMessage({ tools: "5" }, "*");
  18342. } else if (t == 6) {
  18343. if (this.noteCount > 0) {
  18344. this.updateCount(this.noteCount, t);
  18345. } else {
  18346. this.noteCount++;
  18347. a = this.noteCount;
  18348. this.toolsCount(a, t);
  18349. }
  18350. window.parent.postMessage(
  18351. {
  18352. tools: "6",
  18353. cid: this.id,
  18354. stage: this.courseType,
  18355. task: this.taskCount,
  18356. tool: i,
  18357. },
  18358. "*"
  18359. );
  18360. } else if (t == 7) {
  18361. if (this.mindNetWorkCount > 0) {
  18362. this.updateCount(this.mindNetWorkCount, t);
  18363. } else {
  18364. this.mindNetWorkCount++;
  18365. a = this.mindNetWorkCount;
  18366. this.toolsCount(a, t);
  18367. }
  18368. window.parent.postMessage(
  18369. {
  18370. tools: "7",
  18371. cid: this.id,
  18372. stage: this.courseType,
  18373. task: this.taskCount,
  18374. tool: i,
  18375. },
  18376. "*"
  18377. );
  18378. } else if (t == 16) {
  18379. if (this.workCount > 0) {
  18380. this.updateCount(this.workCount, t);
  18381. } else {
  18382. this.workCount++;
  18383. a = this.workCount;
  18384. this.toolsCount(a, t);
  18385. }
  18386. this.dialogVisible = true;
  18387. } else if (t == 50) {
  18388. if (this.tType == 2) {
  18389. this.$message.error("不支持学生使用");
  18390. return;
  18391. }
  18392. this.plworkFile = [];
  18393. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18394. if (!this.uploadCid) {
  18395. this.$message.error(
  18396. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18397. );
  18398. return;
  18399. }
  18400. // this.uploadCid =
  18401. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18402. // index
  18403. // ].toolChoose[i].uploadJson[0];
  18404. this.selectUploadStudent(2);
  18405. } else if (t == 8) {
  18406. if (this.libraryCount > 0) {
  18407. this.updateCount(this.libraryCount, t);
  18408. } else {
  18409. this.libraryCount++;
  18410. a = this.libraryCount;
  18411. this.toolsCount(a, t);
  18412. }
  18413. window.parent.postMessage({ tools: "8" }, "*");
  18414. } else if (t == 17) {
  18415. if (this.libraryCount > 0) {
  18416. this.updateCount(this.libraryCount, t);
  18417. } else {
  18418. this.libraryCount++;
  18419. a = this.libraryCount;
  18420. this.toolsCount(a, t);
  18421. }
  18422. window.parent.postMessage({ tools: "17" }, "*");
  18423. } else if (t == 18) {
  18424. if (this.trainCount > 0) {
  18425. this.updateCount(this.trainCount, t);
  18426. } else {
  18427. this.trainCount++;
  18428. a = this.trainCount;
  18429. this.toolsCount(a, t);
  18430. }
  18431. window.parent.postMessage({ tools: "18" }, "*");
  18432. } else if (t == 10) {
  18433. if (this.timeCount > 0) {
  18434. this.updateCount(this.timeCount, t);
  18435. } else {
  18436. this.timeCount++;
  18437. a = this.timeCount;
  18438. this.toolsCount(a, t);
  18439. }
  18440. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18441. .taskJson[index].toolChoose[i].preTime
  18442. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18443. .toolChoose[i].preTime
  18444. : "";
  18445. this.timeDialogVisible = true;
  18446. } else if (t == 15) {
  18447. this.answerQ = "";
  18448. this.questionAnswer = "";
  18449. if (this.answerCount > 0) {
  18450. this.updateCount(this.answerCount, t);
  18451. } else {
  18452. this.answerCount++;
  18453. a = this.answerCount;
  18454. this.toolsCount(a, t);
  18455. }
  18456. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18457. .taskJson[index].toolChoose[i].answerQ
  18458. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18459. .toolChoose[i].answerQ
  18460. : "";
  18461. this.answerDialogVisible = true;
  18462. } else if (t == 21) {
  18463. window.parent.postMessage({ tools: "21" }, "*");
  18464. } else if (t == 22) {
  18465. window.parent.postMessage({ tools: "22" }, "*");
  18466. } else if (t == 23) {
  18467. window.parent.postMessage({ tools: "23" }, "*");
  18468. } else if (t == 24) {
  18469. window.parent.postMessage({ tools: "24" }, "*");
  18470. } else if (t == 25) {
  18471. window.parent.postMessage({ tools: "25" }, "*");
  18472. } else if (t == 31) {
  18473. window.parent.postMessage({ tools: "31" }, "*");
  18474. } else if (t == 28) {
  18475. window.parent.postMessage({ tools: "28" }, "*");
  18476. } else if (t == 37) {
  18477. window.parent.postMessage({ tools: "37" }, "*");
  18478. } else if (t == 38) {
  18479. window.parent.postMessage({ tools: "38" }, "*");
  18480. } else if (t == 39) {
  18481. window.parent.postMessage({ tools: "39" }, "*");
  18482. } else if (t == 32) {
  18483. window.parent.postMessage({ tools: "32" }, "*");
  18484. } else if (t == 66) {
  18485. window.parent.postMessage({ tools: "66" }, "*");
  18486. } else if (t == 67) {
  18487. window.parent.postMessage({ tools: "67" }, "*");
  18488. } else if (t == 68) {
  18489. window.parent.postMessage({ tools: "68" }, "*");
  18490. } else if (t == 57) {
  18491. // window.parent.postMessage({ tools: "57" }, "*");
  18492. window.parent.postMessage(
  18493. {
  18494. tools: "57u",
  18495. cid: this.id,
  18496. stage: this.courseType,
  18497. task: this.taskCount,
  18498. tool: i,
  18499. },
  18500. "*"
  18501. );
  18502. } else if (t == 58) {
  18503. window.parent.postMessage({ tools: "58" }, "*");
  18504. } else if (t == 59) {
  18505. window.parent.postMessage({ tools: "59" }, "*");
  18506. } else if (t == 60) {
  18507. window.parent.postMessage({ tools: "60" }, "*");
  18508. } else if (t == 61) {
  18509. window.parent.postMessage({ tools: "61" }, "*");
  18510. } else if (t == 63) {
  18511. window.parent.postMessage({ tools: "63" }, "*");
  18512. } else if (t == 71) {
  18513. window.parent.postMessage({ tools: "71" }, "*");
  18514. } else if (t == 69) {
  18515. if (this.worksStudent[i].length) {
  18516. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18517. if (this.userid == this.worksStudent[i][k].userid) {
  18518. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18519. break;
  18520. } else {
  18521. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18522. }
  18523. }
  18524. } else {
  18525. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18526. }
  18527. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18528. .taskJson[index].toolChoose[i].englishList
  18529. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18530. .toolChoose[i].englishList
  18531. : {};
  18532. this.englishToolIndex = i;
  18533. this.myAnList = this.myAnswerList1;
  18534. this.engDialogVisible = true;
  18535. } else if (t == 70) {
  18536. if (this.worksStudent[i].length) {
  18537. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18538. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18539. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18540. break;
  18541. } else {
  18542. this.englishVoiceJsonWork = [];
  18543. }
  18544. }
  18545. } else {
  18546. this.englishVoiceJsonWork = [];
  18547. }
  18548. let englishVoiceJson = {}
  18549. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18550. .taskJson[index].toolChoose[i].englishVoiceJson
  18551. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18552. .toolChoose[i].englishVoiceJson
  18553. : {};
  18554. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18555. this.EnglishVoiceDialog = true;
  18556. } else if (t == 65) {
  18557. if (this.tType == 2) {
  18558. this.$message.error("不支持学生使用");
  18559. return;
  18560. }
  18561. this.uploadCid = this.tcid;
  18562. if (!this.uploadCid) {
  18563. this.$message.error(
  18564. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18565. );
  18566. return;
  18567. }
  18568. this.selectPickStudent();
  18569. } else if (t == 26) {
  18570. window.parent.postMessage(
  18571. {
  18572. tools: "26",
  18573. cid: this.id,
  18574. stage: this.courseType,
  18575. task: this.taskCount,
  18576. tool: i,
  18577. },
  18578. "*"
  18579. );
  18580. } else if (t == 40) {
  18581. if (this.evalCount > 0) {
  18582. this.updateCount(this.evalCount, t);
  18583. } else {
  18584. this.evalCount++;
  18585. a = this.evalCount;
  18586. this.toolsCount(a, t);
  18587. }
  18588. this.eScore = { eBzText: "", eStar: [] };
  18589. if (this.worksStudent[i].length) {
  18590. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18591. if (this.userid == this.worksStudent[i][k].userid) {
  18592. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18593. this.rateJson =
  18594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18595. index
  18596. ].toolChoose[i].rateJson;
  18597. break;
  18598. } else {
  18599. this.rateJson =
  18600. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18601. index
  18602. ].toolChoose[i].rateJson;
  18603. }
  18604. }
  18605. } else {
  18606. this.rateJson =
  18607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18608. index
  18609. ].toolChoose[i].rateJson;
  18610. }
  18611. this.isStar = false;
  18612. this.studentEvalDialogVisible = true;
  18613. } else if (t == 41) {
  18614. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18615. .taskJson[index].toolChoose[i].selectJson
  18616. ? JSON.parse(
  18617. JSON.stringify(
  18618. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18619. index
  18620. ].toolChoose[i].selectJson
  18621. )
  18622. )
  18623. : { url: "", select: [], answer: [] };
  18624. if (this.worksStudent[i].length) {
  18625. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18626. if (this.userid == this.worksStudent[i][k].userid) {
  18627. var a = this.worksStudent[i][k].works.split(",");
  18628. for (var ki = 0; ki < a.length; ki++) {
  18629. a[ki] = parseInt(a[ki]);
  18630. }
  18631. this.selectAnswer = {
  18632. answer: a,
  18633. stu: this.worksStudent[i][k].sName,
  18634. };
  18635. break;
  18636. } else {
  18637. this.selectAnswer = { answer: [], stu: "" };
  18638. }
  18639. }
  18640. } else {
  18641. this.selectAnswer = { answer: [], stu: "" };
  18642. }
  18643. this.isSelect = false;
  18644. this.dialogVisibleSelect = true;
  18645. } else if (t == 44) {
  18646. window.parent.postMessage({ tools: "44" }, "*");
  18647. } else if (t == 47) {
  18648. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18649. .taskJson[index].toolChoose[i].sentenceList
  18650. ? JSON.parse(
  18651. JSON.stringify(
  18652. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18653. index
  18654. ].toolChoose[i].sentenceList
  18655. )
  18656. )
  18657. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18658. for (var q = 0; q < this.sentenceList.length; q++) {
  18659. this.sentenceList[q].chooseSenList = [];
  18660. this.sentenceList[q].addChangeSen = [];
  18661. this.sentenceList[q].addChangeSen = JSON.parse(
  18662. JSON.stringify(this.sentenceList[q].addSentence)
  18663. );
  18664. this.sentenceList[q].chooseSenList.length =
  18665. this.sentenceList[q].rightAnswer.length;
  18666. }
  18667. this.dialogVisibleSentence = true;
  18668. } else if (t == 48) {
  18669. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18670. .taskJson[index].toolChoose[i].tableJson
  18671. ? JSON.parse(
  18672. JSON.stringify(
  18673. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18674. index
  18675. ].toolChoose[i].tableJson
  18676. )
  18677. )
  18678. : { text: "" };
  18679. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18680. if (this.worksStudent[i].length) {
  18681. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18682. if (this.userid == this.worksStudent[i][k].userid) {
  18683. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18684. break;
  18685. }
  18686. }
  18687. }
  18688. this.dialogVisibleTable = true;
  18689. } else if (t == 52) {
  18690. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18691. .taskJson[index].toolChoose[i].wordJson
  18692. ? JSON.parse(
  18693. JSON.stringify(
  18694. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18695. index
  18696. ].toolChoose[i].wordJson
  18697. )
  18698. )
  18699. : { text: "" };
  18700. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18701. if (this.worksStudent[i].length) {
  18702. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18703. if (this.userid == this.worksStudent[i][k].userid) {
  18704. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18705. break;
  18706. }
  18707. }
  18708. }
  18709. this.dialogVisibleWord = true;
  18710. } else if (t == 49) {
  18711. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18712. return
  18713. }
  18714. this.groupJson =
  18715. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18716. index
  18717. ].toolChoose[i].groupJson;
  18718. this.islock = this.groupJson.islock == 1 ? true : false;
  18719. this.dialogVisibleGroup = true;
  18720. } else if (t == 62) {
  18721. this.videoType = 0;
  18722. this.videoJson = {};
  18723. this.videoJson =
  18724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18725. index
  18726. ].toolChoose[i].videoJson;
  18727. this.dialogVisibleVideo = true;
  18728. }
  18729. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18730. },
  18731. teacherWorkSubmit(t, i, index, s) {
  18732. this.sStudent = s;
  18733. this.toolindex = i;
  18734. this.sTool = t;
  18735. if (this.tType !== "1" && this.tType !== "4") {
  18736. return;
  18737. }
  18738. if (t == 16 || t == 32 || t == 50) {
  18739. this.dialogVisibleWorks = true;
  18740. } else if (t == 15) {
  18741. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18742. .taskJson[index].toolChoose[i].answerQ
  18743. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18744. .toolChoose[i].answerQ
  18745. : "";
  18746. this.questionAnswer = "";
  18747. this.answerDialogVisibleTeacher = true; //问答
  18748. } else if (t == 52) {
  18749. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18750. .taskJson[index].toolChoose[i].wordJson
  18751. ? JSON.parse(
  18752. JSON.stringify(
  18753. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18754. index
  18755. ].toolChoose[i].wordJson
  18756. )
  18757. )
  18758. : { text: "" };
  18759. if (this.worksStudent[i].length) {
  18760. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18761. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18762. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18763. break;
  18764. }
  18765. }
  18766. }
  18767. this.dialogVisibleWordTeacher = true; //文档
  18768. } else if (t == 4) {
  18769. this.radio = [];
  18770. this.noteName = "";
  18771. this.isAnswer = false;
  18772. if (this.askCount > 0) {
  18773. this.updateCount(this.askCount, t);
  18774. } else {
  18775. this.askCount++;
  18776. a = this.askCount;
  18777. this.toolsCount(a, t);
  18778. }
  18779. if (!this.dialogVisible2) {
  18780. this.askJson.askJson =
  18781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18782. index
  18783. ].toolChoose[i].askJson;
  18784. this.askJson.askTitle =
  18785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18786. index
  18787. ].toolChoose[i].askTitle;
  18788. this.askJson.askCount =
  18789. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18790. index
  18791. ].toolChoose[i].askCount;
  18792. } else {
  18793. this.askJson.askJson = this.chapTools.askJson.askJson;
  18794. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18795. this.askJson.askCount = this.chapTools.askJson.askCount;
  18796. }
  18797. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18798. if (this.askJson.askJson[k].type == "2") {
  18799. this.radio.push([]);
  18800. } else {
  18801. this.radio.push("");
  18802. }
  18803. }
  18804. this.dialogVisible5Teacher = true;
  18805. } else if (t == 45) {
  18806. this.noteName = "";
  18807. this.radio = [];
  18808. this.isAnswer = false;
  18809. if (this.askCount > 0) {
  18810. this.updateCount(this.askCount, t);
  18811. } else {
  18812. this.askCount++;
  18813. a = this.askCount;
  18814. this.toolsCount(a, t);
  18815. }
  18816. this.testJson =
  18817. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18818. index
  18819. ].toolChoose[i].testJson;
  18820. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18821. if (this.testJson.testJson[k].type == "2") {
  18822. this.radio.push([]);
  18823. } else {
  18824. this.radio.push("");
  18825. }
  18826. }
  18827. this.dialogVisibleChoiceTeacher = true;
  18828. } else if (t == 41) {
  18829. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18830. .taskJson[index].toolChoose[i].selectJson
  18831. ? JSON.parse(
  18832. JSON.stringify(
  18833. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18834. index
  18835. ].toolChoose[i].selectJson
  18836. )
  18837. )
  18838. : { url: "", select: [], answer: [] };
  18839. if (this.worksStudent[i].length) {
  18840. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18841. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18842. var a = this.worksStudent[i][k].works.split(",");
  18843. for (var ki = 0; ki < a.length; ki++) {
  18844. a[ki] = parseInt(a[ki]);
  18845. }
  18846. this.selectAnswer = {
  18847. answer: a,
  18848. stu: this.worksStudent[i][k].sName,
  18849. };
  18850. break;
  18851. } else {
  18852. this.selectAnswer = { answer: [], stu: "" };
  18853. }
  18854. }
  18855. } else {
  18856. this.selectAnswer = { answer: [], stu: "" };
  18857. }
  18858. this.isSelect = false;
  18859. this.dialogVisibleSelectTeacher = true;
  18860. } else if (t == 47) {
  18861. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18862. .taskJson[index].toolChoose[i].sentenceList
  18863. ? JSON.parse(
  18864. JSON.stringify(
  18865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18866. index
  18867. ].toolChoose[i].sentenceList
  18868. )
  18869. )
  18870. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18871. for (var q = 0; q < this.sentenceList.length; q++) {
  18872. this.sentenceList[q].chooseSenList = [];
  18873. this.sentenceList[q].addChangeSen = [];
  18874. this.sentenceList[q].addChangeSen = JSON.parse(
  18875. JSON.stringify(this.sentenceList[q].addSentence)
  18876. );
  18877. this.sentenceList[q].chooseSenList.length =
  18878. this.sentenceList[q].rightAnswer.length;
  18879. }
  18880. this.dialogVisibleSentenceTeacher = true;
  18881. } else if (t == 48) {
  18882. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18883. .taskJson[index].toolChoose[i].tableJson
  18884. ? JSON.parse(
  18885. JSON.stringify(
  18886. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18887. index
  18888. ].toolChoose[i].tableJson
  18889. )
  18890. )
  18891. : { text: "" };
  18892. if (this.worksStudent[i].length) {
  18893. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18894. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18895. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18896. break;
  18897. }
  18898. }
  18899. }
  18900. this.dialogVisibleTableTeacher = true;
  18901. } else if (t == 40) {
  18902. if (this.evalCount > 0) {
  18903. this.updateCount(this.evalCount, t);
  18904. } else {
  18905. this.evalCount++;
  18906. a = this.evalCount;
  18907. this.toolsCount(a, t);
  18908. }
  18909. this.eScore = { eBzText: "", eStar: [] };
  18910. if (this.worksStudent[i].length) {
  18911. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18912. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18913. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18914. this.rateJson =
  18915. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18916. index
  18917. ].toolChoose[i].rateJson;
  18918. break;
  18919. } else {
  18920. this.rateJson =
  18921. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18922. index
  18923. ].toolChoose[i].rateJson;
  18924. }
  18925. }
  18926. } else {
  18927. this.rateJson =
  18928. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18929. index
  18930. ].toolChoose[i].rateJson;
  18931. }
  18932. this.isStar = false;
  18933. this.studentEvalDialogVisibleTeacher = true;
  18934. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18935. window.parent.postMessage(
  18936. {
  18937. tools: t + "teacher",
  18938. cid: this.id,
  18939. stage: this.courseType,
  18940. task: this.taskCount,
  18941. tool: i,
  18942. student: this.sStudent,
  18943. },
  18944. "*"
  18945. );
  18946. }
  18947. },
  18948. openCocoPi(tool, i, uid, uname) {
  18949. let student = {
  18950. userid: uid,
  18951. student: uname,
  18952. };
  18953. if (tool == 57) {
  18954. window.parent.postMessage(
  18955. {
  18956. tools: tool + "teacher",
  18957. cid: this.id,
  18958. stage: this.courseType,
  18959. task: this.taskCount,
  18960. tool: i,
  18961. student: student,
  18962. },
  18963. "*"
  18964. );
  18965. }
  18966. },
  18967. setRightAnswer(s, i, j) {
  18968. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18969. if (
  18970. this.sentenceList[i].chooseSenList[q] == undefined ||
  18971. this.sentenceList[i].chooseSenList[q] == ""
  18972. ) {
  18973. this.sentenceList[i].chooseSenList[q] = s;
  18974. this.sentenceList[i].addChangeSen[j] = "";
  18975. break;
  18976. }
  18977. }
  18978. this.$forceUpdate();
  18979. },
  18980. returnCard(r, i, j) {
  18981. var a = this.sentenceList[i].addSentence.indexOf(r);
  18982. this.sentenceList[i].chooseSenList[j] = "";
  18983. this.sentenceList[i].addChangeSen[a] = r;
  18984. this.$forceUpdate();
  18985. },
  18986. // addSentenceTool() {
  18987. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18988. // this.taskCount
  18989. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18990. // this.sentenceList = [
  18991. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18992. // ];
  18993. // this.dialogVisibleSentence = false;
  18994. // },
  18995. toolsCount(a, t) {
  18996. let params = {
  18997. cid: this.id,
  18998. chid: this.courseType,
  18999. uid: this.userid,
  19000. tid: t,
  19001. count: a,
  19002. };
  19003. this.ajax
  19004. .get(this.$store.state.api + "insertToolsCount", params)
  19005. .then((res) => {
  19006. this.selectCount();
  19007. })
  19008. .catch((err) => {
  19009. console.error(err);
  19010. });
  19011. },
  19012. updateCount(c, t) {
  19013. c++;
  19014. let params = {
  19015. cid: this.id,
  19016. chid: this.courseType,
  19017. uid: this.userid,
  19018. tid: t,
  19019. count: c,
  19020. };
  19021. this.ajax
  19022. .get(this.$store.state.api + "updateToolsCount", params)
  19023. .then((res) => {
  19024. this.selectCount();
  19025. })
  19026. .catch((err) => {
  19027. console.error(err);
  19028. });
  19029. },
  19030. checkEva() {
  19031. if (this.evalua != "") {
  19032. for (var i = 0; i < this.evaJuri.length; i++) {
  19033. if (this.evalua == this.evaJuri[i].id) {
  19034. this.eTitle = this.evaJuri[i].title;
  19035. this.eJson = JSON.parse(this.evaJuri[i].content);
  19036. }
  19037. }
  19038. this.$forceUpdate();
  19039. setTimeout(() => {
  19040. this.setMindData();
  19041. }, 0);
  19042. }
  19043. },
  19044. selectEva() {
  19045. let params = {
  19046. oid: this.oid,
  19047. };
  19048. this.ajax
  19049. .get(this.$store.state.api + "selectAllEvaluation", params)
  19050. .then((res) => {
  19051. this.evaJuri = res.data[0];
  19052. })
  19053. .catch((err) => {
  19054. console.error(err);
  19055. });
  19056. },
  19057. setMindData() {
  19058. this.data.data = [];
  19059. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19060. let _eJson = Object.keys(this.eJson);
  19061. let _e = this.eJson;
  19062. for (let i = 0; i < _eJson.length; i++) {
  19063. let element = _e[_eJson[i]];
  19064. this.data.data.push({
  19065. id: element.id,
  19066. parentid: "root",
  19067. topic: element.name,
  19068. });
  19069. let _eJsonc = Object.keys(element.child);
  19070. let _e2 = element.child;
  19071. for (let j = 0; j < _eJsonc.length; j++) {
  19072. let _ec = _e2[_eJsonc[j]];
  19073. this.data.data.push({
  19074. id: _ec.id,
  19075. parentid: element.id,
  19076. topic: _ec.name,
  19077. });
  19078. let _eJsonz = Object.keys(_ec.child);
  19079. let _e3 = _ec.child;
  19080. for (let z = 0; z < _eJsonz.length; z++) {
  19081. let _ez = _e3[_eJsonz[z]];
  19082. this.data.data.push({
  19083. id: _ez.id,
  19084. parentid: _ec.id,
  19085. topic: _ez.name,
  19086. });
  19087. }
  19088. }
  19089. }
  19090. this.$forceUpdate();
  19091. },
  19092. checkFileFull(type, url) {
  19093. this.fullDialogVisible = true;
  19094. this.fulltype = type;
  19095. this.fullUrl = url;
  19096. },
  19097. async checkFileFull1(t, f) {
  19098. this.fullDialogVisible = true;
  19099. if (t == 6) {
  19100. this.fulltype = 1;
  19101. this.fullUrl = JSON.parse(JSON.stringify(f));
  19102. } else if (t == 8) {
  19103. this.fulltype = 2;
  19104. this.fullUrl = f.url;
  19105. } else if (
  19106. t == 3 &&
  19107. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19108. "PDF"
  19109. ) {
  19110. this.fulltype = 3;
  19111. this.fullUrl = f.url;
  19112. } else if (t == 3) {
  19113. this.fulltype = 2;
  19114. let _uuurl = await this.checkLink(f.url);
  19115. this.fullUrl =
  19116. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19117. }
  19118. },
  19119. openSname(n, id, i, uid) {
  19120. this.snameWid = id;
  19121. this.worksSName = n;
  19122. this.worksSid = uid == n ? "" : uid;
  19123. this.toolindex = i;
  19124. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19125. if (!this.uploadCid) {
  19126. this.$message.error(
  19127. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19128. );
  19129. return;
  19130. }
  19131. this.selectUploadStudent(1);
  19132. },
  19133. updateName() {
  19134. let params = {
  19135. n: this.worksSName,
  19136. cid: this.snameWid,
  19137. };
  19138. this.ajax
  19139. .get(this.$store.state.api + "updateCourseWorksName", params)
  19140. .then((res) => {
  19141. this.$message({
  19142. message: "修改成功",
  19143. type: "success",
  19144. });
  19145. this.dialogVisibleSname = false;
  19146. this.getCourseDetail(2);
  19147. this.snameWid = "";
  19148. this.worksSName = "";
  19149. })
  19150. .catch((err) => {
  19151. console.error(err);
  19152. });
  19153. },
  19154. downloadFile2(f) {
  19155. // const loading = this.$loading.service({
  19156. // background: "rgba(255, 255, 255, 0.7)",
  19157. // target: document.body,
  19158. // text: "文件加载中...",
  19159. // });
  19160. // let url2 = f.url;
  19161. // let _url2 = "";
  19162. // if (
  19163. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19164. // ) {
  19165. // _url2 = url2.split(
  19166. // "https://view.officeapps.live.com/op/view.aspx?src="
  19167. // )[1];
  19168. // } else {
  19169. // _url2 = url2;
  19170. // }
  19171. // let params = {
  19172. // url: _url2,
  19173. // name: f.name,
  19174. // };
  19175. // this.ajax
  19176. // .get(this.$store.state.api + "download", params)
  19177. // .then((res) => {
  19178. // loading.close();
  19179. // let content = res.data.data.data;
  19180. // let ab = new ArrayBuffer(content.length);
  19181. // let view = new Uint8Array(ab);
  19182. // for (var i = 0; i < content.length; ++i) {
  19183. // view[i] = content[i];
  19184. // }
  19185. // let elink = document.createElement("a");
  19186. // elink.download = f.name;
  19187. // elink.style.display = "none";
  19188. // let blob = new Blob([ab], {
  19189. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19190. // });
  19191. // elink.href = URL.createObjectURL(blob);
  19192. // document.body.appendChild(elink);
  19193. // elink.click();
  19194. // document.body.removeChild(elink);
  19195. // })
  19196. // .catch((err) => {
  19197. // loading.close();
  19198. // console.error(err);
  19199. // });
  19200. var credentials = {
  19201. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19202. secretAccessKey: "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",
  19203. }; //秘钥形式的登录上传
  19204. window.AWS.config.update(credentials);
  19205. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19206. let url2 = f.url;
  19207. let _url2 = "";
  19208. if (
  19209. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19210. ) {
  19211. _url2 = url2.split(
  19212. "https://view.officeapps.live.com/op/view.aspx?src="
  19213. )[1];
  19214. } else {
  19215. _url2 = url2;
  19216. }
  19217. let _this = this;
  19218. _this.downLoading = true
  19219. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19220. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19221. var params = {
  19222. Bucket: "ccrb",
  19223. Key: name
  19224. };
  19225. s3.getObject(params, function (err, data) {
  19226. _this.downLoading = false
  19227. if (err) console.log(err, err.stack); // an error occurred
  19228. else {
  19229. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19230. let a = document.createElement("a");
  19231. a.name = f.name;
  19232. a.href = url;
  19233. a.download = f.name;
  19234. a.click();
  19235. console.log(data);
  19236. } // sxuccessful response
  19237. });
  19238. return;
  19239. let url = f.url;
  19240. let _url = "";
  19241. if (
  19242. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19243. ) {
  19244. _url = url.split(
  19245. "https://view.officeapps.live.com/op/view.aspx?src="
  19246. )[1];
  19247. } else {
  19248. _url = url;
  19249. }
  19250. _this.downLoading = true
  19251. // const loading = _this.$loading.service({
  19252. // background: "rgba(255, 255, 255, 0.7)",
  19253. // target: document.body,
  19254. // text: "文件加载中...",
  19255. // });
  19256. let x = new XMLHttpRequest();
  19257. x.open("GET", _url, true);
  19258. x.responseType = "blob";
  19259. x.onload = function () {
  19260. _this.downLoading = false
  19261. // loading.close();
  19262. let url = window.URL.createObjectURL(new Blob([x.response]));
  19263. let a = document.createElement("a");
  19264. a.name = f.name;
  19265. a.href = url;
  19266. a.download = f.name;
  19267. a.click();
  19268. };
  19269. x.send();
  19270. },
  19271. downloadFile(url) {
  19272. var credentials = {
  19273. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19274. secretAccessKey: "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",
  19275. }; //秘钥形式的登录上传
  19276. window.AWS.config.update(credentials);
  19277. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19278. let url2 = url;
  19279. let _url2 = "";
  19280. if (
  19281. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19282. ) {
  19283. _url2 = url2.split(
  19284. "https://view.officeapps.live.com/op/view.aspx?src="
  19285. )[1];
  19286. } else {
  19287. _url2 = url2;
  19288. }
  19289. const loading2 = this.$loading.service({
  19290. background: "rgba(255, 255, 255, 0.7)",
  19291. target: document.body,
  19292. text: "文件加载中...",
  19293. });
  19294. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19295. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19296. var params = {
  19297. Bucket: "ccrb",
  19298. Key: name
  19299. };
  19300. s3.getObject(params, function (err, data) {
  19301. loading2.close();
  19302. if (err) console.log(err, err.stack); // an error occurred
  19303. else {
  19304. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19305. let a = document.createElement("a");
  19306. a.name = name;
  19307. a.href = url;
  19308. a.download = name;
  19309. a.click();
  19310. console.log(data);
  19311. } // sxuccessful response
  19312. });
  19313. return;
  19314. let _this = this;
  19315. let _url = "";
  19316. if (
  19317. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19318. ) {
  19319. _url = url.split(
  19320. "https://view.officeapps.live.com/op/view.aspx?src="
  19321. )[1];
  19322. } else {
  19323. _url = url;
  19324. }
  19325. const x = new XMLHttpRequest();
  19326. x.open("GET", _url, true);
  19327. x.responseType = "blob";
  19328. const loading = _this.$loading.service({
  19329. background: "rgba(255, 255, 255, 0.7)",
  19330. target: document.body,
  19331. text: "文件加载中...",
  19332. });
  19333. // _this.$message.success("文件下载中...");
  19334. x.onload = function (e) {
  19335. loading.close();
  19336. let content = x.response;
  19337. let elink = document.createElement("a");
  19338. elink.download = decodeURI(
  19339. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19340. );
  19341. elink.style.display = "none";
  19342. let blob = new Blob([content]);
  19343. elink.href = URL.createObjectURL(blob);
  19344. document.body.appendChild(elink);
  19345. elink.click();
  19346. document.body.removeChild(elink);
  19347. };
  19348. x.send();
  19349. },
  19350. openLine(url) {
  19351. window.open(url);
  19352. },
  19353. resize() {
  19354. if (document.getElementsByClassName("box_course").length) {
  19355. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19356. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19357. if (this.showType == 2 || this.showType == 3) {
  19358. document.getElementsByClassName("navBox")[0].style.height =
  19359. a - 40 + 0+ "px";
  19360. } else {
  19361. document.getElementsByClassName("navBox")[0].style.height =
  19362. a - 40 + "px";
  19363. }
  19364. }
  19365. this.Stbodywidth =
  19366. document.getElementsByClassName("student_body").length &&
  19367. document.getElementsByClassName("student_body")[0].offsetWidth;
  19368. },
  19369. closeDraw() {
  19370. this.bg = null;
  19371. this.drawShow = false;
  19372. },
  19373. showPicturePaint(url) {
  19374. let params = {
  19375. img: url,
  19376. };
  19377. this.ajax
  19378. .get(this.$store.state.api + "imgToBase64", params)
  19379. .then((res) => {
  19380. this.drawShow = true;
  19381. this.bg = res.data[0].img;
  19382. })
  19383. .catch((err) => {
  19384. console.error(err);
  19385. });
  19386. },
  19387. addImgDraw(base64) {
  19388. let file = { name: "批注图.png" };
  19389. let img = this.dataUrlToFile(base64, file);
  19390. this.beforeUpload1(img, 5);
  19391. },
  19392. addImgDrawImG(url) {
  19393. // console.log(url);
  19394. let params = [
  19395. {
  19396. wid: this.commentDetail.wid,
  19397. img: url,
  19398. },
  19399. ];
  19400. this.ajax
  19401. .post(this.$store.state.api + "updateCourseWorks", params)
  19402. .then((res) => {
  19403. this.$message({
  19404. message: "提交成功",
  19405. type: "success",
  19406. });
  19407. this.drawShow = false;
  19408. this.bg = "";
  19409. this.selectSWorks();
  19410. this.selectStudent();
  19411. })
  19412. .catch((err) => {
  19413. this.$message.error("提交失败");
  19414. console.error(err);
  19415. });
  19416. },
  19417. deletePicturePaint() {
  19418. this.$confirm("确定删除此批注吗?", "提示", {
  19419. confirmButtonText: "确定",
  19420. cancelButtonText: "取消",
  19421. type: "warning",
  19422. })
  19423. .then(() => {
  19424. let params = [
  19425. {
  19426. wid: this.commentDetail.wid,
  19427. img: "",
  19428. },
  19429. ];
  19430. this.ajax
  19431. .post(this.$store.state.api + "updateCourseWorks", params)
  19432. .then((res) => {
  19433. this.$message({
  19434. message: "删除成功",
  19435. type: "success",
  19436. });
  19437. this.selectSWorks();
  19438. this.selectStudent();
  19439. })
  19440. .catch((err) => {
  19441. this.$message.error("删除失败");
  19442. console.error(err);
  19443. });
  19444. })
  19445. .catch(() => {});
  19446. },
  19447. getAudioVideo(constraintsData) {
  19448. if (navigator.mediaDevices === undefined) {
  19449. navigator.mediaDevices = {};
  19450. }
  19451. if (navigator.mediaDevices.getUserMedia === undefined) {
  19452. navigator.mediaDevices.getUserMedia = function (constraints) {
  19453. // 首先,如果有getUserMedia的话,就获得它
  19454. var getUserMedia =
  19455. navigator.getUserMedia ||
  19456. navigator.webkitGetUserMedia ||
  19457. navigator.mozGetUserMedia ||
  19458. navigator.msGetUserMedia;
  19459. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19460. if (!getUserMedia) {
  19461. return Promise.reject({ code: 404 });
  19462. }
  19463. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19464. return new Promise(function (resolve, reject) {
  19465. getUserMedia.call(navigator, constraints, resolve, reject);
  19466. });
  19467. };
  19468. }
  19469. return navigator.mediaDevices.getUserMedia(constraintsData);
  19470. },
  19471. /**
  19472. * 开始录制
  19473. */
  19474. startRecording(callback) {
  19475. let _function = (screenStream) => {
  19476. this.addStreamStopListener(screenStream, () => {
  19477. console.log("流停止监听");
  19478. this.stopRecording();
  19479. this.$emit("streamStop", {});
  19480. // this.stopRecording();
  19481. });
  19482. var options = {
  19483. type: "video",
  19484. mimeType: "video/webm",
  19485. disableLogs: false,
  19486. getNativeBlob: false, // enable it for longer recordings
  19487. ignoreMutedMedia: false,
  19488. };
  19489. // this.video.srcObject = screenStream;
  19490. this.recorder = RecordRTC(screenStream, options);
  19491. this.recorder.startRecording();
  19492. this.recorder.screen = screenStream;
  19493. this.videoStart = true;
  19494. // callback(true);
  19495. };
  19496. this.getAudioVideo({ audio: true })
  19497. .then((res) => {
  19498. this.captureScreen(_function, true);
  19499. console.log("已点击允许,开启成功");
  19500. })
  19501. .catch((err) => {
  19502. // console.log('浏览器不支持,请更换浏览器')
  19503. // } else {
  19504. this.captureScreen(_function, false);
  19505. console.log("请检查是否存在麦克风");
  19506. });
  19507. },
  19508. /**
  19509. * 停止录制
  19510. */
  19511. stopRecording(callback) {
  19512. this.recorder.stopRecording(() => {
  19513. // this.video.src = this.video.srcObject = null;
  19514. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19515. const url = URL.createObjectURL(this.recorder.getBlob());
  19516. const a = document.createElement("a"); //this.fileName+
  19517. let videoFile = new File(
  19518. [this.recorder.getBlob()],
  19519. this.courseDetail.title + "录屏.mp4",
  19520. {
  19521. type: "video/mp4",
  19522. }
  19523. );
  19524. let downloadUrl = URL.createObjectURL(videoFile);
  19525. document.body.appendChild(a);
  19526. a.style.display = "none";
  19527. a.href = url;
  19528. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19529. a.click();
  19530. this.recorder.screen.stop();
  19531. this.recorder.destroy();
  19532. this.recorder = null;
  19533. this.videoStart = false;
  19534. // callback(false);
  19535. });
  19536. },
  19537. //初始化
  19538. captureScreen(callback, type) {
  19539. if (navigator.getDisplayMedia) {
  19540. //录制结束,文件下载
  19541. navigator
  19542. .getDisplayMedia({
  19543. video: true,
  19544. })
  19545. .then((screenStream) => {
  19546. if (type) {
  19547. navigator.mediaDevices
  19548. .getUserMedia({ audio: true })
  19549. .then((mic) => {
  19550. screenStream.addTrack(mic.getTracks()[0]);
  19551. callback(screenStream);
  19552. });
  19553. } else {
  19554. callback(screenStream);
  19555. }
  19556. })
  19557. .catch(function (error) {
  19558. console.log("error", error);
  19559. });
  19560. } else if (navigator.mediaDevices.getDisplayMedia) {
  19561. navigator.mediaDevices
  19562. .getDisplayMedia({
  19563. video: true,
  19564. })
  19565. .then((screenStream) => {
  19566. if (type) {
  19567. navigator.mediaDevices
  19568. .getUserMedia({ audio: true })
  19569. .then((mic) => {
  19570. screenStream.addTrack(mic.getTracks()[0]);
  19571. callback(screenStream);
  19572. });
  19573. } else {
  19574. callback(screenStream);
  19575. }
  19576. })
  19577. .catch(function (error) {
  19578. console.log("error", error);
  19579. });
  19580. } else {
  19581. var error = "getDisplayMedia API are not supported in this browser.";
  19582. console.log("error", error);
  19583. alert(error);
  19584. }
  19585. },
  19586. //流监听
  19587. addStreamStopListener(stream, callback) {
  19588. stream.addEventListener(
  19589. "ended",
  19590. function () {
  19591. callback();
  19592. callback = function () {};
  19593. },
  19594. false
  19595. );
  19596. stream.addEventListener(
  19597. "inactive",
  19598. function () {
  19599. callback();
  19600. callback = function () {};
  19601. },
  19602. false
  19603. );
  19604. stream.getTracks().forEach(function (track) {
  19605. track.addEventListener(
  19606. "ended",
  19607. function () {
  19608. callback();
  19609. callback = function () {};
  19610. },
  19611. false
  19612. );
  19613. track.addEventListener(
  19614. "inactive",
  19615. function () {
  19616. callback();
  19617. callback = function () {};
  19618. },
  19619. false
  19620. );
  19621. });
  19622. },
  19623. updateGroup() {
  19624. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19625. this.dialogVisibleGroup2 = true;
  19626. },
  19627. numberPan() {
  19628. if (
  19629. /[^\d]/.test(this.groupJson.number) ||
  19630. this.groupJson.number < 2 ||
  19631. this.groupJson.number > 10
  19632. ) {
  19633. this.$message.error("请输入2-10的数字");
  19634. this.groupJson.number = "";
  19635. }
  19636. },
  19637. updateGroupJson() {
  19638. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19639. if (
  19640. this.groupStudentUid[this.toolindex][i].length >
  19641. this.groupJson2.number
  19642. ) {
  19643. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19644. return;
  19645. }
  19646. }
  19647. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19648. this.islock = this.groupJson.islock == 1 ? true : false;
  19649. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19650. this.taskCount
  19651. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19652. let params = [
  19653. {
  19654. cid: this.id,
  19655. chapters: JSON.stringify(this.chapInfoList),
  19656. uid: this.userid,
  19657. unitIndex: this.courseType,
  19658. },
  19659. ];
  19660. this.ajax
  19661. .post(this.$store.state.api + "updateWorkNew4", params)
  19662. .then((res) => {
  19663. this.$message.success("设置成功");
  19664. this.getCourseDetail(2);
  19665. this.dialogVisibleGroup2 = false;
  19666. this.groupJson2 = {};
  19667. this.$forceUpdate();
  19668. })
  19669. .catch((err) => {
  19670. this.$message.error("网络不佳");
  19671. console.error(err);
  19672. });
  19673. },
  19674. lockChair() {
  19675. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19676. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19677. this.updateGroupJson();
  19678. },
  19679. selectGroup(index) {
  19680. this.getCourseDetail(2, index);
  19681. },
  19682. joinGroup(index) {
  19683. if (this.groupJson.islock == 2) {
  19684. this.$message.error("位置已被锁定,无法加入");
  19685. return;
  19686. }
  19687. if (
  19688. this.groupStudent[this.toolindex][index].length >
  19689. this.groupJson.number ||
  19690. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19691. ) {
  19692. this.$message.error("位置已满,无法加入");
  19693. return;
  19694. }
  19695. let params = [
  19696. {
  19697. cid: this.id,
  19698. stage: this.courseType,
  19699. task: this.taskCount,
  19700. tool: this.toolindex,
  19701. g: index,
  19702. uid: this.userid,
  19703. },
  19704. ];
  19705. this.ajax
  19706. .post(this.$store.state.api + "joinGroup", params)
  19707. .then((res) => {
  19708. this.$message.success("加入成功");
  19709. this.getCourseDetail(2);
  19710. })
  19711. .catch((err) => {
  19712. this.$message.error("网络不佳");
  19713. console.error(err);
  19714. });
  19715. },
  19716. exitGroup(id) {
  19717. if (this.groupJson.islock == 2) {
  19718. this.$message.error("位置已被锁定,无法退出");
  19719. return;
  19720. }
  19721. let params = [
  19722. {
  19723. gid: id,
  19724. },
  19725. ];
  19726. this.ajax
  19727. .post(this.$store.state.api + "exitGroup", params)
  19728. .then((res) => {
  19729. this.$message.success("退出成功");
  19730. this.getCourseDetail(2);
  19731. })
  19732. .catch((err) => {
  19733. this.$message.error("网络不佳");
  19734. console.error(err);
  19735. });
  19736. },
  19737. groupUpload(index, task, gindex) {
  19738. this.taskCount = task;
  19739. this.toolindex = index;
  19740. this.groupIndex = gindex;
  19741. this.dialogVisibleGroupWork = true;
  19742. },
  19743. updateGroupChair(user) {
  19744. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19745. el.label = index;
  19746. return index != user.group;
  19747. });
  19748. this.updateGroupUser = user;
  19749. this.dialogVisibleUpdateGroup = true;
  19750. },
  19751. updateChair() {
  19752. if (
  19753. this.groupStudent[this.toolindex][this.checkChair].length >
  19754. this.groupJson.number ||
  19755. this.groupStudent[this.toolindex][this.checkChair].length ==
  19756. this.groupJson.number
  19757. ) {
  19758. this.$message.error("位置已满,无法加入");
  19759. return;
  19760. }
  19761. let params = [
  19762. {
  19763. cid: this.id,
  19764. stage: this.courseType,
  19765. task: this.taskCount,
  19766. tool: this.toolindex,
  19767. g: this.checkChair,
  19768. uid: this.updateGroupUser.userid,
  19769. },
  19770. ];
  19771. this.ajax
  19772. .post(this.$store.state.api + "joinGroup", params)
  19773. .then((res) => {
  19774. this.$message.success("修改成功");
  19775. this.updateGroupUser = {};
  19776. this.checkChair = "";
  19777. this.updateGroupArray = {};
  19778. this.dialogVisibleUpdateGroup = false;
  19779. this.getCourseDetail(2);
  19780. })
  19781. .catch((err) => {
  19782. this.$message.error("网络不佳");
  19783. console.error(err);
  19784. });
  19785. },
  19786. deleteGroupChair(gindex) {
  19787. this.checkDeleteGroup = [];
  19788. this.deleteGroupUser = JSON.parse(
  19789. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19790. );
  19791. this.deleteGroupArray = this.groupJson.group[gindex];
  19792. this.groupIndex = gindex;
  19793. this.dialogVisibleDeleteGroup = true;
  19794. },
  19795. async deleteChair() {
  19796. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19797. const gid =
  19798. this.groupStudent[this.toolindex][this.groupIndex][
  19799. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19800. this.checkDeleteGroup[i]
  19801. )
  19802. ];
  19803. let params = [
  19804. {
  19805. gid: gid.id,
  19806. },
  19807. ];
  19808. var a = await this.deleteChairA(params);
  19809. if (i == this.checkDeleteGroup.length - 1) {
  19810. this.$message.success("退出成功");
  19811. this.dialogVisibleDeleteGroup = false;
  19812. this.deleteGroupUser = [];
  19813. this.deleteGroupArray = {};
  19814. this.groupIndex = "";
  19815. this.checkDeleteGroup = [];
  19816. this.getCourseDetail(2);
  19817. }
  19818. }
  19819. },
  19820. deleteChairA(params) {
  19821. return new Promise((resolve, reject) => {
  19822. this.ajax
  19823. .post(this.$store.state.api + "exitGroup", params)
  19824. .then((res) => {
  19825. resolve(1);
  19826. })
  19827. .catch((err) => {
  19828. this.$message.error("网络不佳");
  19829. console.error(err);
  19830. });
  19831. });
  19832. },
  19833. contract(i) {
  19834. if (this.isCloseList[i].isClose == 0) {
  19835. this.isCloseList[i].isClose = 1;
  19836. } else {
  19837. this.isCloseList[i].isClose = 0;
  19838. }
  19839. this.$forceUpdate();
  19840. },
  19841. openWordCloud(toolindex) {
  19842. let array = [];
  19843. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19844. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19845. array.push({ name: works });
  19846. }
  19847. if (this.isGroup) {
  19848. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19849. let works = this.courseGroup.group[i].works[toolindex];
  19850. for (var j = 0; j < works.length; j++) {
  19851. let answer = JSON.parse(works[j].works)[0].answer;
  19852. array.push({ name: answer });
  19853. }
  19854. }
  19855. }
  19856. this.wordCloudData = array;
  19857. this.dialogVisibleWordCloud = true;
  19858. },
  19859. openTips(i) {
  19860. this.tipsIndex = i;
  19861. this.downDialogVisible = true;
  19862. },
  19863. uploadWorks() {
  19864. this.$confirm("确定导出作业吗?", "提示", {
  19865. confirmButtonText: "确定",
  19866. cancelButtonText: "取消",
  19867. type: "warning",
  19868. })
  19869. .then(() => {
  19870. const loading = this.$loading.service({
  19871. background: "rgba(255, 255, 255, 0.7)",
  19872. target: document.body,
  19873. text: "文件加载中...",
  19874. });
  19875. const _worksStudent = this.worksStudent;
  19876. let url = [];
  19877. var counts = {};
  19878. for (var l = 0; l < _worksStudent[i].length; l++) {
  19879. var item = _worksStudent[i][l];
  19880. var name = item.sName;
  19881. if (!counts.hasOwnProperty(name)) {
  19882. counts[name] = 0;
  19883. } else {
  19884. counts[name]++;
  19885. }
  19886. if (counts[name] > 0) {
  19887. item.sName += " (" + counts[name] + ")";
  19888. }
  19889. }
  19890. for (var l = 0; l < _worksStudent[i].length; l++) {
  19891. var item = _worksStudent[i][l];
  19892. if (
  19893. item.works.indexOf(
  19894. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19895. ) !== -1 &&
  19896. item.works.indexOf("img") === -1
  19897. ) {
  19898. url.push({ name: item.sName, url: item.works });
  19899. }
  19900. }
  19901. // var toolList = [
  19902. // { name: "电子白板", tool: 1 },
  19903. // { name: "思维导图", tool: 3 },
  19904. // { name: "协同文档", tool: 6 },
  19905. // { name: "思维网格", tool: 7 },
  19906. // { name: "素材库", tool: 8 },
  19907. // { name: "学习资料", tool: 17 },
  19908. // { name: "便签", tool: 2 },
  19909. // { name: "问卷调查", tool: 4 },
  19910. // { name: "选择题", tool: 45 },
  19911. // { name: "倒计时", tool: 10 },
  19912. // { name: "问答", tool: 15 },
  19913. // { name: "课程设计", tool: 26 },
  19914. // { name: "训练服务器", tool: 18 },
  19915. // { name: "作业提交", tool: 16 },
  19916. // { name: "批量上传", tool: 50 },
  19917. // { name: "AIoT Blockly", tool: 21 },
  19918. // { name: "AI Python", tool: 23 },
  19919. // { name: "AI Blockly", tool: 24 },
  19920. // { name: "目标管理", tool: 25 },
  19921. // { name: "数学画板", tool: 31 },
  19922. // { name: "翻译", tool: 28 },
  19923. // { name: "魔盒识字", tool: 37 },
  19924. // { name: "数学画板", tool: 31 },
  19925. // { name: "24点", tool: 38 },
  19926. // { name: "GeoGebra", tool: 39 },
  19927. // { name: "源码编辑", tool: 32 },
  19928. // { name: "个人评价", tool: 40 },
  19929. // { name: "选择匹配", tool: 41 },
  19930. // { name: "汉字宫", tool: 44 },
  19931. // { name: "排序", tool: 47 },
  19932. // { name: "表格", tool: 48 },
  19933. // { name: "文档", tool: 52 },
  19934. // { name: "学生分组", tool: 49 },
  19935. // { name: "CocoPi", tool: 57 },
  19936. // { name: "模拟驾驶", tool: 58 },
  19937. // { name: "路径搜索", tool: 59 },
  19938. // { name: "深度学习", tool: 60 },
  19939. // { name: "全历史", tool: 61 },
  19940. // { name: "交互视频", tool: 62 },
  19941. // { name: "海龟编程", tool: 63 },
  19942. // { name: "挑人", tool: 65 },
  19943. // { name: "公式编辑", tool: 66 },
  19944. // { name: "分子结构", tool: 67 },
  19945. // { name: "时间轴", tool: 68 },
  19946. // ];
  19947. // var toolName = "";
  19948. // for(var w = 0;w<toolList.length;w++){
  19949. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19950. // toolName = toolList[w].name;
  19951. // }
  19952. // }
  19953. console.log(url);
  19954. this.downLoadAll(url, loading);
  19955. })
  19956. .catch(() => {});
  19957. },
  19958. downLoadAll(url, loading) {
  19959. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19960. const zip = new JSZip();
  19961. const cache = {};
  19962. const promises = [];
  19963. data.forEach((item) => {
  19964. const promise = getFile(item.url).then((data) => {
  19965. if (data.data != 1) {
  19966. // 下载文件, 并存成ArrayBuffer对象
  19967. const file_name =
  19968. item.name +
  19969. "." +
  19970. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19971. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19972. cache[file_name] = data.data;
  19973. }
  19974. });
  19975. promises.push(promise);
  19976. });
  19977. Promise.all(promises).then(() => {
  19978. zip.generateAsync({ type: "blob" }).then((content) => {
  19979. // 生成二进制流
  19980. FileSaver.saveAs(
  19981. content,
  19982. this.courseDetail.title + "-" + "作业提交工具.zip"
  19983. ); // 利用file-saver保存文件 自定义文件名
  19984. setTimeout(() => {
  19985. loading.close();
  19986. }, 2000);
  19987. });
  19988. });
  19989. },
  19990. pickStudent(stu) {
  19991. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19992. return;
  19993. }
  19994. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19995. confirmButtonText: "确定",
  19996. cancelButtonText: "取消",
  19997. type: "warning",
  19998. })
  19999. .then(() => {
  20000. let params = [
  20001. {
  20002. uid: stu.userid,
  20003. cid: this.id,
  20004. stage: this.courseType,
  20005. task: this.taskCount,
  20006. tool: this.toolindex,
  20007. },
  20008. ];
  20009. this.ajax
  20010. .post(this.$store.state.api + "updateCoursePick", params)
  20011. .then((res) => {
  20012. this.$message.success("操作成功");
  20013. this.getPick();
  20014. })
  20015. .catch((err) => {
  20016. this.$message.error("网络不佳");
  20017. console.error(err);
  20018. });
  20019. })
  20020. .catch(() => {});
  20021. },
  20022. selectUser(){
  20023. let params = {
  20024. userid: this.userid,
  20025. };
  20026. this.ajax
  20027. .get(this.$store.state.api + "selectUser", params)
  20028. .then((res) => {
  20029. this.userMes = res.data[0];
  20030. })
  20031. .catch((err) => {
  20032. console.error(err);
  20033. });
  20034. },
  20035. setEngText(i){
  20036. this.newEngIndex = i;
  20037. this.$forceUpdate();
  20038. },
  20039. addCorrect(){
  20040. this.$confirm("你确定提交批改嘛?", "提示", {
  20041. confirmButtonText: "确定",
  20042. showCancelButton: false,
  20043. closeOnClickModal: false,
  20044. type: "warning",
  20045. })
  20046. .then(() => {
  20047. let params = {
  20048. cid: this.id,
  20049. s: parseInt(this.courseType),
  20050. t: this.taskCount,
  20051. tool: this.toolindex,
  20052. wid: this.engWid,
  20053. c: this.userid,
  20054. 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) : "",
  20055. };
  20056. this.ajax
  20057. .get(this.$store.state.api + "addEngC", params)
  20058. .then((res) => {
  20059. this.$message.success("提交成功");
  20060. this.engUpdateDialogVisible = false;
  20061. })
  20062. .catch((err) => {
  20063. console.error(err);
  20064. });
  20065. })
  20066. .catch(() => {});
  20067. },
  20068. selectEngC(id,z){
  20069. let params = {
  20070. workid: id,
  20071. };
  20072. this.ajax
  20073. .get(this.$store.state.api + "selectEngC", params)
  20074. .then((res) => {
  20075. if(res.data[0].length == 0){
  20076. this.newEnglishList.engTitle = z.engTitle;
  20077. this.newEnglishList.engText = z.engText;
  20078. }else{
  20079. var a = res.data[0];
  20080. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20081. if(this.userMes[0].type == 2){
  20082. var snum = 0;
  20083. for(var i = 0;i<a.length;i++){
  20084. if(this.userMes[0].userid == a[i].correct){
  20085. this.newEnglishList = JSON.parse(a[i].cWork);
  20086. snum = 1;
  20087. }
  20088. }
  20089. if(snum == 0){
  20090. this.newEnglishList = { engTitle:"",engText:"" };
  20091. this.newEnglishList.engTitle = z.engTitle;
  20092. this.newEnglishList.engText = z.engText;
  20093. }
  20094. }else if(this.userMes[0].type == 1){
  20095. var num = 0;
  20096. for(var w= 0;w<a.length;w++){
  20097. if(this.userMes[0].userid == a[w].correct){
  20098. num = 1;
  20099. }
  20100. }
  20101. if(num == 0){
  20102. this.isNoUserid = true;
  20103. var c = JSON.parse(JSON.stringify(z));
  20104. this.oldEnglishJson1 = c;
  20105. }else{
  20106. this.isNoUserid = false;
  20107. }
  20108. var b = a.sort((item, index) => {
  20109. console.log(item)
  20110. if (item.correct === this.userMes[0].userid) {
  20111. return -1; // 将a移到前面
  20112. } else if (index.correct === this.userMes[0].userid) {
  20113. return 1; // 将b移到前面
  20114. } else {
  20115. return 0; // 保持默认顺序
  20116. }
  20117. });
  20118. for(var p = 0;p<b.length;p++){
  20119. for(var y = 0;y<ppp.length;y++){
  20120. if(b[p].id == ppp[y].id){
  20121. b[p].cWork = JSON.parse(ppp[y].cWork);
  20122. break
  20123. }
  20124. }
  20125. }
  20126. this.newEnglishList1 = b;
  20127. }
  20128. }
  20129. this.greyType = false;
  20130. setTimeout(() => {
  20131. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20132. if(this.newEnglishList1.length > 0){
  20133. if(this.isNoUserid == true){
  20134. this.engListLength = this.newEnglishList1.length + 1;
  20135. this.newEngIndex = -1;
  20136. }else{
  20137. this.engListLength = this.newEnglishList1.length;
  20138. this.newEngIndex = 0;
  20139. }
  20140. }
  20141. if(this.userMes[0].type == 2){
  20142. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20143. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20144. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20145. }else if(this.newEngIndex == -1){
  20146. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20147. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20148. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20149. }
  20150. }, 500);
  20151. this.engUpdateDialogVisible = true;
  20152. this.$forceUpdate();
  20153. })
  20154. .catch((err) => {
  20155. console.error(err);
  20156. });
  20157. },
  20158. getPick() {
  20159. let params = {
  20160. cid: this.id,
  20161. };
  20162. this.ajax
  20163. .get(this.$store.state.api + "getPick", params)
  20164. .then((res) => {
  20165. let array = [];
  20166. for (var i = 0; i < res.data[0].length; i++) {
  20167. array.push(res.data[0][i].userid);
  20168. }
  20169. this.isPickStudent = array;
  20170. if (array.indexOf(this.userid) !== -1) {
  20171. this.$confirm("你被老师选到啦!", "提示", {
  20172. confirmButtonText: "确定",
  20173. showCancelButton: false,
  20174. closeOnClickModal: false,
  20175. type: "warning",
  20176. })
  20177. .then(() => {
  20178. let pa = [
  20179. {
  20180. uid: this.userid,
  20181. cid: this.id,
  20182. },
  20183. ];
  20184. this.ajax
  20185. .post(this.$store.state.api + "deletePick", pa)
  20186. .then((res) => {
  20187. this.getPick();
  20188. })
  20189. .catch((err) => {
  20190. this.$message.error("网络不佳");
  20191. console.error(err);
  20192. });
  20193. })
  20194. .catch(() => {});
  20195. }
  20196. })
  20197. .catch((err) => {
  20198. this.$message.error("网络不佳");
  20199. console.error(err);
  20200. });
  20201. },
  20202. foldEva() {
  20203. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20204. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20205. } else {
  20206. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20207. setTimeout(() => {
  20208. this.checkEva();
  20209. setTimeout(() => {
  20210. this.checkEva();
  20211. }, 500);
  20212. }, 0);
  20213. }
  20214. this.$forceUpdate();
  20215. },
  20216. panToolHeight(tool) {
  20217. var _tool = document.querySelectorAll('#'+tool)[0]
  20218. var _toolA = _tool ? _tool.offsetHeight : 0
  20219. var _toolC = 0
  20220. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20221. let boolean2 = (_toolA > _toolC) ? true : false
  20222. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20223. this.$forceUpdate();
  20224. },
  20225. async checkLink(url) {
  20226. // console.log(url)
  20227. let _url = url
  20228. try {
  20229. const response = await fetch(url);
  20230. if(!response.ok){
  20231. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  20232. }
  20233. // console.log(response.ok)
  20234. } catch (error) {
  20235. console.error('Error checking link:', error);
  20236. // console.log(false)
  20237. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  20238. }
  20239. // console.log(_url)
  20240. return _url
  20241. },
  20242. setClassRoomHelperWidth(width){
  20243. this.classRoomHelperWidth = width
  20244. }
  20245. },
  20246. directives: {
  20247. // 使用局部注册指令的方式
  20248. resize: {
  20249. // 指令的名称
  20250. bind(el, binding) {
  20251. // el为绑定的元素,binding为绑定给指令的对象
  20252. let width = "",
  20253. height = "";
  20254. function isReize() {
  20255. const style = document.defaultView.getComputedStyle(el);
  20256. if (width !== style.width || height !== style.height) {
  20257. binding.value(); // 关键
  20258. }
  20259. width = style.width;
  20260. height = style.height;
  20261. }
  20262. el.__vueSetInterval__ = setInterval(isReize, 300);
  20263. },
  20264. unbind(el) {
  20265. clearInterval(el.__vueSetInterval__);
  20266. },
  20267. },
  20268. autoHeight: {
  20269. update(el, binding) {
  20270. const { value } = binding
  20271. if (value && typeof value === 'number') {
  20272. el.style.height = `${value}px`
  20273. } else {
  20274. el.style.height = 'auto'
  20275. }
  20276. },
  20277. componentUpdated(el) {
  20278. el.style.height = `${el.scrollHeight + 5}px`
  20279. },
  20280. }
  20281. },
  20282. beforeDestroy() {
  20283. window.onresize = null;
  20284. clearInterval(this.timer);
  20285. this.timer = null;
  20286. clearInterval(this.opertimer);
  20287. this.opertimer = null;
  20288. },
  20289. computed: {
  20290. // getdocumentSco(){
  20291. // return function (w,task,tooindex) {
  20292. // console.log(w);
  20293. // return task;
  20294. // };
  20295. // },
  20296. getHeight(){
  20297. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20298. },
  20299. contentConvent() {
  20300. return function (c) {
  20301. return c
  20302. ? c
  20303. .replaceAll(/\r\n/g, "<br/>")
  20304. .replaceAll(/\n/g, "<br/>")
  20305. .replaceAll(/\s/g, " &nbsp")
  20306. : "";
  20307. };
  20308. },
  20309. commentRight(){
  20310. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20311. return "35px";
  20312. }
  20313. return `calc(${this.classRoomHelperWidth} + 5px)`
  20314. // if(this.$refs["classRoomHelperRef"].type==0){
  20315. // return "100px";
  20316. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20317. // return "502px"
  20318. // }else{
  20319. // return "0px"
  20320. // }
  20321. },
  20322. checkUpload() {
  20323. return function () {
  20324. var studentK = [];
  20325. if (this.plworkFile.length > 0) {
  20326. for (var z = 0; z < this.plworkFile.length; z++) {
  20327. studentK.push(this.plworkFile[z].username);
  20328. }
  20329. studentK = studentK.join(",");
  20330. }
  20331. var a = this.uploadStudentJuri.filter((el) => {
  20332. return studentK.indexOf(el.userid) == -1;
  20333. });
  20334. return a;
  20335. };
  20336. },
  20337. getSName() {
  20338. return function (name) {
  20339. var check = name;
  20340. this.uploadStudentJuri.forEach((el) => {
  20341. if (el.userid == check) {
  20342. check = el.name ? el.name : el.username;
  20343. }
  20344. });
  20345. return check;
  20346. };
  20347. },
  20348. getImgList() {
  20349. return function (val) {
  20350. let srcList = []; // 定义一个数组用来接收后面的img地址
  20351. val.replace(
  20352. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20353. function (match, capture) {
  20354. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20355. srcList.push(capture);
  20356. }
  20357. );
  20358. return srcList;
  20359. };
  20360. },
  20361. retrnToolHeight(){
  20362. return function (tool) {
  20363. var _tool = document.querySelectorAll('#'+tool)[0]
  20364. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20365. };
  20366. },
  20367. Correct() {
  20368. return function (c) {
  20369. let w = "";
  20370. let a = this.correctWord;
  20371. for(var k = 0;k<a.length;k++){
  20372. //diffWordsWithSpace
  20373. if(a.length > 1){
  20374. if(a[k].added == true){
  20375. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20376. }else if(a[k].removed == true){
  20377. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20378. }else{
  20379. w += '<span>' + a[k].value + '</span>';
  20380. }
  20381. }else{
  20382. w = c
  20383. }
  20384. //diffChars方法
  20385. // if(w == ""){
  20386. // if(a.length > 1){
  20387. // if(a[k].added == true){
  20388. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20389. // }else if(a[k].removed == true){
  20390. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20391. // }
  20392. // }else{
  20393. // w = c
  20394. // }
  20395. // }else{
  20396. // if(k == a.length - 1){
  20397. // if(a[k].added == true){
  20398. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20399. // }else if(a[k].removed == true){
  20400. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20401. // }
  20402. // }else{
  20403. // if(a[k].added == true){
  20404. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20405. // }else if(a[k].removed == true){
  20406. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20407. // }
  20408. // }
  20409. // }
  20410. }
  20411. c = w;
  20412. return c;
  20413. };
  20414. },
  20415. getScoreList(){
  20416. let params = {
  20417. cid: this.id,
  20418. };
  20419. this.ajax
  20420. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20421. .then((res) => {
  20422. let result = res.data;
  20423. this.scoreList.datalist = result[0];
  20424. this.scoreList.isScoreList = result[1];
  20425. })
  20426. .catch((err) => {
  20427. console.error(err);
  20428. });
  20429. },
  20430. },
  20431. mounted() {
  20432. document.body.addEventListener("click", (e) => {
  20433. if (this.isUpdateToolDetail1) {
  20434. this.updateToolDetail(this.toolDetailIndex);
  20435. }
  20436. });
  20437. if (this.screenType == 2) {
  20438. window.parent.postMessage({ allScreen: 4 }, "*");
  20439. } else if (this.screenType == 3) {
  20440. window.parent.postMessage({ allScreen: 5 }, "*");
  20441. } else if (this.screenType == 1) {
  20442. window.parent.postMessage({ allScreen: 6 }, "*");
  20443. }
  20444. this.setOperationTime();
  20445. this.selectEva();
  20446. this.getCourseDetail();
  20447. this.selectCount();
  20448. this.getHomeWork();
  20449. this.selectUser();
  20450. this.getAIJ()
  20451. this.contentDialog = true;
  20452. this.setContent2(true);
  20453. if (this.tType == 4) {
  20454. this.pzDialog = true;
  20455. this.selectPz();
  20456. }
  20457. // 获取评分列表
  20458. this.getScoreList()
  20459. document.scrollingElement.scrollTop = 0;
  20460. window.addEventListener("resize", () => {
  20461. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20462. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20463. if (this.showType == 2 || this.showType == 3) {
  20464. document.getElementsByClassName("navBox")[0].style.height =
  20465. a - 40 + 0+ "px";
  20466. } else {
  20467. document.getElementsByClassName("navBox")[0].style.height =
  20468. a - 40 + "px";
  20469. }
  20470. });
  20471. let _this = this;
  20472. setTimeout(() => {
  20473. // _this.vedioTime = [];
  20474. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20475. // _this.vedioTime[i] = document.getElementsByClassName(
  20476. // "vjs-duration-display"
  20477. // )[i].textContent;
  20478. // }
  20479. }, 1000);
  20480. },
  20481. };
  20482. </script>
  20483. <style scoped>
  20484. @media screen and (max-width: 1280px) {
  20485. /* .courseIndex > div:first-child(2) {
  20486. width: 15% !important;
  20487. } */
  20488. /* .navText {
  20489. width: 120px !important;
  20490. } */
  20491. .evaCss {
  20492. flex-direction: column !important;
  20493. align-items: center !important;
  20494. }
  20495. .elist_input {
  20496. width: 90% !important;
  20497. }
  20498. .dialog_diy1 >>> .el-dialog {
  20499. width: 100% !important;
  20500. }
  20501. .rightWidthCss {
  20502. width: 100% !important;
  20503. }
  20504. .dialog_diy3 >>> .el-dialog {
  20505. width: 100% !important;
  20506. }
  20507. .addToolCss {
  20508. right: 0 !important;
  20509. width: 100% !important;
  20510. min-width: unset !important;
  20511. }
  20512. }
  20513. .evaCssMax {
  20514. flex-direction: column !important;
  20515. align-items: center !important;
  20516. }
  20517. .dialog_diy >>> .el-dialog {
  20518. margin-top: 10vh !important;
  20519. }
  20520. .body_student {
  20521. width: 77%;
  20522. height: 100%;
  20523. position: absolute;
  20524. left: 22%;
  20525. top: 0;
  20526. }
  20527. .student_head {
  20528. width: 100%;
  20529. margin: 20px auto 0;
  20530. padding-bottom: 20px;
  20531. display: flex;
  20532. flex-direction: column;
  20533. flex-wrap: nowrap;
  20534. align-items: flex-start;
  20535. justify-content: flex-start;
  20536. }
  20537. .pb_left {
  20538. width: 20%;
  20539. margin-right: 10px;
  20540. background: rgb(255, 255, 255);
  20541. position: fixed;
  20542. height: calc(100% - 40px);
  20543. border-radius: 20px;
  20544. padding-bottom: 15px;
  20545. box-sizing: border-box;
  20546. }
  20547. .wheel > img,
  20548. .project > img,
  20549. .star > img,
  20550. .evaluate > img,
  20551. .up_photo > img,
  20552. .chapter_add > img,
  20553. .deleteWord > img,
  20554. .question > img,
  20555. .homework > img {
  20556. width: 100%;
  20557. height: 100%;
  20558. }
  20559. .upCover > img {
  20560. width: 131px;
  20561. height: 69px;
  20562. object-fit: cover;
  20563. }
  20564. .upCover {
  20565. width: calc(100% / 3.5);
  20566. position: relative;
  20567. margin: 0 15px 10px 0;
  20568. display: flex;
  20569. flex-direction: column;
  20570. flex-wrap: nowrap;
  20571. justify-content: center;
  20572. align-content: center;
  20573. align-items: center;
  20574. height: fit-content;
  20575. }
  20576. .upCover2 {
  20577. width: 100%;
  20578. position: relative;
  20579. margin: 0 15px 10px 0;
  20580. display: flex;
  20581. flex-direction: column;
  20582. flex-wrap: nowrap;
  20583. justify-content: center;
  20584. align-content: center;
  20585. align-items: center;
  20586. }
  20587. .upCover2 > img {
  20588. width: 100%;
  20589. height: 90px;
  20590. object-fit: contain;
  20591. }
  20592. .chapter_add {
  20593. width: 120px;
  20594. position: relative;
  20595. text-align: center;
  20596. }
  20597. .isAddThings {
  20598. margin-top: 20px;
  20599. position: relative;
  20600. text-align: center;
  20601. background: #f7f8fa;
  20602. height: 90px;
  20603. width: 90px;
  20604. display: flex;
  20605. flex-direction: column;
  20606. justify-content: center;
  20607. }
  20608. .deleteWord {
  20609. width: 22px;
  20610. height: 22px;
  20611. position: absolute;
  20612. right: -5px;
  20613. top: -5px;
  20614. cursor: pointer;
  20615. }
  20616. .box_course {
  20617. /* width: 60%; */
  20618. width: calc(100% - 300px);
  20619. }
  20620. .wheel {
  20621. width: 100%;
  20622. /* height: 100%; */
  20623. height: 650px;
  20624. }
  20625. .right_box {
  20626. display: flex;
  20627. flex-direction: column;
  20628. margin-left: 30px;
  20629. justify-content: space-around;
  20630. }
  20631. .right_box_title {
  20632. font-size: 23px;
  20633. }
  20634. .people {
  20635. display: flex;
  20636. }
  20637. .student_body {
  20638. width: 100%;
  20639. margin: 0 auto;
  20640. margin-top: 10px;
  20641. padding: 0 0 20px;
  20642. }
  20643. .study_top {
  20644. margin-top: 100px;
  20645. width: 100%;
  20646. height: auto;
  20647. padding-bottom: 20px;
  20648. }
  20649. .study_top .checkbox {
  20650. display: flex;
  20651. align-items: center;
  20652. padding: 15px 0 15px 30px;
  20653. flex: 0 0 auto;
  20654. font-weight: bold;
  20655. border-bottom: 1px solid #eee;
  20656. }
  20657. .study_top .check {
  20658. padding-bottom: 5px;
  20659. text-align: center;
  20660. cursor: pointer;
  20661. height: 30px;
  20662. box-sizing: border-box;
  20663. display: flex;
  20664. }
  20665. .study_top .checked {
  20666. border-bottom: 4px solid #3fc6a0;
  20667. padding-bottom: 5px;
  20668. color: #3fc6a0;
  20669. display: flex;
  20670. height: 35px;
  20671. }
  20672. .study_top .checked > div,
  20673. .study_top .check > div {
  20674. margin-right: 5px;
  20675. }
  20676. .videoTop {
  20677. display: flex;
  20678. flex-direction: row;
  20679. justify-content: space-between;
  20680. background: #fff;
  20681. align-items: center;
  20682. width: 95%;
  20683. padding: 20px;
  20684. }
  20685. .filebox {
  20686. display: flex;
  20687. flex-wrap: wrap;
  20688. flex-direction: column;
  20689. padding: 0 0 5px;
  20690. position: relative;
  20691. }
  20692. .filebox:before {
  20693. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20694. position: absolute;
  20695. top: 20px;
  20696. left: 13px;
  20697. border-left: 2px dotted #cad1dc;
  20698. height: calc(100% - 15px);
  20699. }
  20700. .toolHeng2 > div:last-child::before {
  20701. height: calc(100% - 43px);
  20702. }
  20703. .filebox .tooldetail {
  20704. width: calc(100%);
  20705. margin: 0px 12px;
  20706. padding: 12px;
  20707. line-height: 30px;
  20708. word-break: break-word;
  20709. background: #ffffff;
  20710. border-radius: 8px 8px 8px 8px;
  20711. opacity: 1;
  20712. border: 1px solid #cad1dc;
  20713. overflow:hidden;
  20714. box-sizing:border-box;
  20715. }
  20716. .file {
  20717. display: flex;
  20718. flex-direction: column;
  20719. align-items: center;
  20720. justify-content: center;
  20721. cursor: pointer;
  20722. width: 200px;
  20723. }
  20724. .file div {
  20725. margin-top: 10px;
  20726. width: 150px;
  20727. text-align: center;
  20728. overflow: hidden;
  20729. white-space: nowrap;
  20730. text-overflow: ellipsis;
  20731. }
  20732. .media {
  20733. display: flex;
  20734. flex-direction: column;
  20735. align-items: center;
  20736. justify-content: center;
  20737. margin: 0 20px 20px 0;
  20738. cursor: pointer;
  20739. margin: 12px 0 5px 15px;
  20740. overflow: hidden;
  20741. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20742. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20743. box-sizing: border-box;
  20744. }
  20745. .media img {
  20746. height: 90px;
  20747. width: 160px;
  20748. object-fit: cover;
  20749. }
  20750. .media .title {
  20751. padding: 5px;
  20752. text-align: left;
  20753. width: 100%;
  20754. box-sizing: border-box;
  20755. }
  20756. .media .btn {
  20757. width: 100%;
  20758. height: 35px;
  20759. line-height: 35px;
  20760. color: #fff;
  20761. background: #606060;
  20762. text-align: center;
  20763. overflow: hidden;
  20764. white-space: nowrap;
  20765. text-overflow: ellipsis;
  20766. }
  20767. .detail_content_top {
  20768. width: 100%;
  20769. padding: 25px 0 25px 0;
  20770. }
  20771. .detail_title {
  20772. text-align: center;
  20773. font-size: 24px;
  20774. }
  20775. .detail_time {
  20776. font-size: 13px;
  20777. padding: 15px 0 0 40px;
  20778. }
  20779. .detail_content {
  20780. line-height: 2pc;
  20781. width: 90%;
  20782. margin: 0 auto;
  20783. padding-top: 30px;
  20784. text-indent: 30px;
  20785. overflow: auto;
  20786. height: 200px;
  20787. }
  20788. .score_box >>> .el-rate {
  20789. margin-left: 10px;
  20790. }
  20791. .dialog_change >>> .el-dialog {
  20792. border-radius: 5px;
  20793. }
  20794. .dialog_change >>> .el-dialog__header {
  20795. background: #f2f2f2;
  20796. text-align: center;
  20797. }
  20798. .dialog_change >>> .el-dialog__title {
  20799. line-height: 5px;
  20800. }
  20801. .dialog_change >>> .el-dialog__body {
  20802. background: #fff;
  20803. padding: 10px 20px;
  20804. }
  20805. .score_box {
  20806. display: flex;
  20807. align-items: center;
  20808. margin-bottom: 18px;
  20809. margin-top: 20px;
  20810. }
  20811. .up_photo {
  20812. width: 120px;
  20813. cursor: pointer;
  20814. margin-top: 10px;
  20815. }
  20816. .up_photo2 {
  20817. width: 180px;
  20818. box-sizing: border-box;
  20819. min-width: 180px;
  20820. height: 180px;
  20821. max-height: 180px;
  20822. min-height: 180px;
  20823. cursor: pointer;
  20824. display: flex;
  20825. flex-direction: column;
  20826. align-items: center;
  20827. justify-content: center;
  20828. background: rgb(242, 246, 255);
  20829. /* padding: 25px; */
  20830. margin-bottom: 10px;
  20831. }
  20832. .up_photo2 img {
  20833. width: 50%;
  20834. height: auto;
  20835. }
  20836. .up_photo2 span {
  20837. color: #898989;
  20838. }
  20839. .plworkBox {
  20840. display: flex;
  20841. align-items: center;
  20842. margin-top: 10px;
  20843. flex-wrap: wrap;
  20844. }
  20845. .upload_send {
  20846. margin: 30px auto 30px;
  20847. width: 60%;
  20848. background: #3681fc;
  20849. text-align: center;
  20850. height: 35px;
  20851. line-height: 35px;
  20852. color: #fff;
  20853. border-radius: 5px;
  20854. cursor: pointer;
  20855. }
  20856. .marginT {
  20857. margin-top: 20px;
  20858. }
  20859. .cd_content_steps {
  20860. display: flex;
  20861. width: 90%;
  20862. justify-content: space-around;
  20863. border-top: 1px solid #eeeeee;
  20864. }
  20865. .cd_steps_box {
  20866. display: flex;
  20867. justify-content: center;
  20868. align-items: center;
  20869. flex-direction: column;
  20870. cursor: pointer;
  20871. }
  20872. .first {
  20873. display: flex;
  20874. align-items: center;
  20875. margin: 15px 0 20px 0;
  20876. font-size: 20px;
  20877. }
  20878. .first > div:nth-child(2) {
  20879. font-size: 16px !important;
  20880. padding-left: 10px;
  20881. line-height: 26px;
  20882. box-sizing: border-box;
  20883. }
  20884. .blue_box_one {
  20885. text-align: center;
  20886. color: #fff;
  20887. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20888. border-radius: 7px;
  20889. margin: 10px;
  20890. cursor: pointer;
  20891. width: 95%;
  20892. height: 45px;
  20893. display: flex;
  20894. flex-direction: row;
  20895. justify-content: flex-start;
  20896. align-items: center;
  20897. }
  20898. .blue_box_one > div:nth-child(1) {
  20899. line-height: 30px;
  20900. margin: 0 5px 0 10px;
  20901. width: 30%;
  20902. min-width: 70px;
  20903. border-radius: 4px;
  20904. }
  20905. .blue_box_one > div:nth-child(2) {
  20906. white-space: nowrap;
  20907. text-overflow: ellipsis;
  20908. overflow: hidden;
  20909. word-break: break-all;
  20910. width: 70%;
  20911. text-align: left;
  20912. margin-right: 10px;
  20913. max-width: calc(100% - 85px);
  20914. }
  20915. .blue_box_one > div:nth-child(2):hover {
  20916. overflow: hidden;
  20917. text-overflow: ellipsis;
  20918. white-space: nowrap;
  20919. cursor: pointer;
  20920. }
  20921. .upFile {
  20922. margin: 0 auto;
  20923. width: 120px;
  20924. background: #3681fc;
  20925. color: #fff;
  20926. height: 30px;
  20927. text-align: center;
  20928. line-height: 30px;
  20929. border-radius: 5px;
  20930. font-size: 14px;
  20931. cursor: pointer;
  20932. }
  20933. .courseTitle {
  20934. width: 85%;
  20935. margin: 10px auto 26px auto;
  20936. display: flex;
  20937. flex-direction: row;
  20938. align-items: center;
  20939. justify-content: space-between;
  20940. text-align: center;
  20941. }
  20942. .courseTitle .ctitle {
  20943. font-size: 20px;
  20944. font-weight: bold;
  20945. color: #0e1e33;
  20946. white-space: nowrap;
  20947. overflow: hidden;
  20948. text-overflow: ellipsis;
  20949. }
  20950. .inviteBox {
  20951. font-size: 14px;
  20952. /* margin-top: 5px; */
  20953. color: #00000099;
  20954. text-align: center;
  20955. }
  20956. .courseTitle >>> .el-tooltip {
  20957. width: 100%;
  20958. white-space: nowrap;
  20959. overflow: hidden;
  20960. text-overflow: ellipsis;
  20961. word-break: break-word;
  20962. }
  20963. .ml {
  20964. margin-left: 20px;
  20965. color: #5b7dba;
  20966. border-left: 3px solid #5b7dba;
  20967. padding-left: 5px;
  20968. font-weight: bold;
  20969. }
  20970. .return {
  20971. width: 2rem;
  20972. height: 2rem;
  20973. cursor: pointer;
  20974. }
  20975. .return > img {
  20976. width: 100%;
  20977. height: 100%;
  20978. }
  20979. .returnBtn {
  20980. width: 86px;
  20981. height: 36px;
  20982. background: #3681fc;
  20983. border-radius: 4px;
  20984. color: #fff;
  20985. text-align: center;
  20986. line-height: 36px;
  20987. margin-right: 20px;
  20988. cursor: pointer;
  20989. font-size: 14px;
  20990. font-weight: 400;
  20991. display: flex;
  20992. flex-direction: row;
  20993. flex-wrap: nowrap;
  20994. align-items: center;
  20995. justify-content: center;
  20996. }
  20997. .reBtnIcon,
  20998. .commentIcon,
  20999. .vedioIcon,
  21000. .vedioIcon1 {
  21001. /* width: 36px; */
  21002. height: 36px;
  21003. border-radius: 4px;
  21004. position: relative;
  21005. /* background: #e0eafb; */
  21006. background: #0061ff;
  21007. cursor: pointer;
  21008. margin-right: 12px;
  21009. display: flex;
  21010. align-items: center;
  21011. padding: 0 10px;
  21012. box-sizing: border-box;
  21013. font-size: 14px;
  21014. color: #fff;
  21015. }
  21016. .reBtnIcon::before,
  21017. .commentIcon::before,
  21018. .vedioIcon::before,
  21019. .vedioIcon1::before {
  21020. content: "";
  21021. display: block;
  21022. background-size: 100% 100%;
  21023. background-repeat: no-repeat;
  21024. width: 20px;
  21025. height: 20px;
  21026. margin-right: 5px;
  21027. /* position: absolute; */
  21028. /* top: 8px;
  21029. left: 8px; */
  21030. }
  21031. .vedioIcon1 {
  21032. background: #f63564;
  21033. }
  21034. .reBtnIcon::before {
  21035. background-image: url("../../assets/icon/newIcons/refresh.png");
  21036. }
  21037. .commentIcon::before {
  21038. background-image: url("../../assets/icon/newIcons/comment.png");
  21039. }
  21040. .vedioIcon::before {
  21041. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21042. }
  21043. .vedioIcon1::before {
  21044. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21045. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21046. }
  21047. .tool {
  21048. display: flex;
  21049. flex-direction: column;
  21050. flex-wrap: nowrap;
  21051. width: 13%;
  21052. margin: 0 30px;
  21053. align-items: center;
  21054. position: relative;
  21055. padding: 10px 25px;
  21056. cursor: pointer;
  21057. }
  21058. .whiteBIcon {
  21059. width: 150px;
  21060. }
  21061. .whiteBIcon > img {
  21062. width: 100%;
  21063. height: 100%;
  21064. }
  21065. .mask {
  21066. background-color: rgba(0, 0, 0, 0);
  21067. position: fixed;
  21068. top: 0;
  21069. left: 0;
  21070. width: 100%;
  21071. height: 100%;
  21072. z-index: 20000;
  21073. display: flex;
  21074. align-items: center;
  21075. justify-content: center;
  21076. }
  21077. .progressBox {
  21078. width: 500px;
  21079. height: 180px;
  21080. background: #fff;
  21081. border-radius: 10px;
  21082. box-shadow: 0 0 6px 1px #bfbfbf;
  21083. display: flex;
  21084. align-items: center;
  21085. justify-content: center;
  21086. flex-direction: column;
  21087. position: relative;
  21088. color: #6c6c6c;
  21089. }
  21090. .progressBox >>> .el-progress-bar__outer {
  21091. background-color: #d1dfff !important;
  21092. }
  21093. .progressBox .lbox {
  21094. height: 50px;
  21095. font-size: 19px;
  21096. display: flex;
  21097. align-items: center;
  21098. color: #747474;
  21099. }
  21100. .progressBox .lbox img {
  21101. width: 40px;
  21102. margin-right: 20px;
  21103. }
  21104. .closeCss {
  21105. position: absolute;
  21106. top: 8px;
  21107. right: 8px;
  21108. cursor: pointer;
  21109. width: 20px;
  21110. height: 20px;
  21111. }
  21112. .closeCss > img {
  21113. width: 100%;
  21114. height: 100%;
  21115. }
  21116. .uploadVedio {
  21117. display: flex;
  21118. flex-direction: column;
  21119. flex-wrap: nowrap;
  21120. justify-content: center;
  21121. align-items: center;
  21122. margin: 0 15px 10px 0;
  21123. }
  21124. .uploadVedio > img {
  21125. width: 30px;
  21126. height: 30px;
  21127. }
  21128. .uploadVedio > span {
  21129. white-space: nowrap;
  21130. overflow: hidden;
  21131. text-overflow: ellipsis;
  21132. width: 75px;
  21133. margin-top: 7px;
  21134. }
  21135. .picName {
  21136. white-space: nowrap;
  21137. overflow: hidden;
  21138. text-overflow: ellipsis;
  21139. width: 75px;
  21140. margin-top: 7px;
  21141. }
  21142. .new_top {
  21143. display: flex;
  21144. background: #fff;
  21145. flex-direction: row;
  21146. justify-content: flex-start;
  21147. align-items: center;
  21148. height: 60px;
  21149. position: fixed;
  21150. top: 20px;
  21151. left: 22%;
  21152. width: 77%;
  21153. z-index: 999;
  21154. border-radius: 12px 12px 0 0;
  21155. border-bottom: 1px solid #cad1dc;
  21156. padding: 10px 0;
  21157. }
  21158. .new_topFixed {
  21159. width: 100%;
  21160. height: 40px;
  21161. position: fixed;
  21162. top: 0px;
  21163. display: block;
  21164. background: #f2f2f2;
  21165. z-index: 998;
  21166. }
  21167. .before {
  21168. position: absolute;
  21169. background: #c3dad4;
  21170. width: 6px;
  21171. height: 100%;
  21172. }
  21173. .courseIndex {
  21174. display: flex;
  21175. flex-direction: row;
  21176. align-items: center;
  21177. width: calc(100% - 745px);
  21178. }
  21179. .courseIndex > div:nth-child(1) {
  21180. margin: 0 0 0 10px;
  21181. font-size: 20px;
  21182. min-width: 100px;
  21183. font-weight: bold;
  21184. border-left: 4px solid #3363b9;
  21185. height: 32px;
  21186. text-align: center;
  21187. line-height: 35px;
  21188. }
  21189. .courseIndex > div:nth-child(2) {
  21190. font-size: 20px;
  21191. /* width: 300px; */
  21192. max-width: calc(100% - 105px);
  21193. white-space: nowrap;
  21194. overflow: hidden;
  21195. text-overflow: ellipsis;
  21196. }
  21197. .courseIndex > div:nth-child(3) {
  21198. border-bottom: 1px solid #d7d7d7;
  21199. padding-bottom: 5px;
  21200. background: #3681fc;
  21201. width: 55px;
  21202. min-width: 55px;
  21203. border-radius: 5px;
  21204. color: #fff;
  21205. text-align: center;
  21206. height: 20px;
  21207. line-height: 26px;
  21208. font-size: 14px;
  21209. margin: 0 0 0 10px;
  21210. }
  21211. .course_text {
  21212. padding: 20px 0 0 15px;
  21213. text-indent: 30px;
  21214. width: 80%;
  21215. min-height: 20px;
  21216. }
  21217. .vedioList {
  21218. background: #f2f2f2;
  21219. border: 1px solid #ececec;
  21220. /* width: 38.8%; */
  21221. /* width: 300px; */
  21222. width: 100%;
  21223. height: 445px;
  21224. border-radius: 10px;
  21225. overflow: hidden;
  21226. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21227. }
  21228. .vedioNav {
  21229. margin: 10px 0 0 15px;
  21230. border-bottom: 1px solid #d7d7d7;
  21231. padding-bottom: 5px;
  21232. background: #3681fc;
  21233. width: 55px;
  21234. min-width: 55px;
  21235. border-radius: 5px;
  21236. color: #fff;
  21237. text-align: center;
  21238. height: 20px;
  21239. line-height: 26px;
  21240. font-size: 14px;
  21241. }
  21242. .queTop {
  21243. display: flex;
  21244. padding: 20px 0 20px 30px;
  21245. width: 100%;
  21246. flex-direction: row;
  21247. justify-content: flex-start;
  21248. align-items: center;
  21249. box-sizing: border-box;
  21250. }
  21251. .queTopTitle {
  21252. display: flex;
  21253. flex-direction: row;
  21254. flex-wrap: nowrap;
  21255. align-items: center;
  21256. font-weight: bold;
  21257. font-size: 20px;
  21258. color: rgb(14, 30, 51);
  21259. }
  21260. .queTopTitle::before {
  21261. content: "";
  21262. width: 2px;
  21263. height: 22px;
  21264. background: #3681fc;
  21265. border-radius: 3px;
  21266. display: block;
  21267. margin: 2px 6px 0 0;
  21268. }
  21269. .queTopRight {
  21270. display: flex;
  21271. flex-direction: row;
  21272. flex-wrap: nowrap;
  21273. align-items: center;
  21274. }
  21275. .queTopClose {
  21276. margin-right: 20px;
  21277. cursor: pointer;
  21278. position: relative;
  21279. display: flex;
  21280. }
  21281. .closeImg,
  21282. .openImg {
  21283. width: 25px;
  21284. height: 25px;
  21285. position: absolute;
  21286. left: -20px;
  21287. top: -1px;
  21288. }
  21289. .closeImg > img,
  21290. .openImg > img {
  21291. width: 100%;
  21292. height: 100%;
  21293. }
  21294. .question {
  21295. width: 40px;
  21296. margin-right: 10px;
  21297. margin-top: 7px;
  21298. }
  21299. .queTitle {
  21300. margin-left: 5px;
  21301. font-size: 25px;
  21302. display: flex;
  21303. align-items: center;
  21304. }
  21305. .addEditor {
  21306. width: 100px;
  21307. height: 30px;
  21308. background: #42cda6;
  21309. color: #fff;
  21310. border-radius: 5px;
  21311. text-align: center;
  21312. line-height: 30px;
  21313. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21314. cursor: pointer;
  21315. }
  21316. /* .vedioName {
  21317. cursor: pointer;
  21318. margin: 0px 0px 10px 5px;
  21319. white-space: nowrap;
  21320. overflow: hidden;
  21321. text-overflow: ellipsis;
  21322. width: 100%;
  21323. } */
  21324. .vedioTime {
  21325. width: 35px;
  21326. position: absolute;
  21327. color: #fff;
  21328. bottom: 0px;
  21329. right: 0px;
  21330. text-align: center;
  21331. background: #46411f;
  21332. height: 20px;
  21333. font-size: 14px;
  21334. line-height: 20px;
  21335. }
  21336. .homework {
  21337. width: 200px;
  21338. display: flex;
  21339. flex-direction: column;
  21340. flex-wrap: nowrap;
  21341. align-items: center;
  21342. cursor: pointer;
  21343. }
  21344. .homebox {
  21345. display: flex;
  21346. flex-wrap: wrap;
  21347. flex-direction: row;
  21348. justify-content: flex-start;
  21349. align-items: center;
  21350. padding: 15px 0;
  21351. }
  21352. .isChooseActive {
  21353. color: #3681fc !important;
  21354. font-weight: bold !important;
  21355. }
  21356. .chooseWho {
  21357. display: flex;
  21358. width: 100%;
  21359. flex-direction: row;
  21360. flex-wrap: nowrap;
  21361. justify-content: flex-start;
  21362. padding-bottom: 10px;
  21363. }
  21364. .chooseWho > div {
  21365. cursor: pointer;
  21366. padding-bottom: 10px;
  21367. margin: 0 30px 0 0;
  21368. font-weight: 400;
  21369. color: #0e1e33;
  21370. }
  21371. .addPoint > div > img {
  21372. cursor: pointer;
  21373. width: 85px;
  21374. border-radius: 15px;
  21375. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21376. }
  21377. .addPoint > div {
  21378. display: flex;
  21379. flex-direction: column;
  21380. flex-wrap: nowrap;
  21381. align-items: center;
  21382. }
  21383. .isBorder > div {
  21384. margin: 0 0 10px 0;
  21385. align-items: flex-start !important;
  21386. }
  21387. .noiframeBox {
  21388. display: flex;
  21389. flex-wrap: wrap;
  21390. }
  21391. .iframeBox iframe {
  21392. width: 100%;
  21393. height: 800px;
  21394. border: none;
  21395. margin-bottom: 20px;
  21396. border: 1px solid #ccc;
  21397. }
  21398. .upload_toolBtn {
  21399. background: #3681fc;
  21400. color: #fff;
  21401. width: 110px;
  21402. text-align: center;
  21403. height: 35px;
  21404. line-height: 35px;
  21405. font-size: 14px;
  21406. border-radius: 5px;
  21407. cursor: pointer;
  21408. position: absolute;
  21409. right: 10px;
  21410. bottom: 0;
  21411. }
  21412. .binfo_input,
  21413. .pj {
  21414. font: inherit;
  21415. color: currentColor;
  21416. width: 100%;
  21417. margin: 0;
  21418. padding: 15px 14px;
  21419. display: block;
  21420. min-width: 0;
  21421. outline: none;
  21422. box-sizing: content-box;
  21423. background: none;
  21424. -webkit-tap-highlight-color: transparent;
  21425. border: 1px solid rgba(0, 0, 0, 0.23);
  21426. border-radius: 4px;
  21427. box-sizing: border-box;
  21428. resize: none;
  21429. }
  21430. .binfo_input:focus-visible {
  21431. border: 1px solid rgba(61, 103, 188);
  21432. }
  21433. .dialog_diy >>> .el-dialog__header,
  21434. .dialog_diy1 >>> .el-dialog__header {
  21435. background: #454545 !important;
  21436. padding: 15px 20px;
  21437. }
  21438. .dialog_diy >>> .el-dialog__title,
  21439. .dialog_diy1 >>> .el-dialog__title {
  21440. color: #fff;
  21441. }
  21442. .dialog_diy >>> .el-dialog__headerbtn,
  21443. .dialog_diy1 >>> .el-dialog__headerbtn {
  21444. top: 19px;
  21445. }
  21446. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21447. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21448. color: #fff;
  21449. }
  21450. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21451. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21452. color: #fff;
  21453. }
  21454. .dialog_diy1 >>> .el-dialog__body {
  21455. padding: 0;
  21456. }
  21457. .dialog_diy >>> .el-dialog__body,
  21458. .dialog_diy >>> .el-dialog__footer,
  21459. .dialog_diy1 >>> .el-dialog__footer {
  21460. background: #fafafa;
  21461. }
  21462. .a_addBox {
  21463. padding: 0 0 0 15px;
  21464. }
  21465. .a_add_box {
  21466. padding: 10px;
  21467. background: #fff;
  21468. margin-bottom: 10px;
  21469. border-radius: 5px;
  21470. box-shadow: 0 0 5px 0 #d5d5d5;
  21471. }
  21472. .a_add_head {
  21473. display: flex;
  21474. align-items: flex-start;
  21475. /* justify-content: space-between; */
  21476. flex-direction: column;
  21477. /* flex-direction: row; */
  21478. margin: 10px 0 20px 0;
  21479. font-size: 18px;
  21480. width: 100%;
  21481. }
  21482. .askIndex {
  21483. background: #3681fc;
  21484. border-radius: 50%;
  21485. color: #fff;
  21486. width: 25px;
  21487. height: 25px;
  21488. min-width: 25px;
  21489. min-height: 25px;
  21490. text-align: center;
  21491. line-height: 25px;
  21492. margin-right: 5px;
  21493. }
  21494. .a_add_head .a_add_head_input {
  21495. width: 300px;
  21496. }
  21497. .a_add_head .a_add_head_div {
  21498. display: flex;
  21499. align-items: center;
  21500. justify-content: space-between;
  21501. }
  21502. .a_add_body {
  21503. display: flex;
  21504. align-items: center;
  21505. }
  21506. .a_add_input {
  21507. display: flex;
  21508. align-items: center;
  21509. flex-wrap: wrap;
  21510. width: 100%;
  21511. }
  21512. .a_add_input >>> .el-radio-group,
  21513. .a_add_input >>> .el-checkbox-group {
  21514. width: 100%;
  21515. }
  21516. .a_add_input >>> .el-radio,
  21517. .a_add_input >>> .el-checkbox {
  21518. display: flex;
  21519. flex-direction: row;
  21520. flex-wrap: nowrap;
  21521. align-items: center;
  21522. padding: 15px 0;
  21523. }
  21524. .a_add_input >>> .el-radio:not(:last-child),
  21525. .a_add_input >>> .el-checkbox:not(:last-child) {
  21526. width: 100%;
  21527. border-bottom: 1px solid #efefef;
  21528. }
  21529. .redioStyle >>> .el-radio__label {
  21530. font-size: 18px;
  21531. }
  21532. .redioStyle >>> .el-radio__label > span,
  21533. .redioStyle >>> .el-checkbox__label > span {
  21534. word-break: break-all;
  21535. white-space: normal;
  21536. }
  21537. .redioStyle >>> .el-checkbox__label {
  21538. font-size: 18px;
  21539. }
  21540. .toolHeng2 {
  21541. width: 100%;
  21542. padding-left: 15px;
  21543. box-sizing: border-box;
  21544. }
  21545. .workNav {
  21546. font-size: 20px;
  21547. font-weight: bold;
  21548. color: #0e1e33;
  21549. display: flex;
  21550. flex-direction: row;
  21551. flex-wrap: nowrap;
  21552. align-items: center;
  21553. padding: 15px 0 15px 0;
  21554. }
  21555. .workNav::before {
  21556. content: "";
  21557. width: 2px;
  21558. height: 22px;
  21559. background: #3681fc;
  21560. border-radius: 3px;
  21561. display: block;
  21562. margin: 2px 6px 0 0;
  21563. }
  21564. .toolHeng {
  21565. display: flex;
  21566. flex-direction: row;
  21567. flex-wrap: wrap;
  21568. justify-content: flex-start;
  21569. align-items: center;
  21570. width: 100%;
  21571. }
  21572. .toolHeng > div {
  21573. padding-left: 20px;
  21574. }
  21575. .isWidth {
  21576. width: 20%;
  21577. }
  21578. .textTitle {
  21579. display: flex;
  21580. flex-direction: row;
  21581. flex-wrap: nowrap;
  21582. align-items: center;
  21583. width: 95%;
  21584. }
  21585. .textTitle >>> .el-form-item__label {
  21586. font-size: 22px;
  21587. color: #918f8f;
  21588. width: 100px;
  21589. }
  21590. .textTitle >>> .el-form-item__content {
  21591. width: calc(100% - 100px);
  21592. }
  21593. .textCss >>> .el-dialog {
  21594. width: 800px !important;
  21595. height: 400px;
  21596. background: #fafafa;
  21597. }
  21598. .textCss >>> .el-dialog__body {
  21599. margin: 55px 8% 0 8%;
  21600. padding: 0 !important;
  21601. }
  21602. .textCss >>> .el-dialog__footer {
  21603. padding-top: 38px;
  21604. }
  21605. .toolsCss >>> .el-dialog__body {
  21606. padding: 20px;
  21607. }
  21608. .lineCss >>> .el-dialog__body {
  21609. display: flex;
  21610. flex-direction: row;
  21611. align-items: center;
  21612. justify-content: center;
  21613. }
  21614. .newNav {
  21615. display: flex;
  21616. flex-direction: row;
  21617. align-items: baseline;
  21618. justify-content: flex-start;
  21619. }
  21620. .navListItem {
  21621. width: calc(100% - 20px);
  21622. height: 50px;
  21623. margin: 0px auto 10px;
  21624. display: flex;
  21625. flex-direction: row;
  21626. flex-wrap: nowrap;
  21627. align-items: center;
  21628. justify-content: space-between;
  21629. background: #f0f4fa;
  21630. border-radius: 6px 6px 6px 6px;
  21631. }
  21632. .navText {
  21633. cursor: pointer;
  21634. white-space: nowrap;
  21635. overflow: hidden;
  21636. text-overflow: ellipsis;
  21637. width: 220px;
  21638. padding: 0 10px;
  21639. font-weight: 400;
  21640. color: #0e1e33;
  21641. }
  21642. .downIcon {
  21643. width: 20px;
  21644. min-width: 20px;
  21645. height: 20px;
  21646. margin-right: 15px;
  21647. cursor: pointer;
  21648. }
  21649. .downIcon > img {
  21650. width: 100%;
  21651. height: 100%;
  21652. }
  21653. .noVedio {
  21654. display: flex;
  21655. flex-direction: row;
  21656. justify-content: center;
  21657. align-content: center;
  21658. }
  21659. .noNavText {
  21660. cursor: pointer;
  21661. margin: 0px 0px 10px 5px;
  21662. width: 112px;
  21663. }
  21664. .listNoVedio {
  21665. margin: 0 0 0 30px;
  21666. width: 97%;
  21667. }
  21668. .video-player >>> .video-js {
  21669. height: 100%;
  21670. }
  21671. .hangVedioList {
  21672. width: 90% !important;
  21673. height: 150px !important;
  21674. margin: 20px 0 0 30px;
  21675. }
  21676. .hangVedio {
  21677. width: 100%;
  21678. height: 170px !important;
  21679. align-items: flex-start !important;
  21680. }
  21681. .hangHand {
  21682. height: 150px !important;
  21683. }
  21684. .twoChild {
  21685. width: 95%;
  21686. margin: 10px;
  21687. border-radius: 5px;
  21688. background: #f2f2f2;
  21689. display: flex;
  21690. flex-direction: column;
  21691. flex-wrap: nowrap;
  21692. justify-content: flex-start;
  21693. align-items: flex-start;
  21694. transition: all 0.5s;
  21695. overflow: hidden;
  21696. height: 0;
  21697. background: #e7f3ff;
  21698. }
  21699. .twoChild > div:nth-child(1) {
  21700. margin-top: 5px;
  21701. }
  21702. .navChild {
  21703. width: 100%;
  21704. cursor: pointer;
  21705. margin-bottom: 10px;
  21706. position: relative;
  21707. }
  21708. .navChild img {
  21709. position: absolute;
  21710. right: 11px;
  21711. width: 15px;
  21712. top: 50%;
  21713. transform: translateY(-50%);
  21714. }
  21715. .navActive,
  21716. .toolActive {
  21717. height: auto !important;
  21718. overflow: auto !important;
  21719. /* // padding-bottom: 16px; */
  21720. }
  21721. .toolActive {
  21722. padding: 0;
  21723. }
  21724. .navTask {
  21725. display: flex;
  21726. flex-direction: row;
  21727. flex-wrap: nowrap;
  21728. align-items: center;
  21729. align-content: flex-start;
  21730. height: 40px;
  21731. justify-content: flex-start;
  21732. padding: 0 10px;
  21733. width: 100%;
  21734. box-sizing: border-box;
  21735. }
  21736. .navTaskname {
  21737. white-space: nowrap;
  21738. text-overflow: ellipsis;
  21739. overflow: hidden;
  21740. word-break: break-all;
  21741. padding-left: 5px;
  21742. }
  21743. .openTaskActive {
  21744. /* background-color: #e0eafb !important;
  21745. color: #0061ff; */
  21746. color:#fff;
  21747. background: rgb(55, 129, 252) !important;
  21748. }
  21749. .iframeName {
  21750. margin: 5px 0;
  21751. border-left: 4px solid #41c4a4;
  21752. padding-left: 4px;
  21753. }
  21754. .toolTitle {
  21755. margin: 0px 0px 20px;
  21756. font-size: 20px;
  21757. font-weight: 500;
  21758. border-left: 4px solid #41c4a4;
  21759. padding-left: 4px;
  21760. }
  21761. .cru_selectBox {
  21762. overflow: auto;
  21763. width: 95%;
  21764. margin: 17px auto 0;
  21765. height: calc(100% - 40px - 21px - 20px - 17px);
  21766. background: #fff;
  21767. border-radius: 8px;
  21768. }
  21769. .cru_selectBox::-webkit-scrollbar,
  21770. .study_top::-webkit-scrollbar,
  21771. .textContent::-webkit-scrollbar {
  21772. /*滚动条整体样式*/
  21773. width: 6px;
  21774. /*高宽分别对应横竖滚动条的尺寸*/
  21775. height: 6px;
  21776. }
  21777. /*定义滚动条轨道 内阴影+圆角*/
  21778. .cru_selectBox::-webkit-scrollbar-track,
  21779. .study_top::-webkit-scrollbar-track,
  21780. .textContent::-webkit-scrollbar {
  21781. border-radius: 10px;
  21782. background-color: #b8bdc9;
  21783. }
  21784. /*定义滑块 内阴影+圆角*/
  21785. .cru_selectBox::-webkit-scrollbar-thumb,
  21786. .study_top::-webkit-scrollbar-thumb,
  21787. .textContent::-webkit-scrollbar-thumb {
  21788. border-radius: 10px;
  21789. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21790. background-color: #2c5ab3;
  21791. }
  21792. .vedioBox {
  21793. border-radius: 0 0 20px 20px;
  21794. background: #fff;
  21795. overflow: auto;
  21796. }
  21797. .taskBox {
  21798. width: 98%;
  21799. background: #f0f4fa;
  21800. margin: 10px auto;
  21801. padding: 0 10px;
  21802. border-radius: 4px;
  21803. box-sizing: border-box;
  21804. }
  21805. .vedioTaskBox {
  21806. width: 100%;
  21807. display: flex;
  21808. flex-direction: row;
  21809. flex-wrap: nowrap;
  21810. align-items: flex-start;
  21811. position: relative;
  21812. }
  21813. .toolBox {
  21814. margin: 15px 0 0 25px;
  21815. display: flex;
  21816. position: relative;
  21817. padding: 18px 20px;
  21818. border-top-left-radius: 5px;
  21819. border-top-right-radius: 5px;
  21820. width: 90%;
  21821. }
  21822. .btnAll {
  21823. position: absolute;
  21824. right: 0;
  21825. display: flex;
  21826. flex-direction: row;
  21827. flex-wrap: nowrap;
  21828. align-items: center;
  21829. }
  21830. .btnLeft,
  21831. .btnRight {
  21832. display: flex;
  21833. flex-direction: row;
  21834. flex-wrap: nowrap;
  21835. align-items: center;
  21836. padding: 5px 0;
  21837. }
  21838. .btnLeft {
  21839. border-right: 1px solid #cad1dc;
  21840. }
  21841. .btnLeft > .custom-tooltip {
  21842. background: #3681fc;
  21843. color: #fff;
  21844. }
  21845. .last:hover {
  21846. background: #3383fa !important;
  21847. color: #fff;
  21848. border: 1px solid #3383fa !important;
  21849. }
  21850. .last,
  21851. .returnBtn1 {
  21852. width: 90px;
  21853. height: 36px;
  21854. background: #ffffff;
  21855. border-radius: 4px;
  21856. border: 1px solid #0061ff;
  21857. color: #0061ff;
  21858. cursor: pointer;
  21859. display: flex;
  21860. flex-direction: row;
  21861. flex-wrap: nowrap;
  21862. align-items: center;
  21863. justify-content: center;
  21864. margin-left: 12px;
  21865. }
  21866. .returnBtn1 {
  21867. background: #f0f4fa;
  21868. border-radius: 4px;
  21869. border: 1px solid #cad1dc;
  21870. margin: 0 12px;
  21871. }
  21872. .lastImg {
  21873. min-width: 15px;
  21874. width: 15px;
  21875. height: 15px;
  21876. display: flex;
  21877. }
  21878. .lastText {
  21879. padding: 0 5px 0 5px;
  21880. box-sizing: border-box;
  21881. font-size: 14px;
  21882. }
  21883. .lastImg > img {
  21884. width: 100%;
  21885. height: 100%;
  21886. }
  21887. /* .vedioTimeBox {
  21888. display: flex;
  21889. flex-direction: row;
  21890. align-items: center;
  21891. flex-wrap: nowrap;
  21892. position: relative;
  21893. } */
  21894. .navBox {
  21895. background: #fff;
  21896. height: calc(100% - 40px);
  21897. overflow-y: auto;
  21898. overflow-x: hidden;
  21899. }
  21900. .worksBox {
  21901. margin: 0 0 10px 25px;
  21902. border-bottom: 1px solid #eeeeee;
  21903. padding: 18px 20px;
  21904. border-radius: 4px;
  21905. width: 90%;
  21906. }
  21907. .worksBTitle {
  21908. font-size: 20px;
  21909. padding-bottom: 15px;
  21910. border-bottom: 1px solid #eeeeee;
  21911. display: flex;
  21912. align-items: center;
  21913. }
  21914. .greenBox {
  21915. width: 5px;
  21916. height: 30px;
  21917. background: #63b6fa;
  21918. margin-right: 5px;
  21919. }
  21920. .worksDetailBox {
  21921. display: flex;
  21922. width: 100%;
  21923. flex-direction: row;
  21924. flex-wrap: wrap;
  21925. align-items: flex-end;
  21926. justify-content: flex-start;
  21927. padding: 15px 5px;
  21928. box-sizing: border-box;
  21929. }
  21930. .works {
  21931. display: flex;
  21932. flex-direction: column;
  21933. flex-wrap: nowrap;
  21934. align-items: flex-start;
  21935. justify-content: flex-start;
  21936. align-content: center;
  21937. max-width: 240px;
  21938. width: calc(100% / 3 - 10px);
  21939. height: auto;
  21940. margin-right: 10px;
  21941. margin-bottom: 10px;
  21942. overflow: hidden;
  21943. height: 140px;
  21944. box-shadow: 0 0 6px 1px #dfdada;
  21945. border-radius: 15px;
  21946. }
  21947. .workImg {
  21948. width: 100%;
  21949. /* height: calc(100% - 40px); */
  21950. height: 105px;
  21951. position: relative;
  21952. }
  21953. .workImg > img {
  21954. width: 100%;
  21955. height: 100%;
  21956. object-fit: contain;
  21957. cursor: pointer;
  21958. }
  21959. .worksName {
  21960. height: 40px;
  21961. line-height: 40px;
  21962. display: flex;
  21963. width: 100%;
  21964. flex-direction: row;
  21965. flex-wrap: nowrap;
  21966. justify-content: space-between;
  21967. align-items: center;
  21968. margin: 0 0 0 10px;
  21969. }
  21970. .worksName > div:nth-child(1) {
  21971. width: 110px;
  21972. white-space: nowrap;
  21973. overflow: hidden;
  21974. text-overflow: ellipsis;
  21975. }
  21976. .worksName > div:nth-child(2) {
  21977. color: #b7b4b5;
  21978. }
  21979. .noWorksS {
  21980. padding: 15px 0;
  21981. display: flex;
  21982. flex-direction: row;
  21983. flex-wrap: wrap;
  21984. align-items: center;
  21985. justify-content: flex-start;
  21986. }
  21987. .noWorksName,
  21988. .isWorksName,
  21989. .isWorksName2 {
  21990. background: #ddebf8;
  21991. color: #000;
  21992. width: 90px;
  21993. height: 25px;
  21994. text-align: center;
  21995. line-height: 25px;
  21996. border-radius: 4px;
  21997. margin: 10px 15px 10px 0;
  21998. white-space: nowrap;
  21999. overflow: hidden;
  22000. padding: 5px;
  22001. text-overflow: ellipsis;
  22002. cursor: pointer;
  22003. border: 1px solid #ddebf8;
  22004. }
  22005. .noWorksName {
  22006. background: #fff;
  22007. color: #0061ff;
  22008. border: 1px solid #0061ff;
  22009. }
  22010. .noWorksName > span{
  22011. max-width: 100%;
  22012. display: block;
  22013. overflow: hidden;
  22014. text-overflow: ellipsis;
  22015. white-space: nowrap;
  22016. }
  22017. .isWorksName2 {
  22018. width: 100px;
  22019. height: 40px;
  22020. line-height: 40px;
  22021. position: relative;
  22022. background: #dae6f9;
  22023. }
  22024. .isWorksName {
  22025. background: #e7ebf1 !important;
  22026. width: 100px;
  22027. height: 40px;
  22028. line-height: 40px;
  22029. position: relative;
  22030. color: #acb4bf;
  22031. border: 1px solid #cad1dc !important;
  22032. }
  22033. .isSelectName,
  22034. .noWorksName:hover {
  22035. background: #3383fa !important;
  22036. color: #fff !important;
  22037. border: 1px solid #3383fa !important;
  22038. }
  22039. .title {
  22040. background: #1e5cc9;
  22041. /* width: 98%; */
  22042. height: 45px;
  22043. color: #fff;
  22044. line-height: 45px;
  22045. padding-left: 20px;
  22046. box-sizing: border-box;
  22047. }
  22048. .textBox {
  22049. font-size: 20px;
  22050. width: 90%;
  22051. display: flex;
  22052. flex-direction: column;
  22053. align-items: center;
  22054. margin: 20px auto 0;
  22055. max-height: calc(100% - 75px);
  22056. overflow: auto;
  22057. }
  22058. .textContent {
  22059. font-size: 18px;
  22060. width: 95%;
  22061. max-width: 95%;
  22062. }
  22063. .answerBg {
  22064. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22065. background-size: 100% 100%;
  22066. width: 100%;
  22067. height: 100%;
  22068. color: #fff;
  22069. text-align: center;
  22070. display: flex;
  22071. flex-direction: column;
  22072. flex-wrap: nowrap;
  22073. align-items: center;
  22074. position: relative;
  22075. justify-content: center;
  22076. }
  22077. .answerBg > div:nth-child(1) {
  22078. /* font-size: 22px;
  22079. padding: 25px 0 10px; */
  22080. }
  22081. .answerContent {
  22082. width: 215px;
  22083. max-height: 60px;
  22084. word-break: break-all;
  22085. text-align: center;
  22086. /* white-space: nowrap; */
  22087. overflow: hidden;
  22088. text-overflow: ellipsis;
  22089. /* padding: 23px 0 0; */
  22090. -webkit-line-clamp: 3;
  22091. -webkit-box-orient: vertical;
  22092. display: -webkit-box;
  22093. font-size: 15px;
  22094. cursor: pointer;
  22095. }
  22096. .elist_input_box {
  22097. display: flex;
  22098. align-items: flex-start;
  22099. flex-wrap: nowrap;
  22100. padding: 10px 0 15px 30px;
  22101. flex-direction: column;
  22102. }
  22103. .elist_input {
  22104. /* width: 40%; */
  22105. width: 45%;
  22106. padding: 20px;
  22107. /* margin: 20px; */
  22108. box-sizing: border-box;
  22109. }
  22110. .elist_input .elist_input_box input {
  22111. font: inherit;
  22112. color: currentColor;
  22113. width: 200px;
  22114. padding: 8px 14px;
  22115. display: block;
  22116. min-width: 0;
  22117. outline: none;
  22118. border: 1px solid rgba(0, 0, 0, 0.23);
  22119. border-radius: 4px;
  22120. box-sizing: border-box;
  22121. background: #fff;
  22122. margin: 0 20px 0 0;
  22123. }
  22124. .elist_input .elist_input_box span {
  22125. height: 36px;
  22126. line-height: 36px;
  22127. color: rgb(82, 82, 82);
  22128. }
  22129. .elist_input .elist_input_box .remove {
  22130. height: 20px;
  22131. width: 20px;
  22132. background-size: 100% 100%;
  22133. background-position: unset;
  22134. margin-left: 5px;
  22135. }
  22136. .elist_input_box >>> .el-rate {
  22137. display: flex;
  22138. height: 36px;
  22139. align-items: center;
  22140. }
  22141. .elist_input_box .elist_inptu_text {
  22142. min-height: 50px;
  22143. /* width: 500px;
  22144. max-height: 150px; */
  22145. width: 100%;
  22146. line-height: 50px;
  22147. color: rgb(82, 82, 82);
  22148. overflow: auto;
  22149. text-indent: 5px;
  22150. background: #f7f6f9;
  22151. border-radius: 10px;
  22152. }
  22153. .elist_input_box .elist_inptu_text input {
  22154. width: 500px;
  22155. }
  22156. .elist_input_box >>> .el-rate__icon {
  22157. font-size: 24px;
  22158. }
  22159. .isClick {
  22160. background: #4d9def;
  22161. }
  22162. .bzBox {
  22163. display: flex;
  22164. flex-direction: row;
  22165. align-items: center;
  22166. }
  22167. .bzBox .yCss {
  22168. width: 7px;
  22169. height: 7px;
  22170. background: #fff;
  22171. margin: 0 16px 0 6px;
  22172. border-radius: 50%;
  22173. border: 5px solid #3681fc;
  22174. z-index: 99;
  22175. }
  22176. .bzBox > div:nth-child(2) {
  22177. font-size: 18px;
  22178. font-weight: bold;
  22179. color: #0e1e33;
  22180. }
  22181. .navTitile {
  22182. padding: 0 0px 0 15px;
  22183. font-size: 16px;
  22184. font-weight: bold;
  22185. color: #0e1e33;
  22186. height: 40px;
  22187. line-height: 40px;
  22188. }
  22189. .isTypeOne {
  22190. width: 240px;
  22191. height: 170px;
  22192. /* border: 1px solid #f8f8f8; */
  22193. border-radius: 10px;
  22194. box-shadow: 0 0 6px 1px #dfdada;
  22195. }
  22196. .e_add_top {
  22197. display: flex;
  22198. justify-content: space-between;
  22199. padding: 10px 20px;
  22200. border-radius: 3px;
  22201. background: #fff;
  22202. }
  22203. .e_add_title2 {
  22204. display: flex;
  22205. align-items: center;
  22206. }
  22207. .e_add_title2 span {
  22208. width: 40px;
  22209. }
  22210. .e_add_title {
  22211. display: flex;
  22212. align-items: center;
  22213. color: #b8b8b8;
  22214. font-size: 18px;
  22215. position: relative;
  22216. height: 40px;
  22217. }
  22218. .e_add_title span {
  22219. margin-right: 10px;
  22220. }
  22221. .e_add_title .el_input {
  22222. width: 300px;
  22223. }
  22224. .e_add_title >>> .el-input__inner {
  22225. width: 400px;
  22226. }
  22227. .e_add_btn {
  22228. }
  22229. .e_add_content {
  22230. display: flex;
  22231. width: 100%;
  22232. max-width: 650px;
  22233. height: 550px;
  22234. }
  22235. .e_add_list {
  22236. background: #fff;
  22237. height: 500px;
  22238. width: 210px;
  22239. position: relative;
  22240. margin: 15px 5px 0 0;
  22241. flex-shrink: 0;
  22242. display: flex;
  22243. flex-direction: column;
  22244. }
  22245. .e_add_list_title {
  22246. font-size: 20px;
  22247. width: 100%;
  22248. box-sizing: border-box;
  22249. padding: 15px 40px;
  22250. text-align: center;
  22251. border-bottom: 1px solid #eaeaea;
  22252. position: relative;
  22253. display: flex;
  22254. align-items: center;
  22255. justify-content: center;
  22256. height: 57px;
  22257. background: #f6f6f6;
  22258. }
  22259. .e_add_list_title span {
  22260. overflow: hidden;
  22261. white-space: nowrap;
  22262. text-overflow: ellipsis;
  22263. }
  22264. .e_add_list_title img {
  22265. position: absolute;
  22266. right: 15px;
  22267. width: 25px;
  22268. cursor: pointer;
  22269. top: 50%;
  22270. transform: translateY(-50%);
  22271. }
  22272. .e_add_list_body {
  22273. height: calc(100% - 187px);
  22274. overflow: auto;
  22275. }
  22276. .e_add_list_child {
  22277. width: 100%;
  22278. display: flex;
  22279. align-items: center;
  22280. justify-content: center;
  22281. position: relative;
  22282. box-sizing: border-box;
  22283. padding: 15px 40px;
  22284. text-align: center;
  22285. }
  22286. .e_add_list_child span {
  22287. overflow: hidden;
  22288. white-space: nowrap;
  22289. text-overflow: ellipsis;
  22290. cursor: pointer;
  22291. }
  22292. .e_add_list_child img {
  22293. position: absolute;
  22294. right: 10px;
  22295. width: 21px;
  22296. cursor: pointer;
  22297. top: 50%;
  22298. transform: translateY(-50%);
  22299. }
  22300. .e_add_list_child + .e_add_list_child {
  22301. border-top: 1px solid #eaeaea;
  22302. }
  22303. .e_add_list_child .active {
  22304. color: #409eff;
  22305. }
  22306. .e_add_list_btn {
  22307. position: absolute;
  22308. bottom: 0;
  22309. height: 50px;
  22310. background: rgb(120, 120, 254);
  22311. width: 100%;
  22312. color: #fff;
  22313. font-size: 16px;
  22314. text-align: center;
  22315. line-height: 50px;
  22316. cursor: pointer;
  22317. }
  22318. .e_add_list_detail {
  22319. position: absolute;
  22320. bottom: 0;
  22321. height: 130px;
  22322. background: rgb(120, 120, 254);
  22323. width: 100%;
  22324. color: #fff;
  22325. font-size: 16px;
  22326. display: flex;
  22327. align-items: center;
  22328. justify-content: center;
  22329. }
  22330. .e_add_list_detail textarea {
  22331. height: 90%;
  22332. width: 95%;
  22333. border: none;
  22334. resize: none;
  22335. outline: none;
  22336. padding: 5px;
  22337. box-sizing: border-box;
  22338. }
  22339. .e_add_list_pbox {
  22340. width: 100%;
  22341. max-width: 650px;
  22342. /* height: 600px; */
  22343. }
  22344. .e_add_list_pbox_title {
  22345. height: 50px;
  22346. background: #fff;
  22347. display: flex;
  22348. align-items: center;
  22349. width: 100%;
  22350. box-sizing: border-box;
  22351. padding: 0 20px;
  22352. }
  22353. .type_title {
  22354. font-size: 18px;
  22355. font-weight: 700;
  22356. }
  22357. .type_content {
  22358. font-size: 16px;
  22359. /* margin-left: 30px; */
  22360. }
  22361. .type_content span + span {
  22362. margin-left: 20px;
  22363. }
  22364. .type_content span {
  22365. cursor: pointer;
  22366. padding-bottom: 5px;
  22367. box-sizing: border-box;
  22368. }
  22369. .type_content .active {
  22370. color: #409eff;
  22371. border-bottom: 2px solid #409eff;
  22372. }
  22373. .e_add_list_pbox_content {
  22374. height: calc(100% - 50px);
  22375. display: flex;
  22376. align-items: center;
  22377. width: 100%;
  22378. background: #fff;
  22379. }
  22380. .evaCss {
  22381. display: flex;
  22382. flex-direction: row;
  22383. flex-wrap: nowrap;
  22384. align-items: flex-start;
  22385. padding: 0 0 20px;
  22386. }
  22387. .cru_line {
  22388. position: absolute;
  22389. bottom: 0px;
  22390. transition: all 0.5s;
  22391. left: 0px;
  22392. width: 125px;
  22393. margin-left: -25px;
  22394. }
  22395. .isNoMessage {
  22396. width: 20%;
  22397. margin: 25% auto 0;
  22398. }
  22399. .isNoMessage > img {
  22400. width: 100%;
  22401. height: 100%;
  22402. }
  22403. .fullStyle >>> .el-dialog__body {
  22404. height: 100% !important;
  22405. }
  22406. .fullStyle >>> .el-dialog,
  22407. .fullStyle {
  22408. width: 100% !important;
  22409. max-width: 100% !important;
  22410. height: 100% !important;
  22411. margin: 0 !important;
  22412. }
  22413. .full_diy >>> .el-dialog {
  22414. margin: 0 !important;
  22415. height: 100%;
  22416. padding: 4px;
  22417. }
  22418. .full_diy >>> .el-dialog__body {
  22419. height: calc(100% - 100px);
  22420. }
  22421. .full_diy2 >>> .el-dialog__body {
  22422. height: calc(100% - 50px);
  22423. padding: 0;
  22424. }
  22425. .switchCss {
  22426. /* width: 100%; */
  22427. display: flex;
  22428. flex-direction: row;
  22429. flex-wrap: nowrap;
  22430. align-items: center;
  22431. /* justify-content: center; */
  22432. }
  22433. .isClickNav {
  22434. /* color: #499eef; */
  22435. color: #000;
  22436. }
  22437. .commentImg {
  22438. width: 25px;
  22439. height: 25px;
  22440. cursor: pointer;
  22441. }
  22442. .commentImg > img {
  22443. width: 100%;
  22444. height: 100%;
  22445. }
  22446. .comment {
  22447. background: #f9f9f9;
  22448. border-radius: 0 0 4px 4px;
  22449. display: flex;
  22450. flex-direction: row;
  22451. flex-wrap: nowrap;
  22452. align-items: center;
  22453. justify-content: flex-end;
  22454. height: 35px;
  22455. }
  22456. .commentList {
  22457. display: flex;
  22458. flex-direction: row;
  22459. flex-wrap: nowrap;
  22460. align-items: center;
  22461. justify-content: center;
  22462. align-content: center;
  22463. /* margin-left: 15px; */
  22464. /* margin-left: 8px; */
  22465. }
  22466. .scoreImg {
  22467. width: 17px;
  22468. height: 17px;
  22469. }
  22470. .studentDetail {
  22471. display: flex;
  22472. flex-direction: row;
  22473. flex-wrap: nowrap;
  22474. /* align-items: center; */
  22475. align-items: flex-start;
  22476. }
  22477. .tx {
  22478. width: 50px;
  22479. }
  22480. .tx > img {
  22481. width: 100%;
  22482. height: 100%;
  22483. }
  22484. .nameAndTime {
  22485. display: flex;
  22486. flex-direction: column;
  22487. flex-wrap: nowrap;
  22488. align-items: flex-start;
  22489. margin-left: 10px;
  22490. }
  22491. .worksAnswer {
  22492. color: #4078dd;
  22493. margin: 10px 0;
  22494. font-size: 16px;
  22495. position: relative;
  22496. }
  22497. .worksAnswer > img {
  22498. width: 500px;
  22499. height: 300px;
  22500. object-fit: contain;
  22501. margin: 0 auto;
  22502. display: block;
  22503. }
  22504. .commentTop {
  22505. border-bottom: 1px solid #eaeaea;
  22506. padding-bottom: 10px;
  22507. }
  22508. .commentBox {
  22509. padding-top: 15px;
  22510. }
  22511. .pl {
  22512. font-size: 18px;
  22513. }
  22514. .plPerson {
  22515. width: 100%;
  22516. }
  22517. .plName {
  22518. display: flex;
  22519. flex-direction: row;
  22520. flex-wrap: nowrap;
  22521. align-items: baseline;
  22522. color: #78787a;
  22523. width: 100%;
  22524. }
  22525. .deleteComment {
  22526. cursor: pointer;
  22527. margin-left: auto;
  22528. color: #237ade;
  22529. }
  22530. .plContent {
  22531. margin-top: 5px;
  22532. }
  22533. .evalCss {
  22534. background: #fff;
  22535. font-size: 18px;
  22536. }
  22537. .nav {
  22538. color: #9d9d9d;
  22539. padding: 5px 0 15px 20px;
  22540. }
  22541. .middleBox {
  22542. padding: 5px 0 15px 20px;
  22543. }
  22544. .pfBox {
  22545. padding-bottom: 30px;
  22546. }
  22547. .nameAndrate {
  22548. display: flex;
  22549. flex-direction: row;
  22550. flex-wrap: nowrap;
  22551. align-items: center;
  22552. padding-bottom: 10px;
  22553. height: 30px;
  22554. line-height: 30px;
  22555. }
  22556. .nameAndrate > div {
  22557. margin-left: 10px;
  22558. color: #000;
  22559. height: 30px;
  22560. }
  22561. .nameAndrate >>> .el-rate__icon {
  22562. font-size: 28px !important;
  22563. }
  22564. .pfBox > div:nth-child(2) {
  22565. background: #f7f6f9;
  22566. width: 400px;
  22567. min-height: 45px;
  22568. border-radius: 10px;
  22569. font-size: 16px;
  22570. display: flex;
  22571. flex-wrap: wrap;
  22572. align-items: center;
  22573. padding: 10px 20px;
  22574. box-sizing: border-box;
  22575. color: #000;
  22576. }
  22577. .bz {
  22578. display: flex;
  22579. flex-direction: row;
  22580. flex-wrap: nowrap;
  22581. align-items: flex-start;
  22582. }
  22583. .bz > div {
  22584. padding: 0 10px;
  22585. }
  22586. .select_box2_title {
  22587. background: #fff;
  22588. border-radius: 5px;
  22589. padding: 15px 10px;
  22590. box-sizing: border-box;
  22591. margin-bottom: 10px;
  22592. display: flex;
  22593. flex-direction: row;
  22594. flex-wrap: nowrap;
  22595. align-items: center;
  22596. }
  22597. .select_box2_title > div:nth-child(2) {
  22598. margin-left: 10px;
  22599. color: #c4c4c4;
  22600. }
  22601. .select_box2_box {
  22602. display: flex;
  22603. height: 500px;
  22604. }
  22605. .select_box2_img {
  22606. width: calc(100% - 310px);
  22607. height: 100%;
  22608. overflow: auto;
  22609. background: #fff;
  22610. border-radius: 5px;
  22611. }
  22612. .select_box2_img img {
  22613. width: 100%;
  22614. }
  22615. .select_box2_answer {
  22616. background: #fff;
  22617. margin-left: 10px;
  22618. border-radius: 5px;
  22619. width: 300px;
  22620. overflow: auto;
  22621. height: 90%;
  22622. display: flex;
  22623. flex-direction: column;
  22624. align-items: flex-start;
  22625. padding-top: 10px;
  22626. box-sizing: border-box;
  22627. position: relative;
  22628. }
  22629. .select_answer_title {
  22630. padding: 0 0 15px 20px;
  22631. color: #c4c4c4;
  22632. }
  22633. .select_box2_answer_box {
  22634. margin: 0 0 10px 20px;
  22635. width: 85%;
  22636. display: flex;
  22637. flex-direction: row;
  22638. flex-wrap: nowrap;
  22639. align-items: center;
  22640. }
  22641. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22642. color: #000;
  22643. }
  22644. .upAnswerCss {
  22645. position: absolute;
  22646. bottom: 15px;
  22647. right: 15px;
  22648. }
  22649. .upAnswerCss >>> .el-button {
  22650. width: 95px;
  22651. height: 35px;
  22652. line-height: 35px;
  22653. padding: 0;
  22654. }
  22655. .rightWidthCss {
  22656. width: 60%;
  22657. display: flex;
  22658. flex-direction: row;
  22659. align-items: flex-start;
  22660. }
  22661. .rightAnswer {
  22662. display: flex;
  22663. flex-direction: row;
  22664. flex-wrap: nowrap;
  22665. align-items: center;
  22666. color: red;
  22667. margin-bottom: 31px;
  22668. }
  22669. .rightAnswerCss {
  22670. display: flex;
  22671. flex-direction: column;
  22672. flex-wrap: nowrap;
  22673. padding-top: 60px;
  22674. }
  22675. .blueCss {
  22676. color: #767de1;
  22677. margin-left: 10px;
  22678. }
  22679. .redCss {
  22680. color: red;
  22681. }
  22682. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22683. color: rgb(0 123 255) !important;
  22684. }
  22685. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22686. color: rgb(0 123 255) !important;
  22687. }
  22688. .zuoyeYulan {
  22689. padding-top: 0;
  22690. font-size: 18px;
  22691. display: flex;
  22692. align-items: flex-end;
  22693. }
  22694. .buttonA {
  22695. margin-left: 10px;
  22696. padding: 0;
  22697. }
  22698. .displayBox {
  22699. margin-bottom: 10px;
  22700. display: block;
  22701. border-bottom: 3px solid #eee;
  22702. display: flex;
  22703. align-items: center;
  22704. }
  22705. .easy_comment {
  22706. width: calc(100% - 90px);
  22707. margin-left: 10px;
  22708. display: flex;
  22709. flex-wrap: wrap;
  22710. }
  22711. .easy_comment > div {
  22712. border: 1px solid #4a4a4a;
  22713. color: #666;
  22714. border-radius: 15px;
  22715. padding: 5px 10px;
  22716. font-size: 16px;
  22717. margin-bottom: 10px;
  22718. margin-right: 5px;
  22719. cursor: pointer;
  22720. }
  22721. .easy_comment div:hover {
  22722. border: 1px solid #f7ba2a;
  22723. color: #c69217;
  22724. }
  22725. .xuan_right_box {
  22726. padding: 10px 0;
  22727. background: #f0f4fa;
  22728. margin: 0 15px 0 25px;
  22729. border-bottom-left-radius: 5px;
  22730. border-bottom-right-radius: 5px;
  22731. width: 91.5%;
  22732. }
  22733. .tool_right_box {
  22734. display: flex;
  22735. align-items: center;
  22736. }
  22737. .tool_right_box + .tool_right_box {
  22738. margin-top: 10px;
  22739. }
  22740. .right_box_xuan {
  22741. border-radius: 5px;
  22742. padding: 5px;
  22743. margin-left: 10px;
  22744. min-width: 85px;
  22745. background: #fff;
  22746. color: #0061ff;
  22747. border: 1px solid #0061ff;
  22748. font-size: 14px;
  22749. }
  22750. .pButton:hover {
  22751. opacity: 1 !important;
  22752. }
  22753. .pButton {
  22754. position: fixed;
  22755. text-align: center;
  22756. cursor: pointer;
  22757. z-index: 999;
  22758. right: 20px;
  22759. top: 110px;
  22760. width: 50px;
  22761. height: 50px;
  22762. display: flex;
  22763. align-items: center;
  22764. justify-content: center;
  22765. border-radius: 5px;
  22766. }
  22767. .pzClass {
  22768. width: calc(100% - 340px);
  22769. }
  22770. .newDialogCss {
  22771. /* position: fixed;
  22772. right: 5%;
  22773. top: 50%;
  22774. width: 340px;
  22775. transform: translateY(-50%);
  22776. height: 60%;
  22777. box-shadow: 0px 0 8px 0px #555555;
  22778. border-radius: 15px;
  22779. z-index: 999; */
  22780. position: fixed;
  22781. right: 20px;
  22782. top: 101px;
  22783. width: 330px;
  22784. height: calc(100% - 80px);
  22785. z-index: 999;
  22786. background: #fff;
  22787. border-top-right-radius: 0px;
  22788. border-bottom-right-radius: 0px;
  22789. overflow: hidden;
  22790. }
  22791. .newDialogCss>.scoreList{
  22792. width:100%;
  22793. height:100%;
  22794. box-sizing:border-box;
  22795. padding:10px 15px;
  22796. overflow:auto;
  22797. padding-bottom:80px;
  22798. }
  22799. .pzTop {
  22800. color: #fff;
  22801. background: #000;
  22802. display: flex;
  22803. flex-direction: row;
  22804. flex-wrap: nowrap;
  22805. align-items: center;
  22806. justify-content: space-between;
  22807. height: 40px;
  22808. border-radius: 15px 15px 0 0;
  22809. user-select: none;
  22810. }
  22811. .pzTop2 .checkbox {
  22812. display: flex;
  22813. align-items: center;
  22814. padding: 5px 10px;
  22815. flex: 0 0 auto;
  22816. font-weight: bold;
  22817. border-bottom: 1px solid #eee;
  22818. justify-content: space-between;
  22819. }
  22820. .checkbox>.cb-tabList{
  22821. display:flex;
  22822. align-items:center;
  22823. }
  22824. .cb-tabList>div{
  22825. margin-right:20px;
  22826. font-weight:400;
  22827. cursor:pointer;
  22828. }
  22829. .cb-tabList>.cb-tabItem{
  22830. color:#1684FC;
  22831. position:relative;
  22832. }
  22833. .cb-tabItem::after{
  22834. content:"";
  22835. width:100%;
  22836. height:2px;
  22837. background:#1684FC;
  22838. position:absolute;
  22839. bottom:-5px;
  22840. left:0
  22841. }
  22842. .pzTop2 .check {
  22843. text-align: center;
  22844. cursor: pointer;
  22845. box-sizing: border-box;
  22846. display: flex;
  22847. }
  22848. .pzTop2 img {
  22849. width: 25px;
  22850. cursor: pointer;
  22851. }
  22852. .pzTop > div:nth-child(1) {
  22853. padding-left: 10px;
  22854. }
  22855. .pzTop > div:nth-child(2) {
  22856. width: 15px;
  22857. height: 15px;
  22858. padding-right: 10px;
  22859. cursor: pointer;
  22860. }
  22861. .pzTop > div:nth-child(2) > img {
  22862. width: 100%;
  22863. height: 100%;
  22864. }
  22865. .pzBox,
  22866. .noPzBox {
  22867. height: calc(100% - 60px);
  22868. /* background: #ededed; */
  22869. background: #fff;
  22870. /* border-radius: 0 0 15px 15px; */
  22871. }
  22872. .noPzBox {
  22873. display: flex;
  22874. flex-direction: column;
  22875. flex-wrap: nowrap;
  22876. justify-content: center;
  22877. align-items: center;
  22878. }
  22879. .pzList {
  22880. background: #f7f7f7;
  22881. width: 90%;
  22882. margin: 0 auto 15px;
  22883. border-radius: 5px;
  22884. }
  22885. .pzNavTop {
  22886. display: flex;
  22887. flex-direction: row;
  22888. flex-wrap: nowrap;
  22889. padding: 10px 10px 0 10px;
  22890. align-items: center;
  22891. }
  22892. .pzDelete {
  22893. cursor: pointer;
  22894. margin-left: auto;
  22895. font-size: 14px;
  22896. color: #afafaf;
  22897. }
  22898. .pzNavTop > div:nth-child(1) {
  22899. background: #3760af;
  22900. width: 35px;
  22901. height: 35px;
  22902. color: #fff;
  22903. text-align: center;
  22904. line-height: 35px;
  22905. border-radius: 50%;
  22906. font-size: 14px;
  22907. }
  22908. .pzNavTop > div:nth-child(2) {
  22909. font-size: 18px;
  22910. color: #959595;
  22911. margin-left: 5px;
  22912. }
  22913. .pzContent {
  22914. padding: 10px;
  22915. word-break: break-word;
  22916. }
  22917. .pzContent audio {
  22918. width: 100%;
  22919. }
  22920. .pzContent audio::-webkit-media-controls-panel {
  22921. background: #fff;
  22922. }
  22923. .pzContent >>> img {
  22924. max-width: 100%;
  22925. }
  22926. .pzListBox {
  22927. padding-top: 15px;
  22928. height: calc(100% - 110px);
  22929. overflow: auto;
  22930. }
  22931. .addPzButton {
  22932. position: relative;
  22933. margin-top: 3px;
  22934. width: 100%;
  22935. }
  22936. .addPzButton .img1 {
  22937. position: absolute;
  22938. top: 50%;
  22939. right: 25px;
  22940. transform: translateY(-50%);
  22941. height: 100%;
  22942. display: flex;
  22943. align-items: center;
  22944. }
  22945. .addPzButton .img1 div {
  22946. display: flex;
  22947. }
  22948. .addPzButton .img1 div img {
  22949. width: 28px;
  22950. margin-left: 10px;
  22951. cursor: pointer;
  22952. }
  22953. .addPzButton .img1 div span {
  22954. font-size: 14px;
  22955. margin: 4px 0 0 3px;
  22956. color: #afafaf;
  22957. }
  22958. .addPz {
  22959. background: #4b79ce;
  22960. width: 100px;
  22961. color: #fff;
  22962. font-size: 12px;
  22963. height: 30px;
  22964. margin: 0 auto;
  22965. text-align: center;
  22966. line-height: 30px;
  22967. border-radius: 10px;
  22968. cursor: pointer;
  22969. }
  22970. .addDialogCss {
  22971. position: fixed;
  22972. width: 600px;
  22973. height: 70%;
  22974. min-height: 450px;
  22975. box-shadow: 0px 0 8px 0px #555555;
  22976. border-radius: 15px;
  22977. z-index: 999;
  22978. left: 50%;
  22979. top: 50%;
  22980. margin: -18% 0 0 -300px;
  22981. }
  22982. .teacherPz {
  22983. display: flex;
  22984. flex-direction: row;
  22985. align-items: center;
  22986. flex-wrap: nowrap;
  22987. }
  22988. .teacherPzImg {
  22989. width: 30px;
  22990. height: 30px;
  22991. }
  22992. .teacherPzImg > img {
  22993. width: 100%;
  22994. height: 100%;
  22995. }
  22996. .addPzBox {
  22997. height: calc(100% - 40px);
  22998. background: #ededed;
  22999. border-bottom-left-radius: 15px;
  23000. border-bottom-right-radius: 15px;
  23001. }
  23002. .pzAudioClass {
  23003. margin: 15px 14px;
  23004. background: #fff;
  23005. height: 100%;
  23006. display: flex;
  23007. justify-content: center;
  23008. align-items: center;
  23009. }
  23010. .pzConText {
  23011. width: 95%;
  23012. height: 100%;
  23013. margin: 10px auto 0;
  23014. border: none;
  23015. background: #fff;
  23016. border-radius: 0px;
  23017. }
  23018. .pzConText >>> .text {
  23019. height: calc(100% - 82px);
  23020. }
  23021. .addTextCss {
  23022. background: #4b79ce;
  23023. width: 80px;
  23024. height: 30px;
  23025. text-align: center;
  23026. color: #fff;
  23027. line-height: 30px;
  23028. border-radius: 10px;
  23029. margin: 10px auto 0;
  23030. cursor: pointer;
  23031. }
  23032. .pzConText:focus-visible {
  23033. border: none !important;
  23034. }
  23035. .maxWidth {
  23036. width: 1000px;
  23037. }
  23038. .noPz {
  23039. width: 150px;
  23040. margin: 0 auto 20%;
  23041. }
  23042. .noPz > img {
  23043. width: 100%;
  23044. height: 100%;
  23045. }
  23046. .timeAndReply {
  23047. display: flex;
  23048. flex-direction: row;
  23049. flex-wrap: nowrap;
  23050. justify-content: space-between;
  23051. align-items: center;
  23052. font-size: 14px;
  23053. box-sizing: border-box;
  23054. padding: 0 10px 10px 0px;
  23055. }
  23056. .timeAndReply .time {
  23057. color: #bfbfbf;
  23058. padding: 0 0 0 10px;
  23059. box-sizing: border-box;
  23060. }
  23061. .timeAndReply > div:last-child {
  23062. cursor: pointer;
  23063. color: #777;
  23064. }
  23065. /* table 样式 */
  23066. .cont >>> table {
  23067. border-top: 1px solid #ccc;
  23068. border-left: 1px solid #ccc;
  23069. }
  23070. .cont >>> table td,
  23071. .cont >>> table th {
  23072. border-bottom: 1px solid #ccc;
  23073. border-right: 1px solid #ccc;
  23074. /* padding: 20px 5px; */
  23075. padding: 5px 10px;
  23076. max-width: 0px;
  23077. height: 30px;
  23078. vertical-align: baseline;
  23079. box-sizing: border-box;
  23080. }
  23081. .cont >>> table th {
  23082. border-bottom: 2px solid #ccc;
  23083. text-align: center;
  23084. }
  23085. /* blockquote 样式 */
  23086. .cont >>> blockquote {
  23087. display: block;
  23088. border-left: 8px solid #d0e5f2;
  23089. padding: 5px 10px;
  23090. margin: 10px 0;
  23091. line-height: 1.4;
  23092. font-size: 100%;
  23093. background-color: #f1f1f1;
  23094. }
  23095. /* code 样式 */
  23096. .cont >>> code {
  23097. display: inline-block;
  23098. /* *display: inline; */
  23099. zoom: 1;
  23100. background-color: #f1f1f1;
  23101. border-radius: 3px;
  23102. padding: 3px 5px;
  23103. margin: 0 3px;
  23104. }
  23105. .cont >>> pre code {
  23106. display: block;
  23107. }
  23108. /* ul ol 样式 */
  23109. .cont >>> ul,
  23110. ol {
  23111. margin: 10px 0 10px 20px;
  23112. }
  23113. .addPzCheck {
  23114. display: flex;
  23115. flex-direction: row;
  23116. flex-wrap: nowrap;
  23117. padding: 10px 15px 0;
  23118. }
  23119. .addPzCheck span {
  23120. cursor: pointer;
  23121. padding-bottom: 5px;
  23122. font-weight: bold;
  23123. }
  23124. .addPzCheck span + span {
  23125. margin-left: 10px;
  23126. }
  23127. .addPzCheck .isChooseActive {
  23128. color: #3e88f4;
  23129. border-bottom: 2px solid #2f80f3;
  23130. }
  23131. /* code 样式 */
  23132. .cont {
  23133. /* -webkit-user-modify: read-write; */
  23134. overflow-wrap: break-word;
  23135. -webkit-line-break: after-white-space;
  23136. word-break: break-word;
  23137. white-space: pre-line;
  23138. }
  23139. .scoreBox,
  23140. .scoreDetailBox {
  23141. display: flex;
  23142. align-items: center;
  23143. justify-content: flex-start;
  23144. margin-top: 20px;
  23145. font-size: 18px;
  23146. width: 100%;
  23147. }
  23148. .scoreBox .t,
  23149. .scoreDetailBox .t {
  23150. margin-right: 10px;
  23151. width: 100px;
  23152. text-align: right;
  23153. }
  23154. .scoreDetailBox {
  23155. align-items: flex-start;
  23156. }
  23157. .scoreDetailBox >>> .el-textarea {
  23158. width: calc(100% - 200px);
  23159. }
  23160. .scoreBox >>> .el-input {
  23161. width: 130px;
  23162. font-size: 38px;
  23163. }
  23164. .scoreBox >>> .el-input__inner {
  23165. height: 60px;
  23166. }
  23167. .answerScore {
  23168. position: absolute;
  23169. top: 10px;
  23170. right: 10px;
  23171. background: #0000008f;
  23172. border-radius: 5px;
  23173. padding: 3px 5px;
  23174. font-size: 14px;
  23175. color: #fff;
  23176. cursor: pointer;
  23177. }
  23178. .open_box .switch_box {
  23179. width: 100%;
  23180. margin: 0 auto;
  23181. display: flex;
  23182. justify-content: space-between;
  23183. }
  23184. .open_box .switch_box + .switch_box {
  23185. margin-top: 10px;
  23186. }
  23187. .deleteImg,.deleteImg1 {
  23188. width: 25px !important;
  23189. height: 25px !important;
  23190. cursor: pointer;
  23191. position: absolute;
  23192. top: 10px;
  23193. right: 10px;
  23194. }
  23195. .deleteImg2 {
  23196. width: 23px !important;
  23197. height: 23px !important;
  23198. top: 5px;
  23199. right: 5px;
  23200. }
  23201. .deleteImg1{
  23202. width: 23px !important;
  23203. height: 23px !important;
  23204. top: 5px !important;
  23205. right: 30px !important;
  23206. }
  23207. .rightW {
  23208. right: 40px;
  23209. }
  23210. .drawPBox {
  23211. display: flex;
  23212. flex-direction: column;
  23213. position: relative;
  23214. }
  23215. .drawPBox span {
  23216. font-size: 18px;
  23217. color: #606266;
  23218. padding-bottom: 10px;
  23219. margin: 10px 0;
  23220. border-bottom: 1px solid #eaeaea;
  23221. }
  23222. .drawPBox img {
  23223. width: 500px;
  23224. height: 300px;
  23225. object-fit: contain;
  23226. cursor: pointer;
  23227. margin: 0 auto;
  23228. }
  23229. .sentenBox {
  23230. background: #fff;
  23231. height: 450px;
  23232. overflow: auto;
  23233. background-image: url("../../assets/icon/conSentences/stuBg.png");
  23234. background-position: 102%;
  23235. background-repeat: no-repeat;
  23236. background-size: 60%;
  23237. }
  23238. .addSen {
  23239. background: #409efe;
  23240. width: 90px;
  23241. color: #fff;
  23242. height: 35px;
  23243. text-align: center;
  23244. line-height: 35px;
  23245. border-radius: 5px;
  23246. float: right;
  23247. margin: 10px 20px 0 0;
  23248. cursor: pointer;
  23249. }
  23250. .sentenTop {
  23251. display: flex;
  23252. flex-direction: row;
  23253. flex-wrap: nowrap;
  23254. align-items: center;
  23255. padding: 55px 0 0 20px;
  23256. box-sizing: border-box;
  23257. }
  23258. .sentenTop > div:nth-child(2) {
  23259. width: 300px;
  23260. margin: 0 15px;
  23261. }
  23262. .sentenTop > div:nth-child(3) {
  23263. background: #409efe;
  23264. color: #fff;
  23265. width: 65px;
  23266. height: 35px;
  23267. text-align: center;
  23268. line-height: 35px;
  23269. border-radius: 5px;
  23270. cursor: pointer;
  23271. }
  23272. .cardList,
  23273. .cardList1 {
  23274. padding: 10px 0 10px 0;
  23275. display: flex;
  23276. flex-direction: row;
  23277. flex-wrap: wrap;
  23278. align-items: center;
  23279. box-sizing: border-box;
  23280. border-bottom: 1px solid #f4f4f4;
  23281. width: 98%;
  23282. margin: 0 auto;
  23283. min-width: 60%;
  23284. max-width: 85%;
  23285. }
  23286. .cardList1 {
  23287. padding: 10px 0 10px 10px !important;
  23288. margin: 0 !important;
  23289. }
  23290. .cardBox {
  23291. display: flex;
  23292. flex-direction: row;
  23293. flex-wrap: wrap;
  23294. align-items: center;
  23295. align-content: center;
  23296. }
  23297. .cardBox > div {
  23298. margin-bottom: 10px;
  23299. }
  23300. .isCard,
  23301. .isChooseCard,
  23302. .noCard,
  23303. .isCard1 {
  23304. width: 130px;
  23305. height: 60px;
  23306. text-align: center;
  23307. line-height: 60px;
  23308. font-size: 20px;
  23309. cursor: pointer;
  23310. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23311. background-size: cover;
  23312. transition: all 2s;
  23313. margin-right: 20px;
  23314. }
  23315. .isCard > div,
  23316. .noCard > div,
  23317. .isCard1 > div {
  23318. white-space: nowrap;
  23319. overflow: hidden;
  23320. text-overflow: ellipsis;
  23321. width: 75%;
  23322. margin: 0 auto;
  23323. }
  23324. .noCard {
  23325. background-image: none;
  23326. }
  23327. .isCard1 {
  23328. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23329. }
  23330. .isChooseCard {
  23331. background-image: none;
  23332. border: 1px dashed #b9b9b9;
  23333. border-radius: 10px;
  23334. }
  23335. .card {
  23336. width: 130px;
  23337. height: 60px;
  23338. }
  23339. .card > img {
  23340. width: 100%;
  23341. height: 100%;
  23342. }
  23343. .rightCardBox {
  23344. margin: 10px 0 0 10px;
  23345. }
  23346. .rightCardBox > div:nth-child(1) {
  23347. margin-bottom: 10px;
  23348. }
  23349. .cardCss {
  23350. display: flex;
  23351. flex-direction: column;
  23352. flex-wrap: nowrap;
  23353. align-items: center;
  23354. border-bottom: 3px solid #b4c3d3;
  23355. padding: 0 0 5px 0;
  23356. margin-right: 10px;
  23357. }
  23358. .cardCss > div:nth-child(2) {
  23359. background: #5b7b9d;
  23360. color: #fff;
  23361. width: 20px;
  23362. height: 20px;
  23363. border-radius: 50%;
  23364. text-align: center;
  23365. line-height: 20px;
  23366. }
  23367. .isWrong {
  23368. display: flex;
  23369. flex-direction: row;
  23370. flex-wrap: nowrap;
  23371. align-content: center;
  23372. align-items: center;
  23373. }
  23374. .answerRight {
  23375. width: 25%;
  23376. }
  23377. .isTj {
  23378. display: flex;
  23379. flex-direction: row;
  23380. flex-wrap: nowrap;
  23381. align-items: center;
  23382. }
  23383. .isTj > div:nth-child(2) {
  23384. color: #727070;
  23385. margin-left: 10px;
  23386. }
  23387. .isTjImg {
  23388. width: 30px;
  23389. height: 30px;
  23390. }
  23391. .isTjImg > img {
  23392. width: 100%;
  23393. height: 100%;
  23394. }
  23395. .cardAnswerBox {
  23396. font-size: 18px;
  23397. width: 97%;
  23398. border: 5px;
  23399. padding: 0;
  23400. border-radius: 5px;
  23401. margin: 10px auto;
  23402. word-break: break-word;
  23403. }
  23404. .w_name {
  23405. margin-bottom: 10px;
  23406. }
  23407. .w_name span {
  23408. font-size: 16px;
  23409. }
  23410. .w_teachert {
  23411. width: 50px !important;
  23412. position: absolute;
  23413. height: auto !important;
  23414. z-index: 10;
  23415. right: 25px;
  23416. top: -25px;
  23417. }
  23418. .group_workBox {
  23419. }
  23420. .group_workBox + .group_workBox {
  23421. margin-top: 20px;
  23422. }
  23423. .group_box {
  23424. padding-bottom: 20px;
  23425. border-bottom: 2px solid #f0f0f0;
  23426. margin-top: 10px;
  23427. }
  23428. .group_title {
  23429. display: flex;
  23430. align-items: center;
  23431. justify-content: space-between;
  23432. width: 95%;
  23433. }
  23434. .group_name {
  23435. background-image: url(../../assets/icon/groupN.png);
  23436. width: 220px;
  23437. background-size: 100% 100%;
  23438. height: 67px;
  23439. padding: 0 20px 0 43px;
  23440. box-sizing: border-box;
  23441. line-height: 63px;
  23442. color: #fff;
  23443. overflow: hidden;
  23444. white-space: nowrap;
  23445. text-overflow: ellipsis;
  23446. }
  23447. .group_work {
  23448. width: 100%;
  23449. padding: 0 10px;
  23450. box-sizing: border-box;
  23451. display: flex;
  23452. flex-wrap: wrap;
  23453. }
  23454. .g_d_box {
  23455. display: flex;
  23456. flex-flow: wrap;
  23457. justify-content: space-around;
  23458. }
  23459. .g_d_box .isChair {
  23460. background-image: url(../../assets/avatar.png) !important;
  23461. }
  23462. .g_d_group {
  23463. width: 500px;
  23464. margin-bottom: 80px;
  23465. }
  23466. .g_d_group_chair {
  23467. display: flex;
  23468. align-items: center;
  23469. justify-content: center;
  23470. }
  23471. .g_d_group_chair > div + div {
  23472. margin-left: 30px;
  23473. }
  23474. .g_d_group_chair > div,
  23475. .g_d_group_chair2 > div {
  23476. display: flex;
  23477. flex-direction: column;
  23478. align-items: center;
  23479. }
  23480. .g_d_group_chair > div > span:nth-child(1),
  23481. .g_d_group_chair2 > div > span:nth-child(1) {
  23482. background-image: url(../../assets/icon/chair.png);
  23483. width: 50px;
  23484. height: 50px;
  23485. display: block;
  23486. background-size: 100% 100%;
  23487. }
  23488. .g_d_group_tableBox {
  23489. display: flex;
  23490. align-items: center;
  23491. justify-content: center;
  23492. }
  23493. .g_d_group_chair2 {
  23494. display: flex;
  23495. flex-direction: column;
  23496. align-items: center;
  23497. justify-content: center;
  23498. }
  23499. .g_d_group_chair2 > div + div {
  23500. margin-top: 10px;
  23501. }
  23502. .g_d_group_table {
  23503. background-image: url(../../assets/icon/groupBg.png);
  23504. width: 354px;
  23505. height: 196px;
  23506. background-size: 100% 100%;
  23507. display: flex;
  23508. align-items: center;
  23509. justify-content: center;
  23510. flex-direction: column;
  23511. color: #fff;
  23512. }
  23513. .g_d_group_table > div:nth-child(1) {
  23514. font-size: 24px;
  23515. margin-bottom: 5px;
  23516. }
  23517. .g_d_group_table > div:nth-child(2) div {
  23518. cursor: pointer;
  23519. background: #2e77bf;
  23520. padding: 4px 10px;
  23521. border-radius: 5px;
  23522. }
  23523. .groupBox {
  23524. }
  23525. .groupContent + .groupContent {
  23526. margin-top: 30px;
  23527. }
  23528. .groupTitle {
  23529. font-size: 24px;
  23530. color: rgb(80, 80, 80);
  23531. margin-bottom: 20px;
  23532. }
  23533. .groupName {
  23534. display: flex;
  23535. align-items: center;
  23536. }
  23537. .groupn {
  23538. font-size: 15px;
  23539. margin-right: 10px;
  23540. }
  23541. .groupName + .groupName {
  23542. margin-top: 15px;
  23543. }
  23544. .groupBtn {
  23545. margin-left: 10px;
  23546. }
  23547. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23548. text-align: left;
  23549. }
  23550. .g_d_btnBox {
  23551. display: flex;
  23552. justify-content: flex-end;
  23553. align-items: center;
  23554. margin-bottom: 20px;
  23555. }
  23556. .updateChair {
  23557. position: relative;
  23558. }
  23559. .updateChairBtn {
  23560. position: absolute;
  23561. width: 50px;
  23562. height: 50px;
  23563. overflow: hidden;
  23564. /* display: flex; */
  23565. align-items: center;
  23566. justify-content: center;
  23567. background: #00000087;
  23568. color: #fff;
  23569. border-radius: 50px;
  23570. display: none;
  23571. cursor: pointer;
  23572. }
  23573. .updateChair:hover .updateChairBtn {
  23574. display: flex;
  23575. }
  23576. .group_staic_box {
  23577. display: flex;
  23578. padding: 30px 40px 10px;
  23579. flex-wrap: wrap;
  23580. }
  23581. .group_staic {
  23582. /* width: 50%; */
  23583. margin-bottom: 20px;
  23584. display: flex;
  23585. align-items: center;
  23586. }
  23587. .group_staic span:nth-child(1) {
  23588. width: 150px;
  23589. text-align: right;
  23590. margin-right: 15px;
  23591. }
  23592. .group_staic span:nth-child(2) {
  23593. background: rgb(0 123 255);
  23594. color: #fff;
  23595. border-radius: 5px;
  23596. padding: 5px;
  23597. }
  23598. .codeFileBox {
  23599. height: 300px;
  23600. background: #fff;
  23601. display: flex;
  23602. align-items: center;
  23603. justify-content: center;
  23604. }
  23605. .codeFileBox img {
  23606. width: 200px;
  23607. margin: 0;
  23608. height: auto;
  23609. }
  23610. .codeFileBox div {
  23611. background: rgb(80, 142, 226);
  23612. color: #fff;
  23613. padding: 10px 20px;
  23614. border-radius: 25px;
  23615. cursor: pointer;
  23616. margin-left: 15px;
  23617. }
  23618. .radioBox {
  23619. display: flex;
  23620. flex-direction: column;
  23621. flex-wrap: nowrap;
  23622. align-items: flex-start;
  23623. }
  23624. .radioBox > div {
  23625. margin: 10px 0 0 10px;
  23626. }
  23627. /* .radioBox >>> .el-radio__input,
  23628. .radioBox >>> .el-checkbox__inner {
  23629. margin-left: 10px;
  23630. } */
  23631. .radioBox >>> .el-radio__label,
  23632. .radioBox >>> .el-checkbox__label {
  23633. display: flex;
  23634. align-items: center;
  23635. width: 100%;
  23636. }
  23637. .radioBox >>> .el-radio__label > span {
  23638. width: 100%;
  23639. display: -webkit-box;
  23640. overflow: hidden;
  23641. white-space: normal !important;
  23642. text-overflow: ellipsis;
  23643. word-wrap: break-word;
  23644. }
  23645. .inImg {
  23646. width: 100px;
  23647. cursor: pointer;
  23648. }
  23649. .inImg > img {
  23650. width: 100%;
  23651. height: 100%;
  23652. object-fit: cover;
  23653. }
  23654. .timuImgBox {
  23655. margin: 10px 0;
  23656. display: flex;
  23657. flex-direction: column;
  23658. flex-wrap: wrap;
  23659. align-items: flex-start;
  23660. }
  23661. .timuImg {
  23662. width: 150px;
  23663. margin: 5px 0;
  23664. cursor: pointer;
  23665. }
  23666. .timuImg > img {
  23667. width: 100%;
  23668. height: 100%;
  23669. object-fit: cover;
  23670. }
  23671. .worksTop {
  23672. display: flex;
  23673. flex-direction: row;
  23674. align-items: flex-end;
  23675. }
  23676. .worksTitle{
  23677. display: flex;
  23678. flex-direction: row;
  23679. flex-wrap: nowrap;
  23680. align-items: center;
  23681. }
  23682. .worksTitle::before,.worksTop::before{
  23683. content: '';
  23684. display: block;
  23685. width: 3px;
  23686. height: 20px;
  23687. background: #0061FF;
  23688. border-radius: 3px;
  23689. margin: 0 5px 0 0;
  23690. }
  23691. .corOpen {
  23692. margin: 0 0 0 10px;
  23693. font-size: 14px;
  23694. cursor: pointer;
  23695. color: #505050;
  23696. }
  23697. .corOpen:hover {
  23698. color: #499eef;
  23699. }
  23700. .navCorOpenBox {
  23701. display: flex;
  23702. flex-direction: row;
  23703. align-items: center;
  23704. justify-content: space-between;
  23705. height: 55px;
  23706. background: #ffffff;
  23707. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23708. border-radius: 8px 8px 0px 0px;
  23709. z-index: 9;
  23710. position: relative;
  23711. }
  23712. .navCorOpen {
  23713. padding-right: 15px;
  23714. cursor: pointer;
  23715. width: 45px;
  23716. display: flex;
  23717. }
  23718. .navCorOpen > img {
  23719. width: 100%;
  23720. height: 100%;
  23721. }
  23722. .mlImg {
  23723. width: 40px !important;
  23724. min-width: 40px;
  23725. cursor: pointer;
  23726. transform: rotate(180deg);
  23727. }
  23728. .mlImg > img {
  23729. width: 100%;
  23730. height: 100%;
  23731. }
  23732. .navLeftCss {
  23733. width: 100% !important;
  23734. left: 0 !important;
  23735. }
  23736. .isContentCss {
  23737. width: 100% !important;
  23738. }
  23739. .isAllWidth {
  23740. width: 100% !important;
  23741. }
  23742. .group_switch {
  23743. margin-right: 10px;
  23744. height: 30px;
  23745. display: flex;
  23746. align-items: center;
  23747. }
  23748. .group_switch > span {
  23749. margin-right: 5px;
  23750. }
  23751. .fileC_box {
  23752. padding-top: 15px;
  23753. }
  23754. .fileC_box > .fileC_title {
  23755. padding: 10px 5px 14px 10px;
  23756. border-top: 1px solid #cad1dc;
  23757. font-size: 14px;
  23758. font-weight: 400;
  23759. color: #cad1dc;
  23760. width: calc(100% - 20px);
  23761. margin: 0 auto;
  23762. box-sizing: border-box;
  23763. }
  23764. .pl_select_box {
  23765. height: 40px;
  23766. line-height: 40px;
  23767. width: 100%;
  23768. cursor: pointer;
  23769. padding: 0 20px;
  23770. box-sizing: border-box;
  23771. border-radius: 5px;
  23772. border: 1px solid #d6d6d6;
  23773. white-space: nowrap;
  23774. overflow: hidden;
  23775. text-overflow: ellipsis;
  23776. background: #fff;
  23777. text-align: left;
  23778. }
  23779. .newButton {
  23780. width: 102px;
  23781. height: 36px;
  23782. background: #e7ebf1;
  23783. border-radius: 4px;
  23784. color: #0e1e33;
  23785. font-weight: 400;
  23786. font-size: 14px;
  23787. border: none;
  23788. float: right;
  23789. margin-left: 10px;
  23790. }
  23791. .el-table >>> .even_row {
  23792. background-color: #f0f4fa;
  23793. }
  23794. .stageBoxCss,
  23795. .stageBoxIsCss {
  23796. display: flex;
  23797. flex-direction: row;
  23798. flex-wrap: nowrap;
  23799. align-items: center;
  23800. height: 50px;
  23801. border-bottom: 1px solid #e2f5fc;
  23802. cursor: pointer;
  23803. width: 100%;
  23804. }
  23805. .stageBoxIsCss {
  23806. background: #0061ff;
  23807. color: #fff;
  23808. border-radius: 8px;
  23809. }
  23810. .closeTri,
  23811. .closeTri1 {
  23812. min-width: 15px;
  23813. width: 15px;
  23814. height: 15px;
  23815. }
  23816. .closeTri1 {
  23817. padding-left: 10px;
  23818. cursor: pointer;
  23819. }
  23820. .closeTri > img,
  23821. .closeTri1 > img {
  23822. width: 100%;
  23823. height: 100%;
  23824. /* transition: all .5s; */
  23825. }
  23826. .noToolBlue {
  23827. min-width: 10px;
  23828. width: 10px;
  23829. height: 10px;
  23830. background: #0061ff;
  23831. border-radius: 50%;
  23832. margin-left: 13px;
  23833. }
  23834. .stageChild,
  23835. .toolChild {
  23836. height: 0;
  23837. overflow: hidden;
  23838. transition: all 0.5s;
  23839. }
  23840. .toolChild {
  23841. /* margin: 0 0 0 17px;
  23842. padding: 0 0 0 20px;
  23843. border-left: 1px solid #d7d7d7; */
  23844. }
  23845. .toolChild > div + div{
  23846. margin-top:5px;
  23847. }
  23848. .gjCss {
  23849. display: flex;
  23850. flex-direction: row;
  23851. flex-wrap: nowrap;
  23852. align-items: center;
  23853. padding: 10px 0 10px 40px;
  23854. box-sizing: border-box;
  23855. font-size: 14px;
  23856. cursor: pointer;
  23857. border-radius:5px;
  23858. }
  23859. .toolChild > div {
  23860. position: relative;
  23861. width: 100%;
  23862. }
  23863. .toolChild > div::before {
  23864. /* content: "";
  23865. width: 15px;
  23866. height: 1px;
  23867. background: #cad1dc;
  23868. position: absolute;
  23869. top: 24px;
  23870. left: -20px;
  23871. display: block; */
  23872. }
  23873. .isGjCss {
  23874. /* color: #0061ff; */
  23875. color:#fff;
  23876. background: rgb(55, 129, 252);
  23877. /* background-color: #e0eafb !important;
  23878. color: #0061ff !important; */
  23879. }
  23880. .navItem {
  23881. background: #ffffff;
  23882. border-radius: 4px;
  23883. width: 100%;
  23884. margin: 10px auto;
  23885. position: relative;
  23886. height: 40px;
  23887. display: flex;
  23888. flex-direction: row;
  23889. flex-wrap: nowrap;
  23890. align-items: center;
  23891. }
  23892. .navItemList {
  23893. display: flex;
  23894. flex-direction: row;
  23895. flex-wrap: nowrap;
  23896. align-items: center;
  23897. padding: 0 13px;
  23898. cursor: pointer;
  23899. width: calc(100% - 60px);
  23900. height: 100%;
  23901. }
  23902. .navItemList > div:first-child {
  23903. min-width: 60px;
  23904. }
  23905. .navItemList > div:last-child {
  23906. width: calc(100% - 80px);
  23907. white-space: nowrap;
  23908. overflow: hidden;
  23909. text-overflow: ellipsis;
  23910. word-break: break-word;
  23911. }
  23912. /* .isItemList > div {
  23913. color: #fff !important;
  23914. } */
  23915. .tool_work_box {
  23916. width: 100%;
  23917. padding: 0 37px 0;
  23918. box-sizing: border-box;
  23919. }
  23920. .tool_box {
  23921. width: 100%;
  23922. padding: 0 0 0 20px;
  23923. }
  23924. .tool_type_box {
  23925. display: flex;
  23926. flex-direction: row;
  23927. align-items: baseline;
  23928. flex-wrap: nowrap;
  23929. justify-content: flex-start;
  23930. position: relative;
  23931. }
  23932. .toolSort {
  23933. display: flex;
  23934. flex-direction: row;
  23935. flex-wrap: wrap;
  23936. justify-content: flex-start;
  23937. align-items: flex-start;
  23938. padding: 0 0 15px 0;
  23939. }
  23940. .toolSort > div {
  23941. margin: 0 10px 0 0;
  23942. width: 135px;
  23943. box-sizing: border-box;
  23944. border: 2px solid transparent;
  23945. }
  23946. .tools {
  23947. width: 100%;
  23948. display: flex;
  23949. flex-direction: column;
  23950. flex-wrap: nowrap;
  23951. align-items: flex-start;
  23952. }
  23953. .whiteBIcon {
  23954. width: fit-content;
  23955. cursor: pointer;
  23956. display: flex;
  23957. flex-direction: column;
  23958. flex-wrap: nowrap;
  23959. align-items: center;
  23960. font-size: 14px;
  23961. }
  23962. .tool:hover {
  23963. border: 2px solid #a5c7ff;
  23964. border-radius: 5px;
  23965. }
  23966. .whiteBIcon > img {
  23967. width: 65px;
  23968. height: 100%;
  23969. }
  23970. .whiteBIcon > img {
  23971. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23972. border-radius: 15px;
  23973. }
  23974. .check {
  23975. /* width: 20px;
  23976. height: 20px; */
  23977. cursor: pointer;
  23978. margin: 10px 0;
  23979. position: absolute;
  23980. right: 2px;
  23981. top: -5px;
  23982. }
  23983. .noChoose,
  23984. .isChoose {
  23985. width: 15px;
  23986. height: 15px;
  23987. border-radius: 50%;
  23988. border: 1px solid #adadad;
  23989. }
  23990. .isChoose {
  23991. border: 4px solid #0363ff !important;
  23992. width: 10px;
  23993. height: 10px;
  23994. }
  23995. .isToolChoose {
  23996. border: 2px solid #5394ff !important;
  23997. border-radius: 5px;
  23998. box-shadow: 0 0 6px 0px #5394ff;
  23999. }
  24000. .checkDiv {
  24001. display: flex;
  24002. align-items: center;
  24003. }
  24004. .checkDiv span {
  24005. margin-left: 5px;
  24006. color: #858585;
  24007. }
  24008. .check img {
  24009. width: 20px;
  24010. height: 20px;
  24011. }
  24012. .lockTaskIcon {
  24013. width: 20px;
  24014. height: 20px;
  24015. position: absolute;
  24016. right: 10px;
  24017. top: 10px;
  24018. }
  24019. .lockTaskIcon > img {
  24020. width: 100%;
  24021. height: 100%;
  24022. }
  24023. .pick_box {
  24024. display: flex;
  24025. align-items: flex-start;
  24026. flex-wrap: wrap;
  24027. }
  24028. .selectBox {
  24029. width: 110px;
  24030. margin-left: 10px;
  24031. margin: 0 10px 0 auto;
  24032. }
  24033. .selectBox >>> .el-input__inner {
  24034. height: 30px;
  24035. line-height: 30px;
  24036. }
  24037. .selectBox >>> .el-input__icon {
  24038. line-height: 30px;
  24039. }
  24040. .sentenceTitle {
  24041. display: flex;
  24042. flex-direction: row;
  24043. flex-wrap: nowrap;
  24044. align-items: center;
  24045. }
  24046. .sentenceTitle::before {
  24047. content: attr(index);
  24048. background: #3681fc;
  24049. border-radius: 50%;
  24050. color: #fff;
  24051. width: 25px;
  24052. height: 25px;
  24053. min-width: 25px;
  24054. min-height: 25px;
  24055. text-align: center;
  24056. line-height: 25px;
  24057. margin-right: 5px;
  24058. }
  24059. .hfBox {
  24060. padding: 10px;
  24061. box-sizing: border-box;
  24062. }
  24063. .whoReplyWho {
  24064. display: flex;
  24065. flex-direction: row;
  24066. flex-wrap: nowrap;
  24067. align-items: baseline;
  24068. justify-content: flex-start;
  24069. }
  24070. .hfBottom {
  24071. display: flex;
  24072. flex-direction: row;
  24073. flex-wrap: nowrap;
  24074. align-items: center;
  24075. justify-content: space-between;
  24076. font-size: 14px;
  24077. }
  24078. .deleteHfItem {
  24079. cursor: pointer;
  24080. width: 20px;
  24081. height: 20px;
  24082. }
  24083. .deleteHfItem > img {
  24084. width: 100%;
  24085. height: 100%;
  24086. }
  24087. .whoReplyWho > .hfImg {
  24088. width: 12px;
  24089. height: 12px;
  24090. margin: 0 5px;
  24091. }
  24092. .whoReplyWho > .hfImg > img {
  24093. width: 100%;
  24094. height: 100%;
  24095. }
  24096. .hfContent {
  24097. padding-top: 10px;
  24098. box-sizing: border-box;
  24099. display: -webkit-box;
  24100. overflow: hidden;
  24101. white-space: normal !important;
  24102. text-overflow: ellipsis;
  24103. word-wrap: break-word;
  24104. -webkit-box-orient: vertical;
  24105. }
  24106. .hfTime {
  24107. text-align: left;
  24108. box-sizing: border-box;
  24109. padding: 10px 0 10px 0px;
  24110. color: #bfbfbf;
  24111. font-size: 14px;
  24112. }
  24113. .btnAllNT {
  24114. position: fixed;
  24115. bottom: 100px;
  24116. right: 40px;
  24117. z-index: 999;
  24118. display: flex;
  24119. flex-direction: row;
  24120. }
  24121. .btnAllNT > img {
  24122. cursor: pointer;
  24123. width: 80px;
  24124. }
  24125. .toolMask {
  24126. position: fixed;
  24127. width: 100%;
  24128. height: 100%;
  24129. background: #3f3c3c;
  24130. opacity: 0.5;
  24131. top: 0;
  24132. left: 0;
  24133. z-index: 999;
  24134. }
  24135. .addToolCss {
  24136. position: fixed;
  24137. z-index: 999;
  24138. background: #fff;
  24139. right: 5%;
  24140. bottom: 18%;
  24141. min-width: 1035px;
  24142. min-height: 300px;
  24143. border-radius: 10px;
  24144. box-shadow: 0 0 8px 1px #b2b2b2;
  24145. }
  24146. .toolTop {
  24147. display: flex;
  24148. flex-direction: row;
  24149. flex-wrap: nowrap;
  24150. justify-content: space-between;
  24151. align-items: center;
  24152. padding: 20px;
  24153. }
  24154. .toolTop > div:nth-child(2) {
  24155. width: 15px;
  24156. height: 15px;
  24157. padding-right: 10px;
  24158. cursor: pointer;
  24159. }
  24160. .toolTop > div:nth-child(2) > img {
  24161. width: 100%;
  24162. height: 100%;
  24163. }
  24164. .fullStyle>>>.el-dialog__body {
  24165. height: calc(100% - 125px) !important;
  24166. box-sizing: border-box;
  24167. padding: 30px 0 !important;
  24168. background: #fff !important;
  24169. }
  24170. .fullStyle>>>.el-dialog {
  24171. width: 100% !important;
  24172. max-width: 100% !important;
  24173. height: 100% !important;
  24174. margin: 0 !important;
  24175. }
  24176. .fullStyle {
  24177. width: 100% !important;
  24178. max-width: 100% !important;
  24179. height: 100% !important;
  24180. margin: 0 auto !important;
  24181. }
  24182. .fullStyle>>>.el-dialog__footer{
  24183. background: #fff !important;
  24184. }
  24185. .engUpBox {
  24186. width: 100%;
  24187. height: 100%;
  24188. }
  24189. .engTitle,
  24190. .engText {
  24191. display: flex;
  24192. flex-direction: row;
  24193. flex-wrap: nowrap;
  24194. align-items: flex-start;
  24195. padding: 0 20px 20px 20px;
  24196. box-sizing: border-box;
  24197. }
  24198. .engTitle > .div:first-child,
  24199. .engText > div:first-child {
  24200. min-width: 75px;
  24201. }
  24202. .correctBox{
  24203. width: 100%;
  24204. display: flex;
  24205. flex-direction: row;
  24206. flex-wrap: nowrap;
  24207. align-items: flex-start;
  24208. }
  24209. .oldBox{
  24210. width: 50%;
  24211. height: 100%;
  24212. display: flex;
  24213. flex-direction: column;
  24214. flex-wrap: nowrap;
  24215. align-items: center;
  24216. border-top: 1px solid #d9d9d9;
  24217. border-left: 1px solid #d9d9d9;
  24218. border-right: 1px solid #d9d9d9;
  24219. }
  24220. .oldBox>div:first-child{
  24221. width: 100%;
  24222. text-align: center;
  24223. background: #d9d9d9;
  24224. height: 35px;
  24225. line-height: 35px;
  24226. font-weight: bold;
  24227. }
  24228. .oldText{
  24229. width: 100%;
  24230. height: calc(100% - 35px);
  24231. overflow: auto;
  24232. margin: 10px 0;
  24233. display: flex;
  24234. flex-direction: column;
  24235. flex-wrap: nowrap;
  24236. align-content: center;
  24237. align-items: center;
  24238. }
  24239. .detailBox{
  24240. width: 50%;
  24241. padding: 10px;
  24242. background: #f6f6f6;
  24243. border-radius: 5px;
  24244. }
  24245. .oldDetail,.oldDetail1{
  24246. padding-bottom: 30px;
  24247. }
  24248. .oldImg{
  24249. width:30px;
  24250. height: 30px;
  24251. }
  24252. .oldImg>img{
  24253. width: 100%;
  24254. height: 100%;
  24255. }
  24256. .allName{
  24257. min-width: 200px;
  24258. white-space: nowrap;
  24259. overflow: hidden;
  24260. text-overflow: ellipsis;
  24261. word-break: break-word;
  24262. cursor: pointer;
  24263. text-align: center;
  24264. border: 1px solid #bcc2cc;
  24265. box-sizing: border-box;
  24266. }
  24267. .engUpTop{
  24268. max-height: 300px;
  24269. overflow: auto;
  24270. }
  24271. .isUpdateToolDetailClass{
  24272. padding: 0 !important;
  24273. }
  24274. .isUpdateToolDetailClass textarea{
  24275. padding:12px;
  24276. font-size: 16px;
  24277. min-height:100%;
  24278. width: 100%;
  24279. box-sizing:border-box;
  24280. outline: none;
  24281. border:none;
  24282. line-height: 30px;
  24283. resize: none;
  24284. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24285. color: #838383;
  24286. }
  24287. .show_taskD {
  24288. min-width: fit-content;
  24289. margin-left: 10px;
  24290. display: flex;
  24291. align-items: center;
  24292. font-size: 14px;
  24293. cursor: pointer;
  24294. color: #717c8d;
  24295. }
  24296. .show_taskD > img {
  24297. width: 15px;
  24298. margin-right: 5px;
  24299. transition: 0.2s all;
  24300. transform: rotate(-90deg);
  24301. }
  24302. .show_taskD.show > img {
  24303. transform: rotate(0deg);
  24304. }
  24305. .correctCss{
  24306. position: absolute;
  24307. bottom: -70px;
  24308. background: #409eff;
  24309. color: #fff;
  24310. }
  24311. .ScoreBtn{
  24312. background: rgba(87, 159, 248, 1);
  24313. display: flex;
  24314. justify-content: center;
  24315. align-items: center;
  24316. color: #fff;
  24317. font-size: 14px;
  24318. padding:8px 12px;
  24319. border-radius: 5px;
  24320. cursor: pointer;
  24321. }
  24322. .max-height-popover .el-popover {
  24323. min-height: 200px;
  24324. max-height: 400px; /* 设置最大高度 */
  24325. overflow: auto; /* 超出部分显示滚动条 */
  24326. }
  24327. .blueRootCss{
  24328. display: block;
  24329. margin-right: 5px;
  24330. }
  24331. </style>