studyStudent.vue 815 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599
  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">
  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. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  248. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  249. <div class="btnLeft">
  250. <el-tooltip effect="light" content="刷新" placement="top">
  251. <div class="reBtnIcon" @click="refreshCourse">
  252. <span>刷新</span>
  253. </div>
  254. </el-tooltip>
  255. <el-tooltip effect="light" content="评论" placement="top">
  256. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  257. <span>评论</span>
  258. </div>
  259. </el-tooltip>
  260. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  261. <el-tooltip effect="light" content="录制" placement="top">
  262. <div class="vedioIcon" @click="startRecording">
  263. <span>录制</span>
  264. </div>
  265. </el-tooltip>
  266. </div>
  267. <div v-else-if="tType == 1 || tType == 4">
  268. <el-tooltip effect="light" content="下载" placement="top">
  269. <div class="vedioIcon1" @click="stopRecording">
  270. <span>下载</span>
  271. </div>
  272. </el-tooltip>
  273. </div>
  274. </div>
  275. <div class="btnRight">
  276. <div
  277. class="last"
  278. @click="nextOrpreSteps(0)"
  279. v-if="!(IsFollow && tType == 2)"
  280. @mouseover="isHovered = true"
  281. @mouseout="isHovered = false"
  282. >
  283. <div class="lastImg">
  284. <img
  285. :src="
  286. isHovered
  287. ? require('../../assets/icon/newIcons/whiteLast.png')
  288. : require('../../assets/icon/newIcons/last.png')
  289. "
  290. alt=""
  291. />
  292. </div>
  293. <div class="lastText">上一步</div>
  294. </div>
  295. <div
  296. class="last"
  297. @click="nextOrpreSteps(1)"
  298. v-if="!(IsFollow && tType == 2)"
  299. @mouseover="isHovered1 = true"
  300. @mouseout="isHovered1 = false"
  301. >
  302. <div class="lastText">下一步</div>
  303. <div class="lastImg">
  304. <img
  305. :src="
  306. isHovered1
  307. ? require('../../assets/icon/newIcons/whiteNext.png')
  308. : require('../../assets/icon/newIcons/next.png')
  309. "
  310. alt=""
  311. />
  312. </div>
  313. </div>
  314. <div
  315. class="last"
  316. @click="juriVisible = true"
  317. v-if="tType == 1"
  318. @mouseover="isHovered2 = true"
  319. @mouseout="isHovered2 = false"
  320. >
  321. <div class="lastImg">
  322. <img
  323. :src="
  324. isHovered2
  325. ? require('../../assets/icon/newIcons/whiteLock.png')
  326. : require('../../assets/icon/newIcons/lock.png')
  327. "
  328. alt=""
  329. />
  330. </div>
  331. <div class="lastText">权限</div>
  332. </div>
  333. <div
  334. class="returnBtn1 returnIcon"
  335. @click.stop="
  336. goTo(
  337. '/courseDetail?userid=' +
  338. userid +
  339. '&oid=' +
  340. oid +
  341. '&org=' +
  342. org +
  343. '&cid=' +
  344. classId +
  345. '&courseId=' +
  346. id +
  347. '&tType=' +
  348. tType +
  349. '&screenType=' +
  350. screenType
  351. )
  352. "
  353. >
  354. <div class="lastImg">
  355. <img src="../../assets/icon/newIcon/return.png" alt="" />
  356. </div>
  357. <div class="lastText" style="color: #000">返回</div>
  358. </div>
  359. </div>
  360. <!-- <div
  361. class="returnBtn lockIcon"
  362. @click="juriVisible = true"
  363. v-if="tType == 1"
  364. >
  365. 权限
  366. </div>
  367. <div
  368. class="returnBtn vedioIcon"
  369. @click="startRecording"
  370. v-if="!videoStart && (tType == 1 || tType == 4)"
  371. >
  372. 录制
  373. </div>
  374. <div
  375. class="returnBtn"
  376. @click="stopRecording"
  377. v-else-if="tType == 1 || tType == 4"
  378. style="background: #ee5255"
  379. >
  380. 下载
  381. </div>
  382. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  383. 评论
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="nextOrpreSteps(0)"
  388. v-if="!(IsFollow && tType == 2)"
  389. >
  390. 上一步
  391. </div>
  392. <div
  393. class="returnBtn"
  394. @click="nextOrpreSteps(1)"
  395. v-if="!(IsFollow && tType == 2)"
  396. >
  397. 下一步
  398. </div>
  399. <div class="returnBtn" @click="refreshCourse">刷新</div>
  400. <div
  401. class="returnBtn returnIcon"
  402. @click.stop="
  403. goTo(
  404. '/courseDetail?userid=' +
  405. userid +
  406. '&oid=' +
  407. oid +
  408. '&org=' +
  409. org +
  410. '&cid=' +
  411. classId +
  412. '&courseId=' +
  413. id +
  414. '&tType=' +
  415. tType +
  416. '&screenType=' +
  417. screenType
  418. )
  419. "
  420. >
  421. 返回
  422. </div> -->
  423. </div>
  424. </div>
  425. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  426. .taskDetail3 && -->
  427. <div
  428. class="isNoMessage"
  429. v-if="
  430. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  431. .chapterData.length == 0 &&
  432. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .toolChoose[0].tool.length == 0 &&
  434. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  435. .taskDetail == '' &&
  436. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .eList &&
  438. !(
  439. courseDetail.userid == userid ||
  440. (courseDetail.course_teacher &&
  441. courseDetail.course_teacher.indexOf(userid) != -1)
  442. )
  443. "
  444. >
  445. <img src="../../assets/icon/isNoMessage.png" alt />
  446. </div>
  447. <div class="study_top" :class="{ pzClass: pzDialog }">
  448. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail3 || -->
  450. <div
  451. class="vedioBox"
  452. v-if="
  453. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  454. .taskDetail != '' ||
  455. vChapterData[0].length > 0 ||
  456. fileC[0].length > 0
  457. "
  458. style="border-radius: 0 0 20px 20px"
  459. >
  460. <!-- <div
  461. class="taskBox"
  462. v-if="
  463. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  464. .taskDetail3
  465. "
  466. >
  467. <div
  468. style="
  469. display: flex;
  470. flex-wrap: nowrap;
  471. flex-direction: column;
  472. position: relative;
  473. "
  474. >
  475. <div
  476. style="
  477. padding: 15px 0;
  478. line-height: 29px;
  479. font-size: 18px;
  480. color: #0e1e33;
  481. "
  482. class="cont"
  483. v-if="
  484. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  485. .taskDetail3 != ''
  486. "
  487. v-html="
  488. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  489. .taskDetail3
  490. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  491. taskCount
  492. ].taskDetail3)
  493. : '暂无描述'
  494. "
  495. ></div>
  496. </div>
  497. </div> -->
  498. <div
  499. class="taskBox"
  500. v-if="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail != ''
  503. "
  504. >
  505. <div
  506. style="
  507. display: flex;
  508. flex-wrap: nowrap;
  509. flex-direction: column;
  510. position: relative;
  511. "
  512. >
  513. <div
  514. style="
  515. padding: 15px 0;
  516. line-height: 29px;
  517. font-size: 18px;
  518. color: #0e1e33;
  519. "
  520. class="cont"
  521. v-if="
  522. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  523. .taskDetail != ''
  524. "
  525. v-html="
  526. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  527. .taskDetail
  528. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  529. taskCount
  530. ].taskDetail
  531. : '暂无描述'
  532. "
  533. ></div>
  534. </div>
  535. </div>
  536. <div
  537. class="student_head"
  538. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  539. >
  540. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  541. <div
  542. :class="
  543. contentDialog == false
  544. ? 'box_course isContentCss'
  545. : 'box_course'
  546. "
  547. v-if="
  548. vChapterData.length > 0 &&
  549. vChapterData[0] &&
  550. showType !== ''
  551. "
  552. >
  553. <div class="wheel" style="height: auto" v-if="showType === 0">
  554. <div
  555. class="workd_media"
  556. style="height: 650px; width: calc(100% - 50px)"
  557. >
  558. <video-player
  559. class="video-player vjs-custom-skin"
  560. :class="contentDialog == false ? 'isAllWidth' : ''"
  561. :playsinline="true"
  562. :options="playerO[0]"
  563. @play="onPlayerPlay($event)"
  564. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  565. ></video-player>
  566. </div>
  567. </div>
  568. <div
  569. class="wheel"
  570. v-if="showType == 1"
  571. style="
  572. box-shadow: 0 0 6px 1px #f2f2f2;
  573. width: 95%;
  574. margin: 0 auto;
  575. background: #f1f1f1;
  576. "
  577. >
  578. <div class="title">查看文档</div>
  579. <el-form class="textBox">
  580. <el-form-item class="textTitle">
  581. <div style="font-size: 22px">
  582. {{ text.name }}
  583. </div>
  584. </el-form-item>
  585. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  586. <div v-html="text.url" class="textContent cont"></div>
  587. </el-form>
  588. </div>
  589. <div
  590. class="wheel"
  591. v-if="
  592. pptImgUrl1.indexOf(
  593. 'https://view.officeapps.live.com/op/view.aspx?src='
  594. ) != -1 && showType == 2
  595. "
  596. style="width: 95%; margin: 0 auto"
  597. >
  598. <iframe
  599. style="width: 100%; height: 100%; border: none"
  600. :src="pptImgUrl1"
  601. ></iframe>
  602. </div>
  603. <div
  604. class="wheel"
  605. v-else-if="showType == 2"
  606. style="width: 95%; margin: 0 auto"
  607. >
  608. <iframe
  609. style="width: 100%; height: 100%; border: none"
  610. security="restricted"
  611. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  612. :src="pptImgUrl1"
  613. ></iframe>
  614. </div>
  615. <div
  616. class="wheel"
  617. v-if="showType == 3"
  618. style="width: 95%; margin: 0 auto"
  619. >
  620. <pdf
  621. :pdfUrl="pptImgUrl1"
  622. style="width: 100%; height: 100%; overflow: auto"
  623. ></pdf>
  624. </div>
  625. <div
  626. class="wheel"
  627. v-if="showType == 4"
  628. style="width: 95%; margin: 0 auto"
  629. >
  630. <el-image
  631. :src="pptImgUrl1"
  632. fit="contain"
  633. style="width: 100%; height: 100%; cursor: pointer"
  634. @click="previewImg(pptImgUrl1)"
  635. ></el-image>
  636. </div>
  637. </div>
  638. <div
  639. class="pButton"
  640. style="position: absolute; right: 20px; top: 0; z-index: 998"
  641. v-if="!contentDialog"
  642. @click="setContent(true)"
  643. >
  644. <!-- 批 -->
  645. <img
  646. src="../../assets/icon/newIcons/isLeft.png"
  647. style="width: 45px"
  648. alt=""
  649. />
  650. </div>
  651. <div
  652. v-if="contentDialog == true"
  653. :style="{
  654. width:
  655. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  656. showType === ''
  657. ? 'calc(100%)'
  658. : '300px',
  659. margin:
  660. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  661. showType === ''
  662. ? '0 15px'
  663. : '0 15px 0 0',
  664. }"
  665. >
  666. <div
  667. class="vedioList"
  668. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  669. style="height: 650px"
  670. >
  671. <div class="navCorOpenBox">
  672. <div class="navTitile">内容列表:</div>
  673. <div class="navCorOpen" @click="setContent(false)">
  674. <img
  675. src="../../assets/icon/newIcons/isRight.png"
  676. alt=""
  677. />
  678. </div>
  679. </div>
  680. <div class="navBox">
  681. <div
  682. v-show="
  683. vChapterData[0].length > 0 || fileC[0].length > 0
  684. "
  685. style="padding: 10px 0 25px 0"
  686. >
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in vChapterData[0]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 2">
  693. <div
  694. @click="lookVedio(vitem.url, vindex)"
  695. class="navText"
  696. :class="isClickNav == vindex ? 'isClickNav' : ''"
  697. >
  698. <span v-if="vitem.text">{{ vitem.text }}-</span
  699. >{{ vitem.name }}
  700. </div>
  701. <div class="downIcon" @click="downloadFile2(vitem)">
  702. <img
  703. src="../../assets/icon/newIcon/down.png"
  704. alt
  705. />
  706. </div>
  707. </div>
  708. <div class="navListItem" v-if="vitem.type == 6">
  709. <div
  710. @click="lookText(0, vindex)"
  711. class="navText"
  712. :class="isClickNav == vindex ? 'isClickNav' : ''"
  713. >
  714. {{ vitem.name }}.doc
  715. </div>
  716. <div
  717. class="downIcon"
  718. @click="checkFileFull1(vitem.type, vitem)"
  719. >
  720. <img
  721. src="../../assets/icon/newIcon/allScreen.png"
  722. alt
  723. />
  724. </div>
  725. </div>
  726. <div
  727. class="navListItem"
  728. v-if="vitem.type == 8 || vitem.type == 14"
  729. >
  730. <div
  731. @click="doUrl(vitem.url, vindex)"
  732. class="navText"
  733. :class="isClickNav == vindex ? 'isClickNav' : ''"
  734. >
  735. {{ vitem.title ? vitem.title : vitem.url }}
  736. </div>
  737. <div
  738. class="downIcon"
  739. @click="checkFileFull1(vitem.type, vitem)"
  740. >
  741. <img
  742. src="../../assets/icon/newIcon/allScreen.png"
  743. alt
  744. />
  745. </div>
  746. </div>
  747. <div class="navListItem" v-if="vitem.type == 3">
  748. <div
  749. @click="downFile(vitem, vindex)"
  750. class="navText"
  751. :class="isClickNav == vindex ? 'isClickNav' : ''"
  752. >
  753. <span v-if="vitem.text">{{ vitem.text }}-</span
  754. >{{ vitem.name }}
  755. </div>
  756. <div
  757. class="downIcon"
  758. @click="checkFileFull1(vitem.type, vitem)"
  759. >
  760. <img
  761. src="../../assets/icon/newIcon/allScreen.png"
  762. alt
  763. />
  764. </div>
  765. <div class="downIcon" @click="downloadFile2(vitem)">
  766. <img
  767. src="../../assets/icon/newIcon/down.png"
  768. alt
  769. />
  770. </div>
  771. </div>
  772. <div class="navListItem" v-if="vitem.type == 12">
  773. <div class="navText" @click="downloadFile2(vitem)">
  774. <span v-if="vitem.text">{{ vitem.text }}-</span
  775. >{{ vitem.name }}
  776. </div>
  777. <div
  778. class="downIcon"
  779. @click="checkFileFull1(vitem.type, vitem)"
  780. >
  781. <img
  782. src="../../assets/icon/newIcon/allScreen.png"
  783. alt
  784. />
  785. </div>
  786. <div class="downIcon" @click="downloadFile2(vitem)">
  787. <img
  788. src="../../assets/icon/newIcon/down.png"
  789. alt
  790. />
  791. </div>
  792. </div>
  793. <div class="navListItem" v-if="vitem.type == 13">
  794. <div
  795. class="navText"
  796. @click="checkPhoto(vitem, vindex)"
  797. :class="isClickNav == vindex ? 'isClickNav' : ''"
  798. >
  799. {{ vitem.name }}
  800. </div>
  801. <div class="downIcon" @click="downloadFile2(vitem)">
  802. <img
  803. src="../../assets/icon/newIcon/down.png"
  804. alt
  805. />
  806. </div>
  807. </div>
  808. </div>
  809. <div class="fileC_box" v-if="fileC[0].length > 0">
  810. <div class="fileC_title">以下文件不支持预览</div>
  811. <div
  812. class="vedioTimeBox"
  813. v-for="(vitem, vindex) in fileC[0]"
  814. :key="vindex + '1'"
  815. >
  816. <div class="navListItem" v-if="vitem.type == 12">
  817. <div class="navText" style="color: #acb4bf">
  818. <span v-if="vitem.text">{{ vitem.text }}-</span
  819. >{{ vitem.name }}
  820. </div>
  821. <div
  822. class="downIcon"
  823. @click="downloadFile2(vitem)"
  824. >
  825. <img
  826. src="../../assets/icon/newIcon/down.png"
  827. alt
  828. />
  829. </div>
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. <div style="width: calc(100% - 315px)">
  839. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  840. <!-- <el-button
  841. type="primary"
  842. class="newButton"
  843. @click="checkFileFull(showType, pptImgUrl1)"
  844. >全屏查看</el-button
  845. >
  846. <el-button
  847. type="primary"
  848. class="newButton"
  849. @click="downloadFile(pptImgUrl1)"
  850. v-if="showType != 2"
  851. >文件下载</el-button
  852. > -->
  853. <el-button
  854. v-if="
  855. showType == 2 &&
  856. pptImgUrl1.indexOf(
  857. 'https://view.officeapps.live.com/op/view.aspx?src='
  858. ) == -1
  859. "
  860. type="primary"
  861. class="newButton"
  862. @click="openLine(pptImgUrl1)"
  863. >打开链接
  864. </el-button>
  865. </div>
  866. <!-- <div
  867. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  868. v-if="showType == 1"
  869. >
  870. <el-button
  871. type="primary"
  872. class="newButton"
  873. @click="checkFileFull(showType, text)"
  874. >全屏查看</el-button
  875. >
  876. </div> -->
  877. </div>
  878. </div>
  879. </div>
  880. <div class="student_body" v-resize="resize">
  881. <div
  882. class="vedioBox"
  883. :style="{
  884. borderRadius:
  885. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  886. .taskDetail == '' &&
  887. vChapterData[taskCount].length == 0 &&
  888. fileC[taskCount].length == 0
  889. ? '0 0 20px 20px'
  890. : '20px',
  891. }"
  892. v-if="
  893. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  894. .toolChoose[0].tool &&
  895. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  896. .toolChoose[0].tool.length > 0
  897. "
  898. >
  899. <div
  900. class="toolHeng2"
  901. style="position: relative"
  902. v-if="
  903. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  904. .toolChoose[0].tool &&
  905. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  906. .toolChoose[0].tool.length &&
  907. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  908. .toolChoose[0].tool.length > 0
  909. "
  910. >
  911. <div class="workNav">工作区</div>
  912. <div
  913. class="filebox"
  914. style="flex-wrap: nowrap"
  915. v-for="(tool, toolIndex) in chapInfoList[courseType]
  916. .chapterInfo[0].taskJson[taskCount].toolChoose"
  917. :key="toolIndex"
  918. >
  919. <div class="bzBox">
  920. <div class="yCss"></div>
  921. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  922. 工具{{ toolIndex + 1 }}
  923. </div>
  924. <div
  925. v-if="timeWorkList[toolIndex].length > 0"
  926. style="margin: 0 0 0 10px"
  927. >
  928. {{
  929. timeWorkList[toolIndex][0].time
  930. ? "时间:" + timeWorkList[toolIndex][0].time
  931. : ""
  932. }}
  933. </div>
  934. </div>
  935. <div class="toolBox">
  936. <div>
  937. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  938. :key="indexTool"-->
  939. <!-- <div class="iframeBox">
  940. <div
  941. class="addPoint isBorder"
  942. v-for="(tooC, toolCIndex) in tool.tool"
  943. :key="toolCIndex"
  944. >
  945. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  946. <div
  947. class="iframeName"
  948. >
  949. 电子白板
  950. </div>
  951. <iframe
  952. src="https://iwb.cocorobo.cn/"
  953. ref="whiteBoard"
  954. ></iframe>
  955. </div>
  956. </div>
  957. </div>-->
  958. <div class="noiframeBox">
  959. <div
  960. class="addPoint"
  961. v-for="(tooC, toolCIndex) in tool.tool"
  962. :key="toolCIndex"
  963. >
  964. <div v-if="tooC == 1">
  965. <img
  966. src="../../assets/icon/secondToolList/whiteBoard.png"
  967. alt
  968. @click="addTools(tooC, toolIndex, taskCount)"
  969. />
  970. <div style="margin: 5px 0">电子白板</div>
  971. </div>
  972. <div v-if="tooC == 3">
  973. <img
  974. src="../../assets/icon/secondToolList/mindMapping.png"
  975. alt
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. />
  978. <div style="margin: 5px 0">思维导图</div>
  979. </div>
  980. <div v-if="tooC == 6">
  981. <img
  982. src="../../assets/icon/secondToolList/doc.png"
  983. alt
  984. @click="addTools(tooC, toolIndex, taskCount)"
  985. />
  986. <div style="margin: 5px 0">协同文档</div>
  987. </div>
  988. <div v-if="tooC == 7">
  989. <img
  990. src="../../assets/icon/secondToolList/mindNetwork.png"
  991. alt
  992. @click="addTools(tooC, toolIndex, taskCount)"
  993. />
  994. <div style="margin: 5px 0">思维网格</div>
  995. </div>
  996. <div v-if="tooC == 8">
  997. <img
  998. src="../../assets/icon/secondToolList/library.png"
  999. alt
  1000. @click="addTools(tooC, toolIndex, taskCount)"
  1001. />
  1002. <div style="margin: 5px 0">素材库</div>
  1003. </div>
  1004. <div v-if="tooC == 17">
  1005. <img
  1006. src="../../assets/icon/secondToolList/library.png"
  1007. alt
  1008. @click="addTools(tooC, toolIndex, taskCount)"
  1009. />
  1010. <div style="margin: 5px 0">学习资料</div>
  1011. </div>
  1012. <div v-if="tooC == 2">
  1013. <img
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. src="../../assets/icon/secondToolList/note.png"
  1016. alt
  1017. />
  1018. <div style="margin: 5px 0">便签</div>
  1019. </div>
  1020. <div v-if="tooC == 4">
  1021. <img
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. src="../../assets/icon/thirdToolList/ask.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">问卷调查</div>
  1027. </div>
  1028. <div v-if="tooC == 45">
  1029. <img
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. src="../../assets/icon/thirdToolList/choose.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">选择题</div>
  1035. </div>
  1036. <!-- <div v-if="tooC == 5">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../assets/icon/thirdToolList/score.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">量规评分</div>
  1043. </div> -->
  1044. <div v-if="tooC == 10">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/thirdToolList/time.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">倒计时</div>
  1051. </div>
  1052. <div v-if="tooC == 15">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../assets/icon/thirdToolList/answer.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">问答</div>
  1059. </div>
  1060. <div v-if="tooC == 26">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../assets/icon/thirdToolList/courseDesign.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">课程设计</div>
  1067. </div>
  1068. <div v-if="tooC == 18">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">训练服务器</div>
  1075. </div>
  1076. <div v-if="tooC == 16">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../../assets/icon/thirdToolList/work.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">作业提交</div>
  1083. </div>
  1084. <div v-if="tooC == 50">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../../assets/icon/thirdToolList/plwork.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">批量上传</div>
  1091. </div>
  1092. <div v-if="tooC == 21">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/fourthToolList/program.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">AIoT Blockly</div>
  1099. </div>
  1100. <!-- <div v-if="tooC == 22">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/fourthToolList/program.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">AI体验</div>
  1107. </div> -->
  1108. <div v-if="tooC == 23">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">AI Python</div>
  1115. </div>
  1116. <div v-if="tooC == 24">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/fourthToolList/AIprogram.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">AI Blockly</div>
  1123. </div>
  1124. <div v-if="tooC == 25">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/thirdToolList/evalua.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">目标管理</div>
  1131. </div>
  1132. <div v-if="tooC == 31">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../../assets/icon/secondToolList/networkPanel.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">数学画板</div>
  1139. </div>
  1140. <div v-if="tooC == 28">
  1141. <img
  1142. @click="addTools(tooC, toolIndex, taskCount)"
  1143. src="../../assets/icon/secondToolList/translation.png"
  1144. alt
  1145. />
  1146. <div style="margin: 5px 0">翻译</div>
  1147. </div>
  1148. <div v-if="tooC == 37">
  1149. <img
  1150. @click="addTools(tooC, toolIndex, taskCount)"
  1151. src="../../assets/icon/secondToolList/mohe.png"
  1152. alt
  1153. />
  1154. <div style="margin: 5px 0">魔盒识字</div>
  1155. </div>
  1156. <div v-if="tooC == 38">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/secondToolList/24game.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">24点</div>
  1163. </div>
  1164. <div v-if="tooC == 39">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/secondToolList/GeoGebra.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">GeoGebra</div>
  1171. </div>
  1172. <div v-if="tooC == 32">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../../assets/icon/thirdToolList/code.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">源码编辑</div>
  1179. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1180. style="position: absolute;left: 110px;bottom: 30px;">
  1181. 上传文件
  1182. <input type="file" accept="*" style="display: none"
  1183. @change="beforeUpload1($event, 7, toolIndex)" />
  1184. </div> -->
  1185. </div>
  1186. <div v-if="tooC == 40">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/secondToolList/eval.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">个人评价</div>
  1193. </div>
  1194. <div v-if="tooC == 41">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/thirdToolList/select.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">选择匹配</div>
  1201. </div>
  1202. <div v-if="tooC == 44">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../assets/icon/thirdToolList/hanClass.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">汉字宫</div>
  1209. </div>
  1210. <div v-if="tooC == 47">
  1211. <img
  1212. @click="addTools(tooC, toolIndex, taskCount)"
  1213. src="../../assets/icon/fourthToolList/conSentences.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">排序</div>
  1217. </div>
  1218. <div v-if="tooC == 48">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/fourthToolList/table.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">表格</div>
  1225. </div>
  1226. <div v-if="tooC == 52">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/fourthToolList/text.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">文档</div>
  1233. </div>
  1234. <div v-if="tooC == 49">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/group.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">学生分组</div>
  1241. </div>
  1242. <div v-if="tooC == 57">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/fourthToolList/cocopi.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">CocoPi</div>
  1249. </div>
  1250. <div v-if="tooC == 58">
  1251. <img
  1252. @click="addTools(tooC, toolIndex, taskCount)"
  1253. src="../../assets/icon/fourthToolList/car.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">模拟驾驶</div>
  1257. </div>
  1258. <div v-if="tooC == 59">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../assets/icon/fourthToolList/lineSearch.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">路径搜索</div>
  1265. </div>
  1266. <div v-if="tooC == 60">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../assets/icon/fourthToolList/deepLearning.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">深度学习</div>
  1273. </div>
  1274. <div v-if="tooC == 61">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/fourthToolList/allHistory.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">全历史</div>
  1281. </div>
  1282. <div v-if="tooC == 62">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/fourthToolList/interVideo.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">交互视频</div>
  1289. </div>
  1290. <div v-if="tooC == 63">
  1291. <img
  1292. @click="addTools(tooC, toolIndex, taskCount)"
  1293. src="../../assets/icon/fourthToolList/Wood.png"
  1294. alt
  1295. />
  1296. <div style="margin: 5px 0">海龟编程</div>
  1297. </div>
  1298. <div v-if="tooC == 71">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../../assets/icon/fourthToolList/chatgpt.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">AI智能体</div>
  1305. </div>
  1306. <div v-if="tooC == 65">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../../assets/icon/firstToolList/pickPeople.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">挑人</div>
  1313. </div>
  1314. <div v-if="tooC == 66">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/secondToolList/formulaEdi.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">公式编辑</div>
  1321. </div>
  1322. <div v-if="tooC == 67">
  1323. <img
  1324. @click="addTools(tooC, toolIndex, taskCount)"
  1325. src="../../assets/icon/secondToolList/molStr.png"
  1326. alt
  1327. />
  1328. <div style="margin: 5px 0">分子结构</div>
  1329. </div>
  1330. <div v-if="tooC == 68">
  1331. <img
  1332. @click="addTools(tooC, toolIndex, taskCount)"
  1333. src="../../assets/icon/secondToolList/timeAxis.png"
  1334. alt
  1335. />
  1336. <div style="margin: 5px 0">时间轴</div>
  1337. </div>
  1338. <div v-if="tooC == 69">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/secondToolList/english.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">英语写作</div>
  1345. </div>
  1346. <div v-if="tooC == 70">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../../assets/icon/thirdToolList/englishVoice.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">英语口语</div>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1358. <!-- <div class="toolTitle">工具描述</div> -->
  1359. <div style="height:100%;"
  1360. v-html="contentConvent(tool.toolDetail)"
  1361. v-if="toolDetailIndex != toolIndex"
  1362. @click.stop="updateToolDetail(toolIndex, 2)"
  1363. ></div>
  1364. <div v-else @click.stop="" style="height:100%;">
  1365. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1366. </div>
  1367. </div>
  1368. <el-button
  1369. type="primary"
  1370. v-if="tool.tool[0] == 32"
  1371. style="position: absolute; right: 30px; top: 30px"
  1372. @click="addImg($event)"
  1373. >上传作业<input
  1374. type="file"
  1375. accept="*"
  1376. style="display: none"
  1377. @change="beforeUpload1($event, 7, toolIndex)"
  1378. /></el-button>
  1379. <el-button
  1380. type="primary"
  1381. v-if="tool.tool[0] == 15"
  1382. style="position: absolute; right: 30px; top: 30px"
  1383. @click="openWordCloud(toolIndex)"
  1384. >生成词云</el-button
  1385. >
  1386. <el-button
  1387. type="primary"
  1388. v-if="
  1389. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1390. "
  1391. style="position: absolute; right: 30px; top: 30px"
  1392. @click="uploadWorks(toolIndex)"
  1393. >导出作业</el-button
  1394. >
  1395. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1396. position: absolute;
  1397. right: 30px;
  1398. transform: translateY(-130%);
  1399. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1400. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1401. </div>
  1402. <div
  1403. v-if="
  1404. tType &&
  1405. tType == 2 &&
  1406. !sIsOpen &&
  1407. tool.tool.indexOf(16) != -1
  1408. "
  1409. class="worksBox"
  1410. >
  1411. <div
  1412. class="zuoyeYulan"
  1413. v-if="workStudent[toolIndex].length > 0"
  1414. >
  1415. <span class="worksTitle">作业预览</span>
  1416. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1417. </div>
  1418. <div
  1419. class="worksDetailBox"
  1420. v-if="workStudent[toolIndex].length > 0"
  1421. >
  1422. <div
  1423. class="works"
  1424. style="
  1425. width: 200px;
  1426. height: 140px;
  1427. margin: 10px 10px 10px 0;
  1428. box-shadow: 0 0 6px 1px #dfdada;
  1429. "
  1430. v-for="(w, wIndex) in workStudent[toolIndex]"
  1431. :key="wIndex"
  1432. >
  1433. <div class="workImg" v-if="w.type == 0">
  1434. <img
  1435. :src="w.works"
  1436. @click="previewImg(w.works)"
  1437. alt
  1438. />
  1439. <div
  1440. class="answerScore"
  1441. v-if="w.score"
  1442. @click.stop="openScore(w)"
  1443. :class="{
  1444. rightW:
  1445. w.userid == userid || tType == 1 || tType == 4,
  1446. }"
  1447. >
  1448. {{ JSON.parse(w.score).wScore }}分
  1449. </div>
  1450. <div
  1451. class="answerScore"
  1452. @click.stop="openScore(w)"
  1453. v-else-if="courseDetail.userid == userid"
  1454. :class="{
  1455. rightW:
  1456. w.userid == userid || tType == 1 || tType == 4,
  1457. }"
  1458. >
  1459. 评分
  1460. </div>
  1461. <img
  1462. class="deleteImg"
  1463. src="../../assets/deleteworks.png"
  1464. v-if="
  1465. w.userid == userid || tType == 1 || tType == 4
  1466. "
  1467. @click.stop="deleteWorks(w.wid)"
  1468. alt
  1469. />
  1470. </div>
  1471. <div class="workImg" v-if="w.type == 1">
  1472. <img :src="word" @click="openFile(w.works)" alt />
  1473. <div
  1474. class="answerScore"
  1475. v-if="w.score"
  1476. @click.stop="openScore(w)"
  1477. :class="{
  1478. rightW:
  1479. w.userid == userid || tType == 1 || tType == 4,
  1480. }"
  1481. >
  1482. {{ JSON.parse(w.score).wScore }}分
  1483. </div>
  1484. <div
  1485. class="answerScore"
  1486. @click.stop="openScore(w)"
  1487. v-else-if="courseDetail.userid == userid"
  1488. :class="{
  1489. rightW:
  1490. w.userid == userid || tType == 1 || tType == 4,
  1491. }"
  1492. >
  1493. 评分
  1494. </div>
  1495. <img
  1496. class="deleteImg"
  1497. src="../../assets/deleteworks.png"
  1498. v-if="
  1499. w.userid == userid || tType == 1 || tType == 4
  1500. "
  1501. @click.stop="deleteWorks(w.wid)"
  1502. alt
  1503. />
  1504. </div>
  1505. <div class="workImg" v-if="w.type == 3">
  1506. <img
  1507. style="cursor: pointer"
  1508. :src="video"
  1509. @click="openVideo(w)"
  1510. alt
  1511. />
  1512. <div
  1513. class="answerScore"
  1514. v-if="w.score"
  1515. @click.stop="openScore(w)"
  1516. :class="{
  1517. rightW:
  1518. w.userid == userid || tType == 1 || tType == 4,
  1519. }"
  1520. >
  1521. {{ JSON.parse(w.score).wScore }}分
  1522. </div>
  1523. <div
  1524. class="answerScore"
  1525. @click.stop="openScore(w)"
  1526. v-else-if="courseDetail.userid == userid"
  1527. :class="{
  1528. rightW:
  1529. w.userid == userid || tType == 1 || tType == 4,
  1530. }"
  1531. >
  1532. 评分
  1533. </div>
  1534. <img
  1535. class="deleteImg"
  1536. src="../../assets/deleteworks.png"
  1537. v-if="
  1538. w.userid == userid || tType == 1 || tType == 4
  1539. "
  1540. @click.stop="deleteWorks(w.wid)"
  1541. alt
  1542. />
  1543. </div>
  1544. <div class="workImg" v-if="w.type == 12">
  1545. <img
  1546. style="cursor: pointer"
  1547. :src="word2"
  1548. @click="downloadFile(w.works)"
  1549. alt
  1550. />
  1551. <div
  1552. class="answerScore"
  1553. v-if="w.score"
  1554. @click.stop="openScore(w)"
  1555. :class="{
  1556. rightW:
  1557. w.userid == userid || tType == 1 || tType == 4,
  1558. }"
  1559. >
  1560. {{ JSON.parse(w.score).wScore }}分
  1561. </div>
  1562. <div
  1563. class="answerScore"
  1564. @click.stop="openScore(w)"
  1565. v-else-if="courseDetail.userid == userid"
  1566. :class="{
  1567. rightW:
  1568. w.userid == userid || tType == 1 || tType == 4,
  1569. }"
  1570. >
  1571. 评分
  1572. </div>
  1573. <img
  1574. class="deleteImg"
  1575. src="../../assets/deleteworks.png"
  1576. v-if="
  1577. w.userid == userid || tType == 1 || tType == 4
  1578. "
  1579. @click.stop="deleteWorks(w.wid)"
  1580. alt
  1581. />
  1582. </div>
  1583. <div class="worksName">
  1584. <div>{{ w.sName }}</div>
  1585. </div>
  1586. </div>
  1587. </div>
  1588. </div>
  1589. <div
  1590. v-if="
  1591. tType &&
  1592. tType == 2 &&
  1593. !sIsOpen &&
  1594. tool.tool.indexOf(32) != -1
  1595. "
  1596. class="worksBox"
  1597. >
  1598. <div
  1599. class="zuoyeYulan"
  1600. v-if="workStudent[toolIndex].length > 0"
  1601. >
  1602. <span class="worksTitle">作业预览</span>
  1603. </div>
  1604. <div
  1605. class="worksDetailBox"
  1606. v-if="workStudent[toolIndex].length > 0"
  1607. >
  1608. <div
  1609. class="works"
  1610. style="
  1611. width: 200px;
  1612. height: 140px;
  1613. margin: 10px 10px 10px 0;
  1614. box-shadow: 0 0 6px 1px #dfdada;
  1615. "
  1616. v-for="(w, wIndex) in workStudent[toolIndex]"
  1617. :key="wIndex"
  1618. >
  1619. <div class="workImg">
  1620. <img
  1621. :src="word2"
  1622. @click="downloadFile(w.works)"
  1623. alt
  1624. />
  1625. <div
  1626. class="answerScore"
  1627. v-if="w.score"
  1628. @click.stop="openScore(w)"
  1629. :class="{
  1630. rightW:
  1631. w.userid == userid || tType == 1 || tType == 4,
  1632. }"
  1633. >
  1634. {{ JSON.parse(w.score).wScore }}分
  1635. </div>
  1636. <div
  1637. class="answerScore"
  1638. @click.stop="openScore(w)"
  1639. v-else-if="courseDetail.userid == userid"
  1640. :class="{
  1641. rightW:
  1642. w.userid == userid || tType == 1 || tType == 4,
  1643. }"
  1644. >
  1645. 评分
  1646. </div>
  1647. <img
  1648. class="deleteImg"
  1649. src="../../assets/deleteworks.png"
  1650. v-if="
  1651. w.userid == userid || tType == 1 || tType == 4
  1652. "
  1653. @click.stop="deleteWorks(w.wid)"
  1654. alt
  1655. />
  1656. </div>
  1657. <div class="worksName">
  1658. <div>{{ w.sName }}</div>
  1659. </div>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. <div
  1664. v-if="
  1665. tType &&
  1666. tType == 2 &&
  1667. !sIsOpen &&
  1668. tool.tool.indexOf(57) != -1
  1669. "
  1670. class="worksBox"
  1671. >
  1672. <div
  1673. class="zuoyeYulan"
  1674. v-if="workStudent[toolIndex].length > 0"
  1675. >
  1676. <span class="worksTitle">作业预览</span>
  1677. </div>
  1678. <div
  1679. class="worksDetailBox"
  1680. v-if="workStudent[toolIndex].length > 0"
  1681. >
  1682. <div
  1683. class="works"
  1684. style="
  1685. width: 200px;
  1686. height: 140px;
  1687. margin: 10px 10px 10px 0;
  1688. box-shadow: 0 0 6px 1px #dfdada;
  1689. "
  1690. v-for="(w, wIndex) in workStudent[toolIndex]"
  1691. :key="wIndex"
  1692. >
  1693. <div class="workImg">
  1694. <img
  1695. :src="word2"
  1696. @click="downloadFile(w.works)"
  1697. v-if="w.type == 12"
  1698. alt
  1699. />
  1700. <img
  1701. :src="word2"
  1702. @click="
  1703. openCocoPi(57, toolIndex, w.userid, w.sName)
  1704. "
  1705. v-else-if="w.type == 15"
  1706. alt
  1707. />
  1708. <div
  1709. class="answerScore"
  1710. v-if="w.score"
  1711. @click.stop="openScore(w)"
  1712. :class="{
  1713. rightW:
  1714. w.userid == userid || tType == 1 || tType == 4,
  1715. }"
  1716. >
  1717. {{ JSON.parse(w.score).wScore }}分
  1718. </div>
  1719. <div
  1720. class="answerScore"
  1721. @click.stop="openScore(w)"
  1722. v-else-if="courseDetail.userid == userid"
  1723. :class="{
  1724. rightW:
  1725. w.userid == userid || tType == 1 || tType == 4,
  1726. }"
  1727. >
  1728. 评分
  1729. </div>
  1730. <img
  1731. class="deleteImg"
  1732. src="../../assets/deleteworks.png"
  1733. v-if="
  1734. w.userid == userid || tType == 1 || tType == 4
  1735. "
  1736. @click.stop="deleteWorks(w.wid)"
  1737. alt
  1738. />
  1739. </div>
  1740. <div class="worksName">
  1741. <div>{{ w.sName }}</div>
  1742. </div>
  1743. </div>
  1744. </div>
  1745. </div>
  1746. <div
  1747. v-if="
  1748. tType &&
  1749. tType == 2 &&
  1750. !sIsOpen &&
  1751. tool.tool.indexOf(4) != -1
  1752. "
  1753. class="worksBox"
  1754. >
  1755. <div
  1756. class="zuoyeYulan"
  1757. v-if="workStudent[toolIndex].length > 0"
  1758. >
  1759. <span class="worksTitle">作业预览</span>
  1760. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1761. </div>
  1762. <div
  1763. class="worksDetailBox"
  1764. v-if="workStudent[toolIndex].length > 0"
  1765. >
  1766. <div
  1767. class="isWorksName2"
  1768. v-for="(w, wIndex) in workStudent[toolIndex]"
  1769. :key="wIndex"
  1770. @click="
  1771. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1772. "
  1773. >
  1774. {{ w.sName }}
  1775. <img
  1776. class="deleteImg deleteImg2"
  1777. src="../../assets/deleteworks.png"
  1778. v-if="w.userid == userid || tType == 1 || tType == 4"
  1779. @click.stop="deleteWorks(w.wid)"
  1780. alt
  1781. />
  1782. </div>
  1783. <!-- <div
  1784. class="works"
  1785. style="
  1786. width: 200px;
  1787. height: 140px;
  1788. border-radius: 10px;
  1789. box-shadow: 0 0 6px 1px #dfdada;
  1790. overflow: hidden;
  1791. "
  1792. v-for="(w, wIndex) in workStudent[toolIndex]"
  1793. :key="wIndex"
  1794. >
  1795. <div class="workImg">
  1796. <img
  1797. src="../../assets/icon/works/noImg.png"
  1798. @click="
  1799. openTools(
  1800. 4,
  1801. toolIndex,
  1802. taskCount,
  1803. w.works,
  1804. w.sName
  1805. )
  1806. "
  1807. alt
  1808. />
  1809. </div>
  1810. <div class="worksName">
  1811. <div>{{ w.sName }}</div>
  1812. <div>{{ w.time }}</div>
  1813. </div>
  1814. </div> -->
  1815. </div>
  1816. </div>
  1817. <div
  1818. v-if="
  1819. tType &&
  1820. ((tType == 2 && sIsOpen == true) ||
  1821. tType == 1 ||
  1822. tType == 4) &&
  1823. tool.tool.indexOf(62) != -1
  1824. "
  1825. class="worksBox"
  1826. >
  1827. <div
  1828. class="zuoyeYulan"
  1829. v-if="
  1830. worksStudent.length &&
  1831. worksStudent[toolIndex].length > 0
  1832. "
  1833. >
  1834. <div class="worksTop">
  1835. <div>作业预览</div>
  1836. <div
  1837. class="corOpen"
  1838. @click="contract(toolIndex)"
  1839. v-if="
  1840. (isCloseList[toolIndex].isCloseBoolean) &&
  1841. isCloseList[toolIndex].isClose == 0
  1842. "
  1843. >
  1844. 折叠
  1845. </div>
  1846. <div
  1847. class="corOpen"
  1848. @click="contract(toolIndex)"
  1849. v-if="isCloseList[toolIndex].isClose == 1"
  1850. >
  1851. 展开
  1852. </div>
  1853. </div>
  1854. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1855. </div>
  1856. <div>
  1857. <div
  1858. :id="'tool-' + toolIndex"
  1859. :style="{
  1860. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1861. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1862. }"
  1863. class="worksDetailBox"
  1864. v-if="
  1865. worksStudent.length &&
  1866. worksStudent[toolIndex].length > 0
  1867. "
  1868. >
  1869. <div
  1870. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1871. :key="wIndex"
  1872. class="isWorksName2"
  1873. @click="
  1874. openTools(
  1875. 62,
  1876. toolIndex,
  1877. taskCount,
  1878. w.works,
  1879. w.sName
  1880. )
  1881. "
  1882. >
  1883. {{ w.sName }}
  1884. <img
  1885. class="deleteImg deleteImg2"
  1886. src="../../assets/deleteworks.png"
  1887. v-if="
  1888. w.userid == userid || tType == 1 || tType == 4
  1889. "
  1890. @click.stop="deleteWorks(w.wid)"
  1891. alt
  1892. />
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1897. 未提交
  1898. </div>
  1899. <div
  1900. class="noWorksS"
  1901. v-if="noWorksS && noWorksS[toolIndex].length"
  1902. >
  1903. <div
  1904. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1905. :key="sIndex"
  1906. class="noWorksName"
  1907. >
  1908. <el-tooltip effect="dark" :content="s.student" placement="top">
  1909. <span>{{ s.student }}</span>
  1910. </el-tooltip>
  1911. </div>
  1912. </div>
  1913. </div>
  1914. <div
  1915. v-if="
  1916. tType &&
  1917. tType == 2 &&
  1918. !sIsOpen &&
  1919. tool.tool.indexOf(62) != -1
  1920. "
  1921. class="worksBox"
  1922. >
  1923. <div
  1924. class="zuoyeYulan"
  1925. v-if="workStudent[toolIndex].length > 0"
  1926. >
  1927. <span class="worksTitle">作业预览</span>
  1928. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1929. </div>
  1930. <div
  1931. class="worksDetailBox"
  1932. v-if="workStudent[toolIndex].length > 0"
  1933. >
  1934. <div
  1935. class="isWorksName2"
  1936. v-for="(w, wIndex) in workStudent[toolIndex]"
  1937. :key="wIndex"
  1938. @click="
  1939. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1940. "
  1941. >
  1942. {{ w.sName }}
  1943. <img
  1944. class="deleteImg deleteImg2"
  1945. src="../../assets/deleteworks.png"
  1946. v-if="w.userid == userid || tType == 1 || tType == 4"
  1947. @click.stop="deleteWorks(w.wid)"
  1948. alt
  1949. />
  1950. </div>
  1951. </div>
  1952. </div>
  1953. <div
  1954. v-if="
  1955. tType &&
  1956. tType == 2 &&
  1957. !sIsOpen &&
  1958. tool.tool.indexOf(45) != -1
  1959. "
  1960. class="worksBox"
  1961. >
  1962. <div
  1963. class="zuoyeYulan"
  1964. v-if="workStudent[toolIndex].length > 0"
  1965. >
  1966. <span class="worksTitle">作业预览</span>
  1967. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1968. </div>
  1969. <div
  1970. class="worksDetailBox"
  1971. v-if="workStudent[toolIndex].length > 0"
  1972. >
  1973. <div
  1974. class="isWorksName2"
  1975. v-for="(w, wIndex) in workStudent[toolIndex]"
  1976. :key="wIndex"
  1977. @click="
  1978. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1979. "
  1980. >
  1981. {{ w.sName }}
  1982. <img
  1983. class="deleteImg deleteImg2"
  1984. src="../../assets/deleteworks.png"
  1985. v-if="w.userid == userid || tType == 1 || tType == 4"
  1986. @click.stop="deleteWorks(w.wid)"
  1987. alt
  1988. />
  1989. </div>
  1990. </div>
  1991. </div>
  1992. <div
  1993. v-if="
  1994. tType &&
  1995. tType == 2 &&
  1996. !sIsOpen &&
  1997. tool.tool.indexOf(69) != -1
  1998. "
  1999. class="worksBox"
  2000. >
  2001. <div
  2002. class="zuoyeYulan"
  2003. v-if="workStudent[toolIndex].length > 0"
  2004. >
  2005. <span class="worksTitle">作业预览</span>
  2006. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2007. </div>
  2008. <div
  2009. class="worksDetailBox"
  2010. v-if="workStudent[toolIndex].length > 0"
  2011. >
  2012. <div
  2013. class="isWorksName2"
  2014. v-for="(w, wIndex) in workStudent[toolIndex]"
  2015. :key="wIndex"
  2016. @click="
  2017. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2018. "
  2019. >
  2020. {{ w.sName }}
  2021. <img
  2022. class="deleteImg deleteImg2"
  2023. src="../../assets/deleteworks.png"
  2024. v-if="w.userid == userid || tType == 1 || tType == 4"
  2025. @click.stop="deleteWorks(w.wid)"
  2026. alt
  2027. />
  2028. </div>
  2029. </div>
  2030. </div>
  2031. <div
  2032. v-if="
  2033. tType &&
  2034. tType == 2 &&
  2035. !sIsOpen &&
  2036. tool.tool.indexOf(15) != -1
  2037. "
  2038. class="worksBox"
  2039. >
  2040. <div
  2041. class="zuoyeYulan"
  2042. v-if="workStudent[toolIndex].length > 0"
  2043. >
  2044. <span class="worksTitle">作业预览</span>
  2045. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2046. </div>
  2047. <div
  2048. class="worksDetailBox"
  2049. v-if="workStudent[toolIndex].length > 0"
  2050. >
  2051. <div
  2052. class="works"
  2053. v-for="(w, wIndex) in workStudent[toolIndex]"
  2054. :key="wIndex"
  2055. >
  2056. <div class="workImg">
  2057. <!-- <img
  2058. src="../../assets/icon/works/noImg.png"
  2059. @click="openTools(15, toolIndex, taskCount, w.works)"
  2060. alt=""
  2061. />-->
  2062. <div class="answerBg">
  2063. <!-- <div>{{ w.sName }}</div> -->
  2064. <el-tooltip
  2065. class="item"
  2066. effect="light"
  2067. :content="JSON.parse(w.works)[0].answer"
  2068. placement="top"
  2069. >
  2070. <div class="answerContent">
  2071. {{ JSON.parse(w.works)[0].answer }}
  2072. </div>
  2073. </el-tooltip>
  2074. <div
  2075. class="answerScore"
  2076. v-if="w.score"
  2077. @click.stop="openScore(w)"
  2078. :class="{
  2079. rightW:
  2080. w.userid == userid ||
  2081. tType == 1 ||
  2082. tType == 4,
  2083. }"
  2084. >
  2085. {{ JSON.parse(w.score).wScore }}分
  2086. </div>
  2087. <div
  2088. class="answerScore"
  2089. @click.stop="openScore(w)"
  2090. v-else-if="courseDetail.userid == userid"
  2091. :class="{
  2092. rightW:
  2093. w.userid == userid ||
  2094. tType == 1 ||
  2095. tType == 4,
  2096. }"
  2097. >
  2098. 评分
  2099. </div>
  2100. <img
  2101. class="deleteImg"
  2102. src="../../assets/deleteworks.png"
  2103. v-if="
  2104. w.userid == userid || tType == 1 || tType == 4
  2105. "
  2106. @click.stop="deleteWorks(w.wid)"
  2107. alt
  2108. />
  2109. </div>
  2110. <div class="comment">
  2111. <div class="worksName">
  2112. <div>{{ w.sName }}</div>
  2113. </div>
  2114. </div>
  2115. </div>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. <div
  2120. v-if="
  2121. tType &&
  2122. tType == 2 &&
  2123. !sIsOpen &&
  2124. tool.tool.indexOf(1) != -1
  2125. "
  2126. class="worksBox"
  2127. >
  2128. <div
  2129. class="zuoyeYulan"
  2130. v-if="workStudent[toolIndex].length > 0"
  2131. >
  2132. <span class="worksTitle">作业预览</span>
  2133. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2134. </div>
  2135. <div
  2136. class="worksDetailBox"
  2137. v-if="workStudent[toolIndex].length > 0"
  2138. >
  2139. <div
  2140. class="works"
  2141. style="
  2142. width: 200px;
  2143. height: 140px;
  2144. margin: 10px 10px 10px 0;
  2145. box-shadow: 0 0 6px 1px #dfdada;
  2146. "
  2147. v-for="(w, wIndex) in workStudent[toolIndex]"
  2148. :key="wIndex"
  2149. >
  2150. <div class="workImg">
  2151. <img
  2152. :src="w.works"
  2153. @click="previewImg(w.works)"
  2154. alt
  2155. />
  2156. <div
  2157. class="answerScore"
  2158. v-if="w.score"
  2159. @click.stop="openScore(w)"
  2160. :class="{
  2161. rightW:
  2162. w.userid == userid || tType == 1 || tType == 4,
  2163. }"
  2164. >
  2165. {{ JSON.parse(w.score).wScore }}分
  2166. </div>
  2167. <div
  2168. class="answerScore"
  2169. @click.stop="openScore(w)"
  2170. v-else-if="courseDetail.userid == userid"
  2171. :class="{
  2172. rightW:
  2173. w.userid == userid || tType == 1 || tType == 4,
  2174. }"
  2175. >
  2176. 评分
  2177. </div>
  2178. <img
  2179. class="deleteImg"
  2180. src="../../assets/deleteworks.png"
  2181. v-if="
  2182. w.userid == userid || tType == 1 || tType == 4
  2183. "
  2184. @click.stop="deleteWorks(w.wid)"
  2185. alt
  2186. />
  2187. </div>
  2188. <div class="worksName">
  2189. <div>{{ w.sName }}</div>
  2190. </div>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. <div
  2195. v-if="
  2196. tType &&
  2197. tType == 2 &&
  2198. !sIsOpen &&
  2199. tool.tool.indexOf(3) != -1
  2200. "
  2201. class="worksBox"
  2202. >
  2203. <div
  2204. class="zuoyeYulan"
  2205. v-if="workStudent[toolIndex].length > 0"
  2206. >
  2207. <span class="worksTitle">作业预览</span>
  2208. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2209. </div>
  2210. <div
  2211. class="worksDetailBox"
  2212. v-if="workStudent[toolIndex].length > 0"
  2213. >
  2214. <div
  2215. class="works"
  2216. style="
  2217. width: 200px;
  2218. height: 140px;
  2219. margin: 10px 10px 10px 0;
  2220. box-shadow: 0 0 6px 1px #dfdada;
  2221. "
  2222. v-for="(w, wIndex) in workStudent[toolIndex]"
  2223. :key="wIndex"
  2224. >
  2225. <div class="workImg">
  2226. <img
  2227. :src="w.works"
  2228. @click="previewImg(w.works)"
  2229. alt
  2230. />
  2231. <div
  2232. class="answerScore"
  2233. v-if="w.score"
  2234. @click.stop="openScore(w)"
  2235. :class="{
  2236. rightW:
  2237. w.userid == userid || tType == 1 || tType == 4,
  2238. }"
  2239. >
  2240. {{ JSON.parse(w.score).wScore }}分
  2241. </div>
  2242. <div
  2243. class="answerScore"
  2244. @click.stop="openScore(w)"
  2245. v-else-if="courseDetail.userid == userid"
  2246. :class="{
  2247. rightW:
  2248. w.userid == userid || tType == 1 || tType == 4,
  2249. }"
  2250. >
  2251. 评分
  2252. </div>
  2253. <img
  2254. class="deleteImg"
  2255. src="../../assets/deleteworks.png"
  2256. v-if="
  2257. w.userid == userid || tType == 1 || tType == 4
  2258. "
  2259. @click.stop="deleteWorks(w.wid)"
  2260. alt
  2261. />
  2262. </div>
  2263. <div class="worksName">
  2264. <div>{{ w.sName }}</div>
  2265. </div>
  2266. </div>
  2267. </div>
  2268. </div>
  2269. <div
  2270. v-if="
  2271. tType &&
  2272. tType == 2 &&
  2273. !sIsOpen &&
  2274. tool.tool.indexOf(6) != -1
  2275. "
  2276. class="worksBox"
  2277. >
  2278. <div
  2279. class="zuoyeYulan"
  2280. v-if="workStudent[toolIndex].length > 0"
  2281. >
  2282. <span class="worksTitle">作业预览</span>
  2283. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2284. </div>
  2285. <div
  2286. class="worksDetailBox"
  2287. v-if="workStudent[toolIndex].length > 0"
  2288. >
  2289. <div
  2290. class="works"
  2291. style="
  2292. width: 200px;
  2293. height: 140px;
  2294. margin: 10px 10px 10px 0;
  2295. box-shadow: 0 0 6px 1px #dfdada;
  2296. "
  2297. v-for="(w, wIndex) in workStudent[toolIndex]"
  2298. :key="wIndex"
  2299. >
  2300. <div class="workImg">
  2301. <img
  2302. :src="w.works"
  2303. @click="previewImg(w.works)"
  2304. alt
  2305. />
  2306. <div
  2307. class="answerScore"
  2308. v-if="w.score"
  2309. @click.stop="openScore(w)"
  2310. :class="{
  2311. rightW:
  2312. w.userid == userid || tType == 1 || tType == 4,
  2313. }"
  2314. >
  2315. {{ JSON.parse(w.score).wScore }}分
  2316. </div>
  2317. <div
  2318. class="answerScore"
  2319. @click.stop="openScore(w)"
  2320. v-else-if="courseDetail.userid == userid"
  2321. :class="{
  2322. rightW:
  2323. w.userid == userid || tType == 1 || tType == 4,
  2324. }"
  2325. >
  2326. 评分
  2327. </div>
  2328. <img
  2329. class="deleteImg"
  2330. src="../../assets/deleteworks.png"
  2331. v-if="
  2332. w.userid == userid || tType == 1 || tType == 4
  2333. "
  2334. @click.stop="deleteWorks(w.wid)"
  2335. alt
  2336. />
  2337. </div>
  2338. <div class="worksName">
  2339. <div>{{ w.sName }}</div>
  2340. </div>
  2341. </div>
  2342. </div>
  2343. </div>
  2344. <div
  2345. v-if="
  2346. tType &&
  2347. tType == 2 &&
  2348. !sIsOpen &&
  2349. tool.tool.indexOf(7) != -1
  2350. "
  2351. class="worksBox"
  2352. >
  2353. <div
  2354. class="zuoyeYulan"
  2355. v-if="workStudent[toolIndex].length > 0"
  2356. >
  2357. <span class="worksTitle">作业预览</span>
  2358. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2359. </div>
  2360. <div
  2361. class="worksDetailBox"
  2362. v-if="workStudent[toolIndex].length > 0"
  2363. >
  2364. <div
  2365. class="works"
  2366. style="
  2367. width: 200px;
  2368. height: 140px;
  2369. margin: 10px 10px 10px 0;
  2370. box-shadow: 0 0 6px 1px #dfdada;
  2371. "
  2372. v-for="(w, wIndex) in workStudent[toolIndex]"
  2373. :key="wIndex"
  2374. >
  2375. <div class="workImg">
  2376. <img
  2377. :src="w.works"
  2378. @click="previewImg(w.works)"
  2379. alt
  2380. />
  2381. <div
  2382. class="answerScore"
  2383. v-if="w.score"
  2384. @click.stop="openScore(w)"
  2385. :class="{
  2386. rightW:
  2387. w.userid == userid || tType == 1 || tType == 4,
  2388. }"
  2389. >
  2390. {{ JSON.parse(w.score).wScore }}分
  2391. </div>
  2392. <div
  2393. class="answerScore"
  2394. @click.stop="openScore(w)"
  2395. v-else-if="courseDetail.userid == userid"
  2396. :class="{
  2397. rightW:
  2398. w.userid == userid || tType == 1 || tType == 4,
  2399. }"
  2400. >
  2401. 评分
  2402. </div>
  2403. <img
  2404. class="deleteImg"
  2405. src="../../assets/deleteworks.png"
  2406. v-if="
  2407. w.userid == userid || tType == 1 || tType == 4
  2408. "
  2409. @click.stop="deleteWorks(w.wid)"
  2410. alt
  2411. />
  2412. </div>
  2413. <div class="worksName">
  2414. <div>{{ w.sName }}</div>
  2415. </div>
  2416. </div>
  2417. </div>
  2418. </div>
  2419. <div
  2420. v-if="
  2421. tType &&
  2422. tType == 2 &&
  2423. !sIsOpen &&
  2424. tool.tool.indexOf(26) != -1
  2425. "
  2426. class="worksBox"
  2427. >
  2428. <div
  2429. class="zuoyeYulan"
  2430. v-if="workStudent[toolIndex].length > 0"
  2431. >
  2432. <span class="worksTitle">作业预览</span>
  2433. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2434. </div>
  2435. <div
  2436. class="worksDetailBox"
  2437. v-if="workStudent[toolIndex].length > 0"
  2438. >
  2439. <div
  2440. class="works"
  2441. style="
  2442. width: 200px;
  2443. height: 140px;
  2444. margin: 10px 10px 10px 0;
  2445. box-shadow: 0 0 6px 1px #dfdada;
  2446. "
  2447. v-for="(w, wIndex) in workStudent[toolIndex]"
  2448. :key="wIndex"
  2449. >
  2450. <div class="workImg">
  2451. <img
  2452. :src="w.works"
  2453. @click="previewImg(w.works)"
  2454. alt
  2455. />
  2456. <img
  2457. class="deleteImg"
  2458. src="../../assets/deleteworks.png"
  2459. v-if="
  2460. w.userid == userid || tType == 1 || tType == 4
  2461. "
  2462. @click.stop="deleteWorks(w.wid)"
  2463. alt
  2464. />
  2465. </div>
  2466. <div class="worksName">
  2467. <div>{{ w.sName }}</div>
  2468. </div>
  2469. </div>
  2470. </div>
  2471. </div>
  2472. <div
  2473. v-if="
  2474. tType &&
  2475. ((tType == 2 && sIsOpen == true) ||
  2476. tType == 1 ||
  2477. tType == 4) &&
  2478. tool.tool.indexOf(16) != -1
  2479. "
  2480. class="worksBox"
  2481. >
  2482. <div
  2483. class="zuoyeYulan"
  2484. v-if="
  2485. (worksStudent.length &&
  2486. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2487. "
  2488. >
  2489. <div class="worksTop">
  2490. <div>作业预览</div>
  2491. <div
  2492. class="corOpen"
  2493. @click="contract(toolIndex)"
  2494. v-if="
  2495. (isCloseList[toolIndex].isCloseBoolean) &&
  2496. isCloseList[toolIndex].isClose == 0
  2497. "
  2498. >
  2499. 折叠
  2500. </div>
  2501. <div
  2502. class="corOpen"
  2503. @click="contract(toolIndex)"
  2504. v-if="isCloseList[toolIndex].isClose == 1"
  2505. >
  2506. 展开
  2507. </div>
  2508. </div>
  2509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2510. </div>
  2511. <div
  2512. class="group_workBox"
  2513. v-for="(g, gindex) in courseGroup.group"
  2514. :key="gindex"
  2515. >
  2516. <div class="group_box">
  2517. <div class="group_title">
  2518. <el-tooltip
  2519. class="item"
  2520. effect="light"
  2521. :content="g.name"
  2522. placement="top"
  2523. >
  2524. <div class="group_name">{{ g.name }}</div>
  2525. </el-tooltip>
  2526. </div>
  2527. <div
  2528. class="group_work"
  2529. v-if="
  2530. g.works &&
  2531. g.works.length &&
  2532. g.works[toolIndex].length
  2533. "
  2534. >
  2535. <div
  2536. class="works"
  2537. style="
  2538. width: 200px;
  2539. height: 140px;
  2540. margin: 10px 10px 10px 0;
  2541. border-radius: 15px;
  2542. box-shadow: 0 0 6px 1px #dfdada;
  2543. "
  2544. v-for="(w, wIndex) in g.works[toolIndex]"
  2545. :key="wIndex"
  2546. :class="w.type == 1 ? 'isTypeOne' : ''"
  2547. >
  2548. <div class="workImg" v-if="w.type == 0">
  2549. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2550. <img
  2551. :src="w.works"
  2552. @click="previewImg(w.works)"
  2553. alt
  2554. />
  2555. <div
  2556. class="answerScore"
  2557. v-if="w.score"
  2558. @click.stop="openScore(w)"
  2559. :class="{
  2560. rightW:
  2561. w.userid == userid ||
  2562. tType == 1 ||
  2563. tType == 4 ||
  2564. w.ateacher == userid,
  2565. }"
  2566. >
  2567. {{ JSON.parse(w.score).wScore }}分
  2568. </div>
  2569. <div
  2570. class="answerScore"
  2571. @click.stop="openScore(w)"
  2572. v-else-if="courseDetail.userid == userid"
  2573. :class="{
  2574. rightW:
  2575. w.userid == userid ||
  2576. tType == 1 ||
  2577. tType == 4 ||
  2578. w.ateacher == userid,
  2579. }"
  2580. >
  2581. 评分
  2582. </div>
  2583. <img
  2584. class="deleteImg"
  2585. src="../../assets/deleteworks.png"
  2586. v-if="
  2587. w.userid == userid || tType == 1 || tType == 4
  2588. "
  2589. @click.stop="deleteWorks(w.wid)"
  2590. alt
  2591. />
  2592. </div>
  2593. <div class="workImg" v-if="w.type == 1">
  2594. <img :src="word" @click="openFile(w.works)" alt />
  2595. <!-- @click="openFile(w.works)" -->
  2596. <div
  2597. class="answerScore"
  2598. v-if="w.score"
  2599. @click.stop="openScore(w)"
  2600. :class="{
  2601. rightW:
  2602. w.userid == userid ||
  2603. tType == 1 ||
  2604. tType == 4 ||
  2605. w.ateacher == userid,
  2606. }"
  2607. >
  2608. {{ JSON.parse(w.score).wScore }}分
  2609. </div>
  2610. <div
  2611. class="answerScore"
  2612. @click.stop="openScore(w)"
  2613. v-else-if="courseDetail.userid == userid"
  2614. :class="{
  2615. rightW:
  2616. w.userid == userid ||
  2617. tType == 1 ||
  2618. tType == 4 ||
  2619. w.ateacher == userid,
  2620. }"
  2621. >
  2622. 评分
  2623. </div>
  2624. <img
  2625. class="deleteImg"
  2626. src="../../assets/deleteworks.png"
  2627. v-if="
  2628. w.userid == userid || tType == 1 || tType == 4
  2629. "
  2630. @click.stop="deleteWorks(w.wid)"
  2631. alt
  2632. />
  2633. </div>
  2634. <div class="workImg" v-if="w.type == 3">
  2635. <img
  2636. style="cursor: pointer"
  2637. :src="video"
  2638. @click="openVideo(w)"
  2639. alt
  2640. />
  2641. <!-- @click="openVideo(w.works)" -->
  2642. <div
  2643. class="answerScore"
  2644. v-if="w.score"
  2645. @click.stop="openScore(w)"
  2646. :class="{
  2647. rightW:
  2648. w.userid == userid ||
  2649. tType == 1 ||
  2650. tType == 4 ||
  2651. w.ateacher == userid,
  2652. }"
  2653. >
  2654. {{ JSON.parse(w.score).wScore }}分
  2655. </div>
  2656. <div
  2657. class="answerScore"
  2658. @click.stop="openScore(w)"
  2659. v-else-if="courseDetail.userid == userid"
  2660. :class="{
  2661. rightW:
  2662. w.userid == userid ||
  2663. tType == 1 ||
  2664. tType == 4 ||
  2665. w.ateacher == userid,
  2666. }"
  2667. >
  2668. 评分
  2669. </div>
  2670. <img
  2671. class="deleteImg"
  2672. src="../../assets/deleteworks.png"
  2673. v-if="
  2674. w.userid == userid || tType == 1 || tType == 4
  2675. "
  2676. @click.stop="deleteWorks(w.wid)"
  2677. alt
  2678. />
  2679. </div>
  2680. <div class="workImg" v-if="w.type == 12">
  2681. <img
  2682. style="cursor: pointer"
  2683. :src="word2"
  2684. @click="downloadFile(w.works)"
  2685. alt
  2686. />
  2687. <!-- @click="openVideo(w.works)" -->
  2688. <div
  2689. class="answerScore"
  2690. v-if="w.score"
  2691. @click.stop="openScore(w)"
  2692. :class="{
  2693. rightW:
  2694. w.userid == userid ||
  2695. tType == 1 ||
  2696. tType == 4 ||
  2697. w.ateacher == userid,
  2698. }"
  2699. >
  2700. {{ JSON.parse(w.score).wScore }}分
  2701. </div>
  2702. <div
  2703. class="answerScore"
  2704. @click.stop="openScore(w)"
  2705. v-else-if="courseDetail.userid == userid"
  2706. :class="{
  2707. rightW:
  2708. w.userid == userid ||
  2709. tType == 1 ||
  2710. tType == 4 ||
  2711. w.ateacher == userid,
  2712. }"
  2713. >
  2714. 评分
  2715. </div>
  2716. <img
  2717. class="deleteImg"
  2718. src="../../assets/deleteworks.png"
  2719. v-if="
  2720. w.userid == userid || tType == 1 || tType == 4
  2721. "
  2722. @click.stop="deleteWorks(w.wid)"
  2723. alt
  2724. />
  2725. </div>
  2726. <div class="comment" style="min-width: 200px">
  2727. <div class="worksName">
  2728. <div>{{ w.sName }}</div>
  2729. </div>
  2730. <div class="commentList">
  2731. <div class="commentList">
  2732. <div
  2733. class="commentImg"
  2734. @click="
  2735. isLikes(w.wid, userid, 1, null, w.isLikes)
  2736. "
  2737. >
  2738. <img
  2739. :src="w.isLikes == true ? likes : noLikes"
  2740. alt=""
  2741. />
  2742. </div>
  2743. <div>{{ w.likesCount }}</div>
  2744. </div>
  2745. <div
  2746. class="commentList"
  2747. style="margin-right: 15px"
  2748. >
  2749. <div
  2750. class="commentImg"
  2751. @click="
  2752. commentOther(
  2753. w,
  2754. toolIndex,
  2755. wIndex,
  2756. null,
  2757. g.id
  2758. )
  2759. "
  2760. >
  2761. <img
  2762. src="../../assets/icon/comment/comment.png"
  2763. alt=""
  2764. />
  2765. </div>
  2766. <div>{{ w.commentCount }}</div>
  2767. </div>
  2768. </div>
  2769. </div>
  2770. </div>
  2771. </div>
  2772. <div class="group_work" v-else>暂无提交作业</div>
  2773. </div>
  2774. </div>
  2775. <div
  2776. :id="'tool-' + toolIndex"
  2777. :style="{
  2778. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2779. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2780. }"
  2781. class="worksDetailBox"
  2782. v-if="
  2783. worksStudent.length &&
  2784. worksStudent[toolIndex].length > 0
  2785. "
  2786. >
  2787. <div
  2788. class="works"
  2789. style="
  2790. width: 200px;
  2791. height: 140px;
  2792. margin: 10px 10px 10px 0;
  2793. border-radius: 15px;
  2794. box-shadow: 0 0 6px 1px #dfdada;
  2795. "
  2796. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2797. :key="wIndex"
  2798. :class="w.type == 1 ? 'isTypeOne' : ''"
  2799. >
  2800. <div class="workImg" v-if="w.type == 0">
  2801. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2802. <img
  2803. :src="w.works"
  2804. @click="previewImg(w.works)"
  2805. alt
  2806. />
  2807. <div
  2808. class="answerScore"
  2809. v-if="w.score"
  2810. @click.stop="openScore(w)"
  2811. :class="{
  2812. rightW:
  2813. w.userid == userid ||
  2814. tType == 1 ||
  2815. tType == 4 ||
  2816. w.ateacher == userid,
  2817. }"
  2818. >
  2819. {{ JSON.parse(w.score).wScore }}分
  2820. </div>
  2821. <div
  2822. class="answerScore"
  2823. @click.stop="openScore(w)"
  2824. v-else-if="courseDetail.userid == userid"
  2825. :class="{
  2826. rightW:
  2827. w.userid == userid ||
  2828. tType == 1 ||
  2829. tType == 4 ||
  2830. w.ateacher == userid,
  2831. }"
  2832. >
  2833. 评分
  2834. </div>
  2835. <img
  2836. class="deleteImg"
  2837. src="../../assets/deleteworks.png"
  2838. v-if="
  2839. w.userid == userid || tType == 1 || tType == 4
  2840. "
  2841. @click.stop="deleteWorks(w.wid)"
  2842. alt
  2843. />
  2844. </div>
  2845. <div class="workImg" v-if="w.type == 1">
  2846. <img :src="word" @click="openFile(w.works)" alt />
  2847. <!-- @click="openFile(w.works)" -->
  2848. <div
  2849. class="answerScore"
  2850. v-if="w.score"
  2851. @click.stop="openScore(w)"
  2852. :class="{
  2853. rightW:
  2854. w.userid == userid ||
  2855. tType == 1 ||
  2856. tType == 4 ||
  2857. w.ateacher == userid,
  2858. }"
  2859. >
  2860. {{ JSON.parse(w.score).wScore }}分
  2861. </div>
  2862. <div
  2863. class="answerScore"
  2864. @click.stop="openScore(w)"
  2865. v-else-if="courseDetail.userid == userid"
  2866. :class="{
  2867. rightW:
  2868. w.userid == userid ||
  2869. tType == 1 ||
  2870. tType == 4 ||
  2871. w.ateacher == userid,
  2872. }"
  2873. >
  2874. 评分
  2875. </div>
  2876. <img
  2877. class="deleteImg"
  2878. src="../../assets/deleteworks.png"
  2879. v-if="
  2880. w.userid == userid || tType == 1 || tType == 4
  2881. "
  2882. @click.stop="deleteWorks(w.wid)"
  2883. alt
  2884. />
  2885. </div>
  2886. <div class="workImg" v-if="w.type == 3">
  2887. <img
  2888. style="cursor: pointer"
  2889. :src="video"
  2890. @click="openVideo(w)"
  2891. alt
  2892. />
  2893. <!-- @click="openVideo(w.works)" -->
  2894. <div
  2895. class="answerScore"
  2896. v-if="w.score"
  2897. @click.stop="openScore(w)"
  2898. :class="{
  2899. rightW:
  2900. w.userid == userid ||
  2901. tType == 1 ||
  2902. tType == 4 ||
  2903. w.ateacher == userid,
  2904. }"
  2905. >
  2906. {{ JSON.parse(w.score).wScore }}分
  2907. </div>
  2908. <div
  2909. class="answerScore"
  2910. @click.stop="openScore(w)"
  2911. v-else-if="courseDetail.userid == userid"
  2912. :class="{
  2913. rightW:
  2914. w.userid == userid ||
  2915. tType == 1 ||
  2916. tType == 4 ||
  2917. w.ateacher == userid,
  2918. }"
  2919. >
  2920. 评分
  2921. </div>
  2922. <img
  2923. class="deleteImg"
  2924. src="../../assets/deleteworks.png"
  2925. v-if="
  2926. w.userid == userid || tType == 1 || tType == 4
  2927. "
  2928. @click.stop="deleteWorks(w.wid)"
  2929. alt
  2930. />
  2931. </div>
  2932. <div class="workImg" v-if="w.type == 12">
  2933. <img
  2934. style="cursor: pointer"
  2935. :src="word2"
  2936. @click="downloadFile(w.works)"
  2937. alt
  2938. />
  2939. <!-- @click="openVideo(w.works)" -->
  2940. <div
  2941. class="answerScore"
  2942. v-if="w.score"
  2943. @click.stop="openScore(w)"
  2944. :class="{
  2945. rightW:
  2946. w.userid == userid ||
  2947. tType == 1 ||
  2948. tType == 4 ||
  2949. w.ateacher == userid,
  2950. }"
  2951. >
  2952. {{ JSON.parse(w.score).wScore }}分
  2953. </div>
  2954. <div
  2955. class="answerScore"
  2956. @click.stop="openScore(w)"
  2957. v-else-if="courseDetail.userid == userid"
  2958. :class="{
  2959. rightW:
  2960. w.userid == userid ||
  2961. tType == 1 ||
  2962. tType == 4 ||
  2963. w.ateacher == userid,
  2964. }"
  2965. >
  2966. 评分
  2967. </div>
  2968. <img
  2969. class="deleteImg"
  2970. src="../../assets/deleteworks.png"
  2971. v-if="
  2972. w.userid == userid || tType == 1 || tType == 4
  2973. "
  2974. @click.stop="deleteWorks(w.wid)"
  2975. alt
  2976. />
  2977. </div>
  2978. <div class="comment" style="min-width: 200px">
  2979. <div class="worksName">
  2980. <div>{{ w.sName }}</div>
  2981. </div>
  2982. <div class="commentList">
  2983. <div class="commentList">
  2984. <div
  2985. class="commentImg"
  2986. @click="
  2987. isLikes(w.wid, userid, 1, null, w.isLikes)
  2988. "
  2989. >
  2990. <img
  2991. :src="w.isLikes == true ? likes : noLikes"
  2992. alt=""
  2993. />
  2994. </div>
  2995. <div>{{ w.likesCount }}</div>
  2996. </div>
  2997. <div class="commentList" style="margin-right: 15px">
  2998. <div
  2999. class="commentImg"
  3000. @click="commentOther(w, toolIndex, wIndex)"
  3001. >
  3002. <img
  3003. src="../../assets/icon/comment/comment.png"
  3004. alt=""
  3005. />
  3006. </div>
  3007. <div>{{ w.commentCount }}</div>
  3008. </div>
  3009. </div>
  3010. </div>
  3011. </div>
  3012. </div>
  3013. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3014. 未提交
  3015. </div>
  3016. <div
  3017. class="noWorksS"
  3018. v-if="noWorksS && noWorksS[toolIndex].length"
  3019. >
  3020. <div
  3021. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3022. :key="sIndex"
  3023. class="noWorksName"
  3024. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3025. >
  3026. <el-tooltip effect="dark" :content="s.student" placement="top">
  3027. <span>{{ s.student }}</span>
  3028. </el-tooltip>
  3029. </div>
  3030. </div>
  3031. </div>
  3032. <div
  3033. v-if="
  3034. tType &&
  3035. ((tType == 2 && sIsOpen == true) ||
  3036. tType == 1 ||
  3037. tType == 4) &&
  3038. tool.tool.indexOf(70) != -1
  3039. "
  3040. class="worksBox"
  3041. >
  3042. <div
  3043. class="zuoyeYulan"
  3044. v-if="
  3045. (worksStudent.length &&
  3046. worksStudent[toolIndex].length > 0)
  3047. "
  3048. >
  3049. <div class="worksTop">
  3050. <div>作业预览</div>
  3051. <div
  3052. class="corOpen"
  3053. @click="contract(toolIndex)"
  3054. v-if="
  3055. (isCloseList[toolIndex].isCloseBoolean) &&
  3056. isCloseList[toolIndex].isClose == 0
  3057. "
  3058. >
  3059. 折叠
  3060. </div>
  3061. <div
  3062. class="corOpen"
  3063. @click="contract(toolIndex)"
  3064. v-if="isCloseList[toolIndex].isClose == 1"
  3065. >
  3066. 展开
  3067. </div>
  3068. </div>
  3069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3070. </div>
  3071. <div
  3072. :id="'tool-' + toolIndex"
  3073. :style="{
  3074. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3075. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3076. }"
  3077. class="worksDetailBox"
  3078. v-if="
  3079. worksStudent.length &&
  3080. worksStudent[toolIndex].length > 0
  3081. "
  3082. >
  3083. <div
  3084. class="works"
  3085. style="
  3086. width: 200px;
  3087. height: 140px;
  3088. margin: 10px 10px 10px 0;
  3089. border-radius: 15px;
  3090. box-shadow: 0 0 6px 1px #dfdada;
  3091. "
  3092. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3093. :key="wIndex"
  3094. :class="w.type == 1 ? 'isTypeOne' : ''"
  3095. >
  3096. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3097. <img :src="word" alt />
  3098. <img
  3099. class="deleteImg"
  3100. src="../../assets/deleteworks.png"
  3101. v-if="
  3102. w.userid == userid || tType == 1 || tType == 4
  3103. "
  3104. @click.stop="deleteWorks(w.wid)"
  3105. alt
  3106. />
  3107. </div>
  3108. <div class="comment" style="min-width: 200px">
  3109. <div class="worksName">
  3110. <div>{{ w.sName }}</div>
  3111. </div>
  3112. </div>
  3113. </div>
  3114. </div>
  3115. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3116. 未提交
  3117. </div>
  3118. <div
  3119. class="noWorksS"
  3120. v-if="noWorksS && noWorksS[toolIndex].length"
  3121. >
  3122. <div
  3123. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3124. :key="sIndex"
  3125. class="noWorksName"
  3126. >
  3127. <el-tooltip effect="dark" :content="s.student" placement="top">
  3128. <span>{{ s.student }}</span>
  3129. </el-tooltip>
  3130. </div>
  3131. </div>
  3132. </div>
  3133. <div
  3134. v-if="
  3135. tType &&
  3136. tType == 2 &&
  3137. !sIsOpen &&
  3138. tool.tool.indexOf(70) != -1
  3139. "
  3140. class="worksBox"
  3141. >
  3142. <div
  3143. class="zuoyeYulan"
  3144. v-if="workStudent[toolIndex].length > 0"
  3145. >
  3146. <span class="worksTitle">作业预览</span>
  3147. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3148. </div>
  3149. <div
  3150. class="worksDetailBox"
  3151. v-if="workStudent[toolIndex].length > 0"
  3152. >
  3153. <div
  3154. class="works"
  3155. style="
  3156. width: 200px;
  3157. height: 140px;
  3158. margin: 10px 10px 10px 0;
  3159. box-shadow: 0 0 6px 1px #dfdada;
  3160. "
  3161. v-for="(w, wIndex) in workStudent[toolIndex]"
  3162. :key="wIndex"
  3163. >
  3164. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3165. <img :src="word" alt />
  3166. <img
  3167. class="deleteImg"
  3168. src="../../assets/deleteworks.png"
  3169. v-if="
  3170. w.userid == userid || tType == 1 || tType == 4
  3171. "
  3172. @click.stop="deleteWorks(w.wid)"
  3173. alt
  3174. />
  3175. </div>
  3176. <div class="worksName">
  3177. <div>{{ w.sName }}</div>
  3178. </div>
  3179. </div>
  3180. </div>
  3181. </div>
  3182. <div
  3183. v-if="
  3184. tType &&
  3185. ((tType == 2 && sIsOpen == true) ||
  3186. tType == 1 ||
  3187. tType == 4) &&
  3188. tool.tool.indexOf(32) != -1
  3189. "
  3190. class="worksBox"
  3191. >
  3192. <div
  3193. class="zuoyeYulan"
  3194. v-if="
  3195. worksStudent.length &&
  3196. worksStudent[toolIndex].length > 0
  3197. "
  3198. >
  3199. <div class="worksTop">
  3200. <div>作业预览</div>
  3201. <div
  3202. class="corOpen"
  3203. @click="contract(toolIndex)"
  3204. v-if="
  3205. (isCloseList[toolIndex].isCloseBoolean) &&
  3206. isCloseList[toolIndex].isClose == 0
  3207. "
  3208. >
  3209. 折叠
  3210. </div>
  3211. <div
  3212. class="corOpen"
  3213. @click="contract(toolIndex)"
  3214. v-if="isCloseList[toolIndex].isClose == 1"
  3215. >
  3216. 展开
  3217. </div>
  3218. </div>
  3219. </div>
  3220. <div
  3221. :id="'tool-' + toolIndex"
  3222. :style="{
  3223. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3224. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3225. }"
  3226. class="worksDetailBox"
  3227. v-if="
  3228. worksStudent.length &&
  3229. worksStudent[toolIndex].length > 0
  3230. "
  3231. >
  3232. <div
  3233. class="works"
  3234. style="
  3235. width: 200px;
  3236. height: 140px;
  3237. margin: 10px 10px 10px 0;
  3238. border-radius: 15px;
  3239. box-shadow: 0 0 6px 1px #dfdada;
  3240. "
  3241. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3242. :key="wIndex"
  3243. :class="w.type == 1 ? 'isTypeOne' : ''"
  3244. >
  3245. <div class="workImg">
  3246. <img
  3247. :src="word2"
  3248. @click="downloadFile(w.works)"
  3249. alt
  3250. />
  3251. <div
  3252. class="answerScore"
  3253. v-if="w.score"
  3254. @click.stop="openScore(w)"
  3255. :class="{
  3256. rightW:
  3257. w.userid == userid ||
  3258. tType == 1 ||
  3259. tType == 4 ||
  3260. w.ateacher == userid,
  3261. }"
  3262. >
  3263. {{ JSON.parse(w.score).wScore }}分
  3264. </div>
  3265. <div
  3266. class="answerScore"
  3267. @click.stop="openScore(w)"
  3268. v-else-if="courseDetail.userid == userid"
  3269. :class="{
  3270. rightW:
  3271. w.userid == userid ||
  3272. tType == 1 ||
  3273. tType == 4 ||
  3274. w.ateacher == userid,
  3275. }"
  3276. >
  3277. 评分
  3278. </div>
  3279. <img
  3280. class="deleteImg"
  3281. src="../../assets/deleteworks.png"
  3282. v-if="
  3283. w.userid == userid || tType == 1 || tType == 4
  3284. "
  3285. @click.stop="deleteWorks(w.wid)"
  3286. alt
  3287. />
  3288. </div>
  3289. <div class="comment" style="min-width: 200px">
  3290. <div class="worksName">
  3291. <div>{{ w.sName }}</div>
  3292. </div>
  3293. <div class="commentList">
  3294. <div class="commentList">
  3295. <div
  3296. class="commentImg"
  3297. @click="
  3298. isLikes(w.wid, userid, 1, null, w.isLikes)
  3299. "
  3300. >
  3301. <img
  3302. :src="w.isLikes == true ? likes : noLikes"
  3303. alt=""
  3304. />
  3305. </div>
  3306. <div>{{ w.likesCount }}</div>
  3307. </div>
  3308. <div class="commentList" style="margin-right: 15px">
  3309. <div
  3310. class="commentImg"
  3311. @click="commentOther(w, toolIndex, wIndex)"
  3312. >
  3313. <img
  3314. src="../../assets/icon/comment/comment.png"
  3315. alt=""
  3316. />
  3317. </div>
  3318. <div>{{ w.commentCount }}</div>
  3319. </div>
  3320. </div>
  3321. </div>
  3322. </div>
  3323. </div>
  3324. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3325. 未提交
  3326. </div>
  3327. <div
  3328. class="noWorksS"
  3329. v-if="noWorksS && noWorksS[toolIndex].length"
  3330. >
  3331. <div
  3332. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3333. :key="sIndex"
  3334. class="noWorksName"
  3335. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3336. >
  3337. <el-tooltip effect="dark" :content="s.student" placement="top">
  3338. <span>{{ s.student }}</span>
  3339. </el-tooltip>
  3340. </div>
  3341. </div>
  3342. </div>
  3343. <div
  3344. v-if="
  3345. tType &&
  3346. ((tType == 2 && sIsOpen == true) ||
  3347. tType == 1 ||
  3348. tType == 4) &&
  3349. tool.tool.indexOf(57) != -1
  3350. "
  3351. class="worksBox"
  3352. >
  3353. <div
  3354. class="zuoyeYulan"
  3355. v-if="
  3356. worksStudent.length &&
  3357. worksStudent[toolIndex].length > 0
  3358. "
  3359. >
  3360. <div class="worksTop">
  3361. <div>作业预览</div>
  3362. <div
  3363. class="corOpen"
  3364. @click="contract(toolIndex)"
  3365. v-if="
  3366. (isCloseList[toolIndex].isCloseBoolean) &&
  3367. isCloseList[toolIndex].isClose == 0
  3368. "
  3369. >
  3370. 折叠
  3371. </div>
  3372. <div
  3373. class="corOpen"
  3374. @click="contract(toolIndex)"
  3375. v-if="isCloseList[toolIndex].isClose == 1"
  3376. >
  3377. 展开
  3378. </div>
  3379. </div>
  3380. </div>
  3381. <div
  3382. :id="'tool-' + toolIndex"
  3383. :style="{
  3384. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3385. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3386. }"
  3387. class="worksDetailBox"
  3388. v-if="
  3389. worksStudent.length &&
  3390. worksStudent[toolIndex].length > 0
  3391. "
  3392. >
  3393. <div
  3394. class="works"
  3395. style="
  3396. width: 200px;
  3397. height: 140px;
  3398. margin: 10px 10px 10px 0;
  3399. border-radius: 15px;
  3400. box-shadow: 0 0 6px 1px #dfdada;
  3401. "
  3402. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3403. :key="wIndex"
  3404. :class="w.type == 1 ? 'isTypeOne' : ''"
  3405. >
  3406. <div class="workImg">
  3407. <img
  3408. :src="word2"
  3409. @click="downloadFile(w.works)"
  3410. v-if="w.type == 12"
  3411. alt
  3412. />
  3413. <img
  3414. :src="word2"
  3415. @click="
  3416. openCocoPi(57, toolIndex, w.userid, w.sName)
  3417. "
  3418. v-else-if="w.type == 15"
  3419. alt
  3420. />
  3421. <div
  3422. class="answerScore"
  3423. v-if="w.score"
  3424. @click.stop="openScore(w)"
  3425. :class="{
  3426. rightW:
  3427. w.userid == userid ||
  3428. tType == 1 ||
  3429. tType == 4 ||
  3430. w.ateacher == userid,
  3431. }"
  3432. >
  3433. {{ JSON.parse(w.score).wScore }}分
  3434. </div>
  3435. <div
  3436. class="answerScore"
  3437. @click.stop="openScore(w)"
  3438. v-else-if="courseDetail.userid == userid"
  3439. :class="{
  3440. rightW:
  3441. w.userid == userid ||
  3442. tType == 1 ||
  3443. tType == 4 ||
  3444. w.ateacher == userid,
  3445. }"
  3446. >
  3447. 评分
  3448. </div>
  3449. <img
  3450. class="deleteImg"
  3451. src="../../assets/deleteworks.png"
  3452. v-if="
  3453. w.userid == userid || tType == 1 || tType == 4
  3454. "
  3455. @click.stop="deleteWorks(w.wid)"
  3456. alt
  3457. />
  3458. </div>
  3459. <div class="comment" style="min-width: 200px">
  3460. <div class="worksName">
  3461. <div>{{ w.sName }}</div>
  3462. </div>
  3463. <div class="commentList">
  3464. <div class="commentList">
  3465. <div
  3466. class="commentImg"
  3467. @click="
  3468. isLikes(w.wid, userid, 1, null, w.isLikes)
  3469. "
  3470. >
  3471. <img
  3472. :src="w.isLikes == true ? likes : noLikes"
  3473. alt=""
  3474. />
  3475. </div>
  3476. <div>{{ w.likesCount }}</div>
  3477. </div>
  3478. <div class="commentList" style="margin-right: 15px">
  3479. <div
  3480. class="commentImg"
  3481. @click="commentOther(w, toolIndex, wIndex)"
  3482. >
  3483. <img
  3484. src="../../assets/icon/comment/comment.png"
  3485. alt=""
  3486. />
  3487. </div>
  3488. <div>{{ w.commentCount }}</div>
  3489. </div>
  3490. </div>
  3491. </div>
  3492. </div>
  3493. </div>
  3494. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3495. 未提交
  3496. </div>
  3497. <div
  3498. class="noWorksS"
  3499. v-if="noWorksS && noWorksS[toolIndex].length"
  3500. >
  3501. <div
  3502. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3503. :key="sIndex"
  3504. class="noWorksName"
  3505. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3506. >
  3507. <el-tooltip effect="dark" :content="s.student" placement="top">
  3508. <span>{{ s.student }}</span>
  3509. </el-tooltip>
  3510. </div>
  3511. </div>
  3512. </div>
  3513. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3514. <div
  3515. class="zuoyeYulan"
  3516. v-if="
  3517. worksStudent.length &&
  3518. worksStudent[toolIndex].length > 0
  3519. "
  3520. >
  3521. <span class="worksTitle">作业预览</span>
  3522. <div
  3523. class="corOpen"
  3524. @click="contract(toolIndex)"
  3525. v-if="
  3526. (isCloseList[toolIndex].isCloseBoolean) &&
  3527. isCloseList[toolIndex].isClose == 0
  3528. "
  3529. >
  3530. 折叠
  3531. </div>
  3532. <div
  3533. class="corOpen"
  3534. @click="contract(toolIndex)"
  3535. v-if="isCloseList[toolIndex].isClose == 1"
  3536. >
  3537. 展开
  3538. </div>
  3539. </div>
  3540. <div
  3541. :id="'tool-' + toolIndex"
  3542. :style="{
  3543. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3544. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3545. }"
  3546. class="worksDetailBox"
  3547. v-if="
  3548. worksStudent.length &&
  3549. worksStudent[toolIndex].length > 0
  3550. "
  3551. >
  3552. <div
  3553. class="works"
  3554. style="
  3555. width: 200px;
  3556. height: 140px;
  3557. margin: 10px 10px 10px 0;
  3558. border-radius: 15px;
  3559. box-shadow: 0 0 6px 1px #dfdada;
  3560. "
  3561. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3562. :key="wIndex"
  3563. :class="w.type == 1 ? 'isTypeOne' : ''"
  3564. >
  3565. <div class="workImg" v-if="w.type == 0">
  3566. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3567. <img
  3568. :src="w.works"
  3569. @click="previewImg(w.works)"
  3570. alt
  3571. />
  3572. <div
  3573. class="answerScore"
  3574. v-if="w.score"
  3575. @click.stop="openScore(w)"
  3576. :class="{
  3577. rightW:
  3578. w.userid == userid ||
  3579. tType == 1 ||
  3580. tType == 4 ||
  3581. w.ateacher == userid,
  3582. }"
  3583. >
  3584. {{ JSON.parse(w.score).wScore }}分
  3585. </div>
  3586. <div
  3587. class="answerScore"
  3588. @click.stop="openScore(w)"
  3589. v-else-if="courseDetail.userid == userid"
  3590. :class="{
  3591. rightW:
  3592. w.userid == userid ||
  3593. tType == 1 ||
  3594. tType == 4 ||
  3595. w.ateacher == userid,
  3596. }"
  3597. >
  3598. 评分
  3599. </div>
  3600. <img
  3601. class="deleteImg"
  3602. src="../../assets/deleteworks.png"
  3603. v-if="
  3604. w.userid == userid || tType == 1 || tType == 4
  3605. "
  3606. @click.stop="deleteWorks(w.wid)"
  3607. alt
  3608. />
  3609. </div>
  3610. <div
  3611. class="workImg"
  3612. style="cursor: pointer"
  3613. v-if="w.type == 1"
  3614. >
  3615. <img :src="word" @click="openFile(w.works)" alt />
  3616. <!-- @click="openFile(w.works)" -->
  3617. <div
  3618. class="answerScore"
  3619. v-if="w.score"
  3620. @click.stop="openScore(w)"
  3621. :class="{
  3622. rightW:
  3623. w.userid == userid ||
  3624. tType == 1 ||
  3625. tType == 4 ||
  3626. w.ateacher == userid,
  3627. }"
  3628. >
  3629. {{ JSON.parse(w.score).wScore }}分
  3630. </div>
  3631. <div
  3632. class="answerScore"
  3633. @click.stop="openScore(w)"
  3634. v-else-if="courseDetail.userid == userid"
  3635. :class="{
  3636. rightW:
  3637. w.userid == userid ||
  3638. tType == 1 ||
  3639. tType == 4 ||
  3640. w.ateacher == userid,
  3641. }"
  3642. >
  3643. 评分
  3644. </div>
  3645. <img
  3646. class="deleteImg"
  3647. src="../../assets/deleteworks.png"
  3648. v-if="
  3649. w.userid == userid || tType == 1 || tType == 4
  3650. "
  3651. @click.stop="deleteWorks(w.wid)"
  3652. alt
  3653. />
  3654. </div>
  3655. <div class="workImg" v-if="w.type == 3">
  3656. <img
  3657. style="cursor: pointer"
  3658. :src="video"
  3659. @click="openVideo(w)"
  3660. alt
  3661. />
  3662. <!-- @click="openVideo(w.works)" -->
  3663. <div
  3664. class="answerScore"
  3665. v-if="w.score"
  3666. @click.stop="openScore(w)"
  3667. :class="{
  3668. rightW:
  3669. w.userid == userid ||
  3670. tType == 1 ||
  3671. tType == 4 ||
  3672. w.ateacher == userid,
  3673. }"
  3674. >
  3675. {{ JSON.parse(w.score).wScore }}分
  3676. </div>
  3677. <div
  3678. class="answerScore"
  3679. @click.stop="openScore(w)"
  3680. v-else-if="courseDetail.userid == userid"
  3681. :class="{
  3682. rightW:
  3683. w.userid == userid ||
  3684. tType == 1 ||
  3685. tType == 4 ||
  3686. w.ateacher == userid,
  3687. }"
  3688. >
  3689. 评分
  3690. </div>
  3691. <img
  3692. class="deleteImg"
  3693. src="../../assets/deleteworks.png"
  3694. v-if="
  3695. w.userid == userid || tType == 1 || tType == 4
  3696. "
  3697. @click.stop="deleteWorks(w.wid)"
  3698. alt
  3699. />
  3700. </div>
  3701. <div class="comment" style="min-width: 200px">
  3702. <div class="worksName">
  3703. <div
  3704. style="cursor: pointer"
  3705. @click="
  3706. openSname(w.sName, w.wid, toolIndex, w.userid)
  3707. "
  3708. >
  3709. {{ w.sName }}
  3710. </div>
  3711. </div>
  3712. <div class="commentList">
  3713. <div class="commentList">
  3714. <div
  3715. class="commentImg"
  3716. @click="
  3717. isLikes(w.wid, userid, 1, null, w.isLikes)
  3718. "
  3719. >
  3720. <img
  3721. :src="w.isLikes == true ? likes : noLikes"
  3722. alt=""
  3723. />
  3724. </div>
  3725. <div>{{ w.likesCount }}</div>
  3726. </div>
  3727. <div class="commentList" style="margin-right: 15px">
  3728. <div
  3729. class="commentImg"
  3730. @click="commentOther(w, toolIndex, wIndex)"
  3731. >
  3732. <img
  3733. src="../../assets/icon/comment/comment.png"
  3734. alt=""
  3735. />
  3736. </div>
  3737. <div>{{ w.commentCount }}</div>
  3738. </div>
  3739. </div>
  3740. </div>
  3741. </div>
  3742. </div>
  3743. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3744. 未提交
  3745. </div>
  3746. <div
  3747. class="noWorksS"
  3748. v-if="noWorksS && noWorksS[toolIndex].length"
  3749. >
  3750. <div
  3751. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3752. :key="sIndex"
  3753. class="noWorksName"
  3754. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3755. >
  3756. <el-tooltip effect="dark" :content="s.student" placement="top">
  3757. <span>{{ s.student }}</span>
  3758. </el-tooltip>
  3759. </div>
  3760. </div>
  3761. </div>
  3762. <div
  3763. v-if="
  3764. tType &&
  3765. ((tType == 2 && sIsOpen == true) ||
  3766. tType == 1 ||
  3767. tType == 4) &&
  3768. tool.tool.indexOf(4) != -1 &&
  3769. (tool.askJson[0].answer ||
  3770. tool.askJson[0].answer === 0) &&
  3771. checkJson[toolIndex].length
  3772. "
  3773. class="xuan_right_box"
  3774. >
  3775. <div
  3776. class="tool_right_box"
  3777. v-for="(item, index) in tool.askJson"
  3778. :key="index"
  3779. >
  3780. <div style="width: calc(100% - 30px);">
  3781. <el-tooltip
  3782. effect="light"
  3783. :content="index + 1 + '、' + item.askstitle"
  3784. placement="top"
  3785. popper-class="text_tooltip"
  3786. >
  3787. <div
  3788. style="
  3789. width: calc(100% - 130px);
  3790. display: block;
  3791. white-space: nowrap;
  3792. overflow: hidden;
  3793. text-overflow: ellipsis;
  3794. word-break: break-word;
  3795. cursor: pointer;
  3796. "
  3797. >
  3798. {{ index + 1 + "、" + item.askstitle }}
  3799. </div>
  3800. </el-tooltip>
  3801. </div>
  3802. <div class="right_box_xuan">
  3803. <span>正确率</span>
  3804. <span>{{
  3805. (checkJson[toolIndex][index].right
  3806. ? checkJson[toolIndex][index].right
  3807. : 0) + "%"
  3808. }}</span>
  3809. </div>
  3810. </div>
  3811. </div>
  3812. <div
  3813. class="xuan_right_box"
  3814. style="background: unset; padding: 0 10px"
  3815. v-if="
  3816. tType &&
  3817. ((tType == 2 && sIsOpen == true) ||
  3818. tType == 1 ||
  3819. tType == 4) &&
  3820. tool.tool.indexOf(4) != -1
  3821. "
  3822. >
  3823. <AskStatic
  3824. v-if="
  3825. worksStudent.length &&
  3826. worksStudent[toolIndex].length > 0
  3827. "
  3828. :askJSON="tool"
  3829. :checkJson="checkJson[toolIndex]"
  3830. ></AskStatic>
  3831. </div>
  3832. <div
  3833. v-if="
  3834. tType &&
  3835. ((tType == 2 && sIsOpen == true) ||
  3836. tType == 1 ||
  3837. tType == 4) &&
  3838. tool.tool.indexOf(4) != -1
  3839. "
  3840. class="worksBox"
  3841. >
  3842. <div
  3843. class="zuoyeYulan"
  3844. v-if="
  3845. worksStudent.length &&
  3846. worksStudent[toolIndex].length > 0
  3847. "
  3848. >
  3849. <div class="worksTop">
  3850. <div>作业预览</div>
  3851. <div
  3852. class="corOpen"
  3853. @click="contract(toolIndex)"
  3854. v-if="
  3855. (isCloseList[toolIndex].isCloseBoolean) &&
  3856. isCloseList[toolIndex].isClose == 0
  3857. "
  3858. >
  3859. 折叠
  3860. </div>
  3861. <div
  3862. class="corOpen"
  3863. @click="contract(toolIndex)"
  3864. v-if="isCloseList[toolIndex].isClose == 1"
  3865. >
  3866. 展开
  3867. </div>
  3868. </div>
  3869. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3870. </div>
  3871. <div>
  3872. <div
  3873. :id="'tool-' + toolIndex"
  3874. :style="{
  3875. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3876. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3877. }"
  3878. class="worksDetailBox"
  3879. v-if="
  3880. worksStudent.length &&
  3881. worksStudent[toolIndex].length > 0
  3882. "
  3883. >
  3884. <div
  3885. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3886. :key="wIndex"
  3887. class="isWorksName2"
  3888. @click="
  3889. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3890. "
  3891. >
  3892. {{ w.sName }}
  3893. <img
  3894. class="deleteImg deleteImg2"
  3895. src="../../assets/deleteworks.png"
  3896. v-if="
  3897. w.userid == userid || tType == 1 || tType == 4
  3898. "
  3899. @click.stop="deleteWorks(w.wid)"
  3900. alt
  3901. />
  3902. </div>
  3903. <!-- <div class="works" style="
  3904. width: 200px;
  3905. height: 140px;
  3906. border-radius: 10px;
  3907. box-shadow: 0 0 6px 1px #dfdada;
  3908. overflow: hidden;
  3909. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3910. <div class="workImg">
  3911. <img src="../../assets/icon/works/noImg.png" @click="
  3912. openTools(
  3913. 4,
  3914. toolIndex,
  3915. taskCount,
  3916. w.works,
  3917. w.sName
  3918. )
  3919. " alt />
  3920. </div>
  3921. <div class="worksName">
  3922. <div>{{ w.sName }}</div>
  3923. <div>{{ w.time }}</div>
  3924. </div>
  3925. </div> -->
  3926. </div>
  3927. </div>
  3928. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3929. 未提交
  3930. </div>
  3931. <div
  3932. class="noWorksS"
  3933. v-if="noWorksS && noWorksS[toolIndex].length"
  3934. >
  3935. <div
  3936. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3937. :key="sIndex"
  3938. class="noWorksName"
  3939. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3940. >
  3941. <el-tooltip effect="dark" :content="s.student" placement="top">
  3942. <span>{{ s.student }}</span>
  3943. </el-tooltip>
  3944. </div>
  3945. </div>
  3946. </div>
  3947. <div
  3948. v-if="
  3949. tType &&
  3950. ((tType == 2 && sIsOpen == true) ||
  3951. tType == 1 ||
  3952. tType == 4) &&
  3953. tool.tool.indexOf(45) != -1 &&
  3954. (tool.testJson.testJson[0].answer ||
  3955. tool.testJson.testJson[0].answer === 0) &&
  3956. checkJson[toolIndex].length
  3957. "
  3958. class="xuan_right_box"
  3959. >
  3960. <div
  3961. class="tool_right_box"
  3962. v-for="(item, index) in tool.testJson.testJson"
  3963. :key="index"
  3964. >
  3965. <div class="right_box_xuan" style="margin-right: 10px">
  3966. <span>正确率</span>
  3967. <span>{{
  3968. (checkJson[toolIndex][index].right
  3969. ? checkJson[toolIndex][index].right
  3970. : 0) + "%"
  3971. }}</span>
  3972. </div>
  3973. <div style="width: calc(100% - 30px);">
  3974. <el-tooltip
  3975. effect="light"
  3976. :content="index + 1 + '、' + item.teststitle"
  3977. placement="top"
  3978. popper-class="text_tooltip"
  3979. >
  3980. <div
  3981. style="
  3982. width: calc(100% - 130px);
  3983. display: block;
  3984. white-space: nowrap;
  3985. overflow: hidden;
  3986. text-overflow: ellipsis;
  3987. word-break: break-word;
  3988. cursor: pointer;
  3989. "
  3990. >
  3991. {{ index + 1 + "、" + item.teststitle }}
  3992. </div>
  3993. </el-tooltip>
  3994. </div>
  3995. </div>
  3996. </div>
  3997. <div
  3998. class="xuan_right_box"
  3999. style="background: unset; padding: 0 10px; width: 91.5%"
  4000. v-if="
  4001. tType &&
  4002. ((tType == 2 && sIsOpen == true) ||
  4003. tType == 1 ||
  4004. tType == 4) &&
  4005. tool.tool.indexOf(45) != -1
  4006. "
  4007. >
  4008. <AskStatic2
  4009. v-if="
  4010. worksStudent.length &&
  4011. worksStudent[toolIndex].length > 0
  4012. "
  4013. :askJSON="tool"
  4014. :checkJson="checkJson[toolIndex]"
  4015. ></AskStatic2>
  4016. </div>
  4017. <div
  4018. v-if="
  4019. tType &&
  4020. ((tType == 2 && sIsOpen == true) ||
  4021. tType == 1 ||
  4022. tType == 4) &&
  4023. tool.tool.indexOf(45) != -1
  4024. "
  4025. class="worksBox"
  4026. >
  4027. <div
  4028. class="zuoyeYulan"
  4029. v-if="
  4030. worksStudent.length &&
  4031. worksStudent[toolIndex].length > 0
  4032. "
  4033. >
  4034. <div class="worksTop">
  4035. <div>作业预览</div>
  4036. <div
  4037. class="corOpen"
  4038. @click="contract(toolIndex)"
  4039. v-if="
  4040. (isCloseList[toolIndex].isCloseBoolean) &&
  4041. isCloseList[toolIndex].isClose == 0
  4042. "
  4043. >
  4044. 折叠
  4045. </div>
  4046. <div
  4047. class="corOpen"
  4048. @click="contract(toolIndex)"
  4049. v-if="isCloseList[toolIndex].isClose == 1"
  4050. >
  4051. 展开
  4052. </div>
  4053. </div>
  4054. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4055. </div>
  4056. <div>
  4057. <div
  4058. :id="'tool-' + toolIndex"
  4059. :style="{
  4060. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4061. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4062. }"
  4063. class="worksDetailBox"
  4064. v-if="
  4065. worksStudent.length &&
  4066. worksStudent[toolIndex].length > 0
  4067. "
  4068. >
  4069. <div
  4070. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4071. :key="wIndex"
  4072. class="isWorksName2"
  4073. @click="
  4074. openTools(
  4075. 45,
  4076. toolIndex,
  4077. taskCount,
  4078. w.works,
  4079. w.sName
  4080. )
  4081. "
  4082. >
  4083. {{ w.sName }}
  4084. <img
  4085. class="deleteImg deleteImg2"
  4086. src="../../assets/deleteworks.png"
  4087. v-if="
  4088. w.userid == userid || tType == 1 || tType == 4
  4089. "
  4090. @click.stop="deleteWorks(w.wid)"
  4091. alt
  4092. />
  4093. </div>
  4094. </div>
  4095. </div>
  4096. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4097. 未提交
  4098. </div>
  4099. <div
  4100. class="noWorksS"
  4101. v-if="noWorksS && noWorksS[toolIndex].length"
  4102. >
  4103. <div
  4104. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4105. :key="sIndex"
  4106. class="noWorksName"
  4107. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4108. >
  4109. <el-tooltip effect="dark" :content="s.student" placement="top">
  4110. <span>{{ s.student }}</span>
  4111. </el-tooltip>
  4112. </div>
  4113. </div>
  4114. </div>
  4115. <div
  4116. v-if="
  4117. tType &&
  4118. ((tType == 2 && sIsOpen == true) ||
  4119. tType == 1 ||
  4120. tType == 4) &&
  4121. tool.tool.indexOf(69) != -1
  4122. "
  4123. class="worksBox"
  4124. >
  4125. <div
  4126. class="zuoyeYulan"
  4127. v-if="
  4128. worksStudent.length &&
  4129. worksStudent[toolIndex].length > 0
  4130. "
  4131. >
  4132. <div class="worksTop">
  4133. <div>作业预览</div>
  4134. <div
  4135. class="corOpen"
  4136. @click="contract(toolIndex)"
  4137. v-if="
  4138. (isCloseList[toolIndex].isCloseBoolean) &&
  4139. isCloseList[toolIndex].isClose == 0
  4140. "
  4141. >
  4142. 折叠
  4143. </div>
  4144. <div
  4145. class="corOpen"
  4146. @click="contract(toolIndex)"
  4147. v-if="isCloseList[toolIndex].isClose == 1"
  4148. >
  4149. 展开
  4150. </div>
  4151. </div>
  4152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4153. </div>
  4154. <div>
  4155. <div
  4156. :id="'tool-' + toolIndex"
  4157. :style="{
  4158. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4159. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4160. }"
  4161. class="worksDetailBox"
  4162. v-if="
  4163. worksStudent.length &&
  4164. worksStudent[toolIndex].length > 0
  4165. "
  4166. >
  4167. <div
  4168. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4169. :key="wIndex"
  4170. class="isWorksName2"
  4171. style="width: 160px;height: 65px;line-height: 65px;"
  4172. @click="
  4173. openTools(
  4174. 69,
  4175. toolIndex,
  4176. taskCount,
  4177. w.works,
  4178. w.sName,
  4179. w.wid
  4180. )
  4181. "
  4182. >
  4183. {{ w.sName }}
  4184. <img
  4185. class="deleteImg1"
  4186. src="../../assets/evaEnglish.png"
  4187. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4188. alt
  4189. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4190. />
  4191. <img
  4192. class="deleteImg deleteImg2"
  4193. src="../../assets/deleteworks.png"
  4194. v-if="
  4195. w.userid == userid || tType == 1 || tType == 4
  4196. "
  4197. @click.stop="deleteWorks(w.wid)"
  4198. alt
  4199. />
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4204. 未提交
  4205. </div>
  4206. <div
  4207. class="noWorksS"
  4208. v-if="noWorksS && noWorksS[toolIndex].length"
  4209. >
  4210. <div
  4211. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4212. :key="sIndex"
  4213. class="noWorksName"
  4214. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4215. >
  4216. <el-tooltip effect="dark" :content="s.student" placement="top">
  4217. <span>{{ s.student }}</span>
  4218. </el-tooltip>
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div
  4223. v-if="
  4224. tType &&
  4225. ((tType == 2 && sIsOpen == true) ||
  4226. tType == 1 ||
  4227. tType == 4) &&
  4228. tool.tool.indexOf(15) != -1
  4229. "
  4230. class="worksBox"
  4231. >
  4232. <div
  4233. class="zuoyeYulan"
  4234. v-if="
  4235. (worksStudent.length &&
  4236. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4237. "
  4238. >
  4239. <div class="worksTop">
  4240. <div>作业预览</div>
  4241. <div
  4242. class="corOpen"
  4243. @click="contract(toolIndex)"
  4244. v-if="
  4245. (isCloseList[toolIndex].isCloseBoolean) &&
  4246. isCloseList[toolIndex].isClose == 0
  4247. "
  4248. >
  4249. 折叠
  4250. </div>
  4251. <div
  4252. class="corOpen"
  4253. @click="contract(toolIndex)"
  4254. v-if="isCloseList[toolIndex].isClose == 1"
  4255. >
  4256. 展开
  4257. </div>
  4258. </div>
  4259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4260. </div>
  4261. <div
  4262. class="group_workBox"
  4263. v-for="(g, gindex) in courseGroup.group"
  4264. :key="gindex"
  4265. >
  4266. <div class="group_box">
  4267. <div class="group_title">
  4268. <el-tooltip
  4269. class="item"
  4270. effect="light"
  4271. :content="g.name"
  4272. placement="top"
  4273. >
  4274. <div class="group_name">{{ g.name }}</div>
  4275. </el-tooltip>
  4276. </div>
  4277. <div
  4278. class="group_work"
  4279. v-if="
  4280. g.works &&
  4281. g.works.length &&
  4282. g.works[toolIndex].length
  4283. "
  4284. >
  4285. <div
  4286. class="works"
  4287. v-for="(w, wIndex) in g.works[toolIndex]"
  4288. :key="wIndex"
  4289. >
  4290. <div
  4291. class="workImg"
  4292. style="
  4293. border-radius: 15px;
  4294. box-shadow: 0px 0px 5px 5px #eee;
  4295. "
  4296. >
  4297. <div
  4298. class="answerBg"
  4299. style="border-radius: 15px 15px 0 0"
  4300. @click="
  4301. commentOther(w, toolIndex, wIndex, null, g.id)
  4302. "
  4303. >
  4304. <div class="answerContent">
  4305. {{ JSON.parse(w.works)[0].answer }}
  4306. </div>
  4307. <div
  4308. class="answerScore"
  4309. v-if="w.score"
  4310. @click.stop="openScore(w)"
  4311. :class="{
  4312. rightW:
  4313. w.userid == userid ||
  4314. tType == 1 ||
  4315. tType == 4,
  4316. }"
  4317. >
  4318. {{ JSON.parse(w.score).wScore }}分
  4319. </div>
  4320. <div
  4321. class="answerScore"
  4322. @click.stop="openScore(w)"
  4323. v-else-if="courseDetail.userid == userid"
  4324. :class="{
  4325. rightW:
  4326. w.userid == userid ||
  4327. tType == 1 ||
  4328. tType == 4,
  4329. }"
  4330. >
  4331. 评分
  4332. </div>
  4333. <img
  4334. class="deleteImg"
  4335. src="../../assets/deleteworks.png"
  4336. v-if="
  4337. w.userid == userid ||
  4338. tType == 1 ||
  4339. tType == 4
  4340. "
  4341. @click.stop="deleteWorks(w.wid)"
  4342. alt
  4343. />
  4344. </div>
  4345. <div class="comment">
  4346. <div class="worksName">
  4347. <div>{{ w.sName }}</div>
  4348. </div>
  4349. <div class="commentList">
  4350. <div
  4351. class="commentImg"
  4352. @click="
  4353. isLikes(w.wid, userid, 1, null, w.isLikes)
  4354. "
  4355. >
  4356. <img
  4357. :src="w.isLikes == true ? likes : noLikes"
  4358. alt=""
  4359. />
  4360. </div>
  4361. <div>{{ w.likesCount }}</div>
  4362. </div>
  4363. <div
  4364. class="commentList"
  4365. style="margin-right: 15px"
  4366. >
  4367. <div
  4368. class="commentImg"
  4369. @click="
  4370. commentOther(
  4371. w,
  4372. toolIndex,
  4373. wIndex,
  4374. null,
  4375. g.id
  4376. )
  4377. "
  4378. >
  4379. <img
  4380. src="../../assets/icon/comment/comment.png"
  4381. alt=""
  4382. />
  4383. </div>
  4384. <div>{{ w.commentCount }}</div>
  4385. </div>
  4386. </div>
  4387. </div>
  4388. </div>
  4389. </div>
  4390. <div class="group_work" v-else>暂无提交作业</div>
  4391. </div>
  4392. </div>
  4393. <div
  4394. :id="'tool-' + toolIndex"
  4395. :style="{
  4396. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4397. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4398. }"
  4399. class="worksDetailBox"
  4400. v-if="
  4401. worksStudent.length &&
  4402. worksStudent[toolIndex].length > 0
  4403. "
  4404. >
  4405. <div
  4406. class="works"
  4407. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4408. :key="wIndex"
  4409. >
  4410. <div
  4411. class="workImg"
  4412. style="
  4413. border-radius: 15px;
  4414. box-shadow: 0px 0px 5px 5px #eee;
  4415. "
  4416. >
  4417. <!-- <img
  4418. src="../../assets/icon/works/noImg.png"
  4419. @click="openTools(15, toolIndex, taskCount, w.works)"
  4420. alt=""
  4421. />-->
  4422. <div
  4423. class="answerBg"
  4424. style="border-radius: 15px 15px 0 0"
  4425. @click="commentOther(w, toolIndex, wIndex)"
  4426. >
  4427. <!-- <div>{{ w.sName }}</div> -->
  4428. <div class="answerContent">
  4429. {{ JSON.parse(w.works)[0].answer }}
  4430. </div>
  4431. <div
  4432. class="answerScore"
  4433. v-if="w.score"
  4434. @click.stop="openScore(w)"
  4435. :class="{
  4436. rightW:
  4437. w.userid == userid ||
  4438. tType == 1 ||
  4439. tType == 4,
  4440. }"
  4441. >
  4442. {{ JSON.parse(w.score).wScore }}分
  4443. </div>
  4444. <div
  4445. class="answerScore"
  4446. @click.stop="openScore(w)"
  4447. v-else-if="courseDetail.userid == userid"
  4448. :class="{
  4449. rightW:
  4450. w.userid == userid ||
  4451. tType == 1 ||
  4452. tType == 4,
  4453. }"
  4454. >
  4455. 评分
  4456. </div>
  4457. <img
  4458. class="deleteImg"
  4459. src="../../assets/deleteworks.png"
  4460. v-if="
  4461. w.userid == userid || tType == 1 || tType == 4
  4462. "
  4463. @click.stop="deleteWorks(w.wid)"
  4464. alt
  4465. />
  4466. </div>
  4467. <div class="comment">
  4468. <div class="worksName">
  4469. <div>{{ w.sName }}</div>
  4470. </div>
  4471. <div class="commentList">
  4472. <div
  4473. class="commentImg"
  4474. @click="
  4475. isLikes(w.wid, userid, 1, null, w.isLikes)
  4476. "
  4477. >
  4478. <img
  4479. :src="w.isLikes == true ? likes : noLikes"
  4480. alt=""
  4481. />
  4482. </div>
  4483. <div>{{ w.likesCount }}</div>
  4484. </div>
  4485. <div class="commentList" style="margin-right: 15px">
  4486. <div
  4487. class="commentImg"
  4488. @click="commentOther(w, toolIndex, wIndex)"
  4489. >
  4490. <img
  4491. src="../../assets/icon/comment/comment.png"
  4492. alt=""
  4493. />
  4494. </div>
  4495. <div>{{ w.commentCount }}</div>
  4496. </div>
  4497. </div>
  4498. </div>
  4499. </div>
  4500. </div>
  4501. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4502. 未提交
  4503. </div>
  4504. <div
  4505. class="noWorksS"
  4506. v-if="noWorksS && noWorksS[toolIndex].length"
  4507. >
  4508. <div
  4509. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4510. :key="sIndex"
  4511. class="noWorksName"
  4512. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4513. >
  4514. <el-tooltip effect="dark" :content="s.student" placement="top">
  4515. <span>{{ s.student }}</span>
  4516. </el-tooltip>
  4517. </div>
  4518. </div>
  4519. </div>
  4520. <div
  4521. v-if="
  4522. tType &&
  4523. ((tType == 2 && sIsOpen == true) ||
  4524. tType == 1 ||
  4525. tType == 4) &&
  4526. tool.tool.indexOf(1) != -1
  4527. "
  4528. class="worksBox"
  4529. >
  4530. <div
  4531. class="zuoyeYulan"
  4532. v-if="
  4533. (worksStudent.length &&
  4534. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4535. "
  4536. >
  4537. <div class="worksTop">
  4538. <div>作业预览</div>
  4539. <div
  4540. class="corOpen"
  4541. @click="contract(toolIndex)"
  4542. v-if="
  4543. (isCloseList[toolIndex].isCloseBoolean) &&
  4544. isCloseList[toolIndex].isClose == 0
  4545. "
  4546. >
  4547. 折叠
  4548. </div>
  4549. <div
  4550. class="corOpen"
  4551. @click="contract(toolIndex)"
  4552. v-if="isCloseList[toolIndex].isClose == 1"
  4553. >
  4554. 展开
  4555. </div>
  4556. </div>
  4557. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4558. </div>
  4559. <div
  4560. class="group_workBox"
  4561. v-for="(g, gindex) in courseGroup.group"
  4562. :key="gindex"
  4563. >
  4564. <div class="group_box">
  4565. <div class="group_title">
  4566. <el-tooltip
  4567. class="item"
  4568. effect="light"
  4569. :content="g.name"
  4570. placement="top"
  4571. >
  4572. <div class="group_name">{{ g.name }}</div>
  4573. </el-tooltip>
  4574. </div>
  4575. <div
  4576. class="group_work"
  4577. v-if="
  4578. g.works &&
  4579. g.works.length &&
  4580. g.works[toolIndex].length
  4581. "
  4582. >
  4583. <div
  4584. class="works"
  4585. style="
  4586. width: 200px;
  4587. height: 140px;
  4588. margin: 10px 10px 10px 0;
  4589. border-radius: 15px;
  4590. box-shadow: 0 0 6px 1px #dfdada;
  4591. "
  4592. v-for="(w, wIndex) in g.works[toolIndex]"
  4593. :key="wIndex"
  4594. :class="w.type == 1 ? 'isTypeOne' : ''"
  4595. >
  4596. <div class="workImg">
  4597. <img
  4598. :src="w.works"
  4599. @click="previewImg(w.works)"
  4600. alt
  4601. />
  4602. <div
  4603. class="answerScore"
  4604. v-if="w.score"
  4605. @click.stop="openScore(w)"
  4606. :class="{
  4607. rightW:
  4608. w.userid == userid ||
  4609. tType == 1 ||
  4610. tType == 4,
  4611. }"
  4612. >
  4613. {{ JSON.parse(w.score).wScore }}分
  4614. </div>
  4615. <div
  4616. class="answerScore"
  4617. @click.stop="openScore(w)"
  4618. v-else-if="courseDetail.userid == userid"
  4619. :class="{
  4620. rightW:
  4621. w.userid == userid ||
  4622. tType == 1 ||
  4623. tType == 4,
  4624. }"
  4625. >
  4626. 评分
  4627. </div>
  4628. <img
  4629. class="deleteImg"
  4630. src="../../assets/deleteworks.png"
  4631. v-if="
  4632. w.userid == userid || tType == 1 || tType == 4
  4633. "
  4634. @click.stop="deleteWorks(w.wid)"
  4635. alt
  4636. />
  4637. </div>
  4638. <div class="comment" style="min-width: 200px">
  4639. <div class="worksName">
  4640. <div>{{ w.sName }}</div>
  4641. </div>
  4642. <div class="commentList">
  4643. <div class="commentList">
  4644. <div
  4645. class="commentImg"
  4646. @click="
  4647. isLikes(w.wid, userid, 1, null, w.isLikes)
  4648. "
  4649. >
  4650. <img
  4651. :src="w.isLikes == true ? likes : noLikes"
  4652. alt=""
  4653. />
  4654. </div>
  4655. <div>{{ w.likesCount }}</div>
  4656. </div>
  4657. <div
  4658. class="commentList"
  4659. style="margin-right: 15px"
  4660. >
  4661. <div
  4662. class="commentImg"
  4663. @click="
  4664. commentOther(
  4665. w,
  4666. toolIndex,
  4667. wIndex,
  4668. null,
  4669. g.id
  4670. )
  4671. "
  4672. >
  4673. <img
  4674. src="../../assets/icon/comment/comment.png"
  4675. alt=""
  4676. />
  4677. </div>
  4678. <div>{{ w.commentCount }}</div>
  4679. </div>
  4680. </div>
  4681. </div>
  4682. </div>
  4683. </div>
  4684. <div class="group_work" v-else>暂无提交作业</div>
  4685. </div>
  4686. </div>
  4687. <div
  4688. :id="'tool-' + toolIndex"
  4689. :style="{
  4690. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4691. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4692. }"
  4693. class="worksDetailBox"
  4694. v-if="
  4695. worksStudent.length &&
  4696. worksStudent[toolIndex].length > 0
  4697. "
  4698. >
  4699. <div
  4700. class="works"
  4701. style="
  4702. width: 200px;
  4703. height: 140px;
  4704. margin: 10px 10px 10px 0;
  4705. border-radius: 15px;
  4706. box-shadow: 0 0 6px 1px #dfdada;
  4707. "
  4708. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4709. :key="wIndex"
  4710. >
  4711. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4712. <div class="workImg">
  4713. <img
  4714. :src="w.works"
  4715. @click="previewImg(w.works)"
  4716. alt
  4717. />
  4718. <div
  4719. class="answerScore"
  4720. v-if="w.score"
  4721. @click.stop="openScore(w)"
  4722. :class="{
  4723. rightW:
  4724. w.userid == userid || tType == 1 || tType == 4,
  4725. }"
  4726. >
  4727. {{ JSON.parse(w.score).wScore }}分
  4728. </div>
  4729. <div
  4730. class="answerScore"
  4731. @click.stop="openScore(w)"
  4732. v-else-if="courseDetail.userid == userid"
  4733. :class="{
  4734. rightW:
  4735. w.userid == userid || tType == 1 || tType == 4,
  4736. }"
  4737. >
  4738. 评分
  4739. </div>
  4740. <img
  4741. class="deleteImg"
  4742. src="../../assets/deleteworks.png"
  4743. v-if="
  4744. w.userid == userid || tType == 1 || tType == 4
  4745. "
  4746. @click.stop="deleteWorks(w.wid)"
  4747. alt
  4748. />
  4749. </div>
  4750. <div class="comment" style="min-width: 200px">
  4751. <div class="worksName">
  4752. <div>{{ w.sName }}</div>
  4753. </div>
  4754. <div class="commentList">
  4755. <div class="commentList">
  4756. <div
  4757. class="commentImg"
  4758. @click="
  4759. isLikes(w.wid, userid, 1, null, w.isLikes)
  4760. "
  4761. >
  4762. <img
  4763. :src="w.isLikes == true ? likes : noLikes"
  4764. alt=""
  4765. />
  4766. </div>
  4767. <div>{{ w.likesCount }}</div>
  4768. </div>
  4769. <div class="commentList" style="margin-right: 15px">
  4770. <div
  4771. class="commentImg"
  4772. @click="commentOther(w, toolIndex, wIndex)"
  4773. >
  4774. <img
  4775. src="../../assets/icon/comment/comment.png"
  4776. alt=""
  4777. />
  4778. </div>
  4779. <div>{{ w.commentCount }}</div>
  4780. </div>
  4781. </div>
  4782. </div>
  4783. </div>
  4784. </div>
  4785. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4786. 未提交
  4787. </div>
  4788. <div
  4789. class="noWorksS"
  4790. v-if="noWorksS && noWorksS[toolIndex].length"
  4791. >
  4792. <div
  4793. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4794. :key="sIndex"
  4795. class="noWorksName"
  4796. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4797. >
  4798. <el-tooltip effect="dark" :content="s.student" placement="top">
  4799. <span>{{ s.student }}</span>
  4800. </el-tooltip>
  4801. </div>
  4802. </div>
  4803. </div>
  4804. <div
  4805. v-if="
  4806. tType &&
  4807. ((tType == 2 && sIsOpen == true) ||
  4808. tType == 1 ||
  4809. tType == 4) &&
  4810. tool.tool.indexOf(3) != -1
  4811. "
  4812. class="worksBox"
  4813. >
  4814. <div
  4815. class="zuoyeYulan"
  4816. v-if="
  4817. (worksStudent.length &&
  4818. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4819. "
  4820. >
  4821. <div class="worksTop">
  4822. <div>作业预览</div>
  4823. <div
  4824. class="corOpen"
  4825. @click="contract(toolIndex)"
  4826. v-if="
  4827. (isCloseList[toolIndex].isCloseBoolean) &&
  4828. isCloseList[toolIndex].isClose == 0
  4829. "
  4830. >
  4831. 折叠
  4832. </div>
  4833. <div
  4834. class="corOpen"
  4835. @click="contract(toolIndex)"
  4836. v-if="isCloseList[toolIndex].isClose == 1"
  4837. >
  4838. 展开
  4839. </div>
  4840. </div>
  4841. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4842. </div>
  4843. <div
  4844. class="group_workBox"
  4845. v-for="(g, gindex) in courseGroup.group"
  4846. :key="gindex"
  4847. >
  4848. <div class="group_box">
  4849. <div class="group_title">
  4850. <el-tooltip
  4851. class="item"
  4852. effect="light"
  4853. :content="g.name"
  4854. placement="top"
  4855. >
  4856. <div class="group_name">{{ g.name }}</div>
  4857. </el-tooltip>
  4858. </div>
  4859. <div
  4860. class="group_work"
  4861. v-if="
  4862. g.works &&
  4863. g.works.length &&
  4864. g.works[toolIndex].length
  4865. "
  4866. >
  4867. <div
  4868. class="works"
  4869. style="
  4870. width: 200px;
  4871. height: 140px;
  4872. margin: 10px 10px 10px 0;
  4873. border-radius: 15px;
  4874. box-shadow: 0 0 6px 1px #dfdada;
  4875. "
  4876. v-for="(w, wIndex) in g.works[toolIndex]"
  4877. :key="wIndex"
  4878. :class="w.type == 1 ? 'isTypeOne' : ''"
  4879. >
  4880. <div class="workImg">
  4881. <img
  4882. :src="w.works"
  4883. @click="previewImg(w.works)"
  4884. alt
  4885. />
  4886. <div
  4887. class="answerScore"
  4888. v-if="w.score"
  4889. @click.stop="openScore(w)"
  4890. :class="{
  4891. rightW:
  4892. w.userid == userid ||
  4893. tType == 1 ||
  4894. tType == 4,
  4895. }"
  4896. >
  4897. {{ JSON.parse(w.score).wScore }}分
  4898. </div>
  4899. <div
  4900. class="answerScore"
  4901. @click.stop="openScore(w)"
  4902. v-else-if="courseDetail.userid == userid"
  4903. :class="{
  4904. rightW:
  4905. w.userid == userid ||
  4906. tType == 1 ||
  4907. tType == 4,
  4908. }"
  4909. >
  4910. 评分
  4911. </div>
  4912. <img
  4913. class="deleteImg"
  4914. src="../../assets/deleteworks.png"
  4915. v-if="
  4916. w.userid == userid || tType == 1 || tType == 4
  4917. "
  4918. @click.stop="deleteWorks(w.wid)"
  4919. alt
  4920. />
  4921. </div>
  4922. <div class="comment" style="min-width: 200px">
  4923. <div class="worksName">
  4924. <div>{{ w.sName }}</div>
  4925. </div>
  4926. <div class="commentList">
  4927. <div class="commentList">
  4928. <div
  4929. class="commentImg"
  4930. @click="
  4931. isLikes(w.wid, userid, 1, null, w.isLikes)
  4932. "
  4933. >
  4934. <img
  4935. :src="w.isLikes == true ? likes : noLikes"
  4936. alt=""
  4937. />
  4938. </div>
  4939. <div>{{ w.likesCount }}</div>
  4940. </div>
  4941. <div
  4942. class="commentList"
  4943. style="margin-right: 15px"
  4944. >
  4945. <div
  4946. class="commentImg"
  4947. @click="
  4948. commentOther(
  4949. w,
  4950. toolIndex,
  4951. wIndex,
  4952. null,
  4953. g.id
  4954. )
  4955. "
  4956. >
  4957. <img
  4958. src="../../assets/icon/comment/comment.png"
  4959. alt=""
  4960. />
  4961. </div>
  4962. <div>{{ w.commentCount }}</div>
  4963. </div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. <div class="group_work" v-else>暂无提交作业</div>
  4969. </div>
  4970. </div>
  4971. <div
  4972. :id="'tool-' + toolIndex"
  4973. :style="{
  4974. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4975. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4976. }"
  4977. class="worksDetailBox"
  4978. v-if="
  4979. worksStudent.length &&
  4980. worksStudent[toolIndex].length > 0
  4981. "
  4982. >
  4983. <div
  4984. class="works"
  4985. style="
  4986. width: 200px;
  4987. height: 140px;
  4988. margin: 10px 10px 10px 0;
  4989. border-radius: 15px;
  4990. box-shadow: 0 0 6px 1px #dfdada;
  4991. "
  4992. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4993. :key="wIndex"
  4994. >
  4995. <!-- @click="previewImg(w.works)" -->
  4996. <div class="workImg">
  4997. <img
  4998. :src="w.works"
  4999. @click="previewImg(w.works)"
  5000. alt
  5001. />
  5002. <div
  5003. class="answerScore"
  5004. v-if="w.score"
  5005. @click.stop="openScore(w)"
  5006. :class="{
  5007. rightW:
  5008. w.userid == userid || tType == 1 || tType == 4,
  5009. }"
  5010. >
  5011. {{ JSON.parse(w.score).wScore }}分
  5012. </div>
  5013. <div
  5014. class="answerScore"
  5015. @click.stop="openScore(w)"
  5016. v-else-if="courseDetail.userid == userid"
  5017. :class="{
  5018. rightW:
  5019. w.userid == userid || tType == 1 || tType == 4,
  5020. }"
  5021. >
  5022. 评分
  5023. </div>
  5024. <img
  5025. class="deleteImg"
  5026. src="../../assets/deleteworks.png"
  5027. v-if="
  5028. w.userid == userid || tType == 1 || tType == 4
  5029. "
  5030. @click.stop="deleteWorks(w.wid)"
  5031. alt
  5032. />
  5033. </div>
  5034. <div class="comment" style="min-width: 200px">
  5035. <div class="worksName">
  5036. <div>{{ w.sName }}</div>
  5037. </div>
  5038. <div class="commentList">
  5039. <div class="commentList">
  5040. <div
  5041. class="commentImg"
  5042. @click="
  5043. isLikes(w.wid, userid, 1, null, w.isLikes)
  5044. "
  5045. >
  5046. <img
  5047. :src="w.isLikes == true ? likes : noLikes"
  5048. alt=""
  5049. />
  5050. </div>
  5051. <div>{{ w.likesCount }}</div>
  5052. </div>
  5053. <div class="commentList" style="margin-right: 15px">
  5054. <div
  5055. class="commentImg"
  5056. @click="commentOther(w, toolIndex, wIndex)"
  5057. >
  5058. <img
  5059. src="../../assets/icon/comment/comment.png"
  5060. alt=""
  5061. />
  5062. </div>
  5063. <div>{{ w.commentCount }}</div>
  5064. </div>
  5065. </div>
  5066. </div>
  5067. </div>
  5068. </div>
  5069. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5070. 未提交
  5071. </div>
  5072. <div
  5073. class="noWorksS"
  5074. v-if="noWorksS && noWorksS[toolIndex].length"
  5075. >
  5076. <div
  5077. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5078. :key="sIndex"
  5079. class="noWorksName"
  5080. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5081. >
  5082. <el-tooltip effect="dark" :content="s.student" placement="top">
  5083. <span>{{ s.student }}</span>
  5084. </el-tooltip>
  5085. </div>
  5086. </div>
  5087. </div>
  5088. <div
  5089. v-if="
  5090. tType &&
  5091. ((tType == 2 && sIsOpen == true) ||
  5092. tType == 1 ||
  5093. tType == 4) &&
  5094. tool.tool.indexOf(6) != -1
  5095. "
  5096. class="worksBox"
  5097. >
  5098. <div
  5099. class="zuoyeYulan"
  5100. v-if="
  5101. (worksStudent.length &&
  5102. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5103. "
  5104. >
  5105. <div class="worksTop">
  5106. <div>作业预览</div>
  5107. <div
  5108. class="corOpen"
  5109. @click="contract(toolIndex)"
  5110. v-if="
  5111. (isCloseList[toolIndex].isCloseBoolean) &&
  5112. isCloseList[toolIndex].isClose == 0
  5113. "
  5114. >
  5115. 折叠
  5116. </div>
  5117. <div
  5118. class="corOpen"
  5119. @click="contract(toolIndex)"
  5120. v-if="isCloseList[toolIndex].isClose == 1"
  5121. >
  5122. 展开
  5123. </div>
  5124. </div>
  5125. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5126. </div>
  5127. <div
  5128. class="group_workBox"
  5129. v-for="(g, gindex) in courseGroup.group"
  5130. :key="gindex"
  5131. >
  5132. <div class="group_box">
  5133. <div class="group_title">
  5134. <el-tooltip
  5135. class="item"
  5136. effect="light"
  5137. :content="g.name"
  5138. placement="top"
  5139. >
  5140. <div class="group_name">{{ g.name }}</div>
  5141. </el-tooltip>
  5142. </div>
  5143. <div
  5144. class="group_work"
  5145. v-if="
  5146. g.works &&
  5147. g.works.length &&
  5148. g.works[toolIndex].length
  5149. "
  5150. >
  5151. <div
  5152. class="works"
  5153. style="
  5154. width: 200px;
  5155. height: 140px;
  5156. margin: 10px 10px 10px 0;
  5157. border-radius: 15px;
  5158. box-shadow: 0 0 6px 1px #dfdada;
  5159. "
  5160. v-for="(w, wIndex) in g.works[toolIndex]"
  5161. :key="wIndex"
  5162. :class="w.type == 1 ? 'isTypeOne' : ''"
  5163. >
  5164. <div class="workImg">
  5165. <img
  5166. :src="w.works"
  5167. @click="previewImg(w.works)"
  5168. alt
  5169. />
  5170. <div
  5171. class="answerScore"
  5172. v-if="w.score"
  5173. @click.stop="openScore(w)"
  5174. :class="{
  5175. rightW:
  5176. w.userid == userid ||
  5177. tType == 1 ||
  5178. tType == 4,
  5179. }"
  5180. >
  5181. {{ JSON.parse(w.score).wScore }}分
  5182. </div>
  5183. <div
  5184. class="answerScore"
  5185. @click.stop="openScore(w)"
  5186. v-else-if="courseDetail.userid == userid"
  5187. :class="{
  5188. rightW:
  5189. w.userid == userid ||
  5190. tType == 1 ||
  5191. tType == 4,
  5192. }"
  5193. >
  5194. 评分
  5195. </div>
  5196. <img
  5197. class="deleteImg"
  5198. src="../../assets/deleteworks.png"
  5199. v-if="
  5200. w.userid == userid || tType == 1 || tType == 4
  5201. "
  5202. @click.stop="deleteWorks(w.wid)"
  5203. alt
  5204. />
  5205. </div>
  5206. <div class="comment" style="min-width: 200px">
  5207. <div class="worksName">
  5208. <div>{{ w.sName }}</div>
  5209. </div>
  5210. <div class="commentList">
  5211. <div class="commentList">
  5212. <div
  5213. class="commentImg"
  5214. @click="
  5215. isLikes(w.wid, userid, 1, null, w.isLikes)
  5216. "
  5217. >
  5218. <img
  5219. :src="w.isLikes == true ? likes : noLikes"
  5220. alt=""
  5221. />
  5222. </div>
  5223. <div>{{ w.likesCount }}</div>
  5224. </div>
  5225. <div
  5226. class="commentList"
  5227. style="margin-right: 15px"
  5228. >
  5229. <div
  5230. class="commentImg"
  5231. @click="
  5232. commentOther(
  5233. w,
  5234. toolIndex,
  5235. wIndex,
  5236. null,
  5237. g.id
  5238. )
  5239. "
  5240. >
  5241. <img
  5242. src="../../assets/icon/comment/comment.png"
  5243. alt=""
  5244. />
  5245. </div>
  5246. <div>{{ w.commentCount }}</div>
  5247. </div>
  5248. </div>
  5249. </div>
  5250. </div>
  5251. </div>
  5252. <div class="group_work" v-else>暂无提交作业</div>
  5253. </div>
  5254. </div>
  5255. <div
  5256. :id="'tool-' + toolIndex"
  5257. :style="{
  5258. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5259. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5260. }"
  5261. class="worksDetailBox"
  5262. v-if="
  5263. worksStudent.length &&
  5264. worksStudent[toolIndex].length > 0
  5265. "
  5266. >
  5267. <div
  5268. class="works"
  5269. style="
  5270. width: 200px;
  5271. height: 140px;
  5272. margin: 10px 10px 10px 0;
  5273. border-radius: 15px;
  5274. box-shadow: 0 0 6px 1px #dfdada;
  5275. "
  5276. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5277. :key="wIndex"
  5278. >
  5279. <!-- @click="previewImg(w.works)" -->
  5280. <div class="workImg">
  5281. <img
  5282. :src="w.works"
  5283. @click="previewImg(w.works)"
  5284. alt
  5285. />
  5286. <div
  5287. class="answerScore"
  5288. v-if="w.score"
  5289. @click.stop="openScore(w)"
  5290. :class="{
  5291. rightW:
  5292. w.userid == userid || tType == 1 || tType == 4,
  5293. }"
  5294. >
  5295. {{ JSON.parse(w.score).wScore }}分
  5296. </div>
  5297. <div
  5298. class="answerScore"
  5299. @click.stop="openScore(w)"
  5300. v-else-if="courseDetail.userid == userid"
  5301. :class="{
  5302. rightW:
  5303. w.userid == userid || tType == 1 || tType == 4,
  5304. }"
  5305. >
  5306. 评分
  5307. </div>
  5308. <img
  5309. class="deleteImg"
  5310. src="../../assets/deleteworks.png"
  5311. v-if="
  5312. w.userid == userid || tType == 1 || tType == 4
  5313. "
  5314. @click.stop="deleteWorks(w.wid)"
  5315. alt
  5316. />
  5317. </div>
  5318. <div class="comment" style="min-width: 200px">
  5319. <div class="worksName">
  5320. <div>{{ w.sName }}</div>
  5321. </div>
  5322. <div class="commentList">
  5323. <div class="commentList">
  5324. <div
  5325. class="commentImg"
  5326. @click="
  5327. isLikes(w.wid, userid, 1, null, w.isLikes)
  5328. "
  5329. >
  5330. <img
  5331. :src="w.isLikes == true ? likes : noLikes"
  5332. alt=""
  5333. />
  5334. </div>
  5335. <div>{{ w.likesCount }}</div>
  5336. </div>
  5337. <div class="commentList" style="margin-right: 15px">
  5338. <div
  5339. class="commentImg"
  5340. @click="commentOther(w, toolIndex, wIndex)"
  5341. >
  5342. <img
  5343. src="../../assets/icon/comment/comment.png"
  5344. alt=""
  5345. />
  5346. </div>
  5347. <div>{{ w.commentCount }}</div>
  5348. </div>
  5349. </div>
  5350. </div>
  5351. </div>
  5352. </div>
  5353. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5354. 未提交
  5355. </div>
  5356. <div
  5357. class="noWorksS"
  5358. v-if="noWorksS && noWorksS[toolIndex].length"
  5359. >
  5360. <div
  5361. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5362. :key="sIndex"
  5363. class="noWorksName"
  5364. >
  5365. <el-tooltip effect="dark" :content="s.student" placement="top">
  5366. <span>{{ s.student }}</span>
  5367. </el-tooltip>
  5368. </div>
  5369. </div>
  5370. </div>
  5371. <div
  5372. v-if="
  5373. tType &&
  5374. ((tType == 2 && sIsOpen == true) ||
  5375. tType == 1 ||
  5376. tType == 4) &&
  5377. tool.tool.indexOf(7) != -1
  5378. "
  5379. class="worksBox"
  5380. >
  5381. <div
  5382. class="zuoyeYulan"
  5383. v-if="
  5384. (worksStudent.length &&
  5385. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5386. "
  5387. >
  5388. <div class="worksTop">
  5389. <div>作业预览</div>
  5390. <div
  5391. class="corOpen"
  5392. @click="contract(toolIndex)"
  5393. v-if="
  5394. (isCloseList[toolIndex].isCloseBoolean) &&
  5395. isCloseList[toolIndex].isClose == 0
  5396. "
  5397. >
  5398. 折叠
  5399. </div>
  5400. <div
  5401. class="corOpen"
  5402. @click="contract(toolIndex)"
  5403. v-if="isCloseList[toolIndex].isClose == 1"
  5404. >
  5405. 展开
  5406. </div>
  5407. </div>
  5408. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5409. </div>
  5410. <div
  5411. class="group_workBox"
  5412. v-for="(g, gindex) in courseGroup.group"
  5413. :key="gindex"
  5414. >
  5415. <div class="group_box">
  5416. <div class="group_title">
  5417. <el-tooltip
  5418. class="item"
  5419. effect="light"
  5420. :content="g.name"
  5421. placement="top"
  5422. >
  5423. <div class="group_name">{{ g.name }}</div>
  5424. </el-tooltip>
  5425. </div>
  5426. <div
  5427. class="group_work"
  5428. v-if="
  5429. g.works &&
  5430. g.works.length &&
  5431. g.works[toolIndex].length
  5432. "
  5433. >
  5434. <div
  5435. class="works"
  5436. style="
  5437. width: 200px;
  5438. height: 140px;
  5439. margin: 10px 10px 10px 0;
  5440. border-radius: 15px;
  5441. box-shadow: 0 0 6px 1px #dfdada;
  5442. "
  5443. v-for="(w, wIndex) in g.works[toolIndex]"
  5444. :key="wIndex"
  5445. :class="w.type == 1 ? 'isTypeOne' : ''"
  5446. >
  5447. <div class="workImg">
  5448. <img
  5449. :src="w.works"
  5450. @click="previewImg(w.works)"
  5451. alt
  5452. />
  5453. <div
  5454. class="answerScore"
  5455. v-if="w.score"
  5456. @click.stop="openScore(w)"
  5457. :class="{
  5458. rightW:
  5459. w.userid == userid ||
  5460. tType == 1 ||
  5461. tType == 4,
  5462. }"
  5463. >
  5464. {{ JSON.parse(w.score).wScore }}分
  5465. </div>
  5466. <div
  5467. class="answerScore"
  5468. @click.stop="openScore(w)"
  5469. v-else-if="courseDetail.userid == userid"
  5470. :class="{
  5471. rightW:
  5472. w.userid == userid ||
  5473. tType == 1 ||
  5474. tType == 4,
  5475. }"
  5476. >
  5477. 评分
  5478. </div>
  5479. <img
  5480. class="deleteImg"
  5481. src="../../assets/deleteworks.png"
  5482. v-if="
  5483. w.userid == userid || tType == 1 || tType == 4
  5484. "
  5485. @click.stop="deleteWorks(w.wid)"
  5486. alt
  5487. />
  5488. </div>
  5489. <div class="comment" style="min-width: 200px">
  5490. <div class="worksName">
  5491. <div>{{ w.sName }}</div>
  5492. </div>
  5493. <div class="commentList">
  5494. <div class="commentList">
  5495. <div
  5496. class="commentImg"
  5497. @click="
  5498. isLikes(w.wid, userid, 1, null, w.isLikes)
  5499. "
  5500. >
  5501. <img
  5502. :src="w.isLikes == true ? likes : noLikes"
  5503. alt=""
  5504. />
  5505. </div>
  5506. <div>{{ w.likesCount }}</div>
  5507. </div>
  5508. <div
  5509. class="commentList"
  5510. style="margin-right: 15px"
  5511. >
  5512. <div
  5513. class="commentImg"
  5514. @click="
  5515. commentOther(
  5516. w,
  5517. toolIndex,
  5518. wIndex,
  5519. null,
  5520. g.id
  5521. )
  5522. "
  5523. >
  5524. <img
  5525. src="../../assets/icon/comment/comment.png"
  5526. alt=""
  5527. />
  5528. </div>
  5529. <div>{{ w.commentCount }}</div>
  5530. </div>
  5531. </div>
  5532. </div>
  5533. </div>
  5534. </div>
  5535. <div class="group_work" v-else>暂无提交作业</div>
  5536. </div>
  5537. </div>
  5538. <div
  5539. :id="'tool-' + toolIndex"
  5540. :style="{
  5541. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5542. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5543. }"
  5544. class="worksDetailBox"
  5545. v-if="
  5546. worksStudent.length &&
  5547. worksStudent[toolIndex].length > 0
  5548. "
  5549. >
  5550. <div
  5551. class="works"
  5552. style="
  5553. width: 200px;
  5554. height: 140px;
  5555. margin: 10px 10px 10px 0;
  5556. border-radius: 15px;
  5557. box-shadow: 0 0 6px 1px #dfdada;
  5558. "
  5559. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5560. :key="wIndex"
  5561. >
  5562. <!-- @click="previewImg(w.works)" -->
  5563. <div class="workImg">
  5564. <img
  5565. :src="w.works"
  5566. @click="previewImg(w.works)"
  5567. alt
  5568. />
  5569. <div
  5570. class="answerScore"
  5571. v-if="w.score"
  5572. @click.stop="openScore(w)"
  5573. :class="{
  5574. rightW:
  5575. w.userid == userid || tType == 1 || tType == 4,
  5576. }"
  5577. >
  5578. {{ JSON.parse(w.score).wScore }}分
  5579. </div>
  5580. <div
  5581. class="answerScore"
  5582. @click.stop="openScore(w)"
  5583. v-else-if="courseDetail.userid == userid"
  5584. :class="{
  5585. rightW:
  5586. w.userid == userid || tType == 1 || tType == 4,
  5587. }"
  5588. >
  5589. 评分
  5590. </div>
  5591. <img
  5592. class="deleteImg"
  5593. src="../../assets/deleteworks.png"
  5594. v-if="
  5595. w.userid == userid || tType == 1 || tType == 4
  5596. "
  5597. @click.stop="deleteWorks(w.wid)"
  5598. alt
  5599. />
  5600. </div>
  5601. <div class="comment" style="min-width: 200px">
  5602. <div class="worksName">
  5603. <div>{{ w.sName }}</div>
  5604. </div>
  5605. <div class="commentList">
  5606. <div class="commentList">
  5607. <div
  5608. class="commentImg"
  5609. @click="
  5610. isLikes(w.wid, userid, 1, null, w.isLikes)
  5611. "
  5612. >
  5613. <img
  5614. :src="w.isLikes == true ? likes : noLikes"
  5615. alt=""
  5616. />
  5617. </div>
  5618. <div>{{ w.likesCount }}</div>
  5619. </div>
  5620. <div class="commentList" style="margin-right: 15px">
  5621. <div
  5622. class="commentImg"
  5623. @click="commentOther(w, toolIndex, wIndex)"
  5624. >
  5625. <img
  5626. src="../../assets/icon/comment/comment.png"
  5627. alt=""
  5628. />
  5629. </div>
  5630. <div>{{ w.commentCount }}</div>
  5631. </div>
  5632. </div>
  5633. </div>
  5634. </div>
  5635. </div>
  5636. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5637. 未提交
  5638. </div>
  5639. <div
  5640. class="noWorksS"
  5641. v-if="noWorksS && noWorksS[toolIndex].length"
  5642. >
  5643. <div
  5644. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5645. :key="sIndex"
  5646. class="noWorksName"
  5647. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5648. >
  5649. <el-tooltip effect="dark" :content="s.student" placement="top">
  5650. <span>{{ s.student }}</span>
  5651. </el-tooltip>
  5652. </div>
  5653. </div>
  5654. </div>
  5655. <div
  5656. v-if="
  5657. tType &&
  5658. ((tType == 2 && sIsOpen == true) ||
  5659. tType == 1 ||
  5660. tType == 4) &&
  5661. tool.tool.indexOf(26) != -1
  5662. "
  5663. class="worksBox"
  5664. >
  5665. <div
  5666. class="zuoyeYulan"
  5667. v-if="
  5668. worksStudent.length &&
  5669. worksStudent[toolIndex].length > 0
  5670. "
  5671. >
  5672. <div class="worksTop">
  5673. <div>作业预览</div>
  5674. <div
  5675. class="corOpen"
  5676. @click="contract(toolIndex)"
  5677. v-if="
  5678. (isCloseList[toolIndex].isCloseBoolean) &&
  5679. isCloseList[toolIndex].isClose == 0
  5680. "
  5681. >
  5682. 折叠
  5683. </div>
  5684. <div
  5685. class="corOpen"
  5686. @click="contract(toolIndex)"
  5687. v-if="isCloseList[toolIndex].isClose == 1"
  5688. >
  5689. 展开
  5690. </div>
  5691. </div>
  5692. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5693. </div>
  5694. <div
  5695. :id="'tool-' + toolIndex"
  5696. :style="{
  5697. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5698. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5699. }"
  5700. class="worksDetailBox"
  5701. v-if="
  5702. worksStudent.length &&
  5703. worksStudent[toolIndex].length > 0
  5704. "
  5705. >
  5706. <div
  5707. class="works"
  5708. style="width: 240px; height: 140px; overflow: hidden"
  5709. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5710. :key="wIndex"
  5711. :class="w.type == 1 ? 'isTypeOne' : ''"
  5712. >
  5713. <div class="workImg" v-if="w.type == 0">
  5714. <img
  5715. :src="w.works"
  5716. @click="previewImg(w.works)"
  5717. alt
  5718. />
  5719. <img
  5720. class="deleteImg"
  5721. src="../../assets/deleteworks.png"
  5722. v-if="
  5723. w.userid == userid || tType == 1 || tType == 4
  5724. "
  5725. @click.stop="deleteWorks(w.wid)"
  5726. alt
  5727. />
  5728. </div>
  5729. <div class="workImg" v-if="w.type == 1">
  5730. <img :src="word" @click="openFile(w.works)" alt />
  5731. <img
  5732. class="deleteImg"
  5733. src="../../assets/deleteworks.png"
  5734. v-if="
  5735. w.userid == userid || tType == 1 || tType == 4
  5736. "
  5737. @click.stop="deleteWorks(w.wid)"
  5738. alt
  5739. />
  5740. </div>
  5741. <div class="worksName">
  5742. <div>{{ w.sName }}</div>
  5743. </div>
  5744. </div>
  5745. </div>
  5746. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5747. 未提交
  5748. </div>
  5749. <div
  5750. class="noWorksS"
  5751. v-if="noWorksS && noWorksS[toolIndex].length"
  5752. >
  5753. <div
  5754. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5755. :key="sIndex"
  5756. class="noWorksName"
  5757. >
  5758. <el-tooltip effect="dark" :content="s.student" placement="top">
  5759. <span>{{ s.student }}</span>
  5760. </el-tooltip>
  5761. </div>
  5762. </div>
  5763. </div>
  5764. <div
  5765. v-if="
  5766. tType &&
  5767. ((tType == 2 && sIsOpen == true) ||
  5768. tType == 1 ||
  5769. tType == 4) &&
  5770. tool.tool.indexOf(40) != -1
  5771. "
  5772. class="worksBox"
  5773. >
  5774. <div
  5775. class="zuoyeYulan"
  5776. v-if="
  5777. worksStudent.length &&
  5778. worksStudent[toolIndex].length > 0
  5779. "
  5780. >
  5781. <div class="worksTop">
  5782. <div>作业预览</div>
  5783. <div
  5784. class="corOpen"
  5785. @click="contract(toolIndex)"
  5786. v-if="
  5787. (isCloseList[toolIndex].isCloseBoolean) &&
  5788. isCloseList[toolIndex].isClose == 0
  5789. "
  5790. >
  5791. 折叠
  5792. </div>
  5793. <div
  5794. class="corOpen"
  5795. @click="contract(toolIndex)"
  5796. v-if="isCloseList[toolIndex].isClose == 1"
  5797. >
  5798. 展开
  5799. </div>
  5800. </div>
  5801. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5802. </div>
  5803. <div
  5804. :id="'tool-' + toolIndex"
  5805. :style="{
  5806. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5807. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5808. }"
  5809. class="worksDetailBox"
  5810. v-if="
  5811. worksStudent.length &&
  5812. worksStudent[toolIndex].length > 0
  5813. "
  5814. >
  5815. <div
  5816. class="works"
  5817. style="
  5818. width: 200px;
  5819. height: 140px;
  5820. margin: 10px 10px 10px 0;
  5821. border-radius: 15px;
  5822. box-shadow: 0 0 6px 1px #dfdada;
  5823. "
  5824. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5825. :key="wIndex"
  5826. :class="w.type == 1 ? 'isTypeOne' : ''"
  5827. >
  5828. <div class="workImg">
  5829. <img
  5830. src="../../assets/icon/works/noImg.png"
  5831. @click="openPj(w.works, toolIndex)"
  5832. alt
  5833. />
  5834. <img
  5835. class="deleteImg"
  5836. src="../../assets/deleteworks.png"
  5837. v-if="
  5838. w.userid == userid || tType == 1 || tType == 4
  5839. "
  5840. @click.stop="deleteWorks(w.wid)"
  5841. alt
  5842. />
  5843. </div>
  5844. <div class="comment" style="min-width: 200px">
  5845. <div class="worksName">
  5846. <div>{{ w.sName }}</div>
  5847. </div>
  5848. <div class="commentList">
  5849. <div class="commentList">
  5850. <div
  5851. class="commentImg"
  5852. @click="
  5853. isLikes(w.wid, userid, 1, null, w.isLikes)
  5854. "
  5855. >
  5856. <img
  5857. :src="w.isLikes == true ? likes : noLikes"
  5858. alt=""
  5859. />
  5860. </div>
  5861. <div>{{ w.likesCount }}</div>
  5862. </div>
  5863. <div class="commentList" style="margin-right: 15px">
  5864. <div
  5865. class="commentImg"
  5866. @click="commentOther(w, toolIndex, wIndex)"
  5867. >
  5868. <img
  5869. src="../../assets/icon/comment/comment.png"
  5870. alt=""
  5871. />
  5872. </div>
  5873. <div>{{ w.commentCount }}</div>
  5874. </div>
  5875. </div>
  5876. </div>
  5877. </div>
  5878. </div>
  5879. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5880. 未提交
  5881. </div>
  5882. <div
  5883. class="noWorksS"
  5884. v-if="noWorksS && noWorksS[toolIndex].length"
  5885. >
  5886. <div
  5887. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5888. :key="sIndex"
  5889. class="noWorksName"
  5890. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5891. >
  5892. <el-tooltip effect="dark" :content="s.student" placement="top">
  5893. <span>{{ s.student }}</span>
  5894. </el-tooltip>
  5895. </div>
  5896. </div>
  5897. </div>
  5898. <div
  5899. v-if="
  5900. tType &&
  5901. tType == 2 &&
  5902. !sIsOpen &&
  5903. tool.tool.indexOf(40) != -1
  5904. "
  5905. class="worksBox"
  5906. >
  5907. <div
  5908. class="zuoyeYulan"
  5909. v-if="workStudent[toolIndex].length > 0"
  5910. >
  5911. <span class="worksTitle">作业预览</span>
  5912. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5913. </div>
  5914. <div
  5915. class="worksDetailBox"
  5916. v-if="workStudent[toolIndex].length > 0"
  5917. >
  5918. <div
  5919. class="works"
  5920. style="
  5921. width: 200px;
  5922. height: 140px;
  5923. margin: 10px 10px 10px 0;
  5924. "
  5925. v-for="(w, wIndex) in workStudent[toolIndex]"
  5926. :key="wIndex"
  5927. >
  5928. <div class="workImg">
  5929. <img
  5930. src="../../assets/icon/works/noImg.png"
  5931. @click="openPj(w.works, toolIndex)"
  5932. alt
  5933. />
  5934. <img
  5935. class="deleteImg"
  5936. src="../../assets/deleteworks.png"
  5937. v-if="
  5938. w.userid == userid || tType == 1 || tType == 4
  5939. "
  5940. @click.stop="deleteWorks(w.wid)"
  5941. alt
  5942. />
  5943. </div>
  5944. <div class="worksName">
  5945. <div>{{ w.sName }}</div>
  5946. </div>
  5947. </div>
  5948. </div>
  5949. </div>
  5950. <div
  5951. v-if="
  5952. tType &&
  5953. ((tType == 2 && sIsOpen == true) ||
  5954. tType == 1 ||
  5955. tType == 4) &&
  5956. tool.tool.indexOf(41) != -1
  5957. "
  5958. >
  5959. <AnswerData2
  5960. v-if="
  5961. worksStudent.length &&
  5962. worksStudent[toolIndex].length > 0
  5963. "
  5964. :problemJson="tool.selectJson.answer"
  5965. :people="worksStudent[toolIndex]"
  5966. ></AnswerData2>
  5967. </div>
  5968. <div
  5969. v-if="
  5970. tType &&
  5971. ((tType == 2 && sIsOpen == true) ||
  5972. tType == 1 ||
  5973. tType == 4) &&
  5974. tool.tool.indexOf(41) != -1
  5975. "
  5976. class="worksBox"
  5977. >
  5978. <div
  5979. class="zuoyeYulan"
  5980. v-if="
  5981. worksStudent.length &&
  5982. worksStudent[toolIndex].length > 0
  5983. "
  5984. >
  5985. <div class="worksTop">
  5986. <div>作业预览</div>
  5987. <div
  5988. class="corOpen"
  5989. @click="contract(toolIndex)"
  5990. v-if="
  5991. (isCloseList[toolIndex].isCloseBoolean) &&
  5992. isCloseList[toolIndex].isClose == 0
  5993. "
  5994. >
  5995. 折叠
  5996. </div>
  5997. <div
  5998. class="corOpen"
  5999. @click="contract(toolIndex)"
  6000. v-if="isCloseList[toolIndex].isClose == 1"
  6001. >
  6002. 展开
  6003. </div>
  6004. </div>
  6005. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6006. </div>
  6007. <div
  6008. :id="'tool-' + toolIndex"
  6009. :style="{
  6010. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6011. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6012. }"
  6013. class="worksDetailBox"
  6014. v-if="
  6015. worksStudent.length &&
  6016. worksStudent[toolIndex].length > 0
  6017. "
  6018. >
  6019. <div
  6020. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6021. :key="wIndex"
  6022. class="isWorksName2"
  6023. @click="openXz(w, toolIndex)"
  6024. >
  6025. {{ w.sName }}
  6026. <img
  6027. class="deleteImg deleteImg2"
  6028. src="../../assets/deleteworks.png"
  6029. v-if="w.userid == userid || tType == 1 || tType == 4"
  6030. @click.stop="deleteWorks(w.wid)"
  6031. alt
  6032. />
  6033. </div>
  6034. <!-- <div
  6035. class="works"
  6036. style="
  6037. width: 200px;
  6038. height: 140px;
  6039. margin: 10px 10px 10px 0;
  6040. border-radius: 15px;
  6041. box-shadow: 0 0 6px 1px #dfdada;
  6042. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6043. :class="w.type == 5 ? 'isTypeOne' : ''">
  6044. <div class="workImg">
  6045. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6046. </div>
  6047. <div class="worksName">
  6048. <div>{{ w.sName }}</div>
  6049. </div>
  6050. </div> -->
  6051. </div>
  6052. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6053. 未提交
  6054. </div>
  6055. <div
  6056. class="noWorksS"
  6057. v-if="noWorksS && noWorksS[toolIndex].length"
  6058. >
  6059. <div
  6060. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6061. :key="sIndex"
  6062. class="noWorksName"
  6063. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6064. >
  6065. <el-tooltip effect="dark" :content="s.student" placement="top">
  6066. <span>{{ s.student }}</span>
  6067. </el-tooltip>
  6068. </div>
  6069. </div>
  6070. </div>
  6071. <div
  6072. v-if="
  6073. tType &&
  6074. tType == 2 &&
  6075. !sIsOpen &&
  6076. tool.tool.indexOf(41) != -1
  6077. "
  6078. class="worksBox"
  6079. >
  6080. <div
  6081. class="zuoyeYulan"
  6082. v-if="workStudent[toolIndex].length > 0"
  6083. >
  6084. <span class="worksTitle">作业预览</span>
  6085. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6086. </div>
  6087. <div
  6088. class="worksDetailBox"
  6089. v-if="workStudent[toolIndex].length > 0"
  6090. >
  6091. <div
  6092. class="works"
  6093. style="
  6094. width: 200px;
  6095. height: 140px;
  6096. margin: 10px 10px 10px 0;
  6097. "
  6098. v-for="(w, wIndex) in workStudent[toolIndex]"
  6099. :key="wIndex"
  6100. >
  6101. <div class="workImg">
  6102. <img
  6103. src="../../assets/icon/works/noImg.png"
  6104. @click="openXz(w, toolIndex)"
  6105. alt
  6106. />
  6107. <img
  6108. class="deleteImg"
  6109. src="../../assets/deleteworks.png"
  6110. v-if="
  6111. w.userid == userid || tType == 1 || tType == 4
  6112. "
  6113. @click.stop="deleteWorks(w.wid)"
  6114. alt
  6115. />
  6116. </div>
  6117. <div class="worksName">
  6118. <div>{{ w.sName }}</div>
  6119. </div>
  6120. </div>
  6121. </div>
  6122. </div>
  6123. <div v-if="false" class="xuan_right_box">
  6124. <div
  6125. class="tool_right_box"
  6126. v-for="(item, index) in tool.sentenceList"
  6127. :key="index"
  6128. >
  6129. <div>
  6130. <span
  6131. style="word-break: break-all; white-space: normal"
  6132. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6133. >
  6134. </div>
  6135. <div class="right_box_xuan">
  6136. <span>正确率</span>
  6137. <span>{{
  6138. (checkJson[toolIndex][index].right
  6139. ? checkJson[toolIndex][index].right
  6140. : 0) + "%"
  6141. }}</span>
  6142. </div>
  6143. <div class="right_box_xuan">
  6144. <span>答对人数</span>
  6145. <span>{{
  6146. checkJson[toolIndex][index].rightPerson.length
  6147. }}</span>
  6148. </div>
  6149. </div>
  6150. </div>
  6151. <div
  6152. v-if="
  6153. tType &&
  6154. ((tType == 2 && sIsOpen == true) ||
  6155. tType == 1 ||
  6156. tType == 4) &&
  6157. tool.tool.indexOf(47) != -1
  6158. "
  6159. >
  6160. <AnswerData
  6161. v-if="
  6162. checkJson[toolIndex].length &&
  6163. (tool.sentenceList || tool.sentenceList.length > 0)
  6164. "
  6165. :people="checkJson[toolIndex]"
  6166. ></AnswerData>
  6167. </div>
  6168. <div
  6169. v-if="
  6170. tType &&
  6171. tType == 2 &&
  6172. !sIsOpen &&
  6173. tool.tool.indexOf(47) != -1
  6174. "
  6175. class="worksBox"
  6176. >
  6177. <div
  6178. class="zuoyeYulan"
  6179. v-if="workStudent[toolIndex].length > 0"
  6180. >
  6181. <span class="worksTitle">作业预览</span>
  6182. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6183. </div>
  6184. <div
  6185. class="worksDetailBox"
  6186. v-if="workStudent[toolIndex].length > 0"
  6187. >
  6188. <div
  6189. class="works"
  6190. style="
  6191. width: 200px;
  6192. height: 140px;
  6193. margin: 10px 10px 10px 0;
  6194. "
  6195. v-for="(w, wIndex) in workStudent[toolIndex]"
  6196. :key="wIndex"
  6197. >
  6198. <!-- @click="openXz(w, toolIndex)" -->
  6199. <div class="workImg" @click="openSen(w, toolIndex)">
  6200. <img src="../../assets/icon/works/noImg.png" alt />
  6201. <img
  6202. class="deleteImg"
  6203. src="../../assets/deleteworks.png"
  6204. v-if="
  6205. w.userid == userid || tType == 1 || tType == 4
  6206. "
  6207. @click.stop="deleteWorks(w.wid)"
  6208. alt
  6209. />
  6210. </div>
  6211. <div class="worksName">
  6212. <div>
  6213. {{ w.sName }}
  6214. </div>
  6215. </div>
  6216. </div>
  6217. </div>
  6218. </div>
  6219. <div
  6220. v-if="
  6221. tType &&
  6222. ((tType == 2 && sIsOpen == true) ||
  6223. tType == 1 ||
  6224. tType == 4) &&
  6225. tool.tool.indexOf(47) != -1
  6226. "
  6227. class="worksBox"
  6228. >
  6229. <div
  6230. class="zuoyeYulan"
  6231. v-if="
  6232. worksStudent.length &&
  6233. worksStudent[toolIndex].length > 0
  6234. "
  6235. >
  6236. <div class="worksTop">
  6237. <div>作业预览</div>
  6238. <div
  6239. class="corOpen"
  6240. @click="contract(toolIndex)"
  6241. v-if="
  6242. (isCloseList[toolIndex].isCloseBoolean) &&
  6243. isCloseList[toolIndex].isClose == 0
  6244. "
  6245. >
  6246. 折叠
  6247. </div>
  6248. <div
  6249. class="corOpen"
  6250. @click="contract(toolIndex)"
  6251. v-if="isCloseList[toolIndex].isClose == 1"
  6252. >
  6253. 展开
  6254. </div>
  6255. </div>
  6256. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6257. </div>
  6258. <div
  6259. :id="'tool-' + toolIndex"
  6260. :style="{
  6261. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6262. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6263. }"
  6264. class="worksDetailBox"
  6265. v-if="
  6266. worksStudent.length &&
  6267. worksStudent[toolIndex].length > 0
  6268. "
  6269. >
  6270. <!-- @click="openXz(w, toolIndex)" -->
  6271. <div
  6272. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6273. :key="wIndex"
  6274. class="isWorksName2"
  6275. @click="openSen(w, toolIndex)"
  6276. >
  6277. {{ w.sName }}
  6278. <img
  6279. class="deleteImg deleteImg2"
  6280. src="../../assets/deleteworks.png"
  6281. v-if="w.userid == userid || tType == 1 || tType == 4"
  6282. @click.stop="deleteWorks(w.wid)"
  6283. alt
  6284. />
  6285. </div>
  6286. </div>
  6287. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6288. 未提交
  6289. </div>
  6290. <div
  6291. class="noWorksS"
  6292. v-if="noWorksS && noWorksS[toolIndex].length"
  6293. >
  6294. <div
  6295. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6296. :key="sIndex"
  6297. class="noWorksName"
  6298. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6299. >
  6300. <el-tooltip effect="dark" :content="s.student" placement="top">
  6301. <span>{{ s.student }}</span>
  6302. </el-tooltip>
  6303. </div>
  6304. </div>
  6305. </div>
  6306. <div
  6307. v-if="
  6308. tType &&
  6309. ((tType == 2 && sIsOpen == true) ||
  6310. tType == 1 ||
  6311. tType == 4) &&
  6312. tool.tool.indexOf(48) != -1
  6313. "
  6314. class="worksBox"
  6315. >
  6316. <div
  6317. class="zuoyeYulan"
  6318. v-if="
  6319. worksStudent.length &&
  6320. worksStudent[toolIndex].length > 0
  6321. "
  6322. >
  6323. <div class="worksTop">
  6324. <div>作业预览</div>
  6325. <div
  6326. class="corOpen"
  6327. @click="contract(toolIndex)"
  6328. v-if="
  6329. (isCloseList[toolIndex].isCloseBoolean) &&
  6330. isCloseList[toolIndex].isClose == 0
  6331. "
  6332. >
  6333. 折叠
  6334. </div>
  6335. <div
  6336. class="corOpen"
  6337. @click="contract(toolIndex)"
  6338. v-if="isCloseList[toolIndex].isClose == 1"
  6339. >
  6340. 展开
  6341. </div>
  6342. </div>
  6343. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6344. </div>
  6345. <div
  6346. :id="'tool-' + toolIndex"
  6347. :style="{
  6348. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6349. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6350. }"
  6351. class="worksDetailBox"
  6352. v-if="
  6353. worksStudent.length &&
  6354. worksStudent[toolIndex].length > 0
  6355. "
  6356. >
  6357. <div
  6358. class="works"
  6359. style="
  6360. width: 200px;
  6361. height: 140px;
  6362. margin: 10px 10px 10px 0;
  6363. border-radius: 15px;
  6364. box-shadow: 0 0 6px 1px #dfdada;
  6365. "
  6366. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6367. :key="wIndex"
  6368. :class="w.type == 1 ? 'isTypeOne' : ''"
  6369. >
  6370. <div class="workImg">
  6371. <img :src="word" @click="openTable(w)" alt />
  6372. <!-- @click="openFile(w.works)" -->
  6373. <div
  6374. class="answerScore"
  6375. v-if="w.score"
  6376. @click.stop="openScore(w)"
  6377. :class="{
  6378. rightW:
  6379. w.userid == userid ||
  6380. tType == 1 ||
  6381. tType == 4 ||
  6382. w.ateacher == userid,
  6383. }"
  6384. >
  6385. {{ JSON.parse(w.score).wScore }}分
  6386. </div>
  6387. <div
  6388. class="answerScore"
  6389. @click.stop="openScore(w)"
  6390. v-else-if="courseDetail.userid == userid"
  6391. :class="{
  6392. rightW:
  6393. w.userid == userid ||
  6394. tType == 1 ||
  6395. tType == 4 ||
  6396. w.ateacher == userid,
  6397. }"
  6398. >
  6399. 评分
  6400. </div>
  6401. <img
  6402. class="deleteImg"
  6403. src="../../assets/deleteworks.png"
  6404. v-if="
  6405. w.userid == userid || tType == 1 || tType == 4
  6406. "
  6407. @click.stop="deleteWorks(w.wid)"
  6408. alt
  6409. />
  6410. </div>
  6411. <div class="comment" style="min-width: 200px">
  6412. <div class="worksName">
  6413. <div>{{ w.sName }}</div>
  6414. </div>
  6415. <div class="commentList">
  6416. <div class="commentList">
  6417. <div
  6418. class="commentImg"
  6419. @click="
  6420. isLikes(w.wid, userid, 1, null, w.isLikes)
  6421. "
  6422. >
  6423. <img
  6424. :src="w.isLikes == true ? likes : noLikes"
  6425. alt=""
  6426. />
  6427. </div>
  6428. <div>{{ w.likesCount }}</div>
  6429. </div>
  6430. <div class="commentList" style="margin-right: 15px">
  6431. <div
  6432. class="commentImg"
  6433. @click="commentOther(w, toolIndex, wIndex)"
  6434. >
  6435. <img
  6436. src="../../assets/icon/comment/comment.png"
  6437. alt=""
  6438. />
  6439. </div>
  6440. <div>{{ w.commentCount }}</div>
  6441. </div>
  6442. </div>
  6443. </div>
  6444. </div>
  6445. </div>
  6446. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6447. 未提交
  6448. </div>
  6449. <div
  6450. class="noWorksS"
  6451. v-if="noWorksS && noWorksS[toolIndex].length"
  6452. >
  6453. <div
  6454. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6455. :key="sIndex"
  6456. class="noWorksName"
  6457. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6458. >
  6459. <el-tooltip effect="dark" :content="s.student" placement="top">
  6460. <span>{{ s.student }}</span>
  6461. </el-tooltip>
  6462. </div>
  6463. </div>
  6464. </div>
  6465. <div
  6466. v-if="
  6467. tType &&
  6468. tType == 2 &&
  6469. !sIsOpen &&
  6470. tool.tool.indexOf(48) != -1
  6471. "
  6472. class="worksBox"
  6473. >
  6474. <div
  6475. class="zuoyeYulan"
  6476. v-if="workStudent[toolIndex].length > 0"
  6477. >
  6478. <span class="worksTitle">作业预览</span>
  6479. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6480. </div>
  6481. <div
  6482. class="worksDetailBox"
  6483. v-if="workStudent[toolIndex].length > 0"
  6484. >
  6485. <div
  6486. class="works"
  6487. style="
  6488. width: 200px;
  6489. height: 140px;
  6490. margin: 10px 10px 10px 0;
  6491. box-shadow: 0 0 6px 1px #dfdada;
  6492. "
  6493. v-for="(w, wIndex) in workStudent[toolIndex]"
  6494. :key="wIndex"
  6495. >
  6496. <div class="workImg">
  6497. <img :src="word" @click="openTable(w)" alt />
  6498. <div
  6499. class="answerScore"
  6500. v-if="w.score"
  6501. @click.stop="openScore(w)"
  6502. :class="{
  6503. rightW:
  6504. w.userid == userid || tType == 1 || tType == 4,
  6505. }"
  6506. >
  6507. {{ JSON.parse(w.score).wScore }}分
  6508. </div>
  6509. <div
  6510. class="answerScore"
  6511. @click.stop="openScore(w)"
  6512. v-else-if="courseDetail.userid == userid"
  6513. :class="{
  6514. rightW:
  6515. w.userid == userid || tType == 1 || tType == 4,
  6516. }"
  6517. >
  6518. 评分
  6519. </div>
  6520. <img
  6521. class="deleteImg"
  6522. src="../../assets/deleteworks.png"
  6523. v-if="
  6524. w.userid == userid || tType == 1 || tType == 4
  6525. "
  6526. @click.stop="deleteWorks(w.wid)"
  6527. alt
  6528. />
  6529. </div>
  6530. <div class="worksName">
  6531. <div>{{ w.sName }}</div>
  6532. </div>
  6533. </div>
  6534. </div>
  6535. </div>
  6536. <div
  6537. v-if="
  6538. tType &&
  6539. ((tType == 2 && sIsOpen == true) ||
  6540. tType == 1 ||
  6541. tType == 4) &&
  6542. tool.tool.indexOf(52) != -1
  6543. "
  6544. class="worksBox"
  6545. >
  6546. <div
  6547. class="zuoyeYulan"
  6548. v-if="
  6549. worksStudent.length &&
  6550. worksStudent[toolIndex].length > 0
  6551. "
  6552. >
  6553. <div class="worksTop">
  6554. <div>作业预览</div>
  6555. <div
  6556. class="corOpen"
  6557. @click="contract(toolIndex)"
  6558. v-if="
  6559. (isCloseList[toolIndex].isCloseBoolean) &&
  6560. isCloseList[toolIndex].isClose == 0
  6561. "
  6562. >
  6563. 折叠
  6564. </div>
  6565. <div
  6566. class="corOpen"
  6567. @click="contract(toolIndex)"
  6568. v-if="isCloseList[toolIndex].isClose == 1"
  6569. >
  6570. 展开
  6571. </div>
  6572. </div>
  6573. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6574. </div>
  6575. <div
  6576. :id="'tool-' + toolIndex"
  6577. :style="{
  6578. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6579. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6580. }"
  6581. class="worksDetailBox"
  6582. v-if="
  6583. worksStudent.length &&
  6584. worksStudent[toolIndex].length > 0
  6585. "
  6586. >
  6587. <div
  6588. class="works"
  6589. style="
  6590. width: 200px;
  6591. height: 140px;
  6592. margin: 10px 10px 10px 0;
  6593. border-radius: 15px;
  6594. box-shadow: 0 0 6px 1px #dfdada;
  6595. "
  6596. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6597. :key="wIndex"
  6598. :class="w.type == 1 ? 'isTypeOne' : ''"
  6599. >
  6600. <div class="workImg">
  6601. <img :src="word" @click="openWord(w)" alt />
  6602. <!-- @click="openFile(w.works)" -->
  6603. <div
  6604. class="answerScore"
  6605. v-if="w.score"
  6606. @click.stop="openScore(w)"
  6607. :class="{
  6608. rightW:
  6609. w.userid == userid ||
  6610. tType == 1 ||
  6611. tType == 4 ||
  6612. w.ateacher == userid,
  6613. }"
  6614. >
  6615. {{ JSON.parse(w.score).wScore }}分
  6616. </div>
  6617. <div
  6618. class="answerScore"
  6619. @click.stop="openScore(w)"
  6620. v-else-if="courseDetail.userid == userid"
  6621. :class="{
  6622. rightW:
  6623. w.userid == userid ||
  6624. tType == 1 ||
  6625. tType == 4 ||
  6626. w.ateacher == userid,
  6627. }"
  6628. >
  6629. 评分
  6630. </div>
  6631. <img
  6632. class="deleteImg"
  6633. src="../../assets/deleteworks.png"
  6634. v-if="
  6635. w.userid == userid || tType == 1 || tType == 4
  6636. "
  6637. @click.stop="deleteWorks(w.wid)"
  6638. alt
  6639. />
  6640. </div>
  6641. <div class="comment" style="min-width: 200px">
  6642. <div class="worksName">
  6643. <div>{{ w.sName }}</div>
  6644. </div>
  6645. <div class="commentList">
  6646. <div class="commentList">
  6647. <div
  6648. class="commentImg"
  6649. @click="
  6650. isLikes(w.wid, userid, 1, null, w.isLikes)
  6651. "
  6652. >
  6653. <img
  6654. :src="w.isLikes == true ? likes : noLikes"
  6655. alt=""
  6656. />
  6657. </div>
  6658. <div>{{ w.likesCount }}</div>
  6659. </div>
  6660. <div class="commentList" style="margin-right: 15px">
  6661. <div
  6662. class="commentImg"
  6663. @click="commentOther(w, toolIndex, wIndex)"
  6664. >
  6665. <img
  6666. src="../../assets/icon/comment/comment.png"
  6667. alt=""
  6668. />
  6669. </div>
  6670. <div>{{ w.commentCount }}</div>
  6671. </div>
  6672. </div>
  6673. </div>
  6674. </div>
  6675. </div>
  6676. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6677. 未提交
  6678. </div>
  6679. <div
  6680. class="noWorksS"
  6681. v-if="noWorksS && noWorksS[toolIndex].length"
  6682. >
  6683. <div
  6684. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6685. :key="sIndex"
  6686. class="noWorksName"
  6687. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6688. >
  6689. <el-tooltip effect="dark" :content="s.student" placement="top">
  6690. <span>{{ s.student }}</span>
  6691. </el-tooltip>
  6692. </div>
  6693. </div>
  6694. </div>
  6695. <div
  6696. v-if="
  6697. tType &&
  6698. tType == 2 &&
  6699. !sIsOpen &&
  6700. tool.tool.indexOf(52) != -1
  6701. "
  6702. class="worksBox"
  6703. >
  6704. <div
  6705. class="zuoyeYulan"
  6706. v-if="workStudent[toolIndex].length > 0"
  6707. >
  6708. <span class="worksTitle">作业预览</span>
  6709. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6710. </div>
  6711. <div
  6712. class="worksDetailBox"
  6713. v-if="workStudent[toolIndex].length > 0"
  6714. >
  6715. <div
  6716. class="works"
  6717. style="
  6718. width: 200px;
  6719. height: 140px;
  6720. margin: 10px 10px 10px 0;
  6721. box-shadow: 0 0 6px 1px #dfdada;
  6722. "
  6723. v-for="(w, wIndex) in workStudent[toolIndex]"
  6724. :key="wIndex"
  6725. >
  6726. <div class="workImg">
  6727. <img :src="word" @click="openWord(w)" alt />
  6728. <div
  6729. class="answerScore"
  6730. v-if="w.score"
  6731. @click.stop="openScore(w)"
  6732. :class="{
  6733. rightW:
  6734. w.userid == userid || tType == 1 || tType == 4,
  6735. }"
  6736. >
  6737. {{ JSON.parse(w.score).wScore }}分
  6738. </div>
  6739. <div
  6740. class="answerScore"
  6741. @click.stop="openScore(w)"
  6742. v-else-if="courseDetail.userid == userid"
  6743. :class="{
  6744. rightW:
  6745. w.userid == userid || tType == 1 || tType == 4,
  6746. }"
  6747. >
  6748. 评分
  6749. </div>
  6750. <img
  6751. class="deleteImg"
  6752. src="../../assets/deleteworks.png"
  6753. v-if="
  6754. w.userid == userid || tType == 1 || tType == 4
  6755. "
  6756. @click.stop="deleteWorks(w.wid)"
  6757. alt
  6758. />
  6759. </div>
  6760. <div class="worksName">
  6761. <div>{{ w.sName }}</div>
  6762. </div>
  6763. </div>
  6764. </div>
  6765. </div>
  6766. <div
  6767. v-if="tool.tool.indexOf(49) != -1"
  6768. class="xuan_right_box"
  6769. style="margin: 0 15px 0 25px; width: 93%"
  6770. >
  6771. <div
  6772. v-if="courseDetail.userid == userid"
  6773. style="
  6774. display: flex;
  6775. justify-content: flex-end;
  6776. margin-right: 10px;
  6777. "
  6778. >
  6779. <el-button
  6780. type="primary"
  6781. size="small"
  6782. @click="addTools(49, toolIndex, taskCount)"
  6783. >分组设置</el-button
  6784. >
  6785. </div>
  6786. <div
  6787. v-if="groupStudentUid[toolIndex]"
  6788. class="group_staic_box"
  6789. >
  6790. <div
  6791. v-for="(gp, gd) in tool.groupJson.group"
  6792. :key="gd"
  6793. class="group_staic"
  6794. >
  6795. <span> {{ gp.name }}</span>
  6796. <span>
  6797. 目前人数{{
  6798. groupStudentUid[toolIndex][gd].length
  6799. }}人</span
  6800. >
  6801. </div>
  6802. </div>
  6803. </div>
  6804. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6805. <div
  6806. class="zuoyeYulan"
  6807. v-if="
  6808. worksStudent.length &&
  6809. worksStudent[toolIndex].length > 0
  6810. "
  6811. >
  6812. <span class="worksTitle">作业预览</span>
  6813. </div>
  6814. <div>
  6815. <div
  6816. class="group_workBox"
  6817. v-for="(g, gindex) in tool.groupJson.group"
  6818. :key="gindex"
  6819. >
  6820. <div
  6821. class="group_box"
  6822. v-if="
  6823. groupStudentUid[toolIndex] &&
  6824. worksStudent[toolIndex] &&
  6825. (worksStudent[toolIndex][gindex].length ||
  6826. groupStudentUid[toolIndex][gindex].indexOf(
  6827. userid
  6828. ) != -1)
  6829. "
  6830. >
  6831. <div class="group_title">
  6832. <el-tooltip
  6833. class="item"
  6834. effect="light"
  6835. :content="g.name"
  6836. placement="top"
  6837. >
  6838. <div class="group_name">{{ g.name }}</div>
  6839. </el-tooltip>
  6840. <el-button
  6841. type="primary"
  6842. v-if="
  6843. groupStudentUid[toolIndex][gindex].indexOf(
  6844. userid
  6845. ) != -1
  6846. "
  6847. @click="groupUpload(toolIndex, taskCount, gindex)"
  6848. >上传作业</el-button
  6849. >
  6850. </div>
  6851. <div class="group_work">
  6852. <div
  6853. class="works"
  6854. style="
  6855. width: 200px;
  6856. height: 140px;
  6857. margin: 10px 10px 10px 0;
  6858. border-radius: 15px;
  6859. box-shadow: 0 0 6px 1px #dfdada;
  6860. "
  6861. v-for="(w, wIndex) in worksStudent[toolIndex][
  6862. gindex
  6863. ]"
  6864. :key="wIndex"
  6865. :class="w.type == 1 ? 'isTypeOne' : ''"
  6866. >
  6867. <div class="workImg" v-if="w.type == 0">
  6868. <img
  6869. :src="w.works"
  6870. @click="previewImg(w.works)"
  6871. alt
  6872. />
  6873. <div
  6874. class="answerScore"
  6875. v-if="w.score"
  6876. @click.stop="openScore(w)"
  6877. :class="{
  6878. rightW:
  6879. w.userid == userid ||
  6880. tType == 1 ||
  6881. tType == 4 ||
  6882. w.ateacher == userid,
  6883. }"
  6884. >
  6885. {{ JSON.parse(w.score).wScore }}分
  6886. </div>
  6887. <div
  6888. class="answerScore"
  6889. @click.stop="openScore(w)"
  6890. v-else-if="courseDetail.userid == userid"
  6891. :class="{
  6892. rightW:
  6893. w.userid == userid ||
  6894. tType == 1 ||
  6895. tType == 4 ||
  6896. w.ateacher == userid,
  6897. }"
  6898. >
  6899. 评分
  6900. </div>
  6901. <img
  6902. class="deleteImg"
  6903. src="../../assets/deleteworks.png"
  6904. v-if="
  6905. w.userid == userid ||
  6906. tType == 1 ||
  6907. tType == 4
  6908. "
  6909. @click.stop="deleteWorks(w.wid)"
  6910. alt
  6911. />
  6912. </div>
  6913. <div class="workImg" v-if="w.type == 1">
  6914. <img
  6915. :src="word"
  6916. @click="openFile(w.works)"
  6917. alt
  6918. />
  6919. <!-- @click="openFile(w.works)" -->
  6920. <div
  6921. class="answerScore"
  6922. v-if="w.score"
  6923. @click.stop="openScore(w)"
  6924. :class="{
  6925. rightW:
  6926. w.userid == userid ||
  6927. tType == 1 ||
  6928. tType == 4 ||
  6929. w.ateacher == userid,
  6930. }"
  6931. >
  6932. {{ JSON.parse(w.score).wScore }}分
  6933. </div>
  6934. <div
  6935. class="answerScore"
  6936. @click.stop="openScore(w)"
  6937. v-else-if="courseDetail.userid == userid"
  6938. :class="{
  6939. rightW:
  6940. w.userid == userid ||
  6941. tType == 1 ||
  6942. tType == 4 ||
  6943. w.ateacher == userid,
  6944. }"
  6945. >
  6946. 评分
  6947. </div>
  6948. <img
  6949. class="deleteImg"
  6950. src="../../assets/deleteworks.png"
  6951. v-if="
  6952. w.userid == userid ||
  6953. tType == 1 ||
  6954. tType == 4
  6955. "
  6956. @click.stop="deleteWorks(w.wid)"
  6957. alt
  6958. />
  6959. </div>
  6960. <div class="workImg" v-if="w.type == 3">
  6961. <img
  6962. style="cursor: pointer"
  6963. :src="video"
  6964. @click="openVideo(w)"
  6965. alt
  6966. />
  6967. <!-- @click="openVideo(w.works)" -->
  6968. <div
  6969. class="answerScore"
  6970. v-if="w.score"
  6971. @click.stop="openScore(w)"
  6972. :class="{
  6973. rightW:
  6974. w.userid == userid ||
  6975. tType == 1 ||
  6976. tType == 4 ||
  6977. w.ateacher == userid,
  6978. }"
  6979. >
  6980. {{ JSON.parse(w.score).wScore }}分
  6981. </div>
  6982. <div
  6983. class="answerScore"
  6984. @click.stop="openScore(w)"
  6985. v-else-if="courseDetail.userid == userid"
  6986. :class="{
  6987. rightW:
  6988. w.userid == userid ||
  6989. tType == 1 ||
  6990. tType == 4 ||
  6991. w.ateacher == userid,
  6992. }"
  6993. >
  6994. 评分
  6995. </div>
  6996. <img
  6997. class="deleteImg"
  6998. src="../../assets/deleteworks.png"
  6999. v-if="
  7000. w.userid == userid ||
  7001. tType == 1 ||
  7002. tType == 4
  7003. "
  7004. @click.stop="deleteWorks(w.wid)"
  7005. alt
  7006. />
  7007. </div>
  7008. <div class="workImg" v-if="w.type == 12">
  7009. <img
  7010. style="cursor: pointer"
  7011. :src="word2"
  7012. @click="downloadFile(w.works)"
  7013. alt
  7014. />
  7015. <!-- @click="openVideo(w.works)" -->
  7016. <div
  7017. class="answerScore"
  7018. v-if="w.score"
  7019. @click.stop="openScore(w)"
  7020. :class="{
  7021. rightW:
  7022. w.userid == userid ||
  7023. tType == 1 ||
  7024. tType == 4 ||
  7025. w.ateacher == userid,
  7026. }"
  7027. >
  7028. {{ JSON.parse(w.score).wScore }}分
  7029. </div>
  7030. <div
  7031. class="answerScore"
  7032. @click.stop="openScore(w)"
  7033. v-else-if="courseDetail.userid == userid"
  7034. :class="{
  7035. rightW:
  7036. w.userid == userid ||
  7037. tType == 1 ||
  7038. tType == 4 ||
  7039. w.ateacher == userid,
  7040. }"
  7041. >
  7042. 评分
  7043. </div>
  7044. <img
  7045. class="deleteImg"
  7046. src="../../assets/deleteworks.png"
  7047. v-if="
  7048. w.userid == userid ||
  7049. tType == 1 ||
  7050. tType == 4
  7051. "
  7052. @click.stop="deleteWorks(w.wid)"
  7053. alt
  7054. />
  7055. </div>
  7056. <div class="comment" style="min-width: 200px">
  7057. <div class="worksName">
  7058. <div>{{ w.sName }}</div>
  7059. </div>
  7060. <div class="commentList">
  7061. <div class="commentList">
  7062. <div
  7063. class="commentImg"
  7064. @click="
  7065. isLikes(
  7066. w.wid,
  7067. userid,
  7068. 1,
  7069. null,
  7070. w.isLikes
  7071. )
  7072. "
  7073. >
  7074. <img
  7075. :src="
  7076. w.isLikes == true ? likes : noLikes
  7077. "
  7078. alt=""
  7079. />
  7080. </div>
  7081. <div>{{ w.likesCount }}</div>
  7082. </div>
  7083. <div
  7084. class="commentList"
  7085. style="margin-right: 15px"
  7086. >
  7087. <div
  7088. class="commentImg"
  7089. @click="
  7090. commentOther(
  7091. w,
  7092. toolIndex,
  7093. wIndex,
  7094. gindex
  7095. )
  7096. "
  7097. >
  7098. <img
  7099. src="../../assets/icon/comment/comment.png"
  7100. alt=""
  7101. />
  7102. </div>
  7103. <div>{{ w.commentCount }}</div>
  7104. </div>
  7105. </div>
  7106. </div>
  7107. </div>
  7108. </div>
  7109. </div>
  7110. </div>
  7111. </div>
  7112. </div>
  7113. </div>
  7114. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7115. 上传文件
  7116. <input
  7117. type="file"
  7118. accept="image/png, image/gif, image/jpeg"
  7119. style="display: none"
  7120. @change="beforeUpload1($event, 2, index)"
  7121. />
  7122. </div>-->
  7123. </div>
  7124. </div>
  7125. <!-- <div
  7126. class="vedioBox"
  7127. style="margin-top: 10px"
  7128. v-if="
  7129. courseDetail.userid == userid ||
  7130. (courseDetail.course_teacher &&
  7131. courseDetail.course_teacher.indexOf(userid) != -1)
  7132. "
  7133. :style="{
  7134. borderRadius:
  7135. !(
  7136. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7137. .toolChoose[0].tool &&
  7138. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7139. .toolChoose[0].tool.length > 0
  7140. ) &&
  7141. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7142. .taskDetail == '' &&
  7143. vChapterData[taskCount].length == 0 &&
  7144. fileC[taskCount].length == 0
  7145. ? '0 0 20px 20px'
  7146. : '20px',
  7147. }"
  7148. >
  7149. <div
  7150. class="queTop"
  7151. @click="isClose = !isClose"
  7152. style="
  7153. padding: 15px 0 15px 37px;
  7154. justify-content: space-between;
  7155. "
  7156. >
  7157. <div class="queTopTitle">新增工具</div>
  7158. <div class="queTopRight">
  7159. <div class="queTopClose" v-if="isClose == 0">
  7160. 展开
  7161. <div class="closeImg">
  7162. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7163. </div>
  7164. </div>
  7165. <div class="queTopClose" v-if="isClose == 1">
  7166. 折叠
  7167. <div class="openImg">
  7168. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7169. </div>
  7170. </div>
  7171. <el-button
  7172. style="margin: 0 30px 0 auto"
  7173. type="primary"
  7174. size="small"
  7175. v-if="isClose == 1 && checktoolArray.length > 0"
  7176. @click.stop="addToolChoose"
  7177. >确定</el-button
  7178. >
  7179. </div>
  7180. </div>
  7181. <div
  7182. class="tool_work_box"
  7183. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7184. >
  7185. <div class="tool_box">
  7186. <div class="tool_type_box">
  7187. <div class="chooseWho">
  7188. <div
  7189. :class="toolType == 0 ? 'isChooseActive' : ''"
  7190. @click="(toolType = 0), $forceUpdate()"
  7191. >
  7192. 互动类
  7193. </div>
  7194. <div
  7195. :class="toolType == 1 ? 'isChooseActive' : ''"
  7196. @click="(toolType = 1), $forceUpdate()"
  7197. >
  7198. 思维类
  7199. </div>
  7200. <div
  7201. :class="toolType == 2 ? 'isChooseActive' : ''"
  7202. @click="(toolType = 2), $forceUpdate()"
  7203. >
  7204. 测评类
  7205. </div>
  7206. <div
  7207. :class="toolType == 3 ? 'isChooseActive' : ''"
  7208. @click="(toolType = 3), $forceUpdate()"
  7209. >
  7210. 编程类
  7211. </div>
  7212. <div
  7213. :class="toolType == 5 ? 'isChooseActive' : ''"
  7214. @click="(toolType = 5), $forceUpdate()"
  7215. >
  7216. 学科类
  7217. </div>
  7218. </div>
  7219. </div>
  7220. <div>
  7221. <div class="toolSort" v-if="toolType == 0">
  7222. <div class="tool">
  7223. <div class="whiteBIcon" @click="addTools2(10)">
  7224. <img
  7225. src="../../assets/icon/thirdToolList/time.png"
  7226. alt
  7227. />
  7228. <div style="margin: 5px 0">倒计时</div>
  7229. </div>
  7230. <div class="check" @click="addTools2(10)">
  7231. <img
  7232. src="../../assets/icon/checkNo.png"
  7233. alt
  7234. v-if="checktoolArray.indexOf(10) == -1"
  7235. />
  7236. <div class="checkDiv" v-else>
  7237. <img src="../../assets/icon/checkedIs.png" alt /><span
  7238. >已选择</span
  7239. >
  7240. </div>
  7241. </div>
  7242. </div>
  7243. <div class="tool">
  7244. <div class="whiteBIcon" @click="addTools2(65)">
  7245. <img
  7246. src="../../assets/icon/firstToolList/pickPeople.png"
  7247. alt
  7248. />
  7249. <div style="margin: 5px 0">挑人</div>
  7250. </div>
  7251. <div class="check" @click="addTools2(65)">
  7252. <img
  7253. src="../../assets/icon/checkNo.png"
  7254. alt
  7255. v-if="checktoolArray.indexOf(65) == -1"
  7256. />
  7257. <div class="checkDiv" v-else>
  7258. <img src="../../assets/icon/checkedIs.png" alt /><span
  7259. >已选择</span
  7260. >
  7261. </div>
  7262. </div>
  7263. </div>
  7264. </div>
  7265. <div class="toolSort" v-if="toolType == 1">
  7266. <div class="tool">
  7267. <div class="whiteBIcon" @click="addTools2(7)">
  7268. <img
  7269. src="../../assets/icon/secondToolList/mindNetwork.png"
  7270. alt
  7271. />
  7272. <div style="margin: 5px 0">思维网格</div>
  7273. </div>
  7274. <div class="check" @click="addTools2(7)">
  7275. <img
  7276. src="../../assets/icon/checkNo.png"
  7277. alt
  7278. v-if="checktoolArray.indexOf(7) == -1"
  7279. />
  7280. <div class="checkDiv" v-else>
  7281. <img src="../../assets/icon/checkedIs.png" alt /><span
  7282. >已选择</span
  7283. >
  7284. </div>
  7285. </div>
  7286. </div>
  7287. <div class="tool">
  7288. <div class="whiteBIcon" @click="addTools2(1)">
  7289. <img
  7290. src="../../assets/icon/secondToolList/whiteBoard.png"
  7291. alt
  7292. />
  7293. <div style="margin: 5px 0">电子白板</div>
  7294. </div>
  7295. <div class="check" @click="addTools2(1)">
  7296. <img
  7297. src="../../assets/icon/checkNo.png"
  7298. alt
  7299. v-if="checktoolArray.indexOf(1) == -1"
  7300. />
  7301. <div class="checkDiv" v-else>
  7302. <img src="../../assets/icon/checkedIs.png" alt /><span
  7303. >已选择</span
  7304. >
  7305. </div>
  7306. </div>
  7307. </div>
  7308. <div class="tool">
  7309. <div class="whiteBIcon" @click="addTools2(52)">
  7310. <img
  7311. src="../../assets/icon/fourthToolList/text.png"
  7312. alt
  7313. />
  7314. <div style="margin: 5px 0">文档</div>
  7315. </div>
  7316. <div class="check" @click="addTools2(52)">
  7317. <img
  7318. src="../../assets/icon/checkNo.png"
  7319. alt
  7320. v-if="checktoolArray.indexOf(52) == -1"
  7321. />
  7322. <div class="checkDiv" v-else>
  7323. <img src="../../assets/icon/checkedIs.png" alt /><span
  7324. >已选择</span
  7325. >
  7326. </div>
  7327. </div>
  7328. </div>
  7329. <div class="tool">
  7330. <div class="whiteBIcon" @click="addTools2(3)">
  7331. <img
  7332. src="../../assets/icon/secondToolList/mindMapping.png"
  7333. alt
  7334. />
  7335. <div style="margin: 5px 0">思维导图</div>
  7336. </div>
  7337. <div class="check" @click="addTools2(3)">
  7338. <img
  7339. src="../../assets/icon/checkNo.png"
  7340. alt
  7341. v-if="checktoolArray.indexOf(3) == -1"
  7342. />
  7343. <div class="checkDiv" v-else>
  7344. <img src="../../assets/icon/checkedIs.png" alt /><span
  7345. >已选择</span
  7346. >
  7347. </div>
  7348. </div>
  7349. </div>
  7350. <div class="tool">
  7351. <div class="whiteBIcon" @click="addTools2(48)">
  7352. <img
  7353. src="../../assets/icon/fourthToolList/table.png"
  7354. alt
  7355. />
  7356. <div style="margin: 5px 0">表格</div>
  7357. </div>
  7358. <div class="check" @click="addTools2(48)">
  7359. <img
  7360. src="../../assets/icon/checkNo.png"
  7361. alt
  7362. v-if="checktoolArray.indexOf(48) == -1"
  7363. />
  7364. <div class="checkDiv" v-else>
  7365. <img src="../../assets/icon/checkedIs.png" alt /><span
  7366. >已选择</span
  7367. >
  7368. </div>
  7369. </div>
  7370. </div>
  7371. </div>
  7372. <div class="toolSort" v-if="toolType == 6">
  7373. <div v-show="tooC == 49">
  7374. <img
  7375. @click="addTools(tooC, toolIndex, taskCount)"
  7376. src="../../assets/icon/fourthToolList/group.png"
  7377. alt
  7378. />
  7379. <div style="margin: 5px 0">学生分组</div>
  7380. </div>
  7381. </div>
  7382. <div class="toolSort" v-if="toolType == 2">
  7383. <div class="tool">
  7384. <div class="whiteBIcon" @click="addTools2(16)">
  7385. <img
  7386. src="../../assets/icon/thirdToolList/work.png"
  7387. alt
  7388. />
  7389. <div style="margin: 5px 0">作业提交</div>
  7390. </div>
  7391. <div class="check" @click="addTools2(16)">
  7392. <img
  7393. src="../../assets/icon/checkNo.png"
  7394. alt
  7395. v-if="checktoolArray.indexOf(16) == -1"
  7396. />
  7397. <div class="checkDiv" v-else>
  7398. <img src="../../assets/icon/checkedIs.png" alt /><span
  7399. >已选择</span
  7400. >
  7401. </div>
  7402. </div>
  7403. </div>
  7404. <div class="tool">
  7405. <div class="whiteBIcon" @click="addTools2(50)">
  7406. <img
  7407. src="../../assets/icon/thirdToolList/plwork.png"
  7408. alt
  7409. />
  7410. <div style="margin: 5px 0">批量上传</div>
  7411. </div>
  7412. <div class="check" @click="addTools2(50)">
  7413. <img
  7414. src="../../assets/icon/checkNo.png"
  7415. alt
  7416. v-if="checktoolArray.indexOf(50) == -1"
  7417. />
  7418. <div class="checkDiv" v-else>
  7419. <img src="../../assets/icon/checkedIs.png" alt /><span
  7420. >已选择</span
  7421. >
  7422. </div>
  7423. </div>
  7424. </div>
  7425. </div>
  7426. <div class="toolSort" v-if="toolType == 3">
  7427. <div class="tool">
  7428. <div class="whiteBIcon" @click="addTools2(18)">
  7429. <img
  7430. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7431. alt
  7432. />
  7433. <div style="margin: 5px 0">训练平台</div>
  7434. </div>
  7435. <div class="check" @click="addTools2(18)">
  7436. <img
  7437. src="../../assets/icon/checkNo.png"
  7438. alt
  7439. v-if="checktoolArray.indexOf(18) == -1"
  7440. />
  7441. <div class="checkDiv" v-else>
  7442. <img src="../../assets/icon/checkedIs.png" alt /><span
  7443. >已选择</span
  7444. >
  7445. </div>
  7446. </div>
  7447. </div>
  7448. <div class="tool">
  7449. <div class="whiteBIcon" @click="addTools2(21)">
  7450. <img
  7451. src="../../assets/icon/fourthToolList/program.png"
  7452. alt
  7453. />
  7454. <div style="margin: 5px 0">AIoT Blockly</div>
  7455. </div>
  7456. <div class="check" @click="addTools2(21)">
  7457. <img
  7458. src="../../assets/icon/checkNo.png"
  7459. alt
  7460. v-if="checktoolArray.indexOf(21) == -1"
  7461. />
  7462. <div class="checkDiv" v-else>
  7463. <img src="../../assets/icon/checkedIs.png" alt /><span
  7464. >已选择</span
  7465. >
  7466. </div>
  7467. </div>
  7468. </div>
  7469. <div class="tool">
  7470. <div class="whiteBIcon" @click="addTools2(23)">
  7471. <img
  7472. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7473. alt
  7474. />
  7475. <div style="margin: 5px 0">AI Python</div>
  7476. </div>
  7477. <div class="check" @click="addTools2(23)">
  7478. <img
  7479. src="../../assets/icon/checkNo.png"
  7480. alt
  7481. v-if="checktoolArray.indexOf(23) == -1"
  7482. />
  7483. <div class="checkDiv" v-else>
  7484. <img src="../../assets/icon/checkedIs.png" alt /><span
  7485. >已选择</span
  7486. >
  7487. </div>
  7488. </div>
  7489. </div>
  7490. <div class="tool">
  7491. <div class="whiteBIcon" @click="addTools2(24)">
  7492. <img
  7493. src="../../assets/icon/fourthToolList/AIprogram.png"
  7494. alt
  7495. />
  7496. <div style="margin: 5px 0">AI Blockly</div>
  7497. </div>
  7498. <div class="check" @click="addTools2(24)">
  7499. <img
  7500. src="../../assets/icon/checkNo.png"
  7501. alt
  7502. v-if="checktoolArray.indexOf(24) == -1"
  7503. />
  7504. <div class="checkDiv" v-else>
  7505. <img src="../../assets/icon/checkedIs.png" alt /><span
  7506. >已选择</span
  7507. >
  7508. </div>
  7509. </div>
  7510. </div>
  7511. <div class="tool">
  7512. <div class="whiteBIcon" @click="addTools2(32)">
  7513. <img
  7514. src="../../assets/icon/thirdToolList/code.png"
  7515. alt
  7516. />
  7517. <div style="margin: 5px 0">源码编辑</div>
  7518. </div>
  7519. <div class="check" @click="addTools2(32)">
  7520. <img
  7521. src="../../assets/icon/checkNo.png"
  7522. alt
  7523. v-if="checktoolArray.indexOf(32) == -1"
  7524. />
  7525. <div class="checkDiv" v-else>
  7526. <img src="../../assets/icon/checkedIs.png" alt /><span
  7527. >已选择</span
  7528. >
  7529. </div>
  7530. </div>
  7531. </div>
  7532. <div class="tool">
  7533. <div class="whiteBIcon" @click="addTools2(57)">
  7534. <img
  7535. src="../../assets/icon/fourthToolList/cocopi.png"
  7536. alt
  7537. />
  7538. <div style="margin: 5px 0">CocoPi</div>
  7539. </div>
  7540. <div class="check" @click="addTools2(57)">
  7541. <img
  7542. src="../../assets/icon/checkNo.png"
  7543. alt
  7544. v-if="checktoolArray.indexOf(57) == -1"
  7545. />
  7546. <div class="checkDiv" v-else>
  7547. <img src="../../assets/icon/checkedIs.png" alt /><span
  7548. >已选择</span
  7549. >
  7550. </div>
  7551. </div>
  7552. </div>
  7553. <div class="tool">
  7554. <div class="whiteBIcon" @click="addTools2(63)">
  7555. <img
  7556. src="../../assets/icon/fourthToolList/Wood.png"
  7557. alt
  7558. />
  7559. <div style="margin: 5px 0">海龟编程</div>
  7560. </div>
  7561. <div class="check" @click="addTools2(63)">
  7562. <img
  7563. src="../../assets/icon/checkNo.png"
  7564. alt
  7565. v-if="checktoolArray.indexOf(63) == -1"
  7566. />
  7567. <div class="checkDiv" v-else>
  7568. <img src="../../assets/icon/checkedIs.png" alt /><span
  7569. >已选择</span
  7570. >
  7571. </div>
  7572. </div>
  7573. </div>
  7574. </div>
  7575. <div class="toolSort" v-if="toolType == 5">
  7576. <div class="tool">
  7577. <div class="whiteBIcon" @click="addTools2(28)">
  7578. <img
  7579. src="../../assets/icon/secondToolList/translation.png"
  7580. alt
  7581. />
  7582. <div style="margin: 5px 0">翻译</div>
  7583. </div>
  7584. <div class="check" @click="addTools2(28)">
  7585. <img
  7586. src="../../assets/icon/checkNo.png"
  7587. alt
  7588. v-if="checktoolArray.indexOf(28) == -1"
  7589. />
  7590. <div class="checkDiv" v-else>
  7591. <img src="../../assets/icon/checkedIs.png" alt /><span
  7592. >已选择</span
  7593. >
  7594. </div>
  7595. </div>
  7596. </div>
  7597. <div class="tool">
  7598. <div class="whiteBIcon" @click="addTools2(31)">
  7599. <img
  7600. src="../../assets/icon/secondToolList/networkPanel.png"
  7601. alt
  7602. />
  7603. <div style="margin: 5px 0">数字画板</div>
  7604. </div>
  7605. <div class="check" @click="addTools2(31)">
  7606. <img
  7607. src="../../assets/icon/checkNo.png"
  7608. alt
  7609. v-if="checktoolArray.indexOf(31) == -1"
  7610. />
  7611. <div class="checkDiv" v-else>
  7612. <img src="../../assets/icon/checkedIs.png" alt /><span
  7613. >已选择</span
  7614. >
  7615. </div>
  7616. </div>
  7617. </div>
  7618. <div class="tool">
  7619. <div class="whiteBIcon" @click="addTools2(39)">
  7620. <img
  7621. src="../../assets/icon/secondToolList/GeoGebra.png"
  7622. alt
  7623. />
  7624. <div style="margin: 5px 0">GeoGebra</div>
  7625. </div>
  7626. <div class="check" @click="addTools2(39)">
  7627. <img
  7628. src="../../assets/icon/checkNo.png"
  7629. alt
  7630. v-if="checktoolArray.indexOf(39) == -1"
  7631. />
  7632. <div class="checkDiv" v-else>
  7633. <img src="../../assets/icon/checkedIs.png" alt /><span
  7634. >已选择</span
  7635. >
  7636. </div>
  7637. </div>
  7638. </div>
  7639. <div class="tool">
  7640. <div class="whiteBIcon" @click="addTools2(66)">
  7641. <img
  7642. src="../../assets/icon/secondToolList/formulaEdi.png"
  7643. alt
  7644. />
  7645. <div style="margin: 5px 0">公式编辑</div>
  7646. </div>
  7647. <div class="check" @click="addTools2(66)">
  7648. <img
  7649. src="../../assets/icon/checkNo.png"
  7650. alt
  7651. v-if="checktoolArray.indexOf(66) == -1"
  7652. />
  7653. <div class="checkDiv" v-else>
  7654. <img src="../../assets/icon/checkedIs.png" alt /><span
  7655. >已选择</span
  7656. >
  7657. </div>
  7658. </div>
  7659. </div>
  7660. <div class="tool">
  7661. <div class="whiteBIcon" @click="addTools2(67)">
  7662. <img
  7663. src="../../assets/icon/secondToolList/molStr.png"
  7664. alt
  7665. />
  7666. <div style="margin: 5px 0">分子结构</div>
  7667. </div>
  7668. <div class="check" @click="addTools2(67)">
  7669. <img
  7670. src="../../assets/icon/checkNo.png"
  7671. alt
  7672. v-if="checktoolArray.indexOf(67) == -1"
  7673. />
  7674. <div class="checkDiv" v-else>
  7675. <img src="../../assets/icon/checkedIs.png" alt /><span
  7676. >已选择</span
  7677. >
  7678. </div>
  7679. </div>
  7680. </div>
  7681. <div class="tool">
  7682. <div class="whiteBIcon" @click="addTools2(68)">
  7683. <img
  7684. src="../../assets/icon/secondToolList/timeAxis.png"
  7685. alt
  7686. />
  7687. <div style="margin: 5px 0">时间轴</div>
  7688. </div>
  7689. <div class="check" @click="addTools2(68)">
  7690. <img
  7691. src="../../assets/icon/checkNo.png"
  7692. alt
  7693. v-if="checktoolArray.indexOf(68) == -1"
  7694. />
  7695. <div class="checkDiv" v-else>
  7696. <img src="../../assets/icon/checkedIs.png" alt /><span
  7697. >已选择</span
  7698. >
  7699. </div>
  7700. </div>
  7701. </div>
  7702. </div>
  7703. <div class="toolSort" v-if="toolType == 7">
  7704. <div class="tool">
  7705. <div class="whiteBIcon" @click="addTools2(40)">
  7706. <img
  7707. src="../../assets/icon/secondToolList/eval.png"
  7708. alt
  7709. />
  7710. <div style="margin: 5px 0">个人评价</div>
  7711. </div>
  7712. <div class="check" @click="addTools2(40)">
  7713. <img
  7714. src="../../assets/icon/checkNo.png"
  7715. alt
  7716. v-if="checktoolArray.indexOf(40) == -1"
  7717. />
  7718. <div class="checkDiv" v-else>
  7719. <img src="../../assets/icon/checkedIs.png" alt /><span
  7720. >已选择</span
  7721. >
  7722. </div>
  7723. </div>
  7724. </div>
  7725. </div>
  7726. <div class="toolSort" v-if="toolType == 4">
  7727. <div class="tool">
  7728. <div class="whiteBIcon" @click="addTools2(26)">
  7729. <img
  7730. src="../../assets/icon/thirdToolList/courseDesign.png"
  7731. alt
  7732. />
  7733. <div style="margin: 5px 0">课程设计</div>
  7734. </div>
  7735. <div class="check" @click="addTools2(26)">
  7736. <img
  7737. src="../../assets/icon/checkNo.png"
  7738. alt
  7739. v-if="checktoolArray.indexOf(26) == -1"
  7740. />
  7741. <div class="checkDiv" v-else>
  7742. <img src="../../assets/icon/checkedIs.png" alt /><span
  7743. >已选择</span
  7744. >
  7745. </div>
  7746. </div>
  7747. </div>
  7748. <div class="tool">
  7749. <div class="whiteBIcon" @click="addTools2(25)">
  7750. <img
  7751. src="../../assets/icon/thirdToolList/evalua.png"
  7752. alt
  7753. />
  7754. <div style="margin: 5px 0">目标管理</div>
  7755. </div>
  7756. <div class="check" @click="addTools2(25)">
  7757. <img
  7758. src="../../assets/icon/checkNo.png"
  7759. alt
  7760. v-if="checktoolArray.indexOf(25) == -1"
  7761. />
  7762. <div class="checkDiv" v-else>
  7763. <img src="../../assets/icon/checkedIs.png" alt /><span
  7764. >已选择</span
  7765. >
  7766. </div>
  7767. </div>
  7768. </div>
  7769. </div>
  7770. </div>
  7771. </div>
  7772. </div>
  7773. </div> -->
  7774. <div
  7775. class="vedioBox"
  7776. style="margin-top: 10px; border-radius: 20px"
  7777. v-if="
  7778. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7779. .eList &&
  7780. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7781. .eList.length &&
  7782. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7783. .eList.length > 0 &&
  7784. tType != 2
  7785. "
  7786. >
  7787. <div
  7788. class="queTop"
  7789. style="
  7790. font-size: 20px;
  7791. padding: 15px 0 15px 37px;
  7792. font-weight: bold;
  7793. "
  7794. >
  7795. <!-- <div class="question" style="width: 30px">
  7796. <img src="../assets/icon/toolIcon.png" alt />
  7797. </div>
  7798. <div class="queTitle">
  7799. <div>工具</div>
  7800. </div>-->
  7801. 评一评
  7802. </div>
  7803. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7804. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7805. <el-table
  7806. :data="
  7807. chapInfoList[courseType].chapterInfo[0].taskJson[
  7808. taskCount
  7809. ].eList
  7810. "
  7811. :header-cell-style="{ background: '#F0F4FA' }"
  7812. :row-class-name="tableRowClassName"
  7813. border
  7814. stripe
  7815. style="width: 100%"
  7816. >
  7817. <el-table-column
  7818. label="评价名称"
  7819. align="center"
  7820. >
  7821. <template slot-scope="scope"
  7822. ><div>{{ scope.row.value }}</div></template
  7823. >
  7824. </el-table-column>
  7825. <el-table-column
  7826. label="评价描述"
  7827. align="center"
  7828. >
  7829. <template slot-scope="scope"
  7830. ><div>
  7831. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7832. </div></template
  7833. >
  7834. </el-table-column>
  7835. <el-table-column label="目标" align="center">
  7836. <template slot-scope="scope"
  7837. ><div>
  7838. {{
  7839. scope.row.target
  7840. ? scope.row.target[scope.row.target.length - 1]
  7841. : "-"
  7842. }}
  7843. </div></template
  7844. ></el-table-column
  7845. >
  7846. </el-table>
  7847. <!-- <div
  7848. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7849. .chapterInfo[0].taskJson[taskCount].eList"
  7850. :key="eIndex"
  7851. class="elist_input_box"
  7852. >
  7853. <div style="width: 95%">
  7854. <div
  7855. style="
  7856. display: flex;
  7857. flex-direction: row;
  7858. flex-wrap: nowrap;
  7859. align-items: center;
  7860. "
  7861. >
  7862. <div style="max-width: calc(100% - 285px)">
  7863. <span>{{ eItem.value }}</span>
  7864. </div>
  7865. <div
  7866. style="
  7867. padding-left: 25px;
  7868. display: flex;
  7869. flex-direction: row;
  7870. align-items: center;
  7871. "
  7872. >
  7873. <el-rate
  7874. v-model="eItem.score"
  7875. :colors="colors"
  7876. disabled
  7877. ></el-rate>
  7878. </div>
  7879. </div>
  7880. <div class="elist_inptu_text" style="padding-left: 10px">
  7881. <span v-if="eItem.detail != ''">{{
  7882. eItem.detail
  7883. }}</span>
  7884. <span v-else style="color: #b2b1b3; font-size: 14px"
  7885. >暂无描述...</span
  7886. >
  7887. </div>
  7888. </div>
  7889. </div> -->
  7890. </div>
  7891. <div
  7892. v-if="evalua"
  7893. style="
  7894. border: 1px solid #e5e5e5;
  7895. max-width: 650px;
  7896. width: 100%;
  7897. margin-top: 20px;
  7898. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7899. "
  7900. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7901. >
  7902. <div class="e_add_top">
  7903. <div class="e_add_title" style="width: 100%">
  7904. <!-- <span>目标管理名称</span> -->
  7905. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7906. <img
  7907. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7908. src="../../assets/line.png"
  7909. class="cru_line"
  7910. style="
  7911. width: 125px;
  7912. height: 20px;
  7913. bottom: -10px;
  7914. left: 5px;
  7915. "
  7916. />
  7917. <!-- <el-input
  7918. v-model="eTitle"
  7919. placeholder="请输入名称"
  7920. @change="setMindData"
  7921. ></el-input>-->
  7922. <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>
  7923. <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>
  7924. </div>
  7925. </div>
  7926. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7927. <div class="e_add_list_pbox">
  7928. <div class="e_add_list_pbox_title">
  7929. <!-- <span class="type_title">切换模式</span> -->
  7930. <div class="type_content">
  7931. <span
  7932. :class="{ active: typeMode == 1 }"
  7933. @click="typeMode = 1"
  7934. >目标树</span
  7935. >
  7936. <span
  7937. :class="{ active: typeMode == 2 }"
  7938. @click="typeMode = 2"
  7939. >目标罗盘</span
  7940. >
  7941. <!-- <span
  7942. :class="{ active: typeMode == 3 }"
  7943. @click="typeMode = 3"
  7944. >目标看板</span
  7945. > -->
  7946. </div>
  7947. </div>
  7948. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7949. <Mind
  7950. :showBar="false"
  7951. :mindData="data"
  7952. style="width: 100%"
  7953. v-show="typeMode == 1"
  7954. ></Mind>
  7955. <Sunburst
  7956. :Josn="eJson"
  7957. :num="eJSONNum"
  7958. style="width: 100%"
  7959. v-if="typeMode == 2"
  7960. ></Sunburst>
  7961. <SeeBoard
  7962. :Josn="eJson"
  7963. :num="eJSONNum"
  7964. :ename="eTitle"
  7965. style="width: 100%"
  7966. v-if="typeMode == 3"
  7967. >
  7968. </SeeBoard>
  7969. </div>
  7970. </div>
  7971. </div>
  7972. </div>
  7973. </div>
  7974. </div>
  7975. <!-- <div
  7976. class="project_box"
  7977. style="margin-top: 15px; padding-bottom: 30px"
  7978. >
  7979. <div
  7980. style="
  7981. display: flex;
  7982. flex-wrap: nowrap;
  7983. flex-direction: column;
  7984. position: relative;
  7985. "
  7986. >
  7987. <div class="queTop">
  7988. <div class="question">
  7989. <img src="../../assets/icon/homeWork.png" alt="" />
  7990. </div>
  7991. <div class="queTitle">
  7992. <div>作业提交<span>(提交图文视频等)</span></div>
  7993. <div>:任务:{{ task.task }}</div>
  7994. </div>
  7995. </div>
  7996. <div class="ediBottom">
  7997. <div
  7998. class="addEditor"
  7999. style="margin-top: 23px"
  8000. @click="openAddWork"
  8001. v-if="!isNoHomeWork"
  8002. >
  8003. 选择文件
  8004. </div>
  8005. <div
  8006. class="addEditor"
  8007. style="margin-top: 23px"
  8008. @click="openAddWork"
  8009. v-else
  8010. >
  8011. 已提交
  8012. </div>
  8013. </div>
  8014. </div>
  8015. </div>-->
  8016. </div>
  8017. </div>
  8018. <el-dialog
  8019. title="作业提交"
  8020. :visible.sync="dialogVisible"
  8021. :append-to-body="true"
  8022. width="500px"
  8023. :before-close="handleClose"
  8024. class="dialog_change"
  8025. >
  8026. <div class="marginT">
  8027. <div>上传文件</div>
  8028. <div
  8029. class="chapter_add"
  8030. @click="addImg($event)"
  8031. v-if="studyJuri[0].cover.length == 0"
  8032. >
  8033. <div class="up_photo">
  8034. <img src="../../assets/icon/uploadImg.png" alt />
  8035. </div>
  8036. <!-- <input
  8037. type="file"
  8038. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8039. style="display: none"
  8040. @change="beforeUpload1($event, 1)"
  8041. /> -->
  8042. <input
  8043. type="file"
  8044. accept="*"
  8045. style="display: none"
  8046. @change="beforeUpload1($event, 1)"
  8047. />
  8048. <!-- <input
  8049. type="file"
  8050. accept="image/*"
  8051. capture="camera"
  8052. style="display: none"
  8053. @change="beforeUpload1($event, 1)"
  8054. /> -->
  8055. </div>
  8056. <div
  8057. class="chapter_add"
  8058. style="
  8059. display: flex;
  8060. width: 100%;
  8061. flex-direction: row;
  8062. flex-wrap: wrap;
  8063. justify-content: flex-start;
  8064. padding: 15px 0;
  8065. "
  8066. v-if="studyJuri[0].cover.length > 0"
  8067. >
  8068. <div class="upCover">
  8069. <img
  8070. :src="studyJuri[0].cover[0].url"
  8071. alt
  8072. v-if="fileType == 0"
  8073. />
  8074. <img :src="word" alt v-else-if="fileType == 1" />
  8075. <img :src="video" alt v-else-if="fileType == 2" />
  8076. <img :src="word2" alt v-else-if="fileType == 3" />
  8077. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8078. <div class="deleteWord" @click="clean(1)">
  8079. <img src="../../assets/icon/deleteWorks.png" alt />
  8080. </div>
  8081. </div>
  8082. </div>
  8083. </div>
  8084. <div
  8085. class="upload_send"
  8086. @click="addCourseWorks(taskCount)"
  8087. v-if="!proVisible"
  8088. >
  8089. 提交
  8090. </div>
  8091. </el-dialog>
  8092. </div>
  8093. </div>
  8094. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8095. <classRoomHelper :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(
  8096. '/courseDetail?userid=' +
  8097. userid +
  8098. '&oid=' +
  8099. oid +
  8100. '&org=' +
  8101. org +
  8102. '&cid=' +
  8103. classId +
  8104. '&courseId=' +
  8105. id +
  8106. '&tType=' +
  8107. tType +
  8108. '&screenType=' +
  8109. screenType
  8110. )"></classRoomHelper>
  8111. <div
  8112. class="pButton"
  8113. @click="(pzDialog = true), selectPz()"
  8114. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8115. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8116. >
  8117. <!-- 批 -->
  8118. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8119. </div>
  8120. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8121. <div class="pzTop2">
  8122. <!-- <div>评论</div>
  8123. <div @click="pzDialog = false">
  8124. <img src="../../assets/close1.png" alt="" />
  8125. </div> -->
  8126. <div class="checkbox">
  8127. <!-- <div class="check" style="font-size: 25px; position: unset">
  8128. 评论
  8129. </div> -->
  8130. <div class="cb-tabList">
  8131. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8132. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8133. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8134. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8135. </div>
  8136. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8137. <el-option label="时间降序" :value="1"></el-option>
  8138. <el-option label="时间升序" :value="2"></el-option>
  8139. <el-option label="我的评课" :value="3"></el-option>
  8140. </el-select>
  8141. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8142. </div>
  8143. </div>
  8144. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8145. <div class="pzListBox" v-if="pzList && pzList.length">
  8146. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8147. <div class="pzNavTop">
  8148. <div>评</div>
  8149. <div>
  8150. {{
  8151. pz.username && pz.username.length > 5
  8152. ? pz.username.substring(0, 5) + "..."
  8153. : pz.username
  8154. }}的评论
  8155. </div>
  8156. <div
  8157. class="pzDelete"
  8158. v-if="pz.userid == userid"
  8159. @click="deletePz(pz.id)"
  8160. >
  8161. 删除
  8162. </div>
  8163. </div>
  8164. <div
  8165. @click="checkImg(getImgList(pz.content))"
  8166. class="pzContent cont"
  8167. v-html="pz.content"
  8168. v-if="pz.type == '1'"
  8169. ></div>
  8170. <div class="pzContent" v-if="pz.type == '2'">
  8171. <audio :src="pz.content" controls="controls" ref="audio">
  8172. Your browser does not support the audio element.
  8173. </audio>
  8174. </div>
  8175. <div class="pzContent" v-if="pz.type == '3'">
  8176. <img
  8177. :src="pz.content"
  8178. style="width: 90%; margin: 0 auto; display: block"
  8179. @click="previewImg(pz.content)"
  8180. />
  8181. </div>
  8182. <div class="timeAndReply">
  8183. <div class="time">
  8184. {{ pz.time }}
  8185. </div>
  8186. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8187. </div>
  8188. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8189. <div
  8190. v-for="(h, hIndex) in pz.hfList"
  8191. :key="hIndex"
  8192. class="hfItem"
  8193. >
  8194. <div class="whoReplyWho">
  8195. <div class="hfName">{{ h.username }}</div>
  8196. <div class="hfImg">
  8197. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8198. </div>
  8199. <div class="hfName">{{ pz.username }}</div>
  8200. </div>
  8201. <div class="hfContent" v-html="h.content"></div>
  8202. <div class="hfBottom">
  8203. <div class="hfTime">{{ h.time }}</div>
  8204. <div
  8205. class="deleteHfItem"
  8206. @click="deleteReply(h.id)"
  8207. v-if="userid == h.userid"
  8208. >
  8209. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8210. </div>
  8211. </div>
  8212. </div>
  8213. </div>
  8214. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8215. <div class="replyInput">
  8216. <el-input v-model="reply[pzIndex]"></el-input>
  8217. </div>
  8218. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8219. </div> -->
  8220. </div>
  8221. </div>
  8222. <div class="noPz" v-else>
  8223. <img src="../../assets/icon/noPz.png" alt="" />
  8224. </div>
  8225. <div class="addPzButton">
  8226. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8227. 添加评论
  8228. </div>
  8229. <!-- <div class="img1">
  8230. <div @click="(addPzDialog = true), (pzType = 2)">
  8231. <img src="../../assets/audio.png" /><span>音频</span>
  8232. </div>
  8233. </div> -->
  8234. </div>
  8235. </div>
  8236. <div class="scoreList" v-if="commentTagShow==1">
  8237. <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"/>
  8238. </div>
  8239. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8240. <scoreZong :courseid="id" :userid="userid"></scoreZong>
  8241. </div>
  8242. </div>
  8243. <div
  8244. v-if="toolDialogVisible == true"
  8245. class="toolMask"
  8246. @click="toolDialogVisible = false"
  8247. ></div>
  8248. <div v-if="toolDialogVisible == true" class="addToolCss">
  8249. <div class="toolTop">
  8250. <div style="font-weight: bold">新增工具</div>
  8251. <div @click="toolDialogVisible = false">
  8252. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8253. </div>
  8254. </div>
  8255. <div class="tool_box">
  8256. <div class="tool_type_box">
  8257. <div class="chooseWho">
  8258. <div
  8259. :class="toolType == 0 ? 'isChooseActive' : ''"
  8260. @click="(toolType = 0), $forceUpdate()"
  8261. >
  8262. 互动类
  8263. </div>
  8264. <div
  8265. :class="toolType == 1 ? 'isChooseActive' : ''"
  8266. @click="(toolType = 1), $forceUpdate()"
  8267. >
  8268. 思维类
  8269. </div>
  8270. <div
  8271. :class="toolType == 2 ? 'isChooseActive' : ''"
  8272. @click="(toolType = 2), $forceUpdate()"
  8273. >
  8274. 测评类
  8275. </div>
  8276. <div
  8277. :class="toolType == 3 ? 'isChooseActive' : ''"
  8278. @click="(toolType = 3), $forceUpdate()"
  8279. >
  8280. 编程类
  8281. </div>
  8282. <div
  8283. :class="toolType == 5 ? 'isChooseActive' : ''"
  8284. @click="(toolType = 5), $forceUpdate()"
  8285. >
  8286. 学科类
  8287. </div>
  8288. </div>
  8289. </div>
  8290. <div>
  8291. <div class="toolSort" v-if="toolType == 0">
  8292. <div
  8293. class="tool"
  8294. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8295. @click="addTools2(10)"
  8296. >
  8297. <div class="whiteBIcon">
  8298. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8299. <div style="margin: 5px 0">倒计时</div>
  8300. </div>
  8301. <div class="check">
  8302. <div
  8303. v-if="checktoolArray.indexOf(10) == -1"
  8304. class="noChoose"
  8305. ></div>
  8306. <div v-else class="isChoose"></div>
  8307. </div>
  8308. </div>
  8309. <div
  8310. class="tool"
  8311. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8312. @click="addTools2(65)"
  8313. >
  8314. <div class="whiteBIcon">
  8315. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8316. <div style="margin: 5px 0">挑人</div>
  8317. </div>
  8318. <div class="check">
  8319. <div
  8320. v-if="checktoolArray.indexOf(65) == -1"
  8321. class="noChoose"
  8322. ></div>
  8323. <div v-else class="isChoose"></div>
  8324. </div>
  8325. </div>
  8326. </div>
  8327. <div class="toolSort" v-if="toolType == 1">
  8328. <div
  8329. class="tool"
  8330. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8331. @click="addTools2(7)"
  8332. >
  8333. <div class="whiteBIcon">
  8334. <img
  8335. src="../../assets/icon/secondToolList/mindNetwork.png"
  8336. alt
  8337. />
  8338. <div style="margin: 5px 0">思维网格</div>
  8339. </div>
  8340. <div class="check">
  8341. <div
  8342. v-if="checktoolArray.indexOf(7) == -1"
  8343. class="noChoose"
  8344. ></div>
  8345. <div v-else class="isChoose"></div>
  8346. </div>
  8347. </div>
  8348. <div
  8349. class="tool"
  8350. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8351. @click="addTools2(1)"
  8352. >
  8353. <div class="whiteBIcon">
  8354. <img
  8355. src="../../assets/icon/secondToolList/whiteBoard.png"
  8356. alt
  8357. />
  8358. <div style="margin: 5px 0">电子白板</div>
  8359. </div>
  8360. <div class="check">
  8361. <div
  8362. v-if="checktoolArray.indexOf(1) == -1"
  8363. class="noChoose"
  8364. ></div>
  8365. <div v-else class="isChoose"></div>
  8366. </div>
  8367. </div>
  8368. <div
  8369. class="tool"
  8370. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8371. @click="addTools2(52)"
  8372. >
  8373. <div class="whiteBIcon">
  8374. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8375. <div style="margin: 5px 0">文档</div>
  8376. </div>
  8377. <div class="check">
  8378. <div
  8379. v-if="checktoolArray.indexOf(52) == -1"
  8380. class="noChoose"
  8381. ></div>
  8382. <div v-else class="isChoose"></div>
  8383. </div>
  8384. </div>
  8385. <div
  8386. class="tool"
  8387. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8388. @click="addTools2(3)"
  8389. >
  8390. <div class="whiteBIcon">
  8391. <img
  8392. src="../../assets/icon/secondToolList/mindMapping.png"
  8393. alt
  8394. />
  8395. <div style="margin: 5px 0">思维导图</div>
  8396. </div>
  8397. <div class="check">
  8398. <div
  8399. v-if="checktoolArray.indexOf(3) == -1"
  8400. class="noChoose"
  8401. ></div>
  8402. <div v-else class="isChoose"></div>
  8403. </div>
  8404. </div>
  8405. <div
  8406. class="tool"
  8407. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8408. @click="addTools2(48)"
  8409. >
  8410. <div class="whiteBIcon">
  8411. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8412. <div style="margin: 5px 0">表格</div>
  8413. </div>
  8414. <div class="check">
  8415. <div
  8416. v-if="checktoolArray.indexOf(48) == -1"
  8417. class="noChoose"
  8418. ></div>
  8419. <div v-else class="isChoose"></div>
  8420. </div>
  8421. </div>
  8422. </div>
  8423. <div class="toolSort" v-if="toolType == 6">
  8424. <div v-show="tooC == 49">
  8425. <img
  8426. @click="addTools(tooC, toolIndex, taskCount)"
  8427. src="../../assets/icon/fourthToolList/group.png"
  8428. alt
  8429. />
  8430. <div style="margin: 5px 0">学生分组</div>
  8431. </div>
  8432. </div>
  8433. <div class="toolSort" v-if="toolType == 2">
  8434. <div
  8435. class="tool"
  8436. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8437. @click="addTools2(16)"
  8438. >
  8439. <div class="whiteBIcon">
  8440. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8441. <div style="margin: 5px 0">作业提交</div>
  8442. </div>
  8443. <div class="check">
  8444. <div
  8445. v-if="checktoolArray.indexOf(16) == -1"
  8446. class="noChoose"
  8447. ></div>
  8448. <div v-else class="isChoose"></div>
  8449. </div>
  8450. </div>
  8451. <div
  8452. class="tool"
  8453. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8454. @click="addTools2(50)"
  8455. >
  8456. <div class="whiteBIcon">
  8457. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8458. <div style="margin: 5px 0">批量上传</div>
  8459. </div>
  8460. <div class="check">
  8461. <div
  8462. v-if="checktoolArray.indexOf(50) == -1"
  8463. class="noChoose"
  8464. ></div>
  8465. <div v-else class="isChoose"></div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <div class="toolSort" v-if="toolType == 3">
  8470. <div
  8471. class="tool"
  8472. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8473. @click="addTools2(18)"
  8474. >
  8475. <div class="whiteBIcon">
  8476. <img
  8477. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8478. alt
  8479. />
  8480. <div style="margin: 5px 0">训练平台</div>
  8481. </div>
  8482. <div class="check">
  8483. <div
  8484. v-if="checktoolArray.indexOf(18) == -1"
  8485. class="noChoose"
  8486. ></div>
  8487. <div v-else class="isChoose"></div>
  8488. </div>
  8489. </div>
  8490. <div
  8491. class="tool"
  8492. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8493. @click="addTools2(21)"
  8494. >
  8495. <div class="whiteBIcon">
  8496. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8497. <div style="margin: 5px 0">AIoT Blockly</div>
  8498. </div>
  8499. <div class="check">
  8500. <div
  8501. v-if="checktoolArray.indexOf(21) == -1"
  8502. class="noChoose"
  8503. ></div>
  8504. <div v-else class="isChoose"></div>
  8505. </div>
  8506. </div>
  8507. <div
  8508. class="tool"
  8509. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8510. @click="addTools2(23)"
  8511. >
  8512. <div class="whiteBIcon">
  8513. <img
  8514. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8515. alt
  8516. />
  8517. <div style="margin: 5px 0">AI Python</div>
  8518. </div>
  8519. <div class="check">
  8520. <div
  8521. v-if="checktoolArray.indexOf(23) == -1"
  8522. class="noChoose"
  8523. ></div>
  8524. <div v-else class="isChoose"></div>
  8525. </div>
  8526. </div>
  8527. <div
  8528. class="tool"
  8529. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8530. @click="addTools2(24)"
  8531. >
  8532. <div class="whiteBIcon">
  8533. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8534. <div style="margin: 5px 0">AI Blockly</div>
  8535. </div>
  8536. <div class="check">
  8537. <div
  8538. v-if="checktoolArray.indexOf(24) == -1"
  8539. class="noChoose"
  8540. ></div>
  8541. <div v-else class="isChoose"></div>
  8542. </div>
  8543. </div>
  8544. <div
  8545. class="tool"
  8546. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8547. @click="addTools2(32)"
  8548. >
  8549. <div class="whiteBIcon">
  8550. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8551. <div style="margin: 5px 0">源码编辑</div>
  8552. </div>
  8553. <div class="check">
  8554. <div
  8555. v-if="checktoolArray.indexOf(32) == -1"
  8556. class="noChoose"
  8557. ></div>
  8558. <div v-else class="isChoose"></div>
  8559. </div>
  8560. </div>
  8561. <div
  8562. class="tool"
  8563. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8564. @click="addTools2(57)"
  8565. >
  8566. <div class="whiteBIcon">
  8567. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8568. <div style="margin: 5px 0">CocoPi</div>
  8569. </div>
  8570. <div class="check">
  8571. <div
  8572. v-if="checktoolArray.indexOf(57) == -1"
  8573. class="noChoose"
  8574. ></div>
  8575. <div v-else class="isChoose"></div>
  8576. </div>
  8577. </div>
  8578. <div
  8579. class="tool"
  8580. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8581. @click="addTools2(63)"
  8582. >
  8583. <div class="whiteBIcon">
  8584. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8585. <div style="margin: 5px 0">海龟编程</div>
  8586. </div>
  8587. <div class="check">
  8588. <div
  8589. v-if="checktoolArray.indexOf(63) == -1"
  8590. class="noChoose"
  8591. ></div>
  8592. <div v-else class="isChoose"></div>
  8593. </div>
  8594. </div>
  8595. <div
  8596. class="tool"
  8597. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8598. @click="addTools2(71)"
  8599. >
  8600. <div class="whiteBIcon">
  8601. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8602. <div style="margin: 5px 0">AI智能体</div>
  8603. </div>
  8604. <div class="check">
  8605. <div
  8606. v-if="checktoolArray.indexOf(71) == -1"
  8607. class="noChoose"
  8608. ></div>
  8609. <div v-else class="isChoose"></div>
  8610. </div>
  8611. </div>
  8612. </div>
  8613. <div class="toolSort" v-if="toolType == 7">
  8614. <div
  8615. class="tool"
  8616. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8617. @click="addTools2(40)"
  8618. >
  8619. <div class="whiteBIcon">
  8620. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8621. <div style="margin: 5px 0">个人评价</div>
  8622. </div>
  8623. <div class="check">
  8624. <div
  8625. v-if="checktoolArray.indexOf(40) == -1"
  8626. class="noChoose"
  8627. ></div>
  8628. <div v-else class="isChoose"></div>
  8629. </div>
  8630. </div>
  8631. </div>
  8632. <div class="toolSort" v-if="toolType == 5">
  8633. <div
  8634. class="tool"
  8635. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8636. @click="addTools2(28)"
  8637. >
  8638. <div class="whiteBIcon">
  8639. <img
  8640. src="../../assets/icon/secondToolList/translation.png"
  8641. alt
  8642. />
  8643. <div style="margin: 5px 0">翻译</div>
  8644. </div>
  8645. <div class="check">
  8646. <div
  8647. v-if="checktoolArray.indexOf(28) == -1"
  8648. class="noChoose"
  8649. ></div>
  8650. <div v-else class="isChoose"></div>
  8651. </div>
  8652. </div>
  8653. <div
  8654. class="tool"
  8655. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8656. @click="addTools2(31)"
  8657. >
  8658. <div class="whiteBIcon">
  8659. <img
  8660. src="../../assets/icon/secondToolList/networkPanel.png"
  8661. alt
  8662. />
  8663. <div style="margin: 5px 0">数字画板</div>
  8664. </div>
  8665. <div class="check">
  8666. <div
  8667. v-if="checktoolArray.indexOf(31) == -1"
  8668. class="noChoose"
  8669. ></div>
  8670. <div v-else class="isChoose"></div>
  8671. </div>
  8672. </div>
  8673. <div
  8674. class="tool"
  8675. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8676. @click="addTools2(39)"
  8677. >
  8678. <div class="whiteBIcon">
  8679. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8680. <div style="margin: 5px 0">GeoGebra</div>
  8681. </div>
  8682. <div class="check">
  8683. <div
  8684. v-if="checktoolArray.indexOf(39) == -1"
  8685. class="noChoose"
  8686. ></div>
  8687. <div v-else class="isChoose"></div>
  8688. </div>
  8689. </div>
  8690. <div
  8691. class="tool"
  8692. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8693. @click="addTools2(66)"
  8694. >
  8695. <div class="whiteBIcon">
  8696. <img
  8697. src="../../assets/icon/secondToolList/formulaEdi.png"
  8698. alt
  8699. />
  8700. <div style="margin: 5px 0">公式编辑</div>
  8701. </div>
  8702. <div class="check">
  8703. <div
  8704. v-if="checktoolArray.indexOf(66) == -1"
  8705. class="noChoose"
  8706. ></div>
  8707. <div v-else class="isChoose"></div>
  8708. </div>
  8709. </div>
  8710. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8711. <div class="whiteBIcon" @click="addTools2(67)">
  8712. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8713. <div style="margin: 5px 0">分子结构</div>
  8714. </div>
  8715. <div class="check" @click="addTools2(67)">
  8716. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8717. <div v-else class="isChoose"></div>
  8718. </div>
  8719. </div> -->
  8720. <div
  8721. class="tool"
  8722. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8723. @click="addTools2(68)"
  8724. >
  8725. <div class="whiteBIcon">
  8726. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8727. <div style="margin: 5px 0">时间轴</div>
  8728. </div>
  8729. <div class="check">
  8730. <div
  8731. v-if="checktoolArray.indexOf(68) == -1"
  8732. class="noChoose"
  8733. ></div>
  8734. <div v-else class="isChoose"></div>
  8735. </div>
  8736. </div>
  8737. <!-- <div
  8738. class="tool"
  8739. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8740. @click="addTools2(69)"
  8741. >
  8742. <div class="whiteBIcon">
  8743. <img src="../../assets/icon/secondToolList/english.png" alt />
  8744. <div style="margin: 5px 0">英语写作</div>
  8745. </div>
  8746. <div class="check">
  8747. <div
  8748. v-if="checktoolArray.indexOf(69) == -1"
  8749. class="noChoose"
  8750. ></div>
  8751. <div v-else class="isChoose"></div>
  8752. </div>
  8753. </div> -->
  8754. </div>
  8755. <div class="toolSort" v-if="toolType == 4">
  8756. <div
  8757. class="tool"
  8758. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8759. @click="addTools2(26)"
  8760. >
  8761. <div class="whiteBIcon">
  8762. <img
  8763. src="../../assets/icon/thirdToolList/courseDesign.png"
  8764. alt
  8765. />
  8766. <div style="margin: 5px 0">课程设计</div>
  8767. </div>
  8768. <div class="check">
  8769. <div
  8770. v-if="checktoolArray.indexOf(26) == -1"
  8771. class="noChoose"
  8772. ></div>
  8773. <div v-else class="isChoose"></div>
  8774. </div>
  8775. </div>
  8776. <div
  8777. class="tool"
  8778. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8779. @click="addTools2(25)"
  8780. >
  8781. <div class="whiteBIcon">
  8782. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8783. <div style="margin: 5px 0">目标管理</div>
  8784. </div>
  8785. <div class="check">
  8786. <div
  8787. v-if="checktoolArray.indexOf(25) == -1"
  8788. class="noChoose"
  8789. ></div>
  8790. <div v-else class="isChoose"></div>
  8791. </div>
  8792. </div>
  8793. </div>
  8794. </div>
  8795. </div>
  8796. <span
  8797. slot="footer"
  8798. class="dialog-footer"
  8799. style="display: block; text-align: center; padding: 0 0 10px 0"
  8800. >
  8801. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8802. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8803. </span>
  8804. </div>
  8805. <div
  8806. v-if="replyDialogVisible == true"
  8807. class="addDialogCss"
  8808. v-el-drag-dialog
  8809. >
  8810. <div class="pzTop">
  8811. <div class="teacherPz">
  8812. <div class="teacherPzImg">
  8813. <img src="../../assets/icon/teacherPz.png" alt="" />
  8814. </div>
  8815. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8816. </div>
  8817. <div @click="replyDialogVisible = false">
  8818. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8819. </div>
  8820. </div>
  8821. <div class="addPzBox">
  8822. <!-- <div class="addPzCheck">
  8823. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8824. >文本</span
  8825. >
  8826. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8827. >音频</span
  8828. >
  8829. </div> -->
  8830. <div style="height: calc(100% - 50px)">
  8831. <editor-bar
  8832. class="binfo_input pzConText"
  8833. style="width: 100% !important; margin: 0 auto"
  8834. placeholder="请输入回复描述"
  8835. v-model="reply"
  8836. @change="change"
  8837. ></editor-bar>
  8838. </div>
  8839. <div class="addTextCss" @click="addHf">确定</div>
  8840. </div>
  8841. </div>
  8842. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8843. <div class="pzTop">
  8844. <div class="teacherPz">
  8845. <div class="teacherPzImg">
  8846. <img src="../../assets/icon/teacherPz.png" alt="" />
  8847. </div>
  8848. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8849. </div>
  8850. <div @click="addPzDialog = false">
  8851. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8852. </div>
  8853. </div>
  8854. <div class="addPzBox">
  8855. <div class="addPzCheck">
  8856. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8857. >文本</span
  8858. >
  8859. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8860. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8861. >音频</span
  8862. >
  8863. </div>
  8864. <div style="height: calc(100% - 95px)">
  8865. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8866. v-if="pzType == 1"></textarea> -->
  8867. <editor-bar
  8868. class="binfo_input pzConText"
  8869. style="width: 100% !important"
  8870. placeholder="请输入任务描述"
  8871. v-model="pzConText"
  8872. @change="change"
  8873. v-if="pzType == 1"
  8874. ></editor-bar>
  8875. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8876. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8877. <div @click="addImg($event)">
  8878. <el-button type="primary">上传图片</el-button>
  8879. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8880. @change="beforeUpload1($event, 4)" />
  8881. </div>
  8882. </div> -->
  8883. </div>
  8884. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8885. 确定
  8886. </div>
  8887. </div>
  8888. </div>
  8889. <div v-if="proVisible" class="mask">
  8890. <div class="progressBox">
  8891. <!-- <div id="closePro" class="closeCss">
  8892. <img src="../../assets/icon/close.png" alt />
  8893. </div> -->
  8894. <div class="lbox">
  8895. <img src="../../assets/loading.gif" />上传中,请稍后
  8896. </div>
  8897. <div style="margin-bottom: 10px">
  8898. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8899. </div>
  8900. <el-progress
  8901. :text-inside="true"
  8902. :stroke-width="20"
  8903. :percentage="progress"
  8904. style="width: 80%"
  8905. ></el-progress>
  8906. </div>
  8907. </div>
  8908. <div v-if="proVisible2" class="mask">
  8909. <div class="progressBox">
  8910. <div class="lbox">
  8911. <img src="../../assets/loading.gif" />上传中,请稍后
  8912. </div>
  8913. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8914. </div>
  8915. </div>
  8916. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8917. <img width="100%" :src="dialogImageUrl" alt />
  8918. </el-dialog>
  8919. <el-dialog
  8920. :title="noteName != '' ? noteName : '查看问卷'"
  8921. :visible.sync="dialogVisible5"
  8922. :append-to-body="true"
  8923. width="1000px"
  8924. :before-close="handleClose"
  8925. class="dialog_diy dialog_diy3"
  8926. >
  8927. <div>
  8928. <div
  8929. class="a_add_title"
  8930. style="
  8931. display: flex;
  8932. flex-direction: row;
  8933. align-items: center;
  8934. justify-content: center;
  8935. "
  8936. >
  8937. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8938. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8939. </div>
  8940. <div class="a_addBox">
  8941. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8942. 题目内容
  8943. </div>
  8944. <div
  8945. class="a_add_box"
  8946. v-for="(item1, index1) in askJson.askCount"
  8947. :key="index1"
  8948. >
  8949. <div class="a_add_head">
  8950. <div style="display: flex">
  8951. <span class="askIndex"> {{ index1 + 1 }}</span>
  8952. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8953. </div>
  8954. <img
  8955. v-if="askJson.askJson[index1].img"
  8956. :src="askJson.askJson[index1].img"
  8957. style="height: 300px; margin-top: 10px; max-width: 100%"
  8958. />
  8959. </div>
  8960. <div class="a_add_body">
  8961. <div class="a_add_input">
  8962. <el-radio-group
  8963. v-model="radio[index1]"
  8964. v-if="
  8965. askJson.askJson[index1].type == '1' ||
  8966. !askJson.askJson[index1].type
  8967. "
  8968. >
  8969. <el-radio
  8970. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8971. .checkList"
  8972. :key="checkIndex"
  8973. :label="checkIndex"
  8974. :disabled="isAnswer"
  8975. class="redioStyle"
  8976. ><span v-html="item2"></span
  8977. ></el-radio>
  8978. </el-radio-group>
  8979. <el-checkbox-group
  8980. v-model="radio[index1]"
  8981. v-if="askJson.askJson[index1].type == '2'"
  8982. >
  8983. <el-checkbox
  8984. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8985. .checkList"
  8986. :key="checkIndex1"
  8987. :label="checkIndex1"
  8988. :disabled="isAnswer"
  8989. class="redioStyle"
  8990. ><span v-html="item2"></span>
  8991. </el-checkbox>
  8992. </el-checkbox-group>
  8993. </div>
  8994. </div>
  8995. </div>
  8996. </div>
  8997. </div>
  8998. <span slot="footer" class="dialog-footer">
  8999. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9000. >取 消</el-button
  9001. >
  9002. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9003. >确 定</el-button
  9004. >
  9005. </span>
  9006. </el-dialog>
  9007. <el-dialog
  9008. :title="noteName != '' ? noteName : '查看问卷'"
  9009. :visible.sync="dialogVisible5Teacher"
  9010. :append-to-body="true"
  9011. width="1000px"
  9012. :before-close="handleClose"
  9013. class="dialog_diy dialog_diy3"
  9014. >
  9015. <div>
  9016. <div class="w_name">
  9017. 学生姓名:<span>{{ sStudent.student }}</span>
  9018. </div>
  9019. <div
  9020. class="a_add_title"
  9021. style="
  9022. display: flex;
  9023. flex-direction: row;
  9024. align-items: center;
  9025. justify-content: center;
  9026. "
  9027. >
  9028. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9029. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9030. </div>
  9031. <div class="a_addBox">
  9032. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9033. 题目内容
  9034. </div>
  9035. <div
  9036. class="a_add_box"
  9037. v-for="(item1, index1) in askJson.askCount"
  9038. :key="index1"
  9039. >
  9040. <div class="a_add_head">
  9041. <div style="display: flex">
  9042. <span class="askIndex">{{ index1 + 1 }}</span>
  9043. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9044. </div>
  9045. <img
  9046. v-if="askJson.askJson[index1].img"
  9047. :src="askJson.askJson[index1].img"
  9048. style="height: 300px; margin-top: 10px; max-width: 100%"
  9049. />
  9050. </div>
  9051. <div class="a_add_body">
  9052. <div class="a_add_input">
  9053. <el-radio-group
  9054. v-model="radio[index1]"
  9055. v-if="
  9056. askJson.askJson[index1].type == '1' ||
  9057. !askJson.askJson[index1].type
  9058. "
  9059. >
  9060. <el-radio
  9061. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9062. .checkList"
  9063. :key="checkIndex"
  9064. :label="checkIndex"
  9065. :disabled="isAnswer"
  9066. class="redioStyle"
  9067. ><span v-html="item2"></span
  9068. ></el-radio>
  9069. </el-radio-group>
  9070. <el-checkbox-group
  9071. v-model="radio[index1]"
  9072. v-if="askJson.askJson[index1].type == '2'"
  9073. >
  9074. <el-checkbox
  9075. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9076. .checkList"
  9077. :key="checkIndex1"
  9078. :label="checkIndex1"
  9079. :disabled="isAnswer"
  9080. class="redioStyle"
  9081. ><span v-html="item2"></span>
  9082. </el-checkbox>
  9083. </el-checkbox-group>
  9084. </div>
  9085. </div>
  9086. </div>
  9087. </div>
  9088. </div>
  9089. <span slot="footer" class="dialog-footer">
  9090. <el-button
  9091. @click="dialogVisible5Teacher = false"
  9092. v-show="noteName == ''"
  9093. >取 消</el-button
  9094. >
  9095. <el-button
  9096. type="primary"
  9097. @click="addStudentAskTeacher"
  9098. v-show="noteName == ''"
  9099. >确 定</el-button
  9100. >
  9101. </span>
  9102. </el-dialog>
  9103. <el-dialog
  9104. :title="noteName != '' ? noteName : '查看选择题'"
  9105. :visible.sync="dialogVisibleChoice"
  9106. :append-to-body="true"
  9107. width="1000px"
  9108. :before-close="handleClose"
  9109. class="dialog_diy dialog_diy3"
  9110. >
  9111. <div>
  9112. <!-- <div class="a_add_title" style="
  9113. display: flex;
  9114. flex-direction: row;
  9115. align-items: center;
  9116. justify-content: center;
  9117. ">
  9118. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9119. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9120. </div> -->
  9121. <div class="a_addBox">
  9122. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9123. 题目内容
  9124. </div>
  9125. <div
  9126. class="a_add_box"
  9127. v-for="(item1, index1) in testJson.testCount"
  9128. :key="index1"
  9129. >
  9130. <div class="a_add_head">
  9131. <div style="display: flex">
  9132. <span class="askIndex">{{ index1 + 1 }}</span>
  9133. <div
  9134. v-if="testJson.testJson[index1].type == '1'"
  9135. style="margin-right: 5px; min-width: 70px"
  9136. >
  9137. (单选题)
  9138. </div>
  9139. <div
  9140. v-if="testJson.testJson[index1].type == '2'"
  9141. style="margin-right: 5px; min-width: 70px"
  9142. >
  9143. (多选题)
  9144. </div>
  9145. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9146. </div>
  9147. <img
  9148. v-if="testJson.testJson[index1].img"
  9149. :src="testJson.testJson[index1].img"
  9150. style="height: 300px; margin-top: 10px; max-width: 100%"
  9151. />
  9152. </div>
  9153. <div
  9154. class="timuImgBox"
  9155. v-if="
  9156. testJson.testJson[index1].timuList &&
  9157. testJson.testJson[index1].timuList.length
  9158. "
  9159. >
  9160. <div
  9161. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9162. :key="tIndex"
  9163. class="timuImg"
  9164. @click.stop="previewImg(timg.src)"
  9165. >
  9166. <img :src="timg.src" alt="" />
  9167. </div>
  9168. </div>
  9169. <div class="a_add_body">
  9170. <div class="a_add_input">
  9171. <el-radio-group
  9172. v-model="radio[index1]"
  9173. v-if="testJson.testJson[index1].type == '1'"
  9174. >
  9175. <div class="radioBox">
  9176. <el-radio
  9177. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9178. .checkList"
  9179. :key="checkIndex"
  9180. :label="checkIndex"
  9181. :disabled="isAnswer"
  9182. class="redioStyle"
  9183. >
  9184. <div
  9185. style="margin-right: 10px"
  9186. v-if="item2 && item2.imgType && item2.imgType == 1"
  9187. >
  9188. <div class="inImg" @click.stop="previewImg(item2.src)">
  9189. <img :src="item2.src" alt="" />
  9190. </div>
  9191. </div>
  9192. <span v-else v-html="item2"></span>
  9193. </el-radio>
  9194. </div>
  9195. </el-radio-group>
  9196. <el-checkbox-group
  9197. v-model="radio[index1]"
  9198. v-if="testJson.testJson[index1].type == '2'"
  9199. >
  9200. <div class="radioBox">
  9201. <el-checkbox
  9202. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9203. .checkList"
  9204. :key="checkIndex"
  9205. :label="checkIndex"
  9206. :disabled="isAnswer"
  9207. class="redioStyle"
  9208. >
  9209. <div
  9210. style="margin-right: 10px"
  9211. v-if="item2 && item2.imgType && item2.imgType == 1"
  9212. >
  9213. <div class="inImg" @click.stop="previewImg(item2.src)">
  9214. <img :src="item2.src" alt="" />
  9215. </div>
  9216. </div>
  9217. <span v-else v-html="item2"></span>
  9218. </el-checkbox>
  9219. </div>
  9220. </el-checkbox-group>
  9221. </div>
  9222. </div>
  9223. </div>
  9224. </div>
  9225. </div>
  9226. <span slot="footer" class="dialog-footer">
  9227. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9228. >取 消</el-button
  9229. >
  9230. <el-button
  9231. type="primary"
  9232. @click="addStudentTest"
  9233. v-show="noteName == ''"
  9234. >确 定</el-button
  9235. >
  9236. </span>
  9237. </el-dialog>
  9238. <el-dialog
  9239. :title="noteName != '' ? noteName : '查看选择题'"
  9240. :visible.sync="dialogVisibleChoiceTeacher"
  9241. :append-to-body="true"
  9242. width="1000px"
  9243. :before-close="handleClose"
  9244. class="dialog_diy dialog_diy3"
  9245. >
  9246. <div>
  9247. <div class="w_name">
  9248. 学生姓名:<span>{{ sStudent.student }}</span>
  9249. </div>
  9250. <div class="a_addBox">
  9251. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9252. 题目内容
  9253. </div>
  9254. <div
  9255. class="a_add_box"
  9256. v-for="(item1, index1) in testJson.testCount"
  9257. :key="index1"
  9258. >
  9259. <div class="a_add_head">
  9260. <div style="display: flex">
  9261. <span class="askIndex">{{ index1 + 1 }}</span>
  9262. <div
  9263. v-if="testJson.testJson[index1].type == '1'"
  9264. style="margin-right: 5px; min-width: 70px"
  9265. >
  9266. (单选题)
  9267. </div>
  9268. <div
  9269. v-if="testJson.testJson[index1].type == '2'"
  9270. style="margin-right: 5px; min-width: 70px"
  9271. >
  9272. (多选题)
  9273. </div>
  9274. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9275. </div>
  9276. <img
  9277. v-if="testJson.testJson[index1].img"
  9278. :src="testJson.testJson[index1].img"
  9279. style="height: 300px; margin-top: 10px; max-width: 100%"
  9280. />
  9281. </div>
  9282. <div
  9283. class="timuImgBox"
  9284. v-if="
  9285. testJson.testJson[index1].timuList &&
  9286. testJson.testJson[index1].timuList.length
  9287. "
  9288. >
  9289. <div
  9290. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9291. :key="tIndex"
  9292. class="timuImg"
  9293. @click.stop="previewImg(timg.src)"
  9294. >
  9295. <img :src="timg.src" alt="" />
  9296. </div>
  9297. </div>
  9298. <div class="a_add_body">
  9299. <div class="a_add_input">
  9300. <el-radio-group
  9301. v-model="radio[index1]"
  9302. v-if="testJson.testJson[index1].type == '1'"
  9303. >
  9304. <div class="radioBox">
  9305. <el-radio
  9306. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9307. .checkList"
  9308. :key="checkIndex"
  9309. :label="checkIndex"
  9310. :disabled="isAnswer"
  9311. class="redioStyle"
  9312. >
  9313. <div
  9314. style="margin-right: 10px"
  9315. v-if="item2 && item2.imgType && item2.imgType == 1"
  9316. >
  9317. <div class="inImg" @click.stop="previewImg(item2.src)">
  9318. <img :src="item2.src" alt="" />
  9319. </div>
  9320. </div>
  9321. <span v-else v-html="item2"></span>
  9322. </el-radio>
  9323. </div>
  9324. </el-radio-group>
  9325. <el-checkbox-group
  9326. v-model="radio[index1]"
  9327. v-if="testJson.testJson[index1].type == '2'"
  9328. >
  9329. <div class="radioBox">
  9330. <el-checkbox
  9331. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9332. .checkList"
  9333. :key="checkIndex"
  9334. :label="checkIndex"
  9335. :disabled="isAnswer"
  9336. class="redioStyle"
  9337. >
  9338. <div
  9339. style="margin-right: 10px"
  9340. v-if="item2 && item2.imgType && item2.imgType == 1"
  9341. >
  9342. <div class="inImg" @click.stop="previewImg(item2.src)">
  9343. <img :src="item2.src" alt="" />
  9344. </div>
  9345. </div>
  9346. <span v-else v-html="item2"></span>
  9347. </el-checkbox>
  9348. </div>
  9349. </el-checkbox-group>
  9350. </div>
  9351. </div>
  9352. </div>
  9353. </div>
  9354. </div>
  9355. <span slot="footer" class="dialog-footer">
  9356. <el-button
  9357. @click="dialogVisibleChoiceTeacher = false"
  9358. v-show="noteName == ''"
  9359. >取 消</el-button
  9360. >
  9361. <el-button
  9362. type="primary"
  9363. @click="addStudentTestTeacher"
  9364. v-show="noteName == ''"
  9365. >确 定</el-button
  9366. >
  9367. </span>
  9368. </el-dialog>
  9369. <el-dialog
  9370. title="查看富文本"
  9371. :visible.sync="dialogVisible1"
  9372. :append-to-body="true"
  9373. width="500px"
  9374. :before-close="handleClose"
  9375. class="dialog_diy textCss"
  9376. >
  9377. <el-form style="font-size: 20px">
  9378. <el-form-item label="文本标题" class="textTitle">
  9379. <div style="font-size: 20px">{{ text.name }}</div>
  9380. </el-form-item>
  9381. <div>富文本内容</div>
  9382. <div
  9383. v-html="text.url"
  9384. style="font-size: 18px; padding: 40px 0 0 0"
  9385. ></div>
  9386. </el-form>
  9387. <span slot="footer" class="dialog-footer">
  9388. <el-button type="primary" @click="dialogVisible1 = false"
  9389. >确定</el-button
  9390. >
  9391. </span>
  9392. </el-dialog>
  9393. <el-dialog
  9394. title="文件预览"
  9395. :visible.sync="dialogVisible3"
  9396. width="50%"
  9397. :before-close="handleClose"
  9398. class="dialog_diy"
  9399. :class="{ fullStyle: full }"
  9400. >
  9401. <div slot="title" class="header-title">
  9402. <div style="color: #fff">文件预览</div>
  9403. <div style="position: absolute; top: 19px; right: 50px">
  9404. <img
  9405. src="../../assets/full.png"
  9406. style="height: 16px; cursor: pointer"
  9407. alt=""
  9408. @click="fullTools"
  9409. />
  9410. </div>
  9411. </div>
  9412. <pdf
  9413. v-if="showPDF"
  9414. :pdfUrl="pptImgUrl"
  9415. style="width: 100%; height: 520px; overflow: auto"
  9416. :class="{ fullStyle: full }"
  9417. ></pdf>
  9418. <iframe
  9419. v-else
  9420. :src="pptImgUrl"
  9421. frameborder="0"
  9422. width="100%"
  9423. height="600"
  9424. :class="{ fullStyle: full }"
  9425. ></iframe>
  9426. </el-dialog>
  9427. <el-dialog
  9428. title="文件预览"
  9429. :visible.sync="dialogVisible6"
  9430. width="50%"
  9431. :before-close="handleClose"
  9432. class="dialog_diy"
  9433. >
  9434. <iframe
  9435. :src="pptImgUrl1"
  9436. frameborder="0"
  9437. width="100%"
  9438. height="600"
  9439. ></iframe>
  9440. </el-dialog>
  9441. <el-dialog
  9442. title="提示"
  9443. :visible.sync="dialogVisible4"
  9444. :append-to-body="true"
  9445. width="800px"
  9446. :before-close="handleClose"
  9447. class="dialog_diy notice"
  9448. >
  9449. <div>此功能暂未开放!</div>
  9450. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9451. </el-dialog>
  9452. <el-dialog
  9453. title="问答"
  9454. :visible.sync="answerDialogVisible"
  9455. :append-to-body="true"
  9456. width="800px"
  9457. :before-close="handleClose"
  9458. class="dialog_diy"
  9459. >
  9460. <div>
  9461. <div
  9462. style="
  9463. display: flex;
  9464. flex-wrap: nowrap;
  9465. flex-direction: column;
  9466. position: relative;
  9467. "
  9468. >
  9469. <div class="queTop" style="padding: 20px 0 20px 0">
  9470. <div class="question">
  9471. <img src="../../assets/icon/question.png" alt />
  9472. </div>
  9473. <div class="queTitle">
  9474. <div style="width: 90px; min-width: 90px">提问:</div>
  9475. <div>{{ answerQ }}</div>
  9476. </div>
  9477. </div>
  9478. <div class="ediBottom">
  9479. <textarea
  9480. rows="6"
  9481. class="binfo_input"
  9482. cols
  9483. style="width: 95%; height: 120px"
  9484. v-model="questionAnswer"
  9485. ></textarea>
  9486. </div>
  9487. </div>
  9488. </div>
  9489. <div slot="footer">
  9490. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9491. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9492. </div>
  9493. </el-dialog>
  9494. <el-dialog
  9495. title="问答"
  9496. :visible.sync="answerDialogVisibleTeacher"
  9497. :append-to-body="true"
  9498. width="800px"
  9499. :before-close="handleClose"
  9500. class="dialog_diy"
  9501. >
  9502. <div>
  9503. <div class="w_name">
  9504. 学生姓名:<span>{{ sStudent.student }}</span>
  9505. </div>
  9506. <div
  9507. style="
  9508. display: flex;
  9509. flex-wrap: nowrap;
  9510. flex-direction: column;
  9511. position: relative;
  9512. "
  9513. >
  9514. <div class="queTop" style="padding: 20px 0 20px 0">
  9515. <div class="question">
  9516. <img src="../../assets/icon/question.png" alt />
  9517. </div>
  9518. <div class="queTitle">
  9519. <div style="width: 90px; min-width: 90px">提问:</div>
  9520. <div>{{ answerQ }}</div>
  9521. </div>
  9522. </div>
  9523. <div class="ediBottom">
  9524. <textarea
  9525. rows="6"
  9526. class="binfo_input"
  9527. cols
  9528. style="width: 95%; height: 120px"
  9529. v-model="questionAnswer"
  9530. ></textarea>
  9531. </div>
  9532. </div>
  9533. </div>
  9534. <div slot="footer">
  9535. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9536. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9537. </div>
  9538. </el-dialog>
  9539. <el-dialog
  9540. title="倒计时"
  9541. :visible.sync="timeDialogVisible"
  9542. :append-to-body="true"
  9543. width="800px"
  9544. :before-close="handleClose"
  9545. class="dialog_diy"
  9546. >
  9547. <div>
  9548. <div style="margin-bottom: 20px; color: #999">
  9549. 提示:点击“+”或“-”修改倒计时时长。
  9550. </div>
  9551. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9552. </div>
  9553. <div slot="footer">
  9554. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9555. </div>
  9556. </el-dialog>
  9557. <el-dialog
  9558. title="权限设置"
  9559. :visible.sync="juriVisible"
  9560. :append-to-body="true"
  9561. width="400px"
  9562. :before-close="handleClose"
  9563. class="dialog_diy"
  9564. >
  9565. <div>
  9566. <div class="open_box">
  9567. <div class="switch_box">
  9568. <span>允许学生查看所有作业</span>
  9569. <el-switch
  9570. v-model="sIsOpen"
  9571. active-text=""
  9572. class="switchCss"
  9573. @change="updateSLook"
  9574. ></el-switch>
  9575. </div>
  9576. <div
  9577. class="switch_box"
  9578. v-if="
  9579. courseDetail.userid == userid ||
  9580. (courseDetail.course_teacher &&
  9581. courseDetail.course_teacher.indexOf(userid) != -1)
  9582. "
  9583. >
  9584. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9585. <span>禁止学生查看所有阶段</span>
  9586. <el-switch
  9587. v-model="IsLookOpen"
  9588. active-text=""
  9589. class="switchCss"
  9590. @change="updateLookOpen"
  9591. ></el-switch>
  9592. </div>
  9593. <div class="switch_box" v-if="courseDetail.userid == userid">
  9594. <span>开启跟随模式</span>
  9595. <el-switch
  9596. v-model="IsFollow"
  9597. active-text=""
  9598. class="switchCss"
  9599. @change="updateFollow"
  9600. ></el-switch>
  9601. </div>
  9602. </div>
  9603. </div>
  9604. <div slot="footer">
  9605. <el-button
  9606. style="background: #409efe; color: #fff"
  9607. @click="juriVisible = false"
  9608. >关 闭</el-button
  9609. >
  9610. </div>
  9611. </el-dialog>
  9612. <el-dialog
  9613. title="查看视频"
  9614. :visible.sync="videoVisible"
  9615. :append-to-body="true"
  9616. width="1000px"
  9617. :before-close="handleClose"
  9618. class="dialog_diy1"
  9619. >
  9620. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9621. <video-player
  9622. class="video-player vjs-custom-skin"
  9623. :playsinline="true"
  9624. :options="videoDetail"
  9625. @play="onPlayerPlay($event)"
  9626. style="width: 100%; height: 100%"
  9627. ></video-player>
  9628. </div>
  9629. <div slot="footer">
  9630. <el-button
  9631. style="background: #409efe; color: #fff"
  9632. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9633. >
  9634. 关 闭</el-button
  9635. >
  9636. </div>
  9637. </el-dialog>
  9638. <el-dialog
  9639. title="查看详情"
  9640. :visible.sync="commentDialogVisible"
  9641. :append-to-body="true"
  9642. width="800px"
  9643. :before-close="handleClose"
  9644. class="dialog_diy"
  9645. >
  9646. <div class="commentTop">
  9647. <div class="studentDetail">
  9648. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9649. <div class="nameAndTime">
  9650. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9651. <div>{{ commentDetail.time }}</div>
  9652. </div>
  9653. <div
  9654. class="returnBtn"
  9655. style="margin-left: auto; width: 80px"
  9656. v-if="
  9657. commentDetail.works &&
  9658. commentDetail.type == 0 &&
  9659. (tType == 1 || tType == 4)
  9660. "
  9661. @click="
  9662. showPicturePaint(
  9663. commentDetail.img ? commentDetail.img : commentDetail.works
  9664. )
  9665. "
  9666. >
  9667. 教师批注
  9668. </div>
  9669. </div>
  9670. <div
  9671. class="worksAnswer"
  9672. v-if="commentDetail.works && commentDetail.type == 2"
  9673. >
  9674. {{ JSON.parse(commentDetail.works)[0].answer }}
  9675. </div>
  9676. <div
  9677. class="worksAnswer"
  9678. v-if="commentDetail.works && commentDetail.type == 1"
  9679. >
  9680. <img
  9681. src="../../assets/teacherWork.png"
  9682. v-if="commentDetail.ateacher"
  9683. class="w_teachert"
  9684. />
  9685. <pdf
  9686. v-if="showPDF"
  9687. :pdfUrl="pptImgUrl"
  9688. style="width: 100%; height: 520px; overflow: auto"
  9689. :class="{ fullStyle: full }"
  9690. ></pdf>
  9691. <iframe
  9692. v-else
  9693. :src="pptImgUrl"
  9694. frameborder="0"
  9695. width="100%"
  9696. height="600"
  9697. :class="{ fullStyle: full }"
  9698. ></iframe>
  9699. </div>
  9700. <div
  9701. class="worksAnswer"
  9702. v-if="commentDetail.works && commentDetail.type == 0"
  9703. >
  9704. <img
  9705. src="../../assets/teacherWork.png"
  9706. v-if="commentDetail.ateacher"
  9707. class="w_teachert"
  9708. style="right: 105px"
  9709. />
  9710. <img
  9711. :src="commentDetail.works"
  9712. alt=""
  9713. @click="previewImg(commentDetail.works)"
  9714. />
  9715. </div>
  9716. <div
  9717. class="worksAnswer"
  9718. v-if="commentDetail.works && commentDetail.type == 3"
  9719. >
  9720. <img
  9721. src="../../assets/teacherWork.png"
  9722. v-if="commentDetail.ateacher"
  9723. class="w_teachert"
  9724. />
  9725. <video-player
  9726. class="video-player vjs-custom-skin"
  9727. :playsinline="true"
  9728. :options="videoDetail"
  9729. @play="onPlayerPlay($event)"
  9730. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9731. ></video-player>
  9732. </div>
  9733. <div
  9734. class="worksAnswer"
  9735. v-if="commentDetail.works && commentDetail.type == 10"
  9736. >
  9737. <div class="cont" v-html="commentDetail.works.text"></div>
  9738. </div>
  9739. <div
  9740. class="worksAnswer codeFileBox"
  9741. v-if="commentDetail.works && commentDetail.type == 12"
  9742. @click="downloadFile(commentDetail.works)"
  9743. >
  9744. <img src="../../assets/icon/codeFile.png" />
  9745. <div>点击下载文件</div>
  9746. </div>
  9747. <div
  9748. class="worksAnswer codeFileBox"
  9749. v-if="commentDetail.works && commentDetail.type == 15"
  9750. @click="
  9751. openCocoPi(
  9752. 57,
  9753. commentIndexJson.toolIndex,
  9754. commentDetail.userid,
  9755. commentDetail.sName
  9756. )
  9757. "
  9758. >
  9759. <img src="../../assets/icon/codeFile.png" />
  9760. <div>点击打开CocoPi</div>
  9761. </div>
  9762. <div
  9763. class="worksAnswer"
  9764. v-if="commentDetail.works && commentDetail.type == 13"
  9765. >
  9766. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9767. </div>
  9768. <div
  9769. class="worksAnswer"
  9770. v-if="commentDetail.works && commentDetail.type == 4"
  9771. >
  9772. <div class="evalCss">
  9773. <div class="nav">请选择星星进行评分</div>
  9774. <div class="middleBox" v-if="eScore.eStar">
  9775. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9776. <div class="nameAndrate">
  9777. <div>{{ e.value }}</div>
  9778. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9779. </div>
  9780. <div v-if="e.detail">{{ e.detail }}</div>
  9781. </div>
  9782. <div class="bz">
  9783. <textarea
  9784. disabled
  9785. rows="4"
  9786. class="pj"
  9787. style="
  9788. padding: 10px 5px;
  9789. width: 70%;
  9790. background: #f7f6f9;
  9791. font-size: 14px;
  9792. text-indent: 10px;
  9793. color: #000;
  9794. "
  9795. cols
  9796. v-model="eScore.eBzText"
  9797. placeholder="请输入评价内容..."
  9798. ></textarea>
  9799. </div>
  9800. </div>
  9801. </div>
  9802. </div>
  9803. <div class="comment">
  9804. <div class="commentList">
  9805. <div class="commentImg">
  9806. <img
  9807. @click="
  9808. isLikes(
  9809. commentDetail.wid,
  9810. userid,
  9811. 1,
  9812. null,
  9813. commentDetail.isLikes
  9814. )
  9815. "
  9816. :src="commentDetail.isLikes == true ? likes : noLikes"
  9817. alt=""
  9818. />
  9819. </div>
  9820. <div>{{ commentDetail.likesCount }}</div>
  9821. </div>
  9822. <div class="commentList">
  9823. <div class="commentImg">
  9824. <img src="../../assets/icon/comment/comment.png" alt="" />
  9825. </div>
  9826. <div>{{ commentDetail.commentCount }}</div>
  9827. </div>
  9828. </div>
  9829. <div class="drawPBox" v-if="commentDetail.img">
  9830. <span>教师批注</span>
  9831. <img
  9832. :src="commentDetail.img"
  9833. alt=""
  9834. @click="previewImg(commentDetail.img)"
  9835. />
  9836. <span
  9837. class="deleteImg"
  9838. v-if="tType == 1 || tType == 4"
  9839. @click.stop="deletePicturePaint(commentDetail.wid)"
  9840. style="
  9841. font-size: 14px;
  9842. width: auto !important;
  9843. color: #b4b4b4;
  9844. top: unset;
  9845. bottom: 0;
  9846. border: none;
  9847. padding: 0;
  9848. height: auto !important;
  9849. margin: 0;
  9850. "
  9851. >删除</span
  9852. >
  9853. </div>
  9854. </div>
  9855. <div class="commentBox">
  9856. <div class="pl">评论:</div>
  9857. <div style="max-height: 200px; overflow: auto">
  9858. <div
  9859. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9860. style="padding: 10px 0 0 0"
  9861. >
  9862. <div
  9863. class="studentDetail"
  9864. style="padding-top: 10px"
  9865. v-for="(co, coIndex) in commentDetail.commentJson"
  9866. :key="coIndex"
  9867. >
  9868. <div class="tx" style="min-width: 50px">
  9869. <img src="../../assets/avatar.png" alt="" />
  9870. </div>
  9871. <div class="plPerson">
  9872. <div class="plName">
  9873. <div>{{ co.commentPeople }}</div>
  9874. <div style="margin-left: 5px">
  9875. {{ co.commentTime }}
  9876. </div>
  9877. <div
  9878. class="deleteComment"
  9879. v-if="userid == co.userid"
  9880. @click="deleteComment(co.wid)"
  9881. >
  9882. 删除
  9883. </div>
  9884. </div>
  9885. <div class="plContent">{{ co.commentText }}</div>
  9886. </div>
  9887. </div>
  9888. </div>
  9889. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9890. </div>
  9891. </div>
  9892. <div style="margin-top: 10px">
  9893. <div class="displayBox">
  9894. <div
  9895. style="
  9896. color: #556db4;
  9897. font-size: 14px;
  9898. font-weight: bold;
  9899. padding-bottom: 10px;
  9900. "
  9901. >
  9902. 评价
  9903. </div>
  9904. <div class="easy_comment" v-if="false">
  9905. <div
  9906. v-for="(p, pIndex) in PlTextList"
  9907. :key="pIndex"
  9908. @click="fastText(p, 1)"
  9909. >
  9910. {{ p }}
  9911. </div>
  9912. </div>
  9913. </div>
  9914. <div>
  9915. <textarea
  9916. rows="3"
  9917. class="pj"
  9918. style="padding: 10px 5px"
  9919. cols
  9920. v-model="commentText"
  9921. placeholder="请输入评论"
  9922. ></textarea>
  9923. </div>
  9924. </div>
  9925. <div slot="footer">
  9926. <el-button
  9927. @click="
  9928. (commentDialogVisible = false),
  9929. (commentIndexJson = {}),
  9930. videoDetail.sources && videoDetail.sources[0]
  9931. ? (videoDetail.sources[0].src = '')
  9932. : ''
  9933. "
  9934. >取 消</el-button
  9935. >
  9936. <el-button
  9937. type="primary"
  9938. @click="addComment(commentDetail.wid, userid, 2)"
  9939. >确 定</el-button
  9940. >
  9941. </div>
  9942. </el-dialog>
  9943. <el-dialog
  9944. title="查看文档"
  9945. :visible.sync="fullDialogVisible"
  9946. :append-to-body="true"
  9947. width="100%"
  9948. :before-close="handleClose"
  9949. :show-close="false"
  9950. class="dialog_diy full_diy"
  9951. :class="{ full_diy2: fulltype == 3 }"
  9952. >
  9953. <div slot="title" class="header-title">
  9954. <div style="color: #fff">查看文档</div>
  9955. <div
  9956. @click="fullDialogVisible = false"
  9957. style="
  9958. cursor: pointer;
  9959. position: absolute;
  9960. top: 20px;
  9961. right: 20px;
  9962. color: #fff;
  9963. "
  9964. >
  9965. 退出全屏
  9966. </div>
  9967. </div>
  9968. <div style="height: 100%">
  9969. <div
  9970. class="wheel"
  9971. v-if="
  9972. fulltype == 2 &&
  9973. fullUrl.indexOf(
  9974. 'https://view.officeapps.live.com/op/view.aspx?src='
  9975. ) != -1
  9976. "
  9977. style="width: 95%; margin: 0 auto"
  9978. >
  9979. <iframe
  9980. style="width: 100%; height: 100%; border: none"
  9981. :src="fullUrl"
  9982. ></iframe>
  9983. </div>
  9984. <iframe
  9985. v-else-if="fulltype == 2"
  9986. style="width: 100%; height: 100%; border: none"
  9987. :src="fullUrl"
  9988. security="restricted"
  9989. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9990. ></iframe>
  9991. <pdf
  9992. v-else-if="fulltype == 3"
  9993. :pdfUrl="fullUrl"
  9994. style="width: 100%; height: 100%; overflow: auto"
  9995. ></pdf>
  9996. <div
  9997. class="wheel"
  9998. v-if="fulltype == 1"
  9999. style="
  10000. box-shadow: 0 0 6px 1px #f2f2f2;
  10001. width: 100%;
  10002. background: #f1f1f1;
  10003. "
  10004. >
  10005. <div class="title" style="width: 100%; box-sizing: border-box">
  10006. 查看文档
  10007. </div>
  10008. <el-form class="textBox" style="height: 90%">
  10009. <el-form-item class="textTitle">
  10010. <div style="font-size: 22px">
  10011. {{ fullUrl.name }}
  10012. </div>
  10013. </el-form-item>
  10014. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10015. <div
  10016. v-html="fullUrl.url"
  10017. class="textContent"
  10018. style="height: auto"
  10019. ></div>
  10020. </el-form>
  10021. </div>
  10022. </div>
  10023. <!-- <div slot="footer">
  10024. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10025. </div> -->
  10026. </el-dialog>
  10027. <el-dialog
  10028. title="个人评价"
  10029. :visible.sync="studentEvalDialogVisible"
  10030. :append-to-body="true"
  10031. width="800px"
  10032. :before-close="handleClose"
  10033. class="dialog_diy"
  10034. >
  10035. <div class="evalCss">
  10036. <div class="nav">请选择星星进行评分</div>
  10037. <div class="middleBox" v-if="eScore.eStar">
  10038. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10039. <div class="nameAndrate">
  10040. <div>{{ e.value }}</div>
  10041. <el-rate
  10042. v-model="eScore.eStar[eIndex]"
  10043. :disabled="isStar"
  10044. ></el-rate>
  10045. </div>
  10046. <div v-if="e.detail">{{ e.detail }}</div>
  10047. </div>
  10048. <div class="easy_comment" v-if="false">
  10049. <div
  10050. v-for="(p, pIndex) in PlTextList"
  10051. :key="pIndex"
  10052. @click="fastText(p, 2)"
  10053. >
  10054. {{ p }}
  10055. </div>
  10056. </div>
  10057. <div class="bz">
  10058. <textarea
  10059. :disabled="isStar"
  10060. rows="4"
  10061. class="pj"
  10062. style="
  10063. padding: 10px 5px;
  10064. width: 70%;
  10065. background: #f7f6f9;
  10066. font-size: 14px;
  10067. text-indent: 10px;
  10068. "
  10069. cols
  10070. v-model="eScore.eBzText"
  10071. placeholder="请输入评价内容..."
  10072. ></textarea>
  10073. </div>
  10074. </div>
  10075. </div>
  10076. <div slot="footer">
  10077. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10078. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10079. >确 定</el-button
  10080. >
  10081. </div>
  10082. </el-dialog>
  10083. <el-dialog
  10084. title="个人评价"
  10085. :visible.sync="studentEvalDialogVisibleTeacher"
  10086. :append-to-body="true"
  10087. width="800px"
  10088. :before-close="handleClose"
  10089. class="dialog_diy"
  10090. >
  10091. <div class="w_name">
  10092. 学生姓名:<span>{{ sStudent.student }}</span>
  10093. </div>
  10094. <div class="evalCss">
  10095. <div class="nav">请选择星星进行评分</div>
  10096. <div class="middleBox" v-if="eScore.eStar">
  10097. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10098. <div class="nameAndrate">
  10099. <div>{{ e.value }}</div>
  10100. <el-rate
  10101. v-model="eScore.eStar[eIndex]"
  10102. :disabled="isStar"
  10103. ></el-rate>
  10104. </div>
  10105. <div v-if="e.detail">{{ e.detail }}</div>
  10106. </div>
  10107. <div class="easy_comment" v-if="false">
  10108. <div
  10109. v-for="(p, pIndex) in PlTextList"
  10110. :key="pIndex"
  10111. @click="fastText(p, 2)"
  10112. >
  10113. {{ p }}
  10114. </div>
  10115. </div>
  10116. <div class="bz">
  10117. <textarea
  10118. :disabled="isStar"
  10119. rows="4"
  10120. class="pj"
  10121. style="
  10122. padding: 10px 5px;
  10123. width: 70%;
  10124. background: #f7f6f9;
  10125. font-size: 14px;
  10126. text-indent: 10px;
  10127. "
  10128. cols
  10129. v-model="eScore.eBzText"
  10130. placeholder="请输入评价内容..."
  10131. ></textarea>
  10132. </div>
  10133. </div>
  10134. </div>
  10135. <div slot="footer">
  10136. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10137. >取 消</el-button
  10138. >
  10139. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10140. >确 定</el-button
  10141. >
  10142. </div>
  10143. </el-dialog>
  10144. <el-dialog
  10145. title="选择匹配"
  10146. :visible.sync="dialogVisibleSelect"
  10147. :append-to-body="true"
  10148. width="90%"
  10149. :before-close="handleClose"
  10150. class="dialog_diy dialog_diy3"
  10151. >
  10152. <div v-if="selectJson">
  10153. <div class="select_box2">
  10154. <div class="select_box2_title">
  10155. <div>选择匹配</div>
  10156. <div>请选择对应的答案进行答题!</div>
  10157. </div>
  10158. <div class="select_box2_box">
  10159. <div class="select_box2_img">
  10160. <img
  10161. :src="selectJson.url"
  10162. @click="previewImg(selectJson.url)"
  10163. alt=""
  10164. />
  10165. </div>
  10166. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10167. <div style="padding-top: 15px">
  10168. <div class="select_answer_title" v-if="isSelect">
  10169. {{ selectAnswer.stu }}
  10170. </div>
  10171. <div class="select_answer_title" v-else>
  10172. 根据题目选择对应答案
  10173. </div>
  10174. <div
  10175. class="select_box2_answer_box"
  10176. v-for="(item2, checkIndex) in selectJson.select"
  10177. :key="checkIndex"
  10178. >
  10179. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10180. <el-select
  10181. :disabled="isSelect"
  10182. v-model="selectAnswer.answer[checkIndex]"
  10183. placeholder="请选择正确答案"
  10184. >
  10185. <el-option
  10186. v-for="(e, eIndex) in selectJson.select"
  10187. :key="eIndex"
  10188. :label="e"
  10189. :value="eIndex"
  10190. >
  10191. </el-option>
  10192. </el-select>
  10193. </div>
  10194. </div>
  10195. <div
  10196. class="rightAnswerCss"
  10197. v-if="isSelect && (tType == 1 || tType == 4)"
  10198. >
  10199. <div
  10200. v-for="(a, aIndex) in selectJson.answer"
  10201. :key="aIndex"
  10202. class="rightAnswer"
  10203. >
  10204. <div
  10205. v-if="selectAnswer.answer[aIndex] === a"
  10206. style="color: #767de1"
  10207. >
  10208. 回答正确
  10209. </div>
  10210. <div v-else>回答错误</div>
  10211. <div
  10212. style="margin-left: 10px"
  10213. v-if="selectAnswer.answer[aIndex] !== a"
  10214. >
  10215. 正确答案:
  10216. </div>
  10217. <div
  10218. :class="
  10219. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10220. "
  10221. >
  10222. {{ selectJson.select[a] }}
  10223. </div>
  10224. </div>
  10225. </div>
  10226. </div>
  10227. <div class="upAnswerCss">
  10228. <el-button
  10229. type="primary"
  10230. @click="addSelectAnswer"
  10231. v-if="!isSelect"
  10232. >提交答案</el-button
  10233. >
  10234. </div>
  10235. </div>
  10236. </div>
  10237. </div>
  10238. </el-dialog>
  10239. <el-dialog
  10240. title="选择匹配"
  10241. :visible.sync="dialogVisibleSelectTeacher"
  10242. :append-to-body="true"
  10243. width="90%"
  10244. :before-close="handleClose"
  10245. class="dialog_diy dialog_diy3"
  10246. >
  10247. <div v-if="selectJson">
  10248. <div class="w_name">
  10249. 学生姓名:<span>{{ sStudent.student }}</span>
  10250. </div>
  10251. <div class="select_box2">
  10252. <div class="select_box2_title">
  10253. <div>选择匹配</div>
  10254. <div>请选择对应的答案进行答题!</div>
  10255. </div>
  10256. <div class="select_box2_box">
  10257. <div class="select_box2_img">
  10258. <img
  10259. :src="selectJson.url"
  10260. @click="previewImg(selectJson.url)"
  10261. alt=""
  10262. />
  10263. </div>
  10264. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10265. <div style="padding-top: 15px">
  10266. <div class="select_answer_title" v-if="isSelect">
  10267. {{ selectAnswer.stu }}
  10268. </div>
  10269. <div class="select_answer_title" v-else>
  10270. 根据题目选择对应答案
  10271. </div>
  10272. <div
  10273. class="select_box2_answer_box"
  10274. v-for="(item2, checkIndex) in selectJson.select"
  10275. :key="checkIndex"
  10276. >
  10277. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10278. <el-select
  10279. :disabled="isSelect"
  10280. v-model="selectAnswer.answer[checkIndex]"
  10281. placeholder="请选择正确答案"
  10282. >
  10283. <el-option
  10284. v-for="(e, eIndex) in selectJson.select"
  10285. :key="eIndex"
  10286. :label="e"
  10287. :value="eIndex"
  10288. >
  10289. </el-option>
  10290. </el-select>
  10291. </div>
  10292. </div>
  10293. <div
  10294. class="rightAnswerCss"
  10295. v-if="isSelect && (tType == 1 || tType == 4)"
  10296. >
  10297. <div
  10298. v-for="(a, aIndex) in selectJson.answer"
  10299. :key="aIndex"
  10300. class="rightAnswer"
  10301. >
  10302. <div
  10303. v-if="selectAnswer.answer[aIndex] === a"
  10304. style="color: #767de1"
  10305. >
  10306. 回答正确
  10307. </div>
  10308. <div v-else>回答错误</div>
  10309. <div
  10310. style="margin-left: 10px"
  10311. v-if="selectAnswer.answer[aIndex] !== a"
  10312. >
  10313. 正确答案:
  10314. </div>
  10315. <div
  10316. :class="
  10317. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10318. "
  10319. >
  10320. {{ selectJson.select[a] }}
  10321. </div>
  10322. </div>
  10323. </div>
  10324. </div>
  10325. <div class="upAnswerCss">
  10326. <el-button
  10327. type="primary"
  10328. @click="addSelectAnswerTeacher"
  10329. v-if="!isSelect"
  10330. >提交答案</el-button
  10331. >
  10332. </div>
  10333. </div>
  10334. </div>
  10335. </div>
  10336. </el-dialog>
  10337. <el-dialog
  10338. title="教师评分"
  10339. :visible.sync="dialogVisibleScore"
  10340. :append-to-body="true"
  10341. width="800px"
  10342. :before-close="handleClose"
  10343. class="dialog_diy"
  10344. >
  10345. <div>
  10346. <div class="studentDetail">
  10347. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10348. <div class="nameAndTime">
  10349. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10350. <div>{{ commentDetail.time }}</div>
  10351. </div>
  10352. </div>
  10353. <div
  10354. class="worksAnswer"
  10355. v-if="commentDetail.works && commentDetail.type == 2"
  10356. >
  10357. {{ JSON.parse(commentDetail.works)[0].answer }}
  10358. </div>
  10359. <div
  10360. class="worksAnswer"
  10361. v-if="commentDetail.works && commentDetail.type == 1"
  10362. >
  10363. <pdf
  10364. v-if="showPDF"
  10365. :pdfUrl="pptImgUrl"
  10366. style="width: 100%; height: 520px; overflow: auto"
  10367. :class="{ fullStyle: full }"
  10368. ></pdf>
  10369. <iframe
  10370. v-else
  10371. :src="pptImgUrl"
  10372. frameborder="0"
  10373. width="100%"
  10374. height="600"
  10375. :class="{ fullStyle: full }"
  10376. ></iframe>
  10377. </div>
  10378. <div
  10379. class="worksAnswer"
  10380. v-if="commentDetail.works && commentDetail.type == 0"
  10381. >
  10382. <img
  10383. :src="commentDetail.works"
  10384. alt=""
  10385. @click="previewImg(commentDetail.works)"
  10386. />
  10387. </div>
  10388. <div
  10389. class="worksAnswer"
  10390. v-if="commentDetail.works && commentDetail.type == 3"
  10391. >
  10392. <video-player
  10393. class="video-player vjs-custom-skin"
  10394. :playsinline="true"
  10395. :options="videoDetail"
  10396. @play="onPlayerPlay($event)"
  10397. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10398. ></video-player>
  10399. </div>
  10400. <div
  10401. class="worksAnswer codeFileBox"
  10402. v-if="commentDetail.works && commentDetail.type == 12"
  10403. @click="downloadFile(commentDetail.works)"
  10404. >
  10405. <img src="../../assets/icon/codeFile.png" />
  10406. <div>点击下载文件</div>
  10407. </div>
  10408. <div
  10409. class="worksAnswer codeFileBox"
  10410. v-if="commentDetail.works && commentDetail.type == 15"
  10411. @click="
  10412. openCocoPi(
  10413. 57,
  10414. commentIndexJson.toolIndex,
  10415. commentDetail.userid,
  10416. commentDetail.sName
  10417. )
  10418. "
  10419. >
  10420. <img src="../../assets/icon/codeFile.png" />
  10421. <div>点击打开CocoPi</div>
  10422. </div>
  10423. <div
  10424. class="worksAnswer"
  10425. v-if="commentDetail.works && commentDetail.type == 13"
  10426. >
  10427. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10428. </div>
  10429. <div class="scoreBox">
  10430. <span class="t">请输入分数</span>
  10431. <el-input-number
  10432. :disabled="courseDetail.userid != userid"
  10433. v-model="wScore"
  10434. :controls="false"
  10435. :min="0"
  10436. :max="100"
  10437. ></el-input-number>
  10438. </div>
  10439. <div class="scoreDetailBox">
  10440. <span class="t">评分评论</span>
  10441. <el-input
  10442. type="textarea"
  10443. :rows="5"
  10444. :disabled="courseDetail.userid != userid"
  10445. resize="none"
  10446. v-model="scoreDetail"
  10447. placeholder="请输入对学生的评价"
  10448. >
  10449. </el-input>
  10450. </div>
  10451. </div>
  10452. <span slot="footer" class="dialog-footer">
  10453. <el-button
  10454. @click="
  10455. (dialogVisibleScore = false),
  10456. (commentIndexJson = {}),
  10457. videoDetail.sources && videoDetail.sources[0]
  10458. ? (videoDetail.sources[0].src = '')
  10459. : ''
  10460. "
  10461. >取 消</el-button
  10462. >
  10463. <el-button
  10464. type="primary"
  10465. v-if="courseDetail.userid == userid"
  10466. @click="scoreWork(commentDetail.wid)"
  10467. >确 定
  10468. </el-button>
  10469. </span>
  10470. </el-dialog>
  10471. <el-dialog
  10472. title="排序"
  10473. :visible.sync="dialogVisibleSentence"
  10474. :append-to-body="true"
  10475. width="1000px"
  10476. :before-close="handleClose"
  10477. class="dialog_diy dialog_diy3"
  10478. >
  10479. <div>
  10480. <div class="sentenBox">
  10481. <div
  10482. v-for="(st, stIndex) in sentenceList"
  10483. :key="stIndex"
  10484. style="padding-bottom: 20px"
  10485. >
  10486. <div
  10487. style="padding: 15px 0 10px 20px"
  10488. class="sentenceTitle"
  10489. :index="stIndex + 1"
  10490. >
  10491. 题目{{ stIndex + 1 }}:请选择正确顺序
  10492. </div>
  10493. <div class="cardList" v-if="st.chooseSenList">
  10494. <div class="cardBox">
  10495. <div
  10496. v-for="(r, rIndex) in st.chooseSenList"
  10497. :key="rIndex"
  10498. @click="returnCard(r, stIndex, rIndex)"
  10499. >
  10500. <el-tooltip
  10501. class="item"
  10502. effect="light"
  10503. :content="r"
  10504. placement="top"
  10505. v-if="r != '' && r != undefined"
  10506. >
  10507. <div
  10508. :class="{
  10509. isCard: r,
  10510. isChooseCard: r == '' || r == undefined,
  10511. }"
  10512. >
  10513. <div>{{ r }}</div>
  10514. </div>
  10515. </el-tooltip>
  10516. <div
  10517. :class="{
  10518. isCard: r,
  10519. isChooseCard: r == '' || r == undefined,
  10520. }"
  10521. v-else
  10522. >
  10523. <div>{{ r }}</div>
  10524. </div>
  10525. </div>
  10526. </div>
  10527. </div>
  10528. <div class="cardList" v-if="st.addChangeSen">
  10529. <div class="cardBox">
  10530. <div
  10531. v-for="(s, sIndex) in st.addChangeSen"
  10532. :key="sIndex"
  10533. @click="setRightAnswer(s, stIndex, sIndex)"
  10534. >
  10535. <el-tooltip
  10536. class="item"
  10537. effect="light"
  10538. :content="s"
  10539. placement="top"
  10540. v-if="s != '' && s != undefined"
  10541. >
  10542. <div
  10543. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10544. >
  10545. <div>{{ s }}</div>
  10546. </div>
  10547. </el-tooltip>
  10548. <div
  10549. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10550. v-else
  10551. >
  10552. <div>{{ s }}</div>
  10553. </div>
  10554. </div>
  10555. </div>
  10556. </div>
  10557. </div>
  10558. </div>
  10559. </div>
  10560. <span slot="footer" class="dialog-footer">
  10561. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10562. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10563. </span>
  10564. </el-dialog>
  10565. <el-dialog
  10566. title="排序"
  10567. :visible.sync="dialogVisibleSentenceTeacher"
  10568. :append-to-body="true"
  10569. width="1000px"
  10570. :before-close="handleClose"
  10571. class="dialog_diy dialog_diy3"
  10572. >
  10573. <div>
  10574. <div class="w_name">
  10575. 学生姓名:<span>{{ sStudent.student }}</span>
  10576. </div>
  10577. <div class="sentenBox">
  10578. <div
  10579. v-for="(st, stIndex) in sentenceList"
  10580. :key="stIndex"
  10581. style="padding-bottom: 20px"
  10582. >
  10583. <div
  10584. style="padding: 15px 0 10px 20px"
  10585. class="sentenceTitle"
  10586. :index="stIndex + 1"
  10587. >
  10588. 题目{{ stIndex + 1 }}:请选择正确顺序
  10589. </div>
  10590. <div class="cardList" v-if="st.chooseSenList">
  10591. <div class="cardBox">
  10592. <div
  10593. v-for="(r, rIndex) in st.chooseSenList"
  10594. :key="rIndex"
  10595. @click="returnCard(r, stIndex, rIndex)"
  10596. >
  10597. <el-tooltip
  10598. class="item"
  10599. effect="light"
  10600. :content="r"
  10601. placement="top"
  10602. v-if="r != '' && r != undefined"
  10603. >
  10604. <div
  10605. :class="{
  10606. isCard: r,
  10607. isChooseCard: r == '' || r == undefined,
  10608. }"
  10609. >
  10610. <div>{{ r }}</div>
  10611. </div>
  10612. </el-tooltip>
  10613. <div
  10614. :class="{
  10615. isCard: r,
  10616. isChooseCard: r == '' || r == undefined,
  10617. }"
  10618. v-else
  10619. >
  10620. <div>{{ r }}</div>
  10621. </div>
  10622. </div>
  10623. </div>
  10624. </div>
  10625. <div class="cardList" v-if="st.addChangeSen">
  10626. <div class="cardBox">
  10627. <div
  10628. v-for="(s, sIndex) in st.addChangeSen"
  10629. :key="sIndex"
  10630. @click="setRightAnswer(s, stIndex, sIndex)"
  10631. >
  10632. <el-tooltip
  10633. class="item"
  10634. effect="light"
  10635. :content="s"
  10636. placement="top"
  10637. v-if="s != '' && s != undefined"
  10638. >
  10639. <div
  10640. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10641. >
  10642. <div>{{ s }}</div>
  10643. </div>
  10644. </el-tooltip>
  10645. <div
  10646. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10647. v-else
  10648. >
  10649. <div>{{ s }}</div>
  10650. </div>
  10651. </div>
  10652. </div>
  10653. </div>
  10654. </div>
  10655. </div>
  10656. </div>
  10657. <span slot="footer" class="dialog-footer">
  10658. <el-button @click="dialogVisibleSentenceTeacher = false"
  10659. >取 消</el-button
  10660. >
  10661. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10662. </span>
  10663. </el-dialog>
  10664. <el-dialog
  10665. title="排序"
  10666. :visible.sync="dialogVisibleSentence1"
  10667. :append-to-body="true"
  10668. width="1000px"
  10669. :before-close="handleClose"
  10670. class="dialog_diy dialog_diy3"
  10671. >
  10672. <div>
  10673. <div class="sentenBox">
  10674. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10675. {{ sentenceList1.stuName }}的作业
  10676. </div>
  10677. <div
  10678. v-for="(st, stIndex) in sentenceList1"
  10679. :key="stIndex"
  10680. style="padding-bottom: 20px"
  10681. >
  10682. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10683. 第{{ stIndex + 1 }}题
  10684. </div>
  10685. <div class="isWrong">
  10686. <div class="cardList1" v-if="st.chooseSenList">
  10687. <div class="cardBox">
  10688. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10689. <el-tooltip
  10690. class="item"
  10691. effect="light"
  10692. :content="s"
  10693. placement="top"
  10694. >
  10695. <div class="isCard">
  10696. <div>{{ s }}</div>
  10697. </div>
  10698. </el-tooltip>
  10699. </div>
  10700. </div>
  10701. <div class="cardAnswerBox">
  10702. 组成句子:{{ st.chooseSenList.join(" ") }}
  10703. </div>
  10704. </div>
  10705. <div v-if="tType == 2" class="isTj">
  10706. <div class="isTjImg">
  10707. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10708. </div>
  10709. <div>已提交</div>
  10710. </div>
  10711. <div
  10712. class="answerRight isTj"
  10713. v-if="
  10714. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10715. (tType == 1 || tType == 4)
  10716. "
  10717. >
  10718. <div class="isTjImg">
  10719. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10720. </div>
  10721. <div>回答正确</div>
  10722. </div>
  10723. <div
  10724. class="answerRight isTj"
  10725. v-if="
  10726. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10727. (tType == 1 || tType == 4)
  10728. "
  10729. >
  10730. <div class="isTjImg">
  10731. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10732. </div>
  10733. <div>回答错误</div>
  10734. </div>
  10735. </div>
  10736. <div
  10737. v-if="
  10738. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10739. (tType == 1 || tType == 4)
  10740. "
  10741. >
  10742. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10743. <div
  10744. class="cardList"
  10745. v-if="st.rightAnswer"
  10746. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10747. >
  10748. <div class="cardBox">
  10749. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10750. <el-tooltip
  10751. class="item"
  10752. effect="light"
  10753. :content="r"
  10754. placement="top"
  10755. >
  10756. <div class="isCard1">
  10757. <div>{{ r }}</div>
  10758. </div>
  10759. </el-tooltip>
  10760. </div>
  10761. </div>
  10762. <div class="cardAnswerBox">
  10763. 组成句子:{{ st.rightAnswer.join(" ") }}
  10764. </div>
  10765. </div>
  10766. </div>
  10767. </div>
  10768. </div>
  10769. </div>
  10770. <span slot="footer" class="dialog-footer">
  10771. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10772. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10773. >确 定</el-button
  10774. >
  10775. </span>
  10776. </el-dialog>
  10777. <el-dialog
  10778. title="教师提交作业"
  10779. :visible.sync="dialogVisibleWorks"
  10780. :append-to-body="true"
  10781. width="500px"
  10782. :before-close="handleClose"
  10783. class="dialog_change"
  10784. >
  10785. <div class="marginT">
  10786. <div class="w_name">
  10787. 学生姓名:<span>{{ sStudent.student }}</span>
  10788. </div>
  10789. <div>上传文件</div>
  10790. <div
  10791. class="chapter_add"
  10792. @click="addImg($event)"
  10793. v-if="studyJuri[0].cover.length == 0"
  10794. >
  10795. <div class="up_photo">
  10796. <img src="../../assets/uploadImg2.png" alt />
  10797. </div>
  10798. <!-- <input
  10799. type="file"
  10800. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10801. style="display: none"
  10802. @change="beforeUpload1($event, 1)"
  10803. /> -->
  10804. <input
  10805. type="file"
  10806. accept="*"
  10807. style="display: none"
  10808. @change="beforeUpload1($event, 1)"
  10809. />
  10810. </div>
  10811. <!-- capture="camera" -->
  10812. <div
  10813. class="chapter_add"
  10814. style="
  10815. display: flex;
  10816. width: 100%;
  10817. flex-direction: row;
  10818. flex-wrap: wrap;
  10819. justify-content: flex-start;
  10820. padding: 15px 0;
  10821. "
  10822. v-if="studyJuri[0].cover.length > 0"
  10823. >
  10824. <div class="upCover">
  10825. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10826. <img :src="word" alt v-else-if="fileType == 1" />
  10827. <img :src="video" alt v-else-if="fileType == 2" />
  10828. <img :src="word2" alt v-else-if="fileType == 3" />
  10829. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10830. <div class="deleteWord" @click="clean(1)">
  10831. <img src="../../assets/icon/deleteWorks.png" alt />
  10832. </div>
  10833. </div>
  10834. </div>
  10835. </div>
  10836. <div
  10837. class="upload_send"
  10838. @click="addCourseWorksTeacher(taskCount)"
  10839. v-if="!proVisible"
  10840. >
  10841. 提交
  10842. </div>
  10843. </el-dialog>
  10844. <ImgDraw
  10845. :drawShow="drawShow"
  10846. @closeDraw="closeDraw"
  10847. @addImgDraw="addImgDraw"
  10848. :bg="bg"
  10849. ></ImgDraw>
  10850. <el-dialog
  10851. title="表格"
  10852. :visible.sync="dialogVisibleTable"
  10853. :append-to-body="true"
  10854. width="95%"
  10855. :before-close="handleClose"
  10856. class="dialog_diy"
  10857. >
  10858. <el-form>
  10859. <div
  10860. style="
  10861. display: flex;
  10862. align-items: center;
  10863. justify-content: space-between;
  10864. "
  10865. >
  10866. <span>表格内容</span>
  10867. <el-button type="primary" size="small" @click="returnTableText"
  10868. >还原模板</el-button
  10869. >
  10870. </div>
  10871. <Table
  10872. v-model="tableJson.text"
  10873. @change="change"
  10874. v-if="dialogVisibleTable"
  10875. ></Table>
  10876. </el-form>
  10877. <span slot="footer" class="dialog-footer">
  10878. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10879. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10880. </span>
  10881. </el-dialog>
  10882. <el-dialog
  10883. title="表格"
  10884. :visible.sync="dialogVisibleTableTeacher"
  10885. :append-to-body="true"
  10886. width="95%"
  10887. :before-close="handleClose"
  10888. class="dialog_diy"
  10889. >
  10890. <el-form>
  10891. <div class="w_name">
  10892. 学生姓名:<span>{{ sStudent.student }}</span>
  10893. </div>
  10894. <div>表格内容</div>
  10895. <Table
  10896. v-model="tableJson.text"
  10897. @change="change"
  10898. v-if="dialogVisibleTableTeacher"
  10899. ></Table>
  10900. </el-form>
  10901. <span slot="footer" class="dialog-footer">
  10902. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10903. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10904. </span>
  10905. </el-dialog>
  10906. <el-dialog
  10907. title="文档"
  10908. :visible.sync="dialogVisibleWord"
  10909. :append-to-body="true"
  10910. width="95%"
  10911. :before-close="handleClose"
  10912. class="dialog_diy"
  10913. >
  10914. <el-form>
  10915. <div
  10916. style="
  10917. display: flex;
  10918. align-items: center;
  10919. justify-content: space-between;
  10920. "
  10921. >
  10922. <span>文档内容</span>
  10923. <el-button type="primary" size="small" @click="returnWordText"
  10924. >还原模板</el-button
  10925. >
  10926. </div>
  10927. <editor-bar
  10928. v-model="wordJson.text"
  10929. v-if="dialogVisibleWord"
  10930. ></editor-bar>
  10931. </el-form>
  10932. <span slot="footer" class="dialog-footer">
  10933. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10934. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10935. </span>
  10936. </el-dialog>
  10937. <el-dialog
  10938. title="文档"
  10939. :visible.sync="dialogVisibleWordTeacher"
  10940. :append-to-body="true"
  10941. width="95%"
  10942. :before-close="handleClose"
  10943. class="dialog_diy"
  10944. >
  10945. <el-form>
  10946. <div class="w_name">
  10947. 学生姓名:<span>{{ sStudent.student }}</span>
  10948. </div>
  10949. <div>文档内容</div>
  10950. <editor-bar
  10951. v-model="wordJson.text"
  10952. v-if="dialogVisibleWordTeacher"
  10953. ></editor-bar>
  10954. </el-form>
  10955. <span slot="footer" class="dialog-footer">
  10956. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10957. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10958. </span>
  10959. </el-dialog>
  10960. <el-dialog
  10961. title="表格"
  10962. :visible.sync="dialogVisibleTable2"
  10963. :append-to-body="true"
  10964. width="95%"
  10965. :before-close="handleClose"
  10966. class="dialog_diy"
  10967. >
  10968. <el-form>
  10969. <div class="cont" v-html="tableJson.text"></div>
  10970. </el-form>
  10971. <span slot="footer" class="dialog-footer">
  10972. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10973. </span>
  10974. </el-dialog>
  10975. <el-dialog
  10976. title="文档"
  10977. :visible.sync="dialogVisibleTable3"
  10978. :append-to-body="true"
  10979. width="95%"
  10980. :before-close="handleClose"
  10981. class="dialog_diy"
  10982. >
  10983. <el-form>
  10984. <div class="cont" v-html="tableJson.text"></div>
  10985. </el-form>
  10986. <span slot="footer" class="dialog-footer">
  10987. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10988. </span>
  10989. </el-dialog>
  10990. <el-dialog
  10991. title="分组设置"
  10992. :visible.sync="dialogVisibleGroup"
  10993. :append-to-body="true"
  10994. width="95%"
  10995. :before-close="handleClose"
  10996. class="dialog_diy"
  10997. >
  10998. <div v-if="dialogVisibleGroup">
  10999. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11000. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11001. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11002. </div>
  11003. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11004. @click="lockChair">
  11005. 锁定位置
  11006. </div>
  11007. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11008. 解锁位置
  11009. </div> -->
  11010. <div class="group_switch">
  11011. <span>开放选座</span>
  11012. <el-switch
  11013. v-model="islock"
  11014. active-text=""
  11015. class="switchCss"
  11016. @change="lockChair"
  11017. ></el-switch>
  11018. </div>
  11019. <div
  11020. type="primary"
  11021. @click="updateGroup"
  11022. class="returnBtn"
  11023. style="background-color: #225bc7"
  11024. >
  11025. 分组设置
  11026. </div>
  11027. </div>
  11028. <div>
  11029. <div
  11030. class="g_d_box"
  11031. v-if="groupJson.group && groupStudent[toolindex]"
  11032. >
  11033. <div
  11034. class="g_d_group"
  11035. v-for="(g, gindex) in groupJson.group"
  11036. :key="gindex"
  11037. >
  11038. <div class="g_d_group_chair">
  11039. <div v-if="groupJson.number > 1">
  11040. <span
  11041. :class="{
  11042. isChair:
  11043. groupStudent[toolindex][gindex] &&
  11044. groupStudent[toolindex][gindex][0],
  11045. updateChair:
  11046. courseDetail.userid == userid &&
  11047. groupStudent[toolindex][gindex] &&
  11048. groupStudent[toolindex][gindex][0] &&
  11049. groupJson.islock == 2,
  11050. }"
  11051. ><span
  11052. class="updateChairBtn"
  11053. @click="
  11054. updateGroupChair(
  11055. groupStudent[toolindex][gindex] &&
  11056. groupStudent[toolindex][gindex][0]
  11057. )
  11058. "
  11059. >修改</span
  11060. ></span
  11061. ><span>{{
  11062. groupStudent[toolindex][gindex] &&
  11063. groupStudent[toolindex][gindex][0]
  11064. ? groupStudent[toolindex][gindex] &&
  11065. groupStudent[toolindex][gindex][0].name
  11066. : "空位置"
  11067. }}</span>
  11068. </div>
  11069. <div v-if="groupJson.number > 4">
  11070. <span
  11071. :class="{
  11072. isChair:
  11073. groupStudent[toolindex][gindex] &&
  11074. groupStudent[toolindex][gindex][4],
  11075. updateChair:
  11076. courseDetail.userid == userid &&
  11077. groupStudent[toolindex][gindex] &&
  11078. groupStudent[toolindex][gindex][4] &&
  11079. groupJson.islock == 2,
  11080. }"
  11081. ><span
  11082. class="updateChairBtn"
  11083. @click="
  11084. updateGroupChair(
  11085. groupStudent[toolindex][gindex] &&
  11086. groupStudent[toolindex][gindex][4]
  11087. )
  11088. "
  11089. >修改</span
  11090. ></span
  11091. ><span>{{
  11092. groupStudent[toolindex][gindex] &&
  11093. groupStudent[toolindex][gindex][4]
  11094. ? groupStudent[toolindex][gindex] &&
  11095. groupStudent[toolindex][gindex][4].name
  11096. : "空位置"
  11097. }}</span>
  11098. </div>
  11099. <div v-if="groupJson.number > 8">
  11100. <span
  11101. :class="{
  11102. isChair:
  11103. groupStudent[toolindex][gindex] &&
  11104. groupStudent[toolindex][gindex][8],
  11105. updateChair:
  11106. courseDetail.userid == userid &&
  11107. groupStudent[toolindex][gindex] &&
  11108. groupStudent[toolindex][gindex][8] &&
  11109. groupJson.islock == 2,
  11110. }"
  11111. ><span
  11112. class="updateChairBtn"
  11113. @click="
  11114. updateGroupChair(
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][8]
  11117. )
  11118. "
  11119. >修改</span
  11120. ></span
  11121. ><span>{{
  11122. groupStudent[toolindex][gindex] &&
  11123. groupStudent[toolindex][gindex][8]
  11124. ? groupStudent[toolindex][gindex] &&
  11125. groupStudent[toolindex][gindex][8].name
  11126. : "空位置"
  11127. }}</span>
  11128. </div>
  11129. </div>
  11130. <div class="g_d_group_tableBox">
  11131. <div class="g_d_group_chair2">
  11132. <div v-if="groupJson.number > 2">
  11133. <span
  11134. :class="{
  11135. isChair:
  11136. groupStudent[toolindex][gindex] &&
  11137. groupStudent[toolindex][gindex][2],
  11138. updateChair:
  11139. courseDetail.userid == userid &&
  11140. groupStudent[toolindex][gindex] &&
  11141. groupStudent[toolindex][gindex][2] &&
  11142. groupJson.islock == 2,
  11143. }"
  11144. ><span
  11145. class="updateChairBtn"
  11146. @click="
  11147. updateGroupChair(
  11148. groupStudent[toolindex][gindex] &&
  11149. groupStudent[toolindex][gindex][2]
  11150. )
  11151. "
  11152. >修改</span
  11153. ></span
  11154. ><span>{{
  11155. groupStudent[toolindex][gindex] &&
  11156. groupStudent[toolindex][gindex][2]
  11157. ? groupStudent[toolindex][gindex] &&
  11158. groupStudent[toolindex][gindex][2].name
  11159. : "空位置"
  11160. }}</span>
  11161. </div>
  11162. <div v-if="groupJson.number > 6">
  11163. <span
  11164. :class="{
  11165. isChair:
  11166. groupStudent[toolindex][gindex] &&
  11167. groupStudent[toolindex][gindex][6],
  11168. updateChair:
  11169. courseDetail.userid == userid &&
  11170. groupStudent[toolindex][gindex] &&
  11171. groupStudent[toolindex][gindex][6] &&
  11172. groupJson.islock == 2,
  11173. }"
  11174. ><span
  11175. class="updateChairBtn"
  11176. @click="
  11177. updateGroupChair(
  11178. groupStudent[toolindex][gindex] &&
  11179. groupStudent[toolindex][gindex][6]
  11180. )
  11181. "
  11182. >修改</span
  11183. ></span
  11184. ><span>{{
  11185. groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][6]
  11187. ? groupStudent[toolindex][gindex] &&
  11188. groupStudent[toolindex][gindex][6].name
  11189. : "空位置"
  11190. }}</span>
  11191. </div>
  11192. </div>
  11193. <div class="g_d_group_table">
  11194. <div>
  11195. {{ g.name }}
  11196. </div>
  11197. <div>
  11198. <div
  11199. v-if="
  11200. courseDetail.userid == userid && groupJson.islock == 2
  11201. "
  11202. @click="deleteGroupChair(gindex)"
  11203. >
  11204. 移除组员
  11205. </div>
  11206. <div
  11207. @click="selectGroup(gindex)"
  11208. v-else-if="
  11209. groupStudentUid[toolindex] &&
  11210. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11211. "
  11212. >
  11213. 加入分组
  11214. </div>
  11215. <div
  11216. @click="
  11217. exitGroup(
  11218. groupStudent[toolindex][gindex] &&
  11219. groupStudent[toolindex][gindex][
  11220. groupStudentUid[toolindex][gindex].indexOf(userid)
  11221. ].id
  11222. )
  11223. "
  11224. v-else-if="
  11225. groupStudentUid[toolindex] &&
  11226. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11227. "
  11228. >
  11229. 退出分组
  11230. </div>
  11231. </div>
  11232. </div>
  11233. <div class="g_d_group_chair2">
  11234. <div v-if="groupJson.number > 3">
  11235. <span
  11236. :class="{
  11237. isChair:
  11238. groupStudent[toolindex][gindex] &&
  11239. groupStudent[toolindex][gindex][3],
  11240. updateChair:
  11241. courseDetail.userid == userid &&
  11242. groupStudent[toolindex][gindex] &&
  11243. groupStudent[toolindex][gindex][3] &&
  11244. groupJson.islock == 2,
  11245. }"
  11246. ><span
  11247. class="updateChairBtn"
  11248. @click="
  11249. updateGroupChair(
  11250. groupStudent[toolindex][gindex] &&
  11251. groupStudent[toolindex][gindex][3]
  11252. )
  11253. "
  11254. >修改</span
  11255. ></span
  11256. ><span>{{
  11257. groupStudent[toolindex][gindex] &&
  11258. groupStudent[toolindex][gindex][3]
  11259. ? groupStudent[toolindex][gindex] &&
  11260. groupStudent[toolindex][gindex][3].name
  11261. : "空位置"
  11262. }}</span>
  11263. </div>
  11264. <div v-if="groupJson.number > 7">
  11265. <span
  11266. :class="{
  11267. isChair:
  11268. groupStudent[toolindex][gindex] &&
  11269. groupStudent[toolindex][gindex][7],
  11270. updateChair:
  11271. courseDetail.userid == userid &&
  11272. groupStudent[toolindex][gindex] &&
  11273. groupStudent[toolindex][gindex][7] &&
  11274. groupJson.islock == 2,
  11275. }"
  11276. ><span
  11277. class="updateChairBtn"
  11278. @click="
  11279. updateGroupChair(
  11280. groupStudent[toolindex][gindex] &&
  11281. groupStudent[toolindex][gindex][7]
  11282. )
  11283. "
  11284. >修改</span
  11285. ></span
  11286. ><span>{{
  11287. groupStudent[toolindex][gindex] &&
  11288. groupStudent[toolindex][gindex][7]
  11289. ? groupStudent[toolindex][gindex] &&
  11290. groupStudent[toolindex][gindex][7].name
  11291. : "空位置"
  11292. }}</span>
  11293. </div>
  11294. </div>
  11295. </div>
  11296. <div class="g_d_group_chair">
  11297. <div v-if="groupJson.number > 1">
  11298. <span
  11299. :class="{
  11300. isChair:
  11301. groupStudent[toolindex][gindex] &&
  11302. groupStudent[toolindex][gindex][1],
  11303. updateChair:
  11304. courseDetail.userid == userid &&
  11305. groupStudent[toolindex][gindex] &&
  11306. groupStudent[toolindex][gindex][1] &&
  11307. groupJson.islock == 2,
  11308. }"
  11309. ><span
  11310. class="updateChairBtn"
  11311. @click="
  11312. updateGroupChair(
  11313. groupStudent[toolindex][gindex] &&
  11314. groupStudent[toolindex][gindex][1]
  11315. )
  11316. "
  11317. >修改</span
  11318. ></span
  11319. ><span>{{
  11320. groupStudent[toolindex][gindex] &&
  11321. groupStudent[toolindex][gindex][1]
  11322. ? groupStudent[toolindex][gindex] &&
  11323. groupStudent[toolindex][gindex][1].name
  11324. : "空位置"
  11325. }}</span>
  11326. </div>
  11327. <div v-if="groupJson.number > 5">
  11328. <span
  11329. :class="{
  11330. isChair:
  11331. groupStudent[toolindex][gindex] &&
  11332. groupStudent[toolindex][gindex][5],
  11333. updateChair:
  11334. courseDetail.userid == userid &&
  11335. groupStudent[toolindex][gindex] &&
  11336. groupStudent[toolindex][gindex][5] &&
  11337. groupJson.islock == 2,
  11338. }"
  11339. ><span
  11340. class="updateChairBtn"
  11341. @click="
  11342. updateGroupChair(
  11343. groupStudent[toolindex][gindex] &&
  11344. groupStudent[toolindex][gindex][5]
  11345. )
  11346. "
  11347. >修改</span
  11348. ></span
  11349. ><span>{{
  11350. groupStudent[toolindex][gindex] &&
  11351. groupStudent[toolindex][gindex][5]
  11352. ? groupStudent[toolindex][gindex] &&
  11353. groupStudent[toolindex][gindex][5].name
  11354. : "空位置"
  11355. }}</span>
  11356. </div>
  11357. <div v-if="groupJson.number > 9">
  11358. <span
  11359. :class="{
  11360. isChair:
  11361. groupStudent[toolindex][gindex] &&
  11362. groupStudent[toolindex][gindex][9],
  11363. updateChair:
  11364. courseDetail.userid == userid &&
  11365. groupStudent[toolindex][gindex] &&
  11366. groupStudent[toolindex][gindex][9] &&
  11367. groupJson.islock == 2,
  11368. }"
  11369. ><span
  11370. class="updateChairBtn"
  11371. @click="
  11372. updateGroupChair(
  11373. groupStudent[toolindex][gindex] &&
  11374. groupStudent[toolindex][gindex][9]
  11375. )
  11376. "
  11377. >修改</span
  11378. ></span
  11379. ><span>{{
  11380. groupStudent[toolindex][gindex] &&
  11381. groupStudent[toolindex][gindex][9]
  11382. ? groupStudent[toolindex][gindex] &&
  11383. groupStudent[toolindex][gindex][9].name
  11384. : "空位置"
  11385. }}</span>
  11386. </div>
  11387. </div>
  11388. </div>
  11389. </div>
  11390. </div>
  11391. </div>
  11392. <span slot="footer" class="dialog-footer">
  11393. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11394. </span>
  11395. </el-dialog>
  11396. <el-dialog
  11397. title="分组设置"
  11398. :visible.sync="dialogVisibleGroup2"
  11399. :append-to-body="true"
  11400. width="650px"
  11401. :before-close="handleClose"
  11402. class="dialog_diy"
  11403. >
  11404. <div class="groupBox">
  11405. <div v-if="groupJson2.group" class="groupContent">
  11406. <div class="groupTitle">请设置小组数量及名称</div>
  11407. <div
  11408. v-for="(item, index) in groupJson2.group"
  11409. :key="index"
  11410. class="groupName"
  11411. >
  11412. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11413. <el-input
  11414. v-model="item.name"
  11415. placeholder="请输入名称..."
  11416. style="width: 250px"
  11417. ></el-input>
  11418. <!-- <div class="groupBtn">
  11419. <el-button type="primary" size="small" @click="addGroup(index)">
  11420. 添加</el-button>
  11421. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11422. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11423. </div> -->
  11424. </div>
  11425. </div>
  11426. <div class="groupContent">
  11427. <div class="groupTitle">请设置每组人数</div>
  11428. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11429. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11430. <el-input
  11431. v-model="groupJson.number"
  11432. style="width: 150px"
  11433. placeholder="请输入2-10的数字"
  11434. @change="numberPan"
  11435. ></el-input>
  11436. </div>
  11437. </div>
  11438. <span slot="footer" class="dialog-footer">
  11439. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11440. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11441. </span>
  11442. </el-dialog>
  11443. <el-dialog
  11444. title="作业提交"
  11445. :visible.sync="dialogVisibleGroupWork"
  11446. :append-to-body="true"
  11447. width="500px"
  11448. :before-close="handleClose"
  11449. class="dialog_change"
  11450. >
  11451. <div class="marginT">
  11452. <div>上传文件</div>
  11453. <div
  11454. class="chapter_add"
  11455. @click="addImg($event)"
  11456. v-if="studyJuri[0].cover.length == 0"
  11457. >
  11458. <div class="up_photo">
  11459. <img src="../../assets/icon/uploadImg.png" alt />
  11460. </div>
  11461. <!-- <input
  11462. type="file"
  11463. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11464. style="display: none"
  11465. @change="beforeUpload1($event, 1)"
  11466. /> -->
  11467. <input
  11468. type="file"
  11469. accept="*"
  11470. style="display: none"
  11471. @change="beforeUpload1($event, 1)"
  11472. />
  11473. </div>
  11474. <!-- capture="camera" -->
  11475. <div
  11476. class="chapter_add"
  11477. style="
  11478. display: flex;
  11479. width: 100%;
  11480. flex-direction: row;
  11481. flex-wrap: wrap;
  11482. justify-content: flex-start;
  11483. padding: 15px 0;
  11484. "
  11485. v-if="studyJuri[0].cover.length > 0"
  11486. >
  11487. <div class="upCover">
  11488. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11489. <img :src="word" alt v-else-if="fileType == 1" />
  11490. <img :src="video" alt v-else-if="fileType == 2" />
  11491. <img :src="word2" alt v-else-if="fileType == 3" />
  11492. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11493. <div class="deleteWord" @click="clean(1)">
  11494. <img src="../../assets/icon/deleteWorks.png" alt />
  11495. </div>
  11496. </div>
  11497. </div>
  11498. </div>
  11499. <div
  11500. class="upload_send"
  11501. @click="addCourseWorks2(taskCount)"
  11502. v-if="!proVisible"
  11503. >
  11504. 提交
  11505. </div>
  11506. </el-dialog>
  11507. <el-dialog
  11508. title="修改分组"
  11509. :visible.sync="dialogVisibleUpdateGroup"
  11510. :append-to-body="true"
  11511. width="350px"
  11512. :before-close="handleClose"
  11513. class="dialog_diy"
  11514. >
  11515. <div>
  11516. <h2>
  11517. {{ this.updateGroupUser.name }}
  11518. </h2>
  11519. <div style="color: rgb(171 171 171); margin-top: 10px">
  11520. 请选择要进入的分组
  11521. </div>
  11522. <el-radio-group v-model="checkChair">
  11523. <el-radio
  11524. style="display: block; margin-top: 20px"
  11525. v-for="(item, index) in updateGroupArray"
  11526. :label="item.label"
  11527. :key="index"
  11528. >{{ item.name }}</el-radio
  11529. >
  11530. </el-radio-group>
  11531. </div>
  11532. <span slot="footer" class="dialog-footer">
  11533. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11534. <el-button type="primary" @click="updateChair">确定</el-button>
  11535. </span>
  11536. </el-dialog>
  11537. <el-dialog
  11538. title="移除组员"
  11539. :visible.sync="dialogVisibleDeleteGroup"
  11540. :append-to-body="true"
  11541. width="350px"
  11542. :before-close="handleClose"
  11543. class="dialog_diy"
  11544. >
  11545. <div>
  11546. <h2>
  11547. {{ this.deleteGroupArray.name }}
  11548. </h2>
  11549. <div style="color: rgb(171 171 171); margin-top: 10px">
  11550. 请选择要删除的组员
  11551. </div>
  11552. <el-checkbox-group v-model="checkDeleteGroup">
  11553. <el-checkbox
  11554. style="display: flex; margin-top: 20px"
  11555. v-for="(item, index) in deleteGroupUser"
  11556. :label="item.userid"
  11557. :key="index"
  11558. >{{ item.name }}</el-checkbox
  11559. >
  11560. </el-checkbox-group>
  11561. </div>
  11562. <span slot="footer" class="dialog-footer">
  11563. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11564. <el-button type="primary" @click="deleteChair">确定</el-button>
  11565. </span>
  11566. </el-dialog>
  11567. <el-dialog
  11568. title="批量上传"
  11569. :visible.sync="dialogVisiblePl"
  11570. :append-to-body="true"
  11571. width="700px"
  11572. :before-close="handleClose"
  11573. class="dialog_change"
  11574. >
  11575. <div class="marginT">
  11576. <div class="plworkBox">
  11577. <div
  11578. class="chapter_add"
  11579. style="
  11580. display: flex;
  11581. width: 150px;
  11582. flex-direction: row;
  11583. flex-wrap: wrap;
  11584. justify-content: flex-start;
  11585. margin: 0 10px 10px 0;
  11586. "
  11587. v-for="(item, index) in plworkFile"
  11588. :key="index"
  11589. >
  11590. <div class="upCover2">
  11591. <img
  11592. :src="item.url"
  11593. alt
  11594. v-if="item.fileType == 1"
  11595. @click="previewImg(item.url)"
  11596. />
  11597. <img :src="word" alt v-else-if="item.fileType == 4" />
  11598. <img :src="video" alt v-else />
  11599. <!-- <span class="picName">{{ item.name }}</span> -->
  11600. <!-- <el-input
  11601. v-model="item.username"
  11602. placeholder="请输入学生名字"
  11603. style="margin-top: 10px"
  11604. ></el-input> -->
  11605. <div
  11606. class="pl_select_box"
  11607. @click="
  11608. getUpdateMore(true, checkUpload(), item.username, index)
  11609. "
  11610. >
  11611. {{ getSName(item.username) }}
  11612. </div>
  11613. <!-- <el-select
  11614. style="margin-top: 10px"
  11615. v-model="item.username"
  11616. filterable
  11617. allow-create
  11618. placeholder="请选择学生"
  11619. >
  11620. <el-option
  11621. v-for="item1 in checkUpload()"
  11622. :key="item1.userid"
  11623. :label="item1.name ? item1.name : item1.username"
  11624. :value="item1.userid"
  11625. >
  11626. </el-option>
  11627. </el-select> -->
  11628. <div class="deleteWord" @click="clean2(index)">
  11629. <img src="../../assets/icon/deleteWorks.png" alt />
  11630. </div>
  11631. </div>
  11632. </div>
  11633. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11634. <div class="up_photo2">
  11635. <img src="../../assets/icon/plwork.png" alt />
  11636. <span>点击上传文件</span>
  11637. </div>
  11638. <input
  11639. type="file"
  11640. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11641. multiple="multiple"
  11642. style="display: none"
  11643. @change="beforeUpload3($event, 6)"
  11644. />
  11645. </div>
  11646. </div>
  11647. </div>
  11648. <!-- capture="camera" -->
  11649. <div
  11650. class="upload_send"
  11651. @click="addCourseWorksPl(taskCount)"
  11652. v-if="!proVisible2"
  11653. >
  11654. 提交
  11655. </div>
  11656. </el-dialog>
  11657. <el-dialog
  11658. title="修改名称"
  11659. :visible.sync="dialogVisibleSname"
  11660. width="500px"
  11661. :before-close="handleClose"
  11662. class="dialog_diy"
  11663. center
  11664. >
  11665. <div
  11666. style="
  11667. text-align: center;
  11668. display: flex;
  11669. align-items: center;
  11670. justify-content: center;
  11671. "
  11672. >
  11673. <span class="tian1">名称</span>
  11674. <div
  11675. class="pl_select_box"
  11676. style="margin-left: 10px; width: 200px"
  11677. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11678. >
  11679. {{ getSName(worksSName) }}
  11680. </div>
  11681. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11682. placeholder="请选择学生">
  11683. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11684. :value="item.userid">
  11685. </el-option>
  11686. </el-select> -->
  11687. <!-- <el-input
  11688. v-model="worksSName"
  11689. style="width: 250px; margin: 15px 0px"
  11690. ></el-input> -->
  11691. </div>
  11692. <span slot="footer" class="dialog-footer">
  11693. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11694. <el-button type="primary" @click="updateName">确 定</el-button>
  11695. </span>
  11696. </el-dialog>
  11697. <el-dialog
  11698. title="英语写作"
  11699. :visible.sync="engDialogVisible"
  11700. :append-to-body="true"
  11701. width="800px"
  11702. :before-close="handleClose"
  11703. class="dialog_diy"
  11704. >
  11705. <onlineWrite
  11706. v-if="engDialogVisible"
  11707. :englishList="englishList"
  11708. :myAnswerList1="myAnswerList1"
  11709. ref="engJson"
  11710. ></onlineWrite>
  11711. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11712. <el-button @click="engDialogVisible = false">取 消</el-button>
  11713. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11714. </span>
  11715. </el-dialog>
  11716. <el-dialog
  11717. title="英语写作"
  11718. :visible.sync="engUpdateDialogVisible"
  11719. :append-to-body="true"
  11720. width="800px"
  11721. :before-close="handleClose"
  11722. class="dialog_diy fullStyle"
  11723. >
  11724. <div class="engUpBox">
  11725. <div class="engUpTop">
  11726. <div class="engTitle">
  11727. <div>作文题目:</div>
  11728. <div>{{ englishList1.engTitle }}</div>
  11729. </div>
  11730. <div class="engText">
  11731. <div>作文内容:</div>
  11732. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11733. </div>
  11734. </div>
  11735. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11736. <div class="oldBox">
  11737. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11738. <div class="oldText">
  11739. <div class="detailBox">
  11740. <div class="oldDetail">
  11741. <div>标题:</div>
  11742. <div>{{ oldEnglishJson.engTitle }} </div>
  11743. </div>
  11744. <div class="oldDetail1">
  11745. <div>正文:</div>
  11746. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11747. </div>
  11748. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11749. <div>图片:</div>
  11750. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11751. </div>
  11752. </div>
  11753. </div>
  11754. </div>
  11755. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11756. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11757. <div class="oldText">
  11758. <div class="detailBox" style="position: relative;">
  11759. <div class="oldDetail">
  11760. <div>标题:</div>
  11761. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11762. <div v-else v-html="newEnglishList.engTitle"></div>
  11763. </div>
  11764. <div class="oldDetail">
  11765. <div>正文:</div>
  11766. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11767. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11768. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11769. </div>
  11770. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11771. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11772. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11773. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11774. </div>
  11775. </div>
  11776. </div>
  11777. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11778. <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">
  11779. <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>
  11780. <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>
  11781. </div>
  11782. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11783. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11784. <div class="detailBox" style="position: relative;">
  11785. <div class="oldDetail">
  11786. <div>标题:</div>
  11787. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11788. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11789. </div>
  11790. <div class="oldDetail">
  11791. <div>正文:</div>
  11792. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11793. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11794. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11795. </div>
  11796. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11797. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11798. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11799. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11800. </div>
  11801. </div>
  11802. <div class="oldText" v-else-if="newEngIndex == -1">
  11803. <div class="detailBox" style="position: relative;">
  11804. <div class="oldDetail">
  11805. <div>标题:</div>
  11806. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11807. <div v-else v-html="newEnglishList.engTitle"></div>
  11808. </div>
  11809. <div class="oldDetail">
  11810. <div>正文:</div>
  11811. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11812. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11813. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11814. </div>
  11815. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11816. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11817. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11818. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11819. </div>
  11820. </div>
  11821. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11822. <div class="detailBox" style="position: relative;">
  11823. <div class="oldDetail">
  11824. <div>标题:</div>
  11825. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11826. <div v-else>
  11827. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11828. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11829. </div>
  11830. </div>
  11831. <div class="oldDetail">
  11832. <div>正文:</div>
  11833. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11834. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11835. <div v-else>
  11836. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11837. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11838. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11839. </div>
  11840. </div>
  11841. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11842. <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>
  11843. <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>
  11844. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11845. </div>
  11846. </div>
  11847. </div>
  11848. </div>
  11849. </div>
  11850. <span slot="footer" class="dialog-footer">
  11851. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11852. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11853. </span>
  11854. </el-dialog>
  11855. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11856. <interVideo
  11857. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11858. :videoJson="videoJson"
  11859. :userid="userid"
  11860. :id="id"
  11861. :courseType="courseType"
  11862. :taskCount="taskCount"
  11863. :toolindex="toolindex"
  11864. :videoType="videoType"
  11865. ></interVideo>
  11866. <UpdateMore
  11867. :dialogVisibleMember.sync="dialogVisibleMember"
  11868. :cList="uploadStudentJuri"
  11869. :userid="userid"
  11870. :searchTN="worksSName2"
  11871. @setPlname="setPlname"
  11872. ></UpdateMore>
  11873. <wordCloud
  11874. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11875. :data="wordCloudData"
  11876. ></wordCloud>
  11877. <el-dialog
  11878. title="挑人"
  11879. :visible.sync="dialogVisiblePickPeople"
  11880. width="650px"
  11881. :before-close="handleClose"
  11882. class="dialog_diy"
  11883. center
  11884. >
  11885. <div class="pick_box">
  11886. <div
  11887. class="noWorksName"
  11888. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11889. v-for="(item, index) in uploadStudentJuri"
  11890. :key="index"
  11891. @click="pickStudent(item)"
  11892. >
  11893. {{ item.name }}
  11894. </div>
  11895. </div>
  11896. </el-dialog>
  11897. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11898. :englishVoiceJson='englishVoiceJson'
  11899. :userid="userid"
  11900. :id="id"
  11901. :courseType="courseType"
  11902. :taskCount="taskCount"
  11903. :toolindex="toolindex"
  11904. @selectSWorks="selectSWorks"
  11905. @selectStudent="selectStudent"
  11906. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11907. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11908. :userid="userid"
  11909. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11910. :commentDetail="commentDetail"
  11911. :courseDetail="courseDetail"
  11912. :wScore="wScore"
  11913. :scoreDetail="scoreDetail"
  11914. @selectSWorks="selectSWorks"
  11915. @selectStudent="selectStudent"></checkEnglishVoice>
  11916. </div>
  11917. </template>
  11918. <script>
  11919. import "../../common/aws-sdk-2.235.1.min.js";
  11920. // import pdf from "../components/pdf3";
  11921. import pdf from "../components/vpdf";
  11922. import AskStatic from "../components/askStatic";
  11923. import AskStatic2 from "../components/askStatic2";
  11924. import AnswerData2 from "../components/answerData2";
  11925. import AnswerData from "../components/answerData";
  11926. import EditorBar from "../tools/wangEnduit.vue";
  11927. import Table from "../tools/table.vue";
  11928. import Time from "../tools/time.vue";
  11929. import Mind from "../tools/jsmind.vue";
  11930. import Sunburst from "../tools/sunburst";
  11931. import SeeBoard from "../tools/seeBoard";
  11932. import * as imageConversion from "image-conversion";
  11933. import Audio from "../components/audio.vue";
  11934. import ImgDraw from "../tools/imgDraw/imgDraw";
  11935. import { Empty } from "element-ui";
  11936. import RecordRTC from "recordrtc";
  11937. import interVideo from "../interVideo/index.vue";
  11938. import UpdateMore from "../updateMore/updateMore.vue";
  11939. import wordCloud from "../wordCloud/index.vue";
  11940. import axios from "axios";
  11941. import JSZip from "jszip";
  11942. import FileSaver from "file-saver";
  11943. import onlineWrite from "./commpont/onlineWrite";
  11944. import englishEva from "../components/englishEva";
  11945. import * as Diff from 'diff'
  11946. import EnglishVoice from '../EnglishVoice2/index.vue'
  11947. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11948. import correctText from '../components/correctText.vue'
  11949. import scoreItem from '../scoreList/scoreItem.vue'
  11950. import scoreZong from '../scoreZong/index.vue'
  11951. import classRoomHelper from '../classRoomHelper/index.vue'
  11952. import MarkdownIt from "markdown-it";
  11953. const getFile = (url) => {
  11954. return new Promise((resolve, reject) => {
  11955. var credentials = {
  11956. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11957. secretAccessKey: "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",
  11958. }; //秘钥形式的登录上传
  11959. window.AWS.config.update(credentials);
  11960. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11961. let url2 = url;
  11962. let _url2 = "";
  11963. if (
  11964. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11965. ) {
  11966. _url2 = url2.split(
  11967. "https://view.officeapps.live.com/op/view.aspx?src="
  11968. )[1];
  11969. } else {
  11970. _url2 = url2;
  11971. }
  11972. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11973. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11974. var params = {
  11975. Bucket: "ccrb",
  11976. Key: name
  11977. };
  11978. s3.getObject(params, function (err, data) {
  11979. if (err) {
  11980. console.log(err, err.stack)
  11981. resolve({ data: 1 });
  11982. }else {
  11983. resolve({ data: data.Body });
  11984. console.log(data);
  11985. } // sxuccessful response
  11986. });
  11987. // axios({
  11988. // method: "get",
  11989. // url,
  11990. // responseType: "blob",
  11991. // })
  11992. // .then((data) => {
  11993. // resolve({ data: data.data });
  11994. // })
  11995. // .catch((error) => {
  11996. // resolve({ data: 1 });
  11997. // // reject(error.toString());
  11998. // });
  11999. });
  12000. };
  12001. export default {
  12002. components: {
  12003. EditorBar,
  12004. Time,
  12005. pdf,
  12006. AskStatic,
  12007. AskStatic2,
  12008. Mind,
  12009. Sunburst,
  12010. SeeBoard,
  12011. AnswerData2,
  12012. AnswerData,
  12013. Audio,
  12014. ImgDraw,
  12015. Table,
  12016. interVideo,
  12017. UpdateMore,
  12018. wordCloud,
  12019. onlineWrite,
  12020. englishEva,
  12021. EnglishVoice,
  12022. checkEnglishVoice,
  12023. correctText,
  12024. scoreItem,
  12025. classRoomHelper,
  12026. scoreZong
  12027. },
  12028. data() {
  12029. return {
  12030. bg: null,
  12031. drawShow: false,
  12032. dialogVisible: false,
  12033. dialogVisiblePl: false,
  12034. commentDialogVisible: false,
  12035. dialogVisibleMember: false,
  12036. dialogVisibleWordCloud: false,
  12037. videoVisible: false,
  12038. isStar: false,
  12039. studentEvalDialogVisible: false,
  12040. studentEvalDialogVisibleTeacher: false,
  12041. dialogVisibleSelect: false,
  12042. dialogVisibleSelectTeacher: false,
  12043. dialogVisibleScore: false,
  12044. dialogVisibleENScore: false,
  12045. dialogVisibleSentence: false,
  12046. dialogVisibleSentenceTeacher: false,
  12047. dialogVisibleSentence1: false,
  12048. dialogVisibleWorks: false,
  12049. dialogVisibleTable: false,
  12050. dialogVisibleTableTeacher: false,
  12051. dialogVisibleWord: false,
  12052. dialogVisibleWordTeacher: false,
  12053. dialogVisibleTable2: false,
  12054. dialogVisibleTable3: false,
  12055. dialogVisibleGroupWork: false,
  12056. dialogVisibleUpdateGroup: false,
  12057. dialogVisibleDeleteGroup: false,
  12058. dialogVisibleSname: false,
  12059. dialogVisibleVideo: false,
  12060. dialogVisiblePickPeople: false,
  12061. worksSName: "",
  12062. classJuri: [],
  12063. uploadStudentJuri: [],
  12064. uploadCid: "",
  12065. snameWid: "",
  12066. sStudent: {},
  12067. sTool: "",
  12068. bzText: "",
  12069. commentDetail: [],
  12070. selectAnswer: [],
  12071. videoDetail: {},
  12072. selectJson: {},
  12073. eScore: { eBzText: "", eStar: [] },
  12074. id: this.$route.query.courseId,
  12075. userid: this.$route.query.userid,
  12076. classId: this.$route.query.cid,
  12077. // courseTypeLine: this.$route.query.type,
  12078. oid: this.$route.query.oid,
  12079. org: this.$route.query.org,
  12080. tType: this.$route.query.tType,
  12081. courseType: this.$route.query.type,
  12082. screenType: this.$route.query.screenType,
  12083. tcid2: this.$route.query.tcid,
  12084. tcid: "",
  12085. pptImgUrl: "",
  12086. pptImgUrl1: "",
  12087. commentText: "",
  12088. full: false,
  12089. sIsOpen: false,
  12090. IsLookOpen: false,
  12091. IsFollow: false,
  12092. pzDialog: false,
  12093. contentDialog: false,
  12094. mlDialog: false,
  12095. type: 1,
  12096. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12097. sentenceList1: [],
  12098. tableJson: [],
  12099. tableJsonO: [],
  12100. wordJson: [],
  12101. wordJsonO: [],
  12102. vedio: [],
  12103. text: [],
  12104. textList: [],
  12105. line: [],
  12106. lineList: [],
  12107. chapTools: [],
  12108. chapToolList: [],
  12109. file: [],
  12110. fileC: [],
  12111. vedioTime: [],
  12112. upToolImg: "",
  12113. preTime: 0,
  12114. rateList: {
  12115. ca: 0,
  12116. },
  12117. rateParams: [],
  12118. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12119. studyJuri: [
  12120. {
  12121. content: "",
  12122. cover: [],
  12123. upVedio: [],
  12124. upFile: [],
  12125. },
  12126. ],
  12127. isClose: 0,
  12128. plworkFile: [],
  12129. mr: require("../../assets/vedioPic.png"),
  12130. word: require("../../assets/icon/isWord.png"),
  12131. word2: require("../../assets/icon/word2.png"),
  12132. video: require("../../assets/icon/isVideo.png"),
  12133. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12134. likes: require("../../assets/icon/comment/likes.png"),
  12135. scoreImg: require("../../assets/score.png"),
  12136. courseDetail: {},
  12137. reply: "",
  12138. isSelect: false,
  12139. chapInfo: [],
  12140. chapInfoList: [],
  12141. taskCount: 0,
  12142. imgList: [],
  12143. noImgList: [],
  12144. pzList: [],
  12145. timeWorkList: [],
  12146. PlTextList: [
  12147. "Excellent!",
  12148. "nice!",
  12149. "很有创意!",
  12150. "还不错哦~",
  12151. "继续努力哦~",
  12152. ],
  12153. isClickNav: "",
  12154. navId: "",
  12155. playerOptions: {
  12156. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12157. autoplay: false, //如果true,浏览器准备好时开始回放。
  12158. muted: false, // 默认情况下将会消除任何音频。
  12159. loop: false, // 导致视频一结束就重新开始。
  12160. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12161. language: "zh-CN",
  12162. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12163. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12164. sources: [
  12165. {
  12166. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12167. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12168. },
  12169. ],
  12170. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12171. // poster: dataRes.imgUrl, //你的封面地址
  12172. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12173. controlBar: {
  12174. timeDivider: true, //当前时间和持续时间的分隔符
  12175. durationDisplay: true, //显示持续时间
  12176. remainingTimeDisplay: false, //是否显示剩余时间功能
  12177. fullscreenToggle: true, //全屏按钮
  12178. },
  12179. },
  12180. playerOptions1: {
  12181. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12182. autoplay: false, //如果true,浏览器准备好时开始回放。
  12183. muted: false, // 默认情况下将会消除任何音频。
  12184. loop: false, // 导致视频一结束就重新开始。
  12185. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12186. language: "zh-CN",
  12187. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12188. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12189. sources: [
  12190. {
  12191. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12192. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12193. },
  12194. ],
  12195. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12196. // poster: dataRes.imgUrl, //你的封面地址
  12197. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12198. controlBar: {
  12199. timeDivider: true, //当前时间和持续时间的分隔符
  12200. durationDisplay: true, //显示持续时间
  12201. remainingTimeDisplay: false, //是否显示剩余时间功能
  12202. fullscreenToggle: true, //全屏按钮
  12203. },
  12204. },
  12205. playerO: {},
  12206. noneBtnImg: false,
  12207. proVisible: false,
  12208. proVisible2: false,
  12209. progress: 0,
  12210. isFinishSize: 0,
  12211. isAllSize: 0,
  12212. questionAnswer: "",
  12213. answerQ: "", //问答标题
  12214. rateJson: [],
  12215. wbCount: 0,
  12216. wordCount: 0,
  12217. mindCount: 0,
  12218. askCount: 0,
  12219. noteCount: 0,
  12220. mindNetWorkCount: 0,
  12221. libraryCount: 0,
  12222. workCount: 0,
  12223. timeCount: 0,
  12224. answerCount: 0,
  12225. trainCount: 0,
  12226. evalCount: 0,
  12227. dialogImageUrl: "",
  12228. pictureDialog: false,
  12229. toolTypeList: [],
  12230. dialogVisible1: false,
  12231. dialogVisible2: false,
  12232. dialogVisible3: false,
  12233. dialogVisible6: false,
  12234. dialogVisible4: false,
  12235. isNoHomeWork: false,
  12236. dialogVisible5: false,
  12237. dialogVisible5Teacher: false,
  12238. dialogVisibleChoice: false,
  12239. dialogVisibleChoiceTeacher: false,
  12240. answerDialogVisible: false,
  12241. answerDialogVisibleTeacher: false,
  12242. juriVisible: false,
  12243. timeDialogVisible: false,
  12244. replyDialogVisible: false,
  12245. toolDialogVisible: false,
  12246. engDialogVisible: false,
  12247. engUpdateDialogVisible:false,
  12248. engEvaDialogVisible: false,
  12249. evaEngJson: {
  12250. teacherJson: {},
  12251. studentJson: {},
  12252. message: {},
  12253. },
  12254. isNoUserid:false,
  12255. engListLength:0,
  12256. engWid:"",
  12257. newEnglishList:{
  12258. engTitle:"",
  12259. engText:"",
  12260. },
  12261. newEnglishList1:[],
  12262. oldEnglishJson:{},
  12263. oldEnglishJson1:{},
  12264. englishList1:{},
  12265. englishList:{},
  12266. myAnswerList1:{},
  12267. topHeight:0,
  12268. newEngIndex:-1,
  12269. englishToolIndex:0,
  12270. userMes:{},
  12271. englishToolIndex:0,
  12272. replyIndex: 0,
  12273. replyPid: "",
  12274. radio: [],
  12275. isAsk: false,
  12276. askJson: {
  12277. askCount: 1,
  12278. askTitle: "",
  12279. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12280. },
  12281. testJson: {},
  12282. englishList: {},
  12283. topHeight:0,
  12284. checkJson: [],
  12285. askList: [],
  12286. answerList: [],
  12287. navList: [],
  12288. addPzDialog: false,
  12289. pzConText: "",
  12290. worksStudent: [],
  12291. isCloseList: [],
  12292. workStudent: [],
  12293. groupStudent: [],
  12294. groupStudentUid: [],
  12295. noWorksS: [],
  12296. isWorksS: [],
  12297. noWorksStudent: [],
  12298. toolindex: 0,
  12299. toolDetailIndex: null,
  12300. groupIndex: 0,
  12301. workTypeB: false,
  12302. workTypeC: false,
  12303. isAnswer: false,
  12304. isHovered: false,
  12305. isHovered1: false,
  12306. isHovered2: false,
  12307. commentTagShow:0,
  12308. timer: null,
  12309. opertimer: null,
  12310. showType: '',
  12311. fileType: 0,
  12312. showPDF: false,
  12313. noteName: "",
  12314. evaJuri: [],
  12315. evalua: "",
  12316. eTitle: "",
  12317. eName: "",
  12318. eJson: {},
  12319. fid: "", //一级
  12320. sid: "", //二级
  12321. tid: "", //二级
  12322. typeMode: 1,
  12323. eJSONNum: 0,
  12324. Etype: 1,
  12325. data: {
  12326. meta: {
  12327. name: "example",
  12328. author: "dd@163.com",
  12329. version: "0.2",
  12330. },
  12331. format: "node_array",
  12332. data: [{ id: "root", isroot: true, topic: "" }],
  12333. },
  12334. fullDialogVisible: false,
  12335. fulltype: "",
  12336. fullUrl: "",
  12337. commentIndexJson: {},
  12338. Stbodywidth: 0,
  12339. ispzType: 0,
  12340. pzType: 1,
  12341. wScore: 0,
  12342. scoreDetail: "",
  12343. videoStart: false,
  12344. recorder: null,
  12345. groupJson: {},
  12346. islock: false,
  12347. groupJson2: {},
  12348. dialogVisibleGroup: false,
  12349. dialogVisibleGroup2: false,
  12350. updateGroupArray: [],
  12351. updateGroupUser: {},
  12352. deleteGroupUser: [],
  12353. deleteGroupArray: {},
  12354. checkChair: "",
  12355. checkDeleteGroup: [],
  12356. inviteCode: "",
  12357. courseGroupStudent: [],
  12358. courseGroupStudentUid: [],
  12359. courseGroup: {},
  12360. isGroup: false,
  12361. toolIndex: null,
  12362. tool: {},
  12363. isWorkTool: [
  12364. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12365. ], //, 40
  12366. videoJson: {},
  12367. videoType:0,
  12368. toolType: 0,
  12369. checktoolArray: [],
  12370. vChapterData: [],
  12371. isUpdateToolDetail: false,
  12372. isUpdateToolDetail1: false,
  12373. updateToolDetailInner: "",
  12374. checkboxList: [],
  12375. plIndex: "",
  12376. worksSName2: "",
  12377. worksSid: "",
  12378. wordCloudData: [],
  12379. isPickStudent: [],
  12380. pzStype: 1,
  12381. myAnList: {},
  12382. downLoading: false,
  12383. greyType: false,
  12384. correctWord: [],
  12385. EnglishVoiceDialog: false,
  12386. englishVoiceJson: {},
  12387. englishVoiceJsonWork:[],
  12388. scoreList:{
  12389. listdata:[],
  12390. isScoreList:[],
  12391. },
  12392. classRoomHelperWidth: '85px',
  12393. orgArray:['1973f6c7-1561-11ee-91d8-005056b86db5','777559d2-7239-11ee-b98c-005056b86db5','884c5665-a453-46f3-b7b6-01d575290aa9','0fec3a8a-ad04-11ed-b13d-005056b86db5'],
  12394. oidArray:['f297fbdc-f0a0-11ee-b534-005056b86db5','45facc0a-1211-11ec-80ad-005056b86db5']
  12395. };
  12396. },
  12397. methods: {
  12398. gx(){
  12399. this.$forceUpdate();
  12400. },
  12401. isUpdateCorrect(t,p){
  12402. if(this.greyType == false){
  12403. this.isUpdateText = t;
  12404. this.greyType = true;
  12405. }else{
  12406. if(p == 1){
  12407. this.newEnglishList.engText = this.isUpdateText;
  12408. }else if(p == 2){
  12409. this.oldEnglishJson1.engText = this.isUpdateText;
  12410. }else if(p == 3){
  12411. this.newEnglishList.engText = this.isUpdateText;
  12412. }else{
  12413. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12414. }
  12415. this.greyType = false
  12416. }
  12417. },
  12418. aiCorrect(t,p){
  12419. let aiText = "";
  12420. const loading = this.$loading.service({
  12421. background: "rgba(255, 255, 255)",
  12422. target: document.querySelectorAll(".loadingText")[0],
  12423. });
  12424. let param = {
  12425. model: "gpt-3.5-turbo",
  12426. temperature: 0,
  12427. max_tokens: 2048,
  12428. top_p: 1,
  12429. frequency_penalty: 0,
  12430. presence_penalty: 0,
  12431. messages: [
  12432. {
  12433. role: "user",
  12434. content:
  12435.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12436. },
  12437. ],
  12438. uid: this.userid,
  12439. stream: false,
  12440. };
  12441. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12442. (res) => {
  12443. if (
  12444. res.data.FunctionResponse &&
  12445. res.data.FunctionResponse.result &&
  12446. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12447. ) {
  12448. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12449. return;
  12450. }
  12451. aiText =
  12452. res.data.FunctionResponse.choices[0].message.content;
  12453. aiText = aiText.replace(/%/g,"%25");
  12454. // let w = "";
  12455. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12456. // for(var k = 0;k<a.length;k++){
  12457. // //diffWordsWithSpace
  12458. // if(a.length > 1){
  12459. // if(a[k].added == true){
  12460. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12461. // }else if(a[k].removed == true){
  12462. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12463. // }else{
  12464. // w += '<span>' + a[k].value + '</span>';
  12465. // }
  12466. // }else{
  12467. // if(p == 1){
  12468. // w = this.newEnglishList.engText;
  12469. // }else if(p == 2){
  12470. // w = this.oldEnglishJson1.engText;
  12471. // }else if(p == 3){
  12472. // w = this.newEnglishList.engText;
  12473. // }else{
  12474. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12475. // }
  12476. // }
  12477. // }
  12478. if(p == 1){
  12479. this.newEnglishList.engText = aiText;
  12480. }else if(p == 2){
  12481. this.oldEnglishJson1.engText = aiText;
  12482. }else if(p == 3){
  12483. this.newEnglishList.engText = aiText;
  12484. }else{
  12485. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12486. }
  12487. loading.close();
  12488. },
  12489. (err) => {
  12490. console.log(err);
  12491. loading.close();
  12492. }
  12493. );
  12494. },
  12495. addToolChoose() {
  12496. if (!this.checktoolArray.length) {
  12497. this.$message.error("请选择要添加的任务");
  12498. return;
  12499. }
  12500. if (
  12501. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12502. this.taskCount
  12503. ].toolChoose[0].tool.length
  12504. ) {
  12505. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12506. this.taskCount
  12507. ].toolChoose[0].tool = this.checktoolArray;
  12508. } else {
  12509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12510. this.taskCount
  12511. ].toolChoose.push({
  12512. tool: this.checktoolArray,
  12513. toolDetail: "",
  12514. toolType: 0,
  12515. askCount: 1,
  12516. askTitle: "",
  12517. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12518. });
  12519. }
  12520. let params = [
  12521. {
  12522. cid: this.id,
  12523. chapters: JSON.stringify(this.chapInfoList),
  12524. uid: this.userid,
  12525. unitIndex: this.courseType,
  12526. },
  12527. ];
  12528. this.ajax
  12529. .post(this.$store.state.api + "updateWorkNew4", params)
  12530. .then((res) => {
  12531. this.$message({
  12532. message: "添加成功",
  12533. type: "success",
  12534. });
  12535. this.checktoolArray = [];
  12536. this.getCourseDetail(2);
  12537. this.checkBz(
  12538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12539. this.taskCount
  12540. ].toolChoose.length - 1
  12541. );
  12542. this.toolDialogVisible = false;
  12543. this.refreshCourse();
  12544. this.$forceUpdate();
  12545. })
  12546. .catch((err) => {
  12547. console.error(err);
  12548. });
  12549. },
  12550. checkBz(index) {
  12551. this.isUpdateToolDetail = false;
  12552. this.$forceUpdate();
  12553. setTimeout(() => {
  12554. document.scrollingElement.scrollTop =
  12555. document.querySelectorAll(".filebox")[index].offsetTop +
  12556. document.querySelector(".student_body").offsetTop;
  12557. }, 500);
  12558. },
  12559. updateToolDetail(i, type) {
  12560. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12561. this.toolDetailIndex = i
  12562. this.isUpdateToolDetail1 = true;
  12563. setTimeout(() => {
  12564. this.updateToolDetailInner = JSON.parse(
  12565. JSON.stringify(
  12566. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12567. this.taskCount
  12568. ].toolChoose[i].toolDetail
  12569. )
  12570. );
  12571. document.querySelector(".checkTextArea").focus();
  12572. }, 0);
  12573. } else if((this.isUpdateToolDetail1 && type != 2)){
  12574. // this.toolDetailIndex = i;
  12575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12576. this.taskCount
  12577. ].toolChoose[i].toolDetail = JSON.parse(
  12578. JSON.stringify(this.updateToolDetailInner)
  12579. );
  12580. let params = [
  12581. {
  12582. cid: this.id,
  12583. chapters: JSON.stringify(this.chapInfoList),
  12584. uid: this.userid,
  12585. unitIndex: this.courseType,
  12586. },
  12587. ];
  12588. this.ajax
  12589. .post(this.$store.state.api + "updateWorkNew4", params)
  12590. .then((res) => {
  12591. this.isUpdateToolDetail1 = false;
  12592. this.$message({
  12593. message: "修改成功",
  12594. type: "success",
  12595. });
  12596. this.toolDetailIndex = null;
  12597. this.updateToolDetailInner = "";
  12598. this.getCourseDetail(2);
  12599. this.$forceUpdate();
  12600. })
  12601. .catch((err) => {
  12602. console.error(err);
  12603. });
  12604. } else if((this.isUpdateToolDetail1 && type == 2)){
  12605. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12606. this.taskCount
  12607. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12608. JSON.stringify(this.updateToolDetailInner)
  12609. );
  12610. let params = [
  12611. {
  12612. cid: this.id,
  12613. chapters: JSON.stringify(this.chapInfoList),
  12614. uid: this.userid,
  12615. unitIndex: this.courseType,
  12616. },
  12617. ];
  12618. this.ajax
  12619. .post(this.$store.state.api + "updateWorkNew4", params)
  12620. .then((res) => {
  12621. this.$message({
  12622. message: "修改成功",
  12623. type: "success",
  12624. });
  12625. this.toolDetailIndex = i;
  12626. this.isUpdateToolDetail1 = true;
  12627. setTimeout(() => {
  12628. this.updateToolDetailInner = JSON.parse(
  12629. JSON.stringify(
  12630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12631. this.taskCount
  12632. ].toolChoose[i].toolDetail
  12633. )
  12634. );
  12635. document.querySelector(".checkTextArea").focus();
  12636. }, 0);
  12637. this.getCourseDetail(2);
  12638. this.$forceUpdate();
  12639. })
  12640. .catch((err) => {
  12641. console.error(err);
  12642. });
  12643. }
  12644. },
  12645. jumpGj(i, j, k, l) {
  12646. for (var z = 0; z < this.navList.length; z++) {
  12647. for (var q = 0; q < this.navList[z].task.length; q++) {
  12648. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12649. this.navList[z].task[q].tool[w].isTool = false;
  12650. }
  12651. }
  12652. }
  12653. console.log(this.navList);
  12654. this.navList[i].task[j].tool[k].isTool =
  12655. !this.navList[i].task[j].tool[k].isTool;
  12656. var a = document.scrollingElement;
  12657. let target = document.querySelector(`#gj${k}`);
  12658. if (target) {
  12659. target.scrollIntoView(true);
  12660. setTimeout(() => {
  12661. a.scrollTop = a.scrollTop - 150;
  12662. }, 0);
  12663. }
  12664. this.navId = ""
  12665. if (l) {
  12666. this.courseType = i;
  12667. // this.navId = l;
  12668. this.taskCount = j;
  12669. this.selectPz();
  12670. this.getHomeWork();
  12671. this.getCourseDetail(2);
  12672. }
  12673. // var b = this.$refs["bz" + k][0];
  12674. // a.scrollTop = b.offsetTop;
  12675. },
  12676. addTools2(i) {
  12677. if (i == 4) {
  12678. // this.openTools2(4);
  12679. this.$message.error("暂未开放");
  12680. return;
  12681. }
  12682. if (i == 45) {
  12683. // this.openTools2(45);
  12684. this.$message.error("暂未开放");
  12685. return;
  12686. }
  12687. if (i == 47) {
  12688. // this.openTools2(47);
  12689. this.$message.error("暂未开放");
  12690. return;
  12691. }
  12692. if (i == 49) {
  12693. // this.openTools2(49);
  12694. this.$message.error("暂未开放");
  12695. return;
  12696. }
  12697. if (i == 62) {
  12698. // this.openTools(itemTaskIndex, 62, toolIndex);
  12699. this.$message.error("暂未开放");
  12700. return;
  12701. }
  12702. if (i == 15) {
  12703. // this.openTools(itemTaskIndex, 15, toolIndex);
  12704. this.$message.error("暂未开放");
  12705. return;
  12706. }
  12707. if (i == 40) {
  12708. // this.openTools(itemTaskIndex, 40, toolIndex);
  12709. this.$message.error("暂未开放");
  12710. return;
  12711. }
  12712. if (i == 41) {
  12713. // this.openTools(itemTaskIndex, 41, toolIndex);
  12714. this.$message.error("暂未开放");
  12715. return;
  12716. }
  12717. if (i == 42) {
  12718. // this.openTools(itemTaskIndex, 42, toolIndex);
  12719. this.$message.error("暂未开放");
  12720. return;
  12721. }
  12722. if (this.checktoolArray.length > 0) {
  12723. if (this.checktoolArray.indexOf(i) != -1) {
  12724. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12725. } else {
  12726. this.checktoolArray = [];
  12727. this.checktoolArray.push(i);
  12728. }
  12729. } else {
  12730. this.checktoolArray.push(i);
  12731. }
  12732. this.$forceUpdate();
  12733. },
  12734. jump() {
  12735. window.parent.postMessage({ tools: "43" }, "*");
  12736. },
  12737. getUpdateMore(f, checkboxList, searchTN, index) {
  12738. this.dialogVisibleMember = f;
  12739. this.checkboxList = checkboxList;
  12740. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12741. this.plIndex = index;
  12742. },
  12743. setPlname(a) {
  12744. if (this.plworkFile.length) {
  12745. this.plworkFile[this.plIndex].username = a;
  12746. } else {
  12747. this.worksSName = a;
  12748. }
  12749. this.dialogVisibleMember = false;
  12750. },
  12751. previewImg(url) {
  12752. this.$hevueImgPreview(url);
  12753. },
  12754. checkImg(list) {
  12755. if (!list.length) {
  12756. return;
  12757. }
  12758. this.$hevueImgPreview({
  12759. multiple: true, // 开启多图预览模式
  12760. imgList: list, // 需要预览的多图数组
  12761. });
  12762. },
  12763. change(val) {
  12764. console.log(val);
  12765. },
  12766. goTo(path) {
  12767. this.$router.push(path);
  12768. },
  12769. handlePictureCardPreview(url) {
  12770. this.dialogImageUrl = url;
  12771. this.pictureDialog = true;
  12772. },
  12773. clean(type) {
  12774. if (type == 1) {
  12775. this.studyJuri[0].cover.splice(0, 1);
  12776. } else if (type == 2) {
  12777. this.studyJuri[0].upVedio.splice(0, 1);
  12778. } else {
  12779. this.studyJuri[0].upFile.splice(0, 1);
  12780. }
  12781. },
  12782. clean2(index) {
  12783. this.plworkFile.splice(index, 1);
  12784. },
  12785. handleClose(done) {
  12786. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12787. this.videoDetail.sources[0].src = "";
  12788. }
  12789. this.commentIndexJson = {};
  12790. done();
  12791. },
  12792. fullTools() {
  12793. this.full = !this.full;
  12794. },
  12795. imgChange(file, fileList, type) {
  12796. if (type == 1) {
  12797. var _tmp = this.studyJuri[0].cover;
  12798. } else if (type == 2) {
  12799. var _tmp = this.studyJuri[0].upVedio;
  12800. } else {
  12801. var _tmp = this.studyJuri[0].upFile;
  12802. }
  12803. this.noneBtnImg = _tmp.length >= 1;
  12804. },
  12805. setContent(bool) {
  12806. this.contentDialog = bool;
  12807. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12808. document.querySelector(".workd_media").style.height = "650px";
  12809. } else if (document.querySelector(".workd_media")) {
  12810. document.querySelector(".workd_media").style.height = "auto";
  12811. }
  12812. },
  12813. setContent2(bool) {
  12814. this.mlDialog = bool;
  12815. if (
  12816. bool &&
  12817. this.contentDialog &&
  12818. document.querySelector(".workd_media")
  12819. ) {
  12820. document.querySelector(".workd_media").style.height = "650px";
  12821. } else if (document.querySelector(".workd_media")) {
  12822. document.querySelector(".workd_media").style.height = "auto";
  12823. }
  12824. },
  12825. openToolAll() {
  12826. this.toolDialogVisible = true;
  12827. },
  12828. addImg(e) {
  12829. var el = e.currentTarget;
  12830. // this.$message.success('触发上传')
  12831. el.getElementsByTagName("input")[0].click();
  12832. e.target.value = "";
  12833. },
  12834. addSelectAnswer() {
  12835. let params = [
  12836. {
  12837. uid: this.userid,
  12838. cid: this.id,
  12839. stage: this.courseType,
  12840. task: this.taskCount,
  12841. tool: this.toolindex,
  12842. content: this.selectAnswer.answer,
  12843. type: 7,
  12844. },
  12845. ];
  12846. this.ajax
  12847. .post(this.$store.state.api + "addCourseWorks", params)
  12848. .then((res) => {
  12849. this.$message({
  12850. message: "提交成功",
  12851. type: "success",
  12852. });
  12853. this.dialogVisibleSelect = false;
  12854. // this.selectAnswer = {};
  12855. this.selectSWorks();
  12856. this.selectStudent();
  12857. })
  12858. .catch((err) => {
  12859. this.$message.error("提交失败");
  12860. console.error(err);
  12861. });
  12862. },
  12863. addSelectAnswerTeacher() {
  12864. let params = [
  12865. {
  12866. uid: this.sStudent.userid,
  12867. cid: this.id,
  12868. stage: this.courseType,
  12869. task: this.taskCount,
  12870. tool: this.toolindex,
  12871. content: this.selectAnswer.answer,
  12872. type: 7,
  12873. },
  12874. ];
  12875. this.ajax
  12876. .post(this.$store.state.api + "addCourseWorks", params)
  12877. .then((res) => {
  12878. this.$message({
  12879. message: "提交成功",
  12880. type: "success",
  12881. });
  12882. this.dialogVisibleSelectTeacher = false;
  12883. // this.selectAnswer = {};
  12884. this.selectSWorks();
  12885. this.selectStudent();
  12886. })
  12887. .catch((err) => {
  12888. this.$message.error("提交失败");
  12889. console.error(err);
  12890. });
  12891. },
  12892. addSenWorks() {
  12893. for (var i = 0; i < this.sentenceList.length; i++) {
  12894. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12895. if (
  12896. this.sentenceList[i].chooseSenList[j] == undefined ||
  12897. this.sentenceList[i].chooseSenList[j] == ""
  12898. ) {
  12899. this.$message.error("请将答案填写完整!");
  12900. return;
  12901. }
  12902. }
  12903. }
  12904. let params = [
  12905. {
  12906. uid: this.userid,
  12907. cid: this.id,
  12908. stage: this.courseType,
  12909. task: this.taskCount,
  12910. tool: this.toolindex,
  12911. content: JSON.stringify(this.sentenceList),
  12912. type: 9,
  12913. },
  12914. ];
  12915. this.ajax
  12916. .post(this.$store.state.api + "addCourseWorks", params)
  12917. .then((res) => {
  12918. this.$message({
  12919. message: "提交成功",
  12920. type: "success",
  12921. });
  12922. this.dialogVisibleSentence = false;
  12923. // this.selectAnswer = {};
  12924. this.selectSWorks();
  12925. this.selectStudent();
  12926. })
  12927. .catch((err) => {
  12928. this.$message.error("提交失败");
  12929. console.error(err);
  12930. });
  12931. },
  12932. addSenWorksTeacher() {
  12933. for (var i = 0; i < this.sentenceList.length; i++) {
  12934. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12935. if (
  12936. this.sentenceList[i].chooseSenList[j] == undefined ||
  12937. this.sentenceList[i].chooseSenList[j] == ""
  12938. ) {
  12939. this.$message.error("请将答案填写完整!");
  12940. return;
  12941. }
  12942. }
  12943. }
  12944. let params = [
  12945. {
  12946. uid: this.sStudent.userid,
  12947. cid: this.id,
  12948. stage: this.courseType,
  12949. task: this.taskCount,
  12950. tool: this.toolindex,
  12951. content: JSON.stringify(this.sentenceList),
  12952. type: 9,
  12953. },
  12954. ];
  12955. this.ajax
  12956. .post(this.$store.state.api + "addCourseWorks", params)
  12957. .then((res) => {
  12958. this.$message({
  12959. message: "提交成功",
  12960. type: "success",
  12961. });
  12962. this.dialogVisibleSentenceTeacher = false;
  12963. // this.selectAnswer = {};
  12964. this.selectSWorks();
  12965. this.selectStudent();
  12966. })
  12967. .catch((err) => {
  12968. this.$message.error("提交失败");
  12969. console.error(err);
  12970. });
  12971. },
  12972. returnTableText() {
  12973. this.$confirm("确定还原此模板吗?", "提示", {
  12974. confirmButtonText: "确定",
  12975. cancelButtonText: "取消",
  12976. type: "warning",
  12977. })
  12978. .then(() => {
  12979. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12980. })
  12981. .catch(() => {});
  12982. },
  12983. addTableWorks() {
  12984. let params = [
  12985. {
  12986. uid: this.userid,
  12987. cid: this.id,
  12988. stage: this.courseType,
  12989. task: this.taskCount,
  12990. tool: this.toolindex,
  12991. content: JSON.stringify(this.tableJson),
  12992. type: 10,
  12993. },
  12994. ];
  12995. this.ajax
  12996. .post(this.$store.state.api + "addCourseWorks", params)
  12997. .then((res) => {
  12998. this.$message({
  12999. message: "提交成功",
  13000. type: "success",
  13001. });
  13002. this.dialogVisibleTable = false;
  13003. // this.selectAnswer = {};
  13004. this.selectSWorks();
  13005. this.selectStudent();
  13006. })
  13007. .catch((err) => {
  13008. this.$message.error("提交失败");
  13009. console.error(err);
  13010. });
  13011. },
  13012. tableRowClassName({ row, rowIndex }) {
  13013. if ((rowIndex + 1) % 2 === 0) {
  13014. return "even_row";
  13015. } else {
  13016. return "";
  13017. }
  13018. },
  13019. addTableWorksTeacher() {
  13020. let params = [
  13021. {
  13022. uid: this.sStudent.userid,
  13023. cid: this.id,
  13024. stage: this.courseType,
  13025. task: this.taskCount,
  13026. tool: this.toolindex,
  13027. content: JSON.stringify(this.tableJson),
  13028. type: 10,
  13029. },
  13030. ];
  13031. this.ajax
  13032. .post(this.$store.state.api + "addCourseWorks", params)
  13033. .then((res) => {
  13034. this.$message({
  13035. message: "提交成功",
  13036. type: "success",
  13037. });
  13038. this.dialogVisibleTableTeacher = false;
  13039. // this.selectAnswer = {};
  13040. this.selectSWorks();
  13041. this.selectStudent();
  13042. })
  13043. .catch((err) => {
  13044. this.$message.error("提交失败");
  13045. console.error(err);
  13046. });
  13047. },
  13048. returnWordText() {
  13049. this.$confirm("确定还原此模板吗?", "提示", {
  13050. confirmButtonText: "确定",
  13051. cancelButtonText: "取消",
  13052. type: "warning",
  13053. })
  13054. .then(() => {
  13055. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13056. })
  13057. .catch(() => {});
  13058. },
  13059. addWordWorks() {
  13060. let params = [
  13061. {
  13062. uid: this.userid,
  13063. cid: this.id,
  13064. stage: this.courseType,
  13065. task: this.taskCount,
  13066. tool: this.toolindex,
  13067. content: JSON.stringify(this.wordJson),
  13068. type: 13,
  13069. atool: 52,
  13070. },
  13071. ];
  13072. this.ajax
  13073. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13074. .then((res) => {
  13075. this.$message({
  13076. message: "提交成功",
  13077. type: "success",
  13078. });
  13079. this.dialogVisibleWord = false;
  13080. // this.selectAnswer = {};
  13081. this.selectSWorks();
  13082. this.selectStudent();
  13083. })
  13084. .catch((err) => {
  13085. this.$message.error("提交失败");
  13086. console.error(err);
  13087. });
  13088. },
  13089. addWordWorksTeacher() {
  13090. let params = [
  13091. {
  13092. uid: this.sStudent.userid,
  13093. cid: this.id,
  13094. stage: this.courseType,
  13095. task: this.taskCount,
  13096. tool: this.toolindex,
  13097. content: JSON.stringify(this.wordJson),
  13098. type: 13,
  13099. atool: 52,
  13100. },
  13101. ];
  13102. this.ajax
  13103. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13104. .then((res) => {
  13105. this.$message({
  13106. message: "提交成功",
  13107. type: "success",
  13108. });
  13109. this.dialogVisibleWordTeacher = false;
  13110. // this.selectAnswer = {};
  13111. this.selectSWorks();
  13112. this.selectStudent();
  13113. })
  13114. .catch((err) => {
  13115. this.$message.error("提交失败");
  13116. console.error(err);
  13117. });
  13118. },
  13119. addCourseWorks(i) {
  13120. var typesql;
  13121. if (this.fileType === 0) {
  13122. typesql = 1;
  13123. } else if (this.fileType === 1) {
  13124. typesql = 4;
  13125. } else if (this.fileType === 2) {
  13126. typesql = 5;
  13127. } else if (this.fileType === 3) {
  13128. typesql = 12;
  13129. }
  13130. if (!this.studyJuri[0].cover[0].url) {
  13131. this.$message.error("请上传文件");
  13132. return;
  13133. }
  13134. let params = [
  13135. {
  13136. uid: this.userid,
  13137. cid: this.id,
  13138. stage: this.courseType,
  13139. task: i,
  13140. tool: this.toolindex,
  13141. content: this.studyJuri[0].cover[0].url,
  13142. type: typesql,
  13143. },
  13144. ];
  13145. this.ajax
  13146. .post(this.$store.state.api + "addCourseWorksR", params)
  13147. .then((res) => {
  13148. this.$message({
  13149. message: "提交成功",
  13150. type: "success",
  13151. });
  13152. this.studyJuri[0].cover = [];
  13153. this.dialogVisible = false;
  13154. this.getCourseDetail(2);
  13155. })
  13156. .catch((err) => {
  13157. this.$message.error("提交失败");
  13158. console.error(err);
  13159. });
  13160. },
  13161. addCourseWorksPl(i) {
  13162. let _files = this.plworkFile;
  13163. var c = 1;
  13164. for (var k = 0; k < _files.length; k++) {
  13165. if (!_files[k].username) {
  13166. c = 2;
  13167. }
  13168. }
  13169. if (c == 2) {
  13170. this.$message.error("请填写学生姓名");
  13171. return;
  13172. }
  13173. let params = [
  13174. {
  13175. ateacher: this.userid,
  13176. cid: this.id,
  13177. stage: this.courseType,
  13178. task: i,
  13179. tool: this.toolindex,
  13180. content: JSON.stringify(_files),
  13181. },
  13182. ];
  13183. this.ajax
  13184. .post(this.$store.state.api + "addCourseWorksPl", params)
  13185. .then((res) => {
  13186. this.$message({
  13187. message: "提交成功",
  13188. type: "success",
  13189. });
  13190. this.plworkFile = [];
  13191. this.dialogVisiblePl = false;
  13192. this.getCourseDetail(2);
  13193. })
  13194. .catch((err) => {
  13195. this.$message.error("提交失败");
  13196. console.error(err);
  13197. });
  13198. },
  13199. addCourseWorks2(i) {
  13200. var typesql;
  13201. if (this.fileType === 0) {
  13202. typesql = 0;
  13203. } else if (this.fileType === 1) {
  13204. typesql = 1;
  13205. } else if (this.fileType === 2) {
  13206. typesql = 3;
  13207. } else if (this.fileType === 3) {
  13208. typesql = 12;
  13209. }
  13210. if (!this.studyJuri[0].cover[0].url) {
  13211. this.$message.error("请上传文件");
  13212. return;
  13213. }
  13214. let params = [
  13215. {
  13216. uid: this.userid,
  13217. cid: this.id,
  13218. stage: this.courseType,
  13219. task: i,
  13220. tool: this.toolindex,
  13221. content: JSON.stringify({
  13222. type: typesql,
  13223. groupIndex: this.groupIndex,
  13224. url: this.studyJuri[0].cover[0].url,
  13225. }),
  13226. type: 11,
  13227. atool: 49,
  13228. text: "",
  13229. },
  13230. ];
  13231. this.ajax
  13232. .post(this.$store.state.api + "addCourseWorks5", params)
  13233. .then((res) => {
  13234. this.$message({
  13235. message: "提交成功",
  13236. type: "success",
  13237. });
  13238. this.studyJuri[0].cover = [];
  13239. this.dialogVisibleGroupWork = false;
  13240. this.getCourseDetail(2);
  13241. })
  13242. .catch((err) => {
  13243. this.$message.error("提交失败");
  13244. console.error(err);
  13245. });
  13246. },
  13247. addEnglishWork() {
  13248. this.myAnList = this.$refs['engJson'].myAnswerList;
  13249. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13250. this.$message.error("请输入作文标题和正文!");
  13251. return;
  13252. }
  13253. let params = [
  13254. {
  13255. uid: this.userid,
  13256. cid: this.id,
  13257. stage: this.courseType,
  13258. task: this.taskCount,
  13259. tool: this.englishToolIndex,
  13260. content: JSON.stringify(this.myAnList),
  13261. type: 16,
  13262. atool: 69,
  13263. text: "",
  13264. },
  13265. ];
  13266. this.ajax
  13267. .post(this.$store.state.api + "addCourseWorks5", params)
  13268. .then((res) => {
  13269. this.$message({
  13270. message: "提交成功",
  13271. type: "success",
  13272. });
  13273. this.myAnList = {};
  13274. this.englishList = {};
  13275. this.englishToolIndex = 0;
  13276. this.engDialogVisible = false;
  13277. this.selectSWorks();
  13278. this.selectStudent();
  13279. })
  13280. .catch((err) => {
  13281. this.$message.error("提交失败");
  13282. console.error(err);
  13283. });
  13284. },
  13285. addCourseWorksGong(i, data, tool) {
  13286. let params = [
  13287. {
  13288. uid: this.userid,
  13289. cid: this.id,
  13290. stage: this.courseType,
  13291. task: this.taskCount,
  13292. tool: i,
  13293. content: data,
  13294. type: 12,
  13295. atool: tool,
  13296. text: "",
  13297. },
  13298. ];
  13299. this.ajax
  13300. .post(this.$store.state.api + "addCourseWorks5", params)
  13301. .then((res) => {
  13302. this.$message({
  13303. message: "提交成功",
  13304. type: "success",
  13305. });
  13306. this.studyJuri[0].cover = [];
  13307. this.selectSWorks();
  13308. this.selectStudent();
  13309. })
  13310. .catch((err) => {
  13311. this.$message.error("提交失败");
  13312. console.error(err);
  13313. });
  13314. },
  13315. addCourseWorksGongTeacher(i, data, tool) {
  13316. let params = [
  13317. {
  13318. uid: this.sStudent.userid,
  13319. cid: this.id,
  13320. stage: this.courseType,
  13321. task: this.taskCount,
  13322. tool: i,
  13323. content: data,
  13324. type: 12,
  13325. atool: tool,
  13326. text: "",
  13327. },
  13328. ];
  13329. this.ajax
  13330. .post(this.$store.state.api + "addCourseWorks5", params)
  13331. .then((res) => {
  13332. this.$message({
  13333. message: "提交成功",
  13334. type: "success",
  13335. });
  13336. this.studyJuri[0].cover = [];
  13337. this.dialogVisibleWorks = false;
  13338. this.selectSWorks();
  13339. this.selectStudent();
  13340. })
  13341. .catch((err) => {
  13342. this.$message.error("提交失败");
  13343. console.error(err);
  13344. });
  13345. },
  13346. addCourseWorksGongPl(i, data, tool, type) {
  13347. let params = [
  13348. {
  13349. uid: this.sStudent.userid,
  13350. cid: this.id,
  13351. stage: this.courseType,
  13352. task: this.taskCount,
  13353. tool: i,
  13354. content: data,
  13355. type: type,
  13356. atool: tool,
  13357. text: "",
  13358. },
  13359. ];
  13360. this.ajax
  13361. .post(this.$store.state.api + "addCourseWorks5", params)
  13362. .then((res) => {
  13363. this.$message({
  13364. message: "提交成功",
  13365. type: "success",
  13366. });
  13367. this.studyJuri[0].cover = [];
  13368. this.dialogVisibleWorks = false;
  13369. this.selectSWorks();
  13370. this.selectStudent();
  13371. })
  13372. .catch((err) => {
  13373. this.$message.error("提交失败");
  13374. console.error(err);
  13375. });
  13376. },
  13377. addCourseWorksTeacher(i) {
  13378. var typesql;
  13379. if (this.sTool == 32) {
  13380. this.addCourseWorksGongTeacher(
  13381. this.toolindex,
  13382. this.studyJuri[0].cover[0].url,
  13383. this.sTool
  13384. );
  13385. return;
  13386. }
  13387. if (this.fileType === 0) {
  13388. typesql = 1;
  13389. } else if (this.fileType === 1) {
  13390. typesql = 4;
  13391. } else if (this.fileType === 2) {
  13392. typesql = 5;
  13393. } else if (this.fileType === 3) {
  13394. typesql = 12;
  13395. }
  13396. if (this.sTool == 50) {
  13397. this.addCourseWorksGongPl(
  13398. this.toolindex,
  13399. this.studyJuri[0].cover[0].url,
  13400. this.sTool,
  13401. typesql
  13402. );
  13403. return;
  13404. }
  13405. if (!this.studyJuri[0].cover[0].url) {
  13406. this.$message.error("请上传文件");
  13407. return;
  13408. }
  13409. let params = [
  13410. {
  13411. uid: this.sStudent.userid,
  13412. cid: this.id,
  13413. stage: this.courseType,
  13414. task: i,
  13415. tool: this.toolindex,
  13416. content: this.studyJuri[0].cover[0].url,
  13417. type: typesql,
  13418. ateacher: this.userid,
  13419. },
  13420. ];
  13421. this.ajax
  13422. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13423. .then((res) => {
  13424. this.$message({
  13425. message: "提交成功",
  13426. type: "success",
  13427. });
  13428. this.studyJuri[0].cover = [];
  13429. this.dialogVisibleWorks = false;
  13430. this.getCourseDetail(2);
  13431. })
  13432. .catch((err) => {
  13433. this.$message.error("提交失败");
  13434. console.error(err);
  13435. });
  13436. },
  13437. selectUploadStudent(type) {
  13438. const loading = this.$loading.service({
  13439. background: "rgba(255, 255, 255, 0.7)",
  13440. target: document.body,
  13441. });
  13442. let params = {
  13443. cid: this.uploadCid,
  13444. oid: this.oid,
  13445. cn: "",
  13446. };
  13447. this.ajax
  13448. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13449. .then((res) => {
  13450. loading.close();
  13451. var studentK = [];
  13452. if (this.isWorksS[this.toolindex].length > 0) {
  13453. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13454. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13455. }
  13456. studentK = studentK.join(",");
  13457. }
  13458. this.uploadStudentJuri = res.data[0].filter((el) => {
  13459. return studentK.indexOf(el.userid) == -1;
  13460. });
  13461. if (this.worksSName && this.worksSid) {
  13462. this.uploadStudentJuri.push({
  13463. userid: this.worksSid,
  13464. name: this.worksSName,
  13465. });
  13466. }
  13467. if (type == 1) {
  13468. this.plworkFile = [];
  13469. this.dialogVisibleSname = true;
  13470. } else if (type == 2) {
  13471. this.dialogVisiblePl = true;
  13472. }
  13473. })
  13474. .catch((err) => {
  13475. loading.close();
  13476. console.error(err);
  13477. });
  13478. },
  13479. selectPickStudent() {
  13480. const loading = this.$loading.service({
  13481. background: "rgba(255, 255, 255, 0.7)",
  13482. target: document.body,
  13483. });
  13484. let params = {
  13485. cid: this.uploadCid,
  13486. oid: this.oid,
  13487. cn: "",
  13488. };
  13489. this.ajax
  13490. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13491. .then((res) => {
  13492. loading.close();
  13493. this.uploadStudentJuri = res.data[0];
  13494. this.dialogVisiblePickPeople = true;
  13495. })
  13496. .catch((err) => {
  13497. loading.close();
  13498. console.error(err);
  13499. });
  13500. },
  13501. arrayToArray(arrayo, arrayt) {
  13502. let array1 = arrayo;
  13503. let array2 = arrayt;
  13504. let commonElements = [];
  13505. for (let i = 0; i < array1.length; i++) {
  13506. for (let j = 0; j < array2.length; j++) {
  13507. if (array1[i] === array2[j]) {
  13508. commonElements.push(array1[i]);
  13509. }
  13510. }
  13511. }
  13512. return commonElements;
  13513. },
  13514. selectWorksStudent() {
  13515. let params = {
  13516. oid: this.oid,
  13517. cid: this.courseDetail.juri,
  13518. };
  13519. this.ajax
  13520. .get(this.$store.state.api + "selectWorksStudent", params)
  13521. .then((res) => {
  13522. var a = res.data[0];
  13523. for (var i = 0; i < this.isWorksS.length; i++) {
  13524. this.noWorksS[i] = [];
  13525. var studentK = [];
  13526. if (this.isWorksS[i].length > 0) {
  13527. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13528. studentK.push(this.isWorksS[i][z].uid);
  13529. }
  13530. studentK = studentK.join(",");
  13531. for (var j = 0; j < a.length; j++) {
  13532. if (studentK.indexOf(a[j].userid) == -1) {
  13533. if (this.tcid) {
  13534. // a[j].classid.indexOf(this.tcid) != -1
  13535. if (
  13536. this.arrayToArray(
  13537. a[j].classid.split(","),
  13538. this.tcid.split(",")
  13539. ).length
  13540. ) {
  13541. this.noWorksS[i].push({
  13542. student: a[j].name,
  13543. userid: a[j].userid,
  13544. });
  13545. }
  13546. } else {
  13547. this.noWorksS[i].push({
  13548. student: a[j].name,
  13549. userid: a[j].userid,
  13550. });
  13551. }
  13552. }
  13553. }
  13554. } else {
  13555. for (var k = 0; k < a.length; k++) {
  13556. if (this.tcid) {
  13557. if (
  13558. this.arrayToArray(
  13559. a[k].classid.split(","),
  13560. this.tcid.split(",")
  13561. ).length
  13562. ) {
  13563. this.noWorksS[i].push({
  13564. student: a[k].name,
  13565. userid: a[k].userid,
  13566. });
  13567. }
  13568. } else {
  13569. this.noWorksS[i].push({
  13570. student: a[k].name,
  13571. userid: a[k].userid,
  13572. });
  13573. }
  13574. }
  13575. }
  13576. }
  13577. this.$forceUpdate();
  13578. if (
  13579. Object.keys(this.commentDetail).length &&
  13580. Object.keys(this.commentIndexJson).length &&
  13581. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13582. ) {
  13583. let a = 1;
  13584. let c = this.commentIndexJson;
  13585. if (
  13586. this.commentIndexJson.gindex ||
  13587. this.commentIndexJson.gindex === 0
  13588. ) {
  13589. for (
  13590. var i = 0;
  13591. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13592. i++
  13593. ) {
  13594. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13595. groupA: for (var k = 0; k < _el.length; k++) {
  13596. let el = _el[k];
  13597. if (el.wid == this.commentDetail.wid) {
  13598. a = 2;
  13599. this.commentOther(
  13600. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13601. this.commentIndexJson.toolIndex,
  13602. k,
  13603. this.commentIndexJson.gindex
  13604. );
  13605. break groupA;
  13606. }
  13607. }
  13608. }
  13609. if (a === 1) {
  13610. this.commentDetail = [];
  13611. this.commentIndexJson = {};
  13612. this.commentDialogVisible = false;
  13613. this.$message("此作业已被删除");
  13614. }
  13615. } else {
  13616. if (this.isGroup && this.commentIndexJson.gid) {
  13617. groupA: for (
  13618. var i = 0;
  13619. i < this.courseGroup.group.length;
  13620. i++
  13621. ) {
  13622. let _group = this.courseGroup.group[i];
  13623. if (_group.id == this.commentIndexJson.gid) {
  13624. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13625. for (var k = 0; k < _el2.length; k++) {
  13626. let el2 = _el2[k];
  13627. if (el2.wid == this.commentDetail.wid) {
  13628. a = 2;
  13629. this.commentOther(
  13630. _el2[k],
  13631. this.commentIndexJson.toolIndex,
  13632. k,
  13633. null,
  13634. this.commentIndexJson.gid
  13635. );
  13636. break groupA;
  13637. }
  13638. }
  13639. }
  13640. }
  13641. }
  13642. if (a == 1) {
  13643. for (
  13644. var i = 0;
  13645. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13646. i++
  13647. ) {
  13648. let el =
  13649. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13650. if (el.wid == this.commentDetail.wid) {
  13651. a = 2;
  13652. this.commentOther(
  13653. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13654. this.commentIndexJson.toolIndex,
  13655. i
  13656. );
  13657. break;
  13658. }
  13659. }
  13660. }
  13661. if (a === 1) {
  13662. this.commentDetail = [];
  13663. this.commentIndexJson = {};
  13664. this.commentDialogVisible = false;
  13665. this.$message("此作业已被删除");
  13666. }
  13667. }
  13668. }
  13669. })
  13670. .catch((err) => {
  13671. console.error(err);
  13672. });
  13673. },
  13674. selectStudent() {
  13675. //学生查看自己作业
  13676. let params = {
  13677. uid: this.userid,
  13678. cid: this.id,
  13679. s: this.courseType,
  13680. t: this.taskCount,
  13681. };
  13682. this.ajax
  13683. .get(this.$store.state.api + "selectStudentWorks", params)
  13684. .then((res) => {
  13685. var a =
  13686. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13687. this.taskCount
  13688. ].toolChoose;
  13689. var b = res.data[0];
  13690. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13691. var y = [
  13692. "AVI",
  13693. "NAVI",
  13694. "MPEG",
  13695. "ASF",
  13696. "MOV",
  13697. "WMV",
  13698. "3GP",
  13699. "RM",
  13700. "RMVB",
  13701. "FLV",
  13702. "F4V",
  13703. "H.264",
  13704. "H.265",
  13705. "REAL VIDEO",
  13706. "MKV",
  13707. "WebM",
  13708. "HDDVD",
  13709. "MP4",
  13710. "MPG",
  13711. "M4V",
  13712. "MGV",
  13713. "OGV",
  13714. "QTM",
  13715. "STR",
  13716. "AMC",
  13717. "DVX",
  13718. "EVO",
  13719. "DAT",
  13720. "OGG",
  13721. "OGM",
  13722. ];
  13723. for (var i = 0; i < a.length; i++) {
  13724. this.workStudent[i] = [];
  13725. for (var j = 0; j < b.length; j++) {
  13726. if (i == b[j].tool) {
  13727. if (
  13728. (b[j].type == 1 ||
  13729. b[j].type == 4 ||
  13730. b[j].type == 5 ||
  13731. b[j].type == 6 ||
  13732. b[j].type == 12 ||
  13733. b[j].type == 7) &&
  13734. a[i].tool[0] != 15 &&
  13735. a[i].tool[0] != 4 &&
  13736. a[i].tool[0] != 45 &&
  13737. a[i].tool[0] != 50 &&
  13738. a[i].tool[0] != 32 &&
  13739. a[i].tool[0] != 57 &&
  13740. a[i].tool[0] != 52 &&
  13741. a[i].tool[0] != 69
  13742. ) {
  13743. if (
  13744. c.indexOf(
  13745. b[j].content
  13746. .split(".")
  13747. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13748. ) != -1 &&
  13749. a[i].tool[0] == 16 &&
  13750. b[j].atool != 50
  13751. ) {
  13752. this.workStudent[i].push({
  13753. works: b[j].content,
  13754. sName: b[j].name,
  13755. score: b[j].score,
  13756. img: b[j].img,
  13757. type: 1,
  13758. time: b[j].time,
  13759. userid: b[j].userid,
  13760. wid: b[j].id,
  13761. });
  13762. } else if (
  13763. y.indexOf(
  13764. b[j].content
  13765. .split(".")
  13766. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13767. ) != -1 &&
  13768. a[i].tool[0] == 16 &&
  13769. b[j].atool != 50
  13770. ) {
  13771. this.workStudent[i].push({
  13772. userid: b[j].userid,
  13773. wid: b[j].id,
  13774. works: b[j].content,
  13775. sName: b[j].name,
  13776. score: b[j].score,
  13777. img: b[j].img,
  13778. type: 3,
  13779. time: b[j].time,
  13780. });
  13781. } else if (b[j].type == 6 && b[j].atool != 50) {
  13782. this.workStudent[i].push({
  13783. userid: b[j].userid,
  13784. wid: b[j].id,
  13785. works: b[j].content,
  13786. sName: b[j].name,
  13787. score: b[j].score,
  13788. img: b[j].img,
  13789. type: 4,
  13790. time: b[j].time,
  13791. });
  13792. } else if (b[j].type == 7 && b[j].atool != 50) {
  13793. this.workStudent[i].push({
  13794. userid: b[j].userid,
  13795. wid: b[j].id,
  13796. works: b[j].content,
  13797. sName: b[j].name,
  13798. score: b[j].score,
  13799. img: b[j].img,
  13800. type: 5,
  13801. time: b[j].time,
  13802. });
  13803. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13804. this.workStudent[i].push({
  13805. works: b[j].content,
  13806. sName: b[j].name,
  13807. score: b[j].score,
  13808. img: b[j].img,
  13809. type: 12,
  13810. time: b[j].time,
  13811. userid: b[j].userid,
  13812. wid: b[j].id,
  13813. });
  13814. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13815. this.workStudent[i].push({
  13816. works: b[j].content,
  13817. sName: b[j].name,
  13818. score: b[j].score,
  13819. img: b[j].img,
  13820. type: 0,
  13821. time: b[j].time,
  13822. userid: b[j].userid,
  13823. wid: b[j].id,
  13824. });
  13825. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13826. this.workStudent[i].push({
  13827. works: b[j].content,
  13828. sName: b[j].name,
  13829. score: b[j].score,
  13830. img: b[j].img,
  13831. type: 0,
  13832. time: b[j].time,
  13833. userid: b[j].userid,
  13834. wid: b[j].id,
  13835. });
  13836. }
  13837. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13838. this.workStudent[i].push({
  13839. works: b[j].content,
  13840. sName: b[j].name,
  13841. score: b[j].score,
  13842. img: b[j].img,
  13843. type: 2,
  13844. time: b[j].time,
  13845. userid: b[j].userid,
  13846. wid: b[j].id,
  13847. });
  13848. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13849. //问卷
  13850. this.workStudent[i].push({
  13851. works: b[j].content,
  13852. sName: b[j].name,
  13853. score: b[j].score,
  13854. img: b[j].img,
  13855. type: 2,
  13856. time: b[j].time,
  13857. userid: b[j].userid,
  13858. wid: b[j].id,
  13859. });
  13860. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13861. //选择题
  13862. this.workStudent[i].push({
  13863. works: b[j].content,
  13864. sName: b[j].name,
  13865. score: b[j].score,
  13866. img: b[j].img,
  13867. type: 8,
  13868. time: b[j].time,
  13869. userid: b[j].userid,
  13870. wid: b[j].id,
  13871. });
  13872. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13873. //选择题
  13874. this.workStudent[i].push({
  13875. works: b[j].content,
  13876. sName: b[j].name,
  13877. score: b[j].score,
  13878. img: b[j].img,
  13879. type: 9,
  13880. time: b[j].time,
  13881. userid: b[j].userid,
  13882. wid: b[j].id,
  13883. });
  13884. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13885. //选择题
  13886. this.workStudent[i].push({
  13887. works: b[j].content,
  13888. sName: b[j].name,
  13889. score: b[j].score,
  13890. img: b[j].img,
  13891. type: 10,
  13892. time: b[j].time,
  13893. userid: b[j].userid,
  13894. wid: b[j].id,
  13895. });
  13896. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13897. //选择题
  13898. this.workStudent[i].push({
  13899. works: b[j].content,
  13900. sName: b[j].name,
  13901. score: b[j].score,
  13902. img: b[j].img,
  13903. type: 13,
  13904. time: b[j].time,
  13905. userid: b[j].userid,
  13906. wid: b[j].id,
  13907. });
  13908. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13909. //选择题
  13910. this.workStudent[i].push({
  13911. works: b[j].content,
  13912. sName: b[j].name,
  13913. score: b[j].score,
  13914. img: b[j].img,
  13915. type: 12,
  13916. time: b[j].time,
  13917. userid: b[j].userid,
  13918. wid: b[j].id,
  13919. });
  13920. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13921. //选择题
  13922. this.workStudent[i].push({
  13923. works: b[j].content,
  13924. sName: b[j].name,
  13925. score: b[j].score,
  13926. img: b[j].img,
  13927. type: 12,
  13928. time: b[j].time,
  13929. userid: b[j].userid,
  13930. wid: b[j].id,
  13931. });
  13932. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13933. //选择题
  13934. this.workStudent[i].push({
  13935. works: b[j].content,
  13936. sName: b[j].name,
  13937. score: b[j].score,
  13938. img: b[j].img,
  13939. type: 15,
  13940. time: b[j].time,
  13941. userid: b[j].userid,
  13942. wid: b[j].id,
  13943. });
  13944. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13945. //英语写作
  13946. this.workStudent[i].push({
  13947. works: b[j].content,
  13948. sName: b[j].name,
  13949. score: b[j].score,
  13950. img: b[j].img,
  13951. type: 16,
  13952. time: b[j].time,
  13953. userid: b[j].userid,
  13954. wid: b[j].id,
  13955. aiCode: b[j].aiCode,
  13956. teacherCode: b[j].teacherCode
  13957. });
  13958. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13959. //英语口语
  13960. this.workStudent[i].push({
  13961. works: b[j].content,
  13962. sName: b[j].name,
  13963. score: b[j].score,
  13964. img: b[j].img,
  13965. type: 17,
  13966. time: b[j].time,
  13967. userid: b[j].userid,
  13968. wid: b[j].id,
  13969. });
  13970. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  13971. //交互视频
  13972. this.workStudent[i].push({
  13973. works: b[j].content,
  13974. sName: b[j].name,
  13975. score: b[j].score,
  13976. img: b[j].img,
  13977. type: 14,
  13978. time: b[j].time,
  13979. userid: b[j].userid,
  13980. wid: b[j].id,
  13981. });
  13982. }
  13983. }
  13984. }
  13985. }
  13986. })
  13987. .catch((err) => {
  13988. console.error(err);
  13989. });
  13990. },
  13991. openVideo(w) {
  13992. this.videoDetail = {};
  13993. this.playerOptions1.sources[0].src = w.works;
  13994. this.videoDetail = this.playerOptions1;
  13995. this.videoVisible = true;
  13996. },
  13997. isLikes(wid, uid, t, c, isLikes) {
  13998. if (isLikes == false) {
  13999. let params = [
  14000. {
  14001. wid: wid,
  14002. lid: uid,
  14003. t: t,
  14004. c: c,
  14005. },
  14006. ];
  14007. this.ajax
  14008. .post(this.$store.state.api + "insertComment", params)
  14009. .then((res) => {
  14010. this.$message({
  14011. message: "点赞成功",
  14012. type: "success",
  14013. });
  14014. this.selectSWorks();
  14015. this.selectStudent();
  14016. })
  14017. .catch((err) => {
  14018. this.$message.error("点赞失败");
  14019. console.error(err);
  14020. });
  14021. } else {
  14022. let params = {
  14023. wid: wid,
  14024. lid: uid,
  14025. type: t,
  14026. };
  14027. this.ajax
  14028. .get(this.$store.state.api + "deleteComment", params)
  14029. .then((res) => {
  14030. this.$message({
  14031. message: "取消点赞成功",
  14032. type: "success",
  14033. });
  14034. this.selectSWorks();
  14035. this.selectStudent();
  14036. })
  14037. .catch((err) => {
  14038. console.error(err);
  14039. });
  14040. }
  14041. },
  14042. deleteComment(wid) {
  14043. this.$confirm("确定删除此评论吗?", "提示", {
  14044. confirmButtonText: "确定",
  14045. cancelButtonText: "取消",
  14046. type: "warning",
  14047. })
  14048. .then(() => {
  14049. let params = {
  14050. id: wid,
  14051. };
  14052. this.ajax
  14053. .get(this.$store.state.api + "deleteComment2", params)
  14054. .then((res) => {
  14055. this.$message({
  14056. message: "删除评论成功",
  14057. type: "success",
  14058. });
  14059. this.selectSWorks();
  14060. this.selectStudent();
  14061. })
  14062. .catch((err) => {
  14063. console.error(err);
  14064. });
  14065. })
  14066. .catch(() => {});
  14067. },
  14068. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14069. this.commentIndexJson = {
  14070. toolIndex: toolIndex,
  14071. wIndex: wIndex,
  14072. gindex: gindex,
  14073. gid: gid,
  14074. };
  14075. this.commentDetail = [];
  14076. this.commentDialogVisible = true;
  14077. this.commentDetail = w;
  14078. if (w.works && w.type == 1) {
  14079. // this.pptImgUrl = "";
  14080. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14081. if (
  14082. a.indexOf(
  14083. w.works
  14084. .split(".")
  14085. [w.works.split(".").length - 1].toLocaleUpperCase()
  14086. ) != -1
  14087. ) {
  14088. let _uuurl = await this.checkLink(w.works);
  14089. console.log(_uuurl)
  14090. this.pptImgUrl =
  14091. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14092. this.showPDF = false;
  14093. } else if (
  14094. w.works
  14095. .split(".")
  14096. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14097. ) {
  14098. this.pptImgUrl = w.works;
  14099. this.showPDF = true;
  14100. }
  14101. } else if (w.works && w.type == 3) {
  14102. this.videoDetail = {};
  14103. this.playerOptions1.sources[0].src = w.works;
  14104. this.videoDetail = this.playerOptions1;
  14105. // this.videoVisible = true;
  14106. } else if (w.works && w.type == 4) {
  14107. this.eScore = JSON.parse(w.works);
  14108. this.rateJson =
  14109. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14110. this.taskCount
  14111. ].toolChoose[toolIndex].rateJson;
  14112. } else if (w.works && w.type == 10) {
  14113. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14114. } else if (w.works && w.type == 13) {
  14115. this.wordJson =
  14116. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14117. this.taskCount
  14118. ].toolChoose[toolIndex].wordJson;
  14119. }
  14120. },
  14121. async openScore(w, index) {
  14122. this.wScore = 0;
  14123. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14124. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14125. this.commentDetail = [];
  14126. if(w.type == 17){
  14127. this.dialogVisibleENScore = true;
  14128. }else{
  14129. this.dialogVisibleScore = true;
  14130. }
  14131. this.commentDetail = w;
  14132. if (w.works && w.type == 1) {
  14133. this.pptImgUrl = "";
  14134. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14135. if (
  14136. a.indexOf(
  14137. w.works
  14138. .split(".")
  14139. [w.works.split(".").length - 1].toLocaleUpperCase()
  14140. ) != -1
  14141. ) {
  14142. let _uuurl = await this.checkLink(w.works);
  14143. console.log(_uuurl)
  14144. this.pptImgUrl =
  14145. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14146. this.showPDF = false;
  14147. } else if (
  14148. w.works
  14149. .split(".")
  14150. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14151. ) {
  14152. this.pptImgUrl = w.works;
  14153. this.showPDF = true;
  14154. }
  14155. } else if (w.works && w.type == 3) {
  14156. this.videoDetail = {};
  14157. this.playerOptions1.sources[0].src = w.works;
  14158. this.videoDetail = this.playerOptions1;
  14159. }else if(w.type == 17){
  14160. let englishVoiceJson = {}
  14161. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14162. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14163. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14164. .toolChoose[index].englishVoiceJson
  14165. : {};
  14166. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14167. }
  14168. },
  14169. addComment(wid, uid, t) {
  14170. if (this.commentText == "") {
  14171. this.$message.error("请输入评论");
  14172. return;
  14173. }
  14174. let params2 = [
  14175. {
  14176. wid: wid,
  14177. lid: uid,
  14178. t: t,
  14179. },
  14180. ];
  14181. this.ajax
  14182. .post(this.$store.state.api + "getComment", params2)
  14183. .then((res) => {
  14184. if (res.data[0].length > 0) {
  14185. this.$message.error("一个作业只能评论一条");
  14186. } else {
  14187. let params = [
  14188. {
  14189. wid: wid,
  14190. lid: uid,
  14191. t: t,
  14192. c: this.commentText,
  14193. },
  14194. ];
  14195. this.ajax
  14196. .post(this.$store.state.api + "insertComment", params)
  14197. .then((res) => {
  14198. this.$message({
  14199. message: "评论成功",
  14200. type: "success",
  14201. });
  14202. this.commentText = "";
  14203. this.selectSWorks();
  14204. this.selectStudent();
  14205. })
  14206. .catch((err) => {
  14207. this.$message.error("评论失败");
  14208. console.error(err);
  14209. });
  14210. }
  14211. })
  14212. .catch((err) => {
  14213. // this.$message.error("评论失败");
  14214. console.error(err);
  14215. });
  14216. },
  14217. scoreWork(wid) {
  14218. if (this.wScore == 0) {
  14219. this.$message.error("请评分");
  14220. return;
  14221. }
  14222. let params = [
  14223. {
  14224. wid: wid,
  14225. score: JSON.stringify({
  14226. wScore: this.wScore,
  14227. detail: this.scoreDetail,
  14228. }),
  14229. },
  14230. ];
  14231. this.ajax
  14232. .post(this.$store.state.api + "scoreWork", params)
  14233. .then((res) => {
  14234. this.$message({
  14235. message: "评分成功",
  14236. type: "success",
  14237. });
  14238. this.wScore = 0;
  14239. this.scoreDetail = "";
  14240. this.dialogVisibleScore = false;
  14241. this.selectSWorks();
  14242. this.selectStudent();
  14243. })
  14244. .catch((err) => {
  14245. this.$message.error("评分失败");
  14246. console.error(err);
  14247. });
  14248. },
  14249. openXz(w, i) {
  14250. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14251. .taskJson[this.taskCount].toolChoose[i].selectJson
  14252. ? JSON.parse(
  14253. JSON.stringify(
  14254. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14255. this.taskCount
  14256. ].toolChoose[i].selectJson
  14257. )
  14258. )
  14259. : { url: "", select: [], answer: [] };
  14260. var a = w.works.split(",");
  14261. for (var k = 0; k < a.length; k++) {
  14262. a[k] = parseInt(a[k]);
  14263. }
  14264. this.selectAnswer = { answer: a, stu: w.sName };
  14265. this.isSelect = true;
  14266. this.dialogVisibleSelect = true;
  14267. },
  14268. openSen(w, i) {
  14269. this.sentenceList1 = JSON.parse(w.works);
  14270. this.sentenceList1.stuName = w.sName;
  14271. this.dialogVisibleSentence1 = true;
  14272. },
  14273. openPj(w, toolindex) {
  14274. this.isStar = true;
  14275. this.eScore = JSON.parse(w);
  14276. this.rateJson =
  14277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14278. this.taskCount
  14279. ].toolChoose[toolindex].rateJson;
  14280. this.studentEvalDialogVisible = true;
  14281. },
  14282. openEnglishEva(id,i){
  14283. let params = {
  14284. wid: id
  14285. };
  14286. this.ajax
  14287. .get(this.$store.state.api + "selectEngWork", params)
  14288. .then((res) => {
  14289. this.evaEngJson.message = res.data[0][0];
  14290. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14291. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14292. .toolChoose[i].englishList;
  14293. this.engEvaDialogVisible = true;
  14294. })
  14295. .catch((err) => {
  14296. console.error(err);
  14297. });
  14298. },
  14299. deleteWorks(id) {
  14300. this.$confirm("确定删除此作业吗?", "提示", {
  14301. confirmButtonText: "确定",
  14302. cancelButtonText: "取消",
  14303. type: "warning",
  14304. })
  14305. .then(() => {
  14306. let params = [
  14307. {
  14308. id: id,
  14309. },
  14310. ];
  14311. this.ajax
  14312. .post(this.$store.state.api + "deleteCourseWork", params)
  14313. .then((res) => {
  14314. this.$message({
  14315. message: "删除成功",
  14316. type: "success",
  14317. });
  14318. this.selectStudent();
  14319. this.selectSWorks();
  14320. this.selectSLook();
  14321. })
  14322. .catch((err) => {
  14323. this.$message.error("网络异常");
  14324. console.error(err);
  14325. });
  14326. })
  14327. .catch(() => {});
  14328. },
  14329. selectSWorks(gindex) {
  14330. //教师查看全部作业
  14331. let params = {
  14332. cid: this.id,
  14333. s: this.courseType,
  14334. t: this.taskCount,
  14335. };
  14336. this.ajax
  14337. .get(this.$store.state.api + "selectSWorks", params)
  14338. .then((res) => {
  14339. var a =
  14340. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14341. this.taskCount
  14342. ].toolChoose;
  14343. var b = res.data[0];
  14344. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14345. var y = [
  14346. "AVI",
  14347. "NAVI",
  14348. "MPEG",
  14349. "ASF",
  14350. "MOV",
  14351. "WMV",
  14352. "3GP",
  14353. "RM",
  14354. "RMVB",
  14355. "FLV",
  14356. "F4V",
  14357. "H.264",
  14358. "H.265",
  14359. "REAL VIDEO",
  14360. "MKV",
  14361. "WebM",
  14362. "HDDVD",
  14363. "MP4",
  14364. "MPG",
  14365. "M4V",
  14366. "MGV",
  14367. "OGV",
  14368. "QTM",
  14369. "STR",
  14370. "AMC",
  14371. "DVX",
  14372. "EVO",
  14373. "DAT",
  14374. "OGG",
  14375. "OGM",
  14376. ];
  14377. var d = res.data[1];
  14378. var e = res.data[2];
  14379. var f = res.data[3];
  14380. let _worksStudent = [];
  14381. var _worksStudent2 = [];
  14382. for (var i = 0; i < a.length; i++) {
  14383. _worksStudent[i] = [];
  14384. _worksStudent2[i] = [];
  14385. if (
  14386. !this.isCloseList[i] ||
  14387. this.isCloseList[i].isClose == undefined
  14388. ) {
  14389. this.isCloseList[i] = { isClose: 0 };
  14390. }
  14391. this.groupStudent[i] = [];
  14392. this.groupStudentUid[i] = [];
  14393. if (this.isGroup) {
  14394. for (
  14395. var groupI = 0;
  14396. groupI < this.courseGroup.group.length;
  14397. groupI++
  14398. ) {
  14399. this.courseGroup.group[groupI].works[i] = [];
  14400. }
  14401. }
  14402. this.isWorksS[i] = [];
  14403. this.checkJson[i] = [];
  14404. if (a[i].tool[0] == 49) {
  14405. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14406. this.groupStudent[i][gA] = [];
  14407. this.groupStudentUid[i][gA] = [];
  14408. _worksStudent[i][gA] = [];
  14409. _worksStudent2[i][gA] = [];
  14410. this.isCloseList[i][gA] = [];
  14411. for (var g = 0; g < f.length; g++) {
  14412. if (
  14413. f[g].ttype == 2 &&
  14414. this.tcid &&
  14415. this.arrayToArray(
  14416. f[g].classid.split(","),
  14417. this.tcid.split(",")
  14418. ).length == 0
  14419. ) {
  14420. continue;
  14421. }
  14422. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14423. f[g].classid.split(","),
  14424. this.tcid.split(",")
  14425. ).length !== 0 || this.arrayToArray(
  14426. f[g].classid.split(","),
  14427. this.classId ? this.classId.split(",") : []
  14428. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14429. this.groupStudent[i][gA].push(f[g]);
  14430. this.groupStudentUid[i][gA].push(f[g].userid);
  14431. }
  14432. }
  14433. }
  14434. this.$forceUpdate();
  14435. }
  14436. for (var j = 0; j < b.length; j++) {
  14437. if (
  14438. b[j].ttype == 2 &&
  14439. this.tcid &&
  14440. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14441. .length == 0
  14442. ) {
  14443. continue;
  14444. }
  14445. var likesCount = 0;
  14446. var commentCount = 0;
  14447. var isLikes = false;
  14448. var commentJson = [];
  14449. var likeJson = [];
  14450. var data = b[j];
  14451. if (i == b[j].tool) {
  14452. if (data.type == 2 && a[i].tool[0] == 4) {
  14453. // if(JSON.parse(data.content)[0].anwer){
  14454. var checkL =
  14455. JSON.parse(data.content)[0].anwer instanceof Array
  14456. ? JSON.parse(data.content)[0].anwer
  14457. : JSON.parse(data.content)[0].anwer.split(",");
  14458. for (var z = 0; z < checkL.length; z++) {
  14459. if (!this.checkJson[i][z]) {
  14460. this.checkJson[i].push({
  14461. checkCount: [],
  14462. checkPerson: [],
  14463. rightPerson: [],
  14464. });
  14465. }
  14466. if (!this.checkJson[i][z].checkCount.length) {
  14467. this.checkJson[i][z].checkCount = [];
  14468. let _askItemCount = JSON.parse(data.content)[0].askJson
  14469. .askJson[z].askItem;
  14470. for (var aic = 0; aic < _askItemCount; aic++) {
  14471. this.checkJson[i][z].checkCount.push(0);
  14472. }
  14473. }
  14474. if (checkL[z] instanceof Array) {
  14475. if (
  14476. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14477. checkL[z].sort().join(",")
  14478. ) {
  14479. this.checkJson[i][z].rightPerson.push(data.name);
  14480. }
  14481. for (var q = 0; q < checkL[z].length; q++) {
  14482. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14483. ? this.checkJson[i][z].checkPerson[
  14484. parseInt(checkL[z][q])
  14485. ].push(data.name)
  14486. : (this.checkJson[i][z].checkPerson[
  14487. parseInt(checkL[z][q])
  14488. ] = [data.name]);
  14489. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14490. ? this.checkJson[i][z].checkCount[
  14491. parseInt(checkL[z][q])
  14492. ]++
  14493. : (this.checkJson[i][z].checkCount[
  14494. parseInt(checkL[z][q])
  14495. ] = 1);
  14496. }
  14497. } else {
  14498. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14499. this.checkJson[i][z].rightPerson.push(data.name);
  14500. }
  14501. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14502. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14503. ? this.checkJson[i][z].checkPerson[
  14504. parseInt(checkL[z])
  14505. ].push(data.name)
  14506. : (this.checkJson[i][z].checkPerson[
  14507. parseInt(checkL[z])
  14508. ] = [data.name]);
  14509. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14510. ? this.checkJson[i][z].checkCount[
  14511. parseInt(checkL[z])
  14512. ]++
  14513. : (this.checkJson[i][z].checkCount[
  14514. parseInt(checkL[z])
  14515. ] = 1);
  14516. }
  14517. }
  14518. }
  14519. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14520. var checkL = JSON.parse(data.content)[0].anwer;
  14521. for (var z = 0; z < checkL.length; z++) {
  14522. if (!this.checkJson[i][z]) {
  14523. this.checkJson[i].push({
  14524. checkCount: [],
  14525. checkPerson: [],
  14526. rightPerson: [],
  14527. });
  14528. }
  14529. if (!this.checkJson[i][z].checkCount.length) {
  14530. this.checkJson[i][z].checkCount = [];
  14531. let _askItemCount = JSON.parse(data.content)[0].testJson
  14532. .testJson[z].testItem;
  14533. for (var aic = 0; aic < _askItemCount; aic++) {
  14534. this.checkJson[i][z].checkCount.push(0);
  14535. }
  14536. }
  14537. if (checkL[z] instanceof Array) {
  14538. if (
  14539. JSON.parse(data.content)[0]
  14540. .testJson.testJson[z].answer.sort()
  14541. .join(",") == checkL[z].sort().join(",")
  14542. ) {
  14543. this.checkJson[i][z].rightPerson.push(data.name);
  14544. }
  14545. for (var q = 0; q < checkL[z].length; q++) {
  14546. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14547. ? this.checkJson[i][z].checkPerson[
  14548. parseInt(checkL[z][q])
  14549. ].push(data.name)
  14550. : (this.checkJson[i][z].checkPerson[
  14551. parseInt(checkL[z][q])
  14552. ] = [data.name]);
  14553. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14554. ? this.checkJson[i][z].checkCount[
  14555. parseInt(checkL[z][q])
  14556. ]++
  14557. : (this.checkJson[i][z].checkCount[
  14558. parseInt(checkL[z][q])
  14559. ] = 1);
  14560. }
  14561. } else {
  14562. if (
  14563. JSON.parse(data.content)[0].testJson.testJson[z]
  14564. .answer == checkL[z]
  14565. ) {
  14566. this.checkJson[i][z].rightPerson.push(data.name);
  14567. }
  14568. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14569. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14570. ? this.checkJson[i][z].checkPerson[
  14571. parseInt(checkL[z])
  14572. ].push(data.name)
  14573. : (this.checkJson[i][z].checkPerson[
  14574. parseInt(checkL[z])
  14575. ] = [data.name]);
  14576. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14577. ? this.checkJson[i][z].checkCount[
  14578. parseInt(checkL[z])
  14579. ]++
  14580. : (this.checkJson[i][z].checkCount[
  14581. parseInt(checkL[z])
  14582. ] = 1);
  14583. }
  14584. }
  14585. }
  14586. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14587. var checkL = JSON.parse(data.content);
  14588. for (var z = 0; z < checkL.length; z++) {
  14589. if (!this.checkJson[i][z]) {
  14590. this.checkJson[i].push({
  14591. checkCount: [],
  14592. checkPerson: [],
  14593. rightPerson: [],
  14594. });
  14595. }
  14596. this.checkJson[i][z].checkPerson.push(data.name);
  14597. if (
  14598. checkL[z].chooseSenList.toString() ==
  14599. checkL[z].rightAnswer.toString()
  14600. ) {
  14601. this.checkJson[i][z].rightPerson.push(data.name);
  14602. }
  14603. }
  14604. }
  14605. for (var k = 0; k < d.length; k++) {
  14606. //点赞
  14607. if (d[k].workId == b[j].id) {
  14608. likesCount++;
  14609. likeJson.push(d[k])
  14610. if (d[k].likesId == this.userid) {
  14611. isLikes = true;
  14612. }
  14613. }
  14614. }
  14615. for (var l = 0; l < e.length; l++) {
  14616. //评论
  14617. if (e[l].workId == b[j].id) {
  14618. if (e[l].comment != "") {
  14619. commentCount++;
  14620. commentJson.push({
  14621. commentText: e[l].comment,
  14622. commentTime: e[l].commentTime,
  14623. commentPeople: e[l].commentPeople,
  14624. userid: e[l].userid,
  14625. wid: e[l].id,
  14626. });
  14627. }
  14628. }
  14629. }
  14630. if (
  14631. (b[j].type == 1 ||
  14632. b[j].type == 4 ||
  14633. b[j].type == 5 ||
  14634. b[j].type == 6 ||
  14635. b[j].type == 12 ||
  14636. b[j].type == 7) &&
  14637. a[i].tool[0] != 15 &&
  14638. a[i].tool[0] != 4 &&
  14639. a[i].tool[0] != 45 &&
  14640. a[i].tool[0] != 50 &&
  14641. a[i].tool[0] != 32 &&
  14642. a[i].tool[0] != 57 &&
  14643. a[i].tool[0] != 52
  14644. ) {
  14645. if (
  14646. c.indexOf(
  14647. b[j].content
  14648. .split(".")
  14649. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14650. ) != -1 &&
  14651. a[i].tool[0] == 16 &&
  14652. b[j].atool != 50
  14653. ) {
  14654. let _works = {
  14655. userid: b[j].userid,
  14656. ateacher: b[j].ateacher,
  14657. wid: b[j].id,
  14658. works: b[j].content,
  14659. sName: b[j].name,
  14660. type: 1,
  14661. ttype:b[j].ttype,
  14662. time: b[j].time,
  14663. score: b[j].score,
  14664. img: b[j].img,
  14665. likesCount: likesCount,
  14666. commentCount: commentCount,
  14667. isLikes: isLikes,
  14668. commentJson: commentJson,
  14669. likeJson:likeJson
  14670. };
  14671. if (this.isGroup) {
  14672. let isGw = 1;
  14673. for (
  14674. var groupI = 0;
  14675. groupI < this.courseGroup.group.length;
  14676. groupI++
  14677. ) {
  14678. let gid = this.courseGroup.group[groupI].id;
  14679. if (
  14680. this.courseGroupStudentUid[gid].indexOf(
  14681. b[j].userid
  14682. ) != -1
  14683. ) {
  14684. isGw = 2;
  14685. this.courseGroup.group[groupI].works[i].push(_works);
  14686. break;
  14687. }
  14688. }
  14689. if (isGw == 1) {
  14690. _worksStudent[i].push(_works);
  14691. }
  14692. } else {
  14693. _worksStudent[i].push(_works);
  14694. }
  14695. _worksStudent2[i].push(_works);
  14696. this.isWorksS[i].push({
  14697. uid: b[j].userid,
  14698. sName: b[j].name,
  14699. });
  14700. } else if (
  14701. y.indexOf(
  14702. b[j].content
  14703. .split(".")
  14704. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14705. ) != -1 &&
  14706. a[i].tool[0] == 16 &&
  14707. b[j].atool != 50
  14708. ) {
  14709. let _works = {
  14710. userid: b[j].userid,
  14711. ateacher: b[j].ateacher,
  14712. wid: b[j].id,
  14713. works: b[j].content,
  14714. sName: b[j].name,
  14715. type: 3,
  14716. ttype:b[j].ttype,
  14717. time: b[j].time,
  14718. score: b[j].score,
  14719. img: b[j].img,
  14720. likesCount: likesCount,
  14721. commentCount: commentCount,
  14722. isLikes: isLikes,
  14723. commentJson: commentJson,
  14724. likeJson:likeJson
  14725. };
  14726. if (this.isGroup) {
  14727. let isGw = 1;
  14728. for (
  14729. var groupI = 0;
  14730. groupI < this.courseGroup.group.length;
  14731. groupI++
  14732. ) {
  14733. let gid = this.courseGroup.group[groupI].id;
  14734. if (
  14735. this.courseGroupStudentUid[gid].indexOf(
  14736. b[j].userid
  14737. ) != -1
  14738. ) {
  14739. isGw = 2;
  14740. this.courseGroup.group[groupI].works[i].push(_works);
  14741. break;
  14742. }
  14743. }
  14744. if (isGw == 1) {
  14745. _worksStudent[i].push(_works);
  14746. }
  14747. } else {
  14748. _worksStudent[i].push(_works);
  14749. }
  14750. _worksStudent2[i].push(_works);
  14751. this.isWorksS[i].push({
  14752. uid: b[j].userid,
  14753. sName: b[j].name,
  14754. });
  14755. } else if (b[j].type == 6 && b[j].atool != 50) {
  14756. let _works = {
  14757. userid: b[j].userid,
  14758. ateacher: b[j].ateacher,
  14759. wid: b[j].id,
  14760. works: b[j].content,
  14761. sName: b[j].name,
  14762. type: 4,
  14763. ttype:b[j].ttype,
  14764. time: b[j].time,
  14765. score: b[j].score,
  14766. img: b[j].img,
  14767. likesCount: likesCount,
  14768. commentCount: commentCount,
  14769. isLikes: isLikes,
  14770. commentJson: commentJson,
  14771. likeJson:likeJson
  14772. };
  14773. _worksStudent[i].push(_works);
  14774. _worksStudent2[i].push(_works);
  14775. this.isWorksS[i].push({
  14776. uid: b[j].userid,
  14777. sName: b[j].name,
  14778. });
  14779. } else if (b[j].type == 7 && b[j].atool != 50) {
  14780. let _work = {
  14781. userid: b[j].userid,
  14782. ateacher: b[j].ateacher,
  14783. wid: b[j].id,
  14784. works: b[j].content,
  14785. sName: b[j].name,
  14786. type: 5,
  14787. ttype:b[j].ttype,
  14788. time: b[j].time,
  14789. score: b[j].score,
  14790. img: b[j].img,
  14791. likesCount: likesCount,
  14792. commentCount: commentCount,
  14793. isLikes: isLikes,
  14794. commentJson: commentJson,
  14795. likeJson:likeJson
  14796. };
  14797. _worksStudent[i].push(_work);
  14798. _worksStudent2[i].push(_work);
  14799. this.isWorksS[i].push({
  14800. uid: b[j].userid,
  14801. sName: b[j].name,
  14802. });
  14803. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14804. let _works = {
  14805. userid: b[j].userid,
  14806. ateacher: b[j].ateacher,
  14807. wid: b[j].id,
  14808. works: b[j].content,
  14809. sName: b[j].name,
  14810. type: 12,
  14811. ttype:b[j].ttype,
  14812. time: b[j].time,
  14813. score: b[j].score,
  14814. img: b[j].img,
  14815. likesCount: likesCount,
  14816. commentCount: commentCount,
  14817. isLikes: isLikes,
  14818. commentJson: commentJson,
  14819. likeJson:likeJson
  14820. };
  14821. if (this.isGroup) {
  14822. let isGw = 1;
  14823. for (
  14824. var groupI = 0;
  14825. groupI < this.courseGroup.group.length;
  14826. groupI++
  14827. ) {
  14828. let gid = this.courseGroup.group[groupI].id;
  14829. if (
  14830. this.courseGroupStudentUid[gid].indexOf(
  14831. b[j].userid
  14832. ) != -1
  14833. ) {
  14834. isGw = 2;
  14835. this.courseGroup.group[groupI].works[i].push(_works);
  14836. break;
  14837. }
  14838. }
  14839. if (isGw == 1) {
  14840. _worksStudent[i].push(_works);
  14841. }
  14842. } else {
  14843. _worksStudent[i].push(_works);
  14844. }
  14845. _worksStudent2[i].push(_works);
  14846. this.isWorksS[i].push({
  14847. uid: b[j].userid,
  14848. sName: b[j].name,
  14849. });
  14850. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14851. let _works = {
  14852. userid: b[j].userid,
  14853. ateacher: b[j].ateacher,
  14854. wid: b[j].id,
  14855. works: b[j].content,
  14856. sName: b[j].name,
  14857. type: 0,
  14858. ttype:b[j].ttype,
  14859. time: b[j].time,
  14860. score: b[j].score,
  14861. img: b[j].img,
  14862. likesCount: likesCount,
  14863. commentCount: commentCount,
  14864. isLikes: isLikes,
  14865. commentJson: commentJson,
  14866. likeJson:likeJson
  14867. };
  14868. if (this.isGroup) {
  14869. let isGw = 1;
  14870. for (
  14871. var groupI = 0;
  14872. groupI < this.courseGroup.group.length;
  14873. groupI++
  14874. ) {
  14875. let gid = this.courseGroup.group[groupI].id;
  14876. if (
  14877. this.courseGroupStudentUid[gid].indexOf(
  14878. b[j].userid
  14879. ) != -1
  14880. ) {
  14881. isGw = 2;
  14882. this.courseGroup.group[groupI].works[i].push(_works);
  14883. break;
  14884. }
  14885. }
  14886. if (isGw == 1) {
  14887. _worksStudent[i].push(_works);
  14888. }
  14889. } else {
  14890. _worksStudent[i].push(_works);
  14891. }
  14892. _worksStudent2[i].push(_works);
  14893. this.isWorksS[i].push({
  14894. uid: b[j].userid,
  14895. sName: b[j].name,
  14896. });
  14897. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14898. let _works = {
  14899. userid: b[j].userid,
  14900. ateacher: b[j].ateacher,
  14901. wid: b[j].id,
  14902. works: b[j].content,
  14903. sName: b[j].name,
  14904. type: 0,
  14905. ttype:b[j].ttype,
  14906. time: b[j].time,
  14907. score: b[j].score,
  14908. img: b[j].img,
  14909. likesCount: likesCount,
  14910. commentCount: commentCount,
  14911. isLikes: isLikes,
  14912. commentJson: commentJson,
  14913. likeJson:likeJson
  14914. };
  14915. if (this.isGroup) {
  14916. let isGw = 1;
  14917. for (
  14918. var groupI = 0;
  14919. groupI < this.courseGroup.group.length;
  14920. groupI++
  14921. ) {
  14922. let gid = this.courseGroup.group[groupI].id;
  14923. if (
  14924. this.courseGroupStudentUid[gid].indexOf(
  14925. b[j].userid
  14926. ) != -1
  14927. ) {
  14928. isGw = 2;
  14929. this.courseGroup.group[groupI].works[i].push(_works);
  14930. break;
  14931. }
  14932. }
  14933. if (isGw == 1) {
  14934. _worksStudent[i].push(_works);
  14935. }
  14936. } else {
  14937. _worksStudent[i].push(_works);
  14938. }
  14939. _worksStudent2[i].push(_works);
  14940. this.isWorksS[i].push({
  14941. uid: b[j].userid,
  14942. sName: b[j].name,
  14943. });
  14944. }
  14945. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14946. let _works = {
  14947. userid: b[j].userid,
  14948. ateacher: b[j].ateacher,
  14949. wid: b[j].id,
  14950. works: b[j].content,
  14951. sName: b[j].name,
  14952. type: 2,
  14953. ttype:b[j].ttype,
  14954. time: b[j].time,
  14955. score: b[j].score,
  14956. img: b[j].img,
  14957. likesCount: likesCount,
  14958. commentCount: commentCount,
  14959. isLikes: isLikes,
  14960. commentJson: commentJson,
  14961. likeJson:likeJson
  14962. };
  14963. if (this.isGroup) {
  14964. let isGw = 1;
  14965. for (
  14966. var groupI = 0;
  14967. groupI < this.courseGroup.group.length;
  14968. groupI++
  14969. ) {
  14970. let gid = this.courseGroup.group[groupI].id;
  14971. if (
  14972. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14973. -1
  14974. ) {
  14975. isGw = 2;
  14976. this.courseGroup.group[groupI].works[i].push(_works);
  14977. break;
  14978. }
  14979. }
  14980. if (isGw == 1) {
  14981. _worksStudent[i].push(_works);
  14982. }
  14983. } else {
  14984. _worksStudent[i].push(_works);
  14985. }
  14986. _worksStudent2[i].push(_works);
  14987. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14988. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14989. //问卷
  14990. let _work = {
  14991. userid: b[j].userid,
  14992. ateacher: b[j].ateacher,
  14993. wid: b[j].id,
  14994. works: b[j].content,
  14995. sName: b[j].name,
  14996. type: 2,
  14997. ttype:b[j].ttype,
  14998. time: b[j].time,
  14999. score: b[j].score,
  15000. img: b[j].img,
  15001. likesCount: likesCount,
  15002. commentCount: commentCount,
  15003. isLikes: isLikes,
  15004. commentJson: commentJson,
  15005. likeJson:likeJson
  15006. };
  15007. _worksStudent[i].push(_work);
  15008. _worksStudent2[i].push(_work);
  15009. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15010. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15011. //选择题
  15012. let _work = {
  15013. userid: b[j].userid,
  15014. ateacher: b[j].ateacher,
  15015. wid: b[j].id,
  15016. works: b[j].content,
  15017. sName: b[j].name,
  15018. type: 8,
  15019. ttype:b[j].ttype,
  15020. time: b[j].time,
  15021. score: b[j].score,
  15022. img: b[j].img,
  15023. likesCount: likesCount,
  15024. commentCount: commentCount,
  15025. isLikes: isLikes,
  15026. commentJson: commentJson,
  15027. likeJson:likeJson
  15028. };
  15029. _worksStudent[i].push(_work);
  15030. _worksStudent2[i].push(_work);
  15031. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15032. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15033. //选择题
  15034. let _work = {
  15035. userid: b[j].userid,
  15036. ateacher: b[j].ateacher,
  15037. wid: b[j].id,
  15038. works: b[j].content,
  15039. sName: b[j].name,
  15040. type: 9,
  15041. ttype:b[j].ttype,
  15042. time: b[j].time,
  15043. score: b[j].score,
  15044. img: b[j].img,
  15045. likesCount: likesCount,
  15046. commentCount: commentCount,
  15047. isLikes: isLikes,
  15048. commentJson: commentJson,
  15049. likeJson:likeJson
  15050. };
  15051. _worksStudent[i].push(_work);
  15052. _worksStudent2[i].push(_work);
  15053. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15054. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15055. //选择题
  15056. let _work = {
  15057. userid: b[j].userid,
  15058. ateacher: b[j].ateacher,
  15059. wid: b[j].id,
  15060. works: b[j].content,
  15061. sName: b[j].name,
  15062. type: 10,
  15063. ttype:b[j].ttype,
  15064. time: b[j].time,
  15065. score: b[j].score,
  15066. img: b[j].img,
  15067. likesCount: likesCount,
  15068. commentCount: commentCount,
  15069. isLikes: isLikes,
  15070. commentJson: commentJson,
  15071. likeJson:likeJson
  15072. };
  15073. _worksStudent[i].push(_work);
  15074. _worksStudent2[i].push(_work);
  15075. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15076. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15077. //选择题
  15078. let _work = {
  15079. userid: b[j].userid,
  15080. ateacher: b[j].ateacher,
  15081. wid: b[j].id,
  15082. works: b[j].content,
  15083. sName: b[j].name,
  15084. type: 13,
  15085. ttype:b[j].ttype,
  15086. time: b[j].time,
  15087. score: b[j].score,
  15088. img: b[j].img,
  15089. likesCount: likesCount,
  15090. commentCount: commentCount,
  15091. isLikes: isLikes,
  15092. commentJson: commentJson,
  15093. likeJson:likeJson
  15094. };
  15095. _worksStudent[i].push(_work);
  15096. _worksStudent2[i].push(_work);
  15097. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15098. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15099. //选择题
  15100. let _work = {
  15101. userid: b[j].userid,
  15102. ateacher: b[j].ateacher,
  15103. wid: b[j].id,
  15104. works: b[j].content,
  15105. sName: b[j].name,
  15106. type: 16,
  15107. ttype:b[j].ttype,
  15108. time: b[j].time,
  15109. score: b[j].score,
  15110. img: b[j].img,
  15111. likesCount: likesCount,
  15112. commentCount: commentCount,
  15113. isLikes: isLikes,
  15114. commentJson: commentJson,
  15115. aiCode: b[j].aiCode,
  15116. teacherCode: b[j].teacherCode,
  15117. likeJson:likeJson
  15118. };
  15119. _worksStudent[i].push(_work);
  15120. _worksStudent2[i].push(_work);
  15121. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15122. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15123. //英语口语
  15124. let _work = {
  15125. userid: b[j].userid,
  15126. ateacher: b[j].ateacher,
  15127. wid: b[j].id,
  15128. works: b[j].content,
  15129. sName: b[j].name,
  15130. type: 17,
  15131. ttype:b[j].ttype,
  15132. time: b[j].time,
  15133. score: b[j].score,
  15134. img: b[j].img,
  15135. likesCount: likesCount,
  15136. commentCount: commentCount,
  15137. isLikes: isLikes,
  15138. commentJson: commentJson,
  15139. likeJson:likeJson
  15140. };
  15141. _worksStudent[i].push(_work);
  15142. _worksStudent2[i].push(_work);
  15143. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15144. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15145. //交互视频
  15146. let _work = {
  15147. userid: b[j].userid,
  15148. ateacher: b[j].ateacher,
  15149. wid: b[j].id,
  15150. works: b[j].content,
  15151. sName: b[j].name,
  15152. type: 14,
  15153. ttype:b[j].ttype,
  15154. time: b[j].time,
  15155. score: b[j].score,
  15156. img: b[j].img,
  15157. likesCount: likesCount,
  15158. commentCount: commentCount,
  15159. isLikes: isLikes,
  15160. commentJson: commentJson,
  15161. likeJson:likeJson
  15162. };
  15163. _worksStudent[i].push(_work);
  15164. _worksStudent2[i].push(_work);
  15165. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15166. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15167. let _gindex = JSON.parse(b[j].content);
  15168. if (
  15169. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15170. b[j].userid
  15171. ) != -1
  15172. ) {
  15173. let _work = {
  15174. userid: b[j].userid,
  15175. ateacher: b[j].ateacher,
  15176. wid: b[j].id,
  15177. works: _gindex.url,
  15178. sName: b[j].name,
  15179. type: _gindex.type,
  15180. ttype:b[j].ttype,
  15181. time: b[j].time,
  15182. score: b[j].score,
  15183. img: b[j].img,
  15184. likesCount: likesCount,
  15185. commentCount: commentCount,
  15186. isLikes: isLikes,
  15187. commentJson: commentJson,
  15188. likeJson:likeJson
  15189. };
  15190. _worksStudent[i][_gindex.groupIndex].push(_work);
  15191. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15192. }
  15193. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15194. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15195. let _work = {
  15196. userid: b[j].userid,
  15197. ateacher: b[j].ateacher,
  15198. wid: b[j].id,
  15199. works: b[j].content,
  15200. sName: b[j].name ? b[j].name : b[j].userid,
  15201. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15202. ttype:b[j].ttype,
  15203. time: b[j].time,
  15204. score: b[j].score,
  15205. img: b[j].img,
  15206. likesCount: likesCount,
  15207. commentCount: commentCount,
  15208. isLikes: isLikes,
  15209. commentJson: commentJson,
  15210. likeJson:likeJson
  15211. };
  15212. _worksStudent[i].push(_work);
  15213. _worksStudent2[i].push(_work);
  15214. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15215. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15216. let _work = {
  15217. userid: b[j].userid,
  15218. ateacher: b[j].ateacher,
  15219. wid: b[j].id,
  15220. works: b[j].content,
  15221. sName: b[j].name ? b[j].name : b[j].userid,
  15222. type: 12,
  15223. ttype:b[j].ttype,
  15224. time: b[j].time,
  15225. score: b[j].score,
  15226. img: b[j].img,
  15227. likesCount: likesCount,
  15228. commentCount: commentCount,
  15229. isLikes: isLikes,
  15230. commentJson: commentJson,
  15231. likeJson:likeJson
  15232. };
  15233. _worksStudent[i].push(_work);
  15234. _worksStudent2[i].push(_work);
  15235. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15236. } else if (
  15237. a[i].tool[0] == 57 &&
  15238. b[j].atool == 57 &&
  15239. b[j].type == 12
  15240. ) {
  15241. let _work = {
  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 ? b[j].name : b[j].userid,
  15247. type: 12,
  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. _worksStudent[i].push(_work);
  15259. _worksStudent2[i].push(_work);
  15260. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15261. } else if (
  15262. a[i].tool[0] == 57 &&
  15263. b[j].atool == 57 &&
  15264. b[j].type == 15
  15265. ) {
  15266. let _work = {
  15267. userid: b[j].userid,
  15268. ateacher: b[j].ateacher,
  15269. wid: b[j].id,
  15270. works: b[j].content,
  15271. sName: b[j].name ? b[j].name : b[j].userid,
  15272. type: 15,
  15273. ttype:b[j].ttype,
  15274. time: b[j].time,
  15275. score: b[j].score,
  15276. img: b[j].img,
  15277. likesCount: likesCount,
  15278. commentCount: commentCount,
  15279. isLikes: isLikes,
  15280. commentJson: commentJson,
  15281. likeJson:likeJson
  15282. };
  15283. _worksStudent[i].push(_work);
  15284. _worksStudent2[i].push(_work);
  15285. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15286. }
  15287. }
  15288. }
  15289. if (_worksStudent[i] && _worksStudent[i].length) {
  15290. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15291. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15292. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15293. var scoreA = parseFloat(jscoreA);
  15294. var scoreB = parseFloat(jscoreB);
  15295. if (scoreA == scoreB) {
  15296. return b.likesCount - a.likesCount;
  15297. }
  15298. return scoreB - scoreA;
  15299. });
  15300. if (this.isGroup) {
  15301. for (
  15302. var groupI = 0;
  15303. groupI < this.courseGroup.group.length;
  15304. groupI++
  15305. ) {
  15306. this.courseGroup.group[groupI].works[i] =
  15307. this.courseGroup.group[groupI].works[i].sort(function (
  15308. a,
  15309. b
  15310. ) {
  15311. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15312. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15313. var scoreA = parseFloat(jscoreA);
  15314. var scoreB = parseFloat(jscoreB);
  15315. if (scoreA == scoreB) {
  15316. return b.likesCount - a.likesCount;
  15317. }
  15318. return scoreB - scoreA;
  15319. });
  15320. }
  15321. }
  15322. }
  15323. }
  15324. this.timeWorkList = _worksStudent2;
  15325. for (var i = 0; i < a.length; i++) {
  15326. for (var j = 0; j < b.length; j++) {
  15327. var data = b[j];
  15328. if (i == b[j].tool) {
  15329. if (data.type == 2 || data.type == 8) {
  15330. for (var z = 0; z < this.checkJson[i].length; z++) {
  15331. this.checkJson[i][z].checkPerent = [];
  15332. this.checkJson[i][z].right = Math.round(
  15333. (this.checkJson[i][z].rightPerson.length /
  15334. parseInt(_worksStudent[i].length)) *
  15335. 100
  15336. );
  15337. let aaaa = this.checkJson[i][z];
  15338. for (
  15339. var k = 0;
  15340. k < this.checkJson[i][z].checkCount.length;
  15341. k++
  15342. ) {
  15343. this.checkJson[i][z].checkPerent.push(
  15344. Math.round(
  15345. (this.checkJson[i][z].checkCount[k] /
  15346. parseInt(_worksStudent[i].length)) *
  15347. 100
  15348. )
  15349. );
  15350. }
  15351. }
  15352. } else if (data.type == 9) {
  15353. for (var z = 0; z < this.checkJson[i].length; z++) {
  15354. this.checkJson[i][z].checkPerent = [];
  15355. this.checkJson[i][z].right = Math.round(
  15356. (this.checkJson[i][z].rightPerson.length /
  15357. this.checkJson[i][z].checkPerson.length) *
  15358. 100
  15359. );
  15360. }
  15361. }
  15362. }
  15363. }
  15364. }
  15365. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15366. this.joinGroup(gindex);
  15367. }
  15368. this.worksStudent = _worksStudent;
  15369. this.selectWorksStudent();
  15370. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15371. this.$nextTick(()=>{
  15372. setTimeout(()=>{
  15373. setTimeout(()=>{
  15374. this.panToolHeight('tool-'+ci);
  15375. }, 500)
  15376. }, 0)
  15377. })
  15378. }
  15379. })
  15380. .catch((err) => {
  15381. console.error(err);
  15382. });
  15383. },
  15384. pngToWhiteBg(file) {
  15385. const _file = file;
  15386. let read = new FileReader();
  15387. read.readAsDataURL(file); // 文件转base64
  15388. return new Promise((resolve, reject) => {
  15389. read.onload = (e) => {
  15390. let img = new Image();
  15391. img.src = e.target.result;
  15392. img.onload = async () => {
  15393. // 生成canvas
  15394. let canvas = document.createElement("canvas");
  15395. let context = canvas.getContext("2d");
  15396. // 绘制图片到canvas上
  15397. canvas.width = img.width;
  15398. canvas.height = img.height;
  15399. // 在canvas绘制前填充白色背景
  15400. context.fillStyle = "#fff";
  15401. context.fillRect(0, 0, canvas.width, canvas.height);
  15402. context.drawImage(img, 0, 0);
  15403. let base64 = canvas.toDataURL(file["type"], 1);
  15404. let newFile = this.dataUrlToFile(base64, _file);
  15405. resolve(newFile);
  15406. };
  15407. };
  15408. });
  15409. },
  15410. dataUrlToFile(dataurl, file) {
  15411. let arr = dataurl.split(","),
  15412. mime = arr[0].match(/:(.*?);/)[1],
  15413. bstr = atob(arr[1]),
  15414. n = bstr.length,
  15415. u8arr = new Uint8Array(n);
  15416. while (n--) {
  15417. u8arr[n] = bstr.charCodeAt(n);
  15418. }
  15419. // return new Blob([u8arr], { type: mime });
  15420. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15421. type: mime,
  15422. });
  15423. },
  15424. async beforeUpload1(event, type, i) {
  15425. // this.$message.success('进入上传')
  15426. var file = "";
  15427. if (type == 5) {
  15428. file = event;
  15429. } else {
  15430. file = event.target.files[0];
  15431. }
  15432. var credentials = {
  15433. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15434. secretAccessKey: "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",
  15435. }; //秘钥形式的登录上传
  15436. window.AWS.config.update(credentials);
  15437. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15438. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15439. var _this = this;
  15440. _this.progress = 0;
  15441. _this.proVisible = true;
  15442. _this.isFinishSize = 0;
  15443. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15444. var b = [
  15445. "DOC",
  15446. "DOCX",
  15447. "DOCM",
  15448. "DOTM",
  15449. "DOTX",
  15450. "PPTX",
  15451. "PPSX",
  15452. "PPT",
  15453. "PPS",
  15454. "PPTM",
  15455. "POTM",
  15456. "PPAM",
  15457. "POTX",
  15458. "PPSM",
  15459. ];
  15460. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15461. var photoA = [
  15462. "BMP",
  15463. "GIF",
  15464. "PNG",
  15465. "JPEG",
  15466. "JPEG",
  15467. "JPG",
  15468. "TIF",
  15469. "PCX",
  15470. "TGA",
  15471. "EXIF",
  15472. "FPX",
  15473. "SVG",
  15474. "APNG",
  15475. ];
  15476. // if (
  15477. // b.indexOf(
  15478. // file.name
  15479. // .split(".")
  15480. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15481. // ) != -1
  15482. // ) {
  15483. // if (file.size / 1024 / 1024 > 10) {
  15484. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15485. // return;
  15486. // }
  15487. // } else if (
  15488. // excelA.indexOf(
  15489. // file.name
  15490. // .split(".")
  15491. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15492. // ) != "-1"
  15493. // ) {
  15494. // if (file.size / 1024 / 1024 > 5) {
  15495. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15496. // return;
  15497. // }
  15498. // }
  15499. if (
  15500. photoA.indexOf(
  15501. file.name
  15502. .split(".")
  15503. [file.name.split(".").length - 1].toLocaleUpperCase()
  15504. ) != -1 &&
  15505. type != 4
  15506. ) {
  15507. // const blob = await imageConversion.compress(file, 0.8)
  15508. file = await this.pngToWhiteBg(file);
  15509. const blob = await imageConversion.compressAccurately(file, 256);
  15510. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15511. file = new File([blob], file.name, { type: file.type });
  15512. }
  15513. if (file) {
  15514. var params = {
  15515. Key:
  15516. file.name.split(".")[0] +
  15517. new Date().getTime() +
  15518. "." +
  15519. file.name.split(".")[file.name.split(".").length - 1],
  15520. ContentType: file.type,
  15521. Body: file,
  15522. "Access-Control-Allow-Credentials": "*",
  15523. ACL: "public-read",
  15524. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15525. var options = {
  15526. // partSize: 2048 * 1024 * 1024,
  15527. partSize: 1024 * 1024 * 1024,
  15528. queueSize: 2,
  15529. leavePartsOnError: true,
  15530. };
  15531. bucket
  15532. .upload(params, options)
  15533. .on("httpUploadProgress", function (evt) {
  15534. //这里可以写进度条
  15535. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15536. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15537. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15538. })
  15539. .send(function (err, data) {
  15540. _this.progress = 100;
  15541. _this.isFinishSize = _this.isAllSize;
  15542. setTimeout(() => {
  15543. _this.proVisible = false;
  15544. }, 1000);
  15545. if (err) {
  15546. var a = _this.$refs.upload1.uploadFiles;
  15547. a.splice(a.length - 1, a.length);
  15548. _this.$message.error("上传失败");
  15549. } else {
  15550. // _this.$message.success('上传成功')
  15551. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15552. var c = [
  15553. "AVI",
  15554. "NAVI",
  15555. "MPEG",
  15556. "ASF",
  15557. "MOV",
  15558. "WMV",
  15559. "3GP",
  15560. "RM",
  15561. "RMVB",
  15562. "FLV",
  15563. "F4V",
  15564. "H.264",
  15565. "H.265",
  15566. "REAL VIDEO",
  15567. "MKV",
  15568. "WebM",
  15569. "HDDVD",
  15570. "MP4",
  15571. "MPG",
  15572. "M4V",
  15573. "MGV",
  15574. "OGV",
  15575. "QTM",
  15576. "STR",
  15577. "AMC",
  15578. "DVX",
  15579. "EVO",
  15580. "DAT",
  15581. "OGG",
  15582. "OGM",
  15583. ];
  15584. if (type == 1) {
  15585. _this.studyJuri[0].cover.push({
  15586. name: file.name,
  15587. url: data.Location,
  15588. uid: file.uid,
  15589. });
  15590. if (
  15591. c.indexOf(
  15592. _this.studyJuri[0].cover[0].url
  15593. .split(".")
  15594. [
  15595. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15596. ].toLocaleUpperCase()
  15597. ) != -1
  15598. ) {
  15599. _this.fileType = 2;
  15600. } else if (
  15601. b.indexOf(
  15602. _this.studyJuri[0].cover[0].url
  15603. .split(".")
  15604. [
  15605. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15606. ].toLocaleUpperCase()
  15607. ) != -1
  15608. ) {
  15609. _this.fileType = 1;
  15610. } else if (
  15611. photoA.indexOf(
  15612. _this.studyJuri[0].cover[0].url
  15613. .split(".")
  15614. [
  15615. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15616. ].toLocaleUpperCase()
  15617. ) != -1
  15618. ) {
  15619. _this.fileType = 0;
  15620. } else {
  15621. _this.fileType = 3;
  15622. }
  15623. _this.imgChange(null, null, type);
  15624. } else if (type == 2) {
  15625. _this.upToolImg = data.Location;
  15626. _this.imgChange(null, null, type);
  15627. _this.addCourseWorks(i);
  15628. } else if (type == 4) {
  15629. _this.addPz("3", data.Location);
  15630. } else if (type == 5) {
  15631. _this.addImgDrawImG(data.Location);
  15632. } else if (type == 6) {
  15633. var _ftype = 1;
  15634. if (
  15635. c.indexOf(
  15636. data.Location.split(".")[
  15637. data.Location.split(".").length - 1
  15638. ].toLocaleUpperCase()
  15639. ) != -1
  15640. ) {
  15641. _ftype = 5;
  15642. } else if (
  15643. b.indexOf(
  15644. data.Location.split(".")[
  15645. data.Location.split(".").length - 1
  15646. ].toLocaleUpperCase()
  15647. ) != -1
  15648. ) {
  15649. _ftype = 4;
  15650. } else {
  15651. _ftype = 1;
  15652. }
  15653. _this.plworkFile.push({
  15654. name: file.name,
  15655. url: data.Location,
  15656. uid: file.uid,
  15657. fileType: _ftype,
  15658. username:
  15659. _this.plworkFile.length > 10
  15660. ? _this.plworkFile.length + 1
  15661. : "0" + (_this.plworkFile.length + 1),
  15662. });
  15663. } else if (type == 7) {
  15664. _this.addCourseWorksGong(i, data.Location, 32);
  15665. } else if (type == 8) {
  15666. _this.addCourseWorksGong(i, data.Location, 57);
  15667. }
  15668. _this.imgChange(null, null, type);
  15669. console.log(data.Location);
  15670. // _this.$message.success('上传成功'+data.Location)
  15671. }
  15672. });
  15673. }
  15674. },
  15675. async beforeUpload3(event, type, i) {
  15676. // this.$message.success('进入上传')
  15677. let file = "";
  15678. let cfindex2 = 0;
  15679. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15680. file = event.target.files[cfindex];
  15681. var credentials = {
  15682. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15683. secretAccessKey: "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",
  15684. }; //秘钥形式的登录上传
  15685. window.AWS.config.update(credentials);
  15686. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15687. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15688. var _this = this;
  15689. // _this.progress = 0;
  15690. _this.proVisible2 = true;
  15691. var b = [
  15692. "DOC",
  15693. "DOCX",
  15694. "DOCM",
  15695. "DOTM",
  15696. "DOTX",
  15697. "PPTX",
  15698. "PPSX",
  15699. "PPT",
  15700. "PPS",
  15701. "PPTM",
  15702. "POTM",
  15703. "PPAM",
  15704. "POTX",
  15705. "PPSM",
  15706. ];
  15707. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15708. var photoA = [
  15709. "BMP",
  15710. "GIF",
  15711. "PNG",
  15712. "JPEG",
  15713. "JPG",
  15714. "TIF",
  15715. "PCX",
  15716. "TGA",
  15717. "EXIF",
  15718. "FPX",
  15719. "SVG",
  15720. "APNG",
  15721. ];
  15722. if (
  15723. photoA.indexOf(
  15724. file.name
  15725. .split(".")
  15726. [file.name.split(".").length - 1].toLocaleUpperCase()
  15727. ) != -1 &&
  15728. type != 4
  15729. ) {
  15730. // const blob = await imageConversion.compress(file, 0.8)
  15731. file = await this.pngToWhiteBg(file);
  15732. const blob = await imageConversion.compressAccurately(file, 256);
  15733. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15734. file = new File([blob], file.name, { type: file.type });
  15735. }
  15736. if (file) {
  15737. var params = {
  15738. Key:
  15739. file.name.split(".")[0] +
  15740. new Date().getTime() +
  15741. "." +
  15742. file.name.split(".")[file.name.split(".").length - 1],
  15743. ContentType: file.type,
  15744. Body: file,
  15745. "Access-Control-Allow-Credentials": "*",
  15746. ACL: "public-read",
  15747. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15748. var options = {
  15749. // partSize: 2048 * 1024 * 1024,
  15750. partSize: 1024 * 1024 * 1024,
  15751. queueSize: 2,
  15752. leavePartsOnError: true,
  15753. };
  15754. bucket
  15755. .upload(params, options)
  15756. .on("httpUploadProgress", function (evt) {
  15757. //这里可以写进度条
  15758. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15759. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15760. })
  15761. .send(function (err, data) {
  15762. // _this.progress = 100;
  15763. cfindex2++;
  15764. setTimeout(() => {
  15765. if (
  15766. cfindex2 == event.target.files.length - 1 ||
  15767. cfindex2 > event.target.files.length - 1
  15768. ) {
  15769. _this.proVisible2 = false;
  15770. }
  15771. }, 1000);
  15772. if (err) {
  15773. var a = _this.$refs.upload1.uploadFiles;
  15774. a.splice(a.length - 1, a.length);
  15775. _this.$message.error("上传失败");
  15776. } else {
  15777. // _this.$message.success('上传成功')
  15778. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15779. var c = [
  15780. "AVI",
  15781. "NAVI",
  15782. "MPEG",
  15783. "ASF",
  15784. "MOV",
  15785. "WMV",
  15786. "3GP",
  15787. "RM",
  15788. "RMVB",
  15789. "FLV",
  15790. "F4V",
  15791. "H.264",
  15792. "H.265",
  15793. "REAL VIDEO",
  15794. "MKV",
  15795. "WebM",
  15796. "HDDVD",
  15797. "MP4",
  15798. "MPG",
  15799. "M4V",
  15800. "MGV",
  15801. "OGV",
  15802. "QTM",
  15803. "STR",
  15804. "AMC",
  15805. "DVX",
  15806. "EVO",
  15807. "DAT",
  15808. "OGG",
  15809. "OGM",
  15810. ];
  15811. if (type == 1) {
  15812. _this.studyJuri[0].cover.push({
  15813. name: file.name,
  15814. url: data.Location,
  15815. uid: file.uid,
  15816. });
  15817. if (
  15818. c.indexOf(
  15819. _this.studyJuri[0].cover[0].url
  15820. .split(".")
  15821. [
  15822. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15823. ].toLocaleUpperCase()
  15824. ) != -1
  15825. ) {
  15826. _this.fileType = 2;
  15827. } else if (
  15828. b.indexOf(
  15829. _this.studyJuri[0].cover[0].url
  15830. .split(".")
  15831. [
  15832. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15833. ].toLocaleUpperCase()
  15834. ) != -1
  15835. ) {
  15836. _this.fileType = 1;
  15837. } else {
  15838. _this.fileType = 0;
  15839. }
  15840. _this.imgChange(null, null, type);
  15841. } else if (type == 2) {
  15842. _this.upToolImg = data.Location;
  15843. _this.imgChange(null, null, type);
  15844. _this.addCourseWorks(i);
  15845. } else if (type == 4) {
  15846. _this.addPz("3", data.Location);
  15847. } else if (type == 5) {
  15848. _this.addImgDrawImG(data.Location);
  15849. } else if (type == 6) {
  15850. var _ftype = 1;
  15851. if (
  15852. c.indexOf(
  15853. data.Location.split(".")[
  15854. data.Location.split(".").length - 1
  15855. ].toLocaleUpperCase()
  15856. ) != -1
  15857. ) {
  15858. _ftype = 5;
  15859. } else if (
  15860. b.indexOf(
  15861. data.Location.split(".")[
  15862. data.Location.split(".").length - 1
  15863. ].toLocaleUpperCase()
  15864. ) != -1
  15865. ) {
  15866. _ftype = 4;
  15867. } else {
  15868. _ftype = 1;
  15869. }
  15870. _this.plworkFile.push({
  15871. name: file.name,
  15872. url: data.Location,
  15873. uid: file.uid,
  15874. fileType: _ftype,
  15875. username:
  15876. _this.plworkFile.length + 1 > 9
  15877. ? _this.plworkFile.length + 1
  15878. : "0" + (_this.plworkFile.length + 1),
  15879. });
  15880. }
  15881. _this.imgChange(null, null, type);
  15882. console.log(data.Location);
  15883. // _this.$message.success('上传成功'+data.Location)
  15884. }
  15885. });
  15886. }
  15887. }
  15888. },
  15889. beforeUpload2(event, type) {
  15890. var file = event.target.files[0];
  15891. var credentials = {
  15892. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15893. secretAccessKey: "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",
  15894. }; //秘钥形式的登录上传
  15895. window.AWS.config.update(credentials);
  15896. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15897. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15898. var _this = this;
  15899. _this.progress = 0;
  15900. _this.proVisible = true;
  15901. if (file) {
  15902. var params = {
  15903. Key:
  15904. file.name.split(".")[0] +
  15905. new Date().getTime() +
  15906. "." +
  15907. file.name.split(".")[file.name.split(".").length - 1],
  15908. ContentType: file.type,
  15909. Body: file,
  15910. "Access-Control-Allow-Credentials": "*",
  15911. ACL: "public-read",
  15912. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15913. var options = {
  15914. partSize: 2048 * 1024 * 1024,
  15915. queueSize: 2,
  15916. leavePartsOnError: true,
  15917. };
  15918. bucket
  15919. .upload(params, options)
  15920. .on("httpUploadProgress", function (evt) {
  15921. //这里可以写进度条
  15922. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15923. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15924. })
  15925. .send(function (err, data) {
  15926. _this.progress = 100;
  15927. setTimeout(() => {
  15928. _this.proVisible = false;
  15929. }, 1000);
  15930. if (err) {
  15931. var a = _this.$refs.upload1.uploadFiles;
  15932. a.splice(a.length - 1, a.length);
  15933. _this.$message.error("上传失败");
  15934. } else {
  15935. if (type == 2) {
  15936. _this.studyJuri[0].upVedio.push({
  15937. name: file.name,
  15938. url: data.Location,
  15939. uid: file.uid,
  15940. });
  15941. _this.imgChange(null, null, type);
  15942. } else if (type == 3) {
  15943. _this.studyJuri[0].upFile.push({
  15944. name: file.name,
  15945. url: data.Location,
  15946. uid: file.uid,
  15947. });
  15948. _this.imgChange(null, null, type);
  15949. }
  15950. console.log(data.Location);
  15951. }
  15952. });
  15953. }
  15954. },
  15955. allScrell() {
  15956. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15957. },
  15958. nextOrpreSteps(t) {
  15959. if (this.IsFollow && this.tType == 2) {
  15960. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15961. return;
  15962. }
  15963. var b = this.chapInfoList.length - 1;
  15964. if (t == 0) {
  15965. if (this.courseType == 0) {
  15966. if (this.taskCount == 0) {
  15967. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15968. if (this.IsLookOpen) {
  15969. if (
  15970. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15971. ) {
  15972. if (
  15973. this.courseDetail.userid != this.userid &&
  15974. (!this.courseDetail.course_teacher ||
  15975. (this.courseDetail.course_teacher &&
  15976. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  15977. ) {
  15978. this.$message.error("任务未解锁");
  15979. } else {
  15980. this.$message.error("上一任务未解锁");
  15981. }
  15982. return;
  15983. }
  15984. }
  15985. this.navList[this.courseType].isOpen = false;
  15986. this.courseType = b;
  15987. this.taskCount =
  15988. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15989. .length - 1;
  15990. this.navList[this.courseType].isOpen = true;
  15991. } else {
  15992. this.taskCount--;
  15993. }
  15994. } else {
  15995. if (this.taskCount == 0) {
  15996. this.navList[this.courseType].isOpen = false;
  15997. this.courseType--;
  15998. this.taskCount =
  15999. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16000. .length - 1;
  16001. this.navList[this.courseType].isOpen = true;
  16002. } else {
  16003. this.taskCount--;
  16004. }
  16005. }
  16006. } else {
  16007. if (this.courseType == b) {
  16008. if (
  16009. this.taskCount ==
  16010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16011. 1
  16012. ) {
  16013. this.navList[this.courseType].isOpen = false;
  16014. this.courseType = 0;
  16015. this.taskCount = 0;
  16016. this.navList[this.courseType].isOpen = true;
  16017. } else {
  16018. var bbb = parseInt(this.taskCount) + 1;
  16019. if (
  16020. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16021. .isLook &&
  16022. this.courseDetail.userid != this.userid &&
  16023. (!this.courseDetail.course_teacher ||
  16024. (this.courseDetail.course_teacher &&
  16025. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16026. this.IsLookOpen
  16027. ) {
  16028. this.$message.error("任务未解锁");
  16029. return;
  16030. }
  16031. this.taskCount++;
  16032. if (this.IsLookOpen) {
  16033. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16034. this.taskCount
  16035. ].isLook = true;
  16036. this.addCourseState(3);
  16037. }
  16038. }
  16039. } else {
  16040. if (
  16041. this.taskCount ==
  16042. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16043. 1
  16044. ) {
  16045. var bbb = parseInt(this.courseType) + 1;
  16046. if (
  16047. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16048. this.courseDetail.userid != this.userid &&
  16049. (!this.courseDetail.course_teacher ||
  16050. (this.courseDetail.course_teacher &&
  16051. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16052. this.IsLookOpen
  16053. ) {
  16054. this.$message.error("任务未解锁");
  16055. return;
  16056. }
  16057. this.navList[this.courseType].isOpen = false;
  16058. this.courseType++;
  16059. this.taskCount = 0;
  16060. this.navList[this.courseType].isOpen = true;
  16061. } else {
  16062. var bbb = parseInt(this.taskCount) + 1;
  16063. if (
  16064. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16065. .isLook &&
  16066. this.courseDetail.userid != this.userid &&
  16067. (!this.courseDetail.course_teacher ||
  16068. (this.courseDetail.course_teacher &&
  16069. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16070. this.IsLookOpen
  16071. ) {
  16072. this.$message.error("任务未解锁");
  16073. return;
  16074. }
  16075. this.taskCount++;
  16076. }
  16077. if (this.IsLookOpen) {
  16078. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16079. this.taskCount
  16080. ].isLook = true;
  16081. this.addCourseState(3);
  16082. }
  16083. }
  16084. // if (
  16085. // this.taskCount ==
  16086. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16087. // ) {
  16088. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16089. // } else {
  16090. // this.taskCount++;
  16091. // }
  16092. }
  16093. document.scrollingElement.scrollTop = 0;
  16094. this.showType = 7;
  16095. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16096. // if (this.vedio[this.taskCount].length > 0) {
  16097. // var a =
  16098. // document.getElementsByClassName("box_course")[this.taskCount]
  16099. // .offsetHeight;
  16100. // document.getElementsByClassName("vedioList")[
  16101. // this.taskCount
  16102. // ].style.height = a + "px";
  16103. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16104. // a - 40 + "px";
  16105. // }
  16106. this.isNoHomeWork = false;
  16107. (this.studyJuri = [
  16108. {
  16109. content: "",
  16110. cover: [],
  16111. upVedio: [],
  16112. upFile: [],
  16113. },
  16114. ]),
  16115. (this.radio = []);
  16116. this.isClickNav = "";
  16117. this.selectPz();
  16118. this.getHomeWork();
  16119. this.getCourseDetail(2);
  16120. this.$forceUpdate();
  16121. },
  16122. openTask(s, n, i) {
  16123. if (this.IsFollow && this.tType == 2) {
  16124. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16125. return;
  16126. }
  16127. if (this.IsLookOpen) {
  16128. if (
  16129. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16130. this.courseDetail.userid != this.userid &&
  16131. (!this.courseDetail.course_teacher ||
  16132. (this.courseDetail.course_teacher &&
  16133. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16134. ) {
  16135. this.$message.error("任务未解锁");
  16136. return;
  16137. }
  16138. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16139. if (
  16140. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16141. .isLook
  16142. ) {
  16143. this.$message.error("上一任务未解锁");
  16144. return;
  16145. }
  16146. } else if (s > this.courseType) {
  16147. if (n > 0) {
  16148. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16149. this.$message.error("上一任务未解锁");
  16150. return;
  16151. }
  16152. } else {
  16153. if (
  16154. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16155. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16156. ].isLook
  16157. ) {
  16158. this.$message.error("上一任务未解锁");
  16159. return;
  16160. }
  16161. }
  16162. }
  16163. }
  16164. if (this.navList[s].task[n].isOpen == true) {
  16165. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16166. return;
  16167. }
  16168. this.courseType = s;
  16169. this.navId = i;
  16170. this.taskCount = n;
  16171. this.navList[this.courseType].task[this.taskCount].isOpen =
  16172. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16173. if (this.IsLookOpen) {
  16174. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16175. this.taskCount
  16176. ].isLook = true;
  16177. this.addCourseState(3);
  16178. }
  16179. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16180. this.isCloseList[ci].isClose = 0;
  16181. this.isCloseList[ci].isCloseBoolean = false;
  16182. this.$nextTick(()=>{
  16183. setTimeout(()=>{
  16184. setTimeout(()=>{
  16185. this.panToolHeight('tool-'+ci);
  16186. }, 0)
  16187. }, 0)
  16188. })
  16189. }
  16190. this.showType = 7;
  16191. this.isNoHomeWork = false;
  16192. (this.studyJuri = [
  16193. {
  16194. content: "",
  16195. cover: [],
  16196. upVedio: [],
  16197. upFile: [],
  16198. },
  16199. ]),
  16200. (this.radio = []);
  16201. document.scrollingElement.scrollTop = 0;
  16202. // setTimeout(() => {
  16203. // let a = document.getElementById(i);
  16204. // if (a.offsetTop - 110 == 0) {
  16205. // window.scrollTo(0, 0);
  16206. // } else {
  16207. // window.scrollTo(0, a.offsetTop);
  16208. // }
  16209. // }, 0);
  16210. for (var z = 0; z < this.navList.length; z++) {
  16211. for (var q = 0; q < this.navList[z].task.length; q++) {
  16212. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16213. this.navList[z].task[q].tool[w].isTool = false;
  16214. }
  16215. }
  16216. }
  16217. this.selectPz();
  16218. this.getHomeWork();
  16219. this.getCourseDetail(2);
  16220. },
  16221. get(i) {
  16222. if (this.IsFollow && this.tType == 2) {
  16223. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16224. return;
  16225. }
  16226. // for(var k=0;k<this.navList.length;k++){
  16227. // this.navList[k].isOpen = false;
  16228. // }
  16229. // this.navList[i].isOpen = true;
  16230. this.navList[i].isOpen = !this.navList[i].isOpen;
  16231. if (this.navList[i].isOpen) {
  16232. this.openTask(i, 0, i + "-0");
  16233. }
  16234. },
  16235. addQuestion() {
  16236. this.answerList.push({
  16237. answerTitle: this.answerQ,
  16238. answer: this.questionAnswer,
  16239. });
  16240. let params = [
  16241. {
  16242. uid: this.userid,
  16243. cid: this.id,
  16244. stage: this.courseType,
  16245. task: this.taskCount,
  16246. tool: this.toolindex,
  16247. content: JSON.stringify(this.answerList),
  16248. type: 3,
  16249. },
  16250. ];
  16251. this.ajax
  16252. .post(this.$store.state.api + "addCourseWorks", params)
  16253. .then((res) => {
  16254. this.$message({
  16255. message: "提交成功",
  16256. type: "success",
  16257. });
  16258. this.answerList = [];
  16259. this.answerDialogVisible = false;
  16260. this.selectStudent();
  16261. this.selectSWorks();
  16262. this.selectSLook();
  16263. })
  16264. .catch((err) => {
  16265. this.$message.error("提交失败");
  16266. console.error(err);
  16267. });
  16268. },
  16269. addQuestionTeacher() {
  16270. this.answerList.push({
  16271. answerTitle: this.answerQ,
  16272. answer: this.questionAnswer,
  16273. });
  16274. let params = [
  16275. {
  16276. uid: this.sStudent.userid,
  16277. cid: this.id,
  16278. stage: this.courseType,
  16279. task: this.taskCount,
  16280. tool: this.toolindex,
  16281. content: JSON.stringify(this.answerList),
  16282. type: 3,
  16283. ateacher: this.userid,
  16284. },
  16285. ];
  16286. this.ajax
  16287. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16288. .then((res) => {
  16289. this.$message({
  16290. message: "提交成功",
  16291. type: "success",
  16292. });
  16293. this.answerList = [];
  16294. this.questionAnswer = "";
  16295. this.answerDialogVisibleTeacher = false;
  16296. this.selectStudent();
  16297. this.selectSWorks();
  16298. this.selectSLook();
  16299. })
  16300. .catch((err) => {
  16301. this.$message.error("提交失败");
  16302. console.error(err);
  16303. });
  16304. },
  16305. refreshCourse() {
  16306. // window.location.reload();
  16307. this.navList = [];
  16308. this.getCourseDetail(1);
  16309. },
  16310. getCourseDetail(type, gindex) {
  16311. let loading;
  16312. if (type != 2) {
  16313. loading = this.$loading.service({
  16314. background: "rgba(255, 255, 255, 0.7)",
  16315. target: document.querySelector(".student_table"),
  16316. });
  16317. }
  16318. this.downLoading = false
  16319. // this.navList[0].isOpen = false;
  16320. // this.navList[this.courseType].isOpen = true;
  16321. // this.courseType = this.courseTypeLine;
  16322. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16323. let params = {
  16324. courseId: this.id,
  16325. };
  16326. this.ajax
  16327. .get(this.$store.state.api + "selectCourseDetail3", params)
  16328. .then((res) => {
  16329. if (type != 2) {
  16330. loading.close();
  16331. if (
  16332. this.courseType >
  16333. JSON.parse(res.data[0][0].chapters).length - 1
  16334. ) {
  16335. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16336. }
  16337. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16338. .chapterInfo[0].taskJson;
  16339. var b = [
  16340. "AVI",
  16341. "NAVI",
  16342. "MPEG",
  16343. "ASF",
  16344. "MOV",
  16345. "WMV",
  16346. "3GP",
  16347. "RM",
  16348. "RMVB",
  16349. "FLV",
  16350. "F4V",
  16351. "H.264",
  16352. "H.265",
  16353. "REAL VIDEO",
  16354. "MKV",
  16355. "WebM",
  16356. "HDDVD",
  16357. "MP4",
  16358. "MPG",
  16359. "M4V",
  16360. "MGV",
  16361. "OGV",
  16362. "QTM",
  16363. "STR",
  16364. "AMC",
  16365. "DVX",
  16366. "EVO",
  16367. "DAT",
  16368. "OGG",
  16369. "OGM",
  16370. "MP3",
  16371. ];
  16372. let _chapterData = [];
  16373. for (var i = 0; i < a.length; i++) {
  16374. var c = a[i].chapterData;
  16375. this.vedio[i] = [];
  16376. this.textList[i] = [];
  16377. this.lineList[i] = [];
  16378. this.chapToolList[i] = [];
  16379. this.file[i] = [];
  16380. this.fileC[i] = [];
  16381. _chapterData[i] = c.filter((el) => {
  16382. return el.type != 12;
  16383. });
  16384. this.fileC[i] = c.filter((el) => {
  16385. return el.type == 12;
  16386. });
  16387. // else if (c[j].type == 12) {
  16388. // this.fileC[i].push(c[j]);
  16389. // }
  16390. for (var j = 0; j < c.length; j++) {
  16391. if (c[j].type == 7) {
  16392. this.chapToolList[i].push(c[j]);
  16393. } else if (c[j].type == 8 || c[j].type == 14) {
  16394. this.lineList[i].push(c[j]);
  16395. } else if (c[j].type == 6) {
  16396. this.textList[i].push(c[j]);
  16397. } else {
  16398. if (
  16399. b.indexOf(
  16400. c[j].url
  16401. .split(".")
  16402. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16403. ) != -1
  16404. ) {
  16405. this.vedio[i].push(c[j]);
  16406. } else {
  16407. this.file[i].push(c[j]);
  16408. }
  16409. }
  16410. }
  16411. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16412. d.sources[0].src =
  16413. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16414. this.playerO[i] = d;
  16415. }
  16416. this.courseDetail = res.data[0][0];
  16417. this.tcid = this.arrayToArray(
  16418. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16419. this.tcid2 ? this.tcid2.split(",") : []
  16420. ).join(",");
  16421. this.evalua = res.data[0][0].evaId;
  16422. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16423. this.courseType
  16424. ];
  16425. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16426. if (this.tcid && res.data[1].length) {
  16427. let _inviteA = [];
  16428. for (var ik = 0; ik < res.data[1].length; ik++) {
  16429. _inviteA.push({
  16430. cid: res.data[1][ik].classid,
  16431. ic: res.data[1][ik].code,
  16432. });
  16433. }
  16434. for (var ik = 0; ik < _inviteA.length; ik++) {
  16435. if (
  16436. this.arrayToArray(
  16437. _inviteA[ik].cid.split(","),
  16438. this.tcid.split(",")
  16439. ).length
  16440. ) {
  16441. this.inviteCode = _inviteA[ik].ic;
  16442. break;
  16443. }
  16444. }
  16445. }
  16446. for (var l = 0; l < this.chapInfoList.length; l++) {
  16447. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16448. for (var m = 0; m < w.length; m++) {
  16449. w[m].id = l + "-" + m;
  16450. }
  16451. }
  16452. let taskCount = 0;
  16453. if (
  16454. _chapterData[taskCount].length &&
  16455. _chapterData[taskCount][0].type == 2
  16456. ) {
  16457. this.showType = 0;
  16458. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16459. } else {
  16460. if (_chapterData[taskCount].length > 0) {
  16461. let _url = _chapterData[taskCount][0].url;
  16462. if (
  16463. _chapterData[taskCount][0].type == 8 ||
  16464. _chapterData[taskCount][0].type == 14
  16465. ) {
  16466. this.showType = 2;
  16467. if (
  16468. _url.indexOf("https://") == -1 &&
  16469. _url.indexOf("http://") == -1
  16470. ) {
  16471. _url = "https://" + _url;
  16472. }
  16473. this.pptImgUrl1 = _url;
  16474. } else if (_chapterData[taskCount][0].type == 3) {
  16475. if (
  16476. _url
  16477. .split(".")
  16478. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16479. ) {
  16480. this.showType = 3;
  16481. this.pptImgUrl1 = _url;
  16482. } else if (
  16483. this.isAssetTypeAnImage(
  16484. _url
  16485. .split(".")
  16486. [_url.split(".").length - 1].toLocaleLowerCase()
  16487. )
  16488. ) {
  16489. this.showType = 4;
  16490. this.pptImgUrl1 = _url;
  16491. } else {
  16492. this.showType = 2;
  16493. this.pptImgUrl1 =
  16494. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16495. encodeURIComponent(_url);
  16496. }
  16497. } else if (_chapterData[taskCount][0].type == 13) {
  16498. this.showType = 4;
  16499. this.pptImgUrl1 = _url;
  16500. } else if (_chapterData[taskCount][0].type == 6) {
  16501. this.showType = 1;
  16502. this.text = this.textList[taskCount][0];
  16503. }
  16504. }
  16505. }
  16506. this.isClickNav = 0;
  16507. if (
  16508. !_chapterData[taskCount].length ||
  16509. _chapterData[taskCount][0].type == 12
  16510. ) {
  16511. this.isClickNav = "";
  16512. this.showType = "";
  16513. }
  16514. this.vChapterData = _chapterData;
  16515. } else {
  16516. this.showType = 0;
  16517. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16518. .chapterInfo[0].taskJson;
  16519. var b = [
  16520. "AVI",
  16521. "NAVI",
  16522. "MPEG",
  16523. "ASF",
  16524. "MOV",
  16525. "WMV",
  16526. "3GP",
  16527. "RM",
  16528. "RMVB",
  16529. "FLV",
  16530. "F4V",
  16531. "H.264",
  16532. "H.265",
  16533. "REAL VIDEO",
  16534. "MKV",
  16535. "WebM",
  16536. "HDDVD",
  16537. "MP4",
  16538. "MPG",
  16539. "M4V",
  16540. "MGV",
  16541. "OGV",
  16542. "QTM",
  16543. "STR",
  16544. "AMC",
  16545. "DVX",
  16546. "EVO",
  16547. "DAT",
  16548. "OGG",
  16549. "OGM",
  16550. "MP3",
  16551. ];
  16552. let _chapterData = [];
  16553. for (var i = 0; i < a.length; i++) {
  16554. var c = a[i].chapterData;
  16555. this.vedio[i] = [];
  16556. this.textList[i] = [];
  16557. this.lineList[i] = [];
  16558. this.chapToolList[i] = [];
  16559. this.file[i] = [];
  16560. this.fileC[i] = [];
  16561. _chapterData[i] = c.filter((el) => {
  16562. return el.type != 12;
  16563. });
  16564. this.fileC[i] = c.filter((el) => {
  16565. return el.type == 12;
  16566. });
  16567. for (var j = 0; j < c.length; j++) {
  16568. if (c[j].type == 7) {
  16569. this.chapToolList[i].push(c[j]);
  16570. } else if (c[j].type == 8 || c[j].type == 14) {
  16571. this.lineList[i].push(c[j]);
  16572. } else if (c[j].type == 6) {
  16573. this.textList[i].push(c[j]);
  16574. } else {
  16575. if (
  16576. b.indexOf(
  16577. c[j].url
  16578. .split(".")
  16579. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16580. ) != -1
  16581. ) {
  16582. this.vedio[i].push(c[j]);
  16583. } else {
  16584. this.file[i].push(c[j]);
  16585. }
  16586. }
  16587. }
  16588. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16589. d.sources[0].src =
  16590. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16591. this.playerO[i] = d;
  16592. }
  16593. let taskCount = 0;
  16594. if (
  16595. _chapterData[taskCount].length &&
  16596. _chapterData[taskCount][0].type == 2
  16597. ) {
  16598. this.showType = 0;
  16599. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16600. } else {
  16601. if (_chapterData[taskCount].length > 0) {
  16602. let _url = _chapterData[taskCount][0].url;
  16603. if (
  16604. _chapterData[taskCount][0].type == 8 ||
  16605. _chapterData[taskCount][0].type == 14
  16606. ) {
  16607. this.showType = 2;
  16608. if (
  16609. _url.indexOf("https://") == -1 &&
  16610. _url.indexOf("http://") == -1
  16611. ) {
  16612. _url = "https://" + _url;
  16613. }
  16614. this.pptImgUrl1 = _url;
  16615. } else if (_chapterData[taskCount][0].type == 3) {
  16616. if (
  16617. _url
  16618. .split(".")
  16619. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16620. ) {
  16621. this.showType = 3;
  16622. this.pptImgUrl1 = _url;
  16623. } else if (
  16624. this.isAssetTypeAnImage(
  16625. _url
  16626. .split(".")
  16627. [_url.split(".").length - 1].toLocaleLowerCase()
  16628. )
  16629. ) {
  16630. this.showType = 4;
  16631. this.pptImgUrl1 = _url;
  16632. } else {
  16633. this.showType = 2;
  16634. this.pptImgUrl1 =
  16635. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16636. encodeURIComponent(_url);
  16637. }
  16638. } else if (_chapterData[taskCount][0].type == 13) {
  16639. this.showType = 4;
  16640. this.pptImgUrl1 = _url;
  16641. } else if (_chapterData[taskCount][0].type == 6) {
  16642. this.showType = 1;
  16643. this.text = this.textList[taskCount][0];
  16644. }
  16645. }
  16646. }
  16647. this.isClickNav = 0;
  16648. if (
  16649. !_chapterData[taskCount].length ||
  16650. _chapterData[taskCount][0].type == 12
  16651. ) {
  16652. this.isClickNav = "";
  16653. this.showType = "";
  16654. }
  16655. this.vChapterData = _chapterData;
  16656. this.$forceUpdate();
  16657. }
  16658. // else {
  16659. // this.courseDetail = res.data[0][0];
  16660. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16661. // }
  16662. let _this = this;
  16663. if (_this.timer) {
  16664. clearInterval(_this.timer);
  16665. _this.timer = null;
  16666. }
  16667. if (_this.tcid) {
  16668. _this.getCourseGroup(gindex);
  16669. } else {
  16670. _this.selectSWorks(gindex);
  16671. }
  16672. _this.selectStudent();
  16673. _this.selectSLook();
  16674. _this.getPick();
  16675. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16676. _this.setCTask();
  16677. }
  16678. if (_this.dialogVisibleGroup) {
  16679. _this.groupJson =
  16680. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16681. _this.taskCount
  16682. ].toolChoose[_this.toolindex].groupJson;
  16683. }
  16684. _this.$nextTick(() => {
  16685. setTimeout(() => {
  16686. _this.checkEva();
  16687. }, 1000);
  16688. });
  16689. _this.timer = setInterval(function () {
  16690. // _this.getCourseDetail(2);
  16691. if (_this.tcid) {
  16692. _this.getCourseGroup(gindex);
  16693. } else {
  16694. _this.selectSWorks(gindex);
  16695. }
  16696. _this.selectStudent();
  16697. _this.selectSLook();
  16698. _this.getPick();
  16699. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16700. _this.setCTask();
  16701. }
  16702. if (_this.dialogVisibleGroup) {
  16703. _this.groupJson =
  16704. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16705. _this.taskCount
  16706. ].toolChoose[_this.toolindex].groupJson;
  16707. }
  16708. if (_this.tType == 4 || _this.ispzType == 4) {
  16709. _this.selectPz();
  16710. }
  16711. }, 5000);
  16712. _this.$nextTick(function () {
  16713. setTimeout(() => {
  16714. // var a =
  16715. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16716. // document.getElementsByClassName("vedioList")[0].style.height =
  16717. // a + "px";
  16718. // document.getElementsByClassName("navBox")[0].style.height =
  16719. // a - 40 + "px";
  16720. // if (_this.vedio[_this.taskCount].length > 0) {
  16721. // _this.vedioTime = [];
  16722. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16723. // _this.vedioTime[i] = document.getElementsByClassName(
  16724. // "vjs-duration-display"
  16725. // )[i].textContent;
  16726. // }
  16727. // }
  16728. }, 1000);
  16729. });
  16730. })
  16731. .catch((err) => {
  16732. loading.close();
  16733. console.error(err);
  16734. });
  16735. },
  16736. getCourseGroup(gindex) {
  16737. let params = {
  16738. cid: this.id,
  16739. classid: this.tcid ? this.tcid : "1",
  16740. };
  16741. this.ajax
  16742. .get(this.$store.state.api + "getCourseGroup", params)
  16743. .then((res) => {
  16744. if (res.data && res.data[0].length) {
  16745. if (!this.isGroup) {
  16746. let courseGroup = JSON.parse(res.data[0][0].group);
  16747. courseGroup.group = courseGroup.group.filter((el) => {
  16748. el.works = [];
  16749. return el;
  16750. });
  16751. if (courseGroup.isopen == 2) {
  16752. this.isGroup = false;
  16753. this.selectSWorks(gindex);
  16754. return;
  16755. }
  16756. this.courseGroup = courseGroup;
  16757. let groupPerson = res.data[1];
  16758. let group = JSON.parse(res.data[0][0].group).group;
  16759. let courseGroupStudent = {};
  16760. let courseGroupStudentUid = {};
  16761. for (var i = 0; i < group.length; i++) {
  16762. courseGroupStudent[group[i].id] = [];
  16763. courseGroupStudentUid[group[i].id] = [];
  16764. for (var j = 0; j < groupPerson.length; j++) {
  16765. if (groupPerson[j].groupCid == group[i].id) {
  16766. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16767. courseGroupStudentUid[group[i].id].push(
  16768. groupPerson[j].userid
  16769. );
  16770. }
  16771. }
  16772. }
  16773. this.courseGroupStudent = courseGroupStudent;
  16774. this.courseGroupStudentUid = courseGroupStudentUid;
  16775. }
  16776. if (this.courseGroup.isopen == 2) {
  16777. this.isGroup = false;
  16778. } else {
  16779. this.isGroup = true;
  16780. }
  16781. this.selectSWorks(gindex);
  16782. } else {
  16783. this.selectSWorks(gindex);
  16784. this.isGroup = false;
  16785. }
  16786. })
  16787. .catch((err) => {
  16788. // this.$message.error("网络不佳");
  16789. console.error(err);
  16790. });
  16791. },
  16792. setOperationTime() {
  16793. let _this = this;
  16794. if (_this.opertimer) {
  16795. clearInterval(_this.opertimer);
  16796. _this.opertimer = null;
  16797. }
  16798. _this.opertimer = setInterval(() => {
  16799. _this.setoTime("600");
  16800. }, 600000);
  16801. },
  16802. setoTime(time) {
  16803. let params = [
  16804. {
  16805. uid: this.userid,
  16806. cid: this.id,
  16807. type: "2",
  16808. time: time,
  16809. },
  16810. ];
  16811. this.ajax
  16812. .post(this.$store.state.api + "addOperationTimeT2", params)
  16813. .then((res) => {})
  16814. .catch((err) => {
  16815. console.error(err);
  16816. });
  16817. },
  16818. addPz(type, content) {
  16819. if (type == "1" && this.pzConText == "") {
  16820. this.$message.error("评论不能为空!");
  16821. return;
  16822. }
  16823. let params = [
  16824. {
  16825. cid: this.id,
  16826. uid: this.userid,
  16827. s: this.courseType,
  16828. t: this.taskCount,
  16829. c: type == "1" ? this.pzConText : content,
  16830. type: type,
  16831. },
  16832. ];
  16833. this.ajax
  16834. .post(this.$store.state.api + "addPz2", params)
  16835. .then((res) => {
  16836. this.$message({
  16837. message: "添加成功",
  16838. type: "success",
  16839. });
  16840. this.pzConText = "";
  16841. this.addPzDialog = false;
  16842. this.selectPz();
  16843. })
  16844. .catch((err) => {
  16845. this.$message.error("添加失败");
  16846. console.error(err);
  16847. });
  16848. },
  16849. setReplyIndex(id, i) {
  16850. this.replyIndex = i;
  16851. this.replyPid = id;
  16852. this.replyDialogVisible = true;
  16853. },
  16854. addHf() {
  16855. if (this.reply == "") {
  16856. this.$message.error("回复不能为空!");
  16857. return;
  16858. }
  16859. let params = [
  16860. {
  16861. cid: this.id,
  16862. uid: this.userid,
  16863. s: this.courseType,
  16864. t: this.taskCount,
  16865. type: "1",
  16866. ct: 2,
  16867. pid: this.replyPid,
  16868. c: this.reply,
  16869. },
  16870. ];
  16871. this.ajax
  16872. .post(this.$store.state.api + "addHf", params)
  16873. .then((res) => {
  16874. this.reply = "";
  16875. this.$message({
  16876. message: "回复成功",
  16877. type: "success",
  16878. });
  16879. this.replyDialogVisible = false;
  16880. this.selectPz();
  16881. })
  16882. .catch((err) => {
  16883. this.$message.error("回复失败");
  16884. console.error(err);
  16885. });
  16886. },
  16887. deletePz(id) {
  16888. this.$confirm("确定删除此评论吗?", "提示", {
  16889. confirmButtonText: "确定",
  16890. cancelButtonText: "取消",
  16891. type: "warning",
  16892. })
  16893. .then(() => {
  16894. let params = [
  16895. {
  16896. id: id,
  16897. },
  16898. ];
  16899. this.ajax
  16900. .post(this.$store.state.api + "deletePz", params)
  16901. .then((res) => {
  16902. this.$message({
  16903. message: "删除成功",
  16904. type: "success",
  16905. });
  16906. this.selectPz();
  16907. })
  16908. .catch((err) => {
  16909. this.$message.error("网络异常");
  16910. console.error(err);
  16911. });
  16912. })
  16913. .catch(() => {});
  16914. },
  16915. deleteReply(id) {
  16916. this.$confirm("确定删除此回复吗?", "提示", {
  16917. confirmButtonText: "确定",
  16918. cancelButtonText: "取消",
  16919. type: "warning",
  16920. })
  16921. .then(() => {
  16922. let params = [
  16923. {
  16924. id: id,
  16925. },
  16926. ];
  16927. this.ajax
  16928. .post(this.$store.state.api + "deleteReply", params)
  16929. .then((res) => {
  16930. this.$message({
  16931. message: "删除成功",
  16932. type: "success",
  16933. });
  16934. this.selectPz();
  16935. })
  16936. .catch((err) => {
  16937. this.$message.error("网络异常");
  16938. console.error(err);
  16939. });
  16940. })
  16941. .catch(() => {});
  16942. },
  16943. setPz() {
  16944. if (this.ispzType == 4) {
  16945. this.ispzType = 0;
  16946. this.pzDialog = false;
  16947. return;
  16948. }
  16949. this.ispzType = 4;
  16950. this.pzDialog = true;
  16951. this.selectPz();
  16952. },
  16953. selectPz() {
  16954. let params = {
  16955. cid: this.id,
  16956. s: this.courseType,
  16957. t: this.taskCount,
  16958. type: this.pzStype,
  16959. uid: this.userid,
  16960. };
  16961. this.ajax
  16962. .get(this.$store.state.api + "selectPzListType", params)
  16963. .then((res) => {
  16964. this.pzList = res.data[0];
  16965. var a = res.data[1];
  16966. for (var i = 0; i < a.length; i++) {
  16967. for (var j = 0; j < this.pzList.length; j++) {
  16968. if (!this.pzList[j].hfList) {
  16969. this.pzList[j].hfList = [];
  16970. }
  16971. if (a[i].pid == this.pzList[j].id) {
  16972. this.pzList[j].hfList.push(a[i]);
  16973. }
  16974. }
  16975. }
  16976. })
  16977. .catch((err) => {
  16978. console.error(err);
  16979. });
  16980. },
  16981. // selectHf() {
  16982. // let params = {
  16983. // cid: this.id,
  16984. // s: this.courseType,
  16985. // t: this.taskCount,
  16986. // };
  16987. // this.ajax
  16988. // .get(this.$store.state.api + "selectHfList", params)
  16989. // .then((res) => {
  16990. // var a = res.data[0];
  16991. // for (var i = 0; i < a.length; i++) {
  16992. // for (var j = 0; j < this.pzList.length; j++) {
  16993. // if (!this.pzList[i].hfList) {
  16994. // this.pzList[i].hfList = [];
  16995. // }
  16996. // if (a[i].pid == this.pzList[j].id) {
  16997. // this.pzList[i].hfList.push(a[i]);
  16998. // }
  16999. // }
  17000. // }
  17001. // })
  17002. // .catch((err) => {
  17003. // console.error(err);
  17004. // });
  17005. // },
  17006. updateSLook() {
  17007. let params = {
  17008. sopen: this.sIsOpen == false ? 1 : 2,
  17009. cid: this.id,
  17010. };
  17011. this.ajax
  17012. .get(this.$store.state.api + "updateCourseSLook", params)
  17013. .then((res) => {
  17014. if (this.sIsOpen == true) {
  17015. this.$message({
  17016. message: "权限设置成功",
  17017. type: "success",
  17018. });
  17019. } else {
  17020. this.$message({
  17021. message: "权限关闭成功",
  17022. type: "success",
  17023. });
  17024. }
  17025. })
  17026. .catch((err) => {
  17027. console.error(err);
  17028. });
  17029. },
  17030. updateFollow() {
  17031. let params = [
  17032. {
  17033. sopen: this.IsFollow == false ? 1 : 2,
  17034. cid: this.id,
  17035. },
  17036. ];
  17037. this.ajax
  17038. .post(this.$store.state.api + "updateCourseFollow", params)
  17039. .then((res) => {
  17040. if (this.IsFollow == true) {
  17041. this.$message({
  17042. message: "开启成功",
  17043. type: "success",
  17044. });
  17045. } else {
  17046. this.$message({
  17047. message: "关闭成功",
  17048. type: "success",
  17049. });
  17050. }
  17051. this.setCTask();
  17052. })
  17053. .catch((err) => {
  17054. console.error(err);
  17055. });
  17056. },
  17057. setCTask() {
  17058. let params = [
  17059. {
  17060. sopen: this.courseType + "-" + this.taskCount,
  17061. cid: this.id,
  17062. },
  17063. ];
  17064. this.ajax
  17065. .post(this.$store.state.api + "updateCourseFollowC", params)
  17066. .then((res) => {})
  17067. .catch((err) => {
  17068. console.error(err);
  17069. });
  17070. },
  17071. updateLookOpen() {
  17072. let params = [
  17073. {
  17074. sopen: this.IsLookOpen == false ? 1 : 2,
  17075. cid: this.id,
  17076. },
  17077. ];
  17078. this.ajax
  17079. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17080. .then((res) => {
  17081. if (this.IsLookOpen == true) {
  17082. // if (this.courseType != 0 && this.taskCount != 0) {
  17083. // this.openTask(0, 0, "0-0");
  17084. // }
  17085. this.$message({
  17086. message: "权限设置成功",
  17087. type: "success",
  17088. });
  17089. } else {
  17090. this.$message({
  17091. message: "权限关闭成功",
  17092. type: "success",
  17093. });
  17094. }
  17095. this.getCourseState(2);
  17096. })
  17097. .catch((err) => {
  17098. console.error(err);
  17099. });
  17100. },
  17101. selectSLook() {
  17102. let params = {
  17103. cid: this.id,
  17104. };
  17105. this.ajax
  17106. .get(this.$store.state.api + "selectCourseSLook", params)
  17107. .then((res) => {
  17108. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17109. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17110. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17111. if (!this.IsLookOpen) {
  17112. this.setNavList();
  17113. } else {
  17114. this.getCourseState(1);
  17115. }
  17116. if (this.IsFollow && this.tType == 2) {
  17117. this.setContent2(false);
  17118. let _followC = res.data[0][0].followC.split("-");
  17119. if (
  17120. this.courseType != _followC[0] ||
  17121. this.taskCount != _followC[1]
  17122. ) {
  17123. this.navList[this.courseType].isOpen = false;
  17124. this.courseType = _followC[0];
  17125. this.navList[this.courseType].isOpen = true;
  17126. this.taskCount = parseInt(_followC[1]);
  17127. this.navId = res.data[0][0].followC;
  17128. document.scrollingElement.scrollTop = 0;
  17129. this.getCourseDetail(2);
  17130. }
  17131. }
  17132. })
  17133. .catch((err) => {
  17134. console.error(err);
  17135. });
  17136. },
  17137. setNavList() {
  17138. if (this.navList.length == 0) {
  17139. this.navList = [];
  17140. var copyList = [];
  17141. for (var l = 0; l < this.chapInfoList.length; l++) {
  17142. var q = this.chapInfoList[l].dyName;
  17143. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17144. var e;
  17145. copyList.push({
  17146. dyName: q,
  17147. isOpen: l === 0 ? true : false,
  17148. task: [],
  17149. });
  17150. for (var r = 0; r < w.length; r++) {
  17151. e = w[r].task;
  17152. if (this.chapInfoList[l].easy == 1) {
  17153. copyList[l].task.push({
  17154. taskName: q,
  17155. id: l + "-" + r,
  17156. isLook: w[r].isLook,
  17157. isOpen: r === 0 ? true : false,
  17158. tool: [],
  17159. });
  17160. } else {
  17161. copyList[l].task.push({
  17162. taskName: e,
  17163. id: l + "-" + r,
  17164. isLook: w[r].isLook,
  17165. isOpen: r === 0 ? true : false,
  17166. tool: [],
  17167. });
  17168. }
  17169. var t = w[r].toolChoose;
  17170. for (var k = 0; k < t.length; k++) {
  17171. var tool = t[k].tool[0];
  17172. copyList[l].task[r].tool.push({
  17173. tool: tool,
  17174. isTool: false,
  17175. });
  17176. }
  17177. // this.navId = this.navId ? this.navId : l + "-" + r;
  17178. // this.navId = l + "-" + r;
  17179. }
  17180. }
  17181. this.navList = copyList;
  17182. this.navList[0].isOpen = false;
  17183. this.navList[this.courseType].isOpen = true;
  17184. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17185. } else {
  17186. this.setNavList2();
  17187. }
  17188. },
  17189. setNavList2() {
  17190. for (var l = 0; l < this.chapInfoList.length; l++) {
  17191. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17192. for (var r = 0; r < w.length; r++) {
  17193. this.navList[l].task[r].isLook = w[r].isLook;
  17194. }
  17195. }
  17196. if (
  17197. this.IsLookOpen &&
  17198. !this.navList[this.courseType].task[this.taskCount].isLook
  17199. ) {
  17200. this.openTask(0, 0, "0-0");
  17201. }
  17202. this.$forceUpdate();
  17203. },
  17204. getCourseState(type) {
  17205. let params = {
  17206. cid: this.id,
  17207. };
  17208. this.ajax
  17209. .get(this.$store.state.api + "getCourseState", params)
  17210. .then((res) => {
  17211. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17212. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17213. this.setNavList();
  17214. this.$forceUpdate();
  17215. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17216. this.addCourseState(2);
  17217. } else {
  17218. this.addCourseState(1);
  17219. }
  17220. })
  17221. .catch((err) => {
  17222. console.error(err);
  17223. });
  17224. },
  17225. addCourseState(type) {
  17226. let _state = this.chapInfoList;
  17227. // this.courseType this.taskCount
  17228. if (type == 1 || type == 2) {
  17229. for (var i = 0; i < _state.length; i++) {
  17230. let el = _state[i].chapterInfo[0].taskJson;
  17231. for (var j = 0; j < el.length; j++) {
  17232. // if (i == 0 && j == 0) {
  17233. // el[j].isLook = true;
  17234. // } else {
  17235. // el[j].isLook = false;
  17236. // }
  17237. if (
  17238. this.courseType > i ||
  17239. (this.courseType == i && this.taskCount + 1 > j)
  17240. ) {
  17241. el[j].isLook = true;
  17242. } else {
  17243. el[j].isLook = false;
  17244. }
  17245. }
  17246. }
  17247. }
  17248. let params = [
  17249. {
  17250. cid: this.id,
  17251. state: JSON.stringify(_state),
  17252. },
  17253. ];
  17254. this.ajax
  17255. .post(
  17256. this.$store.state.api +
  17257. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17258. params
  17259. )
  17260. .then((res) => {
  17261. if (this.IsLookOpen) {
  17262. this.setNavList();
  17263. }
  17264. if (type == 3 && type == 2) {
  17265. this.getCourseState(1);
  17266. }
  17267. })
  17268. .catch((err) => {
  17269. console.error(err);
  17270. });
  17271. },
  17272. getHomeWork() {
  17273. let params = {
  17274. cid: this.id,
  17275. stage: this.courseType,
  17276. task: this.taskCount,
  17277. uid: this.userid,
  17278. };
  17279. this.ajax
  17280. .get(this.$store.state.api + "selectWork", params)
  17281. .then((res) => {
  17282. if (res.data[0].length > 0) {
  17283. this.studyJuri = JSON.parse(res.data[0][0].content);
  17284. this.isNoHomeWork = true;
  17285. }
  17286. })
  17287. .catch((err) => {
  17288. console.error(err);
  17289. });
  17290. },
  17291. isAssetTypeAnImage(ext) {
  17292. return (
  17293. [
  17294. "png",
  17295. "jpg",
  17296. "jpeg",
  17297. "bmp",
  17298. "gif",
  17299. "webp",
  17300. "psd",
  17301. "svg",
  17302. "tiff",
  17303. ].indexOf(ext) !== -1
  17304. );
  17305. },
  17306. switchVideo(media) {
  17307. this.playerO = {};
  17308. this.playerOptions.poster = "";
  17309. this.playerOptions.sources[0].src = media;
  17310. this.playerO = this.playerOptions;
  17311. },
  17312. onPlayerPlay() {},
  17313. onPlayerTimeupdate(player) {
  17314. let gklog = player.cache_.currentTime; //当前播放的秒数
  17315. let a = player.cache_.duration; //视频的总时长
  17316. let gklog2 = parseInt(gklog);
  17317. // if(gklog2 == '3'){
  17318. // player.pause()
  17319. // setTimeout(()=>{
  17320. // player.currentTime(gklog2+1)
  17321. // player.play()
  17322. // },1000)
  17323. // }
  17324. console.log(" onPlayerTimeupdate!", gklog);
  17325. console.log(" onPlayerTimeupdate!", gklog2);
  17326. },
  17327. lookVedio(u, i) {
  17328. this.isClickNav = "";
  17329. // this.playerOptions.sources[0].src = u;
  17330. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17331. d.sources[0].src = u;
  17332. this.playerO[0] = d;
  17333. this.showType = 0;
  17334. // this.isClickNav = "video" + i;
  17335. this.isClickNav = i;
  17336. this.$forceUpdate();
  17337. },
  17338. lookText(i, t) {
  17339. this.isClickNav = "";
  17340. // this.text = this.textList[i][t];
  17341. this.text = this.vChapterData[i][t];
  17342. // this.dialogVisible1 = true;
  17343. this.showType = 1;
  17344. // this.isClickNav = "text" + t;
  17345. this.isClickNav = t;
  17346. },
  17347. lookTools(i, t) {
  17348. this.chapTools = this.chapToolList[i][t];
  17349. this.dialogVisible2 = true;
  17350. },
  17351. async openFile(f) {
  17352. this.pptImgUrl = "";
  17353. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17354. if (
  17355. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17356. -1
  17357. ) {
  17358. let _uuurl = await this.checkLink(f);
  17359. console.log(_uuurl)
  17360. this.pptImgUrl =
  17361. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17362. this.showPDF = false;
  17363. this.dialogVisible3 = true;
  17364. } else if (
  17365. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17366. ) {
  17367. this.pptImgUrl = f;
  17368. this.showPDF = true;
  17369. this.dialogVisible3 = true;
  17370. }
  17371. },
  17372. openTable(f) {
  17373. this.tableJson = JSON.parse(f.works);
  17374. this.dialogVisibleTable2 = true;
  17375. },
  17376. openWord(f) {
  17377. this.tableJson = JSON.parse(f.works);
  17378. this.dialogVisibleTable3 = true;
  17379. },
  17380. doUrl(url, i) {
  17381. this.isClickNav = "";
  17382. this.pptImgUrl1 = "";
  17383. this.showType = 2;
  17384. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17385. url = "https://" + url;
  17386. }
  17387. this.pptImgUrl1 = "";
  17388. setTimeout(() => {
  17389. this.pptImgUrl1 = url;
  17390. }, 500);
  17391. // this.isClickNav = "line" + i;
  17392. this.isClickNav = i;
  17393. this.$forceUpdate();
  17394. },
  17395. checkPhoto(f, i) {
  17396. this.showType = 4;
  17397. this.pptImgUrl1 = f.url;
  17398. this.isClickNav = i;
  17399. this.$forceUpdate();
  17400. },
  17401. async downFile(f, i) {
  17402. this.isClickNav = "";
  17403. this.pptImgUrl1 = "";
  17404. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17405. if (
  17406. a.indexOf(
  17407. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17408. ) != -1
  17409. ) {
  17410. let _uuurl = await this.checkLink(f.url);
  17411. console.log(_uuurl)
  17412. this.pptImgUrl1 =
  17413. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17414. // this.dialogVisible3 = true;
  17415. this.showType = 2;
  17416. } else if (
  17417. this.isAssetTypeAnImage(
  17418. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17419. )
  17420. ) {
  17421. this.showType = 4;
  17422. this.pptImgUrl1 = f.url;
  17423. } else if (
  17424. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17425. "PDF"
  17426. ) {
  17427. this.pptImgUrl1 = f.url;
  17428. // this.dialogVisible3 = true;
  17429. this.showType = 3;
  17430. } else {
  17431. window.open(this.file[i].url);
  17432. }
  17433. // this.isClickNav = "word" + i;
  17434. this.isClickNav = i;
  17435. },
  17436. downFileList(i) {
  17437. window.open(this.noImgList[i].url);
  17438. },
  17439. openAddWork() {
  17440. this.dialogVisible = true;
  17441. },
  17442. addBzWorks() {
  17443. let params = [
  17444. {
  17445. uid: this.userid,
  17446. cid: this.id,
  17447. stage: this.courseType,
  17448. task: this.taskCount,
  17449. tool: this.toolindex,
  17450. content: JSON.stringify(this.eScore),
  17451. type: 6,
  17452. },
  17453. ];
  17454. this.ajax
  17455. .post(this.$store.state.api + "addCourseWorks", params)
  17456. .then((res) => {
  17457. this.$message({
  17458. message: "提交成功",
  17459. type: "success",
  17460. });
  17461. this.eScore = { eBzText: "", eStar: [] };
  17462. this.studentEvalDialogVisible = false;
  17463. this.selectSWorks();
  17464. })
  17465. .catch((err) => {
  17466. this.$message.error("提交失败");
  17467. console.error(err);
  17468. });
  17469. },
  17470. addBzWorksTeacher() {
  17471. let params = [
  17472. {
  17473. uid: this.sStudent.userid,
  17474. cid: this.id,
  17475. stage: this.courseType,
  17476. task: this.taskCount,
  17477. tool: this.toolindex,
  17478. content: JSON.stringify(this.eScore),
  17479. type: 6,
  17480. },
  17481. ];
  17482. this.ajax
  17483. .post(this.$store.state.api + "addCourseWorks", params)
  17484. .then((res) => {
  17485. this.$message({
  17486. message: "提交成功",
  17487. type: "success",
  17488. });
  17489. this.eScore = { eBzText: "", eStar: [] };
  17490. this.studentEvalDialogVisibleTeacher = false;
  17491. this.selectSWorks();
  17492. })
  17493. .catch((err) => {
  17494. this.$message.error("提交失败");
  17495. console.error(err);
  17496. });
  17497. },
  17498. addStudentAsk() {
  17499. if (!this.radio.length) {
  17500. this.$message.error("请选择选项");
  17501. return;
  17502. }
  17503. for (var i = 0; i < this.askJson.askCount; i++) {
  17504. if (
  17505. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17506. (this.radio[i] !== 0 && !this.radio[i])
  17507. ) {
  17508. this.$message.error("请选择选项");
  17509. return;
  17510. }
  17511. }
  17512. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17513. let params = [
  17514. {
  17515. uid: this.userid,
  17516. cid: this.id,
  17517. stage: this.courseType,
  17518. task: this.taskCount,
  17519. tool: this.toolindex,
  17520. content: JSON.stringify(this.askList),
  17521. type: 2,
  17522. },
  17523. ];
  17524. this.ajax
  17525. .post(this.$store.state.api + "addCourseWorks", params)
  17526. .then((res) => {
  17527. this.$message({
  17528. message: "提交成功",
  17529. type: "success",
  17530. });
  17531. this.askList = [];
  17532. this.dialogVisible5 = false;
  17533. this.selectStudent();
  17534. this.selectSWorks();
  17535. this.selectSLook();
  17536. })
  17537. .catch((err) => {
  17538. this.$message.error("提交失败");
  17539. console.error(err);
  17540. });
  17541. },
  17542. addStudentAskTeacher() {
  17543. if (!this.radio.length) {
  17544. this.$message.error("请选择选项");
  17545. return;
  17546. }
  17547. for (var i = 0; i < this.askJson.askCount; i++) {
  17548. if (
  17549. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17550. (this.radio[i] !== 0 && !this.radio[i])
  17551. ) {
  17552. this.$message.error("请选择选项");
  17553. return;
  17554. }
  17555. }
  17556. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17557. let params = [
  17558. {
  17559. uid: this.sStudent.userid,
  17560. cid: this.id,
  17561. stage: this.courseType,
  17562. task: this.taskCount,
  17563. tool: this.toolindex,
  17564. content: JSON.stringify(this.askList),
  17565. type: 2,
  17566. },
  17567. ];
  17568. this.ajax
  17569. .post(this.$store.state.api + "addCourseWorks", params)
  17570. .then((res) => {
  17571. this.$message({
  17572. message: "提交成功",
  17573. type: "success",
  17574. });
  17575. this.askList = [];
  17576. this.dialogVisible5Teacher = false;
  17577. this.selectStudent();
  17578. this.selectSWorks();
  17579. this.selectSLook();
  17580. })
  17581. .catch((err) => {
  17582. this.$message.error("提交失败");
  17583. console.error(err);
  17584. });
  17585. },
  17586. addStudentTest() {
  17587. if (!this.radio.length) {
  17588. this.$message.error("请选择选项");
  17589. return;
  17590. }
  17591. for (var i = 0; i < this.testJson.testCount; i++) {
  17592. if (
  17593. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17594. (this.radio[i] !== 0 && !this.radio[i])
  17595. ) {
  17596. this.$message.error("请选择选项");
  17597. return;
  17598. }
  17599. }
  17600. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17601. let params = [
  17602. {
  17603. uid: this.userid,
  17604. cid: this.id,
  17605. stage: this.courseType,
  17606. task: this.taskCount,
  17607. tool: this.toolindex,
  17608. content: JSON.stringify(this.askList),
  17609. type: 8,
  17610. },
  17611. ];
  17612. this.ajax
  17613. .post(this.$store.state.api + "addCourseWorks", params)
  17614. .then((res) => {
  17615. this.$message({
  17616. message: "提交成功",
  17617. type: "success",
  17618. });
  17619. this.askList = [];
  17620. this.dialogVisibleChoice = false;
  17621. this.selectStudent();
  17622. this.selectSWorks();
  17623. this.selectSLook();
  17624. })
  17625. .catch((err) => {
  17626. this.$message.error("提交失败");
  17627. console.error(err);
  17628. });
  17629. },
  17630. addStudentTestTeacher() {
  17631. if (!this.radio.length) {
  17632. this.$message.error("请选择选项");
  17633. return;
  17634. }
  17635. for (var i = 0; i < this.testJson.testCount; i++) {
  17636. if (
  17637. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17638. (this.radio[i] !== 0 && !this.radio[i])
  17639. ) {
  17640. this.$message.error("请选择选项");
  17641. return;
  17642. }
  17643. }
  17644. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17645. let params = [
  17646. {
  17647. uid: this.sStudent.userid,
  17648. cid: this.id,
  17649. stage: this.courseType,
  17650. task: this.taskCount,
  17651. tool: this.toolindex,
  17652. content: JSON.stringify(this.askList),
  17653. type: 8,
  17654. },
  17655. ];
  17656. this.ajax
  17657. .post(this.$store.state.api + "addCourseWorks", params)
  17658. .then((res) => {
  17659. this.$message({
  17660. message: "提交成功",
  17661. type: "success",
  17662. });
  17663. this.askList = [];
  17664. this.dialogVisibleChoiceTeacher = false;
  17665. this.selectStudent();
  17666. this.selectSWorks();
  17667. this.selectSLook();
  17668. })
  17669. .catch((err) => {
  17670. this.$message.error("提交失败");
  17671. console.error(err);
  17672. });
  17673. },
  17674. addWork() {
  17675. if (this.studyJuri[0].content == "") {
  17676. this.$message.error("请将信息填写完整");
  17677. return;
  17678. } else if (this.studyJuri[0].cover.length == 0) {
  17679. this.$message.error("请将信息填写完整");
  17680. return;
  17681. } else if (this.studyJuri[0].upVedio.length == 0) {
  17682. this.$message.error("请将信息填写完整");
  17683. return;
  17684. }
  17685. if (this.isNoHomeWork) {
  17686. this.$confirm(
  17687. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17688. "提示",
  17689. {
  17690. confirmButtonText: "确定",
  17691. cancelButtonText: "取消",
  17692. type: "warning",
  17693. }
  17694. )
  17695. .then(() => {
  17696. let params = [
  17697. {
  17698. uid: this.userid,
  17699. cid: this.id,
  17700. stage: this.courseType,
  17701. task: this.taskCount,
  17702. content: JSON.stringify(this.studyJuri),
  17703. },
  17704. ];
  17705. this.ajax
  17706. .post(this.$store.state.api + "addWorks", params)
  17707. .then((res) => {
  17708. this.$message({
  17709. message: "提交成功",
  17710. type: "success",
  17711. });
  17712. this.isNoHomeWork = true;
  17713. this.dialogVisible = false;
  17714. })
  17715. .catch((err) => {
  17716. this.$message.error("提交失败");
  17717. console.error(err);
  17718. });
  17719. })
  17720. .catch(() => {});
  17721. } else {
  17722. let params = [
  17723. {
  17724. uid: this.userid,
  17725. cid: this.id,
  17726. stage: this.courseType,
  17727. task: this.taskCount,
  17728. content: JSON.stringify(this.studyJuri),
  17729. },
  17730. ];
  17731. this.ajax
  17732. .post(this.$store.state.api + "addWorks", params)
  17733. .then((res) => {
  17734. this.$message({
  17735. message: "提交成功",
  17736. type: "success",
  17737. });
  17738. this.isNoHomeWork = true;
  17739. this.dialogVisible = false;
  17740. })
  17741. .catch((err) => {
  17742. this.$message.error("提交失败");
  17743. console.error(err);
  17744. });
  17745. }
  17746. },
  17747. selectCount() {
  17748. let params = {
  17749. cid: this.id,
  17750. chid: this.courseType,
  17751. uid: this.userid,
  17752. };
  17753. this.ajax
  17754. .get(this.$store.state.api + "selectToolsCount", params)
  17755. .then((res) => {
  17756. for (var i = 0; i < res.data[0].length; i++) {
  17757. if (res.data[0][i].tools == 1) {
  17758. this.wbCount = res.data[0][i].count;
  17759. } else if (res.data[0][i].tools == 2) {
  17760. this.wordCount = res.data[0][i].count;
  17761. } else if (res.data[0][i].tools == 3) {
  17762. this.mindCount = res.data[0][i].count;
  17763. } else if (res.data[0][i].tools == 4) {
  17764. this.askCount = res.data[0][i].count;
  17765. } else if (res.data[0][i].tools == 6) {
  17766. this.noteCount = res.data[0][i].count;
  17767. } else if (res.data[0][i].tools == 7) {
  17768. this.mindNetWorkCount = res.data[0][i].count;
  17769. } else if (res.data[0][i].tools == 8) {
  17770. this.libraryCount = res.data[0][i].count;
  17771. } else if (res.data[0][i].tools == 16) {
  17772. this.workCount = res.data[0][i].count;
  17773. } else if (res.data[0][i].tools == 10) {
  17774. this.timeCount = res.data[0][i].count;
  17775. } else if (res.data[0][i].tools == 15) {
  17776. this.answerCount = res.data[0][i].count;
  17777. } else if (res.data[0][i].tools == 18) {
  17778. this.trainCount = res.data[0][i].count;
  17779. }
  17780. }
  17781. })
  17782. .catch((err) => {
  17783. console.error(err);
  17784. });
  17785. },
  17786. openTools(t, i, index, c, sName,id) {
  17787. var z = JSON.parse(c);
  17788. this.noteName = sName;
  17789. if (t == 4) {
  17790. this.radio = [];
  17791. this.isAnswer = false;
  17792. let b = z[0].anwer;
  17793. this.radio = b;
  17794. this.askJson = z[0].askJson;
  17795. this.isAnswer = true;
  17796. this.dialogVisible5 = true;
  17797. } else if (t == 45) {
  17798. this.radio = [];
  17799. this.isAnswer = false;
  17800. let b = z[0].anwer;
  17801. this.radio = b;
  17802. this.testJson = z[0].testJson;
  17803. this.isAnswer = true;
  17804. this.dialogVisibleChoice = true;
  17805. }else if(t == 69){
  17806. this.oldEnglishJson1 = {}
  17807. this.oldEnglishJson = {}
  17808. this.englishList1 = {}
  17809. this.newEngIndex = -1;
  17810. this.isNoUserid = false;
  17811. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17812. .toolChoose[i].englishList;
  17813. this.oldEnglishJson = z;
  17814. this.engWid = id;
  17815. this.newEnglishList = { engTitle:"",engText:"" }
  17816. this.newEnglishList1 = []
  17817. this.selectEngC(id,z);
  17818. }else if(t == 62){
  17819. this.videoType = 1;
  17820. this.videoJson = {};
  17821. this.videoJson = JSON.parse(c);
  17822. // this.videoJson =
  17823. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17824. // index
  17825. // ].toolChoose[i].videoJson;
  17826. this.dialogVisibleVideo = true;
  17827. }
  17828. // else if (t == 15) {
  17829. // this.answerQ = "";
  17830. // this.questionAnswer = "";
  17831. // this.answerQ = z[0].answerTitle;
  17832. // this.questionAnswer = z[0].answer;
  17833. // this.answerDialogVisible = true;
  17834. // }
  17835. },
  17836. fastText(p, t) {
  17837. if (t == 1) {
  17838. this.commentText += p;
  17839. } else {
  17840. this.eScore.eBzText += p;
  17841. }
  17842. },
  17843. addTools(t, i, index) {
  17844. var a = 0;
  17845. // this.taskCount = index;
  17846. this.toolindex = i;
  17847. if (t == 1) {
  17848. if (this.wbCount > 0) {
  17849. this.updateCount(this.wbCount, t);
  17850. } else {
  17851. this.wbCount++;
  17852. a = this.wbCount;
  17853. this.toolsCount(a, t);
  17854. }
  17855. window.parent.postMessage(
  17856. {
  17857. tools: "1",
  17858. cid: this.id,
  17859. stage: this.courseType,
  17860. task: this.taskCount,
  17861. tool: i,
  17862. },
  17863. "*"
  17864. );
  17865. } else if (t == 2) {
  17866. if (this.wordCount > 0) {
  17867. this.updateCount(this.wordCount, t);
  17868. } else {
  17869. this.wordCount++;
  17870. a = this.wordCount;
  17871. this.toolsCount(a, t);
  17872. }
  17873. window.parent.postMessage({ tools: "2" }, "*");
  17874. } else if (t == 3) {
  17875. if (this.mindCount > 0) {
  17876. this.updateCount(this.mindCount, t);
  17877. } else {
  17878. this.mindCount++;
  17879. a = this.mindCount;
  17880. this.toolsCount(a, t);
  17881. }
  17882. window.parent.postMessage(
  17883. {
  17884. tools: "3",
  17885. cid: this.id,
  17886. stage: this.courseType,
  17887. task: this.taskCount,
  17888. tool: i,
  17889. },
  17890. "*"
  17891. );
  17892. } else if (t == 4) {
  17893. this.radio = [];
  17894. this.noteName = "";
  17895. this.isAnswer = false;
  17896. if (this.askCount > 0) {
  17897. this.updateCount(this.askCount, t);
  17898. } else {
  17899. this.askCount++;
  17900. a = this.askCount;
  17901. this.toolsCount(a, t);
  17902. }
  17903. if (!this.dialogVisible2) {
  17904. this.askJson.askJson =
  17905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17906. index
  17907. ].toolChoose[i].askJson;
  17908. this.askJson.askTitle =
  17909. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17910. index
  17911. ].toolChoose[i].askTitle;
  17912. this.askJson.askCount =
  17913. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17914. index
  17915. ].toolChoose[i].askCount;
  17916. } else {
  17917. this.askJson.askJson = this.chapTools.askJson.askJson;
  17918. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17919. this.askJson.askCount = this.chapTools.askJson.askCount;
  17920. }
  17921. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17922. if (this.askJson.askJson[k].type == "2") {
  17923. this.radio.push([]);
  17924. } else {
  17925. this.radio.push("");
  17926. }
  17927. }
  17928. this.dialogVisible5 = true;
  17929. // window.parent.postMessage({ tools: "4" }, "*");
  17930. } else if (t == 45) {
  17931. this.noteName = "";
  17932. this.radio = [];
  17933. this.isAnswer = false;
  17934. if (this.askCount > 0) {
  17935. this.updateCount(this.askCount, t);
  17936. } else {
  17937. this.askCount++;
  17938. a = this.askCount;
  17939. this.toolsCount(a, t);
  17940. }
  17941. this.testJson =
  17942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17943. index
  17944. ].toolChoose[i].testJson;
  17945. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17946. if (this.testJson.testJson[k].type == "2") {
  17947. this.radio.push([]);
  17948. } else {
  17949. this.radio.push("");
  17950. }
  17951. }
  17952. this.dialogVisibleChoice = true;
  17953. // window.parent.postMessage({ tools: "4" }, "*");
  17954. } else if (t == 5) {
  17955. if (this.scoreCount > 0) {
  17956. this.updateCount(this.scoreCount, t);
  17957. } else {
  17958. this.scoreCount++;
  17959. a = this.scoreCount;
  17960. this.toolsCount(a, t);
  17961. }
  17962. this.dialogVisible4 = true;
  17963. // window.parent.postMessage({ tools: "5" }, "*");
  17964. } else if (t == 6) {
  17965. if (this.noteCount > 0) {
  17966. this.updateCount(this.noteCount, t);
  17967. } else {
  17968. this.noteCount++;
  17969. a = this.noteCount;
  17970. this.toolsCount(a, t);
  17971. }
  17972. window.parent.postMessage(
  17973. {
  17974. tools: "6",
  17975. cid: this.id,
  17976. stage: this.courseType,
  17977. task: this.taskCount,
  17978. tool: i,
  17979. },
  17980. "*"
  17981. );
  17982. } else if (t == 7) {
  17983. if (this.mindNetWorkCount > 0) {
  17984. this.updateCount(this.mindNetWorkCount, t);
  17985. } else {
  17986. this.mindNetWorkCount++;
  17987. a = this.mindNetWorkCount;
  17988. this.toolsCount(a, t);
  17989. }
  17990. window.parent.postMessage(
  17991. {
  17992. tools: "7",
  17993. cid: this.id,
  17994. stage: this.courseType,
  17995. task: this.taskCount,
  17996. tool: i,
  17997. },
  17998. "*"
  17999. );
  18000. } else if (t == 16) {
  18001. if (this.workCount > 0) {
  18002. this.updateCount(this.workCount, t);
  18003. } else {
  18004. this.workCount++;
  18005. a = this.workCount;
  18006. this.toolsCount(a, t);
  18007. }
  18008. this.dialogVisible = true;
  18009. } else if (t == 50) {
  18010. if (this.tType == 2) {
  18011. this.$message.error("不支持学生使用");
  18012. return;
  18013. }
  18014. this.plworkFile = [];
  18015. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18016. if (!this.uploadCid) {
  18017. this.$message.error(
  18018. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18019. );
  18020. return;
  18021. }
  18022. // this.uploadCid =
  18023. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18024. // index
  18025. // ].toolChoose[i].uploadJson[0];
  18026. this.selectUploadStudent(2);
  18027. } else if (t == 8) {
  18028. if (this.libraryCount > 0) {
  18029. this.updateCount(this.libraryCount, t);
  18030. } else {
  18031. this.libraryCount++;
  18032. a = this.libraryCount;
  18033. this.toolsCount(a, t);
  18034. }
  18035. window.parent.postMessage({ tools: "8" }, "*");
  18036. } else if (t == 17) {
  18037. if (this.libraryCount > 0) {
  18038. this.updateCount(this.libraryCount, t);
  18039. } else {
  18040. this.libraryCount++;
  18041. a = this.libraryCount;
  18042. this.toolsCount(a, t);
  18043. }
  18044. window.parent.postMessage({ tools: "17" }, "*");
  18045. } else if (t == 18) {
  18046. if (this.trainCount > 0) {
  18047. this.updateCount(this.trainCount, t);
  18048. } else {
  18049. this.trainCount++;
  18050. a = this.trainCount;
  18051. this.toolsCount(a, t);
  18052. }
  18053. window.parent.postMessage({ tools: "18" }, "*");
  18054. } else if (t == 10) {
  18055. if (this.timeCount > 0) {
  18056. this.updateCount(this.timeCount, t);
  18057. } else {
  18058. this.timeCount++;
  18059. a = this.timeCount;
  18060. this.toolsCount(a, t);
  18061. }
  18062. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18063. .taskJson[index].toolChoose[i].preTime
  18064. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18065. .toolChoose[i].preTime
  18066. : "";
  18067. this.timeDialogVisible = true;
  18068. } else if (t == 15) {
  18069. this.answerQ = "";
  18070. this.questionAnswer = "";
  18071. if (this.answerCount > 0) {
  18072. this.updateCount(this.answerCount, t);
  18073. } else {
  18074. this.answerCount++;
  18075. a = this.answerCount;
  18076. this.toolsCount(a, t);
  18077. }
  18078. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18079. .taskJson[index].toolChoose[i].answerQ
  18080. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18081. .toolChoose[i].answerQ
  18082. : "";
  18083. this.answerDialogVisible = true;
  18084. } else if (t == 21) {
  18085. window.parent.postMessage({ tools: "21" }, "*");
  18086. } else if (t == 22) {
  18087. window.parent.postMessage({ tools: "22" }, "*");
  18088. } else if (t == 23) {
  18089. window.parent.postMessage({ tools: "23" }, "*");
  18090. } else if (t == 24) {
  18091. window.parent.postMessage({ tools: "24" }, "*");
  18092. } else if (t == 25) {
  18093. window.parent.postMessage({ tools: "25" }, "*");
  18094. } else if (t == 31) {
  18095. window.parent.postMessage({ tools: "31" }, "*");
  18096. } else if (t == 28) {
  18097. window.parent.postMessage({ tools: "28" }, "*");
  18098. } else if (t == 37) {
  18099. window.parent.postMessage({ tools: "37" }, "*");
  18100. } else if (t == 38) {
  18101. window.parent.postMessage({ tools: "38" }, "*");
  18102. } else if (t == 39) {
  18103. window.parent.postMessage({ tools: "39" }, "*");
  18104. } else if (t == 32) {
  18105. window.parent.postMessage({ tools: "32" }, "*");
  18106. } else if (t == 66) {
  18107. window.parent.postMessage({ tools: "66" }, "*");
  18108. } else if (t == 67) {
  18109. window.parent.postMessage({ tools: "67" }, "*");
  18110. } else if (t == 68) {
  18111. window.parent.postMessage({ tools: "68" }, "*");
  18112. } else if (t == 57) {
  18113. // window.parent.postMessage({ tools: "57" }, "*");
  18114. window.parent.postMessage(
  18115. {
  18116. tools: "57u",
  18117. cid: this.id,
  18118. stage: this.courseType,
  18119. task: this.taskCount,
  18120. tool: i,
  18121. },
  18122. "*"
  18123. );
  18124. } else if (t == 58) {
  18125. window.parent.postMessage({ tools: "58" }, "*");
  18126. } else if (t == 59) {
  18127. window.parent.postMessage({ tools: "59" }, "*");
  18128. } else if (t == 60) {
  18129. window.parent.postMessage({ tools: "60" }, "*");
  18130. } else if (t == 61) {
  18131. window.parent.postMessage({ tools: "61" }, "*");
  18132. } else if (t == 63) {
  18133. window.parent.postMessage({ tools: "63" }, "*");
  18134. } else if (t == 71) {
  18135. window.parent.postMessage({ tools: "71" }, "*");
  18136. } else if (t == 69) {
  18137. if (this.worksStudent[i].length) {
  18138. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18139. if (this.userid == this.worksStudent[i][k].userid) {
  18140. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18141. break;
  18142. } else {
  18143. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18144. }
  18145. }
  18146. } else {
  18147. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18148. }
  18149. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18150. .taskJson[index].toolChoose[i].englishList
  18151. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18152. .toolChoose[i].englishList
  18153. : {};
  18154. this.englishToolIndex = i;
  18155. this.myAnList = this.myAnswerList1;
  18156. this.engDialogVisible = true;
  18157. } else if (t == 70) {
  18158. if (this.worksStudent[i].length) {
  18159. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18160. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18161. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18162. break;
  18163. } else {
  18164. this.englishVoiceJsonWork = [];
  18165. }
  18166. }
  18167. } else {
  18168. this.englishVoiceJsonWork = [];
  18169. }
  18170. let englishVoiceJson = {}
  18171. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18172. .taskJson[index].toolChoose[i].englishVoiceJson
  18173. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18174. .toolChoose[i].englishVoiceJson
  18175. : {};
  18176. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18177. this.EnglishVoiceDialog = true;
  18178. } else if (t == 65) {
  18179. if (this.tType == 2) {
  18180. this.$message.error("不支持学生使用");
  18181. return;
  18182. }
  18183. this.uploadCid = this.tcid;
  18184. if (!this.uploadCid) {
  18185. this.$message.error(
  18186. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18187. );
  18188. return;
  18189. }
  18190. this.selectPickStudent();
  18191. } else if (t == 26) {
  18192. window.parent.postMessage(
  18193. {
  18194. tools: "26",
  18195. cid: this.id,
  18196. stage: this.courseType,
  18197. task: this.taskCount,
  18198. tool: i,
  18199. },
  18200. "*"
  18201. );
  18202. } else if (t == 40) {
  18203. if (this.evalCount > 0) {
  18204. this.updateCount(this.evalCount, t);
  18205. } else {
  18206. this.evalCount++;
  18207. a = this.evalCount;
  18208. this.toolsCount(a, t);
  18209. }
  18210. this.eScore = { eBzText: "", eStar: [] };
  18211. if (this.worksStudent[i].length) {
  18212. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18213. if (this.userid == this.worksStudent[i][k].userid) {
  18214. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18215. this.rateJson =
  18216. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18217. index
  18218. ].toolChoose[i].rateJson;
  18219. break;
  18220. } else {
  18221. this.rateJson =
  18222. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18223. index
  18224. ].toolChoose[i].rateJson;
  18225. }
  18226. }
  18227. } else {
  18228. this.rateJson =
  18229. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18230. index
  18231. ].toolChoose[i].rateJson;
  18232. }
  18233. this.isStar = false;
  18234. this.studentEvalDialogVisible = true;
  18235. } else if (t == 41) {
  18236. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18237. .taskJson[index].toolChoose[i].selectJson
  18238. ? JSON.parse(
  18239. JSON.stringify(
  18240. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18241. index
  18242. ].toolChoose[i].selectJson
  18243. )
  18244. )
  18245. : { url: "", select: [], answer: [] };
  18246. if (this.worksStudent[i].length) {
  18247. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18248. if (this.userid == this.worksStudent[i][k].userid) {
  18249. var a = this.worksStudent[i][k].works.split(",");
  18250. for (var ki = 0; ki < a.length; ki++) {
  18251. a[ki] = parseInt(a[ki]);
  18252. }
  18253. this.selectAnswer = {
  18254. answer: a,
  18255. stu: this.worksStudent[i][k].sName,
  18256. };
  18257. break;
  18258. } else {
  18259. this.selectAnswer = { answer: [], stu: "" };
  18260. }
  18261. }
  18262. } else {
  18263. this.selectAnswer = { answer: [], stu: "" };
  18264. }
  18265. this.isSelect = false;
  18266. this.dialogVisibleSelect = true;
  18267. } else if (t == 44) {
  18268. window.parent.postMessage({ tools: "44" }, "*");
  18269. } else if (t == 47) {
  18270. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18271. .taskJson[index].toolChoose[i].sentenceList
  18272. ? JSON.parse(
  18273. JSON.stringify(
  18274. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18275. index
  18276. ].toolChoose[i].sentenceList
  18277. )
  18278. )
  18279. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18280. for (var q = 0; q < this.sentenceList.length; q++) {
  18281. this.sentenceList[q].chooseSenList = [];
  18282. this.sentenceList[q].addChangeSen = [];
  18283. this.sentenceList[q].addChangeSen = JSON.parse(
  18284. JSON.stringify(this.sentenceList[q].addSentence)
  18285. );
  18286. this.sentenceList[q].chooseSenList.length =
  18287. this.sentenceList[q].rightAnswer.length;
  18288. }
  18289. this.dialogVisibleSentence = true;
  18290. } else if (t == 48) {
  18291. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18292. .taskJson[index].toolChoose[i].tableJson
  18293. ? JSON.parse(
  18294. JSON.stringify(
  18295. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18296. index
  18297. ].toolChoose[i].tableJson
  18298. )
  18299. )
  18300. : { text: "" };
  18301. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18302. if (this.worksStudent[i].length) {
  18303. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18304. if (this.userid == this.worksStudent[i][k].userid) {
  18305. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18306. break;
  18307. }
  18308. }
  18309. }
  18310. this.dialogVisibleTable = true;
  18311. } else if (t == 52) {
  18312. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18313. .taskJson[index].toolChoose[i].wordJson
  18314. ? JSON.parse(
  18315. JSON.stringify(
  18316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18317. index
  18318. ].toolChoose[i].wordJson
  18319. )
  18320. )
  18321. : { text: "" };
  18322. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18323. if (this.worksStudent[i].length) {
  18324. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18325. if (this.userid == this.worksStudent[i][k].userid) {
  18326. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18327. break;
  18328. }
  18329. }
  18330. }
  18331. this.dialogVisibleWord = true;
  18332. } else if (t == 49) {
  18333. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18334. return
  18335. }
  18336. this.groupJson =
  18337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18338. index
  18339. ].toolChoose[i].groupJson;
  18340. this.islock = this.groupJson.islock == 1 ? true : false;
  18341. this.dialogVisibleGroup = true;
  18342. } else if (t == 62) {
  18343. this.videoType = 0;
  18344. this.videoJson = {};
  18345. this.videoJson =
  18346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18347. index
  18348. ].toolChoose[i].videoJson;
  18349. this.dialogVisibleVideo = true;
  18350. }
  18351. },
  18352. teacherWorkSubmit(t, i, index, s) {
  18353. this.sStudent = s;
  18354. this.toolindex = i;
  18355. this.sTool = t;
  18356. if (this.tType !== "1" && this.tType !== "4") {
  18357. return;
  18358. }
  18359. if (t == 16 || t == 32 || t == 50) {
  18360. this.dialogVisibleWorks = true;
  18361. } else if (t == 15) {
  18362. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18363. .taskJson[index].toolChoose[i].answerQ
  18364. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18365. .toolChoose[i].answerQ
  18366. : "";
  18367. this.questionAnswer = "";
  18368. this.answerDialogVisibleTeacher = true; //问答
  18369. } else if (t == 52) {
  18370. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18371. .taskJson[index].toolChoose[i].wordJson
  18372. ? JSON.parse(
  18373. JSON.stringify(
  18374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18375. index
  18376. ].toolChoose[i].wordJson
  18377. )
  18378. )
  18379. : { text: "" };
  18380. if (this.worksStudent[i].length) {
  18381. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18382. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18383. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18384. break;
  18385. }
  18386. }
  18387. }
  18388. this.dialogVisibleWordTeacher = true; //文档
  18389. } else if (t == 4) {
  18390. this.radio = [];
  18391. this.noteName = "";
  18392. this.isAnswer = false;
  18393. if (this.askCount > 0) {
  18394. this.updateCount(this.askCount, t);
  18395. } else {
  18396. this.askCount++;
  18397. a = this.askCount;
  18398. this.toolsCount(a, t);
  18399. }
  18400. if (!this.dialogVisible2) {
  18401. this.askJson.askJson =
  18402. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18403. index
  18404. ].toolChoose[i].askJson;
  18405. this.askJson.askTitle =
  18406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18407. index
  18408. ].toolChoose[i].askTitle;
  18409. this.askJson.askCount =
  18410. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18411. index
  18412. ].toolChoose[i].askCount;
  18413. } else {
  18414. this.askJson.askJson = this.chapTools.askJson.askJson;
  18415. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18416. this.askJson.askCount = this.chapTools.askJson.askCount;
  18417. }
  18418. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18419. if (this.askJson.askJson[k].type == "2") {
  18420. this.radio.push([]);
  18421. } else {
  18422. this.radio.push("");
  18423. }
  18424. }
  18425. this.dialogVisible5Teacher = true;
  18426. } else if (t == 45) {
  18427. this.noteName = "";
  18428. this.radio = [];
  18429. this.isAnswer = false;
  18430. if (this.askCount > 0) {
  18431. this.updateCount(this.askCount, t);
  18432. } else {
  18433. this.askCount++;
  18434. a = this.askCount;
  18435. this.toolsCount(a, t);
  18436. }
  18437. this.testJson =
  18438. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18439. index
  18440. ].toolChoose[i].testJson;
  18441. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18442. if (this.testJson.testJson[k].type == "2") {
  18443. this.radio.push([]);
  18444. } else {
  18445. this.radio.push("");
  18446. }
  18447. }
  18448. this.dialogVisibleChoiceTeacher = true;
  18449. } else if (t == 41) {
  18450. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18451. .taskJson[index].toolChoose[i].selectJson
  18452. ? JSON.parse(
  18453. JSON.stringify(
  18454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18455. index
  18456. ].toolChoose[i].selectJson
  18457. )
  18458. )
  18459. : { url: "", select: [], answer: [] };
  18460. if (this.worksStudent[i].length) {
  18461. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18462. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18463. var a = this.worksStudent[i][k].works.split(",");
  18464. for (var ki = 0; ki < a.length; ki++) {
  18465. a[ki] = parseInt(a[ki]);
  18466. }
  18467. this.selectAnswer = {
  18468. answer: a,
  18469. stu: this.worksStudent[i][k].sName,
  18470. };
  18471. break;
  18472. } else {
  18473. this.selectAnswer = { answer: [], stu: "" };
  18474. }
  18475. }
  18476. } else {
  18477. this.selectAnswer = { answer: [], stu: "" };
  18478. }
  18479. this.isSelect = false;
  18480. this.dialogVisibleSelectTeacher = true;
  18481. } else if (t == 47) {
  18482. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18483. .taskJson[index].toolChoose[i].sentenceList
  18484. ? JSON.parse(
  18485. JSON.stringify(
  18486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18487. index
  18488. ].toolChoose[i].sentenceList
  18489. )
  18490. )
  18491. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18492. for (var q = 0; q < this.sentenceList.length; q++) {
  18493. this.sentenceList[q].chooseSenList = [];
  18494. this.sentenceList[q].addChangeSen = [];
  18495. this.sentenceList[q].addChangeSen = JSON.parse(
  18496. JSON.stringify(this.sentenceList[q].addSentence)
  18497. );
  18498. this.sentenceList[q].chooseSenList.length =
  18499. this.sentenceList[q].rightAnswer.length;
  18500. }
  18501. this.dialogVisibleSentenceTeacher = true;
  18502. } else if (t == 48) {
  18503. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18504. .taskJson[index].toolChoose[i].tableJson
  18505. ? JSON.parse(
  18506. JSON.stringify(
  18507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18508. index
  18509. ].toolChoose[i].tableJson
  18510. )
  18511. )
  18512. : { text: "" };
  18513. if (this.worksStudent[i].length) {
  18514. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18515. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18516. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18517. break;
  18518. }
  18519. }
  18520. }
  18521. this.dialogVisibleTableTeacher = true;
  18522. } else if (t == 40) {
  18523. if (this.evalCount > 0) {
  18524. this.updateCount(this.evalCount, t);
  18525. } else {
  18526. this.evalCount++;
  18527. a = this.evalCount;
  18528. this.toolsCount(a, t);
  18529. }
  18530. this.eScore = { eBzText: "", eStar: [] };
  18531. if (this.worksStudent[i].length) {
  18532. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18533. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18534. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18535. this.rateJson =
  18536. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18537. index
  18538. ].toolChoose[i].rateJson;
  18539. break;
  18540. } else {
  18541. this.rateJson =
  18542. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18543. index
  18544. ].toolChoose[i].rateJson;
  18545. }
  18546. }
  18547. } else {
  18548. this.rateJson =
  18549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18550. index
  18551. ].toolChoose[i].rateJson;
  18552. }
  18553. this.isStar = false;
  18554. this.studentEvalDialogVisibleTeacher = true;
  18555. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18556. window.parent.postMessage(
  18557. {
  18558. tools: t + "teacher",
  18559. cid: this.id,
  18560. stage: this.courseType,
  18561. task: this.taskCount,
  18562. tool: i,
  18563. student: this.sStudent,
  18564. },
  18565. "*"
  18566. );
  18567. }
  18568. },
  18569. openCocoPi(tool, i, uid, uname) {
  18570. let student = {
  18571. userid: uid,
  18572. student: uname,
  18573. };
  18574. if (tool == 57) {
  18575. window.parent.postMessage(
  18576. {
  18577. tools: tool + "teacher",
  18578. cid: this.id,
  18579. stage: this.courseType,
  18580. task: this.taskCount,
  18581. tool: i,
  18582. student: student,
  18583. },
  18584. "*"
  18585. );
  18586. }
  18587. },
  18588. setRightAnswer(s, i, j) {
  18589. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18590. if (
  18591. this.sentenceList[i].chooseSenList[q] == undefined ||
  18592. this.sentenceList[i].chooseSenList[q] == ""
  18593. ) {
  18594. this.sentenceList[i].chooseSenList[q] = s;
  18595. this.sentenceList[i].addChangeSen[j] = "";
  18596. break;
  18597. }
  18598. }
  18599. this.$forceUpdate();
  18600. },
  18601. returnCard(r, i, j) {
  18602. var a = this.sentenceList[i].addSentence.indexOf(r);
  18603. this.sentenceList[i].chooseSenList[j] = "";
  18604. this.sentenceList[i].addChangeSen[a] = r;
  18605. this.$forceUpdate();
  18606. },
  18607. // addSentenceTool() {
  18608. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18609. // this.taskCount
  18610. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18611. // this.sentenceList = [
  18612. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18613. // ];
  18614. // this.dialogVisibleSentence = false;
  18615. // },
  18616. toolsCount(a, t) {
  18617. let params = {
  18618. cid: this.id,
  18619. chid: this.courseType,
  18620. uid: this.userid,
  18621. tid: t,
  18622. count: a,
  18623. };
  18624. this.ajax
  18625. .get(this.$store.state.api + "insertToolsCount", params)
  18626. .then((res) => {
  18627. this.selectCount();
  18628. })
  18629. .catch((err) => {
  18630. console.error(err);
  18631. });
  18632. },
  18633. updateCount(c, t) {
  18634. c++;
  18635. let params = {
  18636. cid: this.id,
  18637. chid: this.courseType,
  18638. uid: this.userid,
  18639. tid: t,
  18640. count: c,
  18641. };
  18642. this.ajax
  18643. .get(this.$store.state.api + "updateToolsCount", params)
  18644. .then((res) => {
  18645. this.selectCount();
  18646. })
  18647. .catch((err) => {
  18648. console.error(err);
  18649. });
  18650. },
  18651. checkEva() {
  18652. if (this.evalua != "") {
  18653. for (var i = 0; i < this.evaJuri.length; i++) {
  18654. if (this.evalua == this.evaJuri[i].id) {
  18655. this.eTitle = this.evaJuri[i].title;
  18656. this.eJson = JSON.parse(this.evaJuri[i].content);
  18657. }
  18658. }
  18659. this.$forceUpdate();
  18660. setTimeout(() => {
  18661. this.setMindData();
  18662. }, 0);
  18663. }
  18664. },
  18665. selectEva() {
  18666. let params = {
  18667. oid: this.oid,
  18668. };
  18669. this.ajax
  18670. .get(this.$store.state.api + "selectAllEvaluation", params)
  18671. .then((res) => {
  18672. this.evaJuri = res.data[0];
  18673. })
  18674. .catch((err) => {
  18675. console.error(err);
  18676. });
  18677. },
  18678. setMindData() {
  18679. this.data.data = [];
  18680. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18681. let _eJson = Object.keys(this.eJson);
  18682. let _e = this.eJson;
  18683. for (let i = 0; i < _eJson.length; i++) {
  18684. let element = _e[_eJson[i]];
  18685. this.data.data.push({
  18686. id: element.id,
  18687. parentid: "root",
  18688. topic: element.name,
  18689. });
  18690. let _eJsonc = Object.keys(element.child);
  18691. let _e2 = element.child;
  18692. for (let j = 0; j < _eJsonc.length; j++) {
  18693. let _ec = _e2[_eJsonc[j]];
  18694. this.data.data.push({
  18695. id: _ec.id,
  18696. parentid: element.id,
  18697. topic: _ec.name,
  18698. });
  18699. let _eJsonz = Object.keys(_ec.child);
  18700. let _e3 = _ec.child;
  18701. for (let z = 0; z < _eJsonz.length; z++) {
  18702. let _ez = _e3[_eJsonz[z]];
  18703. this.data.data.push({
  18704. id: _ez.id,
  18705. parentid: _ec.id,
  18706. topic: _ez.name,
  18707. });
  18708. }
  18709. }
  18710. }
  18711. this.$forceUpdate();
  18712. },
  18713. checkFileFull(type, url) {
  18714. this.fullDialogVisible = true;
  18715. this.fulltype = type;
  18716. this.fullUrl = url;
  18717. },
  18718. async checkFileFull1(t, f) {
  18719. this.fullDialogVisible = true;
  18720. if (t == 6) {
  18721. this.fulltype = 1;
  18722. this.fullUrl = JSON.parse(JSON.stringify(f));
  18723. } else if (t == 8) {
  18724. this.fulltype = 2;
  18725. this.fullUrl = f.url;
  18726. } else if (
  18727. t == 3 &&
  18728. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18729. "PDF"
  18730. ) {
  18731. this.fulltype = 3;
  18732. this.fullUrl = f.url;
  18733. } else if (t == 3) {
  18734. this.fulltype = 2;
  18735. let _uuurl = await this.checkLink(f.url);
  18736. console.log(_uuurl)
  18737. this.fullUrl =
  18738. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18739. }
  18740. },
  18741. openSname(n, id, i, uid) {
  18742. this.snameWid = id;
  18743. this.worksSName = n;
  18744. this.worksSid = uid == n ? "" : uid;
  18745. this.toolindex = i;
  18746. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18747. if (!this.uploadCid) {
  18748. this.$message.error(
  18749. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18750. );
  18751. return;
  18752. }
  18753. this.selectUploadStudent(1);
  18754. },
  18755. updateName() {
  18756. let params = {
  18757. n: this.worksSName,
  18758. cid: this.snameWid,
  18759. };
  18760. this.ajax
  18761. .get(this.$store.state.api + "updateCourseWorksName", params)
  18762. .then((res) => {
  18763. this.$message({
  18764. message: "修改成功",
  18765. type: "success",
  18766. });
  18767. this.dialogVisibleSname = false;
  18768. this.getCourseDetail(2);
  18769. this.snameWid = "";
  18770. this.worksSName = "";
  18771. })
  18772. .catch((err) => {
  18773. console.error(err);
  18774. });
  18775. },
  18776. downloadFile2(f) {
  18777. // const loading = this.$loading.service({
  18778. // background: "rgba(255, 255, 255, 0.7)",
  18779. // target: document.body,
  18780. // text: "文件加载中...",
  18781. // });
  18782. // let url2 = f.url;
  18783. // let _url2 = "";
  18784. // if (
  18785. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18786. // ) {
  18787. // _url2 = url2.split(
  18788. // "https://view.officeapps.live.com/op/view.aspx?src="
  18789. // )[1];
  18790. // } else {
  18791. // _url2 = url2;
  18792. // }
  18793. // let params = {
  18794. // url: _url2,
  18795. // name: f.name,
  18796. // };
  18797. // this.ajax
  18798. // .get(this.$store.state.api + "download", params)
  18799. // .then((res) => {
  18800. // loading.close();
  18801. // let content = res.data.data.data;
  18802. // let ab = new ArrayBuffer(content.length);
  18803. // let view = new Uint8Array(ab);
  18804. // for (var i = 0; i < content.length; ++i) {
  18805. // view[i] = content[i];
  18806. // }
  18807. // let elink = document.createElement("a");
  18808. // elink.download = f.name;
  18809. // elink.style.display = "none";
  18810. // let blob = new Blob([ab], {
  18811. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18812. // });
  18813. // elink.href = URL.createObjectURL(blob);
  18814. // document.body.appendChild(elink);
  18815. // elink.click();
  18816. // document.body.removeChild(elink);
  18817. // })
  18818. // .catch((err) => {
  18819. // loading.close();
  18820. // console.error(err);
  18821. // });
  18822. var credentials = {
  18823. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18824. secretAccessKey: "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",
  18825. }; //秘钥形式的登录上传
  18826. window.AWS.config.update(credentials);
  18827. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18828. let url2 = f.url;
  18829. let _url2 = "";
  18830. if (
  18831. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18832. ) {
  18833. _url2 = url2.split(
  18834. "https://view.officeapps.live.com/op/view.aspx?src="
  18835. )[1];
  18836. } else {
  18837. _url2 = url2;
  18838. }
  18839. let _this = this;
  18840. _this.downLoading = true
  18841. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18842. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18843. var params = {
  18844. Bucket: "ccrb",
  18845. Key: name
  18846. };
  18847. s3.getObject(params, function (err, data) {
  18848. _this.downLoading = false
  18849. if (err) console.log(err, err.stack); // an error occurred
  18850. else {
  18851. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18852. let a = document.createElement("a");
  18853. a.name = f.name;
  18854. a.href = url;
  18855. a.download = f.name;
  18856. a.click();
  18857. console.log(data);
  18858. } // sxuccessful response
  18859. });
  18860. return;
  18861. let url = f.url;
  18862. let _url = "";
  18863. if (
  18864. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18865. ) {
  18866. _url = url.split(
  18867. "https://view.officeapps.live.com/op/view.aspx?src="
  18868. )[1];
  18869. } else {
  18870. _url = url;
  18871. }
  18872. _this.downLoading = true
  18873. // const loading = _this.$loading.service({
  18874. // background: "rgba(255, 255, 255, 0.7)",
  18875. // target: document.body,
  18876. // text: "文件加载中...",
  18877. // });
  18878. let x = new XMLHttpRequest();
  18879. x.open("GET", _url, true);
  18880. x.responseType = "blob";
  18881. x.onload = function () {
  18882. _this.downLoading = false
  18883. // loading.close();
  18884. let url = window.URL.createObjectURL(new Blob([x.response]));
  18885. let a = document.createElement("a");
  18886. a.name = f.name;
  18887. a.href = url;
  18888. a.download = f.name;
  18889. a.click();
  18890. };
  18891. x.send();
  18892. },
  18893. downloadFile(url) {
  18894. var credentials = {
  18895. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18896. secretAccessKey: "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",
  18897. }; //秘钥形式的登录上传
  18898. window.AWS.config.update(credentials);
  18899. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18900. let url2 = url;
  18901. let _url2 = "";
  18902. if (
  18903. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18904. ) {
  18905. _url2 = url2.split(
  18906. "https://view.officeapps.live.com/op/view.aspx?src="
  18907. )[1];
  18908. } else {
  18909. _url2 = url2;
  18910. }
  18911. const loading2 = this.$loading.service({
  18912. background: "rgba(255, 255, 255, 0.7)",
  18913. target: document.body,
  18914. text: "文件加载中...",
  18915. });
  18916. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18917. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18918. var params = {
  18919. Bucket: "ccrb",
  18920. Key: name
  18921. };
  18922. s3.getObject(params, function (err, data) {
  18923. loading2.close();
  18924. if (err) console.log(err, err.stack); // an error occurred
  18925. else {
  18926. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18927. let a = document.createElement("a");
  18928. a.name = name;
  18929. a.href = url;
  18930. a.download = name;
  18931. a.click();
  18932. console.log(data);
  18933. } // sxuccessful response
  18934. });
  18935. return;
  18936. let _this = this;
  18937. let _url = "";
  18938. if (
  18939. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18940. ) {
  18941. _url = url.split(
  18942. "https://view.officeapps.live.com/op/view.aspx?src="
  18943. )[1];
  18944. } else {
  18945. _url = url;
  18946. }
  18947. const x = new XMLHttpRequest();
  18948. x.open("GET", _url, true);
  18949. x.responseType = "blob";
  18950. // this.downLoading = true
  18951. const loading = _this.$loading.service({
  18952. background: "rgba(255, 255, 255, 0.7)",
  18953. target: document.body,
  18954. text: "文件加载中...",
  18955. });
  18956. // _this.$message.success("文件下载中...");
  18957. x.onload = function (e) {
  18958. this.downLoading = false
  18959. loading.close();
  18960. let content = x.response;
  18961. let elink = document.createElement("a");
  18962. elink.download = decodeURI(
  18963. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18964. );
  18965. elink.style.display = "none";
  18966. let blob = new Blob([content]);
  18967. elink.href = URL.createObjectURL(blob);
  18968. document.body.appendChild(elink);
  18969. elink.click();
  18970. document.body.removeChild(elink);
  18971. };
  18972. x.send();
  18973. },
  18974. openLine(url) {
  18975. window.open(url);
  18976. },
  18977. resize() {
  18978. if (document.getElementsByClassName("box_course").length) {
  18979. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18980. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18981. if (this.showType == 2 || this.showType == 3) {
  18982. document.getElementsByClassName("navBox")[0].style.height =
  18983. a - 40 + 0+ "px";
  18984. } else {
  18985. document.getElementsByClassName("navBox")[0].style.height =
  18986. a - 40 + "px";
  18987. }
  18988. }
  18989. this.Stbodywidth =
  18990. document.getElementsByClassName("student_body").length &&
  18991. document.getElementsByClassName("student_body")[0].offsetWidth;
  18992. },
  18993. closeDraw() {
  18994. this.bg = null;
  18995. this.drawShow = false;
  18996. },
  18997. showPicturePaint(url) {
  18998. let params = {
  18999. img: url,
  19000. };
  19001. this.ajax
  19002. .get(this.$store.state.api + "imgToBase64", params)
  19003. .then((res) => {
  19004. this.drawShow = true;
  19005. this.bg = res.data[0].img;
  19006. })
  19007. .catch((err) => {
  19008. console.error(err);
  19009. });
  19010. },
  19011. addImgDraw(base64) {
  19012. let file = { name: "批注图.png" };
  19013. let img = this.dataUrlToFile(base64, file);
  19014. this.beforeUpload1(img, 5);
  19015. },
  19016. addImgDrawImG(url) {
  19017. // console.log(url);
  19018. let params = [
  19019. {
  19020. wid: this.commentDetail.wid,
  19021. img: url,
  19022. },
  19023. ];
  19024. this.ajax
  19025. .post(this.$store.state.api + "updateCourseWorks", params)
  19026. .then((res) => {
  19027. this.$message({
  19028. message: "提交成功",
  19029. type: "success",
  19030. });
  19031. this.drawShow = false;
  19032. this.bg = "";
  19033. this.selectSWorks();
  19034. this.selectStudent();
  19035. })
  19036. .catch((err) => {
  19037. this.$message.error("提交失败");
  19038. console.error(err);
  19039. });
  19040. },
  19041. deletePicturePaint() {
  19042. this.$confirm("确定删除此批注吗?", "提示", {
  19043. confirmButtonText: "确定",
  19044. cancelButtonText: "取消",
  19045. type: "warning",
  19046. })
  19047. .then(() => {
  19048. let params = [
  19049. {
  19050. wid: this.commentDetail.wid,
  19051. img: "",
  19052. },
  19053. ];
  19054. this.ajax
  19055. .post(this.$store.state.api + "updateCourseWorks", params)
  19056. .then((res) => {
  19057. this.$message({
  19058. message: "删除成功",
  19059. type: "success",
  19060. });
  19061. this.selectSWorks();
  19062. this.selectStudent();
  19063. })
  19064. .catch((err) => {
  19065. this.$message.error("删除失败");
  19066. console.error(err);
  19067. });
  19068. })
  19069. .catch(() => {});
  19070. },
  19071. getAudioVideo(constraintsData) {
  19072. if (navigator.mediaDevices === undefined) {
  19073. navigator.mediaDevices = {};
  19074. }
  19075. if (navigator.mediaDevices.getUserMedia === undefined) {
  19076. navigator.mediaDevices.getUserMedia = function (constraints) {
  19077. // 首先,如果有getUserMedia的话,就获得它
  19078. var getUserMedia =
  19079. navigator.getUserMedia ||
  19080. navigator.webkitGetUserMedia ||
  19081. navigator.mozGetUserMedia ||
  19082. navigator.msGetUserMedia;
  19083. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19084. if (!getUserMedia) {
  19085. return Promise.reject({ code: 404 });
  19086. }
  19087. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19088. return new Promise(function (resolve, reject) {
  19089. getUserMedia.call(navigator, constraints, resolve, reject);
  19090. });
  19091. };
  19092. }
  19093. return navigator.mediaDevices.getUserMedia(constraintsData);
  19094. },
  19095. /**
  19096. * 开始录制
  19097. */
  19098. startRecording(callback) {
  19099. let _function = (screenStream) => {
  19100. this.addStreamStopListener(screenStream, () => {
  19101. console.log("流停止监听");
  19102. this.stopRecording();
  19103. this.$emit("streamStop", {});
  19104. // this.stopRecording();
  19105. });
  19106. var options = {
  19107. type: "video",
  19108. mimeType: "video/webm",
  19109. disableLogs: false,
  19110. getNativeBlob: false, // enable it for longer recordings
  19111. ignoreMutedMedia: false,
  19112. };
  19113. // this.video.srcObject = screenStream;
  19114. this.recorder = RecordRTC(screenStream, options);
  19115. this.recorder.startRecording();
  19116. this.recorder.screen = screenStream;
  19117. this.videoStart = true;
  19118. // callback(true);
  19119. };
  19120. this.getAudioVideo({ audio: true })
  19121. .then((res) => {
  19122. this.captureScreen(_function, true);
  19123. console.log("已点击允许,开启成功");
  19124. })
  19125. .catch((err) => {
  19126. // console.log('浏览器不支持,请更换浏览器')
  19127. // } else {
  19128. this.captureScreen(_function, false);
  19129. console.log("请检查是否存在麦克风");
  19130. });
  19131. },
  19132. /**
  19133. * 停止录制
  19134. */
  19135. stopRecording(callback) {
  19136. this.recorder.stopRecording(() => {
  19137. // this.video.src = this.video.srcObject = null;
  19138. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19139. const url = URL.createObjectURL(this.recorder.getBlob());
  19140. const a = document.createElement("a"); //this.fileName+
  19141. let videoFile = new File(
  19142. [this.recorder.getBlob()],
  19143. this.courseDetail.title + "录屏.mp4",
  19144. {
  19145. type: "video/mp4",
  19146. }
  19147. );
  19148. let downloadUrl = URL.createObjectURL(videoFile);
  19149. document.body.appendChild(a);
  19150. a.style.display = "none";
  19151. a.href = url;
  19152. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19153. a.click();
  19154. this.recorder.screen.stop();
  19155. this.recorder.destroy();
  19156. this.recorder = null;
  19157. this.videoStart = false;
  19158. // callback(false);
  19159. });
  19160. },
  19161. //初始化
  19162. captureScreen(callback, type) {
  19163. if (navigator.getDisplayMedia) {
  19164. //录制结束,文件下载
  19165. navigator
  19166. .getDisplayMedia({
  19167. video: true,
  19168. })
  19169. .then((screenStream) => {
  19170. if (type) {
  19171. navigator.mediaDevices
  19172. .getUserMedia({ audio: true })
  19173. .then((mic) => {
  19174. screenStream.addTrack(mic.getTracks()[0]);
  19175. callback(screenStream);
  19176. });
  19177. } else {
  19178. callback(screenStream);
  19179. }
  19180. })
  19181. .catch(function (error) {
  19182. console.log("error", error);
  19183. });
  19184. } else if (navigator.mediaDevices.getDisplayMedia) {
  19185. navigator.mediaDevices
  19186. .getDisplayMedia({
  19187. video: true,
  19188. })
  19189. .then((screenStream) => {
  19190. if (type) {
  19191. navigator.mediaDevices
  19192. .getUserMedia({ audio: true })
  19193. .then((mic) => {
  19194. screenStream.addTrack(mic.getTracks()[0]);
  19195. callback(screenStream);
  19196. });
  19197. } else {
  19198. callback(screenStream);
  19199. }
  19200. })
  19201. .catch(function (error) {
  19202. console.log("error", error);
  19203. });
  19204. } else {
  19205. var error = "getDisplayMedia API are not supported in this browser.";
  19206. console.log("error", error);
  19207. alert(error);
  19208. }
  19209. },
  19210. //流监听
  19211. addStreamStopListener(stream, callback) {
  19212. stream.addEventListener(
  19213. "ended",
  19214. function () {
  19215. callback();
  19216. callback = function () {};
  19217. },
  19218. false
  19219. );
  19220. stream.addEventListener(
  19221. "inactive",
  19222. function () {
  19223. callback();
  19224. callback = function () {};
  19225. },
  19226. false
  19227. );
  19228. stream.getTracks().forEach(function (track) {
  19229. track.addEventListener(
  19230. "ended",
  19231. function () {
  19232. callback();
  19233. callback = function () {};
  19234. },
  19235. false
  19236. );
  19237. track.addEventListener(
  19238. "inactive",
  19239. function () {
  19240. callback();
  19241. callback = function () {};
  19242. },
  19243. false
  19244. );
  19245. });
  19246. },
  19247. updateGroup() {
  19248. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19249. this.dialogVisibleGroup2 = true;
  19250. },
  19251. numberPan() {
  19252. if (
  19253. /[^\d]/.test(this.groupJson.number) ||
  19254. this.groupJson.number < 2 ||
  19255. this.groupJson.number > 10
  19256. ) {
  19257. this.$message.error("请输入2-10的数字");
  19258. this.groupJson.number = "";
  19259. }
  19260. },
  19261. updateGroupJson() {
  19262. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19263. if (
  19264. this.groupStudentUid[this.toolindex][i].length >
  19265. this.groupJson2.number
  19266. ) {
  19267. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19268. return;
  19269. }
  19270. }
  19271. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19272. this.islock = this.groupJson.islock == 1 ? true : false;
  19273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19274. this.taskCount
  19275. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19276. let params = [
  19277. {
  19278. cid: this.id,
  19279. chapters: JSON.stringify(this.chapInfoList),
  19280. uid: this.userid,
  19281. unitIndex: this.courseType,
  19282. },
  19283. ];
  19284. this.ajax
  19285. .post(this.$store.state.api + "updateWorkNew4", params)
  19286. .then((res) => {
  19287. this.$message.success("设置成功");
  19288. this.getCourseDetail(2);
  19289. this.dialogVisibleGroup2 = false;
  19290. this.groupJson2 = {};
  19291. this.$forceUpdate();
  19292. })
  19293. .catch((err) => {
  19294. this.$message.error("网络不佳");
  19295. console.error(err);
  19296. });
  19297. },
  19298. lockChair() {
  19299. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19300. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19301. this.updateGroupJson();
  19302. },
  19303. selectGroup(index) {
  19304. this.getCourseDetail(2, index);
  19305. },
  19306. joinGroup(index) {
  19307. if (this.groupJson.islock == 2) {
  19308. this.$message.error("位置已被锁定,无法加入");
  19309. return;
  19310. }
  19311. if (
  19312. this.groupStudent[this.toolindex][index].length >
  19313. this.groupJson.number ||
  19314. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19315. ) {
  19316. this.$message.error("位置已满,无法加入");
  19317. return;
  19318. }
  19319. let params = [
  19320. {
  19321. cid: this.id,
  19322. stage: this.courseType,
  19323. task: this.taskCount,
  19324. tool: this.toolindex,
  19325. g: index,
  19326. uid: this.userid,
  19327. },
  19328. ];
  19329. this.ajax
  19330. .post(this.$store.state.api + "joinGroup", params)
  19331. .then((res) => {
  19332. this.$message.success("加入成功");
  19333. this.getCourseDetail(2);
  19334. })
  19335. .catch((err) => {
  19336. this.$message.error("网络不佳");
  19337. console.error(err);
  19338. });
  19339. },
  19340. exitGroup(id) {
  19341. if (this.groupJson.islock == 2) {
  19342. this.$message.error("位置已被锁定,无法退出");
  19343. return;
  19344. }
  19345. let params = [
  19346. {
  19347. gid: id,
  19348. },
  19349. ];
  19350. this.ajax
  19351. .post(this.$store.state.api + "exitGroup", params)
  19352. .then((res) => {
  19353. this.$message.success("退出成功");
  19354. this.getCourseDetail(2);
  19355. })
  19356. .catch((err) => {
  19357. this.$message.error("网络不佳");
  19358. console.error(err);
  19359. });
  19360. },
  19361. groupUpload(index, task, gindex) {
  19362. this.taskCount = task;
  19363. this.toolindex = index;
  19364. this.groupIndex = gindex;
  19365. this.dialogVisibleGroupWork = true;
  19366. },
  19367. updateGroupChair(user) {
  19368. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19369. el.label = index;
  19370. return index != user.group;
  19371. });
  19372. this.updateGroupUser = user;
  19373. this.dialogVisibleUpdateGroup = true;
  19374. },
  19375. updateChair() {
  19376. if (
  19377. this.groupStudent[this.toolindex][this.checkChair].length >
  19378. this.groupJson.number ||
  19379. this.groupStudent[this.toolindex][this.checkChair].length ==
  19380. this.groupJson.number
  19381. ) {
  19382. this.$message.error("位置已满,无法加入");
  19383. return;
  19384. }
  19385. let params = [
  19386. {
  19387. cid: this.id,
  19388. stage: this.courseType,
  19389. task: this.taskCount,
  19390. tool: this.toolindex,
  19391. g: this.checkChair,
  19392. uid: this.updateGroupUser.userid,
  19393. },
  19394. ];
  19395. this.ajax
  19396. .post(this.$store.state.api + "joinGroup", params)
  19397. .then((res) => {
  19398. this.$message.success("修改成功");
  19399. this.updateGroupUser = {};
  19400. this.checkChair = "";
  19401. this.updateGroupArray = {};
  19402. this.dialogVisibleUpdateGroup = false;
  19403. this.getCourseDetail(2);
  19404. })
  19405. .catch((err) => {
  19406. this.$message.error("网络不佳");
  19407. console.error(err);
  19408. });
  19409. },
  19410. deleteGroupChair(gindex) {
  19411. this.checkDeleteGroup = [];
  19412. this.deleteGroupUser = JSON.parse(
  19413. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19414. );
  19415. this.deleteGroupArray = this.groupJson.group[gindex];
  19416. this.groupIndex = gindex;
  19417. this.dialogVisibleDeleteGroup = true;
  19418. },
  19419. async deleteChair() {
  19420. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19421. const gid =
  19422. this.groupStudent[this.toolindex][this.groupIndex][
  19423. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19424. this.checkDeleteGroup[i]
  19425. )
  19426. ];
  19427. let params = [
  19428. {
  19429. gid: gid.id,
  19430. },
  19431. ];
  19432. var a = await this.deleteChairA(params);
  19433. if (i == this.checkDeleteGroup.length - 1) {
  19434. this.$message.success("退出成功");
  19435. this.dialogVisibleDeleteGroup = false;
  19436. this.deleteGroupUser = [];
  19437. this.deleteGroupArray = {};
  19438. this.groupIndex = "";
  19439. this.checkDeleteGroup = [];
  19440. this.getCourseDetail(2);
  19441. }
  19442. }
  19443. },
  19444. deleteChairA(params) {
  19445. return new Promise((resolve, reject) => {
  19446. this.ajax
  19447. .post(this.$store.state.api + "exitGroup", params)
  19448. .then((res) => {
  19449. resolve(1);
  19450. })
  19451. .catch((err) => {
  19452. this.$message.error("网络不佳");
  19453. console.error(err);
  19454. });
  19455. });
  19456. },
  19457. contract(i) {
  19458. if (this.isCloseList[i].isClose == 0) {
  19459. this.isCloseList[i].isClose = 1;
  19460. } else {
  19461. this.isCloseList[i].isClose = 0;
  19462. }
  19463. this.$forceUpdate();
  19464. },
  19465. openWordCloud(toolindex) {
  19466. let array = [];
  19467. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19468. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19469. array.push({ name: works });
  19470. }
  19471. if (this.isGroup) {
  19472. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19473. let works = this.courseGroup.group[i].works[toolindex];
  19474. for (var j = 0; j < works.length; j++) {
  19475. let answer = JSON.parse(works[j].works)[0].answer;
  19476. array.push({ name: answer });
  19477. }
  19478. }
  19479. }
  19480. this.wordCloudData = array;
  19481. this.dialogVisibleWordCloud = true;
  19482. },
  19483. uploadWorks(i) {
  19484. this.$confirm("确定导出作业吗?", "提示", {
  19485. confirmButtonText: "确定",
  19486. cancelButtonText: "取消",
  19487. type: "warning",
  19488. })
  19489. .then(() => {
  19490. const loading = this.$loading.service({
  19491. background: "rgba(255, 255, 255, 0.7)",
  19492. target: document.body,
  19493. text: "文件加载中...",
  19494. });
  19495. const _worksStudent = this.worksStudent;
  19496. let url = [];
  19497. var counts = {};
  19498. for (var l = 0; l < _worksStudent[i].length; l++) {
  19499. var item = _worksStudent[i][l];
  19500. var name = item.sName;
  19501. if (!counts.hasOwnProperty(name)) {
  19502. counts[name] = 0;
  19503. } else {
  19504. counts[name]++;
  19505. }
  19506. if (counts[name] > 0) {
  19507. item.sName += " (" + counts[name] + ")";
  19508. }
  19509. }
  19510. for (var l = 0; l < _worksStudent[i].length; l++) {
  19511. var item = _worksStudent[i][l];
  19512. if (
  19513. item.works.indexOf(
  19514. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19515. ) !== -1 &&
  19516. item.works.indexOf("img") === -1
  19517. ) {
  19518. url.push({ name: item.sName, url: item.works });
  19519. }
  19520. }
  19521. // var toolList = [
  19522. // { name: "电子白板", tool: 1 },
  19523. // { name: "思维导图", tool: 3 },
  19524. // { name: "协同文档", tool: 6 },
  19525. // { name: "思维网格", tool: 7 },
  19526. // { name: "素材库", tool: 8 },
  19527. // { name: "学习资料", tool: 17 },
  19528. // { name: "便签", tool: 2 },
  19529. // { name: "问卷调查", tool: 4 },
  19530. // { name: "选择题", tool: 45 },
  19531. // { name: "倒计时", tool: 10 },
  19532. // { name: "问答", tool: 15 },
  19533. // { name: "课程设计", tool: 26 },
  19534. // { name: "训练服务器", tool: 18 },
  19535. // { name: "作业提交", tool: 16 },
  19536. // { name: "批量上传", tool: 50 },
  19537. // { name: "AIoT Blockly", tool: 21 },
  19538. // { name: "AI Python", tool: 23 },
  19539. // { name: "AI Blockly", tool: 24 },
  19540. // { name: "目标管理", tool: 25 },
  19541. // { name: "数学画板", tool: 31 },
  19542. // { name: "翻译", tool: 28 },
  19543. // { name: "魔盒识字", tool: 37 },
  19544. // { name: "数学画板", tool: 31 },
  19545. // { name: "24点", tool: 38 },
  19546. // { name: "GeoGebra", tool: 39 },
  19547. // { name: "源码编辑", tool: 32 },
  19548. // { name: "个人评价", tool: 40 },
  19549. // { name: "选择匹配", tool: 41 },
  19550. // { name: "汉字宫", tool: 44 },
  19551. // { name: "排序", tool: 47 },
  19552. // { name: "表格", tool: 48 },
  19553. // { name: "文档", tool: 52 },
  19554. // { name: "学生分组", tool: 49 },
  19555. // { name: "CocoPi", tool: 57 },
  19556. // { name: "模拟驾驶", tool: 58 },
  19557. // { name: "路径搜索", tool: 59 },
  19558. // { name: "深度学习", tool: 60 },
  19559. // { name: "全历史", tool: 61 },
  19560. // { name: "交互视频", tool: 62 },
  19561. // { name: "海龟编程", tool: 63 },
  19562. // { name: "挑人", tool: 65 },
  19563. // { name: "公式编辑", tool: 66 },
  19564. // { name: "分子结构", tool: 67 },
  19565. // { name: "时间轴", tool: 68 },
  19566. // ];
  19567. // var toolName = "";
  19568. // for(var w = 0;w<toolList.length;w++){
  19569. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19570. // toolName = toolList[w].name;
  19571. // }
  19572. // }
  19573. console.log(url);
  19574. this.downLoadAll(url, loading);
  19575. })
  19576. .catch(() => {});
  19577. },
  19578. downLoadAll(url, loading) {
  19579. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19580. const zip = new JSZip();
  19581. const cache = {};
  19582. const promises = [];
  19583. data.forEach((item) => {
  19584. const promise = getFile(item.url).then((data) => {
  19585. if (data.data != 1) {
  19586. // 下载文件, 并存成ArrayBuffer对象
  19587. const file_name =
  19588. item.name +
  19589. "." +
  19590. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19591. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19592. cache[file_name] = data.data;
  19593. }
  19594. });
  19595. promises.push(promise);
  19596. });
  19597. Promise.all(promises).then(() => {
  19598. zip.generateAsync({ type: "blob" }).then((content) => {
  19599. // 生成二进制流
  19600. FileSaver.saveAs(
  19601. content,
  19602. this.courseDetail.title + "-" + "作业提交工具.zip"
  19603. ); // 利用file-saver保存文件 自定义文件名
  19604. setTimeout(() => {
  19605. loading.close();
  19606. }, 2000);
  19607. });
  19608. });
  19609. },
  19610. pickStudent(stu) {
  19611. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19612. return;
  19613. }
  19614. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19615. confirmButtonText: "确定",
  19616. cancelButtonText: "取消",
  19617. type: "warning",
  19618. })
  19619. .then(() => {
  19620. let params = [
  19621. {
  19622. uid: stu.userid,
  19623. cid: this.id,
  19624. stage: this.courseType,
  19625. task: this.taskCount,
  19626. tool: this.toolindex,
  19627. },
  19628. ];
  19629. this.ajax
  19630. .post(this.$store.state.api + "updateCoursePick", params)
  19631. .then((res) => {
  19632. this.$message.success("操作成功");
  19633. this.getPick();
  19634. })
  19635. .catch((err) => {
  19636. this.$message.error("网络不佳");
  19637. console.error(err);
  19638. });
  19639. })
  19640. .catch(() => {});
  19641. },
  19642. selectUser(){
  19643. let params = {
  19644. userid: this.userid,
  19645. };
  19646. this.ajax
  19647. .get(this.$store.state.api + "selectUser", params)
  19648. .then((res) => {
  19649. this.userMes = res.data[0];
  19650. })
  19651. .catch((err) => {
  19652. console.error(err);
  19653. });
  19654. },
  19655. setEngText(i){
  19656. this.newEngIndex = i;
  19657. this.$forceUpdate();
  19658. },
  19659. addCorrect(){
  19660. this.$confirm("你确定提交批改嘛?", "提示", {
  19661. confirmButtonText: "确定",
  19662. showCancelButton: false,
  19663. closeOnClickModal: false,
  19664. type: "warning",
  19665. })
  19666. .then(() => {
  19667. let params = {
  19668. cid: this.id,
  19669. s: parseInt(this.courseType),
  19670. t: this.taskCount,
  19671. tool: this.toolindex,
  19672. wid: this.engWid,
  19673. c: this.userid,
  19674. 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) : "",
  19675. };
  19676. this.ajax
  19677. .get(this.$store.state.api + "addEngC", params)
  19678. .then((res) => {
  19679. this.$message.success("提交成功");
  19680. this.engUpdateDialogVisible = false;
  19681. })
  19682. .catch((err) => {
  19683. console.error(err);
  19684. });
  19685. })
  19686. .catch(() => {});
  19687. },
  19688. selectEngC(id,z){
  19689. let params = {
  19690. workid: id,
  19691. };
  19692. this.ajax
  19693. .get(this.$store.state.api + "selectEngC", params)
  19694. .then((res) => {
  19695. if(res.data[0].length == 0){
  19696. this.newEnglishList.engTitle = z.engTitle;
  19697. this.newEnglishList.engText = z.engText;
  19698. }else{
  19699. var a = res.data[0];
  19700. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19701. if(this.userMes[0].type == 2){
  19702. var snum = 0;
  19703. for(var i = 0;i<a.length;i++){
  19704. if(this.userMes[0].userid == a[i].correct){
  19705. this.newEnglishList = JSON.parse(a[i].cWork);
  19706. snum = 1;
  19707. }
  19708. }
  19709. if(snum == 0){
  19710. this.newEnglishList = { engTitle:"",engText:"" };
  19711. this.newEnglishList.engTitle = z.engTitle;
  19712. this.newEnglishList.engText = z.engText;
  19713. }
  19714. }else if(this.userMes[0].type == 1){
  19715. var num = 0;
  19716. for(var w= 0;w<a.length;w++){
  19717. if(this.userMes[0].userid == a[w].correct){
  19718. num = 1;
  19719. }
  19720. }
  19721. if(num == 0){
  19722. this.isNoUserid = true;
  19723. var c = JSON.parse(JSON.stringify(z));
  19724. this.oldEnglishJson1 = c;
  19725. }else{
  19726. this.isNoUserid = false;
  19727. }
  19728. var b = a.sort((item, index) => {
  19729. console.log(item)
  19730. if (item.correct === this.userMes[0].userid) {
  19731. return -1; // 将a移到前面
  19732. } else if (index.correct === this.userMes[0].userid) {
  19733. return 1; // 将b移到前面
  19734. } else {
  19735. return 0; // 保持默认顺序
  19736. }
  19737. });
  19738. for(var p = 0;p<b.length;p++){
  19739. for(var y = 0;y<ppp.length;y++){
  19740. if(b[p].id == ppp[y].id){
  19741. b[p].cWork = JSON.parse(ppp[y].cWork);
  19742. break
  19743. }
  19744. }
  19745. }
  19746. this.newEnglishList1 = b;
  19747. }
  19748. }
  19749. this.greyType = false;
  19750. setTimeout(() => {
  19751. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19752. if(this.newEnglishList1.length > 0){
  19753. if(this.isNoUserid == true){
  19754. this.engListLength = this.newEnglishList1.length + 1;
  19755. this.newEngIndex = -1;
  19756. }else{
  19757. this.engListLength = this.newEnglishList1.length;
  19758. this.newEngIndex = 0;
  19759. }
  19760. }
  19761. if(this.userMes[0].type == 2){
  19762. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19763. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19764. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19765. }else if(this.newEngIndex == -1){
  19766. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19767. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19768. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19769. }
  19770. }, 500);
  19771. this.engUpdateDialogVisible = true;
  19772. this.$forceUpdate();
  19773. })
  19774. .catch((err) => {
  19775. console.error(err);
  19776. });
  19777. },
  19778. getPick() {
  19779. let params = {
  19780. cid: this.id,
  19781. };
  19782. this.ajax
  19783. .get(this.$store.state.api + "getPick", params)
  19784. .then((res) => {
  19785. let array = [];
  19786. for (var i = 0; i < res.data[0].length; i++) {
  19787. array.push(res.data[0][i].userid);
  19788. }
  19789. this.isPickStudent = array;
  19790. if (array.indexOf(this.userid) !== -1) {
  19791. this.$confirm("你被老师选到啦!", "提示", {
  19792. confirmButtonText: "确定",
  19793. showCancelButton: false,
  19794. closeOnClickModal: false,
  19795. type: "warning",
  19796. })
  19797. .then(() => {
  19798. let pa = [
  19799. {
  19800. uid: this.userid,
  19801. cid: this.id,
  19802. },
  19803. ];
  19804. this.ajax
  19805. .post(this.$store.state.api + "deletePick", pa)
  19806. .then((res) => {
  19807. this.getPick();
  19808. })
  19809. .catch((err) => {
  19810. this.$message.error("网络不佳");
  19811. console.error(err);
  19812. });
  19813. })
  19814. .catch(() => {});
  19815. }
  19816. })
  19817. .catch((err) => {
  19818. this.$message.error("网络不佳");
  19819. console.error(err);
  19820. });
  19821. },
  19822. foldEva() {
  19823. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19824. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19825. } else {
  19826. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19827. setTimeout(() => {
  19828. this.checkEva();
  19829. setTimeout(() => {
  19830. this.checkEva();
  19831. }, 500);
  19832. }, 0);
  19833. }
  19834. this.$forceUpdate();
  19835. },
  19836. panToolHeight(tool) {
  19837. var _tool = document.querySelectorAll('#'+tool)[0]
  19838. var _toolA = _tool ? _tool.offsetHeight : 0
  19839. var _toolC = 0
  19840. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19841. let boolean2 = (_toolA > _toolC) ? true : false
  19842. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19843. this.$forceUpdate();
  19844. },
  19845. async checkLink(url) {
  19846. // console.log(url)
  19847. let _url = url
  19848. try {
  19849. const response = await fetch(url);
  19850. if(!response.ok){
  19851. _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]))
  19852. }
  19853. // console.log(response.ok)
  19854. } catch (error) {
  19855. console.error('Error checking link:', error);
  19856. // console.log(false)
  19857. _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]))
  19858. }
  19859. // console.log(_url)
  19860. return _url
  19861. },
  19862. getScoreList(){
  19863. let params = {
  19864. cid: this.id,
  19865. };
  19866. this.ajax
  19867. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19868. .then((res) => {
  19869. let result = res.data;
  19870. this.scoreList.datalist = result[0];
  19871. this.scoreList.isScoreList = result[1];
  19872. })
  19873. .catch((err) => {
  19874. console.error(err);
  19875. });
  19876. },
  19877. setClassRoomHelperWidth(width){
  19878. this.classRoomHelperWidth = width
  19879. }
  19880. },
  19881. directives: {
  19882. // 使用局部注册指令的方式
  19883. resize: {
  19884. // 指令的名称
  19885. bind(el, binding) {
  19886. // el为绑定的元素,binding为绑定给指令的对象
  19887. let width = "",
  19888. height = "";
  19889. function isReize() {
  19890. const style = document.defaultView.getComputedStyle(el);
  19891. if (width !== style.width || height !== style.height) {
  19892. binding.value(); // 关键
  19893. }
  19894. width = style.width;
  19895. height = style.height;
  19896. }
  19897. el.__vueSetInterval__ = setInterval(isReize, 300);
  19898. },
  19899. unbind(el) {
  19900. clearInterval(el.__vueSetInterval__);
  19901. },
  19902. },
  19903. autoHeight: {
  19904. update(el, binding) {
  19905. const { value } = binding
  19906. if (value && typeof value === 'number') {
  19907. el.style.height = `${value}px`
  19908. } else {
  19909. el.style.height = 'auto'
  19910. }
  19911. },
  19912. componentUpdated(el) {
  19913. el.style.height = `${el.scrollHeight + 5}px`
  19914. },
  19915. },
  19916. },
  19917. beforeDestroy() {
  19918. window.onresize = null;
  19919. clearInterval(this.timer);
  19920. this.timer = null;
  19921. clearInterval(this.opertimer);
  19922. this.opertimer = null;
  19923. },
  19924. computed: {
  19925. getHeight(){
  19926. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19927. },
  19928. contentConvent() {
  19929. return function (c) {
  19930. return c
  19931. ? c
  19932. .replaceAll(/\r\n/g, "<br/>")
  19933. .replaceAll(/\n/g, "<br/>")
  19934. .replaceAll(/\s/g, " &nbsp")
  19935. : "";
  19936. };
  19937. },
  19938. MarkdownT() {
  19939. return function (c) {
  19940. let md = new MarkdownIt();
  19941. return c
  19942. ? md.render(c) : "";
  19943. };
  19944. },
  19945. commentRight(){
  19946. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  19947. return "35px";
  19948. }
  19949. return `calc(${this.classRoomHelperWidth} + 5px)`
  19950. // if(this.$refs["classRoomHelperRef"].type==0){
  19951. // return "100px";
  19952. // }else if(this.$refs["classRoomHelperRef"].type==1){
  19953. // return "502px"
  19954. // }else{
  19955. // return "0px"
  19956. // }
  19957. },
  19958. checkUpload() {
  19959. return function () {
  19960. var studentK = [];
  19961. if (this.plworkFile.length > 0) {
  19962. for (var z = 0; z < this.plworkFile.length; z++) {
  19963. studentK.push(this.plworkFile[z].username);
  19964. }
  19965. studentK = studentK.join(",");
  19966. }
  19967. var a = this.uploadStudentJuri.filter((el) => {
  19968. return studentK.indexOf(el.userid) == -1;
  19969. });
  19970. return a;
  19971. };
  19972. },
  19973. getSName() {
  19974. return function (name) {
  19975. var check = name;
  19976. this.uploadStudentJuri.forEach((el) => {
  19977. if (el.userid == check) {
  19978. check = el.name ? el.name : el.username;
  19979. }
  19980. });
  19981. return check;
  19982. };
  19983. },
  19984. getImgList() {
  19985. return function (val) {
  19986. let srcList = []; // 定义一个数组用来接收后面的img地址
  19987. val.replace(
  19988. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19989. function (match, capture) {
  19990. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19991. srcList.push(capture);
  19992. }
  19993. );
  19994. return srcList;
  19995. };
  19996. },
  19997. retrnToolHeight(){
  19998. return function (tool) {
  19999. var _tool = document.querySelectorAll('#'+tool)[0]
  20000. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20001. };
  20002. },
  20003. Correct() {
  20004. return function (c,d) {
  20005. let w = "";
  20006. let a = this.correctWord;
  20007. for(var k = 0;k<a.length;k++){
  20008. //diffWordsWithSpace
  20009. if(a.length > 1){
  20010. if(a[k].added == true){
  20011. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20012. }else if(a[k].removed == true){
  20013. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20014. }else{
  20015. w += '<span>' + a[k].value + '</span>';
  20016. }
  20017. }else{
  20018. w = c
  20019. }
  20020. console.log("👇👇!+++==")
  20021. console.log(w)
  20022. //diffChars方法
  20023. // if(w == ""){
  20024. // if(a.length > 1){
  20025. // if(a[k].added == true){
  20026. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20027. // }else if(a[k].removed == true){
  20028. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20029. // }
  20030. // }else{
  20031. // w = c
  20032. // }
  20033. // }else{
  20034. // if(k == a.length - 1){
  20035. // if(a[k].added == true){
  20036. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20037. // }else if(a[k].removed == true){
  20038. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20039. // }
  20040. // }else{
  20041. // if(a[k].added == true){
  20042. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20043. // }else if(a[k].removed == true){
  20044. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20045. // }
  20046. // }
  20047. // }
  20048. }
  20049. c = w;
  20050. return c;
  20051. };
  20052. },
  20053. },
  20054. mounted() {
  20055. document.body.addEventListener("click", (e) => {
  20056. if (this.isUpdateToolDetail1) {
  20057. this.updateToolDetail(this.toolDetailIndex);
  20058. }
  20059. });
  20060. if (this.screenType == 2) {
  20061. window.parent.postMessage({ allScreen: 4 }, "*");
  20062. } else if (this.screenType == 3) {
  20063. window.parent.postMessage({ allScreen: 5 }, "*");
  20064. } else if (this.screenType == 1) {
  20065. window.parent.postMessage({ allScreen: 6 }, "*");
  20066. }
  20067. this.setOperationTime();
  20068. this.selectEva();
  20069. this.getCourseDetail();
  20070. this.selectCount();
  20071. this.getHomeWork();
  20072. this.selectUser();
  20073. this.contentDialog = true;
  20074. this.setContent2(true);
  20075. if (this.tType == 4) {
  20076. this.pzDialog = true;
  20077. this.selectPz();
  20078. }
  20079. // 获取评分列表
  20080. this.getScoreList()
  20081. document.scrollingElement.scrollTop = 0;
  20082. window.addEventListener("resize", () => {
  20083. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20084. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20085. if (this.showType == 2 || this.showType == 3) {
  20086. document.getElementsByClassName("navBox")[0].style.height =
  20087. a - 40 + 0+ "px";
  20088. } else {
  20089. document.getElementsByClassName("navBox")[0].style.height =
  20090. a - 40 + "px";
  20091. }
  20092. });
  20093. let _this = this;
  20094. setTimeout(() => {
  20095. // _this.vedioTime = [];
  20096. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20097. // _this.vedioTime[i] = document.getElementsByClassName(
  20098. // "vjs-duration-display"
  20099. // )[i].textContent;
  20100. // }
  20101. }, 1000);
  20102. },
  20103. };
  20104. </script>
  20105. <style scoped>
  20106. @media screen and (max-width: 1280px) {
  20107. /* .courseIndex > div:first-child(2) {
  20108. width: 15% !important;
  20109. } */
  20110. /* .navText {
  20111. width: 120px !important;
  20112. } */
  20113. .evaCss {
  20114. flex-direction: column !important;
  20115. align-items: center !important;
  20116. }
  20117. .elist_input {
  20118. width: 90% !important;
  20119. }
  20120. .dialog_diy1 >>> .el-dialog {
  20121. width: 100% !important;
  20122. }
  20123. .rightWidthCss {
  20124. width: 100% !important;
  20125. }
  20126. .dialog_diy3 >>> .el-dialog {
  20127. width: 100% !important;
  20128. }
  20129. .addToolCss {
  20130. right: 0 !important;
  20131. width: 100% !important;
  20132. min-width: unset !important;
  20133. }
  20134. }
  20135. .evaCssMax {
  20136. flex-direction: column !important;
  20137. align-items: center !important;
  20138. }
  20139. .dialog_diy >>> .el-dialog {
  20140. margin-top: 10vh !important;
  20141. }
  20142. .body_student {
  20143. width: 77%;
  20144. height: 100%;
  20145. position: absolute;
  20146. left: 22%;
  20147. top: 0;
  20148. }
  20149. .student_head {
  20150. width: 100%;
  20151. margin: 20px auto 0;
  20152. padding-bottom: 20px;
  20153. display: flex;
  20154. flex-direction: column;
  20155. flex-wrap: nowrap;
  20156. align-items: flex-start;
  20157. justify-content: flex-start;
  20158. }
  20159. .pb_left {
  20160. width: 20%;
  20161. margin-right: 10px;
  20162. background: rgb(255, 255, 255);
  20163. position: fixed;
  20164. height: calc(100% - 40px);
  20165. border-radius: 20px;
  20166. padding-bottom: 15px;
  20167. box-sizing: border-box;
  20168. }
  20169. .wheel > img,
  20170. .project > img,
  20171. .star > img,
  20172. .evaluate > img,
  20173. .up_photo > img,
  20174. .chapter_add > img,
  20175. .deleteWord > img,
  20176. .question > img,
  20177. .homework > img {
  20178. width: 100%;
  20179. height: 100%;
  20180. }
  20181. .upCover > img {
  20182. width: 131px;
  20183. height: 69px;
  20184. object-fit: cover;
  20185. }
  20186. .upCover {
  20187. width: calc(100% / 3.5);
  20188. position: relative;
  20189. margin: 0 15px 10px 0;
  20190. display: flex;
  20191. flex-direction: column;
  20192. flex-wrap: nowrap;
  20193. justify-content: center;
  20194. align-content: center;
  20195. align-items: center;
  20196. height: fit-content;
  20197. }
  20198. .upCover2 {
  20199. width: 100%;
  20200. position: relative;
  20201. margin: 0 15px 10px 0;
  20202. display: flex;
  20203. flex-direction: column;
  20204. flex-wrap: nowrap;
  20205. justify-content: center;
  20206. align-content: center;
  20207. align-items: center;
  20208. }
  20209. .upCover2 > img {
  20210. width: 100%;
  20211. height: 90px;
  20212. object-fit: contain;
  20213. }
  20214. .chapter_add {
  20215. width: 120px;
  20216. position: relative;
  20217. text-align: center;
  20218. }
  20219. .isAddThings {
  20220. margin-top: 20px;
  20221. position: relative;
  20222. text-align: center;
  20223. background: #f7f8fa;
  20224. height: 90px;
  20225. width: 90px;
  20226. display: flex;
  20227. flex-direction: column;
  20228. justify-content: center;
  20229. }
  20230. .deleteWord {
  20231. width: 22px;
  20232. height: 22px;
  20233. position: absolute;
  20234. right: -5px;
  20235. top: -5px;
  20236. cursor: pointer;
  20237. }
  20238. .box_course {
  20239. /* width: 60%; */
  20240. width: calc(100% - 300px);
  20241. }
  20242. .wheel {
  20243. width: 100%;
  20244. /* height: 100%; */
  20245. height: 650px;
  20246. }
  20247. .right_box {
  20248. display: flex;
  20249. flex-direction: column;
  20250. margin-left: 30px;
  20251. justify-content: space-around;
  20252. }
  20253. .right_box_title {
  20254. font-size: 23px;
  20255. }
  20256. .people {
  20257. display: flex;
  20258. }
  20259. .student_body {
  20260. width: 100%;
  20261. margin: 0 auto;
  20262. margin-top: 10px;
  20263. padding: 0 0 20px;
  20264. }
  20265. .study_top {
  20266. margin-top: 100px;
  20267. width: 100%;
  20268. height: auto;
  20269. padding-bottom: 20px;
  20270. }
  20271. .study_top .checkbox {
  20272. display: flex;
  20273. align-items: center;
  20274. padding: 15px 0 15px 30px;
  20275. flex: 0 0 auto;
  20276. font-weight: bold;
  20277. border-bottom: 1px solid #eee;
  20278. }
  20279. .study_top .check {
  20280. padding-bottom: 5px;
  20281. text-align: center;
  20282. cursor: pointer;
  20283. height: 30px;
  20284. box-sizing: border-box;
  20285. display: flex;
  20286. }
  20287. .study_top .checked {
  20288. border-bottom: 4px solid #3fc6a0;
  20289. padding-bottom: 5px;
  20290. color: #3fc6a0;
  20291. display: flex;
  20292. height: 35px;
  20293. }
  20294. .study_top .checked > div,
  20295. .study_top .check > div {
  20296. margin-right: 5px;
  20297. }
  20298. .videoTop {
  20299. display: flex;
  20300. flex-direction: row;
  20301. justify-content: space-between;
  20302. background: #fff;
  20303. align-items: center;
  20304. width: 95%;
  20305. padding: 20px;
  20306. }
  20307. .filebox {
  20308. display: flex;
  20309. flex-wrap: wrap;
  20310. flex-direction: column;
  20311. padding: 0 0 5px;
  20312. position: relative;
  20313. }
  20314. .filebox:before {
  20315. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20316. position: absolute;
  20317. top: 20px;
  20318. left: 13px;
  20319. border-left: 2px dotted #cad1dc;
  20320. height: calc(100% - 15px);
  20321. }
  20322. .toolHeng2 > div:last-child::before {
  20323. height: calc(100% - 43px);
  20324. }
  20325. .filebox .tooldetail {
  20326. width: calc(100% - 280px);
  20327. margin: 0px 12px;
  20328. padding: 12px;
  20329. line-height: 30px;
  20330. word-break: break-word;
  20331. background: #ffffff;
  20332. border-radius: 8px 8px 8px 8px;
  20333. opacity: 1;
  20334. border: 1px solid #cad1dc;
  20335. overflow:hidden;
  20336. box-sizing:border-box;
  20337. }
  20338. .file {
  20339. display: flex;
  20340. flex-direction: column;
  20341. align-items: center;
  20342. justify-content: center;
  20343. cursor: pointer;
  20344. width: 200px;
  20345. }
  20346. .file div {
  20347. margin-top: 10px;
  20348. width: 150px;
  20349. text-align: center;
  20350. overflow: hidden;
  20351. white-space: nowrap;
  20352. text-overflow: ellipsis;
  20353. }
  20354. .media {
  20355. display: flex;
  20356. flex-direction: column;
  20357. align-items: center;
  20358. justify-content: center;
  20359. margin: 0 20px 20px 0;
  20360. cursor: pointer;
  20361. margin: 12px 0 5px 15px;
  20362. overflow: hidden;
  20363. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20364. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20365. box-sizing: border-box;
  20366. }
  20367. .media img {
  20368. height: 90px;
  20369. width: 160px;
  20370. object-fit: cover;
  20371. }
  20372. .media .title {
  20373. padding: 5px;
  20374. text-align: left;
  20375. width: 100%;
  20376. box-sizing: border-box;
  20377. }
  20378. .media .btn {
  20379. width: 100%;
  20380. height: 35px;
  20381. line-height: 35px;
  20382. color: #fff;
  20383. background: #606060;
  20384. text-align: center;
  20385. overflow: hidden;
  20386. white-space: nowrap;
  20387. text-overflow: ellipsis;
  20388. }
  20389. .detail_content_top {
  20390. width: 100%;
  20391. padding: 25px 0 25px 0;
  20392. }
  20393. .detail_title {
  20394. text-align: center;
  20395. font-size: 24px;
  20396. }
  20397. .detail_time {
  20398. font-size: 13px;
  20399. padding: 15px 0 0 40px;
  20400. }
  20401. .detail_content {
  20402. line-height: 2pc;
  20403. width: 90%;
  20404. margin: 0 auto;
  20405. padding-top: 30px;
  20406. text-indent: 30px;
  20407. overflow: auto;
  20408. height: 200px;
  20409. }
  20410. .score_box >>> .el-rate {
  20411. margin-left: 10px;
  20412. }
  20413. .dialog_change >>> .el-dialog {
  20414. border-radius: 5px;
  20415. }
  20416. .dialog_change >>> .el-dialog__header {
  20417. background: #f2f2f2;
  20418. text-align: center;
  20419. }
  20420. .dialog_change >>> .el-dialog__title {
  20421. line-height: 5px;
  20422. }
  20423. .dialog_change >>> .el-dialog__body {
  20424. background: #fff;
  20425. padding: 10px 20px;
  20426. }
  20427. .score_box {
  20428. display: flex;
  20429. align-items: center;
  20430. margin-bottom: 18px;
  20431. margin-top: 20px;
  20432. }
  20433. .up_photo {
  20434. width: 120px;
  20435. cursor: pointer;
  20436. margin-top: 10px;
  20437. }
  20438. .up_photo2 {
  20439. width: 180px;
  20440. box-sizing: border-box;
  20441. min-width: 180px;
  20442. height: 180px;
  20443. max-height: 180px;
  20444. min-height: 180px;
  20445. cursor: pointer;
  20446. display: flex;
  20447. flex-direction: column;
  20448. align-items: center;
  20449. justify-content: center;
  20450. background: rgb(242, 246, 255);
  20451. /* padding: 25px; */
  20452. margin-bottom: 10px;
  20453. }
  20454. .up_photo2 img {
  20455. width: 50%;
  20456. height: auto;
  20457. }
  20458. .up_photo2 span {
  20459. color: #898989;
  20460. }
  20461. .plworkBox {
  20462. display: flex;
  20463. align-items: center;
  20464. margin-top: 10px;
  20465. flex-wrap: wrap;
  20466. }
  20467. .upload_send {
  20468. margin: 30px auto 30px;
  20469. width: 60%;
  20470. background: #3681fc;
  20471. text-align: center;
  20472. height: 35px;
  20473. line-height: 35px;
  20474. color: #fff;
  20475. border-radius: 5px;
  20476. cursor: pointer;
  20477. }
  20478. .marginT {
  20479. margin-top: 20px;
  20480. }
  20481. .cd_content_steps {
  20482. display: flex;
  20483. width: 90%;
  20484. justify-content: space-around;
  20485. border-top: 1px solid #eeeeee;
  20486. }
  20487. .cd_steps_box {
  20488. display: flex;
  20489. justify-content: center;
  20490. align-items: center;
  20491. flex-direction: column;
  20492. cursor: pointer;
  20493. }
  20494. .first {
  20495. display: flex;
  20496. align-items: center;
  20497. margin: 15px 0 20px 0;
  20498. font-size: 20px;
  20499. }
  20500. .first > div:nth-child(2) {
  20501. font-size: 16px !important;
  20502. padding-left: 10px;
  20503. line-height: 26px;
  20504. box-sizing: border-box;
  20505. }
  20506. .blue_box_one {
  20507. text-align: center;
  20508. color: #fff;
  20509. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20510. border-radius: 7px;
  20511. margin: 10px;
  20512. cursor: pointer;
  20513. width: 95%;
  20514. height: 45px;
  20515. display: flex;
  20516. flex-direction: row;
  20517. justify-content: flex-start;
  20518. align-items: center;
  20519. }
  20520. .blue_box_one > div:nth-child(1) {
  20521. line-height: 30px;
  20522. margin: 0 5px 0 10px;
  20523. width: 30%;
  20524. min-width: 70px;
  20525. border-radius: 4px;
  20526. }
  20527. .blue_box_one > div:nth-child(2) {
  20528. white-space: nowrap;
  20529. text-overflow: ellipsis;
  20530. overflow: hidden;
  20531. word-break: break-all;
  20532. width: 70%;
  20533. text-align: left;
  20534. margin-right: 10px;
  20535. max-width: calc(100% - 85px);
  20536. }
  20537. .blue_box_one > div:nth-child(2):hover {
  20538. overflow: hidden;
  20539. text-overflow: ellipsis;
  20540. white-space: nowrap;
  20541. cursor: pointer;
  20542. }
  20543. .upFile {
  20544. margin: 0 auto;
  20545. width: 120px;
  20546. background: #3681fc;
  20547. color: #fff;
  20548. height: 30px;
  20549. text-align: center;
  20550. line-height: 30px;
  20551. border-radius: 5px;
  20552. font-size: 14px;
  20553. cursor: pointer;
  20554. }
  20555. .courseTitle {
  20556. width: 85%;
  20557. margin: 10px auto 26px auto;
  20558. display: flex;
  20559. flex-direction: row;
  20560. align-items: center;
  20561. justify-content: space-between;
  20562. text-align: center;
  20563. }
  20564. .courseTitle .ctitle {
  20565. font-size: 20px;
  20566. font-weight: bold;
  20567. color: #0e1e33;
  20568. white-space: nowrap;
  20569. overflow: hidden;
  20570. text-overflow: ellipsis;
  20571. }
  20572. .inviteBox {
  20573. font-size: 14px;
  20574. /* margin-top: 5px; */
  20575. color: #00000099;
  20576. text-align: center;
  20577. }
  20578. .courseTitle >>> .el-tooltip {
  20579. width: 100%;
  20580. white-space: nowrap;
  20581. overflow: hidden;
  20582. text-overflow: ellipsis;
  20583. word-break: break-word;
  20584. }
  20585. .ml {
  20586. margin-left: 20px;
  20587. color: #5b7dba;
  20588. border-left: 3px solid #5b7dba;
  20589. padding-left: 5px;
  20590. font-weight: bold;
  20591. }
  20592. .return {
  20593. width: 2rem;
  20594. height: 2rem;
  20595. cursor: pointer;
  20596. }
  20597. .return > img {
  20598. width: 100%;
  20599. height: 100%;
  20600. }
  20601. .returnBtn {
  20602. width: 86px;
  20603. height: 36px;
  20604. background: #3681fc;
  20605. border-radius: 4px;
  20606. color: #fff;
  20607. text-align: center;
  20608. line-height: 36px;
  20609. margin-right: 20px;
  20610. cursor: pointer;
  20611. font-size: 14px;
  20612. font-weight: 400;
  20613. display: flex;
  20614. flex-direction: row;
  20615. flex-wrap: nowrap;
  20616. align-items: center;
  20617. justify-content: center;
  20618. }
  20619. .reBtnIcon,
  20620. .commentIcon,
  20621. .vedioIcon,
  20622. .vedioIcon1 {
  20623. /* width: 36px; */
  20624. height: 36px;
  20625. border-radius: 4px;
  20626. position: relative;
  20627. /* background: #e0eafb; */
  20628. background: #0061ff;
  20629. cursor: pointer;
  20630. margin-right: 12px;
  20631. display: flex;
  20632. align-items: center;
  20633. padding: 0 10px;
  20634. box-sizing: border-box;
  20635. font-size: 14px;
  20636. color: #fff;
  20637. }
  20638. .reBtnIcon::before,
  20639. .commentIcon::before,
  20640. .vedioIcon::before,
  20641. .vedioIcon1::before {
  20642. content: "";
  20643. display: block;
  20644. background-size: 100% 100%;
  20645. background-repeat: no-repeat;
  20646. width: 20px;
  20647. height: 20px;
  20648. margin-right: 5px;
  20649. /* position: absolute; */
  20650. /* top: 8px;
  20651. left: 8px; */
  20652. }
  20653. .vedioIcon1 {
  20654. background: #f63564;
  20655. }
  20656. .reBtnIcon::before {
  20657. background-image: url("../../assets/icon/newIcons/refresh.png");
  20658. }
  20659. .commentIcon::before {
  20660. background-image: url("../../assets/icon/newIcons/comment.png");
  20661. }
  20662. .vedioIcon::before {
  20663. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20664. }
  20665. .vedioIcon1::before {
  20666. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  20667. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20668. }
  20669. .tool {
  20670. display: flex;
  20671. flex-direction: column;
  20672. flex-wrap: nowrap;
  20673. width: 13%;
  20674. margin: 0 30px;
  20675. align-items: center;
  20676. position: relative;
  20677. padding: 10px 25px;
  20678. cursor: pointer;
  20679. }
  20680. .whiteBIcon {
  20681. width: 150px;
  20682. }
  20683. .whiteBIcon > img {
  20684. width: 100%;
  20685. height: 100%;
  20686. }
  20687. .mask {
  20688. background-color: rgba(0, 0, 0, 0);
  20689. position: fixed;
  20690. top: 0;
  20691. left: 0;
  20692. width: 100%;
  20693. height: 100%;
  20694. z-index: 20000;
  20695. display: flex;
  20696. align-items: center;
  20697. justify-content: center;
  20698. }
  20699. .progressBox {
  20700. width: 500px;
  20701. height: 180px;
  20702. background: #fff;
  20703. border-radius: 10px;
  20704. box-shadow: 0 0 6px 1px #bfbfbf;
  20705. display: flex;
  20706. align-items: center;
  20707. justify-content: center;
  20708. flex-direction: column;
  20709. position: relative;
  20710. color: #6c6c6c;
  20711. }
  20712. .progressBox >>> .el-progress-bar__outer {
  20713. background-color: #d1dfff !important;
  20714. }
  20715. .progressBox .lbox {
  20716. height: 50px;
  20717. font-size: 19px;
  20718. display: flex;
  20719. align-items: center;
  20720. color: #747474;
  20721. }
  20722. .progressBox .lbox img {
  20723. width: 40px;
  20724. margin-right: 20px;
  20725. }
  20726. .closeCss {
  20727. position: absolute;
  20728. top: 8px;
  20729. right: 8px;
  20730. cursor: pointer;
  20731. width: 20px;
  20732. height: 20px;
  20733. }
  20734. .closeCss > img {
  20735. width: 100%;
  20736. height: 100%;
  20737. }
  20738. .uploadVedio {
  20739. display: flex;
  20740. flex-direction: column;
  20741. flex-wrap: nowrap;
  20742. justify-content: center;
  20743. align-items: center;
  20744. margin: 0 15px 10px 0;
  20745. }
  20746. .uploadVedio > img {
  20747. width: 30px;
  20748. height: 30px;
  20749. }
  20750. .uploadVedio > span {
  20751. white-space: nowrap;
  20752. overflow: hidden;
  20753. text-overflow: ellipsis;
  20754. width: 75px;
  20755. margin-top: 7px;
  20756. }
  20757. .picName {
  20758. white-space: nowrap;
  20759. overflow: hidden;
  20760. text-overflow: ellipsis;
  20761. width: 75px;
  20762. margin-top: 7px;
  20763. }
  20764. .new_top {
  20765. display: flex;
  20766. background: #fff;
  20767. flex-direction: row;
  20768. justify-content: flex-start;
  20769. align-items: center;
  20770. height: 60px;
  20771. position: fixed;
  20772. top: 20px;
  20773. left: 22%;
  20774. width: 77%;
  20775. z-index: 999;
  20776. border-radius: 12px 12px 0 0;
  20777. border-bottom: 1px solid #cad1dc;
  20778. padding: 10px 0;
  20779. }
  20780. .new_topFixed {
  20781. width: 100%;
  20782. height: 40px;
  20783. position: fixed;
  20784. top: 0px;
  20785. display: block;
  20786. background: #f2f2f2;
  20787. z-index: 998;
  20788. }
  20789. .before {
  20790. position: absolute;
  20791. background: #c3dad4;
  20792. width: 6px;
  20793. height: 100%;
  20794. }
  20795. .courseIndex {
  20796. display: flex;
  20797. flex-direction: row;
  20798. align-items: center;
  20799. width: calc(100% - 745px);
  20800. }
  20801. .courseIndex > div:nth-child(1) {
  20802. margin: 0 0 0 10px;
  20803. font-size: 20px;
  20804. min-width: 100px;
  20805. font-weight: bold;
  20806. border-left: 4px solid #3363b9;
  20807. height: 32px;
  20808. text-align: center;
  20809. line-height: 35px;
  20810. }
  20811. .courseIndex > div:nth-child(2) {
  20812. font-size: 20px;
  20813. /* width: 300px; */
  20814. max-width: calc(100% - 105px);
  20815. white-space: nowrap;
  20816. overflow: hidden;
  20817. text-overflow: ellipsis;
  20818. }
  20819. .courseIndex > div:nth-child(3) {
  20820. border-bottom: 1px solid #d7d7d7;
  20821. padding-bottom: 5px;
  20822. background: #3681fc;
  20823. width: 55px;
  20824. min-width: 55px;
  20825. border-radius: 5px;
  20826. color: #fff;
  20827. text-align: center;
  20828. height: 20px;
  20829. line-height: 26px;
  20830. font-size: 14px;
  20831. margin: 0 0 0 10px;
  20832. }
  20833. .course_text {
  20834. padding: 20px 0 0 15px;
  20835. text-indent: 30px;
  20836. width: 80%;
  20837. min-height: 20px;
  20838. }
  20839. .vedioList {
  20840. background: #f2f2f2;
  20841. border: 1px solid #ececec;
  20842. /* width: 38.8%; */
  20843. /* width: 300px; */
  20844. width: 100%;
  20845. height: 445px;
  20846. border-radius: 10px;
  20847. overflow: hidden;
  20848. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20849. }
  20850. .vedioNav {
  20851. margin: 10px 0 0 15px;
  20852. border-bottom: 1px solid #d7d7d7;
  20853. padding-bottom: 5px;
  20854. background: #3681fc;
  20855. width: 55px;
  20856. min-width: 55px;
  20857. border-radius: 5px;
  20858. color: #fff;
  20859. text-align: center;
  20860. height: 20px;
  20861. line-height: 26px;
  20862. font-size: 14px;
  20863. }
  20864. .queTop {
  20865. display: flex;
  20866. padding: 20px 0 20px 30px;
  20867. width: 100%;
  20868. flex-direction: row;
  20869. justify-content: flex-start;
  20870. align-items: center;
  20871. box-sizing: border-box;
  20872. }
  20873. .queTopTitle {
  20874. display: flex;
  20875. flex-direction: row;
  20876. flex-wrap: nowrap;
  20877. align-items: center;
  20878. font-weight: bold;
  20879. font-size: 20px;
  20880. color: rgb(14, 30, 51);
  20881. }
  20882. .queTopTitle::before {
  20883. content: "";
  20884. width: 2px;
  20885. height: 22px;
  20886. background: #3681fc;
  20887. border-radius: 3px;
  20888. display: block;
  20889. margin: 2px 6px 0 0;
  20890. }
  20891. .queTopRight {
  20892. display: flex;
  20893. flex-direction: row;
  20894. flex-wrap: nowrap;
  20895. align-items: center;
  20896. }
  20897. .queTopClose {
  20898. margin-right: 20px;
  20899. cursor: pointer;
  20900. position: relative;
  20901. display: flex;
  20902. }
  20903. .closeImg,
  20904. .openImg {
  20905. width: 25px;
  20906. height: 25px;
  20907. position: absolute;
  20908. left: -20px;
  20909. top: -1px;
  20910. }
  20911. .closeImg > img,
  20912. .openImg > img {
  20913. width: 100%;
  20914. height: 100%;
  20915. }
  20916. .question {
  20917. width: 40px;
  20918. margin-right: 10px;
  20919. margin-top: 7px;
  20920. }
  20921. .queTitle {
  20922. margin-left: 5px;
  20923. font-size: 25px;
  20924. display: flex;
  20925. align-items: center;
  20926. }
  20927. .addEditor {
  20928. width: 100px;
  20929. height: 30px;
  20930. background: #42cda6;
  20931. color: #fff;
  20932. border-radius: 5px;
  20933. text-align: center;
  20934. line-height: 30px;
  20935. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20936. cursor: pointer;
  20937. }
  20938. /* .vedioName {
  20939. cursor: pointer;
  20940. margin: 0px 0px 10px 5px;
  20941. white-space: nowrap;
  20942. overflow: hidden;
  20943. text-overflow: ellipsis;
  20944. width: 100%;
  20945. } */
  20946. .vedioTime {
  20947. width: 35px;
  20948. position: absolute;
  20949. color: #fff;
  20950. bottom: 0px;
  20951. right: 0px;
  20952. text-align: center;
  20953. background: #46411f;
  20954. height: 20px;
  20955. font-size: 14px;
  20956. line-height: 20px;
  20957. }
  20958. .homework {
  20959. width: 200px;
  20960. display: flex;
  20961. flex-direction: column;
  20962. flex-wrap: nowrap;
  20963. align-items: center;
  20964. cursor: pointer;
  20965. }
  20966. .homebox {
  20967. display: flex;
  20968. flex-wrap: wrap;
  20969. flex-direction: row;
  20970. justify-content: flex-start;
  20971. align-items: center;
  20972. padding: 15px 0;
  20973. }
  20974. .isChooseActive {
  20975. color: #3681fc !important;
  20976. font-weight: bold !important;
  20977. }
  20978. .chooseWho {
  20979. display: flex;
  20980. width: 100%;
  20981. flex-direction: row;
  20982. flex-wrap: nowrap;
  20983. justify-content: flex-start;
  20984. padding-bottom: 10px;
  20985. }
  20986. .chooseWho > div {
  20987. cursor: pointer;
  20988. padding-bottom: 10px;
  20989. margin: 0 30px 0 0;
  20990. font-weight: 400;
  20991. color: #0e1e33;
  20992. }
  20993. .addPoint > div > img {
  20994. cursor: pointer;
  20995. width: 85px;
  20996. border-radius: 15px;
  20997. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20998. }
  20999. .addPoint > div {
  21000. display: flex;
  21001. flex-direction: column;
  21002. flex-wrap: nowrap;
  21003. align-items: center;
  21004. }
  21005. .isBorder > div {
  21006. margin: 0 0 10px 0;
  21007. align-items: flex-start !important;
  21008. }
  21009. .noiframeBox {
  21010. display: flex;
  21011. flex-wrap: wrap;
  21012. }
  21013. .iframeBox iframe {
  21014. width: 100%;
  21015. height: 800px;
  21016. border: none;
  21017. margin-bottom: 20px;
  21018. border: 1px solid #ccc;
  21019. }
  21020. .upload_toolBtn {
  21021. background: #3681fc;
  21022. color: #fff;
  21023. width: 110px;
  21024. text-align: center;
  21025. height: 35px;
  21026. line-height: 35px;
  21027. font-size: 14px;
  21028. border-radius: 5px;
  21029. cursor: pointer;
  21030. position: absolute;
  21031. right: 10px;
  21032. bottom: 0;
  21033. }
  21034. .binfo_input,
  21035. .pj {
  21036. font: inherit;
  21037. color: currentColor;
  21038. width: 100%;
  21039. margin: 0;
  21040. padding: 15px 14px;
  21041. display: block;
  21042. min-width: 0;
  21043. outline: none;
  21044. box-sizing: content-box;
  21045. background: none;
  21046. -webkit-tap-highlight-color: transparent;
  21047. border: 1px solid rgba(0, 0, 0, 0.23);
  21048. border-radius: 4px;
  21049. box-sizing: border-box;
  21050. resize: none;
  21051. }
  21052. .binfo_input:focus-visible {
  21053. border: 1px solid rgba(61, 103, 188);
  21054. }
  21055. .dialog_diy >>> .el-dialog__header,
  21056. .dialog_diy1 >>> .el-dialog__header {
  21057. background: #454545 !important;
  21058. padding: 15px 20px;
  21059. }
  21060. .dialog_diy >>> .el-dialog__title,
  21061. .dialog_diy1 >>> .el-dialog__title {
  21062. color: #fff;
  21063. }
  21064. .dialog_diy >>> .el-dialog__headerbtn,
  21065. .dialog_diy1 >>> .el-dialog__headerbtn {
  21066. top: 19px;
  21067. }
  21068. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21069. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21070. color: #fff;
  21071. }
  21072. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21073. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21074. color: #fff;
  21075. }
  21076. .dialog_diy1 >>> .el-dialog__body {
  21077. padding: 0;
  21078. }
  21079. .dialog_diy >>> .el-dialog__body,
  21080. .dialog_diy >>> .el-dialog__footer,
  21081. .dialog_diy1 >>> .el-dialog__footer {
  21082. background: #fafafa;
  21083. }
  21084. .a_addBox {
  21085. padding: 0 0 0 15px;
  21086. }
  21087. .a_add_box {
  21088. padding: 10px;
  21089. background: #fff;
  21090. margin-bottom: 10px;
  21091. border-radius: 5px;
  21092. box-shadow: 0 0 5px 0 #d5d5d5;
  21093. }
  21094. .a_add_head {
  21095. display: flex;
  21096. align-items: flex-start;
  21097. /* justify-content: space-between; */
  21098. flex-direction: column;
  21099. /* flex-direction: row; */
  21100. margin: 10px 0 20px 0;
  21101. font-size: 18px;
  21102. width: 100%;
  21103. }
  21104. .askIndex {
  21105. background: #3681fc;
  21106. border-radius: 50%;
  21107. color: #fff;
  21108. width: 25px;
  21109. height: 25px;
  21110. min-width: 25px;
  21111. min-height: 25px;
  21112. text-align: center;
  21113. line-height: 25px;
  21114. margin-right: 5px;
  21115. }
  21116. .a_add_head .a_add_head_input {
  21117. width: 300px;
  21118. }
  21119. .a_add_head .a_add_head_div {
  21120. display: flex;
  21121. align-items: center;
  21122. justify-content: space-between;
  21123. }
  21124. .a_add_body {
  21125. display: flex;
  21126. align-items: center;
  21127. }
  21128. .a_add_input {
  21129. display: flex;
  21130. align-items: center;
  21131. flex-wrap: wrap;
  21132. width: 100%;
  21133. }
  21134. .a_add_input >>> .el-radio-group,
  21135. .a_add_input >>> .el-checkbox-group {
  21136. width: 100%;
  21137. }
  21138. .a_add_input >>> .el-radio,
  21139. .a_add_input >>> .el-checkbox {
  21140. display: flex;
  21141. flex-direction: row;
  21142. flex-wrap: nowrap;
  21143. align-items: center;
  21144. padding: 15px 0;
  21145. }
  21146. .a_add_input >>> .el-radio:not(:last-child),
  21147. .a_add_input >>> .el-checkbox:not(:last-child) {
  21148. width: 100%;
  21149. border-bottom: 1px solid #efefef;
  21150. }
  21151. .redioStyle >>> .el-radio__label {
  21152. font-size: 18px;
  21153. }
  21154. .redioStyle >>> .el-radio__label > span,
  21155. .redioStyle >>> .el-checkbox__label > span {
  21156. word-break: break-all;
  21157. white-space: normal;
  21158. }
  21159. .redioStyle >>> .el-checkbox__label {
  21160. font-size: 18px;
  21161. }
  21162. .toolHeng2 {
  21163. width: 100%;
  21164. padding-left: 37px;
  21165. box-sizing: border-box;
  21166. }
  21167. .workNav {
  21168. font-size: 20px;
  21169. font-weight: bold;
  21170. color: #0e1e33;
  21171. display: flex;
  21172. flex-direction: row;
  21173. flex-wrap: nowrap;
  21174. align-items: center;
  21175. padding: 15px 0 15px 0;
  21176. }
  21177. .workNav::before {
  21178. content: "";
  21179. width: 2px;
  21180. height: 22px;
  21181. background: #3681fc;
  21182. border-radius: 3px;
  21183. display: block;
  21184. margin: 2px 6px 0 0;
  21185. }
  21186. .toolHeng {
  21187. display: flex;
  21188. flex-direction: row;
  21189. flex-wrap: wrap;
  21190. justify-content: flex-start;
  21191. align-items: center;
  21192. width: 100%;
  21193. }
  21194. .toolHeng > div {
  21195. padding-left: 20px;
  21196. }
  21197. .isWidth {
  21198. width: 20%;
  21199. }
  21200. .textTitle {
  21201. display: flex;
  21202. flex-direction: row;
  21203. flex-wrap: nowrap;
  21204. align-items: center;
  21205. width: 95%;
  21206. }
  21207. .textTitle >>> .el-form-item__label {
  21208. font-size: 22px;
  21209. color: #918f8f;
  21210. width: 100px;
  21211. }
  21212. .textTitle >>> .el-form-item__content {
  21213. width: calc(100% - 100px);
  21214. }
  21215. .textCss >>> .el-dialog {
  21216. width: 800px !important;
  21217. height: 400px;
  21218. background: #fafafa;
  21219. }
  21220. .textCss >>> .el-dialog__body {
  21221. margin: 55px 8% 0 8%;
  21222. padding: 0 !important;
  21223. }
  21224. .textCss >>> .el-dialog__footer {
  21225. padding-top: 38px;
  21226. }
  21227. .toolsCss >>> .el-dialog__body {
  21228. padding: 20px;
  21229. }
  21230. .lineCss >>> .el-dialog__body {
  21231. display: flex;
  21232. flex-direction: row;
  21233. align-items: center;
  21234. justify-content: center;
  21235. }
  21236. .newNav {
  21237. display: flex;
  21238. flex-direction: row;
  21239. align-items: baseline;
  21240. justify-content: flex-start;
  21241. }
  21242. .navListItem {
  21243. width: calc(100% - 20px);
  21244. height: 50px;
  21245. margin: 0px auto 10px;
  21246. display: flex;
  21247. flex-direction: row;
  21248. flex-wrap: nowrap;
  21249. align-items: center;
  21250. justify-content: space-between;
  21251. background: #f0f4fa;
  21252. border-radius: 6px 6px 6px 6px;
  21253. }
  21254. .navText {
  21255. cursor: pointer;
  21256. white-space: nowrap;
  21257. overflow: hidden;
  21258. text-overflow: ellipsis;
  21259. width: 220px;
  21260. padding: 0 10px;
  21261. font-weight: 400;
  21262. color: #0e1e33;
  21263. }
  21264. .downIcon {
  21265. width: 20px;
  21266. min-width: 20px;
  21267. height: 20px;
  21268. margin-right: 15px;
  21269. cursor: pointer;
  21270. }
  21271. .downIcon > img {
  21272. width: 100%;
  21273. height: 100%;
  21274. }
  21275. .noVedio {
  21276. display: flex;
  21277. flex-direction: row;
  21278. justify-content: center;
  21279. align-content: center;
  21280. }
  21281. .noNavText {
  21282. cursor: pointer;
  21283. margin: 0px 0px 10px 5px;
  21284. width: 112px;
  21285. }
  21286. .listNoVedio {
  21287. margin: 0 0 0 30px;
  21288. width: 97%;
  21289. }
  21290. .video-player >>> .video-js {
  21291. height: 100%;
  21292. }
  21293. .hangVedioList {
  21294. width: 90% !important;
  21295. height: 150px !important;
  21296. margin: 20px 0 0 30px;
  21297. }
  21298. .hangVedio {
  21299. width: 100%;
  21300. height: 170px !important;
  21301. align-items: flex-start !important;
  21302. }
  21303. .hangHand {
  21304. height: 150px !important;
  21305. }
  21306. .twoChild {
  21307. width: 95%;
  21308. margin: 10px;
  21309. border-radius: 5px;
  21310. background: #f2f2f2;
  21311. display: flex;
  21312. flex-direction: column;
  21313. flex-wrap: nowrap;
  21314. justify-content: flex-start;
  21315. align-items: flex-start;
  21316. transition: all 0.5s;
  21317. overflow: hidden;
  21318. height: 0;
  21319. background: #e7f3ff;
  21320. }
  21321. .twoChild > div:nth-child(1) {
  21322. margin-top: 5px;
  21323. }
  21324. .navChild {
  21325. width: 100%;
  21326. cursor: pointer;
  21327. margin-bottom: 10px;
  21328. position: relative;
  21329. }
  21330. .navChild img {
  21331. position: absolute;
  21332. right: 11px;
  21333. width: 15px;
  21334. top: 50%;
  21335. transform: translateY(-50%);
  21336. }
  21337. .navActive,
  21338. .toolActive {
  21339. height: auto !important;
  21340. overflow: auto !important;
  21341. /* padding-bottom: 16px; */
  21342. }
  21343. .toolActive {
  21344. padding: 0;
  21345. }
  21346. .navTask {
  21347. display: flex;
  21348. flex-direction: row;
  21349. flex-wrap: nowrap;
  21350. align-items: center;
  21351. align-content: flex-start;
  21352. height: 40px;
  21353. justify-content: flex-start;
  21354. padding: 0 10px;
  21355. width: 100%;
  21356. box-sizing: border-box;
  21357. }
  21358. .navTaskname {
  21359. white-space: nowrap;
  21360. text-overflow: ellipsis;
  21361. overflow: hidden;
  21362. word-break: break-all;
  21363. padding-left: 5px;
  21364. }
  21365. .openTaskActive {
  21366. /* background-color: #e0eafb !important;
  21367. color: #0061ff; */
  21368. color:#fff;
  21369. background: rgb(55, 129, 252) !important;
  21370. }
  21371. .iframeName {
  21372. margin: 5px 0;
  21373. border-left: 4px solid #41c4a4;
  21374. padding-left: 4px;
  21375. }
  21376. .toolTitle {
  21377. margin: 0px 0px 20px;
  21378. font-size: 20px;
  21379. font-weight: 500;
  21380. border-left: 4px solid #41c4a4;
  21381. padding-left: 4px;
  21382. }
  21383. .cru_selectBox {
  21384. overflow: auto;
  21385. width: 95%;
  21386. margin: 17px auto 0;
  21387. height: calc(100% - 40px - 21px - 20px - 17px);
  21388. background: #fff;
  21389. border-radius: 8px;
  21390. }
  21391. .cru_selectBox::-webkit-scrollbar,
  21392. .study_top::-webkit-scrollbar,
  21393. .textContent::-webkit-scrollbar {
  21394. /*滚动条整体样式*/
  21395. width: 6px;
  21396. /*高宽分别对应横竖滚动条的尺寸*/
  21397. height: 6px;
  21398. }
  21399. /*定义滚动条轨道 内阴影+圆角*/
  21400. .cru_selectBox::-webkit-scrollbar-track,
  21401. .study_top::-webkit-scrollbar-track,
  21402. .textContent::-webkit-scrollbar {
  21403. border-radius: 10px;
  21404. background-color: #b8bdc9;
  21405. }
  21406. /*定义滑块 内阴影+圆角*/
  21407. .cru_selectBox::-webkit-scrollbar-thumb,
  21408. .study_top::-webkit-scrollbar-thumb,
  21409. .textContent::-webkit-scrollbar-thumb {
  21410. border-radius: 10px;
  21411. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21412. background-color: #2c5ab3;
  21413. }
  21414. .vedioBox {
  21415. border-radius: 0 0 20px 20px;
  21416. background: #fff;
  21417. overflow: auto;
  21418. }
  21419. .taskBox {
  21420. width: 98%;
  21421. background: #f0f4fa;
  21422. margin: 10px auto;
  21423. padding: 0 10px;
  21424. border-radius: 4px;
  21425. box-sizing: border-box;
  21426. }
  21427. .vedioTaskBox {
  21428. width: 100%;
  21429. display: flex;
  21430. flex-direction: row;
  21431. flex-wrap: nowrap;
  21432. align-items: flex-start;
  21433. position: relative;
  21434. }
  21435. .toolBox {
  21436. margin: 15px 0 0 25px;
  21437. display: flex;
  21438. position: relative;
  21439. padding: 18px 20px;
  21440. border-top-left-radius: 5px;
  21441. border-top-right-radius: 5px;
  21442. width: 90%;
  21443. }
  21444. .btnAll {
  21445. position: absolute;
  21446. right: 0;
  21447. display: flex;
  21448. flex-direction: row;
  21449. flex-wrap: nowrap;
  21450. align-items: center;
  21451. }
  21452. .btnLeft,
  21453. .btnRight {
  21454. display: flex;
  21455. flex-direction: row;
  21456. flex-wrap: nowrap;
  21457. align-items: center;
  21458. padding: 5px 0;
  21459. }
  21460. .btnLeft {
  21461. border-right: 1px solid #cad1dc;
  21462. }
  21463. .btnLeft > .custom-tooltip {
  21464. background: #3681fc;
  21465. color: #fff;
  21466. }
  21467. .last:hover {
  21468. background: #3383fa !important;
  21469. color: #fff;
  21470. border: 1px solid #3383fa !important;
  21471. }
  21472. .last,
  21473. .returnBtn1 {
  21474. width: 90px;
  21475. height: 36px;
  21476. background: #ffffff;
  21477. border-radius: 4px;
  21478. border: 1px solid #0061ff;
  21479. color: #0061ff;
  21480. cursor: pointer;
  21481. display: flex;
  21482. flex-direction: row;
  21483. flex-wrap: nowrap;
  21484. align-items: center;
  21485. justify-content: center;
  21486. margin-left: 12px;
  21487. }
  21488. .returnBtn1 {
  21489. background: #f0f4fa;
  21490. border-radius: 4px;
  21491. border: 1px solid #cad1dc;
  21492. margin: 0 12px;
  21493. }
  21494. .lastImg {
  21495. min-width: 15px;
  21496. width: 15px;
  21497. height: 15px;
  21498. display: flex;
  21499. }
  21500. .lastText {
  21501. padding: 0 5px 0 5px;
  21502. box-sizing: border-box;
  21503. font-size: 14px;
  21504. }
  21505. .lastImg > img {
  21506. width: 100%;
  21507. height: 100%;
  21508. }
  21509. /* .vedioTimeBox {
  21510. display: flex;
  21511. flex-direction: row;
  21512. align-items: center;
  21513. flex-wrap: nowrap;
  21514. position: relative;
  21515. } */
  21516. .navBox {
  21517. background: #fff;
  21518. height: calc(100% - 40px);
  21519. overflow-y: auto;
  21520. overflow-x: hidden;
  21521. }
  21522. .worksBox {
  21523. margin: 0 0 10px 25px;
  21524. border-bottom: 1px solid #eeeeee;
  21525. padding: 18px 20px;
  21526. border-radius: 4px;
  21527. width: 90%;
  21528. }
  21529. .worksBTitle {
  21530. font-size: 20px;
  21531. padding-bottom: 15px;
  21532. border-bottom: 1px solid #eeeeee;
  21533. display: flex;
  21534. align-items: center;
  21535. }
  21536. .greenBox {
  21537. width: 5px;
  21538. height: 30px;
  21539. background: #63b6fa;
  21540. margin-right: 5px;
  21541. }
  21542. .worksDetailBox {
  21543. display: flex;
  21544. width: 100%;
  21545. flex-direction: row;
  21546. flex-wrap: wrap;
  21547. align-items: flex-end;
  21548. justify-content: flex-start;
  21549. padding: 15px 5px;
  21550. box-sizing: border-box;
  21551. }
  21552. .works {
  21553. display: flex;
  21554. flex-direction: column;
  21555. flex-wrap: nowrap;
  21556. align-items: flex-start;
  21557. justify-content: flex-start;
  21558. align-content: center;
  21559. max-width: 240px;
  21560. width: calc(100% / 3 - 10px);
  21561. height: auto;
  21562. margin-right: 10px;
  21563. margin-bottom: 10px;
  21564. overflow: hidden;
  21565. height: 140px;
  21566. box-shadow: 0 0 6px 1px #dfdada;
  21567. border-radius: 15px;
  21568. }
  21569. .workImg {
  21570. width: 100%;
  21571. /* height: calc(100% - 40px); */
  21572. height: 105px;
  21573. position: relative;
  21574. }
  21575. .workImg > img {
  21576. width: 100%;
  21577. height: 100%;
  21578. object-fit: contain;
  21579. cursor: pointer;
  21580. }
  21581. .worksName {
  21582. height: 40px;
  21583. line-height: 40px;
  21584. display: flex;
  21585. width: 100%;
  21586. flex-direction: row;
  21587. flex-wrap: nowrap;
  21588. justify-content: space-between;
  21589. align-items: center;
  21590. margin: 0 0 0 10px;
  21591. }
  21592. .worksName > div:nth-child(1) {
  21593. width: 110px;
  21594. white-space: nowrap;
  21595. overflow: hidden;
  21596. text-overflow: ellipsis;
  21597. }
  21598. .worksName > div:nth-child(2) {
  21599. color: #b7b4b5;
  21600. }
  21601. .noWorksS {
  21602. padding: 15px 0;
  21603. display: flex;
  21604. flex-direction: row;
  21605. flex-wrap: wrap;
  21606. align-items: center;
  21607. justify-content: flex-start;
  21608. }
  21609. .noWorksName,
  21610. .isWorksName,
  21611. .isWorksName2 {
  21612. background: #ddebf8;
  21613. color: #000;
  21614. width: 90px;
  21615. height: 25px;
  21616. text-align: center;
  21617. line-height: 25px;
  21618. border-radius: 4px;
  21619. margin: 10px 15px 10px 0;
  21620. white-space: nowrap;
  21621. overflow: hidden;
  21622. padding: 5px;
  21623. text-overflow: ellipsis;
  21624. cursor: pointer;
  21625. border: 1px solid #ddebf8;
  21626. }
  21627. .noWorksName {
  21628. background: #fff;
  21629. color: #0061ff;
  21630. border: 1px solid #0061ff;
  21631. }
  21632. .noWorksName > span{
  21633. max-width: 100%;
  21634. display: block;
  21635. overflow: hidden;
  21636. text-overflow: ellipsis;
  21637. white-space: nowrap;
  21638. }
  21639. .isWorksName2 {
  21640. width: 100px;
  21641. height: 40px;
  21642. line-height: 40px;
  21643. position: relative;
  21644. background: #dae6f9;
  21645. }
  21646. .isWorksName {
  21647. background: #e7ebf1 !important;
  21648. width: 100px;
  21649. height: 40px;
  21650. line-height: 40px;
  21651. position: relative;
  21652. color: #acb4bf;
  21653. border: 1px solid #cad1dc !important;
  21654. }
  21655. .isSelectName,
  21656. .noWorksName:hover {
  21657. background: #3383fa !important;
  21658. color: #fff !important;
  21659. border: 1px solid #3383fa !important;
  21660. }
  21661. .title {
  21662. background: #1e5cc9;
  21663. /* width: 98%; */
  21664. height: 45px;
  21665. color: #fff;
  21666. line-height: 45px;
  21667. padding-left: 20px;
  21668. box-sizing: border-box;
  21669. }
  21670. .textBox {
  21671. font-size: 20px;
  21672. width: 90%;
  21673. display: flex;
  21674. flex-direction: column;
  21675. align-items: center;
  21676. margin: 20px auto 0;
  21677. max-height: calc(100% - 75px);
  21678. overflow: auto;
  21679. }
  21680. .textContent {
  21681. font-size: 18px;
  21682. width: 95%;
  21683. max-width: 95%;
  21684. }
  21685. .answerBg {
  21686. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  21687. background-size: 100% 100%;
  21688. width: 100%;
  21689. height: 100%;
  21690. color: #fff;
  21691. text-align: center;
  21692. display: flex;
  21693. flex-direction: column;
  21694. flex-wrap: nowrap;
  21695. align-items: center;
  21696. position: relative;
  21697. justify-content: center;
  21698. }
  21699. .answerBg > div:nth-child(1) {
  21700. /* font-size: 22px;
  21701. padding: 25px 0 10px; */
  21702. }
  21703. .answerContent {
  21704. width: 215px;
  21705. max-height: 60px;
  21706. word-break: break-all;
  21707. text-align: center;
  21708. /* white-space: nowrap; */
  21709. overflow: hidden;
  21710. text-overflow: ellipsis;
  21711. /* padding: 23px 0 0; */
  21712. -webkit-line-clamp: 3;
  21713. -webkit-box-orient: vertical;
  21714. display: -webkit-box;
  21715. font-size: 15px;
  21716. cursor: pointer;
  21717. }
  21718. .elist_input_box {
  21719. display: flex;
  21720. align-items: flex-start;
  21721. flex-wrap: nowrap;
  21722. padding: 10px 0 15px 30px;
  21723. flex-direction: column;
  21724. }
  21725. .elist_input {
  21726. /* width: 40%; */
  21727. width: 45%;
  21728. margin: 20px;
  21729. }
  21730. .elist_input .elist_input_box input {
  21731. font: inherit;
  21732. color: currentColor;
  21733. width: 200px;
  21734. padding: 8px 14px;
  21735. display: block;
  21736. min-width: 0;
  21737. outline: none;
  21738. border: 1px solid rgba(0, 0, 0, 0.23);
  21739. border-radius: 4px;
  21740. box-sizing: border-box;
  21741. background: #fff;
  21742. margin: 0 20px 0 0;
  21743. }
  21744. .elist_input .elist_input_box span {
  21745. height: 36px;
  21746. line-height: 36px;
  21747. color: rgb(82, 82, 82);
  21748. }
  21749. .elist_input .elist_input_box .remove {
  21750. height: 20px;
  21751. width: 20px;
  21752. background-size: 100% 100%;
  21753. background-position: unset;
  21754. margin-left: 5px;
  21755. }
  21756. .elist_input_box >>> .el-rate {
  21757. display: flex;
  21758. height: 36px;
  21759. align-items: center;
  21760. }
  21761. .elist_input_box .elist_inptu_text {
  21762. min-height: 50px;
  21763. /* width: 500px;
  21764. max-height: 150px; */
  21765. width: 100%;
  21766. line-height: 50px;
  21767. color: rgb(82, 82, 82);
  21768. overflow: auto;
  21769. text-indent: 5px;
  21770. background: #f7f6f9;
  21771. border-radius: 10px;
  21772. }
  21773. .elist_input_box .elist_inptu_text input {
  21774. width: 500px;
  21775. }
  21776. .elist_input_box >>> .el-rate__icon {
  21777. font-size: 24px;
  21778. }
  21779. .isClick {
  21780. background: #4d9def;
  21781. }
  21782. .bzBox {
  21783. display: flex;
  21784. flex-direction: row;
  21785. align-items: center;
  21786. }
  21787. .bzBox .yCss {
  21788. width: 7px;
  21789. height: 7px;
  21790. background: #fff;
  21791. margin: 0 16px 0 6px;
  21792. border-radius: 50%;
  21793. border: 5px solid #3681fc;
  21794. z-index: 99;
  21795. }
  21796. .bzBox > div:nth-child(2) {
  21797. font-size: 18px;
  21798. font-weight: bold;
  21799. color: #0e1e33;
  21800. }
  21801. .navTitile {
  21802. padding: 0 0px 0 15px;
  21803. font-size: 16px;
  21804. font-weight: bold;
  21805. color: #0e1e33;
  21806. height: 40px;
  21807. line-height: 40px;
  21808. }
  21809. .isTypeOne {
  21810. width: 240px;
  21811. height: 170px;
  21812. /* border: 1px solid #f8f8f8; */
  21813. border-radius: 10px;
  21814. box-shadow: 0 0 6px 1px #dfdada;
  21815. }
  21816. .e_add_top {
  21817. display: flex;
  21818. justify-content: space-between;
  21819. padding: 10px 20px;
  21820. border-radius: 3px;
  21821. background: #fff;
  21822. }
  21823. .e_add_title2 {
  21824. display: flex;
  21825. align-items: center;
  21826. }
  21827. .e_add_title2 span {
  21828. width: 40px;
  21829. }
  21830. .e_add_title {
  21831. display: flex;
  21832. align-items: center;
  21833. color: #b8b8b8;
  21834. font-size: 18px;
  21835. position: relative;
  21836. height: 40px;
  21837. }
  21838. .e_add_title span {
  21839. margin-right: 10px;
  21840. }
  21841. .e_add_title .el_input {
  21842. width: 300px;
  21843. }
  21844. .e_add_title >>> .el-input__inner {
  21845. width: 400px;
  21846. }
  21847. .e_add_btn {
  21848. }
  21849. .e_add_content {
  21850. display: flex;
  21851. width: 100%;
  21852. max-width: 650px;
  21853. height: 550px;
  21854. }
  21855. .e_add_list {
  21856. background: #fff;
  21857. height: 500px;
  21858. width: 210px;
  21859. position: relative;
  21860. margin: 15px 5px 0 0;
  21861. flex-shrink: 0;
  21862. display: flex;
  21863. flex-direction: column;
  21864. }
  21865. .e_add_list_title {
  21866. font-size: 20px;
  21867. width: 100%;
  21868. box-sizing: border-box;
  21869. padding: 15px 40px;
  21870. text-align: center;
  21871. border-bottom: 1px solid #eaeaea;
  21872. position: relative;
  21873. display: flex;
  21874. align-items: center;
  21875. justify-content: center;
  21876. height: 57px;
  21877. background: #f6f6f6;
  21878. }
  21879. .e_add_list_title span {
  21880. overflow: hidden;
  21881. white-space: nowrap;
  21882. text-overflow: ellipsis;
  21883. }
  21884. .e_add_list_title img {
  21885. position: absolute;
  21886. right: 15px;
  21887. width: 25px;
  21888. cursor: pointer;
  21889. top: 50%;
  21890. transform: translateY(-50%);
  21891. }
  21892. .e_add_list_body {
  21893. height: calc(100% - 187px);
  21894. overflow: auto;
  21895. }
  21896. .e_add_list_child {
  21897. width: 100%;
  21898. display: flex;
  21899. align-items: center;
  21900. justify-content: center;
  21901. position: relative;
  21902. box-sizing: border-box;
  21903. padding: 15px 40px;
  21904. text-align: center;
  21905. }
  21906. .e_add_list_child span {
  21907. overflow: hidden;
  21908. white-space: nowrap;
  21909. text-overflow: ellipsis;
  21910. cursor: pointer;
  21911. }
  21912. .e_add_list_child img {
  21913. position: absolute;
  21914. right: 10px;
  21915. width: 21px;
  21916. cursor: pointer;
  21917. top: 50%;
  21918. transform: translateY(-50%);
  21919. }
  21920. .e_add_list_child + .e_add_list_child {
  21921. border-top: 1px solid #eaeaea;
  21922. }
  21923. .e_add_list_child .active {
  21924. color: #409eff;
  21925. }
  21926. .e_add_list_btn {
  21927. position: absolute;
  21928. bottom: 0;
  21929. height: 50px;
  21930. background: rgb(120, 120, 254);
  21931. width: 100%;
  21932. color: #fff;
  21933. font-size: 16px;
  21934. text-align: center;
  21935. line-height: 50px;
  21936. cursor: pointer;
  21937. }
  21938. .e_add_list_detail {
  21939. position: absolute;
  21940. bottom: 0;
  21941. height: 130px;
  21942. background: rgb(120, 120, 254);
  21943. width: 100%;
  21944. color: #fff;
  21945. font-size: 16px;
  21946. display: flex;
  21947. align-items: center;
  21948. justify-content: center;
  21949. }
  21950. .e_add_list_detail textarea {
  21951. height: 90%;
  21952. width: 95%;
  21953. border: none;
  21954. resize: none;
  21955. outline: none;
  21956. padding: 5px;
  21957. box-sizing: border-box;
  21958. }
  21959. .e_add_list_pbox {
  21960. width: 100%;
  21961. max-width: 650px;
  21962. /* height: 600px; */
  21963. }
  21964. .e_add_list_pbox_title {
  21965. height: 50px;
  21966. background: #fff;
  21967. display: flex;
  21968. align-items: center;
  21969. width: 100%;
  21970. box-sizing: border-box;
  21971. padding: 0 20px;
  21972. }
  21973. .type_title {
  21974. font-size: 18px;
  21975. font-weight: 700;
  21976. }
  21977. .type_content {
  21978. font-size: 16px;
  21979. /* margin-left: 30px; */
  21980. }
  21981. .type_content span + span {
  21982. margin-left: 20px;
  21983. }
  21984. .type_content span {
  21985. cursor: pointer;
  21986. padding-bottom: 5px;
  21987. box-sizing: border-box;
  21988. }
  21989. .type_content .active {
  21990. color: #409eff;
  21991. border-bottom: 2px solid #409eff;
  21992. }
  21993. .e_add_list_pbox_content {
  21994. height: calc(100% - 50px);
  21995. display: flex;
  21996. align-items: center;
  21997. width: 100%;
  21998. background: #fff;
  21999. }
  22000. .evaCss {
  22001. display: flex;
  22002. flex-direction: row;
  22003. flex-wrap: nowrap;
  22004. align-items: flex-start;
  22005. padding: 0 0 20px;
  22006. }
  22007. .cru_line {
  22008. position: absolute;
  22009. bottom: 0px;
  22010. transition: all 0.5s;
  22011. left: 0px;
  22012. width: 125px;
  22013. margin-left: -25px;
  22014. }
  22015. .isNoMessage {
  22016. width: 20%;
  22017. margin: 25% auto 0;
  22018. }
  22019. .isNoMessage > img {
  22020. width: 100%;
  22021. height: 100%;
  22022. }
  22023. .fullStyle >>> .el-dialog__body {
  22024. height: 100% !important;
  22025. }
  22026. .fullStyle >>> .el-dialog,
  22027. .fullStyle {
  22028. width: 100% !important;
  22029. max-width: 100% !important;
  22030. height: 100% !important;
  22031. margin: 0 !important;
  22032. }
  22033. .full_diy >>> .el-dialog {
  22034. margin: 0 !important;
  22035. height: 100%;
  22036. padding: 4px;
  22037. }
  22038. .full_diy >>> .el-dialog__body {
  22039. height: calc(100% - 100px);
  22040. }
  22041. .full_diy2 >>> .el-dialog__body {
  22042. height: calc(100% - 50px);
  22043. padding: 0;
  22044. }
  22045. .switchCss {
  22046. /* width: 100%; */
  22047. display: flex;
  22048. flex-direction: row;
  22049. flex-wrap: nowrap;
  22050. align-items: center;
  22051. /* justify-content: center; */
  22052. }
  22053. .isClickNav {
  22054. /* color: #499eef; */
  22055. color: #000;
  22056. }
  22057. .commentImg {
  22058. width: 25px;
  22059. height: 25px;
  22060. cursor: pointer;
  22061. }
  22062. .commentImg > img {
  22063. width: 100%;
  22064. height: 100%;
  22065. }
  22066. .comment {
  22067. background: #f9f9f9;
  22068. border-radius: 0 0 4px 4px;
  22069. display: flex;
  22070. flex-direction: row;
  22071. flex-wrap: nowrap;
  22072. align-items: center;
  22073. justify-content: flex-end;
  22074. height: 35px;
  22075. }
  22076. .commentList {
  22077. display: flex;
  22078. flex-direction: row;
  22079. flex-wrap: nowrap;
  22080. align-items: center;
  22081. justify-content: center;
  22082. align-content: center;
  22083. /* margin-left: 15px; */
  22084. /* margin-left: 8px; */
  22085. }
  22086. .scoreImg {
  22087. width: 17px;
  22088. height: 17px;
  22089. }
  22090. .studentDetail {
  22091. display: flex;
  22092. flex-direction: row;
  22093. flex-wrap: nowrap;
  22094. /* align-items: center; */
  22095. align-items: flex-start;
  22096. }
  22097. .tx {
  22098. width: 50px;
  22099. }
  22100. .tx > img {
  22101. width: 100%;
  22102. height: 100%;
  22103. }
  22104. .nameAndTime {
  22105. display: flex;
  22106. flex-direction: column;
  22107. flex-wrap: nowrap;
  22108. align-items: flex-start;
  22109. margin-left: 10px;
  22110. }
  22111. .worksAnswer {
  22112. color: #4078dd;
  22113. margin: 10px 0;
  22114. font-size: 16px;
  22115. position: relative;
  22116. }
  22117. .worksAnswer > img {
  22118. width: 500px;
  22119. height: 300px;
  22120. object-fit: contain;
  22121. margin: 0 auto;
  22122. display: block;
  22123. }
  22124. .commentTop {
  22125. border-bottom: 1px solid #eaeaea;
  22126. padding-bottom: 10px;
  22127. }
  22128. .commentBox {
  22129. padding-top: 15px;
  22130. }
  22131. .pl {
  22132. font-size: 18px;
  22133. }
  22134. .plPerson {
  22135. width: 100%;
  22136. }
  22137. .plName {
  22138. display: flex;
  22139. flex-direction: row;
  22140. flex-wrap: nowrap;
  22141. align-items: baseline;
  22142. color: #78787a;
  22143. width: 100%;
  22144. }
  22145. .deleteComment {
  22146. cursor: pointer;
  22147. margin-left: auto;
  22148. color: #237ade;
  22149. }
  22150. .plContent {
  22151. margin-top: 5px;
  22152. }
  22153. .evalCss {
  22154. background: #fff;
  22155. font-size: 18px;
  22156. }
  22157. .nav {
  22158. color: #9d9d9d;
  22159. padding: 5px 0 15px 20px;
  22160. }
  22161. .middleBox {
  22162. padding: 5px 0 15px 20px;
  22163. }
  22164. .pfBox {
  22165. padding-bottom: 30px;
  22166. }
  22167. .nameAndrate {
  22168. display: flex;
  22169. flex-direction: row;
  22170. flex-wrap: nowrap;
  22171. align-items: center;
  22172. padding-bottom: 10px;
  22173. height: 30px;
  22174. line-height: 30px;
  22175. }
  22176. .nameAndrate > div {
  22177. margin-left: 10px;
  22178. color: #000;
  22179. height: 30px;
  22180. }
  22181. .nameAndrate >>> .el-rate__icon {
  22182. font-size: 28px !important;
  22183. }
  22184. .pfBox > div:nth-child(2) {
  22185. background: #f7f6f9;
  22186. width: 400px;
  22187. min-height: 45px;
  22188. border-radius: 10px;
  22189. font-size: 16px;
  22190. display: flex;
  22191. flex-wrap: wrap;
  22192. align-items: center;
  22193. padding: 10px 20px;
  22194. box-sizing: border-box;
  22195. color: #000;
  22196. }
  22197. .bz {
  22198. display: flex;
  22199. flex-direction: row;
  22200. flex-wrap: nowrap;
  22201. align-items: flex-start;
  22202. }
  22203. .bz > div {
  22204. padding: 0 10px;
  22205. }
  22206. .select_box2_title {
  22207. background: #fff;
  22208. border-radius: 5px;
  22209. padding: 15px 10px;
  22210. box-sizing: border-box;
  22211. margin-bottom: 10px;
  22212. display: flex;
  22213. flex-direction: row;
  22214. flex-wrap: nowrap;
  22215. align-items: center;
  22216. }
  22217. .select_box2_title > div:nth-child(2) {
  22218. margin-left: 10px;
  22219. color: #c4c4c4;
  22220. }
  22221. .select_box2_box {
  22222. display: flex;
  22223. height: 500px;
  22224. }
  22225. .select_box2_img {
  22226. width: calc(100% - 310px);
  22227. height: 100%;
  22228. overflow: auto;
  22229. background: #fff;
  22230. border-radius: 5px;
  22231. }
  22232. .select_box2_img img {
  22233. width: 100%;
  22234. }
  22235. .select_box2_answer {
  22236. background: #fff;
  22237. margin-left: 10px;
  22238. border-radius: 5px;
  22239. width: 300px;
  22240. overflow: auto;
  22241. height: 90%;
  22242. display: flex;
  22243. flex-direction: column;
  22244. align-items: flex-start;
  22245. padding-top: 10px;
  22246. box-sizing: border-box;
  22247. position: relative;
  22248. }
  22249. .select_answer_title {
  22250. padding: 0 0 15px 20px;
  22251. color: #c4c4c4;
  22252. }
  22253. .select_box2_answer_box {
  22254. margin: 0 0 10px 20px;
  22255. width: 85%;
  22256. display: flex;
  22257. flex-direction: row;
  22258. flex-wrap: nowrap;
  22259. align-items: center;
  22260. }
  22261. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22262. color: #000;
  22263. }
  22264. .upAnswerCss {
  22265. position: absolute;
  22266. bottom: 15px;
  22267. right: 15px;
  22268. }
  22269. .upAnswerCss >>> .el-button {
  22270. width: 95px;
  22271. height: 35px;
  22272. line-height: 35px;
  22273. padding: 0;
  22274. }
  22275. .rightWidthCss {
  22276. width: 60%;
  22277. display: flex;
  22278. flex-direction: row;
  22279. align-items: flex-start;
  22280. }
  22281. .rightAnswer {
  22282. display: flex;
  22283. flex-direction: row;
  22284. flex-wrap: nowrap;
  22285. align-items: center;
  22286. color: red;
  22287. margin-bottom: 31px;
  22288. }
  22289. .rightAnswerCss {
  22290. display: flex;
  22291. flex-direction: column;
  22292. flex-wrap: nowrap;
  22293. padding-top: 60px;
  22294. }
  22295. .blueCss {
  22296. color: #767de1;
  22297. margin-left: 10px;
  22298. }
  22299. .redCss {
  22300. color: red;
  22301. }
  22302. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22303. color: rgb(0 123 255) !important;
  22304. }
  22305. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22306. color: rgb(0 123 255) !important;
  22307. }
  22308. .zuoyeYulan {
  22309. padding-top: 0;
  22310. font-size: 18px;
  22311. display: flex;
  22312. align-items: flex-end;
  22313. }
  22314. .buttonA {
  22315. margin-left: 10px;
  22316. padding: 0;
  22317. }
  22318. .displayBox {
  22319. margin-bottom: 10px;
  22320. display: block;
  22321. border-bottom: 3px solid #eee;
  22322. display: flex;
  22323. align-items: center;
  22324. }
  22325. .easy_comment {
  22326. width: calc(100% - 90px);
  22327. margin-left: 10px;
  22328. display: flex;
  22329. flex-wrap: wrap;
  22330. }
  22331. .easy_comment > div {
  22332. border: 1px solid #4a4a4a;
  22333. color: #666;
  22334. border-radius: 15px;
  22335. padding: 5px 10px;
  22336. font-size: 16px;
  22337. margin-bottom: 10px;
  22338. margin-right: 5px;
  22339. cursor: pointer;
  22340. }
  22341. .easy_comment div:hover {
  22342. border: 1px solid #f7ba2a;
  22343. color: #c69217;
  22344. }
  22345. .xuan_right_box {
  22346. padding: 10px 0;
  22347. background: #f0f4fa;
  22348. margin: 0 15px 0 25px;
  22349. border-bottom-left-radius: 5px;
  22350. border-bottom-right-radius: 5px;
  22351. width: 91.5%;
  22352. }
  22353. .tool_right_box {
  22354. display: flex;
  22355. align-items: center;
  22356. }
  22357. .tool_right_box + .tool_right_box {
  22358. margin-top: 10px;
  22359. }
  22360. .right_box_xuan {
  22361. border-radius: 5px;
  22362. padding: 5px;
  22363. margin-left: 10px;
  22364. min-width: 85px;
  22365. background: #fff;
  22366. color: #0061ff;
  22367. border: 1px solid #0061ff;
  22368. font-size: 14px;
  22369. }
  22370. .pButton:hover {
  22371. opacity: 1 !important;
  22372. }
  22373. .pButton {
  22374. position: fixed;
  22375. text-align: center;
  22376. cursor: pointer;
  22377. z-index: 999;
  22378. right: 20px;
  22379. top: 110px;
  22380. width: 50px;
  22381. height: 50px;
  22382. display: flex;
  22383. align-items: center;
  22384. justify-content: center;
  22385. border-radius: 5px;
  22386. }
  22387. .pzClass {
  22388. width: calc(100% - 340px);
  22389. }
  22390. .newDialogCss {
  22391. /* position: fixed;
  22392. right: 5%;
  22393. top: 50%;
  22394. width: 340px;
  22395. transform: translateY(-50%);
  22396. height: 60%;
  22397. box-shadow: 0px 0 8px 0px #555555;
  22398. border-radius: 15px;
  22399. z-index: 999; */
  22400. position: fixed;
  22401. right: 20px;
  22402. top: 101px;
  22403. width: 330px;
  22404. height: calc(100% - 80px);
  22405. z-index: 999;
  22406. background: #fff;
  22407. border-top-right-radius: 0px;
  22408. border-bottom-right-radius: 0px;
  22409. overflow: hidden;
  22410. }
  22411. .newDialogCss>.scoreList{
  22412. width:100%;
  22413. height:100%;
  22414. box-sizing:border-box;
  22415. padding:10px 15px;
  22416. overflow:auto;
  22417. padding-bottom:80px;
  22418. }
  22419. .pzTop {
  22420. color: #fff;
  22421. background: #000;
  22422. display: flex;
  22423. flex-direction: row;
  22424. flex-wrap: nowrap;
  22425. align-items: center;
  22426. justify-content: space-between;
  22427. height: 40px;
  22428. border-radius: 15px 15px 0 0;
  22429. user-select: none;
  22430. }
  22431. .pzTop2 .checkbox {
  22432. display: flex;
  22433. align-items: center;
  22434. padding: 5px 10px;
  22435. flex: 0 0 auto;
  22436. font-weight: bold;
  22437. border-bottom: 1px solid #eee;
  22438. justify-content: space-between;
  22439. }
  22440. .checkbox>.cb-tabList{
  22441. display:flex;
  22442. align-items:center;
  22443. }
  22444. .cb-tabList>div{
  22445. margin-right:20px;
  22446. font-weight:400;
  22447. cursor:pointer;
  22448. }
  22449. .cb-tabList>.cb-tabItem{
  22450. color:#1684FC;
  22451. position:relative;
  22452. }
  22453. .cb-tabItem::after{
  22454. content:"";
  22455. width:100%;
  22456. height:2px;
  22457. background:#1684FC;
  22458. position:absolute;
  22459. bottom:-5px;
  22460. left:0
  22461. }
  22462. .pzTop2 .check {
  22463. text-align: center;
  22464. cursor: pointer;
  22465. box-sizing: border-box;
  22466. display: flex;
  22467. }
  22468. .pzTop2 img {
  22469. width: 25px;
  22470. cursor: pointer;
  22471. }
  22472. .pzTop > div:nth-child(1) {
  22473. padding-left: 10px;
  22474. }
  22475. .pzTop > div:nth-child(2) {
  22476. width: 15px;
  22477. height: 15px;
  22478. padding-right: 10px;
  22479. cursor: pointer;
  22480. }
  22481. .pzTop > div:nth-child(2) > img {
  22482. width: 100%;
  22483. height: 100%;
  22484. }
  22485. .pzBox,
  22486. .noPzBox {
  22487. height: calc(100% - 60px);
  22488. /* background: #ededed; */
  22489. background: #fff;
  22490. /* border-radius: 0 0 15px 15px; */
  22491. }
  22492. .noPzBox {
  22493. display: flex;
  22494. flex-direction: column;
  22495. flex-wrap: nowrap;
  22496. justify-content: center;
  22497. align-items: center;
  22498. }
  22499. .pzList {
  22500. background: #f7f7f7;
  22501. width: 90%;
  22502. margin: 0 auto 15px;
  22503. border-radius: 5px;
  22504. }
  22505. .pzNavTop {
  22506. display: flex;
  22507. flex-direction: row;
  22508. flex-wrap: nowrap;
  22509. padding: 10px 10px 0 10px;
  22510. align-items: center;
  22511. }
  22512. .pzDelete {
  22513. cursor: pointer;
  22514. margin-left: auto;
  22515. font-size: 14px;
  22516. color: #afafaf;
  22517. }
  22518. .pzNavTop > div:nth-child(1) {
  22519. background: #3760af;
  22520. width: 35px;
  22521. height: 35px;
  22522. color: #fff;
  22523. text-align: center;
  22524. line-height: 35px;
  22525. border-radius: 50%;
  22526. font-size: 14px;
  22527. }
  22528. .pzNavTop > div:nth-child(2) {
  22529. font-size: 18px;
  22530. color: #959595;
  22531. margin-left: 5px;
  22532. }
  22533. .pzContent {
  22534. padding: 10px;
  22535. word-break: break-word;
  22536. }
  22537. .pzContent audio {
  22538. width: 100%;
  22539. }
  22540. .pzContent audio::-webkit-media-controls-panel {
  22541. background: #fff;
  22542. }
  22543. .pzContent >>> img {
  22544. max-width: 100%;
  22545. }
  22546. .pzListBox {
  22547. padding-top: 15px;
  22548. height: calc(100% - 110px);
  22549. overflow: auto;
  22550. }
  22551. .addPzButton {
  22552. position: relative;
  22553. margin-top: 3px;
  22554. width: 100%;
  22555. }
  22556. .addPzButton .img1 {
  22557. position: absolute;
  22558. top: 50%;
  22559. right: 25px;
  22560. transform: translateY(-50%);
  22561. height: 100%;
  22562. display: flex;
  22563. align-items: center;
  22564. }
  22565. .addPzButton .img1 div {
  22566. display: flex;
  22567. }
  22568. .addPzButton .img1 div img {
  22569. width: 28px;
  22570. margin-left: 10px;
  22571. cursor: pointer;
  22572. }
  22573. .addPzButton .img1 div span {
  22574. font-size: 14px;
  22575. margin: 4px 0 0 3px;
  22576. color: #afafaf;
  22577. }
  22578. .addPz {
  22579. background: #4b79ce;
  22580. width: 100px;
  22581. color: #fff;
  22582. font-size: 12px;
  22583. height: 30px;
  22584. margin: 0 auto;
  22585. text-align: center;
  22586. line-height: 30px;
  22587. border-radius: 10px;
  22588. cursor: pointer;
  22589. }
  22590. .addDialogCss {
  22591. position: fixed;
  22592. width: 600px;
  22593. height: 70%;
  22594. min-height: 450px;
  22595. box-shadow: 0px 0 8px 0px #555555;
  22596. border-radius: 15px;
  22597. z-index: 999;
  22598. left: 50%;
  22599. top: 50%;
  22600. margin: -18% 0 0 -300px;
  22601. }
  22602. .teacherPz {
  22603. display: flex;
  22604. flex-direction: row;
  22605. align-items: center;
  22606. flex-wrap: nowrap;
  22607. }
  22608. .teacherPzImg {
  22609. width: 30px;
  22610. height: 30px;
  22611. }
  22612. .teacherPzImg > img {
  22613. width: 100%;
  22614. height: 100%;
  22615. }
  22616. .addPzBox {
  22617. height: calc(100% - 40px);
  22618. background: #ededed;
  22619. border-bottom-left-radius: 15px;
  22620. border-bottom-right-radius: 15px;
  22621. }
  22622. .pzAudioClass {
  22623. margin: 15px 14px;
  22624. background: #fff;
  22625. height: 100%;
  22626. display: flex;
  22627. justify-content: center;
  22628. align-items: center;
  22629. }
  22630. .pzConText {
  22631. width: 95%;
  22632. height: 100%;
  22633. margin: 10px auto 0;
  22634. border: none;
  22635. background: #fff;
  22636. border-radius: 0px;
  22637. }
  22638. .pzConText >>> .text {
  22639. height: calc(100% - 82px);
  22640. }
  22641. .addTextCss {
  22642. background: #4b79ce;
  22643. width: 80px;
  22644. height: 30px;
  22645. text-align: center;
  22646. color: #fff;
  22647. line-height: 30px;
  22648. border-radius: 10px;
  22649. margin: 10px auto 0;
  22650. cursor: pointer;
  22651. }
  22652. .pzConText:focus-visible {
  22653. border: none !important;
  22654. }
  22655. .maxWidth {
  22656. width: 1000px;
  22657. }
  22658. .noPz {
  22659. width: 150px;
  22660. margin: 0 auto 20%;
  22661. }
  22662. .noPz > img {
  22663. width: 100%;
  22664. height: 100%;
  22665. }
  22666. .timeAndReply {
  22667. display: flex;
  22668. flex-direction: row;
  22669. flex-wrap: nowrap;
  22670. justify-content: space-between;
  22671. align-items: center;
  22672. font-size: 14px;
  22673. box-sizing: border-box;
  22674. padding: 0 10px 10px 0px;
  22675. }
  22676. .timeAndReply .time {
  22677. color: #bfbfbf;
  22678. padding: 0 0 0 10px;
  22679. box-sizing: border-box;
  22680. }
  22681. .timeAndReply > div:last-child {
  22682. cursor: pointer;
  22683. color: #777;
  22684. }
  22685. /* table 样式 */
  22686. .cont >>> table {
  22687. border-top: 1px solid #ccc;
  22688. border-left: 1px solid #ccc;
  22689. }
  22690. .cont >>> table td,
  22691. .cont >>> table th {
  22692. border-bottom: 1px solid #ccc;
  22693. border-right: 1px solid #ccc;
  22694. /* padding: 20px 5px; */
  22695. padding: 5px 10px;
  22696. max-width: 0px;
  22697. height: 30px;
  22698. vertical-align: baseline;
  22699. box-sizing: border-box;
  22700. }
  22701. .cont >>> table th {
  22702. border-bottom: 2px solid #ccc;
  22703. text-align: center;
  22704. }
  22705. /* blockquote 样式 */
  22706. .cont >>> blockquote {
  22707. display: block;
  22708. border-left: 8px solid #d0e5f2;
  22709. padding: 5px 10px;
  22710. margin: 10px 0;
  22711. line-height: 1.4;
  22712. font-size: 100%;
  22713. background-color: #f1f1f1;
  22714. }
  22715. /* code 样式 */
  22716. .cont >>> code {
  22717. display: inline-block;
  22718. /* *display: inline; */
  22719. zoom: 1;
  22720. background-color: #f1f1f1;
  22721. border-radius: 3px;
  22722. padding: 3px 5px;
  22723. margin: 0 3px;
  22724. }
  22725. .cont >>> pre code {
  22726. display: block;
  22727. }
  22728. /* ul ol 样式 */
  22729. .cont >>> ul,
  22730. ol {
  22731. margin: 10px 0 10px 20px;
  22732. }
  22733. .addPzCheck {
  22734. display: flex;
  22735. flex-direction: row;
  22736. flex-wrap: nowrap;
  22737. padding: 10px 15px 0;
  22738. }
  22739. .addPzCheck span {
  22740. cursor: pointer;
  22741. padding-bottom: 5px;
  22742. font-weight: bold;
  22743. }
  22744. .addPzCheck span + span {
  22745. margin-left: 10px;
  22746. }
  22747. .addPzCheck .isChooseActive {
  22748. color: #3e88f4;
  22749. border-bottom: 2px solid #2f80f3;
  22750. }
  22751. /* code 样式 */
  22752. .cont {
  22753. /* -webkit-user-modify: read-write; */
  22754. overflow-wrap: break-word;
  22755. -webkit-line-break: after-white-space;
  22756. }
  22757. .scoreBox,
  22758. .scoreDetailBox {
  22759. display: flex;
  22760. align-items: center;
  22761. justify-content: flex-start;
  22762. margin-top: 20px;
  22763. font-size: 18px;
  22764. width: 100%;
  22765. }
  22766. .scoreBox .t,
  22767. .scoreDetailBox .t {
  22768. margin-right: 10px;
  22769. width: 100px;
  22770. text-align: right;
  22771. }
  22772. .scoreDetailBox {
  22773. align-items: flex-start;
  22774. }
  22775. .scoreDetailBox >>> .el-textarea {
  22776. width: calc(100% - 200px);
  22777. }
  22778. .scoreBox >>> .el-input {
  22779. width: 130px;
  22780. font-size: 38px;
  22781. }
  22782. .scoreBox >>> .el-input__inner {
  22783. height: 60px;
  22784. }
  22785. .answerScore {
  22786. position: absolute;
  22787. top: 10px;
  22788. right: 10px;
  22789. background: #0000008f;
  22790. border-radius: 5px;
  22791. padding: 3px 5px;
  22792. font-size: 14px;
  22793. color: #fff;
  22794. cursor: pointer;
  22795. }
  22796. .open_box .switch_box {
  22797. width: 100%;
  22798. margin: 0 auto;
  22799. display: flex;
  22800. justify-content: space-between;
  22801. }
  22802. .open_box .switch_box + .switch_box {
  22803. margin-top: 10px;
  22804. }
  22805. .deleteImg,.deleteImg1 {
  22806. width: 25px !important;
  22807. height: 25px !important;
  22808. cursor: pointer;
  22809. position: absolute;
  22810. top: 10px;
  22811. right: 10px;
  22812. }
  22813. .deleteImg2 {
  22814. width: 23px !important;
  22815. height: 23px !important;
  22816. top: 5px;
  22817. right: 5px;
  22818. }
  22819. .deleteImg1{
  22820. width: 23px !important;
  22821. height: 23px !important;
  22822. top: 5px !important;
  22823. right: 30px !important;
  22824. }
  22825. .rightW {
  22826. right: 40px;
  22827. }
  22828. .drawPBox {
  22829. display: flex;
  22830. flex-direction: column;
  22831. position: relative;
  22832. }
  22833. .drawPBox span {
  22834. font-size: 18px;
  22835. color: #606266;
  22836. padding-bottom: 10px;
  22837. margin: 10px 0;
  22838. border-bottom: 1px solid #eaeaea;
  22839. }
  22840. .drawPBox img {
  22841. width: 500px;
  22842. height: 300px;
  22843. object-fit: contain;
  22844. cursor: pointer;
  22845. margin: 0 auto;
  22846. }
  22847. .sentenBox {
  22848. background: #fff;
  22849. height: 450px;
  22850. overflow: auto;
  22851. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22852. background-position: 102%;
  22853. background-repeat: no-repeat;
  22854. background-size: 60%;
  22855. }
  22856. .addSen {
  22857. background: #409efe;
  22858. width: 90px;
  22859. color: #fff;
  22860. height: 35px;
  22861. text-align: center;
  22862. line-height: 35px;
  22863. border-radius: 5px;
  22864. float: right;
  22865. margin: 10px 20px 0 0;
  22866. cursor: pointer;
  22867. }
  22868. .sentenTop {
  22869. display: flex;
  22870. flex-direction: row;
  22871. flex-wrap: nowrap;
  22872. align-items: center;
  22873. padding: 55px 0 0 20px;
  22874. box-sizing: border-box;
  22875. }
  22876. .sentenTop > div:nth-child(2) {
  22877. width: 300px;
  22878. margin: 0 15px;
  22879. }
  22880. .sentenTop > div:nth-child(3) {
  22881. background: #409efe;
  22882. color: #fff;
  22883. width: 65px;
  22884. height: 35px;
  22885. text-align: center;
  22886. line-height: 35px;
  22887. border-radius: 5px;
  22888. cursor: pointer;
  22889. }
  22890. .cardList,
  22891. .cardList1 {
  22892. padding: 10px 0 10px 0;
  22893. display: flex;
  22894. flex-direction: row;
  22895. flex-wrap: wrap;
  22896. align-items: center;
  22897. box-sizing: border-box;
  22898. border-bottom: 1px solid #f4f4f4;
  22899. width: 98%;
  22900. margin: 0 auto;
  22901. min-width: 60%;
  22902. max-width: 85%;
  22903. }
  22904. .cardList1 {
  22905. padding: 10px 0 10px 10px !important;
  22906. margin: 0 !important;
  22907. }
  22908. .cardBox {
  22909. display: flex;
  22910. flex-direction: row;
  22911. flex-wrap: wrap;
  22912. align-items: center;
  22913. align-content: center;
  22914. }
  22915. .cardBox > div {
  22916. margin-bottom: 10px;
  22917. }
  22918. .isCard,
  22919. .isChooseCard,
  22920. .noCard,
  22921. .isCard1 {
  22922. width: 130px;
  22923. height: 60px;
  22924. text-align: center;
  22925. line-height: 60px;
  22926. font-size: 20px;
  22927. cursor: pointer;
  22928. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  22929. background-size: cover;
  22930. transition: all 2s;
  22931. margin-right: 20px;
  22932. }
  22933. .isCard > div,
  22934. .noCard > div,
  22935. .isCard1 > div {
  22936. white-space: nowrap;
  22937. overflow: hidden;
  22938. text-overflow: ellipsis;
  22939. width: 75%;
  22940. margin: 0 auto;
  22941. }
  22942. .noCard {
  22943. background-image: none;
  22944. }
  22945. .isCard1 {
  22946. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22947. }
  22948. .isChooseCard {
  22949. background-image: none;
  22950. border: 1px dashed #b9b9b9;
  22951. border-radius: 10px;
  22952. }
  22953. .card {
  22954. width: 130px;
  22955. height: 60px;
  22956. }
  22957. .card > img {
  22958. width: 100%;
  22959. height: 100%;
  22960. }
  22961. .rightCardBox {
  22962. margin: 10px 0 0 10px;
  22963. }
  22964. .rightCardBox > div:nth-child(1) {
  22965. margin-bottom: 10px;
  22966. }
  22967. .cardCss {
  22968. display: flex;
  22969. flex-direction: column;
  22970. flex-wrap: nowrap;
  22971. align-items: center;
  22972. border-bottom: 3px solid #b4c3d3;
  22973. padding: 0 0 5px 0;
  22974. margin-right: 10px;
  22975. }
  22976. .cardCss > div:nth-child(2) {
  22977. background: #5b7b9d;
  22978. color: #fff;
  22979. width: 20px;
  22980. height: 20px;
  22981. border-radius: 50%;
  22982. text-align: center;
  22983. line-height: 20px;
  22984. }
  22985. .isWrong {
  22986. display: flex;
  22987. flex-direction: row;
  22988. flex-wrap: nowrap;
  22989. align-content: center;
  22990. align-items: center;
  22991. }
  22992. .answerRight {
  22993. width: 25%;
  22994. }
  22995. .isTj {
  22996. display: flex;
  22997. flex-direction: row;
  22998. flex-wrap: nowrap;
  22999. align-items: center;
  23000. }
  23001. .isTj > div:nth-child(2) {
  23002. color: #727070;
  23003. margin-left: 10px;
  23004. }
  23005. .isTjImg {
  23006. width: 30px;
  23007. height: 30px;
  23008. }
  23009. .isTjImg > img {
  23010. width: 100%;
  23011. height: 100%;
  23012. }
  23013. .cardAnswerBox {
  23014. font-size: 18px;
  23015. width: 97%;
  23016. border: 5px;
  23017. padding: 0;
  23018. border-radius: 5px;
  23019. margin: 10px auto;
  23020. word-break: break-word;
  23021. }
  23022. .w_name {
  23023. margin-bottom: 10px;
  23024. }
  23025. .w_name span {
  23026. font-size: 16px;
  23027. }
  23028. .w_teachert {
  23029. width: 50px !important;
  23030. position: absolute;
  23031. height: auto !important;
  23032. z-index: 10;
  23033. right: 25px;
  23034. top: -25px;
  23035. }
  23036. .group_workBox {
  23037. }
  23038. .group_workBox + .group_workBox {
  23039. margin-top: 20px;
  23040. }
  23041. .group_box {
  23042. padding-bottom: 20px;
  23043. border-bottom: 2px solid #f0f0f0;
  23044. margin-top: 10px;
  23045. }
  23046. .group_title {
  23047. display: flex;
  23048. align-items: center;
  23049. justify-content: space-between;
  23050. width: 95%;
  23051. }
  23052. .group_name {
  23053. background-image: url(../../assets/icon/groupN.png);
  23054. width: 220px;
  23055. background-size: 100% 100%;
  23056. height: 67px;
  23057. padding: 0 20px 0 43px;
  23058. box-sizing: border-box;
  23059. line-height: 63px;
  23060. color: #fff;
  23061. overflow: hidden;
  23062. white-space: nowrap;
  23063. text-overflow: ellipsis;
  23064. }
  23065. .group_work {
  23066. width: 100%;
  23067. padding: 0 10px;
  23068. box-sizing: border-box;
  23069. display: flex;
  23070. flex-wrap: wrap;
  23071. }
  23072. .g_d_box {
  23073. display: flex;
  23074. flex-flow: wrap;
  23075. justify-content: space-around;
  23076. }
  23077. .g_d_box .isChair {
  23078. background-image: url(../../assets/avatar.png) !important;
  23079. }
  23080. .g_d_group {
  23081. width: 500px;
  23082. margin-bottom: 80px;
  23083. }
  23084. .g_d_group_chair {
  23085. display: flex;
  23086. align-items: center;
  23087. justify-content: center;
  23088. }
  23089. .g_d_group_chair > div + div {
  23090. margin-left: 30px;
  23091. }
  23092. .g_d_group_chair > div,
  23093. .g_d_group_chair2 > div {
  23094. display: flex;
  23095. flex-direction: column;
  23096. align-items: center;
  23097. }
  23098. .g_d_group_chair > div > span:nth-child(1),
  23099. .g_d_group_chair2 > div > span:nth-child(1) {
  23100. background-image: url(../../assets/icon/chair.png);
  23101. width: 50px;
  23102. height: 50px;
  23103. display: block;
  23104. background-size: 100% 100%;
  23105. }
  23106. .g_d_group_tableBox {
  23107. display: flex;
  23108. align-items: center;
  23109. justify-content: center;
  23110. }
  23111. .g_d_group_chair2 {
  23112. display: flex;
  23113. flex-direction: column;
  23114. align-items: center;
  23115. justify-content: center;
  23116. }
  23117. .g_d_group_chair2 > div + div {
  23118. margin-top: 10px;
  23119. }
  23120. .g_d_group_table {
  23121. background-image: url(../../assets/icon/groupBg.png);
  23122. width: 354px;
  23123. height: 196px;
  23124. background-size: 100% 100%;
  23125. display: flex;
  23126. align-items: center;
  23127. justify-content: center;
  23128. flex-direction: column;
  23129. color: #fff;
  23130. }
  23131. .g_d_group_table > div:nth-child(1) {
  23132. font-size: 24px;
  23133. margin-bottom: 5px;
  23134. }
  23135. .g_d_group_table > div:nth-child(2) div {
  23136. cursor: pointer;
  23137. background: #2e77bf;
  23138. padding: 4px 10px;
  23139. border-radius: 5px;
  23140. }
  23141. .groupBox {
  23142. }
  23143. .groupContent + .groupContent {
  23144. margin-top: 30px;
  23145. }
  23146. .groupTitle {
  23147. font-size: 24px;
  23148. color: rgb(80, 80, 80);
  23149. margin-bottom: 20px;
  23150. }
  23151. .groupName {
  23152. display: flex;
  23153. align-items: center;
  23154. }
  23155. .groupn {
  23156. font-size: 15px;
  23157. margin-right: 10px;
  23158. }
  23159. .groupName + .groupName {
  23160. margin-top: 15px;
  23161. }
  23162. .groupBtn {
  23163. margin-left: 10px;
  23164. }
  23165. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23166. text-align: left;
  23167. }
  23168. .g_d_btnBox {
  23169. display: flex;
  23170. justify-content: flex-end;
  23171. align-items: center;
  23172. margin-bottom: 20px;
  23173. }
  23174. .updateChair {
  23175. position: relative;
  23176. }
  23177. .updateChairBtn {
  23178. position: absolute;
  23179. width: 50px;
  23180. height: 50px;
  23181. overflow: hidden;
  23182. /* display: flex; */
  23183. align-items: center;
  23184. justify-content: center;
  23185. background: #00000087;
  23186. color: #fff;
  23187. border-radius: 50px;
  23188. display: none;
  23189. cursor: pointer;
  23190. }
  23191. .updateChair:hover .updateChairBtn {
  23192. display: flex;
  23193. }
  23194. .group_staic_box {
  23195. display: flex;
  23196. padding: 30px 40px 10px;
  23197. flex-wrap: wrap;
  23198. }
  23199. .group_staic {
  23200. /* width: 50%; */
  23201. margin-bottom: 20px;
  23202. display: flex;
  23203. align-items: center;
  23204. }
  23205. .group_staic span:nth-child(1) {
  23206. width: 150px;
  23207. text-align: right;
  23208. margin-right: 15px;
  23209. }
  23210. .group_staic span:nth-child(2) {
  23211. background: rgb(0 123 255);
  23212. color: #fff;
  23213. border-radius: 5px;
  23214. padding: 5px;
  23215. }
  23216. .codeFileBox {
  23217. height: 300px;
  23218. background: #fff;
  23219. display: flex;
  23220. align-items: center;
  23221. justify-content: center;
  23222. }
  23223. .codeFileBox img {
  23224. width: 200px;
  23225. margin: 0;
  23226. height: auto;
  23227. }
  23228. .codeFileBox div {
  23229. background: rgb(80, 142, 226);
  23230. color: #fff;
  23231. padding: 10px 20px;
  23232. border-radius: 25px;
  23233. cursor: pointer;
  23234. margin-left: 15px;
  23235. }
  23236. .radioBox {
  23237. display: flex;
  23238. flex-direction: column;
  23239. flex-wrap: nowrap;
  23240. align-items: flex-start;
  23241. }
  23242. .radioBox > div {
  23243. margin: 10px 0 0 10px;
  23244. }
  23245. /* .radioBox >>> .el-radio__input,
  23246. .radioBox >>> .el-checkbox__inner {
  23247. margin-left: 10px;
  23248. } */
  23249. .radioBox >>> .el-radio__label,
  23250. .radioBox >>> .el-checkbox__label {
  23251. display: flex;
  23252. align-items: center;
  23253. width: 100%;
  23254. }
  23255. .radioBox >>> .el-radio__label > span {
  23256. width: 100%;
  23257. display: -webkit-box;
  23258. overflow: hidden;
  23259. white-space: normal !important;
  23260. text-overflow: ellipsis;
  23261. word-wrap: break-word;
  23262. }
  23263. .inImg {
  23264. width: 100px;
  23265. cursor: pointer;
  23266. }
  23267. .inImg > img {
  23268. width: 100%;
  23269. height: 100%;
  23270. object-fit: cover;
  23271. }
  23272. .timuImgBox {
  23273. margin: 10px 0;
  23274. display: flex;
  23275. flex-direction: column;
  23276. flex-wrap: wrap;
  23277. align-items: flex-start;
  23278. }
  23279. .timuImg {
  23280. width: 150px;
  23281. margin: 5px 0;
  23282. cursor: pointer;
  23283. }
  23284. .timuImg > img {
  23285. width: 100%;
  23286. height: 100%;
  23287. object-fit: cover;
  23288. }
  23289. .worksTop {
  23290. display: flex;
  23291. flex-direction: row;
  23292. align-items: flex-end;
  23293. }
  23294. .worksTitle {
  23295. display: flex;
  23296. flex-direction: row;
  23297. flex-wrap: nowrap;
  23298. align-items: center;
  23299. }
  23300. .worksTitle::before,
  23301. .worksTop::before {
  23302. content: "";
  23303. display: block;
  23304. width: 3px;
  23305. height: 20px;
  23306. background: #0061ff;
  23307. border-radius: 3px;
  23308. margin: 0 5px 0 0;
  23309. }
  23310. .corOpen {
  23311. margin: 0 0 0 10px;
  23312. font-size: 14px;
  23313. cursor: pointer;
  23314. color: #505050;
  23315. }
  23316. .corOpen:hover {
  23317. color: #499eef;
  23318. }
  23319. .navCorOpenBox {
  23320. display: flex;
  23321. flex-direction: row;
  23322. align-items: center;
  23323. justify-content: space-between;
  23324. height: 55px;
  23325. background: #ffffff;
  23326. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23327. border-radius: 8px 8px 0px 0px;
  23328. z-index: 9;
  23329. position: relative;
  23330. }
  23331. .navCorOpen {
  23332. padding-right: 15px;
  23333. cursor: pointer;
  23334. width: 45px;
  23335. display: flex;
  23336. }
  23337. .navCorOpen > img {
  23338. width: 100%;
  23339. height: 100%;
  23340. }
  23341. .mlImg {
  23342. width: 40px !important;
  23343. min-width: 40px;
  23344. cursor: pointer;
  23345. transform: rotate(180deg);
  23346. }
  23347. .mlImg > img {
  23348. width: 100%;
  23349. height: 100%;
  23350. }
  23351. .navLeftCss {
  23352. width: 100% !important;
  23353. left: 0 !important;
  23354. }
  23355. .isContentCss {
  23356. width: 100% !important;
  23357. }
  23358. .isAllWidth {
  23359. width: 100% !important;
  23360. }
  23361. .group_switch {
  23362. margin-right: 10px;
  23363. height: 30px;
  23364. display: flex;
  23365. align-items: center;
  23366. }
  23367. .group_switch > span {
  23368. margin-right: 5px;
  23369. }
  23370. .fileC_box {
  23371. padding-top: 15px;
  23372. }
  23373. .fileC_box > .fileC_title {
  23374. padding: 10px 5px 14px 10px;
  23375. border-top: 1px solid #cad1dc;
  23376. font-size: 14px;
  23377. font-weight: 400;
  23378. color: #cad1dc;
  23379. width: calc(100% - 20px);
  23380. margin: 0 auto;
  23381. box-sizing: border-box;
  23382. }
  23383. .pl_select_box {
  23384. height: 40px;
  23385. line-height: 40px;
  23386. width: 100%;
  23387. cursor: pointer;
  23388. padding: 0 20px;
  23389. box-sizing: border-box;
  23390. border-radius: 5px;
  23391. border: 1px solid #d6d6d6;
  23392. white-space: nowrap;
  23393. overflow: hidden;
  23394. text-overflow: ellipsis;
  23395. background: #fff;
  23396. text-align: left;
  23397. }
  23398. .newButton {
  23399. width: 102px;
  23400. height: 36px;
  23401. background: #e7ebf1;
  23402. border-radius: 4px;
  23403. color: #0e1e33;
  23404. font-weight: 400;
  23405. font-size: 14px;
  23406. border: none;
  23407. float: right;
  23408. margin-left: 10px;
  23409. }
  23410. .el-table >>> .even_row {
  23411. background-color: #f0f4fa;
  23412. }
  23413. .stageBoxCss,
  23414. .stageBoxIsCss {
  23415. display: flex;
  23416. flex-direction: row;
  23417. flex-wrap: nowrap;
  23418. align-items: center;
  23419. height: 50px;
  23420. border-bottom: 1px solid #e2f5fc;
  23421. cursor: pointer;
  23422. width: 100%;
  23423. }
  23424. .stageBoxIsCss {
  23425. background: #0061ff;
  23426. color: #fff;
  23427. border-radius: 8px;
  23428. }
  23429. .closeTri,
  23430. .closeTri1 {
  23431. min-width: 15px;
  23432. width: 15px;
  23433. height: 15px;
  23434. }
  23435. .closeTri1 {
  23436. padding-left: 10px;
  23437. cursor: pointer;
  23438. }
  23439. .closeTri > img,
  23440. .closeTri1 > img {
  23441. width: 100%;
  23442. height: 100%;
  23443. /* transition: all .5s; */
  23444. }
  23445. .noToolBlue {
  23446. min-width: 10px;
  23447. width: 10px;
  23448. height: 10px;
  23449. background: #0061ff;
  23450. border-radius: 50%;
  23451. margin-left: 13px;
  23452. }
  23453. .stageChild,
  23454. .toolChild {
  23455. height: 0;
  23456. overflow: hidden;
  23457. transition: all 0.5s;
  23458. }
  23459. .toolChild {
  23460. /* margin: 0 0 0 17px;
  23461. padding: 0 0 0 20px;
  23462. border-left: 1px solid #d7d7d7; */
  23463. }
  23464. .toolChild > div + div{
  23465. margin-top:5px;
  23466. }
  23467. .gjCss {
  23468. display: flex;
  23469. flex-direction: row;
  23470. flex-wrap: nowrap;
  23471. align-items: center;
  23472. padding: 10px 0 10px 40px;
  23473. box-sizing: border-box;
  23474. font-size: 14px;
  23475. cursor: pointer;
  23476. border-radius:5px;
  23477. }
  23478. .toolChild > div {
  23479. position: relative;
  23480. width: 100%;
  23481. }
  23482. .toolChild > div::before {
  23483. /* content: "";
  23484. width: 15px;
  23485. height: 1px;
  23486. background: #cad1dc;
  23487. position: absolute;
  23488. top: 24px;
  23489. left: -20px;
  23490. display: block; */
  23491. }
  23492. .isGjCss {
  23493. /* color: #0061ff; */
  23494. color:#fff;
  23495. background: rgb(55, 129, 252);
  23496. /* background-color: #e0eafb !important;
  23497. color: #0061ff !important; */
  23498. }
  23499. .navItem {
  23500. background: #ffffff;
  23501. border-radius: 4px;
  23502. width: 100%;
  23503. margin: 10px auto;
  23504. position: relative;
  23505. height: 40px;
  23506. display: flex;
  23507. flex-direction: row;
  23508. flex-wrap: nowrap;
  23509. align-items: center;
  23510. }
  23511. .navItemList {
  23512. display: flex;
  23513. flex-direction: row;
  23514. flex-wrap: nowrap;
  23515. align-items: center;
  23516. padding: 0 13px;
  23517. cursor: pointer;
  23518. width: calc(100% - 60px);
  23519. height: 100%;
  23520. }
  23521. .navItemList > div:first-child {
  23522. min-width: 60px;
  23523. }
  23524. .navItemList > div:last-child {
  23525. width: calc(100% - 80px);
  23526. white-space: nowrap;
  23527. overflow: hidden;
  23528. text-overflow: ellipsis;
  23529. word-break: break-word;
  23530. }
  23531. /* .isItemList > div {
  23532. color: #fff !important;
  23533. } */
  23534. .tool_work_box {
  23535. width: 100%;
  23536. padding: 0 37px 0;
  23537. box-sizing: border-box;
  23538. }
  23539. .tool_box {
  23540. width: 100%;
  23541. padding: 0 0 0 20px;
  23542. }
  23543. .tool_type_box {
  23544. display: flex;
  23545. flex-direction: row;
  23546. align-items: baseline;
  23547. flex-wrap: nowrap;
  23548. justify-content: flex-start;
  23549. position: relative;
  23550. }
  23551. .toolSort {
  23552. display: flex;
  23553. flex-direction: row;
  23554. flex-wrap: wrap;
  23555. justify-content: flex-start;
  23556. align-items: flex-start;
  23557. padding: 0 0 15px 0;
  23558. }
  23559. .toolSort > div {
  23560. margin: 0 10px 0 0;
  23561. width: 135px;
  23562. box-sizing: border-box;
  23563. border: 2px solid transparent;
  23564. }
  23565. .tools {
  23566. width: 100%;
  23567. display: flex;
  23568. flex-direction: column;
  23569. flex-wrap: nowrap;
  23570. align-items: flex-start;
  23571. }
  23572. .whiteBIcon {
  23573. width: fit-content;
  23574. cursor: pointer;
  23575. display: flex;
  23576. flex-direction: column;
  23577. flex-wrap: nowrap;
  23578. align-items: center;
  23579. font-size: 14px;
  23580. }
  23581. .tool:hover {
  23582. border: 2px solid #a5c7ff;
  23583. border-radius: 5px;
  23584. }
  23585. .whiteBIcon > img {
  23586. width: 65px;
  23587. height: 100%;
  23588. }
  23589. .whiteBIcon > img {
  23590. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23591. border-radius: 15px;
  23592. }
  23593. .check {
  23594. /* width: 20px;
  23595. height: 20px; */
  23596. cursor: pointer;
  23597. margin: 10px 0;
  23598. position: absolute;
  23599. right: 2px;
  23600. top: -5px;
  23601. }
  23602. .noChoose,
  23603. .isChoose {
  23604. width: 15px;
  23605. height: 15px;
  23606. border-radius: 50%;
  23607. border: 1px solid #adadad;
  23608. }
  23609. .isChoose {
  23610. border: 4px solid #0363ff !important;
  23611. width: 10px;
  23612. height: 10px;
  23613. }
  23614. .isToolChoose {
  23615. border: 2px solid #5394ff !important;
  23616. border-radius: 5px;
  23617. box-shadow: 0 0 6px 0px #5394ff;
  23618. }
  23619. .checkDiv {
  23620. display: flex;
  23621. align-items: center;
  23622. }
  23623. .checkDiv span {
  23624. margin-left: 5px;
  23625. color: #858585;
  23626. }
  23627. .check img {
  23628. width: 20px;
  23629. height: 20px;
  23630. }
  23631. .lockTaskIcon {
  23632. width: 20px;
  23633. height: 20px;
  23634. position: absolute;
  23635. right: 10px;
  23636. top: 10px;
  23637. }
  23638. .lockTaskIcon > img {
  23639. width: 100%;
  23640. height: 100%;
  23641. }
  23642. .pick_box {
  23643. display: flex;
  23644. align-items: flex-start;
  23645. flex-wrap: wrap;
  23646. }
  23647. .selectBox {
  23648. width: 110px;
  23649. margin-left: 10px;
  23650. margin: 0 10px 0 auto;
  23651. }
  23652. .selectBox >>> .el-input__inner {
  23653. height: 30px;
  23654. line-height: 30px;
  23655. }
  23656. .selectBox >>> .el-input__icon {
  23657. line-height: 30px;
  23658. }
  23659. .sentenceTitle {
  23660. display: flex;
  23661. flex-direction: row;
  23662. flex-wrap: nowrap;
  23663. align-items: center;
  23664. }
  23665. .sentenceTitle::before {
  23666. content: attr(index);
  23667. background: #3681fc;
  23668. border-radius: 50%;
  23669. color: #fff;
  23670. width: 25px;
  23671. height: 25px;
  23672. min-width: 25px;
  23673. min-height: 25px;
  23674. text-align: center;
  23675. line-height: 25px;
  23676. margin-right: 5px;
  23677. }
  23678. .hfBox {
  23679. padding: 10px;
  23680. box-sizing: border-box;
  23681. }
  23682. .whoReplyWho {
  23683. display: flex;
  23684. flex-direction: row;
  23685. flex-wrap: nowrap;
  23686. align-items: baseline;
  23687. justify-content: flex-start;
  23688. }
  23689. .hfBottom {
  23690. display: flex;
  23691. flex-direction: row;
  23692. flex-wrap: nowrap;
  23693. align-items: center;
  23694. justify-content: space-between;
  23695. font-size: 14px;
  23696. }
  23697. .deleteHfItem {
  23698. cursor: pointer;
  23699. width: 20px;
  23700. height: 20px;
  23701. }
  23702. .deleteHfItem > img {
  23703. width: 100%;
  23704. height: 100%;
  23705. }
  23706. .whoReplyWho > .hfImg {
  23707. width: 12px;
  23708. height: 12px;
  23709. margin: 0 5px;
  23710. }
  23711. .whoReplyWho > .hfImg > img {
  23712. width: 100%;
  23713. height: 100%;
  23714. }
  23715. .hfContent {
  23716. padding-top: 10px;
  23717. box-sizing: border-box;
  23718. display: -webkit-box;
  23719. overflow: hidden;
  23720. white-space: normal !important;
  23721. text-overflow: ellipsis;
  23722. word-wrap: break-word;
  23723. -webkit-box-orient: vertical;
  23724. }
  23725. .hfTime {
  23726. text-align: left;
  23727. box-sizing: border-box;
  23728. padding: 10px 0 10px 0px;
  23729. color: #bfbfbf;
  23730. font-size: 14px;
  23731. }
  23732. .btnAllNT {
  23733. position: fixed;
  23734. bottom: 100px;
  23735. right: 40px;
  23736. z-index: 999;
  23737. display: flex;
  23738. flex-direction: row;
  23739. }
  23740. .btnAllNT > img {
  23741. cursor: pointer;
  23742. width: 80px;
  23743. }
  23744. .toolMask {
  23745. position: fixed;
  23746. width: 100%;
  23747. height: 100%;
  23748. background: #3f3c3c;
  23749. opacity: 0.5;
  23750. top: 0;
  23751. left: 0;
  23752. z-index: 999;
  23753. }
  23754. .addToolCss {
  23755. position: fixed;
  23756. z-index: 999;
  23757. background: #fff;
  23758. right: 5%;
  23759. bottom: 18%;
  23760. min-width: 1035px;
  23761. min-height: 300px;
  23762. border-radius: 10px;
  23763. box-shadow: 0 0 8px 1px #b2b2b2;
  23764. }
  23765. .toolTop {
  23766. display: flex;
  23767. flex-direction: row;
  23768. flex-wrap: nowrap;
  23769. justify-content: space-between;
  23770. align-items: center;
  23771. padding: 20px;
  23772. }
  23773. .toolTop > div:nth-child(2) {
  23774. width: 15px;
  23775. height: 15px;
  23776. padding-right: 10px;
  23777. cursor: pointer;
  23778. }
  23779. .toolTop > div:nth-child(2) > img {
  23780. width: 100%;
  23781. height: 100%;
  23782. }
  23783. .fullStyle>>>.el-dialog__body {
  23784. height: calc(100% - 125px) !important;
  23785. box-sizing: border-box;
  23786. padding: 30px 0 !important;
  23787. background: #fff !important;
  23788. }
  23789. .fullStyle>>>.el-dialog {
  23790. width: 100% !important;
  23791. max-width: 100% !important;
  23792. height: 100% !important;
  23793. margin: 0 !important;
  23794. }
  23795. .fullStyle {
  23796. width: 100% !important;
  23797. max-width: 100% !important;
  23798. height: 100% !important;
  23799. margin: 0 auto !important;
  23800. }
  23801. .fullStyle>>>.el-dialog__footer{
  23802. background: #fff !important;
  23803. }
  23804. .engUpBox {
  23805. width: 100%;
  23806. height: 100%;
  23807. }
  23808. .engTitle,
  23809. .engText {
  23810. display: flex;
  23811. flex-direction: row;
  23812. flex-wrap: nowrap;
  23813. align-items: flex-start;
  23814. padding: 0 20px 20px 20px;
  23815. box-sizing: border-box;
  23816. }
  23817. .engTitle > .div:first-child,
  23818. .engText > div:first-child {
  23819. min-width: 75px;
  23820. }
  23821. .correctBox{
  23822. width: 100%;
  23823. display: flex;
  23824. flex-direction: row;
  23825. flex-wrap: nowrap;
  23826. align-items: flex-start;
  23827. }
  23828. .oldBox{
  23829. width: 50%;
  23830. height: 100%;
  23831. display: flex;
  23832. flex-direction: column;
  23833. flex-wrap: nowrap;
  23834. align-items: center;
  23835. border-top: 1px solid #d9d9d9;
  23836. border-left: 1px solid #d9d9d9;
  23837. border-right: 1px solid #d9d9d9;
  23838. }
  23839. .oldBox>div:first-child{
  23840. width: 100%;
  23841. text-align: center;
  23842. background: #d9d9d9;
  23843. height: 35px;
  23844. line-height: 35px;
  23845. font-weight: bold;
  23846. }
  23847. .oldText{
  23848. width: 100%;
  23849. height: calc(100% - 35px);
  23850. overflow: auto;
  23851. margin: 10px 0;
  23852. display: flex;
  23853. flex-direction: column;
  23854. flex-wrap: nowrap;
  23855. align-content: center;
  23856. align-items: center;
  23857. }
  23858. .detailBox{
  23859. width: 50%;
  23860. padding: 10px;
  23861. background: #f6f6f6;
  23862. border-radius: 5px;
  23863. }
  23864. .oldDetail,.oldDetail1{
  23865. padding-bottom: 30px;
  23866. }
  23867. .oldImg{
  23868. width:30px;
  23869. height: 30px;
  23870. }
  23871. .oldImg>img{
  23872. width: 100%;
  23873. height: 100%;
  23874. }
  23875. .allName{
  23876. min-width: 200px;
  23877. white-space: nowrap;
  23878. overflow: hidden;
  23879. text-overflow: ellipsis;
  23880. word-break: break-word;
  23881. cursor: pointer;
  23882. text-align: center;
  23883. border: 1px solid #bcc2cc;
  23884. box-sizing: border-box;
  23885. }
  23886. .engUpTop{
  23887. max-height: 300px;
  23888. overflow: auto;
  23889. }
  23890. .isUpdateToolDetailClass{
  23891. padding: 0 !important;
  23892. }
  23893. .isUpdateToolDetailClass textarea{
  23894. padding:12px;
  23895. font-size: 16px;
  23896. min-height:100%;
  23897. width: 100%;
  23898. box-sizing:border-box;
  23899. outline: none;
  23900. border:none;
  23901. line-height: 30px;
  23902. resize: none;
  23903. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23904. color: #838383;
  23905. }
  23906. .show_taskD {
  23907. min-width: fit-content;
  23908. margin-left: 10px;
  23909. display: flex;
  23910. align-items: center;
  23911. font-size: 14px;
  23912. cursor: pointer;
  23913. color: #717c8d;
  23914. }
  23915. .show_taskD > img {
  23916. width: 15px;
  23917. margin-right: 5px;
  23918. transition: 0.2s all;
  23919. transform: rotate(-90deg);
  23920. }
  23921. .show_taskD.show > img {
  23922. transform: rotate(0deg);
  23923. }
  23924. .correctCss{
  23925. position: absolute;
  23926. bottom: -70px;
  23927. background: #409eff;
  23928. color: #fff;
  23929. }
  23930. </style>